@opengis/surveyor 0.0.1 → 0.0.3

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 (46) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +175 -33
  3. package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
  4. package/dist/chunks/{RegistryForm-pvIcFR-V.js → RegistryForm-wG-c8GKf.js} +1 -1
  5. package/dist/chunks/{RegistryFormModal-BjGu7Upv.js → RegistryFormModal-R_iZYqGE.js} +2 -2
  6. package/dist/chunks/{RegistryToolbar-CiUgsjpU.js → RegistryToolbar-322DKUXi.js} +3 -3
  7. package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
  8. package/dist/chunks/{VerifiedBadge-B6droMOf.js → VerifiedBadge-bk0n-rlC.js} +1 -1
  9. package/dist/chunks/{buildSchema-nkA4Y0YG.js → buildSchema-CccjX9TJ.js} +1 -1
  10. package/dist/chunks/card-B_SfARf7.js +1190 -0
  11. package/dist/chunks/card-C3y-j2TA.js +298 -0
  12. package/dist/chunks/{card--DHsMNBd.js → card-CWqi1K-x.js} +107 -106
  13. package/dist/chunks/card-DWpAv92l.js +539 -0
  14. package/dist/chunks/{card-BZn5CDw9.js → card-X9UVFgdR.js} +254 -248
  15. package/dist/chunks/{certificates-DueBDDvc.js → certificates-Cwch72-o.js} +131 -130
  16. package/dist/chunks/{create-l28e-bWl.js → create-DTP9x2uS.js} +278 -265
  17. package/dist/chunks/dom-BSjFG3O0.js +7 -0
  18. package/dist/chunks/{filterQuery-B9XNx1f1.js → filterQuery-CvfZrkTC.js} +1 -1
  19. package/dist/chunks/{form-CdGS1nVO.js → form-Bh6i5n1U.js} +1 -1
  20. package/dist/chunks/{form-QTkkzwbC.js → form-DDjELqZ9.js} +1 -1
  21. package/dist/chunks/{map-layers-qxWjos2V.js → map-layers-sT-gTiD_.js} +130 -125
  22. package/dist/chunks/{map-BW3iOhQg.js → map-qXQe_qam.js} +643 -630
  23. package/dist/chunks/{organizations-CZOINYMq.js → organizations-ByVE2f0c.js} +129 -124
  24. package/dist/chunks/requests-BTpLXrNj.js +233 -0
  25. package/dist/chunks/{resendSurveyorRegistration-DopjOHaM.js → resendSurveyorRegistration-BHTTVIw1.js} +1 -1
  26. package/dist/chunks/{resources-Cl_EvaIy.js → resources-2e8RFqWR.js} +1 -1
  27. package/dist/chunks/{surveyorAccount-BceNQypZ.js → surveyorAccount-C7UiiIYg.js} +1 -1
  28. package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
  29. package/dist/chunks/{users-DlaogjC_.js → users-U1P6xCP4.js} +106 -100
  30. package/dist/index.css +1 -1
  31. package/dist/index.js +215 -98
  32. package/package.json +83 -77
  33. package/plugin.d.ts +15 -0
  34. package/plugin.js +8 -10
  35. package/server/app.ts +2 -1
  36. package/server/resources/surveyor-admin/application_comments.ts +3 -3
  37. package/server/suggests/index.ts +17 -0
  38. package/surveyor-types.d.ts +5 -0
  39. package/README.npm.md +0 -51
  40. package/dist/chunks/AppIcon-C-4QykTP.js +0 -85
  41. package/dist/chunks/BaseModal-DrTTkLmR.js +0 -85
  42. package/dist/chunks/card-9LaB42Ol.js +0 -538
  43. package/dist/chunks/card-CNqXSyqX.js +0 -297
  44. package/dist/chunks/card-CgGOgGyd.js +0 -973
  45. package/dist/chunks/requests-DQJIhz00.js +0 -232
  46. package/server/embed.ts +0 -49
@@ -1,297 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./AppIcon-C-4QykTP.js";
3
- import { a as n, i as r } from "./resources-Cl_EvaIy.js";
4
- import { t as i } from "./VerifiedBadge-B6droMOf.js";
5
- import { t as a } from "./UserTypeBadge-LvnMuKGo.js";
6
- import { t as o } from "./UserAccessBadge-DyZDv7Oo.js";
7
- import { n as s, t as c } from "./AppealDetailField-DNRGpnyD.js";
8
- import { a as l } from "./surveyorAccount-BceNQypZ.js";
9
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, normalizeClass as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, watch as w, withCtx as T } from "vue";
10
- import { RouterLink as E, useRoute as D } from "vue-router";
11
- //#region admin/src/pages/certificates/card.vue?vue&type=script&setup=true&lang.ts
12
- var O = /*@__PURE__*/ v({
13
- __name: "card",
14
- setup(e, { expose: u }) {
15
- u();
16
- let f = D(), p = x(null), m = x([]), h = x(!1), g = x(""), _ = d(() => {
17
- let e = p.value;
18
- return e ? e.surveyor_name || [
19
- e.last_name,
20
- e.first_name,
21
- e.middle_name
22
- ].filter(Boolean).join(" ") || e.number_certificate || "Сертифікат" : "";
23
- }), v = d(() => String(p.value?.certificate_type ?? "")), y = d(() => {
24
- let e = p.value;
25
- return e ? e.membership ? e.membership : e.is_membership === !0 ? "Так" : e.is_membership === !1 ? "Ні" : "—" : "—";
26
- });
27
- function b(e) {
28
- return [
29
- e.last_name,
30
- e.first_name,
31
- e.middle_name
32
- ].filter(Boolean).join(" ") || "—";
33
- }
34
- function S(e) {
35
- if (!e) return "";
36
- let t = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
37
- return t ? `${t[3]}.${t[2]}.${t[1]}` : e;
38
- }
39
- async function C(e) {
40
- h.value = !0, g.value = "", p.value = null, m.value = [];
41
- try {
42
- let [t, i] = await Promise.all([n(`/api/resource/certificates/${encodeURIComponent(e)}`), r("surveyors", {
43
- page: 1,
44
- limit: 100,
45
- filters: { certificate_id: e }
46
- }).catch(() => ({ rows: [] }))]);
47
- p.value = t, m.value = i.rows ?? [];
48
- } catch (e) {
49
- p.value = null, m.value = [], g.value = e instanceof Error ? e.message : "Не вдалося завантажити сертифікат";
50
- } finally {
51
- h.value = !1;
52
- }
53
- }
54
- w(() => String(f.params.id), (e) => {
55
- e && C(e);
56
- }, { immediate: !0 });
57
- let T = {
58
- route: f,
59
- certificate: p,
60
- surveyors: m,
61
- loading: h,
62
- error: g,
63
- fullName: _,
64
- registryType: v,
65
- membershipText: y,
66
- personName: b,
67
- formatDate: S,
68
- loadCertificate: C,
69
- AppIcon: t,
70
- get RouterLink() {
71
- return E;
72
- },
73
- VerifiedBadge: i,
74
- UserTypeBadge: a,
75
- UserAccessBadge: o,
76
- AppealDetailSection: s,
77
- AppealDetailField: c,
78
- get surveyorEnabled() {
79
- return l;
80
- }
81
- };
82
- return Object.defineProperty(T, "__isScriptSetup", {
83
- enumerable: !1,
84
- value: !0
85
- }), T;
86
- }
87
- }), k = {
88
- key: 0,
89
- class: "px-4 py-16 text-center text-sm text-slate-400"
90
- }, A = {
91
- key: 1,
92
- class: "pl-0"
93
- }, j = { class: "mb-6" }, M = { class: "mb-4 flex items-center gap-1.5 text-sm" }, N = { class: "font-medium text-slate-700" }, P = { class: "flex min-w-0 flex-wrap items-center gap-3" }, F = { class: "text-xl font-bold tracking-tight text-slate-900" }, ee = {
94
- key: 1,
95
- class: "inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2 py-0.5 text-xs font-medium text-slate-600"
96
- }, I = { class: "flex flex-col gap-5" }, L = { class: "grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2" }, R = {
97
- key: 1,
98
- class: "text-[14px] font-medium text-slate-700"
99
- }, z = { class: "grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2" }, B = { class: "grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2" }, V = {
100
- key: 0,
101
- class: "py-6 text-center text-sm text-slate-400"
102
- }, H = {
103
- key: 1,
104
- class: "overflow-x-auto"
105
- }, U = { class: "min-w-full table-fixed text-left text-[13px]" }, W = { class: "divide-y divide-slate-100" }, G = { class: "px-1 py-3" }, K = {
106
- key: 0,
107
- class: "mt-1 text-xs text-slate-400"
108
- }, q = { class: "break-all px-1 py-3 text-slate-600" }, J = { class: "whitespace-nowrap px-1 py-3 text-slate-600" }, Y = { class: "px-1 py-3" }, X = {
109
- key: 2,
110
- class: "rounded-xl border border-slate-200 bg-white px-6 py-16 text-center shadow-card"
111
- }, Z = { class: "text-sm text-slate-500" };
112
- function Q(e, t, n, r, i, a) {
113
- return r.loading ? (b(), m("div", k, " Завантаження… ")) : r.certificate ? (b(), m("div", A, [h("header", j, [h("nav", M, [
114
- _(r.RouterLink, {
115
- to: "/certificates",
116
- class: "flex items-center gap-1 text-slate-400 transition-colors hover:text-brand-600"
117
- }, {
118
- default: T(() => [_(r.AppIcon, {
119
- name: "home",
120
- class: "h-3.5 w-3.5"
121
- }), t[0] ||= g(" Реєстр сертифікатів ", -1)]),
122
- _: 1
123
- }),
124
- t[1] ||= h("span", { class: "text-slate-300" }, "/", -1),
125
- h("span", N, C(r.fullName), 1)
126
- ]), h("div", P, [h("h1", F, C(r.fullName), 1), r.registryType ? (b(), f(r.UserTypeBadge, {
127
- key: 0,
128
- type: r.registryType
129
- }, null, 8, ["type"])) : r.certificate.certificate_type_data?.text ? (b(), m("span", ee, C(r.certificate.certificate_type_data.text), 1)) : p("", !0)])]), h("div", I, [
130
- _(r.AppealDetailSection, { title: "Інформація про сертифікат" }, {
131
- icon: T(() => [_(r.AppIcon, {
132
- name: "award",
133
- class: "h-[18px] w-[18px]"
134
- })]),
135
- default: T(() => [h("dl", L, [
136
- _(r.AppealDetailField, {
137
- label: "Номер кваліфікаційного сертифіката",
138
- highlight: ""
139
- }, {
140
- default: T(() => [g(C(r.certificate.number_certificate || "—"), 1)]),
141
- _: 1
142
- }),
143
- _(r.AppealDetailField, { label: "Дата видачі кваліфікаційного сертифіката" }, {
144
- default: T(() => [g(C(r.formatDate(r.certificate.date_certificate) || "—"), 1)]),
145
- _: 1
146
- }),
147
- _(r.AppealDetailField, { label: "Реєстр" }, {
148
- default: T(() => [g(C(r.certificate.certificate_type_data?.text || "—"), 1)]),
149
- _: 1
150
- }),
151
- h("div", null, [t[2] ||= h("dt", { class: "mb-1 text-xs font-medium text-slate-500" }, "Верифікація", -1), h("dd", null, [typeof r.certificate.isvalid == "boolean" ? (b(), f(r.VerifiedBadge, {
152
- key: 0,
153
- verified: r.certificate.isvalid
154
- }, null, 8, ["verified"])) : (b(), m("span", R, "—"))])]),
155
- _(r.AppealDetailField, {
156
- label: "Назва навчального закладу",
157
- full: ""
158
- }, {
159
- default: T(() => [g(C(r.certificate.name_school || "—"), 1)]),
160
- _: 1
161
- }),
162
- _(r.AppealDetailField, { label: "Місце роботи інженера-геодезиста" }, {
163
- default: T(() => [g(C(r.certificate.work_place || "—"), 1)]),
164
- _: 1
165
- }),
166
- _(r.AppealDetailField, { label: "Місце провадження господарської діяльності" }, {
167
- default: T(() => [g(C(r.certificate.economic_activity || "—"), 1)]),
168
- _: 1
169
- }),
170
- _(r.AppealDetailField, {
171
- label: "Членство",
172
- full: ""
173
- }, {
174
- default: T(() => [g(C(r.membershipText), 1)]),
175
- _: 1
176
- })
177
- ])]),
178
- _: 1
179
- }),
180
- _(r.AppealDetailSection, { title: "Геодезист" }, {
181
- icon: T(() => [_(r.AppIcon, {
182
- name: "user",
183
- class: "h-[18px] w-[18px]"
184
- })]),
185
- default: T(() => [h("dl", z, [
186
- _(r.AppealDetailField, {
187
- label: "ПІБ",
188
- highlight: ""
189
- }, {
190
- default: T(() => [g(C(r.fullName), 1)]),
191
- _: 1
192
- }),
193
- _(r.AppealDetailField, { label: "Email геодезиста" }, {
194
- default: T(() => [g(C(r.certificate.surveyor_email || "—"), 1)]),
195
- _: 1
196
- }),
197
- _(r.AppealDetailField, { label: "Номер телефону геодезиста" }, {
198
- default: T(() => [g(C(r.certificate.surveyor_phone || "—"), 1)]),
199
- _: 1
200
- })
201
- ])]),
202
- _: 1
203
- }),
204
- _(r.AppealDetailSection, { title: "Кваліфікація та обмеження" }, {
205
- icon: T(() => [_(r.AppIcon, {
206
- name: "calendar-days",
207
- class: "h-[18px] w-[18px]"
208
- })]),
209
- default: T(() => [h("dl", B, [
210
- _(r.AppealDetailField, { label: "Підвищення кваліфікації" }, {
211
- default: T(() => [g(C(r.formatDate(r.certificate.last_qualification_date) || "—"), 1)]),
212
- _: 1
213
- }),
214
- _(r.AppealDetailField, { label: "Кваліфікаційний рівень" }, {
215
- default: T(() => [g(C(r.certificate.qualification_level || "—"), 1)]),
216
- _: 1
217
- }),
218
- _(r.AppealDetailField, { label: "Дата протоколу" }, {
219
- default: T(() => [g(C(r.formatDate(r.certificate.date_protocol) || "—"), 1)]),
220
- _: 1
221
- }),
222
- _(r.AppealDetailField, { label: "Номер протоколу" }, {
223
- default: T(() => [g(C(r.certificate.number_protocol || "—"), 1)]),
224
- _: 1
225
- }),
226
- _(r.AppealDetailField, {
227
- label: "Інформація про підвищення кваліфікації",
228
- full: ""
229
- }, {
230
- default: T(() => [g(C(r.certificate.certificate_increase || "—"), 1)]),
231
- _: 1
232
- }),
233
- _(r.AppealDetailField, {
234
- label: "Підстава для поновлення",
235
- full: ""
236
- }, {
237
- default: T(() => [g(C(r.certificate.certificate_renewal || "—"), 1)]),
238
- _: 1
239
- }),
240
- _(r.AppealDetailField, { label: "Дата призупинення" }, {
241
- default: T(() => [h("span", { class: y(r.certificate.certificate_suspension ? "text-danger-700" : "") }, C(r.formatDate(r.certificate.certificate_suspension) || "—"), 3)]),
242
- _: 1
243
- }),
244
- _(r.AppealDetailField, { label: "Дата припинення" }, {
245
- default: T(() => [h("span", { class: y(r.certificate.certificate_stopping ? "text-danger-700" : "") }, C(r.certificate.certificate_stopping || "—"), 3)]),
246
- _: 1
247
- })
248
- ])]),
249
- _: 1
250
- }),
251
- _(r.AppealDetailSection, { title: "Користувачі" }, {
252
- icon: T(() => [_(r.AppIcon, {
253
- name: "users",
254
- class: "h-[18px] w-[18px]"
255
- })]),
256
- default: T(() => [r.surveyors.length === 0 ? (b(), m("p", V, " Користувачів за цим сертифікатом не знайдено. ")) : (b(), m("div", H, [h("table", U, [
257
- t[3] ||= h("colgroup", null, [
258
- h("col", { class: "w-[32%]" }),
259
- h("col", { class: "w-[28%]" }),
260
- h("col", { class: "w-[22%]" }),
261
- h("col", { class: "w-[18%]" })
262
- ], -1),
263
- t[4] ||= h("thead", { class: "text-xs font-semibold text-slate-500" }, [h("tr", { class: "border-b border-slate-100" }, [
264
- h("th", { class: "px-1 py-2.5" }, "ПІБ"),
265
- h("th", { class: "px-1 py-2.5" }, "Email"),
266
- h("th", { class: "px-1 py-2.5" }, "Телефон"),
267
- h("th", { class: "px-1 py-2.5" }, "Доступ")
268
- ])], -1),
269
- h("tbody", W, [(b(!0), m(u, null, S(r.surveyors, (e) => (b(), m("tr", {
270
- key: e.surveyor_id,
271
- class: "transition-colors hover:bg-brand-50/40"
272
- }, [
273
- h("td", G, [_(r.RouterLink, {
274
- to: `/users/${e.surveyor_id}`,
275
- class: "font-semibold text-brand-700 hover:text-brand-900 hover:underline"
276
- }, {
277
- default: T(() => [g(C(r.personName(e)), 1)]),
278
- _: 2
279
- }, 1032, ["to"]), e.registered_at ? p("", !0) : (b(), m("p", K, "Реєстрацію не завершено"))]),
280
- h("td", q, C(e.email || "—"), 1),
281
- h("td", J, C(e.phone || "—"), 1),
282
- h("td", Y, [_(r.UserAccessBadge, { "account-blocked": !r.surveyorEnabled(e) }, null, 8, ["account-blocked"])])
283
- ]))), 128))])
284
- ])]))]),
285
- _: 1
286
- })
287
- ])])) : (b(), m("div", X, [h("p", Z, C(r.error || "Сертифікат не знайдено."), 1), _(r.RouterLink, {
288
- to: "/certificates",
289
- class: "mt-3 inline-block text-sm font-medium text-brand-600 hover:text-brand-700"
290
- }, {
291
- default: T(() => [...t[5] ||= [g(" Повернутися до реєстру ", -1)]]),
292
- _: 1
293
- })]));
294
- }
295
- var $ = /*#__PURE__*/ e(O, [["render", Q], ["__file", "C:/softpro/surveyor/admin/src/pages/certificates/card.vue"]]);
296
- //#endregion
297
- export { $ as default };