@softheon/armature 8.9.1 → 8.13.0

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.
@@ -1021,6 +1021,10 @@
1021
1021
  * true if getting user on start up
1022
1022
  */
1023
1023
  this.getUserOnInit = true;
1024
+ /**
1025
+ * True when including links
1026
+ */
1027
+ this.includeLinks = true;
1024
1028
  /**
1025
1029
  * The validate function
1026
1030
  */
@@ -1038,6 +1042,16 @@
1038
1042
  * @type {?}
1039
1043
  */
1040
1044
  UserEntityServiceConfig.prototype.getUserOnInit;
1045
+ /**
1046
+ * True when including links
1047
+ * @type {?}
1048
+ */
1049
+ UserEntityServiceConfig.prototype.includeLinks;
1050
+ /**
1051
+ * The partial for the get user call
1052
+ * @type {?}
1053
+ */
1054
+ UserEntityServiceConfig.prototype.getUserPartial;
1041
1055
  /**
1042
1056
  * The validate function
1043
1057
  * @type {?}
@@ -4270,8 +4284,8 @@
4270
4284
  ArmatureHeaderComponent.decorators = [
4271
4285
  { type: core.Component, args: [{
4272
4286
  selector: 'sof-ar-header',
4273
- template: "<ng-container *ngIf=\"displaySuperHeader\">\r\n <div class=\"sof-super-header\" [ngStyle]=\"{'background-color' : superHeaderColor}\">\r\n <ng-content select=\"[sof-ar-super-header]\"></ng-content>\r\n </div>\r\n</ng-container>\r\n<mat-toolbar color=\"{{headerColor}}\" class=\"sof-ar-header\" [class.sof-ar-header-shadow]=\"headerDropShadow\" [ngStyle]=\"{'height.px': settings?.headerStyles?.height }\" [ngStyle.lt-sm]=\"{'height.px': settings?.headerStyles?.heightMobile }\">\r\n <div class=\"sof-ar-header--left\" [class.sof-ar-mobile-navigation]=\"armatureNavigation || armatureHeaderOverlay\">\r\n\r\n <!-- Logo Image -->\r\n <ng-container *ngIf=\"displayLogo\">\r\n <ng-container *ngIf=\"settings?.logoRouterLinkPath === 'internal'; else external\">\r\n <a [routerLink]=\"settings?.logoRouterLink\">\r\n <img class=\"sof-ar-header-logo\" [src]=\"logoUrl\" alt=\"{{logoAltText | translate}}\" [ngStyle]=\"{'height.px': settings?.logoStyles?.height, 'width.px': settings?.logoStyles?.width, 'max-width': settings?.logoStyles?.width + 'px' || '100%'}\" [ngStyle.lt-sm]=\"{'height.px': settings?.logoStyles?.heightMobile, 'width.px': settings?.logoStyles?.widthMobile, 'max-width': settings?.logoStyles?.widthMobile + 'px' || '100%'}\"\r\n />\r\n </a>\r\n </ng-container>\r\n <ng-template #external>\r\n <a [href]=\"settings?.logoRouterLink\"><img class=\"sof-ar-header-logo\" [src]=\"logoUrl\" alt=\"{{logoAltText | translate}}\" [ngStyle]=\"{'height.px': settings?.logoStyles?.height, 'width.px': settings?.logoStyles?.width, 'max-width': settings?.logoStyles?.width + 'px' || '100%'}\"\r\n [ngStyle.lt-sm]=\"{'height.px': settings?.logoStyles?.heightMobile, 'width.px': settings?.logoStyles?.widthMobile, 'max-width': settings?.logoStyles?.widthMobile + 'px' || '100%'}\" />\r\n </a>\r\n </ng-template>\r\n </ng-container>\r\n <!-- Logo Text -->\r\n <ng-container *ngIf=\"displayLogoText\">\r\n <p class=\"sof-ar-header-logo-text\">{{headerLogoText}}</p>\r\n </ng-container>\r\n <!-- NG-Content Left -->\r\n <ng-content select=\"[sof-ar-header-left]\"></ng-content>\r\n </div>\r\n <div class=\"sof-ar-header--center\">\r\n <!-- NG-Content Center -->\r\n <ng-content select=\"[sof-ar-header-center]\"></ng-content>\r\n </div>\r\n <div class=\"sof-ar-header--right\">\r\n <!-- NG-Content Right -->\r\n <span fxHide.lt-sm=\"!armatureNavigation && armatureHeaderOverlay\">\r\n\r\n <ng-content select=\"[sof-ar-header-right]\"></ng-content>\r\n </span>\r\n <!-- TODO: Color the icons -->\r\n <ng-container *ngIf=\"displayDropDownMenu\">\r\n <button id=\"sof-ar-header-btn-dropdown\" mat-icon-button [matMenuTriggerFor]=\"sofArHeaderMenu\" [attr.aria-label]=\"dropDownAriaText | translate\">\r\n <span class=\"sof-ar-header-icon\" [style.color]=\"iconColor\">\r\n <i class=\"{{headerDropDownIcon}}\"></i>\r\n <span class=\"sr-only\">{{dropDownMenuSRText | translate}}</span>\r\n </span>\r\n </button>\r\n <mat-menu #sofArHeaderMenu=\"matMenu\" class=\"sof-ar-mat-menu\">\r\n <!-- NG-Content Menu -->\r\n <ng-content select=\"[sof-ar-header-menu]\"></ng-content>\r\n </mat-menu>\r\n </ng-container>\r\n <!-- Authorization button-->\r\n <ng-container *ngIf=\"settings?.displayAuthInfo\">\r\n <button id=\"sof-ar-header-btn-auth\" mat-flat-button (click)=\"authorizeUser()\" [attr.aria-label]=\"authBtnAriaText | translate\">\r\n <b>{{ authBtnText | translate }}</b>\r\n </button>\r\n </ng-container>\r\n </div>\r\n\r\n\r\n\r\n</mat-toolbar>",
4274
- styles: [".sof-super-header{height:34px;display:flex;align-items:center;justify-content:center}@media only screen and (max-width:599px){.sof-super-header{justify-content:center;padding:0}}.sof-ar-header{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2;background:#fff}.sof-ar-header.sof-ar-header-shadow{box-shadow:0 1px 4px rgba(0,0,0,.5)}.sof-ar-header-logo-text{font-size:20px;display:inline-block}::ng-deep .sof-ar-header-icon,::ng-deep .sof-ar-header-menu-icon{font-size:24px}::ng-deep .sof-ar-header-menu-icon{padding-right:10px}::ng-deep .sof-ar-mat-menu{border-radius:2px!important}::ng-deep .sof-ar-mat-menu .mat-menu-content{padding-top:0!important;padding-bottom:0!important;min-width:150px}::ng-deep .sof-ar-header-menu-list.sof-ar-header-menu-border{border-bottom:1px solid rgba(0,0,0,.25)!important}::ng-deep .sof-ar-header-menu-list{display:flex!important;align-items:center}::ng-deep .sof-ar-header-button-text{font-weight:600;font-size:14px;padding-left:10px;padding-right:10px}.sof-ar-header-logo{max-width:100%;height:32px}.sof-ar-header--left{align-items:center;display:flex}@media only screen and (max-width:599px){.sof-ar-header-logo{height:24px}.sof-ar-header--left.sof-ar-mobile-navigation{margin-left:50px}}.sof-ar-header--right{text-align:right}.sof-ar-header--center{text-align:center}.sof-ar-header--center,.sof-ar-header--left,.sof-ar-header--right{flex:1}"]
4287
+ template: "<ng-container *ngIf=\"displaySuperHeader\">\r\n <div class=\"sof-super-header\" [ngStyle]=\"{'background-color' : superHeaderColor}\">\r\n <ng-content select=\"[sof-ar-super-header]\"></ng-content>\r\n </div>\r\n</ng-container>\r\n<mat-toolbar color=\"{{headerColor}}\" class=\"sof-ar-header\" [class.sof-ar-header-shadow]=\"headerDropShadow\" [ngStyle]=\"{'height.px': settings?.headerStyles?.height }\" [ngStyle.lt-sm]=\"{'height.px': settings?.headerStyles?.heightMobile }\">\r\n <div class=\"sof-ar-header--left\" [class.sof-ar-mobile-navigation]=\"armatureNavigation || armatureHeaderOverlay\">\r\n\r\n <!-- Logo Image -->\r\n <ng-container *ngIf=\"displayLogo\">\r\n <ng-container *ngIf=\"settings?.logoRouterLinkPath === 'internal'; else external\">\r\n <a [routerLink]=\"settings?.logoRouterLink\">\r\n <img class=\"sof-ar-header-logo\" [src]=\"logoUrl\" alt=\"{{logoAltText | translate}}\" [ngStyle]=\"{'height.px': settings?.logoStyles?.height, 'width.px': settings?.logoStyles?.width, 'max-width': settings?.logoStyles?.width + 'px' || '100%'}\" [ngStyle.lt-sm]=\"{'height.px': settings?.logoStyles?.heightMobile, 'width.px': settings?.logoStyles?.widthMobile, 'max-width': settings?.logoStyles?.widthMobile + 'px' || '100%'}\"\r\n />\r\n </a>\r\n </ng-container>\r\n <ng-template #external>\r\n <a [href]=\"settings?.logoRouterLink\"><img class=\"sof-ar-header-logo\" [src]=\"logoUrl\" alt=\"{{logoAltText | translate}}\" [ngStyle]=\"{'height.px': settings?.logoStyles?.height, 'width.px': settings?.logoStyles?.width, 'max-width': settings?.logoStyles?.width + 'px' || '100%'}\"\r\n [ngStyle.lt-sm]=\"{'height.px': settings?.logoStyles?.heightMobile, 'width.px': settings?.logoStyles?.widthMobile, 'max-width': settings?.logoStyles?.widthMobile + 'px' || '100%'}\" />\r\n </a>\r\n </ng-template>\r\n </ng-container>\r\n <!-- Logo Text -->\r\n <ng-container *ngIf=\"displayLogoText\">\r\n <p class=\"sof-ar-header-logo-text\">{{headerLogoText}}</p>\r\n </ng-container>\r\n <!-- NG-Content Left -->\r\n <ng-content select=\"[sof-ar-header-left]\"></ng-content>\r\n </div>\r\n <div class=\"sof-ar-header--center\">\r\n <!-- NG-Content Center -->\r\n <ng-content select=\"[sof-ar-header-center]\"></ng-content>\r\n </div>\r\n <div class=\"sof-ar-header--right\">\r\n <!-- NG-Content Right -->\r\n <span fxHide.lt-lg=\"!armatureNavigation && armatureHeaderOverlay\">\r\n <ng-content select=\"[sof-ar-header-right]\"></ng-content>\r\n </span>\r\n <!-- TODO: Color the icons -->\r\n <ng-container *ngIf=\"displayDropDownMenu\">\r\n <button id=\"sof-ar-header-btn-dropdown\" mat-icon-button [matMenuTriggerFor]=\"sofArHeaderMenu\" [attr.aria-label]=\"dropDownAriaText | translate\">\r\n <span class=\"sof-ar-header-icon\" [style.color]=\"iconColor\">\r\n <i class=\"{{headerDropDownIcon}}\"></i>\r\n <span class=\"sr-only\">{{dropDownMenuSRText | translate}}</span>\r\n </span>\r\n </button>\r\n <mat-menu #sofArHeaderMenu=\"matMenu\" class=\"sof-ar-mat-menu\">\r\n <!-- NG-Content Menu -->\r\n <ng-content select=\"[sof-ar-header-menu]\"></ng-content>\r\n </mat-menu>\r\n </ng-container>\r\n <ng-content select=\"[sof-ar-mobile-header-right]\" ></ng-content>\r\n <ng-container *ngIf=\"settings?.displayAuthInfo\">\r\n <button id=\"sof-ar-header-btn-auth\" mat-flat-button (click)=\"authorizeUser()\" [attr.aria-label]=\"authBtnAriaText | translate\">\r\n <b>{{ authBtnText | translate }}</b>\r\n </button>\r\n </ng-container>\r\n </div>\r\n</mat-toolbar>",
4288
+ styles: [".sof-super-header{height:34px;display:flex;align-items:center;justify-content:center}@media only screen and (max-width:599px){.sof-super-header{justify-content:center;padding:0}.sof-ar-header--left.sof-ar-mobile-navigation{margin-left:50px}}.sof-ar-header{display:flex;align-items:center;justify-content:space-between;position:relative;max-height:64px;z-index:2;background:#fff}.sof-ar-header.sof-ar-header-shadow{box-shadow:0 1px 4px rgba(0,0,0,.5)}.sof-ar-header-logo-text{height:15px;font-size:15px;display:inline-block}::ng-deep .sof-ar-header-icon,::ng-deep .sof-ar-header-menu-icon{font-size:24px}::ng-deep .sof-ar-header-menu-icon{padding-right:10px}::ng-deep .sof-ar-mat-menu{border-radius:2px!important}::ng-deep .sof-ar-mat-menu .mat-menu-content{padding-top:0!important;padding-bottom:0!important;min-width:150px}::ng-deep .sof-ar-header-menu-list.sof-ar-header-menu-border{border-bottom:1px solid rgba(0,0,0,.25)!important}::ng-deep .sof-ar-header-menu-list{display:flex!important;align-items:center}::ng-deep .sof-ar-header-button-text{font-weight:600;font-size:14px;padding-left:10px;padding-right:10px}.sof-ar-header-logo{max-width:100%;max-height:40px}.sof-ar-header--left{align-items:center;display:flex}@media only screen and (min-width:600px){.sof-ar-header-logo{max-width:168px;padding-left:0!important}.sof-ar-header--left.sof-ar-mobile-navigation{margin-left:18px}}.sof-ar-header--right{text-align:right}.sof-ar-header--center{text-align:center}.sof-ar-header--center,.sof-ar-header--left,.sof-ar-header--right{flex:1}.call-banner{top:0;position:relative;width:100%;background-color:#f7f7f7;height:40px;color:#fff}.material-icons.light{color:#fff}"]
4275
4289
  }] }
4276
4290
  ];
4277
4291
  /** @nocollapse */
@@ -4477,8 +4491,8 @@
4477
4491
  MobileHeaderMenuComponent.decorators = [
4478
4492
  { type: core.Component, args: [{
4479
4493
  selector: 'sof-ar-mobile-header-menu',
4480
- template: "<div fxHide.gt-xs>\r\n <div>\r\n <button class=\"sof-ar-menu-btn\" mat-icon-button (click)=\"snav.toggle()\">\r\n <span class=\"sof-ar-menu-icon\" [style.color]=\"iconColor\">\r\n <i class=\"{{currentIcon}}\"></i>\r\n </span>\r\n </button>\r\n </div>\r\n <div>\r\n <mat-sidenav-container>\r\n <mat-sidenav #snav fixedInViewport [fixedTopGap]=\"mobileHeaderHeight\" (openedStart)=\"changeToCloseIcon()\" (closedStart)=\"changeToMenuIcon()\">\r\n <!-- NG-Content Mobile Headers Items -->\r\n <ng-content select=\"[sof-ar-mobile-header-menu-items]\"></ng-content>\r\n </mat-sidenav>\r\n <mat-sidenav-content>\r\n <!-- NG Content Main Content -->\r\n <ng-content sof-ar-mobile-header-main-content></ng-content>\r\n </mat-sidenav-content>\r\n </mat-sidenav-container>\r\n </div>\r\n</div>",
4481
- styles: ["::ng-deep .sof-ar-menu-btn{position:absolute!important;z-index:2;top:0;margin:8px!important}::ng-deep .sof-ar-menu-icon{font-size:large}"]
4494
+ template: "<div fxHide.gt-md>\r\n <div>\r\n <button class=\"sof-ar-menu-btn\" mat-icon-button (click)=\"snav.toggle()\">\r\n <span class=\"sof-ar-menu-icon\" [style.color]=\"iconColor\">\r\n <i class=\"{{currentIcon}}\"></i>\r\n </span>\r\n </button>\r\n </div>\r\n <div>\r\n <mat-sidenav-container>\r\n <mat-sidenav #snav fixedInViewport [fixedTopGap]=\"mobileHeaderHeight\" (openedStart)=\"changeToCloseIcon()\" (closedStart)=\"changeToMenuIcon()\">\r\n <!-- NG-Content Mobile Headers Items -->\r\n <ng-content select=\"[sof-ar-mobile-header-menu-items]\"></ng-content>\r\n </mat-sidenav>\r\n <mat-sidenav-content>\r\n <!-- NG Content Main Content -->\r\n <ng-content sof-ar-mobile-header-main-content></ng-content>\r\n </mat-sidenav-content>\r\n </mat-sidenav-container>\r\n </div>\r\n</div>",
4495
+ styles: ["::ng-deep .sof-ar-menu-btn{position:absolute!important;z-index:2;top:0;margin:8px}::ng-deep .sof-ar-menu-icon{font-size:large}@media only screen and (min-width:600px){::ng-deep .sof-ar-menu-btn{padding-left:16px}::ng-deep .sof-ar-menu-icon{font-size:xx-large}}"]
4482
4496
  }] }
4483
4497
  ];
4484
4498
  MobileHeaderMenuComponent.propDecorators = {
@@ -4914,6 +4928,7 @@
4914
4928
  // tslint:disable-next-line: no-parameter-reassignment
4915
4929
  this.userEntityBaseUrl = this.userEntityBaseUrl || '/';
4916
4930
  this.userEntityServiceConfig = !this.userEntityServiceConfig ? new UserEntityServiceConfig() : this.getConfigWithDefaults();
4931
+ this.getUserPartial = this.userEntityServiceConfig.getUserPartial || this.getUserPartial;
4917
4932
  this.user$ = this.userBS.asObservable()
4918
4933
  .pipe(operators.filter((/**
4919
4934
  * @param {?} val
@@ -5082,7 +5097,7 @@
5082
5097
  .replace('/account/login', '')
5083
5098
  .replace('/connect/authorize', '')
5084
5099
  });
5085
- this.userCall = this.httpClient.get("" + this.userEntityBaseUrl + this.getUserPartial + "?subIdFromToken=true&createEmpty=true", { headers: headers })
5100
+ this.userCall = this.httpClient.get("" + this.userEntityBaseUrl + this.getUserPartial + "?subIdFromToken=true&createEmpty=true&withoutChildLinks=" + !this.userEntityServiceConfig.includeLinks, { headers: headers })
5086
5101
  .toPromise();
5087
5102
  return [2 /*return*/, this.userCall.then((/**
5088
5103
  * @param {?} res
@@ -5129,6 +5144,8 @@
5129
5144
  function (user) { return true; }));
5130
5145
  // tslint:disable-next-line: triple-equals
5131
5146
  config.getUserOnInit = config.getUserOnInit == undefined ? true : config.getUserOnInit;
5147
+ config.includeLinks = config.includeLinks == undefined ? true : config.includeLinks;
5148
+ config.getUserPartial = config.getUserPartial == undefined ? this.getUserPartial : config.getUserPartial;
5132
5149
  return config;
5133
5150
  };
5134
5151
  UserEntityService.decorators = [
@@ -8898,7 +8915,7 @@
8898
8915
  function () {
8899
8916
  /** @type {?} */
8900
8917
  var errStr = JSON.stringify(_this.currentError);
8901
- _this.httpClient.post(_this.rumConfig.serverUrl, { error: errStr, applicationName: appName })
8918
+ _this.httpClient.post(_this.rumConfig.serverUrl, { error: errStr, applicationName: appName, logLevel: "Warn" })
8902
8919
  .pipe(operators.catchError((/**
8903
8920
  * @param {?} error
8904
8921
  * @return {?}