@opengis/admin 0.2.71 → 0.2.73
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-LeuiiYBO.js → add-page-6IFPvjAa.js} +1 -1
- package/dist/{admin-interface-Mh8Gb4nM.js → admin-interface-BLCFPahq.js} +219 -242
- package/dist/{admin-view-CGYQTQZS.js → admin-view-CQVaAifj.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +109 -109
- package/dist/{card-view-Bdr50TcY.js → card-view-DCSkqqJ-.js} +1 -1
- package/dist/{edit-page-D4haiX3f.js → edit-page-DS28CJUR.js} +1 -1
- package/dist/import-file-BbIQ1f4k.js +58494 -0
- package/dist/style.css +1 -1
- package/module/settings/form/admin.users.form.json +2 -2
- package/package.json +8 -2
- package/server/plugins/hook.js +16 -2
- package/server/routes/calendar/controllers/calendar.data.js +78 -40
- package/server/routes/calendar/schema.js +1 -1
- package/server/routes/print/controllers/cardPrint.js +6 -1
- package/server/routes/print/controllers/printTemplate.js +121 -0
- package/server/routes/print/controllers/printTemplates.js +1 -0
- package/server/routes/print/index.mjs +7 -5
- package/dist/import-file-C7vXt4cv.js +0 -49020
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as T, createVNode as x, withCtx as S, createBlock as k, renderList as D, withModifiers as
|
3
|
-
const
|
1
|
+
import { _ as w, f as Be, g as Oe, h as Ne, e as j, I as Ue, i as De, j as N, A as U, V as Ee, k as He, l as Re, m as We, n as Je, o as Ge, a as Ke, p as Qe, u as Ie, s as Xe } from "./import-file-BbIQ1f4k.js";
|
2
|
+
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as T, createVNode as x, withCtx as S, createBlock as k, renderList as D, withModifiers as Ye, createStaticVNode as Ze, withDirectives as L, vModelCheckbox as et, Transition as z, vModelText as tt, renderSlot as st, vShow as E, Teleport as nt, getCurrentInstance as Pe, ref as B, resolveDynamicComponent as O, defineComponent as lt, normalizeStyle as Ve } from "vue";
|
3
|
+
const rt = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
currentSort: ""
|
@@ -58,15 +58,15 @@ const lt = {
|
|
58
58
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
59
59
|
}
|
60
60
|
}
|
61
|
-
},
|
61
|
+
}, ot = {
|
62
62
|
scope: "col",
|
63
63
|
class: "pe-2 py-1 text-start"
|
64
|
-
},
|
64
|
+
}, at = { class: "w-[24px]" }, it = {
|
65
65
|
key: 1,
|
66
66
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
|
67
67
|
};
|
68
|
-
function
|
69
|
-
return r(), i("th",
|
68
|
+
function dt(t, e, s, a, n, o) {
|
69
|
+
return r(), i("th", ot, [
|
70
70
|
o.getVisibleIcon ? (r(), i("button", {
|
71
71
|
key: 0,
|
72
72
|
type: "button",
|
@@ -74,7 +74,7 @@ function it(t, e, s, a, n, o) {
|
|
74
74
|
onClick: e[0] || (e[0] = (u) => o.handleClickSortBtn(n.currentSort))
|
75
75
|
}, [
|
76
76
|
P(A(o.label) + " ", 1),
|
77
|
-
l("span",
|
77
|
+
l("span", at, [
|
78
78
|
n.currentSort ? (r(), i("svg", {
|
79
79
|
key: 0,
|
80
80
|
class: I(["shrink-0 size-3.5", { "rotate-180": n.currentSort === "asc" }]),
|
@@ -92,10 +92,10 @@ function it(t, e, s, a, n, o) {
|
|
92
92
|
l("path", { d: "M12 19V5" }, null, -1)
|
93
93
|
]), 2)) : v("", !0)
|
94
94
|
])
|
95
|
-
])) : (r(), i("p",
|
95
|
+
])) : (r(), i("p", it, A(o.label), 1))
|
96
96
|
]);
|
97
97
|
}
|
98
|
-
const
|
98
|
+
const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
|
99
99
|
components: {
|
100
100
|
IconMore: Be,
|
101
101
|
IconDelete: Oe,
|
@@ -178,20 +178,20 @@ const dt = /* @__PURE__ */ C(lt, [["render", it]]), ut = {
|
|
178
178
|
});
|
179
179
|
}
|
180
180
|
}
|
181
|
-
},
|
181
|
+
}, pt = { class: "inline-flex" }, ht = { 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" }, bt = { class: "flex flex-col items-start" }, ft = ["onClick"], gt = { class: "text-gray-800" }, mt = {
|
182
182
|
key: 1,
|
183
183
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
184
|
-
},
|
185
|
-
function
|
184
|
+
}, xt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
185
|
+
function yt(t, e, s, a, n, o) {
|
186
186
|
const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), b = p("IconDelete"), d = p("VsPopover"), _ = p("VsConfirm");
|
187
187
|
return r(), i(T, null, [
|
188
|
-
l("div",
|
188
|
+
l("div", pt, [
|
189
189
|
x(d, {
|
190
190
|
trigger: "click",
|
191
191
|
placement: "bottom-left"
|
192
192
|
}, {
|
193
193
|
reference: S(() => [
|
194
|
-
l("button",
|
194
|
+
l("button", ht, [
|
195
195
|
x(u, {
|
196
196
|
height: "16",
|
197
197
|
width: "16"
|
@@ -199,12 +199,12 @@ function xt(t, e, s, a, n, o) {
|
|
199
199
|
])
|
200
200
|
]),
|
201
201
|
default: S(() => {
|
202
|
-
var m, g,
|
202
|
+
var m, g, C, y, $;
|
203
203
|
return [
|
204
|
-
l("div",
|
204
|
+
l("div", bt, [
|
205
205
|
(m = s.actions) != null && m.includes("edit") && s.isForm ? (r(), k(h, {
|
206
206
|
key: 0,
|
207
|
-
to: `/edit?table=${(
|
207
|
+
to: `/edit?table=${(C = (g = t.$route) == null ? void 0 : g.params) == null ? void 0 : C.catchAll}&id=${(y = s.item) == null ? void 0 : y.id}`,
|
208
208
|
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"
|
209
209
|
}, {
|
210
210
|
default: S(() => [
|
@@ -219,12 +219,12 @@ function xt(t, e, s, a, n, o) {
|
|
219
219
|
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"
|
220
220
|
}, [
|
221
221
|
x(b, { class: "opacity-0" }),
|
222
|
-
l("span",
|
223
|
-
], 8,
|
224
|
-
s.isForm ? (r(), i("div",
|
222
|
+
l("span", gt, A(V == null ? void 0 : V.label), 1)
|
223
|
+
], 8, ft))), 128)),
|
224
|
+
s.isForm ? (r(), i("div", mt)) : v("", !0),
|
225
225
|
($ = s.actions) != null && $.includes("del") ? (r(), i("button", {
|
226
226
|
key: 2,
|
227
|
-
onClick: e[0] || (e[0] =
|
227
|
+
onClick: e[0] || (e[0] = Ye((...V) => o.openConfirm && o.openConfirm(...V), ["stop"])),
|
228
228
|
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"
|
229
229
|
}, [
|
230
230
|
x(b),
|
@@ -244,7 +244,7 @@ function xt(t, e, s, a, n, o) {
|
|
244
244
|
}, {
|
245
245
|
default: S(() => [
|
246
246
|
e[6] || (e[6] = l("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
247
|
-
l("div",
|
247
|
+
l("div", xt, [
|
248
248
|
l("button", {
|
249
249
|
type: "button",
|
250
250
|
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",
|
@@ -261,7 +261,7 @@ function xt(t, e, s, a, n, o) {
|
|
261
261
|
}, 8, ["visible"])
|
262
262
|
], 64);
|
263
263
|
}
|
264
|
-
const
|
264
|
+
const kt = /* @__PURE__ */ w(ct, [["render", yt]]), vt = {}, _t = {
|
265
265
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
266
266
|
xmlns: "http://www.w3.org/2000/svg",
|
267
267
|
viewBox: "0 0 24 24",
|
@@ -271,15 +271,15 @@ const yt = /* @__PURE__ */ C(ut, [["render", xt]]), kt = {}, vt = {
|
|
271
271
|
"stroke-linecap": "round",
|
272
272
|
"stroke-linejoin": "round"
|
273
273
|
};
|
274
|
-
function
|
275
|
-
return r(), i("svg",
|
274
|
+
function Ct(t, e, s, a, n, o) {
|
275
|
+
return r(), i("svg", _t, e[0] || (e[0] = [
|
276
276
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
277
277
|
l("path", { d: "M7 20V4" }, null, -1),
|
278
278
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
279
279
|
l("path", { d: "M17 4v16" }, null, -1)
|
280
280
|
]));
|
281
281
|
}
|
282
|
-
const wt = /* @__PURE__ */
|
282
|
+
const wt = /* @__PURE__ */ w(vt, [["render", Ct]]), $t = {}, At = {
|
283
283
|
xmlns: "http://www.w3.org/2000/svg",
|
284
284
|
width: "24",
|
285
285
|
height: "24",
|
@@ -291,8 +291,8 @@ const wt = /* @__PURE__ */ C(kt, [["render", _t]]), Ct = {}, $t = {
|
|
291
291
|
"stroke-linejoin": "round",
|
292
292
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
293
293
|
};
|
294
|
-
function
|
295
|
-
return r(), i("svg",
|
294
|
+
function Tt(t, e, s, a, n, o) {
|
295
|
+
return r(), i("svg", At, e[0] || (e[0] = [
|
296
296
|
l("path", {
|
297
297
|
stroke: "none",
|
298
298
|
d: "M0 0h24v24H0z",
|
@@ -302,8 +302,8 @@ function At(t, e, s, a, n, o) {
|
|
302
302
|
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
303
303
|
]));
|
304
304
|
}
|
305
|
-
const
|
306
|
-
components: { IconExport: wt, IconChevronDown: Ue, IconSuccess:
|
305
|
+
const St = /* @__PURE__ */ w($t, [["render", Tt]]), It = {
|
306
|
+
components: { IconExport: wt, IconChevronDown: Ue, IconSuccess: St },
|
307
307
|
props: {
|
308
308
|
table: String,
|
309
309
|
columns: Array,
|
@@ -405,23 +405,23 @@ const Tt = /* @__PURE__ */ C(Ct, [["render", At]]), St = {
|
|
405
405
|
this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.hidden) !== !0)) == null ? void 0 : e.map((s) => s == null ? void 0 : s.name), this.activeAction = "choceVisible";
|
406
406
|
}
|
407
407
|
}
|
408
|
-
},
|
408
|
+
}, Vt = {
|
409
409
|
key: 0,
|
410
410
|
class: "flex flex-col items-center"
|
411
|
-
},
|
411
|
+
}, Dt = {
|
412
412
|
key: 1,
|
413
413
|
class: "p-4"
|
414
|
-
},
|
414
|
+
}, Pt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ft = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, jt = ["onClick"], Mt = {
|
415
415
|
key: 0,
|
416
416
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
417
|
-
},
|
417
|
+
}, Lt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, zt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, qt = { class: "mt-2 space-y-2" }, Bt = ["id", "onChange"], Ot = ["for"], Nt = {
|
418
418
|
key: 0,
|
419
419
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
420
|
-
},
|
420
|
+
}, Ut = {
|
421
421
|
key: 1,
|
422
422
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
423
423
|
};
|
424
|
-
function
|
424
|
+
function Et(t, e, s, a, n, o) {
|
425
425
|
const u = p("IconExport"), f = p("IconSuccess"), h = p("VsCheckbox"), b = p("VsDialog");
|
426
426
|
return r(), i(T, null, [
|
427
427
|
l("button", {
|
@@ -442,7 +442,7 @@ function Ut(t, e, s, a, n, o) {
|
|
442
442
|
closeClickBack: !0
|
443
443
|
}, {
|
444
444
|
footer: S(() => [
|
445
|
-
n.isSuccessTemplate ? (r(), i("div",
|
445
|
+
n.isSuccessTemplate ? (r(), i("div", Nt, [
|
446
446
|
l("button", {
|
447
447
|
type: "button",
|
448
448
|
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,7 +453,7 @@ function Ut(t, e, s, a, n, o) {
|
|
453
453
|
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",
|
454
454
|
onClick: e[3] || (e[3] = (d) => n.isSuccessTemplate = !1)
|
455
455
|
}, " Вигрузити ще ")
|
456
|
-
])) : (r(), i("div",
|
456
|
+
])) : (r(), i("div", Ut, [
|
457
457
|
l("button", {
|
458
458
|
type: "button",
|
459
459
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-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",
|
@@ -467,17 +467,17 @@ function Ut(t, e, s, a, n, o) {
|
|
467
467
|
]))
|
468
468
|
]),
|
469
469
|
default: S(() => [
|
470
|
-
n.isSuccessTemplate ? (r(), i("div",
|
470
|
+
n.isSuccessTemplate ? (r(), i("div", Vt, [
|
471
471
|
x(f, {
|
472
472
|
height: "100",
|
473
473
|
width: "100",
|
474
474
|
class: "text-green-200 mb-[20px]"
|
475
475
|
}),
|
476
476
|
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
477
|
-
])) : (r(), i("div",
|
478
|
-
l("div",
|
477
|
+
])) : (r(), i("div", Dt, [
|
478
|
+
l("div", Pt, [
|
479
479
|
e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
480
|
-
l("div",
|
480
|
+
l("div", Ft, [
|
481
481
|
(r(!0), i(T, null, D(n.actions, (d) => (r(), i("button", {
|
482
482
|
key: d == null ? void 0 : d.name,
|
483
483
|
onClick: d == null ? void 0 : d.function,
|
@@ -486,12 +486,12 @@ function Ut(t, e, s, a, n, o) {
|
|
486
486
|
l("span", {
|
487
487
|
class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === n.activeAction }])
|
488
488
|
}, [
|
489
|
-
(d == null ? void 0 : d.name) === n.activeAction ? (r(), i("span",
|
489
|
+
(d == null ? void 0 : d.name) === n.activeAction ? (r(), i("span", Mt)) : v("", !0)
|
490
490
|
], 2),
|
491
491
|
P(" " + A(d == null ? void 0 : d.label), 1)
|
492
|
-
], 8,
|
492
|
+
], 8, jt))), 128))
|
493
493
|
]),
|
494
|
-
l("div",
|
494
|
+
l("div", Lt, [
|
495
495
|
(r(!0), i(T, null, D(s.columns, (d, _) => (r(), i("div", {
|
496
496
|
class: "flex items-center",
|
497
497
|
key: _,
|
@@ -507,9 +507,9 @@ function Ut(t, e, s, a, n, o) {
|
|
507
507
|
]))), 128))
|
508
508
|
])
|
509
509
|
]),
|
510
|
-
l("div",
|
510
|
+
l("div", zt, [
|
511
511
|
e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
512
|
-
l("div",
|
512
|
+
l("div", qt, [
|
513
513
|
(r(!0), i(T, null, D(n.tableFormats, (d, _) => (r(), i("div", {
|
514
514
|
class: "flex items-center",
|
515
515
|
key: _
|
@@ -520,11 +520,11 @@ function Ut(t, e, s, a, n, o) {
|
|
520
520
|
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",
|
521
521
|
id: d,
|
522
522
|
onChange: (m) => o.selectFormat(d)
|
523
|
-
}, null, 40,
|
523
|
+
}, null, 40, Bt),
|
524
524
|
l("label", {
|
525
525
|
for: d,
|
526
526
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
527
|
-
}, " Формат " + A(d), 9,
|
527
|
+
}, " Формат " + A(d), 9, Ot)
|
528
528
|
]))), 128))
|
529
529
|
])
|
530
530
|
])
|
@@ -534,7 +534,7 @@ function Ut(t, e, s, a, n, o) {
|
|
534
534
|
}, 8, ["visible"])
|
535
535
|
], 64);
|
536
536
|
}
|
537
|
-
const
|
537
|
+
const Ht = /* @__PURE__ */ w(It, [["render", Et]]), Rt = {}, Wt = {
|
538
538
|
xmlns: "http://www.w3.org/2000/svg",
|
539
539
|
viewBox: "0 0 24 24",
|
540
540
|
fill: "none",
|
@@ -544,12 +544,12 @@ const Et = /* @__PURE__ */ C(St, [["render", Ut]]), Ht = {}, Rt = {
|
|
544
544
|
"stroke-linejoin": "round",
|
545
545
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
546
546
|
};
|
547
|
-
function
|
548
|
-
return r(), i("svg",
|
549
|
-
|
547
|
+
function Jt(t, e, s, a, n, o) {
|
548
|
+
return r(), i("svg", Wt, e[0] || (e[0] = [
|
549
|
+
Ze('<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)
|
550
550
|
]));
|
551
551
|
}
|
552
|
-
const
|
552
|
+
const Gt = /* @__PURE__ */ w(Rt, [["render", Jt]]), Kt = {
|
553
553
|
props: { column: Object },
|
554
554
|
emits: ["update-column"],
|
555
555
|
components: {
|
@@ -569,19 +569,19 @@ const Jt = /* @__PURE__ */ C(Ht, [["render", Wt]]), Gt = {
|
|
569
569
|
var t;
|
570
570
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
571
571
|
}
|
572
|
-
},
|
573
|
-
function
|
572
|
+
}, Qt = { 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" }, Xt = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
573
|
+
function Yt(t, e, s, a, n, o) {
|
574
574
|
var f, h;
|
575
575
|
const u = p("IconCheck2");
|
576
|
-
return r(), i("div",
|
577
|
-
l("label",
|
576
|
+
return r(), i("div", Qt, [
|
577
|
+
l("label", Xt, [
|
578
578
|
P(A(((f = s.column) == null ? void 0 : f.ua) || ((h = s.column) == null ? void 0 : h.title)) + " ", 1),
|
579
579
|
L(l("input", {
|
580
580
|
type: "checkbox",
|
581
581
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => n.value = b),
|
582
582
|
class: "hidden"
|
583
583
|
}, null, 512), [
|
584
|
-
[
|
584
|
+
[et, n.value]
|
585
585
|
]),
|
586
586
|
l("span", {
|
587
587
|
class: I(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [n.value ? "bg-blue-600 border-0" : "bg-white"]])
|
@@ -594,8 +594,8 @@ function Xt(t, e, s, a, n, o) {
|
|
594
594
|
])
|
595
595
|
]);
|
596
596
|
}
|
597
|
-
const
|
598
|
-
components: { IconColumns:
|
597
|
+
const Zt = /* @__PURE__ */ w(Kt, [["render", Yt]]), es = {
|
598
|
+
components: { IconColumns: Gt, AdminTableColumnsHiddenItem: Zt },
|
599
599
|
emits: ["update-columns"],
|
600
600
|
props: { columns: Array },
|
601
601
|
data() {
|
@@ -631,22 +631,22 @@ const Yt = /* @__PURE__ */ C(Gt, [["render", Xt]]), Zt = {
|
|
631
631
|
beforeUnmount() {
|
632
632
|
document.removeEventListener("click", this.handleClickOutside);
|
633
633
|
}
|
634
|
-
},
|
634
|
+
}, ts = {
|
635
635
|
class: "relative",
|
636
636
|
ref: "wrapper"
|
637
|
-
},
|
637
|
+
}, ss = {
|
638
638
|
key: 0,
|
639
639
|
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"
|
640
|
-
},
|
640
|
+
}, ns = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, ls = { 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" }, rs = {
|
641
641
|
key: 0,
|
642
642
|
class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
|
643
|
-
},
|
643
|
+
}, os = { class: "space-y-1" }, as = {
|
644
644
|
key: 1,
|
645
645
|
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
646
646
|
};
|
647
|
-
function
|
647
|
+
function is(t, e, s, a, n, o) {
|
648
648
|
const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem");
|
649
|
-
return r(), i("div",
|
649
|
+
return r(), i("div", ts, [
|
650
650
|
l("button", {
|
651
651
|
onClick: e[0] || (e[0] = (...h) => o.toggleVisible && o.toggleVisible(...h)),
|
652
652
|
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"
|
@@ -660,9 +660,9 @@ function as(t, e, s, a, n, o) {
|
|
660
660
|
default: S(() => {
|
661
661
|
var h, b;
|
662
662
|
return [
|
663
|
-
n.visible ? (r(), i("div",
|
663
|
+
n.visible ? (r(), i("div", ss, [
|
664
664
|
e[2] || (e[2] = l("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
|
665
|
-
l("div",
|
665
|
+
l("div", ns, [
|
666
666
|
L(l("input", {
|
667
667
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => n.searchValue = d),
|
668
668
|
type: "text",
|
@@ -670,17 +670,17 @@ function as(t, e, s, a, n, o) {
|
|
670
670
|
placeholder: "Search",
|
671
671
|
autofocus: ""
|
672
672
|
}, null, 512), [
|
673
|
-
[
|
673
|
+
[tt, n.searchValue]
|
674
674
|
])
|
675
675
|
]),
|
676
|
-
l("div",
|
677
|
-
(h = o.filteredColumn) != null && h.length ? (r(), i("span",
|
678
|
-
l("div",
|
676
|
+
l("div", ls, [
|
677
|
+
(h = o.filteredColumn) != null && h.length ? (r(), i("span", rs, " Оберіть колонки для відображення ")) : v("", !0),
|
678
|
+
l("div", os, [
|
679
679
|
(b = o.filteredColumn) != null && b.length ? (r(!0), i(T, { key: 0 }, D(o.filteredColumn, (d, _) => (r(), k(f, {
|
680
680
|
key: _,
|
681
681
|
column: d,
|
682
682
|
onUpdateColumn: o.updateColumn
|
683
|
-
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div",
|
683
|
+
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", as, " Нічого не знайдено "))
|
684
684
|
])
|
685
685
|
])
|
686
686
|
])) : v("", !0)
|
@@ -690,7 +690,7 @@ function as(t, e, s, a, n, o) {
|
|
690
690
|
})
|
691
691
|
], 512);
|
692
692
|
}
|
693
|
-
const
|
693
|
+
const ds = /* @__PURE__ */ w(es, [["render", is]]), us = {}, cs = {
|
694
694
|
xmlns: "http://www.w3.org/2000/svg",
|
695
695
|
viewBox: "0 0 24 24",
|
696
696
|
fill: "none",
|
@@ -700,8 +700,8 @@ const is = /* @__PURE__ */ C(Zt, [["render", as]]), ds = {}, us = {
|
|
700
700
|
"stroke-linejoin": "round",
|
701
701
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
702
702
|
};
|
703
|
-
function
|
704
|
-
return r(), i("svg",
|
703
|
+
function ps(t, e, s, a, n, o) {
|
704
|
+
return r(), i("svg", cs, e[0] || (e[0] = [
|
705
705
|
l("path", {
|
706
706
|
stroke: "none",
|
707
707
|
d: "M0 0h24v24H0z",
|
@@ -710,8 +710,8 @@ function cs(t, e, s, a, n, o) {
|
|
710
710
|
l("path", { d: "M5 12l14 0" }, null, -1)
|
711
711
|
]));
|
712
712
|
}
|
713
|
-
const
|
714
|
-
components: { IconPlus: N, IconMinus:
|
713
|
+
const hs = /* @__PURE__ */ w(us, [["render", ps]]), bs = {
|
714
|
+
components: { IconPlus: N, IconMinus: hs },
|
715
715
|
props: {
|
716
716
|
title: String,
|
717
717
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -719,18 +719,18 @@ const ps = /* @__PURE__ */ C(ds, [["render", cs]]), hs = {
|
|
719
719
|
data() {
|
720
720
|
return { expanded: this.defaultValue };
|
721
721
|
}
|
722
|
-
},
|
723
|
-
function
|
722
|
+
}, fs = { class: "hs-accordion" }, gs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, ms = { class: "text-sm font-medium" }, xs = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
723
|
+
function ys(t, e, s, a, n, o) {
|
724
724
|
const u = p("IconPlus"), f = p("IconMinus");
|
725
725
|
return r(), i("div", null, [
|
726
726
|
l("div", null, [
|
727
|
-
l("div",
|
728
|
-
l("div",
|
727
|
+
l("div", fs, [
|
728
|
+
l("div", gs, [
|
729
729
|
l("div", {
|
730
730
|
onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
|
731
731
|
class: "rounded-md cursor-pointer grow"
|
732
732
|
}, [
|
733
|
-
l("span",
|
733
|
+
l("span", ms, A(s.title), 1)
|
734
734
|
]),
|
735
735
|
l("button", {
|
736
736
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
@@ -744,8 +744,8 @@ function xs(t, e, s, a, n, o) {
|
|
744
744
|
]),
|
745
745
|
x(z, { name: "fade" }, {
|
746
746
|
default: S(() => [
|
747
|
-
L(l("div",
|
748
|
-
|
747
|
+
L(l("div", xs, [
|
748
|
+
st(t.$slots, "default", {}, void 0, !0)
|
749
749
|
], 512), [
|
750
750
|
[E, n.expanded]
|
751
751
|
])
|
@@ -756,31 +756,31 @@ function xs(t, e, s, a, n, o) {
|
|
756
756
|
])
|
757
757
|
]);
|
758
758
|
}
|
759
|
-
const
|
759
|
+
const ks = /* @__PURE__ */ w(bs, [["render", ys], ["__scopeId", "data-v-e1f274c9"]]), vs = {
|
760
760
|
components: {
|
761
761
|
AdminComponentIs: U,
|
762
|
-
AdminTree:
|
762
|
+
AdminTree: ks,
|
763
763
|
VsNoData: Ee,
|
764
764
|
VsWidgetComments: He,
|
765
765
|
VsWidgetMap: Re,
|
766
766
|
VsWidgetFileList: We
|
767
767
|
},
|
768
768
|
props: { table: String, columns: Array, row: Object }
|
769
|
-
},
|
769
|
+
}, _s = {
|
770
770
|
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",
|
771
771
|
style: { height: "calc(100vh - 310px)" }
|
772
|
-
},
|
772
|
+
}, Cs = {
|
773
773
|
class: "border-l",
|
774
774
|
style: { height: "calc(100vh - 360px)" }
|
775
|
-
}, ws = { class: "flow-root mt-[10px]" },
|
776
|
-
function
|
777
|
-
var m, g,
|
775
|
+
}, ws = { class: "flow-root mt-[10px]" }, $s = { class: "-my-3 text-sm divide-y divide-gray-100" }, As = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Ts = { class: "font-medium text-black w-[50%]" }, Ss = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Is = { class: "table-info-card" }, Vs = { class: "table-info-card" };
|
776
|
+
function Ds(t, e, s, a, n, o) {
|
777
|
+
var m, g, C;
|
778
778
|
const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), b = p("VsNoData"), d = p("VsWidgetComments"), _ = p("VsWidgetFileList");
|
779
|
-
return r(), i("div",
|
779
|
+
return r(), i("div", _s, [
|
780
780
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
781
781
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
782
782
|
], -1)),
|
783
|
-
l("div",
|
783
|
+
l("div", Cs, [
|
784
784
|
(g = (m = t.$route) == null ? void 0 : m.query) != null && g.card ? (r(), i(T, { key: 0 }, [
|
785
785
|
s.row ? (r(), k(f, {
|
786
786
|
key: 0,
|
@@ -790,10 +790,10 @@ function Vs(t, e, s, a, n, o) {
|
|
790
790
|
}, {
|
791
791
|
default: S(() => [
|
792
792
|
l("div", ws, [
|
793
|
-
l("dl",
|
794
|
-
(r(!0), i(T, null, D(s.columns, (y) => (r(), i("div",
|
795
|
-
l("dt",
|
796
|
-
l("dd",
|
793
|
+
l("dl", $s, [
|
794
|
+
(r(!0), i(T, null, D(s.columns, (y) => (r(), i("div", As, [
|
795
|
+
l("dt", Ts, A((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
|
796
|
+
l("dd", Ss, [
|
797
797
|
x(u, {
|
798
798
|
row: s.row,
|
799
799
|
column: y,
|
@@ -806,7 +806,7 @@ function Vs(t, e, s, a, n, o) {
|
|
806
806
|
]),
|
807
807
|
_: 1
|
808
808
|
})) : v("", !0),
|
809
|
-
(
|
809
|
+
(C = s.row) != null && C.geom ? (r(), k(f, {
|
810
810
|
key: 1,
|
811
811
|
title: "Карта",
|
812
812
|
class: "border-b p-[10px] py-[16px]"
|
@@ -835,7 +835,7 @@ function Vs(t, e, s, a, n, o) {
|
|
835
835
|
default: S(() => {
|
836
836
|
var y;
|
837
837
|
return [
|
838
|
-
l("div",
|
838
|
+
l("div", Is, [
|
839
839
|
x(d, {
|
840
840
|
id: (y = s.row) == null ? void 0 : y.id
|
841
841
|
}, null, 8, ["id"])
|
@@ -851,7 +851,7 @@ function Vs(t, e, s, a, n, o) {
|
|
851
851
|
default: S(() => {
|
852
852
|
var y, $;
|
853
853
|
return [
|
854
|
-
l("div",
|
854
|
+
l("div", Vs, [
|
855
855
|
(r(), k(_, {
|
856
856
|
key: (y = s.row) == null ? void 0 : y.id,
|
857
857
|
id: ($ = s.row) == null ? void 0 : $.id
|
@@ -868,30 +868,7 @@ function Vs(t, e, s, a, n, o) {
|
|
868
868
|
])
|
869
869
|
]);
|
870
870
|
}
|
871
|
-
const
|
872
|
-
class: "size-4",
|
873
|
-
xmlns: "http://www.w3.org/2000/svg",
|
874
|
-
viewBox: "0 0 24 24",
|
875
|
-
fill: "none",
|
876
|
-
stroke: "currentColor",
|
877
|
-
"stroke-width": "2",
|
878
|
-
"stroke-linecap": "round",
|
879
|
-
"stroke-linejoin": "round"
|
880
|
-
};
|
881
|
-
function js(t, e, s, a, n, o) {
|
882
|
-
return r(), i("svg", Fs, e[0] || (e[0] = [
|
883
|
-
l("rect", {
|
884
|
-
width: "18",
|
885
|
-
height: "18",
|
886
|
-
x: "3",
|
887
|
-
y: "3",
|
888
|
-
rx: "2"
|
889
|
-
}, null, -1),
|
890
|
-
l("path", { d: "M15 3v18" }, null, -1),
|
891
|
-
l("path", { d: "m8 9 3 3-3 3" }, null, -1)
|
892
|
-
]));
|
893
|
-
}
|
894
|
-
const Ms = /* @__PURE__ */ C(Ps, [["render", js]]), Ls = {
|
871
|
+
const Ps = /* @__PURE__ */ w(vs, [["render", Ds]]), Fs = {
|
895
872
|
emits: ["filterChange"],
|
896
873
|
props: {
|
897
874
|
scheme: { type: Object },
|
@@ -909,11 +886,11 @@ const Ms = /* @__PURE__ */ C(Ps, [["render", js]]), Ls = {
|
|
909
886
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
910
887
|
}
|
911
888
|
}
|
912
|
-
},
|
889
|
+
}, js = {
|
913
890
|
key: 0,
|
914
891
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
915
|
-
},
|
916
|
-
function
|
892
|
+
}, Ms = { 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" };
|
893
|
+
function Ls(t, e, s, a, n, o) {
|
917
894
|
const u = p("IconFilter"), f = p("VsFilter");
|
918
895
|
return r(), i(T, null, [
|
919
896
|
l("button", {
|
@@ -925,19 +902,19 @@ function Bs(t, e, s, a, n, o) {
|
|
925
902
|
width: "16"
|
926
903
|
}),
|
927
904
|
e[4] || (e[4] = P(" Фільтри ")),
|
928
|
-
s.onFilters ? (r(), i("span",
|
905
|
+
s.onFilters ? (r(), i("span", js, A(s.onFilters), 1)) : v("", !0)
|
929
906
|
]),
|
930
907
|
x(z, { name: "fade" }, {
|
931
908
|
default: S(() => {
|
932
909
|
var h;
|
933
910
|
return [
|
934
|
-
(r(), k(
|
911
|
+
(r(), k(nt, { to: "#modal" }, [
|
935
912
|
L(l("div", {
|
936
913
|
onClick: e[3] || (e[3] = (...b) => o.closeFilter && o.closeFilter(...b)),
|
937
914
|
style: { height: "100vh" },
|
938
915
|
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)]"
|
939
916
|
}, [
|
940
|
-
l("div",
|
917
|
+
l("div", Ms, [
|
941
918
|
(h = s.scheme) != null && h.length ? (r(), k(f, {
|
942
919
|
key: 0,
|
943
920
|
ref: "filter",
|
@@ -964,25 +941,25 @@ function Bs(t, e, s, a, n, o) {
|
|
964
941
|
})
|
965
942
|
], 64);
|
966
943
|
}
|
967
|
-
const
|
944
|
+
const zs = /* @__PURE__ */ w(Fs, [["render", Ls]]), qs = {
|
968
945
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
969
|
-
},
|
946
|
+
}, Bs = {
|
970
947
|
class: "relative flex space-x-1 mb-[20px] after:absolute after:w-[99%] after:bottom-0 after:inset-x-0 after:border-b-2 after:border-gray-200 dark:after:border-neutral-700",
|
971
948
|
"aria-label": "Tabs",
|
972
949
|
role: "tablist",
|
973
950
|
"aria-orientation": "horizontal"
|
974
|
-
},
|
975
|
-
function
|
976
|
-
return r(), i("nav",
|
951
|
+
}, Os = ["onClick"];
|
952
|
+
function Ns(t, e, s, a, n, o) {
|
953
|
+
return r(), i("nav", Bs, [
|
977
954
|
(r(!0), i(T, null, D(s.tabsList, (u) => (r(), i("button", {
|
978
955
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
979
956
|
class: I(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
|
980
957
|
" font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (u == null ? void 0 : u.name) === s.filterState
|
981
958
|
}])
|
982
|
-
}, A(u == null ? void 0 : u.label), 11,
|
959
|
+
}, A(u == null ? void 0 : u.label), 11, Os))), 256))
|
983
960
|
]);
|
984
961
|
}
|
985
|
-
const
|
962
|
+
const Us = /* @__PURE__ */ w(qs, [["render", Ns]]), Es = {}, Hs = {
|
986
963
|
xmlns: "http://www.w3.org/2000/svg",
|
987
964
|
viewBox: "0 0 24 24",
|
988
965
|
fill: "none",
|
@@ -992,8 +969,8 @@ const Rs = /* @__PURE__ */ C(Ns, [["render", Hs]]), Ws = {}, Js = {
|
|
992
969
|
"stroke-linejoin": "round",
|
993
970
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
994
971
|
};
|
995
|
-
function
|
996
|
-
return r(), i("svg",
|
972
|
+
function Rs(t, e, s, a, n, o) {
|
973
|
+
return r(), i("svg", Hs, e[0] || (e[0] = [
|
997
974
|
l("path", {
|
998
975
|
stroke: "none",
|
999
976
|
d: "M0 0h24v24H0z",
|
@@ -1002,18 +979,18 @@ function Gs(t, e, s, a, n, o) {
|
|
1002
979
|
l("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" }, null, -1)
|
1003
980
|
]));
|
1004
981
|
}
|
1005
|
-
const
|
1006
|
-
components: { IconFilter2:
|
982
|
+
const Ws = /* @__PURE__ */ w(Es, [["render", Rs]]), Js = {
|
983
|
+
components: { IconFilter2: Ws, IconCheck2: De },
|
1007
984
|
props: { filterCustom: String, customList: Array }
|
1008
|
-
},
|
1009
|
-
function
|
985
|
+
}, Gs = { 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" }, Ks = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Qs = ["onClick"], Xs = { class: "text-sm text-gray-800" };
|
986
|
+
function Ys(t, e, s, a, n, o) {
|
1010
987
|
const u = p("IconFilter2"), f = p("IconCheck2"), h = p("VsPopover");
|
1011
988
|
return r(), k(h, {
|
1012
989
|
ref: "popover",
|
1013
990
|
placement: "bottom"
|
1014
991
|
}, {
|
1015
992
|
reference: S(() => [
|
1016
|
-
l("button",
|
993
|
+
l("button", Gs, [
|
1017
994
|
x(u, {
|
1018
995
|
height: "20",
|
1019
996
|
width: "20"
|
@@ -1021,7 +998,7 @@ function tn(t, e, s, a, n, o) {
|
|
1021
998
|
])
|
1022
999
|
]),
|
1023
1000
|
default: S(() => [
|
1024
|
-
l("div",
|
1001
|
+
l("div", Ks, [
|
1025
1002
|
(r(!0), i(T, null, D(s.customList, (b, d) => (r(), i("button", {
|
1026
1003
|
onClick: (_) => {
|
1027
1004
|
var m;
|
@@ -1030,12 +1007,12 @@ function tn(t, e, s, a, n, o) {
|
|
1030
1007
|
key: d,
|
1031
1008
|
class: I(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": s.filterCustom === (b == null ? void 0 : b.name) }])
|
1032
1009
|
}, [
|
1033
|
-
l("span",
|
1010
|
+
l("span", Xs, A(b == null ? void 0 : b.label), 1),
|
1034
1011
|
s.filterCustom === (b == null ? void 0 : b.name) ? (r(), k(f, {
|
1035
1012
|
key: 0,
|
1036
1013
|
class: "ml-auto size-3 shrink-0"
|
1037
1014
|
})) : v("", !0)
|
1038
|
-
], 10,
|
1015
|
+
], 10, Qs))), 128)),
|
1039
1016
|
l("button", {
|
1040
1017
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1041
1018
|
onClick: e[0] || (e[0] = (b) => {
|
@@ -1048,7 +1025,7 @@ function tn(t, e, s, a, n, o) {
|
|
1048
1025
|
_: 1
|
1049
1026
|
}, 512);
|
1050
1027
|
}
|
1051
|
-
const
|
1028
|
+
const Zs = /* @__PURE__ */ w(Js, [["render", Ys]]), en = { class: "flex items-center gap-x-2" }, tn = {
|
1052
1029
|
__name: "admin-table-custom-buttons",
|
1053
1030
|
props: {
|
1054
1031
|
slots: Object
|
@@ -1056,8 +1033,8 @@ const sn = /* @__PURE__ */ C(Qs, [["render", tn]]), nn = { class: "flex items-ce
|
|
1056
1033
|
setup(t) {
|
1057
1034
|
var f, h, b, d, _;
|
1058
1035
|
const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = Pe()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, s = B(""), a = B(""), n = t, o = () => {
|
1059
|
-
var m, g,
|
1060
|
-
if ((m = n.slots) != null && m.panelLeft || (a.value = "div"), (
|
1036
|
+
var m, g, C, y, $;
|
1037
|
+
if ((m = n.slots) != null && m.panelLeft || (a.value = "div"), (C = (g = n.slots) == null ? void 0 : g.panelLeft) != null && C.includes("<")) {
|
1061
1038
|
const V = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
|
1062
1039
|
"name"
|
1063
1040
|
]);
|
@@ -1065,8 +1042,8 @@ const sn = /* @__PURE__ */ C(Qs, [["render", tn]]), nn = { class: "flex items-ce
|
|
1065
1042
|
} else
|
1066
1043
|
a.value = ($ = n.slots) == null ? void 0 : $.panelLeft;
|
1067
1044
|
}, u = () => {
|
1068
|
-
var m, g,
|
1069
|
-
if ((m = n.slots) != null && m.panelRight || (s.value = "div"), (
|
1045
|
+
var m, g, C, y, $;
|
1046
|
+
if ((m = n.slots) != null && m.panelRight || (s.value = "div"), (C = (g = n.slots) == null ? void 0 : g.panelRight) != null && C.includes("<")) {
|
1070
1047
|
const V = e("PanelRight", (y = n.slots) == null ? void 0 : y.panelRight, [
|
1071
1048
|
"name"
|
1072
1049
|
]);
|
@@ -1074,19 +1051,19 @@ const sn = /* @__PURE__ */ C(Qs, [["render", tn]]), nn = { class: "flex items-ce
|
|
1074
1051
|
} else
|
1075
1052
|
s.value = ($ = n.slots) == null ? void 0 : $.panelRight;
|
1076
1053
|
};
|
1077
|
-
return o(), u(), (m, g) => (r(), i("div",
|
1054
|
+
return o(), u(), (m, g) => (r(), i("div", en, [
|
1078
1055
|
(r(), k(O(a.value))),
|
1079
1056
|
(r(), k(O(s.value)))
|
1080
1057
|
]));
|
1081
1058
|
}
|
1082
|
-
},
|
1059
|
+
}, sn = (t, e = 300) => {
|
1083
1060
|
let s;
|
1084
1061
|
return function(...a) {
|
1085
1062
|
clearTimeout(s), s = setTimeout(() => {
|
1086
1063
|
t.apply(this, a);
|
1087
1064
|
}, e);
|
1088
1065
|
};
|
1089
|
-
},
|
1066
|
+
}, nn = {
|
1090
1067
|
__name: "admin-custom-button-add",
|
1091
1068
|
props: {
|
1092
1069
|
slots: Object
|
@@ -1095,26 +1072,26 @@ const sn = /* @__PURE__ */ C(Qs, [["render", tn]]), nn = { class: "flex items-ce
|
|
1095
1072
|
var o, u, f, h, b;
|
1096
1073
|
const { asyncTemplateSlot: e } = (b = (h = (f = (u = (o = Pe()) == null ? void 0 : o.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, s = B(""), a = t;
|
1097
1074
|
return (() => {
|
1098
|
-
var d, _, m, g,
|
1075
|
+
var d, _, m, g, C;
|
1099
1076
|
if ((d = a.slots) != null && d.addButton || (s.value = "div"), (m = (_ = a.slots) == null ? void 0 : _.addButton) != null && m.includes("<")) {
|
1100
1077
|
const y = e("addButton", (g = a.slots) == null ? void 0 : g.addButton, [
|
1101
1078
|
"IconPlus"
|
1102
1079
|
]);
|
1103
1080
|
s.value = y;
|
1104
1081
|
} else
|
1105
|
-
s.value = (
|
1082
|
+
s.value = (C = a.slots) == null ? void 0 : C.addButton;
|
1106
1083
|
})(), (d, _) => s.value ? (r(), k(O(s.value), {
|
1107
1084
|
key: 0,
|
1108
1085
|
IconPlus: N
|
1109
1086
|
})) : v("", !0);
|
1110
1087
|
}
|
1111
|
-
},
|
1088
|
+
}, ln = {
|
1112
1089
|
key: 0,
|
1113
1090
|
class: "px-1 py-3 text-gray-800 font-[500]"
|
1114
|
-
},
|
1091
|
+
}, rn = {
|
1115
1092
|
key: 1,
|
1116
1093
|
class: "px-1 py-3 text-gray-800 font-[700]"
|
1117
|
-
},
|
1094
|
+
}, on = {
|
1118
1095
|
__name: "admin-table-totals-list",
|
1119
1096
|
props: {
|
1120
1097
|
columns: { type: Array, default: () => [] },
|
@@ -1128,17 +1105,17 @@ const sn = /* @__PURE__ */ C(Qs, [["render", tn]]), nn = { class: "flex items-ce
|
|
1128
1105
|
return r(), i(T, {
|
1129
1106
|
key: a == null ? void 0 : a.name
|
1130
1107
|
}, [
|
1131
|
-
(n = t.agg) != null && n[a == null ? void 0 : a.name] ? (r(), i("td",
|
1108
|
+
(n = t.agg) != null && n[a == null ? void 0 : a.name] ? (r(), i("td", ln, [
|
1132
1109
|
x(U, {
|
1133
1110
|
column: a,
|
1134
1111
|
row: t.agg
|
1135
1112
|
}, null, 8, ["column", "row"])
|
1136
|
-
])) : (r(), i("td",
|
1113
|
+
])) : (r(), i("td", rn))
|
1137
1114
|
], 64);
|
1138
1115
|
}), 128))
|
1139
1116
|
]));
|
1140
1117
|
}
|
1141
|
-
},
|
1118
|
+
}, an = {}, dn = {
|
1142
1119
|
xmlns: "http://www.w3.org/2000/svg",
|
1143
1120
|
viewBox: "0 0 24 24",
|
1144
1121
|
fill: "none",
|
@@ -1148,8 +1125,8 @@ const sn = /* @__PURE__ */ C(Qs, [["render", tn]]), nn = { class: "flex items-ce
|
|
1148
1125
|
"stroke-linejoin": "round",
|
1149
1126
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
|
1150
1127
|
};
|
1151
|
-
function
|
1152
|
-
return r(), i("svg",
|
1128
|
+
function un(t, e, s, a, n, o) {
|
1129
|
+
return r(), i("svg", dn, e[0] || (e[0] = [
|
1153
1130
|
l("path", {
|
1154
1131
|
stroke: "none",
|
1155
1132
|
d: "M0 0h24v24H0z",
|
@@ -1158,7 +1135,7 @@ function hn(t, e, s, a, n, o) {
|
|
1158
1135
|
l("path", { d: "M6 9l6 6l6 -6" }, null, -1)
|
1159
1136
|
]));
|
1160
1137
|
}
|
1161
|
-
const
|
1138
|
+
const cn = /* @__PURE__ */ w(an, [["render", un]]), pn = {}, hn = {
|
1162
1139
|
xmlns: "http://www.w3.org/2000/svg",
|
1163
1140
|
viewBox: "0 0 24 24",
|
1164
1141
|
fill: "none",
|
@@ -1168,8 +1145,8 @@ const bn = /* @__PURE__ */ C(cn, [["render", hn]]), fn = {}, gn = {
|
|
1168
1145
|
"stroke-linejoin": "round",
|
1169
1146
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1170
1147
|
};
|
1171
|
-
function
|
1172
|
-
return r(), i("svg",
|
1148
|
+
function bn(t, e, s, a, n, o) {
|
1149
|
+
return r(), i("svg", hn, e[0] || (e[0] = [
|
1173
1150
|
l("path", {
|
1174
1151
|
stroke: "none",
|
1175
1152
|
d: "M0 0h24v24H0z",
|
@@ -1178,8 +1155,8 @@ function mn(t, e, s, a, n, o) {
|
|
1178
1155
|
l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1179
1156
|
]));
|
1180
1157
|
}
|
1181
|
-
const
|
1182
|
-
components: { IconChevronDown:
|
1158
|
+
const fn = /* @__PURE__ */ w(pn, [["render", bn]]), gn = lt({
|
1159
|
+
components: { IconChevronDown: cn, IconCheck: fn },
|
1183
1160
|
props: {
|
1184
1161
|
total: { type: Number, default: () => 0 },
|
1185
1162
|
pageSize: { type: Number, default: () => 20 },
|
@@ -1261,13 +1238,13 @@ const xn = /* @__PURE__ */ C(fn, [["render", mn]]), yn = nt({
|
|
1261
1238
|
t < 1 || t > this.pagesCount || this.page === t || (this.page = t, this.$emit("pageChange", this.page, this.pageSizeLocal), this.updatePages(t));
|
1262
1239
|
}
|
1263
1240
|
}
|
1264
|
-
}),
|
1241
|
+
}), mn = { class: "flex items-center w-full" }, xn = { class: "flex items-center mx-[8px]" }, yn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, kn = {
|
1265
1242
|
key: 0,
|
1266
1243
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1267
|
-
},
|
1268
|
-
function
|
1244
|
+
}, vn = { class: "relative" }, _n = { 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%]" }, Cn = ["onClick"];
|
1245
|
+
function wn(t, e, s, a, n, o) {
|
1269
1246
|
const u = p("IconChevronDown"), f = p("IconCheck");
|
1270
|
-
return r(), i("nav",
|
1247
|
+
return r(), i("nav", mn, [
|
1271
1248
|
l("button", {
|
1272
1249
|
type: "button",
|
1273
1250
|
onClick: e[0] || (e[0] = (...h) => t.handleClickPrev && t.handleClickPrev(...h)),
|
@@ -1279,7 +1256,7 @@ function Tn(t, e, s, a, n, o) {
|
|
1279
1256
|
class: "rotate-90"
|
1280
1257
|
})
|
1281
1258
|
], 2),
|
1282
|
-
l("div",
|
1259
|
+
l("div", xn, [
|
1283
1260
|
l("span", {
|
1284
1261
|
ref: "currentPage",
|
1285
1262
|
contenteditable: "true",
|
@@ -1287,7 +1264,7 @@ function Tn(t, e, s, a, n, o) {
|
|
1287
1264
|
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 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
|
1288
1265
|
}, A(t.page), 545),
|
1289
1266
|
e[4] || (e[4] = l("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1290
|
-
l("span",
|
1267
|
+
l("span", yn, A(t.pagesCount), 1)
|
1291
1268
|
]),
|
1292
1269
|
l("button", {
|
1293
1270
|
type: "button",
|
@@ -1300,9 +1277,9 @@ function Tn(t, e, s, a, n, o) {
|
|
1300
1277
|
class: "-rotate-90"
|
1301
1278
|
})
|
1302
1279
|
], 2),
|
1303
|
-
t.pageSizes.length ? (r(), i("div",
|
1304
|
-
l("div",
|
1305
|
-
L(l("div",
|
1280
|
+
t.pageSizes.length ? (r(), i("div", kn, [
|
1281
|
+
l("div", vn, [
|
1282
|
+
L(l("div", _n, [
|
1306
1283
|
(r(!0), i(T, null, D(t.pageSizes, (h) => (r(), i("button", {
|
1307
1284
|
type: "button",
|
1308
1285
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
@@ -1315,7 +1292,7 @@ function Tn(t, e, s, a, n, o) {
|
|
1315
1292
|
height: "14",
|
1316
1293
|
class: "text-blue-600"
|
1317
1294
|
})) : v("", !0)
|
1318
|
-
], 8,
|
1295
|
+
], 8, Cn))), 256))
|
1319
1296
|
], 512), [
|
1320
1297
|
[E, t.isDropdownOpen]
|
1321
1298
|
]),
|
@@ -1335,26 +1312,26 @@ function Tn(t, e, s, a, n, o) {
|
|
1335
1312
|
])) : v("", !0)
|
1336
1313
|
]);
|
1337
1314
|
}
|
1338
|
-
const
|
1315
|
+
const $n = /* @__PURE__ */ w(gn, [["render", wn]]), An = {
|
1339
1316
|
props: { table: String, title: String },
|
1340
1317
|
components: {
|
1341
|
-
AdminTableControl:
|
1342
|
-
AdminTableExport:
|
1343
|
-
AdminTableColumnsHidden:
|
1344
|
-
AdminTableColumn:
|
1318
|
+
AdminTableControl: kt,
|
1319
|
+
AdminTableExport: Ht,
|
1320
|
+
AdminTableColumnsHidden: ds,
|
1321
|
+
AdminTableColumn: ut,
|
1345
1322
|
AdminNodata: Ge,
|
1346
1323
|
IconPlus: N,
|
1347
1324
|
IconSearch: Ke,
|
1348
|
-
AdminTableCardInfo:
|
1349
|
-
IconOpenCard:
|
1325
|
+
AdminTableCardInfo: Ps,
|
1326
|
+
IconOpenCard: Qe,
|
1350
1327
|
AdminComponentIs: U,
|
1351
|
-
AdminTableFilters:
|
1352
|
-
AdminTableTabs:
|
1353
|
-
AdminTableCustomFilters:
|
1354
|
-
AdminTableCustomButtons:
|
1355
|
-
AdminCustomButtonAdd:
|
1356
|
-
AdminTableTotalsList:
|
1357
|
-
AdminTablePagination:
|
1328
|
+
AdminTableFilters: zs,
|
1329
|
+
AdminTableTabs: Us,
|
1330
|
+
AdminTableCustomFilters: Zs,
|
1331
|
+
AdminTableCustomButtons: tn,
|
1332
|
+
AdminCustomButtonAdd: nn,
|
1333
|
+
AdminTableTotalsList: on,
|
1334
|
+
AdminTablePagination: $n
|
1358
1335
|
},
|
1359
1336
|
data() {
|
1360
1337
|
return {
|
@@ -1410,7 +1387,7 @@ const Sn = /* @__PURE__ */ C(yn, [["render", Tn]]), In = {
|
|
1410
1387
|
this.tableData = null, await this.getTableData();
|
1411
1388
|
},
|
1412
1389
|
searchValue: {
|
1413
|
-
handler:
|
1390
|
+
handler: sn(async function(t) {
|
1414
1391
|
var e;
|
1415
1392
|
await this.getTableData(), this.$router.push({
|
1416
1393
|
...this.$route,
|
@@ -1459,8 +1436,8 @@ const Sn = /* @__PURE__ */ C(yn, [["render", Tn]]), In = {
|
|
1459
1436
|
},
|
1460
1437
|
methods: {
|
1461
1438
|
async checkUrlMounted() {
|
1462
|
-
var t, e, s, a, n, o, u, f, h, b, d, _, m, g,
|
1463
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((h = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : h.length) - 1), this.filterState = ((d = (b = this.$route) == null ? void 0 : b.query) == null ? void 0 : d.filterState) || null, this.filterCustom = ((m = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : m.custom) || null, this.searchValue = ((
|
1439
|
+
var t, e, s, a, n, o, u, f, h, b, d, _, m, g, C, y, $, V, M;
|
1440
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((h = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : h.length) - 1), this.filterState = ((d = (b = this.$route) == null ? void 0 : b.query) == null ? void 0 : d.filterState) || null, this.filterCustom = ((m = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : m.custom) || null, this.searchValue = ((C = (g = this.$route) == null ? void 0 : g.query) == null ? void 0 : C.search) || "", this.visibleColumns = ((V = ($ = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : $.columns) == null ? void 0 : V.split(",")) || [], (M = this.$route) != null && M.query.card && (this.isVisibleCardInfo = !0);
|
1464
1441
|
},
|
1465
1442
|
rowWidth(t) {
|
1466
1443
|
var s, a;
|
@@ -1491,8 +1468,8 @@ const Sn = /* @__PURE__ */ C(yn, [["render", Tn]]), In = {
|
|
1491
1468
|
..._,
|
1492
1469
|
...(m == null ? void 0 : m.data) || {}
|
1493
1470
|
}, this.initialHiddenColumns = (o = (n = (a = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : a.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : n.map((g) => g == null ? void 0 : g.name)) == null ? void 0 : o.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((g) => {
|
1494
|
-
var
|
1495
|
-
(
|
1471
|
+
var C;
|
1472
|
+
(C = this.visibleColumns) != null && C.includes(g == null ? void 0 : g.name) ? g.hidden = !1 : g.hidden = !0;
|
1496
1473
|
}) : this.visibleColumns = (d = (b = (h = this.tableData) == null ? void 0 : h.columns) == null ? void 0 : b.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : d.map((g) => g == null ? void 0 : g.name);
|
1497
1474
|
} catch {
|
1498
1475
|
}
|
@@ -1548,25 +1525,25 @@ const Sn = /* @__PURE__ */ C(yn, [["render", Tn]]), In = {
|
|
1548
1525
|
];
|
1549
1526
|
}
|
1550
1527
|
}
|
1551
|
-
},
|
1528
|
+
}, Tn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Sn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, In = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, Vn = {
|
1552
1529
|
style: { height: "calc(100vh - 155px)" },
|
1553
1530
|
class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1554
|
-
},
|
1531
|
+
}, Dn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, Pn = { class: "flex" }, Fn = { class: "flex gap-[6px] ml-auto" }, jn = { class: "inline-block w-full align-middle" }, Mn = {
|
1555
1532
|
key: 0,
|
1556
1533
|
class: "relative min-w-full text-[13px] divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1557
|
-
},
|
1534
|
+
}, Ln = { 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" }, zn = { class: "right-0" }, qn = {
|
1558
1535
|
key: 0,
|
1559
1536
|
class: "w-[70px] sticky right-0 top-0"
|
1560
|
-
},
|
1537
|
+
}, Bn = { class: "divide-y divide-gray-200 z-[1] relative" }, On = ["onClick"], Nn = ["onClick"], Un = { class: "p-[10px] flex justify-start items-center w-full" }, En = { class: "w-[200px] md:inline-flex hidden" }, Hn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Rn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Wn = { key: 0 }, Jn = {
|
1561
1538
|
key: 0,
|
1562
1539
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1563
1540
|
};
|
1564
|
-
function
|
1541
|
+
function Gn(t, e, s, a, n, o) {
|
1565
1542
|
var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, re, oe, ae, ie, de, ue, ce, pe, he, be, fe, ge;
|
1566
|
-
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"),
|
1567
|
-
return r(), i("div",
|
1568
|
-
l("div",
|
1569
|
-
l("h2",
|
1543
|
+
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), C = p("AdminTableColumnsHidden"), y = p("AdminTableExport"), $ = p("AdminTableFilters"), V = p("IconOpenCard"), M = p("AdminTableColumn"), q = p("AdminComponentIs"), Fe = p("AdminTableControl"), je = p("AdminTableTotalsList"), Me = p("AdminNodata"), Le = p("AdminTablePagination"), ze = p("AdminTableCardInfo");
|
1544
|
+
return r(), i("div", Tn, [
|
1545
|
+
l("div", Sn, [
|
1546
|
+
l("h2", In, A(s.title), 1),
|
1570
1547
|
o.isForm ? (r(), i(T, { key: 0 }, [
|
1571
1548
|
(R = (H = n.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (r(), k(u, {
|
1572
1549
|
key: 0,
|
@@ -1587,15 +1564,15 @@ function Xn(t, e, s, a, n, o) {
|
|
1587
1564
|
}, 8, ["to"]))
|
1588
1565
|
], 64)) : v("", !0)
|
1589
1566
|
]),
|
1590
|
-
l("div",
|
1591
|
-
l("div",
|
1567
|
+
l("div", Vn, [
|
1568
|
+
l("div", Dn, [
|
1592
1569
|
(Q = (K = n.tableData) == null ? void 0 : K.filterState) != null && Q.length ? (r(), k(b, {
|
1593
1570
|
key: 0,
|
1594
1571
|
tabsList: (X = n.tableData) == null ? void 0 : X.filterState,
|
1595
1572
|
filterState: n.filterState,
|
1596
1573
|
"onUpdate:filterState": e[0] || (e[0] = (c) => n.filterState = c)
|
1597
1574
|
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
1598
|
-
l("div",
|
1575
|
+
l("div", Pn, [
|
1599
1576
|
l("div", {
|
1600
1577
|
class: I([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1601
1578
|
}, [
|
@@ -1614,7 +1591,7 @@ function Xn(t, e, s, a, n, o) {
|
|
1614
1591
|
clearable: !0,
|
1615
1592
|
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"
|
1616
1593
|
}, null, 8, ["modelValue"]),
|
1617
|
-
l("div",
|
1594
|
+
l("div", Fn, [
|
1618
1595
|
(Y = n.tableData) != null && Y.slots ? (r(), k(m, {
|
1619
1596
|
key: 0,
|
1620
1597
|
slots: (Z = n.tableData) == null ? void 0 : Z.slots
|
@@ -1625,7 +1602,7 @@ function Xn(t, e, s, a, n, o) {
|
|
1625
1602
|
filterCustom: n.filterCustom,
|
1626
1603
|
"onUpdate:filterCustom": e[2] || (e[2] = (c) => n.filterCustom = c)
|
1627
1604
|
}, null, 8, ["customList", "filterCustom"])) : v("", !0),
|
1628
|
-
x(
|
1605
|
+
x(C, {
|
1629
1606
|
columns: (ne = n.tableData) == null ? void 0 : ne.columns,
|
1630
1607
|
onUpdateColumns: e[3] || (e[3] = (c) => n.tableData.columns = c)
|
1631
1608
|
}, null, 8, ["columns"]),
|
@@ -1664,10 +1641,10 @@ function Xn(t, e, s, a, n, o) {
|
|
1664
1641
|
}),
|
1665
1642
|
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"
|
1666
1643
|
}, [
|
1667
|
-
l("div",
|
1668
|
-
o.isNoData ? (r(), k(Me, { key: 1 })) : (r(), i("table",
|
1669
|
-
l("thead",
|
1670
|
-
l("tr",
|
1644
|
+
l("div", jn, [
|
1645
|
+
o.isNoData ? (r(), k(Me, { key: 1 })) : (r(), i("table", Mn, [
|
1646
|
+
l("thead", Ln, [
|
1647
|
+
l("tr", zn, [
|
1671
1648
|
(r(!0), i(T, null, D(o.columns, (c) => (r(), k(M, {
|
1672
1649
|
key: c.name,
|
1673
1650
|
style: Ve({
|
@@ -1681,12 +1658,12 @@ function Xn(t, e, s, a, n, o) {
|
|
1681
1658
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1682
1659
|
(ue = (de = o.getActions) == null ? void 0 : de.filter(
|
1683
1660
|
(c) => c !== "add" && c !== "view"
|
1684
|
-
)) != null && ue.length ? (r(), i("th",
|
1661
|
+
)) != null && ue.length ? (r(), i("th", qn)) : v("", !0)
|
1685
1662
|
])
|
1686
1663
|
]),
|
1687
|
-
l("tbody",
|
1664
|
+
l("tbody", Bn, [
|
1688
1665
|
(r(!0), i(T, null, D((ce = n.tableData) == null ? void 0 : ce.rows, (c, qe) => {
|
1689
|
-
var me, xe, ye, ke, ve, _e,
|
1666
|
+
var me, xe, ye, ke, ve, _e, Ce, we, $e, Ae, Te, Se;
|
1690
1667
|
return r(), i("tr", {
|
1691
1668
|
key: (c == null ? void 0 : c.id) || qe,
|
1692
1669
|
class: I({
|
@@ -1713,10 +1690,10 @@ function Xn(t, e, s, a, n, o) {
|
|
1713
1690
|
table: s.table,
|
1714
1691
|
onUpdateTable: o.getTableData
|
1715
1692
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1716
|
-
], 10,
|
1693
|
+
], 10, On)
|
1717
1694
|
], 2),
|
1718
1695
|
(r(!0), i(T, null, D((_e = o.columns) == null ? void 0 : _e.slice(1), (F) => (r(), i("td", {
|
1719
|
-
onClick: (
|
1696
|
+
onClick: (Zn) => {
|
1720
1697
|
o.changeActiveCardInfo(c == null ? void 0 : c.id), o.pushToLinkCard(F, c);
|
1721
1698
|
},
|
1722
1699
|
class: I(["px-1 py-3 text-gray-600 pe-3", o.getCustomStyles(F)]),
|
@@ -1728,10 +1705,10 @@ function Xn(t, e, s, a, n, o) {
|
|
1728
1705
|
table: s.table,
|
1729
1706
|
onUpdateTable: o.getTableData
|
1730
1707
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1731
|
-
], 10,
|
1732
|
-
(
|
1708
|
+
], 10, Nn))), 128)),
|
1709
|
+
(we = (Ce = o.getActions) == null ? void 0 : Ce.filter(
|
1733
1710
|
(F) => F !== "add" && F !== "view"
|
1734
|
-
)) != null &&
|
1711
|
+
)) != null && we.length ? (r(), i("td", {
|
1735
1712
|
key: 0,
|
1736
1713
|
class: I(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1737
1714
|
"bg-gray-50": ((Ae = ($e = t.$route) == null ? void 0 : $e.query) == null ? void 0 : Ae.card) === (c == null ? void 0 : c.id),
|
@@ -1757,14 +1734,14 @@ function Xn(t, e, s, a, n, o) {
|
|
1757
1734
|
])
|
1758
1735
|
], 4)
|
1759
1736
|
], 2),
|
1760
|
-
l("div",
|
1761
|
-
l("div",
|
1762
|
-
l("p",
|
1763
|
-
l("span",
|
1737
|
+
l("div", Un, [
|
1738
|
+
l("div", En, [
|
1739
|
+
l("p", Hn, [
|
1740
|
+
l("span", Rn, [
|
1764
1741
|
P(A(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + A(((he = n.tableData) == null ? void 0 : he.count) || "0 ") + " ", 1),
|
1765
|
-
n.filters || n.searchValue ? (r(), i("span",
|
1742
|
+
n.filters || n.searchValue ? (r(), i("span", Wn, " з")) : v("", !0)
|
1766
1743
|
]),
|
1767
|
-
n.filters || n.searchValue ? (r(), i("span",
|
1744
|
+
n.filters || n.searchValue ? (r(), i("span", Jn, A(" " + ((be = n.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
|
1768
1745
|
])
|
1769
1746
|
]),
|
1770
1747
|
Math.ceil(((fe = n.tableData) == null ? void 0 : fe.filtered) / n.limit) > 1 ? (r(), k(Le, {
|
@@ -1797,8 +1774,8 @@ function Xn(t, e, s, a, n, o) {
|
|
1797
1774
|
])
|
1798
1775
|
]);
|
1799
1776
|
}
|
1800
|
-
const
|
1801
|
-
components: { AdminTable:
|
1777
|
+
const Kn = /* @__PURE__ */ w(An, [["render", Gn], ["__scopeId", "data-v-9370dca8"]]), Qn = {
|
1778
|
+
components: { AdminTable: Kn },
|
1802
1779
|
data() {
|
1803
1780
|
return {
|
1804
1781
|
table: !1,
|
@@ -1816,7 +1793,7 @@ const Yn = /* @__PURE__ */ C(In, [["render", Xn], ["__scopeId", "data-v-9370dca8
|
|
1816
1793
|
},
|
1817
1794
|
title(t) {
|
1818
1795
|
var e;
|
1819
|
-
t && (document.title = (((e =
|
1796
|
+
t && (document.title = (((e = Xe.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1820
1797
|
}
|
1821
1798
|
},
|
1822
1799
|
async mounted() {
|
@@ -1853,8 +1830,8 @@ const Yn = /* @__PURE__ */ C(In, [["render", Xn], ["__scopeId", "data-v-9370dca8
|
|
1853
1830
|
}
|
1854
1831
|
}
|
1855
1832
|
}
|
1856
|
-
},
|
1857
|
-
function
|
1833
|
+
}, Xn = ["innerHTML"];
|
1834
|
+
function Yn(t, e, s, a, n, o) {
|
1858
1835
|
const u = p("AdminTable");
|
1859
1836
|
return n.table ? (r(), k(u, {
|
1860
1837
|
key: 0,
|
@@ -1865,9 +1842,9 @@ function tl(t, e, s, a, n, o) {
|
|
1865
1842
|
class: "w-full bg-gray-50",
|
1866
1843
|
style: { height: "calc(100vh - 120px)" },
|
1867
1844
|
innerHTML: n.interface
|
1868
|
-
}, null, 8,
|
1845
|
+
}, null, 8, Xn));
|
1869
1846
|
}
|
1870
|
-
const
|
1847
|
+
const sl = /* @__PURE__ */ w(Qn, [["render", Yn]]);
|
1871
1848
|
export {
|
1872
|
-
|
1849
|
+
sl as default
|
1873
1850
|
};
|