@nokecy/qc-ui 0.9.1 → 0.9.3
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.
|
@@ -112,8 +112,10 @@ function AgGridPlus(props) {
|
|
|
112
112
|
return {
|
|
113
113
|
resizable: true,
|
|
114
114
|
sortable: true,
|
|
115
|
-
suppressHeaderFilterButton: true,
|
|
115
|
+
// suppressHeaderFilterButton: true,
|
|
116
116
|
suppressFillHandle: true,
|
|
117
|
+
filter: true,
|
|
118
|
+
// floatingFilter:true,
|
|
117
119
|
headerComponentParams: {
|
|
118
120
|
template: '<div class="ag-cell-label-container" role="presentation">' +
|
|
119
121
|
// '<span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button"></span>' +
|
|
@@ -284,18 +286,20 @@ function AgGridPlus(props) {
|
|
|
284
286
|
var calculateArrCopy = [];
|
|
285
287
|
var calculateData = {};
|
|
286
288
|
calcColFields.map(function (i) {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
289
|
+
if (!i.cellRenderer) {
|
|
290
|
+
switch (i.calculateType) {
|
|
291
|
+
case "sum":
|
|
292
|
+
calculateData[i.field] = sumFun(i.field);
|
|
293
|
+
break;
|
|
294
|
+
case "avg":
|
|
295
|
+
calculateData[i.field] = avgFun(i.field);
|
|
296
|
+
break;
|
|
297
|
+
case "standardDeviation":
|
|
298
|
+
calculateData[i.field] = standardDeviationFun(i.field);
|
|
299
|
+
break;
|
|
300
|
+
default:
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
299
303
|
}
|
|
300
304
|
});
|
|
301
305
|
if (Object.keys(calculateData).length > 0) {
|
|
@@ -103,8 +103,10 @@ function AgGridPlus(props) {
|
|
|
103
103
|
return {
|
|
104
104
|
resizable: true,
|
|
105
105
|
sortable: true,
|
|
106
|
-
suppressHeaderFilterButton: true,
|
|
106
|
+
// suppressHeaderFilterButton: true,
|
|
107
107
|
suppressFillHandle: true,
|
|
108
|
+
filter: true,
|
|
109
|
+
// floatingFilter:true,
|
|
108
110
|
headerComponentParams: {
|
|
109
111
|
template: '<div class="ag-cell-label-container" role="presentation">' +
|
|
110
112
|
// '<span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button"></span>' +
|
|
@@ -275,18 +277,20 @@ function AgGridPlus(props) {
|
|
|
275
277
|
var calculateArrCopy = [];
|
|
276
278
|
var calculateData = {};
|
|
277
279
|
calcColFields.map(function (i) {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
280
|
+
if (!i.cellRenderer) {
|
|
281
|
+
switch (i.calculateType) {
|
|
282
|
+
case "sum":
|
|
283
|
+
calculateData[i.field] = sumFun(i.field);
|
|
284
|
+
break;
|
|
285
|
+
case "avg":
|
|
286
|
+
calculateData[i.field] = avgFun(i.field);
|
|
287
|
+
break;
|
|
288
|
+
case "standardDeviation":
|
|
289
|
+
calculateData[i.field] = standardDeviationFun(i.field);
|
|
290
|
+
break;
|
|
291
|
+
default:
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
290
294
|
}
|
|
291
295
|
});
|
|
292
296
|
if (Object.keys(calculateData).length > 0) {
|