@opengis/admin 0.1.14 → 0.1.16
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/dist/{add-page-Brc-OoJB.js → add-page-DU60zL6t.js} +1 -1
- package/dist/{admin-interface-Dd34YKTr.js → admin-interface-gm773DzD.js} +1 -1
- package/dist/{admin-view-CI7J2Yzg.js → admin-view-CfY_rVQ4.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +24 -24
- package/dist/card-page-ZWU3SEtH.js +194 -0
- package/dist/{card-view-D6m2I429.js → card-view-CwZPYXyJ.js} +1 -1
- package/dist/{edit-page-B2M7ufEc.js → edit-page-C6mgpZBS.js} +1 -1
- package/dist/{import-file-BvbReH2G.js → import-file-C5Tvx4dB.js} +811 -805
- package/dist/style.css +1 -1
- package/module/settings/card/admin.users.table/general_info.hbs +31 -0
- package/module/settings/card/admin.users.table/index.yml +7 -0
- package/module/settings/card/admin.users.table/user_roles.hbs +26 -0
- package/module/settings/cls/core.actions.json +14 -0
- package/module/settings/cls/core.scope.json +14 -0
- package/module/settings/cls/properties.site_status.json +14 -0
- package/module/settings/cls/properties.widget_status.json +14 -0
- package/module/settings/cls/users.user_type.json +14 -0
- package/module/settings/form/admin.access.form.json +37 -0
- package/module/settings/form/admin.properties.form.json +16 -0
- package/module/settings/form/admin.roles.form.json +20 -0
- package/module/settings/form/admin.routes.form.json +26 -0
- package/module/settings/form/admin.user_roles.form.json +22 -0
- package/module/settings/form/admin.users.form.json +90 -0
- package/module/settings/form/user.user_roles.form.json +14 -0
- package/module/settings/interface/admin.properties.html +1 -0
- package/module/settings/interface/admin.properties.json +5 -0
- package/module/settings/interface/admin.roles.html +1 -0
- package/module/settings/interface/admin.roles.json +5 -0
- package/module/settings/interface/admin.routes.html +1 -0
- package/module/settings/interface/admin.routes.json +5 -0
- package/module/settings/interface/admin.users.html +1 -0
- package/module/settings/interface/admin.users.json +5 -0
- package/module/settings/menu.json +34 -0
- package/module/settings/select/core.menu_id.sql +1 -0
- package/module/settings/select/core.roles.json +3 -0
- package/module/settings/select/core.roles.sql +1 -0
- package/module/settings/select/core.routes.sql +1 -0
- package/module/settings/select/core.user_uid.sql +2 -0
- package/module/settings/table/admin.access.table.json +78 -0
- package/module/settings/table/admin.properties.table.json +33 -0
- package/module/settings/table/admin.roles.table.json +59 -0
- package/module/settings/table/admin.routes.table.json +54 -0
- package/module/settings/table/admin.user_roles.table.json +67 -0
- package/module/settings/table/admin.users.table.json +65 -0
- package/package.json +2 -1
- package/dist/card-page-zKtW4FdS.js +0 -192
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"columns": [
|
|
3
|
+
{
|
|
4
|
+
"name": "route_id",
|
|
5
|
+
"data": "core.routes",
|
|
6
|
+
"title": "Interface"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "actions",
|
|
10
|
+
"data": "core.actions",
|
|
11
|
+
"title": "Actions"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "role_id",
|
|
15
|
+
"data": "core.roles",
|
|
16
|
+
"title": "Група"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "user_uid",
|
|
20
|
+
"data": "core.user_uid",
|
|
21
|
+
"title": "Користувач"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "scope",
|
|
25
|
+
"data": "core.scope",
|
|
26
|
+
"title": "Доступ до даних"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "access_granted",
|
|
30
|
+
"data": "core.user_uid",
|
|
31
|
+
"title": "Хто надав доступ"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "access_granted_time",
|
|
35
|
+
"format": "date",
|
|
36
|
+
"title": "Дата надання доступу"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"ua": "Доступи",
|
|
40
|
+
"form": "admin.access.form",
|
|
41
|
+
"table": "admin.access",
|
|
42
|
+
"order": "cdate desc",
|
|
43
|
+
"meta": {
|
|
44
|
+
"title": "access_id",
|
|
45
|
+
"search": "route_id"
|
|
46
|
+
},
|
|
47
|
+
"filters": [
|
|
48
|
+
{
|
|
49
|
+
"id": "route_id",
|
|
50
|
+
"label": "Interface",
|
|
51
|
+
"data": "core.routes",
|
|
52
|
+
"type": "Select"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "role_id",
|
|
56
|
+
"label": "Група",
|
|
57
|
+
"data": "core.roles",
|
|
58
|
+
"type": "Select"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "user_uid",
|
|
62
|
+
"label": "Користувач",
|
|
63
|
+
"data": "core.user_uid",
|
|
64
|
+
"type": "Select"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "access_granted",
|
|
68
|
+
"label": "Хто надав доступ",
|
|
69
|
+
"data": "core.user_uid",
|
|
70
|
+
"type": "Select"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "access_granted_time",
|
|
74
|
+
"label": "Дата надання доступу",
|
|
75
|
+
"type": "Date"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"columns": [
|
|
3
|
+
{
|
|
4
|
+
"name": "property_key",
|
|
5
|
+
"title": "Ключ",
|
|
6
|
+
"format": "text"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "property_text",
|
|
10
|
+
"title": "Значення",
|
|
11
|
+
"format": "text"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"ua": "Налаштування",
|
|
15
|
+
"form": "admin.properties.form",
|
|
16
|
+
"table": "admin.properties",
|
|
17
|
+
"order": "cdate desc",
|
|
18
|
+
"meta": {
|
|
19
|
+
"search": "property_key,property_text"
|
|
20
|
+
},
|
|
21
|
+
"filters": [
|
|
22
|
+
{
|
|
23
|
+
"ua": "Ключ",
|
|
24
|
+
"name": "property_key",
|
|
25
|
+
"type": "text"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"ua": "Значення",
|
|
29
|
+
"name": "property_text",
|
|
30
|
+
"type": "text"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ua": "Групи",
|
|
3
|
+
"form": "admin.roles.form",
|
|
4
|
+
"table": "admin.roles",
|
|
5
|
+
"order": "cdate desc",
|
|
6
|
+
"sql": [
|
|
7
|
+
{
|
|
8
|
+
"sql": "select count(user_uid) as user_count from admin.user_roles where role_id=t.role_id",
|
|
9
|
+
"name": "user_count"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"sql": "select count(route_id) as routes_count from admin.access where role_id=t.role_id",
|
|
13
|
+
"name": "routes_count"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"columns": [
|
|
17
|
+
{
|
|
18
|
+
"name": "name",
|
|
19
|
+
"format": "text",
|
|
20
|
+
"title": "Назва"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "user_count",
|
|
24
|
+
"format": "text",
|
|
25
|
+
"title": "Кількість користувачів"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "routes_count",
|
|
29
|
+
"format": "text",
|
|
30
|
+
"title": "Кількість інтерфейсів"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "cdate",
|
|
34
|
+
"format": "date",
|
|
35
|
+
"title": "Створено"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "info",
|
|
39
|
+
"format": "text",
|
|
40
|
+
"title": "Опис"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "enabled",
|
|
44
|
+
"format": "switcher",
|
|
45
|
+
"title": "On / Off"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"meta": {
|
|
49
|
+
"title": "role_id",
|
|
50
|
+
"search": "name"
|
|
51
|
+
},
|
|
52
|
+
"filters": [
|
|
53
|
+
{
|
|
54
|
+
"ua": "Назва",
|
|
55
|
+
"name": "name",
|
|
56
|
+
"type": "text"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ua": "Список інтерфейсів",
|
|
3
|
+
"form": "admin.routes.form",
|
|
4
|
+
"table": "admin.routes",
|
|
5
|
+
"order": "cdate desc",
|
|
6
|
+
"sql": [
|
|
7
|
+
{
|
|
8
|
+
"sql": "select count(user_uid) as user_count from admin.access where route_id=t.route_id",
|
|
9
|
+
"name": "user_count"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"sql": "select count(role_id) as roles_count from admin.access where route_id=t.route_id",
|
|
13
|
+
"name": "roles_count"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"columns": [
|
|
17
|
+
{
|
|
18
|
+
"name": "alias",
|
|
19
|
+
"format": "text",
|
|
20
|
+
"title": "Назва файлу інтерфейсу"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "title",
|
|
24
|
+
"format": "text",
|
|
25
|
+
"title": "Назва інтерфейсу українською"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "user_count",
|
|
29
|
+
"format": "text",
|
|
30
|
+
"title": "Кількість користувачів"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "roles_count",
|
|
34
|
+
"format": "text",
|
|
35
|
+
"title": "Кількість груп"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"meta": {
|
|
39
|
+
"title": "cdate",
|
|
40
|
+
"search": "alias,title"
|
|
41
|
+
},
|
|
42
|
+
"filters": [
|
|
43
|
+
{
|
|
44
|
+
"ua": "Alias",
|
|
45
|
+
"name": "alias",
|
|
46
|
+
"type": "text"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"ua": "Title",
|
|
50
|
+
"name": "title",
|
|
51
|
+
"type": "text"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"columns": [
|
|
3
|
+
{
|
|
4
|
+
"name": "role_id",
|
|
5
|
+
"data": "core.roles",
|
|
6
|
+
"title": "Група"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "user_uid",
|
|
10
|
+
"data": "core.user_uid",
|
|
11
|
+
"title": "Користувач"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "expiration",
|
|
15
|
+
"title": "Закінчення терміну дії доступу до групи",
|
|
16
|
+
"format": "date"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "access_granted",
|
|
20
|
+
"data": "core.user_uid",
|
|
21
|
+
"title": "Хто надав доступ"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "access_granted_time",
|
|
25
|
+
"format": "date",
|
|
26
|
+
"title": "Дата надання доступу"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"ua": "Зв'язок між користувачами та групами",
|
|
30
|
+
"form": "admin.user_roles.form",
|
|
31
|
+
"table": "admin.user_roles",
|
|
32
|
+
"order": "cdate desc",
|
|
33
|
+
"meta": {
|
|
34
|
+
"title": "ugr_id",
|
|
35
|
+
"search": "user_uid,role_id"
|
|
36
|
+
},
|
|
37
|
+
"filters": [
|
|
38
|
+
{
|
|
39
|
+
"id": "role_id",
|
|
40
|
+
"label": "Група",
|
|
41
|
+
"data": "core.roles",
|
|
42
|
+
"type": "Select"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "user_uid",
|
|
46
|
+
"label": "Користувач",
|
|
47
|
+
"data": "core.user_uid",
|
|
48
|
+
"type": "Select"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "expiration",
|
|
52
|
+
"label": "Закінчення терміну дії доступу до групи",
|
|
53
|
+
"type": "Date"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "access_granted",
|
|
57
|
+
"label": "Хто надав доступ",
|
|
58
|
+
"data": "core.user_uid",
|
|
59
|
+
"type": "Select"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "access_granted_time",
|
|
63
|
+
"type": "Date",
|
|
64
|
+
"label": "Дата надання доступу"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ua": "Користувачі",
|
|
3
|
+
"form": "admin.users.form",
|
|
4
|
+
"table": "admin.users",
|
|
5
|
+
"order": "cdate desc",
|
|
6
|
+
"sql": [
|
|
7
|
+
{
|
|
8
|
+
"sql": "select coalesce(sur_name||' ','')||coalesce(user_name||' ','')||coalesce(father_name||' ','') as full_name from admin.users where uid=t.uid",
|
|
9
|
+
"name": "user_full_name"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"sql": "select count(role_id) as role_count from admin.user_roles where user_uid=t.uid",
|
|
13
|
+
"name": "user_groups_count"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"columns": [
|
|
17
|
+
{
|
|
18
|
+
"name": "full_name",
|
|
19
|
+
"format": "text",
|
|
20
|
+
"title": "ПІБ"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "role_count",
|
|
24
|
+
"format": "text",
|
|
25
|
+
"title": "Кількість груп"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "email",
|
|
29
|
+
"format": "text",
|
|
30
|
+
"title": "e-mail"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "cdate",
|
|
34
|
+
"format": "date",
|
|
35
|
+
"title": "Дата реєстрації"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "last_activity_date",
|
|
39
|
+
"format": "date",
|
|
40
|
+
"title": "Дата останньої активності"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "enabled",
|
|
44
|
+
"format": "switcher",
|
|
45
|
+
"title": "On/Off"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"meta": {
|
|
49
|
+
"title": "cdate",
|
|
50
|
+
"search": "login"
|
|
51
|
+
},
|
|
52
|
+
"filters": [
|
|
53
|
+
{
|
|
54
|
+
"ua": "Дата останньої активності",
|
|
55
|
+
"name": "last_activity_date",
|
|
56
|
+
"type": "date"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"ua": "Тип користувача",
|
|
60
|
+
"name": "user_type",
|
|
61
|
+
"data": "users.user_type",
|
|
62
|
+
"type": "check"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengis/admin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "This project Softpro Admin",
|
|
5
5
|
"main": "dist/admin.js",
|
|
6
6
|
"type": "module",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/*",
|
|
12
|
+
"module/*",
|
|
12
13
|
"server/*",
|
|
13
14
|
"plugin.js",
|
|
14
15
|
"config.js"
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { u as L } from "./userMenu-CT1xO2Pt.js";
|
|
2
|
-
import { _ as H, a as V } from "./import-file-BvbReH2G.js";
|
|
3
|
-
import { resolveComponent as z, openBlock as s, createElementBlock as c, createElementVNode as l, toDisplayString as D, createVNode as N, withCtx as q, createTextVNode as B, normalizeClass as M, Fragment as b, renderList as C, createBlock as $, resolveDynamicComponent as T, createCommentVNode as x } from "vue";
|
|
4
|
-
const E = {
|
|
5
|
-
data() {
|
|
6
|
-
return {
|
|
7
|
-
objectData: null,
|
|
8
|
-
component: ""
|
|
9
|
-
};
|
|
10
|
-
},
|
|
11
|
-
computed: {
|
|
12
|
-
getRoute() {
|
|
13
|
-
const e = this.flattenMenu(L.value);
|
|
14
|
-
e != null && e.length || this.$router.replace("/404");
|
|
15
|
-
const o = e == null ? void 0 : e.find((a) => {
|
|
16
|
-
var u, n;
|
|
17
|
-
return (a == null ? void 0 : a.table) == ((n = (u = this.$route) == null ? void 0 : u.params) == null ? void 0 : n.table);
|
|
18
|
-
});
|
|
19
|
-
return o || this.$router.replace("/404"), o == null ? void 0 : o.path;
|
|
20
|
-
},
|
|
21
|
-
getTitle() {
|
|
22
|
-
var e, o, a, u, n, h, i, d, p, f, r, j, g, t;
|
|
23
|
-
if ((a = (o = (e = this.objectData) == null ? void 0 : e.rows) == null ? void 0 : o[0]) != null && a.name)
|
|
24
|
-
return ((i = (h = (n = (u = this.objectData) == null ? void 0 : u.rows) == null ? void 0 : n[0]) == null ? void 0 : h.name) == null ? void 0 : i.length) < 35 ? (f = (p = (d = this.objectData) == null ? void 0 : d.rows) == null ? void 0 : p[0]) == null ? void 0 : f.name : ((t = (g = (j = (r = this.objectData) == null ? void 0 : r.rows) == null ? void 0 : j[0]) == null ? void 0 : g.name) == null ? void 0 : t.slice(0, 35)) + " ...";
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
async mounted() {
|
|
28
|
-
await this.getObjectData(), await this.checkActiveComponent();
|
|
29
|
-
},
|
|
30
|
-
watch: {
|
|
31
|
-
component(e) {
|
|
32
|
-
this.$router.replace({ ...this.$route, query: { tab: e } });
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
methods: {
|
|
36
|
-
async getObjectData() {
|
|
37
|
-
var a;
|
|
38
|
-
const { table: e, id: o } = (a = this.$route) == null ? void 0 : a.params;
|
|
39
|
-
(!e || !o) && this.$router.replace("/404");
|
|
40
|
-
try {
|
|
41
|
-
const { data: u } = await V.get(`/api/table-data/${e}/${o}`);
|
|
42
|
-
this.objectData = u;
|
|
43
|
-
} catch (u) {
|
|
44
|
-
console.error(u);
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
getColClass(e) {
|
|
48
|
-
return `col-span-${e || 12}`;
|
|
49
|
-
},
|
|
50
|
-
getGridClass() {
|
|
51
|
-
return "grid-cols-12";
|
|
52
|
-
},
|
|
53
|
-
checkActiveComponent() {
|
|
54
|
-
var e, o, a, u, n, h, i;
|
|
55
|
-
if ((o = (e = this.$route) == null ? void 0 : e.query) != null && o.tab) this.component = (u = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : u.tab;
|
|
56
|
-
else {
|
|
57
|
-
const d = (h = (n = this.objectData) == null ? void 0 : n.panels) == null ? void 0 : h.find((p) => p == null ? void 0 : p.items);
|
|
58
|
-
if ((d == null ? void 0 : d.type) === "container") return;
|
|
59
|
-
this.component = (i = d == null ? void 0 : d.items[0]) == null ? void 0 : i.component;
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
flattenMenu(e) {
|
|
63
|
-
const o = [];
|
|
64
|
-
return e.forEach((a) => {
|
|
65
|
-
a.menu ? o.push(...this.flattenMenu(a.menu)) : o.push(a);
|
|
66
|
-
}), o;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}, A = {
|
|
70
|
-
style: { width: "calc(100vw - 260px)", height: "calc(100vh - 60px)" },
|
|
71
|
-
class: "bg-gray-50 overflow-y-auto"
|
|
72
|
-
}, G = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, O = { class: "flex items-center gap-[4px]" }, R = { class: "text-xl font-medium text-gray-600" }, F = { class: "flex items-center gap-[6px]" }, I = {
|
|
73
|
-
key: 0,
|
|
74
|
-
class: "border rounded-xl bg-white"
|
|
75
|
-
}, P = { class: "p-[10px] pl-[20px] text-xl" }, S = ["innerHTML"], J = { key: 1 }, K = { class: "p-[10px] pl-[20px] text-xl" }, Q = {
|
|
76
|
-
key: 0,
|
|
77
|
-
class: "p-[20px] border-t"
|
|
78
|
-
}, U = {
|
|
79
|
-
key: 1,
|
|
80
|
-
class: "p-[20px] border-t"
|
|
81
|
-
}, W = ["innerHTML"], X = { class: "flex space-x-1 w-[1200px] bg-white border rounded-xl h-[60px] items-center pl-[20px]" }, Y = ["onClick"], Z = {
|
|
82
|
-
key: 0,
|
|
83
|
-
class: "border rounded-xl bg-white mt-[20px]"
|
|
84
|
-
}, tt = { class: "p-[10px] pl-[20px] text-xl" }, et = {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: "p-[20px] border-t"
|
|
87
|
-
}, ot = {
|
|
88
|
-
key: 1,
|
|
89
|
-
class: "p-[20px] border-t"
|
|
90
|
-
}, rt = ["innerHTML"];
|
|
91
|
-
function st(e, o, a, u, n, h) {
|
|
92
|
-
var d, p, f;
|
|
93
|
-
const i = z("router-link");
|
|
94
|
-
return s(), c("div", A, [
|
|
95
|
-
l("div", G, [
|
|
96
|
-
l("div", O, [
|
|
97
|
-
l("button", {
|
|
98
|
-
onClick: o[0] || (o[0] = (r) => e.$router.back()),
|
|
99
|
-
class: "text-xl font-medium text-gray-600 hover:text-black"
|
|
100
|
-
}, " До таблиці "),
|
|
101
|
-
o[1] || (o[1] = l("span", null, "/", -1)),
|
|
102
|
-
l("h2", R, D(h.getTitle), 1)
|
|
103
|
-
]),
|
|
104
|
-
l("div", F, [
|
|
105
|
-
N(i, {
|
|
106
|
-
to: `/edit?table=${h.getRoute}&id=${(p = (d = e.$route) == null ? void 0 : d.params) == null ? void 0 : p.id}`,
|
|
107
|
-
class: "py-2 px-3 flex items-center gap-x-2 text-sm text-white font-medium rounded-lg border-none bg-blue-500 text-gray-800 shadow-sm focus:border-none focus:outline-none hover:bg-blue-700 hover:text-white duration-300"
|
|
108
|
-
}, {
|
|
109
|
-
default: q(() => o[2] || (o[2] = [
|
|
110
|
-
B(" Редагувати ")
|
|
111
|
-
])),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 8, ["to"])
|
|
114
|
-
])
|
|
115
|
-
]),
|
|
116
|
-
l("div", {
|
|
117
|
-
class: M(["grid gap-[20px]", h.getGridClass()])
|
|
118
|
-
}, [
|
|
119
|
-
(s(!0), c(b, null, C((f = n.objectData) == null ? void 0 : f.panels, (r, j) => {
|
|
120
|
-
var g;
|
|
121
|
-
return s(), c("div", {
|
|
122
|
-
key: j,
|
|
123
|
-
class: M([h.getColClass(r.col), "p-4"])
|
|
124
|
-
}, [
|
|
125
|
-
r != null && r.name ? (s(), c("div", I, [
|
|
126
|
-
l("h2", P, D((r == null ? void 0 : r.title) || "Панель"), 1),
|
|
127
|
-
l("div", {
|
|
128
|
-
class: "p-[20px] border-t",
|
|
129
|
-
innerHTML: (g = n.objectData) == null ? void 0 : g.data[r == null ? void 0 : r.name]
|
|
130
|
-
}, null, 8, S)
|
|
131
|
-
])) : r.type === "container" ? (s(), c("div", J, [
|
|
132
|
-
(s(!0), c(b, null, C(r.items, (t, m) => {
|
|
133
|
-
var _, y, v, k, w;
|
|
134
|
-
return s(), c("div", {
|
|
135
|
-
key: m,
|
|
136
|
-
class: "border rounded-xl bg-white mb-[20px]"
|
|
137
|
-
}, [
|
|
138
|
-
l("h2", K, D((t == null ? void 0 : t.title) || "Панель"), 1),
|
|
139
|
-
t != null && t.component ? (s(), c("div", Q, [
|
|
140
|
-
(s(), $(T(t.component), {
|
|
141
|
-
geometry: (y = (_ = n.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : y.geom,
|
|
142
|
-
zoom: 16,
|
|
143
|
-
id: (k = (v = e.$route) == null ? void 0 : v.params) == null ? void 0 : k.id
|
|
144
|
-
}, null, 8, ["geometry", "id"]))
|
|
145
|
-
])) : x("", !0),
|
|
146
|
-
t != null && t.name ? (s(), c("div", U, [
|
|
147
|
-
l("div", {
|
|
148
|
-
innerHTML: (w = n.objectData) == null ? void 0 : w.data[t == null ? void 0 : t.name]
|
|
149
|
-
}, null, 8, W)
|
|
150
|
-
])) : x("", !0)
|
|
151
|
-
]);
|
|
152
|
-
}), 128))
|
|
153
|
-
])) : x("", !0),
|
|
154
|
-
(r == null ? void 0 : r.type) === "tabs" ? (s(), c(b, { key: 2 }, [
|
|
155
|
-
l("nav", X, [
|
|
156
|
-
(s(!0), c(b, null, C(r == null ? void 0 : r.items, (t) => (s(), c("button", {
|
|
157
|
-
onClick: () => n.component = (t == null ? void 0 : t.component) || (t == null ? void 0 : t.name),
|
|
158
|
-
class: M(["px-2.5 h-[30px] py-1.5 relative inline-flex items-center gap-x-2 hover:bg-gray-100 text-gray-500 hover:text-gray-800 text-sm whitespace-nowrap rounded-lg disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 after:absolute after:-bottom-[11px] after:inset-x-2.5 after:z-10 after:h-0.5 after:pointer-events-none dark:text-neutral-500 dark:hover:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 active", {
|
|
159
|
-
"after:absolute after:bottom-[-14px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:pointer-events-none after:bg-gray-800": n.component === (t == null ? void 0 : t.component) || (t == null ? void 0 : t.name)
|
|
160
|
-
}])
|
|
161
|
-
}, D(t == null ? void 0 : t.title), 11, Y))), 256))
|
|
162
|
-
]),
|
|
163
|
-
(s(!0), c(b, null, C(r.items, (t, m) => {
|
|
164
|
-
var _, y, v, k, w;
|
|
165
|
-
return s(), c(b, { key: m }, [
|
|
166
|
-
n.component === (t == null ? void 0 : t.component) || t != null && t.name ? (s(), c("div", Z, [
|
|
167
|
-
l("h2", tt, D((t == null ? void 0 : t.title) || "Панель"), 1),
|
|
168
|
-
t != null && t.component ? (s(), c("div", et, [
|
|
169
|
-
(s(), $(T(t.component), {
|
|
170
|
-
geometry: (y = (_ = n.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : y.geom,
|
|
171
|
-
zoom: 16,
|
|
172
|
-
id: (k = (v = e.$route) == null ? void 0 : v.params) == null ? void 0 : k.id
|
|
173
|
-
}, null, 8, ["geometry", "id"]))
|
|
174
|
-
])) : x("", !0),
|
|
175
|
-
t != null && t.name ? (s(), c("div", ot, [
|
|
176
|
-
l("div", {
|
|
177
|
-
innerHTML: (w = n.objectData) == null ? void 0 : w.data[t == null ? void 0 : t.name]
|
|
178
|
-
}, null, 8, rt)
|
|
179
|
-
])) : x("", !0)
|
|
180
|
-
])) : x("", !0)
|
|
181
|
-
], 64);
|
|
182
|
-
}), 128))
|
|
183
|
-
], 64)) : x("", !0)
|
|
184
|
-
], 2);
|
|
185
|
-
}), 128))
|
|
186
|
-
], 2)
|
|
187
|
-
]);
|
|
188
|
-
}
|
|
189
|
-
const lt = /* @__PURE__ */ H(E, [["render", st], ["__scopeId", "data-v-5611fa5f"]]);
|
|
190
|
-
export {
|
|
191
|
-
lt as default
|
|
192
|
-
};
|