@opengis/gis 0.2.120 → 0.2.122
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/README.md +148 -148
- package/dist/{CardIcon-Dx_myDwM.js → CardIcon-Bu_mm6QX.js} +1 -1
- package/dist/{EntityCreatePage-Ch8NU_Yw.js → EntityCreatePage-Da8XgBKU.js} +14 -14
- package/dist/{EntityEditPage-CRRcW7FL.js → EntityEditPage-QktKEAxz.js} +27 -27
- package/dist/{EntityTablePage-DY9v1aWL.js → EntityTablePage-BQKMFYxV.js} +26 -26
- package/dist/{ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-DgQHLSak.js → ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-CF1EEob3.js} +1 -1
- package/dist/{HeaderActions.vue_vue_type_script_setup_true_lang-BQ32ioLC.js → HeaderActions.vue_vue_type_script_setup_true_lang-B2ErIdAR.js} +30 -30
- package/dist/{MapSettings-CaGPr5uG.js → MapSettings-eE5rNSLf.js} +33 -33
- package/dist/{RastersTablePage-CJyO2DoI.js → RastersTablePage-B_vF9yl7.js} +29 -29
- package/dist/{cartocss-Bhat1m61.js → cartocss-DcepkzNt.js} +12 -12
- package/dist/{import-utils-BxeYqcn7.js → import-utils-CDIgsIUf.js} +33 -33
- package/dist/{index-Ba6SE4TN.js → index-CActL7Mw.js} +64 -64
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +12 -12
- package/dist/{raster-Cbs1xR5Y.js → raster-BsBJMgM3.js} +101 -101
- package/dist/{register-D0AsH83v.js → register-BSlpAeRe.js} +8 -8
- package/dist/{service-C4nt_DBO.js → service-CbPCldfY.js} +11 -11
- package/dist/{vs-datatable-QG5b0CCL.js → vs-datatable-RkRQEa10.js} +28 -28
- package/module/cls.json +6 -6
- package/module/gis/card/gis.metadata.table/index.yml +22 -22
- package/module/gis/card/gis.metadata.table/main_info.hbs +20 -20
- package/module/gis/card/gis.metadata.table/metadata_info.hbs +27 -27
- package/module/gis/card/gis.metadata.table/other.hbs +25 -25
- package/module/gis/card/gis.rasters.table/index.yml +11 -11
- package/module/gis/card/gis.rasters.table/main_info.hbs +27 -27
- package/module/gis/card/gis.registers.table/cls.hbs +36 -36
- package/module/gis/card/gis.registers.table/columns.hbs +89 -89
- package/module/gis/card/gis.registers.table/filters.hbs +80 -80
- package/module/gis/card/gis.registers.table/index.yml +23 -23
- package/module/gis/card/gis.registers.table/main_info.hbs +35 -35
- package/module/gis/card/gis.registers.table/source.hbs +45 -45
- package/module/gis/card/gis.services.table/attributes.hbs +91 -91
- package/module/gis/card/gis.services.table/filters.hbs +83 -83
- package/module/gis/card/gis.services.table/index.yml +25 -25
- package/module/gis/card/gis.services.table/main_info.hbs +27 -27
- package/module/gis/card/gis.services.table/source.hbs +25 -25
- package/module/gis/cls/bool.yes_no.json +12 -12
- package/module/gis/cls/encoding.json +14 -14
- package/module/gis/cls/geom_type.json +14 -14
- package/module/gis/cls/gis.column_type.json +34 -34
- package/module/gis/cls/gis.column_view_type.json +26 -26
- package/module/gis/cls/gis.filter_type.json +22 -22
- package/module/gis/cls/language.json +10 -10
- package/module/gis/cls/meta.service_type.json +42 -42
- package/module/gis/cls/ogc.service.json +21 -21
- package/module/gis/cls/service_type.json +42 -42
- package/module/gis/cls/source_type.json +10 -10
- package/module/gis/cls/standarts.json +6 -6
- package/module/gis/cls/topic_category.json +106 -106
- package/module/gis/cls/update_frequency.json +29 -29
- package/module/gis/cls/view.json +21 -21
- package/module/gis/form/feedback.answer.form.json +10 -10
- package/module/gis/form/gis.cartocss.form.json +54 -54
- package/module/gis/form/gis.group_list.form.json +17 -17
- package/module/gis/form/gis.maps.form.json +61 -61
- package/module/gis/form/gis.metadata.form.json +240 -240
- package/module/gis/form/gis.metadata_new.form.json +195 -195
- package/module/gis/form/gis.ogc_service.form.json +51 -51
- package/module/gis/form/gis.rasters.form.json +76 -76
- package/module/gis/form/gis.registers.form.json +124 -124
- package/module/gis/form/gis.registers_column.form.json +84 -84
- package/module/gis/form/gis.registers_filter.form.json +65 -65
- package/module/gis/form/gis.services.form.json +111 -111
- package/module/gis/form/gis.services_attributes.form.json +75 -75
- package/module/gis/form/gis.services_filter.form.json +65 -65
- package/module/gis/menu.json +43 -43
- package/module/gis/select/admin.cls.name.sql +2 -2
- package/module/gis/select/layer_list.sql +7 -7
- package/module/gis/select/layer_list_text.sql +7 -7
- package/module/gis/select/pg.column_name.geometry.sql +12 -12
- package/module/gis/select/pg.columns.parent.sql +6 -6
- package/module/gis/select/pg.table_name.sql +17 -17
- package/module/gis/select/service_id.sql +1 -1
- package/module/gis/table/gis.cartocss.table.json +74 -74
- package/module/gis/table/gis.group_list.table.json +58 -58
- package/module/gis/table/gis.maps.table.json +110 -110
- package/module/gis/table/gis.metadata.table.json +70 -70
- package/module/gis/table/gis.metadata_new.table.json +137 -137
- package/module/gis/table/gis.ogc_service.table.json +100 -100
- package/module/gis/table/gis.rasters.table.json +101 -101
- package/module/gis/table/gis.registers.table.json +143 -143
- package/module/gis/table/gis.services.table.json +120 -120
- package/module/gis/table/site.gis.registers.table.json +88 -88
- package/module/gis/table/site.gis.services.table.json +106 -106
- package/module/gis/templates/ISO19136_2017_gml_template.xml +330 -330
- package/module/gis/tokens.yml +5 -5
- package/module/permissions/form/permissions.users.form.json +151 -151
- package/module/permissions/table/gis.permissions.table.json +97 -97
- package/module/test/cls/bp_build_type.json +37 -37
- package/module/test/cls/ts.temp_status.json +18 -18
- package/module/test/cls/ts.temp_structure.ts_class.json +49 -49
- package/module/test/cls/ts.temp_type.json +9 -9
- package/module/test/layer/bp.json +59 -59
- package/module/test/layer/bp1.yml +33 -33
- package/module/test/layer/individual.yml +53 -53
- package/module/test/layer/ts.linking_passport.yml +55 -55
- package/module/test/layer/ts.temp_structure.yml +50 -50
- package/module/test/map/addr.yml +21 -21
- package/module/test/map/bp_myo.json +43 -43
- package/module/test/map/bpf.json +43 -43
- package/module/test/map/main.json +37 -37
- package/module/test/map/mbd.json +92 -92
- package/module/test/map/ts.json +53 -53
- package/module/test/select/address_id.json +2 -2
- package/module/test/select/address_id.sql +7 -7
- package/module/test/table/data_address.street.table.json +69 -69
- package/module/test/table/data_bp_myo.bp.table.json +122 -122
- package/package.json +75 -75
- package/plugin.js +55 -55
- package/server/migrations/array_intersect.sql +13 -13
- package/server/migrations/cartocss.sql +27 -27
- package/server/migrations/group_list.sql +74 -74
- package/server/migrations/maps.sql +30 -30
- package/server/migrations/metadata.sql +415 -415
- package/server/migrations/ogc.sql +106 -106
- package/server/migrations/rasters.sql +265 -265
- package/server/migrations/services.sql +247 -247
- package/server/migrations/services_users_rel.sql +22 -22
- package/server/migrations/widgets.sql +20 -20
- package/server/plugins/crons.js +21 -21
- package/server/plugins/mapnik/funcs/checkRasterFile.js +109 -109
- package/server/plugins/mapnik/funcs/mapnik.js +146 -146
- package/server/plugins/mapnik/funcs/rootFolder.mjs +8 -8
- package/server/plugins/mapnik/map.proto +234 -234
- package/server/plugins/vite.js +74 -74
- package/server/routes/gis/cartocss/add.cartocss.js +42 -42
- package/server/routes/gis/cartocss/get.cartocss.js +50 -50
- package/server/routes/gis/checkXML.js +118 -118
- package/server/routes/gis/dashboard.js +29 -29
- package/server/routes/gis/index.mjs +87 -87
- package/server/routes/gis/metadata/editMetadata.js +34 -34
- package/server/routes/gis/metadata/metadataXML.js +13 -13
- package/server/routes/gis/ogc/map.info.point.js +124 -124
- package/server/routes/gis/registers/add.registry.js +35 -35
- package/server/routes/gis/registers/del.registry.js +14 -14
- package/server/routes/gis/registers/funcs/classifiers.js +100 -100
- package/server/routes/gis/registers/funcs/columns.js +4 -4
- package/server/routes/gis/registers/funcs/content.type.js +9 -9
- package/server/routes/gis/registers/funcs/get.info.js +89 -89
- package/server/routes/gis/registers/funcs/handleRegistryRequest.js +146 -146
- package/server/routes/gis/registers/gis.export.js +153 -153
- package/server/routes/gis/registers/gis.registry.js +64 -64
- package/server/routes/gis/registers/gis.registry.list.js +59 -59
- package/server/routes/gis/registers/insert.columns.js +107 -107
- package/server/routes/gis/registers/insert.filters.js +110 -110
- package/server/routes/gis/registers/map.registry.js +79 -79
- package/server/routes/gis/services/add.service.js +64 -64
- package/server/routes/gis/services/del.service.js +12 -12
- package/server/routes/gis/services/get.layer.geom.js +27 -27
- package/server/routes/gis/services/get.services.col.js +33 -33
- package/server/routes/gis/services/get.services.js +84 -84
- package/server/routes/gis/services/legend.auto.js +77 -77
- package/server/routes/map/controllers/clearTiles.js +34 -34
- package/server/routes/map/controllers/geojson.js +187 -187
- package/server/routes/map/controllers/jsonData.js +205 -205
- package/server/routes/map/controllers/layerList.js +102 -102
- package/server/routes/map/controllers/map.js +123 -123
- package/server/routes/map/controllers/mapCatalog.js +72 -72
- package/server/routes/map/controllers/mapCatalogAttribute.js +55 -55
- package/server/routes/map/controllers/mapFeatures.js +128 -128
- package/server/routes/map/controllers/mapFormat.js +222 -222
- package/server/routes/map/controllers/mapTiles.js +152 -152
- package/server/routes/map/controllers/maps.js +15 -15
- package/server/routes/map/controllers/marker_icon.js +43 -43
- package/server/routes/map/controllers/vtile.js +172 -172
- package/server/routes/map/index.mjs +169 -169
- package/server/routes/map/maps/add.map.js +43 -43
- package/server/routes/map/maps/del.map.js +18 -18
- package/server/routes/map/maps/get.map.js +112 -112
- package/server/routes/map/vtile1.js +179 -179
- package/server/routes/map/widgets/add.widget.js +38 -38
- package/server/routes/map/widgets/del.widget.js +22 -22
- package/server/routes/map/widgets/get.widget.js +40 -40
- package/server/routes/mapnik/controllers/clearTiles.js +106 -106
- package/server/routes/mapnik/controllers/createXml.js +67 -67
- package/server/routes/mapnik/controllers/createXmlMulti.js +76 -76
- package/server/routes/mapnik/controllers/fileSearch.js +38 -38
- package/server/routes/mapnik/controllers/fileStat.js +28 -28
- package/server/routes/mapnik/controllers/mapnikLogger.js +29 -29
- package/server/routes/mapnik/controllers/mapnikStat.js +20 -20
- package/server/routes/mapnik/controllers/rasterInfo.js +54 -54
- package/server/routes/mapnik/controllers/readDir.js +22 -22
- package/server/routes/mapnik/controllers/rtile.js +150 -150
- package/server/routes/mapnik/controllers/uploadRaster.js +157 -157
- package/server/routes/mapnik/functions/cartoBounds.js +28 -28
- package/server/routes/mapnik/functions/uploadXML.js +110 -110
- package/server/routes/mapnik/index.js +27 -27
- package/server/routes/permissions/controllers/catalog.permissions.edit.js +22 -22
- package/server/routes/permissions/controllers/catalog.permissions.js +7 -7
- package/server/routes/permissions/controllers/gis.catalog.js +80 -80
- package/server/routes/permissions/controllers/utils/get.permissions.js +59 -59
- package/server/routes/permissions/index.mjs +18 -18
- package/server/routes/root.mjs +3 -3
- package/utils.js +13 -13
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as F, resolveDirective as Ce, openBlock as o, createElementBlock as d, createElementVNode as s, Fragment as q, renderList as B, toDisplayString as c, withDirectives as ie, createTextVNode as Re, normalizeClass as W, ref as h, watch as S, computed as g, vModelText as Ee, onMounted as Se, onBeforeUnmount as Ie, unref as je, createCommentVNode as U, createVNode as M, withCtx as ze, createBlock as L, resolveDynamicComponent as Me } from "vue";
|
|
2
2
|
import { useRouter as Le, useRoute as Ne } from "vue-router";
|
|
3
3
|
import { TooltipDirective as Ue, notify as D } from "@opengis/core";
|
|
4
|
-
import { _ as qe, u as Be, f as Te,
|
|
5
|
-
import { _ as Ve, a as Qe, b as Ge, c as Ae } from "./HeaderActions.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as Oe } from "./ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as qe, u as Be, f as Te, M as De, i as Pe, j as re, F as Fe } from "./index-CActL7Mw.js";
|
|
5
|
+
import { _ as Ve, a as Qe, b as Ge, c as Ae } from "./HeaderActions.vue_vue_type_script_setup_true_lang-B2ErIdAR.js";
|
|
6
|
+
import { _ as Oe } from "./ExtentOutlineLayer.vue_vue_type_script_setup_true_lang-CF1EEob3.js";
|
|
7
7
|
const We = { class: "flex-1 overflow-y-auto p-4 sm:p-6" }, Xe = { class: "space-y-3" }, Ye = { class: "bg-white p-3 rounded-xl border border-gray-200 shadow-sm" }, Ke = { class: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2" }, Ze = { class: "text-xs text-gray-500 mb-1" }, He = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "text-base text-md font-semibold text-gray-900"
|
|
10
10
|
}, Je = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "text-base text-md font-semibold text-gray-900"
|
|
13
|
-
}, et = { class: "bg-white p-3 rounded-xl border border-gray-200 shadow-sm" }, tt = { class: "space-y-2" }, st = { class: "bg-gradient-to-br from-blue-50 to-blue-100/30 p-4 rounded-lg border border-blue-200" },
|
|
13
|
+
}, et = { class: "bg-white p-3 rounded-xl border border-gray-200 shadow-sm" }, tt = { class: "space-y-2" }, st = { class: "bg-gradient-to-br from-blue-50 to-blue-100/30 p-4 rounded-lg border border-blue-200" }, nt = { class: "text-sm font-semibold text-gray-900" }, lt = { class: "text-xs text-gray-600 mt-1" }, rt = { class: "grid grid-cols-2 gap-3" }, ot = { class: "text-xs text-gray-500 mb-1" }, it = { class: "text-sm font-semibold text-gray-900" }, at = { class: "bg-gray-50 p-4 rounded-lg" }, ut = { class: "grid grid-cols-2 gap-4" }, ct = { class: "text-xs text-gray-500 mb-1" }, dt = { class: "text-sm font-semibold text-gray-900" }, ft = /* @__PURE__ */ F({
|
|
14
14
|
directives: {
|
|
15
15
|
tooltip: Ue
|
|
16
16
|
},
|
|
@@ -49,8 +49,8 @@ const We = { class: "flex-1 overflow-y-auto p-4 sm:p-6" }, Xe = { class: "space-
|
|
|
49
49
|
s("div", null, [
|
|
50
50
|
m[1] || (m[1] = s("p", { class: "text-xs text-gray-500 mb-2" }, "Система координат", -1)),
|
|
51
51
|
s("div", st, [
|
|
52
|
-
s("p",
|
|
53
|
-
s("p",
|
|
52
|
+
s("p", nt, c(b.details.spatial.crs.code), 1),
|
|
53
|
+
s("p", lt, c(b.details.spatial.crs.description), 1)
|
|
54
54
|
])
|
|
55
55
|
]),
|
|
56
56
|
s("div", null, [
|
|
@@ -81,7 +81,7 @@ const We = { class: "flex-1 overflow-y-auto p-4 sm:p-6" }, Xe = { class: "space-
|
|
|
81
81
|
]);
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
}), pt = { class: "flex-1 overflow-y-auto space-y-3 pr-1" }, mt = { class: "font-medium text-sm text-gray-800" },
|
|
84
|
+
}), pt = { class: "flex-1 overflow-y-auto space-y-3 pr-1" }, mt = { class: "font-medium text-sm text-gray-800" }, xt = { class: "text-xs text-gray-500" }, vt = /* @__PURE__ */ F({
|
|
85
85
|
__name: "raster-files-tab",
|
|
86
86
|
props: {
|
|
87
87
|
files: {}
|
|
@@ -94,7 +94,7 @@ const We = { class: "flex-1 overflow-y-auto p-4 sm:p-6" }, Xe = { class: "space-
|
|
|
94
94
|
}, [
|
|
95
95
|
s("div", null, [
|
|
96
96
|
s("p", mt, c(r.name), 1),
|
|
97
|
-
s("p",
|
|
97
|
+
s("p", xt, c(r.resolution) + " • " + c(r.size) + "MB", 1)
|
|
98
98
|
]),
|
|
99
99
|
s("span", {
|
|
100
100
|
class: W(["text-[11px] font-semibold px-2 py-0.5 rounded-full", r.statusClass])
|
|
@@ -140,7 +140,7 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
140
140
|
},
|
|
141
141
|
emits: ["toggle-extent"],
|
|
142
142
|
setup(b) {
|
|
143
|
-
const p = b, m = p.layerId || "raster-preview-layer", r = `${m}-source`, a = p.extent && p.extent.length === 4 ? [...p.extent] : void 0,
|
|
143
|
+
const p = b, m = p.layerId || "raster-preview-layer", r = `${m}-source`, a = p.extent && p.extent.length === 4 ? [...p.extent] : void 0, v = Be(m, {
|
|
144
144
|
sourceId: r,
|
|
145
145
|
source: {
|
|
146
146
|
type: "raster",
|
|
@@ -154,21 +154,21 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
154
154
|
paint: { "raster-opacity": 1 }
|
|
155
155
|
},
|
|
156
156
|
beforeId: p.beforeId ?? null
|
|
157
|
-
}), { fitBounds:
|
|
157
|
+
}), { fitBounds: x } = Te(), $ = h(1);
|
|
158
158
|
S(
|
|
159
159
|
() => p.tileUrl,
|
|
160
160
|
(u) => {
|
|
161
161
|
if (!u) {
|
|
162
|
-
|
|
162
|
+
v.setVisible(!1);
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
v.setVisible(!0), v.setTiles([u]);
|
|
166
166
|
},
|
|
167
167
|
{ immediate: !0 }
|
|
168
168
|
), S(
|
|
169
169
|
() => $.value,
|
|
170
170
|
(u) => {
|
|
171
|
-
|
|
171
|
+
v.setOpacity(u);
|
|
172
172
|
},
|
|
173
173
|
{ immediate: !0 }
|
|
174
174
|
);
|
|
@@ -183,7 +183,7 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
183
183
|
k = !0;
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
x == null || x([[u[0], u[1]], [u[2], u[3]]], {
|
|
187
187
|
padding: 40,
|
|
188
188
|
maxZoom: 17
|
|
189
189
|
});
|
|
@@ -242,11 +242,11 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
242
242
|
{ cardClass: "bg-gradient-to-br from-blue-50 to-blue-100/30 border-blue-200", titleClass: "text-blue-900" },
|
|
243
243
|
{ cardClass: "bg-gradient-to-br from-purple-50 to-purple-100/30 border-purple-200", titleClass: "text-purple-900" },
|
|
244
244
|
{ cardClass: "bg-gradient-to-br from-gray-50 to-gray-100/30 border-gray-200", titleClass: "text-gray-900" }
|
|
245
|
-
], m = Le(), r = Ne(), a = h(null),
|
|
245
|
+
], m = Le(), r = Ne(), a = h(null), v = g(() => {
|
|
246
246
|
var t;
|
|
247
247
|
const e = (t = r.params) == null ? void 0 : t.id;
|
|
248
248
|
return typeof e == "string" ? e : void 0;
|
|
249
|
-
}),
|
|
249
|
+
}), x = h(null), $ = h(!1), I = h(!1), k = h(null), N = h(!0);
|
|
250
250
|
let u = null;
|
|
251
251
|
const y = h(!1);
|
|
252
252
|
function C(e) {
|
|
@@ -258,37 +258,37 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
258
258
|
function V(e, t) {
|
|
259
259
|
return e.toFixed(t);
|
|
260
260
|
}
|
|
261
|
-
function Q(e, t,
|
|
262
|
-
const
|
|
263
|
-
return Math.abs(e - t) >
|
|
261
|
+
function Q(e, t, n) {
|
|
262
|
+
const l = 0.5 * 10 ** -n;
|
|
263
|
+
return Math.abs(e - t) > l;
|
|
264
264
|
}
|
|
265
265
|
function G() {
|
|
266
266
|
var e;
|
|
267
267
|
return (e = a.value) == null ? void 0 : e.ctx;
|
|
268
268
|
}
|
|
269
269
|
function X() {
|
|
270
|
-
var w, se,
|
|
270
|
+
var w, se, ne, le;
|
|
271
271
|
const e = (se = (w = G()) == null ? void 0 : w.map) == null ? void 0 : se.value;
|
|
272
272
|
if (!e) return;
|
|
273
|
-
const t = C(r.query.z),
|
|
274
|
-
if (t == null ||
|
|
275
|
-
const i = (
|
|
276
|
-
(!i || Q(i.lng,
|
|
273
|
+
const t = C(r.query.z), n = C(r.query.x), l = C(r.query.y);
|
|
274
|
+
if (t == null || n == null || l == null) return;
|
|
275
|
+
const i = (ne = e.getCenter) == null ? void 0 : ne.call(e), f = (le = e.getZoom) == null ? void 0 : le.call(e);
|
|
276
|
+
(!i || Q(i.lng, n, P) || Q(i.lat, l, P) || Q(f ?? 0, t, oe)) && (y.value = !0, e.jumpTo({ center: [n, l], zoom: t }), y.value = !1);
|
|
277
277
|
}
|
|
278
278
|
function ae() {
|
|
279
279
|
var i, f, _, w;
|
|
280
280
|
if (y.value) return;
|
|
281
281
|
const e = (f = (i = G()) == null ? void 0 : i.map) == null ? void 0 : f.value;
|
|
282
282
|
if (!e) return;
|
|
283
|
-
const t = (_ = e.getCenter) == null ? void 0 : _.call(e),
|
|
284
|
-
if (!t ||
|
|
285
|
-
const
|
|
283
|
+
const t = (_ = e.getCenter) == null ? void 0 : _.call(e), n = (w = e.getZoom) == null ? void 0 : w.call(e);
|
|
284
|
+
if (!t || n == null) return;
|
|
285
|
+
const l = {
|
|
286
286
|
...r.query,
|
|
287
|
-
z: V(
|
|
287
|
+
z: V(n, oe),
|
|
288
288
|
x: V(t.lng, P),
|
|
289
289
|
y: V(t.lat, P)
|
|
290
290
|
};
|
|
291
|
-
r.query.z ===
|
|
291
|
+
r.query.z === l.z && r.query.x === l.x && r.query.y === l.y || m.replace({ query: l });
|
|
292
292
|
}
|
|
293
293
|
function ue() {
|
|
294
294
|
var t;
|
|
@@ -298,29 +298,29 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
298
298
|
}
|
|
299
299
|
const Y = g(() => {
|
|
300
300
|
var t;
|
|
301
|
-
const e = (t =
|
|
301
|
+
const e = (t = x.value) == null ? void 0 : t.url;
|
|
302
302
|
return e ? /^https?:\/\//i.test(e) || typeof window > "u" || typeof location > "u" ? e : `${location.origin}${e}` : "";
|
|
303
303
|
}), j = g(() => {
|
|
304
304
|
var e;
|
|
305
|
-
return ((e =
|
|
306
|
-
}), K = g(() =>
|
|
305
|
+
return ((e = x.value) == null ? void 0 : e.extent) ?? null;
|
|
306
|
+
}), K = g(() => v.value ? `raster-${v.value}` : void 0), ce = g(() => v.value ? `raster-extent-${v.value}` : "raster-extent"), de = g(() => {
|
|
307
307
|
const e = K.value ?? "raster", t = j.value && j.value.length === 4 ? j.value.join(",") : "no-extent";
|
|
308
308
|
return `${e}-${t}`;
|
|
309
309
|
}), fe = g(() => !!Y.value), Z = g(() => {
|
|
310
310
|
const e = j.value;
|
|
311
311
|
if (!e || e.length !== 4) return null;
|
|
312
|
-
const [t,
|
|
313
|
-
return [t,
|
|
312
|
+
const [t, n, l, i] = e;
|
|
313
|
+
return [t, n, l, i].some(
|
|
314
314
|
(f) => typeof f != "number" || Number.isNaN(f)
|
|
315
|
-
) ? null : [(t +
|
|
315
|
+
) ? null : [(t + l) / 2, (n + i) / 2];
|
|
316
316
|
}), z = g(() => {
|
|
317
317
|
var f, _;
|
|
318
|
-
const e =
|
|
318
|
+
const e = x.value, t = e == null ? void 0 : e.extent, l = v.value ?? "—", i = [
|
|
319
319
|
e != null && e.extension ? `Формат ${String(e.extension).toUpperCase()}` : null,
|
|
320
320
|
(e == null ? void 0 : e.resolution) || null
|
|
321
321
|
].filter(Boolean).join(", ");
|
|
322
322
|
return {
|
|
323
|
-
id:
|
|
323
|
+
id: l,
|
|
324
324
|
name: (e == null ? void 0 : e.name) || ((_ = (f = e == null ? void 0 : e.files) == null ? void 0 : f[0]) == null ? void 0 : _.name),
|
|
325
325
|
description: (e == null ? void 0 : e.description) || i || "Попередній перегляд растрового шару.",
|
|
326
326
|
coverage: t && t.length === 4 ? `${E(t[0])}, ${E(t[1])} → ${E(t[2])}, ${E(t[3])}` : "Покриття уточнюється",
|
|
@@ -329,7 +329,7 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
329
329
|
updatedAt: e != null && e.cache ? "Дані кешовано" : "Нові дані"
|
|
330
330
|
};
|
|
331
331
|
}), A = g(() => {
|
|
332
|
-
const e =
|
|
332
|
+
const e = x.value;
|
|
333
333
|
return e ? [
|
|
334
334
|
e.source_path,
|
|
335
335
|
e.srid ? `SRID: ${e.srid}` : null,
|
|
@@ -339,32 +339,32 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
339
339
|
].filter((t) => t).join(", ") : "";
|
|
340
340
|
}), H = [
|
|
341
341
|
{ key: "info", label: "Інформація", icon: ht },
|
|
342
|
-
{ key: "files", label: "Файли", icon:
|
|
343
|
-
{ key: "metadata", label: "Метадані", icon:
|
|
342
|
+
{ key: "files", label: "Файли", icon: Fe },
|
|
343
|
+
{ key: "metadata", label: "Метадані", icon: Ae }
|
|
344
344
|
], J = H.map((e) => e.key), R = h(J.includes(r.query.tab) ? r.query.tab : "info"), T = h(!0);
|
|
345
345
|
S(() => r.query.tab, (e) => {
|
|
346
346
|
e && J.includes(e) && R.value !== e && (R.value = e);
|
|
347
347
|
}), S(R, (e) => {
|
|
348
348
|
r.query.tab !== e && m.replace({ query: { ...r.query, tab: e } });
|
|
349
349
|
});
|
|
350
|
-
const pe = g(() =>
|
|
350
|
+
const pe = g(() => ve(x.value)), ee = g(() => ge(x.value));
|
|
351
351
|
S(
|
|
352
|
-
() =>
|
|
352
|
+
() => x.value,
|
|
353
353
|
() => {
|
|
354
354
|
ue();
|
|
355
355
|
},
|
|
356
356
|
{ immediate: !0 }
|
|
357
357
|
);
|
|
358
358
|
async function me() {
|
|
359
|
-
var
|
|
359
|
+
var l;
|
|
360
360
|
const e = G();
|
|
361
361
|
if (!(e != null && e.ready)) return;
|
|
362
362
|
await e.ready(), X();
|
|
363
|
-
const t = (
|
|
363
|
+
const t = (l = e.map) == null ? void 0 : l.value;
|
|
364
364
|
if (!t) return;
|
|
365
|
-
const
|
|
366
|
-
t.on("moveend",
|
|
367
|
-
t.off("moveend",
|
|
365
|
+
const n = () => ae();
|
|
366
|
+
t.on("moveend", n), t.on("zoomend", n), u = () => {
|
|
367
|
+
t.off("moveend", n), t.off("zoomend", n);
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
S(
|
|
@@ -376,17 +376,17 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
376
376
|
me();
|
|
377
377
|
}), Ie(() => {
|
|
378
378
|
u == null || u(), u = null;
|
|
379
|
-
}), S(
|
|
379
|
+
}), S(v, () => {
|
|
380
380
|
O();
|
|
381
381
|
}, { immediate: !0 });
|
|
382
|
-
async function
|
|
382
|
+
async function xe(e) {
|
|
383
383
|
var t;
|
|
384
|
-
O(), ((t =
|
|
384
|
+
O(), ((t = x.value) == null ? void 0 : t.srid) !== e.srid && (D({ title: "XML start", type: "info", message: "зміна системи координат, оновлюємо карту ..." }), await te(`/api/gis-xml/${encodeURIComponent(v.value)}`), D({ title: "XML created", type: "info", message: "карта створена" }), location.reload());
|
|
385
385
|
}
|
|
386
386
|
async function O() {
|
|
387
|
-
const e =
|
|
387
|
+
const e = v.value;
|
|
388
388
|
if (!e) {
|
|
389
|
-
|
|
389
|
+
x.value = null, k.value = null;
|
|
390
390
|
return;
|
|
391
391
|
}
|
|
392
392
|
$.value = !0, k.value = null;
|
|
@@ -394,39 +394,39 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
394
394
|
const t = await fetch(`/api/gis-raster/${encodeURIComponent(e)}`);
|
|
395
395
|
if (!t.ok)
|
|
396
396
|
throw new Error(`HTTP ${t.status}`);
|
|
397
|
-
const
|
|
398
|
-
|
|
397
|
+
const n = await t.json();
|
|
398
|
+
n.xml && (I.value = !0), x.value = n, n.xml || (D({ title: "XML not found", type: "info", message: "йде створення xml ... зачекайте" }), await te(`/api/gis-xml/${encodeURIComponent(e)}`), D({ title: "XML created", type: "info", message: "карта створена" }), fetch(`/api/gis-raster/${encodeURIComponent(e)}?nocache=1`), I.value = !0);
|
|
399
399
|
} catch (t) {
|
|
400
|
-
console.error("Failed to load raster info", t),
|
|
400
|
+
console.error("Failed to load raster info", t), x.value = null, k.value = t instanceof Error ? t.message : String(t);
|
|
401
401
|
} finally {
|
|
402
402
|
$.value = !1;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
function te(e) {
|
|
406
|
-
return new Promise((t,
|
|
407
|
-
const
|
|
408
|
-
|
|
406
|
+
return new Promise((t, n) => {
|
|
407
|
+
const l = new EventSource(e), i = [];
|
|
408
|
+
l.onmessage = (f) => {
|
|
409
409
|
i.push(f.data), console.log("Received:", f.data);
|
|
410
|
-
},
|
|
411
|
-
|
|
412
|
-
}),
|
|
413
|
-
|
|
410
|
+
}, l.addEventListener("end", () => {
|
|
411
|
+
l.close(), t(i);
|
|
412
|
+
}), l.onerror = (f) => {
|
|
413
|
+
l.close(), t(f);
|
|
414
414
|
};
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function ve(e) {
|
|
418
418
|
var t;
|
|
419
|
-
return (t = e == null ? void 0 : e.files) != null && t.length ? e.files.map((
|
|
420
|
-
name:
|
|
421
|
-
resolution: ye(
|
|
422
|
-
size:
|
|
419
|
+
return (t = e == null ? void 0 : e.files) != null && t.length ? e.files.map((n) => ({
|
|
420
|
+
name: n.name,
|
|
421
|
+
resolution: ye(n.name, e),
|
|
422
|
+
size: n.size || "—",
|
|
423
423
|
status: "Готово",
|
|
424
424
|
statusClass: "bg-emerald-50 text-emerald-600 border border-emerald-100"
|
|
425
425
|
})) : [];
|
|
426
426
|
}
|
|
427
427
|
function ye(e, t) {
|
|
428
|
-
const
|
|
429
|
-
return
|
|
428
|
+
const n = e.toLowerCase();
|
|
429
|
+
return n.endsWith(".tfw") ? "Georeference" : n.endsWith(".xml") ? "Опис" : n.endsWith(".tif") || n.endsWith(".tiff") ? t != null && t.resolution ? t.resolution : "Растер" : (t == null ? void 0 : t.resolution) ?? "Файл";
|
|
430
430
|
}
|
|
431
431
|
function ge(e) {
|
|
432
432
|
return e ? {
|
|
@@ -444,16 +444,16 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
444
444
|
} : null;
|
|
445
445
|
}
|
|
446
446
|
function be(e) {
|
|
447
|
-
return e != null && e.length ? e.map((
|
|
447
|
+
return e != null && e.length ? e.map((n) => {
|
|
448
448
|
var i;
|
|
449
|
-
if (!
|
|
450
|
-
const
|
|
451
|
-
return ((i =
|
|
449
|
+
if (!n) return "";
|
|
450
|
+
const l = n.trim().split(/\s+/)[0];
|
|
451
|
+
return ((i = l == null ? void 0 : l[0]) == null ? void 0 : i.toUpperCase()) || "";
|
|
452
452
|
}).filter(Boolean).join("") : "";
|
|
453
453
|
}
|
|
454
454
|
function he(e) {
|
|
455
455
|
var f, _;
|
|
456
|
-
const t = e.bands_count ?? ((f = e.bands) == null ? void 0 : f.length) ?? "—",
|
|
456
|
+
const t = e.bands_count ?? ((f = e.bands) == null ? void 0 : f.length) ?? "—", n = be(e.bands), l = (e.bands ?? []).map((w) => w.trim()).filter((w) => w.length > 0), i = l.length ? l.join(", ") : void 0;
|
|
457
457
|
return [
|
|
458
458
|
{
|
|
459
459
|
label: "Розмір растру, px",
|
|
@@ -463,7 +463,7 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
463
463
|
{ label: "Розмір файлу, mb", value: e.total_size ? `${e.total_size}` : "—" },
|
|
464
464
|
{
|
|
465
465
|
label: "Кількість каналів",
|
|
466
|
-
value: typeof t == "number" ? `${t}${
|
|
466
|
+
value: typeof t == "number" ? `${t}${n ? ` (${n})` : ""}` : `${t}${n ? ` (${n})` : ""}`,
|
|
467
467
|
tooltip: i
|
|
468
468
|
},
|
|
469
469
|
{ label: "Глибина кольору", value: e.color_depth ? `${e.color_depth} біт/канал` : "—" },
|
|
@@ -486,14 +486,14 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
486
486
|
}
|
|
487
487
|
function $e(e) {
|
|
488
488
|
var t;
|
|
489
|
-
return (t = e.bands) != null && t.length ? e.bands.map((
|
|
490
|
-
const i = p[
|
|
489
|
+
return (t = e.bands) != null && t.length ? e.bands.map((n, l) => {
|
|
490
|
+
const i = p[l % p.length];
|
|
491
491
|
return {
|
|
492
|
-
label: `Канал ${
|
|
492
|
+
label: `Канал ${l + 1}${n ? ` (${n})` : ""}`,
|
|
493
493
|
cardClass: i.cardClass,
|
|
494
494
|
titleClass: i.titleClass,
|
|
495
495
|
metrics: [
|
|
496
|
-
{ label: "Назва", value:
|
|
496
|
+
{ label: "Назва", value: n || `Канал ${l + 1}` },
|
|
497
497
|
{ label: "Глибина", value: e.color_depth ? `${e.color_depth} біт` : "—" },
|
|
498
498
|
{ label: "Статус", value: e.cache ? "Кешовано" : "Готово" }
|
|
499
499
|
]
|
|
@@ -513,8 +513,8 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
513
513
|
}
|
|
514
514
|
function E(e, t) {
|
|
515
515
|
if (e == null || Number.isNaN(e)) return "—";
|
|
516
|
-
const
|
|
517
|
-
return t ? `${
|
|
516
|
+
const n = `${e.toFixed(5)}°`;
|
|
517
|
+
return t ? `${n} ${t}` : n;
|
|
518
518
|
}
|
|
519
519
|
return (e, t) => (o(), d("div", St, [
|
|
520
520
|
s("div", It, [
|
|
@@ -526,7 +526,7 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
526
526
|
s("button", {
|
|
527
527
|
type: "button",
|
|
528
528
|
class: "hover:text-gray-700 cursor-pointer transition-colors",
|
|
529
|
-
onClick: t[0] || (t[0] = (
|
|
529
|
+
onClick: t[0] || (t[0] = (n) => je(m).push("/gis.rasters"))
|
|
530
530
|
}, " Растри "),
|
|
531
531
|
t[3] || (t[3] = s("svg", {
|
|
532
532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -564,14 +564,14 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
564
564
|
title: z.value.description
|
|
565
565
|
}, c(z.value.description), 9, Qt)
|
|
566
566
|
]),
|
|
567
|
-
M(
|
|
568
|
-
"entity-id":
|
|
567
|
+
M(Ve, {
|
|
568
|
+
"entity-id": v.value || "",
|
|
569
569
|
"entity-info": { name: z.value.name },
|
|
570
570
|
table: "gis.rasters.table",
|
|
571
571
|
"entity-label": "Растер",
|
|
572
572
|
"save-method": "put",
|
|
573
573
|
"edit-button-text": "Редагувати",
|
|
574
|
-
onSaved:
|
|
574
|
+
onSaved: xe
|
|
575
575
|
}, null, 8, ["entity-id", "entity-info"])
|
|
576
576
|
])
|
|
577
577
|
])
|
|
@@ -579,7 +579,7 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
579
579
|
]),
|
|
580
580
|
s("div", Gt, [
|
|
581
581
|
s("div", At, [
|
|
582
|
-
M(
|
|
582
|
+
M(De, {
|
|
583
583
|
ref_key: "mapViewRef",
|
|
584
584
|
ref: a
|
|
585
585
|
}, {
|
|
@@ -590,14 +590,14 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
590
590
|
extent: j.value,
|
|
591
591
|
"layer-id": K.value,
|
|
592
592
|
"show-raster-extent": N.value,
|
|
593
|
-
onToggleExtent: t[1] || (t[1] = (
|
|
593
|
+
onToggleExtent: t[1] || (t[1] = (n) => N.value = n)
|
|
594
594
|
}, null, 8, ["tile-url", "extent", "layer-id", "show-raster-extent"])) : U("", !0),
|
|
595
595
|
M(Oe, {
|
|
596
596
|
extent: N.value ? j.value : null,
|
|
597
597
|
"layer-id": ce.value
|
|
598
598
|
}, null, 8, ["extent", "layer-id"]),
|
|
599
599
|
s("div", Ot, [
|
|
600
|
-
M(
|
|
600
|
+
M(Pe)
|
|
601
601
|
]),
|
|
602
602
|
s("div", Wt, [
|
|
603
603
|
M(re),
|
|
@@ -613,9 +613,9 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
613
613
|
}, 512)
|
|
614
614
|
])
|
|
615
615
|
]),
|
|
616
|
-
M(
|
|
616
|
+
M(Qe, {
|
|
617
617
|
open: T.value,
|
|
618
|
-
onToggle: t[2] || (t[2] = (
|
|
618
|
+
onToggle: t[2] || (t[2] = (n) => T.value = !T.value)
|
|
619
619
|
}, null, 8, ["open"])
|
|
620
620
|
]),
|
|
621
621
|
s("div", {
|
|
@@ -624,28 +624,28 @@ const ht = /* @__PURE__ */ qe(yt, [["render", bt]]), _t = { class: "absolute top
|
|
|
624
624
|
s("div", Xt, [
|
|
625
625
|
s("div", Yt, [
|
|
626
626
|
s("div", Kt, [
|
|
627
|
-
(o(), d(q, null, B(H, (
|
|
628
|
-
key:
|
|
627
|
+
(o(), d(q, null, B(H, (n) => s("button", {
|
|
628
|
+
key: n.key,
|
|
629
629
|
type: "button",
|
|
630
630
|
role: "tab",
|
|
631
|
-
"aria-selected": R.value ===
|
|
632
|
-
class: W(["whitespace-nowrap flex flex-col items-center justify-center gap-0.5 py-1 px-1 text-[9px] font-medium transition-all duration-300 hover:bg-white/70 rounded-lg group", R.value ===
|
|
633
|
-
onClick: (
|
|
631
|
+
"aria-selected": R.value === n.key,
|
|
632
|
+
class: W(["whitespace-nowrap flex flex-col items-center justify-center gap-0.5 py-1 px-1 text-[9px] font-medium transition-all duration-300 hover:bg-white/70 rounded-lg group", R.value === n.key ? "bg-white shadow-sm text-gray-700" : ""]),
|
|
633
|
+
onClick: (l) => R.value = n.key
|
|
634
634
|
}, [
|
|
635
|
-
(o(), L(Me(
|
|
636
|
-
s("span", Ht, c(
|
|
635
|
+
(o(), L(Me(n.icon), { class: "h-3.5 w-3.5 mb-0.5" })),
|
|
636
|
+
s("span", Ht, c(n.label), 1)
|
|
637
637
|
], 10, Zt)), 64))
|
|
638
638
|
])
|
|
639
639
|
]),
|
|
640
640
|
s("div", Jt, [
|
|
641
641
|
$.value ? (o(), d("div", es, " Завантаження метаданих растру… ")) : k.value ? (o(), d("div", ts, " Не вдалося отримати дані: " + c(k.value), 1)) : U("", !0),
|
|
642
|
-
R.value === "files" ? (o(), L(
|
|
642
|
+
R.value === "files" ? (o(), L(vt, {
|
|
643
643
|
key: 2,
|
|
644
644
|
files: pe.value
|
|
645
|
-
}, null, 8, ["files"])) : R.value === "metadata" ? (o(), L(
|
|
645
|
+
}, null, 8, ["files"])) : R.value === "metadata" ? (o(), L(Ge, {
|
|
646
646
|
key: 3,
|
|
647
|
-
data:
|
|
648
|
-
"entity-id":
|
|
647
|
+
data: x.value,
|
|
648
|
+
"entity-id": v.value,
|
|
649
649
|
"entity-type": "raster",
|
|
650
650
|
onSaved: O
|
|
651
651
|
}, null, 8, ["data", "entity-id"])) : ee.value ? (o(), L(ft, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as B, useModel as S, computed as h, defineAsyncComponent as O, ref as $, watch as D, onBeforeUnmount as K, openBlock as k, createElementBlock as C, createElementVNode as l, createBlock as T, unref as U, createTextVNode as q, createVNode as V,
|
|
1
|
+
import { defineComponent as B, mergeModels as j, useModel as S, computed as h, defineAsyncComponent as O, ref as $, watch as D, onBeforeUnmount as K, openBlock as k, createElementBlock as C, createElementVNode as l, createBlock as T, unref as U, createTextVNode as q, createVNode as V, toDisplayString as M, resolveDynamicComponent as J, onMounted as G, resolveComponent as W, withCtx as I, Fragment as X, createCommentVNode as Y } from "vue";
|
|
2
2
|
import { useRoute as Z, useRouter as ee } from "vue-router";
|
|
3
3
|
import { notify as F } from "@opengis/core";
|
|
4
4
|
import { _ as te } from "./TableFormHeader.vue_vue_type_script_setup_true_lang-Mci_tseM.js";
|
|
5
|
-
import { V as N } from "./vs-datatable-
|
|
6
|
-
import { _ as z, n as R, m as E, r as H } from "./import-utils-
|
|
7
|
-
import { a as ae, b as le, c as se, d as oe, e as ie } from "./index-
|
|
5
|
+
import { V as N } from "./vs-datatable-RkRQEa10.js";
|
|
6
|
+
import { _ as z, n as R, m as E, r as H } from "./import-utils-CDIgsIUf.js";
|
|
7
|
+
import { a as ae, b as le, c as se, d as oe, e as ie } from "./index-CActL7Mw.js";
|
|
8
8
|
import { LucideChevronRight as re } from "lucide-vue-next";
|
|
9
9
|
import { _ as ne } from "./MapSettingsTabs.vue_vue_type_script_setup_true_lang-CKCK3NqY.js";
|
|
10
10
|
const ue = { class: "vs-form" }, de = { class: "vs-form__body auto-rows-max container" }, ce = { class: "flex flex-wrap" }, me = { class: "h-fit w-full mb-6 bg-white border border-gray-200 rounded-lg p-6" }, ve = { class: "h-fit w-full flex flex-wrap" }, pe = { class: "w-full" }, fe = /* @__PURE__ */ B({
|
|
@@ -520,11 +520,11 @@ const ue = { class: "vs-form" }, de = { class: "vs-form__body auto-rows-max cont
|
|
|
520
520
|
]));
|
|
521
521
|
}
|
|
522
522
|
}), P = {
|
|
523
|
-
template1:
|
|
524
|
-
template2:
|
|
523
|
+
template1: ae,
|
|
524
|
+
template2: le,
|
|
525
525
|
template3: se,
|
|
526
|
-
template4:
|
|
527
|
-
template5:
|
|
526
|
+
template4: oe,
|
|
527
|
+
template5: ie
|
|
528
528
|
}, De = { class: "space-y-4" }, Se = { class: "flex items-center gap-4 bg-white border border-gray-200 rounded-lg px-6 py-4" }, qe = { class: "text-lg font-semibold mb-4" }, Be = { class: "bg-white" }, Ie = {
|
|
529
529
|
key: 1,
|
|
530
530
|
class: "text-gray-400 text-center py-12"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { openBlock as C, createElementBlock as M, createElementVNode as v, defineComponent as Z, ref as S, watch as T, createTextVNode as Di, createVNode as j, createBlock as N, createCommentVNode as P, defineAsyncComponent as Ri, unref as ve, withCtx as qe, withDirectives as Be, vModelText as Ye, normalizeClass as he, Fragment as Nn, renderList as Mn, toDisplayString as te, getCurrentInstance as Dn, onBeforeUnmount as Rn, toRef as $i, computed as Se, onMounted as ji, resolveDynamicComponent as Ui } from "vue";
|
|
2
2
|
import { useRoute as Bi, useRouter as Yi } from "vue-router";
|
|
3
3
|
import { notify as z } from "@opengis/core";
|
|
4
|
-
import { _ as Ne, u as $n, f as Pi, M as Hi, g as Vi, h as qi, i as Ki, j as mn, k as zi, l as Gi, m as Qi, s as hn } from "./index-
|
|
5
|
-
import { _ as Wi, a as Ji, b as Zi, c as Xi } from "./HeaderActions.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { S as el, C as nl } from "./CardIcon-
|
|
4
|
+
import { _ as Ne, u as $n, f as Pi, M as Hi, g as Vi, h as qi, i as Ki, j as mn, k as zi, l as Gi, m as Qi, s as hn } from "./index-CActL7Mw.js";
|
|
5
|
+
import { _ as Wi, a as Ji, b as Zi, c as Xi } from "./HeaderActions.vue_vue_type_script_setup_true_lang-B2ErIdAR.js";
|
|
6
|
+
import { S as el, C as nl } from "./CardIcon-Bu_mm6QX.js";
|
|
7
7
|
import { _ as jn } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-D3ZPeXMw.js";
|
|
8
|
-
import { V as Me } from "./vs-datatable-
|
|
9
|
-
import { _ as Je, m as Ze, r as xe } from "./import-utils-
|
|
8
|
+
import { V as Me } from "./vs-datatable-RkRQEa10.js";
|
|
9
|
+
import { _ as Je, m as Ze, r as xe } from "./import-utils-CDIgsIUf.js";
|
|
10
10
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
11
11
|
function Un(e) {
|
|
12
12
|
return typeof e > "u" || e === null;
|
|
@@ -2003,7 +2003,7 @@ ${L}` : L;
|
|
|
2003
2003
|
{ text: "Range", id: "range" },
|
|
2004
2004
|
{ text: "Date", id: "date" },
|
|
2005
2005
|
{ text: "Text", id: "text" },
|
|
2006
|
-
{ text: "Select", id: "
|
|
2006
|
+
{ text: "Select", id: "autocomplete" }
|
|
2007
2007
|
]
|
|
2008
2008
|
},
|
|
2009
2009
|
hidden: {
|
|
@@ -2201,7 +2201,7 @@ ${L}` : L;
|
|
|
2201
2201
|
{ key: "filter", label: "Фільтр", icon: It },
|
|
2202
2202
|
{ key: "legend", label: "Легенда", icon: _t },
|
|
2203
2203
|
{ key: "card", label: "Картка", icon: nl },
|
|
2204
|
-
{ key: "metadata", label: "Метадані", icon:
|
|
2204
|
+
{ key: "metadata", label: "Метадані", icon: Xi }
|
|
2205
2205
|
], sn = an.map((c) => c.key), Y = S("style");
|
|
2206
2206
|
ji(async () => {
|
|
2207
2207
|
const c = r.query.tab;
|
|
@@ -2414,7 +2414,7 @@ ${L}` : L;
|
|
|
2414
2414
|
])
|
|
2415
2415
|
])
|
|
2416
2416
|
]),
|
|
2417
|
-
B.value ? (C(), N(
|
|
2417
|
+
B.value ? (C(), N(Wi, {
|
|
2418
2418
|
key: 0,
|
|
2419
2419
|
class: "flex-shrink-0",
|
|
2420
2420
|
"entity-id": B.value,
|
|
@@ -2488,7 +2488,7 @@ ${L}` : L;
|
|
|
2488
2488
|
}, 512)
|
|
2489
2489
|
])
|
|
2490
2490
|
]),
|
|
2491
|
-
j(
|
|
2491
|
+
j(Ji, {
|
|
2492
2492
|
open: Ae.value,
|
|
2493
2493
|
onToggle: f[1] || (f[1] = (k) => Ae.value = !Ae.value),
|
|
2494
2494
|
"top-class": "top-4"
|
|
@@ -2554,7 +2554,7 @@ ${L}` : L;
|
|
|
2554
2554
|
columns: _e.value,
|
|
2555
2555
|
"onUpdate:columns": f[9] || (f[9] = (k) => _e.value = k),
|
|
2556
2556
|
onSave: f[10] || (f[10] = (k) => Ce("filters", k))
|
|
2557
|
-
}, null, 8, ["token", "fields", "columns"])) : Y.value === "metadata" ? (C(), N(
|
|
2557
|
+
}, null, 8, ["token", "fields", "columns"])) : Y.value === "metadata" ? (C(), N(Zi, {
|
|
2558
2558
|
key: 5,
|
|
2559
2559
|
data: s.value,
|
|
2560
2560
|
"entity-id": String(ve(o)),
|
|
@@ -2567,7 +2567,7 @@ ${L}` : L;
|
|
|
2567
2567
|
]);
|
|
2568
2568
|
};
|
|
2569
2569
|
}
|
|
2570
|
-
}), Ko = /* @__PURE__ */ Ne(Ro, [["__scopeId", "data-v-
|
|
2570
|
+
}), Ko = /* @__PURE__ */ Ne(Ro, [["__scopeId", "data-v-68374a9b"]]);
|
|
2571
2571
|
export {
|
|
2572
2572
|
Ko as default
|
|
2573
2573
|
};
|