@softheon/armature 8.10.0 → 8.13.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.
@@ -11,7 +11,6 @@ import { RouterModule, NavigationStart, NavigationError, NavigationEnd, Router }
11
11
  import { TranslateModule, TranslateService } from '@ngx-translate/core';
12
12
  import { FormControl, Validators, FormBuilder, ReactiveFormsModule } from '@angular/forms';
13
13
  import { AuthConfig, JwksValidationHandler, OAuthService as OAuthService$1, OAuthStorage } from 'angular-oauth2-oidc/';
14
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
15
14
  import { MediaMatcher } from '@angular/cdk/layout';
16
15
  import { ApmService } from '@elastic/apm-rum-angular';
17
16
  import { ApmService as ApmService$1 } from '@elastic/apm-rum-angular/dist/lib/index';
@@ -836,6 +835,10 @@ UserEntityServiceConfig = /** @class */ (function () {
836
835
  * true if getting user on start up
837
836
  */
838
837
  this.getUserOnInit = true;
838
+ /**
839
+ * True when including links
840
+ */
841
+ this.includeLinks = true;
839
842
  /**
840
843
  * The validate function
841
844
  */
@@ -853,6 +856,16 @@ if (false) {
853
856
  * @type {?}
854
857
  */
855
858
  UserEntityServiceConfig.prototype.getUserOnInit;
859
+ /**
860
+ * True when including links
861
+ * @type {?}
862
+ */
863
+ UserEntityServiceConfig.prototype.includeLinks;
864
+ /**
865
+ * The partial for the get user call
866
+ * @type {?}
867
+ */
868
+ UserEntityServiceConfig.prototype.getUserPartial;
856
869
  /**
857
870
  * The validate function
858
871
  * @type {?}
@@ -4686,7 +4699,6 @@ var NavigationModule = /** @class */ (function () {
4686
4699
  imports: __spread([
4687
4700
  CommonModule,
4688
4701
  RouterModule,
4689
- BrowserAnimationsModule,
4690
4702
  TranslateModule
4691
4703
  ], materialModules$2),
4692
4704
  exports: __spread(components$3, materialModules$2),
@@ -4729,6 +4741,7 @@ var UserEntityService = /** @class */ (function () {
4729
4741
  // tslint:disable-next-line: no-parameter-reassignment
4730
4742
  this.userEntityBaseUrl = this.userEntityBaseUrl || '/';
4731
4743
  this.userEntityServiceConfig = !this.userEntityServiceConfig ? new UserEntityServiceConfig() : this.getConfigWithDefaults();
4744
+ this.getUserPartial = this.userEntityServiceConfig.getUserPartial || this.getUserPartial;
4732
4745
  this.user$ = this.userBS.asObservable()
4733
4746
  .pipe(filter((/**
4734
4747
  * @param {?} val
@@ -4897,7 +4910,7 @@ var UserEntityService = /** @class */ (function () {
4897
4910
  .replace('/account/login', '')
4898
4911
  .replace('/connect/authorize', '')
4899
4912
  });
4900
- this.userCall = this.httpClient.get("" + this.userEntityBaseUrl + this.getUserPartial + "?subIdFromToken=true&createEmpty=true", { headers: headers })
4913
+ this.userCall = this.httpClient.get("" + this.userEntityBaseUrl + this.getUserPartial + "?subIdFromToken=true&createEmpty=true&withoutChildLinks=" + !this.userEntityServiceConfig.includeLinks, { headers: headers })
4901
4914
  .toPromise();
4902
4915
  return [2 /*return*/, this.userCall.then((/**
4903
4916
  * @param {?} res
@@ -4944,6 +4957,8 @@ var UserEntityService = /** @class */ (function () {
4944
4957
  function (user) { return true; }));
4945
4958
  // tslint:disable-next-line: triple-equals
4946
4959
  config.getUserOnInit = config.getUserOnInit == undefined ? true : config.getUserOnInit;
4960
+ config.includeLinks = config.includeLinks == undefined ? true : config.includeLinks;
4961
+ config.getUserPartial = config.getUserPartial == undefined ? this.getUserPartial : config.getUserPartial;
4947
4962
  return config;
4948
4963
  };
4949
4964
  UserEntityService.decorators = [
@@ -8713,7 +8728,7 @@ var SoftheonErrorHandlerService = /** @class */ (function () {
8713
8728
  function () {
8714
8729
  /** @type {?} */
8715
8730
  var errStr = JSON.stringify(_this.currentError);
8716
- _this.httpClient.post(_this.rumConfig.serverUrl, { error: errStr, applicationName: appName })
8731
+ _this.httpClient.post(_this.rumConfig.serverUrl, { error: errStr, applicationName: appName, logLevel: "Warn" })
8717
8732
  .pipe(catchError((/**
8718
8733
  * @param {?} error
8719
8734
  * @return {?}