@bento-core/table 1.0.0-c3dc.3 → 1.0.0-c3dc.4
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/ExtendedView.js
CHANGED
|
@@ -61,7 +61,7 @@ const ExtendedView = _ref => {
|
|
|
61
61
|
onColumnViewChange: onColumnViewChange
|
|
62
62
|
})), pagination && /*#__PURE__*/_react.default.createElement("div", {
|
|
63
63
|
className: "downloadArea",
|
|
64
|
-
style: downloadAreaStyle
|
|
64
|
+
style: table.paginationCustomStyle && table.paginationCustomStyle.topPagination ? table.paginationCustomStyle.topPagination : downloadAreaStyle
|
|
65
65
|
}, /*#__PURE__*/_react.default.createElement(_CustomPagination.default, {
|
|
66
66
|
customTheme: customTheme.tblTopPgn,
|
|
67
67
|
rowsPerPageOptions: [10, 25, 50, 100],
|
package/dist/TableView.js
CHANGED
|
@@ -18,8 +18,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
18
18
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
19
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
20
20
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
|
-
// import DownloadButton from './toolbar/DownloadButtonView';
|
|
22
|
-
|
|
23
21
|
const CustomTableContainer = props => {
|
|
24
22
|
const {
|
|
25
23
|
children,
|
|
@@ -93,7 +91,7 @@ const TableView = _ref => {
|
|
|
93
91
|
table: table
|
|
94
92
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
95
93
|
className: "downloadArea",
|
|
96
|
-
style: table.paginationAPIField === 'filesInList' ? cartDownloadAreaStyle : downloadAreaStyle
|
|
94
|
+
style: table.paginationAPIField === 'filesInList' ? cartDownloadAreaStyle : table.paginationCustomStyle && table.paginationCustomStyle.bottomPagination ? table.paginationCustomStyle.bottomPagination : downloadAreaStyle
|
|
97
95
|
}, /*#__PURE__*/_react.default.createElement(_CustomPagination.default, {
|
|
98
96
|
customTheme: themeConfig.tblPgn,
|
|
99
97
|
rowsPerPageOptions: [10, 25, 50, 100],
|
|
@@ -20,7 +20,7 @@ const CustomLinkView = _ref => {
|
|
|
20
20
|
rootPath,
|
|
21
21
|
pathParams
|
|
22
22
|
} = column === null || column === void 0 ? void 0 : column.linkAttr;
|
|
23
|
-
const url = pathParams.map(attr => "
|
|
23
|
+
const url = pathParams.map(attr => "".concat(rootPath, "/").concat(row[attr]));
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement(_core.Link, {
|
|
25
25
|
href: url,
|
|
26
26
|
className: _Types.cellTypes.LINK
|
package/package.json
CHANGED
package/src/ExtendedView.js
CHANGED
|
@@ -55,7 +55,7 @@ const ExtendedView = ({
|
|
|
55
55
|
)}
|
|
56
56
|
{
|
|
57
57
|
(pagination) && (
|
|
58
|
-
<div className="downloadArea" style={downloadAreaStyle}>
|
|
58
|
+
<div className="downloadArea" style={(table.paginationCustomStyle && table.paginationCustomStyle.topPagination) ? table.paginationCustomStyle.topPagination : downloadAreaStyle}>
|
|
59
59
|
<CustomPagination
|
|
60
60
|
customTheme={customTheme.tblTopPgn}
|
|
61
61
|
rowsPerPageOptions={[10, 25, 50, 100]}
|
package/src/TableView.js
CHANGED
|
@@ -12,7 +12,6 @@ import CustomTableBody from './body/CustomTblBody';
|
|
|
12
12
|
import CustomToolbar from './toolbar/CustomToolbar';
|
|
13
13
|
import DisplayErrMsg from './errMsg/DisplayErrMsg';
|
|
14
14
|
import ExtendedView from './ExtendedView';
|
|
15
|
-
// import DownloadButton from './toolbar/DownloadButtonView';
|
|
16
15
|
|
|
17
16
|
const CustomTableContainer = (props) => {
|
|
18
17
|
const { children, customTheme } = props;
|
|
@@ -95,7 +94,7 @@ const TableView = ({
|
|
|
95
94
|
table={table}
|
|
96
95
|
/>
|
|
97
96
|
)}
|
|
98
|
-
<div className="downloadArea" style={table.paginationAPIField === 'filesInList' ? cartDownloadAreaStyle : downloadAreaStyle}>
|
|
97
|
+
<div className="downloadArea" style={table.paginationAPIField === 'filesInList' ? cartDownloadAreaStyle : (table.paginationCustomStyle && table.paginationCustomStyle.bottomPagination) ? table.paginationCustomStyle.bottomPagination : downloadAreaStyle}>
|
|
99
98
|
<CustomPagination
|
|
100
99
|
customTheme={themeConfig.tblPgn}
|
|
101
100
|
rowsPerPageOptions={[10, 25, 50, 100]}
|
|
@@ -106,11 +105,6 @@ const TableView = ({
|
|
|
106
105
|
onPageChange={onPageChange}
|
|
107
106
|
onRowsPerPageChange={onRowsPerPageChange}
|
|
108
107
|
/>
|
|
109
|
-
{/* <DownloadButton
|
|
110
|
-
count={table.totalRowCount || 0}
|
|
111
|
-
queryVariables={queryVariables}
|
|
112
|
-
table={table}
|
|
113
|
-
/> */}
|
|
114
108
|
</div>
|
|
115
109
|
</>
|
|
116
110
|
);
|
|
@@ -12,7 +12,7 @@ const CustomLinkView = ({
|
|
|
12
12
|
row,
|
|
13
13
|
}) => {
|
|
14
14
|
const { rootPath, pathParams } = column?.linkAttr;
|
|
15
|
-
const url = pathParams.map((attr) =>
|
|
15
|
+
const url = pathParams.map((attr) => `${rootPath}/`.concat(row[attr]));
|
|
16
16
|
return (
|
|
17
17
|
<Link href={url} className={cellTypes.LINK}>
|
|
18
18
|
<Typography>
|