@equinor/eds-data-grid-react 0.1.0-beta.2 → 0.1.0-beta.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.
|
@@ -156,9 +156,9 @@ var Resizer = styled__default.default.div.withConfig({
|
|
|
156
156
|
displayName: "TableHeaderCell__Resizer",
|
|
157
157
|
componentId: "sc-1n0j3v0-0"
|
|
158
158
|
})(["transform:", ";opacity:", ";position:absolute;right:0;top:0;height:100%;width:5px;cursor:col-resize;user-select:none;touch-action:none;"], function (props) {
|
|
159
|
-
return props
|
|
159
|
+
return props.$columnResizeMode === 'onEnd' ? 'translateX(0px)' : 'none';
|
|
160
160
|
}, function (props) {
|
|
161
|
-
return props
|
|
161
|
+
return props.$isResizing ? 1 : 0;
|
|
162
162
|
});
|
|
163
163
|
var Cell = styled__default.default(edsCoreReact.Table.Cell).withConfig({
|
|
164
164
|
displayName: "TableHeaderCell__Cell",
|
|
@@ -224,8 +224,8 @@ function TableHeaderCell(_ref) {
|
|
|
224
224
|
},
|
|
225
225
|
onMouseDown: header.getResizeHandler(),
|
|
226
226
|
onTouchStart: header.getResizeHandler(),
|
|
227
|
-
isResizing: header.column.getIsResizing(),
|
|
228
|
-
columnResizeMode: columnResizeMode,
|
|
227
|
+
$isResizing: header.column.getIsResizing(),
|
|
228
|
+
$columnResizeMode: columnResizeMode,
|
|
229
229
|
className: 'resize-handle',
|
|
230
230
|
"data-testid": 'resize-handle'
|
|
231
231
|
})]
|
|
@@ -388,7 +388,7 @@ function EdsDataGrid(_ref) {
|
|
|
388
388
|
_ref3 = _slicedToArray__default.default(_ref2, 2),
|
|
389
389
|
start = _ref3[0],
|
|
390
390
|
end = _ref3[1];
|
|
391
|
-
return value >= (isNaN(start) ? 0 : start) && value <= (!end || isNaN(end) ? Infinity : end);
|
|
391
|
+
return Number(value) >= (isNaN(start) ? 0 : start) && Number(value) <= (!end || isNaN(end) ? Infinity : end);
|
|
392
392
|
} else {
|
|
393
393
|
var validFilterValue = filterValue.filter(function (v) {
|
|
394
394
|
return !!v;
|
package/dist/esm/EdsDataGrid.js
CHANGED
|
@@ -101,7 +101,7 @@ function EdsDataGrid(_ref) {
|
|
|
101
101
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
102
102
|
start = _ref3[0],
|
|
103
103
|
end = _ref3[1];
|
|
104
|
-
return value >= (isNaN(start) ? 0 : start) && value <= (!end || isNaN(end) ? Infinity : end);
|
|
104
|
+
return Number(value) >= (isNaN(start) ? 0 : start) && Number(value) <= (!end || isNaN(end) ? Infinity : end);
|
|
105
105
|
} else {
|
|
106
106
|
var validFilterValue = filterValue.filter(function (v) {
|
|
107
107
|
return !!v;
|
|
@@ -18,9 +18,9 @@ var Resizer = styled.div.withConfig({
|
|
|
18
18
|
displayName: "TableHeaderCell__Resizer",
|
|
19
19
|
componentId: "sc-1n0j3v0-0"
|
|
20
20
|
})(["transform:", ";opacity:", ";position:absolute;right:0;top:0;height:100%;width:5px;cursor:col-resize;user-select:none;touch-action:none;"], function (props) {
|
|
21
|
-
return props
|
|
21
|
+
return props.$columnResizeMode === 'onEnd' ? 'translateX(0px)' : 'none';
|
|
22
22
|
}, function (props) {
|
|
23
|
-
return props
|
|
23
|
+
return props.$isResizing ? 1 : 0;
|
|
24
24
|
});
|
|
25
25
|
var Cell = styled(Table.Cell).withConfig({
|
|
26
26
|
displayName: "TableHeaderCell__Cell",
|
|
@@ -86,8 +86,8 @@ function TableHeaderCell(_ref) {
|
|
|
86
86
|
},
|
|
87
87
|
onMouseDown: header.getResizeHandler(),
|
|
88
88
|
onTouchStart: header.getResizeHandler(),
|
|
89
|
-
isResizing: header.column.getIsResizing(),
|
|
90
|
-
columnResizeMode: columnResizeMode,
|
|
89
|
+
$isResizing: header.column.getIsResizing(),
|
|
90
|
+
$columnResizeMode: columnResizeMode,
|
|
91
91
|
className: 'resize-handle',
|
|
92
92
|
"data-testid": 'resize-handle'
|
|
93
93
|
})]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/eds-data-grid-react",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
4
|
"description": "A feature-rich data-grid written in React, implementing the Equinor Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -16,63 +16,62 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": ">=16.8",
|
|
18
18
|
"react-dom": ">=16.8",
|
|
19
|
-
"styled-components": ">=4.2
|
|
19
|
+
"styled-components": ">=4.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@tanstack/react-table": "^8.8.5",
|
|
23
23
|
"@tanstack/react-virtual": "^3.0.0-beta.54",
|
|
24
|
-
"@equinor/eds-core-react": "^0.
|
|
24
|
+
"@equinor/eds-core-react": "^0.33.0",
|
|
25
|
+
"@equinor/eds-icons": "^0.19.3",
|
|
25
26
|
"@equinor/eds-tokens": "0.9.2",
|
|
26
|
-
"@equinor/eds-
|
|
27
|
-
"@equinor/eds-utils": "^0.8.0"
|
|
27
|
+
"@equinor/eds-utils": "^0.8.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"typescript": "~4.9.5",
|
|
31
|
-
"ts-jest": "29.0.5",
|
|
32
|
-
"ts-node": "10.9.1",
|
|
33
|
-
"@types/node": "18.14.2",
|
|
34
|
-
"jest": "29.4.3",
|
|
35
|
-
"jest-environment-jsdom": "29.4.3",
|
|
36
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
37
|
-
"@testing-library/react": "14.0.0",
|
|
38
|
-
"@testing-library/user-event": "^14.4.3",
|
|
39
|
-
"react": "^18.2.0",
|
|
40
|
-
"react-dom": "^18.2.0",
|
|
41
|
-
"@types/jest": "^29.5.0",
|
|
42
|
-
"@types/react": "^18.0.21",
|
|
43
|
-
"@types/react-dom": "^18.0.10",
|
|
44
|
-
"@types/styled-components": "^5.1.26",
|
|
45
|
-
"rollup": "^3.25.1",
|
|
46
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
47
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
48
|
-
"storybook": "^7.0.11",
|
|
49
|
-
"styled-components": "5.3.9",
|
|
50
30
|
"@mdx-js/react": "1.6.22",
|
|
51
31
|
"@rollup/plugin-babel": "^6.0.3",
|
|
52
32
|
"@rollup/plugin-commonjs": "^25.0.1",
|
|
53
33
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
54
|
-
"@storybook/addon-a11y": "^7.0
|
|
55
|
-
"@storybook/addon-actions": "^7.0
|
|
56
|
-
"@storybook/addon-docs": "^7.0
|
|
57
|
-
"@storybook/addon-essentials": "^7.0
|
|
58
|
-
"@storybook/addon-links": "^7.0
|
|
59
|
-
"@storybook/blocks": "^7.0
|
|
60
|
-
"@storybook/builder-vite": "^7.0
|
|
61
|
-
"@storybook/client-api": "^7.0
|
|
62
|
-
"@storybook/react": "^7.0
|
|
63
|
-
"@storybook/react-vite": "^7.0
|
|
34
|
+
"@storybook/addon-a11y": "^7.3.0",
|
|
35
|
+
"@storybook/addon-actions": "^7.3.0",
|
|
36
|
+
"@storybook/addon-docs": "^7.3.0",
|
|
37
|
+
"@storybook/addon-essentials": "^7.3.0",
|
|
38
|
+
"@storybook/addon-links": "^7.3.0",
|
|
39
|
+
"@storybook/blocks": "^7.3.0",
|
|
40
|
+
"@storybook/builder-vite": "^7.3.0",
|
|
41
|
+
"@storybook/client-api": "^7.3.0",
|
|
42
|
+
"@storybook/react": "^7.3.0",
|
|
43
|
+
"@storybook/react-vite": "^7.3.0",
|
|
64
44
|
"@testing-library/dom": "^9.2.0",
|
|
45
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
46
|
+
"@testing-library/react": "14.0.0",
|
|
47
|
+
"@testing-library/user-event": "^14.4.3",
|
|
48
|
+
"@types/jest": "^29.5.0",
|
|
49
|
+
"@types/node": "18.14.2",
|
|
65
50
|
"@types/ramda": "^0.28.24",
|
|
51
|
+
"@types/react": "^18.0.21",
|
|
52
|
+
"@types/react-dom": "^18.0.10",
|
|
66
53
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
67
54
|
"babel-loader": "^9.1.2",
|
|
68
|
-
"babel-plugin-styled-components": "^2.1.
|
|
55
|
+
"babel-plugin-styled-components": "^2.1.4",
|
|
56
|
+
"jest": "29.4.3",
|
|
57
|
+
"jest-environment-jsdom": "29.4.3",
|
|
69
58
|
"jest-styled-components": "^7.1.1",
|
|
70
59
|
"js-file-download": "^0.4.12",
|
|
71
60
|
"postcss": "^8.4.21",
|
|
72
61
|
"ramda": "^0.29.0",
|
|
62
|
+
"react": "^18.2.0",
|
|
63
|
+
"react-dom": "^18.2.0",
|
|
73
64
|
"react-hook-form": "^7.43.9",
|
|
74
65
|
"remark-gfm": "^3.0.1",
|
|
75
|
-
"
|
|
66
|
+
"rollup": "^3.25.1",
|
|
67
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
68
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
69
|
+
"storybook": "^7.3.0",
|
|
70
|
+
"styled-components": "6.0.8",
|
|
71
|
+
"ts-jest": "29.0.5",
|
|
72
|
+
"ts-node": "10.9.1",
|
|
73
|
+
"tsc-watch": "^6.0.0",
|
|
74
|
+
"typescript": "~5.1.6"
|
|
76
75
|
},
|
|
77
76
|
"homepage": "https://eds.equinor.com",
|
|
78
77
|
"repository": {
|