@datorama/core 21.4.0-rc.18 → 21.4.0-rc.19
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/bundles/datorama-core.umd.js +19 -17
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +1 -1
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +12 -10
- package/esm5/lib/grid-v2/grid-store/grid.service.js +20 -18
- package/fesm2015/datorama-core.js +11 -9
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +19 -17
- package/fesm5/datorama-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -14377,27 +14377,29 @@
|
|
|
14377
14377
|
};
|
|
14378
14378
|
GridService.prototype.setGridFilters = function (filters) {
|
|
14379
14379
|
var e_2, _a;
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
var
|
|
14383
|
-
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14380
|
+
if (this.api) {
|
|
14381
|
+
try {
|
|
14382
|
+
for (var filters_1 = __values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {
|
|
14383
|
+
var filter = filters_1_1.value.filter;
|
|
14384
|
+
var column = this.api.columns.getColumn(filter.colId);
|
|
14385
|
+
if (column) {
|
|
14386
|
+
this.setColumnFilter(column, filter);
|
|
14387
|
+
}
|
|
14388
|
+
else {
|
|
14389
|
+
var pivotColumn = this.gridQuery.getSecondaryColumn(filter.colId);
|
|
14390
|
+
this.setColumnFilter(pivotColumn, filter);
|
|
14391
|
+
}
|
|
14390
14392
|
}
|
|
14391
14393
|
}
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14394
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
14395
|
+
finally {
|
|
14396
|
+
try {
|
|
14397
|
+
if (filters_1_1 && !filters_1_1.done && (_a = filters_1.return)) _a.call(filters_1);
|
|
14398
|
+
}
|
|
14399
|
+
finally { if (e_2) throw e_2.error; }
|
|
14397
14400
|
}
|
|
14398
|
-
|
|
14401
|
+
this.notifyFilterUpdate();
|
|
14399
14402
|
}
|
|
14400
|
-
this.notifyFilterUpdate();
|
|
14401
14403
|
};
|
|
14402
14404
|
GridService.prototype.updateFilter = function (column, filter) {
|
|
14403
14405
|
var colField = getColField(column.getColDef());
|