@opengis/surveyor 0.0.9 → 0.0.10
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/README.md +4 -3
- package/dist/chunks/{AppIcon-CO70tpMX.js → AppIcon-Di5F4Bu_.js} +1 -1
- package/dist/chunks/{AppealDetailField-DNRGpnyD.js → AppealDetailField-DNpsGpPY.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-Cu-UzdzA.js → AppealStatusBadge-MP1qD952.js} +1 -1
- package/dist/chunks/{AppealStatusBadge-BlAaNUSK.js → AppealStatusBadge-z77wwkFD.js} +2 -2
- package/dist/chunks/{ApplicationHistorySection-Cwq0-Frd.js → ApplicationHistorySection-DIoFZwH6.js} +4 -4
- package/dist/chunks/{BaseModal-SQXvRRNW.js → BaseModal-DP_ilBdg.js} +21 -11
- package/dist/chunks/{FormFilePicker-DxPQlxgy.js → FormFilePicker-D5fAUE0Z.js} +2 -2
- package/dist/chunks/{MapLayerMenu-AUeTqgEp.js → MapLayerMenu-CI5cbLEC.js} +1 -1
- package/dist/chunks/{RegistryForm-wG-c8GKf.js → RegistryForm-DbCxZsr0.js} +1 -1
- package/dist/chunks/{RegistryFormModal-R_iZYqGE.js → RegistryFormModal-D_KLGj2d.js} +3 -3
- package/dist/chunks/{RegistryToolbar-322DKUXi.js → RegistryToolbar-DvbrASlj.js} +6 -6
- package/dist/chunks/{SurveyorTeleport-CnSF0Ptl.js → SurveyorTeleport-D6-KXe_5.js} +1 -1
- 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-CWqi1K-x.js → card--XUb1kFK.js} +4 -4
- package/dist/chunks/{card-C3y-j2TA.js → card-BrjnXf1N.js} +6 -6
- package/dist/chunks/{card-6z-m7UkM.js → card-BsTSF6aL.js} +10 -10
- package/dist/chunks/{card-Dlp8_KhV.js → card-CI7ntIHf.js} +5 -5
- package/dist/chunks/{card-DWpAv92l.js → card-Cu8QOSIw.js} +4 -4
- package/dist/chunks/{card-X9UVFgdR.js → card-ylC5NYbz.js} +241 -208
- package/dist/chunks/certificates-BnseQylH.js +209 -0
- package/dist/chunks/certificates-aJ-hvaP-.js +236 -0
- package/dist/chunks/{create-DR8tXNYj.js → create-Bi7-j9Ri.js} +9 -9
- package/dist/chunks/{forgot-DoG6vXhq.js → forgot-DnixBqdc.js} +2 -2
- package/dist/chunks/{login-BWGylcSU.js → login-BWCQdEkv.js} +2 -2
- package/dist/chunks/{map-DvwFkxAS.js → map-CwsVIW79.js} +940 -831
- package/dist/chunks/{map-layers-sT-gTiD_.js → map-layers-BLiEYC4C.js} +5 -5
- package/dist/chunks/{organizations-ByVE2f0c.js → organizations-mc6FlSwe.js} +6 -6
- package/dist/chunks/{profile-CkwMFh82.js → profile-F7mr0poI.js} +3 -3
- package/dist/chunks/{registration-3GLgq-ae.js → registration-BRF4985_.js} +2 -2
- package/dist/chunks/{requests-BTpLXrNj.js → requests-7pD2ckdx.js} +4 -4
- package/dist/chunks/{requests-rWq8ok3C.js → requests-BCJN-CNx.js} +5 -5
- package/dist/chunks/{reset-CP9LsLkC.js → reset-OZCgLi6f.js} +2 -2
- package/dist/chunks/{useEntityPath-C5Owtidc.js → useEntityPath-8s0Y1tjA.js} +1 -1
- package/dist/chunks/{users-U1P6xCP4.js → users-CAEjpaI1.js} +6 -6
- package/dist/index.css +1 -1
- 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 +1 -1
- 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/services/createApplication.ts +2 -3
- package/server/modules/surveyor/services/mapLayers.ts +61 -61
- package/server/modules/surveyor/services/registerSurveyor.ts +3 -4
- package/server/modules/surveyor/services/requestPasswordReset.ts +1 -0
- package/server/modules/surveyor/services/resetSurveyorPassword.ts +1 -0
- package/server/modules/surveyor/services/updateSurveyorAccountStatus.ts +52 -52
- package/server/modules/surveyor/services/updateSurveyorStatus.ts +53 -53
- package/server/modules/surveyor/utils/certificateStatus.ts +15 -0
- package/server/modules/surveyor/utils/mail.ts +49 -20
- 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/certificates.ts +27 -1
- package/server/resources/surveyor-admin/map_layers.ts +69 -69
- package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
- package/server/resources/surveyor-admin/organizations.ts +61 -61
- package/dist/chunks/certificates-Cwch72-o.js +0 -425
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { o as t, t as n } from "./resources-2e8RFqWR.js";
|
|
3
|
+
import { n as r } from "./account-types-Br7gx_D_.js";
|
|
4
|
+
//#region admin/src/static/registry/certificates/resource.ts
|
|
5
|
+
var i = "certificates", a = {
|
|
6
|
+
resource: i,
|
|
7
|
+
pageSize: 10,
|
|
8
|
+
sort: "-created_at",
|
|
9
|
+
columns: [
|
|
10
|
+
{
|
|
11
|
+
key: "fullName",
|
|
12
|
+
label: "Прізвище, ім'я та по батькові геодезиста"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
key: "certificate",
|
|
16
|
+
label: "Номер кваліфікаційного сертифіката"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
key: "verified",
|
|
20
|
+
label: "Верифікація"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: "qualificationUpgrade",
|
|
24
|
+
label: "Підвищення кваліфікації"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: "suspendedAt",
|
|
28
|
+
label: "Дата призупинення"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: "terminatedAt",
|
|
32
|
+
label: "Дата припинення"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}, o = {
|
|
36
|
+
resource: i,
|
|
37
|
+
view: "inline",
|
|
38
|
+
fields: { verified: {
|
|
39
|
+
component: "select",
|
|
40
|
+
label: "Верифікація",
|
|
41
|
+
placeholder: "Верифікація",
|
|
42
|
+
width: 160,
|
|
43
|
+
options: [{
|
|
44
|
+
id: "verified",
|
|
45
|
+
text: "Верифіковані"
|
|
46
|
+
}, {
|
|
47
|
+
id: "unverified",
|
|
48
|
+
text: "Не верифіковані"
|
|
49
|
+
}]
|
|
50
|
+
} }
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region admin/src/static/registry/certificates/form.ts
|
|
54
|
+
function s(e) {
|
|
55
|
+
return [
|
|
56
|
+
e.last_name,
|
|
57
|
+
e.first_name,
|
|
58
|
+
e.middle_name
|
|
59
|
+
].map((e) => String(e ?? "").trim()).filter(Boolean).join(" ");
|
|
60
|
+
}
|
|
61
|
+
function c(e) {
|
|
62
|
+
let t = s(e);
|
|
63
|
+
return {
|
|
64
|
+
certificate_type: String(e.certificate_type ?? "").trim(),
|
|
65
|
+
last_name: String(e.last_name ?? "").trim(),
|
|
66
|
+
first_name: String(e.first_name ?? "").trim(),
|
|
67
|
+
middle_name: String(e.middle_name ?? "").trim() || null,
|
|
68
|
+
surveyor_name: t || null,
|
|
69
|
+
number_certificate: String(e.number_certificate ?? "").trim(),
|
|
70
|
+
date_certificate: e.date_certificate || null,
|
|
71
|
+
name_school: String(e.name_school ?? "").trim() || null,
|
|
72
|
+
surveyor_email: String(e.surveyor_email ?? "").trim() || null,
|
|
73
|
+
surveyor_phone: String(e.surveyor_phone ?? "").trim() || null,
|
|
74
|
+
isvalid: e.isvalid == null ? null : !!e.isvalid
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
var l = {
|
|
78
|
+
resource: i,
|
|
79
|
+
emptyValues: () => ({
|
|
80
|
+
certificate_type: r,
|
|
81
|
+
last_name: "",
|
|
82
|
+
first_name: "",
|
|
83
|
+
middle_name: "",
|
|
84
|
+
number_certificate: "",
|
|
85
|
+
date_certificate: "",
|
|
86
|
+
name_school: "",
|
|
87
|
+
surveyor_email: "",
|
|
88
|
+
surveyor_phone: "",
|
|
89
|
+
isvalid: !0
|
|
90
|
+
}),
|
|
91
|
+
recordToValues: (e) => ({
|
|
92
|
+
certificate_type: String(e.certificate_type ?? r),
|
|
93
|
+
last_name: String(e.last_name ?? ""),
|
|
94
|
+
first_name: String(e.first_name ?? ""),
|
|
95
|
+
middle_name: String(e.middle_name ?? ""),
|
|
96
|
+
number_certificate: String(e.number_certificate ?? ""),
|
|
97
|
+
date_certificate: e.date_certificate ?? "",
|
|
98
|
+
name_school: String(e.name_school ?? ""),
|
|
99
|
+
surveyor_email: String(e.surveyor_email ?? ""),
|
|
100
|
+
surveyor_phone: String(e.surveyor_phone ?? ""),
|
|
101
|
+
isvalid: e.isvalid == null || !!e.isvalid
|
|
102
|
+
}),
|
|
103
|
+
save: async (e, r) => {
|
|
104
|
+
let a = c(r);
|
|
105
|
+
return e ? t(i, e, a) : n(i, a);
|
|
106
|
+
},
|
|
107
|
+
fields: {
|
|
108
|
+
certificate_type: {
|
|
109
|
+
component: "select",
|
|
110
|
+
label: "Реєстр",
|
|
111
|
+
col: 12,
|
|
112
|
+
api: "/api/suggest/certificates/certificate_type",
|
|
113
|
+
validators: ["required"]
|
|
114
|
+
},
|
|
115
|
+
last_name: {
|
|
116
|
+
component: "text",
|
|
117
|
+
label: "Прізвище",
|
|
118
|
+
col: 4,
|
|
119
|
+
validators: ["required"]
|
|
120
|
+
},
|
|
121
|
+
first_name: {
|
|
122
|
+
component: "text",
|
|
123
|
+
label: "Ім'я",
|
|
124
|
+
col: 4,
|
|
125
|
+
validators: ["required"]
|
|
126
|
+
},
|
|
127
|
+
middle_name: {
|
|
128
|
+
component: "text",
|
|
129
|
+
label: "По батькові",
|
|
130
|
+
col: 4
|
|
131
|
+
},
|
|
132
|
+
number_certificate: {
|
|
133
|
+
component: "text",
|
|
134
|
+
label: "Номер кваліфікаційного сертифіката",
|
|
135
|
+
col: 6,
|
|
136
|
+
validators: ["required"]
|
|
137
|
+
},
|
|
138
|
+
date_certificate: {
|
|
139
|
+
component: "date",
|
|
140
|
+
label: "Дата видачі",
|
|
141
|
+
col: 6
|
|
142
|
+
},
|
|
143
|
+
name_school: {
|
|
144
|
+
component: "text",
|
|
145
|
+
label: "Назва навчального закладу",
|
|
146
|
+
col: 12
|
|
147
|
+
},
|
|
148
|
+
surveyor_email: {
|
|
149
|
+
component: "email",
|
|
150
|
+
label: "Email геодезиста",
|
|
151
|
+
col: 6
|
|
152
|
+
},
|
|
153
|
+
surveyor_phone: {
|
|
154
|
+
component: "text",
|
|
155
|
+
label: "Телефон геодезиста",
|
|
156
|
+
col: 6
|
|
157
|
+
},
|
|
158
|
+
isvalid: {
|
|
159
|
+
component: "switcher",
|
|
160
|
+
label: "Дійсний сертифікат",
|
|
161
|
+
col: 12,
|
|
162
|
+
view: "checkbox"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}, u = {
|
|
166
|
+
valid: {
|
|
167
|
+
label: "Дійсний",
|
|
168
|
+
dot: "bg-emerald-500",
|
|
169
|
+
text: "text-emerald-700",
|
|
170
|
+
bg: "bg-emerald-50",
|
|
171
|
+
border: "border-emerald-200"
|
|
172
|
+
},
|
|
173
|
+
suspended: {
|
|
174
|
+
label: "Призупинений",
|
|
175
|
+
dot: "bg-amber-500",
|
|
176
|
+
text: "text-amber-700",
|
|
177
|
+
bg: "bg-amber-50",
|
|
178
|
+
border: "border-amber-200"
|
|
179
|
+
},
|
|
180
|
+
stopped: {
|
|
181
|
+
label: "Припинений",
|
|
182
|
+
dot: "bg-red-500",
|
|
183
|
+
text: "text-red-700",
|
|
184
|
+
bg: "bg-red-50",
|
|
185
|
+
border: "border-red-200"
|
|
186
|
+
},
|
|
187
|
+
invalid: {
|
|
188
|
+
label: "Недійсний",
|
|
189
|
+
dot: "bg-red-500",
|
|
190
|
+
text: "text-red-700",
|
|
191
|
+
bg: "bg-red-50",
|
|
192
|
+
border: "border-red-200"
|
|
193
|
+
},
|
|
194
|
+
no_data: {
|
|
195
|
+
label: "Відсутні дані",
|
|
196
|
+
dot: "bg-slate-400",
|
|
197
|
+
text: "text-slate-600",
|
|
198
|
+
bg: "bg-slate-100",
|
|
199
|
+
border: "border-slate-200"
|
|
200
|
+
}
|
|
201
|
+
}, d = /* @__PURE__ */ e({
|
|
202
|
+
VALIDITY_STATUS: () => u,
|
|
203
|
+
filter: () => o,
|
|
204
|
+
form: () => l,
|
|
205
|
+
resource: () => i,
|
|
206
|
+
table: () => a
|
|
207
|
+
});
|
|
208
|
+
//#endregion
|
|
209
|
+
export { i, u as n, a as r, d as t };
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { n as t, t as n } from "./useEntityPath-8s0Y1tjA.js";
|
|
3
|
+
import { i as r } from "./resources-2e8RFqWR.js";
|
|
4
|
+
import { t as i } from "./VerifiedBadge-D6L7mCdp.js";
|
|
5
|
+
import { n as a } from "./filterQuery-CvfZrkTC.js";
|
|
6
|
+
import { a as o, i as s, n as c, r as l, t as u } from "./RegistryToolbar-DvbrASlj.js";
|
|
7
|
+
import { t as d } from "./RegistryFormModal-D_KLGj2d.js";
|
|
8
|
+
import { i as f, r as p, t as m } from "./certificates-BnseQylH.js";
|
|
9
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, normalizeClass as w, openBlock as T, ref as E, renderList as D, toDisplayString as O, vModelText as k, withCtx as A, withDirectives as j } from "vue";
|
|
10
|
+
import { RouterLink as M } from "vue-router";
|
|
11
|
+
//#region admin/src/pages/certificates/index.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
+
var N = /*@__PURE__*/ C({
|
|
13
|
+
__name: "index",
|
|
14
|
+
setup(e, { expose: h }) {
|
|
15
|
+
h();
|
|
16
|
+
let _ = p.columns, { query: v, filterValues: y, page: b, pageSize: x, listFilters: S, bindListLoader: C, refreshList: w } = o({
|
|
17
|
+
arrayFilterKeys: ["verified"],
|
|
18
|
+
buildFilters: a
|
|
19
|
+
}), { detailPath: T } = n(), D = E(!1), O = E(_.map((e) => e.key)), k = E([]), A = E(0), j = E(!1), N = E(""), P = E(!1);
|
|
20
|
+
function F(e) {
|
|
21
|
+
return e.surveyor_name || [
|
|
22
|
+
e.last_name,
|
|
23
|
+
e.first_name,
|
|
24
|
+
e.middle_name
|
|
25
|
+
].filter(Boolean).join(" ") || "—";
|
|
26
|
+
}
|
|
27
|
+
function I(e) {
|
|
28
|
+
if (!e) return "";
|
|
29
|
+
let t = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
30
|
+
return t ? `${t[3]}.${t[2]}.${t[1]}` : e;
|
|
31
|
+
}
|
|
32
|
+
let L = 0, R = g(() => j.value ? "Завантаження…" : N.value ? N.value : "Сертифікатів за заданими фільтрами не знайдено.");
|
|
33
|
+
async function z() {
|
|
34
|
+
let e = ++L;
|
|
35
|
+
j.value = !0, N.value = "";
|
|
36
|
+
try {
|
|
37
|
+
let t = await r(f, {
|
|
38
|
+
page: b.value,
|
|
39
|
+
limit: x.value,
|
|
40
|
+
sort: p.sort,
|
|
41
|
+
search: v.value.trim() || void 0,
|
|
42
|
+
filters: S.value
|
|
43
|
+
});
|
|
44
|
+
if (e !== L) return;
|
|
45
|
+
k.value = t.rows ?? [], A.value = Number(t.total) || 0;
|
|
46
|
+
} catch (t) {
|
|
47
|
+
if (e !== L) return;
|
|
48
|
+
k.value = [], A.value = 0, N.value = t instanceof Error ? t.message : "Не вдалося завантажити сертифікати";
|
|
49
|
+
} finally {
|
|
50
|
+
e === L && (j.value = !1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
C(() => {
|
|
54
|
+
z();
|
|
55
|
+
});
|
|
56
|
+
function B(e) {
|
|
57
|
+
y.value = e;
|
|
58
|
+
}
|
|
59
|
+
function V(e) {
|
|
60
|
+
O.value = O.value.includes(e) ? O.value.length > 1 ? O.value.filter((t) => t !== e) : O.value : [...O.value, e];
|
|
61
|
+
}
|
|
62
|
+
function H() {
|
|
63
|
+
b.value === 1 ? w(() => {
|
|
64
|
+
z();
|
|
65
|
+
}) : b.value = 1;
|
|
66
|
+
}
|
|
67
|
+
let U = {
|
|
68
|
+
columns: _,
|
|
69
|
+
query: v,
|
|
70
|
+
filterValues: y,
|
|
71
|
+
page: b,
|
|
72
|
+
pageSize: x,
|
|
73
|
+
listFilters: S,
|
|
74
|
+
bindListLoader: C,
|
|
75
|
+
refreshList: w,
|
|
76
|
+
detailPath: T,
|
|
77
|
+
columnsOpen: D,
|
|
78
|
+
visibleColumns: O,
|
|
79
|
+
rows: k,
|
|
80
|
+
total: A,
|
|
81
|
+
loading: j,
|
|
82
|
+
error: N,
|
|
83
|
+
showAddModal: P,
|
|
84
|
+
personName: F,
|
|
85
|
+
formatDate: I,
|
|
86
|
+
get requestId() {
|
|
87
|
+
return L;
|
|
88
|
+
},
|
|
89
|
+
set requestId(e) {
|
|
90
|
+
L = e;
|
|
91
|
+
},
|
|
92
|
+
emptyText: R,
|
|
93
|
+
loadRows: z,
|
|
94
|
+
onFilterValuesUpdate: B,
|
|
95
|
+
toggleColumn: V,
|
|
96
|
+
onCertificateSaved: H,
|
|
97
|
+
AppIcon: t,
|
|
98
|
+
get RouterLink() {
|
|
99
|
+
return M;
|
|
100
|
+
},
|
|
101
|
+
PageHeader: s,
|
|
102
|
+
VerifiedBadge: i,
|
|
103
|
+
RegistryTable: l,
|
|
104
|
+
TablePagination: c,
|
|
105
|
+
RegistryFormModal: d,
|
|
106
|
+
RegistryToolbar: u,
|
|
107
|
+
get config() {
|
|
108
|
+
return m;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
return Object.defineProperty(U, "__isScriptSetup", {
|
|
112
|
+
enumerable: !1,
|
|
113
|
+
value: !0
|
|
114
|
+
}), U;
|
|
115
|
+
}
|
|
116
|
+
}), P = { class: "px-4" }, F = { class: "relative block" }, I = {
|
|
117
|
+
type: "button",
|
|
118
|
+
class: "inline-flex h-10 w-10 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-600 transition-colors hover:border-brand-300 hover:text-brand-700",
|
|
119
|
+
"aria-label": "Експорт",
|
|
120
|
+
title: "Експорт"
|
|
121
|
+
}, L = { class: "relative" }, R = {
|
|
122
|
+
key: 0,
|
|
123
|
+
class: "absolute right-0 top-12 z-20 w-64 rounded-lg border border-slate-200 bg-white p-2 shadow-card-hover"
|
|
124
|
+
}, z = ["checked", "onChange"], B = { class: "mt-3 flex items-center justify-between border-t border-slate-100 pt-3 text-xs text-slate-400" }, V = { class: "font-semibold text-slate-600" }, H = {
|
|
125
|
+
key: 1,
|
|
126
|
+
class: "break-words font-medium text-slate-700"
|
|
127
|
+
}, U = {
|
|
128
|
+
key: 3,
|
|
129
|
+
class: "text-slate-400"
|
|
130
|
+
}, W = {
|
|
131
|
+
key: 4,
|
|
132
|
+
class: "whitespace-nowrap text-slate-600"
|
|
133
|
+
};
|
|
134
|
+
function G(e, t, n, r, i, a) {
|
|
135
|
+
return T(), y("div", null, [
|
|
136
|
+
S(r.PageHeader, {
|
|
137
|
+
title: "Реєстр сертифікатів",
|
|
138
|
+
subtitle: "Кваліфікаційні сертифікати геодезичного кабінету"
|
|
139
|
+
}),
|
|
140
|
+
b("section", P, [
|
|
141
|
+
S(r.RegistryToolbar, {
|
|
142
|
+
"filter-config": r.config.filter,
|
|
143
|
+
"filter-values": r.filterValues,
|
|
144
|
+
"onUpdate:filterValues": r.onFilterValuesUpdate
|
|
145
|
+
}, {
|
|
146
|
+
search: A(() => [b("label", F, [S(r.AppIcon, {
|
|
147
|
+
name: "search",
|
|
148
|
+
class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"
|
|
149
|
+
}), j(b("input", {
|
|
150
|
+
"onUpdate:modelValue": t[0] ||= (e) => r.query = e,
|
|
151
|
+
type: "search",
|
|
152
|
+
placeholder: "Пошук (ПІБ, номер сертифіката)…",
|
|
153
|
+
class: "h-10 w-full rounded-lg border border-slate-200 bg-white pl-9 pr-3 text-sm text-slate-700 outline-none transition-colors placeholder:text-slate-400 focus:border-brand-400 focus:ring-1 focus:ring-brand-400"
|
|
154
|
+
}, null, 512), [[k, r.query]])])]),
|
|
155
|
+
actions: A(() => [b("button", I, [S(r.AppIcon, {
|
|
156
|
+
name: "download",
|
|
157
|
+
class: "h-4 w-4"
|
|
158
|
+
})]), b("div", L, [b("button", {
|
|
159
|
+
type: "button",
|
|
160
|
+
class: "inline-flex h-10 w-10 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-600 transition-colors hover:border-brand-300 hover:text-brand-700",
|
|
161
|
+
"aria-label": "Налаштувати колонки",
|
|
162
|
+
onClick: t[1] ||= (e) => r.columnsOpen = !r.columnsOpen
|
|
163
|
+
}, [S(r.AppIcon, {
|
|
164
|
+
name: "columns-3",
|
|
165
|
+
class: "h-4 w-4"
|
|
166
|
+
})]), r.columnsOpen ? (T(), y("div", R, [t[5] ||= b("p", { class: "px-2 py-1 text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Показати колонки", -1), (T(!0), y(h, null, D(r.columns, (e) => (T(), y("label", {
|
|
167
|
+
key: e.key,
|
|
168
|
+
class: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2 text-sm text-slate-600 hover:bg-slate-50"
|
|
169
|
+
}, [b("input", {
|
|
170
|
+
type: "checkbox",
|
|
171
|
+
checked: r.visibleColumns.includes(e.key),
|
|
172
|
+
class: "h-4 w-4 accent-brand-600",
|
|
173
|
+
onChange: (t) => r.toggleColumn(e.key)
|
|
174
|
+
}, null, 40, z), x(" " + O(e.label), 1)]))), 128))])) : v("", !0)])]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["filter-config", "filter-values"]),
|
|
177
|
+
b("div", B, [b("span", null, [t[6] ||= x("Знайдено сертифікатів: ", -1), b("strong", V, O(r.total), 1)])]),
|
|
178
|
+
S(r.RegistryTable, {
|
|
179
|
+
class: "mt-3",
|
|
180
|
+
rows: r.rows,
|
|
181
|
+
columns: r.columns,
|
|
182
|
+
"visible-keys": r.visibleColumns,
|
|
183
|
+
"row-key": "certificate_id",
|
|
184
|
+
"min-width": "1100px",
|
|
185
|
+
"empty-text": r.emptyText
|
|
186
|
+
}, {
|
|
187
|
+
cell: A(({ row: e, column: t }) => [t === "fullName" ? (T(), _(r.RouterLink, {
|
|
188
|
+
key: 0,
|
|
189
|
+
to: r.detailPath(e.certificate_id),
|
|
190
|
+
class: "block w-full max-w-full break-words text-left font-semibold text-brand-700 hover:text-brand-900 hover:underline"
|
|
191
|
+
}, {
|
|
192
|
+
default: A(() => [x(O(r.personName(e)), 1)]),
|
|
193
|
+
_: 2
|
|
194
|
+
}, 1032, ["to"])) : t === "certificate" ? (T(), y("span", H, O(e.number_certificate || "—"), 1)) : t === "verified" && typeof e.isvalid == "boolean" ? (T(), _(r.VerifiedBadge, {
|
|
195
|
+
key: 2,
|
|
196
|
+
verified: e.isvalid
|
|
197
|
+
}, null, 8, ["verified"])) : t === "verified" ? (T(), y("span", U, "—")) : t === "qualificationUpgrade" ? (T(), y("span", W, O(r.formatDate(e.last_qualification_date) || "—"), 1)) : t === "suspendedAt" ? (T(), y("span", {
|
|
198
|
+
key: 5,
|
|
199
|
+
class: w(["whitespace-nowrap", e.certificate_suspension ? "font-medium text-danger-700" : "text-slate-400"])
|
|
200
|
+
}, O(r.formatDate(e.certificate_suspension) || "—"), 3)) : t === "terminatedAt" ? (T(), y("span", {
|
|
201
|
+
key: 6,
|
|
202
|
+
class: w(["whitespace-nowrap", e.certificate_stopping ? "font-medium text-danger-700" : "text-slate-400"])
|
|
203
|
+
}, O(e.certificate_stopping || "—"), 3)) : v("", !0)]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, [
|
|
206
|
+
"rows",
|
|
207
|
+
"columns",
|
|
208
|
+
"visible-keys",
|
|
209
|
+
"empty-text"
|
|
210
|
+
]),
|
|
211
|
+
r.total > 0 ? (T(), _(r.TablePagination, {
|
|
212
|
+
key: 0,
|
|
213
|
+
page: r.page,
|
|
214
|
+
"onUpdate:page": t[2] ||= (e) => r.page = e,
|
|
215
|
+
"page-size": r.pageSize,
|
|
216
|
+
"onUpdate:pageSize": t[3] ||= (e) => r.pageSize = e,
|
|
217
|
+
total: r.total
|
|
218
|
+
}, null, 8, [
|
|
219
|
+
"page",
|
|
220
|
+
"page-size",
|
|
221
|
+
"total"
|
|
222
|
+
])) : v("", !0)
|
|
223
|
+
]),
|
|
224
|
+
S(r.RegistryFormModal, {
|
|
225
|
+
modelValue: r.showAddModal,
|
|
226
|
+
"onUpdate:modelValue": t[4] ||= (e) => r.showAddModal = e,
|
|
227
|
+
title: "Новий сертифікат",
|
|
228
|
+
config: r.config.form,
|
|
229
|
+
width: "max-w-3xl",
|
|
230
|
+
onSaved: r.onCertificateSaved
|
|
231
|
+
}, null, 8, ["modelValue", "config"])
|
|
232
|
+
]);
|
|
233
|
+
}
|
|
234
|
+
var K = /*#__PURE__*/ e(N, [["render", G], ["__file", "D:/softpro/surveyor/admin/src/pages/certificates/index.vue"]]);
|
|
235
|
+
//#endregion
|
|
236
|
+
export { K as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { a as t, t as n } from "./surveyor-CDkI2Dcp.js";
|
|
3
3
|
import { s as r, t as i } from "./organizations-DbVDoURw.js";
|
|
4
|
-
import { t as a } from "./AppIcon-
|
|
5
|
-
import { t as o } from "./SurveyorTeleport-
|
|
4
|
+
import { t as a } from "./AppIcon-Di5F4Bu_.js";
|
|
5
|
+
import { t as o } from "./SurveyorTeleport-D6-KXe_5.js";
|
|
6
6
|
import { c as s, t as c, u as l } from "./appealMapLayers-CQMK3rrz.js";
|
|
7
7
|
import { t as u } from "./work_types-Hwme-FEX.js";
|
|
8
8
|
import { a as d, d as f, i as p, l as m, r as h, s as g, t as _, u as v } from "./mapLayersApi-CBLcbADa.js";
|
|
9
9
|
import { i as y, n as b } from "./geometry-DyhIVRcw.js";
|
|
10
|
-
import { t as x } from "./MapLayerMenu-
|
|
11
|
-
import { t as S } from "./FormFilePicker-
|
|
10
|
+
import { t as x } from "./MapLayerMenu-CI5cbLEC.js";
|
|
11
|
+
import { t as S } from "./FormFilePicker-D5fAUE0Z.js";
|
|
12
12
|
import { i as ee, r as C, s as w } from "./applications-D6pHAQaK.js";
|
|
13
13
|
import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as j, createVNode as M, defineComponent as N, nextTick as P, normalizeClass as F, normalizeStyle as I, onBeforeUnmount as L, onMounted as te, onUnmounted as ne, openBlock as R, ref as z, renderList as re, shallowRef as ie, toDisplayString as B, vModelText as V, watch as H, withCtx as U, withDirectives as W, withModifiers as G } from "vue";
|
|
14
14
|
import { RouterLink as K, useRouter as ae } from "vue-router";
|
|
@@ -154,7 +154,7 @@ function Y(e, t, n, r, i, a) {
|
|
|
154
154
|
_: 1
|
|
155
155
|
})], 512)]);
|
|
156
156
|
}
|
|
157
|
-
var me = /*#__PURE__*/ e(q, [["render", Y], ["__file", "
|
|
157
|
+
var me = /*#__PURE__*/ e(q, [["render", Y], ["__file", "D:/softpro/surveyor/cabinet/src/pages/requests/components/FormSearchSelect.vue"]]), he = /*@__PURE__*/ N({
|
|
158
158
|
__name: "FormSuggestSelect",
|
|
159
159
|
props: {
|
|
160
160
|
label: {
|
|
@@ -315,7 +315,7 @@ function Te(e, t, n, r, i, a) {
|
|
|
315
315
|
_: 1
|
|
316
316
|
})], 512)]);
|
|
317
317
|
}
|
|
318
|
-
var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "
|
|
318
|
+
var Ee = /*#__PURE__*/ e(he, [["render", Te], ["__file", "D:/softpro/surveyor/cabinet/src/pages/requests/components/FormSuggestSelect.vue"]]), Z = "draft-polygon", De = "draft-polygon-fill", Oe = "draft-polygon-line", Q = "draft-vertices", ke = "draft-vertices-layer", $ = "draft-vertices-hit", Ae = 12, je = 17, Me = 13, Ne = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 3v12\"/><path d=\"m17 8-5-5-5 5\"/><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"/></svg>", Pe = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 20h9\"/><path d=\"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z\"/></svg>", Fe = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 6h18\"/><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\"/><path d=\"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"/><path d=\"M10 11v6\"/><path d=\"M14 11v6\"/></svg>", Ie = /*@__PURE__*/ N({
|
|
319
319
|
__name: "ApplicationCreateMap",
|
|
320
320
|
props: {
|
|
321
321
|
points: {
|
|
@@ -884,7 +884,7 @@ function Ve(e, t, n, r, i, a) {
|
|
|
884
884
|
A("div", Be, B(r.hint), 1)
|
|
885
885
|
]);
|
|
886
886
|
}
|
|
887
|
-
var He = /*#__PURE__*/ e(Ie, [["render", Ve], ["__file", "
|
|
887
|
+
var He = /*#__PURE__*/ e(Ie, [["render", Ve], ["__file", "D:/softpro/surveyor/cabinet/src/pages/requests/components/ApplicationCreateMap.vue"]]), Ue = /*@__PURE__*/ N({
|
|
888
888
|
__name: "GeometryImportDialog",
|
|
889
889
|
emits: ["close", "imported"],
|
|
890
890
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -973,7 +973,7 @@ function Ze(e, t, n, r, i, a) {
|
|
|
973
973
|
_: 1
|
|
974
974
|
});
|
|
975
975
|
}
|
|
976
|
-
var Qe = /*#__PURE__*/ e(Ue, [["render", Ze], ["__file", "
|
|
976
|
+
var Qe = /*#__PURE__*/ e(Ue, [["render", Ze], ["__file", "D:/softpro/surveyor/cabinet/src/pages/requests/components/GeometryImportDialog.vue"]]), $e = "public_applications", et = $e;
|
|
977
977
|
async function tt(e, r, i) {
|
|
978
978
|
let a = new URLSearchParams();
|
|
979
979
|
if (a.set("limit", String(i?.limit ?? 20)), i?.search && a.set("search", i.search), i?.filter) for (let [e, t] of Object.entries(i.filter)) a.set(`filter[${e}]`, String(t));
|
|
@@ -1301,6 +1301,6 @@ function jt(e, t, n, r, i, a) {
|
|
|
1301
1301
|
})) : O("", !0)
|
|
1302
1302
|
]);
|
|
1303
1303
|
}
|
|
1304
|
-
var Mt = /*#__PURE__*/ e(nt, [["render", jt], ["__file", "
|
|
1304
|
+
var Mt = /*#__PURE__*/ e(nt, [["render", jt], ["__file", "D:/softpro/surveyor/cabinet/src/pages/requests/create.vue"]]);
|
|
1305
1305
|
//#endregion
|
|
1306
1306
|
export { Mt as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { o as t } from "./surveyor-CDkI2Dcp.js";
|
|
3
|
-
import { t as n } from "./AppIcon-
|
|
3
|
+
import { t as n } from "./AppIcon-Di5F4Bu_.js";
|
|
4
4
|
import { createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, openBlock as l, ref as u, toDisplayString as d, vModelText as f, withCtx as p, withDirectives as m, withModifiers as h } from "vue";
|
|
5
5
|
import { RouterLink as g, useRoute as _ } from "vue-router";
|
|
6
6
|
//#region cabinet/src/pages/password/forgot.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -95,6 +95,6 @@ function O(e, t, n, c, u, g) {
|
|
|
95
95
|
})])
|
|
96
96
|
], 32))])]);
|
|
97
97
|
}
|
|
98
|
-
var k = /*#__PURE__*/ e(v, [["render", O], ["__file", "
|
|
98
|
+
var k = /*#__PURE__*/ e(v, [["render", O], ["__file", "D:/softpro/surveyor/cabinet/src/pages/password/forgot.vue"]]);
|
|
99
99
|
//#endregion
|
|
100
100
|
export { k as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { t } from "./auth-acuaYbYM.js";
|
|
3
|
-
import { t as n } from "./AppIcon-
|
|
3
|
+
import { t as n } from "./AppIcon-Di5F4Bu_.js";
|
|
4
4
|
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, openBlock as u, ref as d, toDisplayString as f, vModelText as p, withCtx as m, withDirectives as h, withModifiers as g } from "vue";
|
|
5
5
|
import { RouterLink as _, useRoute as v, useRouter as y } from "vue-router";
|
|
6
6
|
//#region cabinet/src/pages/login/index.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -119,6 +119,6 @@ function M(e, t, n, r, l, d) {
|
|
|
119
119
|
], 32)
|
|
120
120
|
])]);
|
|
121
121
|
}
|
|
122
|
-
var N = /*#__PURE__*/ e(b, [["render", M], ["__file", "
|
|
122
|
+
var N = /*#__PURE__*/ e(b, [["render", M], ["__file", "D:/softpro/surveyor/cabinet/src/pages/login/index.vue"]]);
|
|
123
123
|
//#endregion
|
|
124
124
|
export { N as default };
|