@netgrif/components-core 6.3.2 → 6.3.3
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/esm2020/assets/i18n/de.json +2 -1
- package/esm2020/assets/i18n/en.json +2 -1
- package/esm2020/assets/i18n/sk.json +2 -1
- package/esm2020/lib/authentication/services/authentication/authentication.service.mjs +1 -1
- package/esm2020/lib/authentication/session/services/session-idle-timer.service.mjs +5 -3
- package/esm2020/lib/data-fields/user-list-field/abstract-user-list-field.component.mjs +4 -1
- package/esm2020/lib/utility/tests/mocks/mock-authentication.service.mjs +14 -3
- package/fesm2015/netgrif-components-core.mjs +22 -7
- package/fesm2015/netgrif-components-core.mjs.map +1 -1
- package/fesm2020/netgrif-components-core.mjs +22 -7
- package/fesm2020/netgrif-components-core.mjs.map +1 -1
- package/lib/authentication/services/authentication/authentication.service.d.ts +7 -7
- package/lib/data-fields/user-list-field/abstract-user-list-field.component.d.ts +1 -0
- package/lib/utility/tests/mocks/mock-authentication.service.d.ts +9 -0
- package/package.json +1 -1
- package/src/assets/i18n/de.json +2 -1
- package/src/assets/i18n/en.json +2 -1
- package/src/assets/i18n/sk.json +2 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Credentials } from '../../models/credentials';
|
|
2
2
|
import { OnDestroy } from '@angular/core';
|
|
3
3
|
import { AuthenticationMethodService } from '../authentication-method.service';
|
|
4
|
-
import { Observable, Subscription } from 'rxjs';
|
|
4
|
+
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
5
5
|
import { ConfigurationService } from '../../../configuration/configuration.service';
|
|
6
6
|
import { User } from '../../../user/models/user';
|
|
7
7
|
import { UserTransformer } from '../../models/user.transformer';
|
|
8
8
|
import { SessionService } from '../../session/services/session.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class AuthenticationService implements OnDestroy {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
protected _auth: AuthenticationMethodService;
|
|
12
|
+
protected _config: ConfigurationService;
|
|
13
|
+
protected _sessionService: SessionService;
|
|
14
|
+
protected _userTransformer: UserTransformer;
|
|
15
|
+
protected static readonly IDENTIFICATION_ATTRIBUTE = "id";
|
|
16
|
+
protected _authenticated$: BehaviorSubject<boolean>;
|
|
17
17
|
protected subSession: Subscription;
|
|
18
18
|
constructor(_auth: AuthenticationMethodService, _config: ConfigurationService, _sessionService: SessionService, _userTransformer: UserTransformer);
|
|
19
19
|
login(credentials: Credentials): Observable<User>;
|
|
@@ -32,6 +32,7 @@ export declare abstract class AbstractUserListFieldComponent extends AbstractDat
|
|
|
32
32
|
*/
|
|
33
33
|
selectAbstractUser(component: any): void;
|
|
34
34
|
removeAbstractUser(userId: string): void;
|
|
35
|
+
removeAll(): void;
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractUserListFieldComponent, [null, null, null, { optional: true; }]>;
|
|
36
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractUserListFieldComponent, "ncc-abstract-user-list-field", never, { "dataField": "dataField"; }, {}, never, never>;
|
|
37
38
|
}
|
|
@@ -2,8 +2,17 @@ import { AuthenticationService } from '../../../authentication/services/authenti
|
|
|
2
2
|
import { Credentials } from '../../../authentication/models/credentials';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { User } from '../../../user/models/user';
|
|
5
|
+
import { AuthenticationMethodService } from "../../../authentication/services/authentication-method.service";
|
|
6
|
+
import { ConfigurationService } from "../../../configuration/configuration.service";
|
|
7
|
+
import { SessionService } from "../../../authentication/session/services/session.service";
|
|
8
|
+
import { UserTransformer } from "../../../authentication/models/user.transformer";
|
|
5
9
|
import * as i0 from "@angular/core";
|
|
6
10
|
export declare class MockAuthenticationService extends AuthenticationService {
|
|
11
|
+
protected _auth: AuthenticationMethodService;
|
|
12
|
+
protected _config: ConfigurationService;
|
|
13
|
+
protected _sessionService: SessionService;
|
|
14
|
+
protected _userTransformer: UserTransformer;
|
|
15
|
+
constructor(_auth: AuthenticationMethodService, _config: ConfigurationService, _sessionService: SessionService, _userTransformer: UserTransformer);
|
|
7
16
|
login(credentials: Credentials): Observable<User>;
|
|
8
17
|
logout(): Observable<object>;
|
|
9
18
|
get isAuthenticated(): boolean;
|
package/package.json
CHANGED
package/src/assets/i18n/de.json
CHANGED
package/src/assets/i18n/en.json
CHANGED
package/src/assets/i18n/sk.json
CHANGED