@acorex/modules 18.1.6 → 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 (266) hide show
  1. package/application-management/lib/application-management.service.d.ts +1 -8
  2. package/application-management/lib/application-management.source.d.ts +1 -0
  3. package/application-management/lib/menu.provider.d.ts +1 -0
  4. package/application-management/lib/services/application-management.service.d.ts +10 -0
  5. package/application-management/lib/services/application-module-management.service.d.ts +10 -0
  6. package/application-management/lib/services/edition-management.service.d.ts +10 -0
  7. package/application-management/lib/services/entity-management.service.d.ts +10 -0
  8. package/application-management/lib/services/feature-management.service.d.ts +10 -0
  9. package/application-management/lib/services/module-management.service.d.ts +10 -0
  10. package/application-management/lib/services/permission-management.service.d.ts +10 -0
  11. package/application-management/lib/services/property-management.service.d.ts +10 -0
  12. package/auth/lib/menu.provider.d.ts +1 -1
  13. package/conversation/README.md +3 -0
  14. package/conversation/index.d.ts +14 -0
  15. package/conversation/lib/conversation.module.d.ts +11 -0
  16. package/conversation/lib/entities/chat/chat.module.d.ts +23 -0
  17. package/conversation/lib/entities/chat/chat.type.d.ts +21 -0
  18. package/conversation/lib/entities/chat/components/chat-item/chat-item.component.d.ts +16 -0
  19. package/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.d.ts +5 -0
  20. package/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.d.ts +5 -0
  21. package/conversation/lib/entities/chat/components/chat-items/chat-items.component.d.ts +6 -0
  22. package/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.d.ts +28 -0
  23. package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +5 -0
  24. package/conversation/lib/entities/comments/comment.module.d.ts +25 -0
  25. package/conversation/lib/entities/comments/comments.service.d.ts +13 -0
  26. package/conversation/lib/entities/comments/comments.type.d.ts +74 -0
  27. package/conversation/lib/entities/comments/pages/comment-list-view.component.d.ts +66 -0
  28. package/conversation/lib/entities/comments/pages/comment-lookup-popup.component.d.ts +10 -0
  29. package/converstion-test/README.md +4 -0
  30. package/converstion-test/index.d.ts +1 -0
  31. package/converstion-test/lib/converstion-test.module.d.ts +6 -0
  32. package/esm2022/application-management/lib/application-management.module.mjs +46 -1
  33. package/esm2022/application-management/lib/application-management.service.mjs +2 -18
  34. package/esm2022/application-management/lib/application-management.source.mjs +2 -1
  35. package/esm2022/application-management/lib/entities/application-module.entity.mjs +10 -13
  36. package/esm2022/application-management/lib/entities/applications.entity.mjs +8 -8
  37. package/esm2022/application-management/lib/entities/edition.entity.mjs +10 -13
  38. package/esm2022/application-management/lib/entities/entity.entity.mjs +10 -13
  39. package/esm2022/application-management/lib/entities/feature.entity.mjs +10 -13
  40. package/esm2022/application-management/lib/entities/modules.entity.mjs +12 -15
  41. package/esm2022/application-management/lib/entities/permission.entity.mjs +10 -13
  42. package/esm2022/application-management/lib/entities/property.entity.mjs +10 -13
  43. package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +5 -4
  44. package/esm2022/application-management/lib/menu.provider.mjs +10 -4
  45. package/esm2022/application-management/lib/services/application-management.service.mjs +17 -0
  46. package/esm2022/application-management/lib/services/application-module-management.service.mjs +17 -0
  47. package/esm2022/application-management/lib/services/edition-management.service.mjs +17 -0
  48. package/esm2022/application-management/lib/services/entity-management.service.mjs +17 -0
  49. package/esm2022/application-management/lib/services/feature-management.service.mjs +17 -0
  50. package/esm2022/application-management/lib/services/module-management.service.mjs +17 -0
  51. package/esm2022/application-management/lib/services/permission-management.service.mjs +17 -0
  52. package/esm2022/application-management/lib/services/property-management.service.mjs +17 -0
  53. package/esm2022/auth/lib/account/account.module.mjs +6 -2
  54. package/esm2022/auth/lib/account/profile/profile-slot.component.mjs +3 -3
  55. package/esm2022/auth/lib/menu.provider.mjs +17 -14
  56. package/esm2022/conversation/acorex-modules-conversation.mjs +5 -0
  57. package/esm2022/conversation/index.mjs +15 -0
  58. package/esm2022/conversation/lib/conversation.module.mjs +22 -0
  59. package/esm2022/conversation/lib/entities/chat/chat.module.mjs +90 -0
  60. package/esm2022/conversation/lib/entities/chat/chat.type.mjs +2 -0
  61. package/esm2022/conversation/lib/entities/chat/components/chat-item/chat-item.component.mjs +35 -0
  62. package/esm2022/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.mjs +13 -0
  63. package/esm2022/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.mjs +15 -0
  64. package/esm2022/conversation/lib/entities/chat/components/chat-items/chat-items.component.mjs +15 -0
  65. package/esm2022/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.mjs +237 -0
  66. package/esm2022/conversation/lib/entities/chat/pages/chat/chat.component.mjs +15 -0
  67. package/esm2022/conversation/lib/entities/comments/comment.module.mjs +100 -0
  68. package/esm2022/conversation/lib/entities/comments/comments.service.mjs +20 -0
  69. package/esm2022/conversation/lib/entities/comments/comments.type.mjs +2 -0
  70. package/esm2022/conversation/lib/entities/comments/pages/comment-list-view.component.mjs +393 -0
  71. package/esm2022/conversation/lib/entities/comments/pages/comment-lookup-popup.component.mjs +56 -0
  72. package/esm2022/converstion-test/acorex-modules-converstion-test.mjs +5 -0
  73. package/esm2022/converstion-test/index.mjs +2 -0
  74. package/esm2022/converstion-test/lib/converstion-test.module.mjs +16 -0
  75. package/esm2022/form-template-management/acorex-modules-form-template-management.mjs +5 -0
  76. package/esm2022/form-template-management/index.mjs +2 -0
  77. package/esm2022/form-template-management/lib/const.mjs +8 -0
  78. package/esm2022/form-template-management/lib/entities/category/category.entity.mjs +241 -0
  79. package/esm2022/form-template-management/lib/entities/category/category.module.mjs +28 -0
  80. package/esm2022/form-template-management/lib/entities/category/category.service.mjs +17 -0
  81. package/esm2022/form-template-management/lib/entities/category/category.types.mjs +2 -0
  82. package/esm2022/form-template-management/lib/entities/category/index.mjs +5 -0
  83. package/esm2022/form-template-management/lib/entities/template/index.mjs +5 -0
  84. package/esm2022/form-template-management/lib/entities/template/template.entity.mjs +241 -0
  85. package/esm2022/form-template-management/lib/entities/template/template.module.mjs +28 -0
  86. package/esm2022/form-template-management/lib/entities/template/template.service.mjs +17 -0
  87. package/esm2022/form-template-management/lib/entities/template/template.types.mjs +2 -0
  88. package/esm2022/form-template-management/lib/entity.provider.mjs +25 -0
  89. package/esm2022/form-template-management/lib/form-template-management.module.mjs +77 -0
  90. package/esm2022/form-template-management/lib/menu.provider.mjs +45 -0
  91. package/esm2022/form-template-management/lib/pages/designer/designer.page.mjs +24 -0
  92. package/esm2022/localization-management/acorex-modules-localization-management.mjs +5 -0
  93. package/esm2022/localization-management/index.mjs +8 -0
  94. package/esm2022/localization-management/lib/culture/culture.entity.mjs +239 -0
  95. package/esm2022/localization-management/lib/culture/culture.service.mjs +17 -0
  96. package/esm2022/localization-management/lib/culture/culture.types.mjs +2 -0
  97. package/esm2022/localization-management/lib/culture/index.mjs +4 -0
  98. package/esm2022/localization-management/lib/entity.loader.mjs +36 -0
  99. package/esm2022/localization-management/lib/language/index.mjs +4 -0
  100. package/esm2022/localization-management/lib/language/language-slot/language-slot.component.mjs +30 -0
  101. package/esm2022/localization-management/lib/language/language.entity.mjs +239 -0
  102. package/esm2022/localization-management/lib/language/language.service.mjs +17 -0
  103. package/esm2022/localization-management/lib/language/language.types.mjs +2 -0
  104. package/esm2022/localization-management/lib/localization-management.module.mjs +99 -0
  105. package/esm2022/localization-management/lib/localization-management.source.mjs +4 -0
  106. package/esm2022/localization-management/lib/localization-store.service.mjs +34 -0
  107. package/esm2022/localization-management/lib/menu.provider.mjs +46 -0
  108. package/esm2022/localization-management/lib/time-zone/index.mjs +4 -0
  109. package/esm2022/localization-management/lib/time-zone/time-zone.entity.mjs +256 -0
  110. package/esm2022/localization-management/lib/time-zone/time-zone.service.mjs +17 -0
  111. package/esm2022/localization-management/lib/time-zone/time-zone.types.mjs +2 -0
  112. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +3 -3
  113. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.mjs +3 -3
  114. package/esm2022/notification-management/lib/entities/my-notification.mjs +8 -15
  115. package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +3 -3
  116. package/esm2022/notification-management/lib/menu.provider.mjs +13 -12
  117. package/esm2022/notification-management/lib/notification-management.module.mjs +5 -5
  118. package/esm2022/platform-management/index.mjs +2 -3
  119. package/esm2022/platform-management/lib/common/common.module.mjs +65 -0
  120. package/esm2022/platform-management/lib/common/common.source.mjs +5 -0
  121. package/esm2022/platform-management/lib/common/country/country-datasource.provider.mjs +27 -0
  122. package/esm2022/platform-management/lib/common/country/country.entity.mjs +696 -0
  123. package/esm2022/platform-management/lib/common/country/country.service.mjs +17 -0
  124. package/esm2022/platform-management/lib/common/country/country.types.mjs +2 -0
  125. package/esm2022/platform-management/lib/common/country/index.mjs +4 -0
  126. package/esm2022/platform-management/lib/common/currency/currency.entity.mjs +283 -0
  127. package/esm2022/platform-management/lib/common/currency/currency.service.mjs +17 -0
  128. package/esm2022/platform-management/lib/common/currency/currency.types.mjs +2 -0
  129. package/esm2022/platform-management/lib/common/currency/index.mjs +4 -0
  130. package/esm2022/platform-management/lib/common/entity.loader.mjs +36 -0
  131. package/esm2022/platform-management/lib/common/index.mjs +5 -0
  132. package/esm2022/platform-management/lib/common/province/index.mjs +4 -0
  133. package/esm2022/platform-management/lib/common/province/province.entity.mjs +307 -0
  134. package/esm2022/platform-management/lib/common/province/province.service.mjs +17 -0
  135. package/esm2022/platform-management/lib/common/province/province.types.mjs +2 -0
  136. package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +54 -4
  137. package/esm2022/platform-management/lib/menu.provider.mjs +37 -15
  138. package/esm2022/platform-management/lib/platform-management.module.mjs +12 -33
  139. package/esm2022/template-management/index.mjs +2 -2
  140. package/esm2022/template-management/lib/entities/category.entity.mjs +34 -16
  141. package/esm2022/template-management/lib/entities/template-variable.entity.mjs +103 -102
  142. package/esm2022/template-management/lib/entities/text-template.entity.mjs +28 -2
  143. package/esm2022/template-management/lib/entity.provider.mjs +32 -0
  144. package/esm2022/template-management/lib/menu.provider.mjs +14 -8
  145. package/esm2022/template-management/lib/template-management.module.mjs +4 -4
  146. package/fesm2022/{acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs → acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs} +3 -3
  147. 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
  148. package/fesm2022/acorex-modules-application-management.mjs +399 -283
  149. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  150. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs → acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs} +30 -23
  151. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs.map +1 -0
  152. package/fesm2022/{acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs} +2 -2
  153. package/fesm2022/{acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs.map → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs.map} +1 -1
  154. package/fesm2022/{acorex-modules-auth-login.module-A7u1YYeo.mjs → acorex-modules-auth-login.module-sFVL-lYB.mjs} +4 -4
  155. package/fesm2022/{acorex-modules-auth-login.module-A7u1YYeo.mjs.map → acorex-modules-auth-login.module-sFVL-lYB.mjs.map} +1 -1
  156. package/fesm2022/{acorex-modules-auth-master.layout--UllrmW0.mjs → acorex-modules-auth-master.layout-Bnt5qiio.mjs} +2 -2
  157. package/fesm2022/{acorex-modules-auth-master.layout--UllrmW0.mjs.map → acorex-modules-auth-master.layout-Bnt5qiio.mjs.map} +1 -1
  158. package/fesm2022/{acorex-modules-auth-password.component-Dv0VXzh_.mjs → acorex-modules-auth-password.component-BXL-aLTx.mjs} +2 -2
  159. package/fesm2022/{acorex-modules-auth-password.component-Dv0VXzh_.mjs.map → acorex-modules-auth-password.component-BXL-aLTx.mjs.map} +1 -1
  160. package/fesm2022/{acorex-modules-auth-password.component-BjqQ-qVo.mjs → acorex-modules-auth-password.component-ClaRp38G.mjs} +2 -2
  161. package/fesm2022/{acorex-modules-auth-password.component-BjqQ-qVo.mjs.map → acorex-modules-auth-password.component-ClaRp38G.mjs.map} +1 -1
  162. package/fesm2022/{acorex-modules-auth-routes-C4eNPru3.mjs → acorex-modules-auth-routes-MDneFw2m.mjs} +2 -2
  163. package/fesm2022/{acorex-modules-auth-routes-C4eNPru3.mjs.map → acorex-modules-auth-routes-MDneFw2m.mjs.map} +1 -1
  164. package/fesm2022/{acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs → acorex-modules-auth-two-factor.module-BHulbf0N.mjs} +2 -2
  165. package/fesm2022/{acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs.map → acorex-modules-auth-two-factor.module-BHulbf0N.mjs.map} +1 -1
  166. package/fesm2022/acorex-modules-auth.mjs +1 -1
  167. package/fesm2022/acorex-modules-conversation.mjs +952 -0
  168. package/fesm2022/acorex-modules-conversation.mjs.map +1 -0
  169. package/fesm2022/acorex-modules-converstion-test.mjs +23 -0
  170. package/fesm2022/acorex-modules-converstion-test.mjs.map +1 -0
  171. package/fesm2022/{acorex-modules-form-management-designer.page-SoPH2V7i.mjs → acorex-modules-form-template-management-designer.page-DC18KFvK.mjs} +6 -6
  172. package/fesm2022/acorex-modules-form-template-management-designer.page-DC18KFvK.mjs.map +1 -0
  173. package/fesm2022/acorex-modules-form-template-management.mjs +713 -0
  174. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -0
  175. package/fesm2022/acorex-modules-localization-management.mjs +1019 -0
  176. package/fesm2022/acorex-modules-localization-management.mjs.map +1 -0
  177. package/fesm2022/acorex-modules-notification-management.mjs +29 -35
  178. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  179. package/fesm2022/acorex-modules-platform-management.mjs +1430 -214
  180. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  181. package/fesm2022/acorex-modules-template-management.mjs +187 -141
  182. package/fesm2022/acorex-modules-template-management.mjs.map +1 -1
  183. package/form-template-management/README.md +4 -0
  184. package/form-template-management/index.d.ts +1 -0
  185. package/form-template-management/lib/const.d.ts +7 -0
  186. package/form-template-management/lib/entities/category/category.entity.d.ts +3 -0
  187. package/form-template-management/lib/entities/category/category.module.d.ts +6 -0
  188. package/form-template-management/lib/entities/category/category.service.d.ts +10 -0
  189. package/form-template-management/lib/entities/category/category.types.d.ts +5 -0
  190. package/form-template-management/lib/entities/category/index.d.ts +4 -0
  191. package/form-template-management/lib/entities/template/index.d.ts +4 -0
  192. package/form-template-management/lib/entities/template/template.entity.d.ts +3 -0
  193. package/form-template-management/lib/entities/template/template.module.d.ts +6 -0
  194. package/form-template-management/lib/entities/template/template.service.d.ts +10 -0
  195. package/form-template-management/lib/entities/template/template.types.d.ts +5 -0
  196. package/form-template-management/lib/entity.provider.d.ts +9 -0
  197. package/form-template-management/lib/form-template-management.module.d.ts +10 -0
  198. package/form-template-management/lib/menu.provider.d.ts +5 -0
  199. package/form-template-management/lib/pages/designer/designer.page.d.ts +5 -0
  200. package/localization-management/README.md +4 -0
  201. package/localization-management/index.d.ts +7 -0
  202. package/localization-management/lib/culture/culture.entity.d.ts +3 -0
  203. package/localization-management/lib/culture/culture.service.d.ts +10 -0
  204. package/localization-management/lib/culture/culture.types.d.ts +12 -0
  205. package/localization-management/lib/culture/index.d.ts +3 -0
  206. package/localization-management/lib/entity.loader.d.ts +9 -0
  207. package/localization-management/lib/language/index.d.ts +3 -0
  208. package/localization-management/lib/language/language-slot/language-slot.component.d.ts +19 -0
  209. package/localization-management/lib/localization-management.module.d.ts +10 -0
  210. package/localization-management/lib/localization-management.source.d.ts +3 -0
  211. package/localization-management/lib/localization-store.service.d.ts +7 -0
  212. package/localization-management/lib/menu.provider.d.ts +5 -0
  213. package/localization-management/lib/time-zone/index.d.ts +3 -0
  214. package/localization-management/lib/time-zone/time-zone.entity.d.ts +3 -0
  215. package/localization-management/lib/time-zone/time-zone.service.d.ts +10 -0
  216. package/localization-management/lib/time-zone/time-zone.types.d.ts +9 -0
  217. package/package.json +29 -11
  218. package/platform-management/index.d.ts +1 -2
  219. package/platform-management/lib/common/common.module.d.ts +6 -0
  220. package/platform-management/lib/common/common.source.d.ts +4 -0
  221. package/platform-management/lib/common/country/country-datasource.provider.d.ts +5 -0
  222. package/platform-management/lib/common/country/country.entity.d.ts +3 -0
  223. package/platform-management/lib/common/country/country.service.d.ts +10 -0
  224. package/platform-management/lib/common/country/country.types.d.ts +18 -0
  225. package/platform-management/lib/common/country/index.d.ts +3 -0
  226. package/platform-management/lib/common/currency/currency.entity.d.ts +3 -0
  227. package/platform-management/lib/common/currency/currency.service.d.ts +10 -0
  228. package/platform-management/lib/common/currency/currency.types.d.ts +6 -0
  229. package/platform-management/lib/common/currency/index.d.ts +3 -0
  230. package/platform-management/lib/{languages → common}/entity.loader.d.ts +3 -3
  231. package/platform-management/lib/common/index.d.ts +4 -0
  232. package/platform-management/lib/common/province/index.d.ts +3 -0
  233. package/platform-management/lib/common/province/province.entity.d.ts +3 -0
  234. package/platform-management/lib/common/province/province.service.d.ts +10 -0
  235. package/platform-management/lib/common/province/province.types.d.ts +7 -0
  236. package/platform-management/lib/menu.provider.d.ts +2 -1
  237. package/platform-management/lib/platform-management.module.d.ts +2 -1
  238. package/template-management/index.d.ts +1 -1
  239. package/template-management/lib/{entity.loader.d.ts → entity.provider.d.ts} +3 -3
  240. package/template-management/lib/menu.provider.d.ts +2 -1
  241. package/esm2022/form-management/acorex-modules-form-management.mjs +0 -5
  242. package/esm2022/form-management/index.mjs +0 -2
  243. package/esm2022/form-management/lib/designer/designer.page.mjs +0 -24
  244. package/esm2022/form-management/lib/form-management.module.mjs +0 -53
  245. package/esm2022/form-management/lib/menu.provider.mjs +0 -29
  246. package/esm2022/platform-management/lib/comments/comment-management.service.mjs +0 -18
  247. package/esm2022/platform-management/lib/languages/entities/language.entity.mjs +0 -234
  248. package/esm2022/platform-management/lib/languages/entity.loader.mjs +0 -26
  249. package/esm2022/platform-management/lib/languages/index.mjs +0 -5
  250. package/esm2022/platform-management/lib/languages/language-management.service.mjs +0 -16
  251. package/esm2022/platform-management/lib/languages/language.types.mjs +0 -2
  252. package/esm2022/template-management/lib/entity.loader.mjs +0 -36
  253. package/fesm2022/acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs.map +0 -1
  254. package/fesm2022/acorex-modules-form-management-designer.page-SoPH2V7i.mjs.map +0 -1
  255. package/fesm2022/acorex-modules-form-management.mjs +0 -88
  256. package/fesm2022/acorex-modules-form-management.mjs.map +0 -1
  257. package/form-management/README.md +0 -4
  258. package/form-management/index.d.ts +0 -1
  259. package/form-management/lib/designer/designer.page.d.ts +0 -5
  260. package/form-management/lib/form-management.module.d.ts +0 -8
  261. package/form-management/lib/menu.provider.d.ts +0 -4
  262. package/platform-management/lib/comments/comment-management.service.d.ts +0 -10
  263. package/platform-management/lib/languages/index.d.ts +0 -4
  264. /package/{platform-management/lib/languages/entities → localization-management/lib/language}/language.entity.d.ts +0 -0
  265. /package/{platform-management/lib/languages/language-management.service.d.ts → localization-management/lib/language/language.service.d.ts} +0 -0
  266. /package/{platform-management/lib/languages → localization-management/lib/language}/language.types.d.ts +0 -0
@@ -2,39 +2,36 @@ import { AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
2
2
  import * as i0 from '@angular/core';
3
3
  import { inject, Injector, Injectable, NgModule } from '@angular/core';
4
4
  import { AXMEntityCrudServiceImpl, AXP_MENU_PROVIDER, AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
5
+ import { AXTranslationService } from '@acorex/core/translation';
5
6
  import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
6
7
 
7
- class AXMTemplateModuleEntityLoader {
8
+ class AXMTemplateModuleEntityProvider {
8
9
  constructor() {
9
10
  this.injector = inject(Injector);
10
11
  }
11
12
  async get(moduleName, entityName) {
12
- return new Promise(async (resolve) => {
13
+ if (moduleName == 'template-management') {
13
14
  switch (entityName) {
14
15
  case 'template': {
15
16
  const entity = (await Promise.resolve().then(function () { return textTemplate_entity; })).templateEntityFactory;
16
- resolve(entity(this.injector));
17
- break;
17
+ return entity(this.injector);
18
18
  }
19
19
  case 'variable': {
20
20
  const entity = (await Promise.resolve().then(function () { return templateVariable_entity; })).textTemplateVariableEntityFactory;
21
- resolve(entity(this.injector));
22
- break;
21
+ return entity(this.injector);
23
22
  }
24
23
  case 'category': {
25
24
  const entity = (await Promise.resolve().then(function () { return category_entity; })).textTemplateCategoryEntityFactory;
26
- resolve(entity(this.injector));
27
- break;
25
+ return entity(this.injector);
28
26
  }
29
- default:
30
- resolve(null);
31
27
  }
32
- });
28
+ }
29
+ return null;
33
30
  }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
35
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityLoader }); }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
32
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityProvider }); }
36
33
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityLoader, decorators: [{
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateModuleEntityProvider, decorators: [{
38
35
  type: Injectable
39
36
  }] });
40
37
 
@@ -68,38 +65,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
68
65
  }], ctorParameters: () => [] });
69
66
 
70
67
  class AXMTextTemplateManagmentModuleMenuProvider {
68
+ constructor() {
69
+ this.translateService = inject(AXTranslationService);
70
+ }
71
71
  async items() {
72
+ const scope = '#text-template'; // Scope used for translation lookup
72
73
  return [
73
74
  {
74
75
  items: [
75
76
  {
76
77
  priority: 9001,
77
- text: 'Text Template Management',
78
+ text: `${scope}.module-name`,
78
79
  icon: 'fa-solid fa-code',
79
80
  data: {
80
81
  // requiredPermission: 'demo.admin.settings',
81
82
  },
82
83
  children: [
83
84
  {
84
- text: 'Template',
85
+ text: `${scope}.templates`,
85
86
  path: '/demo/m/template-management/e/template/list',
86
87
  icon: 'fa-solid fa-file-code',
87
88
  data: {
88
- //requiredPermission: '',
89
+ // requiredPermission: '',
89
90
  },
90
91
  },
91
92
  {
92
- text: 'Category',
93
+ text: `${scope}.category`,
93
94
  path: '/demo/m/template-management/e/category/list',
94
95
  icon: 'fa-solid fa-layer-group',
95
96
  data: {
96
- //requiredPermission: '',
97
+ // requiredPermission: '',
97
98
  },
98
99
  },
99
100
  ],
100
101
  },
101
- ]
102
- }
102
+ ],
103
+ },
103
104
  ];
104
105
  }
105
106
  }
@@ -110,7 +111,7 @@ class AXMTemplateManagementModule {
110
111
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTemplateManagementModule, providers: [
111
112
  {
112
113
  provide: AXP_ENTITY_DEFINITION_LOADER,
113
- useClass: AXMTemplateModuleEntityLoader,
114
+ useClass: AXMTemplateModuleEntityProvider,
114
115
  multi: true,
115
116
  },
116
117
  {
@@ -137,7 +138,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
137
138
  providers: [
138
139
  {
139
140
  provide: AXP_ENTITY_DEFINITION_LOADER,
140
- useClass: AXMTemplateModuleEntityLoader,
141
+ useClass: AXMTemplateModuleEntityProvider,
141
142
  multi: true,
142
143
  },
143
144
  {
@@ -159,37 +160,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
159
160
 
160
161
  async function textTemplateCategoryEntityFactory(injector) {
161
162
  const dataService = injector.get(AXMTextTemplateCategoryService);
163
+ const moduleName = 'template-management';
164
+ const scope = `#${moduleName}`;
162
165
  const entityDef = {
163
- module: 'template-management',
164
- name: 'textTemplateCategory',
165
- source: 'template-management.textTemplateCategory',
166
- title: 'Category',
166
+ module: moduleName,
167
+ name: 'category',
168
+ source: 'templateManagement.category',
169
+ title: `#common.category`,
167
170
  formats: {
168
- individual: 'Category',
169
- plural: 'Categories',
171
+ individual: '#common.category',
172
+ plural: '#common.categories',
170
173
  },
171
174
  relatedEntities: [],
172
175
  groups: [
173
176
  {
174
177
  id: 'category',
175
- title: 'Category',
178
+ title: '#common.category',
176
179
  },
177
180
  ],
178
181
  properties: [
179
182
  {
180
183
  name: 'name',
181
- title: 'Name',
184
+ title: '#common.name',
182
185
  groupId: 'category',
186
+ options: {
187
+ sort: {
188
+ enabled: true,
189
+ },
190
+ },
183
191
  schema: {
184
192
  dataType: 'string',
185
193
  interface: {
186
194
  type: AXPWidgetsCatalog.text,
187
195
  },
188
196
  },
197
+ validations: [
198
+ {
199
+ rule: 'required',
200
+ },
201
+ ],
189
202
  },
190
203
  {
191
204
  name: 'title',
192
- title: 'Title',
205
+ title: '#common.title',
193
206
  groupId: 'category',
194
207
  schema: {
195
208
  dataType: 'string',
@@ -197,13 +210,19 @@ async function textTemplateCategoryEntityFactory(injector) {
197
210
  type: AXPWidgetsCatalog.text,
198
211
  },
199
212
  },
213
+ validations: [
214
+ {
215
+ rule: 'required',
216
+ },
217
+ ],
200
218
  },
201
219
  ],
202
220
  columns: [{ name: 'name' }, { name: 'title' }],
203
221
  commands: {
204
222
  create: {
205
223
  execute: async (data) => {
206
- return await dataService.insertOne(data);
224
+ const res = await dataService.insertOne(data);
225
+ return { id: res };
207
226
  },
208
227
  },
209
228
  delete: {
@@ -342,28 +361,28 @@ async function textTemplateCategoryEntityFactory(injector) {
342
361
  list: {
343
362
  actions: [
344
363
  {
345
- title: 'Create New',
364
+ title: `#common.create #common.category`,
346
365
  command: 'create-entity',
347
366
  priority: 'primary',
348
367
  type: 'create',
349
368
  scope: AXPEntityCommandScope.TypeLevel,
350
369
  },
351
370
  {
352
- title: 'Delete Items',
371
+ title: '#common.deleteItems',
353
372
  command: 'delete-entity',
354
373
  priority: 'primary',
355
374
  type: 'delete',
356
375
  scope: AXPEntityCommandScope.Selected,
357
376
  },
358
377
  {
359
- title: 'Details',
378
+ title: '#common.detail',
360
379
  command: 'open-entity',
361
380
  priority: 'primary',
362
381
  type: 'view',
363
382
  scope: AXPEntityCommandScope.Individual,
364
383
  },
365
384
  {
366
- title: 'Delete',
385
+ title: '#common.delete',
367
386
  command: 'delete-entity',
368
387
  priority: 'primary',
369
388
  type: 'delete',
@@ -373,7 +392,7 @@ async function textTemplateCategoryEntityFactory(injector) {
373
392
  views: [
374
393
  {
375
394
  name: 'all',
376
- title: 'All Items',
395
+ title: '#common.allItem',
377
396
  fixed: true,
378
397
  columns: [],
379
398
  conditions: [],
@@ -435,6 +454,11 @@ async function templateEntityFactory(injector) {
435
454
  type: AXPWidgetsCatalog.text,
436
455
  },
437
456
  },
457
+ validations: [
458
+ {
459
+ rule: 'required',
460
+ },
461
+ ],
438
462
  },
439
463
  {
440
464
  name: 'title',
@@ -446,6 +470,11 @@ async function templateEntityFactory(injector) {
446
470
  type: AXPWidgetsCatalog.text,
447
471
  },
448
472
  },
473
+ validations: [
474
+ {
475
+ rule: 'required',
476
+ },
477
+ ],
449
478
  },
450
479
  {
451
480
  name: 'content',
@@ -457,6 +486,11 @@ async function templateEntityFactory(injector) {
457
486
  type: AXPWidgetsCatalog.richText,
458
487
  },
459
488
  },
489
+ validations: [
490
+ {
491
+ rule: 'required',
492
+ },
493
+ ],
460
494
  },
461
495
  {
462
496
  name: 'category.id',
@@ -472,6 +506,11 @@ async function templateEntityFactory(injector) {
472
506
  },
473
507
  },
474
508
  },
509
+ validations: [
510
+ {
511
+ rule: 'required',
512
+ },
513
+ ],
475
514
  },
476
515
  {
477
516
  name: 'category.title',
@@ -504,13 +543,19 @@ async function templateEntityFactory(injector) {
504
543
  },
505
544
  },
506
545
  },
546
+ validations: [
547
+ {
548
+ rule: 'required',
549
+ },
550
+ ],
507
551
  },
508
552
  ],
509
553
  columns: [{ name: 'name' }, { name: 'title' }, { name: 'category.title' }, { name: 'type' }],
510
554
  commands: {
511
555
  create: {
512
556
  execute: async (data) => {
513
- return await dataService.insertOne(data);
557
+ const res = await dataService.insertOne(data);
558
+ return { id: res };
514
559
  },
515
560
  },
516
561
  delete: {
@@ -784,18 +829,18 @@ async function textTemplateVariableEntityFactory(injector) {
784
829
  const entityDef = {
785
830
  module: 'template-management',
786
831
  name: 'textTemplateVariable',
787
- source: 'template-management.textTemplateVariable',
832
+ source: 'template-management.variable',
788
833
  title: 'Template Variables',
789
834
  formats: {
790
835
  individual: 'TemplateVariable',
791
- plural: 'TemplateVariables'
836
+ plural: 'TemplateVariables',
792
837
  },
793
838
  relatedEntities: [],
794
839
  groups: [
795
840
  {
796
841
  id: 'templateVariable',
797
- title: 'TemplateVariable'
798
- }
842
+ title: 'TemplateVariable',
843
+ },
799
844
  ],
800
845
  properties: [
801
846
  {
@@ -805,9 +850,9 @@ async function textTemplateVariableEntityFactory(injector) {
805
850
  schema: {
806
851
  dataType: 'string',
807
852
  interface: {
808
- type: AXPWidgetsCatalog.text
809
- }
810
- }
853
+ type: AXPWidgetsCatalog.text,
854
+ },
855
+ },
811
856
  },
812
857
  {
813
858
  name: 'title',
@@ -816,9 +861,9 @@ async function textTemplateVariableEntityFactory(injector) {
816
861
  schema: {
817
862
  dataType: 'string',
818
863
  interface: {
819
- type: AXPWidgetsCatalog.text
820
- }
821
- }
864
+ type: AXPWidgetsCatalog.text,
865
+ },
866
+ },
822
867
  },
823
868
  {
824
869
  name: 'type',
@@ -827,9 +872,9 @@ async function textTemplateVariableEntityFactory(injector) {
827
872
  schema: {
828
873
  dataType: 'string',
829
874
  interface: {
830
- type: AXPWidgetsCatalog.select
831
- }
832
- }
875
+ type: AXPWidgetsCatalog.select,
876
+ },
877
+ },
833
878
  },
834
879
  {
835
880
  name: 'required',
@@ -838,36 +883,37 @@ async function textTemplateVariableEntityFactory(injector) {
838
883
  schema: {
839
884
  dataType: 'boolean',
840
885
  interface: {
841
- type: AXPWidgetsCatalog.toggle
842
- }
843
- }
844
- }
886
+ type: AXPWidgetsCatalog.toggle,
887
+ },
888
+ },
889
+ },
845
890
  ],
846
- columns: [{ name: 'name' }, { name: 'title' }, { name: 'requirement' }],
891
+ columns: [{ name: 'name' }, { name: 'title' }, { name: 'required' }],
847
892
  commands: {
848
893
  create: {
849
894
  execute: async (data) => {
850
895
  const item = await dataService.getOne(data.globalTemplateId);
851
896
  (item.templateVariables ??= []).push(data);
852
897
  return await dataService.updateOne(data.globalTemplateId, item);
853
- }
898
+ },
854
899
  },
855
900
  delete: {
856
901
  execute: async (id) => {
857
902
  // await await dataService.templateVariableDataProvider.deleteOne(id);
858
903
  return Promise.resolve();
859
- }
904
+ },
860
905
  },
861
906
  update: {
862
907
  execute: async (data) => {
908
+ console.log(data);
863
909
  return new Promise((resolve) => {
864
910
  setTimeout(async () => {
865
911
  // await dataService.templateVariableDataProvider.updateOne(data.id, data);
866
912
  resolve(data);
867
913
  }, 1000);
868
914
  });
869
- }
870
- }
915
+ },
916
+ },
871
917
  },
872
918
  queries: {
873
919
  byKey: {
@@ -879,15 +925,15 @@ async function textTemplateVariableEntityFactory(injector) {
879
925
  }, 500);
880
926
  });
881
927
  },
882
- type: AXPEntityQueryType.Single
928
+ type: AXPEntityQueryType.Single,
883
929
  },
884
930
  list: {
885
931
  execute: async (e) => {
886
932
  if (e.filter != null && e.filter.filters != null && e.filter.filters[0].value != null) {
887
933
  const parentItem = await dataService.getOne(e.filter?.filters[0].value);
888
934
  return {
889
- totalCount: parentItem.templateVariables.length,
890
- items: parentItem.templateVariables
935
+ totalCount: parentItem.templateVariables?.length ?? 0,
936
+ items: parentItem.templateVariables ?? [],
891
937
  };
892
938
  }
893
939
  else {
@@ -895,16 +941,16 @@ async function textTemplateVariableEntityFactory(injector) {
895
941
  return [];
896
942
  }
897
943
  },
898
- type: AXPEntityQueryType.List
899
- }
944
+ type: AXPEntityQueryType.List,
945
+ },
900
946
  },
901
947
  interfaces: {
902
948
  master: {
903
949
  create: {
904
950
  sections: [
905
951
  {
906
- id: 'templateVariable'
907
- }
952
+ id: 'templateVariable',
953
+ },
908
954
  ],
909
955
  properties: [
910
956
  {
@@ -912,44 +958,44 @@ async function textTemplateVariableEntityFactory(injector) {
912
958
  layout: {
913
959
  positions: {
914
960
  lg: {
915
- colSpan: 6
916
- }
917
- }
918
- }
961
+ colSpan: 6,
962
+ },
963
+ },
964
+ },
919
965
  },
920
966
  {
921
967
  name: 'title',
922
968
  layout: {
923
969
  positions: {
924
970
  lg: {
925
- colSpan: 6
926
- }
927
- }
928
- }
971
+ colSpan: 6,
972
+ },
973
+ },
974
+ },
929
975
  },
930
976
  {
931
- name: 'requirement',
977
+ name: 'required',
932
978
  layout: {
933
979
  positions: {
934
980
  lg: {
935
- colSpan: 6
936
- }
937
- }
938
- }
939
- }
940
- ]
981
+ colSpan: 6,
982
+ },
983
+ },
984
+ },
985
+ },
986
+ ],
941
987
  },
942
988
  update: {
943
989
  sections: [
944
990
  {
945
- id: 'templateVariable'
991
+ id: 'templateVariable',
946
992
  },
947
993
  {
948
- id: 'schema'
994
+ id: 'schema',
949
995
  },
950
996
  {
951
- id: 'interface'
952
- }
997
+ id: 'interface',
998
+ },
953
999
  ],
954
1000
  properties: [
955
1001
  {
@@ -957,49 +1003,49 @@ async function textTemplateVariableEntityFactory(injector) {
957
1003
  layout: {
958
1004
  positions: {
959
1005
  lg: {
960
- colSpan: 6
961
- }
962
- }
963
- }
1006
+ colSpan: 6,
1007
+ },
1008
+ },
1009
+ },
964
1010
  },
965
1011
  {
966
1012
  name: 'title',
967
1013
  layout: {
968
1014
  positions: {
969
1015
  lg: {
970
- colSpan: 6
971
- }
972
- }
973
- }
1016
+ colSpan: 6,
1017
+ },
1018
+ },
1019
+ },
974
1020
  },
975
1021
  {
976
1022
  name: 'schema.nullable',
977
1023
  layout: {
978
1024
  positions: {
979
1025
  lg: {
980
- colSpan: 6
981
- }
982
- }
983
- }
1026
+ colSpan: 6,
1027
+ },
1028
+ },
1029
+ },
984
1030
  },
985
1031
  {
986
- name: 'requirement',
1032
+ name: 'required',
987
1033
  layout: {
988
1034
  positions: {
989
1035
  lg: {
990
- colSpan: 6
991
- }
992
- }
993
- }
994
- }
995
- ]
1036
+ colSpan: 6,
1037
+ },
1038
+ },
1039
+ },
1040
+ },
1041
+ ],
996
1042
  },
997
1043
  single: {
998
1044
  title: '{{title}}',
999
1045
  sections: [
1000
1046
  {
1001
- id: 'templateVariable'
1002
- }
1047
+ id: 'templateVariable',
1048
+ },
1003
1049
  ],
1004
1050
  properties: [
1005
1051
  {
@@ -1007,33 +1053,33 @@ async function textTemplateVariableEntityFactory(injector) {
1007
1053
  layout: {
1008
1054
  positions: {
1009
1055
  lg: {
1010
- colSpan: 6
1011
- }
1012
- }
1013
- }
1056
+ colSpan: 6,
1057
+ },
1058
+ },
1059
+ },
1014
1060
  },
1015
1061
  {
1016
1062
  name: 'title',
1017
1063
  layout: {
1018
1064
  positions: {
1019
1065
  lg: {
1020
- colSpan: 6
1021
- }
1022
- }
1023
- }
1066
+ colSpan: 6,
1067
+ },
1068
+ },
1069
+ },
1024
1070
  },
1025
1071
  {
1026
- name: 'requirement',
1072
+ name: 'required',
1027
1073
  layout: {
1028
1074
  positions: {
1029
1075
  lg: {
1030
- colSpan: 12
1031
- }
1032
- }
1033
- }
1034
- }
1076
+ colSpan: 12,
1077
+ },
1078
+ },
1079
+ },
1080
+ },
1035
1081
  ],
1036
- actions: []
1082
+ actions: [],
1037
1083
  },
1038
1084
  list: {
1039
1085
  actions: [
@@ -1042,29 +1088,29 @@ async function textTemplateVariableEntityFactory(injector) {
1042
1088
  command: 'create-entity',
1043
1089
  priority: 'primary',
1044
1090
  type: 'create',
1045
- scope: AXPEntityCommandScope.TypeLevel
1091
+ scope: AXPEntityCommandScope.TypeLevel,
1046
1092
  },
1047
1093
  {
1048
1094
  title: 'Delete Items',
1049
1095
  command: 'delete-entity',
1050
1096
  priority: 'primary',
1051
1097
  type: 'delete',
1052
- scope: AXPEntityCommandScope.Selected
1053
- },
1054
- {
1055
- title: 'Details',
1056
- command: 'open-entity',
1057
- priority: 'primary',
1058
- type: 'view',
1059
- scope: AXPEntityCommandScope.Individual
1098
+ scope: AXPEntityCommandScope.Selected,
1060
1099
  },
1100
+ // {
1101
+ // title: 'Update',
1102
+ // command: 'update-entity',
1103
+ // priority: 'primary',
1104
+ // type: 'view',
1105
+ // scope: AXPEntityCommandScope.Individual
1106
+ // },
1061
1107
  {
1062
1108
  title: 'Delete',
1063
1109
  command: 'delete-entity',
1064
1110
  priority: 'primary',
1065
1111
  type: 'delete',
1066
- scope: AXPEntityCommandScope.Individual
1067
- }
1112
+ scope: AXPEntityCommandScope.Individual,
1113
+ },
1068
1114
  ],
1069
1115
  views: [
1070
1116
  {
@@ -1073,12 +1119,12 @@ async function textTemplateVariableEntityFactory(injector) {
1073
1119
  fixed: true,
1074
1120
  columns: [],
1075
1121
  conditions: [],
1076
- sorts: []
1077
- }
1078
- ]
1079
- }
1080
- }
1081
- }
1122
+ sorts: [],
1123
+ },
1124
+ ],
1125
+ },
1126
+ },
1127
+ },
1082
1128
  };
1083
1129
  return entityDef;
1084
1130
  }
@@ -1092,5 +1138,5 @@ var templateVariable_entity = /*#__PURE__*/Object.freeze({
1092
1138
  * Generated bundle index. Do not edit.
1093
1139
  */
1094
1140
 
1095
- export { AXMTemplateManagementModule, AXMTemplateModuleEntityLoader, AXMTextTemplateCategoryService, AXMTextTemplateCategoryServiceImpl, AXMTextTemplateService, AXMTextTemplateServiceImpl, CATEGORY_SOURCE_NAME, TEMPLATE_SOURCE_NAME, templateEntityFactory, textTemplateCategoryEntityFactory, textTemplateVariableEntityFactory };
1141
+ export { AXMTemplateManagementModule, AXMTemplateModuleEntityProvider, AXMTextTemplateCategoryService, AXMTextTemplateCategoryServiceImpl, AXMTextTemplateService, AXMTextTemplateServiceImpl, CATEGORY_SOURCE_NAME, TEMPLATE_SOURCE_NAME, templateEntityFactory, textTemplateCategoryEntityFactory, textTemplateVariableEntityFactory };
1096
1142
  //# sourceMappingURL=acorex-modules-template-management.mjs.map