@opengis/surveyor 0.0.19 → 0.0.20
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/{AppIcon-CO70tpMX.js → AppIcon-Di5F4Bu_.js} +1 -1
- package/dist/chunks/{AppealDetailField-ByK9ZqR4.js → AppealDetailField-CWayoaII.js} +2 -2
- package/dist/chunks/AppealStatusBadge-DRWZst3M.js +430 -0
- package/dist/chunks/{AppealStatusBadge-BlAaNUSK.js → AppealStatusBadge-z77wwkFD.js} +2 -2
- package/dist/chunks/{ApplicationGeometryExportModal-DhKC31To.js → ApplicationGeometryExportModal-CH9VrqxO.js} +312 -324
- package/dist/chunks/{BaseModal-BJxKuONh.js → BaseModal-X-hzV_I2.js} +2 -2
- package/dist/chunks/{FormFilePicker-DxPQlxgy.js → FormFilePicker-D5fAUE0Z.js} +2 -2
- package/dist/chunks/{MapLayerMenu-B0TEoCJm.js → MapLayerMenu-CyVxRSNX.js} +1 -1
- package/dist/chunks/{RegistryForm-Dpis_ncj.js → RegistryForm-J7R4RWO3.js} +1 -1
- package/dist/chunks/{RegistryFormModal-CH4DbTvC.js → RegistryFormModal-B_EDwu9O.js} +3 -3
- package/dist/chunks/{RegistryToolbar-DisEejvi.js → RegistryToolbar-BDVaZ2Rf.js} +5 -5
- package/dist/chunks/{SurveyorTeleport-Cd6D92mo.js → SurveyorTeleport-Y-NJhfsb.js} +1 -1
- package/dist/chunks/{TablePagination-thQkE5iA.js → TablePagination-CZhRgCVr.js} +2 -2
- package/dist/chunks/{UserAccessBadge-DyZDv7Oo.js → UserAccessBadge-B5Q1LvNv.js} +1 -1
- package/dist/chunks/{UserTypeBadge-LvnMuKGo.js → UserTypeBadge-CuAMctTK.js} +1 -1
- package/dist/chunks/{VerifiedBadge-bk0n-rlC.js → VerifiedBadge-D6L7mCdp.js} +2 -2
- package/dist/chunks/{card-n83dNORm.js → card-BMe6jQRR.js} +10 -10
- package/dist/chunks/{card-DVuqR0rL.js → card-Bw_EXY3D.js} +4 -4
- package/dist/chunks/{card-Cs8_8A8i.js → card-Cll0FQ0z.js} +6 -6
- package/dist/chunks/{card-u5I--_Gb.js → card-DMt5SAoD.js} +5 -5
- package/dist/chunks/{card-DuGbROGY.js → card-Dy333mEd.js} +9 -9
- package/dist/chunks/card-VMoiAe7V.js +1258 -0
- package/dist/chunks/{certificates-CDunSANR.js → certificates-URuwsRqg.js} +6 -6
- package/dist/chunks/{create-DQPxIZMW.js → create-CJXITPL0.js} +9 -9
- package/dist/chunks/downloadAttachmentFilename-B_4jZuOa.js +11 -0
- package/dist/chunks/{forgot-DfsFu-yY.js → forgot-JFlAKndO.js} +2 -2
- package/dist/chunks/{login-Dl0nTWs9.js → login-Bd6krLDP.js} +2 -2
- package/dist/chunks/{map-BoHEgBCw.js → map-CNPzf0wE.js} +44 -44
- package/dist/chunks/{map-layers-CRE8lZzH.js → map-layers-BgK6h6AD.js} +6 -6
- package/dist/chunks/{organizations-D6aazMAe.js → organizations-BLYhVQwf.js} +7 -7
- package/dist/chunks/{profile-CkwMFh82.js → profile-F7mr0poI.js} +3 -3
- package/dist/chunks/{registration-BSz1iLbO.js → registration-DIA4xV-t.js} +2 -2
- package/dist/chunks/{requests-D1ix8U5f.js → requests-CPVQ1Yy_.js} +5 -5
- package/dist/chunks/{requests-B9Ejt4av.js → requests-D-QPPUe4.js} +9 -9
- package/dist/chunks/{reset-D5G0x5Zi.js → reset-DR3GXwrH.js} +2 -2
- package/dist/chunks/{useEntityPath-C5Owtidc.js → useEntityPath-8s0Y1tjA.js} +1 -1
- package/dist/chunks/{users-DMe6JYI0.js → users-BsWV3iTt.js} +7 -7
- package/dist/index.js +40 -40
- package/migrations/20261016120000_map_layers.sql +156 -156
- package/migrations/20261016150000_password_reset.sql +15 -15
- package/migrations/20261016180000_settlement_lookup.sql +16 -16
- package/package.json +80 -80
- package/server/dictionaries/index.ts +17 -17
- package/server/dictionaries/surveyor/map_layer_components.ts +11 -11
- package/server/dictionaries/surveyor/map_layer_groups.ts +10 -10
- package/server/dictionaries/surveyor/map_layer_types.ts +11 -11
- package/server/modules/surveyor/route.ts +20 -0
- package/server/modules/surveyor/schema.ts +11 -0
- package/server/modules/surveyor/services/changeApplicationStatus.ts +100 -0
- package/server/modules/surveyor/services/mapLayers.ts +61 -61
- package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -79
- package/server/resources/helpers/settlement_lookup.ts +7 -7
- package/server/resources/surveyor-admin/applications.ts +126 -126
- package/server/resources/surveyor-admin/certificates.ts +113 -113
- package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
- package/dist/chunks/AppealStatusBadge-DzMn4RVy.js +0 -295
- package/dist/chunks/card-BP2byleo.js +0 -1327
|
@@ -1,295 +0,0 @@
|
|
|
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-amber-50 text-amber-700 border-amber-200",
|
|
15
|
-
dot: "bg-amber-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-sky-50 text-sky-700 border-sky-200",
|
|
23
|
-
dot: "bg-sky-500"
|
|
24
|
-
},
|
|
25
|
-
verified: {
|
|
26
|
-
classes: "bg-[#eef6ff] text-[#1a46b8] border-[#bcd9ff]",
|
|
27
|
-
dot: "bg-[#3479f6]"
|
|
28
|
-
},
|
|
29
|
-
completed: {
|
|
30
|
-
classes: "bg-emerald-50 text-emerald-700 border-emerald-200",
|
|
31
|
-
dot: "bg-emerald-500"
|
|
32
|
-
},
|
|
33
|
-
cancelled: {
|
|
34
|
-
classes: "bg-red-50 text-red-700 border-red-200",
|
|
35
|
-
dot: "bg-red-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 };
|