@awsui/collection-hooks
Advanced tools
Comparing version 1.0.74 to 1.0.75
@@ -92,4 +92,4 @@ import * as React from 'react'; | ||
ref: React.RefObject<CollectionRef>; | ||
totalItemsCount?: number; | ||
firstIndex?: number; | ||
totalItemsCount: number; | ||
firstIndex: number; | ||
}; | ||
@@ -96,0 +96,0 @@ filterProps: { |
@@ -163,5 +163,4 @@ "use strict"; | ||
} | ||
: {})), { ref: collectionRef }), (((_c = options.pagination) === null || _c === void 0 ? void 0 : _c.pageSize) | ||
: {})), { ref: collectionRef, firstIndex: 1, totalItemsCount: allPageItems.length }), (((_c = options.pagination) === null || _c === void 0 ? void 0 : _c.pageSize) | ||
? { | ||
totalItemsCount: allPageItems.length, | ||
firstIndex: ((actualPageIndex !== null && actualPageIndex !== void 0 ? actualPageIndex : currentPageIndex) - 1) * options.pagination.pageSize + 1, | ||
@@ -168,0 +167,0 @@ } |
{ | ||
"commit": "a13450aaad135d0118429fcfa2ad6c056f1c2fe1" | ||
"commit": "57b9bf6318e6c2bad1074ec1a6f83eaacbe24fb8" | ||
} |
@@ -92,4 +92,4 @@ import * as React from 'react'; | ||
ref: React.RefObject<CollectionRef>; | ||
totalItemsCount?: number; | ||
firstIndex?: number; | ||
totalItemsCount: number; | ||
firstIndex: number; | ||
}; | ||
@@ -96,0 +96,0 @@ filterProps: { |
@@ -158,5 +158,4 @@ var __assign = (this && this.__assign) || function () { | ||
} | ||
: {})), { ref: collectionRef }), (((_c = options.pagination) === null || _c === void 0 ? void 0 : _c.pageSize) | ||
: {})), { ref: collectionRef, firstIndex: 1, totalItemsCount: allPageItems.length }), (((_c = options.pagination) === null || _c === void 0 ? void 0 : _c.pageSize) | ||
? { | ||
totalItemsCount: allPageItems.length, | ||
firstIndex: ((actualPageIndex !== null && actualPageIndex !== void 0 ? actualPageIndex : currentPageIndex) - 1) * options.pagination.pageSize + 1, | ||
@@ -163,0 +162,0 @@ } |
{ | ||
"name": "@awsui/collection-hooks", | ||
"version": "1.0.74", | ||
"version": "1.0.75", | ||
"homepage": "https://github.com/aws/awsui-documentation", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
105319
2068