@kong-ui-public/dashboard-renderer 8.26.0 → 8.26.2
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-DMyZhOsV.js → GeoMapRenderer-BId1nADv.js} +1 -1
- package/dist/dashboard-renderer.es.js +1 -1
- package/dist/dashboard-renderer.umd.js +1 -1
- package/dist/{index-BE62HUke.js → index-DDeLeM1I.js} +13 -9
- package/dist/style.css +1 -1
- package/dist/types/components/DashboardRenderer.vue.d.ts +4 -0
- package/dist/types/components/DashboardRenderer.vue.d.ts.map +1 -1
- package/dist/types/components/DashboardTile.vue.d.ts +6 -0
- package/dist/types/components/DashboardTile.vue.d.ts.map +1 -1
- package/dist/types/components/SimpleChartRenderer.vue.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -3759,21 +3759,25 @@ const Ot = /* @__PURE__ */ _e({
|
|
|
3759
3759
|
exploreLink: {}
|
|
3760
3760
|
},
|
|
3761
3761
|
setup(s) {
|
|
3762
|
-
const e = s, t = x(() => e.chartOptions.type === "single_value")
|
|
3763
|
-
|
|
3762
|
+
const e = s, t = x(() => e.chartOptions.type === "single_value"), i = x(() => e.chartOptions.type === "single_value" ? {
|
|
3763
|
+
...e.chartOptions,
|
|
3764
|
+
alignX: e.chartOptions.align_x ?? "left",
|
|
3765
|
+
showTrend: e.query.granularity === "trend"
|
|
3766
|
+
} : e.chartOptions);
|
|
3767
|
+
return (n, r) => (O(), W(Ot, {
|
|
3764
3768
|
context: s.context,
|
|
3765
3769
|
query: s.query,
|
|
3766
3770
|
"query-ready": s.queryReady,
|
|
3767
3771
|
"refresh-counter": s.refreshCounter
|
|
3768
3772
|
}, {
|
|
3769
|
-
default: $(({ data:
|
|
3773
|
+
default: $(({ data: o }) => [
|
|
3770
3774
|
he("div", {
|
|
3771
3775
|
class: it(["analytics-chart", { "single-value": t.value }]),
|
|
3772
3776
|
style: bt(t.value ? void 0 : { height: `${s.height}px` })
|
|
3773
3777
|
}, [
|
|
3774
3778
|
me(S($s), {
|
|
3775
|
-
"chart-data":
|
|
3776
|
-
"chart-options":
|
|
3779
|
+
"chart-data": o,
|
|
3780
|
+
"chart-options": i.value,
|
|
3777
3781
|
"synthetics-data-key": t.value ? void 0 : s.chartOptions.synthetics_data_key
|
|
3778
3782
|
}, null, 8, ["chart-data", "chart-options", "synthetics-data-key"])
|
|
3779
3783
|
], 6)
|
|
@@ -3786,7 +3790,7 @@ const Ot = /* @__PURE__ */ _e({
|
|
|
3786
3790
|
for (const [i, n] of e)
|
|
3787
3791
|
t[i] = n;
|
|
3788
3792
|
return t;
|
|
3789
|
-
}, $i = /* @__PURE__ */ Fe(Mo, [["__scopeId", "data-v-
|
|
3793
|
+
}, $i = /* @__PURE__ */ Fe(Mo, [["__scopeId", "data-v-22077b88"]]), No = { class: "analytics-chart" }, Lo = /* @__PURE__ */ _e({
|
|
3790
3794
|
__name: "BaseAnalyticsChartRenderer",
|
|
3791
3795
|
props: {
|
|
3792
3796
|
query: {},
|
|
@@ -4362,11 +4366,11 @@ const Ot = /* @__PURE__ */ _e({
|
|
|
4362
4366
|
emits: /* @__PURE__ */ wt(["chart-data", "tile-loaded", "edit-tile", "duplicate-tile", "remove-tile", "tile-time-range-zoom", "tile-bounds-change"], ["update:refreshCounter"]),
|
|
4363
4367
|
setup(s, { expose: e, emit: t }) {
|
|
4364
4368
|
Kt((z) => ({
|
|
4365
|
-
|
|
4369
|
+
c23c7094: `${z.height}px`
|
|
4366
4370
|
}));
|
|
4367
4371
|
const i = parseInt(ms, 10), n = Ji(s, "refreshCounter"), r = () => {
|
|
4368
4372
|
R.value = !0, n.value++;
|
|
4369
|
-
}, o = t, a = Zi(() => import("./GeoMapRenderer-
|
|
4373
|
+
}, o = t, a = Zi(() => import("./GeoMapRenderer-BId1nADv.js")), c = Pe(He), l = ft(), { datasourceConfigMap: u, stripUnknownFilters: d } = ut(l), { i18n: h } = Re.useI18n(), y = Z(), _ = Z({ status: "loading" }), k = Z(!1), v = Z(), M = Z(!1), R = Z(!0), E = x(() => s.definition.chart), G = x(() => "chart_title" in E.value ? E.value.chart_title : void 0), D = x(() => s.definition.header_description), X = x(() => E.value.type === "slottable"), U = x(() => ze(s.definition) ? !1 : !("allow_csv_export" in E.value) || E.value.allow_csv_export !== !1), {
|
|
4370
4374
|
exploreLinkKebabMenu: m,
|
|
4371
4375
|
requestsLinkKebabMenu: f,
|
|
4372
4376
|
canShowKebabMenu: g,
|
|
@@ -4733,7 +4737,7 @@ const Ot = /* @__PURE__ */ _e({
|
|
|
4733
4737
|
], 10, Vo);
|
|
4734
4738
|
};
|
|
4735
4739
|
}
|
|
4736
|
-
}), xs = /* @__PURE__ */ Fe(ua, [["__scopeId", "data-v-
|
|
4740
|
+
}), xs = /* @__PURE__ */ Fe(ua, [["__scopeId", "data-v-a9d3e6b7"]]), ca = (s, e) => {
|
|
4737
4741
|
let t = 0;
|
|
4738
4742
|
const i = /* @__PURE__ */ new Map();
|
|
4739
4743
|
e.forEach((r) => {
|