@opengis/admin 0.2.22 → 0.2.24
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 +74 -74
- package/config.js +4 -4
- package/dist/{IconChevronDown-C6z84v50.js → IconChevronDown-YiScKeCD.js} +1 -1
- package/dist/{add-page-xwsnaHWx.js → add-page-BItu_AHs.js} +1 -1
- package/dist/{admin-interface-BfW6K5Kr.js → admin-interface-BLjLejF-.js} +296 -337
- package/dist/{admin-view-xjz2kCnj.js → admin-view-DhQnq5_I.js} +3 -3
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +58 -58
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-DE8P5Jv2.js → card-view-CfqOZwH-.js} +1 -1
- package/dist/{edit-page-CFaYbjcN.js → edit-page-IMNYnSVY.js} +1 -1
- package/dist/{import-file-CvC0ITeC.js → import-file-ClYLtoYl.js} +9544 -9437
- 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 +3 -3
- package/module/settings/card/admin.roles.table/general_info.hbs +1 -1
- package/module/settings/card/admin.roles.table/index.yml +21 -21
- package/module/settings/card/admin.roles.table/users.hbs +6 -6
- 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 +11 -11
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- package/module/settings/card/admin.users.table/context.hbs +14 -14
- package/module/settings/card/admin.users.table/general_info.hbs +12 -12
- package/module/settings/card/admin.users.table/index.yml +22 -22
- package/module/settings/card/admin.users.table/last_login.hbs +9 -9
- package/module/settings/card/admin.users.table/logs.hbs +10 -10
- package/module/settings/card/admin.users.table/routes.hbs +7 -7
- package/module/settings/card/admin.users.table/user_roles.hbs +12 -12
- package/module/settings/cls/core.actions.json +17 -17
- package/module/settings/cls/core.scope.json +13 -13
- package/module/settings/cls/properties.site_status.json +13 -13
- package/module/settings/cls/properties.widget_status.json +13 -13
- package/module/settings/cls/users.user_type.json +13 -13
- package/module/settings/cls/yes_no.json +11 -11
- package/module/settings/form/admin.accounts.form.json +13 -13
- package/module/settings/form/admin.custom_column.form.json +71 -71
- 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.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles.form.json +13 -13
- package/module/settings/form/admin.user_roles_card.form.json +13 -13
- package/module/settings/form/admin.users.form.json +153 -153
- package/module/settings/form/context.account_grants.form.json +23 -23
- 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 +84 -84
- 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 +42 -42
- package/module/settings/table/admin.custom_column.table.json +99 -99
- package/module/settings/table/admin.properties.table.json +39 -39
- package/module/settings/table/admin.roles.table.json +64 -64
- package/module/settings/table/admin.routes.table.json +73 -73
- package/module/settings/table/admin.rules.table.json +76 -76
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/module/settings/table/admin.user_roles.table.json +72 -72
- package/module/settings/table/admin.users.table.json +132 -132
- package/module/settings/table/context.account_grants.table.json +67 -67
- package/module/settings/table/context.account_users.table.json +37 -37
- package/package.json +84 -84
- package/plugin.js +29 -29
- package/server/helpers/core/badge.js +16 -16
- package/server/helpers/core/buttonHelper.js +21 -21
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/index.js +29 -29
- package/server/helpers/list/buttonHelper.js +21 -21
- package/server/helpers/list/descriptionList.js +43 -43
- package/server/helpers/list/tableList.js +81 -81
- 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/buttonAdd.js +5 -5
- package/server/helpers/utils/buttonDel.js +5 -5
- package/server/helpers/utils/buttonEdit.js +5 -5
- 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 +236 -236
- package/server/plugins/vite.js +71 -71
- package/server/routes/access/controllers/access.group.js +29 -29
- package/server/routes/access/controllers/access.group.post.js +49 -49
- package/server/routes/access/index.mjs +8 -8
- package/server/routes/access/schema.mjs +57 -57
- package/server/routes/calendar/controllers/calendar.data.js +87 -87
- package/server/routes/calendar/index.mjs +7 -7
- package/server/routes/calendar/schema.js +21 -21
- package/server/routes/data/controllers/cardData.js +105 -105
- package/server/routes/data/controllers/cardTabData.js +49 -49
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
- package/server/routes/data/controllers/tableData.js +29 -29
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +67 -67
- 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 +17 -17
- package/server/routes/data/schema.js +54 -54
- package/server/routes/menu/controllers/getMenu.js +58 -58
- package/server/routes/menu/index.mjs +5 -5
- package/server/routes/notifications/controllers/readNotifications.js +27 -27
- package/server/routes/notifications/controllers/testEmail.js +35 -35
- package/server/routes/notifications/controllers/userNotifications.js +53 -53
- package/server/routes/notifications/funcs/addNotification.js +21 -21
- package/server/routes/notifications/funcs/sendNotification.js +92 -92
- package/server/routes/notifications/hook/onWidgetSet.js +57 -57
- package/server/routes/notifications/index.mjs +27 -27
- package/server/routes/notifications/schema.js +16 -16
- package/server/routes/properties/controllers/admin.properties.get.js +29 -29
- package/server/routes/properties/controllers/user.properties.get.js +30 -30
- package/server/routes/properties/controllers/user.properties.post.js +30 -30
- package/server/routes/properties/funcs/getSettings.js +56 -56
- package/server/routes/properties/funcs/setSettings.js +44 -44
- package/server/routes/properties/funcs/utils/dataInsert.js +26 -26
- package/server/routes/properties/index.mjs +14 -14
- package/server/routes/properties/schema.js +10 -10
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +43 -43
- package/server/routes/templates/index.mjs +16 -16
- package/server/routes/templates/schema.js +8 -8
- package/server/routes/user/controllers/user.cls.id.js +14 -14
- package/server/routes/user/controllers/user.cls.js +71 -71
- package/server/routes/user/controllers/user.cls.post.js +52 -52
- package/server/routes/user/controllers/user.info.js +17 -17
- package/server/routes/user/schema.js +14 -14
- package/server/routes/widget/controllers/utils/historyFormat.js +75 -75
- package/server/routes/widget/controllers/utils/obj2db.js +13 -13
- package/server/routes/widget/controllers/widget.del.js +41 -41
- package/server/routes/widget/controllers/widget.get.js +96 -96
- package/server/routes/widget/controllers/widget.set.js +76 -76
- package/server/routes/widget/index.mjs +11 -11
- package/server/routes/widget/schema.js +12 -12
- package/server/templates/cls/itree.recrzone_category.json +73 -73
- package/server/templates/cls/test.json +9 -9
- package/server/templates/form/admin.user_cls.data.form.json +49 -49
- package/server/templates/form/admin.user_group_rel.form.json +21 -21
- package/server/templates/form/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/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 +29 -29
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as o, createElementBlock as a, createTextVNode as j, toDisplayString as I, createCommentVNode as
|
3
|
-
import { I as
|
4
|
-
const
|
1
|
+
import { _ as w, d as Ve, e as De, f as Fe, c as F, V as je, g as Me, h as qe, i as Le, A as Pe, I as ze, u as ye, s as Be } from "./import-file-ClYLtoYl.js";
|
2
|
+
import { openBlock as o, createElementBlock as a, createTextVNode as j, toDisplayString as I, createCommentVNode as k, resolveComponent as p, Fragment as T, createElementVNode as l, createVNode as x, withCtx as $, createBlock as _, renderList as D, withModifiers as Ue, normalizeClass as V, createStaticVNode as ke, withDirectives as P, vModelCheckbox as Oe, resolveDynamicComponent as L, Transition as z, renderSlot as Ee, vShow as we, getCurrentInstance as Ne, ref as _e, normalizeStyle as ve } from "vue";
|
3
|
+
import { I as He } from "./IconChevronDown-YiScKeCD.js";
|
4
|
+
const Re = {
|
5
5
|
data() {
|
6
6
|
return {
|
7
7
|
currentSort: ""
|
@@ -59,10 +59,10 @@ const Ne = {
|
|
59
59
|
return `${this.data.name}-${t}` === this.selectedSortParam;
|
60
60
|
}
|
61
61
|
}
|
62
|
-
},
|
62
|
+
}, We = {
|
63
63
|
scope: "col",
|
64
64
|
class: "text-start px-2 py-1"
|
65
|
-
},
|
65
|
+
}, Ze = {
|
66
66
|
class: "flex-shrink-0 size-3.5",
|
67
67
|
xmlns: "http://www.w3.org/2000/svg",
|
68
68
|
width: "24",
|
@@ -73,18 +73,18 @@ const Ne = {
|
|
73
73
|
"stroke-width": "2",
|
74
74
|
"stroke-linecap": "round",
|
75
75
|
"stroke-linejoin": "round"
|
76
|
-
},
|
76
|
+
}, Ge = {
|
77
77
|
key: 0,
|
78
78
|
d: "m7 15 5 5 5-5"
|
79
|
-
},
|
79
|
+
}, Je = {
|
80
80
|
key: 1,
|
81
81
|
d: "m7 9 5-5 5 5"
|
82
|
-
},
|
82
|
+
}, Ke = {
|
83
83
|
key: 1,
|
84
84
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal"
|
85
85
|
};
|
86
|
-
function
|
87
|
-
return o(), a("th",
|
86
|
+
function Qe(t, e, s, i, n, r) {
|
87
|
+
return o(), a("th", We, [
|
88
88
|
r.getVisibleIcon ? (o(), a("button", {
|
89
89
|
key: 0,
|
90
90
|
type: "button",
|
@@ -92,59 +92,18 @@ function Je(t, e, s, i, n, r) {
|
|
92
92
|
onClick: e[0] || (e[0] = (u) => r.handleClickSortBtn(n.currentSort))
|
93
93
|
}, [
|
94
94
|
j(I(r.label) + " ", 1),
|
95
|
-
(o(), a("svg",
|
96
|
-
n.currentSort === "asc" || n.currentSort === "" ? (o(), a("path",
|
97
|
-
n.currentSort === "desc" || n.currentSort === "" ? (o(), a("path",
|
95
|
+
(o(), a("svg", Ze, [
|
96
|
+
n.currentSort === "asc" || n.currentSort === "" ? (o(), a("path", Ge)) : k("", !0),
|
97
|
+
n.currentSort === "desc" || n.currentSort === "" ? (o(), a("path", Je)) : k("", !0)
|
98
98
|
]))
|
99
|
-
])) : (o(), a("p",
|
99
|
+
])) : (o(), a("p", Ke, I(r.label), 1))
|
100
100
|
]);
|
101
101
|
}
|
102
|
-
const
|
103
|
-
class: "flex-shrink-0 size-3.5",
|
104
|
-
xmlns: "http://www.w3.org/2000/svg",
|
105
|
-
viewBox: "0 0 24 24",
|
106
|
-
fill: "none",
|
107
|
-
stroke: "currentColor",
|
108
|
-
"stroke-width": "2",
|
109
|
-
"stroke-linecap": "round",
|
110
|
-
"stroke-linejoin": "round"
|
111
|
-
};
|
112
|
-
function Ye(t, e, s, i, n, r) {
|
113
|
-
return o(), a("svg", Xe, e[0] || (e[0] = [
|
114
|
-
L('<path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line>', 5)
|
115
|
-
]));
|
116
|
-
}
|
117
|
-
const et = /* @__PURE__ */ v(Qe, [["render", Ye]]), tt = {
|
118
|
-
props: {
|
119
|
-
height: { type: String, default: "16" },
|
120
|
-
width: { type: String, default: "12" },
|
121
|
-
color: { type: String, default: "black" }
|
122
|
-
}
|
123
|
-
}, nt = { style: { display: "none" } }, st = ["height", "width", "fill"];
|
124
|
-
function lt(t, e, s, i, n, r) {
|
125
|
-
return o(), a(S, null, [
|
126
|
-
(o(), a("svg", nt, e[0] || (e[0] = [
|
127
|
-
l("symbol", {
|
128
|
-
id: "icon-pencil",
|
129
|
-
viewBox: "0 0 32 32"
|
130
|
-
}, [
|
131
|
-
l("path", { d: "M27 0c2.761 0 5 2.239 5 5 0 1.126-0.372 2.164-1 3l-2 2-7-7 2-2c0.836-0.628 1.874-1 3-1zM2 23l-2 9 9-2 18.5-18.5-7-7-18.5 18.5zM22.362 11.362l-14 14-1.724-1.724 14-14 1.724 1.724z" })
|
132
|
-
], -1)
|
133
|
-
]))),
|
134
|
-
(o(), a("svg", {
|
135
|
-
height: s.height,
|
136
|
-
width: s.width,
|
137
|
-
fill: s.color
|
138
|
-
}, e[1] || (e[1] = [
|
139
|
-
l("use", { "xlink:href": "#icon-pencil" }, null, -1)
|
140
|
-
]), 8, st))
|
141
|
-
], 64);
|
142
|
-
}
|
143
|
-
const ot = /* @__PURE__ */ v(tt, [["render", lt]]), rt = {
|
102
|
+
const Xe = /* @__PURE__ */ w(Re, [["render", Qe]]), Ye = {
|
144
103
|
components: {
|
145
104
|
IconMore: Ve,
|
146
|
-
IconDelete:
|
147
|
-
IconEdit:
|
105
|
+
IconDelete: De,
|
106
|
+
IconEdit: Fe
|
148
107
|
},
|
149
108
|
emits: ["updateTable"],
|
150
109
|
props: {
|
@@ -223,20 +182,20 @@ const ot = /* @__PURE__ */ v(tt, [["render", lt]]), rt = {
|
|
223
182
|
});
|
224
183
|
}
|
225
184
|
}
|
226
|
-
},
|
185
|
+
}, et = { class: "hs-dropdown [--placement:bottom-right] inline-flex" }, tt = { 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" }, nt = { class: "flex flex-col items-start" }, st = ["onClick"], lt = { class: "text-gray-800" }, ot = {
|
227
186
|
key: 1,
|
228
187
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
229
|
-
},
|
230
|
-
function
|
231
|
-
const u =
|
232
|
-
return o(), a(
|
233
|
-
l("div",
|
234
|
-
x(
|
188
|
+
}, rt = { class: "p-4" }, at = { class: "flex justify-end mt-4 gap-x-3" };
|
189
|
+
function it(t, e, s, i, n, r) {
|
190
|
+
const u = p("IconMore"), f = p("IconEdit"), h = p("router-link"), m = p("IconDelete"), v = p("VsPopover"), c = p("VsDialog");
|
191
|
+
return o(), a(T, null, [
|
192
|
+
l("div", et, [
|
193
|
+
x(v, {
|
235
194
|
trigger: "click",
|
236
195
|
placement: "bottom-left"
|
237
196
|
}, {
|
238
197
|
reference: $(() => [
|
239
|
-
l("button",
|
198
|
+
l("button", tt, [
|
240
199
|
x(u, {
|
241
200
|
height: "16",
|
242
201
|
width: "16"
|
@@ -246,8 +205,8 @@ function ft(t, e, s, i, n, r) {
|
|
246
205
|
default: $(() => {
|
247
206
|
var g, d, C, y, A;
|
248
207
|
return [
|
249
|
-
l("div",
|
250
|
-
(g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(
|
208
|
+
l("div", nt, [
|
209
|
+
(g = s.actions) != null && g.includes("edit") && s.isForm ? (o(), _(h, {
|
251
210
|
key: 0,
|
252
211
|
to: `/edit?table=${(C = (d = t.$route) == null ? void 0 : d.params) == null ? void 0 : C.catchAll}&id=${(y = s.item) == null ? void 0 : y.id}`,
|
253
212
|
class: "w-full flex items-center gap-x-3 py-1.5 px-2 rounded-lg text-[13px] text-stone-800 hover:bg-stone-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100"
|
@@ -257,24 +216,24 @@ function ft(t, e, s, i, n, r) {
|
|
257
216
|
e[4] || (e[4] = j(" Редагувати "))
|
258
217
|
]),
|
259
218
|
_: 1
|
260
|
-
}, 8, ["to"])) :
|
261
|
-
(o(!0), a(
|
219
|
+
}, 8, ["to"])) : k("", !0),
|
220
|
+
(o(!0), a(T, null, D(r.getCustomActions, (S, M) => (o(), a("button", {
|
262
221
|
key: M,
|
263
|
-
onClick: (
|
222
|
+
onClick: (B) => r.customButtonAction(S),
|
264
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"
|
265
224
|
}, [
|
266
225
|
x(m, { class: "opacity-0" }),
|
267
|
-
l("span",
|
268
|
-
], 8,
|
269
|
-
s.isForm ? (o(), a("div",
|
226
|
+
l("span", lt, I(S == null ? void 0 : S.label), 1)
|
227
|
+
], 8, st))), 128)),
|
228
|
+
s.isForm ? (o(), a("div", ot)) : k("", !0),
|
270
229
|
(A = s.actions) != null && A.includes("del") ? (o(), a("button", {
|
271
230
|
key: 2,
|
272
|
-
onClick: e[0] || (e[0] =
|
231
|
+
onClick: e[0] || (e[0] = Ue((...S) => r.openConfirm && r.openConfirm(...S), ["stop"])),
|
273
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"
|
274
233
|
}, [
|
275
234
|
x(m),
|
276
235
|
e[5] || (e[5] = l("span", { class: "text-gray-800" }, "Видалити", -1))
|
277
|
-
])) :
|
236
|
+
])) : k("", !0)
|
278
237
|
])
|
279
238
|
];
|
280
239
|
}),
|
@@ -288,9 +247,9 @@ function ft(t, e, s, i, n, r) {
|
|
288
247
|
title: "Ви впевнені?"
|
289
248
|
}, {
|
290
249
|
default: $(() => [
|
291
|
-
l("div",
|
250
|
+
l("div", rt, [
|
292
251
|
e[6] || (e[6] = l("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей об'єкт? ", -1)),
|
293
|
-
l("div",
|
252
|
+
l("div", at, [
|
294
253
|
l("button", {
|
295
254
|
type: "button",
|
296
255
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 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",
|
@@ -308,7 +267,7 @@ function ft(t, e, s, i, n, r) {
|
|
308
267
|
}, 8, ["visible"])
|
309
268
|
], 64);
|
310
269
|
}
|
311
|
-
const
|
270
|
+
const ct = /* @__PURE__ */ w(Ye, [["render", it]]), ut = {}, dt = {
|
312
271
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
313
272
|
xmlns: "http://www.w3.org/2000/svg",
|
314
273
|
viewBox: "0 0 24 24",
|
@@ -318,15 +277,15 @@ const mt = /* @__PURE__ */ v(rt, [["render", ft]]), gt = {}, xt = {
|
|
318
277
|
"stroke-linecap": "round",
|
319
278
|
"stroke-linejoin": "round"
|
320
279
|
};
|
321
|
-
function
|
322
|
-
return o(), a("svg",
|
280
|
+
function bt(t, e, s, i, n, r) {
|
281
|
+
return o(), a("svg", dt, e[0] || (e[0] = [
|
323
282
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
324
283
|
l("path", { d: "M7 20V4" }, null, -1),
|
325
284
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
326
285
|
l("path", { d: "M17 4v16" }, null, -1)
|
327
286
|
]));
|
328
287
|
}
|
329
|
-
const
|
288
|
+
const pt = /* @__PURE__ */ w(ut, [["render", bt]]), ht = {}, ft = {
|
330
289
|
xmlns: "http://www.w3.org/2000/svg",
|
331
290
|
width: "24",
|
332
291
|
height: "24",
|
@@ -338,8 +297,8 @@ const _t = /* @__PURE__ */ v(gt, [["render", yt]]), vt = {}, kt = {
|
|
338
297
|
"stroke-linejoin": "round",
|
339
298
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-rosette-discount-check"
|
340
299
|
};
|
341
|
-
function
|
342
|
-
return o(), a("svg",
|
300
|
+
function mt(t, e, s, i, n, r) {
|
301
|
+
return o(), a("svg", ft, e[0] || (e[0] = [
|
343
302
|
l("path", {
|
344
303
|
stroke: "none",
|
345
304
|
d: "M0 0h24v24H0z",
|
@@ -349,8 +308,8 @@ function wt(t, e, s, i, n, r) {
|
|
349
308
|
l("path", { d: "M9 12l2 2l4 -4" }, null, -1)
|
350
309
|
]));
|
351
310
|
}
|
352
|
-
const
|
353
|
-
components: { IconExport:
|
311
|
+
const gt = /* @__PURE__ */ w(ht, [["render", mt]]), xt = {
|
312
|
+
components: { IconExport: pt, IconChevronDown: He, IconSuccess: gt },
|
354
313
|
props: {
|
355
314
|
table: String,
|
356
315
|
columns: Array,
|
@@ -448,25 +407,25 @@ const Ct = /* @__PURE__ */ v(vt, [["render", wt]]), $t = {
|
|
448
407
|
this.cols = (e = (t = this.columns) == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.hidden) !== !0)) == null ? void 0 : e.map((s) => s == null ? void 0 : s.name), this.activeAction = "choceVisible";
|
449
408
|
}
|
450
409
|
}
|
451
|
-
},
|
410
|
+
}, yt = {
|
452
411
|
key: 0,
|
453
412
|
class: "flex flex-col items-center"
|
454
|
-
},
|
413
|
+
}, _t = {
|
455
414
|
key: 1,
|
456
415
|
class: "p-4"
|
457
|
-
},
|
416
|
+
}, vt = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, kt = { class: "flex items-center" }, wt = { class: "flex items-center gap-[10px] ml-auto" }, Ct = ["onClick"], $t = {
|
458
417
|
key: 0,
|
459
418
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
460
|
-
},
|
419
|
+
}, At = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, It = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Tt = { class: "mt-2 space-y-2" }, St = ["id", "onChange"], Vt = ["for"], Dt = {
|
461
420
|
key: 0,
|
462
421
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
463
|
-
},
|
422
|
+
}, Ft = {
|
464
423
|
key: 1,
|
465
424
|
class: "flex w-full justify-end p-[20px] gap-[6px] border-t"
|
466
425
|
};
|
467
|
-
function
|
468
|
-
const u =
|
469
|
-
return o(), a(
|
426
|
+
function jt(t, e, s, i, n, r) {
|
427
|
+
const u = p("IconExport"), f = p("IconChevronDown"), h = p("IconSuccess"), m = p("VsCheckbox"), v = p("VsDialog");
|
428
|
+
return o(), a(T, null, [
|
470
429
|
l("button", {
|
471
430
|
onClick: e[0] || (e[0] = (c) => n.isOpen = !0),
|
472
431
|
class: "py-2 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"
|
@@ -481,7 +440,7 @@ function Ut(t, e, s, i, n, r) {
|
|
481
440
|
width: "16"
|
482
441
|
})
|
483
442
|
]),
|
484
|
-
x(
|
443
|
+
x(v, {
|
485
444
|
visible: n.isOpen,
|
486
445
|
"onUpdate:visible": e[6] || (e[6] = (c) => n.isOpen = c),
|
487
446
|
title: "Експорт таблиці",
|
@@ -489,7 +448,7 @@ function Ut(t, e, s, i, n, r) {
|
|
489
448
|
closeClickBack: !0
|
490
449
|
}, {
|
491
450
|
footer: $(() => [
|
492
|
-
n.isSuccessTemplate ? (o(), a("div",
|
451
|
+
n.isSuccessTemplate ? (o(), a("div", Dt, [
|
493
452
|
l("button", {
|
494
453
|
type: "button",
|
495
454
|
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",
|
@@ -500,7 +459,7 @@ function Ut(t, e, s, i, n, r) {
|
|
500
459
|
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",
|
501
460
|
onClick: e[3] || (e[3] = (c) => n.isSuccessTemplate = !1)
|
502
461
|
}, " Вигрузити ще ")
|
503
|
-
])) : (o(), a("div",
|
462
|
+
])) : (o(), a("div", Ft, [
|
504
463
|
l("button", {
|
505
464
|
type: "button",
|
506
465
|
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",
|
@@ -514,19 +473,19 @@ function Ut(t, e, s, i, n, r) {
|
|
514
473
|
]))
|
515
474
|
]),
|
516
475
|
default: $(() => [
|
517
|
-
n.isSuccessTemplate ? (o(), a("div",
|
518
|
-
x(
|
476
|
+
n.isSuccessTemplate ? (o(), a("div", yt, [
|
477
|
+
x(h, {
|
519
478
|
height: "100",
|
520
479
|
width: "100",
|
521
480
|
class: "text-green-200 mb-[20px]"
|
522
481
|
}),
|
523
482
|
e[8] || (e[8] = l("h2", null, "Звіт сформовано і збережено", -1))
|
524
|
-
])) : (o(), a("div",
|
525
|
-
l("div",
|
526
|
-
l("div",
|
483
|
+
])) : (o(), a("div", _t, [
|
484
|
+
l("div", vt, [
|
485
|
+
l("div", kt, [
|
527
486
|
e[9] || (e[9] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
528
|
-
l("div",
|
529
|
-
(o(!0), a(
|
487
|
+
l("div", wt, [
|
488
|
+
(o(!0), a(T, null, D(n.actions, (c) => (o(), a("button", {
|
530
489
|
key: c == null ? void 0 : c.name,
|
531
490
|
onClick: c == null ? void 0 : c.function,
|
532
491
|
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"
|
@@ -534,14 +493,14 @@ function Ut(t, e, s, i, n, r) {
|
|
534
493
|
l("span", {
|
535
494
|
class: V(["h-[14px] w-[14px] border rounded-full flex items-center justify-center", { "border-blue-500": (c == null ? void 0 : c.name) === n.activeAction }])
|
536
495
|
}, [
|
537
|
-
(c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span",
|
496
|
+
(c == null ? void 0 : c.name) === n.activeAction ? (o(), a("span", $t)) : k("", !0)
|
538
497
|
], 2),
|
539
498
|
j(" " + I(c == null ? void 0 : c.label), 1)
|
540
|
-
], 8,
|
499
|
+
], 8, Ct))), 128))
|
541
500
|
])
|
542
501
|
]),
|
543
|
-
l("div",
|
544
|
-
(o(!0), a(
|
502
|
+
l("div", At, [
|
503
|
+
(o(!0), a(T, null, D(s.columns, (c, g) => (o(), a("div", {
|
545
504
|
class: "flex items-center",
|
546
505
|
key: g,
|
547
506
|
style: { width: "calc((100% - 10px) / 2)" }
|
@@ -556,10 +515,10 @@ function Ut(t, e, s, i, n, r) {
|
|
556
515
|
]))), 128))
|
557
516
|
])
|
558
517
|
]),
|
559
|
-
l("div",
|
518
|
+
l("div", It, [
|
560
519
|
e[10] || (e[10] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
561
|
-
l("div",
|
562
|
-
(o(!0), a(
|
520
|
+
l("div", Tt, [
|
521
|
+
(o(!0), a(T, null, D(n.tableFormats, (c, g) => (o(), a("div", {
|
563
522
|
class: "flex items-center",
|
564
523
|
key: g
|
565
524
|
}, [
|
@@ -569,11 +528,11 @@ function Ut(t, e, s, i, n, r) {
|
|
569
528
|
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",
|
570
529
|
id: c,
|
571
530
|
onChange: (d) => r.selectFormat(c)
|
572
|
-
}, null, 40,
|
531
|
+
}, null, 40, St),
|
573
532
|
l("label", {
|
574
533
|
for: c,
|
575
534
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
576
|
-
}, " Формат " + I(c), 9,
|
535
|
+
}, " Формат " + I(c), 9, Vt)
|
577
536
|
]))), 128))
|
578
537
|
])
|
579
538
|
])
|
@@ -583,7 +542,7 @@ function Ut(t, e, s, i, n, r) {
|
|
583
542
|
}, 8, ["visible"])
|
584
543
|
], 64);
|
585
544
|
}
|
586
|
-
const
|
545
|
+
const Mt = /* @__PURE__ */ w(xt, [["render", jt]]), qt = {}, Lt = {
|
587
546
|
xmlns: "http://www.w3.org/2000/svg",
|
588
547
|
viewBox: "0 0 24 24",
|
589
548
|
fill: "none",
|
@@ -593,12 +552,12 @@ const Ot = /* @__PURE__ */ v($t, [["render", Ut]]), Et = {}, Nt = {
|
|
593
552
|
"stroke-linejoin": "round",
|
594
553
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
595
554
|
};
|
596
|
-
function
|
597
|
-
return o(), a("svg",
|
598
|
-
|
555
|
+
function Pt(t, e, s, i, n, r) {
|
556
|
+
return o(), a("svg", Lt, e[0] || (e[0] = [
|
557
|
+
ke('<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)
|
599
558
|
]));
|
600
559
|
}
|
601
|
-
const
|
560
|
+
const zt = /* @__PURE__ */ w(qt, [["render", Pt]]), Bt = {
|
602
561
|
props: { column: Object },
|
603
562
|
emits: ["update-column"],
|
604
563
|
data() {
|
@@ -615,21 +574,21 @@ const Rt = /* @__PURE__ */ v(Et, [["render", Ht]]), Wt = {
|
|
615
574
|
var t;
|
616
575
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
617
576
|
}
|
618
|
-
},
|
619
|
-
function
|
577
|
+
}, Ut = { class: "flex w-full gap-[8px] items-centr" };
|
578
|
+
function Ot(t, e, s, i, n, r) {
|
620
579
|
var u, f;
|
621
|
-
return o(), a("label",
|
580
|
+
return o(), a("label", Ut, [
|
622
581
|
P(l("input", {
|
623
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
582
|
+
"onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
|
624
583
|
type: "checkbox"
|
625
584
|
}, null, 512), [
|
626
|
-
[
|
585
|
+
[Oe, n.value]
|
627
586
|
]),
|
628
587
|
j(" " + I(((u = s.column) == null ? void 0 : u.ua) || ((f = s.column) == null ? void 0 : f.title)), 1)
|
629
588
|
]);
|
630
589
|
}
|
631
|
-
const
|
632
|
-
components: { IconColumns:
|
590
|
+
const Et = /* @__PURE__ */ w(Bt, [["render", Ot]]), Nt = {
|
591
|
+
components: { IconColumns: zt, AdminTableColumnsHiddenItem: Et },
|
633
592
|
emits: ["update-columns"],
|
634
593
|
props: { columns: Array },
|
635
594
|
methods: {
|
@@ -638,15 +597,15 @@ const Jt = /* @__PURE__ */ v(Wt, [["render", Gt]]), Kt = {
|
|
638
597
|
s[e] = t, this.$emit("update-columns", [...s]);
|
639
598
|
}
|
640
599
|
}
|
641
|
-
},
|
642
|
-
function
|
643
|
-
const u =
|
644
|
-
return o(), _(
|
600
|
+
}, Ht = { class: "py-2 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" }, Rt = { class: "py-[10px] px-[10px] w-[260px]" }, Wt = { class: "flex flex-col gap-[3px] max-h-[400px] w-full 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" };
|
601
|
+
function Zt(t, e, s, i, n, r) {
|
602
|
+
const u = p("IconColumns"), f = p("AdminTableColumnsHiddenItem"), h = p("VsPopover");
|
603
|
+
return o(), _(h, {
|
645
604
|
trigger: "click",
|
646
605
|
placement: "bottom"
|
647
606
|
}, {
|
648
607
|
reference: $(() => [
|
649
|
-
l("button",
|
608
|
+
l("button", Ht, [
|
650
609
|
x(u, {
|
651
610
|
height: "20",
|
652
611
|
width: "16"
|
@@ -654,10 +613,10 @@ function en(t, e, s, i, n, r) {
|
|
654
613
|
])
|
655
614
|
]),
|
656
615
|
default: $(() => [
|
657
|
-
l("div",
|
616
|
+
l("div", Rt, [
|
658
617
|
e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
659
|
-
l("ul",
|
660
|
-
(o(!0), a(
|
618
|
+
l("ul", Wt, [
|
619
|
+
(o(!0), a(T, null, D(s.columns, (m, v) => (o(), a("li", { key: v }, [
|
661
620
|
x(f, {
|
662
621
|
column: m,
|
663
622
|
onUpdateColumn: r.updateColumn
|
@@ -669,14 +628,14 @@ function en(t, e, s, i, n, r) {
|
|
669
628
|
_: 1
|
670
629
|
});
|
671
630
|
}
|
672
|
-
const
|
631
|
+
const Gt = /* @__PURE__ */ w(Nt, [["render", Zt]]), Jt = {}, Kt = {
|
673
632
|
class: "hidden sm:block shrink-0 size-3",
|
674
633
|
xmlns: "http://www.w3.org/2000/svg",
|
675
634
|
fill: "currentColor",
|
676
635
|
viewBox: "0 0 16 16"
|
677
636
|
};
|
678
|
-
function
|
679
|
-
return o(), a("svg",
|
637
|
+
function Qt(t, e, s, i, n, r) {
|
638
|
+
return o(), a("svg", Kt, e[0] || (e[0] = [
|
680
639
|
l("path", {
|
681
640
|
"fill-rule": "evenodd",
|
682
641
|
"clip-rule": "evenodd",
|
@@ -684,16 +643,16 @@ function ln(t, e, s, i, n, r) {
|
|
684
643
|
}, null, -1)
|
685
644
|
]));
|
686
645
|
}
|
687
|
-
const Ce = /* @__PURE__ */
|
646
|
+
const Ce = /* @__PURE__ */ w(Jt, [["render", Qt]]), Xt = {
|
688
647
|
props: { row: Object, column: Object, table: String }
|
689
648
|
};
|
690
|
-
function
|
691
|
-
var u, f,
|
692
|
-
return o(), _(
|
693
|
-
((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (
|
649
|
+
function Yt(t, e, s, i, n, r) {
|
650
|
+
var u, f, h, m, v, c, g, d;
|
651
|
+
return o(), _(L(
|
652
|
+
((u = s.column) == null ? void 0 : u.format) === "custom" ? (f = s.column) == null ? void 0 : f.component : `table-format-${((m = (h = s.column) == null ? void 0 : h.format) == null ? void 0 : m.toLowerCase()) || "text"}`
|
694
653
|
), {
|
695
654
|
onUpdateTable: e[0] || (e[0] = (C) => t.$emit("update-table")),
|
696
|
-
name: (
|
655
|
+
name: (v = s.column) == null ? void 0 : v.name,
|
697
656
|
data: s.row,
|
698
657
|
value: (g = s.row) == null ? void 0 : g[(c = s.column) == null ? void 0 : c.name],
|
699
658
|
table: s.table,
|
@@ -701,7 +660,7 @@ function rn(t, e, s, i, n, r) {
|
|
701
660
|
edit: (d = s.column) == null ? void 0 : d.edit
|
702
661
|
}, null, 40, ["name", "data", "value", "table", "column", "edit"]);
|
703
662
|
}
|
704
|
-
const $e = /* @__PURE__ */
|
663
|
+
const $e = /* @__PURE__ */ w(Xt, [["render", Yt]]), en = {}, tn = {
|
705
664
|
xmlns: "http://www.w3.org/2000/svg",
|
706
665
|
viewBox: "0 0 24 24",
|
707
666
|
fill: "none",
|
@@ -711,8 +670,8 @@ const $e = /* @__PURE__ */ v(on, [["render", rn]]), an = {}, cn = {
|
|
711
670
|
"stroke-linejoin": "round",
|
712
671
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
713
672
|
};
|
714
|
-
function
|
715
|
-
return o(), a("svg",
|
673
|
+
function nn(t, e, s, i, n, r) {
|
674
|
+
return o(), a("svg", tn, e[0] || (e[0] = [
|
716
675
|
l("path", {
|
717
676
|
stroke: "none",
|
718
677
|
d: "M0 0h24v24H0z",
|
@@ -721,8 +680,8 @@ function un(t, e, s, i, n, r) {
|
|
721
680
|
l("path", { d: "M5 12l14 0" }, null, -1)
|
722
681
|
]));
|
723
682
|
}
|
724
|
-
const
|
725
|
-
components: { IconPlus: Ce, IconMinus:
|
683
|
+
const sn = /* @__PURE__ */ w(en, [["render", nn]]), ln = {
|
684
|
+
components: { IconPlus: Ce, IconMinus: sn },
|
726
685
|
props: {
|
727
686
|
title: String,
|
728
687
|
defaultValue: { type: Boolean, default: () => !1 }
|
@@ -730,22 +689,22 @@ const dn = /* @__PURE__ */ v(an, [["render", un]]), bn = {
|
|
730
689
|
data() {
|
731
690
|
return { expanded: this.defaultValue };
|
732
691
|
}
|
733
|
-
},
|
734
|
-
function
|
735
|
-
const u =
|
692
|
+
}, on = { class: "hs-accordion" }, rn = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, an = { class: "text-sm font-medium" }, cn = { class: "relative inline-block w-full duration-150 cursor-pointer before:block before:absolute b" };
|
693
|
+
function un(t, e, s, i, n, r) {
|
694
|
+
const u = p("IconPlus"), f = p("IconMinus");
|
736
695
|
return o(), a("div", null, [
|
737
696
|
l("div", null, [
|
738
|
-
l("div",
|
739
|
-
l("div",
|
697
|
+
l("div", on, [
|
698
|
+
l("div", rn, [
|
740
699
|
l("div", {
|
741
|
-
onClick: e[0] || (e[0] = (
|
700
|
+
onClick: e[0] || (e[0] = (h) => n.expanded = !n.expanded),
|
742
701
|
class: "rounded-md cursor-pointer grow"
|
743
702
|
}, [
|
744
|
-
l("span",
|
703
|
+
l("span", an, I(s.title), 1)
|
745
704
|
]),
|
746
705
|
l("button", {
|
747
706
|
class: "flex items-center justify-center rounded-md size-6 hover:bg-gray-100",
|
748
|
-
onClick: e[1] || (e[1] = (
|
707
|
+
onClick: e[1] || (e[1] = (h) => n.expanded = !n.expanded)
|
749
708
|
}, [
|
750
709
|
n.expanded ? (o(), _(f, {
|
751
710
|
key: 1,
|
@@ -753,10 +712,10 @@ function gn(t, e, s, i, n, r) {
|
|
753
712
|
})) : (o(), _(u, { key: 0 }))
|
754
713
|
])
|
755
714
|
]),
|
756
|
-
x(
|
715
|
+
x(z, { name: "fade" }, {
|
757
716
|
default: $(() => [
|
758
|
-
P(l("div",
|
759
|
-
|
717
|
+
P(l("div", cn, [
|
718
|
+
Ee(t.$slots, "default", {}, void 0, !0)
|
760
719
|
], 512), [
|
761
720
|
[we, n.expanded]
|
762
721
|
])
|
@@ -767,32 +726,32 @@ function gn(t, e, s, i, n, r) {
|
|
767
726
|
])
|
768
727
|
]);
|
769
728
|
}
|
770
|
-
const
|
729
|
+
const dn = /* @__PURE__ */ w(ln, [["render", un], ["__scopeId", "data-v-c6318482"]]), bn = {
|
771
730
|
components: {
|
772
731
|
AdminComponentIs: $e,
|
773
|
-
AdminTree:
|
774
|
-
VsNoData:
|
775
|
-
VsWidgetComments:
|
776
|
-
VsWidgetMap:
|
777
|
-
VsWidgetFileList:
|
732
|
+
AdminTree: dn,
|
733
|
+
VsNoData: je,
|
734
|
+
VsWidgetComments: Me,
|
735
|
+
VsWidgetMap: qe,
|
736
|
+
VsWidgetFileList: Le
|
778
737
|
},
|
779
738
|
props: { table: String, columns: Array, row: Object }
|
780
|
-
},
|
739
|
+
}, pn = {
|
781
740
|
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",
|
782
741
|
style: { height: "calc(100vh - 310px)" }
|
783
|
-
},
|
742
|
+
}, hn = {
|
784
743
|
class: "border-l",
|
785
744
|
style: { height: "calc(100vh - 360px)" }
|
786
|
-
},
|
787
|
-
function
|
745
|
+
}, fn = { class: "flex items-center justify-between py-1 gap-x-4" }, mn = { class: "col-span-1" }, gn = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, xn = { class: "col-span-2" }, yn = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, _n = { class: "table-info-card" }, vn = { class: "table-info-card" };
|
746
|
+
function kn(t, e, s, i, n, r) {
|
788
747
|
var g, d, C;
|
789
|
-
const u =
|
790
|
-
return o(), a("div",
|
748
|
+
const u = p("AdminComponentIs"), f = p("AdminTree"), h = p("VsWidgetMap"), m = p("VsNoData"), v = p("VsWidgetComments"), c = p("VsWidgetFileList");
|
749
|
+
return o(), a("div", pn, [
|
791
750
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
792
751
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
793
752
|
], -1)),
|
794
|
-
l("div",
|
795
|
-
(d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), a(
|
753
|
+
l("div", hn, [
|
754
|
+
(d = (g = t.$route) == null ? void 0 : g.query) != null && d.card ? (o(), a(T, { key: 0 }, [
|
796
755
|
s.row ? (o(), _(f, {
|
797
756
|
key: 0,
|
798
757
|
defaultValue: !0,
|
@@ -800,12 +759,12 @@ function Tn(t, e, s, i, n, r) {
|
|
800
759
|
class: "border-b p-[10px] py-[16px]"
|
801
760
|
}, {
|
802
761
|
default: $(() => [
|
803
|
-
(o(!0), a(
|
804
|
-
l("dt",
|
805
|
-
l("p",
|
762
|
+
(o(!0), a(T, null, D(s.columns, (y) => (o(), a("dl", fn, [
|
763
|
+
l("dt", mn, [
|
764
|
+
l("p", gn, I((y == null ? void 0 : y.ua) || (y == null ? void 0 : y.title)) + ": ", 1)
|
806
765
|
]),
|
807
|
-
l("dd",
|
808
|
-
l("p",
|
766
|
+
l("dd", xn, [
|
767
|
+
l("p", yn, [
|
809
768
|
x(u, {
|
810
769
|
row: s.row,
|
811
770
|
column: y,
|
@@ -816,7 +775,7 @@ function Tn(t, e, s, i, n, r) {
|
|
816
775
|
]))), 256))
|
817
776
|
]),
|
818
777
|
_: 1
|
819
|
-
})) :
|
778
|
+
})) : k("", !0),
|
820
779
|
(C = s.row) != null && C.geom ? (o(), _(f, {
|
821
780
|
key: 1,
|
822
781
|
title: "Карта",
|
@@ -825,7 +784,7 @@ function Tn(t, e, s, i, n, r) {
|
|
825
784
|
default: $(() => {
|
826
785
|
var y, A;
|
827
786
|
return [
|
828
|
-
(y = s.row) != null && y.geom ? (o(), _(
|
787
|
+
(y = s.row) != null && y.geom ? (o(), _(h, {
|
829
788
|
key: 0,
|
830
789
|
geometry: (A = s.row) == null ? void 0 : A.geom,
|
831
790
|
zoom: 14
|
@@ -838,7 +797,7 @@ function Tn(t, e, s, i, n, r) {
|
|
838
797
|
];
|
839
798
|
}),
|
840
799
|
_: 1
|
841
|
-
})) :
|
800
|
+
})) : k("", !0),
|
842
801
|
x(f, {
|
843
802
|
title: "Коментарі",
|
844
803
|
class: "border-b p-[10px] py-[16px]"
|
@@ -846,8 +805,8 @@ function Tn(t, e, s, i, n, r) {
|
|
846
805
|
default: $(() => {
|
847
806
|
var y;
|
848
807
|
return [
|
849
|
-
l("div",
|
850
|
-
x(
|
808
|
+
l("div", _n, [
|
809
|
+
x(v, {
|
851
810
|
id: (y = s.row) == null ? void 0 : y.id
|
852
811
|
}, null, 8, ["id"])
|
853
812
|
])
|
@@ -862,7 +821,7 @@ function Tn(t, e, s, i, n, r) {
|
|
862
821
|
default: $(() => {
|
863
822
|
var y;
|
864
823
|
return [
|
865
|
-
l("div",
|
824
|
+
l("div", vn, [
|
866
825
|
x(c, {
|
867
826
|
id: (y = s.row) == null ? void 0 : y.id
|
868
827
|
}, null, 8, ["id"])
|
@@ -878,7 +837,7 @@ function Tn(t, e, s, i, n, r) {
|
|
878
837
|
])
|
879
838
|
]);
|
880
839
|
}
|
881
|
-
const
|
840
|
+
const wn = /* @__PURE__ */ w(bn, [["render", kn]]), Cn = {}, $n = {
|
882
841
|
class: "hidden xl:block shrink-0 size-4",
|
883
842
|
xmlns: "http://www.w3.org/2000/svg",
|
884
843
|
viewBox: "0 0 24 24",
|
@@ -888,8 +847,8 @@ const Vn = /* @__PURE__ */ v(yn, [["render", Tn]]), Dn = {}, Fn = {
|
|
888
847
|
"stroke-linecap": "round",
|
889
848
|
"stroke-linejoin": "round"
|
890
849
|
};
|
891
|
-
function
|
892
|
-
return o(), a("svg",
|
850
|
+
function An(t, e, s, i, n, r) {
|
851
|
+
return o(), a("svg", $n, e[0] || (e[0] = [
|
893
852
|
l("rect", {
|
894
853
|
width: "18",
|
895
854
|
height: "18",
|
@@ -901,7 +860,7 @@ function jn(t, e, s, i, n, r) {
|
|
901
860
|
l("path", { d: "m8 9 3 3-3 3" }, null, -1)
|
902
861
|
]));
|
903
862
|
}
|
904
|
-
const
|
863
|
+
const In = /* @__PURE__ */ w(Cn, [["render", An]]), Tn = {}, Sn = {
|
905
864
|
class: "h21yx vs0hq",
|
906
865
|
xmlns: "http://www.w3.org/2000/svg",
|
907
866
|
width: "24",
|
@@ -913,15 +872,15 @@ const Mn = /* @__PURE__ */ v(Dn, [["render", jn]]), qn = {}, zn = {
|
|
913
872
|
"stroke-linecap": "round",
|
914
873
|
"stroke-linejoin": "round"
|
915
874
|
};
|
916
|
-
function
|
917
|
-
return o(), a("svg",
|
918
|
-
|
875
|
+
function Vn(t, e, s, i, n, r) {
|
876
|
+
return o(), a("svg", Sn, e[0] || (e[0] = [
|
877
|
+
ke('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
|
919
878
|
]));
|
920
879
|
}
|
921
|
-
const
|
880
|
+
const Dn = /* @__PURE__ */ w(Tn, [["render", Vn]]), Fn = {
|
922
881
|
emits: ["filterChange"],
|
923
882
|
props: { scheme: { type: Object }, onFilters: { type: Number } },
|
924
|
-
components: { IconFilter:
|
883
|
+
components: { IconFilter: Dn },
|
925
884
|
data() {
|
926
885
|
return {
|
927
886
|
isFilters: !1
|
@@ -932,15 +891,15 @@ const Pn = /* @__PURE__ */ v(qn, [["render", Ln]]), Bn = {
|
|
932
891
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
933
892
|
}
|
934
893
|
}
|
935
|
-
},
|
894
|
+
}, jn = {
|
936
895
|
key: 0,
|
937
896
|
class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
|
938
|
-
},
|
939
|
-
function
|
940
|
-
const u =
|
941
|
-
return o(), a(
|
897
|
+
}, Mn = { class: "filter-content h-screen bg-white w-[400px] p-[20px] pt-[10px] overflow-x-auto bg-white [&::-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" };
|
898
|
+
function qn(t, e, s, i, n, r) {
|
899
|
+
const u = p("IconFilter"), f = p("VsFilter");
|
900
|
+
return o(), a(T, null, [
|
942
901
|
l("button", {
|
943
|
-
onClick: e[0] || (e[0] = (
|
902
|
+
onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
|
944
903
|
class: "py-2 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"
|
945
904
|
}, [
|
946
905
|
x(u, {
|
@@ -948,19 +907,19 @@ function En(t, e, s, i, n, r) {
|
|
948
907
|
width: "16"
|
949
908
|
}),
|
950
909
|
e[4] || (e[4] = j(" Фільтри ")),
|
951
|
-
s.onFilters ? (o(), a("span",
|
910
|
+
s.onFilters ? (o(), a("span", jn, I(s.onFilters), 1)) : k("", !0)
|
952
911
|
]),
|
953
|
-
x(
|
912
|
+
x(z, { name: "fade" }, {
|
954
913
|
default: $(() => {
|
955
|
-
var
|
914
|
+
var h;
|
956
915
|
return [
|
957
916
|
P(l("div", {
|
958
917
|
onClick: e[3] || (e[3] = (...m) => r.closeFilter && r.closeFilter(...m)),
|
959
918
|
style: { height: "100vh" },
|
960
919
|
class: "fixed filter-container top-0 flex justify-end items-center z-[2] right-0 left-0 bottom-0 bg-[rgba(0,0,0,0.5)]"
|
961
920
|
}, [
|
962
|
-
l("div",
|
963
|
-
(
|
921
|
+
l("div", Mn, [
|
922
|
+
(h = s.scheme) != null && h.length ? (o(), _(f, {
|
964
923
|
key: 0,
|
965
924
|
ref: "filter",
|
966
925
|
scheme: s.scheme,
|
@@ -971,7 +930,7 @@ function En(t, e, s, i, n, r) {
|
|
971
930
|
onFilterChange: e[1] || (e[1] = (m) => t.$emit("filterChange", m)),
|
972
931
|
closeFilterBtn: !0,
|
973
932
|
onFilterClose: e[2] || (e[2] = (m) => n.isFilters = !1)
|
974
|
-
}, null, 8, ["scheme"])) :
|
933
|
+
}, null, 8, ["scheme"])) : k("", !0)
|
975
934
|
])
|
976
935
|
], 512), [
|
977
936
|
[we, n.isFilters]
|
@@ -982,25 +941,25 @@ function En(t, e, s, i, n, r) {
|
|
982
941
|
})
|
983
942
|
], 64);
|
984
943
|
}
|
985
|
-
const
|
944
|
+
const Ln = /* @__PURE__ */ w(Fn, [["render", qn]]), Pn = {
|
986
945
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
987
|
-
},
|
946
|
+
}, zn = {
|
988
947
|
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",
|
989
948
|
"aria-label": "Tabs",
|
990
949
|
role: "tablist",
|
991
950
|
"aria-orientation": "horizontal"
|
992
|
-
},
|
993
|
-
function
|
994
|
-
return o(), a("nav",
|
995
|
-
(o(!0), a(
|
951
|
+
}, Bn = ["onClick"];
|
952
|
+
function Un(t, e, s, i, n, r) {
|
953
|
+
return o(), a("nav", zn, [
|
954
|
+
(o(!0), a(T, null, D(s.tabsList, (u) => (o(), a("button", {
|
996
955
|
onClick: (f) => t.$emit("update:filterState", u == null ? void 0 : u.name),
|
997
956
|
class: V(["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", {
|
998
957
|
" 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": (u == null ? void 0 : u.name) === s.filterState
|
999
958
|
}])
|
1000
|
-
}, I(u == null ? void 0 : u.label), 11,
|
959
|
+
}, I(u == null ? void 0 : u.label), 11, Bn))), 256))
|
1001
960
|
]);
|
1002
961
|
}
|
1003
|
-
const
|
962
|
+
const On = /* @__PURE__ */ w(Pn, [["render", Un]]), En = {}, Nn = {
|
1004
963
|
xmlns: "http://www.w3.org/2000/svg",
|
1005
964
|
viewBox: "0 0 24 24",
|
1006
965
|
fill: "none",
|
@@ -1010,8 +969,8 @@ const Gn = /* @__PURE__ */ v(Hn, [["render", Zn]]), Jn = {}, Kn = {
|
|
1010
969
|
"stroke-linejoin": "round",
|
1011
970
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
1012
971
|
};
|
1013
|
-
function
|
1014
|
-
return o(), a("svg",
|
972
|
+
function Hn(t, e, s, i, n, r) {
|
973
|
+
return o(), a("svg", Nn, e[0] || (e[0] = [
|
1015
974
|
l("path", {
|
1016
975
|
stroke: "none",
|
1017
976
|
d: "M0 0h24v24H0z",
|
@@ -1020,18 +979,18 @@ function Qn(t, e, s, i, n, r) {
|
|
1020
979
|
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)
|
1021
980
|
]));
|
1022
981
|
}
|
1023
|
-
const
|
1024
|
-
components: { IconFilter2:
|
982
|
+
const Rn = /* @__PURE__ */ w(En, [["render", Hn]]), Wn = {
|
983
|
+
components: { IconFilter2: Rn },
|
1025
984
|
props: { filterCustom: String, customList: Array }
|
1026
|
-
},
|
1027
|
-
function
|
1028
|
-
const u =
|
985
|
+
}, Zn = { class: "py-2 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" }, Gn = { class: "flex flex-col gap-[4px]" }, Jn = ["onClick"];
|
986
|
+
function Kn(t, e, s, i, n, r) {
|
987
|
+
const u = p("IconFilter2"), f = p("VsPopover");
|
1029
988
|
return o(), _(f, {
|
1030
989
|
ref: "popover",
|
1031
990
|
placement: "bottom"
|
1032
991
|
}, {
|
1033
992
|
reference: $(() => [
|
1034
|
-
l("button",
|
993
|
+
l("button", Zn, [
|
1035
994
|
x(u, {
|
1036
995
|
height: "20",
|
1037
996
|
width: "20"
|
@@ -1039,18 +998,18 @@ function ss(t, e, s, i, n, r) {
|
|
1039
998
|
])
|
1040
999
|
]),
|
1041
1000
|
default: $(() => [
|
1042
|
-
l("div",
|
1043
|
-
(o(!0), a(
|
1044
|
-
onClick: (
|
1001
|
+
l("div", Gn, [
|
1002
|
+
(o(!0), a(T, null, D(s.customList, (h, m) => (o(), a("button", {
|
1003
|
+
onClick: (v) => {
|
1045
1004
|
var c;
|
1046
|
-
t.$emit("update:filterCustom",
|
1005
|
+
t.$emit("update:filterCustom", h == null ? void 0 : h.name), (c = t.$refs) == null || c.popover.togglePopover();
|
1047
1006
|
},
|
1048
1007
|
key: m,
|
1049
|
-
class: V(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (
|
1050
|
-
}, I(
|
1008
|
+
class: V(["p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300", { "bg-gray-100": s.filterCustom === (h == null ? void 0 : h.name) }])
|
1009
|
+
}, I(h == null ? void 0 : h.label), 11, Jn))), 128)),
|
1051
1010
|
l("button", {
|
1052
1011
|
class: "p-[8px] block rounded-lg w-[140px] text-start hover:bg-gray-100 !duration-300",
|
1053
|
-
onClick: e[0] || (e[0] = (
|
1012
|
+
onClick: e[0] || (e[0] = (h) => {
|
1054
1013
|
var m;
|
1055
1014
|
t.$emit("update:filterCustom", void 0), (m = t.$refs) == null || m.popover.togglePopover();
|
1056
1015
|
})
|
@@ -1060,61 +1019,61 @@ function ss(t, e, s, i, n, r) {
|
|
1060
1019
|
_: 1
|
1061
1020
|
}, 512);
|
1062
1021
|
}
|
1063
|
-
const
|
1022
|
+
const Qn = /* @__PURE__ */ w(Wn, [["render", Kn]]), Xn = { class: "flex items-center gap-x-2" }, Yn = {
|
1064
1023
|
__name: "admin-table-custom-buttons",
|
1065
1024
|
props: {
|
1066
1025
|
slots: Object
|
1067
1026
|
},
|
1068
1027
|
setup(t) {
|
1069
|
-
var f,
|
1070
|
-
const { asyncTemplateSlot: e } = (c = (
|
1028
|
+
var f, h, m, v, c;
|
1029
|
+
const { asyncTemplateSlot: e } = (c = (v = (m = (h = (f = Ne()) == null ? void 0 : f.appContext) == null ? void 0 : h.app) == null ? void 0 : m.config) == null ? void 0 : v.globalProperties) == null ? void 0 : c.utils, s = _e(""), i = _e(""), n = t, r = () => {
|
1071
1030
|
var g, d, C, y, A;
|
1072
1031
|
if ((g = n.slots) != null && g.panelLeft || (i.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelLeft) != null && C.includes("<")) {
|
1073
|
-
const
|
1032
|
+
const S = e("PanelLeft", (y = n.slots) == null ? void 0 : y.panelLeft, [
|
1074
1033
|
"name"
|
1075
1034
|
]);
|
1076
|
-
i.value =
|
1035
|
+
i.value = S;
|
1077
1036
|
} else
|
1078
1037
|
i.value = (A = n.slots) == null ? void 0 : A.panelLeft;
|
1079
1038
|
}, u = () => {
|
1080
1039
|
var g, d, C, y, A;
|
1081
1040
|
if ((g = n.slots) != null && g.panelRight || (s.value = "div"), (C = (d = n.slots) == null ? void 0 : d.panelRight) != null && C.includes("<")) {
|
1082
|
-
const
|
1041
|
+
const S = e("PanelRight", (y = n.slots) == null ? void 0 : y.panelRight, [
|
1083
1042
|
"name"
|
1084
1043
|
]);
|
1085
|
-
s.value =
|
1044
|
+
s.value = S;
|
1086
1045
|
} else
|
1087
1046
|
s.value = (A = n.slots) == null ? void 0 : A.panelRight;
|
1088
1047
|
};
|
1089
|
-
return r(), u(), (g, d) => (o(), a("div",
|
1090
|
-
(o(), _(
|
1091
|
-
(o(), _(
|
1048
|
+
return r(), u(), (g, d) => (o(), a("div", Xn, [
|
1049
|
+
(o(), _(L(i.value))),
|
1050
|
+
(o(), _(L(s.value)))
|
1092
1051
|
]));
|
1093
1052
|
}
|
1094
|
-
},
|
1053
|
+
}, es = (t, e = 300) => {
|
1095
1054
|
let s;
|
1096
1055
|
return function(...i) {
|
1097
1056
|
clearTimeout(s), s = setTimeout(() => {
|
1098
1057
|
t.apply(this, i);
|
1099
1058
|
}, e);
|
1100
1059
|
};
|
1101
|
-
},
|
1060
|
+
}, ts = {
|
1102
1061
|
props: { table: String, title: String },
|
1103
1062
|
components: {
|
1104
|
-
AdminTableControl:
|
1105
|
-
AdminTableExport:
|
1106
|
-
AdminTableColumnsHidden:
|
1107
|
-
AdminTableColumn:
|
1108
|
-
AdminNodata:
|
1063
|
+
AdminTableControl: ct,
|
1064
|
+
AdminTableExport: Mt,
|
1065
|
+
AdminTableColumnsHidden: Gt,
|
1066
|
+
AdminTableColumn: Xe,
|
1067
|
+
AdminNodata: Pe,
|
1109
1068
|
IconPlus: Ce,
|
1110
1069
|
IconSearch: ze,
|
1111
|
-
AdminTableCardInfo:
|
1112
|
-
IconOpenCard:
|
1070
|
+
AdminTableCardInfo: wn,
|
1071
|
+
IconOpenCard: In,
|
1113
1072
|
AdminComponentIs: $e,
|
1114
|
-
AdminTableFilters:
|
1115
|
-
AdminTableTabs:
|
1116
|
-
AdminTableCustomFilters:
|
1117
|
-
AdminTableCustomButtons:
|
1073
|
+
AdminTableFilters: Ln,
|
1074
|
+
AdminTableTabs: On,
|
1075
|
+
AdminTableCustomFilters: Qn,
|
1076
|
+
AdminTableCustomButtons: Yn
|
1118
1077
|
},
|
1119
1078
|
data() {
|
1120
1079
|
return {
|
@@ -1170,7 +1129,7 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1170
1129
|
this.tableData = null, await this.getTableData();
|
1171
1130
|
},
|
1172
1131
|
searchValue: {
|
1173
|
-
handler:
|
1132
|
+
handler: es(async function(t) {
|
1174
1133
|
var e;
|
1175
1134
|
await this.getTableData(), this.$router.push({
|
1176
1135
|
...this.$route,
|
@@ -1216,8 +1175,8 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1216
1175
|
},
|
1217
1176
|
methods: {
|
1218
1177
|
async checkUrlMounted() {
|
1219
|
-
var t, e, s, i, n, r, u, f,
|
1220
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : i.limit) || 20, this.filters = ((u = decodeURI((r = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((
|
1178
|
+
var t, e, s, i, n, r, u, f, h, m, v, c, g, d, C, y, A;
|
1179
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((i = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : i.limit) || 20, this.filters = ((u = decodeURI((r = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : r.filter)) == null ? void 0 : u.replaceAll("+", " ")) || null, this.filterState = ((h = (f = this.$route) == null ? void 0 : f.query) == null ? void 0 : h.filterState) || null, this.filterCustom = ((v = (m = this.$route) == null ? void 0 : m.query) == null ? void 0 : v.custom) || null, this.searchValue = ((g = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : g.search) || "", this.visibleColumns = ((y = (C = (d = this.$route) == null ? void 0 : d.query) == null ? void 0 : C.columns) == null ? void 0 : y.split(",")) || [], (A = this.$route) != null && A.query.card && (this.isVisibleCardInfo = !0);
|
1221
1180
|
},
|
1222
1181
|
rowWidth(t) {
|
1223
1182
|
var s, i;
|
@@ -1231,7 +1190,7 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1231
1190
|
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 = "";
|
1232
1191
|
},
|
1233
1192
|
async getTableData() {
|
1234
|
-
var t, e, s, i, n, r, u, f,
|
1193
|
+
var t, e, s, i, n, r, u, f, h, m, v;
|
1235
1194
|
try {
|
1236
1195
|
const { data: c } = await F.get(`/api/template/table/${this.table}`), g = await F.get(`/api/table-data/${this.table}`, {
|
1237
1196
|
params: {
|
@@ -1250,7 +1209,7 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1250
1209
|
}, this.initialHiddenColumns = (r = (n = (i = (s = this.tableData) == null ? void 0 : s.columns) == null ? void 0 : i.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : n.map((d) => d == null ? void 0 : d.name)) == null ? void 0 : r.join(","), (u = this.visibleColumns) != null && u.length ? (f = this.tableData) == null || f.columns.forEach((d) => {
|
1251
1210
|
var C;
|
1252
1211
|
(C = this.visibleColumns) != null && C.includes(d == null ? void 0 : d.name) ? d.hidden = !1 : d.hidden = !0;
|
1253
|
-
}) : this.visibleColumns = (
|
1212
|
+
}) : this.visibleColumns = (v = (m = (h = this.tableData) == null ? void 0 : h.columns) == null ? void 0 : m.filter((d) => (d == null ? void 0 : d.hidden) !== !0)) == null ? void 0 : v.map((d) => d == null ? void 0 : d.name);
|
1254
1213
|
} catch {
|
1255
1214
|
}
|
1256
1215
|
},
|
@@ -1298,28 +1257,28 @@ const ls = /* @__PURE__ */ v(Yn, [["render", ss]]), os = { class: "flex items-ce
|
|
1298
1257
|
});
|
1299
1258
|
}
|
1300
1259
|
}
|
1301
|
-
},
|
1260
|
+
}, ns = { class: "w-[calc(100vw - 320px)] bg-gray-50" }, ss = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white border rounded-xl" }, ls = { class: "text-xl font-medium" }, os = {
|
1302
1261
|
style: { height: "calc(100vh - 155px)", width: "calc(100vw - 260px)" },
|
1303
1262
|
class: "bg-gray-50 p-[20px] flex pt-[10px]"
|
1304
|
-
},
|
1263
|
+
}, rs = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, as = { class: "flex" }, is = { class: "flex gap-[6px] ml-auto" }, cs = { class: "inline-block w-full align-middle" }, us = {
|
1305
1264
|
key: 0,
|
1306
1265
|
class: "relative min-w-full divide-y divide-gray-200 table-fixed w-max dark:divide-neutral-700"
|
1307
|
-
},
|
1266
|
+
}, ds = { class: "sticky top-[-1px] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200" }, bs = { class: "right-0 border-t border-stone-200" }, ps = {
|
1308
1267
|
key: 0,
|
1309
1268
|
class: "w-[70px] sticky right-0 top-0"
|
1310
|
-
},
|
1269
|
+
}, hs = { class: "divide-y divide-gray-200" }, fs = { class: "px-4 py-3 text-sm text-gray-600" }, ms = ["onClick"], gs = ["onClick"], xs = { class: "p-[20px] flex justify-start items-center w-full" }, ys = { class: "w-[200px]" }, _s = { class: "text-sm text-gray-600 dark:text-neutral-400" }, vs = { class: "font-semibold text-gray-800 dark:text-neutral-200" }, ks = { key: 0 }, ws = {
|
1311
1270
|
key: 0,
|
1312
1271
|
class: "font-semibold text-gray-800 dark:text-neutral-200"
|
1313
1272
|
};
|
1314
|
-
function
|
1315
|
-
var O, E, N, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie
|
1316
|
-
const u =
|
1317
|
-
return o(), a("div",
|
1318
|
-
l("div",
|
1319
|
-
l("h2",
|
1273
|
+
function Cs(t, e, s, i, n, r) {
|
1274
|
+
var U, O, E, N, H, R, W, Z, G, J, K, Q, X, Y, ee, te, ne, se, le, oe, re, ae, ie;
|
1275
|
+
const u = p("IconPlus"), f = p("router-link"), h = p("AdminTableTabs"), m = p("IconSearch"), v = p("VsText"), c = p("AdminTableCustomButtons"), g = p("AdminTableCustomFilters"), d = p("AdminTableColumnsHidden"), C = p("AdminTableExport"), y = p("AdminTableFilters"), A = p("IconOpenCard"), S = p("AdminTableColumn"), M = p("AdminComponentIs"), B = p("AdminTableControl"), Ae = p("AdminNodata"), Ie = p("VsPagination"), Te = p("AdminTableCardInfo");
|
1276
|
+
return o(), a("div", ns, [
|
1277
|
+
l("div", ss, [
|
1278
|
+
l("h2", ls, I(s.title), 1),
|
1320
1279
|
r.isForm ? (o(), _(f, {
|
1321
1280
|
key: 0,
|
1322
|
-
to: `/add?table=${(
|
1281
|
+
to: `/add?table=${(O = (U = t.$route) == null ? void 0 : U.params) == null ? void 0 : O.catchAll}`,
|
1323
1282
|
class: "inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-blue-600 border border-transparent rounded-lg gap-x-2 hover:bg-blue-700 hover:text-white"
|
1324
1283
|
}, {
|
1325
1284
|
default: $(() => [
|
@@ -1330,17 +1289,17 @@ function Ds(t, e, s, i, n, r) {
|
|
1330
1289
|
e[5] || (e[5] = j(" Додати "))
|
1331
1290
|
]),
|
1332
1291
|
_: 1
|
1333
|
-
}, 8, ["to"])) :
|
1292
|
+
}, 8, ["to"])) : k("", !0)
|
1334
1293
|
]),
|
1335
|
-
l("div",
|
1336
|
-
l("div",
|
1337
|
-
(
|
1294
|
+
l("div", os, [
|
1295
|
+
l("div", rs, [
|
1296
|
+
(N = (E = n.tableData) == null ? void 0 : E.filterState) != null && N.length ? (o(), _(h, {
|
1338
1297
|
key: 0,
|
1339
|
-
tabsList: (
|
1298
|
+
tabsList: (H = n.tableData) == null ? void 0 : H.filterState,
|
1340
1299
|
filterState: n.filterState,
|
1341
1300
|
"onUpdate:filterState": e[0] || (e[0] = (b) => n.filterState = b)
|
1342
|
-
}, null, 8, ["tabsList", "filterState"])) :
|
1343
|
-
l("div",
|
1301
|
+
}, null, 8, ["tabsList", "filterState"])) : k("", !0),
|
1302
|
+
l("div", as, [
|
1344
1303
|
l("div", {
|
1345
1304
|
class: V([n.isVisibleCardInfo ? "w-[calc(100%-360px)]" : "w-full"])
|
1346
1305
|
}, [
|
@@ -1352,43 +1311,43 @@ function Ds(t, e, s, i, n, r) {
|
|
1352
1311
|
width: "14",
|
1353
1312
|
class: "absolute top-[10px] left-[14px] text-gray-500 z-[1]"
|
1354
1313
|
}),
|
1355
|
-
x(
|
1314
|
+
x(v, {
|
1356
1315
|
modelValue: n.searchValue,
|
1357
1316
|
"onUpdate:modelValue": e[1] || (e[1] = (b) => n.searchValue = b),
|
1358
1317
|
placeholder: "Пошук...",
|
1359
1318
|
clearable: !0,
|
1360
1319
|
class: "[&>input]:py-[7px] [&>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"
|
1361
1320
|
}, null, 8, ["modelValue"]),
|
1362
|
-
l("div",
|
1363
|
-
(
|
1321
|
+
l("div", is, [
|
1322
|
+
(R = n.tableData) != null && R.slots ? (o(), _(c, {
|
1364
1323
|
key: 0,
|
1365
|
-
slots: (
|
1366
|
-
}, null, 8, ["slots"])) :
|
1367
|
-
(
|
1324
|
+
slots: (W = n.tableData) == null ? void 0 : W.slots
|
1325
|
+
}, null, 8, ["slots"])) : k("", !0),
|
1326
|
+
(G = (Z = n.tableData) == null ? void 0 : Z.filterCustom) != null && G.length ? (o(), _(g, {
|
1368
1327
|
key: 1,
|
1369
|
-
customList: (
|
1328
|
+
customList: (J = n.tableData) == null ? void 0 : J.filterCustom,
|
1370
1329
|
filterCustom: n.filterCustom,
|
1371
1330
|
"onUpdate:filterCustom": e[2] || (e[2] = (b) => n.filterCustom = b)
|
1372
|
-
}, null, 8, ["customList", "filterCustom"])) :
|
1331
|
+
}, null, 8, ["customList", "filterCustom"])) : k("", !0),
|
1373
1332
|
x(d, {
|
1374
|
-
columns: (
|
1333
|
+
columns: (K = n.tableData) == null ? void 0 : K.columns,
|
1375
1334
|
onUpdateColumns: e[3] || (e[3] = (b) => n.tableData.columns = b)
|
1376
1335
|
}, null, 8, ["columns"]),
|
1377
|
-
((
|
1336
|
+
((Q = n.tableData) == null ? void 0 : Q.export) !== !1 ? (o(), _(C, {
|
1378
1337
|
key: 2,
|
1379
1338
|
table: s.table,
|
1380
|
-
columns: (
|
1339
|
+
columns: (X = n.tableData) == null ? void 0 : X.columns,
|
1381
1340
|
page: n.page,
|
1382
1341
|
"filter-state": n.filterState,
|
1383
1342
|
"filter-custom": n.filterCustom,
|
1384
1343
|
filters: n.filters
|
1385
|
-
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) :
|
1386
|
-
(
|
1344
|
+
}, null, 8, ["table", "columns", "page", "filter-state", "filter-custom", "filters"])) : k("", !0),
|
1345
|
+
(Y = n.filterScheme) != null && Y.length ? (o(), _(y, {
|
1387
1346
|
key: 3,
|
1388
1347
|
scheme: n.filterScheme,
|
1389
1348
|
onFilters: n.onFilters,
|
1390
1349
|
onFilterChange: r.filterChange
|
1391
|
-
}, null, 8, ["scheme", "onFilters", "onFilterChange"])) :
|
1350
|
+
}, null, 8, ["scheme", "onFilters", "onFilterChange"])) : k("", !0),
|
1392
1351
|
l("button", {
|
1393
1352
|
onClick: e[4] || (e[4] = (...b) => r.toggleCardInfo && r.toggleCardInfo(...b)),
|
1394
1353
|
class: "py-2 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"
|
@@ -1403,18 +1362,18 @@ function Ds(t, e, s, i, n, r) {
|
|
1403
1362
|
class: V(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
|
1404
1363
|
}, [
|
1405
1364
|
l("div", {
|
1406
|
-
style:
|
1407
|
-
height: (
|
1365
|
+
style: ve({
|
1366
|
+
height: (te = (ee = n.tableData) == null ? void 0 : ee.filterState) != null && te.length ? "calc(100vh - 370px)" : "calc(100vh - 330px)"
|
1408
1367
|
}),
|
1409
1368
|
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"
|
1410
1369
|
}, [
|
1411
|
-
l("div",
|
1412
|
-
r.isNoData ? (o(), _(Ae, { key: 1 })) : (o(), a("table",
|
1413
|
-
l("thead",
|
1414
|
-
l("tr",
|
1415
|
-
(o(!0), a(
|
1370
|
+
l("div", cs, [
|
1371
|
+
r.isNoData ? (o(), _(Ae, { key: 1 })) : (o(), a("table", us, [
|
1372
|
+
l("thead", ds, [
|
1373
|
+
l("tr", bs, [
|
1374
|
+
(o(!0), a(T, null, D(r.columns, (b) => (o(), _(S, {
|
1416
1375
|
key: b.name,
|
1417
|
-
style:
|
1376
|
+
style: ve({
|
1418
1377
|
width: r.rowWidth(b == null ? void 0 : b.name),
|
1419
1378
|
textAlign: b == null ? void 0 : b.align,
|
1420
1379
|
wordBreak: b == null ? void 0 : b.wrap
|
@@ -1423,23 +1382,23 @@ function Ds(t, e, s, i, n, r) {
|
|
1423
1382
|
activeColumn: n.activeColumn,
|
1424
1383
|
onChangeActive: r.changeActiveColumn
|
1425
1384
|
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1426
|
-
(
|
1385
|
+
(se = (ne = r.getActions) == null ? void 0 : ne.filter((b) => b !== "add")) != null && se.length ? (o(), a("th", ps)) : k("", !0)
|
1427
1386
|
])
|
1428
1387
|
]),
|
1429
|
-
l("tbody",
|
1430
|
-
(o(!0), a(
|
1431
|
-
var ue, de, be,
|
1388
|
+
l("tbody", hs, [
|
1389
|
+
(o(!0), a(T, null, D((le = n.tableData) == null ? void 0 : le.rows, (b, Se) => {
|
1390
|
+
var ce, ue, de, be, pe, he, fe, me, ge, xe;
|
1432
1391
|
return o(), a("tr", {
|
1433
|
-
key:
|
1392
|
+
key: Se,
|
1434
1393
|
class: V({
|
1435
|
-
"bg-gray-50": ((
|
1394
|
+
"bg-gray-50": ((ue = (ce = t.$route) == null ? void 0 : ce.query) == null ? void 0 : ue.card) === (b == null ? void 0 : b.id)
|
1436
1395
|
})
|
1437
1396
|
}, [
|
1438
|
-
l("td",
|
1397
|
+
l("td", fs, [
|
1439
1398
|
l("button", {
|
1440
1399
|
onClick: () => r.pushToCard(b == null ? void 0 : b.id),
|
1441
1400
|
class: V(["text-sm font-medium", [
|
1442
|
-
((
|
1401
|
+
((de = n.tableData) == null ? void 0 : de.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1443
1402
|
]])
|
1444
1403
|
}, [
|
1445
1404
|
x(M, {
|
@@ -1448,10 +1407,10 @@ function Ds(t, e, s, i, n, r) {
|
|
1448
1407
|
table: s.table,
|
1449
1408
|
onUpdateTable: r.getTableData
|
1450
1409
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1451
|
-
], 10,
|
1410
|
+
], 10, ms)
|
1452
1411
|
]),
|
1453
|
-
(o(!0), a(
|
1454
|
-
onClick: (
|
1412
|
+
(o(!0), a(T, null, D((be = r.columns) == null ? void 0 : be.slice(1), (q) => (o(), a("td", {
|
1413
|
+
onClick: (Ss) => r.changeActiveCardInfo(b == null ? void 0 : b.id),
|
1455
1414
|
class: V(["px-3 py-3 text-sm text-gray-600 text-start", { "cursor-pointer": n.isVisibleCardInfo }]),
|
1456
1415
|
key: q.name
|
1457
1416
|
}, [
|
@@ -1461,22 +1420,22 @@ function Ds(t, e, s, i, n, r) {
|
|
1461
1420
|
table: s.table,
|
1462
1421
|
onUpdateTable: r.getTableData
|
1463
1422
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1464
|
-
], 10,
|
1465
|
-
(
|
1423
|
+
], 10, gs))), 128)),
|
1424
|
+
(he = (pe = r.getActions) == null ? void 0 : pe.filter((q) => q !== "add")) != null && he.length ? (o(), a("td", {
|
1466
1425
|
key: 0,
|
1467
1426
|
class: V(["text-center sticky right-0 w-[80px] px-[10px]", {
|
1468
|
-
"bg-gray-50": ((
|
1469
|
-
"bg-white": ((
|
1427
|
+
"bg-gray-50": ((me = (fe = t.$route) == null ? void 0 : fe.query) == null ? void 0 : me.card) === (b == null ? void 0 : b.id),
|
1428
|
+
"bg-white": ((xe = (ge = t.$route) == null ? void 0 : ge.query) == null ? void 0 : xe.card) !== (b == null ? void 0 : b.id)
|
1470
1429
|
}])
|
1471
1430
|
}, [
|
1472
|
-
x(
|
1431
|
+
x(B, {
|
1473
1432
|
actions: r.getActions,
|
1474
1433
|
isForm: r.isForm,
|
1475
1434
|
item: b,
|
1476
1435
|
table: s.table,
|
1477
1436
|
onUpdateTable: r.getTableData
|
1478
1437
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1479
|
-
], 2)) :
|
1438
|
+
], 2)) : k("", !0)
|
1480
1439
|
], 2);
|
1481
1440
|
}), 128))
|
1482
1441
|
])
|
@@ -1484,40 +1443,40 @@ function Ds(t, e, s, i, n, r) {
|
|
1484
1443
|
])
|
1485
1444
|
], 4)
|
1486
1445
|
], 2),
|
1487
|
-
l("div",
|
1488
|
-
l("div",
|
1489
|
-
l("p",
|
1490
|
-
l("span",
|
1491
|
-
j(I(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((
|
1492
|
-
n.filters || n.searchValue ? (o(), a("span",
|
1446
|
+
l("div", xs, [
|
1447
|
+
l("div", ys, [
|
1448
|
+
l("p", _s, [
|
1449
|
+
l("span", vs, [
|
1450
|
+
j(I(n.filters || n.searchValue ? "Знайдено" : "Об'єктів") + " " + I(((oe = n.tableData) == null ? void 0 : oe.count) || "0 ") + " ", 1),
|
1451
|
+
n.filters || n.searchValue ? (o(), a("span", ks, " з")) : k("", !0)
|
1493
1452
|
]),
|
1494
|
-
n.filters || n.searchValue ? (o(), a("span",
|
1453
|
+
n.filters || n.searchValue ? (o(), a("span", ws, I(" " + ((re = n.tableData) == null ? void 0 : re.filtered) || 0), 1)) : k("", !0)
|
1495
1454
|
])
|
1496
1455
|
]),
|
1497
|
-
Math.ceil(((
|
1456
|
+
Math.ceil(((ae = n.tableData) == null ? void 0 : ae.filtered) / n.limit) > 1 ? (o(), _(Ie, {
|
1498
1457
|
key: 0,
|
1499
1458
|
goTo: !1,
|
1500
1459
|
class: "justify-end",
|
1501
1460
|
"default-page": parseInt(r.defaultPage),
|
1502
|
-
total: ((
|
1461
|
+
total: ((ie = n.tableData) == null ? void 0 : ie.filtered) || 0,
|
1503
1462
|
pageSize: parseInt(n.limit),
|
1504
1463
|
onPageChange: r.handlePageChange,
|
1505
1464
|
pageSizes: [10, 16, 20],
|
1506
1465
|
onPageSizeChange: r.changeLimit,
|
1507
1466
|
backgroundColor: "#F3F4F6"
|
1508
|
-
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) :
|
1467
|
+
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : k("", !0)
|
1509
1468
|
])
|
1510
1469
|
], 2),
|
1511
|
-
x(
|
1470
|
+
x(z, { name: "slide-fade" }, {
|
1512
1471
|
default: $(() => {
|
1513
1472
|
var b;
|
1514
1473
|
return [
|
1515
|
-
n.isVisibleCardInfo ? (o(), _(
|
1474
|
+
n.isVisibleCardInfo ? (o(), _(Te, {
|
1516
1475
|
key: 0,
|
1517
1476
|
table: s.table,
|
1518
1477
|
columns: (b = n.tableData) == null ? void 0 : b.columns,
|
1519
1478
|
row: r.activeCardRow
|
1520
|
-
}, null, 8, ["table", "columns", "row"])) :
|
1479
|
+
}, null, 8, ["table", "columns", "row"])) : k("", !0)
|
1521
1480
|
];
|
1522
1481
|
}),
|
1523
1482
|
_: 1
|
@@ -1527,8 +1486,8 @@ function Ds(t, e, s, i, n, r) {
|
|
1527
1486
|
])
|
1528
1487
|
]);
|
1529
1488
|
}
|
1530
|
-
const
|
1531
|
-
components: { AdminTable:
|
1489
|
+
const $s = /* @__PURE__ */ w(ts, [["render", Cs], ["__scopeId", "data-v-b5d925ab"]]), As = {
|
1490
|
+
components: { AdminTable: $s },
|
1532
1491
|
data() {
|
1533
1492
|
return {
|
1534
1493
|
table: !1,
|
@@ -1540,13 +1499,13 @@ const Fs = /* @__PURE__ */ v(is, [["render", Ds], ["__scopeId", "data-v-0231905f
|
|
1540
1499
|
$route: {
|
1541
1500
|
async handler() {
|
1542
1501
|
var t;
|
1543
|
-
(t =
|
1502
|
+
(t = ye) != null && t.value || await this.getMenu(), await this.checkPageType();
|
1544
1503
|
},
|
1545
1504
|
deep: !0
|
1546
1505
|
},
|
1547
1506
|
title(t) {
|
1548
1507
|
var e;
|
1549
|
-
t && (document.title = (((e =
|
1508
|
+
t && (document.title = (((e = Be.value) == null ? void 0 : e.titlePrefix) || "") + t);
|
1550
1509
|
}
|
1551
1510
|
},
|
1552
1511
|
async mounted() {
|
@@ -1561,7 +1520,7 @@ const Fs = /* @__PURE__ */ v(is, [["render", Ds], ["__scopeId", "data-v-0231905f
|
|
1561
1520
|
},
|
1562
1521
|
async checkPageType() {
|
1563
1522
|
var i, n;
|
1564
|
-
const t = this.flattenMenu(
|
1523
|
+
const t = this.flattenMenu(ye.value);
|
1565
1524
|
t != null && t.length || this.$router.replace("/404");
|
1566
1525
|
const e = t == null ? void 0 : t.find((r) => {
|
1567
1526
|
var u, f;
|
@@ -1583,9 +1542,9 @@ const Fs = /* @__PURE__ */ v(is, [["render", Ds], ["__scopeId", "data-v-0231905f
|
|
1583
1542
|
}
|
1584
1543
|
}
|
1585
1544
|
}
|
1586
|
-
},
|
1587
|
-
function
|
1588
|
-
const u =
|
1545
|
+
}, Is = ["innerHTML"];
|
1546
|
+
function Ts(t, e, s, i, n, r) {
|
1547
|
+
const u = p("AdminTable");
|
1589
1548
|
return n.table ? (o(), _(u, {
|
1590
1549
|
key: 0,
|
1591
1550
|
table: n.table,
|
@@ -1595,9 +1554,9 @@ function qs(t, e, s, i, n, r) {
|
|
1595
1554
|
class: "w-full bg-gray-50",
|
1596
1555
|
style: { height: "calc(100vh - 120px)" },
|
1597
1556
|
innerHTML: n.interface
|
1598
|
-
}, null, 8,
|
1557
|
+
}, null, 8, Is));
|
1599
1558
|
}
|
1600
|
-
const
|
1559
|
+
const js = /* @__PURE__ */ w(As, [["render", Ts]]);
|
1601
1560
|
export {
|
1602
|
-
|
1561
|
+
js as default
|
1603
1562
|
};
|