@databrainhq/plugin 0.17.9-beta.48 → 0.17.9-beta.49

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.
Files changed (41) hide show
  1. package/dist/{Accordion-DLMkpjMx.mjs → Accordion-B1HmpZ2P.mjs} +1 -1
  2. package/dist/{CardChartSlot-Cyksn0_m.mjs → CardChartSlot-BIIjmHsu.mjs} +616 -566
  3. package/dist/{Chart-2_umaljI.mjs → Chart-BcmkjXMD.mjs} +52 -52
  4. package/dist/{ChartTypePanel-CeV5M5SQ.mjs → ChartTypePanel-DUwZ5B-_.mjs} +8 -8
  5. package/dist/{CreateGlobalFilter-DKwF-Iao.mjs → CreateGlobalFilter-DDtIpgRd.mjs} +2 -2
  6. package/dist/{CreateMetricV2-BjdBqz9v.mjs → CreateMetricV2-BEXaszJA.mjs} +15 -15
  7. package/dist/{HorizontalStackTable-yf-l8lvj.mjs → HorizontalStackTable-BYQaEbea.mjs} +3 -3
  8. package/dist/{ManageMetricsV2-BRrSgY7w.mjs → ManageMetricsV2-C_6BeI6L.mjs} +3 -3
  9. package/dist/{MetricCardV2-veqXANJF.mjs → MetricCardV2-ChILinwX.mjs} +853 -842
  10. package/dist/{NoDataFound-BINw6Y12.mjs → NoDataFound-DtuATv-f.mjs} +1 -1
  11. package/dist/{Panel-DzPYLDDl.mjs → Panel-BCuB-6P0.mjs} +20 -20
  12. package/dist/{PivotTableV2-D9Lj9nWq.mjs → PivotTableV2-CXcYGUEl.mjs} +2 -2
  13. package/dist/{PivotTableV3--m_-X-4T.mjs → PivotTableV3-9ZxfPQvr.mjs} +4 -4
  14. package/dist/{Portal-BsPkfI4N.mjs → Portal-rrOaB4Bd.mjs} +2 -2
  15. package/dist/{RadioButton-BpO_7LIW.mjs → RadioButton-CdjohtqA.mjs} +1 -1
  16. package/dist/{ScheduleEmail-C7DLEstd.mjs → ScheduleEmail-B8LYb0Rp.mjs} +6 -6
  17. package/dist/{SearchMetricData-BLnahSGI.mjs → SearchMetricData-Ch25t99l.mjs} +13 -13
  18. package/dist/{SortPanel-B0doOUAt.mjs → SortPanel-C5iHNq2W.mjs} +8 -8
  19. package/dist/{Table-yiT9hOaS.mjs → Table-CU_DPx7I.mjs} +84 -83
  20. package/dist/{TagInputField-iILkucCX.mjs → TagInputField-CFdoNB_N.mjs} +4 -4
  21. package/dist/{TextAreaField-1klDZ00B.mjs → TextAreaField-BCPTYecn.mjs} +2 -2
  22. package/dist/{TimeSeriesSettings-KOsSPF2S.mjs → TimeSeriesSettings-Cf0qN7IA.mjs} +2 -2
  23. package/dist/{cardQueryError-CWeSg4L9.mjs → cardQueryError-DswvG8Em.mjs} +9 -9
  24. package/dist/{conditionalFormatting-BfWx4ldB.mjs → conditionalFormatting-Dr6Ko980.mjs} +1 -1
  25. package/dist/{createGlobalFilter.module-C-vtJ58v.mjs → createGlobalFilter.module-CBdoZ9am.mjs} +1 -1
  26. package/dist/data.cjs +1 -1
  27. package/dist/data.mjs +1 -1
  28. package/dist/{echarts-GGpZSeR_.mjs → echarts-YvdpwAXr.mjs} +2 -2
  29. package/dist/{metric.mutation-BgklcDqd.mjs → metric.mutation-CpTlOouC.mjs} +1 -1
  30. package/dist/{permissions-D0tFL379.mjs → permissions-tSNA3qFl.mjs} +5 -5
  31. package/dist/{pluginV3Request-BVxZrR4v.mjs → pluginV3Request-vedxVBZb.mjs} +1 -1
  32. package/dist/{renderer-DegBsuVl.mjs → renderer-DY_lFWZ1.mjs} +1 -1
  33. package/dist/{timeseries-BAn41226.mjs → timeseries-zAu_-AJo.mjs} +1 -1
  34. package/dist/{toTasteAppearance-DBN4QaIw.mjs → toTasteAppearance-B4_PDCSX.mjs} +95 -92
  35. package/dist/{useGuesTokenUsageLog-Cgj9filf.mjs → useGuesTokenUsageLog-CbjKeY_o.mjs} +1 -1
  36. package/dist/{usePublishArchivedMetrics-ix_1Nf_o.mjs → usePublishArchivedMetrics-vrjAvHIS.mjs} +2 -2
  37. package/dist/{useQuery-zFv2LqWt.mjs → useQuery-D8fC1CBL.mjs} +1 -1
  38. package/dist/webcomponents.css +2 -2
  39. package/dist/webcomponents.es.js +1834 -1831
  40. package/dist/webcomponents.umd.js +108 -108
  41. package/package.json +1 -1
@@ -2,10 +2,10 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { a as e, i as t, o as n, r, t as i } from "./rolldown-runtime-C1JUX4Ur.mjs";
5
- import { Ai as a, Cr as o, Ea as s, Gi as c, H as l, Lr as u, On as d, Qr as f, Sn as p, Sr as m, Va as h, Yt as g, _r as _, a as v, d as y, eo as b, kn as ee, l as x, la as S, mi as C, pi as w, so as T, y as te } from "./Portal-BsPkfI4N.mjs";
6
- import { a as ne, c as E, i as re, l as ie, m as ae, n as oe, o as se, r as D, s as O, t as k, u as A } from "./toTasteAppearance-DBN4QaIw.mjs";
7
- import { $ as j, A as M, G as ce, J as le, O as ue, Q as de, S as N, X as P, Y as fe, Z as pe } from "./option-B1zeYJnm.mjs";
8
- import { g as me, m as he, p as ge, r as _e, t as ve, y as ye } from "./timeseries-BAn41226.mjs";
5
+ import { Ai as a, Cr as o, Ea as s, Gi as c, H as l, Lr as u, On as d, Qr as f, Sn as p, Sr as m, Va as h, Yt as g, _r as _, a as v, d as y, eo as b, kn as ee, l as x, la as S, mi as C, pi as w, so as T, y as te } from "./Portal-rrOaB4Bd.mjs";
6
+ import { a as ne, c as E, d as re, h as ie, i as ae, n as oe, o as se, r as D, s as O, t as k, u as ce } from "./toTasteAppearance-B4_PDCSX.mjs";
7
+ import { $ as A, A as j, G as M, J as le, O as ue, Q as de, S as N, X as P, Y as fe, Z as pe } from "./option-B1zeYJnm.mjs";
8
+ import { g as me, m as he, p as ge, r as _e, t as ve, y as ye } from "./timeseries-zAu_-AJo.mjs";
9
9
  import { n as be } from "./text-CtrvkDIo.mjs";
10
10
  import { $ as xe, $r as Se, Ar as Ce, C as we, Cs as Te, D as Ee, Do as De, Dr as Oe, E as ke, Ec as F, Er as I, Fc as Ae, Fs as je, Ft as Me, Gt as Ne, Hi as Pe, Ii as Fe, Ka as Ie, Kr as L, L as Le, Ln as Re, M as ze, Nc as Be, O as Ve, Oo as He, Or as Ue, Pi as We, Qa as Ge, Qr as Ke, Rc as qe, S as Je, So as Ye, T as R, Tc as Xe, Vc as Ze, Vr as Qe, Wa as $e, Wc as et, Xa as tt, Xc as nt, Xn as rt, Xr as it, Ya as at, Yr as z, Za as ot, Zr as st, _ as ct, _r as lt, a as ut, ai as dt, b as ft, bc as pt, bo as mt, br as ht, c as gt, d as _t, dc as vt, dr as yt, ei as bt, el as xt, eo as St, er as Ct, et as wt, f as Tt, fc as Et, fi as Dt, fr as Ot, g as kt, gc as At, go as jt, h as Mt, hc as Nt, ho as Pt, i as Ft, ii as It, it as Lt, jr as Rt, kc as zt, l as Bt, lc as Vt, m as Ht, mo as Ut, n as Wt, ni as Gt, no as Kt, nt as qt, o as Jt, oi as Yt, p as Xt, po as Zt, qn as Qt, qr as $t, r as en, ri as tn, ro as nn, rs as rn, s as an, t as on, ti as sn, tl as cn, u as ln, ur as un, v as dn, vc as fn, vn as pn, vo as mn, vr as hn, w as gn, wc as _n, wo as vn, x as yn, xc as bn, xo as xn, xr as Sn, y as Cn, yo as wn, zc as Tn, zi as En } from "./echarts-CrmHGsP0.mjs";
11
11
  import { t as Dn } from "./SeriesData-Bv5A1N4c.mjs";
@@ -17,13 +17,13 @@ import { n as Fn, t as In } from "./Axis-9fJG6_xT.mjs";
17
17
  import { n as Ln } from "./axisNiceTicks-CggqNl9O.mjs";
18
18
  import { t as Rn } from "./extension-CLVYoN7B.mjs";
19
19
  import { c as zn } from "./install-C_kPiY2Z.mjs";
20
- import { t as B } from "./NoDataFound-BINw6Y12.mjs";
21
- import { n as Bn, t as Vn } from "./Accordion-DLMkpjMx.mjs";
20
+ import { t as B } from "./NoDataFound-DtuATv-f.mjs";
21
+ import { n as Bn, t as Vn } from "./Accordion-B1HmpZ2P.mjs";
22
22
  import { a as Hn, i as Un } from "./tslib.es6-D6qdqxsl.mjs";
23
23
  import { n as Wn, t as Gn } from "./esm-B2ERA78g.mjs";
24
24
  import { a as Kn, i as qn, n as Jn, o as Yn, r as Xn, t as Zn } from "./dist-DHNl58qD.mjs";
25
25
  import { n as Qn, r as $n } from "./cardActions-DEbl3R_a.mjs";
26
- import { t as er } from "./conditionalFormatting-BfWx4ldB.mjs";
26
+ import { t as er } from "./conditionalFormatting-Dr6Ko980.mjs";
27
27
  import { t as tr } from "./Loader-CHJMbWv0.mjs";
28
28
  import { t as V } from "./list.module-DmT9azvq.mjs";
29
29
  import { n as nr, o as rr } from "./canvasTeardown-CyI2ZHcq.mjs";
@@ -286,7 +286,7 @@ function Br(e) {
286
286
  if (!t || !Pr.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
287
287
  let i = zr(e);
288
288
  if (i.show === !1) return null;
289
- let a = ce({
289
+ let a = M({
290
290
  labels: r,
291
291
  layout: n,
292
292
  legend: i,
@@ -389,7 +389,7 @@ function Kr(e, t) {
389
389
  ...e,
390
390
  ...o ? { center: o.center } : {},
391
391
  ...u ? { center: [(o?.center ?? e.center ?? ["50%", "50%"])[0], "44%"] } : {},
392
- ...e.radius !== void 0 && d < 1 ? { radius: M(e.radius, d) } : {},
392
+ ...e.radius !== void 0 && d < 1 ? { radius: j(e.radius, d) } : {},
393
393
  ...c?.hide && Ur(e) ? {
394
394
  label: {
395
395
  ...e.label,
@@ -1602,8 +1602,8 @@ function Po(e, { relative: t } = {}) {
1602
1602
  }
1603
1603
  //#endregion
1604
1604
  //#region src/components/List/index.tsx
1605
- var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: s = 5, isDataLoading: c = !1, showLogo: l, isShowOptions: u, setValue: d, currentPage: f = 1, isEnableScrollToTop: p, isDisableMoreOption: h, isEnableSelectAll: g, onSelectAll: _, onDeselectAll: ee, isAllSelected: x, parent: S, extraValues: C, extraHeaderText: w, onTourClick: ne, onRowClick: E, onRowHover: re, onMouseOut: ie, buttonContent: ae, noDataSubHeading: oe, isDatasourceList: se, stateKey: D, onCreate: O, isDemoDatasource: k, isOpenInNewTab: A, noDataProps: j }) => {
1606
- let M = ya(), [ce, le] = K(s), [ue, de] = K(""), [N, P] = K(""), fe = (e) => {
1605
+ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: s = 5, isDataLoading: c = !1, showLogo: l, isShowOptions: u, setValue: d, currentPage: f = 1, isEnableScrollToTop: p, isDisableMoreOption: h, isEnableSelectAll: g, onSelectAll: _, onDeselectAll: ee, isAllSelected: x, parent: S, extraValues: C, extraHeaderText: w, onTourClick: ne, onRowClick: E, onRowHover: re, onMouseOut: ie, buttonContent: ae, noDataSubHeading: oe, isDatasourceList: se, stateKey: D, onCreate: O, isDemoDatasource: k, isOpenInNewTab: ce, noDataProps: A }) => {
1606
+ let j = ya(), [M, le] = K(s), [ue, de] = K(""), [N, P] = K(""), fe = (e) => {
1607
1607
  if (S) switch (S) {
1608
1608
  case "DASHBOARD":
1609
1609
  case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${C?.workspaceId}${C?.dataMartId ? `&dmId=${C?.dataMartId}` : ""}${e?.createdBy ? `&createdByClient=${e?.createdBy}` : ""}`;
@@ -2209,7 +2209,7 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2209
2209
  message: r,
2210
2210
  subText: oe,
2211
2211
  children: ae,
2212
- ...j
2212
+ ...A
2213
2213
  })
2214
2214
  }) : null,
2215
2215
  !c && (t.length || D) ? /* @__PURE__ */ J("table", {
@@ -2240,17 +2240,17 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2240
2240
  }, t.name)) })
2241
2241
  }), /* @__PURE__ */ q("tbody", {
2242
2242
  className: V.body,
2243
- children: (h ? t : t.slice(0, ce))?.map((t, r) => /* @__PURE__ */ q("tr", {
2243
+ children: (h ? t : t.slice(0, M))?.map((t, r) => /* @__PURE__ */ q("tr", {
2244
2244
  "data-testid": `row-${t?.name ?? t?.metric?.name ?? t?.companyRole?.name ?? t?.email?.split("@")?.[0]}`,
2245
2245
  className: `${V[`row-${n}`]} ${S || ne || re || E ? "dbn:cursor-pointer" : ""}`,
2246
2246
  onClick: (e) => {
2247
2247
  ne && ne(t), E && E(t);
2248
2248
  let n = fe(t);
2249
- n && ((e.ctrlKey || e.metaKey) && A ? window.open(n, "_blank") : D ? M(n, { state: { [D]: t } }) : M(n));
2249
+ n && ((e.ctrlKey || e.metaKey) && ce ? window.open(n, "_blank") : D ? j(n, { state: { [D]: t } }) : j(n));
2250
2250
  },
2251
2251
  onContextMenu: (e) => {
2252
2252
  let n = fe(t);
2253
- n && A && (e.preventDefault(), window.open(n, "_blank"));
2253
+ n && ce && (e.preventDefault(), window.open(n, "_blank"));
2254
2254
  },
2255
2255
  "data-test-title": "table-rows",
2256
2256
  onMouseOver: () => re?.(t),
@@ -2322,7 +2322,7 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2322
2322
  })]
2323
2323
  }) : null,
2324
2324
  !c && t.length === 0 && D ? /* @__PURE__ */ q(dr, { children: pe() }) : null,
2325
- t.length > ce && !h ? /* @__PURE__ */ q("div", {
2325
+ t.length > M && !h ? /* @__PURE__ */ q("div", {
2326
2326
  className: V.loadMore,
2327
2327
  children: /* @__PURE__ */ J(b, {
2328
2328
  type: "button",
@@ -2494,12 +2494,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2494
2494
  enableColumnResizing: !0,
2495
2495
  columnResizeMode: "onChange",
2496
2496
  onColumnSizingChange: re
2497
- }), k = O.getSortedRowModel().rows, A = Gn({
2497
+ }), k = O.getSortedRowModel().rows, ce = Gn({
2498
2498
  count: k.length,
2499
2499
  getScrollElement: () => ie.current,
2500
2500
  estimateSize: () => zo(r),
2501
2501
  overscan: 12
2502
- }), j = A.getVirtualItems(), M = j.length ? j[0].start : 0, ce = j.length ? A.getTotalSize() - j[j.length - 1].end : 0, le = O.getVisibleLeafColumns().length || 1;
2502
+ }), A = ce.getVirtualItems(), j = A.length ? A[0].start : 0, M = A.length ? ce.getTotalSize() - A[A.length - 1].end : 0, le = O.getVisibleLeafColumns().length || 1;
2503
2503
  U(() => {
2504
2504
  O.getIsSomeColumnsVisible() && o?.();
2505
2505
  }, [O.getIsSomeColumnsVisible()]);
@@ -2522,18 +2522,18 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2522
2522
  children: /* @__PURE__ */ q("table", {
2523
2523
  className: Q.table,
2524
2524
  children: /* @__PURE__ */ J("tbody", { children: [
2525
- M > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2525
+ j > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2526
2526
  colSpan: le,
2527
2527
  style: {
2528
- height: `${M}px`,
2528
+ height: `${j}px`,
2529
2529
  padding: 0,
2530
2530
  border: 0
2531
2531
  }
2532
2532
  }) }) : null,
2533
- j?.map((e) => {
2533
+ A?.map((e) => {
2534
2534
  let t = k[e.index];
2535
2535
  return t ? /* @__PURE__ */ q("tr", {
2536
- ref: A.measureElement,
2536
+ ref: ce.measureElement,
2537
2537
  "data-index": e.index,
2538
2538
  "data-testid": `table-row-${t.id}`,
2539
2539
  style: p?.click ? { cursor: "pointer" } : void 0,
@@ -2634,10 +2634,10 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2634
2634
  })
2635
2635
  }, t.id) : null;
2636
2636
  }),
2637
- ce > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2637
+ M > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2638
2638
  colSpan: le,
2639
2639
  style: {
2640
- height: `${ce}px`,
2640
+ height: `${M}px`,
2641
2641
  padding: 0,
2642
2642
  border: 0
2643
2643
  }
@@ -3060,7 +3060,7 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3060
3060
  rr(e);
3061
3061
  }
3062
3062
  }
3063
- }, ls = sr(async () => (await import("./echarts-GGpZSeR_.mjs"), { default: cs })), us = or((e, t) => /* @__PURE__ */ q(x, {
3063
+ }, ls = sr(async () => (await import("./echarts-YvdpwAXr.mjs"), { default: cs })), us = or((e, t) => /* @__PURE__ */ q(x, {
3064
3064
  surface: "chart",
3065
3065
  fallback: /* @__PURE__ */ q(tr, {}),
3066
3066
  children: /* @__PURE__ */ q(ls, {
@@ -3110,7 +3110,7 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3110
3110
  })]
3111
3111
  })]
3112
3112
  });
3113
- }, fs = sr(async () => ({ default: (await import("./Table-yiT9hOaS.mjs").then((e) => e.n)).Table })), ps = sr(async () => ({ default: (await import("./HorizontalStackTable-yf-l8lvj.mjs")).HorizontalStackTable })), ms = sr(async () => ({ default: (await import("./PivotTable-5UaGFGcV.mjs")).default })), hs = sr(async () => ({ default: (await import("./PivotTableV2-D9Lj9nWq.mjs")).PivotTableV2 })), gs = sr(() => import("./PivotTableV3--m_-X-4T.mjs")), _s = ({ children: e, surface: t }) => /* @__PURE__ */ q(x, {
3113
+ }, fs = sr(async () => ({ default: (await import("./Table-CU_DPx7I.mjs").then((e) => e.n)).Table })), ps = sr(async () => ({ default: (await import("./HorizontalStackTable-BYQaEbea.mjs")).HorizontalStackTable })), ms = sr(async () => ({ default: (await import("./PivotTable-5UaGFGcV.mjs")).default })), hs = sr(async () => ({ default: (await import("./PivotTableV2-CXcYGUEl.mjs")).PivotTableV2 })), gs = sr(() => import("./PivotTableV3-9ZxfPQvr.mjs")), _s = ({ children: e, surface: t }) => /* @__PURE__ */ q(x, {
3114
3114
  surface: t,
3115
3115
  fallback: /* @__PURE__ */ J("div", {
3116
3116
  className: "dbn:flex dbn:h-full dbn:min-h-32 dbn:items-center dbn:justify-center",
@@ -3267,9 +3267,9 @@ var ws = (e, t, n, r, i) => {
3267
3267
  t?.suffix,
3268
3268
  h,
3269
3269
  _
3270
- ]), D = G(null), O = G({ maxFraction: .6 }), k = typeof t?.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? Math.min(96, Math.max(30, t.fontSize)) : void 0, A = W(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3271
- O.current = { maxFraction: A ? .42 : .6 };
3272
- let j = W(() => Cs(o), [o]), M = j !== "none", ce = M && !!s, le = W(() => M ? ce ? {
3270
+ ]), D = G(null), O = G({ maxFraction: .6 }), k = typeof t?.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? Math.min(96, Math.max(30, t.fontSize)) : void 0, ce = W(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3271
+ O.current = { maxFraction: ce ? .42 : .6 };
3272
+ let A = W(() => Cs(o), [o]), j = A !== "none", M = j && !!s, le = W(() => j ? M ? {
3273
3273
  value: "50%",
3274
3274
  comparison: "18%",
3275
3275
  trend: "32%"
@@ -3281,7 +3281,7 @@ var ws = (e, t, n, r, i) => {
3281
3281
  value: "100%",
3282
3282
  comparison: "0%",
3283
3283
  trend: "0%"
3284
- }, [M, ce]);
3284
+ }, [j, M]);
3285
3285
  U(() => {
3286
3286
  let e = S.current, t = C.current;
3287
3287
  if (!e || !t) return;
@@ -3304,7 +3304,7 @@ var ws = (e, t, n, r, i) => {
3304
3304
  ae,
3305
3305
  oe,
3306
3306
  se,
3307
- A,
3307
+ ce,
3308
3308
  le.value
3309
3309
  ]);
3310
3310
  let { alignmentClass: ue, subAlignmentClass: de } = W(() => {
@@ -3320,7 +3320,7 @@ var ws = (e, t, n, r, i) => {
3320
3320
  children: [
3321
3321
  /* @__PURE__ */ J("div", {
3322
3322
  ref: S,
3323
- className: `${$.valueContainer} ${A ? "dbn:mt-1 dbn:justify-start" : ""} ${ue} `,
3323
+ className: `${$.valueContainer} ${ce ? "dbn:mt-1 dbn:justify-start" : ""} ${ue} `,
3324
3324
  onContextMenu: (e) => e.preventDefault(),
3325
3325
  style: {
3326
3326
  background: t?.metricCardColor || "",
@@ -3344,7 +3344,7 @@ var ws = (e, t, n, r, i) => {
3344
3344
  ae,
3345
3345
  se
3346
3346
  ]
3347
- }), A && /* @__PURE__ */ q("div", {
3347
+ }), ce && /* @__PURE__ */ q("div", {
3348
3348
  className: `dbn:w-full dbn:flex dbn:flex-col ${de}`,
3349
3349
  children: /* @__PURE__ */ q(l, {
3350
3350
  text: t?.displayText,
@@ -3364,7 +3364,7 @@ var ws = (e, t, n, r, i) => {
3364
3364
  })
3365
3365
  })]
3366
3366
  }),
3367
- M && /* @__PURE__ */ J("div", {
3367
+ j && /* @__PURE__ */ J("div", {
3368
3368
  className: $.comparisonDiv,
3369
3369
  style: {
3370
3370
  background: t?.metricCardColor || "",
@@ -3379,17 +3379,17 @@ var ws = (e, t, n, r, i) => {
3379
3379
  className: $.comparisonValue,
3380
3380
  children: /* @__PURE__ */ J("span", {
3381
3381
  style: E,
3382
- className: j === "flat" ? $.comparisonPeriod : j === "up" ? t?.upVariant && t?.upVariant === "danger" ? $.negativeComparisonText : $.positiveComparisonText : t?.downVariant && t?.downVariant === "success" ? $.positiveComparisonText : $.negativeComparisonText,
3382
+ className: A === "flat" ? $.comparisonPeriod : A === "up" ? t?.upVariant && t?.upVariant === "danger" ? $.negativeComparisonText : $.positiveComparisonText : t?.downVariant && t?.downVariant === "success" ? $.positiveComparisonText : $.negativeComparisonText,
3383
3383
  "data-testid": "legacy-kpi-comparison",
3384
- "data-comparison-reading": j,
3384
+ "data-comparison-reading": A,
3385
3385
  children: [
3386
- j === "up" && /* @__PURE__ */ q(m, {
3386
+ A === "up" && /* @__PURE__ */ q(m, {
3387
3387
  name: "arrow-up-2",
3388
3388
  color: t?.upVariant === "danger" ? "warning-badge-txt" : "success-badge-txt",
3389
3389
  width: re,
3390
3390
  height: re
3391
3391
  }),
3392
- j === "down" && /* @__PURE__ */ q(m, {
3392
+ A === "down" && /* @__PURE__ */ q(m, {
3393
3393
  name: "arrow-down-2",
3394
3394
  color: t?.downVariant === "success" ? "success-badge-txt" : "warning-badge-txt",
3395
3395
  width: re,
@@ -3402,7 +3402,7 @@ var ws = (e, t, n, r, i) => {
3402
3402
  })
3403
3403
  })]
3404
3404
  }),
3405
- ce && /* @__PURE__ */ q("div", {
3405
+ M && /* @__PURE__ */ q("div", {
3406
3406
  ref: w,
3407
3407
  style: {
3408
3408
  width: "100%",
@@ -3594,15 +3594,15 @@ var ws = (e, t, n, r, i) => {
3594
3594
  notMerge: Vs(r.chartType),
3595
3595
  opts: c
3596
3596
  });
3597
- }, (e, t) => !(e.chartHeight !== t.chartHeight || e.hasDecreasedHeight !== t.hasDecreasedHeight || e.className !== t.className || e.options !== t.options || e.renderOpts !== t.renderOpts || e.onEvents !== t.onEvents || !Us(e.config, t.config) || !Us(e.chartOptions, t.chartOptions))), qs = ir.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: o, config: l, className: d, isShowFullScreen: f, isShowFullScreenEnabled: p, metricId: m, sortOrder: g, onMaximize: v, onDrillPivotTable: y, pivotDrillState: ee, isPythonMode: S, seriesName: T = "", isSortReversed: te, chartHeight: E, chartAppearance: M, metricCardColor: ce, isMetricCard: ue, isDashboard: N, externalGlobalFilter: P, setExternalGlobalFilter: he, variables: _e, language: be, translationDictionary: xe, setHoverSubHeader: Se, drilldownCols: Ce, isEnableDrillDown: we, dateFilter: Te, chartFontSettings: Ee, downloadData: De, isDownloading: Oe, generatingPdf: ke }) => {
3598
- let F = W(() => ie(Gs(e, t), t), [e, t]), [I, Ae] = K(null), [je, Me] = K(null), Ne = ur(j, le, le), Pe = cr((e) => {
3597
+ }, (e, t) => !(e.chartHeight !== t.chartHeight || e.hasDecreasedHeight !== t.hasDecreasedHeight || e.className !== t.className || e.options !== t.options || e.renderOpts !== t.renderOpts || e.onEvents !== t.onEvents || !Us(e.config, t.config) || !Us(e.chartOptions, t.chartOptions))), qs = ir.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: o, config: l, className: d, isShowFullScreen: f, isShowFullScreenEnabled: p, metricId: m, sortOrder: g, onMaximize: v, onDrillPivotTable: y, pivotDrillState: ee, isPythonMode: S, seriesName: T = "", isSortReversed: te, chartHeight: E, chartAppearance: j, metricCardColor: M, isMetricCard: ue, isDashboard: N, externalGlobalFilter: P, setExternalGlobalFilter: he, variables: _e, language: be, translationDictionary: xe, setHoverSubHeader: Se, drilldownCols: Ce, isEnableDrillDown: we, dateFilter: Te, chartFontSettings: Ee, downloadData: De, isDownloading: Oe, generatingPdf: ke }) => {
3598
+ let F = W(() => ce(Gs(e, t), t), [e, t]), [I, Ae] = K(null), [je, Me] = K(null), Ne = ur(A, le, le), Pe = cr((e) => {
3599
3599
  Ae((t) => t === e ? t : e);
3600
- }, []), [Fe, Ie] = K(() => ae(null));
3600
+ }, []), [Fe, Ie] = K(() => ie(null));
3601
3601
  lr(() => {
3602
- Ie(ae(I));
3602
+ Ie(ie(I));
3603
3603
  }, [I]);
3604
3604
  let L = W(() => Fe ? D({
3605
- mapping: A(F, t),
3605
+ mapping: re(F, t),
3606
3606
  chartOptions: F,
3607
3607
  rows: t,
3608
3608
  enabled: ge()
@@ -3612,7 +3612,7 @@ var ws = (e, t, n, r, i) => {
3612
3612
  t
3613
3613
  ]), Le = L ? ge() : !1, Re = W(() => {
3614
3614
  if (!L) return null;
3615
- let e = re(ei(M, F), {
3615
+ let e = ae(ei(j, F), {
3616
3616
  ...se(F.customSettings),
3617
3617
  tooltipSettings: ne(F?.tooltipSettings, Ee?.tooltip),
3618
3618
  categoryField: L?.type === "gaugeV2" ? null : F?.xAxis,
@@ -3625,7 +3625,7 @@ var ws = (e, t, n, r, i) => {
3625
3625
  return k(e, oe(L.data, Le));
3626
3626
  }, [
3627
3627
  L,
3628
- M,
3628
+ j,
3629
3629
  F,
3630
3630
  Ee?.tooltip,
3631
3631
  Le
@@ -3660,11 +3660,11 @@ var ws = (e, t, n, r, i) => {
3660
3660
  geoJsonData: He,
3661
3661
  isPythonMode: S,
3662
3662
  chartHeight: E,
3663
- chartAppearance: M,
3663
+ chartAppearance: j,
3664
3664
  chartRef: Ke,
3665
3665
  chartGridWidth: Xe,
3666
3666
  chartWidth: Qe,
3667
- metricCardColor: ce,
3667
+ metricCardColor: M,
3668
3668
  language: be,
3669
3669
  translationDictionary: xe,
3670
3670
  drilldownCols: Ce,
@@ -3683,11 +3683,11 @@ var ws = (e, t, n, r, i) => {
3683
3683
  T,
3684
3684
  te,
3685
3685
  E,
3686
- M,
3686
+ j,
3687
3687
  Ke,
3688
3688
  Xe,
3689
3689
  Qe,
3690
- ce,
3690
+ M,
3691
3691
  xe,
3692
3692
  be,
3693
3693
  Ce,
@@ -4072,7 +4072,7 @@ var ws = (e, t, n, r, i) => {
4072
4072
  height: e.getHeight?.() || 0
4073
4073
  },
4074
4074
  legendSettings: F?.legendSettings,
4075
- legendAppearance: M?.chartLegend,
4075
+ legendAppearance: j?.chartLegend,
4076
4076
  outsideLabels: !0
4077
4077
  }) ?? t), dt(t);
4078
4078
  }, 100);
@@ -4085,7 +4085,7 @@ var ws = (e, t, n, r, i) => {
4085
4085
  Ct,
4086
4086
  Tt,
4087
4087
  Dt,
4088
- M?.chartLegend
4088
+ j?.chartLegend
4089
4089
  ]), U(() => {
4090
4090
  if (L || !z || (Vt.current &&= (clearInterval(Vt.current), void 0), F.chartType !== h.geoBarMap)) return;
4091
4091
  let e = Ke.current;
@@ -2,14 +2,14 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { c as e } from "./cardStates-pxkuDK8H.mjs";
5
- import { fn as t, rn as n } from "./pluginV3Request-BVxZrR4v.mjs";
6
- import { K as r, W as i, ct as a, et as o, ot as s } from "./metric.mutation-BgklcDqd.mjs";
7
- import { $ as c, $a as l, A as u, Dt as d, F as f, H as p, Ha as m, I as h, Ka as g, L as _, M as v, N as y, P as b, R as x, Sr as S, Ta as C, Tt as w, V as T, Va as E, Xn as D, Ya as O, Zn as k, b as A, ct as j, d as M, dt as ee, eo as N, f as P, gr as F, ht as te, j as I, jn as ne, la as L, li as R, n as re, p as ie, pa as ae, qa as oe, rt as se, so as z, ta as ce, v as le, wt as ue, y as de, yr as fe } from "./Portal-BsPkfI4N.mjs";
8
- import { r as pe } from "./timeseries-BAn41226.mjs";
9
- import { c as me, d as he, l as ge, n as _e, p as ve, r as ye, t as B } from "./RadioButton-BpO_7LIW.mjs";
10
- import { t as be } from "./useGuesTokenUsageLog-Cgj9filf.mjs";
11
- import { t as xe } from "./NoDataFound-BINw6Y12.mjs";
12
- import { t as Se } from "./Panel-DzPYLDDl.mjs";
5
+ import { fn as t, rn as n } from "./pluginV3Request-vedxVBZb.mjs";
6
+ import { K as r, W as i, ct as a, et as o, ot as s } from "./metric.mutation-CpTlOouC.mjs";
7
+ import { $ as c, $a as l, A as u, Dt as d, F as f, H as p, Ha as m, I as h, Ka as g, L as _, M as v, N as y, P as b, R as x, Sr as S, Ta as C, Tt as w, V as T, Va as E, Xn as D, Ya as O, Zn as k, b as A, ct as j, d as M, dt as ee, eo as N, f as P, gr as F, ht as te, j as I, jn as ne, la as L, li as R, n as re, p as ie, pa as ae, qa as oe, rt as se, so as z, ta as ce, v as le, wt as ue, y as de, yr as fe } from "./Portal-rrOaB4Bd.mjs";
8
+ import { r as pe } from "./timeseries-zAu_-AJo.mjs";
9
+ import { c as me, d as he, l as ge, n as _e, p as ve, r as ye, t as B } from "./RadioButton-CdjohtqA.mjs";
10
+ import { t as be } from "./useGuesTokenUsageLog-CbjKeY_o.mjs";
11
+ import { t as xe } from "./NoDataFound-DtuATv-f.mjs";
12
+ import { t as Se } from "./Panel-BCuB-6P0.mjs";
13
13
  import { t as V } from "./Switch-CqsadJBs.mjs";
14
14
  import H, { useCallback as U, useEffect as W, useMemo as G, useRef as Ce, useState as K } from "react";
15
15
  import { createRoot as we } from "react-dom/client";
@@ -1,9 +1,9 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { $ as e, Bt as t, Ft as n, It as r, Kr as i, Mr as a, Mt as o, Nr as s, Pt as ee, R as c, Ri as l, Rt as te, Sr as u, Ui as d, Vt as ne, Yn as re, Yr as f, _t as ie, b as p, eo as m, jt as ae, o as oe, p as se, pt as ce, qr as h, si as le, zt as ue } from "./Portal-BsPkfI4N.mjs";
4
+ import { $ as e, Bt as t, Ft as n, It as r, Kr as i, Mr as a, Mt as o, Nr as s, Pt as ee, R as c, Ri as l, Rt as te, Sr as u, Ui as d, Vt as ne, Yn as re, Yr as f, _t as ie, b as p, eo as m, jt as ae, o as oe, p as se, pt as ce, qr as h, si as le, zt as ue } from "./Portal-rrOaB4Bd.mjs";
5
5
  import { t as g } from "./Switch-CqsadJBs.mjs";
6
- import { r as de, t as _ } from "./createGlobalFilter.module-C-vtJ58v.mjs";
6
+ import { r as de, t as _ } from "./createGlobalFilter.module-CBdoZ9am.mjs";
7
7
  import { useEffect as fe, useMemo as v, useState as y } from "react";
8
8
  import { Fragment as pe, jsx as b, jsxs as x } from "react/jsx-runtime";
9
9
  //#region src/components/CreateGlobalFilter/CreateGlobalFilter.tsx
@@ -2,18 +2,18 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { n as e } from "./cardStates-pxkuDK8H.mjs";
5
- import { dn as t, g as n, on as r } from "./pluginV3Request-BVxZrR4v.mjs";
6
- import { K as i } from "./metric.mutation-BgklcDqd.mjs";
7
- import { $a as a, Fr as o, Ji as s, Pi as c, Rr as l, Ua as u, Va as d, Yt as f, _ as p, _i as m, _r as h, ea as g, g as _, gi as v, h as y, hi as b, ji as x, la as S, m as C, nn as w, u as T, vi as E, yi as D } from "./Portal-BsPkfI4N.mjs";
8
- import { i as O, o as ee, s as te, u as ne } from "./toTasteAppearance-DBN4QaIw.mjs";
5
+ import { dn as t, g as n, on as r } from "./pluginV3Request-vedxVBZb.mjs";
6
+ import { K as i } from "./metric.mutation-CpTlOouC.mjs";
7
+ import { $a as a, Fr as o, Ji as s, Pi as c, Rr as l, Ua as u, Va as d, Yt as f, _ as p, _i as m, _r as h, ea as g, g as _, gi as v, h as y, hi as b, ji as x, la as S, m as C, nn as w, u as T, vi as E, yi as D } from "./Portal-rrOaB4Bd.mjs";
8
+ import { d as O, i as ee, o as te, s as ne } from "./toTasteAppearance-B4_PDCSX.mjs";
9
9
  import { n as k } from "./charts-BzunXCJW.mjs";
10
- import { T as A, t as j, v as M, y as N } from "./ChartTypePanel-CeV5M5SQ.mjs";
11
- import { j as P, l as F, s as re, t as ie } from "./permissions-D0tFL379.mjs";
12
- import { a as ae } from "./RadioButton-BpO_7LIW.mjs";
13
- import { a as I, c as L, i as R, l as oe, n as z, o as se, r as ce, t as le } from "./SortPanel-B0doOUAt.mjs";
14
- import { n as ue } from "./Accordion-DLMkpjMx.mjs";
10
+ import { T as A, t as j, v as M, y as N } from "./ChartTypePanel-DUwZ5B-_.mjs";
11
+ import { j as P, l as F, s as re, t as ie } from "./permissions-tSNA3qFl.mjs";
12
+ import { a as ae } from "./RadioButton-CdjohtqA.mjs";
13
+ import { a as I, c as L, i as R, l as oe, n as z, o as se, r as ce, t as le } from "./SortPanel-C5iHNq2W.mjs";
14
+ import { n as ue } from "./Accordion-B1HmpZ2P.mjs";
15
15
  import { t as B } from "./createLucideIcon-C-N26TaJ.mjs";
16
- import { B as de, C as fe, E as pe, H as me, I as he, L as ge, M as _e, P as ve, R as ye, S as be, T as xe, U as Se, V as Ce, _ as we, b as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, l as V, m as je, o as Me, p as Ne, r as H, s as Pe, u as U, v as W, w as Fe, x as Ie, y as Le, z as Re } from "./CardChartSlot-Cyksn0_m.mjs";
16
+ import { B as de, C as fe, E as pe, H as me, I as he, L as ge, M as _e, P as ve, R as ye, S as be, T as xe, U as Se, V as Ce, _ as we, b as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, l as V, m as je, o as Me, p as Ne, r as H, s as Pe, u as U, v as W, w as Fe, x as Ie, y as Le, z as Re } from "./CardChartSlot-BIIjmHsu.mjs";
17
17
  import { a as ze, c as G, d as Be, f as Ve, g as He, h as Ue, i as We, l as Ge, m as Ke, n as qe, o as Je, p as Ye, r as K, s as Xe, t as q, u as Ze } from "./qaSelectors-CqSLYZ9l.mjs";
18
18
  import { A as Qe, B as $e, E as et, O as tt, T as nt, k as rt, t as it, w as at } from "./dist-DIlFLbj5.mjs";
19
19
  import { n as ot, t as st } from "./x-DDC7VFx5.mjs";
@@ -2754,7 +2754,7 @@ var wa = ({ rows: e, qaEntity: t }) => {
2754
2754
  }) : null
2755
2755
  ]
2756
2756
  });
2757
- }, Ta = Y.lazy(async () => ({ default: (await import("./charts-BzunXCJW.mjs").then((e) => e.t)).DbnChart })), Ea = Y.lazy(async () => ({ default: (await import("./Chart-2_umaljI.mjs").then((e) => e.n)).Chart })), Da = Object.freeze({
2757
+ }, Ta = Y.lazy(async () => ({ default: (await import("./charts-BzunXCJW.mjs").then((e) => e.t)).DbnChart })), Ea = Y.lazy(async () => ({ default: (await import("./Chart-BcmkjXMD.mjs").then((e) => e.n)).Chart })), Da = Object.freeze({
2758
2758
  isLoading: !1,
2759
2759
  error: "",
2760
2760
  data: [],
@@ -2804,13 +2804,13 @@ var ja = ({ data: e, isLoading: t, error: n, errorView: r, chartSettings: i, dim
2804
2804
  let k = E ? e : D.current?.rows, A = E ? i : D.current?.settings ?? i, j = !!k && k.length > 0, M = Y.useMemo(() => ({
2805
2805
  ...A,
2806
2806
  chartColors: f ?? A?.chartColors
2807
- }), [A, f]), N = Y.useMemo(() => !j || Aa(i.chartType) ? null : ne(M, k), [
2807
+ }), [A, f]), N = Y.useMemo(() => !j || Aa(i.chartType) ? null : O(M, k), [
2808
2808
  j,
2809
2809
  i.chartType,
2810
2810
  M,
2811
2811
  k
2812
- ]), P = Y.useMemo(() => O(p, {
2813
- ...ee(M?.customSettings),
2812
+ ]), P = Y.useMemo(() => ee(p, {
2813
+ ...te(M?.customSettings),
2814
2814
  tooltipSettings: M?.tooltipSettings,
2815
2815
  categoryField: N?.type === "gaugeV2" ? null : M?.xAxis,
2816
2816
  chartZoom: M?.customSettings?.chartZoom,
@@ -2821,7 +2821,7 @@ var ja = ({ data: e, isLoading: t, error: n, errorView: r, chartSettings: i, dim
2821
2821
  p,
2822
2822
  M,
2823
2823
  N?.type
2824
- ]), F = Y.useMemo(() => Aa(i.chartType) ? void 0 : te(M), [i.chartType, M]), [re, ie] = Y.useState(null), ae = Me(re), I = a.map((e) => e.label || e.alias || e.name), L = j && c && I.length > 0 && !ka.has(i.chartType), R = {
2824
+ ]), F = Y.useMemo(() => Aa(i.chartType) ? void 0 : ne(M), [i.chartType, M]), [re, ie] = Y.useState(null), ae = Me(re), I = a.map((e) => e.label || e.alias || e.name), L = j && c && I.length > 0 && !ka.has(i.chartType), R = {
2825
2825
  customMessages: g,
2826
2826
  translationDictionary: _,
2827
2827
  selectedLanguage: v
@@ -1,11 +1,11 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { $ as e, Ct as t, Di as n, Qr as r, R as i, Sr as a, St as o, eo as s, qi as c, so as l } from "./Portal-BsPkfI4N.mjs";
5
- import { f as u, u as d } from "./timeseries-BAn41226.mjs";
4
+ import { $ as e, Ct as t, Di as n, Qr as r, R as i, Sr as a, St as o, eo as s, qi as c, so as l } from "./Portal-rrOaB4Bd.mjs";
5
+ import { f as u, u as d } from "./timeseries-zAu_-AJo.mjs";
6
6
  import "./No_data-BIO-IPxg.mjs";
7
7
  import { a as f, i as p, n as m, o as h, r as g, s as ee, t as te } from "./dist-DHNl58qD.mjs";
8
- import { t as _ } from "./conditionalFormatting-BfWx4ldB.mjs";
8
+ import { t as _ } from "./conditionalFormatting-Dr6Ko980.mjs";
9
9
  import { t as ne } from "./tableAriaRowModel-DyPIF2Fa.mjs";
10
10
  import { t as re } from "./Loader-CHJMbWv0.mjs";
11
11
  import { memo as v, useEffect as y, useMemo as b, useState as x } from "react";
@@ -1,15 +1,15 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { Ot as e } from "./pluginV3Request-BVxZrR4v.mjs";
4
+ import { Ot as e } from "./pluginV3Request-vedxVBZb.mjs";
5
5
  import { t } from "./loading-state-C-J1F-xq.mjs";
6
- import { t as n } from "./useGuesTokenUsageLog-Cgj9filf.mjs";
6
+ import { t as n } from "./useGuesTokenUsageLog-CbjKeY_o.mjs";
7
7
  import { t as r } from "./createLucideIcon-C-N26TaJ.mjs";
8
8
  import { a as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, o as f, p, s as m, u as h } from "./qaSelectors-CqSLYZ9l.mjs";
9
9
  import { B as g } from "./dist-DIlFLbj5.mjs";
10
10
  import { n as _ } from "./x-DDC7VFx5.mjs";
11
11
  import { t as v } from "./dist-C0uxSp1k.mjs";
12
- import { n as y, r as b, t as x } from "./usePublishArchivedMetrics-ix_1Nf_o.mjs";
12
+ import { n as y, r as b, t as x } from "./usePublishArchivedMetrics-vrjAvHIS.mjs";
13
13
  import * as S from "react";
14
14
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
15
15
  var T = r("chart-area", [["path", {