@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,16 +44,31 @@ class EnvOptions {
39
44
  }
40
45
  ;
41
46
 
42
- class AccountScope {
43
- constructor(modules = [], roles = [], permissions = []) {
44
- this.modules = modules;
45
- this.roles = roles;
46
- this.permissions = permissions;
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;
47
69
  }
48
70
  }
49
71
 
50
- class ActiveModuleView {
51
- }
52
72
  class CategoriesWithModules {
53
73
  constructor(module) {
54
74
  var _a;
@@ -57,16 +77,22 @@ class CategoriesWithModules {
57
77
  }
58
78
  }
59
79
 
80
+ class AccountScope {
81
+ constructor(modules = [], roles = [], permissions = []) {
82
+ this.modules = modules;
83
+ this.roles = roles;
84
+ this.permissions = permissions;
85
+ }
86
+ }
87
+
88
+ class ActiveModuleView {
89
+ }
90
+
60
91
  class JaceAccount {
61
- }
62
- class JaceUser {
63
92
  }
64
93
 
65
- class BaseIdentity {
66
- }
67
- class JaceIdentity extends BaseIdentity {
94
+ class JaceIdentity {
68
95
  constructor(scope = null) {
69
- super();
70
96
  this.Roles = [];
71
97
  this.Modules = [];
72
98
  this.Permissions = [];
@@ -92,7 +118,21 @@ class JaceRole {
92
118
  }
93
119
  }
94
120
 
95
- class User {
121
+ class JaceUser {
122
+ }
123
+
124
+ class SearchResultContainer {
125
+ constructor(results) {
126
+ this.results = results;
127
+ }
128
+ }
129
+
130
+ class SearchResult {
131
+ constructor(description, columns, items) {
132
+ this.description = description;
133
+ this.columns = columns;
134
+ this.items = items;
135
+ }
96
136
  }
97
137
 
98
138
  // Angular
@@ -109,5 +149,5 @@ const USE_FAKE_ACCESS_TOKEN = new InjectionToken('USE_FAKE_ACCESS_TOKEN');
109
149
  * Generated bundle index. Do not edit.
110
150
  */
111
151
 
112
- export { AccountScope, ActiveModuleView, ApplicationMenu, BaseIdentity, CategoriesWithModules, EnvOptions, JaceAccount, JaceIdentity, JaceModule, JacePermission, JaceRole, JaceUser, MENU, MENU_LOCALIZATION, REDIRECT_MAP, USE_FAKE_ACCESS_TOKEN, User };
152
+ 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 };
113
153
  //# 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;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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GAAG,EAAE,CAAC;AAClB,QAAA,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;AACtB,QAAA,IAAG,KAAK,EAAC;AACL,YAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAE,CAAC,CAAC,SAAS,CAAC,CAAC;AAC7C,YAAA,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,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;AAA/D,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AAAS,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAQ;AAAS,QAAA,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;AAPhB,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;AACb,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAS;AACb,QAAA,IAAU,CAAA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AAT,SAAS,CAAQ;AAAS,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;KAAK;AAQzF;;MCTY,QAAQ,CAAA;AAQpB;;MCPY,qBAAqB,CAAA;AAC9B,IAAA,WAAA,CAAmB,OAAuB,EAAA;AAAvB,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAgB;KAAK;AAClD;;MCAY,YAAY,CAAA;AAErB,IAAA,WAAA,CACW,WAAmB,EACnB,OAAmB,EACnB,KAAoB,EAAA;AAFpB,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAQ;AACnB,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAY;AACnB,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAe;KAC1B;AAIR;;ACdD;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;;;;"}
@@ -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,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AA,QAAA,EAAA,CAAA,CAAA;AAAX,WAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,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;YAAC,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;;;;"}
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 *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AA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;sGAAX,WAAW,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBADvB,IAAI;mBAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;;;ACJ1B;AAUA,MAAM,KAAK,GAAG,CAAC,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;MAG5E,WAAW,CAAA;;wGAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAX,WAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,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;YAAC,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';
@@ -71,6 +74,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
71
74
  }] }];
72
75
  } });
73
76
 
77
+ // Angular
78
+ class GlobalSearchService {
79
+ constructor() {
80
+ this.Enabled = false;
81
+ }
82
+ /**
83
+ * Effettua una ricerca in base a un termine generico
84
+ *
85
+ * @param term Termine da cercare
86
+ * @returns {SearchResultContainer} Contenitore della ricerca
87
+ */
88
+ search(term) {
89
+ return of(null);
90
+ }
91
+ /**
92
+ * Data la definizione semplice di una colonna restituisce un oggetto che indica se bisogna presentere un link su di essa
93
+ *
94
+ * @param column Colonna per cui verificare la presentazione di un link. Esempio: {id: "IDPARTY", description: "Cod. Controparte"}
95
+ * @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"]}
96
+ */
97
+ generateColumnLink(column) {
98
+ return null;
99
+ }
100
+ }
101
+ GlobalSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GlobalSearchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
102
+ GlobalSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GlobalSearchService });
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GlobalSearchService, decorators: [{
104
+ type: Injectable
105
+ }] });
106
+
74
107
  // Angular
75
108
  class APPErrorHandler {
76
109
  constructor(injector) {
@@ -146,13 +179,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
146
179
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
147
180
 
148
181
  class AppState {
182
+ set Modules(modules) {
183
+ this._modules = modules;
184
+ this.notifyDataChanged("modules.Retrieved", this._modules);
185
+ }
186
+ get Modules() { return this._modules; }
149
187
  constructor(lc, bts, notifications, MessageDef, intercom) {
150
188
  this.lc = lc;
151
189
  this.bts = bts;
152
190
  this.notifications = notifications;
153
191
  this.MessageDef = MessageDef;
154
192
  this.intercom = intercom;
155
- this.Embedded = false;
156
193
  this.redirectingToLogin = false;
157
194
  this.handlingError = false;
158
195
  this.christmasTime = false;
@@ -165,6 +202,9 @@ class AppState {
165
202
  this._dataStream$ = this._data.asObservable();
166
203
  this._subscriptions = new Map();
167
204
  this.ModulesLocalizations = {};
205
+ this.Embedded = false;
206
+ this.EmbeddingLevel = 0;
207
+ this.setupEmbeddability();
168
208
  this.setupDayjs();
169
209
  this.setupSignalRJobListening();
170
210
  this.JaceIdentity = null;
@@ -180,10 +220,91 @@ class AppState {
180
220
  this.halloweenTime = today > lowerBound && today < upperBound;
181
221
  this.intercom.inbounds.subscribe((t) => { this.handleInboundMessage(t); });
182
222
  }
183
- registerNavigation(route) {
223
+ setupEmbeddability() {
224
+ window.onmessage = (event) => {
225
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
226
+ // Ignoro i miei messaggi dato che mi interessano solo quelli degli altri iframe
227
+ if (event.source == window && ((_a = event === null || event === void 0 ? void 0 : event.data) === null || _a === void 0 ? void 0 : _a.type) != "modal-open")
228
+ return;
229
+ if (((_b = event === null || event === void 0 ? void 0 : event.data) === null || _b === void 0 ? void 0 : _b.type) == "navigation") {
230
+ console.log(`Window message - Navigation -> ${((_c = event === null || event === void 0 ? void 0 : event.data) === null || _c === void 0 ? void 0 : _c.internalNavigation) ? "[internal]" : ""} ${(_d = event === null || event === void 0 ? void 0 : event.data) === null || _d === void 0 ? void 0 : _d.title}`);
231
+ if ((_e = event === null || event === void 0 ? void 0 : event.data) === null || _e === void 0 ? void 0 : _e.internalNavigation)
232
+ this.notifyDataChanged("menu.adjustSubNavigationTo", (_f = event === null || event === void 0 ? void 0 : event.data) === null || _f === void 0 ? void 0 : _f.title);
233
+ else
234
+ this.notifyDataChanged("menu.adjustNavigationTo", (_g = event === null || event === void 0 ? void 0 : event.data) === null || _g === void 0 ? void 0 : _g.title);
235
+ }
236
+ if (((_h = event === null || event === void 0 ? void 0 : event.data) === null || _h === void 0 ? void 0 : _h.type) == "modal-open") {
237
+ const wrapper = document.body.getElementsByClassName("main-wrapper")[0];
238
+ let wrapperStyles = window.getComputedStyle(wrapper);
239
+ const wrapperPaddingLeft = parseInt(wrapperStyles.getPropertyValue("padding-left"));
240
+ const wrapperPaddingRight = parseInt(wrapperStyles.getPropertyValue("padding-right"));
241
+ console.log(`Window message - Modal Open -> Backdrop Height: ${(_j = event === null || event === void 0 ? void 0 : event.data) === null || _j === void 0 ? void 0 : _j.backdropHeight}`);
242
+ var topHeight = 116; // valore fisso, distanza fra il top e l'inizio dell'iframe, non sarà mai diverso
243
+ var rightSpace = wrapperPaddingRight; // valore fisso, distanza fra la fine dell'iframe e il lato sinistro dello schermo, non sarà mai diverso
244
+ var leftSpace = this.sidebarWidth + wrapperPaddingLeft;
245
+ let commonStyles = "position: absolute; z-index: 9999; background-color: #000; opacity: 0.5; ";
246
+ wrapper.style.setProperty("overflow", "hidden", "important");
247
+ const top = document.createElement("div");
248
+ top.className = "embedded-modal-top";
249
+ top.style.cssText = commonStyles + `height: ${topHeight}px; top: 0; width: calc(100% - ${leftSpace}px); left: ${leftSpace}px`;
250
+ top.id = "top";
251
+ const left = document.createElement("div");
252
+ left.className = "embedded-modal-left";
253
+ left.style.cssText = commonStyles + `height: 100%; top: 0; width: ${leftSpace}px;`;
254
+ left.id = "left";
255
+ const right = document.createElement("div");
256
+ right.className = "embedded-modal-right";
257
+ right.style.cssText = commonStyles + `height: calc(100% - ${topHeight}px); top: ${topHeight}px; right: 0; width: ${rightSpace}px;`;
258
+ right.id = "right";
259
+ document.body.appendChild(top);
260
+ document.body.appendChild(left);
261
+ document.body.appendChild(right);
262
+ }
263
+ if (((_k = event === null || event === void 0 ? void 0 : event.data) === null || _k === void 0 ? void 0 : _k.type) == "modal-close") {
264
+ console.log(`Window message - Modal Close`);
265
+ let wrapper = document.body.getElementsByClassName("main-wrapper")[0];
266
+ wrapper.style.removeProperty("overflow");
267
+ const top = document.getElementById("top");
268
+ const left = document.getElementById("left");
269
+ const right = document.getElementById("right");
270
+ if (top)
271
+ document.body.removeChild(top);
272
+ if (left)
273
+ document.body.removeChild(left);
274
+ if (right)
275
+ document.body.removeChild(right);
276
+ }
277
+ };
278
+ this.subscribe("menu.isCollapsed", () => {
279
+ const wrapper = document.body.getElementsByClassName("main-wrapper")[0];
280
+ let wrapperStyles = window.getComputedStyle(wrapper);
281
+ const wrapperPaddingLeft = parseInt(wrapperStyles.getPropertyValue("padding-left"));
282
+ var leftSpace = this.sidebarWidth + wrapperPaddingLeft;
283
+ const left = document.getElementById("left");
284
+ const top = document.getElementById("top");
285
+ if (top) {
286
+ top.style.setProperty("left", (leftSpace) + "px");
287
+ top.style.setProperty("width", `calc(100% - ${leftSpace}px)`);
288
+ }
289
+ if (left)
290
+ left.style.setProperty("width", leftSpace + "px");
291
+ });
292
+ this.MainWindow = window;
293
+ while (this.MainWindow.parent != this.MainWindow) {
294
+ this.MainWindow = this.MainWindow.parent;
295
+ this.EmbeddingLevel++;
296
+ this.Embedded = true;
297
+ }
298
+ if (this.Embedded)
299
+ document.body.style.setProperty("overflow-y", "auto", "important");
300
+ }
301
+ registerNavigationIfMeaningful(route) {
184
302
  var _a, _b, _c;
185
303
  let title = route.data["title"];
186
304
  let internal = route.data["internalNavigation"];
305
+ // Permette di chiamare sto registerNavigation a prescindere e fare opt out se non è una route navigabile
306
+ if (!title)
307
+ return;
187
308
  /*
188
309
  * Parent ({url: [{path: "{module}"}]})
189
310
  * Parent ({url: [{path: ""}]}) (Root del modulo lazy)
@@ -208,11 +329,12 @@ class AppState {
208
329
  dayjs.extend(customParseFormat.default || customParseFormat);
209
330
  dayjs.extend(minMax.default || minMax);
210
331
  dayjs.extend(isBetween.default || isBetween);
332
+ dayjs.extend(isSameOrBefore.default || isSameOrBefore);
333
+ dayjs.extend(isSameOrAfter.default || isSameOrAfter);
334
+ dayjs.extend(duration.default || duration);
211
335
  dayjs.extend(utc.default || utc);
212
336
  // Require e collegamento con la localizzazione per dayjs
213
- import("dayjs/locale/" + this.lc.SmallLocale + ".js").then(locale => {
214
- dayjs.locale(locale);
215
- });
337
+ import("dayjs/locale/" + this.lc.SmallLocale + ".js").then(locale => { dayjs.locale(locale); });
216
338
  }
217
339
  setupSignalRJobListening() {
218
340
  this.notifications.observe(this.MessageDef.IN_JobProgressNotification).subscribe((ev) => {
@@ -230,6 +352,10 @@ class AppState {
230
352
  };
231
353
  switch (ev.type) {
232
354
  case "Started":
355
+ if (this.jobWithIdsCache[ev.instance]) {
356
+ console.warn("Job already registered on the 'Started' callback");
357
+ return;
358
+ }
233
359
  this.jobWithIdsCache[ev.instance] = job;
234
360
  this.allJobs.splice(0, 0, job);
235
361
  break;
@@ -299,9 +425,7 @@ AppState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "1
299
425
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AppState, decorators: [{
300
426
  type: Injectable,
301
427
  args: [{ providedIn: "root" }]
302
- }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: TokenService }, { type: i3.NotificationsService }, { type: i3.BaseMessageService }, { type: i4.InterComService }]; } });
303
- class ApplicationJob {
304
- }
428
+ }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: TokenService }, { type: i3.NotificationsService }, { type: i3.BaseMessageService }, { type: i4.InterComService }]; } });
305
429
 
306
430
  // Angular
307
431
  class HTTPServiceExtensions {
@@ -383,6 +507,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
383
507
  type: Injectable
384
508
  }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: TokenService }, { type: AppState }, { type: i4$1.Router }, { type: i5.AccessControlService }, { type: i4.MessageService }]; } });
385
509
 
510
+ // Angular
511
+ class MenuFilteringService {
512
+ /**
513
+ * Applica un filtro agli elementi di menù in modo da poterli filtrare in base a condizioni arbitrarie (inclusi check lato BE)
514
+ *
515
+ * @param rawMenus Menù originali, non filtrati
516
+ * @returns {Observable<ApplicationMenu[]>} Menù filtrati
517
+ */
518
+ filter(rawMenus) {
519
+ return of(rawMenus);
520
+ }
521
+ }
522
+ MenuFilteringService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MenuFilteringService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
523
+ MenuFilteringService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MenuFilteringService });
524
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MenuFilteringService, decorators: [{
525
+ type: Injectable
526
+ }] });
527
+
528
+ // Angular
529
+ class CompletedJobRedirectionService {
530
+ /**
531
+ * Effettua un'operazione di redirect basata sul Job Completato
532
+ *
533
+ * @param completedJob Job appena completato per cui effettuare un redirect
534
+ */
535
+ redirect(completedJob) {
536
+ }
537
+ }
538
+ CompletedJobRedirectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompletedJobRedirectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
539
+ CompletedJobRedirectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompletedJobRedirectionService });
540
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompletedJobRedirectionService, decorators: [{
541
+ type: Injectable
542
+ }] });
543
+
386
544
  // Angular
387
545
  class SessionRetriever {
388
546
  constructor(bts, router) {
@@ -594,5 +752,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
594
752
  * Generated bundle index. Do not edit.
595
753
  */
596
754
 
597
- export { APPErrorHandler, AppState, ApplicationCachePersistor, ApplicationJob, ApplicationPreferencesPersistor, BaseRouterGuard, HTTPServiceExtensions, OutZoneEventPlugin, SessionRetriever, TokenService };
755
+ export { APPErrorHandler, AppState, ApplicationCachePersistor, ApplicationPreferencesPersistor, BaseRouterGuard, CompletedJobRedirectionService, GlobalSearchService, HTTPServiceExtensions, MenuFilteringService, OutZoneEventPlugin, SessionRetriever, TokenService };
598
756
  //# sourceMappingURL=esfaenza-core-services.mjs.map