@synerise/ds-table 0.59.1 → 0.59.3

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 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.59.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.59.2...@synerise/ds-table@0.59.3) (2024-10-28)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-table
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.59.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.59.1...@synerise/ds-table@0.59.2) (2024-10-23)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **table:** scrollwidth table calc ([d766422](https://github.com/synerise/synerise-design/commit/d7664229c8f046263afd703d760203157814f00b))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.59.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@0.59.0...@synerise/ds-table@0.59.1) (2024-10-23)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-table
@@ -567,7 +567,7 @@ var VirtualTable = function VirtualTable(props, forwardedRef) {
567
567
  headerElement && setScrollWidth(headerElement.scrollWidth);
568
568
  titleElement && setTitleBarHeight(titleElement.clientHeight);
569
569
  }
570
- }, [tableWidth, mergedColumns.length, dataSource.length]);
570
+ }, [tableWidth, mergedColumns.length, dataSource.length, loading]);
571
571
 
572
572
  var _useElementInView = useElementInView({
573
573
  rootMargin: "0px 0px 12px 0px",
@@ -593,8 +593,7 @@ var VirtualTable = function VirtualTable(props, forwardedRef) {
593
593
  sticky: dataSource.length ? sticky : undefined,
594
594
  loading: loading,
595
595
  scroll: scrollValue,
596
- className: classNames // @ts-ignore
597
- ,
596
+ className: classNames,
598
597
  columns: finalColumns,
599
598
  pagination: false,
600
599
  components: {
@@ -6,7 +6,9 @@ type ColWrapperProps = {
6
6
  right?: number;
7
7
  left?: number;
8
8
  };
9
- export declare const RowWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const RowWrapper: import("styled-components").StyledComponent<"div", any, {
10
+ onRowClickAvailable?: boolean | undefined;
11
+ }, never>;
10
12
  export declare const InnerListElement: import("styled-components").StyledComponent<"div", any, {}, never>;
11
13
  export declare const VirtualListSpace: import("styled-components").StyledComponent<"div", any, {}, never>;
12
14
  export declare const VirtualListWrapper: import("styled-components").StyledComponent<"div", any, {
@@ -12,7 +12,9 @@ var getColumnWidth = function getColumnWidth(props) {
12
12
  export var RowWrapper = styled.div.withConfig({
13
13
  displayName: "VirtualTablestyles__RowWrapper",
14
14
  componentId: "aehkhc-0"
15
- })(["display:inline-table;"]);
15
+ })(["display:inline-table;cursor:", ";"], function (props) {
16
+ return props.onRowClickAvailable ? 'pointer' : 'default';
17
+ });
16
18
  export var InnerListElement = styled.div.withConfig({
17
19
  displayName: "VirtualTablestyles__InnerListElement",
18
20
  componentId: "aehkhc-1"
@@ -91,7 +91,8 @@ function VirtualTableRow(_ref) {
91
91
  onClick: function onClick(event) {
92
92
  event.stopPropagation();
93
93
  onRowClick && onRowClick(rowData);
94
- }
94
+ },
95
+ onRowClickAvailable: onRowClick !== undefined
95
96
  }, mergedColumns.map(function (column, columnIndex) {
96
97
  var firstWithSelectionAndStar = selection && rowStar && columnIndex === 2;
97
98
  var firstWithSelectionOrStar = (selection || rowStar) && columnIndex === 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-table",
3
- "version": "0.59.1",
3
+ "version": "0.59.3",
4
4
  "description": "Table UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -34,31 +34,31 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-alert": "^0.8.33",
38
- "@synerise/ds-badge": "^0.8.14",
39
- "@synerise/ds-button": "^0.21.14",
40
- "@synerise/ds-button-group": "^0.7.18",
41
- "@synerise/ds-checkbox": "^0.12.12",
42
- "@synerise/ds-column-manager": "^0.12.7",
37
+ "@synerise/ds-alert": "^0.8.34",
38
+ "@synerise/ds-badge": "^0.8.15",
39
+ "@synerise/ds-button": "^0.21.15",
40
+ "@synerise/ds-button-group": "^0.7.19",
41
+ "@synerise/ds-checkbox": "^0.12.13",
42
+ "@synerise/ds-column-manager": "^0.12.8",
43
43
  "@synerise/ds-data-format": "^0.5.4",
44
- "@synerise/ds-dropdown": "^0.18.19",
44
+ "@synerise/ds-dropdown": "^0.18.20",
45
45
  "@synerise/ds-flag": "^0.5.3",
46
- "@synerise/ds-icon": "^0.66.0",
47
- "@synerise/ds-input": "^0.24.9",
48
- "@synerise/ds-loader": "^0.3.17",
49
- "@synerise/ds-menu": "^0.20.1",
50
- "@synerise/ds-modal": "^0.17.46",
51
- "@synerise/ds-pagination": "^0.7.66",
52
- "@synerise/ds-result": "^0.7.9",
53
- "@synerise/ds-scrollbar": "^0.11.14",
54
- "@synerise/ds-search": "^0.9.14",
55
- "@synerise/ds-select": "^0.16.21",
56
- "@synerise/ds-skeleton": "^0.6.13",
57
- "@synerise/ds-status": "^0.6.28",
58
- "@synerise/ds-tags": "^0.10.13",
59
- "@synerise/ds-tooltip": "^0.14.44",
60
- "@synerise/ds-typography": "^0.16.1",
61
- "@synerise/ds-utils": "^0.30.0",
46
+ "@synerise/ds-icon": "^0.66.1",
47
+ "@synerise/ds-input": "^0.24.10",
48
+ "@synerise/ds-loader": "^0.3.18",
49
+ "@synerise/ds-menu": "^0.20.2",
50
+ "@synerise/ds-modal": "^0.17.47",
51
+ "@synerise/ds-pagination": "^0.7.67",
52
+ "@synerise/ds-result": "^0.7.10",
53
+ "@synerise/ds-scrollbar": "^0.11.15",
54
+ "@synerise/ds-search": "^0.9.15",
55
+ "@synerise/ds-select": "^0.16.22",
56
+ "@synerise/ds-skeleton": "^0.6.14",
57
+ "@synerise/ds-status": "^0.6.29",
58
+ "@synerise/ds-tags": "^0.10.14",
59
+ "@synerise/ds-tooltip": "^0.14.45",
60
+ "@synerise/ds-typography": "^0.16.2",
61
+ "@synerise/ds-utils": "^0.30.1",
62
62
  "@types/react-window": "^1.8.5",
63
63
  "classnames": "2.3.2",
64
64
  "copy-to-clipboard": "^3.3.1",
@@ -77,5 +77,5 @@
77
77
  "react": ">=16.9.0 <= 17.0.2",
78
78
  "styled-components": "5.0.1"
79
79
  },
80
- "gitHead": "c45f411bd0eac69ae70b6c948da1c530539b01d6"
80
+ "gitHead": "fbadaa2299668c527b52ecc66d61fc2165528bff"
81
81
  }