@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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,45 @@
1
+ ## 21.0.1-dev.1 (2026-11-22)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **angular:** add ng-prism showcases from the leaf library outwards
6
+ - **angular:** add ng-prism styleguide targets and environment showcase
7
+
8
+ ### 🧱 Updated Dependencies
9
+
10
+ - Updated angular-material-form-system to 21.0.1-dev.1
11
+ - Updated angular-authentication to 21.0.1-dev.1
12
+ - Updated angular-config to 21.0.1-dev.1
13
+ - Updated angular-forms to 21.0.1-dev.1
14
+ - Updated utilities to 16.5.2-dev.1
15
+ - Updated pattern to 1.1.16-dev.1
16
+ - Updated rxjs to 1.1.18-dev.1
17
+
18
+ ### ❤️ Thank You
19
+
20
+ - Claude Opus 5.5
21
+ - Merzough Münker
22
+
23
+ ## 21.0.1-dev.0 (2026-11-20)
24
+
25
+ ### 🩹 Fixes
26
+
27
+ - **upgrade:** TestBed.get->inject (removed in angular) + dedupe rxjs to single version
28
+
29
+ ### 🧱 Updated Dependencies
30
+
31
+ - Updated angular-material-form-system to 21.0.1-dev.0
32
+ - Updated angular-authentication to 21.0.1-dev.0
33
+ - Updated angular-config to 21.0.1-dev.0
34
+ - Updated angular-forms to 21.0.1-dev.0
35
+ - Updated utilities to 16.5.2-dev.0
36
+ - Updated pattern to 1.1.16-dev.0
37
+ - Updated rxjs to 1.1.18-dev.0
38
+
39
+ ### ❤️ Thank You
40
+
41
+ - Merzough Münker
42
+
1
43
  ## 19.0.5 (2026-11-20)
2
44
 
3
45
  This was a version bump only for angular-material-authentication to align it with other projects, there were no code changes.
@@ -82,6 +82,46 @@
82
82
  <div class="content getting-started">
83
83
  <div class="content-data">
84
84
 
85
+ <h2>21.0.1-dev.1 (2026-11-22)</h2>
86
+ <h3>🚀 Features</h3>
87
+ <ul>
88
+ <li><strong>angular:</strong> add ng-prism showcases from the leaf library outwards</li>
89
+ <li><strong>angular:</strong> add ng-prism styleguide targets and environment showcase</li>
90
+ </ul>
91
+ <h3>🧱 Updated Dependencies</h3>
92
+ <ul>
93
+ <li>Updated angular-material-form-system to 21.0.1-dev.1</li>
94
+ <li>Updated angular-authentication to 21.0.1-dev.1</li>
95
+ <li>Updated angular-config to 21.0.1-dev.1</li>
96
+ <li>Updated angular-forms to 21.0.1-dev.1</li>
97
+ <li>Updated utilities to 16.5.2-dev.1</li>
98
+ <li>Updated pattern to 1.1.16-dev.1</li>
99
+ <li>Updated rxjs to 1.1.18-dev.1</li>
100
+ </ul>
101
+ <h3>❤️ Thank You</h3>
102
+ <ul>
103
+ <li>Claude Opus 5.5</li>
104
+ <li>Merzough Münker</li>
105
+ </ul>
106
+ <h2>21.0.1-dev.0 (2026-11-20)</h2>
107
+ <h3>🩹 Fixes</h3>
108
+ <ul>
109
+ <li><strong>upgrade:</strong> TestBed.get-&gt;inject (removed in angular) + dedupe rxjs to single version</li>
110
+ </ul>
111
+ <h3>🧱 Updated Dependencies</h3>
112
+ <ul>
113
+ <li>Updated angular-material-form-system to 21.0.1-dev.0</li>
114
+ <li>Updated angular-authentication to 21.0.1-dev.0</li>
115
+ <li>Updated angular-config to 21.0.1-dev.0</li>
116
+ <li>Updated angular-forms to 21.0.1-dev.0</li>
117
+ <li>Updated utilities to 16.5.2-dev.0</li>
118
+ <li>Updated pattern to 1.1.16-dev.0</li>
119
+ <li>Updated rxjs to 1.1.18-dev.0</li>
120
+ </ul>
121
+ <h3>❤️ Thank You</h3>
122
+ <ul>
123
+ <li>Merzough Münker</li>
124
+ </ul>
85
125
  <h2>19.0.5 (2026-11-20)</h2>
86
126
  <p>This was a version bump only for angular-material-authentication to align it with other projects, there were no code changes.</p>
87
127
  <h2>19.0.5-dev.0 (2026-06-19)</h2>
@@ -204,14 +204,10 @@
204
204
  <td class="col-md-4">
205
205
  <ul class="index-list">
206
206
  <li>
207
- <span class="modifier"></span>
208
- <span class="modifier">Public</span>
209
207
  <span class="modifier">Readonly</span>
210
208
  <a href="#authentication" >authentication</a>
211
209
  </li>
212
210
  <li>
213
- <span class="modifier"></span>
214
- <span class="modifier">Public</span>
215
211
  <span class="modifier">Readonly</span>
216
212
  <a href="#router" >router</a>
217
213
  </li>
@@ -233,66 +229,6 @@
233
229
  </table>
234
230
  </section>
235
231
 
236
- <section data-compodoc="block-constructor">
237
- <h3 id="constructor">Constructor</h3>
238
- <table class="table table-sm table-bordered">
239
- <tbody>
240
- <tr>
241
- <td class="col-md-4">
242
- <code>constructor(authentication: RxapAuthenticationService, router: Router)</code>
243
- </td>
244
- </tr>
245
- <tr>
246
- <td class="col-md-4">
247
- <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/loading/loading.component.ts:25</a></div>
248
- </td>
249
- </tr>
250
-
251
- <tr>
252
- <td class="col-md-4">
253
- <div>
254
- <b>Parameters :</b>
255
- <table class="params">
256
- <thead>
257
- <tr>
258
- <td>Name</td>
259
- <td>Type</td>
260
- <td>Optional</td>
261
- </tr>
262
- </thead>
263
- <tbody>
264
- <tr>
265
- <td>authentication</td>
266
-
267
- <td>
268
- <code>RxapAuthenticationService</code>
269
- </td>
270
-
271
- <td>
272
- No
273
- </td>
274
-
275
- </tr>
276
- <tr>
277
- <td>router</td>
278
-
279
- <td>
280
- <code>Router</code>
281
- </td>
282
-
283
- <td>
284
- No
285
- </td>
286
-
287
- </tr>
288
- </tbody>
289
- </table>
290
- </div>
291
- </td>
292
- </tr>
293
- </tbody>
294
- </table>
295
- </section>
296
232
 
297
233
 
298
234
 
@@ -310,8 +246,6 @@
310
246
  <td class="col-md-4">
311
247
  <a name="authentication"></a>
312
248
  <span class="name">
313
- <span class="modifier"></span>
314
- <span class="modifier">Public</span>
315
249
  <span class="modifier">Readonly</span>
316
250
  <span ><b>authentication</b></span>
317
251
  <a href="#authentication"><span class="icon ion-ios-link"></span></a>
@@ -320,22 +254,12 @@
320
254
  </tr>
321
255
  <tr>
322
256
  <td class="col-md-4">
323
- <i>Type : </i> <code>RxapAuthenticationService</code>
324
-
325
- </td>
326
- </tr>
327
- <tr>
328
- <td class="col-md-4">
329
- <b>Decorators : </b>
330
- <br />
331
- <code>
332
- @Inject(RxapAuthenticationService)<br />
333
- </code>
257
+ <i>Default value : </i><code>inject&lt;RxapAuthenticationService&gt;(RxapAuthenticationService)</code>
334
258
  </td>
335
259
  </tr>
336
260
  <tr>
337
261
  <td class="col-md-4">
338
- <div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/lib/loading/loading.component.ts:29</a></div>
262
+ <div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/lib/loading/loading.component.ts:19</a></div>
339
263
  </td>
340
264
  </tr>
341
265
 
@@ -348,8 +272,6 @@
348
272
  <td class="col-md-4">
349
273
  <a name="router"></a>
350
274
  <span class="name">
351
- <span class="modifier"></span>
352
- <span class="modifier">Public</span>
353
275
  <span class="modifier">Readonly</span>
354
276
  <span ><b>router</b></span>
355
277
  <a href="#router"><span class="icon ion-ios-link"></span></a>
@@ -358,22 +280,12 @@
358
280
  </tr>
359
281
  <tr>
360
282
  <td class="col-md-4">
361
- <i>Type : </i> <code>Router</code>
362
-
363
- </td>
364
- </tr>
365
- <tr>
366
- <td class="col-md-4">
367
- <b>Decorators : </b>
368
- <br />
369
- <code>
370
- @Inject(Router)<br />
371
- </code>
283
+ <i>Default value : </i><code>inject&lt;Router&gt;(Router)</code>
372
284
  </td>
373
285
  </tr>
374
286
  <tr>
375
287
  <td class="col-md-4">
376
- <div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/loading/loading.component.ts:31</a></div>
288
+ <div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/lib/loading/loading.component.ts:20</a></div>
377
289
  </td>
378
290
  </tr>
379
291
 
@@ -401,7 +313,7 @@
401
313
  </tr>
402
314
  <tr>
403
315
  <td class="col-md-4">
404
- <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/loading/loading.component.ts:25</a></div>
316
+ <div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/lib/loading/loading.component.ts:22</a></div>
405
317
  </td>
406
318
  </tr>
407
319
 
@@ -414,13 +326,7 @@
414
326
 
415
327
 
416
328
  <div class="tab-pane fade tab-source-code" id="source">
417
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
418
- ChangeDetectionStrategy,
419
- Component,
420
- Inject,
421
- OnDestroy,
422
- OnInit,
423
- } from &#x27;@angular/core&#x27;;
329
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ChangeDetectionStrategy, Component, OnDestroy, OnInit, inject } from &#x27;@angular/core&#x27;;
424
330
  import { MatProgressBarModule } from &#x27;@angular/material/progress-bar&#x27;;
425
331
  import { Router } from &#x27;@angular/router&#x27;;
426
332
  import { RxapAuthenticationService } from &#x27;@rxap/authentication&#x27;;
@@ -438,15 +344,10 @@ import {
438
344
  imports: [MatProgressBarModule]
439
345
  })
440
346
  export class LoadingComponent implements OnInit, OnDestroy {
441
- public subscription?: Subscription;
347
+ readonly authentication &#x3D; inject&lt;RxapAuthenticationService&gt;(RxapAuthenticationService);
348
+ readonly router &#x3D; inject&lt;Router&gt;(Router);
442
349
 
443
- constructor(
444
- @Inject(RxapAuthenticationService)
445
- public readonly authentication: RxapAuthenticationService,
446
- @Inject(Router)
447
- public readonly router: Router,
448
- ) {
449
- }
350
+ public subscription?: Subscription;
450
351
 
451
352
  public ngOnInit(): void {
452
353
  // TODO : remove the concept of isAuthenticated$
@@ -171,7 +171,6 @@
171
171
  <code>MatIconModule</code>
172
172
  <code>MatFormFieldModule</code>
173
173
  <code>MatInputModule</code>
174
- <code>NgIf</code>
175
174
  <code>MatButtonModule</code>
176
175
  <code>MatCheckboxModule</code>
177
176
  <code>MatTooltipModule</code>
@@ -255,66 +254,6 @@
255
254
  </table>
256
255
  </section>
257
256
 
258
- <section data-compodoc="block-constructor">
259
- <h3 id="constructor">Constructor</h3>
260
- <table class="table table-sm table-bordered">
261
- <tbody>
262
- <tr>
263
- <td class="col-md-4">
264
- <code>constructor(authentication: RxapAuthenticationService, snackBar: MatSnackBar)</code>
265
- </td>
266
- </tr>
267
- <tr>
268
- <td class="col-md-4">
269
- <div class="io-line">Defined in <a href="" data-line="80" class="link-to-prism">src/lib/login/login.component.ts:80</a></div>
270
- </td>
271
- </tr>
272
-
273
- <tr>
274
- <td class="col-md-4">
275
- <div>
276
- <b>Parameters :</b>
277
- <table class="params">
278
- <thead>
279
- <tr>
280
- <td>Name</td>
281
- <td>Type</td>
282
- <td>Optional</td>
283
- </tr>
284
- </thead>
285
- <tbody>
286
- <tr>
287
- <td>authentication</td>
288
-
289
- <td>
290
- <code>RxapAuthenticationService</code>
291
- </td>
292
-
293
- <td>
294
- No
295
- </td>
296
-
297
- </tr>
298
- <tr>
299
- <td>snackBar</td>
300
-
301
- <td>
302
- <code>MatSnackBar</code>
303
- </td>
304
-
305
- <td>
306
- No
307
- </td>
308
-
309
- </tr>
310
- </tbody>
311
- </table>
312
- </div>
313
- </td>
314
- </tr>
315
- </tbody>
316
- </table>
317
- </section>
318
257
 
319
258
 
320
259
 
@@ -348,8 +287,8 @@
348
287
 
349
288
  <tr>
350
289
  <td class="col-md-4">
351
- <div class="io-line">Defined in <a href="" data-line="90"
352
- class="link-to-prism">src/lib/login/login.component.ts:90</a></div>
290
+ <div class="io-line">Defined in <a href="" data-line="76"
291
+ class="link-to-prism">src/lib/login/login.component.ts:76</a></div>
353
292
  </td>
354
293
  </tr>
355
294
 
@@ -421,7 +360,7 @@
421
360
  </tr>
422
361
  <tr>
423
362
  <td class="col-md-4">
424
- <div class="io-line">Defined in <a href="" data-line="78" class="link-to-prism">src/lib/login/login.component.ts:78</a></div>
363
+ <div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/lib/login/login.component.ts:72</a></div>
425
364
  </td>
426
365
  </tr>
427
366
 
@@ -434,16 +373,8 @@
434
373
 
435
374
 
436
375
  <div class="tab-pane fade tab-source-code" id="source">
437
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
438
- AsyncPipe,
439
- NgIf,
440
- } from &#x27;@angular/common&#x27;;
441
- import {
442
- ChangeDetectionStrategy,
443
- Component,
444
- inject,
445
- Inject,
446
- } from &#x27;@angular/core&#x27;;
376
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AsyncPipe } from &#x27;@angular/common&#x27;;
377
+ import { ChangeDetectionStrategy, Component, inject } from &#x27;@angular/core&#x27;;
447
378
  import { ReactiveFormsModule } from &#x27;@angular/forms&#x27;;
448
379
  import { MatButtonModule } from &#x27;@angular/material/button&#x27;;
449
380
  import { MatCheckboxModule } from &#x27;@angular/material/checkbox&#x27;;
@@ -490,39 +421,33 @@ import { RequestResetPasswordMethod } from &#x27;./request-reset-password.method
490
421
  fadeAnimation,
491
422
  ],
492
423
  imports: [
493
- ReactiveFormsModule,
494
- FormDirective,
495
- MatIconModule,
496
- MatFormFieldModule,
497
- MatInputModule,
498
- NgIf,
499
- MatButtonModule,
500
- MatCheckboxModule,
501
- MatTooltipModule,
502
- MatProgressSpinnerModule,
503
- FormControlMarkDirtyDirective,
504
- FormSubmitFailedDirective,
505
- FormSubmittingDirective,
506
- MatProgressBarModule,
507
- AsyncPipe,
508
- MatSnackBarModule,
509
- ControlErrorDirective,
510
- ]
424
+ ReactiveFormsModule,
425
+ FormDirective,
426
+ MatIconModule,
427
+ MatFormFieldModule,
428
+ MatInputModule,
429
+ MatButtonModule,
430
+ MatCheckboxModule,
431
+ MatTooltipModule,
432
+ MatProgressSpinnerModule,
433
+ FormControlMarkDirtyDirective,
434
+ FormSubmitFailedDirective,
435
+ FormSubmittingDirective,
436
+ MatProgressBarModule,
437
+ AsyncPipe,
438
+ MatSnackBarModule,
439
+ ControlErrorDirective
440
+ ]
511
441
  })
512
442
  export class LoginComponent {
443
+ private readonly authentication &#x3D; inject&lt;RxapAuthenticationService&gt;(RxapAuthenticationService);
444
+ private readonly snackBar &#x3D; inject&lt;MatSnackBar&gt;(MatSnackBar);
445
+
513
446
 
514
447
  public readonly requestingPasswordReset$ &#x3D; new ToggleSubject();
515
448
 
516
449
  private readonly requestPasswordResetMethod &#x3D; inject(RequestResetPasswordMethod);
517
450
 
518
- constructor(
519
- @Inject(RxapAuthenticationService)
520
- private readonly authentication: RxapAuthenticationService,
521
- @Inject(MatSnackBar)
522
- private readonly snackBar: MatSnackBar,
523
- ) {
524
- }
525
-
526
451
  public async requestPasswordReset(email: string) {
527
452
  this.requestingPasswordReset$.enable();
528
453
  try {
@@ -567,9 +492,9 @@ export class LoginComponent {
567
492
 
568
493
  <div class="tab-pane fade " id="templateData">
569
494
  <pre class="line-numbers"><code class="language-html">&lt;form #form&#x3D;&quot;rxapForm&quot; [@fadeAnimation]&#x3D;&quot;&#x27;in&#x27;&quot;
570
- class&#x3D;&quot;inner mat-elevation-z5 flex flex-col justify-center items-center gap-4&quot;
571
- novalidate
572
- rxapForm&gt;
495
+ class&#x3D;&quot;inner mat-elevation-z5 flex flex-col justify-center items-center gap-4&quot;
496
+ novalidate
497
+ rxapForm&gt;
573
498
 
574
499
  &lt;div class&#x3D;&quot;header flex flex-col items-center justify-center grow-0&quot;&gt;
575
500
 
@@ -585,11 +510,11 @@ export class LoginComponent {
585
510
  &lt;mat-icon inline matPrefix&gt;email&lt;/mat-icon&gt;
586
511
  &lt;mat-label i18n&gt;Email&lt;/mat-label&gt;
587
512
  &lt;input formControlName&#x3D;&quot;email&quot;
588
- i18n-placeholder
589
- matInput
590
- name&#x3D;&quot;email&quot;
591
- placeholder&#x3D;&quot;Enter your email address&quot;
592
- type&#x3D;&quot;email&quot;&gt;
513
+ i18n-placeholder
514
+ matInput
515
+ name&#x3D;&quot;email&quot;
516
+ placeholder&#x3D;&quot;Enter your email address&quot;
517
+ type&#x3D;&quot;email&quot;&gt;
593
518
  &lt;mat-error *rxapControlError&#x3D;&quot;let error key &#x27;required&#x27;&quot;&gt;
594
519
  Email is &lt;strong&gt;required&lt;/strong&gt;
595
520
  &lt;/mat-error&gt;
@@ -602,25 +527,29 @@ export class LoginComponent {
602
527
  &lt;mat-icon inline matPrefix&gt;vpn_key&lt;/mat-icon&gt;
603
528
  &lt;mat-label i18n&gt;Password&lt;/mat-label&gt;
604
529
  &lt;input #passwordInput
605
- formControlName&#x3D;&quot;password&quot;
606
- i18n-placeholder
607
- matInput
608
- name&#x3D;&quot;password&quot;
609
- placeholder&#x3D;&quot;Enter your password&quot;
610
- type&#x3D;&quot;password&quot;&gt;
530
+ formControlName&#x3D;&quot;password&quot;
531
+ i18n-placeholder
532
+ matInput
533
+ name&#x3D;&quot;password&quot;
534
+ placeholder&#x3D;&quot;Enter your password&quot;
535
+ type&#x3D;&quot;password&quot;&gt;
611
536
  &lt;mat-error *rxapControlError&#x3D;&quot;let error key &#x27;required&#x27;&quot;&gt;
612
537
  Password is &lt;strong&gt;required&lt;/strong&gt;
613
538
  &lt;/mat-error&gt;
614
- &lt;button (click)&#x3D;&quot;passwordInput.type &#x3D; &#x27;test&#x27;&quot; *ngIf&#x3D;&quot;passwordInput.type &#x3D;&#x3D;&#x3D; &#x27;password&#x27;&quot; mat-icon-button
615
- matSuffix tabIndex&#x3D;&quot;-1&quot;
616
- type&#x3D;&quot;button&quot;&gt;
617
- &lt;mat-icon&gt;visibility&lt;/mat-icon&gt;
618
- &lt;/button&gt;
619
- &lt;button (click)&#x3D;&quot;passwordInput.type &#x3D; &#x27;password&#x27;&quot; *ngIf&#x3D;&quot;passwordInput.type &#x3D;&#x3D;&#x3D; &#x27;text&#x27;&quot; mat-icon-button
620
- matSuffix tabIndex&#x3D;&quot;-1&quot;
621
- type&#x3D;&quot;button&quot;&gt;
622
- &lt;mat-icon&gt;visibility_off&lt;/mat-icon&gt;
623
- &lt;/button&gt;
539
+ @if (passwordInput.type &#x3D;&#x3D;&#x3D; &#x27;password&#x27;) {
540
+ &lt;button (click)&#x3D;&quot;passwordInput.type &#x3D; &#x27;text&#x27;&quot; mat-icon-button
541
+ matSuffix tabIndex&#x3D;&quot;-1&quot;
542
+ type&#x3D;&quot;button&quot;&gt;
543
+ &lt;mat-icon&gt;visibility&lt;/mat-icon&gt;
544
+ &lt;/button&gt;
545
+ }
546
+ @if (passwordInput.type &#x3D;&#x3D;&#x3D; &#x27;text&#x27;) {
547
+ &lt;button (click)&#x3D;&quot;passwordInput.type &#x3D; &#x27;password&#x27;&quot; mat-icon-button
548
+ matSuffix tabIndex&#x3D;&quot;-1&quot;
549
+ type&#x3D;&quot;button&quot;&gt;
550
+ &lt;mat-icon&gt;visibility_off&lt;/mat-icon&gt;
551
+ &lt;/button&gt;
552
+ }
624
553
  &lt;/mat-form-field&gt;
625
554
 
626
555
  &lt;/div&gt;
@@ -630,19 +559,21 @@ export class LoginComponent {
630
559
  &lt;mat-checkbox class&#x3D;&quot;remember-input grow-0&quot; formControlName&#x3D;&quot;remember&quot;&gt;Remember me&lt;/mat-checkbox&gt;
631
560
 
632
561
  &lt;div [matTooltipDisabled]&#x3D;&quot;form.control.controls[&#x27;email&#x27;].valid&quot;
633
- class&#x3D;&quot;grow-0&quot;
634
- matTooltip&#x3D;&quot;Please enter a valid email address&quot;
635
- matTooltipPosition&#x3D;&quot;above&quot;&gt;
562
+ class&#x3D;&quot;grow-0&quot;
563
+ matTooltip&#x3D;&quot;Please enter a valid email address&quot;
564
+ matTooltipPosition&#x3D;&quot;above&quot;&gt;
636
565
  &lt;button (click)&#x3D;&quot;requestPasswordReset(form.value.email)&quot;
637
- [disabled]&#x3D;&quot;!form.value.email || form.control.controls[&#x27;email&#x27;].hasError(&#x27;email&#x27;)&quot;
638
- color&#x3D;&quot;accent&quot;
639
- mat-button
640
- type&#x3D;&quot;button&quot;&gt;
641
- &lt;span class&#x3D;&quot;flex flex-row justify-between items-center gap-2&quot;&gt;
642
- &lt;mat-progress-spinner *ngIf&#x3D;&quot;requestingPasswordReset$ | async&quot; [diameter]&#x3D;&quot;15&quot;
643
- mode&#x3D;&quot;indeterminate&quot;&gt;&lt;/mat-progress-spinner&gt;
644
- &lt;span class&#x3D;&quot;grow-0&quot;&gt;Password forgotten&lt;/span&gt;
645
- &lt;/span&gt;
566
+ [disabled]&#x3D;&quot;!form.value.email || form.control.controls[&#x27;email&#x27;].hasError(&#x27;email&#x27;)&quot;
567
+ color&#x3D;&quot;accent&quot;
568
+ mat-button
569
+ type&#x3D;&quot;button&quot;&gt;
570
+ &lt;span class&#x3D;&quot;flex flex-row justify-between items-center gap-2&quot;&gt;
571
+ @if (requestingPasswordReset$ | async) {
572
+ &lt;mat-progress-spinner [diameter]&#x3D;&quot;15&quot;
573
+ mode&#x3D;&quot;indeterminate&quot;&gt;&lt;/mat-progress-spinner&gt;
574
+ }
575
+ &lt;span class&#x3D;&quot;grow-0&quot;&gt;Password forgotten&lt;/span&gt;
576
+ &lt;/span&gt;
646
577
  &lt;/button&gt;
647
578
  &lt;/div&gt;
648
579
 
@@ -770,7 +701,7 @@ export class LoginComponent {
770
701
  <script src="../js/libs/htmlparser.js"></script>
771
702
  <script src="../js/libs/deep-iterator.js"></script>
772
703
  <script>
773
- var COMPONENT_TEMPLATE = '<div><form #form="rxapForm" [@fadeAnimation]="\'in\'" class="inner mat-elevation-z5 flex flex-col justify-center items-center gap-4" novalidate rxapForm> <div class="header flex flex-col items-center justify-center grow-0"> <mat-icon class="avatar-icon grow-0" color="primary">account_circle</mat-icon> </div> <div class="content flex flex-col gap-8"> <div class="flex flex-col"> <mat-form-field class="email-input"> <mat-icon inline matPrefix>email</mat-icon> <mat-label i18n>Email</mat-label> <input formControlName="email" i18n-placeholder matInput name="email" placeholder="Enter your email address" type="email"> <mat-error *rxapControlError="let error key \'required\'"> Email is <strong>required</strong> </mat-error> <mat-error *rxapControlError="let error key \'email\'"> Please enter a valid email address </mat-error> </mat-form-field> <mat-form-field class="password-input"> <mat-icon inline matPrefix>vpn_key</mat-icon> <mat-label i18n>Password</mat-label> <input #passwordInput formControlName="password" i18n-placeholder matInput name="password" placeholder="Enter your password" type="password"> <mat-error *rxapControlError="let error key \'required\'"> Password is <strong>required</strong> </mat-error> <button (click)="passwordInput.type = \'test\'" *ngIf="passwordInput.type === \'password\'" mat-icon-button matSuffix tabIndex="-1" type="button"> <mat-icon>visibility</mat-icon> </button> <button (click)="passwordInput.type = \'password\'" *ngIf="passwordInput.type === \'text\'" mat-icon-button matSuffix tabIndex="-1" type="button"> <mat-icon>visibility_off</mat-icon> </button> </mat-form-field> </div> <div class="sub-controls flex flex-row flex-wrap justify-between items-center gap-4"> <mat-checkbox class="remember-input grow-0" formControlName="remember">Remember me</mat-checkbox> <div [matTooltipDisabled]="form.control.controls[\'email\'].valid" class="grow-0" matTooltip="Please enter a valid email address" matTooltipPosition="above"> <button (click)="requestPasswordReset(form.value.email)" [disabled]="!form.value.email || form.control.controls[\'email\'].hasError(\'email\')" color="accent" mat-button type="button"> <span class="flex flex-row justify-between items-center gap-2"> <mat-progress-spinner *ngIf="requestingPasswordReset$ | async" [diameter]="15" mode="indeterminate"></mat-progress-spinner> <span class="grow-0">Password forgotten</span> </span> </button> </div> </div> <div class="grow-0 flex flex-row justify-center items-center"> <div class="grow-0"> <button color="primary" mat-raised-button rxapFormControlMarkDirty type="submit">Login</button> </div> </div> </div> <div *rxapFormSubmitFailed="let error" class="flex flex-row justify-center items-center"> <mat-error>{{ error.message }}</mat-error> </div> <mat-progress-bar *rxapFormSubmitting class="loading-bar" mode="indeterminate"></mat-progress-bar></form></div>'
704
+ var COMPONENT_TEMPLATE = '<div><form #form="rxapForm" [@fadeAnimation]="\'in\'" class="inner mat-elevation-z5 flex flex-col justify-center items-center gap-4" novalidate rxapForm> <div class="header flex flex-col items-center justify-center grow-0"> <mat-icon class="avatar-icon grow-0" color="primary">account_circle</mat-icon> </div> <div class="content flex flex-col gap-8"> <div class="flex flex-col"> <mat-form-field class="email-input"> <mat-icon inline matPrefix>email</mat-icon> <mat-label i18n>Email</mat-label> <input formControlName="email" i18n-placeholder matInput name="email" placeholder="Enter your email address" type="email"> <mat-error *rxapControlError="let error key \'required\'"> Email is <strong>required</strong> </mat-error> <mat-error *rxapControlError="let error key \'email\'"> Please enter a valid email address </mat-error> </mat-form-field> <mat-form-field class="password-input"> <mat-icon inline matPrefix>vpn_key</mat-icon> <mat-label i18n>Password</mat-label> <input #passwordInput formControlName="password" i18n-placeholder matInput name="password" placeholder="Enter your password" type="password"> <mat-error *rxapControlError="let error key \'required\'"> Password is <strong>required</strong> </mat-error> @if (passwordInput.type === \'password\') { <button (click)="passwordInput.type = \'text\'" mat-icon-button matSuffix tabIndex="-1" type="button"> <mat-icon>visibility</mat-icon> </button> } @if (passwordInput.type === \'text\') { <button (click)="passwordInput.type = \'password\'" mat-icon-button matSuffix tabIndex="-1" type="button"> <mat-icon>visibility_off</mat-icon> </button> } </mat-form-field> </div> <div class="sub-controls flex flex-row flex-wrap justify-between items-center gap-4"> <mat-checkbox class="remember-input grow-0" formControlName="remember">Remember me</mat-checkbox> <div [matTooltipDisabled]="form.control.controls[\'email\'].valid" class="grow-0" matTooltip="Please enter a valid email address" matTooltipPosition="above"> <button (click)="requestPasswordReset(form.value.email)" [disabled]="!form.value.email || form.control.controls[\'email\'].hasError(\'email\')" color="accent" mat-button type="button"> <span class="flex flex-row justify-between items-center gap-2"> @if (requestingPasswordReset$ | async) { <mat-progress-spinner [diameter]="15" mode="indeterminate"></mat-progress-spinner> } <span class="grow-0">Password forgotten</span> </span> </button> </div> </div> <div class="grow-0 flex flex-row justify-center items-center"> <div class="grow-0"> <button color="primary" mat-raised-button rxapFormControlMarkDirty type="submit">Login</button> </div> </div> </div> <div *rxapFormSubmitFailed="let error" class="flex flex-row justify-center items-center"> <mat-error>{{ error.message }}</mat-error> </div> <mat-progress-bar *rxapFormSubmitting class="loading-bar" mode="indeterminate"></mat-progress-bar></form></div>'
774
705
  var COMPONENTS = [{'name': 'AuthenticationContainerComponent', 'selector': 'rxap-authentication-container'},{'name': 'LoadingComponent', 'selector': 'rxap-auth-loading'},{'name': 'LoginComponent', 'selector': 'rxap-login'},{'name': 'ResetPasswordComponent', 'selector': 'rxap-reset-password'}];
775
706
  var DIRECTIVES = [];
776
707
  var ACTUAL_COMPONENT = {'name': 'LoginComponent'};