@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.
@@ -1023,7 +1023,8 @@ var dataField$2 = {
1023
1023
  },
1024
1024
  user: {
1025
1025
  selectUser: "Select user",
1026
- save: "Assign"
1026
+ save: "Assign",
1027
+ deleteAll: "Empty user list"
1027
1028
  },
1028
1029
  textarea: {
1029
1030
  insertText: "Insert text here..."
@@ -1540,7 +1541,8 @@ var dataField$1 = {
1540
1541
  },
1541
1542
  user: {
1542
1543
  selectUser: "Vyberte používateľa",
1543
- save: "Priradiť"
1544
+ save: "Priradiť",
1545
+ deleteAll: "Vymazať zoznam používateľov"
1544
1546
  },
1545
1547
  textarea: {
1546
1548
  insertText: "Sem zadajte text..."
@@ -2057,7 +2059,8 @@ var dataField = {
2057
2059
  },
2058
2060
  user: {
2059
2061
  selectUser: "Benutzer auswählen",
2060
- save: "Zuweisen"
2062
+ save: "Zuweisen",
2063
+ deleteAll: "Leere Benutzerliste"
2061
2064
  },
2062
2065
  textarea: {
2063
2066
  insertText: "Hier Text eingeben..."
@@ -2473,8 +2476,10 @@ class SessionIdleTimerService {
2473
2476
  this.startTimer();
2474
2477
  }
2475
2478
  ngOnDestroy() {
2476
- this.timerSubscription.unsubscribe();
2477
- this._remainSeconds.unsubscribe();
2479
+ if (this._enableService) {
2480
+ this.timerSubscription.unsubscribe();
2481
+ this._remainSeconds.unsubscribe();
2482
+ }
2478
2483
  }
2479
2484
  }
2480
2485
  SessionIdleTimerService.DEFAULT_SESSION_TIMEOUTTIME = 900;
@@ -14283,6 +14288,9 @@ class AbstractUserListFieldComponent extends AbstractDataFieldComponent {
14283
14288
  existingUsers.removeUserValue(userId);
14284
14289
  this.dataField.value = existingUsers;
14285
14290
  }
14291
+ removeAll() {
14292
+ this.dataField.value = new UserListValue(new Map());
14293
+ }
14286
14294
  }
14287
14295
  AbstractUserListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AbstractUserListFieldComponent, deps: [{ token: SideMenuService }, { token: SnackBarService }, { token: i1$2.TranslateService }, { token: NAE_INFORM_ABOUT_INVALID_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Component });
14288
14296
  AbstractUserListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AbstractUserListFieldComponent, selector: "ncc-abstract-user-list-field", inputs: { dataField: "dataField" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
@@ -31481,6 +31489,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
31481
31489
  }] });
31482
31490
 
31483
31491
  class MockAuthenticationService extends AuthenticationService {
31492
+ constructor(_auth, _config, _sessionService, _userTransformer) {
31493
+ super(_auth, _config, _sessionService, _userTransformer);
31494
+ this._auth = _auth;
31495
+ this._config = _config;
31496
+ this._sessionService = _sessionService;
31497
+ this._userTransformer = _userTransformer;
31498
+ }
31484
31499
  login(credentials) {
31485
31500
  return of(new User('id', 'mail', 'name', 'surname', ['ADMIN'], [{ stringId: 'id', name: 'id', importId: 'id' }]));
31486
31501
  }
@@ -31494,11 +31509,11 @@ class MockAuthenticationService extends AuthenticationService {
31494
31509
  return of(true);
31495
31510
  }
31496
31511
  }
31497
- MockAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MockAuthenticationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
31512
+ MockAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MockAuthenticationService, deps: [{ token: AuthenticationMethodService }, { token: ConfigurationService }, { token: SessionService }, { token: UserTransformer }], target: i0.ɵɵFactoryTarget.Injectable });
31498
31513
  MockAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MockAuthenticationService });
31499
31514
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MockAuthenticationService, decorators: [{
31500
31515
  type: Injectable
31501
- }] });
31516
+ }], ctorParameters: function () { return [{ type: AuthenticationMethodService }, { type: ConfigurationService }, { type: SessionService }, { type: UserTransformer }]; } });
31502
31517
 
31503
31518
  class MockUserPreferenceService {
31504
31519
  constructor() { }