@firecms/core 3.0.0-canary.122 → 3.0.0-canary.123
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.es.js
CHANGED
|
@@ -10385,6 +10385,16 @@ function useDataSourceEntityCollectionTableController({
|
|
|
10385
10385
|
const pageSize = typeof collection.pagination === "number" ? collection.pagination : DEFAULT_PAGE_SIZE;
|
|
10386
10386
|
const [searchString, setSearchString] = React__default.useState();
|
|
10387
10387
|
const [itemCount, setItemCount] = React__default.useState(paginationEnabled ? pageSize : void 0);
|
|
10388
|
+
const checkFilterCombination = useCallback((filterValues2, sortBy2) => {
|
|
10389
|
+
if (!dataSource.isFilterCombinationValid)
|
|
10390
|
+
return true;
|
|
10391
|
+
return dataSource.isFilterCombinationValid({
|
|
10392
|
+
path: resolvedPath,
|
|
10393
|
+
collection,
|
|
10394
|
+
filterValues: filterValues2,
|
|
10395
|
+
sortBy: sortBy2
|
|
10396
|
+
});
|
|
10397
|
+
}, []);
|
|
10388
10398
|
const initialSortInternal = useMemo(() => {
|
|
10389
10399
|
if (initialSort && forceFilter && !checkFilterCombination(forceFilter, initialSort)) {
|
|
10390
10400
|
console.warn("Initial sort is not compatible with the force filter. Ignoring initial sort");
|
|
@@ -10406,16 +10416,6 @@ function useDataSourceEntityCollectionTableController({
|
|
|
10406
10416
|
const [dataLoading, setDataLoading] = useState(false);
|
|
10407
10417
|
const [dataLoadingError, setDataLoadingError] = useState();
|
|
10408
10418
|
const [noMoreToLoad, setNoMoreToLoad] = useState(false);
|
|
10409
|
-
const checkFilterCombination = useCallback((filterValues2, sortBy2) => {
|
|
10410
|
-
if (!dataSource.isFilterCombinationValid)
|
|
10411
|
-
return true;
|
|
10412
|
-
return dataSource.isFilterCombinationValid({
|
|
10413
|
-
path: resolvedPath,
|
|
10414
|
-
collection,
|
|
10415
|
-
filterValues: filterValues2,
|
|
10416
|
-
sortBy: sortBy2
|
|
10417
|
-
});
|
|
10418
|
-
}, []);
|
|
10419
10419
|
const clearFilter = useCallback(() => setFilterValues(forceFilter ?? void 0), [forceFilter]);
|
|
10420
10420
|
const updateFilterValues = useCallback((updatedFilter) => {
|
|
10421
10421
|
if (forceFilter) {
|