|
1 | | -<mat-card @list> |
| 1 | +<mat-card @list class="info-card"> |
2 | 2 | <mat-card-content> |
3 | 3 | <div class="info-row" @items *ngIf="passwordComponent.enableLowerCaseLetterRule"> |
4 | 4 | <div *ngIf="passwordComponent.containAtLeastOneLowerCaseLetter; then done else error" @flipY> |
5 | 5 | </div> |
6 | 6 | <ng-template #done> |
7 | | - <mat-icon @positiveState color="primary">done</mat-icon> |
| 7 | + <mat-icon @positiveState color="primary" svgIcon="done">done</mat-icon> |
8 | 8 | </ng-template> |
9 | 9 | <ng-template #error> |
10 | | - <mat-icon @negativeState color="warn">error</mat-icon> |
| 10 | + <mat-icon @negativeState color="warn" svgIcon="error">error</mat-icon> |
11 | 11 | </ng-template> |
12 | 12 | <span>{{lowerCaseCriteriaMsg}}</span> |
13 | 13 | </div> |
|
16 | 16 | <div *ngIf="passwordComponent.containAtLeastOneUpperCaseLetter; then done else error"> |
17 | 17 | </div> |
18 | 18 | <ng-template #done> |
19 | | - <mat-icon @positiveState color="primary">done</mat-icon> |
| 19 | + <mat-icon @positiveState color="primary" svgIcon="done">done</mat-icon> |
20 | 20 | </ng-template> |
21 | 21 | <ng-template #error> |
22 | | - <mat-icon @negativeState color="warn">error</mat-icon> |
| 22 | + <mat-icon @negativeState color="warn" svgIcon="error">error</mat-icon> |
23 | 23 | </ng-template> |
24 | 24 | <span>{{upperCaseCriteriaMsg}}</span> |
25 | 25 | </div> |
|
28 | 28 | <div *ngIf="passwordComponent.containAtLeastOneDigit; then done else error"> |
29 | 29 | </div> |
30 | 30 | <ng-template #done> |
31 | | - <mat-icon @positiveState color="primary">done</mat-icon> |
| 31 | + <mat-icon @positiveState color="primary" svgIcon="done">done</mat-icon> |
32 | 32 | </ng-template> |
33 | 33 | <ng-template #error> |
34 | | - <mat-icon @negativeState color="warn">error</mat-icon> |
| 34 | + <mat-icon @negativeState color="warn" svgIcon="error">error</mat-icon> |
35 | 35 | </ng-template> |
36 | 36 | <span>{{digitsCriteriaMsg}}</span> |
37 | 37 | </div> |
|
40 | 40 | <div *ngIf="passwordComponent.containAtLeastOneSpecialChar; then done else error"> |
41 | 41 | </div> |
42 | 42 | <ng-template #done> |
43 | | - <mat-icon @positiveState color="primary">done</mat-icon> |
| 43 | + <mat-icon @positiveState color="primary" svgIcon="done">done</mat-icon> |
44 | 44 | </ng-template> |
45 | 45 | <ng-template #error> |
46 | | - <mat-icon @negativeState color="warn">error</mat-icon> |
| 46 | + <mat-icon @negativeState color="warn" svgIcon="error">error</mat-icon> |
47 | 47 | </ng-template> |
48 | 48 | <span>{{specialCharsCriteriaMsg}}</span> |
49 | 49 | </div> |
|
52 | 52 | <div *ngIf="passwordComponent.containAtLeastMinChars; then done else error"> |
53 | 53 | </div> |
54 | 54 | <ng-template #done> |
55 | | - <mat-icon @positiveState color="primary">done</mat-icon> |
| 55 | + <mat-icon @positiveState color="primary" svgIcon="done">done</mat-icon> |
56 | 56 | </ng-template> |
57 | 57 | <ng-template #error> |
58 | | - <mat-icon @negativeState color="warn">error</mat-icon> |
| 58 | + <mat-icon @negativeState color="warn" svgIcon="error">error</mat-icon> |
59 | 59 | </ng-template> |
60 | 60 | <span>{{minCharsCriteriaMsg}}</span> |
61 | 61 | </div> |
|
64 | 64 | <div *ngIf="passwordComponent.containAtCustomChars; then done else error"> |
65 | 65 | </div> |
66 | 66 | <ng-template #done> |
67 | | - <mat-icon @positiveState color="primary">done</mat-icon> |
| 67 | + <mat-icon @positiveState color="primary" svgIcon="done">done</mat-icon> |
68 | 68 | </ng-template> |
69 | 69 | <ng-template #error> |
70 | | - <mat-icon @negativeState color="warn">error</mat-icon> |
| 70 | + <mat-icon @negativeState color="warn" svgIcon="error">error</mat-icon> |
71 | 71 | </ng-template> |
72 | 72 | <span>{{customCharsCriteriaMsg}}</span> |
73 | 73 | </div> |
|
76 | 76 | <div *ngIf="passwordComponent.strength === 100; then done else error"> |
77 | 77 | </div> |
78 | 78 | <ng-template #done> |
79 | | - <mat-icon @positiveState color="primary">done</mat-icon> |
| 79 | + <mat-icon @positiveState color="primary" svgIcon="done">done</mat-icon> |
80 | 80 | </ng-template> |
81 | 81 | <ng-template #error> |
82 | | - <mat-icon @negativeState color="warn">error</mat-icon> |
| 82 | + <mat-icon @negativeState color="warn" svgIcon="error">error</mat-icon> |
83 | 83 | </ng-template> |
84 | 84 | <span>Password's strength = {{passwordComponent.strength}} %100</span> |
85 | 85 | </div> |
|
0 commit comments