@opengis/admin 0.3.74 → 0.3.75
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-DYtOxy-U.js → add-page-ghG2bid2.js} +4 -4
- package/dist/{admin-interface-Dsep8V6A.js → admin-interface-BJAnEoxL.js} +207 -207
- package/dist/{admin-view-CdnFJqgL.js → admin-view-Yb9ugSBy.js} +6 -6
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +99 -99
- package/dist/{card-view-D4csIlyi.js → card-view-i_M54-ph.js} +3 -3
- package/dist/{edit-page-CuELvVCP.js → edit-page-DwFp9aP0.js} +8 -8
- package/dist/{import-file-CnY8doHL.js → import-file-CfMbZQeD.js} +18909 -18787
- package/dist/{profile-page-CjUzieEy.js → profile-page-BfD-QbCT.js} +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as S, g as Je, h as Ge, i as Qe,
|
2
|
-
import {
|
1
|
+
import { _ as S, g as Je, h as Ge, i as Qe, e as M, I as Xe, s as E, j as Ue, k as Q, V as Ye, l as Ze, m as et, n as tt, A as X, o as st, p as nt, q as at, r as lt, a as rt, t as ot, u as Ee } from "./import-file-CfMbZQeD.js";
|
2
|
+
import { createElementBlock as i, openBlock as r, createTextVNode as P, createElementVNode as l, toDisplayString as A, createCommentVNode as k, normalizeClass as w, resolveComponent as f, Fragment as $, createVNode as x, withCtx as D, createBlock as v, renderList as V, withModifiers as it, createStaticVNode as dt, withDirectives as U, vModelCheckbox as ut, Transition as W, vModelText as ct, renderSlot as ht, vShow as Y, Teleport as pt, getCurrentInstance as Re, ref as J, resolveDynamicComponent as G, defineComponent as bt, withKeys as ft, normalizeStyle as K } from "vue";
|
3
3
|
const gt = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -69,16 +69,16 @@ const gt = {
|
|
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 vt(t, e, n, o, s,
|
72
|
+
function vt(t, e, n, o, s, a) {
|
73
73
|
return r(), i("th", mt, [
|
74
|
-
|
74
|
+
a.getVisibleIcon ? (r(), i("button", {
|
75
75
|
key: 0,
|
76
76
|
type: "button",
|
77
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) =>
|
78
|
+
onClick: e[0] || (e[0] = (c) => a.handleClickSortBtn(s.currentSort))
|
79
79
|
}, [
|
80
|
-
P(A(
|
81
|
-
|
80
|
+
P(A(a.label) + " ", 1),
|
81
|
+
l("span", xt, [
|
82
82
|
s.currentSort ? (r(), i("svg", {
|
83
83
|
key: 0,
|
84
84
|
class: w(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
|
@@ -92,18 +92,18 @@ function vt(t, e, n, o, s, l) {
|
|
92
92
|
"stroke-linecap": "round",
|
93
93
|
"stroke-linejoin": "round"
|
94
94
|
}, e[1] || (e[1] = [
|
95
|
-
|
96
|
-
|
95
|
+
l("path", { d: "m5 12 7-7 7 7" }, null, -1),
|
96
|
+
l("path", { d: "M12 19V5" }, null, -1)
|
97
97
|
]), 2)) : k("", !0)
|
98
98
|
])
|
99
|
-
])) : (r(), i("p", yt, A(
|
99
|
+
])) : (r(), i("p", yt, A(a.label), 1))
|
100
100
|
], 512);
|
101
101
|
}
|
102
102
|
const kt = /* @__PURE__ */ S(gt, [["render", vt]]), _t = {
|
103
103
|
components: {
|
104
|
-
IconMore:
|
104
|
+
IconMore: Qe,
|
105
105
|
IconDelete: Ge,
|
106
|
-
IconEdit:
|
106
|
+
IconEdit: Je
|
107
107
|
},
|
108
108
|
emits: ["updateTable"],
|
109
109
|
props: {
|
@@ -186,16 +186,16 @@ const kt = /* @__PURE__ */ S(gt, [["render", vt]]), _t = {
|
|
186
186
|
key: 1,
|
187
187
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
188
188
|
}, It = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
189
|
-
function Dt(t, e, n, o, s,
|
189
|
+
function Dt(t, e, n, o, s, a) {
|
190
190
|
const c = f("IconMore"), g = f("IconEdit"), p = f("router-link"), b = f("IconDelete"), d = f("VsPopover"), y = f("VsConfirm");
|
191
191
|
return r(), i($, null, [
|
192
|
-
|
192
|
+
l("div", Ct, [
|
193
193
|
x(d, {
|
194
194
|
trigger: "click",
|
195
195
|
placement: "bottom-left"
|
196
196
|
}, {
|
197
197
|
reference: D(() => [
|
198
|
-
|
198
|
+
l("button", wt, [
|
199
199
|
x(c, {
|
200
200
|
height: "16",
|
201
201
|
width: "16"
|
@@ -205,7 +205,7 @@ function Dt(t, e, n, o, s, l) {
|
|
205
205
|
default: D(() => {
|
206
206
|
var m, h, _, C, I;
|
207
207
|
return [
|
208
|
-
|
208
|
+
l("div", $t, [
|
209
209
|
(m = n.actions) != null && m.includes("edit") && n.isForm ? (r(), v(p, {
|
210
210
|
key: 0,
|
211
211
|
to: `/edit?table=${(_ = (h = t.$route) == null ? void 0 : h.params) == null ? void 0 : _.catchAll}&id=${(C = n.item) == null ? void 0 : C.id}`,
|
@@ -217,22 +217,22 @@ function Dt(t, e, n, o, s, l) {
|
|
217
217
|
]),
|
218
218
|
_: 1
|
219
219
|
}, 8, ["to"])) : k("", !0),
|
220
|
-
(r(!0), i($, null, V(
|
220
|
+
(r(!0), i($, null, V(a.getCustomActions, (T, F) => (r(), i("button", {
|
221
221
|
key: F,
|
222
|
-
onClick: (j) =>
|
222
|
+
onClick: (j) => a.customButtonAction(T),
|
223
223
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
224
224
|
}, [
|
225
225
|
x(b, { class: "opacity-0" }),
|
226
|
-
|
226
|
+
l("span", Tt, A(T == null ? void 0 : T.label), 1)
|
227
227
|
], 8, St))), 128)),
|
228
228
|
n.isForm ? (r(), i("div", At)) : k("", !0),
|
229
229
|
(I = n.actions) != null && I.includes("del") ? (r(), i("button", {
|
230
230
|
key: 2,
|
231
|
-
onClick: e[0] || (e[0] = it((...T) =>
|
231
|
+
onClick: e[0] || (e[0] = it((...T) => a.openConfirm && a.openConfirm(...T), ["stop"])),
|
232
232
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
233
233
|
}, [
|
234
234
|
x(b),
|
235
|
-
e[5] || (e[5] =
|
235
|
+
e[5] || (e[5] = l("span", { class: "text-gray-800" }, "Видалити", -1))
|
236
236
|
])) : k("", !0)
|
237
237
|
])
|
238
238
|
];
|
@@ -247,17 +247,17 @@ function Dt(t, e, n, o, s, l) {
|
|
247
247
|
title: "Ви впевнені?"
|
248
248
|
}, {
|
249
249
|
default: D(() => [
|
250
|
-
e[6] || (e[6] =
|
251
|
-
|
252
|
-
|
250
|
+
e[6] || (e[6] = l("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
251
|
+
l("div", It, [
|
252
|
+
l("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] = (m) => s.isDeleteConfirm = !1)
|
256
256
|
}, " Скасувати "),
|
257
|
-
|
257
|
+
l("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] = (...m) =>
|
260
|
+
onClick: e[2] || (e[2] = (...m) => a.deleteElement && a.deleteElement(...m))
|
261
261
|
}, " Так, я впевнена(ий) ")
|
262
262
|
])
|
263
263
|
]),
|
@@ -275,12 +275,12 @@ const Vt = /* @__PURE__ */ S(_t, [["render", Dt]]), Pt = {}, Ft = {
|
|
275
275
|
"stroke-linecap": "round",
|
276
276
|
"stroke-linejoin": "round"
|
277
277
|
};
|
278
|
-
function jt(t, e, n, o, s,
|
278
|
+
function jt(t, e, n, o, s, a) {
|
279
279
|
return r(), i("svg", Ft, e[0] || (e[0] = [
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
280
|
+
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
281
|
+
l("path", { d: "M7 20V4" }, null, -1),
|
282
|
+
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
283
|
+
l("path", { d: "M17 4v16" }, null, -1)
|
284
284
|
]));
|
285
285
|
}
|
286
286
|
const Lt = /* @__PURE__ */ S(Pt, [["render", jt]]), Mt = {}, zt = {
|
@@ -295,15 +295,15 @@ const Lt = /* @__PURE__ */ S(Pt, [["render", jt]]), Mt = {}, zt = {
|
|
295
295
|
"stroke-linejoin": "round",
|
296
296
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
297
297
|
};
|
298
|
-
function qt(t, e, n, o, s,
|
298
|
+
function qt(t, e, n, o, s, a) {
|
299
299
|
return r(), i("svg", zt, e[0] || (e[0] = [
|
300
|
-
|
300
|
+
l("path", {
|
301
301
|
stroke: "none",
|
302
302
|
d: "M0 0h24v24H0z",
|
303
303
|
fill: "none"
|
304
304
|
}, null, -1),
|
305
|
-
|
306
|
-
|
305
|
+
l("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
|
+
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
307
307
|
]));
|
308
308
|
}
|
309
309
|
const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
|
@@ -378,15 +378,15 @@ const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
|
|
378
378
|
responseType: "blob"
|
379
379
|
}), n = await e.data.text(), o = n != null && n.includes(";") ? null : JSON == null ? void 0 : JSON.parse(n), s = new Blob([e.data], {
|
380
380
|
type: "application/octet-stream"
|
381
|
-
}),
|
382
|
-
if (c.href =
|
381
|
+
}), a = window.URL.createObjectURL(s), c = document.createElement("a");
|
382
|
+
if (c.href = a, c.setAttribute(
|
383
383
|
"download",
|
384
384
|
`${this.table.split(".")[0]}.${this.format}`
|
385
385
|
), document.body.appendChild(c), typeof o == "string") {
|
386
386
|
this.exportTable();
|
387
387
|
return;
|
388
388
|
}
|
389
|
-
c.click(), document.body.removeChild(c), window.URL.revokeObjectURL(
|
389
|
+
c.click(), document.body.removeChild(c), window.URL.revokeObjectURL(a), this.$notify({
|
390
390
|
type: "success",
|
391
391
|
title: "Експорт",
|
392
392
|
message: "Файл успішно експортовано!"
|
@@ -430,10 +430,10 @@ const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
|
|
430
430
|
key: 1,
|
431
431
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
432
432
|
};
|
433
|
-
function es(t, e, n, o, s,
|
433
|
+
function es(t, e, n, o, s, a) {
|
434
434
|
const c = f("IconExport"), g = f("IconSuccess"), p = f("VsCheckbox"), b = f("VsDialog");
|
435
435
|
return r(), i($, null, [
|
436
|
-
|
436
|
+
l("button", {
|
437
437
|
onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
|
438
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"
|
439
439
|
}, [
|
@@ -452,26 +452,26 @@ function es(t, e, n, o, s, l) {
|
|
452
452
|
}, {
|
453
453
|
footer: D(() => [
|
454
454
|
s.isSuccessTemplate ? (r(), i("div", Yt, [
|
455
|
-
|
455
|
+
l("button", {
|
456
456
|
type: "button",
|
457
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",
|
458
458
|
onClick: e[2] || (e[2] = (d) => s.isOpen = !1)
|
459
459
|
}, " Закрити "),
|
460
|
-
|
460
|
+
l("button", {
|
461
461
|
type: "button",
|
462
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",
|
463
463
|
onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
|
464
464
|
}, " Вигрузити ще ")
|
465
465
|
])) : (r(), i("div", Zt, [
|
466
|
-
|
466
|
+
l("button", {
|
467
467
|
type: "button",
|
468
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",
|
469
469
|
onClick: e[4] || (e[4] = (d) => s.isOpen = !1)
|
470
470
|
}, " Скасувати "),
|
471
|
-
|
471
|
+
l("button", {
|
472
472
|
type: "button",
|
473
|
-
class: w(`inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-${
|
474
|
-
onClick: e[5] || (e[5] = (...d) =>
|
473
|
+
class: w(`inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-${a.color}-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-${a.color}-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-${a.color}-300 dark:focus:ring-${a.color}-500`),
|
474
|
+
onClick: e[5] || (e[5] = (...d) => a.exportTable && a.exportTable(...d))
|
475
475
|
}, " Завантажити таблицю ", 2)
|
476
476
|
]))
|
477
477
|
]),
|
@@ -482,17 +482,17 @@ function es(t, e, n, o, s, l) {
|
|
482
482
|
width: "100",
|
483
483
|
class: "text-green-200 mb-[20px]"
|
484
484
|
}),
|
485
|
-
e[8] || (e[8] =
|
485
|
+
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
486
486
|
])) : (r(), i("div", Et, [
|
487
|
-
|
488
|
-
e[9] || (e[9] =
|
489
|
-
|
487
|
+
l("div", Ut, [
|
488
|
+
e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
489
|
+
l("div", Rt, [
|
490
490
|
(r(!0), i($, null, V(s.actions, (d) => (r(), i("button", {
|
491
491
|
key: d == null ? void 0 : d.name,
|
492
492
|
onClick: d == null ? void 0 : d.function,
|
493
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"
|
494
494
|
}, [
|
495
|
-
|
495
|
+
l("span", {
|
496
496
|
class: w(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
|
497
497
|
}, [
|
498
498
|
(d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", Wt)) : k("", !0)
|
@@ -500,7 +500,7 @@ function es(t, e, n, o, s, l) {
|
|
500
500
|
P(" " + A(d == null ? void 0 : d.label), 1)
|
501
501
|
], 8, Ht))), 128))
|
502
502
|
]),
|
503
|
-
|
503
|
+
l("div", Kt, [
|
504
504
|
(r(!0), i($, null, V(n.columns, (d, y) => (r(), i("div", {
|
505
505
|
class: "flex items-center",
|
506
506
|
key: y,
|
@@ -516,21 +516,21 @@ function es(t, e, n, o, s, l) {
|
|
516
516
|
]))), 128))
|
517
517
|
])
|
518
518
|
]),
|
519
|
-
|
520
|
-
e[10] || (e[10] =
|
521
|
-
|
519
|
+
l("div", Jt, [
|
520
|
+
e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть формат таблиці: ", -1)),
|
521
|
+
l("div", Gt, [
|
522
522
|
(r(!0), i($, null, V(s.tableFormats, (d, y) => (r(), i("div", {
|
523
523
|
class: "flex items-center",
|
524
524
|
key: y
|
525
525
|
}, [
|
526
|
-
|
526
|
+
l("input", {
|
527
527
|
type: "radio",
|
528
528
|
name: "hs-pro-duecmfm",
|
529
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",
|
530
530
|
id: d,
|
531
|
-
onChange: (m) =>
|
531
|
+
onChange: (m) => a.selectFormat(d)
|
532
532
|
}, null, 40, Qt),
|
533
|
-
|
533
|
+
l("label", {
|
534
534
|
for: d,
|
535
535
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
536
536
|
}, " Формат " + A(d), 9, Xt)
|
@@ -553,12 +553,12 @@ const ts = /* @__PURE__ */ S(Ot, [["render", es]]), ss = {}, ns = {
|
|
553
553
|
"stroke-linejoin": "round",
|
554
554
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
555
555
|
};
|
556
|
-
function
|
556
|
+
function as(t, e, n, o, s, a) {
|
557
557
|
return r(), i("svg", ns, e[0] || (e[0] = [
|
558
558
|
dt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
|
559
559
|
]));
|
560
560
|
}
|
561
|
-
const
|
561
|
+
const ls = /* @__PURE__ */ S(ss, [["render", as]]), rs = {
|
562
562
|
props: { column: Object },
|
563
563
|
emits: ["update-column"],
|
564
564
|
components: {
|
@@ -584,21 +584,21 @@ const as = /* @__PURE__ */ S(ss, [["render", ls]]), rs = {
|
|
584
584
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
585
585
|
}
|
586
586
|
}, os = { class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800" }, is = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
587
|
-
function ds(t, e, n, o, s,
|
587
|
+
function ds(t, e, n, o, s, a) {
|
588
588
|
var g, p;
|
589
589
|
const c = f("IconCheck2");
|
590
590
|
return r(), i("div", os, [
|
591
|
-
|
591
|
+
l("label", is, [
|
592
592
|
P(A(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
|
593
|
-
U(
|
593
|
+
U(l("input", {
|
594
594
|
type: "checkbox",
|
595
595
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
|
596
596
|
class: "hidden"
|
597
597
|
}, null, 512), [
|
598
598
|
[ut, s.value]
|
599
599
|
]),
|
600
|
-
|
601
|
-
class: w(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-" +
|
600
|
+
l("span", {
|
601
|
+
class: w(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-" + a.color + "-600 border-0" : "bg-white"]])
|
602
602
|
}, [
|
603
603
|
x(c, {
|
604
604
|
height: "12",
|
@@ -609,7 +609,7 @@ function ds(t, e, n, o, s, l) {
|
|
609
609
|
]);
|
610
610
|
}
|
611
611
|
const us = /* @__PURE__ */ S(rs, [["render", ds]]), cs = {
|
612
|
-
components: { IconColumns:
|
612
|
+
components: { IconColumns: ls, AdminTableColumnsHiddenItem: us },
|
613
613
|
emits: ["update-columns"],
|
614
614
|
props: { columns: Array },
|
615
615
|
data() {
|
@@ -623,8 +623,8 @@ const us = /* @__PURE__ */ S(rs, [["render", ds]]), cs = {
|
|
623
623
|
var t;
|
624
624
|
return (t = this.columns) == null ? void 0 : t.filter(
|
625
625
|
(e) => {
|
626
|
-
var n, o, s,
|
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 = (
|
626
|
+
var n, o, s, a, 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 = (a = e == null ? void 0 : e.title) == null ? void 0 : a.toLowerCase()) == null ? void 0 : g.includes((c = this.searchValue) == null ? void 0 : c.toLowerCase()));
|
628
628
|
}
|
629
629
|
);
|
630
630
|
}
|
@@ -658,11 +658,11 @@ const us = /* @__PURE__ */ S(rs, [["render", ds]]), cs = {
|
|
658
658
|
key: 1,
|
659
659
|
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
660
660
|
};
|
661
|
-
function ys(t, e, n, o, s,
|
661
|
+
function ys(t, e, n, o, s, a) {
|
662
662
|
const c = f("IconColumns"), g = f("AdminTableColumnsHiddenItem");
|
663
663
|
return r(), i("div", hs, [
|
664
|
-
|
665
|
-
onClick: e[0] || (e[0] = (...p) =>
|
664
|
+
l("button", {
|
665
|
+
onClick: e[0] || (e[0] = (...p) => a.toggleVisible && a.toggleVisible(...p)),
|
666
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"
|
667
667
|
}, [
|
668
668
|
x(c, {
|
@@ -675,9 +675,9 @@ function ys(t, e, n, o, s, l) {
|
|
675
675
|
var p, b;
|
676
676
|
return [
|
677
677
|
s.visible ? (r(), i("div", ps, [
|
678
|
-
e[2] || (e[2] =
|
679
|
-
|
680
|
-
U(
|
678
|
+
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)),
|
679
|
+
l("div", bs, [
|
680
|
+
U(l("input", {
|
681
681
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
|
682
682
|
type: "text",
|
683
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",
|
@@ -687,13 +687,13 @@ function ys(t, e, n, o, s, l) {
|
|
687
687
|
[ct, s.searchValue]
|
688
688
|
])
|
689
689
|
]),
|
690
|
-
|
691
|
-
(p =
|
692
|
-
|
693
|
-
(b =
|
690
|
+
l("div", fs, [
|
691
|
+
(p = a.filteredColumn) != null && p.length ? (r(), i("span", gs, " Оберіть колонки для відображення ")) : k("", !0),
|
692
|
+
l("div", ms, [
|
693
|
+
(b = a.filteredColumn) != null && b.length ? (r(!0), i($, { key: 0 }, V(a.filteredColumn, (d, y) => (r(), v(g, {
|
694
694
|
key: y,
|
695
695
|
column: d,
|
696
|
-
onUpdateColumn:
|
696
|
+
onUpdateColumn: a.updateColumn
|
697
697
|
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", xs, " Нічого не знайдено "))
|
698
698
|
])
|
699
699
|
])
|
@@ -714,14 +714,14 @@ const vs = /* @__PURE__ */ S(cs, [["render", ys]]), ks = {}, _s = {
|
|
714
714
|
"stroke-linejoin": "round",
|
715
715
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
716
716
|
};
|
717
|
-
function Cs(t, e, n, o, s,
|
717
|
+
function Cs(t, e, n, o, s, a) {
|
718
718
|
return r(), i("svg", _s, e[0] || (e[0] = [
|
719
|
-
|
719
|
+
l("path", {
|
720
720
|
stroke: "none",
|
721
721
|
d: "M0 0h24v24H0z",
|
722
722
|
fill: "none"
|
723
723
|
}, null, -1),
|
724
|
-
|
724
|
+
l("path", { d: "M5 12l14 0" }, null, -1)
|
725
725
|
]));
|
726
726
|
}
|
727
727
|
const ws = /* @__PURE__ */ S(ks, [["render", Cs]]), $s = {
|
@@ -734,19 +734,19 @@ const ws = /* @__PURE__ */ S(ks, [["render", Cs]]), $s = {
|
|
734
734
|
return { expanded: this.defaultValue };
|
735
735
|
}
|
736
736
|
}, Ss = { class: "hs-accordion" }, Ts = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, As = { class: "text-sm font-medium" }, Is = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
737
|
-
function Ds(t, e, n, o, s,
|
737
|
+
function Ds(t, e, n, o, s, a) {
|
738
738
|
const c = f("IconPlus"), g = f("IconMinus");
|
739
739
|
return r(), i("div", null, [
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
740
|
+
l("div", null, [
|
741
|
+
l("div", Ss, [
|
742
|
+
l("div", Ts, [
|
743
|
+
l("div", {
|
744
744
|
onClick: e[0] || (e[0] = (p) => s.expanded = !s.expanded),
|
745
745
|
class: "rounded-md cursor-pointer grow"
|
746
746
|
}, [
|
747
|
-
|
747
|
+
l("span", As, A(n.title), 1)
|
748
748
|
]),
|
749
|
-
|
749
|
+
l("button", {
|
750
750
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
751
751
|
onClick: e[1] || (e[1] = (p) => s.expanded = !s.expanded)
|
752
752
|
}, [
|
@@ -758,7 +758,7 @@ function Ds(t, e, n, o, s, l) {
|
|
758
758
|
]),
|
759
759
|
x(W, { name: "fade" }, {
|
760
760
|
default: D(() => [
|
761
|
-
U(
|
761
|
+
U(l("div", Is, [
|
762
762
|
ht(t.$slots, "default", {}, void 0, !0)
|
763
763
|
], 512), [
|
764
764
|
[Y, s.expanded]
|
@@ -774,10 +774,10 @@ const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-c6318482
|
|
774
774
|
components: {
|
775
775
|
AdminComponentIs: X,
|
776
776
|
AdminTree: Vs,
|
777
|
-
VsNoData:
|
778
|
-
VsWidgetComments:
|
779
|
-
VsWidgetMap:
|
780
|
-
VsWidgetFileList:
|
777
|
+
VsNoData: tt,
|
778
|
+
VsWidgetComments: et,
|
779
|
+
VsWidgetMap: Ze,
|
780
|
+
VsWidgetFileList: Ye
|
781
781
|
},
|
782
782
|
props: { table: String, columns: Array, row: Object }
|
783
783
|
}, Fs = {
|
@@ -787,20 +787,20 @@ const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-c6318482
|
|
787
787
|
style: { height: "calc(100vh - 360px)" },
|
788
788
|
class: "pl-2"
|
789
789
|
}, Ls = { class: "flow-root mt-[10px]" }, Ms = { class: "divide-y divide-gray-100 text-[12px]" }, zs = { class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4" }, qs = { class: "font-medium text-gray-900" }, Bs = { class: "text-gray-700 sm:col-span-2" };
|
790
|
-
function Os(t, e, n, o, s,
|
790
|
+
function Os(t, e, n, o, s, a) {
|
791
791
|
var b, d, y, m;
|
792
792
|
const c = f("AdminComponentIs"), g = f("VsWidgetFileList"), p = f("VsNoData");
|
793
793
|
return r(), i("div", Fs, [
|
794
|
-
e[0] || (e[0] =
|
795
|
-
|
794
|
+
e[0] || (e[0] = l("div", { class: "pl-[10px] py-[9px]" }, [
|
795
|
+
l("h2", { class: "text-sm font-medium text-center" }, "Інформація про об'єкт")
|
796
796
|
], -1)),
|
797
|
-
|
797
|
+
l("div", js, [
|
798
798
|
(d = (b = t.$route) == null ? void 0 : b.query) != null && d.card ? (r(), i($, { key: 0 }, [
|
799
|
-
|
800
|
-
|
799
|
+
l("div", Ls, [
|
800
|
+
l("dl", Ms, [
|
801
801
|
(r(!0), i($, null, V(n.columns, (h) => (r(), i("div", zs, [
|
802
|
-
|
803
|
-
|
802
|
+
l("dt", qs, A((h == null ? void 0 : h.ua) || (h == null ? void 0 : h.title)), 1),
|
803
|
+
l("dd", Bs, [
|
804
804
|
x(c, {
|
805
805
|
row: n.row,
|
806
806
|
column: h,
|
@@ -844,10 +844,10 @@ const Ns = /* @__PURE__ */ S(Ps, [["render", Os]]), Es = {
|
|
844
844
|
key: 0,
|
845
845
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
846
846
|
}, Rs = { class: "filter-content h-screen bg-white w-[400px] overflow-x-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
847
|
-
function Hs(t, e, n, o, s,
|
847
|
+
function Hs(t, e, n, o, s, a) {
|
848
848
|
const c = f("IconFilter"), g = f("VsFilter");
|
849
849
|
return r(), i($, null, [
|
850
|
-
|
850
|
+
l("button", {
|
851
851
|
onClick: e[0] || (e[0] = (p) => s.isFilters = !s.isFilters),
|
852
852
|
class: "py-2 px-2.5 max-h-[34px] inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none"
|
853
853
|
}, [
|
@@ -863,12 +863,12 @@ function Hs(t, e, n, o, s, l) {
|
|
863
863
|
var p;
|
864
864
|
return [
|
865
865
|
(r(), v(pt, { to: "#modal" }, [
|
866
|
-
U(
|
867
|
-
onClick: e[3] || (e[3] = (...b) =>
|
866
|
+
U(l("div", {
|
867
|
+
onClick: e[3] || (e[3] = (...b) => a.closeFilter && a.closeFilter(...b)),
|
868
868
|
style: { height: "100vh" },
|
869
869
|
class: "fixed filter-container top-0 flex justify-end items-center z-[12] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.2)]"
|
870
870
|
}, [
|
871
|
-
|
871
|
+
l("div", Rs, [
|
872
872
|
(p = n.scheme) != null && p.length ? (r(), v(g, {
|
873
873
|
key: 0,
|
874
874
|
ref: "filter",
|
@@ -903,7 +903,7 @@ const Ws = /* @__PURE__ */ S(Es, [["render", Hs]]), Ks = {
|
|
903
903
|
role: "tablist",
|
904
904
|
"aria-orientation": "horizontal"
|
905
905
|
}, Gs = ["onClick"];
|
906
|
-
function Qs(t, e, n, o, s,
|
906
|
+
function Qs(t, e, n, o, s, a) {
|
907
907
|
return r(), i("nav", Js, [
|
908
908
|
(r(!0), i($, null, V(n.tabsList, (c) => (r(), i("button", {
|
909
909
|
onClick: (g) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
@@ -923,28 +923,28 @@ const Xs = /* @__PURE__ */ S(Ks, [["render", Qs]]), Ys = {}, Zs = {
|
|
923
923
|
"stroke-linejoin": "round",
|
924
924
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
925
925
|
};
|
926
|
-
function en(t, e, n, o, s,
|
926
|
+
function en(t, e, n, o, s, a) {
|
927
927
|
return r(), i("svg", Zs, e[0] || (e[0] = [
|
928
|
-
|
928
|
+
l("path", {
|
929
929
|
stroke: "none",
|
930
930
|
d: "M0 0h24v24H0z",
|
931
931
|
fill: "none"
|
932
932
|
}, null, -1),
|
933
|
-
|
933
|
+
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)
|
934
934
|
]));
|
935
935
|
}
|
936
936
|
const tn = /* @__PURE__ */ S(Ys, [["render", en]]), sn = {
|
937
937
|
components: { IconFilter2: tn, IconCheck2: Ue },
|
938
938
|
props: { filterCustom: String, customList: Array }
|
939
|
-
}, nn = { class: "py-2 max-h-[34px] px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" },
|
940
|
-
function on(t, e, n, o, s,
|
939
|
+
}, nn = { class: "py-2 max-h-[34px] px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, an = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, ln = ["onClick"], rn = { class: "text-sm text-gray-800" };
|
940
|
+
function on(t, e, n, o, s, a) {
|
941
941
|
const c = f("IconFilter2"), g = f("IconCheck2"), p = f("VsPopover");
|
942
942
|
return r(), v(p, {
|
943
943
|
ref: "popover",
|
944
944
|
placement: "bottom"
|
945
945
|
}, {
|
946
946
|
reference: D(() => [
|
947
|
-
|
947
|
+
l("button", nn, [
|
948
948
|
x(c, {
|
949
949
|
height: "20",
|
950
950
|
width: "20"
|
@@ -952,7 +952,7 @@ function on(t, e, n, o, s, l) {
|
|
952
952
|
])
|
953
953
|
]),
|
954
954
|
default: D(() => [
|
955
|
-
|
955
|
+
l("div", an, [
|
956
956
|
(r(!0), i($, null, V(n.customList, (b, d) => (r(), i("button", {
|
957
957
|
onClick: (y) => {
|
958
958
|
var m;
|
@@ -961,13 +961,13 @@ function on(t, e, n, o, s, l) {
|
|
961
961
|
key: d,
|
962
962
|
class: w(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (b == null ? void 0 : b.name) }])
|
963
963
|
}, [
|
964
|
-
|
964
|
+
l("span", rn, A(b == null ? void 0 : b.label), 1),
|
965
965
|
n.filterCustom === (b == null ? void 0 : b.name) ? (r(), v(g, {
|
966
966
|
key: 0,
|
967
967
|
class: "ml-auto size-3 shrink-0"
|
968
968
|
})) : k("", !0)
|
969
|
-
], 10,
|
970
|
-
|
969
|
+
], 10, ln))), 128)),
|
970
|
+
l("button", {
|
971
971
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
972
972
|
onClick: e[0] || (e[0] = (b) => {
|
973
973
|
var d;
|
@@ -987,7 +987,7 @@ const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-ce
|
|
987
987
|
},
|
988
988
|
setup(t) {
|
989
989
|
var g, p, b, d, y;
|
990
|
-
const { asyncTemplateSlot: e } = (y = (d = (b = (p = (g = Re()) == null ? void 0 : g.appContext) == null ? void 0 : p.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : y.utils, n = J(""), o = J(""), s = t,
|
990
|
+
const { asyncTemplateSlot: e } = (y = (d = (b = (p = (g = Re()) == null ? void 0 : g.appContext) == null ? void 0 : p.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : y.utils, n = J(""), o = J(""), s = t, a = () => {
|
991
991
|
var m, h, _, C, I;
|
992
992
|
if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (_ = (h = s.slots) == null ? void 0 : h.panelLeft) != null && _.includes("<")) {
|
993
993
|
const T = e("PanelLeft", (C = s.slots) == null ? void 0 : C.panelLeft, [
|
@@ -1006,7 +1006,7 @@ const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-ce
|
|
1006
1006
|
} else
|
1007
1007
|
n.value = (I = s.slots) == null ? void 0 : I.panelRight;
|
1008
1008
|
};
|
1009
|
-
return
|
1009
|
+
return a(), c(), (m, h) => (r(), i("div", un, [
|
1010
1010
|
(r(), v(G(o.value), { data: t.data }, null, 8, ["data"])),
|
1011
1011
|
(r(), v(G(n.value), { data: t.data }, null, 8, ["data"]))
|
1012
1012
|
]));
|
@@ -1017,8 +1017,8 @@ const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-ce
|
|
1017
1017
|
slots: Object
|
1018
1018
|
},
|
1019
1019
|
setup(t) {
|
1020
|
-
var
|
1021
|
-
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (
|
1020
|
+
var a, c, g, p, b;
|
1021
|
+
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (a = Re()) == null ? void 0 : a.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;
|
1022
1022
|
return (() => {
|
1023
1023
|
var d, y, m, h, _;
|
1024
1024
|
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (m = (y = o.slots) == null ? void 0 : y.addButton) != null && m.includes("<")) {
|
@@ -1073,14 +1073,14 @@ const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-ce
|
|
1073
1073
|
"stroke-linejoin": "round",
|
1074
1074
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1075
1075
|
};
|
1076
|
-
function xn(t, e, n, o, s,
|
1076
|
+
function xn(t, e, n, o, s, a) {
|
1077
1077
|
return r(), i("svg", mn, e[0] || (e[0] = [
|
1078
|
-
|
1078
|
+
l("path", {
|
1079
1079
|
stroke: "none",
|
1080
1080
|
d: "M0 0h24v24H0z",
|
1081
1081
|
fill: "none"
|
1082
1082
|
}, null, -1),
|
1083
|
-
|
1083
|
+
l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1084
1084
|
]));
|
1085
1085
|
}
|
1086
1086
|
const yn = /* @__PURE__ */ S(gn, [["render", xn]]), vn = bt({
|
@@ -1153,7 +1153,7 @@ const yn = /* @__PURE__ */ S(gn, [["render", xn]]), vn = bt({
|
|
1153
1153
|
let n = Math.max(t - e, 1), o = n + this.maxPages - 1;
|
1154
1154
|
o > this.pagesCount && (o = this.pagesCount, n = Math.max(o - this.maxPages + 1, 1)), this.pages = Array.from(
|
1155
1155
|
{ length: o - n + 1 },
|
1156
|
-
(s,
|
1156
|
+
(s, a) => n + a
|
1157
1157
|
);
|
1158
1158
|
},
|
1159
1159
|
handleClickPrev() {
|
@@ -1173,10 +1173,10 @@ const yn = /* @__PURE__ */ S(gn, [["render", xn]]), vn = bt({
|
|
1173
1173
|
key: 0,
|
1174
1174
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1175
1175
|
}, $n = { class: "relative" }, Sn = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, Tn = ["onClick"];
|
1176
|
-
function An(t, e, n, o, s,
|
1176
|
+
function An(t, e, n, o, s, a) {
|
1177
1177
|
const c = f("IconChevronDown"), g = f("IconCheck");
|
1178
1178
|
return r(), i("nav", kn, [
|
1179
|
-
|
1179
|
+
l("button", {
|
1180
1180
|
type: "button",
|
1181
1181
|
onClick: e[0] || (e[0] = (...p) => t.handleClickPrev && t.handleClickPrev(...p)),
|
1182
1182
|
class: w(["min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100", { "opacity-50 pointer-events-none": t.disablePrevClick }])
|
@@ -1187,18 +1187,18 @@ function An(t, e, n, o, s, l) {
|
|
1187
1187
|
class: "rotate-90"
|
1188
1188
|
})
|
1189
1189
|
], 2),
|
1190
|
-
|
1191
|
-
|
1190
|
+
l("div", _n, [
|
1191
|
+
l("span", {
|
1192
1192
|
ref: "currentPage",
|
1193
1193
|
contenteditable: "true",
|
1194
1194
|
onKeydown: e[1] || (e[1] = ft((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
|
1195
1195
|
onBlur: e[2] || (e[2] = (p) => t.handleSetPage(p.target.innerText)),
|
1196
1196
|
class: "min-h-[38px] max-h-[38px] overflow-hidden min-w-[38px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 outline-blue-600 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
|
1197
1197
|
}, A(t.page), 545),
|
1198
|
-
e[5] || (e[5] =
|
1199
|
-
|
1198
|
+
e[5] || (e[5] = l("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1199
|
+
l("span", Cn, A(t.pagesCount), 1)
|
1200
1200
|
]),
|
1201
|
-
|
1201
|
+
l("button", {
|
1202
1202
|
type: "button",
|
1203
1203
|
onClick: e[3] || (e[3] = (...p) => t.handleClickNext && t.handleClickNext(...p)),
|
1204
1204
|
class: w([{ "opacity-50 pointer-events-none": t.disableNextClick }, "min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"])
|
@@ -1210,8 +1210,8 @@ function An(t, e, n, o, s, l) {
|
|
1210
1210
|
})
|
1211
1211
|
], 2),
|
1212
1212
|
t.pageSizes.length ? (r(), i("div", wn, [
|
1213
|
-
|
1214
|
-
U(
|
1213
|
+
l("div", $n, [
|
1214
|
+
U(l("div", Sn, [
|
1215
1215
|
(r(!0), i($, null, V(t.pageSizes, (p) => (r(), i("button", {
|
1216
1216
|
type: "button",
|
1217
1217
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
@@ -1252,11 +1252,11 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1252
1252
|
// AdminTablePrint,
|
1253
1253
|
AdminTableColumnsHidden: vs,
|
1254
1254
|
AdminTableColumn: kt,
|
1255
|
-
AdminNodata:
|
1255
|
+
AdminNodata: ot,
|
1256
1256
|
IconPlus: Q,
|
1257
|
-
IconSearch:
|
1257
|
+
IconSearch: rt,
|
1258
1258
|
AdminTableCardInfo: Ns,
|
1259
|
-
IconOpenCard:
|
1259
|
+
IconOpenCard: lt,
|
1260
1260
|
AdminComponentIs: X,
|
1261
1261
|
AdminTableFilters: Ws,
|
1262
1262
|
AdminTableTabs: Xs,
|
@@ -1330,7 +1330,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1330
1330
|
this.tableData = null, this.columnsWidth = {}, await this.getTableData();
|
1331
1331
|
},
|
1332
1332
|
searchValue: {
|
1333
|
-
handler:
|
1333
|
+
handler: at(async function(t) {
|
1334
1334
|
var e;
|
1335
1335
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1336
1336
|
...this.$route,
|
@@ -1343,9 +1343,9 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1343
1343
|
}, 500)
|
1344
1344
|
},
|
1345
1345
|
$route: {
|
1346
|
-
handler(t, e) {
|
1346
|
+
async handler(t, e) {
|
1347
1347
|
var n, o;
|
1348
|
-
((n = t == null ? void 0 : t.params) == null ? void 0 : n.catchAll) !== ((o = e == null ? void 0 : e.params) == null ? void 0 : o.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters());
|
1348
|
+
((n = t == null ? void 0 : t.params) == null ? void 0 : n.catchAll) !== ((o = e == null ? void 0 : e.params) == null ? void 0 : o.catchAll) && (this.visibleColumns = [], this.unmountedData(), this.getFilters(), await this.getTableData());
|
1349
1349
|
},
|
1350
1350
|
deep: !0
|
1351
1351
|
},
|
@@ -1372,7 +1372,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1372
1372
|
},
|
1373
1373
|
columns(t) {
|
1374
1374
|
var e, n, o, s;
|
1375
|
-
this.visibleColumns = t == null ? void 0 : t.map((
|
1375
|
+
this.visibleColumns = t == null ? void 0 : t.map((a) => a == null ? void 0 : a.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
|
1376
1376
|
...this.$route,
|
1377
1377
|
query: {
|
1378
1378
|
...(n = this.$route) == null ? void 0 : n.query,
|
@@ -1383,8 +1383,8 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1383
1383
|
},
|
1384
1384
|
methods: {
|
1385
1385
|
async checkUrlMounted() {
|
1386
|
-
var t, e, n, o, s,
|
1387
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (
|
1386
|
+
var t, e, n, o, s, a, c, g, p, b, d, y, m, h, _, C, I, T, F, j, z;
|
1387
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (a = (s = this.$route) == null ? void 0 : s.query) != null && a.filter && (this.filters = ((p = decodeURI((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.filter)) == null ? void 0 : p.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((d = (b = this.filters) == null ? void 0 : b.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((m = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : m.state) || null, this.filterCustom = ((_ = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : _.custom) || null, this.searchValue = ((I = (C = this.$route) == null ? void 0 : C.query) == null ? void 0 : I.search) || "", this.visibleColumns = ((j = (F = (T = this.$route) == null ? void 0 : T.query) == null ? void 0 : F.columns) == null ? void 0 : j.split(",")) || [], (z = this.$route) != null && z.query.card && (this.isVisibleCardInfo = !0);
|
1388
1388
|
},
|
1389
1389
|
rowWidth(t) {
|
1390
1390
|
var n, o;
|
@@ -1398,7 +1398,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1398
1398
|
this.page = 1, this.visibleColumns = [], this.filterCustom = null, this.filterState = null, this.isVisibleCardInfo = !1, this.filterScheme = null, this.filters = null, this.onFilters = 0, this.searchValue = "";
|
1399
1399
|
},
|
1400
1400
|
async getTableData() {
|
1401
|
-
var t, e, n, o, s,
|
1401
|
+
var t, e, n, o, s, a, c, g, p, b, d;
|
1402
1402
|
try {
|
1403
1403
|
const { data: y } = await M.get(`/api/template/table/${this.table}`), m = await M.get(`/api/table-data/${this.table}`, {
|
1404
1404
|
params: {
|
@@ -1414,7 +1414,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1414
1414
|
this.tableData = {
|
1415
1415
|
...y,
|
1416
1416
|
...(m == null ? void 0 : m.data) || {}
|
1417
|
-
}, this.initialHiddenColumns = (
|
1417
|
+
}, this.initialHiddenColumns = (a = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : s.map((h) => h == null ? void 0 : h.name)) == null ? void 0 : a.join(","), (c = this.visibleColumns) != null && c.length ? (g = this.tableData) == null || g.columns.forEach((h) => {
|
1418
1418
|
var _;
|
1419
1419
|
(_ = this.visibleColumns) != null && _.includes(h == null ? void 0 : h.name) ? h.hidden = !1 : h.hidden = !0;
|
1420
1420
|
}) : this.visibleColumns = (d = (b = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : b.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : d.map((h) => h == null ? void 0 : h.name), setTimeout(() => {
|
@@ -1484,20 +1484,20 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1484
1484
|
key: 0,
|
1485
1485
|
class: "w-[70px] sticky right-0 top-0"
|
1486
1486
|
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"], Rn = ["onClick"], Hn = { class: "flex items-center justify-start w-full px-1 py-2" }, Wn = { class: "w-[200px] md:inline-flex hidden" }, Kn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Jn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Gn = { key: 0 };
|
1487
|
-
function Qn(t, e, n, o, s,
|
1488
|
-
var Z, ee, te, se, ne,
|
1487
|
+
function Qn(t, e, n, o, s, a) {
|
1488
|
+
var Z, ee, te, se, ne, ae, le, re, oe, ie, de, ue, ce, he, pe, be, fe, ge, me, xe, ye, ve, ke, _e, Ce, we, $e, Se, Te, Ae, Ie, De, Ve;
|
1489
1489
|
const c = f("AdminCustomButtonAdd"), g = f("IconPlus"), p = f("router-link"), b = f("AdminTableTabs"), d = f("IconSearch"), y = f("VsText"), m = f("AdminTableCustomButtons"), h = f("AdminTableCustomFilters"), _ = f("AdminTableColumnsHidden"), C = f("AdminTableExport"), I = f("AdminTableFilters"), T = f("IconOpenCard"), F = f("AdminTableColumn"), j = f("AdminComponentIs"), z = f("AdminTableControl"), R = f("AdminTableTotalsList"), He = f("AdminNodata"), We = f("AdminTablePagination"), Ke = f("AdminTableCardInfo");
|
1490
1490
|
return r(), i("div", Vn, [
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1491
|
+
l("div", Pn, [
|
1492
|
+
l("h2", Fn, A(n.title), 1),
|
1493
|
+
a.isForm ? (r(), i($, { key: 0 }, [
|
1494
1494
|
(ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (r(), v(c, {
|
1495
1495
|
key: 0,
|
1496
1496
|
slots: (te = s.tableData) == null ? void 0 : te.slots
|
1497
1497
|
}, null, 8, ["slots"])) : (r(), v(p, {
|
1498
1498
|
key: 1,
|
1499
1499
|
to: `/add?table=${(ne = (se = t.$route) == null ? void 0 : se.params) == null ? void 0 : ne.catchAll}`,
|
1500
|
-
class: w(`inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-${
|
1500
|
+
class: w(`inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-${a.color}-700 border border-transparent rounded-lg gap-x-2 hover:bg-${a.color}-800 hover:text-white`)
|
1501
1501
|
}, {
|
1502
1502
|
default: D(() => [
|
1503
1503
|
x(g, {
|
@@ -1510,24 +1510,24 @@ function Qn(t, e, n, o, s, l) {
|
|
1510
1510
|
}, 8, ["to", "class"]))
|
1511
1511
|
], 64)) : k("", !0)
|
1512
1512
|
]),
|
1513
|
-
|
1513
|
+
l("div", {
|
1514
1514
|
style: K({
|
1515
|
-
height: ((
|
1515
|
+
height: ((ae = t.$adminSettings) == null ? void 0 : ae.header) === !1 ? "calc(100vh - 100px)" : "calc(100vh - 155px)"
|
1516
1516
|
}),
|
1517
1517
|
class: "bg-gray-100 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1518
1518
|
}, [
|
1519
|
-
|
1520
|
-
(re = (
|
1519
|
+
l("div", jn, [
|
1520
|
+
(re = (le = s.tableData) == null ? void 0 : le.filterState) != null && re.length ? (r(), v(b, {
|
1521
1521
|
key: 0,
|
1522
1522
|
tabsList: (oe = s.tableData) == null ? void 0 : oe.filterState,
|
1523
1523
|
filterState: s.filterState,
|
1524
1524
|
"onUpdate:filterState": e[0] || (e[0] = (u) => s.filterState = u)
|
1525
1525
|
}, null, 8, ["tabsList", "filterState"])) : k("", !0),
|
1526
|
-
|
1527
|
-
|
1526
|
+
l("div", Ln, [
|
1527
|
+
l("div", {
|
1528
1528
|
class: w([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1529
1529
|
}, [
|
1530
|
-
|
1530
|
+
l("div", {
|
1531
1531
|
class: w(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1532
1532
|
}, [
|
1533
1533
|
x(d, {
|
@@ -1542,7 +1542,7 @@ function Qn(t, e, n, o, s, l) {
|
|
1542
1542
|
clearable: !0,
|
1543
1543
|
class: "[&>input]:py-[7px] [&>input]:max-h-[36px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
|
1544
1544
|
}, null, 8, ["modelValue", "placeholder"]),
|
1545
|
-
|
1545
|
+
l("div", Mn, [
|
1546
1546
|
(ie = s.tableData) != null && ie.slots ? (r(), v(m, {
|
1547
1547
|
key: 0,
|
1548
1548
|
data: s.tableData,
|
@@ -1572,10 +1572,10 @@ function Qn(t, e, n, o, s, l) {
|
|
1572
1572
|
scheme: s.filterScheme,
|
1573
1573
|
onFilters: s.onFilters,
|
1574
1574
|
table: n.table,
|
1575
|
-
onFilterChange:
|
1575
|
+
onFilterChange: a.filterChange
|
1576
1576
|
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : k("", !0),
|
1577
|
-
|
1578
|
-
onClick: e[4] || (e[4] = (...u) =>
|
1577
|
+
l("button", {
|
1578
|
+
onClick: e[4] || (e[4] = (...u) => a.toggleCardInfo && a.toggleCardInfo(...u)),
|
1579
1579
|
class: "py-2 px-2.5 max-h-[34px] md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
1580
1580
|
}, [
|
1581
1581
|
x(T, {
|
@@ -1584,28 +1584,28 @@ function Qn(t, e, n, o, s, l) {
|
|
1584
1584
|
])
|
1585
1585
|
])
|
1586
1586
|
], 2),
|
1587
|
-
|
1587
|
+
l("div", {
|
1588
1588
|
class: w(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1589
1589
|
}, [
|
1590
|
-
|
1590
|
+
l("div", {
|
1591
1591
|
style: K({
|
1592
1592
|
height: `calc(100vh - ${((me = t.$adminSettings) == null ? void 0 : me.header) === !1 ? (ye = (xe = s.tableData) == null ? void 0 : xe.filterState) != null && ye.length ? 330 : 270 : (ke = (ve = s.tableData) == null ? void 0 : ve.filterState) != null && ke.length ? 380 : 320}px)`
|
1593
1593
|
}),
|
1594
1594
|
class: "overflow-x-auto w-full [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
|
1595
1595
|
}, [
|
1596
|
-
|
1597
|
-
|
1596
|
+
l("div", zn, [
|
1597
|
+
a.isNoData ? (r(), v(He, { key: 1 })) : (r(), i("table", {
|
1598
1598
|
key: 0,
|
1599
|
-
class: w([
|
1599
|
+
class: w([a.fontSize, "relative min-w-full my-2 divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"])
|
1600
1600
|
}, [
|
1601
|
-
|
1602
|
-
|
1603
|
-
(r(!0), i($, null, V(
|
1601
|
+
l("thead", qn, [
|
1602
|
+
l("tr", Bn, [
|
1603
|
+
(r(!0), i($, null, V(a.columns, (u) => {
|
1604
1604
|
var q, B;
|
1605
1605
|
return r(), v(F, {
|
1606
1606
|
key: u.name,
|
1607
1607
|
style: K({
|
1608
|
-
width: ((B = (q = s.columnsWidth) == null ? void 0 : q[u == null ? void 0 : u.name]) == null ? void 0 : B.width) ||
|
1608
|
+
width: ((B = (q = s.columnsWidth) == null ? void 0 : q[u == null ? void 0 : u.name]) == null ? void 0 : B.width) || a.rowWidth(u == null ? void 0 : u.name),
|
1609
1609
|
textAlign: u == null ? void 0 : u.align,
|
1610
1610
|
wordBreak: u == null ? void 0 : u.wrap
|
1611
1611
|
}),
|
@@ -1615,15 +1615,15 @@ function Qn(t, e, n, o, s, l) {
|
|
1615
1615
|
var O, N;
|
1616
1616
|
(N = (O = s.columnsWidth) == null ? void 0 : O[u == null ? void 0 : u.name]) != null && N.ref || (s.columnsWidth[u.name] = { ref: H });
|
1617
1617
|
},
|
1618
|
-
onChangeActive:
|
1618
|
+
onChangeActive: a.changeActiveColumn
|
1619
1619
|
}, null, 8, ["style", "data", "activeColumn", "onUpdateRef", "onChangeActive"]);
|
1620
1620
|
}), 128)),
|
1621
|
-
(Ce = (_e =
|
1621
|
+
(Ce = (_e = a.getActions) == null ? void 0 : _e.filter(
|
1622
1622
|
(u) => u !== "add" && u !== "view"
|
1623
1623
|
)) != null && Ce.length ? (r(), i("th", On)) : k("", !0)
|
1624
1624
|
])
|
1625
1625
|
]),
|
1626
|
-
|
1626
|
+
l("tbody", Nn, [
|
1627
1627
|
(r(!0), i($, null, V((we = s.tableData) == null ? void 0 : we.rows, (u, q) => {
|
1628
1628
|
var B, H, O, N, Pe, Fe, je, Le, Me, ze, qe, Be, Oe, Ne;
|
1629
1629
|
return r(), i("tr", {
|
@@ -1633,44 +1633,44 @@ function Qn(t, e, n, o, s, l) {
|
|
1633
1633
|
"odd:bg-gray-50": ((N = (O = t.$route) == null ? void 0 : O.query) == null ? void 0 : N.card) !== (u == null ? void 0 : u.id)
|
1634
1634
|
})
|
1635
1635
|
}, [
|
1636
|
-
|
1636
|
+
l("td", {
|
1637
1637
|
class: w(["px-1 py-2.5 pr-5", [
|
1638
|
-
(Pe =
|
1638
|
+
(Pe = a.columns[0]) != null && Pe.align ? `text-${((Fe = a.columns[0]) == null ? void 0 : Fe.align) || "left"}` : ""
|
1639
1639
|
]]),
|
1640
|
-
onClick: (L) =>
|
1640
|
+
onClick: (L) => a.changeActiveCardInfo(u == null ? void 0 : u.id)
|
1641
1641
|
}, [
|
1642
|
-
|
1642
|
+
l("button", {
|
1643
1643
|
onClick: (L) => {
|
1644
|
-
|
1644
|
+
a.pushToCard(u == null ? void 0 : u.id), a.pushToLinkCard(a.columns[0], u);
|
1645
1645
|
},
|
1646
1646
|
class: w(["font-medium text-start", [
|
1647
|
-
...
|
1648
|
-
((je = this.tableData) == null ? void 0 : je.card) === !1 ? "" : ` text-${
|
1647
|
+
...a.getCustomStyles(a.columns[0]),
|
1648
|
+
((je = this.tableData) == null ? void 0 : je.card) === !1 ? "" : ` text-${a.color}-800 decoration-2 focus:outline-none focus:underline hover:text-${a.color}-700 hover:underline`
|
1649
1649
|
]])
|
1650
1650
|
}, [
|
1651
1651
|
x(j, {
|
1652
1652
|
row: u,
|
1653
|
-
column:
|
1653
|
+
column: a.columns[0],
|
1654
1654
|
table: n.table,
|
1655
|
-
onUpdateTable:
|
1655
|
+
onUpdateTable: a.getTableData
|
1656
1656
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1657
1657
|
], 10, Un)
|
1658
1658
|
], 10, En),
|
1659
|
-
(r(!0), i($, null, V((Le =
|
1660
|
-
onClick: (
|
1661
|
-
|
1659
|
+
(r(!0), i($, null, V((Le = a.columns) == null ? void 0 : Le.slice(1), (L) => (r(), i("td", {
|
1660
|
+
onClick: (ta) => {
|
1661
|
+
a.changeActiveCardInfo(u == null ? void 0 : u.id), a.pushToLinkCard(L, u);
|
1662
1662
|
},
|
1663
|
-
class: w(["px-1 py-2.5 pr-5",
|
1663
|
+
class: w(["px-1 py-2.5 pr-5", a.getCustomStyles(L)]),
|
1664
1664
|
key: L.name
|
1665
1665
|
}, [
|
1666
1666
|
x(j, {
|
1667
1667
|
row: u,
|
1668
1668
|
column: L,
|
1669
1669
|
table: n.table,
|
1670
|
-
onUpdateTable:
|
1670
|
+
onUpdateTable: a.getTableData
|
1671
1671
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1672
1672
|
], 10, Rn))), 128)),
|
1673
|
-
(ze = (Me =
|
1673
|
+
(ze = (Me = a.getActions) == null ? void 0 : Me.filter(
|
1674
1674
|
(L) => L !== "add" && L !== "view"
|
1675
1675
|
)) != null && ze.length ? (r(), i("td", {
|
1676
1676
|
key: 0,
|
@@ -1680,28 +1680,28 @@ function Qn(t, e, n, o, s, l) {
|
|
1680
1680
|
}])
|
1681
1681
|
}, [
|
1682
1682
|
x(z, {
|
1683
|
-
actions:
|
1684
|
-
isForm:
|
1683
|
+
actions: a.getActions,
|
1684
|
+
isForm: a.isForm,
|
1685
1685
|
item: u,
|
1686
1686
|
table: n.table,
|
1687
|
-
onUpdateTable:
|
1687
|
+
onUpdateTable: a.getTableData
|
1688
1688
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1689
1689
|
], 2)) : k("", !0)
|
1690
1690
|
], 2);
|
1691
1691
|
}), 128))
|
1692
1692
|
]),
|
1693
1693
|
x(R, {
|
1694
|
-
columns:
|
1694
|
+
columns: a.columns,
|
1695
1695
|
agg: ($e = s.tableData) == null ? void 0 : $e.agg
|
1696
1696
|
}, null, 8, ["columns", "agg"])
|
1697
1697
|
], 2))
|
1698
1698
|
])
|
1699
1699
|
], 4)
|
1700
1700
|
], 2),
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1701
|
+
l("div", Hn, [
|
1702
|
+
l("div", Wn, [
|
1703
|
+
l("p", Kn, [
|
1704
|
+
l("span", Jn, [
|
1705
1705
|
P(" Об'єктів: " + A(Intl.NumberFormat("ua").format(
|
1706
1706
|
s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : (Te = s.tableData) == null ? void 0 : Te.filtered
|
1707
1707
|
)) + " ", 1),
|
@@ -1712,9 +1712,9 @@ function Qn(t, e, n, o, s, l) {
|
|
1712
1712
|
Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (r(), v(We, {
|
1713
1713
|
key: 0,
|
1714
1714
|
class: "justify-end mr-10",
|
1715
|
-
"default-page": parseInt(
|
1715
|
+
"default-page": parseInt(a.defaultPage),
|
1716
1716
|
total: ((Ve = s.tableData) == null ? void 0 : Ve.filtered) || 0,
|
1717
|
-
onPageChange:
|
1717
|
+
onPageChange: a.handlePageChange,
|
1718
1718
|
pageSize: parseInt(s.limit),
|
1719
1719
|
pageSizes: [10, 20, 50, 100]
|
1720
1720
|
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : k("", !0)
|
@@ -1728,7 +1728,7 @@ function Qn(t, e, n, o, s, l) {
|
|
1728
1728
|
key: 0,
|
1729
1729
|
table: n.table,
|
1730
1730
|
columns: (u = s.tableData) == null ? void 0 : u.columns,
|
1731
|
-
row:
|
1731
|
+
row: a.activeCardRow
|
1732
1732
|
}, null, 8, ["table", "columns", "row"])) : k("", !0)
|
1733
1733
|
];
|
1734
1734
|
}),
|
@@ -1739,7 +1739,7 @@ function Qn(t, e, n, o, s, l) {
|
|
1739
1739
|
], 4)
|
1740
1740
|
]);
|
1741
1741
|
}
|
1742
|
-
const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-
|
1742
|
+
const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-a252bcc4"]]), Yn = {
|
1743
1743
|
components: { AdminTable: Xn },
|
1744
1744
|
data() {
|
1745
1745
|
return {
|
@@ -1775,9 +1775,9 @@ const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-7f8054cc
|
|
1775
1775
|
var o, s;
|
1776
1776
|
const t = this.flattenMenu(Ee.value);
|
1777
1777
|
t != null && t.length || this.$router.replace("/404");
|
1778
|
-
const e = t == null ? void 0 : t.find((
|
1778
|
+
const e = t == null ? void 0 : t.find((a) => {
|
1779
1779
|
var c, g;
|
1780
|
-
return (
|
1780
|
+
return (a == null ? void 0 : a.path) == ((g = (c = this.$route) == null ? void 0 : c.params) == null ? void 0 : g.catchAll);
|
1781
1781
|
});
|
1782
1782
|
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((s = (o = this.$route) == null ? void 0 : o.params) == null ? void 0 : s.catchAll);
|
1783
1783
|
const n = e == null ? void 0 : e.table;
|
@@ -1796,7 +1796,7 @@ const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-7f8054cc
|
|
1796
1796
|
}
|
1797
1797
|
}
|
1798
1798
|
}, Zn = ["innerHTML"];
|
1799
|
-
function
|
1799
|
+
function ea(t, e, n, o, s, a) {
|
1800
1800
|
const c = f("AdminTable");
|
1801
1801
|
return s.table ? (r(), v(c, {
|
1802
1802
|
key: 0,
|
@@ -1810,7 +1810,7 @@ function el(t, e, n, o, s, l) {
|
|
1810
1810
|
innerHTML: s.interface
|
1811
1811
|
}, null, 8, Zn));
|
1812
1812
|
}
|
1813
|
-
const
|
1813
|
+
const aa = /* @__PURE__ */ S(Yn, [["render", ea]]);
|
1814
1814
|
export {
|
1815
|
-
|
1815
|
+
aa as default
|
1816
1816
|
};
|