@opengis/admin 0.2.74 → 0.2.76
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-C6hbAhxE.js → add-page-CTy_NggO.js} +1 -1
- package/dist/{admin-interface-DhGbitPV.js → admin-interface-CfgzeOND.js} +77 -74
- package/dist/{admin-view-DNhhKVrA.js → admin-view-BAHi7pmQ.js} +5 -5
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +39 -39
- package/dist/{card-view-BPIFkAME.js → card-view-aAJYwQCe.js} +1 -1
- package/dist/{edit-page-DUjvZCQy.js → edit-page-DBOeMNPO.js} +1 -1
- package/dist/{import-file-DOALml4S.js → import-file-DbQlaJ6F.js} +2611 -2608
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/server/helpers/index.js +2 -0
- package/server/routes/print/controllers/cardPrint.js +28 -10
- package/server/templates/pt/card-print.pt.hbs +33 -8
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as g, u as f, e as u } from "./import-file-
|
1
|
+
import { _ as g, u as f, e as u } from "./import-file-DbQlaJ6F.js";
|
2
2
|
import { resolveComponent as x, openBlock as h, createElementBlock as w, createElementVNode as n, createBlock as y, normalizeStyle as k, createCommentVNode as v } from "vue";
|
3
3
|
const V = {
|
4
4
|
data() {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as w, f as Be, g as Oe, h as Ne, e as j, I as Ue, i as De, j as N, A as U, V as Ee, k as He, l as Re, m as We, n as Je, o as Ge, a as Ke, p as Qe, u as Ie, s as Xe } from "./import-file-
|
2
|
-
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as
|
1
|
+
import { _ as w, f as Be, g as Oe, h as Ne, e as j, I as Ue, i as De, j as N, A as U, V as Ee, k as He, l as Re, m as We, n as Je, o as Ge, a as Ke, p as Qe, u as Ie, s as Xe } from "./import-file-DbQlaJ6F.js";
|
2
|
+
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as T, createElementVNode as l, normalizeClass as I, createCommentVNode as v, resolveComponent as p, Fragment as A, createVNode as x, withCtx as S, createBlock as k, renderList as D, withModifiers as Ye, createStaticVNode as Ze, withDirectives as M, vModelCheckbox as et, Transition as z, vModelText as tt, renderSlot as st, vShow as E, Teleport as nt, getCurrentInstance as Pe, ref as B, resolveDynamicComponent as O, defineComponent as lt, normalizeStyle as Ve } from "vue";
|
3
3
|
const rt = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -73,7 +73,7 @@ function dt(t, e, s, a, n, o) {
|
|
73
73
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
|
74
74
|
onClick: e[0] || (e[0] = (u) => o.handleClickSortBtn(n.currentSort))
|
75
75
|
}, [
|
76
|
-
P(
|
76
|
+
P(T(o.label) + " ", 1),
|
77
77
|
l("span", at, [
|
78
78
|
n.currentSort ? (r(), i("svg", {
|
79
79
|
key: 0,
|
@@ -92,7 +92,7 @@ function dt(t, e, s, a, n, o) {
|
|
92
92
|
l("path", { d: "M12 19V5" }, null, -1)
|
93
93
|
]), 2)) : v("", !0)
|
94
94
|
])
|
95
|
-
])) : (r(), i("p", it,
|
95
|
+
])) : (r(), i("p", it, T(o.label), 1))
|
96
96
|
]);
|
97
97
|
}
|
98
98
|
const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
|
@@ -184,7 +184,7 @@ const ut = /* @__PURE__ */ w(rt, [["render", dt]]), ct = {
|
|
184
184
|
}, xt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
185
185
|
function yt(t, e, s, a, n, o) {
|
186
186
|
const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), b = p("IconDelete"), d = p("VsPopover"), _ = p("VsConfirm");
|
187
|
-
return r(), i(
|
187
|
+
return r(), i(A, null, [
|
188
188
|
l("div", pt, [
|
189
189
|
x(d, {
|
190
190
|
trigger: "click",
|
@@ -213,13 +213,13 @@ function yt(t, e, s, a, n, o) {
|
|
213
213
|
]),
|
214
214
|
_: 1
|
215
215
|
}, 8, ["to"])) : v("", !0),
|
216
|
-
(r(!0), i(
|
217
|
-
key:
|
216
|
+
(r(!0), i(A, null, D(o.getCustomActions, (V, L) => (r(), i("button", {
|
217
|
+
key: L,
|
218
218
|
onClick: (q) => o.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
|
x(b, { class: "opacity-0" }),
|
222
|
-
l("span", gt,
|
222
|
+
l("span", gt, T(V == null ? void 0 : V.label), 1)
|
223
223
|
], 8, ft))), 128)),
|
224
224
|
s.isForm ? (r(), i("div", mt)) : v("", !0),
|
225
225
|
($ = s.actions) != null && $.includes("del") ? (r(), i("button", {
|
@@ -279,7 +279,7 @@ function Ct(t, e, s, a, n, o) {
|
|
279
279
|
l("path", { d: "M17 4v16" }, null, -1)
|
280
280
|
]));
|
281
281
|
}
|
282
|
-
const wt = /* @__PURE__ */ w(vt, [["render", Ct]]), $t = {},
|
282
|
+
const wt = /* @__PURE__ */ w(vt, [["render", Ct]]), $t = {}, Tt = {
|
283
283
|
xmlns: "http://www.w3.org/2000/svg",
|
284
284
|
width: "24",
|
285
285
|
height: "24",
|
@@ -291,8 +291,8 @@ const wt = /* @__PURE__ */ w(vt, [["render", Ct]]), $t = {}, At = {
|
|
291
291
|
"stroke-linejoin": "round",
|
292
292
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
293
293
|
};
|
294
|
-
function
|
295
|
-
return r(), i("svg",
|
294
|
+
function At(t, e, s, a, n, o) {
|
295
|
+
return r(), i("svg", Tt, e[0] || (e[0] = [
|
296
296
|
l("path", {
|
297
297
|
stroke: "none",
|
298
298
|
d: "M0 0h24v24H0z",
|
@@ -302,7 +302,7 @@ function Tt(t, e, s, a, n, o) {
|
|
302
302
|
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
303
303
|
]));
|
304
304
|
}
|
305
|
-
const St = /* @__PURE__ */ w($t, [["render",
|
305
|
+
const St = /* @__PURE__ */ w($t, [["render", At]]), It = {
|
306
306
|
components: { IconExport: wt, IconChevronDown: Ue, IconSuccess: St },
|
307
307
|
props: {
|
308
308
|
table: String,
|
@@ -411,10 +411,10 @@ const St = /* @__PURE__ */ w($t, [["render", Tt]]), It = {
|
|
411
411
|
}, Dt = {
|
412
412
|
key: 1,
|
413
413
|
class: "p-4"
|
414
|
-
}, Pt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ft = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, jt = ["onClick"],
|
414
|
+
}, Pt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ft = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, jt = ["onClick"], Lt = {
|
415
415
|
key: 0,
|
416
416
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
417
|
-
},
|
417
|
+
}, Mt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, zt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, qt = { class: "mt-2 space-y-2" }, Bt = ["id", "onChange"], Ot = ["for"], Nt = {
|
418
418
|
key: 0,
|
419
419
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
420
420
|
}, Ut = {
|
@@ -423,7 +423,7 @@ const St = /* @__PURE__ */ w($t, [["render", Tt]]), It = {
|
|
423
423
|
};
|
424
424
|
function Et(t, e, s, a, n, o) {
|
425
425
|
const u = p("IconExport"), f = p("IconSuccess"), h = p("VsCheckbox"), b = p("VsDialog");
|
426
|
-
return r(), i(
|
426
|
+
return r(), i(A, null, [
|
427
427
|
l("button", {
|
428
428
|
onClick: e[0] || (e[0] = (d) => n.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"
|
@@ -478,7 +478,7 @@ function Et(t, e, s, a, n, o) {
|
|
478
478
|
l("div", Pt, [
|
479
479
|
e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
480
480
|
l("div", Ft, [
|
481
|
-
(r(!0), i(
|
481
|
+
(r(!0), i(A, null, D(n.actions, (d) => (r(), i("button", {
|
482
482
|
key: d == null ? void 0 : d.name,
|
483
483
|
onClick: d == null ? void 0 : d.function,
|
484
484
|
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"
|
@@ -486,13 +486,13 @@ function Et(t, e, s, a, n, o) {
|
|
486
486
|
l("span", {
|
487
487
|
class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === n.activeAction }])
|
488
488
|
}, [
|
489
|
-
(d == null ? void 0 : d.name) === n.activeAction ? (r(), i("span",
|
489
|
+
(d == null ? void 0 : d.name) === n.activeAction ? (r(), i("span", Lt)) : v("", !0)
|
490
490
|
], 2),
|
491
|
-
P(" " +
|
491
|
+
P(" " + T(d == null ? void 0 : d.label), 1)
|
492
492
|
], 8, jt))), 128))
|
493
493
|
]),
|
494
|
-
l("div",
|
495
|
-
(r(!0), i(
|
494
|
+
l("div", Mt, [
|
495
|
+
(r(!0), i(A, null, D(s.columns, (d, _) => (r(), i("div", {
|
496
496
|
class: "flex items-center",
|
497
497
|
key: _,
|
498
498
|
style: { width: "calc((100% - 10px) / 2)" }
|
@@ -510,7 +510,7 @@ function Et(t, e, s, a, n, o) {
|
|
510
510
|
l("div", zt, [
|
511
511
|
e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
512
512
|
l("div", qt, [
|
513
|
-
(r(!0), i(
|
513
|
+
(r(!0), i(A, null, D(n.tableFormats, (d, _) => (r(), i("div", {
|
514
514
|
class: "flex items-center",
|
515
515
|
key: _
|
516
516
|
}, [
|
@@ -524,7 +524,7 @@ function Et(t, e, s, a, n, o) {
|
|
524
524
|
l("label", {
|
525
525
|
for: d,
|
526
526
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
527
|
-
}, " Формат " +
|
527
|
+
}, " Формат " + T(d), 9, Ot)
|
528
528
|
]))), 128))
|
529
529
|
])
|
530
530
|
])
|
@@ -575,8 +575,8 @@ function Yt(t, e, s, a, n, o) {
|
|
575
575
|
const u = p("IconCheck2");
|
576
576
|
return r(), i("div", Qt, [
|
577
577
|
l("label", Xt, [
|
578
|
-
P(
|
579
|
-
|
578
|
+
P(T(((f = s.column) == null ? void 0 : f.ua) || ((h = s.column) == null ? void 0 : h.title)) + " ", 1),
|
579
|
+
M(l("input", {
|
580
580
|
type: "checkbox",
|
581
581
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => n.value = b),
|
582
582
|
class: "hidden"
|
@@ -663,7 +663,7 @@ function is(t, e, s, a, n, o) {
|
|
663
663
|
n.visible ? (r(), i("div", ss, [
|
664
664
|
e[2] || (e[2] = l("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
|
665
665
|
l("div", ns, [
|
666
|
-
|
666
|
+
M(l("input", {
|
667
667
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => n.searchValue = d),
|
668
668
|
type: "text",
|
669
669
|
class: "py-1.5 px-3 block w-full border-transparent rounded-lg sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 focus:outline-none focus:border-transparent focus:ring-0 focus:bg-gray-100 disabled:opacity-100 disabled:pointer-events-none dark:bg-transparent dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:hover:bg-neutral-800 dark:focus:ring-neutral-600 dark:focus:bg-neutral-800",
|
@@ -676,7 +676,7 @@ function is(t, e, s, a, n, o) {
|
|
676
676
|
l("div", ls, [
|
677
677
|
(h = o.filteredColumn) != null && h.length ? (r(), i("span", rs, " Оберіть колонки для відображення ")) : v("", !0),
|
678
678
|
l("div", os, [
|
679
|
-
(b = o.filteredColumn) != null && b.length ? (r(!0), i(
|
679
|
+
(b = o.filteredColumn) != null && b.length ? (r(!0), i(A, { key: 0 }, D(o.filteredColumn, (d, _) => (r(), k(f, {
|
680
680
|
key: _,
|
681
681
|
column: d,
|
682
682
|
onUpdateColumn: o.updateColumn
|
@@ -730,7 +730,7 @@ function ys(t, e, s, a, n, o) {
|
|
730
730
|
onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
|
731
731
|
class: "rounded-md cursor-pointer grow"
|
732
732
|
}, [
|
733
|
-
l("span", ms,
|
733
|
+
l("span", ms, T(s.title), 1)
|
734
734
|
]),
|
735
735
|
l("button", {
|
736
736
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
@@ -744,7 +744,7 @@ function ys(t, e, s, a, n, o) {
|
|
744
744
|
]),
|
745
745
|
x(z, { name: "fade" }, {
|
746
746
|
default: S(() => [
|
747
|
-
|
747
|
+
M(l("div", xs, [
|
748
748
|
st(t.$slots, "default", {}, void 0, !0)
|
749
749
|
], 512), [
|
750
750
|
[E, n.expanded]
|
@@ -772,7 +772,7 @@ const ks = /* @__PURE__ */ w(bs, [["render", ys], ["__scopeId", "data-v-c6318482
|
|
772
772
|
}, Cs = {
|
773
773
|
class: "border-l",
|
774
774
|
style: { height: "calc(100vh - 360px)" }
|
775
|
-
}, ws = { class: "flow-root mt-[10px]" }, $s = { class: "-my-3 text-sm divide-y divide-gray-100" },
|
775
|
+
}, ws = { class: "flow-root mt-[10px]" }, $s = { class: "-my-3 text-sm divide-y divide-gray-100" }, Ts = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, As = { class: "font-medium text-black w-[50%]" }, Ss = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Is = { class: "table-info-card" }, Vs = { class: "table-info-card" };
|
776
776
|
function Ds(t, e, s, a, n, o) {
|
777
777
|
var m, g, C;
|
778
778
|
const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), b = p("VsNoData"), d = p("VsWidgetComments"), _ = p("VsWidgetFileList");
|
@@ -781,7 +781,7 @@ function Ds(t, e, s, a, n, o) {
|
|
781
781
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
782
782
|
], -1)),
|
783
783
|
l("div", Cs, [
|
784
|
-
(g = (m = t.$route) == null ? void 0 : m.query) != null && g.card ? (r(), i(
|
784
|
+
(g = (m = t.$route) == null ? void 0 : m.query) != null && g.card ? (r(), i(A, { key: 0 }, [
|
785
785
|
s.row ? (r(), k(f, {
|
786
786
|
key: 0,
|
787
787
|
defaultValue: !0,
|
@@ -791,8 +791,8 @@ function Ds(t, e, s, a, n, o) {
|
|
791
791
|
default: S(() => [
|
792
792
|
l("div", ws, [
|
793
793
|
l("dl", $s, [
|
794
|
-
(r(!0), i(
|
795
|
-
l("dt",
|
794
|
+
(r(!0), i(A, null, D(s.columns, (y) => (r(), i("div", Ts, [
|
795
|
+
l("dt", As, T((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
|
796
796
|
l("dd", Ss, [
|
797
797
|
x(u, {
|
798
798
|
row: s.row,
|
@@ -889,10 +889,10 @@ const Ps = /* @__PURE__ */ w(vs, [["render", Ds]]), Fs = {
|
|
889
889
|
}, js = {
|
890
890
|
key: 0,
|
891
891
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
892
|
-
},
|
893
|
-
function
|
892
|
+
}, Ls = { class: "filter-content h-screen bg-white w-[400px] overflow-x-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
893
|
+
function Ms(t, e, s, a, n, o) {
|
894
894
|
const u = p("IconFilter"), f = p("VsFilter");
|
895
|
-
return r(), i(
|
895
|
+
return r(), i(A, null, [
|
896
896
|
l("button", {
|
897
897
|
onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
|
898
898
|
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"
|
@@ -902,19 +902,19 @@ function Ls(t, e, s, a, n, o) {
|
|
902
902
|
width: "16"
|
903
903
|
}),
|
904
904
|
e[4] || (e[4] = P(" Фільтри ")),
|
905
|
-
s.onFilters ? (r(), i("span", js,
|
905
|
+
s.onFilters ? (r(), i("span", js, T(s.onFilters), 1)) : v("", !0)
|
906
906
|
]),
|
907
907
|
x(z, { name: "fade" }, {
|
908
908
|
default: S(() => {
|
909
909
|
var h;
|
910
910
|
return [
|
911
911
|
(r(), k(nt, { to: "#modal" }, [
|
912
|
-
|
912
|
+
M(l("div", {
|
913
913
|
onClick: e[3] || (e[3] = (...b) => o.closeFilter && o.closeFilter(...b)),
|
914
914
|
style: { height: "100vh" },
|
915
915
|
class: "fixed filter-container top-0 flex justify-end items-center z-[12] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.2)]"
|
916
916
|
}, [
|
917
|
-
l("div",
|
917
|
+
l("div", Ls, [
|
918
918
|
(h = s.scheme) != null && h.length ? (r(), k(f, {
|
919
919
|
key: 0,
|
920
920
|
ref: "filter",
|
@@ -941,7 +941,7 @@ function Ls(t, e, s, a, n, o) {
|
|
941
941
|
})
|
942
942
|
], 64);
|
943
943
|
}
|
944
|
-
const zs = /* @__PURE__ */ w(Fs, [["render",
|
944
|
+
const zs = /* @__PURE__ */ w(Fs, [["render", Ms]]), qs = {
|
945
945
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
946
946
|
}, Bs = {
|
947
947
|
class: "relative flex space-x-1 mb-[20px] after:absolute after:w-[99%] after:bottom-0 after:inset-x-0 after:border-b-2 after:border-gray-200 dark:after:border-neutral-700",
|
@@ -951,12 +951,12 @@ const zs = /* @__PURE__ */ w(Fs, [["render", Ls]]), qs = {
|
|
951
951
|
}, Os = ["onClick"];
|
952
952
|
function Ns(t, e, s, a, n, o) {
|
953
953
|
return r(), i("nav", Bs, [
|
954
|
-
(r(!0), i(
|
954
|
+
(r(!0), i(A, null, D(s.tabsList, (u) => (r(), i("button", {
|
955
955
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
956
956
|
class: I(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
|
957
957
|
" font-semibold after:absolute after:bottom-[-8px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": (u == null ? void 0 : u.name) === s.filterState
|
958
958
|
}])
|
959
|
-
},
|
959
|
+
}, T(u == null ? void 0 : u.label), 11, Os))), 256))
|
960
960
|
]);
|
961
961
|
}
|
962
962
|
const Us = /* @__PURE__ */ w(qs, [["render", Ns]]), Es = {}, Hs = {
|
@@ -999,7 +999,7 @@ function Ys(t, e, s, a, n, o) {
|
|
999
999
|
]),
|
1000
1000
|
default: S(() => [
|
1001
1001
|
l("div", Ks, [
|
1002
|
-
(r(!0), i(
|
1002
|
+
(r(!0), i(A, null, D(s.customList, (b, d) => (r(), i("button", {
|
1003
1003
|
onClick: (_) => {
|
1004
1004
|
var m;
|
1005
1005
|
t.$emit("update:filterCustom", b == null ? void 0 : b.name), (m = t.$refs) == null || m.popover.togglePopover();
|
@@ -1007,7 +1007,7 @@ function Ys(t, e, s, a, n, o) {
|
|
1007
1007
|
key: d,
|
1008
1008
|
class: I(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": s.filterCustom === (b == null ? void 0 : b.name) }])
|
1009
1009
|
}, [
|
1010
|
-
l("span", Xs,
|
1010
|
+
l("span", Xs, T(b == null ? void 0 : b.label), 1),
|
1011
1011
|
s.filterCustom === (b == null ? void 0 : b.name) ? (r(), k(f, {
|
1012
1012
|
key: 0,
|
1013
1013
|
class: "ml-auto size-3 shrink-0"
|
@@ -1100,9 +1100,9 @@ const Zs = /* @__PURE__ */ w(Js, [["render", Ys]]), en = { class: "flex items-ce
|
|
1100
1100
|
},
|
1101
1101
|
setup(t) {
|
1102
1102
|
return (e, s) => (r(), i("tr", null, [
|
1103
|
-
(r(!0), i(
|
1103
|
+
(r(!0), i(A, null, D(t.columns, (a) => {
|
1104
1104
|
var n;
|
1105
|
-
return r(), i(
|
1105
|
+
return r(), i(A, {
|
1106
1106
|
key: a == null ? void 0 : a.name
|
1107
1107
|
}, [
|
1108
1108
|
(n = t.agg) != null && n[a == null ? void 0 : a.name] ? (r(), i("td", ln, [
|
@@ -1262,9 +1262,9 @@ function wn(t, e, s, a, n, o) {
|
|
1262
1262
|
contenteditable: "true",
|
1263
1263
|
onBlur: e[1] || (e[1] = (h) => t.handleSetPage(h.target.innerText)),
|
1264
1264
|
class: "min-h-[38px] max-h-[38px] overflow-hidden min-w-[38px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
|
1265
|
-
},
|
1265
|
+
}, T(t.page), 545),
|
1266
1266
|
e[4] || (e[4] = l("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1267
|
-
l("span", yn,
|
1267
|
+
l("span", yn, T(t.pagesCount), 1)
|
1268
1268
|
]),
|
1269
1269
|
l("button", {
|
1270
1270
|
type: "button",
|
@@ -1279,13 +1279,13 @@ function wn(t, e, s, a, n, o) {
|
|
1279
1279
|
], 2),
|
1280
1280
|
t.pageSizes.length ? (r(), i("div", kn, [
|
1281
1281
|
l("div", vn, [
|
1282
|
-
|
1283
|
-
(r(!0), i(
|
1282
|
+
M(l("div", _n, [
|
1283
|
+
(r(!0), i(A, null, D(t.pageSizes, (h) => (r(), i("button", {
|
1284
1284
|
type: "button",
|
1285
1285
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1286
1286
|
onClick: (b) => t.pageSizeLocal = h
|
1287
1287
|
}, [
|
1288
|
-
P(
|
1288
|
+
P(T(h) + " ", 1),
|
1289
1289
|
h === t.pageSizeLocal ? (r(), k(f, {
|
1290
1290
|
key: 0,
|
1291
1291
|
width: "14",
|
@@ -1302,7 +1302,7 @@ function wn(t, e, s, a, n, o) {
|
|
1302
1302
|
class: "text-sm h-[32px] min-w-8 py-3 px-3.5 inline-flex items-center gap-x-1 rounded-lg border border-gray-200 text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
1303
1303
|
onClick: e[3] || (e[3] = (h) => t.isDropdownOpen = !t.isDropdownOpen)
|
1304
1304
|
}, [
|
1305
|
-
P(
|
1305
|
+
P(T(t.pageSizeLocal) + " ", 1),
|
1306
1306
|
x(u, {
|
1307
1307
|
height: "16",
|
1308
1308
|
width: "16"
|
@@ -1312,7 +1312,7 @@ function wn(t, e, s, a, n, o) {
|
|
1312
1312
|
])) : v("", !0)
|
1313
1313
|
]);
|
1314
1314
|
}
|
1315
|
-
const $n = /* @__PURE__ */ w(gn, [["render", wn]]),
|
1315
|
+
const $n = /* @__PURE__ */ w(gn, [["render", wn]]), Tn = {
|
1316
1316
|
props: { table: String, title: String },
|
1317
1317
|
components: {
|
1318
1318
|
AdminTableControl: kt,
|
@@ -1351,7 +1351,10 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), An = {
|
|
1351
1351
|
};
|
1352
1352
|
},
|
1353
1353
|
async mounted() {
|
1354
|
-
await this.checkUrlMounted(), await this.getTableData(), await this.getFilters();
|
1354
|
+
await this.checkUrlMounted(), await this.getTableData(), await this.getFilters(), window.addEventListener("reloadTablePage", this.getTableData);
|
1355
|
+
},
|
1356
|
+
unmounted() {
|
1357
|
+
window.removeEventListener("reloadTablePage", this.getTableData);
|
1355
1358
|
},
|
1356
1359
|
computed: {
|
1357
1360
|
defaultPage() {
|
@@ -1436,8 +1439,8 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), An = {
|
|
1436
1439
|
},
|
1437
1440
|
methods: {
|
1438
1441
|
async checkUrlMounted() {
|
1439
|
-
var t, e, s, a, n, o, u, f, h, b, d, _, m, g, C, y, $, V,
|
1440
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((h = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : h.length) - 1), this.filterState = ((d = (b = this.$route) == null ? void 0 : b.query) == null ? void 0 : d.filterState) || null, this.filterCustom = ((m = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : m.custom) || null, this.searchValue = ((C = (g = this.$route) == null ? void 0 : g.query) == null ? void 0 : C.search) || "", this.visibleColumns = ((V = ($ = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : $.columns) == null ? void 0 : V.split(",")) || [], (
|
1442
|
+
var t, e, s, a, n, o, u, f, h, b, d, _, m, g, C, y, $, V, L;
|
1443
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : a.limit) || 20, this.filters = ((u = decodeURI((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((h = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : h.length) - 1), this.filterState = ((d = (b = this.$route) == null ? void 0 : b.query) == null ? void 0 : d.filterState) || null, this.filterCustom = ((m = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : m.custom) || null, this.searchValue = ((C = (g = this.$route) == null ? void 0 : g.query) == null ? void 0 : C.search) || "", this.visibleColumns = ((V = ($ = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : $.columns) == null ? void 0 : V.split(",")) || [], (L = this.$route) != null && L.query.card && (this.isVisibleCardInfo = !0);
|
1441
1444
|
},
|
1442
1445
|
rowWidth(t) {
|
1443
1446
|
var s, a;
|
@@ -1525,13 +1528,13 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), An = {
|
|
1525
1528
|
];
|
1526
1529
|
}
|
1527
1530
|
}
|
1528
|
-
},
|
1531
|
+
}, An = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Sn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, In = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, Vn = {
|
1529
1532
|
style: { height: "calc(100vh - 155px)" },
|
1530
1533
|
class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1531
|
-
}, Dn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, Pn = { class: "flex" }, Fn = { class: "flex gap-[6px] ml-auto" }, jn = { class: "inline-block w-full align-middle" },
|
1534
|
+
}, Dn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, Pn = { class: "flex" }, Fn = { class: "flex gap-[6px] ml-auto" }, jn = { class: "inline-block w-full align-middle" }, Ln = {
|
1532
1535
|
key: 0,
|
1533
1536
|
class: "relative min-w-full text-[13px] divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1534
|
-
},
|
1537
|
+
}, Mn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, zn = { class: "right-0" }, qn = {
|
1535
1538
|
key: 0,
|
1536
1539
|
class: "w-[70px] sticky right-0 top-0"
|
1537
1540
|
}, Bn = { class: "divide-y divide-gray-200 z-[1] relative" }, On = ["onClick"], Nn = ["onClick"], Un = { class: "p-[10px] flex justify-start items-center w-full" }, En = { class: "w-[200px] md:inline-flex hidden" }, Hn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Rn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Wn = { key: 0 }, Jn = {
|
@@ -1540,11 +1543,11 @@ const $n = /* @__PURE__ */ w(gn, [["render", wn]]), An = {
|
|
1540
1543
|
};
|
1541
1544
|
function Gn(t, e, s, a, n, o) {
|
1542
1545
|
var H, R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, re, oe, ae, ie, de, ue, ce, pe, he, be, fe, ge;
|
1543
|
-
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), C = p("AdminTableColumnsHidden"), y = p("AdminTableExport"), $ = p("AdminTableFilters"), V = p("IconOpenCard"),
|
1544
|
-
return r(), i("div",
|
1546
|
+
const u = p("AdminCustomButtonAdd"), f = p("IconPlus"), h = p("router-link"), b = p("AdminTableTabs"), d = p("IconSearch"), _ = p("VsText"), m = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), C = p("AdminTableColumnsHidden"), y = p("AdminTableExport"), $ = p("AdminTableFilters"), V = p("IconOpenCard"), L = p("AdminTableColumn"), q = p("AdminComponentIs"), Fe = p("AdminTableControl"), je = p("AdminTableTotalsList"), Le = p("AdminNodata"), Me = p("AdminTablePagination"), ze = p("AdminTableCardInfo");
|
1547
|
+
return r(), i("div", An, [
|
1545
1548
|
l("div", Sn, [
|
1546
|
-
l("h2", In,
|
1547
|
-
o.isForm ? (r(), i(
|
1549
|
+
l("h2", In, T(s.title), 1),
|
1550
|
+
o.isForm ? (r(), i(A, { key: 0 }, [
|
1548
1551
|
(R = (H = n.tableData) == null ? void 0 : H.slots) != null && R.addButton ? (r(), k(u, {
|
1549
1552
|
key: 0,
|
1550
1553
|
slots: (W = n.tableData) == null ? void 0 : W.slots
|
@@ -1642,10 +1645,10 @@ function Gn(t, e, s, a, n, o) {
|
|
1642
1645
|
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"
|
1643
1646
|
}, [
|
1644
1647
|
l("div", jn, [
|
1645
|
-
o.isNoData ? (r(), k(
|
1646
|
-
l("thead",
|
1648
|
+
o.isNoData ? (r(), k(Le, { key: 1 })) : (r(), i("table", Ln, [
|
1649
|
+
l("thead", Mn, [
|
1647
1650
|
l("tr", zn, [
|
1648
|
-
(r(!0), i(
|
1651
|
+
(r(!0), i(A, null, D(o.columns, (c) => (r(), k(L, {
|
1649
1652
|
key: c.name,
|
1650
1653
|
style: Ve({
|
1651
1654
|
width: o.rowWidth(c == null ? void 0 : c.name),
|
@@ -1662,8 +1665,8 @@ function Gn(t, e, s, a, n, o) {
|
|
1662
1665
|
])
|
1663
1666
|
]),
|
1664
1667
|
l("tbody", Bn, [
|
1665
|
-
(r(!0), i(
|
1666
|
-
var me, xe, ye, ke, ve, _e, Ce, we, $e,
|
1668
|
+
(r(!0), i(A, null, D((ce = n.tableData) == null ? void 0 : ce.rows, (c, qe) => {
|
1669
|
+
var me, xe, ye, ke, ve, _e, Ce, we, $e, Te, Ae, Se;
|
1667
1670
|
return r(), i("tr", {
|
1668
1671
|
key: (c == null ? void 0 : c.id) || qe,
|
1669
1672
|
class: I({
|
@@ -1692,7 +1695,7 @@ function Gn(t, e, s, a, n, o) {
|
|
1692
1695
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1693
1696
|
], 10, On)
|
1694
1697
|
], 2),
|
1695
|
-
(r(!0), i(
|
1698
|
+
(r(!0), i(A, null, D((_e = o.columns) == null ? void 0 : _e.slice(1), (F) => (r(), i("td", {
|
1696
1699
|
onClick: (Zn) => {
|
1697
1700
|
o.changeActiveCardInfo(c == null ? void 0 : c.id), o.pushToLinkCard(F, c);
|
1698
1701
|
},
|
@@ -1711,8 +1714,8 @@ function Gn(t, e, s, a, n, o) {
|
|
1711
1714
|
)) != null && we.length ? (r(), i("td", {
|
1712
1715
|
key: 0,
|
1713
1716
|
class: I(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1714
|
-
"bg-gray-50": ((
|
1715
|
-
"bg-white": ((Se = (
|
1717
|
+
"bg-gray-50": ((Te = ($e = t.$route) == null ? void 0 : $e.query) == null ? void 0 : Te.card) === (c == null ? void 0 : c.id),
|
1718
|
+
"bg-white": ((Se = (Ae = t.$route) == null ? void 0 : Ae.query) == null ? void 0 : Se.card) !== (c == null ? void 0 : c.id)
|
1716
1719
|
}])
|
1717
1720
|
}, [
|
1718
1721
|
x(Fe, {
|
@@ -1738,13 +1741,13 @@ function Gn(t, e, s, a, n, o) {
|
|
1738
1741
|
l("div", En, [
|
1739
1742
|
l("p", Hn, [
|
1740
1743
|
l("span", Rn, [
|
1741
|
-
P(
|
1744
|
+
P(T(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + T(((he = n.tableData) == null ? void 0 : he.count) || "0 ") + " ", 1),
|
1742
1745
|
n.filters || n.searchValue ? (r(), i("span", Wn, " з")) : v("", !0)
|
1743
1746
|
]),
|
1744
|
-
n.filters || n.searchValue ? (r(), i("span", Jn,
|
1747
|
+
n.filters || n.searchValue ? (r(), i("span", Jn, T(" " + ((be = n.tableData) == null ? void 0 : be.filtered) || 0), 1)) : v("", !0)
|
1745
1748
|
])
|
1746
1749
|
]),
|
1747
|
-
Math.ceil(((fe = n.tableData) == null ? void 0 : fe.filtered) / n.limit) > 1 ? (r(), k(
|
1750
|
+
Math.ceil(((fe = n.tableData) == null ? void 0 : fe.filtered) / n.limit) > 1 ? (r(), k(Me, {
|
1748
1751
|
key: 0,
|
1749
1752
|
class: "justify-end",
|
1750
1753
|
"default-page": parseInt(o.defaultPage),
|
@@ -1774,7 +1777,7 @@ function Gn(t, e, s, a, n, o) {
|
|
1774
1777
|
])
|
1775
1778
|
]);
|
1776
1779
|
}
|
1777
|
-
const Kn = /* @__PURE__ */ w(
|
1780
|
+
const Kn = /* @__PURE__ */ w(Tn, [["render", Gn], ["__scopeId", "data-v-04810a3c"]]), Qn = {
|
1778
1781
|
components: { AdminTable: Kn },
|
1779
1782
|
data() {
|
1780
1783
|
return {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as x, I as J, s as C, a as K, u as T, b as W, c as X, d as Y, e as R } from "./import-file-
|
1
|
+
import { _ as x, I as J, s as C, a as K, u as T, b as W, c as X, d as Y, e as R } from "./import-file-DbQlaJ6F.js";
|
2
2
|
import { openBlock as s, createElementBlock as i, createElementVNode as o, createStaticVNode as A, resolveComponent as p, normalizeClass as f, createTextVNode as B, toDisplayString as N, createCommentVNode as w, createVNode as h, Transition as e1, withCtx as y, withDirectives as t1, Fragment as j, renderList as P, vShow as r1, createBlock as U, resolveDynamicComponent as S, withModifiers as l1 } from "vue";
|
3
3
|
const o1 = {}, n1 = {
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -521,8 +521,8 @@ const J1 = /* @__PURE__ */ x(S1, [["render", G1], ["__scopeId", "data-v-ebe4c2ff
|
|
521
521
|
class: "size-[40px] rounded-full bg-gray-200 flex items-center justify-center"
|
522
522
|
}, le = ["src"], oe = {
|
523
523
|
key: 1,
|
524
|
-
class: "
|
525
|
-
}, ne = { class: "grow" }, se = { class: "block font-medium text-
|
524
|
+
class: "flex items-center justify-center bg-gray-200 rounded-full size-10"
|
525
|
+
}, ne = { class: "grow" }, se = { class: "block text-sm font-medium text-gray-800 dark:text-neutral-200" }, ae = { class: "text-xs text-gray-500 dark:text-neutral-500" }, ie = { class: "flex flex-col space-y-0.5" };
|
526
526
|
function ue(t, e, l, u, n, r) {
|
527
527
|
var z, M, H, L;
|
528
528
|
const k = p("IconQuestion"), m = p("AdminNotification"), a = p("IconUser"), g = p("router-link"), b = p("IconUserOutline"), _ = p("IconLogout");
|
@@ -572,7 +572,7 @@ function ue(t, e, l, u, n, r) {
|
|
572
572
|
return [
|
573
573
|
(V = (v = n.userData) == null ? void 0 : v.user) != null && V.avatar ? (s(), i("img", {
|
574
574
|
key: 0,
|
575
|
-
class: "shrink-0 size-10
|
575
|
+
class: "rounded-full shrink-0 size-10",
|
576
576
|
src: ($ = (I = n.userData) == null ? void 0 : I.user) == null ? void 0 : $.avatar,
|
577
577
|
alt: "Image Description"
|
578
578
|
}, null, 8, le)) : (s(), i("div", oe, [
|
@@ -592,7 +592,7 @@ function ue(t, e, l, u, n, r) {
|
|
592
592
|
h(g, {
|
593
593
|
to: "profile",
|
594
594
|
class: "w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",
|
595
|
-
disabled:
|
595
|
+
disabled: "true"
|
596
596
|
}, {
|
597
597
|
default: y(() => [
|
598
598
|
h(b, { class: "size-4" }),
|
package/dist/admin.js
CHANGED