@opengis/admin 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +29 -29
- package/config.js +4 -4
- package/dist/{IconChevronDown-BCpDxWU9.js → IconChevronDown-Dm6WTz6T.js} +1 -1
- package/dist/{add-page-CKy5L_78.js → add-page-691SOUZb.js} +1 -1
- package/dist/{admin-interface-BX613rWQ.js → admin-interface-BOJ8_vEA.js} +260 -259
- package/dist/{admin-view-DJBkad_B.js → admin-view-EqjCuhXc.js} +3 -3
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +54 -54
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-CdCsaogK.js → card-view-CX7x_aTI.js} +1 -1
- package/dist/edit-page-Boj91vBk.js +128 -0
- package/dist/{import-file-CknmeGNO.js → import-file-DtUVr-xP.js} +6159 -6116
- package/dist/style.css +1 -1
- package/module/settings/card/admin.accounts.table/index.yml +7 -7
- package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
- package/module/settings/card/admin.accounts.table/users.hbs +13 -13
- package/module/settings/card/admin.roles.table/access.hbs +3 -3
- package/module/settings/card/admin.roles.table/general_info.hbs +1 -1
- package/module/settings/card/admin.roles.table/index.yml +21 -21
- package/module/settings/card/admin.roles.table/users.hbs +6 -6
- package/module/settings/card/admin.routes.table/general_info.hbs +13 -13
- package/module/settings/card/admin.routes.table/groups.hbs +11 -11
- package/module/settings/card/admin.routes.table/index.yml +11 -11
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- package/module/settings/card/admin.users.table/context.hbs +14 -14
- package/module/settings/card/admin.users.table/general_info.hbs +12 -12
- package/module/settings/card/admin.users.table/index.yml +22 -22
- package/module/settings/card/admin.users.table/last_login.hbs +9 -9
- package/module/settings/card/admin.users.table/logs.hbs +10 -10
- package/module/settings/card/admin.users.table/routes.hbs +7 -7
- package/module/settings/card/admin.users.table/user_roles.hbs +12 -12
- package/module/settings/cls/core.actions.json +17 -17
- package/module/settings/cls/core.scope.json +13 -13
- package/module/settings/cls/properties.site_status.json +13 -13
- package/module/settings/cls/properties.widget_status.json +13 -13
- package/module/settings/cls/users.user_type.json +13 -13
- package/module/settings/form/admin.accounts.form.json +13 -13
- package/module/settings/form/admin.custom_column.form.json +71 -71
- package/module/settings/form/admin.properties.form.json +15 -15
- package/module/settings/form/admin.roles.form.json +21 -21
- package/module/settings/form/admin.routes.form.json +25 -25
- package/module/settings/form/admin.rules.form.json +30 -30
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles.form.json +13 -13
- package/module/settings/form/admin.user_roles_card.form.json +13 -13
- package/module/settings/form/admin.users.form.json +153 -153
- package/module/settings/form/context.account_grants.form.json +23 -23
- package/module/settings/form/context.account_users.form.json +12 -12
- package/module/settings/form/user.user_roles.form.json +13 -13
- package/module/settings/interface/admin.properties.json +4 -4
- package/module/settings/interface/admin.roles.json +4 -4
- package/module/settings/interface/admin.routes.json +4 -4
- package/module/settings/interface/admin.users.json +4 -4
- package/module/settings/menu.json +84 -84
- package/module/settings/select/core.routes.sql +1 -1
- package/module/settings/select/core.user_mentioned.sql +1 -1
- package/module/settings/select/core.user_uid.sql +1 -1
- package/module/settings/table/admin.accounts.table.json +42 -42
- package/module/settings/table/admin.custom_column.table.json +99 -99
- package/module/settings/table/admin.properties.table.json +39 -39
- package/module/settings/table/admin.roles.table.json +64 -64
- package/module/settings/table/admin.routes.table.json +73 -73
- package/module/settings/table/admin.rules.table.json +76 -76
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/module/settings/table/admin.user_roles.table.json +72 -72
- package/module/settings/table/admin.users.table.json +132 -132
- package/module/settings/table/context.account_grants.table.json +67 -67
- package/module/settings/table/context.account_users.table.json +37 -37
- package/package.json +83 -83
- package/plugin.js +29 -29
- package/server/helpers/core/badge.js +16 -16
- package/server/helpers/core/buttonHelper.js +21 -21
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/index.js +29 -29
- package/server/helpers/list/buttonHelper.js +21 -21
- package/server/helpers/list/descriptionList.js +43 -43
- package/server/helpers/list/tableList.js +81 -81
- package/server/helpers/list/utils/button.js +5 -5
- package/server/helpers/temp/contentList.js +58 -58
- package/server/helpers/temp/ifCond.js +101 -101
- package/server/helpers/utils/button.js +5 -5
- package/server/helpers/utils/buttonAdd.js +5 -5
- package/server/helpers/utils/buttonDel.js +5 -5
- package/server/helpers/utils/buttonEdit.js +5 -5
- package/server/plugins/access/funcs/getAdminAccess.js +12 -12
- package/server/plugins/access/index.mjs +6 -6
- package/server/plugins/adminHook.js +81 -81
- package/server/plugins/cron.js +10 -10
- package/server/plugins/docs.js +28 -28
- package/server/plugins/hook.js +236 -236
- package/server/plugins/vite.js +71 -71
- package/server/routes/access/controllers/access.group.js +29 -29
- package/server/routes/access/controllers/access.group.post.js +49 -49
- package/server/routes/access/index.mjs +8 -8
- package/server/routes/access/schema.mjs +57 -57
- package/server/routes/calendar/controllers/calendar.data.js +87 -87
- package/server/routes/calendar/index.mjs +7 -7
- package/server/routes/calendar/schema.js +21 -21
- package/server/routes/data/controllers/cardData.js +105 -105
- package/server/routes/data/controllers/cardTabData.js +49 -49
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
- package/server/routes/data/controllers/tableData.js +29 -29
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +67 -67
- package/server/routes/data/controllers/tokenInfo.js +9 -9
- package/server/routes/data/controllers/utils/assignTokens.js +30 -30
- package/server/routes/data/controllers/utils/conditions.js +20 -20
- package/server/routes/data/controllers/utils/getColumns.js +8 -8
- package/server/routes/data/index.mjs +17 -17
- package/server/routes/data/schema.js +54 -54
- package/server/routes/menu/controllers/getMenu.js +58 -58
- package/server/routes/menu/index.mjs +5 -5
- package/server/routes/notifications/controllers/readNotifications.js +27 -27
- package/server/routes/notifications/controllers/testEmail.js +35 -35
- package/server/routes/notifications/controllers/userNotifications.js +53 -53
- package/server/routes/notifications/funcs/addNotification.js +21 -21
- package/server/routes/notifications/funcs/sendNotification.js +92 -92
- package/server/routes/notifications/hook/onWidgetSet.js +57 -57
- package/server/routes/notifications/index.mjs +27 -27
- package/server/routes/notifications/schema.js +16 -16
- package/server/routes/properties/controllers/admin.properties.get.js +29 -29
- package/server/routes/properties/controllers/user.properties.get.js +30 -30
- package/server/routes/properties/controllers/user.properties.post.js +30 -30
- package/server/routes/properties/funcs/getSettings.js +56 -56
- package/server/routes/properties/funcs/setSettings.js +44 -44
- package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
- package/server/routes/properties/index.mjs +14 -14
- package/server/routes/properties/schema.js +10 -10
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +43 -43
- package/server/routes/templates/index.mjs +16 -16
- package/server/routes/templates/schema.js +8 -8
- package/server/routes/user/controllers/user.cls.id.js +14 -14
- package/server/routes/user/controllers/user.cls.js +71 -71
- package/server/routes/user/controllers/user.cls.post.js +52 -52
- package/server/routes/user/controllers/user.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- package/server/routes/widget/controllers/utils/historyFormat.js +75 -75
- package/server/routes/widget/controllers/utils/obj2db.js +13 -13
- package/server/routes/widget/controllers/widget.del.js +41 -41
- package/server/routes/widget/controllers/widget.get.js +96 -96
- package/server/routes/widget/controllers/widget.set.js +76 -76
- package/server/routes/widget/index.mjs +11 -11
- package/server/routes/widget/schema.js +12 -12
- package/server/templates/cls/itree.recrzone_category.json +73 -73
- package/server/templates/cls/test.json +9 -9
- package/server/templates/form/admin.user_cls.data.form.json +49 -49
- package/server/templates/form/admin.user_group_rel.form.json +21 -21
- package/server/templates/form/cp_building.form.json +32 -32
- package/server/templates/form/form-user-pass.json +10 -10
- package/server/templates/form/form-user_group.json +39 -39
- package/server/templates/form/form-users.json +156 -156
- package/server/templates/form/user_group_access.form.json +22 -22
- package/server/templates/select/account_id.json +2 -2
- package/server/templates/table/gis.dataset.table.json +43 -43
- package/server/templates/table/management.user_group.table.json +112 -112
- package/server/templates/table/management.users.table.json +126 -126
- package/utils.js +29 -29
- package/dist/edit-page-C76NxZRq.js +0 -120
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as v, d as
|
2
|
-
import { openBlock as o, createElementBlock as a, createTextVNode as j, toDisplayString as T, createCommentVNode as w, createStaticVNode as L, Fragment as S, createElementVNode as l, resolveComponent as
|
3
|
-
import { I as
|
4
|
-
const
|
1
|
+
import { _ as v, d as Ie, 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-DtUVr-xP.js";
|
2
|
+
import { openBlock as o, createElementBlock as a, createTextVNode as j, toDisplayString as T, createCommentVNode as w, createStaticVNode as L, Fragment as S, createElementVNode as l, resolveComponent as p, createVNode as x, withCtx as $, createBlock as _, renderList as D, withModifiers as Pe, normalizeClass as I, 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-Dm6WTz6T.js";
|
4
|
+
const Ne = {
|
5
5
|
data() {
|
6
6
|
return {
|
7
7
|
currentSort: ""
|
@@ -59,10 +59,10 @@ const Ee = {
|
|
59
59
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
60
60
|
}
|
61
61
|
}
|
62
|
-
},
|
62
|
+
}, He = {
|
63
63
|
scope: "col",
|
64
64
|
class: "text-start px-2 py-1"
|
65
|
-
},
|
65
|
+
}, Re = {
|
66
66
|
class: "flex-shrink-0 size-3.5",
|
67
67
|
xmlns: "http://www.w3.org/2000/svg",
|
68
68
|
width: "24",
|
@@ -73,18 +73,18 @@ const Ee = {
|
|
73
73
|
"stroke-width": "2",
|
74
74
|
"stroke-linecap": "round",
|
75
75
|
"stroke-linejoin": "round"
|
76
|
-
},
|
76
|
+
}, We = {
|
77
77
|
key: 0,
|
78
78
|
d: "m7 15 5 5 5-5"
|
79
|
-
},
|
79
|
+
}, Ze = {
|
80
80
|
key: 1,
|
81
81
|
d: "m7 9 5-5 5 5"
|
82
|
-
},
|
82
|
+
}, Ge = {
|
83
83
|
key: 1,
|
84
84
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
|
85
85
|
};
|
86
|
-
function
|
87
|
-
return o(), a("th",
|
86
|
+
function Je(t, e, s, i, n, r) {
|
87
|
+
return o(), a("th", He, [
|
88
88
|
r.getVisibleIcon ? (o(), a("button", {
|
89
89
|
key: 0,
|
90
90
|
type: "button",
|
@@ -92,14 +92,14 @@ function Ge(t, e, s, i, n, r) {
|
|
92
92
|
onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(n.currentSort))
|
93
93
|
}, [
|
94
94
|
j(T(r.label) + " ", 1),
|
95
|
-
(o(), a("svg",
|
96
|
-
n.currentSort === "asc" || n.currentSort === "" ? (o(), a("path",
|
97
|
-
n.currentSort === "desc" || n.currentSort === "" ? (o(), a("path",
|
95
|
+
(o(), a("svg", Re, [
|
96
|
+
n.currentSort === "asc" || n.currentSort === "" ? (o(), a("path", We)) : w("", !0),
|
97
|
+
n.currentSort === "desc" || n.currentSort === "" ? (o(), a("path", Ze)) : w("", !0)
|
98
98
|
]))
|
99
|
-
])) : (o(), a("p",
|
99
|
+
])) : (o(), a("p", Ge, T(r.label), 1))
|
100
100
|
]);
|
101
101
|
}
|
102
|
-
const
|
102
|
+
const Ke = /* @__PURE__ */ v(Ne, [["render", Je]]), Qe = {}, Xe = {
|
103
103
|
class: "flex-shrink-0 size-3.5",
|
104
104
|
xmlns: "http://www.w3.org/2000/svg",
|
105
105
|
viewBox: "0 0 24 24",
|
@@ -109,21 +109,21 @@ const Je = /* @__PURE__ */ v(Ee, [["render", Ge]]), Ke = {}, Qe = {
|
|
109
109
|
"stroke-linecap": "round",
|
110
110
|
"stroke-linejoin": "round"
|
111
111
|
};
|
112
|
-
function
|
113
|
-
return o(), a("svg",
|
112
|
+
function Ye(t, e, s, i, n, r) {
|
113
|
+
return o(), a("svg", Xe, e[0] || (e[0] = [
|
114
114
|
L('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
|
115
115
|
]));
|
116
116
|
}
|
117
|
-
const
|
117
|
+
const et = /* @__PURE__ */ v(Qe, [["render", Ye]]), tt = {
|
118
118
|
props: {
|
119
119
|
height: { type: String, default: "16" },
|
120
120
|
width: { type: String, default: "12" },
|
121
121
|
color: { type: String, default: "black" }
|
122
122
|
}
|
123
|
-
},
|
124
|
-
function
|
123
|
+
}, nt = { style: { display: "none" } }, st = ["height", "width", "fill"];
|
124
|
+
function lt(t, e, s, i, n, r) {
|
125
125
|
return o(), a(S, null, [
|
126
|
-
(o(), a("svg",
|
126
|
+
(o(), a("svg", nt, e[0] || (e[0] = [
|
127
127
|
l("symbol", {
|
128
128
|
id: "icon-pencil",
|
129
129
|
viewBox: "0 0 32 32"
|
@@ -137,14 +137,14 @@ function st(t, e, s, i, n, r) {
|
|
137
137
|
fill: s.color
|
138
138
|
}, e[1] || (e[1] = [
|
139
139
|
l("use", { "xlink:href": "#icon-pencil" }, null, -1)
|
140
|
-
]), 8,
|
140
|
+
]), 8, st))
|
141
141
|
], 64);
|
142
142
|
}
|
143
|
-
const
|
143
|
+
const ot = /* @__PURE__ */ v(tt, [["render", lt]]), rt = {
|
144
144
|
components: {
|
145
|
-
IconMore:
|
146
|
-
IconDelete:
|
147
|
-
IconEdit:
|
145
|
+
IconMore: Ie,
|
146
|
+
IconDelete: et,
|
147
|
+
IconEdit: ot
|
148
148
|
},
|
149
149
|
emits: ["updateTable"],
|
150
150
|
props: {
|
@@ -221,20 +221,20 @@ const lt = /* @__PURE__ */ v(et, [["render", st]]), ot = {
|
|
221
221
|
});
|
222
222
|
}
|
223
223
|
}
|
224
|
-
},
|
224
|
+
}, 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
225
|
key: 1,
|
226
226
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
227
|
-
},
|
228
|
-
function
|
229
|
-
const u =
|
227
|
+
}, pt = { class: "p-4" }, ht = { class: "flex justify-end mt-4 gap-x-3" };
|
228
|
+
function ft(t, e, s, i, n, r) {
|
229
|
+
const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), m = p("IconDelete"), k = p("VsPopover"), c = p("VsDialog");
|
230
230
|
return o(), a(S, null, [
|
231
|
-
l("div",
|
231
|
+
l("div", at, [
|
232
232
|
x(k, {
|
233
233
|
trigger: "click",
|
234
234
|
placement: "bottom-left"
|
235
235
|
}, {
|
236
236
|
reference: $(() => [
|
237
|
-
l("button",
|
237
|
+
l("button", it, [
|
238
238
|
x(u, {
|
239
239
|
height: "16",
|
240
240
|
width: "16"
|
@@ -244,8 +244,8 @@ function pt(t, e, s, i, n, r) {
|
|
244
244
|
default: $(() => {
|
245
245
|
var g, d, C, y, A;
|
246
246
|
return [
|
247
|
-
l("div",
|
248
|
-
(g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(
|
247
|
+
l("div", ct, [
|
248
|
+
(g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(h, {
|
249
249
|
key: 0,
|
250
250
|
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
251
|
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"
|
@@ -262,12 +262,12 @@ function pt(t, e, s, i, n, r) {
|
|
262
262
|
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
263
|
}, [
|
264
264
|
x(m, { class: "opacity-0" }),
|
265
|
-
l("span",
|
266
|
-
], 8,
|
267
|
-
s.isForm ? (o(), a("div",
|
265
|
+
l("span", dt, T(V == null ? void 0 : V.label), 1)
|
266
|
+
], 8, ut))), 128)),
|
267
|
+
s.isForm ? (o(), a("div", bt)) : w("", !0),
|
268
268
|
(A = s.actions) != null && A.includes("del") ? (o(), a("button", {
|
269
269
|
key: 2,
|
270
|
-
onClick: e[0] || (e[0] =
|
270
|
+
onClick: e[0] || (e[0] = Pe((...V) => r.openConfirm && r.openConfirm(...V), ["stop"])),
|
271
271
|
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
272
|
}, [
|
273
273
|
x(m),
|
@@ -286,7 +286,7 @@ function pt(t, e, s, i, n, r) {
|
|
286
286
|
title: "Ви впевнені?"
|
287
287
|
}, {
|
288
288
|
default: $(() => [
|
289
|
-
l("div",
|
289
|
+
l("div", pt, [
|
290
290
|
e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
291
291
|
l("div", ht, [
|
292
292
|
l("button", {
|
@@ -306,7 +306,7 @@ function pt(t, e, s, i, n, r) {
|
|
306
306
|
}, 8, ["visible"])
|
307
307
|
], 64);
|
308
308
|
}
|
309
|
-
const
|
309
|
+
const mt = /* @__PURE__ */ v(rt, [["render", ft]]), gt = {}, xt = {
|
310
310
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
311
311
|
xmlns: "http://www.w3.org/2000/svg",
|
312
312
|
viewBox: "0 0 24 24",
|
@@ -316,15 +316,15 @@ const ft = /* @__PURE__ */ v(ot, [["render", pt]]), mt = {}, gt = {
|
|
316
316
|
"stroke-linecap": "round",
|
317
317
|
"stroke-linejoin": "round"
|
318
318
|
};
|
319
|
-
function
|
320
|
-
return o(), a("svg",
|
319
|
+
function yt(t, e, s, i, n, r) {
|
320
|
+
return o(), a("svg", xt, e[0] || (e[0] = [
|
321
321
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
322
322
|
l("path", { d: "M7 20V4" }, null, -1),
|
323
323
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
324
324
|
l("path", { d: "M17 4v16" }, null, -1)
|
325
325
|
]));
|
326
326
|
}
|
327
|
-
const
|
327
|
+
const _t = /* @__PURE__ */ v(gt, [["render", yt]]), vt = {}, kt = {
|
328
328
|
xmlns: "http://www.w3.org/2000/svg",
|
329
329
|
width: "24",
|
330
330
|
height: "24",
|
@@ -336,8 +336,8 @@ const yt = /* @__PURE__ */ v(mt, [["render", xt]]), _t = {}, vt = {
|
|
336
336
|
"stroke-linejoin": "round",
|
337
337
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
338
338
|
};
|
339
|
-
function
|
340
|
-
return o(), a("svg",
|
339
|
+
function wt(t, e, s, i, n, r) {
|
340
|
+
return o(), a("svg", kt, e[0] || (e[0] = [
|
341
341
|
l("path", {
|
342
342
|
stroke: "none",
|
343
343
|
d: "M0 0h24v24H0z",
|
@@ -347,8 +347,8 @@ function kt(t, e, s, i, n, r) {
|
|
347
347
|
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
348
348
|
]));
|
349
349
|
}
|
350
|
-
const
|
351
|
-
components: { IconExport:
|
350
|
+
const Ct = /* @__PURE__ */ v(vt, [["render", wt]]), $t = {
|
351
|
+
components: { IconExport: _t, IconChevronDown: Ee, IconSuccess: Ct },
|
352
352
|
props: {
|
353
353
|
table: String,
|
354
354
|
columns: Array,
|
@@ -446,24 +446,24 @@ const wt = /* @__PURE__ */ v(_t, [["render", kt]]), Ct = {
|
|
446
446
|
this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.hidden) !== !0)) == null ? void 0 : e.map((s) => s == null ? void 0 : s.name), this.activeAction = "choceVisible";
|
447
447
|
}
|
448
448
|
}
|
449
|
-
},
|
449
|
+
}, At = {
|
450
450
|
key: 0,
|
451
451
|
class: "flex flex-col items-center"
|
452
|
-
},
|
452
|
+
}, St = {
|
453
453
|
key: 1,
|
454
454
|
class: "p-4"
|
455
|
-
},
|
455
|
+
}, Tt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Vt = { class: "flex items-center" }, It = { class: "flex items-center gap-[10px] ml-auto" }, Dt = ["onClick"], Ft = {
|
456
456
|
key: 0,
|
457
457
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
458
|
-
},
|
458
|
+
}, 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 = {
|
459
459
|
key: 0,
|
460
460
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
461
|
-
},
|
461
|
+
}, Bt = {
|
462
462
|
key: 1,
|
463
463
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
464
464
|
};
|
465
|
-
function
|
466
|
-
const u =
|
465
|
+
function Ut(t, e, s, i, n, r) {
|
466
|
+
const u = p("IconExport"), f = p("IconChevronDown"), h = p("IconSuccess"), m = p("VsCheckbox"), k = p("VsDialog");
|
467
467
|
return o(), a(S, null, [
|
468
468
|
l("button", {
|
469
469
|
onClick: e[0] || (e[0] = (c) => n.isOpen = !0),
|
@@ -487,7 +487,7 @@ function Bt(t, e, s, i, n, r) {
|
|
487
487
|
closeClickBack: !0
|
488
488
|
}, {
|
489
489
|
footer: $(() => [
|
490
|
-
n.isSuccessTemplate ? (o(), a("div",
|
490
|
+
n.isSuccessTemplate ? (o(), a("div", Pt, [
|
491
491
|
l("button", {
|
492
492
|
type: "button",
|
493
493
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
@@ -498,7 +498,7 @@ function Bt(t, e, s, i, n, r) {
|
|
498
498
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-600 border border-blue-600 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500",
|
499
499
|
onClick: e[3] || (e[3] = (c) => n.isSuccessTemplate = !1)
|
500
500
|
}, " Вигрузити ще ")
|
501
|
-
])) : (o(), a("div",
|
501
|
+
])) : (o(), a("div", Bt, [
|
502
502
|
l("button", {
|
503
503
|
type: "button",
|
504
504
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
@@ -512,18 +512,18 @@ function Bt(t, e, s, i, n, r) {
|
|
512
512
|
]))
|
513
513
|
]),
|
514
514
|
default: $(() => [
|
515
|
-
n.isSuccessTemplate ? (o(), a("div",
|
516
|
-
x(
|
515
|
+
n.isSuccessTemplate ? (o(), a("div", At, [
|
516
|
+
x(h, {
|
517
517
|
height: "100",
|
518
518
|
width: "100",
|
519
519
|
class: "text-green-200 mb-[20px]"
|
520
520
|
}),
|
521
521
|
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
522
|
-
])) : (o(), a("div",
|
523
|
-
l("div",
|
524
|
-
l("div",
|
522
|
+
])) : (o(), a("div", St, [
|
523
|
+
l("div", Tt, [
|
524
|
+
l("div", Vt, [
|
525
525
|
e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
526
|
-
l("div",
|
526
|
+
l("div", It, [
|
527
527
|
(o(!0), a(S, null, D(n.actions, (c) => (o(), a("button", {
|
528
528
|
key: c == null ? void 0 : c.name,
|
529
529
|
onClick: c == null ? void 0 : c.function,
|
@@ -532,13 +532,13 @@ function Bt(t, e, s, i, n, r) {
|
|
532
532
|
l("span", {
|
533
533
|
class: I(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === n.activeAction }])
|
534
534
|
}, [
|
535
|
-
(c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span",
|
535
|
+
(c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span", Ft)) : w("", !0)
|
536
536
|
], 2),
|
537
537
|
j(" " + T(c == null ? void 0 : c.label), 1)
|
538
|
-
], 8,
|
538
|
+
], 8, Dt))), 128))
|
539
539
|
])
|
540
540
|
]),
|
541
|
-
l("div",
|
541
|
+
l("div", jt, [
|
542
542
|
(o(!0), a(S, null, D(s.columns, (c, g) => (o(), a("div", {
|
543
543
|
class: "flex items-center",
|
544
544
|
key: g,
|
@@ -554,9 +554,9 @@ function Bt(t, e, s, i, n, r) {
|
|
554
554
|
]))), 128))
|
555
555
|
])
|
556
556
|
]),
|
557
|
-
l("div",
|
557
|
+
l("div", Mt, [
|
558
558
|
e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
559
|
-
l("div",
|
559
|
+
l("div", qt, [
|
560
560
|
(o(!0), a(S, null, D(n.tableFormats, (c, g) => (o(), a("div", {
|
561
561
|
class: "flex items-center",
|
562
562
|
key: g
|
@@ -567,11 +567,11 @@ function Bt(t, e, s, i, n, r) {
|
|
567
567
|
class: "text-blue-600 border-gray-300 rounded-full shrink-0 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-500 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800",
|
568
568
|
id: c,
|
569
569
|
onChange: (d) => r.selectFormat(c)
|
570
|
-
}, null, 40,
|
570
|
+
}, null, 40, zt),
|
571
571
|
l("label", {
|
572
572
|
for: c,
|
573
573
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
574
|
-
}, " Формат " + T(c), 9,
|
574
|
+
}, " Формат " + T(c), 9, Lt)
|
575
575
|
]))), 128))
|
576
576
|
])
|
577
577
|
])
|
@@ -581,7 +581,7 @@ function Bt(t, e, s, i, n, r) {
|
|
581
581
|
}, 8, ["visible"])
|
582
582
|
], 64);
|
583
583
|
}
|
584
|
-
const
|
584
|
+
const Ot = /* @__PURE__ */ v($t, [["render", Ut]]), Et = {}, Nt = {
|
585
585
|
xmlns: "http://www.w3.org/2000/svg",
|
586
586
|
viewBox: "0 0 24 24",
|
587
587
|
fill: "none",
|
@@ -591,12 +591,12 @@ const Ut = /* @__PURE__ */ v(Ct, [["render", Bt]]), Ot = {}, Et = {
|
|
591
591
|
"stroke-linejoin": "round",
|
592
592
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
593
593
|
};
|
594
|
-
function
|
595
|
-
return o(), a("svg",
|
594
|
+
function Ht(t, e, s, i, n, r) {
|
595
|
+
return o(), a("svg", Nt, e[0] || (e[0] = [
|
596
596
|
L('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
|
597
597
|
]));
|
598
598
|
}
|
599
|
-
const
|
599
|
+
const Rt = /* @__PURE__ */ v(Et, [["render", Ht]]), Wt = {
|
600
600
|
props: { column: Object },
|
601
601
|
emits: ["update-column"],
|
602
602
|
data() {
|
@@ -613,21 +613,21 @@ const Ht = /* @__PURE__ */ v(Ot, [["render", Nt]]), Rt = {
|
|
613
613
|
var t;
|
614
614
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
615
615
|
}
|
616
|
-
},
|
617
|
-
function
|
616
|
+
}, Zt = { class: "flex w-full gap-[8px] items-centr" };
|
617
|
+
function Gt(t, e, s, i, n, r) {
|
618
618
|
var u, f;
|
619
|
-
return o(), a("label",
|
619
|
+
return o(), a("label", Zt, [
|
620
620
|
P(l("input", {
|
621
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
621
|
+
"onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
|
622
622
|
type: "checkbox"
|
623
623
|
}, null, 512), [
|
624
|
-
[
|
624
|
+
[Be, n.value]
|
625
625
|
]),
|
626
626
|
j(" " + T(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
|
627
627
|
]);
|
628
628
|
}
|
629
|
-
const
|
630
|
-
components: { IconColumns:
|
629
|
+
const Jt = /* @__PURE__ */ v(Wt, [["render", Gt]]), Kt = {
|
630
|
+
components: { IconColumns: Rt, AdminTableColumnsHiddenItem: Jt },
|
631
631
|
emits: ["update-columns"],
|
632
632
|
props: { columns: Array },
|
633
633
|
methods: {
|
@@ -636,15 +636,15 @@ const Gt = /* @__PURE__ */ v(Rt, [["render", Zt]]), Jt = {
|
|
636
636
|
s[e] = t, this.$emit("update-columns", [...s]);
|
637
637
|
}
|
638
638
|
}
|
639
|
-
},
|
640
|
-
function
|
641
|
-
const u =
|
642
|
-
return o(), _(
|
639
|
+
}, 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
|
+
function en(t, e, s, i, n, r) {
|
641
|
+
const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), h = p("VsPopover");
|
642
|
+
return o(), _(h, {
|
643
643
|
trigger: "click",
|
644
644
|
placement: "bottom"
|
645
645
|
}, {
|
646
646
|
reference: $(() => [
|
647
|
-
l("button",
|
647
|
+
l("button", Qt, [
|
648
648
|
x(u, {
|
649
649
|
height: "20",
|
650
650
|
width: "16"
|
@@ -652,9 +652,9 @@ function Yt(t, e, s, i, n, r) {
|
|
652
652
|
])
|
653
653
|
]),
|
654
654
|
default: $(() => [
|
655
|
-
l("div",
|
655
|
+
l("div", Xt, [
|
656
656
|
e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
657
|
-
l("ul",
|
657
|
+
l("ul", Yt, [
|
658
658
|
(o(!0), a(S, null, D(s.columns, (m, k) => (o(), a("li", { key: k }, [
|
659
659
|
x(f, {
|
660
660
|
column: m,
|
@@ -667,14 +667,14 @@ function Yt(t, e, s, i, n, r) {
|
|
667
667
|
_: 1
|
668
668
|
});
|
669
669
|
}
|
670
|
-
const
|
670
|
+
const tn = /* @__PURE__ */ v(Kt, [["render", en]]), nn = {}, sn = {
|
671
671
|
class: "hidden sm:block shrink-0 size-3",
|
672
672
|
xmlns: "http://www.w3.org/2000/svg",
|
673
673
|
fill: "currentColor",
|
674
674
|
viewBox: "0 0 16 16"
|
675
675
|
};
|
676
|
-
function
|
677
|
-
return o(), a("svg",
|
676
|
+
function ln(t, e, s, i, n, r) {
|
677
|
+
return o(), a("svg", sn, e[0] || (e[0] = [
|
678
678
|
l("path", {
|
679
679
|
"fill-rule": "evenodd",
|
680
680
|
"clip-rule": "evenodd",
|
@@ -682,13 +682,13 @@ function sn(t, e, s, i, n, r) {
|
|
682
682
|
}, null, -1)
|
683
683
|
]));
|
684
684
|
}
|
685
|
-
const
|
685
|
+
const Ce = /* @__PURE__ */ v(nn, [["render", ln]]), on = {
|
686
686
|
props: { row: Object, column: Object, table: String }
|
687
687
|
};
|
688
|
-
function
|
689
|
-
var u, f,
|
688
|
+
function rn(t, e, s, i, n, r) {
|
689
|
+
var u, f, h, m, k, c, g, d;
|
690
690
|
return o(), _(z(
|
691
|
-
((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (
|
691
|
+
((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (h = s.column) == null ? void 0 : h.format) == null ? void 0 : m.toLowerCase()) || "text"}`
|
692
692
|
), {
|
693
693
|
onUpdateTable: e[0] || (e[0] = (C) => t.$emit("update-table")),
|
694
694
|
name: (k = s.column) == null ? void 0 : k.name,
|
@@ -699,7 +699,7 @@ function on(t, e, s, i, n, r) {
|
|
699
699
|
edit: (d = s.column) == null ? void 0 : d.edit
|
700
700
|
}, null, 40, ["name", "data", "value", "table", "column", "edit"]);
|
701
701
|
}
|
702
|
-
const
|
702
|
+
const $e = /* @__PURE__ */ v(on, [["render", rn]]), an = {}, cn = {
|
703
703
|
xmlns: "http://www.w3.org/2000/svg",
|
704
704
|
viewBox: "0 0 24 24",
|
705
705
|
fill: "none",
|
@@ -709,8 +709,8 @@ const Ce = /* @__PURE__ */ v(ln, [["render", on]]), rn = {}, an = {
|
|
709
709
|
"stroke-linejoin": "round",
|
710
710
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
711
711
|
};
|
712
|
-
function
|
713
|
-
return o(), a("svg",
|
712
|
+
function un(t, e, s, i, n, r) {
|
713
|
+
return o(), a("svg", cn, e[0] || (e[0] = [
|
714
714
|
l("path", {
|
715
715
|
stroke: "none",
|
716
716
|
d: "M0 0h24v24H0z",
|
@@ -719,8 +719,8 @@ function cn(t, e, s, i, n, r) {
|
|
719
719
|
l("path", { d: "M5 12l14 0" }, null, -1)
|
720
720
|
]));
|
721
721
|
}
|
722
|
-
const
|
723
|
-
components: { IconPlus:
|
722
|
+
const dn = /* @__PURE__ */ v(an, [["render", un]]), bn = {
|
723
|
+
components: { IconPlus: Ce, IconMinus: dn },
|
724
724
|
props: {
|
725
725
|
title: String,
|
726
726
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -728,22 +728,22 @@ const un = /* @__PURE__ */ v(rn, [["render", cn]]), dn = {
|
|
728
728
|
data() {
|
729
729
|
return { expanded: this.defaultValue };
|
730
730
|
}
|
731
|
-
},
|
732
|
-
function
|
733
|
-
const u =
|
731
|
+
}, pn = { class: "hs-accordion" }, hn = { 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
|
+
function gn(t, e, s, i, n, r) {
|
733
|
+
const u = p("IconPlus"), f = p("IconMinus");
|
734
734
|
return o(), a("div", null, [
|
735
735
|
l("div", null, [
|
736
|
-
l("div",
|
736
|
+
l("div", pn, [
|
737
737
|
l("div", hn, [
|
738
738
|
l("div", {
|
739
|
-
onClick: e[0] || (e[0] = (
|
739
|
+
onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
|
740
740
|
class: "rounded-md cursor-pointer grow"
|
741
741
|
}, [
|
742
|
-
l("span",
|
742
|
+
l("span", fn, T(s.title), 1)
|
743
743
|
]),
|
744
744
|
l("button", {
|
745
745
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
746
|
-
onClick: e[1] || (e[1] = (
|
746
|
+
onClick: e[1] || (e[1] = (h) => n.expanded = !n.expanded)
|
747
747
|
}, [
|
748
748
|
n.expanded ? (o(), _(f, {
|
749
749
|
key: 1,
|
@@ -753,10 +753,10 @@ function mn(t, e, s, i, n, r) {
|
|
753
753
|
]),
|
754
754
|
x(B, { name: "fade" }, {
|
755
755
|
default: $(() => [
|
756
|
-
P(l("div",
|
757
|
-
|
756
|
+
P(l("div", mn, [
|
757
|
+
Ue(t.$slots, "default", {}, void 0, !0)
|
758
758
|
], 512), [
|
759
|
-
[
|
759
|
+
[we, n.expanded]
|
760
760
|
])
|
761
761
|
]),
|
762
762
|
_: 3
|
@@ -765,31 +765,31 @@ function mn(t, e, s, i, n, r) {
|
|
765
765
|
])
|
766
766
|
]);
|
767
767
|
}
|
768
|
-
const
|
768
|
+
const xn = /* @__PURE__ */ v(bn, [["render", gn], ["__scopeId", "data-v-c6318482"]]), yn = {
|
769
769
|
components: {
|
770
|
-
AdminComponentIs:
|
771
|
-
AdminTree:
|
772
|
-
VsNoData:
|
773
|
-
VsWidgetComments:
|
774
|
-
VsWidgetMap:
|
775
|
-
VsWidgetFileList:
|
770
|
+
AdminComponentIs: $e,
|
771
|
+
AdminTree: xn,
|
772
|
+
VsNoData: De,
|
773
|
+
VsWidgetComments: Fe,
|
774
|
+
VsWidgetMap: je,
|
775
|
+
VsWidgetFileList: Me
|
776
776
|
},
|
777
777
|
props: { table: String, columns: Array, row: Object }
|
778
|
-
},
|
778
|
+
}, _n = {
|
779
779
|
class: "hs-accordion border-gray-100 w-[360px] shrink-0 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",
|
780
780
|
style: { height: "calc(100vh - 310px)" }
|
781
|
-
},
|
781
|
+
}, vn = {
|
782
782
|
class: "border-l",
|
783
783
|
style: { height: "calc(100vh - 360px)" }
|
784
|
-
},
|
785
|
-
function
|
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" }, Tn = { class: "table-info-card" };
|
785
|
+
function Vn(t, e, s, i, n, r) {
|
786
786
|
var g, d, C;
|
787
|
-
const u =
|
788
|
-
return o(), a("div",
|
787
|
+
const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), m = p("VsNoData"), k = p("VsWidgetComments"), c = p("VsWidgetFileList");
|
788
|
+
return o(), a("div", _n, [
|
789
789
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
790
790
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
791
791
|
], -1)),
|
792
|
-
l("div",
|
792
|
+
l("div", vn, [
|
793
793
|
(d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), a(S, { key: 0 }, [
|
794
794
|
s.row ? (o(), _(f, {
|
795
795
|
key: 0,
|
@@ -798,12 +798,12 @@ function Tn(t, e, s, i, n, r) {
|
|
798
798
|
class: "border-b p-[10px] py-[16px]"
|
799
799
|
}, {
|
800
800
|
default: $(() => [
|
801
|
-
(o(!0), a(S, null, D(s.columns, (y) => (o(), a("dl",
|
802
|
-
l("dt",
|
803
|
-
l("p",
|
801
|
+
(o(!0), a(S, null, D(s.columns, (y) => (o(), a("dl", kn, [
|
802
|
+
l("dt", wn, [
|
803
|
+
l("p", Cn, T((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
|
804
804
|
]),
|
805
|
-
l("dd",
|
806
|
-
l("p",
|
805
|
+
l("dd", $n, [
|
806
|
+
l("p", An, [
|
807
807
|
x(u, {
|
808
808
|
row: s.row,
|
809
809
|
column: y,
|
@@ -823,7 +823,7 @@ function Tn(t, e, s, i, n, r) {
|
|
823
823
|
default: $(() => {
|
824
824
|
var y, A;
|
825
825
|
return [
|
826
|
-
(y = s.row) != null && y.geom ? (o(), _(
|
826
|
+
(y = s.row) != null && y.geom ? (o(), _(h, {
|
827
827
|
key: 0,
|
828
828
|
geometry: (A = s.row) == null ? void 0 : A.geom,
|
829
829
|
zoom: 14
|
@@ -844,7 +844,7 @@ function Tn(t, e, s, i, n, r) {
|
|
844
844
|
default: $(() => {
|
845
845
|
var y;
|
846
846
|
return [
|
847
|
-
l("div",
|
847
|
+
l("div", Sn, [
|
848
848
|
x(k, {
|
849
849
|
id: (y = s.row) == null ? void 0 : y.id
|
850
850
|
}, null, 8, ["id"])
|
@@ -860,7 +860,7 @@ function Tn(t, e, s, i, n, r) {
|
|
860
860
|
default: $(() => {
|
861
861
|
var y;
|
862
862
|
return [
|
863
|
-
l("div",
|
863
|
+
l("div", Tn, [
|
864
864
|
x(c, {
|
865
865
|
id: (y = s.row) == null ? void 0 : y.id
|
866
866
|
}, null, 8, ["id"])
|
@@ -876,7 +876,7 @@ function Tn(t, e, s, i, n, r) {
|
|
876
876
|
])
|
877
877
|
]);
|
878
878
|
}
|
879
|
-
const
|
879
|
+
const In = /* @__PURE__ */ v(yn, [["render", Vn]]), Dn = {}, Fn = {
|
880
880
|
class: "hidden xl:block shrink-0 size-4",
|
881
881
|
xmlns: "http://www.w3.org/2000/svg",
|
882
882
|
viewBox: "0 0 24 24",
|
@@ -886,8 +886,8 @@ const Vn = /* @__PURE__ */ v(xn, [["render", Tn]]), In = {}, Dn = {
|
|
886
886
|
"stroke-linecap": "round",
|
887
887
|
"stroke-linejoin": "round"
|
888
888
|
};
|
889
|
-
function
|
890
|
-
return o(), a("svg",
|
889
|
+
function jn(t, e, s, i, n, r) {
|
890
|
+
return o(), a("svg", Fn, e[0] || (e[0] = [
|
891
891
|
l("rect", {
|
892
892
|
width: "18",
|
893
893
|
height: "18",
|
@@ -899,7 +899,7 @@ function Fn(t, e, s, i, n, r) {
|
|
899
899
|
l("path", { d: "m8 9 3 3-3 3" }, null, -1)
|
900
900
|
]));
|
901
901
|
}
|
902
|
-
const
|
902
|
+
const Mn = /* @__PURE__ */ v(Dn, [["render", jn]]), qn = {}, zn = {
|
903
903
|
class: "h21yx vs0hq",
|
904
904
|
xmlns: "http://www.w3.org/2000/svg",
|
905
905
|
width: "24",
|
@@ -911,15 +911,15 @@ const jn = /* @__PURE__ */ v(In, [["render", Fn]]), Mn = {}, qn = {
|
|
911
911
|
"stroke-linecap": "round",
|
912
912
|
"stroke-linejoin": "round"
|
913
913
|
};
|
914
|
-
function
|
915
|
-
return o(), a("svg",
|
914
|
+
function Ln(t, e, s, i, n, r) {
|
915
|
+
return o(), a("svg", zn, e[0] || (e[0] = [
|
916
916
|
L('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
|
917
917
|
]));
|
918
918
|
}
|
919
|
-
const
|
919
|
+
const Pn = /* @__PURE__ */ v(qn, [["render", Ln]]), Bn = {
|
920
920
|
emits: ["filterChange"],
|
921
921
|
props: { scheme: { type: Object }, onFilters: { type: Number } },
|
922
|
-
components: { IconFilter:
|
922
|
+
components: { IconFilter: Pn },
|
923
923
|
data() {
|
924
924
|
return {
|
925
925
|
isFilters: !1
|
@@ -930,15 +930,15 @@ const Ln = /* @__PURE__ */ v(Mn, [["render", zn]]), Pn = {
|
|
930
930
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
931
931
|
}
|
932
932
|
}
|
933
|
-
},
|
933
|
+
}, Un = {
|
934
934
|
key: 0,
|
935
935
|
class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
|
936
|
-
},
|
937
|
-
function
|
938
|
-
const u =
|
936
|
+
}, 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
|
+
function En(t, e, s, i, n, r) {
|
938
|
+
const u = p("IconFilter"), f = p("VsFilter");
|
939
939
|
return o(), a(S, null, [
|
940
940
|
l("button", {
|
941
|
-
onClick: e[0] || (e[0] = (
|
941
|
+
onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
|
942
942
|
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
943
|
}, [
|
944
944
|
x(u, {
|
@@ -946,19 +946,19 @@ function On(t, e, s, i, n, r) {
|
|
946
946
|
width: "16"
|
947
947
|
}),
|
948
948
|
e[4] || (e[4] = j(" Фільтри ")),
|
949
|
-
s.onFilters ? (o(), a("span",
|
949
|
+
s.onFilters ? (o(), a("span", Un, T(s.onFilters), 1)) : w("", !0)
|
950
950
|
]),
|
951
951
|
x(B, { name: "fade" }, {
|
952
952
|
default: $(() => {
|
953
|
-
var
|
953
|
+
var h;
|
954
954
|
return [
|
955
955
|
P(l("div", {
|
956
956
|
onClick: e[3] || (e[3] = (...m) => r.closeFilter && r.closeFilter(...m)),
|
957
957
|
style: { height: "100vh" },
|
958
958
|
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
959
|
}, [
|
960
|
-
l("div",
|
961
|
-
(
|
960
|
+
l("div", On, [
|
961
|
+
(h = s.scheme) != null && h.length ? (o(), _(f, {
|
962
962
|
key: 0,
|
963
963
|
ref: "filter",
|
964
964
|
scheme: s.scheme,
|
@@ -972,7 +972,7 @@ function On(t, e, s, i, n, r) {
|
|
972
972
|
}, null, 8, ["scheme"])) : w("", !0)
|
973
973
|
])
|
974
974
|
], 512), [
|
975
|
-
[
|
975
|
+
[we, n.isFilters]
|
976
976
|
])
|
977
977
|
];
|
978
978
|
}),
|
@@ -980,25 +980,25 @@ function On(t, e, s, i, n, r) {
|
|
980
980
|
})
|
981
981
|
], 64);
|
982
982
|
}
|
983
|
-
const
|
983
|
+
const Nn = /* @__PURE__ */ v(Bn, [["render", En]]), Hn = {
|
984
984
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
985
|
-
},
|
985
|
+
}, Rn = {
|
986
986
|
class: "relative flex space-x-1 mb-[20px] after:absolute after:w-[99%] after:bottom-0 after:inset-x-0 after:border-b-2 after:border-gray-200 dark:after:border-neutral-700",
|
987
987
|
"aria-label": "Tabs",
|
988
988
|
role: "tablist",
|
989
989
|
"aria-orientation": "horizontal"
|
990
|
-
},
|
991
|
-
function
|
992
|
-
return o(), a("nav",
|
990
|
+
}, Wn = ["onClick"];
|
991
|
+
function Zn(t, e, s, i, n, r) {
|
992
|
+
return o(), a("nav", Rn, [
|
993
993
|
(o(!0), a(S, null, D(s.tabsList, (u) => (o(), a("button", {
|
994
994
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
995
995
|
class: I(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
|
996
996
|
" 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
997
|
}])
|
998
|
-
}, T(u == null ? void 0 : u.label), 11,
|
998
|
+
}, T(u == null ? void 0 : u.label), 11, Wn))), 256))
|
999
999
|
]);
|
1000
1000
|
}
|
1001
|
-
const
|
1001
|
+
const Gn = /* @__PURE__ */ v(Hn, [["render", Zn]]), Jn = {}, Kn = {
|
1002
1002
|
xmlns: "http://www.w3.org/2000/svg",
|
1003
1003
|
viewBox: "0 0 24 24",
|
1004
1004
|
fill: "none",
|
@@ -1008,8 +1008,8 @@ const Zn = /* @__PURE__ */ v(Nn, [["render", Wn]]), Gn = {}, Jn = {
|
|
1008
1008
|
"stroke-linejoin": "round",
|
1009
1009
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
1010
1010
|
};
|
1011
|
-
function
|
1012
|
-
return o(), a("svg",
|
1011
|
+
function Qn(t, e, s, i, n, r) {
|
1012
|
+
return o(), a("svg", Kn, e[0] || (e[0] = [
|
1013
1013
|
l("path", {
|
1014
1014
|
stroke: "none",
|
1015
1015
|
d: "M0 0h24v24H0z",
|
@@ -1018,18 +1018,18 @@ function Kn(t, e, s, i, n, r) {
|
|
1018
1018
|
l("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" }, null, -1)
|
1019
1019
|
]));
|
1020
1020
|
}
|
1021
|
-
const
|
1022
|
-
components: { IconFilter2:
|
1021
|
+
const Xn = /* @__PURE__ */ v(Jn, [["render", Qn]]), Yn = {
|
1022
|
+
components: { IconFilter2: Xn },
|
1023
1023
|
props: { filterCustom: String, customList: Array }
|
1024
|
-
},
|
1025
|
-
function
|
1026
|
-
const u =
|
1024
|
+
}, 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
|
+
function ss(t, e, s, i, n, r) {
|
1026
|
+
const u = p("IconFilter2"), f = p("VsPopover");
|
1027
1027
|
return o(), _(f, {
|
1028
1028
|
ref: "popover",
|
1029
1029
|
placement: "bottom"
|
1030
1030
|
}, {
|
1031
1031
|
reference: $(() => [
|
1032
|
-
l("button",
|
1032
|
+
l("button", es, [
|
1033
1033
|
x(u, {
|
1034
1034
|
height: "20",
|
1035
1035
|
width: "20"
|
@@ -1037,18 +1037,18 @@ function ns(t, e, s, i, n, r) {
|
|
1037
1037
|
])
|
1038
1038
|
]),
|
1039
1039
|
default: $(() => [
|
1040
|
-
l("div",
|
1041
|
-
(o(!0), a(S, null, D(s.customList, (
|
1040
|
+
l("div", ts, [
|
1041
|
+
(o(!0), a(S, null, D(s.customList, (h, m) => (o(), a("button", {
|
1042
1042
|
onClick: (k) => {
|
1043
1043
|
var c;
|
1044
|
-
t.$emit("update:filterCustom",
|
1044
|
+
t.$emit("update:filterCustom", h == null ? void 0 : h.name), (c = t.$refs) == null || c.popover.togglePopover();
|
1045
1045
|
},
|
1046
1046
|
key: m,
|
1047
|
-
class: I(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (
|
1048
|
-
}, T(
|
1047
|
+
class: I(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (h == null ? void 0 : h.name) }])
|
1048
|
+
}, T(h == null ? void 0 : h.label), 11, ns))), 128)),
|
1049
1049
|
l("button", {
|
1050
1050
|
class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
|
1051
|
-
onClick: e[0] || (e[0] = (
|
1051
|
+
onClick: e[0] || (e[0] = (h) => {
|
1052
1052
|
var m;
|
1053
1053
|
t.$emit("update:filterCustom", void 0), (m = t.$refs) == null || m.popover.togglePopover();
|
1054
1054
|
})
|
@@ -1058,14 +1058,14 @@ function ns(t, e, s, i, n, r) {
|
|
1058
1058
|
_: 1
|
1059
1059
|
}, 512);
|
1060
1060
|
}
|
1061
|
-
const
|
1061
|
+
const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-center gap-x-2" }, rs = {
|
1062
1062
|
__name: "admin-table-custom-buttons",
|
1063
1063
|
props: {
|
1064
1064
|
slots: Object
|
1065
1065
|
},
|
1066
1066
|
setup(t) {
|
1067
|
-
var f,
|
1068
|
-
const { asyncTemplateSlot: e } = (c = (k = (m = (
|
1067
|
+
var f, h, m, k, c;
|
1068
|
+
const { asyncTemplateSlot: e } = (c = (k = (m = (h = (f = Oe()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : m.config) == null ? void 0 : k.globalProperties) == null ? void 0 : c.utils, s = ve(""), i = ve(""), n = t, r = () => {
|
1069
1069
|
var g, d, C, y, A;
|
1070
1070
|
if ((g = n.slots) != null && g.panelLeft || (i.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelLeft) != null && C.includes("<")) {
|
1071
1071
|
const V = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
|
@@ -1084,35 +1084,35 @@ const ss = /* @__PURE__ */ v(Xn, [["render", ns]]), ls = { class: "flex items-ce
|
|
1084
1084
|
} else
|
1085
1085
|
s.value = (A = n.slots) == null ? void 0 : A.panelRight;
|
1086
1086
|
};
|
1087
|
-
return r(), u(), (g, d) => (o(), a("div",
|
1087
|
+
return r(), u(), (g, d) => (o(), a("div", os, [
|
1088
1088
|
(o(), _(z(i.value))),
|
1089
1089
|
(o(), _(z(s.value)))
|
1090
1090
|
]));
|
1091
1091
|
}
|
1092
|
-
},
|
1092
|
+
}, as = (t, e = 300) => {
|
1093
1093
|
let s;
|
1094
1094
|
return function(...i) {
|
1095
1095
|
clearTimeout(s), s = setTimeout(() => {
|
1096
1096
|
t.apply(this, i);
|
1097
1097
|
}, e);
|
1098
1098
|
};
|
1099
|
-
},
|
1099
|
+
}, is = {
|
1100
1100
|
props: { table: String, title: String },
|
1101
1101
|
components: {
|
1102
|
-
AdminTableControl:
|
1103
|
-
AdminTableExport:
|
1104
|
-
AdminTableColumnsHidden:
|
1105
|
-
AdminTableColumn:
|
1106
|
-
AdminNodata:
|
1107
|
-
IconPlus:
|
1108
|
-
IconSearch:
|
1109
|
-
AdminTableCardInfo:
|
1110
|
-
IconOpenCard:
|
1111
|
-
AdminComponentIs:
|
1112
|
-
AdminTableFilters:
|
1113
|
-
AdminTableTabs:
|
1114
|
-
AdminTableCustomFilters:
|
1115
|
-
AdminTableCustomButtons:
|
1102
|
+
AdminTableControl: mt,
|
1103
|
+
AdminTableExport: Ot,
|
1104
|
+
AdminTableColumnsHidden: tn,
|
1105
|
+
AdminTableColumn: Ke,
|
1106
|
+
AdminNodata: qe,
|
1107
|
+
IconPlus: Ce,
|
1108
|
+
IconSearch: ze,
|
1109
|
+
AdminTableCardInfo: In,
|
1110
|
+
IconOpenCard: Mn,
|
1111
|
+
AdminComponentIs: $e,
|
1112
|
+
AdminTableFilters: Nn,
|
1113
|
+
AdminTableTabs: Gn,
|
1114
|
+
AdminTableCustomFilters: ls,
|
1115
|
+
AdminTableCustomButtons: rs
|
1116
1116
|
},
|
1117
1117
|
data() {
|
1118
1118
|
return {
|
@@ -1168,7 +1168,7 @@ const ss = /* @__PURE__ */ v(Xn, [["render", ns]]), ls = { class: "flex items-ce
|
|
1168
1168
|
this.tableData = null, await this.getTableData();
|
1169
1169
|
},
|
1170
1170
|
searchValue: {
|
1171
|
-
handler:
|
1171
|
+
handler: as(async function(t) {
|
1172
1172
|
var e;
|
1173
1173
|
await this.getTableData(), this.$router.push({
|
1174
1174
|
...this.$route,
|
@@ -1214,8 +1214,8 @@ const ss = /* @__PURE__ */ v(Xn, [["render", ns]]), ls = { class: "flex items-ce
|
|
1214
1214
|
},
|
1215
1215
|
methods: {
|
1216
1216
|
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 = ((
|
1217
|
+
var t, e, s, i, n, r, u, f, h, m, k, c, g, d, C, y, A;
|
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 = ((h = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : h.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
1219
|
},
|
1220
1220
|
rowWidth(t) {
|
1221
1221
|
var s, i;
|
@@ -1229,7 +1229,7 @@ const ss = /* @__PURE__ */ v(Xn, [["render", ns]]), ls = { class: "flex items-ce
|
|
1229
1229
|
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
1230
|
},
|
1231
1231
|
async getTableData() {
|
1232
|
-
var t, e, s, i, n, r, u, f,
|
1232
|
+
var t, e, s, i, n, r, u, f, h, m, k;
|
1233
1233
|
try {
|
1234
1234
|
const { data: c } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
|
1235
1235
|
params: {
|
@@ -1248,7 +1248,7 @@ const ss = /* @__PURE__ */ v(Xn, [["render", ns]]), ls = { class: "flex items-ce
|
|
1248
1248
|
}, 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
1249
|
var C;
|
1250
1250
|
(C = this.visibleColumns) != null && C.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
|
1251
|
-
}) : this.visibleColumns = (k = (m = (
|
1251
|
+
}) : this.visibleColumns = (k = (m = (h = this.tableData) == null ? void 0 : h.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
1252
|
} catch {
|
1253
1253
|
}
|
1254
1254
|
},
|
@@ -1296,25 +1296,25 @@ const ss = /* @__PURE__ */ v(Xn, [["render", ns]]), ls = { class: "flex items-ce
|
|
1296
1296
|
});
|
1297
1297
|
}
|
1298
1298
|
}
|
1299
|
-
},
|
1299
|
+
}, 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
1300
|
style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
|
1301
1301
|
class: "bg-gray-50 p-[20px] flex pt-[10px]"
|
1302
|
-
},
|
1302
|
+
}, ps = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, hs = { class: "flex" }, fs = { class: "flex gap-[6px] ml-auto" }, ms = { class: "inline-block w-full align-middle" }, gs = {
|
1303
1303
|
key: 0,
|
1304
|
-
class: "relative
|
1305
|
-
},
|
1304
|
+
class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1305
|
+
}, 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
1306
|
key: 0,
|
1307
1307
|
class: "w-[70px] sticky right-0 top-0"
|
1308
|
-
},
|
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" }, Ts = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Vs = { key: 0 }, Is = {
|
1309
1309
|
key: 0,
|
1310
1310
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1311
1311
|
};
|
1312
|
-
function
|
1313
|
-
var O, E, N, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie;
|
1314
|
-
const u =
|
1315
|
-
return o(), a("div",
|
1316
|
-
l("div",
|
1317
|
-
l("h2",
|
1312
|
+
function Ds(t, e, s, i, n, r) {
|
1313
|
+
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 = p("IconPlus"), f = p("router-link"), h = p("AdminTableTabs"), m = p("IconSearch"), k = p("VsText"), c = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), d = p("AdminTableColumnsHidden"), C = p("AdminTableExport"), y = p("AdminTableFilters"), A = p("IconOpenCard"), V = p("AdminTableColumn"), M = p("AdminComponentIs"), U = p("AdminTableControl"), Ae = p("AdminNodata"), Se = p("VsPagination"), Te = p("AdminTableCardInfo");
|
1315
|
+
return o(), a("div", cs, [
|
1316
|
+
l("div", us, [
|
1317
|
+
l("h2", ds, T(s.title), 1),
|
1318
1318
|
r.isForm ? (o(), _(f, {
|
1319
1319
|
key: 0,
|
1320
1320
|
to: `/add?table=${(E = (O = t.$route) == null ? void 0 : O.params) == null ? void 0 : E.catchAll}`,
|
@@ -1330,9 +1330,9 @@ function Is(t, e, s, i, n, r) {
|
|
1330
1330
|
_: 1
|
1331
1331
|
}, 8, ["to"])) : w("", !0)
|
1332
1332
|
]),
|
1333
|
-
l("div",
|
1334
|
-
l("div",
|
1335
|
-
(H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (o(), _(
|
1333
|
+
l("div", bs, [
|
1334
|
+
l("div", ps, [
|
1335
|
+
(H = (N = n.tableData) == null ? void 0 : N.filterState) != null && H.length ? (o(), _(h, {
|
1336
1336
|
key: 0,
|
1337
1337
|
tabsList: (R = n.tableData) == null ? void 0 : R.filterState,
|
1338
1338
|
filterState: n.filterState,
|
@@ -1357,7 +1357,7 @@ function Is(t, e, s, i, n, r) {
|
|
1357
1357
|
clearable: !0,
|
1358
1358
|
class: "[&>input]:py-[7px] [&>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"
|
1359
1359
|
}, null, 8, ["modelValue"]),
|
1360
|
-
l("div",
|
1360
|
+
l("div", fs, [
|
1361
1361
|
(W = n.tableData) != null && W.slots ? (o(), _(c, {
|
1362
1362
|
key: 0,
|
1363
1363
|
slots: (Z = n.tableData) == null ? void 0 : Z.slots
|
@@ -1372,16 +1372,17 @@ function Is(t, e, s, i, n, r) {
|
|
1372
1372
|
columns: (Q = n.tableData) == null ? void 0 : Q.columns,
|
1373
1373
|
onUpdateColumns: e[3] || (e[3] = (b) => n.tableData.columns = b)
|
1374
1374
|
}, null, 8, ["columns"]),
|
1375
|
-
|
1375
|
+
((X = n.tableData) == null ? void 0 : X.export) !== !1 ? (o(), _(C, {
|
1376
|
+
key: 2,
|
1376
1377
|
table: s.table,
|
1377
|
-
columns: (
|
1378
|
+
columns: (Y = n.tableData) == null ? void 0 : Y.columns,
|
1378
1379
|
page: n.page,
|
1379
1380
|
"filter-state": n.filterState,
|
1380
1381
|
"filter-custom": n.filterCustom,
|
1381
1382
|
filters: n.filters
|
1382
|
-
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"]),
|
1383
|
-
(
|
1384
|
-
key:
|
1383
|
+
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : w("", !0),
|
1384
|
+
(ee = n.filterScheme) != null && ee.length ? (o(), _(y, {
|
1385
|
+
key: 3,
|
1385
1386
|
scheme: n.filterScheme,
|
1386
1387
|
onFilters: n.onFilters,
|
1387
1388
|
onFilterChange: r.filterChange
|
@@ -1400,18 +1401,18 @@ function Is(t, e, s, i, n, r) {
|
|
1400
1401
|
class: I(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
|
1401
1402
|
}, [
|
1402
1403
|
l("div", {
|
1403
|
-
style:
|
1404
|
-
height: (
|
1404
|
+
style: ke({
|
1405
|
+
height: (ne = (te = n.tableData) == null ? void 0 : te.filterState) != null && ne.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
|
1405
1406
|
}),
|
1406
1407
|
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"
|
1407
1408
|
}, [
|
1408
|
-
l("div",
|
1409
|
-
r.isNoData ? (o(), _(
|
1410
|
-
l("thead",
|
1411
|
-
l("tr",
|
1409
|
+
l("div", ms, [
|
1410
|
+
r.isNoData ? (o(), _(Ae, { key: 1 })) : (o(), a("table", gs, [
|
1411
|
+
l("thead", xs, [
|
1412
|
+
l("tr", ys, [
|
1412
1413
|
(o(!0), a(S, null, D(r.columns, (b) => (o(), _(V, {
|
1413
1414
|
key: b.name,
|
1414
|
-
style:
|
1415
|
+
style: ke({
|
1415
1416
|
width: r.rowWidth(b == null ? void 0 : b.name),
|
1416
1417
|
textAlign: b == null ? void 0 : b.align,
|
1417
1418
|
wordBreak: b == null ? void 0 : b.wrap
|
@@ -1420,23 +1421,23 @@ function Is(t, e, s, i, n, r) {
|
|
1420
1421
|
activeColumn: n.activeColumn,
|
1421
1422
|
onChangeActive: r.changeActiveColumn
|
1422
1423
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1423
|
-
(
|
1424
|
+
(le = (se = r.getActions) == null ? void 0 : se.filter((b) => b !== "add")) != null && le.length ? (o(), a("th", _s)) : w("", !0)
|
1424
1425
|
])
|
1425
1426
|
]),
|
1426
|
-
l("tbody",
|
1427
|
-
(o(!0), a(S, null, D((
|
1428
|
-
var
|
1427
|
+
l("tbody", vs, [
|
1428
|
+
(o(!0), a(S, null, D((oe = n.tableData) == null ? void 0 : oe.rows, (b, Ve) => {
|
1429
|
+
var ue, de, be, pe, he, fe, me, ge, xe, ye;
|
1429
1430
|
return o(), a("tr", {
|
1430
|
-
key:
|
1431
|
+
key: Ve,
|
1431
1432
|
class: I({
|
1432
|
-
"bg-gray-50": ((
|
1433
|
+
"bg-gray-50": ((de = (ue = t.$route) == null ? void 0 : ue.query) == null ? void 0 : de.card) === (b == null ? void 0 : b.id)
|
1433
1434
|
})
|
1434
1435
|
}, [
|
1435
|
-
l("td",
|
1436
|
+
l("td", ks, [
|
1436
1437
|
l("button", {
|
1437
1438
|
onClick: () => r.pushToCard(b == null ? void 0 : b.id),
|
1438
1439
|
class: I(["text-sm font-medium", [
|
1439
|
-
((
|
1440
|
+
((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"
|
1440
1441
|
]])
|
1441
1442
|
}, [
|
1442
1443
|
x(M, {
|
@@ -1445,10 +1446,10 @@ function Is(t, e, s, i, n, r) {
|
|
1445
1446
|
table: s.table,
|
1446
1447
|
onUpdateTable: r.getTableData
|
1447
1448
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1448
|
-
], 10,
|
1449
|
+
], 10, ws)
|
1449
1450
|
]),
|
1450
|
-
(o(!0), a(S, null, D((
|
1451
|
-
onClick: (
|
1451
|
+
(o(!0), a(S, null, D((pe = r.columns) == null ? void 0 : pe.slice(1), (q) => (o(), a("td", {
|
1452
|
+
onClick: (zs) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
|
1452
1453
|
class: I(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": n.isVisibleCardInfo }]),
|
1453
1454
|
key: q.name
|
1454
1455
|
}, [
|
@@ -1458,12 +1459,12 @@ function Is(t, e, s, i, n, r) {
|
|
1458
1459
|
table: s.table,
|
1459
1460
|
onUpdateTable: r.getTableData
|
1460
1461
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1461
|
-
], 10,
|
1462
|
-
(
|
1462
|
+
], 10, Cs))), 128)),
|
1463
|
+
(fe = (he = r.getActions) == null ? void 0 : he.filter((q) => q !== "add")) != null && fe.length ? (o(), a("td", {
|
1463
1464
|
key: 0,
|
1464
1465
|
class: I(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1465
|
-
"bg-gray-50": ((
|
1466
|
-
"bg-white": ((
|
1466
|
+
"bg-gray-50": ((ge = (me = t.$route) == null ? void 0 : me.query) == null ? void 0 : ge.card) === (b == null ? void 0 : b.id),
|
1467
|
+
"bg-white": ((ye = (xe = t.$route) == null ? void 0 : xe.query) == null ? void 0 : ye.card) !== (b == null ? void 0 : b.id)
|
1467
1468
|
}])
|
1468
1469
|
}, [
|
1469
1470
|
x(U, {
|
@@ -1481,22 +1482,22 @@ function Is(t, e, s, i, n, r) {
|
|
1481
1482
|
])
|
1482
1483
|
], 4)
|
1483
1484
|
], 2),
|
1484
|
-
l("div",
|
1485
|
-
l("div",
|
1486
|
-
l("p",
|
1487
|
-
l("span",
|
1488
|
-
j(T(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + T(((
|
1489
|
-
n.filters || n.searchValue ? (o(), a("span",
|
1485
|
+
l("div", $s, [
|
1486
|
+
l("div", As, [
|
1487
|
+
l("p", Ss, [
|
1488
|
+
l("span", Ts, [
|
1489
|
+
j(T(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + T(((re = n.tableData) == null ? void 0 : re.count) || "0 ") + " ", 1),
|
1490
|
+
n.filters || n.searchValue ? (o(), a("span", Vs, " з")) : w("", !0)
|
1490
1491
|
]),
|
1491
|
-
n.filters || n.searchValue ? (o(), a("span",
|
1492
|
+
n.filters || n.searchValue ? (o(), a("span", Is, T(" " + ((ae = n.tableData) == null ? void 0 : ae.filtered) || 0), 1)) : w("", !0)
|
1492
1493
|
])
|
1493
1494
|
]),
|
1494
|
-
Math.ceil(((
|
1495
|
+
Math.ceil(((ie = n.tableData) == null ? void 0 : ie.filtered) / n.limit) > 1 ? (o(), _(Se, {
|
1495
1496
|
key: 0,
|
1496
1497
|
goTo: !1,
|
1497
1498
|
class: "justify-end",
|
1498
1499
|
"default-page": parseInt(r.defaultPage),
|
1499
|
-
total: ((
|
1500
|
+
total: ((ce = n.tableData) == null ? void 0 : ce.filtered) || 0,
|
1500
1501
|
pageSize: parseInt(n.limit),
|
1501
1502
|
onPageChange: r.handlePageChange,
|
1502
1503
|
pageSizes: [10, 16, 20],
|
@@ -1509,7 +1510,7 @@ function Is(t, e, s, i, n, r) {
|
|
1509
1510
|
default: $(() => {
|
1510
1511
|
var b;
|
1511
1512
|
return [
|
1512
|
-
n.isVisibleCardInfo ? (o(), _(
|
1513
|
+
n.isVisibleCardInfo ? (o(), _(Te, {
|
1513
1514
|
key: 0,
|
1514
1515
|
table: s.table,
|
1515
1516
|
columns: (b = n.tableData) == null ? void 0 : b.columns,
|
@@ -1524,8 +1525,8 @@ function Is(t, e, s, i, n, r) {
|
|
1524
1525
|
])
|
1525
1526
|
]);
|
1526
1527
|
}
|
1527
|
-
const
|
1528
|
-
components: { AdminTable:
|
1528
|
+
const Fs = /* @__PURE__ */ v(is, [["render", Ds], ["__scopeId", "data-v-2f0ed31e"]]), js = {
|
1529
|
+
components: { AdminTable: Fs },
|
1529
1530
|
data() {
|
1530
1531
|
return {
|
1531
1532
|
table: !1,
|
@@ -1537,13 +1538,13 @@ const Ds = /* @__PURE__ */ v(as, [["render", Is], ["__scopeId", "data-v-fabf1cb0
|
|
1537
1538
|
$route: {
|
1538
1539
|
async handler() {
|
1539
1540
|
var t;
|
1540
|
-
(t =
|
1541
|
+
(t = _e) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1541
1542
|
},
|
1542
1543
|
deep: !0
|
1543
1544
|
},
|
1544
1545
|
title(t) {
|
1545
1546
|
var e;
|
1546
|
-
t && (document.title = (((e =
|
1547
|
+
t && (document.title = (((e = Le.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1547
1548
|
}
|
1548
1549
|
},
|
1549
1550
|
async mounted() {
|
@@ -1558,7 +1559,7 @@ const Ds = /* @__PURE__ */ v(as, [["render", Is], ["__scopeId", "data-v-fabf1cb0
|
|
1558
1559
|
},
|
1559
1560
|
async checkPageType() {
|
1560
1561
|
var i, n;
|
1561
|
-
const t = this.flattenMenu(
|
1562
|
+
const t = this.flattenMenu(_e.value);
|
1562
1563
|
t != null && t.length || this.$router.replace("/404");
|
1563
1564
|
const e = t == null ? void 0 : t.find((r) => {
|
1564
1565
|
var u, f;
|
@@ -1580,9 +1581,9 @@ const Ds = /* @__PURE__ */ v(as, [["render", Is], ["__scopeId", "data-v-fabf1cb0
|
|
1580
1581
|
}
|
1581
1582
|
}
|
1582
1583
|
}
|
1583
|
-
},
|
1584
|
-
function
|
1585
|
-
const u =
|
1584
|
+
}, Ms = ["innerHTML"];
|
1585
|
+
function qs(t, e, s, i, n, r) {
|
1586
|
+
const u = p("AdminTable");
|
1586
1587
|
return n.table ? (o(), _(u, {
|
1587
1588
|
key: 0,
|
1588
1589
|
table: n.table,
|
@@ -1592,9 +1593,9 @@ function Ms(t, e, s, i, n, r) {
|
|
1592
1593
|
class: "w-full bg-gray-50",
|
1593
1594
|
style: { height: "calc(100vh - 120px)" },
|
1594
1595
|
innerHTML: n.interface
|
1595
|
-
}, null, 8,
|
1596
|
+
}, null, 8, Ms));
|
1596
1597
|
}
|
1597
|
-
const
|
1598
|
+
const Us = /* @__PURE__ */ v(js, [["render", qs]]);
|
1598
1599
|
export {
|
1599
|
-
|
1600
|
+
Us as default
|
1600
1601
|
};
|