@veloceapps/sdk 8.0.0-52 → 8.0.0-54
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/src/guards/product-unload.guard.mjs +4 -1
- package/fesm2015/veloceapps-sdk.mjs +3 -0
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +3 -0
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
- package/src/guards/product-unload.guard.d.ts +2 -2
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Component } from '@angular/core';
|
2
|
-
import { ActivatedRouteSnapshot, CanDeactivate, Router, RouterStateSnapshot } from '@angular/router';
|
2
|
+
import { ActivatedRouteSnapshot, CanDeactivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
|
3
3
|
import { ConfigurationService, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
|
4
4
|
import { Observable } from 'rxjs';
|
5
5
|
import { FlowDialogService } from '../services/flow-dialog.service';
|
@@ -11,7 +11,7 @@ export declare class ProductUnloadGuard implements CanDeactivate<any> {
|
|
11
11
|
private configurationService;
|
12
12
|
private flowDialogService;
|
13
13
|
constructor(router: Router, contextService: ContextService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowDialogService: FlowDialogService);
|
14
|
-
canDeactivate(_: Component, route: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean>;
|
14
|
+
canDeactivate(_: Component, route: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean | UrlTree>;
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductUnloadGuard, never>;
|
16
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProductUnloadGuard>;
|
17
17
|
}
|