@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.
@@ -1,9 +1,24 @@
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
- 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-DHnu6LJE.js";
5
- const se = {
6
- components: { legendIcon: G, closeIcon: F },
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
- }, oe = {
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
- }, ae = { class: "w-[80px] mr-[10px]" }, re = ["title"], ie = { class: "text-[10px] mb-[2px] text-[#1F2937] font-normal leading-[1.2]" };
53
- function ne(t, s, o, a, e, r) {
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", oe, [
56
- l("div", ae, [
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, m, v, y, f, _, b, x;
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 == ((m = r.sortedSizes) == null ? void 0 : m.length) - 1 ? ">" + r.sortedSizes[((v = r.sortedSizes) == null ? void 0 : v.length) - 1] : c + "-" + r.sortedSizes[n + 1]
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", ie, 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),
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: Y({
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, re);
76
- }), 256)) : z("", !0)
77
- ])) : z("", !0);
90
+ ], 8, ie);
91
+ }), 256)) : S("", !0)
92
+ ])) : S("", !0);
78
93
  }
79
- const le = /* @__PURE__ */ H(se, [["render", ne]]), pe = {
94
+ const pe = /* @__PURE__ */ H(oe, [["render", le]]), ce = {
80
95
  __name: "icon-map",
81
96
  setup(t) {
82
- return (s, o) => (p(), S(j(te), $(s.$attrs, { size: 24 }), null, 16));
97
+ return (s, o) => (p(), z($(se), ee(s.$attrs, { size: 24 }), null, 16));
83
98
  }
84
- }, ce = {
85
- mixins: [J, D],
99
+ }, de = {
100
+ mixins: [Q, D],
86
101
  components: {
87
102
  VsMapSetting: q,
88
- VsClusterLegend: le,
103
+ VsClusterLegend: pe,
89
104
  VsMapGoHome: Z,
90
- VsList: A,
91
- VsMapSlotLayers: P,
105
+ VsList: P,
106
+ VsMapSlotLayers: G,
92
107
  // VsListbar,
93
- VsBar: W
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: pe },
101
- { id: "table", text: "Таблиця", component: U },
102
- { id: "chart", text: "Віджет", component: X }
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 Q.get(
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, m;
141
- t.push([">", ["get", "metric"], c]), t.push((m = (h = T[this.baseColor]) == null ? void 0 : h.toReversed()) == null ? void 0 : m[n]), n++;
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
- }, de = { class: "h-full" }, he = { class: "flex items-start justify-between mb-[6px] w-full" }, me = { class: "text-gray-800 font-[600]" }, ue = { class: "flex gap-2" }, ge = ["onClick"], ye = ["id"], fe = ["id"], _e = { class: "absolute flex flex-col right-[10px] top-[105px] gap-1" }, be = { class: "h-[calc(250px)]" };
225
- function xe(t, s, o, a, e, r) {
226
- var y, f, _, b, x, I, L, k, E, B;
227
- const d = u("VsMapSetting"), c = u("VsMapSlotLayers"), n = u("VsMapGoHome"), h = u("VsClusterLegend"), m = u("VsList"), v = u("VsBar");
228
- return p(), g("div", de, [
229
- l("div", he, [
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", ue, [
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: (ve) => e.activeTab = i == null ? void 0 : i.id
249
+ onClick: (we) => e.activeTab = i == null ? void 0 : i.id
235
250
  }, [
236
- (p(), S(ee(i == null ? void 0 : i.component), {
251
+ (p(), z(te(i == null ? void 0 : i.component), {
237
252
  height: "16",
238
253
  width: "16"
239
254
  }))
240
- ], 10, ge))), 256))
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, fe),
251
- e.showSetting ? (p(), S(d, {
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"])) : z("", !0),
270
+ }, null, 8, ["map", "coordinates"])) : S("", !0),
256
271
  w(c, { map: e.map }, null, 8, ["map"]),
257
- l("div", _e, [
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, ye), [
286
+ ], 8, fe), [
272
287
  [C, e.activeTab == "map"]
273
288
  ]),
274
- M(w(m, {
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", be, [
284
- (k = (L = e.data) == null ? void 0 : L.rows) != null && k.length ? (p(), S(v, {
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"])) : z("", !0)
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(ce, [["render", xe]]);
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 c, c as o, f as n } from "./import-file-D72PHcD5.js";
1
+ import { _ as c, c as o, f as n } from "./import-file-DldGj76q.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-D72PHcD5.js";
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",
@@ -1,4 +1,4 @@
1
- import { _ as o, c as s, m as i } from "./import-file-D72PHcD5.js";
1
+ import { _ as o, c as s, m as i } from "./import-file-DldGj76q.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.18",
3
+ "version": "1.2.20",
4
4
  "description": "BI data visualization module",
5
5
  "main": "dist/bi.js",
6
6
  "browser": "dist/bi.umd.cjs",
@@ -1 +0,0 @@
1
-