@bento-core/table 1.0.1-ccdihub.41 → 1.0.1-ccdihub.42
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/dist/TableView.js +7 -1
- package/package.json +1 -1
- package/src/TableView.js +8 -1
package/dist/TableView.js
CHANGED
|
@@ -39,6 +39,12 @@ const downloadAreaStyle = {
|
|
|
39
39
|
borderBottom: '1px solid #8A7F7C',
|
|
40
40
|
paddingRight: '41px'
|
|
41
41
|
};
|
|
42
|
+
const cartDownloadAreaStyle = {
|
|
43
|
+
display: 'flex',
|
|
44
|
+
borderTop: '5px solid #e7e5e5',
|
|
45
|
+
borderBottom: '3px solid #e7e5e5',
|
|
46
|
+
paddingRight: '40px'
|
|
47
|
+
};
|
|
42
48
|
const TableView = _ref => {
|
|
43
49
|
var _table$selectedRows, _table$selectedRows2;
|
|
44
50
|
let {
|
|
@@ -86,7 +92,7 @@ const TableView = _ref => {
|
|
|
86
92
|
table: table
|
|
87
93
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
88
94
|
className: "downloadArea",
|
|
89
|
-
style: downloadAreaStyle
|
|
95
|
+
style: table.paginationAPIField === 'filesInList' ? cartDownloadAreaStyle : downloadAreaStyle
|
|
90
96
|
}, /*#__PURE__*/_react.default.createElement(_CustomPagination.default, {
|
|
91
97
|
customTheme: themeConfig.tblPgn,
|
|
92
98
|
rowsPerPageOptions: [10, 25, 50, 100],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bento-core/table",
|
|
3
|
-
"version": "1.0.1-ccdihub.
|
|
3
|
+
"version": "1.0.1-ccdihub.42",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
|
package/src/TableView.js
CHANGED
|
@@ -33,6 +33,13 @@ const downloadAreaStyle = {
|
|
|
33
33
|
paddingRight: '41px',
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
const cartDownloadAreaStyle = {
|
|
37
|
+
display: 'flex',
|
|
38
|
+
borderTop: '5px solid #e7e5e5',
|
|
39
|
+
borderBottom: '3px solid #e7e5e5',
|
|
40
|
+
paddingRight: '40px',
|
|
41
|
+
};
|
|
42
|
+
|
|
36
43
|
const TableView = ({
|
|
37
44
|
tableRows = [],
|
|
38
45
|
table,
|
|
@@ -88,7 +95,7 @@ const TableView = ({
|
|
|
88
95
|
table={table}
|
|
89
96
|
/>
|
|
90
97
|
)}
|
|
91
|
-
<div className="downloadArea" style={downloadAreaStyle}>
|
|
98
|
+
<div className="downloadArea" style={table.paginationAPIField === 'filesInList' ? cartDownloadAreaStyle : downloadAreaStyle}>
|
|
92
99
|
<CustomPagination
|
|
93
100
|
customTheme={themeConfig.tblPgn}
|
|
94
101
|
rowsPerPageOptions={[10, 25, 50, 100]}
|