@opengis/admin 0.2.11 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{IconChevronDown-Dip6VVsH.js → IconChevronDown-1ZySxgQZ.js} +1 -1
- package/dist/{add-page-CC1XHvy1.js → add-page-BSg52c21.js} +1 -1
- package/dist/{admin-interface-ChcBUgQj.js → admin-interface-JC-7tMdA.js} +99 -97
- package/dist/{admin-view-DdEXq0Hx.js → admin-view-DkrPXGLR.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +53 -53
- package/dist/{card-view-BHColcT9.js → card-view-cOpfyZQG.js} +1 -1
- package/dist/{edit-page-LAVu1J0K.js → edit-page-DiRmjgvq.js} +1 -1
- package/dist/{import-file-COsQTJsA.js → import-file-0AVdPTVF.js} +5561 -5619
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock as e, createElementBlock as t, createElementVNode as n } from "vue";
|
2
|
-
import { _ as r } from "./import-file-
|
2
|
+
import { _ as r } from "./import-file-0AVdPTVF.js";
|
3
3
|
const l = {}, s = {
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
5
5
|
viewBox: "0 0 24 24",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as g, u as f, c as u } from "./import-file-
|
1
|
+
import { _ as g, u as f, c as u } from "./import-file-0AVdPTVF.js";
|
2
2
|
import { resolveComponent as x, openBlock as d, createElementBlock as w, createElementVNode as n, createBlock as k, createCommentVNode as y } from "vue";
|
3
3
|
const v = {
|
4
4
|
data() {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as v, d as
|
2
|
-
import { openBlock as o, createElementBlock as a, createTextVNode as j, toDisplayString as
|
3
|
-
import { I as Ee } from "./IconChevronDown-
|
1
|
+
import { _ as v, d as Ve, c as F, V as De, e as Fe, f as je, g as Me, A as qe, I as ze, u as _e, s as Le } from "./import-file-0AVdPTVF.js";
|
2
|
+
import { openBlock as o, createElementBlock as a, createTextVNode as j, toDisplayString as I, createCommentVNode as w, createStaticVNode as L, Fragment as S, createElementVNode as l, resolveComponent as h, createVNode as x, withCtx as $, createBlock as _, renderList as D, withModifiers as Pe, normalizeClass as V, withDirectives as P, vModelCheckbox as Be, resolveDynamicComponent as z, Transition as B, renderSlot as Ue, vShow as we, getCurrentInstance as Oe, ref as ve, normalizeStyle as ke } from "vue";
|
3
|
+
import { I as Ee } from "./IconChevronDown-1ZySxgQZ.js";
|
4
4
|
const Ne = {
|
5
5
|
data() {
|
6
6
|
return {
|
@@ -91,12 +91,12 @@ function Je(t, e, s, i, n, r) {
|
|
91
91
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal flex items-center gap-[6px]",
|
92
92
|
onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(n.currentSort))
|
93
93
|
}, [
|
94
|
-
j(
|
94
|
+
j(I(r.label) + " ", 1),
|
95
95
|
(o(), a("svg", Re, [
|
96
96
|
n.currentSort === "asc" || n.currentSort === "" ? (o(), a("path", We)) : w("", !0),
|
97
97
|
n.currentSort === "desc" || n.currentSort === "" ? (o(), a("path", Ze)) : w("", !0)
|
98
98
|
]))
|
99
|
-
])) : (o(), a("p", Ge,
|
99
|
+
])) : (o(), a("p", Ge, I(r.label), 1))
|
100
100
|
]);
|
101
101
|
}
|
102
102
|
const Ke = /* @__PURE__ */ v(Ne, [["render", Je]]), Qe = {}, Xe = {
|
@@ -142,7 +142,7 @@ function lt(t, e, s, i, n, r) {
|
|
142
142
|
}
|
143
143
|
const ot = /* @__PURE__ */ v(tt, [["render", lt]]), rt = {
|
144
144
|
components: {
|
145
|
-
IconMore:
|
145
|
+
IconMore: Ve,
|
146
146
|
IconDelete: et,
|
147
147
|
IconEdit: ot
|
148
148
|
},
|
@@ -208,7 +208,7 @@ const ot = /* @__PURE__ */ v(tt, [["render", lt]]), rt = {
|
|
208
208
|
}
|
209
209
|
},
|
210
210
|
async customButtonAction(t) {
|
211
|
-
var e;
|
211
|
+
var e, s;
|
212
212
|
document.querySelector("body").click(), t != null && t.form ? (await this.$v3plugin.$form({
|
213
213
|
form: t == null ? void 0 : t.form,
|
214
214
|
id: (e = this.item) == null ? void 0 : e.id,
|
@@ -217,16 +217,18 @@ const ot = /* @__PURE__ */ v(tt, [["render", lt]]), rt = {
|
|
217
217
|
}), await this.$emit("update-table")) : await this.$v3plugin.$api({
|
218
218
|
confirm: t == null ? void 0 : t.confirm,
|
219
219
|
api: t == null ? void 0 : t.api,
|
220
|
-
method: t == null ? void 0 : t.method
|
220
|
+
method: t == null ? void 0 : t.method,
|
221
|
+
id: (s = this.item) == null ? void 0 : s.id,
|
222
|
+
isId: (t == null ? void 0 : t.isId) || !1
|
221
223
|
});
|
222
224
|
}
|
223
225
|
}
|
224
226
|
}, at = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, it = { class: "inline-flex items-center justify-center bg-white border rounded-lg shadow-sm size-7 gap-x-2 border-stone-200 text-stone-800 hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-50" }, ct = { class: "flex flex-col items-start" }, ut = ["onClick"], dt = { class: "text-gray-800" }, bt = {
|
225
227
|
key: 1,
|
226
228
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
227
|
-
},
|
229
|
+
}, ht = { class: "p-4" }, pt = { class: "flex justify-end mt-4 gap-x-3" };
|
228
230
|
function ft(t, e, s, i, n, r) {
|
229
|
-
const u =
|
231
|
+
const u = h("IconMore"), f = h("IconEdit"), p = h("router-link"), m = h("IconDelete"), k = h("VsPopover"), c = h("VsDialog");
|
230
232
|
return o(), a(S, null, [
|
231
233
|
l("div", at, [
|
232
234
|
x(k, {
|
@@ -245,7 +247,7 @@ function ft(t, e, s, i, n, r) {
|
|
245
247
|
var g, d, C, y, A;
|
246
248
|
return [
|
247
249
|
l("div", ct, [
|
248
|
-
(g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(
|
250
|
+
(g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(p, {
|
249
251
|
key: 0,
|
250
252
|
to: `/edit?table=${(C = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : C.catchAll}&id=${(y = s.item) == null ? void 0 : y.id}`,
|
251
253
|
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"
|
@@ -256,18 +258,18 @@ function ft(t, e, s, i, n, r) {
|
|
256
258
|
]),
|
257
259
|
_: 1
|
258
260
|
}, 8, ["to"])) : w("", !0),
|
259
|
-
(o(!0), a(S, null, D(r.getCustomActions, (
|
261
|
+
(o(!0), a(S, null, D(r.getCustomActions, (T, M) => (o(), a("button", {
|
260
262
|
key: M,
|
261
|
-
onClick: (U) => r.customButtonAction(
|
263
|
+
onClick: (U) => r.customButtonAction(T),
|
262
264
|
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"
|
263
265
|
}, [
|
264
266
|
x(m, { class: "opacity-0" }),
|
265
|
-
l("span", dt, T
|
267
|
+
l("span", dt, I(T == null ? void 0 : T.label), 1)
|
266
268
|
], 8, ut))), 128)),
|
267
269
|
s.isForm ? (o(), a("div", bt)) : w("", !0),
|
268
270
|
(A = s.actions) != null && A.includes("del") ? (o(), a("button", {
|
269
271
|
key: 2,
|
270
|
-
onClick: e[0] || (e[0] = Pe((...
|
272
|
+
onClick: e[0] || (e[0] = Pe((...T) => r.openConfirm && r.openConfirm(...T), ["stop"])),
|
271
273
|
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"
|
272
274
|
}, [
|
273
275
|
x(m),
|
@@ -286,9 +288,9 @@ function ft(t, e, s, i, n, r) {
|
|
286
288
|
title: "Ви впевнені?"
|
287
289
|
}, {
|
288
290
|
default: $(() => [
|
289
|
-
l("div",
|
291
|
+
l("div", ht, [
|
290
292
|
e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
291
|
-
l("div",
|
293
|
+
l("div", pt, [
|
292
294
|
l("button", {
|
293
295
|
type: "button",
|
294
296
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 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",
|
@@ -452,7 +454,7 @@ const Ct = /* @__PURE__ */ v(vt, [["render", wt]]), $t = {
|
|
452
454
|
}, St = {
|
453
455
|
key: 1,
|
454
456
|
class: "p-4"
|
455
|
-
},
|
457
|
+
}, It = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Tt = { class: "flex items-center" }, Vt = { class: "flex items-center gap-[10px] ml-auto" }, Dt = ["onClick"], Ft = {
|
456
458
|
key: 0,
|
457
459
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
458
460
|
}, jt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Mt = { 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" }, zt = ["id", "onChange"], Lt = ["for"], Pt = {
|
@@ -463,7 +465,7 @@ const Ct = /* @__PURE__ */ v(vt, [["render", wt]]), $t = {
|
|
463
465
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
464
466
|
};
|
465
467
|
function Ut(t, e, s, i, n, r) {
|
466
|
-
const u =
|
468
|
+
const u = h("IconExport"), f = h("IconChevronDown"), p = h("IconSuccess"), m = h("VsCheckbox"), k = h("VsDialog");
|
467
469
|
return o(), a(S, null, [
|
468
470
|
l("button", {
|
469
471
|
onClick: e[0] || (e[0] = (c) => n.isOpen = !0),
|
@@ -513,28 +515,28 @@ function Ut(t, e, s, i, n, r) {
|
|
513
515
|
]),
|
514
516
|
default: $(() => [
|
515
517
|
n.isSuccessTemplate ? (o(), a("div", At, [
|
516
|
-
x(
|
518
|
+
x(p, {
|
517
519
|
height: "100",
|
518
520
|
width: "100",
|
519
521
|
class: "text-green-200 mb-[20px]"
|
520
522
|
}),
|
521
523
|
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
522
524
|
])) : (o(), a("div", St, [
|
523
|
-
l("div",
|
524
|
-
l("div",
|
525
|
+
l("div", It, [
|
526
|
+
l("div", Tt, [
|
525
527
|
e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
526
|
-
l("div",
|
528
|
+
l("div", Vt, [
|
527
529
|
(o(!0), a(S, null, D(n.actions, (c) => (o(), a("button", {
|
528
530
|
key: c == null ? void 0 : c.name,
|
529
531
|
onClick: c == null ? void 0 : c.function,
|
530
532
|
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"
|
531
533
|
}, [
|
532
534
|
l("span", {
|
533
|
-
class:
|
535
|
+
class: V(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === n.activeAction }])
|
534
536
|
}, [
|
535
537
|
(c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span", Ft)) : w("", !0)
|
536
538
|
], 2),
|
537
|
-
j(" " +
|
539
|
+
j(" " + I(c == null ? void 0 : c.label), 1)
|
538
540
|
], 8, Dt))), 128))
|
539
541
|
])
|
540
542
|
]),
|
@@ -571,7 +573,7 @@ function Ut(t, e, s, i, n, r) {
|
|
571
573
|
l("label", {
|
572
574
|
for: c,
|
573
575
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
574
|
-
}, " Формат " +
|
576
|
+
}, " Формат " + I(c), 9, Lt)
|
575
577
|
]))), 128))
|
576
578
|
])
|
577
579
|
])
|
@@ -618,12 +620,12 @@ function Gt(t, e, s, i, n, r) {
|
|
618
620
|
var u, f;
|
619
621
|
return o(), a("label", Zt, [
|
620
622
|
P(l("input", {
|
621
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
623
|
+
"onUpdate:modelValue": e[0] || (e[0] = (p) => n.value = p),
|
622
624
|
type: "checkbox"
|
623
625
|
}, null, 512), [
|
624
626
|
[Be, n.value]
|
625
627
|
]),
|
626
|
-
j(" " +
|
628
|
+
j(" " + I(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
|
627
629
|
]);
|
628
630
|
}
|
629
631
|
const Jt = /* @__PURE__ */ v(Wt, [["render", Gt]]), Kt = {
|
@@ -638,8 +640,8 @@ const Jt = /* @__PURE__ */ v(Wt, [["render", Gt]]), Kt = {
|
|
638
640
|
}
|
639
641
|
}, Qt = { class: "py-2 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" }, Xt = { class: "py-[10px] px-[10px] w-[260px]" }, Yt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
640
642
|
function en(t, e, s, i, n, r) {
|
641
|
-
const u =
|
642
|
-
return o(), _(
|
643
|
+
const u = h("IconColumns"), f = h("AdminTableColumnsHiddenItem"), p = h("VsPopover");
|
644
|
+
return o(), _(p, {
|
643
645
|
trigger: "click",
|
644
646
|
placement: "bottom"
|
645
647
|
}, {
|
@@ -686,9 +688,9 @@ const Ce = /* @__PURE__ */ v(nn, [["render", ln]]), on = {
|
|
686
688
|
props: { row: Object, column: Object, table: String }
|
687
689
|
};
|
688
690
|
function rn(t, e, s, i, n, r) {
|
689
|
-
var u, f,
|
691
|
+
var u, f, p, m, k, c, g, d;
|
690
692
|
return o(), _(z(
|
691
|
-
((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (
|
693
|
+
((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (p = s.column) == null ? void 0 : p.format) == null ? void 0 : m.toLowerCase()) || "text"}`
|
692
694
|
), {
|
693
695
|
onUpdateTable: e[0] || (e[0] = (C) => t.$emit("update-table")),
|
694
696
|
name: (k = s.column) == null ? void 0 : k.name,
|
@@ -728,22 +730,22 @@ const dn = /* @__PURE__ */ v(an, [["render", un]]), bn = {
|
|
728
730
|
data() {
|
729
731
|
return { expanded: this.defaultValue };
|
730
732
|
}
|
731
|
-
},
|
733
|
+
}, hn = { class: "hs-accordion" }, pn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, fn = { class: "text-sm font-medium" }, mn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
732
734
|
function gn(t, e, s, i, n, r) {
|
733
|
-
const u =
|
735
|
+
const u = h("IconPlus"), f = h("IconMinus");
|
734
736
|
return o(), a("div", null, [
|
735
737
|
l("div", null, [
|
736
|
-
l("div",
|
737
|
-
l("div",
|
738
|
+
l("div", hn, [
|
739
|
+
l("div", pn, [
|
738
740
|
l("div", {
|
739
|
-
onClick: e[0] || (e[0] = (
|
741
|
+
onClick: e[0] || (e[0] = (p) => n.expanded = !n.expanded),
|
740
742
|
class: "rounded-md cursor-pointer grow"
|
741
743
|
}, [
|
742
|
-
l("span", fn,
|
744
|
+
l("span", fn, I(s.title), 1)
|
743
745
|
]),
|
744
746
|
l("button", {
|
745
747
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
746
|
-
onClick: e[1] || (e[1] = (
|
748
|
+
onClick: e[1] || (e[1] = (p) => n.expanded = !n.expanded)
|
747
749
|
}, [
|
748
750
|
n.expanded ? (o(), _(f, {
|
749
751
|
key: 1,
|
@@ -781,10 +783,10 @@ const xn = /* @__PURE__ */ v(bn, [["render", gn], ["__scopeId", "data-v-c6318482
|
|
781
783
|
}, vn = {
|
782
784
|
class: "border-l",
|
783
785
|
style: { height: "calc(100vh - 360px)" }
|
784
|
-
}, kn = { class: "flex items-center justify-between py-1 gap-x-4" }, wn = { class: "col-span-1" }, Cn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, $n = { class: "col-span-2" }, An = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Sn = { class: "table-info-card" },
|
785
|
-
function
|
786
|
+
}, kn = { class: "flex items-center justify-between py-1 gap-x-4" }, wn = { class: "col-span-1" }, Cn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, $n = { class: "col-span-2" }, An = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Sn = { class: "table-info-card" }, In = { class: "table-info-card" };
|
787
|
+
function Tn(t, e, s, i, n, r) {
|
786
788
|
var g, d, C;
|
787
|
-
const u =
|
789
|
+
const u = h("AdminComponentIs"), f = h("AdminTree"), p = h("VsWidgetMap"), m = h("VsNoData"), k = h("VsWidgetComments"), c = h("VsWidgetFileList");
|
788
790
|
return o(), a("div", _n, [
|
789
791
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
790
792
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
@@ -800,7 +802,7 @@ function Vn(t, e, s, i, n, r) {
|
|
800
802
|
default: $(() => [
|
801
803
|
(o(!0), a(S, null, D(s.columns, (y) => (o(), a("dl", kn, [
|
802
804
|
l("dt", wn, [
|
803
|
-
l("p", Cn,
|
805
|
+
l("p", Cn, I((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
|
804
806
|
]),
|
805
807
|
l("dd", $n, [
|
806
808
|
l("p", An, [
|
@@ -823,7 +825,7 @@ function Vn(t, e, s, i, n, r) {
|
|
823
825
|
default: $(() => {
|
824
826
|
var y, A;
|
825
827
|
return [
|
826
|
-
(y = s.row) != null && y.geom ? (o(), _(
|
828
|
+
(y = s.row) != null && y.geom ? (o(), _(p, {
|
827
829
|
key: 0,
|
828
830
|
geometry: (A = s.row) == null ? void 0 : A.geom,
|
829
831
|
zoom: 14
|
@@ -860,7 +862,7 @@ function Vn(t, e, s, i, n, r) {
|
|
860
862
|
default: $(() => {
|
861
863
|
var y;
|
862
864
|
return [
|
863
|
-
l("div",
|
865
|
+
l("div", In, [
|
864
866
|
x(c, {
|
865
867
|
id: (y = s.row) == null ? void 0 : y.id
|
866
868
|
}, null, 8, ["id"])
|
@@ -876,7 +878,7 @@ function Vn(t, e, s, i, n, r) {
|
|
876
878
|
])
|
877
879
|
]);
|
878
880
|
}
|
879
|
-
const
|
881
|
+
const Vn = /* @__PURE__ */ v(yn, [["render", Tn]]), Dn = {}, Fn = {
|
880
882
|
class: "hidden xl:block shrink-0 size-4",
|
881
883
|
xmlns: "http://www.w3.org/2000/svg",
|
882
884
|
viewBox: "0 0 24 24",
|
@@ -935,10 +937,10 @@ const Pn = /* @__PURE__ */ v(qn, [["render", Ln]]), Bn = {
|
|
935
937
|
class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
|
936
938
|
}, On = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-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" };
|
937
939
|
function En(t, e, s, i, n, r) {
|
938
|
-
const u =
|
940
|
+
const u = h("IconFilter"), f = h("VsFilter");
|
939
941
|
return o(), a(S, null, [
|
940
942
|
l("button", {
|
941
|
-
onClick: e[0] || (e[0] = (
|
943
|
+
onClick: e[0] || (e[0] = (p) => n.isFilters = !n.isFilters),
|
942
944
|
class: "py-2 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"
|
943
945
|
}, [
|
944
946
|
x(u, {
|
@@ -946,11 +948,11 @@ function En(t, e, s, i, n, r) {
|
|
946
948
|
width: "16"
|
947
949
|
}),
|
948
950
|
e[4] || (e[4] = j(" Фільтри ")),
|
949
|
-
s.onFilters ? (o(), a("span", Un,
|
951
|
+
s.onFilters ? (o(), a("span", Un, I(s.onFilters), 1)) : w("", !0)
|
950
952
|
]),
|
951
953
|
x(B, { name: "fade" }, {
|
952
954
|
default: $(() => {
|
953
|
-
var
|
955
|
+
var p;
|
954
956
|
return [
|
955
957
|
P(l("div", {
|
956
958
|
onClick: e[3] || (e[3] = (...m) => r.closeFilter && r.closeFilter(...m)),
|
@@ -958,7 +960,7 @@ function En(t, e, s, i, n, r) {
|
|
958
960
|
class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
|
959
961
|
}, [
|
960
962
|
l("div", On, [
|
961
|
-
(
|
963
|
+
(p = s.scheme) != null && p.length ? (o(), _(f, {
|
962
964
|
key: 0,
|
963
965
|
ref: "filter",
|
964
966
|
scheme: s.scheme,
|
@@ -992,10 +994,10 @@ function Zn(t, e, s, i, n, r) {
|
|
992
994
|
return o(), a("nav", Rn, [
|
993
995
|
(o(!0), a(S, null, D(s.tabsList, (u) => (o(), a("button", {
|
994
996
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
995
|
-
class:
|
997
|
+
class: V(["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", {
|
996
998
|
" 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
|
997
999
|
}])
|
998
|
-
},
|
1000
|
+
}, I(u == null ? void 0 : u.label), 11, Wn))), 256))
|
999
1001
|
]);
|
1000
1002
|
}
|
1001
1003
|
const Gn = /* @__PURE__ */ v(Hn, [["render", Zn]]), Jn = {}, Kn = {
|
@@ -1023,7 +1025,7 @@ const Xn = /* @__PURE__ */ v(Jn, [["render", Qn]]), Yn = {
|
|
1023
1025
|
props: { filterCustom: String, customList: Array }
|
1024
1026
|
}, es = { class: "py-2 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" }, ts = { class: "flex flex-col gap-[4px]" }, ns = ["onClick"];
|
1025
1027
|
function ss(t, e, s, i, n, r) {
|
1026
|
-
const u =
|
1028
|
+
const u = h("IconFilter2"), f = h("VsPopover");
|
1027
1029
|
return o(), _(f, {
|
1028
1030
|
ref: "popover",
|
1029
1031
|
placement: "bottom"
|
@@ -1038,17 +1040,17 @@ function ss(t, e, s, i, n, r) {
|
|
1038
1040
|
]),
|
1039
1041
|
default: $(() => [
|
1040
1042
|
l("div", ts, [
|
1041
|
-
(o(!0), a(S, null, D(s.customList, (
|
1043
|
+
(o(!0), a(S, null, D(s.customList, (p, m) => (o(), a("button", {
|
1042
1044
|
onClick: (k) => {
|
1043
1045
|
var c;
|
1044
|
-
t.$emit("update:filterCustom",
|
1046
|
+
t.$emit("update:filterCustom", p == null ? void 0 : p.name), (c = t.$refs) == null || c.popover.togglePopover();
|
1045
1047
|
},
|
1046
1048
|
key: m,
|
1047
|
-
class:
|
1048
|
-
},
|
1049
|
+
class: V(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (p == null ? void 0 : p.name) }])
|
1050
|
+
}, I(p == null ? void 0 : p.label), 11, ns))), 128)),
|
1049
1051
|
l("button", {
|
1050
1052
|
class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
|
1051
|
-
onClick: e[0] || (e[0] = (
|
1053
|
+
onClick: e[0] || (e[0] = (p) => {
|
1052
1054
|
var m;
|
1053
1055
|
t.$emit("update:filterCustom", void 0), (m = t.$refs) == null || m.popover.togglePopover();
|
1054
1056
|
})
|
@@ -1064,23 +1066,23 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1064
1066
|
slots: Object
|
1065
1067
|
},
|
1066
1068
|
setup(t) {
|
1067
|
-
var f,
|
1068
|
-
const { asyncTemplateSlot: e } = (c = (k = (m = (
|
1069
|
+
var f, p, m, k, c;
|
1070
|
+
const { asyncTemplateSlot: e } = (c = (k = (m = (p = (f = Oe()) == null ? void 0 : f.appContext) == null ? void 0 : p.app) == null ? void 0 : m.config) == null ? void 0 : k.globalProperties) == null ? void 0 : c.utils, s = ve(""), i = ve(""), n = t, r = () => {
|
1069
1071
|
var g, d, C, y, A;
|
1070
1072
|
if ((g = n.slots) != null && g.panelLeft || (i.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelLeft) != null && C.includes("<")) {
|
1071
|
-
const
|
1073
|
+
const T = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
|
1072
1074
|
"name"
|
1073
1075
|
]);
|
1074
|
-
i.value =
|
1076
|
+
i.value = T;
|
1075
1077
|
} else
|
1076
1078
|
i.value = (A = n.slots) == null ? void 0 : A.panelLeft;
|
1077
1079
|
}, u = () => {
|
1078
1080
|
var g, d, C, y, A;
|
1079
1081
|
if ((g = n.slots) != null && g.panelRight || (s.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelRight) != null && C.includes("<")) {
|
1080
|
-
const
|
1082
|
+
const T = e("PanelRight", (y = n.slots) == null ? void 0 : y.panelRight, [
|
1081
1083
|
"name"
|
1082
1084
|
]);
|
1083
|
-
s.value =
|
1085
|
+
s.value = T;
|
1084
1086
|
} else
|
1085
1087
|
s.value = (A = n.slots) == null ? void 0 : A.panelRight;
|
1086
1088
|
};
|
@@ -1106,7 +1108,7 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1106
1108
|
AdminNodata: qe,
|
1107
1109
|
IconPlus: Ce,
|
1108
1110
|
IconSearch: ze,
|
1109
|
-
AdminTableCardInfo:
|
1111
|
+
AdminTableCardInfo: Vn,
|
1110
1112
|
IconOpenCard: Mn,
|
1111
1113
|
AdminComponentIs: $e,
|
1112
1114
|
AdminTableFilters: Nn,
|
@@ -1214,8 +1216,8 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1214
1216
|
},
|
1215
1217
|
methods: {
|
1216
1218
|
async checkUrlMounted() {
|
1217
|
-
var t, e, s, i, n, r, u, f,
|
1218
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : i.limit) || 20, this.filters = ((u = decodeURI((r = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((
|
1219
|
+
var t, e, s, i, n, r, u, f, p, m, k, c, g, d, C, y, A;
|
1220
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : i.limit) || 20, this.filters = ((u = decodeURI((r = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((p = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : p.filterState) || null, this.filterCustom = ((k = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : k.custom) || null, this.searchValue = ((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.search) || "", this.visibleColumns = ((y = (C = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : C.columns) == null ? void 0 : y.split(",")) || [], (A = this.$route) != null && A.query.card && (this.isVisibleCardInfo = !0);
|
1219
1221
|
},
|
1220
1222
|
rowWidth(t) {
|
1221
1223
|
var s, i;
|
@@ -1229,7 +1231,7 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1229
1231
|
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 = "";
|
1230
1232
|
},
|
1231
1233
|
async getTableData() {
|
1232
|
-
var t, e, s, i, n, r, u, f,
|
1234
|
+
var t, e, s, i, n, r, u, f, p, m, k;
|
1233
1235
|
try {
|
1234
1236
|
const { data: c } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
|
1235
1237
|
params: {
|
@@ -1248,7 +1250,7 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1248
1250
|
}, this.initialHiddenColumns = (r = (n = (i = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : i.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : n.map((d) => d == null ? void 0 : d.name)) == null ? void 0 : r.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((d) => {
|
1249
1251
|
var C;
|
1250
1252
|
(C = this.visibleColumns) != null && C.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
|
1251
|
-
}) : this.visibleColumns = (k = (m = (
|
1253
|
+
}) : this.visibleColumns = (k = (m = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : m.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : k.map((d) => d == null ? void 0 : d.name);
|
1252
1254
|
} catch {
|
1253
1255
|
}
|
1254
1256
|
},
|
@@ -1299,22 +1301,22 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1299
1301
|
}, cs = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, us = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, ds = { class: "text-xl font-medium" }, bs = {
|
1300
1302
|
style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
|
1301
1303
|
class: "bg-gray-50 p-[20px] flex pt-[10px]"
|
1302
|
-
},
|
1304
|
+
}, hs = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, ps = { class: "flex" }, fs = { class: "flex gap-[6px] ml-auto" }, ms = { class: "inline-block w-full align-middle" }, gs = {
|
1303
1305
|
key: 0,
|
1304
1306
|
class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1305
1307
|
}, xs = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, ys = { class: "right-0 border-t border-stone-200" }, _s = {
|
1306
1308
|
key: 0,
|
1307
1309
|
class: "w-[70px] sticky right-0 top-0"
|
1308
|
-
}, vs = { class: "divide-y divide-gray-200" }, ks = { class: "px-4 py-3 text-sm text-gray-600" }, ws = ["onClick"], Cs = ["onClick"], $s = { class: "p-[20px] flex justify-start items-center w-full" }, As = { class: "w-[200px]" }, Ss = { class: "text-sm text-gray-600 dark:text-neutral-400" },
|
1310
|
+
}, vs = { class: "divide-y divide-gray-200" }, ks = { class: "px-4 py-3 text-sm text-gray-600" }, ws = ["onClick"], Cs = ["onClick"], $s = { class: "p-[20px] flex justify-start items-center w-full" }, As = { class: "w-[200px]" }, Ss = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Is = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Ts = { key: 0 }, Vs = {
|
1309
1311
|
key: 0,
|
1310
1312
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1311
1313
|
};
|
1312
1314
|
function Ds(t, e, s, i, n, r) {
|
1313
1315
|
var O, E, N, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie, ce;
|
1314
|
-
const u =
|
1316
|
+
const u = h("IconPlus"), f = h("router-link"), p = h("AdminTableTabs"), m = h("IconSearch"), k = h("VsText"), c = h("AdminTableCustomButtons"), g = h("AdminTableCustomFilters"), d = h("AdminTableColumnsHidden"), C = h("AdminTableExport"), y = h("AdminTableFilters"), A = h("IconOpenCard"), T = h("AdminTableColumn"), M = h("AdminComponentIs"), U = h("AdminTableControl"), Ae = h("AdminNodata"), Se = h("VsPagination"), Ie = h("AdminTableCardInfo");
|
1315
1317
|
return o(), a("div", cs, [
|
1316
1318
|
l("div", us, [
|
1317
|
-
l("h2", ds,
|
1319
|
+
l("h2", ds, I(s.title), 1),
|
1318
1320
|
r.isForm ? (o(), _(f, {
|
1319
1321
|
key: 0,
|
1320
1322
|
to: `/add?table=${(E = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : E.catchAll}`,
|
@@ -1331,19 +1333,19 @@ function Ds(t, e, s, i, n, r) {
|
|
1331
1333
|
}, 8, ["to"])) : w("", !0)
|
1332
1334
|
]),
|
1333
1335
|
l("div", bs, [
|
1334
|
-
l("div",
|
1335
|
-
(H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (o(), _(
|
1336
|
+
l("div", hs, [
|
1337
|
+
(H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (o(), _(p, {
|
1336
1338
|
key: 0,
|
1337
1339
|
tabsList: (R = n.tableData) == null ? void 0 : R.filterState,
|
1338
1340
|
filterState: n.filterState,
|
1339
1341
|
"onUpdate:filterState": e[0] || (e[0] = (b) => n.filterState = b)
|
1340
1342
|
}, null, 8, ["tabsList", "filterState"])) : w("", !0),
|
1341
|
-
l("div",
|
1343
|
+
l("div", ps, [
|
1342
1344
|
l("div", {
|
1343
|
-
class:
|
1345
|
+
class: V([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1344
1346
|
}, [
|
1345
1347
|
l("div", {
|
1346
|
-
class:
|
1348
|
+
class: V(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !n.isVisibleCardInfo }])
|
1347
1349
|
}, [
|
1348
1350
|
x(m, {
|
1349
1351
|
height: "14",
|
@@ -1392,13 +1394,13 @@ function Ds(t, e, s, i, n, r) {
|
|
1392
1394
|
class: "py-2 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"
|
1393
1395
|
}, [
|
1394
1396
|
x(A, {
|
1395
|
-
class:
|
1397
|
+
class: V({ "rotate-180 duration-300": !n.isVisibleCardInfo })
|
1396
1398
|
}, null, 8, ["class"])
|
1397
1399
|
])
|
1398
1400
|
])
|
1399
1401
|
], 2),
|
1400
1402
|
l("div", {
|
1401
|
-
class:
|
1403
|
+
class: V(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
|
1402
1404
|
}, [
|
1403
1405
|
l("div", {
|
1404
1406
|
style: ke({
|
@@ -1410,7 +1412,7 @@ function Ds(t, e, s, i, n, r) {
|
|
1410
1412
|
r.isNoData ? (o(), _(Ae, { key: 1 })) : (o(), a("table", gs, [
|
1411
1413
|
l("thead", xs, [
|
1412
1414
|
l("tr", ys, [
|
1413
|
-
(o(!0), a(S, null, D(r.columns, (b) => (o(), _(
|
1415
|
+
(o(!0), a(S, null, D(r.columns, (b) => (o(), _(T, {
|
1414
1416
|
key: b.name,
|
1415
1417
|
style: ke({
|
1416
1418
|
width: r.rowWidth(b == null ? void 0 : b.name),
|
@@ -1425,18 +1427,18 @@ function Ds(t, e, s, i, n, r) {
|
|
1425
1427
|
])
|
1426
1428
|
]),
|
1427
1429
|
l("tbody", vs, [
|
1428
|
-
(o(!0), a(S, null, D((oe = n.tableData) == null ? void 0 : oe.rows, (b,
|
1429
|
-
var ue, de, be,
|
1430
|
+
(o(!0), a(S, null, D((oe = n.tableData) == null ? void 0 : oe.rows, (b, Te) => {
|
1431
|
+
var ue, de, be, he, pe, fe, me, ge, xe, ye;
|
1430
1432
|
return o(), a("tr", {
|
1431
|
-
key:
|
1432
|
-
class:
|
1433
|
+
key: Te,
|
1434
|
+
class: V({
|
1433
1435
|
"bg-gray-50": ((de = (ue = t.$route) == null ? void 0 : ue.query) == null ? void 0 : de.card) === (b == null ? void 0 : b.id)
|
1434
1436
|
})
|
1435
1437
|
}, [
|
1436
1438
|
l("td", ks, [
|
1437
1439
|
l("button", {
|
1438
1440
|
onClick: () => r.pushToCard(b == null ? void 0 : b.id),
|
1439
|
-
class:
|
1441
|
+
class: V(["text-sm font-medium", [
|
1440
1442
|
((be = n.tableData) == null ? void 0 : be.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1441
1443
|
]])
|
1442
1444
|
}, [
|
@@ -1448,9 +1450,9 @@ function Ds(t, e, s, i, n, r) {
|
|
1448
1450
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1449
1451
|
], 10, ws)
|
1450
1452
|
]),
|
1451
|
-
(o(!0), a(S, null, D((
|
1453
|
+
(o(!0), a(S, null, D((he = r.columns) == null ? void 0 : he.slice(1), (q) => (o(), a("td", {
|
1452
1454
|
onClick: (zs) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
|
1453
|
-
class:
|
1455
|
+
class: V(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": n.isVisibleCardInfo }]),
|
1454
1456
|
key: q.name
|
1455
1457
|
}, [
|
1456
1458
|
x(M, {
|
@@ -1460,9 +1462,9 @@ function Ds(t, e, s, i, n, r) {
|
|
1460
1462
|
onUpdateTable: r.getTableData
|
1461
1463
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1462
1464
|
], 10, Cs))), 128)),
|
1463
|
-
(fe = (
|
1465
|
+
(fe = (pe = r.getActions) == null ? void 0 : pe.filter((q) => q !== "add")) != null && fe.length ? (o(), a("td", {
|
1464
1466
|
key: 0,
|
1465
|
-
class:
|
1467
|
+
class: V(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1466
1468
|
"bg-gray-50": ((ge = (me = t.$route) == null ? void 0 : me.query) == null ? void 0 : ge.card) === (b == null ? void 0 : b.id),
|
1467
1469
|
"bg-white": ((ye = (xe = t.$route) == null ? void 0 : xe.query) == null ? void 0 : ye.card) !== (b == null ? void 0 : b.id)
|
1468
1470
|
}])
|
@@ -1485,11 +1487,11 @@ function Ds(t, e, s, i, n, r) {
|
|
1485
1487
|
l("div", $s, [
|
1486
1488
|
l("div", As, [
|
1487
1489
|
l("p", Ss, [
|
1488
|
-
l("span",
|
1489
|
-
j(
|
1490
|
-
n.filters || n.searchValue ? (o(), a("span",
|
1490
|
+
l("span", Is, [
|
1491
|
+
j(I(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((re = n.tableData) == null ? void 0 : re.count) || "0 ") + " ", 1),
|
1492
|
+
n.filters || n.searchValue ? (o(), a("span", Ts, " з")) : w("", !0)
|
1491
1493
|
]),
|
1492
|
-
n.filters || n.searchValue ? (o(), a("span",
|
1494
|
+
n.filters || n.searchValue ? (o(), a("span", Vs, I(" " + ((ae = n.tableData) == null ? void 0 : ae.filtered) || 0), 1)) : w("", !0)
|
1493
1495
|
])
|
1494
1496
|
]),
|
1495
1497
|
Math.ceil(((ie = n.tableData) == null ? void 0 : ie.filtered) / n.limit) > 1 ? (o(), _(Se, {
|
@@ -1510,7 +1512,7 @@ function Ds(t, e, s, i, n, r) {
|
|
1510
1512
|
default: $(() => {
|
1511
1513
|
var b;
|
1512
1514
|
return [
|
1513
|
-
n.isVisibleCardInfo ? (o(), _(
|
1515
|
+
n.isVisibleCardInfo ? (o(), _(Ie, {
|
1514
1516
|
key: 0,
|
1515
1517
|
table: s.table,
|
1516
1518
|
columns: (b = n.tableData) == null ? void 0 : b.columns,
|
@@ -1583,7 +1585,7 @@ const Fs = /* @__PURE__ */ v(is, [["render", Ds], ["__scopeId", "data-v-7509554b
|
|
1583
1585
|
}
|
1584
1586
|
}, Ms = ["innerHTML"];
|
1585
1587
|
function qs(t, e, s, i, n, r) {
|
1586
|
-
const u =
|
1588
|
+
const u = h("AdminTable");
|
1587
1589
|
return n.table ? (o(), _(u, {
|
1588
1590
|
key: 0,
|
1589
1591
|
table: n.table,
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _, I as F, u as D, s as T, a as R, b as q, c as z } from "./import-file-
|
1
|
+
import { _, I as F, u as D, s as T, a as R, b as q, c as z } from "./import-file-0AVdPTVF.js";
|
2
2
|
import { openBlock as l, createElementBlock as c, createElementVNode as s, createStaticVNode as G, resolveComponent as p, normalizeClass as I, createTextVNode as B, toDisplayString as U, createVNode as u, Transition as J, withCtx as A, withDirectives as K, Fragment as Z, renderList as Q, vShow as P, createCommentVNode as E, withModifiers as W, createBlock as X, resolveDynamicComponent as Y } from "vue";
|
3
|
-
import { I as e1 } from "./IconChevronDown-
|
3
|
+
import { I as e1 } from "./IconChevronDown-1ZySxgQZ.js";
|
4
4
|
const t1 = {}, o1 = {
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
6
6
|
viewBox: "0 0 24 24",
|