@bento-core/table 1.0.0-c3dc.2 → 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.
@@ -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
@@ -12,7 +12,6 @@ var _CustomTblBody = _interopRequireDefault(require("./body/CustomTblBody"));
12
12
  var _CustomToolbar = _interopRequireDefault(require("./toolbar/CustomToolbar"));
13
13
  var _DisplayErrMsg = _interopRequireDefault(require("./errMsg/DisplayErrMsg"));
14
14
  var _ExtendedView = _interopRequireDefault(require("./ExtendedView"));
15
- var _DownloadButtonView = _interopRequireDefault(require("./toolbar/DownloadButtonView"));
16
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
16
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
17
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -92,7 +91,7 @@ const TableView = _ref => {
92
91
  table: table
93
92
  }), /*#__PURE__*/_react.default.createElement("div", {
94
93
  className: "downloadArea",
95
- style: table.paginationAPIField === 'filesInList' ? cartDownloadAreaStyle : downloadAreaStyle
94
+ style: table.paginationAPIField === 'filesInList' ? cartDownloadAreaStyle : table.paginationCustomStyle && table.paginationCustomStyle.bottomPagination ? table.paginationCustomStyle.bottomPagination : downloadAreaStyle
96
95
  }, /*#__PURE__*/_react.default.createElement(_CustomPagination.default, {
97
96
  customTheme: themeConfig.tblPgn,
98
97
  rowsPerPageOptions: [10, 25, 50, 100],
@@ -102,10 +101,6 @@ const TableView = _ref => {
102
101
  page: table.page || 0,
103
102
  onPageChange: onPageChange,
104
103
  onRowsPerPageChange: onRowsPerPageChange
105
- }), /*#__PURE__*/_react.default.createElement(_DownloadButtonView.default, {
106
- count: table.totalRowCount || 0,
107
- queryVariables: queryVariables,
108
- table: table
109
104
  })));
110
105
  };
111
106
  var _default = TableView;
@@ -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 => "#".concat(rootPath, "/").concat(row[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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/table",
3
- "version": "1.0.0-c3dc.2",
3
+ "version": "1.0.0-c3dc.4",
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",
@@ -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) => `#${rootPath}/`.concat(row[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>