@opengis/surveyor 0.0.2 → 0.0.3
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/{AppealDetailField-CI-1qhs3.js → AppealDetailField-DNRGpnyD.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-CSXnfarR.js → AppealStatusBadge-CefimzY3.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-DYBe9hqP.js → AppealStatusBadge-Cu-UzdzA.js} +1 -1
- package/dist/chunks/{ApplicationHistorySection-C0wwhwA4.js → ApplicationHistorySection-PwToBfej.js} +4 -4
- package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
- package/dist/chunks/{FormFilePicker-C3XQw50i.js → FormFilePicker-CKVdZJU9.js} +2 -2
- package/dist/chunks/{MapLayerMenu-DjYCxEc3.js → MapLayerMenu-AUeTqgEp.js} +1 -1
- package/dist/chunks/{RegistryForm-CEUqFmsF.js → RegistryForm-wG-c8GKf.js} +1 -1
- package/dist/chunks/{RegistryFormModal-DfY4z_7r.js → RegistryFormModal-R_iZYqGE.js} +3 -3
- package/dist/chunks/{RegistryToolbar-BV4mYVAc.js → RegistryToolbar-322DKUXi.js} +6 -6
- package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
- package/dist/chunks/{UserAccessBadge-D8JfgGfN.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
- package/dist/chunks/{UserTypeBadge-YIwwoCho.js → UserTypeBadge-LvnMuKGo.js} +1 -1
- package/dist/chunks/{VerifiedBadge-Bba8WnuB.js → VerifiedBadge-bk0n-rlC.js} +2 -2
- package/dist/chunks/{applications-BB9JRcgl.js → applications-CsCsndMV.js} +1 -1
- package/dist/chunks/{card-fL26_Gvc.js → card-B_SfARf7.js} +358 -357
- package/dist/chunks/card-C3y-j2TA.js +298 -0
- package/dist/chunks/{card-CKD1N0QD.js → card-CWqi1K-x.js} +107 -106
- package/dist/chunks/{card-DUtDfwMk.js → card-DCyBFoDZ.js} +6 -6
- package/dist/chunks/card-DWpAv92l.js +539 -0
- package/dist/chunks/{card-B-ftozcq.js → card-X9UVFgdR.js} +256 -250
- package/dist/chunks/{certificates-BSd1i0un.js → certificates-Cwch72-o.js} +131 -130
- package/dist/chunks/{create-DxMC_IL1.js → create-DTP9x2uS.js} +283 -270
- package/dist/chunks/dom-BSjFG3O0.js +7 -0
- package/dist/chunks/{map-layers-DnmkOEld.js → map-layers-sT-gTiD_.js} +130 -125
- package/dist/chunks/{map-Z57iMvFb.js → map-qXQe_qam.js} +645 -632
- package/dist/chunks/{organizations-BbYipLwk.js → organizations-BtuMZ5s_.js} +1 -1
- package/dist/chunks/{organizations-BO1_JETm.js → organizations-ByVE2f0c.js} +128 -123
- package/dist/chunks/{profile-Dwwn_4Pr.js → profile-CuxlkEev.js} +3 -3
- package/dist/chunks/{profile-ByahbF4B.js → profile-DxZHxGum.js} +1 -1
- package/dist/chunks/requests-BTpLXrNj.js +233 -0
- package/dist/chunks/{requests-CFv5wwAN.js → requests-Bt8fEdRc.js} +7 -7
- package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
- package/dist/chunks/{users-DtTYsgMb.js → users-U1P6xCP4.js} +105 -99
- package/dist/index.css +1 -1
- package/dist/index.js +154 -114
- package/package.json +2 -5
- package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
- package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
- package/surveyor-types.d.ts +5 -0
- package/dist/chunks/AppIcon-CIR6y5uE.js +0 -85
- package/dist/chunks/BaseModal-C7PVYz0m.js +0 -85
- package/dist/chunks/card-BctFHFZe.js +0 -538
- package/dist/chunks/card-CiNZxAd5.js +0 -297
- package/dist/chunks/requests-BCin936Z.js +0 -232
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import { i
|
|
5
|
-
import { t as
|
|
6
|
-
import { i as
|
|
7
|
-
import { a as
|
|
8
|
-
import { t as
|
|
3
|
+
import { n, t as r } from "./useEntityPath-C5Owtidc.js";
|
|
4
|
+
import { i, n as ee } from "./resources-2e8RFqWR.js";
|
|
5
|
+
import { t as te } from "./VerifiedBadge-bk0n-rlC.js";
|
|
6
|
+
import { i as a } from "./filterQuery-CvfZrkTC.js";
|
|
7
|
+
import { a as o, i as s, n as c, r as l, t as u } from "./RegistryToolbar-322DKUXi.js";
|
|
8
|
+
import { t as d } from "./SurveyorTeleport-CnSF0Ptl.js";
|
|
9
|
+
import { t as f } from "./RegistryFormModal-R_iZYqGE.js";
|
|
9
10
|
import { n as p, t as m } from "./form-DDjELqZ9.js";
|
|
10
|
-
import { Fragment as h,
|
|
11
|
-
import { RouterLink as
|
|
12
|
-
import { confirm as
|
|
11
|
+
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, normalizeStyle as w, onMounted as T, onUnmounted as E, openBlock as D, ref as O, renderList as k, toDisplayString as A, vModelText as j, withCtx as M, withDirectives as N, withModifiers as P } from "vue";
|
|
12
|
+
import { RouterLink as F, useRouter as I } from "vue-router";
|
|
13
|
+
import { confirm as ne, notify as re } from "@opengis/core";
|
|
13
14
|
//#region admin/src/static/registry/organizations/table.ts
|
|
14
|
-
var
|
|
15
|
+
var L = {
|
|
15
16
|
resource: p,
|
|
16
17
|
pageSize: 10,
|
|
17
18
|
sort: "-created_at",
|
|
@@ -49,7 +50,7 @@ var z = {
|
|
|
49
50
|
label: "Дії"
|
|
50
51
|
}
|
|
51
52
|
]
|
|
52
|
-
},
|
|
53
|
+
}, R = {
|
|
53
54
|
resource: p,
|
|
54
55
|
view: "inline",
|
|
55
56
|
fields: {
|
|
@@ -73,23 +74,23 @@ var z = {
|
|
|
73
74
|
width: 280
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
},
|
|
77
|
-
filter: () =>
|
|
77
|
+
}, z = /* @__PURE__ */ e({
|
|
78
|
+
filter: () => R,
|
|
78
79
|
form: () => m,
|
|
79
80
|
resource: () => p,
|
|
80
|
-
table: () =>
|
|
81
|
-
}),
|
|
81
|
+
table: () => L
|
|
82
|
+
}), B = /*@__PURE__*/ C({
|
|
82
83
|
__name: "index",
|
|
83
84
|
setup(e, { expose: t }) {
|
|
84
85
|
t();
|
|
85
|
-
let m =
|
|
86
|
+
let m = L.columns, { query: h, filterValues: _, page: v, pageSize: y, listFilters: b, bindListLoader: x, refreshList: S } = o({
|
|
86
87
|
arrayFilterKeys: ["verified"],
|
|
87
|
-
buildFilters:
|
|
88
|
-
}), C =
|
|
88
|
+
buildFilters: a
|
|
89
|
+
}), C = O(!1), w = O(m.map((e) => e.key)), D = O([]), k = O(0), A = O(!1), j = O(""), M = O(!1), N = O(null), P = O({
|
|
89
90
|
top: "0px",
|
|
90
91
|
left: "0px"
|
|
91
|
-
}),
|
|
92
|
-
function
|
|
92
|
+
}), R = I(), { detailPath: B } = r();
|
|
93
|
+
function V(e, t) {
|
|
93
94
|
if (N.value === e) {
|
|
94
95
|
N.value = null;
|
|
95
96
|
return;
|
|
@@ -101,14 +102,13 @@ var z = {
|
|
|
101
102
|
}, N.value = e;
|
|
102
103
|
}
|
|
103
104
|
function H(e) {
|
|
104
|
-
N.value = null,
|
|
105
|
-
|
|
106
|
-
params: { id: e.org_id },
|
|
105
|
+
N.value = null, R.push({
|
|
106
|
+
path: B(e.org_id),
|
|
107
107
|
query: { edit: "1" }
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
function U(e) {
|
|
111
|
-
N.value = null,
|
|
111
|
+
N.value = null, ne({
|
|
112
112
|
title: "Підтвердження",
|
|
113
113
|
type: "error",
|
|
114
114
|
message: `Видалити організацію «${e.name}»?`,
|
|
@@ -116,9 +116,9 @@ var z = {
|
|
|
116
116
|
cancelButtonText: "Скасувати",
|
|
117
117
|
onConfirm: async () => {
|
|
118
118
|
try {
|
|
119
|
-
await
|
|
119
|
+
await ee(p, e.org_id), D.value.length === 1 && v.value > 1 ? --v.value : await q();
|
|
120
120
|
} catch (e) {
|
|
121
|
-
|
|
121
|
+
re({
|
|
122
122
|
type: "error",
|
|
123
123
|
title: "Помилка видалення",
|
|
124
124
|
message: e instanceof Error ? e.message : "Не вдалося видалити організацію"
|
|
@@ -131,23 +131,23 @@ var z = {
|
|
|
131
131
|
let t = e.target;
|
|
132
132
|
t instanceof Element && t.closest("[data-row-actions]") || (N.value = null);
|
|
133
133
|
}
|
|
134
|
-
let G = 0, K =
|
|
134
|
+
let G = 0, K = g(() => A.value ? "Завантаження…" : j.value ? j.value : "Організацій за заданими фільтрами не знайдено.");
|
|
135
135
|
async function q() {
|
|
136
136
|
let e = ++G;
|
|
137
137
|
A.value = !0, j.value = "";
|
|
138
138
|
try {
|
|
139
|
-
let t = await
|
|
139
|
+
let t = await i(p, {
|
|
140
140
|
page: v.value,
|
|
141
141
|
limit: y.value,
|
|
142
|
-
sort:
|
|
142
|
+
sort: L.sort,
|
|
143
143
|
search: h.value.trim() || void 0,
|
|
144
144
|
filters: b.value
|
|
145
145
|
});
|
|
146
146
|
if (e !== G) return;
|
|
147
|
-
|
|
147
|
+
D.value = t.rows ?? [], k.value = Number(t.total) || 0;
|
|
148
148
|
} catch (t) {
|
|
149
149
|
if (e !== G) return;
|
|
150
|
-
|
|
150
|
+
D.value = [], k.value = 0, j.value = t instanceof Error ? t.message : "Не вдалося завантажити організації";
|
|
151
151
|
} finally {
|
|
152
152
|
e === G && (A.value = !1);
|
|
153
153
|
}
|
|
@@ -156,11 +156,11 @@ var z = {
|
|
|
156
156
|
N.value = null, q();
|
|
157
157
|
});
|
|
158
158
|
function J(e) {
|
|
159
|
-
|
|
159
|
+
_.value = e;
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
T(() => {
|
|
162
162
|
document.addEventListener("click", W), window.addEventListener("resize", W), window.addEventListener("scroll", W, !0);
|
|
163
|
-
}),
|
|
163
|
+
}), E(() => {
|
|
164
164
|
document.removeEventListener("click", W), window.removeEventListener("resize", W), window.removeEventListener("scroll", W, !0);
|
|
165
165
|
});
|
|
166
166
|
function Y(e) {
|
|
@@ -178,7 +178,7 @@ var z = {
|
|
|
178
178
|
let Q = {
|
|
179
179
|
columns: m,
|
|
180
180
|
query: h,
|
|
181
|
-
filterValues:
|
|
181
|
+
filterValues: _,
|
|
182
182
|
page: v,
|
|
183
183
|
pageSize: y,
|
|
184
184
|
listFilters: b,
|
|
@@ -186,15 +186,16 @@ var z = {
|
|
|
186
186
|
refreshList: S,
|
|
187
187
|
columnsOpen: C,
|
|
188
188
|
visibleColumns: w,
|
|
189
|
-
rows:
|
|
190
|
-
total:
|
|
189
|
+
rows: D,
|
|
190
|
+
total: k,
|
|
191
191
|
loading: A,
|
|
192
192
|
error: j,
|
|
193
193
|
showAddModal: M,
|
|
194
194
|
actionsOpen: N,
|
|
195
195
|
menuStyle: P,
|
|
196
|
-
router:
|
|
197
|
-
|
|
196
|
+
router: R,
|
|
197
|
+
detailPath: B,
|
|
198
|
+
toggleActions: V,
|
|
198
199
|
editOrganization: H,
|
|
199
200
|
removeOrganization: U,
|
|
200
201
|
closeActions: W,
|
|
@@ -221,17 +222,18 @@ var z = {
|
|
|
221
222
|
actions: "w-[100px]"
|
|
222
223
|
},
|
|
223
224
|
AppIcon: n,
|
|
225
|
+
SurveyorTeleport: d,
|
|
224
226
|
get RouterLink() {
|
|
225
|
-
return
|
|
227
|
+
return F;
|
|
226
228
|
},
|
|
227
|
-
PageHeader:
|
|
228
|
-
VerifiedBadge:
|
|
229
|
-
RegistryTable:
|
|
230
|
-
TablePagination:
|
|
229
|
+
PageHeader: s,
|
|
230
|
+
VerifiedBadge: te,
|
|
231
|
+
RegistryTable: l,
|
|
232
|
+
TablePagination: c,
|
|
231
233
|
RegistryFormModal: f,
|
|
232
|
-
RegistryToolbar:
|
|
234
|
+
RegistryToolbar: u,
|
|
233
235
|
get config() {
|
|
234
|
-
return
|
|
236
|
+
return z;
|
|
235
237
|
}
|
|
236
238
|
};
|
|
237
239
|
return Object.defineProperty(Q, "__isScriptSetup", {
|
|
@@ -239,116 +241,116 @@ var z = {
|
|
|
239
241
|
value: !0
|
|
240
242
|
}), Q;
|
|
241
243
|
}
|
|
242
|
-
}),
|
|
244
|
+
}), V = { class: "px-4" }, H = { class: "relative block" }, U = {
|
|
243
245
|
type: "button",
|
|
244
246
|
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",
|
|
245
247
|
"aria-label": "Експорт",
|
|
246
248
|
title: "Експорт реєстру"
|
|
247
|
-
},
|
|
249
|
+
}, W = { class: "relative" }, G = {
|
|
248
250
|
key: 0,
|
|
249
251
|
class: "absolute right-0 top-12 z-20 w-64 rounded-lg border border-slate-200 bg-white p-2 shadow-card-hover"
|
|
250
|
-
},
|
|
252
|
+
}, K = { class: "flex items-center justify-between px-2 py-1" }, q = ["checked", "onChange"], J = { class: "mt-3 flex items-center justify-between border-t border-slate-100 pt-3 text-xs text-slate-400" }, Y = { class: "font-semibold text-slate-600" }, X = {
|
|
251
253
|
key: 1,
|
|
252
254
|
class: "block w-full max-w-full break-words text-slate-600"
|
|
253
|
-
},
|
|
255
|
+
}, Z = {
|
|
254
256
|
key: 2,
|
|
255
257
|
class: "whitespace-nowrap text-slate-600"
|
|
256
|
-
},
|
|
258
|
+
}, Q = {
|
|
257
259
|
key: 3,
|
|
258
260
|
class: "block w-full max-w-full break-all text-slate-600"
|
|
259
|
-
},
|
|
261
|
+
}, ie = {
|
|
260
262
|
key: 4,
|
|
261
263
|
class: "flex items-center gap-1"
|
|
262
|
-
},
|
|
264
|
+
}, $ = ["href"], ae = ["href"], oe = {
|
|
263
265
|
key: 1,
|
|
264
266
|
class: "text-slate-400"
|
|
265
|
-
},
|
|
267
|
+
}, se = {
|
|
266
268
|
key: 5,
|
|
267
269
|
class: "text-slate-400"
|
|
268
|
-
},
|
|
270
|
+
}, ce = {
|
|
269
271
|
key: 7,
|
|
270
272
|
class: "text-slate-400"
|
|
271
|
-
},
|
|
273
|
+
}, le = {
|
|
272
274
|
key: 8,
|
|
273
275
|
class: "flex justify-center"
|
|
274
|
-
},
|
|
276
|
+
}, ue = [
|
|
275
277
|
"aria-expanded",
|
|
276
278
|
"aria-label",
|
|
277
279
|
"onClick"
|
|
278
|
-
],
|
|
279
|
-
function
|
|
280
|
-
return
|
|
281
|
-
|
|
280
|
+
], de = ["onClick"], fe = ["onClick"];
|
|
281
|
+
function pe(e, t, n, r, i, ee) {
|
|
282
|
+
return D(), y("div", null, [
|
|
283
|
+
S(r.PageHeader, {
|
|
282
284
|
title: "Реєстр організацій",
|
|
283
285
|
subtitle: "Організації та сертифіковані спеціалісти геодезичного кабінету"
|
|
284
286
|
}, {
|
|
285
|
-
default:
|
|
287
|
+
default: M(() => [b("button", {
|
|
286
288
|
type: "button",
|
|
287
289
|
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",
|
|
288
290
|
onClick: t[0] ||= (e) => r.showAddModal = !0
|
|
289
|
-
}, [
|
|
291
|
+
}, [S(r.AppIcon, {
|
|
290
292
|
name: "plus",
|
|
291
293
|
class: "h-4 w-4"
|
|
292
|
-
}), t[7] ||=
|
|
294
|
+
}), t[7] ||= x(" Додати ", -1)])]),
|
|
293
295
|
_: 1
|
|
294
296
|
}),
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
b("section", V, [
|
|
298
|
+
S(r.RegistryToolbar, {
|
|
297
299
|
"search-min": "min-w-[220px]",
|
|
298
300
|
"filter-config": r.config.filter,
|
|
299
301
|
"filter-values": r.filterValues,
|
|
300
302
|
"onUpdate:filterValues": r.onFilterValuesUpdate
|
|
301
303
|
}, {
|
|
302
|
-
search:
|
|
304
|
+
search: M(() => [b("label", H, [S(r.AppIcon, {
|
|
303
305
|
name: "search",
|
|
304
306
|
class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"
|
|
305
|
-
}),
|
|
307
|
+
}), N(b("input", {
|
|
306
308
|
"onUpdate:modelValue": t[1] ||= (e) => r.query = e,
|
|
307
309
|
type: "search",
|
|
308
310
|
placeholder: "Пошук організації…",
|
|
309
311
|
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"
|
|
310
|
-
}, null, 512), [[
|
|
311
|
-
actions:
|
|
312
|
+
}, null, 512), [[j, r.query]])])]),
|
|
313
|
+
actions: M(() => [b("button", U, [S(r.AppIcon, {
|
|
312
314
|
name: "download",
|
|
313
315
|
class: "h-4 w-4"
|
|
314
|
-
})]),
|
|
316
|
+
})]), b("div", W, [b("button", {
|
|
315
317
|
type: "button",
|
|
316
318
|
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",
|
|
317
319
|
"aria-label": "Налаштувати колонки",
|
|
318
320
|
title: "Налаштувати колонки",
|
|
319
321
|
onClick: t[2] ||= (e) => r.columnsOpen = !r.columnsOpen
|
|
320
|
-
}, [
|
|
322
|
+
}, [S(r.AppIcon, {
|
|
321
323
|
name: "columns-3",
|
|
322
324
|
class: "h-4 w-4"
|
|
323
|
-
})]), r.columnsOpen ? (
|
|
325
|
+
})]), r.columnsOpen ? (D(), y("div", G, [b("div", K, [t[9] ||= b("p", { class: "text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Показати колонки", -1), b("button", {
|
|
324
326
|
type: "button",
|
|
325
327
|
"aria-label": "Закрити",
|
|
326
328
|
class: "text-slate-400 hover:text-slate-700",
|
|
327
329
|
onClick: t[3] ||= (e) => r.columnsOpen = !1
|
|
328
|
-
}, [...t[8] ||= [
|
|
330
|
+
}, [...t[8] ||= [b("svg", {
|
|
329
331
|
xmlns: "http://www.w3.org/2000/svg",
|
|
330
332
|
class: "h-4 w-4",
|
|
331
333
|
fill: "none",
|
|
332
334
|
viewBox: "0 0 24 24",
|
|
333
335
|
stroke: "currentColor"
|
|
334
|
-
}, [
|
|
336
|
+
}, [b("path", {
|
|
335
337
|
"stroke-linecap": "round",
|
|
336
338
|
"stroke-linejoin": "round",
|
|
337
339
|
"stroke-width": "2",
|
|
338
340
|
d: "M6 18L18 6M6 6l12 12"
|
|
339
|
-
})], -1)]])]), (
|
|
341
|
+
})], -1)]])]), (D(!0), y(h, null, k(r.columns, (e) => (D(), y("label", {
|
|
340
342
|
key: e.key,
|
|
341
343
|
class: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2 text-sm text-slate-600 hover:bg-slate-50"
|
|
342
|
-
}, [
|
|
344
|
+
}, [b("input", {
|
|
343
345
|
type: "checkbox",
|
|
344
346
|
checked: r.visibleColumns.includes(e.key),
|
|
345
347
|
class: "h-4 w-4 accent-brand-600",
|
|
346
348
|
onChange: (t) => r.toggleColumn(e.key)
|
|
347
|
-
}, null, 40,
|
|
349
|
+
}, null, 40, q), x(" " + A(e.label), 1)]))), 128))])) : v("", !0)])]),
|
|
348
350
|
_: 1
|
|
349
351
|
}, 8, ["filter-config", "filter-values"]),
|
|
350
|
-
|
|
351
|
-
|
|
352
|
+
b("div", J, [b("span", null, [t[10] ||= x("Знайдено організацій: ", -1), b("strong", Y, A(r.total), 1)])]),
|
|
353
|
+
S(r.RegistryTable, {
|
|
352
354
|
class: "mt-3",
|
|
353
355
|
rows: r.rows,
|
|
354
356
|
columns: r.columns,
|
|
@@ -359,89 +361,92 @@ function fe(e, t, n, r, i, a) {
|
|
|
359
361
|
"cell-class": { specialists: "text-right tabular-nums" },
|
|
360
362
|
"empty-text": r.emptyText
|
|
361
363
|
}, {
|
|
362
|
-
cell:
|
|
364
|
+
cell: M(({ row: e, column: n }) => [n === "name" ? (D(), _(r.RouterLink, {
|
|
363
365
|
key: 0,
|
|
364
|
-
to:
|
|
366
|
+
to: r.detailPath(e.org_id),
|
|
365
367
|
class: "block w-full max-w-full break-words text-left font-semibold text-brand-700 hover:text-brand-900 hover:underline"
|
|
366
368
|
}, {
|
|
367
|
-
default:
|
|
369
|
+
default: M(() => [x(A(e.name), 1)]),
|
|
368
370
|
_: 2
|
|
369
|
-
}, 1032, ["to"])) : n === "address" ? (
|
|
371
|
+
}, 1032, ["to"])) : n === "address" ? (D(), y("span", X, A(e.legal_address || "—"), 1)) : n === "phone" ? (D(), y("span", Z, A(e.phone || "—"), 1)) : n === "email" ? (D(), y("span", Q, A(e.email || "—"), 1)) : n === "registrationFile" ? (D(), y("div", ie, [e.scan_path ? (D(), y(h, { key: 0 }, [b("a", {
|
|
370
372
|
href: r.fileUrl(e.scan_path),
|
|
371
373
|
target: "_blank",
|
|
372
374
|
rel: "noopener",
|
|
373
375
|
class: "rounded-md p-1.5 text-slate-500 transition-colors hover:bg-brand-50 hover:text-brand-700",
|
|
374
376
|
"aria-label": "Переглянути документ",
|
|
375
377
|
title: "Переглянути документ"
|
|
376
|
-
}, [...t[11] ||= [
|
|
378
|
+
}, [...t[11] ||= [b("svg", {
|
|
377
379
|
xmlns: "http://www.w3.org/2000/svg",
|
|
378
380
|
class: "h-4 w-4",
|
|
379
381
|
fill: "none",
|
|
380
382
|
viewBox: "0 0 24 24",
|
|
381
383
|
stroke: "currentColor"
|
|
382
|
-
}, [
|
|
384
|
+
}, [b("path", {
|
|
383
385
|
"stroke-linecap": "round",
|
|
384
386
|
"stroke-linejoin": "round",
|
|
385
387
|
"stroke-width": "2",
|
|
386
388
|
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
387
|
-
}),
|
|
389
|
+
}), b("path", {
|
|
388
390
|
"stroke-linecap": "round",
|
|
389
391
|
"stroke-linejoin": "round",
|
|
390
392
|
"stroke-width": "2",
|
|
391
393
|
d: "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"
|
|
392
|
-
})], -1)]], 8,
|
|
394
|
+
})], -1)]], 8, $), b("a", {
|
|
393
395
|
href: r.fileUrl(e.scan_path, !0),
|
|
394
396
|
class: "rounded-md p-1.5 text-slate-500 transition-colors hover:bg-brand-50 hover:text-brand-700",
|
|
395
397
|
"aria-label": "Завантажити документ",
|
|
396
398
|
title: "Завантажити документ"
|
|
397
|
-
}, [...t[12] ||= [
|
|
399
|
+
}, [...t[12] ||= [b("svg", {
|
|
398
400
|
xmlns: "http://www.w3.org/2000/svg",
|
|
399
401
|
class: "h-4 w-4",
|
|
400
402
|
fill: "none",
|
|
401
403
|
viewBox: "0 0 24 24",
|
|
402
404
|
stroke: "currentColor"
|
|
403
|
-
}, [
|
|
405
|
+
}, [b("path", {
|
|
404
406
|
"stroke-linecap": "round",
|
|
405
407
|
"stroke-linejoin": "round",
|
|
406
408
|
"stroke-width": "2",
|
|
407
409
|
d: "M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
408
|
-
})], -1)]], 8, ae)], 64)) : (
|
|
410
|
+
})], -1)]], 8, ae)], 64)) : (D(), y("span", oe, "—"))])) : n === "specialists" ? (D(), y("span", se, "—")) : n === "verified" && typeof e.verified == "boolean" ? (D(), _(r.VerifiedBadge, {
|
|
409
411
|
key: 6,
|
|
410
412
|
verified: e.verified
|
|
411
|
-
}, null, 8, ["verified"])) : n === "verified" ? (
|
|
413
|
+
}, null, 8, ["verified"])) : n === "verified" ? (D(), y("span", ce, "—")) : n === "actions" ? (D(), y("div", le, [b("button", {
|
|
412
414
|
type: "button",
|
|
413
415
|
"data-row-actions": "",
|
|
414
416
|
class: "inline-flex h-8 w-8 items-center justify-center rounded-lg text-slate-400 transition-colors hover:bg-brand-50 hover:text-brand-700",
|
|
415
417
|
"aria-expanded": r.actionsOpen === e.org_id,
|
|
416
418
|
"aria-label": `Дії для ${e.name}`,
|
|
417
|
-
onClick:
|
|
418
|
-
}, [
|
|
419
|
+
onClick: P((t) => r.toggleActions(e.org_id, t), ["stop"])
|
|
420
|
+
}, [S(r.AppIcon, {
|
|
419
421
|
name: "more-vertical",
|
|
420
422
|
class: "h-4 w-4"
|
|
421
|
-
})], 8,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
423
|
+
})], 8, ue), S(r.SurveyorTeleport, null, {
|
|
424
|
+
default: M(() => [r.actionsOpen === e.org_id ? (D(), y("div", {
|
|
425
|
+
key: 0,
|
|
426
|
+
"data-row-actions": "",
|
|
427
|
+
class: "fixed z-50 w-44 overflow-hidden rounded-lg border border-slate-200 bg-white py-1 text-left shadow-card-hover",
|
|
428
|
+
style: w(r.menuStyle)
|
|
429
|
+
}, [
|
|
430
|
+
b("button", {
|
|
431
|
+
type: "button",
|
|
432
|
+
class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-slate-700 transition-colors hover:bg-slate-50",
|
|
433
|
+
onClick: (t) => r.editOrganization(e)
|
|
434
|
+
}, [S(r.AppIcon, {
|
|
435
|
+
name: "pencil",
|
|
436
|
+
class: "h-4 w-4 text-slate-400"
|
|
437
|
+
}), t[13] ||= x(" Редагувати ", -1)], 8, de),
|
|
438
|
+
t[15] ||= b("div", { class: "my-1 border-t border-slate-100" }, null, -1),
|
|
439
|
+
b("button", {
|
|
440
|
+
type: "button",
|
|
441
|
+
class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-red-600 transition-colors hover:bg-red-50",
|
|
442
|
+
onClick: (t) => r.removeOrganization(e)
|
|
443
|
+
}, [S(r.AppIcon, {
|
|
444
|
+
name: "trash-2",
|
|
445
|
+
class: "h-4 w-4"
|
|
446
|
+
}), t[14] ||= x(" Видалити ", -1)], 8, fe)
|
|
447
|
+
], 4)) : v("", !0)]),
|
|
448
|
+
_: 2
|
|
449
|
+
}, 1024)])) : v("", !0)]),
|
|
445
450
|
_: 1
|
|
446
451
|
}, 8, [
|
|
447
452
|
"rows",
|
|
@@ -449,7 +454,7 @@ function fe(e, t, n, r, i, a) {
|
|
|
449
454
|
"visible-keys",
|
|
450
455
|
"empty-text"
|
|
451
456
|
]),
|
|
452
|
-
r.total > 0 ? (
|
|
457
|
+
r.total > 0 ? (D(), _(r.TablePagination, {
|
|
453
458
|
key: 0,
|
|
454
459
|
page: r.page,
|
|
455
460
|
"onUpdate:page": t[4] ||= (e) => r.page = e,
|
|
@@ -460,9 +465,9 @@ function fe(e, t, n, r, i, a) {
|
|
|
460
465
|
"page",
|
|
461
466
|
"page-size",
|
|
462
467
|
"total"
|
|
463
|
-
])) :
|
|
468
|
+
])) : v("", !0)
|
|
464
469
|
]),
|
|
465
|
-
|
|
470
|
+
S(r.RegistryFormModal, {
|
|
466
471
|
modelValue: r.showAddModal,
|
|
467
472
|
"onUpdate:modelValue": t[6] ||= (e) => r.showAddModal = e,
|
|
468
473
|
title: "Нова організація",
|
|
@@ -471,6 +476,6 @@ function fe(e, t, n, r, i, a) {
|
|
|
471
476
|
}, null, 8, ["modelValue", "config"])
|
|
472
477
|
]);
|
|
473
478
|
}
|
|
474
|
-
var
|
|
479
|
+
var me = /*#__PURE__*/ t(B, [["render", pe], ["__file", "C:/softpro/surveyor/admin/src/pages/organizations/index.vue"]]);
|
|
475
480
|
//#endregion
|
|
476
|
-
export {
|
|
481
|
+
export { me as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { i as t, n, o as r, t as i } from "./profile-
|
|
2
|
+
import { i as t, n, o as r, t as i } from "./profile-DxZHxGum.js";
|
|
3
3
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, vModelDynamic as y, withDirectives as b } from "vue";
|
|
4
4
|
//#region cabinet/src/pages/profile/components/PasswordModal.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var x = 8, ee = /*@__PURE__*/ p({
|
|
@@ -122,7 +122,7 @@ function L(e, t, n, r, i, a) {
|
|
|
122
122
|
})) : c("", !0), d(" " + v(r.saved ? "Збережено" : r.submitting ? "Збереження…" : "Зберегти"), 1)], 10, I)])
|
|
123
123
|
])]);
|
|
124
124
|
}
|
|
125
|
-
var R = /*#__PURE__*/ e(ee, [["render", L], ["__file", "
|
|
125
|
+
var R = /*#__PURE__*/ e(ee, [["render", L], ["__file", "C:/softpro/surveyor/cabinet/src/pages/profile/components/PasswordModal.vue"]]), z = "Не вказано", B = /*@__PURE__*/ p({
|
|
126
126
|
__name: "index",
|
|
127
127
|
setup(e, { expose: t }) {
|
|
128
128
|
t();
|
|
@@ -238,6 +238,6 @@ function re(e, t, n, r, i, o) {
|
|
|
238
238
|
onClose: t[1] ||= (e) => r.passwordOpen = !1
|
|
239
239
|
})) : c("", !0)]);
|
|
240
240
|
}
|
|
241
|
-
var ie = /*#__PURE__*/ e(B, [["render", re], ["__file", "
|
|
241
|
+
var ie = /*#__PURE__*/ e(B, [["render", re], ["__file", "C:/softpro/surveyor/cabinet/src/pages/profile/index.vue"]]);
|
|
242
242
|
//#endregion
|
|
243
243
|
export { ie as default };
|
|
@@ -90,7 +90,7 @@ var fe = /*@__PURE__*/ r({
|
|
|
90
90
|
function pe(e, t, r, a, te, ne) {
|
|
91
91
|
return i(), n(ee(a.icon), { "stroke-width": r.strokeWidth }, null, 8, ["stroke-width"]);
|
|
92
92
|
}
|
|
93
|
-
var me = /*#__PURE__*/ e(fe, [["render", pe], ["__file", "
|
|
93
|
+
var me = /*#__PURE__*/ e(fe, [["render", pe], ["__file", "C:/softpro/surveyor/cabinet/src/components/ui/AppIcon.vue"]]);
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region cabinet/src/api/surveyor.ts
|
|
96
96
|
function Z(e) {
|