@acorex/modules 19.2.20 → 19.3.0-next.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 (218) hide show
  1. package/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.d.ts +2 -2
  2. package/auth/lib/setting.provider.d.ts +4 -0
  3. package/common/index.d.ts +1 -0
  4. package/common/lib/entities/dashboard/dashboard.types.d.ts +1 -1
  5. package/common/lib/features/{dashboard-home/dashboard-home.d.ts → home-dashboard/dashboard-home/home-dashboard.d.ts} +72 -52
  6. package/common/lib/features/{dashboard-home/dashboard-home.store.d.ts → home-dashboard/dashboard-home/home-dashboard.store.d.ts} +9 -4
  7. package/common/lib/features/home-dashboard/dashboard-home/index.d.ts +3 -0
  8. package/common/lib/features/{dashboard-popups → home-dashboard/dashboard-popups}/add-dashboard-popup.d.ts +7 -5
  9. package/common/lib/features/home-dashboard/dashboard-popups/configuration-popup.d.ts +14 -0
  10. package/common/lib/features/{dashboard-popups → home-dashboard/dashboard-popups}/dashboard-popup.service.d.ts +5 -4
  11. package/common/lib/features/home-dashboard/setrting.keys.d.ts +3 -0
  12. package/common/lib/features/{widget-wrapper → home-dashboard/widget-wrapper}/dashboard-widget-wrapper.d.ts +2 -1
  13. package/common/lib/menu.provider.d.ts +1 -1
  14. package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +1 -1
  15. package/conversation/lib/entities/comments/comments.service.d.ts +4 -4
  16. package/conversation/lib/entities/comments/comments.type.d.ts +1 -1
  17. package/document-management/lib/badge.provider.d.ts +11 -0
  18. package/document-management/lib/entities/document/document.service.d.ts +1 -1
  19. package/document-management/lib/entities/document/document.types.d.ts +2 -0
  20. package/document-management/lib/entities/document-type/document-type.service.d.ts +3 -3
  21. package/document-management/lib/entities/folder/folder.service.d.ts +2 -7
  22. package/document-management/lib/entities/folder/folder.types.d.ts +2 -1
  23. package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +9 -0
  24. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +20 -8
  25. package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +10 -6
  26. package/document-management/lib/features/document-explorer/views/detail-panel/detail-panel.component.d.ts +40 -36
  27. package/document-management/lib/features/document-explorer/views/details/details-view.component.d.ts +40 -36
  28. package/document-management/lib/features/document-explorer/views/large-icons/large-icons-view.component.d.ts +40 -36
  29. package/document-management/lib/features/document-explorer/views/large-tiles/large-tiles-view.component.d.ts +40 -36
  30. package/document-management/lib/features/document-explorer/views/list/list-view.component.d.ts +40 -36
  31. package/document-management/lib/features/document-explorer/views/small-icons/small-icons-view.component.d.ts +40 -36
  32. package/document-management/lib/features/document-explorer/views/small-tiles/small-tiles-view.component.d.ts +40 -36
  33. package/document-management/lib/features/drive/drive.component.d.ts +15 -9
  34. package/document-management/lib/features/drive/index.d.ts +3 -0
  35. package/document-management/lib/features/drive-choose/drive-choose.component.d.ts +16 -8
  36. package/document-management/lib/features/shared/components/document-type-choose-file/document-type-choose-file.component.d.ts +16 -0
  37. package/document-management/lib/features/shared/components/file-viewer-popup/file-viewer-popup.component.d.ts +5 -1
  38. package/document-management/lib/features/shared/components/folder-path-breadcrumbs/folder-path-breadcrumbs.component.d.ts +10 -6
  39. package/document-management/lib/features/shared/components/index.d.ts +1 -0
  40. package/document-management/lib/features/shared/components/link-dialog/link-dialog.component.d.ts +24 -0
  41. package/document-management/lib/features/shared/components/lock-dialog/lock-dialog.component.d.ts +16 -0
  42. package/document-management/lib/features/shared/components/share-dialog/share-dialog.component.d.ts +22 -0
  43. package/document-management/lib/features/shared/components/share-email-dialog/share-email-dialog.component.d.ts +17 -0
  44. package/document-management/lib/features/shared/components/unlock-dialog/unlock-dialog.component.d.ts +10 -0
  45. package/document-management/lib/features/shared/document-manager.service.d.ts +45 -22
  46. package/document-management/lib/features/shared/document-manager.types.d.ts +5 -7
  47. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-column.component.d.ts +1 -1
  48. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +66 -44
  49. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-print.component.d.ts +1 -1
  50. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-view.component.d.ts +1 -1
  51. package/document-management/lib/features/widgets/document-attachment/index.d.ts +0 -1
  52. package/fesm2022/acorex-modules-application-management.mjs +0 -1
  53. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  54. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DrcL7GCj.mjs → acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs} +15 -19
  55. package/fesm2022/acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs.map +1 -0
  56. package/fesm2022/{acorex-modules-auth-app-chooser.component-CbJb1P_k.mjs → acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs} +2 -2
  57. package/fesm2022/{acorex-modules-auth-app-chooser.component-CbJb1P_k.mjs.map → acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs.map} +1 -1
  58. package/fesm2022/{acorex-modules-auth-login.module-DFCB1l7W.mjs → acorex-modules-auth-login.module-B_WrZQJx.mjs} +4 -4
  59. package/fesm2022/{acorex-modules-auth-login.module-DFCB1l7W.mjs.map → acorex-modules-auth-login.module-B_WrZQJx.mjs.map} +1 -1
  60. package/fesm2022/{acorex-modules-auth-master.layout-CuKXvY0o.mjs → acorex-modules-auth-master.layout-hDbrFbwO.mjs} +2 -2
  61. package/fesm2022/{acorex-modules-auth-master.layout-CuKXvY0o.mjs.map → acorex-modules-auth-master.layout-hDbrFbwO.mjs.map} +1 -1
  62. package/fesm2022/{acorex-modules-auth-password.component-DacOjakT.mjs → acorex-modules-auth-password.component-BnT_IaqN.mjs} +2 -2
  63. package/fesm2022/{acorex-modules-auth-password.component-DacOjakT.mjs.map → acorex-modules-auth-password.component-BnT_IaqN.mjs.map} +1 -1
  64. package/fesm2022/{acorex-modules-auth-password.component-5gwz30CZ.mjs → acorex-modules-auth-password.component-DDE0M5GE.mjs} +2 -2
  65. package/fesm2022/{acorex-modules-auth-password.component-5gwz30CZ.mjs.map → acorex-modules-auth-password.component-DDE0M5GE.mjs.map} +1 -1
  66. package/fesm2022/{acorex-modules-auth-routes-D018Lg-b.mjs → acorex-modules-auth-routes-Da02kID6.mjs} +2 -2
  67. package/fesm2022/{acorex-modules-auth-routes-D018Lg-b.mjs.map → acorex-modules-auth-routes-Da02kID6.mjs.map} +1 -1
  68. package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs +271 -0
  69. package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs.map +1 -0
  70. package/fesm2022/{acorex-modules-auth-two-factor.module-DiEB7VWl.mjs → acorex-modules-auth-two-factor.module-BrDpX4X1.mjs} +2 -2
  71. package/fesm2022/{acorex-modules-auth-two-factor.module-DiEB7VWl.mjs.map → acorex-modules-auth-two-factor.module-BrDpX4X1.mjs.map} +1 -1
  72. package/fesm2022/acorex-modules-auth.mjs +1 -1
  73. package/fesm2022/acorex-modules-common-index-rvP9ISgL.mjs +717 -0
  74. package/fesm2022/acorex-modules-common-index-rvP9ISgL.mjs.map +1 -0
  75. package/fesm2022/acorex-modules-common.mjs +34 -24
  76. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  77. package/fesm2022/acorex-modules-conversation.mjs +4 -2
  78. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  79. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-_BOVaDOq.mjs → acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs} +1054 -266
  80. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs.map +1 -0
  81. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs +135 -0
  82. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs.map +1 -0
  83. package/fesm2022/{acorex-modules-document-management-details-view.component-BHcu_gYH.mjs → acorex-modules-document-management-details-view.component-BFMgAxeK.mjs} +2 -2
  84. package/fesm2022/{acorex-modules-document-management-details-view.component-BHcu_gYH.mjs.map → acorex-modules-document-management-details-view.component-BFMgAxeK.mjs.map} +1 -1
  85. package/fesm2022/{acorex-modules-document-management-drive-choose.component-WoZfDyLK.mjs → acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs} +22 -16
  86. package/fesm2022/acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs.map +1 -0
  87. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DvriE0YR.mjs → acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs} +2 -2
  88. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DvriE0YR.mjs.map → acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs.map} +1 -1
  89. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-ByWrKvZe.mjs → acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs} +2 -2
  90. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-ByWrKvZe.mjs.map → acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs.map} +1 -1
  91. package/fesm2022/acorex-modules-document-management-link-dialog.component-1iPUnhr1.mjs +70 -0
  92. package/fesm2022/acorex-modules-document-management-link-dialog.component-1iPUnhr1.mjs.map +1 -0
  93. package/fesm2022/{acorex-modules-document-management-list-view.component-B6J6Tokv.mjs → acorex-modules-document-management-list-view.component-BPkaAGjR.mjs} +2 -2
  94. package/fesm2022/{acorex-modules-document-management-list-view.component-B6J6Tokv.mjs.map → acorex-modules-document-management-list-view.component-BPkaAGjR.mjs.map} +1 -1
  95. package/fesm2022/acorex-modules-document-management-lock-dialog.component-BwKdUUcf.mjs +52 -0
  96. package/fesm2022/acorex-modules-document-management-lock-dialog.component-BwKdUUcf.mjs.map +1 -0
  97. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-Dae6RWb8.mjs → acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs} +10 -10
  98. package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs.map +1 -0
  99. package/fesm2022/acorex-modules-document-management-share-dialog.component-BiNdRpqs.mjs +143 -0
  100. package/fesm2022/acorex-modules-document-management-share-dialog.component-BiNdRpqs.mjs.map +1 -0
  101. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-BvR5OuCV.mjs +55 -0
  102. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-BvR5OuCV.mjs.map +1 -0
  103. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-TrYeB22e.mjs → acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs} +2 -2
  104. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-TrYeB22e.mjs.map → acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs.map} +1 -1
  105. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DDKdWg8I.mjs → acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs} +2 -2
  106. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DDKdWg8I.mjs.map → acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs.map} +1 -1
  107. package/fesm2022/acorex-modules-document-management-unlock-dialog.component-DkZQ84kg.mjs +37 -0
  108. package/fesm2022/acorex-modules-document-management-unlock-dialog.component-DkZQ84kg.mjs.map +1 -0
  109. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  110. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs} +30 -24
  111. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs.map +1 -0
  112. package/fesm2022/{acorex-modules-form-template-management-category.entity-BdiYytzK.mjs → acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs} +7 -3
  113. package/fesm2022/acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs.map +1 -0
  114. package/fesm2022/{acorex-modules-form-template-management-setting.provider-CoETMkEC.mjs → acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs} +20 -17
  115. package/fesm2022/acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs.map +1 -0
  116. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-0JfGxdMv.mjs → acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs} +5 -4
  117. package/fesm2022/acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs.map +1 -0
  118. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkJ3ieIg.mjs → acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs} +2 -2
  119. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkJ3ieIg.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs.map} +1 -1
  120. package/fesm2022/{acorex-modules-form-template-management-template.entity-ByE2p0Mu.mjs → acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs} +53 -33
  121. package/fesm2022/acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs.map +1 -0
  122. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CThcXWpt.mjs → acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs} +2 -2
  123. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CThcXWpt.mjs.map → acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs.map} +1 -1
  124. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  125. package/fesm2022/acorex-modules-notification-management.mjs +43 -35
  126. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  127. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-JKQwYEPq.mjs → acorex-modules-organization-management-org-chart-configuration.page-BFu7TUGC.mjs} +3 -3
  128. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-JKQwYEPq.mjs.map → acorex-modules-organization-management-org-chart-configuration.page-BFu7TUGC.mjs.map} +1 -1
  129. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-QLdDEdqL.mjs → acorex-modules-organization-management-org-chart-configuration.service-B4ohp4o5.mjs} +5 -4
  130. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-B4ohp4o5.mjs.map +1 -0
  131. package/fesm2022/{acorex-modules-organization-management-org-chart.page-C2ZtUVKI.mjs → acorex-modules-organization-management-org-chart.page-BIytyLYP.mjs} +3 -4
  132. package/fesm2022/acorex-modules-organization-management-org-chart.page-BIytyLYP.mjs.map +1 -0
  133. package/fesm2022/{acorex-modules-organization-management-setting.provider-CMDpwkG2.mjs → acorex-modules-organization-management-setting.provider-BPjFNA5E.mjs} +44 -23
  134. package/fesm2022/acorex-modules-organization-management-setting.provider-BPjFNA5E.mjs.map +1 -0
  135. package/fesm2022/acorex-modules-organization-management.mjs +6 -6
  136. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  137. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs +4746 -0
  138. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs.map +1 -0
  139. package/fesm2022/{acorex-modules-platform-management-list-version.component-C9764yzu.mjs → acorex-modules-platform-management-list-version.component-EHtlPye1.mjs} +2 -2
  140. package/fesm2022/acorex-modules-platform-management-list-version.component-EHtlPye1.mjs.map +1 -0
  141. package/fesm2022/acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs +335 -0
  142. package/fesm2022/acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs.map +1 -0
  143. package/fesm2022/acorex-modules-platform-management.mjs +1 -4866
  144. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  145. package/fesm2022/acorex-modules-security-management.mjs +18 -12
  146. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  147. package/form-template-management/lib/entities/category/category.service.d.ts +2 -2
  148. package/form-template-management/lib/entities/category/category.types.d.ts +2 -1
  149. package/form-template-management/lib/entities/template/template.service.d.ts +2 -2
  150. package/form-template-management/lib/entities/template/template.types.d.ts +38 -5
  151. package/form-template-management/lib/features/designer/template.provider.d.ts +1 -1
  152. package/form-template-management/lib/features/designer/widgets/template-picker/template.provider.d.ts +3 -3
  153. package/form-template-management/lib/setting.provider.d.ts +4 -0
  154. package/notification-management/lib/{components → features/components}/admin-notification-item/admin-notification-item.component.d.ts +1 -1
  155. package/notification-management/lib/{components → features/components}/admin-notification-panel/admin-notification-panel.component.d.ts +1 -1
  156. package/notification-management/lib/setting.provider.d.ts +4 -0
  157. package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +2 -2
  158. package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +2 -2
  159. package/organization-management/lib/setting.provider.d.ts +5 -3
  160. package/package.json +1 -1
  161. package/platform-management/index.d.ts +1 -1
  162. package/platform-management/lib/entities/app-term/index.d.ts +2 -2
  163. package/platform-management/lib/entities/app-version/index.d.ts +2 -2
  164. package/platform-management/lib/entities/index.d.ts +0 -1
  165. package/platform-management/lib/entities/promotion/index.d.ts +1 -1
  166. package/platform-management/lib/features/app-terms/check-terms.service.d.ts +11 -0
  167. package/platform-management/lib/{entities/app-term → features/app-terms}/components/notify-app/notify-app.component.d.ts +1 -1
  168. package/platform-management/lib/{entities/app-term → features/app-terms}/pages/list/list-terms.component.d.ts +2 -2
  169. package/platform-management/lib/{entities/check-version.d.ts → features/app-version/check-version.service.d.ts} +3 -4
  170. package/platform-management/lib/{entities → features}/app-version/components/list-versions/list-version.component.d.ts +1 -1
  171. package/platform-management/lib/{entities → features}/app-version/components/notify-app/notify-app.component.d.ts +1 -1
  172. package/platform-management/lib/{common → features/common}/index.d.ts +1 -1
  173. package/platform-management/lib/{common → features/common}/regional/setting.keys.d.ts +3 -1
  174. package/platform-management/lib/{common → features/common}/regional/setting.provider.d.ts +4 -1
  175. package/platform-management/lib/{entities → features}/promotion/components/promotion-slot/promotion-slot.component.d.ts +2 -2
  176. package/platform-management/lib/platform-management.module.d.ts +4 -3
  177. package/security-management/lib/entities/users/users.service.d.ts +4 -4
  178. package/security-management/lib/entities/users/users.types.d.ts +0 -4
  179. package/common/lib/features/dashboard-home/index.d.ts +0 -1
  180. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-filter.component.d.ts +0 -6
  181. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DrcL7GCj.mjs.map +0 -1
  182. package/fesm2022/acorex-modules-auth-setting.provider-DDl3OHw6.mjs +0 -59
  183. package/fesm2022/acorex-modules-auth-setting.provider-DDl3OHw6.mjs.map +0 -1
  184. package/fesm2022/acorex-modules-common-index-D90SN6SH.mjs +0 -507
  185. package/fesm2022/acorex-modules-common-index-D90SN6SH.mjs.map +0 -1
  186. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-_BOVaDOq.mjs.map +0 -1
  187. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D66KoQNb.mjs +0 -92
  188. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D66KoQNb.mjs.map +0 -1
  189. package/fesm2022/acorex-modules-document-management-drive-choose.component-WoZfDyLK.mjs.map +0 -1
  190. package/fesm2022/acorex-modules-document-management-drive.component-B3BCzdVv.mjs +0 -305
  191. package/fesm2022/acorex-modules-document-management-drive.component-B3BCzdVv.mjs.map +0 -1
  192. package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-Dae6RWb8.mjs.map +0 -1
  193. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs.map +0 -1
  194. package/fesm2022/acorex-modules-form-template-management-category.entity-BdiYytzK.mjs.map +0 -1
  195. package/fesm2022/acorex-modules-form-template-management-setting.provider-CoETMkEC.mjs.map +0 -1
  196. package/fesm2022/acorex-modules-form-template-management-template-picker.component-0JfGxdMv.mjs.map +0 -1
  197. package/fesm2022/acorex-modules-form-template-management-template.entity-ByE2p0Mu.mjs.map +0 -1
  198. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-QLdDEdqL.mjs.map +0 -1
  199. package/fesm2022/acorex-modules-organization-management-org-chart.page-C2ZtUVKI.mjs.map +0 -1
  200. package/fesm2022/acorex-modules-organization-management-setting.provider-CMDpwkG2.mjs.map +0 -1
  201. package/fesm2022/acorex-modules-platform-management-list-version.component-C9764yzu.mjs.map +0 -1
  202. /package/common/lib/features/{dashboard-home/dashboard.type.d.ts → home-dashboard/dashboard-home/home-dashboard.type.d.ts} +0 -0
  203. /package/notification-management/lib/{components → features/components}/admin-notification-slot/admin-notification-slot.component.d.ts +0 -0
  204. /package/platform-management/lib/{entities/app-term → features/app-terms}/pages/index.d.ts +0 -0
  205. /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/index.d.ts +0 -0
  206. /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/notify-new-term.workflow.d.ts +0 -0
  207. /package/platform-management/lib/{entities → features}/app-version/components/index.d.ts +0 -0
  208. /package/platform-management/lib/{entities → features}/app-version/components/slots/app-version-slot.component.d.ts +0 -0
  209. /package/platform-management/lib/{entities → features}/app-version/workflows/change-log.workflow.d.ts +0 -0
  210. /package/platform-management/lib/{entities → features}/app-version/workflows/index.d.ts +0 -0
  211. /package/platform-management/lib/{entities → features}/app-version/workflows/show-release-notes.workflow.d.ts +0 -0
  212. /package/platform-management/lib/{common → features/common}/common.module.d.ts +0 -0
  213. /package/platform-management/lib/{common → features/common}/entity.provider.d.ts +0 -0
  214. /package/platform-management/lib/{common → features/common}/regional/data-source.provider.d.ts +0 -0
  215. /package/platform-management/lib/{common → features/common}/regional/index.d.ts +0 -0
  216. /package/platform-management/lib/{common → features/common}/regional/language-slot/language-slot.component.d.ts +0 -0
  217. /package/platform-management/lib/{common → features/common}/regional/regional-store.service.d.ts +0 -0
  218. /package/platform-management/lib/{entities → features}/promotion/components/index.d.ts +0 -0
@@ -0,0 +1,4746 @@
1
+ import * as i1$1 from '@acorex/platform/common';
2
+ import { AXPSettingService, AXPRegionalService, AXPComponentSlotModule, AXP_SETTING_DEFINITION_PROVIDER, createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXP_APP_VERSION_PROVIDER, createQueryView, AXPFileStorageService, AXPAppStartUpService, AXP_MENU_PROVIDER } from '@acorex/platform/common';
3
+ import { AXP_ENTITY_DEFINITION_LOADER, AXMEntityCrudServiceImpl, AXPEntityDefinitionRegistryService, AXPEntityResolver, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN } from '@acorex/platform/layout/entity';
4
+ import * as i3$2 from '@acorex/platform/workflow';
5
+ import { AXPWorkflowAction, AXPWorkflowService, AXPWorkflowModule } from '@acorex/platform/workflow';
6
+ import * as i0 from '@angular/core';
7
+ import { inject, Injector, Injectable, signal, Component, NgModule, HostListener, Input } from '@angular/core';
8
+ import { ROUTES } from '@angular/router';
9
+ import * as i6 from '@acorex/core/translation';
10
+ import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
11
+ import { AXPPlatformScope, applyQueryArray, AXPHtmlUtils } from '@acorex/platform/core';
12
+ import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
13
+ import * as i3 from '@acorex/components/button';
14
+ import { AXButtonModule } from '@acorex/components/button';
15
+ import * as i2 from '@acorex/components/decorators';
16
+ import { AXDecoratorModule } from '@acorex/components/decorators';
17
+ import * as i1 from '@acorex/components/dropdown';
18
+ import { AXDropdownModule } from '@acorex/components/dropdown';
19
+ import { AXPopoverModule } from '@acorex/components/popover';
20
+ import * as i1$2 from '@angular/common';
21
+ import { CommonModule } from '@angular/common';
22
+ import { AXP_WIDGET_DATASOURCE_PROVIDER, AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
23
+ import { AXDataSource, convertArrayToDataSource } from '@acorex/components/common';
24
+ import * as i5 from '@acorex/cdk/outline';
25
+ import { AXOutlineModule } from '@acorex/cdk/outline';
26
+ import { AXBasePageComponent } from '@acorex/components/page';
27
+ import * as i4 from '@acorex/components/side-menu';
28
+ import { AXSideMenuModule } from '@acorex/components/side-menu';
29
+ import * as i2$1 from '@acorex/core/format';
30
+ import { AXFormatModule } from '@acorex/core/format';
31
+ import { AXPSimplePageLayout } from '@acorex/platform/themes/default';
32
+ import { AXPThemeLayoutPageHeaderComponent, AXPThemeLayoutBlockComponent } from '@acorex/platform/themes/shared';
33
+ import { AXPopupService } from '@acorex/components/popup';
34
+ import * as i3$1 from '@acorex/components/check-box';
35
+ import { AXCheckBoxModule } from '@acorex/components/check-box';
36
+ import * as i2$2 from '@acorex/components/label';
37
+ import { AXLabelModule } from '@acorex/components/label';
38
+ import { AXSafePipe } from '@acorex/core/pipes';
39
+ import { upperFirst, camelCase } from 'lodash-es';
40
+ import get from 'lodash-es/get';
41
+ import { AXPSessionService } from '@acorex/platform/auth';
42
+ import { firstValueFrom } from 'rxjs';
43
+
44
+ class AXMCommonModuleEntityProvider {
45
+ constructor() {
46
+ this.injector = inject(Injector);
47
+ }
48
+ async get(moduleName, entityName) {
49
+ return new Promise(async (resolve) => {
50
+ switch (entityName) {
51
+ default:
52
+ resolve(null);
53
+ }
54
+ });
55
+ }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMCommonModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
57
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMCommonModuleEntityProvider }); }
58
+ }
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMCommonModuleEntityProvider, decorators: [{
60
+ type: Injectable
61
+ }] });
62
+
63
+ const path = 'regional:';
64
+ var AXPRegionalSetting;
65
+ (function (AXPRegionalSetting) {
66
+ AXPRegionalSetting["TimeZone"] = "regional:timezone";
67
+ AXPRegionalSetting["Language"] = "regional:language";
68
+ AXPRegionalSetting["Country"] = "regional:country";
69
+ AXPRegionalSetting["Regional"] = "regional:regional";
70
+ AXPRegionalSetting["Calendar"] = "regional:calendar";
71
+ AXPRegionalSetting["FirstDayOfWeek"] = "regional:first-day-of-week";
72
+ AXPRegionalSetting["WorkDays"] = "regional:work-days";
73
+ AXPRegionalSetting["ShortDate"] = "regional:short-date";
74
+ AXPRegionalSetting["LongDate"] = "regional:long-date";
75
+ AXPRegionalSetting["ShortTime"] = "regional:short-time";
76
+ AXPRegionalSetting["LongTime"] = "regional:long-time";
77
+ AXPRegionalSetting["MeasurementUnits"] = "regional:measurement-units";
78
+ AXPRegionalSetting["TemperatureUnits"] = "regional:temperature-units";
79
+ })(AXPRegionalSetting || (AXPRegionalSetting = {}));
80
+
81
+ // ThemeStore - Manages theme settings and system changes
82
+ const AXPRegionalStoreService = signalStore({ providedIn: 'root' },
83
+ // Initial State
84
+ withState((translationService = inject(AXTranslationService)) => {
85
+ const state = {
86
+ language: translationService.getDefaultLang(),
87
+ };
88
+ return state;
89
+ }),
90
+ // Computed Signals
91
+ // withComputed(({ }) => ({
92
+ // })),
93
+ // Methods for State Management
94
+ withMethods((store, settingService = inject(AXPSettingService), translationService = inject(AXTranslationService), regionalService = inject(AXPRegionalService)) => {
95
+ return {
96
+ async changeLanguage(lang) {
97
+ if (lang != store.language()) {
98
+ settingService.scope(AXPPlatformScope.User).set(AXPRegionalSetting.Language, lang);
99
+ patchState(store, { language: lang });
100
+ }
101
+ translationService.setActiveLang(lang);
102
+ const reg = await (await regionalService.getRegionalFormats()).find((c) => c.locale == lang);
103
+ const html = document.getElementsByTagName('html')[0];
104
+ reg?.layout == 'rtl' ? html.setAttribute('dir', 'rtl') : html.removeAttribute('dir');
105
+ },
106
+ async loadSetting() {
107
+ const lang = (await settingService.get(AXPRegionalSetting.Language)) ?? translationService.getDefaultLang();
108
+ await this.changeLanguage(lang);
109
+ },
110
+ };
111
+ }), withHooks((store, settingService = inject(AXPSettingService)) => ({
112
+ onInit() {
113
+ settingService.onChanged.subscribe(async (setting) => {
114
+ if (setting.keys.includes(AXPRegionalSetting.Language)) {
115
+ await store.loadSetting();
116
+ }
117
+ });
118
+ },
119
+ onDestroy() { },
120
+ })));
121
+
122
+ class AXMLanguageSlotComponent {
123
+ constructor() {
124
+ this.regionalService = inject(AXPRegionalService);
125
+ this.store = inject(AXPRegionalStoreService);
126
+ this.items = signal([]);
127
+ }
128
+ async ngOnInit() {
129
+ const items = await this.regionalService.getAvailableLanguages();
130
+ this.items.set(items);
131
+ }
132
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
133
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button color=\"primary\">\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", "placement", "_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-subtitle, 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", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "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 }] }); }
134
+ }
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageSlotComponent, decorators: [{
136
+ type: Component,
137
+ args: [{ imports: [AXDropdownModule, AXDecoratorModule, AXPopoverModule, AXButtonModule, CommonModule], template: "<ax-button color=\"primary\">\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>" }]
138
+ }] });
139
+
140
+ class AXPRegionalWidgetDataSourceProvider {
141
+ constructor() {
142
+ this.regionalService = inject(AXPRegionalService);
143
+ //#region Country
144
+ this.country = {
145
+ name: "countries",
146
+ title: "Countries",
147
+ textField: 'title',
148
+ valueField: 'code',
149
+ columns: [
150
+ {
151
+ name: 'code',
152
+ title: "Code"
153
+ },
154
+ {
155
+ name: 'title',
156
+ title: "Title"
157
+ },
158
+ {
159
+ name: 'timezone',
160
+ title: "Timezone"
161
+ }
162
+ ],
163
+ source: async () => {
164
+ const list = await this.regionalService.getCountries();
165
+ return new AXDataSource({
166
+ pageSize: 20,
167
+ key: 'code',
168
+ load: (e) => {
169
+ return applyQueryArray(list, e);
170
+ },
171
+ byKey: async (key) => {
172
+ return list.find(c => c.code == key);
173
+ }
174
+ });
175
+ },
176
+ samples: [
177
+ { code: 'US', title: 'United States', timezone: 'GMT-5' },
178
+ { code: 'CA', title: 'Canada', timezone: 'GMT-6' },
179
+ { code: 'GB', title: 'United Kingdom', timezone: 'GMT+0' }
180
+ ]
181
+ };
182
+ //#endregion
183
+ //#region Cities
184
+ this.cities = {
185
+ name: "cities",
186
+ title: "Cities",
187
+ textField: 'title',
188
+ valueField: 'code',
189
+ columns: [
190
+ {
191
+ name: 'code',
192
+ title: "Code"
193
+ },
194
+ {
195
+ name: 'title',
196
+ title: "Title"
197
+ },
198
+ {
199
+ name: 'timezone',
200
+ title: "Timezone"
201
+ }
202
+ ],
203
+ source: async () => {
204
+ const list = await this.regionalService.getCities();
205
+ return new AXDataSource({
206
+ pageSize: 20,
207
+ key: 'code',
208
+ load: (e) => {
209
+ return applyQueryArray(list, e);
210
+ },
211
+ byKey: async (key) => {
212
+ return list.find(c => c.code == key);
213
+ }
214
+ });
215
+ },
216
+ samples: [
217
+ { code: 'NYC', title: 'New York', timezone: 'GMT-5' },
218
+ { code: 'TOR', title: 'Toronto', timezone: 'GMT-5' },
219
+ { code: 'LDN', title: 'London', timezone: 'GMT+0' }
220
+ ]
221
+ };
222
+ //#endregion
223
+ //#region Provinces
224
+ this.provinces = {
225
+ name: "provinces",
226
+ title: "Provinces",
227
+ textField: 'title',
228
+ valueField: 'code',
229
+ columns: [
230
+ {
231
+ name: 'code',
232
+ title: "Code"
233
+ },
234
+ {
235
+ name: 'title',
236
+ title: "Title"
237
+ },
238
+ {
239
+ name: 'timezone',
240
+ title: "Timezone"
241
+ }
242
+ ],
243
+ source: async () => {
244
+ const list = await this.regionalService.getProvinces();
245
+ return new AXDataSource({
246
+ pageSize: 20,
247
+ key: 'code',
248
+ load: (e) => {
249
+ return applyQueryArray(list, e);
250
+ },
251
+ byKey: async (key) => {
252
+ return list.find(p => p.code == key);
253
+ }
254
+ });
255
+ },
256
+ samples: [
257
+ { code: 'CA', title: 'California', timezone: 'GMT-8' },
258
+ { code: 'ON', title: 'Ontario', timezone: 'GMT-5' },
259
+ { code: 'ENG', title: 'England', timezone: 'GMT+0' }
260
+ ]
261
+ };
262
+ //#endregion
263
+ //#region Currencies
264
+ this.currencies = {
265
+ name: "currencies",
266
+ title: "Currencies",
267
+ textField: 'title',
268
+ valueField: 'code',
269
+ columns: [
270
+ {
271
+ name: 'code',
272
+ title: "Code"
273
+ },
274
+ {
275
+ name: 'title',
276
+ title: "Title"
277
+ },
278
+ {
279
+ name: 'symbol',
280
+ title: "Symbol"
281
+ },
282
+ ],
283
+ source: async () => {
284
+ const list = await this.regionalService.getCurrencies();
285
+ return new AXDataSource({
286
+ pageSize: 20,
287
+ key: 'code',
288
+ load: (e) => {
289
+ return applyQueryArray(list, e);
290
+ },
291
+ byKey: async (key) => {
292
+ return list.find(c => c.code == key);
293
+ }
294
+ });
295
+ },
296
+ samples: [
297
+ { code: 'USD', title: 'United States Dollar', symbol: '$' },
298
+ { code: 'CAD', title: 'Canadian Dollar', symbol: 'CA$' },
299
+ { code: 'GBP', title: 'British Pound', symbol: '£' }
300
+ ]
301
+ };
302
+ //#endregion
303
+ //#region Languages
304
+ this.languages = {
305
+ name: "languages",
306
+ title: "Languages",
307
+ textField: 'title',
308
+ valueField: 'code',
309
+ columns: [
310
+ {
311
+ name: 'code',
312
+ title: "Code"
313
+ },
314
+ {
315
+ name: 'title',
316
+ title: "Title"
317
+ },
318
+ ],
319
+ source: async () => {
320
+ const list = await this.regionalService.getLanguages();
321
+ return new AXDataSource({
322
+ pageSize: 20,
323
+ key: 'code',
324
+ load: (e) => {
325
+ return applyQueryArray(list, e);
326
+ },
327
+ byKey: async (key) => {
328
+ return list.find(l => l.code == key);
329
+ }
330
+ });
331
+ },
332
+ samples: [
333
+ { code: 'EN', title: 'English', nativeName: 'English' },
334
+ { code: 'FR', title: 'French', nativeName: 'Français' },
335
+ { code: 'ES', title: 'Spanish', nativeName: 'Español' }
336
+ ]
337
+ };
338
+ }
339
+ //#endregion
340
+ async items() {
341
+ return [
342
+ this.country,
343
+ this.cities,
344
+ this.provinces,
345
+ this.currencies,
346
+ this.languages
347
+ ];
348
+ }
349
+ }
350
+
351
+ class AXMPlatformManagementCommonModule {
352
+ constructor(appInitService, injector) {
353
+ const service = injector.get(AXPRegionalStoreService);
354
+ appInitService.registerTask({
355
+ name: 'Settings',
356
+ statusText: 'Loading Settings ...',
357
+ run: async () => {
358
+ await service.loadSetting();
359
+ }
360
+ });
361
+ }
362
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementCommonModule, deps: [{ token: i1$1.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
363
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementCommonModule, imports: [i1$1.AXPComponentSlotModule] }); }
364
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementCommonModule, providers: [
365
+ {
366
+ provide: AXP_ENTITY_DEFINITION_LOADER,
367
+ useClass: AXMCommonModuleEntityProvider,
368
+ multi: true,
369
+ },
370
+ {
371
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
372
+ useFactory: async () => {
373
+ const injector = inject(Injector);
374
+ const provider = (await import('./acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs')).AXMRegionalSettingProvider;
375
+ return new provider(injector);
376
+ },
377
+ multi: true
378
+ },
379
+ {
380
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
381
+ useClass: AXPRegionalWidgetDataSourceProvider,
382
+ multi: true
383
+ },
384
+ ], imports: [AXPComponentSlotModule.forChild({
385
+ 'header-end': [
386
+ {
387
+ name: 'language',
388
+ component: AXMLanguageSlotComponent
389
+ }
390
+ ]
391
+ })] }); }
392
+ }
393
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementCommonModule, decorators: [{
394
+ type: NgModule,
395
+ args: [{
396
+ imports: [
397
+ AXPComponentSlotModule.forChild({
398
+ 'header-end': [
399
+ {
400
+ name: 'language',
401
+ component: AXMLanguageSlotComponent
402
+ }
403
+ ]
404
+ })
405
+ ],
406
+ exports: [],
407
+ declarations: [],
408
+ providers: [
409
+ {
410
+ provide: AXP_ENTITY_DEFINITION_LOADER,
411
+ useClass: AXMCommonModuleEntityProvider,
412
+ multi: true,
413
+ },
414
+ {
415
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
416
+ useFactory: async () => {
417
+ const injector = inject(Injector);
418
+ const provider = (await import('./acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs')).AXMRegionalSettingProvider;
419
+ return new provider(injector);
420
+ },
421
+ multi: true
422
+ },
423
+ {
424
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
425
+ useClass: AXPRegionalWidgetDataSourceProvider,
426
+ multi: true
427
+ },
428
+ ],
429
+ }]
430
+ }], ctorParameters: () => [{ type: i1$1.AXPAppStartUpService }, { type: i0.Injector }] });
431
+
432
+ const config = {
433
+ i18n: 'platform-management',
434
+ };
435
+ const RootConfig = {
436
+ config,
437
+ module: {
438
+ route: 'platform-management',
439
+ name: 'PlatformManagement',
440
+ title: `t('platformManagement', {scope:"${config.i18n}"})`,
441
+ icon: 'fa-light fa-cogs',
442
+ },
443
+ entities: {
444
+ sample: {
445
+ name: 'Sample',
446
+ title: `t("sample", { scope: "${config.i18n}" })`,
447
+ titlePlural: `t("samplePlural", { scope: "${config.i18n}" })`,
448
+ icon: 'fa-light fa-default',
449
+ },
450
+ localizationManagement: {
451
+ name: 'Localization Management',
452
+ title: `t("localization-management", {scope:"${config.i18n}"})`,
453
+ icon: 'fa-light fa-globe',
454
+ },
455
+ globalVariable: {
456
+ name: 'GlobalVariables',
457
+ title: `t("variables", {scope:"${config.i18n}"})`,
458
+ icon: 'fa-light fa-object-exclude',
459
+ },
460
+ appVersion: {
461
+ name: 'app-version',
462
+ title: `t("appVersion", {scope:"${config.i18n}"})`,
463
+ titlePlural: `t("appVersionPlural", {scope:"${config.i18n}"})`,
464
+ icon: 'fa-light fa-code-branch',
465
+ },
466
+ appTerm: {
467
+ name: 'app-term',
468
+ title: `t("appTerm", {scope:"${config.i18n}"})`,
469
+ titlePlural: `t("appTermPlural", {scope:"${config.i18n}"})`,
470
+ icon: 'fa-light fa-scale-balanced',
471
+ },
472
+ promotion: {
473
+ name: 'promotion',
474
+ title: `t("promotion", {scope:"${config.i18n}"})`,
475
+ titlePlural: `t("promotionPlural", {scope:"${config.i18n}"})`,
476
+ icon: 'fa-light fa-billboard',
477
+ },
478
+ dataSource: {
479
+ name: 'DataSource',
480
+ title: `t("dataSource", {scope:"${config.i18n}"})`,
481
+ titlePlural: `t("dataSourcePlural", {scope:"${config.i18n}"})`,
482
+ icon: 'fa-light fa-database',
483
+ },
484
+ metaDataDefinitionCategory: {
485
+ name: 'MetaDataDefinitionCategory',
486
+ title: `t("MetaDataDefinitionCategory", {scope:"${config.i18n}"})`,
487
+ titlePlural: `t("MetaDataDefinitionCategoryPlural", {scope:"${config.i18n}"})`,
488
+ icon: 'fa-light fa-list',
489
+ },
490
+ metaDataDefinition: {
491
+ name: 'MetaDataDefinition',
492
+ title: `t("MetaDataDefinition", {scope:"${config.i18n}"})`,
493
+ titlePlural: `t("MetaDataDefinitionPlural", {scope:"${config.i18n}"})`,
494
+ icon: 'fa-light fa-server',
495
+ },
496
+ },
497
+ };
498
+
499
+ class AXMAppTermService extends AXMEntityCrudServiceImpl {
500
+ }
501
+ class AXMAppTermServiceImpl extends AXMEntityCrudServiceImpl {
502
+ constructor() {
503
+ super(`${RootConfig.module.name}.${RootConfig.entities.appTerm.name}`);
504
+ }
505
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppTermServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
506
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppTermServiceImpl }); }
507
+ }
508
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppTermServiceImpl, decorators: [{
509
+ type: Injectable
510
+ }], ctorParameters: () => [] });
511
+
512
+ async function appTermEntityEntityFactory(injector) {
513
+ const dataService = injector.get(AXMAppTermService);
514
+ const i18n = RootConfig.config.i18n;
515
+ const entityDef = {
516
+ module: RootConfig.module.name,
517
+ name: RootConfig.entities.appTerm.name,
518
+ source: '',
519
+ title: RootConfig.entities.appTerm.title,
520
+ formats: {
521
+ individual: RootConfig.entities.appTerm.title,
522
+ plural: RootConfig.entities.appTerm.titlePlural,
523
+ searchResult: {
524
+ title: '{{ title }}',
525
+ description: RootConfig.module.title,
526
+ }
527
+ },
528
+ relatedEntities: [],
529
+ groups: [
530
+ {
531
+ id: 'section',
532
+ title: RootConfig.entities.appTerm.title,
533
+ },
534
+ ],
535
+ properties: [
536
+ {
537
+ name: 'type',
538
+ title: `t("type", { scope: "common" })`,
539
+ groupId: 'section',
540
+ schema: {
541
+ dataType: 'string',
542
+ interface: {
543
+ type: AXPWidgetsCatalog.text,
544
+ },
545
+ },
546
+ validations: [
547
+ {
548
+ rule: 'required',
549
+ },
550
+ ],
551
+ },
552
+ {
553
+ name: 'title',
554
+ title: `t("title", { scope: "common" })`,
555
+ groupId: 'section',
556
+ schema: {
557
+ dataType: 'string',
558
+ interface: {
559
+ type: AXPWidgetsCatalog.text,
560
+ },
561
+ },
562
+ options: {
563
+ filter: {
564
+ advance: {
565
+ enabled: true,
566
+ },
567
+ inline: {
568
+ enabled: true
569
+ }
570
+ },
571
+ sort: {
572
+ enabled: true,
573
+ },
574
+ },
575
+ validations: [
576
+ {
577
+ rule: 'required',
578
+ },
579
+ ],
580
+ },
581
+ {
582
+ name: 'content',
583
+ title: `t("content", { scope: "${i18n}" })`,
584
+ groupId: 'section',
585
+ schema: {
586
+ dataType: 'string',
587
+ interface: {
588
+ type: AXPWidgetsCatalog.richText,
589
+ options: {
590
+ minLineCount: 5,
591
+ maxLineCount: 17,
592
+ isFitLine: true,
593
+ },
594
+ },
595
+ },
596
+ validations: [
597
+ {
598
+ rule: 'required',
599
+ },
600
+ ],
601
+ },
602
+ {
603
+ name: 'version',
604
+ title: `t("version", { scope: "${i18n}" })`,
605
+ groupId: 'section',
606
+ schema: {
607
+ dataType: 'number',
608
+ interface: {
609
+ type: AXPWidgetsCatalog.number,
610
+ },
611
+ },
612
+ options: {
613
+ filter: {
614
+ advance: {
615
+ enabled: true,
616
+ },
617
+ },
618
+ sort: {
619
+ enabled: true,
620
+ },
621
+ },
622
+ validations: [
623
+ {
624
+ rule: 'required',
625
+ },
626
+ ],
627
+ },
628
+ {
629
+ name: 'effectiveDate',
630
+ title: `t("effectiveDate", { scope: "${i18n}" })`,
631
+ groupId: 'section',
632
+ schema: {
633
+ dataType: 'dateTime',
634
+ interface: {
635
+ type: AXPWidgetsCatalog.dateTime,
636
+ },
637
+ },
638
+ options: {
639
+ filter: {
640
+ advance: {
641
+ enabled: true,
642
+ },
643
+ },
644
+ sort: {
645
+ enabled: true,
646
+ },
647
+ },
648
+ validations: [
649
+ {
650
+ rule: 'required',
651
+ },
652
+ ],
653
+ },
654
+ ],
655
+ columns: [{ name: 'title' }, { name: 'content' }, { name: 'version' }, { name: 'effectiveDate' }],
656
+ commands: {
657
+ create: {
658
+ execute: async (data) => {
659
+ return Promise.resolve({ id: await dataService.insertOne(data) });
660
+ },
661
+ },
662
+ delete: {
663
+ execute: async (id) => {
664
+ await await dataService.deleteOne(id);
665
+ return Promise.resolve();
666
+ },
667
+ },
668
+ update: {
669
+ execute: async (data) => {
670
+ return new Promise((resolve) => {
671
+ setTimeout(async () => {
672
+ await dataService.updateOne(data.id, data);
673
+ resolve(data);
674
+ }, 1000);
675
+ });
676
+ },
677
+ },
678
+ },
679
+ queries: {
680
+ byKey: {
681
+ execute: async (id) => {
682
+ return new Promise((resolve) => {
683
+ setTimeout(async () => {
684
+ const entity = await dataService.getOne(id);
685
+ resolve(entity);
686
+ }, 500);
687
+ });
688
+ },
689
+ type: AXPEntityQueryType.Single,
690
+ },
691
+ list: {
692
+ execute: async (e) => {
693
+ const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
694
+ return x;
695
+ },
696
+ type: AXPEntityQueryType.List,
697
+ },
698
+ },
699
+ interfaces: {
700
+ master: {
701
+ create: {
702
+ sections: [
703
+ {
704
+ id: 'section',
705
+ },
706
+ ],
707
+ properties: [
708
+ {
709
+ name: 'title',
710
+ layout: {
711
+ positions: {
712
+ lg: {
713
+ colSpan: 12,
714
+ order: 1,
715
+ },
716
+ },
717
+ },
718
+ },
719
+ {
720
+ name: 'type',
721
+ layout: {
722
+ positions: {
723
+ lg: {
724
+ colSpan: 4,
725
+ order: 2,
726
+ },
727
+ },
728
+ },
729
+ },
730
+ {
731
+ name: 'version',
732
+ layout: {
733
+ positions: {
734
+ lg: {
735
+ colSpan: 4,
736
+ order: 3,
737
+ },
738
+ },
739
+ },
740
+ },
741
+ {
742
+ name: 'content',
743
+ layout: {
744
+ positions: {
745
+ lg: {
746
+ colSpan: 12,
747
+ order: 10,
748
+ },
749
+ },
750
+ },
751
+ },
752
+ {
753
+ name: 'effectiveDate',
754
+ layout: {
755
+ positions: {
756
+ lg: {
757
+ colSpan: 4,
758
+ order: 4,
759
+ },
760
+ },
761
+ },
762
+ },
763
+ ],
764
+ },
765
+ update: {
766
+ sections: [
767
+ {
768
+ id: 'section',
769
+ },
770
+ ],
771
+ properties: [
772
+ {
773
+ name: 'title',
774
+ layout: {
775
+ positions: {
776
+ lg: {
777
+ colSpan: 12,
778
+ order: 1,
779
+ },
780
+ },
781
+ },
782
+ },
783
+ {
784
+ name: 'type',
785
+ layout: {
786
+ positions: {
787
+ lg: {
788
+ colSpan: 4,
789
+ order: 2,
790
+ },
791
+ },
792
+ },
793
+ },
794
+ {
795
+ name: 'version',
796
+ layout: {
797
+ positions: {
798
+ lg: {
799
+ colSpan: 4,
800
+ order: 3,
801
+ },
802
+ },
803
+ },
804
+ },
805
+ {
806
+ name: 'content',
807
+ layout: {
808
+ positions: {
809
+ lg: {
810
+ colSpan: 12,
811
+ order: 10,
812
+ },
813
+ },
814
+ },
815
+ },
816
+ {
817
+ name: 'effectiveDate',
818
+ layout: {
819
+ positions: {
820
+ lg: {
821
+ colSpan: 4,
822
+ order: 4,
823
+ },
824
+ },
825
+ },
826
+ },
827
+ ],
828
+ },
829
+ single: {
830
+ title: '{{title}}',
831
+ sections: [
832
+ {
833
+ id: 'section',
834
+ },
835
+ ],
836
+ properties: [
837
+ {
838
+ name: 'title',
839
+ layout: {
840
+ positions: {
841
+ lg: {
842
+ colSpan: 6,
843
+ order: 1,
844
+ },
845
+ },
846
+ },
847
+ },
848
+ {
849
+ name: 'type',
850
+ layout: {
851
+ positions: {
852
+ lg: {
853
+ colSpan: 6,
854
+ order: 2,
855
+ },
856
+ },
857
+ },
858
+ },
859
+ {
860
+ name: 'version',
861
+ layout: {
862
+ positions: {
863
+ lg: {
864
+ colSpan: 6,
865
+ order: 3,
866
+ },
867
+ },
868
+ },
869
+ },
870
+ {
871
+ name: 'content',
872
+ layout: {
873
+ positions: {
874
+ lg: {
875
+ colSpan: 12,
876
+ order: 10,
877
+ },
878
+ },
879
+ },
880
+ },
881
+ {
882
+ name: 'effectiveDate',
883
+ layout: {
884
+ positions: {
885
+ lg: {
886
+ colSpan: 6,
887
+ order: 4,
888
+ },
889
+ },
890
+ },
891
+ },
892
+ ],
893
+ actions: [],
894
+ },
895
+ list: {
896
+ actions: [
897
+ {
898
+ title: 'Create New',
899
+ command: 'create-entity',
900
+ priority: 'primary',
901
+ type: 'create',
902
+ scope: AXPEntityCommandScope.TypeLevel,
903
+ },
904
+ {
905
+ title: 'Delete Items',
906
+ command: 'delete-entity',
907
+ priority: 'primary',
908
+ type: 'delete',
909
+ scope: AXPEntityCommandScope.Selected,
910
+ },
911
+ {
912
+ title: 'Details',
913
+ command: 'open-entity',
914
+ priority: 'secondary',
915
+ type: 'view',
916
+ scope: AXPEntityCommandScope.Individual,
917
+ },
918
+ {
919
+ title: 'Delete',
920
+ command: 'delete-entity',
921
+ priority: 'secondary',
922
+ type: 'delete',
923
+ scope: AXPEntityCommandScope.Individual,
924
+ },
925
+ ],
926
+ views: [
927
+ createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),
928
+ ],
929
+ },
930
+ },
931
+ },
932
+ };
933
+ return entityDef;
934
+ }
935
+
936
+ class AXMListTermsComponent extends AXBasePageComponent {
937
+ constructor() {
938
+ super(...arguments);
939
+ this.service = inject(AXMAppTermService);
940
+ this.htmlUtil = inject(AXPHtmlUtils);
941
+ this.i18n = RootConfig.config.i18n;
942
+ this.pageTitle = RootConfig.entities.appTerm.titlePlural;
943
+ this.terms = [];
944
+ this.loaded = signal(false);
945
+ this.showScrollSide = false;
946
+ }
947
+ ngAfterViewInit() {
948
+ this.checkScroll();
949
+ }
950
+ onResize() {
951
+ this.checkScroll();
952
+ }
953
+ checkScroll() {
954
+ const contentElement = document.getElementById('contentDiv');
955
+ if (contentElement != null) {
956
+ this.showScrollSide = contentElement.offsetHeight > window.innerHeight - 140;
957
+ }
958
+ }
959
+ async ngOnInit() {
960
+ super.ngOnInit();
961
+ const result = await this.service.query({
962
+ skip: 0,
963
+ take: 1000,
964
+ });
965
+ this.terms = result.items.map((term) => {
966
+ return {
967
+ ...term,
968
+ content: this.htmlUtil.getTextFromHTML(term.content),
969
+ };
970
+ });
971
+ this.loaded.set(true);
972
+ setTimeout(() => this.checkScroll(), 50);
973
+ }
974
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListTermsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
975
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMListTermsComponent, isStandalone: true, selector: "acorex-platform-list-terms", host: { listeners: { "window:resize": "onResize($event)" } }, usesInheritance: true, ngImport: i0, template: "<axp-layout-simple-page>\n <axp-layout-page-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-page-header>\n @if(loaded()){\n <axp-layout-page-content id=\"contentDiv\" axOutlineContainer target=\"h2\" [scrollableElementId]=\"'simple-page-content'\"\n [activationOffset]=\"150\">\n <div class=\"ax-flex\">\n <div class=\"ax-flex ax-flex-col\">\n @for (term of terms; track term.id) {\n <div class=\"ax-flex ax-flex-col\">\n <h2 class=\"ax-px-4 ax-font-semibold ax-text-xl\">{{ term.title }}</h2>\n <p class=\"ax-px-4 ax-text-sm ax-leading-5 ax-text-neutral-700\">\n {{ term.effectiveDate | format : 'datetime' | async }}\n </p>\n <div class=\"ax-pt-3 ax-pb-6 ax-px-4 ax-text-base/6\" [innerHTML]=\"term.content\"></div>\n </div>\n }\n </div>\n @if(showScrollSide){\n <div class=\"ax-hidden lg:ax-block ax-min-w-60 ax-sticky ax-top-0\">\n <ax-side-menu axOutlineSideMenu look=\"with-line\" class=\"ax-w-full\"></ax-side-menu>\n </div>\n }\n </div>\n </axp-layout-page-content>\n }\n</axp-layout-simple-page>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXFormatModule }, { kind: "pipe", type: i2$1.AXFormatPipe, name: "format" }, { kind: "component", type: AXPSimplePageLayout, selector: "axp-layout-simple-page" }, { kind: "component", type: AXPThemeLayoutPageHeaderComponent, selector: "axp-layout-page-header" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer, axp-page-header, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-container, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type: AXSideMenuModule }, { kind: "component", type: i4.AXSideMenuComponent, selector: "ax-side-menu", inputs: ["items", "look", "location"], outputs: ["itemsChange"] }, { kind: "directive", type: i4.AXOutlineSideMenuDirective, selector: "[axOutlineSideMenu]", exportAs: ["axOutlineSideMenu"] }, { kind: "ngmodule", type: AXOutlineModule }, { kind: "directive", type: i5.AXOutlineContainerDirective, selector: "[axOutlineContainer]", inputs: ["target", "smoothScroll", "activationOffset", "activateLastAtBottom", "scrollableElementId"], exportAs: ["axOutlineContainer"] }] }); }
976
+ }
977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListTermsComponent, decorators: [{
978
+ type: Component,
979
+ args: [{ selector: 'acorex-platform-list-terms', imports: [
980
+ CommonModule,
981
+ AXDecoratorModule,
982
+ AXFormatModule,
983
+ AXPSimplePageLayout,
984
+ AXPThemeLayoutPageHeaderComponent,
985
+ AXPThemeLayoutBlockComponent,
986
+ AXTranslationModule,
987
+ AXSideMenuModule,
988
+ AXOutlineModule,
989
+ ], template: "<axp-layout-simple-page>\n <axp-layout-page-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-page-header>\n @if(loaded()){\n <axp-layout-page-content id=\"contentDiv\" axOutlineContainer target=\"h2\" [scrollableElementId]=\"'simple-page-content'\"\n [activationOffset]=\"150\">\n <div class=\"ax-flex\">\n <div class=\"ax-flex ax-flex-col\">\n @for (term of terms; track term.id) {\n <div class=\"ax-flex ax-flex-col\">\n <h2 class=\"ax-px-4 ax-font-semibold ax-text-xl\">{{ term.title }}</h2>\n <p class=\"ax-px-4 ax-text-sm ax-leading-5 ax-text-neutral-700\">\n {{ term.effectiveDate | format : 'datetime' | async }}\n </p>\n <div class=\"ax-pt-3 ax-pb-6 ax-px-4 ax-text-base/6\" [innerHTML]=\"term.content\"></div>\n </div>\n }\n </div>\n @if(showScrollSide){\n <div class=\"ax-hidden lg:ax-block ax-min-w-60 ax-sticky ax-top-0\">\n <ax-side-menu axOutlineSideMenu look=\"with-line\" class=\"ax-w-full\"></ax-side-menu>\n </div>\n }\n </div>\n </axp-layout-page-content>\n }\n</axp-layout-simple-page>" }]
990
+ }], propDecorators: { onResize: [{
991
+ type: HostListener,
992
+ args: ['window:resize', ['$event']]
993
+ }] } });
994
+
995
+ class AXMNotifyAppTermComponent extends AXBasePageComponent {
996
+ constructor() {
997
+ super(...arguments);
998
+ this.isConfirm = false;
999
+ this.htmlUtil = inject(AXPHtmlUtils);
1000
+ this.i18n = RootConfig.config.i18n;
1001
+ }
1002
+ send() {
1003
+ this.close({ data: this.data });
1004
+ }
1005
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppTermComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1006
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMNotifyAppTermComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "@for (item of data; track $index) {\n<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-font-bold\">{{ item.title }}</ax-content>\n<ax-content class=\"ax-block ax-px-4 ax-pb-4 ax-text-base/6\" [innerHTML]=\"item.content | safe : 'html'\"></ax-content>\n}\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isConfirm\">\n <ax-label>{{ 'agreeTerm' | translate : { scope: i18n } | async }}</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\" [disabled]=\"!isConfirm\" color=\"primary\"></ax-button>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i3$1.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXDecoratorModule }, { 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-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
1007
+ }
1008
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppTermComponent, decorators: [{
1009
+ type: Component,
1010
+ args: [{ selector: 'axm-notify-app', imports: [
1011
+ CommonModule,
1012
+ AXLabelModule,
1013
+ AXCheckBoxModule,
1014
+ AXDecoratorModule,
1015
+ AXButtonModule,
1016
+ AXTranslationModule,
1017
+ AXSafePipe,
1018
+ ], template: "@for (item of data; track $index) {\n<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-font-bold\">{{ item.title }}</ax-content>\n<ax-content class=\"ax-block ax-px-4 ax-pb-4 ax-text-base/6\" [innerHTML]=\"item.content | safe : 'html'\"></ax-content>\n}\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isConfirm\">\n <ax-label>{{ 'agreeTerm' | translate : { scope: i18n } | async }}</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\" [disabled]=\"!isConfirm\" color=\"primary\"></ax-button>\n</ax-footer>\n" }]
1019
+ }] });
1020
+
1021
+ class AXMNotifyNewTermPopupAction extends AXPWorkflowAction {
1022
+ constructor() {
1023
+ super(...arguments);
1024
+ this.popupService = inject(AXPopupService);
1025
+ }
1026
+ async execute(context) {
1027
+ const data = context.getVariable();
1028
+ await this.popupService.open(AXMNotifyAppTermComponent, {
1029
+ title: 'New Terms And Conditions',
1030
+ data: { data },
1031
+ closeButton: false,
1032
+ });
1033
+ }
1034
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyNewTermPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1035
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyNewTermPopupAction }); }
1036
+ }
1037
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyNewTermPopupAction, decorators: [{
1038
+ type: Injectable
1039
+ }] });
1040
+ class AXMTermUpdateSettingAction extends AXPWorkflowAction {
1041
+ constructor() {
1042
+ super(...arguments);
1043
+ this.settingService = inject(AXPSettingService);
1044
+ }
1045
+ async execute(context) {
1046
+ const dataList = context.getVariable();
1047
+ for (const data of dataList) {
1048
+ await this.settingService.scope(AXPPlatformScope.User).set(`is-confirm-term-${data.id}`, true);
1049
+ }
1050
+ }
1051
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTermUpdateSettingAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1052
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTermUpdateSettingAction }); }
1053
+ }
1054
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTermUpdateSettingAction, decorators: [{
1055
+ type: Injectable
1056
+ }] });
1057
+ const AXMNewTermWorkflow = {
1058
+ startStepId: 'show-popup',
1059
+ steps: {
1060
+ 'show-popup': {
1061
+ action: 'AXMNotifyNewTermPopupAction',
1062
+ nextSteps: [
1063
+ {
1064
+ conditions: [],
1065
+ nextStepId: 'first-time-add-to-setting',
1066
+ },
1067
+ ],
1068
+ },
1069
+ 'first-time-add-to-setting': {
1070
+ action: 'AXMTermUpdateSettingAction',
1071
+ },
1072
+ },
1073
+ };
1074
+
1075
+ class AXMAppVersionService extends AXMEntityCrudServiceImpl {
1076
+ }
1077
+ class AXMAppVersionServiceImpl extends AXMEntityCrudServiceImpl {
1078
+ constructor() {
1079
+ super(`${RootConfig.module.name}.${RootConfig.entities.appVersion.name}`);
1080
+ }
1081
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppVersionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1082
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppVersionServiceImpl }); }
1083
+ }
1084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppVersionServiceImpl, decorators: [{
1085
+ type: Injectable
1086
+ }], ctorParameters: () => [] });
1087
+
1088
+ async function appVersionEntityEntityFactory(injector) {
1089
+ const dataService = injector.get(AXMAppVersionService);
1090
+ const i18n = RootConfig.config.i18n;
1091
+ const entityDef = {
1092
+ module: RootConfig.module.name,
1093
+ name: RootConfig.entities.appVersion.name,
1094
+ source: '',
1095
+ title: RootConfig.entities.appVersion.title,
1096
+ formats: {
1097
+ individual: RootConfig.entities.appVersion.title,
1098
+ plural: RootConfig.entities.appVersion.title,
1099
+ searchResult: {
1100
+ title: '{{ versionNumber }}',
1101
+ description: RootConfig.module.title,
1102
+ },
1103
+ },
1104
+ relatedEntities: [],
1105
+ groups: [
1106
+ {
1107
+ id: 'section',
1108
+ title: RootConfig.entities.appVersion.title,
1109
+ },
1110
+ ],
1111
+ properties: [
1112
+ {
1113
+ name: 'versionNumber',
1114
+ title: `t("versionNumber", { scope: "${i18n}" })`,
1115
+ groupId: 'section',
1116
+ schema: {
1117
+ dataType: 'string',
1118
+ interface: {
1119
+ type: AXPWidgetsCatalog.text,
1120
+ },
1121
+ },
1122
+ options: {
1123
+ filter: {
1124
+ advance: {
1125
+ enabled: true,
1126
+ },
1127
+ inline: {
1128
+ enabled: true
1129
+ }
1130
+ },
1131
+ sort: {
1132
+ enabled: true,
1133
+ },
1134
+ },
1135
+ validations: [
1136
+ {
1137
+ rule: 'required',
1138
+ },
1139
+ ],
1140
+ },
1141
+ {
1142
+ name: 'changeLog',
1143
+ title: `t("changeLogs", { scope: "${i18n}" })`,
1144
+ groupId: 'section',
1145
+ schema: {
1146
+ dataType: 'string',
1147
+ interface: {
1148
+ type: AXPWidgetsCatalog.richText,
1149
+ options: {
1150
+ minLineCount: 5,
1151
+ maxLineCount: 17,
1152
+ isFitLine: true,
1153
+ },
1154
+ },
1155
+ },
1156
+ validations: [
1157
+ {
1158
+ rule: 'required',
1159
+ },
1160
+ ],
1161
+ },
1162
+ {
1163
+ name: 'publishDate',
1164
+ title: `t("publishDate", { scope: "${i18n}" })`,
1165
+ groupId: 'section',
1166
+ schema: {
1167
+ dataType: 'dateTime',
1168
+ interface: {
1169
+ type: AXPWidgetsCatalog.dateTime,
1170
+ },
1171
+ },
1172
+ options: {
1173
+ filter: {
1174
+ advance: {
1175
+ enabled: true,
1176
+ },
1177
+ },
1178
+ sort: {
1179
+ enabled: true,
1180
+ },
1181
+ },
1182
+ validations: [
1183
+ {
1184
+ rule: 'required',
1185
+ },
1186
+ ],
1187
+ },
1188
+ {
1189
+ name: 'showFirstTimePopup',
1190
+ title: `t("notifyUser", { scope: "${i18n}" })`,
1191
+ groupId: 'section',
1192
+ schema: {
1193
+ dataType: 'boolean',
1194
+ interface: {
1195
+ type: AXPWidgetsCatalog.checkbox,
1196
+ },
1197
+ },
1198
+ },
1199
+ ],
1200
+ columns: [
1201
+ { name: 'versionNumber' },
1202
+ { name: 'changeLog' },
1203
+ { name: 'publishDate' },
1204
+ { name: 'showFirstTimePopup' },
1205
+ ],
1206
+ commands: {
1207
+ create: {
1208
+ execute: async (data) => {
1209
+ return Promise.resolve({ id: await dataService.insertOne(data) });
1210
+ },
1211
+ },
1212
+ delete: {
1213
+ execute: async (id) => {
1214
+ await await dataService.deleteOne(id);
1215
+ return Promise.resolve();
1216
+ },
1217
+ },
1218
+ update: {
1219
+ execute: async (data) => {
1220
+ return new Promise((resolve) => {
1221
+ setTimeout(async () => {
1222
+ await dataService.updateOne(data.id, data);
1223
+ resolve(data);
1224
+ }, 1000);
1225
+ });
1226
+ },
1227
+ },
1228
+ },
1229
+ queries: {
1230
+ byKey: {
1231
+ execute: async (id) => {
1232
+ return new Promise((resolve) => {
1233
+ setTimeout(async () => {
1234
+ const entity = await dataService.getOne(id);
1235
+ resolve(entity);
1236
+ }, 500);
1237
+ });
1238
+ },
1239
+ type: AXPEntityQueryType.Single,
1240
+ },
1241
+ list: {
1242
+ execute: async (e) => {
1243
+ console.log(e);
1244
+ const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
1245
+ return x;
1246
+ },
1247
+ type: AXPEntityQueryType.List,
1248
+ },
1249
+ },
1250
+ interfaces: {
1251
+ master: {
1252
+ create: {
1253
+ sections: [
1254
+ {
1255
+ id: 'section',
1256
+ },
1257
+ ],
1258
+ properties: [
1259
+ {
1260
+ name: 'versionNumber',
1261
+ layout: {
1262
+ positions: {
1263
+ lg: {
1264
+ order: 1,
1265
+ colSpan: 4,
1266
+ },
1267
+ },
1268
+ },
1269
+ },
1270
+ {
1271
+ name: 'publishDate',
1272
+ layout: {
1273
+ positions: {
1274
+ lg: {
1275
+ order: 2,
1276
+ colSpan: 4,
1277
+ },
1278
+ },
1279
+ },
1280
+ },
1281
+ {
1282
+ name: 'showFirstTimePopup',
1283
+ layout: {
1284
+ positions: {
1285
+ lg: {
1286
+ colSpan: 4,
1287
+ order: 3,
1288
+ },
1289
+ },
1290
+ },
1291
+ },
1292
+ {
1293
+ name: 'changeLog',
1294
+ layout: {
1295
+ positions: {
1296
+ lg: {
1297
+ order: 10,
1298
+ colSpan: 12,
1299
+ },
1300
+ },
1301
+ },
1302
+ },
1303
+ ],
1304
+ },
1305
+ update: {
1306
+ sections: [
1307
+ {
1308
+ id: 'section',
1309
+ },
1310
+ ],
1311
+ properties: [
1312
+ {
1313
+ name: 'versionNumber',
1314
+ layout: {
1315
+ positions: {
1316
+ lg: {
1317
+ colSpan: 4,
1318
+ order: 1,
1319
+ },
1320
+ },
1321
+ },
1322
+ },
1323
+ {
1324
+ name: 'publishDate',
1325
+ layout: {
1326
+ positions: {
1327
+ lg: {
1328
+ colSpan: 4,
1329
+ order: 2,
1330
+ },
1331
+ },
1332
+ },
1333
+ },
1334
+ {
1335
+ name: 'showFirstTimePopup',
1336
+ layout: {
1337
+ positions: {
1338
+ lg: {
1339
+ colSpan: 4,
1340
+ order: 3,
1341
+ },
1342
+ },
1343
+ },
1344
+ },
1345
+ {
1346
+ name: 'changeLog',
1347
+ layout: {
1348
+ positions: {
1349
+ lg: {
1350
+ colSpan: 12,
1351
+ order: 4,
1352
+ },
1353
+ },
1354
+ },
1355
+ },
1356
+ ],
1357
+ },
1358
+ single: {
1359
+ title: '{{versionNumber}}',
1360
+ sections: [
1361
+ {
1362
+ id: 'section',
1363
+ },
1364
+ ],
1365
+ properties: [
1366
+ {
1367
+ name: 'versionNumber',
1368
+ layout: {
1369
+ positions: {
1370
+ lg: {
1371
+ colSpan: 4,
1372
+ },
1373
+ },
1374
+ },
1375
+ },
1376
+ {
1377
+ name: 'publishDate',
1378
+ layout: {
1379
+ positions: {
1380
+ lg: {
1381
+ colSpan: 4,
1382
+ },
1383
+ },
1384
+ },
1385
+ },
1386
+ {
1387
+ name: 'showFirstTimePopup',
1388
+ layout: {
1389
+ positions: {
1390
+ lg: {
1391
+ colSpan: 4,
1392
+ },
1393
+ },
1394
+ },
1395
+ },
1396
+ {
1397
+ name: 'changeLog',
1398
+ layout: {
1399
+ positions: {
1400
+ lg: {
1401
+ colSpan: 8,
1402
+ },
1403
+ },
1404
+ },
1405
+ },
1406
+ ],
1407
+ actions: [],
1408
+ },
1409
+ list: {
1410
+ actions: [
1411
+ {
1412
+ title: 'Create New',
1413
+ command: 'create-entity',
1414
+ priority: 'primary',
1415
+ type: 'create',
1416
+ scope: AXPEntityCommandScope.TypeLevel,
1417
+ },
1418
+ {
1419
+ title: 'Delete Items',
1420
+ command: 'delete-entity',
1421
+ priority: 'primary',
1422
+ type: 'delete',
1423
+ scope: AXPEntityCommandScope.Selected,
1424
+ },
1425
+ {
1426
+ title: 'Details',
1427
+ command: 'open-entity',
1428
+ priority: 'secondary',
1429
+ type: 'view',
1430
+ scope: AXPEntityCommandScope.Individual,
1431
+ },
1432
+ {
1433
+ title: 'Delete',
1434
+ command: 'delete-entity',
1435
+ priority: 'secondary',
1436
+ type: 'delete',
1437
+ scope: AXPEntityCommandScope.Individual,
1438
+ },
1439
+ ],
1440
+ views: [
1441
+ createAllQueryView({ sorts: [{ name: 'versionNumber', dir: 'desc' }] }),
1442
+ ],
1443
+ },
1444
+ },
1445
+ },
1446
+ };
1447
+ return entityDef;
1448
+ }
1449
+
1450
+ class AXMNotifyAppComponent extends AXBasePageComponent {
1451
+ constructor() {
1452
+ super(...arguments);
1453
+ this.isShowAgain = true;
1454
+ this.htmlUtil = inject(AXPHtmlUtils);
1455
+ }
1456
+ ngOnInit() {
1457
+ super.ngOnInit();
1458
+ this.safeData = this.htmlUtil.getSafeHTMLfromHTML(this.data.changeLog);
1459
+ }
1460
+ send() {
1461
+ this.close({ data: this.data, isShowAgain: !this.isShowAgain });
1462
+ }
1463
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1464
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMNotifyAppComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-text-base/6\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isShowAgain\">\n <ax-label>Don't Show Again</ax-label>\n </ax-check-box>\n <ax-button color=\"primary\" (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i3$1.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXDecoratorModule }, { 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-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }] }); }
1465
+ }
1466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppComponent, decorators: [{
1467
+ type: Component,
1468
+ args: [{ selector: 'axm-notify-app', imports: [CommonModule, AXLabelModule, AXCheckBoxModule, AXDecoratorModule, AXButtonModule, AXTranslationModule], template: "<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-text-base/6\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isShowAgain\">\n <ax-label>Don't Show Again</ax-label>\n </ax-check-box>\n <ax-button color=\"primary\" (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n" }]
1469
+ }] });
1470
+
1471
+ var notifyApp_component = /*#__PURE__*/Object.freeze({
1472
+ __proto__: null,
1473
+ AXMNotifyAppComponent: AXMNotifyAppComponent
1474
+ });
1475
+
1476
+ class AXMAppVersionSlotComponent {
1477
+ constructor() {
1478
+ this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
1479
+ this.workflowService = inject(AXPWorkflowService);
1480
+ this.versionNumber = '';
1481
+ }
1482
+ async ngOnInit() {
1483
+ this.versionNumber = (await this.versionProvider.provider()).version;
1484
+ }
1485
+ openPopup() {
1486
+ this.workflowService.execute('show-release-notes');
1487
+ }
1488
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppVersionSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1489
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMAppVersionSlotComponent, isStandalone: true, selector: "ng-component", inputs: { text: "text" }, ngImport: i0, template: ` <small class="ax-text-sm ax-cursor-pointer" (click)="openPopup()">{{ versionNumber }}</small> `, isInline: true }); }
1490
+ }
1491
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppVersionSlotComponent, decorators: [{
1492
+ type: Component,
1493
+ args: [{
1494
+ template: ` <small class="ax-text-sm ax-cursor-pointer" (click)="openPopup()">{{ versionNumber }}</small> `,
1495
+ standalone: true,
1496
+ }]
1497
+ }], propDecorators: { text: [{
1498
+ type: Input
1499
+ }] } });
1500
+
1501
+ class AXMChangeLogPopupAction extends AXPWorkflowAction {
1502
+ constructor() {
1503
+ super(...arguments);
1504
+ this.popupService = inject(AXPopupService);
1505
+ }
1506
+ async execute(context) {
1507
+ const data = context.getVariable();
1508
+ const comp = (await Promise.resolve().then(function () { return notifyApp_component; })).AXMNotifyAppComponent;
1509
+ const result = await this.popupService.open(comp, {
1510
+ title: `New Features in Version ${data.versionNumber}`,
1511
+ data: { data },
1512
+ });
1513
+ if (result.data?.isShowAgain) {
1514
+ context.setOutput('result', false);
1515
+ }
1516
+ else {
1517
+ context.setOutput('result', true);
1518
+ }
1519
+ }
1520
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1521
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogPopupAction }); }
1522
+ }
1523
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogPopupAction, decorators: [{
1524
+ type: Injectable
1525
+ }] });
1526
+ class AXMChangeLogUpdateSettingAction extends AXPWorkflowAction {
1527
+ constructor() {
1528
+ super(...arguments);
1529
+ this.settingService = inject(AXPSettingService);
1530
+ }
1531
+ async execute(context) {
1532
+ const data = context.getVariable();
1533
+ if (context.getOutput('result')) {
1534
+ await this.settingService.scope(AXPPlatformScope.User).set(`is-see-check-version-${data.versionNumber}`, true);
1535
+ }
1536
+ }
1537
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogUpdateSettingAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1538
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogUpdateSettingAction }); }
1539
+ }
1540
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMChangeLogUpdateSettingAction, decorators: [{
1541
+ type: Injectable
1542
+ }] });
1543
+ const AXMWhatsNewWorkflow = {
1544
+ startStepId: 'show-popup',
1545
+ steps: {
1546
+ 'show-popup': {
1547
+ action: 'AXMChangeLogPopupAction',
1548
+ nextSteps: [
1549
+ {
1550
+ conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
1551
+ nextStepId: 'first-time-add-to-setting',
1552
+ },
1553
+ ],
1554
+ },
1555
+ 'first-time-add-to-setting': {
1556
+ action: 'AXMChangeLogUpdateSettingAction',
1557
+ },
1558
+ },
1559
+ };
1560
+
1561
+ const AXM_COLUMN_DEF_WIDGET = [
1562
+ {
1563
+ type: 'grid-row-layout',
1564
+ mode: 'view',
1565
+ children: [
1566
+ {
1567
+ type: 'grid-item-layout',
1568
+ mode: 'view',
1569
+ options: { colSpan: 3 },
1570
+ children: [
1571
+ {
1572
+ type: 'text-editor',
1573
+ mode: 'edit',
1574
+ path: 'name',
1575
+ options: {
1576
+ placeholder: 'Name',
1577
+ defaultValue: 'test',
1578
+ },
1579
+ },
1580
+ ],
1581
+ },
1582
+ {
1583
+ type: 'grid-item-layout',
1584
+ mode: 'view',
1585
+ options: { colSpan: 3 },
1586
+ children: [
1587
+ {
1588
+ type: 'text-editor',
1589
+ mode: 'edit',
1590
+ path: 'title',
1591
+ options: {
1592
+ placeholder: 'Title',
1593
+ },
1594
+ },
1595
+ ],
1596
+ },
1597
+ {
1598
+ type: 'grid-item-layout',
1599
+ options: { colSpan: 3 },
1600
+ mode: 'view',
1601
+ children: [
1602
+ {
1603
+ type: 'select-editor',
1604
+ mode: 'edit',
1605
+ path: 'type',
1606
+ options: {
1607
+ ruleValidation: {
1608
+ rule: true,
1609
+ },
1610
+ placeholder: 'Type',
1611
+ valueField: 'name',
1612
+ textField: 'title',
1613
+ dataSource: Object.entries(AXPWidgetsCatalog).map(([key, value]) => {
1614
+ return {
1615
+ title: upperFirst(camelCase(key)),
1616
+ name: value,
1617
+ };
1618
+ }),
1619
+ direction: 'horizontal',
1620
+ multiple: false,
1621
+ },
1622
+ },
1623
+ ],
1624
+ },
1625
+ {
1626
+ type: 'grid-item-layout',
1627
+ options: { colSpan: 2 },
1628
+ mode: 'view',
1629
+ children: [
1630
+ {
1631
+ type: 'checkbox-editor',
1632
+ mode: 'edit',
1633
+ path: 'isRequire',
1634
+ },
1635
+ ],
1636
+ },
1637
+ ],
1638
+ },
1639
+ ];
1640
+ // export const AXM_COLUMN_DEF_WIDGET = [
1641
+ // {
1642
+ // type: 'grid-row-layout',
1643
+ // // name: 'grid-row-layout1',
1644
+ // mode: 'view',
1645
+ // path: '',
1646
+ // children: [
1647
+ // {
1648
+ // type: 'grid-item-layout',
1649
+ // mode: 'view',
1650
+ // // path: '',
1651
+ // options: { colSpan: 4 },
1652
+ // // name: 'grid-item-layout1',
1653
+ // children: [
1654
+ // {
1655
+ // type: 'text-editor',
1656
+ // //name: 'text-editor1',
1657
+ // mode: 'edit',
1658
+ // path: 'name',
1659
+ // options: {
1660
+ // placeholder: 'Name',
1661
+ // defaultValue: 'test',
1662
+ // },
1663
+ // },
1664
+ // ],
1665
+ // },
1666
+ // {
1667
+ // type: 'grid-item-layout',
1668
+ // mode: 'view',
1669
+ // // path: '',
1670
+ // options: { colSpan: 4 },
1671
+ // //name: 'grid-item-layout2',
1672
+ // children: [
1673
+ // {
1674
+ // type: 'text-editor',
1675
+ // // name: 'text-editor2',
1676
+ // mode: 'edit',
1677
+ // path: 'title',
1678
+ // options: {
1679
+ // placeholder: 'Title',
1680
+ // },
1681
+ // },
1682
+ // ],
1683
+ // },
1684
+ // {
1685
+ // type: 'grid-item-layout',
1686
+ // options: { colSpan: 4 },
1687
+ // mode: 'view',
1688
+ // // path: '',
1689
+ // // name: 'grid-item-layout3',
1690
+ // children: [
1691
+ // {
1692
+ // type: 'select-editor',
1693
+ // //name: 'select-editor1',
1694
+ // mode: 'edit',
1695
+ // path: 'type',
1696
+ // options: {
1697
+ // placeholder: 'Type',
1698
+ // valueField: 'name',
1699
+ // textField: 'title',
1700
+ // dataSource: [
1701
+ // { title: 'text', name: AXPWidgetsCatalog.text },
1702
+ // { title: 'Check Box', name: AXPWidgetsCatalog.checkbox },
1703
+ // { title: 'Gallery', name: AXPWidgetsCatalog.gallery },
1704
+ // ],
1705
+ // direction: 'horizontal',
1706
+ // multiple: false,
1707
+ // },
1708
+ // },
1709
+ // ],
1710
+ // },
1711
+ // ],
1712
+ // },
1713
+ // ];
1714
+
1715
+ class AXMDataSourceService extends AXMEntityCrudServiceImpl {
1716
+ }
1717
+ class AXMDataSourceServiceImpl extends AXMEntityCrudServiceImpl {
1718
+ constructor() {
1719
+ super(`${RootConfig.module.name}.${RootConfig.entities.dataSource.name}`);
1720
+ }
1721
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDataSourceServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1722
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDataSourceServiceImpl }); }
1723
+ }
1724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDataSourceServiceImpl, decorators: [{
1725
+ type: Injectable
1726
+ }], ctorParameters: () => [] });
1727
+
1728
+ async function dataSourceEntityFactory(injector) {
1729
+ const dataService = injector.get(AXMDataSourceService);
1730
+ const i18n = RootConfig.config.i18n;
1731
+ const entitiesService = injector.get(AXPEntityDefinitionRegistryService);
1732
+ const translationService = injector.get(AXTranslationService);
1733
+ const entityDef = {
1734
+ module: RootConfig.module.name,
1735
+ name: RootConfig.entities.dataSource.name,
1736
+ source: '',
1737
+ title: RootConfig.entities.dataSource.title,
1738
+ formats: {
1739
+ individual: RootConfig.entities.dataSource.title,
1740
+ plural: RootConfig.entities.dataSource.titlePlural,
1741
+ searchResult: {
1742
+ title: '{{ title }}',
1743
+ description: RootConfig.module.title,
1744
+ }
1745
+ },
1746
+ relatedEntities: [],
1747
+ groups: [
1748
+ {
1749
+ id: 'dataSource',
1750
+ title: RootConfig.entities.dataSource.title,
1751
+ },
1752
+ ],
1753
+ properties: [
1754
+ {
1755
+ name: 'name',
1756
+ title: `t("name", { scope: "common" })`,
1757
+ groupId: 'dataSource',
1758
+ schema: {
1759
+ dataType: 'string',
1760
+ interface: {
1761
+ type: AXPWidgetsCatalog.text,
1762
+ },
1763
+ },
1764
+ validations: [
1765
+ {
1766
+ rule: 'required',
1767
+ },
1768
+ ],
1769
+ },
1770
+ {
1771
+ name: 'title',
1772
+ title: `t("title", { scope: "common" })`,
1773
+ groupId: 'dataSource',
1774
+ schema: {
1775
+ dataType: 'string',
1776
+ interface: {
1777
+ type: AXPWidgetsCatalog.text,
1778
+ options: {},
1779
+ },
1780
+ },
1781
+ validations: [
1782
+ {
1783
+ rule: 'required',
1784
+ },
1785
+ ],
1786
+ options: {
1787
+ sort: {
1788
+ enabled: true,
1789
+ },
1790
+ filter: {
1791
+ advance: {
1792
+ enabled: true,
1793
+ },
1794
+ inline: {
1795
+ enabled: true,
1796
+ },
1797
+ }
1798
+ }
1799
+ },
1800
+ {
1801
+ name: 'columns',
1802
+ title: `t("columns", { scope: "${i18n}" })`,
1803
+ groupId: 'dataSource',
1804
+ schema: {
1805
+ defaultValue: [
1806
+ {
1807
+ name: 'name',
1808
+ title: 'Name',
1809
+ type: {
1810
+ title: 'Text',
1811
+ name: 'text-editor',
1812
+ },
1813
+ },
1814
+ {
1815
+ name: 'title',
1816
+ title: 'Title',
1817
+ type: {
1818
+ title: 'Text',
1819
+ name: 'text-editor',
1820
+ },
1821
+ },
1822
+ ],
1823
+ dataType: 'object',
1824
+ interface: {
1825
+ type: AXPWidgetsCatalog.repeaterLayout,
1826
+ children: AXM_COLUMN_DEF_WIDGET,
1827
+ },
1828
+ },
1829
+ },
1830
+ {
1831
+ name: 'samples',
1832
+ title: `t("samples", { scope: "${i18n}" })`,
1833
+ groupId: 'dataSource',
1834
+ schema: {
1835
+ dataType: 'object',
1836
+ interface: {
1837
+ type: AXPWidgetsCatalog.table,
1838
+ options: {
1839
+ columns: '{{context.eval("columns")}}',
1840
+ defaultRowCount: 2,
1841
+ },
1842
+ },
1843
+ },
1844
+ validations: [
1845
+ {
1846
+ rule: 'required',
1847
+ },
1848
+ ],
1849
+ },
1850
+ {
1851
+ name: 'sourceType',
1852
+ title: `t("sourceType", { scope: "${i18n}" })`,
1853
+ groupId: 'dataSource',
1854
+ schema: {
1855
+ defaultValue: {
1856
+ name: 'static',
1857
+ title: 'Static',
1858
+ },
1859
+ dataType: 'string',
1860
+ interface: {
1861
+ type: AXPWidgetsCatalog.select,
1862
+ options: {
1863
+ valueField: 'name',
1864
+ textField: 'title',
1865
+ dataSource: [
1866
+ {
1867
+ name: 'external_api',
1868
+ title: 'External Api',
1869
+ },
1870
+ {
1871
+ name: 'entity',
1872
+ title: 'Entity',
1873
+ },
1874
+ {
1875
+ name: 'static',
1876
+ title: 'Static',
1877
+ },
1878
+ ],
1879
+ multiple: false,
1880
+ },
1881
+ triggers: [
1882
+ {
1883
+ event: "{{ events.context('sourceType') }}",
1884
+ action: `{{context.set('sourceEntity' , null); if(context.eval('sourceType')?.name == 'static') { context.set('columns', [ { name: 'name',title: 'Name',type: { title: 'Text', name: 'text-editor', },},{name: 'title',title: 'Title',type: {title: 'Text',name: 'text-editor',},}, ] );} }}`,
1885
+ },
1886
+ ],
1887
+ },
1888
+ },
1889
+ options: {
1890
+ sort: {
1891
+ enabled: true,
1892
+ },
1893
+ filter: {
1894
+ advance: {
1895
+ enabled: true,
1896
+ },
1897
+ }
1898
+ },
1899
+ validations: [
1900
+ {
1901
+ rule: 'required',
1902
+ },
1903
+ ],
1904
+ },
1905
+ {
1906
+ name: 'sourceStatic',
1907
+ title: `t("sourceStatic", { scope: "${i18n}" })`,
1908
+ groupId: 'dataSource',
1909
+ schema: {
1910
+ dataType: 'string',
1911
+ interface: {
1912
+ type: AXPWidgetsCatalog.table,
1913
+ options: {
1914
+ //TODO problem selectBox!
1915
+ visibility: '{{context.eval("sourceType")?.name == "static" }}',
1916
+ columns: '{{context.eval("columns")}}',
1917
+ defaultRowCount: 2,
1918
+ },
1919
+ },
1920
+ },
1921
+ validations: [
1922
+ {
1923
+ rule: 'required',
1924
+ },
1925
+ ],
1926
+ },
1927
+ {
1928
+ name: 'sourceEntity',
1929
+ title: `t("sourceEntity", { scope: "${i18n}" })`,
1930
+ groupId: 'dataSource',
1931
+ schema: {
1932
+ dataType: 'string',
1933
+ interface: {
1934
+ type: AXPWidgetsCatalog.select,
1935
+ options: {
1936
+ //TODO problem selectBox!
1937
+ visibility: '{{context.eval("sourceType")?.name == "entity" }}',
1938
+ valueField: 'name',
1939
+ textField: 'title',
1940
+ dataSource: new AXDataSource({
1941
+ load: async (e) => {
1942
+ // First, retrieve all entities (make sure this returns a promise or an array)
1943
+ const entities = entitiesService.getAll();
1944
+ // Map each entity to a promise that performs the translation
1945
+ const translatedEntities = await Promise.all(entities.map(async (entity) => ({
1946
+ ...entity,
1947
+ name: `${entity.module}.${entity.name}`,
1948
+ title: await translationService.translateAsync(entity.title),
1949
+ })));
1950
+ return {
1951
+ total: translatedEntities.length,
1952
+ items: translatedEntities,
1953
+ };
1954
+ },
1955
+ pageSize: 1000,
1956
+ }),
1957
+ },
1958
+ triggers: [
1959
+ {
1960
+ event: "{{ events.context('sourceEntity') }}",
1961
+ action: `{{ (async () => { const columns = await Promise.all(context.eval('sourceEntity').properties.filter((x) => x.schema.interface != null && x.schema.interface.type != null).map(async (item) => { return { name: item.name, title: await methods.translate(item.title), type: { title: await methods.widgetInfo(item.schema.interface.type)?.title, name: item.schema.interface.type }, options: item.schema.interface.options }; })); context.set('columns', columns); })(); }}`,
1962
+ },
1963
+ ],
1964
+ },
1965
+ },
1966
+ validations: [
1967
+ // {
1968
+ // rule: 'required',
1969
+ // disabled: true,
1970
+ // },
1971
+ ],
1972
+ },
1973
+ {
1974
+ name: 'textField',
1975
+ title: `t("textField", { scope: "${i18n}" })`,
1976
+ groupId: 'dataSource',
1977
+ schema: {
1978
+ dataType: 'string',
1979
+ interface: {
1980
+ type: AXPWidgetsCatalog.select,
1981
+ options: {
1982
+ valueField: 'name',
1983
+ textField: 'title',
1984
+ dataSource: `{{ context.eval('columns') }}`,
1985
+ },
1986
+ triggers: [
1987
+ {
1988
+ event: '{{ events.context("columns*") }}',
1989
+ action: "{{ widget.call('clear'); }}",
1990
+ },
1991
+ ],
1992
+ },
1993
+ },
1994
+ validations: [
1995
+ {
1996
+ rule: 'required',
1997
+ },
1998
+ ],
1999
+ },
2000
+ {
2001
+ name: 'valueField',
2002
+ title: `t("valueField", { scope: "${i18n}" })`,
2003
+ groupId: 'dataSource',
2004
+ schema: {
2005
+ dataType: 'string',
2006
+ interface: {
2007
+ type: AXPWidgetsCatalog.select,
2008
+ options: {
2009
+ valueField: 'name',
2010
+ textField: 'title',
2011
+ dataSource: `{{ context.eval('columns') }}`,
2012
+ },
2013
+ triggers: [
2014
+ {
2015
+ event: "{{ events.context('columns*') }}",
2016
+ action: "{{ widget.call('clear'); }}",
2017
+ },
2018
+ ],
2019
+ },
2020
+ },
2021
+ validations: [
2022
+ {
2023
+ rule: 'required',
2024
+ },
2025
+ ],
2026
+ },
2027
+ ],
2028
+ columns: [{ name: 'name' }, { name: 'title' }, { name: 'sourceType' }],
2029
+ commands: {
2030
+ create: {
2031
+ execute: async (data) => {
2032
+ debugger;
2033
+ if (data.sourceType.name == 'entity') {
2034
+ data.sourceEntity = data.sourceEntity?.name;
2035
+ }
2036
+ const res = await dataService.insertOne(data);
2037
+ return { id: res };
2038
+ },
2039
+ },
2040
+ delete: {
2041
+ execute: async (id) => {
2042
+ return await dataService.deleteOne(id);
2043
+ },
2044
+ },
2045
+ update: {
2046
+ execute: async (data) => {
2047
+ return await dataService.updateOne(data.id, data);
2048
+ },
2049
+ },
2050
+ },
2051
+ queries: {
2052
+ byKey: {
2053
+ execute: async (id) => {
2054
+ return await dataService.getOne(id);
2055
+ },
2056
+ type: AXPEntityQueryType.Single,
2057
+ },
2058
+ list: {
2059
+ execute: async (e) => {
2060
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2061
+ },
2062
+ type: AXPEntityQueryType.List,
2063
+ },
2064
+ },
2065
+ interfaces: {
2066
+ master: {
2067
+ create: {
2068
+ sections: [
2069
+ {
2070
+ id: 'dataSource',
2071
+ },
2072
+ ],
2073
+ properties: [
2074
+ {
2075
+ name: 'name',
2076
+ layout: {
2077
+ positions: {
2078
+ lg: {
2079
+ colSpan: 6,
2080
+ order: 1,
2081
+ },
2082
+ },
2083
+ },
2084
+ },
2085
+ {
2086
+ name: 'title',
2087
+ layout: {
2088
+ positions: {
2089
+ lg: {
2090
+ colSpan: 6,
2091
+ order: 2,
2092
+ },
2093
+ },
2094
+ },
2095
+ },
2096
+ {
2097
+ name: 'columns',
2098
+ layout: {
2099
+ positions: {
2100
+ lg: {
2101
+ colSpan: 12,
2102
+ order: 5,
2103
+ },
2104
+ },
2105
+ },
2106
+ },
2107
+ {
2108
+ name: 'samples',
2109
+ layout: {
2110
+ positions: {
2111
+ lg: {
2112
+ colSpan: 12,
2113
+ order: 11,
2114
+ },
2115
+ },
2116
+ },
2117
+ },
2118
+ {
2119
+ name: 'textField',
2120
+ layout: {
2121
+ positions: {
2122
+ lg: {
2123
+ colSpan: 6,
2124
+ order: 6,
2125
+ },
2126
+ },
2127
+ },
2128
+ },
2129
+ {
2130
+ name: 'valueField',
2131
+ layout: {
2132
+ positions: {
2133
+ lg: {
2134
+ colSpan: 6,
2135
+ order: 7,
2136
+ },
2137
+ },
2138
+ },
2139
+ },
2140
+ {
2141
+ name: 'sourceType',
2142
+ layout: {
2143
+ positions: {
2144
+ lg: {
2145
+ colSpan: 6,
2146
+ order: 3,
2147
+ },
2148
+ },
2149
+ },
2150
+ },
2151
+ {
2152
+ name: 'sourceStatic',
2153
+ layout: {
2154
+ positions: {
2155
+ lg: {
2156
+ colSpan: 6,
2157
+ order: 4,
2158
+ },
2159
+ },
2160
+ },
2161
+ },
2162
+ {
2163
+ name: 'sourceEntity',
2164
+ layout: {
2165
+ positions: {
2166
+ lg: {
2167
+ colSpan: 6,
2168
+ order: 4,
2169
+ },
2170
+ },
2171
+ },
2172
+ },
2173
+ ],
2174
+ },
2175
+ update: {
2176
+ sections: [
2177
+ {
2178
+ id: 'dataSource',
2179
+ },
2180
+ ],
2181
+ properties: [
2182
+ {
2183
+ name: 'name',
2184
+ layout: {
2185
+ positions: {
2186
+ lg: {
2187
+ colSpan: 6,
2188
+ order: 1,
2189
+ },
2190
+ },
2191
+ },
2192
+ },
2193
+ {
2194
+ name: 'title',
2195
+ layout: {
2196
+ positions: {
2197
+ lg: {
2198
+ colSpan: 6,
2199
+ order: 2,
2200
+ },
2201
+ },
2202
+ },
2203
+ },
2204
+ {
2205
+ name: 'columns',
2206
+ layout: {
2207
+ positions: {
2208
+ lg: {
2209
+ colSpan: 12,
2210
+ order: 5,
2211
+ },
2212
+ },
2213
+ },
2214
+ },
2215
+ {
2216
+ name: 'textField',
2217
+ layout: {
2218
+ positions: {
2219
+ lg: {
2220
+ colSpan: 6,
2221
+ order: 6,
2222
+ },
2223
+ },
2224
+ },
2225
+ },
2226
+ {
2227
+ name: 'valueField',
2228
+ layout: {
2229
+ positions: {
2230
+ lg: {
2231
+ colSpan: 6,
2232
+ order: 7,
2233
+ },
2234
+ },
2235
+ },
2236
+ },
2237
+ {
2238
+ name: 'samples',
2239
+ layout: {
2240
+ positions: {
2241
+ lg: {
2242
+ colSpan: 12,
2243
+ order: 10,
2244
+ },
2245
+ },
2246
+ },
2247
+ },
2248
+ {
2249
+ name: 'sourceEntity',
2250
+ layout: {
2251
+ positions: {
2252
+ lg: {
2253
+ colSpan: 12,
2254
+ order: 4,
2255
+ },
2256
+ },
2257
+ },
2258
+ },
2259
+ {
2260
+ name: 'sourceStatic',
2261
+ layout: {
2262
+ positions: {
2263
+ lg: {
2264
+ colSpan: 12,
2265
+ order: 4,
2266
+ },
2267
+ },
2268
+ },
2269
+ },
2270
+ ],
2271
+ },
2272
+ single: {
2273
+ title: '{{title}}',
2274
+ sections: [
2275
+ {
2276
+ id: 'dataSource',
2277
+ },
2278
+ ],
2279
+ properties: [
2280
+ {
2281
+ name: 'name',
2282
+ layout: {
2283
+ positions: {
2284
+ lg: {
2285
+ colSpan: 6,
2286
+ order: 1,
2287
+ },
2288
+ },
2289
+ },
2290
+ },
2291
+ {
2292
+ name: 'title',
2293
+ layout: {
2294
+ positions: {
2295
+ lg: {
2296
+ colSpan: 6,
2297
+ order: 2,
2298
+ },
2299
+ },
2300
+ },
2301
+ },
2302
+ {
2303
+ name: 'columns',
2304
+ layout: {
2305
+ positions: {
2306
+ lg: {
2307
+ colSpan: 12,
2308
+ order: 3,
2309
+ },
2310
+ },
2311
+ },
2312
+ },
2313
+ {
2314
+ name: 'sourceType',
2315
+ layout: {
2316
+ positions: {
2317
+ lg: {
2318
+ colSpan: 6,
2319
+ order: 4,
2320
+ },
2321
+ },
2322
+ },
2323
+ },
2324
+ {
2325
+ name: 'sourceEntity',
2326
+ layout: {
2327
+ positions: {
2328
+ lg: {
2329
+ colSpan: 6,
2330
+ order: 5,
2331
+ },
2332
+ },
2333
+ },
2334
+ },
2335
+ {
2336
+ name: 'sourceStatic',
2337
+ layout: {
2338
+ positions: {
2339
+ lg: {
2340
+ colSpan: 6,
2341
+ order: 5,
2342
+ },
2343
+ },
2344
+ },
2345
+ },
2346
+ {
2347
+ name: 'samples',
2348
+ layout: {
2349
+ positions: {
2350
+ lg: {
2351
+ colSpan: 12,
2352
+ order: 10,
2353
+ },
2354
+ },
2355
+ },
2356
+ },
2357
+ {
2358
+ name: 'textField',
2359
+ layout: {
2360
+ positions: {
2361
+ lg: {
2362
+ colSpan: 6,
2363
+ order: 7,
2364
+ },
2365
+ },
2366
+ },
2367
+ },
2368
+ {
2369
+ name: 'valueField',
2370
+ layout: {
2371
+ positions: {
2372
+ lg: {
2373
+ colSpan: 6,
2374
+ order: 8,
2375
+ },
2376
+ },
2377
+ },
2378
+ },
2379
+ ],
2380
+ actions: [],
2381
+ },
2382
+ list: {
2383
+ actions: [
2384
+ {
2385
+ title: `t("create", { scope: "common" })`,
2386
+ command: {
2387
+ name: 'create-entity',
2388
+ options: {
2389
+ layout: {
2390
+ size: 'lg',
2391
+ },
2392
+ },
2393
+ },
2394
+ priority: 'primary',
2395
+ type: 'create',
2396
+ scope: AXPEntityCommandScope.TypeLevel,
2397
+ },
2398
+ {
2399
+ title: 't("deleteItems", { scope: "common" })',
2400
+ command: 'delete-entity',
2401
+ priority: 'primary',
2402
+ type: 'delete',
2403
+ scope: AXPEntityCommandScope.Selected,
2404
+ },
2405
+ {
2406
+ title: 't("detail", { scope: "common" })',
2407
+ command: 'open-entity',
2408
+ priority: 'primary',
2409
+ type: 'view',
2410
+ scope: AXPEntityCommandScope.Individual,
2411
+ },
2412
+ {
2413
+ title: 't("delete", { scope: "common" })',
2414
+ command: 'delete-entity',
2415
+ priority: 'primary',
2416
+ type: 'delete',
2417
+ scope: AXPEntityCommandScope.Individual,
2418
+ },
2419
+ {
2420
+ title: 't("entity.modify", { scope: "common" })',
2421
+ command: 'quick-modify-entity',
2422
+ priority: 'secondary',
2423
+ type: 'update',
2424
+ scope: AXPEntityCommandScope.Individual,
2425
+ },
2426
+ ],
2427
+ views: [
2428
+ createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),
2429
+ createQueryView('static', `t("static", { scope: "${i18n}" })`, true, {
2430
+ conditions: [
2431
+ {
2432
+ name: 'sourceType.name',
2433
+ operator: {
2434
+ type: 'equal',
2435
+ },
2436
+ value: 'static',
2437
+ }
2438
+ ]
2439
+ }),
2440
+ createQueryView('entity', `t("entity", { scope: "${i18n}" })`, true, {
2441
+ conditions: [
2442
+ {
2443
+ name: 'sourceType.name',
2444
+ operator: {
2445
+ type: 'equal',
2446
+ },
2447
+ value: 'entity',
2448
+ }
2449
+ ]
2450
+ }),
2451
+ ],
2452
+ },
2453
+ },
2454
+ },
2455
+ };
2456
+ return entityDef;
2457
+ }
2458
+
2459
+ class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
2460
+ }
2461
+ class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
2462
+ constructor() {
2463
+ super(`${RootConfig.module.name}.${RootConfig.entities.globalVariable.name}`);
2464
+ }
2465
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2466
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
2467
+ }
2468
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
2469
+ type: Injectable
2470
+ }], ctorParameters: () => [] });
2471
+
2472
+ async function globalVariableEntityFactory(injector) {
2473
+ const dataService = injector.get(AXMGlobalVariablesService);
2474
+ const i18n = RootConfig.config.i18n;
2475
+ const entityDef = {
2476
+ module: RootConfig.module.name,
2477
+ name: RootConfig.entities.globalVariable.name,
2478
+ source: '',
2479
+ title: RootConfig.entities.globalVariable.title,
2480
+ formats: {
2481
+ individual: 'Global Variable',
2482
+ plural: 'Global Variables',
2483
+ },
2484
+ relatedEntities: [],
2485
+ groups: [
2486
+ {
2487
+ id: 'section',
2488
+ title: 'Global Variable',
2489
+ },
2490
+ ],
2491
+ properties: [
2492
+ {
2493
+ name: 'name',
2494
+ title: `t("name", { scope: "common" })`,
2495
+ groupId: 'section',
2496
+ schema: {
2497
+ dataType: 'string',
2498
+ interface: {
2499
+ type: AXPWidgetsCatalog.text,
2500
+ },
2501
+ },
2502
+ validations: [
2503
+ {
2504
+ rule: 'required',
2505
+ },
2506
+ ],
2507
+ options: {
2508
+ filter: {
2509
+ inline: {
2510
+ enabled: true,
2511
+ },
2512
+ },
2513
+ sort: {
2514
+ enabled: true,
2515
+ },
2516
+ },
2517
+ },
2518
+ {
2519
+ name: 'title',
2520
+ title: `t("title", { scope: "common" })`,
2521
+ groupId: 'section',
2522
+ schema: {
2523
+ dataType: 'string',
2524
+ interface: {
2525
+ type: AXPWidgetsCatalog.text,
2526
+ },
2527
+ },
2528
+ validations: [
2529
+ {
2530
+ rule: 'required',
2531
+ },
2532
+ ],
2533
+ options: {
2534
+ filter: {
2535
+ inline: {
2536
+ enabled: true,
2537
+ },
2538
+ },
2539
+ sort: {
2540
+ enabled: true,
2541
+ },
2542
+ },
2543
+ },
2544
+ {
2545
+ name: 'value',
2546
+ title: `t("value", { scope: "${i18n}" })`,
2547
+ groupId: 'section',
2548
+ schema: {
2549
+ dataType: 'string',
2550
+ interface: {
2551
+ type: AXPWidgetsCatalog.text,
2552
+ },
2553
+ },
2554
+ validations: [
2555
+ {
2556
+ rule: 'required',
2557
+ },
2558
+ ],
2559
+ },
2560
+ {
2561
+ name: 'dataType',
2562
+ title: `t("dataType", { scope: "${i18n}" })`,
2563
+ groupId: 'section',
2564
+ schema: {
2565
+ dataType: 'string',
2566
+ interface: {
2567
+ type: AXPWidgetsCatalog.select,
2568
+ options: {
2569
+ valueField: 'name',
2570
+ textField: 'title',
2571
+ dataSource: [
2572
+ { title: 'String', name: 'String' },
2573
+ { title: 'Integer', name: 'integer' },
2574
+ { title: 'Date Time', name: 'dateTime' },
2575
+ { title: 'Boolean', name: 'boolean' },
2576
+ { title: 'Function', name: 'function' },
2577
+ { title: 'Custom', name: 'custom' },
2578
+ ],
2579
+ direction: 'horizontal',
2580
+ multiple: false,
2581
+ },
2582
+ },
2583
+ },
2584
+ validations: [
2585
+ {
2586
+ rule: 'required',
2587
+ },
2588
+ ],
2589
+ options: {
2590
+ filter: {
2591
+ advance: {
2592
+ enabled: true,
2593
+ },
2594
+ },
2595
+ sort: {
2596
+ enabled: true,
2597
+ },
2598
+ },
2599
+ },
2600
+ ],
2601
+ columns: [{ name: 'title' }, { name: 'dataType' }, { name: 'value' }],
2602
+ commands: {
2603
+ create: {
2604
+ execute: async (data) => {
2605
+ return Promise.resolve({ id: await dataService.insertOne(data) });
2606
+ },
2607
+ },
2608
+ delete: {
2609
+ execute: async (id) => {
2610
+ await await dataService.deleteOne(id);
2611
+ return Promise.resolve();
2612
+ },
2613
+ },
2614
+ update: {
2615
+ execute: async (data) => {
2616
+ return new Promise((resolve) => {
2617
+ setTimeout(async () => {
2618
+ await dataService.updateOne(data.id, data);
2619
+ resolve(data);
2620
+ }, 1000);
2621
+ });
2622
+ },
2623
+ },
2624
+ },
2625
+ queries: {
2626
+ byKey: {
2627
+ execute: async (id) => {
2628
+ return new Promise((resolve) => {
2629
+ setTimeout(async () => {
2630
+ const entity = await dataService.getOne(id);
2631
+ resolve(entity);
2632
+ }, 500);
2633
+ });
2634
+ },
2635
+ type: AXPEntityQueryType.Single,
2636
+ },
2637
+ list: {
2638
+ execute: async (e) => {
2639
+ const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2640
+ console.log(x);
2641
+ return x;
2642
+ },
2643
+ type: AXPEntityQueryType.List,
2644
+ },
2645
+ },
2646
+ interfaces: {
2647
+ master: {
2648
+ create: {
2649
+ sections: [
2650
+ {
2651
+ id: 'section',
2652
+ },
2653
+ ],
2654
+ properties: [
2655
+ {
2656
+ name: 'title',
2657
+ layout: {
2658
+ positions: {
2659
+ lg: {
2660
+ colSpan: 6,
2661
+ },
2662
+ },
2663
+ },
2664
+ },
2665
+ {
2666
+ name: 'name',
2667
+ layout: {
2668
+ positions: {
2669
+ lg: {
2670
+ colSpan: 6,
2671
+ },
2672
+ },
2673
+ },
2674
+ },
2675
+ {
2676
+ name: 'value',
2677
+ layout: {
2678
+ positions: {
2679
+ lg: {
2680
+ colSpan: 6,
2681
+ },
2682
+ },
2683
+ },
2684
+ },
2685
+ {
2686
+ name: 'dataType',
2687
+ layout: {
2688
+ positions: {
2689
+ lg: {
2690
+ colSpan: 6,
2691
+ },
2692
+ },
2693
+ },
2694
+ },
2695
+ ],
2696
+ },
2697
+ update: {
2698
+ sections: [
2699
+ {
2700
+ id: 'section',
2701
+ },
2702
+ ],
2703
+ properties: [
2704
+ {
2705
+ name: 'title',
2706
+ layout: {
2707
+ positions: {
2708
+ lg: {
2709
+ colSpan: 6,
2710
+ },
2711
+ },
2712
+ },
2713
+ },
2714
+ {
2715
+ name: 'name',
2716
+ layout: {
2717
+ positions: {
2718
+ lg: {
2719
+ colSpan: 6,
2720
+ },
2721
+ },
2722
+ },
2723
+ },
2724
+ {
2725
+ name: 'value',
2726
+ layout: {
2727
+ positions: {
2728
+ lg: {
2729
+ colSpan: 6,
2730
+ },
2731
+ },
2732
+ },
2733
+ },
2734
+ {
2735
+ name: 'dataType',
2736
+ layout: {
2737
+ positions: {
2738
+ lg: {
2739
+ colSpan: 6,
2740
+ },
2741
+ },
2742
+ },
2743
+ },
2744
+ ],
2745
+ },
2746
+ single: {
2747
+ title: '{{title}}',
2748
+ sections: [
2749
+ {
2750
+ id: 'section',
2751
+ },
2752
+ ],
2753
+ properties: [
2754
+ {
2755
+ name: 'title',
2756
+ layout: {
2757
+ positions: {
2758
+ lg: {
2759
+ colSpan: 6,
2760
+ },
2761
+ },
2762
+ },
2763
+ },
2764
+ {
2765
+ name: 'name',
2766
+ layout: {
2767
+ positions: {
2768
+ lg: {
2769
+ colSpan: 6,
2770
+ },
2771
+ },
2772
+ },
2773
+ },
2774
+ {
2775
+ name: 'value',
2776
+ layout: {
2777
+ positions: {
2778
+ lg: {
2779
+ colSpan: 6,
2780
+ },
2781
+ },
2782
+ },
2783
+ },
2784
+ {
2785
+ name: 'dataType',
2786
+ layout: {
2787
+ positions: {
2788
+ lg: {
2789
+ colSpan: 6,
2790
+ },
2791
+ },
2792
+ },
2793
+ },
2794
+ ],
2795
+ actions: [],
2796
+ },
2797
+ list: {
2798
+ actions: [
2799
+ {
2800
+ title: `t("create", { scope: "common" })`,
2801
+ command: 'create-entity',
2802
+ priority: 'primary',
2803
+ type: 'create',
2804
+ scope: AXPEntityCommandScope.TypeLevel,
2805
+ },
2806
+ {
2807
+ title: 't("deleteItems", { scope: "common" })',
2808
+ command: 'delete-entity',
2809
+ priority: 'primary',
2810
+ type: 'delete',
2811
+ scope: AXPEntityCommandScope.Selected,
2812
+ },
2813
+ {
2814
+ title: 't("deleteItems", { scope: "common" })',
2815
+ command: 'open-entity',
2816
+ priority: 'secondary',
2817
+ type: 'view',
2818
+ scope: AXPEntityCommandScope.Individual,
2819
+ },
2820
+ {
2821
+ title: 't("delete", { scope: "common" })',
2822
+ command: 'delete-entity',
2823
+ priority: 'secondary',
2824
+ type: 'delete',
2825
+ scope: AXPEntityCommandScope.Individual,
2826
+ },
2827
+ ],
2828
+ views: [
2829
+ {
2830
+ name: 'all',
2831
+ title: 't("allItem", { scope: "common" })',
2832
+ fixed: true,
2833
+ columns: [],
2834
+ conditions: [],
2835
+ sorts: [],
2836
+ },
2837
+ ],
2838
+ },
2839
+ },
2840
+ },
2841
+ };
2842
+ return entityDef;
2843
+ }
2844
+
2845
+ class AXMMetaDataDefinitionService extends AXMEntityCrudServiceImpl {
2846
+ }
2847
+ class AXMPMetaDataDefinitionServiceImpl extends AXMMetaDataDefinitionService {
2848
+ constructor() {
2849
+ super(`${RootConfig.module.name}.${RootConfig.entities.metaDataDefinition.name}`);
2850
+ }
2851
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPMetaDataDefinitionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2852
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPMetaDataDefinitionServiceImpl }); }
2853
+ }
2854
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPMetaDataDefinitionServiceImpl, decorators: [{
2855
+ type: Injectable
2856
+ }], ctorParameters: () => [] });
2857
+
2858
+ async function metaDataDefinitionFactory(injector) {
2859
+ const dataService = injector.get(AXMMetaDataDefinitionService);
2860
+ const entityDef = {
2861
+ module: RootConfig.module.name,
2862
+ name: RootConfig.entities.metaDataDefinition.name,
2863
+ source: '',
2864
+ title: RootConfig.entities.metaDataDefinition.title,
2865
+ formats: {
2866
+ individual: RootConfig.entities.metaDataDefinition.title,
2867
+ plural: RootConfig.entities.metaDataDefinition.titlePlural,
2868
+ searchResult: {
2869
+ title: '{{ title }}',
2870
+ description: RootConfig.module.title,
2871
+ },
2872
+ },
2873
+ relatedEntities: [],
2874
+ groups: [
2875
+ {
2876
+ id: 'section',
2877
+ title: RootConfig.entities.metaDataDefinition.title,
2878
+ },
2879
+ ],
2880
+ properties: [
2881
+ {
2882
+ name: 'name',
2883
+ title: 't("name", { scope: "common" })',
2884
+ groupId: 'section',
2885
+ options: {
2886
+ sort: {
2887
+ enabled: true,
2888
+ },
2889
+ },
2890
+ schema: {
2891
+ dataType: 'string',
2892
+ interface: {
2893
+ type: AXPWidgetsCatalog.text,
2894
+ },
2895
+ },
2896
+ validations: [
2897
+ {
2898
+ rule: 'required',
2899
+ },
2900
+ ],
2901
+ },
2902
+ {
2903
+ name: 'title',
2904
+ title: 't("title", { scope: "common" })',
2905
+ groupId: 'section',
2906
+ schema: {
2907
+ dataType: 'string',
2908
+ interface: {
2909
+ type: AXPWidgetsCatalog.text,
2910
+ },
2911
+ },
2912
+ validations: [
2913
+ {
2914
+ rule: 'required',
2915
+ },
2916
+ ],
2917
+ },
2918
+ {
2919
+ name: 'description',
2920
+ title: 't("description", { scope: "common" })',
2921
+ groupId: 'section',
2922
+ schema: {
2923
+ dataType: 'string',
2924
+ interface: {
2925
+ type: AXPWidgetsCatalog.text,
2926
+ },
2927
+ },
2928
+ },
2929
+ {
2930
+ name: 'categoryId',
2931
+ title: 't("category", { scope: "common" })',
2932
+ groupId: 'section',
2933
+ schema: {
2934
+ dataType: 'string',
2935
+ interface: {
2936
+ type: AXPWidgetsCatalog.lookup,
2937
+ options: {
2938
+ entity: `${RootConfig.module.name}.${RootConfig.entities.metaDataDefinitionCategory.name}`,
2939
+ expose: [
2940
+ { source: 'id', target: 'categoryId' },
2941
+ { source: 'title', target: 'category.title' },
2942
+ ],
2943
+ },
2944
+ },
2945
+ },
2946
+ validations: [
2947
+ {
2948
+ rule: 'required',
2949
+ },
2950
+ ],
2951
+ },
2952
+ {
2953
+ name: 'interface',
2954
+ title: 't("interface", { scope: "common" })',
2955
+ groupId: 'section',
2956
+ schema: {
2957
+ dataType: 'string',
2958
+ interface: {
2959
+ type: AXPWidgetsCatalog.templateDesigner,
2960
+ options: {
2961
+ embedded: true,
2962
+ },
2963
+ },
2964
+ },
2965
+ validations: [
2966
+ {
2967
+ rule: 'required',
2968
+ },
2969
+ ],
2970
+ },
2971
+ ],
2972
+ columns: [
2973
+ { name: 'name' },
2974
+ { name: 'title' },
2975
+ { name: 'description' },
2976
+ { name: 'categoryId', options: { dataPath: 'category.title' } },
2977
+ ],
2978
+ commands: {
2979
+ create: {
2980
+ execute: async (data) => {
2981
+ const res = await dataService.insertOne(data);
2982
+ return { id: res };
2983
+ },
2984
+ },
2985
+ delete: {
2986
+ execute: async (id) => {
2987
+ return await dataService.deleteOne(id);
2988
+ },
2989
+ },
2990
+ update: {
2991
+ execute: async (data) => {
2992
+ return await dataService.updateOne(data.id, data);
2993
+ },
2994
+ },
2995
+ },
2996
+ queries: {
2997
+ byKey: {
2998
+ execute: async (id) => {
2999
+ return await dataService.getOne(id);
3000
+ },
3001
+ type: AXPEntityQueryType.Single,
3002
+ },
3003
+ list: {
3004
+ execute: async (e) => {
3005
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
3006
+ },
3007
+ type: AXPEntityQueryType.List,
3008
+ },
3009
+ },
3010
+ interfaces: {
3011
+ master: {
3012
+ create: {
3013
+ sections: [
3014
+ {
3015
+ id: 'section',
3016
+ },
3017
+ ],
3018
+ properties: [
3019
+ {
3020
+ name: 'name',
3021
+ layout: {
3022
+ positions: {
3023
+ lg: {
3024
+ colSpan: 6,
3025
+ },
3026
+ },
3027
+ },
3028
+ },
3029
+ {
3030
+ name: 'title',
3031
+ layout: {
3032
+ positions: {
3033
+ lg: {
3034
+ colSpan: 6,
3035
+ },
3036
+ },
3037
+ },
3038
+ },
3039
+ {
3040
+ name: 'categoryId',
3041
+ layout: {
3042
+ positions: {
3043
+ lg: {
3044
+ colSpan: 6,
3045
+ },
3046
+ },
3047
+ },
3048
+ },
3049
+ {
3050
+ name: 'interface',
3051
+ layout: {
3052
+ positions: {
3053
+ lg: {
3054
+ colSpan: 6,
3055
+ },
3056
+ },
3057
+ },
3058
+ },
3059
+ ],
3060
+ },
3061
+ update: {
3062
+ sections: [
3063
+ {
3064
+ id: 'section',
3065
+ },
3066
+ ],
3067
+ properties: [
3068
+ {
3069
+ name: 'name',
3070
+ layout: {
3071
+ positions: {
3072
+ lg: {
3073
+ colSpan: 6,
3074
+ },
3075
+ },
3076
+ },
3077
+ },
3078
+ {
3079
+ name: 'title',
3080
+ layout: {
3081
+ positions: {
3082
+ lg: {
3083
+ colSpan: 6,
3084
+ },
3085
+ },
3086
+ },
3087
+ },
3088
+ {
3089
+ name: 'categoryId',
3090
+ layout: {
3091
+ positions: {
3092
+ lg: {
3093
+ colSpan: 6,
3094
+ },
3095
+ },
3096
+ },
3097
+ },
3098
+ {
3099
+ name: 'interface',
3100
+ layout: {
3101
+ positions: {
3102
+ lg: {
3103
+ colSpan: 6,
3104
+ },
3105
+ },
3106
+ },
3107
+ },
3108
+ ],
3109
+ },
3110
+ single: {
3111
+ title: '{{title}}',
3112
+ sections: [
3113
+ {
3114
+ id: 'section',
3115
+ layout: {
3116
+ positions: {
3117
+ lg: {
3118
+ colSpan: 12,
3119
+ },
3120
+ },
3121
+ },
3122
+ },
3123
+ ],
3124
+ properties: [
3125
+ {
3126
+ name: 'name',
3127
+ layout: {
3128
+ positions: {
3129
+ lg: {
3130
+ colSpan: 6,
3131
+ },
3132
+ },
3133
+ },
3134
+ },
3135
+ {
3136
+ name: 'title',
3137
+ layout: {
3138
+ positions: {
3139
+ lg: {
3140
+ colSpan: 6,
3141
+ },
3142
+ },
3143
+ },
3144
+ },
3145
+ {
3146
+ name: 'categoryId',
3147
+ layout: {
3148
+ positions: {
3149
+ lg: {
3150
+ colSpan: 6,
3151
+ },
3152
+ },
3153
+ },
3154
+ },
3155
+ {
3156
+ name: 'interface',
3157
+ layout: {
3158
+ positions: {
3159
+ lg: {
3160
+ colSpan: 6,
3161
+ },
3162
+ },
3163
+ },
3164
+ },
3165
+ ],
3166
+ actions: [],
3167
+ },
3168
+ list: {
3169
+ actions: [
3170
+ {
3171
+ title: `t("create", { scope: "common" })`,
3172
+ command: 'create-entity',
3173
+ priority: 'primary',
3174
+ type: 'create',
3175
+ scope: AXPEntityCommandScope.TypeLevel,
3176
+ },
3177
+ {
3178
+ title: 't("deleteItems", { scope: "common" })',
3179
+ command: 'delete-entity',
3180
+ priority: 'primary',
3181
+ type: 'delete',
3182
+ scope: AXPEntityCommandScope.Selected,
3183
+ },
3184
+ {
3185
+ title: 't("detail", { scope: "common" })',
3186
+ command: 'open-entity',
3187
+ priority: 'secondary',
3188
+ type: 'view',
3189
+ scope: AXPEntityCommandScope.Individual,
3190
+ },
3191
+ {
3192
+ title: 't("delete", { scope: "common" })',
3193
+ command: 'delete-entity',
3194
+ priority: 'secondary',
3195
+ type: 'delete',
3196
+ scope: AXPEntityCommandScope.Individual,
3197
+ },
3198
+ ],
3199
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
3200
+ },
3201
+ },
3202
+ },
3203
+ };
3204
+ return entityDef;
3205
+ }
3206
+
3207
+ class AXMMetaDataDefinitionCategoryService extends AXMEntityCrudServiceImpl {
3208
+ }
3209
+ class AXMMetaDataDefinitionCategoryServiceImpl extends AXMMetaDataDefinitionCategoryService {
3210
+ constructor() {
3211
+ super(`${RootConfig.module.name}.${RootConfig.entities.metaDataDefinitionCategory.name}`);
3212
+ }
3213
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMMetaDataDefinitionCategoryServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3214
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMMetaDataDefinitionCategoryServiceImpl }); }
3215
+ }
3216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMMetaDataDefinitionCategoryServiceImpl, decorators: [{
3217
+ type: Injectable
3218
+ }], ctorParameters: () => [] });
3219
+
3220
+ async function metaDataDefinitionCategoryEntityFactory(injector) {
3221
+ const dataService = injector.get(AXMMetaDataDefinitionCategoryService);
3222
+ const i18n = RootConfig.config.i18n;
3223
+ const entityDef = {
3224
+ module: RootConfig.module.name,
3225
+ name: RootConfig.entities.metaDataDefinitionCategory.name,
3226
+ parentKey: 'parentId',
3227
+ source: '',
3228
+ title: RootConfig.entities.metaDataDefinitionCategory.title,
3229
+ formats: {
3230
+ individual: `t("metaDataDefinitionCategory", { scope: "${i18n}" })`,
3231
+ plural: `t("metaDataDefinitionCategories", { scope: "${i18n}" })`,
3232
+ searchResult: {
3233
+ title: '{{ title }}',
3234
+ description: RootConfig.module.title,
3235
+ },
3236
+ },
3237
+ relatedEntities: [],
3238
+ groups: [
3239
+ {
3240
+ id: 'section',
3241
+ title: `t("metaDataDefinitionCategory", { scope: "common" })`,
3242
+ },
3243
+ ],
3244
+ properties: [
3245
+ {
3246
+ name: 'title',
3247
+ title: `t("title",{ scope: "common" })`,
3248
+ groupId: 'section',
3249
+ schema: {
3250
+ dataType: 'string',
3251
+ interface: {
3252
+ type: AXPWidgetsCatalog.text,
3253
+ options: {
3254
+ width: '400px',
3255
+ },
3256
+ },
3257
+ },
3258
+ validations: [
3259
+ {
3260
+ rule: 'required',
3261
+ },
3262
+ ],
3263
+ },
3264
+ {
3265
+ name: 'parentId',
3266
+ title: `t("parent",{ scope: "${i18n}" })`,
3267
+ groupId: 'section',
3268
+ schema: {
3269
+ dataType: 'string',
3270
+ interface: {
3271
+ type: AXPWidgetsCatalog.lookup,
3272
+ options: {
3273
+ entity: `${RootConfig.module.name}.${RootConfig.entities.metaDataDefinitionCategory.name}`,
3274
+ },
3275
+ },
3276
+ },
3277
+ },
3278
+ ],
3279
+ columns: [{ name: 'title' }],
3280
+ commands: {
3281
+ create: {
3282
+ execute: async (data) => {
3283
+ const res = await dataService.insertOne(data);
3284
+ return { id: res };
3285
+ },
3286
+ },
3287
+ delete: {
3288
+ execute: async (id) => {
3289
+ return await dataService.deleteOne(id);
3290
+ },
3291
+ },
3292
+ update: {
3293
+ execute: async (data) => {
3294
+ return await dataService.updateOne(data.id, data);
3295
+ },
3296
+ },
3297
+ },
3298
+ queries: {
3299
+ byKey: {
3300
+ execute: async (id) => {
3301
+ return await dataService.getOne(id);
3302
+ },
3303
+ type: AXPEntityQueryType.Single,
3304
+ },
3305
+ list: {
3306
+ execute: async (e) => {
3307
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
3308
+ },
3309
+ type: AXPEntityQueryType.List,
3310
+ },
3311
+ },
3312
+ interfaces: {
3313
+ master: {
3314
+ create: {
3315
+ sections: [
3316
+ {
3317
+ id: 'section',
3318
+ },
3319
+ ],
3320
+ properties: [
3321
+ {
3322
+ name: 'title',
3323
+ layout: {
3324
+ positions: {
3325
+ lg: {
3326
+ colSpan: 12,
3327
+ },
3328
+ },
3329
+ },
3330
+ },
3331
+ {
3332
+ name: 'parentId',
3333
+ layout: {
3334
+ positions: {
3335
+ lg: {
3336
+ colSpan: 12,
3337
+ },
3338
+ },
3339
+ },
3340
+ },
3341
+ ],
3342
+ },
3343
+ update: {
3344
+ sections: [
3345
+ {
3346
+ id: 'section',
3347
+ },
3348
+ ],
3349
+ properties: [
3350
+ {
3351
+ name: 'title',
3352
+ layout: {
3353
+ positions: {
3354
+ lg: {
3355
+ colSpan: 12,
3356
+ },
3357
+ },
3358
+ },
3359
+ },
3360
+ {
3361
+ name: 'parentId',
3362
+ layout: {
3363
+ positions: {
3364
+ lg: {
3365
+ colSpan: 12,
3366
+ },
3367
+ },
3368
+ },
3369
+ },
3370
+ ],
3371
+ },
3372
+ single: {
3373
+ title: '{{title}}',
3374
+ sections: [
3375
+ {
3376
+ id: 'section',
3377
+ layout: {
3378
+ positions: {
3379
+ lg: {
3380
+ colSpan: 12,
3381
+ },
3382
+ },
3383
+ },
3384
+ },
3385
+ ],
3386
+ properties: [
3387
+ {
3388
+ name: 'title',
3389
+ layout: {
3390
+ positions: {
3391
+ lg: {
3392
+ colSpan: 6,
3393
+ },
3394
+ },
3395
+ },
3396
+ },
3397
+ ],
3398
+ actions: [],
3399
+ },
3400
+ list: {
3401
+ actions: [
3402
+ {
3403
+ title: `t("create", { scope: "common" })`,
3404
+ command: 'create-entity',
3405
+ priority: 'primary',
3406
+ type: 'create',
3407
+ scope: AXPEntityCommandScope.TypeLevel,
3408
+ },
3409
+ {
3410
+ title: 't("deleteItems", { scope: "common" })',
3411
+ command: 'delete-entity',
3412
+ priority: 'primary',
3413
+ type: 'delete',
3414
+ scope: AXPEntityCommandScope.Selected,
3415
+ },
3416
+ {
3417
+ title: 't("detail", { scope: "common" })',
3418
+ command: 'open-entity',
3419
+ priority: 'secondary',
3420
+ type: 'view',
3421
+ scope: AXPEntityCommandScope.Individual,
3422
+ },
3423
+ {
3424
+ title: 't("delete", { scope: "common" })',
3425
+ command: 'delete-entity',
3426
+ priority: 'secondary',
3427
+ type: 'delete',
3428
+ scope: AXPEntityCommandScope.Individual,
3429
+ },
3430
+ ],
3431
+ views: [createAllQueryView()],
3432
+ },
3433
+ },
3434
+ },
3435
+ };
3436
+ return entityDef;
3437
+ }
3438
+
3439
+ // Option 1: Class implementation
3440
+ // export class MetaDataDefinitionCategory implements AXMMetaDataDefinitionCategoryEntityModel {
3441
+ // id?: string;
3442
+ // title: string;
3443
+ // parentId?: string;
3444
+ // createdAt?: Date;
3445
+ // updatedAt?: Date;
3446
+ // createdBy?: string;
3447
+ // updatedBy?: string;
3448
+ // constructor(data: Omit<AXMMetaDataDefinitionCategoryEntityModel, 'x'>) {
3449
+ // this.id = data.id;
3450
+ // this.title = data.title;
3451
+ // this.parentId = data.parentId;
3452
+ // this.createdAt = data.createdAt;
3453
+ // this.updatedAt = data.updatedAt;
3454
+ // this.createdBy = data.createdBy;
3455
+ // this.updatedBy = data.updatedBy;
3456
+ // }
3457
+ // // Getter for x property
3458
+ // get x(): string {
3459
+ // return this.parentId ? `${this.title}_${this.parentId}` : this.title;
3460
+ // }
3461
+ // }
3462
+ // // Option 2: Factory function
3463
+ // export function createMetaDataDefinitionCategory(
3464
+ // data: Omit<AXMMetaDataDefinitionCategoryEntityModel, 'x'>
3465
+ // ): AXMMetaDataDefinitionCategoryEntityModel {
3466
+ // return {
3467
+ // ...data,
3468
+ // get x() {
3469
+ // return this.parentId ? `${this.title}_${this.parentId}` : this.title;
3470
+ // },
3471
+ // };
3472
+ // }
3473
+
3474
+ class AXMAppPromotionService extends AXMEntityCrudServiceImpl {
3475
+ }
3476
+ class AXMPromotionServiceImpl extends AXMEntityCrudServiceImpl {
3477
+ constructor() {
3478
+ super(`${RootConfig.module.name}.${RootConfig.entities.promotion.name}`);
3479
+ }
3480
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3481
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl }); }
3482
+ }
3483
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl, decorators: [{
3484
+ type: Injectable
3485
+ }], ctorParameters: () => [] });
3486
+
3487
+ class AXMPromotionSlotComponent {
3488
+ constructor() {
3489
+ this.notificationChannelService = inject(AXMAppPromotionService);
3490
+ this.listData = signal([]);
3491
+ this.fileStorage = inject(AXPFileStorageService);
3492
+ }
3493
+ async ngOnInit() {
3494
+ const channels = await this.notificationChannelService.query({
3495
+ skip: 0,
3496
+ take: 10000,
3497
+ // filter: {
3498
+ // field: 'type',
3499
+ // operator: { type: 'equal' },
3500
+ // value: 'promotion',
3501
+ // },
3502
+ });
3503
+ const filteredItems = channels.items.filter((x) => x.placement?.name == this.location);
3504
+ const mappedItems = await Promise.all(filteredItems.map(async (item) => {
3505
+ if (item.imageId != null) {
3506
+ const image = await this.fileStorage.getInfo(item.imageId);
3507
+ return {
3508
+ ...item,
3509
+ image: image,
3510
+ };
3511
+ }
3512
+ else {
3513
+ return item;
3514
+ }
3515
+ }));
3516
+ this.listData.set(mappedItems);
3517
+ }
3518
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3519
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMPromotionSlotComponent, isStandalone: true, selector: "acorex-platform-promotion-slot", ngImport: i0, template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
3520
+ }
3521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, decorators: [{
3522
+ type: Component,
3523
+ args: [{ selector: 'acorex-platform-promotion-slot', imports: [CommonModule, AXSafePipe], template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n" }]
3524
+ }] });
3525
+
3526
+ async function promotionEntityFactory(injector) {
3527
+ const dataService = injector.get(AXMAppPromotionService);
3528
+ const i18n = RootConfig.config.i18n;
3529
+ const entityDef = {
3530
+ module: RootConfig.module.name,
3531
+ name: RootConfig.entities.promotion.name,
3532
+ source: '',
3533
+ title: RootConfig.entities.promotion.title,
3534
+ formats: {
3535
+ individual: RootConfig.entities.promotion.title,
3536
+ plural: RootConfig.entities.promotion.titlePlural,
3537
+ searchResult: {
3538
+ title: '{{ title }}',
3539
+ description: RootConfig.module.title,
3540
+ },
3541
+ },
3542
+ relatedEntities: [],
3543
+ groups: [
3544
+ {
3545
+ id: 'promotion',
3546
+ title: 'Promotion',
3547
+ },
3548
+ ],
3549
+ properties: [
3550
+ {
3551
+ name: 'id',
3552
+ title: 'ID',
3553
+ schema: {
3554
+ dataType: 'uuid',
3555
+ hidden: true,
3556
+ nullable: false,
3557
+ readonly: true,
3558
+ unique: {
3559
+ enabled: true,
3560
+ },
3561
+ },
3562
+ options: {
3563
+ sort: {
3564
+ enabled: true,
3565
+ },
3566
+ },
3567
+ },
3568
+ {
3569
+ name: 'title',
3570
+ title: `t("title", { scope: "common" })`,
3571
+ groupId: 'promotion',
3572
+ schema: {
3573
+ dataType: 'string',
3574
+ interface: {
3575
+ type: AXPWidgetsCatalog.text,
3576
+ },
3577
+ },
3578
+ options: {
3579
+ sort: {
3580
+ enabled: true,
3581
+ },
3582
+ filter: {
3583
+ advance: {
3584
+ enabled: true,
3585
+ },
3586
+ inline: {
3587
+ enabled: true,
3588
+ },
3589
+ },
3590
+ },
3591
+ validations: [
3592
+ {
3593
+ rule: 'required',
3594
+ },
3595
+ ],
3596
+ },
3597
+ {
3598
+ name: 'body',
3599
+ title: `t("body", { scope: "${i18n}" })`,
3600
+ groupId: 'promotion',
3601
+ schema: {
3602
+ dataType: 'string',
3603
+ interface: {
3604
+ type: AXPWidgetsCatalog.richText,
3605
+ },
3606
+ },
3607
+ validations: [
3608
+ {
3609
+ rule: 'required',
3610
+ },
3611
+ ],
3612
+ },
3613
+ {
3614
+ name: 'imageId',
3615
+ title: `t("Gallery", { scope: "${i18n}" })`,
3616
+ groupId: 'promotion',
3617
+ schema: {
3618
+ dataType: 'string',
3619
+ interface: {
3620
+ type: AXPWidgetsCatalog.documentAttachment,
3621
+ options: {
3622
+ multiple: true,
3623
+ entity: `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,
3624
+ record: '{{context.eval("id")}}',
3625
+ },
3626
+ },
3627
+ },
3628
+ },
3629
+ {
3630
+ name: 'contentType',
3631
+ title: `t("contentType", { scope: "${i18n}" })`,
3632
+ groupId: 'promotion',
3633
+ schema: {
3634
+ dataType: 'string',
3635
+ interface: {
3636
+ type: AXPWidgetsCatalog.select,
3637
+ options: {
3638
+ valueField: 'name',
3639
+ textField: 'title',
3640
+ dataSource: [
3641
+ { title: 'Media', name: 'media' },
3642
+ { title: 'Text', name: 'text' },
3643
+ ],
3644
+ direction: 'horizontal',
3645
+ multiple: false,
3646
+ },
3647
+ },
3648
+ },
3649
+ options: {
3650
+ sort: {
3651
+ enabled: true,
3652
+ },
3653
+ filter: {
3654
+ advance: {
3655
+ enabled: true,
3656
+ },
3657
+ },
3658
+ },
3659
+ validations: [
3660
+ {
3661
+ rule: 'required',
3662
+ },
3663
+ ],
3664
+ },
3665
+ // {
3666
+ // name: 'shape',
3667
+ // title: `t("shape", { scope: "${i18n}" })`,
3668
+ // groupId: 'promotion',
3669
+ // schema: {
3670
+ // dataType: 'string',
3671
+ // interface: {
3672
+ // type: AXPWidgetsCatalog.select,
3673
+ // options: {
3674
+ // valueField: 'name',
3675
+ // textField: 'title',
3676
+ // dataSource: [
3677
+ // { title: 'Circle', name: 'circle' },
3678
+ // { title: 'Square', name: 'square' },
3679
+ // ],
3680
+ // direction: 'horizontal',
3681
+ // multiple: false,
3682
+ // accept: '',
3683
+ // },
3684
+ // },
3685
+ // },
3686
+ // validations: [
3687
+ // {
3688
+ // rule: 'required',
3689
+ // },
3690
+ // ],
3691
+ // },
3692
+ {
3693
+ name: 'placement',
3694
+ title: `t("placement", { scope: "${i18n}" })`,
3695
+ groupId: 'promotion',
3696
+ schema: {
3697
+ dataType: 'string',
3698
+ interface: {
3699
+ type: AXPWidgetsCatalog.select,
3700
+ options: {
3701
+ valueField: 'name',
3702
+ textField: 'title',
3703
+ dataSource: [
3704
+ {
3705
+ title: 'Side Menu Footer',
3706
+ name: 'side-menu-footer',
3707
+ options: AXM_COLUMN_DEF_WIDGET,
3708
+ },
3709
+ {
3710
+ title: 'Side Menu Header',
3711
+ name: 'side-menu-header',
3712
+ options: [
3713
+ {
3714
+ type: 'text-editor',
3715
+ mode: 'edit',
3716
+ path: 'name',
3717
+ options: {
3718
+ placeholder: 'Name',
3719
+ defaultValue: 'test',
3720
+ },
3721
+ },
3722
+ ],
3723
+ },
3724
+ ],
3725
+ direction: 'horizontal',
3726
+ multiple: false,
3727
+ },
3728
+ },
3729
+ },
3730
+ validations: [
3731
+ {
3732
+ rule: 'required',
3733
+ },
3734
+ ],
3735
+ },
3736
+ // {
3737
+ // name: "metadaata",
3738
+ // title: "Meta Data",
3739
+ // groupId: 'promotion',
3740
+ // schema: {
3741
+ // dataType: 'object',
3742
+ // interface: {
3743
+ // type: AXPWidgetsCatalog.text,
3744
+ // // children: "{{ context.eval('placement').options }}" as any,
3745
+ // },
3746
+ // }
3747
+ //},
3748
+ // {
3749
+ // name: 'metadata',
3750
+ // title: `Meta Data`,
3751
+ // groupId: 'promotion',
3752
+ // schema: {
3753
+ // dataType: 'object',
3754
+ // interface: {
3755
+ // type: AXPWidgetsCatalog.blockLayout,
3756
+ // children: "{{ context.eval('placement')?.options ?? [] }}" as any,
3757
+ // },
3758
+ // },
3759
+ // },
3760
+ ],
3761
+ columns: [{ name: 'title' }, { name: 'placement' }],
3762
+ commands: {
3763
+ create: {
3764
+ execute: async (data) => {
3765
+ console.log(data);
3766
+ const res = await dataService.insertOne(data);
3767
+ return { id: res };
3768
+ },
3769
+ },
3770
+ delete: {
3771
+ execute: async (id) => {
3772
+ return await dataService.deleteOne(id);
3773
+ },
3774
+ },
3775
+ update: {
3776
+ execute: async (data) => {
3777
+ return await dataService.updateOne(data.id, data);
3778
+ },
3779
+ },
3780
+ },
3781
+ queries: {
3782
+ byKey: {
3783
+ execute: async (id) => {
3784
+ return await dataService.getOne(id);
3785
+ },
3786
+ type: AXPEntityQueryType.Single,
3787
+ },
3788
+ list: {
3789
+ execute: async (e) => {
3790
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
3791
+ },
3792
+ type: AXPEntityQueryType.List,
3793
+ },
3794
+ },
3795
+ interfaces: {
3796
+ master: {
3797
+ create: {
3798
+ sections: [
3799
+ {
3800
+ id: 'promotion',
3801
+ },
3802
+ ],
3803
+ properties: [
3804
+ {
3805
+ name: 'title',
3806
+ layout: {
3807
+ positions: {
3808
+ lg: {
3809
+ colSpan: 6,
3810
+ order: 1,
3811
+ },
3812
+ },
3813
+ },
3814
+ },
3815
+ {
3816
+ name: 'body',
3817
+ layout: {
3818
+ positions: {
3819
+ lg: {
3820
+ colSpan: 12,
3821
+ order: 5,
3822
+ },
3823
+ },
3824
+ },
3825
+ },
3826
+ {
3827
+ name: 'imageId',
3828
+ layout: {
3829
+ positions: {
3830
+ lg: {
3831
+ colSpan: 12,
3832
+ order: 6,
3833
+ },
3834
+ },
3835
+ },
3836
+ },
3837
+ {
3838
+ name: 'contentType',
3839
+ layout: {
3840
+ positions: {
3841
+ lg: {
3842
+ colSpan: 6,
3843
+ order: 2,
3844
+ },
3845
+ },
3846
+ },
3847
+ },
3848
+ {
3849
+ name: 'shape',
3850
+ layout: {
3851
+ positions: {
3852
+ lg: {
3853
+ colSpan: 6,
3854
+ order: 3,
3855
+ },
3856
+ },
3857
+ },
3858
+ },
3859
+ {
3860
+ name: 'placement',
3861
+ layout: {
3862
+ positions: {
3863
+ lg: {
3864
+ colSpan: 6,
3865
+ order: 4,
3866
+ },
3867
+ },
3868
+ },
3869
+ },
3870
+ {
3871
+ name: 'metadata',
3872
+ layout: {
3873
+ positions: {
3874
+ lg: {
3875
+ colSpan: 12,
3876
+ order: 10,
3877
+ },
3878
+ },
3879
+ },
3880
+ },
3881
+ ],
3882
+ },
3883
+ update: {
3884
+ sections: [
3885
+ {
3886
+ id: 'promotion',
3887
+ },
3888
+ ],
3889
+ properties: [
3890
+ {
3891
+ name: 'title',
3892
+ layout: {
3893
+ positions: {
3894
+ lg: {
3895
+ colSpan: 6,
3896
+ order: 1,
3897
+ },
3898
+ },
3899
+ },
3900
+ },
3901
+ {
3902
+ name: 'body',
3903
+ layout: {
3904
+ positions: {
3905
+ lg: {
3906
+ colSpan: 12,
3907
+ order: 5,
3908
+ },
3909
+ },
3910
+ },
3911
+ },
3912
+ {
3913
+ name: 'imageId',
3914
+ layout: {
3915
+ positions: {
3916
+ lg: {
3917
+ colSpan: 12,
3918
+ order: 6,
3919
+ },
3920
+ },
3921
+ },
3922
+ },
3923
+ {
3924
+ name: 'contentType',
3925
+ layout: {
3926
+ positions: {
3927
+ lg: {
3928
+ colSpan: 6,
3929
+ order: 2,
3930
+ },
3931
+ },
3932
+ },
3933
+ },
3934
+ {
3935
+ name: 'shape',
3936
+ layout: {
3937
+ positions: {
3938
+ lg: {
3939
+ colSpan: 6,
3940
+ order: 3,
3941
+ },
3942
+ },
3943
+ },
3944
+ },
3945
+ {
3946
+ name: 'placement',
3947
+ layout: {
3948
+ positions: {
3949
+ lg: {
3950
+ colSpan: 6,
3951
+ order: 4,
3952
+ },
3953
+ },
3954
+ },
3955
+ },
3956
+ // {
3957
+ // name: 'metadata',
3958
+ // layout: {
3959
+ // positions: {
3960
+ // lg: {
3961
+ // colSpan: 12,
3962
+ // order: 10,
3963
+ // },
3964
+ // },
3965
+ // },
3966
+ // },
3967
+ ],
3968
+ },
3969
+ single: {
3970
+ title: '{{title}}',
3971
+ sections: [
3972
+ {
3973
+ id: 'promotion',
3974
+ },
3975
+ ],
3976
+ properties: [
3977
+ {
3978
+ name: 'title',
3979
+ layout: {
3980
+ positions: {
3981
+ lg: {
3982
+ colSpan: 6,
3983
+ },
3984
+ },
3985
+ },
3986
+ },
3987
+ {
3988
+ name: 'body',
3989
+ layout: {
3990
+ positions: {
3991
+ lg: {
3992
+ colSpan: 6,
3993
+ },
3994
+ },
3995
+ },
3996
+ },
3997
+ {
3998
+ name: 'imageId',
3999
+ layout: {
4000
+ positions: {
4001
+ lg: {
4002
+ colSpan: 12,
4003
+ order: 2,
4004
+ },
4005
+ },
4006
+ },
4007
+ },
4008
+ {
4009
+ name: 'contentType',
4010
+ layout: {
4011
+ positions: {
4012
+ lg: {
4013
+ colSpan: 4,
4014
+ order: 4,
4015
+ },
4016
+ },
4017
+ },
4018
+ },
4019
+ {
4020
+ name: 'shape',
4021
+ layout: {
4022
+ positions: {
4023
+ lg: {
4024
+ colSpan: 4,
4025
+ order: 5,
4026
+ },
4027
+ },
4028
+ },
4029
+ },
4030
+ {
4031
+ name: 'placement',
4032
+ layout: {
4033
+ positions: {
4034
+ lg: {
4035
+ colSpan: 4,
4036
+ order: 6,
4037
+ },
4038
+ },
4039
+ },
4040
+ },
4041
+ ],
4042
+ actions: [],
4043
+ },
4044
+ list: {
4045
+ actions: [
4046
+ {
4047
+ title: `t("create", { scope: "common" })`,
4048
+ command: 'create-entity',
4049
+ priority: 'primary',
4050
+ type: 'create',
4051
+ scope: AXPEntityCommandScope.TypeLevel,
4052
+ },
4053
+ {
4054
+ title: 't("deleteItems", { scope: "common" })',
4055
+ command: 'delete-entity',
4056
+ priority: 'primary',
4057
+ type: 'delete',
4058
+ scope: AXPEntityCommandScope.Selected,
4059
+ },
4060
+ {
4061
+ title: 't("detail", { scope: "common" })',
4062
+ command: 'open-entity',
4063
+ priority: 'primary',
4064
+ type: 'view',
4065
+ scope: AXPEntityCommandScope.Individual,
4066
+ },
4067
+ {
4068
+ title: 't("delete", { scope: "common" })',
4069
+ command: 'delete-entity',
4070
+ priority: 'primary',
4071
+ type: 'delete',
4072
+ scope: AXPEntityCommandScope.Individual,
4073
+ },
4074
+ {
4075
+ title: 't("entity.modify", { scope: "common" })',
4076
+ command: 'quick-modify-entity',
4077
+ priority: 'secondary',
4078
+ type: 'update',
4079
+ scope: AXPEntityCommandScope.Individual,
4080
+ },
4081
+ ],
4082
+ views: [
4083
+ createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),
4084
+ createQueryView('media', `t("media", { scope: "${i18n}" })`, true, {
4085
+ conditions: [
4086
+ {
4087
+ name: 'contentType.name',
4088
+ operator: {
4089
+ type: 'equal',
4090
+ },
4091
+ value: 'media',
4092
+ },
4093
+ ],
4094
+ }),
4095
+ createQueryView('text', `t("text", { scope: "${i18n}" })`, true, {
4096
+ conditions: [
4097
+ {
4098
+ name: 'contentType.name',
4099
+ operator: {
4100
+ type: 'equal',
4101
+ },
4102
+ value: 'text',
4103
+ },
4104
+ ],
4105
+ }),
4106
+ ],
4107
+ },
4108
+ },
4109
+ },
4110
+ };
4111
+ return entityDef;
4112
+ }
4113
+
4114
+ var index = /*#__PURE__*/Object.freeze({
4115
+ __proto__: null,
4116
+ AXMAppPromotionService: AXMAppPromotionService,
4117
+ AXMAppTermService: AXMAppTermService,
4118
+ AXMAppTermServiceImpl: AXMAppTermServiceImpl,
4119
+ AXMAppVersionService: AXMAppVersionService,
4120
+ AXMAppVersionServiceImpl: AXMAppVersionServiceImpl,
4121
+ AXMAppVersionSlotComponent: AXMAppVersionSlotComponent,
4122
+ AXMChangeLogPopupAction: AXMChangeLogPopupAction,
4123
+ AXMChangeLogUpdateSettingAction: AXMChangeLogUpdateSettingAction,
4124
+ AXMDataSourceService: AXMDataSourceService,
4125
+ AXMDataSourceServiceImpl: AXMDataSourceServiceImpl,
4126
+ AXMGlobalVariablesService: AXMGlobalVariablesService,
4127
+ AXMGlobalVariablesServiceImpl: AXMGlobalVariablesServiceImpl,
4128
+ AXMListTermsComponent: AXMListTermsComponent,
4129
+ AXMMetaDataDefinitionCategoryService: AXMMetaDataDefinitionCategoryService,
4130
+ AXMMetaDataDefinitionCategoryServiceImpl: AXMMetaDataDefinitionCategoryServiceImpl,
4131
+ AXMMetaDataDefinitionService: AXMMetaDataDefinitionService,
4132
+ AXMNewTermWorkflow: AXMNewTermWorkflow,
4133
+ AXMNotifyAppComponent: AXMNotifyAppComponent,
4134
+ AXMNotifyNewTermPopupAction: AXMNotifyNewTermPopupAction,
4135
+ AXMPMetaDataDefinitionServiceImpl: AXMPMetaDataDefinitionServiceImpl,
4136
+ AXMPromotionServiceImpl: AXMPromotionServiceImpl,
4137
+ AXMPromotionSlotComponent: AXMPromotionSlotComponent,
4138
+ AXMTermUpdateSettingAction: AXMTermUpdateSettingAction,
4139
+ AXMWhatsNewWorkflow: AXMWhatsNewWorkflow,
4140
+ appTermEntityEntityFactory: appTermEntityEntityFactory,
4141
+ appVersionEntityEntityFactory: appVersionEntityEntityFactory,
4142
+ dataSourceEntityFactory: dataSourceEntityFactory,
4143
+ globalVariableEntityFactory: globalVariableEntityFactory,
4144
+ metaDataDefinitionCategoryEntityFactory: metaDataDefinitionCategoryEntityFactory,
4145
+ metaDataDefinitionFactory: metaDataDefinitionFactory,
4146
+ promotionEntityFactory: promotionEntityFactory
4147
+ });
4148
+
4149
+ class AXMDynamicDataSourceProvider {
4150
+ constructor() {
4151
+ this.dataSourceService = inject(AXMDataSourceService);
4152
+ this.entityResolverService = inject(AXPEntityResolver);
4153
+ }
4154
+ async items() {
4155
+ const dataSources = await this.dataSourceService.query({
4156
+ skip: 0,
4157
+ take: 1000,
4158
+ });
4159
+ const mapFn = (item) => {
4160
+ return {
4161
+ ...item,
4162
+ valueField: get(item, 'valueField.name'),
4163
+ textField: get(item, 'textField.name'),
4164
+ source: async () => {
4165
+ if (item.sourceType.name == 'static') {
4166
+ return convertArrayToDataSource(item.sourceStatic);
4167
+ }
4168
+ // Entity
4169
+ else if (item.sourceType.name == 'entity') {
4170
+ const [module, entityName] = item.sourceEntity.split('.');
4171
+ const entity = await this.entityResolverService.get(module, entityName);
4172
+ const exFn = entity?.queries.list?.execute;
4173
+ if (exFn && typeof exFn == 'function') {
4174
+ return new AXDataSource({
4175
+ key: 'id',
4176
+ pageSize: 10,
4177
+ load: async (e) => {
4178
+ try {
4179
+ const result = await exFn(e);
4180
+ return result;
4181
+ }
4182
+ catch (error) {
4183
+ throw error;
4184
+ }
4185
+ }
4186
+ });
4187
+ }
4188
+ }
4189
+ //
4190
+ return convertArrayToDataSource([]);
4191
+ },
4192
+ };
4193
+ };
4194
+ const mapped = dataSources.items.map((item) => mapFn(item));
4195
+ return mapped;
4196
+ }
4197
+ }
4198
+
4199
+ class AXMEntityLoader {
4200
+ constructor() {
4201
+ this.injector = inject(Injector);
4202
+ }
4203
+ preload() {
4204
+ const module = RootConfig.module.name;
4205
+ return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
4206
+ module: module,
4207
+ entity: entity.name,
4208
+ }));
4209
+ }
4210
+ async get(moduleName, entityName) {
4211
+ if (moduleName == RootConfig.module.name) {
4212
+ return new Promise(async (resolve) => {
4213
+ switch (entityName) {
4214
+ case RootConfig.entities.globalVariable.name: {
4215
+ const entity = (await Promise.resolve().then(function () { return index; })).globalVariableEntityFactory;
4216
+ resolve(entity(this.injector));
4217
+ break;
4218
+ }
4219
+ case RootConfig.entities.appVersion.name: {
4220
+ const entity = (await Promise.resolve().then(function () { return index; })).appVersionEntityEntityFactory;
4221
+ resolve(entity(this.injector));
4222
+ break;
4223
+ }
4224
+ case RootConfig.entities.appTerm.name: {
4225
+ const entity = (await Promise.resolve().then(function () { return index; })).appTermEntityEntityFactory;
4226
+ resolve(entity(this.injector));
4227
+ break;
4228
+ }
4229
+ case RootConfig.entities.promotion.name: {
4230
+ const entity = (await Promise.resolve().then(function () { return index; })).promotionEntityFactory;
4231
+ resolve(entity(this.injector));
4232
+ break;
4233
+ }
4234
+ case RootConfig.entities.dataSource.name: {
4235
+ const entity = (await Promise.resolve().then(function () { return index; })).dataSourceEntityFactory;
4236
+ resolve(entity(this.injector));
4237
+ break;
4238
+ }
4239
+ case RootConfig.entities.metaDataDefinitionCategory.name: {
4240
+ const entity = (await Promise.resolve().then(function () { return index; })).metaDataDefinitionCategoryEntityFactory;
4241
+ resolve(entity(this.injector));
4242
+ break;
4243
+ }
4244
+ case RootConfig.entities.metaDataDefinition.name: {
4245
+ const entity = (await Promise.resolve().then(function () { return index; })).metaDataDefinitionFactory;
4246
+ resolve(entity(this.injector));
4247
+ break;
4248
+ }
4249
+ default:
4250
+ resolve(null);
4251
+ }
4252
+ });
4253
+ }
4254
+ return null;
4255
+ }
4256
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4257
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityLoader }); }
4258
+ }
4259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityLoader, decorators: [{
4260
+ type: Injectable
4261
+ }] });
4262
+
4263
+ class AppTermsCheckService {
4264
+ constructor() {
4265
+ this.settingsService = inject(AXPSettingService);
4266
+ this.workflowService = inject(AXPWorkflowService);
4267
+ this.appTermService = inject(AXMAppTermService);
4268
+ this.appInitService = inject(AXPAppStartUpService);
4269
+ this.sessionService = inject(AXPSessionService);
4270
+ this.appInitService.registerTask({
4271
+ name: 'Terms',
4272
+ statusText: 'Check New Terms And Conditions...',
4273
+ run: async () => {
4274
+ this.sessionService.application$.subscribe(async (app) => {
4275
+ if (app != null) {
4276
+ const filterTerms = [];
4277
+ const terms = await this.appTermService.query();
4278
+ for (const term of terms.items) {
4279
+ const isConfirm = await this.settingsService
4280
+ .scope(AXPPlatformScope.User)
4281
+ .get(`is-confirm-term-${term.id}`);
4282
+ if (!isConfirm) {
4283
+ filterTerms.push(term);
4284
+ }
4285
+ }
4286
+ if (filterTerms.length > 0) {
4287
+ setTimeout(() => {
4288
+ this.workflowService.execute('new-term', filterTerms);
4289
+ }, 500);
4290
+ }
4291
+ }
4292
+ });
4293
+ },
4294
+ });
4295
+ }
4296
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4297
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService }); }
4298
+ }
4299
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService, decorators: [{
4300
+ type: Injectable
4301
+ }], ctorParameters: () => [] });
4302
+
4303
+ class AppVersionCheckService {
4304
+ constructor() {
4305
+ this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
4306
+ this.settingsService = inject(AXPSettingService);
4307
+ this.workflowService = inject(AXPWorkflowService);
4308
+ this.appVersionService = inject(AXMAppVersionService);
4309
+ this.appInitService = inject(AXPAppStartUpService);
4310
+ this.sessionService = inject(AXPSessionService);
4311
+ this.appInitService.registerTask({
4312
+ name: 'Version',
4313
+ statusText: 'Check New Version...',
4314
+ run: async () => {
4315
+ this.sessionService.application$.subscribe(async (app) => {
4316
+ const current = (await this.versionProvider.provider()).version;
4317
+ const initVersion = await this.settingsService.scope(AXPPlatformScope.User).get(`init-application-version`);
4318
+ if (initVersion == null) {
4319
+ await this.settingsService.scope(AXPPlatformScope.User).set(`init-application-version`, current);
4320
+ }
4321
+ else {
4322
+ if (app != null) {
4323
+ const versions = await this.appVersionService.query();
4324
+ for (const v of versions.items) {
4325
+ if (v.versionNumber == current && v.versionNumber != initVersion) {
4326
+ const isSee = await this.settingsService
4327
+ .scope(AXPPlatformScope.User)
4328
+ .get(`is-see-check-version-${v.versionNumber}`);
4329
+ if (!isSee) {
4330
+ setTimeout(() => {
4331
+ this.workflowService.execute('show-what-is-new', v);
4332
+ }, 300);
4333
+ }
4334
+ }
4335
+ }
4336
+ }
4337
+ }
4338
+ });
4339
+ },
4340
+ });
4341
+ }
4342
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4343
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService }); }
4344
+ }
4345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService, decorators: [{
4346
+ type: Injectable
4347
+ }], ctorParameters: () => [] });
4348
+
4349
+ class AXMShowReleaseNotesPopupAction extends AXPWorkflowAction {
4350
+ constructor() {
4351
+ super(...arguments);
4352
+ this.popupService = inject(AXPopupService);
4353
+ }
4354
+ async execute(context) {
4355
+ const scope = RootConfig.config.i18n;
4356
+ const comp = await (await import('./acorex-modules-platform-management-list-version.component-EHtlPye1.mjs')).AXMListVersionComponent;
4357
+ this.popupService.open(comp, {
4358
+ title: `t('release-notes',{scope: "${scope}"})`,
4359
+ });
4360
+ }
4361
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4362
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction }); }
4363
+ }
4364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, decorators: [{
4365
+ type: Injectable
4366
+ }] });
4367
+ const AXMShowReleaseNotesWorkflow = {
4368
+ startStepId: 'show-popup',
4369
+ steps: {
4370
+ 'show-popup': {
4371
+ action: 'AXMShowReleaseNotesPopupAction',
4372
+ },
4373
+ },
4374
+ };
4375
+
4376
+ class AXMMenuProvider {
4377
+ constructor() {
4378
+ this.entityService = inject(AXPEntityService);
4379
+ this.sessionService = inject(AXPSessionService);
4380
+ }
4381
+ async provide(context) {
4382
+ const scope = RootConfig.config.i18n;
4383
+ const appName = this.sessionService.application?.name;
4384
+ //
4385
+ context.addItems([
4386
+ {
4387
+ name: 'app-help',
4388
+ text: `t('help',{scope: "${scope}"})`,
4389
+ icon: 'fa-light fa-circle-question',
4390
+ priority: 100000,
4391
+ children: [
4392
+ {
4393
+ name: 'app-help-center',
4394
+ text: `t('help-center',{scope: "${scope}"})`,
4395
+ icon: 'fa-light fa-book-open',
4396
+ priority: 100001,
4397
+ },
4398
+ {
4399
+ name: 'app-help-tutorials',
4400
+ text: `t('tutorials',{scope: "${scope}"})`,
4401
+ icon: 'fa-light fa-clapperboard-play',
4402
+ priority: 100002,
4403
+ },
4404
+ {
4405
+ name: 'app-release-notes',
4406
+ text: `t('release-notes',{scope: "${scope}"})`,
4407
+ icon: 'fa-light fa-memo-pad',
4408
+ command: {
4409
+ name: 'show-release-notes',
4410
+ },
4411
+ priority: 100003,
4412
+ },
4413
+ {
4414
+ text: 'break',
4415
+ type: 'break',
4416
+ priority: 100030,
4417
+ },
4418
+ {
4419
+ name: 'app-terms',
4420
+ text: `t('terms-conditions',{scope: "${scope}"})`,
4421
+ icon: 'fa-light fa-circle-info',
4422
+ path: `/platform/terms`,
4423
+ priority: 100031,
4424
+ },
4425
+ {
4426
+ name: 'app-about',
4427
+ text: `t('about',{scope: "${scope}"})`,
4428
+ icon: 'fa-light fa-circle-info',
4429
+ priority: 100032,
4430
+ },
4431
+ ],
4432
+ },
4433
+ ]);
4434
+ //
4435
+ const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
4436
+ if (!isAuthorized) {
4437
+ return;
4438
+ }
4439
+ //
4440
+ context.addItems([
4441
+ {
4442
+ name: 'administration-group',
4443
+ priority: 2000,
4444
+ text: `t('administration',{scope: "${scope}"})`,
4445
+ type: 'group',
4446
+ data: {
4447
+ // requiredPermission: 'admin',
4448
+ },
4449
+ },
4450
+ {
4451
+ text: `t('root-menu', {scope: "${scope}"})`,
4452
+ icon: 'fa-light fa-square-terminal',
4453
+ type: 'menu',
4454
+ name: 'platform-management',
4455
+ priority: 9100,
4456
+ data: {
4457
+ requiredPermission: 'platform',
4458
+ },
4459
+ children: [
4460
+ {
4461
+ priority: 9001,
4462
+ text: RootConfig.entities.globalVariable.title,
4463
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.globalVariable.name),
4464
+ icon: RootConfig.entities.globalVariable.icon,
4465
+ data: {
4466
+ // requiredPermission: '',
4467
+ },
4468
+ },
4469
+ {
4470
+ priority: 9002,
4471
+ text: RootConfig.entities.appVersion.title,
4472
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.appVersion.name),
4473
+ icon: RootConfig.entities.appVersion.icon,
4474
+ data: {
4475
+ // requiredPermission: '',
4476
+ },
4477
+ },
4478
+ {
4479
+ priority: 9003,
4480
+ text: RootConfig.entities.appTerm.title,
4481
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.appTerm.name),
4482
+ icon: RootConfig.entities.appTerm.icon,
4483
+ data: {
4484
+ // requiredPermission: '',
4485
+ },
4486
+ },
4487
+ {
4488
+ priority: 9005,
4489
+ text: RootConfig.entities.promotion.title,
4490
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.promotion.name),
4491
+ icon: RootConfig.entities.promotion.icon,
4492
+ data: {
4493
+ // requiredPermission: '',
4494
+ },
4495
+ },
4496
+ {
4497
+ priority: 9004,
4498
+ text: RootConfig.entities.dataSource.title,
4499
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.dataSource.name),
4500
+ icon: RootConfig.entities.dataSource.icon,
4501
+ data: {
4502
+ // requiredPermission: '',
4503
+ },
4504
+ },
4505
+ {
4506
+ priority: 9007,
4507
+ text: RootConfig.entities.metaDataDefinition.title,
4508
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.metaDataDefinition.name),
4509
+ icon: RootConfig.entities.metaDataDefinition.icon,
4510
+ data: {
4511
+ // requiredPermission: '',
4512
+ },
4513
+ },
4514
+ {
4515
+ priority: 9006,
4516
+ text: RootConfig.entities.metaDataDefinitionCategory.title,
4517
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.metaDataDefinitionCategory.name),
4518
+ icon: RootConfig.entities.metaDataDefinitionCategory.icon,
4519
+ },
4520
+ ],
4521
+ },
4522
+ ]);
4523
+ }
4524
+ }
4525
+
4526
+ function routesFactory() {
4527
+ const config = inject(AXP_ENTITY_CONFIG_TOKEN);
4528
+ const routes = [
4529
+ {
4530
+ path: ':app',
4531
+ loadComponent: () => {
4532
+ return config.viewers.root();
4533
+ },
4534
+ children: [
4535
+ {
4536
+ path: 'terms',
4537
+ loadComponent: () => Promise.resolve().then(function () { return index; }).then((c) => c.AXMListTermsComponent),
4538
+ },
4539
+ ],
4540
+ },
4541
+ ];
4542
+ return routes;
4543
+ }
4544
+ class AXMPlatformManagementModule {
4545
+ /**
4546
+ * @ignore
4547
+ */
4548
+ constructor(appVersionCheck, appTermsCheck) { }
4549
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [{ token: AppVersionCheckService }, { token: AppTermsCheckService }], target: i0.ɵɵFactoryTarget.NgModule }); }
4550
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule, i3$2.AXPWorkflowModule, i1$1.AXPComponentSlotModule] }); }
4551
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [
4552
+ {
4553
+ provide: ROUTES,
4554
+ multi: true,
4555
+ useFactory: routesFactory,
4556
+ },
4557
+ {
4558
+ provide: AXMGlobalVariablesService,
4559
+ useClass: AXMGlobalVariablesServiceImpl,
4560
+ },
4561
+ {
4562
+ provide: AXMAppVersionService,
4563
+ useClass: AXMAppVersionServiceImpl,
4564
+ },
4565
+ {
4566
+ provide: AXMAppTermService,
4567
+ useClass: AXMAppTermServiceImpl,
4568
+ },
4569
+ {
4570
+ provide: AXMAppPromotionService,
4571
+ useClass: AXMPromotionServiceImpl,
4572
+ },
4573
+ {
4574
+ provide: AXMDataSourceService,
4575
+ useClass: AXMDataSourceServiceImpl,
4576
+ },
4577
+ {
4578
+ provide: AXMMetaDataDefinitionService,
4579
+ useClass: AXMPMetaDataDefinitionServiceImpl,
4580
+ },
4581
+ {
4582
+ provide: AXMMetaDataDefinitionCategoryService,
4583
+ useClass: AXMMetaDataDefinitionCategoryServiceImpl,
4584
+ },
4585
+ {
4586
+ provide: AXP_ENTITY_DEFINITION_LOADER,
4587
+ useClass: AXMEntityLoader,
4588
+ multi: true,
4589
+ },
4590
+ {
4591
+ provide: AXP_MENU_PROVIDER,
4592
+ useClass: AXMMenuProvider,
4593
+ multi: true,
4594
+ },
4595
+ {
4596
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
4597
+ useClass: AXMDynamicDataSourceProvider,
4598
+ multi: true,
4599
+ },
4600
+ AppVersionCheckService,
4601
+ AppTermsCheckService,
4602
+ ], imports: [AXMPlatformManagementCommonModule,
4603
+ AXPWorkflowModule.forChild({
4604
+ actions: {
4605
+ AXMChangeLogPopupAction,
4606
+ AXMChangeLogUpdateSettingAction,
4607
+ //
4608
+ AXMNotifyNewTermPopupAction,
4609
+ AXMTermUpdateSettingAction,
4610
+ //
4611
+ AXMShowReleaseNotesPopupAction,
4612
+ },
4613
+ workflows: {
4614
+ 'show-what-is-new': AXMWhatsNewWorkflow,
4615
+ 'show-release-notes': AXMShowReleaseNotesWorkflow,
4616
+ 'new-term': AXMNewTermWorkflow,
4617
+ },
4618
+ }),
4619
+ AXPComponentSlotModule.forChild({
4620
+ 'side-menu-footer': [
4621
+ {
4622
+ name: 'side-menu-footer',
4623
+ component: AXMPromotionSlotComponent,
4624
+ options: {
4625
+ location: 'side-menu-footer',
4626
+ },
4627
+ },
4628
+ ],
4629
+ 'side-menu-header': [
4630
+ {
4631
+ name: 'side-menu-header',
4632
+ component: AXMPromotionSlotComponent,
4633
+ priority: 2,
4634
+ options: {
4635
+ location: 'side-menu-header',
4636
+ },
4637
+ },
4638
+ ],
4639
+ })] }); }
4640
+ }
4641
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
4642
+ type: NgModule,
4643
+ args: [{
4644
+ imports: [
4645
+ AXMPlatformManagementCommonModule,
4646
+ AXPWorkflowModule.forChild({
4647
+ actions: {
4648
+ AXMChangeLogPopupAction,
4649
+ AXMChangeLogUpdateSettingAction,
4650
+ //
4651
+ AXMNotifyNewTermPopupAction,
4652
+ AXMTermUpdateSettingAction,
4653
+ //
4654
+ AXMShowReleaseNotesPopupAction,
4655
+ },
4656
+ workflows: {
4657
+ 'show-what-is-new': AXMWhatsNewWorkflow,
4658
+ 'show-release-notes': AXMShowReleaseNotesWorkflow,
4659
+ 'new-term': AXMNewTermWorkflow,
4660
+ },
4661
+ }),
4662
+ AXPComponentSlotModule.forChild({
4663
+ 'side-menu-footer': [
4664
+ {
4665
+ name: 'side-menu-footer',
4666
+ component: AXMPromotionSlotComponent,
4667
+ options: {
4668
+ location: 'side-menu-footer',
4669
+ },
4670
+ },
4671
+ ],
4672
+ 'side-menu-header': [
4673
+ {
4674
+ name: 'side-menu-header',
4675
+ component: AXMPromotionSlotComponent,
4676
+ priority: 2,
4677
+ options: {
4678
+ location: 'side-menu-header',
4679
+ },
4680
+ },
4681
+ ],
4682
+ }),
4683
+ ],
4684
+ exports: [],
4685
+ declarations: [],
4686
+ providers: [
4687
+ {
4688
+ provide: ROUTES,
4689
+ multi: true,
4690
+ useFactory: routesFactory,
4691
+ },
4692
+ {
4693
+ provide: AXMGlobalVariablesService,
4694
+ useClass: AXMGlobalVariablesServiceImpl,
4695
+ },
4696
+ {
4697
+ provide: AXMAppVersionService,
4698
+ useClass: AXMAppVersionServiceImpl,
4699
+ },
4700
+ {
4701
+ provide: AXMAppTermService,
4702
+ useClass: AXMAppTermServiceImpl,
4703
+ },
4704
+ {
4705
+ provide: AXMAppPromotionService,
4706
+ useClass: AXMPromotionServiceImpl,
4707
+ },
4708
+ {
4709
+ provide: AXMDataSourceService,
4710
+ useClass: AXMDataSourceServiceImpl,
4711
+ },
4712
+ {
4713
+ provide: AXMMetaDataDefinitionService,
4714
+ useClass: AXMPMetaDataDefinitionServiceImpl,
4715
+ },
4716
+ {
4717
+ provide: AXMMetaDataDefinitionCategoryService,
4718
+ useClass: AXMMetaDataDefinitionCategoryServiceImpl,
4719
+ },
4720
+ {
4721
+ provide: AXP_ENTITY_DEFINITION_LOADER,
4722
+ useClass: AXMEntityLoader,
4723
+ multi: true,
4724
+ },
4725
+ {
4726
+ provide: AXP_MENU_PROVIDER,
4727
+ useClass: AXMMenuProvider,
4728
+ multi: true,
4729
+ },
4730
+ {
4731
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
4732
+ useClass: AXMDynamicDataSourceProvider,
4733
+ multi: true,
4734
+ },
4735
+ AppVersionCheckService,
4736
+ AppTermsCheckService,
4737
+ ],
4738
+ }]
4739
+ }], ctorParameters: () => [{ type: AppVersionCheckService }, { type: AppTermsCheckService }] });
4740
+
4741
+ /**
4742
+ * Generated bundle index. Do not edit.
4743
+ */
4744
+
4745
+ export { AXPRegionalSetting as A, AXMPMetaDataDefinitionServiceImpl as B, metaDataDefinitionCategoryEntityFactory as C, AXMMetaDataDefinitionCategoryService as D, AXMMetaDataDefinitionCategoryServiceImpl as E, AXMPromotionSlotComponent as F, promotionEntityFactory as G, AXMAppPromotionService as H, AXMPromotionServiceImpl as I, RootConfig as R, AXMAppVersionService as a, AXMPlatformManagementModule as b, AXPRegionalStoreService as c, AXMCommonModuleEntityProvider as d, appTermEntityEntityFactory as e, AXMAppTermService as f, AXMAppTermServiceImpl as g, AXMListTermsComponent as h, AXMNotifyNewTermPopupAction as i, AXMTermUpdateSettingAction as j, AXMNewTermWorkflow as k, appVersionEntityEntityFactory as l, AXMAppVersionServiceImpl as m, AXMNotifyAppComponent as n, AXMAppVersionSlotComponent as o, AXMChangeLogPopupAction as p, AXMChangeLogUpdateSettingAction as q, AXMWhatsNewWorkflow as r, dataSourceEntityFactory as s, AXMDataSourceService as t, AXMDataSourceServiceImpl as u, globalVariableEntityFactory as v, AXMGlobalVariablesService as w, AXMGlobalVariablesServiceImpl as x, metaDataDefinitionFactory as y, AXMMetaDataDefinitionService as z };
4746
+ //# sourceMappingURL=acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs.map