@opengis/surveyor 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AppealDetailField-CI-1qhs3.js → AppealDetailField-DNRGpnyD.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-CSXnfarR.js → AppealStatusBadge-CefimzY3.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-DYBe9hqP.js → AppealStatusBadge-Cu-UzdzA.js} +1 -1
- package/dist/chunks/{ApplicationHistorySection-C0wwhwA4.js → ApplicationHistorySection-PwToBfej.js} +4 -4
- package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
- package/dist/chunks/{FormFilePicker-C3XQw50i.js → FormFilePicker-CKVdZJU9.js} +2 -2
- package/dist/chunks/{MapLayerMenu-DjYCxEc3.js → MapLayerMenu-AUeTqgEp.js} +1 -1
- package/dist/chunks/{RegistryForm-CEUqFmsF.js → RegistryForm-wG-c8GKf.js} +1 -1
- package/dist/chunks/{RegistryFormModal-DfY4z_7r.js → RegistryFormModal-R_iZYqGE.js} +3 -3
- package/dist/chunks/{RegistryToolbar-BV4mYVAc.js → RegistryToolbar-322DKUXi.js} +6 -6
- package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
- package/dist/chunks/{UserAccessBadge-D8JfgGfN.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
- package/dist/chunks/{UserTypeBadge-YIwwoCho.js → UserTypeBadge-LvnMuKGo.js} +1 -1
- package/dist/chunks/{VerifiedBadge-Bba8WnuB.js → VerifiedBadge-bk0n-rlC.js} +2 -2
- package/dist/chunks/{applications-BB9JRcgl.js → applications-CsCsndMV.js} +1 -1
- package/dist/chunks/{card-fL26_Gvc.js → card-B_SfARf7.js} +358 -357
- package/dist/chunks/card-C3y-j2TA.js +298 -0
- package/dist/chunks/{card-CKD1N0QD.js → card-CWqi1K-x.js} +107 -106
- package/dist/chunks/{card-DUtDfwMk.js → card-DCyBFoDZ.js} +6 -6
- package/dist/chunks/card-DWpAv92l.js +539 -0
- package/dist/chunks/{card-B-ftozcq.js → card-X9UVFgdR.js} +256 -250
- package/dist/chunks/{certificates-BSd1i0un.js → certificates-Cwch72-o.js} +131 -130
- package/dist/chunks/{create-DxMC_IL1.js → create-DTP9x2uS.js} +283 -270
- package/dist/chunks/dom-BSjFG3O0.js +7 -0
- package/dist/chunks/{map-Z57iMvFb.js → map-dvA3ayAK.js} +647 -634
- package/dist/chunks/{map-layers-DnmkOEld.js → map-layers-sT-gTiD_.js} +130 -125
- package/dist/chunks/{organizations-BbYipLwk.js → organizations-BtuMZ5s_.js} +1 -1
- package/dist/chunks/{organizations-BO1_JETm.js → organizations-ByVE2f0c.js} +128 -123
- package/dist/chunks/{profile-Dwwn_4Pr.js → profile-CuxlkEev.js} +3 -3
- package/dist/chunks/{profile-ByahbF4B.js → profile-DxZHxGum.js} +1 -1
- package/dist/chunks/requests-BTpLXrNj.js +233 -0
- package/dist/chunks/{requests-CFv5wwAN.js → requests-Bt8fEdRc.js} +7 -7
- package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
- package/dist/chunks/{users-DtTYsgMb.js → users-U1P6xCP4.js} +105 -99
- package/dist/index.css +1 -1
- package/dist/index.js +154 -114
- package/package.json +2 -5
- package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
- package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
- package/surveyor-types.d.ts +5 -0
- package/dist/chunks/AppIcon-CIR6y5uE.js +0 -85
- package/dist/chunks/BaseModal-C7PVYz0m.js +0 -85
- package/dist/chunks/card-BctFHFZe.js +0 -538
- package/dist/chunks/card-CiNZxAd5.js +0 -297
- package/dist/chunks/requests-BCin936Z.js +0 -232
|
@@ -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
|
|
4
|
-
import { i
|
|
5
|
-
import { r as
|
|
6
|
-
import { a as
|
|
7
|
-
import { t as d } from "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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
|
|
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
|
-
},
|
|
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:
|
|
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
|
-
},
|
|
88
|
-
filter: () =>
|
|
88
|
+
}, H = /* @__PURE__ */ e({
|
|
89
|
+
filter: () => V,
|
|
89
90
|
form: () => _,
|
|
90
91
|
resource: () => g,
|
|
91
|
-
table: () =>
|
|
92
|
-
}),
|
|
92
|
+
table: () => B
|
|
93
|
+
}), U = /*@__PURE__*/ w({
|
|
93
94
|
__name: "index",
|
|
94
95
|
setup(e, { expose: t }) {
|
|
95
96
|
t();
|
|
96
|
-
let _ =
|
|
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
|
-
}),
|
|
100
|
-
function
|
|
101
|
-
if (
|
|
102
|
-
|
|
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
|
-
|
|
107
|
+
P.value = {
|
|
107
108
|
top: `${r}px`,
|
|
108
109
|
left: `${i}px`
|
|
109
|
-
},
|
|
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]") || (
|
|
114
|
+
t instanceof Element && t.closest("[data-row-actions]") || (N.value = null);
|
|
114
115
|
}
|
|
115
116
|
function K(e) {
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
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
|
|
131
|
+
await a(g, e.layer_id), T.value.length === 1 && b.value > 1 ? --b.value : await Y();
|
|
132
132
|
} catch (e) {
|
|
133
|
-
|
|
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
|
-
|
|
145
|
+
k.value = !0, j.value = "";
|
|
146
146
|
try {
|
|
147
|
-
let t = await
|
|
148
|
-
page:
|
|
149
|
-
limit:
|
|
150
|
-
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:
|
|
152
|
+
filters: S.value
|
|
153
153
|
});
|
|
154
154
|
if (e !== J) return;
|
|
155
|
-
|
|
155
|
+
T.value = t.rows ?? [], E.value = Number(t.total) || 0;
|
|
156
156
|
} catch (t) {
|
|
157
157
|
if (e !== J) return;
|
|
158
|
-
|
|
158
|
+
T.value = [], E.value = 0, j.value = t instanceof Error ? t.message : "Не вдалося завантажити шари";
|
|
159
159
|
} finally {
|
|
160
|
-
e === J && (
|
|
160
|
+
e === J && (k.value = !1);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
C(() => {
|
|
164
|
+
N.value = null, Y();
|
|
165
165
|
});
|
|
166
166
|
function X(e) {
|
|
167
|
-
|
|
167
|
+
y.value = e;
|
|
168
168
|
}
|
|
169
169
|
function Z() {
|
|
170
|
-
|
|
170
|
+
b.value === 1 ? w(() => {
|
|
171
171
|
Y();
|
|
172
|
-
}) :
|
|
172
|
+
}) : b.value = 1;
|
|
173
173
|
}
|
|
174
174
|
function Q(e) {
|
|
175
|
-
return e?.length ? e.map((e) => m(
|
|
175
|
+
return e?.length ? e.map((e) => m(te, e)).join(", ") : "—";
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
D(() => {
|
|
178
178
|
document.addEventListener("click", G), window.addEventListener("resize", G), window.addEventListener("scroll", G, !0);
|
|
179
|
-
}),
|
|
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:
|
|
186
|
-
page:
|
|
187
|
-
pageSize:
|
|
188
|
-
listFilters:
|
|
189
|
-
bindListLoader:
|
|
190
|
-
refreshList:
|
|
191
|
-
rows:
|
|
192
|
-
total:
|
|
193
|
-
loading:
|
|
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:
|
|
196
|
-
actionsOpen:
|
|
197
|
-
menuStyle:
|
|
198
|
-
router:
|
|
199
|
-
|
|
200
|
-
|
|
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
|
|
229
|
+
return I;
|
|
228
230
|
},
|
|
229
231
|
PageHeader: s,
|
|
230
232
|
RegistryTable: l,
|
|
231
233
|
TablePagination: c,
|
|
232
|
-
RegistryFormModal:
|
|
234
|
+
RegistryFormModal: f,
|
|
233
235
|
RegistryToolbar: u,
|
|
234
236
|
get config() {
|
|
235
|
-
return
|
|
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
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
257
|
+
}, Y = {
|
|
256
258
|
key: 2,
|
|
257
259
|
class: "text-slate-600"
|
|
258
|
-
},
|
|
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
|
-
},
|
|
266
|
+
}, Q = {
|
|
265
267
|
key: 5,
|
|
266
268
|
class: "text-slate-600"
|
|
267
|
-
},
|
|
269
|
+
}, $ = {
|
|
268
270
|
key: 6,
|
|
269
271
|
class: "text-slate-600"
|
|
270
|
-
},
|
|
272
|
+
}, re = {
|
|
271
273
|
key: 8,
|
|
272
274
|
class: "flex justify-center"
|
|
273
|
-
},
|
|
275
|
+
}, ie = [
|
|
274
276
|
"aria-expanded",
|
|
275
277
|
"aria-label",
|
|
276
278
|
"onClick"
|
|
277
|
-
],
|
|
278
|
-
function
|
|
279
|
-
return
|
|
280
|
-
|
|
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:
|
|
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
|
-
}, [
|
|
290
|
+
}, [C(r.AppIcon, {
|
|
289
291
|
name: "plus",
|
|
290
292
|
class: "h-4 w-4"
|
|
291
|
-
}), t[5] ||=
|
|
293
|
+
}), t[5] ||= S(" Додати ", -1)])]),
|
|
292
294
|
_: 1
|
|
293
295
|
}),
|
|
294
|
-
|
|
295
|
-
|
|
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:
|
|
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
|
-
}),
|
|
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), [[
|
|
311
|
+
}, null, 512), [[M, r.query]])])]),
|
|
310
312
|
_: 1
|
|
311
313
|
}, 8, ["filter-config", "filter-values"]),
|
|
312
|
-
|
|
313
|
-
|
|
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:
|
|
326
|
+
cell: N(({ row: e, column: n }) => [n === "name" ? (k(), v(r.RouterLink, {
|
|
325
327
|
key: 0,
|
|
326
|
-
to:
|
|
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:
|
|
331
|
+
default: N(() => [S(j(e.name), 1)]),
|
|
330
332
|
_: 2
|
|
331
|
-
}, 1032, ["to"])) : n === "code" ? (
|
|
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:
|
|
334
|
-
},
|
|
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:
|
|
341
|
-
}, [
|
|
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,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
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 ? (
|
|
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
|
-
])) :
|
|
391
|
+
])) : y("", !0)
|
|
387
392
|
]),
|
|
388
|
-
|
|
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
|
|
403
|
+
var ce = /*#__PURE__*/ t(U, [["render", se], ["__file", "C:/softpro/surveyor/admin/src/pages/map-layers/index.vue"]]);
|
|
399
404
|
//#endregion
|
|
400
|
-
export {
|
|
405
|
+
export { ce as default };
|