@opengis/surveyor 0.0.2 → 0.0.4
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-Z57iMvFb.js → map-dvA3ayAK.js} +647 -634
- package/dist/chunks/{map-layers-DnmkOEld.js → map-layers-sT-gTiD_.js} +130 -125
- 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
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as e, r as t, t as n } from "./chunks/dom-BSjFG3O0.js";
|
|
2
|
+
import { t as r } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, inject as f, normalizeClass as p, openBlock as m, provide as h, renderSlot as g, resolveDynamicComponent as _, withCtx as v } from "vue";
|
|
4
|
+
import { useRoute as y } from "vue-router";
|
|
4
5
|
//#region src/wrappers/SurveyorEmbedShell.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var b = /*@__PURE__*/ d({
|
|
6
7
|
__name: "SurveyorEmbedShell",
|
|
7
8
|
props: {
|
|
8
9
|
card: {
|
|
@@ -16,37 +17,49 @@ var p = /*@__PURE__*/ o({
|
|
|
16
17
|
default: !1
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
|
-
setup(
|
|
20
|
-
|
|
21
|
-
let
|
|
22
|
-
|
|
20
|
+
setup(r, { expose: i }) {
|
|
21
|
+
i();
|
|
22
|
+
let a = {
|
|
23
|
+
hostProvidesRoot: f(t, !1),
|
|
24
|
+
get SURVEYOR_PORTAL_ID() {
|
|
25
|
+
return n;
|
|
26
|
+
},
|
|
27
|
+
get SURVEYOR_ROOT_ID() {
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return Object.defineProperty(a, "__isScriptSetup", {
|
|
23
32
|
enumerable: !1,
|
|
24
33
|
value: !0
|
|
25
|
-
}),
|
|
34
|
+
}), a;
|
|
26
35
|
}
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
}), x = ["id"], S = ["id"];
|
|
37
|
+
function C(e, t, n, r, i, a) {
|
|
38
|
+
return m(), s("div", {
|
|
39
|
+
id: r.hostProvidesRoot ? void 0 : r.SURVEYOR_ROOT_ID,
|
|
40
|
+
class: p(["surveyor-embed w-full min-w-0 max-w-none", n.fill ? "flex h-[calc(100vh-7rem)] min-h-[calc(100vh-7rem)] max-h-[calc(100vh-7rem)] flex-col" : ""])
|
|
41
|
+
}, [n.card ? (m(), s("div", {
|
|
32
42
|
key: 0,
|
|
33
|
-
class:
|
|
34
|
-
}, [
|
|
43
|
+
class: p(["w-full rounded-xl bg-white p-4 shadow-sm sm:p-5", n.fill ? "min-h-0 flex-1" : ""])
|
|
44
|
+
}, [g(e.$slots, "default", {}, void 0, !0)], 2)) : (m(), s("div", {
|
|
35
45
|
key: 1,
|
|
36
|
-
class:
|
|
37
|
-
}, [
|
|
46
|
+
class: p(["min-h-0 w-full flex-1 flex flex-col", n.fill ? "h-full min-h-0" : ""])
|
|
47
|
+
}, [g(e.$slots, "default", {}, void 0, !0)], 2)), r.hostProvidesRoot ? o("", !0) : (m(), s("div", {
|
|
48
|
+
key: 2,
|
|
49
|
+
id: r.SURVEYOR_PORTAL_ID
|
|
50
|
+
}, null, 8, S))], 10, x);
|
|
38
51
|
}
|
|
39
|
-
var
|
|
40
|
-
["render",
|
|
52
|
+
var w = /*#__PURE__*/ r(b, [
|
|
53
|
+
["render", C],
|
|
41
54
|
["__scopeId", "data-v-ee198999"],
|
|
42
|
-
["__file", "
|
|
43
|
-
]),
|
|
55
|
+
["__file", "C:/softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]
|
|
56
|
+
]), T = /*@__PURE__*/ d({
|
|
44
57
|
__name: "Map",
|
|
45
58
|
setup(e, { expose: t }) {
|
|
46
59
|
t();
|
|
47
60
|
let n = {
|
|
48
|
-
MapPage:
|
|
49
|
-
SurveyorEmbedShell:
|
|
61
|
+
MapPage: u(() => import("./chunks/map-dvA3ayAK.js")),
|
|
62
|
+
SurveyorEmbedShell: w
|
|
50
63
|
};
|
|
51
64
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
52
65
|
enumerable: !1,
|
|
@@ -56,16 +69,16 @@ var h = /*#__PURE__*/ e(p, [
|
|
|
56
69
|
});
|
|
57
70
|
//#endregion
|
|
58
71
|
//#region src/wrappers/Map.vue
|
|
59
|
-
function
|
|
60
|
-
return
|
|
72
|
+
function E(e, t, n, r, i, o) {
|
|
73
|
+
return m(), a(r.SurveyorEmbedShell, {
|
|
61
74
|
card: !1,
|
|
62
75
|
fill: ""
|
|
63
76
|
}, {
|
|
64
|
-
default:
|
|
77
|
+
default: v(() => [l(r.MapPage)]),
|
|
65
78
|
_: 1
|
|
66
79
|
});
|
|
67
80
|
}
|
|
68
|
-
var
|
|
81
|
+
var D = /*#__PURE__*/ r(T, [["render", E], ["__file", "C:/softpro/surveyor/src/wrappers/Map.vue"]]), O = /*@__PURE__*/ d({
|
|
69
82
|
__name: "BaseEntityWrapper",
|
|
70
83
|
props: {
|
|
71
84
|
list: {
|
|
@@ -91,18 +104,18 @@ var v = /*#__PURE__*/ e(g, [["render", _], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
91
104
|
required: !1
|
|
92
105
|
}
|
|
93
106
|
},
|
|
94
|
-
setup(e, { expose:
|
|
95
|
-
|
|
96
|
-
let
|
|
97
|
-
props:
|
|
98
|
-
route:
|
|
99
|
-
activeKey:
|
|
100
|
-
let e =
|
|
107
|
+
setup(e, { expose: t }) {
|
|
108
|
+
t();
|
|
109
|
+
let n = e, r = y(), a = {
|
|
110
|
+
props: n,
|
|
111
|
+
route: r,
|
|
112
|
+
activeKey: i(() => {
|
|
113
|
+
let e = r.params[n.param];
|
|
101
114
|
return e == null || Array.isArray(e) ? "" : String(e);
|
|
102
115
|
}),
|
|
103
|
-
activeComponent:
|
|
104
|
-
let e =
|
|
105
|
-
return t ?
|
|
116
|
+
activeComponent: i(() => {
|
|
117
|
+
let e = r.params[n.param], t = e == null || Array.isArray(e) ? "" : String(e);
|
|
118
|
+
return t ? n.create && t === n.createValue ? n.create : n.detail : n.list;
|
|
106
119
|
})
|
|
107
120
|
};
|
|
108
121
|
return Object.defineProperty(a, "__isScriptSetup", {
|
|
@@ -113,18 +126,18 @@ var v = /*#__PURE__*/ e(g, [["render", _], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
113
126
|
});
|
|
114
127
|
//#endregion
|
|
115
128
|
//#region src/wrappers/BaseEntityWrapper.vue
|
|
116
|
-
function
|
|
117
|
-
return
|
|
129
|
+
function k(e, t, n, r, i, o) {
|
|
130
|
+
return m(), a(_(r.activeComponent), { key: r.activeKey || "list" });
|
|
118
131
|
}
|
|
119
|
-
var
|
|
132
|
+
var A = /*#__PURE__*/ r(O, [["render", k], ["__file", "C:/softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), j = /*@__PURE__*/ d({
|
|
120
133
|
__name: "Requests",
|
|
121
134
|
setup(e, { expose: t }) {
|
|
122
135
|
t();
|
|
123
136
|
let n = {
|
|
124
|
-
Index:
|
|
125
|
-
Card:
|
|
126
|
-
BaseEntityWrapper:
|
|
127
|
-
SurveyorEmbedShell:
|
|
137
|
+
Index: u(() => import("./chunks/requests-BTpLXrNj.js")),
|
|
138
|
+
Card: u(() => import("./chunks/card-B_SfARf7.js")),
|
|
139
|
+
BaseEntityWrapper: A,
|
|
140
|
+
SurveyorEmbedShell: w
|
|
128
141
|
};
|
|
129
142
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
130
143
|
enumerable: !1,
|
|
@@ -134,25 +147,25 @@ var x = /*#__PURE__*/ e(y, [["render", b], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
134
147
|
});
|
|
135
148
|
//#endregion
|
|
136
149
|
//#region src/wrappers/Requests.vue
|
|
137
|
-
function
|
|
138
|
-
return
|
|
139
|
-
default:
|
|
140
|
-
list:
|
|
141
|
-
detail:
|
|
150
|
+
function M(e, t, n, r, i, o) {
|
|
151
|
+
return m(), a(r.SurveyorEmbedShell, null, {
|
|
152
|
+
default: v(() => [l(r.BaseEntityWrapper, {
|
|
153
|
+
list: r.Index,
|
|
154
|
+
detail: r.Card,
|
|
142
155
|
param: "number"
|
|
143
156
|
}, null, 8, ["list", "detail"])]),
|
|
144
157
|
_: 1
|
|
145
158
|
});
|
|
146
159
|
}
|
|
147
|
-
var
|
|
160
|
+
var N = /*#__PURE__*/ r(j, [["render", M], ["__file", "C:/softpro/surveyor/src/wrappers/Requests.vue"]]), P = /*@__PURE__*/ d({
|
|
148
161
|
__name: "Organisations",
|
|
149
162
|
setup(e, { expose: t }) {
|
|
150
163
|
t();
|
|
151
164
|
let n = {
|
|
152
|
-
Index:
|
|
153
|
-
Card:
|
|
154
|
-
BaseEntityWrapper:
|
|
155
|
-
SurveyorEmbedShell:
|
|
165
|
+
Index: u(() => import("./chunks/organizations-ByVE2f0c.js")),
|
|
166
|
+
Card: u(() => import("./chunks/card-X9UVFgdR.js")),
|
|
167
|
+
BaseEntityWrapper: A,
|
|
168
|
+
SurveyorEmbedShell: w
|
|
156
169
|
};
|
|
157
170
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
158
171
|
enumerable: !1,
|
|
@@ -162,25 +175,25 @@ var w = /*#__PURE__*/ e(S, [["render", C], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
162
175
|
});
|
|
163
176
|
//#endregion
|
|
164
177
|
//#region src/wrappers/Organisations.vue
|
|
165
|
-
function
|
|
166
|
-
return
|
|
167
|
-
default:
|
|
168
|
-
list:
|
|
169
|
-
detail:
|
|
178
|
+
function F(e, t, n, r, i, o) {
|
|
179
|
+
return m(), a(r.SurveyorEmbedShell, null, {
|
|
180
|
+
default: v(() => [l(r.BaseEntityWrapper, {
|
|
181
|
+
list: r.Index,
|
|
182
|
+
detail: r.Card,
|
|
170
183
|
param: "id"
|
|
171
184
|
}, null, 8, ["list", "detail"])]),
|
|
172
185
|
_: 1
|
|
173
186
|
});
|
|
174
187
|
}
|
|
175
|
-
var
|
|
188
|
+
var I = /*#__PURE__*/ r(P, [["render", F], ["__file", "C:/softpro/surveyor/src/wrappers/Organisations.vue"]]), L = /*@__PURE__*/ d({
|
|
176
189
|
__name: "Certificates",
|
|
177
190
|
setup(e, { expose: t }) {
|
|
178
191
|
t();
|
|
179
192
|
let n = {
|
|
180
|
-
Index:
|
|
181
|
-
Card:
|
|
182
|
-
BaseEntityWrapper:
|
|
183
|
-
SurveyorEmbedShell:
|
|
193
|
+
Index: u(() => import("./chunks/certificates-Cwch72-o.js")),
|
|
194
|
+
Card: u(() => import("./chunks/card-C3y-j2TA.js")),
|
|
195
|
+
BaseEntityWrapper: A,
|
|
196
|
+
SurveyorEmbedShell: w
|
|
184
197
|
};
|
|
185
198
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
186
199
|
enumerable: !1,
|
|
@@ -190,25 +203,25 @@ var D = /*#__PURE__*/ e(T, [["render", E], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
190
203
|
});
|
|
191
204
|
//#endregion
|
|
192
205
|
//#region src/wrappers/Certificates.vue
|
|
193
|
-
function
|
|
194
|
-
return
|
|
195
|
-
default:
|
|
196
|
-
list:
|
|
197
|
-
detail:
|
|
206
|
+
function R(e, t, n, r, i, o) {
|
|
207
|
+
return m(), a(r.SurveyorEmbedShell, null, {
|
|
208
|
+
default: v(() => [l(r.BaseEntityWrapper, {
|
|
209
|
+
list: r.Index,
|
|
210
|
+
detail: r.Card,
|
|
198
211
|
param: "id"
|
|
199
212
|
}, null, 8, ["list", "detail"])]),
|
|
200
213
|
_: 1
|
|
201
214
|
});
|
|
202
215
|
}
|
|
203
|
-
var
|
|
216
|
+
var ee = /*#__PURE__*/ r(L, [["render", R], ["__file", "C:/softpro/surveyor/src/wrappers/Certificates.vue"]]), z = /*@__PURE__*/ d({
|
|
204
217
|
__name: "Users",
|
|
205
218
|
setup(e, { expose: t }) {
|
|
206
219
|
t();
|
|
207
220
|
let n = {
|
|
208
|
-
Index:
|
|
209
|
-
Card:
|
|
210
|
-
BaseEntityWrapper:
|
|
211
|
-
SurveyorEmbedShell:
|
|
221
|
+
Index: u(() => import("./chunks/users-U1P6xCP4.js")),
|
|
222
|
+
Card: u(() => import("./chunks/card-DWpAv92l.js")),
|
|
223
|
+
BaseEntityWrapper: A,
|
|
224
|
+
SurveyorEmbedShell: w
|
|
212
225
|
};
|
|
213
226
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
214
227
|
enumerable: !1,
|
|
@@ -218,25 +231,25 @@ var A = /*#__PURE__*/ e(O, [["render", k], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
218
231
|
});
|
|
219
232
|
//#endregion
|
|
220
233
|
//#region src/wrappers/Users.vue
|
|
221
|
-
function
|
|
222
|
-
return
|
|
223
|
-
default:
|
|
224
|
-
list:
|
|
225
|
-
detail:
|
|
234
|
+
function B(e, t, n, r, i, o) {
|
|
235
|
+
return m(), a(r.SurveyorEmbedShell, null, {
|
|
236
|
+
default: v(() => [l(r.BaseEntityWrapper, {
|
|
237
|
+
list: r.Index,
|
|
238
|
+
detail: r.Card,
|
|
226
239
|
param: "id"
|
|
227
240
|
}, null, 8, ["list", "detail"])]),
|
|
228
241
|
_: 1
|
|
229
242
|
});
|
|
230
243
|
}
|
|
231
|
-
var
|
|
244
|
+
var V = /*#__PURE__*/ r(z, [["render", B], ["__file", "C:/softpro/surveyor/src/wrappers/Users.vue"]]), H = /*@__PURE__*/ d({
|
|
232
245
|
__name: "MapLayers",
|
|
233
246
|
setup(e, { expose: t }) {
|
|
234
247
|
t();
|
|
235
248
|
let n = {
|
|
236
|
-
Index:
|
|
237
|
-
Card:
|
|
238
|
-
BaseEntityWrapper:
|
|
239
|
-
SurveyorEmbedShell:
|
|
249
|
+
Index: u(() => import("./chunks/map-layers-sT-gTiD_.js")),
|
|
250
|
+
Card: u(() => import("./chunks/card-CWqi1K-x.js")),
|
|
251
|
+
BaseEntityWrapper: A,
|
|
252
|
+
SurveyorEmbedShell: w
|
|
240
253
|
};
|
|
241
254
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
242
255
|
enumerable: !1,
|
|
@@ -246,26 +259,26 @@ var N = /*#__PURE__*/ e(j, [["render", M], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
246
259
|
});
|
|
247
260
|
//#endregion
|
|
248
261
|
//#region src/wrappers/MapLayers.vue
|
|
249
|
-
function
|
|
250
|
-
return
|
|
251
|
-
default:
|
|
252
|
-
list:
|
|
253
|
-
detail:
|
|
262
|
+
function U(e, t, n, r, i, o) {
|
|
263
|
+
return m(), a(r.SurveyorEmbedShell, null, {
|
|
264
|
+
default: v(() => [l(r.BaseEntityWrapper, {
|
|
265
|
+
list: r.Index,
|
|
266
|
+
detail: r.Card,
|
|
254
267
|
param: "id"
|
|
255
268
|
}, null, 8, ["list", "detail"])]),
|
|
256
269
|
_: 1
|
|
257
270
|
});
|
|
258
271
|
}
|
|
259
|
-
var
|
|
272
|
+
var W = /*#__PURE__*/ r(H, [["render", U], ["__file", "C:/softpro/surveyor/src/wrappers/MapLayers.vue"]]), G = /*@__PURE__*/ d({
|
|
260
273
|
__name: "CabinetRequests",
|
|
261
274
|
setup(e, { expose: t }) {
|
|
262
275
|
t();
|
|
263
276
|
let n = {
|
|
264
|
-
Index:
|
|
265
|
-
Create:
|
|
266
|
-
Card:
|
|
267
|
-
BaseEntityWrapper:
|
|
268
|
-
SurveyorEmbedShell:
|
|
277
|
+
Index: u(() => import("./chunks/requests-Bt8fEdRc.js")),
|
|
278
|
+
Create: u(() => import("./chunks/create-DTP9x2uS.js")),
|
|
279
|
+
Card: u(() => import("./chunks/card-DCyBFoDZ.js")),
|
|
280
|
+
BaseEntityWrapper: A,
|
|
281
|
+
SurveyorEmbedShell: w
|
|
269
282
|
};
|
|
270
283
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
271
284
|
enumerable: !1,
|
|
@@ -275,12 +288,12 @@ var I = /*#__PURE__*/ e(P, [["render", F], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
275
288
|
});
|
|
276
289
|
//#endregion
|
|
277
290
|
//#region src/wrappers/CabinetRequests.vue
|
|
278
|
-
function
|
|
279
|
-
return
|
|
280
|
-
default:
|
|
281
|
-
list:
|
|
282
|
-
detail:
|
|
283
|
-
create:
|
|
291
|
+
function K(e, t, n, r, i, o) {
|
|
292
|
+
return m(), a(r.SurveyorEmbedShell, null, {
|
|
293
|
+
default: v(() => [l(r.BaseEntityWrapper, {
|
|
294
|
+
list: r.Index,
|
|
295
|
+
detail: r.Card,
|
|
296
|
+
create: r.Create,
|
|
284
297
|
param: "segment",
|
|
285
298
|
"create-value": "new"
|
|
286
299
|
}, null, 8, [
|
|
@@ -291,13 +304,13 @@ function R(e, t, r, a, o, s) {
|
|
|
291
304
|
_: 1
|
|
292
305
|
});
|
|
293
306
|
}
|
|
294
|
-
var
|
|
307
|
+
var q = /*#__PURE__*/ r(G, [["render", K], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), J = /*@__PURE__*/ d({
|
|
295
308
|
__name: "CabinetProfile",
|
|
296
309
|
setup(e, { expose: t }) {
|
|
297
310
|
t();
|
|
298
311
|
let n = {
|
|
299
|
-
Profile:
|
|
300
|
-
SurveyorEmbedShell:
|
|
312
|
+
Profile: u(() => import("./chunks/profile-CuxlkEev.js")),
|
|
313
|
+
SurveyorEmbedShell: w
|
|
301
314
|
};
|
|
302
315
|
return Object.defineProperty(n, "__isScriptSetup", {
|
|
303
316
|
enumerable: !1,
|
|
@@ -307,13 +320,13 @@ var z = /*#__PURE__*/ e(L, [["render", R], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
307
320
|
});
|
|
308
321
|
//#endregion
|
|
309
322
|
//#region src/wrappers/CabinetProfile.vue
|
|
310
|
-
function
|
|
311
|
-
return
|
|
312
|
-
default:
|
|
323
|
+
function Y(e, t, n, r, i, o) {
|
|
324
|
+
return m(), a(r.SurveyorEmbedShell, null, {
|
|
325
|
+
default: v(() => [l(r.Profile)]),
|
|
313
326
|
_: 1
|
|
314
327
|
});
|
|
315
328
|
}
|
|
316
|
-
var
|
|
329
|
+
var X = /*#__PURE__*/ r(J, [["render", Y], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), Z = {
|
|
317
330
|
map: "/map",
|
|
318
331
|
requests: "/requests",
|
|
319
332
|
organizations: "/organizations",
|
|
@@ -322,15 +335,42 @@ var H = /*#__PURE__*/ e(B, [["render", V], ["__file", "D:/Softpro/surveyor/src/w
|
|
|
322
335
|
mapLayers: "/map-layers",
|
|
323
336
|
cabinetRequests: "/requests",
|
|
324
337
|
cabinetProfile: "/profile"
|
|
325
|
-
},
|
|
326
|
-
function
|
|
338
|
+
}, Q = Symbol("surveyor-paths");
|
|
339
|
+
function $(e = {}) {
|
|
327
340
|
let t = {
|
|
328
|
-
...
|
|
341
|
+
...Z,
|
|
329
342
|
...e.paths
|
|
330
343
|
};
|
|
331
344
|
return { install(e) {
|
|
332
|
-
e.provide(
|
|
345
|
+
e.provide(Q, t);
|
|
333
346
|
} };
|
|
334
347
|
}
|
|
335
348
|
//#endregion
|
|
336
|
-
|
|
349
|
+
//#region shared/surveyor/SurveyorRoot.vue?vue&type=script&setup=true&lang.ts
|
|
350
|
+
var te = /*@__PURE__*/ d({
|
|
351
|
+
__name: "SurveyorRoot",
|
|
352
|
+
setup(r, { expose: i }) {
|
|
353
|
+
i(), h(t, !0);
|
|
354
|
+
let a = {
|
|
355
|
+
get SURVEYOR_PORTAL_ID() {
|
|
356
|
+
return n;
|
|
357
|
+
},
|
|
358
|
+
get SURVEYOR_ROOT_ID() {
|
|
359
|
+
return e;
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
return Object.defineProperty(a, "__isScriptSetup", {
|
|
363
|
+
enumerable: !1,
|
|
364
|
+
value: !0
|
|
365
|
+
}), a;
|
|
366
|
+
}
|
|
367
|
+
}), ne = ["id"], re = ["id"];
|
|
368
|
+
function ie(e, t, n, r, i, a) {
|
|
369
|
+
return m(), s("div", {
|
|
370
|
+
id: r.SURVEYOR_ROOT_ID,
|
|
371
|
+
class: "surveyor-root min-h-screen bg-slate-50 text-slate-800 antialiased"
|
|
372
|
+
}, [g(e.$slots, "default"), c("div", { id: r.SURVEYOR_PORTAL_ID }, null, 8, re)], 8, ne);
|
|
373
|
+
}
|
|
374
|
+
var ae = /*#__PURE__*/ r(te, [["render", ie], ["__file", "C:/softpro/surveyor/shared/surveyor/SurveyorRoot.vue"]]);
|
|
375
|
+
//#endregion
|
|
376
|
+
export { X as CabinetProfile, q as CabinetRequests, ee as Certificates, D as Map, W as MapLayers, I as Organisations, N as Requests, Q as SURVEYOR_PATHS_KEY, n as SURVEYOR_PORTAL_ID, e as SURVEYOR_ROOT_ID, ae as SurveyorRoot, V as Users, $ as createSurveyorPlugin, Z as defaultSurveyorPaths };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengis/surveyor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Softpro",
|
|
6
6
|
"description": "Surveyor admin and geodesist cabinet UI for embedded host applications",
|
|
@@ -72,15 +72,12 @@
|
|
|
72
72
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
73
73
|
"@vue/tsconfig": "^0.8.1",
|
|
74
74
|
"lucide-vue-next": "0.446.0",
|
|
75
|
+
"postcss-prefix-selector": "^2.2.1",
|
|
75
76
|
"tailwindcss": "^4.3.3",
|
|
76
77
|
"typescript": "~6.0.2",
|
|
77
78
|
"vite": "^8.2.2",
|
|
78
79
|
"vue": "^3.5.22",
|
|
79
80
|
"vue-router": "^4.6.4",
|
|
80
81
|
"vue-tsc": "^3.0.8"
|
|
81
|
-
},
|
|
82
|
-
"repository": {
|
|
83
|
-
"type": "git",
|
|
84
|
-
"url": "https://git.softpro.ua/product/surveyor.git"
|
|
85
82
|
}
|
|
86
83
|
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { randomBytes } from "node:crypto";
|
|
2
|
-
import type { AppContext, User } from "@opengis/fcore";
|
|
3
|
-
import { NotFoundError, hashPassword } from "@opengis/fcore";
|
|
4
|
-
import { admin } from "../utils/shared.js";
|
|
5
|
-
import { sendAdminPasswordChangedEmail } from "../utils/mail.js";
|
|
6
|
-
|
|
7
|
-
/** Змінює пароль зареєстрованого геодезиста адміністратором та повідомляє його листом. */
|
|
8
|
-
export async function changeSurveyorPasswordByAdmin(
|
|
9
|
-
{ id, user, ctx }: {
|
|
10
|
-
id: string;
|
|
11
|
-
user: User | undefined;
|
|
12
|
-
ctx: AppContext;
|
|
13
|
-
}
|
|
14
|
-
) {
|
|
15
|
-
const uid = admin(user);
|
|
16
|
-
const password = randomBytes(16).toString("hex");
|
|
17
|
-
const passwordHash = await hashPassword(password);
|
|
18
|
-
const surveyor = await ctx.pg.query<{ surveyor_id: string; email: string }>(
|
|
19
|
-
`UPDATE surveyor.surveyors
|
|
20
|
-
SET password_hash = $2,
|
|
21
|
-
password_changed_at = now(),
|
|
22
|
-
updated_by = $3,
|
|
23
|
-
updated_at = now()
|
|
24
|
-
WHERE surveyor_id = $1
|
|
25
|
-
AND registered_at IS NOT NULL
|
|
26
|
-
RETURNING surveyor_id, email`,
|
|
27
|
-
[id, passwordHash, uid]
|
|
28
|
-
);
|
|
29
|
-
if (!surveyor.rows[0]) {
|
|
30
|
-
throw new NotFoundError("Registered surveyor not found");
|
|
31
|
-
}
|
|
32
|
-
await ctx.audit.write({
|
|
33
|
-
module: "surveyor",
|
|
34
|
-
resource: "surveyors",
|
|
35
|
-
resourceId: id,
|
|
36
|
-
action: "changePasswordByAdmin",
|
|
37
|
-
userId: uid,
|
|
38
|
-
});
|
|
39
|
-
await sendAdminPasswordChangedEmail({ email: surveyor.rows[0].email, password });
|
|
40
|
-
return { success: true };
|
|
41
|
-
}
|
|
1
|
+
import { randomBytes } from "node:crypto";
|
|
2
|
+
import type { AppContext, User } from "@opengis/fcore";
|
|
3
|
+
import { NotFoundError, hashPassword } from "@opengis/fcore";
|
|
4
|
+
import { admin } from "../utils/shared.js";
|
|
5
|
+
import { sendAdminPasswordChangedEmail } from "../utils/mail.js";
|
|
6
|
+
|
|
7
|
+
/** Змінює пароль зареєстрованого геодезиста адміністратором та повідомляє його листом. */
|
|
8
|
+
export async function changeSurveyorPasswordByAdmin(
|
|
9
|
+
{ id, user, ctx }: {
|
|
10
|
+
id: string;
|
|
11
|
+
user: User | undefined;
|
|
12
|
+
ctx: AppContext;
|
|
13
|
+
}
|
|
14
|
+
) {
|
|
15
|
+
const uid = admin(user);
|
|
16
|
+
const password = randomBytes(16).toString("hex");
|
|
17
|
+
const passwordHash = await hashPassword(password);
|
|
18
|
+
const surveyor = await ctx.pg.query<{ surveyor_id: string; email: string }>(
|
|
19
|
+
`UPDATE surveyor.surveyors
|
|
20
|
+
SET password_hash = $2,
|
|
21
|
+
password_changed_at = now(),
|
|
22
|
+
updated_by = $3,
|
|
23
|
+
updated_at = now()
|
|
24
|
+
WHERE surveyor_id = $1
|
|
25
|
+
AND registered_at IS NOT NULL
|
|
26
|
+
RETURNING surveyor_id, email`,
|
|
27
|
+
[id, passwordHash, uid]
|
|
28
|
+
);
|
|
29
|
+
if (!surveyor.rows[0]) {
|
|
30
|
+
throw new NotFoundError("Registered surveyor not found");
|
|
31
|
+
}
|
|
32
|
+
await ctx.audit.write({
|
|
33
|
+
module: "surveyor",
|
|
34
|
+
resource: "surveyors",
|
|
35
|
+
resourceId: id,
|
|
36
|
+
action: "changePasswordByAdmin",
|
|
37
|
+
userId: uid,
|
|
38
|
+
});
|
|
39
|
+
await sendAdminPasswordChangedEmail({ email: surveyor.rows[0].email, password });
|
|
40
|
+
return { success: true };
|
|
41
|
+
}
|