@synerise/ds-table 0.56.7 → 0.57.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 +23 -0
- package/dist/Cell/Action/ActionCell.d.ts +3 -3
- package/dist/Cell/Action/ActionCell.js +14 -5
- package/dist/Cell/Action/ActionCell.types.d.ts +9 -4
- package/dist/Cell/AvatarLabel/AvatarLabel.d.ts +1 -1
- package/dist/Cell/AvatarLabel/AvatarLabel.js +9 -3
- package/dist/Cell/AvatarLabel/AvatarLabel.types.d.ts +6 -2
- package/dist/Cell/Copyable/Copyable.types.d.ts +7 -2
- package/dist/Cell/Copyable/CopyableCell.d.ts +3 -3
- package/dist/Cell/Copyable/CopyableCell.js +15 -9
- package/dist/Cell/Editable/EditableCell.d.ts +3 -3
- package/dist/Cell/Editable/EditableCell.js +16 -11
- package/dist/Cell/Editable/EditableCell.types.d.ts +8 -3
- package/dist/Cell/FlagLabel/FlagLabelCell.d.ts +3 -3
- package/dist/Cell/FlagLabel/FlagLabelCell.js +9 -3
- package/dist/Cell/FlagLabel/FlagLabelCell.types.d.ts +7 -2
- package/dist/Cell/IconLabel/IconLabel.d.ts +3 -3
- package/dist/Cell/IconLabel/IconLabel.js +9 -3
- package/dist/Cell/IconLabel/IconLabel.types.d.ts +7 -2
- package/dist/Cell/IconTooltipCell/IconTooltipCell.d.ts +3 -3
- package/dist/Cell/IconTooltipCell/IconTooltipCell.js +9 -3
- package/dist/Cell/IconTooltipCell/IconTooltipCell.types.d.ts +7 -2
- package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.d.ts +3 -3
- package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.js +13 -8
- package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.types.d.ts +12 -7
- 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/Star/StarCell.d.ts +261 -2
- package/dist/Cell/Star/StarCell.js +12 -6
- package/dist/Cell/Star/StarCell.types.d.ts +11 -6
- package/dist/Cell/StatusLabel/StatusLabel.d.ts +3 -3
- package/dist/Cell/StatusLabel/StatusLabel.js +9 -3
- package/dist/Cell/StatusLabel/StatusLabel.types.d.ts +10 -5
- package/dist/Cell/TagIcon/TagIcon.d.ts +3 -3
- package/dist/Cell/TagIcon/TagIcon.js +9 -3
- package/dist/Cell/TagIcon/TagIcon.types.d.ts +9 -4
- 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 +8 -7
- package/dist/Table.types.d.ts +4 -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/TableSkeleton/TableSkeleton.d.ts +1 -1
- package/dist/TableSkeleton/TableSkeleton.js +10 -2
- package/dist/TableSkeleton/TableSkeleton.styles.d.ts +9 -3
- package/dist/TableSkeleton/TableSkeleton.styles.js +15 -6
- package/dist/TableSkeleton/TableSkeleton.types.d.ts +3 -0
- package/dist/TableSkeleton/components/TableSkeletonBody.d.ts +2 -1
- package/dist/TableSkeleton/components/TableSkeletonBody.js +3 -1
- package/dist/TableSkeleton/components/TableSkeletonHeader.d.ts +3 -1
- package/dist/TableSkeleton/components/TableSkeletonSubheader.d.ts +3 -1
- package/dist/TreeTable/TreeTable.d.ts +1 -1
- package/dist/TreeTable/TreeTable.js +1 -1
- package/dist/VirtualTable/VirtualTable.d.ts +2 -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/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();
|
|
@@ -54,7 +54,8 @@ function DSTable(props) {
|
|
|
54
54
|
hideTitlePart = props.hideTitlePart,
|
|
55
55
|
disableColumnNamesLineBreak = props.disableColumnNamesLineBreak,
|
|
56
56
|
expandable = props.expandable,
|
|
57
|
-
maxHeight = props.maxHeight
|
|
57
|
+
maxHeight = props.maxHeight,
|
|
58
|
+
skeletonProps = props.skeletonProps;
|
|
58
59
|
var tableLocale = useTableLocale(intl, locale);
|
|
59
60
|
|
|
60
61
|
var _useDataFormat = useDataFormat(),
|
|
@@ -129,9 +130,9 @@ function DSTable(props) {
|
|
|
129
130
|
}, pagination);
|
|
130
131
|
}, [pagination, formatValue, grouped, tableLocale, hideTitlePart]);
|
|
131
132
|
var defaultTableContent = useMemo(function () {
|
|
132
|
-
return loading && !(dataSource != null && dataSource.length) ? /*#__PURE__*/React.createElement(TableSkeleton, {
|
|
133
|
+
return loading && !(dataSource != null && dataSource.length) ? /*#__PURE__*/React.createElement(TableSkeleton, _extends({
|
|
133
134
|
maxHeight: maxHeight
|
|
134
|
-
}) : /*#__PURE__*/React.createElement(DefaultTable, _extends({
|
|
135
|
+
}, skeletonProps)) : /*#__PURE__*/React.createElement(DefaultTable, _extends({
|
|
135
136
|
scroll: {
|
|
136
137
|
x: 'auto'
|
|
137
138
|
},
|
|
@@ -141,7 +142,7 @@ function DSTable(props) {
|
|
|
141
142
|
title: renderHeader,
|
|
142
143
|
pagination: dataSource != null && dataSource.length && pagination ? footerPagination : false
|
|
143
144
|
}));
|
|
144
|
-
}, [dataSource == null ? void 0 : dataSource.length, footerPagination, loading, pagination, props, renderHeader, maxHeight, tableLocale]);
|
|
145
|
+
}, [dataSource == null ? void 0 : dataSource.length, skeletonProps, footerPagination, loading, pagination, props, renderHeader, maxHeight, tableLocale]);
|
|
145
146
|
return /*#__PURE__*/React.createElement(TableLocaleContext.Provider, {
|
|
146
147
|
value: tableLocale
|
|
147
148
|
}, /*#__PURE__*/React.createElement(S.TableWrapper, {
|
package/dist/Table.types.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
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
|
+
import { TableSkeletonProps } from 'TableSkeleton/TableSkeleton.types';
|
|
5
|
+
import { LiteralStringUnion } from '@synerise/ds-utils';
|
|
4
6
|
import DSTable from './Table';
|
|
5
7
|
import { GroupType } from './GroupTable/GroupTable.types';
|
|
6
8
|
import { RowStar } from './hooks/useRowStar';
|
|
@@ -103,7 +105,7 @@ export type DSTableProps<T extends any & GroupType<T>> = AntTableProps<T> & {
|
|
|
103
105
|
headerWithBorderTop?: boolean;
|
|
104
106
|
itemsMenu?: string | ReactNode;
|
|
105
107
|
search?: string;
|
|
106
|
-
cellSize?:
|
|
108
|
+
cellSize?: LiteralStringUnion<'medium' | 'small'>;
|
|
107
109
|
roundedHeader?: boolean;
|
|
108
110
|
selection?: RowSelection<T>;
|
|
109
111
|
rowStar?: RowStar<T>;
|
|
@@ -126,5 +128,6 @@ export type DSTableProps<T extends any & GroupType<T>> = AntTableProps<T> & {
|
|
|
126
128
|
dataSourceFull?: T[];
|
|
127
129
|
dataSourceTotalCount?: number;
|
|
128
130
|
maxHeight?: number;
|
|
131
|
+
skeletonProps?: Pick<TableSkeletonProps, 'headerHeight' | 'subheaderHeight' | 'rowHeight'>;
|
|
129
132
|
};
|
|
130
133
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableSkeletonProps } from './TableSkeleton.types';
|
|
3
|
-
export declare const TableSkeleton: ({ maxHeight, ...htmlAttributes }: TableSkeletonProps) => React.JSX.Element;
|
|
3
|
+
export declare const TableSkeleton: ({ maxHeight, headerHeight, subheaderHeight, rowHeight, ...htmlAttributes }: TableSkeletonProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["maxHeight"];
|
|
1
|
+
var _excluded = ["maxHeight", "headerHeight", "subheaderHeight", "rowHeight"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -10,6 +10,9 @@ import { DEFAULT_ROW_COUNT, TABLE_HEADER, GAP, ROW_HEIGHT, PADDING } from './con
|
|
|
10
10
|
import { TableSkeletonHeader, TableSkeletonSubheader, TableSkeletonBody } from './components';
|
|
11
11
|
export var TableSkeleton = function TableSkeleton(_ref) {
|
|
12
12
|
var maxHeight = _ref.maxHeight,
|
|
13
|
+
headerHeight = _ref.headerHeight,
|
|
14
|
+
subheaderHeight = _ref.subheaderHeight,
|
|
15
|
+
rowHeight = _ref.rowHeight,
|
|
13
16
|
htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
14
17
|
|
|
15
18
|
var rowCount = useMemo(function () {
|
|
@@ -20,7 +23,12 @@ export var TableSkeleton = function TableSkeleton(_ref) {
|
|
|
20
23
|
maxHeight: maxHeight
|
|
21
24
|
}, htmlAttributes, {
|
|
22
25
|
"data-testid": "ds-table-skeleton"
|
|
23
|
-
}), /*#__PURE__*/React.createElement(TableSkeletonHeader,
|
|
26
|
+
}), /*#__PURE__*/React.createElement(TableSkeletonHeader, {
|
|
27
|
+
headerHeight: headerHeight
|
|
28
|
+
}), /*#__PURE__*/React.createElement(TableSkeletonSubheader, {
|
|
29
|
+
subheaderHeight: subheaderHeight
|
|
30
|
+
}), /*#__PURE__*/React.createElement(TableSkeletonBody, {
|
|
31
|
+
rowHeight: rowHeight,
|
|
24
32
|
rows: rowCount
|
|
25
33
|
}));
|
|
26
34
|
};
|
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
export declare const TableSkeletonWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
3
3
|
maxHeight?: number | undefined;
|
|
4
4
|
}, never>;
|
|
5
|
-
export declare const TableSkeletonHeader: import("styled-components").StyledComponent<"div", any, {
|
|
5
|
+
export declare const TableSkeletonHeader: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
headerHeight?: number | undefined;
|
|
7
|
+
}, never>;
|
|
6
8
|
export declare const Skeleton: import("styled-components").StyledComponent<({ size, numberOfSkeletons, width, height, className }: import("@synerise/ds-skeleton").SkeletonProps) => import("react").JSX.Element, any, {}, never>;
|
|
7
9
|
export declare const SkeletonWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
8
10
|
width?: number | undefined;
|
|
9
11
|
}, never>;
|
|
10
|
-
export declare const TableSkeletonSubHeader: import("styled-components").StyledComponent<"div", any, {
|
|
12
|
+
export declare const TableSkeletonSubHeader: import("styled-components").StyledComponent<"div", any, {
|
|
13
|
+
subheaderHeight?: number | undefined;
|
|
14
|
+
}, never>;
|
|
11
15
|
export declare const TableSkeletonLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
16
|
export declare const TableSkeletonRight: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
17
|
export declare const TableSkeletonBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const TableSkeletonRow: import("styled-components").StyledComponent<"div", any, {
|
|
18
|
+
export declare const TableSkeletonRow: import("styled-components").StyledComponent<"div", any, {
|
|
19
|
+
rowHeight?: number | undefined;
|
|
20
|
+
}, never>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import DSSkeleton from '@synerise/ds-skeleton';
|
|
3
|
+
var HEADER_HEIGHT = 73;
|
|
4
|
+
var SUBHEADER_HEIGHT = 64;
|
|
5
|
+
var ROW_HEIGHT = 73;
|
|
3
6
|
var rowCss = css(["display:flex;flex-direction:row;justify-content:space-between;"]);
|
|
4
7
|
export var TableSkeletonWrapper = styled.div.withConfig({
|
|
5
8
|
displayName: "TableSkeletonstyles__TableSkeletonWrapper",
|
|
@@ -12,7 +15,9 @@ export var TableSkeletonWrapper = styled.div.withConfig({
|
|
|
12
15
|
export var TableSkeletonHeader = styled.div.withConfig({
|
|
13
16
|
displayName: "TableSkeletonstyles__TableSkeletonHeader",
|
|
14
17
|
componentId: "sc-9yqnm1-1"
|
|
15
|
-
})(["", " padding:18px;"], rowCss)
|
|
18
|
+
})(["", " padding:0 18px;height:", "px;"], rowCss, function (props) {
|
|
19
|
+
return props.headerHeight || HEADER_HEIGHT;
|
|
20
|
+
});
|
|
16
21
|
export var Skeleton = styled(DSSkeleton).withConfig({
|
|
17
22
|
displayName: "TableSkeletonstyles__Skeleton",
|
|
18
23
|
componentId: "sc-9yqnm1-2"
|
|
@@ -26,24 +31,28 @@ export var SkeletonWrapper = styled.div.withConfig({
|
|
|
26
31
|
export var TableSkeletonSubHeader = styled.div.withConfig({
|
|
27
32
|
displayName: "TableSkeletonstyles__TableSkeletonSubHeader",
|
|
28
33
|
componentId: "sc-9yqnm1-4"
|
|
29
|
-
})(["", " border-top:solid 1px ", ";border-bottom:solid 1px ", ";padding:
|
|
34
|
+
})(["", " border-top:solid 1px ", ";border-bottom:solid 1px ", ";padding:0 18px 0 84px;height:", "px;"], rowCss, function (props) {
|
|
30
35
|
return props.theme.palette['grey-200'];
|
|
31
36
|
}, function (props) {
|
|
32
37
|
return props.theme.palette['grey-200'];
|
|
38
|
+
}, function (props) {
|
|
39
|
+
return props.subheaderHeight || SUBHEADER_HEIGHT;
|
|
33
40
|
});
|
|
34
41
|
export var TableSkeletonLeft = styled.div.withConfig({
|
|
35
42
|
displayName: "TableSkeletonstyles__TableSkeletonLeft",
|
|
36
43
|
componentId: "sc-9yqnm1-5"
|
|
37
|
-
})(["display:flex;flex-direction:row;gap:50px;"]);
|
|
44
|
+
})(["display:flex;flex-direction:row;gap:50px;align-items:center;"]);
|
|
38
45
|
export var TableSkeletonRight = styled.div.withConfig({
|
|
39
46
|
displayName: "TableSkeletonstyles__TableSkeletonRight",
|
|
40
47
|
componentId: "sc-9yqnm1-6"
|
|
41
|
-
})(["display:flex;flex-direction:row;gap:50px;"]);
|
|
48
|
+
})(["display:flex;flex-direction:row;gap:50px;align-items:center;"]);
|
|
42
49
|
export var TableSkeletonBody = styled.div.withConfig({
|
|
43
50
|
displayName: "TableSkeletonstyles__TableSkeletonBody",
|
|
44
51
|
componentId: "sc-9yqnm1-7"
|
|
45
|
-
})(["display:flex;flex-direction:column;
|
|
52
|
+
})(["display:flex;flex-direction:column;padding:0 18px;"]);
|
|
46
53
|
export var TableSkeletonRow = styled.div.withConfig({
|
|
47
54
|
displayName: "TableSkeletonstyles__TableSkeletonRow",
|
|
48
55
|
componentId: "sc-9yqnm1-8"
|
|
49
|
-
})(["", ""], rowCss)
|
|
56
|
+
})(["", " height:", "px;"], rowCss, function (props) {
|
|
57
|
+
return props.rowHeight || ROW_HEIGHT;
|
|
58
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
type TableSkeletonBodyProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
rows: number;
|
|
4
|
+
rowHeight?: number;
|
|
4
5
|
};
|
|
5
|
-
export declare const TableSkeletonBody: ({ rows, ...htmlAttributes }: TableSkeletonBodyProps) => React.JSX.Element;
|
|
6
|
+
export declare const TableSkeletonBody: ({ rows, rowHeight, ...htmlAttributes }: TableSkeletonBodyProps) => React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["rows"];
|
|
1
|
+
var _excluded = ["rows", "rowHeight"];
|
|
2
2
|
|
|
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
|
|
|
@@ -11,12 +11,14 @@ import { SKELETON_BAR_TINY, SKELETON_BAR_WIDE } from '../constants';
|
|
|
11
11
|
export var TableSkeletonBody = function TableSkeletonBody(_ref) {
|
|
12
12
|
var _ref$rows = _ref.rows,
|
|
13
13
|
rows = _ref$rows === void 0 ? 10 : _ref$rows,
|
|
14
|
+
rowHeight = _ref.rowHeight,
|
|
14
15
|
htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
16
|
|
|
16
17
|
return /*#__PURE__*/React.createElement(S.TableSkeletonBody, htmlAttributes, Array.from({
|
|
17
18
|
length: rows
|
|
18
19
|
}, function (_, index) {
|
|
19
20
|
return /*#__PURE__*/React.createElement(S.TableSkeletonRow, {
|
|
21
|
+
rowHeight: rowHeight,
|
|
20
22
|
"data-testid": "ds-table-skeleton-row",
|
|
21
23
|
key: "ds-skeleton-row-" + index
|
|
22
24
|
}, /*#__PURE__*/React.createElement(S.TableSkeletonLeft, null, /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
export declare const TableSkeletonHeader: (props: HTMLAttributes<HTMLDivElement>
|
|
2
|
+
export declare const TableSkeletonHeader: (props: HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
headerHeight?: number;
|
|
4
|
+
}) => React.JSX.Element;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
export declare const TableSkeletonSubheader: (props: HTMLAttributes<HTMLDivElement>
|
|
2
|
+
export declare const TableSkeletonSubheader: (props: HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
subheaderHeight?: number;
|
|
4
|
+
}) => React.JSX.Element;
|
|
@@ -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;
|
|
@@ -36,6 +36,7 @@ declare const _default: <T extends object & RowType<T> & {
|
|
|
36
36
|
dataSourceFull?: T[] | undefined;
|
|
37
37
|
dataSourceTotalCount?: number | undefined;
|
|
38
38
|
maxHeight?: number | undefined;
|
|
39
|
+
skeletonProps?: Pick<import("../TableSkeleton/TableSkeleton.types").TableSkeletonProps, "headerHeight" | "subheaderHeight" | "rowHeight"> | undefined;
|
|
39
40
|
} & {
|
|
40
41
|
cellHeight: number;
|
|
41
42
|
infiniteScroll?: import("../InfiniteScroll/InfiniteLoaderItem.types").InfiniteScrollProps | 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.0",
|
|
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.0",
|
|
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.23",
|
|
57
|
+
"@synerise/ds-tags": "^0.10.8",
|
|
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": "ae3c38b44ca0f9071cd55f7b82c182a99b5710e8"
|
|
81
81
|
}
|