@opengis/surveyor 0.0.1 → 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 (46) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +175 -33
  3. package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
  4. package/dist/chunks/{RegistryForm-pvIcFR-V.js → RegistryForm-wG-c8GKf.js} +1 -1
  5. package/dist/chunks/{RegistryFormModal-BjGu7Upv.js → RegistryFormModal-R_iZYqGE.js} +2 -2
  6. package/dist/chunks/{RegistryToolbar-CiUgsjpU.js → RegistryToolbar-322DKUXi.js} +3 -3
  7. package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
  8. package/dist/chunks/{VerifiedBadge-B6droMOf.js → VerifiedBadge-bk0n-rlC.js} +1 -1
  9. package/dist/chunks/{buildSchema-nkA4Y0YG.js → buildSchema-CccjX9TJ.js} +1 -1
  10. package/dist/chunks/card-B_SfARf7.js +1190 -0
  11. package/dist/chunks/card-C3y-j2TA.js +298 -0
  12. package/dist/chunks/{card--DHsMNBd.js → card-CWqi1K-x.js} +107 -106
  13. package/dist/chunks/card-DWpAv92l.js +539 -0
  14. package/dist/chunks/{card-BZn5CDw9.js → card-X9UVFgdR.js} +254 -248
  15. package/dist/chunks/{certificates-DueBDDvc.js → certificates-Cwch72-o.js} +131 -130
  16. package/dist/chunks/{create-l28e-bWl.js → create-DTP9x2uS.js} +278 -265
  17. package/dist/chunks/dom-BSjFG3O0.js +7 -0
  18. package/dist/chunks/{filterQuery-B9XNx1f1.js → filterQuery-CvfZrkTC.js} +1 -1
  19. package/dist/chunks/{form-CdGS1nVO.js → form-Bh6i5n1U.js} +1 -1
  20. package/dist/chunks/{form-QTkkzwbC.js → form-DDjELqZ9.js} +1 -1
  21. package/dist/chunks/{map-layers-qxWjos2V.js → map-layers-sT-gTiD_.js} +130 -125
  22. package/dist/chunks/{map-BW3iOhQg.js → map-qXQe_qam.js} +643 -630
  23. package/dist/chunks/{organizations-CZOINYMq.js → organizations-ByVE2f0c.js} +129 -124
  24. package/dist/chunks/requests-BTpLXrNj.js +233 -0
  25. package/dist/chunks/{resendSurveyorRegistration-DopjOHaM.js → resendSurveyorRegistration-BHTTVIw1.js} +1 -1
  26. package/dist/chunks/{resources-Cl_EvaIy.js → resources-2e8RFqWR.js} +1 -1
  27. package/dist/chunks/{surveyorAccount-BceNQypZ.js → surveyorAccount-C7UiiIYg.js} +1 -1
  28. package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
  29. package/dist/chunks/{users-DlaogjC_.js → users-U1P6xCP4.js} +106 -100
  30. package/dist/index.css +1 -1
  31. package/dist/index.js +215 -98
  32. package/package.json +83 -77
  33. package/plugin.d.ts +15 -0
  34. package/plugin.js +8 -10
  35. package/server/app.ts +2 -1
  36. package/server/resources/surveyor-admin/application_comments.ts +3 -3
  37. package/server/suggests/index.ts +17 -0
  38. package/surveyor-types.d.ts +5 -0
  39. package/README.npm.md +0 -51
  40. package/dist/chunks/AppIcon-C-4QykTP.js +0 -85
  41. package/dist/chunks/BaseModal-DrTTkLmR.js +0 -85
  42. package/dist/chunks/card-9LaB42Ol.js +0 -538
  43. package/dist/chunks/card-CNqXSyqX.js +0 -297
  44. package/dist/chunks/card-CgGOgGyd.js +0 -973
  45. package/dist/chunks/requests-DQJIhz00.js +0 -232
  46. package/server/embed.ts +0 -49
package/dist/index.js CHANGED
@@ -1,12 +1,66 @@
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({
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";
5
+ //#region src/wrappers/SurveyorEmbedShell.vue?vue&type=script&setup=true&lang.ts
6
+ var b = /*@__PURE__*/ d({
7
+ __name: "SurveyorEmbedShell",
8
+ props: {
9
+ card: {
10
+ type: Boolean,
11
+ required: !1,
12
+ default: !0
13
+ },
14
+ fill: {
15
+ type: Boolean,
16
+ required: !1,
17
+ default: !1
18
+ }
19
+ },
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", {
32
+ enumerable: !1,
33
+ value: !0
34
+ }), a;
35
+ }
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", {
42
+ key: 0,
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", {
45
+ key: 1,
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);
51
+ }
52
+ var w = /*#__PURE__*/ r(b, [
53
+ ["render", C],
54
+ ["__scopeId", "data-v-ee198999"],
55
+ ["__file", "C:/softpro/surveyor/src/wrappers/SurveyorEmbedShell.vue"]
56
+ ]), T = /*@__PURE__*/ d({
6
57
  __name: "Map",
7
58
  setup(e, { expose: t }) {
8
59
  t();
9
- let n = { MapPage: r(() => import("./chunks/map-BW3iOhQg.js")) };
60
+ let n = {
61
+ MapPage: u(() => import("./chunks/map-qXQe_qam.js")),
62
+ SurveyorEmbedShell: w
63
+ };
10
64
  return Object.defineProperty(n, "__isScriptSetup", {
11
65
  enumerable: !1,
12
66
  value: !0
@@ -15,10 +69,16 @@ var c = /*@__PURE__*/ i({
15
69
  });
16
70
  //#endregion
17
71
  //#region src/wrappers/Map.vue
18
- function l(e, t, r, i, o, s) {
19
- return a(), n(i.MapPage);
72
+ function E(e, t, n, r, i, o) {
73
+ return m(), a(r.SurveyorEmbedShell, {
74
+ card: !1,
75
+ fill: ""
76
+ }, {
77
+ default: v(() => [l(r.MapPage)]),
78
+ _: 1
79
+ });
20
80
  }
21
- var u = /*#__PURE__*/ e(c, [["render", l], ["__file", "C:/softpro/surveyor/src/wrappers/Map.vue"]]), d = /*@__PURE__*/ i({
81
+ var D = /*#__PURE__*/ r(T, [["render", E], ["__file", "C:/softpro/surveyor/src/wrappers/Map.vue"]]), O = /*@__PURE__*/ d({
22
82
  __name: "BaseEntityWrapper",
23
83
  props: {
24
84
  list: {
@@ -44,18 +104,18 @@ var u = /*#__PURE__*/ e(c, [["render", l], ["__file", "C:/softpro/surveyor/src/w
44
104
  required: !1
45
105
  }
46
106
  },
47
- setup(e, { expose: n }) {
48
- n();
49
- let r = e, i = s(), a = {
50
- props: r,
51
- route: i,
52
- activeKey: t(() => {
53
- 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];
54
114
  return e == null || Array.isArray(e) ? "" : String(e);
55
115
  }),
56
- activeComponent: t(() => {
57
- let e = i.params[r.param], t = e == null || Array.isArray(e) ? "" : String(e);
58
- 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;
59
119
  })
60
120
  };
61
121
  return Object.defineProperty(a, "__isScriptSetup", {
@@ -66,17 +126,18 @@ var u = /*#__PURE__*/ e(c, [["render", l], ["__file", "C:/softpro/surveyor/src/w
66
126
  });
67
127
  //#endregion
68
128
  //#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" });
129
+ function k(e, t, n, r, i, o) {
130
+ return m(), a(_(r.activeComponent), { key: r.activeKey || "list" });
71
131
  }
72
- var p = /*#__PURE__*/ e(d, [["render", f], ["__file", "C:/softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), m = /*@__PURE__*/ i({
132
+ var A = /*#__PURE__*/ r(O, [["render", k], ["__file", "C:/softpro/surveyor/src/wrappers/BaseEntityWrapper.vue"]]), j = /*@__PURE__*/ d({
73
133
  __name: "Requests",
74
134
  setup(e, { expose: t }) {
75
135
  t();
76
136
  let n = {
77
- Index: r(() => import("./chunks/requests-DQJIhz00.js")),
78
- Card: r(() => import("./chunks/card-CgGOgGyd.js")),
79
- BaseEntityWrapper: p
137
+ Index: u(() => import("./chunks/requests-BTpLXrNj.js")),
138
+ Card: u(() => import("./chunks/card-B_SfARf7.js")),
139
+ BaseEntityWrapper: A,
140
+ SurveyorEmbedShell: w
80
141
  };
81
142
  return Object.defineProperty(n, "__isScriptSetup", {
82
143
  enumerable: !1,
@@ -86,21 +147,25 @@ var p = /*#__PURE__*/ e(d, [["render", f], ["__file", "C:/softpro/surveyor/src/w
86
147
  });
87
148
  //#endregion
88
149
  //#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"]);
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,
155
+ param: "number"
156
+ }, null, 8, ["list", "detail"])]),
157
+ _: 1
158
+ });
95
159
  }
96
- var g = /*#__PURE__*/ e(m, [["render", h], ["__file", "C:/softpro/surveyor/src/wrappers/Requests.vue"]]), _ = /*@__PURE__*/ i({
160
+ var N = /*#__PURE__*/ r(j, [["render", M], ["__file", "C:/softpro/surveyor/src/wrappers/Requests.vue"]]), P = /*@__PURE__*/ d({
97
161
  __name: "Organisations",
98
162
  setup(e, { expose: t }) {
99
163
  t();
100
164
  let n = {
101
- Index: r(() => import("./chunks/organizations-CZOINYMq.js")),
102
- Card: r(() => import("./chunks/card-BZn5CDw9.js")),
103
- BaseEntityWrapper: p
165
+ Index: u(() => import("./chunks/organizations-ByVE2f0c.js")),
166
+ Card: u(() => import("./chunks/card-X9UVFgdR.js")),
167
+ BaseEntityWrapper: A,
168
+ SurveyorEmbedShell: w
104
169
  };
105
170
  return Object.defineProperty(n, "__isScriptSetup", {
106
171
  enumerable: !1,
@@ -110,21 +175,25 @@ var g = /*#__PURE__*/ e(m, [["render", h], ["__file", "C:/softpro/surveyor/src/w
110
175
  });
111
176
  //#endregion
112
177
  //#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"]);
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,
183
+ param: "id"
184
+ }, null, 8, ["list", "detail"])]),
185
+ _: 1
186
+ });
119
187
  }
120
- var y = /*#__PURE__*/ e(_, [["render", v], ["__file", "C:/softpro/surveyor/src/wrappers/Organisations.vue"]]), b = /*@__PURE__*/ i({
188
+ var I = /*#__PURE__*/ r(P, [["render", F], ["__file", "C:/softpro/surveyor/src/wrappers/Organisations.vue"]]), L = /*@__PURE__*/ d({
121
189
  __name: "Certificates",
122
190
  setup(e, { expose: t }) {
123
191
  t();
124
192
  let n = {
125
- Index: r(() => import("./chunks/certificates-DueBDDvc.js")),
126
- Card: r(() => import("./chunks/card-CNqXSyqX.js")),
127
- BaseEntityWrapper: p
193
+ Index: u(() => import("./chunks/certificates-Cwch72-o.js")),
194
+ Card: u(() => import("./chunks/card-C3y-j2TA.js")),
195
+ BaseEntityWrapper: A,
196
+ SurveyorEmbedShell: w
128
197
  };
129
198
  return Object.defineProperty(n, "__isScriptSetup", {
130
199
  enumerable: !1,
@@ -134,21 +203,25 @@ var y = /*#__PURE__*/ e(_, [["render", v], ["__file", "C:/softpro/surveyor/src/w
134
203
  });
135
204
  //#endregion
136
205
  //#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"]);
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,
211
+ param: "id"
212
+ }, null, 8, ["list", "detail"])]),
213
+ _: 1
214
+ });
143
215
  }
144
- var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "C:/softpro/surveyor/src/wrappers/Certificates.vue"]]), C = /*@__PURE__*/ i({
216
+ var ee = /*#__PURE__*/ r(L, [["render", R], ["__file", "C:/softpro/surveyor/src/wrappers/Certificates.vue"]]), z = /*@__PURE__*/ d({
145
217
  __name: "Users",
146
218
  setup(e, { expose: t }) {
147
219
  t();
148
220
  let n = {
149
- Index: r(() => import("./chunks/users-DlaogjC_.js")),
150
- Card: r(() => import("./chunks/card-9LaB42Ol.js")),
151
- BaseEntityWrapper: p
221
+ Index: u(() => import("./chunks/users-U1P6xCP4.js")),
222
+ Card: u(() => import("./chunks/card-DWpAv92l.js")),
223
+ BaseEntityWrapper: A,
224
+ SurveyorEmbedShell: w
152
225
  };
153
226
  return Object.defineProperty(n, "__isScriptSetup", {
154
227
  enumerable: !1,
@@ -158,21 +231,25 @@ var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "C:/softpro/surveyor/src/w
158
231
  });
159
232
  //#endregion
160
233
  //#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"]);
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,
239
+ param: "id"
240
+ }, null, 8, ["list", "detail"])]),
241
+ _: 1
242
+ });
167
243
  }
168
- var T = /*#__PURE__*/ e(C, [["render", w], ["__file", "C:/softpro/surveyor/src/wrappers/Users.vue"]]), E = /*@__PURE__*/ i({
244
+ var V = /*#__PURE__*/ r(z, [["render", B], ["__file", "C:/softpro/surveyor/src/wrappers/Users.vue"]]), H = /*@__PURE__*/ d({
169
245
  __name: "MapLayers",
170
246
  setup(e, { expose: t }) {
171
247
  t();
172
248
  let n = {
173
- Index: r(() => import("./chunks/map-layers-qxWjos2V.js")),
174
- Card: r(() => import("./chunks/card--DHsMNBd.js")),
175
- BaseEntityWrapper: p
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
176
253
  };
177
254
  return Object.defineProperty(n, "__isScriptSetup", {
178
255
  enumerable: !1,
@@ -182,22 +259,26 @@ var T = /*#__PURE__*/ e(C, [["render", w], ["__file", "C:/softpro/surveyor/src/w
182
259
  });
183
260
  //#endregion
184
261
  //#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"]);
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,
267
+ param: "id"
268
+ }, null, 8, ["list", "detail"])]),
269
+ _: 1
270
+ });
191
271
  }
192
- var O = /*#__PURE__*/ e(E, [["render", D], ["__file", "C:/softpro/surveyor/src/wrappers/MapLayers.vue"]]), k = /*@__PURE__*/ i({
272
+ var W = /*#__PURE__*/ r(H, [["render", U], ["__file", "C:/softpro/surveyor/src/wrappers/MapLayers.vue"]]), G = /*@__PURE__*/ d({
193
273
  __name: "CabinetRequests",
194
274
  setup(e, { expose: t }) {
195
275
  t();
196
276
  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
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
201
282
  };
202
283
  return Object.defineProperty(n, "__isScriptSetup", {
203
284
  enumerable: !1,
@@ -207,24 +288,30 @@ var O = /*#__PURE__*/ e(E, [["render", D], ["__file", "C:/softpro/surveyor/src/w
207
288
  });
208
289
  //#endregion
209
290
  //#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
- ]);
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,
297
+ param: "segment",
298
+ "create-value": "new"
299
+ }, null, 8, [
300
+ "list",
301
+ "detail",
302
+ "create"
303
+ ])]),
304
+ _: 1
305
+ });
222
306
  }
223
- var j = /*#__PURE__*/ e(k, [["render", A], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), M = /*@__PURE__*/ i({
307
+ var q = /*#__PURE__*/ r(G, [["render", K], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetRequests.vue"]]), J = /*@__PURE__*/ d({
224
308
  __name: "CabinetProfile",
225
309
  setup(e, { expose: t }) {
226
310
  t();
227
- let n = { Profile: r(() => import("./chunks/profile-CuxlkEev.js")) };
311
+ let n = {
312
+ Profile: u(() => import("./chunks/profile-CuxlkEev.js")),
313
+ SurveyorEmbedShell: w
314
+ };
228
315
  return Object.defineProperty(n, "__isScriptSetup", {
229
316
  enumerable: !1,
230
317
  value: !0
@@ -233,10 +320,13 @@ var j = /*#__PURE__*/ e(k, [["render", A], ["__file", "C:/softpro/surveyor/src/w
233
320
  });
234
321
  //#endregion
235
322
  //#region src/wrappers/CabinetProfile.vue
236
- function N(e, t, r, i, o, s) {
237
- return a(), n(i.Profile);
323
+ function Y(e, t, n, r, i, o) {
324
+ return m(), a(r.SurveyorEmbedShell, null, {
325
+ default: v(() => [l(r.Profile)]),
326
+ _: 1
327
+ });
238
328
  }
239
- var P = /*#__PURE__*/ e(M, [["render", N], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), F = {
329
+ var X = /*#__PURE__*/ r(J, [["render", Y], ["__file", "C:/softpro/surveyor/src/wrappers/CabinetProfile.vue"]]), Z = {
240
330
  map: "/map",
241
331
  requests: "/requests",
242
332
  organizations: "/organizations",
@@ -245,15 +335,42 @@ var P = /*#__PURE__*/ e(M, [["render", N], ["__file", "C:/softpro/surveyor/src/w
245
335
  mapLayers: "/map-layers",
246
336
  cabinetRequests: "/requests",
247
337
  cabinetProfile: "/profile"
248
- }, I = Symbol("surveyor-paths");
249
- function L(e = {}) {
338
+ }, Q = Symbol("surveyor-paths");
339
+ function $(e = {}) {
250
340
  let t = {
251
- ...F,
341
+ ...Z,
252
342
  ...e.paths
253
343
  };
254
344
  return { install(e) {
255
- e.provide(I, t);
345
+ e.provide(Q, t);
256
346
  } };
257
347
  }
258
348
  //#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 };
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,77 +1,83 @@
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.3",
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
+ "postcss-prefix-selector": "^2.2.1",
76
+ "tailwindcss": "^4.3.3",
77
+ "typescript": "~6.0.2",
78
+ "vite": "^8.2.2",
79
+ "vue": "^3.5.22",
80
+ "vue-router": "^4.6.4",
81
+ "vue-tsc": "^3.0.8"
82
+ }
83
+ }
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';