@netgrif/components-core 6.0.2 → 6.0.4-rc.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.
Files changed (50) hide show
  1. package/bundles/netgrif-components-core.umd.js +105 -34
  2. package/bundles/netgrif-components-core.umd.js.map +1 -1
  3. package/bundles/netgrif-components-core.umd.min.js +1 -1
  4. package/bundles/netgrif-components-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/authentication/components/abstract-authentication-overlay.js +2 -2
  6. package/esm2015/lib/configuration/configuration.service.js +7 -5
  7. package/esm2015/lib/data-fields/file-field/abstract-file-field.component.js +6 -3
  8. package/esm2015/lib/data-fields/file-list-field/abstract-file-list-field.component.js +6 -3
  9. package/esm2015/lib/data-fields/models/file-field-id-body.js +2 -0
  10. package/esm2015/lib/groups/services/next-group.service.js +2 -2
  11. package/esm2015/lib/process/process.service.js +3 -2
  12. package/esm2015/lib/resources/engine-endpoint/public/public-task-resource.service.js +1 -1
  13. package/esm2015/lib/search/models/category/case/case-dataset.js +3 -6
  14. package/esm2015/lib/search/models/category/case/case-simple-dataset.js +3 -3
  15. package/esm2015/lib/search/models/category/case/case-title.js +13 -3
  16. package/esm2015/lib/search/models/category/case/case-visual-id.js +13 -3
  17. package/esm2015/lib/search/models/category/category.js +10 -2
  18. package/esm2015/lib/search/models/operator/substring.js +3 -3
  19. package/esm2015/lib/search/search-keyword-resolver-service/search-index-resolver.service.js +18 -3
  20. package/esm2015/lib/search/search-service/search.service.js +3 -2
  21. package/esm5/lib/authentication/components/abstract-authentication-overlay.js +2 -2
  22. package/esm5/lib/configuration/configuration.service.js +23 -10
  23. package/esm5/lib/data-fields/file-field/abstract-file-field.component.js +6 -3
  24. package/esm5/lib/data-fields/file-list-field/abstract-file-list-field.component.js +6 -3
  25. package/esm5/lib/data-fields/models/file-field-id-body.js +2 -0
  26. package/esm5/lib/groups/services/next-group.service.js +2 -2
  27. package/esm5/lib/process/process.service.js +3 -2
  28. package/esm5/lib/resources/engine-endpoint/public/public-task-resource.service.js +1 -1
  29. package/esm5/lib/search/models/category/case/case-dataset.js +3 -6
  30. package/esm5/lib/search/models/category/case/case-simple-dataset.js +3 -3
  31. package/esm5/lib/search/models/category/case/case-title.js +19 -4
  32. package/esm5/lib/search/models/category/case/case-visual-id.js +19 -4
  33. package/esm5/lib/search/models/category/category.js +10 -2
  34. package/esm5/lib/search/models/operator/substring.js +3 -3
  35. package/esm5/lib/search/search-keyword-resolver-service/search-index-resolver.service.js +17 -2
  36. package/esm5/lib/search/search-service/search.service.js +3 -2
  37. package/fesm2015/netgrif-components-core.js +78 -28
  38. package/fesm2015/netgrif-components-core.js.map +1 -1
  39. package/fesm5/netgrif-components-core.js +106 -35
  40. package/fesm5/netgrif-components-core.js.map +1 -1
  41. package/lib/configuration/configuration.service.d.ts +1 -0
  42. package/lib/data-fields/models/file-field-id-body.d.ts +3 -0
  43. package/lib/process/process.service.d.ts +1 -0
  44. package/lib/search/models/category/case/case-dataset.d.ts +0 -2
  45. package/lib/search/models/category/case/case-title.d.ts +4 -1
  46. package/lib/search/models/category/case/case-visual-id.d.ts +4 -1
  47. package/lib/search/models/category/category.d.ts +7 -0
  48. package/lib/search/search-keyword-resolver-service/search-index-resolver.service.d.ts +12 -0
  49. package/netgrif-components-core.metadata.json +1 -1
  50. package/package.json +1 -1
@@ -54,7 +54,7 @@ import { CovalentTextEditorModule } from '@covalent/text-editor';
54
54
  import en$1 from '@angular/common/locales/en';
55
55
  import sk$1 from '@angular/common/locales/sk';
56
56
  import de$1 from '@angular/common/locales/de';
57
- import { __assign, __extends, __spread, __values, __read } from 'tslib';
57
+ import { __assign, __extends, __values, __read, __spread } from 'tslib';
58
58
  import { of, BehaviorSubject, throwError, ReplaySubject, Subject, Observable, forkJoin, combineLatest, timer, from } from 'rxjs';
59
59
  import { HttpHeaders, HttpErrorResponse, HttpClient, HttpParams, HttpEventType, HTTP_INTERCEPTORS, HttpClientModule, HttpResponse } from '@angular/common/http';
60
60
  import { AngularResizedEventModule } from 'angular-resize-event';
@@ -378,18 +378,28 @@ var ConfigurationService = /** @class */ (function () {
378
378
  * @return requested configuration if it exists. `undefined` otherwise.
379
379
  */
380
380
  ConfigurationService.prototype.getViewByUrl = function (url) {
381
- var config = this.createConfigurationCopy();
382
- var views = config.views;
381
+ var e_1, _a;
382
+ var views = this.getViewsCopy();
383
383
  if (!views) {
384
384
  return undefined;
385
385
  }
386
386
  var map = new Map();
387
387
  map = this.getChildren(views, map, '');
388
388
  if (map.get(url) === undefined) {
389
- map.forEach(function (value, key) {
390
- if (key.includes('/**') && url.includes(key.split('/**')[0]))
391
- return value;
392
- });
389
+ try {
390
+ for (var map_1 = __values(map), map_1_1 = map_1.next(); !map_1_1.done; map_1_1 = map_1.next()) {
391
+ var _b = __read(map_1_1.value, 2), key = _b[0], value = _b[1];
392
+ if (key.includes('/**') && url.includes(key.split('/**')[0]))
393
+ return value;
394
+ }
395
+ }
396
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
397
+ finally {
398
+ try {
399
+ if (map_1_1 && !map_1_1.done && (_a = map_1.return)) _a.call(map_1);
400
+ }
401
+ finally { if (e_1) throw e_1.error; }
402
+ }
393
403
  }
394
404
  return map.get(url);
395
405
  };
@@ -436,7 +446,7 @@ var ConfigurationService = /** @class */ (function () {
436
446
  * Calling this method with an empty array as argument is equivalent to calling the [get()]{@link ConfigurationService#get} method.
437
447
  */
438
448
  ConfigurationService.prototype.getConfigurationSubtree = function (pathSegments) {
439
- var e_1, _a;
449
+ var e_2, _a;
440
450
  var root = this.configuration;
441
451
  try {
442
452
  for (var pathSegments_1 = __values(pathSegments), pathSegments_1_1 = pathSegments_1.next(); !pathSegments_1_1.done; pathSegments_1_1 = pathSegments_1.next()) {
@@ -447,12 +457,12 @@ var ConfigurationService = /** @class */ (function () {
447
457
  root = root[segment];
448
458
  }
449
459
  }
450
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
460
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
451
461
  finally {
452
462
  try {
453
463
  if (pathSegments_1_1 && !pathSegments_1_1.done && (_a = pathSegments_1.return)) _a.call(pathSegments_1);
454
464
  }
455
- finally { if (e_1) throw e_1.error; }
465
+ finally { if (e_2) throw e_2.error; }
456
466
  }
457
467
  return this.deepCopy(root);
458
468
  };
@@ -540,6 +550,9 @@ var ConfigurationService = /** @class */ (function () {
540
550
  ConfigurationService.prototype.createConfigurationCopy = function () {
541
551
  return this.deepCopy(this.configuration);
542
552
  };
553
+ ConfigurationService.prototype.getViewsCopy = function () {
554
+ return this.getConfigurationSubtree(['views']);
555
+ };
543
556
  ConfigurationService.prototype.deepCopy = function (obj) {
544
557
  return JSON.parse(JSON.stringify(obj));
545
558
  };
@@ -6701,8 +6714,11 @@ var AbstractFileFieldComponent = /** @class */ (function (_super) {
6701
6714
  this.state.uploading = true;
6702
6715
  var fileFormData = new FormData();
6703
6716
  var fileToUpload = this.fileUploadEl.nativeElement.files.item(0);
6717
+ var data = {};
6718
+ data[this.resolveParentTaskId()] = this.dataField.stringId;
6704
6719
  fileFormData.append('file', fileToUpload);
6705
- this._taskResourceService.uploadFile(this.resolveParentTaskId(), this.dataField.stringId, fileFormData, false)
6720
+ fileFormData.append('data', new Blob([JSON.stringify(data)], { type: 'application/json' }));
6721
+ this._taskResourceService.uploadFile(this.taskId, this.dataField.stringId, fileFormData, false)
6706
6722
  .subscribe(function (response) {
6707
6723
  if (response.type && response.type === ProgressType.UPLOAD) {
6708
6724
  _this.state.progress = response.progress;
@@ -6803,7 +6819,7 @@ var AbstractFileFieldComponent = /** @class */ (function (_super) {
6803
6819
  this._log.error('File cannot be deleted. No task is set to the field.');
6804
6820
  return;
6805
6821
  }
6806
- this._taskResourceService.deleteFile(this.resolveParentTaskId(), this.dataField.stringId).pipe(take(1)).subscribe(function (response) {
6822
+ this._taskResourceService.deleteFile(this.taskId, this.dataField.stringId).pipe(take(1)).subscribe(function (response) {
6807
6823
  if (response.success) {
6808
6824
  var filename = _this.dataField.value.name;
6809
6825
  _this.dataField.value = {};
@@ -7091,7 +7107,10 @@ var AbstractFileListFieldComponent = /** @class */ (function (_super) {
7091
7107
  filesToUpload.forEach(function (fileToUpload) {
7092
7108
  fileFormData.append('files', fileToUpload);
7093
7109
  });
7094
- this._taskResourceService.uploadFile(this.resolveParentTaskId(), this.dataField.stringId, fileFormData, true)
7110
+ var data = {};
7111
+ data[this.resolveParentTaskId()] = this.dataField.stringId;
7112
+ fileFormData.append('data', new Blob([JSON.stringify(data)], { type: 'application/json' }));
7113
+ this._taskResourceService.uploadFile(this.taskId, this.dataField.stringId, fileFormData, true)
7095
7114
  .subscribe(function (response) {
7096
7115
  if (response.type && response.type === ProgressType.UPLOAD) {
7097
7116
  _this.state.progress = response.progress;
@@ -7179,7 +7198,7 @@ var AbstractFileListFieldComponent = /** @class */ (function (_super) {
7179
7198
  this._log.error('File cannot be deleted. No task is set to the field.');
7180
7199
  return;
7181
7200
  }
7182
- this._taskResourceService.deleteFile(this.resolveParentTaskId(), this.dataField.stringId, fileName).pipe(take(1)).subscribe(function (response) {
7201
+ this._taskResourceService.deleteFile(this.taskId, this.dataField.stringId, fileName).pipe(take(1)).subscribe(function (response) {
7183
7202
  if (response.success) {
7184
7203
  _this.uploadedFiles = _this.uploadedFiles.filter(function (uploadedFile) { return uploadedFile !== fileName; });
7185
7204
  if (_this.dataField.value.namesPaths) {
@@ -9558,8 +9577,8 @@ var Substring = /** @class */ (function (_super) {
9558
9577
  // TODO IMPROVEMENT 27.4.2020 - we could use regular expressions to search for substrings which would solve the unintuitive
9559
9578
  // behavior that occurs when we search for strings that contain spaces. We need to escape the input string in a special way
9560
9579
  // if we choose to do this
9561
- var escapedValue = Operator.escapeInput(args[0]).value;
9562
- return Operator.forEachKeyword(elasticKeywords, function (keyword) { return new Query("(" + keyword + ":\\*" + escapedValue + "\\*)"); });
9580
+ var escapedValue = Operator.escapeInput(args[0]).value.replace(' ', '\\ ');
9581
+ return Operator.forEachKeyword(elasticKeywords, function (keyword) { return new Query("(" + keyword + ":*" + escapedValue + "*)"); });
9563
9582
  };
9564
9583
  Substring.prototype.getOperatorNameTemplate = function () {
9565
9584
  return ['search.operator.substring', Operator.INPUT_PLACEHOLDER];
@@ -9861,6 +9880,7 @@ var OperatorService = /** @class */ (function () {
9861
9880
  */
9862
9881
  var SearchIndexResolverService = /** @class */ (function () {
9863
9882
  function SearchIndexResolverService() {
9883
+ this.KEYWORD = '.keyword';
9864
9884
  }
9865
9885
  /**
9866
9886
  * Constructs the index name for the specified field.
@@ -9875,7 +9895,21 @@ var SearchIndexResolverService = /** @class */ (function () {
9875
9895
  */
9876
9896
  SearchIndexResolverService.prototype.getIndex = function (dataFieldIdentifier, index, keyword) {
9877
9897
  if (keyword === void 0) { keyword = false; }
9878
- return "dataSet." + dataFieldIdentifier + "." + index + (keyword ? '.keyword' : '');
9898
+ return "dataSet." + dataFieldIdentifier + "." + index + (keyword ? this.KEYWORD : '');
9899
+ };
9900
+ /**
9901
+ * Constructs the index name for the specified core field.
9902
+ *
9903
+ * Note that almost all combinations are valid and will not throw an error when used to query the database, but not all combinations are
9904
+ * used by the application engine. The {@link SearchIndex} class has some information about which field types map to which indices, but
9905
+ * you should consult the backend documentation for more reliable information.
9906
+ * @param index the queried index
9907
+ * @param keyword whether the keyword of a TEXT index should be queried
9908
+ * @returns the full name of the specified index
9909
+ */
9910
+ SearchIndexResolverService.prototype.getCoreIndex = function (index, keyword) {
9911
+ if (keyword === void 0) { keyword = false; }
9912
+ return "" + index + (keyword ? this.KEYWORD : '');
9879
9913
  };
9880
9914
  SearchIndexResolverService.ɵprov = ɵɵdefineInjectable({ factory: function SearchIndexResolverService_Factory() { return new SearchIndexResolverService(); }, token: SearchIndexResolverService, providedIn: "root" });
9881
9915
  SearchIndexResolverService.decorators = [
@@ -10370,7 +10404,7 @@ var Category = /** @class */ (function () {
10370
10404
  if (!this.isOperatorSelected()) {
10371
10405
  throw new Error('Category cannot generate a Query if no Operator is selected');
10372
10406
  }
10373
- return this._operatorFormControl.value.createQuery(this._elasticKeywords, userInput);
10407
+ return this._operatorFormControl.value.createQuery(this.elasticKeywords, userInput);
10374
10408
  };
10375
10409
  /**
10376
10410
  * Calls the [generateQuery]{@link Category#generateQuery} method and creates an {@link ElementaryPredicate} with the result.
@@ -10671,6 +10705,14 @@ var Category = /** @class */ (function () {
10671
10705
  }
10672
10706
  return { segment: segment, bold: true };
10673
10707
  };
10708
+ /**
10709
+ * Checks for selected operator
10710
+ * @param operatorClass the operator to be checked
10711
+ * @return boolean of the statement
10712
+ */
10713
+ Category.prototype.isSelectedOperator = function (operatorClass) {
10714
+ return this.selectedOperator === this._operatorService.getOperator(operatorClass);
10715
+ };
10674
10716
  /**
10675
10717
  * The {@link CategoryMetadataConfiguration} key for this Category's {@link Operator}
10676
10718
  */
@@ -11523,12 +11565,12 @@ var CaseDataset = /** @class */ (function (_super) {
11523
11565
  return resolver.getIndex(datafield.fieldId, SearchIndex.BOOLEAN);
11524
11566
  case 'file':
11525
11567
  case 'fileList':
11526
- return resolver.getIndex(datafield.fieldId, SearchIndex.FILE_NAME, this.isSelectedOperator(Equals) || this.isSelectedOperator(NotEquals));
11568
+ return resolver.getIndex(datafield.fieldId, SearchIndex.FILE_NAME, this.isSelectedOperator(Equals) || this.isSelectedOperator(NotEquals) || this.isSelectedOperator(Substring));
11527
11569
  case 'user':
11528
11570
  case 'userList':
11529
11571
  return resolver.getIndex(datafield.fieldId, SearchIndex.USER_ID);
11530
11572
  default:
11531
- return resolver.getIndex(datafield.fieldId, SearchIndex.FULLTEXT, this.isSelectedOperator(Equals) || this.isSelectedOperator(NotEquals));
11573
+ return resolver.getIndex(datafield.fieldId, SearchIndex.FULLTEXT, this.isSelectedOperator(Equals) || this.isSelectedOperator(NotEquals) || this.isSelectedOperator(Substring));
11532
11574
  }
11533
11575
  };
11534
11576
  Object.defineProperty(CaseDataset.prototype, "inputPlaceholder", {
@@ -11676,9 +11718,6 @@ var CaseDataset = /** @class */ (function (_super) {
11676
11718
  }
11677
11719
  return value;
11678
11720
  };
11679
- CaseDataset.prototype.isSelectedOperator = function (operatorClass) {
11680
- return this.selectedOperator === this._operatorService.getOperator(operatorClass);
11681
- };
11682
11721
  CaseDataset.prototype.serializeClass = function () {
11683
11722
  return Categories.CASE_DATASET;
11684
11723
  };
@@ -11899,14 +11938,14 @@ var CaseSimpleDataset = /** @class */ (function (_super) {
11899
11938
  break;
11900
11939
  case 'file':
11901
11940
  case 'fileList':
11902
- this._elasticKeyword = resolver.getIndex(this._fieldId, SearchIndex.FILE_NAME);
11941
+ this._elasticKeyword = resolver.getIndex(this._fieldId, SearchIndex.FILE_NAME, this.isSelectedOperator(Substring));
11903
11942
  break;
11904
11943
  case 'user':
11905
11944
  case 'userList':
11906
11945
  this._elasticKeyword = resolver.getIndex(this._fieldId, SearchIndex.USER_ID);
11907
11946
  break;
11908
11947
  default:
11909
- this._elasticKeyword = resolver.getIndex(this._fieldId, SearchIndex.FULLTEXT);
11948
+ this._elasticKeyword = resolver.getIndex(this._fieldId, SearchIndex.FULLTEXT, this.isSelectedOperator(Substring));
11910
11949
  }
11911
11950
  };
11912
11951
  Object.defineProperty(CaseSimpleDataset.prototype, "elasticKeywords", {
@@ -12011,13 +12050,15 @@ var CaseTask = /** @class */ (function (_super) {
12011
12050
 
12012
12051
  var CaseTitle = /** @class */ (function (_super) {
12013
12052
  __extends(CaseTitle, _super);
12014
- function CaseTitle(operators, logger) {
12015
- return _super.call(this, [CaseSearch.TITLE], [
12053
+ function CaseTitle(operators, logger, _optionalDependencies) {
12054
+ var _this = _super.call(this, [CaseSearch.TITLE], [
12016
12055
  operators.getOperator(Substring),
12017
12056
  operators.getOperator(Equals),
12018
12057
  operators.getOperator(NotEquals),
12019
12058
  operators.getOperator(Like)
12020
12059
  ], CaseTitle._i18n + ".name", SearchInputType.TEXT, logger, operators) || this;
12060
+ _this._optionalDependencies = _optionalDependencies;
12061
+ return _this;
12021
12062
  }
12022
12063
  Object.defineProperty(CaseTitle.prototype, "inputPlaceholder", {
12023
12064
  get: function () {
@@ -12027,19 +12068,34 @@ var CaseTitle = /** @class */ (function (_super) {
12027
12068
  configurable: true
12028
12069
  });
12029
12070
  CaseTitle.prototype.duplicate = function () {
12030
- return new CaseTitle(this._operatorService, this._log);
12071
+ return new CaseTitle(this._operatorService, this._log, this._optionalDependencies);
12031
12072
  };
12032
12073
  CaseTitle.prototype.serializeClass = function () {
12033
12074
  return Categories.CASE_TITLE;
12034
12075
  };
12076
+ Object.defineProperty(CaseTitle.prototype, "elasticKeywords", {
12077
+ get: function () {
12078
+ if (!!this._optionalDependencies) {
12079
+ var resolver = this._optionalDependencies.searchIndexResolver;
12080
+ return [resolver.getCoreIndex(CaseSearch.TITLE, this.isSelectedOperator(Substring))];
12081
+ }
12082
+ else {
12083
+ return this._elasticKeywords;
12084
+ }
12085
+ },
12086
+ enumerable: false,
12087
+ configurable: true
12088
+ });
12035
12089
  CaseTitle._i18n = 'search.category.case.title';
12036
12090
  return CaseTitle;
12037
12091
  }(NoConfigurationCategory));
12038
12092
 
12039
12093
  var CaseVisualId = /** @class */ (function (_super) {
12040
12094
  __extends(CaseVisualId, _super);
12041
- function CaseVisualId(operators, logger) {
12042
- return _super.call(this, [CaseSearch.VISUAL_ID], [operators.getOperator(Substring), operators.getOperator(Equals), operators.getOperator(NotEquals)], CaseVisualId._i18n + ".name", SearchInputType.TEXT, logger, operators) || this;
12095
+ function CaseVisualId(operators, logger, _optionalDependencies) {
12096
+ var _this = _super.call(this, [CaseSearch.VISUAL_ID], [operators.getOperator(Substring), operators.getOperator(Equals), operators.getOperator(NotEquals)], CaseVisualId._i18n + ".name", SearchInputType.TEXT, logger, operators) || this;
12097
+ _this._optionalDependencies = _optionalDependencies;
12098
+ return _this;
12043
12099
  }
12044
12100
  Object.defineProperty(CaseVisualId.prototype, "inputPlaceholder", {
12045
12101
  get: function () {
@@ -12049,11 +12105,24 @@ var CaseVisualId = /** @class */ (function (_super) {
12049
12105
  configurable: true
12050
12106
  });
12051
12107
  CaseVisualId.prototype.duplicate = function () {
12052
- return new CaseVisualId(this._operatorService, this._log);
12108
+ return new CaseVisualId(this._operatorService, this._log, this._optionalDependencies);
12053
12109
  };
12054
12110
  CaseVisualId.prototype.serializeClass = function () {
12055
12111
  return Categories.CASE_VISUAL_ID;
12056
12112
  };
12113
+ Object.defineProperty(CaseVisualId.prototype, "elasticKeywords", {
12114
+ get: function () {
12115
+ if (!!this._optionalDependencies) {
12116
+ var resolver = this._optionalDependencies.searchIndexResolver;
12117
+ return [resolver.getCoreIndex(CaseSearch.VISUAL_ID, this.isSelectedOperator(Substring))];
12118
+ }
12119
+ else {
12120
+ return this._elasticKeywords;
12121
+ }
12122
+ },
12123
+ enumerable: false,
12124
+ configurable: true
12125
+ });
12057
12126
  CaseVisualId._i18n = 'search.category.case.visualId';
12058
12127
  return CaseVisualId;
12059
12128
  }(NoConfigurationCategory));
@@ -12740,6 +12809,7 @@ var ProcessService = /** @class */ (function () {
12740
12809
  function ProcessService(_petriNetResource, _log) {
12741
12810
  this._petriNetResource = _petriNetResource;
12742
12811
  this._log = _log;
12812
+ this.LATEST = 'latest';
12743
12813
  this._nets = {};
12744
12814
  this._netsSubject = new Subject();
12745
12815
  this._netUpdate = new Subject();
@@ -12970,7 +13040,7 @@ var ProcessService = /** @class */ (function () {
12970
13040
  ProcessService.prototype.loadNetReference = function (id) {
12971
13041
  var _this = this;
12972
13042
  var returnReference = new ReplaySubject(1);
12973
- this._petriNetResource.getOne(id, '^').subscribe(function (reference) {
13043
+ this._petriNetResource.getOne(id, this.LATEST).subscribe(function (reference) {
12974
13044
  returnReference.next(!reference.stringId ? null : reference);
12975
13045
  returnReference.complete();
12976
13046
  return;
@@ -13477,7 +13547,8 @@ var SearchService = /** @class */ (function () {
13477
13547
  * @param searchedSubstring value that should be searched on all full text fields
13478
13548
  */
13479
13549
  SearchService.prototype.setFullTextFilter = function (searchedSubstring) {
13480
- this._fullTextFilter = new SimpleFilter('', this._baseFilter.type, { fullText: searchedSubstring });
13550
+ var whiteSpacedSubstring = searchedSubstring.replace(' ', '\\ ');
13551
+ this._fullTextFilter = new SimpleFilter('', this._baseFilter.type, { fullText: whiteSpacedSubstring });
13481
13552
  this.updateActiveFilter();
13482
13553
  };
13483
13554
  /**
@@ -14219,7 +14290,7 @@ var AbstractAuthenticationOverlay = /** @class */ (function () {
14219
14290
  this._spinnerOverlay.spin$.next(true);
14220
14291
  this.subSession = this._session.verifying.subscribe(function (active) {
14221
14292
  _this.userService.user$.subscribe(function (user) {
14222
- if (!!user.id && user.id.length > 0) {
14293
+ if (!!user && !!user.id && user.id.length > 0) {
14223
14294
  _this.redirect(!active);
14224
14295
  }
14225
14296
  });
@@ -29738,7 +29809,7 @@ var NextGroupService = /** @class */ (function () {
29738
29809
  this._ownerGroups$ = new BehaviorSubject([]);
29739
29810
  this._memberGroups$ = new BehaviorSubject([]);
29740
29811
  this._userSub = this._userService.user$.pipe(switchMap(function (user) {
29741
- if (user.id === '') {
29812
+ if (!user || user.id === '') {
29742
29813
  return of([]);
29743
29814
  }
29744
29815
  var params = new HttpParams();