@opengis/admin 0.3.23 → 0.3.25
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-2cPkdIAC.js → add-page-BI4K8Lzk.js} +1 -1
- package/dist/{admin-interface-D9Dx7QqK.js → admin-interface-DDP6KpGO.js} +226 -226
- package/dist/{admin-view-C_Ecdip-.js → admin-view-C--DkpIG.js} +3 -3
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +48 -48
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-MuS2Gqq6.js → card-view-CPwz8aJg.js} +1 -1
- package/dist/{edit-page-Dr397YuE.js → edit-page-BsDJ8lKP.js} +1 -1
- package/dist/{import-file-CcRnsq1s.js → import-file-B8gDejaq.js} +5459 -5452
- package/dist/{profile-page-BrKTAsqO.js → profile-page-C5UftUwo.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.roles.table/access.hbs +11 -11
- package/module/settings/card/admin.roles.table/general_info.hbs +9 -9
- package/module/settings/card/admin.roles.table/index.yml +22 -22
- package/module/settings/card/admin.roles.table/users.hbs +12 -12
- package/module/settings/card/admin.routes.table/general_info.hbs +13 -13
- package/module/settings/card/admin.routes.table/groups.hbs +11 -11
- package/module/settings/card/admin.routes.table/index.yml +15 -15
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- package/module/settings/card/admin.table_properties.table/custom_columns.hbs +22 -22
- package/module/settings/card/admin.table_properties.table/index.yml +12 -12
- package/module/settings/card/admin.table_properties.table/info.hbs +17 -17
- package/module/settings/card/admin.users.table/general_info.hbs +18 -18
- package/module/settings/card/admin.users.table/index.yml +20 -20
- package/module/settings/card/admin.users.table/last_login.hbs +17 -17
- package/module/settings/card/admin.users.table/logs.hbs +16 -16
- package/module/settings/card/admin.users.table/routes.hbs +13 -13
- package/module/settings/card/admin.users.table/user_roles.hbs +35 -35
- package/module/settings/cls/change_type.json +13 -13
- package/module/settings/cls/core.actions.json +17 -17
- package/module/settings/cls/core.column_type.json +14 -14
- 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.custom_column.form.json +55 -55
- package/module/settings/form/admin.properties.form.json +15 -15
- package/module/settings/form/admin.roles.form.json +21 -21
- package/module/settings/form/admin.routes.form.json +25 -25
- package/module/settings/form/admin.rules.form.json +30 -30
- package/module/settings/form/admin.table_properties.form.json +19 -19
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles.form.json +24 -24
- package/module/settings/form/admin.user_roles_card.form.json +13 -13
- package/module/settings/form/admin.users.form.json +177 -177
- package/module/settings/form/admin.users_edit.form.json +145 -145
- package/module/settings/form/context.account_grants.form.json +24 -24
- package/module/settings/form/context.account_users.form.json +12 -12
- package/module/settings/form/user.user_roles.form.json +13 -13
- package/module/settings/interface/admin.properties.json +4 -4
- package/module/settings/interface/admin.roles.json +4 -4
- package/module/settings/interface/admin.routes.json +4 -4
- package/module/settings/interface/admin.users.json +4 -4
- package/module/settings/menu.json +72 -72
- package/module/settings/select/core.routes.sql +1 -1
- package/module/settings/select/core.user_mentioned.sql +1 -1
- package/module/settings/select/core.user_uid.sql +1 -1
- package/module/settings/table/admin.accounts.table.json +49 -49
- package/module/settings/table/admin.custom_column.table.json +100 -100
- package/module/settings/table/admin.properties.table.json +39 -39
- package/module/settings/table/admin.roles.table.json +77 -77
- package/module/settings/table/admin.routes.table.json +73 -73
- package/module/settings/table/admin.rules.table.json +77 -77
- package/module/settings/table/admin.table_properties.table.json +37 -37
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/module/settings/table/admin.user_roles.table.json +74 -74
- package/module/settings/table/admin.users.table.json +135 -135
- package/module/settings/table/context.account_grants.table.json +88 -88
- package/module/settings/table/context.account_users.table.json +53 -53
- package/module/settings/table/log.table_changes.table.json +100 -100
- package/package.json +102 -102
- package/plugin.js +30 -30
- package/server/helpers/core/badge.js +16 -16
- package/server/helpers/core/buttonHelper.js +21 -21
- package/server/helpers/core/coalesce.js +7 -7
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/index.js +40 -40
- package/server/helpers/list/buttonHelper.js +21 -21
- package/server/helpers/list/descriptionList.js +45 -45
- package/server/helpers/list/tableList.js +82 -82
- package/server/helpers/list/utils/button.js +5 -5
- package/server/helpers/list/utils/buttonDel.js +12 -12
- package/server/helpers/list/utils/buttonEdit.js +14 -14
- package/server/helpers/temp/contentList.js +58 -58
- package/server/helpers/temp/ifCond.js +101 -101
- package/server/helpers/utils/button.js +5 -5
- package/server/helpers/utils/buttonAdd.js +6 -6
- package/server/helpers/utils/buttonDel.js +6 -6
- package/server/helpers/utils/buttonEdit.js +5 -5
- package/server/helpers/utils/mdToHTML.js +17 -17
- package/server/helpers/utils/paddingNumber.js +3 -3
- package/server/plugins/access/funcs/getAdminAccess.js +12 -12
- package/server/plugins/access/index.mjs +6 -6
- package/server/plugins/adminHook.js +81 -81
- package/server/plugins/cron.js +10 -10
- package/server/plugins/docs.js +28 -28
- package/server/plugins/hook.js +276 -276
- package/server/plugins/vite.js +77 -77
- 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/controllers/access.interface.js +33 -33
- 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 +127 -127
- package/server/routes/data/controllers/cardTabData.js +49 -49
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
- package/server/routes/data/controllers/tableData.js +31 -31
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +9 -9
- package/server/routes/data/controllers/tableInfo.js +112 -112
- 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/dblist/controllers/readItems.js +20 -20
- package/server/routes/dblist/controllers/setItem.js +22 -22
- package/server/routes/dblist/index.mjs +18 -18
- package/server/routes/dblist/utils/formatData.js +7 -7
- package/server/routes/menu/controllers/getMenu.js +77 -77
- package/server/routes/menu/controllers/interfaces.js +20 -20
- package/server/routes/menu/index.mjs +7 -7
- package/server/routes/notifications/controllers/readNotifications.js +27 -27
- package/server/routes/notifications/controllers/testEmail.js +35 -35
- package/server/routes/notifications/controllers/userNotifications.js +53 -53
- package/server/routes/notifications/funcs/addNotification.js +21 -21
- package/server/routes/notifications/funcs/sendNotification.js +92 -92
- package/server/routes/notifications/hook/onWidgetSet.js +56 -56
- package/server/routes/notifications/index.mjs +26 -26
- package/server/routes/notifications/schema.js +16 -16
- package/server/routes/print/controllers/cardPrint.js +135 -135
- package/server/routes/print/controllers/printTemplate.add.js +37 -37
- package/server/routes/print/controllers/printTemplate.delete.js +29 -29
- package/server/routes/print/controllers/printTemplate.edit.js +42 -42
- package/server/routes/print/controllers/printTemplate.js +67 -67
- package/server/routes/print/controllers/printTemplateList.js +19 -19
- package/server/routes/print/controllers/printTemplatePreview.js +87 -87
- package/server/routes/print/index.mjs +19 -19
- package/server/routes/properties/controllers/admin.properties.get.js +31 -31
- package/server/routes/properties/controllers/table.properties.get.js +120 -120
- package/server/routes/properties/controllers/table.properties.post.js +115 -115
- package/server/routes/properties/controllers/user.properties.get.js +19 -19
- package/server/routes/properties/controllers/user.properties.post.js +10 -10
- package/server/routes/properties/index.mjs +21 -21
- package/server/routes/properties/schema.js +10 -10
- package/server/routes/properties/utils/dataInsert.js +26 -26
- package/server/routes/properties/utils/getColumnMetaData.js +17 -17
- package/server/routes/properties/utils/refreshData.js +128 -128
- package/server/routes/report/controllers/data.js +76 -76
- package/server/routes/report/controllers/list.js +18 -18
- package/server/routes/report/index.mjs +7 -7
- package/server/routes/report/utils/formatValue.js +179 -179
- package/server/routes/report/utils/getFilterQuery.js +67 -67
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +44 -44
- 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 +72 -72
- package/server/routes/user/controllers/user.cls.post.js +54 -54
- 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/util/index.mjs +5 -5
- package/server/routes/widget/controllers/widget.del.js +63 -63
- package/server/routes/widget/controllers/widget.get.js +125 -125
- package/server/routes/widget/controllers/widget.set.js +84 -84
- package/server/routes/widget/hook/onWidgetSet.js +12 -12
- package/server/routes/widget/index.mjs +16 -16
- package/server/routes/widget/schema.js +12 -12
- package/server/templates/cls/itree.recrzone_category.json +73 -73
- package/server/templates/cls/test.json +9 -9
- package/server/templates/form/admin.profile.form.json +31 -31
- package/server/templates/form/admin.user_cls.data.form.json +49 -49
- package/server/templates/form/admin.user_group_rel.form.json +21 -21
- package/server/templates/form/cp_building.form.json +32 -32
- package/server/templates/form/form-user-pass.json +10 -10
- package/server/templates/form/form-user_group.json +39 -39
- package/server/templates/form/form-users.json +156 -156
- package/server/templates/form/user_group_access.form.json +22 -22
- package/server/templates/pt/card-print.pt.hbs +245 -245
- package/server/templates/select/account_id.json +2 -2
- package/server/templates/table/gis.dataset.table.json +43 -43
- package/server/templates/table/management.user_group.table.json +112 -112
- package/server/templates/table/management.users.table.json +126 -126
- package/utils.js +26 -26
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as T, g as
|
2
|
-
import { createElementBlock as i, openBlock as r, createTextVNode as L, createElementVNode as l, toDisplayString as S, createCommentVNode as v, normalizeClass as D, resolveComponent as h, Fragment as $, createVNode as y, withCtx as I, createBlock as k, renderList as V, withModifiers as
|
3
|
-
const
|
1
|
+
import { _ as T, g as We, h as Re, i as He, e as M, I as Ke, j as Be, k as G, V as Je, l as Ge, m as Qe, n as Xe, A as Q, o as Ye, p as Ze, q as et, r as tt, a as st, t as nt, u as qe, s as lt } from "./import-file-B8gDejaq.js";
|
2
|
+
import { createElementBlock as i, openBlock as r, createTextVNode as L, createElementVNode as l, toDisplayString as S, createCommentVNode as v, normalizeClass as D, resolveComponent as h, Fragment as $, createVNode as y, withCtx as I, createBlock as k, renderList as V, withModifiers as at, createStaticVNode as rt, withDirectives as N, vModelCheckbox as ot, Transition as R, vModelText as it, renderSlot as dt, vShow as X, Teleport as ut, getCurrentInstance as Oe, ref as K, resolveDynamicComponent as J, defineComponent as ct, withKeys as pt, normalizeStyle as H } from "vue";
|
3
|
+
const ht = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
currentSort: ""
|
@@ -61,16 +61,16 @@ const ut = {
|
|
61
61
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
62
62
|
}
|
63
63
|
}
|
64
|
-
},
|
64
|
+
}, bt = {
|
65
65
|
scope: "col",
|
66
66
|
class: "py-1 pe-2 text-start",
|
67
67
|
ref: "column"
|
68
|
-
},
|
68
|
+
}, ft = { class: "w-[24px]" }, gt = {
|
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 r(), i("th",
|
72
|
+
function mt(t, e, n, o, s, a) {
|
73
|
+
return r(), i("th", bt, [
|
74
74
|
a.getVisibleIcon ? (r(), i("button", {
|
75
75
|
key: 0,
|
76
76
|
type: "button",
|
@@ -78,7 +78,7 @@ function bt(t, e, n, o, s, a) {
|
|
78
78
|
onClick: e[0] || (e[0] = (c) => a.handleClickSortBtn(s.currentSort))
|
79
79
|
}, [
|
80
80
|
L(S(a.label) + " ", 1),
|
81
|
-
l("span",
|
81
|
+
l("span", ft, [
|
82
82
|
s.currentSort ? (r(), i("svg", {
|
83
83
|
key: 0,
|
84
84
|
class: D(["shrink-0 size-3.5", { "rotate-180": s.currentSort === "asc" }]),
|
@@ -96,14 +96,14 @@ function bt(t, e, n, o, s, a) {
|
|
96
96
|
l("path", { d: "M12 19V5" }, null, -1)
|
97
97
|
]), 2)) : v("", !0)
|
98
98
|
])
|
99
|
-
])) : (r(), i("p",
|
99
|
+
])) : (r(), i("p", gt, S(a.label), 1))
|
100
100
|
], 512);
|
101
101
|
}
|
102
|
-
const
|
102
|
+
const xt = /* @__PURE__ */ T(ht, [["render", mt]]), yt = {
|
103
103
|
components: {
|
104
|
-
IconMore:
|
105
|
-
IconDelete:
|
106
|
-
IconEdit:
|
104
|
+
IconMore: He,
|
105
|
+
IconDelete: Re,
|
106
|
+
IconEdit: We
|
107
107
|
},
|
108
108
|
emits: ["updateTable"],
|
109
109
|
props: {
|
@@ -182,20 +182,20 @@ const ft = /* @__PURE__ */ T(ut, [["render", bt]]), gt = {
|
|
182
182
|
}), await this.$emit("update-table"));
|
183
183
|
}
|
184
184
|
}
|
185
|
-
},
|
185
|
+
}, 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" }, Ct = ["onClick"], wt = { class: "text-gray-800" }, $t = {
|
186
186
|
key: 1,
|
187
187
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
188
|
-
},
|
189
|
-
function
|
188
|
+
}, Tt = { class: "flex justify-end p-[16px] pr-0 gap-x-3" };
|
189
|
+
function At(t, e, n, o, s, a) {
|
190
190
|
const c = h("IconMore"), g = h("IconEdit"), p = h("router-link"), b = h("IconDelete"), d = h("VsPopover"), _ = h("VsConfirm");
|
191
191
|
return r(), i($, null, [
|
192
|
-
l("div",
|
192
|
+
l("div", kt, [
|
193
193
|
y(d, {
|
194
194
|
trigger: "click",
|
195
195
|
placement: "bottom-left"
|
196
196
|
}, {
|
197
197
|
reference: I(() => [
|
198
|
-
l("button",
|
198
|
+
l("button", vt, [
|
199
199
|
y(c, {
|
200
200
|
height: "16",
|
201
201
|
width: "16"
|
@@ -205,7 +205,7 @@ function wt(t, e, n, o, s, a) {
|
|
205
205
|
default: I(() => {
|
206
206
|
var x, f, C, m, w;
|
207
207
|
return [
|
208
|
-
l("div",
|
208
|
+
l("div", _t, [
|
209
209
|
(x = n.actions) != null && x.includes("edit") && n.isForm ? (r(), k(p, {
|
210
210
|
key: 0,
|
211
211
|
to: `/edit?table=${(C = (f = t.$route) == null ? void 0 : f.params) == null ? void 0 : C.catchAll}&id=${(m = n.item) == null ? void 0 : m.id}`,
|
@@ -223,12 +223,12 @@ function wt(t, e, n, o, s, a) {
|
|
223
223
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
224
224
|
}, [
|
225
225
|
y(b, { class: "opacity-0" }),
|
226
|
-
l("span",
|
227
|
-
], 8,
|
228
|
-
n.isForm ? (r(), i("div",
|
226
|
+
l("span", wt, S(A == null ? void 0 : A.label), 1)
|
227
|
+
], 8, Ct))), 128)),
|
228
|
+
n.isForm ? (r(), i("div", $t)) : v("", !0),
|
229
229
|
(w = n.actions) != null && w.includes("del") ? (r(), i("button", {
|
230
230
|
key: 2,
|
231
|
-
onClick: e[0] || (e[0] =
|
231
|
+
onClick: e[0] || (e[0] = at((...A) => a.openConfirm && a.openConfirm(...A), ["stop"])),
|
232
232
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
233
233
|
}, [
|
234
234
|
y(b),
|
@@ -248,7 +248,7 @@ function wt(t, e, n, o, s, a) {
|
|
248
248
|
}, {
|
249
249
|
default: I(() => [
|
250
250
|
e[6] || (e[6] = l("p", { class: "mt-1 text-sm text-gray-600 dark:text-neutral-400" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
251
|
-
l("div",
|
251
|
+
l("div", Tt, [
|
252
252
|
l("button", {
|
253
253
|
type: "button",
|
254
254
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium duration-300 border rounded-lg shadow-sm hover:bg-gray-100 gap-x-2 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
|
@@ -265,7 +265,7 @@ function wt(t, e, n, o, s, a) {
|
|
265
265
|
}, 8, ["visible"])
|
266
266
|
], 64);
|
267
267
|
}
|
268
|
-
const
|
268
|
+
const St = /* @__PURE__ */ T(yt, [["render", At]]), It = {}, Dt = {
|
269
269
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
270
270
|
xmlns: "http://www.w3.org/2000/svg",
|
271
271
|
viewBox: "0 0 24 24",
|
@@ -275,15 +275,15 @@ const $t = /* @__PURE__ */ T(gt, [["render", wt]]), Tt = {}, At = {
|
|
275
275
|
"stroke-linecap": "round",
|
276
276
|
"stroke-linejoin": "round"
|
277
277
|
};
|
278
|
-
function
|
279
|
-
return r(), i("svg",
|
278
|
+
function Vt(t, e, n, o, s, a) {
|
279
|
+
return r(), i("svg", Dt, e[0] || (e[0] = [
|
280
280
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
281
281
|
l("path", { d: "M7 20V4" }, null, -1),
|
282
282
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
283
283
|
l("path", { d: "M17 4v16" }, null, -1)
|
284
284
|
]));
|
285
285
|
}
|
286
|
-
const
|
286
|
+
const Pt = /* @__PURE__ */ T(It, [["render", Vt]]), Ft = {}, jt = {
|
287
287
|
xmlns: "http://www.w3.org/2000/svg",
|
288
288
|
width: "24",
|
289
289
|
height: "24",
|
@@ -295,8 +295,8 @@ const It = /* @__PURE__ */ T(Tt, [["render", St]]), Dt = {}, Vt = {
|
|
295
295
|
"stroke-linejoin": "round",
|
296
296
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
297
297
|
};
|
298
|
-
function
|
299
|
-
return r(), i("svg",
|
298
|
+
function Lt(t, e, n, o, s, a) {
|
299
|
+
return r(), i("svg", jt, e[0] || (e[0] = [
|
300
300
|
l("path", {
|
301
301
|
stroke: "none",
|
302
302
|
d: "M0 0h24v24H0z",
|
@@ -306,8 +306,8 @@ function Pt(t, e, n, o, s, a) {
|
|
306
306
|
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
307
307
|
]));
|
308
308
|
}
|
309
|
-
const
|
310
|
-
components: { IconExport:
|
309
|
+
const Mt = /* @__PURE__ */ T(Ft, [["render", Lt]]), zt = {
|
310
|
+
components: { IconExport: Pt, IconChevronDown: Ke, IconSuccess: Mt },
|
311
311
|
props: {
|
312
312
|
table: String,
|
313
313
|
columns: Array,
|
@@ -409,23 +409,23 @@ const Ft = /* @__PURE__ */ T(Dt, [["render", Pt]]), jt = {
|
|
409
409
|
this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((n) => (n == null ? void 0 : n.hidden) !== !0)) == null ? void 0 : e.map((n) => n == null ? void 0 : n.name), this.activeAction = "choceVisible";
|
410
410
|
}
|
411
411
|
}
|
412
|
-
},
|
412
|
+
}, qt = {
|
413
413
|
key: 0,
|
414
414
|
class: "flex flex-col items-center"
|
415
|
-
},
|
415
|
+
}, Bt = {
|
416
416
|
key: 1,
|
417
417
|
class: "p-4"
|
418
|
-
},
|
418
|
+
}, Ot = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Nt = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Et = ["onClick"], Ut = {
|
419
419
|
key: 0,
|
420
420
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
421
|
-
},
|
421
|
+
}, Wt = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Rt = { 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" }, Kt = ["id", "onChange"], Jt = ["for"], Gt = {
|
422
422
|
key: 0,
|
423
423
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
424
|
-
},
|
424
|
+
}, Qt = {
|
425
425
|
key: 1,
|
426
426
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
427
427
|
};
|
428
|
-
function
|
428
|
+
function Xt(t, e, n, o, s, a) {
|
429
429
|
const c = h("IconExport"), g = h("IconSuccess"), p = h("VsCheckbox"), b = h("VsDialog");
|
430
430
|
return r(), i($, null, [
|
431
431
|
l("button", {
|
@@ -446,7 +446,7 @@ function Jt(t, e, n, o, s, a) {
|
|
446
446
|
closeClickBack: !0
|
447
447
|
}, {
|
448
448
|
footer: I(() => [
|
449
|
-
s.isSuccessTemplate ? (r(), i("div",
|
449
|
+
s.isSuccessTemplate ? (r(), i("div", Gt, [
|
450
450
|
l("button", {
|
451
451
|
type: "button",
|
452
452
|
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",
|
@@ -457,7 +457,7 @@ function Jt(t, e, n, o, s, a) {
|
|
457
457
|
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",
|
458
458
|
onClick: e[3] || (e[3] = (d) => s.isSuccessTemplate = !1)
|
459
459
|
}, " Вигрузити ще ")
|
460
|
-
])) : (r(), i("div",
|
460
|
+
])) : (r(), i("div", Qt, [
|
461
461
|
l("button", {
|
462
462
|
type: "button",
|
463
463
|
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",
|
@@ -471,17 +471,17 @@ function Jt(t, e, n, o, s, a) {
|
|
471
471
|
]))
|
472
472
|
]),
|
473
473
|
default: I(() => [
|
474
|
-
s.isSuccessTemplate ? (r(), i("div",
|
474
|
+
s.isSuccessTemplate ? (r(), i("div", qt, [
|
475
475
|
y(g, {
|
476
476
|
height: "100",
|
477
477
|
width: "100",
|
478
478
|
class: "text-green-200 mb-[20px]"
|
479
479
|
}),
|
480
480
|
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
481
|
-
])) : (r(), i("div",
|
482
|
-
l("div",
|
481
|
+
])) : (r(), i("div", Bt, [
|
482
|
+
l("div", Ot, [
|
483
483
|
e[9] || (e[9] = l("h2", { class: "text-sm font-[600] text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
484
|
-
l("div",
|
484
|
+
l("div", Nt, [
|
485
485
|
(r(!0), i($, null, V(s.actions, (d) => (r(), i("button", {
|
486
486
|
key: d == null ? void 0 : d.name,
|
487
487
|
onClick: d == null ? void 0 : d.function,
|
@@ -490,12 +490,12 @@ function Jt(t, e, n, o, s, a) {
|
|
490
490
|
l("span", {
|
491
491
|
class: D(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (d == null ? void 0 : d.name) === s.activeAction }])
|
492
492
|
}, [
|
493
|
-
(d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span",
|
493
|
+
(d == null ? void 0 : d.name) === s.activeAction ? (r(), i("span", Ut)) : v("", !0)
|
494
494
|
], 2),
|
495
495
|
L(" " + S(d == null ? void 0 : d.label), 1)
|
496
|
-
], 8,
|
496
|
+
], 8, Et))), 128))
|
497
497
|
]),
|
498
|
-
l("div",
|
498
|
+
l("div", Wt, [
|
499
499
|
(r(!0), i($, null, V(n.columns, (d, _) => (r(), i("div", {
|
500
500
|
class: "flex items-center",
|
501
501
|
key: _,
|
@@ -511,9 +511,9 @@ function Jt(t, e, n, o, s, a) {
|
|
511
511
|
]))), 128))
|
512
512
|
])
|
513
513
|
]),
|
514
|
-
l("div",
|
514
|
+
l("div", Rt, [
|
515
515
|
e[10] || (e[10] = l("h2", { class: "text-sm font-[600] text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
516
|
-
l("div",
|
516
|
+
l("div", Ht, [
|
517
517
|
(r(!0), i($, null, V(s.tableFormats, (d, _) => (r(), i("div", {
|
518
518
|
class: "flex items-center",
|
519
519
|
key: _
|
@@ -524,11 +524,11 @@ function Jt(t, e, n, o, s, a) {
|
|
524
524
|
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",
|
525
525
|
id: d,
|
526
526
|
onChange: (x) => a.selectFormat(d)
|
527
|
-
}, null, 40,
|
527
|
+
}, null, 40, Kt),
|
528
528
|
l("label", {
|
529
529
|
for: d,
|
530
530
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
531
|
-
}, " Формат " + S(d), 9,
|
531
|
+
}, " Формат " + S(d), 9, Jt)
|
532
532
|
]))), 128))
|
533
533
|
])
|
534
534
|
])
|
@@ -538,7 +538,7 @@ function Jt(t, e, n, o, s, a) {
|
|
538
538
|
}, 8, ["visible"])
|
539
539
|
], 64);
|
540
540
|
}
|
541
|
-
const
|
541
|
+
const Yt = /* @__PURE__ */ T(zt, [["render", Xt]]), Zt = {}, es = {
|
542
542
|
xmlns: "http://www.w3.org/2000/svg",
|
543
543
|
viewBox: "0 0 24 24",
|
544
544
|
fill: "none",
|
@@ -548,16 +548,16 @@ const Gt = /* @__PURE__ */ T(jt, [["render", Jt]]), Qt = {}, Xt = {
|
|
548
548
|
"stroke-linejoin": "round",
|
549
549
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
550
550
|
};
|
551
|
-
function
|
552
|
-
return r(), i("svg",
|
553
|
-
|
551
|
+
function ts(t, e, n, o, s, a) {
|
552
|
+
return r(), i("svg", es, e[0] || (e[0] = [
|
553
|
+
rt('<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)
|
554
554
|
]));
|
555
555
|
}
|
556
|
-
const
|
556
|
+
const ss = /* @__PURE__ */ T(Zt, [["render", ts]]), ns = {
|
557
557
|
props: { column: Object },
|
558
558
|
emits: ["update-column"],
|
559
559
|
components: {
|
560
|
-
IconCheck2:
|
560
|
+
IconCheck2: Be
|
561
561
|
},
|
562
562
|
data() {
|
563
563
|
return {
|
@@ -573,19 +573,19 @@ const Zt = /* @__PURE__ */ T(Qt, [["render", Yt]]), es = {
|
|
573
573
|
var t;
|
574
574
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
575
575
|
}
|
576
|
-
},
|
577
|
-
function
|
576
|
+
}, ls = { 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" }, as = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300" };
|
577
|
+
function rs(t, e, n, o, s, a) {
|
578
578
|
var g, p;
|
579
579
|
const c = h("IconCheck2");
|
580
|
-
return r(), i("div",
|
581
|
-
l("label",
|
580
|
+
return r(), i("div", ls, [
|
581
|
+
l("label", as, [
|
582
582
|
L(S(((g = n.column) == null ? void 0 : g.ua) || ((p = n.column) == null ? void 0 : p.title)) + " ", 1),
|
583
583
|
N(l("input", {
|
584
584
|
type: "checkbox",
|
585
585
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => s.value = b),
|
586
586
|
class: "hidden"
|
587
587
|
}, null, 512), [
|
588
|
-
[
|
588
|
+
[ot, s.value]
|
589
589
|
]),
|
590
590
|
l("span", {
|
591
591
|
class: D(["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"]])
|
@@ -598,8 +598,8 @@ function ns(t, e, n, o, s, a) {
|
|
598
598
|
])
|
599
599
|
]);
|
600
600
|
}
|
601
|
-
const
|
602
|
-
components: { IconColumns:
|
601
|
+
const os = /* @__PURE__ */ T(ns, [["render", rs]]), is = {
|
602
|
+
components: { IconColumns: ss, AdminTableColumnsHiddenItem: os },
|
603
603
|
emits: ["update-columns"],
|
604
604
|
props: { columns: Array },
|
605
605
|
data() {
|
@@ -635,22 +635,22 @@ const ls = /* @__PURE__ */ T(es, [["render", ns]]), as = {
|
|
635
635
|
beforeUnmount() {
|
636
636
|
document.removeEventListener("click", this.handleClickOutside);
|
637
637
|
}
|
638
|
-
},
|
638
|
+
}, ds = {
|
639
639
|
class: "relative",
|
640
640
|
ref: "wrapper"
|
641
|
-
},
|
641
|
+
}, us = {
|
642
642
|
key: 0,
|
643
643
|
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"
|
644
|
-
},
|
644
|
+
}, cs = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, ps = { 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" }, hs = {
|
645
645
|
key: 0,
|
646
646
|
class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500"
|
647
|
-
},
|
647
|
+
}, bs = { class: "space-y-1" }, fs = {
|
648
648
|
key: 1,
|
649
649
|
class: "flex items-center px-3 text-[13px] py-1.5 px-3 rounded-md cursor-pointer group"
|
650
650
|
};
|
651
|
-
function
|
651
|
+
function gs(t, e, n, o, s, a) {
|
652
652
|
const c = h("IconColumns"), g = h("AdminTableColumnsHiddenItem");
|
653
|
-
return r(), i("div",
|
653
|
+
return r(), i("div", ds, [
|
654
654
|
l("button", {
|
655
655
|
onClick: e[0] || (e[0] = (...p) => a.toggleVisible && a.toggleVisible(...p)),
|
656
656
|
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"
|
@@ -664,9 +664,9 @@ function hs(t, e, n, o, s, a) {
|
|
664
664
|
default: I(() => {
|
665
665
|
var p, b;
|
666
666
|
return [
|
667
|
-
s.visible ? (r(), i("div",
|
667
|
+
s.visible ? (r(), i("div", us, [
|
668
668
|
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)),
|
669
|
-
l("div",
|
669
|
+
l("div", cs, [
|
670
670
|
N(l("input", {
|
671
671
|
"onUpdate:modelValue": e[1] || (e[1] = (d) => s.searchValue = d),
|
672
672
|
type: "text",
|
@@ -674,17 +674,17 @@ function hs(t, e, n, o, s, a) {
|
|
674
674
|
placeholder: "Пошук",
|
675
675
|
autofocus: ""
|
676
676
|
}, null, 512), [
|
677
|
-
[
|
677
|
+
[it, s.searchValue]
|
678
678
|
])
|
679
679
|
]),
|
680
|
-
l("div",
|
681
|
-
(p = a.filteredColumn) != null && p.length ? (r(), i("span",
|
682
|
-
l("div",
|
680
|
+
l("div", ps, [
|
681
|
+
(p = a.filteredColumn) != null && p.length ? (r(), i("span", hs, " Оберіть колонки для відображення ")) : v("", !0),
|
682
|
+
l("div", bs, [
|
683
683
|
(b = a.filteredColumn) != null && b.length ? (r(!0), i($, { key: 0 }, V(a.filteredColumn, (d, _) => (r(), k(g, {
|
684
684
|
key: _,
|
685
685
|
column: d,
|
686
686
|
onUpdateColumn: a.updateColumn
|
687
|
-
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div",
|
687
|
+
}, null, 8, ["column", "onUpdateColumn"]))), 128)) : (r(), i("div", fs, " Нічого не знайдено "))
|
688
688
|
])
|
689
689
|
])
|
690
690
|
])) : v("", !0)
|
@@ -694,7 +694,7 @@ function hs(t, e, n, o, s, a) {
|
|
694
694
|
})
|
695
695
|
], 512);
|
696
696
|
}
|
697
|
-
const
|
697
|
+
const ms = /* @__PURE__ */ T(is, [["render", gs]]), xs = {}, ys = {
|
698
698
|
xmlns: "http://www.w3.org/2000/svg",
|
699
699
|
viewBox: "0 0 24 24",
|
700
700
|
fill: "none",
|
@@ -704,8 +704,8 @@ const bs = /* @__PURE__ */ T(as, [["render", hs]]), fs = {}, gs = {
|
|
704
704
|
"stroke-linejoin": "round",
|
705
705
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
706
706
|
};
|
707
|
-
function
|
708
|
-
return r(), i("svg",
|
707
|
+
function ks(t, e, n, o, s, a) {
|
708
|
+
return r(), i("svg", ys, e[0] || (e[0] = [
|
709
709
|
l("path", {
|
710
710
|
stroke: "none",
|
711
711
|
d: "M0 0h24v24H0z",
|
@@ -714,8 +714,8 @@ function ms(t, e, n, o, s, a) {
|
|
714
714
|
l("path", { d: "M5 12l14 0" }, null, -1)
|
715
715
|
]));
|
716
716
|
}
|
717
|
-
const
|
718
|
-
components: { IconPlus: G, IconMinus:
|
717
|
+
const vs = /* @__PURE__ */ T(xs, [["render", ks]]), _s = {
|
718
|
+
components: { IconPlus: G, IconMinus: vs },
|
719
719
|
props: {
|
720
720
|
title: String,
|
721
721
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -723,18 +723,18 @@ const xs = /* @__PURE__ */ T(fs, [["render", ms]]), ys = {
|
|
723
723
|
data() {
|
724
724
|
return { expanded: this.defaultValue };
|
725
725
|
}
|
726
|
-
},
|
727
|
-
function
|
726
|
+
}, Cs = { class: "hs-accordion" }, ws = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, $s = { class: "text-sm font-medium" }, Ts = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
727
|
+
function As(t, e, n, o, s, a) {
|
728
728
|
const c = h("IconPlus"), g = h("IconMinus");
|
729
729
|
return r(), i("div", null, [
|
730
730
|
l("div", null, [
|
731
|
-
l("div",
|
732
|
-
l("div",
|
731
|
+
l("div", Cs, [
|
732
|
+
l("div", ws, [
|
733
733
|
l("div", {
|
734
734
|
onClick: e[0] || (e[0] = (p) => s.expanded = !s.expanded),
|
735
735
|
class: "rounded-md cursor-pointer grow"
|
736
736
|
}, [
|
737
|
-
l("span",
|
737
|
+
l("span", $s, S(n.title), 1)
|
738
738
|
]),
|
739
739
|
l("button", {
|
740
740
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
@@ -748,8 +748,8 @@ function ws(t, e, n, o, s, a) {
|
|
748
748
|
]),
|
749
749
|
y(R, { name: "fade" }, {
|
750
750
|
default: I(() => [
|
751
|
-
N(l("div",
|
752
|
-
|
751
|
+
N(l("div", Ts, [
|
752
|
+
dt(t.$slots, "default", {}, void 0, !0)
|
753
753
|
], 512), [
|
754
754
|
[X, s.expanded]
|
755
755
|
])
|
@@ -760,31 +760,31 @@ function ws(t, e, n, o, s, a) {
|
|
760
760
|
])
|
761
761
|
]);
|
762
762
|
}
|
763
|
-
const
|
763
|
+
const Ss = /* @__PURE__ */ T(_s, [["render", As], ["__scopeId", "data-v-c6318482"]]), Is = {
|
764
764
|
components: {
|
765
765
|
AdminComponentIs: Q,
|
766
|
-
AdminTree:
|
767
|
-
VsNoData:
|
768
|
-
VsWidgetComments:
|
769
|
-
VsWidgetMap:
|
770
|
-
VsWidgetFileList:
|
766
|
+
AdminTree: Ss,
|
767
|
+
VsNoData: Xe,
|
768
|
+
VsWidgetComments: Qe,
|
769
|
+
VsWidgetMap: Ge,
|
770
|
+
VsWidgetFileList: Je
|
771
771
|
},
|
772
772
|
props: { table: String, columns: Array, row: Object }
|
773
|
-
},
|
773
|
+
}, Ds = {
|
774
774
|
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",
|
775
775
|
style: { height: "calc(100vh - 310px)" }
|
776
|
-
},
|
776
|
+
}, Vs = {
|
777
777
|
class: "border-l",
|
778
778
|
style: { height: "calc(100vh - 360px)" }
|
779
|
-
},
|
780
|
-
function
|
779
|
+
}, Ps = { class: "flow-root mt-[10px]" }, Fs = { class: "-my-3 text-sm divide-y divide-gray-100" }, js = { class: "flex py-3 sm:grid-cols-3 sm:gap-4" }, Ls = { class: "font-medium text-black w-[50%]" }, Ms = { class: "text-gray-700 sm:col-span-2 w-[50%]" }, zs = { class: "table-info-card" }, qs = { class: "table-info-card" };
|
780
|
+
function Bs(t, e, n, o, s, a) {
|
781
781
|
var x, f, C;
|
782
782
|
const c = h("AdminComponentIs"), g = h("AdminTree"), p = h("VsWidgetMap"), b = h("VsNoData"), d = h("VsWidgetComments"), _ = h("VsWidgetFileList");
|
783
|
-
return r(), i("div",
|
783
|
+
return r(), i("div", Ds, [
|
784
784
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
785
785
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
786
786
|
], -1)),
|
787
|
-
l("div",
|
787
|
+
l("div", Vs, [
|
788
788
|
(f = (x = t.$route) == null ? void 0 : x.query) != null && f.card ? (r(), i($, { key: 0 }, [
|
789
789
|
n.row ? (r(), k(g, {
|
790
790
|
key: 0,
|
@@ -793,11 +793,11 @@ function Ms(t, e, n, o, s, a) {
|
|
793
793
|
class: "border-b p-[10px] py-[16px]"
|
794
794
|
}, {
|
795
795
|
default: I(() => [
|
796
|
-
l("div",
|
797
|
-
l("dl",
|
798
|
-
(r(!0), i($, null, V(n.columns, (m) => (r(), i("div",
|
799
|
-
l("dt",
|
800
|
-
l("dd",
|
796
|
+
l("div", Ps, [
|
797
|
+
l("dl", Fs, [
|
798
|
+
(r(!0), i($, null, V(n.columns, (m) => (r(), i("div", js, [
|
799
|
+
l("dt", Ls, S((m == null ? void 0 : m.ua) || (m == null ? void 0 : m.title)), 1),
|
800
|
+
l("dd", Ms, [
|
801
801
|
y(c, {
|
802
802
|
row: n.row,
|
803
803
|
column: m,
|
@@ -839,7 +839,7 @@ function Ms(t, e, n, o, s, a) {
|
|
839
839
|
default: I(() => {
|
840
840
|
var m;
|
841
841
|
return [
|
842
|
-
l("div",
|
842
|
+
l("div", zs, [
|
843
843
|
y(d, {
|
844
844
|
id: (m = n.row) == null ? void 0 : m.id
|
845
845
|
}, null, 8, ["id"])
|
@@ -855,7 +855,7 @@ function Ms(t, e, n, o, s, a) {
|
|
855
855
|
default: I(() => {
|
856
856
|
var m, w;
|
857
857
|
return [
|
858
|
-
l("div",
|
858
|
+
l("div", qs, [
|
859
859
|
(r(), k(_, {
|
860
860
|
key: (m = n.row) == null ? void 0 : m.id,
|
861
861
|
id: (w = n.row) == null ? void 0 : w.id
|
@@ -872,14 +872,14 @@ function Ms(t, e, n, o, s, a) {
|
|
872
872
|
])
|
873
873
|
]);
|
874
874
|
}
|
875
|
-
const
|
875
|
+
const Os = /* @__PURE__ */ T(Is, [["render", Bs]]), Ns = {
|
876
876
|
emits: ["filterChange"],
|
877
877
|
props: {
|
878
878
|
scheme: { type: Object },
|
879
879
|
onFilters: { type: Number },
|
880
880
|
table: { type: String }
|
881
881
|
},
|
882
|
-
components: { IconFilter:
|
882
|
+
components: { IconFilter: Ye },
|
883
883
|
data() {
|
884
884
|
return {
|
885
885
|
isFilters: !1
|
@@ -890,11 +890,11 @@ const zs = /* @__PURE__ */ T(Ts, [["render", Ms]]), qs = {
|
|
890
890
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
891
891
|
}
|
892
892
|
}
|
893
|
-
},
|
893
|
+
}, Es = {
|
894
894
|
key: 0,
|
895
895
|
class: "px-[7px] text-[10px] py-[1px] font-[700] text-white bg-blue-500 rounded-full"
|
896
|
-
},
|
897
|
-
function
|
896
|
+
}, Us = { 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" };
|
897
|
+
function Ws(t, e, n, o, s, a) {
|
898
898
|
const c = h("IconFilter"), g = h("VsFilter");
|
899
899
|
return r(), i($, null, [
|
900
900
|
l("button", {
|
@@ -906,19 +906,19 @@ function Ns(t, e, n, o, s, a) {
|
|
906
906
|
width: "16"
|
907
907
|
}),
|
908
908
|
e[4] || (e[4] = L(" Фільтри ")),
|
909
|
-
n.onFilters ? (r(), i("span",
|
909
|
+
n.onFilters ? (r(), i("span", Es, S(n.onFilters), 1)) : v("", !0)
|
910
910
|
]),
|
911
911
|
y(R, { name: "fade" }, {
|
912
912
|
default: I(() => {
|
913
913
|
var p;
|
914
914
|
return [
|
915
|
-
(r(), k(
|
915
|
+
(r(), k(ut, { to: "#modal" }, [
|
916
916
|
N(l("div", {
|
917
917
|
onClick: e[3] || (e[3] = (...b) => a.closeFilter && a.closeFilter(...b)),
|
918
918
|
style: { height: "100vh" },
|
919
919
|
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)]"
|
920
920
|
}, [
|
921
|
-
l("div",
|
921
|
+
l("div", Us, [
|
922
922
|
(p = n.scheme) != null && p.length ? (r(), k(g, {
|
923
923
|
key: 0,
|
924
924
|
ref: "filter",
|
@@ -945,25 +945,25 @@ function Ns(t, e, n, o, s, a) {
|
|
945
945
|
})
|
946
946
|
], 64);
|
947
947
|
}
|
948
|
-
const
|
948
|
+
const Rs = /* @__PURE__ */ T(Ns, [["render", Ws]]), Hs = {
|
949
949
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
950
|
-
},
|
950
|
+
}, Ks = {
|
951
951
|
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",
|
952
952
|
"aria-label": "Tabs",
|
953
953
|
role: "tablist",
|
954
954
|
"aria-orientation": "horizontal"
|
955
|
-
},
|
956
|
-
function
|
957
|
-
return r(), i("nav",
|
955
|
+
}, Js = ["onClick"];
|
956
|
+
function Gs(t, e, n, o, s, a) {
|
957
|
+
return r(), i("nav", Ks, [
|
958
958
|
(r(!0), i($, null, V(n.tabsList, (c) => (r(), i("button", {
|
959
959
|
onClick: (g) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
960
960
|
class: D(["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", {
|
961
961
|
" 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
|
962
962
|
}])
|
963
|
-
}, S(c == null ? void 0 : c.label), 11,
|
963
|
+
}, S(c == null ? void 0 : c.label), 11, Js))), 256))
|
964
964
|
]);
|
965
965
|
}
|
966
|
-
const
|
966
|
+
const Qs = /* @__PURE__ */ T(Hs, [["render", Gs]]), Xs = {}, Ys = {
|
967
967
|
xmlns: "http://www.w3.org/2000/svg",
|
968
968
|
viewBox: "0 0 24 24",
|
969
969
|
fill: "none",
|
@@ -973,8 +973,8 @@ const Ks = /* @__PURE__ */ T(Us, [["render", Hs]]), Js = {}, Gs = {
|
|
973
973
|
"stroke-linejoin": "round",
|
974
974
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
975
975
|
};
|
976
|
-
function
|
977
|
-
return r(), i("svg",
|
976
|
+
function Zs(t, e, n, o, s, a) {
|
977
|
+
return r(), i("svg", Ys, e[0] || (e[0] = [
|
978
978
|
l("path", {
|
979
979
|
stroke: "none",
|
980
980
|
d: "M0 0h24v24H0z",
|
@@ -983,18 +983,18 @@ function Qs(t, e, n, o, s, a) {
|
|
983
983
|
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)
|
984
984
|
]));
|
985
985
|
}
|
986
|
-
const
|
987
|
-
components: { IconFilter2:
|
986
|
+
const en = /* @__PURE__ */ T(Xs, [["render", Zs]]), tn = {
|
987
|
+
components: { IconFilter2: en, IconCheck2: Be },
|
988
988
|
props: { filterCustom: String, customList: Array }
|
989
|
-
},
|
990
|
-
function
|
989
|
+
}, sn = { 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" }, nn = { class: "flex flex-col p-[2px] gap-[2px] w-[170px]" }, ln = ["onClick"], an = { class: "text-sm text-gray-800" };
|
990
|
+
function rn(t, e, n, o, s, a) {
|
991
991
|
const c = h("IconFilter2"), g = h("IconCheck2"), p = h("VsPopover");
|
992
992
|
return r(), k(p, {
|
993
993
|
ref: "popover",
|
994
994
|
placement: "bottom"
|
995
995
|
}, {
|
996
996
|
reference: I(() => [
|
997
|
-
l("button",
|
997
|
+
l("button", sn, [
|
998
998
|
y(c, {
|
999
999
|
height: "20",
|
1000
1000
|
width: "20"
|
@@ -1002,7 +1002,7 @@ function nn(t, e, n, o, s, a) {
|
|
1002
1002
|
])
|
1003
1003
|
]),
|
1004
1004
|
default: I(() => [
|
1005
|
-
l("div",
|
1005
|
+
l("div", nn, [
|
1006
1006
|
(r(!0), i($, null, V(n.customList, (b, d) => (r(), i("button", {
|
1007
1007
|
onClick: (_) => {
|
1008
1008
|
var x;
|
@@ -1011,12 +1011,12 @@ function nn(t, e, n, o, s, a) {
|
|
1011
1011
|
key: d,
|
1012
1012
|
class: D(["flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100", { "bg-gray-100": n.filterCustom === (b == null ? void 0 : b.name) }])
|
1013
1013
|
}, [
|
1014
|
-
l("span",
|
1014
|
+
l("span", an, S(b == null ? void 0 : b.label), 1),
|
1015
1015
|
n.filterCustom === (b == null ? void 0 : b.name) ? (r(), k(g, {
|
1016
1016
|
key: 0,
|
1017
1017
|
class: "ml-auto size-3 shrink-0"
|
1018
1018
|
})) : v("", !0)
|
1019
|
-
], 10,
|
1019
|
+
], 10, ln))), 128)),
|
1020
1020
|
l("button", {
|
1021
1021
|
class: "flex items-center px-3 py-1 rounded-md cursor-pointer group hover:bg-gray-100",
|
1022
1022
|
onClick: e[0] || (e[0] = (b) => {
|
@@ -1029,7 +1029,7 @@ function nn(t, e, n, o, s, a) {
|
|
1029
1029
|
_: 1
|
1030
1030
|
}, 512);
|
1031
1031
|
}
|
1032
|
-
const
|
1032
|
+
const on = /* @__PURE__ */ T(tn, [["render", rn]]), dn = { class: "flex items-center gap-x-2" }, un = {
|
1033
1033
|
__name: "admin-table-custom-buttons",
|
1034
1034
|
props: {
|
1035
1035
|
slots: Object,
|
@@ -1037,7 +1037,7 @@ const ln = /* @__PURE__ */ T(Ys, [["render", nn]]), an = { class: "flex items-ce
|
|
1037
1037
|
},
|
1038
1038
|
setup(t) {
|
1039
1039
|
var g, p, b, d, _;
|
1040
|
-
const { asyncTemplateSlot: e } = (_ = (d = (b = (p = (g =
|
1040
|
+
const { asyncTemplateSlot: e } = (_ = (d = (b = (p = (g = Oe()) == null ? void 0 : g.appContext) == null ? void 0 : p.app) == null ? void 0 : b.config) == null ? void 0 : d.globalProperties) == null ? void 0 : _.utils, n = K(""), o = K(""), s = t, a = () => {
|
1041
1041
|
var x, f, C, m, w;
|
1042
1042
|
if ((x = s.slots) != null && x.panelLeft || (o.value = "div"), (C = (f = s.slots) == null ? void 0 : f.panelLeft) != null && C.includes("<")) {
|
1043
1043
|
const A = e("PanelLeft", (m = s.slots) == null ? void 0 : m.panelLeft, [
|
@@ -1056,19 +1056,19 @@ const ln = /* @__PURE__ */ T(Ys, [["render", nn]]), an = { class: "flex items-ce
|
|
1056
1056
|
} else
|
1057
1057
|
n.value = (w = s.slots) == null ? void 0 : w.panelRight;
|
1058
1058
|
};
|
1059
|
-
return a(), c(), (x, f) => (r(), i("div",
|
1059
|
+
return a(), c(), (x, f) => (r(), i("div", dn, [
|
1060
1060
|
(r(), k(J(o.value), { data: t.data }, null, 8, ["data"])),
|
1061
1061
|
(r(), k(J(n.value), { data: t.data }, null, 8, ["data"]))
|
1062
1062
|
]));
|
1063
1063
|
}
|
1064
|
-
},
|
1064
|
+
}, cn = {
|
1065
1065
|
__name: "admin-custom-button-add",
|
1066
1066
|
props: {
|
1067
1067
|
slots: Object
|
1068
1068
|
},
|
1069
1069
|
setup(t) {
|
1070
1070
|
var a, c, g, p, b;
|
1071
|
-
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (a =
|
1071
|
+
const { asyncTemplateSlot: e } = (b = (p = (g = (c = (a = Oe()) == null ? void 0 : a.appContext) == null ? void 0 : c.app) == null ? void 0 : g.config) == null ? void 0 : p.globalProperties) == null ? void 0 : b.utils, n = K(""), o = t;
|
1072
1072
|
return (() => {
|
1073
1073
|
var d, _, x, f, C;
|
1074
1074
|
if ((d = o.slots) != null && d.addButton || (n.value = "div"), (x = (_ = o.slots) == null ? void 0 : _.addButton) != null && x.includes("<")) {
|
@@ -1083,13 +1083,13 @@ const ln = /* @__PURE__ */ T(Ys, [["render", nn]]), an = { class: "flex items-ce
|
|
1083
1083
|
IconPlus: G
|
1084
1084
|
})) : v("", !0);
|
1085
1085
|
}
|
1086
|
-
},
|
1086
|
+
}, pn = {
|
1087
1087
|
key: 0,
|
1088
1088
|
class: "px-1 py-3 text-gray-800 font-[500]"
|
1089
|
-
},
|
1089
|
+
}, hn = {
|
1090
1090
|
key: 1,
|
1091
1091
|
class: "px-1 py-3 text-gray-800 font-[700]"
|
1092
|
-
},
|
1092
|
+
}, bn = {
|
1093
1093
|
__name: "admin-table-totals-list",
|
1094
1094
|
props: {
|
1095
1095
|
columns: { type: Array, default: () => [] },
|
@@ -1103,17 +1103,17 @@ const ln = /* @__PURE__ */ T(Ys, [["render", nn]]), an = { class: "flex items-ce
|
|
1103
1103
|
return r(), i($, {
|
1104
1104
|
key: o == null ? void 0 : o.name
|
1105
1105
|
}, [
|
1106
|
-
(s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td",
|
1106
|
+
(s = t.agg) != null && s[o == null ? void 0 : o.name] ? (r(), i("td", pn, [
|
1107
1107
|
y(Q, {
|
1108
1108
|
column: o,
|
1109
1109
|
row: t.agg
|
1110
1110
|
}, null, 8, ["column", "row"])
|
1111
|
-
])) : (r(), i("td",
|
1111
|
+
])) : (r(), i("td", hn))
|
1112
1112
|
], 64);
|
1113
1113
|
}), 128))
|
1114
1114
|
]));
|
1115
1115
|
}
|
1116
|
-
},
|
1116
|
+
}, fn = {}, gn = {
|
1117
1117
|
xmlns: "http://www.w3.org/2000/svg",
|
1118
1118
|
viewBox: "0 0 24 24",
|
1119
1119
|
fill: "none",
|
@@ -1123,8 +1123,8 @@ const ln = /* @__PURE__ */ T(Ys, [["render", nn]]), an = { class: "flex items-ce
|
|
1123
1123
|
"stroke-linejoin": "round",
|
1124
1124
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
|
1125
1125
|
};
|
1126
|
-
function
|
1127
|
-
return r(), i("svg",
|
1126
|
+
function mn(t, e, n, o, s, a) {
|
1127
|
+
return r(), i("svg", gn, e[0] || (e[0] = [
|
1128
1128
|
l("path", {
|
1129
1129
|
stroke: "none",
|
1130
1130
|
d: "M0 0h24v24H0z",
|
@@ -1133,8 +1133,8 @@ function bn(t, e, n, o, s, a) {
|
|
1133
1133
|
l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
1134
1134
|
]));
|
1135
1135
|
}
|
1136
|
-
const
|
1137
|
-
components: { IconChevronDown:
|
1136
|
+
const xn = /* @__PURE__ */ T(fn, [["render", mn]]), yn = ct({
|
1137
|
+
components: { IconChevronDown: Ze, IconCheck: xn },
|
1138
1138
|
props: {
|
1139
1139
|
total: { type: Number, default: () => 0 },
|
1140
1140
|
pageSize: { type: Number, default: () => 20 },
|
@@ -1219,13 +1219,13 @@ const fn = /* @__PURE__ */ T(pn, [["render", bn]]), gn = it({
|
|
1219
1219
|
t.preventDefault(), t.target.blur();
|
1220
1220
|
}
|
1221
1221
|
}
|
1222
|
-
}),
|
1222
|
+
}), kn = { class: "flex items-center w-full" }, vn = { class: "flex items-center mx-[8px]" }, _n = { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, Cn = {
|
1223
1223
|
key: 0,
|
1224
1224
|
class: "flex items-center justify-center ml-3 gap-x-5"
|
1225
|
-
},
|
1226
|
-
function
|
1225
|
+
}, wn = { class: "relative" }, $n = { class: "z-50 bg-white shadow-md rounded-lg p-1 space-y-0.5 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 absolute bottom-[100%]" }, Tn = ["onClick"];
|
1226
|
+
function An(t, e, n, o, s, a) {
|
1227
1227
|
const c = h("IconChevronDown"), g = h("IconCheck");
|
1228
|
-
return r(), i("nav",
|
1228
|
+
return r(), i("nav", kn, [
|
1229
1229
|
l("button", {
|
1230
1230
|
type: "button",
|
1231
1231
|
onClick: e[0] || (e[0] = (...p) => t.handleClickPrev && t.handleClickPrev(...p)),
|
@@ -1237,16 +1237,16 @@ function wn(t, e, n, o, s, a) {
|
|
1237
1237
|
class: "rotate-90"
|
1238
1238
|
})
|
1239
1239
|
], 2),
|
1240
|
-
l("div",
|
1240
|
+
l("div", vn, [
|
1241
1241
|
l("span", {
|
1242
1242
|
ref: "currentPage",
|
1243
1243
|
contenteditable: "true",
|
1244
|
-
onKeydown: e[1] || (e[1] =
|
1244
|
+
onKeydown: e[1] || (e[1] = pt((...p) => t.keydownEnter && t.keydownEnter(...p), ["enter"])),
|
1245
1245
|
onBlur: e[2] || (e[2] = (p) => t.handleSetPage(p.target.innerText)),
|
1246
1246
|
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"
|
1247
1247
|
}, S(t.page), 545),
|
1248
1248
|
e[5] || (e[5] = l("span", { class: "min-h-[38px] flex justify-center items-center text-stone-500 py-2 px-1.5 text-sm" }, "з", -1)),
|
1249
|
-
l("span",
|
1249
|
+
l("span", _n, S(t.pagesCount), 1)
|
1250
1250
|
]),
|
1251
1251
|
l("button", {
|
1252
1252
|
type: "button",
|
@@ -1259,9 +1259,9 @@ function wn(t, e, n, o, s, a) {
|
|
1259
1259
|
class: "-rotate-90"
|
1260
1260
|
})
|
1261
1261
|
], 2),
|
1262
|
-
t.pageSizes.length ? (r(), i("div",
|
1263
|
-
l("div",
|
1264
|
-
N(l("div",
|
1262
|
+
t.pageSizes.length ? (r(), i("div", Cn, [
|
1263
|
+
l("div", wn, [
|
1264
|
+
N(l("div", $n, [
|
1265
1265
|
(r(!0), i($, null, V(t.pageSizes, (p) => (r(), i("button", {
|
1266
1266
|
type: "button",
|
1267
1267
|
class: "w-full flex items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm",
|
@@ -1274,7 +1274,7 @@ function wn(t, e, n, o, s, a) {
|
|
1274
1274
|
height: "14",
|
1275
1275
|
class: "text-blue-600"
|
1276
1276
|
})) : v("", !0)
|
1277
|
-
], 8,
|
1277
|
+
], 8, Tn))), 256))
|
1278
1278
|
], 512), [
|
1279
1279
|
[X, t.isDropdownOpen]
|
1280
1280
|
]),
|
@@ -1294,27 +1294,27 @@ function wn(t, e, n, o, s, a) {
|
|
1294
1294
|
])) : v("", !0)
|
1295
1295
|
]);
|
1296
1296
|
}
|
1297
|
-
const
|
1297
|
+
const Sn = /* @__PURE__ */ T(yn, [["render", An]]), In = {
|
1298
1298
|
props: { table: String, title: String, search: String },
|
1299
1299
|
components: {
|
1300
|
-
AdminTableControl:
|
1301
|
-
AdminTableExport:
|
1300
|
+
AdminTableControl: St,
|
1301
|
+
AdminTableExport: Yt,
|
1302
1302
|
// AdminTablePrint,
|
1303
|
-
AdminTableColumnsHidden:
|
1304
|
-
AdminTableColumn:
|
1305
|
-
AdminNodata:
|
1303
|
+
AdminTableColumnsHidden: ms,
|
1304
|
+
AdminTableColumn: xt,
|
1305
|
+
AdminNodata: nt,
|
1306
1306
|
IconPlus: G,
|
1307
|
-
IconSearch:
|
1308
|
-
AdminTableCardInfo:
|
1309
|
-
IconOpenCard:
|
1307
|
+
IconSearch: st,
|
1308
|
+
AdminTableCardInfo: Os,
|
1309
|
+
IconOpenCard: tt,
|
1310
1310
|
AdminComponentIs: Q,
|
1311
|
-
AdminTableFilters:
|
1312
|
-
AdminTableTabs:
|
1313
|
-
AdminTableCustomFilters:
|
1314
|
-
AdminTableCustomButtons:
|
1315
|
-
AdminCustomButtonAdd:
|
1316
|
-
AdminTableTotalsList:
|
1317
|
-
AdminTablePagination:
|
1311
|
+
AdminTableFilters: Rs,
|
1312
|
+
AdminTableTabs: Qs,
|
1313
|
+
AdminTableCustomFilters: on,
|
1314
|
+
AdminTableCustomButtons: un,
|
1315
|
+
AdminCustomButtonAdd: cn,
|
1316
|
+
AdminTableTotalsList: bn,
|
1317
|
+
AdminTablePagination: Sn
|
1318
1318
|
},
|
1319
1319
|
data() {
|
1320
1320
|
return {
|
@@ -1374,7 +1374,7 @@ const $n = /* @__PURE__ */ T(gn, [["render", wn]]), Tn = {
|
|
1374
1374
|
this.tableData = null, this.columnsWidth = {}, await this.getTableData();
|
1375
1375
|
},
|
1376
1376
|
searchValue: {
|
1377
|
-
handler:
|
1377
|
+
handler: et(async function(t) {
|
1378
1378
|
var e;
|
1379
1379
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1380
1380
|
...this.$route,
|
@@ -1524,19 +1524,19 @@ const $n = /* @__PURE__ */ T(gn, [["render", wn]]), Tn = {
|
|
1524
1524
|
];
|
1525
1525
|
}
|
1526
1526
|
}
|
1527
|
-
},
|
1527
|
+
}, Dn = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, Vn = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, Pn = { class: "text-lg font-semibold text-gray-800 dark:text-neutral-200" }, Fn = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, jn = { class: "flex" }, Ln = { class: "flex gap-[6px] ml-auto" }, Mn = { class: "inline-block w-full align-middle" }, zn = {
|
1528
1528
|
key: 0,
|
1529
1529
|
class: "relative min-w-full text-[13px] divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1530
|
-
},
|
1530
|
+
}, qn = { class: "sticky top-[-1px] z-[2] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, Bn = { class: "right-0" }, On = {
|
1531
1531
|
key: 0,
|
1532
1532
|
class: "w-[70px] sticky right-0 top-0"
|
1533
|
-
},
|
1534
|
-
function
|
1535
|
-
var Y, Z, ee, te, se, ne, le, ae, re, oe, ie, de, ue, ce, pe, he, be, fe, ge, me, xe, ye, ke, ve, _e, Ce, we, $e, Te;
|
1536
|
-
const c = h("AdminCustomButtonAdd"), g = h("IconPlus"), p = h("router-link"), b = h("AdminTableTabs"), d = h("IconSearch"), _ = h("VsText"), x = h("AdminTableCustomButtons"), f = h("AdminTableCustomFilters"), C = h("AdminTableColumnsHidden"), m = h("AdminTableExport"), w = h("AdminTableFilters"), A = h("IconOpenCard"), P = h("AdminTableColumn"), F = h("AdminComponentIs"), z = h("AdminTableControl"), E = h("AdminTableTotalsList"),
|
1537
|
-
return r(), i("div",
|
1538
|
-
l("div",
|
1539
|
-
l("h2",
|
1533
|
+
}, Nn = { class: "divide-y divide-gray-200 z-[1] relative" }, En = ["onClick"], Un = ["onClick"], Wn = ["onClick"], Rn = { class: "p-[10px] flex justify-start items-end w-full" }, Hn = { class: "w-[200px] md:inline-flex hidden" }, Kn = { class: "text-sm text-gray-600 dark:text-neutral-400" }, Jn = { class: "font-semibold text-gray-800 dark:text-neutral-200" };
|
1534
|
+
function Gn(t, e, n, o, s, a) {
|
1535
|
+
var Y, Z, ee, te, se, ne, le, ae, re, oe, ie, de, ue, ce, pe, he, be, fe, ge, me, xe, ye, ke, ve, _e, Ce, we, $e, Te, Ae, Se, Ie;
|
1536
|
+
const c = h("AdminCustomButtonAdd"), g = h("IconPlus"), p = h("router-link"), b = h("AdminTableTabs"), d = h("IconSearch"), _ = h("VsText"), x = h("AdminTableCustomButtons"), f = h("AdminTableCustomFilters"), C = h("AdminTableColumnsHidden"), m = h("AdminTableExport"), w = h("AdminTableFilters"), A = h("IconOpenCard"), P = h("AdminTableColumn"), F = h("AdminComponentIs"), z = h("AdminTableControl"), E = h("AdminTableTotalsList"), Ne = h("AdminNodata"), Ee = h("AdminTablePagination"), Ue = h("AdminTableCardInfo");
|
1537
|
+
return r(), i("div", Dn, [
|
1538
|
+
l("div", Vn, [
|
1539
|
+
l("h2", Pn, S(n.title), 1),
|
1540
1540
|
a.isForm ? (r(), i($, { key: 0 }, [
|
1541
1541
|
(Z = (Y = s.tableData) == null ? void 0 : Y.slots) != null && Z.addButton ? (r(), k(c, {
|
1542
1542
|
key: 0,
|
@@ -1563,14 +1563,14 @@ function Hn(t, e, n, o, s, a) {
|
|
1563
1563
|
}),
|
1564
1564
|
class: "bg-gray-50 p-[20px] flex pt-[10px] lg:w-[calc(100vw-260px)] w-[100vw]"
|
1565
1565
|
}, [
|
1566
|
-
l("div",
|
1566
|
+
l("div", Fn, [
|
1567
1567
|
(ae = (le = s.tableData) == null ? void 0 : le.filterState) != null && ae.length ? (r(), k(b, {
|
1568
1568
|
key: 0,
|
1569
1569
|
tabsList: (re = s.tableData) == null ? void 0 : re.filterState,
|
1570
1570
|
filterState: s.filterState,
|
1571
1571
|
"onUpdate:filterState": e[0] || (e[0] = (u) => s.filterState = u)
|
1572
1572
|
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
1573
|
-
l("div",
|
1573
|
+
l("div", jn, [
|
1574
1574
|
l("div", {
|
1575
1575
|
class: D([s.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1576
1576
|
}, [
|
@@ -1589,7 +1589,7 @@ function Hn(t, e, n, o, s, a) {
|
|
1589
1589
|
clearable: !0,
|
1590
1590
|
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"
|
1591
1591
|
}, null, 8, ["modelValue", "placeholder"]),
|
1592
|
-
l("div",
|
1592
|
+
l("div", Ln, [
|
1593
1593
|
(oe = s.tableData) != null && oe.slots ? (r(), k(x, {
|
1594
1594
|
key: 0,
|
1595
1595
|
data: s.tableData,
|
@@ -1636,14 +1636,14 @@ function Hn(t, e, n, o, s, a) {
|
|
1636
1636
|
}, [
|
1637
1637
|
l("div", {
|
1638
1638
|
style: H({
|
1639
|
-
height: (
|
1639
|
+
height: `calc(100vh - ${((ge = t.$adminSettings) == null ? void 0 : ge.header) === !1 ? (xe = (me = s.tableData) == null ? void 0 : me.filterState) != null && xe.length ? 330 : 270 : (ke = (ye = s.tableData) == null ? void 0 : ye.filterState) != null && ke.length ? 380 : 320}px)`
|
1640
1640
|
}),
|
1641
1641
|
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"
|
1642
1642
|
}, [
|
1643
|
-
l("div",
|
1644
|
-
a.isNoData ? (r(), k(
|
1645
|
-
l("thead",
|
1646
|
-
l("tr",
|
1643
|
+
l("div", Mn, [
|
1644
|
+
a.isNoData ? (r(), k(Ne, { key: 1 })) : (r(), i("table", zn, [
|
1645
|
+
l("thead", qn, [
|
1646
|
+
l("tr", Bn, [
|
1647
1647
|
(r(!0), i($, null, V(a.columns, (u) => {
|
1648
1648
|
var U, q;
|
1649
1649
|
return r(), k(P, {
|
@@ -1662,14 +1662,14 @@ function Hn(t, e, n, o, s, a) {
|
|
1662
1662
|
onChangeActive: a.changeActiveColumn
|
1663
1663
|
}, null, 8, ["style", "data", "activeColumn", "onUpdateRef", "onChangeActive"]);
|
1664
1664
|
}), 128)),
|
1665
|
-
(
|
1665
|
+
(_e = (ve = a.getActions) == null ? void 0 : ve.filter(
|
1666
1666
|
(u) => u !== "add" && u !== "view"
|
1667
|
-
)) != null &&
|
1667
|
+
)) != null && _e.length ? (r(), i("th", On)) : v("", !0)
|
1668
1668
|
])
|
1669
1669
|
]),
|
1670
|
-
l("tbody",
|
1671
|
-
(r(!0), i($, null, V((
|
1672
|
-
var q, W, B, O,
|
1670
|
+
l("tbody", Nn, [
|
1671
|
+
(r(!0), i($, null, V((Ce = s.tableData) == null ? void 0 : Ce.rows, (u, U) => {
|
1672
|
+
var q, W, B, O, De, Ve, Pe, Fe, je, Le, Me, ze;
|
1673
1673
|
return r(), i("tr", {
|
1674
1674
|
key: (u == null ? void 0 : u.id) || U,
|
1675
1675
|
class: D({
|
@@ -1688,7 +1688,7 @@ function Hn(t, e, n, o, s, a) {
|
|
1688
1688
|
},
|
1689
1689
|
class: D(["font-medium text-start", [
|
1690
1690
|
...a.getCustomStyles(a.columns[0]),
|
1691
|
-
((
|
1691
|
+
((De = this.tableData) == null ? void 0 : De.card) === !1 ? "" : " text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1692
1692
|
]])
|
1693
1693
|
}, [
|
1694
1694
|
y(F, {
|
@@ -1697,10 +1697,10 @@ function Hn(t, e, n, o, s, a) {
|
|
1697
1697
|
table: n.table,
|
1698
1698
|
onUpdateTable: a.getTableData
|
1699
1699
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1700
|
-
], 10,
|
1701
|
-
], 10,
|
1702
|
-
(r(!0), i($, null, V((
|
1703
|
-
onClick: (
|
1700
|
+
], 10, Un)
|
1701
|
+
], 10, En),
|
1702
|
+
(r(!0), i($, null, V((Ve = a.columns) == null ? void 0 : Ve.slice(1), (j) => (r(), i("td", {
|
1703
|
+
onClick: (el) => {
|
1704
1704
|
a.changeActiveCardInfo(u == null ? void 0 : u.id), a.pushToLinkCard(j, u);
|
1705
1705
|
},
|
1706
1706
|
class: D(["px-1 py-3 text-gray-600 pe-3", a.getCustomStyles(j)]),
|
@@ -1712,14 +1712,14 @@ function Hn(t, e, n, o, s, a) {
|
|
1712
1712
|
table: n.table,
|
1713
1713
|
onUpdateTable: a.getTableData
|
1714
1714
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1715
|
-
], 10,
|
1716
|
-
(
|
1715
|
+
], 10, Wn))), 128)),
|
1716
|
+
(Fe = (Pe = a.getActions) == null ? void 0 : Pe.filter(
|
1717
1717
|
(j) => j !== "add" && j !== "view"
|
1718
|
-
)) != null &&
|
1718
|
+
)) != null && Fe.length ? (r(), i("td", {
|
1719
1719
|
key: 0,
|
1720
1720
|
class: D(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1721
|
-
"bg-gray-50": ((
|
1722
|
-
"bg-white": ((
|
1721
|
+
"bg-gray-50": ((Le = (je = t.$route) == null ? void 0 : je.query) == null ? void 0 : Le.card) === (u == null ? void 0 : u.id),
|
1722
|
+
"bg-white": ((ze = (Me = t.$route) == null ? void 0 : Me.query) == null ? void 0 : ze.card) !== (u == null ? void 0 : u.id)
|
1723
1723
|
}])
|
1724
1724
|
}, [
|
1725
1725
|
y(z, {
|
@@ -1735,23 +1735,23 @@ function Hn(t, e, n, o, s, a) {
|
|
1735
1735
|
]),
|
1736
1736
|
y(E, {
|
1737
1737
|
columns: a.columns,
|
1738
|
-
agg: (
|
1738
|
+
agg: (we = s.tableData) == null ? void 0 : we.agg
|
1739
1739
|
}, null, 8, ["columns", "agg"])
|
1740
1740
|
]))
|
1741
1741
|
])
|
1742
1742
|
], 4)
|
1743
1743
|
], 2),
|
1744
|
-
l("div",
|
1745
|
-
l("div",
|
1746
|
-
l("p",
|
1747
|
-
l("span",
|
1744
|
+
l("div", Rn, [
|
1745
|
+
l("div", Hn, [
|
1746
|
+
l("p", Kn, [
|
1747
|
+
l("span", Jn, " Об'єктів: " + S(s.limit < (($e = s.tableData) == null ? void 0 : $e.filtered) ? s.limit : (Te = s.tableData) == null ? void 0 : Te.filtered) + " з " + S(((Ae = s.tableData) == null ? void 0 : Ae.filtered) || 0), 1)
|
1748
1748
|
])
|
1749
1749
|
]),
|
1750
|
-
Math.ceil((
|
1750
|
+
Math.ceil((Se = s.tableData) == null ? void 0 : Se.filtered) > 10 ? (r(), k(Ee, {
|
1751
1751
|
key: 0,
|
1752
1752
|
class: "justify-end",
|
1753
1753
|
"default-page": parseInt(a.defaultPage),
|
1754
|
-
total: ((
|
1754
|
+
total: ((Ie = s.tableData) == null ? void 0 : Ie.filtered) || 0,
|
1755
1755
|
onPageChange: a.handlePageChange,
|
1756
1756
|
pageSize: parseInt(s.limit),
|
1757
1757
|
pageSizes: [10, 20, 50, 100]
|
@@ -1762,7 +1762,7 @@ function Hn(t, e, n, o, s, a) {
|
|
1762
1762
|
default: I(() => {
|
1763
1763
|
var u;
|
1764
1764
|
return [
|
1765
|
-
s.isVisibleCardInfo ? (r(), k(
|
1765
|
+
s.isVisibleCardInfo ? (r(), k(Ue, {
|
1766
1766
|
key: 0,
|
1767
1767
|
table: n.table,
|
1768
1768
|
columns: (u = s.tableData) == null ? void 0 : u.columns,
|
@@ -1777,8 +1777,8 @@ function Hn(t, e, n, o, s, a) {
|
|
1777
1777
|
], 4)
|
1778
1778
|
]);
|
1779
1779
|
}
|
1780
|
-
const
|
1781
|
-
components: { AdminTable:
|
1780
|
+
const Qn = /* @__PURE__ */ T(In, [["render", Gn], ["__scopeId", "data-v-76a3cec3"]]), Xn = {
|
1781
|
+
components: { AdminTable: Qn },
|
1782
1782
|
data() {
|
1783
1783
|
return {
|
1784
1784
|
table: !1,
|
@@ -1790,13 +1790,13 @@ const Kn = /* @__PURE__ */ T(Tn, [["render", Hn], ["__scopeId", "data-v-bc0c55bd
|
|
1790
1790
|
$route: {
|
1791
1791
|
async handler() {
|
1792
1792
|
var t;
|
1793
|
-
(t =
|
1793
|
+
(t = qe) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1794
1794
|
},
|
1795
1795
|
deep: !0
|
1796
1796
|
},
|
1797
1797
|
title(t) {
|
1798
1798
|
var e;
|
1799
|
-
t && (document.title = (((e =
|
1799
|
+
t && (document.title = (((e = lt.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1800
1800
|
}
|
1801
1801
|
},
|
1802
1802
|
async mounted() {
|
@@ -1811,7 +1811,7 @@ const Kn = /* @__PURE__ */ T(Tn, [["render", Hn], ["__scopeId", "data-v-bc0c55bd
|
|
1811
1811
|
},
|
1812
1812
|
async checkPageType() {
|
1813
1813
|
var o, s;
|
1814
|
-
const t = this.flattenMenu(
|
1814
|
+
const t = this.flattenMenu(qe.value);
|
1815
1815
|
t != null && t.length || this.$router.replace("/404");
|
1816
1816
|
const e = t == null ? void 0 : t.find((a) => {
|
1817
1817
|
var c, g;
|
@@ -1833,8 +1833,8 @@ const Kn = /* @__PURE__ */ T(Tn, [["render", Hn], ["__scopeId", "data-v-bc0c55bd
|
|
1833
1833
|
}
|
1834
1834
|
}
|
1835
1835
|
}
|
1836
|
-
},
|
1837
|
-
function
|
1836
|
+
}, Yn = ["innerHTML"];
|
1837
|
+
function Zn(t, e, n, o, s, a) {
|
1838
1838
|
const c = h("AdminTable");
|
1839
1839
|
return s.table ? (r(), k(c, {
|
1840
1840
|
key: 0,
|
@@ -1846,9 +1846,9 @@ function Qn(t, e, n, o, s, a) {
|
|
1846
1846
|
class: "w-full bg-gray-50",
|
1847
1847
|
style: { height: "calc(100vh - 120px)" },
|
1848
1848
|
innerHTML: s.interface
|
1849
|
-
}, null, 8,
|
1849
|
+
}, null, 8, Yn));
|
1850
1850
|
}
|
1851
|
-
const
|
1851
|
+
const nl = /* @__PURE__ */ T(Xn, [["render", Zn]]);
|
1852
1852
|
export {
|
1853
|
-
|
1853
|
+
nl as default
|
1854
1854
|
};
|