@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';
|
|
@@ -30,10 +30,9 @@ import { HTTPService } from '@esfaenza/httpservice';
|
|
|
30
30
|
|
|
31
31
|
// Angular
|
|
32
32
|
class TokenService {
|
|
33
|
-
constructor(cs, USE_FAKE_ACCESS_TOKEN
|
|
33
|
+
constructor(cs, USE_FAKE_ACCESS_TOKEN) {
|
|
34
34
|
this.cs = cs;
|
|
35
35
|
this.USE_FAKE_ACCESS_TOKEN = USE_FAKE_ACCESS_TOKEN;
|
|
36
|
-
this.ANONYMOUS_MODE = ANONYMOUS_MODE;
|
|
37
36
|
if (this.USE_FAKE_ACCESS_TOKEN)
|
|
38
37
|
this.accountScope = this.getFakeAccountScope();
|
|
39
38
|
}
|
|
@@ -41,13 +40,9 @@ class TokenService {
|
|
|
41
40
|
this.cs.delete("access_token");
|
|
42
41
|
}
|
|
43
42
|
getAccessToken() {
|
|
44
|
-
if (this.ANONYMOUS_MODE)
|
|
45
|
-
return "";
|
|
46
43
|
return this.USE_FAKE_ACCESS_TOKEN ? this.getFakeToken() : this.cs.get("accessToken");
|
|
47
44
|
}
|
|
48
45
|
getJaceIdentity() {
|
|
49
|
-
if (this.ANONYMOUS_MODE)
|
|
50
|
-
return null;
|
|
51
46
|
let token = this.USE_FAKE_ACCESS_TOKEN ? this.getFakeToken() : this.cs.get("accessToken");
|
|
52
47
|
if (!token)
|
|
53
48
|
return null;
|
|
@@ -1048,9 +1043,9 @@ class TokenService {
|
|
|
1048
1043
|
return accountScope;
|
|
1049
1044
|
}
|
|
1050
1045
|
}
|
|
1051
|
-
TokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1052
|
-
TokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1046
|
+
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 });
|
|
1047
|
+
TokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenService, providedIn: "root" });
|
|
1048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenService, decorators: [{
|
|
1054
1049
|
type: Injectable,
|
|
1055
1050
|
args: [{ providedIn: "root" }]
|
|
1056
1051
|
}], ctorParameters: function () { return [{ type: i1.CookieService }, { type: undefined, decorators: [{
|
|
@@ -1058,11 +1053,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1058
1053
|
}, {
|
|
1059
1054
|
type: Inject,
|
|
1060
1055
|
args: [USE_FAKE_ACCESS_TOKEN]
|
|
1061
|
-
}] }, { type: undefined, decorators: [{
|
|
1062
|
-
type: Optional
|
|
1063
|
-
}, {
|
|
1064
|
-
type: Inject,
|
|
1065
|
-
args: [ANONYMOUS_MODE]
|
|
1066
1056
|
}] }]; } });
|
|
1067
1057
|
|
|
1068
1058
|
// Angular
|
|
@@ -1089,9 +1079,9 @@ class GlobalSearchService {
|
|
|
1089
1079
|
return null;
|
|
1090
1080
|
}
|
|
1091
1081
|
}
|
|
1092
|
-
GlobalSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1093
|
-
GlobalSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1082
|
+
GlobalSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalSearchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1083
|
+
GlobalSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalSearchService });
|
|
1084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalSearchService, decorators: [{
|
|
1095
1085
|
type: Injectable
|
|
1096
1086
|
}] });
|
|
1097
1087
|
|
|
@@ -1126,9 +1116,9 @@ class APPErrorHandler {
|
|
|
1126
1116
|
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, (match, p1) => String.fromCharCode(("0x" + p1))));
|
|
1127
1117
|
}
|
|
1128
1118
|
}
|
|
1129
|
-
APPErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1130
|
-
APPErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1119
|
+
APPErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APPErrorHandler, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1120
|
+
APPErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APPErrorHandler });
|
|
1121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: APPErrorHandler, decorators: [{
|
|
1132
1122
|
type: Injectable
|
|
1133
1123
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1134
1124
|
|
|
@@ -1150,9 +1140,9 @@ class OutZoneEventPlugin {
|
|
|
1150
1140
|
return () => element.removeEventListener(eventOriginalName, standardHandler);
|
|
1151
1141
|
}
|
|
1152
1142
|
}
|
|
1153
|
-
OutZoneEventPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1154
|
-
OutZoneEventPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1143
|
+
OutZoneEventPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutZoneEventPlugin, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1144
|
+
OutZoneEventPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutZoneEventPlugin, providedIn: 'root' });
|
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OutZoneEventPlugin, decorators: [{
|
|
1156
1146
|
type: Injectable,
|
|
1157
1147
|
args: [{ providedIn: 'root' }]
|
|
1158
1148
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -1163,9 +1153,9 @@ class HTTPServiceExtensionsLoc extends LocalizationService {
|
|
|
1163
1153
|
super.set("it->en", "Il Server sembra essere offline, prova a ricaricare la pagina", ["Server seems to be offline, try to reload this page"]);
|
|
1164
1154
|
}
|
|
1165
1155
|
}
|
|
1166
|
-
HTTPServiceExtensionsLoc.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1167
|
-
HTTPServiceExtensionsLoc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1156
|
+
HTTPServiceExtensionsLoc.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensionsLoc, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1157
|
+
HTTPServiceExtensionsLoc.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensionsLoc });
|
|
1158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensionsLoc, decorators: [{
|
|
1169
1159
|
type: Injectable
|
|
1170
1160
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1171
1161
|
|
|
@@ -1175,7 +1165,7 @@ class AppState {
|
|
|
1175
1165
|
this.notifyDataChanged("modules.Retrieved", this._modules);
|
|
1176
1166
|
}
|
|
1177
1167
|
get Modules() { return this._modules; }
|
|
1178
|
-
constructor(router, lc, bts, notifications, MessageDef, intercom, emb
|
|
1168
|
+
constructor(router, lc, bts, notifications, MessageDef, intercom, emb) {
|
|
1179
1169
|
this.router = router;
|
|
1180
1170
|
this.lc = lc;
|
|
1181
1171
|
this.bts = bts;
|
|
@@ -1183,7 +1173,6 @@ class AppState {
|
|
|
1183
1173
|
this.MessageDef = MessageDef;
|
|
1184
1174
|
this.intercom = intercom;
|
|
1185
1175
|
this.emb = emb;
|
|
1186
|
-
this.anonymousMode = anonymousMode;
|
|
1187
1176
|
this.redirectingToLogin = false;
|
|
1188
1177
|
this.handlingError = false;
|
|
1189
1178
|
this.christmasTime = false;
|
|
@@ -1232,8 +1221,7 @@ class AppState {
|
|
|
1232
1221
|
// Se non ho un id mi manca il login, quindi via di qua
|
|
1233
1222
|
var id = this.getJaceIDentity();
|
|
1234
1223
|
if (!id) {
|
|
1235
|
-
|
|
1236
|
-
return "";
|
|
1224
|
+
//TODO: Commentare per la modalità IFRAME
|
|
1237
1225
|
this.router.navigate(["login"]);
|
|
1238
1226
|
return "";
|
|
1239
1227
|
}
|
|
@@ -1278,10 +1266,7 @@ class AppState {
|
|
|
1278
1266
|
}
|
|
1279
1267
|
setupSignalRJobListening() {
|
|
1280
1268
|
this.notifications.observe(this.MessageDef.IN_JobProgressNotification).subscribe((ev) => {
|
|
1281
|
-
var
|
|
1282
|
-
if (!identity)
|
|
1283
|
-
return;
|
|
1284
|
-
var desc = (ev.description || ev.actionid) + " (" + (ev.user || identity.DsUser) + ")";
|
|
1269
|
+
var desc = (ev.description || ev.actionid) + " (" + (ev.user || this.getJaceIDentity().DsUser) + ")";
|
|
1285
1270
|
let job = {
|
|
1286
1271
|
id: ev.instance,
|
|
1287
1272
|
description: desc,
|
|
@@ -1365,15 +1350,12 @@ class AppState {
|
|
|
1365
1350
|
this.headerHeight = height;
|
|
1366
1351
|
}
|
|
1367
1352
|
}
|
|
1368
|
-
AppState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1369
|
-
AppState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1353
|
+
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 });
|
|
1354
|
+
AppState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppState, providedIn: "root" });
|
|
1355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppState, decorators: [{
|
|
1371
1356
|
type: Injectable,
|
|
1372
1357
|
args: [{ providedIn: "root" }]
|
|
1373
|
-
}], 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 }
|
|
1374
|
-
type: Inject,
|
|
1375
|
-
args: [ANONYMOUS_MODE]
|
|
1376
|
-
}] }]; } });
|
|
1358
|
+
}], 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 }]; } });
|
|
1377
1359
|
|
|
1378
1360
|
// Angular
|
|
1379
1361
|
class HTTPServiceExtensions {
|
|
@@ -1449,9 +1431,9 @@ class HTTPServiceExtensions {
|
|
|
1449
1431
|
}
|
|
1450
1432
|
}
|
|
1451
1433
|
}
|
|
1452
|
-
HTTPServiceExtensions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1453
|
-
HTTPServiceExtensions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1434
|
+
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 });
|
|
1435
|
+
HTTPServiceExtensions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensions });
|
|
1436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HTTPServiceExtensions, decorators: [{
|
|
1455
1437
|
type: Injectable
|
|
1456
1438
|
}], ctorParameters: function () { return [{ type: i1$2.LocalizationService }, { type: TokenService }, { type: AppState }, { type: i1$1.Router }, { type: i5$1.AccessControlService }, { type: i5.MessageService }]; } });
|
|
1457
1439
|
|
|
@@ -1467,9 +1449,9 @@ class MenuFilteringService {
|
|
|
1467
1449
|
return of(rawMenus);
|
|
1468
1450
|
}
|
|
1469
1451
|
}
|
|
1470
|
-
MenuFilteringService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1471
|
-
MenuFilteringService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1452
|
+
MenuFilteringService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuFilteringService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1453
|
+
MenuFilteringService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuFilteringService });
|
|
1454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuFilteringService, decorators: [{
|
|
1473
1455
|
type: Injectable
|
|
1474
1456
|
}] });
|
|
1475
1457
|
|
|
@@ -1483,18 +1465,17 @@ class CompletedJobRedirectionService {
|
|
|
1483
1465
|
redirect(completedJob) {
|
|
1484
1466
|
}
|
|
1485
1467
|
}
|
|
1486
|
-
CompletedJobRedirectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1487
|
-
CompletedJobRedirectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1468
|
+
CompletedJobRedirectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CompletedJobRedirectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1469
|
+
CompletedJobRedirectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CompletedJobRedirectionService });
|
|
1470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CompletedJobRedirectionService, decorators: [{
|
|
1489
1471
|
type: Injectable
|
|
1490
1472
|
}] });
|
|
1491
1473
|
|
|
1492
1474
|
// Angular
|
|
1493
1475
|
class SessionRetriever {
|
|
1494
|
-
constructor(bts, router
|
|
1476
|
+
constructor(bts, router) {
|
|
1495
1477
|
this.bts = bts;
|
|
1496
1478
|
this.router = router;
|
|
1497
|
-
this.anonymousMode = anonymousMode;
|
|
1498
1479
|
}
|
|
1499
1480
|
/** Tenant§Account§User§ModuleId */
|
|
1500
1481
|
getSessionKey() {
|
|
@@ -1503,8 +1484,6 @@ class SessionRetriever {
|
|
|
1503
1484
|
// Se non ho un id mi manca il login, quindi via di qua
|
|
1504
1485
|
var id = this.bts.getJaceIdentity();
|
|
1505
1486
|
if (!id) {
|
|
1506
|
-
if (this.anonymousMode)
|
|
1507
|
-
return "";
|
|
1508
1487
|
console.log("SessionRetriever - no identity, redirecting to login");
|
|
1509
1488
|
this.router.navigate(["login"]);
|
|
1510
1489
|
return "";
|
|
@@ -1513,15 +1492,12 @@ class SessionRetriever {
|
|
|
1513
1492
|
return this.SessionIdentity;
|
|
1514
1493
|
}
|
|
1515
1494
|
}
|
|
1516
|
-
SessionRetriever.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1517
|
-
SessionRetriever.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1518
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1495
|
+
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 });
|
|
1496
|
+
SessionRetriever.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, providedIn: "root" });
|
|
1497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, decorators: [{
|
|
1519
1498
|
type: Injectable,
|
|
1520
1499
|
args: [{ providedIn: "root" }]
|
|
1521
|
-
}], ctorParameters: function () { return [{ type: TokenService }, { type: i1$1.Router }
|
|
1522
|
-
type: Inject,
|
|
1523
|
-
args: [ANONYMOUS_MODE]
|
|
1524
|
-
}] }]; } });
|
|
1500
|
+
}], ctorParameters: function () { return [{ type: TokenService }, { type: i1$1.Router }]; } });
|
|
1525
1501
|
|
|
1526
1502
|
// Angular
|
|
1527
1503
|
// Chiamate ai Repository
|
|
@@ -1599,9 +1575,9 @@ class ApplicationCachePersistor extends CachePersistor {
|
|
|
1599
1575
|
return `${this.getItemsUrl(sessionKey)}/${itemKey}`;
|
|
1600
1576
|
}
|
|
1601
1577
|
}
|
|
1602
|
-
ApplicationCachePersistor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1603
|
-
ApplicationCachePersistor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1578
|
+
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 });
|
|
1579
|
+
ApplicationCachePersistor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationCachePersistor });
|
|
1580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationCachePersistor, decorators: [{
|
|
1605
1581
|
type: Injectable
|
|
1606
1582
|
}], ctorParameters: function () { return [{ type: i1$2.LocalizationService }, { type: i2.HttpClient }, { type: TokenService }, { type: i4$1.BaseSessionRetriever }]; } });
|
|
1607
1583
|
|
|
@@ -1681,9 +1657,9 @@ class ApplicationPreferencesPersistor extends PreferencesPersistor {
|
|
|
1681
1657
|
return `${this.getItemsUrl(sessionKey)}/${itemKey}`;
|
|
1682
1658
|
}
|
|
1683
1659
|
}
|
|
1684
|
-
ApplicationPreferencesPersistor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1685
|
-
ApplicationPreferencesPersistor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1660
|
+
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 });
|
|
1661
|
+
ApplicationPreferencesPersistor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationPreferencesPersistor });
|
|
1662
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApplicationPreferencesPersistor, decorators: [{
|
|
1687
1663
|
type: Injectable
|
|
1688
1664
|
}], ctorParameters: function () { return [{ type: i1$2.LocalizationService }, { type: i2.HttpClient }, { type: TokenService }, { type: i4$1.BaseSessionRetriever }]; } });
|
|
1689
1665
|
|
|
@@ -1703,11 +1679,8 @@ class UserPreferencesService {
|
|
|
1703
1679
|
this.http = this.injector.get(HTTPService);
|
|
1704
1680
|
this.msgExts = this.injector.get(MessageService);
|
|
1705
1681
|
this.fakeToken = this.injector.get(USE_FAKE_ACCESS_TOKEN) || false;
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
this.AccountId = identity.IdAccount.toString();
|
|
1709
|
-
this.doReloadProfilePicture();
|
|
1710
|
-
}
|
|
1682
|
+
this.AccountId = tks.getJaceIdentity().IdAccount.toString();
|
|
1683
|
+
this.doReloadProfilePicture();
|
|
1711
1684
|
}
|
|
1712
1685
|
async getAccountProfile() {
|
|
1713
1686
|
let pars = new HttpParams().set("idAccount", this.AccountId);
|
|
@@ -1771,9 +1744,9 @@ class UserPreferencesService {
|
|
|
1771
1744
|
return cr;
|
|
1772
1745
|
}
|
|
1773
1746
|
}
|
|
1774
|
-
UserPreferencesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1775
|
-
UserPreferencesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1747
|
+
UserPreferencesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserPreferencesService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1748
|
+
UserPreferencesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserPreferencesService });
|
|
1749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserPreferencesService, decorators: [{
|
|
1777
1750
|
type: Injectable
|
|
1778
1751
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1779
1752
|
|
|
@@ -1781,14 +1754,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1781
1754
|
class BaseRouterGuard extends AccessControlRouteGuard {
|
|
1782
1755
|
constructor(ms, acc, router, ts) {
|
|
1783
1756
|
super(ms, acc, router);
|
|
1784
|
-
let identity = ts.getJaceIdentity();
|
|
1785
1757
|
if (!acc.Initialized)
|
|
1786
|
-
acc.initializeIdentity(
|
|
1758
|
+
acc.initializeIdentity(ts.getJaceIdentity());
|
|
1787
1759
|
}
|
|
1788
1760
|
}
|
|
1789
|
-
BaseRouterGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1790
|
-
BaseRouterGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1791
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1761
|
+
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 });
|
|
1762
|
+
BaseRouterGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseRouterGuard });
|
|
1763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseRouterGuard, decorators: [{
|
|
1792
1764
|
type: Injectable
|
|
1793
1765
|
}], ctorParameters: function () { return [{ type: i5.MessageService }, { type: i5$1.AccessControlService }, { type: i1$1.Router }, { type: TokenService }]; } });
|
|
1794
1766
|
|