@opengis/surveyor 0.0.14 → 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 (48) hide show
  1. package/dist/chunks/AppealStatusBadge-7KruOSVI.js +295 -0
  2. package/dist/chunks/ApplicationGeometryExportModal-DJbnKPm6.js +1245 -0
  3. package/dist/chunks/{BaseModal-SjP521X9.js → BaseModal-BJxKuONh.js} +1 -1
  4. package/dist/chunks/{RegistryFormModal-DhzEpxys.js → RegistryFormModal-BmBsUOF3.js} +1 -1
  5. package/dist/chunks/SurveyorTeleport-Cd6D92mo.js +30 -0
  6. package/dist/chunks/{applications-D6pHAQaK.js → applications-B6GAxopO.js} +16 -19
  7. package/dist/chunks/card-B113dNzv.js +1327 -0
  8. package/dist/chunks/card-COmcUdms.js +639 -0
  9. package/dist/chunks/{card-BBx1zR0E.js → card-Deae73xd.js} +2 -2
  10. package/dist/chunks/{certificates-DtfZTFN9.js → certificates-DHf1zGQs.js} +18 -8
  11. package/dist/chunks/{create-Cgeu7aKO.js → create-BVPqfJOb.js} +10 -10
  12. package/dist/chunks/{map-DkKsEnCM.js → map-BZi4eVl3.js} +893 -897
  13. package/dist/chunks/{map-layers-BmuIMLHa.js → map-layers-CKZK50de.js} +2 -2
  14. package/dist/chunks/{organizations-BO1dIl7v.js → organizations-DYGfYfHS.js} +2 -2
  15. package/dist/chunks/{requests-rWq8ok3C.js → requests-D1ix8U5f.js} +1 -1
  16. package/dist/chunks/requests-v1jHarHb.js +303 -0
  17. package/dist/chunks/{users-DOiQeVwn.js → users-frk3gmmd.js} +1 -1
  18. package/dist/index.css +1 -1
  19. package/dist/index.js +21 -21
  20. package/package.json +1 -1
  21. package/server/modules/surveyor/route.ts +13 -12
  22. package/server/modules/surveyor/services/applicationTile.ts +3 -3
  23. package/server/modules/surveyor/services/cancelApplication.ts +2 -1
  24. package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +1 -1
  25. package/server/modules/surveyor/services/completeApplication.ts +1 -1
  26. package/server/modules/surveyor/services/identifyApplications.ts +2 -2
  27. package/server/modules/surveyor/services/issueSourceData.ts +1 -1
  28. package/server/modules/surveyor/services/registerSurveyor.ts +1 -1
  29. package/server/modules/surveyor/services/resendRegistration.ts +1 -1
  30. package/server/modules/surveyor/services/searchApplications.ts +2 -2
  31. package/server/modules/surveyor/services/updateSurveyorAccountStatus.ts +1 -1
  32. package/server/modules/surveyor/services/updateSurveyorStatus.ts +1 -1
  33. package/server/modules/surveyor/services/verifyApplication.ts +1 -1
  34. package/server/modules/surveyor/utils/shared.ts +28 -6
  35. package/server/resources/surveyor-admin/application_comments.ts +1 -1
  36. package/server/resources/surveyor-admin/application_status_history.ts +1 -1
  37. package/server/resources/surveyor-admin/applications.ts +12 -11
  38. package/server/resources/surveyor-admin/certificates.ts +26 -26
  39. package/server/resources/surveyor-admin/map_layers.ts +1 -1
  40. package/server/resources/surveyor-admin/organizations.ts +1 -1
  41. package/server/resources/surveyor-admin/surveyors.ts +1 -1
  42. package/server/suggests/index.ts +18 -1
  43. package/dist/chunks/AppealStatusBadge-Ct3EcB4_.js +0 -185
  44. package/dist/chunks/ApplicationHistorySection-D7KPV2cX.js +0 -788
  45. package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +0 -23
  46. package/dist/chunks/card-Bj4zFzbe.js +0 -1193
  47. package/dist/chunks/card-C-ohjNkC.js +0 -609
  48. package/dist/chunks/requests-BZ2jrt5J.js +0 -234
@@ -12,6 +12,23 @@ const suggests: SuggestContract[] = [
12
12
  SELECT dataset_id as id, dataset_name as text FROM gis.dataset
13
13
  WHERE dataset_name ILIKE '%' || :search || '%'
14
14
  `,
15
- }
15
+ },
16
+ {
17
+ // Системи координат для експорту/імпорту геометрії; id у форматі `EPSG:<srid>`.
18
+ // JOIN зі spatial_ref_sys відсікає SRID, яких немає в PostGIS цієї БД.
19
+ name: "crs",
20
+ module: "admin",
21
+ key: "id",
22
+ query: `
23
+ SELECT s.srid AS id, c.text
24
+ FROM (VALUES
25
+ (4326, 'WGS 84 (EPSG:4326)', 1),
26
+ (7825, 'СК-63, зона 1 (EPSG:7825)', 3)
27
+ ) AS c(srid, text, ord)
28
+ JOIN public.spatial_ref_sys s ON s.srid = c.srid
29
+ WHERE c.text ILIKE '%' || :search || '%'
30
+ ORDER BY c.ord
31
+ `,
32
+ },
16
33
  ];
17
34
  export default suggests;
@@ -1,185 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { t as n } from "./application_status-BhNGiY2I.js";
4
- import { computed as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, toDisplayString as u } from "vue";
5
- //#region admin/src/static/registry/requests/resource.ts
6
- var d = "applications", f = {
7
- awaitingData: {
8
- classes: "bg-slate-100 text-slate-600 border-slate-200",
9
- dot: "bg-slate-400"
10
- },
11
- dataIssued: {
12
- classes: "bg-warning-50 text-warning-700 border-warning-200",
13
- dot: "bg-warning-500"
14
- },
15
- reserve: {
16
- classes: "bg-rose-50 text-rose-800 border-rose-200",
17
- dot: "bg-rose-700"
18
- },
19
- underReview: {
20
- classes: "bg-accent-50 text-accent-700 border-accent-200",
21
- dot: "bg-accent-500"
22
- },
23
- verified: {
24
- classes: "bg-brand-50 text-brand-700 border-brand-200",
25
- dot: "bg-brand-500"
26
- },
27
- completed: {
28
- classes: "bg-success-50 text-success-700 border-success-200",
29
- dot: "bg-success-500"
30
- },
31
- cancelled: {
32
- classes: "bg-danger-50 text-danger-700 border-danger-200",
33
- dot: "bg-danger-500"
34
- }
35
- }, p = {
36
- classes: "bg-slate-100 text-slate-600 border-slate-200",
37
- dot: "bg-slate-400"
38
- }, m = {
39
- awaitingData: "brand",
40
- dataIssued: "success",
41
- reserve: "slate",
42
- underReview: "warning",
43
- verified: "brand",
44
- completed: "accent",
45
- cancelled: "danger"
46
- }, h = n.items.map((e) => e.code), g = Object.fromEntries(n.items.map((e) => [e.code, {
47
- label: e.name,
48
- ...f[e.code] ?? p
49
- }])), _ = Object.fromEntries(n.items.map((e) => [e.code, e.name])), v = Object.fromEntries(n.items.map((e) => [e.code, e.color ?? "#64748b"])), y = Object.fromEntries(n.items.map((e) => [e.code, e.name]));
50
- n.items.map((e) => ({
51
- status: e.code,
52
- label: e.name,
53
- tone: m[e.code] ?? "slate"
54
- }));
55
- //#endregion
56
- //#region admin/src/static/registry/requests/table.ts
57
- var b = {
58
- resource: d,
59
- pageSize: 10,
60
- sort: "-created_at",
61
- columns: [
62
- {
63
- key: "number",
64
- label: "Номер",
65
- sort: "number"
66
- },
67
- {
68
- key: "organization",
69
- label: "Організація/особа"
70
- },
71
- {
72
- key: "address",
73
- label: "Адреса"
74
- },
75
- {
76
- key: "status",
77
- label: "Статус"
78
- },
79
- {
80
- key: "workType",
81
- label: "Вид робіт"
82
- },
83
- {
84
- key: "createdAt",
85
- label: "Дата подачі",
86
- sort: "created_at"
87
- },
88
- {
89
- key: "checkedBy",
90
- label: "Перевірив"
91
- }
92
- ]
93
- }, x = {
94
- resource: d,
95
- view: "inline",
96
- fields: {
97
- status: {
98
- component: "select",
99
- label: "Статус",
100
- placeholder: "Статус",
101
- width: 180,
102
- api: "/api/suggest/applications/status"
103
- },
104
- year: {
105
- component: "select",
106
- label: "Рік",
107
- placeholder: "Рік",
108
- width: 120,
109
- options: [{
110
- id: "2026",
111
- text: "2026"
112
- }]
113
- },
114
- organization: {
115
- component: "select",
116
- label: "Організація",
117
- placeholder: "Організація",
118
- width: 220,
119
- api: "/api/suggest/organizations/org_id"
120
- },
121
- address: {
122
- component: "select",
123
- label: "Адреса",
124
- placeholder: "Адреса",
125
- width: 260,
126
- api: "/api/suggest/applications/address_id"
127
- }
128
- }
129
- }, S = /* @__PURE__ */ e({
130
- APPEAL_STATUS: () => g,
131
- APPEAL_STATUS_SHORT: () => _,
132
- APPLICATION_STATUS_CODES: () => h,
133
- MAP_STATUS_COLORS: () => v,
134
- MAP_STATUS_LABELS: () => y,
135
- filter: () => x,
136
- resource: () => d,
137
- table: () => b
138
- }), C = /*@__PURE__*/ s({
139
- __name: "AppealStatusBadge",
140
- props: {
141
- status: {
142
- type: String,
143
- required: !0
144
- },
145
- label: {
146
- type: String,
147
- required: !1
148
- },
149
- size: {
150
- type: String,
151
- required: !1,
152
- default: "md"
153
- }
154
- },
155
- setup(e, { expose: t }) {
156
- t();
157
- let n = e, i = {
158
- props: n,
159
- config: r(() => {
160
- let e = g[n.status], t = {
161
- label: n.label || n.status || "—",
162
- classes: "bg-slate-100 text-slate-600 border-slate-200",
163
- dot: "bg-slate-400"
164
- };
165
- return e ? n.label ? {
166
- ...e,
167
- label: n.label
168
- } : e : t;
169
- }),
170
- pad: r(() => n.size === "sm" ? "px-2 py-0.5 text-xs" : "px-2.5 py-1 text-[13px]")
171
- };
172
- return Object.defineProperty(i, "__isScriptSetup", {
173
- enumerable: !1,
174
- value: !0
175
- }), i;
176
- }
177
- });
178
- //#endregion
179
- //#region admin/src/components/ui/AppealStatusBadge.vue
180
- function w(e, t, n, r, s, d) {
181
- return l(), i("span", { class: c(["inline-flex items-center gap-1.5 rounded-full border font-medium", [r.config.classes, r.pad]]) }, [a("span", { class: c(["h-1.5 w-1.5 rounded-full", r.config.dot]) }, null, 2), o(" " + u(r.config.label), 1)], 2);
182
- }
183
- var T = /*#__PURE__*/ t(C, [["render", w], ["__file", "C:/softpro/surveyor/admin/src/components/ui/AppealStatusBadge.vue"]]);
184
- //#endregion
185
- export { v as a, h as i, S as n, y as o, b as r, d as s, T as t };