@acorex/modules 18.2.0 → 18.2.2

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