@opengis/admin 0.1.57 → 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-ChIfqEIA.js → add-page-BOXd-uV_.js} +1 -1
- package/dist/{admin-interface-DjKoGiLz.js → admin-interface-DbfKIAnw.js} +216 -212
- package/dist/{admin-view-CoSA8JYC.js → admin-view-DDDd_P1v.js} +32 -44
- package/dist/admin.js +2 -2
- package/dist/admin.umd.cjs +47 -47
- package/dist/card-page-Bq7fUm5C.js +230 -0
- package/dist/{card-view-g2LiFVJC.js → card-view-NLu0N8TA.js} +1 -1
- package/dist/{edit-page-CnDwsZCs.js → edit-page-z7ozrw2C.js} +1 -1
- package/dist/{import-file-BRMqCIEX.js → import-file-BBA7riUK.js} +2425 -2424
- 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
- package/dist/card-page-mrDH9Sn9.js +0 -200
@@ -1,200 +0,0 @@
|
|
1
|
-
import { _ as V, u as $, a as z } from "./import-file-BRMqCIEX.js";
|
2
|
-
import { resolveComponent as N, openBlock as n, createElementBlock as c, createElementVNode as d, toDisplayString as C, createVNode as m, withCtx as q, createTextVNode as B, normalizeClass as T, Fragment as k, renderList as M, createBlock as L, resolveDynamicComponent as H, createCommentVNode as v } from "vue";
|
3
|
-
const E = {
|
4
|
-
data() {
|
5
|
-
return {
|
6
|
-
objectData: null,
|
7
|
-
component: ""
|
8
|
-
};
|
9
|
-
},
|
10
|
-
computed: {
|
11
|
-
getRoute() {
|
12
|
-
const t = this.flattenMenu($.value);
|
13
|
-
t != null && t.length || this.$router.replace("/404");
|
14
|
-
const r = t == null ? void 0 : t.find((a) => {
|
15
|
-
var l, s;
|
16
|
-
return (a == null ? void 0 : a.table) == ((s = (l = this.$route) == null ? void 0 : l.params) == null ? void 0 : s.table);
|
17
|
-
});
|
18
|
-
return r || this.$router.replace("/404"), r == null ? void 0 : r.path;
|
19
|
-
},
|
20
|
-
getTitle() {
|
21
|
-
var t, r, a, l, s, h, i, x, g, u, o, j, w, e, y;
|
22
|
-
if ((a = (r = (t = this.objectData) == null ? void 0 : t.rows) == null ? void 0 : r[0]) != null && a.name)
|
23
|
-
return ((i = (h = (s = (l = this.objectData) == null ? void 0 : l.rows) == null ? void 0 : s[0]) == null ? void 0 : h.name) == null ? void 0 : i.length) < 35 ? (u = (g = (x = this.objectData) == null ? void 0 : x.rows) == null ? void 0 : g[0]) == null ? void 0 : u.name : ((e = (w = (j = (o = this.objectData) == null ? void 0 : o.rows) == null ? void 0 : j[0]) == null ? void 0 : w.name) == null ? void 0 : e.slice(0, 35)) + " ...";
|
24
|
-
{
|
25
|
-
const b = (y = this.flattenMenu($.value)) == null ? void 0 : y.find(
|
26
|
-
(p) => {
|
27
|
-
var f, _;
|
28
|
-
return (p == null ? void 0 : p.table) === ((_ = (f = this.$route) == null ? void 0 : f.params) == null ? void 0 : _.table);
|
29
|
-
}
|
30
|
-
);
|
31
|
-
return b == null ? void 0 : b.ua;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
},
|
35
|
-
async mounted() {
|
36
|
-
await this.getObjectData(), await this.checkActiveComponent();
|
37
|
-
},
|
38
|
-
watch: {
|
39
|
-
component(t) {
|
40
|
-
this.$router.replace({ ...this.$route, query: { tab: t } });
|
41
|
-
}
|
42
|
-
},
|
43
|
-
methods: {
|
44
|
-
async getObjectData() {
|
45
|
-
var a;
|
46
|
-
const { table: t, id: r } = (a = this.$route) == null ? void 0 : a.params;
|
47
|
-
(!t || !r) && this.$router.replace("/404");
|
48
|
-
try {
|
49
|
-
const { data: l } = await z.get(`/api/table-data/${t}/${r}`);
|
50
|
-
this.objectData = l;
|
51
|
-
} catch (l) {
|
52
|
-
console.error(l);
|
53
|
-
}
|
54
|
-
},
|
55
|
-
getColClass(t) {
|
56
|
-
return `col-span-${t || 12}`;
|
57
|
-
},
|
58
|
-
getGridClass() {
|
59
|
-
return "grid-cols-12";
|
60
|
-
},
|
61
|
-
checkActiveComponent() {
|
62
|
-
var t, r, a, l, s, h, i, x, g;
|
63
|
-
if ((r = (t = this.$route) == null ? void 0 : t.query) != null && r.tab)
|
64
|
-
this.component = (l = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : l.tab;
|
65
|
-
else {
|
66
|
-
const u = (h = (s = this.objectData) == null ? void 0 : s.panels) == null ? void 0 : h.find((o) => (o == null ? void 0 : o.type) === "tabs");
|
67
|
-
(i = u == null ? void 0 : u.items) != null && i.length && (this.component = ((x = u.items[0]) == null ? void 0 : x.component) || ((g = u.items[0]) == null ? void 0 : g.name));
|
68
|
-
}
|
69
|
-
},
|
70
|
-
flattenMenu(t) {
|
71
|
-
const r = [];
|
72
|
-
return t.forEach((a) => {
|
73
|
-
a.menu ? r.push(...this.flattenMenu(a.menu)) : r.push(a);
|
74
|
-
}), r;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
}, A = {
|
78
|
-
style: { width: "calc(100vw - 260px)", height: "calc(100vh - 60px)" },
|
79
|
-
class: "p-4 overflow-y-auto bg-gray-50"
|
80
|
-
}, G = { class: "h-[76px] bg-gray-50 flex items-center justify-between pl-[15px]" }, O = { class: "" }, R = { class: "text-lg font-semibold md:text-xl text-stone-800 dark:text-neutral-200" }, F = { class: "flex items-center gap-[6px]" }, I = {
|
81
|
-
key: 0,
|
82
|
-
class: "bg-white border rounded-xl"
|
83
|
-
}, P = { class: "p-[10px] pl-[20px] text-xl" }, S = ["innerHTML"], J = { key: 1 }, K = { class: "p-[10px] pl-[20px] text-xl" }, Q = {
|
84
|
-
key: 0,
|
85
|
-
class: "p-[20px] border-t"
|
86
|
-
}, U = {
|
87
|
-
key: 1,
|
88
|
-
class: "p-[20px] border-t"
|
89
|
-
}, W = ["innerHTML"], X = { class: "flex space-x-1 w-full bg-white border border-b-0 rounded-tr-xl rounded-tl-xl h-[60px] items-center pl-[20px]" }, Y = ["onClick"], Z = {
|
90
|
-
key: 0,
|
91
|
-
class: "bg-white border border-t-0 rounded-bl-xl rounded-br-xl"
|
92
|
-
}, ee = {
|
93
|
-
key: 0,
|
94
|
-
class: "p-[20px] border-t"
|
95
|
-
}, te = {
|
96
|
-
key: 1,
|
97
|
-
class: "p-[20px] border-t"
|
98
|
-
}, oe = ["innerHTML"];
|
99
|
-
function re(t, r, a, l, s, h) {
|
100
|
-
var x, g, u;
|
101
|
-
const i = N("router-link");
|
102
|
-
return n(), c("div", A, [
|
103
|
-
d("div", G, [
|
104
|
-
d("div", O, [
|
105
|
-
d("button", {
|
106
|
-
onClick: r[0] || (r[0] = (o) => t.$router.back()),
|
107
|
-
class: "text-sm h-[20px] text-blue-600 font-medium hover:border-b hover:border-b-2 hover:border-b-blue-500"
|
108
|
-
}, " До таблиці "),
|
109
|
-
d("h2", R, C(h.getTitle), 1)
|
110
|
-
]),
|
111
|
-
d("div", F, [
|
112
|
-
m(i, {
|
113
|
-
to: `/edit?table=${h.getRoute}&id=${(g = (x = t.$route) == null ? void 0 : x.params) == null ? void 0 : g.id}`,
|
114
|
-
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"
|
115
|
-
}, {
|
116
|
-
default: q(() => r[1] || (r[1] = [
|
117
|
-
B(" Редагувати ")
|
118
|
-
])),
|
119
|
-
_: 1
|
120
|
-
}, 8, ["to"])
|
121
|
-
])
|
122
|
-
]),
|
123
|
-
d("div", {
|
124
|
-
class: T(["grid gap-[20px]", h.getGridClass()])
|
125
|
-
}, [
|
126
|
-
(n(!0), c(k, null, M((u = s.objectData) == null ? void 0 : u.panels, (o, j) => {
|
127
|
-
var w;
|
128
|
-
return n(), c("div", {
|
129
|
-
key: j,
|
130
|
-
class: T(h.getColClass(o.col))
|
131
|
-
}, [
|
132
|
-
o != null && o.name ? (n(), c("div", I, [
|
133
|
-
d("h2", P, C((o == null ? void 0 : o.title) || "Панель"), 1),
|
134
|
-
d("div", {
|
135
|
-
class: "p-[20px] border-t",
|
136
|
-
innerHTML: (w = s.objectData) == null ? void 0 : w.data[o == null ? void 0 : o.name]
|
137
|
-
}, null, 8, S)
|
138
|
-
])) : o.type === "container" ? (n(), c("div", J, [
|
139
|
-
(n(!0), c(k, null, M(o.items, (e, y) => {
|
140
|
-
var b, p, f, _, D;
|
141
|
-
return n(), c("div", {
|
142
|
-
key: y,
|
143
|
-
class: "border rounded-xl bg-white mb-[20px]"
|
144
|
-
}, [
|
145
|
-
d("h2", K, C((e == null ? void 0 : e.title) || "Панель"), 1),
|
146
|
-
e != null && e.component ? (n(), c("div", Q, [
|
147
|
-
(n(), L(H(e.component), {
|
148
|
-
geometry: (p = (b = s.objectData) == null ? void 0 : b.rows[0]) == null ? void 0 : p.geom,
|
149
|
-
zoom: 16,
|
150
|
-
id: (_ = (f = t.$route) == null ? void 0 : f.params) == null ? void 0 : _.id
|
151
|
-
}, null, 8, ["geometry", "id"]))
|
152
|
-
])) : v("", !0),
|
153
|
-
e != null && e.name ? (n(), c("div", U, [
|
154
|
-
d("div", {
|
155
|
-
innerHTML: (D = s.objectData) == null ? void 0 : D.data[e == null ? void 0 : e.name]
|
156
|
-
}, null, 8, W)
|
157
|
-
])) : v("", !0)
|
158
|
-
]);
|
159
|
-
}), 128))
|
160
|
-
])) : v("", !0),
|
161
|
-
(o == null ? void 0 : o.type) === "tabs" ? (n(), c(k, { key: 2 }, [
|
162
|
-
d("nav", X, [
|
163
|
-
(n(!0), c(k, null, M(o == null ? void 0 : o.items, (e) => (n(), c("button", {
|
164
|
-
key: (e == null ? void 0 : e.name) || (e == null ? void 0 : e.component),
|
165
|
-
onClick: (y) => s.component = (e == null ? void 0 : e.component) || (e == null ? void 0 : e.name),
|
166
|
-
class: T(["px-2.5 h-[30px] py-1.5 relative inline-flex items-center gap-x-2 text-gray-500 hover:bg-gray-100 focus:bg-gray-100 hover:text-gray-800 text-sm whitespace-nowrap rounded-lg focus:outline-none", {
|
167
|
-
" font-semibold after:absolute after:bottom-[-14px] after:left-2.5 after:right-2.5 after:z-10 after:h-0.5 after:bg-gray-800": s.component === (e == null ? void 0 : e.component) || s.component === (e == null ? void 0 : e.name),
|
168
|
-
"": s.component !== (e == null ? void 0 : e.component) && s.component !== (e == null ? void 0 : e.name)
|
169
|
-
}])
|
170
|
-
}, C(e == null ? void 0 : e.title), 11, Y))), 128))
|
171
|
-
]),
|
172
|
-
(n(!0), c(k, null, M(o.items, (e, y) => {
|
173
|
-
var b, p, f, _, D;
|
174
|
-
return n(), c(k, { key: y }, [
|
175
|
-
s.component === (e == null ? void 0 : e.component) || s.component === (e == null ? void 0 : e.name) ? (n(), c("div", Z, [
|
176
|
-
e != null && e.component ? (n(), c("div", ee, [
|
177
|
-
(n(), L(H(e.component), {
|
178
|
-
geometry: (p = (b = s.objectData) == null ? void 0 : b.rows[0]) == null ? void 0 : p.geom,
|
179
|
-
zoom: 16,
|
180
|
-
id: (_ = (f = t.$route) == null ? void 0 : f.params) == null ? void 0 : _.id
|
181
|
-
}, null, 8, ["geometry", "id"]))
|
182
|
-
])) : v("", !0),
|
183
|
-
e != null && e.name ? (n(), c("div", te, [
|
184
|
-
d("div", {
|
185
|
-
innerHTML: (D = s.objectData) == null ? void 0 : D.data[e == null ? void 0 : e.name]
|
186
|
-
}, null, 8, oe)
|
187
|
-
])) : v("", !0)
|
188
|
-
])) : v("", !0)
|
189
|
-
], 64);
|
190
|
-
}), 128))
|
191
|
-
], 64)) : v("", !0)
|
192
|
-
], 2);
|
193
|
-
}), 128))
|
194
|
-
], 2)
|
195
|
-
]);
|
196
|
-
}
|
197
|
-
const ae = /* @__PURE__ */ V(E, [["render", re], ["__scopeId", "data-v-e9d5b2dd"]]);
|
198
|
-
export {
|
199
|
-
ae as default
|
200
|
-
};
|