@opengis/admin 0.3.26 → 0.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -97
- package/config.js +4 -4
- package/dist/{add-page-B3H-0GBH.js → add-page-CSm2yIQ_.js} +1 -1
- package/dist/{admin-interface-CpMI-QOq.js → admin-interface-Dan7BpjD.js} +423 -482
- package/dist/{admin-view-BuCmto5A.js → admin-view-CSRgmIo1.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +48 -48
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-C4EvhyJT.js → card-view-BxePr7Rm.js} +1 -1
- package/dist/{edit-page-Bk2BoWiz.js → edit-page-DEK3t6su.js} +1 -1
- package/dist/{import-file-DoPKjOx2.js → import-file-D0iJgW_Q.js} +7317 -7338
- package/dist/{profile-page-D2CDkSuS.js → profile-page-DaCFg6QA.js} +1 -1
- 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.routes.table/groups.hbs +11 -11
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- 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/cls/yes_no.json +11 -11
- package/module/settings/form/admin.accounts.form.json +13 -13
- 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.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles_card.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/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.properties.table.json +39 -39
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/package.json +1 -1
- package/server/helpers/core/badge.js +16 -16
- package/server/helpers/core/buttonHelper.js +21 -21
- package/server/helpers/core/coalesce.js +7 -7
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/list/buttonHelper.js +21 -21
- 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/mdToHTML.js +17 -17
- 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/routes/access/controllers/access.group.js +29 -29
- package/server/routes/access/controllers/access.group.post.js +54 -54
- package/server/routes/access/index.mjs +11 -11
- package/server/routes/access/schema.mjs +67 -67
- package/server/routes/calendar/controllers/calendar.data.js +125 -125
- package/server/routes/calendar/index.mjs +7 -7
- package/server/routes/calendar/schema.js +21 -21
- 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 +31 -31
- package/server/routes/data/controllers/tableDataId.js +27 -27
- 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/getColumns.js +8 -8
- package/server/routes/data/index.mjs +20 -20
- package/server/routes/data/schema.js +54 -54
- 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 +56 -56
- package/server/routes/notifications/index.mjs +26 -26
- package/server/routes/notifications/schema.js +16 -16
- package/server/routes/print/controllers/cardPrint.js +135 -135
- package/server/routes/properties/schema.js +10 -10
- package/server/routes/report/controllers/data.js +76 -76
- package/server/routes/report/controllers/list.js +18 -18
- package/server/routes/report/index.mjs +7 -7
- package/server/routes/report/utils/formatValue.js +179 -179
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +44 -44
- 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 +72 -72
- package/server/routes/user/controllers/user.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- package/server/routes/util/controllers/code.generator.js +89 -89
- package/server/routes/widget/controllers/widget.del.js +63 -63
- package/server/routes/widget/controllers/widget.set.js +84 -84
- package/server/routes/widget/hook/onWidgetSet.js +12 -12
- package/server/routes/widget/index.mjs +16 -16
- 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/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
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as
|
3
|
-
const
|
1
|
+
import { _ as S, g as Je, h as Ge, i as Qe, f as M, I as Xe, s as E, j as Ue, k as Q, A as X, V as Ye, l as Ze, m as et, n as tt, o as st, p as nt, q as lt, a as at, r as rt, t as ot, u as Ee } from "./import-file-D0iJgW_Q.js";
|
2
|
+
import { openBlock as r, createElementBlock as i, createTextVNode as P, toDisplayString as A, createElementVNode as a, normalizeClass as w, createCommentVNode as k, resolveComponent as f, Fragment as $, createVNode as x, withCtx as D, createBlock as v, renderList as V, withModifiers as it, createStaticVNode as dt, withDirectives as U, vModelCheckbox as ut, Transition as W, vModelText as ct, renderSlot as ht, vShow as Y, Teleport as pt, getCurrentInstance as Re, ref as J, resolveDynamicComponent as G, defineComponent as bt, withKeys as ft, normalizeStyle as K } from "vue";
|
3
|
+
const gt = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
currentSort: ""
|
@@ -61,27 +61,27 @@ const bt = {
|
|
61
61
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
62
62
|
}
|
63
63
|
}
|
64
|
-
},
|
64
|
+
}, mt = {
|
65
65
|
scope: "col",
|
66
66
|
class: "text-start",
|
67
67
|
ref: "column"
|
68
|
-
},
|
68
|
+
}, xt = { class: "w-[24px]" }, yt = {
|
69
69
|
key: 1,
|
70
70
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
|
71
71
|
};
|
72
|
-
function
|
73
|
-
return
|
74
|
-
l.getVisibleIcon ? (
|
72
|
+
function vt(t, e, n, o, s, l) {
|
73
|
+
return r(), i("th", mt, [
|
74
|
+
l.getVisibleIcon ? (r(), i("button", {
|
75
75
|
key: 0,
|
76
76
|
type: "button",
|
77
77
|
class: "flex items-center px-1 py-2 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
|
78
78
|
onClick: e[0] || (e[0] = (c) => l.handleClickSortBtn(s.currentSort))
|
79
79
|
}, [
|
80
|
-
P(
|
81
|
-
|
82
|
-
s.currentSort ? (
|
80
|
+
P(A(l.label) + " ", 1),
|
81
|
+
a("span", xt, [
|
82
|
+
s.currentSort ? (r(), i("svg", {
|
83
83
|
key: 0,
|
84
|
-
class:
|
84
|
+
class: w(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
|
85
85
|
xmlns: "http://www.w3.org/2000/svg",
|
86
86
|
width: "24",
|
87
87
|
height: "24",
|
@@ -92,18 +92,18 @@ function xt(t, e, n, o, s, l) {
|
|
92
92
|
"stroke-linecap": "round",
|
93
93
|
"stroke-linejoin": "round"
|
94
94
|
}, e[1] || (e[1] = [
|
95
|
-
|
96
|
-
|
95
|
+
a("path", { d: "m5 12 7-7 7 7" }, null, -1),
|
96
|
+
a("path", { d: "M12 19V5" }, null, -1)
|
97
97
|
]), 2)) : k("", !0)
|
98
98
|
])
|
99
|
-
])) : (
|
99
|
+
])) : (r(), i("p", yt, A(l.label), 1))
|
100
100
|
], 512);
|
101
101
|
}
|
102
|
-
const
|
102
|
+
const kt = /* @__PURE__ */ S(gt, [["render", vt]]), _t = {
|
103
103
|
components: {
|
104
|
-
IconMore:
|
105
|
-
IconDelete:
|
106
|
-
IconEdit:
|
104
|
+
IconMore: Je,
|
105
|
+
IconDelete: Ge,
|
106
|
+
IconEdit: Qe
|
107
107
|
},
|
108
108
|
emits: ["updateTable"],
|
109
109
|
props: {
|
@@ -182,57 +182,57 @@ const yt = /* @__PURE__ */ T(bt, [["render", xt]]), vt = {
|
|
182
182
|
}), await this.$emit("update-table"));
|
183
183
|
}
|
184
184
|
}
|
185
|
-
},
|
185
|
+
}, Ct = { class: "inline-flex" }, wt = { 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" }, $t = { class: "flex flex-col items-start" }, St = ["onClick"], Tt = { class: "text-gray-800" }, At = {
|
186
186
|
key: 1,
|
187
187
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
188
|
-
},
|
189
|
-
function
|
190
|
-
const c =
|
191
|
-
return
|
192
|
-
|
193
|
-
|
188
|
+
}, It = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
189
|
+
function Dt(t, e, n, o, s, l) {
|
190
|
+
const c = f("IconMore"), g = f("IconEdit"), p = f("router-link"), b = f("IconDelete"), d = f("VsPopover"), y = f("VsConfirm");
|
191
|
+
return r(), i($, null, [
|
192
|
+
a("div", Ct, [
|
193
|
+
x(d, {
|
194
194
|
trigger: "click",
|
195
195
|
placement: "bottom-left"
|
196
196
|
}, {
|
197
197
|
reference: D(() => [
|
198
|
-
|
199
|
-
|
198
|
+
a("button", wt, [
|
199
|
+
x(c, {
|
200
200
|
height: "16",
|
201
201
|
width: "16"
|
202
202
|
})
|
203
203
|
])
|
204
204
|
]),
|
205
205
|
default: D(() => {
|
206
|
-
var
|
206
|
+
var m, h, _, C, I;
|
207
207
|
return [
|
208
|
-
|
209
|
-
(
|
208
|
+
a("div", $t, [
|
209
|
+
(m = n.actions) != null && m.includes("edit") && n.isForm ? (r(), v(p, {
|
210
210
|
key: 0,
|
211
|
-
to: `/edit?table=${(
|
211
|
+
to: `/edit?table=${(_ = (h = t.$route) == null ? void 0 : h.params) == null ? void 0 : _.catchAll}&id=${(C = n.item) == null ? void 0 : C.id}`,
|
212
212
|
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"
|
213
213
|
}, {
|
214
214
|
default: D(() => [
|
215
|
-
|
215
|
+
x(g, { color: "#000" }),
|
216
216
|
e[4] || (e[4] = P(" Редагувати "))
|
217
217
|
]),
|
218
218
|
_: 1
|
219
219
|
}, 8, ["to"])) : k("", !0),
|
220
|
-
(
|
220
|
+
(r(!0), i($, null, V(l.getCustomActions, (T, F) => (r(), i("button", {
|
221
221
|
key: F,
|
222
|
-
onClick: (j) => l.customButtonAction(
|
222
|
+
onClick: (j) => l.customButtonAction(T),
|
223
223
|
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"
|
224
224
|
}, [
|
225
|
-
|
226
|
-
|
227
|
-
], 8,
|
228
|
-
n.isForm ? (
|
229
|
-
(
|
225
|
+
x(b, { class: "opacity-0" }),
|
226
|
+
a("span", Tt, A(T == null ? void 0 : T.label), 1)
|
227
|
+
], 8, St))), 128)),
|
228
|
+
n.isForm ? (r(), i("div", At)) : k("", !0),
|
229
|
+
(I = n.actions) != null && I.includes("del") ? (r(), i("button", {
|
230
230
|
key: 2,
|
231
|
-
onClick: e[0] || (e[0] =
|
231
|
+
onClick: e[0] || (e[0] = it((...T) => l.openConfirm && l.openConfirm(...T), ["stop"])),
|
232
232
|
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"
|
233
233
|
}, [
|
234
|
-
|
235
|
-
e[5] || (e[5] =
|
234
|
+
x(b),
|
235
|
+
e[5] || (e[5] = a("span", { class: "text-gray-800" }, "Видалити", -1))
|
236
236
|
])) : k("", !0)
|
237
237
|
])
|
238
238
|
];
|
@@ -240,24 +240,24 @@ function At(t, e, n, o, s, l) {
|
|
240
240
|
_: 1
|
241
241
|
})
|
242
242
|
]),
|
243
|
-
y
|
243
|
+
x(y, {
|
244
244
|
visible: s.isDeleteConfirm,
|
245
|
-
"onUpdate:visible": e[3] || (e[3] = (
|
245
|
+
"onUpdate:visible": e[3] || (e[3] = (m) => s.isDeleteConfirm = m),
|
246
246
|
size: "small",
|
247
247
|
title: "Ви впевнені?"
|
248
248
|
}, {
|
249
249
|
default: D(() => [
|
250
|
-
e[6] || (e[6] =
|
251
|
-
|
252
|
-
|
250
|
+
e[6] || (e[6] = a("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
251
|
+
a("div", It, [
|
252
|
+
a("button", {
|
253
253
|
type: "button",
|
254
254
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium duration-300 border rounded-lg shadow-sm hover:bg-gray-100 gap-x-2 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
|
255
|
-
onClick: e[1] || (e[1] = (
|
255
|
+
onClick: e[1] || (e[1] = (m) => s.isDeleteConfirm = !1)
|
256
256
|
}, " Скасувати "),
|
257
|
-
|
257
|
+
a("button", {
|
258
258
|
type: "button",
|
259
259
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-white duration-300 bg-red-500 rounded-lg gap-x-2 hover:bg-red-700 disabled:opacity-50 disabled:pointer-events-none",
|
260
|
-
onClick: e[2] || (e[2] = (...
|
260
|
+
onClick: e[2] || (e[2] = (...m) => l.deleteElement && l.deleteElement(...m))
|
261
261
|
}, " Так, я впевнена(ий) ")
|
262
262
|
])
|
263
263
|
]),
|
@@ -265,7 +265,7 @@ function At(t, e, n, o, s, l) {
|
|
265
265
|
}, 8, ["visible"])
|
266
266
|
], 64);
|
267
267
|
}
|
268
|
-
const
|
268
|
+
const Vt = /* @__PURE__ */ S(_t, [["render", Dt]]), Pt = {}, Ft = {
|
269
269
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
270
270
|
xmlns: "http://www.w3.org/2000/svg",
|
271
271
|
viewBox: "0 0 24 24",
|
@@ -275,15 +275,15 @@ const It = /* @__PURE__ */ T(vt, [["render", At]]), Dt = {}, Vt = {
|
|
275
275
|
"stroke-linecap": "round",
|
276
276
|
"stroke-linejoin": "round"
|
277
277
|
};
|
278
|
-
function
|
279
|
-
return
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
278
|
+
function jt(t, e, n, o, s, l) {
|
279
|
+
return r(), i("svg", Ft, e[0] || (e[0] = [
|
280
|
+
a("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
281
|
+
a("path", { d: "M7 20V4" }, null, -1),
|
282
|
+
a("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
283
|
+
a("path", { d: "M17 4v16" }, null, -1)
|
284
284
|
]));
|
285
285
|
}
|
286
|
-
const
|
286
|
+
const Lt = /* @__PURE__ */ S(Pt, [["render", jt]]), Mt = {}, zt = {
|
287
287
|
xmlns: "http://www.w3.org/2000/svg",
|
288
288
|
width: "24",
|
289
289
|
height: "24",
|
@@ -295,19 +295,19 @@ const Ft = /* @__PURE__ */ T(Dt, [["render", Pt]]), jt = {}, Lt = {
|
|
295
295
|
"stroke-linejoin": "round",
|
296
296
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
297
297
|
};
|
298
|
-
function
|
299
|
-
return
|
300
|
-
|
298
|
+
function qt(t, e, n, o, s, l) {
|
299
|
+
return r(), i("svg", zt, e[0] || (e[0] = [
|
300
|
+
a("path", {
|
301
301
|
stroke: "none",
|
302
302
|
d: "M0 0h24v24H0z",
|
303
303
|
fill: "none"
|
304
304
|
}, null, -1),
|
305
|
-
|
306
|
-
|
305
|
+
a("path", { d: "M5 7.2a2.2 2.2 0 0 1 2.2 -2.2h1a2.2 2.2 0 0 0 1.55 -.64l.7 -.7a2.2 2.2 0 0 1 3.12 0l.7 .7c.412 .41 .97 .64 1.55 .64h1a2.2 2.2 0 0 1 2.2 2.2v1c0 .58 .23 1.138 .64 1.55l.7 .7a2.2 2.2 0 0 1 0 3.12l-.7 .7a2.2 2.2 0 0 0 -.64 1.55v1a2.2 2.2 0 0 1 -2.2 2.2h-1a2.2 2.2 0 0 0 -1.55 .64l-.7 .7a2.2 2.2 0 0 1 -3.12 0l-.7 -.7a2.2 2.2 0 0 0 -1.55 -.64h-1a2.2 2.2 0 0 1 -2.2 -2.2v-1a2.2 2.2 0 0 0 -.64 -1.55l-.7 -.7a2.2 2.2 0 0 1 0 -3.12l.7 -.7a2.2 2.2 0 0 0 .64 -1.55v-1" }, null, -1),
|
306
|
+
a("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
307
307
|
]));
|
308
308
|
}
|
309
|
-
const
|
310
|
-
components: { IconExport:
|
309
|
+
const Bt = /* @__PURE__ */ S(Mt, [["render", qt]]), Ot = {
|
310
|
+
components: { IconExport: Lt, IconChevronDown: Xe, IconSuccess: Bt },
|
311
311
|
props: {
|
312
312
|
table: String,
|
313
313
|
columns: Array,
|
@@ -414,36 +414,36 @@ const zt = /* @__PURE__ */ T(jt, [["render", Mt]]), qt = {
|
|
414
414
|
this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((n) => (n == null ? void 0 : n.hidden) !== !0)) == null ? void 0 : e.map((n) => n == null ? void 0 : n.name), this.activeAction = "choceVisible";
|
415
415
|
}
|
416
416
|
}
|
417
|
-
},
|
417
|
+
}, Nt = {
|
418
418
|
key: 0,
|
419
419
|
class: "flex flex-col items-center"
|
420
|
-
},
|
420
|
+
}, Et = {
|
421
421
|
key: 1,
|
422
422
|
class: "p-4"
|
423
|
-
},
|
423
|
+
}, Ut = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Rt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Ht = ["onClick"], Wt = {
|
424
424
|
key: 0,
|
425
425
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
426
|
-
},
|
426
|
+
}, Kt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Jt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Gt = { class: "mt-2 space-y-2" }, Qt = ["id", "onChange"], Xt = ["for"], Yt = {
|
427
427
|
key: 0,
|
428
428
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
429
|
-
},
|
429
|
+
}, Zt = {
|
430
430
|
key: 1,
|
431
431
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
432
432
|
};
|
433
|
-
function
|
434
|
-
const c =
|
435
|
-
return
|
436
|
-
|
433
|
+
function es(t, e, n, o, s, l) {
|
434
|
+
const c = f("IconExport"), g = f("IconSuccess"), p = f("VsCheckbox"), b = f("VsDialog");
|
435
|
+
return r(), i($, null, [
|
436
|
+
a("button", {
|
437
437
|
onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
|
438
438
|
class: "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
439
439
|
}, [
|
440
|
-
|
440
|
+
x(c, {
|
441
441
|
height: "16",
|
442
442
|
width: "16"
|
443
443
|
}),
|
444
444
|
e[7] || (e[7] = P(" Експорт "))
|
445
445
|
]),
|
446
|
-
|
446
|
+
x(b, {
|
447
447
|
visible: s.isOpen,
|
448
448
|
"onUpdate:visible": e[6] || (e[6] = (d) => s.isOpen = d),
|
449
449
|
title: "Експорт таблиці",
|
@@ -451,89 +451,89 @@ function Yt(t, e, n, o, s, l) {
|
|
451
451
|
closeClickBack: !0
|
452
452
|
}, {
|
453
453
|
footer: D(() => [
|
454
|
-
s.isSuccessTemplate ? (
|
455
|
-
|
454
|
+
s.isSuccessTemplate ? (r(), i("div", Yt, [
|
455
|
+
a("button", {
|
456
456
|
type: "button",
|
457
457
|
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",
|
458
458
|
onClick: e[2] || (e[2] = (d) => s.isOpen = !1)
|
459
459
|
}, " Закрити "),
|
460
|
-
|
460
|
+
a("button", {
|
461
461
|
type: "button",
|
462
462
|
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",
|
463
463
|
onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
|
464
464
|
}, " Вигрузити ще ")
|
465
|
-
])) : (
|
466
|
-
|
465
|
+
])) : (r(), i("div", Zt, [
|
466
|
+
a("button", {
|
467
467
|
type: "button",
|
468
468
|
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",
|
469
469
|
onClick: e[4] || (e[4] = (d) => s.isOpen = !1)
|
470
470
|
}, " Скасувати "),
|
471
|
-
|
471
|
+
a("button", {
|
472
472
|
type: "button",
|
473
|
-
class:
|
473
|
+
class: w(`inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-${l.color}-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-${l.color}-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-${l.color}-300 dark:focus:ring-${l.color}-500`),
|
474
474
|
onClick: e[5] || (e[5] = (...d) => l.exportTable && l.exportTable(...d))
|
475
475
|
}, " Завантажити таблицю ", 2)
|
476
476
|
]))
|
477
477
|
]),
|
478
478
|
default: D(() => [
|
479
|
-
s.isSuccessTemplate ? (
|
480
|
-
|
479
|
+
s.isSuccessTemplate ? (r(), i("div", Nt, [
|
480
|
+
x(g, {
|
481
481
|
height: "100",
|
482
482
|
width: "100",
|
483
483
|
class: "text-green-200 mb-[20px]"
|
484
484
|
}),
|
485
|
-
e[8] || (e[8] =
|
486
|
-
])) : (
|
487
|
-
|
488
|
-
e[9] || (e[9] =
|
489
|
-
|
490
|
-
(
|
485
|
+
e[8] || (e[8] = a("h2", null, "Звіт сформовано і збережено", -1))
|
486
|
+
])) : (r(), i("div", Et, [
|
487
|
+
a("div", Ut, [
|
488
|
+
e[9] || (e[9] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
489
|
+
a("div", Rt, [
|
490
|
+
(r(!0), i($, null, V(s.actions, (d) => (r(), i("button", {
|
491
491
|
key: d == null ? void 0 : d.name,
|
492
492
|
onClick: d == null ? void 0 : d.function,
|
493
493
|
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"
|
494
494
|
}, [
|
495
|
-
|
496
|
-
class:
|
495
|
+
a("span", {
|
496
|
+
class: w(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
|
497
497
|
}, [
|
498
|
-
(d == null ? void 0 : d.name) === s.activeAction ? (
|
498
|
+
(d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", Wt)) : k("", !0)
|
499
499
|
], 2),
|
500
|
-
P(" " +
|
501
|
-
], 8,
|
500
|
+
P(" " + A(d == null ? void 0 : d.label), 1)
|
501
|
+
], 8, Ht))), 128))
|
502
502
|
]),
|
503
|
-
|
504
|
-
(
|
503
|
+
a("div", Kt, [
|
504
|
+
(r(!0), i($, null, V(n.columns, (d, y) => (r(), i("div", {
|
505
505
|
class: "flex items-center",
|
506
|
-
key:
|
506
|
+
key: y,
|
507
507
|
style: { width: "calc((100% - 10px) / 2)" }
|
508
508
|
}, [
|
509
|
-
|
509
|
+
x(p, {
|
510
510
|
class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
|
511
511
|
modelValue: s.cols,
|
512
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
512
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => s.cols = m),
|
513
513
|
value: d == null ? void 0 : d.name,
|
514
514
|
label: d == null ? void 0 : d.ua
|
515
515
|
}, null, 8, ["modelValue", "value", "label"])
|
516
516
|
]))), 128))
|
517
517
|
])
|
518
518
|
]),
|
519
|
-
|
520
|
-
e[10] || (e[10] =
|
521
|
-
|
522
|
-
(
|
519
|
+
a("div", Jt, [
|
520
|
+
e[10] || (e[10] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть формат таблиці: ", -1)),
|
521
|
+
a("div", Gt, [
|
522
|
+
(r(!0), i($, null, V(s.tableFormats, (d, y) => (r(), i("div", {
|
523
523
|
class: "flex items-center",
|
524
|
-
key:
|
524
|
+
key: y
|
525
525
|
}, [
|
526
|
-
|
526
|
+
a("input", {
|
527
527
|
type: "radio",
|
528
528
|
name: "hs-pro-duecmfm",
|
529
529
|
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",
|
530
530
|
id: d,
|
531
|
-
onChange: (
|
532
|
-
}, null, 40,
|
533
|
-
|
531
|
+
onChange: (m) => l.selectFormat(d)
|
532
|
+
}, null, 40, Qt),
|
533
|
+
a("label", {
|
534
534
|
for: d,
|
535
535
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
536
|
-
}, " Формат " +
|
536
|
+
}, " Формат " + A(d), 9, Xt)
|
537
537
|
]))), 128))
|
538
538
|
])
|
539
539
|
])
|
@@ -543,7 +543,7 @@ function Yt(t, e, n, o, s, l) {
|
|
543
543
|
}, 8, ["visible"])
|
544
544
|
], 64);
|
545
545
|
}
|
546
|
-
const
|
546
|
+
const ts = /* @__PURE__ */ S(Ot, [["render", es]]), ss = {}, ns = {
|
547
547
|
xmlns: "http://www.w3.org/2000/svg",
|
548
548
|
viewBox: "0 0 24 24",
|
549
549
|
fill: "none",
|
@@ -553,16 +553,16 @@ const Zt = /* @__PURE__ */ T(qt, [["render", Yt]]), es = {}, ts = {
|
|
553
553
|
"stroke-linejoin": "round",
|
554
554
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
555
555
|
};
|
556
|
-
function
|
557
|
-
return
|
558
|
-
|
556
|
+
function ls(t, e, n, o, s, l) {
|
557
|
+
return r(), i("svg", ns, e[0] || (e[0] = [
|
558
|
+
dt('<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)
|
559
559
|
]));
|
560
560
|
}
|
561
|
-
const
|
561
|
+
const as = /* @__PURE__ */ S(ss, [["render", ls]]), rs = {
|
562
562
|
props: { column: Object },
|
563
563
|
emits: ["update-column"],
|
564
564
|
components: {
|
565
|
-
IconCheck2:
|
565
|
+
IconCheck2: Ue
|
566
566
|
},
|
567
567
|
data() {
|
568
568
|
return {
|
@@ -583,24 +583,24 @@ const ns = /* @__PURE__ */ T(es, [["render", ss]]), ls = {
|
|
583
583
|
var t;
|
584
584
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
585
585
|
}
|
586
|
-
},
|
587
|
-
function
|
586
|
+
}, os = { class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800" }, is = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
587
|
+
function ds(t, e, n, o, s, l) {
|
588
588
|
var g, p;
|
589
|
-
const c =
|
590
|
-
return
|
591
|
-
|
592
|
-
P(
|
593
|
-
U(
|
589
|
+
const c = f("IconCheck2");
|
590
|
+
return r(), i("div", os, [
|
591
|
+
a("label", is, [
|
592
|
+
P(A(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
|
593
|
+
U(a("input", {
|
594
594
|
type: "checkbox",
|
595
595
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
|
596
596
|
class: "hidden"
|
597
597
|
}, null, 512), [
|
598
|
-
[
|
598
|
+
[ut, s.value]
|
599
599
|
]),
|
600
|
-
|
601
|
-
class:
|
600
|
+
a("span", {
|
601
|
+
class: w(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-" + l.color + "-600 border-0" : "bg-white"]])
|
602
602
|
}, [
|
603
|
-
|
603
|
+
x(c, {
|
604
604
|
height: "12",
|
605
605
|
width: "12"
|
606
606
|
})
|
@@ -608,8 +608,8 @@ function os(t, e, n, o, s, l) {
|
|
608
608
|
])
|
609
609
|
]);
|
610
610
|
}
|
611
|
-
const
|
612
|
-
components: { IconColumns:
|
611
|
+
const us = /* @__PURE__ */ S(rs, [["render", ds]]), cs = {
|
612
|
+
components: { IconColumns: as, AdminTableColumnsHiddenItem: us },
|
613
613
|
emits: ["update-columns"],
|
614
614
|
props: { columns: Array },
|
615
615
|
data() {
|
@@ -645,56 +645,56 @@ const is = /* @__PURE__ */ T(ls, [["render", os]]), ds = {
|
|
645
645
|
beforeUnmount() {
|
646
646
|
document.removeEventListener("click", this.handleClickOutside);
|
647
647
|
}
|
648
|
-
},
|
648
|
+
}, hs = {
|
649
649
|
class: "relative",
|
650
650
|
ref: "wrapper"
|
651
|
-
},
|
651
|
+
}, ps = {
|
652
652
|
key: 0,
|
653
653
|
class: "absolute left-[50%] top-[110%] translate-x-[-50%] z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900"
|
654
|
-
},
|
654
|
+
}, bs = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, fs = { class: "p-1 pt-3 max-h-80 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-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" }, gs = {
|
655
655
|
key: 0,
|
656
656
|
class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
|
657
|
-
},
|
657
|
+
}, ms = { class: "space-y-1" }, xs = {
|
658
658
|
key: 1,
|
659
659
|
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
660
660
|
};
|
661
|
-
function
|
662
|
-
const c =
|
663
|
-
return
|
664
|
-
|
661
|
+
function ys(t, e, n, o, s, l) {
|
662
|
+
const c = f("IconColumns"), g = f("AdminTableColumnsHiddenItem");
|
663
|
+
return r(), i("div", hs, [
|
664
|
+
a("button", {
|
665
665
|
onClick: e[0] || (e[0] = (...p) => l.toggleVisible && l.toggleVisible(...p)),
|
666
666
|
class: "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
667
667
|
}, [
|
668
|
-
|
668
|
+
x(c, {
|
669
669
|
height: "20",
|
670
670
|
width: "16"
|
671
671
|
})
|
672
672
|
]),
|
673
|
-
|
673
|
+
x(W, { name: "fade" }, {
|
674
674
|
default: D(() => {
|
675
675
|
var p, b;
|
676
676
|
return [
|
677
|
-
s.visible ? (
|
678
|
-
e[2] || (e[2] =
|
679
|
-
|
680
|
-
U(
|
677
|
+
s.visible ? (r(), i("div", ps, [
|
678
|
+
e[2] || (e[2] = a("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
|
679
|
+
a("div", bs, [
|
680
|
+
U(a("input", {
|
681
681
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
|
682
682
|
type: "text",
|
683
683
|
class: "py-1.5 px-3 block w-full border-transparent rounded-lg sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 focus:outline-none focus:border-transparent focus:ring-0 focus:bg-gray-100 disabled:opacity-100 disabled:pointer-events-none dark:bg-transparent dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:hover:bg-neutral-800 dark:focus:ring-neutral-600 dark:focus:bg-neutral-800",
|
684
684
|
placeholder: "Пошук",
|
685
685
|
autofocus: ""
|
686
686
|
}, null, 512), [
|
687
|
-
[
|
687
|
+
[ct, s.searchValue]
|
688
688
|
])
|
689
689
|
]),
|
690
|
-
|
691
|
-
(p = l.filteredColumn) != null && p.length ? (
|
692
|
-
|
693
|
-
(b = l.filteredColumn) != null && b.length ? (
|
694
|
-
key:
|
690
|
+
a("div", fs, [
|
691
|
+
(p = l.filteredColumn) != null && p.length ? (r(), i("span", gs, " Оберіть колонки для відображення ")) : k("", !0),
|
692
|
+
a("div", ms, [
|
693
|
+
(b = l.filteredColumn) != null && b.length ? (r(!0), i($, { key: 0 }, V(l.filteredColumn, (d, y) => (r(), v(g, {
|
694
|
+
key: y,
|
695
695
|
column: d,
|
696
696
|
onUpdateColumn: l.updateColumn
|
697
|
-
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (
|
697
|
+
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", xs, " Нічого не знайдено "))
|
698
698
|
])
|
699
699
|
])
|
700
700
|
])) : k("", !0)
|
@@ -704,7 +704,7 @@ function ms(t, e, n, o, s, l) {
|
|
704
704
|
})
|
705
705
|
], 512);
|
706
706
|
}
|
707
|
-
const
|
707
|
+
const vs = /* @__PURE__ */ S(cs, [["render", ys]]), ks = {}, _s = {
|
708
708
|
xmlns: "http://www.w3.org/2000/svg",
|
709
709
|
viewBox: "0 0 24 24",
|
710
710
|
fill: "none",
|
@@ -714,18 +714,18 @@ const xs = /* @__PURE__ */ T(ds, [["render", ms]]), ys = {}, vs = {
|
|
714
714
|
"stroke-linejoin": "round",
|
715
715
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
716
716
|
};
|
717
|
-
function
|
718
|
-
return
|
719
|
-
|
717
|
+
function Cs(t, e, n, o, s, l) {
|
718
|
+
return r(), i("svg", _s, e[0] || (e[0] = [
|
719
|
+
a("path", {
|
720
720
|
stroke: "none",
|
721
721
|
d: "M0 0h24v24H0z",
|
722
722
|
fill: "none"
|
723
723
|
}, null, -1),
|
724
|
-
|
724
|
+
a("path", { d: "M5 12l14 0" }, null, -1)
|
725
725
|
]));
|
726
726
|
}
|
727
|
-
const
|
728
|
-
components: { IconPlus: Q, IconMinus:
|
727
|
+
const ws = /* @__PURE__ */ S(ks, [["render", Cs]]), $s = {
|
728
|
+
components: { IconPlus: Q, IconMinus: ws },
|
729
729
|
props: {
|
730
730
|
title: String,
|
731
731
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -733,33 +733,33 @@ const _s = /* @__PURE__ */ T(ys, [["render", ks]]), Cs = {
|
|
733
733
|
data() {
|
734
734
|
return { expanded: this.defaultValue };
|
735
735
|
}
|
736
|
-
},
|
737
|
-
function
|
738
|
-
const c =
|
739
|
-
return
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
736
|
+
}, Ss = { class: "hs-accordion" }, Ts = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, As = { class: "text-sm font-medium" }, Is = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
737
|
+
function Ds(t, e, n, o, s, l) {
|
738
|
+
const c = f("IconPlus"), g = f("IconMinus");
|
739
|
+
return r(), i("div", null, [
|
740
|
+
a("div", null, [
|
741
|
+
a("div", Ss, [
|
742
|
+
a("div", Ts, [
|
743
|
+
a("div", {
|
744
744
|
onClick: e[0] || (e[0] = (p) => s.expanded = !s.expanded),
|
745
745
|
class: "rounded-md cursor-pointer grow"
|
746
746
|
}, [
|
747
|
-
|
747
|
+
a("span", As, A(n.title), 1)
|
748
748
|
]),
|
749
|
-
|
749
|
+
a("button", {
|
750
750
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
751
751
|
onClick: e[1] || (e[1] = (p) => s.expanded = !s.expanded)
|
752
752
|
}, [
|
753
|
-
s.expanded ? (
|
753
|
+
s.expanded ? (r(), v(g, {
|
754
754
|
key: 1,
|
755
755
|
width: "14"
|
756
|
-
})) : (
|
756
|
+
})) : (r(), v(c, { key: 0 }))
|
757
757
|
])
|
758
758
|
]),
|
759
|
-
|
759
|
+
x(W, { name: "fade" }, {
|
760
760
|
default: D(() => [
|
761
|
-
U(
|
762
|
-
|
761
|
+
U(a("div", Is, [
|
762
|
+
ht(t.$slots, "default", {}, void 0, !0)
|
763
763
|
], 512), [
|
764
764
|
[Y, s.expanded]
|
765
765
|
])
|
@@ -770,126 +770,66 @@ function As(t, e, n, o, s, l) {
|
|
770
770
|
])
|
771
771
|
]);
|
772
772
|
}
|
773
|
-
const
|
773
|
+
const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-e1f274c9"]]), Ps = {
|
774
774
|
components: {
|
775
775
|
AdminComponentIs: X,
|
776
|
-
AdminTree:
|
777
|
-
VsNoData:
|
778
|
-
VsWidgetComments:
|
779
|
-
VsWidgetMap:
|
780
|
-
VsWidgetFileList:
|
776
|
+
AdminTree: Vs,
|
777
|
+
VsNoData: Ye,
|
778
|
+
VsWidgetComments: Ze,
|
779
|
+
VsWidgetMap: et,
|
780
|
+
VsWidgetFileList: tt
|
781
781
|
},
|
782
782
|
props: { table: String, columns: Array, row: Object }
|
783
|
-
},
|
784
|
-
class: "hs-accordion
|
783
|
+
}, Fs = {
|
784
|
+
class: "pl-2 hs-accordion 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",
|
785
785
|
style: { height: "calc(100vh - 310px)" }
|
786
|
-
},
|
787
|
-
|
788
|
-
|
789
|
-
},
|
786
|
+
}, js = {
|
787
|
+
style: { height: "calc(100vh - 360px)" },
|
788
|
+
class: "pl-2"
|
789
|
+
}, Ls = { class: "flow-root mt-[10px]" }, Ms = { class: "divide-y divide-gray-100 text-[12px]" }, zs = { class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4" }, qs = { class: "font-medium text-gray-900" }, Bs = { class: "text-gray-700 sm:col-span-2" };
|
790
790
|
function Os(t, e, n, o, s, l) {
|
791
|
-
var
|
792
|
-
const c =
|
793
|
-
return
|
794
|
-
e[0] || (e[0] =
|
795
|
-
|
791
|
+
var b, d, y, m;
|
792
|
+
const c = f("AdminComponentIs"), g = f("VsWidgetFileList"), p = f("VsNoData");
|
793
|
+
return r(), i("div", Fs, [
|
794
|
+
e[0] || (e[0] = a("div", { class: "pl-[10px] py-[9px]" }, [
|
795
|
+
a("h2", { class: "text-sm font-medium text-center" }, "Інформація про об'єкт")
|
796
796
|
], -1)),
|
797
|
-
|
798
|
-
(
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
r("dt", Ms, I((m == null ? void 0 : m.ua) || (m == null ? void 0 : m.title)), 1),
|
810
|
-
r("dd", zs, [
|
811
|
-
y(c, {
|
812
|
-
row: n.row,
|
813
|
-
column: m,
|
814
|
-
table: n.table
|
815
|
-
}, null, 8, ["row", "column", "table"])
|
816
|
-
])
|
817
|
-
]))), 256))
|
818
|
-
])
|
819
|
-
])
|
820
|
-
]),
|
821
|
-
_: 1
|
822
|
-
})) : k("", !0),
|
823
|
-
(C = n.row) != null && C.geom ? (a(), v(g, {
|
824
|
-
key: 1,
|
825
|
-
title: "Карта",
|
826
|
-
class: "border-b p-[10px] py-[16px]"
|
827
|
-
}, {
|
828
|
-
default: D(() => {
|
829
|
-
var m, w;
|
830
|
-
return [
|
831
|
-
(m = n.row) != null && m.geom ? (a(), v(p, {
|
832
|
-
key: 0,
|
833
|
-
geometry: (w = n.row) == null ? void 0 : w.geom,
|
834
|
-
zoom: 14
|
835
|
-
}, null, 8, ["geometry"])) : (a(), v(b, {
|
836
|
-
key: 1,
|
837
|
-
title: "У об'єкта відсутня геометрія",
|
838
|
-
text: "",
|
839
|
-
class: "[&>div]:h-[200px] [&>div]:min-h-[400px] h-[400px]"
|
840
|
-
}))
|
841
|
-
];
|
842
|
-
}),
|
843
|
-
_: 1
|
844
|
-
})) : k("", !0),
|
845
|
-
y(g, {
|
846
|
-
title: "Коментарі",
|
847
|
-
class: "border-b p-[10px] py-[16px]"
|
848
|
-
}, {
|
849
|
-
default: D(() => {
|
850
|
-
var m;
|
851
|
-
return [
|
852
|
-
r("div", qs, [
|
853
|
-
y(d, {
|
854
|
-
id: (m = n.row) == null ? void 0 : m.id
|
855
|
-
}, null, 8, ["id"])
|
797
|
+
a("div", js, [
|
798
|
+
(d = (b = t.$route) == null ? void 0 : b.query) != null && d.card ? (r(), i($, { key: 0 }, [
|
799
|
+
a("div", Ls, [
|
800
|
+
a("dl", Ms, [
|
801
|
+
(r(!0), i($, null, V(n.columns, (h) => (r(), i("div", zs, [
|
802
|
+
a("dt", qs, A((h == null ? void 0 : h.ua) || (h == null ? void 0 : h.title)), 1),
|
803
|
+
a("dd", Bs, [
|
804
|
+
x(c, {
|
805
|
+
row: n.row,
|
806
|
+
column: h,
|
807
|
+
table: n.table
|
808
|
+
}, null, 8, ["row", "column", "table"])
|
856
809
|
])
|
857
|
-
]
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
class: "
|
864
|
-
},
|
865
|
-
|
866
|
-
var m, w;
|
867
|
-
return [
|
868
|
-
r("div", Bs, [
|
869
|
-
(a(), v(_, {
|
870
|
-
key: (m = n.row) == null ? void 0 : m.id,
|
871
|
-
id: (w = n.row) == null ? void 0 : w.id
|
872
|
-
}, null, 8, ["id"]))
|
873
|
-
])
|
874
|
-
];
|
875
|
-
}),
|
876
|
-
_: 1
|
877
|
-
})
|
878
|
-
], 64)) : (a(), v(b, {
|
810
|
+
]))), 256))
|
811
|
+
])
|
812
|
+
]),
|
813
|
+
(r(), v(g, {
|
814
|
+
key: (y = n.row) == null ? void 0 : y.id,
|
815
|
+
id: (m = n.row) == null ? void 0 : m.id,
|
816
|
+
class: "mt-10"
|
817
|
+
}, null, 8, ["id"]))
|
818
|
+
], 64)) : (r(), v(p, {
|
879
819
|
key: 1,
|
880
820
|
text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
|
881
821
|
}))
|
882
822
|
])
|
883
823
|
]);
|
884
824
|
}
|
885
|
-
const Ns = /* @__PURE__ */
|
825
|
+
const Ns = /* @__PURE__ */ S(Ps, [["render", Os]]), Es = {
|
886
826
|
emits: ["filterChange"],
|
887
827
|
props: {
|
888
828
|
scheme: { type: Object },
|
889
829
|
onFilters: { type: Number },
|
890
830
|
table: { type: String }
|
891
831
|
},
|
892
|
-
components: { IconFilter:
|
832
|
+
components: { IconFilter: st },
|
893
833
|
data() {
|
894
834
|
return {
|
895
835
|
isFilters: !1
|
@@ -903,33 +843,33 @@ const Ns = /* @__PURE__ */ T(Ds, [["render", Os]]), Es = {
|
|
903
843
|
}, Us = {
|
904
844
|
key: 0,
|
905
845
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
906
|
-
},
|
907
|
-
function
|
908
|
-
const c =
|
909
|
-
return
|
910
|
-
|
846
|
+
}, Rs = { class: "filter-content h-screen bg-white w-[400px] overflow-x-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
847
|
+
function Hs(t, e, n, o, s, l) {
|
848
|
+
const c = f("IconFilter"), g = f("VsFilter");
|
849
|
+
return r(), i($, null, [
|
850
|
+
a("button", {
|
911
851
|
onClick: e[0] || (e[0] = (p) => s.isFilters = !s.isFilters),
|
912
852
|
class: "py-2 px-2.5 max-h-[34px] inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none"
|
913
853
|
}, [
|
914
|
-
|
854
|
+
x(c, {
|
915
855
|
height: "16",
|
916
856
|
width: "16"
|
917
857
|
}),
|
918
858
|
e[4] || (e[4] = P(" Фільтри ")),
|
919
|
-
n.onFilters ? (
|
859
|
+
n.onFilters ? (r(), i("span", Us, A(n.onFilters), 1)) : k("", !0)
|
920
860
|
]),
|
921
|
-
|
861
|
+
x(W, { name: "fade" }, {
|
922
862
|
default: D(() => {
|
923
863
|
var p;
|
924
864
|
return [
|
925
|
-
(
|
926
|
-
U(
|
865
|
+
(r(), v(pt, { to: "#modal" }, [
|
866
|
+
U(a("div", {
|
927
867
|
onClick: e[3] || (e[3] = (...b) => l.closeFilter && l.closeFilter(...b)),
|
928
868
|
style: { height: "100vh" },
|
929
869
|
class: "fixed filter-container top-0 flex justify-end items-center z-[12] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.2)]"
|
930
870
|
}, [
|
931
|
-
|
932
|
-
(p = n.scheme) != null && p.length ? (
|
871
|
+
a("div", Rs, [
|
872
|
+
(p = n.scheme) != null && p.length ? (r(), v(g, {
|
933
873
|
key: 0,
|
934
874
|
ref: "filter",
|
935
875
|
scheme: n.scheme,
|
@@ -955,7 +895,7 @@ function Rs(t, e, n, o, s, l) {
|
|
955
895
|
})
|
956
896
|
], 64);
|
957
897
|
}
|
958
|
-
const
|
898
|
+
const Ws = /* @__PURE__ */ S(Es, [["render", Hs]]), Ks = {
|
959
899
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
960
900
|
}, Js = {
|
961
901
|
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",
|
@@ -964,16 +904,16 @@ const Hs = /* @__PURE__ */ T(Es, [["render", Rs]]), Ks = {
|
|
964
904
|
"aria-orientation": "horizontal"
|
965
905
|
}, Gs = ["onClick"];
|
966
906
|
function Qs(t, e, n, o, s, l) {
|
967
|
-
return
|
968
|
-
(
|
907
|
+
return r(), i("nav", Js, [
|
908
|
+
(r(!0), i($, null, V(n.tabsList, (c) => (r(), i("button", {
|
969
909
|
onClick: (g) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
970
|
-
class:
|
910
|
+
class: w(["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", {
|
971
911
|
" 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": (c == null ? void 0 : c.name) === n.filterState
|
972
912
|
}])
|
973
|
-
},
|
913
|
+
}, A(c == null ? void 0 : c.label), 11, Gs))), 256))
|
974
914
|
]);
|
975
915
|
}
|
976
|
-
const Xs = /* @__PURE__ */
|
916
|
+
const Xs = /* @__PURE__ */ S(Ks, [["render", Qs]]), Ys = {}, Zs = {
|
977
917
|
xmlns: "http://www.w3.org/2000/svg",
|
978
918
|
viewBox: "0 0 24 24",
|
979
919
|
fill: "none",
|
@@ -984,50 +924,50 @@ const Xs = /* @__PURE__ */ T(Ks, [["render", Qs]]), Ys = {}, Zs = {
|
|
984
924
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
985
925
|
};
|
986
926
|
function en(t, e, n, o, s, l) {
|
987
|
-
return
|
988
|
-
|
927
|
+
return r(), i("svg", Zs, e[0] || (e[0] = [
|
928
|
+
a("path", {
|
989
929
|
stroke: "none",
|
990
930
|
d: "M0 0h24v24H0z",
|
991
931
|
fill: "none"
|
992
932
|
}, null, -1),
|
993
|
-
|
933
|
+
a("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)
|
994
934
|
]));
|
995
935
|
}
|
996
|
-
const tn = /* @__PURE__ */
|
997
|
-
components: { IconFilter2: tn, IconCheck2:
|
936
|
+
const tn = /* @__PURE__ */ S(Ys, [["render", en]]), sn = {
|
937
|
+
components: { IconFilter2: tn, IconCheck2: Ue },
|
998
938
|
props: { filterCustom: String, customList: Array }
|
999
|
-
}, nn = { class: "py-2 max-h-[34px] px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, ln = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" },
|
939
|
+
}, nn = { class: "py-2 max-h-[34px] px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, ln = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, an = ["onClick"], rn = { class: "text-sm text-gray-800" };
|
1000
940
|
function on(t, e, n, o, s, l) {
|
1001
|
-
const c =
|
1002
|
-
return
|
941
|
+
const c = f("IconFilter2"), g = f("IconCheck2"), p = f("VsPopover");
|
942
|
+
return r(), v(p, {
|
1003
943
|
ref: "popover",
|
1004
944
|
placement: "bottom"
|
1005
945
|
}, {
|
1006
946
|
reference: D(() => [
|
1007
|
-
|
1008
|
-
|
947
|
+
a("button", nn, [
|
948
|
+
x(c, {
|
1009
949
|
height: "20",
|
1010
950
|
width: "20"
|
1011
951
|
})
|
1012
952
|
])
|
1013
953
|
]),
|
1014
954
|
default: D(() => [
|
1015
|
-
|
1016
|
-
(
|
1017
|
-
onClick: (
|
1018
|
-
var
|
1019
|
-
t.$emit("update:filterCustom", b == null ? void 0 : b.name), (
|
955
|
+
a("div", ln, [
|
956
|
+
(r(!0), i($, null, V(n.customList, (b, d) => (r(), i("button", {
|
957
|
+
onClick: (y) => {
|
958
|
+
var m;
|
959
|
+
t.$emit("update:filterCustom", b == null ? void 0 : b.name), (m = t.$refs) == null || m.popover.togglePopover();
|
1020
960
|
},
|
1021
961
|
key: d,
|
1022
|
-
class:
|
962
|
+
class: w(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (b == null ? void 0 : b.name) }])
|
1023
963
|
}, [
|
1024
|
-
|
1025
|
-
n.filterCustom === (b == null ? void 0 : b.name) ? (
|
964
|
+
a("span", rn, A(b == null ? void 0 : b.label), 1),
|
965
|
+
n.filterCustom === (b == null ? void 0 : b.name) ? (r(), v(g, {
|
1026
966
|
key: 0,
|
1027
967
|
class: "ml-auto size-3 shrink-0"
|
1028
968
|
})) : k("", !0)
|
1029
|
-
], 10,
|
1030
|
-
|
969
|
+
], 10, an))), 128)),
|
970
|
+
a("button", {
|
1031
971
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1032
972
|
onClick: e[0] || (e[0] = (b) => {
|
1033
973
|
var d;
|
@@ -1039,61 +979,61 @@ function on(t, e, n, o, s, l) {
|
|
1039
979
|
_: 1
|
1040
980
|
}, 512);
|
1041
981
|
}
|
1042
|
-
const dn = /* @__PURE__ */
|
982
|
+
const dn = /* @__PURE__ */ S(sn, [["render", on]]), un = { class: "flex items-center gap-x-2" }, cn = {
|
1043
983
|
__name: "admin-table-custom-buttons",
|
1044
984
|
props: {
|
1045
985
|
slots: Object,
|
1046
986
|
data: Object
|
1047
987
|
},
|
1048
988
|
setup(t) {
|
1049
|
-
var g, p, b, d,
|
1050
|
-
const { asyncTemplateSlot: e } = (
|
1051
|
-
var
|
1052
|
-
if ((
|
1053
|
-
const
|
989
|
+
var g, p, b, d, y;
|
990
|
+
const { asyncTemplateSlot: e } = (y = (d = (b = (p = (g = Re()) == null ? void 0 : g.appContext) == null ? void 0 : p.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : y.utils, n = J(""), o = J(""), s = t, l = () => {
|
991
|
+
var m, h, _, C, I;
|
992
|
+
if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (_ = (h = s.slots) == null ? void 0 : h.panelLeft) != null && _.includes("<")) {
|
993
|
+
const T = e("PanelLeft", (C = s.slots) == null ? void 0 : C.panelLeft, [
|
1054
994
|
"name"
|
1055
995
|
]);
|
1056
|
-
o.value =
|
996
|
+
o.value = T;
|
1057
997
|
} else
|
1058
|
-
o.value = (
|
998
|
+
o.value = (I = s.slots) == null ? void 0 : I.panelLeft;
|
1059
999
|
}, c = () => {
|
1060
|
-
var
|
1061
|
-
if ((
|
1062
|
-
const
|
1000
|
+
var m, h, _, C, I;
|
1001
|
+
if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (_ = (h = s.slots) == null ? void 0 : h.panelRight) != null && _.includes("<")) {
|
1002
|
+
const T = e("PanelRight", (C = s.slots) == null ? void 0 : C.panelRight, [
|
1063
1003
|
"name"
|
1064
1004
|
]);
|
1065
|
-
n.value =
|
1005
|
+
n.value = T;
|
1066
1006
|
} else
|
1067
|
-
n.value = (
|
1007
|
+
n.value = (I = s.slots) == null ? void 0 : I.panelRight;
|
1068
1008
|
};
|
1069
|
-
return l(), c(), (
|
1070
|
-
(
|
1071
|
-
(
|
1009
|
+
return l(), c(), (m, h) => (r(), i("div", un, [
|
1010
|
+
(r(), v(G(o.value), { data: t.data }, null, 8, ["data"])),
|
1011
|
+
(r(), v(G(n.value), { data: t.data }, null, 8, ["data"]))
|
1072
1012
|
]));
|
1073
1013
|
}
|
1074
|
-
},
|
1014
|
+
}, hn = {
|
1075
1015
|
__name: "admin-custom-button-add",
|
1076
1016
|
props: {
|
1077
1017
|
slots: Object
|
1078
1018
|
},
|
1079
1019
|
setup(t) {
|
1080
1020
|
var l, c, g, p, b;
|
1081
|
-
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (l =
|
1021
|
+
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (l = Re()) == null ? void 0 : l.appContext) == null ? void 0 : c.app) == null ? void 0 : g.config) == null ? void 0 : p.globalProperties) == null ? void 0 : b.utils, n = J(""), o = t;
|
1082
1022
|
return (() => {
|
1083
|
-
var d,
|
1084
|
-
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (
|
1085
|
-
const
|
1023
|
+
var d, y, m, h, _;
|
1024
|
+
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (m = (y = o.slots) == null ? void 0 : y.addButton) != null && m.includes("<")) {
|
1025
|
+
const C = e("addButton", (h = o.slots) == null ? void 0 : h.addButton, [
|
1086
1026
|
"IconPlus"
|
1087
1027
|
]);
|
1088
|
-
n.value =
|
1028
|
+
n.value = C;
|
1089
1029
|
} else
|
1090
|
-
n.value = (
|
1091
|
-
})(), (d,
|
1030
|
+
n.value = (_ = o.slots) == null ? void 0 : _.addButton;
|
1031
|
+
})(), (d, y) => n.value ? (r(), v(G(n.value), {
|
1092
1032
|
key: 0,
|
1093
1033
|
IconPlus: Q
|
1094
1034
|
})) : k("", !0);
|
1095
1035
|
}
|
1096
|
-
},
|
1036
|
+
}, pn = {
|
1097
1037
|
key: 0,
|
1098
1038
|
class: "px-1 py-3 text-gray-800 font-[500]"
|
1099
1039
|
}, bn = {
|
@@ -1107,18 +1047,18 @@ const dn = /* @__PURE__ */ T(sn, [["render", on]]), un = { class: "flex items-ce
|
|
1107
1047
|
} }
|
1108
1048
|
},
|
1109
1049
|
setup(t) {
|
1110
|
-
return (e, n) => (
|
1111
|
-
(
|
1050
|
+
return (e, n) => (r(), i("tr", null, [
|
1051
|
+
(r(!0), i($, null, V(t.columns, (o) => {
|
1112
1052
|
var s;
|
1113
|
-
return
|
1053
|
+
return r(), i($, {
|
1114
1054
|
key: o == null ? void 0 : o.name
|
1115
1055
|
}, [
|
1116
|
-
(s = t.agg) != null && s[o == null ? void 0 : o.name] ? (
|
1117
|
-
|
1056
|
+
(s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td", pn, [
|
1057
|
+
x(X, {
|
1118
1058
|
column: o,
|
1119
1059
|
row: t.agg
|
1120
1060
|
}, null, 8, ["column", "row"])
|
1121
|
-
])) : (
|
1061
|
+
])) : (r(), i("td", bn))
|
1122
1062
|
], 64);
|
1123
1063
|
}), 128))
|
1124
1064
|
]));
|
@@ -1134,17 +1074,17 @@ const dn = /* @__PURE__ */ T(sn, [["render", on]]), un = { class: "flex items-ce
|
|
1134
1074
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1135
1075
|
};
|
1136
1076
|
function xn(t, e, n, o, s, l) {
|
1137
|
-
return
|
1138
|
-
|
1077
|
+
return r(), i("svg", mn, e[0] || (e[0] = [
|
1078
|
+
a("path", {
|
1139
1079
|
stroke: "none",
|
1140
1080
|
d: "M0 0h24v24H0z",
|
1141
1081
|
fill: "none"
|
1142
1082
|
}, null, -1),
|
1143
|
-
|
1083
|
+
a("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1144
1084
|
]));
|
1145
1085
|
}
|
1146
|
-
const yn = /* @__PURE__ */
|
1147
|
-
components: { IconChevronDown:
|
1086
|
+
const yn = /* @__PURE__ */ S(gn, [["render", xn]]), vn = bt({
|
1087
|
+
components: { IconChevronDown: nt, IconCheck: yn },
|
1148
1088
|
props: {
|
1149
1089
|
total: { type: Number, default: () => 0 },
|
1150
1090
|
pageSize: { type: Number, default: () => 20 },
|
@@ -1234,51 +1174,51 @@ const yn = /* @__PURE__ */ T(gn, [["render", xn]]), vn = pt({
|
|
1234
1174
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1235
1175
|
}, $n = { class: "relative" }, Sn = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, Tn = ["onClick"];
|
1236
1176
|
function An(t, e, n, o, s, l) {
|
1237
|
-
const c =
|
1238
|
-
return
|
1239
|
-
|
1177
|
+
const c = f("IconChevronDown"), g = f("IconCheck");
|
1178
|
+
return r(), i("nav", kn, [
|
1179
|
+
a("button", {
|
1240
1180
|
type: "button",
|
1241
1181
|
onClick: e[0] || (e[0] = (...p) => t.handleClickPrev && t.handleClickPrev(...p)),
|
1242
|
-
class:
|
1182
|
+
class: w(["min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100", { "opacity-50 pointer-events-none": t.disablePrevClick }])
|
1243
1183
|
}, [
|
1244
|
-
|
1184
|
+
x(c, {
|
1245
1185
|
height: "16",
|
1246
1186
|
width: "16",
|
1247
1187
|
class: "rotate-90"
|
1248
1188
|
})
|
1249
1189
|
], 2),
|
1250
|
-
|
1251
|
-
|
1190
|
+
a("div", _n, [
|
1191
|
+
a("span", {
|
1252
1192
|
ref: "currentPage",
|
1253
1193
|
contenteditable: "true",
|
1254
|
-
onKeydown: e[1] || (e[1] =
|
1194
|
+
onKeydown: e[1] || (e[1] = ft((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
|
1255
1195
|
onBlur: e[2] || (e[2] = (p) => t.handleSetPage(p.target.innerText)),
|
1256
1196
|
class: "min-h-[38px] max-h-[38px] overflow-hidden min-w-[38px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 outline-blue-600 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
|
1257
|
-
},
|
1258
|
-
e[5] || (e[5] =
|
1259
|
-
|
1197
|
+
}, A(t.page), 545),
|
1198
|
+
e[5] || (e[5] = a("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1199
|
+
a("span", Cn, A(t.pagesCount), 1)
|
1260
1200
|
]),
|
1261
|
-
|
1201
|
+
a("button", {
|
1262
1202
|
type: "button",
|
1263
1203
|
onClick: e[3] || (e[3] = (...p) => t.handleClickNext && t.handleClickNext(...p)),
|
1264
|
-
class:
|
1204
|
+
class: w([{ "opacity-50 pointer-events-none": t.disableNextClick }, "min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"])
|
1265
1205
|
}, [
|
1266
|
-
|
1206
|
+
x(c, {
|
1267
1207
|
height: "16",
|
1268
1208
|
width: "16",
|
1269
1209
|
class: "-rotate-90"
|
1270
1210
|
})
|
1271
1211
|
], 2),
|
1272
|
-
t.pageSizes.length ? (
|
1273
|
-
|
1274
|
-
U(
|
1275
|
-
(
|
1212
|
+
t.pageSizes.length ? (r(), i("div", wn, [
|
1213
|
+
a("div", $n, [
|
1214
|
+
U(a("div", Sn, [
|
1215
|
+
(r(!0), i($, null, V(t.pageSizes, (p) => (r(), i("button", {
|
1276
1216
|
type: "button",
|
1277
1217
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1278
1218
|
onClick: (b) => t.pageSizeLocal = p
|
1279
1219
|
}, [
|
1280
|
-
P(
|
1281
|
-
p === t.pageSizeLocal ? (
|
1220
|
+
P(A(p) + " ", 1),
|
1221
|
+
p === t.pageSizeLocal ? (r(), v(g, {
|
1282
1222
|
key: 0,
|
1283
1223
|
width: "14",
|
1284
1224
|
height: "14",
|
@@ -1288,14 +1228,14 @@ function An(t, e, n, o, s, l) {
|
|
1288
1228
|
], 512), [
|
1289
1229
|
[Y, t.isDropdownOpen]
|
1290
1230
|
]),
|
1291
|
-
t.pageSizes.length ? (
|
1231
|
+
t.pageSizes.length ? (r(), i("button", {
|
1292
1232
|
key: 0,
|
1293
1233
|
type: "button",
|
1294
1234
|
class: "text-sm h-[32px] min-w-8 py-3 px-3.5 inline-flex items-center gap-x-1 rounded-lg border border-gray-200 text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
1295
1235
|
onClick: e[4] || (e[4] = (p) => t.isDropdownOpen = !t.isDropdownOpen)
|
1296
1236
|
}, [
|
1297
|
-
P(
|
1298
|
-
|
1237
|
+
P(A(t.pageSizeLocal) + " ", 1),
|
1238
|
+
x(c, {
|
1299
1239
|
height: "16",
|
1300
1240
|
width: "16"
|
1301
1241
|
})
|
@@ -1304,25 +1244,25 @@ function An(t, e, n, o, s, l) {
|
|
1304
1244
|
])) : k("", !0)
|
1305
1245
|
]);
|
1306
1246
|
}
|
1307
|
-
const In = /* @__PURE__ */
|
1247
|
+
const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
1308
1248
|
props: { table: String, title: String, search: String },
|
1309
1249
|
components: {
|
1310
|
-
AdminTableControl:
|
1311
|
-
AdminTableExport:
|
1250
|
+
AdminTableControl: Vt,
|
1251
|
+
AdminTableExport: ts,
|
1312
1252
|
// AdminTablePrint,
|
1313
|
-
AdminTableColumnsHidden:
|
1314
|
-
AdminTableColumn:
|
1315
|
-
AdminNodata:
|
1253
|
+
AdminTableColumnsHidden: vs,
|
1254
|
+
AdminTableColumn: kt,
|
1255
|
+
AdminNodata: lt,
|
1316
1256
|
IconPlus: Q,
|
1317
|
-
IconSearch:
|
1257
|
+
IconSearch: at,
|
1318
1258
|
AdminTableCardInfo: Ns,
|
1319
|
-
IconOpenCard:
|
1259
|
+
IconOpenCard: rt,
|
1320
1260
|
AdminComponentIs: X,
|
1321
|
-
AdminTableFilters:
|
1261
|
+
AdminTableFilters: Ws,
|
1322
1262
|
AdminTableTabs: Xs,
|
1323
1263
|
AdminTableCustomFilters: dn,
|
1324
1264
|
AdminTableCustomButtons: cn,
|
1325
|
-
AdminCustomButtonAdd:
|
1265
|
+
AdminCustomButtonAdd: hn,
|
1326
1266
|
AdminTableTotalsList: fn,
|
1327
1267
|
AdminTablePagination: In
|
1328
1268
|
},
|
@@ -1390,7 +1330,7 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
|
|
1390
1330
|
this.tableData = null, this.columnsWidth = {}, await this.getTableData();
|
1391
1331
|
},
|
1392
1332
|
searchValue: {
|
1393
|
-
handler:
|
1333
|
+
handler: ot(async function(t) {
|
1394
1334
|
var e;
|
1395
1335
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1396
1336
|
...this.$route,
|
@@ -1443,8 +1383,8 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
|
|
1443
1383
|
},
|
1444
1384
|
methods: {
|
1445
1385
|
async checkUrlMounted() {
|
1446
|
-
var t, e, n, o, s, l, c, g, p, b, d,
|
1447
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (l = (s = this.$route) == null ? void 0 : s.query) != null && l.filter && (this.filters = ((p = decodeURI((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.filter)) == null ? void 0 : p.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((d = (b = this.filters) == null ? void 0 : b.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((
|
1386
|
+
var t, e, n, o, s, l, c, g, p, b, d, y, m, h, _, C, I, T, F, j, z;
|
1387
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (l = (s = this.$route) == null ? void 0 : s.query) != null && l.filter && (this.filters = ((p = decodeURI((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.filter)) == null ? void 0 : p.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((d = (b = this.filters) == null ? void 0 : b.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((m = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : m.state) || null, this.filterCustom = ((_ = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : _.custom) || null, this.searchValue = ((I = (C = this.$route) == null ? void 0 : C.query) == null ? void 0 : I.search) || "", this.visibleColumns = ((j = (F = (T = this.$route) == null ? void 0 : T.query) == null ? void 0 : F.columns) == null ? void 0 : j.split(",")) || [], (z = this.$route) != null && z.query.card && (this.isVisibleCardInfo = !0);
|
1448
1388
|
},
|
1449
1389
|
rowWidth(t) {
|
1450
1390
|
var n, o;
|
@@ -1460,7 +1400,7 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
|
|
1460
1400
|
async getTableData() {
|
1461
1401
|
var t, e, n, o, s, l, c, g, p, b, d;
|
1462
1402
|
try {
|
1463
|
-
const { data:
|
1403
|
+
const { data: y } = await M.get(`/api/template/table/${this.table}`), m = await M.get(`/api/table-data/${this.table}`, {
|
1464
1404
|
params: {
|
1465
1405
|
page: this.page,
|
1466
1406
|
search: this.searchValue || null,
|
@@ -1472,17 +1412,17 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
|
|
1472
1412
|
}
|
1473
1413
|
});
|
1474
1414
|
this.tableData = {
|
1475
|
-
...
|
1476
|
-
...(
|
1477
|
-
}, this.initialHiddenColumns = (l = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((
|
1478
|
-
var
|
1479
|
-
(
|
1480
|
-
}) : this.visibleColumns = (d = (b = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : b.filter((
|
1481
|
-
var
|
1482
|
-
(
|
1483
|
-
var
|
1484
|
-
(
|
1485
|
-
(
|
1415
|
+
...y,
|
1416
|
+
...(m == null ? void 0 : m.data) || {}
|
1417
|
+
}, this.initialHiddenColumns = (l = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : s.map((h) => h == null ? void 0 : h.name)) == null ? void 0 : l.join(","), (c = this.visibleColumns) != null && c.length ? (g = this.tableData) == null || g.columns.forEach((h) => {
|
1418
|
+
var _;
|
1419
|
+
(_ = this.visibleColumns) != null && _.includes(h == null ? void 0 : h.name) ? h.hidden = !1 : h.hidden = !0;
|
1420
|
+
}) : this.visibleColumns = (d = (b = (p = this.tableData) == null ? void 0 : p.columns) == null ? void 0 : b.filter((h) => (h == null ? void 0 : h.hidden) !== !0)) == null ? void 0 : d.map((h) => h == null ? void 0 : h.name), setTimeout(() => {
|
1421
|
+
var h, _;
|
1422
|
+
(_ = (h = this.tableData) == null ? void 0 : h.columns) == null || _.forEach(({ name: C }) => {
|
1423
|
+
var I, T, F, j, z, R;
|
1424
|
+
(T = (I = this.columnsWidth) == null ? void 0 : I[C]) != null && T.ref && (this.columnsWidth[C].width = parseInt(
|
1425
|
+
(R = (z = (j = (F = this.columnsWidth) == null ? void 0 : F[C]) == null ? void 0 : j.ref) == null ? void 0 : z.getBoundingClientRect()) == null ? void 0 : R.width
|
1486
1426
|
) + "px");
|
1487
1427
|
});
|
1488
1428
|
});
|
@@ -1543,24 +1483,24 @@ const In = /* @__PURE__ */ T(vn, [["render", An]]), Dn = {
|
|
1543
1483
|
}, Vn = { class: "w-[calc(100vw - 320px)] bg-gray-100" }, Pn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white rounded-xl" }, Fn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, jn = { class: "bg-white w-full rounded-xl p-[20px] pr-0" }, Ln = { class: "flex" }, Mn = { class: "flex gap-[6px] ml-auto" }, zn = { class: "inline-block w-full align-middle" }, qn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Bn = { class: "right-0" }, On = {
|
1544
1484
|
key: 0,
|
1545
1485
|
class: "w-[70px] sticky right-0 top-0"
|
1546
|
-
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"],
|
1486
|
+
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, En = ["onClick"], Un = ["onClick"], Rn = ["onClick"], Hn = { class: "px-1 py-2 flex justify-start items-end w-full" }, Wn = { class: "w-[200px] md:inline-flex hidden" }, Kn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Jn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Gn = { key: 0 };
|
1547
1487
|
function Qn(t, e, n, o, s, l) {
|
1548
|
-
var Z, ee, te, se, ne, le,
|
1549
|
-
const c =
|
1550
|
-
return
|
1551
|
-
|
1552
|
-
|
1553
|
-
l.isForm ? (
|
1554
|
-
(ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (
|
1488
|
+
var Z, ee, te, se, ne, le, ae, re, oe, ie, de, ue, ce, he, pe, be, fe, ge, me, xe, ye, ve, ke, _e, Ce, we, $e, Se, Te, Ae, Ie, De, Ve;
|
1489
|
+
const c = f("AdminCustomButtonAdd"), g = f("IconPlus"), p = f("router-link"), b = f("AdminTableTabs"), d = f("IconSearch"), y = f("VsText"), m = f("AdminTableCustomButtons"), h = f("AdminTableCustomFilters"), _ = f("AdminTableColumnsHidden"), C = f("AdminTableExport"), I = f("AdminTableFilters"), T = f("IconOpenCard"), F = f("AdminTableColumn"), j = f("AdminComponentIs"), z = f("AdminTableControl"), R = f("AdminTableTotalsList"), He = f("AdminNodata"), We = f("AdminTablePagination"), Ke = f("AdminTableCardInfo");
|
1490
|
+
return r(), i("div", Vn, [
|
1491
|
+
a("div", Pn, [
|
1492
|
+
a("h2", Fn, A(n.title), 1),
|
1493
|
+
l.isForm ? (r(), i($, { key: 0 }, [
|
1494
|
+
(ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (r(), v(c, {
|
1555
1495
|
key: 0,
|
1556
1496
|
slots: (te = s.tableData) == null ? void 0 : te.slots
|
1557
|
-
}, null, 8, ["slots"])) : (
|
1497
|
+
}, null, 8, ["slots"])) : (r(), v(p, {
|
1558
1498
|
key: 1,
|
1559
1499
|
to: `/add?table=${(ne = (se = t.$route) == null ? void 0 : se.params) == null ? void 0 : ne.catchAll}`,
|
1560
|
-
class:
|
1500
|
+
class: w(`inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-${l.color}-700 border border-transparent rounded-lg gap-x-2 hover:bg-${l.color}-800 hover:text-white`)
|
1561
1501
|
}, {
|
1562
1502
|
default: D(() => [
|
1563
|
-
|
1503
|
+
x(g, {
|
1564
1504
|
height: "16",
|
1565
1505
|
width: "16"
|
1566
1506
|
}),
|
@@ -1570,55 +1510,55 @@ function Qn(t, e, n, o, s, l) {
|
|
1570
1510
|
}, 8, ["to", "class"]))
|
1571
1511
|
], 64)) : k("", !0)
|
1572
1512
|
]),
|
1573
|
-
|
1513
|
+
a("div", {
|
1574
1514
|
style: K({
|
1575
1515
|
height: ((le = t.$adminSettings) == null ? void 0 : le.header) === !1 ? "calc(100vh - 100px)" : "calc(100vh - 155px)"
|
1576
1516
|
}),
|
1577
1517
|
class: "bg-gray-100 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1578
1518
|
}, [
|
1579
|
-
|
1580
|
-
(
|
1519
|
+
a("div", jn, [
|
1520
|
+
(re = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && re.length ? (r(), v(b, {
|
1581
1521
|
key: 0,
|
1582
1522
|
tabsList: (oe = s.tableData) == null ? void 0 : oe.filterState,
|
1583
1523
|
filterState: s.filterState,
|
1584
1524
|
"onUpdate:filterState": e[0] || (e[0] = (u) => s.filterState = u)
|
1585
1525
|
}, null, 8, ["tabsList", "filterState"])) : k("", !0),
|
1586
|
-
|
1587
|
-
|
1588
|
-
class:
|
1526
|
+
a("div", Ln, [
|
1527
|
+
a("div", {
|
1528
|
+
class: w([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1589
1529
|
}, [
|
1590
|
-
|
1591
|
-
class:
|
1530
|
+
a("div", {
|
1531
|
+
class: w(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1592
1532
|
}, [
|
1593
|
-
|
1533
|
+
x(d, {
|
1594
1534
|
height: "14",
|
1595
1535
|
width: "14",
|
1596
1536
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
1597
1537
|
}),
|
1598
|
-
y
|
1538
|
+
x(y, {
|
1599
1539
|
modelValue: s.searchValue,
|
1600
1540
|
"onUpdate:modelValue": e[1] || (e[1] = (u) => s.searchValue = u),
|
1601
1541
|
placeholder: n.search || "Пошук...",
|
1602
1542
|
clearable: !0,
|
1603
1543
|
class: "[&>input]:py-[7px] [&>input]:max-h-[36px] [&>input]:ps-10 [&>input]:pe-8 [&>input]:block [&>input]:w-full [&>input]:bg-gray-100 [&>input]:border-transparent [&>input]:rounded-lg [&>input]:text-sm [&>input]:focus:bg-white [&>input]:focus:border-blue-500 [&>input]:focus:ring-blue-500 [&>input]:disabled:opacity-50 [&>input]:disabled:pointer-events-none [&>input]:dark:bg-neutral-700 [&>input]:dark:border-transparent [&>input]:dark:text-neutral-400 [&>input]:dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600"
|
1604
1544
|
}, null, 8, ["modelValue", "placeholder"]),
|
1605
|
-
|
1606
|
-
(ie = s.tableData) != null && ie.slots ? (
|
1545
|
+
a("div", Mn, [
|
1546
|
+
(ie = s.tableData) != null && ie.slots ? (r(), v(m, {
|
1607
1547
|
key: 0,
|
1608
1548
|
data: s.tableData,
|
1609
1549
|
slots: (de = s.tableData) == null ? void 0 : de.slots
|
1610
1550
|
}, null, 8, ["data", "slots"])) : k("", !0),
|
1611
|
-
(ce = (ue = s.tableData) == null ? void 0 : ue.filterCustom) != null && ce.length ? (
|
1551
|
+
(ce = (ue = s.tableData) == null ? void 0 : ue.filterCustom) != null && ce.length ? (r(), v(h, {
|
1612
1552
|
key: 1,
|
1613
|
-
customList: (
|
1553
|
+
customList: (he = s.tableData) == null ? void 0 : he.filterCustom,
|
1614
1554
|
filterCustom: s.filterCustom,
|
1615
1555
|
"onUpdate:filterCustom": e[2] || (e[2] = (u) => s.filterCustom = u)
|
1616
1556
|
}, null, 8, ["customList", "filterCustom"])) : k("", !0),
|
1617
|
-
|
1618
|
-
columns: (
|
1557
|
+
x(_, {
|
1558
|
+
columns: (pe = s.tableData) == null ? void 0 : pe.columns,
|
1619
1559
|
onUpdateColumns: e[3] || (e[3] = (u) => s.tableData.columns = u)
|
1620
1560
|
}, null, 8, ["columns"]),
|
1621
|
-
((be = s.tableData) == null ? void 0 : be.export) !== !1 ? (
|
1561
|
+
((be = s.tableData) == null ? void 0 : be.export) !== !1 ? (r(), v(C, {
|
1622
1562
|
key: 2,
|
1623
1563
|
table: n.table,
|
1624
1564
|
columns: (fe = s.tableData) == null ? void 0 : fe.columns,
|
@@ -1627,42 +1567,42 @@ function Qn(t, e, n, o, s, l) {
|
|
1627
1567
|
"filter-custom": s.filterCustom,
|
1628
1568
|
filters: s.filters
|
1629
1569
|
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : k("", !0),
|
1630
|
-
(ge = s.filterScheme) != null && ge.length ? (
|
1570
|
+
(ge = s.filterScheme) != null && ge.length ? (r(), v(I, {
|
1631
1571
|
key: 3,
|
1632
1572
|
scheme: s.filterScheme,
|
1633
1573
|
onFilters: s.onFilters,
|
1634
1574
|
table: n.table,
|
1635
1575
|
onFilterChange: l.filterChange
|
1636
1576
|
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : k("", !0),
|
1637
|
-
|
1577
|
+
a("button", {
|
1638
1578
|
onClick: e[4] || (e[4] = (...u) => l.toggleCardInfo && l.toggleCardInfo(...u)),
|
1639
1579
|
class: "py-2 px-2.5 max-h-[34px] md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"
|
1640
1580
|
}, [
|
1641
|
-
|
1642
|
-
class:
|
1581
|
+
x(T, {
|
1582
|
+
class: w({ "rotate-180 duration-300": !s.isVisibleCardInfo })
|
1643
1583
|
}, null, 8, ["class"])
|
1644
1584
|
])
|
1645
1585
|
])
|
1646
1586
|
], 2),
|
1647
|
-
|
1648
|
-
class:
|
1587
|
+
a("div", {
|
1588
|
+
class: w(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1649
1589
|
}, [
|
1650
|
-
|
1590
|
+
a("div", {
|
1651
1591
|
style: K({
|
1652
1592
|
height: `calc(100vh - ${((me = t.$adminSettings) == null ? void 0 : me.header) === !1 ? (ye = (xe = s.tableData) == null ? void 0 : xe.filterState) != null && ye.length ? 330 : 270 : (ke = (ve = s.tableData) == null ? void 0 : ve.filterState) != null && ke.length ? 380 : 320}px)`
|
1653
1593
|
}),
|
1654
1594
|
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"
|
1655
1595
|
}, [
|
1656
|
-
|
1657
|
-
l.isNoData ? (
|
1596
|
+
a("div", zn, [
|
1597
|
+
l.isNoData ? (r(), v(He, { key: 1 })) : (r(), i("table", {
|
1658
1598
|
key: 0,
|
1659
|
-
class:
|
1599
|
+
class: w([l.fontSize, "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700 my-2"])
|
1660
1600
|
}, [
|
1661
|
-
|
1662
|
-
|
1663
|
-
(
|
1601
|
+
a("thead", qn, [
|
1602
|
+
a("tr", Bn, [
|
1603
|
+
(r(!0), i($, null, V(l.columns, (u) => {
|
1664
1604
|
var q, B;
|
1665
|
-
return
|
1605
|
+
return r(), v(F, {
|
1666
1606
|
key: u.name,
|
1667
1607
|
style: K({
|
1668
1608
|
width: ((B = (q = s.columnsWidth) == null ? void 0 : q[u == null ? void 0 : u.name]) == null ? void 0 : B.width) || l.rowWidth(u == null ? void 0 : u.name),
|
@@ -1671,43 +1611,44 @@ function Qn(t, e, n, o, s, l) {
|
|
1671
1611
|
}),
|
1672
1612
|
data: u,
|
1673
1613
|
activeColumn: s.activeColumn,
|
1674
|
-
onUpdateRef: (
|
1614
|
+
onUpdateRef: (H) => {
|
1675
1615
|
var O, N;
|
1676
|
-
(N = (O = s.columnsWidth) == null ? void 0 : O[u == null ? void 0 : u.name]) != null && N.ref || (s.columnsWidth[u.name] = { ref:
|
1616
|
+
(N = (O = s.columnsWidth) == null ? void 0 : O[u == null ? void 0 : u.name]) != null && N.ref || (s.columnsWidth[u.name] = { ref: H });
|
1677
1617
|
},
|
1678
1618
|
onChangeActive: l.changeActiveColumn
|
1679
1619
|
}, null, 8, ["style", "data", "activeColumn", "onUpdateRef", "onChangeActive"]);
|
1680
1620
|
}), 128)),
|
1681
1621
|
(Ce = (_e = l.getActions) == null ? void 0 : _e.filter(
|
1682
1622
|
(u) => u !== "add" && u !== "view"
|
1683
|
-
)) != null && Ce.length ? (
|
1623
|
+
)) != null && Ce.length ? (r(), i("th", On)) : k("", !0)
|
1684
1624
|
])
|
1685
1625
|
]),
|
1686
|
-
|
1687
|
-
(
|
1688
|
-
var B,
|
1689
|
-
return
|
1626
|
+
a("tbody", Nn, [
|
1627
|
+
(r(!0), i($, null, V((we = s.tableData) == null ? void 0 : we.rows, (u, q) => {
|
1628
|
+
var B, H, O, N, Pe, Fe, je, Le, Me, ze, qe, Be, Oe, Ne;
|
1629
|
+
return r(), i("tr", {
|
1690
1630
|
key: (u == null ? void 0 : u.id) || q,
|
1691
|
-
class:
|
1692
|
-
"bg-gray-
|
1693
|
-
|
1631
|
+
class: w({
|
1632
|
+
"bg-gray-100": ((H = (B = t.$route) == null ? void 0 : B.query) == null ? void 0 : H.card) === (u == null ? void 0 : u.id),
|
1633
|
+
"odd:bg-gray-50": ((N = (O = t.$route) == null ? void 0 : O.query) == null ? void 0 : N.card) !== (u == null ? void 0 : u.id)
|
1634
|
+
})
|
1694
1635
|
}, [
|
1695
|
-
|
1696
|
-
class:
|
1697
|
-
(
|
1636
|
+
a("td", {
|
1637
|
+
class: w(["px-1 py-2.5 pr-5", [
|
1638
|
+
(Pe = l.columns[0]) != null && Pe.align ? `text-${((Fe = l.columns[0]) == null ? void 0 : Fe.align) || "left"}` : ""
|
1698
1639
|
]]),
|
1699
1640
|
onClick: (L) => l.changeActiveCardInfo(u == null ? void 0 : u.id)
|
1700
1641
|
}, [
|
1701
|
-
|
1642
|
+
a("button", {
|
1702
1643
|
onClick: (L) => {
|
1703
1644
|
l.pushToCard(u == null ? void 0 : u.id), l.pushToLinkCard(l.columns[0], u);
|
1704
1645
|
},
|
1705
|
-
class:
|
1646
|
+
class: w(["font-medium text-start", [
|
1706
1647
|
...l.getCustomStyles(l.columns[0]),
|
1707
|
-
((
|
1648
|
+
((je = this.tableData) == null ? void 0 : je.card) === !1 ? "" : ` text-${l.color}-800 decoration-2 focus:outline-none focus:underline hover:text-${l.color}-700 hover:underline`
|
1708
1649
|
]])
|
1709
1650
|
}, [
|
1710
|
-
|
1651
|
+
x(j, {
|
1711
1652
|
row: u,
|
1712
1653
|
column: l.columns[0],
|
1713
1654
|
table: n.table,
|
@@ -1715,30 +1656,30 @@ function Qn(t, e, n, o, s, l) {
|
|
1715
1656
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1716
1657
|
], 10, Un)
|
1717
1658
|
], 10, En),
|
1718
|
-
(
|
1659
|
+
(r(!0), i($, null, V((Le = l.columns) == null ? void 0 : Le.slice(1), (L) => (r(), i("td", {
|
1719
1660
|
onClick: (tl) => {
|
1720
1661
|
l.changeActiveCardInfo(u == null ? void 0 : u.id), l.pushToLinkCard(L, u);
|
1721
1662
|
},
|
1722
|
-
class:
|
1663
|
+
class: w(["px-1 py-2.5 pr-5", l.getCustomStyles(L)]),
|
1723
1664
|
key: L.name
|
1724
1665
|
}, [
|
1725
|
-
|
1666
|
+
x(j, {
|
1726
1667
|
row: u,
|
1727
1668
|
column: L,
|
1728
1669
|
table: n.table,
|
1729
1670
|
onUpdateTable: l.getTableData
|
1730
1671
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1731
|
-
], 10,
|
1732
|
-
(
|
1672
|
+
], 10, Rn))), 128)),
|
1673
|
+
(ze = (Me = l.getActions) == null ? void 0 : Me.filter(
|
1733
1674
|
(L) => L !== "add" && L !== "view"
|
1734
|
-
)) != null &&
|
1675
|
+
)) != null && ze.length ? (r(), i("td", {
|
1735
1676
|
key: 0,
|
1736
|
-
class:
|
1737
|
-
"bg-gray-50": ((
|
1738
|
-
"bg-white": ((
|
1677
|
+
class: w(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1678
|
+
"bg-gray-50": ((Be = (qe = t.$route) == null ? void 0 : qe.query) == null ? void 0 : Be.card) === (u == null ? void 0 : u.id) || !(q % 2),
|
1679
|
+
"bg-white": ((Ne = (Oe = t.$route) == null ? void 0 : Oe.query) == null ? void 0 : Ne.card) !== (u == null ? void 0 : u.id) && q % 2
|
1739
1680
|
}])
|
1740
1681
|
}, [
|
1741
|
-
|
1682
|
+
x(z, {
|
1742
1683
|
actions: l.getActions,
|
1743
1684
|
isForm: l.isForm,
|
1744
1685
|
item: u,
|
@@ -1749,7 +1690,7 @@ function Qn(t, e, n, o, s, l) {
|
|
1749
1690
|
], 2);
|
1750
1691
|
}), 128))
|
1751
1692
|
]),
|
1752
|
-
|
1693
|
+
x(R, {
|
1753
1694
|
columns: l.columns,
|
1754
1695
|
agg: ($e = s.tableData) == null ? void 0 : $e.agg
|
1755
1696
|
}, null, 8, ["columns", "agg"])
|
@@ -1757,18 +1698,18 @@ function Qn(t, e, n, o, s, l) {
|
|
1757
1698
|
])
|
1758
1699
|
], 4)
|
1759
1700
|
], 2),
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
P(" Об'єктів: " +
|
1701
|
+
a("div", Hn, [
|
1702
|
+
a("div", Wn, [
|
1703
|
+
a("p", Kn, [
|
1704
|
+
a("span", Jn, [
|
1705
|
+
P(" Об'єктів: " + A(Intl.NumberFormat("ua").format(
|
1765
1706
|
s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : (Te = s.tableData) == null ? void 0 : Te.filtered
|
1766
1707
|
)) + " ", 1),
|
1767
|
-
s.limit < ((Ae = s.tableData) == null ? void 0 : Ae.filtered) ? (
|
1708
|
+
s.limit < ((Ae = s.tableData) == null ? void 0 : Ae.filtered) ? (r(), i("span", Gn, " з " + A(Intl.NumberFormat("ua").format(((Ie = s.tableData) == null ? void 0 : Ie.filtered) || 0)), 1)) : k("", !0)
|
1768
1709
|
])
|
1769
1710
|
])
|
1770
1711
|
]),
|
1771
|
-
Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (
|
1712
|
+
Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (r(), v(We, {
|
1772
1713
|
key: 0,
|
1773
1714
|
class: "justify-end mr-10",
|
1774
1715
|
"default-page": parseInt(l.defaultPage),
|
@@ -1779,11 +1720,11 @@ function Qn(t, e, n, o, s, l) {
|
|
1779
1720
|
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : k("", !0)
|
1780
1721
|
])
|
1781
1722
|
], 2),
|
1782
|
-
|
1723
|
+
x(W, { name: "slide-fade" }, {
|
1783
1724
|
default: D(() => {
|
1784
1725
|
var u;
|
1785
1726
|
return [
|
1786
|
-
s.isVisibleCardInfo ? (
|
1727
|
+
s.isVisibleCardInfo ? (r(), v(Ke, {
|
1787
1728
|
key: 0,
|
1788
1729
|
table: n.table,
|
1789
1730
|
columns: (u = s.tableData) == null ? void 0 : u.columns,
|
@@ -1798,7 +1739,7 @@ function Qn(t, e, n, o, s, l) {
|
|
1798
1739
|
], 4)
|
1799
1740
|
]);
|
1800
1741
|
}
|
1801
|
-
const Xn = /* @__PURE__ */
|
1742
|
+
const Xn = /* @__PURE__ */ S(Dn, [["render", Qn], ["__scopeId", "data-v-8eb7de31"]]), Yn = {
|
1802
1743
|
components: { AdminTable: Xn },
|
1803
1744
|
data() {
|
1804
1745
|
return {
|
@@ -1811,7 +1752,7 @@ const Xn = /* @__PURE__ */ T(Dn, [["render", Qn], ["__scopeId", "data-v-7d75f147
|
|
1811
1752
|
$route: {
|
1812
1753
|
async handler() {
|
1813
1754
|
var t;
|
1814
|
-
(t =
|
1755
|
+
(t = Ee) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1815
1756
|
},
|
1816
1757
|
deep: !0
|
1817
1758
|
},
|
@@ -1832,7 +1773,7 @@ const Xn = /* @__PURE__ */ T(Dn, [["render", Qn], ["__scopeId", "data-v-7d75f147
|
|
1832
1773
|
},
|
1833
1774
|
async checkPageType() {
|
1834
1775
|
var o, s;
|
1835
|
-
const t = this.flattenMenu(
|
1776
|
+
const t = this.flattenMenu(Ee.value);
|
1836
1777
|
t != null && t.length || this.$router.replace("/404");
|
1837
1778
|
const e = t == null ? void 0 : t.find((l) => {
|
1838
1779
|
var c, g;
|
@@ -1856,20 +1797,20 @@ const Xn = /* @__PURE__ */ T(Dn, [["render", Qn], ["__scopeId", "data-v-7d75f147
|
|
1856
1797
|
}
|
1857
1798
|
}, Zn = ["innerHTML"];
|
1858
1799
|
function el(t, e, n, o, s, l) {
|
1859
|
-
const c =
|
1860
|
-
return s.table ? (
|
1800
|
+
const c = f("AdminTable");
|
1801
|
+
return s.table ? (r(), v(c, {
|
1861
1802
|
key: 0,
|
1862
1803
|
table: s.table,
|
1863
1804
|
title: t.title,
|
1864
1805
|
search: s.search
|
1865
|
-
}, null, 8, ["table", "title", "search"])) : (
|
1806
|
+
}, null, 8, ["table", "title", "search"])) : (r(), i("div", {
|
1866
1807
|
key: 1,
|
1867
1808
|
class: "w-full bg-gray-50",
|
1868
1809
|
style: { height: "calc(100vh - 120px)" },
|
1869
1810
|
innerHTML: s.interface
|
1870
1811
|
}, null, 8, Zn));
|
1871
1812
|
}
|
1872
|
-
const ll = /* @__PURE__ */
|
1813
|
+
const ll = /* @__PURE__ */ S(Yn, [["render", el]]);
|
1873
1814
|
export {
|
1874
1815
|
ll as default
|
1875
1816
|
};
|