@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.
- package/bundles/softheon-armature.umd.js +23 -7
- package/bundles/softheon-armature.umd.js.map +1 -1
- package/bundles/softheon-armature.umd.min.js +2 -2
- package/bundles/softheon-armature.umd.min.js.map +1 -1
- package/esm2015/lib/core/services/user-entity.service.js +5 -2
- package/esm2015/lib/navigation/navigation.module.js +1 -3
- package/esm2015/lib/rum/services/softheon-error-handler.service.js +2 -2
- package/esm2015/lib/shared/models/user-entity-service-config.js +15 -1
- package/esm5/lib/core/services/user-entity.service.js +5 -2
- package/esm5/lib/navigation/navigation.module.js +1 -3
- package/esm5/lib/rum/services/softheon-error-handler.service.js +2 -2
- package/esm5/lib/shared/models/user-entity-service-config.js +15 -1
- package/fesm2015/softheon-armature.js +19 -4
- package/fesm2015/softheon-armature.js.map +1 -1
- package/fesm5/softheon-armature.js +19 -4
- package/fesm5/softheon-armature.js.map +1 -1
- package/lib/core/services/user-entity.service.d.ts +1 -1
- package/lib/shared/models/user-entity-service-config.d.ts +4 -0
- package/package.json +1 -1
- package/softheon-armature.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('angular-oauth2-oidc'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/flex-layout'), require('@angular/material'), require('@angular/router'), require('@ngx-translate/core'), require('@angular/forms'), require('angular-oauth2-oidc/'), require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@softheon/armature', ['exports', '@angular/core', '@angular/common/http', 'angular-oauth2-oidc', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/flex-layout', '@angular/material', '@angular/router', '@ngx-translate/core', '@angular/forms', 'angular-oauth2-oidc/', '@angular/
|
|
4
|
-
(global = global || self, factory((global.softheon = global.softheon || {}, global.softheon.armature = {}), global.ng.core, global.ng.common.http, global.angularOauth2Oidc, global.rxjs, global.rxjs.operators, global.ng.common, global.ng['flex-layout'], global.ng.material, global.ng.router, global.core$1, global.ng.forms, global._, global.ng.
|
|
5
|
-
}(this, (function (exports, core, http, angularOauth2Oidc, rxjs, operators, common, flexLayout, material, router, core$1, forms, _,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('angular-oauth2-oidc'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/flex-layout'), require('@angular/material'), require('@angular/router'), require('@ngx-translate/core'), require('@angular/forms'), require('angular-oauth2-oidc/'), require('@angular/cdk/layout'), require('@elastic/apm-rum-angular'), require('@elastic/apm-rum-angular/dist/lib/index')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@softheon/armature', ['exports', '@angular/core', '@angular/common/http', 'angular-oauth2-oidc', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/flex-layout', '@angular/material', '@angular/router', '@ngx-translate/core', '@angular/forms', 'angular-oauth2-oidc/', '@angular/cdk/layout', '@elastic/apm-rum-angular', '@elastic/apm-rum-angular/dist/lib/index'], factory) :
|
|
4
|
+
(global = global || self, factory((global.softheon = global.softheon || {}, global.softheon.armature = {}), global.ng.core, global.ng.common.http, global.angularOauth2Oidc, global.rxjs, global.rxjs.operators, global.ng.common, global.ng['flex-layout'], global.ng.material, global.ng.router, global.core$1, global.ng.forms, global._, global.ng.cdk.layout, global.apmRumAngular, global.index));
|
|
5
|
+
}(this, (function (exports, core, http, angularOauth2Oidc, rxjs, operators, common, flexLayout, material, router, core$1, forms, _, layout, apmRumAngular, index) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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 {?}
|
|
@@ -4871,7 +4885,6 @@
|
|
|
4871
4885
|
imports: __spread([
|
|
4872
4886
|
common.CommonModule,
|
|
4873
4887
|
router.RouterModule,
|
|
4874
|
-
animations.BrowserAnimationsModule,
|
|
4875
4888
|
core$1.TranslateModule
|
|
4876
4889
|
], materialModules$2),
|
|
4877
4890
|
exports: __spread(components$3, materialModules$2),
|
|
@@ -4914,6 +4927,7 @@
|
|
|
4914
4927
|
// tslint:disable-next-line: no-parameter-reassignment
|
|
4915
4928
|
this.userEntityBaseUrl = this.userEntityBaseUrl || '/';
|
|
4916
4929
|
this.userEntityServiceConfig = !this.userEntityServiceConfig ? new UserEntityServiceConfig() : this.getConfigWithDefaults();
|
|
4930
|
+
this.getUserPartial = this.userEntityServiceConfig.getUserPartial || this.getUserPartial;
|
|
4917
4931
|
this.user$ = this.userBS.asObservable()
|
|
4918
4932
|
.pipe(operators.filter((/**
|
|
4919
4933
|
* @param {?} val
|
|
@@ -5082,7 +5096,7 @@
|
|
|
5082
5096
|
.replace('/account/login', '')
|
|
5083
5097
|
.replace('/connect/authorize', '')
|
|
5084
5098
|
});
|
|
5085
|
-
this.userCall = this.httpClient.get("" + this.userEntityBaseUrl + this.getUserPartial + "?subIdFromToken=true&createEmpty=true", { headers: headers })
|
|
5099
|
+
this.userCall = this.httpClient.get("" + this.userEntityBaseUrl + this.getUserPartial + "?subIdFromToken=true&createEmpty=true&withoutChildLinks=" + !this.userEntityServiceConfig.includeLinks, { headers: headers })
|
|
5086
5100
|
.toPromise();
|
|
5087
5101
|
return [2 /*return*/, this.userCall.then((/**
|
|
5088
5102
|
* @param {?} res
|
|
@@ -5129,6 +5143,8 @@
|
|
|
5129
5143
|
function (user) { return true; }));
|
|
5130
5144
|
// tslint:disable-next-line: triple-equals
|
|
5131
5145
|
config.getUserOnInit = config.getUserOnInit == undefined ? true : config.getUserOnInit;
|
|
5146
|
+
config.includeLinks = config.includeLinks == undefined ? true : config.includeLinks;
|
|
5147
|
+
config.getUserPartial = config.getUserPartial == undefined ? this.getUserPartial : config.getUserPartial;
|
|
5132
5148
|
return config;
|
|
5133
5149
|
};
|
|
5134
5150
|
UserEntityService.decorators = [
|
|
@@ -8898,7 +8914,7 @@
|
|
|
8898
8914
|
function () {
|
|
8899
8915
|
/** @type {?} */
|
|
8900
8916
|
var errStr = JSON.stringify(_this.currentError);
|
|
8901
|
-
_this.httpClient.post(_this.rumConfig.serverUrl, { error: errStr, applicationName: appName })
|
|
8917
|
+
_this.httpClient.post(_this.rumConfig.serverUrl, { error: errStr, applicationName: appName, logLevel: "Warn" })
|
|
8902
8918
|
.pipe(operators.catchError((/**
|
|
8903
8919
|
* @param {?} error
|
|
8904
8920
|
* @return {?}
|