@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.
- package/CHANGELOG.md +42 -0
- package/compodoc/changelog.html +40 -0
- package/compodoc/components/LoadingComponent.html +9 -108
- package/compodoc/components/LoginComponent.html +68 -137
- package/compodoc/components/ResetPasswordComponent.html +71 -58
- package/compodoc/dependencies.html +15 -15
- 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 +423 -799
- 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 +93 -135
- package/fesm2022/rxap-ngx-material-authentication.mjs.map +1 -1
- package/package.json +47 -46
- package/types/rxap-ngx-material-authentication.d.ts +141 -0
- package/index.d.ts +0 -11
- package/lib/authentication-container/authentication-container.component.d.ts +0 -5
- package/lib/fade-animation.d.ts +0 -1
- package/lib/loading/loading.component.d.ts +0 -15
- package/lib/login/login.component.d.ts +0 -14
- package/lib/login/login.form.d.ts +0 -43
- package/lib/login/request-reset-password.method.d.ts +0 -10
- package/lib/login/sign-in-with-email-and-password.method.d.ts +0 -12
- package/lib/reset-password/reset-password.component.d.ts +0 -5
- package/lib/reset-password/reset-password.form.d.ts +0 -35
- package/lib/reset-password/set-new-password-with-reset-token.method.d.ts +0 -11
- package/lib/routes.d.ts +0 -2
|
@@ -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>FormControlMarkDirtyDirective</code>
|
|
177
176
|
<code>FormSubmitFailedDirective</code>
|
|
@@ -217,8 +216,7 @@
|
|
|
217
216
|
|
|
218
217
|
|
|
219
218
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
220
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
221
|
-
import {
|
|
219
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
222
220
|
ChangeDetectionStrategy,
|
|
223
221
|
Component,
|
|
224
222
|
} from '@angular/core';
|
|
@@ -242,7 +240,17 @@ import {
|
|
|
242
240
|
import { ControlErrorDirective } from '@rxap/material-form-system';
|
|
243
241
|
import { fadeAnimation } from '../fade-animation';
|
|
244
242
|
import { ResetPasswordFormProviders } from './reset-password.form';
|
|
245
|
-
|
|
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
|
+
})
|
|
246
254
|
@Component({
|
|
247
255
|
selector: 'rxap-reset-password',
|
|
248
256
|
templateUrl: './reset-password.component.html',
|
|
@@ -259,20 +267,19 @@ import { ResetPasswordFormProviders } from './reset-password.form';
|
|
|
259
267
|
fadeAnimation,
|
|
260
268
|
],
|
|
261
269
|
imports: [
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
]
|
|
270
|
+
ReactiveFormsModule,
|
|
271
|
+
FormDirective,
|
|
272
|
+
MatIconModule,
|
|
273
|
+
MatFormFieldModule,
|
|
274
|
+
MatInputModule,
|
|
275
|
+
MatButtonModule,
|
|
276
|
+
FormControlMarkDirtyDirective,
|
|
277
|
+
FormSubmitFailedDirective,
|
|
278
|
+
FormSubmittingDirective,
|
|
279
|
+
MatProgressBarModule,
|
|
280
|
+
MatSnackBarModule,
|
|
281
|
+
ControlErrorDirective
|
|
282
|
+
]
|
|
276
283
|
})
|
|
277
284
|
export class ResetPasswordComponent {
|
|
278
285
|
}
|
|
@@ -281,9 +288,9 @@ export class ResetPasswordComponent {
|
|
|
281
288
|
|
|
282
289
|
<div class="tab-pane fade " id="templateData">
|
|
283
290
|
<pre class="line-numbers"><code class="language-html"><form #form="rxapForm" [@fadeAnimation]="'in'"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
291
|
+
class="inner mat-elevation-z5 flex flex-col items-center justify-center gap-4"
|
|
292
|
+
novalidate
|
|
293
|
+
rxapForm>
|
|
287
294
|
|
|
288
295
|
<div class="header grow-0 flex flex-col items-center justify-center">
|
|
289
296
|
|
|
@@ -299,57 +306,63 @@ export class ResetPasswordComponent {
|
|
|
299
306
|
<mat-icon inline matPrefix>vpn_key</mat-icon>
|
|
300
307
|
<mat-label i18n>New password</mat-label>
|
|
301
308
|
<input #passwordInput
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
309
|
+
formControlName="password"
|
|
310
|
+
i18n-placeholder
|
|
311
|
+
matInput
|
|
312
|
+
placeholder="Enter your new password"
|
|
313
|
+
type="password">
|
|
307
314
|
<mat-error *rxapControlError="let error key 'required'">
|
|
308
315
|
Password is <strong>required</strong>
|
|
309
316
|
</mat-error>
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
<mat-icon
|
|
319
|
-
|
|
317
|
+
@if (passwordInput.type === 'password') {
|
|
318
|
+
<button (click)="passwordInput.type = 'text'" mat-icon-button
|
|
319
|
+
matSuffix tabIndex="-1"
|
|
320
|
+
type="button">
|
|
321
|
+
<mat-icon>visibility</mat-icon>
|
|
322
|
+
</button>
|
|
323
|
+
}
|
|
324
|
+
@if (passwordInput.type === 'text') {
|
|
325
|
+
<button (click)="passwordInput.type = 'password'" mat-icon-button
|
|
326
|
+
matSuffix tabIndex="-1"
|
|
327
|
+
type="button">
|
|
328
|
+
<mat-icon>visibility_off</mat-icon>
|
|
329
|
+
</button>
|
|
330
|
+
}
|
|
320
331
|
</mat-form-field>
|
|
321
332
|
|
|
322
333
|
<mat-form-field class="password-input">
|
|
323
334
|
<mat-icon inline matPrefix>vpn_key</mat-icon>
|
|
324
335
|
<mat-label i18n>Repeat password</mat-label>
|
|
325
336
|
<input #passwordRepeatInput
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
337
|
+
formControlName="passwordRepeat"
|
|
338
|
+
i18n-placeholder
|
|
339
|
+
matInput
|
|
340
|
+
placeholder="Enter your new password again"
|
|
341
|
+
type="password">
|
|
331
342
|
<mat-error *rxapControlError="let error key 'required'">
|
|
332
343
|
Password is <strong>required</strong>
|
|
333
344
|
</mat-error>
|
|
334
345
|
<mat-error *rxapControlError="let error key 'equal'">
|
|
335
346
|
Entered password are <strong>not equal</strong>
|
|
336
347
|
</mat-error>
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
348
|
+
@if (passwordRepeatInput.type === 'password') {
|
|
349
|
+
<button (click)="passwordRepeatInput.type = 'text'"
|
|
350
|
+
mat-icon-button
|
|
351
|
+
matSuffix
|
|
352
|
+
tabIndex="-1"
|
|
353
|
+
type="button">
|
|
354
|
+
<mat-icon>visibility</mat-icon>
|
|
355
|
+
</button>
|
|
356
|
+
}
|
|
357
|
+
@if (passwordRepeatInput.type === 'text') {
|
|
358
|
+
<button (click)="passwordRepeatInput.type = 'password'"
|
|
359
|
+
mat-icon-button
|
|
360
|
+
matSuffix
|
|
361
|
+
tabIndex="-1"
|
|
362
|
+
type="button">
|
|
363
|
+
<mat-icon>visibility_off</mat-icon>
|
|
364
|
+
</button>
|
|
365
|
+
}
|
|
353
366
|
</mat-form-field>
|
|
354
367
|
|
|
355
368
|
</div>
|
|
@@ -469,7 +482,7 @@ export class ResetPasswordComponent {
|
|
|
469
482
|
<script src="../js/libs/htmlparser.js"></script>
|
|
470
483
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
471
484
|
<script>
|
|
472
|
-
var COMPONENT_TEMPLATE = '<div><form #form="rxapForm" [@fadeAnimation]="\'in\'"
|
|
485
|
+
var COMPONENT_TEMPLATE = '<div><form #form="rxapForm" [@fadeAnimation]="\'in\'" class="inner mat-elevation-z5 flex flex-col items-center justify-center gap-4" novalidate rxapForm> <div class="header grow-0 flex flex-col items-center justify-center"> <mat-icon class="avatar-icon grow-0" color="primary">vpn_key</mat-icon> </div> <div class="content flex flex-col gap-4"> <div class="flex flex-col"> <mat-form-field class="password-input"> <mat-icon inline matPrefix>vpn_key</mat-icon> <mat-label i18n>New password</mat-label> <input #passwordInput formControlName="password" i18n-placeholder matInput placeholder="Enter your new 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> <mat-form-field class="password-input"> <mat-icon inline matPrefix>vpn_key</mat-icon> <mat-label i18n>Repeat password</mat-label> <input #passwordRepeatInput formControlName="passwordRepeat" i18n-placeholder matInput placeholder="Enter your new password again" type="password"> <mat-error *rxapControlError="let error key \'required\'"> Password is <strong>required</strong> </mat-error> <mat-error *rxapControlError="let error key \'equal\'"> Entered password are <strong>not equal</strong> </mat-error> @if (passwordRepeatInput.type === \'password\') { <button (click)="passwordRepeatInput.type = \'text\'" mat-icon-button matSuffix tabIndex="-1" type="button"> <mat-icon>visibility</mat-icon> </button> } @if (passwordRepeatInput.type === \'text\') { <button (click)="passwordRepeatInput.type = \'password\'" mat-icon-button matSuffix tabIndex="-1" type="button"> <mat-icon>visibility_off</mat-icon> </button> } </mat-form-field> </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"> <ng-container i18n>Reset password</ng-container> </button> </div> </div> </div> <div *rxapFormSubmitFailed="let error" class="flex flex-row items-center justify-center"> <mat-error>{{ error.message }}</mat-error> </div> <mat-progress-bar *rxapFormSubmitting class="loading-bar" mode="indeterminate"></mat-progress-bar></form></div>'
|
|
473
486
|
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'}];
|
|
474
487
|
var DIRECTIVES = [];
|
|
475
488
|
var ACTUAL_COMPONENT = {'name': 'ResetPasswordComponent'};
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
</ol>
|
|
102
102
|
<ul class="dependencies-list">
|
|
103
103
|
<li>
|
|
104
|
-
<b>@nx/devkit</b> :
|
|
104
|
+
<b>@nx/devkit</b> : 22.7.5</li>
|
|
105
105
|
<li>
|
|
106
106
|
<b>tslib</b> : 2.6.2</li>
|
|
107
107
|
</ul>
|
|
@@ -113,33 +113,33 @@
|
|
|
113
113
|
</ol>
|
|
114
114
|
<ul class="dependencies-list">
|
|
115
115
|
<li>
|
|
116
|
-
<b>@angular/animations</b> : ^
|
|
116
|
+
<b>@angular/animations</b> : ^21.2.9</li>
|
|
117
117
|
<li>
|
|
118
|
-
<b>@angular/common</b> : ^
|
|
118
|
+
<b>@angular/common</b> : ^21.2.9</li>
|
|
119
119
|
<li>
|
|
120
|
-
<b>@angular/core</b> : ^
|
|
120
|
+
<b>@angular/core</b> : ^21.2.9</li>
|
|
121
121
|
<li>
|
|
122
|
-
<b>@angular/forms</b> : ^
|
|
122
|
+
<b>@angular/forms</b> : ^21.2.9</li>
|
|
123
123
|
<li>
|
|
124
|
-
<b>@angular/material</b> : ^
|
|
124
|
+
<b>@angular/material</b> : ^21.2.9</li>
|
|
125
125
|
<li>
|
|
126
|
-
<b>@angular/router</b> : ^
|
|
126
|
+
<b>@angular/router</b> : ^21.2.9</li>
|
|
127
127
|
<li>
|
|
128
|
-
<b>@rxap/authentication</b> : ^
|
|
128
|
+
<b>@rxap/authentication</b> : ^21.0.1-dev.1</li>
|
|
129
129
|
<li>
|
|
130
|
-
<b>@rxap/config</b> : ^
|
|
130
|
+
<b>@rxap/config</b> : ^21.0.1-dev.1</li>
|
|
131
131
|
<li>
|
|
132
|
-
<b>@rxap/forms</b> : ^
|
|
132
|
+
<b>@rxap/forms</b> : ^21.0.1-dev.1</li>
|
|
133
133
|
<li>
|
|
134
|
-
<b>@rxap/material-form-system</b> : ^
|
|
134
|
+
<b>@rxap/material-form-system</b> : ^21.0.1-dev.1</li>
|
|
135
135
|
<li>
|
|
136
|
-
<b>@rxap/pattern</b> : ^1.1.
|
|
136
|
+
<b>@rxap/pattern</b> : ^1.1.16-dev.1</li>
|
|
137
137
|
<li>
|
|
138
|
-
<b>@rxap/rxjs</b> : ^1.1.
|
|
138
|
+
<b>@rxap/rxjs</b> : ^1.1.18-dev.1</li>
|
|
139
139
|
<li>
|
|
140
|
-
<b>@rxap/utilities</b> : ^16.5.1</li>
|
|
140
|
+
<b>@rxap/utilities</b> : ^16.5.2-dev.1</li>
|
|
141
141
|
<li>
|
|
142
|
-
<b>rxjs</b> : ^7.8.
|
|
142
|
+
<b>rxjs</b> : ^7.8.2</li>
|
|
143
143
|
</ul>
|
|
144
144
|
|
|
145
145
|
|
|
@@ -135,7 +135,6 @@
|
|
|
135
135
|
<td class="col-md-4">
|
|
136
136
|
<ul class="index-list">
|
|
137
137
|
<li>
|
|
138
|
-
<span class="modifier">Public</span>
|
|
139
138
|
<span class="modifier">Readonly</span>
|
|
140
139
|
<a href="#config" >config</a>
|
|
141
140
|
</li>
|
|
@@ -194,54 +193,6 @@
|
|
|
194
193
|
</table>
|
|
195
194
|
</section>
|
|
196
195
|
|
|
197
|
-
<section data-compodoc="block-constructor">
|
|
198
|
-
<h3 id="constructor">Constructor</h3>
|
|
199
|
-
<table class="table table-sm table-bordered">
|
|
200
|
-
<tbody>
|
|
201
|
-
<tr>
|
|
202
|
-
<td class="col-md-4">
|
|
203
|
-
<code>constructor(config: ConfigService<any>)</code>
|
|
204
|
-
</td>
|
|
205
|
-
</tr>
|
|
206
|
-
<tr>
|
|
207
|
-
<td class="col-md-4">
|
|
208
|
-
<div class="io-line">Defined in <a href="" data-line="55" class="link-to-prism">src/lib/login/login.form.ts:55</a></div>
|
|
209
|
-
</td>
|
|
210
|
-
</tr>
|
|
211
|
-
|
|
212
|
-
<tr>
|
|
213
|
-
<td class="col-md-4">
|
|
214
|
-
<div>
|
|
215
|
-
<b>Parameters :</b>
|
|
216
|
-
<table class="params">
|
|
217
|
-
<thead>
|
|
218
|
-
<tr>
|
|
219
|
-
<td>Name</td>
|
|
220
|
-
<td>Type</td>
|
|
221
|
-
<td>Optional</td>
|
|
222
|
-
</tr>
|
|
223
|
-
</thead>
|
|
224
|
-
<tbody>
|
|
225
|
-
<tr>
|
|
226
|
-
<td>config</td>
|
|
227
|
-
|
|
228
|
-
<td>
|
|
229
|
-
<code>ConfigService<any></code>
|
|
230
|
-
</td>
|
|
231
|
-
|
|
232
|
-
<td>
|
|
233
|
-
No
|
|
234
|
-
</td>
|
|
235
|
-
|
|
236
|
-
</tr>
|
|
237
|
-
</tbody>
|
|
238
|
-
</table>
|
|
239
|
-
</div>
|
|
240
|
-
</td>
|
|
241
|
-
</tr>
|
|
242
|
-
</tbody>
|
|
243
|
-
</table>
|
|
244
|
-
</section>
|
|
245
196
|
|
|
246
197
|
<section data-compodoc="block-methods">
|
|
247
198
|
|
|
@@ -270,8 +221,8 @@
|
|
|
270
221
|
|
|
271
222
|
<tr>
|
|
272
223
|
<td class="col-md-4">
|
|
273
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
274
|
-
class="link-to-prism">src/lib/login/login.form.ts:
|
|
224
|
+
<div class="io-line">Defined in <a href="" data-line="53"
|
|
225
|
+
class="link-to-prism">src/lib/login/login.form.ts:53</a></div>
|
|
275
226
|
</td>
|
|
276
227
|
</tr>
|
|
277
228
|
|
|
@@ -299,7 +250,6 @@
|
|
|
299
250
|
<td class="col-md-4">
|
|
300
251
|
<a name="config"></a>
|
|
301
252
|
<span class="name">
|
|
302
|
-
<span class="modifier">Public</span>
|
|
303
253
|
<span class="modifier">Readonly</span>
|
|
304
254
|
<span ><b>config</b></span>
|
|
305
255
|
<a href="#config"><span class="icon ion-ios-link"></span></a>
|
|
@@ -308,13 +258,12 @@
|
|
|
308
258
|
</tr>
|
|
309
259
|
<tr>
|
|
310
260
|
<td class="col-md-4">
|
|
311
|
-
<i>
|
|
312
|
-
|
|
261
|
+
<i>Default value : </i><code>inject<ConfigService<any>>(ConfigService)</code>
|
|
313
262
|
</td>
|
|
314
263
|
</tr>
|
|
315
264
|
<tr>
|
|
316
265
|
<td class="col-md-4">
|
|
317
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
266
|
+
<div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/login/login.form.ts:31</a></div>
|
|
318
267
|
</td>
|
|
319
268
|
</tr>
|
|
320
269
|
|
|
@@ -351,7 +300,7 @@
|
|
|
351
300
|
</tr>
|
|
352
301
|
<tr>
|
|
353
302
|
<td class="col-md-4">
|
|
354
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
303
|
+
<div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/lib/login/login.form.ts:41</a></div>
|
|
355
304
|
</td>
|
|
356
305
|
</tr>
|
|
357
306
|
|
|
@@ -377,7 +326,7 @@
|
|
|
377
326
|
</tr>
|
|
378
327
|
<tr>
|
|
379
328
|
<td class="col-md-4">
|
|
380
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
329
|
+
<div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">src/lib/login/login.form.ts:35</a></div>
|
|
381
330
|
</td>
|
|
382
331
|
</tr>
|
|
383
332
|
|
|
@@ -403,7 +352,7 @@
|
|
|
403
352
|
</tr>
|
|
404
353
|
<tr>
|
|
405
354
|
<td class="col-md-4">
|
|
406
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
355
|
+
<div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/login/login.form.ts:36</a></div>
|
|
407
356
|
</td>
|
|
408
357
|
</tr>
|
|
409
358
|
|
|
@@ -440,7 +389,7 @@
|
|
|
440
389
|
</tr>
|
|
441
390
|
<tr>
|
|
442
391
|
<td class="col-md-4">
|
|
443
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
392
|
+
<div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/login/login.form.ts:46</a></div>
|
|
444
393
|
</td>
|
|
445
394
|
</tr>
|
|
446
395
|
|
|
@@ -477,7 +426,7 @@
|
|
|
477
426
|
</tr>
|
|
478
427
|
<tr>
|
|
479
428
|
<td class="col-md-4">
|
|
480
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
429
|
+
<div class="io-line">Defined in <a href="" data-line="51" class="link-to-prism">src/lib/login/login.form.ts:51</a></div>
|
|
481
430
|
</td>
|
|
482
431
|
</tr>
|
|
483
432
|
|
|
@@ -504,7 +453,7 @@
|
|
|
504
453
|
</tr>
|
|
505
454
|
<tr>
|
|
506
455
|
<td class="col-md-4">
|
|
507
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
456
|
+
<div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/login/login.form.ts:33</a></div>
|
|
508
457
|
</td>
|
|
509
458
|
</tr>
|
|
510
459
|
|
|
@@ -517,13 +466,7 @@
|
|
|
517
466
|
|
|
518
467
|
|
|
519
468
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
520
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
521
|
-
Inject,
|
|
522
|
-
Injectable,
|
|
523
|
-
INJECTOR,
|
|
524
|
-
Injector,
|
|
525
|
-
Provider,
|
|
526
|
-
} from '@angular/core';
|
|
469
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable, INJECTOR, Injector, Provider, inject } from '@angular/core';
|
|
527
470
|
import { Validators } from '@angular/forms';
|
|
528
471
|
import { Router } from '@angular/router';
|
|
529
472
|
import { ConfigService } from '@rxap/config';
|
|
@@ -553,6 +496,8 @@ export interface ILoginForm {
|
|
|
553
496
|
id: 'rxap-login',
|
|
554
497
|
}) @Injectable()
|
|
555
498
|
export class LoginForm implements FormType<ILoginForm>, RxapOnInit {
|
|
499
|
+
readonly config = inject<ConfigService<any>>(ConfigService);
|
|
500
|
+
|
|
556
501
|
public rxapFormGroup!: RxapFormGroup;
|
|
557
502
|
|
|
558
503
|
public loading = true;
|
|
@@ -573,9 +518,6 @@ export class LoginForm implements FormType<ILoginForm>, RxapOnInit {
|
|
|
573
518
|
})
|
|
574
519
|
public remember!: RxapFormControl;
|
|
575
520
|
|
|
576
|
-
constructor(public readonly config: ConfigService<any>) {
|
|
577
|
-
}
|
|
578
|
-
|
|
579
521
|
public rxapOnInit() {
|
|
580
522
|
const email = this.config.get<string>('authentication.default.email');
|
|
581
523
|
if (email) {
|
|
@@ -590,8 +532,8 @@ export class LoginForm implements FormType<ILoginForm>, RxapOnInit {
|
|
|
590
532
|
|
|
591
533
|
@Injectable()
|
|
592
534
|
export class LoginFormSubmitMethod implements FormSubmitMethod<any> {
|
|
593
|
-
|
|
594
|
-
|
|
535
|
+
private readonly signInWithEmailAndPasswordMethod = inject(SignInWithEmailAndPasswordMethod);
|
|
536
|
+
|
|
595
537
|
|
|
596
538
|
public call(value: {
|
|
597
539
|
email: string;
|
|
@@ -609,11 +551,8 @@ export class LoginFormSubmitMethod implements FormSubmitMethod<any> {
|
|
|
609
551
|
@Injectable()
|
|
610
552
|
export class LoginFormSubmitSuccessful
|
|
611
553
|
implements FormSubmitSuccessfulMethod<any> {
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
private readonly router: Router,
|
|
615
|
-
) {
|
|
616
|
-
}
|
|
554
|
+
private readonly router = inject<Router>(Router);
|
|
555
|
+
|
|
617
556
|
|
|
618
557
|
public call(): Promise<any> {
|
|
619
558
|
console.debug('Login was successful. Navigate to application root');
|
|
@@ -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(signInWithEmailAndPasswordMethod: <a href="../injectables/SignInWithEmailAndPasswordMethod.html" target="_self">SignInWithEmailAndPasswordMethod</a>)</code>
|
|
161
|
-
</td>
|
|
162
|
-
</tr>
|
|
163
|
-
<tr>
|
|
164
|
-
<td class="col-md-4">
|
|
165
|
-
<div class="io-line">Defined in <a href="" data-line="73" class="link-to-prism">src/lib/login/login.form.ts:73</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>signInWithEmailAndPasswordMethod</td>
|
|
184
|
-
|
|
185
|
-
<td>
|
|
186
|
-
<code><a href="../injectables/SignInWithEmailAndPasswordMethod.html" target="_self" >SignInWithEmailAndPasswordMethod</a></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="
|
|
231
|
-
class="link-to-prism">src/lib/login/login.form.ts:
|
|
182
|
+
<div class="io-line">Defined in <a href="" data-line="70"
|
|
183
|
+
class="link-to-prism">src/lib/login/login.form.ts:70</a></div>
|
|
232
184
|
</td>
|
|
233
185
|
</tr>
|
|
234
186
|
|
|
@@ -280,13 +232,7 @@
|
|
|
280
232
|
|
|
281
233
|
|
|
282
234
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
283
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
284
|
-
Inject,
|
|
285
|
-
Injectable,
|
|
286
|
-
INJECTOR,
|
|
287
|
-
Injector,
|
|
288
|
-
Provider,
|
|
289
|
-
} from '@angular/core';
|
|
235
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable, INJECTOR, Injector, Provider, inject } from '@angular/core';
|
|
290
236
|
import { Validators } from '@angular/forms';
|
|
291
237
|
import { Router } from '@angular/router';
|
|
292
238
|
import { ConfigService } from '@rxap/config';
|
|
@@ -316,6 +262,8 @@ export interface ILoginForm {
|
|
|
316
262
|
id: 'rxap-login',
|
|
317
263
|
}) @Injectable()
|
|
318
264
|
export class LoginForm implements FormType<ILoginForm>, RxapOnInit {
|
|
265
|
+
readonly config = inject<ConfigService<any>>(ConfigService);
|
|
266
|
+
|
|
319
267
|
public rxapFormGroup!: RxapFormGroup;
|
|
320
268
|
|
|
321
269
|
public loading = true;
|
|
@@ -336,9 +284,6 @@ export class LoginForm implements FormType<ILoginForm>, RxapOnInit {
|
|
|
336
284
|
})
|
|
337
285
|
public remember!: RxapFormControl;
|
|
338
286
|
|
|
339
|
-
constructor(public readonly config: ConfigService<any>) {
|
|
340
|
-
}
|
|
341
|
-
|
|
342
287
|
public rxapOnInit() {
|
|
343
288
|
const email = this.config.get<string>('authentication.default.email');
|
|
344
289
|
if (email) {
|
|
@@ -353,8 +298,8 @@ export class LoginForm implements FormType<ILoginForm>, RxapOnInit {
|
|
|
353
298
|
|
|
354
299
|
@Injectable()
|
|
355
300
|
export class LoginFormSubmitMethod implements FormSubmitMethod<any> {
|
|
356
|
-
|
|
357
|
-
|
|
301
|
+
private readonly signInWithEmailAndPasswordMethod = inject(SignInWithEmailAndPasswordMethod);
|
|
302
|
+
|
|
358
303
|
|
|
359
304
|
public call(value: {
|
|
360
305
|
email: string;
|
|
@@ -372,11 +317,8 @@ export class LoginFormSubmitMethod implements FormSubmitMethod<any> {
|
|
|
372
317
|
@Injectable()
|
|
373
318
|
export class LoginFormSubmitSuccessful
|
|
374
319
|
implements FormSubmitSuccessfulMethod<any> {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
private readonly router: Router,
|
|
378
|
-
) {
|
|
379
|
-
}
|
|
320
|
+
private readonly router = inject<Router>(Router);
|
|
321
|
+
|
|
380
322
|
|
|
381
323
|
public call(): Promise<any> {
|
|
382
324
|
console.debug('Login was successful. Navigate to application root');
|