@bento-core/table 1.0.1-ccdihub.101 → 1.0.1-ccdihub.102

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.
@@ -50,7 +50,7 @@ const ExtendedView = _ref => {
50
50
  }, pagination && /*#__PURE__*/_react.default.createElement("div", {
51
51
  className: "downloadArea",
52
52
  style: downloadAreaStyle
53
- }, /*#__PURE__*/_react.default.createElement(_CustomPagination.default, {
53
+ }, table.showSearchBox && /*#__PURE__*/_react.default.createElement(table.SearchBox, null), /*#__PURE__*/_react.default.createElement(_CustomPagination.default, {
54
54
  customTheme: customTheme.tblTopPgn,
55
55
  rowsPerPageOptions: [10, 25, 50, 100],
56
56
  component: "div",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/table",
3
- "version": "1.0.1-ccdihub.101",
3
+ "version": "1.0.1-ccdihub.102",
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",
@@ -44,36 +44,41 @@ const ExtendedView = ({
44
44
  </Toolbar>
45
45
  )} */}
46
46
  {
47
- (pagination) && (
48
- <div className="downloadArea" style={downloadAreaStyle}>
49
- <CustomPagination
50
- customTheme={customTheme.tblTopPgn}
51
- rowsPerPageOptions={[10, 25, 50, 100]}
52
- component="div"
47
+ (pagination) && (
48
+ <div className="downloadArea" style={downloadAreaStyle}>
49
+ {
50
+ (table.showSearchBox) && (
51
+ <table.SearchBox />
52
+ )
53
+ }
54
+ <CustomPagination
55
+ customTheme={customTheme.tblTopPgn}
56
+ rowsPerPageOptions={[10, 25, 50, 100]}
57
+ component="div"
58
+ count={table.totalRowCount || 0}
59
+ rowsPerPage={table.rowsPerPage || 10}
60
+ page={table.page || 0}
61
+ onPageChange={onPageChange}
62
+ onRowsPerPageChange={onRowsPerPageChange}
63
+ queryVariables={queryVariables}
64
+ table={table}
65
+ />
66
+ <ManageColumnView
67
+ table={table}
68
+ manageViewColumns={manageViewColumns}
69
+ onColumnViewChange={onColumnViewChange}
70
+ onAllColumnViewChange={onAllColumnViewChange}
71
+ />
72
+ {hasExport && (
73
+ <DownloadButton
53
74
  count={table.totalRowCount || 0}
54
- rowsPerPage={table.rowsPerPage || 10}
55
- page={table.page || 0}
56
- onPageChange={onPageChange}
57
- onRowsPerPageChange={onRowsPerPageChange}
58
75
  queryVariables={queryVariables}
59
76
  table={table}
60
77
  />
61
- <ManageColumnView
62
- table={table}
63
- manageViewColumns={manageViewColumns}
64
- onColumnViewChange={onColumnViewChange}
65
- onAllColumnViewChange={onAllColumnViewChange}
66
- />
67
- {hasExport && (
68
- <DownloadButton
69
- count={table.totalRowCount || 0}
70
- queryVariables={queryVariables}
71
- table={table}
72
- />
73
- )}
74
- </div>
75
- )
76
- }
78
+ )}
79
+ </div>
80
+ )
81
+ }
77
82
  </ThemeProvider>
78
83
  );
79
84
  };