@opengis/admin 0.1.82 → 0.1.84
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{IconChevronDown-TOHGDzb9.js → IconChevronDown-DoqykhvB.js} +1 -1
- package/dist/{add-page-DVsruEe8.js → add-page-ChBpMfRU.js} +1 -1
- package/dist/{admin-interface-CqPS5k9y.js → admin-interface-SDtt7rqS.js} +427 -402
- package/dist/{admin-view-DtZwCxNO.js → admin-view-CKTriO6z.js} +2 -2
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +95 -66
- package/dist/{card-page-DiSMqrtf.js → card-page-BaSbgjMn.js} +32 -29
- package/dist/{card-view-RC_RStl7.js → card-view-B8ohi0lw.js} +1 -1
- package/dist/{edit-page-B0syX8OD.js → edit-page-DLlbyyd_.js} +1 -1
- package/dist/{import-file-BihjtZo9.js → import-file-CV5CU5lC.js} +5607 -5544
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/server/helpers/controllers/token.js +5 -4
- package/server/plugins/hook.js +1 -1
- package/server/routes/access/controllers/access.group.js +3 -6
@@ -1,5 +1,5 @@
|
|
1
|
-
import { g as K, h as Q, _ as U, u as F, r as W, a as X } from "./import-file-
|
2
|
-
import { getCurrentInstance as J, ref as G, computed as Y, resolveComponent as I, openBlock as e, createElementBlock as r, createElementVNode as
|
1
|
+
import { g as K, h as Q, _ as U, u as F, r as W, a as X } from "./import-file-CV5CU5lC.js";
|
2
|
+
import { getCurrentInstance as J, ref as G, computed as Y, resolveComponent as I, openBlock as e, createElementBlock as r, createElementVNode as k, toDisplayString as E, createBlock as j, resolveDynamicComponent as B, createVNode as Z, withCtx as $, createTextVNode as i, createCommentVNode as y, normalizeClass as z, Fragment as w, renderList as q } from "vue";
|
3
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: {
|
@@ -13,8 +13,8 @@ const m = { 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, V, C, L,
|
17
|
-
const { asyncTemplateSlot: a } = (
|
16
|
+
var n, V, C, L, D;
|
17
|
+
const { asyncTemplateSlot: a } = (D = (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 : D.utils, c = s, l = K(), t = Q(), u = G(""), g = G(""), h = () => {
|
18
18
|
l.back();
|
19
19
|
}, f = Y(
|
20
20
|
() => {
|
@@ -45,24 +45,24 @@ const m = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
45
45
|
return p(), d(), (b, x) => {
|
46
46
|
const o = I("router-link");
|
47
47
|
return e(), r("div", m, [
|
48
|
-
|
49
|
-
|
48
|
+
k("div", oo, [
|
49
|
+
k("button", {
|
50
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
|
+
k("h2", to, E(s.title), 1)
|
54
54
|
]),
|
55
55
|
(e(), j(B(g.value))),
|
56
|
-
|
57
|
-
|
56
|
+
k("div", eo, [
|
57
|
+
k("div", no, [
|
58
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: $(() => x[0] || (x[0] = [
|
65
|
+
i(" Редагувати ")
|
66
66
|
])),
|
67
67
|
_: 1
|
68
68
|
}, 8, ["to"])
|
@@ -108,13 +108,13 @@ const m = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
108
108
|
if ((c = (a = (s = this.objectData) == null ? void 0 : s.rows) == null ? void 0 : a[0]) != null && c.name)
|
109
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)) + " ...";
|
110
110
|
{
|
111
|
-
const
|
111
|
+
const D = (L = this.flattenMenu(F.value)) == null ? void 0 : L.find(
|
112
112
|
(b) => {
|
113
113
|
var x, o;
|
114
114
|
return (b == null ? void 0 : b.table) === ((o = (x = this.$route) == null ? void 0 : x.params) == null ? void 0 : o.table);
|
115
115
|
}
|
116
116
|
);
|
117
|
-
return
|
117
|
+
return D == null ? void 0 : D.ua;
|
118
118
|
}
|
119
119
|
},
|
120
120
|
reloadPageTrigger() {
|
@@ -189,10 +189,10 @@ const m = { class: "h-[76px] bg-white border rounded-xl flex items-center justif
|
|
189
189
|
}, jo = {
|
190
190
|
key: 1,
|
191
191
|
class: "p-[20px] border-t"
|
192
|
-
},
|
192
|
+
}, ko = ["innerHTML"], Do = {
|
193
193
|
key: 3,
|
194
194
|
class: "flex"
|
195
|
-
}, wo = { class: "flex flex-col space-y-2 w-[
|
195
|
+
}, wo = { class: "flex flex-col space-y-2 max-w-[260px] w-full border rounded-xl mr-4 h-auto items-start pl-[10px] bg-white py-[20px]" }, Co = ["onClick"], Lo = { class: "flex-grow" }, To = {
|
196
196
|
key: 0,
|
197
197
|
class: "h-full bg-white border rounded-xl"
|
198
198
|
}, Ao = {
|
@@ -212,24 +212,24 @@ function Ho(s, a, c, l, t, u) {
|
|
212
212
|
"get-route": u.getRoute,
|
213
213
|
slots: (p = t.objectData) == null ? void 0 : p.slots
|
214
214
|
}, null, 8, ["title", "get-route", "slots"])) : y("", !0),
|
215
|
-
|
215
|
+
k("div", {
|
216
216
|
class: z(["grid gap-[20px]", u.getGridClass()])
|
217
217
|
}, [
|
218
218
|
(e(!0), r(w, null, q((d = t.objectData) == null ? void 0 : d.panels, (n, V) => {
|
219
|
-
var C, L,
|
219
|
+
var C, L, D, b, x;
|
220
220
|
return e(), r("div", {
|
221
221
|
key: V,
|
222
222
|
class: z(u.getColClass(n.col))
|
223
223
|
}, [
|
224
224
|
n != null && n.name ? (e(), r("div", lo, [
|
225
|
-
|
225
|
+
k("h2", uo, E((n == null ? void 0 : n.title) || "Панель"), 1),
|
226
226
|
(C = t.objectData) != null && C.html[n == null ? void 0 : n.name] ? (e(), r("div", {
|
227
227
|
key: 0,
|
228
228
|
class: "p-[20px] border-t",
|
229
229
|
innerHTML: (L = t.objectData) == null ? void 0 : L.html[n == null ? void 0 : n.name]
|
230
230
|
}, null, 8, po)) : (e(), j(h, {
|
231
231
|
key: 1,
|
232
|
-
slot: (
|
232
|
+
slot: (D = t.objectData) == null ? void 0 : D.vue[n == null ? void 0 : n.name],
|
233
233
|
data: (x = (b = t.objectData) == null ? void 0 : b.rows) == null ? void 0 : x[0],
|
234
234
|
objectData: t.objectData
|
235
235
|
}, null, 8, ["slot", "data", "objectData"]))
|
@@ -248,10 +248,11 @@ function Ho(s, a, c, l, t, u) {
|
|
248
248
|
(e(), j(B(o.component), {
|
249
249
|
geometry: (T = (v = t.objectData) == null ? void 0 : v.rows[0]) == null ? void 0 : T.geom,
|
250
250
|
columns: o == null ? void 0 : o.columns,
|
251
|
+
token: o == null ? void 0 : o.token,
|
251
252
|
zoom: 16,
|
252
253
|
data: t.objectData,
|
253
254
|
id: (R = (A = s.$route) == null ? void 0 : A.params) == null ? void 0 : R.id
|
254
|
-
}, null, 8, ["geometry", "columns", "data", "id"]))
|
255
|
+
}, null, 8, ["geometry", "columns", "token", "data", "id"]))
|
255
256
|
], 2)) : y("", !0),
|
256
257
|
o != null && o.name ? (e(), r("div", go, [
|
257
258
|
(H = (M = t.objectData) == null ? void 0 : M.html) != null && H[o == null ? void 0 : o.name] ? (e(), r("div", {
|
@@ -268,7 +269,7 @@ function Ho(s, a, c, l, t, u) {
|
|
268
269
|
}), 128))
|
269
270
|
])) : y("", !0),
|
270
271
|
(n == null ? void 0 : n.type) === "tabs" ? (e(), r(w, { key: 2 }, [
|
271
|
-
|
272
|
+
k("nav", fo, [
|
272
273
|
(e(!0), r(w, null, q(n == null ? void 0 : n.items, (o) => (e(), r("button", {
|
273
274
|
key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
|
274
275
|
onClick: (_) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
|
@@ -285,17 +286,18 @@ function Ho(s, a, c, l, t, u) {
|
|
285
286
|
o != null && o.component ? (e(), r("div", vo, [
|
286
287
|
(e(), j(B(o.component), {
|
287
288
|
data: t.objectData,
|
289
|
+
token: o == null ? void 0 : o.token,
|
288
290
|
columns: o == null ? void 0 : o.columns,
|
289
291
|
geometry: (T = (v = t.objectData) == null ? void 0 : v.rows[0]) == null ? void 0 : T.geom,
|
290
292
|
zoom: 16,
|
291
293
|
id: (R = (A = s.$route) == null ? void 0 : A.params) == null ? void 0 : R.id
|
292
|
-
}, null, 8, ["data", "columns", "geometry", "id"]))
|
294
|
+
}, null, 8, ["data", "token", "columns", "geometry", "id"]))
|
293
295
|
])) : y("", !0),
|
294
296
|
o != null && o.name ? (e(), r("div", jo, [
|
295
297
|
(H = (M = t.objectData) == null ? void 0 : M.html) != null && H[o == null ? void 0 : o.name] ? (e(), r("div", {
|
296
298
|
key: 0,
|
297
299
|
innerHTML: (P = t.objectData) == null ? void 0 : P.html[o == null ? void 0 : o.name]
|
298
|
-
}, null, 8,
|
300
|
+
}, null, 8, ko)) : (e(), j(h, {
|
299
301
|
key: 1,
|
300
302
|
slot: (N = t.objectData) == null ? void 0 : N.vue[o == null ? void 0 : o.name],
|
301
303
|
data: (S = (O = t.objectData) == null ? void 0 : O.rows) == null ? void 0 : S[0],
|
@@ -306,30 +308,31 @@ function Ho(s, a, c, l, t, u) {
|
|
306
308
|
], 64);
|
307
309
|
}), 128))
|
308
310
|
], 64)) : y("", !0),
|
309
|
-
(n == null ? void 0 : n.type) === "vertical-tabs" ? (e(), r("div",
|
310
|
-
|
311
|
+
(n == null ? void 0 : n.type) === "vertical-tabs" ? (e(), r("div", Do, [
|
312
|
+
k("nav", wo, [
|
311
313
|
(e(!0), r(w, null, q(n == null ? void 0 : n.items, (o) => (e(), r("button", {
|
312
314
|
key: (o == null ? void 0 : o.name) || (o == null ? void 0 : o.component),
|
313
315
|
onClick: (_) => t.component = (o == null ? void 0 : o.component) || (o == null ? void 0 : o.name),
|
314
|
-
class: z(["relative inline-flex items-center w-full py-1 text-sm border-transparent pe-4 gap-x-2 border-e-2
|
316
|
+
class: z(["relative whitespace-pre-wrap text-left inline-flex items-center w-full py-1 text-sm border-transparent pe-4 gap-x-2 border-e-2 hover:text-blue-600 focus:outline-none focus:text-blue-600", {
|
315
317
|
"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),
|
316
318
|
"text-gray-500": t.component !== (o == null ? void 0 : o.component) && t.component !== (o == null ? void 0 : o.name)
|
317
319
|
}])
|
318
320
|
}, E(o == null ? void 0 : o.title), 11, Co))), 128))
|
319
321
|
]),
|
320
|
-
|
322
|
+
k("div", Lo, [
|
321
323
|
(e(!0), r(w, null, q(n.items, (o, _) => {
|
322
324
|
var v, T, A, R, M, H, P, N, O, S;
|
323
325
|
return e(), r(w, { key: _ }, [
|
324
326
|
t.component === (o == null ? void 0 : o.component) || t.component === (o == null ? void 0 : o.name) ? (e(), r("div", To, [
|
325
327
|
o != null && o.component ? (e(), r("div", Ao, [
|
326
328
|
(e(), j(B(o.component), {
|
329
|
+
token: o == null ? void 0 : o.token,
|
327
330
|
data: t.objectData,
|
328
331
|
columns: o == null ? void 0 : o.columns,
|
329
332
|
geometry: (T = (v = t.objectData) == null ? void 0 : v.rows[0]) == null ? void 0 : T.geom,
|
330
333
|
zoom: 16,
|
331
334
|
id: (R = (A = s.$route) == null ? void 0 : A.params) == null ? void 0 : R.id
|
332
|
-
}, null, 8, ["data", "columns", "geometry", "id"]))
|
335
|
+
}, null, 8, ["token", "data", "columns", "geometry", "id"]))
|
333
336
|
])) : y("", !0),
|
334
337
|
o != null && o.name ? (e(), r("div", Ro, [
|
335
338
|
(H = (M = t.objectData) == null ? void 0 : M.html) != null && H[o == null ? void 0 : o.name] ? (e(), r("div", {
|
@@ -352,7 +355,7 @@ function Ho(s, a, c, l, t, u) {
|
|
352
355
|
], 2)
|
353
356
|
]);
|
354
357
|
}
|
355
|
-
const Oo = /* @__PURE__ */ U(co, [["render", Ho], ["__scopeId", "data-v-
|
358
|
+
const Oo = /* @__PURE__ */ U(co, [["render", Ho], ["__scopeId", "data-v-789a8149"]]);
|
356
359
|
export {
|
357
360
|
Oo as default
|
358
361
|
};
|
@@ -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-CV5CU5lC.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() {
|