@esfaenza/core 15.2.269 → 15.2.271
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/components/error/404/pagenotfound.component.d.ts +1 -2
- package/components/error/500/servererror.component.d.ts +1 -2
- package/components/error/Angular/angularerror.component.d.ts +1 -2
- package/components/navbar/navbar.component.d.ts +1 -2
- package/domain/tokens.d.ts +0 -2
- package/esm2020/components/back-top/back-top.component.mjs +4 -4
- package/esm2020/components/base/base.component.mjs +4 -4
- package/esm2020/components/base/embedding.component.mjs +4 -4
- package/esm2020/components/base/reactive.component.mjs +4 -4
- package/esm2020/components/breadcrumb/breadcrumb.component.mjs +4 -4
- package/esm2020/components/components.module.mjs +5 -5
- package/esm2020/components/error/404/pagenotfound.component.mjs +8 -14
- package/esm2020/components/error/500/servererror.component.mjs +8 -14
- package/esm2020/components/error/Angular/angularerror.component.mjs +8 -14
- package/esm2020/components/es-image-cropper/es-image-cropper.component.mjs +4 -4
- package/esm2020/components/es-modal/es-modal-head/es-modal-head.component.mjs +4 -4
- package/esm2020/components/es-modal/es-modal.component.mjs +4 -4
- package/esm2020/components/external-page/external_pages.component.mjs +5 -5
- package/esm2020/components/jace-login/jace-login.component.mjs +4 -4
- package/esm2020/components/jace-resource/jace-resource.component.mjs +4 -4
- package/esm2020/components/labeled-span/labeled-span.component.mjs +4 -4
- package/esm2020/components/navbar/navbar.component.loc.mjs +4 -4
- package/esm2020/components/navbar/navbar.component.mjs +7 -11
- package/esm2020/components/page/pages.component.mjs +4 -4
- package/esm2020/components/redirecter/redirecter.component.mjs +4 -4
- package/esm2020/components/sidebar/sidebar.component.loc.mjs +4 -4
- package/esm2020/components/sidebar/sidebar.component.mjs +4 -4
- package/esm2020/components/user_infos/user_infos.component.loc.mjs +4 -4
- package/esm2020/components/user_infos/user_infos.component.mjs +7 -9
- package/esm2020/directives/componentHost/componentHost.directive.mjs +4 -4
- package/esm2020/directives/directives.module.mjs +5 -5
- package/esm2020/directives/draggable/draggable.directive.mjs +4 -4
- package/esm2020/directives/es-modal/es-modal.directive.mjs +4 -4
- package/esm2020/directives/es-routerLink/es-routerLink.directive.mjs +4 -4
- package/esm2020/directives/slim-scroll/slim-scroll.directive.mjs +4 -4
- package/esm2020/directives/widget/widget.directive.mjs +4 -4
- package/esm2020/domain/tokens.mjs +1 -3
- package/esm2020/lib/app.component.mjs +9 -13
- package/esm2020/lib/core.module.mjs +8 -25
- package/esm2020/modules/classes/_embedding.module.mjs +5 -5
- package/esm2020/modules/classes/_shared.module.mjs +5 -5
- package/esm2020/modules/classes/t_c.module.mjs +5 -5
- package/esm2020/pipes/classes/included_in.pipe.mjs +4 -4
- package/esm2020/pipes/classes/safe_html.pipe.mjs +4 -4
- package/esm2020/pipes/classes/safe_script.pipe.mjs +4 -4
- package/esm2020/pipes/classes/safe_style.pipe.mjs +4 -4
- package/esm2020/pipes/classes/safe_url.pipe.mjs +4 -4
- package/esm2020/pipes/pipes.module.mjs +5 -5
- package/esm2020/services/classes/app.accesstoken.mjs +6 -16
- package/esm2020/services/classes/app.completedjobredirection.mjs +4 -4
- package/esm2020/services/classes/app.errorhandler.mjs +4 -4
- package/esm2020/services/classes/app.event.mjs +4 -4
- package/esm2020/services/classes/app.globalsearch.mjs +4 -4
- package/esm2020/services/classes/app.httpextensions.loc.mjs +4 -4
- package/esm2020/services/classes/app.httpextensions.mjs +4 -4
- package/esm2020/services/classes/app.menufilter.mjs +4 -4
- package/esm2020/services/classes/app.routeguard.mjs +5 -6
- package/esm2020/services/classes/app.session.mjs +7 -15
- package/esm2020/services/classes/app.state.mjs +9 -19
- package/esm2020/services/classes/preferences/app.cache.persistor.mjs +4 -4
- package/esm2020/services/classes/preferences/app.preference.persistor.mjs +4 -4
- package/esm2020/services/classes/preferences/user/app.userpreferences.base.mjs +6 -9
- package/fesm2015/esfaenza-core-components.mjs +90 -116
- package/fesm2015/esfaenza-core-components.mjs.map +1 -1
- package/fesm2015/esfaenza-core-directives.mjs +22 -22
- package/fesm2015/esfaenza-core-directives.mjs.map +1 -1
- package/fesm2015/esfaenza-core-domain.mjs +1 -3
- package/fesm2015/esfaenza-core-domain.mjs.map +1 -1
- package/fesm2015/esfaenza-core-modules.mjs +12 -12
- package/fesm2015/esfaenza-core-modules.mjs.map +1 -1
- package/fesm2015/esfaenza-core-pipes.mjs +19 -19
- package/fesm2015/esfaenza-core-pipes.mjs.map +1 -1
- package/fesm2015/esfaenza-core-services.mjs +53 -85
- package/fesm2015/esfaenza-core-services.mjs.map +1 -1
- package/fesm2015/esfaenza-core.mjs +17 -39
- package/fesm2015/esfaenza-core.mjs.map +1 -1
- package/fesm2020/esfaenza-core-components.mjs +90 -110
- package/fesm2020/esfaenza-core-components.mjs.map +1 -1
- package/fesm2020/esfaenza-core-directives.mjs +22 -22
- package/fesm2020/esfaenza-core-directives.mjs.map +1 -1
- package/fesm2020/esfaenza-core-domain.mjs +1 -3
- package/fesm2020/esfaenza-core-domain.mjs.map +1 -1
- package/fesm2020/esfaenza-core-modules.mjs +12 -12
- package/fesm2020/esfaenza-core-modules.mjs.map +1 -1
- package/fesm2020/esfaenza-core-pipes.mjs +19 -19
- package/fesm2020/esfaenza-core-pipes.mjs.map +1 -1
- package/fesm2020/esfaenza-core-services.mjs +53 -81
- package/fesm2020/esfaenza-core-services.mjs.map +1 -1
- package/fesm2020/esfaenza-core.mjs +17 -37
- package/fesm2020/esfaenza-core.mjs.map +1 -1
- package/lib/app.component.d.ts +1 -1
- package/lib/core.module.d.ts +0 -1
- package/package.json +7 -7
- package/services/classes/app.accesstoken.d.ts +2 -3
- package/services/classes/app.session.d.ts +1 -2
- package/services/classes/app.state.d.ts +1 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Optional, Inject } from '@angular/core';
|
|
3
|
-
import { JaceIdentity, USE_FAKE_ACCESS_TOKEN,
|
|
3
|
+
import { JaceIdentity, USE_FAKE_ACCESS_TOKEN, UpdateProfilePictureDto, UpdateAccountRecoverySettingsDto, UpdatePasswordDto } from '@esfaenza/core/domain';
|
|
4
4
|
import * as i1 from 'ngx-cookie-service';
|
|
5
5
|
import { of, Subject, filter, firstValueFrom } from 'rxjs';
|
|
6
6
|
import * as i2 from '@angular/common/http';
|
|
@@ -31,10 +31,9 @@ import { HTTPService } from '@esfaenza/httpservice';
|
|
|
31
31
|
|
|
32
32
|
// Angular
|
|
33
33
|
class TokenService {
|
|
34
|
-
constructor(cs, USE_FAKE_ACCESS_TOKEN
|
|
34
|
+
constructor(cs, USE_FAKE_ACCESS_TOKEN) {
|
|
35
35
|
this.cs = cs;
|
|
36
36
|
this.USE_FAKE_ACCESS_TOKEN = USE_FAKE_ACCESS_TOKEN;
|
|
37
|
-
this.ANONYMOUS_MODE = ANONYMOUS_MODE;
|
|
38
37
|
if (this.USE_FAKE_ACCESS_TOKEN)
|
|
39
38
|
this.accountScope = this.getFakeAccountScope();
|
|
40
39
|
}
|
|
@@ -42,13 +41,9 @@ class TokenService {
|
|
|
42
41
|
this.cs.delete("access_token");
|
|
43
42
|
}
|
|
44
43
|
getAccessToken() {
|
|
45
|
-
if (this.ANONYMOUS_MODE)
|
|
46
|
-
return "";
|
|
47
44
|
return this.USE_FAKE_ACCESS_TOKEN ? this.getFakeToken() : this.cs.get("accessToken");
|
|
48
45
|
}
|
|
49
46
|
getJaceIdentity() {
|
|
50
|
-
if (this.ANONYMOUS_MODE)
|
|
51
|
-
return null;
|
|
52
47
|
let token = this.USE_FAKE_ACCESS_TOKEN ? this.getFakeToken() : this.cs.get("accessToken");
|
|
53
48
|
if (!token)
|
|
54
49
|
return null;
|
|
@@ -1049,9 +1044,9 @@ class TokenService {
|
|
|
1049
1044
|
return accountScope;
|
|
1050
1045
|
}
|
|
1051
1046
|
}
|
|
1052
|
-
TokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1053
|
-
TokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1054
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1047
|
+
TokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenService, deps: [{ token: i1.CookieService }, { token: USE_FAKE_ACCESS_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1048
|
+
TokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenService, providedIn: "root" });
|
|
1049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenService, decorators: [{
|
|
1055
1050
|
type: Injectable,
|
|
1056
1051
|
args: [{ providedIn: "root" }]
|
|
1057
1052
|
}], ctorParameters: function () {
|
|
@@ -1060,11 +1055,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1060
1055
|
}, {
|
|
1061
1056
|
type: Inject,
|
|
1062
1057
|
args: [USE_FAKE_ACCESS_TOKEN]
|
|
1063
|
-
}] }, { type: undefined, decorators: [{
|
|
1064
|
-
type: Optional
|
|
1065
|
-
}, {
|
|
1066
|
-
type: Inject,
|
|
1067
|
-
args: [ANONYMOUS_MODE]
|
|
1068
1058
|
}] }];
|
|
1069
1059
|
} });
|
|
1070
1060
|
|
|
@@ -1092,9 +1082,9 @@ class GlobalSearchService {
|
|
|
1092
1082
|
return null;
|
|
1093
1083
|
}
|
|
1094
1084
|
}
|
|
1095
|
-
GlobalSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1096
|
-
GlobalSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1085
|
+
GlobalSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalSearchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1086
|
+
GlobalSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalSearchService });
|
|
1087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalSearchService, decorators: [{
|
|
1098
1088
|
type: Injectable
|
|
1099
1089
|
}] });
|
|
1100
1090
|
|
|
@@ -1129,9 +1119,9 @@ class APPErrorHandler {
|
|
|
1129
1119
|
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, (match, p1) => String.fromCharCode(("0x" + p1))));
|
|
1130
1120
|
}
|
|
1131
1121
|
}
|
|
1132
|
-
APPErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1133
|
-
APPErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1122
|
+
APPErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APPErrorHandler, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1123
|
+
APPErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APPErrorHandler });
|
|
1124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APPErrorHandler, decorators: [{
|
|
1135
1125
|
type: Injectable
|
|
1136
1126
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1137
1127
|
|
|
@@ -1153,9 +1143,9 @@ class OutZoneEventPlugin {
|
|
|
1153
1143
|
return () => element.removeEventListener(eventOriginalName, standardHandler);
|
|
1154
1144
|
}
|
|
1155
1145
|
}
|
|
1156
|
-
OutZoneEventPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1157
|
-
OutZoneEventPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1146
|
+
OutZoneEventPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutZoneEventPlugin, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1147
|
+
OutZoneEventPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutZoneEventPlugin, providedIn: 'root' });
|
|
1148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutZoneEventPlugin, decorators: [{
|
|
1159
1149
|
type: Injectable,
|
|
1160
1150
|
args: [{ providedIn: 'root' }]
|
|
1161
1151
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -1166,9 +1156,9 @@ class HTTPServiceExtensionsLoc extends LocalizationService {
|
|
|
1166
1156
|
super.set("it->en", "Il Server sembra essere offline, prova a ricaricare la pagina", ["Server seems to be offline, try to reload this page"]);
|
|
1167
1157
|
}
|
|
1168
1158
|
}
|
|
1169
|
-
HTTPServiceExtensionsLoc.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1170
|
-
HTTPServiceExtensionsLoc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1159
|
+
HTTPServiceExtensionsLoc.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensionsLoc, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1160
|
+
HTTPServiceExtensionsLoc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensionsLoc });
|
|
1161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensionsLoc, decorators: [{
|
|
1172
1162
|
type: Injectable
|
|
1173
1163
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1174
1164
|
|
|
@@ -1178,7 +1168,7 @@ class AppState {
|
|
|
1178
1168
|
this.notifyDataChanged("modules.Retrieved", this._modules);
|
|
1179
1169
|
}
|
|
1180
1170
|
get Modules() { return this._modules; }
|
|
1181
|
-
constructor(router, lc, bts, notifications, MessageDef, intercom, emb
|
|
1171
|
+
constructor(router, lc, bts, notifications, MessageDef, intercom, emb) {
|
|
1182
1172
|
this.router = router;
|
|
1183
1173
|
this.lc = lc;
|
|
1184
1174
|
this.bts = bts;
|
|
@@ -1186,7 +1176,6 @@ class AppState {
|
|
|
1186
1176
|
this.MessageDef = MessageDef;
|
|
1187
1177
|
this.intercom = intercom;
|
|
1188
1178
|
this.emb = emb;
|
|
1189
|
-
this.anonymousMode = anonymousMode;
|
|
1190
1179
|
this.redirectingToLogin = false;
|
|
1191
1180
|
this.handlingError = false;
|
|
1192
1181
|
this.christmasTime = false;
|
|
@@ -1236,8 +1225,7 @@ class AppState {
|
|
|
1236
1225
|
// Se non ho un id mi manca il login, quindi via di qua
|
|
1237
1226
|
var id = this.getJaceIDentity();
|
|
1238
1227
|
if (!id) {
|
|
1239
|
-
|
|
1240
|
-
return "";
|
|
1228
|
+
//TODO: Commentare per la modalità IFRAME
|
|
1241
1229
|
this.router.navigate(["login"]);
|
|
1242
1230
|
return "";
|
|
1243
1231
|
}
|
|
@@ -1283,10 +1271,7 @@ class AppState {
|
|
|
1283
1271
|
}
|
|
1284
1272
|
setupSignalRJobListening() {
|
|
1285
1273
|
this.notifications.observe(this.MessageDef.IN_JobProgressNotification).subscribe((ev) => {
|
|
1286
|
-
var
|
|
1287
|
-
if (!identity)
|
|
1288
|
-
return;
|
|
1289
|
-
var desc = (ev.description || ev.actionid) + " (" + (ev.user || identity.DsUser) + ")";
|
|
1274
|
+
var desc = (ev.description || ev.actionid) + " (" + (ev.user || this.getJaceIDentity().DsUser) + ")";
|
|
1290
1275
|
let job = {
|
|
1291
1276
|
id: ev.instance,
|
|
1292
1277
|
description: desc,
|
|
@@ -1370,17 +1355,12 @@ class AppState {
|
|
|
1370
1355
|
this.headerHeight = height;
|
|
1371
1356
|
}
|
|
1372
1357
|
}
|
|
1373
|
-
AppState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1374
|
-
AppState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1358
|
+
AppState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppState, deps: [{ token: i1$1.Router }, { token: i1$2.LocalizationService }, { token: TokenService }, { token: i4.NotificationsService }, { token: i4.BaseMessageService }, { token: i5.InterComService }, { token: i5.AppEmbeddingExtensions }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1359
|
+
AppState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppState, providedIn: "root" });
|
|
1360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppState, decorators: [{
|
|
1376
1361
|
type: Injectable,
|
|
1377
1362
|
args: [{ providedIn: "root" }]
|
|
1378
|
-
}], ctorParameters: function () {
|
|
1379
|
-
return [{ type: i1$1.Router }, { type: i1$2.LocalizationService }, { type: TokenService }, { type: i4.NotificationsService }, { type: i4.BaseMessageService }, { type: i5.InterComService }, { type: i5.AppEmbeddingExtensions }, { type: undefined, decorators: [{
|
|
1380
|
-
type: Inject,
|
|
1381
|
-
args: [ANONYMOUS_MODE]
|
|
1382
|
-
}] }];
|
|
1383
|
-
} });
|
|
1363
|
+
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type: i1$2.LocalizationService }, { type: TokenService }, { type: i4.NotificationsService }, { type: i4.BaseMessageService }, { type: i5.InterComService }, { type: i5.AppEmbeddingExtensions }]; } });
|
|
1384
1364
|
|
|
1385
1365
|
// Angular
|
|
1386
1366
|
class HTTPServiceExtensions {
|
|
@@ -1456,9 +1436,9 @@ class HTTPServiceExtensions {
|
|
|
1456
1436
|
}
|
|
1457
1437
|
}
|
|
1458
1438
|
}
|
|
1459
|
-
HTTPServiceExtensions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1460
|
-
HTTPServiceExtensions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1439
|
+
HTTPServiceExtensions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensions, deps: [{ token: i1$2.LocalizationService }, { token: TokenService }, { token: AppState }, { token: i1$1.Router }, { token: i5$1.AccessControlService }, { token: i5.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1440
|
+
HTTPServiceExtensions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensions });
|
|
1441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensions, decorators: [{
|
|
1462
1442
|
type: Injectable
|
|
1463
1443
|
}], ctorParameters: function () { return [{ type: i1$2.LocalizationService }, { type: TokenService }, { type: AppState }, { type: i1$1.Router }, { type: i5$1.AccessControlService }, { type: i5.MessageService }]; } });
|
|
1464
1444
|
|
|
@@ -1474,9 +1454,9 @@ class MenuFilteringService {
|
|
|
1474
1454
|
return of(rawMenus);
|
|
1475
1455
|
}
|
|
1476
1456
|
}
|
|
1477
|
-
MenuFilteringService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1478
|
-
MenuFilteringService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1457
|
+
MenuFilteringService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuFilteringService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1458
|
+
MenuFilteringService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuFilteringService });
|
|
1459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuFilteringService, decorators: [{
|
|
1480
1460
|
type: Injectable
|
|
1481
1461
|
}] });
|
|
1482
1462
|
|
|
@@ -1490,18 +1470,17 @@ class CompletedJobRedirectionService {
|
|
|
1490
1470
|
redirect(completedJob) {
|
|
1491
1471
|
}
|
|
1492
1472
|
}
|
|
1493
|
-
CompletedJobRedirectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1494
|
-
CompletedJobRedirectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1473
|
+
CompletedJobRedirectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CompletedJobRedirectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1474
|
+
CompletedJobRedirectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CompletedJobRedirectionService });
|
|
1475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CompletedJobRedirectionService, decorators: [{
|
|
1496
1476
|
type: Injectable
|
|
1497
1477
|
}] });
|
|
1498
1478
|
|
|
1499
1479
|
// Angular
|
|
1500
1480
|
class SessionRetriever {
|
|
1501
|
-
constructor(bts, router
|
|
1481
|
+
constructor(bts, router) {
|
|
1502
1482
|
this.bts = bts;
|
|
1503
1483
|
this.router = router;
|
|
1504
|
-
this.anonymousMode = anonymousMode;
|
|
1505
1484
|
}
|
|
1506
1485
|
/** Tenant§Account§User§ModuleId */
|
|
1507
1486
|
getSessionKey() {
|
|
@@ -1511,8 +1490,6 @@ class SessionRetriever {
|
|
|
1511
1490
|
// Se non ho un id mi manca il login, quindi via di qua
|
|
1512
1491
|
var id = this.bts.getJaceIdentity();
|
|
1513
1492
|
if (!id) {
|
|
1514
|
-
if (this.anonymousMode)
|
|
1515
|
-
return "";
|
|
1516
1493
|
console.log("SessionRetriever - no identity, redirecting to login");
|
|
1517
1494
|
this.router.navigate(["login"]);
|
|
1518
1495
|
return "";
|
|
@@ -1521,17 +1498,12 @@ class SessionRetriever {
|
|
|
1521
1498
|
return this.SessionIdentity;
|
|
1522
1499
|
}
|
|
1523
1500
|
}
|
|
1524
|
-
SessionRetriever.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1525
|
-
SessionRetriever.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1501
|
+
SessionRetriever.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, deps: [{ token: TokenService }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1502
|
+
SessionRetriever.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, providedIn: "root" });
|
|
1503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, decorators: [{
|
|
1527
1504
|
type: Injectable,
|
|
1528
1505
|
args: [{ providedIn: "root" }]
|
|
1529
|
-
}], ctorParameters: function () {
|
|
1530
|
-
return [{ type: TokenService }, { type: i1$1.Router }, { type: undefined, decorators: [{
|
|
1531
|
-
type: Inject,
|
|
1532
|
-
args: [ANONYMOUS_MODE]
|
|
1533
|
-
}] }];
|
|
1534
|
-
} });
|
|
1506
|
+
}], ctorParameters: function () { return [{ type: TokenService }, { type: i1$1.Router }]; } });
|
|
1535
1507
|
|
|
1536
1508
|
// Angular
|
|
1537
1509
|
// Chiamate ai Repository
|
|
@@ -1609,9 +1581,9 @@ class ApplicationCachePersistor extends CachePersistor {
|
|
|
1609
1581
|
return `${this.getItemsUrl(sessionKey)}/${itemKey}`;
|
|
1610
1582
|
}
|
|
1611
1583
|
}
|
|
1612
|
-
ApplicationCachePersistor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1613
|
-
ApplicationCachePersistor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1584
|
+
ApplicationCachePersistor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationCachePersistor, deps: [{ token: i1$2.LocalizationService }, { token: i2.HttpClient }, { token: TokenService }, { token: i4$1.BaseSessionRetriever }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1585
|
+
ApplicationCachePersistor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationCachePersistor });
|
|
1586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationCachePersistor, decorators: [{
|
|
1615
1587
|
type: Injectable
|
|
1616
1588
|
}], ctorParameters: function () { return [{ type: i1$2.LocalizationService }, { type: i2.HttpClient }, { type: TokenService }, { type: i4$1.BaseSessionRetriever }]; } });
|
|
1617
1589
|
|
|
@@ -1691,9 +1663,9 @@ class ApplicationPreferencesPersistor extends PreferencesPersistor {
|
|
|
1691
1663
|
return `${this.getItemsUrl(sessionKey)}/${itemKey}`;
|
|
1692
1664
|
}
|
|
1693
1665
|
}
|
|
1694
|
-
ApplicationPreferencesPersistor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1695
|
-
ApplicationPreferencesPersistor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1696
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1666
|
+
ApplicationPreferencesPersistor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationPreferencesPersistor, deps: [{ token: i1$2.LocalizationService }, { token: i2.HttpClient }, { token: TokenService }, { token: i4$1.BaseSessionRetriever }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1667
|
+
ApplicationPreferencesPersistor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationPreferencesPersistor });
|
|
1668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationPreferencesPersistor, decorators: [{
|
|
1697
1669
|
type: Injectable
|
|
1698
1670
|
}], ctorParameters: function () { return [{ type: i1$2.LocalizationService }, { type: i2.HttpClient }, { type: TokenService }, { type: i4$1.BaseSessionRetriever }]; } });
|
|
1699
1671
|
|
|
@@ -1712,11 +1684,8 @@ class UserPreferencesService {
|
|
|
1712
1684
|
this.http = this.injector.get(HTTPService);
|
|
1713
1685
|
this.msgExts = this.injector.get(MessageService);
|
|
1714
1686
|
this.fakeToken = this.injector.get(USE_FAKE_ACCESS_TOKEN) || false;
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
this.AccountId = identity.IdAccount.toString();
|
|
1718
|
-
this.doReloadProfilePicture();
|
|
1719
|
-
}
|
|
1687
|
+
this.AccountId = tks.getJaceIdentity().IdAccount.toString();
|
|
1688
|
+
this.doReloadProfilePicture();
|
|
1720
1689
|
}
|
|
1721
1690
|
getAccountProfile() {
|
|
1722
1691
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1794,9 +1763,9 @@ class UserPreferencesService {
|
|
|
1794
1763
|
});
|
|
1795
1764
|
}
|
|
1796
1765
|
}
|
|
1797
|
-
UserPreferencesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1798
|
-
UserPreferencesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1766
|
+
UserPreferencesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserPreferencesService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1767
|
+
UserPreferencesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserPreferencesService });
|
|
1768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserPreferencesService, decorators: [{
|
|
1800
1769
|
type: Injectable
|
|
1801
1770
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1802
1771
|
|
|
@@ -1804,14 +1773,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1804
1773
|
class BaseRouterGuard extends AccessControlRouteGuard {
|
|
1805
1774
|
constructor(ms, acc, router, ts) {
|
|
1806
1775
|
super(ms, acc, router);
|
|
1807
|
-
let identity = ts.getJaceIdentity();
|
|
1808
1776
|
if (!acc.Initialized)
|
|
1809
|
-
acc.initializeIdentity(
|
|
1777
|
+
acc.initializeIdentity(ts.getJaceIdentity());
|
|
1810
1778
|
}
|
|
1811
1779
|
}
|
|
1812
|
-
BaseRouterGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1813
|
-
BaseRouterGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1814
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1780
|
+
BaseRouterGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseRouterGuard, deps: [{ token: i5.MessageService }, { token: i5$1.AccessControlService }, { token: i1$1.Router }, { token: TokenService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1781
|
+
BaseRouterGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseRouterGuard });
|
|
1782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseRouterGuard, decorators: [{
|
|
1815
1783
|
type: Injectable
|
|
1816
1784
|
}], ctorParameters: function () { return [{ type: i5.MessageService }, { type: i5$1.AccessControlService }, { type: i1$1.Router }, { type: TokenService }]; } });
|
|
1817
1785
|
|