@posiwise/user-module 0.0.174 → 0.0.175

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": "@posiwise/user-module",
3
- "version": "0.0.174",
3
+ "version": "0.0.175",
4
4
  "peerDependencies": {
5
5
  "@airwallex/components-sdk": "^1.35.2",
6
6
  "@angular/cdk": "^22.2.0",
@@ -10,6 +10,7 @@ import { NgxGpAutocompleteDirective } from "@angular-magic/ngx-gp-autocomplete";
10
10
  import { AppBaseComponent } from "@posiwise/app-base-component";
11
11
  import { AuthService, CommonService, CustomToastService, GeoService, PermissionService, ProductService, ProfileService, QualificationService, ScriptLoaderService, SubscriptionService, TagService, UserService } from "@posiwise/common-services";
12
12
  import { Country, PRODUCT_CATEGORY, Product, Project, Subscription, TAG_ENTITY, TAG_TYPE, User } from "@posiwise/common-utilities";
13
+ import { HasUnsavedChanges, UnsavedChangesService } from "@posiwise/core-guards";
13
14
  import * as i40 from "@posiwise/shared-components";
14
15
  import { ConfirmDialogService, PasswordValidationComponent } from "@posiwise/shared-components";
15
16
  import { Observable, Subscription as Subscription$1 } from "rxjs";
@@ -55,7 +56,7 @@ export declare class AccountComponent {
55
56
  declare namespace account_details_component_d_exports {
56
57
  export { AccountDetailsComponent };
57
58
  }
58
- export declare class AccountDetailsComponent extends AppBaseComponent implements OnInit {
59
+ export declare class AccountDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy, HasUnsavedChanges {
59
60
  private readonly fb;
60
61
  private readonly modalService;
61
62
  private readonly authService;
@@ -63,6 +64,7 @@ export declare class AccountDetailsComponent extends AppBaseComponent implements
63
64
  private readonly profileService;
64
65
  private readonly cdr;
65
66
  private readonly confirmDialog;
67
+ private readonly unsavedChanges;
66
68
  placesRef: NgxGpAutocompleteDirective;
67
69
  passwordRef: ElementRef;
68
70
  emailForm: UntypedFormGroup;
@@ -98,8 +100,11 @@ export declare class AccountDetailsComponent extends AppBaseComponent implements
98
100
  last_used_at: string | null;
99
101
  }[];
100
102
  loadingConnections: boolean;
101
- constructor(fb: UntypedFormBuilder, modalService: NgbModal, authService: AuthService, geoService: GeoService, profileService: ProfileService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
103
+ private unregisterUnsaved;
104
+ constructor(fb: UntypedFormBuilder, modalService: NgbModal, authService: AuthService, geoService: GeoService, profileService: ProfileService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService, unsavedChanges: UnsavedChangesService);
102
105
  ngOnInit(): void;
106
+ ngOnDestroy(): void;
107
+ hasUnsavedChanges(): boolean;
103
108
  handleAddressChange(_event: any): void;
104
109
  private getUserProfile;
105
110
  /**
@@ -382,11 +387,13 @@ interface CurrentItem {
382
387
  declare namespace subscription_credential_component_d_exports {
383
388
  export { SubscriptionCredentialComponent };
384
389
  }
385
- export declare class SubscriptionCredentialComponent extends AppBaseComponent implements OnInit, OnDestroy {
390
+ export declare class SubscriptionCredentialComponent extends AppBaseComponent implements OnInit, OnDestroy, HasUnsavedChanges {
386
391
  private readonly fb;
387
392
  private readonly subscriptionService;
388
393
  private readonly cdr;
394
+ private readonly unsavedChanges;
389
395
  private credentialToEdit;
396
+ private unregisterUnsaved;
390
397
  passwordValidationModalForRevealCredential: PasswordValidationComponent;
391
398
  passwordValidationModalForEditCredential: PasswordValidationComponent;
392
399
  passwordValidationModalForAddCredential: PasswordValidationComponent;
@@ -408,8 +415,9 @@ export declare class SubscriptionCredentialComponent extends AppBaseComponent im
408
415
  credentialSaved: string;
409
416
  credentialName: string;
410
417
  credentialToReveal: any;
411
- constructor(fb: UntypedFormBuilder, subscriptionService: SubscriptionService, injector: Injector, cdr: ChangeDetectorRef);
418
+ constructor(fb: UntypedFormBuilder, subscriptionService: SubscriptionService, injector: Injector, cdr: ChangeDetectorRef, unsavedChanges: UnsavedChangesService);
412
419
  ngOnInit(): void;
420
+ hasUnsavedChanges(): boolean;
413
421
  get credentialsGroup(): UntypedFormArray;
414
422
  /** Function to get all credentials */
415
423
  private getAllCredentials;