@datorama/core 21.4.0-rc.10 → 21.4.0-rc.11
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 +7 -6
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +2 -2
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/datorama-core.metadata.json +1 -1
- package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +3 -3
- package/esm2015/lib/grid-v2/grid-filter/grid-filter.component.js +2 -2
- package/esm2015/lib/grid-v2/grid-filter/grid-filter.types.js +1 -1
- package/esm2015/lib/grid-v2/grid-store/grid.query.js +4 -3
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +2 -2
- package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +3 -3
- package/esm5/lib/grid-v2/grid-filter/grid-filter.component.js +2 -2
- package/esm5/lib/grid-v2/grid-filter/grid-filter.types.js +1 -1
- package/esm5/lib/grid-v2/grid-store/grid.query.js +4 -3
- package/esm5/lib/grid-v2/grid-store/grid.service.js +2 -2
- package/fesm2015/datorama-core.js +7 -6
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +7 -6
- package/fesm5/datorama-core.js.map +1 -1
- package/lib/grid-v2/grid-controller/grid-controller.component.d.ts +1 -1
- package/lib/grid-v2/grid-filter/grid-filter.types.d.ts +1 -0
- package/lib/grid-v2/grid-store/grid.service.d.ts +1 -1
- package/package.json +1 -1
package/fesm5/datorama-core.js
CHANGED
|
@@ -11419,8 +11419,9 @@ var GridQuery = /** @class */ (function (_super) {
|
|
|
11419
11419
|
GridQuery.prototype.filterChanged = function () {
|
|
11420
11420
|
return this.selectFilter().pipe(map$1(function (filter) {
|
|
11421
11421
|
return Object.keys(filter).reduce(function (filters, field) {
|
|
11422
|
-
|
|
11423
|
-
|
|
11422
|
+
var datoFilter = filter[field];
|
|
11423
|
+
if (datoFilter) {
|
|
11424
|
+
filters.push({ colId: datoFilter.colId, field: field, filter: datoFilter });
|
|
11424
11425
|
}
|
|
11425
11426
|
return filters;
|
|
11426
11427
|
}, []);
|
|
@@ -12759,7 +12760,7 @@ var DatoGridFilterComponent = /** @class */ (function () {
|
|
|
12759
12760
|
DatoGridFilterComponent.prototype.buildFilter = function () {
|
|
12760
12761
|
var _this = this;
|
|
12761
12762
|
var _a = this.filterForm.value, byValue = _a.byValue, conditional = _a.conditional;
|
|
12762
|
-
var filter = {};
|
|
12763
|
+
var filter = { colId: this.colDef.colId };
|
|
12763
12764
|
filter.pivotKeys = this.pivotKeys;
|
|
12764
12765
|
if (this.pivotColumn) {
|
|
12765
12766
|
filter.pivotFieldsMap = this.getPivotFields(this.pivotColumn.getParent()).reduce(function (fieldMap, field, index) {
|
|
@@ -14166,7 +14167,7 @@ var GridService = /** @class */ (function () {
|
|
|
14166
14167
|
this.notifyFilterUpdate();
|
|
14167
14168
|
}
|
|
14168
14169
|
};
|
|
14169
|
-
GridService.prototype.
|
|
14170
|
+
GridService.prototype.setGridFilters = function (filters) {
|
|
14170
14171
|
var e_2, _a;
|
|
14171
14172
|
try {
|
|
14172
14173
|
for (var filters_1 = __values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {
|
|
@@ -15304,8 +15305,8 @@ var DatoGridControllerComponent = /** @class */ (function () {
|
|
|
15304
15305
|
DatoGridControllerComponent.prototype.setGridRows = function (data) {
|
|
15305
15306
|
this.gridService.setRows(data);
|
|
15306
15307
|
};
|
|
15307
|
-
DatoGridControllerComponent.prototype.
|
|
15308
|
-
this.gridService.
|
|
15308
|
+
DatoGridControllerComponent.prototype.setGridFilters = function (filters) {
|
|
15309
|
+
this.gridService.setGridFilters(filters);
|
|
15309
15310
|
};
|
|
15310
15311
|
DatoGridControllerComponent.prototype.onFilterChanged = function () {
|
|
15311
15312
|
return this.gridQuery.filterChanged();
|