@opengis/admin 0.2.140 → 0.2.141
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-Dna403PY.js} +1 -1
- package/dist/{admin-interface-CDobnB79.js → admin-interface-n7krehi1.js} +71 -71
- package/dist/{admin-view-DUWblwKD.js → admin-view-Dp9Jn_gW.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +1 -1
- package/dist/{card-view-BbOtMYjf.js → card-view-1-hW2Aso.js} +1 -1
- package/dist/{edit-page-BTCh_Gvu.js → edit-page-Cpwcb_2h.js} +1 -1
- package/dist/{import-file-icaJwdj2.js → import-file-CEoD5SfN.js} +7 -7
- package/dist/{profile-page-C3Aq_lhq.js → profile-page-BpYgMVwe.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -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-CEoD5SfN.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-CEoD5SfN.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,
|
@@ -1413,8 +1413,8 @@ const _n = /* @__PURE__ */ T(hn, [["render", vn]]), Cn = {
|
|
1413
1413
|
},
|
1414
1414
|
methods: {
|
1415
1415
|
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 = ((
|
1416
|
+
var t, e, n, o, s, a, u, f, h, b, d, _, m, g, C, y, w, V, L, M, q;
|
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, (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
1418
|
},
|
1419
1419
|
rowWidth(t) {
|
1420
1420
|
var n, o;
|
@@ -1516,18 +1516,18 @@ const _n = /* @__PURE__ */ T(hn, [["render", vn]]), Cn = {
|
|
1516
1516
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1517
1517
|
};
|
1518
1518
|
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"),
|
1519
|
+
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;
|
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"), M = p("AdminComponentIs"), q = p("AdminTableControl"), je = p("AdminTableTotalsList"), Le = p("AdminNodata"), Me = p("AdminTablePagination"), ze = p("AdminTableCardInfo");
|
1521
1521
|
return r(), i("div", wn, [
|
1522
1522
|
l("div", $n, [
|
1523
1523
|
l("h2", An, $(n.title), 1),
|
1524
1524
|
a.isForm ? (r(), i(A, { key: 0 }, [
|
1525
|
-
(
|
1525
|
+
(W = (R = s.tableData) == null ? void 0 : R.slots) != null && W.addButton ? (r(), k(u, {
|
1526
1526
|
key: 0,
|
1527
|
-
slots: (
|
1527
|
+
slots: (J = s.tableData) == null ? void 0 : J.slots
|
1528
1528
|
}, null, 8, ["slots"])) : (r(), k(h, {
|
1529
1529
|
key: 1,
|
1530
|
-
to: `/add?table=${(
|
1530
|
+
to: `/add?table=${(K = (G = t.$route) == null ? void 0 : G.params) == null ? void 0 : K.catchAll}`,
|
1531
1531
|
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
1532
|
}, {
|
1533
1533
|
default: S(() => [
|
@@ -1543,9 +1543,9 @@ function Wn(t, e, n, o, s, a) {
|
|
1543
1543
|
]),
|
1544
1544
|
l("div", Tn, [
|
1545
1545
|
l("div", Sn, [
|
1546
|
-
(
|
1546
|
+
(X = (Q = s.tableData) == null ? void 0 : Q.filterState) != null && X.length ? (r(), k(b, {
|
1547
1547
|
key: 0,
|
1548
|
-
tabsList: (
|
1548
|
+
tabsList: (Y = s.tableData) == null ? void 0 : Y.filterState,
|
1549
1549
|
filterState: s.filterState,
|
1550
1550
|
"onUpdate:filterState": e[0] || (e[0] = (c) => s.filterState = c)
|
1551
1551
|
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
@@ -1569,30 +1569,30 @@ function Wn(t, e, n, o, s, a) {
|
|
1569
1569
|
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
1570
|
}, null, 8, ["modelValue", "placeholder"]),
|
1571
1571
|
l("div", Vn, [
|
1572
|
-
(
|
1572
|
+
(Z = s.tableData) != null && Z.slots ? (r(), k(m, {
|
1573
1573
|
key: 0,
|
1574
|
-
slots: (
|
1574
|
+
slots: (ee = s.tableData) == null ? void 0 : ee.slots
|
1575
1575
|
}, null, 8, ["slots"])) : v("", !0),
|
1576
|
-
(
|
1576
|
+
(se = (te = s.tableData) == null ? void 0 : te.filterCustom) != null && se.length ? (r(), k(g, {
|
1577
1577
|
key: 1,
|
1578
|
-
customList: (
|
1578
|
+
customList: (ne = s.tableData) == null ? void 0 : ne.filterCustom,
|
1579
1579
|
filterCustom: s.filterCustom,
|
1580
1580
|
"onUpdate:filterCustom": e[2] || (e[2] = (c) => s.filterCustom = c)
|
1581
1581
|
}, null, 8, ["customList", "filterCustom"])) : v("", !0),
|
1582
1582
|
x(C, {
|
1583
|
-
columns: (
|
1583
|
+
columns: (le = s.tableData) == null ? void 0 : le.columns,
|
1584
1584
|
onUpdateColumns: e[3] || (e[3] = (c) => s.tableData.columns = c)
|
1585
1585
|
}, null, 8, ["columns"]),
|
1586
|
-
((
|
1586
|
+
((re = s.tableData) == null ? void 0 : re.export) !== !1 ? (r(), k(y, {
|
1587
1587
|
key: 2,
|
1588
1588
|
table: n.table,
|
1589
|
-
columns: (
|
1589
|
+
columns: (ae = s.tableData) == null ? void 0 : ae.columns,
|
1590
1590
|
page: s.page,
|
1591
1591
|
"filter-state": s.filterState,
|
1592
1592
|
"filter-custom": s.filterCustom,
|
1593
1593
|
filters: s.filters
|
1594
1594
|
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
|
1595
|
-
(
|
1595
|
+
(oe = s.filterScheme) != null && oe.length ? (r(), k(w, {
|
1596
1596
|
key: 3,
|
1597
1597
|
scheme: s.filterScheme,
|
1598
1598
|
onFilters: s.onFilters,
|
@@ -1613,8 +1613,8 @@ function Wn(t, e, n, o, s, a) {
|
|
1613
1613
|
class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1614
1614
|
}, [
|
1615
1615
|
l("div", {
|
1616
|
-
style:
|
1617
|
-
height: (
|
1616
|
+
style: De({
|
1617
|
+
height: (de = (ie = s.tableData) == null ? void 0 : ie.filterState) != null && de.length ? "calc(100vh - 370px)" : "calc(100vh - 310px)"
|
1618
1618
|
}),
|
1619
1619
|
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
1620
|
}, [
|
@@ -1624,7 +1624,7 @@ function Wn(t, e, n, o, s, a) {
|
|
1624
1624
|
l("tr", jn, [
|
1625
1625
|
(r(!0), i(A, null, D(a.columns, (c) => (r(), k(L, {
|
1626
1626
|
key: c.name,
|
1627
|
-
style:
|
1627
|
+
style: De({
|
1628
1628
|
width: a.rowWidth(c == null ? void 0 : c.name),
|
1629
1629
|
textAlign: c == null ? void 0 : c.align,
|
1630
1630
|
wordBreak: c == null ? void 0 : c.wrap
|
@@ -1633,23 +1633,23 @@ function Wn(t, e, n, o, s, a) {
|
|
1633
1633
|
activeColumn: s.activeColumn,
|
1634
1634
|
onChangeActive: a.changeActiveColumn
|
1635
1635
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1636
|
-
(
|
1636
|
+
(ce = (ue = a.getActions) == null ? void 0 : ue.filter(
|
1637
1637
|
(c) => c !== "add" && c !== "view"
|
1638
|
-
)) != null &&
|
1638
|
+
)) != null && ce.length ? (r(), i("th", Ln)) : v("", !0)
|
1639
1639
|
])
|
1640
1640
|
]),
|
1641
1641
|
l("tbody", Mn, [
|
1642
|
-
(r(!0), i(A, null, D((
|
1643
|
-
var
|
1642
|
+
(r(!0), i(A, null, D((pe = s.tableData) == null ? void 0 : pe.rows, (c, qe) => {
|
1643
|
+
var xe, ye, ke, ve, _e, Ce, we, $e, Ae, Te, Se, Ie;
|
1644
1644
|
return r(), i("tr", {
|
1645
1645
|
key: (c == null ? void 0 : c.id) || qe,
|
1646
1646
|
class: I({
|
1647
|
-
"bg-gray-50": ((
|
1647
|
+
"bg-gray-50": ((ye = (xe = t.$route) == null ? void 0 : xe.query) == null ? void 0 : ye.card) === (c == null ? void 0 : c.id)
|
1648
1648
|
})
|
1649
1649
|
}, [
|
1650
1650
|
l("td", {
|
1651
1651
|
class: I(["px-1 py-3 text-gray-600 pe-4", [
|
1652
|
-
(
|
1652
|
+
(ke = a.columns[0]) != null && ke.align ? `text-${((ve = a.columns[0]) == null ? void 0 : ve.align) || "left"}` : ""
|
1653
1653
|
]]),
|
1654
1654
|
onClick: (F) => a.changeActiveCardInfo(c == null ? void 0 : c.id)
|
1655
1655
|
}, [
|
@@ -1659,10 +1659,10 @@ function Wn(t, e, n, o, s, a) {
|
|
1659
1659
|
},
|
1660
1660
|
class: I(["font-medium text-start", [
|
1661
1661
|
...a.getCustomStyles(a.columns[0]),
|
1662
|
-
((
|
1662
|
+
((_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
1663
|
]])
|
1664
1664
|
}, [
|
1665
|
-
x(
|
1665
|
+
x(M, {
|
1666
1666
|
row: c,
|
1667
1667
|
column: a.columns[0],
|
1668
1668
|
table: n.table,
|
@@ -1670,30 +1670,30 @@ function Wn(t, e, n, o, s, a) {
|
|
1670
1670
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1671
1671
|
], 10, qn)
|
1672
1672
|
], 10, zn),
|
1673
|
-
(r(!0), i(A, null, D((
|
1673
|
+
(r(!0), i(A, null, D((Ce = a.columns) == null ? void 0 : Ce.slice(1), (F) => (r(), i("td", {
|
1674
1674
|
onClick: (Xn) => {
|
1675
1675
|
a.changeActiveCardInfo(c == null ? void 0 : c.id), a.pushToLinkCard(F, c);
|
1676
1676
|
},
|
1677
1677
|
class: I(["px-1 py-3 text-gray-600 pe-3", a.getCustomStyles(F)]),
|
1678
1678
|
key: F.name
|
1679
1679
|
}, [
|
1680
|
-
x(
|
1680
|
+
x(M, {
|
1681
1681
|
row: c,
|
1682
1682
|
column: F,
|
1683
1683
|
table: n.table,
|
1684
1684
|
onUpdateTable: a.getTableData
|
1685
1685
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1686
1686
|
], 10, Bn))), 128)),
|
1687
|
-
(
|
1687
|
+
($e = (we = a.getActions) == null ? void 0 : we.filter(
|
1688
1688
|
(F) => F !== "add" && F !== "view"
|
1689
|
-
)) != null &&
|
1689
|
+
)) != null && $e.length ? (r(), i("td", {
|
1690
1690
|
key: 0,
|
1691
1691
|
class: I(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1692
|
-
"bg-gray-50": ((
|
1693
|
-
"bg-white": ((
|
1692
|
+
"bg-gray-50": ((Te = (Ae = t.$route) == null ? void 0 : Ae.query) == null ? void 0 : Te.card) === (c == null ? void 0 : c.id),
|
1693
|
+
"bg-white": ((Ie = (Se = t.$route) == null ? void 0 : Se.query) == null ? void 0 : Ie.card) !== (c == null ? void 0 : c.id)
|
1694
1694
|
}])
|
1695
1695
|
}, [
|
1696
|
-
x(
|
1696
|
+
x(q, {
|
1697
1697
|
actions: a.getActions,
|
1698
1698
|
isForm: a.isForm,
|
1699
1699
|
item: c,
|
@@ -1706,7 +1706,7 @@ function Wn(t, e, n, o, s, a) {
|
|
1706
1706
|
]),
|
1707
1707
|
x(je, {
|
1708
1708
|
columns: a.columns,
|
1709
|
-
agg: (
|
1709
|
+
agg: (he = s.tableData) == null ? void 0 : he.agg
|
1710
1710
|
}, null, 8, ["columns", "agg"])
|
1711
1711
|
]))
|
1712
1712
|
])
|
@@ -1716,24 +1716,24 @@ function Wn(t, e, n, o, s, a) {
|
|
1716
1716
|
l("div", Nn, [
|
1717
1717
|
l("p", Un, [
|
1718
1718
|
l("span", En, [
|
1719
|
-
P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((
|
1719
|
+
P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((be = s.tableData) == null ? void 0 : be.count) || "0 ") + " ", 1),
|
1720
1720
|
s.filters || s.searchValue ? (r(), i("span", Hn, " з")) : v("", !0)
|
1721
1721
|
]),
|
1722
|
-
s.filters || s.searchValue ? (r(), i("span", Rn, $(" " + ((
|
1722
|
+
s.filters || s.searchValue ? (r(), i("span", Rn, $(" " + ((fe = s.tableData) == null ? void 0 : fe.filtered) || 0), 1)) : v("", !0)
|
1723
1723
|
])
|
1724
1724
|
]),
|
1725
|
-
Math.ceil(((
|
1725
|
+
Math.ceil(((ge = s.tableData) == null ? void 0 : ge.filtered) / s.limit) > 1 ? (r(), k(Me, {
|
1726
1726
|
key: 0,
|
1727
1727
|
class: "justify-end",
|
1728
1728
|
"default-page": parseInt(a.defaultPage),
|
1729
|
-
total: ((
|
1729
|
+
total: ((me = s.tableData) == null ? void 0 : me.filtered) || 0,
|
1730
1730
|
onPageChange: a.handlePageChange,
|
1731
1731
|
pageSize: parseInt(s.limit),
|
1732
1732
|
pageSizes: [10, 20, 50, 100]
|
1733
1733
|
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : v("", !0)
|
1734
1734
|
])
|
1735
1735
|
], 2),
|
1736
|
-
x(
|
1736
|
+
x(B, { name: "slide-fade" }, {
|
1737
1737
|
default: S(() => {
|
1738
1738
|
var c;
|
1739
1739
|
return [
|
@@ -1752,7 +1752,7 @@ function Wn(t, e, n, o, s, a) {
|
|
1752
1752
|
])
|
1753
1753
|
]);
|
1754
1754
|
}
|
1755
|
-
const Jn = /* @__PURE__ */ T(Cn, [["render", Wn], ["__scopeId", "data-v-
|
1755
|
+
const Jn = /* @__PURE__ */ T(Cn, [["render", Wn], ["__scopeId", "data-v-29758291"]]), Gn = {
|
1756
1756
|
components: { AdminTable: Jn },
|
1757
1757
|
data() {
|
1758
1758
|
return {
|
@@ -1765,7 +1765,7 @@ const Jn = /* @__PURE__ */ T(Cn, [["render", Wn], ["__scopeId", "data-v-d6f0f678
|
|
1765
1765
|
$route: {
|
1766
1766
|
async handler() {
|
1767
1767
|
var t;
|
1768
|
-
(t =
|
1768
|
+
(t = Ve) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1769
1769
|
},
|
1770
1770
|
deep: !0
|
1771
1771
|
},
|
@@ -1786,7 +1786,7 @@ const Jn = /* @__PURE__ */ T(Cn, [["render", Wn], ["__scopeId", "data-v-d6f0f678
|
|
1786
1786
|
},
|
1787
1787
|
async checkPageType() {
|
1788
1788
|
var o, s;
|
1789
|
-
const t = this.flattenMenu(
|
1789
|
+
const t = this.flattenMenu(Ve.value);
|
1790
1790
|
t != null && t.length || this.$router.replace("/404");
|
1791
1791
|
const e = t == null ? void 0 : t.find((a) => {
|
1792
1792
|
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-CEoD5SfN.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