@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.
@@ -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
- private _auth;
12
- private _config;
13
- private _sessionService;
14
- private _userTransformer;
15
- private static readonly IDENTIFICATION_ATTRIBUTE;
16
- private _authenticated$;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netgrif/components-core",
3
- "version": "6.3.2",
3
+ "version": "6.3.3",
4
4
  "description": "Netgrif Application engine frontend core Angular library",
5
5
  "homepage": "https://components.netgrif.com",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -285,7 +285,8 @@
285
285
  },
286
286
  "user": {
287
287
  "selectUser": "Benutzer auswählen",
288
- "save": "Zuweisen"
288
+ "save": "Zuweisen",
289
+ "deleteAll": "Leere Benutzerliste"
289
290
  },
290
291
  "textarea": {
291
292
  "insertText": "Hier Text eingeben..."
@@ -285,7 +285,8 @@
285
285
  },
286
286
  "user": {
287
287
  "selectUser": "Select user",
288
- "save": "Assign"
288
+ "save": "Assign",
289
+ "deleteAll": "Empty user list"
289
290
  },
290
291
  "textarea": {
291
292
  "insertText": "Insert text here..."
@@ -285,7 +285,8 @@
285
285
  },
286
286
  "user": {
287
287
  "selectUser": "Vyberte používateľa",
288
- "save": "Priradiť"
288
+ "save": "Priradiť",
289
+ "deleteAll": "Vymazať zoznam používateľov"
289
290
  },
290
291
  "textarea": {
291
292
  "insertText": "Sem zadajte text..."