|
5 | 5 | <mat-card> |
6 | 6 | <mat-card-title>{{signInCardTitleText}}</mat-card-title> |
7 | 7 | <mat-card-content> |
8 | | - <form [formGroup]="signInFormGroup" |
| 8 | + <form [@animateStagger]="{ value: '50' }" |
| 9 | + [formGroup]="signInFormGroup" |
9 | 10 | (ngSubmit)="signInFormGroup.valid && |
10 | 11 | authProcess.signInWith |
11 | 12 | (authProviders.EmailAndPassword, |
12 | 13 | {email:signInFormGroup.value.email, password: signInFormGroup.value.password})"> |
13 | 14 | <div fxLayout="column" fxLayoutAlign="center"> |
14 | | - <mat-form-field [appearance]="appearance"> |
| 15 | + <mat-form-field [@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}" |
| 16 | + [appearance]="appearance"> |
15 | 17 | <mat-label>{{emailText}}</mat-label> |
16 | 18 | <input matInput |
17 | 19 | formControlName="email" |
|
25 | 27 | </mat-error> |
26 | 28 | </mat-form-field> |
27 | 29 |
|
28 | | - <mat-form-field [appearance]="appearance"> |
| 30 | + <mat-form-field [@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}" |
| 31 | + [appearance]="appearance"> |
29 | 32 | <mat-label>{{passwordText}}</mat-label> |
30 | 33 | <input matInput [type]="togglePass.type" [minlength]="min" [maxlength]="max" formControlName="password" |
31 | 34 | required/> |
|
44 | 47 | </mat-error> |
45 | 48 | </mat-form-field> |
46 | 49 |
|
47 | | - <button mat-raised-button |
| 50 | + <button [@animate]="{ value: '*', params: { x: '50px' } }" |
| 51 | + mat-raised-button |
48 | 52 | style="margin-top: 20px" |
49 | 53 | type="submit" |
50 | 54 | class="space-top" |
|
57 | 61 |
|
58 | 62 | <div fxLayoutAlign="center"> |
59 | 63 | <button *ngIf="resetPasswordEnabled" |
| 64 | + [@animate]="{ value: '*', params: { x: '-50px' } }" |
60 | 65 | mat-button |
61 | 66 | class="space-top" |
62 | 67 | [color]="color" |
|
67 | 72 |
|
68 | 73 | </mat-card-content> |
69 | 74 | <mat-card-footer *ngIf="authProcess.isLoading"> |
70 | | - <mat-progress-bar mode="indeterminate"></mat-progress-bar> |
| 75 | + <mat-progress-bar [@animate]="{ value: '*', params: { z: '50px', delay: '50ms', scale: '0.2' } }" |
| 76 | + mode="indeterminate"></mat-progress-bar> |
71 | 77 | </mat-card-footer> |
72 | 78 | </mat-card> |
73 | 79 | </mat-tab> |
|
79 | 85 | <div *ngIf="!authProcess.emailConfirmationSent;then register else confirm"></div> |
80 | 86 | <ng-template #register> |
81 | 87 | <mat-card-content fxLayout="column" fxLayoutAlign="center"> |
82 | | - <form [formGroup]="signUpFormGroup" (ngSubmit)="signUpFormGroup.valid && |
| 88 | + <form [@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}" |
| 89 | + [formGroup]="signUpFormGroup" (ngSubmit)="signUpFormGroup.valid && |
83 | 90 | processLegalSignUP(authProvider.EmailAndPassword)"> |
84 | 91 | <div fxLayout="column" fxLayoutAlign="center"> |
85 | 92 | <!--name--> |
86 | | - <mat-form-field [appearance]="appearance"> |
| 93 | + <mat-form-field [@animate]="{ value: '*', params: { x: '50px' } }" |
| 94 | + [appearance]="appearance"> |
87 | 95 | <!--labels will work only with @angular/material@6.2.0 --> |
88 | 96 | <mat-label>{{nameText}}</mat-label> |
89 | 97 | <input |
|
108 | 116 | </mat-form-field> |
109 | 117 |
|
110 | 118 | <!--email--> |
111 | | - <mat-form-field [appearance]="appearance"> |
| 119 | + <mat-form-field [@animate]="{ value: '*', params: { x: '50px' } }" |
| 120 | + [appearance]="appearance"> |
112 | 121 | <mat-label>{{emailText}}</mat-label> |
113 | 122 | <input matInput |
114 | 123 | type="email" |
|
125 | 134 |
|
126 | 135 | <!--password--> |
127 | 136 | <div fxLayout="column"> |
128 | | - <mat-form-field [appearance]="appearance"> |
| 137 | + <mat-form-field [@animate]="{ value: '*', params: { x: '50px' } }" |
| 138 | + [appearance]="appearance"> |
129 | 139 | <mat-label>{{passwordText}}</mat-label> |
130 | 140 | <input |
131 | 141 | matInput |
|
172 | 182 |
|
173 | 183 | </div> |
174 | 184 |
|
175 | | - <button mat-raised-button |
| 185 | + <button [@animate]="{ value: '*', params: { x: '100px' } }" |
| 186 | + mat-raised-button |
176 | 187 | style="margin-top: 20px" |
177 | 188 | type="submit" |
178 | 189 | [color]="color"> |
|
183 | 194 | </form> |
184 | 195 |
|
185 | 196 | <button *ngIf="guestEnabled" |
| 197 | + [@animate]="{ value: '*', params: { x: '-100px' } }" |
186 | 198 | mat-button |
187 | 199 | style="margin-top: 20px" |
188 | 200 | [color]="color" |
|
194 | 206 | </mat-card-content> |
195 | 207 |
|
196 | 208 | <mat-card-footer *ngIf="authProcess.isLoading"> |
197 | | - <mat-progress-bar mode="indeterminate"></mat-progress-bar> |
| 209 | + <mat-progress-bar [@animate]="{ value: '*', params: { z: '50px', delay: '50ms', scale: '0.2' } }" |
| 210 | + mode="indeterminate"></mat-progress-bar> |
198 | 211 | </mat-card-footer> |
199 | 212 |
|
200 | 213 | </ng-template> |
|
213 | 226 |
|
214 | 227 | <!--Reset password tab--> |
215 | 228 | <mat-tab *ngIf="passwordResetWished" [label]="resetPasswordTabText"> |
216 | | - <form [formGroup]="resetPasswordFormGroup" (ngSubmit)="resetPasswordFormGroup.valid && resetPassword()"> |
| 229 | + <form [@animateStagger]="{ value: '50' }" |
| 230 | + [formGroup]="resetPasswordFormGroup" (ngSubmit)="resetPasswordFormGroup.valid && resetPassword()"> |
217 | 231 |
|
218 | 232 | <mat-card> |
219 | 233 | <mat-card-header fxLayoutAlign="end"> |
|
227 | 241 | </mat-card-header> |
228 | 242 |
|
229 | 243 | <mat-card-content> |
230 | | - <mat-form-field class="full-width" [appearance]="appearance"> |
| 244 | + <mat-form-field class="full-width" [appearance]="appearance" |
| 245 | + [@animate]="{value:'*',params:{duration:'300ms',y:'100px'}}"> |
231 | 246 | <mat-label> {{ resetPasswordTabText }} </mat-label> |
232 | 247 | <input matInput |
233 | 248 | [readonly]="passReset" |
|
244 | 259 | </mat-form-field> |
245 | 260 | </mat-card-content> |
246 | 261 | <mat-card-actions fxLayoutAlign="center"> |
247 | | - <button mat-raised-button |
| 262 | + <button [@animate]="{ value: '*', params: { x: '50px' } }" |
| 263 | + mat-raised-button |
248 | 264 | type="submit" |
249 | 265 | [color]="color" |
250 | 266 | [disabled]="passReset"> |
251 | 267 | {{resetPasswordActionButtonText}} |
252 | 268 | </button> |
253 | 269 | </mat-card-actions> |
254 | 270 | <mat-card-footer *ngIf="passReset" fxLayoutAlign="center"> |
255 | | - <p>{{resetPasswordInstructionsText}}</p> |
| 271 | + <p [@animate]="{ value: '*', params: { x: '-50px' } }">{{resetPasswordInstructionsText}}</p> |
256 | 272 | </mat-card-footer> |
257 | 273 | <mat-card-footer> |
258 | | - <mat-progress-bar *ngIf="authProcess.isLoading" mode="indeterminate"></mat-progress-bar> |
| 274 | + <mat-progress-bar *ngIf="authProcess.isLoading" |
| 275 | + [@animate]="{ value: '*', params: { z: '50px', delay: '50ms', scale: '0.2' } }" |
| 276 | + mode="indeterminate"> |
| 277 | + </mat-progress-bar> |
259 | 278 | </mat-card-footer> |
260 | 279 | </mat-card> |
261 | 280 | </form> |
|
0 commit comments