@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.
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-Z57iMvFb.js → map-dvA3ayAK.js} +647 -634
  26. package/dist/chunks/{map-layers-DnmkOEld.js → map-layers-sT-gTiD_.js} +130 -125
  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
@@ -1,16 +1,17 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { t as n } from "./AppIcon-CIR6y5uE.js";
4
- import { i as r, n as i } from "./resources-2e8RFqWR.js";
5
- import { r as a } from "./filterQuery-CvfZrkTC.js";
6
- import { a as o, i as s, n as c, r as l, t as u } from "./RegistryToolbar-BV4mYVAc.js";
7
- import { t as d } from "./RegistryFormModal-DfY4z_7r.js";
8
- import { i as f, n as p, o as m, r as h, s as g, t as _ } from "./form-Bh6i5n1U.js";
9
- import { Teleport as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createTextVNode as w, createVNode as T, defineComponent as E, normalizeClass as D, normalizeStyle as O, onMounted as k, onUnmounted as A, openBlock as j, ref as M, toDisplayString as N, vModelText as P, withCtx as F, withDirectives as I, withModifiers as L } from "vue";
10
- import { RouterLink as R, useRouter as z } from "vue-router";
11
- import { confirm as B, notify as V } from "@opengis/core";
3
+ import { n, t as r } from "./useEntityPath-C5Owtidc.js";
4
+ import { i, n as a } from "./resources-2e8RFqWR.js";
5
+ import { r as o } from "./filterQuery-CvfZrkTC.js";
6
+ import { a as ee, i as s, n as c, r as l, t as u } from "./RegistryToolbar-322DKUXi.js";
7
+ import { t as d } from "./SurveyorTeleport-CnSF0Ptl.js";
8
+ import { t as f } from "./RegistryFormModal-R_iZYqGE.js";
9
+ import { i as p, n as te, o as m, r as h, s as g, t as _ } from "./form-Bh6i5n1U.js";
10
+ import { computed as ne, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, normalizeClass as T, normalizeStyle as E, onMounted as D, onUnmounted as O, openBlock as k, ref as A, toDisplayString as j, vModelText as M, withCtx as N, withDirectives as P, withModifiers as F } from "vue";
11
+ import { RouterLink as I, useRouter as L } from "vue-router";
12
+ import { confirm as R, notify as z } from "@opengis/core";
12
13
  //#region admin/src/static/registry/map-layers/table.ts
13
- var H = {
14
+ var B = {
14
15
  resource: g,
15
16
  pageSize: 20,
16
17
  sort: "sort_order",
@@ -52,7 +53,7 @@ var H = {
52
53
  label: "Дії"
53
54
  }
54
55
  ]
55
- }, U = {
56
+ }, V = {
56
57
  resource: g,
57
58
  view: "inline",
58
59
  fields: {
@@ -68,7 +69,7 @@ var H = {
68
69
  label: "Тип",
69
70
  placeholder: "Тип",
70
71
  width: 180,
71
- options: f
72
+ options: p
72
73
  },
73
74
  enabled: {
74
75
  component: "select",
@@ -84,43 +85,42 @@ var H = {
84
85
  }]
85
86
  }
86
87
  }
87
- }, W = /* @__PURE__ */ e({
88
- filter: () => U,
88
+ }, H = /* @__PURE__ */ e({
89
+ filter: () => V,
89
90
  form: () => _,
90
91
  resource: () => g,
91
- table: () => H
92
- }), G = /*@__PURE__*/ E({
92
+ table: () => B
93
+ }), U = /*@__PURE__*/ w({
93
94
  __name: "index",
94
95
  setup(e, { expose: t }) {
95
96
  t();
96
- let _ = H.columns, { query: v, filterValues: b, page: x, pageSize: S, listFilters: C, bindListLoader: w, refreshList: T } = o({ buildFilters: a }), E = M([]), D = M(0), O = M(!1), j = M(""), N = M(!1), P = M(null), F = M({
97
+ let _ = B.columns, { query: v, filterValues: y, page: b, pageSize: x, listFilters: S, bindListLoader: C, refreshList: w } = ee({ buildFilters: o }), T = A([]), E = A(0), k = A(!1), j = A(""), M = A(!1), N = A(null), P = A({
97
98
  top: "0px",
98
99
  left: "0px"
99
- }), I = z(), L = y(() => O.value ? "Завантаження…" : j.value ? j.value : "Шарів за заданими фільтрами не знайдено.");
100
- function U(e, t) {
101
- if (P.value === e) {
102
- P.value = null;
100
+ }), F = L(), { detailPath: V } = r(), U = ne(() => k.value ? "Завантаження…" : j.value ? j.value : "Шарів за заданими фільтрами не знайдено.");
101
+ function W(e, t) {
102
+ if (N.value === e) {
103
+ N.value = null;
103
104
  return;
104
105
  }
105
106
  let n = t.currentTarget.getBoundingClientRect(), r = window.innerHeight - n.bottom < 100 ? n.top - 92 - 4 : n.bottom + 4, i = Math.min(Math.max(8, n.right - 176), window.innerWidth - 176 - 8);
106
- F.value = {
107
+ P.value = {
107
108
  top: `${r}px`,
108
109
  left: `${i}px`
109
- }, P.value = e;
110
+ }, N.value = e;
110
111
  }
111
112
  function G(e) {
112
113
  let t = e.target;
113
- t instanceof Element && t.closest("[data-row-actions]") || (P.value = null);
114
+ t instanceof Element && t.closest("[data-row-actions]") || (N.value = null);
114
115
  }
115
116
  function K(e) {
116
- P.value = null, I.push({
117
- name: "map-layer-detail",
118
- params: { id: e.layer_id },
117
+ N.value = null, F.push({
118
+ path: V(e.layer_id),
119
119
  query: { edit: "1" }
120
120
  });
121
121
  }
122
122
  function q(e) {
123
- P.value = null, B({
123
+ N.value = null, R({
124
124
  title: "Підтвердження",
125
125
  type: "error",
126
126
  message: `Видалити шар «${e.name}»?`,
@@ -128,9 +128,9 @@ var H = {
128
128
  cancelButtonText: "Скасувати",
129
129
  onConfirm: async () => {
130
130
  try {
131
- await i(g, e.layer_id), E.value.length === 1 && x.value > 1 ? --x.value : await Y();
131
+ await a(g, e.layer_id), T.value.length === 1 && b.value > 1 ? --b.value : await Y();
132
132
  } catch (e) {
133
- V({
133
+ z({
134
134
  type: "error",
135
135
  title: "Помилка видалення",
136
136
  message: e instanceof Error ? e.message : "Не вдалося видалити шар"
@@ -142,62 +142,63 @@ var H = {
142
142
  let J = 0;
143
143
  async function Y() {
144
144
  let e = ++J;
145
- O.value = !0, j.value = "";
145
+ k.value = !0, j.value = "";
146
146
  try {
147
- let t = await r(g, {
148
- page: x.value,
149
- limit: S.value,
150
- sort: H.sort,
147
+ let t = await i(g, {
148
+ page: b.value,
149
+ limit: x.value,
150
+ sort: B.sort,
151
151
  search: v.value.trim() || void 0,
152
- filters: C.value
152
+ filters: S.value
153
153
  });
154
154
  if (e !== J) return;
155
- E.value = t.rows ?? [], D.value = Number(t.total) || 0;
155
+ T.value = t.rows ?? [], E.value = Number(t.total) || 0;
156
156
  } catch (t) {
157
157
  if (e !== J) return;
158
- E.value = [], D.value = 0, j.value = t instanceof Error ? t.message : "Не вдалося завантажити шари";
158
+ T.value = [], E.value = 0, j.value = t instanceof Error ? t.message : "Не вдалося завантажити шари";
159
159
  } finally {
160
- e === J && (O.value = !1);
160
+ e === J && (k.value = !1);
161
161
  }
162
162
  }
163
- w(() => {
164
- P.value = null, Y();
163
+ C(() => {
164
+ N.value = null, Y();
165
165
  });
166
166
  function X(e) {
167
- b.value = e;
167
+ y.value = e;
168
168
  }
169
169
  function Z() {
170
- x.value === 1 ? T(() => {
170
+ b.value === 1 ? w(() => {
171
171
  Y();
172
- }) : x.value = 1;
172
+ }) : b.value = 1;
173
173
  }
174
174
  function Q(e) {
175
- return e?.length ? e.map((e) => m(p, e)).join(", ") : "—";
175
+ return e?.length ? e.map((e) => m(te, e)).join(", ") : "—";
176
176
  }
177
- k(() => {
177
+ D(() => {
178
178
  document.addEventListener("click", G), window.addEventListener("resize", G), window.addEventListener("scroll", G, !0);
179
- }), A(() => {
179
+ }), O(() => {
180
180
  document.removeEventListener("click", G), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0);
181
181
  });
182
182
  let $ = {
183
183
  columns: _,
184
184
  query: v,
185
- filterValues: b,
186
- page: x,
187
- pageSize: S,
188
- listFilters: C,
189
- bindListLoader: w,
190
- refreshList: T,
191
- rows: E,
192
- total: D,
193
- loading: O,
185
+ filterValues: y,
186
+ page: b,
187
+ pageSize: x,
188
+ listFilters: S,
189
+ bindListLoader: C,
190
+ refreshList: w,
191
+ rows: T,
192
+ total: E,
193
+ loading: k,
194
194
  error: j,
195
- showAddModal: N,
196
- actionsOpen: P,
197
- menuStyle: F,
198
- router: I,
199
- emptyText: L,
200
- toggleActions: U,
195
+ showAddModal: M,
196
+ actionsOpen: N,
197
+ menuStyle: P,
198
+ router: F,
199
+ detailPath: V,
200
+ emptyText: U,
201
+ toggleActions: W,
201
202
  closeActions: G,
202
203
  editLayer: K,
203
204
  removeLayer: q,
@@ -223,22 +224,23 @@ var H = {
223
224
  actions: "w-[80px]"
224
225
  },
225
226
  AppIcon: n,
227
+ SurveyorTeleport: d,
226
228
  get RouterLink() {
227
- return R;
229
+ return I;
228
230
  },
229
231
  PageHeader: s,
230
232
  RegistryTable: l,
231
233
  TablePagination: c,
232
- RegistryFormModal: d,
234
+ RegistryFormModal: f,
233
235
  RegistryToolbar: u,
234
236
  get config() {
235
- return W;
237
+ return H;
236
238
  },
237
239
  get LAYER_GROUP_OPTIONS() {
238
240
  return h;
239
241
  },
240
242
  get LAYER_TYPE_OPTIONS() {
241
- return f;
243
+ return p;
242
244
  },
243
245
  get optionText() {
244
246
  return m;
@@ -249,68 +251,68 @@ var H = {
249
251
  value: !0
250
252
  }), $;
251
253
  }
252
- }), K = { class: "px-4" }, q = { class: "relative block" }, J = { class: "mt-3 flex items-center justify-between border-t border-slate-100 pt-3 text-xs text-slate-400" }, Y = { class: "font-semibold text-slate-600" }, X = {
254
+ }), W = { class: "px-4" }, G = { class: "relative block" }, K = { class: "mt-3 flex items-center justify-between border-t border-slate-100 pt-3 text-xs text-slate-400" }, q = { class: "font-semibold text-slate-600" }, J = {
253
255
  key: 1,
254
256
  class: "text-xs text-slate-600"
255
- }, Z = {
257
+ }, Y = {
256
258
  key: 2,
257
259
  class: "text-slate-600"
258
- }, Q = {
260
+ }, X = {
259
261
  key: 3,
260
262
  class: "text-slate-600"
261
- }, $ = {
263
+ }, Z = {
262
264
  key: 4,
263
265
  class: "block break-words text-slate-600"
264
- }, ee = {
266
+ }, Q = {
265
267
  key: 5,
266
268
  class: "text-slate-600"
267
- }, te = {
269
+ }, $ = {
268
270
  key: 6,
269
271
  class: "text-slate-600"
270
- }, ne = {
272
+ }, re = {
271
273
  key: 8,
272
274
  class: "flex justify-center"
273
- }, re = [
275
+ }, ie = [
274
276
  "aria-expanded",
275
277
  "aria-label",
276
278
  "onClick"
277
- ], ie = ["onClick"], ae = ["onClick"];
278
- function oe(e, t, n, r, i, a) {
279
- return j(), S("div", null, [
280
- T(r.PageHeader, {
279
+ ], ae = ["onClick"], oe = ["onClick"];
280
+ function se(e, t, n, r, i, a) {
281
+ return k(), b("div", null, [
282
+ C(r.PageHeader, {
281
283
  title: "Шари карти",
282
284
  subtitle: "Базові та додаткові шари для карти, форми окреслення геометрії та картки заявки"
283
285
  }, {
284
- default: F(() => [C("button", {
286
+ default: N(() => [x("button", {
285
287
  type: "button",
286
288
  class: "inline-flex h-10 items-center justify-center gap-2 rounded-lg bg-brand-600 px-4 text-sm font-semibold text-white shadow-sm transition-colors hover:bg-brand-700",
287
289
  onClick: t[0] ||= (e) => r.showAddModal = !0
288
- }, [T(r.AppIcon, {
290
+ }, [C(r.AppIcon, {
289
291
  name: "plus",
290
292
  class: "h-4 w-4"
291
- }), t[5] ||= w(" Додати ", -1)])]),
293
+ }), t[5] ||= S(" Додати ", -1)])]),
292
294
  _: 1
293
295
  }),
294
- C("section", K, [
295
- T(r.RegistryToolbar, {
296
+ x("section", W, [
297
+ C(r.RegistryToolbar, {
296
298
  "search-min": "min-w-[220px]",
297
299
  "filter-config": r.config.filter,
298
300
  "filter-values": r.filterValues,
299
301
  "onUpdate:filterValues": r.onFilterValuesUpdate
300
302
  }, {
301
- search: F(() => [C("label", q, [T(r.AppIcon, {
303
+ search: N(() => [x("label", G, [C(r.AppIcon, {
302
304
  name: "search",
303
305
  class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"
304
- }), I(C("input", {
306
+ }), P(x("input", {
305
307
  "onUpdate:modelValue": t[1] ||= (e) => r.query = e,
306
308
  type: "search",
307
309
  placeholder: "Пошук за назвою або кодом…",
308
310
  class: "h-10 w-full rounded-lg border border-slate-200 bg-white pl-9 pr-3 text-sm text-slate-700 outline-none transition-colors placeholder:text-slate-400 focus:border-brand-400 focus:ring-1 focus:ring-brand-400"
309
- }, null, 512), [[P, r.query]])])]),
311
+ }, null, 512), [[M, r.query]])])]),
310
312
  _: 1
311
313
  }, 8, ["filter-config", "filter-values"]),
312
- C("div", J, [C("span", null, [t[6] ||= w("Знайдено шарів: ", -1), C("strong", Y, N(r.total), 1)])]),
313
- T(r.RegistryTable, {
314
+ x("div", K, [x("span", null, [t[6] ||= S("Знайдено шарів: ", -1), x("strong", q, j(r.total), 1)])]),
315
+ C(r.RegistryTable, {
314
316
  class: "mt-3",
315
317
  rows: r.rows,
316
318
  columns: r.columns,
@@ -321,50 +323,53 @@ function oe(e, t, n, r, i, a) {
321
323
  "cell-class": { sort_order: "text-right tabular-nums" },
322
324
  "empty-text": r.emptyText
323
325
  }, {
324
- cell: F(({ row: e, column: n }) => [n === "name" ? (j(), b(r.RouterLink, {
326
+ cell: N(({ row: e, column: n }) => [n === "name" ? (k(), v(r.RouterLink, {
325
327
  key: 0,
326
- to: `/map-layers/${e.layer_id}`,
328
+ to: r.detailPath(e.layer_id),
327
329
  class: "block w-full max-w-full break-words text-left font-semibold text-brand-700 hover:text-brand-900 hover:underline"
328
330
  }, {
329
- default: F(() => [w(N(e.name), 1)]),
331
+ default: N(() => [S(j(e.name), 1)]),
330
332
  _: 2
331
- }, 1032, ["to"])) : n === "code" ? (j(), S("code", X, N(e.code), 1)) : n === "layer_group" ? (j(), S("span", Z, N(r.optionText(r.LAYER_GROUP_OPTIONS, e.layer_group)), 1)) : n === "layer_type" ? (j(), S("span", Q, N(r.optionText(r.LAYER_TYPE_OPTIONS, e.layer_type)), 1)) : n === "components" ? (j(), S("span", $, N(r.componentsText(e.components)), 1)) : n === "sort_order" ? (j(), S("span", ee, N(e.sort_order ?? 0), 1)) : n === "is_default" ? (j(), S("span", te, N(e.is_default ? "Так" : "—"), 1)) : n === "enabled" ? (j(), S("span", {
333
+ }, 1032, ["to"])) : n === "code" ? (k(), b("code", J, j(e.code), 1)) : n === "layer_group" ? (k(), b("span", Y, j(r.optionText(r.LAYER_GROUP_OPTIONS, e.layer_group)), 1)) : n === "layer_type" ? (k(), b("span", X, j(r.optionText(r.LAYER_TYPE_OPTIONS, e.layer_type)), 1)) : n === "components" ? (k(), b("span", Z, j(r.componentsText(e.components)), 1)) : n === "sort_order" ? (k(), b("span", Q, j(e.sort_order ?? 0), 1)) : n === "is_default" ? (k(), b("span", $, j(e.is_default ? "Так" : "—"), 1)) : n === "enabled" ? (k(), b("span", {
332
334
  key: 7,
333
- class: D(["inline-flex rounded-full px-2 py-0.5 text-xs font-medium", e.enabled ? "bg-emerald-50 text-emerald-700" : "bg-slate-100 text-slate-500"])
334
- }, N(e.enabled ? "Увімкнено" : "Вимкнено"), 3)) : n === "actions" ? (j(), S("div", ne, [C("button", {
335
+ class: T(["inline-flex rounded-full px-2 py-0.5 text-xs font-medium", e.enabled ? "bg-emerald-50 text-emerald-700" : "bg-slate-100 text-slate-500"])
336
+ }, j(e.enabled ? "Увімкнено" : "Вимкнено"), 3)) : n === "actions" ? (k(), b("div", re, [x("button", {
335
337
  type: "button",
336
338
  "data-row-actions": "",
337
339
  class: "inline-flex h-8 w-8 items-center justify-center rounded-lg text-slate-400 transition-colors hover:bg-brand-50 hover:text-brand-700",
338
340
  "aria-expanded": r.actionsOpen === e.layer_id,
339
341
  "aria-label": `Дії для ${e.name}`,
340
- onClick: L((t) => r.toggleActions(e.layer_id, t), ["stop"])
341
- }, [T(r.AppIcon, {
342
+ onClick: F((t) => r.toggleActions(e.layer_id, t), ["stop"])
343
+ }, [C(r.AppIcon, {
342
344
  name: "more-vertical",
343
345
  class: "h-4 w-4"
344
- })], 8, re), (j(), b(v, { to: "body" }, [r.actionsOpen === e.layer_id ? (j(), S("div", {
345
- key: 0,
346
- "data-row-actions": "",
347
- class: "fixed z-50 w-44 overflow-hidden rounded-lg border border-slate-200 bg-white py-1 text-left shadow-card-hover",
348
- style: O(r.menuStyle)
349
- }, [
350
- C("button", {
351
- type: "button",
352
- class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-slate-700 transition-colors hover:bg-slate-50",
353
- onClick: (t) => r.editLayer(e)
354
- }, [T(r.AppIcon, {
355
- name: "pencil",
356
- class: "h-4 w-4 text-slate-400"
357
- }), t[7] ||= w(" Редагувати ", -1)], 8, ie),
358
- t[9] ||= C("div", { class: "my-1 border-t border-slate-100" }, null, -1),
359
- C("button", {
360
- type: "button",
361
- class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-red-600 transition-colors hover:bg-red-50",
362
- onClick: (t) => r.removeLayer(e)
363
- }, [T(r.AppIcon, {
364
- name: "trash-2",
365
- class: "h-4 w-4"
366
- }), t[8] ||= w(" Видалити ", -1)], 8, ae)
367
- ], 4)) : x("", !0)]))])) : x("", !0)]),
346
+ })], 8, ie), C(r.SurveyorTeleport, null, {
347
+ default: N(() => [r.actionsOpen === e.layer_id ? (k(), b("div", {
348
+ key: 0,
349
+ "data-row-actions": "",
350
+ class: "fixed z-50 w-44 overflow-hidden rounded-lg border border-slate-200 bg-white py-1 text-left shadow-card-hover",
351
+ style: E(r.menuStyle)
352
+ }, [
353
+ x("button", {
354
+ type: "button",
355
+ class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-slate-700 transition-colors hover:bg-slate-50",
356
+ onClick: (t) => r.editLayer(e)
357
+ }, [C(r.AppIcon, {
358
+ name: "pencil",
359
+ class: "h-4 w-4 text-slate-400"
360
+ }), t[7] ||= S(" Редагувати ", -1)], 8, ae),
361
+ t[9] ||= x("div", { class: "my-1 border-t border-slate-100" }, null, -1),
362
+ x("button", {
363
+ type: "button",
364
+ class: "flex w-full items-center gap-2 px-3 py-2.5 text-sm text-red-600 transition-colors hover:bg-red-50",
365
+ onClick: (t) => r.removeLayer(e)
366
+ }, [C(r.AppIcon, {
367
+ name: "trash-2",
368
+ class: "h-4 w-4"
369
+ }), t[8] ||= S(" Видалити ", -1)], 8, oe)
370
+ ], 4)) : y("", !0)]),
371
+ _: 2
372
+ }, 1024)])) : y("", !0)]),
368
373
  _: 1
369
374
  }, 8, [
370
375
  "rows",
@@ -372,7 +377,7 @@ function oe(e, t, n, r, i, a) {
372
377
  "visible-keys",
373
378
  "empty-text"
374
379
  ]),
375
- r.total > 0 ? (j(), b(r.TablePagination, {
380
+ r.total > 0 ? (k(), v(r.TablePagination, {
376
381
  key: 0,
377
382
  page: r.page,
378
383
  "onUpdate:page": t[2] ||= (e) => r.page = e,
@@ -383,9 +388,9 @@ function oe(e, t, n, r, i, a) {
383
388
  "page",
384
389
  "page-size",
385
390
  "total"
386
- ])) : x("", !0)
391
+ ])) : y("", !0)
387
392
  ]),
388
- T(r.RegistryFormModal, {
393
+ C(r.RegistryFormModal, {
389
394
  modelValue: r.showAddModal,
390
395
  "onUpdate:modelValue": t[4] ||= (e) => r.showAddModal = e,
391
396
  title: "Новий шар карти",
@@ -395,6 +400,6 @@ function oe(e, t, n, r, i, a) {
395
400
  }, null, 8, ["modelValue", "config"])
396
401
  ]);
397
402
  }
398
- var se = /*#__PURE__*/ t(G, [["render", oe], ["__file", "D:/Softpro/surveyor/admin/src/pages/map-layers/index.vue"]]);
403
+ var ce = /*#__PURE__*/ t(U, [["render", se], ["__file", "C:/softpro/surveyor/admin/src/pages/map-layers/index.vue"]]);
399
404
  //#endregion
400
- export { se as default };
405
+ export { ce as default };
@@ -1,4 +1,4 @@
1
- import "./profile-ByahbF4B.js";
1
+ import "./profile-DxZHxGum.js";
2
2
  import { ref as e } from "vue";
3
3
  //#region cabinet/src/api/organizations.ts
4
4
  var t = "surveyor_active_org_id";