@datorama/core 21.4.0-rc.16 → 21.4.0-rc.17
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 +3 -4
- 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-filter/grid-filter.component.js +4 -5
- package/esm5/lib/grid-v2/grid-filter/grid-filter.component.js +4 -5
- package/fesm2015/datorama-core.js +3 -4
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +3 -4
- package/fesm5/datorama-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -12824,19 +12824,18 @@
|
|
|
12824
12824
|
var _a;
|
|
12825
12825
|
var _this = this;
|
|
12826
12826
|
var _b = this.popover.data, gridService = _b.gridService, gridQuery = _b.gridQuery;
|
|
12827
|
-
var _c = this.colDef, filter = _c.filter, pivotValueColumn = _c.pivotValueColumn, pivotKeys = _c.pivotKeys;
|
|
12827
|
+
var _c = this.colDef, filter = _c.filter, _d = _c.filtersConfig, filtersConfig = _d === void 0 ? {} : _d, pivotValueColumn = _c.pivotValueColumn, pivotKeys = _c.pivotKeys;
|
|
12828
12828
|
var colDefs = gridQuery.api.columns.getAllColumns().map(function (column) { return column.getColDef(); });
|
|
12829
12829
|
this.colField = getColField(this.colDef);
|
|
12830
12830
|
var colDef = colDefs.find(function (colDef) { return colDef.field === _this.colField; });
|
|
12831
|
-
var
|
|
12831
|
+
var colFilter = filter || colDef.filter;
|
|
12832
|
+
var filterOptions = DatoGridFilterOptionsMap[colFilter];
|
|
12832
12833
|
this.pivotColumn = gridQuery.api.columns.getSecondaryPivotColumn(pivotKeys, pivotValueColumn);
|
|
12833
12834
|
if (filtersConfig.sections) {
|
|
12834
12835
|
this.filterSections = (_a = {}, _a[filtersConfig.sections] = true, _a);
|
|
12835
12836
|
}
|
|
12836
12837
|
this.keepPredefinedListOriginalOrder =
|
|
12837
12838
|
filtersConfig.keepPredefinedListOriginalOrder && !isEmpty(filtersConfig.predefinedListValues);
|
|
12838
|
-
var colFilter = filter || colDef.filter;
|
|
12839
|
-
var filterOptions = DatoGridFilterOptionsMap[colFilter];
|
|
12840
12839
|
this.filterType = filterOptions ? colFilter : exports.DatoGridFilterTypes.String;
|
|
12841
12840
|
this.listLabelType = this.filterType.toLowerCase();
|
|
12842
12841
|
this.listSortByKey = this.filterType === exports.DatoGridFilterTypes.Number && this.colDef.valueFormatter ? 'id' : 'label';
|