@opengis/surveyor 0.0.15 → 0.0.17
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/CHANGELOG.md +5 -0
- package/README.md +16 -0
- package/dist/chunks/{AppIcon-Di5F4Bu_.js → AppIcon-CO70tpMX.js} +1 -1
- package/dist/chunks/{AppealDetailField-DNpsGpPY.js → AppealDetailField-ByK9ZqR4.js} +4 -4
- package/dist/chunks/{AppealStatusBadge-z77wwkFD.js → AppealStatusBadge-BlAaNUSK.js} +2 -2
- package/dist/chunks/AppealStatusBadge-DzMn4RVy.js +295 -0
- package/dist/chunks/ApplicationGeometryExportModal-Cu6QmJjm.js +1245 -0
- package/dist/chunks/{BaseModal-DP_ilBdg.js → BaseModal-BJxKuONh.js} +2 -2
- package/dist/chunks/{FormFilePicker-D5fAUE0Z.js → FormFilePicker-DxPQlxgy.js} +2 -2
- package/dist/chunks/{MapLayerMenu-CI5cbLEC.js → MapLayerMenu-B0TEoCJm.js} +4 -4
- package/dist/chunks/{RegistryForm-Ct8xiLV0.js → RegistryForm-Dpis_ncj.js} +3 -3
- package/dist/chunks/{RegistryFormModal-DTi3g3CX.js → RegistryFormModal-CH4DbTvC.js} +4 -4
- package/dist/chunks/{RegistryToolbar-v7DdReH2.js → RegistryToolbar-DisEejvi.js} +8 -8
- package/dist/chunks/SurveyorTeleport-Cd6D92mo.js +30 -0
- package/dist/chunks/{TablePagination-Iri38U68.js → TablePagination-thQkE5iA.js} +7 -7
- package/dist/chunks/{UserAccessBadge-B5Q1LvNv.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
- package/dist/chunks/{UserTypeBadge-CuAMctTK.js → UserTypeBadge-LvnMuKGo.js} +1 -1
- package/dist/chunks/{VerifiedBadge-D6L7mCdp.js → VerifiedBadge-bk0n-rlC.js} +2 -2
- package/dist/chunks/{applications-D6pHAQaK.js → applications-B6GAxopO.js} +16 -19
- package/dist/chunks/card-BCMJyzgE.js +1327 -0
- package/dist/chunks/card-BiKSZfYj.js +639 -0
- package/dist/chunks/{card-DcYkb_aF.js → card-Cs8_8A8i.js} +13 -13
- package/dist/chunks/{card-Ba8_kfj9.js → card-DVuqR0rL.js} +10 -10
- package/dist/chunks/{card-CJhdeB6f.js → card-n83dNORm.js} +25 -25
- package/dist/chunks/{card-TP5UFJb2.js → card-u5I--_Gb.js} +16 -16
- package/dist/chunks/{certificates-Ew5AekPn.js → certificates-CDunSANR.js} +31 -21
- package/dist/chunks/{create-CSIDl4gP.js → create-DQPxIZMW.js} +18 -18
- package/dist/chunks/{forgot-DnixBqdc.js → forgot-DfsFu-yY.js} +8 -8
- package/dist/chunks/{login-BWCQdEkv.js → login-Dl0nTWs9.js} +8 -8
- package/dist/chunks/{map-mZ8Rn4aR.js → map-BoHEgBCw.js} +922 -926
- package/dist/chunks/{map-layers-BdWEHPLx.js → map-layers-CRE8lZzH.js} +11 -11
- package/dist/chunks/{organizations-D0o0e_ps.js → organizations-D6aazMAe.js} +18 -18
- package/dist/chunks/{profile-F7mr0poI.js → profile-CkwMFh82.js} +3 -3
- package/dist/chunks/{registration-BRF4985_.js → registration-BSz1iLbO.js} +8 -8
- package/dist/chunks/requests-B9Ejt4av.js +303 -0
- package/dist/chunks/{requests-BCJN-CNx.js → requests-D1ix8U5f.js} +6 -6
- package/dist/chunks/{reset-OZCgLi6f.js → reset-D5G0x5Zi.js} +8 -8
- package/dist/chunks/{useEntityPath-8s0Y1tjA.js → useEntityPath-C5Owtidc.js} +1 -1
- package/dist/chunks/{users-Dr543AYk.js → users-DMe6JYI0.js} +15 -15
- package/dist/index.css +1 -2
- package/dist/index.js +47 -47
- 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 -4
- 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/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 +11 -10
- package/server/resources/surveyor-admin/certificates.ts +25 -25
- package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
- package/server/suggests/index.ts +18 -1
- package/dist/chunks/AppealStatusBadge-COxcUM2Q.js +0 -185
- package/dist/chunks/ApplicationHistorySection-DHq-iJla.js +0 -788
- package/dist/chunks/SurveyorTeleport-D6-KXe_5.js +0 -23
- package/dist/chunks/card-CF5Lo4ui.js +0 -609
- package/dist/chunks/card-CVujkVkR.js +0 -1193
- package/dist/chunks/requests-F0Kp8OPp.js +0 -234
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import type { ResourceContract } from '@opengis/fcore';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
name: 'organization_surveyors',
|
|
5
|
-
version: 1,
|
|
6
|
-
table: 'surveyor.organization_surveyors',
|
|
7
|
-
key: 'org_id',
|
|
8
|
-
module: 'surveyor',
|
|
9
|
-
operations: ["read"],
|
|
10
|
-
fields: {
|
|
11
|
-
org_id: { type: 'text', read: true, },
|
|
12
|
-
surveyor_id: { type: 'text', read: true },
|
|
13
|
-
first_name: { type: 'text', read: true },
|
|
14
|
-
last_name: { type: 'text', read: true },
|
|
15
|
-
middle_name: { type: 'text', read: true },
|
|
16
|
-
enabled: { type: 'boolean', read: true },
|
|
17
|
-
created_by: { type: 'text', read: true },
|
|
18
|
-
created_at: { type: 'timestamp', read: true },
|
|
19
|
-
registered_at: { type: 'timestamp', read: true },
|
|
20
|
-
email: { type: 'text', read: true },
|
|
21
|
-
phone: { type: 'text', read: true },
|
|
22
|
-
certificate_id: {
|
|
23
|
-
type: 'text',
|
|
24
|
-
read: true,
|
|
25
|
-
lookup: { table: 'surveyor.certificates', value: 'certificate_id', text: 'number_certificate' },
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
joins: [{
|
|
29
|
-
sql: `LEFT JOIN LATERAL (select first_name, last_name, middle_name, registered_at, email, phone, certificate_id, enabled AS surveyor_enabled from surveyor.surveyors s where s.surveyor_id = t.surveyor_id) as s on true`
|
|
30
|
-
}]
|
|
31
|
-
|
|
1
|
+
import type { ResourceContract } from '@opengis/fcore';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
name: 'organization_surveyors',
|
|
5
|
+
version: 1,
|
|
6
|
+
table: 'surveyor.organization_surveyors',
|
|
7
|
+
key: 'org_id',
|
|
8
|
+
module: 'surveyor',
|
|
9
|
+
operations: ["read"],
|
|
10
|
+
fields: {
|
|
11
|
+
org_id: { type: 'text', read: true, },
|
|
12
|
+
surveyor_id: { type: 'text', read: true },
|
|
13
|
+
first_name: { type: 'text', read: true },
|
|
14
|
+
last_name: { type: 'text', read: true },
|
|
15
|
+
middle_name: { type: 'text', read: true },
|
|
16
|
+
enabled: { type: 'boolean', read: true },
|
|
17
|
+
created_by: { type: 'text', read: true },
|
|
18
|
+
created_at: { type: 'timestamp', read: true },
|
|
19
|
+
registered_at: { type: 'timestamp', read: true },
|
|
20
|
+
email: { type: 'text', read: true },
|
|
21
|
+
phone: { type: 'text', read: true },
|
|
22
|
+
certificate_id: {
|
|
23
|
+
type: 'text',
|
|
24
|
+
read: true,
|
|
25
|
+
lookup: { table: 'surveyor.certificates', value: 'certificate_id', text: 'number_certificate' },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
joins: [{
|
|
29
|
+
sql: `LEFT JOIN LATERAL (select first_name, last_name, middle_name, registered_at, email, phone, certificate_id, enabled AS surveyor_enabled from surveyor.surveyors s where s.surveyor_id = t.surveyor_id) as s on true`
|
|
30
|
+
}]
|
|
31
|
+
|
|
32
32
|
} satisfies ResourceContract;
|
package/server/suggests/index.ts
CHANGED
|
@@ -12,6 +12,23 @@ const suggests: SuggestContract[] = [
|
|
|
12
12
|
SELECT dataset_id as id, dataset_name as text FROM gis.dataset
|
|
13
13
|
WHERE dataset_name ILIKE '%' || :search || '%'
|
|
14
14
|
`,
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
// Системи координат для експорту/імпорту геометрії; id у форматі `EPSG:<srid>`.
|
|
18
|
+
// JOIN зі spatial_ref_sys відсікає SRID, яких немає в PostGIS цієї БД.
|
|
19
|
+
name: "crs",
|
|
20
|
+
module: "admin",
|
|
21
|
+
key: "id",
|
|
22
|
+
query: `
|
|
23
|
+
SELECT s.srid AS id, c.text
|
|
24
|
+
FROM (VALUES
|
|
25
|
+
(4326, 'WGS 84 (EPSG:4326)', 1),
|
|
26
|
+
(7825, 'СК-63, зона 1 (EPSG:7825)', 3)
|
|
27
|
+
) AS c(srid, text, ord)
|
|
28
|
+
JOIN public.spatial_ref_sys s ON s.srid = c.srid
|
|
29
|
+
WHERE c.text ILIKE '%' || :search || '%'
|
|
30
|
+
ORDER BY c.ord
|
|
31
|
+
`,
|
|
32
|
+
},
|
|
16
33
|
];
|
|
17
34
|
export default suggests;
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { t as n } from "./application_status-BhNGiY2I.js";
|
|
4
|
-
import { computed as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, toDisplayString as u } from "vue";
|
|
5
|
-
//#region admin/src/static/registry/requests/resource.ts
|
|
6
|
-
var d = "applications", f = {
|
|
7
|
-
awaitingData: {
|
|
8
|
-
classes: "bg-slate-100 text-slate-600 border-slate-200",
|
|
9
|
-
dot: "bg-slate-400"
|
|
10
|
-
},
|
|
11
|
-
dataIssued: {
|
|
12
|
-
classes: "bg-warning-50 text-warning-700 border-warning-200",
|
|
13
|
-
dot: "bg-warning-500"
|
|
14
|
-
},
|
|
15
|
-
reserve: {
|
|
16
|
-
classes: "bg-rose-50 text-rose-800 border-rose-200",
|
|
17
|
-
dot: "bg-rose-700"
|
|
18
|
-
},
|
|
19
|
-
underReview: {
|
|
20
|
-
classes: "bg-accent-50 text-accent-700 border-accent-200",
|
|
21
|
-
dot: "bg-accent-500"
|
|
22
|
-
},
|
|
23
|
-
verified: {
|
|
24
|
-
classes: "bg-brand-50 text-brand-700 border-brand-200",
|
|
25
|
-
dot: "bg-brand-500"
|
|
26
|
-
},
|
|
27
|
-
completed: {
|
|
28
|
-
classes: "bg-success-50 text-success-700 border-success-200",
|
|
29
|
-
dot: "bg-success-500"
|
|
30
|
-
},
|
|
31
|
-
cancelled: {
|
|
32
|
-
classes: "bg-danger-50 text-danger-700 border-danger-200",
|
|
33
|
-
dot: "bg-danger-500"
|
|
34
|
-
}
|
|
35
|
-
}, p = {
|
|
36
|
-
classes: "bg-slate-100 text-slate-600 border-slate-200",
|
|
37
|
-
dot: "bg-slate-400"
|
|
38
|
-
}, m = {
|
|
39
|
-
awaitingData: "brand",
|
|
40
|
-
dataIssued: "success",
|
|
41
|
-
reserve: "slate",
|
|
42
|
-
underReview: "warning",
|
|
43
|
-
verified: "brand",
|
|
44
|
-
completed: "accent",
|
|
45
|
-
cancelled: "danger"
|
|
46
|
-
}, h = n.items.map((e) => e.code), g = Object.fromEntries(n.items.map((e) => [e.code, {
|
|
47
|
-
label: e.name,
|
|
48
|
-
...f[e.code] ?? p
|
|
49
|
-
}])), _ = Object.fromEntries(n.items.map((e) => [e.code, e.name])), v = Object.fromEntries(n.items.map((e) => [e.code, e.color ?? "#64748b"])), y = Object.fromEntries(n.items.map((e) => [e.code, e.name]));
|
|
50
|
-
n.items.map((e) => ({
|
|
51
|
-
status: e.code,
|
|
52
|
-
label: e.name,
|
|
53
|
-
tone: m[e.code] ?? "slate"
|
|
54
|
-
}));
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region admin/src/static/registry/requests/table.ts
|
|
57
|
-
var b = {
|
|
58
|
-
resource: d,
|
|
59
|
-
pageSize: 10,
|
|
60
|
-
sort: "-created_at",
|
|
61
|
-
columns: [
|
|
62
|
-
{
|
|
63
|
-
key: "number",
|
|
64
|
-
label: "Номер",
|
|
65
|
-
sort: "number"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
key: "organization",
|
|
69
|
-
label: "Організація/особа"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
key: "address",
|
|
73
|
-
label: "Адреса"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
key: "status",
|
|
77
|
-
label: "Статус"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
key: "workType",
|
|
81
|
-
label: "Вид робіт"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
key: "createdAt",
|
|
85
|
-
label: "Дата подачі",
|
|
86
|
-
sort: "created_at"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
key: "checkedBy",
|
|
90
|
-
label: "Перевірив"
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}, x = {
|
|
94
|
-
resource: d,
|
|
95
|
-
view: "inline",
|
|
96
|
-
fields: {
|
|
97
|
-
status: {
|
|
98
|
-
component: "select",
|
|
99
|
-
label: "Статус",
|
|
100
|
-
placeholder: "Статус",
|
|
101
|
-
width: 180,
|
|
102
|
-
api: "/api/suggest/applications/status"
|
|
103
|
-
},
|
|
104
|
-
year: {
|
|
105
|
-
component: "select",
|
|
106
|
-
label: "Рік",
|
|
107
|
-
placeholder: "Рік",
|
|
108
|
-
width: 120,
|
|
109
|
-
options: [{
|
|
110
|
-
id: "2026",
|
|
111
|
-
text: "2026"
|
|
112
|
-
}]
|
|
113
|
-
},
|
|
114
|
-
organization: {
|
|
115
|
-
component: "select",
|
|
116
|
-
label: "Організація",
|
|
117
|
-
placeholder: "Організація",
|
|
118
|
-
width: 220,
|
|
119
|
-
api: "/api/suggest/organizations/org_id"
|
|
120
|
-
},
|
|
121
|
-
address: {
|
|
122
|
-
component: "select",
|
|
123
|
-
label: "Адреса",
|
|
124
|
-
placeholder: "Адреса",
|
|
125
|
-
width: 260,
|
|
126
|
-
api: "/api/suggest/applications/address_id"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}, S = /* @__PURE__ */ e({
|
|
130
|
-
APPEAL_STATUS: () => g,
|
|
131
|
-
APPEAL_STATUS_SHORT: () => _,
|
|
132
|
-
APPLICATION_STATUS_CODES: () => h,
|
|
133
|
-
MAP_STATUS_COLORS: () => v,
|
|
134
|
-
MAP_STATUS_LABELS: () => y,
|
|
135
|
-
filter: () => x,
|
|
136
|
-
resource: () => d,
|
|
137
|
-
table: () => b
|
|
138
|
-
}), C = /*@__PURE__*/ s({
|
|
139
|
-
__name: "AppealStatusBadge",
|
|
140
|
-
props: {
|
|
141
|
-
status: {
|
|
142
|
-
type: String,
|
|
143
|
-
required: !0
|
|
144
|
-
},
|
|
145
|
-
label: {
|
|
146
|
-
type: String,
|
|
147
|
-
required: !1
|
|
148
|
-
},
|
|
149
|
-
size: {
|
|
150
|
-
type: String,
|
|
151
|
-
required: !1,
|
|
152
|
-
default: "md"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
setup(e, { expose: t }) {
|
|
156
|
-
t();
|
|
157
|
-
let n = e, i = {
|
|
158
|
-
props: n,
|
|
159
|
-
config: r(() => {
|
|
160
|
-
let e = g[n.status], t = {
|
|
161
|
-
label: n.label || n.status || "—",
|
|
162
|
-
classes: "bg-slate-100 text-slate-600 border-slate-200",
|
|
163
|
-
dot: "bg-slate-400"
|
|
164
|
-
};
|
|
165
|
-
return e ? n.label ? {
|
|
166
|
-
...e,
|
|
167
|
-
label: n.label
|
|
168
|
-
} : e : t;
|
|
169
|
-
}),
|
|
170
|
-
pad: r(() => n.size === "sm" ? "px-2 py-0.5 text-xs" : "px-2.5 py-1 text-[13px]")
|
|
171
|
-
};
|
|
172
|
-
return Object.defineProperty(i, "__isScriptSetup", {
|
|
173
|
-
enumerable: !1,
|
|
174
|
-
value: !0
|
|
175
|
-
}), i;
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region admin/src/components/ui/AppealStatusBadge.vue
|
|
180
|
-
function w(e, t, n, r, s, d) {
|
|
181
|
-
return l(), i("span", { class: c(["inline-flex items-center gap-1.5 rounded-full border font-medium", [r.config.classes, r.pad]]) }, [a("span", { class: c(["h-1.5 w-1.5 rounded-full", r.config.dot]) }, null, 2), o(" " + u(r.config.label), 1)], 2);
|
|
182
|
-
}
|
|
183
|
-
var T = /*#__PURE__*/ t(C, [["render", w], ["__file", "D:/softpro/surveyor/admin/src/components/ui/AppealStatusBadge.vue"]]);
|
|
184
|
-
//#endregion
|
|
185
|
-
export { v as a, h as i, S as n, y as o, b as r, d as s, T as t };
|