@opengis/admin 0.1.58 → 0.1.59
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +29 -29
- package/config.js +4 -4
- package/dist/{add-page-d6TCPawD.js → add-page-BOXd-uV_.js} +1 -1
- package/dist/{admin-interface-w6YuIWM3.js → admin-interface-DbfKIAnw.js} +211 -207
- package/dist/{admin-view-3Sz3UF_y.js → admin-view-DDDd_P1v.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +12 -12
- package/dist/{card-page-BsQts5XS.js → card-page-Bq7fUm5C.js} +2 -2
- package/dist/{card-view-UYkkl_Pu.js → card-view-NLu0N8TA.js} +1 -1
- package/dist/{edit-page-CtKHElG1.js → edit-page-z7ozrw2C.js} +1 -1
- package/dist/{import-file-CsCQ5xvs.js → import-file-BBA7riUK.js} +13 -20
- package/dist/style.css +1 -1
- package/module/settings/card/admin.roles.table/access.hbs +27 -27
- package/module/settings/card/admin.roles.table/general_info.hbs +16 -16
- package/module/settings/card/admin.roles.table/index.yml +14 -14
- package/module/settings/card/admin.roles.table/users.hbs +27 -27
- package/module/settings/card/admin.routes.table/general_info.hbs +40 -40
- package/module/settings/card/admin.routes.table/index.yml +8 -8
- package/module/settings/card/admin.routes.table/users.hbs +33 -33
- package/module/settings/card/admin.users.table/general_info.hbs +25 -25
- package/module/settings/card/admin.users.table/index.yml +12 -12
- package/module/settings/card/admin.users.table/logs.hbs +30 -30
- package/module/settings/card/admin.users.table/user_roles.hbs +24 -24
- package/module/settings/cls/core.actions.json +13 -13
- 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/form/admin.access.form.json +36 -36
- 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 +19 -19
- package/module/settings/form/admin.routes.form.json +25 -25
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles.form.json +21 -21
- package/module/settings/form/admin.users.form.json +150 -150
- 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 +50 -50
- package/module/settings/select/core.roles.json +2 -2
- package/module/settings/select/core.routes.sql +1 -1
- package/module/settings/select/core.user_uid.sql +1 -1
- package/module/settings/table/admin.access.table.json +77 -77
- package/module/settings/table/admin.custom_column.table.json +94 -94
- package/module/settings/table/admin.properties.table.json +33 -33
- package/module/settings/table/admin.roles.table.json +58 -58
- package/module/settings/table/admin.routes.table.json +67 -67
- package/module/settings/table/admin.user_properties.table.json +28 -28
- package/module/settings/table/admin.user_roles.table.json +66 -66
- package/module/settings/table/admin.users.table.json +119 -119
- package/package.json +79 -81
- package/plugin.js +164 -162
- package/server/helpers/controllers/badge.js +11 -11
- package/server/helpers/controllers/hb.js +2 -2
- package/server/helpers/controllers/map.js +2 -2
- package/server/helpers/controllers/mls.js +2 -2
- package/server/helpers/controllers/vue.js +2 -2
- package/server/helpers/index.mjs +13 -13
- package/server/plugins/docs.js +28 -28
- package/server/plugins/hook.js +228 -228
- package/server/plugins/vite.js +69 -69
- package/server/routes/calendar/controllers/calendar.data.js +88 -88
- package/server/routes/calendar/index.mjs +17 -17
- package/server/routes/data/controllers/cardData.js +56 -56
- 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 +145 -145
- package/server/routes/data/controllers/tableDataId.js +27 -27
- package/server/routes/data/controllers/tableFilter.js +63 -63
- package/server/routes/data/controllers/utils/assignTokens.js +30 -30
- package/server/routes/data/controllers/utils/getColumns.js +21 -21
- package/server/routes/data/index.mjs +15 -15
- package/server/routes/data/schema.js +7 -7
- package/server/routes/menu/controllers/getMenu.js +34 -34
- package/server/routes/menu/index.mjs +5 -5
- package/server/routes/notifications/controllers/readNotifications.js +30 -30
- package/server/routes/notifications/controllers/userNotifications.js +64 -64
- package/server/routes/notifications/hook/onWidgetSet.js +63 -63
- package/server/routes/notifications/index.mjs +40 -40
- package/server/routes/properties/controllers/admin.properties.get.js +29 -29
- package/server/routes/properties/controllers/user.properties.get.js +34 -34
- 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 +26 -26
- package/server/routes/root.mjs +3 -3
- package/server/routes/templates/controllers/getTemplate.js +16 -16
- package/server/routes/templates/index.mjs +14 -14
- 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 +21 -21
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { openBlock as
|
1
|
+
import { _ as m, b as ue, a as A, V as he, c as pe, d as be, e as fe, I as me, u as te } from "./import-file-BBA7riUK.js";
|
2
|
+
import { openBlock as s, createElementBlock as i, createTextVNode as F, toDisplayString as I, createCommentVNode as v, createStaticVNode as j, Fragment as C, createElementVNode as l, resolveComponent as d, createVNode as b, withCtx as y, createBlock as x, withModifiers as ge, renderList as T, withDirectives as z, vModelCheckbox as xe, resolveDynamicComponent as ye, Transition as P, renderSlot as _e, vShow as ne, normalizeClass as V, normalizeStyle as re } from "vue";
|
3
3
|
const ke = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -60,7 +60,7 @@ const ke = {
|
|
60
60
|
}
|
61
61
|
}, we = {
|
62
62
|
scope: "col",
|
63
|
-
class: "text-start
|
63
|
+
class: "text-start px-2 py-1"
|
64
64
|
}, ve = {
|
65
65
|
class: "flex-shrink-0 size-3.5",
|
66
66
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -82,23 +82,23 @@ const ke = {
|
|
82
82
|
key: 1,
|
83
83
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal text-gray-500"
|
84
84
|
};
|
85
|
-
function Te(t, e, r, a, n,
|
86
|
-
return
|
87
|
-
|
85
|
+
function Te(t, e, r, a, n, o) {
|
86
|
+
return s(), i("th", we, [
|
87
|
+
o.getVisibleIcon ? (s(), i("button", {
|
88
88
|
key: 0,
|
89
89
|
type: "button",
|
90
90
|
class: "text-sm text-stone-500 px-[4px] py-2.5 text-start font-normal text-gray-500 flex items-center gap-[6px]",
|
91
|
-
onClick: e[0] || (e[0] = (
|
91
|
+
onClick: e[0] || (e[0] = (c) => o.handleClickSortBtn(n.currentSort))
|
92
92
|
}, [
|
93
|
-
F(I(
|
94
|
-
(
|
95
|
-
n.currentSort === "asc" || n.currentSort === "" ? (
|
96
|
-
n.currentSort === "desc" || n.currentSort === "" ? (
|
93
|
+
F(I(o.label) + " ", 1),
|
94
|
+
(s(), i("svg", ve, [
|
95
|
+
n.currentSort === "asc" || n.currentSort === "" ? (s(), i("path", Ce)) : v("", !0),
|
96
|
+
n.currentSort === "desc" || n.currentSort === "" ? (s(), i("path", $e)) : v("", !0)
|
97
97
|
]))
|
98
|
-
])) : (
|
98
|
+
])) : (s(), i("p", Ie, I(o.label), 1))
|
99
99
|
]);
|
100
100
|
}
|
101
|
-
const Ve = /* @__PURE__ */
|
101
|
+
const Ve = /* @__PURE__ */ m(ke, [["render", Te]]), Se = {}, Ae = {
|
102
102
|
class: "flex-shrink-0 size-3.5",
|
103
103
|
xmlns: "http://www.w3.org/2000/svg",
|
104
104
|
viewBox: "0 0 24 24",
|
@@ -108,21 +108,21 @@ const Ve = /* @__PURE__ */ f(ke, [["render", Te]]), Se = {}, Ae = {
|
|
108
108
|
"stroke-linecap": "round",
|
109
109
|
"stroke-linejoin": "round"
|
110
110
|
};
|
111
|
-
function Fe(t, e, r, a, n,
|
112
|
-
return
|
111
|
+
function Fe(t, e, r, a, n, o) {
|
112
|
+
return s(), i("svg", Ae, e[0] || (e[0] = [
|
113
113
|
j('<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)
|
114
114
|
]));
|
115
115
|
}
|
116
|
-
const De = /* @__PURE__ */
|
116
|
+
const De = /* @__PURE__ */ m(Se, [["render", Fe]]), Me = {
|
117
117
|
props: {
|
118
118
|
height: { type: String, default: "16" },
|
119
119
|
width: { type: String, default: "12" },
|
120
120
|
color: { type: String, default: "black" }
|
121
121
|
}
|
122
122
|
}, je = { style: { display: "none" } }, ze = ["height", "width", "fill"];
|
123
|
-
function Pe(t, e, r, a, n,
|
124
|
-
return
|
125
|
-
(
|
123
|
+
function Pe(t, e, r, a, n, o) {
|
124
|
+
return s(), i(C, null, [
|
125
|
+
(s(), i("svg", je, e[0] || (e[0] = [
|
126
126
|
l("symbol", {
|
127
127
|
id: "icon-pencil",
|
128
128
|
viewBox: "0 0 32 32"
|
@@ -130,7 +130,7 @@ function Pe(t, e, r, a, n, s) {
|
|
130
130
|
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" })
|
131
131
|
], -1)
|
132
132
|
]))),
|
133
|
-
(
|
133
|
+
(s(), i("svg", {
|
134
134
|
height: r.height,
|
135
135
|
width: r.width,
|
136
136
|
fill: r.color
|
@@ -139,9 +139,9 @@ function Pe(t, e, r, a, n, s) {
|
|
139
139
|
]), 8, ze))
|
140
140
|
], 64);
|
141
141
|
}
|
142
|
-
const qe = /* @__PURE__ */
|
142
|
+
const qe = /* @__PURE__ */ m(Me, [["render", Pe]]), Be = {
|
143
143
|
components: {
|
144
|
-
IconMore:
|
144
|
+
IconMore: ue,
|
145
145
|
IconDelete: De,
|
146
146
|
IconEdit: qe
|
147
147
|
},
|
@@ -201,9 +201,9 @@ const qe = /* @__PURE__ */ f(Me, [["render", Pe]]), Be = {
|
|
201
201
|
key: 1,
|
202
202
|
class: "h-[1px] w-[80%] bg-gray-200 ml-auto mr-auto"
|
203
203
|
}, Ne = { class: "p-4" }, He = { class: "flex justify-end mt-4 gap-x-3" };
|
204
|
-
function We(t, e, r, a, n,
|
205
|
-
const
|
206
|
-
return
|
204
|
+
function We(t, e, r, a, n, o) {
|
205
|
+
const c = d("IconMore"), p = d("IconEdit"), h = d("router-link"), u = d("IconDelete"), _ = d("VsPopover"), w = d("VsDialog");
|
206
|
+
return s(), i(C, null, [
|
207
207
|
l("div", Le, [
|
208
208
|
b(_, {
|
209
209
|
trigger: "click",
|
@@ -211,19 +211,19 @@ function We(t, e, r, a, n, s) {
|
|
211
211
|
}, {
|
212
212
|
reference: y(() => [
|
213
213
|
l("button", Ue, [
|
214
|
-
b(
|
214
|
+
b(c, {
|
215
215
|
height: "16",
|
216
216
|
width: "16"
|
217
217
|
})
|
218
218
|
])
|
219
219
|
]),
|
220
220
|
default: y(() => {
|
221
|
-
var k, $,
|
221
|
+
var k, $, g, S, D;
|
222
222
|
return [
|
223
223
|
l("div", Oe, [
|
224
|
-
(k = r.actions) != null && k.includes("edit") && r.isForm ? (
|
224
|
+
(k = r.actions) != null && k.includes("edit") && r.isForm ? (s(), x(h, {
|
225
225
|
key: 0,
|
226
|
-
to: `/edit?table=${(
|
226
|
+
to: `/edit?table=${(g = ($ = t.$route) == null ? void 0 : $.params) == null ? void 0 : g.catchAll}&id=${(S = r.item) == null ? void 0 : S.id}`,
|
227
227
|
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"
|
228
228
|
}, {
|
229
229
|
default: y(() => [
|
@@ -232,10 +232,10 @@ function We(t, e, r, a, n, s) {
|
|
232
232
|
]),
|
233
233
|
_: 1
|
234
234
|
}, 8, ["to"])) : v("", !0),
|
235
|
-
r.isForm ? (
|
236
|
-
(D = r.actions) != null && D.includes("del") ? (
|
235
|
+
r.isForm ? (s(), i("div", Ee)) : v("", !0),
|
236
|
+
(D = r.actions) != null && D.includes("del") ? (s(), i("button", {
|
237
237
|
key: 2,
|
238
|
-
onClick: e[0] || (e[0] =
|
238
|
+
onClick: e[0] || (e[0] = ge((...M) => o.openConfirm && o.openConfirm(...M), ["stop"])),
|
239
239
|
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"
|
240
240
|
}, [
|
241
241
|
b(u),
|
@@ -264,7 +264,7 @@ function We(t, e, r, a, n, s) {
|
|
264
264
|
l("button", {
|
265
265
|
type: "button",
|
266
266
|
class: "inline-flex items-center px-3 py-2 text-sm font-semibold text-white bg-red-500 border border-transparent rounded-lg gap-x-2 hover:bg-red-600 disabled:opacity-50 disabled:pointer-events-none",
|
267
|
-
onClick: e[2] || (e[2] = (...k) =>
|
267
|
+
onClick: e[2] || (e[2] = (...k) => o.deleteElement && o.deleteElement(...k))
|
268
268
|
}, " Так, я впевнена/ий ")
|
269
269
|
])
|
270
270
|
])
|
@@ -273,7 +273,7 @@ function We(t, e, r, a, n, s) {
|
|
273
273
|
}, 8, ["visible"])
|
274
274
|
], 64);
|
275
275
|
}
|
276
|
-
const Re = /* @__PURE__ */
|
276
|
+
const Re = /* @__PURE__ */ m(Be, [["render", We]]), Ge = {}, Ze = {
|
277
277
|
class: "flex-shrink-0 mt-0.5 size-3.5",
|
278
278
|
xmlns: "http://www.w3.org/2000/svg",
|
279
279
|
viewBox: "0 0 24 24",
|
@@ -283,15 +283,15 @@ const Re = /* @__PURE__ */ f(Be, [["render", We]]), Ge = {}, Ze = {
|
|
283
283
|
"stroke-linecap": "round",
|
284
284
|
"stroke-linejoin": "round"
|
285
285
|
};
|
286
|
-
function Je(t, e, r, a, n,
|
287
|
-
return
|
286
|
+
function Je(t, e, r, a, n, o) {
|
287
|
+
return s(), i("svg", Ze, e[0] || (e[0] = [
|
288
288
|
l("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
289
289
|
l("path", { d: "M7 20V4" }, null, -1),
|
290
290
|
l("path", { d: "m21 8-4-4-4 4" }, null, -1),
|
291
291
|
l("path", { d: "M17 4v16" }, null, -1)
|
292
292
|
]));
|
293
293
|
}
|
294
|
-
const Ke = /* @__PURE__ */
|
294
|
+
const Ke = /* @__PURE__ */ m(Ge, [["render", Je]]), Qe = {
|
295
295
|
components: { IconExport: Ke },
|
296
296
|
props: { table: String, columns: Array },
|
297
297
|
data() {
|
@@ -335,15 +335,15 @@ const Ke = /* @__PURE__ */ f(Ge, [["render", Je]]), Qe = {
|
|
335
335
|
this.format = t;
|
336
336
|
}
|
337
337
|
}
|
338
|
-
}, Xe = { class: "p-4" }, Ye = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, et = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, tt = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, rt = { class: "mt-2 space-y-2" }, nt = ["id", "onChange"], lt = ["for"],
|
339
|
-
function
|
340
|
-
const
|
341
|
-
return
|
338
|
+
}, Xe = { class: "p-4" }, Ye = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, et = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, tt = { class: "pb-5 mb-5 last:pb-0 last:mb-0 border-b last:border-b-0 border-gray-200 dark:border-neutral-700" }, rt = { class: "mt-2 space-y-2" }, nt = ["id", "onChange"], lt = ["for"], st = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" };
|
339
|
+
function ot(t, e, r, a, n, o) {
|
340
|
+
const c = d("IconExport"), p = d("VsCheckbox"), h = d("VsDialog");
|
341
|
+
return s(), i(C, null, [
|
342
342
|
l("button", {
|
343
343
|
onClick: e[0] || (e[0] = (u) => n.isOpen = !0),
|
344
344
|
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"
|
345
345
|
}, [
|
346
|
-
b(
|
346
|
+
b(c, {
|
347
347
|
height: "16",
|
348
348
|
width: "16"
|
349
349
|
}),
|
@@ -370,7 +370,7 @@ function st(t, e, r, a, n, s) {
|
|
370
370
|
size: "small"
|
371
371
|
}, {
|
372
372
|
footer: y(() => [
|
373
|
-
l("div",
|
373
|
+
l("div", st, [
|
374
374
|
e[8] || (e[8] = l("button", {
|
375
375
|
type: "button",
|
376
376
|
class: "py-2 px-3 text-nowrap inline-flex justify-center items-center text-start bg-white border border-gray-200 text-gray-800 text-sm font-medium rounded-lg shadow-sm align-middle 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",
|
@@ -379,7 +379,7 @@ function st(t, e, r, a, n, s) {
|
|
379
379
|
l("button", {
|
380
380
|
type: "button",
|
381
381
|
class: "py-2 px-3 text-nowrap inline-flex justify-center items-center gap-x-2 text-start bg-blue-600 border border-blue-600 text-white text-sm font-medium rounded-lg shadow-sm align-middle 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",
|
382
|
-
onClick: e[2] || (e[2] = (...u) =>
|
382
|
+
onClick: e[2] || (e[2] = (...u) => o.exportTable && o.exportTable(...u))
|
383
383
|
}, " Завантажити таблицю ")
|
384
384
|
])
|
385
385
|
]),
|
@@ -389,7 +389,7 @@ function st(t, e, r, a, n, s) {
|
|
389
389
|
l("div", Ye, [
|
390
390
|
e[6] || (e[6] = l("h2", { class: "text-sm text-gray-500" }, " Виберіть стовпці таблиці для експорту: ", -1)),
|
391
391
|
l("div", et, [
|
392
|
-
(
|
392
|
+
(s(!0), i(C, null, T(r.columns, (u, _) => (s(), i("div", {
|
393
393
|
class: "flex items-center",
|
394
394
|
key: _,
|
395
395
|
style: { width: "calc((100% - 10px) / 2)" }
|
@@ -407,7 +407,7 @@ function st(t, e, r, a, n, s) {
|
|
407
407
|
l("div", tt, [
|
408
408
|
e[7] || (e[7] = l("h2", { class: "text-sm text-gray-500" }, "Виберіть формат таблиці:", -1)),
|
409
409
|
l("div", rt, [
|
410
|
-
(
|
410
|
+
(s(!0), i(C, null, T(n.tableFormats, (u, _) => (s(), i("div", {
|
411
411
|
class: "flex items-center",
|
412
412
|
key: _
|
413
413
|
}, [
|
@@ -416,7 +416,7 @@ function st(t, e, r, a, n, s) {
|
|
416
416
|
name: "hs-pro-duecmfm",
|
417
417
|
class: "shrink-0 border-gray-300 rounded-full text-blue-600 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",
|
418
418
|
id: u,
|
419
|
-
onChange: (w) =>
|
419
|
+
onChange: (w) => o.selectFormat(u)
|
420
420
|
}, null, 40, nt),
|
421
421
|
l("label", {
|
422
422
|
for: u,
|
@@ -431,7 +431,7 @@ function st(t, e, r, a, n, s) {
|
|
431
431
|
}, 8, ["visible"])
|
432
432
|
], 64);
|
433
433
|
}
|
434
|
-
const at = /* @__PURE__ */
|
434
|
+
const at = /* @__PURE__ */ m(Qe, [["render", ot]]), it = {}, dt = {
|
435
435
|
xmlns: "http://www.w3.org/2000/svg",
|
436
436
|
viewBox: "0 0 24 24",
|
437
437
|
fill: "none",
|
@@ -441,12 +441,12 @@ const at = /* @__PURE__ */ f(Qe, [["render", st]]), it = {}, ct = {
|
|
441
441
|
"stroke-linejoin": "round",
|
442
442
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-columns"
|
443
443
|
};
|
444
|
-
function
|
445
|
-
return
|
444
|
+
function ct(t, e, r, a, n, o) {
|
445
|
+
return s(), i("svg", dt, e[0] || (e[0] = [
|
446
446
|
j('<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)
|
447
447
|
]));
|
448
448
|
}
|
449
|
-
const ut = /* @__PURE__ */
|
449
|
+
const ut = /* @__PURE__ */ m(it, [["render", ct]]), ht = {
|
450
450
|
props: { column: Object },
|
451
451
|
emits: ["update-column"],
|
452
452
|
data() {
|
@@ -464,19 +464,19 @@ const ut = /* @__PURE__ */ f(it, [["render", dt]]), ht = {
|
|
464
464
|
((t = this.column) == null ? void 0 : t.hidden) !== !0 && (this.value = !0);
|
465
465
|
}
|
466
466
|
}, pt = { class: "flex w-full gap-[8px] items-centr" };
|
467
|
-
function bt(t, e, r, a, n,
|
468
|
-
var
|
469
|
-
return
|
467
|
+
function bt(t, e, r, a, n, o) {
|
468
|
+
var c, p;
|
469
|
+
return s(), i("label", pt, [
|
470
470
|
z(l("input", {
|
471
471
|
"onUpdate:modelValue": e[0] || (e[0] = (h) => n.value = h),
|
472
472
|
type: "checkbox"
|
473
473
|
}, null, 512), [
|
474
|
-
[
|
474
|
+
[xe, n.value]
|
475
475
|
]),
|
476
|
-
F(" " + I(((
|
476
|
+
F(" " + I(((c = r.column) == null ? void 0 : c.ua) || ((p = r.column) == null ? void 0 : p.title)), 1)
|
477
477
|
]);
|
478
478
|
}
|
479
|
-
const ft = /* @__PURE__ */
|
479
|
+
const ft = /* @__PURE__ */ m(ht, [["render", bt]]), mt = {
|
480
480
|
components: { IconColumns: ut, AdminTableColumnsHiddenItem: ft },
|
481
481
|
emits: ["update-columns"],
|
482
482
|
props: { columns: Array },
|
@@ -487,15 +487,15 @@ const ft = /* @__PURE__ */ f(ht, [["render", bt]]), mt = {
|
|
487
487
|
}
|
488
488
|
}
|
489
489
|
}, gt = { 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" }, xt = { class: "py-[10px] px-[10px] w-[260px]" }, yt = { 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" };
|
490
|
-
function _t(t, e, r, a, n,
|
491
|
-
const
|
492
|
-
return
|
490
|
+
function _t(t, e, r, a, n, o) {
|
491
|
+
const c = d("IconColumns"), p = d("AdminTableColumnsHiddenItem"), h = d("VsPopover");
|
492
|
+
return s(), x(h, {
|
493
493
|
trigger: "click",
|
494
494
|
placement: "bottom"
|
495
495
|
}, {
|
496
496
|
reference: y(() => [
|
497
497
|
l("button", gt, [
|
498
|
-
b(
|
498
|
+
b(c, {
|
499
499
|
height: "20",
|
500
500
|
width: "16"
|
501
501
|
})
|
@@ -505,10 +505,10 @@ function _t(t, e, r, a, n, s) {
|
|
505
505
|
l("div", xt, [
|
506
506
|
e[0] || (e[0] = l("h2", { class: "text-sm mb-[8px]" }, "Оберіть колонки, щоб приховати", -1)),
|
507
507
|
l("ul", yt, [
|
508
|
-
(
|
508
|
+
(s(!0), i(C, null, T(r.columns, (u, _) => (s(), i("li", { key: _ }, [
|
509
509
|
b(p, {
|
510
510
|
column: u,
|
511
|
-
onUpdateColumn:
|
511
|
+
onUpdateColumn: o.updateColumn
|
512
512
|
}, null, 8, ["column", "onUpdateColumn"])
|
513
513
|
]))), 128))
|
514
514
|
])
|
@@ -517,14 +517,14 @@ function _t(t, e, r, a, n, s) {
|
|
517
517
|
_: 1
|
518
518
|
});
|
519
519
|
}
|
520
|
-
const kt = /* @__PURE__ */
|
520
|
+
const kt = /* @__PURE__ */ m(mt, [["render", _t]]), wt = {}, vt = {
|
521
521
|
class: "hidden sm:block shrink-0 size-3",
|
522
522
|
xmlns: "http://www.w3.org/2000/svg",
|
523
523
|
fill: "currentColor",
|
524
524
|
viewBox: "0 0 16 16"
|
525
525
|
};
|
526
|
-
function Ct(t, e, r, a, n,
|
527
|
-
return
|
526
|
+
function Ct(t, e, r, a, n, o) {
|
527
|
+
return s(), i("svg", vt, e[0] || (e[0] = [
|
528
528
|
l("path", {
|
529
529
|
"fill-rule": "evenodd",
|
530
530
|
"clip-rule": "evenodd",
|
@@ -532,21 +532,21 @@ function Ct(t, e, r, a, n, s) {
|
|
532
532
|
}, null, -1)
|
533
533
|
]));
|
534
534
|
}
|
535
|
-
const
|
536
|
-
function Tt(t, e, r, a, n,
|
537
|
-
return
|
535
|
+
const le = /* @__PURE__ */ m(wt, [["render", Ct]]), $t = {}, It = { class: "vs-table-interface__table-wrp w-full rounded h-fit overflow-hidden" };
|
536
|
+
function Tt(t, e, r, a, n, o) {
|
537
|
+
return s(), i("div", It, e[0] || (e[0] = [
|
538
538
|
j('<div><div class="p-5 min-h-[500px] flex flex-col justify-center items-center text-center"><svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg><div class="max-w-sm mx-auto mt-6"><p class="font-medium text-gray-800 dark:text-neutral-200"> Дані для відображення відсутні </p><p class="mt-2 text-sm text-gray-500 dark:text-neutral-500"> Змініть параметри пошуку або спробуйте пізніше </p></div></div></div>', 1)
|
539
539
|
]));
|
540
540
|
}
|
541
|
-
const Vt = /* @__PURE__ */
|
541
|
+
const Vt = /* @__PURE__ */ m($t, [["render", Tt]]), St = {
|
542
542
|
props: { row: Object, column: Object, table: String }
|
543
543
|
};
|
544
|
-
function At(t, e, r, a, n,
|
545
|
-
var
|
546
|
-
return
|
547
|
-
((
|
544
|
+
function At(t, e, r, a, n, o) {
|
545
|
+
var c, p, h, u, _, w, k, $;
|
546
|
+
return s(), x(ye(
|
547
|
+
((c = r.column) == null ? void 0 : c.format) === "custom" ? (p = r.column) == null ? void 0 : p.component : t.$componentsConfig[`table-format-${((u = (h = r.column) == null ? void 0 : h.format) == null ? void 0 : u.toLowerCase()) || "text"}`]
|
548
548
|
), {
|
549
|
-
onUpdateTable: e[0] || (e[0] = (
|
549
|
+
onUpdateTable: e[0] || (e[0] = (g) => t.$emit("update-table")),
|
550
550
|
name: (_ = r.column) == null ? void 0 : _.name,
|
551
551
|
data: r.row,
|
552
552
|
value: (k = r.row) == null ? void 0 : k[(w = r.column) == null ? void 0 : w.name],
|
@@ -554,7 +554,7 @@ function At(t, e, r, a, n, s) {
|
|
554
554
|
edit: ($ = r.column) == null ? void 0 : $.edit
|
555
555
|
}, null, 40, ["name", "data", "value", "table", "edit"]);
|
556
556
|
}
|
557
|
-
const
|
557
|
+
const se = /* @__PURE__ */ m(St, [["render", At]]), Ft = {}, Dt = {
|
558
558
|
xmlns: "http://www.w3.org/2000/svg",
|
559
559
|
viewBox: "0 0 24 24",
|
560
560
|
fill: "none",
|
@@ -564,8 +564,8 @@ const le = /* @__PURE__ */ f(St, [["render", At]]), Ft = {}, Dt = {
|
|
564
564
|
"stroke-linejoin": "round",
|
565
565
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-minus"
|
566
566
|
};
|
567
|
-
function Mt(t, e, r, a, n,
|
568
|
-
return
|
567
|
+
function Mt(t, e, r, a, n, o) {
|
568
|
+
return s(), i("svg", Dt, e[0] || (e[0] = [
|
569
569
|
l("path", {
|
570
570
|
stroke: "none",
|
571
571
|
d: "M0 0h24v24H0z",
|
@@ -574,16 +574,16 @@ function Mt(t, e, r, a, n, s) {
|
|
574
574
|
l("path", { d: "M5 12l14 0" }, null, -1)
|
575
575
|
]));
|
576
576
|
}
|
577
|
-
const jt = /* @__PURE__ */
|
578
|
-
components: { IconPlus:
|
577
|
+
const jt = /* @__PURE__ */ m(Ft, [["render", Mt]]), zt = {
|
578
|
+
components: { IconPlus: le, IconMinus: jt },
|
579
579
|
props: { title: String },
|
580
580
|
data() {
|
581
581
|
return { expanded: !1 };
|
582
582
|
}
|
583
583
|
}, Pt = { class: "hs-accordion" }, qt = { class: "py-0.5 flex items-center gap-x-0.5 w-full" }, Bt = { class: "text-sm font-medium" }, Lt = { class: "w-full duration-150 before:block before:absolute relative inline-block b cursor-pointer" };
|
584
|
-
function Ut(t, e, r, a, n,
|
585
|
-
const
|
586
|
-
return
|
584
|
+
function Ut(t, e, r, a, n, o) {
|
585
|
+
const c = d("IconPlus"), p = d("IconMinus");
|
586
|
+
return s(), i("div", null, [
|
587
587
|
l("div", null, [
|
588
588
|
l("div", Pt, [
|
589
589
|
l("div", qt, [
|
@@ -597,18 +597,18 @@ function Ut(t, e, r, a, n, s) {
|
|
597
597
|
class: "size-6 flex justify-center items-center hover:bg-gray-100 rounded-md",
|
598
598
|
onClick: e[1] || (e[1] = (h) => n.expanded = !n.expanded)
|
599
599
|
}, [
|
600
|
-
n.expanded ? (
|
600
|
+
n.expanded ? (s(), x(p, {
|
601
601
|
key: 1,
|
602
602
|
width: "14"
|
603
|
-
})) : (
|
603
|
+
})) : (s(), x(c, { key: 0 }))
|
604
604
|
])
|
605
605
|
]),
|
606
606
|
b(P, { name: "fade" }, {
|
607
607
|
default: y(() => [
|
608
608
|
z(l("div", Lt, [
|
609
|
-
|
609
|
+
_e(t.$slots, "default", {}, void 0, !0)
|
610
610
|
], 512), [
|
611
|
-
[
|
611
|
+
[ne, n.expanded]
|
612
612
|
])
|
613
613
|
]),
|
614
614
|
_: 3
|
@@ -617,14 +617,14 @@ function Ut(t, e, r, a, n, s) {
|
|
617
617
|
])
|
618
618
|
]);
|
619
619
|
}
|
620
|
-
const Ot = /* @__PURE__ */
|
620
|
+
const Ot = /* @__PURE__ */ m(zt, [["render", Ut], ["__scopeId", "data-v-4139bc00"]]), Et = {
|
621
621
|
components: {
|
622
|
-
AdminComponentIs:
|
622
|
+
AdminComponentIs: se,
|
623
623
|
AdminTree: Ot,
|
624
|
-
VsNoData:
|
625
|
-
VsWidgetComments:
|
626
|
-
VsWidgetMap:
|
627
|
-
VsWidgetFileList:
|
624
|
+
VsNoData: he,
|
625
|
+
VsWidgetComments: pe,
|
626
|
+
VsWidgetMap: be,
|
627
|
+
VsWidgetFileList: fe
|
628
628
|
},
|
629
629
|
props: { table: String, columns: Array, row: Object }
|
630
630
|
}, Nt = {
|
@@ -634,30 +634,30 @@ const Ot = /* @__PURE__ */ f(zt, [["render", Ut], ["__scopeId", "data-v-f5ecdb9a
|
|
634
634
|
class: "border-l",
|
635
635
|
style: { height: "calc(100vh - 360px)" }
|
636
636
|
}, Wt = { class: "flex items-center justify-between py-1 gap-x-4" }, Rt = { class: "col-span-1" }, Gt = { class: "inline-flex items-center gap-x-2 text-[13px] text-gray-500 dark:text-neutral-500" }, Zt = { class: "col-span-2" }, Jt = { class: "font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Kt = { class: "table-info-card" }, Qt = { class: "table-info-card" };
|
637
|
-
function Xt(t, e, r, a, n,
|
637
|
+
function Xt(t, e, r, a, n, o) {
|
638
638
|
var k, $;
|
639
|
-
const
|
640
|
-
return
|
639
|
+
const c = d("AdminComponentIs"), p = d("AdminTree"), h = d("VsWidgetMap"), u = d("VsNoData"), _ = d("VsWidgetComments"), w = d("VsWidgetFileList");
|
640
|
+
return s(), i("div", Nt, [
|
641
641
|
e[0] || (e[0] = l("div", { class: "p-[10px] pl-[18px] pb-[18px] border-b" }, [
|
642
642
|
l("h2", { class: "text-sm font-medium" }, "Інформація про об'єкт")
|
643
643
|
], -1)),
|
644
644
|
l("div", Ht, [
|
645
|
-
($ = (k = t.$route) == null ? void 0 : k.query) != null && $.card ? (
|
646
|
-
r.row ? (
|
645
|
+
($ = (k = t.$route) == null ? void 0 : k.query) != null && $.card ? (s(), i(C, { key: 0 }, [
|
646
|
+
r.row ? (s(), x(p, {
|
647
647
|
key: 0,
|
648
648
|
title: "Основна інформація",
|
649
649
|
class: "border-b p-[10px] py-[16px]"
|
650
650
|
}, {
|
651
651
|
default: y(() => [
|
652
|
-
(
|
652
|
+
(s(!0), i(C, null, T(r.columns, (g) => (s(), i("dl", Wt, [
|
653
653
|
l("dt", Rt, [
|
654
|
-
l("p", Gt, I((
|
654
|
+
l("p", Gt, I((g == null ? void 0 : g.ua) || (g == null ? void 0 : g.title)) + ": ", 1)
|
655
655
|
]),
|
656
656
|
l("dd", Zt, [
|
657
657
|
l("p", Jt, [
|
658
|
-
b(
|
658
|
+
b(c, {
|
659
659
|
row: r.row,
|
660
|
-
column:
|
660
|
+
column: g,
|
661
661
|
table: r.table
|
662
662
|
}, null, 8, ["row", "column", "table"])
|
663
663
|
])
|
@@ -671,13 +671,13 @@ function Xt(t, e, r, a, n, s) {
|
|
671
671
|
class: "border-b p-[10px] py-[16px]"
|
672
672
|
}, {
|
673
673
|
default: y(() => {
|
674
|
-
var
|
674
|
+
var g, S;
|
675
675
|
return [
|
676
|
-
(
|
676
|
+
(g = r.row) != null && g.geom ? (s(), x(h, {
|
677
677
|
key: 0,
|
678
678
|
geometry: (S = r.row) == null ? void 0 : S.geom,
|
679
679
|
zoom: 14
|
680
|
-
}, null, 8, ["geometry"])) : (
|
680
|
+
}, null, 8, ["geometry"])) : (s(), x(u, {
|
681
681
|
key: 1,
|
682
682
|
title: "У об'єкта відсутня геометрія",
|
683
683
|
text: "",
|
@@ -692,11 +692,11 @@ function Xt(t, e, r, a, n, s) {
|
|
692
692
|
class: "border-b p-[10px] py-[16px]"
|
693
693
|
}, {
|
694
694
|
default: y(() => {
|
695
|
-
var
|
695
|
+
var g;
|
696
696
|
return [
|
697
697
|
l("div", Kt, [
|
698
698
|
b(_, {
|
699
|
-
id: (
|
699
|
+
id: (g = r.row) == null ? void 0 : g.id
|
700
700
|
}, null, 8, ["id"])
|
701
701
|
])
|
702
702
|
];
|
@@ -708,25 +708,25 @@ function Xt(t, e, r, a, n, s) {
|
|
708
708
|
class: "border-b p-[10px] py-[16px]"
|
709
709
|
}, {
|
710
710
|
default: y(() => {
|
711
|
-
var
|
711
|
+
var g;
|
712
712
|
return [
|
713
713
|
l("div", Qt, [
|
714
714
|
b(w, {
|
715
|
-
id: (
|
715
|
+
id: (g = r.row) == null ? void 0 : g.id
|
716
716
|
}, null, 8, ["id"])
|
717
717
|
])
|
718
718
|
];
|
719
719
|
}),
|
720
720
|
_: 1
|
721
721
|
})
|
722
|
-
], 64)) : (
|
722
|
+
], 64)) : (s(), x(u, {
|
723
723
|
key: 1,
|
724
724
|
text: "Оберіть один з об'єктів в таблиці для відображення інформаціі про нього"
|
725
725
|
}))
|
726
726
|
])
|
727
727
|
]);
|
728
728
|
}
|
729
|
-
const Yt = /* @__PURE__ */
|
729
|
+
const Yt = /* @__PURE__ */ m(Et, [["render", Xt]]), er = {}, tr = {
|
730
730
|
class: "hidden xl:block shrink-0 size-4",
|
731
731
|
xmlns: "http://www.w3.org/2000/svg",
|
732
732
|
viewBox: "0 0 24 24",
|
@@ -736,8 +736,8 @@ const Yt = /* @__PURE__ */ f(Et, [["render", Xt]]), er = {}, tr = {
|
|
736
736
|
"stroke-linecap": "round",
|
737
737
|
"stroke-linejoin": "round"
|
738
738
|
};
|
739
|
-
function rr(t, e, r, a, n,
|
740
|
-
return
|
739
|
+
function rr(t, e, r, a, n, o) {
|
740
|
+
return s(), i("svg", tr, e[0] || (e[0] = [
|
741
741
|
l("rect", {
|
742
742
|
width: "18",
|
743
743
|
height: "18",
|
@@ -749,7 +749,7 @@ function rr(t, e, r, a, n, s) {
|
|
749
749
|
l("path", { d: "m8 9 3 3-3 3" }, null, -1)
|
750
750
|
]));
|
751
751
|
}
|
752
|
-
const nr = /* @__PURE__ */
|
752
|
+
const nr = /* @__PURE__ */ m(er, [["render", rr]]), lr = {}, sr = {
|
753
753
|
class: "h21yx vs0hq",
|
754
754
|
xmlns: "http://www.w3.org/2000/svg",
|
755
755
|
width: "24",
|
@@ -761,12 +761,12 @@ const nr = /* @__PURE__ */ f(er, [["render", rr]]), lr = {}, or = {
|
|
761
761
|
"stroke-linecap": "round",
|
762
762
|
"stroke-linejoin": "round"
|
763
763
|
};
|
764
|
-
function
|
765
|
-
return
|
764
|
+
function or(t, e, r, a, n, o) {
|
765
|
+
return s(), i("svg", sr, e[0] || (e[0] = [
|
766
766
|
j('<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)
|
767
767
|
]));
|
768
768
|
}
|
769
|
-
const ar = /* @__PURE__ */
|
769
|
+
const ar = /* @__PURE__ */ m(lr, [["render", or]]), ir = {
|
770
770
|
props: { scheme: { type: Object }, onFilters: { type: Number } },
|
771
771
|
components: { IconFilter: ar },
|
772
772
|
data() {
|
@@ -779,35 +779,35 @@ const ar = /* @__PURE__ */ f(lr, [["render", sr]]), ir = {
|
|
779
779
|
this.isFilters && t.classList.contains("filter-container") && (this.isFilters = !1);
|
780
780
|
}
|
781
781
|
}
|
782
|
-
},
|
782
|
+
}, dr = {
|
783
783
|
key: 0,
|
784
784
|
class: "font-medium text-[10px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full dark:bg-neutral-500"
|
785
|
-
},
|
786
|
-
function ur(t, e, r, a, n,
|
787
|
-
const
|
788
|
-
return
|
785
|
+
}, cr = { 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" };
|
786
|
+
function ur(t, e, r, a, n, o) {
|
787
|
+
const c = d("IconFilter"), p = d("VsFilter");
|
788
|
+
return s(), i(C, null, [
|
789
789
|
l("button", {
|
790
790
|
onClick: e[0] || (e[0] = (h) => n.isFilters = !n.isFilters),
|
791
791
|
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"
|
792
792
|
}, [
|
793
|
-
b(
|
793
|
+
b(c, {
|
794
794
|
height: "16",
|
795
795
|
width: "16"
|
796
796
|
}),
|
797
797
|
e[4] || (e[4] = F(" Фільтри ")),
|
798
|
-
r.onFilters ? (
|
798
|
+
r.onFilters ? (s(), i("span", dr, I(r.onFilters), 1)) : v("", !0)
|
799
799
|
]),
|
800
800
|
b(P, { name: "fade" }, {
|
801
801
|
default: y(() => {
|
802
802
|
var h;
|
803
803
|
return [
|
804
804
|
z(l("div", {
|
805
|
-
onClick: e[3] || (e[3] = (...u) =>
|
805
|
+
onClick: e[3] || (e[3] = (...u) => o.closeFilter && o.closeFilter(...u)),
|
806
806
|
style: { height: "100vh" },
|
807
807
|
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)]"
|
808
808
|
}, [
|
809
|
-
l("div",
|
810
|
-
(h = r.scheme) != null && h.length ? (
|
809
|
+
l("div", cr, [
|
810
|
+
(h = r.scheme) != null && h.length ? (s(), x(p, {
|
811
811
|
key: 0,
|
812
812
|
ref: "filter",
|
813
813
|
scheme: r.scheme,
|
@@ -821,7 +821,7 @@ function ur(t, e, r, a, n, s) {
|
|
821
821
|
}, null, 8, ["scheme"])) : v("", !0)
|
822
822
|
])
|
823
823
|
], 512), [
|
824
|
-
[
|
824
|
+
[ne, n.isFilters]
|
825
825
|
])
|
826
826
|
];
|
827
827
|
}),
|
@@ -829,7 +829,7 @@ function ur(t, e, r, a, n, s) {
|
|
829
829
|
})
|
830
830
|
], 64);
|
831
831
|
}
|
832
|
-
const hr = /* @__PURE__ */
|
832
|
+
const hr = /* @__PURE__ */ m(ir, [["render", ur]]), pr = {
|
833
833
|
props: { tabsList: { type: Array, default: () => [] }, filterState: String }
|
834
834
|
}, br = {
|
835
835
|
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",
|
@@ -837,17 +837,17 @@ const hr = /* @__PURE__ */ f(ir, [["render", ur]]), pr = {
|
|
837
837
|
role: "tablist",
|
838
838
|
"aria-orientation": "horizontal"
|
839
839
|
}, fr = ["onClick"];
|
840
|
-
function mr(t, e, r, a, n,
|
841
|
-
return
|
842
|
-
(
|
843
|
-
onClick: (p) => t.$emit("update:filterState",
|
840
|
+
function mr(t, e, r, a, n, o) {
|
841
|
+
return s(), i("nav", br, [
|
842
|
+
(s(!0), i(C, null, T(r.tabsList, (c) => (s(), i("button", {
|
843
|
+
onClick: (p) => t.$emit("update:filterState", c == null ? void 0 : c.name),
|
844
844
|
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", {
|
845
|
-
" 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": (
|
845
|
+
" 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) === r.filterState
|
846
846
|
}])
|
847
|
-
}, I(
|
847
|
+
}, I(c == null ? void 0 : c.label), 11, fr))), 256))
|
848
848
|
]);
|
849
849
|
}
|
850
|
-
const gr = /* @__PURE__ */
|
850
|
+
const gr = /* @__PURE__ */ m(pr, [["render", mr]]), xr = {}, yr = {
|
851
851
|
xmlns: "http://www.w3.org/2000/svg",
|
852
852
|
viewBox: "0 0 24 24",
|
853
853
|
fill: "none",
|
@@ -857,8 +857,8 @@ const gr = /* @__PURE__ */ f(pr, [["render", mr]]), xr = {}, yr = {
|
|
857
857
|
"stroke-linejoin": "round",
|
858
858
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-filter"
|
859
859
|
};
|
860
|
-
function _r(t, e, r, a, n,
|
861
|
-
return
|
860
|
+
function _r(t, e, r, a, n, o) {
|
861
|
+
return s(), i("svg", yr, e[0] || (e[0] = [
|
862
862
|
l("path", {
|
863
863
|
stroke: "none",
|
864
864
|
d: "M0 0h24v24H0z",
|
@@ -867,19 +867,19 @@ function _r(t, e, r, a, n, s) {
|
|
867
867
|
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)
|
868
868
|
]));
|
869
869
|
}
|
870
|
-
const kr = /* @__PURE__ */
|
870
|
+
const kr = /* @__PURE__ */ m(xr, [["render", _r]]), wr = {
|
871
871
|
components: { IconFilter2: kr },
|
872
872
|
props: { filterCustom: String, customList: Array }
|
873
873
|
}, vr = { 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" }, Cr = { class: "flex flex-col gap-[4px]" }, $r = ["onClick"];
|
874
|
-
function Ir(t, e, r, a, n,
|
875
|
-
const
|
876
|
-
return
|
874
|
+
function Ir(t, e, r, a, n, o) {
|
875
|
+
const c = d("IconFilter2"), p = d("VsPopover");
|
876
|
+
return s(), x(p, {
|
877
877
|
ref: "popover",
|
878
878
|
placement: "bottom"
|
879
879
|
}, {
|
880
880
|
reference: y(() => [
|
881
881
|
l("button", vr, [
|
882
|
-
b(
|
882
|
+
b(c, {
|
883
883
|
height: "20",
|
884
884
|
width: "20"
|
885
885
|
})
|
@@ -887,7 +887,7 @@ function Ir(t, e, r, a, n, s) {
|
|
887
887
|
]),
|
888
888
|
default: y(() => [
|
889
889
|
l("div", Cr, [
|
890
|
-
(
|
890
|
+
(s(!0), i(C, null, T(r.customList, (h, u) => (s(), i("button", {
|
891
891
|
onClick: (_) => {
|
892
892
|
var w;
|
893
893
|
t.$emit("update:filterCustom", h == null ? void 0 : h.name), (w = t.$refs) == null || w.popover.togglePopover();
|
@@ -907,7 +907,7 @@ function Ir(t, e, r, a, n, s) {
|
|
907
907
|
_: 1
|
908
908
|
}, 512);
|
909
909
|
}
|
910
|
-
const Tr = /* @__PURE__ */
|
910
|
+
const Tr = /* @__PURE__ */ m(wr, [["render", Ir]]), Vr = {
|
911
911
|
props: { table: String, title: String },
|
912
912
|
components: {
|
913
913
|
AdminTableControl: Re,
|
@@ -915,11 +915,11 @@ const Tr = /* @__PURE__ */ f(wr, [["render", Ir]]), Vr = {
|
|
915
915
|
AdminTableColumnsHidden: kt,
|
916
916
|
AdminTableColumn: Ve,
|
917
917
|
AdminNodata: Vt,
|
918
|
-
IconPlus:
|
919
|
-
IconSearch:
|
918
|
+
IconPlus: le,
|
919
|
+
IconSearch: me,
|
920
920
|
AdminTableCardInfo: Yt,
|
921
921
|
IconOpenCard: nr,
|
922
|
-
AdminComponentIs:
|
922
|
+
AdminComponentIs: se,
|
923
923
|
AdminTableFilters: hr,
|
924
924
|
AdminTableTabs: gr,
|
925
925
|
AdminTableCustomFilters: Tr
|
@@ -959,10 +959,6 @@ const Tr = /* @__PURE__ */ f(wr, [["render", Ir]]), Vr = {
|
|
959
959
|
var t, e;
|
960
960
|
return !((t = this.tableData) != null && t.rows) || !((e = this.columns) != null && e.length);
|
961
961
|
},
|
962
|
-
rowWidth() {
|
963
|
-
var t;
|
964
|
-
return ((t = this.tableData) == null ? void 0 : t.width) || "100px";
|
965
|
-
},
|
966
962
|
activeCardRow() {
|
967
963
|
var t, e;
|
968
964
|
return ((e = (t = this.tableData) == null ? void 0 : t.rows) == null ? void 0 : e.find((r) => {
|
@@ -1010,8 +1006,13 @@ const Tr = /* @__PURE__ */ f(wr, [["render", Ir]]), Vr = {
|
|
1010
1006
|
},
|
1011
1007
|
methods: {
|
1012
1008
|
async checkUrlMounted() {
|
1013
|
-
var t, e, r, a, n,
|
1014
|
-
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (r = this.$route) == null ? void 0 : r.query) == null ? void 0 : a.limit) || 20, this.filterState = ((
|
1009
|
+
var t, e, r, a, n, o, c, p, h;
|
1010
|
+
this.page = ((e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.page) || 1, this.limit = ((a = (r = this.$route) == null ? void 0 : r.query) == null ? void 0 : a.limit) || 20, this.filterState = ((o = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : o.filterState) || null, this.filterCustom = ((p = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : p.filterCustom) || null, (h = this.$route) != null && h.query.card && (this.isVisibleCardInfo = !0);
|
1011
|
+
},
|
1012
|
+
rowWidth(t) {
|
1013
|
+
var r, a;
|
1014
|
+
const e = (a = (r = this.tableData) == null ? void 0 : r.columns) == null ? void 0 : a.find((n) => n.name === t);
|
1015
|
+
if (e) return e == null ? void 0 : e.width;
|
1015
1016
|
},
|
1016
1017
|
unmountedData() {
|
1017
1018
|
this.page = 1, this.filterCustom = null, this.filterState = null, this.isVisibleCardInfo = !1, this.filterScheme = null, this.filters = null, this.onFilters = 0;
|
@@ -1087,23 +1088,23 @@ const Tr = /* @__PURE__ */ f(wr, [["render", Ir]]), Vr = {
|
|
1087
1088
|
}, Mr = { class: "bg-white w-full rounded-xl border p-[20px] pr-0" }, jr = { class: "flex" }, zr = { class: "flex gap-[6px] ml-auto" }, Pr = { class: "inline-block w-full align-middle" }, qr = {
|
1088
1089
|
key: 0,
|
1089
1090
|
class: "relative min-w-full divide-y divide-gray-200 table-fixed dark:divide-neutral-700"
|
1090
|
-
}, Br = { class: "sticky top-0 bg-white w-full after:absolute after:content-[''] z-[1] after:block after:w-full after:h-px after:bg-stone-200" }, Lr = { class: "right-0 border-t border-stone-200" }, Ur = { class: "divide-y divide-gray-200" }, Or = { class: "text-sm text-gray-600 px-4 py-3
|
1091
|
+
}, Br = { class: "sticky top-0 bg-white w-full after:absolute after:content-[''] z-[1] after:block after:w-full after:h-px after:bg-stone-200" }, Lr = { class: "right-0 border-t border-stone-200" }, Ur = { class: "divide-y divide-gray-200" }, Or = { class: "text-sm text-gray-600 px-4 py-3" }, Er = ["onClick"], Nr = ["onClick"], Hr = {
|
1091
1092
|
key: 0,
|
1092
1093
|
class: "text-center sticky right-0 bg-white w-[80px] px-[10px]"
|
1093
1094
|
}, Wr = { class: "p-[20px] flex justify-end w-full" };
|
1094
|
-
function Rr(t, e, r, a, n,
|
1095
|
+
function Rr(t, e, r, a, n, o) {
|
1095
1096
|
var q, B, L, U, O, E, N, H, W, R, G, Z, J, K;
|
1096
|
-
const
|
1097
|
-
return
|
1097
|
+
const c = d("IconPlus"), p = d("router-link"), h = d("AdminTableTabs"), u = d("IconSearch"), _ = d("VsText"), w = d("AdminTableCustomFilters"), k = d("AdminTableColumnsHidden"), $ = d("AdminTableExport"), g = d("AdminTableFilters"), S = d("IconOpenCard"), D = d("AdminTableColumn"), M = d("AdminComponentIs"), oe = d("AdminTableControl"), ae = d("AdminNodata"), ie = d("VsPagination"), de = d("AdminTableCardInfo");
|
1098
|
+
return s(), i("div", Sr, [
|
1098
1099
|
l("div", Ar, [
|
1099
1100
|
l("h2", Fr, I(r.title), 1),
|
1100
|
-
|
1101
|
+
o.isForm ? (s(), x(p, {
|
1101
1102
|
key: 0,
|
1102
1103
|
to: `/add?table=${(B = (q = t.$route) == null ? void 0 : q.params) == null ? void 0 : B.catchAll}`,
|
1103
1104
|
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"
|
1104
1105
|
}, {
|
1105
1106
|
default: y(() => [
|
1106
|
-
b(
|
1107
|
+
b(c, {
|
1107
1108
|
height: "16",
|
1108
1109
|
width: "16"
|
1109
1110
|
}),
|
@@ -1114,11 +1115,11 @@ function Rr(t, e, r, a, n, s) {
|
|
1114
1115
|
]),
|
1115
1116
|
l("div", Dr, [
|
1116
1117
|
l("div", Mr, [
|
1117
|
-
(U = (L = n.tableData) == null ? void 0 : L.filterState) != null && U.length ? (
|
1118
|
+
(U = (L = n.tableData) == null ? void 0 : L.filterState) != null && U.length ? (s(), x(h, {
|
1118
1119
|
key: 0,
|
1119
1120
|
tabsList: (O = n.tableData) == null ? void 0 : O.filterState,
|
1120
1121
|
filterState: n.filterState,
|
1121
|
-
"onUpdate:filterState": e[0] || (e[0] = (
|
1122
|
+
"onUpdate:filterState": e[0] || (e[0] = (f) => n.filterState = f)
|
1122
1123
|
}, null, 8, ["tabsList", "filterState"])) : v("", !0),
|
1123
1124
|
l("div", jr, [
|
1124
1125
|
l("div", {
|
@@ -1134,33 +1135,33 @@ function Rr(t, e, r, a, n, s) {
|
|
1134
1135
|
}),
|
1135
1136
|
b(_, {
|
1136
1137
|
modelValue: n.searchValue,
|
1137
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
1138
|
+
"onUpdate:modelValue": e[1] || (e[1] = (f) => n.searchValue = f),
|
1138
1139
|
placeholder: "Пошук...",
|
1139
1140
|
clearable: !0,
|
1140
1141
|
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"
|
1141
1142
|
}, null, 8, ["modelValue"]),
|
1142
1143
|
l("div", zr, [
|
1143
|
-
(N = (E = n.tableData) == null ? void 0 : E.filterCustom) != null && N.length ? (
|
1144
|
+
(N = (E = n.tableData) == null ? void 0 : E.filterCustom) != null && N.length ? (s(), x(w, {
|
1144
1145
|
key: 0,
|
1145
1146
|
customList: (H = n.tableData) == null ? void 0 : H.filterCustom,
|
1146
1147
|
filterCustom: n.filterCustom,
|
1147
|
-
"onUpdate:filterCustom": e[2] || (e[2] = (
|
1148
|
+
"onUpdate:filterCustom": e[2] || (e[2] = (f) => n.filterCustom = f)
|
1148
1149
|
}, null, 8, ["customList", "filterCustom"])) : v("", !0),
|
1149
1150
|
b(k, {
|
1150
1151
|
columns: (W = n.tableData) == null ? void 0 : W.columns,
|
1151
|
-
onUpdateColumns: e[3] || (e[3] = (
|
1152
|
+
onUpdateColumns: e[3] || (e[3] = (f) => n.tableData.columns = f)
|
1152
1153
|
}, null, 8, ["columns"]),
|
1153
1154
|
b($, {
|
1154
1155
|
table: r.table,
|
1155
1156
|
columns: (R = n.tableData) == null ? void 0 : R.columns
|
1156
1157
|
}, null, 8, ["table", "columns"]),
|
1157
|
-
b(
|
1158
|
+
b(g, {
|
1158
1159
|
scheme: n.filterScheme,
|
1159
1160
|
onFilters: n.onFilters,
|
1160
|
-
onFilterChange:
|
1161
|
+
onFilterChange: o.filterChange
|
1161
1162
|
}, null, 8, ["scheme", "onFilters", "onFilterChange"]),
|
1162
1163
|
l("button", {
|
1163
|
-
onClick: e[4] || (e[4] = (...
|
1164
|
+
onClick: e[4] || (e[4] = (...f) => o.toggleCardInfo && o.toggleCardInfo(...f)),
|
1164
1165
|
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"
|
1165
1166
|
}, [
|
1166
1167
|
b(S, {
|
@@ -1173,62 +1174,65 @@ function Rr(t, e, r, a, n, s) {
|
|
1173
1174
|
class: V(["flex items-start justify-start w-full space-y-5", { "pr-[20px]": !n.isVisibleCardInfo }])
|
1174
1175
|
}, [
|
1175
1176
|
l("div", {
|
1176
|
-
style:
|
1177
|
+
style: re({
|
1177
1178
|
height: (Z = (G = n.tableData) == null ? void 0 : G.filterState) != null && Z.length ? "calc(100vh - 370px)" : "calc(100vh - 315px)"
|
1178
1179
|
}),
|
1179
1180
|
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"
|
1180
1181
|
}, [
|
1181
1182
|
l("div", Pr, [
|
1182
|
-
|
1183
|
+
o.isNoData ? (s(), x(ae, { key: 1 })) : (s(), i("table", qr, [
|
1183
1184
|
l("thead", Br, [
|
1184
1185
|
l("tr", Lr, [
|
1185
|
-
(
|
1186
|
-
key:
|
1187
|
-
|
1186
|
+
(s(!0), i(C, null, T(o.columns, (f) => (s(), x(D, {
|
1187
|
+
key: f.name,
|
1188
|
+
style: re({
|
1189
|
+
width: o.rowWidth(f == null ? void 0 : f.name)
|
1190
|
+
}),
|
1191
|
+
data: f,
|
1188
1192
|
activeColumn: n.activeColumn,
|
1189
|
-
onChangeActive:
|
1190
|
-
}, null, 8, ["data", "activeColumn", "onChangeActive"]))), 128)),
|
1193
|
+
onChangeActive: o.changeActiveColumn
|
1194
|
+
}, null, 8, ["style", "data", "activeColumn", "onChangeActive"]))), 128)),
|
1191
1195
|
e[6] || (e[6] = l("th", { class: "w-[70px] sticky right-0 top-0 bg-white" }, null, -1))
|
1192
1196
|
])
|
1193
1197
|
]),
|
1194
1198
|
l("tbody", Ur, [
|
1195
|
-
(
|
1199
|
+
(s(!0), i(C, null, T((J = n.tableData) == null ? void 0 : J.rows, (f, ce) => {
|
1196
1200
|
var Q, X, Y;
|
1197
|
-
return
|
1201
|
+
return s(), i("tr", { key: ce }, [
|
1198
1202
|
l("td", Or, [
|
1199
1203
|
l("button", {
|
1200
|
-
onClick: () =>
|
1204
|
+
onClick: () => o.pushToCard(f == null ? void 0 : f.id),
|
1201
1205
|
class: V(["text-sm font-medium", [
|
1202
1206
|
((Q = n.tableData) == null ? void 0 : Q.card) === !1 ? "" : "text-blue-600 decoration-2 focus:outline-none focus:underline hover:text-blue-600 hover:underline"
|
1203
1207
|
]])
|
1204
1208
|
}, [
|
1205
1209
|
b(M, {
|
1206
|
-
row:
|
1207
|
-
column:
|
1210
|
+
row: f,
|
1211
|
+
column: o.columns[0],
|
1208
1212
|
table: r.table,
|
1209
|
-
onUpdateTable:
|
1213
|
+
onUpdateTable: o.getTableData
|
1210
1214
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1211
1215
|
], 10, Er)
|
1212
1216
|
]),
|
1213
|
-
(
|
1214
|
-
onClick: (Qr) =>
|
1217
|
+
(s(!0), i(C, null, T((X = o.columns) == null ? void 0 : X.slice(1), (ee) => (s(), i("td", {
|
1218
|
+
onClick: (Qr) => o.changeActiveCardInfo(f == null ? void 0 : f.id),
|
1215
1219
|
class: V(["text-start px-3 py-3 text-sm text-gray-600 whitespace-nowrap", { "cursor-pointer": n.isVisibleCardInfo }]),
|
1216
1220
|
key: ee.name
|
1217
1221
|
}, [
|
1218
1222
|
b(M, {
|
1219
|
-
row:
|
1223
|
+
row: f,
|
1220
1224
|
column: ee,
|
1221
1225
|
table: r.table,
|
1222
|
-
onUpdateTable:
|
1226
|
+
onUpdateTable: o.getTableData
|
1223
1227
|
}, null, 8, ["row", "column", "table", "onUpdateTable"])
|
1224
1228
|
], 10, Nr))), 128)),
|
1225
|
-
(Y =
|
1229
|
+
(Y = o.getActions) != null && Y.length ? (s(), i("td", Hr, [
|
1226
1230
|
b(oe, {
|
1227
|
-
actions:
|
1228
|
-
isForm:
|
1229
|
-
item:
|
1231
|
+
actions: o.getActions,
|
1232
|
+
isForm: o.isForm,
|
1233
|
+
item: f,
|
1230
1234
|
table: r.table,
|
1231
|
-
onUpdateTable:
|
1235
|
+
onUpdateTable: o.getTableData
|
1232
1236
|
}, null, 8, ["actions", "isForm", "item", "table", "onUpdateTable"])
|
1233
1237
|
])) : v("", !0)
|
1234
1238
|
]);
|
@@ -1239,26 +1243,26 @@ function Rr(t, e, r, a, n, s) {
|
|
1239
1243
|
], 4)
|
1240
1244
|
], 2),
|
1241
1245
|
l("div", Wr, [
|
1242
|
-
n.limit ? (
|
1246
|
+
n.limit ? (s(), x(ie, {
|
1243
1247
|
key: 0,
|
1244
1248
|
goTo: !1,
|
1245
1249
|
class: "justify-end",
|
1246
|
-
"default-page":
|
1250
|
+
"default-page": o.defaultPage,
|
1247
1251
|
total: ((K = n.tableData) == null ? void 0 : K.total) || 0,
|
1248
1252
|
pageSize: parseInt(n.limit),
|
1249
|
-
onPageChange:
|
1253
|
+
onPageChange: o.handlePageChange,
|
1250
1254
|
pageSizes: [10, 16, 20],
|
1251
|
-
onPageSizeChange:
|
1255
|
+
onPageSizeChange: o.changeLimit
|
1252
1256
|
}, null, 8, ["default-page", "total", "pageSize", "onPageChange", "onPageSizeChange"])) : v("", !0)
|
1253
1257
|
])
|
1254
1258
|
], 2),
|
1255
1259
|
b(P, { name: "slide-fade" }, {
|
1256
1260
|
default: y(() => [
|
1257
|
-
n.isVisibleCardInfo ? (
|
1261
|
+
n.isVisibleCardInfo ? (s(), x(de, {
|
1258
1262
|
key: 0,
|
1259
1263
|
table: r.table,
|
1260
|
-
columns:
|
1261
|
-
row:
|
1264
|
+
columns: o.columns,
|
1265
|
+
row: o.activeCardRow
|
1262
1266
|
}, null, 8, ["table", "columns", "row"])) : v("", !0)
|
1263
1267
|
]),
|
1264
1268
|
_: 1
|
@@ -1268,7 +1272,7 @@ function Rr(t, e, r, a, n, s) {
|
|
1268
1272
|
])
|
1269
1273
|
]);
|
1270
1274
|
}
|
1271
|
-
const Gr = /* @__PURE__ */
|
1275
|
+
const Gr = /* @__PURE__ */ m(Vr, [["render", Rr], ["__scopeId", "data-v-52abfa94"]]), Zr = {
|
1272
1276
|
components: { AdminTable: Gr },
|
1273
1277
|
data() {
|
1274
1278
|
return {
|
@@ -1303,9 +1307,9 @@ const Gr = /* @__PURE__ */ f(Vr, [["render", Rr], ["__scopeId", "data-v-f40661d7
|
|
1303
1307
|
var a, n;
|
1304
1308
|
const t = this.flattenMenu(te.value);
|
1305
1309
|
t != null && t.length || this.$router.replace("/404");
|
1306
|
-
const e = t == null ? void 0 : t.find((
|
1307
|
-
var
|
1308
|
-
return (
|
1310
|
+
const e = t == null ? void 0 : t.find((o) => {
|
1311
|
+
var c, p;
|
1312
|
+
return (o == null ? void 0 : o.path) == ((p = (c = this.$route) == null ? void 0 : c.params) == null ? void 0 : p.catchAll);
|
1309
1313
|
});
|
1310
1314
|
this.title = e == null ? void 0 : e.ua, e || this.$router.replace("/404"), e != null && e.component && this.$router.replace((n = (a = this.$route) == null ? void 0 : a.params) == null ? void 0 : n.catchAll);
|
1311
1315
|
const r = e == null ? void 0 : e.table;
|
@@ -1324,20 +1328,20 @@ const Gr = /* @__PURE__ */ f(Vr, [["render", Rr], ["__scopeId", "data-v-f40661d7
|
|
1324
1328
|
}
|
1325
1329
|
}
|
1326
1330
|
}, Jr = ["innerHTML"];
|
1327
|
-
function Kr(t, e, r, a, n,
|
1328
|
-
const
|
1329
|
-
return n.table ? (
|
1331
|
+
function Kr(t, e, r, a, n, o) {
|
1332
|
+
const c = d("AdminTable");
|
1333
|
+
return n.table ? (s(), x(c, {
|
1330
1334
|
key: 0,
|
1331
1335
|
table: n.table,
|
1332
1336
|
title: n.title
|
1333
|
-
}, null, 8, ["table", "title"])) : (
|
1337
|
+
}, null, 8, ["table", "title"])) : (s(), i("div", {
|
1334
1338
|
key: 1,
|
1335
1339
|
class: "w-full bg-gray-50",
|
1336
1340
|
style: { height: "calc(100vh - 120px)" },
|
1337
1341
|
innerHTML: n.interface
|
1338
1342
|
}, null, 8, Jr));
|
1339
1343
|
}
|
1340
|
-
const en = /* @__PURE__ */
|
1344
|
+
const en = /* @__PURE__ */ m(Zr, [["render", Kr]]);
|
1341
1345
|
export {
|
1342
1346
|
en as default
|
1343
1347
|
};
|