@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.
- package/dist/chunks/{AppIcon-Di5F4Bu_.js → AppIcon-CO70tpMX.js} +1 -1
- package/dist/chunks/{AppealDetailField-DNpsGpPY.js → AppealDetailField-DNRGpnyD.js} +2 -2
- package/dist/chunks/AppealStatusBadge-7KruOSVI.js +295 -0
- package/dist/chunks/{AppealStatusBadge-z77wwkFD.js → AppealStatusBadge-BlAaNUSK.js} +2 -2
- package/dist/chunks/ApplicationGeometryExportModal-DJbnKPm6.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-AUeTqgEp.js} +1 -1
- package/dist/chunks/{RegistryForm-Ct8xiLV0.js → RegistryForm-BlK1lExt.js} +1 -1
- package/dist/chunks/{RegistryFormModal-DTi3g3CX.js → RegistryFormModal-BmBsUOF3.js} +3 -3
- package/dist/chunks/{RegistryToolbar-v7DdReH2.js → RegistryToolbar-DXOEcD84.js} +5 -5
- package/dist/chunks/SurveyorTeleport-Cd6D92mo.js +30 -0
- package/dist/chunks/{TablePagination-Iri38U68.js → TablePagination-CUtnDQQ_.js} +2 -2
- 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-B113dNzv.js +1327 -0
- package/dist/chunks/card-COmcUdms.js +639 -0
- package/dist/chunks/{card-Ba8_kfj9.js → card-DEJs9IIP.js} +4 -4
- package/dist/chunks/{card-CJhdeB6f.js → card-Deae73xd.js} +10 -10
- package/dist/chunks/{card-TP5UFJb2.js → card-VnUCFC7v.js} +5 -5
- package/dist/chunks/{card-DcYkb_aF.js → card-_YyJbLNI.js} +6 -6
- package/dist/chunks/{certificates-Ew5AekPn.js → certificates-DHf1zGQs.js} +23 -13
- package/dist/chunks/{create-CSIDl4gP.js → create-BVPqfJOb.js} +18 -18
- package/dist/chunks/{forgot-DnixBqdc.js → forgot-DoG6vXhq.js} +2 -2
- package/dist/chunks/{login-BWCQdEkv.js → login-BWGylcSU.js} +2 -2
- package/dist/chunks/{map-mZ8Rn4aR.js → map-BZi4eVl3.js} +894 -898
- package/dist/chunks/{map-layers-BdWEHPLx.js → map-layers-CKZK50de.js} +6 -6
- package/dist/chunks/{organizations-D0o0e_ps.js → organizations-DYGfYfHS.js} +7 -7
- package/dist/chunks/{profile-F7mr0poI.js → profile-CkwMFh82.js} +3 -3
- package/dist/chunks/{registration-BRF4985_.js → registration-3GLgq-ae.js} +2 -2
- package/dist/chunks/{requests-BCJN-CNx.js → requests-D1ix8U5f.js} +6 -6
- package/dist/chunks/requests-v1jHarHb.js +303 -0
- package/dist/chunks/{reset-OZCgLi6f.js → reset-CP9LsLkC.js} +2 -2
- package/dist/chunks/{useEntityPath-8s0Y1tjA.js → useEntityPath-C5Owtidc.js} +1 -1
- package/dist/chunks/{users-Dr543AYk.js → users-frk3gmmd.js} +7 -7
- package/dist/index.css +1 -1
- 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 +83 -83
- 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
|
@@ -10,7 +10,8 @@ const applicationStatusCodes = applicationStatus.items.map(({ code }) => code);
|
|
|
10
10
|
const workTypeCodes = workTypes.items.map(({ code }) => code);
|
|
11
11
|
|
|
12
12
|
// Status changes, area checks, and file workflow belong to Business API services.
|
|
13
|
-
// Generic update
|
|
13
|
+
// Generic update covers descriptive fields and replacing issued source data (file_output);
|
|
14
|
+
// workflow fields (status, files, signature, area/geom, dates) stay read-only.
|
|
14
15
|
export default {
|
|
15
16
|
version: 1,
|
|
16
17
|
name: "applications",
|
|
@@ -55,30 +56,30 @@ export default {
|
|
|
55
56
|
},
|
|
56
57
|
work_type: {
|
|
57
58
|
type: "string",
|
|
58
|
-
write:
|
|
59
|
+
write: true,
|
|
59
60
|
filterable: true,
|
|
60
61
|
dictionary: workTypes.code,
|
|
61
62
|
enum: workTypeCodes,
|
|
62
63
|
},
|
|
63
|
-
description: { type: "text", write:
|
|
64
|
-
execution_basis: { type: "text", write:
|
|
64
|
+
description: { type: "text", write: true, searchable: true },
|
|
65
|
+
execution_basis: { type: "text", write: true },
|
|
65
66
|
settlement_id: {
|
|
66
67
|
type: "string",
|
|
67
|
-
write:
|
|
68
|
+
write: true,
|
|
68
69
|
filterable: true,
|
|
69
70
|
lookup: settlementLookup,
|
|
70
71
|
},
|
|
71
|
-
is_found_address_id: { type: "boolean", write:
|
|
72
|
-
address_id: { type: "string", write:
|
|
73
|
-
location: { type: "text", write:
|
|
72
|
+
is_found_address_id: { type: "boolean", write: true, filterable: true, dictionary: "yes-no" },
|
|
73
|
+
address_id: { type: "string", write: true, filterable: true, lookup: addressLookup },
|
|
74
|
+
location: { type: "text", write: true, searchable: true },
|
|
74
75
|
area: { type: "number", write: false, sortable: true },
|
|
75
76
|
geom: { type: "geometry", write: false },
|
|
76
77
|
file_output: { type: "file", write: true },
|
|
77
78
|
file_geodetic_survey: { type: "file", write: false },
|
|
78
79
|
file_corrected_geodetic_survey: { type: "file", write: false },
|
|
79
80
|
note_4_file_corrected_geodetic_survey: { type: "text", write: false },
|
|
80
|
-
notes: { type: "text", write:
|
|
81
|
-
signature: { type: "text", write:
|
|
81
|
+
notes: { type: "text", write: true },
|
|
82
|
+
signature: { type: "text", write: true },
|
|
82
83
|
cancel_reason: { type: "text", write: false },
|
|
83
84
|
source_data_issued_at: { type: "timestamp", write: false, sortable: true },
|
|
84
85
|
survey_uploaded_at: { type: "timestamp", write: false, sortable: true },
|
|
@@ -5,7 +5,7 @@ import { certificateStatusSql } from "../../modules/surveyor/utils/certificateSt
|
|
|
5
5
|
|
|
6
6
|
const accountTypeCodes = accountTypes.items.map(({ code }) => code);
|
|
7
7
|
|
|
8
|
-
//
|
|
8
|
+
// Сертифікати імпортуються із зовнішнього реєстру, але адміністратор може додавати та редагувати їх вручну.
|
|
9
9
|
export default {
|
|
10
10
|
version: 1,
|
|
11
11
|
name: "certificates",
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
"account_registered_at",
|
|
28
28
|
],
|
|
29
29
|
access: "user",
|
|
30
|
-
operations: ["read"],
|
|
30
|
+
operations: ["read", "create", "update"],
|
|
31
31
|
searchable: ["surveyor_name", "last_name", "first_name", "number_certificate"],
|
|
32
32
|
fields: {
|
|
33
33
|
certificate_id: {
|
|
@@ -43,51 +43,51 @@ export default {
|
|
|
43
43
|
},
|
|
44
44
|
certificate_type: {
|
|
45
45
|
type: "string",
|
|
46
|
-
write:
|
|
46
|
+
write: true,
|
|
47
47
|
filterable: true,
|
|
48
48
|
dictionary: accountTypes.code,
|
|
49
49
|
enum: accountTypeCodes,
|
|
50
50
|
},
|
|
51
51
|
surveyor_name: {
|
|
52
52
|
type: "string",
|
|
53
|
-
write:
|
|
53
|
+
write: true,
|
|
54
54
|
searchable: true,
|
|
55
55
|
},
|
|
56
|
-
last_name: { type: "string", write:
|
|
57
|
-
first_name: { type: "string", write:
|
|
58
|
-
middle_name: { type: "string", write:
|
|
59
|
-
surveyor_phone: { type: "string", write:
|
|
60
|
-
surveyor_email: { type: "string", write:
|
|
56
|
+
last_name: { type: "string", write: true, searchable: true },
|
|
57
|
+
first_name: { type: "string", write: true, searchable: true },
|
|
58
|
+
middle_name: { type: "string", write: true },
|
|
59
|
+
surveyor_phone: { type: "string", write: true },
|
|
60
|
+
surveyor_email: { type: "string", write: true },
|
|
61
61
|
date_certificate: {
|
|
62
62
|
type: "date",
|
|
63
|
-
write:
|
|
63
|
+
write: true,
|
|
64
64
|
filterable: true,
|
|
65
65
|
sortable: true,
|
|
66
66
|
},
|
|
67
|
-
number_certificate: { type: "string", write:
|
|
68
|
-
name_school: { type: "text", write:
|
|
69
|
-
date_protocol: { type: "date", write:
|
|
70
|
-
number_protocol: { type: "string", write:
|
|
71
|
-
certificate_increase: { type: "text", write:
|
|
72
|
-
certificate_stopping: { type: "text", write:
|
|
73
|
-
certificate_suspension: { type: "date", write:
|
|
74
|
-
certificate_renewal: { type: "text", write:
|
|
75
|
-
work_place: { type: "text", write:
|
|
76
|
-
economic_activity: { type: "text", write:
|
|
67
|
+
number_certificate: { type: "string", write: true, searchable: true },
|
|
68
|
+
name_school: { type: "text", write: true },
|
|
69
|
+
date_protocol: { type: "date", write: true },
|
|
70
|
+
number_protocol: { type: "string", write: true },
|
|
71
|
+
certificate_increase: { type: "text", write: true },
|
|
72
|
+
certificate_stopping: { type: "text", write: true },
|
|
73
|
+
certificate_suspension: { type: "date", write: true },
|
|
74
|
+
certificate_renewal: { type: "text", write: true },
|
|
75
|
+
work_place: { type: "text", write: true },
|
|
76
|
+
economic_activity: { type: "text", write: true },
|
|
77
77
|
created_by: { type: "string", write: false, lookup: userLookup },
|
|
78
78
|
created_at: { type: "timestamp", write: false, sortable: true },
|
|
79
79
|
updated_by: { type: "string", write: false, lookup: userLookup },
|
|
80
80
|
updated_at: { type: "timestamp", write: false, sortable: true },
|
|
81
81
|
is_membership: {
|
|
82
82
|
type: "boolean",
|
|
83
|
-
write:
|
|
83
|
+
write: true,
|
|
84
84
|
filterable: true,
|
|
85
85
|
dictionary: "yes-no",
|
|
86
86
|
},
|
|
87
|
-
membership: { type: "text", write:
|
|
88
|
-
last_qualification_date: { type: "date", write:
|
|
89
|
-
isvalid: { type: "boolean", write:
|
|
90
|
-
qualification_level: { type: "string", write:
|
|
87
|
+
membership: { type: "text", write: true },
|
|
88
|
+
last_qualification_date: { type: "date", write: true },
|
|
89
|
+
isvalid: { type: "boolean", write: true, filterable: true },
|
|
90
|
+
qualification_level: { type: "string", write: true },
|
|
91
91
|
},
|
|
92
92
|
// Колонки мають префікс account_, щоб не конфліктувати з полями сертифіката.
|
|
93
93
|
// scope "item" не додає join до основного списку сертифікатів.
|
|
@@ -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 };
|