@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/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-89cc241e]{overflow-y:auto;overflow-x:clip}.custom-scrollbar[data-v-89cc241e]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-89cc241e]::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.custom-scrollbar[data-v-89cc241e]::-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}
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, i as g, a as c, b as h, P as l } from "./import-file-XFI3CaVb.js";
2
- import { createElementBlock as b, openBlock as x } from "vue";
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: i, percent: a } = t;
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(i)} (${a}%)
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 i = Array.from(
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
- ), n = parseInt(
61
- this.sourceData.reduce((s, o) => s + parseFloat(o == null ? void 0 : o.metric), 0),
60
+ ), o = parseInt(
61
+ this.sourceData.reduce((s, i) => s + parseFloat(i == null ? void 0 : i.metric), 0),
62
62
  10
63
- ), d = i.map((s, o) => {
64
- const f = (a[o] / n * 100).toFixed(2);
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[o]
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 = l.getLegendOpions({
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) => s == null ? void 0 : s.replace("null", "Не визначено"),
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 = l.getLabelOptions(
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
- ...h(this.styleData),
92
+ ...l(this.styleData),
90
93
  data: d
91
94
  }
92
95
  ] };
93
- } catch (i) {
94
- return console.error(i), null;
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, n) => a + parseFloat(n == null ? void 0 : n.metric), 0),
105
+ this.sourceData.reduce((a, o) => a + parseFloat(o == null ? void 0 : o.metric), 0),
103
106
  10
104
- ), i = {
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
- ...h({ ...this.styleData }),
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(i), this.$emit("update:currentWidget", this.chartInstance), this.chartInstance.resize(), window.addEventListener("resize", () => {
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, i, a, n) {
139
- return x(), b("div", {
140
- id: n.uniqueID,
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, i as h, b as o, d as l, a as d } from "./import-file-XFI3CaVb.js";
2
- import { createElementBlock as p, openBlock as u } from "vue";
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
- ${l(s)}: ${d(a)} (${e}%)
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 = h(r), a = {
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 u(), p("div", {
107
+ return p(), u("div", {
108
108
  ref: "chart",
109
109
  id: e.uniqueID,
110
110
  class: "h-[90%] custom-scrollbar min-h-[200px]"