@opengis/admin 0.1.73 → 0.1.75
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{IconChevronDown-Bo0VyMHX.js → IconChevronDown-DpFXvgwL.js} +1 -1
- package/dist/{add-page-CyIBxGV_.js → add-page-B34T9kD5.js} +33 -30
- package/dist/{admin-interface-Dwr6luwW.js → admin-interface-B7RH9jC0.js} +320 -314
- package/dist/{admin-view-CFzoulzN.js → admin-view-CB6GnWqy.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +14 -14
- package/dist/{card-page-GyqV7foK.js → card-page-B2ZFa7Pi.js} +65 -65
- package/dist/{card-view-DLrRTkKE.js → card-view-BRWlfh-Z.js} +1 -1
- package/dist/{edit-page-DUBOxKSi.js → edit-page-BUhpjmtA.js} +1 -1
- package/dist/{import-file-BvAgSmhY.js → import-file-C08TESFR.js} +1828 -1837
- package/dist/style.css +1 -1
- package/module/settings/form/admin.users.form.json +4 -1
- package/package.json +2 -2
@@ -1,5 +1,5 @@
|
|
1
|
-
import { g as V, h as z, _ as A, u as L, a as q } from "./import-file-
|
2
|
-
import { computed as B, resolveComponent as R, openBlock as r, createElementBlock as s, createElementVNode as d, toDisplayString as M, createVNode as N, withCtx as E, createTextVNode as S, createBlock as H, createCommentVNode as
|
1
|
+
import { g as V, h as z, _ as A, u as L, a as q } from "./import-file-C08TESFR.js";
|
2
|
+
import { computed as B, resolveComponent as R, openBlock as r, createElementBlock as s, createElementVNode as d, toDisplayString as M, createVNode as N, withCtx as E, createTextVNode as S, createBlock as H, createCommentVNode as u, normalizeClass as D, Fragment as w, renderList as j, resolveDynamicComponent as T } from "vue";
|
3
3
|
const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justify-between px-[20px] mb-[16px]" }, O = { class: "text-lg font-semibold md:text-xl text-stone-800 dark:text-neutral-200" }, F = { class: "flex items-center gap-[6px]" }, I = {
|
4
4
|
__name: "admin-card-header",
|
5
5
|
props: {
|
@@ -12,12 +12,12 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
12
12
|
}
|
13
13
|
},
|
14
14
|
setup(n) {
|
15
|
-
const c = n, a = V(),
|
15
|
+
const c = n, a = V(), l = z(), t = () => {
|
16
16
|
a.back();
|
17
|
-
},
|
17
|
+
}, p = B(
|
18
18
|
() => {
|
19
19
|
var x;
|
20
|
-
return `/edit?table=${c.getRoute}&id=${(x =
|
20
|
+
return `/edit?table=${c.getRoute}&id=${(x = l == null ? void 0 : l.params) == null ? void 0 : x.id}`;
|
21
21
|
}
|
22
22
|
);
|
23
23
|
return (x, g) => {
|
@@ -32,7 +32,7 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
32
32
|
]),
|
33
33
|
d("div", F, [
|
34
34
|
N(v, {
|
35
|
-
to:
|
35
|
+
to: p.value,
|
36
36
|
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"
|
37
37
|
}, {
|
38
38
|
default: E(() => g[0] || (g[0] = [
|
@@ -57,23 +57,23 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
57
57
|
const n = this.flattenMenu(L.value);
|
58
58
|
n != null && n.length || this.$router.replace("/404");
|
59
59
|
const c = n == null ? void 0 : n.find((a) => {
|
60
|
-
var
|
61
|
-
return (a == null ? void 0 : a.table) == ((t = (
|
60
|
+
var l, t;
|
61
|
+
return (a == null ? void 0 : a.table) == ((t = (l = this.$route) == null ? void 0 : l.params) == null ? void 0 : t.table);
|
62
62
|
});
|
63
63
|
return c || this.$router.replace("/404"), c == null ? void 0 : c.path;
|
64
64
|
},
|
65
65
|
getTitle() {
|
66
|
-
var n, c, a,
|
66
|
+
var n, c, a, l, t, p, x, g, v, e, C, i, o, k, f;
|
67
67
|
if ((a = (c = (n = this.objectData) == null ? void 0 : n.rows) == null ? void 0 : c[0]) != null && a.name)
|
68
|
-
return ((x = (
|
68
|
+
return ((x = (p = (t = (l = this.objectData) == null ? void 0 : l.rows) == null ? void 0 : t[0]) == null ? void 0 : p.name) == null ? void 0 : x.length) < 35 ? (e = (v = (g = this.objectData) == null ? void 0 : g.rows) == null ? void 0 : v[0]) == null ? void 0 : e.name : ((k = (o = (i = (C = this.objectData) == null ? void 0 : C.rows) == null ? void 0 : i[0]) == null ? void 0 : o.name) == null ? void 0 : k.slice(0, 35)) + " ...";
|
69
69
|
{
|
70
|
-
const
|
70
|
+
const h = (f = this.flattenMenu(L.value)) == null ? void 0 : f.find(
|
71
71
|
(b) => {
|
72
72
|
var _, y;
|
73
73
|
return (b == null ? void 0 : b.table) === ((y = (_ = this.$route) == null ? void 0 : _.params) == null ? void 0 : y.table);
|
74
74
|
}
|
75
75
|
);
|
76
|
-
return
|
76
|
+
return h == null ? void 0 : h.ua;
|
77
77
|
}
|
78
78
|
}
|
79
79
|
},
|
@@ -91,10 +91,10 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
91
91
|
const { table: n, id: c } = (a = this.$route) == null ? void 0 : a.params;
|
92
92
|
(!n || !c) && this.$router.replace("/404");
|
93
93
|
try {
|
94
|
-
const { data:
|
95
|
-
this.objectData =
|
96
|
-
} catch (
|
97
|
-
console.error(
|
94
|
+
const { data: l } = await q.get(`/api/table-data/${n}/${c}`);
|
95
|
+
this.objectData = l;
|
96
|
+
} catch (l) {
|
97
|
+
console.error(l);
|
98
98
|
}
|
99
99
|
},
|
100
100
|
getColClass(n) {
|
@@ -104,11 +104,11 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
104
104
|
return "grid-cols-12";
|
105
105
|
},
|
106
106
|
checkActiveComponent() {
|
107
|
-
var n, c, a,
|
107
|
+
var n, c, a, l, t, p, x, g, v;
|
108
108
|
if ((c = (n = this.$route) == null ? void 0 : n.query) != null && c.tab)
|
109
|
-
this.component = (
|
109
|
+
this.component = (l = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : l.tab;
|
110
110
|
else {
|
111
|
-
const e = (
|
111
|
+
const e = (p = (t = this.objectData) == null ? void 0 : t.panels) == null ? void 0 : p.find((C) => (C == null ? void 0 : C.type) === "tabs");
|
112
112
|
(x = e == null ? void 0 : e.items) != null && x.length && (this.component = ((g = e.items[0]) == null ? void 0 : g.component) || ((v = e.items[0]) == null ? void 0 : v.name));
|
113
113
|
}
|
114
114
|
},
|
@@ -143,136 +143,136 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
143
143
|
}, ro = ["innerHTML"], no = {
|
144
144
|
key: 3,
|
145
145
|
class: "flex"
|
146
|
-
}, so = { class: "flex flex-col space-y-2 w-[200px] border rounded-xl mr-4 h-auto items-start pl-[10px] bg-white py-[20px]" }, co = ["onClick"], ao = { class: "flex-grow" },
|
146
|
+
}, so = { class: "flex flex-col space-y-2 w-[200px] border rounded-xl mr-4 h-auto items-start pl-[10px] bg-white py-[20px]" }, co = ["onClick"], ao = { class: "flex-grow" }, lo = {
|
147
147
|
key: 0,
|
148
148
|
class: "h-full bg-white border rounded-xl"
|
149
|
-
},
|
149
|
+
}, uo = {
|
150
150
|
key: 0,
|
151
151
|
class: "p-[20px]"
|
152
|
-
},
|
152
|
+
}, po = {
|
153
153
|
key: 1,
|
154
154
|
class: "p-[20px] border-t"
|
155
|
-
},
|
156
|
-
function bo(n, c, a,
|
155
|
+
}, ho = ["innerHTML"];
|
156
|
+
function bo(n, c, a, l, t, p) {
|
157
157
|
var g, v;
|
158
158
|
const x = R("AdminCardHeader");
|
159
159
|
return r(), s("div", $, [
|
160
160
|
((g = t.objectData) == null ? void 0 : g.isHeader) !== !1 ? (r(), H(x, {
|
161
161
|
key: 0,
|
162
|
-
title:
|
163
|
-
"get-route":
|
164
|
-
}, null, 8, ["title", "get-route"])) :
|
162
|
+
title: p.getTitle,
|
163
|
+
"get-route": p.getRoute
|
164
|
+
}, null, 8, ["title", "get-route"])) : u("", !0),
|
165
165
|
d("div", {
|
166
|
-
class:
|
166
|
+
class: D(["grid gap-[20px]", p.getGridClass()])
|
167
167
|
}, [
|
168
|
-
(r(!0), s(w, null,
|
169
|
-
var
|
168
|
+
(r(!0), s(w, null, j((v = t.objectData) == null ? void 0 : v.panels, (e, C) => {
|
169
|
+
var i;
|
170
170
|
return r(), s("div", {
|
171
|
-
key:
|
172
|
-
class:
|
171
|
+
key: C,
|
172
|
+
class: D(p.getColClass(e.col))
|
173
173
|
}, [
|
174
174
|
e != null && e.name ? (r(), s("div", J, [
|
175
175
|
d("h2", K, M((e == null ? void 0 : e.title) || "Панель"), 1),
|
176
176
|
d("div", {
|
177
177
|
class: "p-[20px] border-t",
|
178
|
-
innerHTML: (
|
178
|
+
innerHTML: (i = t.objectData) == null ? void 0 : i.data[e == null ? void 0 : e.name]
|
179
179
|
}, null, 8, Q)
|
180
180
|
])) : e.type === "container" ? (r(), s("div", U, [
|
181
|
-
(r(!0), s(w, null,
|
182
|
-
var f,
|
181
|
+
(r(!0), s(w, null, j(e.items, (o, k) => {
|
182
|
+
var f, h, b, _, y;
|
183
183
|
return r(), s("div", {
|
184
184
|
key: k,
|
185
|
-
class:
|
185
|
+
class: D([{ "mb-[20px]": e.items.length > 1 }, "bg-white border rounded-xl"])
|
186
186
|
}, [
|
187
|
-
|
187
|
+
o != null && o.title ? (r(), s("h2", W, M((o == null ? void 0 : o.title) || "Панель"), 1)) : u("", !0),
|
188
188
|
o != null && o.component ? (r(), s("div", {
|
189
189
|
key: 1,
|
190
|
-
class:
|
190
|
+
class: D(["p-[20px]", { "border-t": o == null ? void 0 : o.title }])
|
191
191
|
}, [
|
192
192
|
(r(), H(T(o.component), {
|
193
|
-
geometry: (
|
193
|
+
geometry: (h = (f = t.objectData) == null ? void 0 : f.rows[0]) == null ? void 0 : h.geom,
|
194
194
|
zoom: 16,
|
195
195
|
id: (_ = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : _.id
|
196
196
|
}, null, 8, ["geometry", "id"]))
|
197
|
-
], 2)) :
|
197
|
+
], 2)) : u("", !0),
|
198
198
|
o != null && o.name ? (r(), s("div", X, [
|
199
199
|
d("div", {
|
200
200
|
innerHTML: (y = t.objectData) == null ? void 0 : y.data[o == null ? void 0 : o.name]
|
201
201
|
}, null, 8, Y)
|
202
|
-
])) :
|
202
|
+
])) : u("", !0)
|
203
203
|
], 2);
|
204
204
|
}), 128))
|
205
|
-
])) :
|
205
|
+
])) : u("", !0),
|
206
206
|
(e == null ? void 0 : e.type) === "tabs" ? (r(), s(w, { key: 2 }, [
|
207
207
|
d("nav", Z, [
|
208
|
-
(r(!0), s(w, null,
|
208
|
+
(r(!0), s(w, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
|
209
209
|
key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
|
210
210
|
onClick: (k) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
|
211
|
-
class:
|
211
|
+
class: D(["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", {
|
212
212
|
" 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": t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name),
|
213
213
|
"": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
|
214
214
|
}])
|
215
215
|
}, M(o == null ? void 0 : o.title), 11, m))), 128))
|
216
216
|
]),
|
217
|
-
(r(!0), s(w, null,
|
218
|
-
var f,
|
217
|
+
(r(!0), s(w, null, j(e.items, (o, k) => {
|
218
|
+
var f, h, b, _, y;
|
219
219
|
return r(), s(w, { key: k }, [
|
220
220
|
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", oo, [
|
221
221
|
o != null && o.component ? (r(), s("div", eo, [
|
222
222
|
(r(), H(T(o.component), {
|
223
|
-
geometry: (
|
223
|
+
geometry: (h = (f = t.objectData) == null ? void 0 : f.rows[0]) == null ? void 0 : h.geom,
|
224
224
|
zoom: 16,
|
225
225
|
id: (_ = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : _.id
|
226
226
|
}, null, 8, ["geometry", "id"]))
|
227
|
-
])) :
|
227
|
+
])) : u("", !0),
|
228
228
|
o != null && o.name ? (r(), s("div", to, [
|
229
229
|
d("div", {
|
230
230
|
innerHTML: (y = t.objectData) == null ? void 0 : y.data[o == null ? void 0 : o.name]
|
231
231
|
}, null, 8, ro)
|
232
|
-
])) :
|
233
|
-
])) :
|
232
|
+
])) : u("", !0)
|
233
|
+
])) : u("", !0)
|
234
234
|
], 64);
|
235
235
|
}), 128))
|
236
|
-
], 64)) :
|
236
|
+
], 64)) : u("", !0),
|
237
237
|
(e == null ? void 0 : e.type) === "vertical_tabs" ? (r(), s("div", no, [
|
238
238
|
d("nav", so, [
|
239
|
-
(r(!0), s(w, null,
|
239
|
+
(r(!0), s(w, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
|
240
240
|
key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
|
241
241
|
onClick: (k) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
|
242
|
-
class:
|
242
|
+
class: D(["relative inline-flex items-center w-full py-1 text-sm border-transparent pe-4 gap-x-2 border-e-2 whitespace-nowrap hover:text-blue-600 focus:outline-none focus:text-blue-600", {
|
243
243
|
"font-semibold after:absolute after:top-[0] after:right-[-1px] after:h-full text-blue-600 after:w-[2px] after:bg-blue-600 ": t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name),
|
244
244
|
"text-gray-500": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
|
245
245
|
}])
|
246
246
|
}, M(o == null ? void 0 : o.title), 11, co))), 128))
|
247
247
|
]),
|
248
248
|
d("div", ao, [
|
249
|
-
(r(!0), s(w, null,
|
250
|
-
var f,
|
249
|
+
(r(!0), s(w, null, j(e.items, (o, k) => {
|
250
|
+
var f, h, b, _, y;
|
251
251
|
return r(), s(w, { key: k }, [
|
252
|
-
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div",
|
253
|
-
o != null && o.component ? (r(), s("div",
|
252
|
+
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", lo, [
|
253
|
+
o != null && o.component ? (r(), s("div", uo, [
|
254
254
|
(r(), H(T(o.component), {
|
255
|
-
geometry: (
|
255
|
+
geometry: (h = (f = t.objectData) == null ? void 0 : f.rows[0]) == null ? void 0 : h.geom,
|
256
256
|
zoom: 16,
|
257
257
|
id: (_ = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : _.id
|
258
258
|
}, null, 8, ["geometry", "id"]))
|
259
|
-
])) :
|
260
|
-
o != null && o.name ? (r(), s("div",
|
259
|
+
])) : u("", !0),
|
260
|
+
o != null && o.name ? (r(), s("div", po, [
|
261
261
|
d("div", {
|
262
262
|
innerHTML: (y = t.objectData) == null ? void 0 : y.data[o == null ? void 0 : o.name]
|
263
|
-
}, null, 8,
|
264
|
-
])) :
|
265
|
-
])) :
|
263
|
+
}, null, 8, ho)
|
264
|
+
])) : u("", !0)
|
265
|
+
])) : u("", !0)
|
266
266
|
], 64);
|
267
267
|
}), 128))
|
268
268
|
])
|
269
|
-
])) :
|
269
|
+
])) : u("", !0)
|
270
270
|
], 2);
|
271
271
|
}), 128))
|
272
272
|
], 2)
|
273
273
|
]);
|
274
274
|
}
|
275
|
-
const fo = /* @__PURE__ */ A(P, [["render", bo], ["__scopeId", "data-v-
|
275
|
+
const fo = /* @__PURE__ */ A(P, [["render", bo], ["__scopeId", "data-v-8e82b07c"]]);
|
276
276
|
export {
|
277
277
|
fo as default
|
278
278
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as d, u as m, a as n } from "./import-file-
|
1
|
+
import { _ as d, u as m, a as n } from "./import-file-C08TESFR.js";
|
2
2
|
import { resolveComponent as b, openBlock as u, createElementBlock as h, createElementVNode as a, createBlock as f, createCommentVNode as p } from "vue";
|
3
3
|
const g = {
|
4
4
|
data() {
|