@acorex/modules 18.2.0 → 18.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/application-management/lib/application-management.source.d.ts +1 -0
  2. package/application-management/lib/services/application-module-management.service.d.ts +10 -0
  3. package/application-management/lib/services/edition-management.service.d.ts +10 -0
  4. package/application-management/lib/services/entity-management.service.d.ts +10 -0
  5. package/application-management/lib/services/feature-management.service.d.ts +10 -0
  6. package/application-management/lib/services/permission-management.service.d.ts +10 -0
  7. package/application-management/lib/services/property-management.service.d.ts +10 -0
  8. package/auth/lib/menu.provider.d.ts +1 -2
  9. package/conversation/index.d.ts +13 -4
  10. package/conversation/lib/conversation.module.d.ts +6 -3
  11. package/conversation/lib/entities/chat/chat.module.d.ts +23 -0
  12. package/conversation/lib/entities/chat/chat.type.d.ts +21 -0
  13. package/conversation/lib/entities/chat/components/chat-item/chat-item.component.d.ts +16 -0
  14. package/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.d.ts +5 -0
  15. package/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.d.ts +5 -0
  16. package/conversation/lib/entities/chat/components/chat-items/chat-items.component.d.ts +6 -0
  17. package/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.d.ts +28 -0
  18. package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +5 -0
  19. package/conversation/lib/{comments → entities/comments}/comment.module.d.ts +1 -1
  20. package/{platform-management/lib/comments/comment-management.service.d.ts → conversation/lib/entities/comments/comments.service.d.ts} +5 -2
  21. package/conversation/lib/{comments → entities/comments/pages}/comment-list-view.component.d.ts +1 -1
  22. package/converstion-test/README.md +4 -0
  23. package/converstion-test/index.d.ts +1 -0
  24. package/converstion-test/lib/converstion-test.module.d.ts +6 -0
  25. package/esm2022/application-management/lib/application-management.module.mjs +36 -1
  26. package/esm2022/application-management/lib/application-management.source.mjs +2 -1
  27. package/esm2022/application-management/lib/entities/application-module.entity.mjs +10 -13
  28. package/esm2022/application-management/lib/entities/edition.entity.mjs +10 -13
  29. package/esm2022/application-management/lib/entities/entity.entity.mjs +10 -13
  30. package/esm2022/application-management/lib/entities/feature.entity.mjs +10 -13
  31. package/esm2022/application-management/lib/entities/modules.entity.mjs +2 -2
  32. package/esm2022/application-management/lib/entities/permission.entity.mjs +10 -13
  33. package/esm2022/application-management/lib/entities/property.entity.mjs +10 -13
  34. package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +5 -4
  35. package/esm2022/application-management/lib/menu.provider.mjs +5 -5
  36. package/esm2022/application-management/lib/services/application-module-management.service.mjs +17 -0
  37. package/esm2022/application-management/lib/services/edition-management.service.mjs +17 -0
  38. package/esm2022/application-management/lib/services/entity-management.service.mjs +17 -0
  39. package/esm2022/application-management/lib/services/feature-management.service.mjs +17 -0
  40. package/esm2022/application-management/lib/services/permission-management.service.mjs +17 -0
  41. package/esm2022/application-management/lib/services/property-management.service.mjs +17 -0
  42. package/esm2022/auth/lib/account/account.module.mjs +6 -2
  43. package/esm2022/auth/lib/menu.provider.mjs +17 -22
  44. package/esm2022/conversation/index.mjs +14 -5
  45. package/esm2022/conversation/lib/conversation.module.mjs +13 -8
  46. package/esm2022/conversation/lib/entities/chat/chat.module.mjs +90 -0
  47. package/esm2022/conversation/lib/entities/chat/chat.type.mjs +2 -0
  48. package/esm2022/conversation/lib/entities/chat/components/chat-item/chat-item.component.mjs +35 -0
  49. package/esm2022/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.mjs +13 -0
  50. package/esm2022/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.mjs +15 -0
  51. package/esm2022/conversation/lib/entities/chat/components/chat-items/chat-items.component.mjs +15 -0
  52. package/esm2022/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.mjs +237 -0
  53. package/esm2022/conversation/lib/entities/chat/pages/chat/chat.component.mjs +15 -0
  54. package/esm2022/conversation/lib/entities/comments/comment.module.mjs +100 -0
  55. package/esm2022/conversation/lib/entities/comments/comments.service.mjs +20 -0
  56. package/esm2022/conversation/lib/entities/comments/comments.type.mjs +2 -0
  57. package/esm2022/conversation/lib/entities/comments/pages/comment-list-view.component.mjs +393 -0
  58. package/esm2022/conversation/lib/{comments → entities/comments/pages}/comment-lookup-popup.component.mjs +1 -1
  59. package/esm2022/converstion-test/acorex-modules-converstion-test.mjs +5 -0
  60. package/esm2022/converstion-test/index.mjs +2 -0
  61. package/esm2022/converstion-test/lib/converstion-test.module.mjs +16 -0
  62. package/esm2022/form-template-management/acorex-modules-form-template-management.mjs +5 -0
  63. package/esm2022/form-template-management/index.mjs +2 -0
  64. package/esm2022/form-template-management/lib/const.mjs +8 -0
  65. package/esm2022/form-template-management/lib/entities/category/category.entity.mjs +241 -0
  66. package/esm2022/form-template-management/lib/entities/category/category.module.mjs +28 -0
  67. package/esm2022/form-template-management/lib/entities/category/category.service.mjs +17 -0
  68. package/esm2022/form-template-management/lib/entities/category/category.types.mjs +2 -0
  69. package/esm2022/form-template-management/lib/entities/category/index.mjs +5 -0
  70. package/esm2022/form-template-management/lib/entities/template/index.mjs +5 -0
  71. package/esm2022/form-template-management/lib/entities/template/template.entity.mjs +241 -0
  72. package/esm2022/form-template-management/lib/entities/template/template.module.mjs +28 -0
  73. package/esm2022/form-template-management/lib/entities/template/template.service.mjs +17 -0
  74. package/esm2022/form-template-management/lib/entities/template/template.types.mjs +2 -0
  75. package/esm2022/form-template-management/lib/entity.provider.mjs +25 -0
  76. package/esm2022/form-template-management/lib/form-template-management.module.mjs +77 -0
  77. package/esm2022/form-template-management/lib/menu.provider.mjs +45 -0
  78. package/esm2022/form-template-management/lib/pages/designer/designer.page.mjs +24 -0
  79. package/esm2022/localization-management/acorex-modules-localization-management.mjs +5 -0
  80. package/esm2022/localization-management/index.mjs +8 -0
  81. package/esm2022/localization-management/lib/culture/culture.entity.mjs +239 -0
  82. package/esm2022/localization-management/lib/culture/culture.service.mjs +17 -0
  83. package/esm2022/localization-management/lib/culture/culture.types.mjs +2 -0
  84. package/esm2022/localization-management/lib/culture/index.mjs +4 -0
  85. package/esm2022/localization-management/lib/entity.loader.mjs +36 -0
  86. package/esm2022/localization-management/lib/language/index.mjs +4 -0
  87. package/esm2022/localization-management/lib/language/language-slot/language-slot.component.mjs +30 -0
  88. package/esm2022/localization-management/lib/language/language.entity.mjs +239 -0
  89. package/esm2022/localization-management/lib/language/language.service.mjs +17 -0
  90. package/esm2022/localization-management/lib/language/language.types.mjs +2 -0
  91. package/esm2022/localization-management/lib/localization-management.module.mjs +99 -0
  92. package/esm2022/localization-management/lib/localization-management.source.mjs +4 -0
  93. package/esm2022/localization-management/lib/localization-store.service.mjs +34 -0
  94. package/esm2022/localization-management/lib/menu.provider.mjs +46 -0
  95. package/esm2022/localization-management/lib/time-zone/index.mjs +4 -0
  96. package/esm2022/localization-management/lib/time-zone/time-zone.entity.mjs +256 -0
  97. package/esm2022/localization-management/lib/time-zone/time-zone.service.mjs +17 -0
  98. package/esm2022/localization-management/lib/time-zone/time-zone.types.mjs +2 -0
  99. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +3 -3
  100. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.mjs +3 -3
  101. package/esm2022/notification-management/lib/entities/my-notification.mjs +8 -15
  102. package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +3 -3
  103. package/esm2022/notification-management/lib/menu.provider.mjs +6 -11
  104. package/esm2022/platform-management/index.mjs +2 -3
  105. package/esm2022/platform-management/lib/common/common.module.mjs +65 -0
  106. package/esm2022/platform-management/lib/common/common.source.mjs +5 -0
  107. package/esm2022/platform-management/lib/common/country/country-datasource.provider.mjs +27 -0
  108. package/esm2022/platform-management/lib/common/country/country.entity.mjs +696 -0
  109. package/esm2022/platform-management/lib/common/country/country.service.mjs +17 -0
  110. package/esm2022/platform-management/lib/common/country/country.types.mjs +2 -0
  111. package/esm2022/platform-management/lib/common/country/index.mjs +4 -0
  112. package/esm2022/platform-management/lib/common/currency/currency.entity.mjs +283 -0
  113. package/esm2022/platform-management/lib/common/currency/currency.service.mjs +17 -0
  114. package/esm2022/platform-management/lib/common/currency/currency.types.mjs +2 -0
  115. package/esm2022/platform-management/lib/common/currency/index.mjs +4 -0
  116. package/esm2022/platform-management/lib/common/entity.loader.mjs +36 -0
  117. package/esm2022/platform-management/lib/common/index.mjs +5 -0
  118. package/esm2022/platform-management/lib/common/province/index.mjs +4 -0
  119. package/esm2022/platform-management/lib/common/province/province.entity.mjs +307 -0
  120. package/esm2022/platform-management/lib/common/province/province.service.mjs +17 -0
  121. package/esm2022/platform-management/lib/common/province/province.types.mjs +2 -0
  122. package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +54 -4
  123. package/esm2022/platform-management/lib/menu.provider.mjs +30 -14
  124. package/esm2022/platform-management/lib/platform-management.module.mjs +11 -32
  125. package/esm2022/template-management/index.mjs +2 -2
  126. package/esm2022/template-management/lib/entities/category.entity.mjs +32 -15
  127. package/esm2022/template-management/lib/entities/template-variable.entity.mjs +90 -90
  128. package/esm2022/template-management/lib/entities/text-template.entity.mjs +26 -1
  129. package/esm2022/template-management/lib/entity.provider.mjs +32 -0
  130. package/esm2022/template-management/lib/menu.provider.mjs +5 -5
  131. package/esm2022/template-management/lib/template-management.module.mjs +4 -4
  132. package/fesm2022/{acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs → acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs} +3 -3
  133. package/fesm2022/{acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs.map → acorex-modules-application-management-module-designer.component-CaR_HZfL.mjs.map} +1 -1
  134. package/fesm2022/acorex-modules-application-management.mjs +338 -242
  135. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  136. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-D2WBJhj6.mjs → acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs} +29 -28
  137. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BVOt-gis.mjs.map +1 -0
  138. package/fesm2022/{acorex-modules-auth-app-chooser.component-B7BwymT_.mjs → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs} +2 -2
  139. package/fesm2022/{acorex-modules-auth-app-chooser.component-B7BwymT_.mjs.map → acorex-modules-auth-app-chooser.component-DhPEtLuK.mjs.map} +1 -1
  140. package/fesm2022/{acorex-modules-auth-login.module-BjvPlYQZ.mjs → acorex-modules-auth-login.module-sFVL-lYB.mjs} +4 -4
  141. package/fesm2022/{acorex-modules-auth-login.module-BjvPlYQZ.mjs.map → acorex-modules-auth-login.module-sFVL-lYB.mjs.map} +1 -1
  142. package/fesm2022/{acorex-modules-auth-master.layout-CeqMPrx8.mjs → acorex-modules-auth-master.layout-Bnt5qiio.mjs} +2 -2
  143. package/fesm2022/{acorex-modules-auth-master.layout-CeqMPrx8.mjs.map → acorex-modules-auth-master.layout-Bnt5qiio.mjs.map} +1 -1
  144. package/fesm2022/{acorex-modules-auth-password.component-X3BUidi1.mjs → acorex-modules-auth-password.component-BXL-aLTx.mjs} +2 -2
  145. package/fesm2022/{acorex-modules-auth-password.component-X3BUidi1.mjs.map → acorex-modules-auth-password.component-BXL-aLTx.mjs.map} +1 -1
  146. package/fesm2022/{acorex-modules-auth-password.component-87NrYq3i.mjs → acorex-modules-auth-password.component-ClaRp38G.mjs} +2 -2
  147. package/fesm2022/{acorex-modules-auth-password.component-87NrYq3i.mjs.map → acorex-modules-auth-password.component-ClaRp38G.mjs.map} +1 -1
  148. package/fesm2022/{acorex-modules-auth-routes-D1JZT2cF.mjs → acorex-modules-auth-routes-MDneFw2m.mjs} +2 -2
  149. package/fesm2022/{acorex-modules-auth-routes-D1JZT2cF.mjs.map → acorex-modules-auth-routes-MDneFw2m.mjs.map} +1 -1
  150. package/fesm2022/{acorex-modules-auth-two-factor.module-C28ix6Wr.mjs → acorex-modules-auth-two-factor.module-BHulbf0N.mjs} +2 -2
  151. package/fesm2022/{acorex-modules-auth-two-factor.module-C28ix6Wr.mjs.map → acorex-modules-auth-two-factor.module-BHulbf0N.mjs.map} +1 -1
  152. package/fesm2022/acorex-modules-auth.mjs +1 -1
  153. package/fesm2022/acorex-modules-conversation.mjs +413 -11
  154. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  155. package/fesm2022/acorex-modules-converstion-test.mjs +23 -0
  156. package/fesm2022/acorex-modules-converstion-test.mjs.map +1 -0
  157. package/fesm2022/{acorex-modules-form-management-designer.page-SoPH2V7i.mjs → acorex-modules-form-template-management-designer.page-DC18KFvK.mjs} +6 -6
  158. package/fesm2022/acorex-modules-form-template-management-designer.page-DC18KFvK.mjs.map +1 -0
  159. package/fesm2022/acorex-modules-form-template-management.mjs +713 -0
  160. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -0
  161. package/fesm2022/acorex-modules-localization-management.mjs +1019 -0
  162. package/fesm2022/acorex-modules-localization-management.mjs.map +1 -0
  163. package/fesm2022/acorex-modules-notification-management.mjs +18 -29
  164. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  165. package/fesm2022/acorex-modules-platform-management.mjs +1424 -213
  166. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  167. package/fesm2022/acorex-modules-template-management.mjs +162 -124
  168. package/fesm2022/acorex-modules-template-management.mjs.map +1 -1
  169. package/form-template-management/README.md +4 -0
  170. package/form-template-management/index.d.ts +1 -0
  171. package/form-template-management/lib/const.d.ts +7 -0
  172. package/form-template-management/lib/entities/category/category.entity.d.ts +3 -0
  173. package/form-template-management/lib/entities/category/category.module.d.ts +6 -0
  174. package/form-template-management/lib/entities/category/category.service.d.ts +10 -0
  175. package/form-template-management/lib/entities/category/category.types.d.ts +5 -0
  176. package/form-template-management/lib/entities/category/index.d.ts +4 -0
  177. package/form-template-management/lib/entities/template/index.d.ts +4 -0
  178. package/form-template-management/lib/entities/template/template.entity.d.ts +3 -0
  179. package/form-template-management/lib/entities/template/template.module.d.ts +6 -0
  180. package/form-template-management/lib/entities/template/template.service.d.ts +10 -0
  181. package/form-template-management/lib/entities/template/template.types.d.ts +5 -0
  182. package/form-template-management/lib/entity.provider.d.ts +9 -0
  183. package/form-template-management/lib/form-template-management.module.d.ts +10 -0
  184. package/form-template-management/lib/menu.provider.d.ts +5 -0
  185. package/form-template-management/lib/pages/designer/designer.page.d.ts +5 -0
  186. package/localization-management/README.md +4 -0
  187. package/localization-management/index.d.ts +7 -0
  188. package/localization-management/lib/culture/culture.entity.d.ts +3 -0
  189. package/localization-management/lib/culture/culture.service.d.ts +10 -0
  190. package/localization-management/lib/culture/culture.types.d.ts +12 -0
  191. package/localization-management/lib/culture/index.d.ts +3 -0
  192. package/localization-management/lib/entity.loader.d.ts +9 -0
  193. package/localization-management/lib/language/index.d.ts +3 -0
  194. package/localization-management/lib/language/language-slot/language-slot.component.d.ts +19 -0
  195. package/localization-management/lib/localization-management.module.d.ts +10 -0
  196. package/localization-management/lib/localization-management.source.d.ts +3 -0
  197. package/localization-management/lib/localization-store.service.d.ts +7 -0
  198. package/localization-management/lib/menu.provider.d.ts +5 -0
  199. package/localization-management/lib/time-zone/index.d.ts +3 -0
  200. package/localization-management/lib/time-zone/time-zone.entity.d.ts +3 -0
  201. package/localization-management/lib/time-zone/time-zone.service.d.ts +10 -0
  202. package/localization-management/lib/time-zone/time-zone.types.d.ts +9 -0
  203. package/notification-management/lib/menu.provider.d.ts +0 -1
  204. package/package.json +24 -12
  205. package/platform-management/index.d.ts +1 -2
  206. package/platform-management/lib/common/common.module.d.ts +6 -0
  207. package/platform-management/lib/common/common.source.d.ts +4 -0
  208. package/platform-management/lib/common/country/country-datasource.provider.d.ts +5 -0
  209. package/platform-management/lib/common/country/country.entity.d.ts +3 -0
  210. package/platform-management/lib/common/country/country.service.d.ts +10 -0
  211. package/platform-management/lib/common/country/country.types.d.ts +18 -0
  212. package/platform-management/lib/common/country/index.d.ts +3 -0
  213. package/platform-management/lib/common/currency/currency.entity.d.ts +3 -0
  214. package/platform-management/lib/common/currency/currency.service.d.ts +10 -0
  215. package/platform-management/lib/common/currency/currency.types.d.ts +6 -0
  216. package/platform-management/lib/common/currency/index.d.ts +3 -0
  217. package/platform-management/lib/{languages → common}/entity.loader.d.ts +3 -3
  218. package/platform-management/lib/common/index.d.ts +4 -0
  219. package/platform-management/lib/common/province/index.d.ts +3 -0
  220. package/platform-management/lib/common/province/province.entity.d.ts +3 -0
  221. package/platform-management/lib/common/province/province.service.d.ts +10 -0
  222. package/platform-management/lib/common/province/province.types.d.ts +7 -0
  223. package/platform-management/lib/menu.provider.d.ts +1 -1
  224. package/platform-management/lib/platform-management.module.d.ts +2 -1
  225. package/template-management/index.d.ts +1 -1
  226. package/template-management/lib/{entity.loader.d.ts → entity.provider.d.ts} +3 -3
  227. package/conversation/lib/comments/comments.service.d.ts +0 -5
  228. package/esm2022/conversation/lib/comments/comment-list-view.component.mjs +0 -393
  229. package/esm2022/conversation/lib/comments/comment.module.mjs +0 -89
  230. package/esm2022/conversation/lib/comments/comments.service.mjs +0 -4
  231. package/esm2022/conversation/lib/comments/comments.type.mjs +0 -2
  232. package/esm2022/form-management/acorex-modules-form-management.mjs +0 -5
  233. package/esm2022/form-management/index.mjs +0 -2
  234. package/esm2022/form-management/lib/designer/designer.page.mjs +0 -24
  235. package/esm2022/form-management/lib/form-management.module.mjs +0 -53
  236. package/esm2022/form-management/lib/menu.provider.mjs +0 -35
  237. package/esm2022/platform-management/lib/comments/comment-management.service.mjs +0 -18
  238. package/esm2022/platform-management/lib/languages/entities/language.entity.mjs +0 -234
  239. package/esm2022/platform-management/lib/languages/entity.loader.mjs +0 -26
  240. package/esm2022/platform-management/lib/languages/index.mjs +0 -5
  241. package/esm2022/platform-management/lib/languages/language-management.service.mjs +0 -16
  242. package/esm2022/platform-management/lib/languages/language.types.mjs +0 -2
  243. package/esm2022/template-management/lib/entity.loader.mjs +0 -36
  244. package/fesm2022/acorex-modules-auth-acorex-modules-auth-D2WBJhj6.mjs.map +0 -1
  245. package/fesm2022/acorex-modules-form-management-designer.page-SoPH2V7i.mjs.map +0 -1
  246. package/fesm2022/acorex-modules-form-management.mjs +0 -93
  247. package/fesm2022/acorex-modules-form-management.mjs.map +0 -1
  248. package/form-management/README.md +0 -4
  249. package/form-management/index.d.ts +0 -1
  250. package/form-management/lib/designer/designer.page.d.ts +0 -5
  251. package/form-management/lib/form-management.module.d.ts +0 -8
  252. package/form-management/lib/menu.provider.d.ts +0 -5
  253. package/platform-management/lib/languages/index.d.ts +0 -4
  254. /package/conversation/lib/{comments → entities/comments}/comments.type.d.ts +0 -0
  255. /package/conversation/lib/{comments → entities/comments/pages}/comment-lookup-popup.component.d.ts +0 -0
  256. /package/{platform-management/lib/languages/entities → localization-management/lib/language}/language.entity.d.ts +0 -0
  257. /package/{platform-management/lib/languages/language-management.service.d.ts → localization-management/lib/language/language.service.d.ts} +0 -0
  258. /package/{platform-management/lib/languages → localization-management/lib/language}/language.types.d.ts +0 -0
@@ -1,35 +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 { AXMCommentService } from '@acorex/modules/conversation';
5
- import { AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
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
7
  import { AXTranslationService } from '@acorex/core/translation';
8
8
 
9
- 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 {
10
17
  constructor() {
11
- super('comments');
12
- this.messageReactionDataProvider = new AXPEntityDataProviderImpl(super.storageService, 'messageReaction');
18
+ super(COUNTRY_SOURCE_NAME);
13
19
  }
14
- async like(payload) {
15
- return this.messageReactionDataProvider.insertOne(payload);
16
- }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
18
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl }); }
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;
19
1016
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentServiceImpl, decorators: [{
21
- type: Injectable
22
- }], ctorParameters: () => [] });
23
1017
 
24
- class AXMGlobalVariableModuleEntityLoader {
1018
+ var currency_entity = /*#__PURE__*/Object.freeze({
1019
+ __proto__: null,
1020
+ currencyEntityFactory: currencyEntityFactory
1021
+ });
1022
+
1023
+ class AXMCommonModuleEntityLoader {
25
1024
  constructor() {
26
1025
  this.injector = inject(Injector);
27
1026
  }
28
1027
  async get(moduleName, entityName) {
29
1028
  return new Promise(async (resolve) => {
30
1029
  switch (entityName) {
31
- case 'globalVariable': {
32
- 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;
33
1042
  resolve(entity(this.injector));
34
1043
  break;
35
1044
  }
@@ -38,62 +1047,75 @@ class AXMGlobalVariableModuleEntityLoader {
38
1047
  }
39
1048
  });
40
1049
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
42
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariableModuleEntityLoader }); }
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 }); }
43
1052
  }
44
- 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: [{
45
1054
  type: Injectable
46
1055
  }] });
47
1056
 
48
- class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
49
- }
50
- class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
1057
+ class AXPPlatformCountryWidgetDataSourceProvider {
51
1058
  constructor() {
52
- 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
+ ];
53
1078
  }
54
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
55
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
56
1079
  }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
58
- type: Injectable
59
- }], ctorParameters: () => [] });
60
1080
 
61
- class AXMLanguageService extends AXMEntityCrudServiceImpl {
1081
+ class AXMProvinceService extends AXMEntityCrudServiceImpl {
62
1082
  }
63
- class AXMLanguageServiceImpl extends AXMEntityCrudServiceImpl {
1083
+ class AXMProvinceServiceImpl extends AXMProvinceService {
64
1084
  constructor() {
65
- super('language');
1085
+ super(PROVINCE_SOURCE_NAME);
66
1086
  }
67
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
68
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl }); }
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 }); }
69
1089
  }
70
- 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: [{
71
1091
  type: Injectable
72
1092
  }], ctorParameters: () => [] });
73
1093
 
74
- async function languageEntityFactory(injector) {
75
- const dataService = injector.get(AXMLanguageService);
1094
+ async function provinceEntityFactory(injector) {
1095
+ const dataService = injector.get(AXMProvinceService);
1096
+ const moduleName = 'common';
1097
+ const scope = `#${moduleName}`;
76
1098
  const entityDef = {
77
- module: 'common',
78
- name: 'language',
79
- source: 'common.language',
80
- title: 'Language',
1099
+ module: moduleName,
1100
+ name: 'province',
1101
+ source: 'common.province',
1102
+ title: `${scope}.province`,
81
1103
  formats: {
82
- individual: 'Language',
83
- plural: 'Languages',
1104
+ individual: `${scope}.province`,
1105
+ plural: `${scope}.provinces`,
84
1106
  },
85
1107
  relatedEntities: [],
86
1108
  groups: [
87
1109
  {
88
- id: 'language',
89
- title: 'Language',
1110
+ id: 'province',
1111
+ title: `${scope}.province`,
90
1112
  },
91
1113
  ],
92
1114
  properties: [
93
1115
  {
94
1116
  name: 'title',
95
- title: 'Title',
96
- groupId: 'language',
1117
+ title: '#common.title',
1118
+ groupId: 'province',
97
1119
  schema: {
98
1120
  dataType: 'string',
99
1121
  interface: {
@@ -107,29 +1129,69 @@ async function languageEntityFactory(injector) {
107
1129
  ],
108
1130
  },
109
1131
  {
110
- name: 'code',
111
- title: 'Code',
112
- 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',
113
1171
  schema: {
114
1172
  dataType: 'string',
1173
+ readonly: true,
115
1174
  interface: {
116
1175
  type: AXPWidgetsCatalog.text,
117
1176
  },
118
1177
  },
1178
+ options: {
1179
+ sort: {
1180
+ enabled: true,
1181
+ },
1182
+ },
119
1183
  },
120
1184
  ],
121
- columns: [{ name: 'title' }, { name: 'code' }],
1185
+ columns: [{ name: 'name' }, { name: 'title' }, { name: 'country.title' }],
122
1186
  commands: {
123
1187
  create: {
124
1188
  execute: async (data) => {
125
- const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
126
- dataService.insertOne(entity);
127
- return Promise.resolve(entity);
1189
+ return Promise.resolve({ id: await dataService.insertOne(data) });
128
1190
  },
129
1191
  },
130
1192
  delete: {
131
1193
  execute: async (id) => {
132
- await await dataService.deleteOne(id);
1194
+ await dataService.deleteOne(id);
133
1195
  return Promise.resolve();
134
1196
  },
135
1197
  },
@@ -158,7 +1220,8 @@ async function languageEntityFactory(injector) {
158
1220
  },
159
1221
  list: {
160
1222
  execute: async (e) => {
161
- 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);
162
1225
  },
163
1226
  type: AXPEntityQueryType.List,
164
1227
  },
@@ -168,12 +1231,12 @@ async function languageEntityFactory(injector) {
168
1231
  create: {
169
1232
  sections: [
170
1233
  {
171
- id: 'language',
1234
+ id: 'province',
172
1235
  },
173
1236
  ],
174
1237
  properties: [
175
1238
  {
176
- name: 'title',
1239
+ name: 'name',
177
1240
  layout: {
178
1241
  positions: {
179
1242
  lg: {
@@ -183,7 +1246,7 @@ async function languageEntityFactory(injector) {
183
1246
  },
184
1247
  },
185
1248
  {
186
- name: 'code',
1249
+ name: 'title',
187
1250
  layout: {
188
1251
  positions: {
189
1252
  lg: {
@@ -192,17 +1255,27 @@ async function languageEntityFactory(injector) {
192
1255
  },
193
1256
  },
194
1257
  },
1258
+ {
1259
+ name: 'country.id',
1260
+ layout: {
1261
+ positions: {
1262
+ lg: {
1263
+ colSpan: 12,
1264
+ },
1265
+ },
1266
+ },
1267
+ },
195
1268
  ],
196
1269
  },
197
1270
  update: {
198
1271
  sections: [
199
1272
  {
200
- id: 'language',
1273
+ id: 'province',
201
1274
  },
202
1275
  ],
203
1276
  properties: [
204
1277
  {
205
- name: 'title',
1278
+ name: 'name',
206
1279
  layout: {
207
1280
  positions: {
208
1281
  lg: {
@@ -212,7 +1285,7 @@ async function languageEntityFactory(injector) {
212
1285
  },
213
1286
  },
214
1287
  {
215
- name: 'code',
1288
+ name: 'title',
216
1289
  layout: {
217
1290
  positions: {
218
1291
  lg: {
@@ -221,18 +1294,28 @@ async function languageEntityFactory(injector) {
221
1294
  },
222
1295
  },
223
1296
  },
1297
+ {
1298
+ name: 'country.id',
1299
+ layout: {
1300
+ positions: {
1301
+ lg: {
1302
+ colSpan: 12,
1303
+ },
1304
+ },
1305
+ },
1306
+ },
224
1307
  ],
225
1308
  },
226
1309
  single: {
227
1310
  title: '{{title}}',
228
1311
  sections: [
229
1312
  {
230
- id: 'language',
1313
+ id: 'province',
231
1314
  },
232
1315
  ],
233
1316
  properties: [
234
1317
  {
235
- name: 'title',
1318
+ name: 'name',
236
1319
  layout: {
237
1320
  positions: {
238
1321
  lg: {
@@ -242,7 +1325,7 @@ async function languageEntityFactory(injector) {
242
1325
  },
243
1326
  },
244
1327
  {
245
- name: 'code',
1328
+ name: 'title',
246
1329
  layout: {
247
1330
  positions: {
248
1331
  lg: {
@@ -251,207 +1334,142 @@ async function languageEntityFactory(injector) {
251
1334
  },
252
1335
  },
253
1336
  },
1337
+ {
1338
+ name: 'country.name',
1339
+ layout: {
1340
+ positions: {
1341
+ lg: {
1342
+ colSpan: 12,
1343
+ },
1344
+ },
1345
+ },
1346
+ },
254
1347
  ],
255
1348
  actions: [],
256
1349
  },
257
1350
  list: {
258
1351
  actions: [
259
1352
  {
260
- title: 'Create New',
1353
+ title: '#common.create',
261
1354
  command: 'create-entity',
262
1355
  priority: 'primary',
263
1356
  type: 'create',
264
1357
  scope: AXPEntityCommandScope.TypeLevel,
265
1358
  },
266
1359
  {
267
- title: 'Delete Items',
1360
+ title: '#common.deleteItems',
268
1361
  command: 'delete-entity',
269
1362
  priority: 'primary',
270
1363
  type: 'delete',
271
1364
  scope: AXPEntityCommandScope.Selected,
272
1365
  },
273
1366
  {
274
- title: 'Details',
1367
+ title: '#common.detail',
275
1368
  command: 'open-entity',
276
1369
  priority: 'secondary',
277
1370
  type: 'view',
278
1371
  scope: AXPEntityCommandScope.Individual,
279
1372
  },
280
- {
281
- title: 'Delete',
282
- command: 'delete-entity',
283
- priority: 'secondary',
284
- type: 'delete',
285
- scope: AXPEntityCommandScope.Individual,
286
- },
287
- ],
288
- views: [
289
- {
290
- name: 'all',
291
- title: 'All Items',
292
- fixed: true,
293
- columns: [],
294
- conditions: [],
295
- sorts: [],
296
- },
297
- ],
298
- },
299
- },
300
- },
301
- };
302
- return entityDef;
303
- }
304
-
305
- var language_entity = /*#__PURE__*/Object.freeze({
306
- __proto__: null,
307
- languageEntityFactory: languageEntityFactory
308
- });
309
-
310
- class AXMLanguageModuleEntityLoader {
311
- constructor() {
312
- this.injector = inject(Injector);
313
- }
314
- async get(moduleName, entityName) {
315
- return new Promise(async (resolve) => {
316
- switch (entityName) {
317
- case 'language': {
318
- const entity = (await Promise.resolve().then(function () { return language_entity; })).languageEntityFactory;
319
- resolve(entity(this.injector));
320
- break;
321
- }
322
- default:
323
- resolve(null);
324
- }
325
- });
326
- }
327
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
328
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader }); }
329
- }
330
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageModuleEntityLoader, decorators: [{
331
- type: Injectable
332
- }] });
333
-
334
- class AXMPlatformManagmentModuleMenuProvider {
335
- constructor() {
336
- this.translateService = inject(AXTranslationService);
337
- }
338
- async items() {
339
- const scope = "platform"; // The scope used for translation lookup
340
- return [
341
- {
342
- items: [
343
- {
344
- text: await this.translateService.translateAsync('platformManagement', { scope }),
345
- icon: 'fa-solid fa-square-terminal',
346
- type: 'menu',
347
- priority: 9100,
348
- data: {
349
- // requiredPermission: 'demo.admin.settings',
350
- },
351
- children: [
352
- {
353
- priority: 9001,
354
- text: await this.translateService.translateAsync('globalVariables', { scope }),
355
- path: '/demo/m/common/e/globalVariable/list',
356
- icon: 'fa-solid fa-object-exclude',
357
- data: {
358
- // requiredPermission: '',
359
- },
360
- },
361
- {
362
- priority: 9002,
363
- text: await this.translateService.translateAsync('languageManagement', { scope }),
364
- icon: 'fa-solid fa-square-terminal',
365
- children: [
366
- {
367
- text: await this.translateService.translateAsync('languageDefinition', { scope }),
368
- path: '/demo/m/common/e/language/list',
369
- icon: 'fa-solid fa-globe',
370
- data: {
371
- // requiredPermission: '',
372
- },
373
- },
374
- ],
375
- },
376
- ],
377
- },
378
- ],
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
+ },
379
1392
  },
380
- ];
381
- }
1393
+ },
1394
+ };
1395
+ return entityDef;
382
1396
  }
383
1397
 
384
- class AXMPlatformManagementModule {
385
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
386
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule }); }
387
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMPlatformManagementModule, providers: [
388
- {
389
- provide: AXMGlobalVariablesService,
390
- useClass: AXMGlobalVariablesServiceImpl,
391
- },
392
- {
393
- provide: AXMLanguageService,
394
- useClass: AXMLanguageServiceImpl,
395
- },
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
396
1408
  {
397
- provide: AXMCommentService,
398
- useClass: AXPCommentServiceImpl,
1409
+ provide: AXMCountryService,
1410
+ useClass: AXMCountryServiceImpl,
399
1411
  },
400
1412
  {
401
- provide: AXP_ENTITY_DEFINITION_LOADER,
402
- useClass: AXMLanguageModuleEntityLoader,
1413
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
1414
+ useClass: AXPPlatformCountryWidgetDataSourceProvider,
403
1415
  multi: true,
404
1416
  },
1417
+ // Province
405
1418
  {
406
- provide: AXP_ENTITY_DEFINITION_LOADER,
407
- useClass: AXMGlobalVariableModuleEntityLoader,
408
- multi: true,
1419
+ provide: AXMProvinceService,
1420
+ useClass: AXMProvinceServiceImpl,
409
1421
  },
410
1422
  {
411
- provide: AXP_MENU_PROVIDER,
412
- useClass: AXMPlatformManagmentModuleMenuProvider,
1423
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1424
+ useClass: AXMCommonModuleEntityLoader,
413
1425
  multi: true,
414
1426
  },
415
1427
  ] }); }
416
1428
  }
417
- 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: [{
418
1430
  type: NgModule,
419
1431
  args: [{
420
1432
  imports: [],
421
1433
  exports: [],
422
1434
  declarations: [],
423
1435
  providers: [
1436
+ // Country
424
1437
  {
425
- provide: AXMGlobalVariablesService,
426
- useClass: AXMGlobalVariablesServiceImpl,
427
- },
428
- {
429
- provide: AXMLanguageService,
430
- useClass: AXMLanguageServiceImpl,
431
- },
432
- {
433
- provide: AXMCommentService,
434
- useClass: AXPCommentServiceImpl,
1438
+ provide: AXMCountryService,
1439
+ useClass: AXMCountryServiceImpl,
435
1440
  },
436
1441
  {
437
- provide: AXP_ENTITY_DEFINITION_LOADER,
438
- useClass: AXMLanguageModuleEntityLoader,
1442
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
1443
+ useClass: AXPPlatformCountryWidgetDataSourceProvider,
439
1444
  multi: true,
440
1445
  },
1446
+ // Province
441
1447
  {
442
- provide: AXP_ENTITY_DEFINITION_LOADER,
443
- useClass: AXMGlobalVariableModuleEntityLoader,
444
- multi: true,
1448
+ provide: AXMProvinceService,
1449
+ useClass: AXMProvinceServiceImpl,
445
1450
  },
446
1451
  {
447
- provide: AXP_MENU_PROVIDER,
448
- useClass: AXMPlatformManagmentModuleMenuProvider,
1452
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1453
+ useClass: AXMCommonModuleEntityLoader,
449
1454
  multi: true,
450
1455
  },
451
1456
  ],
452
1457
  }]
453
1458
  }] });
454
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
+
455
1473
  async function globalVariableEntityFactory(injector) {
456
1474
  const dataService = injector.get(AXMGlobalVariablesService);
457
1475
  const entityDef = {
@@ -467,7 +1485,7 @@ async function globalVariableEntityFactory(injector) {
467
1485
  groups: [
468
1486
  {
469
1487
  id: 'section',
470
- title: 'Section',
1488
+ title: 'Global Variable',
471
1489
  },
472
1490
  ],
473
1491
  properties: [
@@ -513,6 +1531,11 @@ async function globalVariableEntityFactory(injector) {
513
1531
  type: AXPWidgetsCatalog.text,
514
1532
  },
515
1533
  },
1534
+ validations: [
1535
+ {
1536
+ rule: 'required',
1537
+ },
1538
+ ],
516
1539
  },
517
1540
  {
518
1541
  name: 'dataType',
@@ -538,6 +1561,11 @@ async function globalVariableEntityFactory(injector) {
538
1561
  },
539
1562
  },
540
1563
  },
1564
+ validations: [
1565
+ {
1566
+ rule: 'required',
1567
+ },
1568
+ ],
541
1569
  },
542
1570
  ],
543
1571
  columns: [{ name: 'title' }, { name: 'dataValue' }, { name: 'dataType' }],
@@ -654,7 +1682,27 @@ async function globalVariableEntityFactory(injector) {
654
1682
  },
655
1683
  },
656
1684
  {
657
- 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',
658
1706
  layout: {
659
1707
  positions: {
660
1708
  lg: {
@@ -684,7 +1732,27 @@ async function globalVariableEntityFactory(injector) {
684
1732
  },
685
1733
  },
686
1734
  {
687
- 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',
688
1756
  layout: {
689
1757
  positions: {
690
1758
  lg: {
@@ -749,9 +1817,152 @@ var globalVariable_entity = /*#__PURE__*/Object.freeze({
749
1817
  globalVariableEntityFactory: globalVariableEntityFactory
750
1818
  });
751
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
+
752
1963
  /**
753
1964
  * Generated bundle index. Do not edit.
754
1965
  */
755
1966
 
756
- 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 };
757
1968
  //# sourceMappingURL=acorex-modules-platform-management.mjs.map