@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
@@ -1,34 +1,1044 @@
1
- import { AXMEntityCrudServiceImpl, AXPEntityDataProviderImpl, AXPDataGenerator, AXPEntityQueryType, AXPEntityCommandScope, AXP_MENU_PROVIDER } from '@acorex/platform/common';
1
+ import { AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, AXPDataGenerator, AXP_MENU_PROVIDER } from '@acorex/platform/common';
2
+ import { AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
2
3
  import * as i0 from '@angular/core';
3
4
  import { Injectable, inject, Injector, NgModule } from '@angular/core';
4
- import { AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
5
- import { AXPCommentService } from '@acorex/platform/themes/shared';
6
- import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
5
+ import { AXPWidgetsCatalog, AXP_WIDGET_DATASOURCE_PROVIDER } from '@acorex/platform/layout/builder';
6
+ import { AXDataSource } from '@acorex/components/common';
7
+ import { AXTranslationService } from '@acorex/core/translation';
7
8
 
8
- class AXPCommentServiceImpl extends AXMEntityCrudServiceImpl {
9
+ const CURRENCY_SOURCE_NAME = 'common.currency';
10
+ const COUNTRY_SOURCE_NAME = 'common.country';
11
+ const PROVINCE_SOURCE_NAME = 'common.province';
12
+ const CITY_SOURCE_NAME = 'common.city';
13
+
14
+ class AXMCountryService extends AXMEntityCrudServiceImpl {
15
+ }
16
+ class AXMCountryServiceImpl extends AXMCountryService {
9
17
  constructor() {
10
- super('comments');
11
- this.messageReactionDataProvider = new AXPEntityDataProviderImpl(super.storageService, 'messageReaction');
18
+ super(COUNTRY_SOURCE_NAME);
12
19
  }
13
- async like(payload) {
14
- return this.messageReactionDataProvider.insertOne(payload);
15
- }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
17
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCountryServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCountryServiceImpl }); }
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCountryServiceImpl, decorators: [{
24
+ type: Injectable
25
+ }], ctorParameters: () => [] });
26
+
27
+ async function countryEntityFactory(injector) {
28
+ const dataService = injector.get(AXMCountryService);
29
+ const entityDef = {
30
+ module: 'localization-management',
31
+ name: 'country',
32
+ source: 'localizationManagement.country',
33
+ title: 'Country',
34
+ formats: {
35
+ individual: 'Country',
36
+ plural: 'Countries',
37
+ },
38
+ relatedEntities: [
39
+ {
40
+ entity: 'common.province',
41
+ title: '#common.provinces',
42
+ columns: ['title'],
43
+ conditions: [
44
+ {
45
+ name: 'countryId',
46
+ operator: {
47
+ type: 'equal',
48
+ },
49
+ value: '${id}',
50
+ },
51
+ ],
52
+ },
53
+ ],
54
+ groups: [
55
+ {
56
+ id: 'country',
57
+ title: 'Country',
58
+ },
59
+ {
60
+ id: 'extra',
61
+ title: 'Global',
62
+ },
63
+ {
64
+ id: 'geo',
65
+ title: 'Geo',
66
+ },
67
+ ],
68
+ properties: [
69
+ {
70
+ name: 'title',
71
+ title: 'Title',
72
+ groupId: 'country',
73
+ schema: {
74
+ dataType: 'string',
75
+ interface: {
76
+ type: AXPWidgetsCatalog.text,
77
+ },
78
+ },
79
+ validations: [
80
+ {
81
+ rule: 'required',
82
+ },
83
+ ],
84
+ },
85
+ {
86
+ name: 'iso3',
87
+ title: 'ISO3 Code',
88
+ groupId: 'country',
89
+ schema: {
90
+ dataType: 'string',
91
+ interface: {
92
+ type: AXPWidgetsCatalog.text,
93
+ },
94
+ },
95
+ validations: [
96
+ {
97
+ rule: 'required',
98
+ },
99
+ ],
100
+ },
101
+ {
102
+ name: 'iso2',
103
+ title: 'ISO2 Code',
104
+ groupId: 'country',
105
+ schema: {
106
+ dataType: 'string',
107
+ interface: {
108
+ type: AXPWidgetsCatalog.text,
109
+ },
110
+ },
111
+ validations: [
112
+ {
113
+ rule: 'required',
114
+ },
115
+ ],
116
+ },
117
+ {
118
+ name: 'numericCode',
119
+ title: 'Numeric Code',
120
+ groupId: 'country',
121
+ schema: {
122
+ dataType: 'string',
123
+ interface: {
124
+ type: AXPWidgetsCatalog.text,
125
+ },
126
+ },
127
+ validations: [
128
+ {
129
+ rule: 'required',
130
+ },
131
+ ],
132
+ },
133
+ {
134
+ name: 'nativeName',
135
+ title: 'Native Name',
136
+ groupId: 'geo',
137
+ schema: {
138
+ dataType: 'string',
139
+ interface: {
140
+ type: AXPWidgetsCatalog.text,
141
+ },
142
+ },
143
+ validations: [
144
+ {
145
+ rule: 'required',
146
+ },
147
+ ],
148
+ },
149
+ {
150
+ name: 'region',
151
+ title: 'Region',
152
+ groupId: 'geo',
153
+ schema: {
154
+ dataType: 'string',
155
+ interface: {
156
+ type: AXPWidgetsCatalog.text,
157
+ },
158
+ },
159
+ validations: [
160
+ {
161
+ rule: 'required',
162
+ },
163
+ ],
164
+ },
165
+ {
166
+ name: 'subregion',
167
+ title: 'SubRegion',
168
+ groupId: 'geo',
169
+ schema: {
170
+ dataType: 'string',
171
+ interface: {
172
+ type: AXPWidgetsCatalog.text,
173
+ },
174
+ },
175
+ validations: [
176
+ {
177
+ rule: 'required',
178
+ },
179
+ ],
180
+ },
181
+ {
182
+ name: 'nationality',
183
+ title: 'Nationality',
184
+ groupId: 'geo',
185
+ schema: {
186
+ dataType: 'string',
187
+ interface: {
188
+ type: AXPWidgetsCatalog.text,
189
+ },
190
+ },
191
+ validations: [
192
+ {
193
+ rule: 'required',
194
+ },
195
+ ],
196
+ },
197
+ {
198
+ name: 'geo.latitude',
199
+ title: 'Latitude',
200
+ groupId: 'geo',
201
+ schema: {
202
+ dataType: 'string',
203
+ interface: {
204
+ type: AXPWidgetsCatalog.text,
205
+ },
206
+ },
207
+ validations: [
208
+ {
209
+ rule: 'required',
210
+ },
211
+ ],
212
+ },
213
+ {
214
+ name: 'geo.longitude',
215
+ title: 'Longitude',
216
+ groupId: 'geo',
217
+ schema: {
218
+ dataType: 'string',
219
+ interface: {
220
+ type: AXPWidgetsCatalog.text,
221
+ },
222
+ },
223
+ validations: [
224
+ {
225
+ rule: 'required',
226
+ },
227
+ ],
228
+ },
229
+ {
230
+ name: 'capital',
231
+ title: 'Capital',
232
+ groupId: 'extra',
233
+ schema: {
234
+ dataType: 'string',
235
+ interface: {
236
+ type: AXPWidgetsCatalog.text,
237
+ },
238
+ },
239
+ validations: [
240
+ {
241
+ rule: 'required',
242
+ },
243
+ ],
244
+ },
245
+ {
246
+ name: 'tld',
247
+ title: 'Top Level Domain',
248
+ groupId: 'extra',
249
+ schema: {
250
+ dataType: 'string',
251
+ interface: {
252
+ type: AXPWidgetsCatalog.text,
253
+ },
254
+ },
255
+ validations: [
256
+ {
257
+ rule: 'required',
258
+ },
259
+ ],
260
+ },
261
+ ],
262
+ columns: [{ name: 'title' }, { name: 'iso2' }, { name: 'nativeName' }, { name: 'region' }],
263
+ commands: {
264
+ create: {
265
+ execute: async (data) => {
266
+ return Promise.resolve({ id: await dataService.insertOne(data) });
267
+ },
268
+ },
269
+ delete: {
270
+ execute: async (id) => {
271
+ await dataService.deleteOne(id);
272
+ return Promise.resolve();
273
+ },
274
+ },
275
+ update: {
276
+ execute: async (data) => {
277
+ return new Promise((resolve) => {
278
+ setTimeout(async () => {
279
+ await dataService.updateOne(data.id, data);
280
+ resolve(data);
281
+ }, 1000);
282
+ });
283
+ },
284
+ },
285
+ },
286
+ queries: {
287
+ byKey: {
288
+ execute: async (id) => {
289
+ return new Promise((resolve) => {
290
+ setTimeout(async () => {
291
+ const entity = await dataService.getOne(id);
292
+ resolve(entity);
293
+ }, 500);
294
+ });
295
+ },
296
+ type: AXPEntityQueryType.Single,
297
+ },
298
+ list: {
299
+ execute: async (e) => {
300
+ return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
301
+ },
302
+ type: AXPEntityQueryType.List,
303
+ },
304
+ },
305
+ interfaces: {
306
+ master: {
307
+ create: {
308
+ sections: [
309
+ {
310
+ id: 'country',
311
+ },
312
+ ],
313
+ properties: [
314
+ {
315
+ name: 'title',
316
+ layout: {
317
+ positions: {
318
+ lg: {
319
+ colSpan: 6,
320
+ },
321
+ },
322
+ },
323
+ },
324
+ {
325
+ name: 'nativeName',
326
+ layout: {
327
+ positions: {
328
+ lg: {
329
+ colSpan: 6,
330
+ },
331
+ },
332
+ },
333
+ },
334
+ {
335
+ name: 'iso3',
336
+ layout: {
337
+ positions: {
338
+ lg: {
339
+ colSpan: 4,
340
+ },
341
+ },
342
+ },
343
+ },
344
+ {
345
+ name: 'iso2',
346
+ layout: {
347
+ positions: {
348
+ lg: {
349
+ colSpan: 4,
350
+ },
351
+ },
352
+ },
353
+ },
354
+ {
355
+ name: 'numericCode',
356
+ layout: {
357
+ positions: {
358
+ lg: {
359
+ colSpan: 4,
360
+ },
361
+ },
362
+ },
363
+ },
364
+ {
365
+ name: 'region',
366
+ layout: {
367
+ positions: {
368
+ lg: {
369
+ colSpan: 6,
370
+ },
371
+ },
372
+ },
373
+ },
374
+ {
375
+ name: 'subregion',
376
+ layout: {
377
+ positions: {
378
+ lg: {
379
+ colSpan: 6,
380
+ },
381
+ },
382
+ },
383
+ },
384
+ {
385
+ name: 'Nationality',
386
+ layout: {
387
+ positions: {
388
+ lg: {
389
+ colSpan: 6,
390
+ },
391
+ },
392
+ },
393
+ },
394
+ {
395
+ name: 'geo.latitude',
396
+ layout: {
397
+ positions: {
398
+ lg: {
399
+ colSpan: 3,
400
+ },
401
+ },
402
+ },
403
+ },
404
+ {
405
+ name: 'geo.longitude',
406
+ layout: {
407
+ positions: {
408
+ lg: {
409
+ colSpan: 3,
410
+ },
411
+ },
412
+ },
413
+ },
414
+ {
415
+ name: 'capital',
416
+ layout: {
417
+ positions: {
418
+ lg: {
419
+ colSpan: 6,
420
+ },
421
+ },
422
+ },
423
+ },
424
+ {
425
+ name: 'tld',
426
+ layout: {
427
+ positions: {
428
+ lg: {
429
+ colSpan: 6,
430
+ },
431
+ },
432
+ },
433
+ },
434
+ ],
435
+ },
436
+ update: {
437
+ sections: [
438
+ {
439
+ id: 'country',
440
+ },
441
+ ],
442
+ properties: [
443
+ {
444
+ name: 'title',
445
+ layout: {
446
+ positions: {
447
+ lg: {
448
+ colSpan: 6,
449
+ },
450
+ },
451
+ },
452
+ },
453
+ {
454
+ name: 'nativeName',
455
+ layout: {
456
+ positions: {
457
+ lg: {
458
+ colSpan: 6,
459
+ },
460
+ },
461
+ },
462
+ },
463
+ {
464
+ name: 'iso3',
465
+ layout: {
466
+ positions: {
467
+ lg: {
468
+ colSpan: 4,
469
+ },
470
+ },
471
+ },
472
+ },
473
+ {
474
+ name: 'iso2',
475
+ layout: {
476
+ positions: {
477
+ lg: {
478
+ colSpan: 4,
479
+ },
480
+ },
481
+ },
482
+ },
483
+ {
484
+ name: 'numericCode',
485
+ layout: {
486
+ positions: {
487
+ lg: {
488
+ colSpan: 4,
489
+ },
490
+ },
491
+ },
492
+ },
493
+ {
494
+ name: 'region',
495
+ layout: {
496
+ positions: {
497
+ lg: {
498
+ colSpan: 6,
499
+ },
500
+ },
501
+ },
502
+ },
503
+ {
504
+ name: 'subregion',
505
+ layout: {
506
+ positions: {
507
+ lg: {
508
+ colSpan: 6,
509
+ },
510
+ },
511
+ },
512
+ },
513
+ {
514
+ name: 'nationality',
515
+ layout: {
516
+ positions: {
517
+ lg: {
518
+ colSpan: 6,
519
+ },
520
+ },
521
+ },
522
+ },
523
+ {
524
+ name: 'geo.latitude',
525
+ layout: {
526
+ positions: {
527
+ lg: {
528
+ colSpan: 3,
529
+ },
530
+ },
531
+ },
532
+ },
533
+ {
534
+ name: 'geo.longitude',
535
+ layout: {
536
+ positions: {
537
+ lg: {
538
+ colSpan: 3,
539
+ },
540
+ },
541
+ },
542
+ },
543
+ {
544
+ name: 'capital',
545
+ layout: {
546
+ positions: {
547
+ lg: {
548
+ colSpan: 6,
549
+ },
550
+ },
551
+ },
552
+ },
553
+ {
554
+ name: 'tld',
555
+ layout: {
556
+ positions: {
557
+ lg: {
558
+ colSpan: 6,
559
+ },
560
+ },
561
+ },
562
+ },
563
+ ],
564
+ },
565
+ single: {
566
+ title: '{{title}}',
567
+ sections: [
568
+ {
569
+ id: 'country',
570
+ },
571
+ {
572
+ id: 'extra',
573
+ },
574
+ {
575
+ id: 'geo',
576
+ },
577
+ ],
578
+ properties: [
579
+ {
580
+ name: 'title',
581
+ layout: {
582
+ positions: {
583
+ lg: {
584
+ colSpan: 5,
585
+ },
586
+ },
587
+ },
588
+ },
589
+ {
590
+ name: 'iso2',
591
+ layout: {
592
+ positions: {
593
+ lg: {
594
+ colSpan: 2,
595
+ },
596
+ },
597
+ },
598
+ },
599
+ {
600
+ name: 'iso3',
601
+ layout: {
602
+ positions: {
603
+ lg: {
604
+ colSpan: 2,
605
+ },
606
+ },
607
+ },
608
+ },
609
+ {
610
+ name: 'numericCode',
611
+ layout: {
612
+ positions: {
613
+ lg: {
614
+ colSpan: 3,
615
+ },
616
+ },
617
+ },
618
+ },
619
+ {
620
+ name: 'nativeName',
621
+ layout: {
622
+ positions: {
623
+ lg: {
624
+ colSpan: 6,
625
+ },
626
+ },
627
+ },
628
+ },
629
+ {
630
+ name: 'nationality',
631
+ layout: {
632
+ positions: {
633
+ lg: {
634
+ colSpan: 6,
635
+ },
636
+ },
637
+ },
638
+ },
639
+ {
640
+ name: 'region',
641
+ layout: {
642
+ positions: {
643
+ lg: {
644
+ colSpan: 6,
645
+ },
646
+ },
647
+ },
648
+ },
649
+ {
650
+ name: 'subRegion',
651
+ layout: {
652
+ positions: {
653
+ lg: {
654
+ colSpan: 6,
655
+ },
656
+ },
657
+ },
658
+ },
659
+ {
660
+ name: 'geo.latitude',
661
+ layout: {
662
+ positions: {
663
+ lg: {
664
+ colSpan: 6,
665
+ },
666
+ },
667
+ },
668
+ },
669
+ ],
670
+ actions: [],
671
+ },
672
+ list: {
673
+ actions: [
674
+ {
675
+ title: 'Create New',
676
+ command: 'create-entity',
677
+ priority: 'primary',
678
+ type: 'create',
679
+ scope: AXPEntityCommandScope.TypeLevel,
680
+ },
681
+ {
682
+ title: 'Delete Items',
683
+ command: 'delete-entity',
684
+ priority: 'primary',
685
+ type: 'delete',
686
+ scope: AXPEntityCommandScope.Selected,
687
+ },
688
+ {
689
+ title: 'Details',
690
+ command: 'open-entity',
691
+ priority: 'secondary',
692
+ type: 'view',
693
+ scope: AXPEntityCommandScope.Individual,
694
+ },
695
+ {
696
+ title: 'Delete',
697
+ command: 'delete-entity',
698
+ priority: 'secondary',
699
+ type: 'delete',
700
+ scope: AXPEntityCommandScope.Individual,
701
+ },
702
+ ],
703
+ views: [
704
+ {
705
+ name: 'all',
706
+ title: 'All Items',
707
+ fixed: true,
708
+ columns: [],
709
+ conditions: [],
710
+ sorts: [],
711
+ },
712
+ ],
713
+ },
714
+ },
715
+ },
716
+ };
717
+ return entityDef;
718
+ }
719
+
720
+ var country_entity = /*#__PURE__*/Object.freeze({
721
+ __proto__: null,
722
+ countryEntityFactory: countryEntityFactory
723
+ });
724
+
725
+ class AXMCurrencyService extends AXMEntityCrudServiceImpl {
726
+ }
727
+ class AXMCurrencyServiceImpl extends AXMCurrencyService {
728
+ constructor() {
729
+ super(CURRENCY_SOURCE_NAME);
730
+ }
731
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCurrencyServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
732
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCurrencyServiceImpl }); }
733
+ }
734
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCurrencyServiceImpl, decorators: [{
735
+ type: Injectable
736
+ }], ctorParameters: () => [] });
737
+
738
+ async function currencyEntityFactory(injector) {
739
+ const dataService = injector.get(AXMCurrencyService);
740
+ const entityDef = {
741
+ module: 'localization-management',
742
+ name: 'currency',
743
+ source: 'localizationManagement.currency',
744
+ title: 'Currency',
745
+ formats: {
746
+ individual: 'Currency',
747
+ plural: 'Currencies',
748
+ },
749
+ relatedEntities: [],
750
+ groups: [
751
+ {
752
+ id: 'currency',
753
+ title: 'Currency',
754
+ },
755
+ ],
756
+ properties: [
757
+ {
758
+ name: 'title',
759
+ title: 'Title',
760
+ groupId: 'currency',
761
+ schema: {
762
+ dataType: 'string',
763
+ interface: {
764
+ type: AXPWidgetsCatalog.text,
765
+ },
766
+ },
767
+ validations: [
768
+ {
769
+ rule: 'required',
770
+ },
771
+ ],
772
+ },
773
+ {
774
+ name: 'code',
775
+ title: 'Code',
776
+ groupId: 'currency',
777
+ schema: {
778
+ dataType: 'string',
779
+ interface: {
780
+ type: AXPWidgetsCatalog.text,
781
+ },
782
+ },
783
+ validations: [
784
+ {
785
+ rule: 'required',
786
+ },
787
+ ],
788
+ },
789
+ {
790
+ name: 'symbol',
791
+ title: 'Symbol',
792
+ groupId: 'currency',
793
+ schema: {
794
+ dataType: 'string',
795
+ interface: {
796
+ type: AXPWidgetsCatalog.text,
797
+ },
798
+ },
799
+ validations: [
800
+ {
801
+ rule: 'required',
802
+ },
803
+ ],
804
+ },
805
+ ],
806
+ columns: [{ name: 'title' }, { name: 'code' }, { name: 'symbol' }],
807
+ commands: {
808
+ create: {
809
+ execute: async (data) => {
810
+ return Promise.resolve({ id: await dataService.insertOne(data) });
811
+ },
812
+ },
813
+ delete: {
814
+ execute: async (id) => {
815
+ await dataService.deleteOne(id);
816
+ return Promise.resolve();
817
+ },
818
+ },
819
+ update: {
820
+ execute: async (data) => {
821
+ return new Promise((resolve) => {
822
+ setTimeout(async () => {
823
+ await dataService.updateOne(data.id, data);
824
+ resolve(data);
825
+ }, 1000);
826
+ });
827
+ },
828
+ },
829
+ },
830
+ queries: {
831
+ byKey: {
832
+ execute: async (id) => {
833
+ return new Promise((resolve) => {
834
+ setTimeout(async () => {
835
+ const entity = await dataService.getOne(id);
836
+ resolve(entity);
837
+ }, 500);
838
+ });
839
+ },
840
+ type: AXPEntityQueryType.Single,
841
+ },
842
+ list: {
843
+ execute: async (e) => {
844
+ return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
845
+ },
846
+ type: AXPEntityQueryType.List,
847
+ },
848
+ },
849
+ interfaces: {
850
+ master: {
851
+ create: {
852
+ sections: [
853
+ {
854
+ id: 'currency',
855
+ },
856
+ ],
857
+ properties: [
858
+ {
859
+ name: 'title',
860
+ layout: {
861
+ positions: {
862
+ lg: {
863
+ colSpan: 12,
864
+ },
865
+ },
866
+ },
867
+ },
868
+ {
869
+ name: 'code',
870
+ layout: {
871
+ positions: {
872
+ lg: {
873
+ colSpan: 6,
874
+ },
875
+ },
876
+ },
877
+ },
878
+ {
879
+ name: 'symbol',
880
+ layout: {
881
+ positions: {
882
+ lg: {
883
+ colSpan: 6,
884
+ },
885
+ },
886
+ },
887
+ },
888
+ ],
889
+ },
890
+ update: {
891
+ sections: [
892
+ {
893
+ id: 'currency',
894
+ },
895
+ ],
896
+ properties: [
897
+ {
898
+ name: 'title',
899
+ layout: {
900
+ positions: {
901
+ lg: {
902
+ colSpan: 12,
903
+ },
904
+ },
905
+ },
906
+ },
907
+ {
908
+ name: 'code',
909
+ layout: {
910
+ positions: {
911
+ lg: {
912
+ colSpan: 6,
913
+ },
914
+ },
915
+ },
916
+ },
917
+ {
918
+ name: 'symbol',
919
+ layout: {
920
+ positions: {
921
+ lg: {
922
+ colSpan: 6,
923
+ },
924
+ },
925
+ },
926
+ },
927
+ ],
928
+ },
929
+ single: {
930
+ title: '{{title}}',
931
+ sections: [
932
+ {
933
+ id: 'currency',
934
+ },
935
+ ],
936
+ properties: [
937
+ {
938
+ name: 'title',
939
+ layout: {
940
+ positions: {
941
+ lg: {
942
+ colSpan: 6,
943
+ },
944
+ },
945
+ },
946
+ },
947
+ {
948
+ name: 'code',
949
+ layout: {
950
+ positions: {
951
+ lg: {
952
+ colSpan: 6,
953
+ },
954
+ },
955
+ },
956
+ },
957
+ {
958
+ name: 'symbol',
959
+ layout: {
960
+ positions: {
961
+ lg: {
962
+ colSpan: 6,
963
+ },
964
+ },
965
+ },
966
+ },
967
+ ],
968
+ actions: [],
969
+ },
970
+ list: {
971
+ actions: [
972
+ {
973
+ title: 'Create New',
974
+ command: 'create-entity',
975
+ priority: 'primary',
976
+ type: 'create',
977
+ scope: AXPEntityCommandScope.TypeLevel,
978
+ },
979
+ {
980
+ title: 'Delete Items',
981
+ command: 'delete-entity',
982
+ priority: 'primary',
983
+ type: 'delete',
984
+ scope: AXPEntityCommandScope.Selected,
985
+ },
986
+ {
987
+ title: 'Details',
988
+ command: 'open-entity',
989
+ priority: 'secondary',
990
+ type: 'view',
991
+ scope: AXPEntityCommandScope.Individual,
992
+ },
993
+ {
994
+ title: 'Delete',
995
+ command: 'delete-entity',
996
+ priority: 'secondary',
997
+ type: 'delete',
998
+ scope: AXPEntityCommandScope.Individual,
999
+ },
1000
+ ],
1001
+ views: [
1002
+ {
1003
+ name: 'all',
1004
+ title: 'All Items',
1005
+ fixed: true,
1006
+ columns: [],
1007
+ conditions: [],
1008
+ sorts: [],
1009
+ },
1010
+ ],
1011
+ },
1012
+ },
1013
+ },
1014
+ };
1015
+ return entityDef;
18
1016
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl, decorators: [{
20
- type: Injectable
21
- }], ctorParameters: () => [] });
22
1017
 
23
- class AXMGlobalVariableModuleEntityLoader {
1018
+ var currency_entity = /*#__PURE__*/Object.freeze({
1019
+ __proto__: null,
1020
+ currencyEntityFactory: currencyEntityFactory
1021
+ });
1022
+
1023
+ class AXMCommonModuleEntityLoader {
24
1024
  constructor() {
25
1025
  this.injector = inject(Injector);
26
1026
  }
27
1027
  async get(moduleName, entityName) {
28
1028
  return new Promise(async (resolve) => {
29
1029
  switch (entityName) {
30
- case 'globalVariable': {
31
- const entity = (await Promise.resolve().then(function () { return globalVariable_entity; })).globalVariableEntityFactory;
1030
+ case 'country': {
1031
+ const entity = (await Promise.resolve().then(function () { return country_entity; })).countryEntityFactory;
1032
+ resolve(entity(this.injector));
1033
+ break;
1034
+ }
1035
+ case 'province': {
1036
+ const entity = (await Promise.resolve().then(function () { return province_entity; })).provinceEntityFactory;
1037
+ resolve(entity(this.injector));
1038
+ break;
1039
+ }
1040
+ case 'currency': {
1041
+ const entity = (await Promise.resolve().then(function () { return currency_entity; })).currencyEntityFactory;
32
1042
  resolve(entity(this.injector));
33
1043
  break;
34
1044
  }
@@ -37,62 +1047,75 @@ class AXMGlobalVariableModuleEntityLoader {
37
1047
  }
38
1048
  });
39
1049
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
41
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader }); }
1050
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCommonModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1051
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCommonModuleEntityLoader }); }
42
1052
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader, decorators: [{
1053
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCommonModuleEntityLoader, decorators: [{
44
1054
  type: Injectable
45
1055
  }] });
46
1056
 
47
- class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
48
- }
49
- class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
1057
+ class AXPPlatformCountryWidgetDataSourceProvider {
50
1058
  constructor() {
51
- super('globalVariable');
1059
+ this.service = inject(AXMCountryService);
1060
+ }
1061
+ async items() {
1062
+ return [
1063
+ {
1064
+ name: 'platform.countrues',
1065
+ title: 'Countries',
1066
+ columns: [],
1067
+ source: () => new AXDataSource({
1068
+ pageSize: 10,
1069
+ load: (e) => {
1070
+ return this.service.query({ skip: e.skip, take: e.take });
1071
+ },
1072
+ byKey: (id) => {
1073
+ return this.service.getOne(id);
1074
+ },
1075
+ }),
1076
+ },
1077
+ ];
52
1078
  }
53
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
54
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
55
1079
  }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
57
- type: Injectable
58
- }], ctorParameters: () => [] });
59
1080
 
60
- class AXMLanguageService extends AXMEntityCrudServiceImpl {
1081
+ class AXMProvinceService extends AXMEntityCrudServiceImpl {
61
1082
  }
62
- class AXMLanguageServiceImpl extends AXMEntityCrudServiceImpl {
1083
+ class AXMProvinceServiceImpl extends AXMProvinceService {
63
1084
  constructor() {
64
- super('language');
1085
+ super(PROVINCE_SOURCE_NAME);
65
1086
  }
66
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
67
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl }); }
1087
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMProvinceServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1088
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMProvinceServiceImpl }); }
68
1089
  }
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl, decorators: [{
1090
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMProvinceServiceImpl, decorators: [{
70
1091
  type: Injectable
71
1092
  }], ctorParameters: () => [] });
72
1093
 
73
- async function languageEntityFactory(injector) {
74
- const dataService = injector.get(AXMLanguageService);
1094
+ async function provinceEntityFactory(injector) {
1095
+ const dataService = injector.get(AXMProvinceService);
1096
+ const moduleName = 'common';
1097
+ const scope = `#${moduleName}`;
75
1098
  const entityDef = {
76
- module: 'common',
77
- name: 'language',
78
- source: 'common.language',
79
- title: 'Language',
1099
+ module: moduleName,
1100
+ name: 'province',
1101
+ source: 'common.province',
1102
+ title: `${scope}.province`,
80
1103
  formats: {
81
- individual: 'Language',
82
- plural: 'Languages',
1104
+ individual: `${scope}.province`,
1105
+ plural: `${scope}.provinces`,
83
1106
  },
84
1107
  relatedEntities: [],
85
1108
  groups: [
86
1109
  {
87
- id: 'language',
88
- title: 'Language',
1110
+ id: 'province',
1111
+ title: `${scope}.province`,
89
1112
  },
90
1113
  ],
91
1114
  properties: [
92
1115
  {
93
1116
  name: 'title',
94
- title: 'Title',
95
- groupId: 'language',
1117
+ title: '#common.title',
1118
+ groupId: 'province',
96
1119
  schema: {
97
1120
  dataType: 'string',
98
1121
  interface: {
@@ -106,29 +1129,69 @@ async function languageEntityFactory(injector) {
106
1129
  ],
107
1130
  },
108
1131
  {
109
- name: 'code',
110
- title: 'Code',
111
- groupId: 'language',
1132
+ name: 'name',
1133
+ title: '#common.name',
1134
+ groupId: 'province',
1135
+ schema: {
1136
+ dataType: 'string',
1137
+ interface: {
1138
+ type: AXPWidgetsCatalog.text,
1139
+ },
1140
+ },
1141
+ validations: [
1142
+ {
1143
+ rule: 'required',
1144
+ },
1145
+ ],
1146
+ },
1147
+ {
1148
+ name: 'country.id',
1149
+ title: `${scope}.country`,
1150
+ groupId: 'province',
1151
+ schema: {
1152
+ dataType: 'string',
1153
+ interface: {
1154
+ type: AXPWidgetsCatalog.lookup,
1155
+ options: {
1156
+ entity: 'common.country',
1157
+ expose: 'country',
1158
+ },
1159
+ },
1160
+ },
1161
+ validations: [
1162
+ {
1163
+ rule: 'required',
1164
+ },
1165
+ ],
1166
+ },
1167
+ {
1168
+ name: 'country.title',
1169
+ title: `${scope}.country`,
1170
+ groupId: 'province',
112
1171
  schema: {
113
1172
  dataType: 'string',
1173
+ readonly: true,
114
1174
  interface: {
115
1175
  type: AXPWidgetsCatalog.text,
116
1176
  },
117
1177
  },
1178
+ options: {
1179
+ sort: {
1180
+ enabled: true,
1181
+ },
1182
+ },
118
1183
  },
119
1184
  ],
120
- columns: [{ name: 'title' }, { name: 'code' }],
1185
+ columns: [{ name: 'name' }, { name: 'title' }, { name: 'country.title' }],
121
1186
  commands: {
122
1187
  create: {
123
1188
  execute: async (data) => {
124
- const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
125
- dataService.insertOne(entity);
126
- return Promise.resolve(entity);
1189
+ return Promise.resolve({ id: await dataService.insertOne(data) });
127
1190
  },
128
1191
  },
129
1192
  delete: {
130
1193
  execute: async (id) => {
131
- await await dataService.deleteOne(id);
1194
+ await dataService.deleteOne(id);
132
1195
  return Promise.resolve();
133
1196
  },
134
1197
  },
@@ -157,7 +1220,8 @@ async function languageEntityFactory(injector) {
157
1220
  },
158
1221
  list: {
159
1222
  execute: async (e) => {
160
- return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1223
+ let x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1224
+ return Promise.resolve(x);
161
1225
  },
162
1226
  type: AXPEntityQueryType.List,
163
1227
  },
@@ -167,12 +1231,12 @@ async function languageEntityFactory(injector) {
167
1231
  create: {
168
1232
  sections: [
169
1233
  {
170
- id: 'language',
1234
+ id: 'province',
171
1235
  },
172
1236
  ],
173
1237
  properties: [
174
1238
  {
175
- name: 'title',
1239
+ name: 'name',
176
1240
  layout: {
177
1241
  positions: {
178
1242
  lg: {
@@ -182,7 +1246,7 @@ async function languageEntityFactory(injector) {
182
1246
  },
183
1247
  },
184
1248
  {
185
- name: 'code',
1249
+ name: 'title',
186
1250
  layout: {
187
1251
  positions: {
188
1252
  lg: {
@@ -191,17 +1255,27 @@ async function languageEntityFactory(injector) {
191
1255
  },
192
1256
  },
193
1257
  },
1258
+ {
1259
+ name: 'country.id',
1260
+ layout: {
1261
+ positions: {
1262
+ lg: {
1263
+ colSpan: 12,
1264
+ },
1265
+ },
1266
+ },
1267
+ },
194
1268
  ],
195
1269
  },
196
1270
  update: {
197
1271
  sections: [
198
1272
  {
199
- id: 'language',
1273
+ id: 'province',
200
1274
  },
201
1275
  ],
202
1276
  properties: [
203
1277
  {
204
- name: 'title',
1278
+ name: 'name',
205
1279
  layout: {
206
1280
  positions: {
207
1281
  lg: {
@@ -211,7 +1285,7 @@ async function languageEntityFactory(injector) {
211
1285
  },
212
1286
  },
213
1287
  {
214
- name: 'code',
1288
+ name: 'title',
215
1289
  layout: {
216
1290
  positions: {
217
1291
  lg: {
@@ -220,18 +1294,28 @@ async function languageEntityFactory(injector) {
220
1294
  },
221
1295
  },
222
1296
  },
1297
+ {
1298
+ name: 'country.id',
1299
+ layout: {
1300
+ positions: {
1301
+ lg: {
1302
+ colSpan: 12,
1303
+ },
1304
+ },
1305
+ },
1306
+ },
223
1307
  ],
224
1308
  },
225
1309
  single: {
226
1310
  title: '{{title}}',
227
1311
  sections: [
228
1312
  {
229
- id: 'language',
1313
+ id: 'province',
230
1314
  },
231
1315
  ],
232
1316
  properties: [
233
1317
  {
234
- name: 'title',
1318
+ name: 'name',
235
1319
  layout: {
236
1320
  positions: {
237
1321
  lg: {
@@ -241,7 +1325,7 @@ async function languageEntityFactory(injector) {
241
1325
  },
242
1326
  },
243
1327
  {
244
- name: 'code',
1328
+ name: 'title',
245
1329
  layout: {
246
1330
  positions: {
247
1331
  lg: {
@@ -250,203 +1334,142 @@ async function languageEntityFactory(injector) {
250
1334
  },
251
1335
  },
252
1336
  },
1337
+ {
1338
+ name: 'country.name',
1339
+ layout: {
1340
+ positions: {
1341
+ lg: {
1342
+ colSpan: 12,
1343
+ },
1344
+ },
1345
+ },
1346
+ },
253
1347
  ],
254
1348
  actions: [],
255
1349
  },
256
1350
  list: {
257
1351
  actions: [
258
1352
  {
259
- title: 'Create New',
1353
+ title: '#common.create',
260
1354
  command: 'create-entity',
261
1355
  priority: 'primary',
262
1356
  type: 'create',
263
1357
  scope: AXPEntityCommandScope.TypeLevel,
264
1358
  },
265
1359
  {
266
- title: 'Delete Items',
1360
+ title: '#common.deleteItems',
267
1361
  command: 'delete-entity',
268
1362
  priority: 'primary',
269
1363
  type: 'delete',
270
1364
  scope: AXPEntityCommandScope.Selected,
271
1365
  },
272
1366
  {
273
- title: 'Details',
274
- command: 'open-entity',
275
- priority: 'secondary',
276
- type: 'view',
277
- scope: AXPEntityCommandScope.Individual,
278
- },
279
- {
280
- title: 'Delete',
281
- command: 'delete-entity',
282
- priority: 'secondary',
283
- type: 'delete',
284
- scope: AXPEntityCommandScope.Individual,
285
- },
286
- ],
287
- views: [
288
- {
289
- name: 'all',
290
- title: 'All Items',
291
- fixed: true,
292
- columns: [],
293
- conditions: [],
294
- sorts: [],
295
- },
296
- ],
297
- },
298
- },
299
- },
300
- };
301
- return entityDef;
302
- }
303
-
304
- var language_entity = /*#__PURE__*/Object.freeze({
305
- __proto__: null,
306
- languageEntityFactory: languageEntityFactory
307
- });
308
-
309
- class AXMLanguageModuleEntityLoader {
310
- constructor() {
311
- this.injector = inject(Injector);
312
- }
313
- async get(moduleName, entityName) {
314
- return new Promise(async (resolve) => {
315
- switch (entityName) {
316
- case 'language': {
317
- const entity = (await Promise.resolve().then(function () { return language_entity; })).languageEntityFactory;
318
- resolve(entity(this.injector));
319
- break;
320
- }
321
- default:
322
- resolve(null);
323
- }
324
- });
325
- }
326
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
327
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader }); }
328
- }
329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader, decorators: [{
330
- type: Injectable
331
- }] });
332
-
333
- class AXMPlatformManagmentModuleMenuProvider {
334
- async items() {
335
- return [
336
- {
337
- items: [
338
- {
339
- text: 'Platform Management',
340
- icon: 'fa-solid fa-square-terminal',
341
- type: 'menu',
342
- priority: 9100,
343
- data: {
344
- // requiredPermission: 'demo.admin.settings',
1367
+ title: '#common.detail',
1368
+ command: 'open-entity',
1369
+ priority: 'secondary',
1370
+ type: 'view',
1371
+ scope: AXPEntityCommandScope.Individual,
345
1372
  },
346
- children: [
347
- {
348
- priority: 9001,
349
- text: 'Global Variables',
350
- path: '/demo/m/common/e/globalVariable/list',
351
- icon: 'fa-solid fa-object-exclude',
352
- data: {
353
- //requiredPermission: '',
354
- },
355
- },
356
- {
357
- priority: 9002,
358
- text: 'Language Management',
359
- icon: 'fa-solid fa-square-terminal',
360
- children: [
361
- {
362
- text: 'Language Definition',
363
- path: '/demo/m/common/e/language/list',
364
- icon: 'fa-solid fa-globe',
365
- data: {
366
- //requiredPermission: '',
367
- },
368
- },
369
- ],
370
- },
371
- ]
372
- },
373
- ]
374
- }
375
- ];
376
- }
1373
+ {
1374
+ title: '#common.delete',
1375
+ command: 'delete-entity',
1376
+ priority: 'secondary',
1377
+ type: 'delete',
1378
+ scope: AXPEntityCommandScope.Individual,
1379
+ },
1380
+ ],
1381
+ views: [
1382
+ {
1383
+ name: 'all',
1384
+ title: '#common.allItem',
1385
+ fixed: true,
1386
+ columns: [],
1387
+ conditions: [],
1388
+ sorts: [],
1389
+ },
1390
+ ],
1391
+ },
1392
+ },
1393
+ },
1394
+ };
1395
+ return entityDef;
377
1396
  }
378
1397
 
379
- class AXMPlatformManagementModule {
380
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
381
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule }); }
382
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, providers: [
383
- {
384
- provide: AXMGlobalVariablesService,
385
- useClass: AXMGlobalVariablesServiceImpl,
386
- },
387
- {
388
- provide: AXMLanguageService,
389
- useClass: AXMLanguageServiceImpl,
390
- },
1398
+ var province_entity = /*#__PURE__*/Object.freeze({
1399
+ __proto__: null,
1400
+ provinceEntityFactory: provinceEntityFactory
1401
+ });
1402
+
1403
+ class AXMPlatformManagementCommonModule {
1404
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1405
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementCommonModule }); }
1406
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementCommonModule, providers: [
1407
+ // Country
391
1408
  {
392
- provide: AXPCommentService,
393
- useClass: AXPCommentServiceImpl,
1409
+ provide: AXMCountryService,
1410
+ useClass: AXMCountryServiceImpl,
394
1411
  },
395
1412
  {
396
- provide: AXP_ENTITY_DEFINITION_LOADER,
397
- useClass: AXMLanguageModuleEntityLoader,
1413
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
1414
+ useClass: AXPPlatformCountryWidgetDataSourceProvider,
398
1415
  multi: true,
399
1416
  },
1417
+ // Province
400
1418
  {
401
- provide: AXP_ENTITY_DEFINITION_LOADER,
402
- useClass: AXMGlobalVariableModuleEntityLoader,
403
- multi: true,
1419
+ provide: AXMProvinceService,
1420
+ useClass: AXMProvinceServiceImpl,
404
1421
  },
405
1422
  {
406
- provide: AXP_MENU_PROVIDER,
407
- useClass: AXMPlatformManagmentModuleMenuProvider,
1423
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1424
+ useClass: AXMCommonModuleEntityLoader,
408
1425
  multi: true,
409
1426
  },
410
1427
  ] }); }
411
1428
  }
412
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
1429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementCommonModule, decorators: [{
413
1430
  type: NgModule,
414
1431
  args: [{
415
1432
  imports: [],
416
1433
  exports: [],
417
1434
  declarations: [],
418
1435
  providers: [
1436
+ // Country
419
1437
  {
420
- provide: AXMGlobalVariablesService,
421
- useClass: AXMGlobalVariablesServiceImpl,
422
- },
423
- {
424
- provide: AXMLanguageService,
425
- useClass: AXMLanguageServiceImpl,
1438
+ provide: AXMCountryService,
1439
+ useClass: AXMCountryServiceImpl,
426
1440
  },
427
1441
  {
428
- provide: AXPCommentService,
429
- useClass: AXPCommentServiceImpl,
430
- },
431
- {
432
- provide: AXP_ENTITY_DEFINITION_LOADER,
433
- useClass: AXMLanguageModuleEntityLoader,
1442
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
1443
+ useClass: AXPPlatformCountryWidgetDataSourceProvider,
434
1444
  multi: true,
435
1445
  },
1446
+ // Province
436
1447
  {
437
- provide: AXP_ENTITY_DEFINITION_LOADER,
438
- useClass: AXMGlobalVariableModuleEntityLoader,
439
- multi: true,
1448
+ provide: AXMProvinceService,
1449
+ useClass: AXMProvinceServiceImpl,
440
1450
  },
441
1451
  {
442
- provide: AXP_MENU_PROVIDER,
443
- useClass: AXMPlatformManagmentModuleMenuProvider,
1452
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1453
+ useClass: AXMCommonModuleEntityLoader,
444
1454
  multi: true,
445
1455
  },
446
1456
  ],
447
1457
  }]
448
1458
  }] });
449
1459
 
1460
+ class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
1461
+ }
1462
+ class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
1463
+ constructor() {
1464
+ super('globalVariable');
1465
+ }
1466
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1467
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
1468
+ }
1469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
1470
+ type: Injectable
1471
+ }], ctorParameters: () => [] });
1472
+
450
1473
  async function globalVariableEntityFactory(injector) {
451
1474
  const dataService = injector.get(AXMGlobalVariablesService);
452
1475
  const entityDef = {
@@ -462,7 +1485,7 @@ async function globalVariableEntityFactory(injector) {
462
1485
  groups: [
463
1486
  {
464
1487
  id: 'section',
465
- title: 'Section',
1488
+ title: 'Global Variable',
466
1489
  },
467
1490
  ],
468
1491
  properties: [
@@ -508,6 +1531,11 @@ async function globalVariableEntityFactory(injector) {
508
1531
  type: AXPWidgetsCatalog.text,
509
1532
  },
510
1533
  },
1534
+ validations: [
1535
+ {
1536
+ rule: 'required',
1537
+ },
1538
+ ],
511
1539
  },
512
1540
  {
513
1541
  name: 'dataType',
@@ -533,6 +1561,11 @@ async function globalVariableEntityFactory(injector) {
533
1561
  },
534
1562
  },
535
1563
  },
1564
+ validations: [
1565
+ {
1566
+ rule: 'required',
1567
+ },
1568
+ ],
536
1569
  },
537
1570
  ],
538
1571
  columns: [{ name: 'title' }, { name: 'dataValue' }, { name: 'dataType' }],
@@ -649,7 +1682,27 @@ async function globalVariableEntityFactory(injector) {
649
1682
  },
650
1683
  },
651
1684
  {
652
- name: 'code',
1685
+ name: 'name',
1686
+ layout: {
1687
+ positions: {
1688
+ lg: {
1689
+ colSpan: 6,
1690
+ },
1691
+ },
1692
+ },
1693
+ },
1694
+ {
1695
+ name: 'dataValue',
1696
+ layout: {
1697
+ positions: {
1698
+ lg: {
1699
+ colSpan: 6,
1700
+ },
1701
+ },
1702
+ },
1703
+ },
1704
+ {
1705
+ name: 'dataType',
653
1706
  layout: {
654
1707
  positions: {
655
1708
  lg: {
@@ -679,7 +1732,27 @@ async function globalVariableEntityFactory(injector) {
679
1732
  },
680
1733
  },
681
1734
  {
682
- name: 'code',
1735
+ name: 'name',
1736
+ layout: {
1737
+ positions: {
1738
+ lg: {
1739
+ colSpan: 6,
1740
+ },
1741
+ },
1742
+ },
1743
+ },
1744
+ {
1745
+ name: 'dataValue',
1746
+ layout: {
1747
+ positions: {
1748
+ lg: {
1749
+ colSpan: 6,
1750
+ },
1751
+ },
1752
+ },
1753
+ },
1754
+ {
1755
+ name: 'dataType',
683
1756
  layout: {
684
1757
  positions: {
685
1758
  lg: {
@@ -744,9 +1817,152 @@ var globalVariable_entity = /*#__PURE__*/Object.freeze({
744
1817
  globalVariableEntityFactory: globalVariableEntityFactory
745
1818
  });
746
1819
 
1820
+ class AXMGlobalVariableModuleEntityLoader {
1821
+ constructor() {
1822
+ this.injector = inject(Injector);
1823
+ }
1824
+ async get(moduleName, entityName) {
1825
+ return new Promise(async (resolve) => {
1826
+ switch (entityName) {
1827
+ case 'globalVariable': {
1828
+ const entity = (await Promise.resolve().then(function () { return globalVariable_entity; })).globalVariableEntityFactory;
1829
+ resolve(entity(this.injector));
1830
+ break;
1831
+ }
1832
+ default:
1833
+ resolve(null);
1834
+ }
1835
+ });
1836
+ }
1837
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1838
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader }); }
1839
+ }
1840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader, decorators: [{
1841
+ type: Injectable
1842
+ }] });
1843
+
1844
+ class AXMPlatformManagmentModuleMenuProvider {
1845
+ constructor() {
1846
+ this.translateService = inject(AXTranslationService);
1847
+ }
1848
+ async items() {
1849
+ const scope = 'platform'; // The scope used for translation lookup
1850
+ return [
1851
+ {
1852
+ items: [
1853
+ {
1854
+ text: `#${scope}.platformManagement`,
1855
+ icon: 'fa-solid fa-square-terminal',
1856
+ type: 'menu',
1857
+ priority: 9100,
1858
+ data: {
1859
+ // requiredPermission: 'demo.admin.settings',
1860
+ },
1861
+ children: [
1862
+ {
1863
+ priority: 9001,
1864
+ text: `#${scope}.globalVariables`,
1865
+ path: '/demo/m/common/e/globalVariable/list',
1866
+ icon: 'fa-solid fa-object-exclude',
1867
+ data: {
1868
+ // requiredPermission: '',
1869
+ },
1870
+ },
1871
+ {
1872
+ priority: 9002,
1873
+ icon: 'fa-solid fa-coins',
1874
+ text: `#common.currency`,
1875
+ path: '/demo/m/localization-management/e/currency/list',
1876
+ },
1877
+ {
1878
+ priority: 9003,
1879
+ icon: 'fa-solid fa-globe-stand',
1880
+ text: `#common.geo`,
1881
+ children: [
1882
+ {
1883
+ priority: 9101,
1884
+ icon: 'fa-solid fa-earth-americas',
1885
+ text: '#common.country',
1886
+ path: '/demo/m/localization-management/e/country/list',
1887
+ },
1888
+ {
1889
+ priority: 9102,
1890
+ icon: 'fa-solid fa-mountain-city',
1891
+ text: '#common.province',
1892
+ path: '/demo/m/localization-management/e/province/list',
1893
+ },
1894
+ {
1895
+ priority: 9103,
1896
+ icon: 'fa-solid fa-city',
1897
+ text: '#common.city',
1898
+ path: '/demo/m/localization-management/e/city/list',
1899
+ },
1900
+ ],
1901
+ },
1902
+ ],
1903
+ },
1904
+ ],
1905
+ },
1906
+ ];
1907
+ }
1908
+ }
1909
+
1910
+ class AXMPlatformManagementModule {
1911
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1912
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule] }); }
1913
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, providers: [
1914
+ {
1915
+ provide: AXMGlobalVariablesService,
1916
+ useClass: AXMGlobalVariablesServiceImpl,
1917
+ },
1918
+ {
1919
+ provide: AXMCurrencyService,
1920
+ useClass: AXMCurrencyServiceImpl,
1921
+ },
1922
+ {
1923
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1924
+ useClass: AXMGlobalVariableModuleEntityLoader,
1925
+ multi: true,
1926
+ },
1927
+ {
1928
+ provide: AXP_MENU_PROVIDER,
1929
+ useClass: AXMPlatformManagmentModuleMenuProvider,
1930
+ multi: true,
1931
+ },
1932
+ ], imports: [AXMPlatformManagementCommonModule] }); }
1933
+ }
1934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
1935
+ type: NgModule,
1936
+ args: [{
1937
+ imports: [AXMPlatformManagementCommonModule],
1938
+ exports: [],
1939
+ declarations: [],
1940
+ providers: [
1941
+ {
1942
+ provide: AXMGlobalVariablesService,
1943
+ useClass: AXMGlobalVariablesServiceImpl,
1944
+ },
1945
+ {
1946
+ provide: AXMCurrencyService,
1947
+ useClass: AXMCurrencyServiceImpl,
1948
+ },
1949
+ {
1950
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1951
+ useClass: AXMGlobalVariableModuleEntityLoader,
1952
+ multi: true,
1953
+ },
1954
+ {
1955
+ provide: AXP_MENU_PROVIDER,
1956
+ useClass: AXMPlatformManagmentModuleMenuProvider,
1957
+ multi: true,
1958
+ },
1959
+ ],
1960
+ }]
1961
+ }] });
1962
+
747
1963
  /**
748
1964
  * Generated bundle index. Do not edit.
749
1965
  */
750
1966
 
751
- export { AXMGlobalVariableModuleEntityLoader, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMLanguageModuleEntityLoader, AXMLanguageService, AXMLanguageServiceImpl, AXMPlatformManagementModule, AXPCommentServiceImpl, globalVariableEntityFactory, languageEntityFactory };
1967
+ export { AXMCommonModuleEntityLoader, AXMCountryService, AXMCountryServiceImpl, AXMCurrencyService, AXMCurrencyServiceImpl, AXMGlobalVariableModuleEntityLoader, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMPlatformManagementModule, CITY_SOURCE_NAME, COUNTRY_SOURCE_NAME, CURRENCY_SOURCE_NAME, PROVINCE_SOURCE_NAME, countryEntityFactory, currencyEntityFactory, globalVariableEntityFactory };
752
1968
  //# sourceMappingURL=acorex-modules-platform-management.mjs.map