@databrainhq/plugin 0.17.9-beta.66 → 0.17.9-beta.67
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.
- package/dist/{Accordion-ClM-DQNR.mjs → Accordion-HnV7Wa7d.mjs} +1 -1
- package/dist/{Axis-so_G8609.mjs → Axis-BoRILjw6.mjs} +25 -25
- package/dist/AxisBuilder-CbZA9BA5.mjs +556 -0
- package/dist/{AxisView-DbvR7xj2.mjs → AxisView-D1J-Vvd5.mjs} +46 -46
- package/dist/{CardChartSlot-WYOoFrPL.mjs → CardChartSlot-xCL70UFF.mjs} +6 -6
- package/dist/{Chart-C-M2BAGW.mjs → Chart-C8IUjDZP.mjs} +1249 -1444
- package/dist/{ChartTypePanel-CgnH37kj.mjs → ChartTypePanel-D33r24Vx.mjs} +8 -8
- package/dist/{CreateGlobalFilter-C9KQALHu.mjs → CreateGlobalFilter-CrZMQyeM.mjs} +2 -2
- package/dist/{CreateMetricV2-D669LmPA.mjs → CreateMetricV2-uIc0kSQ_.mjs} +12 -12
- package/dist/GridModel-BOILOnLN.mjs +39 -0
- package/dist/{HorizontalStackTable-E91Iuyzf.mjs → HorizontalStackTable-B_4q2iBG.mjs} +3 -3
- package/dist/{LineDraw-QEq0LGiV.mjs → LineDraw-C5CPD2fu.mjs} +75 -75
- package/dist/{ManageMetricsV2-C1d5KU_f.mjs → ManageMetricsV2-iTJys95Q.mjs} +3 -3
- package/dist/{MetricCardV2-C2eYo3s-.mjs → MetricCardV2-CBXvGrxI.mjs} +7 -7
- package/dist/{NoDataFound-ChW4me5m.mjs → NoDataFound-dLuw3_8M.mjs} +1 -1
- package/dist/{Panel-OH_Kxefy.mjs → Panel-DbS03Fa_.mjs} +1 -1
- package/dist/{PivotTableV2-D0GqqiiM.mjs → PivotTableV2-BGeyDx2h.mjs} +2 -2
- package/dist/{PivotTableV3-BdO_u5WS.mjs → PivotTableV3-q9Gs3DAq.mjs} +4 -4
- package/dist/{Portal-CV_NrBJ-.mjs → Portal-DSSDhg1M.mjs} +59 -59
- package/dist/{RadioButton-CVv2WrAN.mjs → RadioButton-DY7YeYgN.mjs} +1 -1
- package/dist/{RoamController-Dg9XZMbv.mjs → RoamController-kkduqIGv.mjs} +27 -27
- package/dist/{ScheduleEmail-BMgGc98g.mjs → ScheduleEmail-CRzbBNyX.mjs} +6 -6
- package/dist/{SearchMetricData-IL8DdG5T.mjs → SearchMetricData-Ba-UG9Xi.mjs} +162 -162
- package/dist/{SeriesData-BiofVRKp.mjs → SeriesData-t2ZM93xe.mjs} +153 -153
- package/dist/{SeriesDataSchema-DsLx8ATY.mjs → SeriesDataSchema-DbWmjBHq.mjs} +3 -3
- package/dist/{SortPanel-CsY3Go6z.mjs → SortPanel-CM4XEYFx.mjs} +10 -10
- package/dist/{SymbolDraw-B7bsdOGh.mjs → SymbolDraw-aWP4aFcT.mjs} +77 -77
- package/dist/{Table-V9qwq_A-.mjs → Table-CDvOpuYe.mjs} +249 -241
- package/dist/{TagInputField-BXcyiOOC.mjs → TagInputField-fGfjlIAp.mjs} +4 -4
- package/dist/{TextAreaField-Bg-Mn1xZ.mjs → TextAreaField-BdQ1n88e.mjs} +2 -2
- package/dist/{TimeSeriesSettings-DEBOcjxj.mjs → TimeSeriesSettings-BbF-feiK.mjs} +2 -2
- package/dist/View-HJXsM1pX.mjs +196 -0
- package/dist/{VisualMapping-C4H6uMDK.mjs → VisualMapping-BEacOIdS.mjs} +77 -77
- package/dist/{arrayToCsvString-D9jRf3H1.mjs → arrayToCsvString-Rjim3CLj.mjs} +1 -1
- package/dist/{axisAlignTicks-CA9tHLzi.mjs → axisAlignTicks-BDCH2l76.mjs} +21 -21
- package/dist/axisBand-B8HTljY9.mjs +434 -0
- package/dist/{axisDefault-nEWLSKin.mjs → axisDefault-BfDTCeDW.mjs} +12 -12
- package/dist/{axisHelper-B4ygrEAu.mjs → axisHelper-C92zjGrZ.mjs} +267 -267
- package/dist/{axisNiceTicks-ClubN7Tk.mjs → axisNiceTicks-DlIPQ7Bu.mjs} +13 -13
- package/dist/{bar-BB2qrFDC.mjs → bar-Dnd6DMeI.mjs} +2 -2
- package/dist/{barCommon-BArELGTY.mjs → barCommon--mFXSMxr.mjs} +14 -14
- package/dist/{barGrid-_f2rVIut.mjs → barGrid-BnZ3vF37.mjs} +36 -36
- package/dist/{base-Dsk4fQ1B.mjs → base-CqKr_o6m.mjs} +3 -3
- package/dist/{canvas-B9V5aHe8.mjs → canvas-MlE3EEgP.mjs} +2 -2
- package/dist/canvasLetterSpacing-C1X0nr1A.mjs +59 -0
- package/dist/canvasTeardown-BZnfPMIf.mjs +261 -0
- package/dist/{cardQueryError-DY_ZJaeH.mjs → cardQueryError-BvdXcZWj.mjs} +10 -10
- package/dist/{cartesianAxisHelper-DoeSPDFx.mjs → cartesianAxisHelper-Cj6QbGbq.mjs} +3 -3
- package/dist/{charts-DLkGIf3C.mjs → charts-TEuh7DBS.mjs} +1580 -1546
- package/dist/{conditionalFormatting-C-FdJ4PG.mjs → conditionalFormatting-jiDCWhx5.mjs} +1 -1
- package/dist/{createClipPathFromCoordSys-B4vAGE8Z.mjs → createClipPathFromCoordSys-D8WqA4dr.mjs} +13 -13
- package/dist/createDimensions-CnmSLhmZ.mjs +104 -0
- package/dist/{createGlobalFilter.module-Q1baYqNl.mjs → createGlobalFilter.module-BSLkPq6G.mjs} +1 -1
- package/dist/{createGraphFromNodeEdge-7WyfkrBe.mjs → createGraphFromNodeEdge-DCo8LkEe.mjs} +39 -39
- package/dist/createSeriesData-QC-rX5h7.mjs +101 -0
- package/dist/{createSeriesDataSimply-BxdEaPVX.mjs → createSeriesDataSimply-CKTp_DsX.mjs} +4 -4
- package/dist/{custom-DcvwBVj2.mjs → custom-DsYOLaUK.mjs} +2 -2
- package/dist/customGraphicKeyframeAnimation-Cfq3Ya3a.mjs +299 -0
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{dataSample-Bp4H9kbC.mjs → dataSample-Cv8KVcHp.mjs} +2 -2
- package/dist/{dataStackHelper-8xSjPoGY.mjs → dataStackHelper-plaarSse.mjs} +2 -2
- package/dist/{echarts-CAoS6aE4.mjs → echarts-DSP9q-oP.mjs} +1596 -1596
- package/dist/{echarts-B6T0U8q9.mjs → extension-CjvfhuOl.mjs} +2460 -2415
- package/dist/{option-BVCp3H01.mjs → format-BdG1uTDw.mjs} +493 -463
- package/dist/{funnel-BPyzsZSL.mjs → funnel-BqvvHgIV.mjs} +2 -2
- package/dist/{gauge-3Wvva_32.mjs → gauge-D5uVlOTf.mjs} +2 -2
- package/dist/{graph-CExwwYVH.mjs → graph-D1H_pveT.mjs} +2 -2
- package/dist/{install-D5AxiliG.mjs → install-B2u2WICp.mjs} +249 -249
- package/dist/install-C94jvAIB.mjs +370 -0
- package/dist/{install-B1TqspfL.mjs → install-CD_nJllF.mjs} +151 -151
- package/dist/{install-DeQuODXS.mjs → install-CVI7EngB.mjs} +183 -183
- package/dist/{install-BWNipZtL.mjs → install-ClLUQImW.mjs} +164 -164
- package/dist/{install-BcuG0TzG.mjs → install-CqGJAjtU.mjs} +205 -205
- package/dist/{install-COuvnLYq.mjs → install-CqpZdmUs.mjs} +224 -225
- package/dist/{install-B35NwG74.mjs → install-CwLVKiaI.mjs} +448 -627
- package/dist/{install-fUIPAUHh.mjs → install-CxIyDAbo.mjs} +142 -142
- package/dist/install-D-uyYxzt.mjs +442 -0
- package/dist/{install-g1WKebGq.mjs → install-DxzoEvqo.mjs} +53 -54
- package/dist/{install-BOqmfLSu.mjs → install-UQOuGZ-3.mjs} +156 -156
- package/dist/install-YalZg5OB.mjs +208 -0
- package/dist/{install-COgFGhU1.mjs → install-gJJR8ost.mjs} +185 -185
- package/dist/{installCanvasRenderer-DZQl9WUm.mjs → installCanvasRenderer-CdQICtMz.mjs} +148 -148
- package/dist/installSVGRenderer-CM4phOH5.mjs +788 -0
- package/dist/installSimple-hwzmQHWx.mjs +562 -0
- package/dist/labelGuideHelper-Biiy5GEO.mjs +211 -0
- package/dist/{labelHelper-CWf3lqtb.mjs → labelHelper-CK2wFnD2.mjs} +9 -9
- package/dist/{labelLayoutHelper-gSQ2wxVR.mjs → labelLayoutHelper-BGT4km6s.mjs} +16 -16
- package/dist/{legacyContainLabel-C2O3qS_C.mjs → legacyContainLabel-BPPdU-_P.mjs} +1057 -1058
- package/dist/{line-Biu-eHDy.mjs → line-Bz3suzTe.mjs} +2 -2
- package/dist/{linkSeriesData-CmdFbU_o.mjs → linkSeriesData-oLBZWXeI.mjs} +15 -15
- package/dist/{metric.mutation-GQtohk1S.mjs → metric.mutation-Bp6C-gnS.mjs} +1 -1
- package/dist/parseGeoJson-CL1oJAFU.mjs +185 -0
- package/dist/{permissions-CH-WGA_H.mjs → permissions-RytJG009.mjs} +5 -5
- package/dist/{pie-BSGwMlDv.mjs → pie-8bHZZWij.mjs} +2 -2
- package/dist/{pluginV3Request-CCcbgHOL.mjs → pluginV3Request-B6J1iWdo.mjs} +1 -1
- package/dist/{points-QJPXYOtn.mjs → points-D4GPTJUM.mjs} +3 -3
- package/dist/{polar-DF62ToTw.mjs → polar-CDByVeuT.mjs} +2 -2
- package/dist/{radar-DUrDFixH.mjs → radar-Cm_0Z4n_.mjs} +2 -2
- package/dist/{renderer-CbYNXUJq.mjs → renderer-BC0h-JPJ.mjs} +2 -2
- package/dist/{roamHelper-CcGUDlj6.mjs → roamHelper-CfJQ0V8o.mjs} +15 -15
- package/dist/{sankey-DQjq16w_.mjs → sankey-B-88mGB1.mjs} +2 -2
- package/dist/{sausage-CnA_7NXH.mjs → sausage-MJyh9DcM.mjs} +1 -1
- package/dist/{scatter-Z9iXDwaa.mjs → scatter-CXYREtPk.mjs} +2 -2
- package/dist/{sectorHelper-BYk-RZi8.mjs → sectorHelper-BrGpww5p.mjs} +4 -4
- package/dist/{svg-BqqDtKe2.mjs → svg-BpzO9oa-.mjs} +2 -2
- package/dist/{theme-Cy9b23sj.mjs → theme-BYHowFGG.mjs} +137 -135
- package/dist/{timeseries-CDZ2lqd0.mjs → timeseries-D1_Havul.mjs} +1911 -1939
- package/dist/{toTasteAppearance-CcICPHaj.mjs → toTasteAppearance-DdC9S4xx.mjs} +13 -13
- package/dist/{treemap-C3cV5Iw-.mjs → treemap-BGu5cKFF.mjs} +2 -2
- package/dist/{useGuesTokenUsageLog-x2sDutRn.mjs → useGuesTokenUsageLog-BDOlwCKi.mjs} +1 -1
- package/dist/{usePublishArchivedMetrics-DJKjX-SL.mjs → usePublishArchivedMetrics-B9KYUf2j.mjs} +2 -2
- package/dist/{useQuery-wLcZUjCm.mjs → useQuery-8yPFyxSa.mjs} +1 -1
- package/dist/{vendor-Bq_K9DdP.mjs → vendor-BesI8vuE.mjs} +1 -1
- package/dist/webcomponents.css +1 -1
- package/dist/webcomponents.es.js +1487 -1460
- package/dist/webcomponents.umd.js +194 -184
- package/package.json +1 -1
- package/types/publicTypes.d.ts +4 -3
- package/dist/AxisBuilder-CIEw0VKH.mjs +0 -556
- package/dist/GridModel-DpfhksE5.mjs +0 -39
- package/dist/View-DuNXbS5E.mjs +0 -196
- package/dist/axisBand-CqPMsaju.mjs +0 -434
- package/dist/canvasTeardown-U1wBiiCe.mjs +0 -65
- package/dist/createDimensions-DYZprUlh.mjs +0 -104
- package/dist/createSeriesData-SCJKaSQ2.mjs +0 -101
- package/dist/customGraphicKeyframeAnimation-C5rfpbhk.mjs +0 -299
- package/dist/extension-dPyu9HSg.mjs +0 -52
- package/dist/install-DJXWoot7.mjs +0 -208
- package/dist/install-YCJIpIX5.mjs +0 -443
- package/dist/install-jnjEqKhO.mjs +0 -370
- package/dist/installSVGRenderer-DWwkDWs9.mjs +0 -788
- package/dist/installSimple-B0ty1uQ7.mjs +0 -562
- package/dist/labelGuideHelper-JZN7_bZa.mjs +0 -211
|
@@ -2,16 +2,16 @@ import e, { useEffect as t, useMemo as n, useRef as r, useState as i } from "rea
|
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
4
|
import { r as a } from "./rolldown-runtime-zXSK1Ut9.mjs";
|
|
5
|
-
import { $ as o, A as s, Ct as c, Di as l, On as u, Q as
|
|
6
|
-
import {
|
|
7
|
-
import { d as oe, o as se, u as ce } from "./timeseries-
|
|
8
|
-
import { n as y } from "./arrayToCsvString-
|
|
5
|
+
import { $ as o, A as s, Ct as c, Di as l, On as u, Q as ee, Qr as te, R as ne, Sr as d, St as re, Z as f, a as ie, cr as p, eo as m, kn as h, qi as g, so as _ } from "./Portal-DSSDhg1M.mjs";
|
|
6
|
+
import { B as v, I as ae } from "./format-BdG1uTDw.mjs";
|
|
7
|
+
import { d as oe, o as se, u as ce } from "./timeseries-D1_Havul.mjs";
|
|
8
|
+
import { n as y } from "./arrayToCsvString-Rjim3CLj.mjs";
|
|
9
9
|
import { i as le, n as b } from "./transformData-CO9XMhAy.mjs";
|
|
10
|
-
import { t as x } from "./NoDataFound-
|
|
10
|
+
import { t as x } from "./NoDataFound-dLuw3_8M.mjs";
|
|
11
11
|
import { n as S, t as ue } from "./esm-COBpFXvV.mjs";
|
|
12
12
|
import { a as de, i as C, n as fe, o as pe, r as me, s as he, t as ge } from "./dist-FcU2f2u-.mjs";
|
|
13
13
|
import { n as _e, r as ve } from "./cardActions-KAyfWH7u.mjs";
|
|
14
|
-
import { t as ye } from "./conditionalFormatting-
|
|
14
|
+
import { t as ye } from "./conditionalFormatting-jiDCWhx5.mjs";
|
|
15
15
|
import { t as be } from "./tableAriaRowModel-CVEaIc2a.mjs";
|
|
16
16
|
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
17
17
|
// src/utils/embedStorage.ts
|
|
@@ -122,7 +122,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
122
122
|
emptyFilterData: "_emptyFilterData_1ncs7_300",
|
|
123
123
|
textLineBreak: "_textLineBreak_1ncs7_304"
|
|
124
124
|
}, M = e.memo(({ value: e, onChange: n, debounce: r = 500, isDisabled: a, errorMsg: o, ...s }) => {
|
|
125
|
-
let [c, l] = i(e), [u,
|
|
125
|
+
let [c, l] = i(e), [u, ee] = i(!0);
|
|
126
126
|
return t(() => {
|
|
127
127
|
l(e);
|
|
128
128
|
}, [e]), t(() => {
|
|
@@ -135,7 +135,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
135
135
|
className: `${j.searchTab} ${s.className || ""} ${o ? j.errContainer : ""}`,
|
|
136
136
|
style: s.style,
|
|
137
137
|
"aria-disabled": !!a,
|
|
138
|
-
children: [!c && u ? /* @__PURE__ */ T(
|
|
138
|
+
children: [!c && u ? /* @__PURE__ */ T(d, {
|
|
139
139
|
name: "magnifying-glass",
|
|
140
140
|
color: "gray",
|
|
141
141
|
size: "xs"
|
|
@@ -144,8 +144,8 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
144
144
|
value: c,
|
|
145
145
|
onChange: (e) => l(e.target.value),
|
|
146
146
|
className: j.searchTabInput,
|
|
147
|
-
onFocus: () =>
|
|
148
|
-
onBlur: () =>
|
|
147
|
+
onFocus: () => ee(!1),
|
|
148
|
+
onBlur: () => ee(!0),
|
|
149
149
|
disabled: a
|
|
150
150
|
})]
|
|
151
151
|
});
|
|
@@ -274,7 +274,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
274
274
|
editTooltip: "_editTooltip_1yvky_28",
|
|
275
275
|
hoverHint: "_hoverHint_1yvky_50"
|
|
276
276
|
}, Ae = /* @__PURE__ */ a({
|
|
277
|
-
Table: () =>
|
|
277
|
+
Table: () => Re,
|
|
278
278
|
getVisibleTableRows: () => Pe
|
|
279
279
|
}), je = C(), Me = (e, t, n, r) => {
|
|
280
280
|
let i = S(e.getValue(t), n);
|
|
@@ -286,29 +286,36 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
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
|
-
}, Fe =
|
|
289
|
+
}, Fe = {
|
|
290
|
+
small: "32px",
|
|
291
|
+
medium: "36px",
|
|
292
|
+
large: "44px"
|
|
293
|
+
}, Ie = (e) => {
|
|
294
|
+
let t = !e?.textWrap?.isEnable && e?.lineGap ? Fe[e.lineGap] : void 0;
|
|
295
|
+
return t ? { "--dbn-runtime-table-row-h": t } : void 0;
|
|
296
|
+
}, Le = (e) => e?.textWrap?.isEnable ? 48 : e?.lineGap === "small" ? 36 : e?.lineGap === "large" ? 44 : 40, Re = ({ data: e, allTableRows: a, isLoading: S, error: C, tableSettings: D, chartFieldFormats: xe, tableName: O, className: Se = "", onColumnSizingChange: Ce, onChartReady: we, onChangePage: k, isExternalChart: A, isFullScreenChart: Ae, isEnableNextBtn: Fe, isEnablePrevBtn: Re, dateColumns: ze, paginationInfo: N = {
|
|
290
297
|
limit: 100,
|
|
291
298
|
offset: 0,
|
|
292
299
|
totalRecords: 10
|
|
293
|
-
}, setChartSettings:
|
|
294
|
-
let
|
|
295
|
-
let n =
|
|
300
|
+
}, setChartSettings: Be, externalGlobalFilter: P, setExternalGlobalFilter: Ve, isInfiniteScroll: He, onLoadMore: Ue, hasMoreData: We, isShowFullScreen: Ge, isShowFullScreenEnabled: Ke = !1, metricId: qe, onMaximize: Je, headerAlignment: Ye = "center", events: Xe, dropdownZindex: Ze, comboFormatter: Qe, language: $e, translationDictionary: et, isMetricCard: tt, isDisableChartActions: nt, isDownloading: rt, setDownloading: it, onDownloadData: at, isDownloadingWithFilters: ot, setDownloadingWithFilters: st, isQueryResultContainer: ct, tableColumnFilters: lt, onChangePaginationColumnFilters: ut, yAxisList: dt, isUnderlyingDataTable: ft, isExploreData: pt }) => {
|
|
301
|
+
let mt = { chartFieldFormats: xe }, F = (e) => !!(v(mt, e) ?? xe?.["*"]), ht = (e, t) => {
|
|
302
|
+
let n = ae(e, t, mt);
|
|
296
303
|
return typeof n == "object" && n ? JSON.stringify(n) : n;
|
|
297
|
-
}, [I,
|
|
304
|
+
}, [I, gt] = i([]), [L, _t] = i([]), [vt, yt] = i(""), [bt, xt] = i({
|
|
298
305
|
isShow: !1,
|
|
299
306
|
data: []
|
|
300
|
-
}), [
|
|
307
|
+
}), [St, Ct] = i(null), [wt, Tt] = i([]), [Et, Dt] = i(","), [Ot, kt] = i(","), At = (e) => {
|
|
301
308
|
let t = {};
|
|
302
309
|
return Object.keys(e).sort().forEach((n) => {
|
|
303
310
|
t[n] = e[n];
|
|
304
311
|
}), t;
|
|
305
|
-
}, R = n(() => D?.isSortAlphabetically ? e?.map((e) =>
|
|
312
|
+
}, R = n(() => D?.isSortAlphabetically ? e?.map((e) => At(e)) : e, [e, D?.isSortAlphabetically]);
|
|
306
313
|
t(() => {
|
|
307
|
-
D?.badgeSeparator ?
|
|
314
|
+
D?.badgeSeparator ? Dt(D.badgeSeparator) : Dt(",");
|
|
308
315
|
}, [D?.badgeSeparator]), t(() => {
|
|
309
|
-
D?.listSeparator ?
|
|
316
|
+
D?.listSeparator ? kt(D.listSeparator) : kt(",");
|
|
310
317
|
}, [D?.listSeparator]);
|
|
311
|
-
let { badgeDivStyle:
|
|
318
|
+
let { badgeDivStyle: jt, listDivStyle: Mt, headerStyle: Nt } = n(() => {
|
|
312
319
|
let e = "2.5rem";
|
|
313
320
|
return D?.textWrap?.isEnable ? e = "auto" : D?.lineGap === "small" ? e = "36px" : D?.lineGap === "medium" ? e = "40px" : D?.lineGap === "large" && (e = "44px"), {
|
|
314
321
|
badgeDivStyle: {
|
|
@@ -337,7 +344,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
337
344
|
fontSize: D?.headerFontSize ? `${D?.headerFontSize}px` : "0.75rem",
|
|
338
345
|
fontSizeValue: "0.75rem",
|
|
339
346
|
height: "auto",
|
|
340
|
-
textAlign: D?.headerAlignment ||
|
|
347
|
+
textAlign: D?.headerAlignment || Ye,
|
|
341
348
|
fontWeight: D?.headerFontBold ? "700" : "500"
|
|
342
349
|
}
|
|
343
350
|
};
|
|
@@ -346,35 +353,35 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
346
353
|
D?.contentAlignment,
|
|
347
354
|
D?.headerFontBold,
|
|
348
355
|
D?.headerFontSize,
|
|
349
|
-
|
|
356
|
+
Ye,
|
|
350
357
|
D?.headerAlignment,
|
|
351
358
|
D?.textWrap?.isEnable
|
|
352
|
-
]),
|
|
359
|
+
]), Pt = (e, t, n) => {
|
|
353
360
|
if (t && n && Object.keys(t).includes(e) && Object.keys(n).includes(e)) return {
|
|
354
361
|
backgroundColor: t[e],
|
|
355
362
|
color: n[e]
|
|
356
363
|
};
|
|
357
364
|
if (t && Object.keys(t).includes(e)) return { backgroundColor: t[e] };
|
|
358
365
|
if (n && Object.keys(n).includes(e)) return { color: n[e] };
|
|
359
|
-
}, [
|
|
360
|
-
label: D?.defaultRowSize ||
|
|
361
|
-
value: D?.defaultRowSize ||
|
|
362
|
-
}), [
|
|
366
|
+
}, [Ft, It] = i([]), [Lt, Rt] = i([]), [zt, Bt] = i({}), [z, Vt] = i({
|
|
367
|
+
label: D?.defaultRowSize || te.tableSettings?.defaultRowSize || "10",
|
|
368
|
+
value: D?.defaultRowSize || te.tableSettings?.defaultRowSize || "10"
|
|
369
|
+
}), [Ht, Ut] = i(50), [Wt, Gt] = i(D?.columnSizing), [B, Kt] = i([]), [V, qt] = i({
|
|
363
370
|
pageIndex: 0,
|
|
364
371
|
pageSize: 10
|
|
365
|
-
}), [
|
|
372
|
+
}), [Jt, Yt] = i(!1);
|
|
366
373
|
t(() => {
|
|
367
|
-
Ce?.(
|
|
368
|
-
}, [
|
|
374
|
+
Ce?.(Wt);
|
|
375
|
+
}, [Wt]);
|
|
369
376
|
let H = r(null);
|
|
370
377
|
t(() => {
|
|
371
378
|
if (!D?.isAutoPagination || H.current === null) return;
|
|
372
379
|
let e = () => {
|
|
373
380
|
let e = Ee(H);
|
|
374
|
-
e && (
|
|
381
|
+
e && (Vt((t) => t?.value === e ? t : {
|
|
375
382
|
label: "custom",
|
|
376
383
|
value: e
|
|
377
|
-
}),
|
|
384
|
+
}), Be?.((t) => t?.tableSettings?.defaultRowSize === e ? t : {
|
|
378
385
|
...t,
|
|
379
386
|
tableSettings: {
|
|
380
387
|
...t.tableSettings,
|
|
@@ -388,35 +395,35 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
388
395
|
}, [D?.isAutoPagination, H.current]), t(() => {
|
|
389
396
|
if (!D?.defaultRowSize || D?.isAutoPagination) return;
|
|
390
397
|
let e = g.find((e) => e.value === D.defaultRowSize);
|
|
391
|
-
if (e) Number(e.value) > 1e3 ?
|
|
398
|
+
if (e) Number(e.value) > 1e3 ? Vt(g.at(-1)) : Vt(e);
|
|
392
399
|
else {
|
|
393
|
-
let e = g.find((e) => e.value ===
|
|
394
|
-
|
|
400
|
+
let e = g.find((e) => e.value === te.tableSettings?.defaultRowSize);
|
|
401
|
+
Vt(e);
|
|
395
402
|
}
|
|
396
403
|
}, [D?.defaultRowSize, D?.isAutoPagination]);
|
|
397
|
-
let [
|
|
404
|
+
let [Xt, Zt] = i(!1), Qt = n(() => !e || !R || !Array.isArray(e) || !Array.isArray(R) ? [] : D?.isEnableTranspose ? h(R, D?.isEnableTranspose) : R, [
|
|
398
405
|
e,
|
|
399
406
|
R,
|
|
400
407
|
D?.isEnableTranspose
|
|
401
|
-
]), U = n(() => e?.length ?
|
|
408
|
+
]), U = n(() => e?.length ? !$e || !et ? Qt : Qt?.map((e) => {
|
|
402
409
|
let t = {};
|
|
403
410
|
for (let n in e) {
|
|
404
411
|
let r = u({
|
|
405
412
|
text: n,
|
|
406
|
-
selectedLanguage:
|
|
407
|
-
translationDictionary:
|
|
413
|
+
selectedLanguage: $e,
|
|
414
|
+
translationDictionary: et
|
|
408
415
|
});
|
|
409
416
|
t[r] = u({
|
|
410
417
|
text: e[n],
|
|
411
|
-
selectedLanguage:
|
|
412
|
-
translationDictionary:
|
|
418
|
+
selectedLanguage: $e,
|
|
419
|
+
translationDictionary: et
|
|
413
420
|
});
|
|
414
421
|
}
|
|
415
422
|
return t;
|
|
416
423
|
}) : [], [
|
|
417
|
-
|
|
418
|
-
Qe,
|
|
424
|
+
Qt,
|
|
419
425
|
$e,
|
|
426
|
+
et,
|
|
420
427
|
e?.length
|
|
421
428
|
]), W = n(() => P?.[0] || B?.[0] ? U?.filter((e) => {
|
|
422
429
|
let t = P?.[0] || (typeof B?.[0] == "string" ? B?.[0] : B?.[0]?.value);
|
|
@@ -428,13 +435,13 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
428
435
|
]), G = n(() => {
|
|
429
436
|
if (!e?.length) return [];
|
|
430
437
|
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 =
|
|
438
|
+
return D?.isEnableColumnFilter && !U?.length && (a = dt || []), D?.showColumnFilter && (a = pt && I?.some(p) ? 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
439
|
header: () => e,
|
|
433
440
|
cell: (t) => {
|
|
434
441
|
let n = t.row.original[e];
|
|
435
442
|
return n == null ? "" : typeof n == "object" ? JSON.stringify(n) : typeof n == "boolean" ? n ? "true" : "false" : n;
|
|
436
443
|
},
|
|
437
|
-
sortingFn:
|
|
444
|
+
sortingFn: re(W.map((t) => t?.[e])),
|
|
438
445
|
enableResizing: !0,
|
|
439
446
|
enableColumnFilter: !0,
|
|
440
447
|
filterFn: D?.isEnableDropdownFilter && D?.dropdownFilterCols?.includes(e) ? "arrIncludesSome" : "auto"
|
|
@@ -453,66 +460,66 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
453
460
|
W
|
|
454
461
|
]);
|
|
455
462
|
t(() => {
|
|
456
|
-
e?.length ?
|
|
463
|
+
e?.length ? _t(G) : _t([]);
|
|
457
464
|
}, [G, e?.length]);
|
|
458
|
-
let
|
|
465
|
+
let $t = n(() => !e?.length && !W?.length ? [] : L?.length === Object.keys(e?.[0])?.length ? L : G, [
|
|
459
466
|
e?.length,
|
|
460
467
|
W?.length,
|
|
461
468
|
L,
|
|
462
469
|
G
|
|
463
470
|
]), K = me({
|
|
464
471
|
data: W,
|
|
465
|
-
columns:
|
|
472
|
+
columns: pt ? $t : L,
|
|
466
473
|
state: {
|
|
467
|
-
sorting:
|
|
474
|
+
sorting: Ft,
|
|
468
475
|
pagination: V,
|
|
469
|
-
...
|
|
476
|
+
...Wt ? { columnSizing: Wt } : {}
|
|
470
477
|
},
|
|
471
478
|
sortingFns: { manualSorting: c },
|
|
472
479
|
filterFns: { fuzzy: Me },
|
|
473
|
-
onRowSelectionChange:
|
|
474
|
-
onSortingChange:
|
|
480
|
+
onRowSelectionChange: Bt,
|
|
481
|
+
onSortingChange: It,
|
|
475
482
|
globalFilterFn: Ne,
|
|
476
483
|
getCoreRowModel: de(),
|
|
477
484
|
getFilteredRowModel: pe(),
|
|
478
485
|
getSortedRowModel: he(),
|
|
479
|
-
onGlobalFilterChange:
|
|
480
|
-
onPaginationChange:
|
|
486
|
+
onGlobalFilterChange: Ve || Kt,
|
|
487
|
+
onPaginationChange: qt,
|
|
481
488
|
manualPagination: !0,
|
|
482
489
|
debugTable: !1,
|
|
483
490
|
enableColumnResizing: !0,
|
|
484
491
|
columnResizeMode: "onChange",
|
|
485
|
-
onColumnSizingChange:
|
|
486
|
-
}),
|
|
487
|
-
infiniteScrollRecordCount:
|
|
492
|
+
onColumnSizingChange: Gt
|
|
493
|
+
}), en = K.getSortedRowModel().rows, tn = n(() => Pe({
|
|
494
|
+
infiniteScrollRecordCount: Ht,
|
|
488
495
|
isExternalChart: A,
|
|
489
|
-
isInfiniteScroll:
|
|
496
|
+
isInfiniteScroll: He,
|
|
490
497
|
isServerSidePagination: D?.isServerSidePagination,
|
|
491
|
-
onLoadMore:
|
|
498
|
+
onLoadMore: Ue,
|
|
492
499
|
pageIndex: V.pageIndex,
|
|
493
500
|
pageSize: V.pageSize,
|
|
494
|
-
rows:
|
|
501
|
+
rows: en
|
|
495
502
|
}), [
|
|
496
|
-
|
|
503
|
+
Ht,
|
|
497
504
|
A,
|
|
498
|
-
Ve,
|
|
499
|
-
D?.isServerSidePagination,
|
|
500
505
|
He,
|
|
506
|
+
D?.isServerSidePagination,
|
|
507
|
+
Ue,
|
|
501
508
|
V.pageIndex,
|
|
502
509
|
V.pageSize,
|
|
503
|
-
|
|
504
|
-
]),
|
|
505
|
-
count:
|
|
510
|
+
en
|
|
511
|
+
]), nn = ue({
|
|
512
|
+
count: tn.length,
|
|
506
513
|
getScrollElement: () => H.current?.querySelector(".simplebar-content-wrapper") ?? null,
|
|
507
|
-
estimateSize: () =>
|
|
514
|
+
estimateSize: () => Le(D),
|
|
508
515
|
overscan: 12
|
|
509
|
-
}), q =
|
|
516
|
+
}), q = nn.getVirtualItems(), rn = q.length ? q[0].start : 0, an = q.length ? nn.getTotalSize() - q[q.length - 1].end : 0, on = K.getVisibleLeafColumns().length || 1;
|
|
510
517
|
t(() => {
|
|
511
518
|
let e = S && !C?.length;
|
|
512
|
-
|
|
519
|
+
Zt(e);
|
|
513
520
|
}, [S, C?.length]);
|
|
514
|
-
let
|
|
515
|
-
|
|
521
|
+
let sn = () => {
|
|
522
|
+
it?.(!0);
|
|
516
523
|
let e = L?.map((e) => typeof e?.header == "function" ? e?.header() : e?.header), t = K?.getFilteredRowModel()?.rows?.map((t) => {
|
|
517
524
|
let n = {};
|
|
518
525
|
return e?.forEach((e) => {
|
|
@@ -526,21 +533,21 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
526
533
|
uppercaseHeaders: !1,
|
|
527
534
|
quoteAllValues: !0
|
|
528
535
|
}), 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),
|
|
536
|
+
i.setAttribute("href", a), i.setAttribute("download", `${O || "export"}.csv`), i.style.visibility = "hidden", document.body.appendChild(i), i.click(), document.body.removeChild(i), it?.(!1), st?.(!1);
|
|
530
537
|
};
|
|
531
538
|
t(() => {
|
|
532
|
-
|
|
533
|
-
}, [
|
|
534
|
-
let
|
|
539
|
+
ot && sn();
|
|
540
|
+
}, [ot]);
|
|
541
|
+
let cn = (e) => {
|
|
535
542
|
let t = Number(e.currentTarget.dataset.columnIndex);
|
|
536
|
-
|
|
537
|
-
}, [
|
|
543
|
+
Ct(t);
|
|
544
|
+
}, [ln, un] = i({
|
|
538
545
|
isOpen: !1,
|
|
539
546
|
column: ""
|
|
540
|
-
}),
|
|
547
|
+
}), dn = (e) => {
|
|
541
548
|
e.preventDefault();
|
|
542
|
-
let t = Number(e.currentTarget.dataset.columnIndex), n = [...L], [r] = n.splice(
|
|
543
|
-
n.splice(t, 0, r),
|
|
549
|
+
let t = Number(e.currentTarget.dataset.columnIndex), n = [...L], [r] = n.splice(St, 1);
|
|
550
|
+
n.splice(t, 0, r), _t(n), Ct(null);
|
|
544
551
|
};
|
|
545
552
|
t(() => {
|
|
546
553
|
let e = K.getState()?.sorting?.length > 0;
|
|
@@ -552,11 +559,11 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
552
559
|
]), t(() => {
|
|
553
560
|
K.setPageSize(Number(z.value));
|
|
554
561
|
}, [z, K]);
|
|
555
|
-
let { pageIndex: J, pageSize:
|
|
562
|
+
let { pageIndex: J, pageSize: fn } = K.getState().pagination, Y = n(() => {
|
|
556
563
|
let t = B || P ? K.getRowModel().rows.length : e?.length || 0;
|
|
557
564
|
return {
|
|
558
|
-
from: t === 0 ? 0 :
|
|
559
|
-
to: t <=
|
|
565
|
+
from: t === 0 ? 0 : fn * J + 1,
|
|
566
|
+
to: t <= fn * (J + 1) ? t : fn * (J + 1),
|
|
560
567
|
total: t
|
|
561
568
|
};
|
|
562
569
|
}, [
|
|
@@ -565,40 +572,40 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
565
572
|
P,
|
|
566
573
|
e?.length,
|
|
567
574
|
J,
|
|
568
|
-
|
|
575
|
+
fn
|
|
569
576
|
]), { pageCount: X, currentPage: Z } = n(() => N && A ? {
|
|
570
577
|
pageCount: Math.ceil(N.totalRecords / N.limit),
|
|
571
578
|
currentPage: Math.floor(N.offset / N.limit)
|
|
572
579
|
} : {
|
|
573
580
|
pageCount: 1,
|
|
574
581
|
currentPage: 0
|
|
575
|
-
}, [A, N]),
|
|
582
|
+
}, [A, N]), pn;
|
|
576
583
|
if (A) {
|
|
577
584
|
let e = b(N.totalRecords, !0)?.toString()?.split(".");
|
|
578
|
-
|
|
585
|
+
pn = e?.length > 1 && [...e[1]].some((e) => parseInt(e, 10) > 0) ? b(N.totalRecords, !0) : b(N.totalRecords, !1);
|
|
579
586
|
}
|
|
580
587
|
t(() => {
|
|
581
588
|
K.getIsSomeColumnsVisible() && we?.();
|
|
582
589
|
}, [K.getIsSomeColumnsVisible()]);
|
|
583
|
-
let Q = (e, t) => t?.includes(e) ? j.badge : "",
|
|
590
|
+
let Q = (e, t) => t?.includes(e) ? j.badge : "", mn = (e, t) => t?.includes(e) ? j.list : "";
|
|
584
591
|
t(() => {
|
|
585
592
|
D?.isEnableColumnFilter || K.resetColumnFilters();
|
|
586
593
|
}, [K, D?.isEnableColumnFilter]), t(() => {
|
|
587
|
-
K.getState().columnFilters?.length && (
|
|
594
|
+
K.getState().columnFilters?.length && (Kt(K.getState().columnFilters), Ve?.(K.getState().columnFilters));
|
|
588
595
|
}, [K]);
|
|
589
|
-
let
|
|
596
|
+
let hn = r(O);
|
|
590
597
|
t(() => {
|
|
591
|
-
U?.length && (
|
|
598
|
+
U?.length && (hn.current === O && I.length || gt(Object.keys(U[0] || {})), hn.current = O);
|
|
592
599
|
}, [U?.[0], O]);
|
|
593
|
-
let [
|
|
600
|
+
let [gn, _n] = i(1);
|
|
594
601
|
t(() => {
|
|
595
|
-
|
|
602
|
+
_n(A ? Z + 1 : J + 1);
|
|
596
603
|
}, [Z, J]);
|
|
597
|
-
let $ = window.CSS && CSS.supports("width", "clamp(1px, 1px, 1px)"),
|
|
598
|
-
headerRowCount:
|
|
599
|
-
footerRowCount:
|
|
604
|
+
let $ = window.CSS && CSS.supports("width", "clamp(1px, 1px, 1px)"), vn = D?.hideTableHeader ? 0 : K.getHeaderGroups()?.length || 0, yn = D?.aggregateRow?.isEnable && D?.aggregateRow?.columns?.length ? 1 : 0, bn = be({
|
|
605
|
+
headerRowCount: vn,
|
|
606
|
+
footerRowCount: yn,
|
|
600
607
|
isExternalChart: A,
|
|
601
|
-
isInfiniteScroll:
|
|
608
|
+
isInfiniteScroll: He,
|
|
602
609
|
isServerSidePagination: D?.isServerSidePagination,
|
|
603
610
|
pageIndex: V.pageIndex,
|
|
604
611
|
pageSize: V.pageSize,
|
|
@@ -611,22 +618,22 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
611
618
|
children: [/* @__PURE__ */ E("div", {
|
|
612
619
|
className: j.previewTable,
|
|
613
620
|
children: [
|
|
614
|
-
D?.enableTableSearch && D?.searchPosition === "left" && !
|
|
621
|
+
D?.enableTableSearch && D?.searchPosition === "left" && !Ve ? /* @__PURE__ */ T("div", {
|
|
615
622
|
className: "dbn:w-full dbn:flex dbn:items-center dbn:justify-start",
|
|
616
623
|
style: { order: 0 },
|
|
617
624
|
children: /* @__PURE__ */ T(M, {
|
|
618
625
|
value: typeof B?.[0] == "string" ? B?.[0] : "",
|
|
619
|
-
onChange: (e) =>
|
|
626
|
+
onChange: (e) => Kt(() => [String(e)]),
|
|
620
627
|
placeholder: "Search",
|
|
621
628
|
style: { maxWidth: "249px" }
|
|
622
629
|
})
|
|
623
630
|
}) : null,
|
|
624
|
-
D?.enableTableSearch && !
|
|
631
|
+
D?.enableTableSearch && !Ve && D?.searchPosition !== "left" || D?.showTableTitle && D.tableTitle ? /* @__PURE__ */ E("div", {
|
|
625
632
|
className: D.showTableTitle ? j.preview : j.searchButton,
|
|
626
633
|
style: { order: 1 },
|
|
627
634
|
children: [D.showTableTitle && /* @__PURE__ */ E("div", {
|
|
628
635
|
className: "dbn:flex dbn:items-center dbn:gap-2",
|
|
629
|
-
children: [D.showTableIcon && /* @__PURE__ */ T(
|
|
636
|
+
children: [D.showTableIcon && /* @__PURE__ */ T(d, { name: "table" }), /* @__PURE__ */ T("span", {
|
|
630
637
|
className: j.title,
|
|
631
638
|
style: { color: D?.tableTitleColor },
|
|
632
639
|
children: D.tableTitle
|
|
@@ -644,7 +651,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
644
651
|
label: e
|
|
645
652
|
})) || [],
|
|
646
653
|
onChange: (e) => {
|
|
647
|
-
|
|
654
|
+
gt(e?.map((e) => e.value));
|
|
648
655
|
},
|
|
649
656
|
isSelectAllEnabled: !0,
|
|
650
657
|
isSelectAllOn: !0,
|
|
@@ -654,28 +661,28 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
654
661
|
buttonWidth: "250px",
|
|
655
662
|
menuWidth: "250px"
|
|
656
663
|
}),
|
|
657
|
-
D.showDownloadBtn && /* @__PURE__ */ T(
|
|
664
|
+
D.showDownloadBtn && /* @__PURE__ */ T(m, {
|
|
658
665
|
variant: "popover",
|
|
659
666
|
onClick: () => {
|
|
660
|
-
|
|
667
|
+
at?.(L?.map((e) => typeof e.header == "function" ? e.header() : e.header));
|
|
661
668
|
},
|
|
662
|
-
isDisabled:
|
|
663
|
-
leftIcon:
|
|
669
|
+
isDisabled: rt,
|
|
670
|
+
leftIcon: rt ? /* @__PURE__ */ T("div", {
|
|
664
671
|
className: "dbn:animate-spin",
|
|
665
|
-
children: /* @__PURE__ */ T(
|
|
672
|
+
children: /* @__PURE__ */ T(d, {
|
|
666
673
|
name: "table-downloading",
|
|
667
674
|
width: "20px",
|
|
668
675
|
height: "20px"
|
|
669
676
|
})
|
|
670
|
-
}) : /* @__PURE__ */ T(
|
|
677
|
+
}) : /* @__PURE__ */ T(d, {
|
|
671
678
|
name: "download_table",
|
|
672
679
|
size: "sm"
|
|
673
680
|
}),
|
|
674
681
|
className: "dbn:p-2.5 dbn:border dbn:border-secondary dbn:rounded-md"
|
|
675
682
|
}),
|
|
676
|
-
D.enableTableSearch && D?.searchPosition !== "left" && !
|
|
683
|
+
D.enableTableSearch && D?.searchPosition !== "left" && !Ve && /* @__PURE__ */ T(M, {
|
|
677
684
|
value: typeof B?.[0] == "string" ? B?.[0] : "",
|
|
678
|
-
onChange: (e) =>
|
|
685
|
+
onChange: (e) => Kt(() => [String(e)]),
|
|
679
686
|
placeholder: "Search"
|
|
680
687
|
})
|
|
681
688
|
]
|
|
@@ -683,21 +690,22 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
683
690
|
}) : null,
|
|
684
691
|
/* @__PURE__ */ E("div", {
|
|
685
692
|
className: `${j.tableData} ${D?.hideBorder ? j.noBorder : ""}`,
|
|
686
|
-
"data-dbn-underlying-data-surface":
|
|
693
|
+
"data-dbn-underlying-data-surface": ft || void 0,
|
|
687
694
|
ref: H,
|
|
688
695
|
style: { order: D?.paginationPosition === "top" ? 3 : 2 },
|
|
689
696
|
children: [
|
|
690
|
-
S && !e?.length ||
|
|
697
|
+
S && !e?.length || Xt ? /* @__PURE__ */ T(ie, {
|
|
691
698
|
variant: "table",
|
|
692
699
|
tableRows: 6
|
|
693
700
|
}) : null,
|
|
694
|
-
(!!R?.length || D?.isEnableColumnFilter) && !S && !
|
|
701
|
+
(!!R?.length || D?.isEnableColumnFilter) && !S && !Xt && /* @__PURE__ */ E(ge, {
|
|
695
702
|
style: { height: "100%" },
|
|
696
703
|
className: !R?.length || !W?.length ? j.emptyFilterData : "",
|
|
697
704
|
children: [
|
|
698
|
-
!(!
|
|
705
|
+
!(!pt && !W?.length && e?.length && (P?.[0] || B?.[0])) && /* @__PURE__ */ E("table", {
|
|
699
706
|
className: j.table,
|
|
700
|
-
|
|
707
|
+
style: Ie(D),
|
|
708
|
+
"aria-rowcount": bn.totalRows > 0 ? bn.ariaRowCount : -1,
|
|
701
709
|
children: [
|
|
702
710
|
D?.hideTableHeader ? null : /* @__PURE__ */ T("thead", { children: K.getHeaderGroups()?.map((e, t) => /* @__PURE__ */ T("tr", {
|
|
703
711
|
className: j.row,
|
|
@@ -705,11 +713,11 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
705
713
|
"aria-rowindex": t + 1,
|
|
706
714
|
children: e.headers?.map((e, t) => {
|
|
707
715
|
let n = D?.customHeaderColor?.color || "", r = D?.customHeaderColor?.isEnabled ? n.startsWith("var(") ? "var(--surface-hover, var(--dbn-color-snow))" : le(n) : "", i = "", a = D?.customHeaderColor?.textColor || "";
|
|
708
|
-
return
|
|
716
|
+
return vt !== e?.id && D?.customHeaderColor?.isEnabled && (a = D?.customHeaderColor?.textColor || "", i = D?.customHeaderColor?.color || ""), vt === e?.id && D?.customHeaderColor?.isEnabled && (i = D?.customHeaderColor?.textColor || "", a = D?.customHeaderColor?.color || ""), /* @__PURE__ */ E("th", {
|
|
709
717
|
"data-testid": `${e.id}-header`,
|
|
710
718
|
className: `${j.tableHeadCol} ${D?.hideVerticalDivider ? "" : j.tableBorderRight} ${D?.hideHorizontalDivider ? "" : j.tableBorderBottom} hover:dbn-bg-[${r}]`,
|
|
711
719
|
onContextMenu: (t) => {
|
|
712
|
-
t.preventDefault(), D?.isSepAlign && !
|
|
720
|
+
t.preventDefault(), D?.isSepAlign && !tt && !Ae && un({
|
|
713
721
|
isOpen: !0,
|
|
714
722
|
column: e.id
|
|
715
723
|
});
|
|
@@ -721,13 +729,13 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
721
729
|
color: a || ""
|
|
722
730
|
},
|
|
723
731
|
draggable: !e.column.getIsResizing(),
|
|
724
|
-
onMouseOver: () =>
|
|
725
|
-
onMouseOut: () =>
|
|
732
|
+
onMouseOver: () => yt(e.id),
|
|
733
|
+
onMouseOut: () => yt(""),
|
|
726
734
|
"data-column-index": t,
|
|
727
|
-
onDragStart:
|
|
735
|
+
onDragStart: cn,
|
|
728
736
|
onDragOver: (e) => e.preventDefault(),
|
|
729
|
-
onDrop:
|
|
730
|
-
children: [/* @__PURE__ */ T(
|
|
737
|
+
onDrop: dn,
|
|
738
|
+
children: [/* @__PURE__ */ T(m, {
|
|
731
739
|
onMouseDown: e.getResizeHandler(),
|
|
732
740
|
variant: "popover",
|
|
733
741
|
onTouchStart: e.getResizeHandler(),
|
|
@@ -740,7 +748,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
740
748
|
onClick: e.column.getToggleSortingHandler(),
|
|
741
749
|
children: [e.isPlaceholder ? null : /* @__PURE__ */ T("span", {
|
|
742
750
|
style: {
|
|
743
|
-
...
|
|
751
|
+
...Nt,
|
|
744
752
|
color: a
|
|
745
753
|
},
|
|
746
754
|
className: D?.textWrap?.headerWrap ? j.wrapCellText : j.truncateText,
|
|
@@ -748,49 +756,49 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
748
756
|
}), /* @__PURE__ */ E("div", {
|
|
749
757
|
className: `dbn-interactive-element ${j.sortIcon}`,
|
|
750
758
|
children: [{
|
|
751
|
-
asc: /* @__PURE__ */ T(
|
|
759
|
+
asc: /* @__PURE__ */ T(d, {
|
|
752
760
|
name: "caret-up-fill",
|
|
753
761
|
customColor: a || ""
|
|
754
762
|
}),
|
|
755
|
-
desc: /* @__PURE__ */ T(
|
|
763
|
+
desc: /* @__PURE__ */ T(d, {
|
|
756
764
|
name: "caret-down-fill",
|
|
757
765
|
customColor: a || ""
|
|
758
766
|
})
|
|
759
|
-
}[e.column.getIsSorted()] ?? /* @__PURE__ */ T(
|
|
767
|
+
}[e.column.getIsSorted()] ?? /* @__PURE__ */ T(d, {
|
|
760
768
|
name: "caret-up-down",
|
|
761
769
|
customColor: a || ""
|
|
762
770
|
}), e.column.getCanFilter() && D?.isEnableColumnFilter ? /* @__PURE__ */ T("span", {
|
|
763
771
|
onClick: (e) => e.stopPropagation(),
|
|
764
|
-
children: /* @__PURE__ */ T(
|
|
772
|
+
children: /* @__PURE__ */ T(m, {
|
|
765
773
|
variant: "popover",
|
|
766
|
-
leftIcon: /* @__PURE__ */ T(
|
|
774
|
+
leftIcon: /* @__PURE__ */ T(d, {
|
|
767
775
|
name: "funnel",
|
|
768
776
|
customColor: a || ""
|
|
769
777
|
}),
|
|
770
778
|
onClick: () => {
|
|
771
|
-
|
|
779
|
+
wt?.includes(e.id) ? (Tt((t) => t.filter((t) => t !== e.id)), ut?.({
|
|
772
780
|
columnAlias: e.id,
|
|
773
781
|
value: "",
|
|
774
782
|
isClear: !0
|
|
775
|
-
})) :
|
|
783
|
+
})) : Tt((t) => [...t, e.id]);
|
|
776
784
|
}
|
|
777
785
|
})
|
|
778
786
|
}) : null]
|
|
779
787
|
})]
|
|
780
|
-
}), e.column.getCanFilter() && D?.isEnableColumnFilter && (
|
|
788
|
+
}), e.column.getCanFilter() && D?.isEnableColumnFilter && (wt?.includes(e.id) || D?.isServerSidePagination && lt?.find((t) => t?.columnAlias === e?.id)) ? /* @__PURE__ */ T("div", {
|
|
781
789
|
className: "dbn:w-full dbn:mt-2",
|
|
782
790
|
children: /* @__PURE__ */ T(De, {
|
|
783
791
|
column: e.column,
|
|
784
792
|
table: K,
|
|
785
793
|
dropdownFilterVariant: !!(D?.isEnableDropdownFilter && D?.dropdownFilterCols?.includes(e.column.id)),
|
|
786
|
-
onChangePaginationColumnFilters: D?.isServerSidePagination ?
|
|
787
|
-
tableColumnFilters: D?.isServerSidePagination ?
|
|
794
|
+
onChangePaginationColumnFilters: D?.isServerSidePagination ? ut : void 0,
|
|
795
|
+
tableColumnFilters: D?.isServerSidePagination ? lt : void 0
|
|
788
796
|
})
|
|
789
797
|
}) : null] }) : /* @__PURE__ */ T(w, { children: e.isPlaceholder ? null : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("div", {
|
|
790
798
|
className: j.sortButton,
|
|
791
799
|
children: [/* @__PURE__ */ T("span", {
|
|
792
800
|
style: {
|
|
793
|
-
...
|
|
801
|
+
...Nt,
|
|
794
802
|
color: a,
|
|
795
803
|
fontSize: D?.headerFontSize ? `${D?.headerFontSize}px` : $ ? "clamp(0.4rem, 5cqw, 0.75rem)" : "0.75rem"
|
|
796
804
|
},
|
|
@@ -798,65 +806,65 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
798
806
|
children: fe(e.column.columnDef.header, e.getContext())
|
|
799
807
|
}), e.column.getCanFilter() && D?.isEnableColumnFilter ? /* @__PURE__ */ T("span", {
|
|
800
808
|
onClick: (e) => e.stopPropagation(),
|
|
801
|
-
children: /* @__PURE__ */ T(
|
|
809
|
+
children: /* @__PURE__ */ T(m, {
|
|
802
810
|
variant: "popover",
|
|
803
|
-
leftIcon: /* @__PURE__ */ T(
|
|
811
|
+
leftIcon: /* @__PURE__ */ T(d, {
|
|
804
812
|
name: "funnel",
|
|
805
813
|
customColor: a || ""
|
|
806
814
|
}),
|
|
807
815
|
onClick: () => {
|
|
808
|
-
|
|
816
|
+
wt?.includes(e.id) ? (Tt((t) => t.filter((t) => t !== e.id)), ut?.({
|
|
809
817
|
columnAlias: e.id,
|
|
810
818
|
value: "",
|
|
811
819
|
isClear: !0
|
|
812
|
-
})) :
|
|
820
|
+
})) : Tt((t) => [...t, e.id]);
|
|
813
821
|
}
|
|
814
822
|
})
|
|
815
823
|
}) : null]
|
|
816
|
-
}), e.column.getCanFilter() && D?.isEnableColumnFilter && (
|
|
824
|
+
}), e.column.getCanFilter() && D?.isEnableColumnFilter && (wt?.includes(e.id) || D?.isServerSidePagination && lt?.find((t) => t?.columnAlias === e?.id)) ? /* @__PURE__ */ T("div", {
|
|
817
825
|
className: "dbn:w-full dbn:mt-2",
|
|
818
826
|
children: /* @__PURE__ */ T(De, {
|
|
819
827
|
column: e.column,
|
|
820
828
|
table: K,
|
|
821
829
|
dropdownFilterVariant: !!(D?.isEnableDropdownFilter && D?.dropdownFilterCols?.includes(e.column.id)),
|
|
822
|
-
onChangePaginationColumnFilters: D?.isServerSidePagination ?
|
|
823
|
-
tableColumnFilters: D?.isServerSidePagination ?
|
|
830
|
+
onChangePaginationColumnFilters: D?.isServerSidePagination ? ut : void 0,
|
|
831
|
+
tableColumnFilters: D?.isServerSidePagination ? lt : void 0
|
|
824
832
|
})
|
|
825
833
|
}) : null] }) })]
|
|
826
834
|
}, e.id);
|
|
827
835
|
})
|
|
828
836
|
}, e.id)) }),
|
|
829
837
|
R?.length ? /* @__PURE__ */ T(w, { children: /* @__PURE__ */ E("tbody", { children: [
|
|
830
|
-
|
|
831
|
-
colSpan:
|
|
838
|
+
rn > 0 ? /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
|
|
839
|
+
colSpan: on,
|
|
832
840
|
style: {
|
|
833
|
-
height: `${
|
|
841
|
+
height: `${rn}px`,
|
|
834
842
|
padding: 0,
|
|
835
843
|
border: 0
|
|
836
844
|
}
|
|
837
845
|
}) }) : null,
|
|
838
846
|
q.map((e) => {
|
|
839
|
-
let t =
|
|
847
|
+
let t = tn[e.index];
|
|
840
848
|
if (!t) return null;
|
|
841
849
|
let n = e.index;
|
|
842
850
|
return /* @__PURE__ */ T("tr", {
|
|
843
|
-
ref:
|
|
851
|
+
ref: nn.measureElement,
|
|
844
852
|
"data-index": n,
|
|
845
853
|
"data-testid": `table-row-${t.id}`,
|
|
846
|
-
"aria-rowindex":
|
|
847
|
-
style:
|
|
854
|
+
"aria-rowindex": bn.firstRowIndex + n,
|
|
855
|
+
style: Xe?.click ? { cursor: "pointer" } : void 0,
|
|
848
856
|
className: `${D?.showRowHover ? j.rowHover : ""} ${D?.enableStripedRows && Number(n) % 2 != 0 ? j.stripedRow : ""}`,
|
|
849
857
|
onClick: () => {
|
|
850
|
-
|
|
858
|
+
Xe?.click({}, Object.keys(t.original ?? {})?.map((e) => ({
|
|
851
859
|
columnName: e,
|
|
852
860
|
value: t.original?.[e]
|
|
853
861
|
})));
|
|
854
862
|
},
|
|
855
863
|
children: t.getVisibleCells()?.map((e, t) => {
|
|
856
864
|
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(
|
|
858
|
-
let a =
|
|
859
|
-
if (!i && F(e.column.id)) return String(
|
|
865
|
+
Q(e.column.id, D?.badgeColumns) ? (r = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n = r?.toString()?.includes(Et) ? r?.toString()?.split(Et) : [r]) : mn(e.column.id, D?.listColumns) && (r = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n = r?.toString()?.includes(Ot) ? r?.toString()?.split(D?.listSeparator || ",") : [r]);
|
|
866
|
+
let a = Lt?.find((t) => t.id === e.id)?.isShowMore, o = D?.tableNumberFormatter?.find((t) => t.columns?.includes(e.column.id)), s = D?.isEnableNumberFormatting && (!!o || D?.formattedColumns?.includes(e.column.id)), c = Qe?.length ? Qe?.find((t) => t?.measures?.includes(e.column.id)) : void 0, l = c?.numberFormatter || o?.formatter || D?.tableFormatter, u = c?.prefix || o?.prefix || D?.tablePrefix || "", ee = c?.suffix || o?.suffix || D?.tableSuffix || "", te = D?.isEnableNumberFormatting && D?.isEnableTimezoneFormatting && ze?.includes(e.column.id), ne = D?.textWrap?.isEnable && D?.textWrap?.columns?.includes(e?.column?.id), re = () => {
|
|
867
|
+
if (!i && F(e.column.id)) return String(ht(e.getValue(), e.column.id) ?? "");
|
|
860
868
|
if (D?.replaceNullValuesWithEmpty && (e?.getValue() === "null" || e?.getValue() === null)) return "";
|
|
861
869
|
if (D?.replaceNullValues && (e?.getValue() === "null" || e?.getValue() === null)) return "-";
|
|
862
870
|
if (i) {
|
|
@@ -864,12 +872,12 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
864
872
|
column: e,
|
|
865
873
|
value: n[e]
|
|
866
874
|
}));
|
|
867
|
-
return /* @__PURE__ */ T(
|
|
875
|
+
return /* @__PURE__ */ T(m, {
|
|
868
876
|
variant: "popover",
|
|
869
877
|
size: "small",
|
|
870
878
|
className: "dbn:text-link-text dbn:hover:underline",
|
|
871
879
|
onClick: () => {
|
|
872
|
-
|
|
880
|
+
xt({
|
|
873
881
|
isShow: !0,
|
|
874
882
|
data: r
|
|
875
883
|
});
|
|
@@ -879,23 +887,23 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
879
887
|
}
|
|
880
888
|
if (s) {
|
|
881
889
|
let t = e?.getValue(), n = Number(t);
|
|
882
|
-
return t == null || isNaN(n) ? `${t}` : `${u}${ce(n || 0, l)}${
|
|
890
|
+
return t == null || isNaN(n) ? `${t}` : `${u}${ce(n || 0, l)}${ee}`;
|
|
883
891
|
}
|
|
884
|
-
return
|
|
885
|
-
},
|
|
892
|
+
return te ? oe(e?.getValue()?.toString() || "", D?.timeFormatter || "") : fe(e.column.columnDef.cell, e.getContext());
|
|
893
|
+
}, f = tt && !nt && D?.chartAction ? (() => {
|
|
886
894
|
if (D?.chartAction?.isEnableCustomRedirection) {
|
|
887
895
|
let t = D?.chartAction?.clickValues?.find((t) => t.text === e?.getValue()?.toString());
|
|
888
896
|
if (t) return t;
|
|
889
897
|
}
|
|
890
898
|
return D?.chartAction?.isEnableCustomColumnRedirection ? D?.chartAction?.clickColumns?.find((t) => t.colName === e?.column?.id) : null;
|
|
891
|
-
})() : null,
|
|
892
|
-
|
|
899
|
+
})() : null, ie = f?.link, p = f && "text" in f, h = f && "colName" in f, g = f?.isOpenInNewTab, _ = j.truncateText;
|
|
900
|
+
ne && (_ = D?.hideTableHeader && D?.isHideHorizontalScroll ? j.wrapCellText : j.wrapText);
|
|
893
901
|
let v = ye({
|
|
894
902
|
rules: D?.conditionalFormatting?.find(({ columnName: t }) => t === e?.column?.id)?.rules || [],
|
|
895
903
|
value: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(),
|
|
896
904
|
formatter: l
|
|
897
|
-
}), ae = v?.prefix || "", se = v?.suffix || "", y = !Object.keys(v)?.length && D?.badgeColumns?.includes(e.column.id) ?
|
|
898
|
-
b ? le = y?.badgeColor : D?.badgeColumns?.includes(e.column.id) && (le =
|
|
905
|
+
}), ae = v?.prefix || "", se = v?.suffix || "", y = !Object.keys(v)?.length && D?.badgeColumns?.includes(e.column.id) ? Pt(e.column.id, D?.badgeColors, D?.badgeTextColors) : v, le = "", b = (y?.isApplyBadgeColor || !(y?.isApplyBgColor || !y?.badgeColor)) && !!Object.keys(v)?.length;
|
|
906
|
+
b ? le = y?.badgeColor : D?.badgeColumns?.includes(e.column.id) && (le = Pt(e.column.id, D?.badgeColors, D?.badgeTextColors)?.backgroundColor);
|
|
899
907
|
let x = v;
|
|
900
908
|
if (v && "backgroundColor" in v && b) {
|
|
901
909
|
let { backgroundColor: e, ...t } = v;
|
|
@@ -903,10 +911,10 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
903
911
|
}
|
|
904
912
|
return /* @__PURE__ */ E("td", {
|
|
905
913
|
"data-testid": e.id,
|
|
906
|
-
className: `${j.tableRowCol} ${D?.hideVerticalDivider ? "" : j.tableBorderRight} ${D?.isRemovePadding ? "" : j.horizontalPadding} ${D?.hideHorizontalDivider ? "" : j.tableBorderBottom} ${
|
|
914
|
+
className: `${j.tableRowCol} ${D?.hideVerticalDivider ? "" : j.tableBorderRight} ${D?.isRemovePadding ? "" : j.horizontalPadding} ${D?.hideHorizontalDivider ? "" : j.tableBorderBottom} ${St === t ? j.columnDrag : ""}`,
|
|
907
915
|
title: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : `${e.getValue()}`,
|
|
908
916
|
onContextMenu: (t) => {
|
|
909
|
-
typeof e.getValue() == "string" &&
|
|
917
|
+
typeof e.getValue() == "string" && Xe?.contextmenu({ name: `${e.getValue()}` });
|
|
910
918
|
},
|
|
911
919
|
style: D?.hideTableHeader ? {
|
|
912
920
|
width: D?.isHideHorizontalScroll ? `${e.column.getSize() / K.getTotalSize() * 100}%` : $ && G?.length < 6 ? `clamp(
|
|
@@ -921,16 +929,16 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
921
929
|
} : {}
|
|
922
930
|
} : {},
|
|
923
931
|
children: [
|
|
924
|
-
!!D && !
|
|
932
|
+
!!D && !ft && /* @__PURE__ */ T("div", {
|
|
925
933
|
style: Q(e.column.id, D.listColumns) ? {
|
|
926
|
-
...
|
|
934
|
+
...Mt,
|
|
927
935
|
...x
|
|
928
936
|
} : {
|
|
929
|
-
...
|
|
937
|
+
...jt,
|
|
930
938
|
...x,
|
|
931
939
|
...D?.isSepAlign && Object.keys(D?.colAlignments || []).includes(e.column.id) ? { justifyContent: D?.colAlignments?.[e.column.id] } : {}
|
|
932
940
|
},
|
|
933
|
-
children: r?.toString()?.includes(
|
|
941
|
+
children: r?.toString()?.includes(Et) || r?.toString()?.includes(Ot) ? /* @__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
942
|
className: `${_} ${Q(e.column.id, D.badgeColumns)}`,
|
|
935
943
|
style: {
|
|
936
944
|
fontFamily: D?.contentFont,
|
|
@@ -942,7 +950,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
942
950
|
},
|
|
943
951
|
children: [
|
|
944
952
|
ae,
|
|
945
|
-
F(e.column.id) ? String(
|
|
953
|
+
F(e.column.id) ? String(ht(t, e.column.id) ?? "") : s ? `${u}${ce(Number(t) || 0, l)}${ee}` : t,
|
|
946
954
|
se
|
|
947
955
|
]
|
|
948
956
|
}, t) : /* @__PURE__ */ E("div", {
|
|
@@ -960,14 +968,14 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
960
968
|
},
|
|
961
969
|
children: [
|
|
962
970
|
ae,
|
|
963
|
-
F(e.column.id) ? String(
|
|
971
|
+
F(e.column.id) ? String(ht(t, e.column.id) ?? "") : t,
|
|
964
972
|
se
|
|
965
973
|
]
|
|
966
974
|
})]
|
|
967
|
-
}, t) })), Q(e.column.id, D.listColumns) && n.length > 3 && !a ? /* @__PURE__ */ E(
|
|
975
|
+
}, t) })), Q(e.column.id, D.listColumns) && n.length > 3 && !a ? /* @__PURE__ */ E(m, {
|
|
968
976
|
variant: "popover",
|
|
969
977
|
className: `${j.truncateIcon} dbn:bg-gray`,
|
|
970
|
-
onClick: () =>
|
|
978
|
+
onClick: () => Rt((n) => {
|
|
971
979
|
let r = n.findIndex((t) => t.id === e.id);
|
|
972
980
|
return r === -1 ? [...n, {
|
|
973
981
|
id: e.id,
|
|
@@ -977,14 +985,14 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
977
985
|
isShowMore: !n[t]?.isShowMore
|
|
978
986
|
}, n);
|
|
979
987
|
}),
|
|
980
|
-
children: [/* @__PURE__ */ T(
|
|
988
|
+
children: [/* @__PURE__ */ T(d, {
|
|
981
989
|
name: "plus",
|
|
982
990
|
size: "xxs",
|
|
983
991
|
color: "secondary-dark"
|
|
984
992
|
}), n.length - 3]
|
|
985
|
-
}) : null] }) :
|
|
993
|
+
}) : null] }) : re() === "" ? /* @__PURE__ */ T(w, {}) : /* @__PURE__ */ E("span", {
|
|
986
994
|
"data-testid": "cell-content",
|
|
987
|
-
className: `${_} ${Q(e.column.id, D.badgeColumns) || b ? j.badge : ""} ${
|
|
995
|
+
className: `${_} ${Q(e.column.id, D.badgeColumns) || b ? j.badge : ""} ${f && "text" in f && !p ? j.link : ""} ${j.customLink} ${ne && D?.textWrap?.enableLineBreaks ? j.textLineBreak : ""}`,
|
|
988
996
|
style: {
|
|
989
997
|
fontFamily: D?.contentFont,
|
|
990
998
|
color: D?.contentColor || "var(--dbn-txt-primary, #252525)",
|
|
@@ -994,50 +1002,50 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
994
1002
|
fontSize: D?.contentFontSize ? `${D?.contentFontSize}px` : $ ? "clamp(0.4rem, 5cqw, 0.875rem)" : "0.875rem"
|
|
995
1003
|
},
|
|
996
1004
|
children: [/* @__PURE__ */ E("span", {
|
|
997
|
-
className: `${
|
|
1005
|
+
className: `${ne ? "" : "dbn:truncate"} ${p || h ? "dbn:w-[90%]" : ""}`,
|
|
998
1006
|
children: [
|
|
999
1007
|
ae,
|
|
1000
|
-
|
|
1008
|
+
re(),
|
|
1001
1009
|
se
|
|
1002
1010
|
]
|
|
1003
|
-
}),
|
|
1011
|
+
}), p || h ? /* @__PURE__ */ T(m, {
|
|
1004
1012
|
variant: "popover",
|
|
1005
1013
|
onClick: (t) => {
|
|
1006
|
-
|
|
1014
|
+
Xe?.click && f && (t.preventDefault(), t.stopPropagation(), h ? _e({
|
|
1007
1015
|
isEnable: !0,
|
|
1008
|
-
route:
|
|
1016
|
+
route: ie ?? "",
|
|
1009
1017
|
isOpenInNewTab: g
|
|
1010
|
-
}, e?.getValue()?.toString() ?? "") : ve(
|
|
1018
|
+
}, e?.getValue()?.toString() ?? "") : ve(ie, g));
|
|
1011
1019
|
},
|
|
1012
1020
|
onContextMenu: (t) => {
|
|
1013
|
-
|
|
1021
|
+
Xe?.click && f && (t.preventDefault(), t.stopPropagation(), h ? _e({
|
|
1014
1022
|
isEnable: !0,
|
|
1015
|
-
route:
|
|
1023
|
+
route: ie ?? "",
|
|
1016
1024
|
isOpenInNewTab: g
|
|
1017
|
-
}, e?.getValue()?.toString() ?? "") : ve(
|
|
1025
|
+
}, e?.getValue()?.toString() ?? "") : ve(ie, g));
|
|
1018
1026
|
},
|
|
1019
1027
|
containerClass: "dbn-interactive-element",
|
|
1020
|
-
className:
|
|
1021
|
-
leftIcon: /* @__PURE__ */ T(
|
|
1022
|
-
name:
|
|
1028
|
+
className: p ? j.link : "",
|
|
1029
|
+
leftIcon: /* @__PURE__ */ T(d, {
|
|
1030
|
+
name: p ? "link" : "new-window",
|
|
1023
1031
|
size: "xs"
|
|
1024
1032
|
})
|
|
1025
1033
|
}) : null]
|
|
1026
1034
|
})
|
|
1027
1035
|
}),
|
|
1028
|
-
(!D ||
|
|
1036
|
+
(!D || ft) && /* @__PURE__ */ T("div", {
|
|
1029
1037
|
style: {
|
|
1030
1038
|
textAlign: "center",
|
|
1031
1039
|
width: "100%",
|
|
1032
|
-
...
|
|
1040
|
+
...ft ? {
|
|
1033
1041
|
color: D?.contentColor || "var(--dbn-txt-primary, #252525)",
|
|
1034
|
-
height:
|
|
1042
|
+
height: jt?.height || "24px",
|
|
1035
1043
|
fontWeight: D?.contentWeight || 500,
|
|
1036
1044
|
fontSize: D?.contentFontSize ? `${D?.contentFontSize}px` : $ ? "clamp(0.4rem, 5cqw, 0.875rem)" : "0.875rem"
|
|
1037
1045
|
} : {}
|
|
1038
1046
|
},
|
|
1039
1047
|
className: j.truncateText,
|
|
1040
|
-
children: F(e.column.id) ? String(
|
|
1048
|
+
children: F(e.column.id) ? String(ht(e.getValue(), e.column.id) ?? "") : fe(e.column.columnDef.cell, e.getContext())
|
|
1041
1049
|
}),
|
|
1042
1050
|
e.column.getCanResize() && D?.hideTableHeader ? /* @__PURE__ */ T("div", {
|
|
1043
1051
|
className: "resizer",
|
|
@@ -1072,10 +1080,10 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1072
1080
|
})
|
|
1073
1081
|
}, t.id);
|
|
1074
1082
|
}),
|
|
1075
|
-
|
|
1076
|
-
colSpan:
|
|
1083
|
+
an > 0 ? /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
|
|
1084
|
+
colSpan: on,
|
|
1077
1085
|
style: {
|
|
1078
|
-
height: `${
|
|
1086
|
+
height: `${an}px`,
|
|
1079
1087
|
padding: 0,
|
|
1080
1088
|
border: 0
|
|
1081
1089
|
}
|
|
@@ -1083,21 +1091,21 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1083
1091
|
] }) }) : null,
|
|
1084
1092
|
D?.aggregateRow?.isEnable && D?.aggregateRow?.columns?.length ? /* @__PURE__ */ T("tfoot", { children: /* @__PURE__ */ T("tr", {
|
|
1085
1093
|
"data-testid": "table-footer-row",
|
|
1086
|
-
"aria-rowindex":
|
|
1094
|
+
"aria-rowindex": bn.ariaRowCount,
|
|
1087
1095
|
className: `${j.foot} ${D?.showRowHover ? j.rowHover : ""}`,
|
|
1088
1096
|
children: K.getHeaderGroups()[0]?.headers?.map((e, t) => {
|
|
1089
1097
|
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
1098
|
if (t === 0) a = D.aggregateRow?.label || "Total";
|
|
1091
1099
|
else if (r) {
|
|
1092
|
-
let e = D.aggregateRow?.function || "SUM", t =
|
|
1100
|
+
let e = D.aggregateRow?.function || "SUM", t = tn?.map((e) => {
|
|
1093
1101
|
let t = e.original[n];
|
|
1094
1102
|
return typeof t == "number" ? t : parseFloat(t);
|
|
1095
1103
|
})?.filter((e) => !isNaN(e));
|
|
1096
1104
|
a = se(t, e);
|
|
1097
1105
|
let r = D?.tableNumberFormatter?.find((e) => e.columns?.includes(n));
|
|
1098
|
-
if (a !== "" && F(n)) a = String(
|
|
1106
|
+
if (a !== "" && F(n)) a = String(ht(a, n) ?? "");
|
|
1099
1107
|
else if (a !== "" && D?.isEnableNumberFormatting && (r || D?.formattedColumns?.includes(n))) {
|
|
1100
|
-
let e =
|
|
1108
|
+
let e = Qe?.length ? Qe?.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
1109
|
a = `${s}${ce(Number(a) || 0, t)}${c}`, i && (o = D?.hideTableHeader && D?.isHideHorizontalScroll ? j.wrapCellText : j.wrapText);
|
|
1102
1110
|
}
|
|
1103
1111
|
}
|
|
@@ -1121,7 +1129,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1121
1129
|
},
|
|
1122
1130
|
children: /* @__PURE__ */ T("div", {
|
|
1123
1131
|
style: {
|
|
1124
|
-
...
|
|
1132
|
+
...jt,
|
|
1125
1133
|
...D?.isSepAlign && Object.keys(D?.colAlignments || []).includes(e.id) ? { justifyContent: D?.colAlignments?.[e.id] } : {}
|
|
1126
1134
|
},
|
|
1127
1135
|
children: /* @__PURE__ */ T("span", {
|
|
@@ -1144,7 +1152,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1144
1152
|
}, "footer-row") }) : null
|
|
1145
1153
|
]
|
|
1146
1154
|
}),
|
|
1147
|
-
!R?.length && D?.isEnableColumnFilter && !S && !C.length && !
|
|
1155
|
+
!R?.length && D?.isEnableColumnFilter && !S && !C.length && !Xt && !W?.length && (P?.[0] || B?.[0]) ? /* @__PURE__ */ T("div", {
|
|
1148
1156
|
className: `${j.emptyFilterData} dbn:flex dbn:flex-col dbn:justify-center dbn:items-center dbn:w-full dbn:p-8`,
|
|
1149
1157
|
children: /* @__PURE__ */ T(x, {
|
|
1150
1158
|
height: "80px",
|
|
@@ -1152,7 +1160,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1152
1160
|
subText: "Try modifying the filter, sort or client."
|
|
1153
1161
|
})
|
|
1154
1162
|
}) : null,
|
|
1155
|
-
!W?.length && e?.length && (P?.[0] || B?.[0]) && !S && !C.length && !
|
|
1163
|
+
!W?.length && e?.length && (P?.[0] || B?.[0]) && !S && !C.length && !Xt ? /* @__PURE__ */ T("div", {
|
|
1156
1164
|
className: "dbn:flex dbn:flex-col dbn:justify-center dbn:items-center dbn:w-full dbn:p-8",
|
|
1157
1165
|
children: /* @__PURE__ */ T(x, {
|
|
1158
1166
|
height: "80px",
|
|
@@ -1162,7 +1170,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1162
1170
|
}) : null
|
|
1163
1171
|
]
|
|
1164
1172
|
}),
|
|
1165
|
-
!e?.length && !D?.isEnableColumnFilter && !S && !C.length && !
|
|
1173
|
+
!e?.length && !D?.isEnableColumnFilter && !S && !C.length && !Xt && /* @__PURE__ */ T("div", {
|
|
1166
1174
|
className: "dbn:w-full dbn:h-full dbn:overflow-y-auto dbn:items-center dbn:justify-center dbn:p-6",
|
|
1167
1175
|
children: /* @__PURE__ */ T(x, {
|
|
1168
1176
|
height: "80px",
|
|
@@ -1176,16 +1184,16 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1176
1184
|
})
|
|
1177
1185
|
]
|
|
1178
1186
|
}),
|
|
1179
|
-
e && !D?.disablePagination && (!
|
|
1187
|
+
e && !D?.disablePagination && (!He || D?.isServerSidePagination) && /* @__PURE__ */ E("div", {
|
|
1180
1188
|
className: `${j.pagination} ${D?.isAutoPagination ? "dbn:pl-2" : ""} ${D?.paginationPosition === "top" ? "dbn:py-0" : ""}`,
|
|
1181
1189
|
style: {
|
|
1182
|
-
marginRight: `${
|
|
1190
|
+
marginRight: `${ct ? "70px" : ""}`,
|
|
1183
1191
|
order: D?.paginationPosition === "top" ? 2 : 3
|
|
1184
1192
|
},
|
|
1185
1193
|
children: [
|
|
1186
1194
|
D?.isAutoPagination ? null : /* @__PURE__ */ T("div", {
|
|
1187
1195
|
className: `dbn-interactive-element ${j.rowStyle}`,
|
|
1188
|
-
children: /* @__PURE__ */ T(
|
|
1196
|
+
children: /* @__PURE__ */ T(ne, {
|
|
1189
1197
|
id: "rows-per-page",
|
|
1190
1198
|
"aria-label": "Rows per page",
|
|
1191
1199
|
customButton: /* @__PURE__ */ E("div", {
|
|
@@ -1201,7 +1209,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1201
1209
|
}),
|
|
1202
1210
|
className: "dbn:border-none",
|
|
1203
1211
|
onChange: (e) => {
|
|
1204
|
-
|
|
1212
|
+
Vt(e), k?.(!1, parseInt(e.value, 10)), Be?.((t) => ({
|
|
1205
1213
|
...t,
|
|
1206
1214
|
tableSettings: {
|
|
1207
1215
|
...t.tableSettings,
|
|
@@ -1214,17 +1222,17 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1214
1222
|
labelVariant: "static",
|
|
1215
1223
|
menuWidth: "120px",
|
|
1216
1224
|
buttonWidth: z?.value === "1000" ? "165px" : "150px",
|
|
1217
|
-
menuZIndex:
|
|
1225
|
+
menuZIndex: Ze
|
|
1218
1226
|
})
|
|
1219
1227
|
}),
|
|
1220
|
-
S ? null : A && e.length &&
|
|
1228
|
+
S ? null : A && e.length && pn ? /* @__PURE__ */ E("span", {
|
|
1221
1229
|
className: j.pageStyle,
|
|
1222
1230
|
children: [
|
|
1223
1231
|
N.offset + 1,
|
|
1224
1232
|
"-",
|
|
1225
1233
|
N.offset + e.length,
|
|
1226
1234
|
" of ",
|
|
1227
|
-
|
|
1235
|
+
pn
|
|
1228
1236
|
]
|
|
1229
1237
|
}) : Y.from && Y.to && Y.total ? /* @__PURE__ */ E("span", {
|
|
1230
1238
|
className: j.pageStyle,
|
|
@@ -1242,7 +1250,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1242
1250
|
children: [/* @__PURE__ */ E("div", {
|
|
1243
1251
|
className: j.buttonContainer,
|
|
1244
1252
|
children: [
|
|
1245
|
-
/* @__PURE__ */ T(
|
|
1253
|
+
/* @__PURE__ */ T(m, {
|
|
1246
1254
|
id: "jump-to-start",
|
|
1247
1255
|
"aria-label": l.start,
|
|
1248
1256
|
title: l.start,
|
|
@@ -1252,8 +1260,8 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1252
1260
|
onClick: () => {
|
|
1253
1261
|
A ? k?.(!0, void 0, 0) : K.setPageIndex(0);
|
|
1254
1262
|
},
|
|
1255
|
-
isDisabled: A ? !
|
|
1256
|
-
children: /* @__PURE__ */ T(
|
|
1263
|
+
isDisabled: A ? !Re || Z === 0 : Y.from <= 1,
|
|
1264
|
+
children: /* @__PURE__ */ T(d, {
|
|
1257
1265
|
size: "small",
|
|
1258
1266
|
name: "double-arrow-left"
|
|
1259
1267
|
})
|
|
@@ -1261,7 +1269,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1261
1269
|
/* @__PURE__ */ E("div", {
|
|
1262
1270
|
className: j.pageBtns,
|
|
1263
1271
|
children: [
|
|
1264
|
-
/* @__PURE__ */ T(
|
|
1272
|
+
/* @__PURE__ */ T(m, {
|
|
1265
1273
|
id: "jump-to-prev",
|
|
1266
1274
|
"aria-label": l.prev,
|
|
1267
1275
|
title: l.prev,
|
|
@@ -1271,33 +1279,33 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1271
1279
|
onClick: () => {
|
|
1272
1280
|
A ? k?.(!0) : K.previousPage();
|
|
1273
1281
|
},
|
|
1274
|
-
isDisabled: A ? !
|
|
1282
|
+
isDisabled: A ? !Re || Z === 0 : Y.from <= 1,
|
|
1275
1283
|
style: { height: "calc(1.75rem - 1.6px)" },
|
|
1276
|
-
children: /* @__PURE__ */ T(
|
|
1284
|
+
children: /* @__PURE__ */ T(d, {
|
|
1277
1285
|
size: "small",
|
|
1278
1286
|
name: "caret-left"
|
|
1279
1287
|
})
|
|
1280
1288
|
}),
|
|
1281
1289
|
/* @__PURE__ */ T("div", {
|
|
1282
1290
|
className: j.pageInfo,
|
|
1283
|
-
children:
|
|
1291
|
+
children: Jt ? /* @__PURE__ */ T(o, {
|
|
1284
1292
|
type: "number",
|
|
1285
|
-
value:
|
|
1293
|
+
value: gn,
|
|
1286
1294
|
min: 1,
|
|
1287
1295
|
max: A ? X : K.getPageCount(),
|
|
1288
1296
|
onChange: (e) => {
|
|
1289
1297
|
let t = Math.min(Number(e.target.value), A ? X : K.getPageCount());
|
|
1290
|
-
t === 0 && (t = 1),
|
|
1298
|
+
t === 0 && (t = 1), _n(t);
|
|
1291
1299
|
},
|
|
1292
1300
|
onKeyDown: (e) => {
|
|
1293
|
-
e.key == "Enter" && (A ? k?.(!0, void 0, (
|
|
1301
|
+
e.key == "Enter" && (A ? k?.(!0, void 0, (gn - 1) * N.limit) : K.setPageIndex(gn - 1), Yt(!1));
|
|
1294
1302
|
},
|
|
1295
1303
|
style: { height: "calc(1.75rem - 1.6px)" },
|
|
1296
1304
|
className: "dbn:text-xs dbn:w-full dbn:rounded-none",
|
|
1297
1305
|
containerClassName: "dbn:border-none dbn:outline-hidden "
|
|
1298
1306
|
}) : /* @__PURE__ */ E("div", {
|
|
1299
1307
|
className: "dbn:flex dbn:gap-1 dbn:px-1 dbn:overflow-x-hidden",
|
|
1300
|
-
onClick: () =>
|
|
1308
|
+
onClick: () => Yt(!0),
|
|
1301
1309
|
title: `${A ? Z + 1 : J + 1} of ${A ? X : K.getPageCount()}`,
|
|
1302
1310
|
children: [
|
|
1303
1311
|
/* @__PURE__ */ T(_, {
|
|
@@ -1318,7 +1326,7 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1318
1326
|
]
|
|
1319
1327
|
})
|
|
1320
1328
|
}),
|
|
1321
|
-
/* @__PURE__ */ T(
|
|
1329
|
+
/* @__PURE__ */ T(m, {
|
|
1322
1330
|
id: "jump-to-next",
|
|
1323
1331
|
"aria-label": l.next,
|
|
1324
1332
|
title: l.next,
|
|
@@ -1328,16 +1336,16 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1328
1336
|
onClick: () => {
|
|
1329
1337
|
A ? k?.(!1) : K.nextPage();
|
|
1330
1338
|
},
|
|
1331
|
-
isDisabled: A ? !
|
|
1339
|
+
isDisabled: A ? !Fe || Z === X - 1 : Y.to >= Y.total,
|
|
1332
1340
|
style: { height: "calc(1.75rem - 1.6px)" },
|
|
1333
|
-
children: /* @__PURE__ */ T(
|
|
1341
|
+
children: /* @__PURE__ */ T(d, {
|
|
1334
1342
|
size: "small",
|
|
1335
1343
|
name: "caret-right"
|
|
1336
1344
|
})
|
|
1337
1345
|
})
|
|
1338
1346
|
]
|
|
1339
1347
|
}),
|
|
1340
|
-
/* @__PURE__ */ T(
|
|
1348
|
+
/* @__PURE__ */ T(m, {
|
|
1341
1349
|
id: "jump-to-end",
|
|
1342
1350
|
"aria-label": l.end,
|
|
1343
1351
|
title: l.end,
|
|
@@ -1347,53 +1355,53 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1347
1355
|
onClick: () => {
|
|
1348
1356
|
A ? k?.(!1, void 0, (X - 1) * N.limit) : K.setPageIndex(K.getPageCount() - 1);
|
|
1349
1357
|
},
|
|
1350
|
-
isDisabled: A ? !
|
|
1351
|
-
children: /* @__PURE__ */ T(
|
|
1358
|
+
isDisabled: A ? !Fe || Z === X - 1 : Y.to >= Y.total,
|
|
1359
|
+
children: /* @__PURE__ */ T(d, {
|
|
1352
1360
|
size: "small",
|
|
1353
1361
|
name: "double-arrow-right"
|
|
1354
1362
|
})
|
|
1355
1363
|
})
|
|
1356
1364
|
]
|
|
1357
|
-
}),
|
|
1365
|
+
}), Ke && /* @__PURE__ */ T("div", {
|
|
1358
1366
|
className: j.isFullScreenEnabled,
|
|
1359
|
-
children:
|
|
1367
|
+
children: Ge && /* @__PURE__ */ T(m, {
|
|
1360
1368
|
type: "button",
|
|
1361
1369
|
variant: "popover",
|
|
1362
1370
|
className: ke.cardControl,
|
|
1363
1371
|
"aria-label": "Enter fullscreen",
|
|
1364
1372
|
onClick: () => {
|
|
1365
1373
|
Te({
|
|
1366
|
-
metricId:
|
|
1374
|
+
metricId: qe,
|
|
1367
1375
|
defaultRowSize: `${z.value}`
|
|
1368
|
-
}),
|
|
1376
|
+
}), Je?.();
|
|
1369
1377
|
},
|
|
1370
1378
|
leftIcon: /* @__PURE__ */ T("div", {
|
|
1371
1379
|
className: j.fullScreenBtn,
|
|
1372
|
-
children: /* @__PURE__ */ T(
|
|
1380
|
+
children: /* @__PURE__ */ T(d, { name: "fullscreen" })
|
|
1373
1381
|
})
|
|
1374
1382
|
})
|
|
1375
1383
|
})]
|
|
1376
1384
|
})
|
|
1377
1385
|
]
|
|
1378
1386
|
}),
|
|
1379
|
-
|
|
1387
|
+
He && !D?.isServerSidePagination && e && (e.length > Ht || We && e.length) ? /* @__PURE__ */ T("div", {
|
|
1380
1388
|
className: "dbn:p-2.5 dbn:px-5 dbn:flex dbn:justify-end",
|
|
1381
1389
|
style: { order: 4 },
|
|
1382
|
-
children: /* @__PURE__ */ E(
|
|
1390
|
+
children: /* @__PURE__ */ E(m, {
|
|
1383
1391
|
variant: "secondary",
|
|
1384
1392
|
type: "button",
|
|
1385
1393
|
onClick: () => {
|
|
1386
|
-
|
|
1394
|
+
Ue ? Ue() : Ut((e) => e + 50);
|
|
1387
1395
|
},
|
|
1388
1396
|
className: j.loadMore,
|
|
1389
|
-
children: ["Load More", /* @__PURE__ */ T(
|
|
1397
|
+
children: ["Load More", /* @__PURE__ */ T(d, { name: "double-arrow-right" })]
|
|
1390
1398
|
})
|
|
1391
1399
|
}) : null
|
|
1392
1400
|
]
|
|
1393
|
-
}), /* @__PURE__ */ E(
|
|
1394
|
-
isOpen:
|
|
1401
|
+
}), /* @__PURE__ */ E(ee, {
|
|
1402
|
+
isOpen: bt?.isShow,
|
|
1395
1403
|
onClose: () => {
|
|
1396
|
-
|
|
1404
|
+
xt({
|
|
1397
1405
|
isShow: !1,
|
|
1398
1406
|
data: []
|
|
1399
1407
|
});
|
|
@@ -1402,12 +1410,12 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1402
1410
|
zIndex: 9999999999,
|
|
1403
1411
|
children: [/* @__PURE__ */ T("div", {
|
|
1404
1412
|
className: "dbn:w-[600px] dbn:p-6 dbn:max-h-[400px] dbn:overflow-y-auto",
|
|
1405
|
-
children: /* @__PURE__ */ T(Oe, { data:
|
|
1406
|
-
}), /* @__PURE__ */ T(
|
|
1413
|
+
children: /* @__PURE__ */ T(Oe, { data: bt?.data || [] })
|
|
1414
|
+
}), /* @__PURE__ */ T(f, { children: /* @__PURE__ */ T(m, {
|
|
1407
1415
|
variant: "secondary",
|
|
1408
1416
|
className: "cta-secondary",
|
|
1409
1417
|
onClick: () => {
|
|
1410
|
-
|
|
1418
|
+
xt({
|
|
1411
1419
|
isShow: !1,
|
|
1412
1420
|
data: []
|
|
1413
1421
|
});
|
|
@@ -1417,4 +1425,4 @@ var D = "dbn:", xe = `${D}metric.fullscreen.settings`, O = `${D}embed.disableCli
|
|
|
1417
1425
|
})]
|
|
1418
1426
|
});
|
|
1419
1427
|
};
|
|
1420
|
-
export { A as a, M as i, Ae as n, k as o, ke as r, Te as s,
|
|
1428
|
+
export { A as a, M as i, Ae as n, k as o, ke as r, Te as s, Re as t };
|