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