@opengis/admin 0.1.81 → 0.1.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{IconChevronDown-D5JGurpf.js → IconChevronDown-TOHGDzb9.js} +1 -1
- package/dist/{add-page-DjmhHq_I.js → add-page-DVsruEe8.js} +1 -1
- package/dist/{admin-interface-CIA9Y-Dz.js → admin-interface-CqPS5k9y.js} +62 -62
- package/dist/{admin-view-DABvcRfg.js → admin-view-DtZwCxNO.js} +3 -3
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +46 -46
- package/dist/{card-page-B_Vr2qvx.js → card-page-DiSMqrtf.js} +143 -126
- package/dist/{card-view-XmNFtrP8.js → card-view-RC_RStl7.js} +1 -1
- package/dist/{edit-page-ELlQWVFa.js → edit-page-B0syX8OD.js} +1 -1
- package/dist/{import-file-CsnR0UjH.js → import-file-BihjtZo9.js} +5240 -5158
- package/dist/style.css +1 -1
- package/module/settings/cls/core.actions.json +4 -0
- package/package.json +1 -1
- package/plugin.js +2 -0
- package/server/plugins/access/funcs/getAdminAccess.js +15 -0
- package/server/plugins/access/index.mjs +6 -0
- package/server/routes/access/controllers/access.group.js +33 -0
- package/server/routes/access/controllers/access.group.post.js +44 -0
- package/server/routes/access/index.mjs +63 -0
- package/server/routes/data/controllers/cardData.js +6 -4
- package/server/routes/data/controllers/tokenInfo.js +10 -0
- package/server/routes/data/index.mjs +2 -0
- package/utils.js +3 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
import { g as
|
2
|
-
import { getCurrentInstance as
|
3
|
-
const
|
1
|
+
import { g as K, h as Q, _ as U, u as F, r as W, a as X } from "./import-file-BihjtZo9.js";
|
2
|
+
import { getCurrentInstance as J, ref as G, computed as Y, resolveComponent as I, openBlock as e, createElementBlock as r, createElementVNode as D, toDisplayString as E, createBlock as j, resolveDynamicComponent as B, createVNode as Z, withCtx as i, createTextVNode as $, createCommentVNode as y, normalizeClass as z, Fragment as w, renderList as q } from "vue";
|
3
|
+
const m = { class: "h-[76px] bg-white border rounded-xl flex items-center justify-start px-[20px] mb-[16px]" }, oo = { class: "mr-[10px]" }, to = { class: "text-lg font-semibold md:text-xl text-stone-800 dark:text-neutral-200" }, eo = { class: "flex items-center gap-[6px] ml-auto" }, no = { class: "mr-[10px]" }, so = {
|
4
4
|
__name: "admin-card-header",
|
5
5
|
props: {
|
6
6
|
title: {
|
@@ -13,17 +13,17 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
13
13
|
slots: { type: Object }
|
14
14
|
},
|
15
15
|
setup(s) {
|
16
|
-
var n,
|
17
|
-
const { asyncTemplateSlot: a } = (
|
16
|
+
var n, V, C, L, k;
|
17
|
+
const { asyncTemplateSlot: a } = (k = (L = (C = (V = (n = J()) == null ? void 0 : n.appContext) == null ? void 0 : V.app) == null ? void 0 : C.config) == null ? void 0 : L.globalProperties) == null ? void 0 : k.utils, c = s, l = K(), t = Q(), u = G(""), g = G(""), h = () => {
|
18
18
|
l.back();
|
19
|
-
}, f =
|
19
|
+
}, f = Y(
|
20
20
|
() => {
|
21
|
-
var
|
22
|
-
return `/edit?table=${c.getRoute}&id=${(
|
21
|
+
var b;
|
22
|
+
return `/edit?table=${c.getRoute}&id=${(b = t == null ? void 0 : t.params) == null ? void 0 : b.id}`;
|
23
23
|
}
|
24
24
|
), p = () => {
|
25
|
-
var
|
26
|
-
if (!((
|
25
|
+
var b, x, o, _;
|
26
|
+
if (!((b = c.slots) != null && b.panelLeft)) return "div";
|
27
27
|
if ((x = c.slots) != null && x.panelLeft.includes("<")) {
|
28
28
|
const v = a("PanelLeft", (o = c.slots) == null ? void 0 : o.panelLeft, [
|
29
29
|
"name"
|
@@ -32,8 +32,8 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
32
32
|
} else
|
33
33
|
g.value = (_ = c.slots) == null ? void 0 : _.panelLeft;
|
34
34
|
}, d = () => {
|
35
|
-
var
|
36
|
-
if (!((
|
35
|
+
var b, x, o, _;
|
36
|
+
if (!((b = c.slots) != null && b.panelRight)) return "div";
|
37
37
|
if ((x = c.slots) != null && x.panelRight.includes("<")) {
|
38
38
|
const v = a("PanelRight", (o = c.slots) == null ? void 0 : o.panelRight, [
|
39
39
|
"name"
|
@@ -42,27 +42,27 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
42
42
|
} else
|
43
43
|
u.value = (_ = c.slots) == null ? void 0 : _.panelRight;
|
44
44
|
};
|
45
|
-
return p(), d(), (
|
46
|
-
const o =
|
47
|
-
return e(), r("div",
|
48
|
-
|
49
|
-
|
50
|
-
onClick:
|
45
|
+
return p(), d(), (b, x) => {
|
46
|
+
const o = I("router-link");
|
47
|
+
return e(), r("div", m, [
|
48
|
+
D("div", oo, [
|
49
|
+
D("button", {
|
50
|
+
onClick: h,
|
51
51
|
class: "text-sm h-[20px] text-blue-600 font-medium hover:border-b-2 hover:border-b-blue-500"
|
52
52
|
}, " До таблиці "),
|
53
|
-
|
53
|
+
D("h2", to, E(s.title), 1)
|
54
54
|
]),
|
55
|
-
(e(),
|
56
|
-
|
57
|
-
|
58
|
-
(e(),
|
55
|
+
(e(), j(B(g.value))),
|
56
|
+
D("div", eo, [
|
57
|
+
D("div", no, [
|
58
|
+
(e(), j(B(u.value)))
|
59
59
|
]),
|
60
|
-
|
60
|
+
Z(o, {
|
61
61
|
to: f.value,
|
62
62
|
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"
|
63
63
|
}, {
|
64
|
-
default:
|
65
|
-
|
64
|
+
default: i(() => x[0] || (x[0] = [
|
65
|
+
$(" Редагувати ")
|
66
66
|
])),
|
67
67
|
_: 1
|
68
68
|
}, 8, ["to"])
|
@@ -70,22 +70,23 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
70
70
|
]);
|
71
71
|
};
|
72
72
|
}
|
73
|
-
},
|
73
|
+
}, ro = {
|
74
74
|
__name: "admin-card-async-component",
|
75
75
|
props: {
|
76
76
|
slot: String,
|
77
|
-
data: Object
|
77
|
+
data: Object,
|
78
|
+
objectData: Object
|
78
79
|
},
|
79
80
|
setup(s) {
|
80
|
-
var u, g,
|
81
|
-
const { asyncTemplateSlot: a } = (p = (f = (
|
81
|
+
var u, g, h, f, p;
|
82
|
+
const { asyncTemplateSlot: a } = (p = (f = (h = (g = (u = J()) == null ? void 0 : u.appContext) == null ? void 0 : g.app) == null ? void 0 : h.config) == null ? void 0 : f.globalProperties) == null ? void 0 : p.utils, c = G(""), l = s;
|
82
83
|
return (() => {
|
83
84
|
const d = a("CustomComponent", l.slot, ["data"]);
|
84
85
|
c.value = d;
|
85
|
-
})(), (d, n) => (e(),
|
86
|
+
})(), (d, n) => (e(), j(B(c.value), { data: s.objectData }, null, 8, ["data"]));
|
86
87
|
}
|
87
|
-
},
|
88
|
-
components: { AdminCardHeader:
|
88
|
+
}, co = {
|
89
|
+
components: { AdminCardHeader: so, AdminCardAsyncComponent: ro },
|
89
90
|
data() {
|
90
91
|
return {
|
91
92
|
objectData: null,
|
@@ -94,7 +95,7 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
94
95
|
},
|
95
96
|
computed: {
|
96
97
|
getRoute() {
|
97
|
-
const s = this.flattenMenu(
|
98
|
+
const s = this.flattenMenu(F.value);
|
98
99
|
s != null && s.length || this.$router.replace("/404");
|
99
100
|
const a = s == null ? void 0 : s.find((c) => {
|
100
101
|
var l, t;
|
@@ -103,18 +104,21 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
103
104
|
return a || this.$router.replace("/404"), a == null ? void 0 : a.path;
|
104
105
|
},
|
105
106
|
getTitle() {
|
106
|
-
var s, a, c, l, t, u, g,
|
107
|
+
var s, a, c, l, t, u, g, h, f, p, d, n, V, C, L;
|
107
108
|
if ((c = (a = (s = this.objectData) == null ? void 0 : s.rows) == null ? void 0 : a[0]) != null && c.name)
|
108
|
-
return ((g = (u = (t = (l = this.objectData) == null ? void 0 : l.rows) == null ? void 0 : t[0]) == null ? void 0 : u.name) == null ? void 0 : g.length) < 35 ? (p = (f = (
|
109
|
+
return ((g = (u = (t = (l = this.objectData) == null ? void 0 : l.rows) == null ? void 0 : t[0]) == null ? void 0 : u.name) == null ? void 0 : g.length) < 35 ? (p = (f = (h = this.objectData) == null ? void 0 : h.rows) == null ? void 0 : f[0]) == null ? void 0 : p.name : ((C = (V = (n = (d = this.objectData) == null ? void 0 : d.rows) == null ? void 0 : n[0]) == null ? void 0 : V.name) == null ? void 0 : C.slice(0, 35)) + " ...";
|
109
110
|
{
|
110
|
-
const
|
111
|
-
(
|
111
|
+
const k = (L = this.flattenMenu(F.value)) == null ? void 0 : L.find(
|
112
|
+
(b) => {
|
112
113
|
var x, o;
|
113
|
-
return (
|
114
|
+
return (b == null ? void 0 : b.table) === ((o = (x = this.$route) == null ? void 0 : x.params) == null ? void 0 : o.table);
|
114
115
|
}
|
115
116
|
);
|
116
|
-
return
|
117
|
+
return k == null ? void 0 : k.ua;
|
117
118
|
}
|
119
|
+
},
|
120
|
+
reloadPageTrigger() {
|
121
|
+
return W.value;
|
118
122
|
}
|
119
123
|
},
|
120
124
|
async mounted() {
|
@@ -123,6 +127,9 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
123
127
|
watch: {
|
124
128
|
component(s) {
|
125
129
|
this.$router.replace({ ...this.$route, query: { tab: s } });
|
130
|
+
},
|
131
|
+
reloadPageTrigger() {
|
132
|
+
this.getObjectData();
|
126
133
|
}
|
127
134
|
},
|
128
135
|
methods: {
|
@@ -131,7 +138,7 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
131
138
|
const { table: s, id: a } = (c = this.$route) == null ? void 0 : c.params;
|
132
139
|
(!s || !a) && this.$router.replace("/404");
|
133
140
|
try {
|
134
|
-
const { data: l } = await
|
141
|
+
const { data: l } = await X.get(`/api/table-data/${s}/${a}`);
|
135
142
|
this.objectData = l;
|
136
143
|
} catch (l) {
|
137
144
|
console.error(l);
|
@@ -144,14 +151,14 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
144
151
|
return "grid-cols-12";
|
145
152
|
},
|
146
153
|
checkActiveComponent() {
|
147
|
-
var s, a, c, l, t, u, g,
|
154
|
+
var s, a, c, l, t, u, g, h, f;
|
148
155
|
if ((a = (s = this.$route) == null ? void 0 : s.query) != null && a.tab)
|
149
156
|
this.component = (l = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : l.tab;
|
150
157
|
else {
|
151
158
|
const p = (u = (t = this.objectData) == null ? void 0 : t.panels) == null ? void 0 : u.find(
|
152
159
|
(d) => (d == null ? void 0 : d.type) === "tabs" || (d == null ? void 0 : d.type) === "vertical-tabs"
|
153
160
|
);
|
154
|
-
(g = p == null ? void 0 : p.items) != null && g.length && (this.component = ((
|
161
|
+
(g = p == null ? void 0 : p.items) != null && g.length && (this.component = ((h = p.items[0]) == null ? void 0 : h.component) || ((f = p.items[0]) == null ? void 0 : f.name));
|
155
162
|
}
|
156
163
|
},
|
157
164
|
flattenMenu(s) {
|
@@ -161,31 +168,31 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
161
168
|
}), a;
|
162
169
|
}
|
163
170
|
}
|
164
|
-
},
|
171
|
+
}, ao = {
|
165
172
|
style: { width: "calc(100vw - 260px)", height: "calc(100vh - 60px)" },
|
166
173
|
class: "p-4 overflow-y-auto bg-gray-50"
|
167
|
-
},
|
174
|
+
}, lo = {
|
168
175
|
key: 0,
|
169
176
|
class: "bg-white border rounded-xl"
|
170
|
-
},
|
177
|
+
}, uo = { class: "p-[10px] pl-[20px] text-md font-[500]" }, po = ["innerHTML"], bo = { key: 1 }, ho = {
|
171
178
|
key: 0,
|
172
179
|
class: "p-[10px] pl-[20px] text-md font-[500]"
|
173
|
-
},
|
180
|
+
}, go = {
|
174
181
|
key: 2,
|
175
182
|
class: "p-[20px] border-t"
|
176
|
-
},
|
183
|
+
}, xo = ["innerHTML"], fo = { 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]" }, _o = ["onClick"], yo = {
|
177
184
|
key: 0,
|
178
185
|
class: "bg-white border border-t-0 rounded-bl-xl rounded-br-xl"
|
179
|
-
},
|
186
|
+
}, vo = {
|
180
187
|
key: 0,
|
181
188
|
class: "p-[20px] border-t"
|
182
|
-
},
|
189
|
+
}, jo = {
|
183
190
|
key: 1,
|
184
191
|
class: "p-[20px] border-t"
|
185
|
-
},
|
192
|
+
}, Do = ["innerHTML"], ko = {
|
186
193
|
key: 3,
|
187
194
|
class: "flex"
|
188
|
-
},
|
195
|
+
}, wo = { 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"], Lo = { class: "flex-grow" }, To = {
|
189
196
|
key: 0,
|
190
197
|
class: "h-full bg-white border rounded-xl"
|
191
198
|
}, Ao = {
|
@@ -195,135 +202,145 @@ const $ = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
195
202
|
key: 1,
|
196
203
|
class: "p-[20px] border-t"
|
197
204
|
}, Mo = ["innerHTML"];
|
198
|
-
function
|
205
|
+
function Ho(s, a, c, l, t, u) {
|
199
206
|
var f, p, d;
|
200
|
-
const g =
|
201
|
-
return e(), r("div",
|
202
|
-
t.objectData && ((f = t.objectData) == null ? void 0 : f.isHeader) !== !1 ? (e(),
|
207
|
+
const g = I("AdminCardHeader"), h = I("AdminCardAsyncComponent");
|
208
|
+
return e(), r("div", ao, [
|
209
|
+
t.objectData && ((f = t.objectData) == null ? void 0 : f.isHeader) !== !1 ? (e(), j(g, {
|
203
210
|
key: 0,
|
204
211
|
title: u.getTitle,
|
205
212
|
"get-route": u.getRoute,
|
206
213
|
slots: (p = t.objectData) == null ? void 0 : p.slots
|
207
214
|
}, null, 8, ["title", "get-route", "slots"])) : y("", !0),
|
208
|
-
|
209
|
-
class:
|
215
|
+
D("div", {
|
216
|
+
class: z(["grid gap-[20px]", u.getGridClass()])
|
210
217
|
}, [
|
211
|
-
(e(!0), r(
|
212
|
-
var
|
218
|
+
(e(!0), r(w, null, q((d = t.objectData) == null ? void 0 : d.panels, (n, V) => {
|
219
|
+
var C, L, k, b, x;
|
213
220
|
return e(), r("div", {
|
214
|
-
key:
|
215
|
-
class:
|
221
|
+
key: V,
|
222
|
+
class: z(u.getColClass(n.col))
|
216
223
|
}, [
|
217
|
-
n != null && n.name ? (e(), r("div",
|
218
|
-
|
219
|
-
(
|
224
|
+
n != null && n.name ? (e(), r("div", lo, [
|
225
|
+
D("h2", uo, E((n == null ? void 0 : n.title) || "Панель"), 1),
|
226
|
+
(C = t.objectData) != null && C.html[n == null ? void 0 : n.name] ? (e(), r("div", {
|
220
227
|
key: 0,
|
221
228
|
class: "p-[20px] border-t",
|
222
229
|
innerHTML: (L = t.objectData) == null ? void 0 : L.html[n == null ? void 0 : n.name]
|
223
|
-
}, null, 8,
|
230
|
+
}, null, 8, po)) : (e(), j(h, {
|
224
231
|
key: 1,
|
225
|
-
slot: (
|
226
|
-
data: (x = (
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
232
|
+
slot: (k = t.objectData) == null ? void 0 : k.vue[n == null ? void 0 : n.name],
|
233
|
+
data: (x = (b = t.objectData) == null ? void 0 : b.rows) == null ? void 0 : x[0],
|
234
|
+
objectData: t.objectData
|
235
|
+
}, null, 8, ["slot", "data", "objectData"]))
|
236
|
+
])) : n.type === "container" ? (e(), r("div", bo, [
|
237
|
+
(e(!0), r(w, null, q(n.items, (o, _) => {
|
238
|
+
var v, T, A, R, M, H, P, N, O, S;
|
231
239
|
return e(), r("div", {
|
232
240
|
key: _,
|
233
|
-
class:
|
241
|
+
class: z([{ "mb-[20px]": n.items.length > 1 }, "bg-white border rounded-xl"])
|
234
242
|
}, [
|
235
|
-
o != null && o.title ? (e(), r("h2", ho,
|
243
|
+
o != null && o.title ? (e(), r("h2", ho, E((o == null ? void 0 : o.title) || "Панель"), 1)) : y("", !0),
|
236
244
|
o != null && o.component ? (e(), r("div", {
|
237
245
|
key: 1,
|
238
|
-
class:
|
246
|
+
class: z(["p-[20px]", { "border-t": o == null ? void 0 : o.title }])
|
239
247
|
}, [
|
240
|
-
(e(),
|
241
|
-
geometry: (
|
248
|
+
(e(), j(B(o.component), {
|
249
|
+
geometry: (T = (v = t.objectData) == null ? void 0 : v.rows[0]) == null ? void 0 : T.geom,
|
250
|
+
columns: o == null ? void 0 : o.columns,
|
242
251
|
zoom: 16,
|
243
|
-
|
244
|
-
|
252
|
+
data: t.objectData,
|
253
|
+
id: (R = (A = s.$route) == null ? void 0 : A.params) == null ? void 0 : R.id
|
254
|
+
}, null, 8, ["geometry", "columns", "data", "id"]))
|
245
255
|
], 2)) : y("", !0),
|
246
|
-
o != null && o.name ? (e(), r("div",
|
247
|
-
(H = (
|
256
|
+
o != null && o.name ? (e(), r("div", go, [
|
257
|
+
(H = (M = t.objectData) == null ? void 0 : M.html) != null && H[o == null ? void 0 : o.name] ? (e(), r("div", {
|
248
258
|
key: 0,
|
249
|
-
innerHTML: (
|
250
|
-
}, null, 8,
|
259
|
+
innerHTML: (P = t.objectData) == null ? void 0 : P.html[o == null ? void 0 : o.name]
|
260
|
+
}, null, 8, xo)) : (e(), j(h, {
|
251
261
|
key: 1,
|
252
262
|
slot: (N = t.objectData) == null ? void 0 : N.vue[o == null ? void 0 : o.name],
|
253
|
-
data: (
|
254
|
-
|
263
|
+
data: (S = (O = t.objectData) == null ? void 0 : O.rows) == null ? void 0 : S[0],
|
264
|
+
objectData: t.objectData
|
265
|
+
}, null, 8, ["slot", "data", "objectData"]))
|
255
266
|
])) : y("", !0)
|
256
267
|
], 2);
|
257
268
|
}), 128))
|
258
269
|
])) : y("", !0),
|
259
|
-
(n == null ? void 0 : n.type) === "tabs" ? (e(), r(
|
260
|
-
|
261
|
-
(e(!0), r(
|
270
|
+
(n == null ? void 0 : n.type) === "tabs" ? (e(), r(w, { key: 2 }, [
|
271
|
+
D("nav", fo, [
|
272
|
+
(e(!0), r(w, null, q(n == null ? void 0 : n.items, (o) => (e(), r("button", {
|
262
273
|
key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
|
263
274
|
onClick: (_) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
|
264
|
-
class:
|
275
|
+
class: z(["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", {
|
265
276
|
" 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),
|
266
277
|
"": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
|
267
278
|
}])
|
268
|
-
},
|
279
|
+
}, E(o == null ? void 0 : o.title), 11, _o))), 128))
|
269
280
|
]),
|
270
|
-
(e(!0), r(
|
271
|
-
var v, A, R, M,
|
272
|
-
return e(), r(
|
273
|
-
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (e(), r("div",
|
274
|
-
o != null && o.component ? (e(), r("div",
|
275
|
-
(e(),
|
276
|
-
|
281
|
+
(e(!0), r(w, null, q(n.items, (o, _) => {
|
282
|
+
var v, T, A, R, M, H, P, N, O, S;
|
283
|
+
return e(), r(w, { key: _ }, [
|
284
|
+
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (e(), r("div", yo, [
|
285
|
+
o != null && o.component ? (e(), r("div", vo, [
|
286
|
+
(e(), j(B(o.component), {
|
287
|
+
data: t.objectData,
|
288
|
+
columns: o == null ? void 0 : o.columns,
|
289
|
+
geometry: (T = (v = t.objectData) == null ? void 0 : v.rows[0]) == null ? void 0 : T.geom,
|
277
290
|
zoom: 16,
|
278
|
-
id: (
|
279
|
-
}, null, 8, ["geometry", "id"]))
|
291
|
+
id: (R = (A = s.$route) == null ? void 0 : A.params) == null ? void 0 : R.id
|
292
|
+
}, null, 8, ["data", "columns", "geometry", "id"]))
|
280
293
|
])) : y("", !0),
|
281
|
-
o != null && o.name ? (e(), r("div",
|
282
|
-
(H = (
|
294
|
+
o != null && o.name ? (e(), r("div", jo, [
|
295
|
+
(H = (M = t.objectData) == null ? void 0 : M.html) != null && H[o == null ? void 0 : o.name] ? (e(), r("div", {
|
283
296
|
key: 0,
|
284
|
-
innerHTML: (
|
285
|
-
}, null, 8,
|
297
|
+
innerHTML: (P = t.objectData) == null ? void 0 : P.html[o == null ? void 0 : o.name]
|
298
|
+
}, null, 8, Do)) : (e(), j(h, {
|
286
299
|
key: 1,
|
287
300
|
slot: (N = t.objectData) == null ? void 0 : N.vue[o == null ? void 0 : o.name],
|
288
|
-
data: (
|
289
|
-
|
301
|
+
data: (S = (O = t.objectData) == null ? void 0 : O.rows) == null ? void 0 : S[0],
|
302
|
+
objectData: t.objectData
|
303
|
+
}, null, 8, ["slot", "data", "objectData"]))
|
290
304
|
])) : y("", !0)
|
291
305
|
])) : y("", !0)
|
292
306
|
], 64);
|
293
307
|
}), 128))
|
294
308
|
], 64)) : y("", !0),
|
295
|
-
(n == null ? void 0 : n.type) === "vertical-tabs" ? (e(), r("div",
|
296
|
-
|
297
|
-
(e(!0), r(
|
309
|
+
(n == null ? void 0 : n.type) === "vertical-tabs" ? (e(), r("div", ko, [
|
310
|
+
D("nav", wo, [
|
311
|
+
(e(!0), r(w, null, q(n == null ? void 0 : n.items, (o) => (e(), r("button", {
|
298
312
|
key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
|
299
313
|
onClick: (_) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
|
300
|
-
class:
|
314
|
+
class: z(["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", {
|
301
315
|
"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),
|
302
316
|
"text-gray-500": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
|
303
317
|
}])
|
304
|
-
},
|
318
|
+
}, E(o == null ? void 0 : o.title), 11, Co))), 128))
|
305
319
|
]),
|
306
|
-
|
307
|
-
(e(!0), r(
|
308
|
-
var v, A, R, M,
|
309
|
-
return e(), r(
|
310
|
-
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (e(), r("div",
|
320
|
+
D("div", Lo, [
|
321
|
+
(e(!0), r(w, null, q(n.items, (o, _) => {
|
322
|
+
var v, T, A, R, M, H, P, N, O, S;
|
323
|
+
return e(), r(w, { key: _ }, [
|
324
|
+
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (e(), r("div", To, [
|
311
325
|
o != null && o.component ? (e(), r("div", Ao, [
|
312
|
-
(e(),
|
313
|
-
|
326
|
+
(e(), j(B(o.component), {
|
327
|
+
data: t.objectData,
|
328
|
+
columns: o == null ? void 0 : o.columns,
|
329
|
+
geometry: (T = (v = t.objectData) == null ? void 0 : v.rows[0]) == null ? void 0 : T.geom,
|
314
330
|
zoom: 16,
|
315
|
-
id: (
|
316
|
-
}, null, 8, ["geometry", "id"]))
|
331
|
+
id: (R = (A = s.$route) == null ? void 0 : A.params) == null ? void 0 : R.id
|
332
|
+
}, null, 8, ["data", "columns", "geometry", "id"]))
|
317
333
|
])) : y("", !0),
|
318
334
|
o != null && o.name ? (e(), r("div", Ro, [
|
319
|
-
(H = (
|
335
|
+
(H = (M = t.objectData) == null ? void 0 : M.html) != null && H[o == null ? void 0 : o.name] ? (e(), r("div", {
|
320
336
|
key: 0,
|
321
|
-
innerHTML: (
|
322
|
-
}, null, 8, Mo)) : (e(),
|
337
|
+
innerHTML: (P = t.objectData) == null ? void 0 : P.html[o == null ? void 0 : o.name]
|
338
|
+
}, null, 8, Mo)) : (e(), j(h, {
|
323
339
|
key: 1,
|
324
340
|
slot: (N = t.objectData) == null ? void 0 : N.vue[o == null ? void 0 : o.name],
|
325
|
-
data: (
|
326
|
-
|
341
|
+
data: (S = (O = t.objectData) == null ? void 0 : O.rows) == null ? void 0 : S[0],
|
342
|
+
objectData: t.objectData
|
343
|
+
}, null, 8, ["slot", "data", "objectData"]))
|
327
344
|
])) : y("", !0)
|
328
345
|
])) : y("", !0)
|
329
346
|
], 64);
|
@@ -335,7 +352,7 @@ function To(s, a, c, l, t, u) {
|
|
335
352
|
], 2)
|
336
353
|
]);
|
337
354
|
}
|
338
|
-
const
|
355
|
+
const Oo = /* @__PURE__ */ U(co, [["render", Ho], ["__scopeId", "data-v-d3972cb9"]]);
|
339
356
|
export {
|
340
|
-
|
357
|
+
Oo as default
|
341
358
|
};
|
@@ -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-BihjtZo9.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() {
|