@opengis/surveyor 0.0.15 → 0.0.16

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 (60) hide show
  1. package/dist/chunks/{AppIcon-Di5F4Bu_.js → AppIcon-CO70tpMX.js} +1 -1
  2. package/dist/chunks/{AppealDetailField-DNpsGpPY.js → AppealDetailField-DNRGpnyD.js} +2 -2
  3. package/dist/chunks/AppealStatusBadge-7KruOSVI.js +295 -0
  4. package/dist/chunks/{AppealStatusBadge-z77wwkFD.js → AppealStatusBadge-BlAaNUSK.js} +2 -2
  5. package/dist/chunks/ApplicationGeometryExportModal-DJbnKPm6.js +1245 -0
  6. package/dist/chunks/{BaseModal-DP_ilBdg.js → BaseModal-BJxKuONh.js} +2 -2
  7. package/dist/chunks/{FormFilePicker-D5fAUE0Z.js → FormFilePicker-DxPQlxgy.js} +2 -2
  8. package/dist/chunks/{MapLayerMenu-CI5cbLEC.js → MapLayerMenu-AUeTqgEp.js} +1 -1
  9. package/dist/chunks/{RegistryForm-Ct8xiLV0.js → RegistryForm-BlK1lExt.js} +1 -1
  10. package/dist/chunks/{RegistryFormModal-DTi3g3CX.js → RegistryFormModal-BmBsUOF3.js} +3 -3
  11. package/dist/chunks/{RegistryToolbar-v7DdReH2.js → RegistryToolbar-DXOEcD84.js} +5 -5
  12. package/dist/chunks/SurveyorTeleport-Cd6D92mo.js +30 -0
  13. package/dist/chunks/{TablePagination-Iri38U68.js → TablePagination-CUtnDQQ_.js} +2 -2
  14. package/dist/chunks/{UserAccessBadge-B5Q1LvNv.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
  15. package/dist/chunks/{UserTypeBadge-CuAMctTK.js → UserTypeBadge-LvnMuKGo.js} +1 -1
  16. package/dist/chunks/{VerifiedBadge-D6L7mCdp.js → VerifiedBadge-bk0n-rlC.js} +2 -2
  17. package/dist/chunks/{applications-D6pHAQaK.js → applications-B6GAxopO.js} +16 -19
  18. package/dist/chunks/card-B113dNzv.js +1327 -0
  19. package/dist/chunks/card-COmcUdms.js +639 -0
  20. package/dist/chunks/{card-Ba8_kfj9.js → card-DEJs9IIP.js} +4 -4
  21. package/dist/chunks/{card-CJhdeB6f.js → card-Deae73xd.js} +10 -10
  22. package/dist/chunks/{card-TP5UFJb2.js → card-VnUCFC7v.js} +5 -5
  23. package/dist/chunks/{card-DcYkb_aF.js → card-_YyJbLNI.js} +6 -6
  24. package/dist/chunks/{certificates-Ew5AekPn.js → certificates-DHf1zGQs.js} +23 -13
  25. package/dist/chunks/{create-CSIDl4gP.js → create-BVPqfJOb.js} +18 -18
  26. package/dist/chunks/{forgot-DnixBqdc.js → forgot-DoG6vXhq.js} +2 -2
  27. package/dist/chunks/{login-BWCQdEkv.js → login-BWGylcSU.js} +2 -2
  28. package/dist/chunks/{map-mZ8Rn4aR.js → map-BZi4eVl3.js} +894 -898
  29. package/dist/chunks/{map-layers-BdWEHPLx.js → map-layers-CKZK50de.js} +6 -6
  30. package/dist/chunks/{organizations-D0o0e_ps.js → organizations-DYGfYfHS.js} +7 -7
  31. package/dist/chunks/{profile-F7mr0poI.js → profile-CkwMFh82.js} +3 -3
  32. package/dist/chunks/{registration-BRF4985_.js → registration-3GLgq-ae.js} +2 -2
  33. package/dist/chunks/{requests-BCJN-CNx.js → requests-D1ix8U5f.js} +6 -6
  34. package/dist/chunks/requests-v1jHarHb.js +303 -0
  35. package/dist/chunks/{reset-OZCgLi6f.js → reset-CP9LsLkC.js} +2 -2
  36. package/dist/chunks/{useEntityPath-8s0Y1tjA.js → useEntityPath-C5Owtidc.js} +1 -1
  37. package/dist/chunks/{users-Dr543AYk.js → users-frk3gmmd.js} +7 -7
  38. package/dist/index.css +1 -1
  39. package/dist/index.js +47 -47
  40. package/migrations/20261016120000_map_layers.sql +156 -156
  41. package/migrations/20261016150000_password_reset.sql +15 -15
  42. package/migrations/20261016180000_settlement_lookup.sql +16 -16
  43. package/package.json +83 -83
  44. package/server/dictionaries/index.ts +17 -17
  45. package/server/dictionaries/surveyor/map_layer_components.ts +11 -11
  46. package/server/dictionaries/surveyor/map_layer_groups.ts +10 -10
  47. package/server/dictionaries/surveyor/map_layer_types.ts +11 -11
  48. package/server/modules/surveyor/services/mapLayers.ts +61 -61
  49. package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -79
  50. package/server/resources/helpers/settlement_lookup.ts +7 -7
  51. package/server/resources/surveyor-admin/applications.ts +11 -10
  52. package/server/resources/surveyor-admin/certificates.ts +25 -25
  53. package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
  54. package/server/suggests/index.ts +18 -1
  55. package/dist/chunks/AppealStatusBadge-COxcUM2Q.js +0 -185
  56. package/dist/chunks/ApplicationHistorySection-DHq-iJla.js +0 -788
  57. package/dist/chunks/SurveyorTeleport-D6-KXe_5.js +0 -23
  58. package/dist/chunks/card-CF5Lo4ui.js +0 -609
  59. package/dist/chunks/card-CVujkVkR.js +0 -1193
  60. package/dist/chunks/requests-F0Kp8OPp.js +0 -234
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./SurveyorTeleport-D6-KXe_5.js";
2
+ import { t } from "./SurveyorTeleport-Cd6D92mo.js";
3
3
  import { Transition as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, toDisplayString as f, withCtx as p, withModifiers as m } from "vue";
4
4
  //#region admin/src/components/ui/BaseModal.vue?vue&type=script&setup=true&lang.ts
5
5
  var h = /*@__PURE__*/ c({
@@ -94,7 +94,7 @@ function b(e, t, c, h, b, x) {
94
94
  var x = /*#__PURE__*/ e(h, [
95
95
  ["render", b],
96
96
  ["__scopeId", "data-v-637bdb40"],
97
- ["__file", "D:/softpro/surveyor/admin/src/components/ui/BaseModal.vue"]
97
+ ["__file", "C:/softpro/surveyor/admin/src/components/ui/BaseModal.vue"]
98
98
  ]);
99
99
  //#endregion
100
100
  export { x as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./AppIcon-Di5F4Bu_.js";
2
+ import { t } from "./AppIcon-CO70tpMX.js";
3
3
  import { createElementBlock as n, createElementVNode as r, createTextVNode as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, toDisplayString as l, watch as u } from "vue";
4
4
  //#region cabinet/src/components/ui/FormFilePicker.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = /*@__PURE__*/ o({
@@ -71,6 +71,6 @@ function b(e, t, o, c, u, d) {
71
71
  onChange: c.onInputChange
72
72
  }, null, 40, y)]);
73
73
  }
74
- var x = /*#__PURE__*/ e(d, [["render", b], ["__file", "D:/softpro/surveyor/cabinet/src/components/ui/FormFilePicker.vue"]]);
74
+ var x = /*#__PURE__*/ e(d, [["render", b], ["__file", "C:/softpro/surveyor/cabinet/src/components/ui/FormFilePicker.vue"]]);
75
75
  //#endregion
76
76
  export { x as t };
@@ -140,6 +140,6 @@ function C(e, t, s, u, d, p) {
140
140
  ], 64)) : r("", !0)
141
141
  ], 2)) : r("", !0)], 2);
142
142
  }
143
- var w = /*#__PURE__*/ e(g, [["render", C], ["__file", "D:/softpro/surveyor/shared/map/components/MapLayerMenu.vue"]]);
143
+ var w = /*#__PURE__*/ e(g, [["render", C], ["__file", "C:/softpro/surveyor/shared/map/components/MapLayerMenu.vue"]]);
144
144
  //#endregion
145
145
  export { w as t };
@@ -94,6 +94,6 @@ function _(e, t, n, s, l, d) {
94
94
  }, u(s.isEdit ? "Зберегти" : "Створити"), 1)]))
95
95
  ]);
96
96
  }
97
- var v = /*#__PURE__*/ e(p, [["render", _], ["__file", "D:/softpro/surveyor/admin/src/components/registry/RegistryForm.vue"]]);
97
+ var v = /*#__PURE__*/ e(p, [["render", _], ["__file", "C:/softpro/surveyor/admin/src/components/registry/RegistryForm.vue"]]);
98
98
  //#endregion
99
99
  export { v as t };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./BaseModal-DP_ilBdg.js";
3
- import { t as n } from "./RegistryForm-Ct8xiLV0.js";
2
+ import { t } from "./BaseModal-BJxKuONh.js";
3
+ import { t as n } from "./RegistryForm-BlK1lExt.js";
4
4
  import { createBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, toDisplayString as l, withCtx as u } from "vue";
5
5
  //#region admin/src/components/registry/RegistryFormModal.vue?vue&type=script&setup=true&lang.ts
6
6
  var d = /*@__PURE__*/ o({
@@ -80,6 +80,6 @@ function p(e, t, n, o, c, d) {
80
80
  "width"
81
81
  ]);
82
82
  }
83
- var m = /*#__PURE__*/ e(d, [["render", p], ["__file", "D:/softpro/surveyor/admin/src/components/registry/RegistryFormModal.vue"]]);
83
+ var m = /*#__PURE__*/ e(d, [["render", p], ["__file", "C:/softpro/surveyor/admin/src/components/registry/RegistryFormModal.vue"]]);
84
84
  //#endregion
85
85
  export { m as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { n as t } from "./useEntityPath-8s0Y1tjA.js";
2
+ import { n as t } from "./useEntityPath-C5Owtidc.js";
3
3
  import { l as n, o as r, s as i } from "./filterQuery-Dka-mIso.js";
4
4
  import { t as a } from "./buildSchema-DEfhZEM8.js";
5
5
  import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, watch as S } from "vue";
@@ -113,7 +113,7 @@ var D = /*@__PURE__*/ m({
113
113
  function j(e, t, n, r, i, a) {
114
114
  return _(), u("header", O, [d("div", null, [d("h1", k, x(n.title), 1), d("p", A, x(n.subtitle), 1)]), b(e.$slots, "default")]);
115
115
  }
116
- var M = /*#__PURE__*/ e(D, [["render", j], ["__file", "D:/softpro/surveyor/admin/src/components/ui/PageHeader.vue"]]), N = /*@__PURE__*/ m({
116
+ var M = /*#__PURE__*/ e(D, [["render", j], ["__file", "C:/softpro/surveyor/admin/src/components/ui/PageHeader.vue"]]), N = /*@__PURE__*/ m({
117
117
  __name: "RegistryTable",
118
118
  props: {
119
119
  rows: {
@@ -233,7 +233,7 @@ function V(e, t, n, r, i, a) {
233
233
  }, x(n.emptyText), 9, B)])) : l("", !0)])
234
234
  ], 4)], 2);
235
235
  }
236
- var H = /*#__PURE__*/ e(N, [["render", V], ["__file", "D:/softpro/surveyor/admin/src/components/table/RegistryTable.vue"]]), U = /*@__PURE__*/ m({
236
+ var H = /*#__PURE__*/ e(N, [["render", V], ["__file", "C:/softpro/surveyor/admin/src/components/table/RegistryTable.vue"]]), U = /*@__PURE__*/ m({
237
237
  __name: "RegistryFilter",
238
238
  props: {
239
239
  config: {
@@ -284,7 +284,7 @@ function W(e, t, n, r, i, a) {
284
284
  "value"
285
285
  ]);
286
286
  }
287
- var G = /*#__PURE__*/ e(U, [["render", W], ["__file", "D:/softpro/surveyor/admin/src/components/registry/RegistryFilter.vue"]]), K = /*@__PURE__*/ m({
287
+ var G = /*#__PURE__*/ e(U, [["render", W], ["__file", "C:/softpro/surveyor/admin/src/components/registry/RegistryFilter.vue"]]), K = /*@__PURE__*/ m({
288
288
  __name: "RegistryToolbar",
289
289
  props: {
290
290
  filterConfig: {
@@ -338,6 +338,6 @@ function J(e, t, n, r, i, a) {
338
338
  e.$slots.actions ? (_(), u("div", q, [b(e.$slots, "actions")])) : l("", !0)
339
339
  ], 2);
340
340
  }
341
- var Y = /*#__PURE__*/ e(K, [["render", J], ["__file", "D:/softpro/surveyor/admin/src/components/registry/RegistryToolbar.vue"]]);
341
+ var Y = /*#__PURE__*/ e(K, [["render", J], ["__file", "C:/softpro/surveyor/admin/src/components/registry/RegistryToolbar.vue"]]);
342
342
  //#endregion
343
343
  export { E as i, H as n, M as r, Y as t };
@@ -0,0 +1,30 @@
1
+ import { i as e } from "./dom-BSjFG3O0.js";
2
+ import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { Teleport as n, createBlock as r, defineComponent as i, onMounted as a, openBlock as o, ref as s, renderSlot as c } from "vue";
4
+ //#region shared/surveyor/SurveyorTeleport.vue?vue&type=script&setup=true&lang.ts
5
+ var l = /*@__PURE__*/ i({
6
+ __name: "SurveyorTeleport",
7
+ setup(t, { expose: n }) {
8
+ n();
9
+ let r = s(e());
10
+ a(() => {
11
+ document.getElementById("surveyor-portal") || (r.value = "body");
12
+ });
13
+ let i = { target: r };
14
+ return Object.defineProperty(i, "__isScriptSetup", {
15
+ enumerable: !1,
16
+ value: !0
17
+ }), i;
18
+ }
19
+ });
20
+ //#endregion
21
+ //#region shared/surveyor/SurveyorTeleport.vue
22
+ function u(e, t, i, a, s, l) {
23
+ return o(), r(n, {
24
+ defer: "",
25
+ to: a.target
26
+ }, [c(e.$slots, "default")], 8, ["to"]);
27
+ }
28
+ var d = /*#__PURE__*/ t(l, [["render", u], ["__file", "C:/softpro/surveyor/shared/surveyor/SurveyorTeleport.vue"]]);
29
+ //#endregion
30
+ export { d as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { n as t } from "./useEntityPath-8s0Y1tjA.js";
2
+ import { n as t } from "./useEntityPath-C5Owtidc.js";
3
3
  import { Fragment as n, computed as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, renderList as u, toDisplayString as d } from "vue";
4
4
  //#region admin/src/components/table/TablePagination.vue?vue&type=script&setup=true&lang.ts
5
5
  var f = /*@__PURE__*/ c({
@@ -111,6 +111,6 @@ function k(e, t, r, c, f, k) {
111
111
  })], 8, O)
112
112
  ])]);
113
113
  }
114
- var A = /*#__PURE__*/ e(f, [["render", k], ["__file", "D:/softpro/surveyor/admin/src/components/table/TablePagination.vue"]]);
114
+ var A = /*#__PURE__*/ e(f, [["render", k], ["__file", "C:/softpro/surveyor/admin/src/components/table/TablePagination.vue"]]);
115
115
  //#endregion
116
116
  export { A as t };
@@ -39,6 +39,6 @@ var s = /*@__PURE__*/ r({
39
39
  function c(e, t, r, s, c, l) {
40
40
  return a(), n("span", { class: i(["inline-flex items-center whitespace-nowrap rounded-full px-2.5 py-1 text-xs font-semibold", s.status.class]) }, o(s.status.label), 3);
41
41
  }
42
- var l = /*#__PURE__*/ e(s, [["render", c], ["__file", "D:/softpro/surveyor/admin/src/components/ui/UserAccessBadge.vue"]]);
42
+ var l = /*#__PURE__*/ e(s, [["render", c], ["__file", "C:/softpro/surveyor/admin/src/components/ui/UserAccessBadge.vue"]]);
43
43
  //#endregion
44
44
  export { l as t };
@@ -183,6 +183,6 @@ function v(e, t, n, r, i, c) {
183
183
  r.config.border
184
184
  ]]) }, [o("span", { class: l(["h-1.5 w-1.5 rounded-full", r.config.dot]) }, null, 2), s(" " + d(r.config.label), 1)], 2);
185
185
  }
186
- var y = /*#__PURE__*/ t(_, [["render", v], ["__file", "D:/softpro/surveyor/admin/src/components/ui/UserTypeBadge.vue"]]);
186
+ var y = /*#__PURE__*/ t(_, [["render", v], ["__file", "C:/softpro/surveyor/admin/src/components/ui/UserTypeBadge.vue"]]);
187
187
  //#endregion
188
188
  export { f as i, g as n, p as r, y as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { n as t } from "./useEntityPath-8s0Y1tjA.js";
2
+ import { n as t } from "./useEntityPath-C5Owtidc.js";
3
3
  import { createElementBlock as n, createTextVNode as r, createVNode as i, defineComponent as a, openBlock as o } from "vue";
4
4
  //#region admin/src/components/ui/VerifiedBadge.vue?vue&type=script&setup=true&lang.ts
5
5
  var s = /*@__PURE__*/ a({
@@ -29,6 +29,6 @@ function u(e, t, a, s, u, d) {
29
29
  class: "h-3.5 w-3.5"
30
30
  }), t[0] ||= r(" Так ", -1)])) : (o(), n("span", l, " Ні "));
31
31
  }
32
- var d = /*#__PURE__*/ e(s, [["render", u], ["__file", "D:/softpro/surveyor/admin/src/components/ui/VerifiedBadge.vue"]]);
32
+ var d = /*#__PURE__*/ e(s, [["render", u], ["__file", "C:/softpro/surveyor/admin/src/components/ui/VerifiedBadge.vue"]]);
33
33
  //#endregion
34
34
  export { d as t };
@@ -52,36 +52,33 @@ async function s(e) {
52
52
  function c(e) {
53
53
  return t(`/api/file/${encodeURIComponent(e)}?download=true`);
54
54
  }
55
- function l(e) {
56
- return t(`/api/surveyor/applications/${encodeURIComponent(e)}/export/geometry`);
57
- }
58
- function u(t, n) {
55
+ function l(t, n) {
59
56
  try {
60
57
  let e = JSON.parse(t);
61
58
  if (e.detail) return e.detail;
62
59
  } catch {}
63
60
  return e(t, n);
64
61
  }
65
- async function d(e) {
62
+ async function u(e) {
66
63
  let n = await fetch(t("/api/surveyor/applications"), {
67
64
  method: "POST",
68
65
  credentials: "include",
69
66
  headers: { "Content-Type": "application/json" },
70
67
  body: JSON.stringify(e)
71
68
  });
72
- if (!n.ok) throw Error(u(await n.text(), n.status));
69
+ if (!n.ok) throw Error(l(await n.text(), n.status));
73
70
  return n.json();
74
71
  }
75
- var f = 52428800, p = /* @__PURE__ */ new Set([
72
+ var d = 52428800, f = /* @__PURE__ */ new Set([
76
73
  "zip",
77
74
  "geojson",
78
75
  "json"
79
76
  ]);
80
- function m(e) {
77
+ function p(e) {
81
78
  let t = e.split(/[/\\]/).pop() ?? e, n = t.lastIndexOf(".");
82
79
  return n >= 0 ? t.slice(n + 1).toLowerCase() : "";
83
80
  }
84
- function h(e) {
81
+ function m(e) {
85
82
  return new Promise((t, n) => {
86
83
  let r = new FileReader();
87
84
  r.onload = () => {
@@ -94,12 +91,12 @@ function h(e) {
94
91
  }, r.onerror = () => n(/* @__PURE__ */ Error("Не вдалося прочитати файл")), r.readAsDataURL(e);
95
92
  });
96
93
  }
97
- async function g(e) {
98
- let r = m(e.name);
99
- if (!p.has(r)) throw Error("Підтримуються файли ZIP (Shapefile) та GeoJSON");
94
+ async function h(e) {
95
+ let r = p(e.name);
96
+ if (!f.has(r)) throw Error("Підтримуються файли ZIP (Shapefile) та GeoJSON");
100
97
  if (!e.size) throw Error("Файл порожній");
101
- if (e.size > f) throw Error("Файл перевищує ліміт 50 МіБ");
102
- let i = await h(e), a = await fetch(t("/api/surveyor/import/geometry"), {
98
+ if (e.size > d) throw Error("Файл перевищує ліміт 50 МіБ");
99
+ let i = await m(e), a = await fetch(t("/api/surveyor/import/geometry"), {
103
100
  method: "POST",
104
101
  credentials: "include",
105
102
  headers: { "Content-Type": "application/json" },
@@ -108,7 +105,7 @@ async function g(e) {
108
105
  filename: e.name
109
106
  })
110
107
  });
111
- if (!a.ok) throw Error(u(await a.text(), a.status));
108
+ if (!a.ok) throw Error(l(await a.text(), a.status));
112
109
  let o = n(await a.json());
113
110
  if (!o || o.type !== "Polygon") throw Error("Файл не містить полігональну геометрію");
114
111
  return {
@@ -116,17 +113,17 @@ async function g(e) {
116
113
  coordinates: o.coordinates
117
114
  };
118
115
  }
119
- function _(e) {
116
+ function g(e) {
120
117
  if (e.length < 3) return [];
121
118
  let t = e.map(([e, t]) => [e, t]), [n, r] = t[0], [i, a] = t[t.length - 1];
122
119
  return (n !== i || r !== a) && t.push([n, r]), t;
123
120
  }
124
- function v(e) {
125
- let t = _(e);
121
+ function _(e) {
122
+ let t = g(e);
126
123
  return t.length < 4 ? null : {
127
124
  type: "Polygon",
128
125
  coordinates: [t]
129
126
  };
130
127
  }
131
128
  //#endregion
132
- export { s as a, d as i, l as n, i as o, v as r, g as s, c as t };
129
+ export { i as a, s as i, _ as n, h as o, u as r, c as t };