@firestitch/filter 9.9.1 → 9.9.3
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 -6
- package/bundles/firestitch-filter.umd.js.map +1 -1
- package/bundles/firestitch-filter.umd.min.js +1 -1
- package/bundles/firestitch-filter.umd.min.js.map +1 -1
- package/esm2015/app/models/items/base-item.js +2 -2
- package/esm2015/app/services/external-params-controller.service.js +12 -6
- package/esm2015/app/services/items-store.service.js +2 -2
- package/esm5/app/models/items/base-item.js +2 -2
- package/esm5/app/services/external-params-controller.service.js +12 -6
- package/esm5/app/services/items-store.service.js +2 -2
- package/fesm2015/firestitch-filter.js +13 -7
- package/fesm2015/firestitch-filter.js.map +1 -1
- package/fesm5/firestitch-filter.js +13 -7
- package/fesm5/firestitch-filter.js.map +1 -1
- package/package.json +1 -1
|
@@ -494,6 +494,7 @@
|
|
|
494
494
|
});
|
|
495
495
|
BaseItem.prototype.loadDefaultValue = function () {
|
|
496
496
|
var _this = this;
|
|
497
|
+
this._pendingDefaultValue = true;
|
|
497
498
|
return this.defaultValueFn()
|
|
498
499
|
.pipe(operators.tap(function (value) {
|
|
499
500
|
_this.defaultValue = value;
|
|
@@ -566,7 +567,6 @@
|
|
|
566
567
|
this.label = item.label;
|
|
567
568
|
this.chipLabel = item.chipLabel;
|
|
568
569
|
if (typeof item.default === 'function') {
|
|
569
|
-
this._pendingDefaultValue = true;
|
|
570
570
|
this.defaultValueFn = item.default;
|
|
571
571
|
}
|
|
572
572
|
else {
|
|
@@ -1869,7 +1869,7 @@
|
|
|
1869
1869
|
var _this = this;
|
|
1870
1870
|
var pendingItems = this.items
|
|
1871
1871
|
.filter(function (item) {
|
|
1872
|
-
return item.
|
|
1872
|
+
return item.defaultValueFn
|
|
1873
1873
|
&& (item.persistedValue === null || item.persistedValue === undefined);
|
|
1874
1874
|
});
|
|
1875
1875
|
if (pendingItems.length > 0) {
|
|
@@ -2647,8 +2647,10 @@
|
|
|
2647
2647
|
this._initSavedFilters();
|
|
2648
2648
|
this._pending$.next(true);
|
|
2649
2649
|
if (this._savedFilters.enabled) {
|
|
2650
|
-
|
|
2651
|
-
.
|
|
2650
|
+
rxjs.combineLatest([
|
|
2651
|
+
this._itemsStore.ready$,
|
|
2652
|
+
this._savedFilters.load(),
|
|
2653
|
+
])
|
|
2652
2654
|
.pipe(operators.takeUntil(this._destroy$))
|
|
2653
2655
|
.subscribe(function () {
|
|
2654
2656
|
_this._savedFilters.updateActiveFilter();
|
|
@@ -2658,8 +2660,12 @@
|
|
|
2658
2660
|
});
|
|
2659
2661
|
}
|
|
2660
2662
|
else {
|
|
2661
|
-
this.
|
|
2662
|
-
|
|
2663
|
+
this._itemsStore.ready$
|
|
2664
|
+
.pipe(operators.takeUntil(this._destroy$))
|
|
2665
|
+
.subscribe(function () {
|
|
2666
|
+
_this._initItemsValues();
|
|
2667
|
+
_this._pending$.next(false);
|
|
2668
|
+
});
|
|
2663
2669
|
}
|
|
2664
2670
|
this._listenItemsChange();
|
|
2665
2671
|
};
|