@opengis/admin 0.3.25 → 0.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-page-BI4K8Lzk.js → add-page-C6DwbJjf.js} +25 -20
- package/dist/{admin-interface-DDP6KpGO.js → admin-interface-BrB1qb2I.js} +559 -597
- package/dist/{admin-view-C--DkpIG.js → admin-view-CZJ6KMWm.js} +6 -6
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +72 -72
- package/dist/{card-view-CPwz8aJg.js → card-view-CpED7yAp.js} +3 -3
- package/dist/edit-page-DBVGsNB1.js +145 -0
- package/dist/{import-file-B8gDejaq.js → import-file-CPyXYrIv.js} +18540 -18651
- package/dist/{profile-page-C5UftUwo.js → profile-page-HrN4f8PO.js} +5 -5
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/server/helpers/list/descriptionList.js +1 -1
- package/server/helpers/list/tableList.js +5 -5
- package/server/helpers/list/utils/buttonDel.js +1 -1
- package/server/helpers/list/utils/buttonEdit.js +1 -1
- package/dist/edit-page-BsDJ8lKP.js +0 -140
@@ -1,6 +1,6 @@
|
|
1
|
-
import { _ as p,
|
2
|
-
import { resolveComponent as
|
3
|
-
const
|
1
|
+
import { _ as p, s as d, u as g, f as m } from "./import-file-CPyXYrIv.js";
|
2
|
+
import { resolveComponent as f, openBlock as b, createElementBlock as x, createElementVNode as n, normalizeClass as w, normalizeStyle as h, createBlock as y, createCommentVNode as k } from "vue";
|
3
|
+
const v = {
|
4
4
|
data() {
|
5
5
|
return {
|
6
6
|
formValues: {},
|
@@ -14,6 +14,11 @@ const y = {
|
|
14
14
|
mounted() {
|
15
15
|
this.getFormScheme();
|
16
16
|
},
|
17
|
+
computed: {
|
18
|
+
color() {
|
19
|
+
return d.value.sidebarColor || "blue";
|
20
|
+
}
|
21
|
+
},
|
17
22
|
methods: {
|
18
23
|
flattenMenu(t) {
|
19
24
|
const e = [];
|
@@ -23,7 +28,7 @@ const y = {
|
|
23
28
|
},
|
24
29
|
async getFormScheme() {
|
25
30
|
var i, a;
|
26
|
-
const t = this.flattenMenu(
|
31
|
+
const t = this.flattenMenu(g.value);
|
27
32
|
t != null && t.length || this.$router.replace("/404");
|
28
33
|
const e = t == null ? void 0 : t.find((r) => {
|
29
34
|
var s, l;
|
@@ -33,7 +38,7 @@ const y = {
|
|
33
38
|
const o = e == null ? void 0 : e.table;
|
34
39
|
this.table = o;
|
35
40
|
try {
|
36
|
-
const r = await
|
41
|
+
const r = await m.get(`/api/table-data/${o}`), { data: s } = await m.get(
|
37
42
|
`/api/template/form/${(i = r == null ? void 0 : r.data) == null ? void 0 : i.form}`
|
38
43
|
);
|
39
44
|
this.scheme = (s == null ? void 0 : s.schema) || s, this.style = (s == null ? void 0 : s.style) || null, this.api = (s == null ? void 0 : s.api) || "", this.token = (a = r == null ? void 0 : r.data) == null ? void 0 : a.addToken;
|
@@ -57,7 +62,7 @@ const y = {
|
|
57
62
|
var e;
|
58
63
|
const t = this.$refs.form;
|
59
64
|
try {
|
60
|
-
await t.doValidation(), await
|
65
|
+
await t.doValidation(), await m.post(
|
61
66
|
this.api || `/api/table/${this.token}`,
|
62
67
|
this.formValues
|
63
68
|
), await this.$router.back(), await this.$notify({
|
@@ -78,32 +83,32 @@ const y = {
|
|
78
83
|
}
|
79
84
|
}
|
80
85
|
}
|
81
|
-
},
|
82
|
-
function
|
86
|
+
}, $ = { class: "bg-gray-100 lg:w-[calc(100vw-260px)] w-[100vw]" }, V = { class: "h-[76px] mt-[15px] flex items-center justify-between mx-[20px] px-[20px] bg-white rounded-xl" }, _ = { class: "flex items-center gap-[6px]" }, j = { class: "bg-white w-full rounded-xl p-[20px] overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" };
|
87
|
+
function E(t, e, o, i, a, r) {
|
83
88
|
var l;
|
84
|
-
const s =
|
85
|
-
return
|
86
|
-
n("div",
|
89
|
+
const s = f("VsForm");
|
90
|
+
return b(), x("div", $, [
|
91
|
+
n("div", V, [
|
87
92
|
e[3] || (e[3] = n("h2", { class: "text-xl font-medium" }, "Створити", -1)),
|
88
|
-
n("div",
|
93
|
+
n("div", _, [
|
89
94
|
n("button", {
|
90
95
|
onClick: e[0] || (e[0] = (c) => t.$router.back()),
|
91
96
|
class: "flex items-center px-3 py-2 text-sm font-medium text-gray-800 duration-300 bg-white border border-gray-100 rounded-lg shadow gap-x-2 focus:outline-none hover:bg-gray-50 hover:border-gray-100"
|
92
97
|
}, " Скасувати "),
|
93
98
|
n("button", {
|
94
99
|
onClick: e[1] || (e[1] = (...c) => r.createObject && r.createObject(...c)),
|
95
|
-
class:
|
96
|
-
}, " Зберегти ")
|
100
|
+
class: w(`inline-flex items-center px-3 py-2 text-sm font-medium text-white duration-300 bg-${r.color}-700 border border-transparent rounded-lg gap-x-2 hover:bg-${r.color}-800 hover:text-white`)
|
101
|
+
}, " Зберегти ", 2)
|
97
102
|
])
|
98
103
|
]),
|
99
104
|
n("div", {
|
100
105
|
style: h({
|
101
106
|
height: ((l = t.$adminSettings) == null ? void 0 : l.header) === !1 ? "calc(100vh - 100px)" : "calc(100vh - 165px)"
|
102
107
|
}),
|
103
|
-
class: "bg-gray-
|
108
|
+
class: "bg-gray-100 p-[20px] flex lg:w-[calc(100vw-260px)] w-[100vw]"
|
104
109
|
}, [
|
105
|
-
n("div",
|
106
|
-
a.scheme ? (
|
110
|
+
n("div", j, [
|
111
|
+
a.scheme ? (b(), y(s, {
|
107
112
|
key: 0,
|
108
113
|
ref: "form",
|
109
114
|
scheme: a.scheme,
|
@@ -111,12 +116,12 @@ function _(t, e, o, i, a, r) {
|
|
111
116
|
modelValue: a.formValues,
|
112
117
|
"onUpdate:modelValue": e[2] || (e[2] = (c) => a.formValues = c),
|
113
118
|
class: "p-0 mt-[20px]"
|
114
|
-
}, null, 8, ["scheme", "style", "modelValue"])) :
|
119
|
+
}, null, 8, ["scheme", "style", "modelValue"])) : k("", !0)
|
115
120
|
])
|
116
121
|
], 4)
|
117
122
|
]);
|
118
123
|
}
|
119
|
-
const
|
124
|
+
const O = /* @__PURE__ */ p(v, [["render", E]]);
|
120
125
|
export {
|
121
|
-
|
126
|
+
O as default
|
122
127
|
};
|