@opengis/admin 0.2.105 → 0.2.107
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +97 -97
- package/config.js +4 -4
- package/dist/{add-page-CMh32ZZh.js → add-page-CNgjYErk.js} +1 -1
- package/dist/{admin-interface-B8AckDJy.js → admin-interface-CX8k4bZs.js} +273 -274
- package/dist/{admin-view-CKx_gYed.js → admin-view-GrMZ6HJz.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +49 -49
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-aRI-lTY-.js → card-view-CtDzM2dw.js} +1 -1
- package/dist/{edit-page-BdaoDbQ6.js → edit-page-C7J2sapd.js} +1 -1
- package/dist/{import-file-DZSTfkHs.js → import-file-DFyUYay-.js} +9195 -9168
- 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/index.yml +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 +2 -2
- 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 +31 -31
- package/server/helpers/list/buttonHelper.js +21 -21
- 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/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/cardData.js +117 -117
- 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/tableFilter.js +96 -96
- 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 +20 -20
- package/server/routes/data/schema.js +54 -54
- 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 +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 +134 -134
- package/server/routes/print/controllers/printTemplate.js +1 -1
- package/server/routes/properties/funcs/getSettings.js +56 -56
- package/server/routes/properties/schema.js +10 -10
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +49 -49
- 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.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- package/server/routes/widget/controllers/widget.del.js +47 -47
- 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/setting/test.json +5 -5
- 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
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as T, g as Re, h as Je, i as Ge, e as F, I as Le, j as Me, k as B, A as N, V as Ke, l as Qe, m as Xe, n as Ye, o as Ze, p as et, q as tt, a as st, r as nt, u as je, s as
|
2
|
-
import { openBlock as o, createElementBlock as i, createTextVNode as P, toDisplayString as $, createElementVNode as
|
1
|
+
import { _ as T, g as Re, h as Je, i as Ge, e as F, I as Le, j as Me, k as B, A as N, V as Ke, l as Qe, m as Xe, n as Ye, o as Ze, p as et, q as tt, a as st, r as nt, u as je, s as rt } from "./import-file-DFyUYay-.js";
|
2
|
+
import { openBlock as o, createElementBlock as i, createTextVNode as P, toDisplayString as $, createElementVNode as r, normalizeClass as S, createCommentVNode as v, resolveComponent as b, Fragment as C, createVNode as g, withCtx as I, createBlock as k, renderList as D, withModifiers as lt, withDirectives as M, vModelRadio as ot, createStaticVNode as at, vModelCheckbox as it, Transition as z, vModelText as dt, renderSlot as ut, vShow as U, Teleport as ct, getCurrentInstance as ze, ref as q, resolveDynamicComponent as O, defineComponent as pt, normalizeStyle as Fe } from "vue";
|
3
3
|
const bt = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -65,16 +65,16 @@ const bt = {
|
|
65
65
|
key: 1,
|
66
66
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
|
67
67
|
};
|
68
|
-
function gt(t, e, n, a, s,
|
68
|
+
function gt(t, e, n, a, s, l) {
|
69
69
|
return o(), i("th", ht, [
|
70
|
-
|
70
|
+
l.getVisibleIcon ? (o(), i("button", {
|
71
71
|
key: 0,
|
72
72
|
type: "button",
|
73
73
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
|
74
|
-
onClick: e[0] || (e[0] = (c) =>
|
74
|
+
onClick: e[0] || (e[0] = (c) => l.handleClickSortBtn(s.currentSort))
|
75
75
|
}, [
|
76
|
-
P($(
|
77
|
-
|
76
|
+
P($(l.label) + " ", 1),
|
77
|
+
r("span", ft, [
|
78
78
|
s.currentSort ? (o(), i("svg", {
|
79
79
|
key: 0,
|
80
80
|
class: S(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
|
@@ -88,11 +88,11 @@ function gt(t, e, n, a, s, r) {
|
|
88
88
|
"stroke-linecap": "round",
|
89
89
|
"stroke-linejoin": "round"
|
90
90
|
}, e[1] || (e[1] = [
|
91
|
-
|
92
|
-
|
91
|
+
r("path", { d: "m5 12 7-7 7 7" }, null, -1),
|
92
|
+
r("path", { d: "M12 19V5" }, null, -1)
|
93
93
|
]), 2)) : v("", !0)
|
94
94
|
])
|
95
|
-
])) : (o(), i("p", mt, $(
|
95
|
+
])) : (o(), i("p", mt, $(l.label), 1))
|
96
96
|
]);
|
97
97
|
}
|
98
98
|
const xt = /* @__PURE__ */ T(bt, [["render", gt]]), yt = {
|
@@ -182,16 +182,16 @@ const xt = /* @__PURE__ */ T(bt, [["render", gt]]), yt = {
|
|
182
182
|
key: 1,
|
183
183
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
184
184
|
}, Tt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
185
|
-
function At(t, e, n, a, s,
|
186
|
-
const c = b("IconMore"),
|
185
|
+
function At(t, e, n, a, s, l) {
|
186
|
+
const c = b("IconMore"), m = b("IconEdit"), d = b("router-link"), h = b("IconDelete"), u = b("VsPopover"), _ = b("VsConfirm");
|
187
187
|
return o(), i(C, null, [
|
188
|
-
|
188
|
+
r("div", kt, [
|
189
189
|
g(u, {
|
190
190
|
trigger: "click",
|
191
191
|
placement: "bottom-left"
|
192
192
|
}, {
|
193
193
|
reference: I(() => [
|
194
|
-
|
194
|
+
r("button", vt, [
|
195
195
|
g(c, {
|
196
196
|
height: "16",
|
197
197
|
width: "16"
|
@@ -199,36 +199,36 @@ function At(t, e, n, a, s, r) {
|
|
199
199
|
])
|
200
200
|
]),
|
201
201
|
default: I(() => {
|
202
|
-
var x,
|
202
|
+
var x, f, w, y, A;
|
203
203
|
return [
|
204
|
-
|
204
|
+
r("div", _t, [
|
205
205
|
(x = n.actions) != null && x.includes("edit") && n.isForm ? (o(), k(d, {
|
206
206
|
key: 0,
|
207
|
-
to: `/edit?table=${(w = (
|
207
|
+
to: `/edit?table=${(w = (f = t.$route) == null ? void 0 : f.params) == null ? void 0 : w.catchAll}&id=${(y = n.item) == null ? void 0 : y.id}`,
|
208
208
|
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"
|
209
209
|
}, {
|
210
210
|
default: I(() => [
|
211
|
-
g(
|
211
|
+
g(m, { color: "#000" }),
|
212
212
|
e[4] || (e[4] = P(" Редагувати "))
|
213
213
|
]),
|
214
214
|
_: 1
|
215
215
|
}, 8, ["to"])) : v("", !0),
|
216
|
-
(o(!0), i(C, null, D(
|
216
|
+
(o(!0), i(C, null, D(l.getCustomActions, (V, L) => (o(), i("button", {
|
217
217
|
key: L,
|
218
|
-
onClick: (E) =>
|
218
|
+
onClick: (E) => l.customButtonAction(V),
|
219
219
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
220
220
|
}, [
|
221
221
|
g(h, { class: "opacity-0" }),
|
222
|
-
|
222
|
+
r("span", Ct, $(V == null ? void 0 : V.label), 1)
|
223
223
|
], 8, wt))), 128)),
|
224
224
|
n.isForm ? (o(), i("div", $t)) : v("", !0),
|
225
225
|
(A = n.actions) != null && A.includes("del") ? (o(), i("button", {
|
226
226
|
key: 2,
|
227
|
-
onClick: e[0] || (e[0] =
|
227
|
+
onClick: e[0] || (e[0] = lt((...V) => l.openConfirm && l.openConfirm(...V), ["stop"])),
|
228
228
|
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"
|
229
229
|
}, [
|
230
230
|
g(h),
|
231
|
-
e[5] || (e[5] =
|
231
|
+
e[5] || (e[5] = r("span", { class: "text-gray-800" }, "Видалити", -1))
|
232
232
|
])) : v("", !0)
|
233
233
|
])
|
234
234
|
];
|
@@ -243,17 +243,17 @@ function At(t, e, n, a, s, r) {
|
|
243
243
|
title: "Ви впевнені?"
|
244
244
|
}, {
|
245
245
|
default: I(() => [
|
246
|
-
e[6] || (e[6] =
|
247
|
-
|
248
|
-
|
246
|
+
e[6] || (e[6] = r("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
247
|
+
r("div", Tt, [
|
248
|
+
r("button", {
|
249
249
|
type: "button",
|
250
250
|
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",
|
251
251
|
onClick: e[1] || (e[1] = (x) => s.isDeleteConfirm = !1)
|
252
252
|
}, " Скасувати "),
|
253
|
-
|
253
|
+
r("button", {
|
254
254
|
type: "button",
|
255
255
|
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",
|
256
|
-
onClick: e[2] || (e[2] = (...x) =>
|
256
|
+
onClick: e[2] || (e[2] = (...x) => l.deleteElement && l.deleteElement(...x))
|
257
257
|
}, " Так, я впевнена(ий) ")
|
258
258
|
])
|
259
259
|
]),
|
@@ -271,12 +271,12 @@ const St = /* @__PURE__ */ T(yt, [["render", At]]), It = {}, Vt = {
|
|
271
271
|
"stroke-linecap": "round",
|
272
272
|
"stroke-linejoin": "round"
|
273
273
|
};
|
274
|
-
function Dt(t, e, n, a, s,
|
274
|
+
function Dt(t, e, n, a, s, l) {
|
275
275
|
return o(), i("svg", Vt, e[0] || (e[0] = [
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
276
|
+
r("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
277
|
+
r("path", { d: "M7 20V4" }, null, -1),
|
278
|
+
r("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
279
|
+
r("path", { d: "M17 4v16" }, null, -1)
|
280
280
|
]));
|
281
281
|
}
|
282
282
|
const qe = /* @__PURE__ */ T(It, [["render", Dt]]), Pt = {}, jt = {
|
@@ -291,15 +291,15 @@ const qe = /* @__PURE__ */ T(It, [["render", Dt]]), Pt = {}, jt = {
|
|
291
291
|
"stroke-linejoin": "round",
|
292
292
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
293
293
|
};
|
294
|
-
function Ft(t, e, n, a, s,
|
294
|
+
function Ft(t, e, n, a, s, l) {
|
295
295
|
return o(), i("svg", jt, e[0] || (e[0] = [
|
296
|
-
|
296
|
+
r("path", {
|
297
297
|
stroke: "none",
|
298
298
|
d: "M0 0h24v24H0z",
|
299
299
|
fill: "none"
|
300
300
|
}, null, -1),
|
301
|
-
|
302
|
-
|
301
|
+
r("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),
|
302
|
+
r("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
303
303
|
]));
|
304
304
|
}
|
305
305
|
const Oe = /* @__PURE__ */ T(Pt, [["render", Ft]]), Lt = {
|
@@ -369,15 +369,15 @@ const Oe = /* @__PURE__ */ T(Pt, [["render", Ft]]), Lt = {
|
|
369
369
|
responseType: "blob"
|
370
370
|
}), n = await e.data.text(), a = n != null && n.includes(";") ? null : JSON == null ? void 0 : JSON.parse(n), s = new Blob([e.data], {
|
371
371
|
type: "application/octet-stream"
|
372
|
-
}),
|
373
|
-
if (c.href =
|
372
|
+
}), l = window.URL.createObjectURL(s), c = document.createElement("a");
|
373
|
+
if (c.href = l, c.setAttribute(
|
374
374
|
"download",
|
375
375
|
`${this.table.split(".")[0]}.${this.format}`
|
376
376
|
), document.body.appendChild(c), typeof a == "string") {
|
377
377
|
this.exportTable();
|
378
378
|
return;
|
379
379
|
}
|
380
|
-
c.click(), document.body.removeChild(c), window.URL.revokeObjectURL(
|
380
|
+
c.click(), document.body.removeChild(c), window.URL.revokeObjectURL(l), this.$notify({
|
381
381
|
type: "success",
|
382
382
|
title: "Експорт",
|
383
383
|
message: "Файл успішно експортовано!"
|
@@ -421,10 +421,10 @@ const Oe = /* @__PURE__ */ T(Pt, [["render", Ft]]), Lt = {
|
|
421
421
|
key: 1,
|
422
422
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
423
423
|
};
|
424
|
-
function Kt(t, e, n, a, s,
|
425
|
-
const c = b("IconExport"),
|
424
|
+
function Kt(t, e, n, a, s, l) {
|
425
|
+
const c = b("IconExport"), m = b("IconSuccess"), d = b("VsCheckbox"), h = b("VsDialog");
|
426
426
|
return o(), i(C, null, [
|
427
|
-
|
427
|
+
r("button", {
|
428
428
|
onClick: e[0] || (e[0] = (u) => s.isOpen = !0),
|
429
429
|
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"
|
430
430
|
}, [
|
@@ -443,47 +443,47 @@ function Kt(t, e, n, a, s, r) {
|
|
443
443
|
}, {
|
444
444
|
footer: I(() => [
|
445
445
|
s.isSuccessTemplate ? (o(), i("div", Jt, [
|
446
|
-
|
446
|
+
r("button", {
|
447
447
|
type: "button",
|
448
448
|
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",
|
449
449
|
onClick: e[2] || (e[2] = (u) => s.isOpen = !1)
|
450
450
|
}, " Закрити "),
|
451
|
-
|
451
|
+
r("button", {
|
452
452
|
type: "button",
|
453
453
|
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",
|
454
454
|
onClick: e[3] || (e[3] = (u) => s.isSuccessTemplate = !1)
|
455
455
|
}, " Вигрузити ще ")
|
456
456
|
])) : (o(), i("div", Gt, [
|
457
|
-
|
457
|
+
r("button", {
|
458
458
|
type: "button",
|
459
459
|
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",
|
460
460
|
onClick: e[4] || (e[4] = (u) => s.isOpen = !1)
|
461
461
|
}, " Скасувати "),
|
462
|
-
|
462
|
+
r("button", {
|
463
463
|
type: "button",
|
464
464
|
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",
|
465
|
-
onClick: e[5] || (e[5] = (...u) =>
|
465
|
+
onClick: e[5] || (e[5] = (...u) => l.exportTable && l.exportTable(...u))
|
466
466
|
}, " Завантажити таблицю ")
|
467
467
|
]))
|
468
468
|
]),
|
469
469
|
default: I(() => [
|
470
470
|
s.isSuccessTemplate ? (o(), i("div", Mt, [
|
471
|
-
g(
|
471
|
+
g(m, {
|
472
472
|
height: "100",
|
473
473
|
width: "100",
|
474
474
|
class: "text-green-200 mb-[20px]"
|
475
475
|
}),
|
476
|
-
e[8] || (e[8] =
|
476
|
+
e[8] || (e[8] = r("h2", null, "Звіт сформовано і збережено", -1))
|
477
477
|
])) : (o(), i("div", zt, [
|
478
|
-
|
479
|
-
e[9] || (e[9] =
|
480
|
-
|
478
|
+
r("div", qt, [
|
479
|
+
e[9] || (e[9] = r("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
480
|
+
r("div", Ot, [
|
481
481
|
(o(!0), i(C, null, D(s.actions, (u) => (o(), i("button", {
|
482
482
|
key: u == null ? void 0 : u.name,
|
483
483
|
onClick: u == null ? void 0 : u.function,
|
484
484
|
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"
|
485
485
|
}, [
|
486
|
-
|
486
|
+
r("span", {
|
487
487
|
class: S(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (u == null ? void 0 : u.name) === s.activeAction }])
|
488
488
|
}, [
|
489
489
|
(u == null ? void 0 : u.name) === s.activeAction ? (o(), i("span", Nt)) : v("", !0)
|
@@ -491,7 +491,7 @@ function Kt(t, e, n, a, s, r) {
|
|
491
491
|
P(" " + $(u == null ? void 0 : u.label), 1)
|
492
492
|
], 8, Bt))), 128))
|
493
493
|
]),
|
494
|
-
|
494
|
+
r("div", Ut, [
|
495
495
|
(o(!0), i(C, null, D(n.columns, (u, _) => (o(), i("div", {
|
496
496
|
class: "flex items-center",
|
497
497
|
key: _,
|
@@ -507,21 +507,21 @@ function Kt(t, e, n, a, s, r) {
|
|
507
507
|
]))), 128))
|
508
508
|
])
|
509
509
|
]),
|
510
|
-
|
511
|
-
e[10] || (e[10] =
|
512
|
-
|
510
|
+
r("div", Et, [
|
511
|
+
e[10] || (e[10] = r("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
512
|
+
r("div", Ht, [
|
513
513
|
(o(!0), i(C, null, D(s.tableFormats, (u, _) => (o(), i("div", {
|
514
514
|
class: "flex items-center",
|
515
515
|
key: _
|
516
516
|
}, [
|
517
|
-
|
517
|
+
r("input", {
|
518
518
|
type: "radio",
|
519
519
|
name: "hs-pro-duecmfm",
|
520
520
|
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",
|
521
521
|
id: u,
|
522
|
-
onChange: (x) =>
|
522
|
+
onChange: (x) => l.selectFormat(u)
|
523
523
|
}, null, 40, Wt),
|
524
|
-
|
524
|
+
r("label", {
|
525
525
|
for: u,
|
526
526
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
527
527
|
}, " Формат " + $(u), 9, Rt)
|
@@ -569,14 +569,14 @@ const Qt = /* @__PURE__ */ T(Lt, [["render", Kt]]), Xt = {
|
|
569
569
|
mounted() {
|
570
570
|
console.log("rows", this.rows);
|
571
571
|
}
|
572
|
-
}, Yt = { class: "p-4 flex flex-col" }, Zt = { class: "flex mb-4 gap-2 border rounded overflow-hidden" }, es = { class: "flex" }, ts = { class: "overflow-y-auto h-[400px] w-1/2 space-y-1 [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent" }, ss = ["id", "value"], ns = ["for"],
|
572
|
+
}, Yt = { class: "p-4 flex flex-col" }, Zt = { class: "flex mb-4 gap-2 border rounded overflow-hidden" }, es = { class: "flex" }, ts = { class: "overflow-y-auto h-[400px] w-1/2 space-y-1 [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent" }, ss = ["id", "value"], ns = ["for"], rs = {
|
573
573
|
key: 0,
|
574
574
|
class: "w-[400px] h-[400px] border ml-4 flex items-center justify-center text-gray-600 text-lg font-medium"
|
575
|
-
},
|
576
|
-
function as(t, e, n, a, s,
|
577
|
-
const c = b("IconExport"),
|
575
|
+
}, ls = ["src"], os = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
|
576
|
+
function as(t, e, n, a, s, l) {
|
577
|
+
const c = b("IconExport"), m = b("VsDialog");
|
578
578
|
return o(), i(C, null, [
|
579
|
-
|
579
|
+
r("button", {
|
580
580
|
onClick: e[0] || (e[0] = (d) => s.isOpen = !0),
|
581
581
|
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"
|
582
582
|
}, [
|
@@ -586,53 +586,53 @@ function as(t, e, n, a, s, r) {
|
|
586
586
|
}),
|
587
587
|
e[9] || (e[9] = P(" Друк "))
|
588
588
|
]),
|
589
|
-
g(
|
589
|
+
g(m, {
|
590
590
|
visible: s.isOpen,
|
591
591
|
"onUpdate:visible": [
|
592
592
|
e[8] || (e[8] = (d) => s.isOpen = d),
|
593
|
-
|
593
|
+
l.resetSelections
|
594
594
|
],
|
595
595
|
title: "Друк",
|
596
596
|
size: "small",
|
597
597
|
closeClickBack: !0
|
598
598
|
}, {
|
599
599
|
footer: I(() => [
|
600
|
-
|
601
|
-
|
600
|
+
r("div", os, [
|
601
|
+
r("button", {
|
602
602
|
type: "button",
|
603
603
|
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",
|
604
604
|
onClick: e[5] || (e[5] = (d) => s.isOpen = !1)
|
605
605
|
}, " Скасувати "),
|
606
|
-
|
606
|
+
r("button", {
|
607
607
|
type: "button",
|
608
608
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-500 border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-blue-600 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",
|
609
|
-
onClick: e[6] || (e[6] = (...d) =>
|
609
|
+
onClick: e[6] || (e[6] = (...d) => l.downloadPdf && l.downloadPdf(...d))
|
610
610
|
}, " Завантажити PDF "),
|
611
|
-
|
611
|
+
r("button", {
|
612
612
|
type: "button",
|
613
613
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-green-500 border border-gray-200 rounded-lg shadow-sm text-nowrap text-start hover:bg-green-600 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",
|
614
|
-
onClick: e[7] || (e[7] = (...d) =>
|
614
|
+
onClick: e[7] || (e[7] = (...d) => l.downloadWord && l.downloadWord(...d))
|
615
615
|
}, " Завантажити Word ")
|
616
616
|
])
|
617
617
|
]),
|
618
618
|
default: I(() => [
|
619
|
-
|
620
|
-
|
621
|
-
|
619
|
+
r("div", Yt, [
|
620
|
+
r("div", Zt, [
|
621
|
+
r("button", {
|
622
622
|
class: S([{
|
623
623
|
"bg-gray-200": s.mode === "base",
|
624
624
|
"bg-white": s.mode !== "base"
|
625
625
|
}, "px-4 py-2 border-r text-black w-full"]),
|
626
626
|
onClick: e[1] || (e[1] = (d) => s.mode = "base")
|
627
627
|
}, " Базовий ", 2),
|
628
|
-
|
628
|
+
r("button", {
|
629
629
|
class: S([{
|
630
630
|
"bg-gray-200": s.mode === "demo",
|
631
631
|
"bg-white": s.mode !== "demo"
|
632
632
|
}, "px-4 py-2 border-r text-black w-full"]),
|
633
633
|
onClick: e[2] || (e[2] = (d) => s.mode = "demo")
|
634
634
|
}, " Демо ", 2),
|
635
|
-
|
635
|
+
r("button", {
|
636
636
|
class: S([{
|
637
637
|
"bg-gray-200": s.mode === "preview",
|
638
638
|
"bg-white": s.mode !== "preview"
|
@@ -640,13 +640,13 @@ function as(t, e, n, a, s, r) {
|
|
640
640
|
onClick: e[3] || (e[3] = (d) => s.mode = "preview")
|
641
641
|
}, " Перегляд шаблону ", 2)
|
642
642
|
]),
|
643
|
-
|
644
|
-
|
643
|
+
r("div", es, [
|
644
|
+
r("div", ts, [
|
645
645
|
(o(!0), i(C, null, D(n.rows, (d) => (o(), i("div", {
|
646
646
|
key: d.id,
|
647
647
|
class: "flex items-center gap-2"
|
648
648
|
}, [
|
649
|
-
M(
|
649
|
+
M(r("input", {
|
650
650
|
type: "radio",
|
651
651
|
id: d.id,
|
652
652
|
value: d.id,
|
@@ -655,7 +655,7 @@ function as(t, e, n, a, s, r) {
|
|
655
655
|
}, null, 8, ss), [
|
656
656
|
[ot, s.selectedTemplate]
|
657
657
|
]),
|
658
|
-
|
658
|
+
r("label", {
|
659
659
|
for: d.id,
|
660
660
|
class: "cursor-pointer"
|
661
661
|
}, $(d[n.titleCol]), 9, ns)
|
@@ -664,8 +664,8 @@ function as(t, e, n, a, s, r) {
|
|
664
664
|
s.selectedTemplate ? (o(), i("iframe", {
|
665
665
|
key: 1,
|
666
666
|
class: "w-[400px] h-[400px] border ml-4",
|
667
|
-
src:
|
668
|
-
}, null, 8,
|
667
|
+
src: l.getTemplateUrl()
|
668
|
+
}, null, 8, ls)) : (o(), i("div", rs, " Оберіть для друку та прев'ю "))
|
669
669
|
])
|
670
670
|
])
|
671
671
|
]),
|
@@ -683,7 +683,7 @@ const is = /* @__PURE__ */ T(Xt, [["render", as]]), ds = {}, us = {
|
|
683
683
|
"stroke-linejoin": "round",
|
684
684
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
685
685
|
};
|
686
|
-
function cs(t, e, n, a, s,
|
686
|
+
function cs(t, e, n, a, s, l) {
|
687
687
|
return o(), i("svg", us, e[0] || (e[0] = [
|
688
688
|
at('<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)
|
689
689
|
]));
|
@@ -709,20 +709,20 @@ const ps = /* @__PURE__ */ T(ds, [["render", cs]]), bs = {
|
|
709
709
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
710
710
|
}
|
711
711
|
}, hs = { 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" }, fs = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
712
|
-
function ms(t, e, n, a, s,
|
713
|
-
var
|
712
|
+
function ms(t, e, n, a, s, l) {
|
713
|
+
var m, d;
|
714
714
|
const c = b("IconCheck2");
|
715
715
|
return o(), i("div", hs, [
|
716
|
-
|
717
|
-
P($(((
|
718
|
-
M(
|
716
|
+
r("label", fs, [
|
717
|
+
P($(((m = n.column) == null ? void 0 : m.ua) || ((d = n.column) == null ? void 0 : d.title)) + " ", 1),
|
718
|
+
M(r("input", {
|
719
719
|
type: "checkbox",
|
720
720
|
"onUpdate:modelValue": e[0] || (e[0] = (h) => s.value = h),
|
721
721
|
class: "hidden"
|
722
722
|
}, null, 512), [
|
723
723
|
[it, s.value]
|
724
724
|
]),
|
725
|
-
|
725
|
+
r("span", {
|
726
726
|
class: S(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-blue-600 border-0" : "bg-white"]])
|
727
727
|
}, [
|
728
728
|
g(c, {
|
@@ -748,8 +748,8 @@ const gs = /* @__PURE__ */ T(bs, [["render", ms]]), xs = {
|
|
748
748
|
var t;
|
749
749
|
return (t = this.columns) == null ? void 0 : t.filter(
|
750
750
|
(e) => {
|
751
|
-
var n, a, s,
|
752
|
-
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((a = this.searchValue) == null ? void 0 : a.toLowerCase())) || ((
|
751
|
+
var n, a, s, l, c, m;
|
752
|
+
return ((s = (n = e == null ? void 0 : e.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((a = this.searchValue) == null ? void 0 : a.toLowerCase())) || ((m = (l = e == null ? void 0 : e.title) == null ? void 0 : l.toLowerCase()) == null ? void 0 : m.includes((c = this.searchValue) == null ? void 0 : c.toLowerCase()));
|
753
753
|
}
|
754
754
|
);
|
755
755
|
}
|
@@ -783,11 +783,11 @@ const gs = /* @__PURE__ */ T(bs, [["render", ms]]), xs = {
|
|
783
783
|
key: 1,
|
784
784
|
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
785
785
|
};
|
786
|
-
function Ts(t, e, n, a, s,
|
787
|
-
const c = b("IconColumns"),
|
786
|
+
function Ts(t, e, n, a, s, l) {
|
787
|
+
const c = b("IconColumns"), m = b("AdminTableColumnsHiddenItem");
|
788
788
|
return o(), i("div", ys, [
|
789
|
-
|
790
|
-
onClick: e[0] || (e[0] = (...d) =>
|
789
|
+
r("button", {
|
790
|
+
onClick: e[0] || (e[0] = (...d) => l.toggleVisible && l.toggleVisible(...d)),
|
791
791
|
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"
|
792
792
|
}, [
|
793
793
|
g(c, {
|
@@ -800,25 +800,25 @@ function Ts(t, e, n, a, s, r) {
|
|
800
800
|
var d, h;
|
801
801
|
return [
|
802
802
|
s.visible ? (o(), i("div", ks, [
|
803
|
-
e[2] || (e[2] =
|
804
|
-
|
805
|
-
M(
|
803
|
+
e[2] || (e[2] = r("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
|
804
|
+
r("div", vs, [
|
805
|
+
M(r("input", {
|
806
806
|
"onUpdate:modelValue": e[1] || (e[1] = (u) => s.searchValue = u),
|
807
807
|
type: "text",
|
808
808
|
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",
|
809
|
-
placeholder: "
|
809
|
+
placeholder: "Пошук",
|
810
810
|
autofocus: ""
|
811
811
|
}, null, 512), [
|
812
812
|
[dt, s.searchValue]
|
813
813
|
])
|
814
814
|
]),
|
815
|
-
|
816
|
-
(d =
|
817
|
-
|
818
|
-
(h =
|
815
|
+
r("div", _s, [
|
816
|
+
(d = l.filteredColumn) != null && d.length ? (o(), i("span", ws, " Оберіть колонки для відображення ")) : v("", !0),
|
817
|
+
r("div", Cs, [
|
818
|
+
(h = l.filteredColumn) != null && h.length ? (o(!0), i(C, { key: 0 }, D(l.filteredColumn, (u, _) => (o(), k(m, {
|
819
819
|
key: _,
|
820
820
|
column: u,
|
821
|
-
onUpdateColumn:
|
821
|
+
onUpdateColumn: l.updateColumn
|
822
822
|
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (o(), i("div", $s, " Нічого не знайдено "))
|
823
823
|
])
|
824
824
|
])
|
@@ -839,14 +839,14 @@ const As = /* @__PURE__ */ T(xs, [["render", Ts]]), Ss = {}, Is = {
|
|
839
839
|
"stroke-linejoin": "round",
|
840
840
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
841
841
|
};
|
842
|
-
function Vs(t, e, n, a, s,
|
842
|
+
function Vs(t, e, n, a, s, l) {
|
843
843
|
return o(), i("svg", Is, e[0] || (e[0] = [
|
844
|
-
|
844
|
+
r("path", {
|
845
845
|
stroke: "none",
|
846
846
|
d: "M0 0h24v24H0z",
|
847
847
|
fill: "none"
|
848
848
|
}, null, -1),
|
849
|
-
|
849
|
+
r("path", { d: "M5 12l14 0" }, null, -1)
|
850
850
|
]));
|
851
851
|
}
|
852
852
|
const Ds = /* @__PURE__ */ T(Ss, [["render", Vs]]), Ps = {
|
@@ -859,23 +859,23 @@ const Ds = /* @__PURE__ */ T(Ss, [["render", Vs]]), Ps = {
|
|
859
859
|
return { expanded: this.defaultValue };
|
860
860
|
}
|
861
861
|
}, js = { class: "hs-accordion" }, Fs = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, Ls = { class: "text-sm font-medium" }, Ms = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
862
|
-
function zs(t, e, n, a, s,
|
863
|
-
const c = b("IconPlus"),
|
862
|
+
function zs(t, e, n, a, s, l) {
|
863
|
+
const c = b("IconPlus"), m = b("IconMinus");
|
864
864
|
return o(), i("div", null, [
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
865
|
+
r("div", null, [
|
866
|
+
r("div", js, [
|
867
|
+
r("div", Fs, [
|
868
|
+
r("div", {
|
869
869
|
onClick: e[0] || (e[0] = (d) => s.expanded = !s.expanded),
|
870
870
|
class: "rounded-md cursor-pointer grow"
|
871
871
|
}, [
|
872
|
-
|
872
|
+
r("span", Ls, $(n.title), 1)
|
873
873
|
]),
|
874
|
-
|
874
|
+
r("button", {
|
875
875
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
876
876
|
onClick: e[1] || (e[1] = (d) => s.expanded = !s.expanded)
|
877
877
|
}, [
|
878
|
-
s.expanded ? (o(), k(
|
878
|
+
s.expanded ? (o(), k(m, {
|
879
879
|
key: 1,
|
880
880
|
width: "14"
|
881
881
|
})) : (o(), k(c, { key: 0 }))
|
@@ -883,7 +883,7 @@ function zs(t, e, n, a, s, r) {
|
|
883
883
|
]),
|
884
884
|
g(z, { name: "fade" }, {
|
885
885
|
default: I(() => [
|
886
|
-
M(
|
886
|
+
M(r("div", Ms, [
|
887
887
|
ut(t.$slots, "default", {}, void 0, !0)
|
888
888
|
], 512), [
|
889
889
|
[U, s.expanded]
|
@@ -895,7 +895,7 @@ function zs(t, e, n, a, s, r) {
|
|
895
895
|
])
|
896
896
|
]);
|
897
897
|
}
|
898
|
-
const qs = /* @__PURE__ */ T(Ps, [["render", zs], ["__scopeId", "data-v-
|
898
|
+
const qs = /* @__PURE__ */ T(Ps, [["render", zs], ["__scopeId", "data-v-c6318482"]]), Os = {
|
899
899
|
components: {
|
900
900
|
AdminComponentIs: N,
|
901
901
|
AdminTree: qs,
|
@@ -912,27 +912,27 @@ const qs = /* @__PURE__ */ T(Ps, [["render", zs], ["__scopeId", "data-v-e1f274c9
|
|
912
912
|
class: "border-l",
|
913
913
|
style: { height: "calc(100vh - 360px)" }
|
914
914
|
}, Us = { class: "flow-root mt-[10px]" }, Es = { class: "-my-3 text-sm divide-y divide-gray-100" }, Hs = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Ws = { class: "font-medium text-black w-[50%]" }, Rs = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, Js = { class: "table-info-card" }, Gs = { class: "table-info-card" };
|
915
|
-
function Ks(t, e, n, a, s,
|
916
|
-
var x,
|
917
|
-
const c = b("AdminComponentIs"),
|
915
|
+
function Ks(t, e, n, a, s, l) {
|
916
|
+
var x, f, w;
|
917
|
+
const c = b("AdminComponentIs"), m = b("AdminTree"), d = b("VsWidgetMap"), h = b("VsNoData"), u = b("VsWidgetComments"), _ = b("VsWidgetFileList");
|
918
918
|
return o(), i("div", Bs, [
|
919
|
-
e[0] || (e[0] =
|
920
|
-
|
919
|
+
e[0] || (e[0] = r("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
920
|
+
r("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
921
921
|
], -1)),
|
922
|
-
|
923
|
-
(
|
924
|
-
n.row ? (o(), k(
|
922
|
+
r("div", Ns, [
|
923
|
+
(f = (x = t.$route) == null ? void 0 : x.query) != null && f.card ? (o(), i(C, { key: 0 }, [
|
924
|
+
n.row ? (o(), k(m, {
|
925
925
|
key: 0,
|
926
926
|
defaultValue: !0,
|
927
927
|
title: "Основна інформація",
|
928
928
|
class: "border-b p-[10px] py-[16px]"
|
929
929
|
}, {
|
930
930
|
default: I(() => [
|
931
|
-
|
932
|
-
|
931
|
+
r("div", Us, [
|
932
|
+
r("dl", Es, [
|
933
933
|
(o(!0), i(C, null, D(n.columns, (y) => (o(), i("div", Hs, [
|
934
|
-
|
935
|
-
|
934
|
+
r("dt", Ws, $((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
|
935
|
+
r("dd", Rs, [
|
936
936
|
g(c, {
|
937
937
|
row: n.row,
|
938
938
|
column: y,
|
@@ -945,7 +945,7 @@ function Ks(t, e, n, a, s, r) {
|
|
945
945
|
]),
|
946
946
|
_: 1
|
947
947
|
})) : v("", !0),
|
948
|
-
(w = n.row) != null && w.geom ? (o(), k(
|
948
|
+
(w = n.row) != null && w.geom ? (o(), k(m, {
|
949
949
|
key: 1,
|
950
950
|
title: "Карта",
|
951
951
|
class: "border-b p-[10px] py-[16px]"
|
@@ -967,14 +967,14 @@ function Ks(t, e, n, a, s, r) {
|
|
967
967
|
}),
|
968
968
|
_: 1
|
969
969
|
})) : v("", !0),
|
970
|
-
g(
|
970
|
+
g(m, {
|
971
971
|
title: "Коментарі",
|
972
972
|
class: "border-b p-[10px] py-[16px]"
|
973
973
|
}, {
|
974
974
|
default: I(() => {
|
975
975
|
var y;
|
976
976
|
return [
|
977
|
-
|
977
|
+
r("div", Js, [
|
978
978
|
g(u, {
|
979
979
|
id: (y = n.row) == null ? void 0 : y.id
|
980
980
|
}, null, 8, ["id"])
|
@@ -983,14 +983,14 @@ function Ks(t, e, n, a, s, r) {
|
|
983
983
|
}),
|
984
984
|
_: 1
|
985
985
|
}),
|
986
|
-
g(
|
986
|
+
g(m, {
|
987
987
|
title: "Файли",
|
988
988
|
class: "border-b p-[10px] py-[16px]"
|
989
989
|
}, {
|
990
990
|
default: I(() => {
|
991
991
|
var y, A;
|
992
992
|
return [
|
993
|
-
|
993
|
+
r("div", Gs, [
|
994
994
|
(o(), k(_, {
|
995
995
|
key: (y = n.row) == null ? void 0 : y.id,
|
996
996
|
id: (A = n.row) == null ? void 0 : A.id
|
@@ -1029,10 +1029,10 @@ const Qs = /* @__PURE__ */ T(Os, [["render", Ks]]), Xs = {
|
|
1029
1029
|
key: 0,
|
1030
1030
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
1031
1031
|
}, Zs = { 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" };
|
1032
|
-
function en(t, e, n, a, s,
|
1033
|
-
const c = b("IconFilter"),
|
1032
|
+
function en(t, e, n, a, s, l) {
|
1033
|
+
const c = b("IconFilter"), m = b("VsFilter");
|
1034
1034
|
return o(), i(C, null, [
|
1035
|
-
|
1035
|
+
r("button", {
|
1036
1036
|
onClick: e[0] || (e[0] = (d) => s.isFilters = !s.isFilters),
|
1037
1037
|
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"
|
1038
1038
|
}, [
|
@@ -1048,13 +1048,13 @@ function en(t, e, n, a, s, r) {
|
|
1048
1048
|
var d;
|
1049
1049
|
return [
|
1050
1050
|
(o(), k(ct, { to: "#modal" }, [
|
1051
|
-
M(
|
1052
|
-
onClick: e[3] || (e[3] = (...h) =>
|
1051
|
+
M(r("div", {
|
1052
|
+
onClick: e[3] || (e[3] = (...h) => l.closeFilter && l.closeFilter(...h)),
|
1053
1053
|
style: { height: "100vh" },
|
1054
1054
|
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)]"
|
1055
1055
|
}, [
|
1056
|
-
|
1057
|
-
(d = n.scheme) != null && d.length ? (o(), k(
|
1056
|
+
r("div", Zs, [
|
1057
|
+
(d = n.scheme) != null && d.length ? (o(), k(m, {
|
1058
1058
|
key: 0,
|
1059
1059
|
ref: "filter",
|
1060
1060
|
scheme: n.scheme,
|
@@ -1087,18 +1087,18 @@ const tn = /* @__PURE__ */ T(Xs, [["render", en]]), sn = {
|
|
1087
1087
|
"aria-label": "Tabs",
|
1088
1088
|
role: "tablist",
|
1089
1089
|
"aria-orientation": "horizontal"
|
1090
|
-
},
|
1091
|
-
function
|
1090
|
+
}, rn = ["onClick"];
|
1091
|
+
function ln(t, e, n, a, s, l) {
|
1092
1092
|
return o(), i("nav", nn, [
|
1093
1093
|
(o(!0), i(C, null, D(n.tabsList, (c) => (o(), i("button", {
|
1094
|
-
onClick: (
|
1094
|
+
onClick: (m) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
1095
1095
|
class: S(["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", {
|
1096
1096
|
" 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
|
1097
1097
|
}])
|
1098
|
-
}, $(c == null ? void 0 : c.label), 11,
|
1098
|
+
}, $(c == null ? void 0 : c.label), 11, rn))), 256))
|
1099
1099
|
]);
|
1100
1100
|
}
|
1101
|
-
const on = /* @__PURE__ */ T(sn, [["render",
|
1101
|
+
const on = /* @__PURE__ */ T(sn, [["render", ln]]), an = {}, dn = {
|
1102
1102
|
xmlns: "http://www.w3.org/2000/svg",
|
1103
1103
|
viewBox: "0 0 24 24",
|
1104
1104
|
fill: "none",
|
@@ -1108,28 +1108,28 @@ const on = /* @__PURE__ */ T(sn, [["render", rn]]), an = {}, dn = {
|
|
1108
1108
|
"stroke-linejoin": "round",
|
1109
1109
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
1110
1110
|
};
|
1111
|
-
function un(t, e, n, a, s,
|
1111
|
+
function un(t, e, n, a, s, l) {
|
1112
1112
|
return o(), i("svg", dn, e[0] || (e[0] = [
|
1113
|
-
|
1113
|
+
r("path", {
|
1114
1114
|
stroke: "none",
|
1115
1115
|
d: "M0 0h24v24H0z",
|
1116
1116
|
fill: "none"
|
1117
1117
|
}, null, -1),
|
1118
|
-
|
1118
|
+
r("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)
|
1119
1119
|
]));
|
1120
1120
|
}
|
1121
1121
|
const cn = /* @__PURE__ */ T(an, [["render", un]]), pn = {
|
1122
1122
|
components: { IconFilter2: cn, IconCheck2: Me },
|
1123
1123
|
props: { filterCustom: String, customList: Array }
|
1124
1124
|
}, bn = { 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" }, hn = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, fn = ["onClick"], mn = { class: "text-sm text-gray-800" };
|
1125
|
-
function gn(t, e, n, a, s,
|
1126
|
-
const c = b("IconFilter2"),
|
1125
|
+
function gn(t, e, n, a, s, l) {
|
1126
|
+
const c = b("IconFilter2"), m = b("IconCheck2"), d = b("VsPopover");
|
1127
1127
|
return o(), k(d, {
|
1128
1128
|
ref: "popover",
|
1129
1129
|
placement: "bottom"
|
1130
1130
|
}, {
|
1131
1131
|
reference: I(() => [
|
1132
|
-
|
1132
|
+
r("button", bn, [
|
1133
1133
|
g(c, {
|
1134
1134
|
height: "20",
|
1135
1135
|
width: "20"
|
@@ -1137,7 +1137,7 @@ function gn(t, e, n, a, s, r) {
|
|
1137
1137
|
])
|
1138
1138
|
]),
|
1139
1139
|
default: I(() => [
|
1140
|
-
|
1140
|
+
r("div", hn, [
|
1141
1141
|
(o(!0), i(C, null, D(n.customList, (h, u) => (o(), i("button", {
|
1142
1142
|
onClick: (_) => {
|
1143
1143
|
var x;
|
@@ -1146,13 +1146,13 @@ function gn(t, e, n, a, s, r) {
|
|
1146
1146
|
key: u,
|
1147
1147
|
class: S(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (h == null ? void 0 : h.name) }])
|
1148
1148
|
}, [
|
1149
|
-
|
1150
|
-
n.filterCustom === (h == null ? void 0 : h.name) ? (o(), k(
|
1149
|
+
r("span", mn, $(h == null ? void 0 : h.label), 1),
|
1150
|
+
n.filterCustom === (h == null ? void 0 : h.name) ? (o(), k(m, {
|
1151
1151
|
key: 0,
|
1152
1152
|
class: "ml-auto size-3 shrink-0"
|
1153
1153
|
})) : v("", !0)
|
1154
1154
|
], 10, fn))), 128)),
|
1155
|
-
|
1155
|
+
r("button", {
|
1156
1156
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1157
1157
|
onClick: e[0] || (e[0] = (h) => {
|
1158
1158
|
var u;
|
@@ -1170,10 +1170,10 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
1170
1170
|
slots: Object
|
1171
1171
|
},
|
1172
1172
|
setup(t) {
|
1173
|
-
var
|
1174
|
-
const { asyncTemplateSlot: e } = (_ = (u = (h = (d = (
|
1175
|
-
var x,
|
1176
|
-
if ((x = s.slots) != null && x.panelLeft || (a.value = "div"), (w = (
|
1173
|
+
var m, d, h, u, _;
|
1174
|
+
const { asyncTemplateSlot: e } = (_ = (u = (h = (d = (m = ze()) == null ? void 0 : m.appContext) == null ? void 0 : d.app) == null ? void 0 : h.config) == null ? void 0 : u.globalProperties) == null ? void 0 : _.utils, n = q(""), a = q(""), s = t, l = () => {
|
1175
|
+
var x, f, w, y, A;
|
1176
|
+
if ((x = s.slots) != null && x.panelLeft || (a.value = "div"), (w = (f = s.slots) == null ? void 0 : f.panelLeft) != null && w.includes("<")) {
|
1177
1177
|
const V = e("PanelLeft", (y = s.slots) == null ? void 0 : y.panelLeft, [
|
1178
1178
|
"name"
|
1179
1179
|
]);
|
@@ -1181,8 +1181,8 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
1181
1181
|
} else
|
1182
1182
|
a.value = (A = s.slots) == null ? void 0 : A.panelLeft;
|
1183
1183
|
}, c = () => {
|
1184
|
-
var x,
|
1185
|
-
if ((x = s.slots) != null && x.panelRight || (n.value = "div"), (w = (
|
1184
|
+
var x, f, w, y, A;
|
1185
|
+
if ((x = s.slots) != null && x.panelRight || (n.value = "div"), (w = (f = s.slots) == null ? void 0 : f.panelRight) != null && w.includes("<")) {
|
1186
1186
|
const V = e("PanelRight", (y = s.slots) == null ? void 0 : y.panelRight, [
|
1187
1187
|
"name"
|
1188
1188
|
]);
|
@@ -1190,7 +1190,7 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
1190
1190
|
} else
|
1191
1191
|
n.value = (A = s.slots) == null ? void 0 : A.panelRight;
|
1192
1192
|
};
|
1193
|
-
return
|
1193
|
+
return l(), c(), (x, f) => (o(), i("div", yn, [
|
1194
1194
|
(o(), k(O(a.value))),
|
1195
1195
|
(o(), k(O(n.value)))
|
1196
1196
|
]));
|
@@ -1208,12 +1208,12 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
1208
1208
|
slots: Object
|
1209
1209
|
},
|
1210
1210
|
setup(t) {
|
1211
|
-
var
|
1212
|
-
const { asyncTemplateSlot: e } = (h = (d = (
|
1211
|
+
var l, c, m, d, h;
|
1212
|
+
const { asyncTemplateSlot: e } = (h = (d = (m = (c = (l = ze()) == null ? void 0 : l.appContext) == null ? void 0 : c.app) == null ? void 0 : m.config) == null ? void 0 : d.globalProperties) == null ? void 0 : h.utils, n = q(""), a = t;
|
1213
1213
|
return (() => {
|
1214
|
-
var u, _, x,
|
1214
|
+
var u, _, x, f, w;
|
1215
1215
|
if ((u = a.slots) != null && u.addButton || (n.value = "div"), (x = (_ = a.slots) == null ? void 0 : _.addButton) != null && x.includes("<")) {
|
1216
|
-
const y = e("addButton", (
|
1216
|
+
const y = e("addButton", (f = a.slots) == null ? void 0 : f.addButton, [
|
1217
1217
|
"IconPlus"
|
1218
1218
|
]);
|
1219
1219
|
n.value = y;
|
@@ -1264,14 +1264,14 @@ const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-ce
|
|
1264
1264
|
"stroke-linejoin": "round",
|
1265
1265
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1266
1266
|
};
|
1267
|
-
function Sn(t, e, n, a, s,
|
1267
|
+
function Sn(t, e, n, a, s, l) {
|
1268
1268
|
return o(), i("svg", An, e[0] || (e[0] = [
|
1269
|
-
|
1269
|
+
r("path", {
|
1270
1270
|
stroke: "none",
|
1271
1271
|
d: "M0 0h24v24H0z",
|
1272
1272
|
fill: "none"
|
1273
1273
|
}, null, -1),
|
1274
|
-
|
1274
|
+
r("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1275
1275
|
]));
|
1276
1276
|
}
|
1277
1277
|
const In = /* @__PURE__ */ T(Tn, [["render", Sn]]), Vn = pt({
|
@@ -1344,7 +1344,7 @@ const In = /* @__PURE__ */ T(Tn, [["render", Sn]]), Vn = pt({
|
|
1344
1344
|
let n = Math.max(t - e, 1), a = n + this.maxPages - 1;
|
1345
1345
|
a > this.pagesCount && (a = this.pagesCount, n = Math.max(a - this.maxPages + 1, 1)), this.pages = Array.from(
|
1346
1346
|
{ length: a - n + 1 },
|
1347
|
-
(s,
|
1347
|
+
(s, l) => n + l
|
1348
1348
|
);
|
1349
1349
|
},
|
1350
1350
|
handleClickPrev() {
|
@@ -1361,10 +1361,10 @@ const In = /* @__PURE__ */ T(Tn, [["render", Sn]]), Vn = pt({
|
|
1361
1361
|
key: 0,
|
1362
1362
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1363
1363
|
}, Ln = { class: "relative" }, Mn = { 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%]" }, zn = ["onClick"];
|
1364
|
-
function qn(t, e, n, a, s,
|
1365
|
-
const c = b("IconChevronDown"),
|
1364
|
+
function qn(t, e, n, a, s, l) {
|
1365
|
+
const c = b("IconChevronDown"), m = b("IconCheck");
|
1366
1366
|
return o(), i("nav", Dn, [
|
1367
|
-
|
1367
|
+
r("button", {
|
1368
1368
|
type: "button",
|
1369
1369
|
onClick: e[0] || (e[0] = (...d) => t.handleClickPrev && t.handleClickPrev(...d)),
|
1370
1370
|
class: S(["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 }])
|
@@ -1375,17 +1375,17 @@ function qn(t, e, n, a, s, r) {
|
|
1375
1375
|
class: "rotate-90"
|
1376
1376
|
})
|
1377
1377
|
], 2),
|
1378
|
-
|
1379
|
-
|
1378
|
+
r("div", Pn, [
|
1379
|
+
r("span", {
|
1380
1380
|
ref: "currentPage",
|
1381
1381
|
contenteditable: "true",
|
1382
1382
|
onBlur: e[1] || (e[1] = (d) => t.handleSetPage(d.target.innerText)),
|
1383
1383
|
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 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
|
1384
1384
|
}, $(t.page), 545),
|
1385
|
-
e[4] || (e[4] =
|
1386
|
-
|
1385
|
+
e[4] || (e[4] = r("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1386
|
+
r("span", jn, $(t.pagesCount), 1)
|
1387
1387
|
]),
|
1388
|
-
|
1388
|
+
r("button", {
|
1389
1389
|
type: "button",
|
1390
1390
|
onClick: e[2] || (e[2] = (...d) => t.handleClickNext && t.handleClickNext(...d)),
|
1391
1391
|
class: S([{ "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"])
|
@@ -1397,15 +1397,15 @@ function qn(t, e, n, a, s, r) {
|
|
1397
1397
|
})
|
1398
1398
|
], 2),
|
1399
1399
|
t.pageSizes.length ? (o(), i("div", Fn, [
|
1400
|
-
|
1401
|
-
M(
|
1400
|
+
r("div", Ln, [
|
1401
|
+
M(r("div", Mn, [
|
1402
1402
|
(o(!0), i(C, null, D(t.pageSizes, (d) => (o(), i("button", {
|
1403
1403
|
type: "button",
|
1404
1404
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1405
1405
|
onClick: (h) => t.pageSizeLocal = d
|
1406
1406
|
}, [
|
1407
1407
|
P($(d) + " ", 1),
|
1408
|
-
d === t.pageSizeLocal ? (o(), k(
|
1408
|
+
d === t.pageSizeLocal ? (o(), k(m, {
|
1409
1409
|
key: 0,
|
1410
1410
|
width: "14",
|
1411
1411
|
height: "14",
|
@@ -1432,7 +1432,7 @@ function qn(t, e, n, a, s, r) {
|
|
1432
1432
|
]);
|
1433
1433
|
}
|
1434
1434
|
const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
1435
|
-
props: { table: String, title: String },
|
1435
|
+
props: { table: String, title: String, search: String },
|
1436
1436
|
components: {
|
1437
1437
|
AdminTableControl: St,
|
1438
1438
|
AdminTableExport: Qt,
|
@@ -1548,7 +1548,7 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
1548
1548
|
},
|
1549
1549
|
columns(t) {
|
1550
1550
|
var e, n, a, s;
|
1551
|
-
this.visibleColumns = t == null ? void 0 : t.map((
|
1551
|
+
this.visibleColumns = t == null ? void 0 : t.map((l) => l == null ? void 0 : l.name), this.initialHiddenColumns === ((e = this.visibleColumns) == null ? void 0 : e.join(",")) && (this.visibleColumns = []), this.$router.replace({
|
1552
1552
|
...this.$route,
|
1553
1553
|
query: {
|
1554
1554
|
...(n = this.$route) == null ? void 0 : n.query,
|
@@ -1559,8 +1559,8 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
1559
1559
|
},
|
1560
1560
|
methods: {
|
1561
1561
|
async checkUrlMounted() {
|
1562
|
-
var t, e, n, a, s,
|
1563
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((c = decodeURI((
|
1562
|
+
var t, e, n, a, s, l, c, m, d, h, u, _, x, f, w, y, A, V, L;
|
1563
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : a.limit) || 20, this.filters = ((c = decodeURI((l = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : l.filter)) == null ? void 0 : c.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((d = (m = this.filters) == null ? void 0 : m.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((u = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : u.filterState) || null, this.filterCustom = ((x = (_ = this.$route) == null ? void 0 : _.query) == null ? void 0 : x.custom) || null, this.searchValue = ((w = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : w.search) || "", this.visibleColumns = ((V = (A = (y = this.$route) == null ? void 0 : y.query) == null ? void 0 : A.columns) == null ? void 0 : V.split(",")) || [], (L = this.$route) != null && L.query.card && (this.isVisibleCardInfo = !0);
|
1564
1564
|
},
|
1565
1565
|
rowWidth(t) {
|
1566
1566
|
var n, a;
|
@@ -1574,7 +1574,7 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
1574
1574
|
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 = "";
|
1575
1575
|
},
|
1576
1576
|
async getTableData() {
|
1577
|
-
var t, e, n, a, s,
|
1577
|
+
var t, e, n, a, s, l, c, m, d, h, u;
|
1578
1578
|
try {
|
1579
1579
|
const { data: _ } = await F.get(`/api/template/table/${this.table}`), x = await F.get(`/api/table-data/${this.table}`, {
|
1580
1580
|
params: {
|
@@ -1590,10 +1590,10 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
1590
1590
|
this.tableData = {
|
1591
1591
|
..._,
|
1592
1592
|
...(x == null ? void 0 : x.data) || {}
|
1593
|
-
}, this.initialHiddenColumns = (
|
1593
|
+
}, this.initialHiddenColumns = (l = (s = (a = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : a.filter((f) => (f == null ? void 0 : f.hidden) !== !0)) == null ? void 0 : s.map((f) => f == null ? void 0 : f.name)) == null ? void 0 : l.join(","), (c = this.visibleColumns) != null && c.length ? (m = this.tableData) == null || m.columns.forEach((f) => {
|
1594
1594
|
var w;
|
1595
|
-
(w = this.visibleColumns) != null && w.includes(
|
1596
|
-
}) : this.visibleColumns = (u = (h = (d = this.tableData) == null ? void 0 : d.columns) == null ? void 0 : h.filter((
|
1595
|
+
(w = this.visibleColumns) != null && w.includes(f == null ? void 0 : f.name) ? f.hidden = !1 : f.hidden = !0;
|
1596
|
+
}) : this.visibleColumns = (u = (h = (d = this.tableData) == null ? void 0 : d.columns) == null ? void 0 : h.filter((f) => (f == null ? void 0 : f.hidden) !== !0)) == null ? void 0 : u.map((f) => f == null ? void 0 : f.name);
|
1597
1597
|
} catch {
|
1598
1598
|
}
|
1599
1599
|
},
|
@@ -1657,17 +1657,17 @@ const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
|
1657
1657
|
}, 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" }, Xn = { class: "right-0" }, Yn = {
|
1658
1658
|
key: 0,
|
1659
1659
|
class: "w-[70px] sticky right-0 top-0"
|
1660
|
-
}, Zn = { class: "divide-y divide-gray-200 z-[1] relative" },
|
1660
|
+
}, Zn = { class: "divide-y divide-gray-200 z-[1] relative" }, er = ["onClick"], tr = ["onClick"], sr = { class: "p-[10px] flex justify-start items-end w-full" }, nr = { class: "w-[200px] md:inline-flex hidden" }, rr = { class: "text-sm text-gray-600 dark:text-neutral-400" }, lr = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, or = { key: 0 }, ar = {
|
1661
1661
|
key: 0,
|
1662
1662
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1663
1663
|
};
|
1664
|
-
function
|
1665
|
-
var W, R, J, G, K, Q, X, Y, Z, ee, te, se, ne,
|
1666
|
-
const c = b("AdminCustomButtonAdd"),
|
1664
|
+
function ir(t, e, n, a, s, l) {
|
1665
|
+
var W, R, J, G, K, Q, X, Y, Z, ee, te, se, ne, re, le, oe, ae, ie, de, ue, ce, pe, be, he, fe, me, ge, xe, ye, ke;
|
1666
|
+
const c = b("AdminCustomButtonAdd"), m = b("IconPlus"), d = b("router-link"), h = b("AdminTableTabs"), u = b("IconSearch"), _ = b("VsText"), x = b("AdminTableCustomButtons"), f = b("AdminTableCustomFilters"), w = b("AdminTableColumnsHidden"), y = b("AdminTablePrint"), A = b("AdminTableExport"), V = b("AdminTableFilters"), L = b("IconOpenCard"), E = b("AdminTableColumn"), H = b("AdminComponentIs"), Be = b("AdminTableControl"), Ne = b("AdminTableTotalsList"), Ue = b("AdminNodata"), Ee = b("AdminTablePagination"), He = b("AdminTableCardInfo");
|
1667
1667
|
return o(), i("div", Nn, [
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1668
|
+
r("div", Un, [
|
1669
|
+
r("h2", En, $(n.title), 1),
|
1670
|
+
l.isForm ? (o(), i(C, { key: 0 }, [
|
1671
1671
|
(R = (W = s.tableData) == null ? void 0 : W.slots) != null && R.addButton ? (o(), k(c, {
|
1672
1672
|
key: 0,
|
1673
1673
|
slots: (J = s.tableData) == null ? void 0 : J.slots
|
@@ -1677,7 +1677,7 @@ function il(t, e, n, a, s, r) {
|
|
1677
1677
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
|
1678
1678
|
}, {
|
1679
1679
|
default: I(() => [
|
1680
|
-
g(
|
1680
|
+
g(m, {
|
1681
1681
|
height: "16",
|
1682
1682
|
width: "16"
|
1683
1683
|
}),
|
@@ -1687,19 +1687,19 @@ function il(t, e, n, a, s, r) {
|
|
1687
1687
|
}, 8, ["to"]))
|
1688
1688
|
], 64)) : v("", !0)
|
1689
1689
|
]),
|
1690
|
-
|
1691
|
-
|
1690
|
+
r("div", Hn, [
|
1691
|
+
r("div", Wn, [
|
1692
1692
|
(X = (Q = s.tableData) == null ? void 0 : Q.filterState) != null && X.length ? (o(), k(h, {
|
1693
1693
|
key: 0,
|
1694
1694
|
tabsList: (Y = s.tableData) == null ? void 0 : Y.filterState,
|
1695
1695
|
filterState: s.filterState,
|
1696
1696
|
"onUpdate:filterState": e[0] || (e[0] = (p) => s.filterState = p)
|
1697
1697
|
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
1698
|
-
|
1699
|
-
|
1698
|
+
r("div", Rn, [
|
1699
|
+
r("div", {
|
1700
1700
|
class: S([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1701
1701
|
}, [
|
1702
|
-
|
1702
|
+
r("div", {
|
1703
1703
|
class: S(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1704
1704
|
}, [
|
1705
1705
|
g(u, {
|
@@ -1710,28 +1710,28 @@ function il(t, e, n, a, s, r) {
|
|
1710
1710
|
g(_, {
|
1711
1711
|
modelValue: s.searchValue,
|
1712
1712
|
"onUpdate:modelValue": e[1] || (e[1] = (p) => s.searchValue = p),
|
1713
|
-
placeholder: "Пошук...",
|
1713
|
+
placeholder: n.search || "Пошук...",
|
1714
1714
|
clearable: !0,
|
1715
1715
|
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"
|
1716
|
-
}, null, 8, ["modelValue"]),
|
1717
|
-
|
1716
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
1717
|
+
r("div", Jn, [
|
1718
1718
|
(Z = s.tableData) != null && Z.slots ? (o(), k(x, {
|
1719
1719
|
key: 0,
|
1720
1720
|
slots: (ee = s.tableData) == null ? void 0 : ee.slots
|
1721
1721
|
}, null, 8, ["slots"])) : v("", !0),
|
1722
|
-
(se = (te = s.tableData) == null ? void 0 : te.filterCustom) != null && se.length ? (o(), k(
|
1722
|
+
(se = (te = s.tableData) == null ? void 0 : te.filterCustom) != null && se.length ? (o(), k(f, {
|
1723
1723
|
key: 1,
|
1724
1724
|
customList: (ne = s.tableData) == null ? void 0 : ne.filterCustom,
|
1725
1725
|
filterCustom: s.filterCustom,
|
1726
1726
|
"onUpdate:filterCustom": e[2] || (e[2] = (p) => s.filterCustom = p)
|
1727
1727
|
}, null, 8, ["customList", "filterCustom"])) : v("", !0),
|
1728
1728
|
g(w, {
|
1729
|
-
columns: (
|
1729
|
+
columns: (re = s.tableData) == null ? void 0 : re.columns,
|
1730
1730
|
onUpdateColumns: e[3] || (e[3] = (p) => s.tableData.columns = p)
|
1731
1731
|
}, null, 8, ["columns"]),
|
1732
1732
|
g(y, {
|
1733
|
-
rows: (
|
1734
|
-
titleCol: (ae = (oe =
|
1733
|
+
rows: (le = s.tableData) == null ? void 0 : le.rows,
|
1734
|
+
titleCol: (ae = (oe = l.columns) == null ? void 0 : oe[0]) == null ? void 0 : ae.name
|
1735
1735
|
}, null, 8, ["rows", "titleCol"]),
|
1736
1736
|
((ie = s.tableData) == null ? void 0 : ie.export) !== !1 ? (o(), k(A, {
|
1737
1737
|
key: 2,
|
@@ -1747,10 +1747,10 @@ function il(t, e, n, a, s, r) {
|
|
1747
1747
|
scheme: s.filterScheme,
|
1748
1748
|
onFilters: s.onFilters,
|
1749
1749
|
table: n.table,
|
1750
|
-
onFilterChange:
|
1750
|
+
onFilterChange: l.filterChange
|
1751
1751
|
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : v("", !0),
|
1752
|
-
|
1753
|
-
onClick: e[4] || (e[4] = (...p) =>
|
1752
|
+
r("button", {
|
1753
|
+
onClick: e[4] || (e[4] = (...p) => l.toggleCardInfo && l.toggleCardInfo(...p)),
|
1754
1754
|
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"
|
1755
1755
|
}, [
|
1756
1756
|
g(L, {
|
@@ -1759,36 +1759,36 @@ function il(t, e, n, a, s, r) {
|
|
1759
1759
|
])
|
1760
1760
|
])
|
1761
1761
|
], 2),
|
1762
|
-
|
1762
|
+
r("div", {
|
1763
1763
|
class: S(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1764
1764
|
}, [
|
1765
|
-
|
1765
|
+
r("div", {
|
1766
1766
|
style: Fe({
|
1767
1767
|
height: (pe = (ce = s.tableData) == null ? void 0 : ce.filterState) != null && pe.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
|
1768
1768
|
}),
|
1769
1769
|
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"
|
1770
1770
|
}, [
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
(o(!0), i(C, null, D(
|
1771
|
+
r("div", Gn, [
|
1772
|
+
l.isNoData ? (o(), k(Ue, { key: 1 })) : (o(), i("table", Kn, [
|
1773
|
+
r("thead", Qn, [
|
1774
|
+
r("tr", Xn, [
|
1775
|
+
(o(!0), i(C, null, D(l.columns, (p) => (o(), k(E, {
|
1776
1776
|
key: p.name,
|
1777
1777
|
style: Fe({
|
1778
|
-
width:
|
1778
|
+
width: l.rowWidth(p == null ? void 0 : p.name),
|
1779
1779
|
textAlign: p == null ? void 0 : p.align,
|
1780
1780
|
wordBreak: p == null ? void 0 : p.wrap
|
1781
1781
|
}),
|
1782
1782
|
data: p,
|
1783
1783
|
activeColumn: s.activeColumn,
|
1784
|
-
onChangeActive:
|
1784
|
+
onChangeActive: l.changeActiveColumn
|
1785
1785
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1786
|
-
(he = (be =
|
1786
|
+
(he = (be = l.getActions) == null ? void 0 : be.filter(
|
1787
1787
|
(p) => p !== "add" && p !== "view"
|
1788
1788
|
)) != null && he.length ? (o(), i("th", Yn)) : v("", !0)
|
1789
1789
|
])
|
1790
1790
|
]),
|
1791
|
-
|
1791
|
+
r("tbody", Zn, [
|
1792
1792
|
(o(!0), i(C, null, D((fe = s.tableData) == null ? void 0 : fe.rows, (p, We) => {
|
1793
1793
|
var ve, _e, we, Ce, $e, Te, Ae, Se, Ie, Ve, De, Pe;
|
1794
1794
|
return o(), i("tr", {
|
@@ -1797,43 +1797,43 @@ function il(t, e, n, a, s, r) {
|
|
1797
1797
|
"bg-gray-50": ((_e = (ve = t.$route) == null ? void 0 : ve.query) == null ? void 0 : _e.card) === (p == null ? void 0 : p.id)
|
1798
1798
|
})
|
1799
1799
|
}, [
|
1800
|
-
|
1800
|
+
r("td", {
|
1801
1801
|
class: S(["px-1 py-3 text-gray-600 pe-4", [
|
1802
|
-
(we =
|
1802
|
+
(we = l.columns[0]) != null && we.align ? `text-${((Ce = l.columns[0]) == null ? void 0 : Ce.align) || "left"}` : ""
|
1803
1803
|
]])
|
1804
1804
|
}, [
|
1805
|
-
|
1805
|
+
r("button", {
|
1806
1806
|
onClick: (j) => {
|
1807
|
-
|
1807
|
+
l.pushToCard(p == null ? void 0 : p.id), l.pushToLinkCard(l.columns[0], p);
|
1808
1808
|
},
|
1809
1809
|
class: S(["font-medium text-start", [
|
1810
|
-
...
|
1810
|
+
...l.getCustomStyles(l.columns[0]),
|
1811
1811
|
(($e = this.tableData) == null ? void 0 : $e.card) === !1 ? "" : " text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1812
1812
|
]])
|
1813
1813
|
}, [
|
1814
1814
|
g(H, {
|
1815
1815
|
row: p,
|
1816
|
-
column:
|
1816
|
+
column: l.columns[0],
|
1817
1817
|
table: n.table,
|
1818
|
-
onUpdateTable:
|
1818
|
+
onUpdateTable: l.getTableData
|
1819
1819
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1820
|
-
], 10,
|
1820
|
+
], 10, er)
|
1821
1821
|
], 2),
|
1822
|
-
(o(!0), i(C, null, D((Te =
|
1823
|
-
onClick: (
|
1824
|
-
|
1822
|
+
(o(!0), i(C, null, D((Te = l.columns) == null ? void 0 : Te.slice(1), (j) => (o(), i("td", {
|
1823
|
+
onClick: (br) => {
|
1824
|
+
l.changeActiveCardInfo(p == null ? void 0 : p.id), l.pushToLinkCard(j, p);
|
1825
1825
|
},
|
1826
|
-
class: S(["px-1 py-3 text-gray-600 pe-3",
|
1826
|
+
class: S(["px-1 py-3 text-gray-600 pe-3", l.getCustomStyles(j)]),
|
1827
1827
|
key: j.name
|
1828
1828
|
}, [
|
1829
1829
|
g(H, {
|
1830
1830
|
row: p,
|
1831
1831
|
column: j,
|
1832
1832
|
table: n.table,
|
1833
|
-
onUpdateTable:
|
1833
|
+
onUpdateTable: l.getTableData
|
1834
1834
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1835
|
-
], 10,
|
1836
|
-
(Se = (Ae =
|
1835
|
+
], 10, tr))), 128)),
|
1836
|
+
(Se = (Ae = l.getActions) == null ? void 0 : Ae.filter(
|
1837
1837
|
(j) => j !== "add" && j !== "view"
|
1838
1838
|
)) != null && Se.length ? (o(), i("td", {
|
1839
1839
|
key: 0,
|
@@ -1843,40 +1843,40 @@ function il(t, e, n, a, s, r) {
|
|
1843
1843
|
}])
|
1844
1844
|
}, [
|
1845
1845
|
g(Be, {
|
1846
|
-
actions:
|
1847
|
-
isForm:
|
1846
|
+
actions: l.getActions,
|
1847
|
+
isForm: l.isForm,
|
1848
1848
|
item: p,
|
1849
1849
|
table: n.table,
|
1850
|
-
onUpdateTable:
|
1850
|
+
onUpdateTable: l.getTableData
|
1851
1851
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1852
1852
|
], 2)) : v("", !0)
|
1853
1853
|
], 2);
|
1854
1854
|
}), 128))
|
1855
1855
|
]),
|
1856
1856
|
g(Ne, {
|
1857
|
-
columns:
|
1857
|
+
columns: l.columns,
|
1858
1858
|
agg: (me = s.tableData) == null ? void 0 : me.agg
|
1859
1859
|
}, null, 8, ["columns", "agg"])
|
1860
1860
|
]))
|
1861
1861
|
])
|
1862
1862
|
], 4)
|
1863
1863
|
], 2),
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1864
|
+
r("div", sr, [
|
1865
|
+
r("div", nr, [
|
1866
|
+
r("p", rr, [
|
1867
|
+
r("span", lr, [
|
1868
1868
|
P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((ge = s.tableData) == null ? void 0 : ge.count) || "0 ") + " ", 1),
|
1869
|
-
s.filters || s.searchValue ? (o(), i("span",
|
1869
|
+
s.filters || s.searchValue ? (o(), i("span", or, " з")) : v("", !0)
|
1870
1870
|
]),
|
1871
|
-
s.filters || s.searchValue ? (o(), i("span",
|
1871
|
+
s.filters || s.searchValue ? (o(), i("span", ar, $(" " + ((xe = s.tableData) == null ? void 0 : xe.filtered) || 0), 1)) : v("", !0)
|
1872
1872
|
])
|
1873
1873
|
]),
|
1874
1874
|
Math.ceil(((ye = s.tableData) == null ? void 0 : ye.filtered) / s.limit) > 1 ? (o(), k(Ee, {
|
1875
1875
|
key: 0,
|
1876
1876
|
class: "justify-end",
|
1877
|
-
"default-page": parseInt(
|
1877
|
+
"default-page": parseInt(l.defaultPage),
|
1878
1878
|
total: ((ke = s.tableData) == null ? void 0 : ke.filtered) || 0,
|
1879
|
-
onPageChange:
|
1879
|
+
onPageChange: l.handlePageChange,
|
1880
1880
|
pageSize: parseInt(s.limit),
|
1881
1881
|
pageSizes: [10, 20, 50, 100]
|
1882
1882
|
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : v("", !0)
|
@@ -1890,7 +1890,7 @@ function il(t, e, n, a, s, r) {
|
|
1890
1890
|
key: 0,
|
1891
1891
|
table: n.table,
|
1892
1892
|
columns: (p = s.tableData) == null ? void 0 : p.columns,
|
1893
|
-
row:
|
1893
|
+
row: l.activeCardRow
|
1894
1894
|
}, null, 8, ["table", "columns", "row"])) : v("", !0)
|
1895
1895
|
];
|
1896
1896
|
}),
|
@@ -1901,13 +1901,13 @@ function il(t, e, n, a, s, r) {
|
|
1901
1901
|
])
|
1902
1902
|
]);
|
1903
1903
|
}
|
1904
|
-
const
|
1905
|
-
components: { AdminTable:
|
1904
|
+
const dr = /* @__PURE__ */ T(Bn, [["render", ir], ["__scopeId", "data-v-4cadd511"]]), ur = {
|
1905
|
+
components: { AdminTable: dr },
|
1906
1906
|
data() {
|
1907
1907
|
return {
|
1908
1908
|
table: !1,
|
1909
1909
|
interface: "",
|
1910
|
-
|
1910
|
+
search: ""
|
1911
1911
|
};
|
1912
1912
|
},
|
1913
1913
|
watch: {
|
@@ -1920,7 +1920,7 @@ const dl = /* @__PURE__ */ T(Bn, [["render", il], ["__scopeId", "data-v-40106c61
|
|
1920
1920
|
},
|
1921
1921
|
title(t) {
|
1922
1922
|
var e;
|
1923
|
-
t && (document.title = (((e =
|
1923
|
+
t && (document.title = (((e = rt.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1924
1924
|
}
|
1925
1925
|
},
|
1926
1926
|
async mounted() {
|
@@ -1934,16 +1934,14 @@ const dl = /* @__PURE__ */ T(Bn, [["render", il], ["__scopeId", "data-v-40106c61
|
|
1934
1934
|
}), e;
|
1935
1935
|
},
|
1936
1936
|
async checkPageType() {
|
1937
|
-
var
|
1937
|
+
var n, a;
|
1938
1938
|
const t = this.flattenMenu(je.value);
|
1939
1939
|
t != null && t.length || this.$router.replace("/404");
|
1940
|
-
const e = t == null ? void 0 : t.find((
|
1941
|
-
var
|
1942
|
-
return (
|
1940
|
+
const e = t == null ? void 0 : t.find((s) => {
|
1941
|
+
var l, c;
|
1942
|
+
return (s == null ? void 0 : s.path) == ((c = (l = this.$route) == null ? void 0 : l.params) == null ? void 0 : c.catchAll);
|
1943
1943
|
});
|
1944
|
-
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((
|
1945
|
-
const n = e == null ? void 0 : e.table;
|
1946
|
-
this.table = n || !1, !n && this.getInterface();
|
1944
|
+
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((a = (n = this.$route) == null ? void 0 : n.params) == null ? void 0 : a.catchAll), this.table = (e == null ? void 0 : e.table) || !1, this.search = (e == null ? void 0 : e.search) || "", !table && this.getInterface();
|
1947
1945
|
},
|
1948
1946
|
async getInterface() {
|
1949
1947
|
var t, e;
|
@@ -1957,21 +1955,22 @@ const dl = /* @__PURE__ */ T(Bn, [["render", il], ["__scopeId", "data-v-40106c61
|
|
1957
1955
|
}
|
1958
1956
|
}
|
1959
1957
|
}
|
1960
|
-
},
|
1961
|
-
function
|
1958
|
+
}, cr = ["innerHTML"];
|
1959
|
+
function pr(t, e, n, a, s, l) {
|
1962
1960
|
const c = b("AdminTable");
|
1963
1961
|
return s.table ? (o(), k(c, {
|
1964
1962
|
key: 0,
|
1965
1963
|
table: s.table,
|
1966
|
-
title:
|
1967
|
-
|
1964
|
+
title: t.title,
|
1965
|
+
search: s.search
|
1966
|
+
}, null, 8, ["table", "title", "search"])) : (o(), i("div", {
|
1968
1967
|
key: 1,
|
1969
1968
|
class: "w-full bg-gray-50",
|
1970
1969
|
style: { height: "calc(100vh - 120px)" },
|
1971
1970
|
innerHTML: s.interface
|
1972
|
-
}, null, 8,
|
1971
|
+
}, null, 8, cr));
|
1973
1972
|
}
|
1974
|
-
const
|
1973
|
+
const mr = /* @__PURE__ */ T(ur, [["render", pr]]);
|
1975
1974
|
export {
|
1976
|
-
|
1975
|
+
mr as default
|
1977
1976
|
};
|