@opengis/admin 0.1.12 → 0.1.14

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.
@@ -1,5 +1,5 @@
1
1
  import { u as L } from "./userMenu-CT1xO2Pt.js";
2
- import { _ as H, a as V } from "./import-file-Vd0__RP7.js";
2
+ import { _ as H, a as V } from "./import-file-BvbReH2G.js";
3
3
  import { resolveComponent as z, openBlock as s, createElementBlock as c, createElementVNode as l, toDisplayString as D, createVNode as N, withCtx as q, createTextVNode as B, normalizeClass as M, Fragment as b, renderList as C, createBlock as $, resolveDynamicComponent as T, createCommentVNode as x } from "vue";
4
4
  const E = {
5
5
  data() {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as e, openBlock as r, createBlock as t } from "vue";
2
- import { _ as c } from "./import-file-Vd0__RP7.js";
2
+ import { _ as c } from "./import-file-BvbReH2G.js";
3
3
  const n = {};
4
4
  function s(_, p, a, i, f, m) {
5
5
  const o = e("router-view");
@@ -1,6 +1,6 @@
1
1
  import { u as m } from "./userMenu-CT1xO2Pt.js";
2
- import { _ as h, a as c } from "./import-file-Vd0__RP7.js";
3
- import { resolveComponent as d, openBlock as u, createElementBlock as b, createElementVNode as n, createBlock as f, createCommentVNode as p } from "vue";
2
+ import { _ as d, a as i } from "./import-file-BvbReH2G.js";
3
+ import { resolveComponent as h, openBlock as u, createElementBlock as b, createElementVNode as n, createBlock as f, createCommentVNode as p } from "vue";
4
4
  const g = {
5
5
  data() {
6
6
  return {
@@ -20,37 +20,37 @@ const g = {
20
20
  }), e;
21
21
  },
22
22
  async getFormScheme() {
23
- var i, s;
23
+ var c, l;
24
24
  const t = this.flattenMenu(m.value);
25
25
  t != null && t.length || this.$router.replace("/404");
26
- const e = t == null ? void 0 : t.find((a) => {
27
- var l, r;
28
- return (a == null ? void 0 : a.path) == ((r = (l = this.$route) == null ? void 0 : l.query) == null ? void 0 : r.table);
26
+ const e = t == null ? void 0 : t.find((s) => {
27
+ var a, r;
28
+ return (s == null ? void 0 : s.path) == ((r = (a = this.$route) == null ? void 0 : a.query) == null ? void 0 : r.table);
29
29
  });
30
30
  e || this.$router.replace("/404");
31
31
  const o = e == null ? void 0 : e.table;
32
32
  this.table = o;
33
33
  try {
34
34
  const {
35
- data: { form: a }
36
- } = await c.get(`/api/template/table/${o}`), {
37
- data: { rows: l }
38
- } = await c.get(
39
- `/api/table-data/${this.table}/${(s = (i = this.$route) == null ? void 0 : i.query) == null ? void 0 : s.id}`
35
+ data: { form: s }
36
+ } = await i.get(`/api/template/table/${o}`), {
37
+ data: { rows: a }
38
+ } = await i.get(
39
+ `/api/table-data/${this.table}/${(l = (c = this.$route) == null ? void 0 : c.query) == null ? void 0 : l.id}`
40
40
  );
41
- this.formValues = l == null ? void 0 : l[0];
42
- const { data: r } = await c.get(`/api/template/form/${a}`);
41
+ this.formValues = a == null ? void 0 : a[0];
42
+ const { data: r } = await i.get(`/api/template/form/${s}`);
43
43
  this.scheme = (r == null ? void 0 : r.schema) || r;
44
44
  } catch {
45
45
  }
46
46
  },
47
47
  async editObject() {
48
- var t, e, o, i;
48
+ var t, e;
49
49
  try {
50
- await this.$refs.form.doValidation(), await c.put(
50
+ await this.$refs.form.doValidation(), await i.put(
51
51
  `/api/table/${this.table}/${(e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.id}`,
52
52
  this.formValues
53
- ), await this.$router.replace(`/${(i = (o = this.$route) == null ? void 0 : o.query) == null ? void 0 : i.table}`), await this.$notify({
53
+ ), await this.$router.back(), await this.$notify({
54
54
  title: "Успішно!",
55
55
  message: "Об'єкт успішно створено",
56
56
  type: "success"
@@ -67,9 +67,9 @@ const g = {
67
67
  }, 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 = {
68
68
  style: { height: "calc(100vh - 120px)", width: "calc(100vw - 260px)" },
69
69
  class: "bg-gray-50 p-[20px] flex"
70
- }, $ = { 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" };
71
- function v(t, e, o, i, s, a) {
72
- const l = d("VsForm");
70
+ }, 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" };
71
+ function $(t, e, o, c, l, s) {
72
+ const a = h("VsForm");
73
73
  return u(), b("div", x, [
74
74
  n("div", w, [
75
75
  e[3] || (e[3] = n("h2", { class: "text-xl font-medium" }, "Редагувати", -1)),
@@ -79,26 +79,26 @@ function v(t, e, o, i, s, a) {
79
79
  class: "py-2 px-3 flex items-center gap-x-2 text-sm font-medium rounded-lg border bg-white border-gray-100 text-gray-800 shadow focus:outline-none hover:bg-gray-50 hover:border-gray-100 duration-300"
80
80
  }, " Скасувати "),
81
81
  n("button", {
82
- onClick: e[1] || (e[1] = (...r) => a.editObject && a.editObject(...r)),
82
+ onClick: e[1] || (e[1] = (...r) => s.editObject && s.editObject(...r)),
83
83
  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"
84
84
  }, " Зберегти ")
85
85
  ])
86
86
  ]),
87
87
  n("div", k, [
88
- n("div", $, [
89
- s.scheme ? (u(), f(l, {
88
+ n("div", v, [
89
+ l.scheme ? (u(), f(a, {
90
90
  key: 0,
91
91
  ref: "form",
92
- scheme: s.scheme,
93
- modelValue: s.formValues,
94
- "onUpdate:modelValue": e[2] || (e[2] = (r) => s.formValues = r),
92
+ scheme: l.scheme,
93
+ modelValue: l.formValues,
94
+ "onUpdate:modelValue": e[2] || (e[2] = (r) => l.formValues = r),
95
95
  class: "p-0 mt-[20px]"
96
96
  }, null, 8, ["scheme", "modelValue"])) : p("", !0)
97
97
  ])
98
98
  ])
99
99
  ]);
100
100
  }
101
- const q = /* @__PURE__ */ h(g, [["render", v]]);
101
+ const C = /* @__PURE__ */ d(g, [["render", $]]);
102
102
  export {
103
- q as default
103
+ C as default
104
104
  };
@@ -3577,17 +3577,17 @@ function O2(s, i) {
3577
3577
  return [a, c, f];
3578
3578
  }
3579
3579
  const F2 = [
3580
- { name: "edit", path: "/edit", component: () => import("./edit-page-DDAyXMg3.js") },
3581
- { name: "add", path: "/add", component: () => import("./add-page-PUKoIJEK.js") },
3580
+ { name: "edit", path: "/edit", component: () => import("./edit-page-B2M7ufEc.js") },
3581
+ { name: "add", path: "/add", component: () => import("./add-page-Brc-OoJB.js") },
3582
3582
  {
3583
3583
  name: "card-view",
3584
3584
  path: "/card",
3585
- component: () => import("./card-view-liYS8py5.js"),
3585
+ component: () => import("./card-view-D6m2I429.js"),
3586
3586
  children: [{
3587
3587
  name: "table",
3588
3588
  path: ":table",
3589
- component: () => import("./card-view-liYS8py5.js"),
3590
- children: [{ name: "card", path: ":id", component: () => import("./card-page-DTM6Da4H.js") }]
3589
+ component: () => import("./card-view-D6m2I429.js"),
3590
+ children: [{ name: "card", path: ":id", component: () => import("./card-page-zKtW4FdS.js") }]
3591
3591
  }]
3592
3592
  }
3593
3593
  ], B2 = {}, N2 = { class: "bg-gray-200 w-full px-16 md:px-0 h-screen flex items-center justify-center" }, j2 = { class: "bg-white border border-gray-200 flex flex-col items-center justify-center px-4 md:px-8 lg:px-24 py-8 rounded-lg shadow-2xl" };
@@ -3635,13 +3635,13 @@ const $2 = /* @__PURE__ */ Xi(B2, [["render", V2]]), U2 = (s) => {
3635
3635
  {
3636
3636
  path: "/",
3637
3637
  name: "global",
3638
- component: () => import("./admin-view-pMbPvuzO.js"),
3638
+ component: () => import("./admin-view-CI7J2Yzg.js"),
3639
3639
  children: [
3640
3640
  ...i,
3641
3641
  ...s,
3642
3642
  {
3643
3643
  path: "/:catchAll(.*)",
3644
- component: () => import("./admin-interface-DOooQPLl.js")
3644
+ component: () => import("./admin-interface-Dd34YKTr.js")
3645
3645
  }
3646
3646
  ]
3647
3647
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/admin",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "This project Softpro Admin",
5
5
  "main": "dist/admin.js",
6
6
  "type": "module",