@kong-ui-public/dashboard-renderer 8.12.18 → 8.12.19

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.
@@ -2,8 +2,8 @@ var Ii = Object.defineProperty;
2
2
  var Lt = (o) => {
3
3
  throw TypeError(o);
4
4
  };
5
- var Mi = (o, e, t) => e in o ? Ii(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
6
- var At = (o, e, t) => Mi(o, typeof e != "symbol" ? e + "" : e, t), ht = (o, e, t) => e.has(o) || Lt("Cannot " + t);
5
+ var qi = (o, e, t) => e in o ? Ii(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
6
+ var At = (o, e, t) => qi(o, typeof e != "symbol" ? e + "" : e, t), ht = (o, e, t) => e.has(o) || Lt("Cannot " + t);
7
7
  var _ = (o, e, t) => (ht(o, e, "read from private field"), t ? t.call(o) : e.get(o)), U = (o, e, t) => e.has(o) ? Lt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(o) : e.set(o, t), $ = (o, e, t, i) => (ht(o, e, "write to private field"), i ? i.call(o, t) : e.set(o, t), t), K = (o, e, t) => (ht(o, e, "access private method"), t);
8
8
  var Le = (o, e, t, i) => ({
9
9
  set _(s) {
@@ -13,8 +13,8 @@ var Le = (o, e, t, i) => ({
13
13
  return _(o, e, i);
14
14
  }
15
15
  });
16
- import { ref as H, watchEffect as Jt, inject as ge, provide as qi, toRaw as Pi, computed as w, isRef as $i, isReactive as Bi, toRef as Ae, hasInjectionContext as Ot, onMounted as st, watch as Oe, onUnmounted as Fe, getCurrentInstance as Fi, defineComponent as ee, resolveComponent as ue, unref as E, openBlock as C, createBlock as O, createSlots as rt, withCtx as q, createElementVNode as te, toDisplayString as J, renderSlot as He, createCommentVNode as X, normalizeStyle as Ye, normalizeClass as ze, createVNode as fe, mergeProps as ei, createTextVNode as gt, createElementBlock as B, normalizeProps as Gi, guardReactiveProps as Ui, defineAsyncComponent as ti, Fragment as mt, useCssVars as pt, useModel as ii, readonly as Ht, nextTick as yt, resolveDynamicComponent as si, toHandlers as Wi, mergeModels as je, renderList as ri, useTemplateRef as It } from "vue";
17
- import { msToGranularity as dt, TimePeriods as Ki, TIMEFRAME_LOOKUP as Qi, formatTime as Mt, EXPORT_RECORD_LIMIT as Vi } from "@kong-ui-public/analytics-utilities";
16
+ import { ref as H, watchEffect as Jt, inject as ge, provide as Mi, toRaw as Pi, computed as w, isRef as $i, isReactive as Bi, toRef as Ae, hasInjectionContext as Ot, onMounted as st, watch as Oe, onUnmounted as Fe, getCurrentInstance as Fi, defineComponent as ee, resolveComponent as ue, unref as E, openBlock as C, createBlock as O, createSlots as rt, withCtx as M, createElementVNode as te, toDisplayString as J, renderSlot as He, createCommentVNode as X, normalizeStyle as Ye, normalizeClass as ze, createVNode as fe, mergeProps as ei, createTextVNode as gt, createElementBlock as B, normalizeProps as Gi, guardReactiveProps as Ui, defineAsyncComponent as ti, Fragment as mt, useCssVars as pt, useModel as ii, readonly as Ht, nextTick as yt, resolveDynamicComponent as si, toHandlers as Wi, mergeModels as je, renderList as ri, useTemplateRef as It } from "vue";
17
+ import { msToGranularity as dt, TimePeriods as Ki, TIMEFRAME_LOOKUP as Qi, formatTime as qt, EXPORT_RECORD_LIMIT as Vi } from "@kong-ui-public/analytics-utilities";
18
18
  import { handleQueryError as Yi, SimpleChart as ji, AnalyticsChart as Xi, TopNTable as Zi, CsvExportModal as Ji } from "@kong-ui-public/analytics-chart";
19
19
  import es from "swrv";
20
20
  import "axios";
@@ -133,7 +133,7 @@ function xs() {
133
133
  // Translation component <i18n-t>
134
134
  };
135
135
  }
136
- const Ge = 170, _t = 6, ye = "analytics-query-provider", qt = "{entity-id}", Cs = "{cp-id}", Rs = "{timeframe}", ks = 30 * 1e3, Ts = 3e5, Ss = 36e5;
136
+ const Ge = 170, _t = 6, ye = "analytics-query-provider", Mt = "{entity-id}", Cs = "{cp-id}", Rs = "{timeframe}", ks = 30 * 1e3, Ts = 3e5, Ss = 36e5;
137
137
  function Ds() {
138
138
  const o = ge(ye);
139
139
  return {
@@ -203,8 +203,8 @@ var oi = { exports: {} };
203
203
  z[v - 1] = arguments[v];
204
204
  g.fn.apply(g.context, z);
205
205
  } else {
206
- var M = g.length, A;
207
- for (v = 0; v < M; v++)
206
+ var q = g.length, A;
207
+ for (v = 0; v < q; v++)
208
208
  switch (g[v].once && this.removeListener(l, g[v].fn, void 0, !0), k) {
209
209
  case 1:
210
210
  g[v].fn.call(g[v].context);
@@ -360,8 +360,8 @@ class Is {
360
360
  }
361
361
  }
362
362
  se = new WeakMap();
363
- var Re, ke, _e, qe, Te, Pe, re, Se, Z, $e, ne, De, pe, Be, it, L, li, ui, hi, di, ci, Ke, ct, ft, Qe, fi, Ve;
364
- class Ms extends Ls {
363
+ var Re, ke, _e, Me, Te, Pe, re, Se, Z, $e, ne, De, pe, Be, it, L, li, ui, hi, di, ci, Ke, ct, ft, Qe, fi, Ve;
364
+ class qs extends Ls {
365
365
  // TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
366
366
  constructor(t) {
367
367
  var i, s;
@@ -370,7 +370,7 @@ class Ms extends Ls {
370
370
  U(this, Re);
371
371
  U(this, ke);
372
372
  U(this, _e, 0);
373
- U(this, qe);
373
+ U(this, Me);
374
374
  U(this, Te);
375
375
  U(this, Pe, 0);
376
376
  U(this, re);
@@ -402,7 +402,7 @@ class Ms extends Ls {
402
402
  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})`);
403
403
  if (t.interval === void 0 || !(Number.isFinite(t.interval) && t.interval >= 0))
404
404
  throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${((s = t.interval) == null ? void 0 : s.toString()) ?? ""}\` (${typeof t.interval})`);
405
- $(this, Re, t.carryoverConcurrencyCount), $(this, ke, t.intervalCap === Number.POSITIVE_INFINITY || t.interval === 0), $(this, qe, t.intervalCap), $(this, Te, t.interval), $(this, Z, new t.queueClass()), $(this, $e, t.queueClass), this.concurrency = t.concurrency, this.timeout = t.timeout, $(this, Be, t.throwOnTimeout === !0), $(this, pe, t.autoStart === !1);
405
+ $(this, Re, t.carryoverConcurrencyCount), $(this, ke, t.intervalCap === Number.POSITIVE_INFINITY || t.interval === 0), $(this, Me, t.intervalCap), $(this, Te, t.interval), $(this, Z, new t.queueClass()), $(this, $e, t.queueClass), this.concurrency = t.concurrency, this.timeout = t.timeout, $(this, Be, t.throwOnTimeout === !0), $(this, pe, t.autoStart === !1);
406
406
  }
407
407
  get concurrency() {
408
408
  return _(this, De);
@@ -552,8 +552,8 @@ class Ms extends Ls {
552
552
  return _(this, pe);
553
553
  }
554
554
  }
555
- Re = new WeakMap(), ke = new WeakMap(), _e = new WeakMap(), qe = new WeakMap(), Te = new WeakMap(), Pe = new WeakMap(), re = new WeakMap(), Se = new WeakMap(), Z = new WeakMap(), $e = new WeakMap(), ne = new WeakMap(), De = new WeakMap(), pe = new WeakMap(), Be = new WeakMap(), it = new WeakMap(), L = new WeakSet(), li = function() {
556
- return _(this, ke) || _(this, _e) < _(this, qe);
555
+ Re = new WeakMap(), ke = new WeakMap(), _e = new WeakMap(), Me = new WeakMap(), Te = new WeakMap(), Pe = new WeakMap(), re = new WeakMap(), Se = new WeakMap(), Z = new WeakMap(), $e = new WeakMap(), ne = new WeakMap(), De = new WeakMap(), pe = new WeakMap(), Be = new WeakMap(), it = new WeakMap(), L = new WeakSet(), li = function() {
556
+ return _(this, ke) || _(this, _e) < _(this, Me);
557
557
  }, ui = function() {
558
558
  return _(this, ne) < _(this, De);
559
559
  }, hi = function() {
@@ -609,7 +609,7 @@ Qe = function() {
609
609
  this.on(t, r);
610
610
  });
611
611
  };
612
- const qs = () => {
612
+ const Ms = () => {
613
613
  const o = vt(), e = ge(ye);
614
614
  if (!e)
615
615
  return;
@@ -617,7 +617,7 @@ const qs = () => {
617
617
  console.warn("Detected incorrect use of useRequestQueue. This composable should not be used in nested components. Please discuss with team-data or report an issue if you feel you have a use case.");
618
618
  return;
619
619
  }
620
- const t = new Ms({
620
+ const t = new qs({
621
621
  carryoverConcurrencyCount: !0,
622
622
  concurrency: o.maxParallelRequests,
623
623
  interval: o.requestInterval,
@@ -627,7 +627,7 @@ const qs = () => {
627
627
  queryFnOverride: !0,
628
628
  queryFn: (s, r) => t.add(() => e.queryFn(s, r), { throwOnTimeout: !0 })
629
629
  };
630
- qi(ye, i);
630
+ Mi(ye, i);
631
631
  };
632
632
  /*!
633
633
  * pinia v3.0.4
@@ -692,7 +692,7 @@ function Fs({
692
692
  return h.value({
693
693
  datasource: D,
694
694
  filters: I,
695
- metrics: Q
695
+ queryFields: Q
696
696
  });
697
697
  }), v = w(() => {
698
698
  if (!g.value || !p.value)
@@ -705,7 +705,7 @@ function Fs({
705
705
  });
706
706
  const I = S.query.time_range || e.value.timeSpec, Q = Y(I, z.value);
707
707
  return ve(Q);
708
- }), M = w(() => {
708
+ }), q = w(() => {
709
709
  if (!y.value || !p.value)
710
710
  return "";
711
711
  const S = z.value, I = t.value;
@@ -756,7 +756,7 @@ function Fs({
756
756
  S && (a.value = { href: "" }), I && (n.value = { href: "" });
757
757
  }), {
758
758
  exploreLinkKebabMenu: v,
759
- requestsLinkKebabMenu: M,
759
+ requestsLinkKebabMenu: q,
760
760
  canShowKebabMenu: p,
761
761
  canGenerateRequestsLink: y,
762
762
  canGenerateExploreLink: g,
@@ -786,7 +786,7 @@ function Gs() {
786
786
  ...r.filters ?? [],
787
787
  ...a.filters
788
788
  ],
789
- metrics: r.metrics
789
+ queryFields: r.metrics
790
790
  });
791
791
  let m = r.time_range;
792
792
  m ? m.tz || (m = {
@@ -826,8 +826,8 @@ function Us({
826
826
  if (r.value.type === "relative")
827
827
  k = ["15m", "1h", "6h", "12h", "24h"].includes(r.value.time_range);
828
828
  else {
829
- const M = r.value.start.getTime(), A = r.value.end.getTime();
830
- k = Math.abs(A - M) <= 864e5;
829
+ const q = r.value.start.getTime(), A = r.value.end.getTime();
830
+ k = Math.abs(A - q) <= 864e5;
831
831
  }
832
832
  const z = (/* @__PURE__ */ new Date()).getTime();
833
833
  r.value.type === "absolute" && r.value.end.getTime() < z || r.value.type === "relative" && ["previous_week", "previous_month"].includes(r.value.time_range) ? l = 0 : k ? l = Ts : l = Ss;
@@ -856,7 +856,7 @@ const ae = {
856
856
  useEvaluateFeatureFlag: Ds,
857
857
  useI18n: xs,
858
858
  useIssueQuery: Gs,
859
- useRequestQueue: qs
859
+ useRequestQueue: Ms
860
860
  }, wt = /* @__PURE__ */ ee({
861
861
  __name: "QueryDataProvider",
862
862
  props: {
@@ -885,7 +885,7 @@ const ae = {
885
885
  return Oe([() => d.value, () => u.value], ([g, k]) => {
886
886
  g && (k === "SUCCESS_HAS_DATA" || k === "SUCCESS") && i("chart-data", g);
887
887
  }), (g, k) => {
888
- var M;
888
+ var q;
889
889
  const z = ue("KSkeleton"), v = ue("KEmptyState");
890
890
  return y.value || !E(d) && !p.value ? (C(), O(z, {
891
891
  key: 0,
@@ -896,13 +896,13 @@ const ae = {
896
896
  "action-button-visible": !1,
897
897
  "data-testid": "chart-empty-state"
898
898
  }, rt({
899
- icon: q(() => {
899
+ icon: M(() => {
900
900
  var A;
901
901
  return [
902
902
  ((A = m.value) == null ? void 0 : A.type) === "forbidden" ? (C(), O(E(ss), { key: 0 })) : (C(), O(E(rs), { key: 1 }))
903
903
  ];
904
904
  }),
905
- title: q(() => {
905
+ title: M(() => {
906
906
  var A;
907
907
  return [
908
908
  te("p", null, J(((A = m.value) == null ? void 0 : A.message) || E(s).t("renderer.unexpectedError")), 1)
@@ -910,9 +910,9 @@ const ae = {
910
910
  }),
911
911
  _: 2
912
912
  }, [
913
- (M = m.value) != null && M.details ? {
913
+ (q = m.value) != null && q.details ? {
914
914
  name: "default",
915
- fn: q(() => [
915
+ fn: M(() => [
916
916
  te("p", null, J(m.value.details), 1)
917
917
  ]),
918
918
  key: "0"
@@ -943,7 +943,7 @@ const ae = {
943
943
  "query-ready": o.queryReady,
944
944
  "refresh-counter": o.refreshCounter
945
945
  }, {
946
- default: q(({ data: r }) => [
946
+ default: M(({ data: r }) => [
947
947
  te("div", {
948
948
  class: ze(["analytics-chart", { "single-value": t.value }]),
949
949
  style: Ye(t.value ? void 0 : { height: `${o.height}px` })
@@ -998,7 +998,7 @@ const ae = {
998
998
  "refresh-counter": o.refreshCounter,
999
999
  onChartData: d
1000
1000
  }, {
1001
- default: q(({ data: f }) => [
1001
+ default: M(({ data: f }) => [
1002
1002
  te("div", Ks, [
1003
1003
  fe(E(Xi), ei({
1004
1004
  "chart-data": f,
@@ -1015,9 +1015,9 @@ const ae = {
1015
1015
  }), rt({ _: 2 }, [
1016
1016
  o.context.editable ? {
1017
1017
  name: "menu-items",
1018
- fn: q(() => [
1018
+ fn: M(() => [
1019
1019
  fe(u, { onClick: n }, {
1020
- default: q(() => [
1020
+ default: M(() => [
1021
1021
  gt(J(E(s).t("renderer.edit")), 1)
1022
1022
  ]),
1023
1023
  _: 1
@@ -1117,7 +1117,7 @@ const ae = {
1117
1117
  class: ze(["metric-card-tile-wrapper", { titled: !!e.chartOptions.chart_title }])
1118
1118
  }, [
1119
1119
  fe(E(hs), Gi(Ui(t.value)), {
1120
- default: q(() => [
1120
+ default: M(() => [
1121
1121
  fe(E(ds))
1122
1122
  ]),
1123
1123
  _: 1
@@ -1169,9 +1169,9 @@ const ae = {
1169
1169
  if (h)
1170
1170
  if (l.id.includes(":")) {
1171
1171
  const [u, f] = l.id.split(":");
1172
- return h.replace(Cs, u).replace(qt, f);
1172
+ return h.replace(Cs, u).replace(Mt, f);
1173
1173
  } else
1174
- return h.replace(qt, l.id);
1174
+ return h.replace(Mt, l.id);
1175
1175
  return "";
1176
1176
  };
1177
1177
  return (l, h) => (C(), O(wt, {
@@ -1180,14 +1180,14 @@ const ae = {
1180
1180
  "query-ready": o.queryReady,
1181
1181
  "refresh-counter": o.refreshCounter
1182
1182
  }, {
1183
- default: q(({ data: u }) => [
1183
+ default: M(({ data: u }) => [
1184
1184
  fe(E(Zi), {
1185
1185
  data: u,
1186
1186
  "synthetics-data-key": o.chartOptions.synthetics_data_key
1187
1187
  }, rt({ _: 2 }, [
1188
1188
  s.value ? {
1189
1189
  name: "name",
1190
- fn: q(({ record: f }) => [
1190
+ fn: M(({ record: f }) => [
1191
1191
  !f.isEmpty && n(f) ? (C(), O(E(i), {
1192
1192
  key: 0,
1193
1193
  "entity-link-data": {
@@ -1272,7 +1272,8 @@ const ae = {
1272
1272
  filters: [
1273
1273
  ...d.filters ?? [],
1274
1274
  ...e.filters
1275
- ]
1275
+ ],
1276
+ queryFields: d.entity === void 0 ? void 0 : [d.entity]
1276
1277
  }), h = await n({
1277
1278
  datasource: s.datasource,
1278
1279
  query: {
@@ -1348,8 +1349,8 @@ const ae = {
1348
1349
  cursor: g,
1349
1350
  pageSize: k,
1350
1351
  query: u.value,
1351
- onResponseColumns: (M) => {
1352
- d.value = M;
1352
+ onResponseColumns: (q) => {
1353
+ d.value = q;
1353
1354
  },
1354
1355
  stripUnknownFilters: r.stripUnknownFilters,
1355
1356
  tabularQueryFn: s == null ? void 0 : s.tabularQueryFn
@@ -1428,11 +1429,11 @@ const ae = {
1428
1429
  emits: /* @__PURE__ */ je(["chart-data", "edit-tile", "duplicate-tile", "remove-tile", "tile-time-range-zoom", "tile-bounds-change"], ["update:refreshCounter"]),
1429
1430
  setup(o, { expose: e, emit: t }) {
1430
1431
  pt((x) => ({
1431
- v76e9feba: `${x.height}px`
1432
+ v55ee0ccc: `${x.height}px`
1432
1433
  }));
1433
1434
  const i = parseInt(gi, 10), s = o, r = ii(o, "refreshCounter"), a = () => {
1434
1435
  z.value = !0, r.value++;
1435
- }, n = t, d = ti(() => import("./GeoMapRenderer-CpBFlElz.js")), l = ge(ye), h = nt(), { stripUnknownFilters: u } = bt(h), { i18n: f } = ae.useI18n(), m = H(), p = H({ status: "loading" }), y = H(!1), g = H(), k = H(!1), z = H(!0), v = w(() => s.definition.chart), M = w(() => "chart_title" in v.value ? v.value.chart_title : void 0), A = w(() => "description" in v.value ? v.value.description : void 0), le = w(() => v.value.type === "slottable"), xe = w(() => oe(s.definition) ? !1 : !("allow_csv_export" in v.value) || v.value.allow_csv_export !== !1), {
1436
+ }, n = t, d = ti(() => import("./GeoMapRenderer-BSBPCCw4.js")), l = ge(ye), h = nt(), { stripUnknownFilters: u } = bt(h), { i18n: f } = ae.useI18n(), m = H(), p = H({ status: "loading" }), y = H(!1), g = H(), k = H(!1), z = H(!0), v = w(() => s.definition.chart), q = w(() => "chart_title" in v.value ? v.value.chart_title : void 0), A = w(() => "description" in v.value ? v.value.description : void 0), le = w(() => v.value.type === "slottable"), xe = w(() => oe(s.definition) ? !1 : !("allow_csv_export" in v.value) || v.value.allow_csv_export !== !1), {
1436
1437
  exploreLinkKebabMenu: Y,
1437
1438
  requestsLinkKebabMenu: ve,
1438
1439
  canShowKebabMenu: S,
@@ -1516,11 +1517,11 @@ const ae = {
1516
1517
  return W ? W.display : (console.warn("Did not recognize the given relative time range:", T.time_range), T.time_range);
1517
1518
  } else if ((T == null ? void 0 : T.type) === "absolute") {
1518
1519
  const W = T.tz || "Etc/UTC";
1519
- return `${Mt(T.start, { short: !0, tz: W })} - ${Mt(T.end, { short: !0, tz: W })}`;
1520
+ return `${qt(T.start, { short: !0, tz: W })} - ${qt(T.end, { short: !0, tz: W })}`;
1520
1521
  }
1521
1522
  return null;
1522
1523
  }), Rt = w(() => le.value ? !1 : [
1523
- !!M.value,
1524
+ !!q.value,
1524
1525
  yi.value,
1525
1526
  !!ut.value,
1526
1527
  vi.value,
@@ -1542,7 +1543,7 @@ const ae = {
1542
1543
  return u.value({
1543
1544
  datasource: W,
1544
1545
  filters: T,
1545
- metrics: G
1546
+ queryFields: G
1546
1547
  });
1547
1548
  }), Ci = () => {
1548
1549
  n("edit-tile", s.definition);
@@ -1602,14 +1603,14 @@ const ae = {
1602
1603
  class: "title-tooltip",
1603
1604
  disabled: !k.value,
1604
1605
  "max-width": "500",
1605
- text: M.value
1606
+ text: q.value
1606
1607
  }, {
1607
- default: q(() => [
1608
+ default: M(() => [
1608
1609
  te("div", {
1609
1610
  ref_key: "titleRef",
1610
1611
  ref: g,
1611
1612
  class: "title"
1612
- }, J(M.value), 513)
1613
+ }, J(q.value), 513)
1613
1614
  ]),
1614
1615
  _: 1
1615
1616
  }, 8, ["disabled", "text"]),
@@ -1620,14 +1621,14 @@ const ae = {
1620
1621
  tooltip: Tt.value ? Ei.value : void 0,
1621
1622
  "tooltip-attributes": { maxWidth: "320px" }
1622
1623
  }, rt({
1623
- default: q(() => [
1624
+ default: M(() => [
1624
1625
  te("span", hr, J(ut.value), 1)
1625
1626
  ]),
1626
1627
  _: 2
1627
1628
  }, [
1628
1629
  Tt.value ? {
1629
1630
  name: "icon",
1630
- fn: q(() => [
1631
+ fn: M(() => [
1631
1632
  fe(E(ns), {
1632
1633
  size: `var(--kui-icon-size-20, ${E(nr)})`
1633
1634
  }, null, 8, ["size"])
@@ -1646,7 +1647,7 @@ const ae = {
1646
1647
  size: "small",
1647
1648
  onClick: a
1648
1649
  }, {
1649
- default: q(() => [
1650
+ default: M(() => [
1650
1651
  z.value ? (C(), O(E(os), {
1651
1652
  key: 0,
1652
1653
  role: "button",
@@ -1681,7 +1682,7 @@ const ae = {
1681
1682
  "data-testid": `chart-action-menu-${o.tileId}`,
1682
1683
  "kpop-attributes": { placement: "bottom-end" }
1683
1684
  }, {
1684
- items: q(() => [
1685
+ items: M(() => [
1685
1686
  E(Y) ? (C(), O(me, {
1686
1687
  key: 0,
1687
1688
  "data-testid": `chart-jump-to-explore-${o.tileId}`,
@@ -1698,7 +1699,7 @@ const ae = {
1698
1699
  "data-testid": `chart-csv-export-${o.tileId}`,
1699
1700
  onClick: zi
1700
1701
  }, {
1701
- default: q(() => [
1702
+ default: M(() => [
1702
1703
  te("span", {
1703
1704
  class: "chart-export-trigger",
1704
1705
  "data-testid": `csv-export-button-${o.tileId}`
@@ -1711,7 +1712,7 @@ const ae = {
1711
1712
  "data-testid": `duplicate-tile-${o.tileId}`,
1712
1713
  onClick: Ri
1713
1714
  }, {
1714
- default: q(() => [
1715
+ default: M(() => [
1715
1716
  gt(J(E(f).t("renderer.duplicateTile")), 1)
1716
1717
  ]),
1717
1718
  _: 1
@@ -1721,13 +1722,13 @@ const ae = {
1721
1722
  "data-testid": `remove-tile-${o.tileId}`,
1722
1723
  onClick: ki
1723
1724
  }, {
1724
- default: q(() => [
1725
+ default: M(() => [
1725
1726
  te("span", gr, J(E(f).t("renderer.delete")), 1)
1726
1727
  ]),
1727
1728
  _: 1
1728
1729
  }, 8, ["data-testid"])) : X("", !0)
1729
1730
  ]),
1730
- default: q(() => [
1731
+ default: M(() => [
1731
1732
  fe(E(us), {
1732
1733
  class: "kebab-action-menu",
1733
1734
  color: `var(--kui-color-text-neutral, ${E(Vt)})`,
@@ -1759,7 +1760,7 @@ const ae = {
1759
1760
  ], 10, ar);
1760
1761
  };
1761
1762
  }
1762
- }), mi = /* @__PURE__ */ be(yr, [["__scopeId", "data-v-14541de0"]]), vr = (o, e) => {
1763
+ }), mi = /* @__PURE__ */ be(yr, [["__scopeId", "data-v-ca900eba"]]), vr = (o, e) => {
1763
1764
  let t = 0;
1764
1765
  const i = /* @__PURE__ */ new Map();
1765
1766
  e.forEach((r) => {
@@ -2921,7 +2922,7 @@ class Ie extends xt {
2921
2922
  }
2922
2923
  Ie._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
2923
2924
  const Er = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
2924
- class Me extends xt {
2925
+ class qe extends xt {
2925
2926
  constructor(e, t = {}) {
2926
2927
  var r;
2927
2928
  super(), this.el = e, this.option = t, this.dragTransform = {
@@ -3011,7 +3012,7 @@ class Me extends xt {
3011
3012
  /** @internal create a clone copy (or user defined method) of the original drag item if set */
3012
3013
  _createHelper() {
3013
3014
  let e = this.el;
3014
- return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = c.cloneNode(this.el)), e.parentElement || c.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = Me.originStyleProp.map((t) => this.el.style[t]), e;
3015
+ return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = c.cloneNode(this.el)), e.parentElement || c.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = qe.originStyleProp.map((t) => this.el.style[t]), e;
3015
3016
  }
3016
3017
  /** @internal set the fix position of the dragged item */
3017
3018
  _setupHelperStyle(e) {
@@ -3028,7 +3029,7 @@ class Me extends xt {
3028
3029
  const e = (t = this.helper) == null ? void 0 : t.gridstackNode;
3029
3030
  if (!(e != null && e._isAboutToRemove) && this.dragElementOriginStyle) {
3030
3031
  const i = this.helper, s = this.dragElementOriginStyle.transition || null;
3031
- i.style.transition = this.dragElementOriginStyle.transition = "none", Me.originStyleProp.forEach((r) => i.style[r] = this.dragElementOriginStyle[r] || null), setTimeout(() => i.style.transition = s, 50);
3032
+ i.style.transition = this.dragElementOriginStyle.transition = "none", qe.originStyleProp.forEach((r) => i.style[r] = this.dragElementOriginStyle[r] || null), setTimeout(() => i.style.transition = s, 50);
3032
3033
  }
3033
3034
  return delete this.dragElementOriginStyle, this;
3034
3035
  }
@@ -3070,7 +3071,7 @@ class Me extends xt {
3070
3071
  };
3071
3072
  }
3072
3073
  }
3073
- Me.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
3074
+ qe.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
3074
3075
  class xr extends xt {
3075
3076
  constructor(e, t = {}) {
3076
3077
  super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
@@ -3151,7 +3152,7 @@ class Ct {
3151
3152
  return this.ddDraggable && ["drag", "dragstart", "dragstop"].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && ["drop", "dropover", "dropout"].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && ["resizestart", "resize", "resizestop"].indexOf(e) > -1 && this.ddResizable.off(e), this;
3152
3153
  }
3153
3154
  setupDraggable(e) {
3154
- return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new Me(this.el, e), this;
3155
+ return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new qe(this.el, e), this;
3155
3156
  }
3156
3157
  cleanDraggable() {
3157
3158
  return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
@@ -4442,9 +4443,9 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4442
4443
  n.x = Math.round(k / r), n.y = Math.round(z / a);
4443
4444
  const v = this._extraDragRow;
4444
4445
  if (this.engine.collide(s, n)) {
4445
- const M = this.getRow();
4446
- let A = Math.max(0, n.y + s.h - M);
4447
- this.opts.maxRow && M + A > this.opts.maxRow && (A = Math.max(0, this.opts.maxRow - M)), this._extraDragRow = A;
4446
+ const q = this.getRow();
4447
+ let A = Math.max(0, n.y + s.h - q);
4448
+ this.opts.maxRow && q + A > this.opts.maxRow && (A = Math.max(0, this.opts.maxRow - q)), this._extraDragRow = A;
4448
4449
  } else
4449
4450
  this._extraDragRow = 0;
4450
4451
  if (this._extraDragRow !== v && this._updateContainerHeight(), s.x === n.x && s.y === n.y)
@@ -4662,7 +4663,7 @@ const Rr = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], kr = { cl
4662
4663
  }
4663
4664
  }, v = (D) => {
4664
4665
  n.value && n.value.removeWidget(D.id);
4665
- }, M = () => {
4666
+ }, q = () => {
4666
4667
  a.value++;
4667
4668
  }, A = (D) => {
4668
4669
  const N = D.map((F) => ({
@@ -4688,7 +4689,7 @@ const Rr = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], kr = { cl
4688
4689
  preview: w(() => o.preview)
4689
4690
  });
4690
4691
  return e({
4691
- refresh: M,
4692
+ refresh: q,
4692
4693
  toggleFullscreen: xe
4693
4694
  }), (D, N) => {
4694
4695
  const F = ue("KAlert");
@@ -4715,7 +4716,7 @@ const Rr = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], kr = { cl
4715
4716
  tiles: m.value,
4716
4717
  onUpdateTiles: A
4717
4718
  }, {
4718
- tile: q(({ tile: P }) => [
4719
+ tile: M(({ tile: P }) => [
4719
4720
  y(P) ? (C(), B("div", Nr, [
4720
4721
  He(D.$slots, k(P), {}, void 0, !0)
4721
4722
  ])) : (C(), O(mi, {
@@ -4743,7 +4744,7 @@ const Rr = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], kr = { cl
4743
4744
  key: 1,
4744
4745
  appearance: "danger"
4745
4746
  }, {
4746
- default: q(() => [
4747
+ default: M(() => [
4747
4748
  gt(J(E(r).t("renderer.noQueryBridge")), 1)
4748
4749
  ]),
4749
4750
  _: 1
@@ -4778,8 +4779,8 @@ const Rr = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], kr = { cl
4778
4779
  }), y = H(Ge);
4779
4780
  let g;
4780
4781
  st(() => {
4781
- var M;
4782
- const v = (M = i.value) == null ? void 0 : M.parentElement;
4782
+ var q;
4783
+ const v = (q = i.value) == null ? void 0 : q.parentElement;
4783
4784
  v && (y.value = v.getBoundingClientRect().height, g = new ResizeObserver(([A]) => {
4784
4785
  const { height: le } = A.contentRect;
4785
4786
  y.value = le;
@@ -4794,7 +4795,7 @@ const Rr = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], kr = { cl
4794
4795
  var v;
4795
4796
  return (v = s.value) == null ? void 0 : v.getExportData();
4796
4797
  }
4797
- }), (v, M) => {
4798
+ }), (v, q) => {
4798
4799
  const A = ue("KEmptyState");
4799
4800
  return C(), B("div", {
4800
4801
  ref_key: "root",
@@ -4806,10 +4807,10 @@ const Rr = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], kr = { cl
4806
4807
  "action-button-visible": !1,
4807
4808
  "data-testid": "chart-not-configured-empty-state"
4808
4809
  }, {
4809
- title: q(() => [
4810
+ title: M(() => [
4810
4811
  te("p", null, J(E(h).t("renderer.not_configured.title")), 1)
4811
4812
  ]),
4812
- default: q(() => [
4813
+ default: M(() => [
4813
4814
  te("p", null, J(E(h).t("renderer.not_configured.description")), 1)
4814
4815
  ]),
4815
4816
  _: 1
@@ -4817,7 +4818,7 @@ const Rr = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], kr = { cl
4817
4818
  key: 1,
4818
4819
  ref: "dashboard-tile",
4819
4820
  "refresh-counter": k.value,
4820
- "onUpdate:refreshCounter": M[0] || (M[0] = (le) => k.value = le),
4821
+ "onUpdate:refreshCounter": q[0] || (q[0] = (le) => k.value = le),
4821
4822
  context: {
4822
4823
  ...E(u),
4823
4824
  editable: !1
@@ -4903,7 +4904,7 @@ const Rr = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], kr = { cl
4903
4904
  export {
4904
4905
  Cs as C,
4905
4906
  _t as D,
4906
- qt as E,
4907
+ Mt as E,
4907
4908
  Ss as F,
4908
4909
  br as G,
4909
4910
  ye as I,