@acorex/modules 19.2.19 → 19.3.0-next.0

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