@kong-ui-public/dashboard-renderer 5.7.1 → 5.7.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.
@@ -5,7 +5,7 @@ var Ze = (u) => {
5
5
  var It = (u, e, t) => e in u ? Mt(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
6
6
  var Je = (u, e, t) => It(u, typeof e != "symbol" ? e + "" : e, t), qe = (u, e, t) => e.has(u) || Ze("Cannot " + t);
7
7
  var v = (u, e, t) => (qe(u, e, "read from private field"), t ? t.call(u) : e.get(u)), M = (u, e, t) => e.has(u) ? Ze("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(u) : e.set(u, t), A = (u, e, t, i) => (qe(u, e, "write to private field"), i ? i.call(u, t) : e.set(u, t), t), P = (u, e, t) => (qe(u, e, "access private method"), t);
8
- var ve = (u, e, t, i) => ({
8
+ var ye = (u, e, t, i) => ({
9
9
  set _(s) {
10
10
  A(u, e, s, t);
11
11
  },
@@ -13,7 +13,7 @@ var ve = (u, e, t, i) => ({
13
13
  return v(u, e, i);
14
14
  }
15
15
  });
16
- import { ref as U, watchEffect as gt, inject as ye, provide as Pt, defineComponent as W, onUnmounted as Ue, computed as O, watch as Fe, resolveComponent as ne, unref as z, openBlock as C, createBlock as H, withCtx as q, createTextVNode as he, toDisplayString as Q, renderSlot as Le, createCommentVNode as V, useCssVars as Ge, createElementVNode as de, normalizeClass as We, createVNode as se, mergeProps as mt, createSlots as pt, createElementBlock as F, normalizeProps as qt, guardReactiveProps as Bt, defineAsyncComponent as $t, onMounted as Ve, nextTick as yt, resolveDynamicComponent as vt, Fragment as _t, renderList as wt, normalizeStyle as et, mergeModels as tt, useModel as Ut } from "vue";
16
+ import { ref as U, watchEffect as gt, inject as pe, provide as Pt, defineComponent as W, onUnmounted as Ue, computed as O, watch as Fe, resolveComponent as ne, unref as z, openBlock as C, createBlock as H, withCtx as q, createTextVNode as ve, toDisplayString as Q, renderSlot as Le, createCommentVNode as V, useCssVars as Ge, createElementVNode as ae, normalizeClass as We, createVNode as se, mergeProps as mt, createSlots as pt, createElementBlock as F, normalizeProps as qt, guardReactiveProps as Bt, defineAsyncComponent as $t, onMounted as Ve, nextTick as yt, resolveDynamicComponent as vt, Fragment as _t, renderList as wt, normalizeStyle as et, mergeModels as tt, useModel as Ut } from "vue";
17
17
  import { stripUnknownFilters as Ft, Timeframe as Gt, TimePeriods as bt, TIMEFRAME_LOOKUP as Wt, formatTime as it, msToGranularity as Vt } from "@kong-ui-public/analytics-utilities";
18
18
  import { SimpleChart as Kt, AnalyticsChart as Yt, TopNTable as Xt, CsvExportModal as jt } from "@kong-ui-public/analytics-chart";
19
19
  import Qt from "swrv";
@@ -74,7 +74,8 @@ const oi = {
74
74
  },
75
75
  edit: "Edit",
76
76
  duplicateTile: "Duplicate",
77
- remove: "Remove"
77
+ remove: "Remove",
78
+ delete: "Delete"
78
79
  }, ai = {
79
80
  timeRangeExceeded: "The time range for this report is outside of your organization's data retention period"
80
81
  }, li = {
@@ -94,9 +95,9 @@ function ui() {
94
95
  // Translation component <i18n-t>
95
96
  };
96
97
  }
97
- const Me = 170, Ct = 6, ae = "analytics-query-provider", st = "{entity-id}", ci = "{cp-id}", fi = "{timeframe}", gi = 30 * 1e3;
98
+ const Me = 170, Ct = 6, le = "analytics-query-provider", st = "{entity-id}", ci = "{cp-id}", fi = "{timeframe}", gi = 30 * 1e3;
98
99
  function mi() {
99
- const u = ye(ae);
100
+ const u = pe(le);
100
101
  return {
101
102
  evaluateFeatureFlag: (t, i) => u ? u.evaluateFeatureFlagFn(t, i) : i
102
103
  };
@@ -321,26 +322,26 @@ class Ei {
321
322
  }
322
323
  }
323
324
  K = new WeakMap();
324
- var ue, ce, re, be, fe, Ee, Y, ge, $, xe, X, me, ie, Ce, Oe, T, Dt, zt, St, kt, Nt, Te, Be, $e, De, At, ze;
325
+ var de, ue, re, be, ce, Ee, Y, fe, $, xe, X, ge, ie, Ce, Oe, T, Dt, zt, St, kt, Nt, Te, Be, $e, De, At, ze;
325
326
  class xi extends vi {
326
327
  // TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
327
328
  constructor(t) {
328
329
  var i, s;
329
330
  super();
330
331
  M(this, T);
332
+ M(this, de);
331
333
  M(this, ue);
332
- M(this, ce);
333
334
  M(this, re, 0);
334
335
  M(this, be);
335
- M(this, fe);
336
+ M(this, ce);
336
337
  M(this, Ee, 0);
337
338
  M(this, Y);
338
- M(this, ge);
339
+ M(this, fe);
339
340
  M(this, $);
340
341
  M(this, xe);
341
342
  M(this, X, 0);
342
343
  // The `!` is needed because of https://github.com/microsoft/TypeScript/issues/32194
343
- M(this, me);
344
+ M(this, ge);
344
345
  M(this, ie);
345
346
  M(this, Ce);
346
347
  // Use to assign a unique identifier to a promise function, if not explicitly specified
@@ -363,15 +364,15 @@ class xi extends vi {
363
364
  throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${((i = t.intervalCap) == null ? void 0 : i.toString()) ?? ""}\` (${typeof t.intervalCap})`);
364
365
  if (t.interval === void 0 || !(Number.isFinite(t.interval) && t.interval >= 0))
365
366
  throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${((s = t.interval) == null ? void 0 : s.toString()) ?? ""}\` (${typeof t.interval})`);
366
- A(this, ue, t.carryoverConcurrencyCount), A(this, ce, t.intervalCap === Number.POSITIVE_INFINITY || t.interval === 0), A(this, be, t.intervalCap), A(this, fe, t.interval), A(this, $, new t.queueClass()), A(this, xe, t.queueClass), this.concurrency = t.concurrency, this.timeout = t.timeout, A(this, Ce, t.throwOnTimeout === !0), A(this, ie, t.autoStart === !1);
367
+ A(this, de, t.carryoverConcurrencyCount), A(this, ue, t.intervalCap === Number.POSITIVE_INFINITY || t.interval === 0), A(this, be, t.intervalCap), A(this, ce, t.interval), A(this, $, new t.queueClass()), A(this, xe, t.queueClass), this.concurrency = t.concurrency, this.timeout = t.timeout, A(this, Ce, t.throwOnTimeout === !0), A(this, ie, t.autoStart === !1);
367
368
  }
368
369
  get concurrency() {
369
- return v(this, me);
370
+ return v(this, ge);
370
371
  }
371
372
  set concurrency(t) {
372
373
  if (!(typeof t == "number" && t >= 1))
373
374
  throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);
374
- A(this, me, t), P(this, T, De).call(this);
375
+ A(this, ge, t), P(this, T, De).call(this);
375
376
  }
376
377
  /**
377
378
  Updates the priority of a promise function by its id, affecting its execution order. Requires a defined concurrency limit to take effect.
@@ -413,14 +414,14 @@ class xi extends vi {
413
414
  v(this, $).setPriority(t, i);
414
415
  }
415
416
  async add(t, i = {}) {
416
- return i.id ?? (i.id = (ve(this, Oe)._++).toString()), i = {
417
+ return i.id ?? (i.id = (ye(this, Oe)._++).toString()), i = {
417
418
  timeout: this.timeout,
418
419
  throwOnTimeout: v(this, Ce),
419
420
  ...i
420
421
  }, new Promise((s, r) => {
421
422
  v(this, $).enqueue(async () => {
422
423
  var o;
423
- ve(this, X)._++, ve(this, re)._++;
424
+ ye(this, X)._++, ye(this, re)._++;
424
425
  try {
425
426
  (o = i.signal) == null || o.throwIfAborted();
426
427
  let n = t({ signal: i.signal });
@@ -513,22 +514,22 @@ class xi extends vi {
513
514
  return v(this, ie);
514
515
  }
515
516
  }
516
- ue = new WeakMap(), ce = new WeakMap(), re = new WeakMap(), be = new WeakMap(), fe = new WeakMap(), Ee = new WeakMap(), Y = new WeakMap(), ge = new WeakMap(), $ = new WeakMap(), xe = new WeakMap(), X = new WeakMap(), me = new WeakMap(), ie = new WeakMap(), Ce = new WeakMap(), Oe = new WeakMap(), T = new WeakSet(), Dt = function() {
517
- return v(this, ce) || v(this, re) < v(this, be);
517
+ de = new WeakMap(), ue = new WeakMap(), re = new WeakMap(), be = new WeakMap(), ce = new WeakMap(), Ee = new WeakMap(), Y = new WeakMap(), fe = new WeakMap(), $ = new WeakMap(), xe = new WeakMap(), X = new WeakMap(), ge = new WeakMap(), ie = new WeakMap(), Ce = new WeakMap(), Oe = new WeakMap(), T = new WeakSet(), Dt = function() {
518
+ return v(this, ue) || v(this, re) < v(this, be);
518
519
  }, zt = function() {
519
- return v(this, X) < v(this, me);
520
+ return v(this, X) < v(this, ge);
520
521
  }, St = function() {
521
- ve(this, X)._--, P(this, T, Te).call(this), this.emit("next");
522
+ ye(this, X)._--, P(this, T, Te).call(this), this.emit("next");
522
523
  }, kt = function() {
523
- P(this, T, $e).call(this), P(this, T, Be).call(this), A(this, ge, void 0);
524
+ P(this, T, $e).call(this), P(this, T, Be).call(this), A(this, fe, void 0);
524
525
  }, Nt = function() {
525
526
  const t = Date.now();
526
527
  if (v(this, Y) === void 0) {
527
528
  const i = v(this, Ee) - t;
528
529
  if (i < 0)
529
- A(this, re, v(this, ue) ? v(this, X) : 0);
530
+ A(this, re, v(this, de) ? v(this, X) : 0);
530
531
  else
531
- return v(this, ge) === void 0 && A(this, ge, setTimeout(() => {
532
+ return v(this, fe) === void 0 && A(this, fe, setTimeout(() => {
532
533
  P(this, T, kt).call(this);
533
534
  }, i)), !0;
534
535
  }
@@ -545,11 +546,11 @@ ue = new WeakMap(), ce = new WeakMap(), re = new WeakMap(), be = new WeakMap(),
545
546
  }
546
547
  return !1;
547
548
  }, Be = function() {
548
- v(this, ce) || v(this, Y) !== void 0 || (A(this, Y, setInterval(() => {
549
+ v(this, ue) || v(this, Y) !== void 0 || (A(this, Y, setInterval(() => {
549
550
  P(this, T, $e).call(this);
550
- }, v(this, fe))), A(this, Ee, Date.now() + v(this, fe)));
551
+ }, v(this, ce))), A(this, Ee, Date.now() + v(this, ce)));
551
552
  }, $e = function() {
552
- v(this, re) === 0 && v(this, X) === 0 && v(this, Y) && (clearInterval(v(this, Y)), A(this, Y, void 0)), A(this, re, v(this, ue) ? v(this, X) : 0), P(this, T, De).call(this);
553
+ v(this, re) === 0 && v(this, X) === 0 && v(this, Y) && (clearInterval(v(this, Y)), A(this, Y, void 0)), A(this, re, v(this, de) ? v(this, X) : 0), P(this, T, De).call(this);
553
554
  }, /**
554
555
  Executes all queued functions until it reaches the limit.
555
556
  */
@@ -571,7 +572,7 @@ De = function() {
571
572
  });
572
573
  };
573
574
  const Ci = () => {
574
- const u = Et(), e = ye(ae);
575
+ const u = Et(), e = pe(le);
575
576
  if (!e)
576
577
  return;
577
578
  if (e.queryFnOverride) {
@@ -588,8 +589,8 @@ const Ci = () => {
588
589
  queryFnOverride: !0,
589
590
  queryFn: (s, r) => t.add(() => e.queryFn(s, r), { throwOnTimeout: !0 })
590
591
  };
591
- Pt(ae, i);
592
- }, pe = {
592
+ Pt(le, i);
593
+ }, me = {
593
594
  useI18n: ui,
594
595
  useEvaluateFeatureFlag: mi,
595
596
  useRequestQueue: Ci
@@ -603,7 +604,7 @@ const Ci = () => {
603
604
  },
604
605
  emits: ["chart-data", "queryComplete"],
605
606
  setup(u, { emit: e }) {
606
- const t = u, i = e, { i18n: s } = pe.useI18n(), r = ye(ae), o = () => t.queryReady && r ? JSON.stringify([t.query, t.context, t.refreshCounter]) : null, n = new AbortController();
607
+ const t = u, i = e, { i18n: s } = me.useI18n(), r = pe(le), o = () => t.queryReady && r ? JSON.stringify([t.query, t.context, t.refreshCounter]) : null, n = new AbortController();
607
608
  Ue(() => {
608
609
  n.abort();
609
610
  });
@@ -660,7 +661,7 @@ const Ci = () => {
660
661
  "icon-variant": "error"
661
662
  }, {
662
663
  default: q(() => [
663
- he(Q(p.value), 1)
664
+ ve(Q(p.value), 1)
664
665
  ]),
665
666
  _: 1
666
667
  })) : z(h) ? Le(R.$slots, "default", {
@@ -691,7 +692,7 @@ const Ci = () => {
691
692
  "refresh-counter": i.refreshCounter
692
693
  }, {
693
694
  default: q(({ data: r }) => [
694
- de("div", {
695
+ ae("div", {
695
696
  class: We(["analytics-chart", { "single-value": t.value }])
696
697
  }, [
697
698
  se(z(Kt), {
@@ -704,12 +705,12 @@ const Ci = () => {
704
705
  _: 1
705
706
  }, 8, ["context", "query", "query-ready", "refresh-counter"]));
706
707
  }
707
- }), le = (u, e) => {
708
+ }), he = (u, e) => {
708
709
  const t = u.__vccOpts || u;
709
710
  for (const [i, s] of e)
710
711
  t[i] = s;
711
712
  return t;
712
- }, ot = /* @__PURE__ */ le(Ri, [["__scopeId", "data-v-65cc8607"]]), Ti = { class: "analytics-chart" }, Di = /* @__PURE__ */ W({
713
+ }, ot = /* @__PURE__ */ he(Ri, [["__scopeId", "data-v-65cc8607"]]), Ti = { class: "analytics-chart" }, Di = /* @__PURE__ */ W({
713
714
  __name: "BaseAnalyticsChartRenderer",
714
715
  props: {
715
716
  query: {},
@@ -722,7 +723,7 @@ const Ci = () => {
722
723
  },
723
724
  emits: ["edit-tile", "chart-data", "zoom-time-range"],
724
725
  setup(u, { emit: e }) {
725
- const t = u, i = e, { i18n: s } = pe.useI18n(), { evaluateFeatureFlag: r } = pe.useEvaluateFeatureFlag(), o = r("explore-v4-fine-granularity", !1), n = O(() => ({
726
+ const t = u, i = e, { i18n: s } = me.useI18n(), { evaluateFeatureFlag: r } = me.useEvaluateFeatureFlag(), o = r("explore-v4-fine-granularity", !1), n = O(() => ({
726
727
  type: t.chartOptions.type,
727
728
  stacked: t.chartOptions.stacked ?? !1,
728
729
  chartDatasetColors: t.chartOptions.chartDatasetColors,
@@ -742,7 +743,7 @@ const Ci = () => {
742
743
  onChartData: h
743
744
  }, {
744
745
  default: q(({ data: m }) => [
745
- de("div", Ti, [
746
+ ae("div", Ti, [
746
747
  se(z(Yt), mt({
747
748
  "allow-csv-export": a.chartOptions.allowCsvExport,
748
749
  "chart-data": m,
@@ -760,7 +761,7 @@ const Ci = () => {
760
761
  fn: q(() => [
761
762
  se(f, { onClick: d }, {
762
763
  default: q(() => [
763
- he(Q(z(s).t("renderer.edit")), 1)
764
+ ve(Q(z(s).t("renderer.edit")), 1)
764
765
  ]),
765
766
  _: 1
766
767
  })
@@ -774,7 +775,7 @@ const Ci = () => {
774
775
  }, 8, ["context", "query", "query-ready", "refresh-counter"]);
775
776
  };
776
777
  }
777
- }), Ye = /* @__PURE__ */ le(Di, [["__scopeId", "data-v-a9ee3db9"]]), at = /* @__PURE__ */ W({
778
+ }), Ye = /* @__PURE__ */ he(Di, [["__scopeId", "data-v-a9ee3db9"]]), at = /* @__PURE__ */ W({
778
779
  __name: "BarChartRenderer",
779
780
  props: {
780
781
  query: {},
@@ -875,7 +876,7 @@ const Ci = () => {
875
876
  }, 16)
876
877
  ]));
877
878
  }
878
- }), ki = /* @__PURE__ */ le(Si, [["__scopeId", "data-v-20c4f411"]]), ht = "#6c7489", dt = "20px", Ht = "20px", Ni = {
879
+ }), ki = /* @__PURE__ */ he(Si, [["__scopeId", "data-v-20c4f411"]]), ht = "#6c7489", dt = "20px", Ht = "20px", Ni = {
879
880
  class: "fallback-entity-link",
880
881
  "data-testid": "entity-link-parent"
881
882
  }, ut = /* @__PURE__ */ W({
@@ -897,7 +898,7 @@ const Ci = () => {
897
898
  refreshCounter: {}
898
899
  },
899
900
  setup(u) {
900
- const e = u, t = ye(ae), i = $t(async () => {
901
+ const e = u, t = pe(le), i = $t(async () => {
901
902
  if (t != null && t.fetchComponent)
902
903
  try {
903
904
  return await t.fetchComponent("EntityLink");
@@ -968,7 +969,7 @@ const Ci = () => {
968
969
  }), Oi = ["data-testid"], Li = {
969
970
  key: 0,
970
971
  class: "tile-header"
971
- }, Mi = ["data-testid"], Ii = ["data-testid"], Pi = ["data-testid"], qi = ["data-testid"], Bi = /* @__PURE__ */ W({
972
+ }, Mi = ["data-testid"], Ii = ["data-testid"], Pi = { class: "delete-option" }, qi = ["data-testid"], Bi = ["data-testid"], $i = /* @__PURE__ */ W({
972
973
  __name: "DashboardTile",
973
974
  props: {
974
975
  definition: {},
@@ -981,9 +982,9 @@ const Ci = () => {
981
982
  emits: ["edit-tile", "duplicate-tile", "remove-tile", "zoom-time-range"],
982
983
  setup(u, { emit: e }) {
983
984
  Ge((_) => ({
984
- "185a85ac": `${_.height}px`
985
+ "3da384ac": `${_.height}px`
985
986
  }));
986
- const t = parseInt(Ht, 10), i = u, s = e, r = ye(ae), { i18n: o } = pe.useI18n(), n = U(), d = U(!1), h = U(), a = U(!1), l = U("");
987
+ const t = parseInt(Ht, 10), i = u, s = e, r = pe(le), { i18n: o } = me.useI18n(), n = U(), d = U(!1), h = U(), a = U(!1), l = U("");
987
988
  Ve(async () => {
988
989
  var _;
989
990
  l.value = await ((_ = r == null ? void 0 : r.exploreBaseUrl) == null ? void 0 : _.call(r)) ?? "";
@@ -1063,7 +1064,7 @@ const Ci = () => {
1063
1064
  text: _.definition.chart.chartTitle
1064
1065
  }, {
1065
1066
  default: q(() => [
1066
- de("div", {
1067
+ ae("div", {
1067
1068
  ref_key: "titleRef",
1068
1069
  ref: h,
1069
1070
  class: "title"
@@ -1078,7 +1079,7 @@ const Ci = () => {
1078
1079
  }, [
1079
1080
  E.value ? (C(), H(Pe, { key: 0 }, {
1080
1081
  default: q(() => [
1081
- he(Q(E.value), 1)
1082
+ ve(Q(E.value), 1)
1082
1083
  ]),
1083
1084
  _: 1
1084
1085
  })) : V("", !0),
@@ -1109,7 +1110,7 @@ const Ci = () => {
1109
1110
  onClick: ee[0] || (ee[0] = (Qe) => oe())
1110
1111
  }, {
1111
1112
  default: q(() => [
1112
- de("span", {
1113
+ ae("span", {
1113
1114
  class: "chart-export-trigger",
1114
1115
  "data-testid": `csv-export-button-${_.tileId}`
1115
1116
  }, Q(z(o).t("csvExport.exportAsCsv")), 9, Ii)
@@ -1122,7 +1123,7 @@ const Ci = () => {
1122
1123
  onClick: x
1123
1124
  }, {
1124
1125
  default: q(() => [
1125
- he(Q(z(o).t("renderer.duplicateTile")), 1)
1126
+ ve(Q(z(o).t("renderer.duplicateTile")), 1)
1126
1127
  ]),
1127
1128
  _: 1
1128
1129
  }, 8, ["data-testid"])) : V("", !0),
@@ -1132,7 +1133,7 @@ const Ci = () => {
1132
1133
  onClick: N
1133
1134
  }, {
1134
1135
  default: q(() => [
1135
- he(Q(z(o).t("renderer.remove")), 1)
1136
+ ae("span", Pi, Q(z(o).t("renderer.delete")), 1)
1136
1137
  ]),
1137
1138
  _: 1
1138
1139
  }, 8, ["data-testid"])) : V("", !0)
@@ -1151,7 +1152,7 @@ const Ci = () => {
1151
1152
  key: 1,
1152
1153
  class: "header-description",
1153
1154
  "data-testid": `tile-description-${_.tileId}`
1154
- }, Q(_.definition.chart.description), 9, Pi)) : V("", !0),
1155
+ }, Q(_.definition.chart.description), 9, qi)) : V("", !0),
1155
1156
  d.value ? (C(), H(z(jt), {
1156
1157
  key: 2,
1157
1158
  "chart-data": n.value,
@@ -1160,7 +1161,7 @@ const Ci = () => {
1160
1161
  onToggleModal: I
1161
1162
  }, null, 8, ["chart-data", "data-testid", "filename"])) : V("", !0)
1162
1163
  ])) : V("", !0),
1163
- de("div", {
1164
+ ae("div", {
1164
1165
  class: "tile-content",
1165
1166
  "data-testid": `tile-content-${_.tileId}`
1166
1167
  }, [
@@ -1168,11 +1169,11 @@ const Ci = () => {
1168
1169
  onChartData: S,
1169
1170
  onZoomTimeRange: ee[1] || (ee[1] = (Qe) => s("zoom-time-range", Qe))
1170
1171
  }), null, 16)) : V("", !0)
1171
- ], 8, qi)
1172
+ ], 8, Bi)
1172
1173
  ], 10, Oi);
1173
1174
  };
1174
1175
  }
1175
- }), $i = /* @__PURE__ */ le(Bi, [["__scopeId", "data-v-86b6879a"]]), Ui = (u, e) => {
1176
+ }), Ui = /* @__PURE__ */ he($i, [["__scopeId", "data-v-4ddafde1"]]), Fi = (u, e) => {
1176
1177
  let t = 0;
1177
1178
  const i = /* @__PURE__ */ new Map();
1178
1179
  e.forEach((r) => {
@@ -1183,7 +1184,7 @@ const Ci = () => {
1183
1184
  for (let r = 0; r < t; r++)
1184
1185
  i.get(r) ? s.push("auto") : s.push(`${u}px`);
1185
1186
  return s;
1186
- }, Fi = /* @__PURE__ */ W({
1187
+ }, Gi = /* @__PURE__ */ W({
1187
1188
  __name: "GridLayout",
1188
1189
  props: {
1189
1190
  tileHeight: {
@@ -1211,7 +1212,7 @@ const Ci = () => {
1211
1212
  }), Ue(() => {
1212
1213
  t.value && s.unobserve(t.value);
1213
1214
  });
1214
- const r = O(() => Ui(e.tileHeight, e.tiles).join(" ")), o = O(() => e.tiles.map((n, d) => ({
1215
+ const r = O(() => Fi(e.tileHeight, e.tiles).join(" ")), o = O(() => e.tiles.map((n, d) => ({
1215
1216
  key: `tile-${d}`,
1216
1217
  tile: n,
1217
1218
  style: {
@@ -1240,8 +1241,8 @@ const Ci = () => {
1240
1241
  ], 6))), 128))
1241
1242
  ], 512));
1242
1243
  }
1243
- }), Gi = /* @__PURE__ */ le(Fi, [["__scopeId", "data-v-b27ebb1a"]]);
1244
- function Wi(u, e, t, i, s) {
1244
+ }), Wi = /* @__PURE__ */ he(Gi, [["__scopeId", "data-v-b27ebb1a"]]);
1245
+ function Vi(u, e, t, i, s) {
1245
1246
  const r = (...o) => (console.warn("gridstack.js: Function `" + t + "` is deprecated in " + s + " and has been replaced with `" + i + "`. It will be **removed** in a future release"), e.apply(u, o));
1246
1247
  return r.prototype = e.prototype, r;
1247
1248
  }
@@ -2418,7 +2419,7 @@ class _e extends Xe {
2418
2419
  }
2419
2420
  }
2420
2421
  _e._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
2421
- const Vi = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
2422
+ const Ki = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
2422
2423
  class we extends Xe {
2423
2424
  constructor(e, t = {}) {
2424
2425
  var r;
@@ -2456,7 +2457,7 @@ class we extends Xe {
2456
2457
  /** @internal call when mouse goes down before a dragstart happens */
2457
2458
  _mouseDown(e) {
2458
2459
  if (!b.mouseHandled)
2459
- return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Vi) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete b.dragElement, delete b.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), j && (e.currentTarget.addEventListener("touchmove", Ne), e.currentTarget.addEventListener("touchend", Ae)), e.preventDefault(), document.activeElement && document.activeElement.blur(), b.mouseHandled = !0), !0;
2460
+ return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Ki) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete b.dragElement, delete b.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), j && (e.currentTarget.addEventListener("touchmove", Ne), e.currentTarget.addEventListener("touchend", Ae)), e.preventDefault(), document.activeElement && document.activeElement.blur(), b.mouseHandled = !0), !0;
2460
2461
  }
2461
2462
  /** @internal method to call actual drag event */
2462
2463
  _callDrag(e) {
@@ -2569,7 +2570,7 @@ class we extends Xe {
2569
2570
  }
2570
2571
  }
2571
2572
  we.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
2572
- class Ki extends Xe {
2573
+ class Yi extends Xe {
2573
2574
  constructor(e, t = {}) {
2574
2575
  super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
2575
2576
  }
@@ -2661,13 +2662,13 @@ class je {
2661
2662
  return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
2662
2663
  }
2663
2664
  setupDroppable(e) {
2664
- return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Ki(this.el, e), this;
2665
+ return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Yi(this.el, e), this;
2665
2666
  }
2666
2667
  cleanDroppable() {
2667
2668
  return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
2668
2669
  }
2669
2670
  }
2670
- class Yi {
2671
+ class Xi {
2671
2672
  resizable(e, t, i, s) {
2672
2673
  return this._getDDElements(e).forEach((r) => {
2673
2674
  if (t === "disable" || t === "enable")
@@ -2759,7 +2760,7 @@ class Yi {
2759
2760
  * Copyright (c) 2021-2024 Alain Dumesny
2760
2761
  * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
2761
2762
  */
2762
- const B = new Yi();
2763
+ const B = new Xi();
2763
2764
  class w {
2764
2765
  /**
2765
2766
  * initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
@@ -3956,7 +3957,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3956
3957
  }
3957
3958
  // legacy method removed
3958
3959
  commit() {
3959
- return Wi(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
3960
+ return Vi(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
3960
3961
  }
3961
3962
  }
3962
3963
  w.renderCB = (u, e) => {
@@ -3966,7 +3967,7 @@ w.resizeToContentParent = ".grid-stack-item-content";
3966
3967
  w.Utils = c;
3967
3968
  w.Engine = Z;
3968
3969
  w.GDRev = "11.3.0";
3969
- const Xi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], ji = { class: "grid-stack-item-content" }, Qi = /* @__PURE__ */ W({
3970
+ const ji = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Qi = { class: "grid-stack-item-content" }, Zi = /* @__PURE__ */ W({
3970
3971
  __name: "DraggableGridLayout",
3971
3972
  props: {
3972
3973
  tiles: {},
@@ -4044,16 +4045,16 @@ const Xi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], ji = { cl
4044
4045
  "gs-x": y.layout.position.col,
4045
4046
  "gs-y": y.layout.position.row
4046
4047
  }, [
4047
- de("div", ji, [
4048
+ ae("div", Qi, [
4048
4049
  Le(m.$slots, "tile", { tile: y }, void 0, !0)
4049
4050
  ])
4050
- ], 8, Xi))), 128))
4051
+ ], 8, ji))), 128))
4051
4052
  ], 512));
4052
4053
  }
4053
- }), Zi = /* @__PURE__ */ le(Qi, [["__scopeId", "data-v-e4e1101d"]]), Ji = { class: "kong-ui-public-dashboard-renderer" }, es = {
4054
+ }), Ji = /* @__PURE__ */ he(Zi, [["__scopeId", "data-v-e4e1101d"]]), es = { class: "kong-ui-public-dashboard-renderer" }, ts = {
4054
4055
  key: 0,
4055
4056
  class: "tile-container slottable-tile"
4056
- }, ts = /* @__PURE__ */ W({
4057
+ }, is = /* @__PURE__ */ W({
4057
4058
  __name: "DashboardRenderer",
4058
4059
  props: /* @__PURE__ */ tt({
4059
4060
  context: {}
@@ -4063,8 +4064,8 @@ const Xi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], ji = { cl
4063
4064
  }),
4064
4065
  emits: /* @__PURE__ */ tt(["edit-tile", "zoom-time-range"], ["update:modelValue"]),
4065
4066
  setup(u, { expose: e, emit: t }) {
4066
- const i = u, s = t, r = Ut(u, "modelValue"), { i18n: o } = pe.useI18n(), n = U(0), d = U(null), h = ye(ae);
4067
- h || (console.warn("Analytics dashboards require a query bridge supplied via provide / inject."), console.warn("Please ensure your application has a query bridge provided under the key 'analytics-query-provider', as described in"), console.warn("https://github.com/Kong/public-ui-components/blob/main/packages/analytics/dashboard-renderer/README.md#requirements")), pe.useRequestQueue();
4067
+ const i = u, s = t, r = Ut(u, "modelValue"), { i18n: o } = me.useI18n(), n = U(0), d = U(null), h = pe(le);
4068
+ h || (console.warn("Analytics dashboards require a query bridge supplied via provide / inject."), console.warn("Please ensure your application has a query bridge provided under the key 'analytics-query-provider', as described in"), console.warn("https://github.com/Kong/public-ui-components/blob/main/packages/analytics/dashboard-renderer/README.md#requirements")), me.useRequestQueue();
4068
4069
  const a = Et(), l = O(() => i.context.timeSpec ? i.context.timeSpec : {
4069
4070
  type: "relative",
4070
4071
  time_range: a.defaultQueryTimeForOrg
@@ -4142,8 +4143,8 @@ const Xi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], ji = { cl
4142
4143
  };
4143
4144
  return e({ refresh: L }), (x, N) => {
4144
4145
  const S = ne("KAlert");
4145
- return C(), F("div", Ji, [
4146
- z(h) ? (C(), H(vt(x.context.editable ? Zi : Gi), {
4146
+ return C(), F("div", es, [
4147
+ z(h) ? (C(), H(vt(x.context.editable ? Ji : Wi), {
4147
4148
  key: 1,
4148
4149
  ref_key: "gridLayoutRef",
4149
4150
  ref: d,
@@ -4152,9 +4153,9 @@ const Xi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], ji = { cl
4152
4153
  onUpdateTiles: D
4153
4154
  }, {
4154
4155
  tile: q(({ tile: I }) => [
4155
- I.meta.chart.type === "slottable" ? (C(), F("div", es, [
4156
+ I.meta.chart.type === "slottable" ? (C(), F("div", ts, [
4156
4157
  Le(x.$slots, I.meta.chart.id, {}, void 0, !0)
4157
- ])) : (C(), H($i, {
4158
+ ])) : (C(), H(Ui, {
4158
4159
  key: 1,
4159
4160
  class: "tile-container",
4160
4161
  context: y.value,
@@ -4175,22 +4176,22 @@ const Xi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], ji = { cl
4175
4176
  appearance: "danger"
4176
4177
  }, {
4177
4178
  default: q(() => [
4178
- he(Q(z(o).t("renderer.noQueryBridge")), 1)
4179
+ ve(Q(z(o).t("renderer.noQueryBridge")), 1)
4179
4180
  ]),
4180
4181
  _: 1
4181
4182
  }))
4182
4183
  ]);
4183
4184
  };
4184
4185
  }
4185
- }), cs = /* @__PURE__ */ le(ts, [["__scopeId", "data-v-0bb82daa"]]);
4186
+ }), fs = /* @__PURE__ */ he(is, [["__scopeId", "data-v-0bb82daa"]]);
4186
4187
  export {
4187
4188
  ci as CP_ID_TOKEN,
4188
4189
  Ct as DASHBOARD_COLS,
4189
4190
  Me as DEFAULT_TILE_HEIGHT,
4190
4191
  gi as DEFAULT_TILE_REFRESH_INTERVAL_MS,
4191
- cs as DashboardRenderer,
4192
+ fs as DashboardRenderer,
4192
4193
  st as ENTITY_ID_TOKEN,
4193
- Gi as GridLayout,
4194
- ae as INJECT_QUERY_PROVIDER,
4194
+ Wi as GridLayout,
4195
+ le as INJECT_QUERY_PROVIDER,
4195
4196
  fi as TIMEFRAME_TOKEN
4196
4197
  };