@awsui/collection-hooks
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -33,3 +33,4 @@ var __assign = (this && this.__assign) || function () { | ||
pagesCount: pagesCount, | ||
allItems: allItems, | ||
})); | ||
} |
@@ -26,6 +26,7 @@ import { Dispatch, Reducer } from 'react'; | ||
}): CollectionActions<T>; | ||
export declare function createSyncProps<T>(options: CollectionOptions<T>, { filteringText, sortingState, selectedItems, currentPageIndex }: CollectionState<T>, actions: CollectionActions<T>, collectionRef: React.RefObject<CollectionRef>, { pagesCount, actualPageIndex }: { | ||
export declare function createSyncProps<T>(options: CollectionOptions<T>, { filteringText, sortingState, selectedItems, currentPageIndex }: CollectionState<T>, actions: CollectionActions<T>, collectionRef: React.RefObject<CollectionRef>, { pagesCount, actualPageIndex, allItems, }: { | ||
pagesCount?: number; | ||
actualPageIndex?: number; | ||
allItems: ReadonlyArray<T>; | ||
}): Pick<CollectionSyncResult<T>, 'collectionProps' | 'filterProps' | 'paginationProps'>; | ||
export {}; |
@@ -54,5 +54,5 @@ var __assign = (this && this.__assign) || function () { | ||
var filteringText = _a.filteringText, sortingState = _a.sortingState, selectedItems = _a.selectedItems, currentPageIndex = _a.currentPageIndex; | ||
var pagesCount = _b.pagesCount, actualPageIndex = _b.actualPageIndex; | ||
var pagesCount = _b.pagesCount, actualPageIndex = _b.actualPageIndex, allItems = _b.allItems; | ||
return { | ||
collectionProps: __assign(__assign(__assign({ empty: options.filtering ? (filteringText ? options.filtering.noMatch : options.filtering.empty) : null }, (options.sorting | ||
collectionProps: __assign(__assign(__assign({ empty: options.filtering ? (allItems.length ? options.filtering.noMatch : options.filtering.empty) : null }, (options.sorting | ||
? { | ||
@@ -59,0 +59,0 @@ onSortingChange: function (_a) { |
{ | ||
"name": "@awsui/collection-hooks", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29981
403