@opengis/admin 0.2.55 → 0.2.56
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-CUWnbURQ.js → add-page-CHR8tS95.js} +1 -1
- package/dist/{admin-interface-DyFTC9Ft.js → admin-interface-DT_Yba4D.js} +349 -362
- package/dist/{admin-view-DD7XR43g.js → admin-view-BCkzzh3f.js} +68 -71
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +49 -67
- package/dist/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/assets/fonts/Inter-Italic.woff2 +0 -0
- package/dist/assets/fonts/Inter-Light.woff2 +0 -0
- package/dist/assets/fonts/Inter-Medium.woff2 +0 -0
- package/dist/assets/fonts/Inter-MediumItalic.woff2 +0 -0
- package/dist/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/{card-view-4ESqtPE2.js → card-view-CrgOTzfS.js} +1 -1
- package/dist/{edit-page-DGfSfOyG.js → edit-page-CUM5w200.js} +1 -1
- package/dist/{import-file-DP7DSpqz.js → import-file-BaBa8JJ6.js} +9255 -9178
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/server/helpers/list/descriptionList.js +4 -4
- package/server/helpers/list/tableList.js +6 -8
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as T, e as Pe, f as Be, g as Le, d as F, I as ze, h as
|
2
|
-
import { openBlock as l, createElementBlock as i, createTextVNode as j, toDisplayString as I, createCommentVNode as v, resolveComponent as p, Fragment as $, createElementVNode as o, createVNode as
|
1
|
+
import { _ as T, e as Pe, f as Be, g as Le, d as F, I as ze, h as z, A as O, V as Oe, i as Ue, j as Ne, k as Ee, l as He, m as Re, n as We, a as Je, u as Ae, s as Ge } from "./import-file-BaBa8JJ6.js";
|
2
|
+
import { openBlock as l, createElementBlock as i, createTextVNode as j, toDisplayString as I, createCommentVNode as v, resolveComponent as p, Fragment as $, createElementVNode as o, createVNode as y, withCtx as A, createBlock as _, renderList as V, withModifiers as Ke, normalizeClass as D, createStaticVNode as Qe, withDirectives as U, vModelCheckbox as Xe, Transition as N, renderSlot as Ye, vShow as Ie, getCurrentInstance as Se, ref as B, resolveDynamicComponent as L, normalizeStyle as Te } from "vue";
|
3
3
|
const Ze = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -80,20 +80,20 @@ const Ze = {
|
|
80
80
|
d: "m7 9 5-5 5 5"
|
81
81
|
}, lt = {
|
82
82
|
key: 1,
|
83
|
-
class: "text-sm text-
|
83
|
+
class: "flex items-center px-1 py-3 text-sm font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
|
84
84
|
};
|
85
85
|
function ot(t, e, n, a, s, r) {
|
86
86
|
return l(), i("th", et, [
|
87
87
|
r.getVisibleIcon ? (l(), i("button", {
|
88
88
|
key: 0,
|
89
89
|
type: "button",
|
90
|
-
class: "
|
90
|
+
class: "flex items-center px-1 py-3 text-sm font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
|
91
91
|
onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(s.currentSort))
|
92
92
|
}, [
|
93
93
|
j(I(r.label) + " ", 1),
|
94
94
|
(l(), i("svg", tt, [
|
95
|
-
s.currentSort === "asc"
|
96
|
-
s.currentSort === "desc"
|
95
|
+
s.currentSort === "asc" ? (l(), i("path", st)) : v("", !0),
|
96
|
+
s.currentSort === "desc" ? (l(), i("path", nt)) : v("", !0)
|
97
97
|
]))
|
98
98
|
])) : (l(), i("p", lt, I(r.label), 1))
|
99
99
|
]);
|
@@ -184,34 +184,34 @@ const rt = /* @__PURE__ */ T(Ze, [["render", ot]]), at = {
|
|
184
184
|
}, it = { class: "inline-flex" }, ct = { 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" }, ut = { class: "flex flex-col items-start" }, dt = ["onClick"], pt = { class: "text-gray-800" }, bt = {
|
185
185
|
key: 1,
|
186
186
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
187
|
-
}, ht = { class: "
|
188
|
-
function
|
189
|
-
const u = p("IconMore"), f = p("IconEdit"),
|
187
|
+
}, ht = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
188
|
+
function ft(t, e, n, a, s, r) {
|
189
|
+
const u = p("IconMore"), f = p("IconEdit"), x = p("router-link"), b = p("IconDelete"), c = p("VsPopover"), k = p("VsConfirm");
|
190
190
|
return l(), i($, null, [
|
191
191
|
o("div", it, [
|
192
|
-
|
192
|
+
y(c, {
|
193
193
|
trigger: "click",
|
194
194
|
placement: "bottom-left"
|
195
195
|
}, {
|
196
196
|
reference: A(() => [
|
197
197
|
o("button", ct, [
|
198
|
-
|
198
|
+
y(u, {
|
199
199
|
height: "16",
|
200
200
|
width: "16"
|
201
201
|
})
|
202
202
|
])
|
203
203
|
]),
|
204
204
|
default: A(() => {
|
205
|
-
var m,
|
205
|
+
var m, h, w, g, C;
|
206
206
|
return [
|
207
207
|
o("div", ut, [
|
208
|
-
(m = n.actions) != null && m.includes("edit") && n.isForm ? (l(), _(
|
208
|
+
(m = n.actions) != null && m.includes("edit") && n.isForm ? (l(), _(x, {
|
209
209
|
key: 0,
|
210
|
-
to: `/edit?table=${(w = (
|
210
|
+
to: `/edit?table=${(w = (h = t.$route) == null ? void 0 : h.params) == null ? void 0 : w.catchAll}&id=${(g = n.item) == null ? void 0 : g.id}`,
|
211
211
|
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"
|
212
212
|
}, {
|
213
213
|
default: A(() => [
|
214
|
-
|
214
|
+
y(f, { color: "#000" }),
|
215
215
|
e[4] || (e[4] = j(" Редагувати "))
|
216
216
|
]),
|
217
217
|
_: 1
|
@@ -221,7 +221,7 @@ function mt(t, e, n, a, s, r) {
|
|
221
221
|
onClick: (P) => r.customButtonAction(S),
|
222
222
|
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"
|
223
223
|
}, [
|
224
|
-
|
224
|
+
y(b, { class: "opacity-0" }),
|
225
225
|
o("span", pt, I(S == null ? void 0 : S.label), 1)
|
226
226
|
], 8, dt))), 128)),
|
227
227
|
n.isForm ? (l(), i("div", bt)) : v("", !0),
|
@@ -230,7 +230,7 @@ function mt(t, e, n, a, s, r) {
|
|
230
230
|
onClick: e[0] || (e[0] = Ke((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
|
231
231
|
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"
|
232
232
|
}, [
|
233
|
-
|
233
|
+
y(b),
|
234
234
|
e[5] || (e[5] = o("span", { class: "text-gray-800" }, "Видалити", -1))
|
235
235
|
])) : v("", !0)
|
236
236
|
])
|
@@ -239,34 +239,32 @@ function mt(t, e, n, a, s, r) {
|
|
239
239
|
_: 1
|
240
240
|
})
|
241
241
|
]),
|
242
|
-
|
242
|
+
y(k, {
|
243
243
|
visible: s.isDeleteConfirm,
|
244
244
|
"onUpdate:visible": e[3] || (e[3] = (m) => s.isDeleteConfirm = m),
|
245
245
|
size: "small",
|
246
246
|
title: "Ви впевнені?"
|
247
247
|
}, {
|
248
248
|
default: A(() => [
|
249
|
+
e[6] || (e[6] = o("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
249
250
|
o("div", ht, [
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
onClick: e[2] || (e[2] = (...m) => r.deleteElement && r.deleteElement(...m))
|
261
|
-
}, " Так, я впевнена(ий) ")
|
262
|
-
])
|
251
|
+
o("button", {
|
252
|
+
type: "button",
|
253
|
+
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",
|
254
|
+
onClick: e[1] || (e[1] = (m) => s.isDeleteConfirm = !1)
|
255
|
+
}, " Скасувати "),
|
256
|
+
o("button", {
|
257
|
+
type: "button",
|
258
|
+
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",
|
259
|
+
onClick: e[2] || (e[2] = (...m) => r.deleteElement && r.deleteElement(...m))
|
260
|
+
}, " Так, я впевнена(ий) ")
|
263
261
|
])
|
264
262
|
]),
|
265
263
|
_: 1
|
266
264
|
}, 8, ["visible"])
|
267
265
|
], 64);
|
268
266
|
}
|
269
|
-
const
|
267
|
+
const mt = /* @__PURE__ */ T(at, [["render", ft]]), gt = {}, xt = {
|
270
268
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
271
269
|
xmlns: "http://www.w3.org/2000/svg",
|
272
270
|
viewBox: "0 0 24 24",
|
@@ -276,15 +274,15 @@ const gt = /* @__PURE__ */ T(at, [["render", mt]]), xt = {}, yt = {
|
|
276
274
|
"stroke-linecap": "round",
|
277
275
|
"stroke-linejoin": "round"
|
278
276
|
};
|
279
|
-
function
|
280
|
-
return l(), i("svg",
|
277
|
+
function yt(t, e, n, a, s, r) {
|
278
|
+
return l(), i("svg", xt, e[0] || (e[0] = [
|
281
279
|
o("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
282
280
|
o("path", { d: "M7 20V4" }, null, -1),
|
283
281
|
o("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
284
282
|
o("path", { d: "M17 4v16" }, null, -1)
|
285
283
|
]));
|
286
284
|
}
|
287
|
-
const
|
285
|
+
const _t = /* @__PURE__ */ T(gt, [["render", yt]]), vt = {}, kt = {
|
288
286
|
xmlns: "http://www.w3.org/2000/svg",
|
289
287
|
width: "24",
|
290
288
|
height: "24",
|
@@ -296,8 +294,8 @@ const kt = /* @__PURE__ */ T(xt, [["render", _t]]), vt = {}, wt = {
|
|
296
294
|
"stroke-linejoin": "round",
|
297
295
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
298
296
|
};
|
299
|
-
function
|
300
|
-
return l(), i("svg",
|
297
|
+
function wt(t, e, n, a, s, r) {
|
298
|
+
return l(), i("svg", kt, e[0] || (e[0] = [
|
301
299
|
o("path", {
|
302
300
|
stroke: "none",
|
303
301
|
d: "M0 0h24v24H0z",
|
@@ -307,8 +305,8 @@ function Ct(t, e, n, a, s, r) {
|
|
307
305
|
o("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
308
306
|
]));
|
309
307
|
}
|
310
|
-
const
|
311
|
-
components: { IconExport:
|
308
|
+
const Ct = /* @__PURE__ */ T(vt, [["render", wt]]), $t = {
|
309
|
+
components: { IconExport: _t, IconChevronDown: ze, IconSuccess: Ct },
|
312
310
|
props: {
|
313
311
|
table: String,
|
314
312
|
columns: Array,
|
@@ -410,40 +408,36 @@ const $t = /* @__PURE__ */ T(vt, [["render", Ct]]), At = {
|
|
410
408
|
this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((n) => (n == null ? void 0 : n.hidden) !== !0)) == null ? void 0 : e.map((n) => n == null ? void 0 : n.name), this.activeAction = "choceVisible";
|
411
409
|
}
|
412
410
|
}
|
413
|
-
},
|
411
|
+
}, At = {
|
414
412
|
key: 0,
|
415
413
|
class: "flex flex-col items-center"
|
416
|
-
},
|
414
|
+
}, Tt = {
|
417
415
|
key: 1,
|
418
416
|
class: "p-4"
|
419
|
-
},
|
417
|
+
}, It = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, St = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Vt = ["onClick"], Dt = {
|
420
418
|
key: 0,
|
421
419
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
422
|
-
},
|
420
|
+
}, Ft = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, jt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Mt = { class: "mt-2 space-y-2" }, qt = ["id", "onChange"], Pt = ["for"], Bt = {
|
423
421
|
key: 0,
|
424
422
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
425
|
-
},
|
423
|
+
}, Lt = {
|
426
424
|
key: 1,
|
427
425
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
428
426
|
};
|
429
|
-
function
|
430
|
-
const u = p("IconExport"), f = p("
|
427
|
+
function zt(t, e, n, a, s, r) {
|
428
|
+
const u = p("IconExport"), f = p("IconSuccess"), x = p("VsCheckbox"), b = p("VsDialog");
|
431
429
|
return l(), i($, null, [
|
432
430
|
o("button", {
|
433
431
|
onClick: e[0] || (e[0] = (c) => s.isOpen = !0),
|
434
432
|
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"
|
435
433
|
}, [
|
436
|
-
|
434
|
+
y(u, {
|
437
435
|
height: "16",
|
438
436
|
width: "16"
|
439
437
|
}),
|
440
|
-
e[7] || (e[7] = j(" Експорт "))
|
441
|
-
x(f, {
|
442
|
-
height: "12",
|
443
|
-
width: "16"
|
444
|
-
})
|
438
|
+
e[7] || (e[7] = j(" Експорт "))
|
445
439
|
]),
|
446
|
-
|
440
|
+
y(b, {
|
447
441
|
visible: s.isOpen,
|
448
442
|
"onUpdate:visible": e[6] || (e[6] = (c) => s.isOpen = c),
|
449
443
|
title: "Експорт таблиці",
|
@@ -451,7 +445,7 @@ function Ut(t, e, n, a, s, r) {
|
|
451
445
|
closeClickBack: !0
|
452
446
|
}, {
|
453
447
|
footer: A(() => [
|
454
|
-
s.isSuccessTemplate ? (l(), i("div",
|
448
|
+
s.isSuccessTemplate ? (l(), i("div", Bt, [
|
455
449
|
o("button", {
|
456
450
|
type: "button",
|
457
451
|
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",
|
@@ -462,7 +456,7 @@ function Ut(t, e, n, a, s, r) {
|
|
462
456
|
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
457
|
onClick: e[3] || (e[3] = (c) => s.isSuccessTemplate = !1)
|
464
458
|
}, " Вигрузити ще ")
|
465
|
-
])) : (l(), i("div",
|
459
|
+
])) : (l(), i("div", Lt, [
|
466
460
|
o("button", {
|
467
461
|
type: "button",
|
468
462
|
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",
|
@@ -476,66 +470,64 @@ function Ut(t, e, n, a, s, r) {
|
|
476
470
|
]))
|
477
471
|
]),
|
478
472
|
default: A(() => [
|
479
|
-
s.isSuccessTemplate ? (l(), i("div",
|
480
|
-
|
473
|
+
s.isSuccessTemplate ? (l(), i("div", At, [
|
474
|
+
y(f, {
|
481
475
|
height: "100",
|
482
476
|
width: "100",
|
483
477
|
class: "text-green-200 mb-[20px]"
|
484
478
|
}),
|
485
479
|
e[8] || (e[8] = o("h2", null, "Звіт сформовано і збережено", -1))
|
486
|
-
])) : (l(), i("div",
|
487
|
-
o("div",
|
488
|
-
o("
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
480
|
+
])) : (l(), i("div", Tt, [
|
481
|
+
o("div", It, [
|
482
|
+
e[9] || (e[9] = o("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
483
|
+
o("div", St, [
|
484
|
+
(l(!0), i($, null, V(s.actions, (c) => (l(), i("button", {
|
485
|
+
key: c == null ? void 0 : c.name,
|
486
|
+
onClick: c == null ? void 0 : c.function,
|
487
|
+
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"
|
488
|
+
}, [
|
489
|
+
o("span", {
|
490
|
+
class: D(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === s.activeAction }])
|
495
491
|
}, [
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
], 2),
|
501
|
-
j(" " + I(c == null ? void 0 : c.label), 1)
|
502
|
-
], 8, Ft))), 128))
|
503
|
-
])
|
492
|
+
(c == null ? void 0 : c.name) === s.activeAction ? (l(), i("span", Dt)) : v("", !0)
|
493
|
+
], 2),
|
494
|
+
j(" " + I(c == null ? void 0 : c.label), 1)
|
495
|
+
], 8, Vt))), 128))
|
504
496
|
]),
|
505
|
-
o("div",
|
506
|
-
(l(!0), i($, null, V(n.columns, (c,
|
497
|
+
o("div", Ft, [
|
498
|
+
(l(!0), i($, null, V(n.columns, (c, k) => (l(), i("div", {
|
507
499
|
class: "flex items-center",
|
508
|
-
key:
|
500
|
+
key: k,
|
509
501
|
style: { width: "calc((100% - 10px) / 2)" }
|
510
502
|
}, [
|
511
|
-
x
|
503
|
+
y(x, {
|
512
504
|
class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
|
513
505
|
modelValue: s.cols,
|
514
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
506
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => s.cols = m),
|
515
507
|
value: c == null ? void 0 : c.name,
|
516
508
|
label: c == null ? void 0 : c.ua
|
517
509
|
}, null, 8, ["modelValue", "value", "label"])
|
518
510
|
]))), 128))
|
519
511
|
])
|
520
512
|
]),
|
521
|
-
o("div",
|
522
|
-
e[10] || (e[10] = o("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
523
|
-
o("div",
|
524
|
-
(l(!0), i($, null, V(s.tableFormats, (c,
|
513
|
+
o("div", jt, [
|
514
|
+
e[10] || (e[10] = o("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
515
|
+
o("div", Mt, [
|
516
|
+
(l(!0), i($, null, V(s.tableFormats, (c, k) => (l(), i("div", {
|
525
517
|
class: "flex items-center",
|
526
|
-
key:
|
518
|
+
key: k
|
527
519
|
}, [
|
528
520
|
o("input", {
|
529
521
|
type: "radio",
|
530
522
|
name: "hs-pro-duecmfm",
|
531
523
|
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",
|
532
524
|
id: c,
|
533
|
-
onChange: (
|
534
|
-
}, null, 40,
|
525
|
+
onChange: (m) => r.selectFormat(c)
|
526
|
+
}, null, 40, qt),
|
535
527
|
o("label", {
|
536
528
|
for: c,
|
537
529
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
538
|
-
}, " Формат " + I(c), 9,
|
530
|
+
}, " Формат " + I(c), 9, Pt)
|
539
531
|
]))), 128))
|
540
532
|
])
|
541
533
|
])
|
@@ -545,7 +537,7 @@ function Ut(t, e, n, a, s, r) {
|
|
545
537
|
}, 8, ["visible"])
|
546
538
|
], 64);
|
547
539
|
}
|
548
|
-
const
|
540
|
+
const Ot = /* @__PURE__ */ T($t, [["render", zt]]), Ut = {}, Nt = {
|
549
541
|
xmlns: "http://www.w3.org/2000/svg",
|
550
542
|
viewBox: "0 0 24 24",
|
551
543
|
fill: "none",
|
@@ -555,12 +547,12 @@ const Nt = /* @__PURE__ */ T(At, [["render", Ut]]), Et = {}, Ht = {
|
|
555
547
|
"stroke-linejoin": "round",
|
556
548
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
557
549
|
};
|
558
|
-
function
|
559
|
-
return l(), i("svg",
|
550
|
+
function Et(t, e, n, a, s, r) {
|
551
|
+
return l(), i("svg", Nt, e[0] || (e[0] = [
|
560
552
|
Qe('<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)
|
561
553
|
]));
|
562
554
|
}
|
563
|
-
const
|
555
|
+
const Ht = /* @__PURE__ */ T(Ut, [["render", Et]]), Rt = {
|
564
556
|
props: { column: Object },
|
565
557
|
emits: ["update-column"],
|
566
558
|
data() {
|
@@ -577,12 +569,12 @@ const Wt = /* @__PURE__ */ T(Et, [["render", Rt]]), Jt = {
|
|
577
569
|
var t;
|
578
570
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
579
571
|
}
|
580
|
-
},
|
581
|
-
function
|
572
|
+
}, Wt = { class: "flex w-full gap-[8px] items-centr" };
|
573
|
+
function Jt(t, e, n, a, s, r) {
|
582
574
|
var u, f;
|
583
|
-
return l(), i("label",
|
584
|
-
|
585
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
575
|
+
return l(), i("label", Wt, [
|
576
|
+
U(o("input", {
|
577
|
+
"onUpdate:modelValue": e[0] || (e[0] = (x) => s.value = x),
|
586
578
|
type: "checkbox"
|
587
579
|
}, null, 512), [
|
588
580
|
[Xe, s.value]
|
@@ -590,8 +582,8 @@ function Kt(t, e, n, a, s, r) {
|
|
590
582
|
j(" " + I(((u = n.column) == null ? void 0 : u.ua) || ((f = n.column) == null ? void 0 : f.title)), 1)
|
591
583
|
]);
|
592
584
|
}
|
593
|
-
const
|
594
|
-
components: { IconColumns:
|
585
|
+
const Gt = /* @__PURE__ */ T(Rt, [["render", Jt]]), Kt = {
|
586
|
+
components: { IconColumns: Ht, AdminTableColumnsHiddenItem: Gt },
|
595
587
|
emits: ["update-columns"],
|
596
588
|
props: { columns: Array },
|
597
589
|
methods: {
|
@@ -600,28 +592,28 @@ const Qt = /* @__PURE__ */ T(Jt, [["render", Kt]]), Xt = {
|
|
600
592
|
n[e] = t, this.$emit("update-columns", [...n]);
|
601
593
|
}
|
602
594
|
}
|
603
|
-
},
|
604
|
-
function
|
605
|
-
const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"),
|
606
|
-
return l(), _(
|
595
|
+
}, Qt = { 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" }, Xt = { class: "py-[10px] px-[10px] w-[260px]" }, Yt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
596
|
+
function Zt(t, e, n, a, s, r) {
|
597
|
+
const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), x = p("VsPopover");
|
598
|
+
return l(), _(x, {
|
607
599
|
trigger: "click",
|
608
600
|
placement: "bottom"
|
609
601
|
}, {
|
610
602
|
reference: A(() => [
|
611
|
-
o("button",
|
612
|
-
|
603
|
+
o("button", Qt, [
|
604
|
+
y(u, {
|
613
605
|
height: "20",
|
614
606
|
width: "16"
|
615
607
|
})
|
616
608
|
])
|
617
609
|
]),
|
618
610
|
default: A(() => [
|
619
|
-
o("div",
|
611
|
+
o("div", Xt, [
|
620
612
|
e[0] || (e[0] = o("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
621
|
-
o("ul",
|
622
|
-
(l(!0), i($, null, V(n.columns, (
|
623
|
-
|
624
|
-
column:
|
613
|
+
o("ul", Yt, [
|
614
|
+
(l(!0), i($, null, V(n.columns, (b, c) => (l(), i("li", { key: c }, [
|
615
|
+
y(f, {
|
616
|
+
column: b,
|
625
617
|
onUpdateColumn: r.updateColumn
|
626
618
|
}, null, 8, ["column", "onUpdateColumn"])
|
627
619
|
]))), 128))
|
@@ -631,7 +623,7 @@ function ts(t, e, n, a, s, r) {
|
|
631
623
|
_: 1
|
632
624
|
});
|
633
625
|
}
|
634
|
-
const
|
626
|
+
const es = /* @__PURE__ */ T(Kt, [["render", Zt]]), ts = {}, ss = {
|
635
627
|
xmlns: "http://www.w3.org/2000/svg",
|
636
628
|
viewBox: "0 0 24 24",
|
637
629
|
fill: "none",
|
@@ -641,8 +633,8 @@ const ss = /* @__PURE__ */ T(Xt, [["render", ts]]), ns = {}, ls = {
|
|
641
633
|
"stroke-linejoin": "round",
|
642
634
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
643
635
|
};
|
644
|
-
function
|
645
|
-
return l(), i("svg",
|
636
|
+
function ns(t, e, n, a, s, r) {
|
637
|
+
return l(), i("svg", ss, e[0] || (e[0] = [
|
646
638
|
o("path", {
|
647
639
|
stroke: "none",
|
648
640
|
d: "M0 0h24v24H0z",
|
@@ -651,8 +643,8 @@ function os(t, e, n, a, s, r) {
|
|
651
643
|
o("path", { d: "M5 12l14 0" }, null, -1)
|
652
644
|
]));
|
653
645
|
}
|
654
|
-
const
|
655
|
-
components: { IconPlus:
|
646
|
+
const ls = /* @__PURE__ */ T(ts, [["render", ns]]), os = {
|
647
|
+
components: { IconPlus: z, IconMinus: ls },
|
656
648
|
props: {
|
657
649
|
title: String,
|
658
650
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -660,22 +652,22 @@ const rs = /* @__PURE__ */ T(ns, [["render", os]]), as = {
|
|
660
652
|
data() {
|
661
653
|
return { expanded: this.defaultValue };
|
662
654
|
}
|
663
|
-
},
|
664
|
-
function
|
655
|
+
}, rs = { class: "hs-accordion" }, as = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, is = { class: "text-sm font-medium" }, cs = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
656
|
+
function us(t, e, n, a, s, r) {
|
665
657
|
const u = p("IconPlus"), f = p("IconMinus");
|
666
658
|
return l(), i("div", null, [
|
667
659
|
o("div", null, [
|
668
|
-
o("div",
|
669
|
-
o("div",
|
660
|
+
o("div", rs, [
|
661
|
+
o("div", as, [
|
670
662
|
o("div", {
|
671
|
-
onClick: e[0] || (e[0] = (
|
663
|
+
onClick: e[0] || (e[0] = (x) => s.expanded = !s.expanded),
|
672
664
|
class: "rounded-md cursor-pointer grow"
|
673
665
|
}, [
|
674
|
-
o("span",
|
666
|
+
o("span", is, I(n.title), 1)
|
675
667
|
]),
|
676
668
|
o("button", {
|
677
669
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
678
|
-
onClick: e[1] || (e[1] = (
|
670
|
+
onClick: e[1] || (e[1] = (x) => s.expanded = !s.expanded)
|
679
671
|
}, [
|
680
672
|
s.expanded ? (l(), _(f, {
|
681
673
|
key: 1,
|
@@ -683,9 +675,9 @@ function ps(t, e, n, a, s, r) {
|
|
683
675
|
})) : (l(), _(u, { key: 0 }))
|
684
676
|
])
|
685
677
|
]),
|
686
|
-
|
678
|
+
y(N, { name: "fade" }, {
|
687
679
|
default: A(() => [
|
688
|
-
|
680
|
+
U(o("div", cs, [
|
689
681
|
Ye(t.$slots, "default", {}, void 0, !0)
|
690
682
|
], 512), [
|
691
683
|
[Ie, s.expanded]
|
@@ -697,32 +689,32 @@ function ps(t, e, n, a, s, r) {
|
|
697
689
|
])
|
698
690
|
]);
|
699
691
|
}
|
700
|
-
const
|
692
|
+
const ds = /* @__PURE__ */ T(os, [["render", us], ["__scopeId", "data-v-c6318482"]]), ps = {
|
701
693
|
components: {
|
702
|
-
AdminComponentIs:
|
703
|
-
AdminTree:
|
694
|
+
AdminComponentIs: O,
|
695
|
+
AdminTree: ds,
|
704
696
|
VsNoData: Oe,
|
705
697
|
VsWidgetComments: Ue,
|
706
698
|
VsWidgetMap: Ne,
|
707
699
|
VsWidgetFileList: Ee
|
708
700
|
},
|
709
701
|
props: { table: String, columns: Array, row: Object }
|
710
|
-
},
|
702
|
+
}, bs = {
|
711
703
|
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",
|
712
704
|
style: { height: "calc(100vh - 310px)" }
|
713
|
-
},
|
705
|
+
}, hs = {
|
714
706
|
class: "border-l",
|
715
707
|
style: { height: "calc(100vh - 360px)" }
|
716
|
-
},
|
717
|
-
function
|
718
|
-
var m,
|
719
|
-
const u = p("AdminComponentIs"), f = p("AdminTree"),
|
720
|
-
return l(), i("div",
|
708
|
+
}, fs = { class: "flow-root mt-[10px]" }, ms = { class: "-my-3 text-sm divide-y divide-gray-100" }, gs = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, xs = { class: "font-medium text-black w-[50%]" }, ys = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, _s = { class: "table-info-card" }, vs = { class: "table-info-card" };
|
709
|
+
function ks(t, e, n, a, s, r) {
|
710
|
+
var m, h, w;
|
711
|
+
const u = p("AdminComponentIs"), f = p("AdminTree"), x = p("VsWidgetMap"), b = p("VsNoData"), c = p("VsWidgetComments"), k = p("VsWidgetFileList");
|
712
|
+
return l(), i("div", bs, [
|
721
713
|
e[0] || (e[0] = o("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
722
714
|
o("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
723
715
|
], -1)),
|
724
|
-
o("div",
|
725
|
-
(
|
716
|
+
o("div", hs, [
|
717
|
+
(h = (m = t.$route) == null ? void 0 : m.query) != null && h.card ? (l(), i($, { key: 0 }, [
|
726
718
|
n.row ? (l(), _(f, {
|
727
719
|
key: 0,
|
728
720
|
defaultValue: !0,
|
@@ -730,20 +722,20 @@ function Cs(t, e, n, a, s, r) {
|
|
730
722
|
class: "border-b p-[10px] py-[16px]"
|
731
723
|
}, {
|
732
724
|
default: A(() => [
|
733
|
-
(
|
734
|
-
o("
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
])
|
725
|
+
o("div", fs, [
|
726
|
+
o("dl", ms, [
|
727
|
+
(l(!0), i($, null, V(n.columns, (g) => (l(), i("div", gs, [
|
728
|
+
o("dt", xs, I((g == null ? void 0 : g.ua) || (g == null ? void 0 : g.title)), 1),
|
729
|
+
o("dd", ys, [
|
730
|
+
y(u, {
|
731
|
+
row: n.row,
|
732
|
+
column: g,
|
733
|
+
table: n.table
|
734
|
+
}, null, 8, ["row", "column", "table"])
|
735
|
+
])
|
736
|
+
]))), 256))
|
745
737
|
])
|
746
|
-
])
|
738
|
+
])
|
747
739
|
]),
|
748
740
|
_: 1
|
749
741
|
})) : v("", !0),
|
@@ -755,11 +747,11 @@ function Cs(t, e, n, a, s, r) {
|
|
755
747
|
default: A(() => {
|
756
748
|
var g, C;
|
757
749
|
return [
|
758
|
-
(g = n.row) != null && g.geom ? (l(), _(
|
750
|
+
(g = n.row) != null && g.geom ? (l(), _(x, {
|
759
751
|
key: 0,
|
760
752
|
geometry: (C = n.row) == null ? void 0 : C.geom,
|
761
753
|
zoom: 14
|
762
|
-
}, null, 8, ["geometry"])) : (l(), _(
|
754
|
+
}, null, 8, ["geometry"])) : (l(), _(b, {
|
763
755
|
key: 1,
|
764
756
|
title: "У об'єкта відсутня геометрія",
|
765
757
|
text: "",
|
@@ -769,15 +761,15 @@ function Cs(t, e, n, a, s, r) {
|
|
769
761
|
}),
|
770
762
|
_: 1
|
771
763
|
})) : v("", !0),
|
772
|
-
|
764
|
+
y(f, {
|
773
765
|
title: "Коментарі",
|
774
766
|
class: "border-b p-[10px] py-[16px]"
|
775
767
|
}, {
|
776
768
|
default: A(() => {
|
777
769
|
var g;
|
778
770
|
return [
|
779
|
-
o("div",
|
780
|
-
|
771
|
+
o("div", _s, [
|
772
|
+
y(c, {
|
781
773
|
id: (g = n.row) == null ? void 0 : g.id
|
782
774
|
}, null, 8, ["id"])
|
783
775
|
])
|
@@ -785,15 +777,15 @@ function Cs(t, e, n, a, s, r) {
|
|
785
777
|
}),
|
786
778
|
_: 1
|
787
779
|
}),
|
788
|
-
|
780
|
+
y(f, {
|
789
781
|
title: "Файли",
|
790
782
|
class: "border-b p-[10px] py-[16px]"
|
791
783
|
}, {
|
792
784
|
default: A(() => {
|
793
785
|
var g, C;
|
794
786
|
return [
|
795
|
-
o("div",
|
796
|
-
(l(), _(
|
787
|
+
o("div", vs, [
|
788
|
+
(l(), _(k, {
|
797
789
|
key: (g = n.row) == null ? void 0 : g.id,
|
798
790
|
id: (C = n.row) == null ? void 0 : C.id
|
799
791
|
}, null, 8, ["id"]))
|
@@ -802,14 +794,14 @@ function Cs(t, e, n, a, s, r) {
|
|
802
794
|
}),
|
803
795
|
_: 1
|
804
796
|
})
|
805
|
-
], 64)) : (l(), _(
|
797
|
+
], 64)) : (l(), _(b, {
|
806
798
|
key: 1,
|
807
799
|
text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
|
808
800
|
}))
|
809
801
|
])
|
810
802
|
]);
|
811
803
|
}
|
812
|
-
const
|
804
|
+
const ws = /* @__PURE__ */ T(ps, [["render", ks]]), Cs = {}, $s = {
|
813
805
|
class: "size-4",
|
814
806
|
xmlns: "http://www.w3.org/2000/svg",
|
815
807
|
viewBox: "0 0 24 24",
|
@@ -819,8 +811,8 @@ const $s = /* @__PURE__ */ T(hs, [["render", Cs]]), As = {}, Ts = {
|
|
819
811
|
"stroke-linecap": "round",
|
820
812
|
"stroke-linejoin": "round"
|
821
813
|
};
|
822
|
-
function
|
823
|
-
return l(), i("svg",
|
814
|
+
function As(t, e, n, a, s, r) {
|
815
|
+
return l(), i("svg", $s, e[0] || (e[0] = [
|
824
816
|
o("rect", {
|
825
817
|
width: "18",
|
826
818
|
height: "18",
|
@@ -832,7 +824,7 @@ function Is(t, e, n, a, s, r) {
|
|
832
824
|
o("path", { d: "m8 9 3 3-3 3" }, null, -1)
|
833
825
|
]));
|
834
826
|
}
|
835
|
-
const
|
827
|
+
const Ts = /* @__PURE__ */ T(Cs, [["render", As]]), Is = {
|
836
828
|
emits: ["filterChange"],
|
837
829
|
props: {
|
838
830
|
scheme: { type: Object },
|
@@ -850,32 +842,32 @@ const Ss = /* @__PURE__ */ T(As, [["render", Is]]), Vs = {
|
|
850
842
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
851
843
|
}
|
852
844
|
}
|
853
|
-
},
|
854
|
-
function
|
845
|
+
}, Ss = { key: 0 }, Vs = { 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" };
|
846
|
+
function Ds(t, e, n, a, s, r) {
|
855
847
|
const u = p("IconFilter"), f = p("VsFilter");
|
856
848
|
return l(), i($, null, [
|
857
849
|
o("button", {
|
858
|
-
onClick: e[0] || (e[0] = (
|
850
|
+
onClick: e[0] || (e[0] = (x) => s.isFilters = !s.isFilters),
|
859
851
|
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"
|
860
852
|
}, [
|
861
|
-
|
853
|
+
y(u, {
|
862
854
|
height: "16",
|
863
855
|
width: "16"
|
864
856
|
}),
|
865
857
|
e[4] || (e[4] = j(" Фільтри ")),
|
866
|
-
n.onFilters ? (l(), i("span",
|
858
|
+
n.onFilters ? (l(), i("span", Ss, I(n.onFilters), 1)) : v("", !0)
|
867
859
|
]),
|
868
|
-
|
860
|
+
y(N, { name: "fade" }, {
|
869
861
|
default: A(() => {
|
870
|
-
var
|
862
|
+
var x;
|
871
863
|
return [
|
872
|
-
|
873
|
-
onClick: e[3] || (e[3] = (...
|
864
|
+
U(o("div", {
|
865
|
+
onClick: e[3] || (e[3] = (...b) => r.closeFilter && r.closeFilter(...b)),
|
874
866
|
style: { height: "100vh" },
|
875
867
|
class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
|
876
868
|
}, [
|
877
|
-
o("div",
|
878
|
-
(
|
869
|
+
o("div", Vs, [
|
870
|
+
(x = n.scheme) != null && x.length ? (l(), _(f, {
|
879
871
|
key: 0,
|
880
872
|
ref: "filter",
|
881
873
|
scheme: n.scheme,
|
@@ -884,9 +876,11 @@ function js(t, e, n, a, s, r) {
|
|
884
876
|
history: "",
|
885
877
|
token: n.table,
|
886
878
|
name: "filter",
|
887
|
-
|
879
|
+
footer: !0,
|
880
|
+
background: !0,
|
881
|
+
onFilterChange: e[1] || (e[1] = (b) => t.$emit("filterChange", b)),
|
888
882
|
closeFilterBtn: !0,
|
889
|
-
onFilterClose: e[2] || (e[2] = (
|
883
|
+
onFilterClose: e[2] || (e[2] = (b) => s.isFilters = !1)
|
890
884
|
}, null, 8, ["scheme", "token"])) : v("", !0)
|
891
885
|
])
|
892
886
|
], 512), [
|
@@ -898,25 +892,25 @@ function js(t, e, n, a, s, r) {
|
|
898
892
|
})
|
899
893
|
], 64);
|
900
894
|
}
|
901
|
-
const
|
895
|
+
const Fs = /* @__PURE__ */ T(Is, [["render", Ds]]), js = {
|
902
896
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
903
|
-
},
|
897
|
+
}, Ms = {
|
904
898
|
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",
|
905
899
|
"aria-label": "Tabs",
|
906
900
|
role: "tablist",
|
907
901
|
"aria-orientation": "horizontal"
|
908
|
-
},
|
909
|
-
function
|
910
|
-
return l(), i("nav",
|
902
|
+
}, qs = ["onClick"];
|
903
|
+
function Ps(t, e, n, a, s, r) {
|
904
|
+
return l(), i("nav", Ms, [
|
911
905
|
(l(!0), i($, null, V(n.tabsList, (u) => (l(), i("button", {
|
912
906
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
913
907
|
class: D(["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", {
|
914
908
|
" 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) === n.filterState
|
915
909
|
}])
|
916
|
-
}, I(u == null ? void 0 : u.label), 11,
|
910
|
+
}, I(u == null ? void 0 : u.label), 11, qs))), 256))
|
917
911
|
]);
|
918
912
|
}
|
919
|
-
const
|
913
|
+
const Bs = /* @__PURE__ */ T(js, [["render", Ps]]), Ls = {}, zs = {
|
920
914
|
xmlns: "http://www.w3.org/2000/svg",
|
921
915
|
viewBox: "0 0 24 24",
|
922
916
|
fill: "none",
|
@@ -926,8 +920,8 @@ const zs = /* @__PURE__ */ T(qs, [["render", Ls]]), Os = {}, Us = {
|
|
926
920
|
"stroke-linejoin": "round",
|
927
921
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
928
922
|
};
|
929
|
-
function
|
930
|
-
return l(), i("svg",
|
923
|
+
function Os(t, e, n, a, s, r) {
|
924
|
+
return l(), i("svg", zs, e[0] || (e[0] = [
|
931
925
|
o("path", {
|
932
926
|
stroke: "none",
|
933
927
|
d: "M0 0h24v24H0z",
|
@@ -936,52 +930,45 @@ function Ns(t, e, n, a, s, r) {
|
|
936
930
|
o("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)
|
937
931
|
]));
|
938
932
|
}
|
939
|
-
const
|
940
|
-
components: { IconFilter2:
|
933
|
+
const Us = /* @__PURE__ */ T(Ls, [["render", Os]]), Ns = {
|
934
|
+
components: { IconFilter2: Us, IconCheck2: Re },
|
941
935
|
props: { filterCustom: String, customList: Array }
|
942
|
-
},
|
943
|
-
function
|
944
|
-
const u = p("IconFilter2"), f = p("IconCheck2"),
|
945
|
-
return l(), _(
|
936
|
+
}, Es = { 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" }, Hs = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Rs = ["onClick"], Ws = { class: "text-sm text-gray-800" };
|
937
|
+
function Js(t, e, n, a, s, r) {
|
938
|
+
const u = p("IconFilter2"), f = p("IconCheck2"), x = p("VsPopover");
|
939
|
+
return l(), _(x, {
|
946
940
|
ref: "popover",
|
947
941
|
placement: "bottom"
|
948
942
|
}, {
|
949
943
|
reference: A(() => [
|
950
|
-
o("button",
|
951
|
-
|
944
|
+
o("button", Es, [
|
945
|
+
y(u, {
|
952
946
|
height: "20",
|
953
947
|
width: "20"
|
954
948
|
})
|
955
949
|
])
|
956
950
|
]),
|
957
951
|
default: A(() => [
|
958
|
-
o("div",
|
959
|
-
(l(!0), i($, null, V(n.customList, (
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
o("span", Gs, I(h == null ? void 0 : h.label), 1),
|
974
|
-
n.filterCustom === (h == null ? void 0 : h.name) ? (l(), _(f, {
|
975
|
-
key: 0,
|
976
|
-
class: "ml-auto size-3 shrink-0"
|
977
|
-
})) : v("", !0)
|
978
|
-
], 10, Js);
|
979
|
-
}), 128)),
|
952
|
+
o("div", Hs, [
|
953
|
+
(l(!0), i($, null, V(n.customList, (b, c) => (l(), i("button", {
|
954
|
+
onClick: (k) => {
|
955
|
+
var m;
|
956
|
+
t.$emit("update:filterCustom", b == null ? void 0 : b.name), (m = t.$refs) == null || m.popover.togglePopover();
|
957
|
+
},
|
958
|
+
key: c,
|
959
|
+
class: D(["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) }])
|
960
|
+
}, [
|
961
|
+
o("span", Ws, I(b == null ? void 0 : b.label), 1),
|
962
|
+
n.filterCustom === (b == null ? void 0 : b.name) ? (l(), _(f, {
|
963
|
+
key: 0,
|
964
|
+
class: "ml-auto size-3 shrink-0"
|
965
|
+
})) : v("", !0)
|
966
|
+
], 10, Rs))), 128)),
|
980
967
|
o("button", {
|
981
968
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
982
|
-
onClick: e[0] || (e[0] = (
|
983
|
-
var
|
984
|
-
t.$emit("update:filterCustom", void 0), (
|
969
|
+
onClick: e[0] || (e[0] = (b) => {
|
970
|
+
var c;
|
971
|
+
t.$emit("update:filterCustom", void 0), (c = t.$refs) == null || c.popover.togglePopover();
|
985
972
|
})
|
986
973
|
}, " Скинути фільтри ")
|
987
974
|
])
|
@@ -989,16 +976,16 @@ function Ks(t, e, n, a, s, r) {
|
|
989
976
|
_: 1
|
990
977
|
}, 512);
|
991
978
|
}
|
992
|
-
const
|
979
|
+
const Gs = /* @__PURE__ */ T(Ns, [["render", Js]]), Ks = { class: "flex items-center gap-x-2" }, Qs = {
|
993
980
|
__name: "admin-table-custom-buttons",
|
994
981
|
props: {
|
995
982
|
slots: Object
|
996
983
|
},
|
997
984
|
setup(t) {
|
998
|
-
var f,
|
999
|
-
const { asyncTemplateSlot: e } = (
|
1000
|
-
var m,
|
1001
|
-
if ((m = s.slots) != null && m.panelLeft || (a.value = "div"), (w = (
|
985
|
+
var f, x, b, c, k;
|
986
|
+
const { asyncTemplateSlot: e } = (k = (c = (b = (x = (f = Se()) == null ? void 0 : f.appContext) == null ? void 0 : x.app) == null ? void 0 : b.config) == null ? void 0 : c.globalProperties) == null ? void 0 : k.utils, n = B(""), a = B(""), s = t, r = () => {
|
987
|
+
var m, h, w, g, C;
|
988
|
+
if ((m = s.slots) != null && m.panelLeft || (a.value = "div"), (w = (h = s.slots) == null ? void 0 : h.panelLeft) != null && w.includes("<")) {
|
1002
989
|
const S = e("PanelLeft", (g = s.slots) == null ? void 0 : g.panelLeft, [
|
1003
990
|
"name"
|
1004
991
|
]);
|
@@ -1006,8 +993,8 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Ks]]), Xs = { class: "flex items-ce
|
|
1006
993
|
} else
|
1007
994
|
a.value = (C = s.slots) == null ? void 0 : C.panelLeft;
|
1008
995
|
}, u = () => {
|
1009
|
-
var m,
|
1010
|
-
if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (w = (
|
996
|
+
var m, h, w, g, C;
|
997
|
+
if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (w = (h = s.slots) == null ? void 0 : h.panelRight) != null && w.includes("<")) {
|
1011
998
|
const S = e("PanelRight", (g = s.slots) == null ? void 0 : g.panelRight, [
|
1012
999
|
"name"
|
1013
1000
|
]);
|
@@ -1015,47 +1002,47 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Ks]]), Xs = { class: "flex items-ce
|
|
1015
1002
|
} else
|
1016
1003
|
n.value = (C = s.slots) == null ? void 0 : C.panelRight;
|
1017
1004
|
};
|
1018
|
-
return r(), u(), (m,
|
1019
|
-
(l(), _(
|
1020
|
-
(l(), _(
|
1005
|
+
return r(), u(), (m, h) => (l(), i("div", Ks, [
|
1006
|
+
(l(), _(L(a.value))),
|
1007
|
+
(l(), _(L(n.value)))
|
1021
1008
|
]));
|
1022
1009
|
}
|
1023
|
-
},
|
1010
|
+
}, Xs = (t, e = 300) => {
|
1024
1011
|
let n;
|
1025
1012
|
return function(...a) {
|
1026
1013
|
clearTimeout(n), n = setTimeout(() => {
|
1027
1014
|
t.apply(this, a);
|
1028
1015
|
}, e);
|
1029
1016
|
};
|
1030
|
-
},
|
1017
|
+
}, Ys = {
|
1031
1018
|
__name: "admin-custom-button-add",
|
1032
1019
|
props: {
|
1033
1020
|
slots: Object
|
1034
1021
|
},
|
1035
1022
|
setup(t) {
|
1036
|
-
var r, u, f,
|
1037
|
-
const { asyncTemplateSlot: e } = (
|
1023
|
+
var r, u, f, x, b;
|
1024
|
+
const { asyncTemplateSlot: e } = (b = (x = (f = (u = (r = Se()) == null ? void 0 : r.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : x.globalProperties) == null ? void 0 : b.utils, n = B(""), a = t;
|
1038
1025
|
return (() => {
|
1039
|
-
var
|
1040
|
-
if ((
|
1041
|
-
const g = e("addButton", (
|
1026
|
+
var c, k, m, h, w;
|
1027
|
+
if ((c = a.slots) != null && c.addButton || (n.value = "div"), (m = (k = a.slots) == null ? void 0 : k.addButton) != null && m.includes("<")) {
|
1028
|
+
const g = e("addButton", (h = a.slots) == null ? void 0 : h.addButton, [
|
1042
1029
|
"IconPlus"
|
1043
1030
|
]);
|
1044
1031
|
n.value = g;
|
1045
1032
|
} else
|
1046
1033
|
n.value = (w = a.slots) == null ? void 0 : w.addButton;
|
1047
|
-
})(), (
|
1034
|
+
})(), (c, k) => n.value ? (l(), _(L(n.value), {
|
1048
1035
|
key: 0,
|
1049
|
-
IconPlus:
|
1036
|
+
IconPlus: z
|
1050
1037
|
})) : v("", !0);
|
1051
1038
|
}
|
1052
|
-
},
|
1039
|
+
}, Zs = {
|
1053
1040
|
key: 0,
|
1054
1041
|
class: "px-4 py-3 text-sm text-gray-800 font-[500]"
|
1055
|
-
},
|
1042
|
+
}, en = {
|
1056
1043
|
key: 1,
|
1057
1044
|
class: "px-4 py-3 text-sm text-gray-800 font-[700]"
|
1058
|
-
},
|
1045
|
+
}, tn = {
|
1059
1046
|
__name: "admin-table-totals-list",
|
1060
1047
|
props: {
|
1061
1048
|
columns: { type: Array, default: () => [] },
|
@@ -1069,35 +1056,35 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Ks]]), Xs = { class: "flex items-ce
|
|
1069
1056
|
return l(), i($, {
|
1070
1057
|
key: a == null ? void 0 : a.name
|
1071
1058
|
}, [
|
1072
|
-
(s = t.agg) != null && s[a == null ? void 0 : a.name] ? (l(), i("td",
|
1073
|
-
|
1059
|
+
(s = t.agg) != null && s[a == null ? void 0 : a.name] ? (l(), i("td", Zs, [
|
1060
|
+
y(O, {
|
1074
1061
|
column: a,
|
1075
1062
|
row: t.agg
|
1076
1063
|
}, null, 8, ["column", "row"])
|
1077
|
-
])) : (l(), i("td",
|
1064
|
+
])) : (l(), i("td", en))
|
1078
1065
|
], 64);
|
1079
1066
|
}), 128))
|
1080
1067
|
]));
|
1081
1068
|
}
|
1082
|
-
},
|
1069
|
+
}, sn = {
|
1083
1070
|
props: { table: String, title: String },
|
1084
1071
|
components: {
|
1085
|
-
AdminTableControl:
|
1086
|
-
AdminTableExport:
|
1087
|
-
AdminTableColumnsHidden:
|
1072
|
+
AdminTableControl: mt,
|
1073
|
+
AdminTableExport: Ot,
|
1074
|
+
AdminTableColumnsHidden: es,
|
1088
1075
|
AdminTableColumn: rt,
|
1089
1076
|
AdminNodata: We,
|
1090
|
-
IconPlus:
|
1077
|
+
IconPlus: z,
|
1091
1078
|
IconSearch: Je,
|
1092
|
-
AdminTableCardInfo:
|
1093
|
-
IconOpenCard:
|
1094
|
-
AdminComponentIs:
|
1095
|
-
AdminTableFilters:
|
1096
|
-
AdminTableTabs:
|
1097
|
-
AdminTableCustomFilters:
|
1098
|
-
AdminTableCustomButtons:
|
1099
|
-
AdminCustomButtonAdd:
|
1100
|
-
AdminTableTotalsList:
|
1079
|
+
AdminTableCardInfo: ws,
|
1080
|
+
IconOpenCard: Ts,
|
1081
|
+
AdminComponentIs: O,
|
1082
|
+
AdminTableFilters: Fs,
|
1083
|
+
AdminTableTabs: Bs,
|
1084
|
+
AdminTableCustomFilters: Gs,
|
1085
|
+
AdminTableCustomButtons: Qs,
|
1086
|
+
AdminCustomButtonAdd: Ys,
|
1087
|
+
AdminTableTotalsList: tn
|
1101
1088
|
},
|
1102
1089
|
data() {
|
1103
1090
|
return {
|
@@ -1153,7 +1140,7 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Ks]]), Xs = { class: "flex items-ce
|
|
1153
1140
|
this.tableData = null, await this.getTableData();
|
1154
1141
|
},
|
1155
1142
|
searchValue: {
|
1156
|
-
handler:
|
1143
|
+
handler: Xs(async function(t) {
|
1157
1144
|
var e;
|
1158
1145
|
await this.getTableData(), this.$router.push({
|
1159
1146
|
...this.$route,
|
@@ -1199,8 +1186,8 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Ks]]), Xs = { class: "flex items-ce
|
|
1199
1186
|
},
|
1200
1187
|
methods: {
|
1201
1188
|
async checkUrlMounted() {
|
1202
|
-
var t, e, n, a, s, r, u, f,
|
1203
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((
|
1189
|
+
var t, e, n, a, s, r, u, f, x, b, c, k, m, h, w, g, C;
|
1190
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((x = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : x.filterState) || null, this.filterCustom = ((c = (b = this.$route) == null ? void 0 : b.query) == null ? void 0 : c.custom) || null, this.searchValue = ((m = (k = this.$route) == null ? void 0 : k.query) == null ? void 0 : m.search) || "", this.visibleColumns = ((g = (w = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : w.columns) == null ? void 0 : g.split(",")) || [], (C = this.$route) != null && C.query.card && (this.isVisibleCardInfo = !0);
|
1204
1191
|
},
|
1205
1192
|
rowWidth(t) {
|
1206
1193
|
var n, a;
|
@@ -1214,9 +1201,9 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Ks]]), Xs = { class: "flex items-ce
|
|
1214
1201
|
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 = "";
|
1215
1202
|
},
|
1216
1203
|
async getTableData() {
|
1217
|
-
var t, e, n, a, s, r, u, f,
|
1204
|
+
var t, e, n, a, s, r, u, f, x, b, c;
|
1218
1205
|
try {
|
1219
|
-
const { data:
|
1206
|
+
const { data: k } = await F.get(`/api/template/table/${this.table}`), m = await F.get(`/api/table-data/${this.table}`, {
|
1220
1207
|
params: {
|
1221
1208
|
page: this.page,
|
1222
1209
|
search: this.searchValue || null,
|
@@ -1228,12 +1215,12 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Ks]]), Xs = { class: "flex items-ce
|
|
1228
1215
|
}
|
1229
1216
|
});
|
1230
1217
|
this.tableData = {
|
1231
|
-
...
|
1218
|
+
...k,
|
1232
1219
|
...(m == null ? void 0 : m.data) || {}
|
1233
|
-
}, this.initialHiddenColumns = (r = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((
|
1220
|
+
}, this.initialHiddenColumns = (r = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : s.map((h) => h == null ? void 0 : h.name)) == null ? void 0 : r.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((h) => {
|
1234
1221
|
var w;
|
1235
|
-
(w = this.visibleColumns) != null && w.includes(
|
1236
|
-
}) : this.visibleColumns = (
|
1222
|
+
(w = this.visibleColumns) != null && w.includes(h == null ? void 0 : h.name) ? h.hidden = !1 : h.hidden = !0;
|
1223
|
+
}) : this.visibleColumns = (c = (b = (x = this.tableData) == null ? void 0 : x.columns) == null ? void 0 : b.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : c.map((h) => h == null ? void 0 : h.name);
|
1237
1224
|
} catch {
|
1238
1225
|
}
|
1239
1226
|
},
|
@@ -1281,36 +1268,36 @@ const Qs = /* @__PURE__ */ T(Hs, [["render", Ks]]), Xs = { class: "flex items-ce
|
|
1281
1268
|
});
|
1282
1269
|
}
|
1283
1270
|
}
|
1284
|
-
},
|
1271
|
+
}, nn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, ln = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, on = { class: "text-xl font-medium" }, rn = {
|
1285
1272
|
style: { height: "calc(100vh - 155px)" },
|
1286
1273
|
class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1287
|
-
},
|
1274
|
+
}, an = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, cn = { class: "flex" }, un = { class: "flex gap-[6px] ml-auto" }, dn = { class: "inline-block w-full align-middle" }, pn = {
|
1288
1275
|
key: 0,
|
1289
1276
|
class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1290
|
-
},
|
1277
|
+
}, bn = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, hn = { class: "right-0" }, fn = {
|
1291
1278
|
key: 0,
|
1292
1279
|
class: "w-[70px] sticky right-0 top-0"
|
1293
|
-
},
|
1280
|
+
}, mn = { class: "divide-y divide-gray-200" }, gn = { class: "px-4 py-3 text-sm text-gray-600" }, xn = ["onClick"], yn = ["onClick"], _n = { class: "p-[20px] flex justify-start items-center w-full" }, vn = { class: "w-[200px] md:inline-flex hidden" }, kn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, wn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Cn = { key: 0 }, $n = {
|
1294
1281
|
key: 0,
|
1295
1282
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1296
1283
|
};
|
1297
|
-
function
|
1298
|
-
var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, oe, re, ae, ie, ce, ue, de, pe, be, he, fe
|
1299
|
-
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"),
|
1300
|
-
return l(), i("div",
|
1301
|
-
o("div",
|
1302
|
-
o("h2",
|
1284
|
+
function An(t, e, n, a, s, r) {
|
1285
|
+
var E, H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, oe, re, ae, ie, ce, ue, de, pe, be, he, fe;
|
1286
|
+
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), x = p("router-link"), b = p("AdminTableTabs"), c = p("IconSearch"), k = p("VsText"), m = p("AdminTableCustomButtons"), h = p("AdminTableCustomFilters"), w = p("AdminTableColumnsHidden"), g = p("AdminTableExport"), C = p("AdminTableFilters"), S = p("IconOpenCard"), q = p("AdminTableColumn"), P = p("AdminComponentIs"), Ve = p("AdminTableControl"), De = p("AdminTableTotalsList"), Fe = p("AdminNodata"), je = p("VsPagination"), Me = p("AdminTableCardInfo");
|
1287
|
+
return l(), i("div", nn, [
|
1288
|
+
o("div", ln, [
|
1289
|
+
o("h2", on, I(n.title), 1),
|
1303
1290
|
r.isForm ? (l(), i($, { key: 0 }, [
|
1304
|
-
(
|
1291
|
+
(H = (E = s.tableData) == null ? void 0 : E.slots) != null && H.addButton ? (l(), _(u, {
|
1305
1292
|
key: 0,
|
1306
|
-
slots: (
|
1307
|
-
}, null, 8, ["slots"])) : (l(), _(
|
1293
|
+
slots: (R = s.tableData) == null ? void 0 : R.slots
|
1294
|
+
}, null, 8, ["slots"])) : (l(), _(x, {
|
1308
1295
|
key: 1,
|
1309
|
-
to: `/add?table=${(
|
1296
|
+
to: `/add?table=${(J = (W = t.$route) == null ? void 0 : W.params) == null ? void 0 : J.catchAll}`,
|
1310
1297
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
|
1311
1298
|
}, {
|
1312
1299
|
default: A(() => [
|
1313
|
-
|
1300
|
+
y(f, {
|
1314
1301
|
height: "16",
|
1315
1302
|
width: "16"
|
1316
1303
|
}),
|
@@ -1320,58 +1307,58 @@ function In(t, e, n, a, s, r) {
|
|
1320
1307
|
}, 8, ["to"]))
|
1321
1308
|
], 64)) : v("", !0)
|
1322
1309
|
]),
|
1323
|
-
o("div",
|
1324
|
-
o("div",
|
1325
|
-
(
|
1310
|
+
o("div", rn, [
|
1311
|
+
o("div", an, [
|
1312
|
+
(K = (G = s.tableData) == null ? void 0 : G.filterState) != null && K.length ? (l(), _(b, {
|
1326
1313
|
key: 0,
|
1327
|
-
tabsList: (
|
1314
|
+
tabsList: (Q = s.tableData) == null ? void 0 : Q.filterState,
|
1328
1315
|
filterState: s.filterState,
|
1329
|
-
"onUpdate:filterState": e[0] || (e[0] = (
|
1316
|
+
"onUpdate:filterState": e[0] || (e[0] = (d) => s.filterState = d)
|
1330
1317
|
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
1331
|
-
o("div",
|
1318
|
+
o("div", cn, [
|
1332
1319
|
o("div", {
|
1333
1320
|
class: D([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1334
1321
|
}, [
|
1335
1322
|
o("div", {
|
1336
1323
|
class: D(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1337
1324
|
}, [
|
1338
|
-
|
1325
|
+
y(c, {
|
1339
1326
|
height: "14",
|
1340
1327
|
width: "14",
|
1341
1328
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
1342
1329
|
}),
|
1343
|
-
|
1330
|
+
y(k, {
|
1344
1331
|
modelValue: s.searchValue,
|
1345
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
1332
|
+
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
|
1346
1333
|
placeholder: "Пошук...",
|
1347
1334
|
clearable: !0,
|
1348
|
-
class: "[&>input]:py-[7px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
|
1335
|
+
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"
|
1349
1336
|
}, null, 8, ["modelValue"]),
|
1350
|
-
o("div",
|
1351
|
-
(
|
1337
|
+
o("div", un, [
|
1338
|
+
(X = s.tableData) != null && X.slots ? (l(), _(m, {
|
1352
1339
|
key: 0,
|
1353
|
-
slots: (
|
1340
|
+
slots: (Y = s.tableData) == null ? void 0 : Y.slots
|
1354
1341
|
}, null, 8, ["slots"])) : v("", !0),
|
1355
|
-
(
|
1342
|
+
(ee = (Z = s.tableData) == null ? void 0 : Z.filterCustom) != null && ee.length ? (l(), _(h, {
|
1356
1343
|
key: 1,
|
1357
|
-
customList: (
|
1344
|
+
customList: (te = s.tableData) == null ? void 0 : te.filterCustom,
|
1358
1345
|
filterCustom: s.filterCustom,
|
1359
|
-
"onUpdate:filterCustom": e[2] || (e[2] = (
|
1346
|
+
"onUpdate:filterCustom": e[2] || (e[2] = (d) => s.filterCustom = d)
|
1360
1347
|
}, null, 8, ["customList", "filterCustom"])) : v("", !0),
|
1361
|
-
|
1362
|
-
columns: (
|
1363
|
-
onUpdateColumns: e[3] || (e[3] = (
|
1348
|
+
y(w, {
|
1349
|
+
columns: (se = s.tableData) == null ? void 0 : se.columns,
|
1350
|
+
onUpdateColumns: e[3] || (e[3] = (d) => s.tableData.columns = d)
|
1364
1351
|
}, null, 8, ["columns"]),
|
1365
|
-
((
|
1352
|
+
((ne = s.tableData) == null ? void 0 : ne.export) !== !1 ? (l(), _(g, {
|
1366
1353
|
key: 2,
|
1367
1354
|
table: n.table,
|
1368
|
-
columns: (
|
1355
|
+
columns: (le = s.tableData) == null ? void 0 : le.columns,
|
1369
1356
|
page: s.page,
|
1370
1357
|
"filter-state": s.filterState,
|
1371
1358
|
"filter-custom": s.filterCustom,
|
1372
1359
|
filters: s.filters
|
1373
1360
|
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
|
1374
|
-
(
|
1361
|
+
(oe = s.filterScheme) != null && oe.length ? (l(), _(C, {
|
1375
1362
|
key: 3,
|
1376
1363
|
scheme: s.filterScheme,
|
1377
1364
|
onFilters: s.onFilters,
|
@@ -1379,10 +1366,10 @@ function In(t, e, n, a, s, r) {
|
|
1379
1366
|
onFilterChange: r.filterChange
|
1380
1367
|
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : v("", !0),
|
1381
1368
|
o("button", {
|
1382
|
-
onClick: e[4] || (e[4] = (...
|
1369
|
+
onClick: e[4] || (e[4] = (...d) => r.toggleCardInfo && r.toggleCardInfo(...d)),
|
1383
1370
|
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"
|
1384
1371
|
}, [
|
1385
|
-
|
1372
|
+
y(S, {
|
1386
1373
|
class: D({ "rotate-180 duration-300": !s.isVisibleCardInfo })
|
1387
1374
|
}, null, 8, ["class"])
|
1388
1375
|
])
|
@@ -1392,80 +1379,80 @@ function In(t, e, n, a, s, r) {
|
|
1392
1379
|
class: D(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1393
1380
|
}, [
|
1394
1381
|
o("div", {
|
1395
|
-
style:
|
1396
|
-
height: (
|
1382
|
+
style: Te({
|
1383
|
+
height: (ae = (re = s.tableData) == null ? void 0 : re.filterState) != null && ae.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
|
1397
1384
|
}),
|
1398
1385
|
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"
|
1399
1386
|
}, [
|
1400
|
-
o("div",
|
1401
|
-
r.isNoData ? (l(), _(Fe, { key: 1 })) : (l(), i("table",
|
1402
|
-
o("thead",
|
1403
|
-
o("tr",
|
1404
|
-
(l(!0), i($, null, V(r.columns, (
|
1405
|
-
key:
|
1406
|
-
style:
|
1407
|
-
width: r.rowWidth(
|
1408
|
-
textAlign:
|
1409
|
-
wordBreak:
|
1387
|
+
o("div", dn, [
|
1388
|
+
r.isNoData ? (l(), _(Fe, { key: 1 })) : (l(), i("table", pn, [
|
1389
|
+
o("thead", bn, [
|
1390
|
+
o("tr", hn, [
|
1391
|
+
(l(!0), i($, null, V(r.columns, (d) => (l(), _(q, {
|
1392
|
+
key: d.name,
|
1393
|
+
style: Te({
|
1394
|
+
width: r.rowWidth(d == null ? void 0 : d.name),
|
1395
|
+
textAlign: d == null ? void 0 : d.align,
|
1396
|
+
wordBreak: d == null ? void 0 : d.wrap
|
1410
1397
|
}),
|
1411
|
-
data:
|
1398
|
+
data: d,
|
1412
1399
|
activeColumn: s.activeColumn,
|
1413
1400
|
onChangeActive: r.changeActiveColumn
|
1414
1401
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1415
|
-
(
|
1416
|
-
(
|
1417
|
-
)) != null &&
|
1402
|
+
(ce = (ie = r.getActions) == null ? void 0 : ie.filter(
|
1403
|
+
(d) => d !== "add" && d !== "view"
|
1404
|
+
)) != null && ce.length ? (l(), i("th", fn)) : v("", !0)
|
1418
1405
|
])
|
1419
1406
|
]),
|
1420
|
-
o("tbody",
|
1421
|
-
(l(!0), i($, null, V((
|
1422
|
-
var ge, xe, ye, _e,
|
1407
|
+
o("tbody", mn, [
|
1408
|
+
(l(!0), i($, null, V((ue = s.tableData) == null ? void 0 : ue.rows, (d, qe) => {
|
1409
|
+
var me, ge, xe, ye, _e, ve, ke, we, Ce, $e;
|
1423
1410
|
return l(), i("tr", {
|
1424
1411
|
key: qe,
|
1425
1412
|
class: D({
|
1426
|
-
"bg-gray-50": ((
|
1413
|
+
"bg-gray-50": ((ge = (me = t.$route) == null ? void 0 : me.query) == null ? void 0 : ge.card) === (d == null ? void 0 : d.id)
|
1427
1414
|
})
|
1428
1415
|
}, [
|
1429
|
-
o("td",
|
1416
|
+
o("td", gn, [
|
1430
1417
|
o("button", {
|
1431
|
-
onClick: () => r.pushToCard(
|
1418
|
+
onClick: () => r.pushToCard(d == null ? void 0 : d.id),
|
1432
1419
|
class: D(["text-sm font-medium", [
|
1433
|
-
((
|
1420
|
+
((xe = s.tableData) == null ? void 0 : xe.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1434
1421
|
]])
|
1435
1422
|
}, [
|
1436
|
-
|
1437
|
-
row:
|
1423
|
+
y(P, {
|
1424
|
+
row: d,
|
1438
1425
|
column: r.columns[0],
|
1439
1426
|
table: n.table,
|
1440
1427
|
onUpdateTable: r.getTableData
|
1441
1428
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1442
|
-
], 10,
|
1429
|
+
], 10, xn)
|
1443
1430
|
]),
|
1444
|
-
(l(!0), i($, null, V((
|
1445
|
-
onClick: (
|
1431
|
+
(l(!0), i($, null, V((ye = r.columns) == null ? void 0 : ye.slice(1), (M) => (l(), i("td", {
|
1432
|
+
onClick: (Dn) => r.changeActiveCardInfo(d == null ? void 0 : d.id),
|
1446
1433
|
class: D(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": s.isVisibleCardInfo }]),
|
1447
1434
|
key: M.name
|
1448
1435
|
}, [
|
1449
|
-
|
1450
|
-
row:
|
1436
|
+
y(P, {
|
1437
|
+
row: d,
|
1451
1438
|
column: M,
|
1452
1439
|
table: n.table,
|
1453
1440
|
onUpdateTable: r.getTableData
|
1454
1441
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1455
|
-
], 10,
|
1456
|
-
(ve = (
|
1442
|
+
], 10, yn))), 128)),
|
1443
|
+
(ve = (_e = r.getActions) == null ? void 0 : _e.filter(
|
1457
1444
|
(M) => M !== "add" && M !== "view"
|
1458
1445
|
)) != null && ve.length ? (l(), i("td", {
|
1459
1446
|
key: 0,
|
1460
1447
|
class: D(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1461
|
-
"bg-gray-50": ((
|
1462
|
-
"bg-white": ((
|
1448
|
+
"bg-gray-50": ((we = (ke = t.$route) == null ? void 0 : ke.query) == null ? void 0 : we.card) === (d == null ? void 0 : d.id),
|
1449
|
+
"bg-white": (($e = (Ce = t.$route) == null ? void 0 : Ce.query) == null ? void 0 : $e.card) !== (d == null ? void 0 : d.id)
|
1463
1450
|
}])
|
1464
1451
|
}, [
|
1465
|
-
|
1452
|
+
y(Ve, {
|
1466
1453
|
actions: r.getActions,
|
1467
1454
|
isForm: r.isForm,
|
1468
|
-
item:
|
1455
|
+
item: d,
|
1469
1456
|
table: n.table,
|
1470
1457
|
onUpdateTable: r.getTableData
|
1471
1458
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
@@ -1473,30 +1460,30 @@ function In(t, e, n, a, s, r) {
|
|
1473
1460
|
], 2);
|
1474
1461
|
}), 128))
|
1475
1462
|
]),
|
1476
|
-
|
1463
|
+
y(De, {
|
1477
1464
|
columns: r.columns,
|
1478
|
-
agg: (
|
1465
|
+
agg: (de = s.tableData) == null ? void 0 : de.agg
|
1479
1466
|
}, null, 8, ["columns", "agg"])
|
1480
1467
|
]))
|
1481
1468
|
])
|
1482
1469
|
], 4)
|
1483
1470
|
], 2),
|
1484
|
-
o("div",
|
1485
|
-
o("div",
|
1486
|
-
o("p",
|
1487
|
-
o("span",
|
1488
|
-
j(I(s.filters || s.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((
|
1489
|
-
s.filters || s.searchValue ? (l(), i("span",
|
1471
|
+
o("div", _n, [
|
1472
|
+
o("div", vn, [
|
1473
|
+
o("p", kn, [
|
1474
|
+
o("span", wn, [
|
1475
|
+
j(I(s.filters || s.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((pe = s.tableData) == null ? void 0 : pe.count) || "0 ") + " ", 1),
|
1476
|
+
s.filters || s.searchValue ? (l(), i("span", Cn, " з")) : v("", !0)
|
1490
1477
|
]),
|
1491
|
-
s.filters || s.searchValue ? (l(), i("span",
|
1478
|
+
s.filters || s.searchValue ? (l(), i("span", $n, I(" " + ((be = s.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
|
1492
1479
|
])
|
1493
1480
|
]),
|
1494
|
-
Math.ceil(((
|
1481
|
+
Math.ceil(((he = s.tableData) == null ? void 0 : he.filtered) / s.limit) > 1 ? (l(), _(je, {
|
1495
1482
|
key: 0,
|
1496
1483
|
goTo: !1,
|
1497
1484
|
class: "justify-end",
|
1498
1485
|
"default-page": parseInt(r.defaultPage),
|
1499
|
-
total: ((
|
1486
|
+
total: ((fe = s.tableData) == null ? void 0 : fe.filtered) || 0,
|
1500
1487
|
pageSize: parseInt(s.limit),
|
1501
1488
|
onPageChange: r.handlePageChange,
|
1502
1489
|
pageSizes: [10, 16, 20],
|
@@ -1505,14 +1492,14 @@ function In(t, e, n, a, s, r) {
|
|
1505
1492
|
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : v("", !0)
|
1506
1493
|
])
|
1507
1494
|
], 2),
|
1508
|
-
|
1495
|
+
y(N, { name: "slide-fade" }, {
|
1509
1496
|
default: A(() => {
|
1510
|
-
var
|
1497
|
+
var d;
|
1511
1498
|
return [
|
1512
1499
|
s.isVisibleCardInfo ? (l(), _(Me, {
|
1513
1500
|
key: 0,
|
1514
1501
|
table: n.table,
|
1515
|
-
columns: (
|
1502
|
+
columns: (d = s.tableData) == null ? void 0 : d.columns,
|
1516
1503
|
row: r.activeCardRow
|
1517
1504
|
}, null, 8, ["table", "columns", "row"])) : v("", !0)
|
1518
1505
|
];
|
@@ -1524,8 +1511,8 @@ function In(t, e, n, a, s, r) {
|
|
1524
1511
|
])
|
1525
1512
|
]);
|
1526
1513
|
}
|
1527
|
-
const
|
1528
|
-
components: { AdminTable:
|
1514
|
+
const Tn = /* @__PURE__ */ T(sn, [["render", An], ["__scopeId", "data-v-839bb4c0"]]), In = {
|
1515
|
+
components: { AdminTable: Tn },
|
1529
1516
|
data() {
|
1530
1517
|
return {
|
1531
1518
|
table: !1,
|
@@ -1537,7 +1524,7 @@ const Sn = /* @__PURE__ */ T(ln, [["render", In], ["__scopeId", "data-v-e94dc211
|
|
1537
1524
|
$route: {
|
1538
1525
|
async handler() {
|
1539
1526
|
var t;
|
1540
|
-
(t =
|
1527
|
+
(t = Ae) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1541
1528
|
},
|
1542
1529
|
deep: !0
|
1543
1530
|
},
|
@@ -1558,7 +1545,7 @@ const Sn = /* @__PURE__ */ T(ln, [["render", In], ["__scopeId", "data-v-e94dc211
|
|
1558
1545
|
},
|
1559
1546
|
async checkPageType() {
|
1560
1547
|
var a, s;
|
1561
|
-
const t = this.flattenMenu(
|
1548
|
+
const t = this.flattenMenu(Ae.value);
|
1562
1549
|
t != null && t.length || this.$router.replace("/404");
|
1563
1550
|
const e = t == null ? void 0 : t.find((r) => {
|
1564
1551
|
var u, f;
|
@@ -1580,8 +1567,8 @@ const Sn = /* @__PURE__ */ T(ln, [["render", In], ["__scopeId", "data-v-e94dc211
|
|
1580
1567
|
}
|
1581
1568
|
}
|
1582
1569
|
}
|
1583
|
-
},
|
1584
|
-
function
|
1570
|
+
}, Sn = ["innerHTML"];
|
1571
|
+
function Vn(t, e, n, a, s, r) {
|
1585
1572
|
const u = p("AdminTable");
|
1586
1573
|
return s.table ? (l(), _(u, {
|
1587
1574
|
key: 0,
|
@@ -1592,9 +1579,9 @@ function Fn(t, e, n, a, s, r) {
|
|
1592
1579
|
class: "w-full bg-gray-50",
|
1593
1580
|
style: { height: "calc(100vh - 120px)" },
|
1594
1581
|
innerHTML: s.interface
|
1595
|
-
}, null, 8,
|
1582
|
+
}, null, 8, Sn));
|
1596
1583
|
}
|
1597
|
-
const
|
1584
|
+
const Mn = /* @__PURE__ */ T(In, [["render", Vn]]);
|
1598
1585
|
export {
|
1599
|
-
|
1586
|
+
Mn as default
|
1600
1587
|
};
|