react-bootstrap-table-next
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -78,3 +78,3 @@ 'use strict'; | ||
var key = _utils2.default.get(row, keyField); | ||
onRowSelect(key, !selected, rowIndex); | ||
onRowSelect(key, !selected, rowIndex, e); | ||
} | ||
@@ -81,0 +81,0 @@ }; |
@@ -55,3 +55,3 @@ 'use strict'; | ||
key: 'handleClick', | ||
value: function handleClick() { | ||
value: function handleClick(e) { | ||
var _props = this.props, | ||
@@ -72,3 +72,3 @@ inputType = _props.mode, | ||
onRowSelect(rowKey, checked, rowIndex); | ||
onRowSelect(rowKey, checked, rowIndex, e); | ||
} | ||
@@ -75,0 +75,0 @@ }, { |
@@ -84,7 +84,7 @@ 'use strict'; | ||
key: 'handleCheckBoxClick', | ||
value: function handleCheckBoxClick() { | ||
value: function handleCheckBoxClick(e) { | ||
var onAllRowsSelect = this.props.onAllRowsSelect; | ||
onAllRowsSelect(); | ||
onAllRowsSelect(e); | ||
} | ||
@@ -91,0 +91,0 @@ }, { |
@@ -78,3 +78,3 @@ 'use strict'; | ||
key: 'handleRowSelect', | ||
value: function handleRowSelect(rowKey, checked, rowIndex) { | ||
value: function handleRowSelect(rowKey, checked, rowIndex, e) { | ||
var _props = this.props, | ||
@@ -106,3 +106,3 @@ _props$selectRow = _props.selectRow, | ||
var row = (0, _rows.getRowByRowId)(store)(rowKey); | ||
onSelect(row, checked, rowIndex); | ||
onSelect(row, checked, rowIndex, e); | ||
} | ||
@@ -118,4 +118,3 @@ | ||
/** | ||
* handle all rows selection on header cell by store.selected or given specific result. | ||
* @param {Boolean} option - customized result for all rows selection | ||
* handle all rows selection on header cell by store.selected | ||
*/ | ||
@@ -125,3 +124,3 @@ | ||
key: 'handleAllRowsSelect', | ||
value: function handleAllRowsSelect(option) { | ||
value: function handleAllRowsSelect(e) { | ||
var _props2 = this.props, | ||
@@ -135,4 +134,3 @@ store = _props2.store, | ||
// set next status of all row selected by store.selected or customizing by user. | ||
var result = option || !selected; | ||
var result = !selected; | ||
@@ -144,3 +142,3 @@ var currSelected = result ? (0, _selection.selectableKeys)(store)(nonSelectable) : (0, _selection.unSelectableKeys)(store)(nonSelectable); | ||
if (onSelectAll) { | ||
onSelectAll(result, (0, _selection.getSelectedRows)(store)); | ||
onSelectAll(result, (0, _selection.getSelectedRows)(store), e); | ||
} | ||
@@ -147,0 +145,0 @@ |
{ | ||
"name": "react-bootstrap-table-next", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Next generation of react-bootstrap-table", | ||
@@ -5,0 +5,0 @@ "main": "./lib/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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
402147
5035
1