@opengis/admin 0.1.77 → 0.1.78
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{IconChevronDown-C7p-qa08.js → IconChevronDown-DWLdkAUG.js} +1 -1
- package/dist/{add-page-BjxUl0Xb.js → add-page-GDPnGgQK.js} +1 -1
- package/dist/{admin-interface-hP6bBpCA.js → admin-interface-DOqhM3SD.js} +2 -2
- package/dist/{admin-view-Bg210Kja.js → admin-view-xnJ3u3oI.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +39 -23
- package/dist/{card-page-DrVSEjOf.js → card-page-DhYFr0FI.js} +52 -50
- package/dist/{card-view-CrrcS8Wm.js → card-view-CuKF08UR.js} +1 -1
- package/dist/{edit-page-CJxp0cdD.js → edit-page-J0eDzIuJ.js} +1 -1
- package/dist/{import-file-L1iBMu59.js → import-file-REG5YZVe.js} +4893 -4708
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/server/plugins/hook.js +52 -52
@@ -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
|
1
|
+
import { g as V, h as z, _ as A, u as L, a as q } from "./import-file-REG5YZVe.js";
|
2
|
+
import { computed as B, resolveComponent as R, openBlock as r, createElementBlock as s, createElementVNode as d, toDisplayString as H, createVNode as N, withCtx as E, createTextVNode as S, createBlock as T, createCommentVNode as u, normalizeClass as D, Fragment as C, renderList as j, resolveDynamicComponent as i } 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: {
|
@@ -21,17 +21,17 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
21
21
|
}
|
22
22
|
);
|
23
23
|
return (x, g) => {
|
24
|
-
const
|
24
|
+
const k = R("router-link");
|
25
25
|
return r(), s("div", G, [
|
26
26
|
d("div", null, [
|
27
27
|
d("button", {
|
28
28
|
onClick: t,
|
29
29
|
class: "text-sm h-[20px] text-blue-600 font-medium hover:border-b-2 hover:border-b-blue-500"
|
30
30
|
}, " До таблиці "),
|
31
|
-
d("h2", O,
|
31
|
+
d("h2", O, H(n.title), 1)
|
32
32
|
]),
|
33
33
|
d("div", F, [
|
34
|
-
N(
|
34
|
+
N(k, {
|
35
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
|
}, {
|
@@ -63,14 +63,14 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
63
63
|
return c || this.$router.replace("/404"), c == null ? void 0 : c.path;
|
64
64
|
},
|
65
65
|
getTitle() {
|
66
|
-
var n, c, a, l, t, p, x, g,
|
66
|
+
var n, c, a, l, t, p, x, g, k, e, f, M, o, w, _;
|
67
67
|
if ((a = (c = (n = this.objectData) == null ? void 0 : n.rows) == null ? void 0 : c[0]) != null && a.name)
|
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 = (
|
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 = (k = (g = this.objectData) == null ? void 0 : g.rows) == null ? void 0 : k[0]) == null ? void 0 : e.name : ((w = (o = (M = (f = this.objectData) == null ? void 0 : f.rows) == null ? void 0 : M[0]) == null ? void 0 : o.name) == null ? void 0 : w.slice(0, 35)) + " ...";
|
69
69
|
{
|
70
|
-
const h = (
|
70
|
+
const h = (_ = this.flattenMenu(L.value)) == null ? void 0 : _.find(
|
71
71
|
(b) => {
|
72
|
-
var
|
73
|
-
return (b == null ? void 0 : b.table) === ((
|
72
|
+
var y, v;
|
73
|
+
return (b == null ? void 0 : b.table) === ((v = (y = this.$route) == null ? void 0 : y.params) == null ? void 0 : v.table);
|
74
74
|
}
|
75
75
|
);
|
76
76
|
return h == null ? void 0 : h.ua;
|
@@ -104,12 +104,14 @@ 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, l, t, p, x, g,
|
107
|
+
var n, c, a, l, t, p, x, g, k;
|
108
108
|
if ((c = (n = this.$route) == null ? void 0 : n.query) != null && c.tab)
|
109
109
|
this.component = (l = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : l.tab;
|
110
110
|
else {
|
111
|
-
const e = (p = (t = this.objectData) == null ? void 0 : t.panels) == null ? void 0 : p.find(
|
112
|
-
|
111
|
+
const e = (p = (t = this.objectData) == null ? void 0 : t.panels) == null ? void 0 : p.find(
|
112
|
+
(f) => (f == null ? void 0 : f.type) === "tabs" || (f == null ? void 0 : f.type) === "vertical-tabs"
|
113
|
+
);
|
114
|
+
(x = e == null ? void 0 : e.items) != null && x.length && (this.component = ((g = e.items[0]) == null ? void 0 : g.component) || ((k = e.items[0]) == null ? void 0 : k.name));
|
113
115
|
}
|
114
116
|
},
|
115
117
|
flattenMenu(n) {
|
@@ -154,10 +156,10 @@ const G = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
154
156
|
class: "p-[20px] border-t"
|
155
157
|
}, ho = ["innerHTML"];
|
156
158
|
function bo(n, c, a, l, t, p) {
|
157
|
-
var g,
|
159
|
+
var g, k;
|
158
160
|
const x = R("AdminCardHeader");
|
159
161
|
return r(), s("div", $, [
|
160
|
-
((g = t.objectData) == null ? void 0 : g.isHeader) !== !1 ? (r(),
|
162
|
+
((g = t.objectData) == null ? void 0 : g.isHeader) !== !1 ? (r(), T(x, {
|
161
163
|
key: 0,
|
162
164
|
title: p.getTitle,
|
163
165
|
"get-route": p.getRoute
|
@@ -165,69 +167,69 @@ function bo(n, c, a, l, t, p) {
|
|
165
167
|
d("div", {
|
166
168
|
class: D(["grid gap-[20px]", p.getGridClass()])
|
167
169
|
}, [
|
168
|
-
(r(!0), s(
|
169
|
-
var
|
170
|
+
(r(!0), s(C, null, j((k = t.objectData) == null ? void 0 : k.panels, (e, f) => {
|
171
|
+
var M;
|
170
172
|
return r(), s("div", {
|
171
|
-
key:
|
173
|
+
key: f,
|
172
174
|
class: D(p.getColClass(e.col))
|
173
175
|
}, [
|
174
176
|
e != null && e.name ? (r(), s("div", J, [
|
175
|
-
d("h2", K,
|
177
|
+
d("h2", K, H((e == null ? void 0 : e.title) || "Панель"), 1),
|
176
178
|
d("div", {
|
177
179
|
class: "p-[20px] border-t",
|
178
|
-
innerHTML: (
|
180
|
+
innerHTML: (M = t.objectData) == null ? void 0 : M.data[e == null ? void 0 : e.name]
|
179
181
|
}, null, 8, Q)
|
180
182
|
])) : e.type === "container" ? (r(), s("div", U, [
|
181
|
-
(r(!0), s(
|
182
|
-
var
|
183
|
+
(r(!0), s(C, null, j(e.items, (o, w) => {
|
184
|
+
var _, h, b, y, v;
|
183
185
|
return r(), s("div", {
|
184
|
-
key:
|
186
|
+
key: w,
|
185
187
|
class: D([{ "mb-[20px]": e.items.length > 1 }, "bg-white border rounded-xl"])
|
186
188
|
}, [
|
187
|
-
o != null && o.title ? (r(), s("h2", W,
|
189
|
+
o != null && o.title ? (r(), s("h2", W, H((o == null ? void 0 : o.title) || "Панель"), 1)) : u("", !0),
|
188
190
|
o != null && o.component ? (r(), s("div", {
|
189
191
|
key: 1,
|
190
192
|
class: D(["p-[20px]", { "border-t": o == null ? void 0 : o.title }])
|
191
193
|
}, [
|
192
|
-
(r(),
|
193
|
-
geometry: (h = (
|
194
|
+
(r(), T(i(o.component), {
|
195
|
+
geometry: (h = (_ = t.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : h.geom,
|
194
196
|
zoom: 16,
|
195
|
-
id: (
|
197
|
+
id: (y = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : y.id
|
196
198
|
}, null, 8, ["geometry", "id"]))
|
197
199
|
], 2)) : u("", !0),
|
198
200
|
o != null && o.name ? (r(), s("div", X, [
|
199
201
|
d("div", {
|
200
|
-
innerHTML: (
|
202
|
+
innerHTML: (v = t.objectData) == null ? void 0 : v.data[o == null ? void 0 : o.name]
|
201
203
|
}, null, 8, Y)
|
202
204
|
])) : u("", !0)
|
203
205
|
], 2);
|
204
206
|
}), 128))
|
205
207
|
])) : u("", !0),
|
206
|
-
(e == null ? void 0 : e.type) === "tabs" ? (r(), s(
|
208
|
+
(e == null ? void 0 : e.type) === "tabs" ? (r(), s(C, { key: 2 }, [
|
207
209
|
d("nav", Z, [
|
208
|
-
(r(!0), s(
|
210
|
+
(r(!0), s(C, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
|
209
211
|
key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
|
210
|
-
onClick: (
|
212
|
+
onClick: (w) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
|
211
213
|
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
214
|
" 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
215
|
"": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
|
214
216
|
}])
|
215
|
-
},
|
217
|
+
}, H(o == null ? void 0 : o.title), 11, m))), 128))
|
216
218
|
]),
|
217
|
-
(r(!0), s(
|
218
|
-
var
|
219
|
-
return r(), s(
|
219
|
+
(r(!0), s(C, null, j(e.items, (o, w) => {
|
220
|
+
var _, h, b, y, v;
|
221
|
+
return r(), s(C, { key: w }, [
|
220
222
|
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", oo, [
|
221
223
|
o != null && o.component ? (r(), s("div", eo, [
|
222
|
-
(r(),
|
223
|
-
geometry: (h = (
|
224
|
+
(r(), T(i(o.component), {
|
225
|
+
geometry: (h = (_ = t.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : h.geom,
|
224
226
|
zoom: 16,
|
225
|
-
id: (
|
227
|
+
id: (y = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : y.id
|
226
228
|
}, null, 8, ["geometry", "id"]))
|
227
229
|
])) : u("", !0),
|
228
230
|
o != null && o.name ? (r(), s("div", to, [
|
229
231
|
d("div", {
|
230
|
-
innerHTML: (
|
232
|
+
innerHTML: (v = t.objectData) == null ? void 0 : v.data[o == null ? void 0 : o.name]
|
231
233
|
}, null, 8, ro)
|
232
234
|
])) : u("", !0)
|
233
235
|
])) : u("", !0)
|
@@ -236,30 +238,30 @@ function bo(n, c, a, l, t, p) {
|
|
236
238
|
], 64)) : u("", !0),
|
237
239
|
(e == null ? void 0 : e.type) === "vertical-tabs" ? (r(), s("div", no, [
|
238
240
|
d("nav", so, [
|
239
|
-
(r(!0), s(
|
241
|
+
(r(!0), s(C, null, j(e == null ? void 0 : e.items, (o) => (r(), s("button", {
|
240
242
|
key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
|
241
|
-
onClick: (
|
243
|
+
onClick: (w) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
|
242
244
|
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
245
|
"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
246
|
"text-gray-500": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
|
245
247
|
}])
|
246
|
-
},
|
248
|
+
}, H(o == null ? void 0 : o.title), 11, co))), 128))
|
247
249
|
]),
|
248
250
|
d("div", ao, [
|
249
|
-
(r(!0), s(
|
250
|
-
var
|
251
|
-
return r(), s(
|
251
|
+
(r(!0), s(C, null, j(e.items, (o, w) => {
|
252
|
+
var _, h, b, y, v;
|
253
|
+
return r(), s(C, { key: w }, [
|
252
254
|
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (r(), s("div", lo, [
|
253
255
|
o != null && o.component ? (r(), s("div", uo, [
|
254
|
-
(r(),
|
255
|
-
geometry: (h = (
|
256
|
+
(r(), T(i(o.component), {
|
257
|
+
geometry: (h = (_ = t.objectData) == null ? void 0 : _.rows[0]) == null ? void 0 : h.geom,
|
256
258
|
zoom: 16,
|
257
|
-
id: (
|
259
|
+
id: (y = (b = n.$route) == null ? void 0 : b.params) == null ? void 0 : y.id
|
258
260
|
}, null, 8, ["geometry", "id"]))
|
259
261
|
])) : u("", !0),
|
260
262
|
o != null && o.name ? (r(), s("div", po, [
|
261
263
|
d("div", {
|
262
|
-
innerHTML: (
|
264
|
+
innerHTML: (v = t.objectData) == null ? void 0 : v.data[o == null ? void 0 : o.name]
|
263
265
|
}, null, 8, ho)
|
264
266
|
])) : u("", !0)
|
265
267
|
])) : u("", !0)
|
@@ -272,7 +274,7 @@ function bo(n, c, a, l, t, p) {
|
|
272
274
|
], 2)
|
273
275
|
]);
|
274
276
|
}
|
275
|
-
const fo = /* @__PURE__ */ A(P, [["render", bo], ["__scopeId", "data-v-
|
277
|
+
const fo = /* @__PURE__ */ A(P, [["render", bo], ["__scopeId", "data-v-7bc72f0a"]]);
|
276
278
|
export {
|
277
279
|
fo as default
|
278
280
|
};
|
@@ -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-REG5YZVe.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() {
|