@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.
@@ -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
- return (i, n) => (O(), W(Ot, {
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: r }) => [
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": r,
3776
- "chart-options": s.chartOptions,
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-2cbfac70"]]), No = { class: "analytics-chart" }, Lo = /* @__PURE__ */ _e({
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
- v6a8511e8: `${z.height}px`
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-DMyZhOsV.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), {
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-b3577c80"]]), ca = (s, e) => {
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) => {