@synerise/ds-table 1.9.6 → 1.9.8
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,16 @@
|
|
|
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
|
+
## [1.9.8](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.9.7...@synerise/ds-table@1.9.8) (2026-02-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-table
|
|
9
|
+
|
|
10
|
+
## [1.9.7](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.9.6...@synerise/ds-table@1.9.7) (2026-02-19)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **table:** virtual horizontal scrollbar ([e240e20](https://github.com/synerise/synerise-design/commit/e240e20e8f05a3a488b3fdc1737a466c16838490))
|
|
15
|
+
|
|
6
16
|
## [1.9.6](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.9.5...@synerise/ds-table@1.9.6) (2026-02-16)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @synerise/ds-table
|
|
@@ -7,6 +7,7 @@ import ResizeObserver from 'rc-resize-observer';
|
|
|
7
7
|
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
9
|
import { FixedSizeList as List } from 'react-window';
|
|
10
|
+
import Scrollbar from '@synerise/ds-scrollbar';
|
|
10
11
|
import { useElementInView } from '@synerise/ds-utils';
|
|
11
12
|
import BackToTopButton from '../InfiniteScroll/BackToTopButton';
|
|
12
13
|
import OuterListElement from '../InfiniteScroll/OuterListElement';
|
|
@@ -531,7 +532,17 @@ var VirtualTable = function VirtualTable(props, forwardedRef) {
|
|
|
531
532
|
key: "relative-container",
|
|
532
533
|
ref: containerRef,
|
|
533
534
|
isHeaderVisible: isHeaderVisible
|
|
534
|
-
}, /*#__PURE__*/React.createElement(
|
|
535
|
+
}, isSticky && dataSource.length ? /*#__PURE__*/React.createElement(S.StickyScrollbarWrapper, {
|
|
536
|
+
isStuck: isStuck,
|
|
537
|
+
scrollOffset: offsetScroll || 0
|
|
538
|
+
}, /*#__PURE__*/React.createElement(Scrollbar, {
|
|
539
|
+
absolute: true,
|
|
540
|
+
onScroll: handleStickyScrollbarScroll,
|
|
541
|
+
ref: horizontalScrollRef
|
|
542
|
+
}, /*#__PURE__*/React.createElement(S.StickyScrollbarContent, {
|
|
543
|
+
ref: elementRef,
|
|
544
|
+
scrollWidth: scrollWidth
|
|
545
|
+
}))) : null, /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
535
546
|
onResize: function onResize(_ref5) {
|
|
536
547
|
var offsetWidth = _ref5.offsetWidth;
|
|
537
548
|
setTableWidth(offsetWidth);
|
|
@@ -549,15 +560,6 @@ var VirtualTable = function VirtualTable(props, forwardedRef) {
|
|
|
549
560
|
locale: tableLocale
|
|
550
561
|
}))), !!(infiniteScroll != null && infiniteScroll.showBackToTopButton) && /*#__PURE__*/React.createElement(BackToTopButton, {
|
|
551
562
|
onClick: scrollToTop
|
|
552
|
-
}, tableLocale.infiniteScrollBackToTop)
|
|
553
|
-
isStuck: isStuck,
|
|
554
|
-
offset: offsetScroll || 0,
|
|
555
|
-
ref: horizontalScrollRef,
|
|
556
|
-
onScroll: handleStickyScrollbarScroll,
|
|
557
|
-
absolute: true
|
|
558
|
-
}, /*#__PURE__*/React.createElement(S.StickyScrollbarContent, {
|
|
559
|
-
ref: elementRef,
|
|
560
|
-
scrollWidth: scrollWidth
|
|
561
|
-
})) : null);
|
|
563
|
+
}, tableLocale.infiniteScrollBackToTop));
|
|
562
564
|
};
|
|
563
565
|
export default /*#__PURE__*/forwardRef(VirtualTable);
|
|
@@ -15,8 +15,8 @@ export declare const VirtualListWrapper: import("styled-components").StyledCompo
|
|
|
15
15
|
listHeight: number;
|
|
16
16
|
listWidth: number;
|
|
17
17
|
}, never>;
|
|
18
|
-
export declare const
|
|
19
|
-
|
|
18
|
+
export declare const StickyScrollbarWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
19
|
+
scrollOffset: number;
|
|
20
20
|
isStuck: boolean;
|
|
21
21
|
}, never>;
|
|
22
22
|
export declare const StickyScrollbarContent: import("styled-components").StyledComponent<"div", any, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import Scrollbar from '@synerise/ds-scrollbar';
|
|
3
2
|
var numberToPixels = function numberToPixels(num) {
|
|
4
3
|
return num + "px";
|
|
5
4
|
};
|
|
@@ -28,13 +27,15 @@ export var VirtualListWrapper = styled.div.withConfig({
|
|
|
28
27
|
})(["", " overscroll-behavior-x:contain;"], function (props) {
|
|
29
28
|
return props.isSticky && css(["width:", ";overflow:overlay hidden;scrollbar-color:transparent;scrollbar-width:none;::-webkit-scrollbar-thumb{background-color:transparent;}::-webkit-scrollbar{display:none;}:after{content:'';width:10px;height:", ";display:block;}"], numberToPixels(props.listWidth), numberToPixels(props.listHeight));
|
|
30
29
|
});
|
|
31
|
-
export var
|
|
32
|
-
displayName: "
|
|
30
|
+
export var StickyScrollbarWrapper = styled.div.withConfig({
|
|
31
|
+
displayName: "VirtualTablestyles__StickyScrollbarWrapper",
|
|
33
32
|
componentId: "sc-aehkhc-4"
|
|
34
|
-
})(["position:sticky;
|
|
33
|
+
})(["position:sticky;top:calc(100% - ", ");z-index:", ";transform:translate(5px,", ");height:10px;margin-top:-10px;"], function (props) {
|
|
34
|
+
return numberToPixels(24 + props.scrollOffset);
|
|
35
|
+
}, function (props) {
|
|
35
36
|
return props.isStuck ? 2 : 0;
|
|
36
37
|
}, function (props) {
|
|
37
|
-
return numberToPixels(props.
|
|
38
|
+
return numberToPixels(props.scrollOffset);
|
|
38
39
|
});
|
|
39
40
|
export var StickyScrollbarContent = styled.div.withConfig({
|
|
40
41
|
displayName: "VirtualTablestyles__StickyScrollbarContent",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-table",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.8",
|
|
4
4
|
"description": "Table UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -35,32 +35,32 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-alert": "^1.1.
|
|
39
|
-
"@synerise/ds-badge": "^1.0.
|
|
40
|
-
"@synerise/ds-button": "^1.5.
|
|
41
|
-
"@synerise/ds-button-group": "^1.1.
|
|
42
|
-
"@synerise/ds-checkbox": "^1.2.
|
|
43
|
-
"@synerise/ds-copy-icon": "^1.1.
|
|
44
|
-
"@synerise/ds-dropdown": "^1.2.
|
|
38
|
+
"@synerise/ds-alert": "^1.1.42",
|
|
39
|
+
"@synerise/ds-badge": "^1.0.41",
|
|
40
|
+
"@synerise/ds-button": "^1.5.15",
|
|
41
|
+
"@synerise/ds-button-group": "^1.1.40",
|
|
42
|
+
"@synerise/ds-checkbox": "^1.2.17",
|
|
43
|
+
"@synerise/ds-copy-icon": "^1.1.7",
|
|
44
|
+
"@synerise/ds-dropdown": "^1.2.7",
|
|
45
45
|
"@synerise/ds-flag": "^1.0.7",
|
|
46
|
-
"@synerise/ds-icon": "^1.14.
|
|
47
|
-
"@synerise/ds-input": "^1.6.
|
|
48
|
-
"@synerise/ds-input-number": "^1.2.
|
|
49
|
-
"@synerise/ds-list-item": "^1.4.
|
|
46
|
+
"@synerise/ds-icon": "^1.14.1",
|
|
47
|
+
"@synerise/ds-input": "^1.6.7",
|
|
48
|
+
"@synerise/ds-input-number": "^1.2.32",
|
|
49
|
+
"@synerise/ds-list-item": "^1.4.7",
|
|
50
50
|
"@synerise/ds-loader": "^1.0.12",
|
|
51
|
-
"@synerise/ds-menu": "^1.4.
|
|
52
|
-
"@synerise/ds-modal": "^1.3.
|
|
53
|
-
"@synerise/ds-pagination": "^1.0.
|
|
54
|
-
"@synerise/ds-result": "^1.0.
|
|
55
|
-
"@synerise/ds-scrollbar": "^1.2.
|
|
56
|
-
"@synerise/ds-search": "^1.5.
|
|
57
|
-
"@synerise/ds-select": "^1.3.
|
|
58
|
-
"@synerise/ds-skeleton": "^1.0.
|
|
59
|
-
"@synerise/ds-status": "^1.3.
|
|
60
|
-
"@synerise/ds-tag": "^1.4.
|
|
61
|
-
"@synerise/ds-tags": "^1.5.
|
|
62
|
-
"@synerise/ds-tooltip": "^1.4.
|
|
63
|
-
"@synerise/ds-typography": "^1.1.
|
|
51
|
+
"@synerise/ds-menu": "^1.4.10",
|
|
52
|
+
"@synerise/ds-modal": "^1.3.8",
|
|
53
|
+
"@synerise/ds-pagination": "^1.0.50",
|
|
54
|
+
"@synerise/ds-result": "^1.0.46",
|
|
55
|
+
"@synerise/ds-scrollbar": "^1.2.14",
|
|
56
|
+
"@synerise/ds-search": "^1.5.7",
|
|
57
|
+
"@synerise/ds-select": "^1.3.17",
|
|
58
|
+
"@synerise/ds-skeleton": "^1.0.41",
|
|
59
|
+
"@synerise/ds-status": "^1.3.15",
|
|
60
|
+
"@synerise/ds-tag": "^1.4.15",
|
|
61
|
+
"@synerise/ds-tags": "^1.5.23",
|
|
62
|
+
"@synerise/ds-tooltip": "^1.4.7",
|
|
63
|
+
"@synerise/ds-typography": "^1.1.10",
|
|
64
64
|
"@synerise/ds-utils": "^1.6.0",
|
|
65
65
|
"@types/react-window": "^1.8.8",
|
|
66
66
|
"classnames": "^2.5.1",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
95
95
|
"styled-components": "^5.3.3"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "2997f77d657c1aed2fc39901d3e0b8f88b05cc53"
|
|
98
98
|
}
|