@bento-core/table 1.0.1-ccdihub.45 → 1.0.1-ccdihub.46

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 CHANGED
@@ -58,7 +58,8 @@ const TableView = _ref => {
58
58
  onSortByColumn,
59
59
  onColumnViewChange,
60
60
  themeConfig = {},
61
- queryVariables
61
+ queryVariables,
62
+ tableInfo
62
63
  } = _ref;
63
64
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ExtendedView.default, {
64
65
  table: table,
@@ -105,7 +106,8 @@ const TableView = _ref => {
105
106
  }), /*#__PURE__*/_react.default.createElement(_DownloadButtonView.default, {
106
107
  count: table.totalRowCount || 0,
107
108
  queryVariables: queryVariables,
108
- table: table
109
+ table: table,
110
+ tableInfo: tableInfo
109
111
  })));
110
112
  };
111
113
  var _default = TableView;
@@ -24,7 +24,8 @@ const DownloadButton = _ref => {
24
24
  let {
25
25
  count,
26
26
  queryVariables,
27
- table
27
+ table,
28
+ tableInfo
28
29
  } = _ref;
29
30
  if (table.paginationAPIField === 'filesInList') {
30
31
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
@@ -35,6 +36,7 @@ const DownloadButton = _ref => {
35
36
  style: downloadButtonStyle
36
37
  });
37
38
  }
39
+ console.log('@@@@@@@@@tableInfo:', tableInfo);
38
40
  const client = (0, _client.useApolloClient)();
39
41
  const downloadFile = 'CCDI Inventory ';
40
42
  async function downloadSCSVFile() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/table",
3
- "version": "1.0.1-ccdihub.45",
3
+ "version": "1.0.1-ccdihub.46",
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
@@ -52,6 +52,7 @@ const TableView = ({
52
52
  onColumnViewChange,
53
53
  themeConfig = {},
54
54
  queryVariables,
55
+ tableInfo,
55
56
  }) => (
56
57
  <>
57
58
  <ExtendedView
@@ -110,6 +111,7 @@ const TableView = ({
110
111
  count={table.totalRowCount || 0}
111
112
  queryVariables={queryVariables}
112
113
  table={table}
114
+ tableInfo={tableInfo}
113
115
  />
114
116
  </div>
115
117
  </>
@@ -16,6 +16,7 @@ const DownloadButton = ({
16
16
  count,
17
17
  queryVariables,
18
18
  table,
19
+ tableInfo,
19
20
  }) => {
20
21
  if (table.paginationAPIField === 'filesInList') {
21
22
  return <></>;
@@ -23,6 +24,7 @@ const DownloadButton = ({
23
24
  if (count === 0) {
24
25
  return <CloudDownload className="disableButton" style={downloadButtonStyle} />;
25
26
  }
27
+ console.log('@@@@@@@@@tableInfo:', tableInfo);
26
28
 
27
29
  const client = useApolloClient();
28
30