@visns-studio/visns-components 1.5.12 → 1.6.2
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.
|
@@ -102,7 +102,9 @@ const DataGrid = forwardRef(
|
|
|
102
102
|
columns,
|
|
103
103
|
settings,
|
|
104
104
|
setFilterData,
|
|
105
|
+
setTotal,
|
|
105
106
|
style,
|
|
107
|
+
minHeight = 550,
|
|
106
108
|
tableFilters,
|
|
107
109
|
historySearch,
|
|
108
110
|
historyUrl,
|
|
@@ -157,6 +159,12 @@ const DataGrid = forwardRef(
|
|
|
157
159
|
setFilterData([params.filterValue]);
|
|
158
160
|
}
|
|
159
161
|
|
|
162
|
+
if (setTotal) {
|
|
163
|
+
sqlResult.then((res) => {
|
|
164
|
+
setTotal(res.count);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
160
168
|
return sqlResult;
|
|
161
169
|
},
|
|
162
170
|
[ajaxSetting, dataReload, dSearch]
|
|
@@ -1618,7 +1626,12 @@ const DataGrid = forwardRef(
|
|
|
1618
1626
|
// Data Grid Styling
|
|
1619
1627
|
const [windowHeight, setWindowHeight] = useState(window.innerHeight);
|
|
1620
1628
|
const gridStyle = {
|
|
1621
|
-
minHeight:
|
|
1629
|
+
minHeight:
|
|
1630
|
+
minHeight !== 550
|
|
1631
|
+
? minHeight
|
|
1632
|
+
: windowHeight * 0.7 > 550
|
|
1633
|
+
? windowHeight * 0.7
|
|
1634
|
+
: 550,
|
|
1622
1635
|
boxShadow: "none",
|
|
1623
1636
|
};
|
|
1624
1637
|
const headerProps = {
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-dom": "^17.0.1"
|
|
36
36
|
},
|
|
37
37
|
"name": "@visns-studio/visns-components",
|
|
38
|
-
"version": "1.
|
|
38
|
+
"version": "1.6.2",
|
|
39
39
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
40
40
|
"main": "index.js",
|
|
41
41
|
"devDependencies": {},
|