@opengis/admin 0.3.110 → 0.3.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -97
- package/config.js +4 -4
- package/dist/{add-page-DELwNBs9.js → add-page-HV2OuTP5.js} +1 -1
- package/dist/{admin-interface-ChLQ5JCd.js → admin-interface-CE8pRY0Y.js} +499 -660
- package/dist/{admin-view-DnD5gBsl.js → admin-view-CQeFRO-H.js} +3 -3
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +54 -54
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-Cb3j5eXY.js → card-view-Cs1UdOX4.js} +1 -1
- package/dist/{edit-page-DGjs4jeh.js → edit-page-uoPbSNAg.js} +1 -1
- package/dist/{import-file-DIAYCDNH.js → import-file-4fPjufhm.js} +11952 -11752
- package/dist/{profile-page-CaQqFoqe.js → profile-page-DcpVHW8y.js} +1 -1
- package/dist/style.css +1 -1
- package/module/settings/card/admin.accounts.table/index.yml +7 -7
- package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
- package/module/settings/card/admin.accounts.table/users.hbs +13 -13
- package/module/settings/card/admin.routes.table/groups.hbs +11 -11
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- package/module/settings/cls/core.actions.json +17 -17
- package/module/settings/cls/core.scope.json +13 -13
- package/module/settings/cls/properties.site_status.json +13 -13
- package/module/settings/cls/properties.widget_status.json +13 -13
- package/module/settings/cls/yes_no.json +11 -11
- package/module/settings/form/admin.accounts.form.json +13 -13
- package/module/settings/form/admin.properties.form.json +15 -15
- package/module/settings/form/admin.roles.form.json +21 -21
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles_card.form.json +13 -13
- package/module/settings/interface/admin.properties.json +4 -4
- package/module/settings/interface/admin.roles.json +4 -4
- package/module/settings/interface/admin.routes.json +4 -4
- package/module/settings/interface/admin.users.json +4 -4
- package/module/settings/select/core.routes.sql +1 -1
- package/module/settings/select/core.user_mentioned.sql +1 -1
- package/module/settings/select/core.user_uid.sql +1 -1
- package/module/settings/table/admin.properties.table.json +39 -39
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/package.json +1 -1
- package/server/helpers/core/coalesce.js +7 -7
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/list/buttonHelper.js +21 -21
- package/server/helpers/list/utils/button.js +5 -5
- package/server/helpers/temp/contentList.js +58 -58
- package/server/helpers/temp/ifCond.js +101 -101
- package/server/helpers/utils/button.js +5 -5
- package/server/helpers/utils/buttonDownload.js +1 -1
- package/server/helpers/utils/buttonPreview.js +1 -1
- package/server/helpers/utils/mdToHTML.js +17 -17
- package/server/plugins/access/index.mjs +6 -6
- package/server/plugins/adminHook.js +81 -81
- package/server/plugins/cron.js +10 -10
- package/server/plugins/docs.js +28 -28
- package/server/routes/access/controllers/access.group.js +29 -29
- package/server/routes/access/controllers/access.group.post.js +54 -54
- package/server/routes/access/index.mjs +11 -11
- package/server/routes/access/schema.mjs +67 -67
- package/server/routes/calendar/controllers/calendar.data.js +125 -125
- package/server/routes/calendar/index.mjs +7 -7
- package/server/routes/calendar/schema.js +21 -21
- package/server/routes/data/controllers/cardTabData.js +49 -49
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tokenInfo.js +9 -9
- package/server/routes/data/controllers/utils/assignTokens.js +30 -30
- package/server/routes/data/controllers/utils/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/notifications/controllers/readNotifications.js +18 -18
- package/server/routes/notifications/controllers/testEmail.js +35 -35
- package/server/routes/notifications/controllers/userNotifications.js +53 -53
- 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/properties/schema.js +10 -10
- package/server/routes/report/controllers/list.js +23 -23
- package/server/routes/report/index.mjs +9 -9
- package/server/routes/report/utils/formatValue.js +179 -179
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +44 -44
- package/server/routes/templates/schema.js +8 -8
- package/server/routes/user/controllers/user.cls.id.js +14 -14
- package/server/routes/user/controllers/user.cls.js +72 -72
- package/server/routes/user/controllers/user.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- package/server/routes/util/controllers/code.generator.js +89 -89
- package/server/routes/widget/controllers/widget.del.js +80 -80
- package/server/routes/widget/controllers/widget.set.js +101 -101
- package/server/routes/widget/hook/onWidgetSet.js +12 -12
- package/server/routes/widget/index.mjs +20 -20
- package/server/routes/widget/schema.js +12 -12
- package/server/templates/cls/itree.recrzone_category.json +73 -73
- package/server/templates/cls/test.json +9 -9
- package/server/templates/form/admin.user_cls.data.form.json +49 -49
- package/server/templates/form/admin.user_group_rel.form.json +21 -21
- package/server/templates/form/form-user-pass.json +10 -10
- package/server/templates/form/form-user_group.json +39 -39
- package/server/templates/form/form-users.json +156 -156
- package/server/templates/form/user_group_access.form.json +22 -22
- package/server/templates/select/account_id.json +2 -2
- package/server/templates/table/gis.dataset.table.json +43 -43
- package/server/templates/table/management.user_group.table.json +112 -112
- package/server/templates/table/management.users.table.json +126 -126
- package/server/utils/addNotification.js +21 -21
- package/server/utils/sendNotification.js +89 -89
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as
|
3
|
-
const
|
1
|
+
import { _ as A, h as Ke, i as Je, j as Ge, g as q, I as Qe, s as R, k as J, A as G, V as Xe, l as Ye, m as Ze, n as et, o as tt, p as st, b as nt, q as lt, r as at, a as rt, t as ot, v as it, u as Ee } from "./import-file-4fPjufhm.js";
|
2
|
+
import { openBlock as r, createElementBlock as u, createTextVNode as L, toDisplayString as T, createElementVNode as a, normalizeClass as w, createCommentVNode as k, resolveComponent as p, Fragment as $, createVNode as x, withCtx as P, createBlock as y, renderList as V, withModifiers as ut, Transition as Q, withDirectives as X, renderSlot as dt, vShow as Y, Teleport as ct, getCurrentInstance as Ue, ref as H, resolveDynamicComponent as K, defineComponent as ht, withKeys as pt, normalizeStyle as W } from "vue";
|
3
|
+
const bt = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
currentSort: ""
|
@@ -61,27 +61,27 @@ const gt = {
|
|
61
61
|
return `${this.data.name}-${e}` === this.selectedSortParam;
|
62
62
|
}
|
63
63
|
}
|
64
|
-
},
|
64
|
+
}, ft = {
|
65
65
|
scope: "col",
|
66
66
|
class: "text-start",
|
67
67
|
ref: "column"
|
68
|
-
},
|
68
|
+
}, gt = { class: "w-[24px]" }, mt = {
|
69
69
|
key: 1,
|
70
70
|
class: "flex items-center px-1 py-3 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200"
|
71
71
|
};
|
72
|
-
function
|
73
|
-
return
|
74
|
-
l.getVisibleIcon ? (
|
72
|
+
function xt(e, t, n, o, s, l) {
|
73
|
+
return r(), u("th", ft, [
|
74
|
+
l.getVisibleIcon ? (r(), u("button", {
|
75
75
|
key: 0,
|
76
76
|
type: "button",
|
77
77
|
class: "flex items-center px-1 py-2 font-medium text-gray-800 text-start gap-x-1 dark:text-neutral-200",
|
78
|
-
onClick: t[0] || (t[0] = (
|
78
|
+
onClick: t[0] || (t[0] = (h) => l.handleClickSortBtn(s.currentSort))
|
79
79
|
}, [
|
80
|
-
|
81
|
-
|
82
|
-
s.currentSort ? (
|
80
|
+
L(T(l.label) + " ", 1),
|
81
|
+
a("span", gt, [
|
82
|
+
s.currentSort ? (r(), u("svg", {
|
83
83
|
key: 0,
|
84
|
-
class:
|
84
|
+
class: w(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
|
85
85
|
xmlns: "http://www.w3.org/2000/svg",
|
86
86
|
width: "24",
|
87
87
|
height: "24",
|
@@ -92,14 +92,14 @@ function kt(e, t, n, o, s, l) {
|
|
92
92
|
"stroke-linecap": "round",
|
93
93
|
"stroke-linejoin": "round"
|
94
94
|
}, t[1] || (t[1] = [
|
95
|
-
|
96
|
-
|
97
|
-
]), 2)) :
|
95
|
+
a("path", { d: "m5 12 7-7 7 7" }, null, -1),
|
96
|
+
a("path", { d: "M12 19V5" }, null, -1)
|
97
|
+
]), 2)) : k("", !0)
|
98
98
|
])
|
99
|
-
])) : (
|
99
|
+
])) : (r(), u("p", mt, T(l.label), 1))
|
100
100
|
], 512);
|
101
101
|
}
|
102
|
-
const
|
102
|
+
const yt = /* @__PURE__ */ A(bt, [["render", xt]]), vt = {}, kt = {
|
103
103
|
xmlns: "http://www.w3.org/2000/svg",
|
104
104
|
width: "24",
|
105
105
|
height: "24",
|
@@ -111,24 +111,24 @@ const vt = /* @__PURE__ */ C(gt, [["render", kt]]), _t = {}, Ct = {
|
|
111
111
|
"stroke-linejoin": "round",
|
112
112
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-link"
|
113
113
|
};
|
114
|
-
function
|
115
|
-
return
|
116
|
-
|
114
|
+
function _t(e, t) {
|
115
|
+
return r(), u("svg", kt, t[0] || (t[0] = [
|
116
|
+
a("path", {
|
117
117
|
stroke: "none",
|
118
118
|
d: "M0 0h24v24H0z",
|
119
119
|
fill: "none"
|
120
120
|
}, null, -1),
|
121
|
-
|
122
|
-
|
123
|
-
|
121
|
+
a("path", { d: "M9 15l6 -6" }, null, -1),
|
122
|
+
a("path", { d: "M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" }, null, -1),
|
123
|
+
a("path", { d: "M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" }, null, -1)
|
124
124
|
]));
|
125
125
|
}
|
126
|
-
const
|
126
|
+
const Ct = /* @__PURE__ */ A(vt, [["render", _t]]), wt = {
|
127
127
|
components: {
|
128
|
-
IconMore:
|
129
|
-
IconDelete:
|
130
|
-
IconEdit:
|
131
|
-
IconLink:
|
128
|
+
IconMore: Ke,
|
129
|
+
IconDelete: Je,
|
130
|
+
IconEdit: Ge,
|
131
|
+
IconLink: Ct
|
132
132
|
},
|
133
133
|
emits: ["updateTable"],
|
134
134
|
props: {
|
@@ -159,7 +159,7 @@ const $t = /* @__PURE__ */ C(_t, [["render", wt]]), St = {
|
|
159
159
|
async getData() {
|
160
160
|
var e;
|
161
161
|
try {
|
162
|
-
const { data: t } = await
|
162
|
+
const { data: t } = await q.get(
|
163
163
|
`/api/table/${this.table}/${(e = this.item) == null ? void 0 : e.id}`
|
164
164
|
);
|
165
165
|
this.formValue = t;
|
@@ -173,10 +173,10 @@ const $t = /* @__PURE__ */ C(_t, [["render", wt]]), St = {
|
|
173
173
|
async deleteElement() {
|
174
174
|
var e, t;
|
175
175
|
try {
|
176
|
-
const { data: n } = await
|
176
|
+
const { data: n } = await q.get(
|
177
177
|
`/api/table/${this.table}/${(e = this.item) == null ? void 0 : e.id}`
|
178
178
|
);
|
179
|
-
await
|
179
|
+
await q.delete(`/api/table/${n == null ? void 0 : n.token}`), await this.$notify({
|
180
180
|
title: "Успішно!",
|
181
181
|
message: "Об`єкт успішно видалeно",
|
182
182
|
type: "success"
|
@@ -207,85 +207,85 @@ const $t = /* @__PURE__ */ C(_t, [["render", wt]]), St = {
|
|
207
207
|
}), await this.$emit("update-table")) : e != null && e.href && this.$router.push((e == null ? void 0 : e.href) + ((o = this.item) == null ? void 0 : o.id));
|
208
208
|
}
|
209
209
|
}
|
210
|
-
},
|
210
|
+
}, $t = { class: "inline-flex" }, St = { 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" }, Tt = { class: "flex flex-col items-start" }, At = ["onClick"], It = { class: "text-gray-800" }, Dt = {
|
211
211
|
key: 1,
|
212
212
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
213
|
-
},
|
214
|
-
function
|
215
|
-
const
|
216
|
-
return
|
217
|
-
|
218
|
-
|
213
|
+
}, Pt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
214
|
+
function Vt(e, t, n, o, s, l) {
|
215
|
+
const h = p("IconMore"), g = p("IconEdit"), b = p("router-link"), f = p("IconLink"), d = p("IconDelete"), v = p("VsPopover"), m = p("VsConfirm");
|
216
|
+
return r(), u($, null, [
|
217
|
+
a("div", $t, [
|
218
|
+
x(v, {
|
219
219
|
trigger: "click",
|
220
220
|
placement: "bottom-left"
|
221
221
|
}, {
|
222
|
-
reference:
|
223
|
-
|
224
|
-
|
222
|
+
reference: P(() => [
|
223
|
+
a("button", St, [
|
224
|
+
x(h, {
|
225
225
|
height: "16",
|
226
226
|
width: "16"
|
227
227
|
})
|
228
228
|
])
|
229
229
|
]),
|
230
|
-
default:
|
231
|
-
var
|
230
|
+
default: P(() => {
|
231
|
+
var c, _, C, I, D;
|
232
232
|
return [
|
233
|
-
|
234
|
-
(
|
233
|
+
a("div", Tt, [
|
234
|
+
(c = n.actions) != null && c.includes("edit") && n.isForm ? (r(), y(b, {
|
235
235
|
key: 0,
|
236
|
-
to: `/edit?table=${(
|
236
|
+
to: `/edit?table=${(C = (_ = e.$route) == null ? void 0 : _.params) == null ? void 0 : C.catchAll}&id=${(I = n.item) == null ? void 0 : I.id}`,
|
237
237
|
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"
|
238
238
|
}, {
|
239
|
-
default:
|
240
|
-
|
241
|
-
t[4] || (t[4] =
|
239
|
+
default: P(() => [
|
240
|
+
x(g, { color: "#000" }),
|
241
|
+
t[4] || (t[4] = L(" Редагувати "))
|
242
242
|
]),
|
243
243
|
_: 1
|
244
|
-
}, 8, ["to"])) :
|
245
|
-
(
|
244
|
+
}, 8, ["to"])) : k("", !0),
|
245
|
+
(r(!0), u($, null, V(l.getCustomActions, (S, F) => (r(), u("button", {
|
246
246
|
key: F,
|
247
|
-
onClick: (
|
247
|
+
onClick: (z) => l.customButtonAction(S),
|
248
248
|
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"
|
249
249
|
}, [
|
250
|
-
|
250
|
+
S != null && S.href ? (r(), y(f, {
|
251
251
|
key: 0,
|
252
252
|
class: "size-3.5"
|
253
|
-
})) :
|
254
|
-
|
255
|
-
], 8,
|
256
|
-
n.isForm ? (
|
257
|
-
(D = n.actions) != null && D.includes("del") ? (
|
253
|
+
})) : k("", !0),
|
254
|
+
a("span", It, T(S == null ? void 0 : S.label), 1)
|
255
|
+
], 8, At))), 128)),
|
256
|
+
n.isForm ? (r(), u("div", Dt)) : k("", !0),
|
257
|
+
(D = n.actions) != null && D.includes("del") ? (r(), u("button", {
|
258
258
|
key: 2,
|
259
|
-
onClick: t[0] || (t[0] =
|
259
|
+
onClick: t[0] || (t[0] = ut((...S) => l.openConfirm && l.openConfirm(...S), ["stop"])),
|
260
260
|
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"
|
261
261
|
}, [
|
262
|
-
|
263
|
-
t[5] || (t[5] =
|
264
|
-
])) :
|
262
|
+
x(d),
|
263
|
+
t[5] || (t[5] = a("span", { class: "text-gray-800" }, "Видалити", -1))
|
264
|
+
])) : k("", !0)
|
265
265
|
])
|
266
266
|
];
|
267
267
|
}),
|
268
268
|
_: 1
|
269
269
|
})
|
270
270
|
]),
|
271
|
-
m
|
271
|
+
x(m, {
|
272
272
|
visible: s.isDeleteConfirm,
|
273
|
-
"onUpdate:visible": t[3] || (t[3] = (
|
273
|
+
"onUpdate:visible": t[3] || (t[3] = (c) => s.isDeleteConfirm = c),
|
274
274
|
size: "small",
|
275
275
|
title: "Ви впевнені?"
|
276
276
|
}, {
|
277
|
-
default:
|
278
|
-
t[6] || (t[6] =
|
279
|
-
|
280
|
-
|
277
|
+
default: P(() => [
|
278
|
+
t[6] || (t[6] = a("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
279
|
+
a("div", Pt, [
|
280
|
+
a("button", {
|
281
281
|
type: "button",
|
282
282
|
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",
|
283
|
-
onClick: t[1] || (t[1] = (
|
283
|
+
onClick: t[1] || (t[1] = (c) => s.isDeleteConfirm = !1)
|
284
284
|
}, " Скасувати "),
|
285
|
-
|
285
|
+
a("button", {
|
286
286
|
type: "button",
|
287
287
|
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",
|
288
|
-
onClick: t[2] || (t[2] = (...
|
288
|
+
onClick: t[2] || (t[2] = (...c) => l.deleteElement && l.deleteElement(...c))
|
289
289
|
}, " Так, я впевнена(ий) ")
|
290
290
|
])
|
291
291
|
]),
|
@@ -293,7 +293,7 @@ function jt(e, t, n, o, s, l) {
|
|
293
293
|
}, 8, ["visible"])
|
294
294
|
], 64);
|
295
295
|
}
|
296
|
-
const
|
296
|
+
const Ft = /* @__PURE__ */ A(wt, [["render", Vt]]), jt = {}, Lt = {
|
297
297
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
298
298
|
xmlns: "http://www.w3.org/2000/svg",
|
299
299
|
viewBox: "0 0 24 24",
|
@@ -303,15 +303,15 @@ const Lt = /* @__PURE__ */ C(St, [["render", jt]]), Mt = {}, zt = {
|
|
303
303
|
"stroke-linecap": "round",
|
304
304
|
"stroke-linejoin": "round"
|
305
305
|
};
|
306
|
-
function
|
307
|
-
return
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
306
|
+
function zt(e, t, n, o, s, l) {
|
307
|
+
return r(), u("svg", Lt, t[0] || (t[0] = [
|
308
|
+
a("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
309
|
+
a("path", { d: "M7 20V4" }, null, -1),
|
310
|
+
a("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
311
|
+
a("path", { d: "M17 4v16" }, null, -1)
|
312
312
|
]));
|
313
313
|
}
|
314
|
-
const
|
314
|
+
const qt = /* @__PURE__ */ A(jt, [["render", zt]]), Mt = {}, Bt = {
|
315
315
|
xmlns: "http://www.w3.org/2000/svg",
|
316
316
|
width: "24",
|
317
317
|
height: "24",
|
@@ -323,19 +323,19 @@ const Bt = /* @__PURE__ */ C(Mt, [["render", qt]]), Ot = {}, Nt = {
|
|
323
323
|
"stroke-linejoin": "round",
|
324
324
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
325
325
|
};
|
326
|
-
function
|
327
|
-
return
|
328
|
-
|
326
|
+
function Nt(e, t, n, o, s, l) {
|
327
|
+
return r(), u("svg", Bt, t[0] || (t[0] = [
|
328
|
+
a("path", {
|
329
329
|
stroke: "none",
|
330
330
|
d: "M0 0h24v24H0z",
|
331
331
|
fill: "none"
|
332
332
|
}, null, -1),
|
333
|
-
|
334
|
-
|
333
|
+
a("path", { d: "M5 7.2a2.2 2.2 0 0 1 2.2 -2.2h1a2.2 2.2 0 0 0 1.55 -.64l.7 -.7a2.2 2.2 0 0 1 3.12 0l.7 .7c.412 .41 .97 .64 1.55 .64h1a2.2 2.2 0 0 1 2.2 2.2v1c0 .58 .23 1.138 .64 1.55l.7 .7a2.2 2.2 0 0 1 0 3.12l-.7 .7a2.2 2.2 0 0 0 -.64 1.55v1a2.2 2.2 0 0 1 -2.2 2.2h-1a2.2 2.2 0 0 0 -1.55 .64l-.7 .7a2.2 2.2 0 0 1 -3.12 0l-.7 -.7a2.2 2.2 0 0 0 -1.55 -.64h-1a2.2 2.2 0 0 1 -2.2 -2.2v-1a2.2 2.2 0 0 0 -.64 -1.55l-.7 -.7a2.2 2.2 0 0 1 0 -3.12l.7 -.7a2.2 2.2 0 0 0 .64 -1.55v-1" }, null, -1),
|
334
|
+
a("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
335
335
|
]));
|
336
336
|
}
|
337
|
-
const
|
338
|
-
components: { IconExport:
|
337
|
+
const Ot = /* @__PURE__ */ A(Mt, [["render", Nt]]), Et = {
|
338
|
+
components: { IconExport: qt, IconChevronDown: Qe, IconSuccess: Ot },
|
339
339
|
props: {
|
340
340
|
table: String,
|
341
341
|
columns: Array,
|
@@ -370,7 +370,7 @@ const Ut = /* @__PURE__ */ C(Ot, [["render", Et]]), Ht = {
|
|
370
370
|
},
|
371
371
|
computed: {
|
372
372
|
color() {
|
373
|
-
return
|
373
|
+
return R.value.buttonColor || "blue";
|
374
374
|
}
|
375
375
|
},
|
376
376
|
methods: {
|
@@ -393,7 +393,7 @@ const Ut = /* @__PURE__ */ C(Ot, [["render", Et]]), Ht = {
|
|
393
393
|
return;
|
394
394
|
}
|
395
395
|
try {
|
396
|
-
const t = await
|
396
|
+
const t = await q.get("/api/export", {
|
397
397
|
params: {
|
398
398
|
table: this.table,
|
399
399
|
format: this.format,
|
@@ -406,15 +406,15 @@ const Ut = /* @__PURE__ */ C(Ot, [["render", Et]]), Ht = {
|
|
406
406
|
responseType: "blob"
|
407
407
|
}), n = await t.data.text(), o = n != null && n.includes(";") ? null : JSON == null ? void 0 : JSON.parse(n), s = new Blob([t.data], {
|
408
408
|
type: "application/octet-stream"
|
409
|
-
}), l = window.URL.createObjectURL(s),
|
410
|
-
if (
|
409
|
+
}), l = window.URL.createObjectURL(s), h = document.createElement("a");
|
410
|
+
if (h.href = l, h.setAttribute(
|
411
411
|
"download",
|
412
412
|
`${this.table.split(".")[0]}.${this.format}`
|
413
|
-
), document.body.appendChild(
|
413
|
+
), document.body.appendChild(h), typeof o == "string") {
|
414
414
|
this.exportTable();
|
415
415
|
return;
|
416
416
|
}
|
417
|
-
|
417
|
+
h.click(), document.body.removeChild(h), window.URL.revokeObjectURL(l), this.$notify({
|
418
418
|
type: "success",
|
419
419
|
title: "Експорт",
|
420
420
|
message: "Файл успішно експортовано!"
|
@@ -442,126 +442,126 @@ const Ut = /* @__PURE__ */ C(Ot, [["render", Et]]), Ht = {
|
|
442
442
|
this.cols = (t = (e = this.columns) == null ? void 0 : e.filter((n) => (n == null ? void 0 : n.hidden) !== !0)) == null ? void 0 : t.map((n) => n == null ? void 0 : n.name), this.activeAction = "choceVisible";
|
443
443
|
}
|
444
444
|
}
|
445
|
-
},
|
445
|
+
}, Ut = {
|
446
446
|
key: 0,
|
447
447
|
class: "flex flex-col items-center"
|
448
|
-
},
|
448
|
+
}, Rt = {
|
449
449
|
key: 1,
|
450
450
|
class: "p-4"
|
451
|
-
},
|
451
|
+
}, Wt = { 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: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Kt = ["onClick"], Jt = {
|
452
452
|
key: 0,
|
453
453
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
454
|
-
},
|
454
|
+
}, Gt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, 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" }, Xt = { class: "mt-2 space-y-2" }, Yt = ["id", "onChange"], Zt = ["for"], es = {
|
455
455
|
key: 0,
|
456
456
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
457
|
-
},
|
457
|
+
}, ts = {
|
458
458
|
key: 1,
|
459
459
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
460
460
|
};
|
461
|
-
function
|
462
|
-
const
|
463
|
-
return
|
464
|
-
|
461
|
+
function ss(e, t, n, o, s, l) {
|
462
|
+
const h = p("IconExport"), g = p("IconSuccess"), b = p("VsCheckbox"), f = p("VsDialog");
|
463
|
+
return r(), u($, null, [
|
464
|
+
a("button", {
|
465
465
|
onClick: t[0] || (t[0] = (d) => s.isOpen = !0),
|
466
466
|
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"
|
467
467
|
}, [
|
468
|
-
|
468
|
+
x(h, {
|
469
469
|
height: "16",
|
470
470
|
width: "16"
|
471
471
|
}),
|
472
|
-
t[7] || (t[7] =
|
472
|
+
t[7] || (t[7] = L(" Експорт "))
|
473
473
|
]),
|
474
|
-
|
474
|
+
x(f, {
|
475
475
|
visible: s.isOpen,
|
476
476
|
"onUpdate:visible": t[6] || (t[6] = (d) => s.isOpen = d),
|
477
477
|
title: "Експорт таблиці",
|
478
478
|
size: "small",
|
479
479
|
closeClickBack: !0
|
480
480
|
}, {
|
481
|
-
footer:
|
482
|
-
s.isSuccessTemplate ? (
|
483
|
-
|
481
|
+
footer: P(() => [
|
482
|
+
s.isSuccessTemplate ? (r(), u("div", es, [
|
483
|
+
a("button", {
|
484
484
|
type: "button",
|
485
485
|
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",
|
486
486
|
onClick: t[2] || (t[2] = (d) => s.isOpen = !1)
|
487
487
|
}, " Закрити "),
|
488
|
-
|
488
|
+
a("button", {
|
489
489
|
type: "button",
|
490
490
|
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",
|
491
491
|
onClick: t[3] || (t[3] = (d) => s.isSuccessTemplate = !1)
|
492
492
|
}, " Вигрузити ще ")
|
493
|
-
])) : (
|
494
|
-
|
493
|
+
])) : (r(), u("div", ts, [
|
494
|
+
a("button", {
|
495
495
|
type: "button",
|
496
496
|
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",
|
497
497
|
onClick: t[4] || (t[4] = (d) => s.isOpen = !1)
|
498
498
|
}, " Скасувати "),
|
499
|
-
|
499
|
+
a("button", {
|
500
500
|
type: "button",
|
501
|
-
class:
|
501
|
+
class: w(`inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-${l.color}-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-${l.color}-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-${l.color}-300 dark:focus:ring-${l.color}-500`),
|
502
502
|
onClick: t[5] || (t[5] = (...d) => l.exportTable && l.exportTable(...d))
|
503
503
|
}, " Завантажити таблицю ", 2)
|
504
504
|
]))
|
505
505
|
]),
|
506
|
-
default:
|
507
|
-
s.isSuccessTemplate ? (
|
508
|
-
|
506
|
+
default: P(() => [
|
507
|
+
s.isSuccessTemplate ? (r(), u("div", Ut, [
|
508
|
+
x(g, {
|
509
509
|
height: "100",
|
510
510
|
width: "100",
|
511
511
|
class: "text-green-200 mb-[20px]"
|
512
512
|
}),
|
513
|
-
t[8] || (t[8] =
|
514
|
-
])) : (
|
515
|
-
|
516
|
-
t[9] || (t[9] =
|
517
|
-
|
518
|
-
(
|
513
|
+
t[8] || (t[8] = a("h2", null, "Звіт сформовано і збережено", -1))
|
514
|
+
])) : (r(), u("div", Rt, [
|
515
|
+
a("div", Wt, [
|
516
|
+
t[9] || (t[9] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
517
|
+
a("div", Ht, [
|
518
|
+
(r(!0), u($, null, V(s.actions, (d) => (r(), u("button", {
|
519
519
|
key: d == null ? void 0 : d.name,
|
520
520
|
onClick: d == null ? void 0 : d.function,
|
521
521
|
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"
|
522
522
|
}, [
|
523
|
-
|
524
|
-
class:
|
523
|
+
a("span", {
|
524
|
+
class: w(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
|
525
525
|
}, [
|
526
|
-
(d == null ? void 0 : d.name) === s.activeAction ? (
|
526
|
+
(d == null ? void 0 : d.name) === s.activeAction ? (r(), u("span", Jt)) : k("", !0)
|
527
527
|
], 2),
|
528
|
-
|
529
|
-
], 8,
|
528
|
+
L(" " + T(d == null ? void 0 : d.label), 1)
|
529
|
+
], 8, Kt))), 128))
|
530
530
|
]),
|
531
|
-
|
532
|
-
(
|
531
|
+
a("div", Gt, [
|
532
|
+
(r(!0), u($, null, V(n.columns, (d, v) => (r(), u("div", {
|
533
533
|
class: "flex items-center",
|
534
|
-
key:
|
534
|
+
key: v,
|
535
535
|
style: { width: "calc((100% - 10px) / 2)" }
|
536
536
|
}, [
|
537
|
-
|
537
|
+
x(b, {
|
538
538
|
class: "[&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0",
|
539
539
|
modelValue: s.cols,
|
540
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
540
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => s.cols = m),
|
541
541
|
value: d == null ? void 0 : d.name,
|
542
542
|
label: d == null ? void 0 : d.ua
|
543
543
|
}, null, 8, ["modelValue", "value", "label"])
|
544
544
|
]))), 128))
|
545
545
|
])
|
546
546
|
]),
|
547
|
-
|
548
|
-
t[10] || (t[10] =
|
549
|
-
|
550
|
-
(
|
547
|
+
a("div", Qt, [
|
548
|
+
t[10] || (t[10] = a("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть формат таблиці: ", -1)),
|
549
|
+
a("div", Xt, [
|
550
|
+
(r(!0), u($, null, V(s.tableFormats, (d, v) => (r(), u("div", {
|
551
551
|
class: "flex items-center",
|
552
|
-
key:
|
552
|
+
key: v
|
553
553
|
}, [
|
554
|
-
|
554
|
+
a("input", {
|
555
555
|
type: "radio",
|
556
556
|
name: "hs-pro-duecmfm",
|
557
557
|
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",
|
558
558
|
id: d,
|
559
|
-
onChange: (
|
560
|
-
}, null, 40,
|
561
|
-
|
559
|
+
onChange: (m) => l.selectFormat(d)
|
560
|
+
}, null, 40, Yt),
|
561
|
+
a("label", {
|
562
562
|
for: d,
|
563
563
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
564
|
-
}, " Формат " + T(d), 9,
|
564
|
+
}, " Формат " + T(d), 9, Zt)
|
565
565
|
]))), 128))
|
566
566
|
])
|
567
567
|
])
|
@@ -571,168 +571,7 @@ function ls(e, t, n, o, s, l) {
|
|
571
571
|
}, 8, ["visible"])
|
572
572
|
], 64);
|
573
573
|
}
|
574
|
-
const
|
575
|
-
xmlns: "http://www.w3.org/2000/svg",
|
576
|
-
viewBox: "0 0 24 24",
|
577
|
-
fill: "none",
|
578
|
-
stroke: "currentColor",
|
579
|
-
"stroke-width": "2",
|
580
|
-
"stroke-linecap": "round",
|
581
|
-
"stroke-linejoin": "round",
|
582
|
-
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
583
|
-
};
|
584
|
-
function is(e, t, n, o, s, l) {
|
585
|
-
return a(), i("svg", os, t[0] || (t[0] = [
|
586
|
-
dt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 6l5.5 0"></path><path d="M4 10l5.5 0"></path><path d="M4 14l5.5 0"></path><path d="M4 18l5.5 0"></path><path d="M14.5 6l5.5 0"></path><path d="M14.5 10l5.5 0"></path><path d="M14.5 14l5.5 0"></path><path d="M14.5 18l5.5 0"></path>', 9)
|
587
|
-
]));
|
588
|
-
}
|
589
|
-
const ds = /* @__PURE__ */ C(as, [["render", is]]), us = {
|
590
|
-
props: { column: Object },
|
591
|
-
emits: ["update-column"],
|
592
|
-
components: {
|
593
|
-
IconCheck2: Ue
|
594
|
-
},
|
595
|
-
data() {
|
596
|
-
return {
|
597
|
-
value: !1
|
598
|
-
};
|
599
|
-
},
|
600
|
-
watch: {
|
601
|
-
value(e) {
|
602
|
-
this.$emit("update-column", { ...this.column, hidden: !e });
|
603
|
-
}
|
604
|
-
},
|
605
|
-
computed: {
|
606
|
-
color() {
|
607
|
-
return E.value.buttonColor || "blue";
|
608
|
-
}
|
609
|
-
},
|
610
|
-
mounted() {
|
611
|
-
var e;
|
612
|
-
((e = this.column) == null ? void 0 : e.hidden) !== !0 && (this.value = !0);
|
613
|
-
}
|
614
|
-
}, cs = { 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" }, hs = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
615
|
-
function ps(e, t, n, o, s, l) {
|
616
|
-
var g, p;
|
617
|
-
const c = b("IconCheck2");
|
618
|
-
return a(), i("div", cs, [
|
619
|
-
r("label", hs, [
|
620
|
-
j(T(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
|
621
|
-
U(r("input", {
|
622
|
-
type: "checkbox",
|
623
|
-
"onUpdate:modelValue": t[0] || (t[0] = (f) => s.value = f),
|
624
|
-
class: "hidden"
|
625
|
-
}, null, 512), [
|
626
|
-
[ut, s.value]
|
627
|
-
]),
|
628
|
-
r("span", {
|
629
|
-
class: $(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500", [s.value ? "bg-" + l.color + "-600 border-0" : "bg-white"]])
|
630
|
-
}, [
|
631
|
-
m(c, {
|
632
|
-
height: "12",
|
633
|
-
width: "12"
|
634
|
-
})
|
635
|
-
], 2)
|
636
|
-
])
|
637
|
-
]);
|
638
|
-
}
|
639
|
-
const bs = /* @__PURE__ */ C(us, [["render", ps]]), fs = {
|
640
|
-
components: { IconColumns: ds, AdminTableColumnsHiddenItem: bs },
|
641
|
-
emits: ["update-columns"],
|
642
|
-
props: { columns: Array },
|
643
|
-
data() {
|
644
|
-
return {
|
645
|
-
searchValue: "",
|
646
|
-
visible: !1
|
647
|
-
};
|
648
|
-
},
|
649
|
-
computed: {
|
650
|
-
filteredColumn() {
|
651
|
-
var e;
|
652
|
-
return (e = this.columns) == null ? void 0 : e.filter(
|
653
|
-
(t) => {
|
654
|
-
var n, o, s, l, c, g;
|
655
|
-
return ((s = (n = t == null ? void 0 : t.ua) == null ? void 0 : n.toLowerCase()) == null ? void 0 : s.includes((o = this.searchValue) == null ? void 0 : o.toLowerCase())) || ((g = (l = t == null ? void 0 : t.title) == null ? void 0 : l.toLowerCase()) == null ? void 0 : g.includes((c = this.searchValue) == null ? void 0 : c.toLowerCase()));
|
656
|
-
}
|
657
|
-
);
|
658
|
-
}
|
659
|
-
},
|
660
|
-
methods: {
|
661
|
-
toggleVisible() {
|
662
|
-
this.visible = !this.visible, this.visible ? document.addEventListener("click", this.handleClickOutside) : document.removeEventListener("click", this.handleClickOutside);
|
663
|
-
},
|
664
|
-
handleClickOutside(e) {
|
665
|
-
const t = this.$refs.wrapper;
|
666
|
-
t && !t.contains(e.target) && (this.visible = !1, document.removeEventListener("click", this.handleClickOutside));
|
667
|
-
},
|
668
|
-
updateColumn(e) {
|
669
|
-
const t = this.columns.findIndex((o) => (o == null ? void 0 : o.name) === (e == null ? void 0 : e.name)), n = this.columns;
|
670
|
-
n[t] = e, this.$emit("update-columns", [...n]);
|
671
|
-
}
|
672
|
-
},
|
673
|
-
beforeUnmount() {
|
674
|
-
document.removeEventListener("click", this.handleClickOutside);
|
675
|
-
}
|
676
|
-
}, gs = {
|
677
|
-
class: "relative",
|
678
|
-
ref: "wrapper"
|
679
|
-
}, ms = {
|
680
|
-
key: 0,
|
681
|
-
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"
|
682
|
-
}, xs = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, ys = { 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" }, ks = {
|
683
|
-
key: 0,
|
684
|
-
class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
|
685
|
-
}, vs = { class: "space-y-1" }, _s = {
|
686
|
-
key: 1,
|
687
|
-
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
688
|
-
};
|
689
|
-
function Cs(e, t, n, o, s, l) {
|
690
|
-
const c = b("IconColumns"), g = b("AdminTableColumnsHiddenItem");
|
691
|
-
return a(), i("div", gs, [
|
692
|
-
r("button", {
|
693
|
-
onClick: t[0] || (t[0] = (...p) => l.toggleVisible && l.toggleVisible(...p)),
|
694
|
-
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"
|
695
|
-
}, [
|
696
|
-
m(c, {
|
697
|
-
height: "20",
|
698
|
-
width: "16"
|
699
|
-
})
|
700
|
-
]),
|
701
|
-
m(W, { name: "fade" }, {
|
702
|
-
default: V(() => {
|
703
|
-
var p, f;
|
704
|
-
return [
|
705
|
-
s.visible ? (a(), i("div", ms, [
|
706
|
-
t[2] || (t[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)),
|
707
|
-
r("div", xs, [
|
708
|
-
U(r("input", {
|
709
|
-
"onUpdate:modelValue": t[1] || (t[1] = (d) => s.searchValue = d),
|
710
|
-
type: "text",
|
711
|
-
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",
|
712
|
-
placeholder: "Пошук",
|
713
|
-
autofocus: ""
|
714
|
-
}, null, 512), [
|
715
|
-
[ct, s.searchValue]
|
716
|
-
])
|
717
|
-
]),
|
718
|
-
r("div", ys, [
|
719
|
-
(p = l.filteredColumn) != null && p.length ? (a(), i("span", ks, " Оберіть колонки для відображення ")) : v("", !0),
|
720
|
-
r("div", vs, [
|
721
|
-
(f = l.filteredColumn) != null && f.length ? (a(!0), i(S, { key: 0 }, P(l.filteredColumn, (d, k) => (a(), y(g, {
|
722
|
-
key: k,
|
723
|
-
column: d,
|
724
|
-
onUpdateColumn: l.updateColumn
|
725
|
-
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (a(), i("div", _s, " Нічого не знайдено "))
|
726
|
-
])
|
727
|
-
])
|
728
|
-
])) : v("", !0)
|
729
|
-
];
|
730
|
-
}),
|
731
|
-
_: 1
|
732
|
-
})
|
733
|
-
], 512);
|
734
|
-
}
|
735
|
-
const ws = /* @__PURE__ */ C(fs, [["render", Cs]]), $s = {}, Ss = {
|
574
|
+
const ns = /* @__PURE__ */ A(Et, [["render", ss]]), ls = {}, as = {
|
736
575
|
xmlns: "http://www.w3.org/2000/svg",
|
737
576
|
viewBox: "0 0 24 24",
|
738
577
|
fill: "none",
|
@@ -742,18 +581,18 @@ const ws = /* @__PURE__ */ C(fs, [["render", Cs]]), $s = {}, Ss = {
|
|
742
581
|
"stroke-linejoin": "round",
|
743
582
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
744
583
|
};
|
745
|
-
function
|
746
|
-
return
|
747
|
-
|
584
|
+
function rs(e, t, n, o, s, l) {
|
585
|
+
return r(), u("svg", as, t[0] || (t[0] = [
|
586
|
+
a("path", {
|
748
587
|
stroke: "none",
|
749
588
|
d: "M0 0h24v24H0z",
|
750
589
|
fill: "none"
|
751
590
|
}, null, -1),
|
752
|
-
|
591
|
+
a("path", { d: "M5 12l14 0" }, null, -1)
|
753
592
|
]));
|
754
593
|
}
|
755
|
-
const
|
756
|
-
components: { IconPlus:
|
594
|
+
const os = /* @__PURE__ */ A(ls, [["render", rs]]), is = {
|
595
|
+
components: { IconPlus: J, IconMinus: os },
|
757
596
|
props: {
|
758
597
|
title: String,
|
759
598
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -761,33 +600,33 @@ const As = /* @__PURE__ */ C($s, [["render", Ts]]), Is = {
|
|
761
600
|
data() {
|
762
601
|
return { expanded: this.defaultValue };
|
763
602
|
}
|
764
|
-
},
|
765
|
-
function
|
766
|
-
const
|
767
|
-
return
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
onClick: t[0] || (t[0] = (
|
603
|
+
}, us = { class: "hs-accordion" }, ds = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, cs = { class: "text-sm font-medium" }, hs = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
604
|
+
function ps(e, t, n, o, s, l) {
|
605
|
+
const h = p("IconPlus"), g = p("IconMinus");
|
606
|
+
return r(), u("div", null, [
|
607
|
+
a("div", null, [
|
608
|
+
a("div", us, [
|
609
|
+
a("div", ds, [
|
610
|
+
a("div", {
|
611
|
+
onClick: t[0] || (t[0] = (b) => s.expanded = !s.expanded),
|
773
612
|
class: "rounded-md cursor-pointer grow"
|
774
613
|
}, [
|
775
|
-
|
614
|
+
a("span", cs, T(n.title), 1)
|
776
615
|
]),
|
777
|
-
|
616
|
+
a("button", {
|
778
617
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
779
|
-
onClick: t[1] || (t[1] = (
|
618
|
+
onClick: t[1] || (t[1] = (b) => s.expanded = !s.expanded)
|
780
619
|
}, [
|
781
|
-
s.expanded ? (
|
620
|
+
s.expanded ? (r(), y(g, {
|
782
621
|
key: 1,
|
783
622
|
width: "14"
|
784
|
-
})) : (
|
623
|
+
})) : (r(), y(h, { key: 0 }))
|
785
624
|
])
|
786
625
|
]),
|
787
|
-
|
788
|
-
default:
|
789
|
-
|
790
|
-
|
626
|
+
x(Q, { name: "fade" }, {
|
627
|
+
default: P(() => [
|
628
|
+
X(a("div", hs, [
|
629
|
+
dt(e.$slots, "default", {}, void 0, !0)
|
791
630
|
], 512), [
|
792
631
|
[Y, s.expanded]
|
793
632
|
])
|
@@ -798,66 +637,66 @@ function js(e, t, n, o, s, l) {
|
|
798
637
|
])
|
799
638
|
]);
|
800
639
|
}
|
801
|
-
const
|
640
|
+
const bs = /* @__PURE__ */ A(is, [["render", ps], ["__scopeId", "data-v-c6318482"]]), fs = {
|
802
641
|
components: {
|
803
|
-
AdminComponentIs:
|
804
|
-
AdminTree:
|
805
|
-
VsNoData:
|
806
|
-
VsWidgetComments:
|
807
|
-
VsWidgetMap:
|
808
|
-
VsWidgetFileList:
|
642
|
+
AdminComponentIs: G,
|
643
|
+
AdminTree: bs,
|
644
|
+
VsNoData: Xe,
|
645
|
+
VsWidgetComments: Ye,
|
646
|
+
VsWidgetMap: Ze,
|
647
|
+
VsWidgetFileList: et
|
809
648
|
},
|
810
649
|
props: { table: String, columns: Array, row: Object }
|
811
|
-
},
|
650
|
+
}, gs = {
|
812
651
|
class: "pl-2 hs-accordion w-[360px] shrink-0 overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500",
|
813
652
|
style: { height: "calc(100vh - 229px)" }
|
814
|
-
},
|
653
|
+
}, ms = {
|
815
654
|
style: { height: "calc(100vh - 360px)" },
|
816
655
|
class: "pl-2"
|
817
|
-
},
|
818
|
-
function
|
819
|
-
var f, d,
|
820
|
-
const
|
821
|
-
return
|
822
|
-
t[0] || (t[0] =
|
823
|
-
|
656
|
+
}, xs = { class: "flow-root mt-[10px]" }, ys = { class: "divide-y divide-gray-100 text-[12px]" }, vs = { class: "grid grid-cols-1 gap-1 py-3 even:bg-gray-50 sm:grid-cols-3 sm:gap-4" }, ks = { class: "font-medium text-gray-900" }, _s = { class: "text-gray-700 sm:col-span-2" };
|
657
|
+
function Cs(e, t, n, o, s, l) {
|
658
|
+
var f, d, v, m;
|
659
|
+
const h = p("AdminComponentIs"), g = p("VsWidgetFileList"), b = p("VsNoData");
|
660
|
+
return r(), u("div", gs, [
|
661
|
+
t[0] || (t[0] = a("div", { class: "pl-[10px] py-[9px]" }, [
|
662
|
+
a("h2", { class: "text-sm font-medium text-center" }, "Інформація про об'єкт")
|
824
663
|
], -1)),
|
825
|
-
|
826
|
-
(d = (f = e.$route) == null ? void 0 : f.query) != null && d.card ? (
|
827
|
-
|
828
|
-
|
829
|
-
(
|
830
|
-
|
831
|
-
|
832
|
-
|
664
|
+
a("div", ms, [
|
665
|
+
(d = (f = e.$route) == null ? void 0 : f.query) != null && d.card ? (r(), u($, { key: 0 }, [
|
666
|
+
a("div", xs, [
|
667
|
+
a("dl", ys, [
|
668
|
+
(r(!0), u($, null, V(n.columns, (c) => (r(), u("div", vs, [
|
669
|
+
a("dt", ks, T((c == null ? void 0 : c.ua) || (c == null ? void 0 : c.title)), 1),
|
670
|
+
a("dd", _s, [
|
671
|
+
x(h, {
|
833
672
|
row: n.row,
|
834
|
-
column:
|
673
|
+
column: c,
|
835
674
|
table: n.table
|
836
675
|
}, null, 8, ["row", "column", "table"])
|
837
676
|
])
|
838
677
|
]))), 256))
|
839
678
|
])
|
840
679
|
]),
|
841
|
-
(
|
842
|
-
key: (
|
843
|
-
id: (
|
680
|
+
(r(), y(g, {
|
681
|
+
key: (v = n.row) == null ? void 0 : v.id,
|
682
|
+
id: (m = n.row) == null ? void 0 : m.id,
|
844
683
|
class: "mt-10"
|
845
684
|
}, null, 8, ["id"]))
|
846
|
-
], 64)) : (
|
685
|
+
], 64)) : (r(), y(b, {
|
847
686
|
key: 1,
|
848
687
|
text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
|
849
688
|
}))
|
850
689
|
])
|
851
690
|
]);
|
852
691
|
}
|
853
|
-
const
|
692
|
+
const ws = /* @__PURE__ */ A(fs, [["render", Cs]]), $s = {
|
854
693
|
emits: ["filterChange"],
|
855
694
|
props: {
|
856
695
|
scheme: { type: Object },
|
857
696
|
onFilters: { type: Number },
|
858
697
|
table: { type: String }
|
859
698
|
},
|
860
|
-
components: { IconFilter:
|
699
|
+
components: { IconFilter: tt },
|
861
700
|
data() {
|
862
701
|
return {
|
863
702
|
isFilters: !1
|
@@ -868,36 +707,36 @@ const Rs = /* @__PURE__ */ C(Ms, [["render", Hs]]), Ws = {
|
|
868
707
|
this.isFilters && e.classList.contains("filter-container") && (this.isFilters = !1);
|
869
708
|
}
|
870
709
|
}
|
871
|
-
},
|
710
|
+
}, Ss = {
|
872
711
|
key: 0,
|
873
712
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
874
|
-
},
|
875
|
-
function
|
876
|
-
const
|
877
|
-
return
|
878
|
-
|
879
|
-
onClick: t[0] || (t[0] = (
|
713
|
+
}, Ts = { 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" };
|
714
|
+
function As(e, t, n, o, s, l) {
|
715
|
+
const h = p("IconFilter"), g = p("VsFilter");
|
716
|
+
return r(), u($, null, [
|
717
|
+
a("button", {
|
718
|
+
onClick: t[0] || (t[0] = (b) => s.isFilters = !s.isFilters),
|
880
719
|
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"
|
881
720
|
}, [
|
882
|
-
|
721
|
+
x(h, {
|
883
722
|
height: "16",
|
884
723
|
width: "16"
|
885
724
|
}),
|
886
|
-
t[4] || (t[4] =
|
887
|
-
n.onFilters ? (
|
725
|
+
t[4] || (t[4] = L(" Фільтри ")),
|
726
|
+
n.onFilters ? (r(), u("span", Ss, T(n.onFilters), 1)) : k("", !0)
|
888
727
|
]),
|
889
|
-
|
890
|
-
default:
|
891
|
-
var
|
728
|
+
x(Q, { name: "fade" }, {
|
729
|
+
default: P(() => {
|
730
|
+
var b;
|
892
731
|
return [
|
893
|
-
(
|
894
|
-
|
732
|
+
(r(), y(ct, { to: "#modal" }, [
|
733
|
+
X(a("div", {
|
895
734
|
onClick: t[3] || (t[3] = (...f) => l.closeFilter && l.closeFilter(...f)),
|
896
735
|
style: { height: "100vh" },
|
897
736
|
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)]"
|
898
737
|
}, [
|
899
|
-
|
900
|
-
(
|
738
|
+
a("div", Ts, [
|
739
|
+
(b = n.scheme) != null && b.length ? (r(), y(g, {
|
901
740
|
key: 0,
|
902
741
|
ref: "filter",
|
903
742
|
scheme: n.scheme,
|
@@ -911,7 +750,7 @@ function Gs(e, t, n, o, s, l) {
|
|
911
750
|
onFilterChange: t[1] || (t[1] = (f) => e.$emit("filterChange", f)),
|
912
751
|
closeFilterBtn: !0,
|
913
752
|
onFilterClose: t[2] || (t[2] = (f) => s.isFilters = !1)
|
914
|
-
}, null, 8, ["scheme", "token"])) :
|
753
|
+
}, null, 8, ["scheme", "token"])) : k("", !0)
|
915
754
|
])
|
916
755
|
], 512), [
|
917
756
|
[Y, s.isFilters]
|
@@ -923,25 +762,25 @@ function Gs(e, t, n, o, s, l) {
|
|
923
762
|
})
|
924
763
|
], 64);
|
925
764
|
}
|
926
|
-
const
|
765
|
+
const Is = /* @__PURE__ */ A($s, [["render", As]]), Ds = {
|
927
766
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
928
|
-
},
|
767
|
+
}, Ps = {
|
929
768
|
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",
|
930
769
|
"aria-label": "Tabs",
|
931
770
|
role: "tablist",
|
932
771
|
"aria-orientation": "horizontal"
|
933
|
-
},
|
934
|
-
function
|
935
|
-
return
|
936
|
-
(
|
937
|
-
onClick: (g) => e.$emit("update:filterState",
|
938
|
-
class:
|
939
|
-
" 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": (
|
772
|
+
}, Vs = ["onClick"];
|
773
|
+
function Fs(e, t, n, o, s, l) {
|
774
|
+
return r(), u("nav", Ps, [
|
775
|
+
(r(!0), u($, null, V(n.tabsList, (h) => (r(), u("button", {
|
776
|
+
onClick: (g) => e.$emit("update:filterState", h == null ? void 0 : h.name),
|
777
|
+
class: w(["hs-tab-active:after:bg-gray-800 hs-tab-active:text-gray-800 px-2.5 py-1.5 mb-2 relative inline-flex justify-center items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-2 after:inset-x-0 after:z-10 after:h-0.5 after:pointer-events-none dark:hs-tab-active:text-neutral-200 dark:hs-tab-active:after:bg-neutral-400 dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
|
778
|
+
" 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": (h == null ? void 0 : h.name) === n.filterState
|
940
779
|
}])
|
941
|
-
}, T(
|
780
|
+
}, T(h == null ? void 0 : h.label), 11, Vs))), 256))
|
942
781
|
]);
|
943
782
|
}
|
944
|
-
const
|
783
|
+
const js = /* @__PURE__ */ A(Ds, [["render", Fs]]), Ls = {}, zs = {
|
945
784
|
xmlns: "http://www.w3.org/2000/svg",
|
946
785
|
viewBox: "0 0 24 24",
|
947
786
|
fill: "none",
|
@@ -951,51 +790,51 @@ const tn = /* @__PURE__ */ C(Xs, [["render", en]]), sn = {}, nn = {
|
|
951
790
|
"stroke-linejoin": "round",
|
952
791
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
953
792
|
};
|
954
|
-
function
|
955
|
-
return
|
956
|
-
|
793
|
+
function qs(e, t, n, o, s, l) {
|
794
|
+
return r(), u("svg", zs, t[0] || (t[0] = [
|
795
|
+
a("path", {
|
957
796
|
stroke: "none",
|
958
797
|
d: "M0 0h24v24H0z",
|
959
798
|
fill: "none"
|
960
799
|
}, null, -1),
|
961
|
-
|
800
|
+
a("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" }, null, -1)
|
962
801
|
]));
|
963
802
|
}
|
964
|
-
const
|
965
|
-
components: { IconFilter2:
|
803
|
+
const Ms = /* @__PURE__ */ A(Ls, [["render", qs]]), Bs = {
|
804
|
+
components: { IconFilter2: Ms, IconCheck2: st },
|
966
805
|
props: { filterCustom: String, customList: Array }
|
967
|
-
},
|
968
|
-
function
|
969
|
-
const
|
970
|
-
return
|
806
|
+
}, Ns = { 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" }, Os = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, Es = ["onClick"], Us = { class: "text-sm text-gray-800" };
|
807
|
+
function Rs(e, t, n, o, s, l) {
|
808
|
+
const h = p("IconFilter2"), g = p("IconCheck2"), b = p("VsPopover");
|
809
|
+
return r(), y(b, {
|
971
810
|
ref: "popover",
|
972
811
|
placement: "bottom"
|
973
812
|
}, {
|
974
|
-
reference:
|
975
|
-
|
976
|
-
|
813
|
+
reference: P(() => [
|
814
|
+
a("button", Ns, [
|
815
|
+
x(h, {
|
977
816
|
height: "20",
|
978
817
|
width: "20"
|
979
818
|
})
|
980
819
|
])
|
981
820
|
]),
|
982
|
-
default:
|
983
|
-
|
984
|
-
(
|
985
|
-
onClick: (
|
986
|
-
var
|
987
|
-
e.$emit("update:filterCustom", f == null ? void 0 : f.name), (
|
821
|
+
default: P(() => [
|
822
|
+
a("div", Os, [
|
823
|
+
(r(!0), u($, null, V(n.customList, (f, d) => (r(), u("button", {
|
824
|
+
onClick: (v) => {
|
825
|
+
var m;
|
826
|
+
e.$emit("update:filterCustom", f == null ? void 0 : f.name), (m = e.$refs) == null || m.popover.togglePopover();
|
988
827
|
},
|
989
828
|
key: d,
|
990
|
-
class:
|
829
|
+
class: w(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (f == null ? void 0 : f.name) }])
|
991
830
|
}, [
|
992
|
-
|
993
|
-
n.filterCustom === (f == null ? void 0 : f.name) ? (
|
831
|
+
a("span", Us, T(f == null ? void 0 : f.label), 1),
|
832
|
+
n.filterCustom === (f == null ? void 0 : f.name) ? (r(), y(g, {
|
994
833
|
key: 0,
|
995
834
|
class: "ml-auto size-3 shrink-0"
|
996
|
-
})) :
|
997
|
-
], 10,
|
998
|
-
|
835
|
+
})) : k("", !0)
|
836
|
+
], 10, Es))), 128)),
|
837
|
+
a("button", {
|
999
838
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1000
839
|
onClick: t[0] || (t[0] = (f) => {
|
1001
840
|
var d;
|
@@ -1007,67 +846,67 @@ function hn(e, t, n, o, s, l) {
|
|
1007
846
|
_: 1
|
1008
847
|
}, 512);
|
1009
848
|
}
|
1010
|
-
const
|
849
|
+
const Ws = /* @__PURE__ */ A(Bs, [["render", Rs]]), Hs = { class: "flex items-center gap-x-2" }, Ks = {
|
1011
850
|
__name: "admin-table-custom-buttons",
|
1012
851
|
props: {
|
1013
852
|
slots: Object,
|
1014
853
|
data: Object
|
1015
854
|
},
|
1016
855
|
setup(e) {
|
1017
|
-
var g,
|
1018
|
-
const { asyncTemplateSlot: t } = (
|
1019
|
-
var
|
1020
|
-
if ((
|
1021
|
-
const D = t("PanelLeft", (
|
856
|
+
var g, b, f, d, v;
|
857
|
+
const { asyncTemplateSlot: t } = (v = (d = (f = (b = (g = Ue()) == null ? void 0 : g.appContext) == null ? void 0 : b.app) == null ? void 0 : f.config) == null ? void 0 : d.globalProperties) == null ? void 0 : v.utils, n = H(""), o = H(""), s = e, l = () => {
|
858
|
+
var m, c, _, C, I;
|
859
|
+
if ((m = s.slots) != null && m.panelLeft || (o.value = "div"), (_ = (c = s.slots) == null ? void 0 : c.panelLeft) != null && _.includes("<")) {
|
860
|
+
const D = t("PanelLeft", (C = s.slots) == null ? void 0 : C.panelLeft, [
|
1022
861
|
"name"
|
1023
862
|
]);
|
1024
863
|
o.value = D;
|
1025
864
|
} else
|
1026
865
|
o.value = (I = s.slots) == null ? void 0 : I.panelLeft;
|
1027
|
-
},
|
1028
|
-
var
|
1029
|
-
if ((
|
1030
|
-
const D = t("PanelRight", (
|
866
|
+
}, h = () => {
|
867
|
+
var m, c, _, C, I;
|
868
|
+
if ((m = s.slots) != null && m.panelRight || (n.value = "div"), (_ = (c = s.slots) == null ? void 0 : c.panelRight) != null && _.includes("<")) {
|
869
|
+
const D = t("PanelRight", (C = s.slots) == null ? void 0 : C.panelRight, [
|
1031
870
|
"name"
|
1032
871
|
]);
|
1033
872
|
n.value = D;
|
1034
873
|
} else
|
1035
874
|
n.value = (I = s.slots) == null ? void 0 : I.panelRight;
|
1036
875
|
};
|
1037
|
-
return l(),
|
1038
|
-
(
|
1039
|
-
(
|
876
|
+
return l(), h(), (m, c) => (r(), u("div", Hs, [
|
877
|
+
(r(), y(K(o.value), { data: e.data }, null, 8, ["data"])),
|
878
|
+
(r(), y(K(n.value), { data: e.data }, null, 8, ["data"]))
|
1040
879
|
]));
|
1041
880
|
}
|
1042
|
-
},
|
881
|
+
}, Js = {
|
1043
882
|
__name: "admin-custom-button-add",
|
1044
883
|
props: {
|
1045
884
|
slots: Object
|
1046
885
|
},
|
1047
886
|
setup(e) {
|
1048
|
-
var l,
|
1049
|
-
const { asyncTemplateSlot: t } = (f = (
|
887
|
+
var l, h, g, b, f;
|
888
|
+
const { asyncTemplateSlot: t } = (f = (b = (g = (h = (l = Ue()) == null ? void 0 : l.appContext) == null ? void 0 : h.app) == null ? void 0 : g.config) == null ? void 0 : b.globalProperties) == null ? void 0 : f.utils, n = H(""), o = e;
|
1050
889
|
return (() => {
|
1051
|
-
var d,
|
1052
|
-
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (
|
1053
|
-
const
|
890
|
+
var d, v, m, c, _;
|
891
|
+
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (m = (v = o.slots) == null ? void 0 : v.addButton) != null && m.includes("<")) {
|
892
|
+
const C = t("addButton", (c = o.slots) == null ? void 0 : c.addButton, [
|
1054
893
|
"IconPlus"
|
1055
894
|
]);
|
1056
|
-
n.value =
|
895
|
+
n.value = C;
|
1057
896
|
} else
|
1058
897
|
n.value = (_ = o.slots) == null ? void 0 : _.addButton;
|
1059
|
-
})(), (d,
|
898
|
+
})(), (d, v) => n.value ? (r(), y(K(n.value), {
|
1060
899
|
key: 0,
|
1061
|
-
IconPlus:
|
1062
|
-
})) :
|
900
|
+
IconPlus: J
|
901
|
+
})) : k("", !0);
|
1063
902
|
}
|
1064
|
-
},
|
903
|
+
}, Gs = {
|
1065
904
|
key: 0,
|
1066
905
|
class: "px-1 py-3 text-gray-800 font-[500]"
|
1067
|
-
},
|
906
|
+
}, Qs = {
|
1068
907
|
key: 1,
|
1069
908
|
class: "px-1 py-3 text-gray-800 font-[700]"
|
1070
|
-
},
|
909
|
+
}, Xs = {
|
1071
910
|
__name: "admin-table-totals-list",
|
1072
911
|
props: {
|
1073
912
|
columns: { type: Array, default: () => [] },
|
@@ -1075,23 +914,23 @@ const pn = /* @__PURE__ */ C(an, [["render", hn]]), bn = { class: "flex items-ce
|
|
1075
914
|
} }
|
1076
915
|
},
|
1077
916
|
setup(e) {
|
1078
|
-
return (t, n) => (
|
1079
|
-
(
|
917
|
+
return (t, n) => (r(), u("tr", null, [
|
918
|
+
(r(!0), u($, null, V(e.columns, (o) => {
|
1080
919
|
var s;
|
1081
|
-
return
|
920
|
+
return r(), u($, {
|
1082
921
|
key: o == null ? void 0 : o.name
|
1083
922
|
}, [
|
1084
|
-
(s = e.agg) != null && s[o == null ? void 0 : o.name] ? (
|
1085
|
-
|
923
|
+
(s = e.agg) != null && s[o == null ? void 0 : o.name] ? (r(), u("td", Gs, [
|
924
|
+
x(G, {
|
1086
925
|
column: o,
|
1087
926
|
row: e.agg
|
1088
927
|
}, null, 8, ["column", "row"])
|
1089
|
-
])) : (
|
928
|
+
])) : (r(), u("td", Qs))
|
1090
929
|
], 64);
|
1091
930
|
}), 128))
|
1092
931
|
]));
|
1093
932
|
}
|
1094
|
-
},
|
933
|
+
}, Ys = {}, Zs = {
|
1095
934
|
xmlns: "http://www.w3.org/2000/svg",
|
1096
935
|
viewBox: "0 0 24 24",
|
1097
936
|
fill: "none",
|
@@ -1101,18 +940,18 @@ const pn = /* @__PURE__ */ C(an, [["render", hn]]), bn = { class: "flex items-ce
|
|
1101
940
|
"stroke-linejoin": "round",
|
1102
941
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1103
942
|
};
|
1104
|
-
function
|
1105
|
-
return
|
1106
|
-
|
943
|
+
function en(e, t, n, o, s, l) {
|
944
|
+
return r(), u("svg", Zs, t[0] || (t[0] = [
|
945
|
+
a("path", {
|
1107
946
|
stroke: "none",
|
1108
947
|
d: "M0 0h24v24H0z",
|
1109
948
|
fill: "none"
|
1110
949
|
}, null, -1),
|
1111
|
-
|
950
|
+
a("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1112
951
|
]));
|
1113
952
|
}
|
1114
|
-
const
|
1115
|
-
components: { IconChevronDown: nt, IconCheck:
|
953
|
+
const tn = /* @__PURE__ */ A(Ys, [["render", en]]), sn = ht({
|
954
|
+
components: { IconChevronDown: nt, IconCheck: tn },
|
1116
955
|
props: {
|
1117
956
|
total: { type: Number, default: () => 0 },
|
1118
957
|
pageSize: { type: Number, default: () => 20 },
|
@@ -1197,102 +1036,102 @@ const Cn = /* @__PURE__ */ C(kn, [["render", _n]]), wn = bt({
|
|
1197
1036
|
e.preventDefault(), e.target.blur();
|
1198
1037
|
}
|
1199
1038
|
}
|
1200
|
-
}),
|
1039
|
+
}), nn = { class: "flex items-center w-full" }, ln = { class: "flex items-center mx-[8px]" }, an = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, rn = {
|
1201
1040
|
key: 0,
|
1202
1041
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1203
|
-
},
|
1204
|
-
function
|
1205
|
-
const
|
1206
|
-
return
|
1207
|
-
|
1042
|
+
}, on = { class: "relative" }, un = { 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%]" }, dn = ["onClick"];
|
1043
|
+
function cn(e, t, n, o, s, l) {
|
1044
|
+
const h = p("IconChevronDown"), g = p("IconCheck");
|
1045
|
+
return r(), u("nav", nn, [
|
1046
|
+
a("button", {
|
1208
1047
|
type: "button",
|
1209
|
-
onClick: t[0] || (t[0] = (...
|
1210
|
-
class:
|
1048
|
+
onClick: t[0] || (t[0] = (...b) => e.handleClickPrev && e.handleClickPrev(...b)),
|
1049
|
+
class: w(["min-h-[38px] min-w-[38px] py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm rounded-lg text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100", { "opacity-50 pointer-events-none": e.disablePrevClick }])
|
1211
1050
|
}, [
|
1212
|
-
|
1051
|
+
x(h, {
|
1213
1052
|
height: "16",
|
1214
1053
|
width: "16",
|
1215
1054
|
class: "rotate-90"
|
1216
1055
|
})
|
1217
1056
|
], 2),
|
1218
|
-
|
1219
|
-
|
1057
|
+
a("div", ln, [
|
1058
|
+
a("span", {
|
1220
1059
|
ref: "currentPage",
|
1221
1060
|
contenteditable: "true",
|
1222
|
-
onKeydown: t[1] || (t[1] =
|
1223
|
-
onBlur: t[2] || (t[2] = (
|
1061
|
+
onKeydown: t[1] || (t[1] = pt((...b) => e.keydownEnter && e.keydownEnter(...b), ["enter"])),
|
1062
|
+
onBlur: t[2] || (t[2] = (b) => e.handleSetPage(b.target.innerText)),
|
1224
1063
|
class: "min-h-[38px] max-h-[38px] overflow-hidden min-w-[38px] flex justify-center items-center bg-stone-100 text-stone-800 py-2 px-3 outline-blue-600 text-sm rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:text-white"
|
1225
1064
|
}, T(e.page), 545),
|
1226
|
-
t[5] || (t[5] =
|
1227
|
-
|
1065
|
+
t[5] || (t[5] = a("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1066
|
+
a("span", an, T(e.pagesCount), 1)
|
1228
1067
|
]),
|
1229
|
-
|
1068
|
+
a("button", {
|
1230
1069
|
type: "button",
|
1231
|
-
onClick: t[3] || (t[3] = (...
|
1232
|
-
class:
|
1070
|
+
onClick: t[3] || (t[3] = (...b) => e.handleClickNext && e.handleClickNext(...b)),
|
1071
|
+
class: w([{ "opacity-50 pointer-events-none": e.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"])
|
1233
1072
|
}, [
|
1234
|
-
|
1073
|
+
x(h, {
|
1235
1074
|
height: "16",
|
1236
1075
|
width: "16",
|
1237
1076
|
class: "-rotate-90"
|
1238
1077
|
})
|
1239
1078
|
], 2),
|
1240
|
-
e.pageSizes.length ? (
|
1241
|
-
|
1242
|
-
|
1243
|
-
(
|
1079
|
+
e.pageSizes.length ? (r(), u("div", rn, [
|
1080
|
+
a("div", on, [
|
1081
|
+
X(a("div", un, [
|
1082
|
+
(r(!0), u($, null, V(e.pageSizes, (b) => (r(), u("button", {
|
1244
1083
|
type: "button",
|
1245
1084
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
1246
|
-
onClick: (f) => e.pageSizeLocal =
|
1085
|
+
onClick: (f) => e.pageSizeLocal = b
|
1247
1086
|
}, [
|
1248
|
-
|
1249
|
-
|
1087
|
+
L(T(b) + " ", 1),
|
1088
|
+
b === e.pageSizeLocal ? (r(), y(g, {
|
1250
1089
|
key: 0,
|
1251
1090
|
width: "14",
|
1252
1091
|
height: "14",
|
1253
1092
|
class: "text-blue-600"
|
1254
|
-
})) :
|
1255
|
-
], 8,
|
1093
|
+
})) : k("", !0)
|
1094
|
+
], 8, dn))), 256))
|
1256
1095
|
], 512), [
|
1257
1096
|
[Y, e.isDropdownOpen]
|
1258
1097
|
]),
|
1259
|
-
e.pageSizes.length ? (
|
1098
|
+
e.pageSizes.length ? (r(), u("button", {
|
1260
1099
|
key: 0,
|
1261
1100
|
type: "button",
|
1262
1101
|
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",
|
1263
|
-
onClick: t[4] || (t[4] = (
|
1102
|
+
onClick: t[4] || (t[4] = (b) => e.isDropdownOpen = !e.isDropdownOpen)
|
1264
1103
|
}, [
|
1265
|
-
|
1266
|
-
|
1104
|
+
L(T(e.pageSizeLocal) + " ", 1),
|
1105
|
+
x(h, {
|
1267
1106
|
height: "16",
|
1268
1107
|
width: "16"
|
1269
1108
|
})
|
1270
|
-
])) :
|
1109
|
+
])) : k("", !0)
|
1271
1110
|
])
|
1272
|
-
])) :
|
1111
|
+
])) : k("", !0)
|
1273
1112
|
]);
|
1274
1113
|
}
|
1275
|
-
const
|
1114
|
+
const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
1276
1115
|
props: { table: String, title: String, search: String },
|
1277
1116
|
components: {
|
1278
|
-
AdminTableControl:
|
1279
|
-
AdminTableExport:
|
1117
|
+
AdminTableControl: Ft,
|
1118
|
+
AdminTableExport: ns,
|
1280
1119
|
// AdminTablePrint,
|
1281
|
-
AdminTableColumnsHidden:
|
1282
|
-
AdminTableColumn:
|
1283
|
-
AdminNodata:
|
1284
|
-
IconPlus:
|
1120
|
+
AdminTableColumnsHidden: lt,
|
1121
|
+
AdminTableColumn: yt,
|
1122
|
+
AdminNodata: at,
|
1123
|
+
IconPlus: J,
|
1285
1124
|
IconSearch: rt,
|
1286
|
-
AdminTableCardInfo:
|
1287
|
-
IconOpenCard:
|
1288
|
-
AdminComponentIs:
|
1289
|
-
AdminTableFilters:
|
1290
|
-
AdminTableTabs:
|
1291
|
-
AdminTableCustomFilters:
|
1292
|
-
AdminTableCustomButtons:
|
1293
|
-
AdminCustomButtonAdd:
|
1294
|
-
AdminTableTotalsList:
|
1295
|
-
AdminTablePagination:
|
1125
|
+
AdminTableCardInfo: ws,
|
1126
|
+
IconOpenCard: ot,
|
1127
|
+
AdminComponentIs: G,
|
1128
|
+
AdminTableFilters: Is,
|
1129
|
+
AdminTableTabs: js,
|
1130
|
+
AdminTableCustomFilters: Ws,
|
1131
|
+
AdminTableCustomButtons: Ks,
|
1132
|
+
AdminCustomButtonAdd: Js,
|
1133
|
+
AdminTableTotalsList: Xs,
|
1134
|
+
AdminTablePagination: hn
|
1296
1135
|
},
|
1297
1136
|
data() {
|
1298
1137
|
return {
|
@@ -1320,10 +1159,10 @@ const Fn = /* @__PURE__ */ C(wn, [["render", Pn]]), jn = {
|
|
1320
1159
|
},
|
1321
1160
|
computed: {
|
1322
1161
|
color() {
|
1323
|
-
return
|
1162
|
+
return R.value.buttonColor || "blue";
|
1324
1163
|
},
|
1325
1164
|
fontSize() {
|
1326
|
-
return `text-[${
|
1165
|
+
return `text-[${R.value.fontSize || 13}px]`;
|
1327
1166
|
},
|
1328
1167
|
defaultPage() {
|
1329
1168
|
var e, t;
|
@@ -1360,7 +1199,7 @@ const Fn = /* @__PURE__ */ C(wn, [["render", Pn]]), jn = {
|
|
1360
1199
|
// await this.getTableData();
|
1361
1200
|
// },
|
1362
1201
|
searchValue: {
|
1363
|
-
handler:
|
1202
|
+
handler: it(async function(e) {
|
1364
1203
|
var t;
|
1365
1204
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1366
1205
|
...this.$route,
|
@@ -1413,8 +1252,8 @@ const Fn = /* @__PURE__ */ C(wn, [["render", Pn]]), jn = {
|
|
1413
1252
|
},
|
1414
1253
|
methods: {
|
1415
1254
|
async checkUrlMounted() {
|
1416
|
-
var e, t, n, o, s, l,
|
1417
|
-
this.page = ((t = (e = this.$route) == null ? void 0 : e.query) == null ? void 0 : t.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (l = (s = this.$route) == null ? void 0 : s.query) != null && l.filter && (this.filters = ((
|
1255
|
+
var e, t, n, o, s, l, h, g, b, f, d, v, m, c, _, C, I, D, S, F, z;
|
1256
|
+
this.page = ((t = (e = this.$route) == null ? void 0 : e.query) == null ? void 0 : t.page) || 1, this.limit = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.limit) || 20, (l = (s = this.$route) == null ? void 0 : s.query) != null && l.filter && (this.filters = ((b = decodeURI((g = (h = this.$route) == null ? void 0 : h.query) == null ? void 0 : g.filter)) == null ? void 0 : b.replaceAll("+", " ")) || null), this.filters && (this.onFilters = ((d = (f = this.filters) == null ? void 0 : f.split("=")) == null ? void 0 : d.length) - 1), this.filterState = ((m = (v = this.$route) == null ? void 0 : v.query) == null ? void 0 : m.state) || null, this.filterCustom = ((_ = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : _.custom) || null, this.searchValue = ((I = (C = this.$route) == null ? void 0 : C.query) == null ? void 0 : I.search) || "", this.visibleColumns = ((F = (S = (D = this.$route) == null ? void 0 : D.query) == null ? void 0 : S.columns) == null ? void 0 : F.split(",")) || [], (z = this.$route) != null && z.query.card && (this.isVisibleCardInfo = !0);
|
1418
1257
|
},
|
1419
1258
|
rowWidth(e) {
|
1420
1259
|
var n, o;
|
@@ -1428,9 +1267,9 @@ const Fn = /* @__PURE__ */ C(wn, [["render", Pn]]), jn = {
|
|
1428
1267
|
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 = "";
|
1429
1268
|
},
|
1430
1269
|
async getTableData() {
|
1431
|
-
var e, t, n, o, s, l,
|
1270
|
+
var e, t, n, o, s, l, h, g, b, f, d;
|
1432
1271
|
try {
|
1433
|
-
const { data:
|
1272
|
+
const { data: v } = await q.get(`/api/template/table/${this.table}`), m = await q.get(`/api/table-data/${this.table}`, {
|
1434
1273
|
params: {
|
1435
1274
|
page: this.page,
|
1436
1275
|
search: this.searchValue || null,
|
@@ -1442,17 +1281,17 @@ const Fn = /* @__PURE__ */ C(wn, [["render", Pn]]), jn = {
|
|
1442
1281
|
}
|
1443
1282
|
});
|
1444
1283
|
this.tableData = {
|
1445
|
-
...
|
1446
|
-
...(
|
1447
|
-
}, this.initialHiddenColumns = (l = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((
|
1284
|
+
...v,
|
1285
|
+
...(m == null ? void 0 : m.data) || {}
|
1286
|
+
}, this.initialHiddenColumns = (l = (s = (o = (n = this.tableData) == null ? void 0 : n.columns) == null ? void 0 : o.filter((c) => (c == null ? void 0 : c.hidden) !== !0)) == null ? void 0 : s.map((c) => c == null ? void 0 : c.name)) == null ? void 0 : l.join(","), (h = this.visibleColumns) != null && h.length ? (g = this.tableData) == null || g.columns.forEach((c) => {
|
1448
1287
|
var _;
|
1449
|
-
(_ = this.visibleColumns) != null && _.includes(
|
1450
|
-
}) : this.visibleColumns = (d = (f = (
|
1451
|
-
var
|
1452
|
-
(_ = (
|
1453
|
-
var I, D,
|
1454
|
-
(D = (I = this.columnsWidth) == null ? void 0 : I[
|
1455
|
-
(
|
1288
|
+
(_ = this.visibleColumns) != null && _.includes(c == null ? void 0 : c.name) ? c.hidden = !1 : c.hidden = !0;
|
1289
|
+
}) : this.visibleColumns = (d = (f = (b = this.tableData) == null ? void 0 : b.columns) == null ? void 0 : f.filter((c) => (c == null ? void 0 : c.hidden) !== !0)) == null ? void 0 : d.map((c) => c == null ? void 0 : c.name), setTimeout(() => {
|
1290
|
+
var c, _;
|
1291
|
+
(_ = (c = this.tableData) == null ? void 0 : c.columns) == null || _.forEach(({ name: C }) => {
|
1292
|
+
var I, D, S, F, z, E;
|
1293
|
+
(D = (I = this.columnsWidth) == null ? void 0 : I[C]) != null && D.ref && (this.columnsWidth[C].width = parseInt(
|
1294
|
+
(E = (z = (F = (S = this.columnsWidth) == null ? void 0 : S[C]) == null ? void 0 : F.ref) == null ? void 0 : z.getBoundingClientRect()) == null ? void 0 : E.width
|
1456
1295
|
) + "px");
|
1457
1296
|
});
|
1458
1297
|
});
|
@@ -1462,7 +1301,7 @@ const Fn = /* @__PURE__ */ C(wn, [["render", Pn]]), jn = {
|
|
1462
1301
|
async getFilters() {
|
1463
1302
|
var e;
|
1464
1303
|
try {
|
1465
|
-
const { data: t } = await
|
1304
|
+
const { data: t } = await q.get(`/api/table-filter/${this.table}`);
|
1466
1305
|
this.filterScheme = (e = t == null ? void 0 : t.list) == null ? void 0 : e.map((n) => ({
|
1467
1306
|
...n,
|
1468
1307
|
label: (n == null ? void 0 : n.label) || (n == null ? void 0 : n.ua)
|
@@ -1510,85 +1349,85 @@ const Fn = /* @__PURE__ */ C(wn, [["render", Pn]]), jn = {
|
|
1510
1349
|
];
|
1511
1350
|
}
|
1512
1351
|
}
|
1513
|
-
},
|
1352
|
+
}, bn = { class: "w-[calc(100vw - 320px)] bg-gray-100" }, fn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white rounded-xl" }, gn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, mn = { class: "bg-white w-full rounded-xl p-[20px] pr-0" }, xn = { class: "flex" }, yn = { class: "flex gap-[6px] ml-auto" }, vn = { class: "inline-block w-full align-middle" }, kn = { 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" }, _n = { class: "right-0" }, Cn = {
|
1514
1353
|
key: 0,
|
1515
1354
|
class: "w-[70px] sticky right-0 top-0"
|
1516
|
-
},
|
1517
|
-
function
|
1518
|
-
var Z, ee, te, se, ne, le,
|
1519
|
-
const
|
1520
|
-
return
|
1521
|
-
|
1522
|
-
|
1523
|
-
l.isForm ? (
|
1524
|
-
(ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (
|
1355
|
+
}, wn = { class: "divide-y divide-gray-200 z-[1] relative text-gray-600" }, $n = ["onClick"], Sn = ["onClick"], Tn = ["onClick"], An = { class: "flex items-center justify-start w-full px-1 py-2" }, In = { class: "w-[200px] md:inline-flex hidden" }, Dn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Pn = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, Vn = { key: 0 };
|
1356
|
+
function Fn(e, t, n, o, s, l) {
|
1357
|
+
var Z, ee, te, se, ne, le, ae, re, oe, ie, ue, de, ce, he, pe, be, fe, ge, me, xe, ye, ve, ke, _e, Ce, we, $e, Se, Te, Ae, Ie, De, Pe;
|
1358
|
+
const h = p("AdminCustomButtonAdd"), g = p("IconPlus"), b = p("router-link"), f = p("AdminTableTabs"), d = p("IconSearch"), v = p("VsText"), m = p("AdminTableCustomButtons"), c = p("AdminTableCustomFilters"), _ = p("AdminTableColumnsHidden"), C = p("AdminTableExport"), I = p("AdminTableFilters"), D = p("IconOpenCard"), S = p("AdminTableColumn"), F = p("AdminComponentIs"), z = p("AdminTableControl"), E = p("AdminTableTotalsList"), Re = p("AdminNodata"), We = p("AdminTablePagination"), He = p("AdminTableCardInfo");
|
1359
|
+
return r(), u("div", bn, [
|
1360
|
+
a("div", fn, [
|
1361
|
+
a("h2", gn, T(n.title), 1),
|
1362
|
+
l.isForm ? (r(), u($, { key: 0 }, [
|
1363
|
+
(ee = (Z = s.tableData) == null ? void 0 : Z.slots) != null && ee.addButton ? (r(), y(h, {
|
1525
1364
|
key: 0,
|
1526
1365
|
slots: (te = s.tableData) == null ? void 0 : te.slots
|
1527
|
-
}, null, 8, ["slots"])) : (
|
1366
|
+
}, null, 8, ["slots"])) : (r(), y(b, {
|
1528
1367
|
key: 1,
|
1529
1368
|
to: `/add?table=${(ne = (se = e.$route) == null ? void 0 : se.params) == null ? void 0 : ne.catchAll}`,
|
1530
|
-
class:
|
1369
|
+
class: w(`inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-${l.color}-700 border border-transparent rounded-lg gap-x-2 hover:bg-${l.color}-800 hover:text-white`)
|
1531
1370
|
}, {
|
1532
|
-
default:
|
1533
|
-
|
1371
|
+
default: P(() => [
|
1372
|
+
x(g, {
|
1534
1373
|
height: "16",
|
1535
1374
|
width: "16"
|
1536
1375
|
}),
|
1537
|
-
t[5] || (t[5] =
|
1376
|
+
t[5] || (t[5] = L(" Додати "))
|
1538
1377
|
]),
|
1539
1378
|
_: 1
|
1540
1379
|
}, 8, ["to", "class"]))
|
1541
|
-
], 64)) :
|
1380
|
+
], 64)) : k("", !0)
|
1542
1381
|
]),
|
1543
|
-
|
1544
|
-
style:
|
1382
|
+
a("div", {
|
1383
|
+
style: W({
|
1545
1384
|
height: ((le = e.$adminSettings) == null ? void 0 : le.header) === !1 ? "calc(100vh - 91px)" : "calc(100vh - 155px)"
|
1546
1385
|
}),
|
1547
1386
|
class: "bg-gray-100 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1548
1387
|
}, [
|
1549
|
-
|
1550
|
-
(
|
1388
|
+
a("div", mn, [
|
1389
|
+
(re = (ae = s.tableData) == null ? void 0 : ae.filterState) != null && re.length ? (r(), y(f, {
|
1551
1390
|
key: 0,
|
1552
1391
|
tabsList: (oe = s.tableData) == null ? void 0 : oe.filterState,
|
1553
1392
|
filterState: s.filterState,
|
1554
|
-
"onUpdate:filterState": t[0] || (t[0] = (
|
1555
|
-
}, null, 8, ["tabsList", "filterState"])) :
|
1556
|
-
|
1557
|
-
|
1558
|
-
class:
|
1393
|
+
"onUpdate:filterState": t[0] || (t[0] = (i) => s.filterState = i)
|
1394
|
+
}, null, 8, ["tabsList", "filterState"])) : k("", !0),
|
1395
|
+
a("div", xn, [
|
1396
|
+
a("div", {
|
1397
|
+
class: w([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1559
1398
|
}, [
|
1560
|
-
|
1561
|
-
class:
|
1399
|
+
a("div", {
|
1400
|
+
class: w(["flex sm:grid sm:grid-cols-2 gap-x-2 sm:gap-x-5 mb-[10px] relative", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1562
1401
|
}, [
|
1563
|
-
|
1402
|
+
x(d, {
|
1564
1403
|
height: "14",
|
1565
1404
|
width: "14",
|
1566
1405
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
1567
1406
|
}),
|
1568
|
-
|
1407
|
+
x(v, {
|
1569
1408
|
modelValue: s.searchValue,
|
1570
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
1409
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => s.searchValue = i),
|
1571
1410
|
placeholder: n.search || "Пошук...",
|
1572
1411
|
clearable: !0,
|
1573
1412
|
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"
|
1574
1413
|
}, null, 8, ["modelValue", "placeholder"]),
|
1575
|
-
|
1576
|
-
(ie = s.tableData) != null && ie.slots ? (
|
1414
|
+
a("div", yn, [
|
1415
|
+
(ie = s.tableData) != null && ie.slots ? (r(), y(m, {
|
1577
1416
|
key: 0,
|
1578
1417
|
data: s.tableData,
|
1579
|
-
slots: (
|
1580
|
-
}, null, 8, ["data", "slots"])) :
|
1581
|
-
(ce = (
|
1418
|
+
slots: (ue = s.tableData) == null ? void 0 : ue.slots
|
1419
|
+
}, null, 8, ["data", "slots"])) : k("", !0),
|
1420
|
+
(ce = (de = s.tableData) == null ? void 0 : de.filterCustom) != null && ce.length ? (r(), y(c, {
|
1582
1421
|
key: 1,
|
1583
1422
|
customList: (he = s.tableData) == null ? void 0 : he.filterCustom,
|
1584
1423
|
filterCustom: s.filterCustom,
|
1585
|
-
"onUpdate:filterCustom": t[2] || (t[2] = (
|
1586
|
-
}, null, 8, ["customList", "filterCustom"])) :
|
1587
|
-
|
1424
|
+
"onUpdate:filterCustom": t[2] || (t[2] = (i) => s.filterCustom = i)
|
1425
|
+
}, null, 8, ["customList", "filterCustom"])) : k("", !0),
|
1426
|
+
x(_, {
|
1588
1427
|
columns: (pe = s.tableData) == null ? void 0 : pe.columns,
|
1589
|
-
onUpdateColumns: t[3] || (t[3] = (
|
1428
|
+
onUpdateColumns: t[3] || (t[3] = (i) => s.tableData.columns = i)
|
1590
1429
|
}, null, 8, ["columns"]),
|
1591
|
-
((be = s.tableData) == null ? void 0 : be.export) !== !1 ? (
|
1430
|
+
((be = s.tableData) == null ? void 0 : be.export) !== !1 ? (r(), y(C, {
|
1592
1431
|
key: 2,
|
1593
1432
|
table: n.table,
|
1594
1433
|
columns: (fe = s.tableData) == null ? void 0 : fe.columns,
|
@@ -1596,131 +1435,131 @@ function el(e, t, n, o, s, l) {
|
|
1596
1435
|
"filter-state": s.filterState,
|
1597
1436
|
"filter-custom": s.filterCustom,
|
1598
1437
|
filters: s.filters
|
1599
|
-
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) :
|
1600
|
-
(ge = s.filterScheme) != null && ge.length ? (
|
1438
|
+
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : k("", !0),
|
1439
|
+
(ge = s.filterScheme) != null && ge.length ? (r(), y(I, {
|
1601
1440
|
key: 3,
|
1602
1441
|
scheme: s.filterScheme,
|
1603
1442
|
onFilters: s.onFilters,
|
1604
1443
|
table: n.table,
|
1605
1444
|
onFilterChange: l.filterChange
|
1606
|
-
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) :
|
1607
|
-
|
1608
|
-
onClick: t[4] || (t[4] = (...
|
1445
|
+
}, null, 8, ["scheme", "onFilters", "table", "onFilterChange"])) : k("", !0),
|
1446
|
+
a("button", {
|
1447
|
+
onClick: t[4] || (t[4] = (...i) => l.toggleCardInfo && l.toggleCardInfo(...i)),
|
1609
1448
|
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"
|
1610
1449
|
}, [
|
1611
|
-
|
1612
|
-
class:
|
1450
|
+
x(D, {
|
1451
|
+
class: w({ "rotate-180 duration-300": !s.isVisibleCardInfo })
|
1613
1452
|
}, null, 8, ["class"])
|
1614
1453
|
])
|
1615
1454
|
])
|
1616
1455
|
], 2),
|
1617
|
-
|
1618
|
-
class:
|
1456
|
+
a("div", {
|
1457
|
+
class: w(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !s.isVisibleCardInfo }])
|
1619
1458
|
}, [
|
1620
|
-
|
1621
|
-
style:
|
1622
|
-
height: `calc(100vh - ${((me = e.$adminSettings) == null ? void 0 : me.header) === !1 ? (ye = (xe = s.tableData) == null ? void 0 : xe.filterState) != null && ye.length ? 330 : 270 : (
|
1459
|
+
a("div", {
|
1460
|
+
style: W({
|
1461
|
+
height: `calc(100vh - ${((me = e.$adminSettings) == null ? void 0 : me.header) === !1 ? (ye = (xe = s.tableData) == null ? void 0 : xe.filterState) != null && ye.length ? 330 : 270 : (ke = (ve = s.tableData) == null ? void 0 : ve.filterState) != null && ke.length ? 380 : 320}px)`
|
1623
1462
|
}),
|
1624
1463
|
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"
|
1625
1464
|
}, [
|
1626
|
-
|
1627
|
-
l.isNoData ? (
|
1465
|
+
a("div", vn, [
|
1466
|
+
l.isNoData ? (r(), y(Re, { key: 1 })) : (r(), u("table", {
|
1628
1467
|
key: 0,
|
1629
|
-
class:
|
1468
|
+
class: w([l.fontSize, "relative min-w-full my-2 divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"])
|
1630
1469
|
}, [
|
1631
|
-
|
1632
|
-
|
1633
|
-
(
|
1634
|
-
var
|
1635
|
-
return
|
1636
|
-
key:
|
1637
|
-
style:
|
1638
|
-
width: ((B = (
|
1639
|
-
textAlign:
|
1640
|
-
wordBreak:
|
1470
|
+
a("thead", kn, [
|
1471
|
+
a("tr", _n, [
|
1472
|
+
(r(!0), u($, null, V(l.columns, (i) => {
|
1473
|
+
var M, B;
|
1474
|
+
return r(), y(S, {
|
1475
|
+
key: i.name,
|
1476
|
+
style: W({
|
1477
|
+
width: ((B = (M = s.columnsWidth) == null ? void 0 : M[i == null ? void 0 : i.name]) == null ? void 0 : B.width) || l.rowWidth(i == null ? void 0 : i.name),
|
1478
|
+
textAlign: i == null ? void 0 : i.align,
|
1479
|
+
wordBreak: i == null ? void 0 : i.wrap
|
1641
1480
|
}),
|
1642
|
-
data:
|
1481
|
+
data: i,
|
1643
1482
|
activeColumn: s.activeColumn,
|
1644
|
-
onUpdateRef: (
|
1645
|
-
var
|
1646
|
-
(
|
1483
|
+
onUpdateRef: (U) => {
|
1484
|
+
var N, O;
|
1485
|
+
(O = (N = s.columnsWidth) == null ? void 0 : N[i == null ? void 0 : i.name]) != null && O.ref || (s.columnsWidth[i.name] = { ref: U });
|
1647
1486
|
},
|
1648
1487
|
onChangeActive: l.changeActiveColumn
|
1649
1488
|
}, null, 8, ["style", "data", "activeColumn", "onUpdateRef", "onChangeActive"]);
|
1650
1489
|
}), 128)),
|
1651
1490
|
(Ce = (_e = l.getActions) == null ? void 0 : _e.filter(
|
1652
|
-
(
|
1653
|
-
)) != null && Ce.length ? (
|
1491
|
+
(i) => i !== "add" && i !== "view"
|
1492
|
+
)) != null && Ce.length ? (r(), u("th", Cn)) : k("", !0)
|
1654
1493
|
])
|
1655
1494
|
]),
|
1656
|
-
|
1657
|
-
(
|
1658
|
-
var B,
|
1659
|
-
return
|
1660
|
-
key: (
|
1661
|
-
class:
|
1662
|
-
"bg-gray-100": ((
|
1663
|
-
"odd:bg-gray-50": ((
|
1495
|
+
a("tbody", wn, [
|
1496
|
+
(r(!0), u($, null, V((we = s.tableData) == null ? void 0 : we.rows, (i, M) => {
|
1497
|
+
var B, U, N, O, Ve, Fe, je, Le, ze, qe, Me, Be, Ne, Oe;
|
1498
|
+
return r(), u("tr", {
|
1499
|
+
key: (i == null ? void 0 : i.id) || M,
|
1500
|
+
class: w({
|
1501
|
+
"bg-gray-100": ((U = (B = e.$route) == null ? void 0 : B.query) == null ? void 0 : U.card) === (i == null ? void 0 : i.id),
|
1502
|
+
"odd:bg-gray-50": ((O = (N = e.$route) == null ? void 0 : N.query) == null ? void 0 : O.card) !== (i == null ? void 0 : i.id)
|
1664
1503
|
})
|
1665
1504
|
}, [
|
1666
|
-
|
1667
|
-
class:
|
1668
|
-
(
|
1505
|
+
a("td", {
|
1506
|
+
class: w(["px-1 py-2.5 pr-5", [
|
1507
|
+
(Ve = l.columns[0]) != null && Ve.align ? `text-${((Fe = l.columns[0]) == null ? void 0 : Fe.align) || "left"}` : ""
|
1669
1508
|
]]),
|
1670
|
-
onClick: (
|
1509
|
+
onClick: (j) => l.changeActiveCardInfo(i == null ? void 0 : i.id)
|
1671
1510
|
}, [
|
1672
|
-
|
1673
|
-
onClick: (
|
1674
|
-
l.pushToCard(
|
1511
|
+
a("button", {
|
1512
|
+
onClick: (j) => {
|
1513
|
+
l.pushToCard(i == null ? void 0 : i.id), l.pushToLinkCard(l.columns[0], i);
|
1675
1514
|
},
|
1676
|
-
class:
|
1515
|
+
class: w(["font-medium text-start", [
|
1677
1516
|
...l.getCustomStyles(l.columns[0]),
|
1678
1517
|
((je = this.tableData) == null ? void 0 : je.card) === !1 ? "" : ` text-${l.color}-800 decoration-2 focus:outline-none focus:underline hover:text-${l.color}-700 hover:underline`
|
1679
1518
|
]])
|
1680
1519
|
}, [
|
1681
|
-
|
1682
|
-
row:
|
1520
|
+
x(F, {
|
1521
|
+
row: i,
|
1683
1522
|
column: l.columns[0],
|
1684
1523
|
table: n.table,
|
1685
1524
|
onUpdateTable: l.getTableData
|
1686
1525
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1687
|
-
], 10,
|
1688
|
-
], 10,
|
1689
|
-
(
|
1690
|
-
onClick: (
|
1691
|
-
l.changeActiveCardInfo(
|
1526
|
+
], 10, Sn)
|
1527
|
+
], 10, $n),
|
1528
|
+
(r(!0), u($, null, V((Le = l.columns) == null ? void 0 : Le.slice(1), (j) => (r(), u("td", {
|
1529
|
+
onClick: (Mn) => {
|
1530
|
+
l.changeActiveCardInfo(i == null ? void 0 : i.id), l.pushToLinkCard(j, i);
|
1692
1531
|
},
|
1693
|
-
class:
|
1694
|
-
key:
|
1532
|
+
class: w(["px-1 py-2.5 pr-5", l.getCustomStyles(j)]),
|
1533
|
+
key: j.name
|
1695
1534
|
}, [
|
1696
|
-
|
1697
|
-
row:
|
1698
|
-
column:
|
1535
|
+
x(F, {
|
1536
|
+
row: i,
|
1537
|
+
column: j,
|
1699
1538
|
table: n.table,
|
1700
1539
|
onUpdateTable: l.getTableData
|
1701
1540
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1702
|
-
], 10,
|
1703
|
-
(
|
1704
|
-
(
|
1705
|
-
)) != null &&
|
1541
|
+
], 10, Tn))), 128)),
|
1542
|
+
(qe = (ze = l.getActions) == null ? void 0 : ze.filter(
|
1543
|
+
(j) => j !== "add" && j !== "view"
|
1544
|
+
)) != null && qe.length ? (r(), u("td", {
|
1706
1545
|
key: 0,
|
1707
|
-
class:
|
1708
|
-
"bg-gray-50": ((Be = (
|
1709
|
-
"bg-white": ((
|
1546
|
+
class: w(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1547
|
+
"bg-gray-50": ((Be = (Me = e.$route) == null ? void 0 : Me.query) == null ? void 0 : Be.card) === (i == null ? void 0 : i.id) || !(M % 2),
|
1548
|
+
"bg-white": ((Oe = (Ne = e.$route) == null ? void 0 : Ne.query) == null ? void 0 : Oe.card) !== (i == null ? void 0 : i.id) && M % 2
|
1710
1549
|
}])
|
1711
1550
|
}, [
|
1712
|
-
|
1551
|
+
x(z, {
|
1713
1552
|
actions: l.getActions,
|
1714
1553
|
isForm: l.isForm,
|
1715
|
-
item:
|
1554
|
+
item: i,
|
1716
1555
|
table: n.table,
|
1717
1556
|
onUpdateTable: l.getTableData
|
1718
1557
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1719
|
-
], 2)) :
|
1558
|
+
], 2)) : k("", !0)
|
1720
1559
|
], 2);
|
1721
1560
|
}), 128))
|
1722
1561
|
]),
|
1723
|
-
|
1562
|
+
x(E, {
|
1724
1563
|
columns: l.columns,
|
1725
1564
|
agg: ($e = s.tableData) == null ? void 0 : $e.agg
|
1726
1565
|
}, null, 8, ["columns", "agg"])
|
@@ -1728,38 +1567,38 @@ function el(e, t, n, o, s, l) {
|
|
1728
1567
|
])
|
1729
1568
|
], 4)
|
1730
1569
|
], 2),
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1570
|
+
a("div", An, [
|
1571
|
+
a("div", In, [
|
1572
|
+
a("p", Dn, [
|
1573
|
+
a("span", Pn, [
|
1574
|
+
L(" Об'єктів: " + T(Intl.NumberFormat("ua").format(
|
1736
1575
|
s.limit < ((Se = s.tableData) == null ? void 0 : Se.filtered) ? s.limit : (Te = s.tableData) == null ? void 0 : Te.filtered
|
1737
1576
|
)) + " ", 1),
|
1738
|
-
s.limit < ((Ae = s.tableData) == null ? void 0 : Ae.filtered) ? (
|
1577
|
+
s.limit < ((Ae = s.tableData) == null ? void 0 : Ae.filtered) ? (r(), u("span", Vn, " з " + T(Intl.NumberFormat("ua").format(((Ie = s.tableData) == null ? void 0 : Ie.filtered) || 0)), 1)) : k("", !0)
|
1739
1578
|
])
|
1740
1579
|
])
|
1741
1580
|
]),
|
1742
|
-
Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (
|
1581
|
+
Math.ceil((De = s.tableData) == null ? void 0 : De.filtered) > 10 ? (r(), y(We, {
|
1743
1582
|
key: 0,
|
1744
1583
|
class: "justify-end mr-10",
|
1745
1584
|
"default-page": parseInt(l.defaultPage),
|
1746
|
-
total: ((
|
1585
|
+
total: ((Pe = s.tableData) == null ? void 0 : Pe.filtered) || 0,
|
1747
1586
|
onPageChange: l.handlePageChange,
|
1748
1587
|
pageSize: parseInt(s.limit),
|
1749
1588
|
pageSizes: [10, 20, 50, 100]
|
1750
|
-
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) :
|
1589
|
+
}, null, 8, ["default-page", "total", "onPageChange", "pageSize"])) : k("", !0)
|
1751
1590
|
])
|
1752
1591
|
], 2),
|
1753
|
-
|
1754
|
-
default:
|
1755
|
-
var
|
1592
|
+
x(Q, { name: "slide-fade" }, {
|
1593
|
+
default: P(() => {
|
1594
|
+
var i;
|
1756
1595
|
return [
|
1757
|
-
s.isVisibleCardInfo ? (
|
1596
|
+
s.isVisibleCardInfo ? (r(), y(He, {
|
1758
1597
|
key: 0,
|
1759
1598
|
table: n.table,
|
1760
|
-
columns: (
|
1599
|
+
columns: (i = s.tableData) == null ? void 0 : i.columns,
|
1761
1600
|
row: l.activeCardRow
|
1762
|
-
}, null, 8, ["table", "columns", "row"])) :
|
1601
|
+
}, null, 8, ["table", "columns", "row"])) : k("", !0)
|
1763
1602
|
];
|
1764
1603
|
}),
|
1765
1604
|
_: 1
|
@@ -1769,8 +1608,8 @@ function el(e, t, n, o, s, l) {
|
|
1769
1608
|
], 4)
|
1770
1609
|
]);
|
1771
1610
|
}
|
1772
|
-
const
|
1773
|
-
components: { AdminTable:
|
1611
|
+
const jn = /* @__PURE__ */ A(pn, [["render", Fn], ["__scopeId", "data-v-8574d37a"]]), Ln = {
|
1612
|
+
components: { AdminTable: jn },
|
1774
1613
|
data() {
|
1775
1614
|
return {
|
1776
1615
|
table: !1,
|
@@ -1788,7 +1627,7 @@ const tl = /* @__PURE__ */ C(jn, [["render", el], ["__scopeId", "data-v-8574d37a
|
|
1788
1627
|
},
|
1789
1628
|
title(e) {
|
1790
1629
|
var t;
|
1791
|
-
e && (document.title = (((t =
|
1630
|
+
e && (document.title = (((t = R.value) == null ? void 0 : t.titlePrefix) || "") + e);
|
1792
1631
|
}
|
1793
1632
|
},
|
1794
1633
|
async mounted() {
|
@@ -1806,8 +1645,8 @@ const tl = /* @__PURE__ */ C(jn, [["render", el], ["__scopeId", "data-v-8574d37a
|
|
1806
1645
|
const e = this.flattenMenu(Ee.value);
|
1807
1646
|
e != null && e.length || this.$router.replace("/404");
|
1808
1647
|
const t = e == null ? void 0 : e.find((l) => {
|
1809
|
-
var
|
1810
|
-
return (l == null ? void 0 : l.path) == ((g = (
|
1648
|
+
var h, g;
|
1649
|
+
return (l == null ? void 0 : l.path) == ((g = (h = this.$route) == null ? void 0 : h.params) == null ? void 0 : g.catchAll);
|
1811
1650
|
});
|
1812
1651
|
this.title = t == null ? void 0 : t.ua, t || this.$router.replace("/404"), t != null && t.component && this.$router.replace((s = (o = this.$route) == null ? void 0 : o.params) == null ? void 0 : s.catchAll);
|
1813
1652
|
const n = t == null ? void 0 : t.table;
|
@@ -1816,7 +1655,7 @@ const tl = /* @__PURE__ */ C(jn, [["render", el], ["__scopeId", "data-v-8574d37a
|
|
1816
1655
|
async getInterface() {
|
1817
1656
|
var e, t;
|
1818
1657
|
try {
|
1819
|
-
const { data: n } = await
|
1658
|
+
const { data: n } = await q.get(
|
1820
1659
|
`/api/template/interface/${((t = (e = this.$route) == null ? void 0 : e.params) == null ? void 0 : t.catchAll) || ""}`
|
1821
1660
|
);
|
1822
1661
|
this.interface = n || "";
|
@@ -1825,22 +1664,22 @@ const tl = /* @__PURE__ */ C(jn, [["render", el], ["__scopeId", "data-v-8574d37a
|
|
1825
1664
|
}
|
1826
1665
|
}
|
1827
1666
|
}
|
1828
|
-
},
|
1829
|
-
function
|
1830
|
-
const
|
1831
|
-
return s.table ? (
|
1667
|
+
}, zn = ["innerHTML"];
|
1668
|
+
function qn(e, t, n, o, s, l) {
|
1669
|
+
const h = p("AdminTable");
|
1670
|
+
return s.table ? (r(), y(h, {
|
1832
1671
|
key: 0,
|
1833
1672
|
table: s.table,
|
1834
1673
|
title: e.title,
|
1835
1674
|
search: s.search
|
1836
|
-
}, null, 8, ["table", "title", "search"])) : (
|
1675
|
+
}, null, 8, ["table", "title", "search"])) : (r(), u("div", {
|
1837
1676
|
key: 1,
|
1838
1677
|
class: "w-full bg-gray-50",
|
1839
1678
|
style: { height: "calc(100vh - 120px)" },
|
1840
1679
|
innerHTML: s.interface
|
1841
|
-
}, null, 8,
|
1680
|
+
}, null, 8, zn));
|
1842
1681
|
}
|
1843
|
-
const
|
1682
|
+
const On = /* @__PURE__ */ A(Ln, [["render", qn]]);
|
1844
1683
|
export {
|
1845
|
-
|
1684
|
+
On as default
|
1846
1685
|
};
|