react-bootstrap-table-nextgen
Advanced tools
Comparing version 4.3.5 to 4.3.6
@@ -5,8 +5,12 @@ /// <reference types="node" /> | ||
new (props: any): { | ||
DataContext: any; | ||
ColumnContext: any; | ||
SelectionContext: any; | ||
RowExpandContext: any; | ||
CellEditContext: any; | ||
Table: any; | ||
dataContext: any; | ||
columnContext: any; | ||
selectionContext: any; | ||
searchContext: any; | ||
filterContext: any; | ||
rowExpandContext: any; | ||
cellEditContext: any; | ||
paginationContext: any; | ||
sortContext: any; | ||
table: any; | ||
componentDidUpdate(nextProps: any): void; | ||
@@ -21,3 +25,5 @@ renderBase(): (rootProps: { | ||
renderWithRowExpandContext(base: any, baseProps: any): (rootProps: { | ||
getData: (filterProps: any, searchProps: any, sortProps: any, paginationProps: any) => any; | ||
getData: (filterProps: any, searchProps: any, sortProps: any, paginationProps: any) => any; /** | ||
* CSV Column options only used with the toolkit provider | ||
*/ | ||
}, filterProps: any, searchProps: any, sortProps: any, paginationProps: any) => import("react").JSX.Element; | ||
@@ -39,6 +45,12 @@ renderWithPaginationContext(base: any): (rootProps: { | ||
remoteEmitter: import("events"); | ||
SortContext: any; | ||
DataContext: any; | ||
ColumnContext: any; | ||
SelectionContext: any; | ||
SearchContext: any; | ||
FilterContext: any; | ||
RowExpandContext: any; | ||
CellEditContext: any; | ||
PaginationContext: any; | ||
SearchContext: any; | ||
SortContext: any; | ||
Table: any; | ||
getNewestState: (state?: any) => any; | ||
@@ -45,0 +57,0 @@ isRemoteSearch: () => any; |
@@ -6,8 +6,12 @@ /// <reference types="node" /> | ||
new (props: any): { | ||
DataContext: any; | ||
ColumnContext: any; | ||
SelectionContext: any; | ||
RowExpandContext: any; | ||
CellEditContext: any; | ||
Table: any; | ||
dataContext: any; | ||
columnContext: any; | ||
selectionContext: any; | ||
searchContext: any; | ||
filterContext: any; | ||
rowExpandContext: any; | ||
cellEditContext: any; | ||
paginationContext: any; | ||
sortContext: any; | ||
table: any; | ||
componentDidUpdate(nextProps: any): void; | ||
@@ -39,6 +43,12 @@ renderBase(): (rootProps: { | ||
remoteEmitter: EventEmitter; | ||
SortContext: any; | ||
DataContext: any; | ||
ColumnContext: any; | ||
SelectionContext: any; | ||
SearchContext: any; | ||
FilterContext: any; | ||
RowExpandContext: any; | ||
CellEditContext: any; | ||
PaginationContext: any; | ||
SearchContext: any; | ||
SortContext: any; | ||
Table: any; | ||
getNewestState: (state?: any) => any; | ||
@@ -45,0 +55,0 @@ isRemoteSearch: () => any; |
@@ -47,14 +47,14 @@ "use strict"; | ||
exposedAPIEmitter.on("get.table.data", function (payload) { | ||
return payload.result = _this.Table.getData(); | ||
return payload.result = _this.table.getData(); | ||
}); | ||
exposedAPIEmitter.on("get.selected.rows", function (payload) { | ||
return payload.result = _this.SelectionContext.getSelected(); | ||
return payload.result = _this.selectionContext.getSelected(); | ||
}); | ||
exposedAPIEmitter.on("get.filtered.rows", function (payload) { | ||
if (_this.SearchContext) { | ||
payload.result = _this.SearchContext.getSearched(); | ||
} else if (_this.FilterContext) { | ||
payload.result = _this.FilterContext.getFiltered(); | ||
if (_this.searchContext) { | ||
payload.result = _this.searchContext.getSearched(); | ||
} else if (_this.filterContext) { | ||
payload.result = _this.filterContext.getFiltered(); | ||
} else { | ||
payload.result = _this.Table.getData(); | ||
payload.result = _this.table.getData(); | ||
} | ||
@@ -130,3 +130,3 @@ }); | ||
ref: function ref(n) { | ||
return _this2.Table = n; | ||
return _this2.table = n; | ||
} | ||
@@ -156,3 +156,5 @@ }, _this2.props, sortProps, filterProps, searchProps, paginationProps, columnToggleProps, { | ||
return react_1["default"].createElement(_this4.SelectionContext.Provider, Object.assign({}, baseProps, { | ||
// ref={(n: any) => (this.SelectionContext = n)} | ||
ref: function ref(n) { | ||
return _this4.selectionContext = n; | ||
}, | ||
selectRow: _this4.props.selectRow, | ||
@@ -169,3 +171,5 @@ data: rootProps.getData(filterProps, searchProps, sortProps, paginationProps) | ||
return react_1["default"].createElement(_this5.RowExpandContext.Provider, Object.assign({}, baseProps, { | ||
// ref={(n: any) => {this.RowExpandContext = n}} | ||
ref: function ref(n) { | ||
_this5.rowExpandContext = n; | ||
}, | ||
expandRow: _this5.props.expandRow, | ||
@@ -181,6 +185,6 @@ data: rootProps.getData(filterProps, searchProps, sortProps, paginationProps) | ||
return function (rootProps, filterProps, searchProps, sortProps) { | ||
return react_1["default"].createElement(_this6.PaginationContext.Provider | ||
// ref={(n: any) => (this.PaginationContext = n)} | ||
, { | ||
// ref={(n: any) => (this.PaginationContext = n)} | ||
return react_1["default"].createElement(_this6.PaginationContext.Provider, { | ||
ref: function ref(n) { | ||
return _this6.paginationContext = n; | ||
}, | ||
pagination: _this6.props.pagination, | ||
@@ -204,3 +208,5 @@ data: rootProps.getData(filterProps, searchProps, sortProps), | ||
return react_1["default"].createElement(_this7.SortContext.Provider, Object.assign({}, baseProps, { | ||
// ref={(n: any) => (this.SortContext = n)} | ||
ref: function ref(n) { | ||
return _this7.sortContext = n; | ||
}, | ||
defaultSorted: _this7.props.defaultSorted, | ||
@@ -221,3 +227,5 @@ defaultSortDirection: _this7.props.defaultSortDirection, | ||
return react_1["default"].createElement(_this8.SearchContext.Provider, Object.assign({}, baseProps, { | ||
// ref={(n: any) => (this.SearchContext = n)} | ||
ref: function ref(n) { | ||
return _this8.searchContext = n; | ||
}, | ||
data: rootProps.getData(filterProps), | ||
@@ -237,3 +245,5 @@ searchText: _this8.props.search.searchText, | ||
return react_1["default"].createElement(_this9.FilterContext.Provider, Object.assign({}, baseProps, { | ||
// ref={(n: any) => (this.FilterContext = n)} | ||
ref: function ref(n) { | ||
return _this9.filterContext = n; | ||
}, | ||
data: rootProps.getData(), | ||
@@ -253,3 +263,5 @@ filter: _this9.props.filter.options || {}, | ||
return react_1["default"].createElement(_this10.CellEditContext.Provider, Object.assign({}, baseProps, { | ||
// ref={(n: any) => (this.CellEditContext = n)} | ||
ref: function ref(n) { | ||
return _this10.cellEditContext = n; | ||
}, | ||
selectRow: _this10.props.selectRow, | ||
@@ -256,0 +268,0 @@ cellEdit: _this10.props.cellEdit, |
@@ -5,6 +5,12 @@ import EventEmitter from "events"; | ||
remoteEmitter: EventEmitter; | ||
SortContext: any; | ||
DataContext: any; | ||
ColumnContext: any; | ||
SelectionContext: any; | ||
SearchContext: any; | ||
FilterContext: any; | ||
RowExpandContext: any; | ||
CellEditContext: any; | ||
PaginationContext: any; | ||
SearchContext: any; | ||
SortContext: any; | ||
Table: any; | ||
getNewestState: (state?: any) => any; | ||
@@ -11,0 +17,0 @@ isRemoteSearch: () => any; |
{ | ||
"name": "react-bootstrap-table-nextgen", | ||
"version": "4.3.5", | ||
"version": "4.3.6", | ||
"description": "Next generation of react-bootstrap-table", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2959129
8537