@synerise/ds-table 1.9.10 → 1.9.12
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 +9 -10
- package/dist/Cell/Action/ActionCell.d.ts +2 -2
- package/dist/Cell/Action/ActionCell.js +15 -18
- package/dist/Cell/Action/ActionCell.styles.d.ts +2 -2
- package/dist/Cell/Action/ActionCell.styles.js +10 -11
- package/dist/Cell/Action/ActionCell.types.d.ts +2 -2
- package/dist/Cell/Action/ActionCell.types.js +1 -1
- package/dist/Cell/AvatarLabel/AvatarLabel.d.ts +2 -2
- package/dist/Cell/AvatarLabel/AvatarLabel.js +32 -43
- package/dist/Cell/AvatarLabel/AvatarLabel.styles.d.ts +13 -13
- package/dist/Cell/AvatarLabel/AvatarLabel.styles.js +27 -28
- package/dist/Cell/AvatarLabel/AvatarLabel.types.d.ts +2 -2
- package/dist/Cell/AvatarLabel/AvatarLabel.types.js +1 -1
- package/dist/Cell/Copyable/Copyable.styles.d.ts +2 -2
- package/dist/Cell/Copyable/Copyable.styles.js +9 -15
- package/dist/Cell/Copyable/Copyable.types.d.ts +1 -1
- package/dist/Cell/Copyable/Copyable.types.js +1 -1
- package/dist/Cell/Copyable/CopyableCell.d.ts +2 -2
- package/dist/Cell/Copyable/CopyableCell.js +23 -27
- package/dist/Cell/Editable/EditableCell.d.ts +2 -2
- package/dist/Cell/Editable/EditableCell.js +26 -39
- package/dist/Cell/Editable/EditableCell.styles.d.ts +2 -2
- package/dist/Cell/Editable/EditableCell.styles.js +9 -7
- package/dist/Cell/Editable/EditableCell.types.d.ts +1 -1
- package/dist/Cell/Editable/EditableCell.types.js +1 -1
- package/dist/Cell/FlagLabel/FlagLabelCell.d.ts +2 -2
- package/dist/Cell/FlagLabel/FlagLabelCell.js +15 -14
- package/dist/Cell/FlagLabel/FlagLabelCell.styles.d.ts +1 -1
- package/dist/Cell/FlagLabel/FlagLabelCell.styles.js +6 -3
- package/dist/Cell/FlagLabel/FlagLabelCell.types.d.ts +2 -2
- package/dist/Cell/FlagLabel/FlagLabelCell.types.js +1 -1
- package/dist/Cell/IconLabel/IconLabel.d.ts +2 -2
- package/dist/Cell/IconLabel/IconLabel.js +14 -15
- package/dist/Cell/IconLabel/IconLabel.styles.d.ts +1 -1
- package/dist/Cell/IconLabel/IconLabel.styles.js +7 -6
- package/dist/Cell/IconLabel/IconLabel.types.d.ts +3 -3
- package/dist/Cell/IconLabel/IconLabel.types.js +1 -1
- package/dist/Cell/IconTooltipCell/IconTooltipCell.d.ts +2 -2
- package/dist/Cell/IconTooltipCell/IconTooltipCell.js +18 -23
- package/dist/Cell/IconTooltipCell/IconTooltipCell.styles.d.ts +2 -2
- package/dist/Cell/IconTooltipCell/IconTooltipCell.styles.js +9 -11
- package/dist/Cell/IconTooltipCell/IconTooltipCell.types.d.ts +4 -4
- package/dist/Cell/IconTooltipCell/IconTooltipCell.types.js +1 -1
- package/dist/Cell/InputNumber/InputNumberCell.d.ts +2 -2
- package/dist/Cell/InputNumber/InputNumberCell.js +10 -17
- package/dist/Cell/InputNumber/InputNumberCell.styles.d.ts +1 -1
- package/dist/Cell/InputNumber/InputNumberCell.styles.js +9 -5
- package/dist/Cell/InputNumber/InputNumberCell.types.d.ts +2 -2
- package/dist/Cell/InputNumber/InputNumberCell.types.js +1 -1
- package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.d.ts +3 -3
- package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.js +29 -40
- package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.styles.d.ts +3 -3
- package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.styles.js +11 -8
- package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.types.d.ts +2 -2
- package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.types.js +1 -1
- package/dist/Cell/LabelsWithShowMore/Modal/Modal.d.ts +2 -2
- package/dist/Cell/LabelsWithShowMore/Modal/Modal.js +35 -64
- package/dist/Cell/LabelsWithShowMore/Modal/Modal.types.d.ts +3 -3
- package/dist/Cell/LabelsWithShowMore/Modal/Modal.types.js +1 -1
- package/dist/Cell/Star/StarCell.d.ts +45 -45
- package/dist/Cell/Star/StarCell.js +25 -31
- package/dist/Cell/Star/StarCell.styles.d.ts +2 -2
- package/dist/Cell/Star/StarCell.styles.js +11 -9
- package/dist/Cell/Star/StarCell.types.d.ts +2 -2
- package/dist/Cell/Star/StarCell.types.js +1 -1
- package/dist/Cell/StatusLabel/StatusLabel.d.ts +2 -2
- package/dist/Cell/StatusLabel/StatusLabel.js +17 -19
- package/dist/Cell/StatusLabel/StatusLabel.styles.d.ts +2 -2
- package/dist/Cell/StatusLabel/StatusLabel.styles.js +9 -9
- package/dist/Cell/StatusLabel/StatusLabel.types.d.ts +3 -3
- package/dist/Cell/StatusLabel/StatusLabel.types.js +1 -1
- package/dist/Cell/TagIcon/TagIcon.d.ts +2 -2
- package/dist/Cell/TagIcon/TagIcon.js +9 -13
- package/dist/Cell/TagIcon/TagIcon.styles.d.ts +1 -1
- package/dist/Cell/TagIcon/TagIcon.styles.js +7 -6
- package/dist/Cell/TagIcon/TagIcon.types.d.ts +2 -2
- package/dist/Cell/TagIcon/TagIcon.types.js +1 -1
- package/dist/Cell/TagsGroup/TagsGroup.d.ts +2 -2
- package/dist/Cell/TagsGroup/TagsGroup.js +22 -39
- package/dist/Cell/TagsGroup/TagsGroup.styles.d.ts +2 -2
- package/dist/Cell/TagsGroup/TagsGroup.styles.js +30 -9
- package/dist/Cell/TagsGroup/TagsGroup.types.d.ts +2 -2
- package/dist/Cell/TagsGroup/TagsGroup.types.js +1 -1
- package/dist/Cell/index.d.ts +12 -12
- package/dist/Cell/index.js +28 -14
- package/dist/ColumnSortMenu/SortIcons.d.ts +2 -2
- package/dist/ColumnSortMenu/SortIcons.js +26 -38
- package/dist/ColumnSortMenu/SortRender.styles.d.ts +34 -34
- package/dist/ColumnSortMenu/SortRender.styles.js +13 -10
- package/dist/ColumnSortMenu/SortRenderer.d.ts +2 -2
- package/dist/ColumnSortMenu/SortRenderer.js +74 -108
- package/dist/ColumnSortMenu/TitleWithSort.d.ts +2 -2
- package/dist/ColumnSortMenu/TitleWithSort.js +19 -16
- package/dist/ColumnSortMenu/columnWithSortButtons.d.ts +1 -2
- package/dist/ColumnSortMenu/columnWithSortButtons.js +26 -43
- package/dist/ColumnSortMenu/groupedColumnsSort.d.ts +3 -3
- package/dist/ColumnSortMenu/groupedColumnsSort.js +33 -28
- package/dist/ColumnSortMenu/replaceSortButtons.d.ts +1 -1
- package/dist/ColumnSortMenu/replaceSortButtons.js +14 -15
- package/dist/ColumnSortMenu/useSortState.d.ts +1 -1
- package/dist/ColumnSortMenu/useSortState.js +95 -93
- package/dist/DefaultTable/DefaultTable.d.ts +2 -2
- package/dist/DefaultTable/DefaultTable.js +147 -148
- package/dist/FilterTrigger/FilterTrigger.d.ts +2 -2
- package/dist/FilterTrigger/FilterTrigger.js +42 -67
- package/dist/FilterTrigger/FilterTrigger.styles.d.ts +53 -53
- package/dist/FilterTrigger/FilterTrigger.styles.js +19 -32
- package/dist/FilterTrigger/FilterTrigger.types.d.ts +1 -1
- package/dist/FilterTrigger/FilterTrigger.types.js +1 -1
- package/dist/GroupTable/GroupTable.d.ts +3 -4
- package/dist/GroupTable/GroupTable.js +97 -118
- package/dist/GroupTable/GroupTable.styles.d.ts +25 -25
- package/dist/GroupTable/GroupTable.styles.js +40 -37
- package/dist/GroupTable/GroupTable.types.d.ts +1 -1
- package/dist/GroupTable/GroupTable.types.js +9 -6
- package/dist/GroupTable/GroupTableBody/GroupTableBody.d.ts +1 -1
- package/dist/GroupTable/GroupTableBody/GroupTableBody.js +83 -107
- package/dist/GroupTable/GroupTableBody/GroupTableBody.types.d.ts +3 -3
- package/dist/GroupTable/GroupTableBody/GroupTableBody.types.js +1 -1
- package/dist/GroupTable/GroupTableHeader/GroupTableHeader.d.ts +1 -1
- package/dist/GroupTable/GroupTableHeader/GroupTableHeader.js +25 -28
- package/dist/GroupTable/GroupTableHeader/GroupTableHeader.types.js +1 -1
- package/dist/InfiniteScroll/BackToTopButton.d.ts +2 -2
- package/dist/InfiniteScroll/BackToTopButton.js +7 -15
- package/dist/InfiniteScroll/BackToTopButton.styles.d.ts +34 -34
- package/dist/InfiniteScroll/BackToTopButton.styles.js +11 -9
- package/dist/InfiniteScroll/ErrorItem.d.ts +1 -1
- package/dist/InfiniteScroll/ErrorItem.js +19 -23
- package/dist/InfiniteScroll/ErrorItem.styles.d.ts +1 -1
- package/dist/InfiniteScroll/ErrorItem.styles.js +6 -3
- package/dist/InfiniteScroll/InfiniteLoaderItem.d.ts +2 -2
- package/dist/InfiniteScroll/InfiniteLoaderItem.js +33 -28
- package/dist/InfiniteScroll/InfiniteLoaderItem.styles.d.ts +1 -1
- package/dist/InfiniteScroll/InfiniteLoaderItem.styles.js +7 -4
- package/dist/InfiniteScroll/InfiniteLoaderItem.types.d.ts +1 -1
- package/dist/InfiniteScroll/InfiniteLoaderItem.types.js +1 -1
- package/dist/InfiniteScroll/LoadingItem.d.ts +1 -1
- package/dist/InfiniteScroll/LoadingItem.js +10 -10
- package/dist/InfiniteScroll/NoMoreItem.d.ts +1 -1
- package/dist/InfiniteScroll/NoMoreItem.js +10 -10
- package/dist/InfiniteScroll/OuterListElement.d.ts +1 -1
- package/dist/InfiniteScroll/OuterListElement.js +45 -58
- package/dist/InfiniteScroll/constants.js +4 -1
- package/dist/InfiniteScroll/utils.d.ts +1 -1
- package/dist/InfiniteScroll/utils.js +15 -12
- package/dist/ItemsMenu/ItemsMenu.d.ts +2 -2
- package/dist/ItemsMenu/ItemsMenu.js +7 -6
- package/dist/ItemsMenu/ItemsMenu.styles.d.ts +1 -1
- package/dist/ItemsMenu/ItemsMenu.styles.js +6 -3
- package/dist/ItemsMenu/ItemsMenu.types.d.ts +1 -1
- package/dist/ItemsMenu/ItemsMenu.types.js +1 -1
- package/dist/RowSelection/RowSelectionColumn.d.ts +3 -3
- package/dist/RowSelection/RowSelectionColumn.js +77 -81
- package/dist/RowSelection/RowSelectionColumn.types.d.ts +3 -3
- package/dist/RowSelection/RowSelectionColumn.types.js +1 -1
- package/dist/RowSelection/index.js +4 -1
- package/dist/Table.d.ts +2 -4
- package/dist/Table.js +94 -129
- package/dist/Table.styles.d.ts +23 -23
- package/dist/Table.styles.js +86 -110
- package/dist/Table.types.d.ts +7 -7
- package/dist/Table.types.js +1 -1
- package/dist/TableHeader/TableHeader.d.ts +2 -2
- package/dist/TableHeader/TableHeader.js +91 -129
- package/dist/TableHeader/TableHeader.types.d.ts +2 -2
- package/dist/TableHeader/TableHeader.types.js +1 -1
- package/dist/TableHeader/TableLimit/TableLimit.d.ts +2 -2
- package/dist/TableHeader/TableLimit/TableLimit.js +44 -36
- package/dist/TableHeader/TableLimit/TableLimit.styles.d.ts +4 -4
- package/dist/TableHeader/TableLimit/TableLimit.styles.js +15 -13
- package/dist/TableHeader/TableLimit/TableLimit.types.d.ts +3 -3
- package/dist/TableHeader/TableLimit/TableLimit.types.js +1 -1
- package/dist/TableHeader/TableLimit/index.js +4 -2
- package/dist/TableHeader/TableSelection.d.ts +2 -2
- package/dist/TableHeader/TableSelection.js +163 -180
- package/dist/TableHeader/TableSelection.types.d.ts +1 -1
- package/dist/TableHeader/TableSelection.types.js +1 -1
- package/dist/TreeTable/TreeTable.d.ts +2 -3
- package/dist/TreeTable/TreeTable.js +51 -78
- package/dist/TreeTable/TreeTable.styles.d.ts +5 -5
- package/dist/TreeTable/TreeTable.styles.js +21 -20
- package/dist/VirtualTable/VirtualTable.d.ts +3 -3
- package/dist/VirtualTable/VirtualTable.js +342 -411
- package/dist/VirtualTable/VirtualTable.styles.d.ts +8 -8
- package/dist/VirtualTable/VirtualTable.styles.js +30 -40
- package/dist/VirtualTable/VirtualTable.types.d.ts +4 -4
- package/dist/VirtualTable/VirtualTable.types.js +1 -1
- package/dist/VirtualTable/VirtualTableRow.d.ts +4 -4
- package/dist/VirtualTable/VirtualTableRow.js +103 -111
- package/dist/VirtualTable/constants.js +8 -3
- package/dist/assets/style/index-tn0RQdqM.css +0 -0
- package/dist/constants/Table.constants.js +11 -6
- package/dist/constants/TableSkeleton.constants.d.ts +1 -1
- package/dist/constants/TableSkeleton.constants.js +48 -100
- package/dist/hooks/useBulkSelection/index.js +4 -1
- package/dist/hooks/useBulkSelection/useBulkSelection.d.ts +1 -1
- package/dist/hooks/useBulkSelection/useBulkSelection.js +55 -40
- package/dist/hooks/useRowKey/index.js +4 -1
- package/dist/hooks/useRowKey/useRowKey.js +11 -11
- package/dist/hooks/useRowStar/index.js +4 -2
- package/dist/hooks/useRowStar/useRowStar.d.ts +1 -1
- package/dist/hooks/useRowStar/useRowStar.js +54 -62
- package/dist/hooks/useRowStar/useRowStar.types.d.ts +2 -2
- package/dist/hooks/useRowStar/useRowStar.types.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +18 -9
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/dist/utils/calculateColumnWidths.d.ts +1 -1
- package/dist/utils/calculateColumnWidths.js +17 -16
- package/dist/utils/calculatePixels.js +11 -12
- package/dist/utils/columnWithCellTooltip.d.ts +1 -1
- package/dist/utils/columnWithCellTooltip.js +18 -15
- package/dist/utils/getChildrenColumnName.js +6 -3
- package/dist/utils/getRecordSelectionStatus.d.ts +1 -1
- package/dist/utils/getRecordSelectionStatus.js +11 -7
- package/dist/utils/getSkeletonProps.d.ts +1 -1
- package/dist/utils/getSkeletonProps.js +26 -36
- package/dist/utils/getValueFromPath.js +9 -6
- package/dist/utils/index.js +23 -9
- package/dist/utils/isGrouped.d.ts +1 -1
- package/dist/utils/isGrouped.js +6 -3
- package/dist/utils/isRecordSelectable.d.ts +1 -1
- package/dist/utils/isRecordSelectable.js +10 -6
- package/dist/utils/locale.d.ts +3 -3
- package/dist/utils/locale.js +115 -111
- package/package.json +31 -31
- package/dist/Cell/TagsGroup/TagsGroup.spec.d.ts +0 -1
- package/dist/ColumnSortMenu/__spec__/groupedColumnsSort.spec.d.ts +0 -1
- package/dist/VirtualTable/VirtualTable.spec.d.ts +0 -1
- package/dist/utils/__specs__/getValueFromPath.spec.d.ts +0 -1
|
@@ -5,25 +5,25 @@ type ColWrapperProps = {
|
|
|
5
5
|
right?: number;
|
|
6
6
|
left?: number;
|
|
7
7
|
};
|
|
8
|
-
export declare const RowWrapper: import(
|
|
8
|
+
export declare const RowWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
9
9
|
onRowClickAvailable?: boolean;
|
|
10
10
|
}, never>;
|
|
11
|
-
export declare const InnerListElement: import(
|
|
12
|
-
export declare const VirtualListSpace: import(
|
|
13
|
-
export declare const VirtualListWrapper: import(
|
|
11
|
+
export declare const InnerListElement: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const VirtualListSpace: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const VirtualListWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
14
14
|
isSticky: boolean;
|
|
15
15
|
listHeight: number;
|
|
16
16
|
listWidth: number;
|
|
17
17
|
}, never>;
|
|
18
|
-
export declare const StickyScrollbarWrapper: import(
|
|
18
|
+
export declare const StickyScrollbarWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
19
19
|
scrollOffset: number;
|
|
20
20
|
isStuck: boolean;
|
|
21
21
|
}, never>;
|
|
22
|
-
export declare const StickyScrollbarContent: import(
|
|
22
|
+
export declare const StickyScrollbarContent: import('styled-components').StyledComponent<"div", any, {
|
|
23
23
|
scrollWidth: number;
|
|
24
24
|
}, never>;
|
|
25
|
-
export declare const ColWrapper: import(
|
|
26
|
-
export declare const VirtualTableWrapper: import(
|
|
25
|
+
export declare const ColWrapper: import('styled-components').StyledComponent<"div", any, ColWrapperProps, never>;
|
|
26
|
+
export declare const VirtualTableWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
27
27
|
isSticky: boolean;
|
|
28
28
|
titleBarHeight: number;
|
|
29
29
|
titleBarTop: number;
|
|
@@ -1,60 +1,50 @@
|
|
|
1
|
-
import styled, { css } from
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
const numberToPixels = (num) => `${num}px`;
|
|
3
|
+
const getColumnWidth = (props) => {
|
|
4
|
+
return props.width ? numberToPixels(props.width) : "initial";
|
|
4
5
|
};
|
|
5
|
-
|
|
6
|
-
return props.width ? numberToPixels(props.width) : 'initial';
|
|
7
|
-
};
|
|
8
|
-
export var RowWrapper = styled.div.withConfig({
|
|
6
|
+
const RowWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
9
7
|
displayName: "VirtualTablestyles__RowWrapper",
|
|
10
8
|
componentId: "sc-aehkhc-0"
|
|
11
|
-
})(["display:inline-table;cursor:", ";"],
|
|
12
|
-
|
|
13
|
-
});
|
|
14
|
-
export var InnerListElement = styled.div.withConfig({
|
|
9
|
+
})(["display:inline-table;cursor:", ";"], (props) => props.onRowClickAvailable ? "pointer" : "default");
|
|
10
|
+
const InnerListElement = /* @__PURE__ */ styled.div.withConfig({
|
|
15
11
|
displayName: "VirtualTablestyles__InnerListElement",
|
|
16
12
|
componentId: "sc-aehkhc-1"
|
|
17
|
-
})(["background:", ";"],
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
export var VirtualListSpace = styled.div.withConfig({
|
|
13
|
+
})(["background:", ";"], (props) => props.theme.palette.white);
|
|
14
|
+
const VirtualListSpace = /* @__PURE__ */ styled.div.withConfig({
|
|
21
15
|
displayName: "VirtualTablestyles__VirtualListSpace",
|
|
22
16
|
componentId: "sc-aehkhc-2"
|
|
23
17
|
})([""]);
|
|
24
|
-
|
|
18
|
+
const VirtualListWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
25
19
|
displayName: "VirtualTablestyles__VirtualListWrapper",
|
|
26
20
|
componentId: "sc-aehkhc-3"
|
|
27
|
-
})(["", " overscroll-behavior-x:contain;"],
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
export var StickyScrollbarWrapper = styled.div.withConfig({
|
|
21
|
+
})(["", " overscroll-behavior-x:contain;"], (props) => props.isSticky && css(["width:", ";overflow:overlay hidden;scrollbar-color:transparent;scrollbar-width:none;::-webkit-scrollbar-thumb{background-color:transparent;}::-webkit-scrollbar{display:none;}:after{content:'';width:10px;height:", ";display:block;}"], numberToPixels(props.listWidth), numberToPixels(props.listHeight)));
|
|
22
|
+
const StickyScrollbarWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
31
23
|
displayName: "VirtualTablestyles__StickyScrollbarWrapper",
|
|
32
24
|
componentId: "sc-aehkhc-4"
|
|
33
|
-
})(["position:sticky;bottom:10px;z-index:", ";transform:translate(5px,", ");height:10px;margin-bottom:-10px;"],
|
|
34
|
-
|
|
35
|
-
}, function (props) {
|
|
36
|
-
return numberToPixels(props.scrollOffset);
|
|
37
|
-
});
|
|
38
|
-
export var StickyScrollbarContent = styled.div.withConfig({
|
|
25
|
+
})(["position:sticky;bottom:10px;z-index:", ";transform:translate(5px,", ");height:10px;margin-bottom:-10px;"], (props) => props.isStuck ? 2 : 0, (props) => numberToPixels(props.scrollOffset));
|
|
26
|
+
const StickyScrollbarContent = /* @__PURE__ */ styled.div.withConfig({
|
|
39
27
|
displayName: "VirtualTablestyles__StickyScrollbarContent",
|
|
40
28
|
componentId: "sc-aehkhc-5"
|
|
41
|
-
})(["width:", ";height:10px;"],
|
|
42
|
-
|
|
43
|
-
});
|
|
44
|
-
export var ColWrapper = styled.div.withConfig({
|
|
29
|
+
})(["width:", ";height:10px;"], (props) => numberToPixels(props.scrollWidth));
|
|
30
|
+
const ColWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
45
31
|
displayName: "VirtualTablestyles__ColWrapper",
|
|
46
32
|
componentId: "sc-aehkhc-6"
|
|
47
|
-
})(["display:table-cell;vertical-align:middle;", ";", ";", " padding:0 24px;&.virtual-table-cell.ant-table-selection-column{padding:0 8px 0 24px;}&.virtual-table-cell.ds-table-star-column{padding:0 8px 0 24px;& > button{display:flex;}}&.virtual-table-cell.ant-table-selection-column + .virtual-table-cell.ds-table-star-column{padding-left:0;}"],
|
|
48
|
-
|
|
49
|
-
}, function (props) {
|
|
50
|
-
return props.right !== undefined && "right: " + numberToPixels(props.right);
|
|
51
|
-
}, function (props) {
|
|
52
|
-
var width = getColumnWidth(props);
|
|
33
|
+
})(["display:table-cell;vertical-align:middle;", ";", ";", " padding:0 24px;&.virtual-table-cell.ant-table-selection-column{padding:0 8px 0 24px;}&.virtual-table-cell.ds-table-star-column{padding:0 8px 0 24px;& > button{display:flex;}}&.virtual-table-cell.ant-table-selection-column + .virtual-table-cell.ds-table-star-column{padding-left:0;}"], (props) => props.left !== void 0 && `left: ${numberToPixels(props.left)}`, (props) => props.right !== void 0 && `right: ${numberToPixels(props.right)}`, (props) => {
|
|
34
|
+
const width = getColumnWidth(props);
|
|
53
35
|
return css(["width:", ";min-width:", ";max-width:", ";"], width, width, width);
|
|
54
36
|
});
|
|
55
|
-
|
|
37
|
+
const VirtualTableWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
56
38
|
displayName: "VirtualTablestyles__VirtualTableWrapper",
|
|
57
39
|
componentId: "sc-aehkhc-7"
|
|
58
|
-
})(["", ""],
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
})(["", ""], (props) => props.isSticky ? css(["&:hover{.ps__rail-x.ps__rail-x{opacity:1;}}.ant-table-title{position:sticky;top:", "px;z-index:99;}.ant-table-title,.ant-table-sticky-holder{transition:top 0.3s ease-in-out;}", ";"], props.titleBarTop - props.titleBarHeight, props.isHeaderVisible && css([".ant-table-title{top:", "px;}.ant-table-sticky-holder{top:", "px !important;}"], props.titleBarTop, props.titleBarTop + props.titleBarHeight)) : css(["position:relative;"]));
|
|
41
|
+
export {
|
|
42
|
+
ColWrapper,
|
|
43
|
+
InnerListElement,
|
|
44
|
+
RowWrapper,
|
|
45
|
+
StickyScrollbarContent,
|
|
46
|
+
StickyScrollbarWrapper,
|
|
47
|
+
VirtualListSpace,
|
|
48
|
+
VirtualListWrapper,
|
|
49
|
+
VirtualTableWrapper
|
|
50
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { FixedSizeList as List, ListOnItemsRenderedProps } from '../../../../../config/vitest/__mocks__/reactWindowMock.js';
|
|
3
|
+
import { InfiniteScrollProps } from '../InfiniteScroll/InfiniteLoaderItem.types';
|
|
4
|
+
import { DSColumnType, DSTableProps } from '../Table.types';
|
|
5
5
|
export type VirtualColumnType<T> = DSColumnType<T> & {
|
|
6
6
|
fixedFirst?: boolean;
|
|
7
7
|
id?: string | number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { default as React, CSSProperties, ReactElement } from 'react';
|
|
2
|
+
import { TooltipProps } from '@synerise/ds-tooltip';
|
|
3
|
+
import { InfiniteScrollProps } from '../InfiniteScroll/InfiniteLoaderItem.types';
|
|
4
|
+
import { DSTableProps, RowSelection, RowStar } from '../Table.types';
|
|
5
5
|
export declare const INFINITE_LOADED_ITEM_HEIGHT = 64;
|
|
6
6
|
export interface VirtualTableRowProps<T> {
|
|
7
7
|
data: {
|
|
@@ -1,118 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
import classNames from
|
|
3
|
-
import
|
|
4
|
-
import { areEqual } from
|
|
5
|
-
import Tooltip from
|
|
6
|
-
import InfiniteLoaderItem from
|
|
7
|
-
import { calculatePixels
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
mergedColumns
|
|
25
|
-
onRowClick
|
|
26
|
-
selection
|
|
27
|
-
rowStar
|
|
28
|
-
getRowTooltipProps
|
|
29
|
-
dataSource
|
|
30
|
-
cellHeight
|
|
31
|
-
infiniteScroll
|
|
32
|
-
defaultTableProps
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { memo, useCallback, useMemo } from "react";
|
|
4
|
+
import { areEqual } from "react-window";
|
|
5
|
+
import Tooltip from "@synerise/ds-tooltip";
|
|
6
|
+
import InfiniteLoaderItem from "../InfiniteScroll/InfiniteLoaderItem.js";
|
|
7
|
+
import { calculatePixels } from "../utils/calculatePixels.js";
|
|
8
|
+
import "../Table.styles.js";
|
|
9
|
+
import "@synerise/ds-skeleton";
|
|
10
|
+
import "uuid";
|
|
11
|
+
import "styled-components";
|
|
12
|
+
import "@synerise/ds-typography";
|
|
13
|
+
import { getValueFromPath } from "../utils/getValueFromPath.js";
|
|
14
|
+
import "../utils/locale.js";
|
|
15
|
+
import { RowWrapper, ColWrapper } from "./VirtualTable.styles.js";
|
|
16
|
+
import { EXPANDED_ROW_PROPERTY } from "./constants.js";
|
|
17
|
+
const INFINITE_LOADED_ITEM_HEIGHT = 64;
|
|
18
|
+
const isColumnSortingActive = (columns, column) => !!columns.find((c) => c.key === column.key && !!c.sortOrder);
|
|
19
|
+
const calculateToPixelsIfDefined = (value) => value ? calculatePixels(value) : value;
|
|
20
|
+
function VirtualTableRow({
|
|
21
|
+
index,
|
|
22
|
+
style,
|
|
23
|
+
data: {
|
|
24
|
+
mergedColumns,
|
|
25
|
+
onRowClick,
|
|
26
|
+
selection,
|
|
27
|
+
rowStar,
|
|
28
|
+
getRowTooltipProps,
|
|
29
|
+
dataSource,
|
|
30
|
+
cellHeight,
|
|
31
|
+
infiniteScroll,
|
|
32
|
+
defaultTableProps
|
|
33
|
+
}
|
|
34
|
+
}) {
|
|
35
|
+
const renderColumn = useCallback((column, rowData2, columnIndex) => {
|
|
36
|
+
if (rowData2[EXPANDED_ROW_PROPERTY] && column.childRender) {
|
|
37
|
+
return column.childRender(getValueFromPath(rowData2, column.dataIndex), rowData2, columnIndex);
|
|
36
38
|
}
|
|
37
|
-
return column.render ? column.render(getValueFromPath(
|
|
39
|
+
return column.render ? column.render(getValueFromPath(rowData2, column.dataIndex), rowData2, columnIndex) : getValueFromPath(rowData2, column.dataIndex);
|
|
38
40
|
}, []);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (position ===
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
top = "0px";
|
|
41
|
+
const rowData = useMemo(() => dataSource[index], [dataSource, index]);
|
|
42
|
+
const infiniteLoader = useCallback((position) => {
|
|
43
|
+
let isVisible = false;
|
|
44
|
+
let infiniteLoaderItemProps;
|
|
45
|
+
let {
|
|
46
|
+
top: top2
|
|
47
|
+
} = style;
|
|
48
|
+
if (position === "TOP") {
|
|
49
|
+
isVisible = Boolean(infiniteScroll && infiniteScroll.prevPage?.hasMore && index === 0);
|
|
50
|
+
infiniteLoaderItemProps = infiniteScroll?.prevPage;
|
|
51
|
+
top2 = `0px`;
|
|
51
52
|
}
|
|
52
|
-
if (position ===
|
|
53
|
-
var _infiniteScroll$prevP2;
|
|
53
|
+
if (position === "BOTTOM") {
|
|
54
54
|
isVisible = Boolean(index === dataSource.length - 1);
|
|
55
|
-
infiniteLoaderItemProps = infiniteScroll
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
infiniteLoaderItemProps = infiniteScroll?.nextPage;
|
|
56
|
+
const prevDataInfiniteLoaderHeight = infiniteScroll?.prevPage?.hasMore ? INFINITE_LOADED_ITEM_HEIGHT : 0;
|
|
57
|
+
top2 = `${Number(style.top) + cellHeight + prevDataInfiniteLoaderHeight}px`;
|
|
58
58
|
}
|
|
59
|
-
return infiniteLoaderItemProps && isVisible &&
|
|
60
|
-
style
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}));
|
|
59
|
+
return infiniteLoaderItemProps && isVisible && /* @__PURE__ */ jsx(RowWrapper, { style: {
|
|
60
|
+
...style,
|
|
61
|
+
top: top2,
|
|
62
|
+
height: `${INFINITE_LOADED_ITEM_HEIGHT}px`,
|
|
63
|
+
padding: "0 24px",
|
|
64
|
+
display: "flex"
|
|
65
|
+
}, children: /* @__PURE__ */ jsx(InfiniteLoaderItem, { infiniteScroll: {
|
|
66
|
+
...infiniteScroll,
|
|
67
|
+
...infiniteLoaderItemProps
|
|
68
|
+
}, position }) });
|
|
70
69
|
}, [cellHeight, dataSource.length, index, infiniteScroll, style]);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
left: column.fixed ===
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
key: "row-" + index + "-column-" + (column.dataIndex || column.key),
|
|
107
|
-
"data-column-dataIndex": column.dataIndex || column.key,
|
|
108
|
-
"data-column-title": columnTitle,
|
|
109
|
-
minWidth: calculateToPixelsIfDefined(column == null ? void 0 : column.minWidth),
|
|
110
|
-
width: column.width,
|
|
111
|
-
maxWidth: calculateToPixelsIfDefined(column == null ? void 0 : column.maxWidth)
|
|
112
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, renderColumn(column, rowData, columnIndex)));
|
|
113
|
-
return cellTooltip ? /*#__PURE__*/React.createElement(Tooltip, cellTooltip, cellContent) : cellContent;
|
|
114
|
-
}));
|
|
115
|
-
var rowTooltipProps = getRowTooltipProps == null ? void 0 : getRowTooltipProps(rowData);
|
|
116
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, infiniteLoader('TOP'), rowTooltipProps ? /*#__PURE__*/React.createElement(Tooltip, rowTooltipProps, rowContent) : rowContent, infiniteLoader('BOTTOM'));
|
|
70
|
+
const top = infiniteScroll?.prevPage?.hasMore ? `${Number(style.top) + INFINITE_LOADED_ITEM_HEIGHT}px` : style.top;
|
|
71
|
+
const rowProps = defaultTableProps?.onRow?.(rowData) || {};
|
|
72
|
+
const rowContent = /* @__PURE__ */ jsx(RowWrapper, { "data-row-index": index, className: classNames("virtual-table-row", {
|
|
73
|
+
"ds-expanded-row": rowData[EXPANDED_ROW_PROPERTY]
|
|
74
|
+
}), ...rowProps, style: {
|
|
75
|
+
...style,
|
|
76
|
+
...rowProps?.style,
|
|
77
|
+
top
|
|
78
|
+
}, onClick: (event) => {
|
|
79
|
+
event.stopPropagation();
|
|
80
|
+
onRowClick && onRowClick(rowData);
|
|
81
|
+
}, onRowClickAvailable: onRowClick !== void 0, children: mergedColumns.map((column, columnIndex) => {
|
|
82
|
+
const firstWithSelectionAndStar = selection && rowStar && columnIndex === 2;
|
|
83
|
+
const firstWithSelectionOrStar = (selection || rowStar) && columnIndex === 1;
|
|
84
|
+
const firstWithoutSelectionAndStar = columnIndex === 0 && !selection && !rowStar;
|
|
85
|
+
const columnTitle = typeof column.title === "string" ? column.title : column.dataIndex || column.key;
|
|
86
|
+
const cellTooltip = column.getCellTooltipProps?.(rowData);
|
|
87
|
+
const cellContent = /* @__PURE__ */ jsx(ColWrapper, { left: column.fixed === "left" ? column.left : void 0, right: column.fixed === "right" ? column.right : void 0, className: classNames("virtual-table-cell", {
|
|
88
|
+
"virtual-table-cell-last": columnIndex === mergedColumns.length - 1,
|
|
89
|
+
"ant-table-selection-column": columnIndex === 0 && selection,
|
|
90
|
+
"ant-table-cell-fix-right": column.fixed === "right",
|
|
91
|
+
"ant-table-cell-fix-left": column.fixed === "left",
|
|
92
|
+
"ant-table-cell-fix-right-first": column.fixed === "right" && column.fixedFirst,
|
|
93
|
+
"ant-table-cell-fix-left-first": column.fixed === "left" && column.fixedFirst,
|
|
94
|
+
"ds-expanded-row-first": rowData[EXPANDED_ROW_PROPERTY] && columnIndex === 0,
|
|
95
|
+
"ds-expanded-row-data": rowData[EXPANDED_ROW_PROPERTY] && (firstWithoutSelectionAndStar || firstWithSelectionOrStar || firstWithSelectionAndStar)
|
|
96
|
+
}, isColumnSortingActive(defaultTableProps?.columns || [], column) && "ant-table-column-sort", column.className), "data-column-dataIndex": column.dataIndex || column.key, "data-column-title": columnTitle, minWidth: calculateToPixelsIfDefined(column?.minWidth), width: column.width, maxWidth: calculateToPixelsIfDefined(column?.maxWidth), children: /* @__PURE__ */ jsx(Fragment, { children: renderColumn(column, rowData, columnIndex) }) }, `row-${index}-column-${column.dataIndex || column.key}`);
|
|
97
|
+
return cellTooltip ? /* @__PURE__ */ jsx(Tooltip, { ...cellTooltip, children: cellContent }) : cellContent;
|
|
98
|
+
}) });
|
|
99
|
+
const rowTooltipProps = getRowTooltipProps?.(rowData);
|
|
100
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
101
|
+
infiniteLoader("TOP"),
|
|
102
|
+
rowTooltipProps ? /* @__PURE__ */ jsx(Tooltip, { ...rowTooltipProps, children: rowContent }) : rowContent,
|
|
103
|
+
infiniteLoader("BOTTOM")
|
|
104
|
+
] });
|
|
117
105
|
}
|
|
118
|
-
|
|
106
|
+
const VirtualTableRow$1 = memo(VirtualTableRow, areEqual);
|
|
107
|
+
export {
|
|
108
|
+
INFINITE_LOADED_ITEM_HEIGHT,
|
|
109
|
+
VirtualTableRow$1 as default
|
|
110
|
+
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const HEADER_ROW_HEIGHT = 64;
|
|
2
|
+
const EXPANDED_ROW_PROPERTY = "expandedChild";
|
|
3
|
+
const LOAD_DATA_OFFSET = 800;
|
|
4
|
+
export {
|
|
5
|
+
EXPANDED_ROW_PROPERTY,
|
|
6
|
+
HEADER_ROW_HEIGHT,
|
|
7
|
+
LOAD_DATA_OFFSET
|
|
8
|
+
};
|
|
File without changes
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
prev:
|
|
5
|
-
next:
|
|
6
|
-
};
|
|
1
|
+
const SELECTION_ALL = "SELECTION_ALL";
|
|
2
|
+
const SELECTION_INVERT = "SELECTION_INVERT";
|
|
3
|
+
const ITEM_RENDER_TYPE = {
|
|
4
|
+
prev: "prev",
|
|
5
|
+
next: "next"
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
ITEM_RENDER_TYPE,
|
|
9
|
+
SELECTION_ALL,
|
|
10
|
+
SELECTION_INVERT
|
|
11
|
+
};
|
|
@@ -1,100 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SkeletonAvatar } from
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
render: function render() {
|
|
50
|
-
return /*#__PURE__*/React.createElement(S.TableSkeletonCell, {
|
|
51
|
-
height: height
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}, {
|
|
55
|
-
width: 120,
|
|
56
|
-
title: /*#__PURE__*/React.createElement(S.Skeleton, {
|
|
57
|
-
numberOfSkeletons: 1,
|
|
58
|
-
size: "M"
|
|
59
|
-
}),
|
|
60
|
-
render: function render() {
|
|
61
|
-
return /*#__PURE__*/React.createElement(S.TableSkeletonCell, {
|
|
62
|
-
width: "100%",
|
|
63
|
-
height: height
|
|
64
|
-
}, /*#__PURE__*/React.createElement(S.Skeleton, {
|
|
65
|
-
numberOfSkeletons: 1,
|
|
66
|
-
size: "M"
|
|
67
|
-
}));
|
|
68
|
-
}
|
|
69
|
-
}, {
|
|
70
|
-
width: 212,
|
|
71
|
-
title: /*#__PURE__*/React.createElement(S.Skeleton, {
|
|
72
|
-
numberOfSkeletons: 1,
|
|
73
|
-
size: "M"
|
|
74
|
-
}),
|
|
75
|
-
render: function render() {
|
|
76
|
-
return /*#__PURE__*/React.createElement(S.TableSkeletonCell, {
|
|
77
|
-
width: "100%",
|
|
78
|
-
height: height
|
|
79
|
-
}, /*#__PURE__*/React.createElement(S.Skeleton, {
|
|
80
|
-
numberOfSkeletons: 1,
|
|
81
|
-
size: "M"
|
|
82
|
-
}));
|
|
83
|
-
}
|
|
84
|
-
}, {
|
|
85
|
-
width: 120,
|
|
86
|
-
title: /*#__PURE__*/React.createElement(S.Skeleton, {
|
|
87
|
-
numberOfSkeletons: 1,
|
|
88
|
-
size: "M"
|
|
89
|
-
}),
|
|
90
|
-
render: function render() {
|
|
91
|
-
return /*#__PURE__*/React.createElement(S.TableSkeletonCell, {
|
|
92
|
-
width: "100%",
|
|
93
|
-
height: height
|
|
94
|
-
}, /*#__PURE__*/React.createElement(S.Skeleton, {
|
|
95
|
-
numberOfSkeletons: 1,
|
|
96
|
-
size: "M"
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
}];
|
|
100
|
-
};
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SkeletonAvatar } from "@synerise/ds-skeleton";
|
|
3
|
+
import AvatarLabel from "../Cell/AvatarLabel/AvatarLabel.js";
|
|
4
|
+
import { TableSkeletonCell, Skeleton } from "../Table.styles.js";
|
|
5
|
+
const DEFAULT_ROW_COUNT = 10;
|
|
6
|
+
const HEADER_HEIGHT = 73;
|
|
7
|
+
const SUBHEADER_HEIGHT = 64;
|
|
8
|
+
const ROW_HEIGHT = 73;
|
|
9
|
+
const SKELETON_BAR_TINY = 16;
|
|
10
|
+
const SKELETON_BAR_STANDARD = 72;
|
|
11
|
+
const SKELETON_BAR_WIDE = 100;
|
|
12
|
+
const SKELETON_BAR_EXTRA_WIDE = 164;
|
|
13
|
+
const getDefaultSkeletonColumns = (height = ROW_HEIGHT) => [{
|
|
14
|
+
width: 350,
|
|
15
|
+
title: /* @__PURE__ */ jsx("div", { style: {
|
|
16
|
+
width: "100px"
|
|
17
|
+
}, children: /* @__PURE__ */ jsx(Skeleton, { numberOfSkeletons: 1, width: "M" }) }),
|
|
18
|
+
render: () => /* @__PURE__ */ jsx(TableSkeletonCell, { width: "100%", height, children: /* @__PURE__ */ jsx(AvatarLabel, { title: /* @__PURE__ */ jsx("div", { style: {
|
|
19
|
+
width: "100px"
|
|
20
|
+
}, children: /* @__PURE__ */ jsx(Skeleton, { numberOfSkeletons: 1, width: "M" }) }), avatar: /* @__PURE__ */ jsx(SkeletonAvatar, { shape: "square", size: "M" }) }) })
|
|
21
|
+
}, {
|
|
22
|
+
minWidth: 100,
|
|
23
|
+
title: "",
|
|
24
|
+
render: () => /* @__PURE__ */ jsx(TableSkeletonCell, { height })
|
|
25
|
+
}, {
|
|
26
|
+
width: 120,
|
|
27
|
+
title: /* @__PURE__ */ jsx(Skeleton, { numberOfSkeletons: 1, size: "M" }),
|
|
28
|
+
render: () => /* @__PURE__ */ jsx(TableSkeletonCell, { width: "100%", height, children: /* @__PURE__ */ jsx(Skeleton, { numberOfSkeletons: 1, size: "M" }) })
|
|
29
|
+
}, {
|
|
30
|
+
width: 212,
|
|
31
|
+
title: /* @__PURE__ */ jsx(Skeleton, { numberOfSkeletons: 1, size: "M" }),
|
|
32
|
+
render: () => /* @__PURE__ */ jsx(TableSkeletonCell, { width: "100%", height, children: /* @__PURE__ */ jsx(Skeleton, { numberOfSkeletons: 1, size: "M" }) })
|
|
33
|
+
}, {
|
|
34
|
+
width: 120,
|
|
35
|
+
title: /* @__PURE__ */ jsx(Skeleton, { numberOfSkeletons: 1, size: "M" }),
|
|
36
|
+
render: () => /* @__PURE__ */ jsx(TableSkeletonCell, { width: "100%", height, children: /* @__PURE__ */ jsx(Skeleton, { numberOfSkeletons: 1, size: "M" }) })
|
|
37
|
+
}];
|
|
38
|
+
export {
|
|
39
|
+
DEFAULT_ROW_COUNT,
|
|
40
|
+
HEADER_HEIGHT,
|
|
41
|
+
ROW_HEIGHT,
|
|
42
|
+
SKELETON_BAR_EXTRA_WIDE,
|
|
43
|
+
SKELETON_BAR_STANDARD,
|
|
44
|
+
SKELETON_BAR_TINY,
|
|
45
|
+
SKELETON_BAR_WIDE,
|
|
46
|
+
SUBHEADER_HEIGHT,
|
|
47
|
+
getDefaultSkeletonColumns
|
|
48
|
+
};
|