@databrainhq/plugin 0.17.9-beta.33 → 0.17.9-beta.34

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 (47) hide show
  1. package/dist/{Accordion-BdGcYoH_.mjs → Accordion-DtzU-kv3.mjs} +1 -1
  2. package/dist/{Chart-D3fn0ghg.mjs → Chart-BKjKglnR.mjs} +760 -760
  3. package/dist/{CreateGlobalFilter-8t6GSGyT.mjs → CreateGlobalFilter-COJr9pxx.mjs} +195 -195
  4. package/dist/{CreateMetricV2-BJoSn42i.mjs → CreateMetricV2-CfcDgw3E.mjs} +146 -146
  5. package/dist/{DraggableItem-CzPHM5Ek.mjs → DraggableItem-B8IW0_no.mjs} +139 -139
  6. package/dist/{HorizontalStackTable-DNBbrIFn.mjs → HorizontalStackTable-BgTor_KQ.mjs} +48 -48
  7. package/dist/{ManageMetricsV2-1fBC-FFm.mjs → ManageMetricsV2-DM8gofxF.mjs} +3 -3
  8. package/dist/{MetricCardV2-D7p6yAv5.mjs → MetricCardV2-Ff__3yWl.mjs} +146 -146
  9. package/dist/{NoDataFound-1gLzunO6.mjs → NoDataFound-Ifpvns9-.mjs} +1 -1
  10. package/dist/{NoDataState-rNtw1p0V.mjs → NoDataState-DPVhHP6M.mjs} +2 -2
  11. package/dist/{Panel-DQXH8IBE.mjs → Panel-BUwtA4r-.mjs} +1 -1
  12. package/dist/{PivotTableV2-DfzyY9RC.mjs → PivotTableV2-DQU2H33d.mjs} +2 -2
  13. package/dist/{PivotTableV3-B97O3ZLD.mjs → PivotTableV3-BLp5-cQr.mjs} +4 -4
  14. package/dist/{Portal-DE_CdG2S.mjs → Portal-BP2ivXF8.mjs} +2480 -2388
  15. package/dist/{RadioButton-BOkJ0ZLZ.mjs → RadioButton-oGBMxhHq.mjs} +2 -2
  16. package/dist/{ScheduleEmail-BpdnxS9q.mjs → ScheduleEmail-CiO6PMLd.mjs} +517 -517
  17. package/dist/{SearchMetricData-sBWIMhvT.mjs → SearchMetricData-C4stwNY9.mjs} +1272 -1272
  18. package/dist/{SortPanel-CNjSmhPX.mjs → SortPanel-Cy82r5dX.mjs} +1332 -1332
  19. package/dist/{Table-ODMPh1l7.mjs → Table-Cg4EZCAG.mjs} +296 -296
  20. package/dist/{TagInputField-DYDsUtvi.mjs → TagInputField-DuY_whs7.mjs} +9 -9
  21. package/dist/{TextAreaField-D4VprIA4.mjs → TextAreaField-D5O-kEVL.mjs} +297 -297
  22. package/dist/{TimeSeriesSettings-BTj3ofRS.mjs → TimeSeriesSettings-TXu0_07R.mjs} +11 -11
  23. package/dist/{arrayToCsvString-D9T6ms_d.mjs → arrayToCsvString-Bj2E5XgM.mjs} +1 -1
  24. package/dist/{cardActions-BLBLsjcd.mjs → cardActions-BPRHHm2G.mjs} +21 -7
  25. package/dist/{cardQueryError-tZcXyRqS.mjs → cardQueryError-DFKFCfFx.mjs} +1274 -1274
  26. package/dist/{charts-CY0Vq7Bn.mjs → charts-C2loGjFP.mjs} +3 -3
  27. package/dist/{chevron-down-mMC3ps2h.mjs → chevron-down-BWD1dxqC.mjs} +6 -6
  28. package/dist/{conditionalFormatting-LaI9Vca7.mjs → conditionalFormatting-Ca-leGbK.mjs} +1 -1
  29. package/dist/{contrast-Clo5ZlPI.mjs → contrast-EppiiunY.mjs} +117 -112
  30. package/dist/{createGlobalFilter.module-CWkuVq9m.mjs → createGlobalFilter.module-B3yI7_04.mjs} +1 -1
  31. package/dist/data.cjs +1 -1
  32. package/dist/data.mjs +1 -1
  33. package/dist/{echarts-mz_HZpET.mjs → echarts-CsSfDZ5q.mjs} +2 -2
  34. package/dist/{metric.mutation-B8OUNYhj.mjs → metric.mutation-hYspHj1p.mjs} +1 -1
  35. package/dist/{option-ywDB8mz_.mjs → option-B1zeYJnm.mjs} +1 -1
  36. package/dist/{permissions-Rp1874rG.mjs → permissions-Bc9NDT2w.mjs} +359 -359
  37. package/dist/{pluginV3Request-CK6p_HfU.mjs → pluginV3Request-DFy6TETh.mjs} +1 -1
  38. package/dist/{renderer-DEc5om01.mjs → renderer-Bk8GbA94.mjs} +2 -2
  39. package/dist/{theme-CU-AvQm_.mjs → theme-BA-MvZE0.mjs} +1 -1
  40. package/dist/{timeseries-BBiiZaG9.mjs → timeseries-kGhqoQ6V.mjs} +1948 -1942
  41. package/dist/{toTasteAppearance-BnmM-nar.mjs → toTasteAppearance-CGUd4zvZ.mjs} +1 -1
  42. package/dist/{useGuesTokenUsageLog-CTqOyx82.mjs → useGuesTokenUsageLog-CVeQacbL.mjs} +1 -1
  43. package/dist/{usePublishArchivedMetrics-BsHt2ki1.mjs → usePublishArchivedMetrics-BGEBFLub.mjs} +2 -2
  44. package/dist/{useQuery-B_9KK0aG.mjs → useQuery-CNVFkkjT.mjs} +1 -1
  45. package/dist/webcomponents.es.js +3942 -3939
  46. package/dist/webcomponents.umd.js +184 -184
  47. package/package.json +2 -2
@@ -2,33 +2,33 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { r as e } from "./rolldown-runtime-C1JUX4Ur.mjs";
5
- import { Cn as t, Ha as n, J as r, K as i, N as a, Ri as o, T as s, Ur as c, Ya as l, _t as ee, a as te, pr as u, q as ne, tr as re, vi as d, vt as ie, wn as f } from "./Portal-DE_CdG2S.mjs";
6
- import { F as p, z as m } from "./option-ywDB8mz_.mjs";
7
- import { d as ae, o as h, u as oe } from "./timeseries-BBiiZaG9.mjs";
8
- import { n as se } from "./arrayToCsvString-D9T6ms_d.mjs";
5
+ import { Cn as t, J as n, K as r, N as i, T as a, Ua as o, Wr as s, Xa as c, _t as l, a as ee, mr as u, nr as te, q as ne, vt as re, wn as ie, yi as d, zi as f } from "./Portal-BP2ivXF8.mjs";
6
+ import { F as p, z as m } from "./option-B1zeYJnm.mjs";
7
+ import { d as ae, o as h, u as oe } from "./timeseries-kGhqoQ6V.mjs";
8
+ import { n as se } from "./arrayToCsvString-Bj2E5XgM.mjs";
9
9
  import { i as ce, n as g } from "./transformData-ow-ma1SZ.mjs";
10
- import { n as le } from "./cardActions-BLBLsjcd.mjs";
11
- import { t as _ } from "./NoDataFound-1gLzunO6.mjs";
12
- import { n as ue, t as v } from "./esm-B2ERA78g.mjs";
13
- import { a as de, i as y, n as fe, o as pe, r as me, s as he, t as ge } from "./dist-DHNl58qD.mjs";
14
- import { t as _e } from "./conditionalFormatting-LaI9Vca7.mjs";
15
- import { t as ve } from "./tableAriaRowModel-DyPIF2Fa.mjs";
16
- import b, { useEffect as x, useMemo as S, useRef as ye, useState as C } from "react";
10
+ import { n as le, r as ue } from "./cardActions-BPRHHm2G.mjs";
11
+ import { t as _ } from "./NoDataFound-Ifpvns9-.mjs";
12
+ import { n as de, t as v } from "./esm-B2ERA78g.mjs";
13
+ import { a as fe, i as y, n as pe, o as me, r as he, s as ge, t as _e } from "./dist-DHNl58qD.mjs";
14
+ import { t as ve } from "./conditionalFormatting-Ca-leGbK.mjs";
15
+ import { t as ye } from "./tableAriaRowModel-DyPIF2Fa.mjs";
16
+ import b, { useEffect as x, useMemo as S, useRef as be, useState as C } from "react";
17
17
  import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
18
18
  //#region src/utils/embedStorage.ts
19
- var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableClick`, xe = "isDisableClick", Se = (e, t) => {
19
+ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableClick`, Se = "isDisableClick", Ce = (e, t) => {
20
20
  try {
21
21
  let n = window.localStorage.getItem(e);
22
22
  return n === null ? t ? window.localStorage.getItem(t) : null : n;
23
23
  } catch {
24
24
  return null;
25
25
  }
26
- }, Ce = (e, t) => {
26
+ }, we = (e, t) => {
27
27
  try {
28
28
  window.localStorage.setItem(e, t);
29
29
  } catch {}
30
30
  }, k = (e) => {
31
- let t = Se(be);
31
+ let t = Ce(xe);
32
32
  if (!t) return null;
33
33
  let n;
34
34
  try {
@@ -37,9 +37,9 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
37
37
  return null;
38
38
  }
39
39
  return !n || typeof n != "object" || !n.metricId || n.metricId !== e ? null : n;
40
- }, we = (e) => {
41
- Ce(be, JSON.stringify(e));
42
- }, A = () => !!Se(O, xe), Te = (e) => {
40
+ }, Te = (e) => {
41
+ we(xe, JSON.stringify(e));
42
+ }, A = () => !!Ce(O, Se), Ee = (e) => {
43
43
  let t = 10;
44
44
  if (!e?.current) return "";
45
45
  let n = e.current.clientHeight, r = e.current.querySelector("[data-testid=\"table-header-row\"]"), i = r ? r.offsetHeight : 0, a = e.current.querySelector("[data-testid^=\"table-row-\"]"), o = a ? a.offsetHeight : 41, s = n - i;
@@ -150,8 +150,8 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
150
150
  disabled: r
151
151
  })]
152
152
  });
153
- }), Ee = ({ column: e, table: t, onChangePaginationColumnFilters: n, tableColumnFilters: r = [], dropdownFilterVariant: i }) => {
154
- let a = b.useMemo(() => t?.getPreFilteredRowModel()?.flatRows?.[0]?.getValue(e.id), [t?.getPreFilteredRowModel()?.flatRows?.[0]?.getValue(e.id)]), o = Array.from(new Set(t?.getPreFilteredRowModel()?.flatRows?.map((t) => t?.getValue(e.id)))), c = b.useMemo(() => e?.getFilterValue(), [e?.getFilterValue()]);
153
+ }), De = ({ column: e, table: t, onChangePaginationColumnFilters: n, tableColumnFilters: r = [], dropdownFilterVariant: i }) => {
154
+ let o = b.useMemo(() => t?.getPreFilteredRowModel()?.flatRows?.[0]?.getValue(e.id), [t?.getPreFilteredRowModel()?.flatRows?.[0]?.getValue(e.id)]), s = Array.from(new Set(t?.getPreFilteredRowModel()?.flatRows?.map((t) => t?.getValue(e.id)))), c = b.useMemo(() => e?.getFilterValue(), [e?.getFilterValue()]);
155
155
  return x(() => {
156
156
  c && t.setPagination((e) => ({
157
157
  ...e,
@@ -164,8 +164,8 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
164
164
  r,
165
165
  c,
166
166
  e?.id
167
- ]), i ? /* @__PURE__ */ T(s, {
168
- options: o?.map((e) => ({
167
+ ]), i ? /* @__PURE__ */ T(a, {
168
+ options: s?.map((e) => ({
169
169
  value: e,
170
170
  label: e
171
171
  })) || [],
@@ -179,7 +179,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
179
179
  menuWidth: "100%",
180
180
  isClearEnabled: !0,
181
181
  isSelectAllEnabled: !0
182
- }) : typeof a == "number" ? /* @__PURE__ */ E("div", {
182
+ }) : typeof o == "number" ? /* @__PURE__ */ E("div", {
183
183
  className: "dbn:w-full dbn:flex dbn:gap-2 dbn:items-center",
184
184
  children: [/* @__PURE__ */ T(M, {
185
185
  type: "number",
@@ -220,7 +220,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
220
220
  placeholder: "Search",
221
221
  className: "w-36 border shadow rounded"
222
222
  });
223
- }, De = ({ data: e }) => {
223
+ }, Oe = ({ data: e }) => {
224
224
  let t = S(() => [{
225
225
  name: "Column",
226
226
  columnKey: "column",
@@ -244,7 +244,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
244
244
  className: `${j["headers-primary"]} dbn:z-50`,
245
245
  children: /* @__PURE__ */ T("tr", { children: t?.map((e) => /* @__PURE__ */ T("th", {
246
246
  className: j.headerCol,
247
- children: /* @__PURE__ */ T(l, {
247
+ children: /* @__PURE__ */ T(c, {
248
248
  variant: "sec-heading-6",
249
249
  color: "gray",
250
250
  children: e.name
@@ -270,45 +270,45 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
270
270
  })]
271
271
  })
272
272
  });
273
- }, Oe = {
273
+ }, ke = {
274
274
  cardControl: "_cardControl_74e66_22",
275
275
  hoverHint: "_hoverHint_74e66_43"
276
- }, ke = /* @__PURE__ */ e({
277
- Table: () => Fe,
278
- getVisibleTableRows: () => Ne
279
- }), Ae = y(), je = (e, t, n, r) => {
280
- let i = ue(e.getValue(t), n);
276
+ }, Ae = /* @__PURE__ */ e({
277
+ Table: () => Ie,
278
+ getVisibleTableRows: () => Pe
279
+ }), je = y(), Me = (e, t, n, r) => {
280
+ let i = de(e.getValue(t), n);
281
281
  return r({ itemRank: i }), i.passed;
282
- }, Me = (e, t, n) => {
282
+ }, Ne = (e, t, n) => {
283
283
  let r = e.getValue(t);
284
284
  return String(r)?.toLowerCase().includes(String(n)?.toLowerCase());
285
- }, Ne = ({ infiniteScrollRecordCount: e, isExternalChart: t, isInfiniteScroll: n, isServerSidePagination: r, onLoadMore: i, pageIndex: a, pageSize: o, rows: s }) => {
285
+ }, Pe = ({ infiniteScrollRecordCount: e, isExternalChart: t, isInfiniteScroll: n, isServerSidePagination: r, onLoadMore: i, pageIndex: a, pageSize: o, rows: s }) => {
286
286
  if (t) return s;
287
287
  let c = n && !r ? 0 : o * a, l = n && !r ? i ? void 0 : e : o * (1 + a);
288
288
  return s.slice(c, l);
289
- }, Pe = (e) => e?.textWrap?.isEnable ? 48 : e?.lineGap === "small" ? 36 : e?.lineGap === "large" ? 44 : 40, Fe = ({ data: e, allTableRows: ue, isLoading: y, error: b, tableSettings: D, chartFieldFormats: be, tableName: O, className: xe = "", onColumnSizingChange: Se, onChartReady: Ce, onChangePage: k, isExternalChart: A, isFullScreenChart: ke, isEnableNextBtn: Fe, isEnablePrevBtn: Ie, dateColumns: Le, paginationInfo: N = {
289
+ }, Fe = (e) => e?.textWrap?.isEnable ? 48 : e?.lineGap === "small" ? 36 : e?.lineGap === "large" ? 44 : 40, Ie = ({ data: e, allTableRows: de, isLoading: y, error: b, tableSettings: D, chartFieldFormats: xe, tableName: O, className: Se = "", onColumnSizingChange: Ce, onChartReady: we, onChangePage: k, isExternalChart: A, isFullScreenChart: Ae, isEnableNextBtn: Ie, isEnablePrevBtn: Le, dateColumns: Re, paginationInfo: N = {
290
290
  limit: 100,
291
291
  offset: 0,
292
292
  totalRecords: 10
293
- }, setChartSettings: Re, externalGlobalFilter: P, setExternalGlobalFilter: ze, isInfiniteScroll: Be, onLoadMore: Ve, hasMoreData: He, isShowFullScreen: Ue, isShowFullScreenEnabled: We = !1, metricId: Ge, onMaximize: Ke, headerAlignment: qe = "center", events: Je, dropdownZindex: Ye, comboFormatter: Xe, language: Ze, translationDictionary: Qe, isMetricCard: $e, isDisableChartActions: et, isDownloading: tt, setDownloading: nt, onDownloadData: rt, isDownloadingWithFilters: it, setDownloadingWithFilters: at, isQueryResultContainer: ot, tableColumnFilters: st, onChangePaginationColumnFilters: ct, yAxisList: lt, isUnderlyingDataTable: ut, isExploreData: dt }) => {
294
- let ft = { chartFieldFormats: be }, F = (e) => !!(m(ft, e) ?? be?.["*"]), pt = (e, t) => {
295
- let n = p(e, t, ft);
293
+ }, setChartSettings: ze, externalGlobalFilter: P, setExternalGlobalFilter: Be, isInfiniteScroll: Ve, onLoadMore: He, hasMoreData: Ue, isShowFullScreen: We, isShowFullScreenEnabled: Ge = !1, metricId: Ke, onMaximize: qe, headerAlignment: Je = "center", events: Ye, dropdownZindex: Xe, comboFormatter: Ze, language: Qe, translationDictionary: $e, isMetricCard: et, isDisableChartActions: tt, isDownloading: nt, setDownloading: rt, onDownloadData: it, isDownloadingWithFilters: at, setDownloadingWithFilters: ot, isQueryResultContainer: st, tableColumnFilters: ct, onChangePaginationColumnFilters: lt, yAxisList: ut, isUnderlyingDataTable: dt, isExploreData: ft }) => {
294
+ let pt = { chartFieldFormats: xe }, F = (e) => !!(m(pt, e) ?? xe?.["*"]), mt = (e, t) => {
295
+ let n = p(e, t, pt);
296
296
  return typeof n == "object" && n ? JSON.stringify(n) : n;
297
- }, [I, mt] = C([]), [L, ht] = C([]), [gt, _t] = C(""), [vt, yt] = C({
297
+ }, [I, ht] = C([]), [L, gt] = C([]), [_t, vt] = C(""), [yt, bt] = C({
298
298
  isShow: !1,
299
299
  data: []
300
- }), [bt, xt] = C(null), [St, Ct] = C([]), [wt, Tt] = C(","), [Et, Dt] = C(","), Ot = (e) => {
300
+ }), [xt, St] = C(null), [Ct, wt] = C([]), [Tt, Et] = C(","), [Dt, Ot] = C(","), kt = (e) => {
301
301
  let t = {};
302
302
  return Object.keys(e).sort().forEach((n) => {
303
303
  t[n] = e[n];
304
304
  }), t;
305
- }, R = S(() => D?.isSortAlphabetically ? e?.map((e) => Ot(e)) : e, [e, D?.isSortAlphabetically]);
305
+ }, R = S(() => D?.isSortAlphabetically ? e?.map((e) => kt(e)) : e, [e, D?.isSortAlphabetically]);
306
306
  x(() => {
307
- D?.badgeSeparator ? Tt(D.badgeSeparator) : Tt(",");
307
+ D?.badgeSeparator ? Et(D.badgeSeparator) : Et(",");
308
308
  }, [D?.badgeSeparator]), x(() => {
309
- D?.listSeparator ? Dt(D.listSeparator) : Dt(",");
309
+ D?.listSeparator ? Ot(D.listSeparator) : Ot(",");
310
310
  }, [D?.listSeparator]);
311
- let { badgeDivStyle: kt, listDivStyle: At, headerStyle: jt } = S(() => {
311
+ let { badgeDivStyle: At, listDivStyle: jt, headerStyle: Mt } = S(() => {
312
312
  let e = "2.5rem";
313
313
  return D?.textWrap?.isEnable ? e = "auto" : D?.lineGap === "small" ? e = "36px" : D?.lineGap === "medium" ? e = "40px" : D?.lineGap === "large" && (e = "44px"), {
314
314
  badgeDivStyle: {
@@ -337,7 +337,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
337
337
  fontSize: D?.headerFontSize ? `${D?.headerFontSize}px` : "0.75rem",
338
338
  fontSizeValue: "0.75rem",
339
339
  height: "auto",
340
- textAlign: D?.headerAlignment || qe,
340
+ textAlign: D?.headerAlignment || Je,
341
341
  fontWeight: D?.headerFontBold ? "700" : "500"
342
342
  }
343
343
  };
@@ -346,35 +346,35 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
346
346
  D?.contentAlignment,
347
347
  D?.headerFontBold,
348
348
  D?.headerFontSize,
349
- qe,
349
+ Je,
350
350
  D?.headerAlignment,
351
351
  D?.textWrap?.isEnable
352
- ]), Mt = (e, t, n) => {
352
+ ]), Nt = (e, t, n) => {
353
353
  if (t && n && Object.keys(t).includes(e) && Object.keys(n).includes(e)) return {
354
354
  backgroundColor: t[e],
355
355
  color: n[e]
356
356
  };
357
357
  if (t && Object.keys(t).includes(e)) return { backgroundColor: t[e] };
358
358
  if (n && Object.keys(n).includes(e)) return { color: n[e] };
359
- }, [Nt, Pt] = C([]), [Ft, It] = C([]), [Lt, Rt] = C({}), [z, zt] = C({
360
- label: D?.defaultRowSize || c.tableSettings?.defaultRowSize || "10",
361
- value: D?.defaultRowSize || c.tableSettings?.defaultRowSize || "10"
362
- }), [Bt, Vt] = C(50), [Ht, Ut] = C(D?.columnSizing), [B, Wt] = C([]), [V, Gt] = C({
359
+ }, [Pt, Ft] = C([]), [It, Lt] = C([]), [Rt, zt] = C({}), [z, Bt] = C({
360
+ label: D?.defaultRowSize || s.tableSettings?.defaultRowSize || "10",
361
+ value: D?.defaultRowSize || s.tableSettings?.defaultRowSize || "10"
362
+ }), [Vt, Ht] = C(50), [Ut, Wt] = C(D?.columnSizing), [B, Gt] = C([]), [V, Kt] = C({
363
363
  pageIndex: 0,
364
364
  pageSize: 10
365
- }), [Kt, qt] = C(!1);
365
+ }), [qt, Jt] = C(!1);
366
366
  x(() => {
367
- Se?.(Ht);
368
- }, [Ht]);
369
- let H = ye(null);
367
+ Ce?.(Ut);
368
+ }, [Ut]);
369
+ let H = be(null);
370
370
  x(() => {
371
371
  if (!D?.isAutoPagination || H.current === null) return;
372
372
  let e = () => {
373
- let e = Te(H);
374
- e && (zt((t) => t?.value === e ? t : {
373
+ let e = Ee(H);
374
+ e && (Bt((t) => t?.value === e ? t : {
375
375
  label: "custom",
376
376
  value: e
377
- }), Re?.((t) => t?.tableSettings?.defaultRowSize === e ? t : {
377
+ }), ze?.((t) => t?.tableSettings?.defaultRowSize === e ? t : {
378
378
  ...t,
379
379
  tableSettings: {
380
380
  ...t.tableSettings,
@@ -387,36 +387,36 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
387
387
  return t.observe(H.current), () => t.disconnect();
388
388
  }, [D?.isAutoPagination, H.current]), x(() => {
389
389
  if (!D?.defaultRowSize || D?.isAutoPagination) return;
390
- let e = o.find((e) => e.value === D.defaultRowSize);
391
- if (e) Number(e.value) > 1e3 ? zt(o.at(-1)) : zt(e);
390
+ let e = f.find((e) => e.value === D.defaultRowSize);
391
+ if (e) Number(e.value) > 1e3 ? Bt(f.at(-1)) : Bt(e);
392
392
  else {
393
- let e = o.find((e) => e.value === c.tableSettings?.defaultRowSize);
394
- zt(e);
393
+ let e = f.find((e) => e.value === s.tableSettings?.defaultRowSize);
394
+ Bt(e);
395
395
  }
396
396
  }, [D?.defaultRowSize, D?.isAutoPagination]);
397
- let [Jt, Yt] = C(!1), Xt = S(() => !e || !R || !Array.isArray(e) || !Array.isArray(R) ? [] : D?.isEnableTranspose ? f(R, D?.isEnableTranspose) : R, [
397
+ let [Yt, Xt] = C(!1), Zt = S(() => !e || !R || !Array.isArray(e) || !Array.isArray(R) ? [] : D?.isEnableTranspose ? ie(R, D?.isEnableTranspose) : R, [
398
398
  e,
399
399
  R,
400
400
  D?.isEnableTranspose
401
- ]), U = S(() => e?.length ? !Ze || !Qe ? Xt : Xt?.map((e) => {
401
+ ]), U = S(() => e?.length ? !Qe || !$e ? Zt : Zt?.map((e) => {
402
402
  let n = {};
403
403
  for (let r in e) {
404
404
  let i = t({
405
405
  text: r,
406
- selectedLanguage: Ze,
407
- translationDictionary: Qe
406
+ selectedLanguage: Qe,
407
+ translationDictionary: $e
408
408
  });
409
409
  n[i] = t({
410
410
  text: e[r],
411
- selectedLanguage: Ze,
412
- translationDictionary: Qe
411
+ selectedLanguage: Qe,
412
+ translationDictionary: $e
413
413
  });
414
414
  }
415
415
  return n;
416
416
  }) : [], [
417
- Xt,
418
- Ze,
417
+ Zt,
419
418
  Qe,
419
+ $e,
420
420
  e?.length
421
421
  ]), W = S(() => P?.[0] || B?.[0] ? U?.filter((e) => {
422
422
  let t = P?.[0] || (typeof B?.[0] == "string" ? B?.[0] : B?.[0]?.value);
@@ -428,13 +428,13 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
428
428
  ]), G = S(() => {
429
429
  if (!e?.length) return [];
430
430
  let t = Object.keys(U?.[0] || {}), n = D?.outputColumnOrder ?? [], r = [...new Set(n)], i = new Set(r), a = r.length ? [...r, ...t.filter((e) => !i.has(e))] : t;
431
- return D?.isEnableColumnFilter && !U?.length && (a = lt || []), D?.showColumnFilter && (a = dt && I?.some(re) ? Object.keys(U?.[0] || {}).filter((e) => !I?.includes(e)) : I), D?.isEnableViewDetails && (a = [...a, "View Details"]), D?.hiddenColumns?.length && (a = a?.filter((e) => !D?.hiddenColumns?.includes(e))), a?.map((e) => Ae.accessor(e, {
431
+ return D?.isEnableColumnFilter && !U?.length && (a = ut || []), D?.showColumnFilter && (a = ft && I?.some(te) ? Object.keys(U?.[0] || {}).filter((e) => !I?.includes(e)) : I), D?.isEnableViewDetails && (a = [...a, "View Details"]), D?.hiddenColumns?.length && (a = a?.filter((e) => !D?.hiddenColumns?.includes(e))), a?.map((e) => je.accessor(e, {
432
432
  header: () => e,
433
433
  cell: (t) => {
434
434
  let n = t.row.original[e];
435
435
  return n == null ? "" : typeof n == "object" ? JSON.stringify(n) : typeof n == "boolean" ? n ? "true" : "false" : n;
436
436
  },
437
- sortingFn: ee(W.map((t) => t?.[e])),
437
+ sortingFn: l(W.map((t) => t?.[e])),
438
438
  enableResizing: !0,
439
439
  enableColumnFilter: !0,
440
440
  filterFn: D?.isEnableDropdownFilter && D?.dropdownFilterCols?.includes(e) ? "arrIncludesSome" : "auto"
@@ -453,66 +453,66 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
453
453
  W
454
454
  ]);
455
455
  x(() => {
456
- e?.length ? ht(G) : ht([]);
456
+ e?.length ? gt(G) : gt([]);
457
457
  }, [G, e?.length]);
458
- let Zt = S(() => !e?.length && !W?.length ? [] : L?.length === Object.keys(e?.[0])?.length ? L : G, [
458
+ let Qt = S(() => !e?.length && !W?.length ? [] : L?.length === Object.keys(e?.[0])?.length ? L : G, [
459
459
  e?.length,
460
460
  W?.length,
461
461
  L,
462
462
  G
463
- ]), K = me({
463
+ ]), K = he({
464
464
  data: W,
465
- columns: dt ? Zt : L,
465
+ columns: ft ? Qt : L,
466
466
  state: {
467
- sorting: Nt,
467
+ sorting: Pt,
468
468
  pagination: V,
469
- ...Ht ? { columnSizing: Ht } : {}
469
+ ...Ut ? { columnSizing: Ut } : {}
470
470
  },
471
- sortingFns: { manualSorting: ie },
472
- filterFns: { fuzzy: je },
473
- onRowSelectionChange: Rt,
474
- onSortingChange: Pt,
475
- globalFilterFn: Me,
476
- getCoreRowModel: de(),
477
- getFilteredRowModel: pe(),
478
- getSortedRowModel: he(),
479
- onGlobalFilterChange: ze || Wt,
480
- onPaginationChange: Gt,
471
+ sortingFns: { manualSorting: re },
472
+ filterFns: { fuzzy: Me },
473
+ onRowSelectionChange: zt,
474
+ onSortingChange: Ft,
475
+ globalFilterFn: Ne,
476
+ getCoreRowModel: fe(),
477
+ getFilteredRowModel: me(),
478
+ getSortedRowModel: ge(),
479
+ onGlobalFilterChange: Be || Gt,
480
+ onPaginationChange: Kt,
481
481
  manualPagination: !0,
482
482
  debugTable: !1,
483
483
  enableColumnResizing: !0,
484
484
  columnResizeMode: "onChange",
485
- onColumnSizingChange: Ut
486
- }), Qt = K.getSortedRowModel().rows, $t = S(() => Ne({
487
- infiniteScrollRecordCount: Bt,
485
+ onColumnSizingChange: Wt
486
+ }), $t = K.getSortedRowModel().rows, en = S(() => Pe({
487
+ infiniteScrollRecordCount: Vt,
488
488
  isExternalChart: A,
489
- isInfiniteScroll: Be,
489
+ isInfiniteScroll: Ve,
490
490
  isServerSidePagination: D?.isServerSidePagination,
491
- onLoadMore: Ve,
491
+ onLoadMore: He,
492
492
  pageIndex: V.pageIndex,
493
493
  pageSize: V.pageSize,
494
- rows: Qt
494
+ rows: $t
495
495
  }), [
496
- Bt,
496
+ Vt,
497
497
  A,
498
- Be,
499
- D?.isServerSidePagination,
500
498
  Ve,
499
+ D?.isServerSidePagination,
500
+ He,
501
501
  V.pageIndex,
502
502
  V.pageSize,
503
- Qt
504
- ]), en = v({
505
- count: $t.length,
503
+ $t
504
+ ]), tn = v({
505
+ count: en.length,
506
506
  getScrollElement: () => H.current?.querySelector(".simplebar-content-wrapper") ?? null,
507
- estimateSize: () => Pe(D),
507
+ estimateSize: () => Fe(D),
508
508
  overscan: 12
509
- }), q = en.getVirtualItems(), tn = q.length ? q[0].start : 0, nn = q.length ? en.getTotalSize() - q[q.length - 1].end : 0, rn = K.getVisibleLeafColumns().length || 1;
509
+ }), q = tn.getVirtualItems(), nn = q.length ? q[0].start : 0, rn = q.length ? tn.getTotalSize() - q[q.length - 1].end : 0, an = K.getVisibleLeafColumns().length || 1;
510
510
  x(() => {
511
511
  let e = y && !b?.length;
512
- Yt(e);
512
+ Xt(e);
513
513
  }, [y, b?.length]);
514
- let an = () => {
515
- nt?.(!0);
514
+ let on = () => {
515
+ rt?.(!0);
516
516
  let e = L?.map((e) => typeof e?.header == "function" ? e?.header() : e?.header), t = K?.getFilteredRowModel()?.rows?.map((t) => {
517
517
  let n = {};
518
518
  return e?.forEach((e) => {
@@ -520,27 +520,27 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
520
520
  r == null && F(e) ? n[e] = r : typeof r == "object" ? n[e] = JSON.stringify(r) : typeof r == "boolean" ? n[e] = r ? "true" : "false" : n[e] = r ?? "";
521
521
  }), n;
522
522
  }) || [], n = se(t, {
523
- chartFieldFormats: be,
523
+ chartFieldFormats: xe,
524
524
  columns: e,
525
525
  includeRowNumbers: !1,
526
526
  uppercaseHeaders: !1,
527
527
  quoteAllValues: !0
528
528
  }), r = new Blob(["", n], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a"), a = URL.createObjectURL(r);
529
- i.setAttribute("href", a), i.setAttribute("download", `${O || "export"}.csv`), i.style.visibility = "hidden", document.body.appendChild(i), i.click(), document.body.removeChild(i), nt?.(!1), at?.(!1);
529
+ i.setAttribute("href", a), i.setAttribute("download", `${O || "export"}.csv`), i.style.visibility = "hidden", document.body.appendChild(i), i.click(), document.body.removeChild(i), rt?.(!1), ot?.(!1);
530
530
  };
531
531
  x(() => {
532
- it && an();
533
- }, [it]);
534
- let on = (e) => {
532
+ at && on();
533
+ }, [at]);
534
+ let sn = (e) => {
535
535
  let t = Number(e.currentTarget.dataset.columnIndex);
536
- xt(t);
537
- }, [sn, cn] = C({
536
+ St(t);
537
+ }, [cn, ln] = C({
538
538
  isOpen: !1,
539
539
  column: ""
540
- }), ln = (e) => {
540
+ }), un = (e) => {
541
541
  e.preventDefault();
542
- let t = Number(e.currentTarget.dataset.columnIndex), n = [...L], [r] = n.splice(bt, 1);
543
- n.splice(t, 0, r), ht(n), xt(null);
542
+ let t = Number(e.currentTarget.dataset.columnIndex), n = [...L], [r] = n.splice(xt, 1);
543
+ n.splice(t, 0, r), gt(n), St(null);
544
544
  };
545
545
  x(() => {
546
546
  let e = K.getState()?.sorting?.length > 0;
@@ -552,11 +552,11 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
552
552
  ]), x(() => {
553
553
  K.setPageSize(Number(z.value));
554
554
  }, [z, K]);
555
- let { pageIndex: J, pageSize: un } = K.getState().pagination, Y = S(() => {
555
+ let { pageIndex: J, pageSize: dn } = K.getState().pagination, Y = S(() => {
556
556
  let t = B || P ? K.getRowModel().rows.length : e?.length || 0;
557
557
  return {
558
- from: t === 0 ? 0 : un * J + 1,
559
- to: t <= un * (J + 1) ? t : un * (J + 1),
558
+ from: t === 0 ? 0 : dn * J + 1,
559
+ to: t <= dn * (J + 1) ? t : dn * (J + 1),
560
560
  total: t
561
561
  };
562
562
  }, [
@@ -565,40 +565,40 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
565
565
  P,
566
566
  e?.length,
567
567
  J,
568
- un
568
+ dn
569
569
  ]), { pageCount: X, currentPage: Z } = S(() => N && A ? {
570
570
  pageCount: Math.ceil(N.totalRecords / N.limit),
571
571
  currentPage: Math.floor(N.offset / N.limit)
572
572
  } : {
573
573
  pageCount: 1,
574
574
  currentPage: 0
575
- }, [A, N]), dn;
575
+ }, [A, N]), fn;
576
576
  if (A) {
577
577
  let e = g(N.totalRecords, !0)?.toString()?.split(".");
578
- dn = e?.length > 1 && [...e[1]].some((e) => parseInt(e, 10) > 0) ? g(N.totalRecords, !0) : g(N.totalRecords, !1);
578
+ fn = e?.length > 1 && [...e[1]].some((e) => parseInt(e, 10) > 0) ? g(N.totalRecords, !0) : g(N.totalRecords, !1);
579
579
  }
580
580
  x(() => {
581
- K.getIsSomeColumnsVisible() && Ce?.();
581
+ K.getIsSomeColumnsVisible() && we?.();
582
582
  }, [K.getIsSomeColumnsVisible()]);
583
- let Q = (e, t) => t?.includes(e) ? j.badge : "", fn = (e, t) => t?.includes(e) ? j.list : "";
583
+ let Q = (e, t) => t?.includes(e) ? j.badge : "", pn = (e, t) => t?.includes(e) ? j.list : "";
584
584
  x(() => {
585
585
  D?.isEnableColumnFilter || K.resetColumnFilters();
586
586
  }, [K, D?.isEnableColumnFilter]), x(() => {
587
- K.getState().columnFilters?.length && (Wt(K.getState().columnFilters), ze?.(K.getState().columnFilters));
587
+ K.getState().columnFilters?.length && (Gt(K.getState().columnFilters), Be?.(K.getState().columnFilters));
588
588
  }, [K]);
589
- let pn = ye(O);
589
+ let mn = be(O);
590
590
  x(() => {
591
- U?.length && ((pn.current !== O || !I.length) && mt(Object.keys(U[0] || {})), pn.current = O);
591
+ U?.length && ((mn.current !== O || !I.length) && ht(Object.keys(U[0] || {})), mn.current = O);
592
592
  }, [U?.[0], O]);
593
- let [mn, hn] = C(1);
593
+ let [hn, gn] = C(1);
594
594
  x(() => {
595
- hn(A ? Z + 1 : J + 1);
595
+ gn(A ? Z + 1 : J + 1);
596
596
  }, [Z, J]);
597
- let $ = window.CSS && CSS.supports("width", "clamp(1px, 1px, 1px)"), gn = D?.hideTableHeader ? 0 : K.getHeaderGroups()?.length || 0, _n = D?.aggregateRow?.isEnable && D?.aggregateRow?.columns?.length ? 1 : 0, vn = ve({
598
- headerRowCount: gn,
599
- footerRowCount: _n,
597
+ let $ = window.CSS && CSS.supports("width", "clamp(1px, 1px, 1px)"), _n = D?.hideTableHeader ? 0 : K.getHeaderGroups()?.length || 0, vn = D?.aggregateRow?.isEnable && D?.aggregateRow?.columns?.length ? 1 : 0, yn = ye({
598
+ headerRowCount: _n,
599
+ footerRowCount: vn,
600
600
  isExternalChart: A,
601
- isInfiniteScroll: Be,
601
+ isInfiniteScroll: Ve,
602
602
  isServerSidePagination: D?.isServerSidePagination,
603
603
  pageIndex: V.pageIndex,
604
604
  pageSize: V.pageSize,
@@ -607,21 +607,21 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
607
607
  totalDataRows: Y.total
608
608
  });
609
609
  return /* @__PURE__ */ E("div", {
610
- className: `${j.container} ${xe}`,
610
+ className: `${j.container} ${Se}`,
611
611
  children: [/* @__PURE__ */ E("div", {
612
612
  className: j.previewTable,
613
613
  children: [
614
- D?.enableTableSearch && D?.searchPosition === "left" && !ze ? /* @__PURE__ */ T("div", {
614
+ D?.enableTableSearch && D?.searchPosition === "left" && !Be ? /* @__PURE__ */ T("div", {
615
615
  className: "dbn:w-full dbn:flex dbn:items-center dbn:justify-start",
616
616
  style: { order: 0 },
617
617
  children: /* @__PURE__ */ T(M, {
618
618
  value: typeof B?.[0] == "string" ? B?.[0] : "",
619
- onChange: (e) => Wt(() => [String(e)]),
619
+ onChange: (e) => Gt(() => [String(e)]),
620
620
  placeholder: "Search",
621
621
  style: { maxWidth: "249px" }
622
622
  })
623
623
  }) : null,
624
- D?.enableTableSearch && !ze && D?.searchPosition !== "left" || D?.showTableTitle && D.tableTitle ? /* @__PURE__ */ E("div", {
624
+ D?.enableTableSearch && !Be && D?.searchPosition !== "left" || D?.showTableTitle && D.tableTitle ? /* @__PURE__ */ E("div", {
625
625
  className: D.showTableTitle ? j.preview : j.searchButton,
626
626
  style: { order: 1 },
627
627
  children: [D.showTableTitle && /* @__PURE__ */ E("div", {
@@ -634,7 +634,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
634
634
  }), /* @__PURE__ */ E("div", {
635
635
  className: `${D.showColumnFilter ? "" : "dbn:w-[30%]"} dbn:flex dbn:items-center dbn:gap-2`,
636
636
  children: [
637
- D.showColumnFilter && /* @__PURE__ */ T(s, {
637
+ D.showColumnFilter && /* @__PURE__ */ T(a, {
638
638
  options: Object.keys(U?.[0] || {})?.map((e) => ({
639
639
  label: e,
640
640
  value: e
@@ -644,7 +644,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
644
644
  label: e
645
645
  })) || [],
646
646
  onChange: (e) => {
647
- mt(e?.map((e) => e.value));
647
+ ht(e?.map((e) => e.value));
648
648
  },
649
649
  isSelectAllEnabled: !0,
650
650
  isSelectAllOn: !0,
@@ -654,13 +654,13 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
654
654
  buttonWidth: "250px",
655
655
  menuWidth: "250px"
656
656
  }),
657
- D.showDownloadBtn && /* @__PURE__ */ T(n, {
657
+ D.showDownloadBtn && /* @__PURE__ */ T(o, {
658
658
  variant: "popover",
659
659
  onClick: () => {
660
- rt?.(L?.map((e) => typeof e.header == "function" ? e.header() : e.header));
660
+ it?.(L?.map((e) => typeof e.header == "function" ? e.header() : e.header));
661
661
  },
662
- isDisabled: tt,
663
- leftIcon: tt ? /* @__PURE__ */ T("div", {
662
+ isDisabled: nt,
663
+ leftIcon: nt ? /* @__PURE__ */ T("div", {
664
664
  className: "dbn:animate-spin",
665
665
  children: /* @__PURE__ */ T(u, {
666
666
  name: "table-downloading",
@@ -673,9 +673,9 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
673
673
  }),
674
674
  className: "dbn:p-2.5 dbn:border dbn:border-secondary dbn:rounded-md"
675
675
  }),
676
- D.enableTableSearch && D?.searchPosition !== "left" && !ze && /* @__PURE__ */ T(M, {
676
+ D.enableTableSearch && D?.searchPosition !== "left" && !Be && /* @__PURE__ */ T(M, {
677
677
  value: typeof B?.[0] == "string" ? B?.[0] : "",
678
- onChange: (e) => Wt(() => [String(e)]),
678
+ onChange: (e) => Gt(() => [String(e)]),
679
679
  placeholder: "Search"
680
680
  })
681
681
  ]
@@ -683,33 +683,33 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
683
683
  }) : null,
684
684
  /* @__PURE__ */ E("div", {
685
685
  className: `${j.tableData} ${D?.hideBorder ? j.noBorder : ""}`,
686
- "data-dbn-underlying-data-surface": ut || void 0,
686
+ "data-dbn-underlying-data-surface": dt || void 0,
687
687
  ref: H,
688
688
  style: { order: D?.paginationPosition === "top" ? 3 : 2 },
689
689
  children: [
690
- y && !e?.length || Jt ? /* @__PURE__ */ T(te, {
690
+ y && !e?.length || Yt ? /* @__PURE__ */ T(ee, {
691
691
  variant: "table",
692
692
  tableRows: 6
693
693
  }) : null,
694
- (!!R?.length || D?.isEnableColumnFilter) && !y && !Jt && /* @__PURE__ */ E(ge, {
694
+ (!!R?.length || D?.isEnableColumnFilter) && !y && !Yt && /* @__PURE__ */ E(_e, {
695
695
  style: { height: "100%" },
696
696
  className: !R?.length || !W?.length ? j.emptyFilterData : "",
697
697
  children: [
698
- !(!dt && !W?.length && e?.length && (P?.[0] || B?.[0])) && /* @__PURE__ */ E("table", {
698
+ !(!ft && !W?.length && e?.length && (P?.[0] || B?.[0])) && /* @__PURE__ */ E("table", {
699
699
  className: j.table,
700
- "aria-rowcount": vn.totalRows > 0 ? vn.ariaRowCount : -1,
700
+ "aria-rowcount": yn.totalRows > 0 ? yn.ariaRowCount : -1,
701
701
  children: [
702
702
  D?.hideTableHeader ? null : /* @__PURE__ */ T("thead", { children: K.getHeaderGroups()?.map((e, t) => /* @__PURE__ */ T("tr", {
703
703
  className: j.row,
704
704
  "data-testid": "table-header-row",
705
705
  "aria-rowindex": t + 1,
706
706
  children: e.headers?.map((e, t) => {
707
- let r = D?.customHeaderColor?.color || "", i = D?.customHeaderColor?.isEnabled ? r.startsWith("var(") ? "var(--surface-hover, var(--dbn-color-snow))" : ce(r) : "", a = "", o = D?.customHeaderColor?.textColor || "";
708
- return gt !== e?.id && D?.customHeaderColor?.isEnabled && (o = D?.customHeaderColor?.textColor || "", a = D?.customHeaderColor?.color || ""), gt === e?.id && D?.customHeaderColor?.isEnabled && (a = D?.customHeaderColor?.textColor || "", o = D?.customHeaderColor?.color || ""), /* @__PURE__ */ E("th", {
707
+ let n = D?.customHeaderColor?.color || "", r = D?.customHeaderColor?.isEnabled ? n.startsWith("var(") ? "var(--surface-hover, var(--dbn-color-snow))" : ce(n) : "", i = "", a = D?.customHeaderColor?.textColor || "";
708
+ return _t !== e?.id && D?.customHeaderColor?.isEnabled && (a = D?.customHeaderColor?.textColor || "", i = D?.customHeaderColor?.color || ""), _t === e?.id && D?.customHeaderColor?.isEnabled && (i = D?.customHeaderColor?.textColor || "", a = D?.customHeaderColor?.color || ""), /* @__PURE__ */ E("th", {
709
709
  "data-testid": `${e.id}-header`,
710
- className: `${j.tableHeadCol} ${D?.hideVerticalDivider ? "" : j.tableBorderRight} ${D?.hideHorizontalDivider ? "" : j.tableBorderBottom} hover:dbn-bg-[${i}]`,
710
+ className: `${j.tableHeadCol} ${D?.hideVerticalDivider ? "" : j.tableBorderRight} ${D?.hideHorizontalDivider ? "" : j.tableBorderBottom} hover:dbn-bg-[${r}]`,
711
711
  onContextMenu: (t) => {
712
- t.preventDefault(), D?.isSepAlign && !$e && !ke && cn({
712
+ t.preventDefault(), D?.isSepAlign && !et && !Ae && ln({
713
713
  isOpen: !0,
714
714
  column: e.id
715
715
  });
@@ -717,17 +717,17 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
717
717
  colSpan: e.colSpan,
718
718
  style: {
719
719
  width: e.getSize(),
720
- backgroundColor: a || "",
721
- color: o || ""
720
+ backgroundColor: i || "",
721
+ color: a || ""
722
722
  },
723
723
  draggable: !e.column.getIsResizing(),
724
- onMouseOver: () => _t(e.id),
725
- onMouseOut: () => _t(""),
724
+ onMouseOver: () => vt(e.id),
725
+ onMouseOut: () => vt(""),
726
726
  "data-column-index": t,
727
- onDragStart: on,
727
+ onDragStart: sn,
728
728
  onDragOver: (e) => e.preventDefault(),
729
- onDrop: ln,
730
- children: [/* @__PURE__ */ T(n, {
729
+ onDrop: un,
730
+ children: [/* @__PURE__ */ T(o, {
731
731
  onMouseDown: e.getResizeHandler(),
732
732
  variant: "popover",
733
733
  onTouchStart: e.getResizeHandler(),
@@ -740,138 +740,138 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
740
740
  onClick: e.column.getToggleSortingHandler(),
741
741
  children: [e.isPlaceholder ? null : /* @__PURE__ */ T("span", {
742
742
  style: {
743
- ...jt,
744
- color: o
743
+ ...Mt,
744
+ color: a
745
745
  },
746
746
  className: D?.textWrap?.headerWrap ? j.wrapCellText : j.truncateText,
747
- children: fe(e.column.columnDef.header, e.getContext())
747
+ children: pe(e.column.columnDef.header, e.getContext())
748
748
  }), /* @__PURE__ */ E("div", {
749
749
  className: `dbn-interactive-element ${j.sortIcon}`,
750
750
  children: [{
751
751
  asc: /* @__PURE__ */ T(u, {
752
752
  name: "caret-up-fill",
753
- customColor: o || ""
753
+ customColor: a || ""
754
754
  }),
755
755
  desc: /* @__PURE__ */ T(u, {
756
756
  name: "caret-down-fill",
757
- customColor: o || ""
757
+ customColor: a || ""
758
758
  })
759
759
  }[e.column.getIsSorted()] ?? /* @__PURE__ */ T(u, {
760
760
  name: "caret-up-down",
761
- customColor: o || ""
761
+ customColor: a || ""
762
762
  }), e.column.getCanFilter() && D?.isEnableColumnFilter ? /* @__PURE__ */ T("span", {
763
763
  onClick: (e) => e.stopPropagation(),
764
- children: /* @__PURE__ */ T(n, {
764
+ children: /* @__PURE__ */ T(o, {
765
765
  variant: "popover",
766
766
  leftIcon: /* @__PURE__ */ T(u, {
767
767
  name: "funnel",
768
- customColor: o || ""
768
+ customColor: a || ""
769
769
  }),
770
770
  onClick: () => {
771
- St?.includes(e.id) ? (Ct((t) => t.filter((t) => t !== e.id)), ct?.({
771
+ Ct?.includes(e.id) ? (wt((t) => t.filter((t) => t !== e.id)), lt?.({
772
772
  columnAlias: e.id,
773
773
  value: "",
774
774
  isClear: !0
775
- })) : Ct((t) => [...t, e.id]);
775
+ })) : wt((t) => [...t, e.id]);
776
776
  }
777
777
  })
778
778
  }) : null]
779
779
  })]
780
- }), e.column.getCanFilter() && D?.isEnableColumnFilter && (St?.includes(e.id) || D?.isServerSidePagination && st?.find((t) => t?.columnAlias === e?.id)) ? /* @__PURE__ */ T("div", {
780
+ }), e.column.getCanFilter() && D?.isEnableColumnFilter && (Ct?.includes(e.id) || D?.isServerSidePagination && ct?.find((t) => t?.columnAlias === e?.id)) ? /* @__PURE__ */ T("div", {
781
781
  className: "dbn:w-full dbn:mt-2",
782
- children: /* @__PURE__ */ T(Ee, {
782
+ children: /* @__PURE__ */ T(De, {
783
783
  column: e.column,
784
784
  table: K,
785
785
  dropdownFilterVariant: !!(D?.isEnableDropdownFilter && D?.dropdownFilterCols?.includes(e.column.id)),
786
- onChangePaginationColumnFilters: D?.isServerSidePagination ? ct : void 0,
787
- tableColumnFilters: D?.isServerSidePagination ? st : void 0
786
+ onChangePaginationColumnFilters: D?.isServerSidePagination ? lt : void 0,
787
+ tableColumnFilters: D?.isServerSidePagination ? ct : void 0
788
788
  })
789
789
  }) : null] }) : /* @__PURE__ */ T(w, { children: e.isPlaceholder ? null : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("div", {
790
790
  className: j.sortButton,
791
791
  children: [/* @__PURE__ */ T("span", {
792
792
  style: {
793
- ...jt,
794
- color: o,
793
+ ...Mt,
794
+ color: a,
795
795
  fontSize: D?.headerFontSize ? `${D?.headerFontSize}px` : $ ? "clamp(0.4rem, 5cqw, 0.75rem)" : "0.75rem"
796
796
  },
797
797
  className: D?.textWrap?.headerWrap ? j.wrapCellText : j.truncateText,
798
- children: fe(e.column.columnDef.header, e.getContext())
798
+ children: pe(e.column.columnDef.header, e.getContext())
799
799
  }), e.column.getCanFilter() && D?.isEnableColumnFilter ? /* @__PURE__ */ T("span", {
800
800
  onClick: (e) => e.stopPropagation(),
801
- children: /* @__PURE__ */ T(n, {
801
+ children: /* @__PURE__ */ T(o, {
802
802
  variant: "popover",
803
803
  leftIcon: /* @__PURE__ */ T(u, {
804
804
  name: "funnel",
805
- customColor: o || ""
805
+ customColor: a || ""
806
806
  }),
807
807
  onClick: () => {
808
- St?.includes(e.id) ? (Ct((t) => t.filter((t) => t !== e.id)), ct?.({
808
+ Ct?.includes(e.id) ? (wt((t) => t.filter((t) => t !== e.id)), lt?.({
809
809
  columnAlias: e.id,
810
810
  value: "",
811
811
  isClear: !0
812
- })) : Ct((t) => [...t, e.id]);
812
+ })) : wt((t) => [...t, e.id]);
813
813
  }
814
814
  })
815
815
  }) : null]
816
- }), e.column.getCanFilter() && D?.isEnableColumnFilter && (St?.includes(e.id) || D?.isServerSidePagination && st?.find((t) => t?.columnAlias === e?.id)) ? /* @__PURE__ */ T("div", {
816
+ }), e.column.getCanFilter() && D?.isEnableColumnFilter && (Ct?.includes(e.id) || D?.isServerSidePagination && ct?.find((t) => t?.columnAlias === e?.id)) ? /* @__PURE__ */ T("div", {
817
817
  className: "dbn:w-full dbn:mt-2",
818
- children: /* @__PURE__ */ T(Ee, {
818
+ children: /* @__PURE__ */ T(De, {
819
819
  column: e.column,
820
820
  table: K,
821
821
  dropdownFilterVariant: !!(D?.isEnableDropdownFilter && D?.dropdownFilterCols?.includes(e.column.id)),
822
- onChangePaginationColumnFilters: D?.isServerSidePagination ? ct : void 0,
823
- tableColumnFilters: D?.isServerSidePagination ? st : void 0
822
+ onChangePaginationColumnFilters: D?.isServerSidePagination ? lt : void 0,
823
+ tableColumnFilters: D?.isServerSidePagination ? ct : void 0
824
824
  })
825
825
  }) : null] }) })]
826
826
  }, e.id);
827
827
  })
828
828
  }, e.id)) }),
829
829
  R?.length ? /* @__PURE__ */ T(w, { children: /* @__PURE__ */ E("tbody", { children: [
830
- tn > 0 ? /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
831
- colSpan: rn,
830
+ nn > 0 ? /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
831
+ colSpan: an,
832
832
  style: {
833
- height: `${tn}px`,
833
+ height: `${nn}px`,
834
834
  padding: 0,
835
835
  border: 0
836
836
  }
837
837
  }) }) : null,
838
838
  q.map((e) => {
839
- let t = $t[e.index];
839
+ let t = en[e.index];
840
840
  if (!t) return null;
841
- let r = e.index;
841
+ let n = e.index;
842
842
  return /* @__PURE__ */ T("tr", {
843
- ref: en.measureElement,
844
- "data-index": r,
843
+ ref: tn.measureElement,
844
+ "data-index": n,
845
845
  "data-testid": `table-row-${t.id}`,
846
- "aria-rowindex": vn.firstRowIndex + r,
847
- style: Je?.click ? { cursor: "pointer" } : void 0,
848
- className: `${D?.showRowHover ? j.rowHover : ""} ${D?.enableStripedRows && Number(r) % 2 != 0 ? j.stripedRow : ""}`,
846
+ "aria-rowindex": yn.firstRowIndex + n,
847
+ style: Ye?.click ? { cursor: "pointer" } : void 0,
848
+ className: `${D?.showRowHover ? j.rowHover : ""} ${D?.enableStripedRows && Number(n) % 2 != 0 ? j.stripedRow : ""}`,
849
849
  onClick: () => {
850
- Je?.click({}, Object.keys(t.original ?? {})?.map((e) => ({
850
+ Ye?.click({}, Object.keys(t.original ?? {})?.map((e) => ({
851
851
  columnName: e,
852
852
  value: t.original?.[e]
853
853
  })));
854
854
  },
855
855
  children: t.getVisibleCells()?.map((e, t) => {
856
- let r = [], i = "", a = !!(D?.isEnableViewDetails && e.column?.id === "View Details");
857
- Q(e.column.id, D?.badgeColumns) ? (i = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), r = i?.toString()?.includes(wt) ? i?.toString()?.split(wt) : [i]) : fn(e.column.id, D?.listColumns) && (i = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), r = i?.toString()?.includes(Et) ? i?.toString()?.split(D?.listSeparator || ",") : [i]);
858
- let o = Ft?.find((t) => t.id === e.id)?.isShowMore, s = D?.tableNumberFormatter?.find((t) => t.columns?.includes(e.column.id)), c = D?.isEnableNumberFormatting && (!!s || D?.formattedColumns?.includes(e.column.id)), l = Xe?.length ? Xe?.find((t) => t?.measures?.includes(e.column.id)) : void 0, ee = l?.numberFormatter || s?.formatter || D?.tableFormatter, te = l?.prefix || s?.prefix || D?.tablePrefix || "", ne = l?.suffix || s?.suffix || D?.tableSuffix || "", re = D?.isEnableNumberFormatting && D?.isEnableTimezoneFormatting && Le?.includes(e.column.id), d = D?.textWrap?.isEnable && D?.textWrap?.columns?.includes(e?.column?.id), ie = () => {
859
- if (!a && F(e.column.id)) return String(pt(e.getValue(), e.column.id) ?? "");
856
+ let n = [], r = "", i = !!(D?.isEnableViewDetails && e.column?.id === "View Details");
857
+ Q(e.column.id, D?.badgeColumns) ? (r = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n = r?.toString()?.includes(Tt) ? r?.toString()?.split(Tt) : [r]) : pn(e.column.id, D?.listColumns) && (r = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n = r?.toString()?.includes(Dt) ? r?.toString()?.split(D?.listSeparator || ",") : [r]);
858
+ let a = It?.find((t) => t.id === e.id)?.isShowMore, s = D?.tableNumberFormatter?.find((t) => t.columns?.includes(e.column.id)), c = D?.isEnableNumberFormatting && (!!s || D?.formattedColumns?.includes(e.column.id)), l = Ze?.length ? Ze?.find((t) => t?.measures?.includes(e.column.id)) : void 0, ee = l?.numberFormatter || s?.formatter || D?.tableFormatter, te = l?.prefix || s?.prefix || D?.tablePrefix || "", ne = l?.suffix || s?.suffix || D?.tableSuffix || "", re = D?.isEnableNumberFormatting && D?.isEnableTimezoneFormatting && Re?.includes(e.column.id), ie = D?.textWrap?.isEnable && D?.textWrap?.columns?.includes(e?.column?.id), d = () => {
859
+ if (!i && F(e.column.id)) return String(mt(e.getValue(), e.column.id) ?? "");
860
860
  if (D?.replaceNullValuesWithEmpty && (e?.getValue() === "null" || e?.getValue() === null)) return "";
861
861
  if (D?.replaceNullValues && (e?.getValue() === "null" || e?.getValue() === null)) return "-";
862
- if (a) {
863
- let t = e?.row?.index, r = W[t] || [], i = Object?.keys(r)?.map((e) => ({
862
+ if (i) {
863
+ let t = e?.row?.index, n = W[t] || [], r = Object?.keys(n)?.map((e) => ({
864
864
  column: e,
865
- value: r[e]
865
+ value: n[e]
866
866
  }));
867
- return /* @__PURE__ */ T(n, {
867
+ return /* @__PURE__ */ T(o, {
868
868
  variant: "popover",
869
869
  size: "small",
870
870
  className: "dbn:text-link-text dbn:hover:underline",
871
871
  onClick: () => {
872
- yt({
872
+ bt({
873
873
  isShow: !0,
874
- data: i
874
+ data: r
875
875
  });
876
876
  },
877
877
  children: D?.customViewText || "View"
@@ -881,32 +881,32 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
881
881
  let t = e?.getValue(), n = Number(t);
882
882
  return t == null || isNaN(n) ? `${t}` : `${te}${oe(n || 0, ee)}${ne}`;
883
883
  }
884
- return re ? ae(e?.getValue()?.toString() || "", D?.timeFormatter || "") : fe(e.column.columnDef.cell, e.getContext());
885
- }, f = $e && !et && D?.chartAction ? (() => {
884
+ return re ? ae(e?.getValue()?.toString() || "", D?.timeFormatter || "") : pe(e.column.columnDef.cell, e.getContext());
885
+ }, f = et && !tt && D?.chartAction ? (() => {
886
886
  if (D?.chartAction?.isEnableCustomRedirection) {
887
887
  let t = D?.chartAction?.clickValues?.find((t) => t.text === e?.getValue()?.toString());
888
888
  if (t) return t;
889
889
  }
890
890
  return D?.chartAction?.isEnableCustomColumnRedirection ? D?.chartAction?.clickColumns?.find((t) => t.colName === e?.column?.id) : null;
891
891
  })() : null, p = f?.link, m = f && "text" in f, h = f && "colName" in f, se = f?.isOpenInNewTab, ce = j.truncateText;
892
- d && (ce = D?.hideTableHeader && D?.isHideHorizontalScroll ? j.wrapCellText : j.wrapText);
893
- let g = _e({
892
+ ie && (ce = D?.hideTableHeader && D?.isHideHorizontalScroll ? j.wrapCellText : j.wrapText);
893
+ let g = ve({
894
894
  rules: D?.conditionalFormatting?.find(({ columnName: t }) => t === e?.column?.id)?.rules || [],
895
895
  value: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(),
896
896
  formatter: ee
897
- }), _ = g?.prefix || "", ue = g?.suffix || "", v = !Object.keys(g)?.length && D?.badgeColumns?.includes(e.column.id) ? Mt(e.column.id, D?.badgeColors, D?.badgeTextColors) : g, de = "", y = (v?.isApplyBadgeColor || !(v?.isApplyBgColor || !v?.badgeColor)) && !!Object.keys(g)?.length;
898
- y ? de = v?.badgeColor : D?.badgeColumns?.includes(e.column.id) && (de = Mt(e.column.id, D?.badgeColors, D?.badgeTextColors)?.backgroundColor);
899
- let pe = g;
897
+ }), _ = g?.prefix || "", de = g?.suffix || "", v = !Object.keys(g)?.length && D?.badgeColumns?.includes(e.column.id) ? Nt(e.column.id, D?.badgeColors, D?.badgeTextColors) : g, fe = "", y = (v?.isApplyBadgeColor || !(v?.isApplyBgColor || !v?.badgeColor)) && !!Object.keys(g)?.length;
898
+ y ? fe = v?.badgeColor : D?.badgeColumns?.includes(e.column.id) && (fe = Nt(e.column.id, D?.badgeColors, D?.badgeTextColors)?.backgroundColor);
899
+ let me = g;
900
900
  if (g && "backgroundColor" in g && y) {
901
901
  let { backgroundColor: e, ...t } = g;
902
- pe = t;
902
+ me = t;
903
903
  }
904
904
  return /* @__PURE__ */ E("td", {
905
905
  "data-testid": e.id,
906
- className: `${j.tableRowCol} ${D?.hideVerticalDivider ? "" : j.tableBorderRight} ${D?.isRemovePadding ? "" : j.horizontalPadding} ${D?.hideHorizontalDivider ? "" : j.tableBorderBottom} ${bt === t ? j.columnDrag : ""}`,
906
+ className: `${j.tableRowCol} ${D?.hideVerticalDivider ? "" : j.tableBorderRight} ${D?.isRemovePadding ? "" : j.horizontalPadding} ${D?.hideHorizontalDivider ? "" : j.tableBorderBottom} ${xt === t ? j.columnDrag : ""}`,
907
907
  title: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : `${e.getValue()}`,
908
908
  onContextMenu: (t) => {
909
- typeof e.getValue() == "string" && Je?.contextmenu({ name: `${e.getValue()}` });
909
+ typeof e.getValue() == "string" && Ye?.contextmenu({ name: `${e.getValue()}` });
910
910
  },
911
911
  style: D?.hideTableHeader ? {
912
912
  width: D?.isHideHorizontalScroll ? `${e.column.getSize() / K.getTotalSize() * 100}%` : $ && G?.length < 6 ? `clamp(
@@ -921,29 +921,29 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
921
921
  } : {}
922
922
  } : {},
923
923
  children: [
924
- !!D && !ut && /* @__PURE__ */ T("div", {
924
+ !!D && !dt && /* @__PURE__ */ T("div", {
925
925
  style: Q(e.column.id, D.listColumns) ? {
926
- ...At,
927
- ...pe
926
+ ...jt,
927
+ ...me
928
928
  } : {
929
- ...kt,
930
- ...pe,
929
+ ...At,
930
+ ...me,
931
931
  ...D?.isSepAlign && Object.keys(D?.colAlignments || []).includes(e.column.id) ? { justifyContent: D?.colAlignments?.[e.column.id] } : {}
932
932
  },
933
- children: i?.toString()?.includes(wt) || i?.toString()?.includes(Et) ? /* @__PURE__ */ E(w, { children: [(D.listColumns && !o ? r?.slice(0, 3) : r)?.map((t) => /* @__PURE__ */ T(w, { children: Q(e.column.id, D.badgeColumns) ? /* @__PURE__ */ E("span", {
933
+ children: r?.toString()?.includes(Tt) || r?.toString()?.includes(Dt) ? /* @__PURE__ */ E(w, { children: [(D.listColumns && !a ? n?.slice(0, 3) : n)?.map((t) => /* @__PURE__ */ T(w, { children: Q(e.column.id, D.badgeColumns) ? /* @__PURE__ */ E("span", {
934
934
  className: `${ce} ${Q(e.column.id, D.badgeColumns)}`,
935
935
  style: {
936
936
  fontFamily: D?.contentFont,
937
937
  color: D?.contentColor || "var(--dbn-txt-primary, #252525)",
938
938
  ...v,
939
939
  fontWeight: D?.contentWeight || 500,
940
- backgroundColor: de || "",
940
+ backgroundColor: fe || "",
941
941
  fontSize: D?.contentFontSize ? `${D?.contentFontSize}px` : $ ? "clamp(0.4rem, 5cqw, 0.875rem)" : "0.875rem"
942
942
  },
943
943
  children: [
944
944
  _,
945
- F(e.column.id) ? String(pt(t, e.column.id) ?? "") : c ? `${te}${oe(Number(t) || 0, ee)}${ne}` : t,
946
- ue
945
+ F(e.column.id) ? String(mt(t, e.column.id) ?? "") : c ? `${te}${oe(Number(t) || 0, ee)}${ne}` : t,
946
+ de
947
947
  ]
948
948
  }, t) : /* @__PURE__ */ E("div", {
949
949
  className: `${ce} ${j.listItemDiv}`,
@@ -960,14 +960,14 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
960
960
  },
961
961
  children: [
962
962
  _,
963
- F(e.column.id) ? String(pt(t, e.column.id) ?? "") : t,
964
- ue
963
+ F(e.column.id) ? String(mt(t, e.column.id) ?? "") : t,
964
+ de
965
965
  ]
966
966
  })]
967
- }, t) })), Q(e.column.id, D.listColumns) && r.length > 3 && !o ? /* @__PURE__ */ E(n, {
967
+ }, t) })), Q(e.column.id, D.listColumns) && n.length > 3 && !a ? /* @__PURE__ */ E(o, {
968
968
  variant: "popover",
969
969
  className: `${j.truncateIcon} dbn:bg-gray`,
970
- onClick: () => It((n) => {
970
+ onClick: () => Lt((n) => {
971
971
  let r = n.findIndex((t) => t.id === e.id);
972
972
  return r === -1 ? [...n, {
973
973
  id: e.id,
@@ -981,40 +981,40 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
981
981
  name: "plus",
982
982
  size: "xxs",
983
983
  color: "secondary-dark"
984
- }), r.length - 3]
985
- }) : null] }) : ie() === "" ? /* @__PURE__ */ T(w, {}) : /* @__PURE__ */ E("span", {
984
+ }), n.length - 3]
985
+ }) : null] }) : d() === "" ? /* @__PURE__ */ T(w, {}) : /* @__PURE__ */ E("span", {
986
986
  "data-testid": "cell-content",
987
- className: `${ce} ${Q(e.column.id, D.badgeColumns) || y ? j.badge : ""} ${f && "text" in f && !m ? j.link : ""} ${j.customLink} ${d && D?.textWrap?.enableLineBreaks ? j.textLineBreak : ""}`,
987
+ className: `${ce} ${Q(e.column.id, D.badgeColumns) || y ? j.badge : ""} ${f && "text" in f && !m ? j.link : ""} ${j.customLink} ${ie && D?.textWrap?.enableLineBreaks ? j.textLineBreak : ""}`,
988
988
  style: {
989
989
  fontFamily: D?.contentFont,
990
990
  color: D?.contentColor || "var(--dbn-txt-primary, #252525)",
991
991
  ...v,
992
992
  fontWeight: D?.contentWeight || 500,
993
- backgroundColor: de || "",
993
+ backgroundColor: fe || "",
994
994
  fontSize: D?.contentFontSize ? `${D?.contentFontSize}px` : $ ? "clamp(0.4rem, 5cqw, 0.875rem)" : "0.875rem"
995
995
  },
996
996
  children: [/* @__PURE__ */ E("span", {
997
- className: `${d ? "" : "dbn:truncate"} ${m || h ? "dbn:w-[90%]" : ""}`,
997
+ className: `${ie ? "" : "dbn:truncate"} ${m || h ? "dbn:w-[90%]" : ""}`,
998
998
  children: [
999
999
  _,
1000
- ie(),
1001
- ue
1000
+ d(),
1001
+ de
1002
1002
  ]
1003
- }), m || h ? /* @__PURE__ */ T(n, {
1003
+ }), m || h ? /* @__PURE__ */ T(o, {
1004
1004
  variant: "popover",
1005
1005
  onClick: (t) => {
1006
- Je?.click && f && (t.preventDefault(), t.stopPropagation(), h ? le({
1006
+ Ye?.click && f && (t.preventDefault(), t.stopPropagation(), h ? le({
1007
1007
  isEnable: !0,
1008
1008
  route: p ?? "",
1009
1009
  isOpenInNewTab: se
1010
- }, e?.getValue()?.toString() ?? "") : se ? window.open(p, "_blank") : window.location.href = p || "");
1010
+ }, e?.getValue()?.toString() ?? "") : ue(p, se));
1011
1011
  },
1012
1012
  onContextMenu: (t) => {
1013
- Je?.click && f && (t.preventDefault(), t.stopPropagation(), h ? le({
1013
+ Ye?.click && f && (t.preventDefault(), t.stopPropagation(), h ? le({
1014
1014
  isEnable: !0,
1015
1015
  route: p ?? "",
1016
1016
  isOpenInNewTab: se
1017
- }, e?.getValue()?.toString() ?? "") : se ? window.open(p, "_blank") : window.location.href = p || "");
1017
+ }, e?.getValue()?.toString() ?? "") : ue(p, se));
1018
1018
  },
1019
1019
  containerClass: "dbn-interactive-element",
1020
1020
  className: m ? j.link : "",
@@ -1025,19 +1025,19 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1025
1025
  }) : null]
1026
1026
  })
1027
1027
  }),
1028
- (!D || ut) && /* @__PURE__ */ T("div", {
1028
+ (!D || dt) && /* @__PURE__ */ T("div", {
1029
1029
  style: {
1030
1030
  textAlign: "center",
1031
1031
  width: "100%",
1032
- ...ut ? {
1032
+ ...dt ? {
1033
1033
  color: D?.contentColor || "var(--dbn-txt-primary, #252525)",
1034
- height: kt?.height || "24px",
1034
+ height: At?.height || "24px",
1035
1035
  fontWeight: D?.contentWeight || 500,
1036
1036
  fontSize: D?.contentFontSize ? `${D?.contentFontSize}px` : $ ? "clamp(0.4rem, 5cqw, 0.875rem)" : "0.875rem"
1037
1037
  } : {}
1038
1038
  },
1039
1039
  className: j.truncateText,
1040
- children: F(e.column.id) ? String(pt(e.getValue(), e.column.id) ?? "") : fe(e.column.columnDef.cell, e.getContext())
1040
+ children: F(e.column.id) ? String(mt(e.getValue(), e.column.id) ?? "") : pe(e.column.columnDef.cell, e.getContext())
1041
1041
  }),
1042
1042
  e.column.getCanResize() && D?.hideTableHeader ? /* @__PURE__ */ T("div", {
1043
1043
  className: "resizer",
@@ -1072,10 +1072,10 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1072
1072
  })
1073
1073
  }, t.id);
1074
1074
  }),
1075
- nn > 0 ? /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
1076
- colSpan: rn,
1075
+ rn > 0 ? /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
1076
+ colSpan: an,
1077
1077
  style: {
1078
- height: `${nn}px`,
1078
+ height: `${rn}px`,
1079
1079
  padding: 0,
1080
1080
  border: 0
1081
1081
  }
@@ -1083,21 +1083,21 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1083
1083
  ] }) }) : null,
1084
1084
  D?.aggregateRow?.isEnable && D?.aggregateRow?.columns?.length ? /* @__PURE__ */ T("tfoot", { children: /* @__PURE__ */ T("tr", {
1085
1085
  "data-testid": "table-footer-row",
1086
- "aria-rowindex": vn.ariaRowCount,
1086
+ "aria-rowindex": yn.ariaRowCount,
1087
1087
  className: `${j.foot} ${D?.showRowHover ? j.rowHover : ""}`,
1088
1088
  children: K.getHeaderGroups()[0]?.headers?.map((e, t) => {
1089
1089
  let n = e.id, r = D.aggregateRow?.columns?.includes(n), i = D?.textWrap?.isEnable && D?.textWrap?.columns?.includes(e?.id), a = "", o = j.truncateText;
1090
1090
  if (t === 0) a = D.aggregateRow?.label || "Total";
1091
1091
  else if (r) {
1092
- let e = D.aggregateRow?.function || "SUM", t = $t?.map((e) => {
1092
+ let e = D.aggregateRow?.function || "SUM", t = en?.map((e) => {
1093
1093
  let t = e.original[n];
1094
1094
  return typeof t == "number" ? t : parseFloat(t);
1095
1095
  })?.filter((e) => !isNaN(e));
1096
1096
  a = h(t, e);
1097
1097
  let r = D?.tableNumberFormatter?.find((e) => e.columns?.includes(n));
1098
- if (a !== "" && F(n)) a = String(pt(a, n) ?? "");
1098
+ if (a !== "" && F(n)) a = String(mt(a, n) ?? "");
1099
1099
  else if (a !== "" && D?.isEnableNumberFormatting && (r || D?.formattedColumns?.includes(n))) {
1100
- let e = Xe?.length ? Xe?.find((e) => e?.measures?.includes(n)) : void 0, t = e?.numberFormatter || r?.formatter || D?.tableFormatter, s = e?.prefix || r?.prefix || D?.tablePrefix || "", c = e?.suffix || r?.suffix || D?.tableSuffix || "";
1100
+ let e = Ze?.length ? Ze?.find((e) => e?.measures?.includes(n)) : void 0, t = e?.numberFormatter || r?.formatter || D?.tableFormatter, s = e?.prefix || r?.prefix || D?.tablePrefix || "", c = e?.suffix || r?.suffix || D?.tableSuffix || "";
1101
1101
  a = `${s}${oe(Number(a) || 0, t)}${c}`, i && (o = D?.hideTableHeader && D?.isHideHorizontalScroll ? j.wrapCellText : j.wrapText);
1102
1102
  }
1103
1103
  }
@@ -1121,7 +1121,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1121
1121
  },
1122
1122
  children: /* @__PURE__ */ T("div", {
1123
1123
  style: {
1124
- ...kt,
1124
+ ...At,
1125
1125
  ...D?.isSepAlign && Object.keys(D?.colAlignments || []).includes(e.id) ? { justifyContent: D?.colAlignments?.[e.id] } : {}
1126
1126
  },
1127
1127
  children: /* @__PURE__ */ T("span", {
@@ -1144,7 +1144,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1144
1144
  }, "footer-row") }) : null
1145
1145
  ]
1146
1146
  }),
1147
- !R?.length && D?.isEnableColumnFilter && !y && !b.length && !Jt && !W?.length && (P?.[0] || B?.[0]) ? /* @__PURE__ */ T("div", {
1147
+ !R?.length && D?.isEnableColumnFilter && !y && !b.length && !Yt && !W?.length && (P?.[0] || B?.[0]) ? /* @__PURE__ */ T("div", {
1148
1148
  className: `${j.emptyFilterData} dbn:flex dbn:flex-col dbn:justify-center dbn:items-center dbn:w-full dbn:p-8`,
1149
1149
  children: /* @__PURE__ */ T(_, {
1150
1150
  height: "80px",
@@ -1152,7 +1152,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1152
1152
  subText: "Try modifying the filter, sort or client."
1153
1153
  })
1154
1154
  }) : null,
1155
- !W?.length && e?.length && (P?.[0] || B?.[0]) && !y && !b.length && !Jt ? /* @__PURE__ */ T("div", {
1155
+ !W?.length && e?.length && (P?.[0] || B?.[0]) && !y && !b.length && !Yt ? /* @__PURE__ */ T("div", {
1156
1156
  className: "dbn:flex dbn:flex-col dbn:justify-center dbn:items-center dbn:w-full dbn:p-8",
1157
1157
  children: /* @__PURE__ */ T(_, {
1158
1158
  height: "80px",
@@ -1162,7 +1162,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1162
1162
  }) : null
1163
1163
  ]
1164
1164
  }),
1165
- !e?.length && !D?.isEnableColumnFilter && !y && !b.length && !Jt && /* @__PURE__ */ T("div", {
1165
+ !e?.length && !D?.isEnableColumnFilter && !y && !b.length && !Yt && /* @__PURE__ */ T("div", {
1166
1166
  className: "dbn:w-full dbn:h-full dbn:overflow-y-auto dbn:items-center dbn:justify-center dbn:p-6",
1167
1167
  children: /* @__PURE__ */ T(_, {
1168
1168
  height: "80px",
@@ -1172,36 +1172,36 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1172
1172
  }),
1173
1173
  b && /* @__PURE__ */ T("div", {
1174
1174
  className: j.error,
1175
- children: /* @__PURE__ */ T(l, { children: b })
1175
+ children: /* @__PURE__ */ T(c, { children: b })
1176
1176
  })
1177
1177
  ]
1178
1178
  }),
1179
- e && !D?.disablePagination && (!Be || D?.isServerSidePagination) && /* @__PURE__ */ E("div", {
1179
+ e && !D?.disablePagination && (!Ve || D?.isServerSidePagination) && /* @__PURE__ */ E("div", {
1180
1180
  className: `${j.pagination} ${D?.isAutoPagination ? "dbn:pl-2" : ""} ${D?.paginationPosition === "top" ? "dbn:py-0" : ""}`,
1181
1181
  style: {
1182
- marginRight: `${ot ? "70px" : ""}`,
1182
+ marginRight: `${st ? "70px" : ""}`,
1183
1183
  order: D?.paginationPosition === "top" ? 2 : 3
1184
1184
  },
1185
1185
  children: [
1186
1186
  D?.isAutoPagination ? null : /* @__PURE__ */ T("div", {
1187
1187
  className: `dbn-interactive-element ${j.rowStyle}`,
1188
- children: /* @__PURE__ */ T(a, {
1188
+ children: /* @__PURE__ */ T(i, {
1189
1189
  id: "rows-per-page",
1190
1190
  "aria-label": "Rows per page",
1191
1191
  customButton: /* @__PURE__ */ E("div", {
1192
1192
  className: "dbn:flex dbn:gap-3",
1193
1193
  title: z?.value,
1194
- children: [/* @__PURE__ */ T(l, {
1194
+ children: [/* @__PURE__ */ T(c, {
1195
1195
  variant: "body-text-3",
1196
1196
  children: "Rows per page:"
1197
- }), /* @__PURE__ */ T(l, {
1197
+ }), /* @__PURE__ */ T(c, {
1198
1198
  variant: "body-text-3",
1199
1199
  children: z?.value
1200
1200
  })]
1201
1201
  }),
1202
1202
  className: "dbn:border-none",
1203
1203
  onChange: (e) => {
1204
- zt(e), k?.(!1, parseInt(e.value, 10)), Re?.((t) => ({
1204
+ Bt(e), k?.(!1, parseInt(e.value, 10)), ze?.((t) => ({
1205
1205
  ...t,
1206
1206
  tableSettings: {
1207
1207
  ...t.tableSettings,
@@ -1210,21 +1210,21 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1210
1210
  }));
1211
1211
  },
1212
1212
  selectedOption: z,
1213
- options: o,
1213
+ options: f,
1214
1214
  labelVariant: "static",
1215
1215
  menuWidth: "120px",
1216
1216
  buttonWidth: z?.value === "1000" ? "165px" : "150px",
1217
- menuZIndex: Ye
1217
+ menuZIndex: Xe
1218
1218
  })
1219
1219
  }),
1220
- y ? null : A && e.length && dn ? /* @__PURE__ */ E("span", {
1220
+ y ? null : A && e.length && fn ? /* @__PURE__ */ E("span", {
1221
1221
  className: j.pageStyle,
1222
1222
  children: [
1223
1223
  N.offset + 1,
1224
1224
  "-",
1225
1225
  N.offset + e.length,
1226
1226
  " of ",
1227
- dn
1227
+ fn
1228
1228
  ]
1229
1229
  }) : Y.from && Y.to && Y.total ? /* @__PURE__ */ E("span", {
1230
1230
  className: j.pageStyle,
@@ -1242,7 +1242,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1242
1242
  children: [/* @__PURE__ */ E("div", {
1243
1243
  className: j.buttonContainer,
1244
1244
  children: [
1245
- /* @__PURE__ */ T(n, {
1245
+ /* @__PURE__ */ T(o, {
1246
1246
  id: "jump-to-start",
1247
1247
  "aria-label": d.start,
1248
1248
  title: d.start,
@@ -1252,7 +1252,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1252
1252
  onClick: () => {
1253
1253
  A ? k?.(!0, void 0, 0) : K.setPageIndex(0);
1254
1254
  },
1255
- isDisabled: A ? !Ie || Z === 0 : Y.from <= 1,
1255
+ isDisabled: A ? !Le || Z === 0 : Y.from <= 1,
1256
1256
  children: /* @__PURE__ */ T(u, {
1257
1257
  size: "small",
1258
1258
  name: "double-arrow-left"
@@ -1261,7 +1261,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1261
1261
  /* @__PURE__ */ E("div", {
1262
1262
  className: j.pageBtns,
1263
1263
  children: [
1264
- /* @__PURE__ */ T(n, {
1264
+ /* @__PURE__ */ T(o, {
1265
1265
  id: "jump-to-prev",
1266
1266
  "aria-label": d.prev,
1267
1267
  title: d.prev,
@@ -1271,7 +1271,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1271
1271
  onClick: () => {
1272
1272
  A ? k?.(!0) : K.previousPage();
1273
1273
  },
1274
- isDisabled: A ? !Ie || Z === 0 : Y.from <= 1,
1274
+ isDisabled: A ? !Le || Z === 0 : Y.from <= 1,
1275
1275
  style: { height: "calc(1.75rem - 1.6px)" },
1276
1276
  children: /* @__PURE__ */ T(u, {
1277
1277
  size: "small",
@@ -1280,37 +1280,37 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1280
1280
  }),
1281
1281
  /* @__PURE__ */ T("div", {
1282
1282
  className: j.pageInfo,
1283
- children: Kt ? /* @__PURE__ */ T(r, {
1283
+ children: qt ? /* @__PURE__ */ T(n, {
1284
1284
  type: "number",
1285
- value: mn,
1285
+ value: hn,
1286
1286
  min: 1,
1287
1287
  max: A ? X : K.getPageCount(),
1288
1288
  onChange: (e) => {
1289
1289
  let t = Math.min(Number(e.target.value), A ? X : K.getPageCount());
1290
- t === 0 && (t = 1), hn(t);
1290
+ t === 0 && (t = 1), gn(t);
1291
1291
  },
1292
1292
  onKeyDown: (e) => {
1293
- e.key == "Enter" && (A ? k?.(!0, void 0, (mn - 1) * N.limit) : K.setPageIndex(mn - 1), qt(!1));
1293
+ e.key == "Enter" && (A ? k?.(!0, void 0, (hn - 1) * N.limit) : K.setPageIndex(hn - 1), Jt(!1));
1294
1294
  },
1295
1295
  style: { height: "calc(1.75rem - 1.6px)" },
1296
1296
  className: "dbn:text-xs dbn:w-full dbn:rounded-none",
1297
1297
  containerClassName: "dbn:border-none dbn:outline-hidden "
1298
1298
  }) : /* @__PURE__ */ E("div", {
1299
1299
  className: "dbn:flex dbn:gap-1 dbn:px-1 dbn:overflow-x-hidden",
1300
- onClick: () => qt(!0),
1300
+ onClick: () => Jt(!0),
1301
1301
  title: `${A ? Z + 1 : J + 1} of ${A ? X : K.getPageCount()}`,
1302
1302
  children: [
1303
- /* @__PURE__ */ T(l, {
1303
+ /* @__PURE__ */ T(c, {
1304
1304
  variant: "body-text-3",
1305
1305
  className: "dbn:font-medium dbn:truncate",
1306
1306
  children: A ? Z + 1 : J + 1
1307
1307
  }),
1308
- /* @__PURE__ */ T(l, {
1308
+ /* @__PURE__ */ T(c, {
1309
1309
  variant: "body-text-3",
1310
1310
  className: "dbn:font-medium",
1311
1311
  children: "of"
1312
1312
  }),
1313
- /* @__PURE__ */ T(l, {
1313
+ /* @__PURE__ */ T(c, {
1314
1314
  variant: "body-text-3",
1315
1315
  className: "dbn:font-medium dbn:truncate",
1316
1316
  children: A ? X : K.getPageCount()
@@ -1318,7 +1318,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1318
1318
  ]
1319
1319
  })
1320
1320
  }),
1321
- /* @__PURE__ */ T(n, {
1321
+ /* @__PURE__ */ T(o, {
1322
1322
  id: "jump-to-next",
1323
1323
  "aria-label": d.next,
1324
1324
  title: d.next,
@@ -1328,7 +1328,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1328
1328
  onClick: () => {
1329
1329
  A ? k?.(!1) : K.nextPage();
1330
1330
  },
1331
- isDisabled: A ? !Fe || Z === X - 1 : Y.to >= Y.total,
1331
+ isDisabled: A ? !Ie || Z === X - 1 : Y.to >= Y.total,
1332
1332
  style: { height: "calc(1.75rem - 1.6px)" },
1333
1333
  children: /* @__PURE__ */ T(u, {
1334
1334
  size: "small",
@@ -1337,7 +1337,7 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1337
1337
  })
1338
1338
  ]
1339
1339
  }),
1340
- /* @__PURE__ */ T(n, {
1340
+ /* @__PURE__ */ T(o, {
1341
1341
  id: "jump-to-end",
1342
1342
  "aria-label": d.end,
1343
1343
  title: d.end,
@@ -1347,25 +1347,25 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1347
1347
  onClick: () => {
1348
1348
  A ? k?.(!1, void 0, (X - 1) * N.limit) : K.setPageIndex(K.getPageCount() - 1);
1349
1349
  },
1350
- isDisabled: A ? !Fe || Z === X - 1 : Y.to >= Y.total,
1350
+ isDisabled: A ? !Ie || Z === X - 1 : Y.to >= Y.total,
1351
1351
  children: /* @__PURE__ */ T(u, {
1352
1352
  size: "small",
1353
1353
  name: "double-arrow-right"
1354
1354
  })
1355
1355
  })
1356
1356
  ]
1357
- }), We && /* @__PURE__ */ T("div", {
1357
+ }), Ge && /* @__PURE__ */ T("div", {
1358
1358
  className: j.isFullScreenEnabled,
1359
- children: Ue && /* @__PURE__ */ T(n, {
1359
+ children: We && /* @__PURE__ */ T(o, {
1360
1360
  type: "button",
1361
1361
  variant: "popover",
1362
- className: Oe.cardControl,
1362
+ className: ke.cardControl,
1363
1363
  "aria-label": "Enter fullscreen",
1364
1364
  onClick: () => {
1365
- we({
1366
- metricId: Ge,
1365
+ Te({
1366
+ metricId: Ke,
1367
1367
  defaultRowSize: `${z.value}`
1368
- }), Ke?.();
1368
+ }), qe?.();
1369
1369
  },
1370
1370
  leftIcon: /* @__PURE__ */ T("div", {
1371
1371
  className: j.fullScreenBtn,
@@ -1376,14 +1376,14 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1376
1376
  })
1377
1377
  ]
1378
1378
  }),
1379
- Be && !D?.isServerSidePagination && e && (e.length > Bt || He && e.length) ? /* @__PURE__ */ T("div", {
1379
+ Ve && !D?.isServerSidePagination && e && (e.length > Vt || Ue && e.length) ? /* @__PURE__ */ T("div", {
1380
1380
  className: "dbn:p-2.5 dbn:px-5 dbn:flex dbn:justify-end",
1381
1381
  style: { order: 4 },
1382
- children: /* @__PURE__ */ E(n, {
1382
+ children: /* @__PURE__ */ E(o, {
1383
1383
  variant: "secondary",
1384
1384
  type: "button",
1385
1385
  onClick: () => {
1386
- Ve ? Ve() : Vt((e) => e + 50);
1386
+ He ? He() : Ht((e) => e + 50);
1387
1387
  },
1388
1388
  className: j.loadMore,
1389
1389
  children: ["Load More", /* @__PURE__ */ T(u, { name: "double-arrow-right" })]
@@ -1391,9 +1391,9 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1391
1391
  }) : null
1392
1392
  ]
1393
1393
  }), /* @__PURE__ */ E(ne, {
1394
- isOpen: vt?.isShow,
1394
+ isOpen: yt?.isShow,
1395
1395
  onClose: () => {
1396
- yt({
1396
+ bt({
1397
1397
  isShow: !1,
1398
1398
  data: []
1399
1399
  });
@@ -1402,12 +1402,12 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1402
1402
  zIndex: 9999999999,
1403
1403
  children: [/* @__PURE__ */ T("div", {
1404
1404
  className: "dbn:w-[600px] dbn:p-6 dbn:max-h-[400px] dbn:overflow-y-auto",
1405
- children: /* @__PURE__ */ T(De, { data: vt?.data || [] })
1406
- }), /* @__PURE__ */ T(i, { children: /* @__PURE__ */ T(n, {
1405
+ children: /* @__PURE__ */ T(Oe, { data: yt?.data || [] })
1406
+ }), /* @__PURE__ */ T(r, { children: /* @__PURE__ */ T(o, {
1407
1407
  variant: "secondary",
1408
1408
  className: "cta-secondary",
1409
1409
  onClick: () => {
1410
- yt({
1410
+ bt({
1411
1411
  isShow: !1,
1412
1412
  data: []
1413
1413
  });
@@ -1418,4 +1418,4 @@ var D = "dbn:", be = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
1418
1418
  });
1419
1419
  };
1420
1420
  //#endregion
1421
- export { A as a, M as i, ke as n, k as o, Oe as r, we as s, Fe as t };
1421
+ export { A as a, M as i, Ae as n, k as o, ke as r, Te as s, Ie as t };