@opengis/surveyor 0.0.17 → 0.0.19
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/{ApplicationGeometryExportModal-Cu6QmJjm.js → ApplicationGeometryExportModal-DhKC31To.js} +134 -131
- package/dist/chunks/{card-BCMJyzgE.js → card-BP2byleo.js} +1 -1
- package/dist/chunks/{card-BiKSZfYj.js → card-DuGbROGY.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +6 -10
- package/migrations/20261019170000_actor_lookup.sql +25 -10
- package/migrations/20261105120000_user_lookup.sql +15 -0
- package/package.json +2 -2
- package/server/resources/helpers/user_lookup.ts +2 -2
|
@@ -117,7 +117,7 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
117
117
|
"line-color": "#2563eb",
|
|
118
118
|
"line-width": 3
|
|
119
119
|
}
|
|
120
|
-
})), _e(e, t),
|
|
120
|
+
})), _e(e, t), ye(e, t);
|
|
121
121
|
}
|
|
122
122
|
function me(e, t) {
|
|
123
123
|
let n = e.trim(), r = n.match(/^(.+?)\s*\(([^)]+)\)\s*,?\s*(.*)$/);
|
|
@@ -164,12 +164,12 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
164
164
|
anchor: "bottom"
|
|
165
165
|
}).setLngLat(q.value).addTo(e));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function ve() {
|
|
168
168
|
let e = document.getElementById(de) ?? document.createElement("style");
|
|
169
169
|
e.id = de, e.textContent = "\n.appeal-map-popup .maplibregl-popup-content {\n min-width: 0;\n padding: 8px 8px 8px 10px !important;\n margin: 0;\n border: 1px solid #e2e8f0 !important;\n border-radius: 14px !important;\n background: #fff !important;\n box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06) !important;\n}\n.appeal-map-popup .maplibregl-popup-tip {\n width: 0 !important;\n height: 0 !important;\n border: 8px solid transparent !important;\n}\n.appeal-map-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {\n border-top-color: #fff !important;\n border-bottom-width: 0 !important;\n}\n.appeal-map-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip {\n border-bottom-color: #fff !important;\n border-top-width: 0 !important;\n}\n.appeal-map-popup-body {\n position: relative;\n display: block;\n max-width: 260px;\n margin: 0 !important;\n padding: 2px 28px 2px 2px !important;\n text-align: left;\n}\n.appeal-map-popup-text {\n min-width: 0;\n margin: 0 !important;\n padding: 2px 0 !important;\n}\n.appeal-map-popup-title {\n margin: 0 !important;\n padding: 0 !important;\n font-size: 13px !important;\n font-weight: 600 !important;\n line-height: 1.35 !important;\n color: #0f172a !important;\n}\n.appeal-map-popup-subtitle {\n margin: 2px 0 0 !important;\n padding: 0 !important;\n font-size: 12px !important;\n font-weight: 400 !important;\n line-height: 1.35 !important;\n color: #64748b !important;\n}\n.appeal-map-popup-close,\n.appeal-map-popup-close:focus,\n.appeal-map-popup-close:focus-visible,\n.appeal-map-popup-close:active {\n position: absolute !important;\n top: -6px !important;\n right: -6px !important;\n display: flex !important;\n align-items: center;\n justify-content: center;\n width: 20px !important;\n height: 20px !important;\n padding: 0 !important;\n margin: 0 !important;\n border: 0 !important;\n border-radius: 6px !important;\n background: transparent !important;\n color: #94a3b8 !important;\n opacity: 1 !important;\n outline: none !important;\n outline-offset: 0 !important;\n box-shadow: none !important;\n appearance: none !important;\n -webkit-appearance: none !important;\n cursor: pointer !important;\n}\n.appeal-map-popup-close::-moz-focus-inner {\n border: 0 !important;\n padding: 0 !important;\n}\n.appeal-map-popup-close svg {\n display: block;\n width: 12px !important;\n height: 12px !important;\n}\n.appeal-map-popup-close:hover {\n background: #f1f5f9 !important;\n color: #334155 !important;\n}\n", e.parentNode || document.head.appendChild(e);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
171
|
+
function ye(e, t) {
|
|
172
|
+
ve(), H?.remove(), H = null;
|
|
173
173
|
let n = he();
|
|
174
174
|
if (!q.value || !n) return;
|
|
175
175
|
let { title: r, subtitle: i } = n, a = document.createElement("div");
|
|
@@ -193,20 +193,20 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
193
193
|
anchor: "bottom"
|
|
194
194
|
}).setLngLat(q.value).setDOMContent(a).addTo(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function X(e) {
|
|
197
197
|
u(e, I(N.value), f(e, M.value, [C]));
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Z(e) {
|
|
200
200
|
h(e, M.value, F.value, C);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function be(e) {
|
|
203
203
|
N.value !== e && (N.value = e);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function xe(e) {
|
|
206
206
|
let t = F.value;
|
|
207
207
|
F.value = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Q() {
|
|
210
210
|
let e = B, t = O.value, n = D.value;
|
|
211
211
|
if (!e || !t || !n || k.value || n.clientWidth === 0 || n.clientHeight === 0) return;
|
|
212
212
|
let r = new e.Map({
|
|
@@ -223,7 +223,7 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
223
223
|
locale: _
|
|
224
224
|
});
|
|
225
225
|
r.on("load", () => {
|
|
226
|
-
r.resize(), Y(r, e),
|
|
226
|
+
r.resize(), Y(r, e), Z(r), A.value = !1;
|
|
227
227
|
}), r.on("error", (e) => {
|
|
228
228
|
console.warn("[AppealDetailMap]", e?.error ?? e);
|
|
229
229
|
}), k.value = r;
|
|
@@ -231,14 +231,14 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
231
231
|
function Se() {
|
|
232
232
|
k.value?.zoomIn({ duration: 250 });
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function $() {
|
|
235
235
|
k.value?.zoomOut({ duration: 250 });
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Ce() {
|
|
238
238
|
let e = k.value;
|
|
239
239
|
e && J(e);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function we() {
|
|
242
242
|
let e = k.value, t = B;
|
|
243
243
|
if (!e || !t) return;
|
|
244
244
|
let n = () => {
|
|
@@ -250,10 +250,10 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
250
250
|
G.value,
|
|
251
251
|
l.address,
|
|
252
252
|
l.location
|
|
253
|
-
],
|
|
253
|
+
], we), R(N, () => {
|
|
254
254
|
let e = k.value;
|
|
255
255
|
if (!e) return;
|
|
256
|
-
let t = () =>
|
|
256
|
+
let t = () => X(e);
|
|
257
257
|
e.isStyleLoaded() ? t() : e.once("load", t);
|
|
258
258
|
}), R(F, () => {
|
|
259
259
|
let e = k.value;
|
|
@@ -267,12 +267,12 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
269
|
!W && D.value && (V = new ResizeObserver(() => {
|
|
270
|
-
k.value ? k.value.resize() :
|
|
270
|
+
k.value ? k.value.resize() : Q();
|
|
271
271
|
}), V.observe(D.value));
|
|
272
272
|
}), re(() => {
|
|
273
273
|
W = !0, V?.disconnect(), H?.remove(), H = null, U?.remove(), U = null, k.value?.remove(), k.value = null;
|
|
274
274
|
});
|
|
275
|
-
let
|
|
275
|
+
let Te = {
|
|
276
276
|
props: l,
|
|
277
277
|
POLYGON_SOURCE_ID: x,
|
|
278
278
|
POLYGON_FILL_ID: C,
|
|
@@ -334,17 +334,17 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
334
334
|
createPinElement: ge,
|
|
335
335
|
showAddressMarker: _e,
|
|
336
336
|
POPUP_STYLE_ID: de,
|
|
337
|
-
ensurePopupStyles:
|
|
338
|
-
showAddressPopup:
|
|
339
|
-
remountBasemap:
|
|
340
|
-
remountOverlays:
|
|
341
|
-
selectBase:
|
|
342
|
-
toggleOverlay:
|
|
343
|
-
initMap:
|
|
337
|
+
ensurePopupStyles: ve,
|
|
338
|
+
showAddressPopup: ye,
|
|
339
|
+
remountBasemap: X,
|
|
340
|
+
remountOverlays: Z,
|
|
341
|
+
selectBase: be,
|
|
342
|
+
toggleOverlay: xe,
|
|
343
|
+
initMap: Q,
|
|
344
344
|
zoomIn: Se,
|
|
345
|
-
zoomOut:
|
|
346
|
-
resetView:
|
|
347
|
-
refreshLayers:
|
|
345
|
+
zoomOut: $,
|
|
346
|
+
resetView: Ce,
|
|
347
|
+
refreshLayers: we,
|
|
348
348
|
get Crosshair() {
|
|
349
349
|
return oe;
|
|
350
350
|
},
|
|
@@ -362,10 +362,10 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
362
362
|
},
|
|
363
363
|
MapLayerMenu: ee
|
|
364
364
|
};
|
|
365
|
-
return Object.defineProperty(
|
|
365
|
+
return Object.defineProperty(Te, "__isScriptSetup", {
|
|
366
366
|
enumerable: !1,
|
|
367
367
|
value: !0
|
|
368
|
-
}),
|
|
368
|
+
}), Te;
|
|
369
369
|
}
|
|
370
370
|
}), fe = {
|
|
371
371
|
key: 0,
|
|
@@ -383,7 +383,7 @@ var de = "appeal-map-popup-style", q = /*@__PURE__*/ O({
|
|
|
383
383
|
key: 1,
|
|
384
384
|
class: "flex shrink-0 items-center gap-2 border-t border-slate-100 px-5 py-2.5 text-xs text-slate-400"
|
|
385
385
|
}, _e = { class: "break-words" };
|
|
386
|
-
function
|
|
386
|
+
function ve(e, t, n, r, i, a) {
|
|
387
387
|
return N(), T("div", { class: A(n.variant === "panel" ? "flex h-full flex-col rounded-xl border border-slate-200 bg-white shadow-[0_1px_2px_0_rgb(15_23_42/0.04),0_1px_3px_0_rgb(15_23_42/0.06)]" : void 0) }, [
|
|
388
388
|
n.variant === "panel" ? (N(), T("header", fe, [E("div", pe, [D(r.MapPinned, {
|
|
389
389
|
class: "h-[18px] w-[18px] text-[#1f5ae0]",
|
|
@@ -457,17 +457,17 @@ function X(e, t, n, r, i, a) {
|
|
|
457
457
|
])) : w("", !0)
|
|
458
458
|
], 2);
|
|
459
459
|
}
|
|
460
|
-
var
|
|
461
|
-
["render",
|
|
460
|
+
var ye = /*#__PURE__*/ e(q, [
|
|
461
|
+
["render", ve],
|
|
462
462
|
["__scopeId", "data-v-ded53fc4"],
|
|
463
463
|
["__file", "C:/softpro/surveyor/shared/map/components/AppealDetailMap.vue"]
|
|
464
464
|
]);
|
|
465
465
|
//#endregion
|
|
466
466
|
//#region shared/comments/applicationNotesApi.ts
|
|
467
|
-
function
|
|
467
|
+
function X(e, t, n) {
|
|
468
468
|
return `/api/resource/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${n}`;
|
|
469
469
|
}
|
|
470
|
-
async function
|
|
470
|
+
async function Z(e) {
|
|
471
471
|
let t = await e.text();
|
|
472
472
|
try {
|
|
473
473
|
let n = JSON.parse(t);
|
|
@@ -476,26 +476,26 @@ async function Q(e) {
|
|
|
476
476
|
return t || `HTTP ${e.status}`;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
async function
|
|
480
|
-
let n = "".replace(/\/$/, ""), r = await fetch(`${n}${
|
|
481
|
-
if (!r.ok) throw Error(await
|
|
479
|
+
async function be(e, t) {
|
|
480
|
+
let n = "".replace(/\/$/, ""), r = await fetch(`${n}${X(e, t, "comments")}`, { credentials: "include" });
|
|
481
|
+
if (!r.ok) throw Error(await Z(r));
|
|
482
482
|
return [...(await r.json()).rows ?? []].sort((e, t) => String(e.created_at ?? "").localeCompare(String(t.created_at ?? "")));
|
|
483
483
|
}
|
|
484
|
-
async function
|
|
484
|
+
async function xe(e, t, n) {
|
|
485
485
|
let r = n.trim();
|
|
486
486
|
if (!r) throw Error("Введіть текст коментаря");
|
|
487
|
-
let i = "".replace(/\/$/, ""), a = await fetch(`${i}${
|
|
487
|
+
let i = "".replace(/\/$/, ""), a = await fetch(`${i}${X(e, t, "notes")}`, {
|
|
488
488
|
method: "POST",
|
|
489
489
|
credentials: "include",
|
|
490
490
|
headers: { "Content-Type": "application/json" },
|
|
491
491
|
body: JSON.stringify({ body: r })
|
|
492
492
|
});
|
|
493
|
-
if (!a.ok) throw Error(await
|
|
493
|
+
if (!a.ok) throw Error(await Z(a));
|
|
494
494
|
return a.json();
|
|
495
495
|
}
|
|
496
496
|
//#endregion
|
|
497
497
|
//#region shared/comments/noteDisplay.ts
|
|
498
|
-
function
|
|
498
|
+
function Q(e) {
|
|
499
499
|
return e.split(/\s+/).map((e) => e[0]).filter(Boolean).join("").slice(0, 2).toUpperCase();
|
|
500
500
|
}
|
|
501
501
|
function Se(e) {
|
|
@@ -505,10 +505,10 @@ function Se(e) {
|
|
|
505
505
|
let n = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
506
506
|
return n ? `${n[3]}.${n[2]}.${n[1]}` : e;
|
|
507
507
|
}
|
|
508
|
-
var
|
|
508
|
+
var $ = {
|
|
509
509
|
name: "Невідомий користувач",
|
|
510
510
|
initials: "НК"
|
|
511
|
-
},
|
|
511
|
+
}, Ce = /* @__PURE__ */ new Set(/* @__PURE__ */ "A.B.BLOCKQUOTE.BR.CODE.DEL.EM.H1.H2.H3.H4.H5.H6.HR.I.IMG.LI.MARK.OL.P.PRE.S.SPAN.STRONG.SUB.SUP.TABLE.TBODY.TD.TH.THEAD.TR.U.UL".split(".")), we = /* @__PURE__ */ new Set([
|
|
512
512
|
"SCRIPT",
|
|
513
513
|
"STYLE",
|
|
514
514
|
"IFRAME",
|
|
@@ -517,7 +517,7 @@ var Ce = {
|
|
|
517
517
|
"LINK",
|
|
518
518
|
"META"
|
|
519
519
|
]);
|
|
520
|
-
function
|
|
520
|
+
function Te(e) {
|
|
521
521
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
522
522
|
}
|
|
523
523
|
function Ee(e, t) {
|
|
@@ -546,11 +546,11 @@ function ke(e) {
|
|
|
546
546
|
continue;
|
|
547
547
|
}
|
|
548
548
|
let e = t;
|
|
549
|
-
if (
|
|
549
|
+
if (we.has(e.tagName)) {
|
|
550
550
|
e.remove();
|
|
551
551
|
continue;
|
|
552
552
|
}
|
|
553
|
-
if (ke(e), !
|
|
553
|
+
if (ke(e), !Ce.has(e.tagName)) {
|
|
554
554
|
e.replaceWith(...e.childNodes);
|
|
555
555
|
continue;
|
|
556
556
|
}
|
|
@@ -562,20 +562,30 @@ function Ae(e) {
|
|
|
562
562
|
}
|
|
563
563
|
function je(e) {
|
|
564
564
|
let t = e ?? "";
|
|
565
|
-
if (!/<\/?[a-z][\s\S]*?>/i.test(t)) return
|
|
565
|
+
if (!/<\/?[a-z][\s\S]*?>/i.test(t)) return Te(t).replace(/\n/g, "<br>");
|
|
566
566
|
let n = new DOMParser().parseFromString(t, "text/html");
|
|
567
567
|
return ke(n.body), n.body.innerHTML;
|
|
568
568
|
}
|
|
569
|
-
function Me(e) {
|
|
570
|
-
let
|
|
571
|
-
return
|
|
569
|
+
function Me(e, t) {
|
|
570
|
+
let n = e.created_by_data?.text?.trim();
|
|
571
|
+
return n ? {
|
|
572
|
+
...t,
|
|
573
|
+
name: n,
|
|
574
|
+
initials: Q(n) || t.initials
|
|
575
|
+
} : t;
|
|
576
|
+
}
|
|
577
|
+
function Ne(e) {
|
|
578
|
+
let t = Me(e, $);
|
|
579
|
+
if (t.name !== $.name) return t;
|
|
580
|
+
let n = e.created_by?.trim();
|
|
581
|
+
return n ? {
|
|
572
582
|
name: "Користувач",
|
|
573
|
-
initials:
|
|
574
|
-
} :
|
|
583
|
+
initials: n.slice(0, 2).toUpperCase()
|
|
584
|
+
} : $;
|
|
575
585
|
}
|
|
576
586
|
//#endregion
|
|
577
587
|
//#region shared/comments/ApplicationCommentsSection.vue?vue&type=script&setup=true&lang.ts
|
|
578
|
-
var
|
|
588
|
+
var Pe = /*@__PURE__*/ O({
|
|
579
589
|
__name: "ApplicationCommentsSection",
|
|
580
590
|
props: {
|
|
581
591
|
applicationId: {
|
|
@@ -605,30 +615,27 @@ var Ne = /*@__PURE__*/ O({
|
|
|
605
615
|
let n = [
|
|
606
616
|
"history",
|
|
607
617
|
"font_family",
|
|
608
|
-
"font_size",
|
|
609
|
-
"bold",
|
|
610
|
-
"italic",
|
|
611
|
-
"underline",
|
|
612
|
-
"strike",
|
|
613
|
-
"text_align",
|
|
614
618
|
"bullet_list",
|
|
615
619
|
"ordered_list",
|
|
616
620
|
"link",
|
|
617
|
-
"
|
|
618
|
-
"
|
|
621
|
+
"help",
|
|
622
|
+
"font_size",
|
|
623
|
+
"strike",
|
|
624
|
+
"text_align",
|
|
625
|
+
"italic"
|
|
619
626
|
], r = e, i = P([]), a = P({}), o = P(!0), s = P(""), c = P(""), l = P(!1), u = P(""), d = S(() => r.variant === "admin"), f = S(() => Ae(c.value) && !l.value), p = S(() => d.value ? "rounded-2xl border border-slate-200 bg-white shadow-[0_1px_2px_0_rgb(15_23_42/0.04),0_1px_3px_0_rgb(15_23_42/0.06)]" : "overflow-hidden rounded-2xl border border-gray-200 bg-white"), m = S(() => d.value ? "flex items-center gap-2.5 border-b border-slate-100 px-5 py-3.5" : "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3"), h = S(() => d.value ? "text-[15px] font-semibold text-slate-800" : "text-xs font-semibold uppercase tracking-wider text-gray-500"), g = S(() => (d.value, "flex flex-col gap-4 p-5"));
|
|
620
627
|
function _(e) {
|
|
621
|
-
return a.value[e.note_id] ?? r.resolveAuthor?.(e) ??
|
|
628
|
+
return Me(e, a.value[e.note_id] ?? r.resolveAuthor?.(e) ?? Ne(e));
|
|
622
629
|
}
|
|
623
|
-
async function v() {
|
|
630
|
+
async function v(e) {
|
|
624
631
|
if (r.applicationId) {
|
|
625
|
-
o.value = !0, s.value = "";
|
|
632
|
+
e?.silent || (o.value = !0), s.value = "";
|
|
626
633
|
try {
|
|
627
|
-
i.value = await
|
|
634
|
+
i.value = await be(r.resource, r.applicationId), a.value = {};
|
|
628
635
|
} catch (e) {
|
|
629
636
|
i.value = [], s.value = e instanceof Error ? e.message : "Не вдалося завантажити коментарі";
|
|
630
637
|
} finally {
|
|
631
|
-
o.value = !1;
|
|
638
|
+
e?.silent || (o.value = !1);
|
|
632
639
|
}
|
|
633
640
|
}
|
|
634
641
|
}
|
|
@@ -637,11 +644,7 @@ var Ne = /*@__PURE__*/ O({
|
|
|
637
644
|
if (Ae(e) && !l.value && r.applicationId) {
|
|
638
645
|
l.value = !0, u.value = "";
|
|
639
646
|
try {
|
|
640
|
-
|
|
641
|
-
a.value = {
|
|
642
|
-
...a.value,
|
|
643
|
-
[t.note_id]: r.currentAuthor
|
|
644
|
-
}, i.value = [...i.value, t].sort((e, t) => String(e.created_at ?? "").localeCompare(String(t.created_at ?? ""))), c.value = "";
|
|
647
|
+
await xe(r.resource, r.applicationId, e), c.value = "", await v({ silent: !0 });
|
|
645
648
|
} catch (e) {
|
|
646
649
|
u.value = e instanceof Error ? e.message : "Не вдалося надіслати коментар";
|
|
647
650
|
} finally {
|
|
@@ -692,26 +695,26 @@ var Ne = /*@__PURE__*/ O({
|
|
|
692
695
|
value: !0
|
|
693
696
|
}), b;
|
|
694
697
|
}
|
|
695
|
-
}),
|
|
698
|
+
}), Fe = {
|
|
696
699
|
key: 1,
|
|
697
700
|
class: "text-center text-sm text-red-600"
|
|
698
|
-
},
|
|
701
|
+
}, Ie = {
|
|
699
702
|
key: 1,
|
|
700
703
|
class: "flex flex-col gap-4"
|
|
701
|
-
},
|
|
704
|
+
}, Le = { class: "min-w-0 flex-1" }, Re = { class: "flex flex-wrap items-baseline justify-between gap-x-2" }, ze = { class: "text-[14px] font-semibold text-slate-800" }, Be = { class: "text-xs text-slate-400" }, Ve = {
|
|
702
705
|
key: 0,
|
|
703
706
|
class: "mb-1.5 text-xs font-medium text-[#1f5ae0]"
|
|
704
|
-
},
|
|
707
|
+
}, He = ["innerHTML"], Ue = {
|
|
705
708
|
key: 1,
|
|
706
709
|
class: "rounded-xl bg-gray-50 px-4 py-3"
|
|
707
|
-
},
|
|
710
|
+
}, We = { class: "mb-1 flex items-center justify-between gap-2" }, Ge = { class: "text-xs font-semibold text-gray-800" }, Ke = { class: "text-xs text-gray-400" }, qe = {
|
|
708
711
|
key: 0,
|
|
709
712
|
class: "mb-1 text-xs font-medium text-[#2663EB]"
|
|
710
|
-
},
|
|
713
|
+
}, Je = ["innerHTML"], Ye = { class: "min-w-0 flex-1" }, Xe = { class: "!h-full relative overflow-hidden" }, Ze = { class: "mt-2 flex justify-end" }, Qe = ["disabled", "aria-label"], $e = { key: 0 }, et = {
|
|
711
714
|
key: 2,
|
|
712
715
|
class: "text-xs text-red-600"
|
|
713
716
|
};
|
|
714
|
-
function
|
|
717
|
+
function tt(e, t, n, r, i, a) {
|
|
715
718
|
return N(), T("section", { class: A(r.sectionClass) }, [E("header", { class: A(r.headerClass) }, [D(r.MessageSquare, {
|
|
716
719
|
class: A(["shrink-0", r.isAdmin ? "h-[18px] w-[18px] text-[#1f5ae0]" : "h-3.5 w-3.5 text-gray-400"]),
|
|
717
720
|
"stroke-width": 2,
|
|
@@ -719,29 +722,29 @@ function et(e, t, n, r, i, a) {
|
|
|
719
722
|
}, null, 8, ["class"]), E("h2", { class: A(r.titleClass) }, "Коментарі", 2)], 2), E("div", { class: A(r.bodyClass) }, [r.loading ? (N(), T("p", {
|
|
720
723
|
key: 0,
|
|
721
724
|
class: A(["text-center text-sm", r.isAdmin ? "text-slate-400" : "text-gray-400"])
|
|
722
|
-
}, " Завантаження… ", 2)) : r.loadError ? (N(), T("p",
|
|
725
|
+
}, " Завантаження… ", 2)) : r.loadError ? (N(), T("p", Fe, I(r.loadError), 1)) : (N(), T(x, { key: 2 }, [
|
|
723
726
|
r.notes.length === 0 ? (N(), T("p", {
|
|
724
727
|
key: 0,
|
|
725
728
|
class: A(["text-center text-sm italic", r.isAdmin ? "py-2 text-slate-400" : "py-4 text-gray-400"])
|
|
726
|
-
}, " Коментарів ще немає ", 2)) : (N(), T("ul",
|
|
729
|
+
}, " Коментарів ще немає ", 2)) : (N(), T("ul", Ie, [(N(!0), T(x, null, F(r.notes, (e) => (N(), T("li", {
|
|
727
730
|
key: e.note_id,
|
|
728
731
|
class: "flex gap-3"
|
|
729
|
-
}, [E("div", { class: A(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-[13px] font-semibold", r.isAdmin ? "bg-[#d9eaff] text-[#1a46b8]" : "bg-[#2663EB] text-white text-xs"]) }, I(r.authorFor(e).initials), 3), E("div",
|
|
730
|
-
E("div",
|
|
731
|
-
r.authorFor(e).role ? (N(), T("p",
|
|
732
|
+
}, [E("div", { class: A(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-[13px] font-semibold", r.isAdmin ? "bg-[#d9eaff] text-[#1a46b8]" : "bg-[#2663EB] text-white text-xs"]) }, I(r.authorFor(e).initials), 3), E("div", Le, [r.isAdmin ? (N(), T(x, { key: 0 }, [
|
|
733
|
+
E("div", Re, [E("span", ze, I(r.authorFor(e).name), 1), E("time", Be, I(r.formatNoteDateTime(e.created_at)), 1)]),
|
|
734
|
+
r.authorFor(e).role ? (N(), T("p", Ve, I(r.authorFor(e).role), 1)) : w("", !0),
|
|
732
735
|
E("div", {
|
|
733
736
|
class: "comment-body comment-body--admin text-[13px] leading-relaxed text-slate-600",
|
|
734
737
|
innerHTML: r.noteBodyHtml(e.body)
|
|
735
|
-
}, null, 8,
|
|
736
|
-
], 64)) : (N(), T("div",
|
|
737
|
-
E("div",
|
|
738
|
-
r.authorFor(e).role ? (N(), T("p",
|
|
738
|
+
}, null, 8, He)
|
|
739
|
+
], 64)) : (N(), T("div", Ue, [
|
|
740
|
+
E("div", We, [E("span", Ge, I(r.authorFor(e).name), 1), E("time", Ke, I(r.formatNoteDateTime(e.created_at)), 1)]),
|
|
741
|
+
r.authorFor(e).role ? (N(), T("p", qe, I(r.authorFor(e).role), 1)) : w("", !0),
|
|
739
742
|
E("div", {
|
|
740
743
|
class: "comment-body text-sm text-gray-700",
|
|
741
744
|
innerHTML: r.noteBodyHtml(e.body)
|
|
742
|
-
}, null, 8,
|
|
745
|
+
}, null, 8, Je)
|
|
743
746
|
]))])]))), 128))])),
|
|
744
|
-
E("div", { class: A(["flex items-start gap-3 border-t pt-4", r.isAdmin ? "border-slate-100" : "border-gray-100"]) }, [E("div", { class: A(["mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-xs font-semibold", r.isAdmin ? "bg-[#d9eaff] text-[#1a46b8]" : "bg-[#2663EB] text-white"]) }, I(n.currentAuthor.initials), 3), E("div",
|
|
747
|
+
E("div", { class: A(["flex items-start gap-3 border-t pt-4", r.isAdmin ? "border-slate-100" : "border-gray-100"]) }, [E("div", { class: A(["mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-xs font-semibold", r.isAdmin ? "bg-[#d9eaff] text-[#1a46b8]" : "bg-[#2663EB] text-white"]) }, I(n.currentAuthor.initials), 3), E("div", Ye, [E("div", Xe, [D(r.VsInputRichtext, {
|
|
745
748
|
modelValue: r.draft,
|
|
746
749
|
"onUpdate:modelValue": t[0] ||= (e) => r.draft = e,
|
|
747
750
|
disabled: r.sending,
|
|
@@ -755,7 +758,7 @@ function et(e, t, n, r, i, a) {
|
|
|
755
758
|
"disabled",
|
|
756
759
|
"placeholder",
|
|
757
760
|
"richtext-props"
|
|
758
|
-
])]), E("div",
|
|
761
|
+
])]), E("div", Ze, [E("button", {
|
|
759
762
|
type: "button",
|
|
760
763
|
disabled: !r.canSend,
|
|
761
764
|
onClick: r.submit,
|
|
@@ -764,15 +767,15 @@ function et(e, t, n, r, i, a) {
|
|
|
764
767
|
}, [D(r.Send, {
|
|
765
768
|
class: "h-3.5 w-3.5",
|
|
766
769
|
"stroke-width": 2
|
|
767
|
-
}), r.isAdmin ? (N(), T("span",
|
|
768
|
-
r.sendError ? (N(), T("p",
|
|
770
|
+
}), r.isAdmin ? (N(), T("span", $e, I(r.sending ? "Надсилання…" : "Надіслати"), 1)) : w("", !0)], 10, Qe)])])], 2),
|
|
771
|
+
r.sendError ? (N(), T("p", et, I(r.sendError), 1)) : w("", !0)
|
|
769
772
|
], 64))], 2)], 2);
|
|
770
773
|
}
|
|
771
|
-
var
|
|
772
|
-
["render",
|
|
774
|
+
var nt = /*#__PURE__*/ e(Pe, [
|
|
775
|
+
["render", tt],
|
|
773
776
|
["__scopeId", "data-v-0f2a55e0"],
|
|
774
777
|
["__file", "C:/softpro/surveyor/shared/comments/ApplicationCommentsSection.vue"]
|
|
775
|
-
]),
|
|
778
|
+
]), rt = /*@__PURE__*/ O({
|
|
776
779
|
__name: "ApplicationHistorySection",
|
|
777
780
|
props: {
|
|
778
781
|
items: {
|
|
@@ -827,11 +830,11 @@ var tt = /*#__PURE__*/ e(Ne, [
|
|
|
827
830
|
value: !0
|
|
828
831
|
}), m;
|
|
829
832
|
}
|
|
830
|
-
}),
|
|
833
|
+
}), it = {
|
|
831
834
|
key: 0,
|
|
832
835
|
class: "relative list-none"
|
|
833
|
-
},
|
|
834
|
-
function
|
|
836
|
+
}, at = { class: "relative z-10 mt-1 shrink-0" }, ot = { class: "min-w-0 flex-1" }, st = { class: "flex flex-wrap items-baseline justify-between gap-x-2 gap-y-1" };
|
|
837
|
+
function ct(e, t, n, r, i, a) {
|
|
835
838
|
return N(), T("section", { class: A(r.sectionClass) }, [E("header", { class: A(r.headerClass) }, [D(r.History, {
|
|
836
839
|
class: A(["shrink-0", r.isAdmin ? "h-[18px] w-[18px] text-[#1f5ae0]" : "h-3.5 w-3.5 text-gray-400"]),
|
|
837
840
|
"stroke-width": 2,
|
|
@@ -843,11 +846,11 @@ function st(e, t, n, r, i, a) {
|
|
|
843
846
|
}, [E("span", null, I(r.open ? "Згорнути" : `Розгорнути (${r.events.length} подій)`), 1), D(r.ChevronDown, {
|
|
844
847
|
class: A(["h-4 w-4 transition-transform", r.open ? "" : "rotate-180"]),
|
|
845
848
|
"aria-hidden": "true"
|
|
846
|
-
}, null, 8, ["class"])], 2), r.open && r.events.length ? (N(), T("ol",
|
|
849
|
+
}, null, 8, ["class"])], 2), r.open && r.events.length ? (N(), T("ol", it, [t[1] ||= E("div", { class: "absolute bottom-2 left-[7px] top-2 w-px bg-slate-200" }, null, -1), (N(!0), T(x, null, F(r.events, (e, t) => (N(), T("li", {
|
|
847
850
|
key: e.history_id,
|
|
848
851
|
class: "relative flex gap-4 pb-6 last:pb-0"
|
|
849
|
-
}, [E("div",
|
|
850
|
-
E("div",
|
|
852
|
+
}, [E("div", at, [E("span", { class: A(["block h-[15px] w-[15px] rounded-full border-2 border-white", t === r.events.length - 1 ? "bg-[#3479f6]" : "bg-slate-300"]) }, null, 2)]), E("div", ot, [
|
|
853
|
+
E("div", st, [E("p", { class: A(["text-[14px] font-semibold", r.isAdmin ? "text-slate-800" : "text-gray-900"]) }, I(r.historyTitle(e)), 3), E("time", { class: A(["text-xs", r.isAdmin ? "text-slate-400" : "text-gray-400"]) }, I(r.formatDateTime(e.created_at) || "—"), 3)]),
|
|
851
854
|
e.reason ? (N(), T("p", {
|
|
852
855
|
key: 0,
|
|
853
856
|
class: A(["mt-1 text-[13px] leading-relaxed", r.isAdmin ? "text-slate-600" : "text-gray-600"])
|
|
@@ -858,10 +861,10 @@ function st(e, t, n, r, i, a) {
|
|
|
858
861
|
class: A(["text-sm", r.isAdmin ? "text-slate-400" : "text-gray-400"])
|
|
859
862
|
}, " Історія відсутня. ", 2))], 2)], 2);
|
|
860
863
|
}
|
|
861
|
-
var
|
|
864
|
+
var lt = /*#__PURE__*/ e(rt, [["render", ct], ["__file", "C:/softpro/surveyor/shared/history/ApplicationHistorySection.vue"]]);
|
|
862
865
|
//#endregion
|
|
863
866
|
//#region shared/export/downloadAttachmentFilename.ts
|
|
864
|
-
function
|
|
867
|
+
function ut(e, t) {
|
|
865
868
|
let n = e.match(/filename\*?=(?:UTF-8''|")?([^";]+)/i)?.[1]?.replace(/"/g, "") ?? t;
|
|
866
869
|
try {
|
|
867
870
|
return decodeURIComponent(n);
|
|
@@ -871,7 +874,7 @@ function lt(e, t) {
|
|
|
871
874
|
}
|
|
872
875
|
//#endregion
|
|
873
876
|
//#region shared/export/CrsSuggestionSelect.vue?vue&type=script&setup=true&lang.ts
|
|
874
|
-
var
|
|
877
|
+
var dt = /*@__PURE__*/ O({
|
|
875
878
|
__name: "CrsSuggestionSelect",
|
|
876
879
|
props: {
|
|
877
880
|
modelValue: {
|
|
@@ -986,18 +989,18 @@ var ut = /*@__PURE__*/ O({
|
|
|
986
989
|
value: !0
|
|
987
990
|
}), w;
|
|
988
991
|
}
|
|
989
|
-
}),
|
|
992
|
+
}), ft = {
|
|
990
993
|
ref: "rootRef",
|
|
991
994
|
class: "relative"
|
|
992
|
-
},
|
|
995
|
+
}, pt = ["disabled"], mt = { class: "border-b border-slate-100 p-2" }, ht = { class: "max-h-48 overflow-y-auto" }, gt = {
|
|
993
996
|
key: 0,
|
|
994
997
|
class: "px-3 py-3 text-center text-xs text-slate-400"
|
|
995
|
-
},
|
|
998
|
+
}, _t = {
|
|
996
999
|
key: 1,
|
|
997
1000
|
class: "px-3 py-3 text-center text-xs text-slate-400"
|
|
998
|
-
},
|
|
999
|
-
function
|
|
1000
|
-
return N(), T("div", null, [E("label", { class: A(["mb-1 block text-xs font-medium", n.variant === "cabinet" ? "text-gray-700" : "text-slate-500"]) }, I(n.label), 3), E("div",
|
|
1001
|
+
}, vt = ["onClick"];
|
|
1002
|
+
function yt(e, t, n, r, i, a) {
|
|
1003
|
+
return N(), T("div", null, [E("label", { class: A(["mb-1 block text-xs font-medium", n.variant === "cabinet" ? "text-gray-700" : "text-slate-500"]) }, I(n.label), 3), E("div", ft, [E("button", {
|
|
1001
1004
|
type: "button",
|
|
1002
1005
|
disabled: n.disabled,
|
|
1003
1006
|
class: A(["flex w-full items-center justify-between rounded-lg border px-3 py-2 text-left text-sm shadow-sm transition-all disabled:cursor-not-allowed disabled:bg-slate-50 disabled:text-slate-400", n.disabled ? "border-slate-200" : r.open ? r.triggerOpenClass : r.triggerIdleClass]),
|
|
@@ -1009,36 +1012,36 @@ function vt(e, t, n, r, i, a) {
|
|
|
1009
1012
|
stroke: "currentColor",
|
|
1010
1013
|
"stroke-width": "2",
|
|
1011
1014
|
"aria-hidden": "true"
|
|
1012
|
-
}, [...t[2] ||= [E("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 10,
|
|
1015
|
+
}, [...t[2] ||= [E("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 2))], 10, pt), D(r.SurveyorTeleport, null, {
|
|
1013
1016
|
default: z(() => [r.open ? (N(), T("div", {
|
|
1014
1017
|
key: 0,
|
|
1015
1018
|
ref: "panelRef",
|
|
1016
1019
|
class: "fixed z-[100] overflow-hidden rounded-lg border border-slate-200 bg-white shadow-lg",
|
|
1017
1020
|
style: j(r.dropdownStyle),
|
|
1018
1021
|
onMousedown: t[1] ||= V(() => {}, ["stop"])
|
|
1019
|
-
}, [E("div",
|
|
1022
|
+
}, [E("div", mt, [B(E("input", {
|
|
1020
1023
|
ref: "inputRef",
|
|
1021
1024
|
"onUpdate:modelValue": t[0] ||= (e) => r.query = e,
|
|
1022
1025
|
type: "text",
|
|
1023
1026
|
placeholder: "Пошук…",
|
|
1024
1027
|
class: "w-full rounded-md border border-slate-200 px-3 py-1.5 text-xs outline-none focus:border-[#8ec1ff] focus:ring-2 focus:ring-[#d9eaff]"
|
|
1025
|
-
}, null, 512), [[ae, r.query]])]), E("div",
|
|
1028
|
+
}, null, 512), [[ae, r.query]])]), E("div", ht, [n.loading && r.filtered.length === 0 ? (N(), T("p", gt, " Завантаження… ")) : r.filtered.length === 0 ? (N(), T("p", _t, " Нічого не знайдено ")) : w("", !0), (N(!0), T(x, null, F(r.filtered, (e) => (N(), T("button", {
|
|
1026
1029
|
key: e.id,
|
|
1027
1030
|
type: "button",
|
|
1028
1031
|
class: A(["w-full px-3 py-2 text-left text-sm transition-colors hover:bg-slate-50", n.modelValue === e.id ? r.selectedOptionClass : "text-slate-700"]),
|
|
1029
1032
|
onClick: (t) => r.select(e)
|
|
1030
|
-
}, I(e.text), 11,
|
|
1033
|
+
}, I(e.text), 11, vt))), 128))])], 36)) : w("", !0)]),
|
|
1031
1034
|
_: 1
|
|
1032
1035
|
})], 512)]);
|
|
1033
1036
|
}
|
|
1034
|
-
var
|
|
1037
|
+
var bt = /*#__PURE__*/ e(dt, [["render", yt], ["__file", "C:/softpro/surveyor/shared/export/CrsSuggestionSelect.vue"]]);
|
|
1035
1038
|
//#endregion
|
|
1036
1039
|
//#region shared/export/crsUtils.ts
|
|
1037
|
-
function
|
|
1040
|
+
function xt(e) {
|
|
1038
1041
|
let t = e.trim(), n = t.match(/^EPSG:(\d+)$/i);
|
|
1039
1042
|
return n ? n[1] : t;
|
|
1040
1043
|
}
|
|
1041
|
-
function
|
|
1044
|
+
function St(e) {
|
|
1042
1045
|
let t = e.trim();
|
|
1043
1046
|
if (/^EPSG:/i.test(t)) {
|
|
1044
1047
|
let e = t.match(/^EPSG:(\d+)$/i);
|
|
@@ -1048,7 +1051,7 @@ function xt(e) {
|
|
|
1048
1051
|
}
|
|
1049
1052
|
//#endregion
|
|
1050
1053
|
//#region shared/export/loadCrsSuggest.ts
|
|
1051
|
-
function
|
|
1054
|
+
function Ct(e, t = (e, t) => e || `HTTP ${t}`) {
|
|
1052
1055
|
let n = 0;
|
|
1053
1056
|
function r() {
|
|
1054
1057
|
n += 1;
|
|
@@ -1074,8 +1077,8 @@ function St(e, t = (e, t) => e || `HTTP ${t}`) {
|
|
|
1074
1077
|
}
|
|
1075
1078
|
//#endregion
|
|
1076
1079
|
//#region shared/export/downloadApplicationGeometry.ts
|
|
1077
|
-
async function
|
|
1078
|
-
let r = new URLSearchParams({ srid:
|
|
1080
|
+
async function wt(e, t, n) {
|
|
1081
|
+
let r = new URLSearchParams({ srid: xt(n) }), i = await fetch(e(`/api/surveyor/applications/${encodeURIComponent(t)}/export/geometry?${r}`), { credentials: "include" });
|
|
1079
1082
|
if (!i.ok) {
|
|
1080
1083
|
let e = await i.text(), t = e || `HTTP ${i.status}`;
|
|
1081
1084
|
try {
|
|
@@ -1084,12 +1087,12 @@ async function Ct(e, t, n) {
|
|
|
1084
1087
|
} catch {}
|
|
1085
1088
|
throw Error(t);
|
|
1086
1089
|
}
|
|
1087
|
-
let a = await i.blob(), o =
|
|
1090
|
+
let a = await i.blob(), o = ut(i.headers.get("Content-Disposition") ?? "", `boundary_${t}.geojson`), s = URL.createObjectURL(a), c = document.createElement("a");
|
|
1088
1091
|
c.href = s, c.download = o, c.click(), URL.revokeObjectURL(s);
|
|
1089
1092
|
}
|
|
1090
1093
|
//#endregion
|
|
1091
1094
|
//#region shared/export/ApplicationGeometryExportModal.vue?vue&type=script&setup=true&lang.ts
|
|
1092
|
-
var
|
|
1095
|
+
var Tt = /*@__PURE__*/ O({
|
|
1093
1096
|
__name: "ApplicationGeometryExportModal",
|
|
1094
1097
|
props: /*@__PURE__*/ k({
|
|
1095
1098
|
applicationId: {
|
|
@@ -1119,7 +1122,7 @@ var wt = /*@__PURE__*/ O({
|
|
|
1119
1122
|
emits: ["update:modelValue"],
|
|
1120
1123
|
setup(e, { expose: n }) {
|
|
1121
1124
|
n();
|
|
1122
|
-
let r = e, i = L(e, "modelValue"), a = P(""), o = P(""), s = P(!1), c = P(""), l = P(!1), u = P([]), d =
|
|
1125
|
+
let r = e, i = L(e, "modelValue"), a = P(""), o = P(""), s = P(!1), c = P(""), l = P(!1), u = P([]), d = Ct((e) => r.buildUrl(e), (e, t) => (r.errorMessage ?? ((e, t) => e || `HTTP ${t}`))(e, t));
|
|
1123
1126
|
function f() {
|
|
1124
1127
|
d.invalidateInFlight(), a.value = "", o.value = "", u.value = [], c.value = "", s.value = !1;
|
|
1125
1128
|
}
|
|
@@ -1148,7 +1151,7 @@ var wt = /*@__PURE__*/ O({
|
|
|
1148
1151
|
}
|
|
1149
1152
|
s.value = !0;
|
|
1150
1153
|
try {
|
|
1151
|
-
await
|
|
1154
|
+
await wt(r.buildUrl, r.applicationId, e), i.value = !1;
|
|
1152
1155
|
} catch (e) {
|
|
1153
1156
|
c.value = e instanceof Error ? e.message : "Не вдалося експортувати межі заявки";
|
|
1154
1157
|
} finally {
|
|
@@ -1175,15 +1178,15 @@ var wt = /*@__PURE__*/ O({
|
|
|
1175
1178
|
shellClass: r.variant === "cabinet" ? "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4 backdrop-blur-sm" : "fixed inset-0 z-50 flex items-center justify-center bg-slate-900/40 p-4",
|
|
1176
1179
|
panelClass: r.variant === "cabinet" ? "w-full max-w-md overflow-hidden rounded-2xl bg-white shadow-2xl" : "flex max-h-[90vh] w-full max-w-md flex-col overflow-hidden rounded-2xl bg-white shadow-xl",
|
|
1177
1180
|
SurveyorTeleport: t,
|
|
1178
|
-
CrsSuggestionSelect:
|
|
1181
|
+
CrsSuggestionSelect: bt
|
|
1179
1182
|
};
|
|
1180
1183
|
return Object.defineProperty(g, "__isScriptSetup", {
|
|
1181
1184
|
enumerable: !1,
|
|
1182
1185
|
value: !0
|
|
1183
1186
|
}), g;
|
|
1184
1187
|
}
|
|
1185
|
-
}),
|
|
1186
|
-
function
|
|
1188
|
+
}), Et = ["disabled"], Dt = ["disabled"];
|
|
1189
|
+
function Ot(e, t, n, r, i, a) {
|
|
1187
1190
|
return N(), C(r.SurveyorTeleport, null, {
|
|
1188
1191
|
default: z(() => [r.open ? (N(), T("div", {
|
|
1189
1192
|
key: 0,
|
|
@@ -1230,16 +1233,16 @@ function Dt(e, t, n, r, i, a) {
|
|
|
1230
1233
|
class: A(["px-4 py-2 text-sm text-slate-600 transition-colors hover:bg-slate-100", n.variant === "cabinet" ? "rounded-xl bg-gray-100 py-2.5 font-medium text-gray-600 hover:bg-gray-200" : "rounded-lg"]),
|
|
1231
1234
|
disabled: r.busy,
|
|
1232
1235
|
onClick: r.cancel
|
|
1233
|
-
}, " Скасувати ", 10,
|
|
1236
|
+
}, " Скасувати ", 10, Et), E("button", {
|
|
1234
1237
|
type: "button",
|
|
1235
1238
|
class: A(["px-4 py-2 text-sm font-semibold text-white disabled:opacity-50", n.variant === "cabinet" ? "rounded-xl bg-[#2663EB] py-2.5 font-medium hover:bg-[#1d52cc] disabled:cursor-not-allowed disabled:opacity-40" : "rounded-lg bg-[#1f5ae0] hover:bg-[#1a46b8]"]),
|
|
1236
1239
|
disabled: r.busy || r.optionsLoading || !r.srid,
|
|
1237
1240
|
onClick: r.submit
|
|
1238
|
-
}, I(r.busy ? "Експорт…" : "Експортувати"), 11,
|
|
1241
|
+
}, I(r.busy ? "Експорт…" : "Експортувати"), 11, Dt)], 2)
|
|
1239
1242
|
], 2)], 34)) : w("", !0)]),
|
|
1240
1243
|
_: 1
|
|
1241
1244
|
});
|
|
1242
1245
|
}
|
|
1243
|
-
var
|
|
1246
|
+
var kt = /*#__PURE__*/ e(Tt, [["render", Ot], ["__file", "C:/softpro/surveyor/shared/export/ApplicationGeometryExportModal.vue"]]);
|
|
1244
1247
|
//#endregion
|
|
1245
|
-
export {
|
|
1248
|
+
export { ut as a, Q as c, bt as i, $ as l, Ct as n, lt as o, St as r, nt as s, kt as t, ye as u };
|
|
@@ -6,7 +6,7 @@ import { t as u } from "./BaseModal-BJxKuONh.js";
|
|
|
6
6
|
import { t as d } from "./RegistryForm-Dpis_ncj.js";
|
|
7
7
|
import { r as f, t as p } from "./AppealStatusBadge-DzMn4RVy.js";
|
|
8
8
|
import { r as m } from "./geometry-DyhIVRcw.js";
|
|
9
|
-
import { a as h, c as g, i as _, l as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./ApplicationGeometryExportModal-
|
|
9
|
+
import { a as h, c as g, i as _, l as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./ApplicationGeometryExportModal-DhKC31To.js";
|
|
10
10
|
import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as j, createVNode as M, defineComponent as N, mergeModels as P, normalizeClass as F, openBlock as I, ref as L, renderList as R, toDisplayString as z, useModel as B, vModelRadio as V, vModelSelect as H, vModelText as U, watch as W, withCtx as G, withDirectives as K } from "vue";
|
|
11
11
|
import { RouterLink as ee, useRoute as te, useRouter as ne } from "vue-router";
|
|
12
12
|
import { notify as re } from "@opengis/core";
|
|
@@ -3,7 +3,7 @@ import { a as t, t as n } from "./surveyor-CDkI2Dcp.js";
|
|
|
3
3
|
import { i as r, r as i } from "./profile-aXlo4qqA.js";
|
|
4
4
|
import { t as a } from "./AppIcon-CO70tpMX.js";
|
|
5
5
|
import { r as o } from "./geometry-DyhIVRcw.js";
|
|
6
|
-
import { c as s, l as c, o as ee, s as te, t as ne, u as re } from "./ApplicationGeometryExportModal-
|
|
6
|
+
import { c as s, l as c, o as ee, s as te, t as ne, u as re } from "./ApplicationGeometryExportModal-DhKC31To.js";
|
|
7
7
|
import { t as ie } from "./FormFilePicker-DxPQlxgy.js";
|
|
8
8
|
import { n as l, t as ae } from "./AppealStatusBadge-BlAaNUSK.js";
|
|
9
9
|
import { i as oe, t as u } from "./applications-B6GAxopO.js";
|
package/dist/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@keyframes slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}.map-switch-track{transition:background-color .3s cubic-bezier(.4,0,.2,1)}.map-switch-knob{transition:left .3s cubic-bezier(.4,0,.2,1)}
|
|
1
|
+
@keyframes slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}.map-switch-track{transition:background-color .3s cubic-bezier(.4,0,.2,1)}.map-switch-knob{transition:left .3s cubic-bezier(.4,0,.2,1)}[data-v-ea235a7a] .maplibregl-canvas{outline:none}.fade-enter-active[data-v-637bdb40],.fade-leave-active[data-v-637bdb40]{transition:opacity .15s}.fade-enter-from[data-v-637bdb40],.fade-leave-to[data-v-637bdb40]{opacity:0}.pop-enter-active[data-v-637bdb40]{transition:all .15s}.pop-enter-from[data-v-637bdb40]{opacity:0;transform:scale(.97)translateY(4px)}[data-v-ded53fc4] .maplibregl-canvas{width:100%!important;height:100%!important}[data-v-ded53fc4] .appeal-map-pin{cursor:default;filter:drop-shadow(0 2px 4px #0f172a40);width:28px;height:36px}.comment-body[data-v-0f2a55e0]{word-break:break-word;line-height:1.55}.comment-body[data-v-0f2a55e0] p{margin:0}.comment-body[data-v-0f2a55e0] p+p,.comment-body[data-v-0f2a55e0] ul,.comment-body[data-v-0f2a55e0] ol,.comment-body[data-v-0f2a55e0] blockquote,.comment-body[data-v-0f2a55e0] pre{margin-top:.5em}.comment-body[data-v-0f2a55e0] ul,.comment-body[data-v-0f2a55e0] ol{margin-bottom:.25em;padding-left:1.35rem}.comment-body[data-v-0f2a55e0] ul{list-style:outside}.comment-body[data-v-0f2a55e0] ol{list-style:decimal}.comment-body[data-v-0f2a55e0] li{margin:.15em 0}.comment-body[data-v-0f2a55e0] li>p{margin:0}.comment-body[data-v-0f2a55e0] strong,.comment-body[data-v-0f2a55e0] b{font-weight:600}.comment-body[data-v-0f2a55e0] em,.comment-body[data-v-0f2a55e0] i{font-style:italic}.comment-body[data-v-0f2a55e0] u{text-decoration:underline}.comment-body[data-v-0f2a55e0] s,.comment-body[data-v-0f2a55e0] del{text-decoration:line-through}.comment-body[data-v-0f2a55e0] a{text-decoration:underline}.comment-body--admin[data-v-0f2a55e0] a{color:#2563eb}.comment-body[data-v-0f2a55e0]:not(.comment-body--admin) a{color:#2663eb}.comment-body[data-v-0f2a55e0] blockquote{color:#64748b;border-left:3px solid #cbd5e1;padding-left:.75rem;font-style:italic}.comment-body[data-v-0f2a55e0] code{background:#f1f5f9;border-radius:.25rem;padding:.1em .35em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.92em}.comment-body[data-v-0f2a55e0] pre{white-space:pre-wrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:.5rem;padding:.65rem .75rem;overflow-x:auto}.comment-body[data-v-0f2a55e0] img{border-radius:.375rem;max-width:100%;height:auto}.comment-body[data-v-0f2a55e0] span[style*="color: rgb(0, 0, 0)"],.comment-body[data-v-0f2a55e0] span[style*="color:#000"],.comment-body[data-v-0f2a55e0] span[style*="color: #000"]{color:inherit!important}.map-frame[data-v-c52d7431]{position:relative}.map-host[data-v-c52d7431]{z-index:0;position:relative}.map-tools[data-v-c52d7431]{z-index:20;pointer-events:none;flex-direction:column;gap:4px;display:flex;position:absolute;top:10px;left:10px}.map-tools__group[data-v-c52d7431]{pointer-events:auto;background-color:#fff;border:1px solid #e2e8f0;border-radius:6px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 1px 2px #0f172a0f,0 1px 3px #0f172a14}.map-tools__btn[data-v-c52d7431]{color:#475569;cursor:pointer;background-color:#fff;border:0;justify-content:center;align-items:center;width:28px;height:28px;padding:0;display:flex}.map-tools__btn[data-v-c52d7431] svg{width:14px;height:14px}.map-tools__btn[data-v-c52d7431]:hover:not(:disabled){color:#1f5ae0;background-color:#eef6ff!important}.map-tools__btn[data-v-c52d7431]:disabled{cursor:not-allowed;opacity:.4}.map-tools__btn--active[data-v-c52d7431],.map-tools__btn--active[data-v-c52d7431]:hover:not(:disabled){color:#fff!important;background-color:#2663eb!important}.map-tools__rule[data-v-c52d7431]{background:#f1f5f9;height:1px}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/index.js
CHANGED
|
@@ -49,16 +49,12 @@ function z(e, t, n, r, i, a) {
|
|
|
49
49
|
}, null, 8, R)), n.card ? (O(), v("div", {
|
|
50
50
|
key: 1,
|
|
51
51
|
class: T(["w-full rounded-xl bg-white p-4 shadow-sm sm:p-5", n.fill ? "min-h-0 flex-1" : ""])
|
|
52
|
-
}, [A(e.$slots, "default"
|
|
52
|
+
}, [A(e.$slots, "default")], 2)) : (O(), v("div", {
|
|
53
53
|
key: 2,
|
|
54
54
|
class: T(["min-h-0 w-full flex-1 flex flex-col", n.fill ? "h-full min-h-0" : ""])
|
|
55
|
-
}, [A(e.$slots, "default"
|
|
55
|
+
}, [A(e.$slots, "default")], 2))], 10, L);
|
|
56
56
|
}
|
|
57
|
-
var B = /*#__PURE__*/ r(I, [
|
|
58
|
-
["render", z],
|
|
59
|
-
["__scopeId", "data-v-ee198999"],
|
|
60
|
-
["__file", "C:/softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]
|
|
61
|
-
]), V = /*@__PURE__*/ C({
|
|
57
|
+
var B = /*#__PURE__*/ r(I, [["render", z], ["__file", "C:/softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]]), V = /*@__PURE__*/ C({
|
|
62
58
|
__name: "Map",
|
|
63
59
|
setup(e, { expose: t }) {
|
|
64
60
|
t();
|
|
@@ -140,7 +136,7 @@ var K = /*#__PURE__*/ r(W, [["render", G], ["__file", "C:/softpro/surveyor/src/w
|
|
|
140
136
|
t();
|
|
141
137
|
let n = {
|
|
142
138
|
Index: S(() => import("./chunks/requests-B9Ejt4av.js")),
|
|
143
|
-
Card: S(() => import("./chunks/card-
|
|
139
|
+
Card: S(() => import("./chunks/card-BP2byleo.js")),
|
|
144
140
|
BaseEntityWrapper: K,
|
|
145
141
|
SurveyorEmbedShell: B
|
|
146
142
|
};
|
|
@@ -281,7 +277,7 @@ var Se = /*#__PURE__*/ r(be, [["render", xe], ["__file", "C:/softpro/surveyor/sr
|
|
|
281
277
|
let n = {
|
|
282
278
|
Index: S(() => import("./chunks/requests-D1ix8U5f.js")),
|
|
283
279
|
Create: S(() => import("./chunks/create-DQPxIZMW.js")),
|
|
284
|
-
Card: S(() => import("./chunks/card-
|
|
280
|
+
Card: S(() => import("./chunks/card-DuGbROGY.js")),
|
|
285
281
|
BaseEntityWrapper: K,
|
|
286
282
|
SurveyorEmbedShell: B
|
|
287
283
|
};
|
|
@@ -693,7 +689,7 @@ var X = [
|
|
|
693
689
|
{
|
|
694
690
|
path: "requests/:number",
|
|
695
691
|
name: "request-detail",
|
|
696
|
-
component: () => import("./chunks/card-
|
|
692
|
+
component: () => import("./chunks/card-DuGbROGY.js"),
|
|
697
693
|
meta: {
|
|
698
694
|
title: "Звернення",
|
|
699
695
|
section: "requests"
|
|
@@ -1,15 +1,30 @@
|
|
|
1
|
-
-- Shared lookup for actions performed by administrators and surveyors.
|
|
2
|
-
-- Actor IDs must identify the same person unambiguously across both tables.
|
|
3
1
|
CREATE OR REPLACE VIEW surveyor.actor_lookup AS
|
|
4
|
-
SELECT
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
SELECT
|
|
3
|
+
users.uid AS actor_id,
|
|
4
|
+
COALESCE(
|
|
5
|
+
NULLIF(
|
|
6
|
+
TRIM(CONCAT_WS(' ',
|
|
7
|
+
users.last_name,
|
|
8
|
+
users.first_name,
|
|
9
|
+
users.middle_name
|
|
10
|
+
)),
|
|
11
|
+
''
|
|
12
|
+
),
|
|
13
|
+
users.login
|
|
14
|
+
) AS actor_text
|
|
15
|
+
FROM admin.users AS users
|
|
7
16
|
UNION ALL
|
|
8
|
-
|
|
9
17
|
SELECT
|
|
10
|
-
surveyor_id AS actor_id,
|
|
18
|
+
surveyors.surveyor_id AS actor_id,
|
|
11
19
|
COALESCE(
|
|
12
|
-
NULLIF(
|
|
13
|
-
|
|
20
|
+
NULLIF(
|
|
21
|
+
TRIM(CONCAT_WS(' ',
|
|
22
|
+
surveyors.last_name,
|
|
23
|
+
surveyors.first_name,
|
|
24
|
+
surveyors.middle_name
|
|
25
|
+
)),
|
|
26
|
+
''
|
|
27
|
+
),
|
|
28
|
+
surveyors.email
|
|
14
29
|
) AS actor_text
|
|
15
|
-
FROM surveyor.surveyors;
|
|
30
|
+
FROM surveyor.surveyors AS surveyors;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
CREATE OR REPLACE VIEW surveyor.user_lookup AS
|
|
2
|
+
SELECT
|
|
3
|
+
users.uid,
|
|
4
|
+
COALESCE(
|
|
5
|
+
NULLIF(
|
|
6
|
+
TRIM(CONCAT_WS(' ',
|
|
7
|
+
users.last_name,
|
|
8
|
+
users.first_name,
|
|
9
|
+
users.middle_name
|
|
10
|
+
)),
|
|
11
|
+
''
|
|
12
|
+
),
|
|
13
|
+
users.login
|
|
14
|
+
) AS user_text
|
|
15
|
+
FROM admin.users AS users;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengis/surveyor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Softpro",
|
|
6
6
|
"description": "Surveyor admin and geodesist cabinet UI for embedded host applications",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@opengis/core": "^0.0.37",
|
|
68
68
|
"@opengis/filter": "^0.1.59",
|
|
69
|
-
"@opengis/form": "^0.1
|
|
69
|
+
"@opengis/form": "^1.0.1",
|
|
70
70
|
"@types/node": "^26.4.1",
|
|
71
71
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
72
72
|
"@vue/tsconfig": "^0.8.1",
|