@opengis/bi 1.2.17 → 1.2.18
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 +6 -6
- package/dist/bi.umd.cjs +1717 -1795
- package/dist/import-file-D72PHcD5.js +5649 -0
- package/dist/{index-D_qtEvN8.js → index-loIO5IT3.js} +2377 -2365
- package/dist/{list-DIYhtBuQ.js → list-CGFdMWFs.js} +1 -1
- package/dist/{map-CQZ_RiQg.js → map-DHnu6LJE.js} +1 -1
- package/dist/{vs-funnel-bar-DkvPhko1.js → vs-funnel-bar-CuZB5Xcy.js} +24 -22
- package/dist/{vs-list--lRWoAuT.js → vs-list-kmzDaKMg.js} +2 -2
- package/dist/{vs-map-Dq_42OWv.js → vs-map-CzZ6TpmM.js} +2 -2
- package/dist/{vs-map-cluster-DV1Z30Jd.js → vs-map-cluster-9xOpkWTu.js} +3 -3
- package/dist/{vs-number-BTJmZZ5H.js → vs-number-BuP4nTYx.js} +1 -1
- package/dist/{vs-table-Bq9QnYnY.js → vs-table-CTHNmESe.js} +1 -1
- package/dist/{vs-text-CYIHiHjf.js → vs-text-aaXGkWOh.js} +1 -1
- package/package.json +8 -10
- package/dist/import-file-Bz7XxTwm.js +0 -49607
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { createElementBlock as
|
|
3
|
-
const m = {
|
|
1
|
+
import { _ as c, c as l, a as o, b as h, d } from "./import-file-D72PHcD5.js";
|
|
2
|
+
import { createElementBlock as u, openBlock as p } from "vue";
|
|
3
|
+
const i = typeof window < "u" ? window.echarts : null, m = {
|
|
4
4
|
name: "VsFunnelBar",
|
|
5
|
-
mixins: [
|
|
5
|
+
mixins: [l],
|
|
6
6
|
data() {
|
|
7
7
|
return {
|
|
8
8
|
chartInstance: null,
|
|
@@ -15,18 +15,18 @@ const m = {
|
|
|
15
15
|
t && this.initChart(t);
|
|
16
16
|
},
|
|
17
17
|
methods: {
|
|
18
|
-
buildTooltipForDonut(t,
|
|
19
|
-
const { name:
|
|
18
|
+
buildTooltipForDonut(t, s) {
|
|
19
|
+
const { name: r, value: a, percent: e } = t;
|
|
20
20
|
return `
|
|
21
|
-
<div style="background-color:${
|
|
22
|
-
${
|
|
21
|
+
<div style="background-color:${s[0]};font-size: 12px; font-family: Helvetica, Arial, sans-serif;color:#ffff; padding:5px; border-radius:5px; ![box-shadow:none]">
|
|
22
|
+
${h(r)}: ${d(a)} (${e}%)
|
|
23
23
|
</div>`;
|
|
24
24
|
},
|
|
25
25
|
onChangedData() {
|
|
26
26
|
try {
|
|
27
27
|
if (this.sourceData) {
|
|
28
|
-
const { series: t, xs:
|
|
29
|
-
t && (this == null || this.initChart(t,
|
|
28
|
+
const { series: t, xs: s, ys: r } = this.prepareData();
|
|
29
|
+
t && (this == null || this.initChart(t, s, r));
|
|
30
30
|
}
|
|
31
31
|
} catch {
|
|
32
32
|
}
|
|
@@ -35,18 +35,18 @@ const m = {
|
|
|
35
35
|
try {
|
|
36
36
|
const t = Array.from(
|
|
37
37
|
new Set(this.sourceData.map((e) => e[this.dimensions[0]]))
|
|
38
|
-
),
|
|
38
|
+
), s = Array.from(
|
|
39
39
|
new Set(this.sourceData.map((e) => e[this.dimensions[1]]))
|
|
40
|
-
),
|
|
40
|
+
), r = t.map((e, n) => ({
|
|
41
41
|
name: e,
|
|
42
|
-
value:
|
|
42
|
+
value: s[n]
|
|
43
43
|
}));
|
|
44
44
|
return { series: [
|
|
45
45
|
{
|
|
46
46
|
name: this.titleCharts ? this.titleCharts : this.dimensions[0],
|
|
47
47
|
type: "funnel",
|
|
48
48
|
...o(this.styleData),
|
|
49
|
-
data:
|
|
49
|
+
data: r,
|
|
50
50
|
height: "80%",
|
|
51
51
|
emphasis: {
|
|
52
52
|
label: {
|
|
@@ -61,7 +61,9 @@ const m = {
|
|
|
61
61
|
},
|
|
62
62
|
async initChart(t) {
|
|
63
63
|
try {
|
|
64
|
-
const
|
|
64
|
+
const s = this.$refs.chart, r = i == null ? void 0 : i.init(s);
|
|
65
|
+
if (!r) return;
|
|
66
|
+
const a = {
|
|
65
67
|
series: t,
|
|
66
68
|
...o(this.styleData),
|
|
67
69
|
tooltip: {
|
|
@@ -94,23 +96,23 @@ const m = {
|
|
|
94
96
|
bottom: "0"
|
|
95
97
|
}
|
|
96
98
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
r.setOption(a), r.resize(), window.addEventListener("resize", () => {
|
|
100
|
+
r.resize();
|
|
99
101
|
});
|
|
100
|
-
} catch (
|
|
101
|
-
console.error(
|
|
102
|
+
} catch (s) {
|
|
103
|
+
console.error(s);
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
}, f = ["id"];
|
|
106
|
-
function y(t,
|
|
107
|
-
return
|
|
108
|
+
function y(t, s, r, a, e, n) {
|
|
109
|
+
return p(), u("div", {
|
|
108
110
|
ref: "chart",
|
|
109
111
|
id: e.uniqueID,
|
|
110
112
|
class: "h-[90%] custom-scrollbar min-h-[200px]"
|
|
111
113
|
}, null, 8, f);
|
|
112
114
|
}
|
|
113
|
-
const g = /* @__PURE__ */
|
|
115
|
+
const g = /* @__PURE__ */ c(m, [["render", y]]);
|
|
114
116
|
export {
|
|
115
117
|
g as default
|
|
116
118
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createBlock as b, openBlock as l, unref as L, mergeProps as v, createElementBlock as d, createElementVNode as c, withDirectives as F, toDisplayString as z, vShow as R, Fragment as M, renderList as P, normalizeClass as D, resolveComponent as H, createVNode as J } from "vue";
|
|
2
|
-
import { X as N, _ as w } from "./import-file-
|
|
3
|
-
import { L as O, H as W, G as q } from "./list-
|
|
2
|
+
import { X as N, _ as w } from "./import-file-D72PHcD5.js";
|
|
3
|
+
import { L as O, H as W, G as q } from "./list-CGFdMWFs.js";
|
|
4
4
|
const A = {
|
|
5
5
|
__name: "close",
|
|
6
6
|
setup(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as E, a as L, p as $, b as T, c as B, V as H, d as O, e as F, l as N } from "./vs-list
|
|
2
|
-
import { _ as V, c as P } from "./import-file-
|
|
1
|
+
import { _ as E, a as L, p as $, b as T, c as B, V as H, d as O, e as F, l as N } from "./vs-list-kmzDaKMg.js";
|
|
2
|
+
import { _ as V, c as P } from "./import-file-D72PHcD5.js";
|
|
3
3
|
import { resolveComponent as u, createElementBlock as c, openBlock as i, Fragment as w, createElementVNode as r, createBlock as C, createCommentVNode as m, createVNode as x, Teleport as R, toDisplayString as g, renderList as S, normalizeStyle as k, normalizeClass as I } from "vue";
|
|
4
4
|
const A = {
|
|
5
5
|
components: { legendIcon: L, closeIcon: E },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as F, a as G, p as T, V as P, b as A, c as Z, d as q, l as D, e as K } from "./vs-list
|
|
2
|
-
import { _ as H, V as W, c as J, g as Q, h as U,
|
|
1
|
+
import { _ as F, a as G, p as T, V as P, b as A, c as Z, d as q, l as D, e as K } from "./vs-list-kmzDaKMg.js";
|
|
2
|
+
import { _ as H, V as W, c as J, g as Q, h as U, i as X } from "./import-file-D72PHcD5.js";
|
|
3
3
|
import { createElementBlock as g, createCommentVNode as z, openBlock as p, createElementVNode as l, normalizeClass as V, Fragment as R, renderList as N, toDisplayString as O, normalizeStyle as Y, createBlock as S, unref as j, mergeProps as $, resolveComponent as u, withDirectives as M, resolveDynamicComponent as ee, createVNode as w, vShow as C } from "vue";
|
|
4
|
-
import { M as te } from "./map-
|
|
4
|
+
import { M as te } from "./map-DHnu6LJE.js";
|
|
5
5
|
const se = {
|
|
6
6
|
components: { legendIcon: G, closeIcon: F },
|
|
7
7
|
props: {
|
|
@@ -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-D72PHcD5.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengis/bi",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.18",
|
|
4
4
|
"description": "BI data visualization module",
|
|
5
5
|
"main": "dist/bi.js",
|
|
6
6
|
"browser": "dist/bi.umd.cjs",
|
|
@@ -48,30 +48,28 @@
|
|
|
48
48
|
"lucide-vue-next": "^0.546.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@opengis/fastify-table": "^2.0.33",
|
|
52
51
|
"@opengis/core": "^0.0.32",
|
|
52
|
+
"@opengis/fastify-table": "^2.0.33",
|
|
53
53
|
"@opengis/form": "^0.0.117",
|
|
54
|
-
"@opengis/v3-filter": "^0.0.71",
|
|
55
|
-
"cross-env": "^10.1.0",
|
|
56
54
|
"@turf/turf": "^7.1.0",
|
|
57
|
-
"echarts": "^5.5.1",
|
|
58
|
-
"marked": "^14.1.2",
|
|
59
|
-
"vite": "^5.1.5",
|
|
60
|
-
"vue": "^3.4.27",
|
|
61
|
-
"vue-router": "^4.4.3",
|
|
62
|
-
"@types/echarts": "^4.9.22",
|
|
63
55
|
"@types/node": "^22.7.5",
|
|
64
56
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
65
57
|
"@typescript-eslint/parser": "^6.21.0",
|
|
66
58
|
"@vitejs/plugin-vue": "^5.1.4",
|
|
59
|
+
"cross-env": "^10.1.0",
|
|
67
60
|
"eslint": "^8.57.1",
|
|
68
61
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
69
62
|
"eslint-config-prettier": "^9.1.0",
|
|
70
63
|
"eslint-plugin-vue": "^9.29.0",
|
|
71
64
|
"globals": "^15.10.0",
|
|
65
|
+
"marked": "^14.1.2",
|
|
72
66
|
"prettier": "^3.3.3",
|
|
67
|
+
"rollup-plugin-visualizer": "^7.0.0",
|
|
73
68
|
"sass-embedded": "1.89.2",
|
|
74
69
|
"typescript": "^5.4.5",
|
|
70
|
+
"vite": "^5.1.5",
|
|
71
|
+
"vue": "^3.4.27",
|
|
72
|
+
"vue-router": "^4.4.3",
|
|
75
73
|
"vue-tsc": "^2.1.6"
|
|
76
74
|
}
|
|
77
75
|
}
|