@opengis/bi 1.2.18 → 1.2.20
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/bi.js +8 -8
- package/dist/bi.umd.cjs +79 -8191
- package/dist/{import-file-D72PHcD5.js → import-file-DldGj76q.js} +1408 -1393
- package/dist/style.css +1 -1
- package/dist/{vs-funnel-bar-CuZB5Xcy.js → vs-funnel-bar-mfZboefB.js} +1 -1
- package/dist/{vs-list-kmzDaKMg.js → vs-list-Ice6-IrN.js} +128 -86
- package/dist/{vs-map-CzZ6TpmM.js → vs-map-DsfKv22S.js} +2 -2
- package/dist/{vs-map-cluster-9xOpkWTu.js → vs-map-cluster-P7aMMFIb.js} +67 -52
- package/dist/{vs-number-BuP4nTYx.js → vs-number-greu-CL0.js} +1 -1
- package/dist/{vs-table-CTHNmESe.js → vs-table-ByP_RpUg.js} +1 -1
- package/dist/{vs-text-aaXGkWOh.js → vs-text-Qve46urW.js} +1 -1
- package/package.json +1 -1
- package/dist/form-l0sNRNKZ.js +0 -1
- package/dist/index-W-qQIppj-CIdBATkI.js +0 -2383
- package/dist/index-loIO5IT3.js +0 -35369
- package/dist/list-CGFdMWFs.js +0 -50
- package/dist/map-DHnu6LJE.js +0 -21
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as H, V as
|
|
3
|
-
import { createElementBlock as g, createCommentVNode as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { _ as A, a as F, p as T, c as G, V as P, b as Z, d as q, e as D, l as K } from "./vs-list-Ice6-IrN.js";
|
|
2
|
+
import { e as W, _ as H, V as J, c as Q, g as U, h as X, i as Y } from "./import-file-DldGj76q.js";
|
|
3
|
+
import { createElementBlock as g, createCommentVNode as S, openBlock as p, createElementVNode as l, normalizeClass as V, Fragment as R, renderList as N, toDisplayString as O, normalizeStyle as j, createBlock as z, unref as $, mergeProps as ee, resolveComponent as m, withDirectives as M, resolveDynamicComponent as te, createVNode as w, vShow as C } from "vue";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-vue-next v0.546.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const se = W("map", [
|
|
11
|
+
[
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
d: "M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",
|
|
15
|
+
key: "169xi5"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
["path", { d: "M15 5.764v15", key: "1pn4in" }],
|
|
19
|
+
["path", { d: "M9 3.236v15", key: "1uimfh" }]
|
|
20
|
+
]), oe = {
|
|
21
|
+
components: { legendIcon: F, closeIcon: A },
|
|
7
22
|
props: {
|
|
8
23
|
mapId: { type: String },
|
|
9
24
|
colors: { type: Array },
|
|
@@ -46,60 +61,60 @@ const se = {
|
|
|
46
61
|
return (t + 1) / this.sortedSizes.length;
|
|
47
62
|
}
|
|
48
63
|
}
|
|
49
|
-
},
|
|
64
|
+
}, ae = {
|
|
50
65
|
key: 0,
|
|
51
66
|
class: "absolute flex items-end w-fit bottom-[10px] max-w-[80%] left-[50%] translate-x-[-50%] bg-[rgba(255,255,255,0.7)] p-[10px] rounded"
|
|
52
|
-
},
|
|
53
|
-
function
|
|
67
|
+
}, re = { class: "w-[80px] mr-[10px]" }, ie = ["title"], ne = { class: "text-[10px] mb-[2px] text-[#1F2937] font-normal leading-[1.2]" };
|
|
68
|
+
function le(t, s, o, a, e, r) {
|
|
54
69
|
var d;
|
|
55
|
-
return (d = o.sizes) != null && d.length ? (p(), g("div",
|
|
56
|
-
l("div",
|
|
70
|
+
return (d = o.sizes) != null && d.length ? (p(), g("div", ae, [
|
|
71
|
+
l("div", re, [
|
|
57
72
|
s[0] || (s[0] = l("p", { class: "text-[10px] mb-[2px] text-[#1F2937] leading-[1.2]" }, " Дані відсутні ", -1)),
|
|
58
73
|
l("div", {
|
|
59
74
|
class: V([r.sizeClass(t.index), "w-full border border-gray-500"])
|
|
60
75
|
}, null, 2)
|
|
61
76
|
]),
|
|
62
77
|
r.sortedSizes.length ? (p(!0), g(R, { key: 0 }, N(r.sortedSizes, (c, n) => {
|
|
63
|
-
var h,
|
|
78
|
+
var h, u, v, y, f, _, b, x;
|
|
64
79
|
return p(), g("div", {
|
|
65
80
|
class: "w-[80px]",
|
|
66
|
-
title: n === ((h = r.sortedSizes) == null ? void 0 : h.length) - 1 ? ">" + c : n == ((
|
|
81
|
+
title: n === ((h = r.sortedSizes) == null ? void 0 : h.length) - 1 ? ">" + c : n == ((u = r.sortedSizes) == null ? void 0 : u.length) - 1 ? ">" + r.sortedSizes[((v = r.sortedSizes) == null ? void 0 : v.length) - 1] : c + "-" + r.sortedSizes[n + 1]
|
|
67
82
|
}, [
|
|
68
|
-
l("p",
|
|
83
|
+
l("p", ne, O(n === ((y = r.sortedSizes) == null ? void 0 : y.length) - 1 ? ">" + parseInt(c) : n == ((f = r.sortedSizes) == null ? void 0 : f.length) - 1 ? ">" + parseInt(r.sortedSizes[((_ = r.sortedSizes) == null ? void 0 : _.length) - 1]) : parseInt(c) + "-" + parseInt(r.sortedSizes[n + 1])), 1),
|
|
69
84
|
l("div", {
|
|
70
85
|
class: V([r.sizeClass(n), "w-full border border-r-0 border-gray-500"]),
|
|
71
|
-
style:
|
|
86
|
+
style: j({
|
|
72
87
|
backgroundColor: ((x = (b = e.palette) == null ? void 0 : b[o.color]) == null ? void 0 : x[n]) || o.color
|
|
73
88
|
})
|
|
74
89
|
}, null, 6)
|
|
75
|
-
], 8,
|
|
76
|
-
}), 256)) :
|
|
77
|
-
])) :
|
|
90
|
+
], 8, ie);
|
|
91
|
+
}), 256)) : S("", !0)
|
|
92
|
+
])) : S("", !0);
|
|
78
93
|
}
|
|
79
|
-
const
|
|
94
|
+
const pe = /* @__PURE__ */ H(oe, [["render", le]]), ce = {
|
|
80
95
|
__name: "icon-map",
|
|
81
96
|
setup(t) {
|
|
82
|
-
return (s, o) => (p(),
|
|
97
|
+
return (s, o) => (p(), z($(se), ee(s.$attrs, { size: 24 }), null, 16));
|
|
83
98
|
}
|
|
84
|
-
},
|
|
85
|
-
mixins: [
|
|
99
|
+
}, de = {
|
|
100
|
+
mixins: [Q, D],
|
|
86
101
|
components: {
|
|
87
102
|
VsMapSetting: q,
|
|
88
|
-
VsClusterLegend:
|
|
103
|
+
VsClusterLegend: pe,
|
|
89
104
|
VsMapGoHome: Z,
|
|
90
|
-
VsList:
|
|
91
|
-
VsMapSlotLayers:
|
|
105
|
+
VsList: P,
|
|
106
|
+
VsMapSlotLayers: G,
|
|
92
107
|
// VsListbar,
|
|
93
|
-
VsBar:
|
|
108
|
+
VsBar: J
|
|
94
109
|
},
|
|
95
110
|
data() {
|
|
96
111
|
return {
|
|
97
112
|
baseColor: "pink",
|
|
98
113
|
kattotg: "",
|
|
99
114
|
options: [
|
|
100
|
-
{ id: "map", text: "Карта", component:
|
|
101
|
-
{ id: "table", text: "Таблиця", component:
|
|
102
|
-
{ id: "chart", text: "Віджет", component:
|
|
115
|
+
{ id: "map", text: "Карта", component: ce },
|
|
116
|
+
{ id: "table", text: "Таблиця", component: X },
|
|
117
|
+
{ id: "chart", text: "Віджет", component: Y }
|
|
103
118
|
],
|
|
104
119
|
activeTab: "map",
|
|
105
120
|
mapId: `map-${Math.floor(Math.random() * 1e3)}`,
|
|
@@ -124,7 +139,7 @@ const le = /* @__PURE__ */ H(se, [["render", ne]]), pe = {
|
|
|
124
139
|
},
|
|
125
140
|
methods: {
|
|
126
141
|
async getMapData() {
|
|
127
|
-
const t = await
|
|
142
|
+
const t = await U.get(
|
|
128
143
|
`/bi-cluster?widget=${this.widget}&dashboard=${this.dashboard}`
|
|
129
144
|
);
|
|
130
145
|
this.data = t, this.$emit("update:widgetData", this.data), setTimeout(() => {
|
|
@@ -137,8 +152,8 @@ const le = /* @__PURE__ */ H(se, [["render", ne]]), pe = {
|
|
|
137
152
|
this.baseColor = ((a = this.data.style) == null ? void 0 : a.color) || "blue";
|
|
138
153
|
const t = ["case"];
|
|
139
154
|
(d = (r = (e = this.data) == null ? void 0 : e.sizes) == null ? void 0 : r.toReversed()) == null || d.forEach((c, n) => {
|
|
140
|
-
var h,
|
|
141
|
-
t.push([">", ["get", "metric"], c]), t.push((
|
|
155
|
+
var h, u;
|
|
156
|
+
t.push([">", ["get", "metric"], c]), t.push((u = (h = T[this.baseColor]) == null ? void 0 : h.toReversed()) == null ? void 0 : u[n]), n++;
|
|
142
157
|
}), t.push("gray");
|
|
143
158
|
const s = {
|
|
144
159
|
type: "polygon",
|
|
@@ -221,23 +236,23 @@ const le = /* @__PURE__ */ H(se, [["render", ne]]), pe = {
|
|
|
221
236
|
}
|
|
222
237
|
}
|
|
223
238
|
}
|
|
224
|
-
},
|
|
225
|
-
function
|
|
226
|
-
var y, f, _, b, x, I,
|
|
227
|
-
const d =
|
|
228
|
-
return p(), g("div",
|
|
229
|
-
l("div",
|
|
239
|
+
}, he = { class: "h-full" }, ue = { class: "flex items-start justify-between mb-[6px] w-full" }, me = { class: "text-gray-800 font-[600]" }, ge = { class: "flex gap-2" }, ye = ["onClick"], fe = ["id"], _e = ["id"], be = { class: "absolute flex flex-col right-[10px] top-[105px] gap-1" }, xe = { class: "h-[calc(250px)]" };
|
|
240
|
+
function ve(t, s, o, a, e, r) {
|
|
241
|
+
var y, f, _, b, x, I, k, L, E, B;
|
|
242
|
+
const d = m("VsMapSetting"), c = m("VsMapSlotLayers"), n = m("VsMapGoHome"), h = m("VsClusterLegend"), u = m("VsList"), v = m("VsBar");
|
|
243
|
+
return p(), g("div", he, [
|
|
244
|
+
l("div", ue, [
|
|
230
245
|
l("h3", me, O(t.title), 1),
|
|
231
|
-
l("div",
|
|
246
|
+
l("div", ge, [
|
|
232
247
|
(p(!0), g(R, null, N(e.options, (i) => (p(), g("button", {
|
|
233
248
|
class: V(["p-1 text-gray-700 border rounded", [e.activeTab === (i == null ? void 0 : i.id) ? "ring-2 ring-blue-500" : ""]]),
|
|
234
|
-
onClick: (
|
|
249
|
+
onClick: (we) => e.activeTab = i == null ? void 0 : i.id
|
|
235
250
|
}, [
|
|
236
|
-
(p(),
|
|
251
|
+
(p(), z(te(i == null ? void 0 : i.component), {
|
|
237
252
|
height: "16",
|
|
238
253
|
width: "16"
|
|
239
254
|
}))
|
|
240
|
-
], 10,
|
|
255
|
+
], 10, ye))), 256))
|
|
241
256
|
])
|
|
242
257
|
]),
|
|
243
258
|
M(l("div", {
|
|
@@ -247,14 +262,14 @@ function xe(t, s, o, a, e, r) {
|
|
|
247
262
|
l("div", {
|
|
248
263
|
id: e.mapId,
|
|
249
264
|
class: "h-full w-full flex items-end min-h-[250px]"
|
|
250
|
-
}, null, 8,
|
|
251
|
-
e.showSetting ? (p(),
|
|
265
|
+
}, null, 8, _e),
|
|
266
|
+
e.showSetting ? (p(), z(d, {
|
|
252
267
|
key: 0,
|
|
253
268
|
map: e.map,
|
|
254
269
|
coordinates: e.coordinatesByMouse
|
|
255
|
-
}, null, 8, ["map", "coordinates"])) :
|
|
270
|
+
}, null, 8, ["map", "coordinates"])) : S("", !0),
|
|
256
271
|
w(c, { map: e.map }, null, 8, ["map"]),
|
|
257
|
-
l("div",
|
|
272
|
+
l("div", be, [
|
|
258
273
|
w(n, {
|
|
259
274
|
map: e.map,
|
|
260
275
|
bbox: (y = e.data) == null ? void 0 : y.bounds
|
|
@@ -268,10 +283,10 @@ function xe(t, s, o, a, e, r) {
|
|
|
268
283
|
changeOpacityItem: "true",
|
|
269
284
|
cluster: "true"
|
|
270
285
|
}, null, 8, ["mapId", "colors", "sizes", "color"])
|
|
271
|
-
], 8,
|
|
286
|
+
], 8, fe), [
|
|
272
287
|
[C, e.activeTab == "map"]
|
|
273
288
|
]),
|
|
274
|
-
M(w(
|
|
289
|
+
M(w(u, {
|
|
275
290
|
mapId: e.mapId,
|
|
276
291
|
source: (b = e.data) == null ? void 0 : b.rows,
|
|
277
292
|
total: ((x = e.data) == null ? void 0 : x.total) || 0,
|
|
@@ -280,20 +295,20 @@ function xe(t, s, o, a, e, r) {
|
|
|
280
295
|
}, null, 8, ["mapId", "source", "total", "count"]), [
|
|
281
296
|
[C, e.activeTab == "table"]
|
|
282
297
|
]),
|
|
283
|
-
M(l("div",
|
|
284
|
-
(
|
|
298
|
+
M(l("div", xe, [
|
|
299
|
+
(L = (k = e.data) == null ? void 0 : k.rows) != null && L.length ? (p(), z(v, {
|
|
285
300
|
key: 0,
|
|
286
301
|
source: (B = (E = e.data) == null ? void 0 : E.rows) == null ? void 0 : B.map((i) => ({
|
|
287
302
|
title: i == null ? void 0 : i.title,
|
|
288
303
|
metric: i == null ? void 0 : i.metric
|
|
289
304
|
}))
|
|
290
|
-
}, null, 8, ["source"])) :
|
|
305
|
+
}, null, 8, ["source"])) : S("", !0)
|
|
291
306
|
], 512), [
|
|
292
307
|
[C, e.activeTab == "chart"]
|
|
293
308
|
])
|
|
294
309
|
]);
|
|
295
310
|
}
|
|
296
|
-
const Ce = /* @__PURE__ */ H(
|
|
311
|
+
const Ce = /* @__PURE__ */ H(de, [["render", ve]]);
|
|
297
312
|
export {
|
|
298
313
|
Ce as default
|
|
299
314
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as m, c as f, b as _, d as b } from "./import-file-
|
|
1
|
+
import { _ as m, c as f, b as _, d as b } from "./import-file-DldGj76q.js";
|
|
2
2
|
import { createElementBlock as a, openBlock as r, createElementVNode as s, Fragment as n, renderList as c, toDisplayString as d } from "vue";
|
|
3
3
|
const x = {
|
|
4
4
|
name: "VsTable",
|
package/package.json
CHANGED
package/dist/form-l0sNRNKZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|