@acorex/modules 18.2.0 → 18.2.1

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 (258) hide show
  1. package/application-management/lib/application-management.source.d.ts +1 -0
  2. package/application-management/lib/services/application-module-management.service.d.ts +10 -0
  3. package/application-management/lib/services/edition-management.service.d.ts +10 -0
  4. package/application-management/lib/services/entity-management.service.d.ts +10 -0
  5. package/application-management/lib/services/feature-management.service.d.ts +10 -0
  6. package/application-management/lib/services/permission-management.service.d.ts +10 -0
  7. package/application-management/lib/services/property-management.service.d.ts +10 -0
  8. package/auth/lib/menu.provider.d.ts +1 -2
  9. package/conversation/index.d.ts +13 -4
  10. package/conversation/lib/conversation.module.d.ts +6 -3
  11. package/conversation/lib/entities/chat/chat.module.d.ts +23 -0
  12. package/conversation/lib/entities/chat/chat.type.d.ts +21 -0
  13. package/conversation/lib/entities/chat/components/chat-item/chat-item.component.d.ts +16 -0
  14. package/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.d.ts +5 -0
  15. package/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.d.ts +5 -0
  16. package/conversation/lib/entities/chat/components/chat-items/chat-items.component.d.ts +6 -0
  17. package/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.d.ts +28 -0
  18. package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +5 -0
  19. package/conversation/lib/{comments → entities/comments}/comment.module.d.ts +1 -1
  20. package/{platform-management/lib/comments/comment-management.service.d.ts → conversation/lib/entities/comments/comments.service.d.ts} +5 -2
  21. package/conversation/lib/{comments → entities/comments/pages}/comment-list-view.component.d.ts +1 -1
  22. package/converstion-test/README.md +4 -0
  23. package/converstion-test/index.d.ts +1 -0
  24. package/converstion-test/lib/converstion-test.module.d.ts +6 -0
  25. package/esm2022/application-management/lib/application-management.module.mjs +36 -1
  26. package/esm2022/application-management/lib/application-management.source.mjs +2 -1
  27. package/esm2022/application-management/lib/entities/application-module.entity.mjs +10 -13
  28. package/esm2022/application-management/lib/entities/edition.entity.mjs +10 -13
  29. package/esm2022/application-management/lib/entities/entity.entity.mjs +10 -13
  30. package/esm2022/application-management/lib/entities/feature.entity.mjs +10 -13
  31. package/esm2022/application-management/lib/entities/modules.entity.mjs +2 -2
  32. package/esm2022/application-management/lib/entities/permission.entity.mjs +10 -13
  33. package/esm2022/application-management/lib/entities/property.entity.mjs +10 -13
  34. package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +5 -4
  35. package/esm2022/application-management/lib/menu.provider.mjs +5 -5
  36. package/esm2022/application-management/lib/services/application-module-management.service.mjs +17 -0
  37. package/esm2022/application-management/lib/services/edition-management.service.mjs +17 -0
  38. package/esm2022/application-management/lib/services/entity-management.service.mjs +17 -0
  39. package/esm2022/application-management/lib/services/feature-management.service.mjs +17 -0
  40. package/esm2022/application-management/lib/services/permission-management.service.mjs +17 -0
  41. package/esm2022/application-management/lib/services/property-management.service.mjs +17 -0
  42. package/esm2022/auth/lib/account/account.module.mjs +6 -2
  43. package/esm2022/auth/lib/menu.provider.mjs +17 -22
  44. package/esm2022/conversation/index.mjs +14 -5
  45. package/esm2022/conversation/lib/conversation.module.mjs +13 -8
  46. package/esm2022/conversation/lib/entities/chat/chat.module.mjs +90 -0
  47. package/esm2022/conversation/lib/entities/chat/chat.type.mjs +2 -0
  48. package/esm2022/conversation/lib/entities/chat/components/chat-item/chat-item.component.mjs +35 -0
  49. package/esm2022/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.mjs +13 -0
  50. package/esm2022/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.mjs +15 -0
  51. package/esm2022/conversation/lib/entities/chat/components/chat-items/chat-items.component.mjs +15 -0
  52. package/esm2022/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.mjs +237 -0
  53. package/esm2022/conversation/lib/entities/chat/pages/chat/chat.component.mjs +15 -0
  54. package/esm2022/conversation/lib/entities/comments/comment.module.mjs +100 -0
  55. package/esm2022/conversation/lib/entities/comments/comments.service.mjs +20 -0
  56. package/esm2022/conversation/lib/entities/comments/comments.type.mjs +2 -0
  57. package/esm2022/conversation/lib/entities/comments/pages/comment-list-view.component.mjs +393 -0
  58. package/esm2022/conversation/lib/{comments → entities/comments/pages}/comment-lookup-popup.component.mjs +1 -1
  59. package/esm2022/converstion-test/acorex-modules-converstion-test.mjs +5 -0
  60. package/esm2022/converstion-test/index.mjs +2 -0
  61. package/esm2022/converstion-test/lib/converstion-test.module.mjs +16 -0
  62. package/esm2022/form-template-management/acorex-modules-form-template-management.mjs +5 -0
  63. package/esm2022/form-template-management/index.mjs +2 -0
  64. package/esm2022/form-template-management/lib/const.mjs +8 -0
  65. package/esm2022/form-template-management/lib/entities/category/category.entity.mjs +241 -0
  66. package/esm2022/form-template-management/lib/entities/category/category.module.mjs +28 -0
  67. package/esm2022/form-template-management/lib/entities/category/category.service.mjs +17 -0
  68. package/esm2022/form-template-management/lib/entities/category/category.types.mjs +2 -0
  69. package/esm2022/form-template-management/lib/entities/category/index.mjs +5 -0
  70. package/esm2022/form-template-management/lib/entities/template/index.mjs +5 -0
  71. package/esm2022/form-template-management/lib/entities/template/template.entity.mjs +241 -0
  72. package/esm2022/form-template-management/lib/entities/template/template.module.mjs +28 -0
  73. package/esm2022/form-template-management/lib/entities/template/template.service.mjs +17 -0
  74. package/esm2022/form-template-management/lib/entities/template/template.types.mjs +2 -0
  75. package/esm2022/form-template-management/lib/entity.provider.mjs +25 -0
  76. package/esm2022/form-template-management/lib/form-template-management.module.mjs +77 -0
  77. package/esm2022/form-template-management/lib/menu.provider.mjs +45 -0
  78. package/esm2022/form-template-management/lib/pages/designer/designer.page.mjs +24 -0
  79. package/esm2022/localization-management/acorex-modules-localization-management.mjs +5 -0
  80. package/esm2022/localization-management/index.mjs +8 -0
  81. package/esm2022/localization-management/lib/culture/culture.entity.mjs +239 -0
  82. package/esm2022/localization-management/lib/culture/culture.service.mjs +17 -0
  83. package/esm2022/localization-management/lib/culture/culture.types.mjs +2 -0
  84. package/esm2022/localization-management/lib/culture/index.mjs +4 -0
  85. package/esm2022/localization-management/lib/entity.loader.mjs +36 -0
  86. package/esm2022/localization-management/lib/language/index.mjs +4 -0
  87. package/esm2022/localization-management/lib/language/language-slot/language-slot.component.mjs +30 -0
  88. package/esm2022/localization-management/lib/language/language.entity.mjs +239 -0
  89. package/esm2022/localization-management/lib/language/language.service.mjs +17 -0
  90. package/esm2022/localization-management/lib/language/language.types.mjs +2 -0
  91. package/esm2022/localization-management/lib/localization-management.module.mjs +99 -0
  92. package/esm2022/localization-management/lib/localization-management.source.mjs +4 -0
  93. package/esm2022/localization-management/lib/localization-store.service.mjs +34 -0
  94. package/esm2022/localization-management/lib/menu.provider.mjs +46 -0
  95. package/esm2022/localization-management/lib/time-zone/index.mjs +4 -0
  96. package/esm2022/localization-management/lib/time-zone/time-zone.entity.mjs +256 -0
  97. package/esm2022/localization-management/lib/time-zone/time-zone.service.mjs +17 -0
  98. package/esm2022/localization-management/lib/time-zone/time-zone.types.mjs +2 -0
  99. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +3 -3
  100. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.mjs +3 -3
  101. package/esm2022/notification-management/lib/entities/my-notification.mjs +8 -15
  102. package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +3 -3
  103. package/esm2022/notification-management/lib/menu.provider.mjs +6 -11
  104. package/esm2022/platform-management/index.mjs +2 -3
  105. package/esm2022/platform-management/lib/common/common.module.mjs +65 -0
  106. package/esm2022/platform-management/lib/common/common.source.mjs +5 -0
  107. package/esm2022/platform-management/lib/common/country/country-datasource.provider.mjs +27 -0
  108. package/esm2022/platform-management/lib/common/country/country.entity.mjs +696 -0
  109. package/esm2022/platform-management/lib/common/country/country.service.mjs +17 -0
  110. package/esm2022/platform-management/lib/common/country/country.types.mjs +2 -0
  111. package/esm2022/platform-management/lib/common/country/index.mjs +4 -0
  112. package/esm2022/platform-management/lib/common/currency/currency.entity.mjs +283 -0
  113. package/esm2022/platform-management/lib/common/currency/currency.service.mjs +17 -0
  114. package/esm2022/platform-management/lib/common/currency/currency.types.mjs +2 -0
  115. package/esm2022/platform-management/lib/common/currency/index.mjs +4 -0
  116. package/esm2022/platform-management/lib/common/entity.loader.mjs +36 -0
  117. package/esm2022/platform-management/lib/common/index.mjs +5 -0
  118. package/esm2022/platform-management/lib/common/province/index.mjs +4 -0
  119. package/esm2022/platform-management/lib/common/province/province.entity.mjs +307 -0
  120. package/esm2022/platform-management/lib/common/province/province.service.mjs +17 -0
  121. package/esm2022/platform-management/lib/common/province/province.types.mjs +2 -0
  122. package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +54 -4
  123. package/esm2022/platform-management/lib/menu.provider.mjs +30 -14
  124. package/esm2022/platform-management/lib/platform-management.module.mjs +11 -32
  125. package/esm2022/template-management/index.mjs +2 -2
  126. package/esm2022/template-management/lib/entities/category.entity.mjs +32 -15
  127. package/esm2022/template-management/lib/entities/template-variable.entity.mjs +90 -90
  128. package/esm2022/template-management/lib/entities/text-template.entity.mjs +26 -1
  129. package/esm2022/template-management/lib/entity.provider.mjs +32 -0
  130. package/esm2022/template-management/lib/menu.provider.mjs +5 -5
  131. package/esm2022/template-management/lib/template-management.module.mjs +4 -4
  132. package/fesm2022/{acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs → acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs} +3 -3
  133. package/fesm2022/{acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs.map → acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs.map} +1 -1
  134. package/fesm2022/acorex-modules-application-management.mjs +338 -242
  135. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  136. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-D2WBJhj6.mjs → acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs} +29 -28
  137. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs.map +1 -0
  138. package/fesm2022/{acorex-modules-auth-app-chooser.component-B7BwymT_.mjs → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs} +2 -2
  139. package/fesm2022/{acorex-modules-auth-app-chooser.component-B7BwymT_.mjs.map → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs.map} +1 -1
  140. package/fesm2022/{acorex-modules-auth-login.module-BjvPlYQZ.mjs → acorex-modules-auth-login.module-sFVL-lYB.mjs} +4 -4
  141. package/fesm2022/{acorex-modules-auth-login.module-BjvPlYQZ.mjs.map → acorex-modules-auth-login.module-sFVL-lYB.mjs.map} +1 -1
  142. package/fesm2022/{acorex-modules-auth-master.layout-CeqMPrx8.mjs → acorex-modules-auth-master.layout-Bnt5qiio.mjs} +2 -2
  143. package/fesm2022/{acorex-modules-auth-master.layout-CeqMPrx8.mjs.map → acorex-modules-auth-master.layout-Bnt5qiio.mjs.map} +1 -1
  144. package/fesm2022/{acorex-modules-auth-password.component-X3BUidi1.mjs → acorex-modules-auth-password.component-BXL-aLTx.mjs} +2 -2
  145. package/fesm2022/{acorex-modules-auth-password.component-X3BUidi1.mjs.map → acorex-modules-auth-password.component-BXL-aLTx.mjs.map} +1 -1
  146. package/fesm2022/{acorex-modules-auth-password.component-87NrYq3i.mjs → acorex-modules-auth-password.component-ClaRp38G.mjs} +2 -2
  147. package/fesm2022/{acorex-modules-auth-password.component-87NrYq3i.mjs.map → acorex-modules-auth-password.component-ClaRp38G.mjs.map} +1 -1
  148. package/fesm2022/{acorex-modules-auth-routes-D1JZT2cF.mjs → acorex-modules-auth-routes-MDneFw2m.mjs} +2 -2
  149. package/fesm2022/{acorex-modules-auth-routes-D1JZT2cF.mjs.map → acorex-modules-auth-routes-MDneFw2m.mjs.map} +1 -1
  150. package/fesm2022/{acorex-modules-auth-two-factor.module-C28ix6Wr.mjs → acorex-modules-auth-two-factor.module-BHulbf0N.mjs} +2 -2
  151. package/fesm2022/{acorex-modules-auth-two-factor.module-C28ix6Wr.mjs.map → acorex-modules-auth-two-factor.module-BHulbf0N.mjs.map} +1 -1
  152. package/fesm2022/acorex-modules-auth.mjs +1 -1
  153. package/fesm2022/acorex-modules-conversation.mjs +413 -11
  154. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  155. package/fesm2022/acorex-modules-converstion-test.mjs +23 -0
  156. package/fesm2022/acorex-modules-converstion-test.mjs.map +1 -0
  157. package/fesm2022/{acorex-modules-form-management-designer.page-SoPH2V7i.mjs → acorex-modules-form-template-management-designer.page-DC18KFvK.mjs} +6 -6
  158. package/fesm2022/acorex-modules-form-template-management-designer.page-DC18KFvK.mjs.map +1 -0
  159. package/fesm2022/acorex-modules-form-template-management.mjs +713 -0
  160. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -0
  161. package/fesm2022/acorex-modules-localization-management.mjs +1019 -0
  162. package/fesm2022/acorex-modules-localization-management.mjs.map +1 -0
  163. package/fesm2022/acorex-modules-notification-management.mjs +18 -29
  164. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  165. package/fesm2022/acorex-modules-platform-management.mjs +1424 -213
  166. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  167. package/fesm2022/acorex-modules-template-management.mjs +162 -124
  168. package/fesm2022/acorex-modules-template-management.mjs.map +1 -1
  169. package/form-template-management/README.md +4 -0
  170. package/form-template-management/index.d.ts +1 -0
  171. package/form-template-management/lib/const.d.ts +7 -0
  172. package/form-template-management/lib/entities/category/category.entity.d.ts +3 -0
  173. package/form-template-management/lib/entities/category/category.module.d.ts +6 -0
  174. package/form-template-management/lib/entities/category/category.service.d.ts +10 -0
  175. package/form-template-management/lib/entities/category/category.types.d.ts +5 -0
  176. package/form-template-management/lib/entities/category/index.d.ts +4 -0
  177. package/form-template-management/lib/entities/template/index.d.ts +4 -0
  178. package/form-template-management/lib/entities/template/template.entity.d.ts +3 -0
  179. package/form-template-management/lib/entities/template/template.module.d.ts +6 -0
  180. package/form-template-management/lib/entities/template/template.service.d.ts +10 -0
  181. package/form-template-management/lib/entities/template/template.types.d.ts +5 -0
  182. package/form-template-management/lib/entity.provider.d.ts +9 -0
  183. package/form-template-management/lib/form-template-management.module.d.ts +10 -0
  184. package/form-template-management/lib/menu.provider.d.ts +5 -0
  185. package/form-template-management/lib/pages/designer/designer.page.d.ts +5 -0
  186. package/localization-management/README.md +4 -0
  187. package/localization-management/index.d.ts +7 -0
  188. package/localization-management/lib/culture/culture.entity.d.ts +3 -0
  189. package/localization-management/lib/culture/culture.service.d.ts +10 -0
  190. package/localization-management/lib/culture/culture.types.d.ts +12 -0
  191. package/localization-management/lib/culture/index.d.ts +3 -0
  192. package/localization-management/lib/entity.loader.d.ts +9 -0
  193. package/localization-management/lib/language/index.d.ts +3 -0
  194. package/localization-management/lib/language/language-slot/language-slot.component.d.ts +19 -0
  195. package/localization-management/lib/localization-management.module.d.ts +10 -0
  196. package/localization-management/lib/localization-management.source.d.ts +3 -0
  197. package/localization-management/lib/localization-store.service.d.ts +7 -0
  198. package/localization-management/lib/menu.provider.d.ts +5 -0
  199. package/localization-management/lib/time-zone/index.d.ts +3 -0
  200. package/localization-management/lib/time-zone/time-zone.entity.d.ts +3 -0
  201. package/localization-management/lib/time-zone/time-zone.service.d.ts +10 -0
  202. package/localization-management/lib/time-zone/time-zone.types.d.ts +9 -0
  203. package/notification-management/lib/menu.provider.d.ts +0 -1
  204. package/package.json +24 -12
  205. package/platform-management/index.d.ts +1 -2
  206. package/platform-management/lib/common/common.module.d.ts +6 -0
  207. package/platform-management/lib/common/common.source.d.ts +4 -0
  208. package/platform-management/lib/common/country/country-datasource.provider.d.ts +5 -0
  209. package/platform-management/lib/common/country/country.entity.d.ts +3 -0
  210. package/platform-management/lib/common/country/country.service.d.ts +10 -0
  211. package/platform-management/lib/common/country/country.types.d.ts +18 -0
  212. package/platform-management/lib/common/country/index.d.ts +3 -0
  213. package/platform-management/lib/common/currency/currency.entity.d.ts +3 -0
  214. package/platform-management/lib/common/currency/currency.service.d.ts +10 -0
  215. package/platform-management/lib/common/currency/currency.types.d.ts +6 -0
  216. package/platform-management/lib/common/currency/index.d.ts +3 -0
  217. package/platform-management/lib/{languages → common}/entity.loader.d.ts +3 -3
  218. package/platform-management/lib/common/index.d.ts +4 -0
  219. package/platform-management/lib/common/province/index.d.ts +3 -0
  220. package/platform-management/lib/common/province/province.entity.d.ts +3 -0
  221. package/platform-management/lib/common/province/province.service.d.ts +10 -0
  222. package/platform-management/lib/common/province/province.types.d.ts +7 -0
  223. package/platform-management/lib/menu.provider.d.ts +1 -1
  224. package/platform-management/lib/platform-management.module.d.ts +2 -1
  225. package/template-management/index.d.ts +1 -1
  226. package/template-management/lib/{entity.loader.d.ts → entity.provider.d.ts} +3 -3
  227. package/conversation/lib/comments/comments.service.d.ts +0 -5
  228. package/esm2022/conversation/lib/comments/comment-list-view.component.mjs +0 -393
  229. package/esm2022/conversation/lib/comments/comment.module.mjs +0 -89
  230. package/esm2022/conversation/lib/comments/comments.service.mjs +0 -4
  231. package/esm2022/conversation/lib/comments/comments.type.mjs +0 -2
  232. package/esm2022/form-management/acorex-modules-form-management.mjs +0 -5
  233. package/esm2022/form-management/index.mjs +0 -2
  234. package/esm2022/form-management/lib/designer/designer.page.mjs +0 -24
  235. package/esm2022/form-management/lib/form-management.module.mjs +0 -53
  236. package/esm2022/form-management/lib/menu.provider.mjs +0 -35
  237. package/esm2022/platform-management/lib/comments/comment-management.service.mjs +0 -18
  238. package/esm2022/platform-management/lib/languages/entities/language.entity.mjs +0 -234
  239. package/esm2022/platform-management/lib/languages/entity.loader.mjs +0 -26
  240. package/esm2022/platform-management/lib/languages/index.mjs +0 -5
  241. package/esm2022/platform-management/lib/languages/language-management.service.mjs +0 -16
  242. package/esm2022/platform-management/lib/languages/language.types.mjs +0 -2
  243. package/esm2022/template-management/lib/entity.loader.mjs +0 -36
  244. package/fesm2022/acorex-modules-auth-acorex-modules-auth-D2WBJhj6.mjs.map +0 -1
  245. package/fesm2022/acorex-modules-form-management-designer.page-SoPH2V7i.mjs.map +0 -1
  246. package/fesm2022/acorex-modules-form-management.mjs +0 -93
  247. package/fesm2022/acorex-modules-form-management.mjs.map +0 -1
  248. package/form-management/README.md +0 -4
  249. package/form-management/index.d.ts +0 -1
  250. package/form-management/lib/designer/designer.page.d.ts +0 -5
  251. package/form-management/lib/form-management.module.d.ts +0 -8
  252. package/form-management/lib/menu.provider.d.ts +0 -5
  253. package/platform-management/lib/languages/index.d.ts +0 -4
  254. /package/conversation/lib/{comments → entities/comments}/comments.type.d.ts +0 -0
  255. /package/conversation/lib/{comments → entities/comments/pages}/comment-lookup-popup.component.d.ts +0 -0
  256. /package/{platform-management/lib/languages/entities → localization-management/lib/language}/language.entity.d.ts +0 -0
  257. /package/{platform-management/lib/languages/language-management.service.d.ts → localization-management/lib/language/language.service.d.ts} +0 -0
  258. /package/{platform-management/lib/languages → localization-management/lib/language}/language.types.d.ts +0 -0
@@ -1,9 +1,9 @@
1
- import { isSmallScreen, getChildDrawer, AXPStickyDirective, AXPGridLayoutDirective, AXMEntityCrudServiceImpl, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER, AXPDataGenerator, AXPEntityStorageService, AXPEntityDataProviderImpl, AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
1
+ import { isSmallScreen, getChildDrawer, AXPStickyDirective, AXPGridLayoutDirective, AXPDataGenerator, AXPEntityStorageService, AXPEntityDataProviderImpl, AXMEntityCrudServiceImpl, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER, AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
2
2
  import { AXPEntityDetailViewModelResolver, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
3
3
  import * as i1$1 from '@acorex/platform/workflow';
4
4
  import { AXPWorkflowService, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
5
5
  import * as i0 from '@angular/core';
6
- import { inject, signal, Component, ChangeDetectionStrategy, Injector, Injectable, NgModule, Optional, Inject } from '@angular/core';
6
+ import { inject, signal, Component, ChangeDetectionStrategy, Injectable, Injector, NgModule, Optional, Inject } from '@angular/core';
7
7
  import * as i2 from '@angular/router';
8
8
  import { ActivatedRoute, RouterModule } from '@angular/router';
9
9
  import { AXPEntityDetailListViewComponent, AXPRootLayoutComponent } from '@acorex/platform/themes/default';
@@ -24,6 +24,7 @@ import { AXLoadingModule } from '@acorex/components/loading';
24
24
  import { AXPopoverModule } from '@acorex/components/popover';
25
25
  import * as i6 from '@acorex/components/tabs';
26
26
  import { AXTabsModule } from '@acorex/components/tabs';
27
+ import * as i10 from '@acorex/core/translation';
27
28
  import { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';
28
29
  import * as i9 from '@acorex/platform/layout/builder';
29
30
  import { AXPLayoutBuilderModule, AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
@@ -56,11 +57,11 @@ class AXPModuleEntityDetailViewComponent {
56
57
  this.vm.destroy();
57
58
  }
58
59
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPModuleEntityDetailViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPModuleEntityDetailViewComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\">\n <div class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\" #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\" [stickyOffset]=\"30\">\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\" [class.ax-hidden]=\"isSM | async\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item [active]=\"last\" [class.!ax-font-semibold]=\"last\" [class.!ax-text-neutral-600]=\"last\"\n [routerLink]=\"b.url\">\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(tr of vm.primaryActions();track $index) {\n <ax-button [text]=\"tr.title\" [color]=\"tr.color\" (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"(isSM | async) ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(tr of vm.secondaryActions();track $index) {\n <ng-container>\n @if(tr.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item [text]=\"tr.title\" class=\"ax-font-semibold ax-text-{{ tr.color }}\"\n (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!-- Start Sections -->\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-4\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button class=\"ax-xs\" color=\"ghost\" [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\">\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n <span class=\"ax-font-semibold\">{{ attr.title() }}</span>\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"> </axp-widget-renderer>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n @if(vm.relatedEntities().length) {\n <ax-tabs [look]=\"'with-line'\" class=\"ax-mt-2 ax-font-semibold\" #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\">\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"e.title()\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n </ax-tabs>\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <div [class.ax-hidden]=\"$index !== selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n </div>\n } }\n </div>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i5.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXActionSheetModule }, { kind: "ngmodule", type: AXDrawerModule }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i6.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i6.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i7.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i7.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i7.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "component", type: i8.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i8.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "ngmodule", type:
60
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPModuleEntityDetailViewComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\"\n>\n <div\n class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\"\n #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\"\n [stickyOffset]=\"30\"\n >\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() | translate | async }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\" [class.ax-hidden]=\"isSM | async\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item\n [active]=\"last\"\n [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\"\n [routerLink]=\"b.url\"\n >\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title | translate | async }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(tr of vm.primaryActions();track $index) {\n <ax-button [text]=\"tr.title | translate | async\" [color]=\"tr.color\" (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"(isSM | async) ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(tr of vm.secondaryActions();track $index) {\n <ng-container>\n @if(tr.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item\n [text]=\"tr.title\"\n class=\"ax-font-semibold ax-text-{{ tr.color }}\"\n (onClick)=\"vm.executeCommand(tr.name)\"\n >\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!-- Start Sections -->\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-4\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button\n class=\"ax-xs\"\n color=\"ghost\"\n [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\"\n >\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n <span class=\"ax-font-semibold\">{{ attr.title() | translate | async }}</span>\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"> </axp-widget-renderer>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n @if(vm.relatedEntities().length) {\n <ax-tabs\n [look]=\"'with-line'\"\n class=\"ax-mt-2 ax-font-semibold\"\n #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\"\n >\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"(e.title() | translate | async)!\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n </ax-tabs>\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <div [class.ax-hidden]=\"$index !== selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n </div>\n } }\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i5.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXActionSheetModule }, { kind: "ngmodule", type: AXDrawerModule }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i6.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i6.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i7.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i7.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i7.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "component", type: i8.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i8.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "ngmodule", type:
60
61
  //
61
62
  AXPLayoutBuilderModule }, { kind: "component", type: i9.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "variables", "functions"], outputs: ["onChanged", "contextChange"] }, { kind: "component", type: i9.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node", "mode", "parentNode", "index"] }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPStickyDirective, selector: "[axpSticky]", inputs: ["axpSticky", "stickyOffset", "stickyParent", "stickyTarget"], outputs: ["isStickyChange"], exportAs: ["axpSticky"] }, { kind: "directive", type: AXPGridLayoutDirective, selector: "[gridLayout]", inputs: ["gridLayout"] }, { kind: "ngmodule", type:
62
63
  //
63
- AXTranslationModule }, { kind: "component", type: AXPEntityDetailListViewComponent, selector: "axp-entity-detail-list-view", inputs: ["viewModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
64
+ AXTranslationModule }, { kind: "pipe", type: i10.AXTranslatorPipe, name: "translate" }, { kind: "component", type: AXPEntityDetailListViewComponent, selector: "axp-entity-detail-list-view", inputs: ["viewModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
64
65
  }
65
66
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPModuleEntityDetailViewComponent, decorators: [{
66
67
  type: Component,
@@ -86,7 +87,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
86
87
  //
87
88
  AXTranslationModule,
88
89
  AXPEntityDetailListViewComponent,
89
- ], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\">\n <div class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\" #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\" [stickyOffset]=\"30\">\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\" [class.ax-hidden]=\"isSM | async\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item [active]=\"last\" [class.!ax-font-semibold]=\"last\" [class.!ax-text-neutral-600]=\"last\"\n [routerLink]=\"b.url\">\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(tr of vm.primaryActions();track $index) {\n <ax-button [text]=\"tr.title\" [color]=\"tr.color\" (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"(isSM | async) ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(tr of vm.secondaryActions();track $index) {\n <ng-container>\n @if(tr.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item [text]=\"tr.title\" class=\"ax-font-semibold ax-text-{{ tr.color }}\"\n (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!-- Start Sections -->\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-4\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button class=\"ax-xs\" color=\"ghost\" [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\">\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n <span class=\"ax-font-semibold\">{{ attr.title() }}</span>\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"> </axp-widget-renderer>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n @if(vm.relatedEntities().length) {\n <ax-tabs [look]=\"'with-line'\" class=\"ax-mt-2 ax-font-semibold\" #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\">\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"e.title()\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n </ax-tabs>\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <div [class.ax-hidden]=\"$index !== selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n </div>\n } }\n </div>\n</div>" }]
90
+ ], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\"\n>\n <div\n class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\"\n #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\"\n [stickyOffset]=\"30\"\n >\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-2xl ax-font-bold\">{{ vm.title() | translate | async }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\" [class.ax-hidden]=\"isSM | async\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item\n [active]=\"last\"\n [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\"\n [routerLink]=\"b.url\"\n >\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title | translate | async }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(tr of vm.primaryActions();track $index) {\n <ax-button [text]=\"tr.title | translate | async\" [color]=\"tr.color\" (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"(isSM | async) ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(tr of vm.secondaryActions();track $index) {\n <ng-container>\n @if(tr.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item\n [text]=\"tr.title\"\n class=\"ax-font-semibold ax-text-{{ tr.color }}\"\n (onClick)=\"vm.executeCommand(tr.name)\"\n >\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!-- Start Sections -->\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-4\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button\n class=\"ax-xs\"\n color=\"ghost\"\n [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\"\n >\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n <span class=\"ax-font-semibold\">{{ attr.title() | translate | async }}</span>\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"> </axp-widget-renderer>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n @if(vm.relatedEntities().length) {\n <ax-tabs\n [look]=\"'with-line'\"\n class=\"ax-mt-2 ax-font-semibold\"\n #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\"\n >\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"(e.title() | translate | async)!\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n </ax-tabs>\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <div [class.ax-hidden]=\"$index !== selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n </div>\n } }\n </div>\n</div>\n" }]
90
91
  }] });
91
92
 
92
93
  const AXMApplcationManagementroutes = [
@@ -96,7 +97,7 @@ const AXMApplcationManagementroutes = [
96
97
  children: [
97
98
  {
98
99
  path: 'module-designer',
99
- loadComponent: () => import('./acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs').then((c) => c.AXMModuleDesignerComponent),
100
+ loadComponent: () => import('./acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs').then((c) => c.AXMModuleDesignerComponent),
100
101
  children: [
101
102
  {
102
103
  path: 'm/:module',
@@ -115,6 +116,176 @@ const AXMApplcationManagementroutes = [
115
116
  },
116
117
  ];
117
118
 
119
+ const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
120
+ const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
121
+ const name = AXPDataGenerator.pick(source);
122
+ return {
123
+ id: AXPDataGenerator.uuid(),
124
+ name: name,
125
+ title: name,
126
+ isArchived: AXPDataGenerator.boolean(),
127
+ };
128
+ });
129
+ const MODULES = Array.from({ length: 5 }).map((_, i) => {
130
+ const source = [
131
+ 'UserManagement',
132
+ 'Analytics',
133
+ 'Reporting',
134
+ 'PaymentGateway',
135
+ 'NotificationService',
136
+ 'InventoryManagement',
137
+ ];
138
+ const name = AXPDataGenerator.pick(source);
139
+ return {
140
+ id: AXPDataGenerator.uuid(),
141
+ name: name,
142
+ title: name,
143
+ isArchived: AXPDataGenerator.boolean(),
144
+ };
145
+ });
146
+ const APPLICATIONS_MODULES = Array.from({ length: 5 }).map((_, i) => {
147
+ return {
148
+ id: AXPDataGenerator.uuid(),
149
+ application: AXPDataGenerator.pick(APPLICATIONS),
150
+ module: AXPDataGenerator.pick(MODULES),
151
+ };
152
+ });
153
+ const EDITIONS = Array.from({ length: 5 }).map((_, i) => {
154
+ const source = ['Standard', 'Premium', 'Gold', 'Silver', 'Bronze', 'Platinum', 'Enterprise'];
155
+ const name = AXPDataGenerator.pick(source);
156
+ return {
157
+ id: AXPDataGenerator.uuid(),
158
+ application: AXPDataGenerator.pick(APPLICATIONS),
159
+ name: name,
160
+ title: name,
161
+ isArchived: AXPDataGenerator.boolean(),
162
+ };
163
+ });
164
+ const FEATURES = Array.from({ length: 5 }).map((_, i) => {
165
+ const source = [
166
+ 'User Authentication',
167
+ 'Data Encryption',
168
+ 'Real-time Notifications',
169
+ 'Customizable Dashboards',
170
+ 'API Access',
171
+ 'Multi-language Support',
172
+ 'Analytics and Reporting',
173
+ 'Offline Mode',
174
+ ];
175
+ const name = AXPDataGenerator.pick(source);
176
+ return {
177
+ id: AXPDataGenerator.uuid(),
178
+ moduleId: AXPDataGenerator.pick(MODULES).id,
179
+ name: name,
180
+ title: name,
181
+ isArchived: AXPDataGenerator.boolean(),
182
+ };
183
+ });
184
+ const ENTITIES = Array.from({ length: 5 }).map((_, i) => {
185
+ const source = ['User', 'Product', 'Order', 'Customer', 'Transaction', 'Category', 'Review', 'InventoryItem'];
186
+ const name = AXPDataGenerator.pick(source);
187
+ return {
188
+ id: AXPDataGenerator.uuid(),
189
+ moduleId: AXPDataGenerator.pick(MODULES).id,
190
+ name: name,
191
+ title: name,
192
+ isArchived: AXPDataGenerator.boolean(),
193
+ };
194
+ });
195
+ const PERMISSIONS = Array.from({ length: 5 }).map((_, i) => {
196
+ const source = ['Read', 'Write', 'Update', 'Delete', 'ManageUsers', 'ViewReports', 'AccessSettings', 'CreateContent'];
197
+ const name = AXPDataGenerator.pick(source);
198
+ return {
199
+ id: AXPDataGenerator.uuid(),
200
+ moduleId: AXPDataGenerator.pick(MODULES).id,
201
+ name: name,
202
+ title: name,
203
+ isArchived: AXPDataGenerator.boolean(),
204
+ };
205
+ });
206
+ const PROPERTIES = Array.from({ length: 10 }).map((_, i) => {
207
+ const source = [
208
+ 'property1',
209
+ 'property2',
210
+ 'property3',
211
+ 'property4',
212
+ 'property5',
213
+ 'property6',
214
+ 'property7',
215
+ 'property8',
216
+ ];
217
+ const name = AXPDataGenerator.pick(source);
218
+ return {
219
+ id: AXPDataGenerator.uuid(),
220
+ entityId: AXPDataGenerator.pick(ENTITIES).id,
221
+ name: name,
222
+ title: name,
223
+ path: name,
224
+ };
225
+ });
226
+
227
+ class AXPApplicationManagementService {
228
+ constructor(injector) {
229
+ const storageService = injector.get(AXPEntityStorageService);
230
+ //
231
+ this._applicationModuleDataProvider = new AXPEntityDataProviderImpl(storageService, 'applications-modules');
232
+ this._applicationModuleDataProvider.initial(APPLICATIONS_MODULES);
233
+ //
234
+ this._editionDataProvider = new AXPEntityDataProviderImpl(storageService, 'editions');
235
+ this._editionDataProvider.initial(EDITIONS);
236
+ //
237
+ this._featureDataProvider = new AXPEntityDataProviderImpl(storageService, 'features');
238
+ this._featureDataProvider.initial(FEATURES);
239
+ //
240
+ this._entityDataProvider = new AXPEntityDataProviderImpl(storageService, 'entities');
241
+ this._entityDataProvider.initial(ENTITIES);
242
+ //
243
+ this._propertyDataProvider = new AXPEntityDataProviderImpl(storageService, 'properties');
244
+ this._propertyDataProvider.initial(PROPERTIES);
245
+ //
246
+ this._permissionDataProvider = new AXPEntityDataProviderImpl(storageService, 'permissions');
247
+ this._permissionDataProvider.initial(PERMISSIONS);
248
+ }
249
+ get applicationModuleDataProvider() {
250
+ return this._applicationModuleDataProvider;
251
+ }
252
+ get editionDataProvider() {
253
+ return this._editionDataProvider;
254
+ }
255
+ get featureDataProvider() {
256
+ return this._featureDataProvider;
257
+ }
258
+ get entityDataProvider() {
259
+ return this._entityDataProvider;
260
+ }
261
+ get propertyDataProvider() {
262
+ return this._propertyDataProvider;
263
+ }
264
+ get permissionDataProvider() {
265
+ return this._permissionDataProvider;
266
+ }
267
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
268
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, providedIn: 'root' }); }
269
+ }
270
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, decorators: [{
271
+ type: Injectable,
272
+ args: [{
273
+ providedIn: 'root',
274
+ }]
275
+ }], ctorParameters: () => [{ type: i0.Injector }] });
276
+ let AXMApplicationModuleService$1 = class AXMApplicationModuleService extends AXMEntityCrudServiceImpl {
277
+ };
278
+ let AXMEntityService$1 = class AXMEntityService extends AXMEntityCrudServiceImpl {
279
+ };
280
+ let AXMEditionService$1 = class AXMEditionService extends AXMEntityCrudServiceImpl {
281
+ };
282
+ let AXMFeatureService$1 = class AXMFeatureService extends AXMEntityCrudServiceImpl {
283
+ };
284
+ let AXMPermissionService$1 = class AXMPermissionService extends AXMEntityCrudServiceImpl {
285
+ };
286
+ let AXMPropertyService$1 = class AXMPropertyService extends AXMEntityCrudServiceImpl {
287
+ };
288
+
118
289
  class AXMApplicationManagementModuleEntityLoader {
119
290
  constructor() {
120
291
  this.injector = inject(Injector);
@@ -164,17 +335,17 @@ class AXMApplicationManagmentModuleMenuProvider {
164
335
  this.translateService = inject(AXTranslationService);
165
336
  }
166
337
  async items() {
167
- const scope = 'platform'; // This scope should be used to load the translations from platform.json or platform.fa.json
338
+ const scope = 'platform';
168
339
  return [
169
340
  {
170
341
  items: [
171
342
  {
172
- priority: 9001,
173
- text: await this.translateService.translateAsync('applicationManagement', { scope }),
343
+ priority: 8001,
344
+ text: '#platform.applicationManagement',
174
345
  icon: 'fa-solid fa-cogs',
175
346
  children: [
176
347
  {
177
- text: await this.translateService.translateAsync('moduleDesigner', { scope }),
348
+ text: '#platform.moduleDesigner',
178
349
  path: '/console/module-designer',
179
350
  icon: 'fa-solid fa-cog',
180
351
  data: {},
@@ -188,6 +359,7 @@ class AXMApplicationManagmentModuleMenuProvider {
188
359
  }
189
360
 
190
361
  const APPLICATION_SOURCE_NAME = 'application-management.application';
362
+ const APPLICATION_MODULE_SOURCE_NAME = 'application-management.application-module';
191
363
  const MODULE_SOURCE_NAME = 'application-management.module';
192
364
  const ENTITY_SOURCE_NAME = 'application-management.entity';
193
365
  const PERMISSION_SOURCE_NAME = 'application-management.permission';
@@ -208,6 +380,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
208
380
  type: Injectable
209
381
  }], ctorParameters: () => [] });
210
382
 
383
+ class AXMApplicationModuleService extends AXMEntityCrudServiceImpl {
384
+ }
385
+ class AXMApplicationModuleServiceImpl extends AXMEntityCrudServiceImpl {
386
+ constructor() {
387
+ super(APPLICATION_MODULE_SOURCE_NAME);
388
+ }
389
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationModuleServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
390
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationModuleServiceImpl }); }
391
+ }
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMApplicationModuleServiceImpl, decorators: [{
393
+ type: Injectable
394
+ }], ctorParameters: () => [] });
395
+
396
+ class AXMEditionService extends AXMEntityCrudServiceImpl {
397
+ }
398
+ class AXMEditionServiceImpl extends AXMEntityCrudServiceImpl {
399
+ constructor() {
400
+ super(EDITION_SOURCE_NAME);
401
+ }
402
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEditionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
403
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEditionServiceImpl }); }
404
+ }
405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEditionServiceImpl, decorators: [{
406
+ type: Injectable
407
+ }], ctorParameters: () => [] });
408
+
409
+ class AXMEntityService extends AXMEntityCrudServiceImpl {
410
+ }
411
+ class AXMEntityServiceImpl extends AXMEntityCrudServiceImpl {
412
+ constructor() {
413
+ super(ENTITY_SOURCE_NAME);
414
+ }
415
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
416
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEntityServiceImpl }); }
417
+ }
418
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMEntityServiceImpl, decorators: [{
419
+ type: Injectable
420
+ }], ctorParameters: () => [] });
421
+
422
+ class AXMFeatureService extends AXMEntityCrudServiceImpl {
423
+ }
424
+ class AXMFeatureServiceImpl extends AXMEntityCrudServiceImpl {
425
+ constructor() {
426
+ super(FEATURE_SOURCE_NAME);
427
+ }
428
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFeatureServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
429
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFeatureServiceImpl }); }
430
+ }
431
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFeatureServiceImpl, decorators: [{
432
+ type: Injectable
433
+ }], ctorParameters: () => [] });
434
+
211
435
  class AXMModuleService extends AXMEntityCrudServiceImpl {
212
436
  }
213
437
  class AXMModuleServiceImpl extends AXMEntityCrudServiceImpl {
@@ -221,6 +445,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
221
445
  type: Injectable
222
446
  }], ctorParameters: () => [] });
223
447
 
448
+ class AXMPermissionService extends AXMEntityCrudServiceImpl {
449
+ }
450
+ class AXMPermissionServiceImpl extends AXMEntityCrudServiceImpl {
451
+ constructor() {
452
+ super(PERMISSION_SOURCE_NAME);
453
+ }
454
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPermissionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
455
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPermissionServiceImpl }); }
456
+ }
457
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPermissionServiceImpl, decorators: [{
458
+ type: Injectable
459
+ }], ctorParameters: () => [] });
460
+
461
+ class AXMPropertyService extends AXMEntityCrudServiceImpl {
462
+ }
463
+ class AXMPropertyServiceImpl extends AXMEntityCrudServiceImpl {
464
+ constructor() {
465
+ super(PROPERTY_SOURCE_NAME);
466
+ }
467
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPropertyServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
468
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPropertyServiceImpl }); }
469
+ }
470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPropertyServiceImpl, decorators: [{
471
+ type: Injectable
472
+ }], ctorParameters: () => [] });
473
+
224
474
  class AXPShowModuleEntityDetailViewAction extends AXPWorkflowAction {
225
475
  constructor() {
226
476
  super(...arguments);
@@ -315,6 +565,34 @@ class AXMApplicationManagementModule {
315
565
  provide: AXMApplicationService,
316
566
  useClass: AXMApplicationServiceImpl,
317
567
  },
568
+ {
569
+ provide: AXMApplicationModuleService$1,
570
+ useClass: AXMApplicationModuleServiceImpl,
571
+ },
572
+ {
573
+ provide: AXMEntityService$1,
574
+ useClass: AXMEntityServiceImpl,
575
+ },
576
+ {
577
+ provide: AXMPermissionService$1,
578
+ useClass: AXMPermissionServiceImpl,
579
+ },
580
+ {
581
+ provide: AXMFeatureService$1,
582
+ useClass: AXMFeatureServiceImpl,
583
+ },
584
+ {
585
+ provide: AXMPropertyService$1,
586
+ useClass: AXMPropertyServiceImpl,
587
+ },
588
+ {
589
+ provide: AXMEditionService$1,
590
+ useClass: AXMEditionServiceImpl,
591
+ },
592
+ // {
593
+ // provide: AXPModuleDesignerService,
594
+ // useClass: AXMModuleDesignerService,
595
+ // },
318
596
  ],
319
597
  };
320
598
  }
@@ -360,178 +638,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
360
638
  args: ['AXP_REGISTER_MODULES_ENTITIES']
361
639
  }] }] });
362
640
 
363
- const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
364
- const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
365
- const name = AXPDataGenerator.pick(source);
366
- return {
367
- id: AXPDataGenerator.uuid(),
368
- name: name,
369
- title: name,
370
- isArchived: AXPDataGenerator.boolean(),
371
- };
372
- });
373
- const MODULES = Array.from({ length: 5 }).map((_, i) => {
374
- const source = [
375
- 'UserManagement',
376
- 'Analytics',
377
- 'Reporting',
378
- 'PaymentGateway',
379
- 'NotificationService',
380
- 'InventoryManagement',
381
- ];
382
- const name = AXPDataGenerator.pick(source);
383
- return {
384
- id: AXPDataGenerator.uuid(),
385
- name: name,
386
- title: name,
387
- isArchived: AXPDataGenerator.boolean(),
388
- };
389
- });
390
- const APPLICATIONS_MODULES = Array.from({ length: 5 }).map((_, i) => {
391
- return {
392
- id: AXPDataGenerator.uuid(),
393
- application: AXPDataGenerator.pick(APPLICATIONS),
394
- module: AXPDataGenerator.pick(MODULES),
395
- };
396
- });
397
- const EDITIONS = Array.from({ length: 5 }).map((_, i) => {
398
- const source = ['Standard', 'Premium', 'Gold', 'Silver', 'Bronze', 'Platinum', 'Enterprise'];
399
- const name = AXPDataGenerator.pick(source);
400
- return {
401
- id: AXPDataGenerator.uuid(),
402
- application: AXPDataGenerator.pick(APPLICATIONS),
403
- name: name,
404
- title: name,
405
- isArchived: AXPDataGenerator.boolean(),
406
- };
407
- });
408
- const FEATURES = Array.from({ length: 5 }).map((_, i) => {
409
- const source = [
410
- 'User Authentication',
411
- 'Data Encryption',
412
- 'Real-time Notifications',
413
- 'Customizable Dashboards',
414
- 'API Access',
415
- 'Multi-language Support',
416
- 'Analytics and Reporting',
417
- 'Offline Mode',
418
- ];
419
- const name = AXPDataGenerator.pick(source);
420
- return {
421
- id: AXPDataGenerator.uuid(),
422
- moduleId: AXPDataGenerator.pick(MODULES).id,
423
- name: name,
424
- title: name,
425
- isArchived: AXPDataGenerator.boolean(),
426
- };
427
- });
428
- const ENTITIES = Array.from({ length: 5 }).map((_, i) => {
429
- const source = ['User', 'Product', 'Order', 'Customer', 'Transaction', 'Category', 'Review', 'InventoryItem'];
430
- const name = AXPDataGenerator.pick(source);
431
- return {
432
- id: AXPDataGenerator.uuid(),
433
- moduleId: AXPDataGenerator.pick(MODULES).id,
434
- name: name,
435
- title: name,
436
- isArchived: AXPDataGenerator.boolean(),
437
- };
438
- });
439
- const PERMISSIONS = Array.from({ length: 5 }).map((_, i) => {
440
- const source = ['Read', 'Write', 'Update', 'Delete', 'ManageUsers', 'ViewReports', 'AccessSettings', 'CreateContent'];
441
- const name = AXPDataGenerator.pick(source);
442
- return {
443
- id: AXPDataGenerator.uuid(),
444
- moduleId: AXPDataGenerator.pick(MODULES).id,
445
- name: name,
446
- title: name,
447
- isArchived: AXPDataGenerator.boolean(),
448
- };
449
- });
450
- const PROPERTIES = Array.from({ length: 10 }).map((_, i) => {
451
- const source = [
452
- 'property1',
453
- 'property2',
454
- 'property3',
455
- 'property4',
456
- 'property5',
457
- 'property6',
458
- 'property7',
459
- 'property8',
460
- ];
461
- const name = AXPDataGenerator.pick(source);
462
- return {
463
- id: AXPDataGenerator.uuid(),
464
- entityId: AXPDataGenerator.pick(ENTITIES).id,
465
- name: name,
466
- title: name,
467
- path: name,
468
- };
469
- });
470
-
471
- class AXPApplicationManagementService {
472
- constructor(injector) {
473
- const storageService = injector.get(AXPEntityStorageService);
474
- //
475
- this._applicationModuleDataProvider = new AXPEntityDataProviderImpl(storageService, 'applications-modules');
476
- this._applicationModuleDataProvider.initial(APPLICATIONS_MODULES);
477
- //
478
- this._editionDataProvider = new AXPEntityDataProviderImpl(storageService, 'editions');
479
- this._editionDataProvider.initial(EDITIONS);
480
- //
481
- this._featureDataProvider = new AXPEntityDataProviderImpl(storageService, 'features');
482
- this._featureDataProvider.initial(FEATURES);
483
- //
484
- this._entityDataProvider = new AXPEntityDataProviderImpl(storageService, 'entities');
485
- this._entityDataProvider.initial(ENTITIES);
486
- //
487
- this._propertyDataProvider = new AXPEntityDataProviderImpl(storageService, 'properties');
488
- this._propertyDataProvider.initial(PROPERTIES);
489
- //
490
- this._permissionDataProvider = new AXPEntityDataProviderImpl(storageService, 'permissions');
491
- this._permissionDataProvider.initial(PERMISSIONS);
492
- }
493
- get applicationModuleDataProvider() {
494
- return this._applicationModuleDataProvider;
495
- }
496
- get editionDataProvider() {
497
- return this._editionDataProvider;
498
- }
499
- get featureDataProvider() {
500
- return this._featureDataProvider;
501
- }
502
- get entityDataProvider() {
503
- return this._entityDataProvider;
504
- }
505
- get propertyDataProvider() {
506
- return this._propertyDataProvider;
507
- }
508
- get permissionDataProvider() {
509
- return this._permissionDataProvider;
510
- }
511
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
512
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, providedIn: 'root' }); }
513
- }
514
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPApplicationManagementService, decorators: [{
515
- type: Injectable,
516
- args: [{
517
- providedIn: 'root',
518
- }]
519
- }], ctorParameters: () => [{ type: i0.Injector }] });
520
- class AXMApplicationModuleService extends AXMEntityCrudServiceImpl {
521
- }
522
- class AXMEntityService extends AXMEntityCrudServiceImpl {
523
- }
524
- class AXMEditionService extends AXMEntityCrudServiceImpl {
525
- }
526
- class AXMFeatureService extends AXMEntityCrudServiceImpl {
527
- }
528
- class AXMPermissionService extends AXMEntityCrudServiceImpl {
529
- }
530
- class AXMPropertyService extends AXMEntityCrudServiceImpl {
531
- }
532
-
533
641
  async function applicationModuleEntityFactory(injector) {
534
- const dataService = injector.get(AXPApplicationManagementService);
642
+ const dataService = injector.get(AXMApplicationModuleService$1);
535
643
  const entityDef = {
536
644
  module: 'application-management',
537
645
  name: 'application-module',
@@ -577,13 +685,13 @@ async function applicationModuleEntityFactory(injector) {
577
685
  create: {
578
686
  execute: async (data) => {
579
687
  const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
580
- dataService.applicationModuleDataProvider.insertOne(entity);
688
+ dataService.insertOne(entity);
581
689
  return Promise.resolve(entity);
582
690
  },
583
691
  },
584
692
  delete: {
585
693
  execute: async (id) => {
586
- await await dataService.applicationModuleDataProvider.deleteOne(id);
694
+ await await dataService.deleteOne(id);
587
695
  return Promise.resolve();
588
696
  },
589
697
  },
@@ -591,7 +699,7 @@ async function applicationModuleEntityFactory(injector) {
591
699
  execute: async (data) => {
592
700
  return new Promise((resolve) => {
593
701
  setTimeout(async () => {
594
- await dataService.applicationModuleDataProvider.updateOne(data.id, data);
702
+ await dataService.updateOne(data.id, data);
595
703
  resolve(data);
596
704
  }, 1000);
597
705
  });
@@ -603,7 +711,7 @@ async function applicationModuleEntityFactory(injector) {
603
711
  execute: async (id) => {
604
712
  return new Promise((resolve) => {
605
713
  setTimeout(async () => {
606
- const entity = await dataService.applicationModuleDataProvider.getOne(id);
714
+ const entity = await dataService.getOne(id);
607
715
  resolve(entity);
608
716
  }, 500);
609
717
  });
@@ -612,12 +720,10 @@ async function applicationModuleEntityFactory(injector) {
612
720
  },
613
721
  list: {
614
722
  execute: async (e) => {
615
- const list = await dataService.applicationModuleDataProvider.getAll();
616
- const sortedItems = applySortArray(list, e.sort);
617
- const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
723
+ const data = await dataService.query(e);
618
724
  return Promise.resolve({
619
- total: filteredItems.length,
620
- items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
725
+ total: data.total,
726
+ items: data.items,
621
727
  });
622
728
  },
623
729
  type: AXPEntityQueryType.List,
@@ -1107,7 +1213,7 @@ async function applicationEntityFactory(injector) {
1107
1213
  }
1108
1214
 
1109
1215
  async function editionEntityFactory(injector) {
1110
- const dataService = injector.get(AXPApplicationManagementService);
1216
+ const dataService = injector.get(AXMEditionService$1);
1111
1217
  const entityDef = {
1112
1218
  module: 'application-management',
1113
1219
  name: 'edition',
@@ -1164,13 +1270,13 @@ async function editionEntityFactory(injector) {
1164
1270
  create: {
1165
1271
  execute: async (data) => {
1166
1272
  const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
1167
- dataService.editionDataProvider.insertOne(entity);
1273
+ dataService.insertOne(entity);
1168
1274
  return Promise.resolve(entity);
1169
1275
  },
1170
1276
  },
1171
1277
  delete: {
1172
1278
  execute: async (id) => {
1173
- await await dataService.editionDataProvider.deleteOne(id);
1279
+ await await dataService.deleteOne(id);
1174
1280
  return Promise.resolve();
1175
1281
  },
1176
1282
  },
@@ -1178,7 +1284,7 @@ async function editionEntityFactory(injector) {
1178
1284
  execute: async (data) => {
1179
1285
  return new Promise((resolve) => {
1180
1286
  setTimeout(async () => {
1181
- await dataService.editionDataProvider.updateOne(data.id, data);
1287
+ await dataService.updateOne(data.id, data);
1182
1288
  resolve(data);
1183
1289
  }, 1000);
1184
1290
  });
@@ -1190,7 +1296,7 @@ async function editionEntityFactory(injector) {
1190
1296
  execute: async (id) => {
1191
1297
  return new Promise((resolve) => {
1192
1298
  setTimeout(async () => {
1193
- const entity = await dataService.editionDataProvider.getOne(id);
1299
+ const entity = await dataService.getOne(id);
1194
1300
  resolve(entity);
1195
1301
  }, 500);
1196
1302
  });
@@ -1199,12 +1305,10 @@ async function editionEntityFactory(injector) {
1199
1305
  },
1200
1306
  list: {
1201
1307
  execute: async (e) => {
1202
- const list = await dataService.editionDataProvider.getAll();
1203
- const sortedItems = applySortArray(list, e.sort);
1204
- const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
1308
+ const data = await dataService.query(e);
1205
1309
  return Promise.resolve({
1206
- total: filteredItems.length,
1207
- items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
1310
+ total: data.total,
1311
+ items: data.items,
1208
1312
  });
1209
1313
  },
1210
1314
  type: AXPEntityQueryType.List,
@@ -1387,7 +1491,7 @@ async function editionEntityFactory(injector) {
1387
1491
  }
1388
1492
 
1389
1493
  async function entityEntityFactory(injector) {
1390
- const dataService = injector.get(AXPApplicationManagementService);
1494
+ const dataService = injector.get(AXMEntityService$1);
1391
1495
  const entityDef = {
1392
1496
  module: 'application-management',
1393
1497
  name: 'entity',
@@ -1458,13 +1562,13 @@ async function entityEntityFactory(injector) {
1458
1562
  create: {
1459
1563
  execute: async (data) => {
1460
1564
  const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
1461
- dataService.entityDataProvider.insertOne(entity);
1565
+ dataService.insertOne(entity);
1462
1566
  return Promise.resolve(entity);
1463
1567
  },
1464
1568
  },
1465
1569
  delete: {
1466
1570
  execute: async (id) => {
1467
- await await dataService.entityDataProvider.deleteOne(id);
1571
+ await await dataService.deleteOne(id);
1468
1572
  return Promise.resolve();
1469
1573
  },
1470
1574
  },
@@ -1472,7 +1576,7 @@ async function entityEntityFactory(injector) {
1472
1576
  execute: async (data) => {
1473
1577
  return new Promise((resolve) => {
1474
1578
  setTimeout(async () => {
1475
- await dataService.entityDataProvider.updateOne(data.id, data);
1579
+ await dataService.updateOne(data.id, data);
1476
1580
  resolve(data);
1477
1581
  }, 1000);
1478
1582
  });
@@ -1484,7 +1588,7 @@ async function entityEntityFactory(injector) {
1484
1588
  execute: async (id) => {
1485
1589
  return new Promise((resolve) => {
1486
1590
  setTimeout(async () => {
1487
- const entity = await dataService.entityDataProvider.getOne(id);
1591
+ const entity = await dataService.getOne(id);
1488
1592
  resolve(entity);
1489
1593
  }, 500);
1490
1594
  });
@@ -1493,12 +1597,10 @@ async function entityEntityFactory(injector) {
1493
1597
  },
1494
1598
  list: {
1495
1599
  execute: async (e) => {
1496
- const list = await dataService.entityDataProvider.getAll();
1497
- const sortedItems = applySortArray(list, e.sort);
1498
- const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
1600
+ const data = await dataService.query(e);
1499
1601
  return Promise.resolve({
1500
- total: filteredItems.length,
1501
- items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
1602
+ total: data.total,
1603
+ items: data.items,
1502
1604
  });
1503
1605
  },
1504
1606
  type: AXPEntityQueryType.List,
@@ -1686,7 +1788,7 @@ var entity_entity = /*#__PURE__*/Object.freeze({
1686
1788
  });
1687
1789
 
1688
1790
  async function featureEntityFactory(injector) {
1689
- const dataService = injector.get(AXPApplicationManagementService);
1791
+ const dataService = injector.get(AXMFeatureService$1);
1690
1792
  const EntityDef = {
1691
1793
  module: 'application-management',
1692
1794
  name: 'feature',
@@ -1743,13 +1845,13 @@ async function featureEntityFactory(injector) {
1743
1845
  create: {
1744
1846
  execute: async (data) => {
1745
1847
  const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
1746
- dataService.featureDataProvider.insertOne(entity);
1848
+ dataService.insertOne(entity);
1747
1849
  return Promise.resolve(entity);
1748
1850
  },
1749
1851
  },
1750
1852
  delete: {
1751
1853
  execute: async (id) => {
1752
- await await dataService.featureDataProvider.deleteOne(id);
1854
+ await await dataService.deleteOne(id);
1753
1855
  return Promise.resolve();
1754
1856
  },
1755
1857
  },
@@ -1757,7 +1859,7 @@ async function featureEntityFactory(injector) {
1757
1859
  execute: async (data) => {
1758
1860
  return new Promise((resolve) => {
1759
1861
  setTimeout(async () => {
1760
- await dataService.featureDataProvider.updateOne(data.id, data);
1862
+ await dataService.updateOne(data.id, data);
1761
1863
  resolve(data);
1762
1864
  }, 1000);
1763
1865
  });
@@ -1769,7 +1871,7 @@ async function featureEntityFactory(injector) {
1769
1871
  execute: async (id) => {
1770
1872
  return new Promise((resolve) => {
1771
1873
  setTimeout(async () => {
1772
- const entity = await dataService.featureDataProvider.getOne(id);
1874
+ const entity = await dataService.getOne(id);
1773
1875
  resolve(entity);
1774
1876
  }, 500);
1775
1877
  });
@@ -1778,12 +1880,10 @@ async function featureEntityFactory(injector) {
1778
1880
  },
1779
1881
  list: {
1780
1882
  execute: async (e) => {
1781
- const list = await dataService.featureDataProvider.getAll();
1782
- const sortedItems = applySortArray(list, e.sort);
1783
- const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
1883
+ const data = await dataService.query(e);
1784
1884
  return Promise.resolve({
1785
- total: filteredItems.length,
1786
- items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
1885
+ total: data.total,
1886
+ items: data.items,
1787
1887
  });
1788
1888
  },
1789
1889
  type: AXPEntityQueryType.List,
@@ -2105,7 +2205,7 @@ async function modulesEntityFactory(injector) {
2105
2205
  execute: async (e) => {
2106
2206
  const data = await dataService.query(e);
2107
2207
  return {
2108
- total: data.totalCount,
2208
+ total: data.total,
2109
2209
  items: data.items,
2110
2210
  };
2111
2211
  },
@@ -2294,7 +2394,7 @@ var modules_entity = /*#__PURE__*/Object.freeze({
2294
2394
  });
2295
2395
 
2296
2396
  async function permissionEntityFactory(injector) {
2297
- const dataService = injector.get(AXPApplicationManagementService);
2397
+ const dataService = injector.get(AXMPermissionService$1);
2298
2398
  const entityDef = {
2299
2399
  module: 'application-management',
2300
2400
  name: 'permission',
@@ -2351,13 +2451,13 @@ async function permissionEntityFactory(injector) {
2351
2451
  create: {
2352
2452
  execute: async (data) => {
2353
2453
  const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
2354
- dataService.permissionDataProvider.insertOne(entity);
2454
+ dataService.insertOne(entity);
2355
2455
  return Promise.resolve(entity);
2356
2456
  },
2357
2457
  },
2358
2458
  delete: {
2359
2459
  execute: async (id) => {
2360
- await await dataService.permissionDataProvider.deleteOne(id);
2460
+ await await dataService.deleteOne(id);
2361
2461
  return Promise.resolve();
2362
2462
  },
2363
2463
  },
@@ -2365,7 +2465,7 @@ async function permissionEntityFactory(injector) {
2365
2465
  execute: async (data) => {
2366
2466
  return new Promise((resolve) => {
2367
2467
  setTimeout(async () => {
2368
- await dataService.permissionDataProvider.updateOne(data.id, data);
2468
+ await dataService.updateOne(data.id, data);
2369
2469
  resolve(data);
2370
2470
  }, 1000);
2371
2471
  });
@@ -2377,7 +2477,7 @@ async function permissionEntityFactory(injector) {
2377
2477
  execute: async (id) => {
2378
2478
  return new Promise((resolve) => {
2379
2479
  setTimeout(async () => {
2380
- const entity = await dataService.permissionDataProvider.getOne(id);
2480
+ const entity = await dataService.getOne(id);
2381
2481
  resolve(entity);
2382
2482
  }, 500);
2383
2483
  });
@@ -2386,12 +2486,10 @@ async function permissionEntityFactory(injector) {
2386
2486
  },
2387
2487
  list: {
2388
2488
  execute: async (e) => {
2389
- const list = await dataService.permissionDataProvider.getAll();
2390
- const sortedItems = applySortArray(list, e.sort);
2391
- const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
2489
+ const data = await dataService.query(e);
2392
2490
  return Promise.resolve({
2393
- total: filteredItems.length,
2394
- items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
2491
+ total: data.total,
2492
+ items: data.items,
2395
2493
  });
2396
2494
  },
2397
2495
  type: AXPEntityQueryType.List,
@@ -2579,7 +2677,7 @@ var permission_entity = /*#__PURE__*/Object.freeze({
2579
2677
  });
2580
2678
 
2581
2679
  async function propertyEntityFactory(injector) {
2582
- const dataService = injector.get(AXPApplicationManagementService);
2680
+ const dataService = injector.get(AXMPropertyService$1);
2583
2681
  const entityDef = {
2584
2682
  module: 'application-management',
2585
2683
  name: 'property',
@@ -2701,13 +2799,13 @@ async function propertyEntityFactory(injector) {
2701
2799
  create: {
2702
2800
  execute: async (data) => {
2703
2801
  const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
2704
- dataService.propertyDataProvider.insertOne(entity);
2802
+ dataService.insertOne(entity);
2705
2803
  return Promise.resolve(entity);
2706
2804
  },
2707
2805
  },
2708
2806
  delete: {
2709
2807
  execute: async (id) => {
2710
- await await dataService.propertyDataProvider.deleteOne(id);
2808
+ await await dataService.deleteOne(id);
2711
2809
  return Promise.resolve();
2712
2810
  },
2713
2811
  },
@@ -2715,7 +2813,7 @@ async function propertyEntityFactory(injector) {
2715
2813
  execute: async (data) => {
2716
2814
  return new Promise((resolve) => {
2717
2815
  setTimeout(async () => {
2718
- await dataService.propertyDataProvider.updateOne(data.id, data);
2816
+ await dataService.updateOne(data.id, data);
2719
2817
  resolve(data);
2720
2818
  }, 1000);
2721
2819
  });
@@ -2727,7 +2825,7 @@ async function propertyEntityFactory(injector) {
2727
2825
  execute: async (id) => {
2728
2826
  return new Promise((resolve) => {
2729
2827
  setTimeout(async () => {
2730
- const entity = await dataService.propertyDataProvider.getOne(id);
2828
+ const entity = await dataService.getOne(id);
2731
2829
  resolve(entity);
2732
2830
  }, 500);
2733
2831
  });
@@ -2736,12 +2834,10 @@ async function propertyEntityFactory(injector) {
2736
2834
  },
2737
2835
  list: {
2738
2836
  execute: async (e) => {
2739
- const list = await dataService.propertyDataProvider.getAll();
2740
- const sortedItems = applySortArray(list, e.sort);
2741
- const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
2837
+ const data = await dataService.query(e);
2742
2838
  return Promise.resolve({
2743
- total: filteredItems.length,
2744
- items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
2839
+ total: data.total,
2840
+ items: data.items,
2745
2841
  });
2746
2842
  },
2747
2843
  type: AXPEntityQueryType.List,
@@ -3036,5 +3132,5 @@ class AXPModuleDesignerService {
3036
3132
  * Generated bundle index. Do not edit.
3037
3133
  */
3038
3134
 
3039
- export { APPLICATION_SOURCE_NAME, AXMApplicationManagementModule, AXMApplicationModuleService, AXMEditionService, AXMEntityService, AXMFeatureService, AXMPermissionService, AXMPropertyService, AXPApplicationManagementService, AXPModuleDesignerService, EDITION_SOURCE_NAME, ENTITY_SOURCE_NAME, FEATURE_SOURCE_NAME, MODULE_SOURCE_NAME, PERMISSION_SOURCE_NAME, PROPERTY_SOURCE_NAME, applicationEntityFactory, applicationModuleEntityFactory, editionEntityFactory, entityEntityFactory, featureEntityFactory, modulesEntityFactory, permissionEntityFactory, propertyEntityFactory };
3135
+ export { APPLICATION_MODULE_SOURCE_NAME, APPLICATION_SOURCE_NAME, AXMApplicationManagementModule, AXMApplicationModuleService$1 as AXMApplicationModuleService, AXMEditionService$1 as AXMEditionService, AXMEntityService$1 as AXMEntityService, AXMFeatureService$1 as AXMFeatureService, AXMPermissionService$1 as AXMPermissionService, AXMPropertyService$1 as AXMPropertyService, AXPApplicationManagementService, AXPModuleDesignerService, EDITION_SOURCE_NAME, ENTITY_SOURCE_NAME, FEATURE_SOURCE_NAME, MODULE_SOURCE_NAME, PERMISSION_SOURCE_NAME, PROPERTY_SOURCE_NAME, applicationEntityFactory, applicationModuleEntityFactory, editionEntityFactory, entityEntityFactory, featureEntityFactory, modulesEntityFactory, permissionEntityFactory, propertyEntityFactory };
3040
3136
  //# sourceMappingURL=acorex-modules-application-management.mjs.map