|
| 1 | +<div class="jumbotron jumbotron-fluid"> |
| 2 | + <div class="container"> |
| 3 | + <h1>Explore the library and try these examples <3</h1> |
| 4 | + </div> |
| 5 | +</div> |
| 6 | + |
| 7 | +<section class="home"> |
| 8 | + <div class="container"> |
| 9 | + |
| 10 | + <mat-card> |
| 11 | + <mat-card-title>#1</mat-card-title> |
| 12 | + <mat-card-subtitle>stand alone password component, digit char is optional</mat-card-subtitle> |
| 13 | + |
| 14 | + <mat-slide-toggle #toggle1>Show Password Details</mat-slide-toggle> |
| 15 | + |
| 16 | + <mat-card-content> |
| 17 | + <!--password input filed--> |
| 18 | + <mat-form-field appearance="outline" style="width: 100%" [color]="passwordComponent1.color"> |
| 19 | + <mat-label>Password</mat-label> |
| 20 | + <input matInput #password |
| 21 | + type="password" |
| 22 | + placeholder="Password"> |
| 23 | + <mat-hint align="end" aria-live="polite"> |
| 24 | + {{password.value.length}} / {{passwordComponent1.max}} |
| 25 | + </mat-hint> |
| 26 | + </mat-form-field> |
| 27 | + |
| 28 | + <!--@angular-material-extensions/password-strength's main component--> |
| 29 | + <mat-password-strength #passwordComponent1 |
| 30 | + [enableDigitRule]="false" |
| 31 | + (onStrengthChanged)="onStrengthChanged($event)" |
| 32 | + [password]="password.value"> |
| 33 | + </mat-password-strength> |
| 34 | + <!--Password's strength info--> |
| 35 | + <mat-password-strength-info |
| 36 | + *ngIf="toggle1.checked" |
| 37 | + [passwordComponent]="passwordComponent1"> |
| 38 | + </mat-password-strength-info> |
| 39 | + </mat-card-content> |
| 40 | + |
| 41 | + <mat-card class="mt-2"> |
| 42 | + <mat-card-title>code</mat-card-title> |
| 43 | + <mat-card-content> |
| 44 | + <markdown src="assets/md/examples/e1.md"></markdown> |
| 45 | + </mat-card-content> |
| 46 | + </mat-card> |
| 47 | + </mat-card> |
| 48 | + |
| 49 | + |
| 50 | + <!-- #2 --> |
| 51 | + <mat-card class="mt-4"> |
| 52 | + <mat-card-title>#2</mat-card-title> |
| 53 | + <mat-card-subtitle>stand alone password component, special char and lower case are optional</mat-card-subtitle> |
| 54 | + |
| 55 | + <mat-slide-toggle #toggle2>Show Password Details</mat-slide-toggle> |
| 56 | + |
| 57 | + <mat-card-content> |
| 58 | + <!--password input filed--> |
| 59 | + <mat-form-field appearance="outline" style="width: 100%" [color]="passwordComponent2.color"> |
| 60 | + <mat-label>Password</mat-label> |
| 61 | + <input matInput #password2 |
| 62 | + type="password" |
| 63 | + placeholder="Password"> |
| 64 | + <mat-hint align="end" aria-live="polite"> |
| 65 | + {{password2.value.length}} / {{passwordComponent2.max}} |
| 66 | + </mat-hint> |
| 67 | + </mat-form-field> |
| 68 | + |
| 69 | + <!--@angular-material-extensions/password-strength's main component--> |
| 70 | + <mat-password-strength #passwordComponent2 |
| 71 | + [enableLowerCaseLetterRule]="false" |
| 72 | + [enableSpecialCharRule]="false" |
| 73 | + (onStrengthChanged)="onStrengthChanged($event)" |
| 74 | + [password]="password2.value"> |
| 75 | + </mat-password-strength> |
| 76 | + <!--Password's strength info--> |
| 77 | + <mat-password-strength-info |
| 78 | + *ngIf="toggle2.checked" |
| 79 | + [passwordComponent]="passwordComponent2"> |
| 80 | + </mat-password-strength-info> |
| 81 | + </mat-card-content> |
| 82 | + |
| 83 | + <mat-card class="mt-2"> |
| 84 | + <mat-card-title>code</mat-card-title> |
| 85 | + <mat-card-content> |
| 86 | + <markdown src="assets/md/examples/e2.md"></markdown> |
| 87 | + </mat-card-content> |
| 88 | + </mat-card> |
| 89 | + </mat-card> |
| 90 | + |
| 91 | + <!-- #3 --> |
| 92 | + <mat-card class="mt-4"> |
| 93 | + <mat-card-title>#3</mat-card-title> |
| 94 | + <mat-card-subtitle>stand alone password component, the length of the password and an upper case char are |
| 95 | + optional |
| 96 | + </mat-card-subtitle> |
| 97 | + |
| 98 | + <mat-slide-toggle #toggle3>Show Password Details</mat-slide-toggle> |
| 99 | + |
| 100 | + <mat-card-content> |
| 101 | + <!--password input filed--> |
| 102 | + <mat-form-field appearance="outline" style="width: 100%" [color]="passwordComponent3.color"> |
| 103 | + <mat-label>Password</mat-label> |
| 104 | + <input matInput #password3 |
| 105 | + type="password" |
| 106 | + placeholder="Password"> |
| 107 | + <mat-hint align="end" aria-live="polite"> |
| 108 | + {{password3.value.length}} / {{passwordComponent3.max}} |
| 109 | + </mat-hint> |
| 110 | + </mat-form-field> |
| 111 | + |
| 112 | + <!--@angular-material-extensions/password-strength's main component--> |
| 113 | + <mat-password-strength #passwordComponent3 |
| 114 | + [enableLengthRule]="false" |
| 115 | + [enableUpperCaseLetterRule]="false" |
| 116 | + (onStrengthChanged)="onStrengthChanged($event)" |
| 117 | + [password]="password3.value"> |
| 118 | + </mat-password-strength> |
| 119 | + <!--Password's strength info--> |
| 120 | + <mat-password-strength-info |
| 121 | + *ngIf="toggle3.checked" |
| 122 | + [passwordComponent]="passwordComponent3"> |
| 123 | + </mat-password-strength-info> |
| 124 | + </mat-card-content> |
| 125 | + |
| 126 | + <mat-card class="mt-2"> |
| 127 | + <mat-card-title>code</mat-card-title> |
| 128 | + <mat-card-content> |
| 129 | + <markdown src="assets/md/examples/e3.md"></markdown> |
| 130 | + </mat-card-content> |
| 131 | + </mat-card> |
| 132 | + </mat-card> |
| 133 | + |
| 134 | + <!-- #4 --> |
| 135 | + <mat-card class="mt-4"> |
| 136 | + <mat-card-title>#4</mat-card-title> |
| 137 | + <mat-card-subtitle>stand alone password component, min length = 6 and the max is = 12 |
| 138 | + optional |
| 139 | + </mat-card-subtitle> |
| 140 | + |
| 141 | + <mat-slide-toggle #toggle4>Show Password Details</mat-slide-toggle> |
| 142 | + |
| 143 | + <mat-card-content> |
| 144 | + <!--password input filed--> |
| 145 | + <mat-form-field appearance="outline" style="width: 100%" [color]="passwordComponent4.color"> |
| 146 | + <mat-label>Password</mat-label> |
| 147 | + <input matInput #password4 |
| 148 | + type="password" |
| 149 | + placeholder="Password"> |
| 150 | + <mat-hint align="end" aria-live="polite"> |
| 151 | + {{password4.value.length}} / {{passwordComponent4.max}} |
| 152 | + </mat-hint> |
| 153 | + </mat-form-field> |
| 154 | + |
| 155 | + <!--@angular-material-extensions/password-strength's main component--> |
| 156 | + <mat-password-strength #passwordComponent4 |
| 157 | + [min]="6" |
| 158 | + [max]="12" |
| 159 | + (onStrengthChanged)="onStrengthChanged($event)" |
| 160 | + [password]="password4.value"> |
| 161 | + </mat-password-strength> |
| 162 | + <!--Password's strength info--> |
| 163 | + <mat-password-strength-info |
| 164 | + *ngIf="toggle4.checked" |
| 165 | + [passwordComponent]="passwordComponent4"> |
| 166 | + </mat-password-strength-info> |
| 167 | + </mat-card-content> |
| 168 | + |
| 169 | + <mat-card class="mt-2"> |
| 170 | + <mat-card-title>code</mat-card-title> |
| 171 | + <mat-card-content> |
| 172 | + <markdown src="assets/md/examples/e4.md"></markdown> |
| 173 | + </mat-card-content> |
| 174 | + </mat-card> |
| 175 | + </mat-card> |
| 176 | + |
| 177 | + </div> |
| 178 | +</section> |
0 commit comments