@quillsql/react 2.16.60 → 2.16.61
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 +15 -3
- package/dist/index.js +15 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -26905,6 +26905,16 @@ init_dataFetcher();
|
|
|
26905
26905
|
init_tableProcessing();
|
|
26906
26906
|
init_paginationProcessing();
|
|
26907
26907
|
init_inMemoryPivotEngine();
|
|
26908
|
+
|
|
26909
|
+
// src/utils/dashboardPagination.ts
|
|
26910
|
+
function isDashboardPivotTable(report) {
|
|
26911
|
+
return String(report?.chartType ?? "").toLowerCase() === "table" && Boolean(report?.pivot);
|
|
26912
|
+
}
|
|
26913
|
+
function getDashboardReportProcessing(report, serverPagination) {
|
|
26914
|
+
return isDashboardPivotTable(report) ? {} : serverPagination;
|
|
26915
|
+
}
|
|
26916
|
+
|
|
26917
|
+
// src/hooks/useDashboard.ts
|
|
26908
26918
|
var useDashboardInternal = (dashboardName, customFilters) => {
|
|
26909
26919
|
const [dashboard] = (0, import_react2.useContext)(DashboardContext);
|
|
26910
26920
|
const {
|
|
@@ -27828,8 +27838,10 @@ var useDashboard = (dashboardName, config) => {
|
|
|
27828
27838
|
const additionalProcessing = {
|
|
27829
27839
|
page: pagination
|
|
27830
27840
|
};
|
|
27831
|
-
const
|
|
27832
|
-
|
|
27841
|
+
const reportAdditionalProcessing = getDashboardReportProcessing(
|
|
27842
|
+
reportInfo,
|
|
27843
|
+
additionalProcessing
|
|
27844
|
+
);
|
|
27833
27845
|
const usePivotTask = !cacheEnabled && !!reportInfo.pivot;
|
|
27834
27846
|
const allFilters = dashboardFilters2.concat(customFilters).concat(customReportFiltersArray);
|
|
27835
27847
|
const applyInMemoryPivotIfNeeded = (report2) => {
|
|
@@ -43600,7 +43612,7 @@ function StaticChart(props) {
|
|
|
43600
43612
|
direction: sort.direction
|
|
43601
43613
|
});
|
|
43602
43614
|
};
|
|
43603
|
-
const useLocalPivotTablePagination =
|
|
43615
|
+
const useLocalPivotTablePagination = isDashboardPivotTable(report);
|
|
43604
43616
|
const config = (0, import_react41.useMemo)(() => {
|
|
43605
43617
|
return report ? {
|
|
43606
43618
|
...report,
|
package/dist/index.js
CHANGED
|
@@ -26926,6 +26926,16 @@ init_dataFetcher();
|
|
|
26926
26926
|
init_tableProcessing();
|
|
26927
26927
|
init_paginationProcessing();
|
|
26928
26928
|
init_inMemoryPivotEngine();
|
|
26929
|
+
|
|
26930
|
+
// src/utils/dashboardPagination.ts
|
|
26931
|
+
function isDashboardPivotTable(report) {
|
|
26932
|
+
return String(report?.chartType ?? "").toLowerCase() === "table" && Boolean(report?.pivot);
|
|
26933
|
+
}
|
|
26934
|
+
function getDashboardReportProcessing(report, serverPagination) {
|
|
26935
|
+
return isDashboardPivotTable(report) ? {} : serverPagination;
|
|
26936
|
+
}
|
|
26937
|
+
|
|
26938
|
+
// src/hooks/useDashboard.ts
|
|
26929
26939
|
var useDashboardInternal = (dashboardName, customFilters) => {
|
|
26930
26940
|
const [dashboard] = useContext(DashboardContext);
|
|
26931
26941
|
const {
|
|
@@ -27849,8 +27859,10 @@ var useDashboard = (dashboardName, config) => {
|
|
|
27849
27859
|
const additionalProcessing = {
|
|
27850
27860
|
page: pagination
|
|
27851
27861
|
};
|
|
27852
|
-
const
|
|
27853
|
-
|
|
27862
|
+
const reportAdditionalProcessing = getDashboardReportProcessing(
|
|
27863
|
+
reportInfo,
|
|
27864
|
+
additionalProcessing
|
|
27865
|
+
);
|
|
27854
27866
|
const usePivotTask = !cacheEnabled && !!reportInfo.pivot;
|
|
27855
27867
|
const allFilters = dashboardFilters2.concat(customFilters).concat(customReportFiltersArray);
|
|
27856
27868
|
const applyInMemoryPivotIfNeeded = (report2) => {
|
|
@@ -43703,7 +43715,7 @@ function StaticChart(props) {
|
|
|
43703
43715
|
direction: sort.direction
|
|
43704
43716
|
});
|
|
43705
43717
|
};
|
|
43706
|
-
const useLocalPivotTablePagination =
|
|
43718
|
+
const useLocalPivotTablePagination = isDashboardPivotTable(report);
|
|
43707
43719
|
const config = useMemo20(() => {
|
|
43708
43720
|
return report ? {
|
|
43709
43721
|
...report,
|