@firestitch/filter 12.0.2 → 12.0.5
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/firestitch-filter.umd.js +12 -3
- package/bundles/firestitch-filter.umd.js.map +1 -1
- package/esm2015/app/models/filter-config.js +3 -3
- package/esm2015/app/services/items-store.service.js +10 -2
- package/esm2015/public_api.js +2 -1
- package/fesm2015/firestitch-filter.js +12 -4
- package/fesm2015/firestitch-filter.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -991,7 +991,7 @@
|
|
|
991
991
|
_this.sort = null;
|
|
992
992
|
_this.sortDirection = null;
|
|
993
993
|
_this.queryParam = false;
|
|
994
|
-
_this.case = '
|
|
994
|
+
_this.case = 'camel';
|
|
995
995
|
_this._fromJSON(data);
|
|
996
996
|
_this._init();
|
|
997
997
|
return _this;
|
|
@@ -1019,7 +1019,7 @@
|
|
|
1019
1019
|
FsFilterConfig.prototype._fromJSON = function (value) {
|
|
1020
1020
|
var _a;
|
|
1021
1021
|
_super.prototype._fromJSON.call(this, value);
|
|
1022
|
-
this.case = (_a = value.case) !== null && _a !== void 0 ? _a : '
|
|
1022
|
+
this.case = (_a = value.case) !== null && _a !== void 0 ? _a : 'camel';
|
|
1023
1023
|
if (this.persist) {
|
|
1024
1024
|
if (typeof this.persist === 'object') {
|
|
1025
1025
|
if (this.persist.name) {
|
|
@@ -2134,7 +2134,15 @@
|
|
|
2134
2134
|
item.model = values[item.name];
|
|
2135
2135
|
}
|
|
2136
2136
|
else {
|
|
2137
|
-
item
|
|
2137
|
+
if (item instanceof RangeItem) {
|
|
2138
|
+
item.clearRange(null, item.defaultValue);
|
|
2139
|
+
}
|
|
2140
|
+
else if (item instanceof BaseDateRangeItem) {
|
|
2141
|
+
item.clearDateRange(null, item.defaultValue);
|
|
2142
|
+
}
|
|
2143
|
+
else {
|
|
2144
|
+
item.clear();
|
|
2145
|
+
}
|
|
2138
2146
|
}
|
|
2139
2147
|
});
|
|
2140
2148
|
if (this.sortByItem) {
|
|
@@ -5462,6 +5470,7 @@
|
|
|
5462
5470
|
exports.SavedFiltersController = SavedFiltersController;
|
|
5463
5471
|
exports.SelectItem = SelectItem;
|
|
5464
5472
|
exports.TextItem = TextItem;
|
|
5473
|
+
exports.buildQueryParams = buildQueryParams;
|
|
5465
5474
|
exports.filterFromQueryParam = filterFromQueryParam;
|
|
5466
5475
|
exports.filterToQueryParam = filterToQueryParam;
|
|
5467
5476
|
|