@myrmidon/auth-jwt-admin 8.0.4 → 10.0.0
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _angular_forms_signals from '@angular/forms/signals';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
2
3
|
import { OnChanges, SimpleChange } from '@angular/core';
|
|
3
|
-
import { FormGroup, FormControl, ValidatorFn } from '@angular/forms';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { DataPage } from '@myrmidon/ngx-tools';
|
|
6
6
|
import { User, GravatarOptions } from '@myrmidon/auth-jwt-login';
|
|
@@ -14,37 +14,26 @@ declare class AuthJwtRegistrationComponent {
|
|
|
14
14
|
private _snackbar;
|
|
15
15
|
private _accountService;
|
|
16
16
|
private _userRepository;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
protected readonly formModel: _angular_core.WritableSignal<{
|
|
18
|
+
email: string;
|
|
19
|
+
name: string;
|
|
20
|
+
firstName: string;
|
|
21
|
+
lastName: string;
|
|
22
|
+
password: string;
|
|
23
|
+
confirmPassword: string;
|
|
24
|
+
}>;
|
|
25
|
+
protected readonly userForm: _angular_forms_signals.FieldTree<{
|
|
26
|
+
email: string;
|
|
27
|
+
name: string;
|
|
28
|
+
firstName: string;
|
|
29
|
+
lastName: string;
|
|
30
|
+
password: string;
|
|
31
|
+
confirmPassword: string;
|
|
32
|
+
}, string | number, "writable">;
|
|
27
33
|
readonly autoConfirm: _angular_core.InputSignal<boolean | undefined>;
|
|
28
|
-
/**
|
|
29
|
-
* Emitted when a user was successfully registered. Usually
|
|
30
|
-
* you should handle this to move away from the registration
|
|
31
|
-
* page.
|
|
32
|
-
*/
|
|
33
34
|
registered: _angular_core.OutputEmitterRef<void>;
|
|
34
35
|
readonly busy: _angular_core.WritableSignal<boolean | undefined>;
|
|
35
36
|
readonly hidePassword: _angular_core.WritableSignal<boolean>;
|
|
36
|
-
constructor();
|
|
37
|
-
/**
|
|
38
|
-
* Creates a unique name validator. There is no dependency injection at this level,
|
|
39
|
-
* but we can use closures. As a matter of fact, we have access to the service instance
|
|
40
|
-
* from the component where we register validators. So we will implement a function
|
|
41
|
-
* that will accept the service as parameter, and create the actual validation function.
|
|
42
|
-
* This function will have access to the service when called during the validation process.
|
|
43
|
-
* See http://restlet.com/blog/2016/02/17/implementing-angular2-forms-beyond-basics-part-2/.
|
|
44
|
-
*/
|
|
45
|
-
private getUniqueNameValidator;
|
|
46
|
-
private getUniqueEmailValidator;
|
|
47
|
-
onSubmit(): void;
|
|
48
37
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AuthJwtRegistrationComponent, never>;
|
|
49
38
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AuthJwtRegistrationComponent, "auth-jwt-registration", never, { "autoConfirm": { "alias": "autoConfirm"; "required": false; "isSignal": true; }; }, { "registered": "registered"; }, never, never, true, never>;
|
|
50
39
|
}
|
|
@@ -105,7 +94,7 @@ declare class PasswordChecklistComponent {
|
|
|
105
94
|
readonly isRuleSatisfied: _angular_core.Signal<(ruleId: string) => boolean>;
|
|
106
95
|
readonly isValid: _angular_core.Signal<boolean>;
|
|
107
96
|
readonly strength: _angular_core.Signal<number>;
|
|
108
|
-
readonly strengthLevel: _angular_core.Signal<
|
|
97
|
+
readonly strengthLevel: _angular_core.Signal<3 | 1 | 0 | 2 | 4>;
|
|
109
98
|
readonly strengthColor: _angular_core.Signal<string>;
|
|
110
99
|
readonly strengthPercent: _angular_core.Signal<number>;
|
|
111
100
|
constructor();
|
|
@@ -257,26 +246,17 @@ declare class AuthJwtAccountService {
|
|
|
257
246
|
* Users filter.
|
|
258
247
|
*/
|
|
259
248
|
declare class UserFilterComponent {
|
|
260
|
-
private _filter?;
|
|
261
|
-
/**
|
|
262
|
-
* The filter.
|
|
263
|
-
*/
|
|
264
249
|
readonly filter: _angular_core.InputSignal<UserFilter | null | undefined>;
|
|
265
|
-
/**
|
|
266
|
-
* Whether the filter is disabled.
|
|
267
|
-
*/
|
|
268
250
|
readonly disabled: _angular_core.InputSignal<boolean | undefined>;
|
|
269
|
-
/**
|
|
270
|
-
* Event emitted when the filter changes.
|
|
271
|
-
*/
|
|
272
251
|
filterChange: _angular_core.OutputEmitterRef<UserFilter>;
|
|
273
|
-
|
|
274
|
-
|
|
252
|
+
protected readonly formModel: _angular_core.WritableSignal<{
|
|
253
|
+
name: string;
|
|
254
|
+
}>;
|
|
255
|
+
protected readonly userForm: _angular_forms_signals.FieldTree<{
|
|
256
|
+
name: string;
|
|
257
|
+
}, string | number, "writable">;
|
|
275
258
|
constructor();
|
|
276
|
-
private updateForm;
|
|
277
|
-
private getFilter;
|
|
278
259
|
reset(): void;
|
|
279
|
-
apply(): void;
|
|
280
260
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserFilterComponent, never>;
|
|
281
261
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserFilterComponent, "auth-jwt-user-filter", never, { "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "filterChange": "filterChange"; }, never, never, true, never>;
|
|
282
262
|
}
|
|
@@ -331,12 +311,13 @@ declare class UserListRepository implements PagedListStoreService<UserFilter, Us
|
|
|
331
311
|
}
|
|
332
312
|
|
|
333
313
|
/**
|
|
334
|
-
* Password validators
|
|
314
|
+
* Password validators as pure predicate functions returning Signal Forms
|
|
315
|
+
* compatible ValidationError objects ({ kind: string }).
|
|
335
316
|
*/
|
|
336
317
|
declare class PasswordValidators {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
318
|
+
static standard(): (value: string | null | undefined) => {
|
|
319
|
+
kind: string;
|
|
320
|
+
} | null;
|
|
340
321
|
}
|
|
341
322
|
|
|
342
323
|
export { AuthJwtAccountService, AuthJwtRegistrationComponent, DEFAULT_RULE_LABELS, PasswordChecklistComponent, PasswordStrengthBarComponent, PasswordValidators, UserFilterComponent, UserListComponent, UserListRepository };
|