@esfaenza/core 15.2.276 → 15.2.278
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/error/404/pagenotfound.component.mjs +7 -13
- package/esm2020/components/error/500/servererror.component.mjs +7 -13
- package/esm2020/components/error/Angular/angularerror.component.mjs +7 -13
- package/esm2020/components/external-page/external_pages.component.mjs +2 -2
- package/esm2020/components/navbar/navbar.component.mjs +6 -10
- package/esm2020/components/user_infos/user_infos.component.mjs +4 -6
- package/esm2020/domain/tokens.mjs +1 -3
- package/esm2020/lib/app.component.mjs +8 -12
- package/esm2020/lib/core.module.mjs +4 -21
- package/esm2020/services/classes/app.accesstoken.mjs +4 -14
- package/esm2020/services/classes/app.routeguard.mjs +2 -3
- package/esm2020/services/classes/app.session.mjs +5 -13
- package/esm2020/services/classes/app.state.mjs +12 -19
- package/esm2020/services/classes/preferences/user/app.userpreferences.base.mjs +3 -6
- package/fesm2015/esfaenza-core-components.mjs +25 -51
- package/fesm2015/esfaenza-core-components.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-services.mjs +19 -48
- package/fesm2015/esfaenza-core-services.mjs.map +1 -1
- package/fesm2015/esfaenza-core.mjs +12 -34
- package/fesm2015/esfaenza-core.mjs.map +1 -1
- package/fesm2020/esfaenza-core-components.mjs +25 -45
- package/fesm2020/esfaenza-core-components.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-services.mjs +19 -44
- package/fesm2020/esfaenza-core-services.mjs.map +1 -1
- package/fesm2020/esfaenza-core.mjs +12 -32
- 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 +5 -5
- 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
|
@@ -187,8 +187,6 @@ const MENU_LOCALIZATION = new InjectionToken('MENU_LOCALIZATION');
|
|
|
187
187
|
const MENU = new InjectionToken('MENU');
|
|
188
188
|
/** Token che indica se il servizio di autenticazione deve utilizzare un token finto */
|
|
189
189
|
const USE_FAKE_ACCESS_TOKEN = new InjectionToken('USE_FAKE_ACCESS_TOKEN');
|
|
190
|
-
/** Token che indica se il servizio di autenticazione deve funzionare in anonimo lato Frontend. Dev'essere utilizzato insieme al tag "Auth" in code behind */
|
|
191
|
-
const ANONYMOUS_MODE = new InjectionToken('USE_FAKE_ACCESS_TOKEN');
|
|
192
190
|
/** Token che indica i componenti di estensione da aggiungere alla navbar. Verranno bootstrappati in maniera dinamica */
|
|
193
191
|
const NAVBAR_EXTENSIONS = new InjectionToken('NAVBAR_EXTENSIONS');
|
|
194
192
|
/** Token che identifica se utilizzare la versione vecchia dell'url di auth (${myconfig.AUTH_URL}/login/form?client=${myconfig.CLIENT_NAME}) invece che la nuova (${myconfig.AUTH_URL}/login;client=${myconfig.CLIENT_NAME}) */
|
|
@@ -198,5 +196,5 @@ const LOGIN_URL_LEGACY = new InjectionToken('LOGIN_URL_LEGACY');
|
|
|
198
196
|
* Generated bundle index. Do not edit.
|
|
199
197
|
*/
|
|
200
198
|
|
|
201
|
-
export {
|
|
199
|
+
export { AccountScope, ActiveModuleView, ApplicationJob, ApplicationMenu, CategoriesWithModules, EMBEDDED_ROUTE, EnvOptions, GenericItem, JaceAccount, JaceIdentity, JaceModule, JacePermission, JaceRole, JaceUser, KeyValue, LOGIN_URL_LEGACY, MENU, MENU_LOCALIZATION, NAVBAR_EXTENSIONS, REDIRECT_MAP, ROUTE, SearchResult, SearchResultContainer, USE_FAKE_ACCESS_TOKEN, UpdateAccountRecoverySettingsDto, UpdatePasswordDto, UpdateProfilePictureDto, UserAccount };
|
|
202
200
|
//# sourceMappingURL=esfaenza-core-domain.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esfaenza-core-domain.mjs","sources":["../../../projects/core/domain/src/models/core/ApplicationMenu.ts","../../../projects/core/domain/src/models/core/ApplicationJob.ts","../../../projects/core/domain/src/models/core/EnvOptions.ts","../../../projects/core/domain/src/models/core/KeyValue.ts","../../../projects/core/domain/src/models/core/GenericItem.ts","../../../projects/core/domain/src/models/core/ApplicationRoutes.ts","../../../projects/core/domain/src/models/jace/CategoriesWithModules.ts","../../../projects/core/domain/src/models/jace/AccountScope.ts","../../../projects/core/domain/src/models/jace/ActiveModuleView.ts","../../../projects/core/domain/src/models/jace/JaceAccount.ts","../../../projects/core/domain/src/models/jace/JaceIdentity.ts","../../../projects/core/domain/src/models/jace/JaceModule.ts","../../../projects/core/domain/src/models/jace/JacePermission.ts","../../../projects/core/domain/src/models/jace/JaceRole.ts","../../../projects/core/domain/src/models/jace/JaceUser.ts","../../../projects/core/domain/src/models/global_search/SaerchResultContainer.ts","../../../projects/core/domain/src/models/global_search/SearchResult.ts","../../../projects/core/domain/src/models/user/UpdateAccountRecoverySettingsDto.ts","../../../projects/core/domain/src/models/user/UpdatePasswordDto.ts","../../../projects/core/domain/src/models/user/UpdateProfilePictureDto.ts","../../../projects/core/domain/src/models/user/UserAccount.ts","../../../projects/core/domain/src/tokens.ts","../../../projects/core/domain/src/esfaenza-core-domain.ts"],"sourcesContent":["export class ApplicationMenu {\r\n constructor(\r\n public title: string,\r\n public link?: string,\r\n public routerLink?: string,\r\n public icon?: string,\r\n public ac?: string,\r\n public wip?: boolean,\r\n public subMenu?: ApplicationMenu[],\r\n public queryParams?: {}) { }\r\n\r\n static Group(title: string, icon: string, ac: string, wip: boolean, subMenu: ApplicationMenu[], queryParams?: any): ApplicationMenu {\r\n return new ApplicationMenu(title, null, null, icon, ac, wip, subMenu, queryParams);\r\n }\r\n\r\n static TopItem(title: string, icon: string, routerLink?: string, ac?: string, queryParams?: any, wip?: boolean): ApplicationMenu {\r\n return new ApplicationMenu(title, null, routerLink, icon, ac, wip, null, queryParams);\r\n }\r\n\r\n static Item(title: string, routerLink?: string, ac?: string, queryParams?: any, wip?: boolean): ApplicationMenu {\r\n return new ApplicationMenu(title, null, routerLink, null, ac, !routerLink && !ac && !queryParams ? true : wip, null, queryParams);\r\n }\r\n\r\n static Link(title: string, link?: string) {\r\n return new ApplicationMenu(title, link);\r\n }\r\n\r\n static ignoreStorage: any = { ignoreStorage: true };\r\n}\r\n","import { ReportParam } from \"@esfaenza/es-table\";\r\n\r\nexport class ApplicationJob {\r\n id: string;\r\n description: string;\r\n smalldescription: string;\r\n percentage: number;\r\n completed: boolean;\r\n fileid: string;\r\n reportid: string;\r\n complexreportid: string;\r\n reportpars: ReportParam[];\r\n}","export class EnvOptions {\r\n constructor(moduleId: string, moduleDef: number, env: string, varsion: string, description: string) {\r\n this.AppData = {\r\n ModuleDefId: moduleDef,\r\n ModuleId: moduleId,\r\n ComponentEnvironment: env,\r\n ComponentVersion: varsion,\r\n ModuleDescription: description\r\n }\r\n }\r\n\r\n //Proprietà di configurazione\r\n AppData: { ModuleId: string, ModuleDefId: number, ComponentEnvironment: string, ComponentVersion: string, ModuleDescription: string };\r\n AuthUrl?: string;\r\n Client?: string;\r\n JaceDashboardUrl?: string;\r\n TransactionTimeoutSeconds: number;\r\n\r\n //Proprietà di sistema\r\n redirectInProgress?: boolean;\r\n};","import { Export } from \"@esfaenza/extensions\";\r\n\r\nexport class KeyValue {\r\n constructor(id: string, description: string) {\r\n this.id = id;\r\n this.description = description;\r\n }\r\n @Export(10, \"Cod.\") id: string;\r\n @Export(20, \"Descrizione\") description: string;\r\n}","/** Rappresentazione di un oggetto generico */\r\nexport class GenericItem {\r\n /**\r\n * Costruttore \r\n * \r\n * @param properties Dizionario Chiave - Valore delle proprietà di questo oggetto generico\r\n */\r\n constructor(public properties: Record<string, string>) { }\r\n}\r\n","export const EMBEDDED_ROUTE: string = \"pages_ext\";\r\nexport const ROUTE: string = \"pages\";","import { ActiveModuleView } from \"./ActiveModuleView\";\r\n\r\n\r\nexport class CategoriesWithModules {\r\n constructor(module: ActiveModuleView) {\r\n this.category = module?.category?.toUpperCase();\r\n this.module_rows = [[module]];\r\n }\r\n category: string;\r\n module_rows: ActiveModuleView[][];\r\n}\r\n","import { JaceModule } from \"./JaceModule\";\r\nimport { JacePermission } from \"./JacePermission\";\r\nimport { JaceRole } from \"./JaceRole\";\r\n\r\nexport class AccountScope {\r\n constructor(public modules: JaceModule[] = [], public roles: JaceRole[] = [], public permissions: JacePermission[] = []) { }\r\n}","export class ActiveModuleView {\r\n constructor(public name: string) { }\r\n idmodule: number;\r\n altname: string;\r\n category: string;\r\n tenant: string;\r\n uiurl: string;\r\n environment: string;\r\n href: string;\r\n}","export class JaceAccount {\r\n idaccount: number;\r\n iduser: number;\r\n idtenant: string;\r\n dsusername: string;\r\n dspassword: string;\r\n dtvalidfrom: Date;\r\n dtvalidto: Date;\r\n sydatains: Date;\r\n sydataupd: Date;\r\n dtlockdown: Date;\r\n syuserupd: string;\r\n syuserins: string;\r\n dsreasonlockdown: string;\r\n cnattempts: number;\r\n\r\n //Solo UI\r\n description: string;\r\n}","import { AccountScope } from \"./AccountScope\";\r\n\r\nexport class JaceIdentity {\r\n Expired: boolean;\r\n IdAccount: number;\r\n IdUser: number;\r\n DsUser: string;\r\n FullName: string;\r\n Idtenant: string;\r\n TenantName: string;\r\n IdActor: number;\r\n IdActorRole: number;\r\n ExpirationTime: Date;\r\n\r\n constructor(scope: AccountScope = null) {\r\n this.Roles = [];\r\n this.Modules = [];\r\n this.Permissions = [];\r\n if (scope) {\r\n // Doppio parametro per gestione del nuovo AUTH.\r\n // TODO: Rimuovere quando non serve\r\n this.Roles = scope.roles.map(x=> x.idrolealt || x.roleidalt);\r\n this.Permissions = scope.permissions.map(x=> x.idpermissionalt || x.permissionidalt);\r\n this.Modules = scope.modules.map(x=> x.idmodule || x.moduleid);\r\n }\r\n }\r\n Roles: string[];\r\n Modules: number[];\r\n Permissions: string[];\r\n}\r\n","export class JaceModule {\r\n constructor(\r\n public idmodule: number,\r\n public dsname?: string,\r\n public dscategory?: string,\r\n public idmodulealt?: string\r\n ) {\r\n this.moduleid = idmodule;\r\n }\r\n\r\n // Nouvo Auth\r\n moduleid?: number;\r\n}\r\n","export class JacePermission {\r\n idpermission: number;\r\n dspermission?: string;\r\n idpermissionalt?: string;\r\n sydatains?: Date;\r\n syuserins?: string;\r\n sydataupd?: Date;\r\n syuserupd?: string;\r\n\r\n // Nuovo Auth\r\n permissionidalt?: string;\r\n}\r\n","export class JaceRole\r\n{\r\n constructor(public idrole: number, public idrolealt: string, public dsrole: string) {\r\n this.roleidalt = idrolealt;\r\n }\r\n\r\n dsnote?: string;\r\n idparent?: number;\r\n sydatains?: Date;\r\n syuserins?: string;\r\n sydataupd?: Date;\r\n syuserupd?: string;\r\n\r\n // Nuovo AUTH\r\n roleidalt?: string;\r\n}","\r\nexport class JaceUser {\r\n iduser: number;\r\n dsnome: string;\r\n dscognome: string;\r\n sydatains: Date;\r\n syuserins: string;\r\n sydataupd: Date;\r\n syuserupd: string;\r\n}\r\n","import { SearchResult } from \"./SearchResult\";\r\n\r\nexport class SearchResultContainer {\r\n constructor(public results: SearchResult[]) { }\r\n}","import { GenericItem } from \"../core/GenericItem\";\r\nimport { KeyValue } from \"../core/KeyValue\";\r\nimport { EsTableColumnsDefinition } from \"@esfaenza/es-table\";\r\n\r\nexport class SearchResult {\r\n\r\n constructor(\r\n public description: string,\r\n public columns: KeyValue[],\r\n public items: GenericItem[]\r\n ) { }\r\n\r\n // Solo UI per la visualizzazione dei risultati\r\n est_cols: EsTableColumnsDefinition[];\r\n}\r\n","export class UpdateAccountRecoverySettingsDto {\r\n constructor(public accountid?: string, public email?: string) { }\r\n}","export class UpdatePasswordDto {\r\n constructor(\r\n public accountid?: string,\r\n public oldpwd?: string,\r\n public newpwd?: string,\r\n public confirmpwd?: string,\r\n public changeall: boolean = true,\r\n public changeforexternals: boolean = true) { }\r\n}","export class UpdateProfilePictureDto {\r\n constructor(public accountid?: string) { }\r\n}","export class UserAccount {\r\n id: string;\r\n tenantid: string;\r\n username: string;\r\n typeid: string;\r\n type: string;\r\n dtvalidfrom: Date;\r\n dtvalidto: Date;\r\n dtlock: Date;\r\n lockreason: string;\r\n userid: string;\r\n userdescription: string;\r\n uuid: string;\r\n firstname: string;\r\n lastname: string;\r\n recoveryemail: string;\r\n recoveryphone: string;\r\n dtottexpiration: Date;\r\n dtlastlogin: Date;\r\n lastloginattempts: number;\r\n islocked: boolean;\r\n isvalid: boolean;\r\n}","// Angular\r\nimport { InjectionToken, Type } from \"@angular/core\";\r\n\r\n// Configurazioni\r\nimport { LocalizationService } from \"@esfaenza/localizations\";\r\n\r\n// Applicazione\r\nimport { ApplicationMenu } from \"./models/core/ApplicationMenu\";\r\n\r\n/** Token che indica i default da assegnare agli Input */\r\nexport const REDIRECT_MAP: InjectionToken<{ [index: string]: { url: string, params: string[] } }> = new InjectionToken<{ [index: string]: { url: string, params: string[] } }>('REDIRECT_MAP');\r\n\r\n/** Token che indica il servizio di localizzazione utilizzato per i menù */\r\nexport const MENU_LOCALIZATION: InjectionToken<Type<LocalizationService>> = new InjectionToken<Type<LocalizationService>>('MENU_LOCALIZATION');\r\n\r\n/** Token che indica i menù dell'applicazione, da quello vegano fino a quello celiaco */\r\nexport const MENU: InjectionToken<ApplicationMenu[]> = new InjectionToken<ApplicationMenu[]>('MENU');\r\n\r\n/** Token che indica se il servizio di autenticazione deve utilizzare un token finto */\r\nexport const USE_FAKE_ACCESS_TOKEN: InjectionToken<boolean> = new InjectionToken<boolean>('USE_FAKE_ACCESS_TOKEN');\r\n\r\n/** Token che indica se il servizio di autenticazione deve funzionare in anonimo lato Frontend. Dev'essere utilizzato insieme al tag \"Auth\" in code behind */\r\nexport const ANONYMOUS_MODE: InjectionToken<boolean> = new InjectionToken<boolean>('USE_FAKE_ACCESS_TOKEN');\r\n\r\n/** Token che indica i componenti di estensione da aggiungere alla navbar. Verranno bootstrappati in maniera dinamica */\r\nexport const NAVBAR_EXTENSIONS: InjectionToken<Type<any>[]> = new InjectionToken<Type<any>[]>('NAVBAR_EXTENSIONS');\r\n\r\n/** Token che identifica se utilizzare la versione vecchia dell'url di auth (${myconfig.AUTH_URL}/login/form?client=${myconfig.CLIENT_NAME}) invece che la nuova (${myconfig.AUTH_URL}/login;client=${myconfig.CLIENT_NAME}) */\r\nexport const LOGIN_URL_LEGACY: InjectionToken<boolean> = new InjectionToken<boolean>('LOGIN_URL_LEGACY');","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAAa,eAAe,CAAA;AACxB,IAAA,WAAA,CACW,KAAa,EACb,IAAa,EACb,UAAmB,EACnB,IAAa,EACb,EAAW,EACX,GAAa,EACb,OAA2B,EAC3B,WAAgB,EAAA;AAPhB,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;AACb,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAS;AACb,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAS;AACnB,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAS;AACb,QAAA,IAAE,CAAA,EAAA,GAAF,EAAE,CAAS;AACX,QAAA,IAAG,CAAA,GAAA,GAAH,GAAG,CAAU;AACb,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAoB;AAC3B,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAK;KAAK;AAEhC,IAAA,OAAO,KAAK,CAAC,KAAa,EAAE,IAAY,EAAE,EAAU,EAAE,GAAY,EAAE,OAA0B,EAAE,WAAiB,EAAA;AAC7G,QAAA,OAAO,IAAI,eAAe,CAAC,KAAK,EAA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AACzB,QAAA,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAgB;KAAK;AACrD;;MCRY,uBAAuB,CAAA;AAChC,IAAA,WAAA,CAAmB,SAAkB,EAAA;AAAlB,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAS;KAAK;AAC7C;;MCFY,WAAW,CAAA;AAsBvB;;ACtBD;AASA;MACa,YAAY,GAA2E,IAAI,cAAc,CAAyD,cAAc,EAAE;AAE/L;MACa,iBAAiB,GAA8C,IAAI,cAAc,CAA4B,mBAAmB,EAAE;AAE/I;MACa,IAAI,GAAsC,IAAI,cAAc,CAAoB,MAAM,EAAE;AAErG;MACa,qBAAqB,GAA4B,IAAI,cAAc,CAAU,uBAAuB,EAAE;AAEnH;MACa,cAAc,GAA4B,IAAI,cAAc,CAAU,uBAAuB,EAAE;AAE5G;MACa,iBAAiB,GAAgC,IAAI,cAAc,CAAc,mBAAmB,EAAE;AAEnH;MACa,gBAAgB,GAA4B,IAAI,cAAc,CAAU,kBAAkB;;AC5BvG;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"esfaenza-core-domain.mjs","sources":["../../../projects/core/domain/src/models/core/ApplicationMenu.ts","../../../projects/core/domain/src/models/core/ApplicationJob.ts","../../../projects/core/domain/src/models/core/EnvOptions.ts","../../../projects/core/domain/src/models/core/KeyValue.ts","../../../projects/core/domain/src/models/core/GenericItem.ts","../../../projects/core/domain/src/models/core/ApplicationRoutes.ts","../../../projects/core/domain/src/models/jace/CategoriesWithModules.ts","../../../projects/core/domain/src/models/jace/AccountScope.ts","../../../projects/core/domain/src/models/jace/ActiveModuleView.ts","../../../projects/core/domain/src/models/jace/JaceAccount.ts","../../../projects/core/domain/src/models/jace/JaceIdentity.ts","../../../projects/core/domain/src/models/jace/JaceModule.ts","../../../projects/core/domain/src/models/jace/JacePermission.ts","../../../projects/core/domain/src/models/jace/JaceRole.ts","../../../projects/core/domain/src/models/jace/JaceUser.ts","../../../projects/core/domain/src/models/global_search/SaerchResultContainer.ts","../../../projects/core/domain/src/models/global_search/SearchResult.ts","../../../projects/core/domain/src/models/user/UpdateAccountRecoverySettingsDto.ts","../../../projects/core/domain/src/models/user/UpdatePasswordDto.ts","../../../projects/core/domain/src/models/user/UpdateProfilePictureDto.ts","../../../projects/core/domain/src/models/user/UserAccount.ts","../../../projects/core/domain/src/tokens.ts","../../../projects/core/domain/src/esfaenza-core-domain.ts"],"sourcesContent":["export class ApplicationMenu {\r\n constructor(\r\n public title: string,\r\n public link?: string,\r\n public routerLink?: string,\r\n public icon?: string,\r\n public ac?: string,\r\n public wip?: boolean,\r\n public subMenu?: ApplicationMenu[],\r\n public queryParams?: {}) { }\r\n\r\n static Group(title: string, icon: string, ac: string, wip: boolean, subMenu: ApplicationMenu[], queryParams?: any): ApplicationMenu {\r\n return new ApplicationMenu(title, null, null, icon, ac, wip, subMenu, queryParams);\r\n }\r\n\r\n static TopItem(title: string, icon: string, routerLink?: string, ac?: string, queryParams?: any, wip?: boolean): ApplicationMenu {\r\n return new ApplicationMenu(title, null, routerLink, icon, ac, wip, null, queryParams);\r\n }\r\n\r\n static Item(title: string, routerLink?: string, ac?: string, queryParams?: any, wip?: boolean): ApplicationMenu {\r\n return new ApplicationMenu(title, null, routerLink, null, ac, !routerLink && !ac && !queryParams ? true : wip, null, queryParams);\r\n }\r\n\r\n static Link(title: string, link?: string) {\r\n return new ApplicationMenu(title, link);\r\n }\r\n\r\n static ignoreStorage: any = { ignoreStorage: true };\r\n}\r\n","import { ReportParam } from \"@esfaenza/es-table\";\r\n\r\nexport class ApplicationJob {\r\n id: string;\r\n description: string;\r\n smalldescription: string;\r\n percentage: number;\r\n completed: boolean;\r\n fileid: string;\r\n reportid: string;\r\n complexreportid: string;\r\n reportpars: ReportParam[];\r\n}","export class EnvOptions {\r\n constructor(moduleId: string, moduleDef: number, env: string, varsion: string, description: string) {\r\n this.AppData = {\r\n ModuleDefId: moduleDef,\r\n ModuleId: moduleId,\r\n ComponentEnvironment: env,\r\n ComponentVersion: varsion,\r\n ModuleDescription: description\r\n }\r\n }\r\n\r\n //Proprietà di configurazione\r\n AppData: { ModuleId: string, ModuleDefId: number, ComponentEnvironment: string, ComponentVersion: string, ModuleDescription: string };\r\n AuthUrl?: string;\r\n Client?: string;\r\n JaceDashboardUrl?: string;\r\n TransactionTimeoutSeconds: number;\r\n\r\n //Proprietà di sistema\r\n redirectInProgress?: boolean;\r\n};","import { Export } from \"@esfaenza/extensions\";\r\n\r\nexport class KeyValue {\r\n constructor(id: string, description: string) {\r\n this.id = id;\r\n this.description = description;\r\n }\r\n @Export(10, \"Cod.\") id: string;\r\n @Export(20, \"Descrizione\") description: string;\r\n}","/** Rappresentazione di un oggetto generico */\r\nexport class GenericItem {\r\n /**\r\n * Costruttore \r\n * \r\n * @param properties Dizionario Chiave - Valore delle proprietà di questo oggetto generico\r\n */\r\n constructor(public properties: Record<string, string>) { }\r\n}\r\n","export const EMBEDDED_ROUTE: string = \"pages_ext\";\r\nexport const ROUTE: string = \"pages\";","import { ActiveModuleView } from \"./ActiveModuleView\";\r\n\r\n\r\nexport class CategoriesWithModules {\r\n constructor(module: ActiveModuleView) {\r\n this.category = module?.category?.toUpperCase();\r\n this.module_rows = [[module]];\r\n }\r\n category: string;\r\n module_rows: ActiveModuleView[][];\r\n}\r\n","import { JaceModule } from \"./JaceModule\";\r\nimport { JacePermission } from \"./JacePermission\";\r\nimport { JaceRole } from \"./JaceRole\";\r\n\r\nexport class AccountScope {\r\n constructor(public modules: JaceModule[] = [], public roles: JaceRole[] = [], public permissions: JacePermission[] = []) { }\r\n}","export class ActiveModuleView {\r\n constructor(public name: string) { }\r\n idmodule: number;\r\n altname: string;\r\n category: string;\r\n tenant: string;\r\n uiurl: string;\r\n environment: string;\r\n href: string;\r\n}","export class JaceAccount {\r\n idaccount: number;\r\n iduser: number;\r\n idtenant: string;\r\n dsusername: string;\r\n dspassword: string;\r\n dtvalidfrom: Date;\r\n dtvalidto: Date;\r\n sydatains: Date;\r\n sydataupd: Date;\r\n dtlockdown: Date;\r\n syuserupd: string;\r\n syuserins: string;\r\n dsreasonlockdown: string;\r\n cnattempts: number;\r\n\r\n //Solo UI\r\n description: string;\r\n}","import { AccountScope } from \"./AccountScope\";\r\n\r\nexport class JaceIdentity {\r\n Expired: boolean;\r\n IdAccount: number;\r\n IdUser: number;\r\n DsUser: string;\r\n FullName: string;\r\n Idtenant: string;\r\n TenantName: string;\r\n IdActor: number;\r\n IdActorRole: number;\r\n ExpirationTime: Date;\r\n\r\n constructor(scope: AccountScope = null) {\r\n this.Roles = [];\r\n this.Modules = [];\r\n this.Permissions = [];\r\n if (scope) {\r\n // Doppio parametro per gestione del nuovo AUTH.\r\n // TODO: Rimuovere quando non serve\r\n this.Roles = scope.roles.map(x=> x.idrolealt || x.roleidalt);\r\n this.Permissions = scope.permissions.map(x=> x.idpermissionalt || x.permissionidalt);\r\n this.Modules = scope.modules.map(x=> x.idmodule || x.moduleid);\r\n }\r\n }\r\n Roles: string[];\r\n Modules: number[];\r\n Permissions: string[];\r\n}\r\n","export class JaceModule {\r\n constructor(\r\n public idmodule: number,\r\n public dsname?: string,\r\n public dscategory?: string,\r\n public idmodulealt?: string\r\n ) {\r\n this.moduleid = idmodule;\r\n }\r\n\r\n // Nouvo Auth\r\n moduleid?: number;\r\n}\r\n","export class JacePermission {\r\n idpermission: number;\r\n dspermission?: string;\r\n idpermissionalt?: string;\r\n sydatains?: Date;\r\n syuserins?: string;\r\n sydataupd?: Date;\r\n syuserupd?: string;\r\n\r\n // Nuovo Auth\r\n permissionidalt?: string;\r\n}\r\n","export class JaceRole\r\n{\r\n constructor(public idrole: number, public idrolealt: string, public dsrole: string) {\r\n this.roleidalt = idrolealt;\r\n }\r\n\r\n dsnote?: string;\r\n idparent?: number;\r\n sydatains?: Date;\r\n syuserins?: string;\r\n sydataupd?: Date;\r\n syuserupd?: string;\r\n\r\n // Nuovo AUTH\r\n roleidalt?: string;\r\n}","\r\nexport class JaceUser {\r\n iduser: number;\r\n dsnome: string;\r\n dscognome: string;\r\n sydatains: Date;\r\n syuserins: string;\r\n sydataupd: Date;\r\n syuserupd: string;\r\n}\r\n","import { SearchResult } from \"./SearchResult\";\r\n\r\nexport class SearchResultContainer {\r\n constructor(public results: SearchResult[]) { }\r\n}","import { GenericItem } from \"../core/GenericItem\";\r\nimport { KeyValue } from \"../core/KeyValue\";\r\nimport { EsTableColumnsDefinition } from \"@esfaenza/es-table\";\r\n\r\nexport class SearchResult {\r\n\r\n constructor(\r\n public description: string,\r\n public columns: KeyValue[],\r\n public items: GenericItem[]\r\n ) { }\r\n\r\n // Solo UI per la visualizzazione dei risultati\r\n est_cols: EsTableColumnsDefinition[];\r\n}\r\n","export class UpdateAccountRecoverySettingsDto {\r\n constructor(public accountid?: string, public email?: string) { }\r\n}","export class UpdatePasswordDto {\r\n constructor(\r\n public accountid?: string,\r\n public oldpwd?: string,\r\n public newpwd?: string,\r\n public confirmpwd?: string,\r\n public changeall: boolean = true,\r\n public changeforexternals: boolean = true) { }\r\n}","export class UpdateProfilePictureDto {\r\n constructor(public accountid?: string) { }\r\n}","export class UserAccount {\r\n id: string;\r\n tenantid: string;\r\n username: string;\r\n typeid: string;\r\n type: string;\r\n dtvalidfrom: Date;\r\n dtvalidto: Date;\r\n dtlock: Date;\r\n lockreason: string;\r\n userid: string;\r\n userdescription: string;\r\n uuid: string;\r\n firstname: string;\r\n lastname: string;\r\n recoveryemail: string;\r\n recoveryphone: string;\r\n dtottexpiration: Date;\r\n dtlastlogin: Date;\r\n lastloginattempts: number;\r\n islocked: boolean;\r\n isvalid: boolean;\r\n}","// Angular\r\nimport { InjectionToken, Type } from \"@angular/core\";\r\n\r\n// Configurazioni\r\nimport { LocalizationService } from \"@esfaenza/localizations\";\r\n\r\n// Applicazione\r\nimport { ApplicationMenu } from \"./models/core/ApplicationMenu\";\r\n\r\n/** Token che indica i default da assegnare agli Input */\r\nexport const REDIRECT_MAP: InjectionToken<{ [index: string]: { url: string, params: string[] } }> = new InjectionToken<{ [index: string]: { url: string, params: string[] } }>('REDIRECT_MAP');\r\n\r\n/** Token che indica il servizio di localizzazione utilizzato per i menù */\r\nexport const MENU_LOCALIZATION: InjectionToken<Type<LocalizationService>> = new InjectionToken<Type<LocalizationService>>('MENU_LOCALIZATION');\r\n\r\n/** Token che indica i menù dell'applicazione, da quello vegano fino a quello celiaco */\r\nexport const MENU: InjectionToken<ApplicationMenu[]> = new InjectionToken<ApplicationMenu[]>('MENU');\r\n\r\n/** Token che indica se il servizio di autenticazione deve utilizzare un token finto */\r\nexport const USE_FAKE_ACCESS_TOKEN: InjectionToken<boolean> = new InjectionToken<boolean>('USE_FAKE_ACCESS_TOKEN');\r\n\r\n/** Token che indica i componenti di estensione da aggiungere alla navbar. Verranno bootstrappati in maniera dinamica */\r\nexport const NAVBAR_EXTENSIONS: InjectionToken<Type<any>[]> = new InjectionToken<Type<any>[]>('NAVBAR_EXTENSIONS');\r\n\r\n/** Token che identifica se utilizzare la versione vecchia dell'url di auth (${myconfig.AUTH_URL}/login/form?client=${myconfig.CLIENT_NAME}) invece che la nuova (${myconfig.AUTH_URL}/login;client=${myconfig.CLIENT_NAME}) */\r\nexport const LOGIN_URL_LEGACY: InjectionToken<boolean> = new InjectionToken<boolean>('LOGIN_URL_LEGACY');","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAAa,eAAe,CAAA;AACxB,IAAA,WAAA,CACW,KAAa,EACb,IAAa,EACb,UAAmB,EACnB,IAAa,EACb,EAAW,EACX,GAAa,EACb,OAA2B,EAC3B,WAAgB,EAAA;AAPhB,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;AACb,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAS;AACb,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAS;AACnB,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAS;AACb,QAAA,IAAE,CAAA,EAAA,GAAF,EAAE,CAAS;AAC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mB,EACnB,SAAqB,GAAA,IAAI,EACzB,kBAAA,GAA8B,IAAI,EAAA;AALlC,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAS;AAClB,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAS;AACf,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAS;AACf,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAS;AACnB,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAgB;AACzB,QAAA,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAgB;KAAK;AACrD;;MCRY,uBAAuB,CAAA;AAChC,IAAA,WAAA,CAAmB,SAAkB,EAAA;AAAlB,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAS;KAAK;AAC7C;;MCFY,WAAW,CAAA;AAsBvB;;ACtBD;AASA;MACa,YAAY,GAA2E,IAAI,cAAc,CAAyD,cAAc,EAAE;AAE/L;MACa,iBAAiB,GAA8C,IAAI,cAAc,CAA4B,mBAAmB,EAAE;AAE/I;MACa,IAAI,GAAsC,IAAI,cAAc,CAAoB,MAAM,EAAE;AAErG;MACa,qBAAqB,GAA4B,IAAI,cAAc,CAAU,uBAAuB,EAAE;AAEnH;MACa,iBAAiB,GAAgC,IAAI,cAAc,CAAc,mBAAmB,EAAE;AAEnH;MACa,gBAAgB,GAA4B,IAAI,cAAc,CAAU,kBAAkB;;ACzBvG;;AAEG;;;;"}
|
|
@@ -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';
|
|
@@ -11,7 +11,6 @@ import * as i1$2 from '@esfaenza/localizations';
|
|
|
11
11
|
import { LocalizationService } from '@esfaenza/localizations';
|
|
12
12
|
import * as i5 from '@esfaenza/extensions';
|
|
13
13
|
import { InboundMessageTypes, MessageService, CallResult } from '@esfaenza/extensions';
|
|
14
|
-
import { AdmMessageTypes, MK_ADM } from '@esfaenza/admin-module';
|
|
15
14
|
import * as customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
16
15
|
import * as isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
17
16
|
import * as isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
|
|
@@ -31,10 +30,9 @@ import { HTTPService } from '@esfaenza/httpservice';
|
|
|
31
30
|
|
|
32
31
|
// Angular
|
|
33
32
|
class TokenService {
|
|
34
|
-
constructor(cs, USE_FAKE_ACCESS_TOKEN
|
|
33
|
+
constructor(cs, USE_FAKE_ACCESS_TOKEN) {
|
|
35
34
|
this.cs = cs;
|
|
36
35
|
this.USE_FAKE_ACCESS_TOKEN = USE_FAKE_ACCESS_TOKEN;
|
|
37
|
-
this.ANONYMOUS_MODE = ANONYMOUS_MODE;
|
|
38
36
|
if (this.USE_FAKE_ACCESS_TOKEN)
|
|
39
37
|
this.accountScope = this.getFakeAccountScope();
|
|
40
38
|
}
|
|
@@ -42,13 +40,9 @@ class TokenService {
|
|
|
42
40
|
this.cs.delete("access_token");
|
|
43
41
|
}
|
|
44
42
|
getAccessToken() {
|
|
45
|
-
if (this.ANONYMOUS_MODE)
|
|
46
|
-
return "";
|
|
47
43
|
return this.USE_FAKE_ACCESS_TOKEN ? this.getFakeToken() : this.cs.get("accessToken");
|
|
48
44
|
}
|
|
49
45
|
getJaceIdentity() {
|
|
50
|
-
if (this.ANONYMOUS_MODE)
|
|
51
|
-
return null;
|
|
52
46
|
let token = this.USE_FAKE_ACCESS_TOKEN ? this.getFakeToken() : this.cs.get("accessToken");
|
|
53
47
|
if (!token)
|
|
54
48
|
return null;
|
|
@@ -1049,7 +1043,7 @@ class TokenService {
|
|
|
1049
1043
|
return accountScope;
|
|
1050
1044
|
}
|
|
1051
1045
|
}
|
|
1052
|
-
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 }
|
|
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 });
|
|
1053
1047
|
TokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenService, providedIn: "root" });
|
|
1054
1048
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenService, decorators: [{
|
|
1055
1049
|
type: Injectable,
|
|
@@ -1060,11 +1054,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1060
1054
|
}, {
|
|
1061
1055
|
type: Inject,
|
|
1062
1056
|
args: [USE_FAKE_ACCESS_TOKEN]
|
|
1063
|
-
}] }, { type: undefined, decorators: [{
|
|
1064
|
-
type: Optional
|
|
1065
|
-
}, {
|
|
1066
|
-
type: Inject,
|
|
1067
|
-
args: [ANONYMOUS_MODE]
|
|
1068
1057
|
}] }];
|
|
1069
1058
|
} });
|
|
1070
1059
|
|
|
@@ -1178,7 +1167,7 @@ class AppState {
|
|
|
1178
1167
|
this.notifyDataChanged("modules.Retrieved", this._modules);
|
|
1179
1168
|
}
|
|
1180
1169
|
get Modules() { return this._modules; }
|
|
1181
|
-
constructor(router, lc, bts, notifications, MessageDef, intercom, emb
|
|
1170
|
+
constructor(router, lc, bts, notifications, MessageDef, intercom, emb) {
|
|
1182
1171
|
this.router = router;
|
|
1183
1172
|
this.lc = lc;
|
|
1184
1173
|
this.bts = bts;
|
|
@@ -1186,7 +1175,6 @@ class AppState {
|
|
|
1186
1175
|
this.MessageDef = MessageDef;
|
|
1187
1176
|
this.intercom = intercom;
|
|
1188
1177
|
this.emb = emb;
|
|
1189
|
-
this.anonymousMode = anonymousMode;
|
|
1190
1178
|
this.redirectingToLogin = false;
|
|
1191
1179
|
this.handlingError = false;
|
|
1192
1180
|
this.christmasTime = false;
|
|
@@ -1236,8 +1224,7 @@ class AppState {
|
|
|
1236
1224
|
// Se non ho un id mi manca il login, quindi via di qua
|
|
1237
1225
|
var id = this.getJaceIDentity();
|
|
1238
1226
|
if (!id) {
|
|
1239
|
-
|
|
1240
|
-
return "";
|
|
1227
|
+
//TODO: Commentare per la modalità IFRAME
|
|
1241
1228
|
this.router.navigate(["login"]);
|
|
1242
1229
|
return "";
|
|
1243
1230
|
}
|
|
@@ -1266,7 +1253,11 @@ class AppState {
|
|
|
1266
1253
|
switch (t.type) {
|
|
1267
1254
|
case InboundMessageTypes.Navigation:
|
|
1268
1255
|
this.notifyDataChanged(t.message.sub ? "menu.adjustSubNavigationTo" : "menu.adjustNavigationTo", t.message.routeTitle);
|
|
1269
|
-
|
|
1256
|
+
// export const MK_ADM = "EsAdminModule";
|
|
1257
|
+
// AdmMessageTypes.Message = 0;
|
|
1258
|
+
// definita in admin-module.
|
|
1259
|
+
// admin-module usa core quindi referenze circolari no-no-no
|
|
1260
|
+
this.intercom.send(0, "Navigation Message Received", "EsAdminModule");
|
|
1270
1261
|
break;
|
|
1271
1262
|
}
|
|
1272
1263
|
}
|
|
@@ -1283,10 +1274,7 @@ class AppState {
|
|
|
1283
1274
|
}
|
|
1284
1275
|
setupSignalRJobListening() {
|
|
1285
1276
|
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) + ")";
|
|
1277
|
+
var desc = (ev.description || ev.actionid) + " (" + (ev.user || this.getJaceIDentity().DsUser) + ")";
|
|
1290
1278
|
let job = {
|
|
1291
1279
|
id: ev.instance,
|
|
1292
1280
|
description: desc,
|
|
@@ -1370,17 +1358,12 @@ class AppState {
|
|
|
1370
1358
|
this.headerHeight = height;
|
|
1371
1359
|
}
|
|
1372
1360
|
}
|
|
1373
|
-
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 }
|
|
1361
|
+
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 });
|
|
1374
1362
|
AppState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppState, providedIn: "root" });
|
|
1375
1363
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppState, decorators: [{
|
|
1376
1364
|
type: Injectable,
|
|
1377
1365
|
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
|
-
} });
|
|
1366
|
+
}], 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
1367
|
|
|
1385
1368
|
// Angular
|
|
1386
1369
|
class HTTPServiceExtensions {
|
|
@@ -1498,10 +1481,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1498
1481
|
|
|
1499
1482
|
// Angular
|
|
1500
1483
|
class SessionRetriever {
|
|
1501
|
-
constructor(bts, router
|
|
1484
|
+
constructor(bts, router) {
|
|
1502
1485
|
this.bts = bts;
|
|
1503
1486
|
this.router = router;
|
|
1504
|
-
this.anonymousMode = anonymousMode;
|
|
1505
1487
|
}
|
|
1506
1488
|
/** Tenant§Account§User§ModuleId */
|
|
1507
1489
|
getSessionKey() {
|
|
@@ -1511,8 +1493,6 @@ class SessionRetriever {
|
|
|
1511
1493
|
// Se non ho un id mi manca il login, quindi via di qua
|
|
1512
1494
|
var id = this.bts.getJaceIdentity();
|
|
1513
1495
|
if (!id) {
|
|
1514
|
-
if (this.anonymousMode)
|
|
1515
|
-
return "";
|
|
1516
1496
|
console.log("SessionRetriever - no identity, redirecting to login");
|
|
1517
1497
|
this.router.navigate(["login"]);
|
|
1518
1498
|
return "";
|
|
@@ -1521,17 +1501,12 @@ class SessionRetriever {
|
|
|
1521
1501
|
return this.SessionIdentity;
|
|
1522
1502
|
}
|
|
1523
1503
|
}
|
|
1524
|
-
SessionRetriever.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, deps: [{ token: TokenService }, { token: i1$1.Router }
|
|
1504
|
+
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 });
|
|
1525
1505
|
SessionRetriever.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, providedIn: "root" });
|
|
1526
1506
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, decorators: [{
|
|
1527
1507
|
type: Injectable,
|
|
1528
1508
|
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
|
-
} });
|
|
1509
|
+
}], ctorParameters: function () { return [{ type: TokenService }, { type: i1$1.Router }]; } });
|
|
1535
1510
|
|
|
1536
1511
|
// Angular
|
|
1537
1512
|
// Chiamate ai Repository
|
|
@@ -1712,11 +1687,8 @@ class UserPreferencesService {
|
|
|
1712
1687
|
this.http = this.injector.get(HTTPService);
|
|
1713
1688
|
this.msgExts = this.injector.get(MessageService);
|
|
1714
1689
|
this.fakeToken = this.injector.get(USE_FAKE_ACCESS_TOKEN) || false;
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
this.AccountId = identity.IdAccount.toString();
|
|
1718
|
-
this.doReloadProfilePicture();
|
|
1719
|
-
}
|
|
1690
|
+
this.AccountId = tks.getJaceIdentity().IdAccount.toString();
|
|
1691
|
+
this.doReloadProfilePicture();
|
|
1720
1692
|
}
|
|
1721
1693
|
getAccountProfile() {
|
|
1722
1694
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1804,9 +1776,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1804
1776
|
class BaseRouterGuard extends AccessControlRouteGuard {
|
|
1805
1777
|
constructor(ms, acc, router, ts) {
|
|
1806
1778
|
super(ms, acc, router);
|
|
1807
|
-
let identity = ts.getJaceIdentity();
|
|
1808
1779
|
if (!acc.Initialized)
|
|
1809
|
-
acc.initializeIdentity(
|
|
1780
|
+
acc.initializeIdentity(ts.getJaceIdentity());
|
|
1810
1781
|
}
|
|
1811
1782
|
}
|
|
1812
1783
|
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 });
|