@quillsql/react 2.16.91 → 2.16.92
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 -37
- package/dist/index.js +15 -37
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -65898,6 +65898,19 @@ async function loadViaReportBuilderState({
|
|
|
65898
65898
|
dashboardName: report?.dashboardName ?? dashboardName,
|
|
65899
65899
|
name: report?.name ?? reportId
|
|
65900
65900
|
};
|
|
65901
|
+
const processing = pagination ? {
|
|
65902
|
+
page: {
|
|
65903
|
+
page: pagination.pageIndex,
|
|
65904
|
+
rowsPerPage: pagination.pageSize,
|
|
65905
|
+
rowsPerRequest: pagination.pageSize
|
|
65906
|
+
},
|
|
65907
|
+
...paginationSort?.field ? { sort: paginationSort } : {}
|
|
65908
|
+
} : {
|
|
65909
|
+
page: {
|
|
65910
|
+
...DEFAULT_PAGINATION,
|
|
65911
|
+
rowsPerRequest: DEFAULT_USE_REPORT_ROWS_PER_REQUEST
|
|
65912
|
+
}
|
|
65913
|
+
};
|
|
65901
65914
|
const reportBuilderInfo = await fetchReportBuilderDataFromState({
|
|
65902
65915
|
reportBuilderState,
|
|
65903
65916
|
schema,
|
|
@@ -65912,19 +65925,7 @@ async function loadViaReportBuilderState({
|
|
|
65912
65925
|
skipRowCount: rowsOnly,
|
|
65913
65926
|
rowCountOnly,
|
|
65914
65927
|
previousRelevant: previousRelevantWhenSkippingInlineUniqueFetch(report),
|
|
65915
|
-
processing
|
|
65916
|
-
page: {
|
|
65917
|
-
page: pagination.pageIndex,
|
|
65918
|
-
rowsPerPage: pagination.pageSize,
|
|
65919
|
-
rowsPerRequest: pagination.pageSize
|
|
65920
|
-
},
|
|
65921
|
-
...paginationSort?.field ? { sort: paginationSort } : {}
|
|
65922
|
-
} : {
|
|
65923
|
-
page: {
|
|
65924
|
-
...DEFAULT_PAGINATION,
|
|
65925
|
-
rowsPerRequest: DEFAULT_USE_REPORT_ROWS_PER_REQUEST
|
|
65926
|
-
}
|
|
65927
|
-
},
|
|
65928
|
+
processing,
|
|
65928
65929
|
dashboardName,
|
|
65929
65930
|
getToken,
|
|
65930
65931
|
eventTracking: null,
|
|
@@ -68985,31 +68986,8 @@ function useReport(reportIdArg, options = {}) {
|
|
|
68985
68986
|
shouldSkipPivotRefreshForUnchangedPivot,
|
|
68986
68987
|
sourceReport
|
|
68987
68988
|
]);
|
|
68988
|
-
const shouldSkipRedundantPivotTableDataReportBuilderQuery = (0, import_react63.useMemo)(() => {
|
|
68989
|
-
if (!sourceReport || !nextPivot) {
|
|
68990
|
-
return false;
|
|
68991
|
-
}
|
|
68992
|
-
if (tableRefreshVersion !== 0 || pivotRefreshVersion !== 0) {
|
|
68993
|
-
return false;
|
|
68994
|
-
}
|
|
68995
|
-
if (!Array.isArray(sourceReport.rows) || sourceReport.rows.length === 0) {
|
|
68996
|
-
return false;
|
|
68997
|
-
}
|
|
68998
|
-
if (refreshDecision.shouldRefresh) {
|
|
68999
|
-
return false;
|
|
69000
|
-
}
|
|
69001
|
-
const sourceRules = sourceReport.reportBuilderState?.rules ?? EMPTY_QUERY_FILTERS;
|
|
69002
|
-
return stableSerializeForQueryKey(queryFilters) === stableSerializeForQueryKey(sourceRules);
|
|
69003
|
-
}, [
|
|
69004
|
-
sourceReport,
|
|
69005
|
-
nextPivot,
|
|
69006
|
-
tableRefreshVersion,
|
|
69007
|
-
pivotRefreshVersion,
|
|
69008
|
-
refreshDecision.shouldRefresh,
|
|
69009
|
-
queryFilters
|
|
69010
|
-
]);
|
|
69011
68989
|
const pivotRefreshQueryEnabled = !reportOverride && pendingPivotRefresh && !shouldSkipPivotRefreshForUnchangedPivot && Boolean(sourceReport) && Boolean(client) && Boolean(effectiveReportBuilderState) && Boolean(nextPivot) && sourceReportMatchesEffectiveReportId;
|
|
69012
|
-
const pivotTableDataRefreshQueryEnabled = !reportOverride && Boolean(sourceReport) && Boolean(client) && Boolean(nextPivot) && Boolean(pivotTableDataReportBuilderState) && !pendingPivotRefresh && sourceReportMatchesEffectiveReportId
|
|
68990
|
+
const pivotTableDataRefreshQueryEnabled = !reportOverride && Boolean(sourceReport) && Boolean(client) && Boolean(nextPivot) && Boolean(pivotTableDataReportBuilderState) && !pendingPivotRefresh && sourceReportMatchesEffectiveReportId;
|
|
69013
68991
|
const pivotRefreshQuery = (0, import_react_query3.useQuery)({
|
|
69014
68992
|
queryKey: createUseFormPivotRefreshQueryKey({
|
|
69015
68993
|
reportId: effectiveReportId,
|
package/dist/index.js
CHANGED
|
@@ -66106,6 +66106,19 @@ async function loadViaReportBuilderState({
|
|
|
66106
66106
|
dashboardName: report?.dashboardName ?? dashboardName,
|
|
66107
66107
|
name: report?.name ?? reportId
|
|
66108
66108
|
};
|
|
66109
|
+
const processing = pagination ? {
|
|
66110
|
+
page: {
|
|
66111
|
+
page: pagination.pageIndex,
|
|
66112
|
+
rowsPerPage: pagination.pageSize,
|
|
66113
|
+
rowsPerRequest: pagination.pageSize
|
|
66114
|
+
},
|
|
66115
|
+
...paginationSort?.field ? { sort: paginationSort } : {}
|
|
66116
|
+
} : {
|
|
66117
|
+
page: {
|
|
66118
|
+
...DEFAULT_PAGINATION,
|
|
66119
|
+
rowsPerRequest: DEFAULT_USE_REPORT_ROWS_PER_REQUEST
|
|
66120
|
+
}
|
|
66121
|
+
};
|
|
66109
66122
|
const reportBuilderInfo = await fetchReportBuilderDataFromState({
|
|
66110
66123
|
reportBuilderState,
|
|
66111
66124
|
schema,
|
|
@@ -66120,19 +66133,7 @@ async function loadViaReportBuilderState({
|
|
|
66120
66133
|
skipRowCount: rowsOnly,
|
|
66121
66134
|
rowCountOnly,
|
|
66122
66135
|
previousRelevant: previousRelevantWhenSkippingInlineUniqueFetch(report),
|
|
66123
|
-
processing
|
|
66124
|
-
page: {
|
|
66125
|
-
page: pagination.pageIndex,
|
|
66126
|
-
rowsPerPage: pagination.pageSize,
|
|
66127
|
-
rowsPerRequest: pagination.pageSize
|
|
66128
|
-
},
|
|
66129
|
-
...paginationSort?.field ? { sort: paginationSort } : {}
|
|
66130
|
-
} : {
|
|
66131
|
-
page: {
|
|
66132
|
-
...DEFAULT_PAGINATION,
|
|
66133
|
-
rowsPerRequest: DEFAULT_USE_REPORT_ROWS_PER_REQUEST
|
|
66134
|
-
}
|
|
66135
|
-
},
|
|
66136
|
+
processing,
|
|
66136
66137
|
dashboardName,
|
|
66137
66138
|
getToken,
|
|
66138
66139
|
eventTracking: null,
|
|
@@ -69193,31 +69194,8 @@ function useReport(reportIdArg, options = {}) {
|
|
|
69193
69194
|
shouldSkipPivotRefreshForUnchangedPivot,
|
|
69194
69195
|
sourceReport
|
|
69195
69196
|
]);
|
|
69196
|
-
const shouldSkipRedundantPivotTableDataReportBuilderQuery = useMemo33(() => {
|
|
69197
|
-
if (!sourceReport || !nextPivot) {
|
|
69198
|
-
return false;
|
|
69199
|
-
}
|
|
69200
|
-
if (tableRefreshVersion !== 0 || pivotRefreshVersion !== 0) {
|
|
69201
|
-
return false;
|
|
69202
|
-
}
|
|
69203
|
-
if (!Array.isArray(sourceReport.rows) || sourceReport.rows.length === 0) {
|
|
69204
|
-
return false;
|
|
69205
|
-
}
|
|
69206
|
-
if (refreshDecision.shouldRefresh) {
|
|
69207
|
-
return false;
|
|
69208
|
-
}
|
|
69209
|
-
const sourceRules = sourceReport.reportBuilderState?.rules ?? EMPTY_QUERY_FILTERS;
|
|
69210
|
-
return stableSerializeForQueryKey(queryFilters) === stableSerializeForQueryKey(sourceRules);
|
|
69211
|
-
}, [
|
|
69212
|
-
sourceReport,
|
|
69213
|
-
nextPivot,
|
|
69214
|
-
tableRefreshVersion,
|
|
69215
|
-
pivotRefreshVersion,
|
|
69216
|
-
refreshDecision.shouldRefresh,
|
|
69217
|
-
queryFilters
|
|
69218
|
-
]);
|
|
69219
69197
|
const pivotRefreshQueryEnabled = !reportOverride && pendingPivotRefresh && !shouldSkipPivotRefreshForUnchangedPivot && Boolean(sourceReport) && Boolean(client) && Boolean(effectiveReportBuilderState) && Boolean(nextPivot) && sourceReportMatchesEffectiveReportId;
|
|
69220
|
-
const pivotTableDataRefreshQueryEnabled = !reportOverride && Boolean(sourceReport) && Boolean(client) && Boolean(nextPivot) && Boolean(pivotTableDataReportBuilderState) && !pendingPivotRefresh && sourceReportMatchesEffectiveReportId
|
|
69198
|
+
const pivotTableDataRefreshQueryEnabled = !reportOverride && Boolean(sourceReport) && Boolean(client) && Boolean(nextPivot) && Boolean(pivotTableDataReportBuilderState) && !pendingPivotRefresh && sourceReportMatchesEffectiveReportId;
|
|
69221
69199
|
const pivotRefreshQuery = useQuery({
|
|
69222
69200
|
queryKey: createUseFormPivotRefreshQueryKey({
|
|
69223
69201
|
reportId: effectiveReportId,
|