@opengis/admin 0.2.90 → 0.2.92
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-Ca4qw3I1.js → add-page-C9dnrI1t.js} +1 -1
- package/dist/{admin-interface-D33YlYBN.js → admin-interface-CZjap8G_.js} +250 -270
- package/dist/{admin-view-DUDq-cUc.js → admin-view-0nn6uefK.js} +143 -135
- package/dist/admin.js +2 -2
- package/dist/admin.umd.cjs +104 -104
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-BVpSk9ab.js → card-view-DQ7POHAl.js} +1 -1
- package/dist/{edit-page-BP3444FR.js → edit-page-BGIzHYvl.js} +1 -1
- package/dist/{import-file-CyDXFZM_.js → import-file-DJGO-6Ob.js} +23877 -23315
- 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/menu.json +5 -0
- 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 +3 -3
- 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 +49 -49
- 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 +106 -106
- package/server/routes/data/controllers/cardTabData.js +49 -49
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
- package/server/routes/data/controllers/tableData.js +29 -29
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +92 -92
- 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 +57 -57
- package/server/routes/notifications/index.mjs +27 -27
- package/server/routes/notifications/schema.js +16 -16
- package/server/routes/print/controllers/cardPrint.js +133 -133
- 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/utils/obj2db.js +13 -13
- package/server/routes/widget/controllers/widget.del.js +47 -47
- package/server/routes/widget/controllers/widget.set.js +76 -76
- package/server/routes/widget/index.mjs +11 -11
- package/server/routes/widget/schema.js +12 -12
- package/server/templates/cls/itree.recrzone_category.json +73 -73
- package/server/templates/cls/test.json +9 -9
- package/server/templates/form/admin.user_cls.data.form.json +49 -49
- package/server/templates/form/admin.user_group_rel.form.json +21 -21
- package/server/templates/form/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,6 +1,6 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as o, createElementBlock as i, createTextVNode as P, toDisplayString as
|
3
|
-
const
|
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 lt } from "./import-file-DJGO-6Ob.js";
|
2
|
+
import { openBlock as o, createElementBlock as i, createTextVNode as P, toDisplayString as $, createElementVNode as l, 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 rt, 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
|
+
const bt = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
currentSort: ""
|
@@ -58,23 +58,23 @@ const pt = {
|
|
58
58
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
59
59
|
}
|
60
60
|
}
|
61
|
-
},
|
61
|
+
}, ht = {
|
62
62
|
scope: "col",
|
63
63
|
class: "pe-2 py-1 text-start"
|
64
|
-
},
|
64
|
+
}, ft = { class: "w-[24px]" }, mt = {
|
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
|
69
|
-
return o(), i("th",
|
68
|
+
function gt(t, e, n, a, s, r) {
|
69
|
+
return o(), i("th", ht, [
|
70
70
|
r.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
74
|
onClick: e[0] || (e[0] = (c) => r.handleClickSortBtn(s.currentSort))
|
75
75
|
}, [
|
76
|
-
P(
|
77
|
-
l("span",
|
76
|
+
P($(r.label) + " ", 1),
|
77
|
+
l("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" }]),
|
@@ -92,10 +92,10 @@ function mt(t, e, n, a, s, r) {
|
|
92
92
|
l("path", { d: "M12 19V5" }, null, -1)
|
93
93
|
]), 2)) : v("", !0)
|
94
94
|
])
|
95
|
-
])) : (o(), i("p",
|
95
|
+
])) : (o(), i("p", mt, $(r.label), 1))
|
96
96
|
]);
|
97
97
|
}
|
98
|
-
const
|
98
|
+
const xt = /* @__PURE__ */ T(bt, [["render", gt]]), yt = {
|
99
99
|
components: {
|
100
100
|
IconMore: Re,
|
101
101
|
IconDelete: Je,
|
@@ -178,20 +178,20 @@ const gt = /* @__PURE__ */ $(pt, [["render", mt]]), xt = {
|
|
178
178
|
});
|
179
179
|
}
|
180
180
|
}
|
181
|
-
},
|
181
|
+
}, kt = { class: "inline-flex" }, vt = { 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" }, wt = ["onClick"], Ct = { class: "text-gray-800" }, $t = {
|
182
182
|
key: 1,
|
183
183
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
184
|
-
},
|
185
|
-
function
|
184
|
+
}, Tt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
185
|
+
function At(t, e, n, a, s, r) {
|
186
186
|
const c = b("IconMore"), f = b("IconEdit"), d = b("router-link"), h = b("IconDelete"), u = b("VsPopover"), _ = b("VsConfirm");
|
187
187
|
return o(), i(C, null, [
|
188
|
-
l("div",
|
188
|
+
l("div", kt, [
|
189
189
|
g(u, {
|
190
190
|
trigger: "click",
|
191
191
|
placement: "bottom-left"
|
192
192
|
}, {
|
193
193
|
reference: I(() => [
|
194
|
-
l("button",
|
194
|
+
l("button", vt, [
|
195
195
|
g(c, {
|
196
196
|
height: "16",
|
197
197
|
width: "16"
|
@@ -201,7 +201,7 @@ function Tt(t, e, n, a, s, r) {
|
|
201
201
|
default: I(() => {
|
202
202
|
var x, m, w, y, A;
|
203
203
|
return [
|
204
|
-
l("div",
|
204
|
+
l("div", _t, [
|
205
205
|
(x = n.actions) != null && x.includes("edit") && n.isForm ? (o(), k(d, {
|
206
206
|
key: 0,
|
207
207
|
to: `/edit?table=${(w = (m = t.$route) == null ? void 0 : m.params) == null ? void 0 : w.catchAll}&id=${(y = n.item) == null ? void 0 : y.id}`,
|
@@ -213,18 +213,18 @@ function Tt(t, e, n, a, s, r) {
|
|
213
213
|
]),
|
214
214
|
_: 1
|
215
215
|
}, 8, ["to"])) : v("", !0),
|
216
|
-
(o(!0), i(C, null,
|
217
|
-
key:
|
218
|
-
onClick: (E) => r.customButtonAction(
|
216
|
+
(o(!0), i(C, null, D(r.getCustomActions, (V, L) => (o(), i("button", {
|
217
|
+
key: L,
|
218
|
+
onClick: (E) => r.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
|
-
l("span",
|
223
|
-
], 8,
|
224
|
-
n.isForm ? (o(), i("div",
|
222
|
+
l("span", Ct, $(V == null ? void 0 : V.label), 1)
|
223
|
+
], 8, wt))), 128)),
|
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] = rt((...V) => r.openConfirm && r.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),
|
@@ -244,7 +244,7 @@ function Tt(t, e, n, a, s, r) {
|
|
244
244
|
}, {
|
245
245
|
default: I(() => [
|
246
246
|
e[6] || (e[6] = l("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
247
|
-
l("div",
|
247
|
+
l("div", Tt, [
|
248
248
|
l("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",
|
@@ -261,7 +261,7 @@ function Tt(t, e, n, a, s, r) {
|
|
261
261
|
}, 8, ["visible"])
|
262
262
|
], 64);
|
263
263
|
}
|
264
|
-
const
|
264
|
+
const St = /* @__PURE__ */ T(yt, [["render", At]]), It = {}, Vt = {
|
265
265
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
266
266
|
xmlns: "http://www.w3.org/2000/svg",
|
267
267
|
viewBox: "0 0 24 24",
|
@@ -272,14 +272,14 @@ const At = /* @__PURE__ */ $(xt, [["render", Tt]]), St = {}, It = {
|
|
272
272
|
"stroke-linejoin": "round"
|
273
273
|
};
|
274
274
|
function Dt(t, e, n, a, s, r) {
|
275
|
-
return o(), i("svg",
|
275
|
+
return o(), i("svg", Vt, e[0] || (e[0] = [
|
276
276
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
277
277
|
l("path", { d: "M7 20V4" }, null, -1),
|
278
278
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
279
279
|
l("path", { d: "M17 4v16" }, null, -1)
|
280
280
|
]));
|
281
281
|
}
|
282
|
-
const qe = /* @__PURE__ */
|
282
|
+
const qe = /* @__PURE__ */ T(It, [["render", Dt]]), Pt = {}, jt = {
|
283
283
|
xmlns: "http://www.w3.org/2000/svg",
|
284
284
|
width: "24",
|
285
285
|
height: "24",
|
@@ -291,8 +291,8 @@ const qe = /* @__PURE__ */ $(St, [["render", Dt]]), Vt = {}, Pt = {
|
|
291
291
|
"stroke-linejoin": "round",
|
292
292
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
293
293
|
};
|
294
|
-
function
|
295
|
-
return o(), i("svg",
|
294
|
+
function Ft(t, e, n, a, s, r) {
|
295
|
+
return o(), i("svg", jt, e[0] || (e[0] = [
|
296
296
|
l("path", {
|
297
297
|
stroke: "none",
|
298
298
|
d: "M0 0h24v24H0z",
|
@@ -302,8 +302,8 @@ function jt(t, e, n, a, s, r) {
|
|
302
302
|
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
303
303
|
]));
|
304
304
|
}
|
305
|
-
const Oe = /* @__PURE__ */
|
306
|
-
components: { IconExport: qe, IconChevronDown:
|
305
|
+
const Oe = /* @__PURE__ */ T(Pt, [["render", Ft]]), Lt = {
|
306
|
+
components: { IconExport: qe, IconChevronDown: Le, IconSuccess: Oe },
|
307
307
|
props: {
|
308
308
|
table: String,
|
309
309
|
columns: Array,
|
@@ -408,20 +408,20 @@ const Oe = /* @__PURE__ */ $(Vt, [["render", jt]]), Ft = {
|
|
408
408
|
}, Mt = {
|
409
409
|
key: 0,
|
410
410
|
class: "flex flex-col items-center"
|
411
|
-
},
|
411
|
+
}, zt = {
|
412
412
|
key: 1,
|
413
413
|
class: "p-4"
|
414
|
-
},
|
414
|
+
}, qt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ot = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Bt = ["onClick"], Nt = {
|
415
415
|
key: 0,
|
416
416
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
417
|
-
},
|
417
|
+
}, Ut = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Et = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Ht = { class: "mt-2 space-y-2" }, Wt = ["id", "onChange"], Rt = ["for"], Jt = {
|
418
418
|
key: 0,
|
419
419
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
420
|
-
},
|
420
|
+
}, Gt = {
|
421
421
|
key: 1,
|
422
422
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
423
423
|
};
|
424
|
-
function
|
424
|
+
function Kt(t, e, n, a, s, r) {
|
425
425
|
const c = b("IconExport"), f = b("IconSuccess"), d = b("VsCheckbox"), h = b("VsDialog");
|
426
426
|
return o(), i(C, null, [
|
427
427
|
l("button", {
|
@@ -442,7 +442,7 @@ function Gt(t, e, n, a, s, r) {
|
|
442
442
|
closeClickBack: !0
|
443
443
|
}, {
|
444
444
|
footer: I(() => [
|
445
|
-
s.isSuccessTemplate ? (o(), i("div",
|
445
|
+
s.isSuccessTemplate ? (o(), i("div", Jt, [
|
446
446
|
l("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",
|
@@ -453,7 +453,7 @@ function Gt(t, e, n, a, s, r) {
|
|
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
|
-
])) : (o(), i("div",
|
456
|
+
])) : (o(), i("div", Gt, [
|
457
457
|
l("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",
|
@@ -474,11 +474,11 @@ function Gt(t, e, n, a, s, r) {
|
|
474
474
|
class: "text-green-200 mb-[20px]"
|
475
475
|
}),
|
476
476
|
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
477
|
-
])) : (o(), i("div",
|
478
|
-
l("div",
|
477
|
+
])) : (o(), i("div", zt, [
|
478
|
+
l("div", qt, [
|
479
479
|
e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
480
|
-
l("div",
|
481
|
-
(o(!0), i(C, null,
|
480
|
+
l("div", Ot, [
|
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"
|
@@ -486,13 +486,13 @@ function Gt(t, e, n, a, s, r) {
|
|
486
486
|
l("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
|
-
(u == null ? void 0 : u.name) === s.activeAction ? (o(), i("span",
|
489
|
+
(u == null ? void 0 : u.name) === s.activeAction ? (o(), i("span", Nt)) : v("", !0)
|
490
490
|
], 2),
|
491
|
-
P(" " +
|
492
|
-
], 8,
|
491
|
+
P(" " + $(u == null ? void 0 : u.label), 1)
|
492
|
+
], 8, Bt))), 128))
|
493
493
|
]),
|
494
|
-
l("div",
|
495
|
-
(o(!0), i(C, null,
|
494
|
+
l("div", Ut, [
|
495
|
+
(o(!0), i(C, null, D(n.columns, (u, _) => (o(), i("div", {
|
496
496
|
class: "flex items-center",
|
497
497
|
key: _,
|
498
498
|
style: { width: "calc((100% - 10px) / 2)" }
|
@@ -507,10 +507,10 @@ function Gt(t, e, n, a, s, r) {
|
|
507
507
|
]))), 128))
|
508
508
|
])
|
509
509
|
]),
|
510
|
-
l("div",
|
510
|
+
l("div", Et, [
|
511
511
|
e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
512
|
-
l("div",
|
513
|
-
(o(!0), i(C, null,
|
512
|
+
l("div", Ht, [
|
513
|
+
(o(!0), i(C, null, D(s.tableFormats, (u, _) => (o(), i("div", {
|
514
514
|
class: "flex items-center",
|
515
515
|
key: _
|
516
516
|
}, [
|
@@ -520,11 +520,11 @@ function Gt(t, e, n, a, s, r) {
|
|
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
522
|
onChange: (x) => r.selectFormat(u)
|
523
|
-
}, null, 40,
|
523
|
+
}, null, 40, Wt),
|
524
524
|
l("label", {
|
525
525
|
for: u,
|
526
526
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
527
|
-
}, " Формат " +
|
527
|
+
}, " Формат " + $(u), 9, Rt)
|
528
528
|
]))), 128))
|
529
529
|
])
|
530
530
|
])
|
@@ -534,8 +534,8 @@ function Gt(t, e, n, a, s, r) {
|
|
534
534
|
}, 8, ["visible"])
|
535
535
|
], 64);
|
536
536
|
}
|
537
|
-
const
|
538
|
-
components: { IconExport: qe, IconChevronDown:
|
537
|
+
const Qt = /* @__PURE__ */ T(Lt, [["render", Kt]]), Xt = {
|
538
|
+
components: { IconExport: qe, IconChevronDown: Le, IconSuccess: Oe },
|
539
539
|
props: {
|
540
540
|
data: Object,
|
541
541
|
rows: Array,
|
@@ -569,11 +569,11 @@ const Kt = /* @__PURE__ */ $(Ft, [["render", Gt]]), Qt = {
|
|
569
569
|
mounted() {
|
570
570
|
console.log("rows", this.rows);
|
571
571
|
}
|
572
|
-
},
|
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"], ls = {
|
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
|
575
|
+
}, rs = ["src"], os = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
|
576
|
+
function as(t, e, n, a, s, r) {
|
577
577
|
const c = b("IconExport"), f = b("VsDialog");
|
578
578
|
return o(), i(C, null, [
|
579
579
|
l("button", {
|
@@ -597,7 +597,7 @@ function os(t, e, n, a, s, r) {
|
|
597
597
|
closeClickBack: !0
|
598
598
|
}, {
|
599
599
|
footer: I(() => [
|
600
|
-
l("div",
|
600
|
+
l("div", os, [
|
601
601
|
l("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",
|
@@ -616,8 +616,8 @@ function os(t, e, n, a, s, r) {
|
|
616
616
|
])
|
617
617
|
]),
|
618
618
|
default: I(() => [
|
619
|
-
l("div",
|
620
|
-
l("div",
|
619
|
+
l("div", Yt, [
|
620
|
+
l("div", Zt, [
|
621
621
|
l("button", {
|
622
622
|
class: S([{
|
623
623
|
"bg-gray-200": s.mode === "base",
|
@@ -640,32 +640,32 @@ function os(t, e, n, a, s, r) {
|
|
640
640
|
onClick: e[3] || (e[3] = (d) => s.mode = "preview")
|
641
641
|
}, " Перегляд шаблону ", 2)
|
642
642
|
]),
|
643
|
-
l("div",
|
644
|
-
l("div",
|
645
|
-
(o(!0), i(C, null,
|
643
|
+
l("div", es, [
|
644
|
+
l("div", ts, [
|
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
|
-
|
649
|
+
M(l("input", {
|
650
650
|
type: "radio",
|
651
651
|
id: d.id,
|
652
652
|
value: d.id,
|
653
653
|
"onUpdate:modelValue": e[4] || (e[4] = (h) => s.selectedTemplate = h),
|
654
654
|
class: "cursor-pointer h-5"
|
655
|
-
}, null, 8,
|
656
|
-
[
|
655
|
+
}, null, 8, ss), [
|
656
|
+
[ot, s.selectedTemplate]
|
657
657
|
]),
|
658
658
|
l("label", {
|
659
659
|
for: d.id,
|
660
660
|
class: "cursor-pointer"
|
661
|
-
},
|
661
|
+
}, $(d[n.titleCol]), 9, ns)
|
662
662
|
]))), 128))
|
663
663
|
]),
|
664
664
|
s.selectedTemplate ? (o(), i("iframe", {
|
665
665
|
key: 1,
|
666
666
|
class: "w-[400px] h-[400px] border ml-4",
|
667
667
|
src: r.getTemplateUrl()
|
668
|
-
}, null, 8,
|
668
|
+
}, null, 8, rs)) : (o(), i("div", ls, " Оберіть для друку та прев'ю "))
|
669
669
|
])
|
670
670
|
])
|
671
671
|
]),
|
@@ -673,7 +673,7 @@ function os(t, e, n, a, s, r) {
|
|
673
673
|
}, 8, ["visible", "onUpdate:visible"])
|
674
674
|
], 64);
|
675
675
|
}
|
676
|
-
const
|
676
|
+
const is = /* @__PURE__ */ T(Xt, [["render", as]]), ds = {}, us = {
|
677
677
|
xmlns: "http://www.w3.org/2000/svg",
|
678
678
|
viewBox: "0 0 24 24",
|
679
679
|
fill: "none",
|
@@ -683,16 +683,16 @@ const as = /* @__PURE__ */ $(Qt, [["render", os]]), is = {}, ds = {
|
|
683
683
|
"stroke-linejoin": "round",
|
684
684
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
685
685
|
};
|
686
|
-
function
|
687
|
-
return o(), i("svg",
|
688
|
-
|
686
|
+
function cs(t, e, n, a, s, r) {
|
687
|
+
return o(), i("svg", us, e[0] || (e[0] = [
|
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
|
]));
|
690
690
|
}
|
691
|
-
const
|
691
|
+
const ps = /* @__PURE__ */ T(ds, [["render", cs]]), bs = {
|
692
692
|
props: { column: Object },
|
693
693
|
emits: ["update-column"],
|
694
694
|
components: {
|
695
|
-
IconCheck2:
|
695
|
+
IconCheck2: Me
|
696
696
|
},
|
697
697
|
data() {
|
698
698
|
return {
|
@@ -708,19 +708,19 @@ const cs = /* @__PURE__ */ $(is, [["render", us]]), ps = {
|
|
708
708
|
var t;
|
709
709
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
710
710
|
}
|
711
|
-
},
|
712
|
-
function
|
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, r) {
|
713
713
|
var f, d;
|
714
714
|
const c = b("IconCheck2");
|
715
|
-
return o(), i("div",
|
716
|
-
l("label",
|
717
|
-
P(
|
718
|
-
|
715
|
+
return o(), i("div", hs, [
|
716
|
+
l("label", fs, [
|
717
|
+
P($(((f = n.column) == null ? void 0 : f.ua) || ((d = n.column) == null ? void 0 : d.title)) + " ", 1),
|
718
|
+
M(l("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
|
l("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"]])
|
@@ -733,8 +733,8 @@ function fs(t, e, n, a, s, r) {
|
|
733
733
|
])
|
734
734
|
]);
|
735
735
|
}
|
736
|
-
const
|
737
|
-
components: { IconColumns:
|
736
|
+
const gs = /* @__PURE__ */ T(bs, [["render", ms]]), xs = {
|
737
|
+
components: { IconColumns: ps, AdminTableColumnsHiddenItem: gs },
|
738
738
|
emits: ["update-columns"],
|
739
739
|
props: { columns: Array },
|
740
740
|
data() {
|
@@ -770,22 +770,22 @@ const ms = /* @__PURE__ */ $(ps, [["render", fs]]), gs = {
|
|
770
770
|
beforeUnmount() {
|
771
771
|
document.removeEventListener("click", this.handleClickOutside);
|
772
772
|
}
|
773
|
-
},
|
773
|
+
}, ys = {
|
774
774
|
class: "relative",
|
775
775
|
ref: "wrapper"
|
776
|
-
},
|
776
|
+
}, ks = {
|
777
777
|
key: 0,
|
778
778
|
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"
|
779
|
-
},
|
779
|
+
}, vs = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, _s = { 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" }, ws = {
|
780
780
|
key: 0,
|
781
781
|
class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
|
782
|
-
},
|
782
|
+
}, Cs = { class: "space-y-1" }, $s = {
|
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
|
786
|
+
function Ts(t, e, n, a, s, r) {
|
787
787
|
const c = b("IconColumns"), f = b("AdminTableColumnsHiddenItem");
|
788
|
-
return o(), i("div",
|
788
|
+
return o(), i("div", ys, [
|
789
789
|
l("button", {
|
790
790
|
onClick: e[0] || (e[0] = (...d) => r.toggleVisible && r.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"
|
@@ -799,27 +799,27 @@ function $s(t, e, n, a, s, r) {
|
|
799
799
|
default: I(() => {
|
800
800
|
var d, h;
|
801
801
|
return [
|
802
|
-
s.visible ? (o(), i("div",
|
802
|
+
s.visible ? (o(), i("div", ks, [
|
803
803
|
e[2] || (e[2] = l("div", { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, " Колонки ", -1)),
|
804
|
-
l("div",
|
805
|
-
|
804
|
+
l("div", vs, [
|
805
|
+
M(l("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
809
|
placeholder: "Search",
|
810
810
|
autofocus: ""
|
811
811
|
}, null, 512), [
|
812
|
-
[
|
812
|
+
[dt, s.searchValue]
|
813
813
|
])
|
814
814
|
]),
|
815
|
-
l("div",
|
816
|
-
(d = r.filteredColumn) != null && d.length ? (o(), i("span",
|
817
|
-
l("div",
|
818
|
-
(h = r.filteredColumn) != null && h.length ? (o(!0), i(C, { key: 0 },
|
815
|
+
l("div", _s, [
|
816
|
+
(d = r.filteredColumn) != null && d.length ? (o(), i("span", ws, " Оберіть колонки для відображення ")) : v("", !0),
|
817
|
+
l("div", Cs, [
|
818
|
+
(h = r.filteredColumn) != null && h.length ? (o(!0), i(C, { key: 0 }, D(r.filteredColumn, (u, _) => (o(), k(f, {
|
819
819
|
key: _,
|
820
820
|
column: u,
|
821
821
|
onUpdateColumn: r.updateColumn
|
822
|
-
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (o(), i("div",
|
822
|
+
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (o(), i("div", $s, " Нічого не знайдено "))
|
823
823
|
])
|
824
824
|
])
|
825
825
|
])) : v("", !0)
|
@@ -829,7 +829,7 @@ function $s(t, e, n, a, s, r) {
|
|
829
829
|
})
|
830
830
|
], 512);
|
831
831
|
}
|
832
|
-
const
|
832
|
+
const As = /* @__PURE__ */ T(xs, [["render", Ts]]), Ss = {}, Is = {
|
833
833
|
xmlns: "http://www.w3.org/2000/svg",
|
834
834
|
viewBox: "0 0 24 24",
|
835
835
|
fill: "none",
|
@@ -839,8 +839,8 @@ const Ts = /* @__PURE__ */ $(gs, [["render", $s]]), As = {}, Ss = {
|
|
839
839
|
"stroke-linejoin": "round",
|
840
840
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
841
841
|
};
|
842
|
-
function
|
843
|
-
return o(), i("svg",
|
842
|
+
function Vs(t, e, n, a, s, r) {
|
843
|
+
return o(), i("svg", Is, e[0] || (e[0] = [
|
844
844
|
l("path", {
|
845
845
|
stroke: "none",
|
846
846
|
d: "M0 0h24v24H0z",
|
@@ -849,7 +849,7 @@ function Is(t, e, n, a, s, r) {
|
|
849
849
|
l("path", { d: "M5 12l14 0" }, null, -1)
|
850
850
|
]));
|
851
851
|
}
|
852
|
-
const Ds = /* @__PURE__ */
|
852
|
+
const Ds = /* @__PURE__ */ T(Ss, [["render", Vs]]), Ps = {
|
853
853
|
components: { IconPlus: B, IconMinus: Ds },
|
854
854
|
props: {
|
855
855
|
title: String,
|
@@ -858,18 +858,18 @@ const Ds = /* @__PURE__ */ $(As, [["render", Is]]), Vs = {
|
|
858
858
|
data() {
|
859
859
|
return { expanded: this.defaultValue };
|
860
860
|
}
|
861
|
-
},
|
862
|
-
function
|
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, r) {
|
863
863
|
const c = b("IconPlus"), f = b("IconMinus");
|
864
864
|
return o(), i("div", null, [
|
865
865
|
l("div", null, [
|
866
|
-
l("div",
|
867
|
-
l("div",
|
866
|
+
l("div", js, [
|
867
|
+
l("div", Fs, [
|
868
868
|
l("div", {
|
869
869
|
onClick: e[0] || (e[0] = (d) => s.expanded = !s.expanded),
|
870
870
|
class: "rounded-md cursor-pointer grow"
|
871
871
|
}, [
|
872
|
-
l("span",
|
872
|
+
l("span", Ls, $(n.title), 1)
|
873
873
|
]),
|
874
874
|
l("button", {
|
875
875
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
@@ -883,8 +883,8 @@ function Ls(t, e, n, a, s, r) {
|
|
883
883
|
]),
|
884
884
|
g(z, { name: "fade" }, {
|
885
885
|
default: I(() => [
|
886
|
-
|
887
|
-
|
886
|
+
M(l("div", Ms, [
|
887
|
+
ut(t.$slots, "default", {}, void 0, !0)
|
888
888
|
], 512), [
|
889
889
|
[U, s.expanded]
|
890
890
|
])
|
@@ -895,31 +895,31 @@ function Ls(t, e, n, a, s, r) {
|
|
895
895
|
])
|
896
896
|
]);
|
897
897
|
}
|
898
|
-
const
|
898
|
+
const qs = /* @__PURE__ */ T(Ps, [["render", zs], ["__scopeId", "data-v-c6318482"]]), Os = {
|
899
899
|
components: {
|
900
900
|
AdminComponentIs: N,
|
901
|
-
AdminTree:
|
901
|
+
AdminTree: qs,
|
902
902
|
VsNoData: Ke,
|
903
903
|
VsWidgetComments: Qe,
|
904
904
|
VsWidgetMap: Xe,
|
905
905
|
VsWidgetFileList: Ye
|
906
906
|
},
|
907
907
|
props: { table: String, columns: Array, row: Object }
|
908
|
-
},
|
908
|
+
}, Bs = {
|
909
909
|
class: "hs-accordion border-gray-100 w-[360px] shrink-0 overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500",
|
910
910
|
style: { height: "calc(100vh - 310px)" }
|
911
|
-
},
|
911
|
+
}, Ns = {
|
912
912
|
class: "border-l",
|
913
913
|
style: { height: "calc(100vh - 360px)" }
|
914
|
-
},
|
915
|
-
function
|
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, r) {
|
916
916
|
var x, m, w;
|
917
917
|
const c = b("AdminComponentIs"), f = b("AdminTree"), d = b("VsWidgetMap"), h = b("VsNoData"), u = b("VsWidgetComments"), _ = b("VsWidgetFileList");
|
918
|
-
return o(), i("div",
|
918
|
+
return o(), i("div", Bs, [
|
919
919
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
920
920
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
921
921
|
], -1)),
|
922
|
-
l("div",
|
922
|
+
l("div", Ns, [
|
923
923
|
(m = (x = t.$route) == null ? void 0 : x.query) != null && m.card ? (o(), i(C, { key: 0 }, [
|
924
924
|
n.row ? (o(), k(f, {
|
925
925
|
key: 0,
|
@@ -928,11 +928,11 @@ function Gs(t, e, n, a, s, r) {
|
|
928
928
|
class: "border-b p-[10px] py-[16px]"
|
929
929
|
}, {
|
930
930
|
default: I(() => [
|
931
|
-
l("div",
|
932
|
-
l("dl",
|
933
|
-
(o(!0), i(C, null,
|
934
|
-
l("dt",
|
935
|
-
l("dd",
|
931
|
+
l("div", Us, [
|
932
|
+
l("dl", Es, [
|
933
|
+
(o(!0), i(C, null, D(n.columns, (y) => (o(), i("div", Hs, [
|
934
|
+
l("dt", Ws, $((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)), 1),
|
935
|
+
l("dd", Rs, [
|
936
936
|
g(c, {
|
937
937
|
row: n.row,
|
938
938
|
column: y,
|
@@ -974,7 +974,7 @@ function Gs(t, e, n, a, s, r) {
|
|
974
974
|
default: I(() => {
|
975
975
|
var y;
|
976
976
|
return [
|
977
|
-
l("div",
|
977
|
+
l("div", Js, [
|
978
978
|
g(u, {
|
979
979
|
id: (y = n.row) == null ? void 0 : y.id
|
980
980
|
}, null, 8, ["id"])
|
@@ -990,7 +990,7 @@ function Gs(t, e, n, a, s, r) {
|
|
990
990
|
default: I(() => {
|
991
991
|
var y, A;
|
992
992
|
return [
|
993
|
-
l("div",
|
993
|
+
l("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
|
@@ -1007,7 +1007,7 @@ function Gs(t, e, n, a, s, r) {
|
|
1007
1007
|
])
|
1008
1008
|
]);
|
1009
1009
|
}
|
1010
|
-
const
|
1010
|
+
const Qs = /* @__PURE__ */ T(Os, [["render", Ks]]), Xs = {
|
1011
1011
|
emits: ["filterChange"],
|
1012
1012
|
props: {
|
1013
1013
|
scheme: { type: Object },
|
@@ -1025,11 +1025,11 @@ const Ks = /* @__PURE__ */ $(qs, [["render", Gs]]), Qs = {
|
|
1025
1025
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
1026
1026
|
}
|
1027
1027
|
}
|
1028
|
-
},
|
1028
|
+
}, Ys = {
|
1029
1029
|
key: 0,
|
1030
1030
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
1031
|
-
},
|
1032
|
-
function
|
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, r) {
|
1033
1033
|
const c = b("IconFilter"), f = b("VsFilter");
|
1034
1034
|
return o(), i(C, null, [
|
1035
1035
|
l("button", {
|
@@ -1041,19 +1041,19 @@ function Zs(t, e, n, a, s, r) {
|
|
1041
1041
|
width: "16"
|
1042
1042
|
}),
|
1043
1043
|
e[4] || (e[4] = P(" Фільтри ")),
|
1044
|
-
n.onFilters ? (o(), i("span",
|
1044
|
+
n.onFilters ? (o(), i("span", Ys, $(n.onFilters), 1)) : v("", !0)
|
1045
1045
|
]),
|
1046
1046
|
g(z, { name: "fade" }, {
|
1047
1047
|
default: I(() => {
|
1048
1048
|
var d;
|
1049
1049
|
return [
|
1050
|
-
(o(), k(
|
1051
|
-
|
1050
|
+
(o(), k(ct, { to: "#modal" }, [
|
1051
|
+
M(l("div", {
|
1052
1052
|
onClick: e[3] || (e[3] = (...h) => r.closeFilter && r.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
|
-
l("div",
|
1056
|
+
l("div", Zs, [
|
1057
1057
|
(d = n.scheme) != null && d.length ? (o(), k(f, {
|
1058
1058
|
key: 0,
|
1059
1059
|
ref: "filter",
|
@@ -1080,25 +1080,25 @@ function Zs(t, e, n, a, s, r) {
|
|
1080
1080
|
})
|
1081
1081
|
], 64);
|
1082
1082
|
}
|
1083
|
-
const
|
1083
|
+
const tn = /* @__PURE__ */ T(Xs, [["render", en]]), sn = {
|
1084
1084
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
1085
|
-
},
|
1085
|
+
}, nn = {
|
1086
1086
|
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",
|
1087
1087
|
"aria-label": "Tabs",
|
1088
1088
|
role: "tablist",
|
1089
1089
|
"aria-orientation": "horizontal"
|
1090
|
-
},
|
1091
|
-
function
|
1092
|
-
return o(), i("nav",
|
1093
|
-
(o(!0), i(C, null,
|
1090
|
+
}, ln = ["onClick"];
|
1091
|
+
function rn(t, e, n, a, s, r) {
|
1092
|
+
return o(), i("nav", nn, [
|
1093
|
+
(o(!0), i(C, null, D(n.tabsList, (c) => (o(), i("button", {
|
1094
1094
|
onClick: (f) => 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
|
-
},
|
1098
|
+
}, $(c == null ? void 0 : c.label), 11, ln))), 256))
|
1099
1099
|
]);
|
1100
1100
|
}
|
1101
|
-
const
|
1101
|
+
const on = /* @__PURE__ */ T(sn, [["render", rn]]), an = {}, dn = {
|
1102
1102
|
xmlns: "http://www.w3.org/2000/svg",
|
1103
1103
|
viewBox: "0 0 24 24",
|
1104
1104
|
fill: "none",
|
@@ -1108,8 +1108,8 @@ const rn = /* @__PURE__ */ $(tn, [["render", ln]]), on = {}, an = {
|
|
1108
1108
|
"stroke-linejoin": "round",
|
1109
1109
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
1110
1110
|
};
|
1111
|
-
function
|
1112
|
-
return o(), i("svg",
|
1111
|
+
function un(t, e, n, a, s, r) {
|
1112
|
+
return o(), i("svg", dn, e[0] || (e[0] = [
|
1113
1113
|
l("path", {
|
1114
1114
|
stroke: "none",
|
1115
1115
|
d: "M0 0h24v24H0z",
|
@@ -1118,18 +1118,18 @@ function dn(t, e, n, a, s, r) {
|
|
1118
1118
|
l("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" }, null, -1)
|
1119
1119
|
]));
|
1120
1120
|
}
|
1121
|
-
const
|
1122
|
-
components: { IconFilter2:
|
1121
|
+
const cn = /* @__PURE__ */ T(an, [["render", un]]), pn = {
|
1122
|
+
components: { IconFilter2: cn, IconCheck2: Me },
|
1123
1123
|
props: { filterCustom: String, customList: Array }
|
1124
|
-
},
|
1125
|
-
function
|
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, r) {
|
1126
1126
|
const c = b("IconFilter2"), f = 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
|
-
l("button",
|
1132
|
+
l("button", bn, [
|
1133
1133
|
g(c, {
|
1134
1134
|
height: "20",
|
1135
1135
|
width: "20"
|
@@ -1137,8 +1137,8 @@ function mn(t, e, n, a, s, r) {
|
|
1137
1137
|
])
|
1138
1138
|
]),
|
1139
1139
|
default: I(() => [
|
1140
|
-
l("div",
|
1141
|
-
(o(!0), i(C, null,
|
1140
|
+
l("div", hn, [
|
1141
|
+
(o(!0), i(C, null, D(n.customList, (h, u) => (o(), i("button", {
|
1142
1142
|
onClick: (_) => {
|
1143
1143
|
var x;
|
1144
1144
|
t.$emit("update:filterCustom", h == null ? void 0 : h.name), (x = t.$refs) == null || x.popover.togglePopover();
|
@@ -1146,12 +1146,12 @@ function mn(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
|
-
l("span",
|
1149
|
+
l("span", mn, $(h == null ? void 0 : h.label), 1),
|
1150
1150
|
n.filterCustom === (h == null ? void 0 : h.name) ? (o(), k(f, {
|
1151
1151
|
key: 0,
|
1152
1152
|
class: "ml-auto size-3 shrink-0"
|
1153
1153
|
})) : v("", !0)
|
1154
|
-
], 10,
|
1154
|
+
], 10, fn))), 128)),
|
1155
1155
|
l("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) => {
|
@@ -1164,7 +1164,7 @@ function mn(t, e, n, a, s, r) {
|
|
1164
1164
|
_: 1
|
1165
1165
|
}, 512);
|
1166
1166
|
}
|
1167
|
-
const
|
1167
|
+
const xn = /* @__PURE__ */ T(pn, [["render", gn]]), yn = { class: "flex items-center gap-x-2" }, kn = {
|
1168
1168
|
__name: "admin-table-custom-buttons",
|
1169
1169
|
props: {
|
1170
1170
|
slots: Object
|
@@ -1174,35 +1174,35 @@ const gn = /* @__PURE__ */ $(cn, [["render", mn]]), xn = { class: "flex items-ce
|
|
1174
1174
|
const { asyncTemplateSlot: e } = (_ = (u = (h = (d = (f = ze()) == null ? void 0 : f.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, r = () => {
|
1175
1175
|
var x, m, w, y, A;
|
1176
1176
|
if ((x = s.slots) != null && x.panelLeft || (a.value = "div"), (w = (m = s.slots) == null ? void 0 : m.panelLeft) != null && w.includes("<")) {
|
1177
|
-
const
|
1177
|
+
const V = e("PanelLeft", (y = s.slots) == null ? void 0 : y.panelLeft, [
|
1178
1178
|
"name"
|
1179
1179
|
]);
|
1180
|
-
a.value =
|
1180
|
+
a.value = V;
|
1181
1181
|
} else
|
1182
1182
|
a.value = (A = s.slots) == null ? void 0 : A.panelLeft;
|
1183
1183
|
}, c = () => {
|
1184
1184
|
var x, m, w, y, A;
|
1185
1185
|
if ((x = s.slots) != null && x.panelRight || (n.value = "div"), (w = (m = s.slots) == null ? void 0 : m.panelRight) != null && w.includes("<")) {
|
1186
|
-
const
|
1186
|
+
const V = e("PanelRight", (y = s.slots) == null ? void 0 : y.panelRight, [
|
1187
1187
|
"name"
|
1188
1188
|
]);
|
1189
|
-
n.value =
|
1189
|
+
n.value = V;
|
1190
1190
|
} else
|
1191
1191
|
n.value = (A = s.slots) == null ? void 0 : A.panelRight;
|
1192
1192
|
};
|
1193
|
-
return r(), c(), (x, m) => (o(), i("div",
|
1193
|
+
return r(), c(), (x, m) => (o(), i("div", yn, [
|
1194
1194
|
(o(), k(O(a.value))),
|
1195
1195
|
(o(), k(O(n.value)))
|
1196
1196
|
]));
|
1197
1197
|
}
|
1198
|
-
},
|
1198
|
+
}, vn = (t, e = 300) => {
|
1199
1199
|
let n;
|
1200
1200
|
return function(...a) {
|
1201
1201
|
clearTimeout(n), n = setTimeout(() => {
|
1202
1202
|
t.apply(this, a);
|
1203
1203
|
}, e);
|
1204
1204
|
};
|
1205
|
-
},
|
1205
|
+
}, _n = {
|
1206
1206
|
__name: "admin-custom-button-add",
|
1207
1207
|
props: {
|
1208
1208
|
slots: Object
|
@@ -1224,13 +1224,13 @@ const gn = /* @__PURE__ */ $(cn, [["render", mn]]), xn = { class: "flex items-ce
|
|
1224
1224
|
IconPlus: B
|
1225
1225
|
})) : v("", !0);
|
1226
1226
|
}
|
1227
|
-
},
|
1227
|
+
}, wn = {
|
1228
1228
|
key: 0,
|
1229
1229
|
class: "px-1 py-3 text-gray-800 font-[500]"
|
1230
|
-
},
|
1230
|
+
}, Cn = {
|
1231
1231
|
key: 1,
|
1232
1232
|
class: "px-1 py-3 text-gray-800 font-[700]"
|
1233
|
-
},
|
1233
|
+
}, $n = {
|
1234
1234
|
__name: "admin-table-totals-list",
|
1235
1235
|
props: {
|
1236
1236
|
columns: { type: Array, default: () => [] },
|
@@ -1239,42 +1239,22 @@ const gn = /* @__PURE__ */ $(cn, [["render", mn]]), xn = { class: "flex items-ce
|
|
1239
1239
|
},
|
1240
1240
|
setup(t) {
|
1241
1241
|
return (e, n) => (o(), i("tr", null, [
|
1242
|
-
(o(!0), i(C, null,
|
1242
|
+
(o(!0), i(C, null, D(t.columns, (a) => {
|
1243
1243
|
var s;
|
1244
1244
|
return o(), i(C, {
|
1245
1245
|
key: a == null ? void 0 : a.name
|
1246
1246
|
}, [
|
1247
|
-
(s = t.agg) != null && s[a == null ? void 0 : a.name] ? (o(), i("td",
|
1247
|
+
(s = t.agg) != null && s[a == null ? void 0 : a.name] ? (o(), i("td", wn, [
|
1248
1248
|
g(N, {
|
1249
1249
|
column: a,
|
1250
1250
|
row: t.agg
|
1251
1251
|
}, null, 8, ["column", "row"])
|
1252
|
-
])) : (o(), i("td",
|
1252
|
+
])) : (o(), i("td", Cn))
|
1253
1253
|
], 64);
|
1254
1254
|
}), 128))
|
1255
1255
|
]));
|
1256
1256
|
}
|
1257
|
-
},
|
1258
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1259
|
-
viewBox: "0 0 24 24",
|
1260
|
-
fill: "none",
|
1261
|
-
stroke: "currentColor",
|
1262
|
-
"stroke-width": "2",
|
1263
|
-
"stroke-linecap": "round",
|
1264
|
-
"stroke-linejoin": "round",
|
1265
|
-
class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
|
1266
|
-
};
|
1267
|
-
function An(t, e, n, a, s, r) {
|
1268
|
-
return o(), i("svg", Tn, e[0] || (e[0] = [
|
1269
|
-
l("path", {
|
1270
|
-
stroke: "none",
|
1271
|
-
d: "M0 0h24v24H0z",
|
1272
|
-
fill: "none"
|
1273
|
-
}, null, -1),
|
1274
|
-
l("path", { d: "M6 9l6 6l6 -6" }, null, -1)
|
1275
|
-
]));
|
1276
|
-
}
|
1277
|
-
const Sn = /* @__PURE__ */ $($n, [["render", An]]), In = {}, Dn = {
|
1257
|
+
}, Tn = {}, An = {
|
1278
1258
|
xmlns: "http://www.w3.org/2000/svg",
|
1279
1259
|
viewBox: "0 0 24 24",
|
1280
1260
|
fill: "none",
|
@@ -1284,8 +1264,8 @@ const Sn = /* @__PURE__ */ $($n, [["render", An]]), In = {}, Dn = {
|
|
1284
1264
|
"stroke-linejoin": "round",
|
1285
1265
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1286
1266
|
};
|
1287
|
-
function
|
1288
|
-
return o(), i("svg",
|
1267
|
+
function Sn(t, e, n, a, s, r) {
|
1268
|
+
return o(), i("svg", An, e[0] || (e[0] = [
|
1289
1269
|
l("path", {
|
1290
1270
|
stroke: "none",
|
1291
1271
|
d: "M0 0h24v24H0z",
|
@@ -1294,8 +1274,8 @@ function Vn(t, e, n, a, s, r) {
|
|
1294
1274
|
l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1295
1275
|
]));
|
1296
1276
|
}
|
1297
|
-
const
|
1298
|
-
components: { IconChevronDown:
|
1277
|
+
const In = /* @__PURE__ */ T(Tn, [["render", Sn]]), Vn = pt({
|
1278
|
+
components: { IconChevronDown: et, IconCheck: In },
|
1299
1279
|
props: {
|
1300
1280
|
total: { type: Number, default: () => 0 },
|
1301
1281
|
pageSize: { type: Number, default: () => 20 },
|
@@ -1377,13 +1357,13 @@ const Pn = /* @__PURE__ */ $(In, [["render", Vn]]), jn = ct({
|
|
1377
1357
|
t < 1 || t > this.pagesCount || this.page === t || (this.page = t, this.$emit("pageChange", this.page, this.pageSizeLocal), this.updatePages(t));
|
1378
1358
|
}
|
1379
1359
|
}
|
1380
|
-
}),
|
1360
|
+
}), Dn = { class: "flex items-center w-full" }, Pn = { class: "flex items-center mx-[8px]" }, jn = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, Fn = {
|
1381
1361
|
key: 0,
|
1382
1362
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1383
|
-
},
|
1384
|
-
function
|
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, r) {
|
1385
1365
|
const c = b("IconChevronDown"), f = b("IconCheck");
|
1386
|
-
return o(), i("nav",
|
1366
|
+
return o(), i("nav", Dn, [
|
1387
1367
|
l("button", {
|
1388
1368
|
type: "button",
|
1389
1369
|
onClick: e[0] || (e[0] = (...d) => t.handleClickPrev && t.handleClickPrev(...d)),
|
@@ -1395,15 +1375,15 @@ function Nn(t, e, n, a, s, r) {
|
|
1395
1375
|
class: "rotate-90"
|
1396
1376
|
})
|
1397
1377
|
], 2),
|
1398
|
-
l("div",
|
1378
|
+
l("div", Pn, [
|
1399
1379
|
l("span", {
|
1400
1380
|
ref: "currentPage",
|
1401
1381
|
contenteditable: "true",
|
1402
1382
|
onBlur: e[1] || (e[1] = (d) => t.handleSetPage(d.target.innerText)),
|
1403
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"
|
1404
|
-
},
|
1384
|
+
}, $(t.page), 545),
|
1405
1385
|
e[4] || (e[4] = l("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1406
|
-
l("span",
|
1386
|
+
l("span", jn, $(t.pagesCount), 1)
|
1407
1387
|
]),
|
1408
1388
|
l("button", {
|
1409
1389
|
type: "button",
|
@@ -1416,22 +1396,22 @@ function Nn(t, e, n, a, s, r) {
|
|
1416
1396
|
class: "-rotate-90"
|
1417
1397
|
})
|
1418
1398
|
], 2),
|
1419
|
-
t.pageSizes.length ? (o(), i("div",
|
1420
|
-
l("div",
|
1421
|
-
|
1422
|
-
(o(!0), i(C, null,
|
1399
|
+
t.pageSizes.length ? (o(), i("div", Fn, [
|
1400
|
+
l("div", Ln, [
|
1401
|
+
M(l("div", Mn, [
|
1402
|
+
(o(!0), i(C, null, D(t.pageSizes, (d) => (o(), i("button", {
|
1423
1403
|
type: "button",
|
1424
1404
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1425
1405
|
onClick: (h) => t.pageSizeLocal = d
|
1426
1406
|
}, [
|
1427
|
-
P(
|
1407
|
+
P($(d) + " ", 1),
|
1428
1408
|
d === t.pageSizeLocal ? (o(), k(f, {
|
1429
1409
|
key: 0,
|
1430
1410
|
width: "14",
|
1431
1411
|
height: "14",
|
1432
1412
|
class: "text-blue-600"
|
1433
1413
|
})) : v("", !0)
|
1434
|
-
], 8,
|
1414
|
+
], 8, zn))), 256))
|
1435
1415
|
], 512), [
|
1436
1416
|
[U, t.isDropdownOpen]
|
1437
1417
|
]),
|
@@ -1441,7 +1421,7 @@ function Nn(t, e, n, a, s, r) {
|
|
1441
1421
|
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",
|
1442
1422
|
onClick: e[3] || (e[3] = (d) => t.isDropdownOpen = !t.isDropdownOpen)
|
1443
1423
|
}, [
|
1444
|
-
P(
|
1424
|
+
P($(t.pageSizeLocal) + " ", 1),
|
1445
1425
|
g(c, {
|
1446
1426
|
height: "16",
|
1447
1427
|
width: "16"
|
@@ -1451,27 +1431,27 @@ function Nn(t, e, n, a, s, r) {
|
|
1451
1431
|
])) : v("", !0)
|
1452
1432
|
]);
|
1453
1433
|
}
|
1454
|
-
const
|
1434
|
+
const On = /* @__PURE__ */ T(Vn, [["render", qn]]), Bn = {
|
1455
1435
|
props: { table: String, title: String },
|
1456
1436
|
components: {
|
1457
|
-
AdminTableControl:
|
1458
|
-
AdminTableExport:
|
1459
|
-
AdminTablePrint:
|
1460
|
-
AdminTableColumnsHidden:
|
1461
|
-
AdminTableColumn:
|
1462
|
-
AdminNodata:
|
1437
|
+
AdminTableControl: St,
|
1438
|
+
AdminTableExport: Qt,
|
1439
|
+
AdminTablePrint: is,
|
1440
|
+
AdminTableColumnsHidden: As,
|
1441
|
+
AdminTableColumn: xt,
|
1442
|
+
AdminNodata: tt,
|
1463
1443
|
IconPlus: B,
|
1464
|
-
IconSearch:
|
1465
|
-
AdminTableCardInfo:
|
1466
|
-
IconOpenCard:
|
1444
|
+
IconSearch: st,
|
1445
|
+
AdminTableCardInfo: Qs,
|
1446
|
+
IconOpenCard: nt,
|
1467
1447
|
AdminComponentIs: N,
|
1468
|
-
AdminTableFilters:
|
1469
|
-
AdminTableTabs:
|
1470
|
-
AdminTableCustomFilters:
|
1471
|
-
AdminTableCustomButtons:
|
1472
|
-
AdminCustomButtonAdd:
|
1473
|
-
AdminTableTotalsList:
|
1474
|
-
AdminTablePagination:
|
1448
|
+
AdminTableFilters: tn,
|
1449
|
+
AdminTableTabs: on,
|
1450
|
+
AdminTableCustomFilters: xn,
|
1451
|
+
AdminTableCustomButtons: kn,
|
1452
|
+
AdminCustomButtonAdd: _n,
|
1453
|
+
AdminTableTotalsList: $n,
|
1454
|
+
AdminTablePagination: On
|
1475
1455
|
},
|
1476
1456
|
data() {
|
1477
1457
|
return {
|
@@ -1530,7 +1510,7 @@ const Un = /* @__PURE__ */ $(jn, [["render", Nn]]), En = {
|
|
1530
1510
|
this.tableData = null, await this.getTableData();
|
1531
1511
|
},
|
1532
1512
|
searchValue: {
|
1533
|
-
handler:
|
1513
|
+
handler: vn(async function(t) {
|
1534
1514
|
var e;
|
1535
1515
|
await this.getTableData(), this.$router.push({
|
1536
1516
|
...this.$route,
|
@@ -1579,8 +1559,8 @@ const Un = /* @__PURE__ */ $(jn, [["render", Nn]]), En = {
|
|
1579
1559
|
},
|
1580
1560
|
methods: {
|
1581
1561
|
async checkUrlMounted() {
|
1582
|
-
var t, e, n, a, s, r, c, f, d, h, u, _, x, m, w, y, A,
|
1583
|
-
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((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : c.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((d = (f = this.filters) == null ? void 0 : f.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 = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : w.search) || "", this.visibleColumns = ((
|
1562
|
+
var t, e, n, a, s, r, c, f, d, h, u, _, x, m, 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((r = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : r.filter)) == null ? void 0 : c.replaceAll("+", " ")) || null, this.filters && (this.onFilters = ((d = (f = this.filters) == null ? void 0 : f.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 = (m = this.$route) == null ? void 0 : m.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);
|
1584
1564
|
},
|
1585
1565
|
rowWidth(t) {
|
1586
1566
|
var n, a;
|
@@ -1668,25 +1648,25 @@ const Un = /* @__PURE__ */ $(jn, [["render", Nn]]), En = {
|
|
1668
1648
|
];
|
1669
1649
|
}
|
1670
1650
|
}
|
1671
|
-
},
|
1651
|
+
}, Nn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Un = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, En = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, Hn = {
|
1672
1652
|
style: { height: "calc(100vh - 155px)" },
|
1673
1653
|
class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1674
|
-
},
|
1654
|
+
}, Wn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, Rn = { class: "flex" }, Jn = { class: "flex gap-[6px] ml-auto" }, Gn = { class: "inline-block w-full align-middle" }, Kn = {
|
1675
1655
|
key: 0,
|
1676
1656
|
class: "relative min-w-full text-[13px] divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1677
|
-
},
|
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 = {
|
1678
1658
|
key: 0,
|
1679
1659
|
class: "w-[70px] sticky right-0 top-0"
|
1680
|
-
},
|
1660
|
+
}, Zn = { class: "divide-y divide-gray-200 z-[1] relative" }, el = ["onClick"], tl = ["onClick"], sl = { class: "p-[10px] flex justify-start items-center w-full" }, nl = { class: "w-[200px] md:inline-flex hidden" }, ll = { class: "text-sm text-gray-600 dark:text-neutral-400" }, rl = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, ol = { key: 0 }, al = {
|
1681
1661
|
key: 0,
|
1682
1662
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1683
1663
|
};
|
1684
|
-
function
|
1664
|
+
function il(t, e, n, a, s, r) {
|
1685
1665
|
var W, R, J, G, K, Q, X, Y, Z, ee, te, se, ne, le, re, oe, ae, ie, de, ue, ce, pe, be, he, fe, me, ge, xe, ye, ke;
|
1686
|
-
const c = b("AdminCustomButtonAdd"), f = b("IconPlus"), d = b("router-link"), h = b("AdminTableTabs"), u = b("IconSearch"), _ = b("VsText"), x = b("AdminTableCustomButtons"), m = b("AdminTableCustomFilters"), w = b("AdminTableColumnsHidden"), y = b("AdminTablePrint"), A = b("AdminTableExport"),
|
1687
|
-
return o(), i("div",
|
1688
|
-
l("div",
|
1689
|
-
l("h2",
|
1666
|
+
const c = b("AdminCustomButtonAdd"), f = b("IconPlus"), d = b("router-link"), h = b("AdminTableTabs"), u = b("IconSearch"), _ = b("VsText"), x = b("AdminTableCustomButtons"), m = 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
|
+
return o(), i("div", Nn, [
|
1668
|
+
l("div", Un, [
|
1669
|
+
l("h2", En, $(n.title), 1),
|
1690
1670
|
r.isForm ? (o(), i(C, { key: 0 }, [
|
1691
1671
|
(R = (W = s.tableData) == null ? void 0 : W.slots) != null && R.addButton ? (o(), k(c, {
|
1692
1672
|
key: 0,
|
@@ -1707,15 +1687,15 @@ function cl(t, e, n, a, s, r) {
|
|
1707
1687
|
}, 8, ["to"]))
|
1708
1688
|
], 64)) : v("", !0)
|
1709
1689
|
]),
|
1710
|
-
l("div",
|
1711
|
-
l("div",
|
1690
|
+
l("div", Hn, [
|
1691
|
+
l("div", Wn, [
|
1712
1692
|
(X = (Q = s.tableData) == null ? void 0 : Q.filterState) != null && X.length ? (o(), k(h, {
|
1713
1693
|
key: 0,
|
1714
1694
|
tabsList: (Y = s.tableData) == null ? void 0 : Y.filterState,
|
1715
1695
|
filterState: s.filterState,
|
1716
1696
|
"onUpdate:filterState": e[0] || (e[0] = (p) => s.filterState = p)
|
1717
1697
|
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
1718
|
-
l("div",
|
1698
|
+
l("div", Rn, [
|
1719
1699
|
l("div", {
|
1720
1700
|
class: S([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1721
1701
|
}, [
|
@@ -1734,7 +1714,7 @@ function cl(t, e, n, a, s, r) {
|
|
1734
1714
|
clearable: !0,
|
1735
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"
|
1736
1716
|
}, null, 8, ["modelValue"]),
|
1737
|
-
l("div",
|
1717
|
+
l("div", Jn, [
|
1738
1718
|
(Z = s.tableData) != null && Z.slots ? (o(), k(x, {
|
1739
1719
|
key: 0,
|
1740
1720
|
slots: (ee = s.tableData) == null ? void 0 : ee.slots
|
@@ -1762,7 +1742,7 @@ function cl(t, e, n, a, s, r) {
|
|
1762
1742
|
"filter-custom": s.filterCustom,
|
1763
1743
|
filters: s.filters
|
1764
1744
|
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : v("", !0),
|
1765
|
-
(ue = s.filterScheme) != null && ue.length ? (o(), k(
|
1745
|
+
(ue = s.filterScheme) != null && ue.length ? (o(), k(V, {
|
1766
1746
|
key: 3,
|
1767
1747
|
scheme: s.filterScheme,
|
1768
1748
|
onFilters: s.onFilters,
|
@@ -1773,7 +1753,7 @@ function cl(t, e, n, a, s, r) {
|
|
1773
1753
|
onClick: e[4] || (e[4] = (...p) => r.toggleCardInfo && r.toggleCardInfo(...p)),
|
1774
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"
|
1775
1755
|
}, [
|
1776
|
-
g(
|
1756
|
+
g(L, {
|
1777
1757
|
class: S({ "rotate-180 duration-300": !s.isVisibleCardInfo })
|
1778
1758
|
}, null, 8, ["class"])
|
1779
1759
|
])
|
@@ -1788,11 +1768,11 @@ function cl(t, e, n, a, s, r) {
|
|
1788
1768
|
}),
|
1789
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"
|
1790
1770
|
}, [
|
1791
|
-
l("div",
|
1792
|
-
r.isNoData ? (o(), k(Ue, { key: 1 })) : (o(), i("table",
|
1793
|
-
l("thead",
|
1794
|
-
l("tr",
|
1795
|
-
(o(!0), i(C, null,
|
1771
|
+
l("div", Gn, [
|
1772
|
+
r.isNoData ? (o(), k(Ue, { key: 1 })) : (o(), i("table", Kn, [
|
1773
|
+
l("thead", Qn, [
|
1774
|
+
l("tr", Xn, [
|
1775
|
+
(o(!0), i(C, null, D(r.columns, (p) => (o(), k(E, {
|
1796
1776
|
key: p.name,
|
1797
1777
|
style: Fe({
|
1798
1778
|
width: r.rowWidth(p == null ? void 0 : p.name),
|
@@ -1805,12 +1785,12 @@ function cl(t, e, n, a, s, r) {
|
|
1805
1785
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1806
1786
|
(he = (be = r.getActions) == null ? void 0 : be.filter(
|
1807
1787
|
(p) => p !== "add" && p !== "view"
|
1808
|
-
)) != null && he.length ? (o(), i("th",
|
1788
|
+
)) != null && he.length ? (o(), i("th", Yn)) : v("", !0)
|
1809
1789
|
])
|
1810
1790
|
]),
|
1811
|
-
l("tbody",
|
1812
|
-
(o(!0), i(C, null,
|
1813
|
-
var ve, _e, we, Ce, $e, Te, Ae, Se, Ie,
|
1791
|
+
l("tbody", Zn, [
|
1792
|
+
(o(!0), i(C, null, D((fe = s.tableData) == null ? void 0 : fe.rows, (p, We) => {
|
1793
|
+
var ve, _e, we, Ce, $e, Te, Ae, Se, Ie, Ve, De, Pe;
|
1814
1794
|
return o(), i("tr", {
|
1815
1795
|
key: (p == null ? void 0 : p.id) || We,
|
1816
1796
|
class: S({
|
@@ -1837,10 +1817,10 @@ function cl(t, e, n, a, s, r) {
|
|
1837
1817
|
table: n.table,
|
1838
1818
|
onUpdateTable: r.getTableData
|
1839
1819
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1840
|
-
], 10,
|
1820
|
+
], 10, el)
|
1841
1821
|
], 2),
|
1842
|
-
(o(!0), i(C, null,
|
1843
|
-
onClick: (
|
1822
|
+
(o(!0), i(C, null, D((Te = r.columns) == null ? void 0 : Te.slice(1), (j) => (o(), i("td", {
|
1823
|
+
onClick: (bl) => {
|
1844
1824
|
r.changeActiveCardInfo(p == null ? void 0 : p.id), r.pushToLinkCard(j, p);
|
1845
1825
|
},
|
1846
1826
|
class: S(["px-1 py-3 text-gray-600 pe-3", r.getCustomStyles(j)]),
|
@@ -1852,14 +1832,14 @@ function cl(t, e, n, a, s, r) {
|
|
1852
1832
|
table: n.table,
|
1853
1833
|
onUpdateTable: r.getTableData
|
1854
1834
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1855
|
-
], 10,
|
1835
|
+
], 10, tl))), 128)),
|
1856
1836
|
(Se = (Ae = r.getActions) == null ? void 0 : Ae.filter(
|
1857
1837
|
(j) => j !== "add" && j !== "view"
|
1858
1838
|
)) != null && Se.length ? (o(), i("td", {
|
1859
1839
|
key: 0,
|
1860
1840
|
class: S(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1861
|
-
"bg-gray-50": ((
|
1862
|
-
"bg-white": ((Pe = (
|
1841
|
+
"bg-gray-50": ((Ve = (Ie = t.$route) == null ? void 0 : Ie.query) == null ? void 0 : Ve.card) === (p == null ? void 0 : p.id),
|
1842
|
+
"bg-white": ((Pe = (De = t.$route) == null ? void 0 : De.query) == null ? void 0 : Pe.card) !== (p == null ? void 0 : p.id)
|
1863
1843
|
}])
|
1864
1844
|
}, [
|
1865
1845
|
g(Be, {
|
@@ -1881,14 +1861,14 @@ function cl(t, e, n, a, s, r) {
|
|
1881
1861
|
])
|
1882
1862
|
], 4)
|
1883
1863
|
], 2),
|
1884
|
-
l("div",
|
1885
|
-
l("div",
|
1886
|
-
l("p",
|
1887
|
-
l("span",
|
1888
|
-
P(
|
1889
|
-
s.filters || s.searchValue ? (o(), i("span",
|
1864
|
+
l("div", sl, [
|
1865
|
+
l("div", nl, [
|
1866
|
+
l("p", ll, [
|
1867
|
+
l("span", rl, [
|
1868
|
+
P($(s.filters || s.searchValue ? "Відображено" : "Об'єктів") + " " + $(((ge = s.tableData) == null ? void 0 : ge.count) || "0 ") + " ", 1),
|
1869
|
+
s.filters || s.searchValue ? (o(), i("span", ol, " з")) : v("", !0)
|
1890
1870
|
]),
|
1891
|
-
s.filters || s.searchValue ? (o(), i("span",
|
1871
|
+
s.filters || s.searchValue ? (o(), i("span", al, $(" " + ((xe = s.tableData) == null ? void 0 : xe.filtered) || 0), 1)) : v("", !0)
|
1892
1872
|
])
|
1893
1873
|
]),
|
1894
1874
|
Math.ceil(((ye = s.tableData) == null ? void 0 : ye.filtered) / s.limit) > 1 ? (o(), k(Ee, {
|
@@ -1921,8 +1901,8 @@ function cl(t, e, n, a, s, r) {
|
|
1921
1901
|
])
|
1922
1902
|
]);
|
1923
1903
|
}
|
1924
|
-
const
|
1925
|
-
components: { AdminTable:
|
1904
|
+
const dl = /* @__PURE__ */ T(Bn, [["render", il], ["__scopeId", "data-v-87a0d788"]]), ul = {
|
1905
|
+
components: { AdminTable: dl },
|
1926
1906
|
data() {
|
1927
1907
|
return {
|
1928
1908
|
table: !1,
|
@@ -1940,7 +1920,7 @@ const pl = /* @__PURE__ */ $(En, [["render", cl], ["__scopeId", "data-v-87a0d788
|
|
1940
1920
|
},
|
1941
1921
|
title(t) {
|
1942
1922
|
var e;
|
1943
|
-
t && (document.title = (((e =
|
1923
|
+
t && (document.title = (((e = lt.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1944
1924
|
}
|
1945
1925
|
},
|
1946
1926
|
async mounted() {
|
@@ -1977,8 +1957,8 @@ const pl = /* @__PURE__ */ $(En, [["render", cl], ["__scopeId", "data-v-87a0d788
|
|
1977
1957
|
}
|
1978
1958
|
}
|
1979
1959
|
}
|
1980
|
-
},
|
1981
|
-
function
|
1960
|
+
}, cl = ["innerHTML"];
|
1961
|
+
function pl(t, e, n, a, s, r) {
|
1982
1962
|
const c = b("AdminTable");
|
1983
1963
|
return s.table ? (o(), k(c, {
|
1984
1964
|
key: 0,
|
@@ -1989,9 +1969,9 @@ function fl(t, e, n, a, s, r) {
|
|
1989
1969
|
class: "w-full bg-gray-50",
|
1990
1970
|
style: { height: "calc(100vh - 120px)" },
|
1991
1971
|
innerHTML: s.interface
|
1992
|
-
}, null, 8,
|
1972
|
+
}, null, 8, cl));
|
1993
1973
|
}
|
1994
|
-
const
|
1974
|
+
const ml = /* @__PURE__ */ T(ul, [["render", pl]]);
|
1995
1975
|
export {
|
1996
|
-
|
1976
|
+
ml as default
|
1997
1977
|
};
|