@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
@@ -90,6 +90,6 @@ var ce = /*@__PURE__*/ r({
90
90
  function le(e, t, r, o, ee, s) {
91
91
  return i(), n(a(o.icon), { "stroke-width": r.strokeWidth }, null, 8, ["stroke-width"]);
92
92
  }
93
- var ue = /*#__PURE__*/ e(ce, [["render", le], ["__file", "D:/softpro/surveyor/cabinet/src/components/ui/AppIcon.vue"]]);
93
+ var ue = /*#__PURE__*/ e(ce, [["render", le], ["__file", "C:/softpro/surveyor/cabinet/src/components/ui/AppIcon.vue"]]);
94
94
  //#endregion
95
95
  export { ue as t };
@@ -25,7 +25,7 @@ var l = /*@__PURE__*/ i({
25
25
  function g(e, i, l, g, _, v) {
26
26
  return o(), n("section", { class: a(["rounded-xl border bg-white shadow-card", l.danger ? "border-danger-200" : "border-slate-200"]) }, [r("header", u, [r("div", d, [r("span", f, [s(e.$slots, "icon")]), r("h2", p, c(l.title), 1)]), e.$slots.actions ? (o(), n("div", m, [s(e.$slots, "actions")])) : t("", !0)]), r("div", h, [s(e.$slots, "default")])], 2);
27
27
  }
28
- var _ = /*#__PURE__*/ e(l, [["render", g], ["__file", "D:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailSection.vue"]]), v = /*@__PURE__*/ i({
28
+ var _ = /*#__PURE__*/ e(l, [["render", g], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailSection.vue"]]), v = /*@__PURE__*/ i({
29
29
  __name: "AppealDetailField",
30
30
  props: {
31
31
  label: {
@@ -53,6 +53,6 @@ var _ = /*#__PURE__*/ e(l, [["render", g], ["__file", "D:/softpro/surveyor/admin
53
53
  function b(e, t, i, l, u, d) {
54
54
  return o(), n("div", { class: a(["min-w-0", i.full ? "col-span-full" : ""]) }, [r("dt", y, c(i.label), 1), r("dd", { class: a(["break-words text-[14px] text-slate-700", i.highlight ? "font-semibold text-slate-800" : "font-medium"]) }, [s(e.$slots, "default")], 2)], 2);
55
55
  }
56
- var x = /*#__PURE__*/ e(v, [["render", b], ["__file", "D:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailField.vue"]]);
56
+ var x = /*#__PURE__*/ e(v, [["render", b], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailField.vue"]]);
57
57
  //#endregion
58
58
  export { _ as n, x as t };
@@ -0,0 +1,295 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { c as n } from "./resources-Cj8BzrBX.js";
4
+ import { t as r } from "./application_status-BhNGiY2I.js";
5
+ import { t as i } from "./work_types-Hwme-FEX.js";
6
+ import { computed as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, toDisplayString as f } from "vue";
7
+ //#region admin/src/static/registry/requests/resource.ts
8
+ var p = "applications", m = {
9
+ awaitingData: {
10
+ classes: "bg-slate-100 text-slate-600 border-slate-200",
11
+ dot: "bg-slate-400"
12
+ },
13
+ dataIssued: {
14
+ classes: "bg-warning-50 text-warning-700 border-warning-200",
15
+ dot: "bg-warning-500"
16
+ },
17
+ reserve: {
18
+ classes: "bg-rose-50 text-rose-800 border-rose-200",
19
+ dot: "bg-rose-700"
20
+ },
21
+ underReview: {
22
+ classes: "bg-accent-50 text-accent-700 border-accent-200",
23
+ dot: "bg-accent-500"
24
+ },
25
+ verified: {
26
+ classes: "bg-brand-50 text-brand-700 border-brand-200",
27
+ dot: "bg-brand-500"
28
+ },
29
+ completed: {
30
+ classes: "bg-success-50 text-success-700 border-success-200",
31
+ dot: "bg-success-500"
32
+ },
33
+ cancelled: {
34
+ classes: "bg-danger-50 text-danger-700 border-danger-200",
35
+ dot: "bg-danger-500"
36
+ }
37
+ }, h = {
38
+ classes: "bg-slate-100 text-slate-600 border-slate-200",
39
+ dot: "bg-slate-400"
40
+ }, g = {
41
+ awaitingData: "brand",
42
+ dataIssued: "success",
43
+ reserve: "slate",
44
+ underReview: "warning",
45
+ verified: "brand",
46
+ completed: "accent",
47
+ cancelled: "danger"
48
+ }, _ = r.items.map((e) => e.code), v = Object.fromEntries(r.items.map((e) => [e.code, {
49
+ label: e.name,
50
+ ...m[e.code] ?? h
51
+ }])), y = Object.fromEntries(r.items.map((e) => [e.code, e.name])), b = Object.fromEntries(r.items.map((e) => [e.code, e.color ?? "#64748b"])), x = Object.fromEntries(r.items.map((e) => [e.code, e.name]));
52
+ r.items.map((e) => ({
53
+ status: e.code,
54
+ label: e.name,
55
+ tone: g[e.code] ?? "slate"
56
+ }));
57
+ //#endregion
58
+ //#region admin/src/lib/work-types.ts
59
+ var S = i.items.map((e) => ({
60
+ code: e.code,
61
+ label: e.name
62
+ })), C = Object.fromEntries(i.items.map((e) => [e.code, e.name])), w = {
63
+ resource: p,
64
+ pageSize: 10,
65
+ sort: "-created_at",
66
+ columns: [
67
+ {
68
+ key: "number",
69
+ label: "Номер",
70
+ sort: "number"
71
+ },
72
+ {
73
+ key: "organization",
74
+ label: "Організація/особа"
75
+ },
76
+ {
77
+ key: "address",
78
+ label: "Адреса"
79
+ },
80
+ {
81
+ key: "status",
82
+ label: "Статус"
83
+ },
84
+ {
85
+ key: "workType",
86
+ label: "Вид робіт"
87
+ },
88
+ {
89
+ key: "createdAt",
90
+ label: "Дата подачі",
91
+ sort: "created_at"
92
+ },
93
+ {
94
+ key: "checkedBy",
95
+ label: "Перевірив"
96
+ },
97
+ {
98
+ key: "actions",
99
+ label: "Дії"
100
+ }
101
+ ]
102
+ }, T = {
103
+ resource: p,
104
+ view: "inline",
105
+ fields: {
106
+ status: {
107
+ component: "select",
108
+ label: "Статус",
109
+ placeholder: "Статус",
110
+ width: 180,
111
+ api: "/api/suggest/applications/status"
112
+ },
113
+ year: {
114
+ component: "select",
115
+ label: "Рік",
116
+ placeholder: "Рік",
117
+ width: 120,
118
+ options: [{
119
+ id: "2026",
120
+ text: "2026"
121
+ }]
122
+ },
123
+ organization: {
124
+ component: "select",
125
+ label: "Організація",
126
+ placeholder: "Організація",
127
+ width: 220,
128
+ api: "/api/suggest/organizations/org_id"
129
+ },
130
+ address: {
131
+ component: "select",
132
+ label: "Адреса",
133
+ placeholder: "Адреса",
134
+ width: 260,
135
+ api: "/api/suggest/applications/address_id"
136
+ }
137
+ }
138
+ }, E = S.map((e) => ({
139
+ id: e.code,
140
+ text: e.label
141
+ }));
142
+ function D(e) {
143
+ return e == null ? "" : String(e).trim();
144
+ }
145
+ function O(e) {
146
+ return D(e) || null;
147
+ }
148
+ function k(e) {
149
+ let t = !!e.is_found_address_id, n = {
150
+ work_type: D(e.work_type),
151
+ description: O(e.description),
152
+ execution_basis: O(e.execution_basis),
153
+ settlement_id: D(e.settlement_id),
154
+ is_found_address_id: t,
155
+ notes: O(e.notes)
156
+ };
157
+ return t ? (n.address_id = D(e.address_id) || null, n.location = null) : (n.address_id = null, n.location = O(e.location)), n;
158
+ }
159
+ var A = {
160
+ resource: p,
161
+ recordToValues: (e) => ({
162
+ work_type: D(e.work_type ?? e.work_type_data?.id),
163
+ description: D(e.description),
164
+ execution_basis: D(e.execution_basis),
165
+ settlement_id: D(e.settlement_id ?? e.settlement_id_data?.id),
166
+ is_found_address_id: e.is_found_address_id !== !1,
167
+ address_id: D(e.address_id ?? e.address_id_data?.id),
168
+ location: D(e.location),
169
+ notes: D(e.notes)
170
+ }),
171
+ save: async (e, t) => {
172
+ if (!e) throw Error("Ідентифікатор звернення не знайдено");
173
+ return n(p, e, k(t));
174
+ },
175
+ fields: {
176
+ work_type: {
177
+ component: "select",
178
+ label: "Вид робіт",
179
+ col: 12,
180
+ validators: ["required"],
181
+ options: E
182
+ },
183
+ description: {
184
+ component: "textarea",
185
+ label: "Опис запиту",
186
+ col: 12
187
+ },
188
+ execution_basis: {
189
+ component: "textarea",
190
+ label: "Підстава виконання робіт",
191
+ col: 12
192
+ },
193
+ settlement_id: {
194
+ component: "autocomplete",
195
+ label: "Населений пункт",
196
+ col: 12,
197
+ validators: ["required"],
198
+ api: "/api/suggest/applications/settlement_id"
199
+ },
200
+ is_found_address_id: {
201
+ component: "switcher",
202
+ label: "Адреса з довідника",
203
+ col: 12,
204
+ view: "checkbox",
205
+ info: "Увімкніть, щоб обрати адресу з реєстру; вимкніть для вільного опису місцезнаходження"
206
+ },
207
+ address_id: {
208
+ component: "autocomplete",
209
+ label: "Адреса",
210
+ col: 12,
211
+ api: "/api/suggest/applications/address_id",
212
+ conditions: [[
213
+ "is_found_address_id",
214
+ "==",
215
+ !0
216
+ ]],
217
+ props: (e) => {
218
+ let t = D(e.settlement_id);
219
+ return t ? { filter: { settlement_id: t } } : {};
220
+ }
221
+ },
222
+ location: {
223
+ component: "textarea",
224
+ label: "Місцезнаходження",
225
+ col: 12,
226
+ conditions: [[
227
+ "is_found_address_id",
228
+ "==",
229
+ !1
230
+ ]]
231
+ },
232
+ notes: {
233
+ component: "textarea",
234
+ label: "Примітки",
235
+ col: 12
236
+ }
237
+ }
238
+ }, j = /* @__PURE__ */ e({
239
+ APPEAL_STATUS: () => v,
240
+ APPEAL_STATUS_SHORT: () => y,
241
+ APPLICATION_STATUS_CODES: () => _,
242
+ MAP_STATUS_COLORS: () => b,
243
+ MAP_STATUS_LABELS: () => x,
244
+ filter: () => T,
245
+ form: () => A,
246
+ resource: () => p,
247
+ table: () => w
248
+ }), M = /*@__PURE__*/ l({
249
+ __name: "AppealStatusBadge",
250
+ props: {
251
+ status: {
252
+ type: String,
253
+ required: !0
254
+ },
255
+ label: {
256
+ type: String,
257
+ required: !1
258
+ },
259
+ size: {
260
+ type: String,
261
+ required: !1,
262
+ default: "md"
263
+ }
264
+ },
265
+ setup(e, { expose: t }) {
266
+ t();
267
+ let n = e, r = {
268
+ props: n,
269
+ config: a(() => {
270
+ let e = v[n.status], t = {
271
+ label: n.label || n.status || "—",
272
+ classes: "bg-slate-100 text-slate-600 border-slate-200",
273
+ dot: "bg-slate-400"
274
+ };
275
+ return e ? n.label ? {
276
+ ...e,
277
+ label: n.label
278
+ } : e : t;
279
+ }),
280
+ pad: a(() => n.size === "sm" ? "px-2 py-0.5 text-xs" : "px-2.5 py-1 text-[13px]")
281
+ };
282
+ return Object.defineProperty(r, "__isScriptSetup", {
283
+ enumerable: !1,
284
+ value: !0
285
+ }), r;
286
+ }
287
+ });
288
+ //#endregion
289
+ //#region admin/src/components/ui/AppealStatusBadge.vue
290
+ function N(e, t, n, r, i, a) {
291
+ return d(), o("span", { class: u(["inline-flex items-center gap-1.5 rounded-full border font-medium", [r.config.classes, r.pad]]) }, [s("span", { class: u(["h-1.5 w-1.5 rounded-full", r.config.dot]) }, null, 2), c(" " + f(r.config.label), 1)], 2);
292
+ }
293
+ var P = /*#__PURE__*/ t(M, [["render", N], ["__file", "C:/softpro/surveyor/admin/src/components/ui/AppealStatusBadge.vue"]]);
294
+ //#endregion
295
+ export { C as a, b as c, w as i, x as l, j as n, S as o, A as r, _ as s, P as t, p as u };
@@ -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 { t as n } from "./account_types-DLL1w122.js";
4
4
  import { t as r } from "./application_status-BhNGiY2I.js";
5
5
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, toDisplayString as p } from "vue";
@@ -127,6 +127,6 @@ function x(e, t, n, r, i, u) {
127
127
  })) : o("", !0)
128
128
  ], 2);
129
129
  }
130
- var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "D:/softpro/surveyor/cabinet/src/components/ui/AppealStatusBadge.vue"]]);
130
+ var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "C:/softpro/surveyor/cabinet/src/components/ui/AppealStatusBadge.vue"]]);
131
131
  //#endregion
132
132
  export { g as n, _ as r, S as t };