@opengis/admin 0.2.113 → 0.2.115
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-BH6RXRcE.js → add-page-Cw8du65u.js} +1 -1
- package/dist/{admin-interface-crBtXD5Z.js → admin-interface-vWqlFsk0.js} +110 -108
- package/dist/{admin-view-BlFQ5MAm.js → admin-view-BBgd4w7j.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +73 -73
- package/dist/{card-view-CQBLU6QA.js → card-view-6INGfYSE.js} +1 -1
- package/dist/{edit-page-8HoFhOIT.js → edit-page-BNXUpOAj.js} +1 -1
- package/dist/{import-file-BJbIy5cf.js → import-file-C9mMGOua.js} +11132 -11120
- package/dist/{profile-page-BYj-liZM.js → profile-page-BJe4fPmp.js} +1 -1
- package/dist/style.css +1 -1
- package/module/settings/card/admin.users.table/general_info.hbs +1 -1
- package/module/settings/form/admin.users_edit.form.json +145 -0
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as T, g as Re, h as Je, i as Ge, e as F, I as Le, j as Me, k as B, A as N, V as Ke, l as Qe, m as Xe, n as Ye, o as Ze, p as et, q as tt, a as st, r as nt, u as je, s as rt } from "./import-file-
|
|
2
|
-
import { openBlock as o, createElementBlock as i, createTextVNode as P, toDisplayString as $, createElementVNode as r, normalizeClass as S, createCommentVNode as v, resolveComponent as b, Fragment as C, createVNode as
|
|
1
|
+
import { _ as T, g as Re, h as Je, i as Ge, e as F, I as Le, j as Me, k as B, A as N, V as Ke, l as Qe, m as Xe, n as Ye, o as Ze, p as et, q as tt, a as st, r as nt, u as je, s as rt } from "./import-file-C9mMGOua.js";
|
|
2
|
+
import { openBlock as o, createElementBlock as i, createTextVNode as P, toDisplayString as $, createElementVNode as r, normalizeClass as S, createCommentVNode as v, resolveComponent as b, Fragment as C, createVNode as m, withCtx as I, createBlock as k, renderList as D, withModifiers as lt, withDirectives as M, vModelRadio as ot, createStaticVNode as at, vModelCheckbox as it, Transition as z, vModelText as dt, renderSlot as ut, vShow as U, Teleport as ct, getCurrentInstance as ze, ref as q, resolveDynamicComponent as O, defineComponent as pt, normalizeStyle as Fe } from "vue";
|
|
3
3
|
const bt = {
|
|
4
4
|
data() {
|
|
5
5
|
return {
|
|
@@ -61,11 +61,11 @@ const bt = {
|
|
|
61
61
|
}, ht = {
|
|
62
62
|
scope: "col",
|
|
63
63
|
class: "pe-2 py-1 text-start"
|
|
64
|
-
}, ft = { class: "w-[24px]" },
|
|
64
|
+
}, ft = { class: "w-[24px]" }, gt = {
|
|
65
65
|
key: 1,
|
|
66
66
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
|
|
67
67
|
};
|
|
68
|
-
function
|
|
68
|
+
function mt(t, e, n, a, s, l) {
|
|
69
69
|
return o(), i("th", ht, [
|
|
70
70
|
l.getVisibleIcon ? (o(), i("button", {
|
|
71
71
|
key: 0,
|
|
@@ -92,10 +92,10 @@ function gt(t, e, n, a, s, l) {
|
|
|
92
92
|
r("path", { d: "M12 19V5" }, null, -1)
|
|
93
93
|
]), 2)) : v("", !0)
|
|
94
94
|
])
|
|
95
|
-
])) : (o(), i("p",
|
|
95
|
+
])) : (o(), i("p", gt, $(l.label), 1))
|
|
96
96
|
]);
|
|
97
97
|
}
|
|
98
|
-
const xt = /* @__PURE__ */ T(bt, [["render",
|
|
98
|
+
const xt = /* @__PURE__ */ T(bt, [["render", mt]]), yt = {
|
|
99
99
|
components: {
|
|
100
100
|
IconMore: Re,
|
|
101
101
|
IconDelete: Je,
|
|
@@ -183,32 +183,32 @@ const xt = /* @__PURE__ */ T(bt, [["render", gt]]), yt = {
|
|
|
183
183
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
|
184
184
|
}, Tt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
|
185
185
|
function At(t, e, n, a, s, l) {
|
|
186
|
-
const c = b("IconMore"),
|
|
186
|
+
const c = b("IconMore"), f = b("IconEdit"), d = b("router-link"), h = b("IconDelete"), u = b("VsPopover"), _ = b("VsConfirm");
|
|
187
187
|
return o(), i(C, null, [
|
|
188
188
|
r("div", kt, [
|
|
189
|
-
|
|
189
|
+
m(u, {
|
|
190
190
|
trigger: "click",
|
|
191
191
|
placement: "bottom-left"
|
|
192
192
|
}, {
|
|
193
193
|
reference: I(() => [
|
|
194
194
|
r("button", vt, [
|
|
195
|
-
|
|
195
|
+
m(c, {
|
|
196
196
|
height: "16",
|
|
197
197
|
width: "16"
|
|
198
198
|
})
|
|
199
199
|
])
|
|
200
200
|
]),
|
|
201
201
|
default: I(() => {
|
|
202
|
-
var x,
|
|
202
|
+
var x, g, w, y, A;
|
|
203
203
|
return [
|
|
204
204
|
r("div", _t, [
|
|
205
205
|
(x = n.actions) != null && x.includes("edit") && n.isForm ? (o(), k(d, {
|
|
206
206
|
key: 0,
|
|
207
|
-
to: `/edit?table=${(w = (
|
|
207
|
+
to: `/edit?table=${(w = (g = t.$route) == null ? void 0 : g.params) == null ? void 0 : w.catchAll}&id=${(y = n.item) == null ? void 0 : y.id}`,
|
|
208
208
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
|
209
209
|
}, {
|
|
210
210
|
default: I(() => [
|
|
211
|
-
|
|
211
|
+
m(f, { color: "#000" }),
|
|
212
212
|
e[4] || (e[4] = P(" Редагувати "))
|
|
213
213
|
]),
|
|
214
214
|
_: 1
|
|
@@ -218,7 +218,7 @@ function At(t, e, n, a, s, l) {
|
|
|
218
218
|
onClick: (E) => l.customButtonAction(V),
|
|
219
219
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
|
220
220
|
}, [
|
|
221
|
-
|
|
221
|
+
m(h, { class: "opacity-0" }),
|
|
222
222
|
r("span", Ct, $(V == null ? void 0 : V.label), 1)
|
|
223
223
|
], 8, wt))), 128)),
|
|
224
224
|
n.isForm ? (o(), i("div", $t)) : v("", !0),
|
|
@@ -227,7 +227,7 @@ function At(t, e, n, a, s, l) {
|
|
|
227
227
|
onClick: e[0] || (e[0] = lt((...V) => l.openConfirm && l.openConfirm(...V), ["stop"])),
|
|
228
228
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
|
229
229
|
}, [
|
|
230
|
-
|
|
230
|
+
m(h),
|
|
231
231
|
e[5] || (e[5] = r("span", { class: "text-gray-800" }, "Видалити", -1))
|
|
232
232
|
])) : v("", !0)
|
|
233
233
|
])
|
|
@@ -236,7 +236,7 @@ function At(t, e, n, a, s, l) {
|
|
|
236
236
|
_: 1
|
|
237
237
|
})
|
|
238
238
|
]),
|
|
239
|
-
|
|
239
|
+
m(_, {
|
|
240
240
|
visible: s.isDeleteConfirm,
|
|
241
241
|
"onUpdate:visible": e[3] || (e[3] = (x) => s.isDeleteConfirm = x),
|
|
242
242
|
size: "small",
|
|
@@ -422,19 +422,19 @@ const Oe = /* @__PURE__ */ T(Pt, [["render", Ft]]), Lt = {
|
|
|
422
422
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
|
423
423
|
};
|
|
424
424
|
function Kt(t, e, n, a, s, l) {
|
|
425
|
-
const c = b("IconExport"),
|
|
425
|
+
const c = b("IconExport"), f = b("IconSuccess"), d = b("VsCheckbox"), h = b("VsDialog");
|
|
426
426
|
return o(), i(C, null, [
|
|
427
427
|
r("button", {
|
|
428
428
|
onClick: e[0] || (e[0] = (u) => s.isOpen = !0),
|
|
429
429
|
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"
|
|
430
430
|
}, [
|
|
431
|
-
|
|
431
|
+
m(c, {
|
|
432
432
|
height: "16",
|
|
433
433
|
width: "16"
|
|
434
434
|
}),
|
|
435
435
|
e[7] || (e[7] = P(" Експорт "))
|
|
436
436
|
]),
|
|
437
|
-
|
|
437
|
+
m(h, {
|
|
438
438
|
visible: s.isOpen,
|
|
439
439
|
"onUpdate:visible": e[6] || (e[6] = (u) => s.isOpen = u),
|
|
440
440
|
title: "Експорт таблиці",
|
|
@@ -468,7 +468,7 @@ function Kt(t, e, n, a, s, l) {
|
|
|
468
468
|
]),
|
|
469
469
|
default: I(() => [
|
|
470
470
|
s.isSuccessTemplate ? (o(), i("div", Mt, [
|
|
471
|
-
|
|
471
|
+
m(f, {
|
|
472
472
|
height: "100",
|
|
473
473
|
width: "100",
|
|
474
474
|
class: "text-green-200 mb-[20px]"
|
|
@@ -497,7 +497,7 @@ function Kt(t, e, n, a, s, l) {
|
|
|
497
497
|
key: _,
|
|
498
498
|
style: { width: "calc((100% - 10px) / 2)" }
|
|
499
499
|
}, [
|
|
500
|
-
|
|
500
|
+
m(d, {
|
|
501
501
|
class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
|
|
502
502
|
modelValue: s.cols,
|
|
503
503
|
"onUpdate:modelValue": e[1] || (e[1] = (x) => s.cols = x),
|
|
@@ -574,19 +574,19 @@ const Qt = /* @__PURE__ */ T(Lt, [["render", Kt]]), Xt = {
|
|
|
574
574
|
class: "w-[400px] h-[400px] border ml-4 flex items-center justify-center text-gray-600 text-lg font-medium"
|
|
575
575
|
}, ls = ["src"], os = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
|
|
576
576
|
function as(t, e, n, a, s, l) {
|
|
577
|
-
const c = b("IconExport"),
|
|
577
|
+
const c = b("IconExport"), f = b("VsDialog");
|
|
578
578
|
return o(), i(C, null, [
|
|
579
579
|
r("button", {
|
|
580
580
|
onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
|
|
581
581
|
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"
|
|
582
582
|
}, [
|
|
583
|
-
|
|
583
|
+
m(c, {
|
|
584
584
|
height: "16",
|
|
585
585
|
width: "16"
|
|
586
586
|
}),
|
|
587
587
|
e[9] || (e[9] = P(" Друк "))
|
|
588
588
|
]),
|
|
589
|
-
|
|
589
|
+
m(f, {
|
|
590
590
|
visible: s.isOpen,
|
|
591
591
|
"onUpdate:visible": [
|
|
592
592
|
e[8] || (e[8] = (d) => s.isOpen = d),
|
|
@@ -709,12 +709,12 @@ const ps = /* @__PURE__ */ T(ds, [["render", cs]]), bs = {
|
|
|
709
709
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
|
710
710
|
}
|
|
711
711
|
}, hs = { 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" }, fs = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
|
712
|
-
function
|
|
713
|
-
var
|
|
712
|
+
function gs(t, e, n, a, s, l) {
|
|
713
|
+
var f, d;
|
|
714
714
|
const c = b("IconCheck2");
|
|
715
715
|
return o(), i("div", hs, [
|
|
716
716
|
r("label", fs, [
|
|
717
|
-
P($(((
|
|
717
|
+
P($(((f = n.column) == null ? void 0 : f.ua) || ((d = n.column) == null ? void 0 : d.title)) + " ", 1),
|
|
718
718
|
M(r("input", {
|
|
719
719
|
type: "checkbox",
|
|
720
720
|
"onUpdate:modelValue": e[0] || (e[0] = (h) => s.value = h),
|
|
@@ -725,7 +725,7 @@ function ms(t, e, n, a, s, l) {
|
|
|
725
725
|
r("span", {
|
|
726
726
|
class: S(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-blue-600 border-0" : "bg-white"]])
|
|
727
727
|
}, [
|
|
728
|
-
|
|
728
|
+
m(c, {
|
|
729
729
|
height: "12",
|
|
730
730
|
width: "12"
|
|
731
731
|
})
|
|
@@ -733,8 +733,8 @@ function ms(t, e, n, a, s, l) {
|
|
|
733
733
|
])
|
|
734
734
|
]);
|
|
735
735
|
}
|
|
736
|
-
const
|
|
737
|
-
components: { IconColumns: ps, AdminTableColumnsHiddenItem:
|
|
736
|
+
const ms = /* @__PURE__ */ T(bs, [["render", gs]]), xs = {
|
|
737
|
+
components: { IconColumns: ps, AdminTableColumnsHiddenItem: ms },
|
|
738
738
|
emits: ["update-columns"],
|
|
739
739
|
props: { columns: Array },
|
|
740
740
|
data() {
|
|
@@ -748,8 +748,8 @@ const gs = /* @__PURE__ */ T(bs, [["render", ms]]), xs = {
|
|
|
748
748
|
var t;
|
|
749
749
|
return (t = this.columns) == null ? void 0 : t.filter(
|
|
750
750
|
(e) => {
|
|
751
|
-
var n, a, s, l, c,
|
|
752
|
-
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((a = this.searchValue) == null ? void 0 : a.toLowerCase())) || ((
|
|
751
|
+
var n, a, s, l, c, f;
|
|
752
|
+
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((a = this.searchValue) == null ? void 0 : a.toLowerCase())) || ((f = (l = e == null ? void 0 : e.title) == null ? void 0 : l.toLowerCase()) == null ? void 0 : f.includes((c = this.searchValue) == null ? void 0 : c.toLowerCase()));
|
|
753
753
|
}
|
|
754
754
|
);
|
|
755
755
|
}
|
|
@@ -784,18 +784,18 @@ const gs = /* @__PURE__ */ T(bs, [["render", ms]]), xs = {
|
|
|
784
784
|
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
|
785
785
|
};
|
|
786
786
|
function Ts(t, e, n, a, s, l) {
|
|
787
|
-
const c = b("IconColumns"),
|
|
787
|
+
const c = b("IconColumns"), f = b("AdminTableColumnsHiddenItem");
|
|
788
788
|
return o(), i("div", ys, [
|
|
789
789
|
r("button", {
|
|
790
790
|
onClick: e[0] || (e[0] = (...d) => l.toggleVisible && l.toggleVisible(...d)),
|
|
791
791
|
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"
|
|
792
792
|
}, [
|
|
793
|
-
|
|
793
|
+
m(c, {
|
|
794
794
|
height: "20",
|
|
795
795
|
width: "16"
|
|
796
796
|
})
|
|
797
797
|
]),
|
|
798
|
-
|
|
798
|
+
m(z, { name: "fade" }, {
|
|
799
799
|
default: I(() => {
|
|
800
800
|
var d, h;
|
|
801
801
|
return [
|
|
@@ -815,7 +815,7 @@ function Ts(t, e, n, a, s, l) {
|
|
|
815
815
|
r("div", _s, [
|
|
816
816
|
(d = l.filteredColumn) != null && d.length ? (o(), i("span", ws, " Оберіть колонки для відображення ")) : v("", !0),
|
|
817
817
|
r("div", Cs, [
|
|
818
|
-
(h = l.filteredColumn) != null && h.length ? (o(!0), i(C, { key: 0 }, D(l.filteredColumn, (u, _) => (o(), k(
|
|
818
|
+
(h = l.filteredColumn) != null && h.length ? (o(!0), i(C, { key: 0 }, D(l.filteredColumn, (u, _) => (o(), k(f, {
|
|
819
819
|
key: _,
|
|
820
820
|
column: u,
|
|
821
821
|
onUpdateColumn: l.updateColumn
|
|
@@ -860,7 +860,7 @@ const Ds = /* @__PURE__ */ T(Ss, [["render", Vs]]), Ps = {
|
|
|
860
860
|
}
|
|
861
861
|
}, js = { class: "hs-accordion" }, Fs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, Ls = { class: "text-sm font-medium" }, Ms = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
|
862
862
|
function zs(t, e, n, a, s, l) {
|
|
863
|
-
const c = b("IconPlus"),
|
|
863
|
+
const c = b("IconPlus"), f = b("IconMinus");
|
|
864
864
|
return o(), i("div", null, [
|
|
865
865
|
r("div", null, [
|
|
866
866
|
r("div", js, [
|
|
@@ -875,13 +875,13 @@ function zs(t, e, n, a, s, l) {
|
|
|
875
875
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
|
876
876
|
onClick: e[1] || (e[1] = (d) => s.expanded = !s.expanded)
|
|
877
877
|
}, [
|
|
878
|
-
s.expanded ? (o(), k(
|
|
878
|
+
s.expanded ? (o(), k(f, {
|
|
879
879
|
key: 1,
|
|
880
880
|
width: "14"
|
|
881
881
|
})) : (o(), k(c, { key: 0 }))
|
|
882
882
|
])
|
|
883
883
|
]),
|
|
884
|
-
|
|
884
|
+
m(z, { name: "fade" }, {
|
|
885
885
|
default: I(() => [
|
|
886
886
|
M(r("div", Ms, [
|
|
887
887
|
ut(t.$slots, "default", {}, void 0, !0)
|
|
@@ -913,15 +913,15 @@ const qs = /* @__PURE__ */ T(Ps, [["render", zs], ["__scopeId", "data-v-c6318482
|
|
|
913
913
|
style: { height: "calc(100vh - 360px)" }
|
|
914
914
|
}, Us = { class: "flow-root mt-[10px]" }, Es = { class: "-my-3 text-sm divide-y divide-gray-100" }, Hs = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Ws = { class: "font-medium text-black w-[50%]" }, Rs = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Js = { class: "table-info-card" }, Gs = { class: "table-info-card" };
|
|
915
915
|
function Ks(t, e, n, a, s, l) {
|
|
916
|
-
var x,
|
|
917
|
-
const c = b("AdminComponentIs"),
|
|
916
|
+
var x, g, w;
|
|
917
|
+
const c = b("AdminComponentIs"), f = b("AdminTree"), d = b("VsWidgetMap"), h = b("VsNoData"), u = b("VsWidgetComments"), _ = b("VsWidgetFileList");
|
|
918
918
|
return o(), i("div", Bs, [
|
|
919
919
|
e[0] || (e[0] = r("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
|
920
920
|
r("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
|
921
921
|
], -1)),
|
|
922
922
|
r("div", Ns, [
|
|
923
|
-
(
|
|
924
|
-
n.row ? (o(), k(
|
|
923
|
+
(g = (x = t.$route) == null ? void 0 : x.query) != null && g.card ? (o(), i(C, { key: 0 }, [
|
|
924
|
+
n.row ? (o(), k(f, {
|
|
925
925
|
key: 0,
|
|
926
926
|
defaultValue: !0,
|
|
927
927
|
title: "Основна інформація",
|
|
@@ -933,7 +933,7 @@ function Ks(t, e, n, a, s, l) {
|
|
|
933
933
|
(o(!0), i(C, null, D(n.columns, (y) => (o(), i("div", Hs, [
|
|
934
934
|
r("dt", Ws, $((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
|
|
935
935
|
r("dd", Rs, [
|
|
936
|
-
|
|
936
|
+
m(c, {
|
|
937
937
|
row: n.row,
|
|
938
938
|
column: y,
|
|
939
939
|
table: n.table
|
|
@@ -945,7 +945,7 @@ function Ks(t, e, n, a, s, l) {
|
|
|
945
945
|
]),
|
|
946
946
|
_: 1
|
|
947
947
|
})) : v("", !0),
|
|
948
|
-
(w = n.row) != null && w.geom ? (o(), k(
|
|
948
|
+
(w = n.row) != null && w.geom ? (o(), k(f, {
|
|
949
949
|
key: 1,
|
|
950
950
|
title: "Карта",
|
|
951
951
|
class: "border-b p-[10px] py-[16px]"
|
|
@@ -967,7 +967,7 @@ function Ks(t, e, n, a, s, l) {
|
|
|
967
967
|
}),
|
|
968
968
|
_: 1
|
|
969
969
|
})) : v("", !0),
|
|
970
|
-
|
|
970
|
+
m(f, {
|
|
971
971
|
title: "Коментарі",
|
|
972
972
|
class: "border-b p-[10px] py-[16px]"
|
|
973
973
|
}, {
|
|
@@ -975,7 +975,7 @@ function Ks(t, e, n, a, s, l) {
|
|
|
975
975
|
var y;
|
|
976
976
|
return [
|
|
977
977
|
r("div", Js, [
|
|
978
|
-
|
|
978
|
+
m(u, {
|
|
979
979
|
id: (y = n.row) == null ? void 0 : y.id
|
|
980
980
|
}, null, 8, ["id"])
|
|
981
981
|
])
|
|
@@ -983,7 +983,7 @@ function Ks(t, e, n, a, s, l) {
|
|
|
983
983
|
}),
|
|
984
984
|
_: 1
|
|
985
985
|
}),
|
|
986
|
-
|
|
986
|
+
m(f, {
|
|
987
987
|
title: "Файли",
|
|
988
988
|
class: "border-b p-[10px] py-[16px]"
|
|
989
989
|
}, {
|
|
@@ -1030,20 +1030,20 @@ const Qs = /* @__PURE__ */ T(Os, [["render", Ks]]), Xs = {
|
|
|
1030
1030
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
|
1031
1031
|
}, Zs = { 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" };
|
|
1032
1032
|
function en(t, e, n, a, s, l) {
|
|
1033
|
-
const c = b("IconFilter"),
|
|
1033
|
+
const c = b("IconFilter"), f = b("VsFilter");
|
|
1034
1034
|
return o(), i(C, null, [
|
|
1035
1035
|
r("button", {
|
|
1036
1036
|
onClick: e[0] || (e[0] = (d) => s.isFilters = !s.isFilters),
|
|
1037
1037
|
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"
|
|
1038
1038
|
}, [
|
|
1039
|
-
|
|
1039
|
+
m(c, {
|
|
1040
1040
|
height: "16",
|
|
1041
1041
|
width: "16"
|
|
1042
1042
|
}),
|
|
1043
1043
|
e[4] || (e[4] = P(" Фільтри ")),
|
|
1044
1044
|
n.onFilters ? (o(), i("span", Ys, $(n.onFilters), 1)) : v("", !0)
|
|
1045
1045
|
]),
|
|
1046
|
-
|
|
1046
|
+
m(z, { name: "fade" }, {
|
|
1047
1047
|
default: I(() => {
|
|
1048
1048
|
var d;
|
|
1049
1049
|
return [
|
|
@@ -1054,7 +1054,7 @@ function en(t, e, n, a, s, l) {
|
|
|
1054
1054
|
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)]"
|
|
1055
1055
|
}, [
|
|
1056
1056
|
r("div", Zs, [
|
|
1057
|
-
(d = n.scheme) != null && d.length ? (o(), k(
|
|
1057
|
+
(d = n.scheme) != null && d.length ? (o(), k(f, {
|
|
1058
1058
|
key: 0,
|
|
1059
1059
|
ref: "filter",
|
|
1060
1060
|
scheme: n.scheme,
|
|
@@ -1091,7 +1091,7 @@ const tn = /* @__PURE__ */ T(Xs, [["render", en]]), sn = {
|
|
|
1091
1091
|
function ln(t, e, n, a, s, l) {
|
|
1092
1092
|
return o(), i("nav", nn, [
|
|
1093
1093
|
(o(!0), i(C, null, D(n.tabsList, (c) => (o(), i("button", {
|
|
1094
|
-
onClick: (
|
|
1094
|
+
onClick: (f) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
|
1095
1095
|
class: S(["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", {
|
|
1096
1096
|
" font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (c == null ? void 0 : c.name) === n.filterState
|
|
1097
1097
|
}])
|
|
@@ -1121,16 +1121,16 @@ function un(t, e, n, a, s, l) {
|
|
|
1121
1121
|
const cn = /* @__PURE__ */ T(an, [["render", un]]), pn = {
|
|
1122
1122
|
components: { IconFilter2: cn, IconCheck2: Me },
|
|
1123
1123
|
props: { filterCustom: String, customList: Array }
|
|
1124
|
-
}, bn = { 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" }, hn = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, fn = ["onClick"],
|
|
1125
|
-
function
|
|
1126
|
-
const c = b("IconFilter2"),
|
|
1124
|
+
}, bn = { 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" }, hn = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, fn = ["onClick"], gn = { class: "text-sm text-gray-800" };
|
|
1125
|
+
function mn(t, e, n, a, s, l) {
|
|
1126
|
+
const c = b("IconFilter2"), f = b("IconCheck2"), d = b("VsPopover");
|
|
1127
1127
|
return o(), k(d, {
|
|
1128
1128
|
ref: "popover",
|
|
1129
1129
|
placement: "bottom"
|
|
1130
1130
|
}, {
|
|
1131
1131
|
reference: I(() => [
|
|
1132
1132
|
r("button", bn, [
|
|
1133
|
-
|
|
1133
|
+
m(c, {
|
|
1134
1134
|
height: "20",
|
|
1135
1135
|
width: "20"
|
|
1136
1136
|
})
|
|
@@ -1146,8 +1146,8 @@ function gn(t, e, n, a, s, l) {
|
|
|
1146
1146
|
key: u,
|
|
1147
1147
|
class: S(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (h == null ? void 0 : h.name) }])
|
|
1148
1148
|
}, [
|
|
1149
|
-
r("span",
|
|
1150
|
-
n.filterCustom === (h == null ? void 0 : h.name) ? (o(), k(
|
|
1149
|
+
r("span", gn, $(h == null ? void 0 : h.label), 1),
|
|
1150
|
+
n.filterCustom === (h == null ? void 0 : h.name) ? (o(), k(f, {
|
|
1151
1151
|
key: 0,
|
|
1152
1152
|
class: "ml-auto size-3 shrink-0"
|
|
1153
1153
|
})) : v("", !0)
|
|
@@ -1164,16 +1164,16 @@ function gn(t, e, n, a, s, l) {
|
|
|
1164
1164
|
_: 1
|
|
1165
1165
|
}, 512);
|
|
1166
1166
|
}
|
|
1167
|
-
const xn = /* @__PURE__ */ T(pn, [["render",
|
|
1167
|
+
const xn = /* @__PURE__ */ T(pn, [["render", mn]]), yn = { class: "flex items-center gap-x-2" }, kn = {
|
|
1168
1168
|
__name: "admin-table-custom-buttons",
|
|
1169
1169
|
props: {
|
|
1170
1170
|
slots: Object
|
|
1171
1171
|
},
|
|
1172
1172
|
setup(t) {
|
|
1173
|
-
var
|
|
1174
|
-
const { asyncTemplateSlot: e } = (_ = (u = (h = (d = (
|
|
1175
|
-
var x,
|
|
1176
|
-
if ((x = s.slots) != null && x.panelLeft || (a.value = "div"), (w = (
|
|
1173
|
+
var f, d, h, u, _;
|
|
1174
|
+
const { asyncTemplateSlot: e } = (_ = (u = (h = (d = (f = ze()) == null ? void 0 : f.appContext) == null ? void 0 : d.app) == null ? void 0 : h.config) == null ? void 0 : u.globalProperties) == null ? void 0 : _.utils, n = q(""), a = q(""), s = t, l = () => {
|
|
1175
|
+
var x, g, w, y, A;
|
|
1176
|
+
if ((x = s.slots) != null && x.panelLeft || (a.value = "div"), (w = (g = s.slots) == null ? void 0 : g.panelLeft) != null && w.includes("<")) {
|
|
1177
1177
|
const V = e("PanelLeft", (y = s.slots) == null ? void 0 : y.panelLeft, [
|
|
1178
1178
|
"name"
|
|
1179
1179
|
]);
|
|
@@ -1181,8 +1181,8 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
|
1181
1181
|
} else
|
|
1182
1182
|
a.value = (A = s.slots) == null ? void 0 : A.panelLeft;
|
|
1183
1183
|
}, c = () => {
|
|
1184
|
-
var x,
|
|
1185
|
-
if ((x = s.slots) != null && x.panelRight || (n.value = "div"), (w = (
|
|
1184
|
+
var x, g, w, y, A;
|
|
1185
|
+
if ((x = s.slots) != null && x.panelRight || (n.value = "div"), (w = (g = s.slots) == null ? void 0 : g.panelRight) != null && w.includes("<")) {
|
|
1186
1186
|
const V = e("PanelRight", (y = s.slots) == null ? void 0 : y.panelRight, [
|
|
1187
1187
|
"name"
|
|
1188
1188
|
]);
|
|
@@ -1190,7 +1190,7 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
|
1190
1190
|
} else
|
|
1191
1191
|
n.value = (A = s.slots) == null ? void 0 : A.panelRight;
|
|
1192
1192
|
};
|
|
1193
|
-
return l(), c(), (x,
|
|
1193
|
+
return l(), c(), (x, g) => (o(), i("div", yn, [
|
|
1194
1194
|
(o(), k(O(a.value))),
|
|
1195
1195
|
(o(), k(O(n.value)))
|
|
1196
1196
|
]));
|
|
@@ -1208,12 +1208,12 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
|
1208
1208
|
slots: Object
|
|
1209
1209
|
},
|
|
1210
1210
|
setup(t) {
|
|
1211
|
-
var l, c,
|
|
1212
|
-
const { asyncTemplateSlot: e } = (h = (d = (
|
|
1211
|
+
var l, c, f, d, h;
|
|
1212
|
+
const { asyncTemplateSlot: e } = (h = (d = (f = (c = (l = ze()) == null ? void 0 : l.appContext) == null ? void 0 : c.app) == null ? void 0 : f.config) == null ? void 0 : d.globalProperties) == null ? void 0 : h.utils, n = q(""), a = t;
|
|
1213
1213
|
return (() => {
|
|
1214
|
-
var u, _, x,
|
|
1214
|
+
var u, _, x, g, w;
|
|
1215
1215
|
if ((u = a.slots) != null && u.addButton || (n.value = "div"), (x = (_ = a.slots) == null ? void 0 : _.addButton) != null && x.includes("<")) {
|
|
1216
|
-
const y = e("addButton", (
|
|
1216
|
+
const y = e("addButton", (g = a.slots) == null ? void 0 : g.addButton, [
|
|
1217
1217
|
"IconPlus"
|
|
1218
1218
|
]);
|
|
1219
1219
|
n.value = y;
|
|
@@ -1245,7 +1245,7 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
|
1245
1245
|
key: a == null ? void 0 : a.name
|
|
1246
1246
|
}, [
|
|
1247
1247
|
(s = t.agg) != null && s[a == null ? void 0 : a.name] ? (o(), i("td", wn, [
|
|
1248
|
-
|
|
1248
|
+
m(N, {
|
|
1249
1249
|
column: a,
|
|
1250
1250
|
row: t.agg
|
|
1251
1251
|
}, null, 8, ["column", "row"])
|
|
@@ -1354,7 +1354,7 @@ const In = /* @__PURE__ */ T(Tn, [["render", Sn]]), Vn = pt({
|
|
|
1354
1354
|
this.disableNextClick || (this.setCurrentPage(parseInt(this.page) + 1), this.updatePages(this.page), this.$emit("nextClick"));
|
|
1355
1355
|
},
|
|
1356
1356
|
setCurrentPage(t) {
|
|
1357
|
-
|
|
1357
|
+
this.page = t, this.$emit("pageChange", this.page, this.pageSizeLocal), this.updatePages(t);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
}), Dn = { class: "flex items-center w-full" }, Pn = { class: "flex items-center mx-[8px]" }, jn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, Fn = {
|
|
@@ -1362,14 +1362,14 @@ const In = /* @__PURE__ */ T(Tn, [["render", Sn]]), Vn = pt({
|
|
|
1362
1362
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
|
1363
1363
|
}, Ln = { class: "relative" }, Mn = { 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%]" }, zn = ["onClick"];
|
|
1364
1364
|
function qn(t, e, n, a, s, l) {
|
|
1365
|
-
const c = b("IconChevronDown"),
|
|
1365
|
+
const c = b("IconChevronDown"), f = b("IconCheck");
|
|
1366
1366
|
return o(), i("nav", Dn, [
|
|
1367
1367
|
r("button", {
|
|
1368
1368
|
type: "button",
|
|
1369
1369
|
onClick: e[0] || (e[0] = (...d) => t.handleClickPrev && t.handleClickPrev(...d)),
|
|
1370
1370
|
class: S(["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 }])
|
|
1371
1371
|
}, [
|
|
1372
|
-
|
|
1372
|
+
m(c, {
|
|
1373
1373
|
height: "16",
|
|
1374
1374
|
width: "16",
|
|
1375
1375
|
class: "rotate-90"
|
|
@@ -1390,7 +1390,7 @@ function qn(t, e, n, a, s, l) {
|
|
|
1390
1390
|
onClick: e[2] || (e[2] = (...d) => t.handleClickNext && t.handleClickNext(...d)),
|
|
1391
1391
|
class: S([{ "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"])
|
|
1392
1392
|
}, [
|
|
1393
|
-
|
|
1393
|
+
m(c, {
|
|
1394
1394
|
height: "16",
|
|
1395
1395
|
width: "16",
|
|
1396
1396
|
class: "-rotate-90"
|
|
@@ -1405,7 +1405,7 @@ function qn(t, e, n, a, s, l) {
|
|
|
1405
1405
|
onClick: (h) => t.pageSizeLocal = d
|
|
1406
1406
|
}, [
|
|
1407
1407
|
P($(d) + " ", 1),
|
|
1408
|
-
d === t.pageSizeLocal ? (o(), k(
|
|
1408
|
+
d === t.pageSizeLocal ? (o(), k(f, {
|
|
1409
1409
|
key: 0,
|
|
1410
1410
|
width: "14",
|
|
1411
1411
|
height: "14",
|
|
@@ -1422,7 +1422,7 @@ function qn(t, e, n, a, s, l) {
|
|
|
1422
1422
|
onClick: e[3] || (e[3] = (d) => t.isDropdownOpen = !t.isDropdownOpen)
|
|
1423
1423
|
}, [
|
|
1424
1424
|
P($(t.pageSizeLocal) + " ", 1),
|
|
1425
|
-
|
|
1425
|
+
m(c, {
|
|
1426
1426
|
height: "16",
|
|
1427
1427
|
width: "16"
|
|
1428
1428
|
})
|
|
@@ -1559,8 +1559,8 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
|
1559
1559
|
},
|
|
1560
1560
|
methods: {
|
|
1561
1561
|
async checkUrlMounted() {
|
|
1562
|
-
var t, e, n, a, s, l, c,
|
|
1563
|
-
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 = ((c = decodeURI((l = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : l.filter)) == null ? void 0 : c.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((d = (
|
|
1562
|
+
var t, e, n, a, s, l, c, f, d, h, u, _, x, g, w, y, A, V, L;
|
|
1563
|
+
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 = ((c = decodeURI((l = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : l.filter)) == null ? void 0 : c.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((d = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((u = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : u.filterState) || null, this.filterCustom = ((x = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : x.custom) || null, this.searchValue = ((w = (g = this.$route) == null ? void 0 : g.query) == null ? void 0 : w.search) || "", this.visibleColumns = ((V = (A = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : A.columns) == null ? void 0 : V.split(",")) || [], (L = this.$route) != null && L.query.card && (this.isVisibleCardInfo = !0);
|
|
1564
1564
|
},
|
|
1565
1565
|
rowWidth(t) {
|
|
1566
1566
|
var n, a;
|
|
@@ -1574,7 +1574,7 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
|
1574
1574
|
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 = "";
|
|
1575
1575
|
},
|
|
1576
1576
|
async getTableData() {
|
|
1577
|
-
var t, e, n, a, s, l, c,
|
|
1577
|
+
var t, e, n, a, s, l, c, f, d, h, u;
|
|
1578
1578
|
try {
|
|
1579
1579
|
const { data: _ } = await F.get(`/api/template/table/${this.table}`), x = await F.get(`/api/table-data/${this.table}`, {
|
|
1580
1580
|
params: {
|
|
@@ -1590,10 +1590,10 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
|
1590
1590
|
this.tableData = {
|
|
1591
1591
|
..._,
|
|
1592
1592
|
...(x == null ? void 0 : x.data) || {}
|
|
1593
|
-
}, this.initialHiddenColumns = (l = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((
|
|
1593
|
+
}, this.initialHiddenColumns = (l = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : s.map((g) => g == null ? void 0 : g.name)) == null ? void 0 : l.join(","), (c = this.visibleColumns) != null && c.length ? (f = this.tableData) == null || f.columns.forEach((g) => {
|
|
1594
1594
|
var w;
|
|
1595
|
-
(w = this.visibleColumns) != null && w.includes(
|
|
1596
|
-
}) : this.visibleColumns = (u = (h = (d = this.tableData) == null ? void 0 : d.columns) == null ? void 0 : h.filter((
|
|
1595
|
+
(w = this.visibleColumns) != null && w.includes(g == null ? void 0 : g.name) ? g.hidden = !1 : g.hidden = !0;
|
|
1596
|
+
}) : this.visibleColumns = (u = (h = (d = this.tableData) == null ? void 0 : d.columns) == null ? void 0 : h.filter((g) => (g == null ? void 0 : g.hidden) !== !0)) == null ? void 0 : u.map((g) => g == null ? void 0 : g.name);
|
|
1597
1597
|
} catch {
|
|
1598
1598
|
}
|
|
1599
1599
|
},
|
|
@@ -1662,8 +1662,8 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
|
1662
1662
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
|
1663
1663
|
};
|
|
1664
1664
|
function ir(t, e, n, a, s, l) {
|
|
1665
|
-
var W, R, J, G, K, Q, X, Y, Z, ee, te, se, ne, re, le, oe, ae, ie, de, ue, ce, pe, be, he, fe,
|
|
1666
|
-
const c = b("AdminCustomButtonAdd"),
|
|
1665
|
+
var W, R, J, G, K, Q, X, Y, Z, ee, te, se, ne, re, le, oe, ae, ie, de, ue, ce, pe, be, he, fe, ge, me, xe, ye, ke;
|
|
1666
|
+
const c = b("AdminCustomButtonAdd"), f = b("IconPlus"), d = b("router-link"), h = b("AdminTableTabs"), u = b("IconSearch"), _ = b("VsText"), x = b("AdminTableCustomButtons"), g = b("AdminTableCustomFilters"), w = b("AdminTableColumnsHidden"), y = b("AdminTablePrint"), A = b("AdminTableExport"), V = b("AdminTableFilters"), L = b("IconOpenCard"), E = b("AdminTableColumn"), H = b("AdminComponentIs"), Be = b("AdminTableControl"), Ne = b("AdminTableTotalsList"), Ue = b("AdminNodata"), Ee = b("AdminTablePagination"), He = b("AdminTableCardInfo");
|
|
1667
1667
|
return o(), i("div", Nn, [
|
|
1668
1668
|
r("div", Un, [
|
|
1669
1669
|
r("h2", En, $(n.title), 1),
|
|
@@ -1677,7 +1677,7 @@ function ir(t, e, n, a, s, l) {
|
|
|
1677
1677
|
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"
|
|
1678
1678
|
}, {
|
|
1679
1679
|
default: I(() => [
|
|
1680
|
-
|
|
1680
|
+
m(f, {
|
|
1681
1681
|
height: "16",
|
|
1682
1682
|
width: "16"
|
|
1683
1683
|
}),
|
|
@@ -1702,12 +1702,12 @@ function ir(t, e, n, a, s, l) {
|
|
|
1702
1702
|
r("div", {
|
|
1703
1703
|
class: S(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
|
1704
1704
|
}, [
|
|
1705
|
-
|
|
1705
|
+
m(u, {
|
|
1706
1706
|
height: "14",
|
|
1707
1707
|
width: "14",
|
|
1708
1708
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
|
1709
1709
|
}),
|
|
1710
|
-
|
|
1710
|
+
m(_, {
|
|
1711
1711
|
modelValue: s.searchValue,
|
|
1712
1712
|
"onUpdate:modelValue": e[1] || (e[1] = (p) => s.searchValue = p),
|
|
1713
1713
|
placeholder: n.search || "Пошук...",
|
|
@@ -1719,17 +1719,17 @@ function ir(t, e, n, a, s, l) {
|
|
|
1719
1719
|
key: 0,
|
|
1720
1720
|
slots: (ee = s.tableData) == null ? void 0 : ee.slots
|
|
1721
1721
|
}, null, 8, ["slots"])) : v("", !0),
|
|
1722
|
-
(se = (te = s.tableData) == null ? void 0 : te.filterCustom) != null && se.length ? (o(), k(
|
|
1722
|
+
(se = (te = s.tableData) == null ? void 0 : te.filterCustom) != null && se.length ? (o(), k(g, {
|
|
1723
1723
|
key: 1,
|
|
1724
1724
|
customList: (ne = s.tableData) == null ? void 0 : ne.filterCustom,
|
|
1725
1725
|
filterCustom: s.filterCustom,
|
|
1726
1726
|
"onUpdate:filterCustom": e[2] || (e[2] = (p) => s.filterCustom = p)
|
|
1727
1727
|
}, null, 8, ["customList", "filterCustom"])) : v("", !0),
|
|
1728
|
-
|
|
1728
|
+
m(w, {
|
|
1729
1729
|
columns: (re = s.tableData) == null ? void 0 : re.columns,
|
|
1730
1730
|
onUpdateColumns: e[3] || (e[3] = (p) => s.tableData.columns = p)
|
|
1731
1731
|
}, null, 8, ["columns"]),
|
|
1732
|
-
|
|
1732
|
+
m(y, {
|
|
1733
1733
|
rows: (le = s.tableData) == null ? void 0 : le.rows,
|
|
1734
1734
|
titleCol: (ae = (oe = l.columns) == null ? void 0 : oe[0]) == null ? void 0 : ae.name
|
|
1735
1735
|
}, null, 8, ["rows", "titleCol"]),
|
|
@@ -1753,7 +1753,7 @@ function ir(t, e, n, a, s, l) {
|
|
|
1753
1753
|
onClick: e[4] || (e[4] = (...p) => l.toggleCardInfo && l.toggleCardInfo(...p)),
|
|
1754
1754
|
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"
|
|
1755
1755
|
}, [
|
|
1756
|
-
|
|
1756
|
+
m(L, {
|
|
1757
1757
|
class: S({ "rotate-180 duration-300": !s.isVisibleCardInfo })
|
|
1758
1758
|
}, null, 8, ["class"])
|
|
1759
1759
|
])
|
|
@@ -1764,7 +1764,7 @@ function ir(t, e, n, a, s, l) {
|
|
|
1764
1764
|
}, [
|
|
1765
1765
|
r("div", {
|
|
1766
1766
|
style: Fe({
|
|
1767
|
-
height: (pe = (ce = s.tableData) == null ? void 0 : ce.filterState) != null && pe.length ? "calc(100vh - 370px)" : "calc(100vh -
|
|
1767
|
+
height: (pe = (ce = s.tableData) == null ? void 0 : ce.filterState) != null && pe.length ? "calc(100vh - 370px)" : "calc(100vh - 310px)"
|
|
1768
1768
|
}),
|
|
1769
1769
|
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"
|
|
1770
1770
|
}, [
|
|
@@ -1811,7 +1811,7 @@ function ir(t, e, n, a, s, l) {
|
|
|
1811
1811
|
(($e = this.tableData) == null ? void 0 : $e.card) === !1 ? "" : " text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
|
1812
1812
|
]])
|
|
1813
1813
|
}, [
|
|
1814
|
-
|
|
1814
|
+
m(H, {
|
|
1815
1815
|
row: p,
|
|
1816
1816
|
column: l.columns[0],
|
|
1817
1817
|
table: n.table,
|
|
@@ -1826,7 +1826,7 @@ function ir(t, e, n, a, s, l) {
|
|
|
1826
1826
|
class: S(["px-1 py-3 text-gray-600 pe-3", l.getCustomStyles(j)]),
|
|
1827
1827
|
key: j.name
|
|
1828
1828
|
}, [
|
|
1829
|
-
|
|
1829
|
+
m(H, {
|
|
1830
1830
|
row: p,
|
|
1831
1831
|
column: j,
|
|
1832
1832
|
table: n.table,
|
|
@@ -1842,7 +1842,7 @@ function ir(t, e, n, a, s, l) {
|
|
|
1842
1842
|
"bg-white": ((Pe = (De = t.$route) == null ? void 0 : De.query) == null ? void 0 : Pe.card) !== (p == null ? void 0 : p.id)
|
|
1843
1843
|
}])
|
|
1844
1844
|
}, [
|
|
1845
|
-
|
|
1845
|
+
m(Be, {
|
|
1846
1846
|
actions: l.getActions,
|
|
1847
1847
|
isForm: l.isForm,
|
|
1848
1848
|
item: p,
|
|
@@ -1853,9 +1853,9 @@ function ir(t, e, n, a, s, l) {
|
|
|
1853
1853
|
], 2);
|
|
1854
1854
|
}), 128))
|
|
1855
1855
|
]),
|
|
1856
|
-
|
|
1856
|
+
m(Ne, {
|
|
1857
1857
|
columns: l.columns,
|
|
1858
|
-
agg: (
|
|
1858
|
+
agg: (ge = s.tableData) == null ? void 0 : ge.agg
|
|
1859
1859
|
}, null, 8, ["columns", "agg"])
|
|
1860
1860
|
]))
|
|
1861
1861
|
])
|
|
@@ -1865,7 +1865,7 @@ function ir(t, e, n, a, s, l) {
|
|
|
1865
1865
|
r("div", nr, [
|
|
1866
1866
|
r("p", rr, [
|
|
1867
1867
|
r("span", lr, [
|
|
1868
|
-
P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((
|
|
1868
|
+
P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((me = s.tableData) == null ? void 0 : me.count) || "0 ") + " ", 1),
|
|
1869
1869
|
s.filters || s.searchValue ? (o(), i("span", or, " з")) : v("", !0)
|
|
1870
1870
|
]),
|
|
1871
1871
|
s.filters || s.searchValue ? (o(), i("span", ar, $(" " + ((xe = s.tableData) == null ? void 0 : xe.filtered) || 0), 1)) : v("", !0)
|
|
@@ -1882,7 +1882,7 @@ function ir(t, e, n, a, s, l) {
|
|
|
1882
1882
|
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : v("", !0)
|
|
1883
1883
|
])
|
|
1884
1884
|
], 2),
|
|
1885
|
-
|
|
1885
|
+
m(z, { name: "slide-fade" }, {
|
|
1886
1886
|
default: I(() => {
|
|
1887
1887
|
var p;
|
|
1888
1888
|
return [
|
|
@@ -1901,7 +1901,7 @@ function ir(t, e, n, a, s, l) {
|
|
|
1901
1901
|
])
|
|
1902
1902
|
]);
|
|
1903
1903
|
}
|
|
1904
|
-
const dr = /* @__PURE__ */ T(Bn, [["render", ir], ["__scopeId", "data-v-
|
|
1904
|
+
const dr = /* @__PURE__ */ T(Bn, [["render", ir], ["__scopeId", "data-v-bd4be173"]]), ur = {
|
|
1905
1905
|
components: { AdminTable: dr },
|
|
1906
1906
|
data() {
|
|
1907
1907
|
return {
|
|
@@ -1934,14 +1934,16 @@ const dr = /* @__PURE__ */ T(Bn, [["render", ir], ["__scopeId", "data-v-4cadd511
|
|
|
1934
1934
|
}), e;
|
|
1935
1935
|
},
|
|
1936
1936
|
async checkPageType() {
|
|
1937
|
-
var
|
|
1937
|
+
var a, s;
|
|
1938
1938
|
const t = this.flattenMenu(je.value);
|
|
1939
1939
|
t != null && t.length || this.$router.replace("/404");
|
|
1940
|
-
const e = t == null ? void 0 : t.find((
|
|
1941
|
-
var
|
|
1942
|
-
return (
|
|
1940
|
+
const e = t == null ? void 0 : t.find((l) => {
|
|
1941
|
+
var c, f;
|
|
1942
|
+
return (l == null ? void 0 : l.path) == ((f = (c = this.$route) == null ? void 0 : c.params) == null ? void 0 : f.catchAll);
|
|
1943
1943
|
});
|
|
1944
|
-
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((
|
|
1944
|
+
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((s = (a = this.$route) == null ? void 0 : a.params) == null ? void 0 : s.catchAll);
|
|
1945
|
+
const n = e == null ? void 0 : e.table;
|
|
1946
|
+
this.table = n || !1, this.search = (e == null ? void 0 : e.search) || "", !n && this.getInterface();
|
|
1945
1947
|
},
|
|
1946
1948
|
async getInterface() {
|
|
1947
1949
|
var t, e;
|
|
@@ -1970,7 +1972,7 @@ function pr(t, e, n, a, s, l) {
|
|
|
1970
1972
|
innerHTML: s.interface
|
|
1971
1973
|
}, null, 8, cr));
|
|
1972
1974
|
}
|
|
1973
|
-
const
|
|
1975
|
+
const gr = /* @__PURE__ */ T(ur, [["render", pr]]);
|
|
1974
1976
|
export {
|
|
1975
|
-
|
|
1977
|
+
gr as default
|
|
1976
1978
|
};
|