react-bootstrap-table-ng 4.19.1 → 4.19.2
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/README.md +12 -6
- package/dist/react-bootstrap-table-ng.js +2 -2
- package/dist/react-bootstrap-table-ng.min.js +2 -2
- package/lib/index.d.ts +4 -12
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/src/body.js +5 -3
- package/lib/src/body.js.map +1 -1
- package/lib/src/bootstrap-table.js +5 -5
- package/lib/src/bootstrap-table.js.map +1 -1
- package/lib/src/caption.js +0 -7
- package/lib/src/caption.js.map +1 -1
- package/lib/src/contexts/data-context.js +5 -4
- package/lib/src/contexts/data-context.js.map +1 -1
- package/lib/src/contexts/row-expand-context.js +15 -12
- package/lib/src/contexts/row-expand-context.js.map +1 -1
- package/lib/src/contexts/selection-context.js +9 -7
- package/lib/src/contexts/selection-context.js.map +1 -1
- package/lib/src/contexts/sort-context.js +13 -13
- package/lib/src/contexts/sort-context.js.map +1 -1
- package/lib/src/props-resolver/remote-resolver.js +46 -25
- package/lib/src/props-resolver/remote-resolver.js.map +1 -1
- package/lib/src/row/aggregate-row.js +6 -6
- package/lib/src/row/aggregate-row.js.map +1 -1
- package/lib/src/row/event-delegater.js +4 -4
- package/lib/src/row/event-delegater.js.map +1 -1
- package/lib/src/row/simple-row.js +9 -6
- package/lib/src/row/simple-row.js.map +1 -1
- package/lib/src/row-expand/expand-cell.js +9 -6
- package/lib/src/row-expand/expand-cell.js.map +1 -1
- package/lib/src/row-expand/expand-row.js +6 -16
- package/lib/src/row-expand/expand-row.js.map +1 -1
- package/lib/src/types.d.ts +2 -2
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
# react-bootstrap-table-ng
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Maintance fork of [`react-bootstrap-table2`] (https://github.com/react-bootstrap-table/react-bootstrap-table2) / npm package [`react-bootstrap-table-next`] (https://www.npmjs.com/package/react-bootstrap-table-next) created by Allen Fang.
|
|
4
|
+
|
|
3
5
|
The goal of this fork is to provide stable version with react 18 and above, bootstrap 4 and above.
|
|
4
6
|
|
|
5
7
|
## Changes on top of [`react-bootstrap-table-next`]
|
|
8
|
+
|
|
6
9
|
- Support React 18 and React 19
|
|
7
|
-
- Support Bootstrap
|
|
10
|
+
- Support Bootstrap 3.x up to 3.4.1 and Bootstrap 4.x up to 4.6.2
|
|
8
11
|
- Upgraded Storybook to 10.2.7
|
|
9
12
|
- Upgraded Yarn to 4.12.0
|
|
10
13
|
- Converted all test cases from Enzyme to React Testing Library (RTL), Removed Enzyme related dependencies
|
|
14
|
+
- Converted PropTypes to typescript types, and removed prop-types from dependency.
|
|
11
15
|
- Updated most dependencies to their latest stable versions to fix vulnerabilities
|
|
12
16
|
|
|
13
17
|
## Release Notes
|
|
18
|
+
|
|
14
19
|
https://github.com/jeff-k-zhou/react-bootstrap-table-ng/releases
|
|
15
20
|
|
|
16
21
|
## React and Bootstrap compatibility
|
|
22
|
+
|
|
17
23
|
See the below table on which version of react-bootstrap-table-ng you should be using in your project.
|
|
18
24
|
|
|
19
25
|
<table>
|
|
20
26
|
<thead>
|
|
21
27
|
<tr>
|
|
22
28
|
<th rowspan="2">react-bootstrap-table-ng</th>
|
|
23
|
-
<th colspan="3">
|
|
29
|
+
<th colspan="3">Compatible React/Bootstrap/React-Bootstrap versions</th>
|
|
24
30
|
</tr>
|
|
25
31
|
<tr>
|
|
26
32
|
<th>react</th>
|
|
@@ -68,10 +74,10 @@ npm install react-bootstrap-table-ng --save
|
|
|
68
74
|
|
|
69
75
|
```js
|
|
70
76
|
// es5
|
|
71
|
-
require(
|
|
77
|
+
require("react-bootstrap-table-ng/dist/react-bootstrap-table-ng.min.css");
|
|
72
78
|
|
|
73
79
|
// es6
|
|
74
|
-
import
|
|
80
|
+
import "react-bootstrap-table-ng/dist/react-bootstrap-table-ng.min.css";
|
|
75
81
|
```
|
|
76
82
|
|
|
77
83
|
### Your First Table
|
|
@@ -93,4 +99,4 @@ const columns = [{
|
|
|
93
99
|
|
|
94
100
|
export default () =>
|
|
95
101
|
<BootstrapTable keyField='id' data={ products } columns={ columns } />
|
|
96
|
-
```
|
|
102
|
+
```
|