dolfo-angular 1.220.0 → 1.222.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dolfo-angular",
3
- "version": "1.220.0",
3
+ "version": "1.222.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.0.5",
6
6
  "@angular/core": "^22.0.5",
@@ -6,7 +6,7 @@ import * as i10 from '@angular/forms';
6
6
  import { FormControl, ValidatorFn, ValidationErrors, ControlValueAccessor, Validator, AbstractControl, FormGroup, FormGroupDirective } from '@angular/forms';
7
7
  import * as i9 from '@angular/common';
8
8
  import { DecimalPipe } from '@angular/common';
9
- import { CanActivate, ActivatedRouteSnapshot, Router, CanActivateFn, Route } from '@angular/router';
9
+ import { CanActivate, ActivatedRouteSnapshot, Router, CanDeactivateFn, CanActivateFn, Route } from '@angular/router';
10
10
  import * as _angular_platform_browser from '@angular/platform-browser';
11
11
  import { DomSanitizer } from '@angular/platform-browser';
12
12
  import * as _angular_common_http from '@angular/common/http';
@@ -565,10 +565,12 @@ declare class RouteConfig {
565
565
  private pathMatch;
566
566
  private title;
567
567
  private canActivate;
568
+ private canDeactivate;
568
569
  constructor(path: string, withRouteCheck?: boolean);
569
570
  withTitle: (title: typeof this.title) => this;
570
571
  loadUrl: (imp: Promise<Module>) => this;
571
572
  withRedirect: (url: string) => this;
573
+ addCanDeactivate: (guard: CanDeactivateFn<any> | ProviderToken<any> | Array<CanDeactivateFn<any> | ProviderToken<any>>) => this;
572
574
  addGuard: (guard: CanActivateFn | ProviderToken<any> | string | Array<CanActivateFn | ProviderToken<any> | string>) => this;
573
575
  toRoute: () => Route;
574
576
  }