@opengis/admin 0.1.53 → 0.1.54
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{add-page-DxsI9oTt.js → add-page-DTF2UYpa.js} +1 -1
- package/dist/{admin-interface-D1Z9zulm.js → admin-interface-CAxK1XOD.js} +1 -1
- package/dist/{admin-view-DE_wFOGr.js → admin-view-C9ImK2sO.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +51 -51
- package/dist/{card-page-BEJ2rFfi.js → card-page-2mrzfvH7.js} +22 -22
- package/dist/{card-view-RRo1C2UV.js → card-view-D8biFeBR.js} +1 -1
- package/dist/{edit-page-D4hRn8sR.js → edit-page-C97TQRUy.js} +1 -1
- package/dist/{import-file-CL8r9Pju.js → import-file-BNnG8cW-.js} +5241 -5203
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/plugin.js +1 -1
- package/server/routes/calendar/controllers/calendar.data.js +89 -0
- package/server/routes/calendar/index.mjs +17 -0
- package/server/routes/data/controllers/tableData.js +0 -4
- package/server/routes/menu/controllers/getMenu.js +0 -1
- package/utils.js +11 -40
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as V, u as $, a as z } from "./import-file-
|
2
|
-
import { resolveComponent as N, openBlock as n, createElementBlock as c, createElementVNode as
|
1
|
+
import { _ as V, u as $, a as z } from "./import-file-BNnG8cW-.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
3
|
const E = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -18,9 +18,9 @@ const E = {
|
|
18
18
|
return r || this.$router.replace("/404"), r == null ? void 0 : r.path;
|
19
19
|
},
|
20
20
|
getTitle() {
|
21
|
-
var t, r, a, l, s, h, i, x, g,
|
21
|
+
var t, r, a, l, s, h, i, x, g, u, o, j, w, e, y;
|
22
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 ? (
|
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
24
|
{
|
25
25
|
const b = (y = this.flattenMenu($.value)) == null ? void 0 : y.find(
|
26
26
|
(p) => {
|
@@ -63,8 +63,8 @@ const E = {
|
|
63
63
|
if ((r = (t = this.$route) == null ? void 0 : t.query) != null && r.tab)
|
64
64
|
this.component = (l = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : l.tab;
|
65
65
|
else {
|
66
|
-
const
|
67
|
-
(i =
|
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
68
|
}
|
69
69
|
},
|
70
70
|
flattenMenu(t) {
|
@@ -77,7 +77,7 @@ const E = {
|
|
77
77
|
}, A = {
|
78
78
|
style: { width: "calc(100vw - 260px)", height: "calc(100vh - 60px)" },
|
79
79
|
class: "p-4 overflow-y-auto bg-gray-50"
|
80
|
-
}, G = { class: "h-[76px] bg-gray-50 flex items-center justify-between
|
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
81
|
key: 0,
|
82
82
|
class: "bg-white border rounded-xl"
|
83
83
|
}, P = { class: "p-[10px] pl-[20px] text-xl" }, S = ["innerHTML"], J = { key: 1 }, K = { class: "p-[10px] pl-[20px] text-xl" }, Q = {
|
@@ -97,18 +97,18 @@ const E = {
|
|
97
97
|
class: "p-[20px] border-t"
|
98
98
|
}, oe = ["innerHTML"];
|
99
99
|
function re(t, r, a, l, s, h) {
|
100
|
-
var x, g,
|
100
|
+
var x, g, u;
|
101
101
|
const i = N("router-link");
|
102
102
|
return n(), c("div", A, [
|
103
|
-
|
104
|
-
|
105
|
-
|
103
|
+
d("div", G, [
|
104
|
+
d("div", O, [
|
105
|
+
d("button", {
|
106
106
|
onClick: r[0] || (r[0] = (o) => t.$router.back()),
|
107
107
|
class: "text-sm h-[20px] text-blue-600 font-medium hover:border-b hover:border-b-2 hover:border-b-blue-500"
|
108
108
|
}, " До таблиці "),
|
109
|
-
|
109
|
+
d("h2", R, C(h.getTitle), 1)
|
110
110
|
]),
|
111
|
-
|
111
|
+
d("div", F, [
|
112
112
|
m(i, {
|
113
113
|
to: `/edit?table=${h.getRoute}&id=${(g = (x = t.$route) == null ? void 0 : x.params) == null ? void 0 : g.id}`,
|
114
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"
|
@@ -120,18 +120,18 @@ function re(t, r, a, l, s, h) {
|
|
120
120
|
}, 8, ["to"])
|
121
121
|
])
|
122
122
|
]),
|
123
|
-
|
123
|
+
d("div", {
|
124
124
|
class: T(["grid gap-[20px]", h.getGridClass()])
|
125
125
|
}, [
|
126
|
-
(n(!0), c(k, null, M((
|
126
|
+
(n(!0), c(k, null, M((u = s.objectData) == null ? void 0 : u.panels, (o, j) => {
|
127
127
|
var w;
|
128
128
|
return n(), c("div", {
|
129
129
|
key: j,
|
130
130
|
class: T(h.getColClass(o.col))
|
131
131
|
}, [
|
132
132
|
o != null && o.name ? (n(), c("div", I, [
|
133
|
-
|
134
|
-
|
133
|
+
d("h2", P, C((o == null ? void 0 : o.title) || "Панель"), 1),
|
134
|
+
d("div", {
|
135
135
|
class: "p-[20px] border-t",
|
136
136
|
innerHTML: (w = s.objectData) == null ? void 0 : w.data[o == null ? void 0 : o.name]
|
137
137
|
}, null, 8, S)
|
@@ -142,7 +142,7 @@ function re(t, r, a, l, s, h) {
|
|
142
142
|
key: y,
|
143
143
|
class: "border rounded-xl bg-white mb-[20px]"
|
144
144
|
}, [
|
145
|
-
|
145
|
+
d("h2", K, C((e == null ? void 0 : e.title) || "Панель"), 1),
|
146
146
|
e != null && e.component ? (n(), c("div", Q, [
|
147
147
|
(n(), L(H(e.component), {
|
148
148
|
geometry: (p = (b = s.objectData) == null ? void 0 : b.rows[0]) == null ? void 0 : p.geom,
|
@@ -151,7 +151,7 @@ function re(t, r, a, l, s, h) {
|
|
151
151
|
}, null, 8, ["geometry", "id"]))
|
152
152
|
])) : v("", !0),
|
153
153
|
e != null && e.name ? (n(), c("div", U, [
|
154
|
-
|
154
|
+
d("div", {
|
155
155
|
innerHTML: (D = s.objectData) == null ? void 0 : D.data[e == null ? void 0 : e.name]
|
156
156
|
}, null, 8, W)
|
157
157
|
])) : v("", !0)
|
@@ -159,7 +159,7 @@ function re(t, r, a, l, s, h) {
|
|
159
159
|
}), 128))
|
160
160
|
])) : v("", !0),
|
161
161
|
(o == null ? void 0 : o.type) === "tabs" ? (n(), c(k, { key: 2 }, [
|
162
|
-
|
162
|
+
d("nav", X, [
|
163
163
|
(n(!0), c(k, null, M(o == null ? void 0 : o.items, (e) => (n(), c("button", {
|
164
164
|
key: (e == null ? void 0 : e.name) || (e == null ? void 0 : e.component),
|
165
165
|
onClick: (y) => s.component = (e == null ? void 0 : e.component) || (e == null ? void 0 : e.name),
|
@@ -181,7 +181,7 @@ function re(t, r, a, l, s, h) {
|
|
181
181
|
}, null, 8, ["geometry", "id"]))
|
182
182
|
])) : v("", !0),
|
183
183
|
e != null && e.name ? (n(), c("div", te, [
|
184
|
-
|
184
|
+
d("div", {
|
185
185
|
innerHTML: (D = s.objectData) == null ? void 0 : D.data[e == null ? void 0 : e.name]
|
186
186
|
}, null, 8, oe)
|
187
187
|
])) : v("", !0)
|
@@ -194,7 +194,7 @@ function re(t, r, a, l, s, h) {
|
|
194
194
|
], 2)
|
195
195
|
]);
|
196
196
|
}
|
197
|
-
const ae = /* @__PURE__ */ V(E, [["render", re], ["__scopeId", "data-v-
|
197
|
+
const ae = /* @__PURE__ */ V(E, [["render", re], ["__scopeId", "data-v-ed2cfe89"]]);
|
198
198
|
export {
|
199
199
|
ae as default
|
200
200
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as m, u as b, a as i } from "./import-file-
|
1
|
+
import { _ as m, u as b, a as i } from "./import-file-BNnG8cW-.js";
|
2
2
|
import { resolveComponent as d, openBlock as u, createElementBlock as h, createElementVNode as n, createBlock as p, createCommentVNode as f } from "vue";
|
3
3
|
const g = {
|
4
4
|
data() {
|