@synerise/ds-table 0.56.8 → 0.57.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 +19 -0
- package/dist/Cell/Copyable/CopyableCell.js +1 -1
- package/dist/Cell/LabelsWithShowMore/Modal/Modal.d.ts +1 -1
- package/dist/Cell/LabelsWithShowMore/Modal/Modal.js +1 -1
- package/dist/Cell/LabelsWithShowMore/Modal/Modal.types.d.ts +1 -1
- package/dist/Cell/StatusLabel/StatusLabel.d.ts +1 -1
- package/dist/ColumnSortMenu/SortIcons.d.ts +1 -1
- package/dist/ColumnSortMenu/SortIcons.js +1 -1
- package/dist/ColumnSortMenu/TitleWithSort.d.ts +1 -1
- package/dist/ColumnSortMenu/TitleWithSort.js +1 -1
- package/dist/ColumnSortMenu/columnWithSortButtons.js +1 -1
- package/dist/ColumnSortMenu/replaceSortButtons.d.ts +1 -1
- package/dist/ColumnSortMenu/useSortState.js +1 -1
- package/dist/FilterTrigger/FilterTrigger.d.ts +1 -1
- package/dist/FilterTrigger/FilterTrigger.js +1 -1
- package/dist/FilterTrigger/FilterTrigger.types.d.ts +1 -1
- package/dist/GroupTable/GroupTable.d.ts +1 -1
- package/dist/GroupTable/GroupTable.js +1 -1
- package/dist/GroupTable/GroupTable.types.d.ts +1 -1
- package/dist/GroupTable/GroupTableBody/GroupTableBody.js +1 -1
- package/dist/GroupTable/GroupTableBody/GroupTableBody.types.d.ts +1 -1
- package/dist/GroupTable/GroupTableHeader/GroupTableHeader.js +1 -1
- package/dist/InfiniteScroll/BackToTopButton.d.ts +1 -1
- package/dist/InfiniteScroll/BackToTopButton.js +1 -1
- package/dist/ItemsMenu/ItemsMenu.d.ts +1 -1
- package/dist/ItemsMenu/ItemsMenu.js +1 -1
- package/dist/ItemsMenu/ItemsMenu.types.d.ts +1 -1
- package/dist/RowSelection/RowSelectionColumn.types.d.ts +1 -1
- package/dist/Table.js +3 -3
- package/dist/Table.types.d.ts +2 -1
- package/dist/TableHeader/TableHeader.d.ts +1 -1
- package/dist/TableHeader/TableHeader.js +1 -1
- package/dist/TableHeader/TableLimit/TableLimit.d.ts +1 -1
- package/dist/TableHeader/TableLimit/TableLimit.js +1 -1
- package/dist/TableHeader/TableLimit/TableLimit.types.d.ts +1 -1
- package/dist/TableHeader/TableSelection.types.d.ts +1 -1
- package/dist/TreeTable/TreeTable.d.ts +1 -1
- package/dist/TreeTable/TreeTable.js +1 -1
- package/dist/VirtualTable/VirtualTable.d.ts +1 -1
- package/dist/hooks/useRowKey/useRowKey.js +1 -1
- package/dist/hooks/useRowStar/useRowStar.js +1 -1
- package/dist/hooks/useRowStar/useRowStar.types.d.ts +1 -1
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.57.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.57.0...@synerise/ds-table@0.57.1) (2024-09-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.57.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.56.8...@synerise/ds-table@0.57.0) (2024-09-17)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **storybook7:** table stories ([e90a78b](https://github.com/synerise/synerise-design/commit/e90a78bc5673f1869e0cd9ffd98c9f1f82bf148e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.56.8](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.56.7...@synerise/ds-table@0.56.8) (2024-09-13)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -3,7 +3,7 @@ var _excluded = ["value", "confirmMessage", "tooltipTimeout"];
|
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
4
|
|
|
5
5
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
6
|
-
import
|
|
6
|
+
import copy from 'copy-to-clipboard';
|
|
7
7
|
import Icon, { CopyClipboardM } from '@synerise/ds-icon';
|
|
8
8
|
import Tooltip from '@synerise/ds-tooltip';
|
|
9
9
|
import * as S from './Copyable.styles';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StatusLabelProps } from './StatusLabel.types';
|
|
2
|
+
import type { StatusLabelProps } from './StatusLabel.types';
|
|
3
3
|
declare const StatusLabelCell: ({ status, label, customColor, ...htmlAttributes }: StatusLabelProps) => React.JSX.Element;
|
|
4
4
|
export default StatusLabelCell;
|
|
@@ -4,7 +4,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import createReplaceButtonsPortal from './replaceSortButtons';
|
|
9
9
|
export var TitleWithSort = function TitleWithSort(_ref) {
|
|
10
10
|
var column = _ref.column,
|
|
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import { TitleWithSort } from './TitleWithSort';
|
|
9
9
|
import { CommonRenderer, StringRenderer } from './SortRenderer';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import { groupBy, merge } from 'lodash';
|
|
9
9
|
export var toSortOrder = function toSortOrder(value) {
|
|
10
10
|
if (value === 'descend' || value === 'ascend') {
|
|
@@ -10,7 +10,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
|
|
11
11
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
12
|
|
|
13
|
-
import
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import { flow } from 'lodash';
|
|
15
15
|
import Table from 'antd/lib/table';
|
|
16
16
|
import { columnsToSortState, useSortState } from '../ColumnSortMenu/useSortState';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnsType } from 'antd/lib/table';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { GroupType as GroupByType } from '@synerise/ds-column-manager/dist/ColumnManager.types';
|
|
4
4
|
export type SortOrderType = 'ascend' | 'descend' | boolean;
|
|
5
5
|
export type GroupColumnsType<T> = ColumnsType<T> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import Icon, { ArrowUpCircleM } from '@synerise/ds-icon';
|
|
5
5
|
import * as S from './BackToTopButton.styles';
|
|
6
6
|
export var BackToTopButton = function BackToTopButton(props) {
|
package/dist/Table.js
CHANGED
|
@@ -7,13 +7,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
8
|
|
|
9
9
|
import React, { useMemo } from 'react';
|
|
10
|
+
import { useIntl } from 'react-intl';
|
|
10
11
|
import '@synerise/ds-core/dist/js/style';
|
|
11
|
-
import "./style/index.css";
|
|
12
12
|
import Icon, { AngleLeftS, AngleRightS, SpinnerM } from '@synerise/ds-icon';
|
|
13
13
|
import Button from '@synerise/ds-button';
|
|
14
|
-
import { useIntl } from 'react-intl';
|
|
15
14
|
import Skeleton from '@synerise/ds-skeleton';
|
|
16
15
|
import { useDataFormat } from '@synerise/ds-data-format';
|
|
16
|
+
import "./style/index.css";
|
|
17
17
|
import * as S from './Table.styles';
|
|
18
18
|
import TableHeader from './TableHeader/TableHeader';
|
|
19
19
|
import DefaultTable from './DefaultTable/DefaultTable';
|
|
@@ -26,7 +26,7 @@ export var SELECTION_INVERT = 'SELECTION_INVERT';
|
|
|
26
26
|
var ITEM_RENDER_TYPE = {
|
|
27
27
|
prev: 'prev',
|
|
28
28
|
next: 'next'
|
|
29
|
-
};
|
|
29
|
+
};
|
|
30
30
|
|
|
31
31
|
function DSTable(props) {
|
|
32
32
|
var intl = useIntl();
|
package/dist/Table.types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ReactNode, ReactText, Ref } from 'react';
|
|
|
2
2
|
import { ColumnType, TableProps } from 'antd/lib/table';
|
|
3
3
|
import { TableLocale, TableRowSelection } from 'antd/lib/table/interface';
|
|
4
4
|
import { TableSkeletonProps } from 'TableSkeleton/TableSkeleton.types';
|
|
5
|
+
import { LiteralStringUnion } from '@synerise/ds-utils';
|
|
5
6
|
import DSTable from './Table';
|
|
6
7
|
import { GroupType } from './GroupTable/GroupTable.types';
|
|
7
8
|
import { RowStar } from './hooks/useRowStar';
|
|
@@ -104,7 +105,7 @@ export type DSTableProps<T extends any & GroupType<T>> = AntTableProps<T> & {
|
|
|
104
105
|
headerWithBorderTop?: boolean;
|
|
105
106
|
itemsMenu?: string | ReactNode;
|
|
106
107
|
search?: string;
|
|
107
|
-
cellSize?:
|
|
108
|
+
cellSize?: LiteralStringUnion<'medium' | 'small'>;
|
|
108
109
|
roundedHeader?: boolean;
|
|
109
110
|
selection?: RowSelection<T>;
|
|
110
111
|
rowStar?: RowStar<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import '@synerise/ds-core/dist/js/style';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import Button from '@synerise/ds-button';
|
|
@@ -11,7 +11,7 @@ declare const _default: <T extends object & RowType<T> & {
|
|
|
11
11
|
headerWithBorderTop?: boolean | undefined;
|
|
12
12
|
itemsMenu?: React.ReactNode;
|
|
13
13
|
search?: string | undefined;
|
|
14
|
-
cellSize?:
|
|
14
|
+
cellSize?: import("@synerise/ds-utils").LiteralStringUnion<"small" | "medium"> | undefined;
|
|
15
15
|
roundedHeader?: boolean | undefined;
|
|
16
16
|
selection?: RowSelection<T> | undefined;
|
|
17
17
|
rowStar?: import("../hooks/useRowStar").RowStar<T> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line import/prefer-default-export
|
|
4
4
|
export var useRowKey = function useRowKey(rowKey) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-table",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.1",
|
|
4
4
|
"description": "Table UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -33,35 +33,35 @@
|
|
|
33
33
|
],
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@synerise/ds-alert": "^0.8.
|
|
37
|
-
"@synerise/ds-badge": "^0.8.
|
|
38
|
-
"@synerise/ds-button": "^0.21.
|
|
39
|
-
"@synerise/ds-button-group": "^0.7.
|
|
40
|
-
"@synerise/ds-checkbox": "^0.12.
|
|
41
|
-
"@synerise/ds-column-manager": "^0.
|
|
42
|
-
"@synerise/ds-data-format": "^0.5.
|
|
43
|
-
"@synerise/ds-dropdown": "^0.18.
|
|
44
|
-
"@synerise/ds-flag": "^0.5.
|
|
45
|
-
"@synerise/ds-icon": "^0.65.
|
|
46
|
-
"@synerise/ds-input": "^0.24.
|
|
47
|
-
"@synerise/ds-loader": "^0.3.
|
|
48
|
-
"@synerise/ds-menu": "^0.19.
|
|
49
|
-
"@synerise/ds-modal": "^0.17.
|
|
50
|
-
"@synerise/ds-pagination": "^0.7.
|
|
51
|
-
"@synerise/ds-result": "^0.7.
|
|
52
|
-
"@synerise/ds-scrollbar": "^0.11.
|
|
53
|
-
"@synerise/ds-search": "^0.9.
|
|
54
|
-
"@synerise/ds-select": "^0.16.
|
|
55
|
-
"@synerise/ds-skeleton": "^0.6.
|
|
56
|
-
"@synerise/ds-status": "^0.6.
|
|
57
|
-
"@synerise/ds-tags": "^0.10.
|
|
58
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
59
|
-
"@synerise/ds-typography": "^0.15.
|
|
60
|
-
"@synerise/ds-utils": "^0.29.
|
|
36
|
+
"@synerise/ds-alert": "^0.8.29",
|
|
37
|
+
"@synerise/ds-badge": "^0.8.10",
|
|
38
|
+
"@synerise/ds-button": "^0.21.11",
|
|
39
|
+
"@synerise/ds-button-group": "^0.7.15",
|
|
40
|
+
"@synerise/ds-checkbox": "^0.12.8",
|
|
41
|
+
"@synerise/ds-column-manager": "^0.12.1",
|
|
42
|
+
"@synerise/ds-data-format": "^0.5.3",
|
|
43
|
+
"@synerise/ds-dropdown": "^0.18.15",
|
|
44
|
+
"@synerise/ds-flag": "^0.5.2",
|
|
45
|
+
"@synerise/ds-icon": "^0.65.6",
|
|
46
|
+
"@synerise/ds-input": "^0.24.5",
|
|
47
|
+
"@synerise/ds-loader": "^0.3.15",
|
|
48
|
+
"@synerise/ds-menu": "^0.19.15",
|
|
49
|
+
"@synerise/ds-modal": "^0.17.42",
|
|
50
|
+
"@synerise/ds-pagination": "^0.7.63",
|
|
51
|
+
"@synerise/ds-result": "^0.7.5",
|
|
52
|
+
"@synerise/ds-scrollbar": "^0.11.11",
|
|
53
|
+
"@synerise/ds-search": "^0.9.11",
|
|
54
|
+
"@synerise/ds-select": "^0.16.17",
|
|
55
|
+
"@synerise/ds-skeleton": "^0.6.9",
|
|
56
|
+
"@synerise/ds-status": "^0.6.24",
|
|
57
|
+
"@synerise/ds-tags": "^0.10.9",
|
|
58
|
+
"@synerise/ds-tooltip": "^0.14.41",
|
|
59
|
+
"@synerise/ds-typography": "^0.15.2",
|
|
60
|
+
"@synerise/ds-utils": "^0.29.3",
|
|
61
61
|
"@types/react-window": "^1.8.5",
|
|
62
62
|
"classnames": "2.3.2",
|
|
63
63
|
"copy-to-clipboard": "^3.3.1",
|
|
64
|
-
"lodash": "^4.17.
|
|
64
|
+
"lodash": "^4.17.21",
|
|
65
65
|
"ramda": "0.27.0",
|
|
66
66
|
"rc-resize-observer": "^0.2.1",
|
|
67
67
|
"rc-table": "7.10.4",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"react-dom": "^16.14.0",
|
|
78
78
|
"styled-components": "5.0.1"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "a2c7baeed8b391294c9a24866cd4c9dfd4646fa9"
|
|
81
81
|
}
|