@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.
Files changed (45) hide show
  1. package/dist/chunks/{AppealDetailField-CI-1qhs3.js → AppealDetailField-DNRGpnyD.js} +2 -2
  2. package/dist/chunks/{AppealStatusBadge-CSXnfarR.js → AppealStatusBadge-CefimzY3.js} +2 -2
  3. package/dist/chunks/{AppealStatusBadge-DYBe9hqP.js → AppealStatusBadge-Cu-UzdzA.js} +1 -1
  4. package/dist/chunks/{ApplicationHistorySection-C0wwhwA4.js → ApplicationHistorySection-PwToBfej.js} +4 -4
  5. package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
  6. package/dist/chunks/{FormFilePicker-C3XQw50i.js → FormFilePicker-CKVdZJU9.js} +2 -2
  7. package/dist/chunks/{MapLayerMenu-DjYCxEc3.js → MapLayerMenu-AUeTqgEp.js} +1 -1
  8. package/dist/chunks/{RegistryForm-CEUqFmsF.js → RegistryForm-wG-c8GKf.js} +1 -1
  9. package/dist/chunks/{RegistryFormModal-DfY4z_7r.js → RegistryFormModal-R_iZYqGE.js} +3 -3
  10. package/dist/chunks/{RegistryToolbar-BV4mYVAc.js → RegistryToolbar-322DKUXi.js} +6 -6
  11. package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
  12. package/dist/chunks/{UserAccessBadge-D8JfgGfN.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
  13. package/dist/chunks/{UserTypeBadge-YIwwoCho.js → UserTypeBadge-LvnMuKGo.js} +1 -1
  14. package/dist/chunks/{VerifiedBadge-Bba8WnuB.js → VerifiedBadge-bk0n-rlC.js} +2 -2
  15. package/dist/chunks/{applications-BB9JRcgl.js → applications-CsCsndMV.js} +1 -1
  16. package/dist/chunks/{card-fL26_Gvc.js → card-B_SfARf7.js} +358 -357
  17. package/dist/chunks/card-C3y-j2TA.js +298 -0
  18. package/dist/chunks/{card-CKD1N0QD.js → card-CWqi1K-x.js} +107 -106
  19. package/dist/chunks/{card-DUtDfwMk.js → card-DCyBFoDZ.js} +6 -6
  20. package/dist/chunks/card-DWpAv92l.js +539 -0
  21. package/dist/chunks/{card-B-ftozcq.js → card-X9UVFgdR.js} +256 -250
  22. package/dist/chunks/{certificates-BSd1i0un.js → certificates-Cwch72-o.js} +131 -130
  23. package/dist/chunks/{create-DxMC_IL1.js → create-DTP9x2uS.js} +283 -270
  24. package/dist/chunks/dom-BSjFG3O0.js +7 -0
  25. package/dist/chunks/{map-layers-DnmkOEld.js → map-layers-sT-gTiD_.js} +130 -125
  26. package/dist/chunks/{map-Z57iMvFb.js → map-qXQe_qam.js} +645 -632
  27. package/dist/chunks/{organizations-BbYipLwk.js → organizations-BtuMZ5s_.js} +1 -1
  28. package/dist/chunks/{organizations-BO1_JETm.js → organizations-ByVE2f0c.js} +128 -123
  29. package/dist/chunks/{profile-Dwwn_4Pr.js → profile-CuxlkEev.js} +3 -3
  30. package/dist/chunks/{profile-ByahbF4B.js → profile-DxZHxGum.js} +1 -1
  31. package/dist/chunks/requests-BTpLXrNj.js +233 -0
  32. package/dist/chunks/{requests-CFv5wwAN.js → requests-Bt8fEdRc.js} +7 -7
  33. package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
  34. package/dist/chunks/{users-DtTYsgMb.js → users-U1P6xCP4.js} +105 -99
  35. package/dist/index.css +1 -1
  36. package/dist/index.js +154 -114
  37. package/package.json +2 -5
  38. package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
  39. package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
  40. package/surveyor-types.d.ts +5 -0
  41. package/dist/chunks/AppIcon-CIR6y5uE.js +0 -85
  42. package/dist/chunks/BaseModal-C7PVYz0m.js +0 -85
  43. package/dist/chunks/card-BctFHFZe.js +0 -538
  44. package/dist/chunks/card-CiNZxAd5.js +0 -297
  45. package/dist/chunks/requests-BCin936Z.js +0 -232
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
- import { t as e } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { computed as t, createBlock as n, createElementBlock as r, createVNode as i, defineAsyncComponent as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, resolveDynamicComponent as u, withCtx as d } from "vue";
3
- import { useRoute as f } from "vue-router";
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 p = /*@__PURE__*/ o({
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(e, { expose: t }) {
20
- t();
21
- let n = {};
22
- return Object.defineProperty(n, "__isScriptSetup", {
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
- }), n;
34
+ }), a;
26
35
  }
27
- });
28
- //#endregion
29
- //#region src/wrappers/SurveyorEmbedShell.vue
30
- function m(e, t, n, i, a, o) {
31
- return c(), r("div", { class: s(["surveyor-embed w-full min-w-0 max-w-none", n.fill ? "flex min-h-[calc(100vh-7rem)] flex-col" : ""]) }, [n.card ? (c(), r("div", {
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 min-h-[calc(100vh-7rem)] flex-col" : ""])
41
+ }, [n.card ? (m(), s("div", {
32
42
  key: 0,
33
- class: s(["w-full rounded-xl bg-white p-4 shadow-sm sm:p-5", n.fill ? "min-h-0 flex-1" : ""])
34
- }, [l(e.$slots, "default", {}, void 0, !0)], 2)) : (c(), r("div", {
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: s(["min-h-0 w-full flex-1", n.fill ? "h-full" : ""])
37
- }, [l(e.$slots, "default", {}, void 0, !0)], 2))], 2);
46
+ class: p(["min-h-0 w-full flex-1", n.fill ? "h-full" : ""])
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 h = /*#__PURE__*/ e(p, [
40
- ["render", m],
52
+ var w = /*#__PURE__*/ r(b, [
53
+ ["render", C],
41
54
  ["__scopeId", "data-v-ee198999"],
42
- ["__file", "D:/Softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]
43
- ]), g = /*@__PURE__*/ o({
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: a(() => import("./chunks/map-Z57iMvFb.js")),
49
- SurveyorEmbedShell: h
61
+ MapPage: u(() => import("./chunks/map-qXQe_qam.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 _(e, t, r, a, o, s) {
60
- return c(), n(a.SurveyorEmbedShell, {
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: d(() => [i(a.MapPage)]),
77
+ default: v(() => [l(r.MapPage)]),
65
78
  _: 1
66
79
  });
67
80
  }
68
- var v = /*#__PURE__*/ e(g, [["render", _], ["__file", "D:/Softpro/surveyor/src/wrappers/Map.vue"]]), y = /*@__PURE__*/ o({
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: n }) {
95
- n();
96
- let r = e, i = f(), a = {
97
- props: r,
98
- route: i,
99
- activeKey: t(() => {
100
- let e = i.params[r.param];
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: t(() => {
104
- let e = i.params[r.param], t = e == null || Array.isArray(e) ? "" : String(e);
105
- return t ? r.create && t === r.createValue ? r.create : r.detail : r.list;
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 b(e, t, r, i, a, o) {
117
- return c(), n(u(i.activeComponent), { key: i.activeKey || "list" });
129
+ function k(e, t, n, r, i, o) {
130
+ return m(), a(_(r.activeComponent), { key: r.activeKey || "list" });
118
131
  }
119
- var x = /*#__PURE__*/ e(y, [["render", b], ["__file", "D:/Softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), S = /*@__PURE__*/ o({
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: a(() => import("./chunks/requests-BCin936Z.js")),
125
- Card: a(() => import("./chunks/card-fL26_Gvc.js")),
126
- BaseEntityWrapper: x,
127
- SurveyorEmbedShell: h
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 C(e, t, r, a, o, s) {
138
- return c(), n(a.SurveyorEmbedShell, null, {
139
- default: d(() => [i(a.BaseEntityWrapper, {
140
- list: a.Index,
141
- detail: a.Card,
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 w = /*#__PURE__*/ e(S, [["render", C], ["__file", "D:/Softpro/surveyor/src/wrappers/Requests.vue"]]), T = /*@__PURE__*/ o({
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: a(() => import("./chunks/organizations-BO1_JETm.js")),
153
- Card: a(() => import("./chunks/card-B-ftozcq.js")),
154
- BaseEntityWrapper: x,
155
- SurveyorEmbedShell: h
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 E(e, t, r, a, o, s) {
166
- return c(), n(a.SurveyorEmbedShell, null, {
167
- default: d(() => [i(a.BaseEntityWrapper, {
168
- list: a.Index,
169
- detail: a.Card,
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 D = /*#__PURE__*/ e(T, [["render", E], ["__file", "D:/Softpro/surveyor/src/wrappers/Organisations.vue"]]), O = /*@__PURE__*/ o({
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: a(() => import("./chunks/certificates-BSd1i0un.js")),
181
- Card: a(() => import("./chunks/card-CiNZxAd5.js")),
182
- BaseEntityWrapper: x,
183
- SurveyorEmbedShell: h
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 k(e, t, r, a, o, s) {
194
- return c(), n(a.SurveyorEmbedShell, null, {
195
- default: d(() => [i(a.BaseEntityWrapper, {
196
- list: a.Index,
197
- detail: a.Card,
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 A = /*#__PURE__*/ e(O, [["render", k], ["__file", "D:/Softpro/surveyor/src/wrappers/Certificates.vue"]]), j = /*@__PURE__*/ o({
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: a(() => import("./chunks/users-DtTYsgMb.js")),
209
- Card: a(() => import("./chunks/card-BctFHFZe.js")),
210
- BaseEntityWrapper: x,
211
- SurveyorEmbedShell: h
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 M(e, t, r, a, o, s) {
222
- return c(), n(a.SurveyorEmbedShell, null, {
223
- default: d(() => [i(a.BaseEntityWrapper, {
224
- list: a.Index,
225
- detail: a.Card,
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 N = /*#__PURE__*/ e(j, [["render", M], ["__file", "D:/Softpro/surveyor/src/wrappers/Users.vue"]]), P = /*@__PURE__*/ o({
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: a(() => import("./chunks/map-layers-DnmkOEld.js")),
237
- Card: a(() => import("./chunks/card-CKD1N0QD.js")),
238
- BaseEntityWrapper: x,
239
- SurveyorEmbedShell: h
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 F(e, t, r, a, o, s) {
250
- return c(), n(a.SurveyorEmbedShell, null, {
251
- default: d(() => [i(a.BaseEntityWrapper, {
252
- list: a.Index,
253
- detail: a.Card,
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 I = /*#__PURE__*/ e(P, [["render", F], ["__file", "D:/Softpro/surveyor/src/wrappers/MapLayers.vue"]]), L = /*@__PURE__*/ o({
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: a(() => import("./chunks/requests-CFv5wwAN.js")),
265
- Create: a(() => import("./chunks/create-DxMC_IL1.js")),
266
- Card: a(() => import("./chunks/card-DUtDfwMk.js")),
267
- BaseEntityWrapper: x,
268
- SurveyorEmbedShell: h
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 R(e, t, r, a, o, s) {
279
- return c(), n(a.SurveyorEmbedShell, null, {
280
- default: d(() => [i(a.BaseEntityWrapper, {
281
- list: a.Index,
282
- detail: a.Card,
283
- create: a.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 z = /*#__PURE__*/ e(L, [["render", R], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), B = /*@__PURE__*/ o({
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: a(() => import("./chunks/profile-Dwwn_4Pr.js")),
300
- SurveyorEmbedShell: h
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 V(e, t, r, a, o, s) {
311
- return c(), n(a.SurveyorEmbedShell, null, {
312
- default: d(() => [i(a.Profile)]),
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 H = /*#__PURE__*/ e(B, [["render", V], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), U = {
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
- }, W = Symbol("surveyor-paths");
326
- function G(e = {}) {
338
+ }, Q = Symbol("surveyor-paths");
339
+ function $(e = {}) {
327
340
  let t = {
328
- ...U,
341
+ ...Z,
329
342
  ...e.paths
330
343
  };
331
344
  return { install(e) {
332
- e.provide(W, t);
345
+ e.provide(Q, t);
333
346
  } };
334
347
  }
335
348
  //#endregion
336
- export { H as CabinetProfile, z as CabinetRequests, A as Certificates, v as Map, I as MapLayers, D as Organisations, w as Requests, W as SURVEYOR_PATHS_KEY, N as Users, G as createSurveyorPlugin, U as defaultSurveyorPaths };
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.2",
3
+ "version": "0.0.3",
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
+ }