@opengis/admin 0.1.59 → 0.1.61

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
- import { _ as m, u as b, a as c } from "./import-file-BBA7riUK.js";
2
- import { resolveComponent as h, openBlock as i, createElementBlock as d, createElementVNode as a, createBlock as p, createCommentVNode as f } from "vue";
1
+ import { u as m } from "./userMenu-CT1xO2Pt.js";
2
+ import { _ as b, a as c } from "./import-file-bdYAo8iW.js";
3
+ import { resolveComponent as h, openBlock as i, createElementBlock as d, createElementVNode as a, createBlock as f, createCommentVNode as p } from "vue";
3
4
  const g = {
4
5
  data() {
5
6
  return {
@@ -19,7 +20,7 @@ const g = {
19
20
  }), e;
20
21
  },
21
22
  async getFormScheme() {
22
- const t = this.flattenMenu(b.value);
23
+ const t = this.flattenMenu(m.value);
23
24
  t != null && t.length || this.$router.replace("/404");
24
25
  const e = t == null ? void 0 : t.find((s) => {
25
26
  var r, l;
@@ -37,8 +38,9 @@ const g = {
37
38
  }
38
39
  },
39
40
  async createObject() {
41
+ var t, e;
40
42
  try {
41
- await this.$refs.form.doValidation(), await c.post(`/api/table/${this.table}`, this.formValues), await this.$router.back(), await this.$notify({
43
+ await this.$refs.form.doValidation(), await c.post(`/api/table/${this.table}`, this.formValues), await this.$router.replace(`/${(e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.table}`), await this.$notify({
42
44
  title: "Успішно!",
43
45
  message: "Об'єкт успішно створено",
44
46
  type: "success"
@@ -52,8 +54,8 @@ const g = {
52
54
  }
53
55
  }
54
56
  }
55
- }, x = { style: { width: "calc(100vw - 260px)" } }, w = { class: "h-[76px] bg-gray-50 flex items-center justify-between px-[30px]" }, y = { class: "flex items-center gap-[6px]" }, k = {
56
- style: { height: "calc(100vh - 150px)", width: "calc(100vw - 260px)" },
57
+ }, x = { style: { width: "calc(100vw - 260px)" } }, w = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, y = { class: "flex items-center gap-[6px]" }, k = {
58
+ style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
57
59
  class: "bg-gray-50 p-[20px] flex"
58
60
  }, v = { class: "bg-white w-full rounded-xl border 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" };
59
61
  function V(t, e, o, s, r, l) {
@@ -68,25 +70,25 @@ function V(t, e, o, s, r, l) {
68
70
  }, " Скасувати "),
69
71
  a("button", {
70
72
  onClick: e[1] || (e[1] = (...n) => l.createObject && l.createObject(...n)),
71
- class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 hover:text-white duration-300"
73
+ class: "py-2 px-3 flex items-center gap-x-2 text-sm text-white font-medium rounded-lg border-none bg-blue-500 text-gray-800 shadow-sm focus:border-none focus:outline-none hover:bg-blue-700 hover:text-white duration-300"
72
74
  }, " Зберегти ")
73
75
  ])
74
76
  ]),
75
77
  a("div", k, [
76
78
  a("div", v, [
77
- r.scheme ? (i(), p(u, {
79
+ r.scheme ? (i(), f(u, {
78
80
  key: 0,
79
81
  ref: "form",
80
82
  scheme: r.scheme,
81
83
  modelValue: r.formValues,
82
84
  "onUpdate:modelValue": e[2] || (e[2] = (n) => r.formValues = n),
83
85
  class: "p-0 mt-[20px]"
84
- }, null, 8, ["scheme", "modelValue"])) : f("", !0)
86
+ }, null, 8, ["scheme", "modelValue"])) : p("", !0)
85
87
  ])
86
88
  ])
87
89
  ]);
88
90
  }
89
- const j = /* @__PURE__ */ m(g, [["render", V]]);
91
+ const C = /* @__PURE__ */ b(g, [["render", V]]);
90
92
  export {
91
- j as default
93
+ C as default
92
94
  };