@synerise/ds-table 0.56.4 → 0.56.5
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 +8 -0
- package/README.md +2 -0
- package/dist/Table.d.ts +1 -1
- package/dist/Table.js +20 -13
- package/dist/Table.types.d.ts +1 -0
- package/dist/TableSkeleton/TableSkeleton.d.ts +3 -0
- package/dist/TableSkeleton/TableSkeleton.js +24 -0
- package/dist/TableSkeleton/TableSkeleton.styles.d.ts +12 -0
- package/dist/TableSkeleton/TableSkeleton.styles.js +47 -0
- package/dist/TableSkeleton/TableSkeleton.types.d.ts +4 -0
- package/dist/TableSkeleton/TableSkeleton.types.js +1 -0
- package/dist/TableSkeleton/components/TableSkeletonBar.d.ts +6 -0
- package/dist/TableSkeleton/components/TableSkeletonBar.js +19 -0
- package/dist/TableSkeleton/components/TableSkeletonBody.d.ts +6 -0
- package/dist/TableSkeleton/components/TableSkeletonBody.js +31 -0
- package/dist/TableSkeleton/components/TableSkeletonHeader.d.ts +2 -0
- package/dist/TableSkeleton/components/TableSkeletonHeader.js +15 -0
- package/dist/TableSkeleton/components/TableSkeletonRowRight.d.ts +2 -0
- package/dist/TableSkeleton/components/TableSkeletonRowRight.js +13 -0
- package/dist/TableSkeleton/components/TableSkeletonSubheader.d.ts +2 -0
- package/dist/TableSkeleton/components/TableSkeletonSubheader.js +10 -0
- package/dist/TableSkeleton/components/index.d.ts +5 -0
- package/dist/TableSkeleton/components/index.js +5 -0
- package/dist/TableSkeleton/constants.d.ts +8 -0
- package/dist/TableSkeleton/constants.js +8 -0
- package/dist/VirtualTable/VirtualTable.d.ts +1 -0
- package/package.json +24 -24
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.56.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.56.4...@synerise/ds-table@0.56.5) (2024-09-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.56.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.56.3...@synerise/ds-table@0.56.4) (2024-08-30)
|
|
7
15
|
|
|
8
16
|
|
package/README.md
CHANGED
|
@@ -60,6 +60,8 @@ Table UI Component
|
|
|
60
60
|
| getPopupContainer | the render container of dropdowns in table | (triggerNode) => HTMLElement | `() => TableHtmlElement` |
|
|
61
61
|
| renderSelectionTitle | Function to render a custom title in table header when some items are selected | ({selection: RowSelection, filters:Filter[] }) => React.ReactNode | - |
|
|
62
62
|
| rowStar | Configuration of row starring | RowStar | - |
|
|
63
|
+
| maxHeight | Defines the max height to which table skeleton (when loading) should be filled with rows. If undefined 10 skeleton rows will be rendered | number | - |
|
|
64
|
+
|
|
63
65
|
|
|
64
66
|
|
|
65
67
|
### VirtualTable
|
package/dist/Table.d.ts
CHANGED
package/dist/Table.js
CHANGED
|
@@ -6,7 +6,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6
6
|
|
|
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
|
-
import
|
|
9
|
+
import React, { useMemo } from 'react';
|
|
10
10
|
import '@synerise/ds-core/dist/js/style';
|
|
11
11
|
import "./style/index.css";
|
|
12
12
|
import Icon, { AngleLeftS, AngleRightS, SpinnerM } from '@synerise/ds-icon';
|
|
@@ -20,6 +20,7 @@ import DefaultTable from './DefaultTable/DefaultTable';
|
|
|
20
20
|
import GroupTable from './GroupTable/GroupTable';
|
|
21
21
|
import { useTableLocale, TableLocaleContext } from './utils/locale';
|
|
22
22
|
import { getChildrenColumnName } from './utils/getChildrenColumnName';
|
|
23
|
+
import { TableSkeleton } from './TableSkeleton/TableSkeleton';
|
|
23
24
|
export var SELECTION_ALL = 'SELECTION_ALL';
|
|
24
25
|
export var SELECTION_INVERT = 'SELECTION_INVERT';
|
|
25
26
|
var ITEM_RENDER_TYPE = {
|
|
@@ -52,7 +53,8 @@ function DSTable(props) {
|
|
|
52
53
|
renderSelectionTitle = props.renderSelectionTitle,
|
|
53
54
|
hideTitlePart = props.hideTitlePart,
|
|
54
55
|
disableColumnNamesLineBreak = props.disableColumnNamesLineBreak,
|
|
55
|
-
expandable = props.expandable
|
|
56
|
+
expandable = props.expandable,
|
|
57
|
+
maxHeight = props.maxHeight;
|
|
56
58
|
var tableLocale = useTableLocale(intl, locale);
|
|
57
59
|
|
|
58
60
|
var _useDataFormat = useDataFormat(),
|
|
@@ -126,13 +128,27 @@ function DSTable(props) {
|
|
|
126
128
|
}
|
|
127
129
|
}, pagination);
|
|
128
130
|
}, [pagination, formatValue, grouped, tableLocale, hideTitlePart]);
|
|
131
|
+
var defaultTableContent = useMemo(function () {
|
|
132
|
+
return loading && !(dataSource != null && dataSource.length) ? /*#__PURE__*/React.createElement(TableSkeleton, {
|
|
133
|
+
maxHeight: maxHeight
|
|
134
|
+
}) : /*#__PURE__*/React.createElement(DefaultTable, _extends({
|
|
135
|
+
scroll: {
|
|
136
|
+
x: 'auto'
|
|
137
|
+
},
|
|
138
|
+
tableLayout: "auto"
|
|
139
|
+
}, props, {
|
|
140
|
+
locale: tableLocale,
|
|
141
|
+
title: renderHeader,
|
|
142
|
+
pagination: dataSource != null && dataSource.length && pagination ? footerPagination : false
|
|
143
|
+
}));
|
|
144
|
+
}, [dataSource == null ? void 0 : dataSource.length, footerPagination, loading, pagination, props, renderHeader, maxHeight, tableLocale]);
|
|
129
145
|
return /*#__PURE__*/React.createElement(TableLocaleContext.Provider, {
|
|
130
146
|
value: tableLocale
|
|
131
147
|
}, /*#__PURE__*/React.createElement(S.TableWrapper, {
|
|
132
148
|
className: "ds-table ds-table-cell-size-" + cellSize + " " + (roundedHeader ? 'ds-table-rounded' : ''),
|
|
133
149
|
hideColumnNames: hideColumnNames,
|
|
134
150
|
disableColumnNamesLineBreak: disableColumnNamesLineBreak
|
|
135
|
-
}, loading && /*#__PURE__*/React.createElement(S.Spinner, {
|
|
151
|
+
}, !!(loading && dataSource != null && dataSource.length) && /*#__PURE__*/React.createElement(S.Spinner, {
|
|
136
152
|
className: "spinner"
|
|
137
153
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
138
154
|
component: /*#__PURE__*/React.createElement(SpinnerM, null),
|
|
@@ -144,16 +160,7 @@ function DSTable(props) {
|
|
|
144
160
|
locale: tableLocale,
|
|
145
161
|
title: renderHeader,
|
|
146
162
|
pagination: dataSource != null && dataSource.length && pagination ? footerPagination : false
|
|
147
|
-
})) :
|
|
148
|
-
scroll: {
|
|
149
|
-
x: 'auto'
|
|
150
|
-
},
|
|
151
|
-
tableLayout: "auto"
|
|
152
|
-
}, props, {
|
|
153
|
-
locale: tableLocale,
|
|
154
|
-
title: renderHeader,
|
|
155
|
-
pagination: dataSource != null && dataSource.length && pagination ? footerPagination : false
|
|
156
|
-
}))));
|
|
163
|
+
})) : defaultTableContent));
|
|
157
164
|
}
|
|
158
165
|
|
|
159
166
|
DSTable.SELECTION_ALL = SELECTION_ALL;
|
package/dist/Table.types.d.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var _excluded = ["maxHeight"];
|
|
2
|
+
|
|
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
|
+
|
|
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
|
+
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import * as S from './TableSkeleton.styles';
|
|
9
|
+
import { DEFAULT_ROW_COUNT, TABLE_HEADER, GAP, ROW_HEIGHT } from './constants';
|
|
10
|
+
import { TableSkeletonHeader, TableSkeletonSubheader, TableSkeletonBody } from './components';
|
|
11
|
+
export var TableSkeleton = function TableSkeleton(_ref) {
|
|
12
|
+
var maxHeight = _ref.maxHeight,
|
|
13
|
+
htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
14
|
+
|
|
15
|
+
var rowCount = useMemo(function () {
|
|
16
|
+
if (!maxHeight) return DEFAULT_ROW_COUNT;
|
|
17
|
+
return Math.ceil((maxHeight - TABLE_HEADER - GAP) / (ROW_HEIGHT + GAP));
|
|
18
|
+
}, [maxHeight]);
|
|
19
|
+
return /*#__PURE__*/React.createElement(S.TableSkeletonWrapper, _extends({}, htmlAttributes, {
|
|
20
|
+
"data-testid": "ds-table-skeleton"
|
|
21
|
+
}), /*#__PURE__*/React.createElement(TableSkeletonHeader, null), /*#__PURE__*/React.createElement(TableSkeletonSubheader, null), /*#__PURE__*/React.createElement(TableSkeletonBody, {
|
|
22
|
+
rows: rowCount
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const TableSkeletonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const TableSkeletonHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const Skeleton: import("styled-components").StyledComponent<({ size, numberOfSkeletons, width, height, className }: import("@synerise/ds-skeleton").SkeletonProps) => import("react").JSX.Element, any, {}, never>;
|
|
5
|
+
export declare const SkeletonWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
width?: number | undefined;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const TableSkeletonSubHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const TableSkeletonLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const TableSkeletonRight: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const TableSkeletonBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const TableSkeletonRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import DSSkeleton from '@synerise/ds-skeleton';
|
|
3
|
+
var rowCss = css(["display:flex;flex-direction:row;justify-content:space-between;"]);
|
|
4
|
+
export var TableSkeletonWrapper = styled.div.withConfig({
|
|
5
|
+
displayName: "TableSkeletonstyles__TableSkeletonWrapper",
|
|
6
|
+
componentId: "sc-9yqnm1-0"
|
|
7
|
+
})(["background:", ";z-index:10;"], function (props) {
|
|
8
|
+
return props.theme.palette.white;
|
|
9
|
+
});
|
|
10
|
+
export var TableSkeletonHeader = styled.div.withConfig({
|
|
11
|
+
displayName: "TableSkeletonstyles__TableSkeletonHeader",
|
|
12
|
+
componentId: "sc-9yqnm1-1"
|
|
13
|
+
})(["", " padding:18px;"], rowCss);
|
|
14
|
+
export var Skeleton = styled(DSSkeleton).withConfig({
|
|
15
|
+
displayName: "TableSkeletonstyles__Skeleton",
|
|
16
|
+
componentId: "sc-9yqnm1-2"
|
|
17
|
+
})(["padding:12px 0;"]);
|
|
18
|
+
export var SkeletonWrapper = styled.div.withConfig({
|
|
19
|
+
displayName: "TableSkeletonstyles__SkeletonWrapper",
|
|
20
|
+
componentId: "sc-9yqnm1-3"
|
|
21
|
+
})(["width:", "px;"], function (props) {
|
|
22
|
+
return props.width;
|
|
23
|
+
});
|
|
24
|
+
export var TableSkeletonSubHeader = styled.div.withConfig({
|
|
25
|
+
displayName: "TableSkeletonstyles__TableSkeletonSubHeader",
|
|
26
|
+
componentId: "sc-9yqnm1-4"
|
|
27
|
+
})(["", " border-top:solid 1px ", ";border-bottom:solid 1px ", ";padding:18px 18px 18px 84px;"], rowCss, function (props) {
|
|
28
|
+
return props.theme.palette['grey-200'];
|
|
29
|
+
}, function (props) {
|
|
30
|
+
return props.theme.palette['grey-200'];
|
|
31
|
+
});
|
|
32
|
+
export var TableSkeletonLeft = styled.div.withConfig({
|
|
33
|
+
displayName: "TableSkeletonstyles__TableSkeletonLeft",
|
|
34
|
+
componentId: "sc-9yqnm1-5"
|
|
35
|
+
})(["display:flex;flex-direction:row;gap:50px;"]);
|
|
36
|
+
export var TableSkeletonRight = styled.div.withConfig({
|
|
37
|
+
displayName: "TableSkeletonstyles__TableSkeletonRight",
|
|
38
|
+
componentId: "sc-9yqnm1-6"
|
|
39
|
+
})(["display:flex;flex-direction:row;gap:50px;"]);
|
|
40
|
+
export var TableSkeletonBody = styled.div.withConfig({
|
|
41
|
+
displayName: "TableSkeletonstyles__TableSkeletonBody",
|
|
42
|
+
componentId: "sc-9yqnm1-7"
|
|
43
|
+
})(["display:flex;flex-direction:column;gap:36px;padding:18px;"]);
|
|
44
|
+
export var TableSkeletonRow = styled.div.withConfig({
|
|
45
|
+
displayName: "TableSkeletonstyles__TableSkeletonRow",
|
|
46
|
+
componentId: "sc-9yqnm1-8"
|
|
47
|
+
})(["", ""], rowCss);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var _excluded = ["width"];
|
|
2
|
+
|
|
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
|
+
|
|
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
|
+
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import * as S from '../TableSkeleton.styles';
|
|
9
|
+
export var TableSkeletonBar = function TableSkeletonBar(_ref) {
|
|
10
|
+
var width = _ref.width,
|
|
11
|
+
htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
|
+
|
|
13
|
+
return /*#__PURE__*/React.createElement(S.SkeletonWrapper, _extends({}, htmlAttributes, {
|
|
14
|
+
width: width
|
|
15
|
+
}), /*#__PURE__*/React.createElement(S.Skeleton, {
|
|
16
|
+
size: "M",
|
|
17
|
+
numberOfSkeletons: 1
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var _excluded = ["rows"];
|
|
2
|
+
|
|
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
|
+
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { SkeletonAvatar } from '@synerise/ds-skeleton';
|
|
7
|
+
import * as S from '../TableSkeleton.styles';
|
|
8
|
+
import { TableSkeletonBar } from './TableSkeletonBar';
|
|
9
|
+
import { TableSkeletonRowRight } from './TableSkeletonRowRight';
|
|
10
|
+
import { SKELETON_BAR_TINY, SKELETON_BAR_WIDE } from '../constants';
|
|
11
|
+
export var TableSkeletonBody = function TableSkeletonBody(_ref) {
|
|
12
|
+
var _ref$rows = _ref.rows,
|
|
13
|
+
rows = _ref$rows === void 0 ? 10 : _ref$rows,
|
|
14
|
+
htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
|
+
|
|
16
|
+
return /*#__PURE__*/React.createElement(S.TableSkeletonBody, htmlAttributes, Array.from({
|
|
17
|
+
length: rows
|
|
18
|
+
}, function (_, index) {
|
|
19
|
+
return /*#__PURE__*/React.createElement(S.TableSkeletonRow, {
|
|
20
|
+
"data-testid": "ds-table-skeleton-row",
|
|
21
|
+
key: "ds-skeleton-row-" + index
|
|
22
|
+
}, /*#__PURE__*/React.createElement(S.TableSkeletonLeft, null, /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
23
|
+
width: SKELETON_BAR_TINY
|
|
24
|
+
}), /*#__PURE__*/React.createElement(SkeletonAvatar, {
|
|
25
|
+
shape: "circle",
|
|
26
|
+
size: "M"
|
|
27
|
+
}), /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
28
|
+
width: SKELETON_BAR_WIDE
|
|
29
|
+
})), /*#__PURE__*/React.createElement(S.TableSkeletonRight, null, /*#__PURE__*/React.createElement(TableSkeletonRowRight, null)));
|
|
30
|
+
}));
|
|
31
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SKELETON_BAR_STANDARD } from '../constants';
|
|
3
|
+
import * as S from '../TableSkeleton.styles';
|
|
4
|
+
import { TableSkeletonBar } from './TableSkeletonBar';
|
|
5
|
+
export var TableSkeletonHeader = function TableSkeletonHeader(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(S.TableSkeletonHeader, props, /*#__PURE__*/React.createElement(S.TableSkeletonLeft, null, /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
7
|
+
width: SKELETON_BAR_STANDARD
|
|
8
|
+
})), /*#__PURE__*/React.createElement(S.TableSkeletonRight, null, /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
9
|
+
width: SKELETON_BAR_STANDARD
|
|
10
|
+
}), /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
11
|
+
width: SKELETON_BAR_STANDARD
|
|
12
|
+
}), /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
13
|
+
width: SKELETON_BAR_STANDARD
|
|
14
|
+
})));
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as S from '../TableSkeleton.styles';
|
|
3
|
+
import { TableSkeletonBar } from './TableSkeletonBar';
|
|
4
|
+
import { SKELETON_BAR_STANDARD, SKELETON_BAR_EXTRA_WIDE } from '../constants';
|
|
5
|
+
export var TableSkeletonRowRight = function TableSkeletonRowRight(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(S.TableSkeletonRight, props, /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
7
|
+
width: SKELETON_BAR_STANDARD
|
|
8
|
+
}), /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
9
|
+
width: SKELETON_BAR_EXTRA_WIDE
|
|
10
|
+
}), /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
11
|
+
width: SKELETON_BAR_STANDARD
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as S from '../TableSkeleton.styles';
|
|
3
|
+
import { TableSkeletonBar } from './TableSkeletonBar';
|
|
4
|
+
import { TableSkeletonRowRight } from './TableSkeletonRowRight';
|
|
5
|
+
import { SKELETON_BAR_WIDE } from '../constants';
|
|
6
|
+
export var TableSkeletonSubheader = function TableSkeletonSubheader(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement(S.TableSkeletonSubHeader, props, /*#__PURE__*/React.createElement(S.TableSkeletonLeft, null, /*#__PURE__*/React.createElement(TableSkeletonBar, {
|
|
8
|
+
width: SKELETON_BAR_WIDE
|
|
9
|
+
})), /*#__PURE__*/React.createElement(S.TableSkeletonRight, null, /*#__PURE__*/React.createElement(TableSkeletonRowRight, null)));
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const DEFAULT_ROW_COUNT = 10;
|
|
2
|
+
export declare const ROW_HEIGHT = 40;
|
|
3
|
+
export declare const GAP = 36;
|
|
4
|
+
export declare const TABLE_HEADER: number;
|
|
5
|
+
export declare const SKELETON_BAR_TINY = 16;
|
|
6
|
+
export declare const SKELETON_BAR_STANDARD = 72;
|
|
7
|
+
export declare const SKELETON_BAR_WIDE = 100;
|
|
8
|
+
export declare const SKELETON_BAR_EXTRA_WIDE = 164;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var DEFAULT_ROW_COUNT = 10;
|
|
2
|
+
export var ROW_HEIGHT = 40;
|
|
3
|
+
export var GAP = 36;
|
|
4
|
+
export var TABLE_HEADER = 76 + 78;
|
|
5
|
+
export var SKELETON_BAR_TINY = 16;
|
|
6
|
+
export var SKELETON_BAR_STANDARD = 72;
|
|
7
|
+
export var SKELETON_BAR_WIDE = 100;
|
|
8
|
+
export var SKELETON_BAR_EXTRA_WIDE = 164;
|
|
@@ -35,6 +35,7 @@ declare const _default: <T extends object & RowType<T> & {
|
|
|
35
35
|
onSort?: import("../Table.types").OnSortFn | undefined;
|
|
36
36
|
dataSourceFull?: T[] | undefined;
|
|
37
37
|
dataSourceTotalCount?: number | undefined;
|
|
38
|
+
maxHeight?: number | undefined;
|
|
38
39
|
} & {
|
|
39
40
|
cellHeight: number;
|
|
40
41
|
infiniteScroll?: import("../InfiniteScroll/InfiniteLoaderItem.types").InfiniteScrollProps | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-table",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.5",
|
|
4
4
|
"description": "Table UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -33,31 +33,31 @@
|
|
|
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.11.
|
|
36
|
+
"@synerise/ds-alert": "^0.8.26",
|
|
37
|
+
"@synerise/ds-badge": "^0.8.7",
|
|
38
|
+
"@synerise/ds-button": "^0.21.8",
|
|
39
|
+
"@synerise/ds-button-group": "^0.7.12",
|
|
40
|
+
"@synerise/ds-checkbox": "^0.12.5",
|
|
41
|
+
"@synerise/ds-column-manager": "^0.11.70",
|
|
42
42
|
"@synerise/ds-data-format": "^0.5.2",
|
|
43
|
-
"@synerise/ds-dropdown": "^0.18.
|
|
43
|
+
"@synerise/ds-dropdown": "^0.18.12",
|
|
44
44
|
"@synerise/ds-flag": "^0.5.1",
|
|
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.
|
|
45
|
+
"@synerise/ds-icon": "^0.65.3",
|
|
46
|
+
"@synerise/ds-input": "^0.24.2",
|
|
47
|
+
"@synerise/ds-loader": "^0.3.12",
|
|
48
|
+
"@synerise/ds-menu": "^0.19.12",
|
|
49
|
+
"@synerise/ds-modal": "^0.17.39",
|
|
50
|
+
"@synerise/ds-pagination": "^0.7.60",
|
|
51
|
+
"@synerise/ds-result": "^0.7.2",
|
|
52
|
+
"@synerise/ds-scrollbar": "^0.11.8",
|
|
53
|
+
"@synerise/ds-search": "^0.9.8",
|
|
54
|
+
"@synerise/ds-select": "^0.16.14",
|
|
55
|
+
"@synerise/ds-skeleton": "^0.6.6",
|
|
56
|
+
"@synerise/ds-status": "^0.6.20",
|
|
57
|
+
"@synerise/ds-tags": "^0.10.5",
|
|
58
|
+
"@synerise/ds-tooltip": "^0.14.38",
|
|
59
59
|
"@synerise/ds-typography": "^0.15.1",
|
|
60
|
-
"@synerise/ds-utils": "^0.
|
|
60
|
+
"@synerise/ds-utils": "^0.29.0",
|
|
61
61
|
"@types/react-window": "^1.8.5",
|
|
62
62
|
"classnames": "2.3.2",
|
|
63
63
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"react-dom": "^16.14.0",
|
|
78
78
|
"styled-components": "5.0.1"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "6fe94d574f25c5267c7593dec9399527f441b23a"
|
|
81
81
|
}
|