react-bootstrap-table-ng 4.19.0 → 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.
Files changed (34) hide show
  1. package/README.md +57 -9
  2. package/dist/react-bootstrap-table-ng.js +2 -2
  3. package/dist/react-bootstrap-table-ng.min.js +2 -2
  4. package/lib/index.d.ts +8 -12
  5. package/lib/index.js +3 -3
  6. package/lib/index.js.map +1 -1
  7. package/lib/src/body.js +5 -3
  8. package/lib/src/body.js.map +1 -1
  9. package/lib/src/bootstrap-table.js +5 -5
  10. package/lib/src/bootstrap-table.js.map +1 -1
  11. package/lib/src/caption.js +0 -7
  12. package/lib/src/caption.js.map +1 -1
  13. package/lib/src/contexts/data-context.js +5 -4
  14. package/lib/src/contexts/data-context.js.map +1 -1
  15. package/lib/src/contexts/row-expand-context.js +15 -12
  16. package/lib/src/contexts/row-expand-context.js.map +1 -1
  17. package/lib/src/contexts/selection-context.js +9 -7
  18. package/lib/src/contexts/selection-context.js.map +1 -1
  19. package/lib/src/contexts/sort-context.js +13 -13
  20. package/lib/src/contexts/sort-context.js.map +1 -1
  21. package/lib/src/props-resolver/remote-resolver.js +46 -25
  22. package/lib/src/props-resolver/remote-resolver.js.map +1 -1
  23. package/lib/src/row/aggregate-row.js +6 -6
  24. package/lib/src/row/aggregate-row.js.map +1 -1
  25. package/lib/src/row/event-delegater.js +4 -4
  26. package/lib/src/row/event-delegater.js.map +1 -1
  27. package/lib/src/row/simple-row.js +9 -6
  28. package/lib/src/row/simple-row.js.map +1 -1
  29. package/lib/src/row-expand/expand-cell.js +9 -6
  30. package/lib/src/row-expand/expand-cell.js.map +1 -1
  31. package/lib/src/row-expand/expand-row.js +6 -16
  32. package/lib/src/row-expand/expand-row.js.map +1 -1
  33. package/lib/src/types.d.ts +2 -2
  34. package/package.json +3 -4
package/README.md CHANGED
@@ -1,16 +1,64 @@
1
1
  # react-bootstrap-table-ng
2
- Maintance fork of [`react-bootstrap-table2`] (https://github.com/react-bootstrap-table/react-bootstrap-table2) created by Allen Fang
3
2
 
4
- Changelog:
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
+
5
+ The goal of this fork is to provide stable version with react 18 and above, bootstrap 4 and above.
6
+
7
+ ## Changes on top of [`react-bootstrap-table-next`]
8
+
5
9
  - Support React 18 and React 19
6
- - Support Bootstrap 3.4.1 and Bootstrap 4.6.2
7
- - Upgraded Storybook to 10.2.1
10
+ - Support Bootstrap 3.x up to 3.4.1 and Bootstrap 4.x up to 4.6.2
11
+ - Upgraded Storybook to 10.2.7
8
12
  - Upgraded Yarn to 4.12.0
9
13
  - Converted all test cases from Enzyme to React Testing Library (RTL), Removed Enzyme related dependencies
10
- - Updated most ependencies
14
+ - Converted PropTypes to typescript types, and removed prop-types from dependency.
15
+ - Updated most dependencies to their latest stable versions to fix vulnerabilities
16
+
17
+ ## Release Notes
11
18
 
19
+ https://github.com/jeff-k-zhou/react-bootstrap-table-ng/releases
12
20
 
13
- **[Live Demo](https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html)**
21
+ ## React and Bootstrap compatibility
22
+
23
+ See the below table on which version of react-bootstrap-table-ng you should be using in your project.
24
+
25
+ <table>
26
+ <thead>
27
+ <tr>
28
+ <th rowspan="2">react-bootstrap-table-ng</th>
29
+ <th colspan="3">Compatible React/Bootstrap/React-Bootstrap versions</th>
30
+ </tr>
31
+ <tr>
32
+ <th>react</th>
33
+ <th>bootstrap</th>
34
+ <th>react-bootstrap</th>
35
+ </tr>
36
+ </thead>
37
+ <tbody>
38
+ <tr>
39
+ <td rowspan="2">4.19.x</td>
40
+ <td rowspan="2">18.x - 19.x</td>
41
+ <td>3.x</td>
42
+ <td>0.33.x</td>
43
+ </tr>
44
+ <tr>
45
+ <td>4.x</td>
46
+ <td>1.x</td>
47
+ </tr>
48
+ <tr>
49
+ <td rowspan="2">4.18.x</td>
50
+ <td rowspan="2">18.x</td>
51
+ <td>3.x</td>
52
+ <td>0.33.x</td>
53
+ </tr>
54
+ <tr>
55
+ <td>4.x</td>
56
+ <td>1.x</td>
57
+ </tr>
58
+ </tbody>
59
+ </table>
60
+
61
+ **[Live Demo](https://jeff-k-zhou.github.io/react-bootstrap-table-ng/storybook/index.html)**
14
62
 
15
63
  ## Usage
16
64
 
@@ -26,10 +74,10 @@ npm install react-bootstrap-table-ng --save
26
74
 
27
75
  ```js
28
76
  // es5
29
- require('react-bootstrap-table-ng/dist/react-bootstrap-table-ng.min.css');
77
+ require("react-bootstrap-table-ng/dist/react-bootstrap-table-ng.min.css");
30
78
 
31
79
  // es6
32
- import 'react-bootstrap-table-ng/dist/react-bootstrap-table-ng.min.css';
80
+ import "react-bootstrap-table-ng/dist/react-bootstrap-table-ng.min.css";
33
81
  ```
34
82
 
35
83
  ### Your First Table
@@ -51,4 +99,4 @@ const columns = [{
51
99
 
52
100
  export default () =>
53
101
  <BootstrapTable keyField='id' data={ products } columns={ columns } />
54
- ```
102
+ ```