@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.
- package/dist/chunks/AppealStatusBadge-7KruOSVI.js +295 -0
- package/dist/chunks/ApplicationGeometryExportModal-DJbnKPm6.js +1245 -0
- package/dist/chunks/{BaseModal-SjP521X9.js → BaseModal-BJxKuONh.js} +1 -1
- package/dist/chunks/{RegistryFormModal-DhzEpxys.js → RegistryFormModal-BmBsUOF3.js} +1 -1
- package/dist/chunks/SurveyorTeleport-Cd6D92mo.js +30 -0
- package/dist/chunks/{applications-D6pHAQaK.js → applications-B6GAxopO.js} +16 -19
- package/dist/chunks/card-B113dNzv.js +1327 -0
- package/dist/chunks/card-COmcUdms.js +639 -0
- package/dist/chunks/{card-BBx1zR0E.js → card-Deae73xd.js} +2 -2
- package/dist/chunks/{certificates-DtfZTFN9.js → certificates-DHf1zGQs.js} +18 -8
- package/dist/chunks/{create-Cgeu7aKO.js → create-BVPqfJOb.js} +10 -10
- package/dist/chunks/{map-DkKsEnCM.js → map-BZi4eVl3.js} +893 -897
- package/dist/chunks/{map-layers-BmuIMLHa.js → map-layers-CKZK50de.js} +2 -2
- package/dist/chunks/{organizations-BO1dIl7v.js → organizations-DYGfYfHS.js} +2 -2
- package/dist/chunks/{requests-rWq8ok3C.js → requests-D1ix8U5f.js} +1 -1
- package/dist/chunks/requests-v1jHarHb.js +303 -0
- package/dist/chunks/{users-DOiQeVwn.js → users-frk3gmmd.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +21 -21
- package/package.json +1 -1
- package/server/modules/surveyor/route.ts +13 -12
- package/server/modules/surveyor/services/applicationTile.ts +3 -3
- package/server/modules/surveyor/services/cancelApplication.ts +2 -1
- package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +1 -1
- package/server/modules/surveyor/services/completeApplication.ts +1 -1
- package/server/modules/surveyor/services/identifyApplications.ts +2 -2
- package/server/modules/surveyor/services/issueSourceData.ts +1 -1
- package/server/modules/surveyor/services/registerSurveyor.ts +1 -1
- package/server/modules/surveyor/services/resendRegistration.ts +1 -1
- package/server/modules/surveyor/services/searchApplications.ts +2 -2
- package/server/modules/surveyor/services/updateSurveyorAccountStatus.ts +1 -1
- package/server/modules/surveyor/services/updateSurveyorStatus.ts +1 -1
- package/server/modules/surveyor/services/verifyApplication.ts +1 -1
- package/server/modules/surveyor/utils/shared.ts +28 -6
- package/server/resources/surveyor-admin/application_comments.ts +1 -1
- package/server/resources/surveyor-admin/application_status_history.ts +1 -1
- package/server/resources/surveyor-admin/applications.ts +12 -11
- package/server/resources/surveyor-admin/certificates.ts +26 -26
- package/server/resources/surveyor-admin/map_layers.ts +1 -1
- package/server/resources/surveyor-admin/organizations.ts +1 -1
- package/server/resources/surveyor-admin/surveyors.ts +1 -1
- package/server/suggests/index.ts +18 -1
- package/dist/chunks/AppealStatusBadge-Ct3EcB4_.js +0 -185
- package/dist/chunks/ApplicationHistorySection-D7KPV2cX.js +0 -788
- package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +0 -23
- package/dist/chunks/card-Bj4zFzbe.js +0 -1193
- package/dist/chunks/card-C-ohjNkC.js +0 -609
- package/dist/chunks/requests-BZ2jrt5J.js +0 -234
|
@@ -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 };
|