@rxap/ngx-material-authentication 21.0.1-dev.0 → 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.
- package/CHANGELOG.md +22 -0
- package/compodoc/changelog.html +21 -0
- package/compodoc/components/LoadingComponent.html +9 -108
- package/compodoc/components/LoginComponent.html +9 -79
- package/compodoc/components/ResetPasswordComponent.html +11 -1
- package/compodoc/dependencies.html +7 -7
- package/compodoc/injectables/LoginForm.html +17 -78
- package/compodoc/injectables/LoginFormSubmitMethod.html +9 -67
- package/compodoc/injectables/LoginFormSubmitSuccessful.html +9 -67
- package/compodoc/injectables/ResetPasswordForm.html +13 -24
- package/compodoc/injectables/ResetPasswordFormSubmitMethod.html +8 -103
- package/compodoc/interfaces/ILoginForm.html +7 -17
- package/compodoc/interfaces/IResetPasswordForm.html +6 -17
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +416 -792
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/AuthenticationContainerComponent.html +2 -2
- package/docs/html/classes/LoadingComponent.html +4 -4
- package/docs/html/classes/LoginComponent.html +2 -2
- package/docs/html/classes/LoginForm.html +2 -2
- package/docs/html/classes/LoginFormSubmitMethod.html +2 -2
- package/docs/html/classes/LoginFormSubmitSuccessful.html +2 -2
- package/docs/html/classes/RequestResetPasswordMethod.html +2 -2
- package/docs/html/classes/ResetPasswordComponent.html +2 -2
- package/docs/html/classes/ResetPasswordForm.html +2 -2
- package/docs/html/classes/ResetPasswordFormSubmitMethod.html +2 -2
- package/docs/html/classes/SetNewPasswordWithResetTokenMethod.html +2 -2
- package/docs/html/classes/SignInWithEmailAndPasswordMethod.html +2 -2
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ILoginForm.html +2 -2
- package/docs/html/interfaces/IResetPasswordForm.html +2 -2
- package/docs/html/interfaces/RequestResetPasswordMethodParameters.html +2 -2
- package/docs/html/interfaces/SetNewPasswordWithResetTokenMethodParameters.html +2 -2
- package/docs/html/interfaces/SignInWithEmailAndPasswordMethodParameters.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/AUTHENTICATION_ROUTE.html +1 -1
- package/docs/html/variables/LoginFormProviders.html +1 -1
- package/docs/html/variables/RXAP_RESET_PASSWORD_FORM.html +1 -1
- package/docs/html/variables/ResetPasswordFormProviders.html +1 -1
- package/docs/html/variables/fadeAnimation.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AuthenticationContainerComponent.md +2 -2
- package/docs/markdown/classes/LoadingComponent.md +8 -20
- package/docs/markdown/classes/LoginComponent.md +5 -17
- package/docs/markdown/classes/LoginForm.md +11 -19
- package/docs/markdown/classes/LoginFormSubmitMethod.md +4 -12
- package/docs/markdown/classes/LoginFormSubmitSuccessful.md +4 -12
- package/docs/markdown/classes/RequestResetPasswordMethod.md +3 -3
- package/docs/markdown/classes/ResetPasswordComponent.md +2 -2
- package/docs/markdown/classes/ResetPasswordForm.md +7 -7
- package/docs/markdown/classes/ResetPasswordFormSubmitMethod.md +4 -24
- package/docs/markdown/classes/SetNewPasswordWithResetTokenMethod.md +3 -3
- package/docs/markdown/classes/SignInWithEmailAndPasswordMethod.md +3 -3
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ILoginForm.md +4 -4
- package/docs/markdown/interfaces/IResetPasswordForm.md +4 -4
- package/docs/markdown/interfaces/RequestResetPasswordMethodParameters.md +3 -3
- package/docs/markdown/interfaces/SetNewPasswordWithResetTokenMethodParameters.md +4 -4
- package/docs/markdown/interfaces/SignInWithEmailAndPasswordMethodParameters.md +5 -5
- package/docs/markdown/variables/AUTHENTICATION_ROUTE.md +2 -2
- package/docs/markdown/variables/LoginFormProviders.md +2 -2
- package/docs/markdown/variables/RXAP_RESET_PASSWORD_FORM.md +2 -2
- package/docs/markdown/variables/ResetPasswordFormProviders.md +2 -2
- package/docs/markdown/variables/fadeAnimation.md +2 -2
- package/docs/wiki/Class.AuthenticationContainerComponent.md +1 -1
- package/docs/wiki/Class.LoadingComponent.md +7 -19
- package/docs/wiki/Class.LoginComponent.md +4 -16
- package/docs/wiki/Class.LoginForm.md +10 -18
- package/docs/wiki/Class.LoginFormSubmitMethod.md +3 -11
- package/docs/wiki/Class.LoginFormSubmitSuccessful.md +3 -11
- package/docs/wiki/Class.RequestResetPasswordMethod.md +2 -2
- package/docs/wiki/Class.ResetPasswordComponent.md +1 -1
- package/docs/wiki/Class.ResetPasswordForm.md +6 -6
- package/docs/wiki/Class.ResetPasswordFormSubmitMethod.md +3 -23
- package/docs/wiki/Class.SetNewPasswordWithResetTokenMethod.md +2 -2
- package/docs/wiki/Class.SignInWithEmailAndPasswordMethod.md +2 -2
- package/docs/wiki/Interface.ILoginForm.md +3 -3
- package/docs/wiki/Interface.IResetPasswordForm.md +3 -3
- package/docs/wiki/Interface.RequestResetPasswordMethodParameters.md +2 -2
- package/docs/wiki/Interface.SetNewPasswordWithResetTokenMethodParameters.md +3 -3
- package/docs/wiki/Interface.SignInWithEmailAndPasswordMethodParameters.md +4 -4
- package/docs/wiki/Variable.AUTHENTICATION_ROUTE.md +1 -1
- package/docs/wiki/Variable.LoginFormProviders.md +1 -1
- package/docs/wiki/Variable.RXAP_RESET_PASSWORD_FORM.md +1 -1
- package/docs/wiki/Variable.ResetPasswordFormProviders.md +1 -1
- package/docs/wiki/Variable.fadeAnimation.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-material-authentication.mjs +59 -99
- package/fesm2022/rxap-ngx-material-authentication.mjs.map +1 -1
- package/package.json +27 -27
- package/types/rxap-ngx-material-authentication.d.ts +23 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
23
|
## 21.0.1-dev.0 (2026-11-20)
|
|
2
24
|
|
|
3
25
|
### 🩹 Fixes
|
package/compodoc/changelog.html
CHANGED
|
@@ -82,6 +82,27 @@
|
|
|
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>
|
|
85
106
|
<h2>21.0.1-dev.0 (2026-11-20)</h2>
|
|
86
107
|
<h3>🩹 Fixes</h3>
|
|
87
108
|
<ul>
|
|
@@ -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>
|
|
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<RxapAuthenticationService>(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="
|
|
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>
|
|
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<Router>(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="
|
|
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="
|
|
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 '@angular/core';
|
|
329
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ChangeDetectionStrategy, Component, OnDestroy, OnInit, inject } from '@angular/core';
|
|
424
330
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
425
331
|
import { Router } from '@angular/router';
|
|
426
332
|
import { RxapAuthenticationService } from '@rxap/authentication';
|
|
@@ -438,15 +344,10 @@ import {
|
|
|
438
344
|
imports: [MatProgressBarModule]
|
|
439
345
|
})
|
|
440
346
|
export class LoadingComponent implements OnInit, OnDestroy {
|
|
441
|
-
|
|
347
|
+
readonly authentication = inject<RxapAuthenticationService>(RxapAuthenticationService);
|
|
348
|
+
readonly router = inject<Router>(Router);
|
|
442
349
|
|
|
443
|
-
|
|
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$
|
|
@@ -254,66 +254,6 @@
|
|
|
254
254
|
</table>
|
|
255
255
|
</section>
|
|
256
256
|
|
|
257
|
-
<section data-compodoc="block-constructor">
|
|
258
|
-
<h3 id="constructor">Constructor</h3>
|
|
259
|
-
<table class="table table-sm table-bordered">
|
|
260
|
-
<tbody>
|
|
261
|
-
<tr>
|
|
262
|
-
<td class="col-md-4">
|
|
263
|
-
<code>constructor(authentication: RxapAuthenticationService, snackBar: MatSnackBar)</code>
|
|
264
|
-
</td>
|
|
265
|
-
</tr>
|
|
266
|
-
<tr>
|
|
267
|
-
<td class="col-md-4">
|
|
268
|
-
<div class="io-line">Defined in <a href="" data-line="76" class="link-to-prism">src/lib/login/login.component.ts:76</a></div>
|
|
269
|
-
</td>
|
|
270
|
-
</tr>
|
|
271
|
-
|
|
272
|
-
<tr>
|
|
273
|
-
<td class="col-md-4">
|
|
274
|
-
<div>
|
|
275
|
-
<b>Parameters :</b>
|
|
276
|
-
<table class="params">
|
|
277
|
-
<thead>
|
|
278
|
-
<tr>
|
|
279
|
-
<td>Name</td>
|
|
280
|
-
<td>Type</td>
|
|
281
|
-
<td>Optional</td>
|
|
282
|
-
</tr>
|
|
283
|
-
</thead>
|
|
284
|
-
<tbody>
|
|
285
|
-
<tr>
|
|
286
|
-
<td>authentication</td>
|
|
287
|
-
|
|
288
|
-
<td>
|
|
289
|
-
<code>RxapAuthenticationService</code>
|
|
290
|
-
</td>
|
|
291
|
-
|
|
292
|
-
<td>
|
|
293
|
-
No
|
|
294
|
-
</td>
|
|
295
|
-
|
|
296
|
-
</tr>
|
|
297
|
-
<tr>
|
|
298
|
-
<td>snackBar</td>
|
|
299
|
-
|
|
300
|
-
<td>
|
|
301
|
-
<code>MatSnackBar</code>
|
|
302
|
-
</td>
|
|
303
|
-
|
|
304
|
-
<td>
|
|
305
|
-
No
|
|
306
|
-
</td>
|
|
307
|
-
|
|
308
|
-
</tr>
|
|
309
|
-
</tbody>
|
|
310
|
-
</table>
|
|
311
|
-
</div>
|
|
312
|
-
</td>
|
|
313
|
-
</tr>
|
|
314
|
-
</tbody>
|
|
315
|
-
</table>
|
|
316
|
-
</section>
|
|
317
257
|
|
|
318
258
|
|
|
319
259
|
|
|
@@ -347,8 +287,8 @@
|
|
|
347
287
|
|
|
348
288
|
<tr>
|
|
349
289
|
<td class="col-md-4">
|
|
350
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
351
|
-
class="link-to-prism">src/lib/login/login.component.ts:
|
|
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>
|
|
352
292
|
</td>
|
|
353
293
|
</tr>
|
|
354
294
|
|
|
@@ -420,7 +360,7 @@
|
|
|
420
360
|
</tr>
|
|
421
361
|
<tr>
|
|
422
362
|
<td class="col-md-4">
|
|
423
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
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>
|
|
424
364
|
</td>
|
|
425
365
|
</tr>
|
|
426
366
|
|
|
@@ -434,12 +374,7 @@
|
|
|
434
374
|
|
|
435
375
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
436
376
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AsyncPipe } from '@angular/common';
|
|
437
|
-
import {
|
|
438
|
-
ChangeDetectionStrategy,
|
|
439
|
-
Component,
|
|
440
|
-
inject,
|
|
441
|
-
Inject,
|
|
442
|
-
} from '@angular/core';
|
|
377
|
+
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
443
378
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
444
379
|
import { MatButtonModule } from '@angular/material/button';
|
|
445
380
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
@@ -505,19 +440,14 @@ import { RequestResetPasswordMethod } from './request-reset-password.method
|
|
|
505
440
|
]
|
|
506
441
|
})
|
|
507
442
|
export class LoginComponent {
|
|
443
|
+
private readonly authentication = inject<RxapAuthenticationService>(RxapAuthenticationService);
|
|
444
|
+
private readonly snackBar = inject<MatSnackBar>(MatSnackBar);
|
|
445
|
+
|
|
508
446
|
|
|
509
447
|
public readonly requestingPasswordReset$ = new ToggleSubject();
|
|
510
448
|
|
|
511
449
|
private readonly requestPasswordResetMethod = inject(RequestResetPasswordMethod);
|
|
512
450
|
|
|
513
|
-
constructor(
|
|
514
|
-
@Inject(RxapAuthenticationService)
|
|
515
|
-
private readonly authentication: RxapAuthenticationService,
|
|
516
|
-
@Inject(MatSnackBar)
|
|
517
|
-
private readonly snackBar: MatSnackBar,
|
|
518
|
-
) {
|
|
519
|
-
}
|
|
520
|
-
|
|
521
451
|
public async requestPasswordReset(email: string) {
|
|
522
452
|
this.requestingPasswordReset$.enable();
|
|
523
453
|
try {
|
|
@@ -607,7 +537,7 @@ export class LoginComponent {
|
|
|
607
537
|
Password is <strong>required</strong>
|
|
608
538
|
</mat-error>
|
|
609
539
|
@if (passwordInput.type === 'password') {
|
|
610
|
-
<button (click)="passwordInput.type = '
|
|
540
|
+
<button (click)="passwordInput.type = 'text'" mat-icon-button
|
|
611
541
|
matSuffix tabIndex="-1"
|
|
612
542
|
type="button">
|
|
613
543
|
<mat-icon>visibility</mat-icon>
|
|
@@ -771,7 +701,7 @@ export class LoginComponent {
|
|
|
771
701
|
<script src="../js/libs/htmlparser.js"></script>
|
|
772
702
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
773
703
|
<script>
|
|
774
|
-
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 = \'
|
|
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>'
|
|
775
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'}];
|
|
776
706
|
var DIRECTIVES = [];
|
|
777
707
|
var ACTUAL_COMPONENT = {'name': 'LoginComponent'};
|
|
@@ -240,7 +240,17 @@ import {
|
|
|
240
240
|
import { ControlErrorDirective } from '@rxap/material-form-system';
|
|
241
241
|
import { fadeAnimation } from '../fade-animation';
|
|
242
242
|
import { ResetPasswordFormProviders } from './reset-password.form';
|
|
243
|
-
|
|
243
|
+
import { Showcase } from '@ng-prism/core';
|
|
244
|
+
|
|
245
|
+
@Showcase({
|
|
246
|
+
title: 'Reset Password',
|
|
247
|
+
category: 'Authentication',
|
|
248
|
+
description: 'Form to set a new password after a password reset request.',
|
|
249
|
+
status: 'stable',
|
|
250
|
+
variants: [
|
|
251
|
+
{ name: 'Default' },
|
|
252
|
+
],
|
|
253
|
+
})
|
|
244
254
|
@Component({
|
|
245
255
|
selector: 'rxap-reset-password',
|
|
246
256
|
templateUrl: './reset-password.component.html',
|
|
@@ -125,19 +125,19 @@
|
|
|
125
125
|
<li>
|
|
126
126
|
<b>@angular/router</b> : ^21.2.9</li>
|
|
127
127
|
<li>
|
|
128
|
-
<b>@rxap/authentication</b> : ^21.0.1-dev.
|
|
128
|
+
<b>@rxap/authentication</b> : ^21.0.1-dev.1</li>
|
|
129
129
|
<li>
|
|
130
|
-
<b>@rxap/config</b> : ^21.0.1-dev.
|
|
130
|
+
<b>@rxap/config</b> : ^21.0.1-dev.1</li>
|
|
131
131
|
<li>
|
|
132
|
-
<b>@rxap/forms</b> : ^21.0.1-dev.
|
|
132
|
+
<b>@rxap/forms</b> : ^21.0.1-dev.1</li>
|
|
133
133
|
<li>
|
|
134
|
-
<b>@rxap/material-form-system</b> : ^21.0.1-dev.
|
|
134
|
+
<b>@rxap/material-form-system</b> : ^21.0.1-dev.1</li>
|
|
135
135
|
<li>
|
|
136
|
-
<b>@rxap/pattern</b> : ^1.1.16-dev.
|
|
136
|
+
<b>@rxap/pattern</b> : ^1.1.16-dev.1</li>
|
|
137
137
|
<li>
|
|
138
|
-
<b>@rxap/rxjs</b> : ^1.1.18-dev.
|
|
138
|
+
<b>@rxap/rxjs</b> : ^1.1.18-dev.1</li>
|
|
139
139
|
<li>
|
|
140
|
-
<b>@rxap/utilities</b> : ^16.5.2-dev.
|
|
140
|
+
<b>@rxap/utilities</b> : ^16.5.2-dev.1</li>
|
|
141
141
|
<li>
|
|
142
142
|
<b>rxjs</b> : ^7.8.2</li>
|
|
143
143
|
</ul>
|