@opengis/admin 0.2.140 → 0.2.142
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-B_Q03qZm.js → add-page-B_ZKH0MW.js} +1 -1
- package/dist/{admin-interface-CDobnB79.js → admin-interface-Bi53mu_x.js} +77 -73
- package/dist/{admin-view-DUWblwKD.js → admin-view-Bb4cn5pu.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +72 -76
- package/dist/{card-view-BbOtMYjf.js → card-view-CKxwJVpe.js} +1 -1
- package/dist/{edit-page-BTCh_Gvu.js → edit-page-r5EJo8yr.js} +1 -1
- package/dist/{import-file-icaJwdj2.js → import-file-DI4iCkA9.js} +10930 -10932
- package/dist/{profile-page-C3Aq_lhq.js → profile-page-BrdxVeeY.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/server/routes/menu/controllers/interfaces.js +5 -3
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as h, u as p, f as u } from "./import-file-
|
1
|
+
import { _ as h, u as p, f as u } from "./import-file-DI4iCkA9.js";
|
2
2
|
import { resolveComponent as d, openBlock as b, createElementBlock as g, createElementVNode as n, createBlock as f, normalizeStyle as x, createCommentVNode as w } from "vue";
|
3
3
|
const y = {
|
4
4
|
data() {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as T, g as Be, h as Oe, i as Ne, f as j, I as Ue, j as
|
2
|
-
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as $, 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 et, createStaticVNode as tt, withDirectives as
|
1
|
+
import { _ as T, g as Be, h as Oe, i as Ne, f as j, I as Ue, j as Pe, k as U, A as E, V as Ee, l as He, m as Re, n as We, o as Je, p as Ge, q as Ke, a as Qe, r as Xe, t as Ye, u as Ve, s as Ze } from "./import-file-DI4iCkA9.js";
|
2
|
+
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as $, 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 et, createStaticVNode as tt, withDirectives as z, vModelCheckbox as st, Transition as B, vModelText as nt, renderSlot as lt, vShow as H, Teleport as rt, getCurrentInstance as Fe, ref as O, resolveDynamicComponent as N, defineComponent as at, normalizeStyle as De } from "vue";
|
3
3
|
const ot = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -215,7 +215,7 @@ function vt(t, e, n, o, s, a) {
|
|
215
215
|
}, 8, ["to"])) : v("", !0),
|
216
216
|
(r(!0), i(A, null, D(a.getCustomActions, (V, L) => (r(), i("button", {
|
217
217
|
key: L,
|
218
|
-
onClick: (
|
218
|
+
onClick: (M) => a.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" }),
|
@@ -553,7 +553,7 @@ const Qt = /* @__PURE__ */ T(Jt, [["render", Kt]]), Xt = {
|
|
553
553
|
props: { column: Object },
|
554
554
|
emits: ["update-column"],
|
555
555
|
components: {
|
556
|
-
IconCheck2:
|
556
|
+
IconCheck2: Pe
|
557
557
|
},
|
558
558
|
data() {
|
559
559
|
return {
|
@@ -576,7 +576,7 @@ function es(t, e, n, o, s, a) {
|
|
576
576
|
return r(), i("div", Yt, [
|
577
577
|
l("label", Zt, [
|
578
578
|
P($(((f = n.column) == null ? void 0 : f.ua) || ((h = n.column) == null ? void 0 : h.title)) + " ", 1),
|
579
|
-
|
579
|
+
z(l("input", {
|
580
580
|
type: "checkbox",
|
581
581
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
|
582
582
|
class: "hidden"
|
@@ -656,14 +656,14 @@ function us(t, e, n, o, s, a) {
|
|
656
656
|
width: "16"
|
657
657
|
})
|
658
658
|
]),
|
659
|
-
x(
|
659
|
+
x(B, { name: "fade" }, {
|
660
660
|
default: S(() => {
|
661
661
|
var h, b;
|
662
662
|
return [
|
663
663
|
s.visible ? (r(), i("div", ls, [
|
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", rs, [
|
666
|
-
|
666
|
+
z(l("input", {
|
667
667
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.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",
|
@@ -711,7 +711,7 @@ function bs(t, e, n, o, s, a) {
|
|
711
711
|
]));
|
712
712
|
}
|
713
713
|
const fs = /* @__PURE__ */ T(ps, [["render", bs]]), gs = {
|
714
|
-
components: { IconPlus:
|
714
|
+
components: { IconPlus: U, IconMinus: fs },
|
715
715
|
props: {
|
716
716
|
title: String,
|
717
717
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -742,12 +742,12 @@ function vs(t, e, n, o, s, a) {
|
|
742
742
|
})) : (r(), k(u, { key: 0 }))
|
743
743
|
])
|
744
744
|
]),
|
745
|
-
x(
|
745
|
+
x(B, { name: "fade" }, {
|
746
746
|
default: S(() => [
|
747
|
-
|
747
|
+
z(l("div", ks, [
|
748
748
|
lt(t.$slots, "default", {}, void 0, !0)
|
749
749
|
], 512), [
|
750
|
-
[
|
750
|
+
[H, s.expanded]
|
751
751
|
])
|
752
752
|
]),
|
753
753
|
_: 3
|
@@ -758,7 +758,7 @@ function vs(t, e, n, o, s, a) {
|
|
758
758
|
}
|
759
759
|
const _s = /* @__PURE__ */ T(gs, [["render", vs], ["__scopeId", "data-v-c6318482"]]), Cs = {
|
760
760
|
components: {
|
761
|
-
AdminComponentIs:
|
761
|
+
AdminComponentIs: E,
|
762
762
|
AdminTree: _s,
|
763
763
|
VsNoData: Ee,
|
764
764
|
VsWidgetComments: He,
|
@@ -904,12 +904,12 @@ function qs(t, e, n, o, s, a) {
|
|
904
904
|
e[4] || (e[4] = P(" Фільтри ")),
|
905
905
|
n.onFilters ? (r(), i("span", Ms, $(n.onFilters), 1)) : v("", !0)
|
906
906
|
]),
|
907
|
-
x(
|
907
|
+
x(B, { name: "fade" }, {
|
908
908
|
default: S(() => {
|
909
909
|
var h;
|
910
910
|
return [
|
911
911
|
(r(), k(rt, { to: "#modal" }, [
|
912
|
-
|
912
|
+
z(l("div", {
|
913
913
|
onClick: e[3] || (e[3] = (...b) => a.closeFilter && a.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)]"
|
@@ -932,7 +932,7 @@ function qs(t, e, n, o, s, a) {
|
|
932
932
|
}, null, 8, ["scheme", "token"])) : v("", !0)
|
933
933
|
])
|
934
934
|
], 512), [
|
935
|
-
[
|
935
|
+
[H, s.isFilters]
|
936
936
|
])
|
937
937
|
]))
|
938
938
|
];
|
@@ -980,7 +980,7 @@ function Js(t, e, n, o, s, a) {
|
|
980
980
|
]));
|
981
981
|
}
|
982
982
|
const Gs = /* @__PURE__ */ T(Rs, [["render", Js]]), Ks = {
|
983
|
-
components: { IconFilter2: Gs, IconCheck2:
|
983
|
+
components: { IconFilter2: Gs, IconCheck2: Pe },
|
984
984
|
props: { filterCustom: String, customList: Array }
|
985
985
|
}, Qs = { 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" }, Xs = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Ys = ["onClick"], Zs = { class: "text-sm text-gray-800" };
|
986
986
|
function en(t, e, n, o, s, a) {
|
@@ -1032,7 +1032,7 @@ const tn = /* @__PURE__ */ T(Ks, [["render", en]]), sn = { class: "flex items-ce
|
|
1032
1032
|
},
|
1033
1033
|
setup(t) {
|
1034
1034
|
var f, h, b, d, _;
|
1035
|
-
const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f =
|
1035
|
+
const { asyncTemplateSlot: e } = (_ = (d = (b = (h = (f = Fe()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, n = O(""), o = O(""), s = t, a = () => {
|
1036
1036
|
var m, g, C, y, w;
|
1037
1037
|
if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (C = (g = s.slots) == null ? void 0 : g.panelLeft) != null && C.includes("<")) {
|
1038
1038
|
const V = e("PanelLeft", (y = s.slots) == null ? void 0 : y.panelLeft, [
|
@@ -1052,8 +1052,8 @@ const tn = /* @__PURE__ */ T(Ks, [["render", en]]), sn = { class: "flex items-ce
|
|
1052
1052
|
n.value = (w = s.slots) == null ? void 0 : w.panelRight;
|
1053
1053
|
};
|
1054
1054
|
return a(), u(), (m, g) => (r(), i("div", sn, [
|
1055
|
-
(r(), k(
|
1056
|
-
(r(), k(
|
1055
|
+
(r(), k(N(o.value))),
|
1056
|
+
(r(), k(N(n.value)))
|
1057
1057
|
]));
|
1058
1058
|
}
|
1059
1059
|
}, ln = {
|
@@ -1063,7 +1063,7 @@ const tn = /* @__PURE__ */ T(Ks, [["render", en]]), sn = { class: "flex items-ce
|
|
1063
1063
|
},
|
1064
1064
|
setup(t) {
|
1065
1065
|
var a, u, f, h, b;
|
1066
|
-
const { asyncTemplateSlot: e } = (b = (h = (f = (u = (a =
|
1066
|
+
const { asyncTemplateSlot: e } = (b = (h = (f = (u = (a = Fe()) == null ? void 0 : a.appContext) == null ? void 0 : u.app) == null ? void 0 : f.config) == null ? void 0 : h.globalProperties) == null ? void 0 : b.utils, n = O(""), o = t;
|
1067
1067
|
return (() => {
|
1068
1068
|
var d, _, m, g, C;
|
1069
1069
|
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (m = (_ = o.slots) == null ? void 0 : _.addButton) != null && m.includes("<")) {
|
@@ -1073,9 +1073,9 @@ const tn = /* @__PURE__ */ T(Ks, [["render", en]]), sn = { class: "flex items-ce
|
|
1073
1073
|
n.value = y;
|
1074
1074
|
} else
|
1075
1075
|
n.value = (C = o.slots) == null ? void 0 : C.addButton;
|
1076
|
-
})(), (d, _) => n.value ? (r(), k(
|
1076
|
+
})(), (d, _) => n.value ? (r(), k(N(n.value), {
|
1077
1077
|
key: 0,
|
1078
|
-
IconPlus:
|
1078
|
+
IconPlus: U
|
1079
1079
|
})) : v("", !0);
|
1080
1080
|
}
|
1081
1081
|
}, rn = {
|
@@ -1099,7 +1099,7 @@ const tn = /* @__PURE__ */ T(Ks, [["render", en]]), sn = { class: "flex items-ce
|
|
1099
1099
|
key: o == null ? void 0 : o.name
|
1100
1100
|
}, [
|
1101
1101
|
(s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td", rn, [
|
1102
|
-
x(
|
1102
|
+
x(E, {
|
1103
1103
|
column: o,
|
1104
1104
|
row: t.agg
|
1105
1105
|
}, null, 8, ["column", "row"])
|
@@ -1252,7 +1252,7 @@ function vn(t, e, n, o, s, a) {
|
|
1252
1252
|
], 2),
|
1253
1253
|
t.pageSizes.length ? (r(), i("div", mn, [
|
1254
1254
|
l("div", xn, [
|
1255
|
-
|
1255
|
+
z(l("div", yn, [
|
1256
1256
|
(r(!0), i(A, null, D(t.pageSizes, (h) => (r(), i("button", {
|
1257
1257
|
type: "button",
|
1258
1258
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
@@ -1267,7 +1267,7 @@ function vn(t, e, n, o, s, a) {
|
|
1267
1267
|
})) : v("", !0)
|
1268
1268
|
], 8, kn))), 256))
|
1269
1269
|
], 512), [
|
1270
|
-
[
|
1270
|
+
[H, t.isDropdownOpen]
|
1271
1271
|
]),
|
1272
1272
|
t.pageSizes.length ? (r(), i("button", {
|
1273
1273
|
key: 0,
|
@@ -1294,11 +1294,11 @@ const _n = /* @__PURE__ */ T(hn, [["render", vn]]), Cn = {
|
|
1294
1294
|
AdminTableColumnsHidden: cs,
|
1295
1295
|
AdminTableColumn: pt,
|
1296
1296
|
AdminNodata: Ke,
|
1297
|
-
IconPlus:
|
1297
|
+
IconPlus: U,
|
1298
1298
|
IconSearch: Qe,
|
1299
1299
|
AdminTableCardInfo: js,
|
1300
1300
|
IconOpenCard: Xe,
|
1301
|
-
AdminComponentIs:
|
1301
|
+
AdminComponentIs: E,
|
1302
1302
|
AdminTableFilters: Bs,
|
1303
1303
|
AdminTableTabs: Hs,
|
1304
1304
|
AdminTableCustomFilters: tn,
|
@@ -1366,9 +1366,13 @@ const _n = /* @__PURE__ */ T(hn, [["render", vn]]), Cn = {
|
|
1366
1366
|
searchValue: {
|
1367
1367
|
handler: Ye(async function(t) {
|
1368
1368
|
var e;
|
1369
|
-
await this.getTableData(), this.$router.push({
|
1369
|
+
this.page = 1, await this.getTableData(), this.$router.push({
|
1370
1370
|
...this.$route,
|
1371
|
-
query: {
|
1371
|
+
query: {
|
1372
|
+
...(e = this.$route) == null ? void 0 : e.query,
|
1373
|
+
search: t || void 0,
|
1374
|
+
page: 1
|
1375
|
+
}
|
1372
1376
|
});
|
1373
1377
|
}, 500)
|
1374
1378
|
},
|
@@ -1413,8 +1417,8 @@ const _n = /* @__PURE__ */ T(hn, [["render", vn]]), Cn = {
|
|
1413
1417
|
},
|
1414
1418
|
methods: {
|
1415
1419
|
async checkUrlMounted() {
|
1416
|
-
var t, e, n, o, s, a, u, f, h, b, d, _, m, g, C, y, w, V, L;
|
1417
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, this.filters = ((
|
1420
|
+
var t, e, n, o, s, a, u, f, h, b, d, _, m, g, C, y, w, V, L, M, q;
|
1421
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (a = (s = this.$route) == null ? void 0 : s.query) != null && a.filter && (this.filters = ((h = decodeURI((f = (u = this.$route) == null ? void 0 : u.query) == null ? void 0 : f.filter)) == null ? void 0 : h.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((d = (b = this.filters) == null ? void 0 : b.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((m = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : m.filterState) || null, this.filterCustom = ((C = (g = this.$route) == null ? void 0 : g.query) == null ? void 0 : C.custom) || null, this.searchValue = ((w = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : w.search) || "", this.visibleColumns = ((M = (L = (V = this.$route) == null ? void 0 : V.query) == null ? void 0 : L.columns) == null ? void 0 : M.split(",")) || [], (q = this.$route) != null && q.query.card && (this.isVisibleCardInfo = !0);
|
1418
1422
|
},
|
1419
1423
|
rowWidth(t) {
|
1420
1424
|
var n, o;
|
@@ -1516,18 +1520,18 @@ const _n = /* @__PURE__ */ T(hn, [["render", vn]]), Cn = {
|
|
1516
1520
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1517
1521
|
};
|
1518
1522
|
function Wn(t, e, n, o, s, a) {
|
1519
|
-
var
|
1520
|
-
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"), w = p("AdminTableFilters"), V = p("IconOpenCard"), L = p("AdminTableColumn"),
|
1523
|
+
var R, W, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, re, ae, oe, ie, de, ue, ce, pe, he, be, fe, ge, me;
|
1524
|
+
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"), w = p("AdminTableFilters"), V = p("IconOpenCard"), L = p("AdminTableColumn"), M = p("AdminComponentIs"), q = p("AdminTableControl"), je = p("AdminTableTotalsList"), Le = p("AdminNodata"), Me = p("AdminTablePagination"), ze = p("AdminTableCardInfo");
|
1521
1525
|
return r(), i("div", wn, [
|
1522
1526
|
l("div", $n, [
|
1523
1527
|
l("h2", An, $(n.title), 1),
|
1524
1528
|
a.isForm ? (r(), i(A, { key: 0 }, [
|
1525
|
-
(
|
1529
|
+
(W = (R = s.tableData) == null ? void 0 : R.slots) != null && W.addButton ? (r(), k(u, {
|
1526
1530
|
key: 0,
|
1527
|
-
slots: (
|
1531
|
+
slots: (J = s.tableData) == null ? void 0 : J.slots
|
1528
1532
|
}, null, 8, ["slots"])) : (r(), k(h, {
|
1529
1533
|
key: 1,
|
1530
|
-
to: `/add?table=${(
|
1534
|
+
to: `/add?table=${(K = (G = t.$route) == null ? void 0 : G.params) == null ? void 0 : K.catchAll}`,
|
1531
1535
|
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"
|
1532
1536
|
}, {
|
1533
1537
|
default: S(() => [
|
@@ -1543,9 +1547,9 @@ function Wn(t, e, n, o, s, a) {
|
|
1543
1547
|
]),
|
1544
1548
|
l("div", Tn, [
|
1545
1549
|
l("div", Sn, [
|
1546
|
-
(
|
1550
|
+
(X = (Q = s.tableData) == null ? void 0 : Q.filterState) != null && X.length ? (r(), k(b, {
|
1547
1551
|
key: 0,
|
1548
|
-
tabsList: (
|
1552
|
+
tabsList: (Y = s.tableData) == null ? void 0 : Y.filterState,
|
1549
1553
|
filterState: s.filterState,
|
1550
1554
|
"onUpdate:filterState": e[0] || (e[0] = (c) => s.filterState = c)
|
1551
1555
|
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
@@ -1569,30 +1573,30 @@ function Wn(t, e, n, o, s, a) {
|
|
1569
1573
|
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"
|
1570
1574
|
}, null, 8, ["modelValue", "placeholder"]),
|
1571
1575
|
l("div", Vn, [
|
1572
|
-
(
|
1576
|
+
(Z = s.tableData) != null && Z.slots ? (r(), k(m, {
|
1573
1577
|
key: 0,
|
1574
|
-
slots: (
|
1578
|
+
slots: (ee = s.tableData) == null ? void 0 : ee.slots
|
1575
1579
|
}, null, 8, ["slots"])) : v("", !0),
|
1576
|
-
(
|
1580
|
+
(se = (te = s.tableData) == null ? void 0 : te.filterCustom) != null && se.length ? (r(), k(g, {
|
1577
1581
|
key: 1,
|
1578
|
-
customList: (
|
1582
|
+
customList: (ne = s.tableData) == null ? void 0 : ne.filterCustom,
|
1579
1583
|
filterCustom: s.filterCustom,
|
1580
1584
|
"onUpdate:filterCustom": e[2] || (e[2] = (c) => s.filterCustom = c)
|
1581
1585
|
}, null, 8, ["customList", "filterCustom"])) : v("", !0),
|
1582
1586
|
x(C, {
|
1583
|
-
columns: (
|
1587
|
+
columns: (le = s.tableData) == null ? void 0 : le.columns,
|
1584
1588
|
onUpdateColumns: e[3] || (e[3] = (c) => s.tableData.columns = c)
|
1585
1589
|
}, null, 8, ["columns"]),
|
1586
|
-
((
|
1590
|
+
((re = s.tableData) == null ? void 0 : re.export) !== !1 ? (r(), k(y, {
|
1587
1591
|
key: 2,
|
1588
1592
|
table: n.table,
|
1589
|
-
columns: (
|
1593
|
+
columns: (ae = s.tableData) == null ? void 0 : ae.columns,
|
1590
1594
|
page: s.page,
|
1591
1595
|
"filter-state": s.filterState,
|
1592
1596
|
"filter-custom": s.filterCustom,
|
1593
1597
|
filters: s.filters
|
1594
1598
|
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
|
1595
|
-
(
|
1599
|
+
(oe = s.filterScheme) != null && oe.length ? (r(), k(w, {
|
1596
1600
|
key: 3,
|
1597
1601
|
scheme: s.filterScheme,
|
1598
1602
|
onFilters: s.onFilters,
|
@@ -1613,8 +1617,8 @@ function Wn(t, e, n, o, s, a) {
|
|
1613
1617
|
class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1614
1618
|
}, [
|
1615
1619
|
l("div", {
|
1616
|
-
style:
|
1617
|
-
height: (
|
1620
|
+
style: De({
|
1621
|
+
height: (de = (ie = s.tableData) == null ? void 0 : ie.filterState) != null && de.length ? "calc(100vh - 370px)" : "calc(100vh - 310px)"
|
1618
1622
|
}),
|
1619
1623
|
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"
|
1620
1624
|
}, [
|
@@ -1624,7 +1628,7 @@ function Wn(t, e, n, o, s, a) {
|
|
1624
1628
|
l("tr", jn, [
|
1625
1629
|
(r(!0), i(A, null, D(a.columns, (c) => (r(), k(L, {
|
1626
1630
|
key: c.name,
|
1627
|
-
style:
|
1631
|
+
style: De({
|
1628
1632
|
width: a.rowWidth(c == null ? void 0 : c.name),
|
1629
1633
|
textAlign: c == null ? void 0 : c.align,
|
1630
1634
|
wordBreak: c == null ? void 0 : c.wrap
|
@@ -1633,23 +1637,23 @@ function Wn(t, e, n, o, s, a) {
|
|
1633
1637
|
activeColumn: s.activeColumn,
|
1634
1638
|
onChangeActive: a.changeActiveColumn
|
1635
1639
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1636
|
-
(
|
1640
|
+
(ce = (ue = a.getActions) == null ? void 0 : ue.filter(
|
1637
1641
|
(c) => c !== "add" && c !== "view"
|
1638
|
-
)) != null &&
|
1642
|
+
)) != null && ce.length ? (r(), i("th", Ln)) : v("", !0)
|
1639
1643
|
])
|
1640
1644
|
]),
|
1641
1645
|
l("tbody", Mn, [
|
1642
|
-
(r(!0), i(A, null, D((
|
1643
|
-
var
|
1646
|
+
(r(!0), i(A, null, D((pe = s.tableData) == null ? void 0 : pe.rows, (c, qe) => {
|
1647
|
+
var xe, ye, ke, ve, _e, Ce, we, $e, Ae, Te, Se, Ie;
|
1644
1648
|
return r(), i("tr", {
|
1645
1649
|
key: (c == null ? void 0 : c.id) || qe,
|
1646
1650
|
class: I({
|
1647
|
-
"bg-gray-50": ((
|
1651
|
+
"bg-gray-50": ((ye = (xe = t.$route) == null ? void 0 : xe.query) == null ? void 0 : ye.card) === (c == null ? void 0 : c.id)
|
1648
1652
|
})
|
1649
1653
|
}, [
|
1650
1654
|
l("td", {
|
1651
1655
|
class: I(["px-1 py-3 text-gray-600 pe-4", [
|
1652
|
-
(
|
1656
|
+
(ke = a.columns[0]) != null && ke.align ? `text-${((ve = a.columns[0]) == null ? void 0 : ve.align) || "left"}` : ""
|
1653
1657
|
]]),
|
1654
1658
|
onClick: (F) => a.changeActiveCardInfo(c == null ? void 0 : c.id)
|
1655
1659
|
}, [
|
@@ -1659,10 +1663,10 @@ function Wn(t, e, n, o, s, a) {
|
|
1659
1663
|
},
|
1660
1664
|
class: I(["font-medium text-start", [
|
1661
1665
|
...a.getCustomStyles(a.columns[0]),
|
1662
|
-
((
|
1666
|
+
((_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"
|
1663
1667
|
]])
|
1664
1668
|
}, [
|
1665
|
-
x(
|
1669
|
+
x(M, {
|
1666
1670
|
row: c,
|
1667
1671
|
column: a.columns[0],
|
1668
1672
|
table: n.table,
|
@@ -1670,30 +1674,30 @@ function Wn(t, e, n, o, s, a) {
|
|
1670
1674
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1671
1675
|
], 10, qn)
|
1672
1676
|
], 10, zn),
|
1673
|
-
(r(!0), i(A, null, D((
|
1677
|
+
(r(!0), i(A, null, D((Ce = a.columns) == null ? void 0 : Ce.slice(1), (F) => (r(), i("td", {
|
1674
1678
|
onClick: (Xn) => {
|
1675
1679
|
a.changeActiveCardInfo(c == null ? void 0 : c.id), a.pushToLinkCard(F, c);
|
1676
1680
|
},
|
1677
1681
|
class: I(["px-1 py-3 text-gray-600 pe-3", a.getCustomStyles(F)]),
|
1678
1682
|
key: F.name
|
1679
1683
|
}, [
|
1680
|
-
x(
|
1684
|
+
x(M, {
|
1681
1685
|
row: c,
|
1682
1686
|
column: F,
|
1683
1687
|
table: n.table,
|
1684
1688
|
onUpdateTable: a.getTableData
|
1685
1689
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1686
1690
|
], 10, Bn))), 128)),
|
1687
|
-
(
|
1691
|
+
($e = (we = a.getActions) == null ? void 0 : we.filter(
|
1688
1692
|
(F) => F !== "add" && F !== "view"
|
1689
|
-
)) != null &&
|
1693
|
+
)) != null && $e.length ? (r(), i("td", {
|
1690
1694
|
key: 0,
|
1691
1695
|
class: I(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1692
|
-
"bg-gray-50": ((
|
1693
|
-
"bg-white": ((
|
1696
|
+
"bg-gray-50": ((Te = (Ae = t.$route) == null ? void 0 : Ae.query) == null ? void 0 : Te.card) === (c == null ? void 0 : c.id),
|
1697
|
+
"bg-white": ((Ie = (Se = t.$route) == null ? void 0 : Se.query) == null ? void 0 : Ie.card) !== (c == null ? void 0 : c.id)
|
1694
1698
|
}])
|
1695
1699
|
}, [
|
1696
|
-
x(
|
1700
|
+
x(q, {
|
1697
1701
|
actions: a.getActions,
|
1698
1702
|
isForm: a.isForm,
|
1699
1703
|
item: c,
|
@@ -1706,7 +1710,7 @@ function Wn(t, e, n, o, s, a) {
|
|
1706
1710
|
]),
|
1707
1711
|
x(je, {
|
1708
1712
|
columns: a.columns,
|
1709
|
-
agg: (
|
1713
|
+
agg: (he = s.tableData) == null ? void 0 : he.agg
|
1710
1714
|
}, null, 8, ["columns", "agg"])
|
1711
1715
|
]))
|
1712
1716
|
])
|
@@ -1716,24 +1720,24 @@ function Wn(t, e, n, o, s, a) {
|
|
1716
1720
|
l("div", Nn, [
|
1717
1721
|
l("p", Un, [
|
1718
1722
|
l("span", En, [
|
1719
|
-
P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((
|
1723
|
+
P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((be = s.tableData) == null ? void 0 : be.count) || "0 ") + " ", 1),
|
1720
1724
|
s.filters || s.searchValue ? (r(), i("span", Hn, " з")) : v("", !0)
|
1721
1725
|
]),
|
1722
|
-
s.filters || s.searchValue ? (r(), i("span", Rn, $(" " + ((
|
1726
|
+
s.filters || s.searchValue ? (r(), i("span", Rn, $(" " + ((fe = s.tableData) == null ? void 0 : fe.filtered) || 0), 1)) : v("", !0)
|
1723
1727
|
])
|
1724
1728
|
]),
|
1725
|
-
Math.ceil(((
|
1729
|
+
Math.ceil(((ge = s.tableData) == null ? void 0 : ge.filtered) / s.limit) > 1 ? (r(), k(Me, {
|
1726
1730
|
key: 0,
|
1727
1731
|
class: "justify-end",
|
1728
1732
|
"default-page": parseInt(a.defaultPage),
|
1729
|
-
total: ((
|
1733
|
+
total: ((me = s.tableData) == null ? void 0 : me.filtered) || 0,
|
1730
1734
|
onPageChange: a.handlePageChange,
|
1731
1735
|
pageSize: parseInt(s.limit),
|
1732
1736
|
pageSizes: [10, 20, 50, 100]
|
1733
1737
|
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : v("", !0)
|
1734
1738
|
])
|
1735
1739
|
], 2),
|
1736
|
-
x(
|
1740
|
+
x(B, { name: "slide-fade" }, {
|
1737
1741
|
default: S(() => {
|
1738
1742
|
var c;
|
1739
1743
|
return [
|
@@ -1752,7 +1756,7 @@ function Wn(t, e, n, o, s, a) {
|
|
1752
1756
|
])
|
1753
1757
|
]);
|
1754
1758
|
}
|
1755
|
-
const Jn = /* @__PURE__ */ T(Cn, [["render", Wn], ["__scopeId", "data-v-
|
1759
|
+
const Jn = /* @__PURE__ */ T(Cn, [["render", Wn], ["__scopeId", "data-v-8ed9e498"]]), Gn = {
|
1756
1760
|
components: { AdminTable: Jn },
|
1757
1761
|
data() {
|
1758
1762
|
return {
|
@@ -1765,7 +1769,7 @@ const Jn = /* @__PURE__ */ T(Cn, [["render", Wn], ["__scopeId", "data-v-d6f0f678
|
|
1765
1769
|
$route: {
|
1766
1770
|
async handler() {
|
1767
1771
|
var t;
|
1768
|
-
(t =
|
1772
|
+
(t = Ve) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1769
1773
|
},
|
1770
1774
|
deep: !0
|
1771
1775
|
},
|
@@ -1786,7 +1790,7 @@ const Jn = /* @__PURE__ */ T(Cn, [["render", Wn], ["__scopeId", "data-v-d6f0f678
|
|
1786
1790
|
},
|
1787
1791
|
async checkPageType() {
|
1788
1792
|
var o, s;
|
1789
|
-
const t = this.flattenMenu(
|
1793
|
+
const t = this.flattenMenu(Ve.value);
|
1790
1794
|
t != null && t.length || this.$router.replace("/404");
|
1791
1795
|
const e = t == null ? void 0 : t.find((a) => {
|
1792
1796
|
var u, f;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as C, I as G, s as v, a as J, u as T, b as K, c as W, d as X, e as Y, f as ee } from "./import-file-
|
1
|
+
import { _ as C, I as G, s as v, a as J, u as T, b as K, c as W, d as X, e as Y, f as ee } from "./import-file-DI4iCkA9.js";
|
2
2
|
import { openBlock as s, createElementBlock as a, createElementVNode as o, createStaticVNode as A, resolveComponent as g, normalizeClass as p, createTextVNode as L, toDisplayString as V, createCommentVNode as _, createVNode as d, Transition as te, withCtx as k, withDirectives as re, Fragment as Z, renderList as P, vShow as le, createBlock as U, resolveDynamicComponent as S, withModifiers as oe } from "vue";
|
3
3
|
import "./user-B_2kh6ic.js";
|
4
4
|
const ne = {}, se = {
|
package/dist/admin.js
CHANGED