@opengis/bi 1.0.47 → 1.0.49
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/config.js +12 -12
- package/dist/bi.js +1 -1
- package/dist/bi.umd.cjs +118 -105
- package/dist/{import-file-XFI3CaVb.js → import-file-0V4hdOl6.js} +10121 -10070
- package/dist/style.css +1 -1
- package/dist/{vs-donut-al85JwBt.js → vs-donut-W78DXWSG.js} +26 -23
- package/dist/{vs-funnel-bar-mWZ8lvEq.js → vs-funnel-bar-Bbt9ykLL.js} +5 -5
- package/dist/{vs-list-1QDnN3pH.js → vs-list-BsSJxqJM.js} +1535 -1532
- package/dist/{vs-map-CwR6ZYur.js → vs-map-Cjm5Yhl8.js} +8 -8
- package/dist/{vs-map-cluster-YdXTBIVf.js → vs-map-cluster-DriEl06t.js} +18 -18
- package/dist/{vs-number-CRUhHKym.js → vs-number-DSvtrmoG.js} +3 -3
- package/dist/{vs-table-OddIdr1s.js → vs-table-B4joILs0.js} +6 -6
- package/dist/{vs-text-CQ9vn0qO.js → vs-text-D8LfAqY7.js} +4 -4
- package/package.json +1 -1
- package/server/plugins/vite.js +69 -69
- package/server/routes/dashboard/controllers/utils/yaml.js +11 -11
- package/server/routes/data/controllers/data.js +18 -2
- package/server/routes/data/controllers/util/normalizeData.js +2 -2
- package/server/routes/map/controllers/cluster.js +125 -121
- package/server/routes/map/controllers/clusterVtile.js +166 -166
- package/server/routes/map/controllers/geojson.js +127 -127
- package/server/routes/map/controllers/map.js +69 -67
- package/server/routes/map/controllers/utils/downloadClusterData.js +44 -44
- package/server/routes/map/controllers/vtile.js +183 -183
- package/utils.js +12 -12
package/dist/style.css
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
License: ~ MIT (or more permissive) [via base16-schemes-source]
|
|
5
5
|
Maintainer: @highlightjs/core-team
|
|
6
6
|
Version: 2021.09.0
|
|
7
|
-
*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#c7ccd1;background:#1c2023}.hljs ::selection,.hljs::selection{background-color:#565e65;color:#c7ccd1}.hljs-comment{color:#747c84}.hljs-tag{color:#adb3ba}.hljs-operator,.hljs-punctuation,.hljs-subst{color:#c7ccd1}.hljs-operator{opacity:.7}.hljs-bullet,.hljs-deletion,.hljs-name,.hljs-selector-tag,.hljs-template-variable,.hljs-variable{color:#c7ae95}.hljs-attr,.hljs-link,.hljs-literal,.hljs-number,.hljs-symbol,.hljs-variable.constant_{color:#c7c795}.hljs-class .hljs-title,.hljs-title,.hljs-title.class_{color:#aec795}.hljs-strong{font-weight:700;color:#aec795}.hljs-addition,.hljs-code,.hljs-string,.hljs-title.class_.inherited__{color:#95c7ae}.hljs-built_in,.hljs-doctag,.hljs-keyword.hljs-atrule,.hljs-quote,.hljs-regexp{color:#95aec7}.hljs-attribute,.hljs-function .hljs-title,.hljs-section,.hljs-title.function_,.ruby .hljs-property{color:#ae95c7}.diff .hljs-meta,.hljs-keyword,.hljs-template-tag,.hljs-type{color:#c795ae}.hljs-emphasis{color:#c795ae;font-style:italic}.hljs-meta,.hljs-meta .hljs-keyword,.hljs-meta .hljs-string{color:#c79595}.hljs-meta .hljs-keyword,.hljs-meta-keyword{font-weight:700}.custom-scrollbar[data-v-
|
|
7
|
+
*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#c7ccd1;background:#1c2023}.hljs ::selection,.hljs::selection{background-color:#565e65;color:#c7ccd1}.hljs-comment{color:#747c84}.hljs-tag{color:#adb3ba}.hljs-operator,.hljs-punctuation,.hljs-subst{color:#c7ccd1}.hljs-operator{opacity:.7}.hljs-bullet,.hljs-deletion,.hljs-name,.hljs-selector-tag,.hljs-template-variable,.hljs-variable{color:#c7ae95}.hljs-attr,.hljs-link,.hljs-literal,.hljs-number,.hljs-symbol,.hljs-variable.constant_{color:#c7c795}.hljs-class .hljs-title,.hljs-title,.hljs-title.class_{color:#aec795}.hljs-strong{font-weight:700;color:#aec795}.hljs-addition,.hljs-code,.hljs-string,.hljs-title.class_.inherited__{color:#95c7ae}.hljs-built_in,.hljs-doctag,.hljs-keyword.hljs-atrule,.hljs-quote,.hljs-regexp{color:#95aec7}.hljs-attribute,.hljs-function .hljs-title,.hljs-section,.hljs-title.function_,.ruby .hljs-property{color:#ae95c7}.diff .hljs-meta,.hljs-keyword,.hljs-template-tag,.hljs-type{color:#c795ae}.hljs-emphasis{color:#c795ae;font-style:italic}.hljs-meta,.hljs-meta .hljs-keyword,.hljs-meta .hljs-string{color:#c79595}.hljs-meta .hljs-keyword,.hljs-meta-keyword{font-weight:700}.custom-scrollbar[data-v-88ce3ea2]{overflow-y:auto;overflow-x:clip}.custom-scrollbar[data-v-88ce3ea2]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-88ce3ea2]::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.custom-scrollbar[data-v-88ce3ea2]::-webkit-scrollbar-track{background-color:#f1f1f1}.text-widget h1{font-size:18px}.text-widget h2{font-size:14px}.map__settings{display:flex;padding:3px 1px;background:#fff;position:absolute;right:0;bottom:15px;height:30px;align-items:center;font-weight:100;text-align:center}.map__settings-item{display:flex;white-space:nowrap;padding:0 2px;font-size:10px;font-weight:400}.map__settings-attribution{padding:0}.map__settings-menu{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:15px!important;position:absolute;background-color:#fff;bottom:60px;right:90px;width:260px}.map__settings-menu-item{display:flex;align-items:center;color:#2c2c2c;margin-bottom:5px;font-size:12px;justify-content:space-between;height:28px}.map__settings-menu-item-text{height:28px;line-height:28px;background-color:#fff;background-image:none;border-radius:4px;border:1px solid #dcdfe6;-webkit-box-sizing:border-box;box-sizing:border-box;color:#606266;display:inline-block;font-size:12px;height:40px;line-height:40px;outline:0;padding:0 10px}.map__settings-menu-item--checktext{color:#000!important;font-size:12px;display:inline-block;padding-left:10px;line-height:19px;cursor:pointer}.checked{color:#409eff!important}.vs-map-slot-layers{position:absolute;display:none;bottom:10px;left:15px}.vs-map-slot-layers__layer{width:50px;height:50px;background-color:#fff;box-shadow:0 0 7px #434c5626;padding:5px;border-radius:5px;margin-top:10px;margin-right:10px;cursor:pointer;transition:all .3s}.vs-map-slot-layers__layer:hover{background-color:#eee}.vs-map-slot-layers__image{width:100%;border-radius:5px;object-fit:contain}.focused{background-color:#1989fa!important}.maplibregl-popup-content{padding:0}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as y, c as D,
|
|
2
|
-
import {
|
|
1
|
+
import { _ as y, c as D, a as c, P as h, b as l, i as g } from "./import-file-0V4hdOl6.js";
|
|
2
|
+
import { openBlock as b, createElementBlock as x } from "vue";
|
|
3
3
|
const _ = {
|
|
4
4
|
name: "VsPie",
|
|
5
5
|
props: ["currentWidget"],
|
|
@@ -44,30 +44,30 @@ const _ = {
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
buildTooltipForDonut(t, e) {
|
|
47
|
-
const { name: r, value:
|
|
47
|
+
const { name: r, value: n, percent: a } = t;
|
|
48
48
|
return `
|
|
49
49
|
<div style="background-color:${e[0]}; font-size:12px; font-family:Helvetica, Arial, sans-serif; color:#ffff; padding:5px; border-radius:5px;">
|
|
50
|
-
${r == null ? void 0 : r.replace("null", "Не визначено")}: ${c(
|
|
50
|
+
${r == null ? void 0 : r.replace("null", "Не визначено")}: ${c(n)} (${a}%)
|
|
51
51
|
</div>`;
|
|
52
52
|
},
|
|
53
53
|
prepareData() {
|
|
54
54
|
var t, e, r;
|
|
55
55
|
try {
|
|
56
|
-
const
|
|
56
|
+
const n = Array.from(
|
|
57
57
|
new Set(this.sourceData.map((s) => s[this.dimensions[0]]))
|
|
58
58
|
), a = Array.from(
|
|
59
59
|
new Set(this.sourceData.map((s) => s[this.dimensions[1]]))
|
|
60
|
-
),
|
|
61
|
-
this.sourceData.reduce((s,
|
|
60
|
+
), o = parseInt(
|
|
61
|
+
this.sourceData.reduce((s, i) => s + parseFloat(i == null ? void 0 : i.metric), 0),
|
|
62
62
|
10
|
|
63
|
-
), d =
|
|
64
|
-
const f = (a[
|
|
63
|
+
), d = n.map((s, i) => {
|
|
64
|
+
const f = (a[i] / o * 100).toFixed(2);
|
|
65
65
|
return {
|
|
66
66
|
name: `${s} (${f}%)`,
|
|
67
|
-
value: a[
|
|
67
|
+
value: a[i]
|
|
68
68
|
};
|
|
69
69
|
}), u = ((t = this.styleData) == null ? void 0 : t.innerRadius) || "80%", p = ((e = this.styleData) == null ? void 0 : e.outerRadius) || "100%", m = [u, p];
|
|
70
|
-
return this.styleData.legend =
|
|
70
|
+
return this.styleData.legend = h.getLegendOpions({
|
|
71
71
|
borderRadius: 10,
|
|
72
72
|
height: "100%",
|
|
73
73
|
padding: 10,
|
|
@@ -75,9 +75,12 @@ const _ = {
|
|
|
75
75
|
type: "scroll",
|
|
76
76
|
itemWidth: 14,
|
|
77
77
|
itemHeight: 14,
|
|
78
|
-
formatter: (s) =>
|
|
78
|
+
formatter: (s) => {
|
|
79
|
+
var i;
|
|
80
|
+
return (i = s == null ? void 0 : s.replace("null", "Не визначено")) == null ? void 0 : i.replace("NaN", "0.00");
|
|
81
|
+
},
|
|
79
82
|
...this.styleData.legend
|
|
80
|
-
}), this.styleData.label =
|
|
83
|
+
}), this.styleData.label = h.getLabelOptions(
|
|
81
84
|
this.styleData.label
|
|
82
85
|
), this.styleData.show_legend = ((r = this.styleData) == null ? void 0 : r.show_legend) || !0, { series: [
|
|
83
86
|
{
|
|
@@ -86,12 +89,12 @@ const _ = {
|
|
|
86
89
|
radius: m,
|
|
87
90
|
center: ["50%", "60%"],
|
|
88
91
|
height: "75%",
|
|
89
|
-
...
|
|
92
|
+
...l(this.styleData),
|
|
90
93
|
data: d
|
|
91
94
|
}
|
|
92
95
|
] };
|
|
93
|
-
} catch (
|
|
94
|
-
return console.error(
|
|
96
|
+
} catch (n) {
|
|
97
|
+
return console.error(n), null;
|
|
95
98
|
}
|
|
96
99
|
},
|
|
97
100
|
async initChart(t) {
|
|
@@ -99,9 +102,9 @@ const _ = {
|
|
|
99
102
|
const e = this.$refs.chart;
|
|
100
103
|
this.chartInstance = g(e);
|
|
101
104
|
const r = parseInt(
|
|
102
|
-
this.sourceData.reduce((a,
|
|
105
|
+
this.sourceData.reduce((a, o) => a + parseFloat(o == null ? void 0 : o.metric), 0),
|
|
103
106
|
10
|
|
104
|
-
),
|
|
107
|
+
), n = {
|
|
105
108
|
tooltip: {
|
|
106
109
|
trigger: "item",
|
|
107
110
|
formatter: (a) => this.buildTooltipForDonut(a, [a.color]),
|
|
@@ -114,7 +117,7 @@ const _ = {
|
|
|
114
117
|
backgroundColor: "transparent"
|
|
115
118
|
},
|
|
116
119
|
series: t,
|
|
117
|
-
...
|
|
120
|
+
...l({ ...this.styleData }),
|
|
118
121
|
title: {
|
|
119
122
|
text: c(r),
|
|
120
123
|
left: "center",
|
|
@@ -126,7 +129,7 @@ const _ = {
|
|
|
126
129
|
}
|
|
127
130
|
}
|
|
128
131
|
};
|
|
129
|
-
this.chartInstance.setOption(
|
|
132
|
+
this.chartInstance.setOption(n), this.$emit("update:currentWidget", this.chartInstance), this.chartInstance.resize(), window.addEventListener("resize", () => {
|
|
130
133
|
this.chartInstance.resize();
|
|
131
134
|
});
|
|
132
135
|
} catch (e) {
|
|
@@ -135,9 +138,9 @@ const _ = {
|
|
|
135
138
|
}
|
|
136
139
|
}
|
|
137
140
|
}, $ = ["id"];
|
|
138
|
-
function I(t, e, r,
|
|
139
|
-
return
|
|
140
|
-
id:
|
|
141
|
+
function I(t, e, r, n, a, o) {
|
|
142
|
+
return b(), x("div", {
|
|
143
|
+
id: o.uniqueID,
|
|
141
144
|
ref: "chart",
|
|
142
145
|
class: "h-full min-h-[200px] flex items-center"
|
|
143
146
|
}, null, 8, $);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as n, c,
|
|
2
|
-
import {
|
|
1
|
+
import { _ as n, c, d as h, a as l, b as o, i as d } from "./import-file-0V4hdOl6.js";
|
|
2
|
+
import { openBlock as p, createElementBlock as u } from "vue";
|
|
3
3
|
const m = {
|
|
4
4
|
name: "VsFunnelBar",
|
|
5
5
|
mixins: [c],
|
|
@@ -19,7 +19,7 @@ const m = {
|
|
|
19
19
|
const { name: s, value: a, percent: e } = t;
|
|
20
20
|
return `
|
|
21
21
|
<div style="background-color:${r[0]};font-size: 12px; font-family: Helvetica, Arial, sans-serif;color:#ffff; padding:5px; border-radius:5px; ![box-shadow:none]">
|
|
22
|
-
${
|
|
22
|
+
${h(s)}: ${l(a)} (${e}%)
|
|
23
23
|
</div>`;
|
|
24
24
|
},
|
|
25
25
|
onChangedData() {
|
|
@@ -61,7 +61,7 @@ const m = {
|
|
|
61
61
|
},
|
|
62
62
|
async initChart(t) {
|
|
63
63
|
try {
|
|
64
|
-
const r = this.$refs.chart, s =
|
|
64
|
+
const r = this.$refs.chart, s = d(r), a = {
|
|
65
65
|
series: t,
|
|
66
66
|
...o(this.styleData),
|
|
67
67
|
tooltip: {
|
|
@@ -104,7 +104,7 @@ const m = {
|
|
|
104
104
|
}
|
|
105
105
|
}, f = ["id"];
|
|
106
106
|
function y(t, r, s, a, e, i) {
|
|
107
|
-
return
|
|
107
|
+
return p(), u("div", {
|
|
108
108
|
ref: "chart",
|
|
109
109
|
id: e.uniqueID,
|
|
110
110
|
class: "h-[90%] custom-scrollbar min-h-[200px]"
|