@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
|
@@ -5,7 +5,7 @@ import { t as i } from "./VerifiedBadge-bk0n-rlC.js";
|
|
|
5
5
|
import { n as a } from "./filterQuery-Dka-mIso.js";
|
|
6
6
|
import { i as o, n as s, r as c, t as l } from "./RegistryToolbar-DXOEcD84.js";
|
|
7
7
|
import { t as u } from "./TablePagination-CUtnDQQ_.js";
|
|
8
|
-
import { t as d } from "./RegistryFormModal-
|
|
8
|
+
import { t as d } from "./RegistryFormModal-BmBsUOF3.js";
|
|
9
9
|
import { i as f, r as p, t as m } from "./certificates-Be6u7Cix.js";
|
|
10
10
|
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";
|
|
11
11
|
import { RouterLink as M } from "vue-router";
|
|
@@ -137,6 +137,16 @@ function G(e, t, n, r, i, a) {
|
|
|
137
137
|
S(r.PageHeader, {
|
|
138
138
|
title: "Реєстр сертифікатів",
|
|
139
139
|
subtitle: "Кваліфікаційні сертифікати геодезичного кабінету"
|
|
140
|
+
}, {
|
|
141
|
+
default: A(() => [b("button", {
|
|
142
|
+
type: "button",
|
|
143
|
+
class: "inline-flex h-10 items-center justify-center gap-2 rounded-lg bg-brand-600 px-4 text-sm font-semibold text-white shadow-sm transition-colors hover:bg-brand-700",
|
|
144
|
+
onClick: t[0] ||= (e) => r.showAddModal = !0
|
|
145
|
+
}, [S(r.AppIcon, {
|
|
146
|
+
name: "plus",
|
|
147
|
+
class: "h-4 w-4"
|
|
148
|
+
}), t[6] ||= x(" Додати ", -1)])]),
|
|
149
|
+
_: 1
|
|
140
150
|
}),
|
|
141
151
|
b("section", P, [
|
|
142
152
|
S(r.RegistryToolbar, {
|
|
@@ -148,7 +158,7 @@ function G(e, t, n, r, i, a) {
|
|
|
148
158
|
name: "search",
|
|
149
159
|
class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"
|
|
150
160
|
}), j(b("input", {
|
|
151
|
-
"onUpdate:modelValue": t[
|
|
161
|
+
"onUpdate:modelValue": t[1] ||= (e) => r.query = e,
|
|
152
162
|
type: "search",
|
|
153
163
|
placeholder: "Пошук (ПІБ, номер сертифіката)…",
|
|
154
164
|
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"
|
|
@@ -160,11 +170,11 @@ function G(e, t, n, r, i, a) {
|
|
|
160
170
|
type: "button",
|
|
161
171
|
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",
|
|
162
172
|
"aria-label": "Налаштувати колонки",
|
|
163
|
-
onClick: t[
|
|
173
|
+
onClick: t[2] ||= (e) => r.columnsOpen = !r.columnsOpen
|
|
164
174
|
}, [S(r.AppIcon, {
|
|
165
175
|
name: "columns-3",
|
|
166
176
|
class: "h-4 w-4"
|
|
167
|
-
})]), r.columnsOpen ? (T(), y("div", R, [t[
|
|
177
|
+
})]), r.columnsOpen ? (T(), y("div", R, [t[7] ||= 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", {
|
|
168
178
|
key: e.key,
|
|
169
179
|
class: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2 text-sm text-slate-600 hover:bg-slate-50"
|
|
170
180
|
}, [b("input", {
|
|
@@ -175,7 +185,7 @@ function G(e, t, n, r, i, a) {
|
|
|
175
185
|
}, null, 40, z), x(" " + O(e.label), 1)]))), 128))])) : v("", !0)])]),
|
|
176
186
|
_: 1
|
|
177
187
|
}, 8, ["filter-config", "filter-values"]),
|
|
178
|
-
b("div", B, [b("span", null, [t[
|
|
188
|
+
b("div", B, [b("span", null, [t[8] ||= x("Знайдено сертифікатів: ", -1), b("strong", V, O(r.total), 1)])]),
|
|
179
189
|
S(r.RegistryTable, {
|
|
180
190
|
class: "mt-3",
|
|
181
191
|
rows: r.rows,
|
|
@@ -212,9 +222,9 @@ function G(e, t, n, r, i, a) {
|
|
|
212
222
|
r.total > 0 ? (T(), _(r.TablePagination, {
|
|
213
223
|
key: 0,
|
|
214
224
|
page: r.page,
|
|
215
|
-
"onUpdate:page": t[
|
|
225
|
+
"onUpdate:page": t[3] ||= (e) => r.page = e,
|
|
216
226
|
"page-size": r.pageSize,
|
|
217
|
-
"onUpdate:pageSize": t[
|
|
227
|
+
"onUpdate:pageSize": t[4] ||= (e) => r.pageSize = e,
|
|
218
228
|
total: r.total
|
|
219
229
|
}, null, 8, [
|
|
220
230
|
"page",
|
|
@@ -224,7 +234,7 @@ function G(e, t, n, r, i, a) {
|
|
|
224
234
|
]),
|
|
225
235
|
S(r.RegistryFormModal, {
|
|
226
236
|
modelValue: r.showAddModal,
|
|
227
|
-
"onUpdate:modelValue": t[
|
|
237
|
+
"onUpdate:modelValue": t[5] ||= (e) => r.showAddModal = e,
|
|
228
238
|
title: "Новий сертифікат",
|
|
229
239
|
config: r.config.form,
|
|
230
240
|
width: "max-w-3xl",
|
|
@@ -2,14 +2,14 @@ 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
4
|
import { t as a } from "./AppIcon-CO70tpMX.js";
|
|
5
|
-
import { t as o } from "./SurveyorTeleport-
|
|
5
|
+
import { t as o } from "./SurveyorTeleport-Cd6D92mo.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
10
|
import { t as x } from "./MapLayerMenu-AUeTqgEp.js";
|
|
11
11
|
import { t as S } from "./FormFilePicker-DxPQlxgy.js";
|
|
12
|
-
import {
|
|
12
|
+
import { n as ee, o as C, r as w } from "./applications-B6GAxopO.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 B, shallowRef as re, toDisplayString as V, vModelText as H, watch as U, withCtx as W, withDirectives as G, withModifiers as K } from "vue";
|
|
14
14
|
import { RouterLink as q, useRouter as ie } from "vue-router";
|
|
15
15
|
import { ArrowUp as ae, Minus as oe, Pencil as se, Plus as ce, Trash2 as le, Upload as ue } from "lucide-vue-next";
|
|
@@ -952,7 +952,7 @@ var Ze = /*#__PURE__*/ e(ze, [
|
|
|
952
952
|
if (i.value && !s.value) {
|
|
953
953
|
c.value = "", s.value = !0;
|
|
954
954
|
try {
|
|
955
|
-
let e = await
|
|
955
|
+
let e = await C(i.value);
|
|
956
956
|
r("imported", e);
|
|
957
957
|
} catch (e) {
|
|
958
958
|
c.value = e instanceof Error ? e.message : "Не вдалося імпортувати геометрію";
|
|
@@ -1042,20 +1042,20 @@ var dt = /*@__PURE__*/ N({
|
|
|
1042
1042
|
__name: "create",
|
|
1043
1043
|
setup(e, { expose: t }) {
|
|
1044
1044
|
t();
|
|
1045
|
-
let n = ie(), o = z(""), s = z(""), c = z(""), l = z(""), d = z([]), f = z([]), p = z(!1), m = z(!1), h = z(!1), g = z(""), _ = z(""), v = z(""), y = z(""), b = z(""), x = z(""), S = z([]),
|
|
1045
|
+
let n = ie(), o = z(""), s = z(""), c = z(""), l = z(""), d = z([]), f = z([]), p = z(!1), m = z(!1), h = z(!1), g = z(""), _ = z(""), v = z(""), y = z(""), b = z(""), x = z(""), S = z([]), C = z(null), T = z(!1), D = z(null), O = z(!1), k = z(""), A = E(() => r.value.find((e) => e.id === i.value)?.name ?? ""), j = u.items.map((e) => e.name);
|
|
1046
1046
|
U(o, () => {
|
|
1047
1047
|
c.value = "", l.value = "", f.value = [], D.value = null;
|
|
1048
1048
|
}), U(v, (e) => {
|
|
1049
1049
|
_.value = u.items.find((t) => t.name === e)?.code ?? "";
|
|
1050
1050
|
}), U(S, (e) => {
|
|
1051
|
-
e.length > 0 && (
|
|
1051
|
+
e.length > 0 && (C.value = null);
|
|
1052
1052
|
});
|
|
1053
1053
|
let M = E(() => {
|
|
1054
|
-
let e = !!o.value, t = h.value ? g.value.trim().length > 0 : !!c.value, n = !!
|
|
1054
|
+
let e = !!o.value, t = h.value ? g.value.trim().length > 0 : !!c.value, n = !!C.value || S.value.length >= 3;
|
|
1055
1055
|
return !!(_.value && e && t && n);
|
|
1056
1056
|
});
|
|
1057
1057
|
function N(e) {
|
|
1058
|
-
|
|
1058
|
+
C.value = e, S.value = [], T.value = !1;
|
|
1059
1059
|
}
|
|
1060
1060
|
async function P(e) {
|
|
1061
1061
|
p.value = !0;
|
|
@@ -1109,14 +1109,14 @@ var dt = /*@__PURE__*/ N({
|
|
|
1109
1109
|
k.value = "Заповніть обовʼязкові поля та окресліть територію на карті або імпортуйте геометрію";
|
|
1110
1110
|
return;
|
|
1111
1111
|
}
|
|
1112
|
-
let e =
|
|
1112
|
+
let e = C.value ?? ee(S.value);
|
|
1113
1113
|
if (!e) {
|
|
1114
1114
|
k.value = "Некоректний контур території";
|
|
1115
1115
|
return;
|
|
1116
1116
|
}
|
|
1117
1117
|
O.value = !0;
|
|
1118
1118
|
try {
|
|
1119
|
-
let t = await
|
|
1119
|
+
let t = await w({
|
|
1120
1120
|
organization_id: i.value,
|
|
1121
1121
|
work_type: _.value,
|
|
1122
1122
|
settlement_id: o.value,
|
|
@@ -1158,7 +1158,7 @@ var dt = /*@__PURE__*/ N({
|
|
|
1158
1158
|
basis: b,
|
|
1159
1159
|
notes: x,
|
|
1160
1160
|
mapPoints: S,
|
|
1161
|
-
importedGeom:
|
|
1161
|
+
importedGeom: C,
|
|
1162
1162
|
importOpen: T,
|
|
1163
1163
|
addressPoint: D,
|
|
1164
1164
|
submitting: O,
|