@kong-ui-public/dashboard-renderer 8.13.1 → 8.14.0
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/GeoMapRenderer-DHLAIZPL.js +69 -0
- package/dist/dashboard-renderer.es.js +1 -1
- package/dist/dashboard-renderer.umd.js +3 -13
- package/dist/{index-BxeqIguF.js → index-B4TY20j4.js} +2227 -2367
- package/dist/style.css +1 -1
- package/package.json +18 -18
- package/dist/GeoMapRenderer-DOeRa0IF.js +0 -74
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/dashboard-renderer",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/dashboard-renderer.umd.js",
|
|
6
6
|
"module": "./dist/dashboard-renderer.es.js",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"pinia": ">= 3.0.4 < 4",
|
|
30
30
|
"swrv": "^1.2.0",
|
|
31
31
|
"vue": "^3.5.35",
|
|
32
|
-
"@kong-ui-public/analytics-
|
|
33
|
-
"@kong-ui-public/analytics-geo-map": "^1.
|
|
34
|
-
"@kong-ui-public/analytics-
|
|
35
|
-
"@kong-ui-public/analytics-
|
|
36
|
-
"@kong-ui-public/
|
|
37
|
-
"@kong-ui-public/
|
|
38
|
-
"@kong-ui-public/
|
|
39
|
-
"@kong-ui-public/
|
|
40
|
-
"@kong-ui-public/table-data-grid": "^0.2.
|
|
32
|
+
"@kong-ui-public/analytics-chart": "^10.20.0",
|
|
33
|
+
"@kong-ui-public/analytics-geo-map": "^1.7.0",
|
|
34
|
+
"@kong-ui-public/analytics-config-store": "^1.4.0",
|
|
35
|
+
"@kong-ui-public/analytics-metric-provider": "^11.5.0",
|
|
36
|
+
"@kong-ui-public/i18n": "^2.5.0",
|
|
37
|
+
"@kong-ui-public/analytics-utilities": "^12.22.0",
|
|
38
|
+
"@kong-ui-public/entities-shared": "^3.56.0",
|
|
39
|
+
"@kong-ui-public/sandbox-layout": "^2.5.0",
|
|
40
|
+
"@kong-ui-public/table-data-grid": "^0.2.3"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"@kong/kongponents": "^9.59.0",
|
|
62
62
|
"swrv": "^1.2.0",
|
|
63
63
|
"vue": ">= 3.3.13 < 4",
|
|
64
|
-
"@kong-ui-public/analytics-
|
|
65
|
-
"@kong-ui-public/analytics-
|
|
66
|
-
"@kong-ui-public/analytics-
|
|
67
|
-
"@kong-ui-public/analytics-
|
|
68
|
-
"@kong-ui-public/
|
|
69
|
-
"@kong-ui-public/
|
|
70
|
-
"@kong-ui-public/
|
|
64
|
+
"@kong-ui-public/analytics-geo-map": "^1.7.0",
|
|
65
|
+
"@kong-ui-public/analytics-metric-provider": "^11.5.0",
|
|
66
|
+
"@kong-ui-public/analytics-utilities": "^12.22.0",
|
|
67
|
+
"@kong-ui-public/analytics-chart": "^10.20.0",
|
|
68
|
+
"@kong-ui-public/table-data-grid": "^0.2.3",
|
|
69
|
+
"@kong-ui-public/analytics-config-store": "^1.4.0",
|
|
70
|
+
"@kong-ui-public/i18n": "^2.5.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@zumer/snapdom": "^2.6.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"gridstack": "^11.5.1",
|
|
76
76
|
"jspdf": "^4.2.1",
|
|
77
77
|
"p-queue": "^8.1.1",
|
|
78
|
-
"@kong-ui-public/core": "^1.
|
|
78
|
+
"@kong-ui-public/core": "^1.12.0"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"dev": "cross-env USE_SANDBOX=true vite",
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, ref as C, computed as c, openBlock as x, createBlock as g, withCtx as _, createVNode as E, unref as M } from "vue";
|
|
2
|
-
import { _ as O } from "./index-BxeqIguF.js";
|
|
3
|
-
import { exploreResultToCountryMetrics as b, AnalyticsGeoMap as k } from "@kong-ui-public/analytics-geo-map";
|
|
4
|
-
import { COUNTRIES as B } from "@kong-ui-public/analytics-utilities";
|
|
5
|
-
const R = /* @__PURE__ */ q({
|
|
6
|
-
__name: "GeoMapRenderer",
|
|
7
|
-
props: {
|
|
8
|
-
query: {},
|
|
9
|
-
context: {},
|
|
10
|
-
queryReady: { type: Boolean },
|
|
11
|
-
chartOptions: {},
|
|
12
|
-
height: {},
|
|
13
|
-
refreshCounter: {},
|
|
14
|
-
requestsLink: {},
|
|
15
|
-
exploreLink: {}
|
|
16
|
-
},
|
|
17
|
-
emits: ["bounds-change"],
|
|
18
|
-
setup(r, { emit: m }) {
|
|
19
|
-
const n = r, e = C(void 0), l = c(() => e.value ? b(e.value) : {}), y = c(() => {
|
|
20
|
-
var t;
|
|
21
|
-
return e.value ? ((t = e.value) == null ? void 0 : t.meta.metric_names) && e.value.meta.metric_names[0] : "";
|
|
22
|
-
}), a = c(() => n.query.limit !== void 0 && n.query.limit > 0 ? n.query.limit : B.length), f = c(() => {
|
|
23
|
-
var i;
|
|
24
|
-
if (!((i = n.query.filters) == null ? void 0 : i.find(({ field: o, operator: u }) => o === "country_code" && (u === "not_empty" || u === "empty" || u === "in")))) {
|
|
25
|
-
const o = {
|
|
26
|
-
field: "country_code",
|
|
27
|
-
operator: "not_empty"
|
|
28
|
-
};
|
|
29
|
-
return {
|
|
30
|
-
...n.query,
|
|
31
|
-
filters: [
|
|
32
|
-
...n.query.filters || [],
|
|
33
|
-
o
|
|
34
|
-
]
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
return n.query;
|
|
38
|
-
}), d = c(() => {
|
|
39
|
-
var o, u, s;
|
|
40
|
-
if (!e.value)
|
|
41
|
-
return "";
|
|
42
|
-
const t = (o = e == null ? void 0 : e.value) == null ? void 0 : o.meta.metric_units, i = (s = (u = e == null ? void 0 : e.value) == null ? void 0 : u.meta) == null ? void 0 : s.metric_names;
|
|
43
|
-
return t && i && t[i[0]];
|
|
44
|
-
}), v = (t) => {
|
|
45
|
-
e.value = t;
|
|
46
|
-
}, h = m, p = (t) => {
|
|
47
|
-
h("bounds-change", t);
|
|
48
|
-
};
|
|
49
|
-
return (t, i) => (x(), g(O, {
|
|
50
|
-
context: r.context,
|
|
51
|
-
"limit-override": a.value,
|
|
52
|
-
query: f.value,
|
|
53
|
-
"query-ready": r.queryReady,
|
|
54
|
-
"refresh-counter": r.refreshCounter,
|
|
55
|
-
onChartData: v
|
|
56
|
-
}, {
|
|
57
|
-
default: _(() => [
|
|
58
|
-
E(M(k), {
|
|
59
|
-
bounds: r.chartOptions.bounds,
|
|
60
|
-
"country-metrics": l.value,
|
|
61
|
-
"fit-to-country": r.chartOptions.fit_to_country,
|
|
62
|
-
metric: y.value,
|
|
63
|
-
"metric-unit": d.value,
|
|
64
|
-
"with-legend": r.chartOptions.legend || !1,
|
|
65
|
-
onBoundsChange: p
|
|
66
|
-
}, null, 8, ["bounds", "country-metrics", "fit-to-country", "metric", "metric-unit", "with-legend"])
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["context", "limit-override", "query", "query-ready", "refresh-counter"]));
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
R as default
|
|
74
|
-
};
|