@opengis/surveyor 0.0.15 → 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.
Files changed (60) hide show
  1. package/dist/chunks/{AppIcon-Di5F4Bu_.js → AppIcon-CO70tpMX.js} +1 -1
  2. package/dist/chunks/{AppealDetailField-DNpsGpPY.js → AppealDetailField-DNRGpnyD.js} +2 -2
  3. package/dist/chunks/AppealStatusBadge-7KruOSVI.js +295 -0
  4. package/dist/chunks/{AppealStatusBadge-z77wwkFD.js → AppealStatusBadge-BlAaNUSK.js} +2 -2
  5. package/dist/chunks/ApplicationGeometryExportModal-DJbnKPm6.js +1245 -0
  6. package/dist/chunks/{BaseModal-DP_ilBdg.js → BaseModal-BJxKuONh.js} +2 -2
  7. package/dist/chunks/{FormFilePicker-D5fAUE0Z.js → FormFilePicker-DxPQlxgy.js} +2 -2
  8. package/dist/chunks/{MapLayerMenu-CI5cbLEC.js → MapLayerMenu-AUeTqgEp.js} +1 -1
  9. package/dist/chunks/{RegistryForm-Ct8xiLV0.js → RegistryForm-BlK1lExt.js} +1 -1
  10. package/dist/chunks/{RegistryFormModal-DTi3g3CX.js → RegistryFormModal-BmBsUOF3.js} +3 -3
  11. package/dist/chunks/{RegistryToolbar-v7DdReH2.js → RegistryToolbar-DXOEcD84.js} +5 -5
  12. package/dist/chunks/SurveyorTeleport-Cd6D92mo.js +30 -0
  13. package/dist/chunks/{TablePagination-Iri38U68.js → TablePagination-CUtnDQQ_.js} +2 -2
  14. package/dist/chunks/{UserAccessBadge-B5Q1LvNv.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
  15. package/dist/chunks/{UserTypeBadge-CuAMctTK.js → UserTypeBadge-LvnMuKGo.js} +1 -1
  16. package/dist/chunks/{VerifiedBadge-D6L7mCdp.js → VerifiedBadge-bk0n-rlC.js} +2 -2
  17. package/dist/chunks/{applications-D6pHAQaK.js → applications-B6GAxopO.js} +16 -19
  18. package/dist/chunks/card-B113dNzv.js +1327 -0
  19. package/dist/chunks/card-COmcUdms.js +639 -0
  20. package/dist/chunks/{card-Ba8_kfj9.js → card-DEJs9IIP.js} +4 -4
  21. package/dist/chunks/{card-CJhdeB6f.js → card-Deae73xd.js} +10 -10
  22. package/dist/chunks/{card-TP5UFJb2.js → card-VnUCFC7v.js} +5 -5
  23. package/dist/chunks/{card-DcYkb_aF.js → card-_YyJbLNI.js} +6 -6
  24. package/dist/chunks/{certificates-Ew5AekPn.js → certificates-DHf1zGQs.js} +23 -13
  25. package/dist/chunks/{create-CSIDl4gP.js → create-BVPqfJOb.js} +18 -18
  26. package/dist/chunks/{forgot-DnixBqdc.js → forgot-DoG6vXhq.js} +2 -2
  27. package/dist/chunks/{login-BWCQdEkv.js → login-BWGylcSU.js} +2 -2
  28. package/dist/chunks/{map-mZ8Rn4aR.js → map-BZi4eVl3.js} +894 -898
  29. package/dist/chunks/{map-layers-BdWEHPLx.js → map-layers-CKZK50de.js} +6 -6
  30. package/dist/chunks/{organizations-D0o0e_ps.js → organizations-DYGfYfHS.js} +7 -7
  31. package/dist/chunks/{profile-F7mr0poI.js → profile-CkwMFh82.js} +3 -3
  32. package/dist/chunks/{registration-BRF4985_.js → registration-3GLgq-ae.js} +2 -2
  33. package/dist/chunks/{requests-BCJN-CNx.js → requests-D1ix8U5f.js} +6 -6
  34. package/dist/chunks/requests-v1jHarHb.js +303 -0
  35. package/dist/chunks/{reset-OZCgLi6f.js → reset-CP9LsLkC.js} +2 -2
  36. package/dist/chunks/{useEntityPath-8s0Y1tjA.js → useEntityPath-C5Owtidc.js} +1 -1
  37. package/dist/chunks/{users-Dr543AYk.js → users-frk3gmmd.js} +7 -7
  38. package/dist/index.css +1 -1
  39. package/dist/index.js +47 -47
  40. package/migrations/20261016120000_map_layers.sql +156 -156
  41. package/migrations/20261016150000_password_reset.sql +15 -15
  42. package/migrations/20261016180000_settlement_lookup.sql +16 -16
  43. package/package.json +83 -83
  44. package/server/dictionaries/index.ts +17 -17
  45. package/server/dictionaries/surveyor/map_layer_components.ts +11 -11
  46. package/server/dictionaries/surveyor/map_layer_groups.ts +10 -10
  47. package/server/dictionaries/surveyor/map_layer_types.ts +11 -11
  48. package/server/modules/surveyor/services/mapLayers.ts +61 -61
  49. package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -79
  50. package/server/resources/helpers/settlement_lookup.ts +7 -7
  51. package/server/resources/surveyor-admin/applications.ts +11 -10
  52. package/server/resources/surveyor-admin/certificates.ts +25 -25
  53. package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
  54. package/server/suggests/index.ts +18 -1
  55. package/dist/chunks/AppealStatusBadge-COxcUM2Q.js +0 -185
  56. package/dist/chunks/ApplicationHistorySection-DHq-iJla.js +0 -788
  57. package/dist/chunks/SurveyorTeleport-D6-KXe_5.js +0 -23
  58. package/dist/chunks/card-CF5Lo4ui.js +0 -609
  59. package/dist/chunks/card-CVujkVkR.js +0 -1193
  60. package/dist/chunks/requests-F0Kp8OPp.js +0 -234
@@ -1,234 +0,0 @@
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 { a as r } from "./resources-Cj8BzrBX.js";
4
- import { t as i } from "./filterQuery-Dka-mIso.js";
5
- import { i as a, n as o, r as s, t as c } from "./RegistryToolbar-v7DdReH2.js";
6
- import { t as l } from "./TablePagination-Iri38U68.js";
7
- import { n as u, r as d, s as f, t as p } from "./AppealStatusBadge-COxcUM2Q.js";
8
- import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, openBlock as C, ref as w, renderList as T, toDisplayString as E, vModelText as D, withCtx as O, withDirectives as k } from "vue";
9
- import { RouterLink as A } from "vue-router";
10
- //#region admin/src/pages/requests/index.vue?vue&type=script&setup=true&lang.ts
11
- var j = /*@__PURE__*/ S({
12
- __name: "index",
13
- setup(e, { expose: m }) {
14
- m();
15
- let g = d.columns, _ = g.flatMap((e) => e.sort ? [e.sort] : []), { query: v, filterValues: y, page: b, pageSize: x, sort: S, listFilters: C, bindListLoader: T } = a({
16
- arrayFilterKeys: ["status", "year"],
17
- defaultSort: d.sort,
18
- sortFields: _,
19
- buildFilters: i
20
- }), { detailPath: E } = n("number"), D = w(!1), O = w([
21
- "number",
22
- "organization",
23
- "address",
24
- "status",
25
- "workType",
26
- "createdAt"
27
- ]), k = w([]), j = w(0), M = w(!1), N = w("");
28
- function P(e) {
29
- if (!e) return "—";
30
- let t = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
31
- return t ? `${t[3]}.${t[2]}.${t[1]}` : e;
32
- }
33
- function F(e) {
34
- return e.address_id_data?.text || e.location || "—";
35
- }
36
- let I = 0, L = h(() => M.value ? "Завантаження…" : N.value ? N.value : "За заданими фільтрами звернень не знайдено.");
37
- async function R() {
38
- let e = ++I;
39
- M.value = !0, N.value = "";
40
- try {
41
- let t = await r(f, {
42
- page: b.value,
43
- limit: x.value,
44
- sort: S.value,
45
- search: v.value.trim() || void 0,
46
- filters: C.value
47
- });
48
- if (e !== I) return;
49
- k.value = t.rows ?? [], j.value = Number(t.total) || 0;
50
- } catch (t) {
51
- if (e !== I) return;
52
- k.value = [], j.value = 0, N.value = t instanceof Error ? t.message : "Не вдалося завантажити звернення";
53
- } finally {
54
- e === I && (M.value = !1);
55
- }
56
- }
57
- T(() => {
58
- R();
59
- });
60
- function z(e) {
61
- y.value = e;
62
- }
63
- function B(e) {
64
- S.value !== e && (b.value !== 1 && (b.value = 1), S.value = e);
65
- }
66
- function V(e) {
67
- O.value = O.value.includes(e) ? O.value.length > 1 ? O.value.filter((t) => t !== e) : O.value : O.value.length < 7 ? [...O.value, e] : O.value;
68
- }
69
- let H = {
70
- columns: g,
71
- sortableFields: _,
72
- query: v,
73
- filterValues: y,
74
- page: b,
75
- pageSize: x,
76
- sort: S,
77
- listFilters: C,
78
- bindListLoader: T,
79
- detailPath: E,
80
- columnsOpen: D,
81
- visibleColumns: O,
82
- rows: k,
83
- total: j,
84
- loading: M,
85
- error: N,
86
- formatDate: P,
87
- addressLabel: F,
88
- get requestId() {
89
- return I;
90
- },
91
- set requestId(e) {
92
- I = e;
93
- },
94
- emptyText: L,
95
- loadRows: R,
96
- onFilterValuesUpdate: z,
97
- onSort: B,
98
- toggleColumn: V,
99
- AppIcon: t,
100
- get RouterLink() {
101
- return A;
102
- },
103
- AppealStatusBadge: p,
104
- PageHeader: s,
105
- RegistryTable: o,
106
- TablePagination: l,
107
- RegistryToolbar: c,
108
- get config() {
109
- return u;
110
- }
111
- };
112
- return Object.defineProperty(H, "__isScriptSetup", {
113
- enumerable: !1,
114
- value: !0
115
- }), H;
116
- }
117
- }), M = { class: "px-4" }, N = { class: "relative block" }, P = {
118
- type: "button",
119
- 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",
120
- "aria-label": "Експорт"
121
- }, F = { class: "relative" }, I = {
122
- key: 0,
123
- class: "absolute right-0 top-12 z-20 w-56 rounded-lg border border-slate-200 bg-white p-2 shadow-card-hover"
124
- }, L = ["checked", "onChange"], R = { class: "mt-3 flex items-center justify-between border-t border-slate-100 pt-3 text-xs text-slate-400" }, z = { class: "font-semibold text-slate-600" }, B = {
125
- key: 1,
126
- class: "min-w-0"
127
- }, V = { class: "break-words font-semibold text-slate-700" }, H = { class: "break-words text-xs text-slate-400" }, U = {
128
- key: 2,
129
- class: "text-slate-600"
130
- }, W = {
131
- key: 4,
132
- class: "text-slate-600"
133
- }, G = {
134
- key: 5,
135
- class: "whitespace-nowrap text-slate-600"
136
- }, K = {
137
- key: 6,
138
- class: "text-slate-600"
139
- };
140
- function q(e, t, n, r, i, a) {
141
- return C(), v("div", null, [x(r.PageHeader, {
142
- title: "Звернення на видачу та прийом матеріалів",
143
- subtitle: "Реєстр звернень геодезичного кабінету"
144
- }), y("section", M, [
145
- x(r.RegistryToolbar, {
146
- nowrap: "",
147
- "search-min": "min-w-[160px] max-w-[300px]",
148
- "filter-config": r.config.filter,
149
- "filter-values": r.filterValues,
150
- "onUpdate:filterValues": r.onFilterValuesUpdate
151
- }, {
152
- search: O(() => [y("label", N, [x(r.AppIcon, {
153
- name: "search",
154
- class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"
155
- }), k(y("input", {
156
- "onUpdate:modelValue": t[0] ||= (e) => r.query = e,
157
- type: "search",
158
- placeholder: "Пошук…",
159
- 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
- }, null, 512), [[D, r.query]])])]),
161
- actions: O(() => [y("button", P, [x(r.AppIcon, {
162
- name: "download",
163
- class: "h-4 w-4"
164
- })]), y("div", F, [y("button", {
165
- type: "button",
166
- 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",
167
- onClick: t[1] ||= (e) => r.columnsOpen = !r.columnsOpen
168
- }, [x(r.AppIcon, {
169
- name: "columns-3",
170
- class: "h-4 w-4"
171
- })]), r.columnsOpen ? (C(), v("div", I, [
172
- t[4] ||= y("p", { class: "px-2 py-1 text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Налаштувати колонки", -1),
173
- (C(!0), v(m, null, T(r.columns, (e) => (C(), v("label", {
174
- key: e.key,
175
- class: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2 text-sm text-slate-600 hover:bg-slate-50"
176
- }, [y("input", {
177
- type: "checkbox",
178
- checked: r.visibleColumns.includes(e.key),
179
- class: "h-4 w-4 accent-brand-600",
180
- onChange: (t) => r.toggleColumn(e.key)
181
- }, null, 40, L), b(" " + E(e.label), 1)]))), 128)),
182
- t[5] ||= y("p", { class: "px-2 pt-1 text-[11px] text-slate-400" }, "До 7 колонок одночасно", -1)
183
- ])) : _("", !0)])]),
184
- _: 1
185
- }, 8, ["filter-config", "filter-values"]),
186
- y("div", R, [y("span", null, [t[6] ||= b("Знайдено звернень: ", -1), y("strong", z, E(r.total), 1)])]),
187
- x(r.RegistryTable, {
188
- class: "mt-3",
189
- rows: r.rows,
190
- columns: r.columns,
191
- "visible-keys": r.visibleColumns,
192
- "row-key": "app_id",
193
- sort: r.sort,
194
- "empty-text": r.emptyText,
195
- onSort: r.onSort
196
- }, {
197
- cell: O(({ row: e, column: t }) => [t === "number" ? (C(), g(r.RouterLink, {
198
- key: 0,
199
- to: r.detailPath(e.app_id),
200
- class: "font-semibold text-brand-700 underline-offset-4 transition-colors hover:text-brand-900 hover:underline"
201
- }, {
202
- default: O(() => [b(E(e.number || "—"), 1)]),
203
- _: 2
204
- }, 1032, ["to"])) : t === "organization" ? (C(), v("div", B, [y("p", V, E(e.org_id_data?.text || "—"), 1), y("p", H, E(e.surveyor_id_data?.text || "—"), 1)])) : t === "address" ? (C(), v("span", U, E(r.addressLabel(e)), 1)) : t === "status" ? (C(), g(r.AppealStatusBadge, {
205
- key: 3,
206
- status: e.status || "",
207
- label: e.status_data?.text || void 0,
208
- size: "sm"
209
- }, null, 8, ["status", "label"])) : t === "workType" ? (C(), v("span", W, E(e.work_type_data?.text || "—"), 1)) : t === "createdAt" ? (C(), v("span", G, E(r.formatDate(e.created_at)), 1)) : t === "checkedBy" ? (C(), v("span", K, E(e.verified_by_data?.text || "—"), 1)) : _("", !0)]),
210
- _: 1
211
- }, 8, [
212
- "rows",
213
- "columns",
214
- "visible-keys",
215
- "sort",
216
- "empty-text"
217
- ]),
218
- r.total > 0 ? (C(), g(r.TablePagination, {
219
- key: 0,
220
- page: r.page,
221
- "onUpdate:page": t[2] ||= (e) => r.page = e,
222
- "page-size": r.pageSize,
223
- "onUpdate:pageSize": t[3] ||= (e) => r.pageSize = e,
224
- total: r.total
225
- }, null, 8, [
226
- "page",
227
- "page-size",
228
- "total"
229
- ])) : _("", !0)
230
- ])]);
231
- }
232
- var J = /*#__PURE__*/ e(j, [["render", q], ["__file", "D:/softpro/surveyor/admin/src/pages/requests/index.vue"]]);
233
- //#endregion
234
- export { J as default };