@bento-core/table 1.0.1-ccdihub.56 → 1.0.1-ccdihub.57
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.
|
@@ -63,7 +63,9 @@ const DownloadButton = _ref => {
|
|
|
63
63
|
query,
|
|
64
64
|
variables: _objectSpread(_objectSpread({}, queryVariables), {}, {
|
|
65
65
|
page: 0,
|
|
66
|
-
first: 10000
|
|
66
|
+
first: 10000,
|
|
67
|
+
order_by: table.sortBy,
|
|
68
|
+
sort_direction: table.sortOrder
|
|
67
69
|
})
|
|
68
70
|
}).then(response => {
|
|
69
71
|
if (paginationAPIField && response && response.data) {
|
|
@@ -82,7 +84,9 @@ const DownloadButton = _ref => {
|
|
|
82
84
|
query,
|
|
83
85
|
variables: _objectSpread(_objectSpread({}, queryVariables), {}, {
|
|
84
86
|
page: 0,
|
|
85
|
-
first: 10000
|
|
87
|
+
first: 10000,
|
|
88
|
+
order_by: table.sortBy,
|
|
89
|
+
sort_direction: table.sortOrder
|
|
86
90
|
})
|
|
87
91
|
}).then(response => {
|
|
88
92
|
if (paginationAPIField && response && response.data) {
|
|
@@ -95,11 +99,11 @@ const DownloadButton = _ref => {
|
|
|
95
99
|
const downloadTableCSV = (0, _react.useCallback)(() => {
|
|
96
100
|
downloadSCSVFile();
|
|
97
101
|
setListDisplay('none');
|
|
98
|
-
}, [queryVariables]);
|
|
102
|
+
}, [queryVariables, table]);
|
|
99
103
|
const downloadTableJson = (0, _react.useCallback)(() => {
|
|
100
104
|
downloadJsonFile();
|
|
101
105
|
setListDisplay('none');
|
|
102
|
-
}, [queryVariables]);
|
|
106
|
+
}, [queryVariables, table]);
|
|
103
107
|
const handleClickButton = () => {
|
|
104
108
|
if (listDisplay === 'none') {
|
|
105
109
|
setListDisplay('block');
|
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.57",
|
|
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",
|
|
@@ -62,6 +62,8 @@ const DownloadButton = ({
|
|
|
62
62
|
...queryVariables,
|
|
63
63
|
page: 0,
|
|
64
64
|
first: 10000,
|
|
65
|
+
order_by: table.sortBy,
|
|
66
|
+
sort_direction: table.sortOrder,
|
|
65
67
|
},
|
|
66
68
|
})
|
|
67
69
|
.then((response) => {
|
|
@@ -85,6 +87,8 @@ const DownloadButton = ({
|
|
|
85
87
|
...queryVariables,
|
|
86
88
|
page: 0,
|
|
87
89
|
first: 10000,
|
|
90
|
+
order_by: table.sortBy,
|
|
91
|
+
sort_direction: table.sortOrder,
|
|
88
92
|
},
|
|
89
93
|
})
|
|
90
94
|
.then((response) => {
|
|
@@ -99,12 +103,12 @@ const DownloadButton = ({
|
|
|
99
103
|
const downloadTableCSV = useCallback(() => {
|
|
100
104
|
downloadSCSVFile();
|
|
101
105
|
setListDisplay('none');
|
|
102
|
-
}, [queryVariables]);
|
|
106
|
+
}, [queryVariables, table]);
|
|
103
107
|
|
|
104
108
|
const downloadTableJson = useCallback(() => {
|
|
105
109
|
downloadJsonFile();
|
|
106
110
|
setListDisplay('none');
|
|
107
|
-
}, [queryVariables]);
|
|
111
|
+
}, [queryVariables, table]);
|
|
108
112
|
|
|
109
113
|
const handleClickButton = () => {
|
|
110
114
|
if (listDisplay === 'none') {
|