@synerise/ds-table 0.49.1 → 0.49.3
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
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.49.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.49.2...@synerise/ds-table@0.49.3) (2024-04-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **table:** fixed useeffect dependencies ([68f534d](https://github.com/synerise/synerise-design/commit/68f534ddef8c97f9a30cf4c4b0627034b9e78b57))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.49.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.49.1...@synerise/ds-table@0.49.2) (2024-04-18)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **table:** fixed incorrect condition ([50a8689](https://github.com/synerise/synerise-design/commit/50a8689eddd5751a37177e8539efe85d4f7a5402))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [0.49.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.49.0...@synerise/ds-table@0.49.1) (2024-04-17)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -35,7 +35,7 @@ var AvatarLabel = function AvatarLabel(_ref) {
|
|
|
35
35
|
hasEllipsis: ellipsis,
|
|
36
36
|
maxWidth: maxWidth,
|
|
37
37
|
avatarSize: avatarSize
|
|
38
|
-
}), title),
|
|
38
|
+
}), title), labels && /*#__PURE__*/React.createElement(S.Labels, {
|
|
39
39
|
ellipsis: Boolean(ellipsis),
|
|
40
40
|
maxWidth: maxWidth
|
|
41
41
|
}, labels == null ? void 0 : labels.map(function (label) {
|
|
@@ -243,7 +243,6 @@ var VirtualTable = function VirtualTable(props, forwardedRef) {
|
|
|
243
243
|
var width = _ref4.width;
|
|
244
244
|
return !width;
|
|
245
245
|
}).length;
|
|
246
|
-
var rowWidth = tableWidth || initialWidth;
|
|
247
246
|
var definedWidth = virtualColumns.reduce(function (total, _ref5) {
|
|
248
247
|
var width = _ref5.width;
|
|
249
248
|
var widthInPx = calculatePixels(width) || 0;
|
|
@@ -256,7 +255,7 @@ var VirtualTable = function VirtualTable(props, forwardedRef) {
|
|
|
256
255
|
});
|
|
257
256
|
}
|
|
258
257
|
|
|
259
|
-
var calculatedWidth = Math.floor((
|
|
258
|
+
var calculatedWidth = Math.floor((tableWidth - definedWidth) / widthColumnCount);
|
|
260
259
|
return _objectSpread({}, column, {
|
|
261
260
|
width: calculatedWidth > 0 ? calculatedWidth : 1
|
|
262
261
|
});
|
|
@@ -314,7 +313,7 @@ var VirtualTable = function VirtualTable(props, forwardedRef) {
|
|
|
314
313
|
fixedRight = _columnsWithWidth$red.fixedRight;
|
|
315
314
|
|
|
316
315
|
return [].concat(fixedLeft, remaining, fixedRight);
|
|
317
|
-
}, [virtualColumns, tableWidth
|
|
316
|
+
}, [virtualColumns, tableWidth]);
|
|
318
317
|
var listInnerElementType = forwardRef(function (_ref6, innerElementRef) {
|
|
319
318
|
var style = _ref6.style,
|
|
320
319
|
rest = _objectWithoutPropertiesLoose(_ref6, _excluded);
|
|
@@ -521,7 +520,7 @@ var VirtualTable = function VirtualTable(props, forwardedRef) {
|
|
|
521
520
|
var headerElement = containerRef.current.querySelector('.ant-table-header');
|
|
522
521
|
headerElement && setScrollWidth(headerElement.scrollWidth);
|
|
523
522
|
}
|
|
524
|
-
}, [
|
|
523
|
+
}, [tableWidth, mergedColumns.length, dataSource.length]);
|
|
525
524
|
return /*#__PURE__*/React.createElement(S.VirtualTableWrapper, {
|
|
526
525
|
isSticky: isSticky,
|
|
527
526
|
style: isSticky ? {} : relativeInlineStyle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-table",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.3",
|
|
4
4
|
"description": "Table UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@testing-library/react": "10.0.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "024efd498507587f51b5e12190120c97b7249a9a"
|
|
83
83
|
}
|