@rxap/ngx-material-authentication 19.0.5 → 21.0.1-dev.1

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.
Files changed (104) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/compodoc/changelog.html +40 -0
  3. package/compodoc/components/LoadingComponent.html +9 -108
  4. package/compodoc/components/LoginComponent.html +68 -137
  5. package/compodoc/components/ResetPasswordComponent.html +71 -58
  6. package/compodoc/dependencies.html +15 -15
  7. package/compodoc/injectables/LoginForm.html +17 -78
  8. package/compodoc/injectables/LoginFormSubmitMethod.html +9 -67
  9. package/compodoc/injectables/LoginFormSubmitSuccessful.html +9 -67
  10. package/compodoc/injectables/ResetPasswordForm.html +13 -24
  11. package/compodoc/injectables/ResetPasswordFormSubmitMethod.html +8 -103
  12. package/compodoc/interfaces/ILoginForm.html +7 -17
  13. package/compodoc/interfaces/IResetPasswordForm.html +6 -17
  14. package/compodoc/js/search/search_index.js +2 -2
  15. package/compodoc/properties.html +1 -1
  16. package/docs/documentation.json +423 -799
  17. package/docs/html/assets/search.js +1 -1
  18. package/docs/html/classes/AuthenticationContainerComponent.html +2 -2
  19. package/docs/html/classes/LoadingComponent.html +4 -4
  20. package/docs/html/classes/LoginComponent.html +2 -2
  21. package/docs/html/classes/LoginForm.html +2 -2
  22. package/docs/html/classes/LoginFormSubmitMethod.html +2 -2
  23. package/docs/html/classes/LoginFormSubmitSuccessful.html +2 -2
  24. package/docs/html/classes/RequestResetPasswordMethod.html +2 -2
  25. package/docs/html/classes/ResetPasswordComponent.html +2 -2
  26. package/docs/html/classes/ResetPasswordForm.html +2 -2
  27. package/docs/html/classes/ResetPasswordFormSubmitMethod.html +2 -2
  28. package/docs/html/classes/SetNewPasswordWithResetTokenMethod.html +2 -2
  29. package/docs/html/classes/SignInWithEmailAndPasswordMethod.html +2 -2
  30. package/docs/html/index.html +2 -2
  31. package/docs/html/interfaces/ILoginForm.html +2 -2
  32. package/docs/html/interfaces/IResetPasswordForm.html +2 -2
  33. package/docs/html/interfaces/RequestResetPasswordMethodParameters.html +2 -2
  34. package/docs/html/interfaces/SetNewPasswordWithResetTokenMethodParameters.html +2 -2
  35. package/docs/html/interfaces/SignInWithEmailAndPasswordMethodParameters.html +2 -2
  36. package/docs/html/modules.html +1 -1
  37. package/docs/html/variables/AUTHENTICATION_ROUTE.html +1 -1
  38. package/docs/html/variables/LoginFormProviders.html +1 -1
  39. package/docs/html/variables/RXAP_RESET_PASSWORD_FORM.html +1 -1
  40. package/docs/html/variables/ResetPasswordFormProviders.html +1 -1
  41. package/docs/html/variables/fadeAnimation.html +1 -1
  42. package/docs/markdown/README.md +1 -1
  43. package/docs/markdown/classes/AuthenticationContainerComponent.md +2 -2
  44. package/docs/markdown/classes/LoadingComponent.md +8 -20
  45. package/docs/markdown/classes/LoginComponent.md +5 -17
  46. package/docs/markdown/classes/LoginForm.md +11 -19
  47. package/docs/markdown/classes/LoginFormSubmitMethod.md +4 -12
  48. package/docs/markdown/classes/LoginFormSubmitSuccessful.md +4 -12
  49. package/docs/markdown/classes/RequestResetPasswordMethod.md +3 -3
  50. package/docs/markdown/classes/ResetPasswordComponent.md +2 -2
  51. package/docs/markdown/classes/ResetPasswordForm.md +7 -7
  52. package/docs/markdown/classes/ResetPasswordFormSubmitMethod.md +4 -24
  53. package/docs/markdown/classes/SetNewPasswordWithResetTokenMethod.md +3 -3
  54. package/docs/markdown/classes/SignInWithEmailAndPasswordMethod.md +3 -3
  55. package/docs/markdown/globals.md +2 -2
  56. package/docs/markdown/interfaces/ILoginForm.md +4 -4
  57. package/docs/markdown/interfaces/IResetPasswordForm.md +4 -4
  58. package/docs/markdown/interfaces/RequestResetPasswordMethodParameters.md +3 -3
  59. package/docs/markdown/interfaces/SetNewPasswordWithResetTokenMethodParameters.md +4 -4
  60. package/docs/markdown/interfaces/SignInWithEmailAndPasswordMethodParameters.md +5 -5
  61. package/docs/markdown/variables/AUTHENTICATION_ROUTE.md +2 -2
  62. package/docs/markdown/variables/LoginFormProviders.md +2 -2
  63. package/docs/markdown/variables/RXAP_RESET_PASSWORD_FORM.md +2 -2
  64. package/docs/markdown/variables/ResetPasswordFormProviders.md +2 -2
  65. package/docs/markdown/variables/fadeAnimation.md +2 -2
  66. package/docs/wiki/Class.AuthenticationContainerComponent.md +1 -1
  67. package/docs/wiki/Class.LoadingComponent.md +7 -19
  68. package/docs/wiki/Class.LoginComponent.md +4 -16
  69. package/docs/wiki/Class.LoginForm.md +10 -18
  70. package/docs/wiki/Class.LoginFormSubmitMethod.md +3 -11
  71. package/docs/wiki/Class.LoginFormSubmitSuccessful.md +3 -11
  72. package/docs/wiki/Class.RequestResetPasswordMethod.md +2 -2
  73. package/docs/wiki/Class.ResetPasswordComponent.md +1 -1
  74. package/docs/wiki/Class.ResetPasswordForm.md +6 -6
  75. package/docs/wiki/Class.ResetPasswordFormSubmitMethod.md +3 -23
  76. package/docs/wiki/Class.SetNewPasswordWithResetTokenMethod.md +2 -2
  77. package/docs/wiki/Class.SignInWithEmailAndPasswordMethod.md +2 -2
  78. package/docs/wiki/Interface.ILoginForm.md +3 -3
  79. package/docs/wiki/Interface.IResetPasswordForm.md +3 -3
  80. package/docs/wiki/Interface.RequestResetPasswordMethodParameters.md +2 -2
  81. package/docs/wiki/Interface.SetNewPasswordWithResetTokenMethodParameters.md +3 -3
  82. package/docs/wiki/Interface.SignInWithEmailAndPasswordMethodParameters.md +4 -4
  83. package/docs/wiki/Variable.AUTHENTICATION_ROUTE.md +1 -1
  84. package/docs/wiki/Variable.LoginFormProviders.md +1 -1
  85. package/docs/wiki/Variable.RXAP_RESET_PASSWORD_FORM.md +1 -1
  86. package/docs/wiki/Variable.ResetPasswordFormProviders.md +1 -1
  87. package/docs/wiki/Variable.fadeAnimation.md +1 -1
  88. package/docs/wiki/globals.md +1 -1
  89. package/fesm2022/rxap-ngx-material-authentication.mjs +93 -135
  90. package/fesm2022/rxap-ngx-material-authentication.mjs.map +1 -1
  91. package/package.json +47 -46
  92. package/types/rxap-ngx-material-authentication.d.ts +141 -0
  93. package/index.d.ts +0 -11
  94. package/lib/authentication-container/authentication-container.component.d.ts +0 -5
  95. package/lib/fade-animation.d.ts +0 -1
  96. package/lib/loading/loading.component.d.ts +0 -15
  97. package/lib/login/login.component.d.ts +0 -14
  98. package/lib/login/login.form.d.ts +0 -43
  99. package/lib/login/request-reset-password.method.d.ts +0 -10
  100. package/lib/login/sign-in-with-email-and-password.method.d.ts +0 -12
  101. package/lib/reset-password/reset-password.component.d.ts +0 -5
  102. package/lib/reset-password/reset-password.form.d.ts +0 -35
  103. package/lib/reset-password/set-new-password-with-reset-token.method.d.ts +0 -11
  104. package/lib/routes.d.ts +0 -2
@@ -151,54 +151,6 @@
151
151
  </table>
152
152
  </section>
153
153
 
154
- <section data-compodoc="block-constructor">
155
- <h3 id="constructor">Constructor</h3>
156
- <table class="table table-sm table-bordered">
157
- <tbody>
158
- <tr>
159
- <td class="col-md-4">
160
- <code>constructor(router: Router)</code>
161
- </td>
162
- </tr>
163
- <tr>
164
- <td class="col-md-4">
165
- <div class="io-line">Defined in <a href="" data-line="92" class="link-to-prism">src/lib/login/login.form.ts:92</a></div>
166
- </td>
167
- </tr>
168
-
169
- <tr>
170
- <td class="col-md-4">
171
- <div>
172
- <b>Parameters :</b>
173
- <table class="params">
174
- <thead>
175
- <tr>
176
- <td>Name</td>
177
- <td>Type</td>
178
- <td>Optional</td>
179
- </tr>
180
- </thead>
181
- <tbody>
182
- <tr>
183
- <td>router</td>
184
-
185
- <td>
186
- <code>Router</code>
187
- </td>
188
-
189
- <td>
190
- No
191
- </td>
192
-
193
- </tr>
194
- </tbody>
195
- </table>
196
- </div>
197
- </td>
198
- </tr>
199
- </tbody>
200
- </table>
201
- </section>
202
154
 
203
155
  <section data-compodoc="block-methods">
204
156
 
@@ -227,8 +179,8 @@
227
179
 
228
180
  <tr>
229
181
  <td class="col-md-4">
230
- <div class="io-line">Defined in <a href="" data-line="99"
231
- class="link-to-prism">src/lib/login/login.form.ts:99</a></div>
182
+ <div class="io-line">Defined in <a href="" data-line="89"
183
+ class="link-to-prism">src/lib/login/login.form.ts:89</a></div>
232
184
  </td>
233
185
  </tr>
234
186
 
@@ -250,13 +202,7 @@
250
202
 
251
203
 
252
204
  <div class="tab-pane fade tab-source-code" id="source">
253
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
254
- Inject,
255
- Injectable,
256
- INJECTOR,
257
- Injector,
258
- Provider,
259
- } from &#x27;@angular/core&#x27;;
205
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable, INJECTOR, Injector, Provider, inject } from &#x27;@angular/core&#x27;;
260
206
  import { Validators } from &#x27;@angular/forms&#x27;;
261
207
  import { Router } from &#x27;@angular/router&#x27;;
262
208
  import { ConfigService } from &#x27;@rxap/config&#x27;;
@@ -286,6 +232,8 @@ export interface ILoginForm {
286
232
  id: &#x27;rxap-login&#x27;,
287
233
  }) @Injectable()
288
234
  export class LoginForm implements FormType&lt;ILoginForm&gt;, RxapOnInit {
235
+ readonly config &#x3D; inject&lt;ConfigService&lt;any&gt;&gt;(ConfigService);
236
+
289
237
  public rxapFormGroup!: RxapFormGroup;
290
238
 
291
239
  public loading &#x3D; true;
@@ -306,9 +254,6 @@ export class LoginForm implements FormType&lt;ILoginForm&gt;, RxapOnInit {
306
254
  })
307
255
  public remember!: RxapFormControl;
308
256
 
309
- constructor(public readonly config: ConfigService&lt;any&gt;) {
310
- }
311
-
312
257
  public rxapOnInit() {
313
258
  const email &#x3D; this.config.get&lt;string&gt;(&#x27;authentication.default.email&#x27;);
314
259
  if (email) {
@@ -323,8 +268,8 @@ export class LoginForm implements FormType&lt;ILoginForm&gt;, RxapOnInit {
323
268
 
324
269
  @Injectable()
325
270
  export class LoginFormSubmitMethod implements FormSubmitMethod&lt;any&gt; {
326
- constructor(private readonly signInWithEmailAndPasswordMethod: SignInWithEmailAndPasswordMethod) {
327
- }
271
+ private readonly signInWithEmailAndPasswordMethod &#x3D; inject(SignInWithEmailAndPasswordMethod);
272
+
328
273
 
329
274
  public call(value: {
330
275
  email: string;
@@ -342,11 +287,8 @@ export class LoginFormSubmitMethod implements FormSubmitMethod&lt;any&gt; {
342
287
  @Injectable()
343
288
  export class LoginFormSubmitSuccessful
344
289
  implements FormSubmitSuccessfulMethod&lt;any&gt; {
345
- constructor(
346
- @Inject(Router)
347
- private readonly router: Router,
348
- ) {
349
- }
290
+ private readonly router &#x3D; inject&lt;Router&gt;(Router);
291
+
350
292
 
351
293
  public call(): Promise&lt;any&gt; {
352
294
  console.debug(&#x27;Login was successful. Navigate to application root&#x27;);
@@ -218,8 +218,8 @@
218
218
 
219
219
  <tr>
220
220
  <td class="col-md-4">
221
- <div class="io-line">Defined in <a href="" data-line="106"
222
- class="link-to-prism">src/lib/reset-password/reset-password.form.ts:106</a></div>
221
+ <div class="io-line">Defined in <a href="" data-line="95"
222
+ class="link-to-prism">src/lib/reset-password/reset-password.form.ts:95</a></div>
223
223
  </td>
224
224
  </tr>
225
225
 
@@ -295,8 +295,8 @@
295
295
 
296
296
  <tr>
297
297
  <td class="col-md-4">
298
- <div class="io-line">Defined in <a href="" data-line="117"
299
- class="link-to-prism">src/lib/reset-password/reset-password.form.ts:117</a></div>
298
+ <div class="io-line">Defined in <a href="" data-line="106"
299
+ class="link-to-prism">src/lib/reset-password/reset-password.form.ts:106</a></div>
300
300
  </td>
301
301
  </tr>
302
302
 
@@ -348,7 +348,7 @@
348
348
  </tr>
349
349
  <tr>
350
350
  <td class="col-md-4">
351
- <div class="io-line">Defined in <a href="" data-line="98" class="link-to-prism">src/lib/reset-password/reset-password.form.ts:98</a></div>
351
+ <div class="io-line">Defined in <a href="" data-line="87" class="link-to-prism">src/lib/reset-password/reset-password.form.ts:87</a></div>
352
352
  </td>
353
353
  </tr>
354
354
 
@@ -385,7 +385,7 @@
385
385
  </tr>
386
386
  <tr>
387
387
  <td class="col-md-4">
388
- <div class="io-line">Defined in <a href="" data-line="103" class="link-to-prism">src/lib/reset-password/reset-password.form.ts:103</a></div>
388
+ <div class="io-line">Defined in <a href="" data-line="92" class="link-to-prism">src/lib/reset-password/reset-password.form.ts:92</a></div>
389
389
  </td>
390
390
  </tr>
391
391
 
@@ -412,7 +412,7 @@
412
412
  </tr>
413
413
  <tr>
414
414
  <td class="col-md-4">
415
- <div class="io-line">Defined in <a href="" data-line="93" class="link-to-prism">src/lib/reset-password/reset-password.form.ts:93</a></div>
415
+ <div class="io-line">Defined in <a href="" data-line="82" class="link-to-prism">src/lib/reset-password/reset-password.form.ts:82</a></div>
416
416
  </td>
417
417
  </tr>
418
418
 
@@ -425,13 +425,7 @@
425
425
 
426
426
 
427
427
  <div class="tab-pane fade tab-source-code" id="source">
428
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
429
- Inject,
430
- Injectable,
431
- INJECTOR,
432
- Injector,
433
- Provider,
434
- } from &#x27;@angular/core&#x27;;
428
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable, INJECTOR, Injector, Provider, inject } from &#x27;@angular/core&#x27;;
435
429
  import { Validators } from &#x27;@angular/forms&#x27;;
436
430
  import { MatSnackBar } from &#x27;@angular/material/snack-bar&#x27;;
437
431
  import {
@@ -465,16 +459,11 @@ export const RXAP_RESET_PASSWORD_FORM &#x3D; &#x27;rxap-reset-password&#x27;;
465
459
 
466
460
  @Injectable()
467
461
  export class ResetPasswordFormSubmitMethod implements FormSubmitMethod&lt;any&gt; {
468
- constructor(
469
- @Inject(ActivatedRoute)
470
- private readonly route: ActivatedRoute,
471
- private readonly setNewPasswordWithResetTokenMethod: SetNewPasswordWithResetTokenMethod,
472
- @Inject(MatSnackBar)
473
- private readonly snackBar: MatSnackBar,
474
- @Inject(Router)
475
- private readonly router: Router,
476
- ) {
477
- }
462
+ private readonly route &#x3D; inject&lt;ActivatedRoute&gt;(ActivatedRoute);
463
+ private readonly setNewPasswordWithResetTokenMethod &#x3D; inject(SetNewPasswordWithResetTokenMethod);
464
+ private readonly snackBar &#x3D; inject&lt;MatSnackBar&gt;(MatSnackBar);
465
+ private readonly router &#x3D; inject&lt;Router&gt;(Router);
466
+
478
467
 
479
468
  public call(value: { password: string }): boolean | Promise&lt;boolean&gt; {
480
469
  return firstValueFrom(this.route.params
@@ -151,90 +151,6 @@
151
151
  </table>
152
152
  </section>
153
153
 
154
- <section data-compodoc="block-constructor">
155
- <h3 id="constructor">Constructor</h3>
156
- <table class="table table-sm table-bordered">
157
- <tbody>
158
- <tr>
159
- <td class="col-md-4">
160
- <code>constructor(route: ActivatedRoute, setNewPasswordWithResetTokenMethod: <a href="../injectables/SetNewPasswordWithResetTokenMethod.html" target="_self">SetNewPasswordWithResetTokenMethod</a>, snackBar: MatSnackBar, router: Router)</code>
161
- </td>
162
- </tr>
163
- <tr>
164
- <td class="col-md-4">
165
- <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/reset-password/reset-password.form.ts:40</a></div>
166
- </td>
167
- </tr>
168
-
169
- <tr>
170
- <td class="col-md-4">
171
- <div>
172
- <b>Parameters :</b>
173
- <table class="params">
174
- <thead>
175
- <tr>
176
- <td>Name</td>
177
- <td>Type</td>
178
- <td>Optional</td>
179
- </tr>
180
- </thead>
181
- <tbody>
182
- <tr>
183
- <td>route</td>
184
-
185
- <td>
186
- <code>ActivatedRoute</code>
187
- </td>
188
-
189
- <td>
190
- No
191
- </td>
192
-
193
- </tr>
194
- <tr>
195
- <td>setNewPasswordWithResetTokenMethod</td>
196
-
197
- <td>
198
- <code><a href="../injectables/SetNewPasswordWithResetTokenMethod.html" target="_self" >SetNewPasswordWithResetTokenMethod</a></code>
199
- </td>
200
-
201
- <td>
202
- No
203
- </td>
204
-
205
- </tr>
206
- <tr>
207
- <td>snackBar</td>
208
-
209
- <td>
210
- <code>MatSnackBar</code>
211
- </td>
212
-
213
- <td>
214
- No
215
- </td>
216
-
217
- </tr>
218
- <tr>
219
- <td>router</td>
220
-
221
- <td>
222
- <code>Router</code>
223
- </td>
224
-
225
- <td>
226
- No
227
- </td>
228
-
229
- </tr>
230
- </tbody>
231
- </table>
232
- </div>
233
- </td>
234
- </tr>
235
- </tbody>
236
- </table>
237
- </section>
238
154
 
239
155
  <section data-compodoc="block-methods">
240
156
 
@@ -263,8 +179,8 @@
263
179
 
264
180
  <tr>
265
181
  <td class="col-md-4">
266
- <div class="io-line">Defined in <a href="" data-line="52"
267
- class="link-to-prism">src/lib/reset-password/reset-password.form.ts:52</a></div>
182
+ <div class="io-line">Defined in <a href="" data-line="41"
183
+ class="link-to-prism">src/lib/reset-password/reset-password.form.ts:41</a></div>
268
184
  </td>
269
185
  </tr>
270
186
 
@@ -316,13 +232,7 @@
316
232
 
317
233
 
318
234
  <div class="tab-pane fade tab-source-code" id="source">
319
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
320
- Inject,
321
- Injectable,
322
- INJECTOR,
323
- Injector,
324
- Provider,
325
- } from &#x27;@angular/core&#x27;;
235
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable, INJECTOR, Injector, Provider, inject } from &#x27;@angular/core&#x27;;
326
236
  import { Validators } from &#x27;@angular/forms&#x27;;
327
237
  import { MatSnackBar } from &#x27;@angular/material/snack-bar&#x27;;
328
238
  import {
@@ -356,16 +266,11 @@ export const RXAP_RESET_PASSWORD_FORM &#x3D; &#x27;rxap-reset-password&#x27;;
356
266
 
357
267
  @Injectable()
358
268
  export class ResetPasswordFormSubmitMethod implements FormSubmitMethod&lt;any&gt; {
359
- constructor(
360
- @Inject(ActivatedRoute)
361
- private readonly route: ActivatedRoute,
362
- private readonly setNewPasswordWithResetTokenMethod: SetNewPasswordWithResetTokenMethod,
363
- @Inject(MatSnackBar)
364
- private readonly snackBar: MatSnackBar,
365
- @Inject(Router)
366
- private readonly router: Router,
367
- ) {
368
- }
269
+ private readonly route &#x3D; inject&lt;ActivatedRoute&gt;(ActivatedRoute);
270
+ private readonly setNewPasswordWithResetTokenMethod &#x3D; inject(SetNewPasswordWithResetTokenMethod);
271
+ private readonly snackBar &#x3D; inject&lt;MatSnackBar&gt;(MatSnackBar);
272
+ private readonly router &#x3D; inject&lt;Router&gt;(Router);
273
+
369
274
 
370
275
  public call(value: { password: string }): boolean | Promise&lt;boolean&gt; {
371
276
  return firstValueFrom(this.route.params
@@ -234,13 +234,7 @@
234
234
 
235
235
 
236
236
  <div class="tab-pane fade tab-source-code" id="source">
237
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
238
- Inject,
239
- Injectable,
240
- INJECTOR,
241
- Injector,
242
- Provider,
243
- } from &#x27;@angular/core&#x27;;
237
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable, INJECTOR, Injector, Provider, inject } from &#x27;@angular/core&#x27;;
244
238
  import { Validators } from &#x27;@angular/forms&#x27;;
245
239
  import { Router } from &#x27;@angular/router&#x27;;
246
240
  import { ConfigService } from &#x27;@rxap/config&#x27;;
@@ -270,6 +264,8 @@ export interface ILoginForm {
270
264
  id: &#x27;rxap-login&#x27;,
271
265
  }) @Injectable()
272
266
  export class LoginForm implements FormType&lt;ILoginForm&gt;, RxapOnInit {
267
+ readonly config &#x3D; inject&lt;ConfigService&lt;any&gt;&gt;(ConfigService);
268
+
273
269
  public rxapFormGroup!: RxapFormGroup;
274
270
 
275
271
  public loading &#x3D; true;
@@ -290,9 +286,6 @@ export class LoginForm implements FormType&lt;ILoginForm&gt;, RxapOnInit {
290
286
  })
291
287
  public remember!: RxapFormControl;
292
288
 
293
- constructor(public readonly config: ConfigService&lt;any&gt;) {
294
- }
295
-
296
289
  public rxapOnInit() {
297
290
  const email &#x3D; this.config.get&lt;string&gt;(&#x27;authentication.default.email&#x27;);
298
291
  if (email) {
@@ -307,8 +300,8 @@ export class LoginForm implements FormType&lt;ILoginForm&gt;, RxapOnInit {
307
300
 
308
301
  @Injectable()
309
302
  export class LoginFormSubmitMethod implements FormSubmitMethod&lt;any&gt; {
310
- constructor(private readonly signInWithEmailAndPasswordMethod: SignInWithEmailAndPasswordMethod) {
311
- }
303
+ private readonly signInWithEmailAndPasswordMethod &#x3D; inject(SignInWithEmailAndPasswordMethod);
304
+
312
305
 
313
306
  public call(value: {
314
307
  email: string;
@@ -326,11 +319,8 @@ export class LoginFormSubmitMethod implements FormSubmitMethod&lt;any&gt; {
326
319
  @Injectable()
327
320
  export class LoginFormSubmitSuccessful
328
321
  implements FormSubmitSuccessfulMethod&lt;any&gt; {
329
- constructor(
330
- @Inject(Router)
331
- private readonly router: Router,
332
- ) {
333
- }
322
+ private readonly router &#x3D; inject&lt;Router&gt;(Router);
323
+
334
324
 
335
325
  public call(): Promise&lt;any&gt; {
336
326
  console.debug(&#x27;Login was successful. Navigate to application root&#x27;);
@@ -234,13 +234,7 @@
234
234
 
235
235
 
236
236
  <div class="tab-pane fade tab-source-code" id="source">
237
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
238
- Inject,
239
- Injectable,
240
- INJECTOR,
241
- Injector,
242
- Provider,
243
- } from &#x27;@angular/core&#x27;;
237
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable, INJECTOR, Injector, Provider, inject } from &#x27;@angular/core&#x27;;
244
238
  import { Validators } from &#x27;@angular/forms&#x27;;
245
239
  import { MatSnackBar } from &#x27;@angular/material/snack-bar&#x27;;
246
240
  import {
@@ -274,16 +268,11 @@ export const RXAP_RESET_PASSWORD_FORM &#x3D; &#x27;rxap-reset-password&#x27;;
274
268
 
275
269
  @Injectable()
276
270
  export class ResetPasswordFormSubmitMethod implements FormSubmitMethod&lt;any&gt; {
277
- constructor(
278
- @Inject(ActivatedRoute)
279
- private readonly route: ActivatedRoute,
280
- private readonly setNewPasswordWithResetTokenMethod: SetNewPasswordWithResetTokenMethod,
281
- @Inject(MatSnackBar)
282
- private readonly snackBar: MatSnackBar,
283
- @Inject(Router)
284
- private readonly router: Router,
285
- ) {
286
- }
271
+ private readonly route &#x3D; inject&lt;ActivatedRoute&gt;(ActivatedRoute);
272
+ private readonly setNewPasswordWithResetTokenMethod &#x3D; inject(SetNewPasswordWithResetTokenMethod);
273
+ private readonly snackBar &#x3D; inject&lt;MatSnackBar&gt;(MatSnackBar);
274
+ private readonly router &#x3D; inject&lt;Router&gt;(Router);
275
+
287
276
 
288
277
  public call(value: { password: string }): boolean | Promise&lt;boolean&gt; {
289
278
  return firstValueFrom(this.route.params