@opengis/admin 0.3.25 → 0.3.26
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-B3H-0GBH.js} +25 -20
- package/dist/{admin-interface-DDP6KpGO.js → admin-interface-CpMI-QOq.js} +502 -481
- package/dist/{admin-view-C--DkpIG.js → admin-view-BuCmto5A.js} +6 -6
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +76 -76
- package/dist/{card-view-CPwz8aJg.js → card-view-C4EvhyJT.js} +3 -3
- package/dist/edit-page-Bk2BoWiz.js +145 -0
- package/dist/{import-file-B8gDejaq.js → import-file-DoPKjOx2.js} +22077 -22178
- package/dist/{profile-page-C5UftUwo.js → profile-page-D2CDkSuS.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/button.js +5 -5
- package/server/helpers/list/utils/buttonDel.js +1 -1
- package/server/helpers/list/utils/buttonEdit.js +1 -1
- package/server/routes/data/controllers/utils/conditions.js +20 -20
- package/dist/edit-page-BsDJ8lKP.js +0 -140
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as T, g as
|
2
|
-
import {
|
3
|
-
const
|
1
|
+
import { _ as T, g as He, h as Ke, i as Je, f as M, I as Ge, s as E, j as Ne, k as Q, A as X, V as Qe, l as Xe, m as Ye, n as Ze, o as et, p as tt, q as st, a as nt, r as lt, t as rt, u as Oe } from "./import-file-DoPKjOx2.js";
|
2
|
+
import { openBlock as a, createElementBlock as i, createTextVNode as P, toDisplayString as I, createElementVNode as r, normalizeClass as $, createCommentVNode as k, resolveComponent as h, Fragment as S, createVNode as y, withCtx as D, createBlock as v, renderList as V, withModifiers as at, createStaticVNode as ot, withDirectives as U, vModelCheckbox as it, Transition as H, vModelText as dt, renderSlot as ut, vShow as Y, Teleport as ct, getCurrentInstance as Ee, ref as J, resolveDynamicComponent as G, defineComponent as pt, withKeys as ht, normalizeStyle as K } from "vue";
|
3
|
+
const bt = {
|
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
|
+
}, ft = {
|
65
65
|
scope: "col",
|
66
|
-
class: "
|
66
|
+
class: "text-start",
|
67
67
|
ref: "column"
|
68
|
-
},
|
68
|
+
}, gt = { class: "w-[24px]" }, mt = {
|
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
|
74
|
-
|
72
|
+
function xt(t, e, n, o, s, l) {
|
73
|
+
return a(), i("th", ft, [
|
74
|
+
l.getVisibleIcon ? (a(), 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
|
-
|
82
|
-
s.currentSort ? (
|
80
|
+
P(I(l.label) + " ", 1),
|
81
|
+
r("span", gt, [
|
82
|
+
s.currentSort ? (a(), i("svg", {
|
83
83
|
key: 0,
|
84
|
-
class:
|
84
|
+
class: $(["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
|
+
r("path", { d: "m5 12 7-7 7 7" }, null, -1),
|
96
|
+
r("path", { d: "M12 19V5" }, null, -1)
|
97
|
+
]), 2)) : k("", !0)
|
98
98
|
])
|
99
|
-
])) : (
|
99
|
+
])) : (a(), i("p", mt, I(l.label), 1))
|
100
100
|
], 512);
|
101
101
|
}
|
102
|
-
const
|
102
|
+
const yt = /* @__PURE__ */ T(bt, [["render", xt]]), vt = {
|
103
103
|
components: {
|
104
104
|
IconMore: He,
|
105
|
-
IconDelete:
|
106
|
-
IconEdit:
|
105
|
+
IconDelete: Ke,
|
106
|
+
IconEdit: Je
|
107
107
|
},
|
108
108
|
emits: ["updateTable"],
|
109
109
|
props: {
|
@@ -182,58 +182,58 @@ const xt = /* @__PURE__ */ T(ht, [["render", mt]]), yt = {
|
|
182
182
|
}), await this.$emit("update-table"));
|
183
183
|
}
|
184
184
|
}
|
185
|
-
}, kt = { class: "inline-flex" },
|
185
|
+
}, kt = { class: "inline-flex" }, _t = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, Ct = { class: "flex flex-col items-start" }, wt = ["onClick"], $t = { class: "text-gray-800" }, St = {
|
186
186
|
key: 1,
|
187
187
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
188
188
|
}, Tt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
189
|
-
function At(t, e, n, o, s,
|
189
|
+
function At(t, e, n, o, s, l) {
|
190
190
|
const c = h("IconMore"), g = h("IconEdit"), p = h("router-link"), b = h("IconDelete"), d = h("VsPopover"), _ = h("VsConfirm");
|
191
|
-
return
|
192
|
-
|
191
|
+
return a(), i(S, null, [
|
192
|
+
r("div", kt, [
|
193
193
|
y(d, {
|
194
194
|
trigger: "click",
|
195
195
|
placement: "bottom-left"
|
196
196
|
}, {
|
197
|
-
reference:
|
198
|
-
|
197
|
+
reference: D(() => [
|
198
|
+
r("button", _t, [
|
199
199
|
y(c, {
|
200
200
|
height: "16",
|
201
201
|
width: "16"
|
202
202
|
})
|
203
203
|
])
|
204
204
|
]),
|
205
|
-
default:
|
205
|
+
default: D(() => {
|
206
206
|
var x, f, C, m, w;
|
207
207
|
return [
|
208
|
-
|
209
|
-
(x = n.actions) != null && x.includes("edit") && n.isForm ? (
|
208
|
+
r("div", Ct, [
|
209
|
+
(x = n.actions) != null && x.includes("edit") && n.isForm ? (a(), v(p, {
|
210
210
|
key: 0,
|
211
211
|
to: `/edit?table=${(C = (f = t.$route) == null ? void 0 : f.params) == null ? void 0 : C.catchAll}&id=${(m = n.item) == null ? void 0 : m.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:
|
214
|
+
default: D(() => [
|
215
215
|
y(g, { color: "#000" }),
|
216
|
-
e[4] || (e[4] =
|
216
|
+
e[4] || (e[4] = P(" Редагувати "))
|
217
217
|
]),
|
218
218
|
_: 1
|
219
|
-
}, 8, ["to"])) :
|
220
|
-
(
|
221
|
-
key:
|
222
|
-
onClick: (
|
219
|
+
}, 8, ["to"])) : k("", !0),
|
220
|
+
(a(!0), i(S, null, V(l.getCustomActions, (A, F) => (a(), i("button", {
|
221
|
+
key: F,
|
222
|
+
onClick: (j) => l.customButtonAction(A),
|
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
225
|
y(b, { class: "opacity-0" }),
|
226
|
-
|
227
|
-
], 8,
|
228
|
-
n.isForm ? (
|
229
|
-
(w = n.actions) != null && w.includes("del") ? (
|
226
|
+
r("span", $t, I(A == null ? void 0 : A.label), 1)
|
227
|
+
], 8, wt))), 128)),
|
228
|
+
n.isForm ? (a(), i("div", St)) : k("", !0),
|
229
|
+
(w = n.actions) != null && w.includes("del") ? (a(), i("button", {
|
230
230
|
key: 2,
|
231
|
-
onClick: e[0] || (e[0] = at((...A) =>
|
231
|
+
onClick: e[0] || (e[0] = at((...A) => l.openConfirm && l.openConfirm(...A), ["stop"])),
|
232
232
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
233
233
|
}, [
|
234
234
|
y(b),
|
235
|
-
e[5] || (e[5] =
|
236
|
-
])) :
|
235
|
+
e[5] || (e[5] = r("span", { class: "text-gray-800" }, "Видалити", -1))
|
236
|
+
])) : k("", !0)
|
237
237
|
])
|
238
238
|
];
|
239
239
|
}),
|
@@ -246,18 +246,18 @@ function At(t, e, n, o, s, a) {
|
|
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] = r("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
251
|
+
r("div", Tt, [
|
252
|
+
r("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
255
|
onClick: e[1] || (e[1] = (x) => s.isDeleteConfirm = !1)
|
256
256
|
}, " Скасувати "),
|
257
|
-
|
257
|
+
r("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] = (...x) =>
|
260
|
+
onClick: e[2] || (e[2] = (...x) => l.deleteElement && l.deleteElement(...x))
|
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 It = /* @__PURE__ */ T(vt, [["render", At]]), Dt = {}, Vt = {
|
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
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
278
|
+
function Pt(t, e, n, o, s, l) {
|
279
|
+
return a(), i("svg", Vt, e[0] || (e[0] = [
|
280
|
+
r("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
281
|
+
r("path", { d: "M7 20V4" }, null, -1),
|
282
|
+
r("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
283
|
+
r("path", { d: "M17 4v16" }, null, -1)
|
284
284
|
]));
|
285
285
|
}
|
286
|
-
const
|
286
|
+
const Ft = /* @__PURE__ */ T(Dt, [["render", Pt]]), jt = {}, Lt = {
|
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
|
300
|
-
|
298
|
+
function Mt(t, e, n, o, s, l) {
|
299
|
+
return a(), i("svg", Lt, e[0] || (e[0] = [
|
300
|
+
r("path", {
|
301
301
|
stroke: "none",
|
302
302
|
d: "M0 0h24v24H0z",
|
303
303
|
fill: "none"
|
304
304
|
}, null, -1),
|
305
|
-
|
306
|
-
|
305
|
+
r("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
|
+
r("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
307
307
|
]));
|
308
308
|
}
|
309
|
-
const
|
310
|
-
components: { IconExport:
|
309
|
+
const zt = /* @__PURE__ */ T(jt, [["render", Mt]]), qt = {
|
310
|
+
components: { IconExport: Ft, IconChevronDown: Ge, IconSuccess: zt },
|
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,26 +414,26 @@ 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
|
+
}, Bt = {
|
413
418
|
key: 0,
|
414
419
|
class: "flex flex-col items-center"
|
415
|
-
},
|
420
|
+
}, Ot = {
|
416
421
|
key: 1,
|
417
422
|
class: "p-4"
|
418
|
-
},
|
423
|
+
}, Nt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Et = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Ut = ["onClick"], Wt = {
|
419
424
|
key: 0,
|
420
425
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
421
|
-
},
|
426
|
+
}, Rt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Ht = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Kt = { class: "mt-2 space-y-2" }, Jt = ["id", "onChange"], Gt = ["for"], Qt = {
|
422
427
|
key: 0,
|
423
428
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
424
|
-
},
|
429
|
+
}, Xt = {
|
425
430
|
key: 1,
|
426
431
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
427
432
|
};
|
428
|
-
function
|
433
|
+
function Yt(t, e, n, o, s, l) {
|
429
434
|
const c = h("IconExport"), g = h("IconSuccess"), p = h("VsCheckbox"), b = h("VsDialog");
|
430
|
-
return
|
431
|
-
|
435
|
+
return a(), i(S, null, [
|
436
|
+
r("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
|
}, [
|
@@ -436,7 +441,7 @@ function Xt(t, e, n, o, s, a) {
|
|
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
|
y(b, {
|
442
447
|
visible: s.isOpen,
|
@@ -445,58 +450,58 @@ function Xt(t, e, n, o, s, a) {
|
|
445
450
|
size: "small",
|
446
451
|
closeClickBack: !0
|
447
452
|
}, {
|
448
|
-
footer:
|
449
|
-
s.isSuccessTemplate ? (
|
450
|
-
|
453
|
+
footer: D(() => [
|
454
|
+
s.isSuccessTemplate ? (a(), i("div", Qt, [
|
455
|
+
r("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
|
+
r("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
|
-
])) : (
|
461
|
-
|
465
|
+
])) : (a(), i("div", Xt, [
|
466
|
+
r("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
|
+
r("button", {
|
467
472
|
type: "button",
|
468
|
-
class:
|
469
|
-
onClick: e[5] || (e[5] = (...d) =>
|
470
|
-
}, " Завантажити таблицю ")
|
473
|
+
class: $(`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 ? (
|
478
|
+
default: D(() => [
|
479
|
+
s.isSuccessTemplate ? (a(), i("div", Bt, [
|
475
480
|
y(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
|
-
])) : (
|
482
|
-
|
483
|
-
e[9] || (e[9] =
|
484
|
-
|
485
|
-
(
|
485
|
+
e[8] || (e[8] = r("h2", null, "Звіт сформовано і збережено", -1))
|
486
|
+
])) : (a(), i("div", Ot, [
|
487
|
+
r("div", Nt, [
|
488
|
+
e[9] || (e[9] = r("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
489
|
+
r("div", Et, [
|
490
|
+
(a(!0), i(S, null, V(s.actions, (d) => (a(), 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
|
+
r("span", {
|
496
|
+
class: $(["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 ? (
|
498
|
+
(d == null ? void 0 : d.name) === s.activeAction ? (a(), i("span", Wt)) : k("", !0)
|
494
499
|
], 2),
|
495
|
-
|
496
|
-
], 8,
|
500
|
+
P(" " + I(d == null ? void 0 : d.label), 1)
|
501
|
+
], 8, Ut))), 128))
|
497
502
|
]),
|
498
|
-
|
499
|
-
(
|
503
|
+
r("div", Rt, [
|
504
|
+
(a(!0), i(S, null, V(n.columns, (d, _) => (a(), i("div", {
|
500
505
|
class: "flex items-center",
|
501
506
|
key: _,
|
502
507
|
style: { width: "calc((100% - 10px) / 2)" }
|
@@ -511,24 +516,24 @@ function Xt(t, e, n, o, s, a) {
|
|
511
516
|
]))), 128))
|
512
517
|
])
|
513
518
|
]),
|
514
|
-
|
515
|
-
e[10] || (e[10] =
|
516
|
-
|
517
|
-
(
|
519
|
+
r("div", Ht, [
|
520
|
+
e[10] || (e[10] = r("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть формат таблиці: ", -1)),
|
521
|
+
r("div", Kt, [
|
522
|
+
(a(!0), i(S, null, V(s.tableFormats, (d, _) => (a(), i("div", {
|
518
523
|
class: "flex items-center",
|
519
524
|
key: _
|
520
525
|
}, [
|
521
|
-
|
526
|
+
r("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: (x) =>
|
527
|
-
}, null, 40,
|
528
|
-
|
531
|
+
onChange: (x) => l.selectFormat(d)
|
532
|
+
}, null, 40, Jt),
|
533
|
+
r("label", {
|
529
534
|
for: d,
|
530
535
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
531
|
-
}, " Формат " +
|
536
|
+
}, " Формат " + I(d), 9, Gt)
|
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 Zt = /* @__PURE__ */ T(qt, [["render", Yt]]), es = {}, ts = {
|
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
|
553
|
-
|
556
|
+
function ss(t, e, n, o, s, l) {
|
557
|
+
return a(), i("svg", ts, e[0] || (e[0] = [
|
558
|
+
ot('<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 ns = /* @__PURE__ */ T(es, [["render", ss]]), ls = {
|
557
562
|
props: { column: Object },
|
558
563
|
emits: ["update-column"],
|
559
564
|
components: {
|
560
|
-
IconCheck2:
|
565
|
+
IconCheck2: Ne
|
561
566
|
},
|
562
567
|
data() {
|
563
568
|
return {
|
@@ -569,26 +574,31 @@ 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
|
+
}, rs = { 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" }, as = { 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 os(t, e, n, o, s, l) {
|
578
588
|
var g, p;
|
579
589
|
const c = h("IconCheck2");
|
580
|
-
return
|
581
|
-
|
582
|
-
|
583
|
-
|
590
|
+
return a(), i("div", rs, [
|
591
|
+
r("label", as, [
|
592
|
+
P(I(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
|
593
|
+
U(r("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
|
+
[it, s.value]
|
589
599
|
]),
|
590
|
-
|
591
|
-
class:
|
600
|
+
r("span", {
|
601
|
+
class: $(["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
|
y(c, {
|
594
604
|
height: "12",
|
@@ -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 is = /* @__PURE__ */ T(ls, [["render", os]]), ds = {
|
612
|
+
components: { IconColumns: ns, AdminTableColumnsHiddenItem: is },
|
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,24 +645,24 @@ const os = /* @__PURE__ */ T(ns, [["render", rs]]), is = {
|
|
635
645
|
beforeUnmount() {
|
636
646
|
document.removeEventListener("click", this.handleClickOutside);
|
637
647
|
}
|
638
|
-
},
|
648
|
+
}, us = {
|
639
649
|
class: "relative",
|
640
650
|
ref: "wrapper"
|
641
|
-
},
|
651
|
+
}, cs = {
|
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
|
+
}, ps = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, hs = { 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" }, bs = {
|
645
655
|
key: 0,
|
646
656
|
class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
|
647
|
-
},
|
657
|
+
}, fs = { class: "space-y-1" }, gs = {
|
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
|
661
|
+
function ms(t, e, n, o, s, l) {
|
652
662
|
const c = h("IconColumns"), g = h("AdminTableColumnsHiddenItem");
|
653
|
-
return
|
654
|
-
|
655
|
-
onClick: e[0] || (e[0] = (...p) =>
|
663
|
+
return a(), i("div", us, [
|
664
|
+
r("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
|
y(c, {
|
@@ -660,41 +670,41 @@ function gs(t, e, n, o, s, a) {
|
|
660
670
|
width: "16"
|
661
671
|
})
|
662
672
|
]),
|
663
|
-
y(
|
664
|
-
default:
|
673
|
+
y(H, { name: "fade" }, {
|
674
|
+
default: D(() => {
|
665
675
|
var p, b;
|
666
676
|
return [
|
667
|
-
s.visible ? (
|
668
|
-
e[2] || (e[2] =
|
669
|
-
|
670
|
-
|
677
|
+
s.visible ? (a(), i("div", cs, [
|
678
|
+
e[2] || (e[2] = r("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
|
+
r("div", ps, [
|
680
|
+
U(r("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
|
+
[dt, s.searchValue]
|
678
688
|
])
|
679
689
|
]),
|
680
|
-
|
681
|
-
(p =
|
682
|
-
|
683
|
-
(b =
|
690
|
+
r("div", hs, [
|
691
|
+
(p = l.filteredColumn) != null && p.length ? (a(), i("span", bs, " Оберіть колонки для відображення ")) : k("", !0),
|
692
|
+
r("div", fs, [
|
693
|
+
(b = l.filteredColumn) != null && b.length ? (a(!0), i(S, { key: 0 }, V(l.filteredColumn, (d, _) => (a(), v(g, {
|
684
694
|
key: _,
|
685
695
|
column: d,
|
686
|
-
onUpdateColumn:
|
687
|
-
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (
|
696
|
+
onUpdateColumn: l.updateColumn
|
697
|
+
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (a(), i("div", gs, " Нічого не знайдено "))
|
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 xs = /* @__PURE__ */ T(ds, [["render", ms]]), ys = {}, vs = {
|
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 ks(t, e, n, o, s,
|
708
|
-
return
|
709
|
-
|
717
|
+
function ks(t, e, n, o, s, l) {
|
718
|
+
return a(), i("svg", vs, e[0] || (e[0] = [
|
719
|
+
r("path", {
|
710
720
|
stroke: "none",
|
711
721
|
d: "M0 0h24v24H0z",
|
712
722
|
fill: "none"
|
713
723
|
}, null, -1),
|
714
|
-
|
724
|
+
r("path", { d: "M5 12l14 0" }, null, -1)
|
715
725
|
]));
|
716
726
|
}
|
717
|
-
const
|
718
|
-
components: { IconPlus:
|
727
|
+
const _s = /* @__PURE__ */ T(ys, [["render", ks]]), Cs = {
|
728
|
+
components: { IconPlus: Q, IconMinus: _s },
|
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 As(t, e, n, o, s,
|
736
|
+
}, ws = { class: "hs-accordion" }, $s = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, Ss = { class: "text-sm font-medium" }, Ts = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
737
|
+
function As(t, e, n, o, s, l) {
|
728
738
|
const c = h("IconPlus"), g = h("IconMinus");
|
729
|
-
return
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
739
|
+
return a(), i("div", null, [
|
740
|
+
r("div", null, [
|
741
|
+
r("div", ws, [
|
742
|
+
r("div", $s, [
|
743
|
+
r("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
|
+
r("span", Ss, I(n.title), 1)
|
738
748
|
]),
|
739
|
-
|
749
|
+
r("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 ? (
|
753
|
+
s.expanded ? (a(), v(g, {
|
744
754
|
key: 1,
|
745
755
|
width: "14"
|
746
|
-
})) : (
|
756
|
+
})) : (a(), v(c, { key: 0 }))
|
747
757
|
])
|
748
758
|
]),
|
749
|
-
y(
|
750
|
-
default:
|
751
|
-
|
752
|
-
|
759
|
+
y(H, { name: "fade" }, {
|
760
|
+
default: D(() => [
|
761
|
+
U(r("div", Ts, [
|
762
|
+
ut(t.$slots, "default", {}, void 0, !0)
|
753
763
|
], 512), [
|
754
|
-
[
|
764
|
+
[Y, s.expanded]
|
755
765
|
])
|
756
766
|
]),
|
757
767
|
_: 3
|
@@ -760,44 +770,44 @@ function As(t, e, n, o, s, a) {
|
|
760
770
|
])
|
761
771
|
]);
|
762
772
|
}
|
763
|
-
const
|
773
|
+
const Is = /* @__PURE__ */ T(Cs, [["render", As], ["__scopeId", "data-v-c6318482"]]), Ds = {
|
764
774
|
components: {
|
765
|
-
AdminComponentIs:
|
766
|
-
AdminTree:
|
767
|
-
VsNoData:
|
768
|
-
VsWidgetComments:
|
769
|
-
VsWidgetMap:
|
770
|
-
VsWidgetFileList:
|
775
|
+
AdminComponentIs: X,
|
776
|
+
AdminTree: Is,
|
777
|
+
VsNoData: Qe,
|
778
|
+
VsWidgetComments: Xe,
|
779
|
+
VsWidgetMap: Ye,
|
780
|
+
VsWidgetFileList: Ze
|
771
781
|
},
|
772
782
|
props: { table: String, columns: Array, row: Object }
|
773
|
-
},
|
783
|
+
}, Vs = {
|
774
784
|
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",
|
775
785
|
style: { height: "calc(100vh - 310px)" }
|
776
|
-
},
|
786
|
+
}, Ps = {
|
777
787
|
class: "border-l",
|
778
788
|
style: { height: "calc(100vh - 360px)" }
|
779
|
-
},
|
780
|
-
function
|
789
|
+
}, Fs = { class: "flow-root mt-[10px]" }, js = { class: "-my-3 text-sm divide-y divide-gray-100" }, Ls = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Ms = { class: "font-medium text-black w-[50%]" }, zs = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, qs = { class: "table-info-card" }, Bs = { class: "table-info-card" };
|
790
|
+
function Os(t, e, n, o, s, l) {
|
781
791
|
var x, f, C;
|
782
792
|
const c = h("AdminComponentIs"), g = h("AdminTree"), p = h("VsWidgetMap"), b = h("VsNoData"), d = h("VsWidgetComments"), _ = h("VsWidgetFileList");
|
783
|
-
return
|
784
|
-
e[0] || (e[0] =
|
785
|
-
|
793
|
+
return a(), i("div", Vs, [
|
794
|
+
e[0] || (e[0] = r("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
795
|
+
r("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
786
796
|
], -1)),
|
787
|
-
|
788
|
-
(f = (x = t.$route) == null ? void 0 : x.query) != null && f.card ? (
|
789
|
-
n.row ? (
|
797
|
+
r("div", Ps, [
|
798
|
+
(f = (x = t.$route) == null ? void 0 : x.query) != null && f.card ? (a(), i(S, { key: 0 }, [
|
799
|
+
n.row ? (a(), v(g, {
|
790
800
|
key: 0,
|
791
801
|
defaultValue: !0,
|
792
802
|
title: "Основна інформація",
|
793
803
|
class: "border-b p-[10px] py-[16px]"
|
794
804
|
}, {
|
795
|
-
default:
|
796
|
-
|
797
|
-
|
798
|
-
(
|
799
|
-
|
800
|
-
|
805
|
+
default: D(() => [
|
806
|
+
r("div", Fs, [
|
807
|
+
r("dl", js, [
|
808
|
+
(a(!0), i(S, null, V(n.columns, (m) => (a(), i("div", Ls, [
|
809
|
+
r("dt", Ms, I((m == null ? void 0 : m.ua) || (m == null ? void 0 : m.title)), 1),
|
810
|
+
r("dd", zs, [
|
801
811
|
y(c, {
|
802
812
|
row: n.row,
|
803
813
|
column: m,
|
@@ -809,20 +819,20 @@ function Bs(t, e, n, o, s, a) {
|
|
809
819
|
])
|
810
820
|
]),
|
811
821
|
_: 1
|
812
|
-
})) :
|
813
|
-
(C = n.row) != null && C.geom ? (
|
822
|
+
})) : k("", !0),
|
823
|
+
(C = n.row) != null && C.geom ? (a(), v(g, {
|
814
824
|
key: 1,
|
815
825
|
title: "Карта",
|
816
826
|
class: "border-b p-[10px] py-[16px]"
|
817
827
|
}, {
|
818
|
-
default:
|
828
|
+
default: D(() => {
|
819
829
|
var m, w;
|
820
830
|
return [
|
821
|
-
(m = n.row) != null && m.geom ? (
|
831
|
+
(m = n.row) != null && m.geom ? (a(), v(p, {
|
822
832
|
key: 0,
|
823
833
|
geometry: (w = n.row) == null ? void 0 : w.geom,
|
824
834
|
zoom: 14
|
825
|
-
}, null, 8, ["geometry"])) : (
|
835
|
+
}, null, 8, ["geometry"])) : (a(), v(b, {
|
826
836
|
key: 1,
|
827
837
|
title: "У об'єкта відсутня геометрія",
|
828
838
|
text: "",
|
@@ -831,15 +841,15 @@ function Bs(t, e, n, o, s, a) {
|
|
831
841
|
];
|
832
842
|
}),
|
833
843
|
_: 1
|
834
|
-
})) :
|
844
|
+
})) : k("", !0),
|
835
845
|
y(g, {
|
836
846
|
title: "Коментарі",
|
837
847
|
class: "border-b p-[10px] py-[16px]"
|
838
848
|
}, {
|
839
|
-
default:
|
849
|
+
default: D(() => {
|
840
850
|
var m;
|
841
851
|
return [
|
842
|
-
|
852
|
+
r("div", qs, [
|
843
853
|
y(d, {
|
844
854
|
id: (m = n.row) == null ? void 0 : m.id
|
845
855
|
}, null, 8, ["id"])
|
@@ -852,11 +862,11 @@ function Bs(t, e, n, o, s, a) {
|
|
852
862
|
title: "Файли",
|
853
863
|
class: "border-b p-[10px] py-[16px]"
|
854
864
|
}, {
|
855
|
-
default:
|
865
|
+
default: D(() => {
|
856
866
|
var m, w;
|
857
867
|
return [
|
858
|
-
|
859
|
-
(
|
868
|
+
r("div", Bs, [
|
869
|
+
(a(), v(_, {
|
860
870
|
key: (m = n.row) == null ? void 0 : m.id,
|
861
871
|
id: (w = n.row) == null ? void 0 : w.id
|
862
872
|
}, null, 8, ["id"]))
|
@@ -865,21 +875,21 @@ function Bs(t, e, n, o, s, a) {
|
|
865
875
|
}),
|
866
876
|
_: 1
|
867
877
|
})
|
868
|
-
], 64)) : (
|
878
|
+
], 64)) : (a(), v(b, {
|
869
879
|
key: 1,
|
870
880
|
text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
|
871
881
|
}))
|
872
882
|
])
|
873
883
|
]);
|
874
884
|
}
|
875
|
-
const
|
885
|
+
const Ns = /* @__PURE__ */ T(Ds, [["render", Os]]), Es = {
|
876
886
|
emits: ["filterChange"],
|
877
887
|
props: {
|
878
888
|
scheme: { type: Object },
|
879
889
|
onFilters: { type: Number },
|
880
890
|
table: { type: String }
|
881
891
|
},
|
882
|
-
components: { IconFilter:
|
892
|
+
components: { IconFilter: et },
|
883
893
|
data() {
|
884
894
|
return {
|
885
895
|
isFilters: !1
|
@@ -890,14 +900,14 @@ const Os = /* @__PURE__ */ T(Is, [["render", Bs]]), Ns = {
|
|
890
900
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
891
901
|
}
|
892
902
|
}
|
893
|
-
},
|
903
|
+
}, Us = {
|
894
904
|
key: 0,
|
895
905
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
896
|
-
},
|
897
|
-
function
|
906
|
+
}, Ws = { 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" };
|
907
|
+
function Rs(t, e, n, o, s, l) {
|
898
908
|
const c = h("IconFilter"), g = h("VsFilter");
|
899
|
-
return
|
900
|
-
|
909
|
+
return a(), i(S, null, [
|
910
|
+
r("button", {
|
901
911
|
onClick: e[0] || (e[0] = (p) => s.isFilters = !s.isFilters),
|
902
912
|
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
913
|
}, [
|
@@ -905,21 +915,21 @@ function Ws(t, e, n, o, s, a) {
|
|
905
915
|
height: "16",
|
906
916
|
width: "16"
|
907
917
|
}),
|
908
|
-
e[4] || (e[4] =
|
909
|
-
n.onFilters ? (
|
918
|
+
e[4] || (e[4] = P(" Фільтри ")),
|
919
|
+
n.onFilters ? (a(), i("span", Us, I(n.onFilters), 1)) : k("", !0)
|
910
920
|
]),
|
911
|
-
y(
|
912
|
-
default:
|
921
|
+
y(H, { name: "fade" }, {
|
922
|
+
default: D(() => {
|
913
923
|
var p;
|
914
924
|
return [
|
915
|
-
(
|
916
|
-
|
917
|
-
onClick: e[3] || (e[3] = (...b) =>
|
925
|
+
(a(), v(ct, { to: "#modal" }, [
|
926
|
+
U(r("div", {
|
927
|
+
onClick: e[3] || (e[3] = (...b) => l.closeFilter && l.closeFilter(...b)),
|
918
928
|
style: { height: "100vh" },
|
919
929
|
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
930
|
}, [
|
921
|
-
|
922
|
-
(p = n.scheme) != null && p.length ? (
|
931
|
+
r("div", Ws, [
|
932
|
+
(p = n.scheme) != null && p.length ? (a(), v(g, {
|
923
933
|
key: 0,
|
924
934
|
ref: "filter",
|
925
935
|
scheme: n.scheme,
|
@@ -933,10 +943,10 @@ function Ws(t, e, n, o, s, a) {
|
|
933
943
|
onFilterChange: e[1] || (e[1] = (b) => t.$emit("filterChange", b)),
|
934
944
|
closeFilterBtn: !0,
|
935
945
|
onFilterClose: e[2] || (e[2] = (b) => s.isFilters = !1)
|
936
|
-
}, null, 8, ["scheme", "token"])) :
|
946
|
+
}, null, 8, ["scheme", "token"])) : k("", !0)
|
937
947
|
])
|
938
948
|
], 512), [
|
939
|
-
[
|
949
|
+
[Y, s.isFilters]
|
940
950
|
])
|
941
951
|
]))
|
942
952
|
];
|
@@ -945,25 +955,25 @@ function Ws(t, e, n, o, s, a) {
|
|
945
955
|
})
|
946
956
|
], 64);
|
947
957
|
}
|
948
|
-
const
|
958
|
+
const Hs = /* @__PURE__ */ T(Es, [["render", Rs]]), Ks = {
|
949
959
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
950
|
-
},
|
960
|
+
}, Js = {
|
951
961
|
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
962
|
"aria-label": "Tabs",
|
953
963
|
role: "tablist",
|
954
964
|
"aria-orientation": "horizontal"
|
955
|
-
},
|
956
|
-
function
|
957
|
-
return
|
958
|
-
(
|
965
|
+
}, Gs = ["onClick"];
|
966
|
+
function Qs(t, e, n, o, s, l) {
|
967
|
+
return a(), i("nav", Js, [
|
968
|
+
(a(!0), i(S, null, V(n.tabsList, (c) => (a(), i("button", {
|
959
969
|
onClick: (g) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
960
|
-
class:
|
970
|
+
class: $(["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
971
|
" 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
972
|
}])
|
963
|
-
},
|
973
|
+
}, I(c == null ? void 0 : c.label), 11, Gs))), 256))
|
964
974
|
]);
|
965
975
|
}
|
966
|
-
const
|
976
|
+
const Xs = /* @__PURE__ */ T(Ks, [["render", Qs]]), Ys = {}, Zs = {
|
967
977
|
xmlns: "http://www.w3.org/2000/svg",
|
968
978
|
viewBox: "0 0 24 24",
|
969
979
|
fill: "none",
|
@@ -973,51 +983,51 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Gs]]), Xs = {}, Ys = {
|
|
973
983
|
"stroke-linejoin": "round",
|
974
984
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
975
985
|
};
|
976
|
-
function
|
977
|
-
return
|
978
|
-
|
986
|
+
function en(t, e, n, o, s, l) {
|
987
|
+
return a(), i("svg", Zs, e[0] || (e[0] = [
|
988
|
+
r("path", {
|
979
989
|
stroke: "none",
|
980
990
|
d: "M0 0h24v24H0z",
|
981
991
|
fill: "none"
|
982
992
|
}, null, -1),
|
983
|
-
|
993
|
+
r("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
994
|
]));
|
985
995
|
}
|
986
|
-
const
|
987
|
-
components: { IconFilter2:
|
996
|
+
const tn = /* @__PURE__ */ T(Ys, [["render", en]]), sn = {
|
997
|
+
components: { IconFilter2: tn, IconCheck2: Ne },
|
988
998
|
props: { filterCustom: String, customList: Array }
|
989
|
-
},
|
990
|
-
function
|
999
|
+
}, 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]" }, rn = ["onClick"], an = { class: "text-sm text-gray-800" };
|
1000
|
+
function on(t, e, n, o, s, l) {
|
991
1001
|
const c = h("IconFilter2"), g = h("IconCheck2"), p = h("VsPopover");
|
992
|
-
return
|
1002
|
+
return a(), v(p, {
|
993
1003
|
ref: "popover",
|
994
1004
|
placement: "bottom"
|
995
1005
|
}, {
|
996
|
-
reference:
|
997
|
-
|
1006
|
+
reference: D(() => [
|
1007
|
+
r("button", nn, [
|
998
1008
|
y(c, {
|
999
1009
|
height: "20",
|
1000
1010
|
width: "20"
|
1001
1011
|
})
|
1002
1012
|
])
|
1003
1013
|
]),
|
1004
|
-
default:
|
1005
|
-
|
1006
|
-
(
|
1014
|
+
default: D(() => [
|
1015
|
+
r("div", ln, [
|
1016
|
+
(a(!0), i(S, null, V(n.customList, (b, d) => (a(), i("button", {
|
1007
1017
|
onClick: (_) => {
|
1008
1018
|
var x;
|
1009
1019
|
t.$emit("update:filterCustom", b == null ? void 0 : b.name), (x = t.$refs) == null || x.popover.togglePopover();
|
1010
1020
|
},
|
1011
1021
|
key: d,
|
1012
|
-
class:
|
1022
|
+
class: $(["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
1023
|
}, [
|
1014
|
-
|
1015
|
-
n.filterCustom === (b == null ? void 0 : b.name) ? (
|
1024
|
+
r("span", an, I(b == null ? void 0 : b.label), 1),
|
1025
|
+
n.filterCustom === (b == null ? void 0 : b.name) ? (a(), v(g, {
|
1016
1026
|
key: 0,
|
1017
1027
|
class: "ml-auto size-3 shrink-0"
|
1018
|
-
})) :
|
1019
|
-
], 10,
|
1020
|
-
|
1028
|
+
})) : k("", !0)
|
1029
|
+
], 10, rn))), 128)),
|
1030
|
+
r("button", {
|
1021
1031
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1022
1032
|
onClick: e[0] || (e[0] = (b) => {
|
1023
1033
|
var d;
|
@@ -1029,7 +1039,7 @@ function rn(t, e, n, o, s, a) {
|
|
1029
1039
|
_: 1
|
1030
1040
|
}, 512);
|
1031
1041
|
}
|
1032
|
-
const
|
1042
|
+
const dn = /* @__PURE__ */ T(sn, [["render", on]]), un = { class: "flex items-center gap-x-2" }, cn = {
|
1033
1043
|
__name: "admin-table-custom-buttons",
|
1034
1044
|
props: {
|
1035
1045
|
slots: Object,
|
@@ -1037,7 +1047,7 @@ const on = /* @__PURE__ */ T(tn, [["render", rn]]), dn = { class: "flex items-ce
|
|
1037
1047
|
},
|
1038
1048
|
setup(t) {
|
1039
1049
|
var g, p, b, d, _;
|
1040
|
-
const { asyncTemplateSlot: e } = (_ = (d = (b = (p = (g =
|
1050
|
+
const { asyncTemplateSlot: e } = (_ = (d = (b = (p = (g = Ee()) == null ? void 0 : g.appContext) == null ? void 0 : p.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, n = J(""), o = J(""), s = t, l = () => {
|
1041
1051
|
var x, f, C, m, w;
|
1042
1052
|
if ((x = s.slots) != null && x.panelLeft || (o.value = "div"), (C = (f = s.slots) == null ? void 0 : f.panelLeft) != null && C.includes("<")) {
|
1043
1053
|
const A = e("PanelLeft", (m = s.slots) == null ? void 0 : m.panelLeft, [
|
@@ -1056,19 +1066,19 @@ const on = /* @__PURE__ */ T(tn, [["render", rn]]), dn = { class: "flex items-ce
|
|
1056
1066
|
} else
|
1057
1067
|
n.value = (w = s.slots) == null ? void 0 : w.panelRight;
|
1058
1068
|
};
|
1059
|
-
return
|
1060
|
-
(
|
1061
|
-
(
|
1069
|
+
return l(), c(), (x, f) => (a(), i("div", un, [
|
1070
|
+
(a(), v(G(o.value), { data: t.data }, null, 8, ["data"])),
|
1071
|
+
(a(), v(G(n.value), { data: t.data }, null, 8, ["data"]))
|
1062
1072
|
]));
|
1063
1073
|
}
|
1064
|
-
},
|
1074
|
+
}, pn = {
|
1065
1075
|
__name: "admin-custom-button-add",
|
1066
1076
|
props: {
|
1067
1077
|
slots: Object
|
1068
1078
|
},
|
1069
1079
|
setup(t) {
|
1070
|
-
var
|
1071
|
-
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (
|
1080
|
+
var l, c, g, p, b;
|
1081
|
+
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (l = Ee()) == 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
1082
|
return (() => {
|
1073
1083
|
var d, _, x, f, C;
|
1074
1084
|
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (x = (_ = o.slots) == null ? void 0 : _.addButton) != null && x.includes("<")) {
|
@@ -1078,18 +1088,18 @@ const on = /* @__PURE__ */ T(tn, [["render", rn]]), dn = { class: "flex items-ce
|
|
1078
1088
|
n.value = m;
|
1079
1089
|
} else
|
1080
1090
|
n.value = (C = o.slots) == null ? void 0 : C.addButton;
|
1081
|
-
})(), (d, _) => n.value ? (
|
1091
|
+
})(), (d, _) => n.value ? (a(), v(G(n.value), {
|
1082
1092
|
key: 0,
|
1083
|
-
IconPlus:
|
1084
|
-
})) :
|
1093
|
+
IconPlus: Q
|
1094
|
+
})) : k("", !0);
|
1085
1095
|
}
|
1086
|
-
},
|
1096
|
+
}, hn = {
|
1087
1097
|
key: 0,
|
1088
1098
|
class: "px-1 py-3 text-gray-800 font-[500]"
|
1089
|
-
},
|
1099
|
+
}, bn = {
|
1090
1100
|
key: 1,
|
1091
1101
|
class: "px-1 py-3 text-gray-800 font-[700]"
|
1092
|
-
},
|
1102
|
+
}, fn = {
|
1093
1103
|
__name: "admin-table-totals-list",
|
1094
1104
|
props: {
|
1095
1105
|
columns: { type: Array, default: () => [] },
|
@@ -1097,23 +1107,23 @@ const on = /* @__PURE__ */ T(tn, [["render", rn]]), dn = { class: "flex items-ce
|
|
1097
1107
|
} }
|
1098
1108
|
},
|
1099
1109
|
setup(t) {
|
1100
|
-
return (e, n) => (
|
1101
|
-
(
|
1110
|
+
return (e, n) => (a(), i("tr", null, [
|
1111
|
+
(a(!0), i(S, null, V(t.columns, (o) => {
|
1102
1112
|
var s;
|
1103
|
-
return
|
1113
|
+
return a(), i(S, {
|
1104
1114
|
key: o == null ? void 0 : o.name
|
1105
1115
|
}, [
|
1106
|
-
(s = t.agg) != null && s[o == null ? void 0 : o.name] ? (
|
1107
|
-
y(
|
1116
|
+
(s = t.agg) != null && s[o == null ? void 0 : o.name] ? (a(), i("td", hn, [
|
1117
|
+
y(X, {
|
1108
1118
|
column: o,
|
1109
1119
|
row: t.agg
|
1110
1120
|
}, null, 8, ["column", "row"])
|
1111
|
-
])) : (
|
1121
|
+
])) : (a(), i("td", bn))
|
1112
1122
|
], 64);
|
1113
1123
|
}), 128))
|
1114
1124
|
]));
|
1115
1125
|
}
|
1116
|
-
},
|
1126
|
+
}, gn = {}, mn = {
|
1117
1127
|
xmlns: "http://www.w3.org/2000/svg",
|
1118
1128
|
viewBox: "0 0 24 24",
|
1119
1129
|
fill: "none",
|
@@ -1123,18 +1133,18 @@ const on = /* @__PURE__ */ T(tn, [["render", rn]]), dn = { class: "flex items-ce
|
|
1123
1133
|
"stroke-linejoin": "round",
|
1124
1134
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1125
1135
|
};
|
1126
|
-
function
|
1127
|
-
return
|
1128
|
-
|
1136
|
+
function xn(t, e, n, o, s, l) {
|
1137
|
+
return a(), i("svg", mn, e[0] || (e[0] = [
|
1138
|
+
r("path", {
|
1129
1139
|
stroke: "none",
|
1130
1140
|
d: "M0 0h24v24H0z",
|
1131
1141
|
fill: "none"
|
1132
1142
|
}, null, -1),
|
1133
|
-
|
1143
|
+
r("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1134
1144
|
]));
|
1135
1145
|
}
|
1136
|
-
const
|
1137
|
-
components: { IconChevronDown:
|
1146
|
+
const yn = /* @__PURE__ */ T(gn, [["render", xn]]), vn = pt({
|
1147
|
+
components: { IconChevronDown: tt, IconCheck: yn },
|
1138
1148
|
props: {
|
1139
1149
|
total: { type: Number, default: () => 0 },
|
1140
1150
|
pageSize: { type: Number, default: () => 20 },
|
@@ -1203,7 +1213,7 @@ const xn = /* @__PURE__ */ T(fn, [["render", mn]]), yn = ct({
|
|
1203
1213
|
let n = Math.max(t - e, 1), o = n + this.maxPages - 1;
|
1204
1214
|
o > this.pagesCount && (o = this.pagesCount, n = Math.max(o - this.maxPages + 1, 1)), this.pages = Array.from(
|
1205
1215
|
{ length: o - n + 1 },
|
1206
|
-
(s,
|
1216
|
+
(s, l) => n + l
|
1207
1217
|
);
|
1208
1218
|
},
|
1209
1219
|
handleClickPrev() {
|
@@ -1219,17 +1229,17 @@ const xn = /* @__PURE__ */ T(fn, [["render", mn]]), yn = ct({
|
|
1219
1229
|
t.preventDefault(), t.target.blur();
|
1220
1230
|
}
|
1221
1231
|
}
|
1222
|
-
}), kn = { class: "flex items-center w-full" },
|
1232
|
+
}), 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
1233
|
key: 0,
|
1224
1234
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1225
|
-
},
|
1226
|
-
function An(t, e, n, o, s,
|
1235
|
+
}, $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"];
|
1236
|
+
function An(t, e, n, o, s, l) {
|
1227
1237
|
const c = h("IconChevronDown"), g = h("IconCheck");
|
1228
|
-
return
|
1229
|
-
|
1238
|
+
return a(), i("nav", kn, [
|
1239
|
+
r("button", {
|
1230
1240
|
type: "button",
|
1231
1241
|
onClick: e[0] || (e[0] = (...p) => t.handleClickPrev && t.handleClickPrev(...p)),
|
1232
|
-
class:
|
1242
|
+
class: $(["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
1243
|
}, [
|
1234
1244
|
y(c, {
|
1235
1245
|
height: "16",
|
@@ -1237,21 +1247,21 @@ function An(t, e, n, o, s, a) {
|
|
1237
1247
|
class: "rotate-90"
|
1238
1248
|
})
|
1239
1249
|
], 2),
|
1240
|
-
|
1241
|
-
|
1250
|
+
r("div", _n, [
|
1251
|
+
r("span", {
|
1242
1252
|
ref: "currentPage",
|
1243
1253
|
contenteditable: "true",
|
1244
|
-
onKeydown: e[1] || (e[1] =
|
1254
|
+
onKeydown: e[1] || (e[1] = ht((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
|
1245
1255
|
onBlur: e[2] || (e[2] = (p) => t.handleSetPage(p.target.innerText)),
|
1246
1256
|
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
|
-
|
1257
|
+
}, I(t.page), 545),
|
1258
|
+
e[5] || (e[5] = r("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1259
|
+
r("span", Cn, I(t.pagesCount), 1)
|
1250
1260
|
]),
|
1251
|
-
|
1261
|
+
r("button", {
|
1252
1262
|
type: "button",
|
1253
1263
|
onClick: e[3] || (e[3] = (...p) => t.handleClickNext && t.handleClickNext(...p)),
|
1254
|
-
class:
|
1264
|
+
class: $([{ "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
1265
|
}, [
|
1256
1266
|
y(c, {
|
1257
1267
|
height: "16",
|
@@ -1259,62 +1269,62 @@ function An(t, e, n, o, s, a) {
|
|
1259
1269
|
class: "-rotate-90"
|
1260
1270
|
})
|
1261
1271
|
], 2),
|
1262
|
-
t.pageSizes.length ? (
|
1263
|
-
|
1264
|
-
|
1265
|
-
(
|
1272
|
+
t.pageSizes.length ? (a(), i("div", wn, [
|
1273
|
+
r("div", $n, [
|
1274
|
+
U(r("div", Sn, [
|
1275
|
+
(a(!0), i(S, null, V(t.pageSizes, (p) => (a(), i("button", {
|
1266
1276
|
type: "button",
|
1267
1277
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1268
1278
|
onClick: (b) => t.pageSizeLocal = p
|
1269
1279
|
}, [
|
1270
|
-
|
1271
|
-
p === t.pageSizeLocal ? (
|
1280
|
+
P(I(p) + " ", 1),
|
1281
|
+
p === t.pageSizeLocal ? (a(), v(g, {
|
1272
1282
|
key: 0,
|
1273
1283
|
width: "14",
|
1274
1284
|
height: "14",
|
1275
1285
|
class: "text-blue-600"
|
1276
|
-
})) :
|
1286
|
+
})) : k("", !0)
|
1277
1287
|
], 8, Tn))), 256))
|
1278
1288
|
], 512), [
|
1279
|
-
[
|
1289
|
+
[Y, t.isDropdownOpen]
|
1280
1290
|
]),
|
1281
|
-
t.pageSizes.length ? (
|
1291
|
+
t.pageSizes.length ? (a(), i("button", {
|
1282
1292
|
key: 0,
|
1283
1293
|
type: "button",
|
1284
1294
|
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
1295
|
onClick: e[4] || (e[4] = (p) => t.isDropdownOpen = !t.isDropdownOpen)
|
1286
1296
|
}, [
|
1287
|
-
|
1297
|
+
P(I(t.pageSizeLocal) + " ", 1),
|
1288
1298
|
y(c, {
|
1289
1299
|
height: "16",
|
1290
1300
|
width: "16"
|
1291
1301
|
})
|
1292
|
-
])) :
|
1302
|
+
])) : k("", !0)
|
1293
1303
|
])
|
1294
|
-
])) :
|
1304
|
+
])) : k("", !0)
|
1295
1305
|
]);
|
1296
1306
|
}
|
1297
|
-
const
|
1307
|
+
const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
|
1298
1308
|
props: { table: String, title: String, search: String },
|
1299
1309
|
components: {
|
1300
|
-
AdminTableControl:
|
1301
|
-
AdminTableExport:
|
1310
|
+
AdminTableControl: It,
|
1311
|
+
AdminTableExport: Zt,
|
1302
1312
|
// 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:
|
1313
|
+
AdminTableColumnsHidden: xs,
|
1314
|
+
AdminTableColumn: yt,
|
1315
|
+
AdminNodata: st,
|
1316
|
+
IconPlus: Q,
|
1317
|
+
IconSearch: nt,
|
1318
|
+
AdminTableCardInfo: Ns,
|
1319
|
+
IconOpenCard: lt,
|
1320
|
+
AdminComponentIs: X,
|
1321
|
+
AdminTableFilters: Hs,
|
1322
|
+
AdminTableTabs: Xs,
|
1323
|
+
AdminTableCustomFilters: dn,
|
1324
|
+
AdminTableCustomButtons: cn,
|
1325
|
+
AdminCustomButtonAdd: pn,
|
1326
|
+
AdminTableTotalsList: fn,
|
1327
|
+
AdminTablePagination: In
|
1318
1328
|
},
|
1319
1329
|
data() {
|
1320
1330
|
return {
|
@@ -1341,6 +1351,12 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1341
1351
|
window.removeEventListener("reloadTablePage", this.getTableData);
|
1342
1352
|
},
|
1343
1353
|
computed: {
|
1354
|
+
color() {
|
1355
|
+
return E.value.sidebarColor || "blue";
|
1356
|
+
},
|
1357
|
+
fontSize() {
|
1358
|
+
return `text-[${E.value.fontSize || 13}px]`;
|
1359
|
+
},
|
1344
1360
|
defaultPage() {
|
1345
1361
|
var t, e;
|
1346
1362
|
return ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1;
|
@@ -1374,7 +1390,7 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1374
1390
|
this.tableData = null, this.columnsWidth = {}, await this.getTableData();
|
1375
1391
|
},
|
1376
1392
|
searchValue: {
|
1377
|
-
handler:
|
1393
|
+
handler: rt(async function(t) {
|
1378
1394
|
var e;
|
1379
1395
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1380
1396
|
...this.$route,
|
@@ -1416,7 +1432,7 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1416
1432
|
},
|
1417
1433
|
columns(t) {
|
1418
1434
|
var e, n, o, s;
|
1419
|
-
this.visibleColumns = t == null ? void 0 : t.map((
|
1435
|
+
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
1436
|
...this.$route,
|
1421
1437
|
query: {
|
1422
1438
|
...(n = this.$route) == null ? void 0 : n.query,
|
@@ -1427,8 +1443,8 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1427
1443
|
},
|
1428
1444
|
methods: {
|
1429
1445
|
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, (
|
1446
|
+
var t, e, n, o, s, l, c, g, p, b, d, _, x, f, C, m, w, A, F, j, z;
|
1447
|
+
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 = ((x = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : x.state) || null, this.filterCustom = ((C = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : C.custom) || null, this.searchValue = ((w = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : w.search) || "", this.visibleColumns = ((j = (F = (A = this.$route) == null ? void 0 : A.query) == null ? void 0 : F.columns) == null ? void 0 : j.split(",")) || [], (z = this.$route) != null && z.query.card && (this.isVisibleCardInfo = !0);
|
1432
1448
|
},
|
1433
1449
|
rowWidth(t) {
|
1434
1450
|
var n, o;
|
@@ -1442,7 +1458,7 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1442
1458
|
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
1459
|
},
|
1444
1460
|
async getTableData() {
|
1445
|
-
var t, e, n, o, s,
|
1461
|
+
var t, e, n, o, s, l, c, g, p, b, d;
|
1446
1462
|
try {
|
1447
1463
|
const { data: _ } = await M.get(`/api/template/table/${this.table}`), x = await M.get(`/api/table-data/${this.table}`, {
|
1448
1464
|
params: {
|
@@ -1458,15 +1474,15 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1458
1474
|
this.tableData = {
|
1459
1475
|
..._,
|
1460
1476
|
...(x == null ? void 0 : x.data) || {}
|
1461
|
-
}, this.initialHiddenColumns = (
|
1477
|
+
}, this.initialHiddenColumns = (l = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((f) => (f == null ? void 0 : f.hidden) !== !0)) == null ? void 0 : s.map((f) => f == null ? void 0 : f.name)) == null ? void 0 : l.join(","), (c = this.visibleColumns) != null && c.length ? (g = this.tableData) == null || g.columns.forEach((f) => {
|
1462
1478
|
var C;
|
1463
1479
|
(C = this.visibleColumns) != null && C.includes(f == null ? void 0 : f.name) ? f.hidden = !1 : f.hidden = !0;
|
1464
1480
|
}) : this.visibleColumns = (d = (b = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : b.filter((f) => (f == null ? void 0 : f.hidden) !== !0)) == null ? void 0 : d.map((f) => f == null ? void 0 : f.name), setTimeout(() => {
|
1465
1481
|
var f, C;
|
1466
1482
|
(C = (f = this.tableData) == null ? void 0 : f.columns) == null || C.forEach(({ name: m }) => {
|
1467
|
-
var w, A,
|
1483
|
+
var w, A, F, j, z, W;
|
1468
1484
|
(A = (w = this.columnsWidth) == null ? void 0 : w[m]) != null && A.ref && (this.columnsWidth[m].width = parseInt(
|
1469
|
-
(
|
1485
|
+
(W = (z = (j = (F = this.columnsWidth) == null ? void 0 : F[m]) == null ? void 0 : j.ref) == null ? void 0 : z.getBoundingClientRect()) == null ? void 0 : W.width
|
1470
1486
|
) + "px");
|
1471
1487
|
});
|
1472
1488
|
});
|
@@ -1518,64 +1534,61 @@ const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
|
1518
1534
|
},
|
1519
1535
|
getCustomStyles(t) {
|
1520
1536
|
return [
|
1521
|
-
t != null && t.link ? " text-blue-
|
1537
|
+
t != null && t.link ? " text-blue-800 hover:underline decoration-1" : "",
|
1522
1538
|
t != null && t.align ? ` text-${(t == null ? void 0 : t.align) || "left"}` : "",
|
1523
1539
|
`text-${(t == null ? void 0 : t.wrap) || "wrap"}`
|
1524
1540
|
];
|
1525
1541
|
}
|
1526
1542
|
}
|
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 = {
|
1543
|
+
}, 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
1544
|
key: 0,
|
1532
1545
|
class: "w-[70px] sticky right-0 top-0"
|
1533
|
-
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative" }, En = ["onClick"], Un = ["onClick"], Wn = ["onClick"], Rn = { class: "
|
1534
|
-
function
|
1535
|
-
var
|
1536
|
-
const c = h("AdminCustomButtonAdd"), g = h("IconPlus"), p = h("router-link"), b = h("AdminTableTabs"), d = h("IconSearch"), _ = h("VsText"), x = h("AdminTableCustomButtons"), f = h("AdminTableCustomFilters"), C = h("AdminTableColumnsHidden"), m = h("AdminTableExport"), w = h("AdminTableFilters"), A = h("IconOpenCard"),
|
1537
|
-
return
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
(
|
1546
|
+
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"], Wn = ["onClick"], Rn = { class: "px-1 py-2 flex justify-start items-end w-full" }, Hn = { 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 };
|
1547
|
+
function Qn(t, e, n, o, s, l) {
|
1548
|
+
var Z, ee, te, se, ne, le, re, ae, oe, ie, de, ue, ce, pe, he, be, fe, ge, me, xe, ye, ve, ke, _e, Ce, we, $e, Se, Te, Ae, Ie, De, Ve;
|
1549
|
+
const c = h("AdminCustomButtonAdd"), g = h("IconPlus"), p = h("router-link"), b = h("AdminTableTabs"), d = h("IconSearch"), _ = h("VsText"), x = h("AdminTableCustomButtons"), f = h("AdminTableCustomFilters"), C = h("AdminTableColumnsHidden"), m = h("AdminTableExport"), w = h("AdminTableFilters"), A = h("IconOpenCard"), F = h("AdminTableColumn"), j = h("AdminComponentIs"), z = h("AdminTableControl"), W = h("AdminTableTotalsList"), Ue = h("AdminNodata"), We = h("AdminTablePagination"), Re = h("AdminTableCardInfo");
|
1550
|
+
return a(), i("div", Vn, [
|
1551
|
+
r("div", Pn, [
|
1552
|
+
r("h2", Fn, I(n.title), 1),
|
1553
|
+
l.isForm ? (a(), i(S, { key: 0 }, [
|
1554
|
+
(ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (a(), v(c, {
|
1542
1555
|
key: 0,
|
1543
|
-
slots: (
|
1544
|
-
}, null, 8, ["slots"])) : (
|
1556
|
+
slots: (te = s.tableData) == null ? void 0 : te.slots
|
1557
|
+
}, null, 8, ["slots"])) : (a(), v(p, {
|
1545
1558
|
key: 1,
|
1546
|
-
to: `/add?table=${(
|
1547
|
-
class:
|
1559
|
+
to: `/add?table=${(ne = (se = t.$route) == null ? void 0 : se.params) == null ? void 0 : ne.catchAll}`,
|
1560
|
+
class: $(`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
1561
|
}, {
|
1549
|
-
default:
|
1562
|
+
default: D(() => [
|
1550
1563
|
y(g, {
|
1551
1564
|
height: "16",
|
1552
1565
|
width: "16"
|
1553
1566
|
}),
|
1554
|
-
e[5] || (e[5] =
|
1567
|
+
e[5] || (e[5] = P(" Додати "))
|
1555
1568
|
]),
|
1556
1569
|
_: 1
|
1557
|
-
}, 8, ["to"]))
|
1558
|
-
], 64)) :
|
1570
|
+
}, 8, ["to", "class"]))
|
1571
|
+
], 64)) : k("", !0)
|
1559
1572
|
]),
|
1560
|
-
|
1561
|
-
style:
|
1562
|
-
height: ((
|
1573
|
+
r("div", {
|
1574
|
+
style: K({
|
1575
|
+
height: ((le = t.$adminSettings) == null ? void 0 : le.header) === !1 ? "calc(100vh - 100px)" : "calc(100vh - 155px)"
|
1563
1576
|
}),
|
1564
|
-
class: "bg-gray-
|
1577
|
+
class: "bg-gray-100 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1565
1578
|
}, [
|
1566
|
-
|
1567
|
-
(ae = (
|
1579
|
+
r("div", jn, [
|
1580
|
+
(ae = (re = s.tableData) == null ? void 0 : re.filterState) != null && ae.length ? (a(), v(b, {
|
1568
1581
|
key: 0,
|
1569
|
-
tabsList: (
|
1582
|
+
tabsList: (oe = s.tableData) == null ? void 0 : oe.filterState,
|
1570
1583
|
filterState: s.filterState,
|
1571
1584
|
"onUpdate:filterState": e[0] || (e[0] = (u) => s.filterState = u)
|
1572
|
-
}, null, 8, ["tabsList", "filterState"])) :
|
1573
|
-
|
1574
|
-
|
1575
|
-
class:
|
1585
|
+
}, null, 8, ["tabsList", "filterState"])) : k("", !0),
|
1586
|
+
r("div", Ln, [
|
1587
|
+
r("div", {
|
1588
|
+
class: $([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1576
1589
|
}, [
|
1577
|
-
|
1578
|
-
class:
|
1590
|
+
r("div", {
|
1591
|
+
class: $(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1579
1592
|
}, [
|
1580
1593
|
y(d, {
|
1581
1594
|
height: "14",
|
@@ -1589,185 +1602,193 @@ function Gn(t, e, n, o, s, a) {
|
|
1589
1602
|
clearable: !0,
|
1590
1603
|
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
1604
|
}, null, 8, ["modelValue", "placeholder"]),
|
1592
|
-
|
1593
|
-
(
|
1605
|
+
r("div", Mn, [
|
1606
|
+
(ie = s.tableData) != null && ie.slots ? (a(), v(x, {
|
1594
1607
|
key: 0,
|
1595
1608
|
data: s.tableData,
|
1596
|
-
slots: (
|
1597
|
-
}, null, 8, ["data", "slots"])) :
|
1598
|
-
(
|
1609
|
+
slots: (de = s.tableData) == null ? void 0 : de.slots
|
1610
|
+
}, null, 8, ["data", "slots"])) : k("", !0),
|
1611
|
+
(ce = (ue = s.tableData) == null ? void 0 : ue.filterCustom) != null && ce.length ? (a(), v(f, {
|
1599
1612
|
key: 1,
|
1600
|
-
customList: (
|
1613
|
+
customList: (pe = s.tableData) == null ? void 0 : pe.filterCustom,
|
1601
1614
|
filterCustom: s.filterCustom,
|
1602
1615
|
"onUpdate:filterCustom": e[2] || (e[2] = (u) => s.filterCustom = u)
|
1603
|
-
}, null, 8, ["customList", "filterCustom"])) :
|
1616
|
+
}, null, 8, ["customList", "filterCustom"])) : k("", !0),
|
1604
1617
|
y(C, {
|
1605
|
-
columns: (
|
1618
|
+
columns: (he = s.tableData) == null ? void 0 : he.columns,
|
1606
1619
|
onUpdateColumns: e[3] || (e[3] = (u) => s.tableData.columns = u)
|
1607
1620
|
}, null, 8, ["columns"]),
|
1608
|
-
((
|
1621
|
+
((be = s.tableData) == null ? void 0 : be.export) !== !1 ? (a(), v(m, {
|
1609
1622
|
key: 2,
|
1610
1623
|
table: n.table,
|
1611
|
-
columns: (
|
1624
|
+
columns: (fe = s.tableData) == null ? void 0 : fe.columns,
|
1612
1625
|
page: s.page,
|
1613
1626
|
"filter-state": s.filterState,
|
1614
1627
|
"filter-custom": s.filterCustom,
|
1615
1628
|
filters: s.filters
|
1616
|
-
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) :
|
1617
|
-
(
|
1629
|
+
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : k("", !0),
|
1630
|
+
(ge = s.filterScheme) != null && ge.length ? (a(), v(w, {
|
1618
1631
|
key: 3,
|
1619
1632
|
scheme: s.filterScheme,
|
1620
1633
|
onFilters: s.onFilters,
|
1621
1634
|
table: n.table,
|
1622
|
-
onFilterChange:
|
1623
|
-
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) :
|
1624
|
-
|
1625
|
-
onClick: e[4] || (e[4] = (...u) =>
|
1635
|
+
onFilterChange: l.filterChange
|
1636
|
+
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : k("", !0),
|
1637
|
+
r("button", {
|
1638
|
+
onClick: e[4] || (e[4] = (...u) => l.toggleCardInfo && l.toggleCardInfo(...u)),
|
1626
1639
|
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
1640
|
}, [
|
1628
1641
|
y(A, {
|
1629
|
-
class:
|
1642
|
+
class: $({ "rotate-180 duration-300": !s.isVisibleCardInfo })
|
1630
1643
|
}, null, 8, ["class"])
|
1631
1644
|
])
|
1632
1645
|
])
|
1633
1646
|
], 2),
|
1634
|
-
|
1635
|
-
class:
|
1647
|
+
r("div", {
|
1648
|
+
class: $(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1636
1649
|
}, [
|
1637
|
-
|
1638
|
-
style:
|
1639
|
-
height: `calc(100vh - ${((
|
1650
|
+
r("div", {
|
1651
|
+
style: K({
|
1652
|
+
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
1653
|
}),
|
1641
1654
|
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
1655
|
}, [
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1656
|
+
r("div", zn, [
|
1657
|
+
l.isNoData ? (a(), v(Ue, { key: 1 })) : (a(), i("table", {
|
1658
|
+
key: 0,
|
1659
|
+
class: $([l.fontSize, "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700 my-2"])
|
1660
|
+
}, [
|
1661
|
+
r("thead", qn, [
|
1662
|
+
r("tr", Bn, [
|
1663
|
+
(a(!0), i(S, null, V(l.columns, (u) => {
|
1664
|
+
var q, B;
|
1665
|
+
return a(), v(F, {
|
1650
1666
|
key: u.name,
|
1651
|
-
style:
|
1652
|
-
width: ((
|
1667
|
+
style: K({
|
1668
|
+
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
1669
|
textAlign: u == null ? void 0 : u.align,
|
1654
1670
|
wordBreak: u == null ? void 0 : u.wrap
|
1655
1671
|
}),
|
1656
1672
|
data: u,
|
1657
1673
|
activeColumn: s.activeColumn,
|
1658
|
-
onUpdateRef: (
|
1659
|
-
var
|
1660
|
-
(
|
1674
|
+
onUpdateRef: (R) => {
|
1675
|
+
var O, N;
|
1676
|
+
(N = (O = s.columnsWidth) == null ? void 0 : O[u == null ? void 0 : u.name]) != null && N.ref || (s.columnsWidth[u.name] = { ref: R });
|
1661
1677
|
},
|
1662
|
-
onChangeActive:
|
1678
|
+
onChangeActive: l.changeActiveColumn
|
1663
1679
|
}, null, 8, ["style", "data", "activeColumn", "onUpdateRef", "onChangeActive"]);
|
1664
1680
|
}), 128)),
|
1665
|
-
(
|
1681
|
+
(Ce = (_e = l.getActions) == null ? void 0 : _e.filter(
|
1666
1682
|
(u) => u !== "add" && u !== "view"
|
1667
|
-
)) != null &&
|
1683
|
+
)) != null && Ce.length ? (a(), i("th", On)) : k("", !0)
|
1668
1684
|
])
|
1669
1685
|
]),
|
1670
|
-
|
1671
|
-
(
|
1672
|
-
var
|
1673
|
-
return
|
1674
|
-
key: (u == null ? void 0 : u.id) ||
|
1675
|
-
class:
|
1676
|
-
"bg-gray-50": ((
|
1677
|
-
})
|
1686
|
+
r("tbody", Nn, [
|
1687
|
+
(a(!0), i(S, null, V((we = s.tableData) == null ? void 0 : we.rows, (u, q) => {
|
1688
|
+
var B, R, O, N, Pe, Fe, je, Le, Me, ze, qe, Be;
|
1689
|
+
return a(), i("tr", {
|
1690
|
+
key: (u == null ? void 0 : u.id) || q,
|
1691
|
+
class: $(["odd:bg-gray-50", {
|
1692
|
+
"bg-gray-50": ((R = (B = t.$route) == null ? void 0 : B.query) == null ? void 0 : R.card) === (u == null ? void 0 : u.id)
|
1693
|
+
}])
|
1678
1694
|
}, [
|
1679
|
-
|
1680
|
-
class:
|
1681
|
-
(
|
1695
|
+
r("td", {
|
1696
|
+
class: $(["px-1 py-2.5 pr-5", [
|
1697
|
+
(O = l.columns[0]) != null && O.align ? `text-${((N = l.columns[0]) == null ? void 0 : N.align) || "left"}` : ""
|
1682
1698
|
]]),
|
1683
|
-
onClick: (
|
1699
|
+
onClick: (L) => l.changeActiveCardInfo(u == null ? void 0 : u.id)
|
1684
1700
|
}, [
|
1685
|
-
|
1686
|
-
onClick: (
|
1687
|
-
|
1701
|
+
r("button", {
|
1702
|
+
onClick: (L) => {
|
1703
|
+
l.pushToCard(u == null ? void 0 : u.id), l.pushToLinkCard(l.columns[0], u);
|
1688
1704
|
},
|
1689
|
-
class:
|
1690
|
-
...
|
1691
|
-
((
|
1705
|
+
class: $(["font-medium text-start", [
|
1706
|
+
...l.getCustomStyles(l.columns[0]),
|
1707
|
+
((Pe = this.tableData) == null ? void 0 : Pe.card) === !1 ? "" : ` text-${l.color}-800 decoration-2 focus:outline-none focus:underline hover:text-${l.color}-700 hover:underline`
|
1692
1708
|
]])
|
1693
1709
|
}, [
|
1694
|
-
y(
|
1710
|
+
y(j, {
|
1695
1711
|
row: u,
|
1696
|
-
column:
|
1712
|
+
column: l.columns[0],
|
1697
1713
|
table: n.table,
|
1698
|
-
onUpdateTable:
|
1714
|
+
onUpdateTable: l.getTableData
|
1699
1715
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1700
1716
|
], 10, Un)
|
1701
1717
|
], 10, En),
|
1702
|
-
(
|
1703
|
-
onClick: (
|
1704
|
-
|
1718
|
+
(a(!0), i(S, null, V((Fe = l.columns) == null ? void 0 : Fe.slice(1), (L) => (a(), i("td", {
|
1719
|
+
onClick: (tl) => {
|
1720
|
+
l.changeActiveCardInfo(u == null ? void 0 : u.id), l.pushToLinkCard(L, u);
|
1705
1721
|
},
|
1706
|
-
class:
|
1707
|
-
key:
|
1722
|
+
class: $(["px-1 py-2.5 pr-5", l.getCustomStyles(L)]),
|
1723
|
+
key: L.name
|
1708
1724
|
}, [
|
1709
|
-
y(
|
1725
|
+
y(j, {
|
1710
1726
|
row: u,
|
1711
|
-
column:
|
1727
|
+
column: L,
|
1712
1728
|
table: n.table,
|
1713
|
-
onUpdateTable:
|
1729
|
+
onUpdateTable: l.getTableData
|
1714
1730
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1715
1731
|
], 10, Wn))), 128)),
|
1716
|
-
(
|
1717
|
-
(
|
1718
|
-
)) != null &&
|
1732
|
+
(Le = (je = l.getActions) == null ? void 0 : je.filter(
|
1733
|
+
(L) => L !== "add" && L !== "view"
|
1734
|
+
)) != null && Le.length ? (a(), i("td", {
|
1719
1735
|
key: 0,
|
1720
|
-
class:
|
1721
|
-
"bg-gray-50": ((
|
1722
|
-
"bg-white": ((
|
1736
|
+
class: $(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1737
|
+
"bg-gray-50": ((ze = (Me = t.$route) == null ? void 0 : Me.query) == null ? void 0 : ze.card) === (u == null ? void 0 : u.id) || !(q % 2),
|
1738
|
+
"bg-white": ((Be = (qe = t.$route) == null ? void 0 : qe.query) == null ? void 0 : Be.card) !== (u == null ? void 0 : u.id) && q % 2
|
1723
1739
|
}])
|
1724
1740
|
}, [
|
1725
1741
|
y(z, {
|
1726
|
-
actions:
|
1727
|
-
isForm:
|
1742
|
+
actions: l.getActions,
|
1743
|
+
isForm: l.isForm,
|
1728
1744
|
item: u,
|
1729
1745
|
table: n.table,
|
1730
|
-
onUpdateTable:
|
1746
|
+
onUpdateTable: l.getTableData
|
1731
1747
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1732
|
-
], 2)) :
|
1748
|
+
], 2)) : k("", !0)
|
1733
1749
|
], 2);
|
1734
1750
|
}), 128))
|
1735
1751
|
]),
|
1736
|
-
y(
|
1737
|
-
columns:
|
1738
|
-
agg: (
|
1752
|
+
y(W, {
|
1753
|
+
columns: l.columns,
|
1754
|
+
agg: ($e = s.tableData) == null ? void 0 : $e.agg
|
1739
1755
|
}, null, 8, ["columns", "agg"])
|
1740
|
-
]))
|
1756
|
+
], 2))
|
1741
1757
|
])
|
1742
1758
|
], 4)
|
1743
1759
|
], 2),
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1760
|
+
r("div", Rn, [
|
1761
|
+
r("div", Hn, [
|
1762
|
+
r("p", Kn, [
|
1763
|
+
r("span", Jn, [
|
1764
|
+
P(" Об'єктів: " + I(Intl.NumberFormat("ua").format(
|
1765
|
+
s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : (Te = s.tableData) == null ? void 0 : Te.filtered
|
1766
|
+
)) + " ", 1),
|
1767
|
+
s.limit < ((Ae = s.tableData) == null ? void 0 : Ae.filtered) ? (a(), i("span", Gn, " з " + I(Intl.NumberFormat("ua").format(((Ie = s.tableData) == null ? void 0 : Ie.filtered) || 0)), 1)) : k("", !0)
|
1768
|
+
])
|
1748
1769
|
])
|
1749
1770
|
]),
|
1750
|
-
Math.ceil((
|
1771
|
+
Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (a(), v(We, {
|
1751
1772
|
key: 0,
|
1752
|
-
class: "justify-end",
|
1753
|
-
"default-page": parseInt(
|
1754
|
-
total: ((
|
1755
|
-
onPageChange:
|
1773
|
+
class: "justify-end mr-10",
|
1774
|
+
"default-page": parseInt(l.defaultPage),
|
1775
|
+
total: ((Ve = s.tableData) == null ? void 0 : Ve.filtered) || 0,
|
1776
|
+
onPageChange: l.handlePageChange,
|
1756
1777
|
pageSize: parseInt(s.limit),
|
1757
1778
|
pageSizes: [10, 20, 50, 100]
|
1758
|
-
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) :
|
1779
|
+
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : k("", !0)
|
1759
1780
|
])
|
1760
1781
|
], 2),
|
1761
|
-
y(
|
1762
|
-
default:
|
1782
|
+
y(H, { name: "slide-fade" }, {
|
1783
|
+
default: D(() => {
|
1763
1784
|
var u;
|
1764
1785
|
return [
|
1765
|
-
s.isVisibleCardInfo ? (
|
1786
|
+
s.isVisibleCardInfo ? (a(), v(Re, {
|
1766
1787
|
key: 0,
|
1767
1788
|
table: n.table,
|
1768
1789
|
columns: (u = s.tableData) == null ? void 0 : u.columns,
|
1769
|
-
row:
|
1770
|
-
}, null, 8, ["table", "columns", "row"])) :
|
1790
|
+
row: l.activeCardRow
|
1791
|
+
}, null, 8, ["table", "columns", "row"])) : k("", !0)
|
1771
1792
|
];
|
1772
1793
|
}),
|
1773
1794
|
_: 1
|
@@ -1777,8 +1798,8 @@ function Gn(t, e, n, o, s, a) {
|
|
1777
1798
|
], 4)
|
1778
1799
|
]);
|
1779
1800
|
}
|
1780
|
-
const
|
1781
|
-
components: { AdminTable:
|
1801
|
+
const Xn = /* @__PURE__ */ T(Dn, [["render", Qn], ["__scopeId", "data-v-7d75f147"]]), Yn = {
|
1802
|
+
components: { AdminTable: Xn },
|
1782
1803
|
data() {
|
1783
1804
|
return {
|
1784
1805
|
table: !1,
|
@@ -1790,13 +1811,13 @@ const Qn = /* @__PURE__ */ T(In, [["render", Gn], ["__scopeId", "data-v-76a3cec3
|
|
1790
1811
|
$route: {
|
1791
1812
|
async handler() {
|
1792
1813
|
var t;
|
1793
|
-
(t =
|
1814
|
+
(t = Oe) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1794
1815
|
},
|
1795
1816
|
deep: !0
|
1796
1817
|
},
|
1797
1818
|
title(t) {
|
1798
1819
|
var e;
|
1799
|
-
t && (document.title = (((e =
|
1820
|
+
t && (document.title = (((e = E.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1800
1821
|
}
|
1801
1822
|
},
|
1802
1823
|
async mounted() {
|
@@ -1811,11 +1832,11 @@ const Qn = /* @__PURE__ */ T(In, [["render", Gn], ["__scopeId", "data-v-76a3cec3
|
|
1811
1832
|
},
|
1812
1833
|
async checkPageType() {
|
1813
1834
|
var o, s;
|
1814
|
-
const t = this.flattenMenu(
|
1835
|
+
const t = this.flattenMenu(Oe.value);
|
1815
1836
|
t != null && t.length || this.$router.replace("/404");
|
1816
|
-
const e = t == null ? void 0 : t.find((
|
1837
|
+
const e = t == null ? void 0 : t.find((l) => {
|
1817
1838
|
var c, g;
|
1818
|
-
return (
|
1839
|
+
return (l == null ? void 0 : l.path) == ((g = (c = this.$route) == null ? void 0 : c.params) == null ? void 0 : g.catchAll);
|
1819
1840
|
});
|
1820
1841
|
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
1842
|
const n = e == null ? void 0 : e.table;
|
@@ -1833,22 +1854,22 @@ const Qn = /* @__PURE__ */ T(In, [["render", Gn], ["__scopeId", "data-v-76a3cec3
|
|
1833
1854
|
}
|
1834
1855
|
}
|
1835
1856
|
}
|
1836
|
-
},
|
1837
|
-
function
|
1857
|
+
}, Zn = ["innerHTML"];
|
1858
|
+
function el(t, e, n, o, s, l) {
|
1838
1859
|
const c = h("AdminTable");
|
1839
|
-
return s.table ? (
|
1860
|
+
return s.table ? (a(), v(c, {
|
1840
1861
|
key: 0,
|
1841
1862
|
table: s.table,
|
1842
1863
|
title: t.title,
|
1843
1864
|
search: s.search
|
1844
|
-
}, null, 8, ["table", "title", "search"])) : (
|
1865
|
+
}, null, 8, ["table", "title", "search"])) : (a(), i("div", {
|
1845
1866
|
key: 1,
|
1846
1867
|
class: "w-full bg-gray-50",
|
1847
1868
|
style: { height: "calc(100vh - 120px)" },
|
1848
1869
|
innerHTML: s.interface
|
1849
|
-
}, null, 8,
|
1870
|
+
}, null, 8, Zn));
|
1850
1871
|
}
|
1851
|
-
const
|
1872
|
+
const ll = /* @__PURE__ */ T(Yn, [["render", el]]);
|
1852
1873
|
export {
|
1853
|
-
|
1874
|
+
ll as default
|
1854
1875
|
};
|