@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.
Files changed (41) hide show
  1. package/components/error/404/pagenotfound.component.d.ts +1 -2
  2. package/components/error/500/servererror.component.d.ts +1 -2
  3. package/components/error/Angular/angularerror.component.d.ts +1 -2
  4. package/components/navbar/navbar.component.d.ts +1 -2
  5. package/domain/tokens.d.ts +0 -2
  6. package/esm2020/components/error/404/pagenotfound.component.mjs +7 -13
  7. package/esm2020/components/error/500/servererror.component.mjs +7 -13
  8. package/esm2020/components/error/Angular/angularerror.component.mjs +7 -13
  9. package/esm2020/components/external-page/external_pages.component.mjs +2 -2
  10. package/esm2020/components/navbar/navbar.component.mjs +6 -10
  11. package/esm2020/components/user_infos/user_infos.component.mjs +4 -6
  12. package/esm2020/domain/tokens.mjs +1 -3
  13. package/esm2020/lib/app.component.mjs +8 -12
  14. package/esm2020/lib/core.module.mjs +4 -21
  15. package/esm2020/services/classes/app.accesstoken.mjs +4 -14
  16. package/esm2020/services/classes/app.routeguard.mjs +2 -3
  17. package/esm2020/services/classes/app.session.mjs +5 -13
  18. package/esm2020/services/classes/app.state.mjs +12 -19
  19. package/esm2020/services/classes/preferences/user/app.userpreferences.base.mjs +3 -6
  20. package/fesm2015/esfaenza-core-components.mjs +25 -51
  21. package/fesm2015/esfaenza-core-components.mjs.map +1 -1
  22. package/fesm2015/esfaenza-core-domain.mjs +1 -3
  23. package/fesm2015/esfaenza-core-domain.mjs.map +1 -1
  24. package/fesm2015/esfaenza-core-services.mjs +19 -48
  25. package/fesm2015/esfaenza-core-services.mjs.map +1 -1
  26. package/fesm2015/esfaenza-core.mjs +12 -34
  27. package/fesm2015/esfaenza-core.mjs.map +1 -1
  28. package/fesm2020/esfaenza-core-components.mjs +25 -45
  29. package/fesm2020/esfaenza-core-components.mjs.map +1 -1
  30. package/fesm2020/esfaenza-core-domain.mjs +1 -3
  31. package/fesm2020/esfaenza-core-domain.mjs.map +1 -1
  32. package/fesm2020/esfaenza-core-services.mjs +19 -44
  33. package/fesm2020/esfaenza-core-services.mjs.map +1 -1
  34. package/fesm2020/esfaenza-core.mjs +12 -32
  35. package/fesm2020/esfaenza-core.mjs.map +1 -1
  36. package/lib/app.component.d.ts +1 -1
  37. package/lib/core.module.d.ts +0 -1
  38. package/package.json +5 -5
  39. package/services/classes/app.accesstoken.d.ts +2 -3
  40. package/services/classes/app.session.d.ts +1 -2
  41. package/services/classes/app.state.d.ts +1 -2
@@ -186,8 +186,6 @@ const MENU_LOCALIZATION = new InjectionToken('MENU_LOCALIZATION');
186
186
  const MENU = new InjectionToken('MENU');
187
187
  /** Token che indica se il servizio di autenticazione deve utilizzare un token finto */
188
188
  const USE_FAKE_ACCESS_TOKEN = new InjectionToken('USE_FAKE_ACCESS_TOKEN');
189
- /** Token che indica se il servizio di autenticazione deve funzionare in anonimo lato Frontend. Dev'essere utilizzato insieme al tag "Auth" in code behind */
190
- const ANONYMOUS_MODE = new InjectionToken('USE_FAKE_ACCESS_TOKEN');
191
189
  /** Token che indica i componenti di estensione da aggiungere alla navbar. Verranno bootstrappati in maniera dinamica */
192
190
  const NAVBAR_EXTENSIONS = new InjectionToken('NAVBAR_EXTENSIONS');
193
191
  /** 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}) */
@@ -197,5 +195,5 @@ const LOGIN_URL_LEGACY = new InjectionToken('LOGIN_URL_LEGACY');
197
195
  * Generated bundle index. Do not edit.
198
196
  */
199
197
 
200
- export { ANONYMOUS_MODE, 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 };
198
+ 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 };
201
199
  //# 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;QAPhB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;QACb,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAS;QACb,IAAU,CAAA,UAAA,GAAV,UAAU,CAAS;QACnB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAS;QACb,IAAE,CAAA,EAAA,GAAF,EAAE,CAAS;QACX,IAAG,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kB,CAAA,kBAAA,GAAlB,kBAAkB,CAAgB;KAAK;AACrD;;MCRY,uBAAuB,CAAA;AAChC,IAAA,WAAA,CAAmB,SAAkB,EAAA;QAAlB,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;QAPhB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;QACb,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAS;QACb,IAAU,CAAA,UAAA,GAAV,UAAU,CAAS;QACnB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAS;QACb,IAAE,CAAA,EAAA,GAAF,EAAE,CAAS;QACX,IAAG,CAAA,GAAA,GAAH,GAAG,CAAU;QACb,IAAO,CAAA,OAA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;;MCRY,uBAAuB,CAAA;AAChC,IAAA,WAAA,CAAmB,SAAkB,EAAA;QAAlB,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, ANONYMOUS_MODE, UpdateProfilePictureDto, UpdateAccountRecoverySettingsDto, UpdatePasswordDto } from '@esfaenza/core/domain';
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';
@@ -30,10 +29,9 @@ import { HTTPService } from '@esfaenza/httpservice';
30
29
 
31
30
  // Angular
32
31
  class TokenService {
33
- constructor(cs, USE_FAKE_ACCESS_TOKEN, ANONYMOUS_MODE) {
32
+ constructor(cs, USE_FAKE_ACCESS_TOKEN) {
34
33
  this.cs = cs;
35
34
  this.USE_FAKE_ACCESS_TOKEN = USE_FAKE_ACCESS_TOKEN;
36
- this.ANONYMOUS_MODE = ANONYMOUS_MODE;
37
35
  if (this.USE_FAKE_ACCESS_TOKEN)
38
36
  this.accountScope = this.getFakeAccountScope();
39
37
  }
@@ -41,13 +39,9 @@ class TokenService {
41
39
  this.cs.delete("access_token");
42
40
  }
43
41
  getAccessToken() {
44
- if (this.ANONYMOUS_MODE)
45
- return "";
46
42
  return this.USE_FAKE_ACCESS_TOKEN ? this.getFakeToken() : this.cs.get("accessToken");
47
43
  }
48
44
  getJaceIdentity() {
49
- if (this.ANONYMOUS_MODE)
50
- return null;
51
45
  let token = this.USE_FAKE_ACCESS_TOKEN ? this.getFakeToken() : this.cs.get("accessToken");
52
46
  if (!token)
53
47
  return null;
@@ -1048,7 +1042,7 @@ class TokenService {
1048
1042
  return accountScope;
1049
1043
  }
1050
1044
  }
1051
- 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 }, { token: ANONYMOUS_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1045
+ 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 });
1052
1046
  TokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenService, providedIn: "root" });
1053
1047
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenService, decorators: [{
1054
1048
  type: Injectable,
@@ -1058,11 +1052,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1058
1052
  }, {
1059
1053
  type: Inject,
1060
1054
  args: [USE_FAKE_ACCESS_TOKEN]
1061
- }] }, { type: undefined, decorators: [{
1062
- type: Optional
1063
- }, {
1064
- type: Inject,
1065
- args: [ANONYMOUS_MODE]
1066
1055
  }] }]; } });
1067
1056
 
1068
1057
  // Angular
@@ -1175,7 +1164,7 @@ class AppState {
1175
1164
  this.notifyDataChanged("modules.Retrieved", this._modules);
1176
1165
  }
1177
1166
  get Modules() { return this._modules; }
1178
- constructor(router, lc, bts, notifications, MessageDef, intercom, emb, anonymousMode) {
1167
+ constructor(router, lc, bts, notifications, MessageDef, intercom, emb) {
1179
1168
  this.router = router;
1180
1169
  this.lc = lc;
1181
1170
  this.bts = bts;
@@ -1183,7 +1172,6 @@ class AppState {
1183
1172
  this.MessageDef = MessageDef;
1184
1173
  this.intercom = intercom;
1185
1174
  this.emb = emb;
1186
- this.anonymousMode = anonymousMode;
1187
1175
  this.redirectingToLogin = false;
1188
1176
  this.handlingError = false;
1189
1177
  this.christmasTime = false;
@@ -1232,8 +1220,7 @@ class AppState {
1232
1220
  // Se non ho un id mi manca il login, quindi via di qua
1233
1221
  var id = this.getJaceIDentity();
1234
1222
  if (!id) {
1235
- if (this.anonymousMode)
1236
- return "";
1223
+ //TODO: Commentare per la modalità IFRAME
1237
1224
  this.router.navigate(["login"]);
1238
1225
  return "";
1239
1226
  }
@@ -1261,7 +1248,11 @@ class AppState {
1261
1248
  switch (t.type) {
1262
1249
  case InboundMessageTypes.Navigation:
1263
1250
  this.notifyDataChanged(t.message.sub ? "menu.adjustSubNavigationTo" : "menu.adjustNavigationTo", t.message.routeTitle);
1264
- this.intercom.send(AdmMessageTypes.Message, "Navigation Message Received", MK_ADM);
1251
+ // export const MK_ADM = "EsAdminModule";
1252
+ // AdmMessageTypes.Message = 0;
1253
+ // definita in admin-module.
1254
+ // admin-module usa core quindi referenze circolari no-no-no
1255
+ this.intercom.send(0, "Navigation Message Received", "EsAdminModule");
1265
1256
  break;
1266
1257
  }
1267
1258
  }
@@ -1278,10 +1269,7 @@ class AppState {
1278
1269
  }
1279
1270
  setupSignalRJobListening() {
1280
1271
  this.notifications.observe(this.MessageDef.IN_JobProgressNotification).subscribe((ev) => {
1281
- var identity = this.getJaceIDentity();
1282
- if (!identity)
1283
- return;
1284
- var desc = (ev.description || ev.actionid) + " (" + (ev.user || identity.DsUser) + ")";
1272
+ var desc = (ev.description || ev.actionid) + " (" + (ev.user || this.getJaceIDentity().DsUser) + ")";
1285
1273
  let job = {
1286
1274
  id: ev.instance,
1287
1275
  description: desc,
@@ -1365,15 +1353,12 @@ class AppState {
1365
1353
  this.headerHeight = height;
1366
1354
  }
1367
1355
  }
1368
- 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 }, { token: ANONYMOUS_MODE }], target: i0.ɵɵFactoryTarget.Injectable });
1356
+ 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 });
1369
1357
  AppState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppState, providedIn: "root" });
1370
1358
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppState, decorators: [{
1371
1359
  type: Injectable,
1372
1360
  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 }, { type: undefined, decorators: [{
1374
- type: Inject,
1375
- args: [ANONYMOUS_MODE]
1376
- }] }]; } });
1361
+ }], 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
1362
 
1378
1363
  // Angular
1379
1364
  class HTTPServiceExtensions {
@@ -1491,10 +1476,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1491
1476
 
1492
1477
  // Angular
1493
1478
  class SessionRetriever {
1494
- constructor(bts, router, anonymousMode) {
1479
+ constructor(bts, router) {
1495
1480
  this.bts = bts;
1496
1481
  this.router = router;
1497
- this.anonymousMode = anonymousMode;
1498
1482
  }
1499
1483
  /** Tenant§Account§User§ModuleId */
1500
1484
  getSessionKey() {
@@ -1503,8 +1487,6 @@ class SessionRetriever {
1503
1487
  // Se non ho un id mi manca il login, quindi via di qua
1504
1488
  var id = this.bts.getJaceIdentity();
1505
1489
  if (!id) {
1506
- if (this.anonymousMode)
1507
- return "";
1508
1490
  console.log("SessionRetriever - no identity, redirecting to login");
1509
1491
  this.router.navigate(["login"]);
1510
1492
  return "";
@@ -1513,15 +1495,12 @@ class SessionRetriever {
1513
1495
  return this.SessionIdentity;
1514
1496
  }
1515
1497
  }
1516
- SessionRetriever.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, deps: [{ token: TokenService }, { token: i1$1.Router }, { token: ANONYMOUS_MODE }], target: i0.ɵɵFactoryTarget.Injectable });
1498
+ 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 });
1517
1499
  SessionRetriever.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, providedIn: "root" });
1518
1500
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SessionRetriever, decorators: [{
1519
1501
  type: Injectable,
1520
1502
  args: [{ providedIn: "root" }]
1521
- }], ctorParameters: function () { return [{ type: TokenService }, { type: i1$1.Router }, { type: undefined, decorators: [{
1522
- type: Inject,
1523
- args: [ANONYMOUS_MODE]
1524
- }] }]; } });
1503
+ }], ctorParameters: function () { return [{ type: TokenService }, { type: i1$1.Router }]; } });
1525
1504
 
1526
1505
  // Angular
1527
1506
  // Chiamate ai Repository
@@ -1703,11 +1682,8 @@ class UserPreferencesService {
1703
1682
  this.http = this.injector.get(HTTPService);
1704
1683
  this.msgExts = this.injector.get(MessageService);
1705
1684
  this.fakeToken = this.injector.get(USE_FAKE_ACCESS_TOKEN) || false;
1706
- var identity = tks.getJaceIdentity();
1707
- if (identity) {
1708
- this.AccountId = identity.IdAccount.toString();
1709
- this.doReloadProfilePicture();
1710
- }
1685
+ this.AccountId = tks.getJaceIdentity().IdAccount.toString();
1686
+ this.doReloadProfilePicture();
1711
1687
  }
1712
1688
  async getAccountProfile() {
1713
1689
  let pars = new HttpParams().set("idAccount", this.AccountId);
@@ -1781,9 +1757,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1781
1757
  class BaseRouterGuard extends AccessControlRouteGuard {
1782
1758
  constructor(ms, acc, router, ts) {
1783
1759
  super(ms, acc, router);
1784
- let identity = ts.getJaceIdentity();
1785
1760
  if (!acc.Initialized)
1786
- acc.initializeIdentity(identity);
1761
+ acc.initializeIdentity(ts.getJaceIdentity());
1787
1762
  }
1788
1763
  }
1789
1764
  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 });