@synerise/ds-table 1.8.5 → 1.9.1
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 +10 -0
- package/dist/Cell/Copyable/CopyableCell.js +4 -4
- package/dist/Cell/Star/StarCell.js +0 -3
- package/dist/ColumnSortMenu/SortRenderer.js +1 -1
- package/dist/ColumnSortMenu/useSortState.js +2 -1
- package/dist/DefaultTable/DefaultTable.js +2 -1
- package/dist/GroupTable/GroupTable.js +1 -1
- package/dist/RowSelection/RowSelectionColumn.js +6 -6
- package/dist/TableHeader/TableHeader.js +1 -2
- package/dist/VirtualTable/VirtualTable.js +1 -1
- package/package.json +39 -29
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.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.9.0...@synerise/ds-table@1.9.1) (2026-02-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-table
|
|
9
|
+
|
|
10
|
+
# [1.9.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.8.5...@synerise/ds-table@1.9.0) (2026-02-05)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **tooltip:** migrate to popover ([53ecd29](https://github.com/synerise/synerise-design/commit/53ecd293fa31bdcfd921c6c5fd91db9c2c643eda))
|
|
15
|
+
|
|
6
16
|
## [1.8.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.8.4...@synerise/ds-table@1.8.5) (2026-02-02)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @synerise/ds-table
|
|
@@ -11,16 +11,16 @@ var CopyableCell = function CopyableCell(_ref) {
|
|
|
11
11
|
tooltipTimeout = _ref$tooltipTimeout === void 0 ? DEFAULT_TIMEOUT : _ref$tooltipTimeout,
|
|
12
12
|
htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
13
|
var _useState = useState(false),
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
tooltipOpen = _useState[0],
|
|
15
|
+
setTooltipOpen = _useState[1];
|
|
16
16
|
useEffect(function () {
|
|
17
17
|
var timer = setTimeout(function () {
|
|
18
|
-
|
|
18
|
+
setTooltipOpen(false);
|
|
19
19
|
}, tooltipTimeout);
|
|
20
20
|
return function () {
|
|
21
21
|
return clearTimeout(timer);
|
|
22
22
|
};
|
|
23
|
-
}, [
|
|
23
|
+
}, [tooltipOpen, setTooltipOpen, tooltipTimeout]);
|
|
24
24
|
return /*#__PURE__*/React.createElement(S.Copyable, htmlAttributes, /*#__PURE__*/React.createElement(S.CopyableValue, null, value), /*#__PURE__*/React.createElement(CopyIcon, {
|
|
25
25
|
copyValue: value,
|
|
26
26
|
placement: "left",
|
|
@@ -23,9 +23,6 @@ var StarCell = function StarCell(_ref) {
|
|
|
23
23
|
});
|
|
24
24
|
}, [active, theme.palette]);
|
|
25
25
|
return /*#__PURE__*/React.createElement(S.StarCell, htmlAttributes, /*#__PURE__*/React.createElement(Tooltip, {
|
|
26
|
-
align: {
|
|
27
|
-
offset: [0, 8]
|
|
28
|
-
},
|
|
29
26
|
title: starTooltip
|
|
30
27
|
}, /*#__PURE__*/React.createElement(S.StarredIcon, {
|
|
31
28
|
active: active,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import partial from 'lodash.partial';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { DropdownMenu } from '@synerise/ds-dropdown';
|
|
4
4
|
import Icon, { Close2M, SortAscendingM, SortAzM, SortDescendingM, SortZaM } from '@synerise/ds-icon';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import
|
|
2
|
+
import groupBy from 'lodash.groupby';
|
|
3
|
+
import merge from 'lodash.merge';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
export var toSortOrder = function toSortOrder(value) {
|
|
5
6
|
if (value === 'descend' || value === 'ascend') {
|
|
@@ -2,7 +2,8 @@ var _excluded = ["children"];
|
|
|
2
2
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
import Table from 'antd/lib/table';
|
|
5
|
-
import
|
|
5
|
+
import compact from 'lodash.compact';
|
|
6
|
+
import isEqual from 'lodash.isequal';
|
|
6
7
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
7
8
|
import { FormattedMessage } from 'react-intl';
|
|
8
9
|
import Result from '@synerise/ds-result';
|
|
@@ -2,7 +2,7 @@ var _excluded = ["rows"];
|
|
|
2
2
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
import Table from 'antd/lib/table';
|
|
5
|
-
import
|
|
5
|
+
import flow from 'lodash.flow';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { columnWithSortButtons } from '../ColumnSortMenu/columnWithSortButtons';
|
|
8
8
|
import { getColumnsWithActiveSorting, sortDataSourceRows } from '../ColumnSortMenu/groupedColumnsSort';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { useCallback, useMemo } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import { Checkbox } from '@synerise/ds-button';
|
|
4
4
|
import { useRowKey } from '../hooks/useRowKey';
|
|
5
5
|
import { getRecordSelectionStatus, isRecordSelectable } from '../utils';
|
|
6
6
|
export function RowSelectionColumn(_ref) {
|
|
@@ -84,20 +84,20 @@ export function RowSelectionColumn(_ref) {
|
|
|
84
84
|
disabled = _getRecordSelectionSt.disabled;
|
|
85
85
|
var disabledProp = isGlobalAllSelected || !isChecked && Boolean(limit !== undefined && limit <= selectedRowKeys.length) || disabled;
|
|
86
86
|
var recordTooltip = getSelectionTooltipProps == null ? void 0 : getSelectionTooltipProps(record);
|
|
87
|
-
return recordKey !== undefined && !unavailable ? /*#__PURE__*/React.createElement(
|
|
87
|
+
return recordKey !== undefined && !unavailable ? /*#__PURE__*/React.createElement(Checkbox, {
|
|
88
88
|
key: "checkbox-" + recordKey,
|
|
89
89
|
"data-testid": "ds-table-selection-button",
|
|
90
90
|
checked: isGlobalAllSelected || isChecked,
|
|
91
91
|
disabled: disabledProp,
|
|
92
92
|
indeterminate: isIndeterminate,
|
|
93
|
-
tooltipProps: _extends({
|
|
94
|
-
title: tableLocale == null ? void 0 : tableLocale.selectRowTooltip
|
|
95
|
-
}, recordTooltip),
|
|
96
93
|
onClick: function onClick(event) {
|
|
97
94
|
event.stopPropagation();
|
|
98
95
|
},
|
|
99
96
|
onChange: function onChange(isCheckedNext) {
|
|
100
97
|
return !isGlobalAllSelected && handleSelectionChange(isCheckedNext, record);
|
|
101
|
-
}
|
|
98
|
+
},
|
|
99
|
+
tooltipProps: _extends({
|
|
100
|
+
title: tableLocale == null ? void 0 : tableLocale.selectRowTooltip
|
|
101
|
+
}, recordTooltip)
|
|
102
102
|
}) : null;
|
|
103
103
|
}
|
|
@@ -98,8 +98,7 @@ var TableHeader = function TableHeader(_ref) {
|
|
|
98
98
|
tooltipProps: {
|
|
99
99
|
description: /*#__PURE__*/React.createElement(React.Fragment, null, title),
|
|
100
100
|
type: 'largeSimple',
|
|
101
|
-
offset: 'small'
|
|
102
|
-
autoAdjustOverflow: true
|
|
101
|
+
offset: 'small'
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
104
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, title)), !hideTitlePart && /*#__PURE__*/React.createElement(S.TitleSeparator, null)), !isLoading && !hideTitlePart && /*#__PURE__*/React.createElement(S.TitlePart, null, isCounterLoading ? /*#__PURE__*/React.createElement(S.Skeleton, {
|
|
@@ -2,7 +2,7 @@ var _excluded = ["style"];
|
|
|
2
2
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
3
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import
|
|
5
|
+
import compact from 'lodash.compact';
|
|
6
6
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-table",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Table UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -35,36 +35,41 @@
|
|
|
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.
|
|
44
|
-
"@synerise/ds-dropdown": "^1.1
|
|
38
|
+
"@synerise/ds-alert": "^1.1.36",
|
|
39
|
+
"@synerise/ds-badge": "^1.0.35",
|
|
40
|
+
"@synerise/ds-button": "^1.5.9",
|
|
41
|
+
"@synerise/ds-button-group": "^1.1.34",
|
|
42
|
+
"@synerise/ds-checkbox": "^1.2.11",
|
|
43
|
+
"@synerise/ds-copy-icon": "^1.1.1",
|
|
44
|
+
"@synerise/ds-dropdown": "^1.2.1",
|
|
45
45
|
"@synerise/ds-flag": "^1.0.7",
|
|
46
|
-
"@synerise/ds-icon": "^1.11.
|
|
47
|
-
"@synerise/ds-input": "^1.
|
|
48
|
-
"@synerise/ds-input-number": "^1.2.
|
|
49
|
-
"@synerise/ds-list-item": "^1.
|
|
46
|
+
"@synerise/ds-icon": "^1.11.1",
|
|
47
|
+
"@synerise/ds-input": "^1.6.1",
|
|
48
|
+
"@synerise/ds-input-number": "^1.2.26",
|
|
49
|
+
"@synerise/ds-list-item": "^1.4.1",
|
|
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.
|
|
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.
|
|
63
|
-
"@synerise/ds-typography": "^1.1.
|
|
64
|
-
"@synerise/ds-utils": "^1.
|
|
51
|
+
"@synerise/ds-menu": "^1.4.4",
|
|
52
|
+
"@synerise/ds-modal": "^1.3.2",
|
|
53
|
+
"@synerise/ds-pagination": "^1.0.44",
|
|
54
|
+
"@synerise/ds-result": "^1.0.40",
|
|
55
|
+
"@synerise/ds-scrollbar": "^1.2.9",
|
|
56
|
+
"@synerise/ds-search": "^1.5.1",
|
|
57
|
+
"@synerise/ds-select": "^1.3.11",
|
|
58
|
+
"@synerise/ds-skeleton": "^1.0.35",
|
|
59
|
+
"@synerise/ds-status": "^1.3.9",
|
|
60
|
+
"@synerise/ds-tag": "^1.4.9",
|
|
61
|
+
"@synerise/ds-tags": "^1.5.16",
|
|
62
|
+
"@synerise/ds-tooltip": "^1.4.1",
|
|
63
|
+
"@synerise/ds-typography": "^1.1.4",
|
|
64
|
+
"@synerise/ds-utils": "^1.6.0",
|
|
65
65
|
"@types/react-window": "^1.8.8",
|
|
66
66
|
"classnames": "^2.5.1",
|
|
67
|
-
"lodash": "^
|
|
67
|
+
"lodash.compact": "^3.0.1",
|
|
68
|
+
"lodash.flow": "^3.5.0",
|
|
69
|
+
"lodash.groupby": "^4.6.0",
|
|
70
|
+
"lodash.isequal": "^4.5.0",
|
|
71
|
+
"lodash.merge": "^4.6.2",
|
|
72
|
+
"lodash.partial": "^4.2.1",
|
|
68
73
|
"ramda": "0.27.0",
|
|
69
74
|
"rc-resize-observer": "^1.2.0",
|
|
70
75
|
"rc-table": "~7.26.0",
|
|
@@ -73,7 +78,12 @@
|
|
|
73
78
|
"uuid": "^8.3.2"
|
|
74
79
|
},
|
|
75
80
|
"devDependencies": {
|
|
76
|
-
"@types/lodash": "^
|
|
81
|
+
"@types/lodash.compact": "^3.0.9",
|
|
82
|
+
"@types/lodash.flow": "^3.5.9",
|
|
83
|
+
"@types/lodash.groupby": "^4.6.9",
|
|
84
|
+
"@types/lodash.isequal": "^4.5.8",
|
|
85
|
+
"@types/lodash.merge": "^4.6.9",
|
|
86
|
+
"@types/lodash.partial": "^4.2.9",
|
|
77
87
|
"@types/node": "^22"
|
|
78
88
|
},
|
|
79
89
|
"peerDependencies": {
|
|
@@ -84,5 +94,5 @@
|
|
|
84
94
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
85
95
|
"styled-components": "^5.3.3"
|
|
86
96
|
},
|
|
87
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "e5a4dcb266c92d3463e4d1e86ef76c87673b678a"
|
|
88
98
|
}
|