@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
package/fesm5/datorama-core.js
CHANGED
|
@@ -14178,27 +14178,29 @@ var GridService = /** @class */ (function () {
|
|
|
14178
14178
|
};
|
|
14179
14179
|
GridService.prototype.setGridFilters = function (filters) {
|
|
14180
14180
|
var e_2, _a;
|
|
14181
|
-
|
|
14182
|
-
|
|
14183
|
-
var
|
|
14184
|
-
|
|
14185
|
-
|
|
14186
|
-
|
|
14187
|
-
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14181
|
+
if (this.api) {
|
|
14182
|
+
try {
|
|
14183
|
+
for (var filters_1 = __values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {
|
|
14184
|
+
var filter = filters_1_1.value.filter;
|
|
14185
|
+
var column = this.api.columns.getColumn(filter.colId);
|
|
14186
|
+
if (column) {
|
|
14187
|
+
this.setColumnFilter(column, filter);
|
|
14188
|
+
}
|
|
14189
|
+
else {
|
|
14190
|
+
var pivotColumn = this.gridQuery.getSecondaryColumn(filter.colId);
|
|
14191
|
+
this.setColumnFilter(pivotColumn, filter);
|
|
14192
|
+
}
|
|
14191
14193
|
}
|
|
14192
14194
|
}
|
|
14193
|
-
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
|
|
14197
|
-
|
|
14195
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
14196
|
+
finally {
|
|
14197
|
+
try {
|
|
14198
|
+
if (filters_1_1 && !filters_1_1.done && (_a = filters_1.return)) _a.call(filters_1);
|
|
14199
|
+
}
|
|
14200
|
+
finally { if (e_2) throw e_2.error; }
|
|
14198
14201
|
}
|
|
14199
|
-
|
|
14202
|
+
this.notifyFilterUpdate();
|
|
14200
14203
|
}
|
|
14201
|
-
this.notifyFilterUpdate();
|
|
14202
14204
|
};
|
|
14203
14205
|
GridService.prototype.updateFilter = function (column, filter) {
|
|
14204
14206
|
var colField = getColField(column.getColDef());
|