@synerise/ds-table 0.58.0 → 0.59.0
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 +11 -0
- package/dist/TableHeader/TableHeader.js +10 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.59.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.58.0...@synerise/ds-table@0.59.0) (2024-10-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **table:** wire up hideSelectAll prop ([096f816](https://github.com/synerise/synerise-design/commit/096f8168f0e586554ac0f5792e03a6bc71418129))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.58.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.57.6...@synerise/ds-table@0.58.0) (2024-10-14)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -29,7 +29,13 @@ var TableHeader = function TableHeader(_ref) {
|
|
|
29
29
|
formatValue = _useDataFormat.formatValue;
|
|
30
30
|
|
|
31
31
|
var renderLeftSide = useMemo(function () {
|
|
32
|
-
|
|
32
|
+
var _locale$pagination;
|
|
33
|
+
|
|
34
|
+
var _ref2 = selection || {},
|
|
35
|
+
limit = _ref2.limit,
|
|
36
|
+
hideSelectAll = _ref2.hideSelectAll;
|
|
37
|
+
|
|
38
|
+
if (limit) return /*#__PURE__*/React.createElement(TableLimit, {
|
|
33
39
|
total: dataSourceTotalCount || dataSource.length,
|
|
34
40
|
selection: selection,
|
|
35
41
|
itemsMenu: itemsMenu,
|
|
@@ -37,7 +43,7 @@ var TableHeader = function TableHeader(_ref) {
|
|
|
37
43
|
});
|
|
38
44
|
return selectedRows && selectedRows > 0 ? /*#__PURE__*/React.createElement(S.Left, {
|
|
39
45
|
"data-testid": "ds-table-selection"
|
|
40
|
-
}, selection && /*#__PURE__*/React.createElement(TableSelection, {
|
|
46
|
+
}, selection && !hideSelectAll && /*#__PURE__*/React.createElement(TableSelection, {
|
|
41
47
|
rowKey: rowKey,
|
|
42
48
|
dataSource: dataSource,
|
|
43
49
|
dataSourceFull: dataSourceFull,
|
|
@@ -46,7 +52,7 @@ var TableHeader = function TableHeader(_ref) {
|
|
|
46
52
|
childrenColumnName: childrenColumnName
|
|
47
53
|
}), renderSelectionTitle ? /*#__PURE__*/React.createElement(React.Fragment, null, renderSelectionTitle(selection, filters)) : /*#__PURE__*/React.createElement(S.TitleContainer, null, /*#__PURE__*/React.createElement(S.TitlePart, null, /*#__PURE__*/React.createElement("strong", null, formatValue(selectedRows)), " ", /*#__PURE__*/React.createElement("span", null, locale.selected))), itemsMenu) : /*#__PURE__*/React.createElement(S.Left, {
|
|
48
54
|
"data-testid": "ds-table-title"
|
|
49
|
-
}, selection && !isLoading && /*#__PURE__*/React.createElement(TableSelection, {
|
|
55
|
+
}, selection && !isLoading && !hideSelectAll && /*#__PURE__*/React.createElement(TableSelection, {
|
|
50
56
|
rowKey: rowKey,
|
|
51
57
|
dataSource: dataSource,
|
|
52
58
|
dataSourceFull: dataSourceFull,
|
|
@@ -69,7 +75,7 @@ var TableHeader = function TableHeader(_ref) {
|
|
|
69
75
|
autoAdjustOverflow: true
|
|
70
76
|
}
|
|
71
77
|
}
|
|
72
|
-
}, title), !hideTitlePart && /*#__PURE__*/React.createElement(S.TitleSeparator, null)), !isLoading && !hideTitlePart && /*#__PURE__*/React.createElement(S.TitlePart, null, /*#__PURE__*/React.createElement("strong", null, formatValue(dataSourceTotalCount)), " ", /*#__PURE__*/React.createElement("span", null, locale.pagination.items))));
|
|
78
|
+
}, title), !hideTitlePart && /*#__PURE__*/React.createElement(S.TitleSeparator, null)), !isLoading && !hideTitlePart && /*#__PURE__*/React.createElement(S.TitlePart, null, /*#__PURE__*/React.createElement("strong", null, formatValue(dataSourceTotalCount || dataSource.length)), " ", /*#__PURE__*/React.createElement("span", null, locale == null || (_locale$pagination = locale.pagination) == null ? void 0 : _locale$pagination.items))));
|
|
73
79
|
}, [selection, dataSourceTotalCount, dataSource, itemsMenu, locale, selectedRows, rowKey, dataSourceFull, childrenColumnName, renderSelectionTitle, filters, formatValue, title, hideTitlePart, isLoading]);
|
|
74
80
|
return /*#__PURE__*/React.createElement(S.Header, {
|
|
75
81
|
withBorderTop: withBorderTop
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-table",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"description": "Table UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@synerise/ds-button": "^0.21.13",
|
|
40
40
|
"@synerise/ds-button-group": "^0.7.17",
|
|
41
41
|
"@synerise/ds-checkbox": "^0.12.11",
|
|
42
|
-
"@synerise/ds-column-manager": "^0.12.
|
|
42
|
+
"@synerise/ds-column-manager": "^0.12.6",
|
|
43
43
|
"@synerise/ds-data-format": "^0.5.4",
|
|
44
44
|
"@synerise/ds-dropdown": "^0.18.18",
|
|
45
45
|
"@synerise/ds-flag": "^0.5.3",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"react": ">=16.9.0 <= 17.0.2",
|
|
78
78
|
"styled-components": "5.0.1"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "e8e5f3ad6ef7c84de801b5097c715e0320c12350"
|
|
81
81
|
}
|