@acorex/modules 18.1.5 → 18.2.0

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 (194) hide show
  1. package/application-management/index.d.ts +2 -0
  2. package/application-management/lib/application-management.module.d.ts +0 -2
  3. package/application-management/lib/application-management.route.d.ts +2 -0
  4. package/application-management/lib/application-management.service.d.ts +14 -3
  5. package/application-management/lib/application-management.source.d.ts +7 -0
  6. package/application-management/lib/application-management.types.d.ts +50 -0
  7. package/application-management/lib/entity.loader.d.ts +9 -0
  8. package/application-management/lib/menu.provider.d.ts +5 -0
  9. package/application-management/lib/services/application-management.service.d.ts +10 -0
  10. package/application-management/lib/services/module-management.service.d.ts +10 -0
  11. package/auth/lib/auth.module.d.ts +4 -7
  12. package/auth/lib/menu.provider.d.ts +5 -0
  13. package/backend/lib/data/api/data-provider.d.ts +1 -0
  14. package/backend/lib/data/index.d.ts +0 -1
  15. package/backend/lib/data/local/local-data-provider.d.ts +1 -0
  16. package/conversation/README.md +3 -0
  17. package/conversation/index.d.ts +5 -0
  18. package/conversation/lib/comments/comment-list-view.component.d.ts +66 -0
  19. package/conversation/lib/comments/comment-lookup-popup.component.d.ts +10 -0
  20. package/conversation/lib/comments/comment.module.d.ts +25 -0
  21. package/conversation/lib/comments/comments.service.d.ts +5 -0
  22. package/conversation/lib/comments/comments.type.d.ts +74 -0
  23. package/conversation/lib/conversation.module.d.ts +8 -0
  24. package/esm2022/application-management/index.mjs +3 -1
  25. package/esm2022/application-management/lib/application-management.module.mjs +27 -47
  26. package/esm2022/application-management/lib/application-management.route.mjs +29 -0
  27. package/esm2022/application-management/lib/application-management.service.mjs +15 -15
  28. package/esm2022/application-management/lib/application-management.source.mjs +8 -0
  29. package/esm2022/application-management/lib/application-management.types.mjs +2 -0
  30. package/esm2022/application-management/lib/entities/applications.entity.mjs +8 -8
  31. package/esm2022/application-management/lib/entities/modules.entity.mjs +12 -15
  32. package/esm2022/application-management/lib/entities/property.entity.mjs +1 -2
  33. package/esm2022/application-management/lib/entity.loader.mjs +46 -0
  34. package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +3 -3
  35. package/esm2022/application-management/lib/menu.provider.mjs +30 -0
  36. package/esm2022/application-management/lib/services/application-management.service.mjs +17 -0
  37. package/esm2022/application-management/lib/services/module-management.service.mjs +17 -0
  38. package/esm2022/auth/lib/account/app-chooser/app-chooser-slot.component.mjs +2 -2
  39. package/esm2022/auth/lib/account/profile/profile-slot.component.mjs +7 -4
  40. package/esm2022/auth/lib/auth.module.mjs +20 -14
  41. package/esm2022/auth/lib/login/password/password.component.mjs +2 -2
  42. package/esm2022/auth/lib/menu.provider.mjs +53 -0
  43. package/esm2022/backend/lib/backend.module.mjs +22 -26
  44. package/esm2022/backend/lib/data/api/data-provider.mjs +9 -1
  45. package/esm2022/backend/lib/data/index.mjs +1 -2
  46. package/esm2022/backend/lib/data/local/local-data-provider.mjs +11 -1
  47. package/esm2022/conversation/acorex-modules-conversation.mjs +5 -0
  48. package/esm2022/conversation/index.mjs +6 -0
  49. package/esm2022/conversation/lib/comments/comment-list-view.component.mjs +393 -0
  50. package/esm2022/conversation/lib/comments/comment-lookup-popup.component.mjs +56 -0
  51. package/esm2022/conversation/lib/comments/comment.module.mjs +89 -0
  52. package/esm2022/conversation/lib/comments/comments.service.mjs +4 -0
  53. package/esm2022/conversation/lib/comments/comments.type.mjs +2 -0
  54. package/esm2022/conversation/lib/conversation.module.mjs +17 -0
  55. package/esm2022/form-management/lib/form-management.module.mjs +32 -9
  56. package/esm2022/form-management/lib/menu.provider.mjs +35 -0
  57. package/esm2022/notification-management/index.mjs +3 -1
  58. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +8 -16
  59. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.mjs +31 -7
  60. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.mjs +3 -3
  61. package/esm2022/notification-management/lib/entities/my-notification.mjs +243 -0
  62. package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +2 -3
  63. package/esm2022/notification-management/lib/entities/notification-log.entity.mjs +180 -0
  64. package/esm2022/notification-management/lib/entity.loader.mjs +41 -0
  65. package/esm2022/notification-management/lib/menu.provider.mjs +57 -0
  66. package/esm2022/notification-management/lib/notification-management-mock-data.mjs +2 -2
  67. package/esm2022/notification-management/lib/notification-management.module.mjs +34 -39
  68. package/esm2022/notification-management/lib/notification-management.type.mjs +1 -1
  69. package/esm2022/notification-management/lib/notification.service.mjs +1 -1
  70. package/esm2022/{language-management/acorex-modules-language-management.mjs → platform-management/acorex-modules-platform-management.mjs} +1 -1
  71. package/esm2022/platform-management/index.mjs +5 -0
  72. package/esm2022/platform-management/lib/comments/comment-management.service.mjs +18 -0
  73. package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +295 -0
  74. package/esm2022/platform-management/lib/global-variables/entity.loader.mjs +26 -0
  75. package/esm2022/platform-management/lib/global-variables/global-variables.service.mjs +16 -0
  76. package/esm2022/platform-management/lib/global-variables/global-variables.types.mjs +2 -0
  77. package/esm2022/platform-management/lib/global-variables/index.mjs +5 -0
  78. package/esm2022/platform-management/lib/languages/entities/language.entity.mjs +234 -0
  79. package/esm2022/platform-management/lib/languages/entity.loader.mjs +26 -0
  80. package/esm2022/platform-management/lib/languages/index.mjs +5 -0
  81. package/esm2022/platform-management/lib/languages/language-management.service.mjs +16 -0
  82. package/esm2022/platform-management/lib/languages/language.types.mjs +2 -0
  83. package/esm2022/platform-management/lib/menu.provider.mjs +52 -0
  84. package/esm2022/platform-management/lib/platform-management.module.mjs +82 -0
  85. package/esm2022/template-management/index.mjs +7 -3
  86. package/esm2022/template-management/lib/entities/category.entity.mjs +234 -0
  87. package/esm2022/template-management/lib/entities/index.mjs +4 -0
  88. package/esm2022/template-management/lib/entities/template-variable.entity.mjs +124 -120
  89. package/esm2022/template-management/lib/entities/text-template.entity.mjs +386 -0
  90. package/esm2022/template-management/lib/entity.loader.mjs +36 -0
  91. package/esm2022/template-management/lib/menu.provider.mjs +43 -0
  92. package/esm2022/template-management/lib/template-management.module.mjs +53 -37
  93. package/esm2022/template-management/lib/template-management.types.mjs +2 -0
  94. package/esm2022/template-management/lib/template.service.mjs +17 -0
  95. package/esm2022/template-management/lib/text-management.source.mjs +3 -0
  96. package/esm2022/template-management/lib/text-template-category.service.mjs +17 -0
  97. package/fesm2022/{acorex-modules-application-management-module-designer.component-CFLXuP2G.mjs → acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs} +2 -2
  98. package/fesm2022/{acorex-modules-application-management-module-designer.component-CFLXuP2G.mjs.map → acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs.map} +1 -1
  99. package/fesm2022/acorex-modules-application-management.mjs +191 -81
  100. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  101. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-iGiPFEeb.mjs → acorex-modules-auth-acorex-modules-auth-D2WBJhj6.mjs} +86 -26
  102. package/fesm2022/acorex-modules-auth-acorex-modules-auth-D2WBJhj6.mjs.map +1 -0
  103. package/fesm2022/{acorex-modules-auth-app-chooser.component-BB3SIzCP.mjs → acorex-modules-auth-app-chooser.component-B7BwymT_.mjs} +2 -2
  104. package/fesm2022/{acorex-modules-auth-app-chooser.component-BB3SIzCP.mjs.map → acorex-modules-auth-app-chooser.component-B7BwymT_.mjs.map} +1 -1
  105. package/fesm2022/{acorex-modules-auth-login.module-ChEv9c5I.mjs → acorex-modules-auth-login.module-BjvPlYQZ.mjs} +4 -4
  106. package/fesm2022/{acorex-modules-auth-login.module-ChEv9c5I.mjs.map → acorex-modules-auth-login.module-BjvPlYQZ.mjs.map} +1 -1
  107. package/fesm2022/{acorex-modules-auth-master.layout-CZv3BD5c.mjs → acorex-modules-auth-master.layout-CeqMPrx8.mjs} +2 -2
  108. package/fesm2022/{acorex-modules-auth-master.layout-CZv3BD5c.mjs.map → acorex-modules-auth-master.layout-CeqMPrx8.mjs.map} +1 -1
  109. package/fesm2022/{acorex-modules-auth-password.component-CxZ1weks.mjs → acorex-modules-auth-password.component-87NrYq3i.mjs} +3 -3
  110. package/fesm2022/acorex-modules-auth-password.component-87NrYq3i.mjs.map +1 -0
  111. package/fesm2022/{acorex-modules-auth-password.component-CPWiBXdG.mjs → acorex-modules-auth-password.component-X3BUidi1.mjs} +2 -2
  112. package/fesm2022/{acorex-modules-auth-password.component-CPWiBXdG.mjs.map → acorex-modules-auth-password.component-X3BUidi1.mjs.map} +1 -1
  113. package/fesm2022/{acorex-modules-auth-routes-C7r2Jm6s.mjs → acorex-modules-auth-routes-D1JZT2cF.mjs} +2 -2
  114. package/fesm2022/{acorex-modules-auth-routes-C7r2Jm6s.mjs.map → acorex-modules-auth-routes-D1JZT2cF.mjs.map} +1 -1
  115. package/fesm2022/{acorex-modules-auth-two-factor.module-BgkJYe7T.mjs → acorex-modules-auth-two-factor.module-C28ix6Wr.mjs} +2 -2
  116. package/fesm2022/{acorex-modules-auth-two-factor.module-BgkJYe7T.mjs.map → acorex-modules-auth-two-factor.module-C28ix6Wr.mjs.map} +1 -1
  117. package/fesm2022/acorex-modules-auth.mjs +1 -1
  118. package/fesm2022/acorex-modules-backend.mjs +40 -232
  119. package/fesm2022/acorex-modules-backend.mjs.map +1 -1
  120. package/fesm2022/acorex-modules-conversation.mjs +550 -0
  121. package/fesm2022/acorex-modules-conversation.mjs.map +1 -0
  122. package/fesm2022/acorex-modules-form-management.mjs +63 -7
  123. package/fesm2022/acorex-modules-form-management.mjs.map +1 -1
  124. package/fesm2022/acorex-modules-notification-management.mjs +594 -63
  125. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  126. package/fesm2022/acorex-modules-platform-management.mjs +757 -0
  127. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -0
  128. package/fesm2022/acorex-modules-template-management.mjs +618 -204
  129. package/fesm2022/acorex-modules-template-management.mjs.map +1 -1
  130. package/form-management/lib/form-management.module.d.ts +2 -2
  131. package/form-management/lib/menu.provider.d.ts +5 -0
  132. package/notification-management/index.d.ts +2 -0
  133. package/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.d.ts +0 -4
  134. package/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.d.ts +7 -2
  135. package/{template-management/lib/entities/global-template.entity.d.ts → notification-management/lib/entities/my-notification.d.ts} +1 -1
  136. package/notification-management/lib/entities/notification-log.entity.d.ts +3 -0
  137. package/notification-management/lib/entity.loader.d.ts +9 -0
  138. package/notification-management/lib/menu.provider.d.ts +5 -0
  139. package/notification-management/lib/notification-management-mock-data.d.ts +2 -3
  140. package/notification-management/lib/notification-management.module.d.ts +1 -7
  141. package/notification-management/lib/notification-management.service.d.ts +2 -2
  142. package/notification-management/lib/notification-management.type.d.ts +1 -1
  143. package/notification-management/lib/notification.service.d.ts +3 -4
  144. package/package.json +18 -12
  145. package/platform-management/README.md +4 -0
  146. package/platform-management/index.d.ts +4 -0
  147. package/platform-management/lib/comments/comment-management.service.d.ts +10 -0
  148. package/platform-management/lib/global-variables/entities/global-variable.entity.d.ts +3 -0
  149. package/platform-management/lib/global-variables/entity.loader.d.ts +9 -0
  150. package/platform-management/lib/global-variables/global-variables.service.d.ts +10 -0
  151. package/platform-management/lib/global-variables/global-variables.types.d.ts +7 -0
  152. package/platform-management/lib/global-variables/index.d.ts +4 -0
  153. package/platform-management/lib/languages/entity.loader.d.ts +9 -0
  154. package/platform-management/lib/languages/index.d.ts +4 -0
  155. package/platform-management/lib/languages/language-management.service.d.ts +10 -0
  156. package/platform-management/lib/languages/language.types.d.ts +5 -0
  157. package/platform-management/lib/menu.provider.d.ts +5 -0
  158. package/platform-management/lib/platform-management.module.d.ts +6 -0
  159. package/template-management/index.d.ts +6 -2
  160. package/template-management/lib/entities/category.entity.d.ts +3 -0
  161. package/template-management/lib/entities/index.d.ts +3 -0
  162. package/template-management/lib/entities/template-variable.entity.d.ts +1 -1
  163. package/template-management/lib/entities/text-template.entity.d.ts +3 -0
  164. package/template-management/lib/entity.loader.d.ts +9 -0
  165. package/template-management/lib/menu.provider.d.ts +5 -0
  166. package/template-management/lib/template-management.module.d.ts +4 -10
  167. package/template-management/lib/template-management.types.d.ts +19 -0
  168. package/template-management/lib/template.service.d.ts +10 -0
  169. package/template-management/lib/text-management.source.d.ts +2 -0
  170. package/template-management/lib/text-template-category.service.d.ts +10 -0
  171. package/backend/lib/data/api/comment.mock.service.d.ts +0 -62
  172. package/backend/lib/data/api/notification.mock.service.d.ts +0 -34
  173. package/esm2022/backend/lib/data/api/comment.mock.service.mjs +0 -142
  174. package/esm2022/backend/lib/data/api/notification.mock.service.mjs +0 -71
  175. package/esm2022/language-management/index.mjs +0 -2
  176. package/esm2022/language-management/lib/entities/language.entity.mjs +0 -242
  177. package/esm2022/language-management/lib/language-management.module.mjs +0 -39
  178. package/esm2022/language-management/lib/notification-management.service.mjs +0 -23
  179. package/esm2022/template-management/lib/entities/global-template.entity.mjs +0 -298
  180. package/esm2022/template-management/lib/template-management-mock-data.mjs +0 -11
  181. package/esm2022/template-management/lib/template-management.service.mjs +0 -24
  182. package/fesm2022/acorex-modules-auth-acorex-modules-auth-iGiPFEeb.mjs.map +0 -1
  183. package/fesm2022/acorex-modules-auth-password.component-CxZ1weks.mjs.map +0 -1
  184. package/fesm2022/acorex-modules-language-management-language.entity-CwD5FHGc.mjs +0 -266
  185. package/fesm2022/acorex-modules-language-management-language.entity-CwD5FHGc.mjs.map +0 -1
  186. package/fesm2022/acorex-modules-language-management.mjs +0 -46
  187. package/fesm2022/acorex-modules-language-management.mjs.map +0 -1
  188. package/language-management/README.md +0 -3
  189. package/language-management/index.d.ts +0 -1
  190. package/language-management/lib/language-management.module.d.ts +0 -12
  191. package/language-management/lib/notification-management.service.d.ts +0 -9
  192. package/template-management/lib/template-management-mock-data.d.ts +0 -7
  193. package/template-management/lib/template-management.service.d.ts +0 -9
  194. /package/{language-management/lib → platform-management/lib/languages}/entities/language.entity.d.ts +0 -0
@@ -0,0 +1,757 @@
1
+ import { AXMEntityCrudServiceImpl, AXPEntityDataProviderImpl, AXPDataGenerator, AXPEntityQueryType, AXPEntityCommandScope, AXP_MENU_PROVIDER } from '@acorex/platform/common';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable, inject, Injector, NgModule } from '@angular/core';
4
+ import { AXMCommentService } from '@acorex/modules/conversation';
5
+ import { AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
6
+ import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
7
+ import { AXTranslationService } from '@acorex/core/translation';
8
+
9
+ class AXPCommentServiceImpl extends AXMEntityCrudServiceImpl {
10
+ constructor() {
11
+ super('comments');
12
+ this.messageReactionDataProvider = new AXPEntityDataProviderImpl(super.storageService, 'messageReaction');
13
+ }
14
+ async like(payload) {
15
+ return this.messageReactionDataProvider.insertOne(payload);
16
+ }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
18
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl }); }
19
+ }
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl, decorators: [{
21
+ type: Injectable
22
+ }], ctorParameters: () => [] });
23
+
24
+ class AXMGlobalVariableModuleEntityLoader {
25
+ constructor() {
26
+ this.injector = inject(Injector);
27
+ }
28
+ async get(moduleName, entityName) {
29
+ return new Promise(async (resolve) => {
30
+ switch (entityName) {
31
+ case 'globalVariable': {
32
+ const entity = (await Promise.resolve().then(function () { return globalVariable_entity; })).globalVariableEntityFactory;
33
+ resolve(entity(this.injector));
34
+ break;
35
+ }
36
+ default:
37
+ resolve(null);
38
+ }
39
+ });
40
+ }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
42
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader }); }
43
+ }
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader, decorators: [{
45
+ type: Injectable
46
+ }] });
47
+
48
+ class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
49
+ }
50
+ class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
51
+ constructor() {
52
+ super('globalVariable');
53
+ }
54
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
55
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
56
+ }
57
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
58
+ type: Injectable
59
+ }], ctorParameters: () => [] });
60
+
61
+ class AXMLanguageService extends AXMEntityCrudServiceImpl {
62
+ }
63
+ class AXMLanguageServiceImpl extends AXMEntityCrudServiceImpl {
64
+ constructor() {
65
+ super('language');
66
+ }
67
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
68
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl }); }
69
+ }
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl, decorators: [{
71
+ type: Injectable
72
+ }], ctorParameters: () => [] });
73
+
74
+ async function languageEntityFactory(injector) {
75
+ const dataService = injector.get(AXMLanguageService);
76
+ const entityDef = {
77
+ module: 'common',
78
+ name: 'language',
79
+ source: 'common.language',
80
+ title: 'Language',
81
+ formats: {
82
+ individual: 'Language',
83
+ plural: 'Languages',
84
+ },
85
+ relatedEntities: [],
86
+ groups: [
87
+ {
88
+ id: 'language',
89
+ title: 'Language',
90
+ },
91
+ ],
92
+ properties: [
93
+ {
94
+ name: 'title',
95
+ title: 'Title',
96
+ groupId: 'language',
97
+ schema: {
98
+ dataType: 'string',
99
+ interface: {
100
+ type: AXPWidgetsCatalog.text,
101
+ },
102
+ },
103
+ validations: [
104
+ {
105
+ rule: 'required',
106
+ },
107
+ ],
108
+ },
109
+ {
110
+ name: 'code',
111
+ title: 'Code',
112
+ groupId: 'language',
113
+ schema: {
114
+ dataType: 'string',
115
+ interface: {
116
+ type: AXPWidgetsCatalog.text,
117
+ },
118
+ },
119
+ },
120
+ ],
121
+ columns: [{ name: 'title' }, { name: 'code' }],
122
+ commands: {
123
+ create: {
124
+ execute: async (data) => {
125
+ const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
126
+ dataService.insertOne(entity);
127
+ return Promise.resolve(entity);
128
+ },
129
+ },
130
+ delete: {
131
+ execute: async (id) => {
132
+ await await dataService.deleteOne(id);
133
+ return Promise.resolve();
134
+ },
135
+ },
136
+ update: {
137
+ execute: async (data) => {
138
+ return new Promise((resolve) => {
139
+ setTimeout(async () => {
140
+ await dataService.updateOne(data.id, data);
141
+ resolve(data);
142
+ }, 1000);
143
+ });
144
+ },
145
+ },
146
+ },
147
+ queries: {
148
+ byKey: {
149
+ execute: async (id) => {
150
+ return new Promise((resolve) => {
151
+ setTimeout(async () => {
152
+ const entity = await dataService.getOne(id);
153
+ resolve(entity);
154
+ }, 500);
155
+ });
156
+ },
157
+ type: AXPEntityQueryType.Single,
158
+ },
159
+ list: {
160
+ execute: async (e) => {
161
+ return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
162
+ },
163
+ type: AXPEntityQueryType.List,
164
+ },
165
+ },
166
+ interfaces: {
167
+ master: {
168
+ create: {
169
+ sections: [
170
+ {
171
+ id: 'language',
172
+ },
173
+ ],
174
+ properties: [
175
+ {
176
+ name: 'title',
177
+ layout: {
178
+ positions: {
179
+ lg: {
180
+ colSpan: 6,
181
+ },
182
+ },
183
+ },
184
+ },
185
+ {
186
+ name: 'code',
187
+ layout: {
188
+ positions: {
189
+ lg: {
190
+ colSpan: 6,
191
+ },
192
+ },
193
+ },
194
+ },
195
+ ],
196
+ },
197
+ update: {
198
+ sections: [
199
+ {
200
+ id: 'language',
201
+ },
202
+ ],
203
+ properties: [
204
+ {
205
+ name: 'title',
206
+ layout: {
207
+ positions: {
208
+ lg: {
209
+ colSpan: 6,
210
+ },
211
+ },
212
+ },
213
+ },
214
+ {
215
+ name: 'code',
216
+ layout: {
217
+ positions: {
218
+ lg: {
219
+ colSpan: 6,
220
+ },
221
+ },
222
+ },
223
+ },
224
+ ],
225
+ },
226
+ single: {
227
+ title: '{{title}}',
228
+ sections: [
229
+ {
230
+ id: 'language',
231
+ },
232
+ ],
233
+ properties: [
234
+ {
235
+ name: 'title',
236
+ layout: {
237
+ positions: {
238
+ lg: {
239
+ colSpan: 6,
240
+ },
241
+ },
242
+ },
243
+ },
244
+ {
245
+ name: 'code',
246
+ layout: {
247
+ positions: {
248
+ lg: {
249
+ colSpan: 6,
250
+ },
251
+ },
252
+ },
253
+ },
254
+ ],
255
+ actions: [],
256
+ },
257
+ list: {
258
+ actions: [
259
+ {
260
+ title: 'Create New',
261
+ command: 'create-entity',
262
+ priority: 'primary',
263
+ type: 'create',
264
+ scope: AXPEntityCommandScope.TypeLevel,
265
+ },
266
+ {
267
+ title: 'Delete Items',
268
+ command: 'delete-entity',
269
+ priority: 'primary',
270
+ type: 'delete',
271
+ scope: AXPEntityCommandScope.Selected,
272
+ },
273
+ {
274
+ title: 'Details',
275
+ command: 'open-entity',
276
+ priority: 'secondary',
277
+ type: 'view',
278
+ scope: AXPEntityCommandScope.Individual,
279
+ },
280
+ {
281
+ title: 'Delete',
282
+ command: 'delete-entity',
283
+ priority: 'secondary',
284
+ type: 'delete',
285
+ scope: AXPEntityCommandScope.Individual,
286
+ },
287
+ ],
288
+ views: [
289
+ {
290
+ name: 'all',
291
+ title: 'All Items',
292
+ fixed: true,
293
+ columns: [],
294
+ conditions: [],
295
+ sorts: [],
296
+ },
297
+ ],
298
+ },
299
+ },
300
+ },
301
+ };
302
+ return entityDef;
303
+ }
304
+
305
+ var language_entity = /*#__PURE__*/Object.freeze({
306
+ __proto__: null,
307
+ languageEntityFactory: languageEntityFactory
308
+ });
309
+
310
+ class AXMLanguageModuleEntityLoader {
311
+ constructor() {
312
+ this.injector = inject(Injector);
313
+ }
314
+ async get(moduleName, entityName) {
315
+ return new Promise(async (resolve) => {
316
+ switch (entityName) {
317
+ case 'language': {
318
+ const entity = (await Promise.resolve().then(function () { return language_entity; })).languageEntityFactory;
319
+ resolve(entity(this.injector));
320
+ break;
321
+ }
322
+ default:
323
+ resolve(null);
324
+ }
325
+ });
326
+ }
327
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
328
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader }); }
329
+ }
330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader, decorators: [{
331
+ type: Injectable
332
+ }] });
333
+
334
+ class AXMPlatformManagmentModuleMenuProvider {
335
+ constructor() {
336
+ this.translateService = inject(AXTranslationService);
337
+ }
338
+ async items() {
339
+ const scope = "platform"; // The scope used for translation lookup
340
+ return [
341
+ {
342
+ items: [
343
+ {
344
+ text: await this.translateService.translateAsync('platformManagement', { scope }),
345
+ icon: 'fa-solid fa-square-terminal',
346
+ type: 'menu',
347
+ priority: 9100,
348
+ data: {
349
+ // requiredPermission: 'demo.admin.settings',
350
+ },
351
+ children: [
352
+ {
353
+ priority: 9001,
354
+ text: await this.translateService.translateAsync('globalVariables', { scope }),
355
+ path: '/demo/m/common/e/globalVariable/list',
356
+ icon: 'fa-solid fa-object-exclude',
357
+ data: {
358
+ // requiredPermission: '',
359
+ },
360
+ },
361
+ {
362
+ priority: 9002,
363
+ text: await this.translateService.translateAsync('languageManagement', { scope }),
364
+ icon: 'fa-solid fa-square-terminal',
365
+ children: [
366
+ {
367
+ text: await this.translateService.translateAsync('languageDefinition', { scope }),
368
+ path: '/demo/m/common/e/language/list',
369
+ icon: 'fa-solid fa-globe',
370
+ data: {
371
+ // requiredPermission: '',
372
+ },
373
+ },
374
+ ],
375
+ },
376
+ ],
377
+ },
378
+ ],
379
+ },
380
+ ];
381
+ }
382
+ }
383
+
384
+ class AXMPlatformManagementModule {
385
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
386
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule }); }
387
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, providers: [
388
+ {
389
+ provide: AXMGlobalVariablesService,
390
+ useClass: AXMGlobalVariablesServiceImpl,
391
+ },
392
+ {
393
+ provide: AXMLanguageService,
394
+ useClass: AXMLanguageServiceImpl,
395
+ },
396
+ {
397
+ provide: AXMCommentService,
398
+ useClass: AXPCommentServiceImpl,
399
+ },
400
+ {
401
+ provide: AXP_ENTITY_DEFINITION_LOADER,
402
+ useClass: AXMLanguageModuleEntityLoader,
403
+ multi: true,
404
+ },
405
+ {
406
+ provide: AXP_ENTITY_DEFINITION_LOADER,
407
+ useClass: AXMGlobalVariableModuleEntityLoader,
408
+ multi: true,
409
+ },
410
+ {
411
+ provide: AXP_MENU_PROVIDER,
412
+ useClass: AXMPlatformManagmentModuleMenuProvider,
413
+ multi: true,
414
+ },
415
+ ] }); }
416
+ }
417
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
418
+ type: NgModule,
419
+ args: [{
420
+ imports: [],
421
+ exports: [],
422
+ declarations: [],
423
+ providers: [
424
+ {
425
+ provide: AXMGlobalVariablesService,
426
+ useClass: AXMGlobalVariablesServiceImpl,
427
+ },
428
+ {
429
+ provide: AXMLanguageService,
430
+ useClass: AXMLanguageServiceImpl,
431
+ },
432
+ {
433
+ provide: AXMCommentService,
434
+ useClass: AXPCommentServiceImpl,
435
+ },
436
+ {
437
+ provide: AXP_ENTITY_DEFINITION_LOADER,
438
+ useClass: AXMLanguageModuleEntityLoader,
439
+ multi: true,
440
+ },
441
+ {
442
+ provide: AXP_ENTITY_DEFINITION_LOADER,
443
+ useClass: AXMGlobalVariableModuleEntityLoader,
444
+ multi: true,
445
+ },
446
+ {
447
+ provide: AXP_MENU_PROVIDER,
448
+ useClass: AXMPlatformManagmentModuleMenuProvider,
449
+ multi: true,
450
+ },
451
+ ],
452
+ }]
453
+ }] });
454
+
455
+ async function globalVariableEntityFactory(injector) {
456
+ const dataService = injector.get(AXMGlobalVariablesService);
457
+ const entityDef = {
458
+ module: 'common',
459
+ name: 'globalVariable',
460
+ source: 'common.globalVariable',
461
+ title: 'Global Variable',
462
+ formats: {
463
+ individual: 'Global Variable',
464
+ plural: 'Global Variables',
465
+ },
466
+ relatedEntities: [],
467
+ groups: [
468
+ {
469
+ id: 'section',
470
+ title: 'Section',
471
+ },
472
+ ],
473
+ properties: [
474
+ {
475
+ name: 'name',
476
+ title: 'Name',
477
+ groupId: 'section',
478
+ schema: {
479
+ dataType: 'string',
480
+ interface: {
481
+ type: AXPWidgetsCatalog.text,
482
+ },
483
+ },
484
+ validations: [
485
+ {
486
+ rule: 'required',
487
+ },
488
+ ],
489
+ },
490
+ {
491
+ name: 'title',
492
+ title: 'Title',
493
+ groupId: 'section',
494
+ schema: {
495
+ dataType: 'string',
496
+ interface: {
497
+ type: AXPWidgetsCatalog.text,
498
+ },
499
+ },
500
+ validations: [
501
+ {
502
+ rule: 'required',
503
+ },
504
+ ],
505
+ },
506
+ {
507
+ name: 'dataValue',
508
+ title: 'Data Value',
509
+ groupId: 'section',
510
+ schema: {
511
+ dataType: 'string',
512
+ interface: {
513
+ type: AXPWidgetsCatalog.text,
514
+ },
515
+ },
516
+ },
517
+ {
518
+ name: 'dataType',
519
+ title: 'Data Type',
520
+ groupId: 'section',
521
+ schema: {
522
+ dataType: 'string',
523
+ interface: {
524
+ type: AXPWidgetsCatalog.select,
525
+ options: {
526
+ valueField: 'name',
527
+ textField: 'title',
528
+ dataSource: [
529
+ { title: 'String', name: 'String' },
530
+ { title: 'Integer', name: 'integer' },
531
+ { title: 'Date Time', name: 'dateTime' },
532
+ { title: 'Boolean', name: 'boolean' },
533
+ { title: 'Function', name: 'function' },
534
+ { title: 'Custom', name: 'custom' },
535
+ ],
536
+ direction: 'horizontal',
537
+ multiple: false,
538
+ },
539
+ },
540
+ },
541
+ },
542
+ ],
543
+ columns: [{ name: 'title' }, { name: 'dataValue' }, { name: 'dataType' }],
544
+ commands: {
545
+ create: {
546
+ execute: async (data) => {
547
+ const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
548
+ dataService.insertOne(entity);
549
+ return Promise.resolve(entity);
550
+ },
551
+ },
552
+ delete: {
553
+ execute: async (id) => {
554
+ await await dataService.deleteOne(id);
555
+ return Promise.resolve();
556
+ },
557
+ },
558
+ update: {
559
+ execute: async (data) => {
560
+ return new Promise((resolve) => {
561
+ setTimeout(async () => {
562
+ await dataService.updateOne(data.id, data);
563
+ resolve(data);
564
+ }, 1000);
565
+ });
566
+ },
567
+ },
568
+ },
569
+ queries: {
570
+ byKey: {
571
+ execute: async (id) => {
572
+ return new Promise((resolve) => {
573
+ setTimeout(async () => {
574
+ const entity = await dataService.getOne(id);
575
+ resolve(entity);
576
+ }, 500);
577
+ });
578
+ },
579
+ type: AXPEntityQueryType.Single,
580
+ },
581
+ list: {
582
+ execute: async (e) => {
583
+ return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
584
+ },
585
+ type: AXPEntityQueryType.List,
586
+ },
587
+ },
588
+ interfaces: {
589
+ master: {
590
+ create: {
591
+ sections: [
592
+ {
593
+ id: 'section',
594
+ },
595
+ ],
596
+ properties: [
597
+ {
598
+ name: 'title',
599
+ layout: {
600
+ positions: {
601
+ lg: {
602
+ colSpan: 6,
603
+ },
604
+ },
605
+ },
606
+ },
607
+ {
608
+ name: 'name',
609
+ layout: {
610
+ positions: {
611
+ lg: {
612
+ colSpan: 6,
613
+ },
614
+ },
615
+ },
616
+ },
617
+ {
618
+ name: 'dataValue',
619
+ layout: {
620
+ positions: {
621
+ lg: {
622
+ colSpan: 6,
623
+ },
624
+ },
625
+ },
626
+ },
627
+ {
628
+ name: 'dataType',
629
+ layout: {
630
+ positions: {
631
+ lg: {
632
+ colSpan: 6,
633
+ },
634
+ },
635
+ },
636
+ },
637
+ ],
638
+ },
639
+ update: {
640
+ sections: [
641
+ {
642
+ id: 'section',
643
+ },
644
+ ],
645
+ properties: [
646
+ {
647
+ name: 'title',
648
+ layout: {
649
+ positions: {
650
+ lg: {
651
+ colSpan: 6,
652
+ },
653
+ },
654
+ },
655
+ },
656
+ {
657
+ name: 'code',
658
+ layout: {
659
+ positions: {
660
+ lg: {
661
+ colSpan: 6,
662
+ },
663
+ },
664
+ },
665
+ },
666
+ ],
667
+ },
668
+ single: {
669
+ title: '{{title}}',
670
+ sections: [
671
+ {
672
+ id: 'section',
673
+ },
674
+ ],
675
+ properties: [
676
+ {
677
+ name: 'title',
678
+ layout: {
679
+ positions: {
680
+ lg: {
681
+ colSpan: 6,
682
+ },
683
+ },
684
+ },
685
+ },
686
+ {
687
+ name: 'code',
688
+ layout: {
689
+ positions: {
690
+ lg: {
691
+ colSpan: 6,
692
+ },
693
+ },
694
+ },
695
+ },
696
+ ],
697
+ actions: [],
698
+ },
699
+ list: {
700
+ actions: [
701
+ {
702
+ title: 'Create New',
703
+ command: 'create-entity',
704
+ priority: 'primary',
705
+ type: 'create',
706
+ scope: AXPEntityCommandScope.TypeLevel,
707
+ },
708
+ {
709
+ title: 'Delete Items',
710
+ command: 'delete-entity',
711
+ priority: 'primary',
712
+ type: 'delete',
713
+ scope: AXPEntityCommandScope.Selected,
714
+ },
715
+ {
716
+ title: 'Details',
717
+ command: 'open-entity',
718
+ priority: 'secondary',
719
+ type: 'view',
720
+ scope: AXPEntityCommandScope.Individual,
721
+ },
722
+ {
723
+ title: 'Delete',
724
+ command: 'delete-entity',
725
+ priority: 'secondary',
726
+ type: 'delete',
727
+ scope: AXPEntityCommandScope.Individual,
728
+ },
729
+ ],
730
+ views: [
731
+ {
732
+ name: 'all',
733
+ title: 'All Items',
734
+ fixed: true,
735
+ columns: [],
736
+ conditions: [],
737
+ sorts: [],
738
+ },
739
+ ],
740
+ },
741
+ },
742
+ },
743
+ };
744
+ return entityDef;
745
+ }
746
+
747
+ var globalVariable_entity = /*#__PURE__*/Object.freeze({
748
+ __proto__: null,
749
+ globalVariableEntityFactory: globalVariableEntityFactory
750
+ });
751
+
752
+ /**
753
+ * Generated bundle index. Do not edit.
754
+ */
755
+
756
+ export { AXMGlobalVariableModuleEntityLoader, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMLanguageModuleEntityLoader, AXMLanguageService, AXMLanguageServiceImpl, AXMPlatformManagementModule, AXPCommentServiceImpl, globalVariableEntityFactory, languageEntityFactory };
757
+ //# sourceMappingURL=acorex-modules-platform-management.mjs.map