@arsedizioni/ars-utils 20.0.18 → 20.0.20

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/ui/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnInit } from '@angular/core';
3
3
  import * as i1 from '@arsedizioni/ars-utils/core';
4
+ import { PasswordStrength } from '@arsedizioni/ars-utils/core';
4
5
  import { MatPaginatorIntl } from '@angular/material/paginator';
5
6
  import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
6
7
  import { MatSnackBarRef } from '@angular/material/snack-bar';
@@ -16,19 +17,19 @@ interface DialogOption {
16
17
  description: string;
17
18
  }
18
19
  interface RecoverPasswordDialogResult {
19
- email: string;
20
- recaptcha: boolean;
20
+ email?: string;
21
+ recaptcha?: boolean;
21
22
  }
22
23
  interface ResetPasswordDialogResult {
23
- userId: number;
24
- userEmail: string;
25
- oldPassword: string;
26
- password: string;
27
- password2: string;
24
+ userId?: number;
25
+ userEmail?: string;
26
+ oldPassword?: string;
27
+ password?: string;
28
+ password2?: string;
28
29
  }
29
30
  interface CredentialsDialogResult {
30
- user: string;
31
- password: string;
31
+ user?: string;
32
+ password?: string;
32
33
  rememberMe?: boolean;
33
34
  }
34
35
 
@@ -318,6 +319,7 @@ declare class CredentialsDialogComponent implements OnInit {
318
319
  readonly recoveringPassword: i0.OutputEmitterRef<CredentialsDialogResult>;
319
320
  protected dialogData: CredentialsDialogData;
320
321
  protected item: CredentialsDialogResult;
322
+ protected showPassword: boolean;
321
323
  ngOnInit(): void;
322
324
  /**
323
325
  * Done
@@ -358,6 +360,9 @@ declare class ResetPasswordDialogComponent implements OnInit {
358
360
  private dialogRef;
359
361
  protected dialogData: ResetPasswordDialogData;
360
362
  protected item: ResetPasswordDialogResult;
363
+ protected showOldPassword: boolean;
364
+ protected showPassword: boolean;
365
+ protected showPassword2: boolean;
361
366
  ngOnInit(): void;
362
367
  /**
363
368
  * Done
@@ -373,9 +378,7 @@ declare class ResetPasswordDialogComponent implements OnInit {
373
378
 
374
379
  declare class PasswordStrengthComponent {
375
380
  readonly password: i0.InputSignal<string>;
376
- protected score: i0.WritableSignal<number>;
377
- protected scoreLabel: i0.WritableSignal<string>;
378
- protected scoreClass: i0.WritableSignal<string>;
381
+ protected strength: i0.WritableSignal<PasswordStrength>;
379
382
  constructor();
380
383
  /**
381
384
  * Update password strength info