@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Історія змін
|
|
2
2
|
|
|
3
|
+
## 2026-11-05
|
|
4
|
+
|
|
5
|
+
- Перехід із Tailwind CSS 4 на Tailwind CSS 3.4.17: `@opengis/surveyor/style.css` містить лише власні стилі компонентів, а утиліти генерує Tailwind основного застосунку.
|
|
6
|
+
- Власні кольори й тіні (`brand`, `success`, `warning`, `danger`, `accent`, `shadow-card`) замінено стандартними класами та довільними значеннями Tailwind, тож основному застосунку не потрібна окрема конфігурація теми.
|
|
7
|
+
|
|
3
8
|
## 2026-10-19
|
|
4
9
|
|
|
5
10
|
- Додано точки входу серверного npm-пакета для API, ресурсів, довідників і хука автентифікації Surveyor.
|
package/README.md
CHANGED
|
@@ -57,6 +57,22 @@ await app.listen({ port: 3000 });
|
|
|
57
57
|
|
|
58
58
|
Плагін реєструє бізнес-маршрути за адресами `/api/surveyor/*`. Основний застосунок керує контекстом FCore та налаштуваннями автентифікації. Додайте `afterSurveyorUser` до хуків `afterUser` основного застосунку, щоб відновлювати права доступу до кабінету для зареєстрованих геодезистів з активними обліковими записами.
|
|
59
59
|
|
|
60
|
+
### Клієнтська частина та стилі
|
|
61
|
+
|
|
62
|
+
Стилі підключаються так само, як у `@opengis/form`: пакет постачає лише власний CSS компонентів, а утиліти генерує Tailwind CSS 3 основного застосунку. Компоненти використовують тільки стандартні класи та довільні значення Tailwind, тому окрема конфігурація теми не потрібна.
|
|
63
|
+
|
|
64
|
+
```js
|
|
65
|
+
import '@opengis/surveyor/style.css';
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
З Tailwind CDN (`https://cdn.tailwindcss.com/3.4.17`) більше нічого додавати не треба. Якщо Tailwind збирається з конфігурацією, додайте зібраний пакет до `content`:
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
export default {
|
|
72
|
+
content: ['./src/**/*.{vue,js,ts}', './node_modules/@opengis/surveyor/dist/**/*.js'],
|
|
73
|
+
};
|
|
74
|
+
```
|
|
75
|
+
|
|
60
76
|
### Міграції бази даних
|
|
61
77
|
|
|
62
78
|
Після підготовки схеми платформи й адресного класифікатора застосуйте SQL-міграції пакета з основного проєкту:
|
|
@@ -90,6 +90,6 @@ var ce = /*@__PURE__*/ r({
|
|
|
90
90
|
function le(e, t, r, o, ee, s) {
|
|
91
91
|
return i(), n(a(o.icon), { "stroke-width": r.strokeWidth }, null, 8, ["stroke-width"]);
|
|
92
92
|
}
|
|
93
|
-
var ue = /*#__PURE__*/ e(ce, [["render", le], ["__file", "
|
|
93
|
+
var ue = /*#__PURE__*/ e(ce, [["render", le], ["__file", "C:/softpro/surveyor/cabinet/src/components/ui/AppIcon.vue"]]);
|
|
94
94
|
//#endregion
|
|
95
95
|
export { ue as t };
|
|
@@ -21,11 +21,11 @@ var l = /*@__PURE__*/ i({
|
|
|
21
21
|
value: !0
|
|
22
22
|
}), n;
|
|
23
23
|
}
|
|
24
|
-
}), u = { class: "flex items-center justify-between gap-2.5 border-b border-slate-100 px-5 py-3.5" }, d = { class: "flex items-center gap-2.5" }, f = { class: "text-
|
|
24
|
+
}), u = { class: "flex items-center justify-between gap-2.5 border-b border-slate-100 px-5 py-3.5" }, d = { class: "flex items-center gap-2.5" }, f = { class: "text-[#1f5ae0]" }, p = { class: "text-[15px] font-semibold text-slate-800" }, m = { key: 0 }, h = { class: "px-5 py-4" };
|
|
25
25
|
function g(e, i, l, g, _, v) {
|
|
26
|
-
return o(), n("section", { class: a(["rounded-xl border bg-white shadow-
|
|
26
|
+
return o(), n("section", { class: a(["rounded-xl border bg-white shadow-[0_1px_2px_0_rgb(15_23_42/0.04),0_1px_3px_0_rgb(15_23_42/0.06)]", l.danger ? "border-red-200" : "border-slate-200"]) }, [r("header", u, [r("div", d, [r("span", f, [s(e.$slots, "icon")]), r("h2", p, c(l.title), 1)]), e.$slots.actions ? (o(), n("div", m, [s(e.$slots, "actions")])) : t("", !0)]), r("div", h, [s(e.$slots, "default")])], 2);
|
|
27
27
|
}
|
|
28
|
-
var _ = /*#__PURE__*/ e(l, [["render", g], ["__file", "
|
|
28
|
+
var _ = /*#__PURE__*/ e(l, [["render", g], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailSection.vue"]]), v = /*@__PURE__*/ i({
|
|
29
29
|
__name: "AppealDetailField",
|
|
30
30
|
props: {
|
|
31
31
|
label: {
|
|
@@ -53,6 +53,6 @@ var _ = /*#__PURE__*/ e(l, [["render", g], ["__file", "D:/softpro/surveyor/admin
|
|
|
53
53
|
function b(e, t, i, l, u, d) {
|
|
54
54
|
return o(), n("div", { class: a(["min-w-0", i.full ? "col-span-full" : ""]) }, [r("dt", y, c(i.label), 1), r("dd", { class: a(["break-words text-[14px] text-slate-700", i.highlight ? "font-semibold text-slate-800" : "font-medium"]) }, [s(e.$slots, "default")], 2)], 2);
|
|
55
55
|
}
|
|
56
|
-
var x = /*#__PURE__*/ e(v, [["render", b], ["__file", "
|
|
56
|
+
var x = /*#__PURE__*/ e(v, [["render", b], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailField.vue"]]);
|
|
57
57
|
//#endregion
|
|
58
58
|
export { _ as n, x as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./AppIcon-
|
|
2
|
+
import { t } from "./AppIcon-CO70tpMX.js";
|
|
3
3
|
import { t as n } from "./account_types-DLL1w122.js";
|
|
4
4
|
import { t as r } from "./application_status-BhNGiY2I.js";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, toDisplayString as p } from "vue";
|
|
@@ -127,6 +127,6 @@ function x(e, t, n, r, i, u) {
|
|
|
127
127
|
})) : o("", !0)
|
|
128
128
|
], 2);
|
|
129
129
|
}
|
|
130
|
-
var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "
|
|
130
|
+
var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "C:/softpro/surveyor/cabinet/src/components/ui/AppealStatusBadge.vue"]]);
|
|
131
131
|
//#endregion
|
|
132
132
|
export { g as n, _ as r, S as t };
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { c as n } from "./resources-Cj8BzrBX.js";
|
|
4
|
+
import { t as r } from "./application_status-BhNGiY2I.js";
|
|
5
|
+
import { t as i } from "./work_types-Hwme-FEX.js";
|
|
6
|
+
import { computed as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, toDisplayString as f } from "vue";
|
|
7
|
+
//#region admin/src/static/registry/requests/resource.ts
|
|
8
|
+
var p = "applications", m = {
|
|
9
|
+
awaitingData: {
|
|
10
|
+
classes: "bg-slate-100 text-slate-600 border-slate-200",
|
|
11
|
+
dot: "bg-slate-400"
|
|
12
|
+
},
|
|
13
|
+
dataIssued: {
|
|
14
|
+
classes: "bg-amber-50 text-amber-700 border-amber-200",
|
|
15
|
+
dot: "bg-amber-500"
|
|
16
|
+
},
|
|
17
|
+
reserve: {
|
|
18
|
+
classes: "bg-rose-50 text-rose-800 border-rose-200",
|
|
19
|
+
dot: "bg-rose-700"
|
|
20
|
+
},
|
|
21
|
+
underReview: {
|
|
22
|
+
classes: "bg-sky-50 text-sky-700 border-sky-200",
|
|
23
|
+
dot: "bg-sky-500"
|
|
24
|
+
},
|
|
25
|
+
verified: {
|
|
26
|
+
classes: "bg-[#eef6ff] text-[#1a46b8] border-[#bcd9ff]",
|
|
27
|
+
dot: "bg-[#3479f6]"
|
|
28
|
+
},
|
|
29
|
+
completed: {
|
|
30
|
+
classes: "bg-emerald-50 text-emerald-700 border-emerald-200",
|
|
31
|
+
dot: "bg-emerald-500"
|
|
32
|
+
},
|
|
33
|
+
cancelled: {
|
|
34
|
+
classes: "bg-red-50 text-red-700 border-red-200",
|
|
35
|
+
dot: "bg-red-500"
|
|
36
|
+
}
|
|
37
|
+
}, h = {
|
|
38
|
+
classes: "bg-slate-100 text-slate-600 border-slate-200",
|
|
39
|
+
dot: "bg-slate-400"
|
|
40
|
+
}, g = {
|
|
41
|
+
awaitingData: "brand",
|
|
42
|
+
dataIssued: "success",
|
|
43
|
+
reserve: "slate",
|
|
44
|
+
underReview: "warning",
|
|
45
|
+
verified: "brand",
|
|
46
|
+
completed: "accent",
|
|
47
|
+
cancelled: "danger"
|
|
48
|
+
}, _ = r.items.map((e) => e.code), v = Object.fromEntries(r.items.map((e) => [e.code, {
|
|
49
|
+
label: e.name,
|
|
50
|
+
...m[e.code] ?? h
|
|
51
|
+
}])), y = Object.fromEntries(r.items.map((e) => [e.code, e.name])), b = Object.fromEntries(r.items.map((e) => [e.code, e.color ?? "#64748b"])), x = Object.fromEntries(r.items.map((e) => [e.code, e.name]));
|
|
52
|
+
r.items.map((e) => ({
|
|
53
|
+
status: e.code,
|
|
54
|
+
label: e.name,
|
|
55
|
+
tone: g[e.code] ?? "slate"
|
|
56
|
+
}));
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region admin/src/lib/work-types.ts
|
|
59
|
+
var S = i.items.map((e) => ({
|
|
60
|
+
code: e.code,
|
|
61
|
+
label: e.name
|
|
62
|
+
})), C = Object.fromEntries(i.items.map((e) => [e.code, e.name])), w = {
|
|
63
|
+
resource: p,
|
|
64
|
+
pageSize: 10,
|
|
65
|
+
sort: "-created_at",
|
|
66
|
+
columns: [
|
|
67
|
+
{
|
|
68
|
+
key: "number",
|
|
69
|
+
label: "Номер",
|
|
70
|
+
sort: "number"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: "organization",
|
|
74
|
+
label: "Організація/особа"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: "address",
|
|
78
|
+
label: "Адреса"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: "status",
|
|
82
|
+
label: "Статус"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
key: "workType",
|
|
86
|
+
label: "Вид робіт"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "createdAt",
|
|
90
|
+
label: "Дата подачі",
|
|
91
|
+
sort: "created_at"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
key: "checkedBy",
|
|
95
|
+
label: "Перевірив"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
key: "actions",
|
|
99
|
+
label: "Дії"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}, T = {
|
|
103
|
+
resource: p,
|
|
104
|
+
view: "inline",
|
|
105
|
+
fields: {
|
|
106
|
+
status: {
|
|
107
|
+
component: "select",
|
|
108
|
+
label: "Статус",
|
|
109
|
+
placeholder: "Статус",
|
|
110
|
+
width: 180,
|
|
111
|
+
api: "/api/suggest/applications/status"
|
|
112
|
+
},
|
|
113
|
+
year: {
|
|
114
|
+
component: "select",
|
|
115
|
+
label: "Рік",
|
|
116
|
+
placeholder: "Рік",
|
|
117
|
+
width: 120,
|
|
118
|
+
options: [{
|
|
119
|
+
id: "2026",
|
|
120
|
+
text: "2026"
|
|
121
|
+
}]
|
|
122
|
+
},
|
|
123
|
+
organization: {
|
|
124
|
+
component: "select",
|
|
125
|
+
label: "Організація",
|
|
126
|
+
placeholder: "Організація",
|
|
127
|
+
width: 220,
|
|
128
|
+
api: "/api/suggest/organizations/org_id"
|
|
129
|
+
},
|
|
130
|
+
address: {
|
|
131
|
+
component: "select",
|
|
132
|
+
label: "Адреса",
|
|
133
|
+
placeholder: "Адреса",
|
|
134
|
+
width: 260,
|
|
135
|
+
api: "/api/suggest/applications/address_id"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}, E = S.map((e) => ({
|
|
139
|
+
id: e.code,
|
|
140
|
+
text: e.label
|
|
141
|
+
}));
|
|
142
|
+
function D(e) {
|
|
143
|
+
return e == null ? "" : String(e).trim();
|
|
144
|
+
}
|
|
145
|
+
function O(e) {
|
|
146
|
+
return D(e) || null;
|
|
147
|
+
}
|
|
148
|
+
function k(e) {
|
|
149
|
+
let t = !!e.is_found_address_id, n = {
|
|
150
|
+
work_type: D(e.work_type),
|
|
151
|
+
description: O(e.description),
|
|
152
|
+
execution_basis: O(e.execution_basis),
|
|
153
|
+
settlement_id: D(e.settlement_id),
|
|
154
|
+
is_found_address_id: t,
|
|
155
|
+
notes: O(e.notes)
|
|
156
|
+
};
|
|
157
|
+
return t ? (n.address_id = D(e.address_id) || null, n.location = null) : (n.address_id = null, n.location = O(e.location)), n;
|
|
158
|
+
}
|
|
159
|
+
var A = {
|
|
160
|
+
resource: p,
|
|
161
|
+
recordToValues: (e) => ({
|
|
162
|
+
work_type: D(e.work_type ?? e.work_type_data?.id),
|
|
163
|
+
description: D(e.description),
|
|
164
|
+
execution_basis: D(e.execution_basis),
|
|
165
|
+
settlement_id: D(e.settlement_id ?? e.settlement_id_data?.id),
|
|
166
|
+
is_found_address_id: e.is_found_address_id !== !1,
|
|
167
|
+
address_id: D(e.address_id ?? e.address_id_data?.id),
|
|
168
|
+
location: D(e.location),
|
|
169
|
+
notes: D(e.notes)
|
|
170
|
+
}),
|
|
171
|
+
save: async (e, t) => {
|
|
172
|
+
if (!e) throw Error("Ідентифікатор звернення не знайдено");
|
|
173
|
+
return n(p, e, k(t));
|
|
174
|
+
},
|
|
175
|
+
fields: {
|
|
176
|
+
work_type: {
|
|
177
|
+
component: "select",
|
|
178
|
+
label: "Вид робіт",
|
|
179
|
+
col: 12,
|
|
180
|
+
validators: ["required"],
|
|
181
|
+
options: E
|
|
182
|
+
},
|
|
183
|
+
description: {
|
|
184
|
+
component: "textarea",
|
|
185
|
+
label: "Опис запиту",
|
|
186
|
+
col: 12
|
|
187
|
+
},
|
|
188
|
+
execution_basis: {
|
|
189
|
+
component: "textarea",
|
|
190
|
+
label: "Підстава виконання робіт",
|
|
191
|
+
col: 12
|
|
192
|
+
},
|
|
193
|
+
settlement_id: {
|
|
194
|
+
component: "autocomplete",
|
|
195
|
+
label: "Населений пункт",
|
|
196
|
+
col: 12,
|
|
197
|
+
validators: ["required"],
|
|
198
|
+
api: "/api/suggest/applications/settlement_id"
|
|
199
|
+
},
|
|
200
|
+
is_found_address_id: {
|
|
201
|
+
component: "switcher",
|
|
202
|
+
label: "Адреса з довідника",
|
|
203
|
+
col: 12,
|
|
204
|
+
view: "checkbox",
|
|
205
|
+
info: "Увімкніть, щоб обрати адресу з реєстру; вимкніть для вільного опису місцезнаходження"
|
|
206
|
+
},
|
|
207
|
+
address_id: {
|
|
208
|
+
component: "autocomplete",
|
|
209
|
+
label: "Адреса",
|
|
210
|
+
col: 12,
|
|
211
|
+
api: "/api/suggest/applications/address_id",
|
|
212
|
+
conditions: [[
|
|
213
|
+
"is_found_address_id",
|
|
214
|
+
"==",
|
|
215
|
+
!0
|
|
216
|
+
]],
|
|
217
|
+
props: (e) => {
|
|
218
|
+
let t = D(e.settlement_id);
|
|
219
|
+
return t ? { filter: { settlement_id: t } } : {};
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
location: {
|
|
223
|
+
component: "textarea",
|
|
224
|
+
label: "Місцезнаходження",
|
|
225
|
+
col: 12,
|
|
226
|
+
conditions: [[
|
|
227
|
+
"is_found_address_id",
|
|
228
|
+
"==",
|
|
229
|
+
!1
|
|
230
|
+
]]
|
|
231
|
+
},
|
|
232
|
+
notes: {
|
|
233
|
+
component: "textarea",
|
|
234
|
+
label: "Примітки",
|
|
235
|
+
col: 12
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}, j = /* @__PURE__ */ e({
|
|
239
|
+
APPEAL_STATUS: () => v,
|
|
240
|
+
APPEAL_STATUS_SHORT: () => y,
|
|
241
|
+
APPLICATION_STATUS_CODES: () => _,
|
|
242
|
+
MAP_STATUS_COLORS: () => b,
|
|
243
|
+
MAP_STATUS_LABELS: () => x,
|
|
244
|
+
filter: () => T,
|
|
245
|
+
form: () => A,
|
|
246
|
+
resource: () => p,
|
|
247
|
+
table: () => w
|
|
248
|
+
}), M = /*@__PURE__*/ l({
|
|
249
|
+
__name: "AppealStatusBadge",
|
|
250
|
+
props: {
|
|
251
|
+
status: {
|
|
252
|
+
type: String,
|
|
253
|
+
required: !0
|
|
254
|
+
},
|
|
255
|
+
label: {
|
|
256
|
+
type: String,
|
|
257
|
+
required: !1
|
|
258
|
+
},
|
|
259
|
+
size: {
|
|
260
|
+
type: String,
|
|
261
|
+
required: !1,
|
|
262
|
+
default: "md"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
setup(e, { expose: t }) {
|
|
266
|
+
t();
|
|
267
|
+
let n = e, r = {
|
|
268
|
+
props: n,
|
|
269
|
+
config: a(() => {
|
|
270
|
+
let e = v[n.status], t = {
|
|
271
|
+
label: n.label || n.status || "—",
|
|
272
|
+
classes: "bg-slate-100 text-slate-600 border-slate-200",
|
|
273
|
+
dot: "bg-slate-400"
|
|
274
|
+
};
|
|
275
|
+
return e ? n.label ? {
|
|
276
|
+
...e,
|
|
277
|
+
label: n.label
|
|
278
|
+
} : e : t;
|
|
279
|
+
}),
|
|
280
|
+
pad: a(() => n.size === "sm" ? "px-2 py-0.5 text-xs" : "px-2.5 py-1 text-[13px]")
|
|
281
|
+
};
|
|
282
|
+
return Object.defineProperty(r, "__isScriptSetup", {
|
|
283
|
+
enumerable: !1,
|
|
284
|
+
value: !0
|
|
285
|
+
}), r;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region admin/src/components/ui/AppealStatusBadge.vue
|
|
290
|
+
function N(e, t, n, r, i, a) {
|
|
291
|
+
return d(), o("span", { class: u(["inline-flex items-center gap-1.5 rounded-full border font-medium", [r.config.classes, r.pad]]) }, [s("span", { class: u(["h-1.5 w-1.5 rounded-full", r.config.dot]) }, null, 2), c(" " + f(r.config.label), 1)], 2);
|
|
292
|
+
}
|
|
293
|
+
var P = /*#__PURE__*/ t(M, [["render", N], ["__file", "C:/softpro/surveyor/admin/src/components/ui/AppealStatusBadge.vue"]]);
|
|
294
|
+
//#endregion
|
|
295
|
+
export { C as a, b as c, w as i, x as l, j as n, S as o, A as r, _ as s, P as t, p as u };
|