@bigbinary/neetoui 6.5.6 → 6.5.7
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/index.cjs.js +11 -4
- package/index.cjs.js.map +1 -1
- package/index.js +12 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -39850,9 +39850,11 @@ var Table = function Table(_ref) {
|
|
|
39850
39850
|
return isIncludedIn(selectedRowKeys, ramda.pluck(rowKey, rowData)) && selectedRowKeys.length !== totalCount && !bulkSelectedAllRows;
|
|
39851
39851
|
}, [selectedRowKeys, rowKey, rowData, totalCount, bulkSelectedAllRows]);
|
|
39852
39852
|
var handleRowChange = function handleRowChange(selectedRowKeys, selectedRows) {
|
|
39853
|
-
selectedRowKeys.length !== defaultPageSize
|
|
39854
|
-
|
|
39855
|
-
|
|
39853
|
+
if (selectedRowKeys.length !== defaultPageSize) {
|
|
39854
|
+
setBulkSelectedAllRows(false);
|
|
39855
|
+
handleSetBulkSelectedAllRows === null || handleSetBulkSelectedAllRows === void 0 || handleSetBulkSelectedAllRows(false);
|
|
39856
|
+
}
|
|
39857
|
+
onRowSelect === null || onRowSelect === void 0 || onRowSelect(selectedRowKeys, selectedRows);
|
|
39856
39858
|
};
|
|
39857
39859
|
var rowSelectionProps = rowSelection ? _objectSpread$5(_objectSpread$5({
|
|
39858
39860
|
type: "checkbox",
|
|
@@ -39911,6 +39913,11 @@ var Table = function Table(_ref) {
|
|
|
39911
39913
|
}
|
|
39912
39914
|
return originalElement;
|
|
39913
39915
|
};
|
|
39916
|
+
React$3.useEffect(function () {
|
|
39917
|
+
if (neetoCist.isNotEmpty(initialSelectedRowKeys)) return;
|
|
39918
|
+
setBulkSelectedAllRows(false);
|
|
39919
|
+
handleSetBulkSelectedAllRows === null || handleSetBulkSelectedAllRows === void 0 || handleSetBulkSelectedAllRows(false);
|
|
39920
|
+
}, [handleSetBulkSelectedAllRows, initialSelectedRowKeys]);
|
|
39914
39921
|
React$3.useEffect(function () {
|
|
39915
39922
|
var shouldNavigateToLastPage = ramda.isEmpty(rowData) && !loading && currentPageNumber !== 1;
|
|
39916
39923
|
if (!shouldNavigateToLastPage) return;
|
|
@@ -39977,7 +39984,7 @@ var Table = function Table(_ref) {
|
|
|
39977
39984
|
}, bulkSelectAllRowsProps && showBulkSelectionCallout && /*#__PURE__*/React__default["default"].createElement(SelectAllRowsCallout, _extends$4({}, bulkSelectAllRowsProps, {
|
|
39978
39985
|
onBulkSelectAllRows: function onBulkSelectAllRows() {
|
|
39979
39986
|
setBulkSelectedAllRows(true);
|
|
39980
|
-
handleSetBulkSelectedAllRows
|
|
39987
|
+
handleSetBulkSelectedAllRows === null || handleSetBulkSelectedAllRows === void 0 || handleSetBulkSelectedAllRows(true);
|
|
39981
39988
|
}
|
|
39982
39989
|
})), /*#__PURE__*/React__default["default"].createElement(_Table__default["default"], _extends$4({
|
|
39983
39990
|
bordered: bordered,
|