@opengis/bi 1.2.16 → 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.
@@ -1,4 +1,4 @@
1
- import { e as c } from "./import-file-BAgOJvMq.js";
1
+ import { e as c } from "./import-file-D72PHcD5.js";
2
2
  /**
3
3
  * @license lucide-vue-next v0.546.0 - ISC
4
4
  *
@@ -1,4 +1,4 @@
1
- import { e as a } from "./import-file-BAgOJvMq.js";
1
+ import { e as a } from "./import-file-D72PHcD5.js";
2
2
  /**
3
3
  * @license lucide-vue-next v0.546.0 - ISC
4
4
  *
@@ -1,8 +1,8 @@
1
- import { _ as n, c, i as h, a as o, b as l, d } from "./import-file-BAgOJvMq.js";
2
- import { createElementBlock as p, openBlock as u } from "vue";
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: [c],
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, r) {
19
- const { name: s, value: a, percent: e } = t;
18
+ buildTooltipForDonut(t, s) {
19
+ const { name: r, value: a, percent: e } = t;
20
20
  return `
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
- ${l(s)}: ${d(a)} (${e}%)
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: r, ys: s } = this.prepareData();
29
- t && (this == null || this.initChart(t, r, s));
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
- ), r = Array.from(
38
+ ), s = Array.from(
39
39
  new Set(this.sourceData.map((e) => e[this.dimensions[1]]))
40
- ), s = t.map((e, i) => ({
40
+ ), r = t.map((e, n) => ({
41
41
  name: e,
42
- value: r[i]
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: s,
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 r = this.$refs.chart, s = h(r), a = {
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
- s.setOption(a), s.resize(), window.addEventListener("resize", () => {
98
- s.resize();
99
+ r.setOption(a), r.resize(), window.addEventListener("resize", () => {
100
+ r.resize();
99
101
  });
100
- } catch (r) {
101
- console.error(r);
102
+ } catch (s) {
103
+ console.error(s);
102
104
  }
103
105
  }
104
106
  }
105
107
  }, f = ["id"];
106
- function y(t, r, s, a, e, i) {
107
- return u(), p("div", {
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__ */ n(m, [["render", y]]);
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-BAgOJvMq.js";
3
- import { L as O, H as W, G as q } from "./list-DdUhzd3x.js";
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-CkH5cu3X.js";
2
- import { _ as V, c as P } from "./import-file-BAgOJvMq.js";
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-CkH5cu3X.js";
2
- import { _ as H, V as W, c as J, g as Q, h as U, j as X } from "./import-file-BAgOJvMq.js";
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-DxWxxzQ5.js";
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 c, c as o, f as n } from "./import-file-BAgOJvMq.js";
1
+ import { _ as c, c as o, f as n } from "./import-file-D72PHcD5.js";
2
2
  import { createElementBlock as i, openBlock as m, toDisplayString as s } from "vue";
3
3
  const u = {
4
4
  name: "VsNumber",
@@ -1,4 +1,4 @@
1
- import { _ as m, c as f, b as _, d as b } from "./import-file-BAgOJvMq.js";
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",
@@ -1,4 +1,4 @@
1
- import { _ as o, c as s, m as i } from "./import-file-BAgOJvMq.js";
1
+ import { _ as o, c as s, m as i } from "./import-file-D72PHcD5.js";
2
2
  import { createElementBlock as r, openBlock as n, createCommentVNode as a } from "vue";
3
3
  const c = {
4
4
  name: "VsText",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/bi",
3
- "version": "1.2.16",
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
  }