@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
@@ -0,0 +1,1019 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Injector, Injectable, signal, Component, NgModule } from '@angular/core';
3
+ import * as i1$1 from '@acorex/platform/common';
4
+ import { AXMEntityCrudServiceImpl, AXPDataGenerator, AXPEntityQueryType, AXPEntityCommandScope, AXPSettingsService, AXP_MENU_PROVIDER, AXPComponentSlotModule } from '@acorex/platform/common';
5
+ import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
6
+ import { AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
7
+ import * as i3 from '@acorex/components/button';
8
+ import { AXButtonModule } from '@acorex/components/button';
9
+ import * as i2 from '@acorex/components/decorators';
10
+ import { AXDecoratorModule } from '@acorex/components/decorators';
11
+ import * as i1 from '@acorex/components/dropdown';
12
+ import { AXDropdownModule } from '@acorex/components/dropdown';
13
+ import { AXPopoverModule } from '@acorex/components/popover';
14
+ import { CommonModule } from '@angular/common';
15
+ import { AXTranslationService } from '@acorex/core/translation';
16
+ import { signalStore, withState, withMethods, patchState } from '@ngrx/signals';
17
+
18
+ class AXMLocalizationManagementModuleEntityLoader {
19
+ constructor() {
20
+ this.injector = inject(Injector);
21
+ }
22
+ async get(moduleName, entityName) {
23
+ return new Promise(async (resolve) => {
24
+ switch (entityName) {
25
+ case 'language': {
26
+ const entity = (await Promise.resolve().then(function () { return language_entity; })).languageEntityFactory;
27
+ resolve(entity(this.injector));
28
+ break;
29
+ }
30
+ case 'time-zone': {
31
+ const entity = (await Promise.resolve().then(function () { return timeZone_entity; })).timeZoneEntityFactory;
32
+ resolve(entity(this.injector));
33
+ break;
34
+ }
35
+ case 'culture': {
36
+ const entity = (await Promise.resolve().then(function () { return culture_entity; })).cultureEntityFactory;
37
+ resolve(entity(this.injector));
38
+ break;
39
+ }
40
+ default:
41
+ resolve(null);
42
+ }
43
+ });
44
+ }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLocalizationManagementModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
46
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLocalizationManagementModuleEntityLoader }); }
47
+ }
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLocalizationManagementModuleEntityLoader, decorators: [{
49
+ type: Injectable
50
+ }] });
51
+
52
+ const LANGUAGE_SOURCE_NAME = 'localization-management.language';
53
+ const TIMEZONE_SOURCE_NAME = 'localization-management.timeZone';
54
+ const CULTURE_SOURCE_NAME = 'localization-management.culture';
55
+
56
+ class AXMLanguageService extends AXMEntityCrudServiceImpl {
57
+ }
58
+ class AXMLanguageServiceImpl extends AXMEntityCrudServiceImpl {
59
+ constructor() {
60
+ super(LANGUAGE_SOURCE_NAME);
61
+ }
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
63
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl }); }
64
+ }
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageServiceImpl, decorators: [{
66
+ type: Injectable
67
+ }], ctorParameters: () => [] });
68
+
69
+ async function languageEntityFactory(injector) {
70
+ const dataService = injector.get(AXMLanguageService);
71
+ const entityDef = {
72
+ module: 'localization-management',
73
+ name: 'language',
74
+ source: 'localizationManagement.language',
75
+ title: 'Language',
76
+ formats: {
77
+ individual: 'Language',
78
+ plural: 'Languages',
79
+ },
80
+ relatedEntities: [],
81
+ groups: [
82
+ {
83
+ id: 'language',
84
+ title: 'Language',
85
+ },
86
+ ],
87
+ properties: [
88
+ {
89
+ name: 'title',
90
+ title: 'Title',
91
+ groupId: 'language',
92
+ schema: {
93
+ dataType: 'string',
94
+ interface: {
95
+ type: AXPWidgetsCatalog.text,
96
+ },
97
+ },
98
+ validations: [
99
+ {
100
+ rule: 'required',
101
+ },
102
+ ],
103
+ },
104
+ {
105
+ name: 'code',
106
+ title: 'Code',
107
+ groupId: 'language',
108
+ schema: {
109
+ dataType: 'string',
110
+ interface: {
111
+ type: AXPWidgetsCatalog.text,
112
+ },
113
+ },
114
+ validations: [
115
+ {
116
+ rule: 'required',
117
+ },
118
+ ],
119
+ },
120
+ ],
121
+ columns: [{ name: 'title' }, { name: 'code' }],
122
+ commands: {
123
+ create: {
124
+ execute: async (data) => {
125
+ const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
126
+ dataService.insertOne(entity);
127
+ return Promise.resolve(entity);
128
+ },
129
+ },
130
+ delete: {
131
+ execute: async (id) => {
132
+ await await dataService.deleteOne(id);
133
+ return Promise.resolve();
134
+ },
135
+ },
136
+ update: {
137
+ execute: async (data) => {
138
+ return new Promise((resolve) => {
139
+ setTimeout(async () => {
140
+ await dataService.updateOne(data.id, data);
141
+ resolve(data);
142
+ }, 1000);
143
+ });
144
+ },
145
+ },
146
+ },
147
+ queries: {
148
+ byKey: {
149
+ execute: async (id) => {
150
+ return new Promise((resolve) => {
151
+ setTimeout(async () => {
152
+ const entity = await dataService.getOne(id);
153
+ resolve(entity);
154
+ }, 500);
155
+ });
156
+ },
157
+ type: AXPEntityQueryType.Single,
158
+ },
159
+ list: {
160
+ execute: async (e) => {
161
+ return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
162
+ },
163
+ type: AXPEntityQueryType.List,
164
+ },
165
+ },
166
+ interfaces: {
167
+ master: {
168
+ create: {
169
+ sections: [
170
+ {
171
+ id: 'language',
172
+ },
173
+ ],
174
+ properties: [
175
+ {
176
+ name: 'title',
177
+ layout: {
178
+ positions: {
179
+ lg: {
180
+ colSpan: 6,
181
+ },
182
+ },
183
+ },
184
+ },
185
+ {
186
+ name: 'code',
187
+ layout: {
188
+ positions: {
189
+ lg: {
190
+ colSpan: 6,
191
+ },
192
+ },
193
+ },
194
+ },
195
+ ],
196
+ },
197
+ update: {
198
+ sections: [
199
+ {
200
+ id: 'language',
201
+ },
202
+ ],
203
+ properties: [
204
+ {
205
+ name: 'title',
206
+ layout: {
207
+ positions: {
208
+ lg: {
209
+ colSpan: 6,
210
+ },
211
+ },
212
+ },
213
+ },
214
+ {
215
+ name: 'code',
216
+ layout: {
217
+ positions: {
218
+ lg: {
219
+ colSpan: 6,
220
+ },
221
+ },
222
+ },
223
+ },
224
+ ],
225
+ },
226
+ single: {
227
+ title: '{{title}}',
228
+ sections: [
229
+ {
230
+ id: 'language',
231
+ },
232
+ ],
233
+ properties: [
234
+ {
235
+ name: 'title',
236
+ layout: {
237
+ positions: {
238
+ lg: {
239
+ colSpan: 6,
240
+ },
241
+ },
242
+ },
243
+ },
244
+ {
245
+ name: 'code',
246
+ layout: {
247
+ positions: {
248
+ lg: {
249
+ colSpan: 6,
250
+ },
251
+ },
252
+ },
253
+ },
254
+ ],
255
+ actions: [],
256
+ },
257
+ list: {
258
+ actions: [
259
+ {
260
+ title: 'Create New',
261
+ command: 'create-entity',
262
+ priority: 'primary',
263
+ type: 'create',
264
+ scope: AXPEntityCommandScope.TypeLevel,
265
+ },
266
+ {
267
+ title: 'Delete Items',
268
+ command: 'delete-entity',
269
+ priority: 'primary',
270
+ type: 'delete',
271
+ scope: AXPEntityCommandScope.Selected,
272
+ },
273
+ {
274
+ title: 'Details',
275
+ command: 'open-entity',
276
+ priority: 'secondary',
277
+ type: 'view',
278
+ scope: AXPEntityCommandScope.Individual,
279
+ },
280
+ {
281
+ title: 'Delete',
282
+ command: 'delete-entity',
283
+ priority: 'secondary',
284
+ type: 'delete',
285
+ scope: AXPEntityCommandScope.Individual,
286
+ },
287
+ ],
288
+ views: [
289
+ {
290
+ name: 'all',
291
+ title: 'All Items',
292
+ fixed: true,
293
+ columns: [],
294
+ conditions: [],
295
+ sorts: [],
296
+ },
297
+ ],
298
+ },
299
+ },
300
+ },
301
+ };
302
+ return entityDef;
303
+ }
304
+
305
+ var language_entity = /*#__PURE__*/Object.freeze({
306
+ __proto__: null,
307
+ languageEntityFactory: languageEntityFactory
308
+ });
309
+
310
+ const LANGUAGE_VARIANT_KEY = 'localization:language';
311
+ // ThemeStore - Manages theme settings and system changes
312
+ const AXPLocalizationStoreService = signalStore({ providedIn: 'root' },
313
+ // Initial State
314
+ withState((translationService = inject(AXTranslationService)) => {
315
+ const state = {
316
+ language: translationService.getDefaultLang(),
317
+ };
318
+ return state;
319
+ }),
320
+ // Computed Signals
321
+ // withComputed(({ }) => ({
322
+ // })),
323
+ // Methods for State Management
324
+ withMethods((store, settingService = inject(AXPSettingsService), translationService = inject(AXTranslationService)) => {
325
+ return {
326
+ changeLanguage(lang) {
327
+ settingService.set(LANGUAGE_VARIANT_KEY, lang);
328
+ translationService.setActiveLang(lang);
329
+ patchState(store, { language: lang });
330
+ },
331
+ async loadSetting() {
332
+ const lang = (await settingService.get(LANGUAGE_VARIANT_KEY)) ?? translationService.getDefaultLang();
333
+ settingService.set(LANGUAGE_VARIANT_KEY, lang);
334
+ translationService.setActiveLang(lang);
335
+ patchState(store, { language: lang });
336
+ },
337
+ };
338
+ }));
339
+
340
+ class AXMLanguageSlotComponent {
341
+ constructor() {
342
+ this.languageService = inject(AXMLanguageService);
343
+ this.store = inject(AXPLocalizationStoreService);
344
+ this.items = signal([]);
345
+ }
346
+ async ngOnInit() {
347
+ const items = (await this.languageService.query()).items.map(c => ({ code: c.code, title: c.title }));
348
+ this.items.set(items);
349
+ }
350
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
351
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button look=\"blank\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item [text]=\"lang.title\" [selected]=\"store.language()===lang.code\"\n (onClick)=\"store.changeLanguage(lang.code)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>", dependencies: [{ kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i3.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i3.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: CommonModule }] }); }
352
+ }
353
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLanguageSlotComponent, decorators: [{
354
+ type: Component,
355
+ args: [{ standalone: true, imports: [AXDropdownModule, AXDecoratorModule, AXPopoverModule, AXButtonModule, CommonModule], template: "<ax-button look=\"blank\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item [text]=\"lang.title\" [selected]=\"store.language()===lang.code\"\n (onClick)=\"store.changeLanguage(lang.code)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>" }]
356
+ }] });
357
+
358
+ class AXMLocalizationManagementModuleMenuProvider {
359
+ constructor() {
360
+ this.translateService = inject(AXTranslationService);
361
+ }
362
+ async items() {
363
+ const scope = 'localization-management'; // The scope used for translation lookup
364
+ return [
365
+ {
366
+ items: [
367
+ {
368
+ text: await this.translateService.translateAsync('localizationManagement', { scope }),
369
+ icon: 'fa-solid fa-globe-stand',
370
+ type: 'menu',
371
+ priority: 9100,
372
+ data: {
373
+ // requiredPermission: 'demo.admin.settings',
374
+ },
375
+ children: [
376
+ {
377
+ priority: 9001,
378
+ icon: 'fa-solid fa-language',
379
+ text: await this.translateService.translateAsync('languageDefinition', { scope }),
380
+ path: '/demo/m/localization-management/e/language/list',
381
+ },
382
+ {
383
+ priority: 9003,
384
+ icon: 'fa-solid fa-clock-one-thirty',
385
+ text: await this.translateService.translateAsync('Time Zone', { scope }),
386
+ path: '/demo/m/localization-management/e/time-zone/list',
387
+ },
388
+ {
389
+ priority: 9003,
390
+ icon: 'fa-solid fa-mountain-sun',
391
+ text: await this.translateService.translateAsync('Culture', { scope }),
392
+ path: '/demo/m/localization-management/e/culture/list',
393
+ },
394
+ ],
395
+ },
396
+ ],
397
+ },
398
+ ];
399
+ }
400
+ }
401
+
402
+ class AXMTimeZoneService extends AXMEntityCrudServiceImpl {
403
+ }
404
+ class AXMTimeZoneServiceImpl extends AXMEntityCrudServiceImpl {
405
+ constructor() {
406
+ super(TIMEZONE_SOURCE_NAME);
407
+ }
408
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTimeZoneServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
409
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTimeZoneServiceImpl }); }
410
+ }
411
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMTimeZoneServiceImpl, decorators: [{
412
+ type: Injectable
413
+ }], ctorParameters: () => [] });
414
+
415
+ async function timeZoneEntityFactory(injector) {
416
+ const dataService = injector.get(AXMTimeZoneService);
417
+ const entityDef = {
418
+ module: 'localization-management',
419
+ name: 'time-zone',
420
+ source: 'localizationManagement.timeZone',
421
+ title: 'Time Zone',
422
+ formats: {
423
+ individual: 'Time Zone',
424
+ plural: 'Time Zones',
425
+ },
426
+ relatedEntities: [],
427
+ groups: [
428
+ {
429
+ id: 'section',
430
+ title: 'Time Zone',
431
+ },
432
+ ],
433
+ properties: [
434
+ {
435
+ name: 'title',
436
+ title: 'Title',
437
+ groupId: 'section',
438
+ schema: {
439
+ dataType: 'string',
440
+ interface: {
441
+ type: AXPWidgetsCatalog.text,
442
+ },
443
+ },
444
+ validations: [
445
+ {
446
+ rule: 'required',
447
+ },
448
+ ],
449
+ },
450
+ {
451
+ name: 'name',
452
+ title: 'Name',
453
+ groupId: 'section',
454
+ schema: {
455
+ dataType: 'string',
456
+ interface: {
457
+ type: AXPWidgetsCatalog.text,
458
+ },
459
+ },
460
+ validations: [
461
+ {
462
+ rule: 'required',
463
+ },
464
+ ],
465
+ },
466
+ {
467
+ name: 'gmtOffset',
468
+ title: 'GMT Offset',
469
+ groupId: 'section',
470
+ schema: {
471
+ dataType: 'integer',
472
+ interface: {
473
+ type: AXPWidgetsCatalog.text,
474
+ },
475
+ },
476
+ validations: [
477
+ {
478
+ rule: 'required',
479
+ },
480
+ ],
481
+ },
482
+ {
483
+ name: 'gmtOffsetName',
484
+ title: 'GMT',
485
+ groupId: 'section',
486
+ schema: {
487
+ dataType: 'string',
488
+ interface: {
489
+ type: AXPWidgetsCatalog.text,
490
+ },
491
+ },
492
+ validations: [
493
+ {
494
+ rule: 'required',
495
+ },
496
+ ],
497
+ },
498
+ {
499
+ name: 'abbreviation',
500
+ title: 'Abbreviation',
501
+ groupId: 'section',
502
+ schema: {
503
+ dataType: 'string',
504
+ interface: {
505
+ type: AXPWidgetsCatalog.text,
506
+ },
507
+ },
508
+ validations: [
509
+ {
510
+ rule: 'required',
511
+ },
512
+ ],
513
+ },
514
+ {
515
+ name: 'tzName',
516
+ title: 'TZ',
517
+ groupId: 'section',
518
+ schema: {
519
+ dataType: 'string',
520
+ interface: {
521
+ type: AXPWidgetsCatalog.text,
522
+ },
523
+ },
524
+ validations: [
525
+ {
526
+ rule: 'required',
527
+ },
528
+ ],
529
+ },
530
+ ],
531
+ columns: [{ name: 'title' }, { name: 'gmtOffsetName' }, { name: 'abbreviation' }, { name: 'tzName' }],
532
+ commands: {
533
+ create: {
534
+ execute: async (data) => {
535
+ return Promise.resolve({});
536
+ },
537
+ },
538
+ delete: {
539
+ execute: async (id) => {
540
+ return Promise.resolve();
541
+ },
542
+ },
543
+ update: {
544
+ execute: async (data) => {
545
+ return Promise.resolve();
546
+ },
547
+ },
548
+ },
549
+ queries: {
550
+ byKey: {
551
+ execute: async (id) => {
552
+ return new Promise((resolve) => {
553
+ setTimeout(async () => {
554
+ const entity = await dataService.getOne(id);
555
+ resolve(entity);
556
+ }, 500);
557
+ });
558
+ },
559
+ type: AXPEntityQueryType.Single,
560
+ },
561
+ list: {
562
+ execute: async (e) => {
563
+ return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
564
+ },
565
+ type: AXPEntityQueryType.List,
566
+ },
567
+ },
568
+ interfaces: {
569
+ master: {
570
+ single: {
571
+ title: '{{title}}',
572
+ sections: [
573
+ {
574
+ id: 'section',
575
+ },
576
+ ],
577
+ properties: [
578
+ {
579
+ name: 'name',
580
+ layout: {
581
+ positions: {
582
+ lg: {
583
+ colSpan: 6,
584
+ },
585
+ },
586
+ },
587
+ },
588
+ {
589
+ name: 'title',
590
+ layout: {
591
+ positions: {
592
+ lg: {
593
+ colSpan: 6,
594
+ },
595
+ },
596
+ },
597
+ },
598
+ {
599
+ name: 'gmtOffset',
600
+ layout: {
601
+ positions: {
602
+ lg: {
603
+ colSpan: 6,
604
+ },
605
+ },
606
+ },
607
+ },
608
+ {
609
+ name: 'gmtOffsetName',
610
+ layout: {
611
+ positions: {
612
+ lg: {
613
+ colSpan: 6,
614
+ },
615
+ },
616
+ },
617
+ },
618
+ {
619
+ name: 'abbreviation',
620
+ layout: {
621
+ positions: {
622
+ lg: {
623
+ colSpan: 6,
624
+ },
625
+ },
626
+ },
627
+ },
628
+ {
629
+ name: 'tzName',
630
+ layout: {
631
+ positions: {
632
+ lg: {
633
+ colSpan: 6,
634
+ },
635
+ },
636
+ },
637
+ },
638
+ ],
639
+ actions: [],
640
+ },
641
+ list: {
642
+ actions: [
643
+ {
644
+ title: 'Details',
645
+ command: 'open-entity',
646
+ priority: 'secondary',
647
+ type: 'view',
648
+ scope: AXPEntityCommandScope.Individual,
649
+ },
650
+ ],
651
+ views: [
652
+ {
653
+ name: 'all',
654
+ title: 'All Items',
655
+ fixed: true,
656
+ columns: [],
657
+ conditions: [],
658
+ sorts: [],
659
+ },
660
+ ],
661
+ },
662
+ },
663
+ },
664
+ };
665
+ return entityDef;
666
+ }
667
+
668
+ var timeZone_entity = /*#__PURE__*/Object.freeze({
669
+ __proto__: null,
670
+ timeZoneEntityFactory: timeZoneEntityFactory
671
+ });
672
+
673
+ class AXMCultureService extends AXMEntityCrudServiceImpl {
674
+ }
675
+ class AXMCultureServiceImpl extends AXMEntityCrudServiceImpl {
676
+ constructor() {
677
+ super(CULTURE_SOURCE_NAME);
678
+ }
679
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCultureServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
680
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCultureServiceImpl }); }
681
+ }
682
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMCultureServiceImpl, decorators: [{
683
+ type: Injectable
684
+ }], ctorParameters: () => [] });
685
+
686
+ async function cultureEntityFactory(injector) {
687
+ const dataService = injector.get(AXMCultureService);
688
+ const entityDef = {
689
+ module: 'localization-management',
690
+ name: 'culture',
691
+ source: 'localizationManagement.culture',
692
+ title: 'Culture',
693
+ formats: {
694
+ individual: 'Culture',
695
+ plural: 'Cultures',
696
+ },
697
+ relatedEntities: [],
698
+ groups: [
699
+ {
700
+ id: 'culture',
701
+ title: 'Culture',
702
+ },
703
+ ],
704
+ properties: [
705
+ {
706
+ name: 'title',
707
+ title: 'Title',
708
+ groupId: 'language',
709
+ schema: {
710
+ dataType: 'string',
711
+ interface: {
712
+ type: AXPWidgetsCatalog.text,
713
+ },
714
+ },
715
+ validations: [
716
+ {
717
+ rule: 'required',
718
+ },
719
+ ],
720
+ },
721
+ {
722
+ name: 'code',
723
+ title: 'Code',
724
+ groupId: 'language',
725
+ schema: {
726
+ dataType: 'string',
727
+ interface: {
728
+ type: AXPWidgetsCatalog.text,
729
+ },
730
+ },
731
+ validations: [
732
+ {
733
+ rule: 'required',
734
+ },
735
+ ],
736
+ },
737
+ ],
738
+ columns: [{ name: 'title' }, { name: 'code' }],
739
+ commands: {
740
+ create: {
741
+ execute: async (data) => {
742
+ const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
743
+ dataService.insertOne(entity);
744
+ return Promise.resolve(entity);
745
+ },
746
+ },
747
+ delete: {
748
+ execute: async (id) => {
749
+ await await dataService.deleteOne(id);
750
+ return Promise.resolve();
751
+ },
752
+ },
753
+ update: {
754
+ execute: async (data) => {
755
+ return new Promise((resolve) => {
756
+ setTimeout(async () => {
757
+ await dataService.updateOne(data.id, data);
758
+ resolve(data);
759
+ }, 1000);
760
+ });
761
+ },
762
+ },
763
+ },
764
+ queries: {
765
+ byKey: {
766
+ execute: async (id) => {
767
+ return new Promise((resolve) => {
768
+ setTimeout(async () => {
769
+ const entity = await dataService.getOne(id);
770
+ resolve(entity);
771
+ }, 500);
772
+ });
773
+ },
774
+ type: AXPEntityQueryType.Single,
775
+ },
776
+ list: {
777
+ execute: async (e) => {
778
+ return dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
779
+ },
780
+ type: AXPEntityQueryType.List,
781
+ },
782
+ },
783
+ interfaces: {
784
+ master: {
785
+ create: {
786
+ sections: [
787
+ {
788
+ id: 'language',
789
+ },
790
+ ],
791
+ properties: [
792
+ {
793
+ name: 'title',
794
+ layout: {
795
+ positions: {
796
+ lg: {
797
+ colSpan: 6,
798
+ },
799
+ },
800
+ },
801
+ },
802
+ {
803
+ name: 'code',
804
+ layout: {
805
+ positions: {
806
+ lg: {
807
+ colSpan: 6,
808
+ },
809
+ },
810
+ },
811
+ },
812
+ ],
813
+ },
814
+ update: {
815
+ sections: [
816
+ {
817
+ id: 'language',
818
+ },
819
+ ],
820
+ properties: [
821
+ {
822
+ name: 'title',
823
+ layout: {
824
+ positions: {
825
+ lg: {
826
+ colSpan: 6,
827
+ },
828
+ },
829
+ },
830
+ },
831
+ {
832
+ name: 'code',
833
+ layout: {
834
+ positions: {
835
+ lg: {
836
+ colSpan: 6,
837
+ },
838
+ },
839
+ },
840
+ },
841
+ ],
842
+ },
843
+ single: {
844
+ title: '{{title}}',
845
+ sections: [
846
+ {
847
+ id: 'language',
848
+ },
849
+ ],
850
+ properties: [
851
+ {
852
+ name: 'title',
853
+ layout: {
854
+ positions: {
855
+ lg: {
856
+ colSpan: 6,
857
+ },
858
+ },
859
+ },
860
+ },
861
+ {
862
+ name: 'code',
863
+ layout: {
864
+ positions: {
865
+ lg: {
866
+ colSpan: 6,
867
+ },
868
+ },
869
+ },
870
+ },
871
+ ],
872
+ actions: [],
873
+ },
874
+ list: {
875
+ actions: [
876
+ {
877
+ title: 'Create New',
878
+ command: 'create-entity',
879
+ priority: 'primary',
880
+ type: 'create',
881
+ scope: AXPEntityCommandScope.TypeLevel,
882
+ },
883
+ {
884
+ title: 'Delete Items',
885
+ command: 'delete-entity',
886
+ priority: 'primary',
887
+ type: 'delete',
888
+ scope: AXPEntityCommandScope.Selected,
889
+ },
890
+ {
891
+ title: 'Details',
892
+ command: 'open-entity',
893
+ priority: 'secondary',
894
+ type: 'view',
895
+ scope: AXPEntityCommandScope.Individual,
896
+ },
897
+ {
898
+ title: 'Delete',
899
+ command: 'delete-entity',
900
+ priority: 'secondary',
901
+ type: 'delete',
902
+ scope: AXPEntityCommandScope.Individual,
903
+ },
904
+ ],
905
+ views: [
906
+ {
907
+ name: 'all',
908
+ title: 'All Items',
909
+ fixed: true,
910
+ columns: [],
911
+ conditions: [],
912
+ sorts: [],
913
+ },
914
+ ],
915
+ },
916
+ },
917
+ },
918
+ };
919
+ return entityDef;
920
+ }
921
+
922
+ var culture_entity = /*#__PURE__*/Object.freeze({
923
+ __proto__: null,
924
+ cultureEntityFactory: cultureEntityFactory
925
+ });
926
+
927
+ class AXMLocalizationManagementModule {
928
+ constructor(appInitService, injector) {
929
+ const service = injector.get(AXPLocalizationStoreService);
930
+ appInitService.registerTask({
931
+ name: 'Settings',
932
+ statusText: 'Loading Settings ...',
933
+ run: async () => {
934
+ await service.loadSetting();
935
+ }
936
+ });
937
+ }
938
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLocalizationManagementModule, deps: [{ token: i1$1.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
939
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMLocalizationManagementModule, imports: [i1$1.AXPComponentSlotModule] }); }
940
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLocalizationManagementModule, providers: [
941
+ {
942
+ provide: AXP_MENU_PROVIDER,
943
+ useClass: AXMLocalizationManagementModuleMenuProvider,
944
+ multi: true
945
+ },
946
+ {
947
+ provide: AXP_ENTITY_DEFINITION_LOADER,
948
+ useClass: AXMLocalizationManagementModuleEntityLoader,
949
+ multi: true
950
+ },
951
+ {
952
+ provide: AXMLanguageService,
953
+ useClass: AXMLanguageServiceImpl
954
+ },
955
+ {
956
+ provide: AXMTimeZoneService,
957
+ useClass: AXMTimeZoneServiceImpl
958
+ },
959
+ {
960
+ provide: AXMCultureService,
961
+ useClass: AXMCultureServiceImpl
962
+ }
963
+ ], imports: [AXPComponentSlotModule.forChild({
964
+ 'header-end': [
965
+ {
966
+ name: 'language',
967
+ component: AXMLanguageSlotComponent
968
+ }
969
+ ]
970
+ })] }); }
971
+ }
972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMLocalizationManagementModule, decorators: [{
973
+ type: NgModule,
974
+ args: [{
975
+ imports: [
976
+ AXPComponentSlotModule.forChild({
977
+ 'header-end': [
978
+ {
979
+ name: 'language',
980
+ component: AXMLanguageSlotComponent
981
+ }
982
+ ]
983
+ })
984
+ ],
985
+ exports: [],
986
+ declarations: [],
987
+ providers: [
988
+ {
989
+ provide: AXP_MENU_PROVIDER,
990
+ useClass: AXMLocalizationManagementModuleMenuProvider,
991
+ multi: true
992
+ },
993
+ {
994
+ provide: AXP_ENTITY_DEFINITION_LOADER,
995
+ useClass: AXMLocalizationManagementModuleEntityLoader,
996
+ multi: true
997
+ },
998
+ {
999
+ provide: AXMLanguageService,
1000
+ useClass: AXMLanguageServiceImpl
1001
+ },
1002
+ {
1003
+ provide: AXMTimeZoneService,
1004
+ useClass: AXMTimeZoneServiceImpl
1005
+ },
1006
+ {
1007
+ provide: AXMCultureService,
1008
+ useClass: AXMCultureServiceImpl
1009
+ }
1010
+ ]
1011
+ }]
1012
+ }], ctorParameters: () => [{ type: i1$1.AXPAppStartUpService }, { type: i0.Injector }] });
1013
+
1014
+ /**
1015
+ * Generated bundle index. Do not edit.
1016
+ */
1017
+
1018
+ export { AXMCultureService, AXMCultureServiceImpl, AXMLanguageService, AXMLanguageServiceImpl, AXMLocalizationManagementModule, AXMLocalizationManagementModuleEntityLoader, AXMLocalizationManagementModuleMenuProvider, AXMTimeZoneService, AXMTimeZoneServiceImpl, CULTURE_SOURCE_NAME, LANGUAGE_SOURCE_NAME, TIMEZONE_SOURCE_NAME, cultureEntityFactory, languageEntityFactory, timeZoneEntityFactory };
1019
+ //# sourceMappingURL=acorex-modules-localization-management.mjs.map