@esfaenza/core 15.2.5 → 15.2.7

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 (119) hide show
  1. package/components/base/navigable.component.d.ts +17 -0
  2. package/components/base/reactive.component.d.ts +9 -0
  3. package/components/breadcrumb/breadcrumb.component.d.ts +4 -0
  4. package/components/components.module.d.ts +11 -9
  5. package/components/jace-resource/jace-resource.component.d.ts +22 -0
  6. package/components/navbar/navbar.component.d.ts +22 -17
  7. package/components/public-api.d.ts +3 -0
  8. package/components/sidebar/sidebar.component.d.ts +13 -8
  9. package/domain/models/core/ApplicationJob.d.ts +12 -0
  10. package/domain/models/core/GenericItem.d.ts +10 -0
  11. package/domain/models/core/KeyValue.d.ts +5 -0
  12. package/domain/models/global_search/SaerchResultContainer.d.ts +5 -0
  13. package/domain/models/global_search/SearchResult.d.ts +10 -0
  14. package/domain/models/jace/{classes/ActiveModuleView.d.ts → ActiveModuleView.d.ts} +0 -5
  15. package/domain/models/jace/CategoriesWithModules.d.ts +6 -0
  16. package/domain/models/jace/{classes/JaceAccount.d.ts → JaceAccount.d.ts} +0 -9
  17. package/domain/models/jace/{classes/JaceIdentity.d.ts → JaceIdentity.d.ts} +1 -3
  18. package/domain/models/jace/JaceUser.d.ts +9 -0
  19. package/domain/public-api.d.ts +16 -10
  20. package/domain/tokens.d.ts +1 -1
  21. package/esm2020/components/base/navigable.component.mjs +43 -0
  22. package/esm2020/components/base/reactive.component.mjs +26 -0
  23. package/esm2020/components/breadcrumb/breadcrumb.component.mjs +34 -29
  24. package/esm2020/components/components.module.mjs +15 -8
  25. package/esm2020/components/error/Angular/angularerror.component.mjs +7 -5
  26. package/esm2020/components/external-page/external_pages.component.mjs +1 -2
  27. package/esm2020/components/jace-resource/jace-resource.component.mjs +65 -0
  28. package/esm2020/components/navbar/modules-board/jace-modules-board.component.mjs +1 -1
  29. package/esm2020/components/navbar/navbar.component.mjs +80 -60
  30. package/esm2020/components/public-api.mjs +4 -1
  31. package/esm2020/components/sidebar/sidebar.component.mjs +67 -39
  32. package/esm2020/domain/models/core/ApplicationJob.mjs +3 -0
  33. package/esm2020/domain/models/core/ApplicationMenu.mjs +26 -0
  34. package/esm2020/domain/models/core/EnvOptions.mjs +13 -0
  35. package/esm2020/domain/models/core/GenericItem.mjs +12 -0
  36. package/esm2020/domain/models/core/KeyValue.mjs +15 -0
  37. package/esm2020/domain/models/global_search/SaerchResultContainer.mjs +6 -0
  38. package/esm2020/domain/models/global_search/SearchResult.mjs +8 -0
  39. package/esm2020/domain/models/jace/AccountScope.mjs +8 -0
  40. package/esm2020/domain/models/jace/ActiveModuleView.mjs +3 -0
  41. package/esm2020/domain/models/jace/CategoriesWithModules.mjs +7 -0
  42. package/esm2020/domain/models/jace/JaceAccount.mjs +3 -0
  43. package/esm2020/domain/models/jace/JaceIdentity.mjs +13 -0
  44. package/esm2020/domain/models/jace/JaceModule.mjs +3 -0
  45. package/esm2020/domain/models/jace/JacePermission.mjs +3 -0
  46. package/esm2020/domain/models/jace/JaceRole.mjs +8 -0
  47. package/esm2020/domain/models/jace/JaceUser.mjs +3 -0
  48. package/esm2020/domain/public-api.mjs +17 -11
  49. package/esm2020/domain/tokens.mjs +1 -1
  50. package/esm2020/lib/app.component.mjs +2 -2
  51. package/esm2020/lib/core.module.mjs +8 -7
  52. package/esm2020/pipes/classes/included_in.pipe.mjs +17 -0
  53. package/esm2020/pipes/{safe_html → classes}/safe_html.pipe.mjs +1 -1
  54. package/esm2020/pipes/{safe_script → classes}/safe_script.pipe.mjs +1 -1
  55. package/esm2020/pipes/{safe_style → classes}/safe_style.pipe.mjs +1 -1
  56. package/esm2020/pipes/classes/safe_url.pipe.mjs +18 -0
  57. package/esm2020/pipes/pipes.module.mjs +6 -6
  58. package/esm2020/pipes/public-api.mjs +6 -6
  59. package/esm2020/services/classes/app.completedjobredirection.mjs +18 -0
  60. package/esm2020/services/classes/app.globalsearch.mjs +34 -0
  61. package/esm2020/services/classes/app.menufilter.mjs +21 -0
  62. package/esm2020/services/classes/app.state.mjs +101 -9
  63. package/esm2020/services/public-api.mjs +4 -1
  64. package/fesm2015/esfaenza-core-components.mjs +331 -207
  65. package/fesm2015/esfaenza-core-components.mjs.map +1 -1
  66. package/fesm2015/esfaenza-core-domain.mjs +55 -15
  67. package/fesm2015/esfaenza-core-domain.mjs.map +1 -1
  68. package/fesm2015/esfaenza-core-pipes.mjs +2 -2
  69. package/fesm2015/esfaenza-core-pipes.mjs.map +1 -1
  70. package/fesm2015/esfaenza-core-services.mjs +168 -10
  71. package/fesm2015/esfaenza-core-services.mjs.map +1 -1
  72. package/fesm2015/esfaenza-core.mjs +11 -10
  73. package/fesm2015/esfaenza-core.mjs.map +1 -1
  74. package/fesm2020/esfaenza-core-components.mjs +323 -201
  75. package/fesm2020/esfaenza-core-components.mjs.map +1 -1
  76. package/fesm2020/esfaenza-core-domain.mjs +54 -14
  77. package/fesm2020/esfaenza-core-domain.mjs.map +1 -1
  78. package/fesm2020/esfaenza-core-pipes.mjs +2 -2
  79. package/fesm2020/esfaenza-core-pipes.mjs.map +1 -1
  80. package/fesm2020/esfaenza-core-services.mjs +167 -10
  81. package/fesm2020/esfaenza-core-services.mjs.map +1 -1
  82. package/fesm2020/esfaenza-core.mjs +11 -10
  83. package/fesm2020/esfaenza-core.mjs.map +1 -1
  84. package/lib/core.module.d.ts +6 -8
  85. package/package.json +1 -1
  86. package/pipes/{safe_url → classes}/safe_url.pipe.d.ts +1 -1
  87. package/pipes/pipes.module.d.ts +5 -5
  88. package/pipes/public-api.d.ts +5 -5
  89. package/services/classes/app.completedjobredirection.d.ts +12 -0
  90. package/services/classes/app.globalsearch.d.ts +25 -0
  91. package/services/classes/app.menufilter.d.ts +14 -0
  92. package/services/classes/app.state.d.ts +10 -17
  93. package/services/public-api.d.ts +3 -0
  94. package/theme/initial.scss +0 -8
  95. package/components/sidebar/sidebar.component.service.d.ts +0 -27
  96. package/domain/models/jace/classes/User.d.ts +0 -4
  97. package/esm2020/components/sidebar/sidebar.component.service.mjs +0 -58
  98. package/esm2020/domain/models/core/classes/ApplicationMenu.mjs +0 -26
  99. package/esm2020/domain/models/core/classes/EnvOptions.mjs +0 -13
  100. package/esm2020/domain/models/jace/classes/AccountScope.mjs +0 -8
  101. package/esm2020/domain/models/jace/classes/ActiveModuleView.mjs +0 -9
  102. package/esm2020/domain/models/jace/classes/JaceAccount.mjs +0 -5
  103. package/esm2020/domain/models/jace/classes/JaceIdentity.mjs +0 -16
  104. package/esm2020/domain/models/jace/classes/JaceModule.mjs +0 -3
  105. package/esm2020/domain/models/jace/classes/JacePermission.mjs +0 -3
  106. package/esm2020/domain/models/jace/classes/JaceRole.mjs +0 -8
  107. package/esm2020/domain/models/jace/classes/User.mjs +0 -3
  108. package/esm2020/pipes/included_in/included_in.pipe.mjs +0 -17
  109. package/esm2020/pipes/safe_url/safe_url.pipe.mjs +0 -18
  110. /package/domain/models/core/{classes/ApplicationMenu.d.ts → ApplicationMenu.d.ts} +0 -0
  111. /package/domain/models/core/{classes/EnvOptions.d.ts → EnvOptions.d.ts} +0 -0
  112. /package/domain/models/jace/{classes/AccountScope.d.ts → AccountScope.d.ts} +0 -0
  113. /package/domain/models/jace/{classes/JaceModule.d.ts → JaceModule.d.ts} +0 -0
  114. /package/domain/models/jace/{classes/JacePermission.d.ts → JacePermission.d.ts} +0 -0
  115. /package/domain/models/jace/{classes/JaceRole.d.ts → JaceRole.d.ts} +0 -0
  116. /package/pipes/{included_in → classes}/included_in.pipe.d.ts +0 -0
  117. /package/pipes/{safe_html → classes}/safe_html.pipe.d.ts +0 -0
  118. /package/pipes/{safe_script → classes}/safe_script.pipe.d.ts +0 -0
  119. /package/pipes/{safe_style → classes}/safe_style.pipe.d.ts +0 -0
@@ -1,3 +1,5 @@
1
+ import { __decorate } from 'tslib';
2
+ import { Export } from '@esfaenza/extensions';
1
3
  import { InjectionToken } from '@angular/core';
2
4
 
3
5
  class ApplicationMenu {
@@ -26,6 +28,9 @@ class ApplicationMenu {
26
28
  }
27
29
  ApplicationMenu.ignoreStorage = { ignoreStorage: true };
28
30
 
31
+ class ApplicationJob {
32
+ }
33
+
29
34
  class EnvOptions {
30
35
  constructor(moduleId, moduleDef, env, varsion, description) {
31
36
  this.AppData = {
@@ -39,6 +44,38 @@ class EnvOptions {
39
44
  }
40
45
  ;
41
46
 
47
+ class KeyValue {
48
+ constructor(id, description) {
49
+ this.id = id;
50
+ this.description = description;
51
+ }
52
+ }
53
+ __decorate([
54
+ Export(10, "Cod.")
55
+ ], KeyValue.prototype, "id", void 0);
56
+ __decorate([
57
+ Export(20, "Descrizione")
58
+ ], KeyValue.prototype, "description", void 0);
59
+
60
+ /** Rappresentazione di un oggetto generico */
61
+ class GenericItem {
62
+ /**
63
+ * Costruttore
64
+ *
65
+ * @param properties Dizionario Chiave - Valore delle proprietà di questo oggetto generico
66
+ */
67
+ constructor(properties) {
68
+ this.properties = properties;
69
+ }
70
+ }
71
+
72
+ class CategoriesWithModules {
73
+ constructor(module) {
74
+ this.category = module?.category?.toUpperCase();
75
+ this.module_rows = [[module]];
76
+ }
77
+ }
78
+
42
79
  class AccountScope {
43
80
  constructor(modules = [], roles = [], permissions = []) {
44
81
  this.modules = modules;
@@ -48,24 +85,13 @@ class AccountScope {
48
85
  }
49
86
 
50
87
  class ActiveModuleView {
51
- }
52
- class CategoriesWithModules {
53
- constructor(module) {
54
- this.category = module?.category?.toUpperCase();
55
- this.module_rows = [[module]];
56
- }
57
88
  }
58
89
 
59
90
  class JaceAccount {
60
- }
61
- class JaceUser {
62
91
  }
63
92
 
64
- class BaseIdentity {
65
- }
66
- class JaceIdentity extends BaseIdentity {
93
+ class JaceIdentity {
67
94
  constructor(scope = null) {
68
- super();
69
95
  this.Roles = [];
70
96
  this.Modules = [];
71
97
  this.Permissions = [];
@@ -91,7 +117,21 @@ class JaceRole {
91
117
  }
92
118
  }
93
119
 
94
- class User {
120
+ class JaceUser {
121
+ }
122
+
123
+ class SearchResultContainer {
124
+ constructor(results) {
125
+ this.results = results;
126
+ }
127
+ }
128
+
129
+ class SearchResult {
130
+ constructor(description, columns, items) {
131
+ this.description = description;
132
+ this.columns = columns;
133
+ this.items = items;
134
+ }
95
135
  }
96
136
 
97
137
  // Angular
@@ -108,5 +148,5 @@ const USE_FAKE_ACCESS_TOKEN = new InjectionToken('USE_FAKE_ACCESS_TOKEN');
108
148
  * Generated bundle index. Do not edit.
109
149
  */
110
150
 
111
- export { AccountScope, ActiveModuleView, ApplicationMenu, BaseIdentity, CategoriesWithModules, EnvOptions, JaceAccount, JaceIdentity, JaceModule, JacePermission, JaceRole, JaceUser, MENU, MENU_LOCALIZATION, REDIRECT_MAP, USE_FAKE_ACCESS_TOKEN, User };
151
+ export { AccountScope, ActiveModuleView, ApplicationJob, ApplicationMenu, CategoriesWithModules, EnvOptions, GenericItem, JaceAccount, JaceIdentity, JaceModule, JacePermission, JaceRole, JaceUser, KeyValue, MENU, MENU_LOCALIZATION, REDIRECT_MAP, SearchResult, SearchResultContainer, USE_FAKE_ACCESS_TOKEN };
112
152
  //# sourceMappingURL=esfaenza-core-domain.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"esfaenza-core-domain.mjs","sources":["../../../projects/core/domain/src/models/core/classes/ApplicationMenu.ts","../../../projects/core/domain/src/models/core/classes/EnvOptions.ts","../../../projects/core/domain/src/models/jace/classes/AccountScope.ts","../../../projects/core/domain/src/models/jace/classes/ActiveModuleView.ts","../../../projects/core/domain/src/models/jace/classes/JaceAccount.ts","../../../projects/core/domain/src/models/jace/classes/JaceIdentity.ts","../../../projects/core/domain/src/models/jace/classes/JaceModule.ts","../../../projects/core/domain/src/models/jace/classes/JacePermission.ts","../../../projects/core/domain/src/models/jace/classes/JaceRole.ts","../../../projects/core/domain/src/models/jace/classes/User.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[]): ApplicationMenu {\r\n return new ApplicationMenu(title, null, null, icon, ac, wip, subMenu);\r\n }\r\n\r\n static TopItem(title: string, icon: string, routerLink?: string, ac?: string, queryParams?: {}, 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?: {}, 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","export class EnvOptions {\r\n constructor(moduleId: string, moduleDef: number, env: number, 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: number, 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 { 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{\r\n idmodule: number;\r\n name: string;\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}\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}","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}\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}","import { AccountScope } from \"./AccountScope\";\r\n\r\nexport class BaseIdentity{\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 ExpirationTime: Date;\r\n}\r\nexport class JaceIdentity extends BaseIdentity {\r\n constructor(scope : AccountScope = null){\r\n super();\r\n this.Roles = [];\r\n this.Modules = [];\r\n this.Permissions = [];\r\n if(scope){\r\n this.Roles = scope.roles.map(x=>x.idrolealt);\r\n this.Permissions = scope.permissions.map(x=>x.idpermissionalt);\r\n this.Modules = scope.modules.map(x=>x.idmodule);\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{\r\n idmodule: number;\r\n dsname: string;\r\n dscategory: string;\r\n idmodulealt: string;\r\n}\r\n","export class JacePermission\r\n{\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","export class JaceRole\r\n{\r\n constructor(public idrole: number, public idrolealt: string, public dsrole: string) { }\r\n\r\n dsnote: string;\r\n idparent: number;\r\n sydatains: Date;\r\n syuserins: string;\r\n sydataupd: Date | null;\r\n syuserupd: string;\r\n}","export class User {\r\n id: string;\r\n description: string;\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/classes/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');","/**\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,GAA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WAAW,CAAC,GAAG,CAAC,CAAC,IAAE,CAAC,CAAC,eAAe,CAAC,CAAC;AAC/D,YAAA,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;AACnD,SAAA;KACJ;AAIJ;;MC3BY,UAAU,CAAA;AAMtB;;MCNY,cAAc,CAAA;AAS1B;;MCTY,QAAQ,CAAA;AAElB,IAAA,WAAA,CAAmB,MAAc,EAAS,SAAiB,EAAS,MAAc,EAAA;QAA/D,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAAS,IAAS,CAAA,SAAA,GAAT,SAAS,CAAQ;QAAS,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;KAAK;AAQzF;;MCVY,IAAI,CAAA;AAGhB;;ACHD;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;;ACnBjH;;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/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/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[]): ApplicationMenu {\r\n return new ApplicationMenu(title, null, null, icon, ac, wip, subMenu);\r\n }\r\n\r\n static TopItem(title: string, icon: string, routerLink?: string, ac?: string, queryParams?: {}, 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?: {}, 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: number, 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: number, 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","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{\r\n idmodule: number;\r\n name: string;\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 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 this.Roles = scope.roles.map(x => x.idrolealt);\r\n this.Permissions = scope.permissions.map(x => x.idpermissionalt);\r\n this.Modules = scope.modules.map(x => x.idmodule);\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{\r\n idmodule: number;\r\n dsname: string;\r\n dscategory: string;\r\n idmodulealt: string;\r\n}\r\n","export class JacePermission\r\n{\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","export class JaceRole\r\n{\r\n constructor(public idrole: number, public idrolealt: string, public dsrole: string) { }\r\n\r\n dsnote: string;\r\n idparent: number;\r\n sydatains: Date;\r\n syuserins: string;\r\n sydataupd: Date | null;\r\n syuserupd: 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","// 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');","/**\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,OAAA,GAAP,OAAO,CAAoB;QAC3B,IAAW,CAAA,WAAA,GAAX,WAAW,CAAK;KAAK;IAEhC,OAAO,KAAK,CAAC,KAAa,EAAE,IAAY,EAAE,EAA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AE/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;;ACnBjH;;AAEG;;;;"}
@@ -71,10 +71,10 @@ class SafeUrlPipe {
71
71
  }
72
72
  }
73
73
  SafeUrlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafeUrlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
74
- SafeUrlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SafeUrlPipe, name: "safe-html" });
74
+ SafeUrlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SafeUrlPipe, name: "safe_url" });
75
75
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafeUrlPipe, decorators: [{
76
76
  type: Pipe,
77
- args: [{ name: 'safe-html' }]
77
+ args: [{ name: 'safe_url' }]
78
78
  }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
79
79
 
80
80
  // Angular
@@ -1 +1 @@
1
- {"version":3,"file":"esfaenza-core-pipes.mjs","sources":["../../../projects/core/pipes/src/included_in/included_in.pipe.ts","../../../projects/core/pipes/src/safe_html/safe_html.pipe.ts","../../../projects/core/pipes/src/safe_script/safe_script.pipe.ts","../../../projects/core/pipes/src/safe_style/safe_style.pipe.ts","../../../projects/core/pipes/src/safe_url/safe_url.pipe.ts","../../../projects/core/pipes/src/pipes.module.ts","../../../projects/core/pipes/src/esfaenza-core-pipes.ts"],"sourcesContent":["// Angular\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'included_in' })\r\nexport class IncludedInPipe implements PipeTransform {\r\n\r\n transform<T>(value: T, list: T[])\r\n transform(value: any, list: any[]): any {\r\n if (value == null || list == null || list.length == 0)\r\n return value;\r\n\r\n return list.includes(value);\r\n }\r\n}\r\n","// Angular\r\nimport { DomSanitizer } from \"@angular/platform-browser\";\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'safe_html' })\r\nexport class SafeHtmlPipe implements PipeTransform {\r\n\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(value) {\r\n return this.sanitizer.bypassSecurityTrustHtml(value);\r\n }\r\n}\r\n","// Angular\r\nimport { DomSanitizer } from \"@angular/platform-browser\";\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'safe_script' })\r\nexport class SafeScriptPipe implements PipeTransform {\r\n\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(value) {\r\n return this.sanitizer.bypassSecurityTrustScript(value);\r\n }\r\n}\r\n","// Angular\r\nimport { DomSanitizer } from \"@angular/platform-browser\";\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'safe_style' })\r\nexport class SafeStylePipe implements PipeTransform {\r\n\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(value) {\r\n return this.sanitizer.bypassSecurityTrustStyle(value);\r\n }\r\n}","// Angular\r\nimport { DomSanitizer } from \"@angular/platform-browser\";\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'safe-html' })\r\nexport class SafeUrlPipe implements PipeTransform {\r\n\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(value) {\r\n return this.sanitizer.bypassSecurityTrustUrl(value);\r\n }\r\n}\r\n","// Angular\r\nimport { NgModule } from \"@angular/core\";\r\n\r\n// Pipe\r\nimport { IncludedInPipe } from \"./included_in/included_in.pipe\";\r\nimport { SafeHtmlPipe } from \"./safe_html/safe_html.pipe\";\r\nimport { SafeScriptPipe } from \"./safe_script/safe_script.pipe\";\r\nimport { SafeStylePipe } from \"./safe_style/safe_style.pipe\";\r\nimport { SafeUrlPipe } from \"./safe_url/safe_url.pipe\";\r\n\r\nconst PIPES = [SafeStylePipe, SafeHtmlPipe, SafeScriptPipe, SafeUrlPipe, IncludedInPipe];\r\n\r\n@NgModule({ imports: [], declarations: [...PIPES], exports: [...PIPES] })\r\nexport class PipesModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAAA;MAIa,cAAc,CAAA;IAGvB,SAAS,CAAC,KAAU,EAAE,IAAW,EAAA;AAC7B,QAAA,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC;AACjD,YAAA,OAAO,KAAK,CAAC;AAEjB,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/B;;2GARQ,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;yGAAd,cAAc,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,IAAI;mBAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAA;;;MCEhB,YAAY,CAAA;AAErB,IAAA,WAAA,CAAoB,SAAuB,EAAA;QAAvB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAc;KAAK;AAEhD,IAAA,SAAS,CAAC,KAAK,EAAA;QACX,OAAO,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;KACxD;;yGANQ,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,YAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;uGAAZ,YAAY,EAAA,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KAAK,CAAC,EAAE,CAAA;;;ACZxE;;AAEG;;;;"}
1
+ {"version":3,"file":"esfaenza-core-pipes.mjs","sources":["../../../projects/core/pipes/src/classes/included_in.pipe.ts","../../../projects/core/pipes/src/classes/safe_html.pipe.ts","../../../projects/core/pipes/src/classes/safe_script.pipe.ts","../../../projects/core/pipes/src/classes/safe_style.pipe.ts","../../../projects/core/pipes/src/classes/safe_url.pipe.ts","../../../projects/core/pipes/src/pipes.module.ts","../../../projects/core/pipes/src/esfaenza-core-pipes.ts"],"sourcesContent":["// Angular\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'included_in' })\r\nexport class IncludedInPipe implements PipeTransform {\r\n\r\n transform<T>(value: T, list: T[])\r\n transform(value: any, list: any[]): any {\r\n if (value == null || list == null || list.length == 0)\r\n return value;\r\n\r\n return list.includes(value);\r\n }\r\n}\r\n","// Angular\r\nimport { DomSanitizer } from \"@angular/platform-browser\";\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'safe_html' })\r\nexport class SafeHtmlPipe implements PipeTransform {\r\n\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(value) {\r\n return this.sanitizer.bypassSecurityTrustHtml(value);\r\n }\r\n}\r\n","// Angular\r\nimport { DomSanitizer } from \"@angular/platform-browser\";\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'safe_script' })\r\nexport class SafeScriptPipe implements PipeTransform {\r\n\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(value) {\r\n return this.sanitizer.bypassSecurityTrustScript(value);\r\n }\r\n}\r\n","// Angular\r\nimport { DomSanitizer } from \"@angular/platform-browser\";\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'safe_style' })\r\nexport class SafeStylePipe implements PipeTransform {\r\n\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(value) {\r\n return this.sanitizer.bypassSecurityTrustStyle(value);\r\n }\r\n}","// Angular\r\nimport { DomSanitizer } from \"@angular/platform-browser\";\r\nimport { Pipe, PipeTransform } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'safe_url' })\r\nexport class SafeUrlPipe implements PipeTransform {\r\n\r\n constructor(private sanitizer: DomSanitizer) { }\r\n\r\n transform(value) {\r\n return this.sanitizer.bypassSecurityTrustUrl(value);\r\n }\r\n}\r\n","// Angular\r\nimport { NgModule } from \"@angular/core\";\r\n\r\n// Pipe\r\nimport { IncludedInPipe } from \"./classes/included_in.pipe\";\r\nimport { SafeHtmlPipe } from \"./classes/safe_html.pipe\";\r\nimport { SafeScriptPipe } from \"./classes/safe_script.pipe\";\r\nimport { SafeStylePipe } from \"./classes/safe_style.pipe\";\r\nimport { SafeUrlPipe } from \"./classes/safe_url.pipe\";\r\n\r\nconst PIPES = [SafeStylePipe, SafeHtmlPipe, SafeScriptPipe, SafeUrlPipe, IncludedInPipe];\r\n\r\n@NgModule({ imports: [], declarations: [...PIPES], exports: [...PIPES] })\r\nexport class PipesModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAAA;MAIa,cAAc,CAAA;IAGvB,SAAS,CAAC,KAAU,EAAE,IAAW,EAAA;AAC7B,QAAA,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC;AACjD,YAAA,OAAO,KAAK,CAAC;AAEjB,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/B;;2GARQ,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;yGAAd,cAAc,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,IAAI;mBAAC,EAAE,IAAI,E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AAA,EAAA,EAAA,IAAA,EAAA,WAAW,iBAHT,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,CAAxE,EAAA,OAAA,EAAA,CAAA,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;yGAG1E,WAAW,EAAA,CAAA,CAAA;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBADvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA,EAAE,OAAO,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,CAAA;;;ACZxE;;AAEG;;;;"}
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { Injectable, Optional, Inject } from '@angular/core';
3
3
  import { JaceIdentity, USE_FAKE_ACCESS_TOKEN } from '@esfaenza/core/domain';
4
4
  import * as i1 from 'ngx-cookie-service';
5
+ import { of, Subject } from 'rxjs';
5
6
  import * as i2 from '@angular/common/http';
6
7
  import { HttpErrorResponse, HttpHeaders } from '@angular/common/http';
7
8
  import * as i4$1 from '@angular/router';
@@ -12,10 +13,12 @@ import * as i4 from '@esfaenza/extensions';
12
13
  import { InboundMessageTypes } from '@esfaenza/extensions';
13
14
  import { AdmMessageTypes, MK_ADM } from '@esfaenza/admin-module';
14
15
  import * as customParseFormat from 'dayjs/plugin/customParseFormat';
16
+ import * as isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
17
+ import * as isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
15
18
  import * as isBetween from 'dayjs/plugin/isBetween';
19
+ import * as duration from 'dayjs/plugin/duration';
16
20
  import * as minMax from 'dayjs/plugin/minMax';
17
21
  import * as utc from 'dayjs/plugin/utc';
18
- import { Subject, of } from 'rxjs';
19
22
  import * as i3 from '@esfaenza/signalr-notifications';
20
23
  import * as i5 from '@esfaenza/access-control';
21
24
  import { AccessControlRouteGuard } from '@esfaenza/access-control';
@@ -69,6 +72,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
69
72
  args: [USE_FAKE_ACCESS_TOKEN]
70
73
  }] }]; } });
71
74
 
75
+ // Angular
76
+ class GlobalSearchService {
77
+ constructor() {
78
+ this.Enabled = false;
79
+ }
80
+ /**
81
+ * Effettua una ricerca in base a un termine generico
82
+ *
83
+ * @param term Termine da cercare
84
+ * @returns {SearchResultContainer} Contenitore della ricerca
85
+ */
86
+ search(term) {
87
+ return of(null);
88
+ }
89
+ /**
90
+ * Data la definizione semplice di una colonna restituisce un oggetto che indica se bisogna presentere un link su di essa
91
+ *
92
+ * @param column Colonna per cui verificare la presentazione di un link. Esempio: {id: "IDPARTY", description: "Cod. Controparte"}
93
+ * @returns {{ routePath: string, routeProperties: string[] }} Oggetto che indica un link con i propri binding. Ad esempio: {routePath: "['/pages/parties/parties_details', { 'idModel': '{0}' }]", routeProperties: ["IDPARTY"]}
94
+ */
95
+ generateColumnLink(column) {
96
+ return null;
97
+ }
98
+ }
99
+ GlobalSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GlobalSearchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
100
+ GlobalSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GlobalSearchService });
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GlobalSearchService, decorators: [{
102
+ type: Injectable
103
+ }] });
104
+
72
105
  // Angular
73
106
  class APPErrorHandler {
74
107
  constructor(injector) {
@@ -144,13 +177,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
144
177
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
145
178
 
146
179
  class AppState {
180
+ set Modules(modules) {
181
+ this._modules = modules;
182
+ this.notifyDataChanged("modules.Retrieved", this._modules);
183
+ }
184
+ get Modules() { return this._modules; }
147
185
  constructor(lc, bts, notifications, MessageDef, intercom) {
148
186
  this.lc = lc;
149
187
  this.bts = bts;
150
188
  this.notifications = notifications;
151
189
  this.MessageDef = MessageDef;
152
190
  this.intercom = intercom;
153
- this.Embedded = false;
154
191
  this.redirectingToLogin = false;
155
192
  this.handlingError = false;
156
193
  this.christmasTime = false;
@@ -163,6 +200,9 @@ class AppState {
163
200
  this._dataStream$ = this._data.asObservable();
164
201
  this._subscriptions = new Map();
165
202
  this.ModulesLocalizations = {};
203
+ this.Embedded = false;
204
+ this.EmbeddingLevel = 0;
205
+ this.setupEmbeddability();
166
206
  this.setupDayjs();
167
207
  this.setupSignalRJobListening();
168
208
  this.JaceIdentity = null;
@@ -178,9 +218,89 @@ class AppState {
178
218
  this.halloweenTime = today > lowerBound && today < upperBound;
179
219
  this.intercom.inbounds.subscribe((t) => { this.handleInboundMessage(t); });
180
220
  }
181
- registerNavigation(route) {
221
+ setupEmbeddability() {
222
+ window.onmessage = (event) => {
223
+ // Ignoro i miei messaggi dato che mi interessano solo quelli degli altri iframe
224
+ if (event.source == window && event?.data?.type != "modal-open")
225
+ return;
226
+ if (event?.data?.type == "navigation") {
227
+ console.log(`Window message - Navigation -> ${event?.data?.internalNavigation ? "[internal]" : ""} ${event?.data?.title}`);
228
+ if (event?.data?.internalNavigation)
229
+ this.notifyDataChanged("menu.adjustSubNavigationTo", event?.data?.title);
230
+ else
231
+ this.notifyDataChanged("menu.adjustNavigationTo", event?.data?.title);
232
+ }
233
+ if (event?.data?.type == "modal-open") {
234
+ const wrapper = document.body.getElementsByClassName("main-wrapper")[0];
235
+ let wrapperStyles = window.getComputedStyle(wrapper);
236
+ const wrapperPaddingLeft = parseInt(wrapperStyles.getPropertyValue("padding-left"));
237
+ const wrapperPaddingRight = parseInt(wrapperStyles.getPropertyValue("padding-right"));
238
+ console.log(`Window message - Modal Open -> Backdrop Height: ${event?.data?.backdropHeight}`);
239
+ var topHeight = 116; // valore fisso, distanza fra il top e l'inizio dell'iframe, non sarà mai diverso
240
+ var rightSpace = wrapperPaddingRight; // valore fisso, distanza fra la fine dell'iframe e il lato sinistro dello schermo, non sarà mai diverso
241
+ var leftSpace = this.sidebarWidth + wrapperPaddingLeft;
242
+ let commonStyles = "position: absolute; z-index: 9999; background-color: #000; opacity: 0.5; ";
243
+ wrapper.style.setProperty("overflow", "hidden", "important");
244
+ const top = document.createElement("div");
245
+ top.className = "embedded-modal-top";
246
+ top.style.cssText = commonStyles + `height: ${topHeight}px; top: 0; width: calc(100% - ${leftSpace}px); left: ${leftSpace}px`;
247
+ top.id = "top";
248
+ const left = document.createElement("div");
249
+ left.className = "embedded-modal-left";
250
+ left.style.cssText = commonStyles + `height: 100%; top: 0; width: ${leftSpace}px;`;
251
+ left.id = "left";
252
+ const right = document.createElement("div");
253
+ right.className = "embedded-modal-right";
254
+ right.style.cssText = commonStyles + `height: calc(100% - ${topHeight}px); top: ${topHeight}px; right: 0; width: ${rightSpace}px;`;
255
+ right.id = "right";
256
+ document.body.appendChild(top);
257
+ document.body.appendChild(left);
258
+ document.body.appendChild(right);
259
+ }
260
+ if (event?.data?.type == "modal-close") {
261
+ console.log(`Window message - Modal Close`);
262
+ let wrapper = document.body.getElementsByClassName("main-wrapper")[0];
263
+ wrapper.style.removeProperty("overflow");
264
+ const top = document.getElementById("top");
265
+ const left = document.getElementById("left");
266
+ const right = document.getElementById("right");
267
+ if (top)
268
+ document.body.removeChild(top);
269
+ if (left)
270
+ document.body.removeChild(left);
271
+ if (right)
272
+ document.body.removeChild(right);
273
+ }
274
+ };
275
+ this.subscribe("menu.isCollapsed", () => {
276
+ const wrapper = document.body.getElementsByClassName("main-wrapper")[0];
277
+ let wrapperStyles = window.getComputedStyle(wrapper);
278
+ const wrapperPaddingLeft = parseInt(wrapperStyles.getPropertyValue("padding-left"));
279
+ var leftSpace = this.sidebarWidth + wrapperPaddingLeft;
280
+ const left = document.getElementById("left");
281
+ const top = document.getElementById("top");
282
+ if (top) {
283
+ top.style.setProperty("left", (leftSpace) + "px");
284
+ top.style.setProperty("width", `calc(100% - ${leftSpace}px)`);
285
+ }
286
+ if (left)
287
+ left.style.setProperty("width", leftSpace + "px");
288
+ });
289
+ this.MainWindow = window;
290
+ while (this.MainWindow.parent != this.MainWindow) {
291
+ this.MainWindow = this.MainWindow.parent;
292
+ this.EmbeddingLevel++;
293
+ this.Embedded = true;
294
+ }
295
+ if (this.Embedded)
296
+ document.body.style.setProperty("overflow-y", "auto", "important");
297
+ }
298
+ registerNavigationIfMeaningful(route) {
182
299
  let title = route.data["title"];
183
300
  let internal = route.data["internalNavigation"];
301
+ // Permette di chiamare sto registerNavigation a prescindere e fare opt out se non è una route navigabile
302
+ if (!title)
303
+ return;
184
304
  /*
185
305
  * Parent ({url: [{path: "{module}"}]})
186
306
  * Parent ({url: [{path: ""}]}) (Root del modulo lazy)
@@ -205,11 +325,12 @@ class AppState {
205
325
  dayjs.extend(customParseFormat.default || customParseFormat);
206
326
  dayjs.extend(minMax.default || minMax);
207
327
  dayjs.extend(isBetween.default || isBetween);
328
+ dayjs.extend(isSameOrBefore.default || isSameOrBefore);
329
+ dayjs.extend(isSameOrAfter.default || isSameOrAfter);
330
+ dayjs.extend(duration.default || duration);
208
331
  dayjs.extend(utc.default || utc);
209
332
  // Require e collegamento con la localizzazione per dayjs
210
- import("dayjs/locale/" + this.lc.SmallLocale + ".js").then(locale => {
211
- dayjs.locale(locale);
212
- });
333
+ import("dayjs/locale/" + this.lc.SmallLocale + ".js").then(locale => { dayjs.locale(locale); });
213
334
  }
214
335
  setupSignalRJobListening() {
215
336
  this.notifications.observe(this.MessageDef.IN_JobProgressNotification).subscribe((ev) => {
@@ -227,6 +348,10 @@ class AppState {
227
348
  };
228
349
  switch (ev.type) {
229
350
  case "Started":
351
+ if (this.jobWithIdsCache[ev.instance]) {
352
+ console.warn("Job already registered on the 'Started' callback");
353
+ return;
354
+ }
230
355
  this.jobWithIdsCache[ev.instance] = job;
231
356
  this.allJobs.splice(0, 0, job);
232
357
  break;
@@ -296,9 +421,7 @@ AppState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "1
296
421
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AppState, decorators: [{
297
422
  type: Injectable,
298
423
  args: [{ providedIn: "root" }]
299
- }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: TokenService }, { type: i3.NotificationsService }, { type: i3.BaseMessageService }, { type: i4.InterComService }]; } });
300
- class ApplicationJob {
301
- }
424
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: TokenService }, { type: i3.NotificationsService }, { type: i3.BaseMessageService }, { type: i4.InterComService }]; } });
302
425
 
303
426
  // Angular
304
427
  class HTTPServiceExtensions {
@@ -380,6 +503,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
380
503
  type: Injectable
381
504
  }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: TokenService }, { type: AppState }, { type: i4$1.Router }, { type: i5.AccessControlService }, { type: i4.MessageService }]; } });
382
505
 
506
+ // Angular
507
+ class MenuFilteringService {
508
+ /**
509
+ * Applica un filtro agli elementi di menù in modo da poterli filtrare in base a condizioni arbitrarie (inclusi check lato BE)
510
+ *
511
+ * @param rawMenus Menù originali, non filtrati
512
+ * @returns {Observable<ApplicationMenu[]>} Menù filtrati
513
+ */
514
+ filter(rawMenus) {
515
+ return of(rawMenus);
516
+ }
517
+ }
518
+ MenuFilteringService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MenuFilteringService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
519
+ MenuFilteringService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MenuFilteringService });
520
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MenuFilteringService, decorators: [{
521
+ type: Injectable
522
+ }] });
523
+
524
+ // Angular
525
+ class CompletedJobRedirectionService {
526
+ /**
527
+ * Effettua un'operazione di redirect basata sul Job Completato
528
+ *
529
+ * @param completedJob Job appena completato per cui effettuare un redirect
530
+ */
531
+ redirect(completedJob) {
532
+ }
533
+ }
534
+ CompletedJobRedirectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompletedJobRedirectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
535
+ CompletedJobRedirectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompletedJobRedirectionService });
536
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompletedJobRedirectionService, decorators: [{
537
+ type: Injectable
538
+ }] });
539
+
383
540
  // Angular
384
541
  class SessionRetriever {
385
542
  constructor(bts, router) {
@@ -590,5 +747,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
590
747
  * Generated bundle index. Do not edit.
591
748
  */
592
749
 
593
- export { APPErrorHandler, AppState, ApplicationCachePersistor, ApplicationJob, ApplicationPreferencesPersistor, BaseRouterGuard, HTTPServiceExtensions, OutZoneEventPlugin, SessionRetriever, TokenService };
750
+ export { APPErrorHandler, AppState, ApplicationCachePersistor, ApplicationPreferencesPersistor, BaseRouterGuard, CompletedJobRedirectionService, GlobalSearchService, HTTPServiceExtensions, MenuFilteringService, OutZoneEventPlugin, SessionRetriever, TokenService };
594
751
  //# sourceMappingURL=esfaenza-core-services.mjs.map