@synerise/ds-table 0.47.3 → 0.47.5
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/CHANGELOG.md +20 -0
- package/dist/VirtualTable/VirtualTable.js +9 -4
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.47.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.47.4...@synerise/ds-table@0.47.5) (2024-01-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.47.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.47.3...@synerise/ds-table@0.47.4) (2024-01-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **filter:** fixed zindex issues ([71ce5bc](https://github.com/synerise/synerise-design/commit/71ce5bcf25f2107fd1b43969d2c255e18c112b47))
|
|
20
|
+
* **table:** virtual table fixed ([a126848](https://github.com/synerise/synerise-design/commit/a1268486e88c6f7efdd803f63481cd45f4c21c85))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [0.47.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.47.2...@synerise/ds-table@0.47.3) (2023-12-14)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @synerise/ds-table
|
|
@@ -24,7 +24,7 @@ import VirtualTableRow from './VirtualTableRow';
|
|
|
24
24
|
import { RelativeContainer } from './VirtualTable.styles';
|
|
25
25
|
import { useTableLocale, calculatePixels } from '../utils';
|
|
26
26
|
import { useRowKey } from '../hooks/useRowKey';
|
|
27
|
-
import { useRowStar } from '../hooks/useRowStar
|
|
27
|
+
import { useRowStar } from '../hooks/useRowStar';
|
|
28
28
|
import { RowSelectionColumn } from '../RowSelection';
|
|
29
29
|
export var EXPANDED_ROW_PROPERTY = 'expandedChild';
|
|
30
30
|
var relativeInlineStyle = {
|
|
@@ -118,7 +118,9 @@ function VirtualTable(props) {
|
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
var rowStarColumn = getRowStarColumn(propsForRowStar);
|
|
121
|
-
var selectedRecords =
|
|
121
|
+
var selectedRecords = getSelectedRecords();
|
|
122
|
+
|
|
123
|
+
function getSelectedRecords() {
|
|
122
124
|
if (selection) {
|
|
123
125
|
var _ref2 = selection,
|
|
124
126
|
selectedRowKeys = _ref2.selectedRowKeys;
|
|
@@ -144,7 +146,8 @@ function VirtualTable(props) {
|
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
return [];
|
|
147
|
-
}
|
|
149
|
+
}
|
|
150
|
+
|
|
148
151
|
var renderRowSelection = React.useCallback(function (key, record) {
|
|
149
152
|
var _ref3 = selection,
|
|
150
153
|
selectedRowKeys = _ref3.selectedRowKeys,
|
|
@@ -261,7 +264,9 @@ function VirtualTable(props) {
|
|
|
261
264
|
width: "100%",
|
|
262
265
|
itemData: itemData,
|
|
263
266
|
itemKey: function itemKey(index) {
|
|
264
|
-
|
|
267
|
+
var key = getRowKey(data[index]); // @ts-ignore
|
|
268
|
+
|
|
269
|
+
return String(key instanceof String ? key.toLowerCase() : key);
|
|
265
270
|
},
|
|
266
271
|
outerElementType: outerElement,
|
|
267
272
|
overscanCount: 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-table",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.5",
|
|
4
4
|
"description": "Table UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -33,31 +33,31 @@
|
|
|
33
33
|
],
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@synerise/ds-alert": "^0.8.
|
|
37
|
-
"@synerise/ds-badge": "^0.6.
|
|
38
|
-
"@synerise/ds-button": "^0.18.
|
|
39
|
-
"@synerise/ds-button-group": "^0.6.
|
|
40
|
-
"@synerise/ds-checkbox": "^0.11.
|
|
41
|
-
"@synerise/ds-column-manager": "^0.11.
|
|
42
|
-
"@synerise/ds-data-format": "^0.4.
|
|
43
|
-
"@synerise/ds-dropdown": "^0.17.
|
|
36
|
+
"@synerise/ds-alert": "^0.8.2",
|
|
37
|
+
"@synerise/ds-badge": "^0.6.47",
|
|
38
|
+
"@synerise/ds-button": "^0.18.11",
|
|
39
|
+
"@synerise/ds-button-group": "^0.6.39",
|
|
40
|
+
"@synerise/ds-checkbox": "^0.11.54",
|
|
41
|
+
"@synerise/ds-column-manager": "^0.11.24",
|
|
42
|
+
"@synerise/ds-data-format": "^0.4.7",
|
|
43
|
+
"@synerise/ds-dropdown": "^0.17.93",
|
|
44
44
|
"@synerise/ds-flag": "^0.4.3",
|
|
45
|
-
"@synerise/ds-icon": "^0.
|
|
46
|
-
"@synerise/ds-input": "^0.19.
|
|
47
|
-
"@synerise/ds-loader": "^0.2.
|
|
48
|
-
"@synerise/ds-menu": "^0.18.
|
|
49
|
-
"@synerise/ds-modal": "^0.17.
|
|
50
|
-
"@synerise/ds-pagination": "^0.7.
|
|
51
|
-
"@synerise/ds-result": "^0.6.
|
|
52
|
-
"@synerise/ds-scrollbar": "^0.7.
|
|
53
|
-
"@synerise/ds-search": "^0.8.
|
|
54
|
-
"@synerise/ds-select": "^0.15.
|
|
55
|
-
"@synerise/ds-skeleton": "^0.3.
|
|
56
|
-
"@synerise/ds-status": "^0.5.
|
|
57
|
-
"@synerise/ds-tags": "^0.8.
|
|
58
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
45
|
+
"@synerise/ds-icon": "^0.59.1",
|
|
46
|
+
"@synerise/ds-input": "^0.19.14",
|
|
47
|
+
"@synerise/ds-loader": "^0.2.52",
|
|
48
|
+
"@synerise/ds-menu": "^0.18.10",
|
|
49
|
+
"@synerise/ds-modal": "^0.17.16",
|
|
50
|
+
"@synerise/ds-pagination": "^0.7.39",
|
|
51
|
+
"@synerise/ds-result": "^0.6.42",
|
|
52
|
+
"@synerise/ds-scrollbar": "^0.7.2",
|
|
53
|
+
"@synerise/ds-search": "^0.8.77",
|
|
54
|
+
"@synerise/ds-select": "^0.15.32",
|
|
55
|
+
"@synerise/ds-skeleton": "^0.3.19",
|
|
56
|
+
"@synerise/ds-status": "^0.5.97",
|
|
57
|
+
"@synerise/ds-tags": "^0.8.27",
|
|
58
|
+
"@synerise/ds-tooltip": "^0.14.15",
|
|
59
59
|
"@synerise/ds-typography": "^0.14.1",
|
|
60
|
-
"@synerise/ds-utils": "^0.24.
|
|
60
|
+
"@synerise/ds-utils": "^0.24.24",
|
|
61
61
|
"@types/react-window": "^1.8.5",
|
|
62
62
|
"classnames": "2.3.2",
|
|
63
63
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@testing-library/react": "10.0.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "16918244eff3f4e37db24ae3d90687d4e6a233a4"
|
|
83
83
|
}
|