monkey-front-core 0.0.401 → 0.0.402
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/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +7 -2
- package/fesm2015/monkey-front-core.mjs +7 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +7 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +1 -0
- package/monkey-front-core-0.0.402.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.401.tgz +0 -0
|
@@ -7,7 +7,7 @@ import { CommonModule, formatNumber, CurrencyPipe } from '@angular/common';
|
|
|
7
7
|
import * as i1$1 from '@ngx-translate/core';
|
|
8
8
|
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
9
9
|
import * as moment_ from 'moment';
|
|
10
|
-
import { map, catchError, filter,
|
|
10
|
+
import { map, catchError, filter, takeWhile, take, first, takeUntil, mergeMap, finalize } from 'rxjs/operators';
|
|
11
11
|
import { throwError, BehaviorSubject, Subscription, interval, concat, of, Subject, from } from 'rxjs';
|
|
12
12
|
import * as i1$2 from '@angular/common/http';
|
|
13
13
|
import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
@@ -2720,6 +2720,7 @@ class MonkeyEcxCommonsService {
|
|
|
2720
2720
|
this.tokenStorage = tokenStorage;
|
|
2721
2721
|
this.otherArgs = otherArgs;
|
|
2722
2722
|
this.flagValidator = true;
|
|
2723
|
+
this.destroyed = false;
|
|
2723
2724
|
this.__data$ = null;
|
|
2724
2725
|
this.__pagination$ = null;
|
|
2725
2726
|
this.__control$ = null;
|
|
@@ -2756,10 +2757,13 @@ class MonkeyEcxCommonsService {
|
|
|
2756
2757
|
this.otherArgs.router.events
|
|
2757
2758
|
.pipe(filter((event) => {
|
|
2758
2759
|
return event instanceof NavigationStart;
|
|
2759
|
-
}),
|
|
2760
|
+
}), takeWhile(() => {
|
|
2761
|
+
return !this.destroyed;
|
|
2762
|
+
}))
|
|
2760
2763
|
.subscribe(() => {
|
|
2761
2764
|
console.log('veio destruir o schedule');
|
|
2762
2765
|
console.log(context);
|
|
2766
|
+
console.log(context.__schedule);
|
|
2763
2767
|
console.log(this.__schedule);
|
|
2764
2768
|
console.log(clearOnChangeRoute);
|
|
2765
2769
|
if (this.__schedule && clearOnChangeRoute) {
|
|
@@ -2884,6 +2888,7 @@ class MonkeyEcxCommonsService {
|
|
|
2884
2888
|
this.__error = null;
|
|
2885
2889
|
this.__handledError = null;
|
|
2886
2890
|
this.flagValidator = false;
|
|
2891
|
+
this.destroyed = true;
|
|
2887
2892
|
}
|
|
2888
2893
|
resolve(route, state, otherArgs) {
|
|
2889
2894
|
if (JSON.stringify(route?.queryParams) === '{}') {
|