@opengis/admin 0.1.2 → 0.1.4

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.
Files changed (48) hide show
  1. package/dist/add-page-D6D_vCdT.js +94 -0
  2. package/dist/{admin-interface-vPkHXzQK.js → admin-interface-BpAoXL6Y.js} +236 -208
  3. package/dist/{admin-view-BYF4ITZY.js → admin-view-Ctnb3YHc.js} +10 -10
  4. package/dist/admin.js +1 -1
  5. package/dist/admin.umd.cjs +618 -25
  6. package/dist/card-page-CDUWky8v.js +133 -0
  7. package/dist/{card-view-CjZRvfqy.js → card-view-BdtKFM_Q.js} +1 -1
  8. package/dist/edit-page-Bl7TSfk5.js +104 -0
  9. package/dist/import-file-bAV0TNST.js +29762 -0
  10. package/dist/style.css +1 -1
  11. package/package.json +18 -5
  12. package/plugin.js +1 -1
  13. package/server/plugins/vite.js +13 -8
  14. package/server/routes/data/controllers/cardData.js +1 -1
  15. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +82 -0
  16. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +142 -0
  17. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -0
  18. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +67 -0
  19. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -0
  20. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -0
  21. package/server/routes/data/controllers/tableData.js +12 -31
  22. package/server/routes/data/controllers/tableFilter.js +1 -1
  23. package/server/routes/data/controllers/utils/assignTokens.js +31 -0
  24. package/server/routes/data/index.mjs +1 -1
  25. package/server/routes/templates/controllers/getTemplate.js +2 -4
  26. package/server/templates/cls/itree.recrzone_category.json +74 -0
  27. package/dist/add-page-C-msiPrU.js +0 -64
  28. package/dist/card-page-HOwuHNjV.js +0 -49
  29. package/dist/edit-page-7yrRusn4.js +0 -58
  30. package/dist/form-TrZSpRSC.js +0 -38
  31. package/dist/import-file-DPHo57R5.js +0 -3726
  32. package/server/routes/data/controllers/metaFormat/getSelectVal.js +0 -19
  33. package/server/routes/data/controllers/metaFormat/index.js +0 -29
  34. package/server/routes/templates/funcs/addTempateFolder.js +0 -47
  35. package/server/routes/templates/funcs/getTemplate.js +0 -70
  36. package/server/routes/templates/funcs/getTemplatePath.js +0 -39
  37. package/server/routes/templates/funcs/loadTemplate.js +0 -1
  38. package/server/routes/templates/funcs/loadTemplateDir.js +0 -1
  39. package/server/routes/templates/funcs/loadTemplatePath.js +0 -1
  40. package/server/templates/interface/management.user_group.html +0 -1
  41. package/server/templates/interface/management.user_group.json +0 -10
  42. package/server/templates/interface/management.users.html +0 -1
  43. package/server/templates/interface/management.users.json +0 -10
  44. package/server/templates/map/dgm_level_line.xml +0 -52
  45. package/server/templates/pt/admin-menu-pt.html +0 -108
  46. package/server/templates/pt/management.user_group.table.pt.html +0 -127
  47. package/server/templates/pt/management.users.table.pt.html +0 -130
  48. package/server/templates/pt/table-standard-pt.html +0 -202
@@ -1,5 +1,5 @@
1
1
  import tableData from "./controllers/tableData.js";
2
- import tableDataId from "./controllers/tableDataId.js";
2
+ // import tableDataId from "./controllers/tableDataId.js";
3
3
  import cardData from "./controllers/cardData.js";
4
4
  import tableFilter from "./controllers/tableFilter.js";
5
5
 
@@ -1,8 +1,6 @@
1
- import getTemplate from "../funcs/getTemplate.js"
1
+ import { getTemplate } from "@opengis/fastify-table/utils.js"
2
2
 
3
- export default async function getTemplateApi({
4
- params = {},
5
- }) {
3
+ export default async function getTemplateApi({ params }) {
6
4
  const { type, name } = params;
7
5
  const data = await getTemplate(type, name);
8
6
  return data || { message: `template not found "${name}"`, status: 404 };
@@ -0,0 +1,74 @@
1
+ [
2
+ {
3
+ "id": "12",
4
+ "text": "Розділювальна смуга",
5
+ "color": "#85754e",
6
+ "en": "Dividing line"
7
+ },
8
+ {
9
+ "id": "6",
10
+ "text": "Бульвар",
11
+ "color": "#00703c",
12
+ "en": "Boulevard"
13
+ },
14
+ {
15
+ "id": "1",
16
+ "text": "Вуличні насадження",
17
+ "color": "#8fbc8f",
18
+ "en": "Street plantings"
19
+ },
20
+ {
21
+ "id": "2",
22
+ "text": "Парк",
23
+ "color": "#a2cd5a",
24
+ "en": "Park"
25
+ },
26
+ {
27
+ "id": "3",
28
+ "text": "Сад",
29
+ "color": "#5e8c31",
30
+ "en": "Garden"
31
+ },
32
+ {
33
+ "id": "4",
34
+ "text": "Сквер",
35
+ "color": "#00ced1",
36
+ "en": "Square"
37
+ },
38
+ {
39
+ "id": "9",
40
+ "text": "Рекреаційна зона",
41
+ "color": "#e1a95f",
42
+ "en": "Recreational zone"
43
+ },
44
+ {
45
+ "id": "10",
46
+ "text": "Санітарно-захисна зона",
47
+ "color": "#6e7b8b",
48
+ "en": "Sanitary protection zone"
49
+ },
50
+ {
51
+ "id": "11",
52
+ "text": "Зелені насадження прибудинкової території",
53
+ "color": "#ace1af",
54
+ "en": "Green plantations in local areas"
55
+ },
56
+ {
57
+ "id": "5",
58
+ "text": "Прибережні зелені насадження",
59
+ "color": "#698b69",
60
+ "en": "Coastal green plantations"
61
+ },
62
+ {
63
+ "id": "7",
64
+ "text": "Лісопарк",
65
+ "color": "#6e8b3d",
66
+ "en": "Forest park"
67
+ },
68
+ {
69
+ "id": "8",
70
+ "text": "Міський ліс",
71
+ "color": "#4a5d23",
72
+ "en": "Urban forest"
73
+ }
74
+ ]
@@ -1,64 +0,0 @@
1
- import "./userMenu-CT1xO2Pt.js";
2
- import { f as d } from "./form-TrZSpRSC.js";
3
- import { resolveComponent as u, openBlock as m, createElementBlock as i, createElementVNode as t, createVNode as p } from "vue";
4
- import { _ as c } from "./import-file-DPHo57R5.js";
5
- const f = {
6
- data() {
7
- return {
8
- formValues: {}
9
- };
10
- },
11
- computed: {
12
- form() {
13
- return d;
14
- }
15
- },
16
- mounted() {
17
- },
18
- methods: {
19
- flattenMenu(o) {
20
- const e = [];
21
- return o.forEach((r) => {
22
- r.menu ? e.push(...this.flattenMenu(r.menu)) : e.push(r);
23
- }), e;
24
- }
25
- },
26
- async createObject() {
27
- try {
28
- await axios.post("/api/", this.formValues), await this.$router.replace("");
29
- } catch {
30
- }
31
- }
32
- }, x = { style: { width: "calc(100vw - 260px)" } }, h = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, g = { class: "flex items-center gap-[6px]" }, b = {
33
- style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
34
- class: "bg-gray-50 p-[20px] flex"
35
- }, v = { class: "bg-white w-full rounded-xl border p-[20px]" };
36
- function w(o, e, r, y, s, l) {
37
- const a = u("VsForm");
38
- return m(), i("div", x, [
39
- t("div", h, [
40
- e[3] || (e[3] = t("h2", { class: "text-xl font-medium" }, "Створити", -1)),
41
- t("div", g, [
42
- t("button", {
43
- onClick: e[0] || (e[0] = (n) => o.$router.back()),
44
- 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"
45
- }, " Скасувати "),
46
- e[2] || (e[2] = t("button", { 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" }, " Зберегти ", -1))
47
- ])
48
- ]),
49
- t("div", b, [
50
- t("div", v, [
51
- p(a, {
52
- scheme: l.form,
53
- modelValue: s.formValues,
54
- "onUpdate:modelValue": e[1] || (e[1] = (n) => s.formValues = n),
55
- class: "p-0 mt-[20px]"
56
- }, null, 8, ["scheme", "modelValue"])
57
- ])
58
- ])
59
- ]);
60
- }
61
- const E = /* @__PURE__ */ c(f, [["render", w]]);
62
- export {
63
- E as default
64
- };
@@ -1,49 +0,0 @@
1
- import { _ as n, a as c } from "./import-file-DPHo57R5.js";
2
- import { openBlock as i, createElementBlock as l, createElementVNode as t } from "vue";
3
- const d = {
4
- data() {
5
- return {
6
- objectData: null
7
- };
8
- },
9
- mounted() {
10
- this.getObjectData();
11
- },
12
- methods: {
13
- async getObjectData() {
14
- var a, r;
15
- const { table: s, id: o } = (a = this.$route) == null ? void 0 : a.params;
16
- (!s || !o) && this.$router.replace("/404");
17
- try {
18
- const { data: e } = await c.get(`/api/table-data/${s}/${o}`);
19
- this.objectData = (r = e == null ? void 0 : e.data) == null ? void 0 : r.general_info, console.log(e == null ? void 0 : e.rows);
20
- } catch {
21
- }
22
- }
23
- }
24
- }, p = { style: { width: "calc(100vw - 260px)" } }, x = {
25
- style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
26
- class: "bg-gray-50 p-[20px] flex"
27
- }, u = { class: "p-[20px]" }, h = ["innerHTML"];
28
- function b(s, o, a, r, e, f) {
29
- return i(), l("div", p, [
30
- o[0] || (o[0] = t("div", { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, [
31
- t("h2", { class: "text-xl font-medium" }, "Створити"),
32
- t("div", { class: "flex items-center gap-[6px]" }, [
33
- t("button", { 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" }, " Редагувати ")
34
- ])
35
- ], -1)),
36
- t("div", x, [
37
- t("div", u, [
38
- t("div", {
39
- class: "bg-white w-full rounded-xl border p-[20px]",
40
- innerHTML: e.objectData
41
- }, null, 8, h)
42
- ])
43
- ])
44
- ]);
45
- }
46
- const _ = /* @__PURE__ */ n(d, [["render", b]]);
47
- export {
48
- _ as default
49
- };
@@ -1,58 +0,0 @@
1
- import "./userMenu-CT1xO2Pt.js";
2
- import { f as u } from "./form-TrZSpRSC.js";
3
- import { resolveComponent as m, openBlock as a, createElementBlock as i, createElementVNode as t, createVNode as p } from "vue";
4
- import { _ as c } from "./import-file-DPHo57R5.js";
5
- const f = {
6
- data() {
7
- return {
8
- formValues: {}
9
- };
10
- },
11
- computed: {
12
- form() {
13
- return u;
14
- }
15
- },
16
- mounted() {
17
- },
18
- methods: {
19
- flattenMenu(r) {
20
- const e = [];
21
- return r.forEach((o) => {
22
- o.menu ? e.push(...this.flattenMenu(o.menu)) : e.push(o);
23
- }), e;
24
- }
25
- }
26
- }, x = { style: { width: "calc(100vw - 260px)" } }, h = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, g = { class: "flex items-center gap-[6px]" }, b = {
27
- style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
28
- class: "bg-gray-50 p-[20px] flex"
29
- }, v = { class: "bg-white w-full rounded-xl border p-[20px]" };
30
- function w(r, e, o, y, s, l) {
31
- const d = m("VsForm");
32
- return a(), i("div", x, [
33
- t("div", h, [
34
- e[3] || (e[3] = t("h2", { class: "text-xl font-medium" }, "Створити", -1)),
35
- t("div", g, [
36
- t("button", {
37
- onClick: e[0] || (e[0] = (n) => r.$router.back()),
38
- class: "py-2 px-3 flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-100 text-gray-800 shadow bg-white focus:outline-none hover:bg-gray-50 hover:border-gray-100 duration-300"
39
- }, " Скасувати "),
40
- e[2] || (e[2] = t("button", { 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" }, " Зберегти ", -1))
41
- ])
42
- ]),
43
- t("div", b, [
44
- t("div", v, [
45
- p(d, {
46
- scheme: l.form,
47
- modelValue: s.formValues,
48
- "onUpdate:modelValue": e[1] || (e[1] = (n) => s.formValues = n),
49
- class: "p-0 mt-[20px]"
50
- }, null, 8, ["scheme", "modelValue"])
51
- ])
52
- ])
53
- ]);
54
- }
55
- const $ = /* @__PURE__ */ c(f, [["render", w]]);
56
- export {
57
- $ as default
58
- };
@@ -1,38 +0,0 @@
1
- const e = {
2
- ua: "Прізвище",
3
- type: "text",
4
- validators: [
5
- "required"
6
- ]
7
- }, a = {
8
- ua: "Ім'я",
9
- type: "text",
10
- validators: [
11
- "required"
12
- ]
13
- }, t = {
14
- ua: "По батькові",
15
- type: "text"
16
- }, r = {
17
- ua: "Email",
18
- type: "email",
19
- validators: [
20
- "required"
21
- ]
22
- }, n = {
23
- ua: "Номер телефону",
24
- type: "text"
25
- }, s = {
26
- ua: "Аватар",
27
- type: "file"
28
- }, o = {
29
- sur_name: e,
30
- user_name: a,
31
- father_name: t,
32
- email: r,
33
- phone: n,
34
- avatar: s
35
- };
36
- export {
37
- o as f
38
- };