@firestitch/filter 9.9.3 → 9.9.4
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 +10 -10
- 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/services/external-params-controller.service.js +13 -13
- package/esm5/app/services/external-params-controller.service.js +13 -13
- package/fesm2015/firestitch-filter.js +11 -11
- package/fesm2015/firestitch-filter.js.map +1 -1
- package/fesm5/firestitch-filter.js +11 -11
- package/fesm5/firestitch-filter.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends, __assign, __decorate, __metadata, __spread, __param, __values, __read } from 'tslib';
|
|
2
2
|
import { Injectable, Optional, Inject, Component, ChangeDetectionStrategy, InjectionToken, ChangeDetectorRef, HostListener, Input, Injector, Directive, EventEmitter, NgZone, Output, ContentChild, TemplateRef, ViewChild, ElementRef, HostBinding, ViewEncapsulation, KeyValueDiffers, Pipe, Self, NgModule } from '@angular/core';
|
|
3
3
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
4
|
-
import { BehaviorSubject, Subject, isObservable, forkJoin,
|
|
4
|
+
import { BehaviorSubject, Subject, isObservable, forkJoin, of, fromEvent, combineLatest, merge, timer } from 'rxjs';
|
|
5
5
|
import { tap, finalize, take, takeUntil, debounceTime, filter as filter$1, distinctUntilChanged, switchMap, skip, map, mapTo, startWith, delay } from 'rxjs/operators';
|
|
6
6
|
import { isFunction, clone, isObject, isString, toString, pickBy } from 'lodash-es';
|
|
7
7
|
import { Alias, Model } from 'tsmodels';
|
|
@@ -2461,10 +2461,8 @@ var ExternalParamsController = /** @class */ (function () {
|
|
|
2461
2461
|
this._initSavedFilters();
|
|
2462
2462
|
this._pending$.next(true);
|
|
2463
2463
|
if (this._savedFilters.enabled) {
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
this._savedFilters.load(),
|
|
2467
|
-
])
|
|
2464
|
+
this._savedFilters
|
|
2465
|
+
.load()
|
|
2468
2466
|
.pipe(takeUntil(this._destroy$))
|
|
2469
2467
|
.subscribe(function () {
|
|
2470
2468
|
_this._savedFilters.updateActiveFilter();
|
|
@@ -2474,12 +2472,8 @@ var ExternalParamsController = /** @class */ (function () {
|
|
|
2474
2472
|
});
|
|
2475
2473
|
}
|
|
2476
2474
|
else {
|
|
2477
|
-
this.
|
|
2478
|
-
|
|
2479
|
-
.subscribe(function () {
|
|
2480
|
-
_this._initItemsValues();
|
|
2481
|
-
_this._pending$.next(false);
|
|
2482
|
-
});
|
|
2475
|
+
this._initItemsValues();
|
|
2476
|
+
this._pending$.next(false);
|
|
2483
2477
|
}
|
|
2484
2478
|
this._listenItemsChange();
|
|
2485
2479
|
};
|
|
@@ -2512,6 +2506,12 @@ var ExternalParamsController = /** @class */ (function () {
|
|
|
2512
2506
|
};
|
|
2513
2507
|
ExternalParamsController.prototype._listenItemsChange = function () {
|
|
2514
2508
|
var _this = this;
|
|
2509
|
+
this._itemsStore.ready$
|
|
2510
|
+
.pipe(filter$1(function (v) { return v; }), take(1), takeUntil(this._destroy$))
|
|
2511
|
+
.subscribe(function () {
|
|
2512
|
+
_this._saveQueryParams();
|
|
2513
|
+
_this._savePersistedParams();
|
|
2514
|
+
});
|
|
2515
2515
|
this._itemsStore
|
|
2516
2516
|
.itemsChange$
|
|
2517
2517
|
.pipe(takeUntil(this._destroy$))
|