@databrainhq/plugin 0.17.9-beta.30 → 0.17.9-beta.31

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 (42) hide show
  1. package/dist/{Accordion-D3DbH3Cx.mjs → Accordion-BhLebRAm.mjs} +32 -25
  2. package/dist/{Chart-7AGA9h2g.mjs → Chart-BLXiGOie.mjs} +361 -361
  3. package/dist/{CreateGlobalFilter-oHjA0P9O.mjs → CreateGlobalFilter-DJ75cI8r.mjs} +200 -200
  4. package/dist/{CreateMetricV2-BGDt9B3L.mjs → CreateMetricV2-DNSbMIqg.mjs} +20 -20
  5. package/dist/{DraggableItem-7fQUo0x4.mjs → DraggableItem-HJ4Wt8qx.mjs} +11 -11
  6. package/dist/{HorizontalStackTable-CH68bWy3.mjs → HorizontalStackTable-DadBH16u.mjs} +17 -17
  7. package/dist/{ManageMetricsV2-tyQYXoAT.mjs → ManageMetricsV2-DQ0F-Sxo.mjs} +3 -3
  8. package/dist/{MetricCardV2-C2n6LzkA.mjs → MetricCardV2-ndXX9kcc.mjs} +1251 -1170
  9. package/dist/{NoDataFound-N3gF0Pse.mjs → NoDataFound-C6lIIOZF.mjs} +1 -1
  10. package/dist/{NoDataState-C6hX-CHr.mjs → NoDataState-Dx5ksEt-.mjs} +2 -2
  11. package/dist/{Panel-BeWefwKs.mjs → Panel-oW--_1YF.mjs} +1 -1
  12. package/dist/{PivotTableV2-De4TXsMc.mjs → PivotTableV2-BufQEGso.mjs} +2 -2
  13. package/dist/{PivotTableV3-2nzDp4Nc.mjs → PivotTableV3-DwleqfW7.mjs} +4 -4
  14. package/dist/{Portal-C4N01WKg.mjs → Portal-CuJ3yA9x.mjs} +1222 -1200
  15. package/dist/{RadioButton-DvzkXfzO.mjs → RadioButton-BagXnWOk.mjs} +1 -1
  16. package/dist/{ScheduleEmail-PEzbadHC.mjs → ScheduleEmail-C_H0_DNM.mjs} +220 -220
  17. package/dist/{SearchMetricData-CxmDM20t.mjs → SearchMetricData-DPWkvX0c.mjs} +237 -237
  18. package/dist/{SortPanel-DQjM_vyk.mjs → SortPanel-DctP-Eyd.mjs} +110 -110
  19. package/dist/{Table-CvDTChaZ.mjs → Table-BSKvdU4q.mjs} +4 -4
  20. package/dist/{TagInputField-C9M_Ip9e.mjs → TagInputField-B09tGuSM.mjs} +6 -6
  21. package/dist/{TextAreaField-Q78INHKO.mjs → TextAreaField-CLmioFXe.mjs} +113 -113
  22. package/dist/{TimeSeriesSettings-C8lvzgja.mjs → TimeSeriesSettings-BS9LodDk.mjs} +2 -2
  23. package/dist/{cardQueryError-3MGl4pbM.mjs → cardQueryError-Jo2LkSBF.mjs} +810 -790
  24. package/dist/{chevron-down-Dxhk-Tao.mjs → chevron-down-CTH4bR6n.mjs} +107 -106
  25. package/dist/{conditionalFormatting-BuG_4wOq.mjs → conditionalFormatting-BU6BaaPb.mjs} +1 -1
  26. package/dist/{createGlobalFilter.module-DisUwLsO.mjs → createGlobalFilter.module-Cw_A7yeo.mjs} +1 -1
  27. package/dist/data.cjs +1 -1
  28. package/dist/data.mjs +1 -1
  29. package/dist/{echarts-BE7AhqVy.mjs → echarts-Dw5Z2Ho-.mjs} +2 -2
  30. package/dist/{metric.mutation-BRWn1UMi.mjs → metric.mutation-cOoqy5Bi.mjs} +1 -1
  31. package/dist/{permissions-B5UHxn_4.mjs → permissions-CxZW60Bd.mjs} +289 -261
  32. package/dist/{pluginV3Request-Dfy8fkbS.mjs → pluginV3Request-CQzo3G0-.mjs} +1 -1
  33. package/dist/{renderer-qB-6Euan.mjs → renderer-D1fTygev.mjs} +1 -1
  34. package/dist/{timeseries-Clp-TrGQ.mjs → timeseries-D_nzmvUF.mjs} +1347 -1304
  35. package/dist/{toTasteAppearance-cIHX7fPm.mjs → toTasteAppearance-C4jy9fG3.mjs} +1 -1
  36. package/dist/{useGuesTokenUsageLog-BtooXte_.mjs → useGuesTokenUsageLog-BgjAaf3E.mjs} +1 -1
  37. package/dist/{usePublishArchivedMetrics-CM4KQARj.mjs → usePublishArchivedMetrics-CM7fUNzL.mjs} +2 -2
  38. package/dist/{useQuery-D3fpbSfw.mjs → useQuery-DhtsBbBi.mjs} +1 -1
  39. package/dist/webcomponents.css +2 -2
  40. package/dist/webcomponents.es.js +483 -459
  41. package/dist/webcomponents.umd.js +153 -153
  42. package/package.json +1 -1
@@ -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-DiUMQ7_o.mjs";
5
- import { dn as t, g as n, on as r } from "./pluginV3Request-Dfy8fkbS.mjs";
6
- import { K as i } from "./metric.mutation-BRWn1UMi.mjs";
7
- import { Cr as a, Ea as o, Fa as s, Gt as c, Ni as l, Ri as u, V as d, br as f, ei as p, gi as m, ii as h, ni as g, qi as _, ri as v, sr as y, ti as b, wa as x, yi as S } from "./Portal-C4N01WKg.mjs";
5
+ import { dn as t, g as n, on as r } from "./pluginV3Request-CQzo3G0-.mjs";
6
+ import { K as i } from "./metric.mutation-cOoqy5Bi.mjs";
7
+ import { Cr as a, Ea as o, Fa as s, Gt as c, Ni as l, Ri as u, V as d, br as f, ei as p, gi as m, ii as h, ni as g, nr as _, qi as v, ri as y, ti as b, wa as x, yi as S } from "./Portal-CuJ3yA9x.mjs";
8
8
  import { n as C } from "./charts-BHJis_Jc.mjs";
9
- import { i as w, n as T, o as E, r as D, t as ee } from "./chevron-down-Dxhk-Tao.mjs";
10
- import { E as te, t as O, v as k, w as A, y as j } from "./TextAreaField-Q78INHKO.mjs";
11
- import { i as M, n as N, o as P, t as ne } from "./permissions-B5UHxn_4.mjs";
12
- import { a as re } from "./RadioButton-DvzkXfzO.mjs";
13
- import { a as F, c as I, i as L, l as ie, n as R, o as ae, r as z, t as oe } from "./SortPanel-DQjM_vyk.mjs";
14
- import { n as B } from "./Accordion-D3DbH3Cx.mjs";
9
+ import { i as w, n as T, o as E, r as D, t as ee } from "./chevron-down-CTH4bR6n.mjs";
10
+ import { E as te, t as O, v as k, w as A, y as j } from "./TextAreaField-CLmioFXe.mjs";
11
+ import { i as M, n as N, o as P, t as ne } from "./permissions-CxZW60Bd.mjs";
12
+ import { a as re } from "./RadioButton-BagXnWOk.mjs";
13
+ import { a as F, c as I, i as L, l as ie, n as R, o as ae, r as z, t as oe } from "./SortPanel-DctP-Eyd.mjs";
14
+ import { n as B } from "./Accordion-BhLebRAm.mjs";
15
15
  import { t as V } from "./createLucideIcon-C-N26TaJ.mjs";
16
- import { A as se, B as ce, E as le, F as ue, H as de, I as fe, L as pe, M as me, N as he, O as ge, P as _e, R as ve, U as H, V as ye, _ as be, a as xe, b as Se, c as Ce, d as we, f as Te, g as Ee, h as De, i as Oe, j as ke, l as Ae, m as je, n as Me, o as Ne, p as Pe, r as U, s as Fe, t as W, u as G, v as Ie, y as Le, z as Re } from "./NoDataState-C6hX-CHr.mjs";
16
+ import { A as se, B as ce, E as le, F as ue, H as de, I as fe, L as pe, M as me, N as he, O as ge, P as _e, R as ve, U as H, V as ye, _ as be, a as xe, b as Se, c as Ce, d as we, f as Te, g as Ee, h as De, i as Oe, j as ke, l as Ae, m as je, n as Me, o as Ne, p as Pe, r as U, s as Fe, t as W, u as G, v as Ie, y as Le, z as Re } from "./NoDataState-Dx5ksEt-.mjs";
17
17
  import { A as ze, B as Be, C as Ve, E as He, L as Ue, M as K, N as We, O as Ge, R as Ke, S as qe, a as Je, i as Ye, j as Xe, n as Ze, o as Qe, r as q, t as J, w as $e } from "./qaSelectors-BfSWLSdW.mjs";
18
18
  import { n as et, t as tt } from "./x-DDC7VFx5.mjs";
19
19
  import { t as Y } from "./dist-C0uxSp1k.mjs";
@@ -2211,9 +2211,9 @@ var ri = ({ field: e }) => /* @__PURE__ */ Q("span", {
2211
2211
  "metrics",
2212
2212
  "aggregate_metrics"
2213
2213
  ]
2214
- }, ia = [], aa = [], oa = ({ table: e, columns: t, selectedDims: n, selectedMetrics: r, onDropColumn: i, onRemoveColumn: a, onChangeHelperFunction: o, onChangeAlias: s, functionOptions: c, dimModifiers: l, metricModifiers: u, chartSettings: d, dbName: p, partitionColumnList: m = aa, measuresPickerDefaultOpen: h, dimensionsPickerDefaultOpen: g, arithmeticColumnOptions: _ = ia, onSaveArithMetricOption: y, className: x }) => {
2215
- let [C, w] = X.useState(!1), [T, E] = X.useState(), D = r.length > 0 && !!y, ee = X.useMemo(() => [
2216
- v,
2214
+ }, ia = [], aa = [], oa = ({ table: e, columns: t, selectedDims: n, selectedMetrics: r, onDropColumn: i, onRemoveColumn: a, onChangeHelperFunction: o, onChangeAlias: s, functionOptions: c, dimModifiers: l, metricModifiers: u, chartSettings: d, dbName: p, partitionColumnList: m = aa, measuresPickerDefaultOpen: h, dimensionsPickerDefaultOpen: g, arithmeticColumnOptions: _ = ia, onSaveArithMetricOption: v, className: x }) => {
2215
+ let [C, w] = X.useState(!1), [T, E] = X.useState(), D = r.length > 0 && !!v, ee = X.useMemo(() => [
2216
+ y,
2217
2217
  S,
2218
2218
  f,
2219
2219
  b
@@ -2377,12 +2377,12 @@ var ri = ({ field: e }) => /* @__PURE__ */ Q("span", {
2377
2377
  "aria-hidden": "true",
2378
2378
  className: "size-3.5"
2379
2379
  })
2380
- }), y ? /* @__PURE__ */ Z(ae, { props: {
2380
+ }), v ? /* @__PURE__ */ Z(ae, { props: {
2381
2381
  isDisabled: !D,
2382
2382
  columnOptions: _,
2383
2383
  isHovered: !1,
2384
2384
  type: "METRIC",
2385
- onSaveArithMetricOption: y,
2385
+ onSaveArithMetricOption: v,
2386
2386
  customColumn: "METRIC",
2387
2387
  isOpenCalculatedPanel: C,
2388
2388
  setOpenCalculatedPanel: w,
@@ -2712,7 +2712,7 @@ var ma = ({ rows: e, qaEntity: t }) => {
2712
2712
  function va(e) {
2713
2713
  return !!e && ga.has(e);
2714
2714
  }
2715
- var ya = ({ data: e, isLoading: t, error: n, errorView: r, chartSettings: i, dimensions: a, metrics: o, isCustomTable: s, isDrillEnableGroupBy: c, drillLevel: l, onDrillLevelClick: u, onResetDrill: d, chartColors: f, chartAppearance: p, appearanceOptions: m, customMessages: h, translationDictionary: g, selectedLanguage: _, noDataImg: v, onAddField: b, colorScheme: x = "light", onRetry: S, className: C, isActive: ee = !0 }) => {
2715
+ var ya = ({ data: e, isLoading: t, error: n, errorView: r, chartSettings: i, dimensions: a, metrics: o, isCustomTable: s, isDrillEnableGroupBy: c, drillLevel: l, onDrillLevelClick: u, onResetDrill: d, chartColors: f, chartAppearance: p, appearanceOptions: m, customMessages: h, translationDictionary: g, selectedLanguage: v, noDataImg: y, onAddField: b, colorScheme: x = "light", onRetry: S, className: C, isActive: ee = !0 }) => {
2716
2716
  let te = X.useMemo(() => Qn({
2717
2717
  chartSettings: i,
2718
2718
  dimensions: a,
@@ -2759,7 +2759,7 @@ var ya = ({ data: e, isLoading: t, error: n, errorView: r, chartSettings: i, dim
2759
2759
  ]), re = X.useMemo(() => va(i.chartType) ? void 0 : w(N), [i.chartType, N]), F = a.map((e) => e.label || e.alias || e.name), I = M && c && F.length > 0 && !_a.has(i.chartType), L = {
2760
2760
  customMessages: h,
2761
2761
  translationDictionary: g,
2762
- selectedLanguage: _
2762
+ selectedLanguage: v
2763
2763
  }, ie = U("Build your first view", "empty", void 0, L), R;
2764
2764
  if (n) R = /* @__PURE__ */ Z(sa, { children: /* @__PURE__ */ Z("div", {
2765
2765
  className: "contents",
@@ -2790,7 +2790,7 @@ var ya = ({ data: e, isLoading: t, error: n, errorView: r, chartSettings: i, dim
2790
2790
  type: P.type,
2791
2791
  data: P.data,
2792
2792
  appearance: ne,
2793
- applyDensity: y(),
2793
+ applyDensity: _(),
2794
2794
  colorBy: P.colorBy,
2795
2795
  valueFormatter: re,
2796
2796
  chartColors: N.chartColors,
@@ -2820,7 +2820,7 @@ var ya = ({ data: e, isLoading: t, error: n, errorView: r, chartSettings: i, dim
2820
2820
  headline: ie
2821
2821
  }) }) : /* @__PURE__ */ Q(sa, { children: [/* @__PURE__ */ Z(W, {
2822
2822
  className: "p-0",
2823
- noDataImg: v,
2823
+ noDataImg: y,
2824
2824
  ...L
2825
2825
  }), /* @__PURE__ */ Z(la, {})] });
2826
2826
  return /* @__PURE__ */ Z("div", {
@@ -2868,7 +2868,7 @@ var ya = ({ data: e, isLoading: t, error: n, errorView: r, chartSettings: i, dim
2868
2868
  //#region src/v2/surfaces/CreateMetric/PreviewTable.tsx
2869
2869
  function xa(e) {
2870
2870
  if (!e) return "Chart type";
2871
- for (let t of _) for (let n of t.value) if (String(n.name).toLowerCase() === String(e).toLowerCase()) return n.label;
2871
+ for (let t of v) for (let n of t.value) if (String(n.name).toLowerCase() === String(e).toLowerCase()) return n.label;
2872
2872
  return String(e).replace(/\b\w/g, (e) => e.toUpperCase());
2873
2873
  }
2874
2874
  var Sa = (e) => {
@@ -1,8 +1,8 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { Ar as e, Bi as t, Da as n, Dr as r, Ei as i, Fi as a, Ii as o, Oa as s, an as c, bi as l, fr as u, hr as d, li as f, lr as p, pi as m, ui as h, wa as g, wi as _, xr as v } from "./Portal-C4N01WKg.mjs";
5
- import { v as y } from "./TextAreaField-Q78INHKO.mjs";
4
+ import { Ar as e, Bi as t, Da as n, Dr as r, Ei as i, Fi as a, Ii as o, Oa as s, an as c, bi as l, hr as u, ir as d, li as f, pi as p, sr as m, ui as h, wa as g, wi as _, xr as v } from "./Portal-CuJ3yA9x.mjs";
5
+ import { v as y } from "./TextAreaField-CLmioFXe.mjs";
6
6
  import "react";
7
7
  import { jsx as b } from "react/jsx-runtime";
8
8
  //#region src/helpers/autoCompleteHelpers.ts
@@ -70,7 +70,7 @@ var x = (e, t) => Array.from(/* @__PURE__ */ new Set([...e, ...t])).map((e) => (
70
70
  if (h.includes(e?.toLowerCase()) || e?.toLowerCase()?.startsWith("decimal") || e?.toLowerCase()?.startsWith("numeric")) return "NUMBER";
71
71
  if (i.includes(e?.toLowerCase()) || e?.toLowerCase().includes("char")) return "STRING";
72
72
  if (c(e)) return "DATE";
73
- if (d.includes(e?.toLowerCase())) return "ARRAY";
73
+ if (u.includes(e?.toLowerCase())) return "ARRAY";
74
74
  if (v.includes(e?.toLowerCase())) return "BOOLEAN";
75
75
  }, R = (t, n) => {
76
76
  switch (t) {
@@ -149,11 +149,11 @@ var x = (e, t) => Array.from(/* @__PURE__ */ new Set([...e, ...t])).map((e) => (
149
149
  step: p,
150
150
  measure: m
151
151
  };
152
- }, H = (e, t) => S(p(e, x(t?.dimensions ?? [], t?.measures ?? []), {
152
+ }, H = (e, t) => S(d(e, x(t?.dimensions ?? [], t?.measures ?? []), {
153
153
  dimensions: t?.dimensions ?? [],
154
154
  measures: t?.measures ?? []
155
155
  })), ee = ({ columns: e, data: t, dbName: n }) => {
156
- let r = n?.toLowerCase() === m, i = t.length ? Object.keys(t?.[0] || {}) : [], a = (e) => i.filter((t) => r ? e?.map((e) => e?.toLowerCase()).includes(t) : e.includes(t));
156
+ let r = n?.toLowerCase() === p, i = t.length ? Object.keys(t?.[0] || {}) : [], a = (e) => i.filter((t) => r ? e?.map((e) => e?.toLowerCase()).includes(t) : e.includes(t));
157
157
  return {
158
158
  resDataColumns: i,
159
159
  dimensions: e?.dimensions?.length ? a(e?.dimensions || []) : [],
@@ -364,22 +364,22 @@ var x = (e, t) => Array.from(/* @__PURE__ */ new Set([...e, ...t])).map((e) => (
364
364
  return e;
365
365
  }, ae = (e) => {
366
366
  navigator.clipboard.writeText(e);
367
- }, oe = ({ datatype: e = "unknown", className: t, size: n = "sm" }) => h.includes(e?.toLowerCase() || "") || e?.toLowerCase()?.startsWith("decimal") || e?.toLowerCase()?.startsWith("numeric") ? /* @__PURE__ */ b(u, {
367
+ }, oe = ({ datatype: e = "unknown", className: t, size: n = "sm" }) => h.includes(e?.toLowerCase() || "") || e?.toLowerCase()?.startsWith("decimal") || e?.toLowerCase()?.startsWith("numeric") ? /* @__PURE__ */ b(m, {
368
368
  name: "number",
369
369
  size: n
370
- }) : i.includes(e?.toLowerCase() || "") || (e?.toLowerCase() || "").includes("char") ? /* @__PURE__ */ b(u, {
370
+ }) : i.includes(e?.toLowerCase() || "") || (e?.toLowerCase() || "").includes("char") ? /* @__PURE__ */ b(m, {
371
371
  name: "string",
372
372
  size: n
373
- }) : d.includes(e?.toLowerCase() || "") ? /* @__PURE__ */ b(u, {
373
+ }) : u.includes(e?.toLowerCase() || "") ? /* @__PURE__ */ b(m, {
374
374
  name: "array",
375
375
  size: n
376
- }) : c(e) ? /* @__PURE__ */ b(u, {
376
+ }) : c(e) ? /* @__PURE__ */ b(m, {
377
377
  name: "date",
378
378
  size: n
379
- }) : v.includes(e?.toLowerCase() || "") ? /* @__PURE__ */ b(u, {
379
+ }) : v.includes(e?.toLowerCase() || "") ? /* @__PURE__ */ b(m, {
380
380
  name: "boolean",
381
381
  size: n
382
- }) : /* @__PURE__ */ b(u, {
382
+ }) : /* @__PURE__ */ b(m, {
383
383
  name: "unknown",
384
384
  size: n
385
385
  }), se = ({ identifier: e, data: t, renderItem: n, CustomDragPreview: r, modifiers: i, events: a, disabled: o, dropText: s }) => {
@@ -1,11 +1,11 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { H as e, Ia as t, Lr as n, Mi as r, N as i, Ua as a, dt as o, fi as s, fr as c, ft as l } from "./Portal-C4N01WKg.mjs";
5
- import { f as u, u as d } from "./timeseries-Clp-TrGQ.mjs";
4
+ import { H as e, Ia as t, Lr as n, Mi as r, N as i, Ua as a, dt as o, fi as s, ft as c, sr as l } from "./Portal-CuJ3yA9x.mjs";
5
+ import { f as u, u as d } from "./timeseries-D_nzmvUF.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-BuG_4wOq.mjs";
8
+ import { t as _ } from "./conditionalFormatting-BU6BaaPb.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";
@@ -372,7 +372,7 @@ var T = {
372
372
  pagination: G,
373
373
  ...H ? { columnSizing: H } : {}
374
374
  },
375
- sortingFns: { manualSorting: l },
375
+ sortingFns: { manualSorting: c },
376
376
  enableGlobalFilter: !0,
377
377
  getCoreRowModel: f(),
378
378
  onSortingChange: he,
@@ -527,15 +527,15 @@ var T = {
527
527
  e.column.getIsSorted() && X.setPageIndex(0);
528
528
  },
529
529
  children: {
530
- asc: /* @__PURE__ */ C(c, {
530
+ asc: /* @__PURE__ */ C(l, {
531
531
  name: "caret-up-fill",
532
532
  customColor: O?.customHeaderColor?.textColor || "#6B7280"
533
533
  }),
534
- desc: /* @__PURE__ */ C(c, {
534
+ desc: /* @__PURE__ */ C(l, {
535
535
  name: "caret-down-fill",
536
536
  customColor: O?.customHeaderColor?.textColor || "#6B7280"
537
537
  })
538
- }[e.column.getIsSorted()] ?? /* @__PURE__ */ C(c, {
538
+ }[e.column.getIsSorted()] ?? /* @__PURE__ */ C(l, {
539
539
  name: "caret-up-down",
540
540
  customColor: O?.customHeaderColor?.textColor || "#6B7280"
541
541
  })
@@ -571,8 +571,8 @@ var T = {
571
571
  rules: O?.conditionalFormatting?.find(({ columnName: e }) => e === t?.column?.id)?.rules || [],
572
572
  value: typeof t.getValue() == "object" ? JSON.stringify(t.getValue()) : t.getValue(),
573
573
  formatter: O?.tableNumberFormatter?.find((e) => e.columns?.includes(t.column.id))?.formatter || O?.tableFormatter
574
- }), a = i?.prefix || "", o = i?.suffix || "", s = !Object.keys(i)?.length && O?.badgeColumns?.includes(t.column.id) ? Ce(t.column.id, O?.badgeColors, O?.badgeTextColors) : i, l = "", u = (s?.isApplyBadgeColor || !(s?.isApplyBgColor || !s?.badgeColor)) && !!Object.keys(i)?.length;
575
- u ? l = s?.badgeColor : O?.badgeColumns?.includes(t.column.id) && (l = Ce(t.column.id, O?.badgeColors, O?.badgeTextColors)?.backgroundColor);
574
+ }), a = i?.prefix || "", o = i?.suffix || "", s = !Object.keys(i)?.length && O?.badgeColumns?.includes(t.column.id) ? Ce(t.column.id, O?.badgeColors, O?.badgeTextColors) : i, c = "", u = (s?.isApplyBadgeColor || !(s?.isApplyBgColor || !s?.badgeColor)) && !!Object.keys(i)?.length;
575
+ u ? c = s?.badgeColor : O?.badgeColumns?.includes(t.column.id) && (c = Ce(t.column.id, O?.badgeColors, O?.badgeTextColors)?.backgroundColor);
576
576
  let d = i;
577
577
  if (i && "backgroundColor" in i && u) {
578
578
  let { backgroundColor: e, ...t } = i;
@@ -597,7 +597,7 @@ var T = {
597
597
  color: O?.contentColor || "var(--dbn-typography-colorPrimary, #222c3a)",
598
598
  ...s,
599
599
  fontWeight: O?.contentWeight || 500,
600
- backgroundColor: l || ""
600
+ backgroundColor: c || ""
601
601
  },
602
602
  children: [
603
603
  a,
@@ -624,7 +624,7 @@ var T = {
624
624
  })]
625
625
  }, e) })), Q(t.column.id, O.listColumns) && r.length > 3 && /* @__PURE__ */ C("span", {
626
626
  className: T.truncateIcon,
627
- children: /* @__PURE__ */ C(c, { name: "horizontal-rule" })
627
+ children: /* @__PURE__ */ C(l, { name: "horizontal-rule" })
628
628
  })] }) : /* @__PURE__ */ w("span", {
629
629
  className: `${T.truncateText} ${Q(t.column.id, O.badgeColumns) || u ? T.badge : ""}`,
630
630
  style: {
@@ -632,7 +632,7 @@ var T = {
632
632
  color: O?.contentColor || "var(--dbn-typography-colorPrimary, #222c3a)",
633
633
  ...s,
634
634
  fontWeight: O?.contentWeight || 500,
635
- backgroundColor: l || ""
635
+ backgroundColor: c || ""
636
636
  },
637
637
  children: [
638
638
  a,
@@ -653,7 +653,7 @@ var T = {
653
653
  })]
654
654
  }, t.id);
655
655
  }
656
- let r = t.getValue(), i = r?.[0], a = r?.[0] !== null && typeof r?.[0] == "object" && !Array.isArray(r[0]), o = O?.hStackTrendOptions?.find((e) => e.column === t.column.id), s = a ? Object.keys(i ?? {}) : [], l = o?.xAxis || "", f = a && !!s?.includes(l), p = o?.yAxis || "", h = a && !!s?.includes(p), g = a && f ? r?.map((e) => e?.[l]) : [], ee = [...F].reverse();
656
+ let r = t.getValue(), i = r?.[0], a = r?.[0] !== null && typeof r?.[0] == "object" && !Array.isArray(r[0]), o = O?.hStackTrendOptions?.find((e) => e.column === t.column.id), s = a ? Object.keys(i ?? {}) : [], c = o?.xAxis || "", f = a && !!s?.includes(c), p = o?.yAxis || "", h = a && !!s?.includes(p), g = a && f ? r?.map((e) => e?.[c]) : [], ee = [...F].reverse();
657
657
  return /* @__PURE__ */ C("td", {
658
658
  className: `${T.tableRowCol} ${O?.hideVerticalDivider ? "" : T.tableBorderRight} ${O?.hideHorizontalDivider ? "" : T.tableBorderBottom}`,
659
659
  children: /* @__PURE__ */ C(ce, {
@@ -859,7 +859,7 @@ var T = {
859
859
  X.setPageIndex(0);
860
860
  },
861
861
  isDisabled: Z.from <= 1,
862
- children: /* @__PURE__ */ C(c, {
862
+ children: /* @__PURE__ */ C(l, {
863
863
  size: "small",
864
864
  name: "double-arrow-left"
865
865
  })
@@ -879,7 +879,7 @@ var T = {
879
879
  },
880
880
  isDisabled: Z.from <= 1,
881
881
  style: { height: "calc(1.75rem - 1.6px)" },
882
- children: /* @__PURE__ */ C(c, {
882
+ children: /* @__PURE__ */ C(l, {
883
883
  size: "small",
884
884
  name: "caret-left"
885
885
  })
@@ -936,7 +936,7 @@ var T = {
936
936
  },
937
937
  isDisabled: Z.to >= Z.total,
938
938
  style: { height: "calc(1.75rem - 1.6px)" },
939
- children: /* @__PURE__ */ C(c, {
939
+ children: /* @__PURE__ */ C(l, {
940
940
  size: "small",
941
941
  name: "caret-right"
942
942
  })
@@ -954,7 +954,7 @@ var T = {
954
954
  X.setPageIndex(X.getPageCount() - 1);
955
955
  },
956
956
  isDisabled: Z.to >= Z.total,
957
- children: /* @__PURE__ */ C(c, {
957
+ children: /* @__PURE__ */ C(l, {
958
958
  size: "small",
959
959
  name: "double-arrow-right"
960
960
  })
@@ -1,14 +1,14 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { Ot as e } from "./pluginV3Request-Dfy8fkbS.mjs";
4
+ import { Ot as e } from "./pluginV3Request-CQzo3G0-.mjs";
5
5
  import { t } from "./loading-state-C-J1F-xq.mjs";
6
- import { t as n } from "./useGuesTokenUsageLog-BtooXte_.mjs";
6
+ import { t as n } from "./useGuesTokenUsageLog-BgjAaf3E.mjs";
7
7
  import { t as r } from "./createLucideIcon-C-N26TaJ.mjs";
8
8
  import { B as i, C as a, L as o, M as s, R as c, a as l, i as u } from "./qaSelectors-BfSWLSdW.mjs";
9
9
  import { n as d } from "./x-DDC7VFx5.mjs";
10
10
  import { t as f } from "./dist-C0uxSp1k.mjs";
11
- import { n as p, r as m, t as h } from "./usePublishArchivedMetrics-CM4KQARj.mjs";
11
+ import { n as p, r as m, t as h } from "./usePublishArchivedMetrics-CM7fUNzL.mjs";
12
12
  import { a as g, i as _, n as v, o as y, r as b, t as x } from "./dialog-6bw6aLOP.mjs";
13
13
  import * as S from "react";
14
14
  import { jsx as C, jsxs as w } from "react/jsx-runtime";