@quillsql/react 2.16.59 → 2.16.60

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/index.cjs CHANGED
@@ -27828,6 +27828,8 @@ var useDashboard = (dashboardName, config) => {
27828
27828
  const additionalProcessing = {
27829
27829
  page: pagination
27830
27830
  };
27831
+ const useLocalPivotTablePagination = String(reportInfo.chartType ?? "").toLowerCase() === "table" && Boolean(reportInfo.pivot);
27832
+ const reportAdditionalProcessing = useLocalPivotTablePagination ? void 0 : additionalProcessing;
27831
27833
  const usePivotTask = !cacheEnabled && !!reportInfo.pivot;
27832
27834
  const allFilters = dashboardFilters2.concat(customFilters).concat(customReportFiltersArray);
27833
27835
  const applyInMemoryPivotIfNeeded = (report2) => {
@@ -27897,7 +27899,7 @@ var useDashboard = (dashboardName, config) => {
27897
27899
  tenants,
27898
27900
  flags,
27899
27901
  allFilters,
27900
- additionalProcessing,
27902
+ reportAdditionalProcessing,
27901
27903
  reportInfo.pivot,
27902
27904
  async () => {
27903
27905
  const { report: report2, error: error2 } = await fetchReport({
@@ -27905,7 +27907,7 @@ var useDashboard = (dashboardName, config) => {
27905
27907
  client,
27906
27908
  tenants,
27907
27909
  flags,
27908
- additionalProcessing,
27910
+ additionalProcessing: reportAdditionalProcessing,
27909
27911
  filters: allFilters,
27910
27912
  getToken,
27911
27913
  eventTracking,
@@ -28005,7 +28007,7 @@ var useDashboard = (dashboardName, config) => {
28005
28007
  client,
28006
28008
  tenants,
28007
28009
  flags,
28008
- additionalProcessing,
28010
+ additionalProcessing: reportAdditionalProcessing,
28009
28011
  filters: allFilters,
28010
28012
  getToken,
28011
28013
  eventTracking,
@@ -43598,12 +43600,14 @@ function StaticChart(props) {
43598
43600
  direction: sort.direction
43599
43601
  });
43600
43602
  };
43603
+ const useLocalPivotTablePagination = String(report?.chartType ?? "").toLowerCase() === "table" && Boolean(report?.pivot);
43601
43604
  const config = (0, import_react41.useMemo)(() => {
43602
43605
  return report ? {
43603
43606
  ...report,
43607
+ ...useLocalPivotTablePagination ? { pagination: void 0 } : {},
43604
43608
  ...report.pivot ? formattedPivotRowsAndColumns(report, [], { formatRows: false }) : {}
43605
43609
  } : void 0;
43606
- }, [report]);
43610
+ }, [report, useLocalPivotTablePagination]);
43607
43611
  if (error) {
43608
43612
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChartError, { errorMessage: error, containerStyle: safeContainerStyle });
43609
43613
  }
@@ -43618,9 +43622,9 @@ function StaticChart(props) {
43618
43622
  className,
43619
43623
  containerStyle: safeContainerStyle,
43620
43624
  showLegend,
43621
- onPageChange,
43622
- tableRowsLoading: pageLoading,
43623
- onSortChange
43625
+ onPageChange: useLocalPivotTablePagination ? void 0 : onPageChange,
43626
+ tableRowsLoading: useLocalPivotTablePagination ? false : pageLoading,
43627
+ onSortChange: useLocalPivotTablePagination ? void 0 : onSortChange
43624
43628
  }
43625
43629
  );
43626
43630
  }
package/dist/index.js CHANGED
@@ -27849,6 +27849,8 @@ var useDashboard = (dashboardName, config) => {
27849
27849
  const additionalProcessing = {
27850
27850
  page: pagination
27851
27851
  };
27852
+ const useLocalPivotTablePagination = String(reportInfo.chartType ?? "").toLowerCase() === "table" && Boolean(reportInfo.pivot);
27853
+ const reportAdditionalProcessing = useLocalPivotTablePagination ? void 0 : additionalProcessing;
27852
27854
  const usePivotTask = !cacheEnabled && !!reportInfo.pivot;
27853
27855
  const allFilters = dashboardFilters2.concat(customFilters).concat(customReportFiltersArray);
27854
27856
  const applyInMemoryPivotIfNeeded = (report2) => {
@@ -27918,7 +27920,7 @@ var useDashboard = (dashboardName, config) => {
27918
27920
  tenants,
27919
27921
  flags,
27920
27922
  allFilters,
27921
- additionalProcessing,
27923
+ reportAdditionalProcessing,
27922
27924
  reportInfo.pivot,
27923
27925
  async () => {
27924
27926
  const { report: report2, error: error2 } = await fetchReport({
@@ -27926,7 +27928,7 @@ var useDashboard = (dashboardName, config) => {
27926
27928
  client,
27927
27929
  tenants,
27928
27930
  flags,
27929
- additionalProcessing,
27931
+ additionalProcessing: reportAdditionalProcessing,
27930
27932
  filters: allFilters,
27931
27933
  getToken,
27932
27934
  eventTracking,
@@ -28026,7 +28028,7 @@ var useDashboard = (dashboardName, config) => {
28026
28028
  client,
28027
28029
  tenants,
28028
28030
  flags,
28029
- additionalProcessing,
28031
+ additionalProcessing: reportAdditionalProcessing,
28030
28032
  filters: allFilters,
28031
28033
  getToken,
28032
28034
  eventTracking,
@@ -43701,12 +43703,14 @@ function StaticChart(props) {
43701
43703
  direction: sort.direction
43702
43704
  });
43703
43705
  };
43706
+ const useLocalPivotTablePagination = String(report?.chartType ?? "").toLowerCase() === "table" && Boolean(report?.pivot);
43704
43707
  const config = useMemo20(() => {
43705
43708
  return report ? {
43706
43709
  ...report,
43710
+ ...useLocalPivotTablePagination ? { pagination: void 0 } : {},
43707
43711
  ...report.pivot ? formattedPivotRowsAndColumns(report, [], { formatRows: false }) : {}
43708
43712
  } : void 0;
43709
- }, [report]);
43713
+ }, [report, useLocalPivotTablePagination]);
43710
43714
  if (error) {
43711
43715
  return /* @__PURE__ */ jsx60(ChartError, { errorMessage: error, containerStyle: safeContainerStyle });
43712
43716
  }
@@ -43721,9 +43725,9 @@ function StaticChart(props) {
43721
43725
  className,
43722
43726
  containerStyle: safeContainerStyle,
43723
43727
  showLegend,
43724
- onPageChange,
43725
- tableRowsLoading: pageLoading,
43726
- onSortChange
43728
+ onPageChange: useLocalPivotTablePagination ? void 0 : onPageChange,
43729
+ tableRowsLoading: useLocalPivotTablePagination ? false : pageLoading,
43730
+ onSortChange: useLocalPivotTablePagination ? void 0 : onSortChange
43727
43731
  }
43728
43732
  );
43729
43733
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/react",
3
- "version": "2.16.59",
3
+ "version": "2.16.60",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {