@opengis/surveyor 0.0.1 → 0.0.2

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 (54) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +175 -33
  3. package/dist/chunks/{AppIcon-C-4QykTP.js → AppIcon-CIR6y5uE.js} +1 -1
  4. package/dist/chunks/{AppealDetailField-DNRGpnyD.js → AppealDetailField-CI-1qhs3.js} +2 -2
  5. package/dist/chunks/{AppealStatusBadge-CefimzY3.js → AppealStatusBadge-CSXnfarR.js} +2 -2
  6. package/dist/chunks/{AppealStatusBadge-Cu-UzdzA.js → AppealStatusBadge-DYBe9hqP.js} +1 -1
  7. package/dist/chunks/{ApplicationHistorySection-PwToBfej.js → ApplicationHistorySection-C0wwhwA4.js} +4 -4
  8. package/dist/chunks/{BaseModal-DrTTkLmR.js → BaseModal-C7PVYz0m.js} +1 -1
  9. package/dist/chunks/{FormFilePicker-CKVdZJU9.js → FormFilePicker-C3XQw50i.js} +2 -2
  10. package/dist/chunks/{MapLayerMenu-AUeTqgEp.js → MapLayerMenu-DjYCxEc3.js} +1 -1
  11. package/dist/chunks/{RegistryForm-pvIcFR-V.js → RegistryForm-CEUqFmsF.js} +2 -2
  12. package/dist/chunks/{RegistryFormModal-BjGu7Upv.js → RegistryFormModal-DfY4z_7r.js} +3 -3
  13. package/dist/chunks/{RegistryToolbar-CiUgsjpU.js → RegistryToolbar-BV4mYVAc.js} +8 -8
  14. package/dist/chunks/{UserAccessBadge-DyZDv7Oo.js → UserAccessBadge-D8JfgGfN.js} +1 -1
  15. package/dist/chunks/{UserTypeBadge-LvnMuKGo.js → UserTypeBadge-YIwwoCho.js} +1 -1
  16. package/dist/chunks/{VerifiedBadge-B6droMOf.js → VerifiedBadge-Bba8WnuB.js} +2 -2
  17. package/dist/chunks/{applications-CsCsndMV.js → applications-BB9JRcgl.js} +1 -1
  18. package/dist/chunks/{buildSchema-nkA4Y0YG.js → buildSchema-CccjX9TJ.js} +1 -1
  19. package/dist/chunks/{card-BZn5CDw9.js → card-B-ftozcq.js} +12 -12
  20. package/dist/chunks/{card-9LaB42Ol.js → card-BctFHFZe.js} +7 -7
  21. package/dist/chunks/{card--DHsMNBd.js → card-CKD1N0QD.js} +6 -6
  22. package/dist/chunks/{card-CNqXSyqX.js → card-CiNZxAd5.js} +8 -8
  23. package/dist/chunks/{card-DCyBFoDZ.js → card-DUtDfwMk.js} +6 -6
  24. package/dist/chunks/card-fL26_Gvc.js +1189 -0
  25. package/dist/chunks/{certificates-DueBDDvc.js → certificates-BSd1i0un.js} +7 -7
  26. package/dist/chunks/{create-l28e-bWl.js → create-DxMC_IL1.js} +10 -10
  27. package/dist/chunks/{filterQuery-B9XNx1f1.js → filterQuery-CvfZrkTC.js} +1 -1
  28. package/dist/chunks/{form-CdGS1nVO.js → form-Bh6i5n1U.js} +1 -1
  29. package/dist/chunks/{form-QTkkzwbC.js → form-DDjELqZ9.js} +1 -1
  30. package/dist/chunks/{map-BW3iOhQg.js → map-Z57iMvFb.js} +11 -11
  31. package/dist/chunks/{map-layers-qxWjos2V.js → map-layers-DnmkOEld.js} +7 -7
  32. package/dist/chunks/{organizations-CZOINYMq.js → organizations-BO1_JETm.js} +8 -8
  33. package/dist/chunks/{organizations-BtuMZ5s_.js → organizations-BbYipLwk.js} +1 -1
  34. package/dist/chunks/{profile-DxZHxGum.js → profile-ByahbF4B.js} +1 -1
  35. package/dist/chunks/{profile-CuxlkEev.js → profile-Dwwn_4Pr.js} +3 -3
  36. package/dist/chunks/{requests-DQJIhz00.js → requests-BCin936Z.js} +6 -6
  37. package/dist/chunks/{requests-Bt8fEdRc.js → requests-CFv5wwAN.js} +7 -7
  38. package/dist/chunks/{resendSurveyorRegistration-DopjOHaM.js → resendSurveyorRegistration-BHTTVIw1.js} +1 -1
  39. package/dist/chunks/{resources-Cl_EvaIy.js → resources-2e8RFqWR.js} +1 -1
  40. package/dist/chunks/{surveyorAccount-BceNQypZ.js → surveyorAccount-C7UiiIYg.js} +1 -1
  41. package/dist/chunks/{users-DlaogjC_.js → users-DtTYsgMb.js} +8 -8
  42. package/dist/index.css +1 -1
  43. package/dist/index.js +165 -88
  44. package/package.json +86 -77
  45. package/plugin.d.ts +15 -0
  46. package/plugin.js +8 -10
  47. package/server/app.ts +2 -1
  48. package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
  49. package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
  50. package/server/resources/surveyor-admin/application_comments.ts +3 -3
  51. package/server/suggests/index.ts +17 -0
  52. package/README.npm.md +0 -51
  53. package/dist/chunks/card-CgGOgGyd.js +0 -973
  54. package/server/embed.ts +0 -49
package/dist/index.js CHANGED
@@ -1,12 +1,53 @@
1
1
  import { t as e } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { computed as t, createBlock as n, defineAsyncComponent as r, defineComponent as i, openBlock as a, resolveDynamicComponent as o } from "vue";
3
- import { useRoute as s } from "vue-router";
4
- //#region src/wrappers/Map.vue?vue&type=script&setup=true&lang.ts
5
- var c = /*@__PURE__*/ i({
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";
4
+ //#region src/wrappers/SurveyorEmbedShell.vue?vue&type=script&setup=true&lang.ts
5
+ var p = /*@__PURE__*/ o({
6
+ __name: "SurveyorEmbedShell",
7
+ props: {
8
+ card: {
9
+ type: Boolean,
10
+ required: !1,
11
+ default: !0
12
+ },
13
+ fill: {
14
+ type: Boolean,
15
+ required: !1,
16
+ default: !1
17
+ }
18
+ },
19
+ setup(e, { expose: t }) {
20
+ t();
21
+ let n = {};
22
+ return Object.defineProperty(n, "__isScriptSetup", {
23
+ enumerable: !1,
24
+ value: !0
25
+ }), n;
26
+ }
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", {
32
+ 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", {
35
+ 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);
38
+ }
39
+ var h = /*#__PURE__*/ e(p, [
40
+ ["render", m],
41
+ ["__scopeId", "data-v-ee198999"],
42
+ ["__file", "D:/Softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]
43
+ ]), g = /*@__PURE__*/ o({
6
44
  __name: "Map",
7
45
  setup(e, { expose: t }) {
8
46
  t();
9
- let n = { MapPage: r(() => import("./chunks/map-BW3iOhQg.js")) };
47
+ let n = {
48
+ MapPage: a(() => import("./chunks/map-Z57iMvFb.js")),
49
+ SurveyorEmbedShell: h
50
+ };
10
51
  return Object.defineProperty(n, "__isScriptSetup", {
11
52
  enumerable: !1,
12
53
  value: !0
@@ -15,10 +56,16 @@ var c = /*@__PURE__*/ i({
15
56
  });
16
57
  //#endregion
17
58
  //#region src/wrappers/Map.vue
18
- function l(e, t, r, i, o, s) {
19
- return a(), n(i.MapPage);
59
+ function _(e, t, r, a, o, s) {
60
+ return c(), n(a.SurveyorEmbedShell, {
61
+ card: !1,
62
+ fill: ""
63
+ }, {
64
+ default: d(() => [i(a.MapPage)]),
65
+ _: 1
66
+ });
20
67
  }
21
- var u = /*#__PURE__*/ e(c, [["render", l], ["__file", "C:/softpro/surveyor/src/wrappers/Map.vue"]]), d = /*@__PURE__*/ i({
68
+ var v = /*#__PURE__*/ e(g, [["render", _], ["__file", "D:/Softpro/surveyor/src/wrappers/Map.vue"]]), y = /*@__PURE__*/ o({
22
69
  __name: "BaseEntityWrapper",
23
70
  props: {
24
71
  list: {
@@ -46,7 +93,7 @@ var u = /*#__PURE__*/ e(c, [["render", l], ["__file", "C:/softpro/surveyor/src/w
46
93
  },
47
94
  setup(e, { expose: n }) {
48
95
  n();
49
- let r = e, i = s(), a = {
96
+ let r = e, i = f(), a = {
50
97
  props: r,
51
98
  route: i,
52
99
  activeKey: t(() => {
@@ -66,17 +113,18 @@ var u = /*#__PURE__*/ e(c, [["render", l], ["__file", "C:/softpro/surveyor/src/w
66
113
  });
67
114
  //#endregion
68
115
  //#region src/wrappers/BaseEntityWrapper.vue
69
- function f(e, t, r, i, s, c) {
70
- return a(), n(o(i.activeComponent), { key: i.activeKey || "list" });
116
+ function b(e, t, r, i, a, o) {
117
+ return c(), n(u(i.activeComponent), { key: i.activeKey || "list" });
71
118
  }
72
- var p = /*#__PURE__*/ e(d, [["render", f], ["__file", "C:/softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), m = /*@__PURE__*/ i({
119
+ var x = /*#__PURE__*/ e(y, [["render", b], ["__file", "D:/Softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), S = /*@__PURE__*/ o({
73
120
  __name: "Requests",
74
121
  setup(e, { expose: t }) {
75
122
  t();
76
123
  let n = {
77
- Index: r(() => import("./chunks/requests-DQJIhz00.js")),
78
- Card: r(() => import("./chunks/card-CgGOgGyd.js")),
79
- BaseEntityWrapper: p
124
+ Index: a(() => import("./chunks/requests-BCin936Z.js")),
125
+ Card: a(() => import("./chunks/card-fL26_Gvc.js")),
126
+ BaseEntityWrapper: x,
127
+ SurveyorEmbedShell: h
80
128
  };
81
129
  return Object.defineProperty(n, "__isScriptSetup", {
82
130
  enumerable: !1,
@@ -86,21 +134,25 @@ var p = /*#__PURE__*/ e(d, [["render", f], ["__file", "C:/softpro/surveyor/src/w
86
134
  });
87
135
  //#endregion
88
136
  //#region src/wrappers/Requests.vue
89
- function h(e, t, r, i, o, s) {
90
- return a(), n(i.BaseEntityWrapper, {
91
- list: i.Index,
92
- detail: i.Card,
93
- param: "number"
94
- }, null, 8, ["list", "detail"]);
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,
142
+ param: "number"
143
+ }, null, 8, ["list", "detail"])]),
144
+ _: 1
145
+ });
95
146
  }
96
- var g = /*#__PURE__*/ e(m, [["render", h], ["__file", "C:/softpro/surveyor/src/wrappers/Requests.vue"]]), _ = /*@__PURE__*/ i({
147
+ var w = /*#__PURE__*/ e(S, [["render", C], ["__file", "D:/Softpro/surveyor/src/wrappers/Requests.vue"]]), T = /*@__PURE__*/ o({
97
148
  __name: "Organisations",
98
149
  setup(e, { expose: t }) {
99
150
  t();
100
151
  let n = {
101
- Index: r(() => import("./chunks/organizations-CZOINYMq.js")),
102
- Card: r(() => import("./chunks/card-BZn5CDw9.js")),
103
- BaseEntityWrapper: p
152
+ Index: a(() => import("./chunks/organizations-BO1_JETm.js")),
153
+ Card: a(() => import("./chunks/card-B-ftozcq.js")),
154
+ BaseEntityWrapper: x,
155
+ SurveyorEmbedShell: h
104
156
  };
105
157
  return Object.defineProperty(n, "__isScriptSetup", {
106
158
  enumerable: !1,
@@ -110,21 +162,25 @@ var g = /*#__PURE__*/ e(m, [["render", h], ["__file", "C:/softpro/surveyor/src/w
110
162
  });
111
163
  //#endregion
112
164
  //#region src/wrappers/Organisations.vue
113
- function v(e, t, r, i, o, s) {
114
- return a(), n(i.BaseEntityWrapper, {
115
- list: i.Index,
116
- detail: i.Card,
117
- param: "id"
118
- }, null, 8, ["list", "detail"]);
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,
170
+ param: "id"
171
+ }, null, 8, ["list", "detail"])]),
172
+ _: 1
173
+ });
119
174
  }
120
- var y = /*#__PURE__*/ e(_, [["render", v], ["__file", "C:/softpro/surveyor/src/wrappers/Organisations.vue"]]), b = /*@__PURE__*/ i({
175
+ var D = /*#__PURE__*/ e(T, [["render", E], ["__file", "D:/Softpro/surveyor/src/wrappers/Organisations.vue"]]), O = /*@__PURE__*/ o({
121
176
  __name: "Certificates",
122
177
  setup(e, { expose: t }) {
123
178
  t();
124
179
  let n = {
125
- Index: r(() => import("./chunks/certificates-DueBDDvc.js")),
126
- Card: r(() => import("./chunks/card-CNqXSyqX.js")),
127
- BaseEntityWrapper: p
180
+ Index: a(() => import("./chunks/certificates-BSd1i0un.js")),
181
+ Card: a(() => import("./chunks/card-CiNZxAd5.js")),
182
+ BaseEntityWrapper: x,
183
+ SurveyorEmbedShell: h
128
184
  };
129
185
  return Object.defineProperty(n, "__isScriptSetup", {
130
186
  enumerable: !1,
@@ -134,21 +190,25 @@ var y = /*#__PURE__*/ e(_, [["render", v], ["__file", "C:/softpro/surveyor/src/w
134
190
  });
135
191
  //#endregion
136
192
  //#region src/wrappers/Certificates.vue
137
- function x(e, t, r, i, o, s) {
138
- return a(), n(i.BaseEntityWrapper, {
139
- list: i.Index,
140
- detail: i.Card,
141
- param: "id"
142
- }, null, 8, ["list", "detail"]);
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,
198
+ param: "id"
199
+ }, null, 8, ["list", "detail"])]),
200
+ _: 1
201
+ });
143
202
  }
144
- var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "C:/softpro/surveyor/src/wrappers/Certificates.vue"]]), C = /*@__PURE__*/ i({
203
+ var A = /*#__PURE__*/ e(O, [["render", k], ["__file", "D:/Softpro/surveyor/src/wrappers/Certificates.vue"]]), j = /*@__PURE__*/ o({
145
204
  __name: "Users",
146
205
  setup(e, { expose: t }) {
147
206
  t();
148
207
  let n = {
149
- Index: r(() => import("./chunks/users-DlaogjC_.js")),
150
- Card: r(() => import("./chunks/card-9LaB42Ol.js")),
151
- BaseEntityWrapper: p
208
+ Index: a(() => import("./chunks/users-DtTYsgMb.js")),
209
+ Card: a(() => import("./chunks/card-BctFHFZe.js")),
210
+ BaseEntityWrapper: x,
211
+ SurveyorEmbedShell: h
152
212
  };
153
213
  return Object.defineProperty(n, "__isScriptSetup", {
154
214
  enumerable: !1,
@@ -158,21 +218,25 @@ var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "C:/softpro/surveyor/src/w
158
218
  });
159
219
  //#endregion
160
220
  //#region src/wrappers/Users.vue
161
- function w(e, t, r, i, o, s) {
162
- return a(), n(i.BaseEntityWrapper, {
163
- list: i.Index,
164
- detail: i.Card,
165
- param: "id"
166
- }, null, 8, ["list", "detail"]);
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,
226
+ param: "id"
227
+ }, null, 8, ["list", "detail"])]),
228
+ _: 1
229
+ });
167
230
  }
168
- var T = /*#__PURE__*/ e(C, [["render", w], ["__file", "C:/softpro/surveyor/src/wrappers/Users.vue"]]), E = /*@__PURE__*/ i({
231
+ var N = /*#__PURE__*/ e(j, [["render", M], ["__file", "D:/Softpro/surveyor/src/wrappers/Users.vue"]]), P = /*@__PURE__*/ o({
169
232
  __name: "MapLayers",
170
233
  setup(e, { expose: t }) {
171
234
  t();
172
235
  let n = {
173
- Index: r(() => import("./chunks/map-layers-qxWjos2V.js")),
174
- Card: r(() => import("./chunks/card--DHsMNBd.js")),
175
- BaseEntityWrapper: p
236
+ Index: a(() => import("./chunks/map-layers-DnmkOEld.js")),
237
+ Card: a(() => import("./chunks/card-CKD1N0QD.js")),
238
+ BaseEntityWrapper: x,
239
+ SurveyorEmbedShell: h
176
240
  };
177
241
  return Object.defineProperty(n, "__isScriptSetup", {
178
242
  enumerable: !1,
@@ -182,22 +246,26 @@ var T = /*#__PURE__*/ e(C, [["render", w], ["__file", "C:/softpro/surveyor/src/w
182
246
  });
183
247
  //#endregion
184
248
  //#region src/wrappers/MapLayers.vue
185
- function D(e, t, r, i, o, s) {
186
- return a(), n(i.BaseEntityWrapper, {
187
- list: i.Index,
188
- detail: i.Card,
189
- param: "id"
190
- }, null, 8, ["list", "detail"]);
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,
254
+ param: "id"
255
+ }, null, 8, ["list", "detail"])]),
256
+ _: 1
257
+ });
191
258
  }
192
- var O = /*#__PURE__*/ e(E, [["render", D], ["__file", "C:/softpro/surveyor/src/wrappers/MapLayers.vue"]]), k = /*@__PURE__*/ i({
259
+ var I = /*#__PURE__*/ e(P, [["render", F], ["__file", "D:/Softpro/surveyor/src/wrappers/MapLayers.vue"]]), L = /*@__PURE__*/ o({
193
260
  __name: "CabinetRequests",
194
261
  setup(e, { expose: t }) {
195
262
  t();
196
263
  let n = {
197
- Index: r(() => import("./chunks/requests-Bt8fEdRc.js")),
198
- Create: r(() => import("./chunks/create-l28e-bWl.js")),
199
- Card: r(() => import("./chunks/card-DCyBFoDZ.js")),
200
- BaseEntityWrapper: p
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
201
269
  };
202
270
  return Object.defineProperty(n, "__isScriptSetup", {
203
271
  enumerable: !1,
@@ -207,24 +275,30 @@ var O = /*#__PURE__*/ e(E, [["render", D], ["__file", "C:/softpro/surveyor/src/w
207
275
  });
208
276
  //#endregion
209
277
  //#region src/wrappers/CabinetRequests.vue
210
- function A(e, t, r, i, o, s) {
211
- return a(), n(i.BaseEntityWrapper, {
212
- list: i.Index,
213
- detail: i.Card,
214
- create: i.Create,
215
- param: "segment",
216
- "create-value": "new"
217
- }, null, 8, [
218
- "list",
219
- "detail",
220
- "create"
221
- ]);
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,
284
+ param: "segment",
285
+ "create-value": "new"
286
+ }, null, 8, [
287
+ "list",
288
+ "detail",
289
+ "create"
290
+ ])]),
291
+ _: 1
292
+ });
222
293
  }
223
- var j = /*#__PURE__*/ e(k, [["render", A], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), M = /*@__PURE__*/ i({
294
+ var z = /*#__PURE__*/ e(L, [["render", R], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), B = /*@__PURE__*/ o({
224
295
  __name: "CabinetProfile",
225
296
  setup(e, { expose: t }) {
226
297
  t();
227
- let n = { Profile: r(() => import("./chunks/profile-CuxlkEev.js")) };
298
+ let n = {
299
+ Profile: a(() => import("./chunks/profile-Dwwn_4Pr.js")),
300
+ SurveyorEmbedShell: h
301
+ };
228
302
  return Object.defineProperty(n, "__isScriptSetup", {
229
303
  enumerable: !1,
230
304
  value: !0
@@ -233,10 +307,13 @@ var j = /*#__PURE__*/ e(k, [["render", A], ["__file", "C:/softpro/surveyor/src/w
233
307
  });
234
308
  //#endregion
235
309
  //#region src/wrappers/CabinetProfile.vue
236
- function N(e, t, r, i, o, s) {
237
- return a(), n(i.Profile);
310
+ function V(e, t, r, a, o, s) {
311
+ return c(), n(a.SurveyorEmbedShell, null, {
312
+ default: d(() => [i(a.Profile)]),
313
+ _: 1
314
+ });
238
315
  }
239
- var P = /*#__PURE__*/ e(M, [["render", N], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), F = {
316
+ var H = /*#__PURE__*/ e(B, [["render", V], ["__file", "D:/Softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), U = {
240
317
  map: "/map",
241
318
  requests: "/requests",
242
319
  organizations: "/organizations",
@@ -245,15 +322,15 @@ var P = /*#__PURE__*/ e(M, [["render", N], ["__file", "C:/softpro/surveyor/src/w
245
322
  mapLayers: "/map-layers",
246
323
  cabinetRequests: "/requests",
247
324
  cabinetProfile: "/profile"
248
- }, I = Symbol("surveyor-paths");
249
- function L(e = {}) {
325
+ }, W = Symbol("surveyor-paths");
326
+ function G(e = {}) {
250
327
  let t = {
251
- ...F,
328
+ ...U,
252
329
  ...e.paths
253
330
  };
254
331
  return { install(e) {
255
- e.provide(I, t);
332
+ e.provide(W, t);
256
333
  } };
257
334
  }
258
335
  //#endregion
259
- export { P as CabinetProfile, j as CabinetRequests, S as Certificates, u as Map, O as MapLayers, y as Organisations, g as Requests, I as SURVEYOR_PATHS_KEY, T as Users, L as createSurveyorPlugin, F as defaultSurveyorPaths };
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 };
package/package.json CHANGED
@@ -1,77 +1,86 @@
1
- {
2
- "name": "@opengis/surveyor",
3
- "version": "0.0.1",
4
- "type": "module",
5
- "author": "Softpro",
6
- "description": "Surveyor admin and geodesist cabinet UI for embedded host applications",
7
- "main": "./dist/index.js",
8
- "types": "./surveyor-types.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./surveyor-types.d.ts",
12
- "import": "./dist/index.js"
13
- },
14
- "./style.css": "./dist/index.css",
15
- "./plugin.js": "./plugin.js"
16
- },
17
- "files": [
18
- "dist",
19
- "plugin.js",
20
- "server",
21
- "migrations",
22
- "README.npm.md",
23
- "surveyor-types.d.ts"
24
- ],
25
- "scripts": {
26
- "build:lib": "vite build --config vite.lib.config.ts",
27
- "build:admin": "vue-tsc --noEmit -p admin/tsconfig.json && vite build --config admin/vite.config.ts",
28
- "build:cabinet": "vue-tsc --noEmit -p cabinet/tsconfig.json && vite build --config cabinet/vite.config.ts",
29
- "build": "bun run build:lib && bun run build:admin && bun run build:cabinet",
30
- "prepublishOnly": "bun run build:lib",
31
- "start": "bun server/index.ts",
32
- "admin": "bun server/index.ts --admin",
33
- "cabinet": "bun server/index.ts --cabinet",
34
- "prod": "bun server/index.ts --production",
35
- "prod:cabinet": "bun server/index.ts --production --cabinet",
36
- "server:typecheck": "bunx tsc --noEmit -p tsconfig.server.json",
37
- "migrate": "bunx fcore-migrate"
38
- },
39
- "peerDependencies": {
40
- "@opengis/core": "^0.0.37",
41
- "@opengis/filter": "^0.1.59",
42
- "@opengis/form": "^0.1.32",
43
- "vue": "^3.5.0",
44
- "vue-router": "^4.6.0",
45
- "lucide-vue-next": "^0.446.0"
46
- },
47
- "dependencies": {
48
- "@fastify/static": "9.3.0",
49
- "@fastify/swagger": "9.9.0",
50
- "@grpc/grpc-js": "1.14.5",
51
- "@grpc/proto-loader": "0.8.1",
52
- "@opengis/fcore": "^0.0.38",
53
- "fastify": "^5.12.3",
54
- "fastify-plugin": "^5.0.1",
55
- "nodemailer": "^10.0.12"
56
- },
57
- "devDependencies": {
58
- "@opengis/core": "^0.0.37",
59
- "@opengis/filter": "^0.1.59",
60
- "@opengis/form": "^0.1.32",
61
- "@tailwindcss/vite": "^4.3.3",
62
- "@types/node": "^26.4.1",
63
- "@vitejs/plugin-vue": "^6.0.1",
64
- "@vue/tsconfig": "^0.8.1",
65
- "lucide-vue-next": "0.446.0",
66
- "tailwindcss": "^4.3.3",
67
- "typescript": "~6.0.2",
68
- "vite": "^8.2.2",
69
- "vue": "^3.5.22",
70
- "vue-router": "^4.6.4",
71
- "vue-tsc": "^3.0.8"
72
- },
73
- "repository": {
74
- "type": "git",
75
- "url": "https://git.softpro.ua/product/surveyor.git"
76
- }
77
- }
1
+ {
2
+ "name": "@opengis/surveyor",
3
+ "version": "0.0.2",
4
+ "type": "module",
5
+ "author": "Softpro",
6
+ "description": "Surveyor admin and geodesist cabinet UI for embedded host applications",
7
+ "main": "./dist/index.js",
8
+ "types": "./surveyor-types.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./surveyor-types.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./style.css": "./dist/index.css",
15
+ "./plugin": {
16
+ "types": "./plugin.d.ts",
17
+ "import": "./plugin.js"
18
+ },
19
+ "./plugin.js": {
20
+ "types": "./plugin.d.ts",
21
+ "import": "./plugin.js"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "plugin.js",
27
+ "plugin.d.ts",
28
+ "server",
29
+ "migrations",
30
+ "README.md",
31
+ "CHANGELOG.md",
32
+ "surveyor-types.d.ts"
33
+ ],
34
+ "scripts": {
35
+ "build:lib": "vite build --config vite.lib.config.ts",
36
+ "build:admin": "vue-tsc --noEmit -p admin/tsconfig.json && vite build --config admin/vite.config.ts",
37
+ "build:cabinet": "vue-tsc --noEmit -p cabinet/tsconfig.json && vite build --config cabinet/vite.config.ts",
38
+ "build": "bun run build:lib && bun run build:admin && bun run build:cabinet",
39
+ "prepublishOnly": "bun run build:lib",
40
+ "start": "bun server/index.ts",
41
+ "admin": "bun server/index.ts --admin",
42
+ "cabinet": "bun server/index.ts --cabinet",
43
+ "prod": "bun server/index.ts --production",
44
+ "prod:cabinet": "bun server/index.ts --production --cabinet",
45
+ "server:typecheck": "bunx tsc --noEmit -p tsconfig.server.json",
46
+ "migrate": "bunx fcore-migrate"
47
+ },
48
+ "peerDependencies": {
49
+ "@opengis/core": "^0.0.37",
50
+ "@opengis/filter": "^0.1.59",
51
+ "@opengis/form": "^0.1.32",
52
+ "vue": "^3.5.0",
53
+ "vue-router": "^4.6.0",
54
+ "lucide-vue-next": "^0.446.0"
55
+ },
56
+ "dependencies": {
57
+ "@fastify/static": "9.3.0",
58
+ "@fastify/swagger": "9.9.0",
59
+ "@grpc/grpc-js": "1.14.5",
60
+ "@grpc/proto-loader": "0.8.1",
61
+ "@opengis/fcore": "0.0.42",
62
+ "fastify": "^5.12.3",
63
+ "fastify-plugin": "^5.0.1",
64
+ "nodemailer": "^10.0.12"
65
+ },
66
+ "devDependencies": {
67
+ "@opengis/core": "^0.0.37",
68
+ "@opengis/filter": "^0.1.59",
69
+ "@opengis/form": "^0.1.32",
70
+ "@tailwindcss/vite": "^4.3.3",
71
+ "@types/node": "^26.4.1",
72
+ "@vitejs/plugin-vue": "^6.0.1",
73
+ "@vue/tsconfig": "^0.8.1",
74
+ "lucide-vue-next": "0.446.0",
75
+ "tailwindcss": "^4.3.3",
76
+ "typescript": "~6.0.2",
77
+ "vite": "^8.2.2",
78
+ "vue": "^3.5.22",
79
+ "vue-router": "^4.6.4",
80
+ "vue-tsc": "^3.0.8"
81
+ },
82
+ "repository": {
83
+ "type": "git",
84
+ "url": "https://git.softpro.ua/product/surveyor.git"
85
+ }
86
+ }
package/plugin.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import type {
2
+ AfterUserHook,
3
+ AppContext,
4
+ DictionaryDefinition,
5
+ ResourceContract,
6
+ SuggestContract,
7
+ } from '@opengis/fcore';
8
+ import type { FastifyPluginAsync } from 'fastify';
9
+
10
+ export declare const resourcesSurveyor: ResourceContract[];
11
+ export declare const dictionariesSurveyor: DictionaryDefinition[];
12
+ export declare const suggestsSurveyor: SuggestContract[];
13
+ export declare const afterSurveyorUser: AfterUserHook;
14
+ export declare const surveyorPermissions: string[];
15
+ export declare function createSurveyorRoutes(ctx: AppContext): FastifyPluginAsync;
package/plugin.js CHANGED
@@ -1,10 +1,8 @@
1
- import fp from 'fastify-plugin'
2
-
3
- /**
4
- * Fastify plugin: Surveyor API (fcore resources + surveyor routes).
5
- * Requires Bun or a runtime that resolves TypeScript in ./server/embed.ts.
6
- */
7
- export default fp(async function surveyorPlugin(app, opts = {}) {
8
- const { registerSurveyorBackend } = await import('./server/embed.ts')
9
- await registerSurveyorBackend(app, opts)
10
- })
1
+ export { createSurveyorRoutes } from './server/modules/surveyor/route.ts';
2
+ export { default as resourcesSurveyor } from './server/resources/index.ts';
3
+ export { default as dictionariesSurveyor } from './server/dictionaries/index.ts';
4
+ export { default as suggestsSurveyor } from './server/suggests/index.ts';
5
+ export {
6
+ afterSurveyorUser,
7
+ surveyorPermissions,
8
+ } from './server/modules/surveyor/utils/permissions.ts';
package/server/app.ts CHANGED
@@ -6,6 +6,7 @@ import fcoreFastify from '@opengis/fcore/fastify';
6
6
  //import fcoreFastify from '../../../npm/fcore/src/fastify.js';
7
7
 
8
8
  import dictionaries from './dictionaries/index.js';
9
+ import suggests from './suggests/index.js';
9
10
  import resources from './resources/index.js';
10
11
  import { createSurveyorRoutes } from './modules/surveyor/route.js';
11
12
  import { afterSurveyorUser } from './modules/surveyor/utils/permissions.js';
@@ -14,7 +15,7 @@ import viteDevPlugin from './plugins/vite.dev.js';
14
15
  import viteProdPlugin from './plugins/vite.prod.js';
15
16
 
16
17
  export default async function createApp() {
17
- const ctx = await createFCore({ resources, dictionaries, hooks: { afterUser: afterSurveyorUser } }) as AppContext;
18
+ const ctx = await createFCore({ resources, dictionaries, suggests, hooks: { afterUser: afterSurveyorUser } }) as AppContext;
18
19
  const app = Fastify({
19
20
  loggerInstance: ctx.logger,
20
21
  routerOptions: { maxParamLength: 2048 },