@acorex/modules 19.2.6 → 19.2.8

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 (197) hide show
  1. package/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.d.ts +2 -2
  2. package/fesm2022/acorex-modules-application-management.mjs +2 -2
  3. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  4. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-D75igkfc.mjs → acorex-modules-auth-acorex-modules-auth-HwJJs-3A.mjs} +12 -12
  5. package/fesm2022/acorex-modules-auth-acorex-modules-auth-HwJJs-3A.mjs.map +1 -0
  6. package/fesm2022/{acorex-modules-auth-app-chooser.component-BZb8n5Ag.mjs → acorex-modules-auth-app-chooser.component-BvxMkXPp.mjs} +2 -2
  7. package/fesm2022/{acorex-modules-auth-app-chooser.component-BZb8n5Ag.mjs.map → acorex-modules-auth-app-chooser.component-BvxMkXPp.mjs.map} +1 -1
  8. package/fesm2022/{acorex-modules-auth-login.module-DAtJYcHZ.mjs → acorex-modules-auth-login.module-CDvLUxls.mjs} +4 -4
  9. package/fesm2022/{acorex-modules-auth-login.module-DAtJYcHZ.mjs.map → acorex-modules-auth-login.module-CDvLUxls.mjs.map} +1 -1
  10. package/fesm2022/acorex-modules-auth-master.layout-CnKBnl8W.mjs +23 -0
  11. package/fesm2022/acorex-modules-auth-master.layout-CnKBnl8W.mjs.map +1 -0
  12. package/fesm2022/{acorex-modules-auth-password.component-20Ofs9FL.mjs → acorex-modules-auth-password.component-1FnIjiZ8.mjs} +2 -2
  13. package/fesm2022/{acorex-modules-auth-password.component-20Ofs9FL.mjs.map → acorex-modules-auth-password.component-1FnIjiZ8.mjs.map} +1 -1
  14. package/fesm2022/{acorex-modules-auth-password.component-CRvI9sIa.mjs → acorex-modules-auth-password.component-C16jeHuJ.mjs} +2 -2
  15. package/fesm2022/{acorex-modules-auth-password.component-CRvI9sIa.mjs.map → acorex-modules-auth-password.component-C16jeHuJ.mjs.map} +1 -1
  16. package/fesm2022/{acorex-modules-auth-routes-BDED-qaZ.mjs → acorex-modules-auth-routes-ZDDUhAWd.mjs} +2 -2
  17. package/fesm2022/{acorex-modules-auth-routes-BDED-qaZ.mjs.map → acorex-modules-auth-routes-ZDDUhAWd.mjs.map} +1 -1
  18. package/fesm2022/{acorex-modules-auth-setting.provider-GJeEbIRd.mjs → acorex-modules-auth-setting.provider-DDl3OHw6.mjs} +2 -2
  19. package/fesm2022/{acorex-modules-auth-setting.provider-GJeEbIRd.mjs.map → acorex-modules-auth-setting.provider-DDl3OHw6.mjs.map} +1 -1
  20. package/fesm2022/{acorex-modules-auth-two-factor.module-B0C2aBWh.mjs → acorex-modules-auth-two-factor.module-C32MVGby.mjs} +2 -2
  21. package/fesm2022/{acorex-modules-auth-two-factor.module-B0C2aBWh.mjs.map → acorex-modules-auth-two-factor.module-C32MVGby.mjs.map} +1 -1
  22. package/fesm2022/acorex-modules-auth.mjs +1 -1
  23. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CUQ-GAN5.mjs +932 -0
  24. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CUQ-GAN5.mjs.map +1 -0
  25. package/fesm2022/{acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs → acorex-modules-form-template-management-category.entity-WtgUidaW.mjs} +2 -2
  26. package/fesm2022/{acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs.map → acorex-modules-form-template-management-category.entity-WtgUidaW.mjs.map} +1 -1
  27. package/fesm2022/acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs.map +1 -1
  28. package/fesm2022/{acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs → acorex-modules-form-template-management-setting.provider-u7Jv1myU.mjs} +2 -2
  29. package/fesm2022/{acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs.map → acorex-modules-form-template-management-setting.provider-u7Jv1myU.mjs.map} +1 -1
  30. package/fesm2022/acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs.map +1 -1
  31. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CVyFN7D9.mjs → acorex-modules-form-template-management-template-widget-edit.component-DPdPjZGi.mjs} +2 -2
  32. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-DPdPjZGi.mjs.map +1 -0
  33. package/fesm2022/{acorex-modules-form-template-management-template.entity-BpApQcvG.mjs → acorex-modules-form-template-management-template.entity-BnctQkm6.mjs} +2 -2
  34. package/fesm2022/{acorex-modules-form-template-management-template.entity-BpApQcvG.mjs.map → acorex-modules-form-template-management-template.entity-BnctQkm6.mjs.map} +1 -1
  35. package/fesm2022/acorex-modules-form-template-management.mjs +1 -907
  36. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
  37. package/fesm2022/acorex-modules-notification-management.mjs +49 -66
  38. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  39. package/fesm2022/acorex-modules-organization-management-add-item.component-DsWqdz8M.mjs +86 -0
  40. package/fesm2022/acorex-modules-organization-management-add-item.component-DsWqdz8M.mjs.map +1 -0
  41. package/fesm2022/{acorex-modules-organization-managment-branch.entity-kuZxLStS.mjs → acorex-modules-organization-management-branch.entity-CxxFiBPd.mjs} +49 -5
  42. package/fesm2022/acorex-modules-organization-management-branch.entity-CxxFiBPd.mjs.map +1 -0
  43. package/fesm2022/{acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs → acorex-modules-organization-management-chart.entity-Bk4WgsYr.mjs} +2 -2
  44. package/fesm2022/acorex-modules-organization-management-chart.entity-Bk4WgsYr.mjs.map +1 -0
  45. package/fesm2022/{acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs → acorex-modules-organization-management-company.entity-d7GaCVei.mjs} +2 -2
  46. package/fesm2022/acorex-modules-organization-management-company.entity-d7GaCVei.mjs.map +1 -0
  47. package/fesm2022/{acorex-modules-organization-managment-department.entity-C1PxLx6p.mjs → acorex-modules-organization-management-department.entity-BxyeK3lU.mjs} +49 -5
  48. package/fesm2022/acorex-modules-organization-management-department.entity-BxyeK3lU.mjs.map +1 -0
  49. package/fesm2022/{acorex-modules-organization-managment-division.entity-DHVnrP38.mjs → acorex-modules-organization-management-division.entity-Dh54R4es.mjs} +49 -5
  50. package/fesm2022/acorex-modules-organization-management-division.entity-Dh54R4es.mjs.map +1 -0
  51. package/fesm2022/{acorex-modules-organization-managment-employee.entity-D4BSxGAW.mjs → acorex-modules-organization-management-employee.entity-PwlBjkYo.mjs} +2 -2
  52. package/fesm2022/acorex-modules-organization-management-employee.entity-PwlBjkYo.mjs.map +1 -0
  53. package/fesm2022/{acorex-modules-organization-managment-employment-type.entity-Cgbezwio.mjs → acorex-modules-organization-management-employment-type.entity-aNkt-l_e.mjs} +49 -5
  54. package/fesm2022/acorex-modules-organization-management-employment-type.entity-aNkt-l_e.mjs.map +1 -0
  55. package/fesm2022/{acorex-modules-organization-managment-org-chart-configuration.page-DEFgztyn.mjs → acorex-modules-organization-management-org-chart-configuration.page-DBc6gISy.mjs} +6 -6
  56. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-DBc6gISy.mjs.map +1 -0
  57. package/fesm2022/{acorex-modules-organization-managment-org-chart-configuration.service-D-LkPUIw.mjs → acorex-modules-organization-management-org-chart-configuration.service-QLdDEdqL.mjs} +5 -4
  58. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-QLdDEdqL.mjs.map +1 -0
  59. package/fesm2022/acorex-modules-organization-management-org-chart.page-e-N7Ql80.mjs +890 -0
  60. package/fesm2022/acorex-modules-organization-management-org-chart.page-e-N7Ql80.mjs.map +1 -0
  61. package/fesm2022/{acorex-modules-organization-managment-position.entity-Bbb5KAkm.mjs → acorex-modules-organization-management-position.entity-B7ceEEbu.mjs} +50 -6
  62. package/fesm2022/acorex-modules-organization-management-position.entity-B7ceEEbu.mjs.map +1 -0
  63. package/fesm2022/{acorex-modules-organization-managment-setting.keys-CF6Giykz.mjs → acorex-modules-organization-management-setting.keys-CF6Giykz.mjs} +1 -1
  64. package/fesm2022/acorex-modules-organization-management-setting.keys-CF6Giykz.mjs.map +1 -0
  65. package/fesm2022/{acorex-modules-organization-managment-setting.provider-nKs53GcA.mjs → acorex-modules-organization-management-setting.provider-eLv_qnmE.mjs} +3 -3
  66. package/fesm2022/acorex-modules-organization-management-setting.provider-eLv_qnmE.mjs.map +1 -0
  67. package/fesm2022/{acorex-modules-organization-managment.mjs → acorex-modules-organization-management.mjs} +59 -22
  68. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -0
  69. package/fesm2022/acorex-modules-platform-management-countries-0S6HdpYF.mjs +500 -0
  70. package/fesm2022/acorex-modules-platform-management-countries-0S6HdpYF.mjs.map +1 -0
  71. package/fesm2022/acorex-modules-platform-management.mjs +1445 -127
  72. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  73. package/fesm2022/acorex-modules-security-management.mjs +3 -3
  74. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  75. package/form-template-management/index.d.ts +0 -1
  76. package/form-template-management/lib/features/designer/index.d.ts +5 -0
  77. package/form-template-management/lib/{services → features/designer}/template.provider.d.ts +1 -1
  78. package/form-template-management/lib/features/index.d.ts +1 -0
  79. package/notification-management/lib/entities/channel/channel.types.d.ts +3 -1
  80. package/organization-management/README.md +3 -0
  81. package/organization-management/index.d.ts +4 -0
  82. package/{organization-managment → organization-management}/lib/entities/branch/branch.types.d.ts +1 -0
  83. package/{organization-managment → organization-management}/lib/entities/chart/chart.types.d.ts +10 -5
  84. package/{organization-managment → organization-management}/lib/entities/department/department.types.d.ts +1 -0
  85. package/{organization-managment → organization-management}/lib/entities/division/division.types.d.ts +1 -0
  86. package/{organization-managment → organization-management}/lib/entities/employment-type/employment-type.types.d.ts +1 -0
  87. package/{organization-managment → organization-management}/lib/entities/position/position.types.d.ts +1 -0
  88. package/organization-management/lib/features/index.d.ts +1 -0
  89. package/organization-management/lib/features/organization-chart/add-item/add-item.component.d.ts +22 -0
  90. package/organization-management/lib/features/organization-chart/index.d.ts +1 -0
  91. package/{organization-managment → organization-management}/lib/features/organization-chart/org-chart-configuration.page.d.ts +2 -2
  92. package/{organization-managment → organization-management}/lib/features/organization-chart/org-chart-configuration.service.d.ts +3 -6
  93. package/organization-management/lib/features/organization-chart/org-chart-print.service.d.ts +45 -0
  94. package/{organization-managment → organization-management}/lib/features/organization-chart/org-chart.page.d.ts +78 -7
  95. package/organization-management/lib/features/organization-chart/org-chart.service.d.ts +64 -0
  96. package/organization-management/lib/features/organization-chart/org-chart.type.d.ts +46 -0
  97. package/{organization-managment/lib/organization-managment.module.d.ts → organization-management/lib/organization-management.module.d.ts} +4 -4
  98. package/package.json +5 -5
  99. package/platform-management/lib/common/index.d.ts +1 -0
  100. package/platform-management/lib/common/regional/index.d.ts +3 -0
  101. package/platform-management/lib/common/regional/regional.types.d.ts +16 -1
  102. package/platform-management/lib/const.d.ts +12 -0
  103. package/platform-management/lib/entities/app-term/components/notify-app/notify-app.component.d.ts +1 -2
  104. package/platform-management/lib/entities/data-source/coulmn-def.widget.d.ts +67 -0
  105. package/platform-management/lib/entities/data-source/data-source.entity.d.ts +3 -0
  106. package/platform-management/lib/entities/data-source/data-source.service.d.ts +10 -0
  107. package/platform-management/lib/entities/data-source/data-source.types.d.ts +7 -0
  108. package/platform-management/lib/entities/data-source/datasource-provider.dynamic.d.ts +6 -0
  109. package/platform-management/lib/entities/data-source/index.d.ts +3 -0
  110. package/platform-management/lib/entities/index.d.ts +2 -0
  111. package/platform-management/lib/entities/promotion/components/index.d.ts +1 -0
  112. package/{notification-management/lib → platform-management/lib/entities/promotion}/components/promotion-slot/promotion-slot.component.d.ts +5 -3
  113. package/platform-management/lib/entities/promotion/index.d.ts +4 -0
  114. package/platform-management/lib/entities/promotion/promotion.entity.d.ts +3 -0
  115. package/platform-management/lib/entities/promotion/promotion.service.d.ts +10 -0
  116. package/platform-management/lib/entities/promotion/promotion.types.d.ts +15 -0
  117. package/platform-management/lib/platform-management.module.d.ts +2 -1
  118. package/fesm2022/acorex-modules-auth-acorex-modules-auth-D75igkfc.mjs.map +0 -1
  119. package/fesm2022/acorex-modules-auth-master.layout-qeAQTygT.mjs +0 -23
  120. package/fesm2022/acorex-modules-auth-master.layout-qeAQTygT.mjs.map +0 -1
  121. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-CVyFN7D9.mjs.map +0 -1
  122. package/fesm2022/acorex-modules-organization-managment-branch.entity-kuZxLStS.mjs.map +0 -1
  123. package/fesm2022/acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs.map +0 -1
  124. package/fesm2022/acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs.map +0 -1
  125. package/fesm2022/acorex-modules-organization-managment-department.entity-C1PxLx6p.mjs.map +0 -1
  126. package/fesm2022/acorex-modules-organization-managment-division.entity-DHVnrP38.mjs.map +0 -1
  127. package/fesm2022/acorex-modules-organization-managment-employee.entity-D4BSxGAW.mjs.map +0 -1
  128. package/fesm2022/acorex-modules-organization-managment-employment-type.entity-Cgbezwio.mjs.map +0 -1
  129. package/fesm2022/acorex-modules-organization-managment-org-chart-configuration.page-DEFgztyn.mjs.map +0 -1
  130. package/fesm2022/acorex-modules-organization-managment-org-chart-configuration.service-D-LkPUIw.mjs.map +0 -1
  131. package/fesm2022/acorex-modules-organization-managment-org-chart.page-B3aaLlm2.mjs +0 -597
  132. package/fesm2022/acorex-modules-organization-managment-org-chart.page-B3aaLlm2.mjs.map +0 -1
  133. package/fesm2022/acorex-modules-organization-managment-position.entity-Bbb5KAkm.mjs.map +0 -1
  134. package/fesm2022/acorex-modules-organization-managment-setting.keys-CF6Giykz.mjs.map +0 -1
  135. package/fesm2022/acorex-modules-organization-managment-setting.provider-nKs53GcA.mjs.map +0 -1
  136. package/fesm2022/acorex-modules-organization-managment.mjs.map +0 -1
  137. package/fesm2022/acorex-modules-platform-management-countries-CuJVdPLt.mjs +0 -19
  138. package/fesm2022/acorex-modules-platform-management-countries-CuJVdPLt.mjs.map +0 -1
  139. package/organization-managment/README.md +0 -3
  140. package/organization-managment/index.d.ts +0 -3
  141. package/organization-managment/lib/features/organization-chart/org-chart-print.service.d.ts +0 -22
  142. package/organization-managment/lib/features/organization-chart/org-chart.service.d.ts +0 -19
  143. package/organization-managment/lib/features/organization-chart/org-chart.type.d.ts +0 -25
  144. /package/form-template-management/lib/{services → features/designer}/designer-connector.service.d.ts +0 -0
  145. /package/form-template-management/lib/{pages → features}/designer/designer.page.d.ts +0 -0
  146. /package/form-template-management/lib/{components → features/designer}/widgets/template/index.d.ts +0 -0
  147. /package/form-template-management/lib/{components → features/designer}/widgets/template/template-widget-designer.component.d.ts +0 -0
  148. /package/form-template-management/lib/{components → features/designer}/widgets/template/template-widget-edit.component.d.ts +0 -0
  149. /package/form-template-management/lib/{components → features/designer}/widgets/template/template-widget-view.component.d.ts +0 -0
  150. /package/form-template-management/lib/{components → features/designer}/widgets/template/template-widget.config.d.ts +0 -0
  151. /package/form-template-management/lib/{components → features/designer}/widgets/template-designer/index.d.ts +0 -0
  152. /package/form-template-management/lib/{components → features/designer}/widgets/template-designer/template-designer-widget-view.component.d.ts +0 -0
  153. /package/form-template-management/lib/{components → features/designer}/widgets/template-designer/template-designer-widget.config.d.ts +0 -0
  154. /package/form-template-management/lib/{components → features/designer}/widgets/template-picker/template-picker.component.d.ts +0 -0
  155. /package/form-template-management/lib/{components → features/designer}/widgets/template-picker/template.provider.d.ts +0 -0
  156. /package/form-template-management/lib/{workflows → features/designer/workflows}/create-template.workflow.d.ts +0 -0
  157. /package/form-template-management/lib/{workflows → features/designer/workflows}/design-template.workflow.d.ts +0 -0
  158. /package/{organization-managment → organization-management}/lib/const.d.ts +0 -0
  159. /package/{organization-managment → organization-management}/lib/entities/branch/branch.entity.d.ts +0 -0
  160. /package/{organization-managment → organization-management}/lib/entities/branch/branch.module.d.ts +0 -0
  161. /package/{organization-managment → organization-management}/lib/entities/branch/branch.service.d.ts +0 -0
  162. /package/{organization-managment → organization-management}/lib/entities/branch/index.d.ts +0 -0
  163. /package/{organization-managment → organization-management}/lib/entities/chart/chart.entity.d.ts +0 -0
  164. /package/{organization-managment → organization-management}/lib/entities/chart/chart.module.d.ts +0 -0
  165. /package/{organization-managment → organization-management}/lib/entities/chart/chart.service.d.ts +0 -0
  166. /package/{organization-managment → organization-management}/lib/entities/chart/index.d.ts +0 -0
  167. /package/{organization-managment → organization-management}/lib/entities/company/company.entity.d.ts +0 -0
  168. /package/{organization-managment → organization-management}/lib/entities/company/company.module.d.ts +0 -0
  169. /package/{organization-managment → organization-management}/lib/entities/company/company.service.d.ts +0 -0
  170. /package/{organization-managment → organization-management}/lib/entities/company/company.types.d.ts +0 -0
  171. /package/{organization-managment → organization-management}/lib/entities/company/index.d.ts +0 -0
  172. /package/{organization-managment → organization-management}/lib/entities/department/department.entity.d.ts +0 -0
  173. /package/{organization-managment → organization-management}/lib/entities/department/department.module.d.ts +0 -0
  174. /package/{organization-managment → organization-management}/lib/entities/department/department.service.d.ts +0 -0
  175. /package/{organization-managment → organization-management}/lib/entities/department/index.d.ts +0 -0
  176. /package/{organization-managment → organization-management}/lib/entities/division/division.entity.d.ts +0 -0
  177. /package/{organization-managment → organization-management}/lib/entities/division/division.module.d.ts +0 -0
  178. /package/{organization-managment → organization-management}/lib/entities/division/division.service.d.ts +0 -0
  179. /package/{organization-managment → organization-management}/lib/entities/division/index.d.ts +0 -0
  180. /package/{organization-managment → organization-management}/lib/entities/employee/employee.entity.d.ts +0 -0
  181. /package/{organization-managment → organization-management}/lib/entities/employee/employee.module.d.ts +0 -0
  182. /package/{organization-managment → organization-management}/lib/entities/employee/employee.service.d.ts +0 -0
  183. /package/{organization-managment → organization-management}/lib/entities/employee/employee.types.d.ts +0 -0
  184. /package/{organization-managment → organization-management}/lib/entities/employee/index.d.ts +0 -0
  185. /package/{organization-managment → organization-management}/lib/entities/employment-type/employment-type.entity.d.ts +0 -0
  186. /package/{organization-managment → organization-management}/lib/entities/employment-type/employment-type.module.d.ts +0 -0
  187. /package/{organization-managment → organization-management}/lib/entities/employment-type/employment-type.service.d.ts +0 -0
  188. /package/{organization-managment → organization-management}/lib/entities/employment-type/index.d.ts +0 -0
  189. /package/{organization-managment → organization-management}/lib/entities/index.d.ts +0 -0
  190. /package/{organization-managment → organization-management}/lib/entities/position/index.d.ts +0 -0
  191. /package/{organization-managment → organization-management}/lib/entities/position/position.entity.d.ts +0 -0
  192. /package/{organization-managment → organization-management}/lib/entities/position/position.module.d.ts +0 -0
  193. /package/{organization-managment → organization-management}/lib/entities/position/position.service.d.ts +0 -0
  194. /package/{organization-managment → organization-management}/lib/entity.provider.d.ts +0 -0
  195. /package/{organization-managment → organization-management}/lib/menu.provider.d.ts +0 -0
  196. /package/{organization-managment → organization-management}/lib/setting.keys.d.ts +0 -0
  197. /package/{organization-managment → organization-management}/lib/setting.provider.d.ts +0 -0
@@ -1,12 +1,12 @@
1
1
  import * as i1$1 from '@acorex/platform/common';
2
- import { AXPSettingScope, AXPSettingService, AXP_SETTING_DEFINITION_PROVIDER, AXPComponentSlotModule, AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, AXP_APP_VERSION_PROVIDER, AXPAppStartUpService, AXP_MENU_PROVIDER } from '@acorex/platform/common';
3
- import { AXP_ENTITY_DEFINITION_LOADER, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN } from '@acorex/platform/layout/entity';
2
+ import { AXPSettingScope, AXPSettingService, AXP_SETTING_DEFINITION_PROVIDER, AXPComponentSlotModule, AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, AXP_APP_VERSION_PROVIDER, AXPAppStartUpService, AXPFileStorageService, AXP_MENU_PROVIDER } from '@acorex/platform/common';
3
+ import { AXP_ENTITY_DEFINITION_LOADER, AXPEntityDefinitionRegistryService, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN } from '@acorex/platform/layout/entity';
4
4
  import * as i2$4 from '@acorex/platform/workflow';
5
5
  import { AXPWorkflowAction, AXPWorkflowService, AXPWorkflowModule } from '@acorex/platform/workflow';
6
6
  import * as i0 from '@angular/core';
7
7
  import { inject, Injector, Injectable, signal, Component, NgModule, HostListener, ChangeDetectionStrategy, Input } from '@angular/core';
8
8
  import { ROUTES } from '@angular/router';
9
- import { objectKeyValueTransforms, AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
9
+ import { objectKeyValueTransforms, AXPWidgetsCatalog, AXP_WIDGET_DATASOURCE_PROVIDER } from '@acorex/platform/layout/builder';
10
10
  import * as i6 from '@acorex/core/translation';
11
11
  import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
12
12
  import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
@@ -34,9 +34,12 @@ import * as i3$1 from '@acorex/components/check-box';
34
34
  import { AXCheckBoxModule } from '@acorex/components/check-box';
35
35
  import * as i2$2 from '@acorex/components/label';
36
36
  import { AXLabelModule } from '@acorex/components/label';
37
+ import { AXSafePipe } from '@acorex/core/pipes';
37
38
  import * as i2$3 from '@acorex/components/time-line';
38
39
  import { AXTimeLineModule } from '@acorex/components/time-line';
39
40
  import { AXDateTimeModule } from '@acorex/core/date-time';
41
+ import { AXDataSource, convertArrayToDataSource } from '@acorex/components/common';
42
+ import { upperFirst, camelCase } from 'lodash-es';
40
43
  import { AXPSessionService } from '@acorex/platform/auth';
41
44
 
42
45
  class AXMCommonModuleEntityProvider {
@@ -76,7 +79,7 @@ var AXPRegionalSetting;
76
79
 
77
80
  class AXPRegionalService {
78
81
  async getCountries() {
79
- const { countries } = await import('./acorex-modules-platform-management-countries-CuJVdPLt.mjs');
82
+ const { countries } = await import('./acorex-modules-platform-management-countries-0S6HdpYF.mjs');
80
83
  return countries;
81
84
  }
82
85
  async getCurrencies() {
@@ -122,7 +125,7 @@ class AXMRegionalSettingProvider {
122
125
  }
123
126
  async provide(context) {
124
127
  context
125
- .addGroup('regional-settings', 'Regional Settings', 'Configure regional and language preferences.', 'fa-solid fa-earth-americas')
128
+ .addGroup('regional-settings', 'Regional Settings', 'Configure regional and language preferences.', 'fa-light fa-earth-americas')
126
129
  // Date & Time Section
127
130
  .addSection('date-time', 'Date & Time', 'Configure date and time settings.')
128
131
  .addSetting({
@@ -449,7 +452,7 @@ const RootConfig = {
449
452
  name: 'app-version',
450
453
  title: `t("appVersion", {scope:"${config.i18n}"})`,
451
454
  titlePlural: `t("appVersionPlural", {scope:"${config.i18n}"})`,
452
- icon: 'fa-regular fa-code-branch',
455
+ icon: 'fa-light fa-code-branch',
453
456
  },
454
457
  appTerm: {
455
458
  name: 'app-term',
@@ -457,6 +460,18 @@ const RootConfig = {
457
460
  titlePlural: `t("appTermPlural", {scope:"${config.i18n}"})`,
458
461
  icon: 'fa-light fa-scale-balanced',
459
462
  },
463
+ promotion: {
464
+ name: 'promotion',
465
+ title: `t("promotion", {scope:"${config.i18n}"})`,
466
+ titlePlural: `t("promotionPlural", {scope:"${config.i18n}"})`,
467
+ icon: 'fa-light fa-billboard',
468
+ },
469
+ dataSource: {
470
+ name: 'data-source',
471
+ title: `t("dataSource", {scope:"${config.i18n}"})`,
472
+ titlePlural: `t("dataSourcePlural", {scope:"${config.i18n}"})`,
473
+ icon: 'fa-light fa-database',
474
+ },
460
475
  },
461
476
  };
462
477
 
@@ -613,7 +628,6 @@ async function appTermEntityEntityFactory(injector) {
613
628
  list: {
614
629
  execute: async (e) => {
615
630
  const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
616
- console.log(x);
617
631
  return x;
618
632
  },
619
633
  type: AXPEntityQueryType.List,
@@ -902,7 +916,7 @@ class AXMListTermsComponent extends AXBasePageComponent {
902
916
  setTimeout(() => this.checkScroll(), 50);
903
917
  }
904
918
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListTermsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
905
- 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-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-header>\n @if(loaded()){\n <axp-layout-content id=\"contentDiv\" axOutlineContainer target=\"h2\">\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-px-6 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-content>\n }\n</axp-layout-simple-page>\n", 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: AXPThemeLayoutHeaderTemplateComponent, selector: "axp-layout-header" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-layout-content, axp-layout-header-container, axp-layout-footer-container, axp-layout-side-container, axp-layout-sections, axp-layout-section-container, axp-layout-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-toolbar, axp-layout-title-bar, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type: AXSideMenuModule }, { kind: "component", type: i4.AXSideMenuComponent, selector: "ax-side-menu", inputs: ["items", "look", "location"], outputs: ["itemsChange"] }, { kind: "directive", type: i4.AXOutlineSideMenuDirective, selector: "[axOutlineSideMenu]", exportAs: ["axOutlineSideMenu"] }, { kind: "ngmodule", type: AXOutlineModule }, { kind: "directive", type: i5.AXOutlineContainerDirective, selector: "[axOutlineContainer]", inputs: ["target", "smoothScroll", "activationOffset", "activateLastAtBottom"], exportAs: ["axOutlineContainer"] }] }); }
919
+ 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-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-header>\n @if(loaded()){\n <axp-layout-content id=\"contentDiv\" axOutlineContainer target=\"h2\">\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-content>\n }\n</axp-layout-simple-page>\n", 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: AXPThemeLayoutHeaderTemplateComponent, selector: "axp-layout-header" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-layout-content, axp-layout-header-container, axp-layout-side-container, axp-layout-sections, axp-layout-section-container, axp-layout-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-toolbar, axp-layout-title-bar, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type: AXSideMenuModule }, { kind: "component", type: i4.AXSideMenuComponent, selector: "ax-side-menu", inputs: ["items", "look", "location"], outputs: ["itemsChange"] }, { kind: "directive", type: i4.AXOutlineSideMenuDirective, selector: "[axOutlineSideMenu]", exportAs: ["axOutlineSideMenu"] }, { kind: "ngmodule", type: AXOutlineModule }, { kind: "directive", type: i5.AXOutlineContainerDirective, selector: "[axOutlineContainer]", inputs: ["target", "smoothScroll", "activationOffset", "activateLastAtBottom"], exportAs: ["axOutlineContainer"] }] }); }
906
920
  }
907
921
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListTermsComponent, decorators: [{
908
922
  type: Component,
@@ -916,7 +930,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
916
930
  AXTranslationModule,
917
931
  AXSideMenuModule,
918
932
  AXOutlineModule,
919
- ], template: "<axp-layout-simple-page>\n <axp-layout-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-header>\n @if(loaded()){\n <axp-layout-content id=\"contentDiv\" axOutlineContainer target=\"h2\">\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-px-6 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-content>\n }\n</axp-layout-simple-page>\n" }]
933
+ ], template: "<axp-layout-simple-page>\n <axp-layout-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-header>\n @if(loaded()){\n <axp-layout-content id=\"contentDiv\" axOutlineContainer target=\"h2\">\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-content>\n }\n</axp-layout-simple-page>\n" }]
920
934
  }], propDecorators: { onResize: [{
921
935
  type: HostListener,
922
936
  args: ['window:resize', ['$event']]
@@ -929,19 +943,23 @@ class AXMNotifyAppTermComponent extends AXBasePageComponent {
929
943
  this.htmlUtil = inject(AXPHtmlUtils);
930
944
  this.i18n = RootConfig.config.i18n;
931
945
  }
932
- ngOnInit() {
933
- super.ngOnInit();
934
- this.safeData = this.htmlUtil.getSafeHTMLfromHTML(this.data.content);
935
- }
936
946
  send() {
937
947
  this.close({ data: this.data });
938
948
  }
939
949
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppTermComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
940
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMNotifyAppTermComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "<ax-content class=\"ax-block ax-px-4 ax-py-4\" [innerHTML]=\"safeData\"></ax-content>\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", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }] }); }
950
+ 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", "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" }] }); }
941
951
  }
942
952
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppTermComponent, decorators: [{
943
953
  type: Component,
944
- args: [{ selector: 'axm-notify-app', imports: [CommonModule, AXLabelModule, AXCheckBoxModule, AXDecoratorModule, AXButtonModule, AXTranslationModule], template: "<ax-content class=\"ax-block ax-px-4 ax-py-4\" [innerHTML]=\"safeData\"></ax-content>\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" }]
954
+ args: [{ selector: 'axm-notify-app', imports: [
955
+ CommonModule,
956
+ AXLabelModule,
957
+ AXCheckBoxModule,
958
+ AXDecoratorModule,
959
+ AXButtonModule,
960
+ AXTranslationModule,
961
+ AXSafePipe,
962
+ ], 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" }]
945
963
  }] });
946
964
 
947
965
  class AXMNotifyNewTermPopupAction extends AXPWorkflowAction {
@@ -952,7 +970,7 @@ class AXMNotifyNewTermPopupAction extends AXPWorkflowAction {
952
970
  async execute(context) {
953
971
  const data = context.getVariable();
954
972
  await this.popupService.open(AXMNotifyAppTermComponent, {
955
- title: `${data.title}`,
973
+ title: 'New Terms And Conditions',
956
974
  data: { data },
957
975
  closeButton: false,
958
976
  });
@@ -969,8 +987,10 @@ class AXMTermUpdateSettingAction extends AXPWorkflowAction {
969
987
  this.settingService = inject(AXPSettingService);
970
988
  }
971
989
  async execute(context) {
972
- const data = context.getVariable();
973
- await this.settingService.scope(AXPSettingScope.User).set(`is-confirm-term-${data.id}`, true);
990
+ const dataList = context.getVariable();
991
+ for (const data of dataList) {
992
+ await this.settingService.scope(AXPSettingScope.User).set(`is-confirm-term-${data.id}`, true);
993
+ }
974
994
  }
975
995
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTermUpdateSettingAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
976
996
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTermUpdateSettingAction }); }
@@ -1134,7 +1154,6 @@ async function appVersionEntityEntityFactory(injector) {
1134
1154
  list: {
1135
1155
  execute: async (e) => {
1136
1156
  const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1137
- console.log(x);
1138
1157
  return x;
1139
1158
  },
1140
1159
  type: AXPEntityQueryType.List,
@@ -1361,11 +1380,11 @@ class AXMNotifyAppComponent extends AXBasePageComponent {
1361
1380
  this.close({ data: this.data, isShowAgain: !this.isShowAgain });
1362
1381
  }
1363
1382
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1364
- 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\" [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 (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", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }] }); }
1383
+ 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 (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", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }] }); }
1365
1384
  }
1366
1385
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppComponent, decorators: [{
1367
1386
  type: Component,
1368
- args: [{ selector: 'axm-notify-app', imports: [CommonModule, AXLabelModule, AXCheckBoxModule, AXDecoratorModule, AXButtonModule, AXTranslationModule], template: "<ax-content class=\"ax-block ax-px-4 ax-py-4\" [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 (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n" }]
1387
+ 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 (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n" }]
1369
1388
  }] });
1370
1389
 
1371
1390
  class AXMListVersionComponent extends AXBasePageComponent {
@@ -1392,7 +1411,7 @@ class AXMListVersionComponent extends AXBasePageComponent {
1392
1411
  this.versions.set(mappedItems);
1393
1412
  }
1394
1413
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListVersionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1395
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMListVersionComponent, isStandalone: true, selector: "axm-list-version", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-px-12 ax-min-h-96\">\n <ax-time-line>\n @for(version of versions();track version.id){\n <ax-time-line-item [text]=\"version.title\" [isCollapsed]=\"$index == 0 ? false : true\">\n <ax-icon class=\"fa-solid fa-flag-checkered\"></ax-icon>\n <ax-content class=\"ax-px-8 ax-py-2\" [innerHtml]=\"version.content\"></ax-content>\n </ax-time-line-item>\n }\n </ax-time-line>\n <ax-footer class=\"ax-flex !ax-justify-end\"\n ><ax-button [text]=\"'okay' | translate | async\" color=\"primary\" (onClick)=\"this.close()\"></ax-button\n ></ax-footer>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXTimeLineModule }, { kind: "component", type: i2$3.AXTimeLineComponent, selector: "ax-time-line", inputs: ["mode"] }, { kind: "component", type: i2$3.AXTimeLineItemComponent, selector: "ax-time-line-item", inputs: ["text", "isActive", "isCollapsed"], outputs: ["isCollapsedChange"] }, { 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: AXFormatModule }, { kind: "ngmodule", type: AXDateTimeModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1414
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMListVersionComponent, isStandalone: true, selector: "axm-list-version", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-px-12 ax-min-h-96\">\n <ax-time-line>\n @for(version of versions();track version.id){\n <ax-time-line-item [text]=\"version.title\" [isCollapsed]=\"$index == 0 ? false : true\">\n <ax-icon class=\"fa-solid fa-flag-checkered\"></ax-icon>\n <ax-content class=\"ax-px-8 ax-py-2 ax-text-base/6\" [innerHtml]=\"version.content\"></ax-content>\n </ax-time-line-item>\n }\n </ax-time-line>\n <ax-footer class=\"ax-flex !ax-justify-end\"\n ><ax-button [text]=\"'okay' | translate | async\" color=\"primary\" (onClick)=\"this.close()\"></ax-button\n ></ax-footer>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXTimeLineModule }, { kind: "component", type: i2$3.AXTimeLineComponent, selector: "ax-time-line", inputs: ["mode"] }, { kind: "component", type: i2$3.AXTimeLineItemComponent, selector: "ax-time-line-item", inputs: ["text", "isActive", "isCollapsed"], outputs: ["isCollapsedChange"] }, { 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: AXFormatModule }, { kind: "ngmodule", type: AXDateTimeModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1396
1415
  }
1397
1416
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListVersionComponent, decorators: [{
1398
1417
  type: Component,
@@ -1404,7 +1423,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1404
1423
  AXDateTimeModule,
1405
1424
  AXButtonModule,
1406
1425
  AXTranslationModule,
1407
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-px-12 ax-min-h-96\">\n <ax-time-line>\n @for(version of versions();track version.id){\n <ax-time-line-item [text]=\"version.title\" [isCollapsed]=\"$index == 0 ? false : true\">\n <ax-icon class=\"fa-solid fa-flag-checkered\"></ax-icon>\n <ax-content class=\"ax-px-8 ax-py-2\" [innerHtml]=\"version.content\"></ax-content>\n </ax-time-line-item>\n }\n </ax-time-line>\n <ax-footer class=\"ax-flex !ax-justify-end\"\n ><ax-button [text]=\"'okay' | translate | async\" color=\"primary\" (onClick)=\"this.close()\"></ax-button\n ></ax-footer>\n</div>\n" }]
1426
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-px-12 ax-min-h-96\">\n <ax-time-line>\n @for(version of versions();track version.id){\n <ax-time-line-item [text]=\"version.title\" [isCollapsed]=\"$index == 0 ? false : true\">\n <ax-icon class=\"fa-solid fa-flag-checkered\"></ax-icon>\n <ax-content class=\"ax-px-8 ax-py-2 ax-text-base/6\" [innerHtml]=\"version.content\"></ax-content>\n </ax-time-line-item>\n }\n </ax-time-line>\n <ax-footer class=\"ax-flex !ax-justify-end\"\n ><ax-button [text]=\"'okay' | translate | async\" color=\"primary\" (onClick)=\"this.close()\"></ax-button\n ></ax-footer>\n</div>\n" }]
1408
1427
  }] });
1409
1428
 
1410
1429
  class AXMAppVersionSlotComponent {
@@ -1528,15 +1547,19 @@ class AppTermAndVersionCheck {
1528
1547
  name: 'Terms',
1529
1548
  statusText: 'Check New Terms And Conditions...',
1530
1549
  run: async () => {
1550
+ const filterTerms = [];
1531
1551
  const terms = await this.appTermService.query();
1532
- terms.items.forEach(async (t) => {
1533
- const isConfirm = await this.settingsService.scope(AXPSettingScope.User).get(`is-confirm-term-${t.id}`);
1552
+ for (const term of terms.items) {
1553
+ const isConfirm = await this.settingsService.scope(AXPSettingScope.User).get(`is-confirm-term-${term.id}`);
1534
1554
  if (!isConfirm) {
1535
- setTimeout(() => {
1536
- this.workflowService.execute('new-term', t);
1537
- }, 500);
1555
+ filterTerms.push(term);
1538
1556
  }
1539
- });
1557
+ }
1558
+ if (filterTerms.length > 0) {
1559
+ setTimeout(() => {
1560
+ this.workflowService.execute('new-term', filterTerms);
1561
+ }, 500);
1562
+ }
1540
1563
  },
1541
1564
  });
1542
1565
  }
@@ -1547,43 +1570,196 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1547
1570
  type: Injectable
1548
1571
  }], ctorParameters: () => [] });
1549
1572
 
1550
- class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
1573
+ const AXM_COLUMN_DEF_WIDGET = [
1574
+ {
1575
+ type: 'grid-row-layout',
1576
+ mode: 'view',
1577
+ children: [
1578
+ {
1579
+ type: 'grid-item-layout',
1580
+ mode: 'view',
1581
+ options: { colSpan: 3 },
1582
+ children: [
1583
+ {
1584
+ type: 'text-editor',
1585
+ mode: 'edit',
1586
+ path: 'name',
1587
+ options: {
1588
+ placeholder: 'Name',
1589
+ defaultValue: 'test',
1590
+ },
1591
+ },
1592
+ ],
1593
+ },
1594
+ {
1595
+ type: 'grid-item-layout',
1596
+ mode: 'view',
1597
+ options: { colSpan: 4 },
1598
+ children: [
1599
+ {
1600
+ type: 'text-editor',
1601
+ mode: 'edit',
1602
+ path: 'title',
1603
+ options: {
1604
+ placeholder: 'Title',
1605
+ },
1606
+ },
1607
+ ],
1608
+ },
1609
+ {
1610
+ type: 'grid-item-layout',
1611
+ options: { colSpan: 3 },
1612
+ mode: 'view',
1613
+ children: [
1614
+ {
1615
+ type: 'select-editor',
1616
+ mode: 'edit',
1617
+ path: 'type',
1618
+ options: {
1619
+ placeholder: 'Type',
1620
+ valueField: 'name',
1621
+ textField: 'title',
1622
+ dataSource: Object.entries(AXPWidgetsCatalog).map(([key, value]) => {
1623
+ return {
1624
+ title: upperFirst(camelCase(key)),
1625
+ name: value,
1626
+ };
1627
+ }),
1628
+ direction: 'horizontal',
1629
+ multiple: false,
1630
+ },
1631
+ },
1632
+ ],
1633
+ },
1634
+ {
1635
+ type: 'grid-item-layout',
1636
+ options: { colSpan: 2 },
1637
+ mode: 'view',
1638
+ children: [
1639
+ {
1640
+ type: 'checkbox-editor',
1641
+ mode: 'edit',
1642
+ path: 'isRequire',
1643
+ },
1644
+ ],
1645
+ },
1646
+ ],
1647
+ },
1648
+ ];
1649
+ // export const AXM_COLUMN_DEF_WIDGET = [
1650
+ // {
1651
+ // type: 'grid-row-layout',
1652
+ // // name: 'grid-row-layout1',
1653
+ // mode: 'view',
1654
+ // path: '',
1655
+ // children: [
1656
+ // {
1657
+ // type: 'grid-item-layout',
1658
+ // mode: 'view',
1659
+ // // path: '',
1660
+ // options: { colSpan: 4 },
1661
+ // // name: 'grid-item-layout1',
1662
+ // children: [
1663
+ // {
1664
+ // type: 'text-editor',
1665
+ // //name: 'text-editor1',
1666
+ // mode: 'edit',
1667
+ // path: 'name',
1668
+ // options: {
1669
+ // placeholder: 'Name',
1670
+ // defaultValue: 'test',
1671
+ // },
1672
+ // },
1673
+ // ],
1674
+ // },
1675
+ // {
1676
+ // type: 'grid-item-layout',
1677
+ // mode: 'view',
1678
+ // // path: '',
1679
+ // options: { colSpan: 4 },
1680
+ // //name: 'grid-item-layout2',
1681
+ // children: [
1682
+ // {
1683
+ // type: 'text-editor',
1684
+ // // name: 'text-editor2',
1685
+ // mode: 'edit',
1686
+ // path: 'title',
1687
+ // options: {
1688
+ // placeholder: 'Title',
1689
+ // },
1690
+ // },
1691
+ // ],
1692
+ // },
1693
+ // {
1694
+ // type: 'grid-item-layout',
1695
+ // options: { colSpan: 4 },
1696
+ // mode: 'view',
1697
+ // // path: '',
1698
+ // // name: 'grid-item-layout3',
1699
+ // children: [
1700
+ // {
1701
+ // type: 'select-editor',
1702
+ // //name: 'select-editor1',
1703
+ // mode: 'edit',
1704
+ // path: 'type',
1705
+ // options: {
1706
+ // placeholder: 'Type',
1707
+ // valueField: 'name',
1708
+ // textField: 'title',
1709
+ // dataSource: [
1710
+ // { title: 'text', name: AXPWidgetsCatalog.text },
1711
+ // { title: 'Check Box', name: AXPWidgetsCatalog.checkbox },
1712
+ // { title: 'Gallery', name: AXPWidgetsCatalog.gallery },
1713
+ // ],
1714
+ // direction: 'horizontal',
1715
+ // multiple: false,
1716
+ // },
1717
+ // },
1718
+ // ],
1719
+ // },
1720
+ // ],
1721
+ // },
1722
+ // ];
1723
+
1724
+ class AXMDataSourceService extends AXMEntityCrudServiceImpl {
1551
1725
  }
1552
- class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
1726
+ class AXMDataSourceServiceImpl extends AXMEntityCrudServiceImpl {
1553
1727
  constructor() {
1554
- super(`${RootConfig.module.name}.${RootConfig.entities.globalVariable.name}`);
1728
+ super(`${RootConfig.module.name}.${RootConfig.entities.dataSource.name}`);
1555
1729
  }
1556
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1557
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
1730
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDataSourceServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1731
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDataSourceServiceImpl }); }
1558
1732
  }
1559
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
1733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDataSourceServiceImpl, decorators: [{
1560
1734
  type: Injectable
1561
1735
  }], ctorParameters: () => [] });
1562
1736
 
1563
- async function globalVariableEntityFactory(injector) {
1564
- const dataService = injector.get(AXMGlobalVariablesService);
1737
+ async function dataSourceEntityFactory(injector) {
1738
+ const dataService = injector.get(AXMDataSourceService);
1565
1739
  const i18n = RootConfig.config.i18n;
1740
+ const entitiesService = injector.get(AXPEntityDefinitionRegistryService);
1741
+ const translationService = injector.get(AXTranslationService);
1566
1742
  const entityDef = {
1567
1743
  module: RootConfig.module.name,
1568
- name: RootConfig.entities.globalVariable.name,
1744
+ name: RootConfig.entities.dataSource.name,
1569
1745
  source: '',
1570
- title: RootConfig.entities.globalVariable.title,
1746
+ title: RootConfig.entities.dataSource.title,
1571
1747
  formats: {
1572
- individual: 'Global Variable',
1573
- plural: 'Global Variables',
1748
+ individual: RootConfig.entities.dataSource.title,
1749
+ plural: RootConfig.entities.dataSource.titlePlural,
1574
1750
  },
1575
1751
  relatedEntities: [],
1576
1752
  groups: [
1577
1753
  {
1578
- id: 'section',
1579
- title: 'Global Variable',
1754
+ id: 'dataSource',
1755
+ title: RootConfig.entities.dataSource.title,
1580
1756
  },
1581
1757
  ],
1582
1758
  properties: [
1583
1759
  {
1584
1760
  name: 'name',
1585
1761
  title: `t("name", { scope: "common" })`,
1586
- groupId: 'section',
1762
+ groupId: 'dataSource',
1587
1763
  schema: {
1588
1764
  dataType: 'string',
1589
1765
  interface: {
@@ -1599,11 +1775,12 @@ async function globalVariableEntityFactory(injector) {
1599
1775
  {
1600
1776
  name: 'title',
1601
1777
  title: `t("title", { scope: "common" })`,
1602
- groupId: 'section',
1778
+ groupId: 'dataSource',
1603
1779
  schema: {
1604
1780
  dataType: 'string',
1605
1781
  interface: {
1606
1782
  type: AXPWidgetsCatalog.text,
1783
+ options: {},
1607
1784
  },
1608
1785
  },
1609
1786
  validations: [
@@ -1613,13 +1790,47 @@ async function globalVariableEntityFactory(injector) {
1613
1790
  ],
1614
1791
  },
1615
1792
  {
1616
- name: 'value',
1617
- title: `t("value", { scope: "${i18n}" })`,
1618
- groupId: 'section',
1793
+ name: 'columns',
1794
+ title: `t("columns", { scope: "${i18n}" })`,
1795
+ groupId: 'dataSource',
1619
1796
  schema: {
1620
- dataType: 'string',
1797
+ defaultValue: [
1798
+ {
1799
+ name: 'name',
1800
+ title: 'Name',
1801
+ type: {
1802
+ title: 'Text',
1803
+ name: 'text-editor',
1804
+ },
1805
+ },
1806
+ {
1807
+ name: 'title',
1808
+ title: 'Title',
1809
+ type: {
1810
+ title: 'Text',
1811
+ name: 'text-editor',
1812
+ },
1813
+ },
1814
+ ],
1815
+ dataType: 'object',
1621
1816
  interface: {
1622
- type: AXPWidgetsCatalog.text,
1817
+ type: AXPWidgetsCatalog.repeaterLayout,
1818
+ children: AXM_COLUMN_DEF_WIDGET,
1819
+ },
1820
+ },
1821
+ },
1822
+ {
1823
+ name: 'samples',
1824
+ title: `t("samples", { scope: "${i18n}" })`,
1825
+ groupId: 'dataSource',
1826
+ schema: {
1827
+ dataType: 'object',
1828
+ interface: {
1829
+ type: AXPWidgetsCatalog.table,
1830
+ options: {
1831
+ columns: '{{context.eval("columns")}}',
1832
+ defaultRowCount: 2,
1833
+ },
1623
1834
  },
1624
1835
  },
1625
1836
  validations: [
@@ -1629,10 +1840,14 @@ async function globalVariableEntityFactory(injector) {
1629
1840
  ],
1630
1841
  },
1631
1842
  {
1632
- name: 'dataType',
1633
- title: `t("dataType", { scope: "${i18n}" })`,
1634
- groupId: 'section',
1843
+ name: 'sourceType',
1844
+ title: `t("sourceType", { scope: "${i18n}" })`,
1845
+ groupId: 'dataSource',
1635
1846
  schema: {
1847
+ defaultValue: {
1848
+ name: 'static',
1849
+ title: 'Static',
1850
+ },
1636
1851
  dataType: 'string',
1637
1852
  interface: {
1638
1853
  type: AXPWidgetsCatalog.select,
@@ -1640,16 +1855,49 @@ async function globalVariableEntityFactory(injector) {
1640
1855
  valueField: 'name',
1641
1856
  textField: 'title',
1642
1857
  dataSource: [
1643
- { title: 'String', name: 'String' },
1644
- { title: 'Integer', name: 'integer' },
1645
- { title: 'Date Time', name: 'dateTime' },
1646
- { title: 'Boolean', name: 'boolean' },
1647
- { title: 'Function', name: 'function' },
1648
- { title: 'Custom', name: 'custom' },
1858
+ {
1859
+ name: 'external_api',
1860
+ title: 'External Api',
1861
+ },
1862
+ {
1863
+ name: 'entity',
1864
+ title: 'Entity',
1865
+ },
1866
+ {
1867
+ name: 'static',
1868
+ title: 'Static',
1869
+ },
1649
1870
  ],
1650
- direction: 'horizontal',
1651
1871
  multiple: false,
1652
1872
  },
1873
+ triggers: [
1874
+ {
1875
+ event: "{{ events.context('sourceType') }}",
1876
+ 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',},}, ] );} }}`,
1877
+ },
1878
+ ],
1879
+ },
1880
+ },
1881
+ validations: [
1882
+ {
1883
+ rule: 'required',
1884
+ },
1885
+ ],
1886
+ },
1887
+ {
1888
+ name: 'sourceStatic',
1889
+ title: `t("sourceStatic", { scope: "${i18n}" })`,
1890
+ groupId: 'dataSource',
1891
+ schema: {
1892
+ dataType: 'string',
1893
+ interface: {
1894
+ type: AXPWidgetsCatalog.table,
1895
+ options: {
1896
+ //TODO problem selectBox!
1897
+ visibility: '{{context.eval("sourceType")?.name == "static" }}',
1898
+ columns: '{{context.eval("columns")}}',
1899
+ defaultRowCount: 2,
1900
+ },
1653
1901
  },
1654
1902
  },
1655
1903
  validations: [
@@ -1658,48 +1906,83 @@ async function globalVariableEntityFactory(injector) {
1658
1906
  },
1659
1907
  ],
1660
1908
  },
1909
+ {
1910
+ name: 'sourceEntity',
1911
+ title: `t("sourceEntity", { scope: "${i18n}" })`,
1912
+ groupId: 'dataSource',
1913
+ schema: {
1914
+ dataType: 'string',
1915
+ interface: {
1916
+ type: AXPWidgetsCatalog.select,
1917
+ options: {
1918
+ //TODO problem selectBox!
1919
+ visibility: '{{context.eval("sourceType")?.name == "entity" }}',
1920
+ valueField: 'name',
1921
+ textField: 'title',
1922
+ dataSource: new AXDataSource({
1923
+ load: async (e) => {
1924
+ // First, retrieve all entities (make sure this returns a promise or an array)
1925
+ const entities = entitiesService.getAll();
1926
+ // Map each entity to a promise that performs the translation
1927
+ const translatedEntities = await Promise.all(entities.map(async (entity) => ({
1928
+ ...entity,
1929
+ name: `${entity.module}.${entity.name}`,
1930
+ title: await translationService.translateAsync(entity.title),
1931
+ })));
1932
+ return {
1933
+ total: translatedEntities.length,
1934
+ items: translatedEntities,
1935
+ };
1936
+ },
1937
+ pageSize: 1000,
1938
+ }),
1939
+ },
1940
+ triggers: [
1941
+ {
1942
+ event: "{{ events.context('sourceEntity') }}",
1943
+ action: `{{ (async () => { const columns = await Promise.all(context.eval('sourceEntity').properties.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); })(); }}`,
1944
+ },
1945
+ ],
1946
+ },
1947
+ },
1948
+ validations: [
1949
+ // {
1950
+ // rule: 'required',
1951
+ // disabled: true,
1952
+ // },
1953
+ ],
1954
+ },
1661
1955
  ],
1662
- columns: [{ name: 'title' }, { name: 'dataType' }, { name: 'value' }],
1956
+ columns: [{ name: 'name' }, { name: 'title' }, { name: 'columns' }],
1663
1957
  commands: {
1664
1958
  create: {
1665
1959
  execute: async (data) => {
1666
- return Promise.resolve({ id: await dataService.insertOne(data) });
1960
+ console.log(data);
1961
+ const res = await dataService.insertOne(data);
1962
+ return { id: res };
1667
1963
  },
1668
1964
  },
1669
1965
  delete: {
1670
1966
  execute: async (id) => {
1671
- await await dataService.deleteOne(id);
1672
- return Promise.resolve();
1967
+ return await dataService.deleteOne(id);
1673
1968
  },
1674
1969
  },
1675
1970
  update: {
1676
1971
  execute: async (data) => {
1677
- return new Promise((resolve) => {
1678
- setTimeout(async () => {
1679
- await dataService.updateOne(data.id, data);
1680
- resolve(data);
1681
- }, 1000);
1682
- });
1972
+ return await dataService.updateOne(data.id, data);
1683
1973
  },
1684
1974
  },
1685
1975
  },
1686
1976
  queries: {
1687
1977
  byKey: {
1688
1978
  execute: async (id) => {
1689
- return new Promise((resolve) => {
1690
- setTimeout(async () => {
1691
- const entity = await dataService.getOne(id);
1692
- resolve(entity);
1693
- }, 500);
1694
- });
1979
+ return await dataService.getOne(id);
1695
1980
  },
1696
1981
  type: AXPEntityQueryType.Single,
1697
1982
  },
1698
1983
  list: {
1699
1984
  execute: async (e) => {
1700
- const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1701
- console.log(x);
1702
- return x;
1985
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1703
1986
  },
1704
1987
  type: AXPEntityQueryType.List,
1705
1988
  },
@@ -1709,46 +1992,83 @@ async function globalVariableEntityFactory(injector) {
1709
1992
  create: {
1710
1993
  sections: [
1711
1994
  {
1712
- id: 'section',
1995
+ id: 'dataSource',
1713
1996
  },
1714
1997
  ],
1715
1998
  properties: [
1999
+ {
2000
+ name: 'name',
2001
+ layout: {
2002
+ positions: {
2003
+ lg: {
2004
+ colSpan: 6,
2005
+ order: 1,
2006
+ },
2007
+ },
2008
+ },
2009
+ },
1716
2010
  {
1717
2011
  name: 'title',
1718
2012
  layout: {
1719
2013
  positions: {
1720
2014
  lg: {
1721
2015
  colSpan: 6,
2016
+ order: 2,
1722
2017
  },
1723
2018
  },
1724
2019
  },
1725
2020
  },
1726
2021
  {
1727
- name: 'name',
2022
+ name: 'columns',
2023
+ layout: {
2024
+ positions: {
2025
+ lg: {
2026
+ colSpan: 12,
2027
+ order: 5,
2028
+ },
2029
+ },
2030
+ },
2031
+ },
2032
+ {
2033
+ name: 'samples',
2034
+ layout: {
2035
+ positions: {
2036
+ lg: {
2037
+ colSpan: 12,
2038
+ order: 6,
2039
+ },
2040
+ },
2041
+ },
2042
+ },
2043
+ {
2044
+ name: 'sourceType',
1728
2045
  layout: {
1729
2046
  positions: {
1730
2047
  lg: {
1731
2048
  colSpan: 6,
2049
+ order: 3,
1732
2050
  },
1733
2051
  },
1734
2052
  },
1735
2053
  },
1736
2054
  {
1737
- name: 'value',
2055
+ name: 'sourceStatic',
1738
2056
  layout: {
1739
2057
  positions: {
1740
2058
  lg: {
1741
2059
  colSpan: 6,
2060
+ order: 4,
1742
2061
  },
1743
2062
  },
1744
2063
  },
1745
2064
  },
1746
2065
  {
1747
- name: 'dataType',
2066
+ name: 'sourceEntity',
1748
2067
  layout: {
1749
2068
  positions: {
1750
2069
  lg: {
1751
2070
  colSpan: 6,
2071
+ order: 4,
1752
2072
  },
1753
2073
  },
1754
2074
  },
@@ -1758,46 +2078,50 @@ async function globalVariableEntityFactory(injector) {
1758
2078
  update: {
1759
2079
  sections: [
1760
2080
  {
1761
- id: 'section',
2081
+ id: 'dataSource',
1762
2082
  },
1763
2083
  ],
1764
2084
  properties: [
1765
2085
  {
1766
- name: 'title',
2086
+ name: 'name',
1767
2087
  layout: {
1768
2088
  positions: {
1769
2089
  lg: {
1770
2090
  colSpan: 6,
2091
+ order: 1,
1771
2092
  },
1772
2093
  },
1773
2094
  },
1774
2095
  },
1775
2096
  {
1776
- name: 'name',
2097
+ name: 'title',
1777
2098
  layout: {
1778
2099
  positions: {
1779
2100
  lg: {
1780
2101
  colSpan: 6,
2102
+ order: 2,
1781
2103
  },
1782
2104
  },
1783
2105
  },
1784
2106
  },
1785
2107
  {
1786
- name: 'value',
2108
+ name: 'columns',
1787
2109
  layout: {
1788
2110
  positions: {
1789
2111
  lg: {
1790
- colSpan: 6,
2112
+ colSpan: 12,
2113
+ order: 3,
1791
2114
  },
1792
2115
  },
1793
2116
  },
1794
2117
  },
1795
2118
  {
1796
- name: 'dataType',
2119
+ name: 'samples',
1797
2120
  layout: {
1798
2121
  positions: {
1799
2122
  lg: {
1800
- colSpan: 6,
2123
+ colSpan: 12,
2124
+ order: 4,
1801
2125
  },
1802
2126
  },
1803
2127
  },
@@ -1808,46 +2132,50 @@ async function globalVariableEntityFactory(injector) {
1808
2132
  title: '{{title}}',
1809
2133
  sections: [
1810
2134
  {
1811
- id: 'section',
2135
+ id: 'dataSource',
1812
2136
  },
1813
2137
  ],
1814
2138
  properties: [
1815
2139
  {
1816
- name: 'title',
2140
+ name: 'name',
1817
2141
  layout: {
1818
2142
  positions: {
1819
2143
  lg: {
1820
2144
  colSpan: 6,
2145
+ order: 1,
1821
2146
  },
1822
2147
  },
1823
2148
  },
1824
2149
  },
1825
2150
  {
1826
- name: 'name',
2151
+ name: 'title',
1827
2152
  layout: {
1828
2153
  positions: {
1829
2154
  lg: {
1830
2155
  colSpan: 6,
2156
+ order: 2,
1831
2157
  },
1832
2158
  },
1833
2159
  },
1834
2160
  },
1835
2161
  {
1836
- name: 'value',
2162
+ name: 'columns',
1837
2163
  layout: {
1838
2164
  positions: {
1839
2165
  lg: {
1840
- colSpan: 6,
2166
+ colSpan: 12,
2167
+ order: 3,
1841
2168
  },
1842
2169
  },
1843
2170
  },
1844
2171
  },
1845
2172
  {
1846
- name: 'dataType',
2173
+ name: 'samples',
1847
2174
  layout: {
1848
2175
  positions: {
1849
2176
  lg: {
1850
- colSpan: 6,
2177
+ colSpan: 12,
2178
+ order: 4,
1851
2179
  },
1852
2180
  },
1853
2181
  },
@@ -1872,16 +2200,16 @@ async function globalVariableEntityFactory(injector) {
1872
2200
  scope: AXPEntityCommandScope.Selected,
1873
2201
  },
1874
2202
  {
1875
- title: 't("deleteItems", { scope: "common" })',
2203
+ title: 't("detail", { scope: "common" })',
1876
2204
  command: 'open-entity',
1877
- priority: 'secondary',
2205
+ priority: 'primary',
1878
2206
  type: 'view',
1879
2207
  scope: AXPEntityCommandScope.Individual,
1880
2208
  },
1881
2209
  {
1882
2210
  title: 't("delete", { scope: "common" })',
1883
2211
  command: 'delete-entity',
1884
- priority: 'secondary',
2212
+ priority: 'primary',
1885
2213
  type: 'delete',
1886
2214
  scope: AXPEntityCommandScope.Individual,
1887
2215
  },
@@ -1889,7 +2217,7 @@ async function globalVariableEntityFactory(injector) {
1889
2217
  views: [
1890
2218
  {
1891
2219
  name: 'all',
1892
- title: 't("allItem", { scope: "common" })',
2220
+ title: 't("all", { scope: "common" })',
1893
2221
  fixed: true,
1894
2222
  columns: [],
1895
2223
  conditions: [],
@@ -1903,30 +2231,899 @@ async function globalVariableEntityFactory(injector) {
1903
2231
  return entityDef;
1904
2232
  }
1905
2233
 
1906
- var index = /*#__PURE__*/Object.freeze({
1907
- __proto__: null,
1908
- AXMAppTermService: AXMAppTermService,
1909
- AXMAppTermServiceImpl: AXMAppTermServiceImpl,
1910
- AXMAppVersionService: AXMAppVersionService,
1911
- AXMAppVersionServiceImpl: AXMAppVersionServiceImpl,
1912
- AXMAppVersionSlotComponent: AXMAppVersionSlotComponent,
1913
- AXMChangeLogPopupAction: AXMChangeLogPopupAction,
1914
- AXMChangeLogUpdateSettingAction: AXMChangeLogUpdateSettingAction,
1915
- AXMChangeLogWorkflow: AXMChangeLogWorkflow,
1916
- AXMGlobalVariablesService: AXMGlobalVariablesService,
1917
- AXMGlobalVariablesServiceImpl: AXMGlobalVariablesServiceImpl,
1918
- AXMListTermsComponent: AXMListTermsComponent,
1919
- AXMNewTermWorkflow: AXMNewTermWorkflow,
1920
- AXMNotifyAppComponent: AXMNotifyAppComponent,
1921
- AXMNotifyNewTermPopupAction: AXMNotifyNewTermPopupAction,
1922
- AXMTermUpdateSettingAction: AXMTermUpdateSettingAction,
1923
- AppTermAndVersionCheck: AppTermAndVersionCheck,
1924
- appTermEntityEntityFactory: appTermEntityEntityFactory,
1925
- appVersionEntityEntityFactory: appVersionEntityEntityFactory,
1926
- globalVariableEntityFactory: globalVariableEntityFactory
1927
- });
1928
-
1929
- class AXMEntityLoader {
2234
+ class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
2235
+ }
2236
+ class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
2237
+ constructor() {
2238
+ super(`${RootConfig.module.name}.${RootConfig.entities.globalVariable.name}`);
2239
+ }
2240
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2241
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
2242
+ }
2243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
2244
+ type: Injectable
2245
+ }], ctorParameters: () => [] });
2246
+
2247
+ async function globalVariableEntityFactory(injector) {
2248
+ const dataService = injector.get(AXMGlobalVariablesService);
2249
+ const i18n = RootConfig.config.i18n;
2250
+ const entityDef = {
2251
+ module: RootConfig.module.name,
2252
+ name: RootConfig.entities.globalVariable.name,
2253
+ source: '',
2254
+ title: RootConfig.entities.globalVariable.title,
2255
+ formats: {
2256
+ individual: 'Global Variable',
2257
+ plural: 'Global Variables',
2258
+ },
2259
+ relatedEntities: [],
2260
+ groups: [
2261
+ {
2262
+ id: 'section',
2263
+ title: 'Global Variable',
2264
+ },
2265
+ ],
2266
+ properties: [
2267
+ {
2268
+ name: 'name',
2269
+ title: `t("name", { scope: "common" })`,
2270
+ groupId: 'section',
2271
+ schema: {
2272
+ dataType: 'string',
2273
+ interface: {
2274
+ type: AXPWidgetsCatalog.text,
2275
+ },
2276
+ },
2277
+ validations: [
2278
+ {
2279
+ rule: 'required',
2280
+ },
2281
+ ],
2282
+ },
2283
+ {
2284
+ name: 'title',
2285
+ title: `t("title", { scope: "common" })`,
2286
+ groupId: 'section',
2287
+ schema: {
2288
+ dataType: 'string',
2289
+ interface: {
2290
+ type: AXPWidgetsCatalog.text,
2291
+ },
2292
+ },
2293
+ validations: [
2294
+ {
2295
+ rule: 'required',
2296
+ },
2297
+ ],
2298
+ },
2299
+ {
2300
+ name: 'value',
2301
+ title: `t("value", { scope: "${i18n}" })`,
2302
+ groupId: 'section',
2303
+ schema: {
2304
+ dataType: 'string',
2305
+ interface: {
2306
+ type: AXPWidgetsCatalog.text,
2307
+ },
2308
+ },
2309
+ validations: [
2310
+ {
2311
+ rule: 'required',
2312
+ },
2313
+ ],
2314
+ },
2315
+ {
2316
+ name: 'dataType',
2317
+ title: `t("dataType", { scope: "${i18n}" })`,
2318
+ groupId: 'section',
2319
+ schema: {
2320
+ dataType: 'string',
2321
+ interface: {
2322
+ type: AXPWidgetsCatalog.select,
2323
+ options: {
2324
+ valueField: 'name',
2325
+ textField: 'title',
2326
+ dataSource: [
2327
+ { title: 'String', name: 'String' },
2328
+ { title: 'Integer', name: 'integer' },
2329
+ { title: 'Date Time', name: 'dateTime' },
2330
+ { title: 'Boolean', name: 'boolean' },
2331
+ { title: 'Function', name: 'function' },
2332
+ { title: 'Custom', name: 'custom' },
2333
+ ],
2334
+ direction: 'horizontal',
2335
+ multiple: false,
2336
+ },
2337
+ },
2338
+ },
2339
+ validations: [
2340
+ {
2341
+ rule: 'required',
2342
+ },
2343
+ ],
2344
+ },
2345
+ ],
2346
+ columns: [{ name: 'title' }, { name: 'dataType' }, { name: 'value' }],
2347
+ commands: {
2348
+ create: {
2349
+ execute: async (data) => {
2350
+ return Promise.resolve({ id: await dataService.insertOne(data) });
2351
+ },
2352
+ },
2353
+ delete: {
2354
+ execute: async (id) => {
2355
+ await await dataService.deleteOne(id);
2356
+ return Promise.resolve();
2357
+ },
2358
+ },
2359
+ update: {
2360
+ execute: async (data) => {
2361
+ return new Promise((resolve) => {
2362
+ setTimeout(async () => {
2363
+ await dataService.updateOne(data.id, data);
2364
+ resolve(data);
2365
+ }, 1000);
2366
+ });
2367
+ },
2368
+ },
2369
+ },
2370
+ queries: {
2371
+ byKey: {
2372
+ execute: async (id) => {
2373
+ return new Promise((resolve) => {
2374
+ setTimeout(async () => {
2375
+ const entity = await dataService.getOne(id);
2376
+ resolve(entity);
2377
+ }, 500);
2378
+ });
2379
+ },
2380
+ type: AXPEntityQueryType.Single,
2381
+ },
2382
+ list: {
2383
+ execute: async (e) => {
2384
+ const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2385
+ console.log(x);
2386
+ return x;
2387
+ },
2388
+ type: AXPEntityQueryType.List,
2389
+ },
2390
+ },
2391
+ interfaces: {
2392
+ master: {
2393
+ create: {
2394
+ sections: [
2395
+ {
2396
+ id: 'section',
2397
+ },
2398
+ ],
2399
+ properties: [
2400
+ {
2401
+ name: 'title',
2402
+ layout: {
2403
+ positions: {
2404
+ lg: {
2405
+ colSpan: 6,
2406
+ },
2407
+ },
2408
+ },
2409
+ },
2410
+ {
2411
+ name: 'name',
2412
+ layout: {
2413
+ positions: {
2414
+ lg: {
2415
+ colSpan: 6,
2416
+ },
2417
+ },
2418
+ },
2419
+ },
2420
+ {
2421
+ name: 'value',
2422
+ layout: {
2423
+ positions: {
2424
+ lg: {
2425
+ colSpan: 6,
2426
+ },
2427
+ },
2428
+ },
2429
+ },
2430
+ {
2431
+ name: 'dataType',
2432
+ layout: {
2433
+ positions: {
2434
+ lg: {
2435
+ colSpan: 6,
2436
+ },
2437
+ },
2438
+ },
2439
+ },
2440
+ ],
2441
+ },
2442
+ update: {
2443
+ sections: [
2444
+ {
2445
+ id: 'section',
2446
+ },
2447
+ ],
2448
+ properties: [
2449
+ {
2450
+ name: 'title',
2451
+ layout: {
2452
+ positions: {
2453
+ lg: {
2454
+ colSpan: 6,
2455
+ },
2456
+ },
2457
+ },
2458
+ },
2459
+ {
2460
+ name: 'name',
2461
+ layout: {
2462
+ positions: {
2463
+ lg: {
2464
+ colSpan: 6,
2465
+ },
2466
+ },
2467
+ },
2468
+ },
2469
+ {
2470
+ name: 'value',
2471
+ layout: {
2472
+ positions: {
2473
+ lg: {
2474
+ colSpan: 6,
2475
+ },
2476
+ },
2477
+ },
2478
+ },
2479
+ {
2480
+ name: 'dataType',
2481
+ layout: {
2482
+ positions: {
2483
+ lg: {
2484
+ colSpan: 6,
2485
+ },
2486
+ },
2487
+ },
2488
+ },
2489
+ ],
2490
+ },
2491
+ single: {
2492
+ title: '{{title}}',
2493
+ sections: [
2494
+ {
2495
+ id: 'section',
2496
+ },
2497
+ ],
2498
+ properties: [
2499
+ {
2500
+ name: 'title',
2501
+ layout: {
2502
+ positions: {
2503
+ lg: {
2504
+ colSpan: 6,
2505
+ },
2506
+ },
2507
+ },
2508
+ },
2509
+ {
2510
+ name: 'name',
2511
+ layout: {
2512
+ positions: {
2513
+ lg: {
2514
+ colSpan: 6,
2515
+ },
2516
+ },
2517
+ },
2518
+ },
2519
+ {
2520
+ name: 'value',
2521
+ layout: {
2522
+ positions: {
2523
+ lg: {
2524
+ colSpan: 6,
2525
+ },
2526
+ },
2527
+ },
2528
+ },
2529
+ {
2530
+ name: 'dataType',
2531
+ layout: {
2532
+ positions: {
2533
+ lg: {
2534
+ colSpan: 6,
2535
+ },
2536
+ },
2537
+ },
2538
+ },
2539
+ ],
2540
+ actions: [],
2541
+ },
2542
+ list: {
2543
+ actions: [
2544
+ {
2545
+ title: `t("create", { scope: "common" })`,
2546
+ command: 'create-entity',
2547
+ priority: 'primary',
2548
+ type: 'create',
2549
+ scope: AXPEntityCommandScope.TypeLevel,
2550
+ },
2551
+ {
2552
+ title: 't("deleteItems", { scope: "common" })',
2553
+ command: 'delete-entity',
2554
+ priority: 'primary',
2555
+ type: 'delete',
2556
+ scope: AXPEntityCommandScope.Selected,
2557
+ },
2558
+ {
2559
+ title: 't("deleteItems", { scope: "common" })',
2560
+ command: 'open-entity',
2561
+ priority: 'secondary',
2562
+ type: 'view',
2563
+ scope: AXPEntityCommandScope.Individual,
2564
+ },
2565
+ {
2566
+ title: 't("delete", { scope: "common" })',
2567
+ command: 'delete-entity',
2568
+ priority: 'secondary',
2569
+ type: 'delete',
2570
+ scope: AXPEntityCommandScope.Individual,
2571
+ },
2572
+ ],
2573
+ views: [
2574
+ {
2575
+ name: 'all',
2576
+ title: 't("allItem", { scope: "common" })',
2577
+ fixed: true,
2578
+ columns: [],
2579
+ conditions: [],
2580
+ sorts: [],
2581
+ },
2582
+ ],
2583
+ },
2584
+ },
2585
+ },
2586
+ };
2587
+ return entityDef;
2588
+ }
2589
+
2590
+ class AXMAppPromotionService extends AXMEntityCrudServiceImpl {
2591
+ }
2592
+ class AXMPromotionServiceImpl extends AXMEntityCrudServiceImpl {
2593
+ constructor() {
2594
+ super(`${RootConfig.module.name}.${RootConfig.entities.promotion.name}`);
2595
+ }
2596
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2597
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl }); }
2598
+ }
2599
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionServiceImpl, decorators: [{
2600
+ type: Injectable
2601
+ }], ctorParameters: () => [] });
2602
+
2603
+ class AXMPromotionSlotComponent {
2604
+ constructor() {
2605
+ this.notificationChannelService = inject(AXMAppPromotionService);
2606
+ this.listData = signal([]);
2607
+ this.fileStorage = inject(AXPFileStorageService);
2608
+ }
2609
+ async ngOnInit() {
2610
+ const channels = await this.notificationChannelService.query({
2611
+ skip: 0,
2612
+ take: 10000,
2613
+ // filter: {
2614
+ // field: 'type',
2615
+ // operator: { type: 'equal' },
2616
+ // value: 'promotion',
2617
+ // },
2618
+ });
2619
+ const filteredItems = channels.items.filter((x) => x.placement?.name == this.location);
2620
+ const mappedItems = await Promise.all(filteredItems.map(async (item) => {
2621
+ if (item.imageId != null) {
2622
+ const image = await this.fileStorage.getInfo(item.imageId);
2623
+ return {
2624
+ ...item,
2625
+ image: image,
2626
+ };
2627
+ }
2628
+ else {
2629
+ return item;
2630
+ }
2631
+ }));
2632
+ this.listData.set(mappedItems);
2633
+ }
2634
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2635
+ 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\n [src]=\"item.image?.url ?? ''\"\n class=\"ax-h-24 ax-m-1 ax-w-full ax-border ax-bg-primary {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\"\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" }] }); }
2636
+ }
2637
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, decorators: [{
2638
+ type: Component,
2639
+ args: [{ selector: 'acorex-platform-promotion-slot', imports: [CommonModule, AXSafePipe], template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img\n [src]=\"item.image?.url ?? ''\"\n class=\"ax-h-24 ax-m-1 ax-w-full ax-border ax-bg-primary {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\"\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" }]
2640
+ }] });
2641
+
2642
+ async function promotionEntityFactory(injector) {
2643
+ const dataService = injector.get(AXMAppPromotionService);
2644
+ const i18n = RootConfig.config.i18n;
2645
+ const entityDef = {
2646
+ module: RootConfig.module.name,
2647
+ name: RootConfig.entities.promotion.name,
2648
+ source: '',
2649
+ title: RootConfig.entities.promotion.title,
2650
+ formats: {
2651
+ individual: RootConfig.entities.promotion.title,
2652
+ plural: RootConfig.entities.promotion.titlePlural,
2653
+ },
2654
+ relatedEntities: [],
2655
+ groups: [
2656
+ {
2657
+ id: 'promotion',
2658
+ title: 'Promotion',
2659
+ },
2660
+ ],
2661
+ properties: [
2662
+ {
2663
+ name: 'title',
2664
+ title: `t("title", { scope: "common" })`,
2665
+ groupId: 'promotion',
2666
+ schema: {
2667
+ dataType: 'string',
2668
+ interface: {
2669
+ type: AXPWidgetsCatalog.text,
2670
+ },
2671
+ },
2672
+ validations: [
2673
+ {
2674
+ rule: 'required',
2675
+ },
2676
+ ],
2677
+ },
2678
+ {
2679
+ name: 'body',
2680
+ title: `t("body", { scope: "${i18n}" })`,
2681
+ groupId: 'promotion',
2682
+ schema: {
2683
+ dataType: 'string',
2684
+ interface: {
2685
+ type: AXPWidgetsCatalog.richText,
2686
+ },
2687
+ },
2688
+ validations: [
2689
+ {
2690
+ rule: 'required',
2691
+ },
2692
+ ],
2693
+ },
2694
+ {
2695
+ name: 'imageId',
2696
+ title: `t("body", { scope: "${i18n}" })`,
2697
+ groupId: 'promotion',
2698
+ schema: {
2699
+ dataType: 'string',
2700
+ interface: {
2701
+ type: AXPWidgetsCatalog.file,
2702
+ options: {
2703
+ multiple: false,
2704
+ },
2705
+ },
2706
+ },
2707
+ },
2708
+ {
2709
+ name: 'contentType',
2710
+ title: `t("contentType", { scope: "${i18n}" })`,
2711
+ groupId: 'promotion',
2712
+ schema: {
2713
+ dataType: 'string',
2714
+ interface: {
2715
+ type: AXPWidgetsCatalog.select,
2716
+ options: {
2717
+ valueField: 'name',
2718
+ textField: 'title',
2719
+ dataSource: [
2720
+ { title: 'Media', name: 'media' },
2721
+ { title: 'Text', name: 'text' },
2722
+ ],
2723
+ direction: 'horizontal',
2724
+ multiple: false,
2725
+ },
2726
+ },
2727
+ },
2728
+ validations: [
2729
+ {
2730
+ rule: 'required',
2731
+ },
2732
+ ],
2733
+ },
2734
+ {
2735
+ name: 'shape',
2736
+ title: `t("shape", { scope: "${i18n}" })`,
2737
+ groupId: 'promotion',
2738
+ schema: {
2739
+ dataType: 'string',
2740
+ interface: {
2741
+ type: AXPWidgetsCatalog.select,
2742
+ options: {
2743
+ valueField: 'name',
2744
+ textField: 'title',
2745
+ dataSource: [
2746
+ { title: 'Circle', name: 'circle' },
2747
+ { title: 'Square', name: 'square' },
2748
+ ],
2749
+ direction: 'horizontal',
2750
+ multiple: false,
2751
+ },
2752
+ },
2753
+ },
2754
+ validations: [
2755
+ {
2756
+ rule: 'required',
2757
+ },
2758
+ ],
2759
+ },
2760
+ {
2761
+ name: 'placement',
2762
+ title: `t("placement", { scope: "${i18n}" })`,
2763
+ groupId: 'promotion',
2764
+ schema: {
2765
+ dataType: 'string',
2766
+ interface: {
2767
+ type: AXPWidgetsCatalog.select,
2768
+ options: {
2769
+ valueField: 'name',
2770
+ textField: 'title',
2771
+ dataSource: [
2772
+ { title: 'Side Menu Footer', name: 'side-menu-footer' },
2773
+ { title: 'Side Menu Header', name: 'side-menu-header' },
2774
+ ],
2775
+ direction: 'horizontal',
2776
+ multiple: false,
2777
+ },
2778
+ },
2779
+ },
2780
+ validations: [
2781
+ {
2782
+ rule: 'required',
2783
+ },
2784
+ ],
2785
+ },
2786
+ ],
2787
+ columns: [{ name: 'title' }, { name: 'body' }, { name: 'contentType' }, { name: 'shape' }, { name: 'placement' }],
2788
+ commands: {
2789
+ create: {
2790
+ execute: async (data) => {
2791
+ console.log(data);
2792
+ const res = await dataService.insertOne(data);
2793
+ return { id: res };
2794
+ },
2795
+ },
2796
+ delete: {
2797
+ execute: async (id) => {
2798
+ return await dataService.deleteOne(id);
2799
+ },
2800
+ },
2801
+ update: {
2802
+ execute: async (data) => {
2803
+ return await dataService.updateOne(data.id, data);
2804
+ },
2805
+ },
2806
+ },
2807
+ queries: {
2808
+ byKey: {
2809
+ execute: async (id) => {
2810
+ return await dataService.getOne(id);
2811
+ },
2812
+ type: AXPEntityQueryType.Single,
2813
+ },
2814
+ list: {
2815
+ execute: async (e) => {
2816
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2817
+ },
2818
+ type: AXPEntityQueryType.List,
2819
+ },
2820
+ },
2821
+ interfaces: {
2822
+ master: {
2823
+ create: {
2824
+ sections: [
2825
+ {
2826
+ id: 'promotion',
2827
+ },
2828
+ ],
2829
+ properties: [
2830
+ {
2831
+ name: 'title',
2832
+ layout: {
2833
+ positions: {
2834
+ lg: {
2835
+ colSpan: 6,
2836
+ order: 1,
2837
+ },
2838
+ },
2839
+ },
2840
+ },
2841
+ {
2842
+ name: 'body',
2843
+ layout: {
2844
+ positions: {
2845
+ lg: {
2846
+ colSpan: 12,
2847
+ order: 5,
2848
+ },
2849
+ },
2850
+ },
2851
+ },
2852
+ {
2853
+ name: 'imageId',
2854
+ layout: {
2855
+ positions: {
2856
+ lg: {
2857
+ colSpan: 12,
2858
+ order: 6,
2859
+ },
2860
+ },
2861
+ },
2862
+ },
2863
+ {
2864
+ name: 'contentType',
2865
+ layout: {
2866
+ positions: {
2867
+ lg: {
2868
+ colSpan: 6,
2869
+ order: 2,
2870
+ },
2871
+ },
2872
+ },
2873
+ },
2874
+ {
2875
+ name: 'shape',
2876
+ layout: {
2877
+ positions: {
2878
+ lg: {
2879
+ colSpan: 6,
2880
+ order: 3,
2881
+ },
2882
+ },
2883
+ },
2884
+ },
2885
+ {
2886
+ name: 'placement',
2887
+ layout: {
2888
+ positions: {
2889
+ lg: {
2890
+ colSpan: 6,
2891
+ order: 4,
2892
+ },
2893
+ },
2894
+ },
2895
+ },
2896
+ ],
2897
+ },
2898
+ update: {
2899
+ sections: [
2900
+ {
2901
+ id: 'promotion',
2902
+ },
2903
+ ],
2904
+ properties: [
2905
+ {
2906
+ name: 'title',
2907
+ layout: {
2908
+ positions: {
2909
+ lg: {
2910
+ colSpan: 6,
2911
+ order: 1,
2912
+ },
2913
+ },
2914
+ },
2915
+ },
2916
+ {
2917
+ name: 'body',
2918
+ layout: {
2919
+ positions: {
2920
+ lg: {
2921
+ colSpan: 12,
2922
+ order: 5,
2923
+ },
2924
+ },
2925
+ },
2926
+ },
2927
+ {
2928
+ name: 'imageId',
2929
+ layout: {
2930
+ positions: {
2931
+ lg: {
2932
+ colSpan: 12,
2933
+ order: 6,
2934
+ },
2935
+ },
2936
+ },
2937
+ },
2938
+ {
2939
+ name: 'contentType',
2940
+ layout: {
2941
+ positions: {
2942
+ lg: {
2943
+ colSpan: 6,
2944
+ order: 2,
2945
+ },
2946
+ },
2947
+ },
2948
+ },
2949
+ {
2950
+ name: 'shape',
2951
+ layout: {
2952
+ positions: {
2953
+ lg: {
2954
+ colSpan: 6,
2955
+ order: 3,
2956
+ },
2957
+ },
2958
+ },
2959
+ },
2960
+ {
2961
+ name: 'placement',
2962
+ layout: {
2963
+ positions: {
2964
+ lg: {
2965
+ colSpan: 6,
2966
+ order: 4,
2967
+ },
2968
+ },
2969
+ },
2970
+ },
2971
+ ],
2972
+ },
2973
+ single: {
2974
+ title: '{{title}}',
2975
+ sections: [
2976
+ {
2977
+ id: 'promotion',
2978
+ },
2979
+ ],
2980
+ properties: [
2981
+ {
2982
+ name: 'title',
2983
+ layout: {
2984
+ positions: {
2985
+ lg: {
2986
+ colSpan: 6,
2987
+ },
2988
+ },
2989
+ },
2990
+ },
2991
+ {
2992
+ name: 'body',
2993
+ layout: {
2994
+ positions: {
2995
+ lg: {
2996
+ colSpan: 6,
2997
+ },
2998
+ },
2999
+ },
3000
+ },
3001
+ {
3002
+ name: 'imageId',
3003
+ layout: {
3004
+ positions: {
3005
+ lg: {
3006
+ colSpan: 12,
3007
+ order: 2,
3008
+ },
3009
+ },
3010
+ },
3011
+ },
3012
+ {
3013
+ name: 'contentType',
3014
+ layout: {
3015
+ positions: {
3016
+ lg: {
3017
+ colSpan: 4,
3018
+ order: 4,
3019
+ },
3020
+ },
3021
+ },
3022
+ },
3023
+ {
3024
+ name: 'shape',
3025
+ layout: {
3026
+ positions: {
3027
+ lg: {
3028
+ colSpan: 4,
3029
+ order: 5,
3030
+ },
3031
+ },
3032
+ },
3033
+ },
3034
+ {
3035
+ name: 'placement',
3036
+ layout: {
3037
+ positions: {
3038
+ lg: {
3039
+ colSpan: 4,
3040
+ order: 6,
3041
+ },
3042
+ },
3043
+ },
3044
+ },
3045
+ ],
3046
+ actions: [],
3047
+ },
3048
+ list: {
3049
+ actions: [
3050
+ {
3051
+ title: `t("create", { scope: "common" })`,
3052
+ command: 'create-entity',
3053
+ priority: 'primary',
3054
+ type: 'create',
3055
+ scope: AXPEntityCommandScope.TypeLevel,
3056
+ },
3057
+ {
3058
+ title: 't("deleteItems", { scope: "common" })',
3059
+ command: 'delete-entity',
3060
+ priority: 'primary',
3061
+ type: 'delete',
3062
+ scope: AXPEntityCommandScope.Selected,
3063
+ },
3064
+ {
3065
+ title: 't("detail", { scope: "common" })',
3066
+ command: 'open-entity',
3067
+ priority: 'primary',
3068
+ type: 'view',
3069
+ scope: AXPEntityCommandScope.Individual,
3070
+ },
3071
+ {
3072
+ title: 't("delete", { scope: "common" })',
3073
+ command: 'delete-entity',
3074
+ priority: 'primary',
3075
+ type: 'delete',
3076
+ scope: AXPEntityCommandScope.Individual,
3077
+ },
3078
+ ],
3079
+ views: [
3080
+ {
3081
+ name: 'all',
3082
+ title: 't("all", { scope: "common" })',
3083
+ fixed: true,
3084
+ columns: [],
3085
+ conditions: [],
3086
+ sorts: [],
3087
+ },
3088
+ ],
3089
+ },
3090
+ },
3091
+ },
3092
+ };
3093
+ return entityDef;
3094
+ }
3095
+
3096
+ var index = /*#__PURE__*/Object.freeze({
3097
+ __proto__: null,
3098
+ AXMAppPromotionService: AXMAppPromotionService,
3099
+ AXMAppTermService: AXMAppTermService,
3100
+ AXMAppTermServiceImpl: AXMAppTermServiceImpl,
3101
+ AXMAppVersionService: AXMAppVersionService,
3102
+ AXMAppVersionServiceImpl: AXMAppVersionServiceImpl,
3103
+ AXMAppVersionSlotComponent: AXMAppVersionSlotComponent,
3104
+ AXMChangeLogPopupAction: AXMChangeLogPopupAction,
3105
+ AXMChangeLogUpdateSettingAction: AXMChangeLogUpdateSettingAction,
3106
+ AXMChangeLogWorkflow: AXMChangeLogWorkflow,
3107
+ AXMDataSourceService: AXMDataSourceService,
3108
+ AXMDataSourceServiceImpl: AXMDataSourceServiceImpl,
3109
+ AXMGlobalVariablesService: AXMGlobalVariablesService,
3110
+ AXMGlobalVariablesServiceImpl: AXMGlobalVariablesServiceImpl,
3111
+ AXMListTermsComponent: AXMListTermsComponent,
3112
+ AXMNewTermWorkflow: AXMNewTermWorkflow,
3113
+ AXMNotifyAppComponent: AXMNotifyAppComponent,
3114
+ AXMNotifyNewTermPopupAction: AXMNotifyNewTermPopupAction,
3115
+ AXMPromotionServiceImpl: AXMPromotionServiceImpl,
3116
+ AXMPromotionSlotComponent: AXMPromotionSlotComponent,
3117
+ AXMTermUpdateSettingAction: AXMTermUpdateSettingAction,
3118
+ AppTermAndVersionCheck: AppTermAndVersionCheck,
3119
+ appTermEntityEntityFactory: appTermEntityEntityFactory,
3120
+ appVersionEntityEntityFactory: appVersionEntityEntityFactory,
3121
+ dataSourceEntityFactory: dataSourceEntityFactory,
3122
+ globalVariableEntityFactory: globalVariableEntityFactory,
3123
+ promotionEntityFactory: promotionEntityFactory
3124
+ });
3125
+
3126
+ class AXMEntityLoader {
1930
3127
  constructor() {
1931
3128
  this.injector = inject(Injector);
1932
3129
  }
@@ -1956,6 +3153,16 @@ class AXMEntityLoader {
1956
3153
  resolve(entity(this.injector));
1957
3154
  break;
1958
3155
  }
3156
+ case RootConfig.entities.promotion.name: {
3157
+ const entity = (await Promise.resolve().then(function () { return index; })).promotionEntityFactory;
3158
+ resolve(entity(this.injector));
3159
+ break;
3160
+ }
3161
+ case RootConfig.entities.dataSource.name: {
3162
+ const entity = (await Promise.resolve().then(function () { return index; })).dataSourceEntityFactory;
3163
+ resolve(entity(this.injector));
3164
+ break;
3165
+ }
1959
3166
  default:
1960
3167
  resolve(null);
1961
3168
  }
@@ -2036,6 +3243,24 @@ class AXMMenuProvider {
2036
3243
  // requiredPermission: '',
2037
3244
  },
2038
3245
  },
3246
+ {
3247
+ priority: 9005,
3248
+ text: RootConfig.entities.promotion.title,
3249
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.promotion.name),
3250
+ icon: RootConfig.entities.promotion.icon,
3251
+ data: {
3252
+ // requiredPermission: '',
3253
+ },
3254
+ },
3255
+ {
3256
+ priority: 9004,
3257
+ text: RootConfig.entities.dataSource.title,
3258
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.dataSource.name),
3259
+ icon: RootConfig.entities.dataSource.icon,
3260
+ data: {
3261
+ // requiredPermission: '',
3262
+ },
3263
+ },
2039
3264
  ],
2040
3265
  },
2041
3266
  ]);
@@ -2054,6 +3279,31 @@ class AXMMenuProvider {
2054
3279
  }
2055
3280
  }
2056
3281
 
3282
+ class AXMDynamicDataSourceProvider {
3283
+ constructor() {
3284
+ this.dataSourceService = inject(AXMDataSourceService);
3285
+ }
3286
+ async items() {
3287
+ return (await this.dataSourceService.query({
3288
+ skip: 0,
3289
+ take: 1000,
3290
+ })).items.map((item) => {
3291
+ return {
3292
+ ...item,
3293
+ source: () => {
3294
+ console.log(item);
3295
+ if (item.sourceType.name == 'static') {
3296
+ return convertArrayToDataSource(item.sourceStatic);
3297
+ }
3298
+ else {
3299
+ return convertArrayToDataSource([]);
3300
+ }
3301
+ },
3302
+ };
3303
+ });
3304
+ }
3305
+ }
3306
+
2057
3307
  function routesFactory() {
2058
3308
  const config = inject(AXP_ENTITY_CONFIG_TOKEN);
2059
3309
  const routes = [
@@ -2076,7 +3326,7 @@ class AXMPlatformManagementModule {
2076
3326
  */
2077
3327
  constructor(appVersionCheck) { }
2078
3328
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [{ token: AppTermAndVersionCheck }], target: i0.ɵɵFactoryTarget.NgModule }); }
2079
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule, i2$4.AXPWorkflowModule] }); }
3329
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule, i2$4.AXPWorkflowModule, i1$1.AXPComponentSlotModule] }); }
2080
3330
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [
2081
3331
  {
2082
3332
  provide: ROUTES,
@@ -2095,6 +3345,14 @@ class AXMPlatformManagementModule {
2095
3345
  provide: AXMAppTermService,
2096
3346
  useClass: AXMAppTermServiceImpl,
2097
3347
  },
3348
+ {
3349
+ provide: AXMAppPromotionService,
3350
+ useClass: AXMPromotionServiceImpl,
3351
+ },
3352
+ {
3353
+ provide: AXMDataSourceService,
3354
+ useClass: AXMDataSourceServiceImpl,
3355
+ },
2098
3356
  {
2099
3357
  provide: AXP_ENTITY_DEFINITION_LOADER,
2100
3358
  useClass: AXMEntityLoader,
@@ -2105,6 +3363,11 @@ class AXMPlatformManagementModule {
2105
3363
  useClass: AXMMenuProvider,
2106
3364
  multi: true,
2107
3365
  },
3366
+ {
3367
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
3368
+ useClass: AXMDynamicDataSourceProvider,
3369
+ multi: true,
3370
+ },
2108
3371
  AppTermAndVersionCheck,
2109
3372
  ], imports: [AXMPlatformManagementCommonModule,
2110
3373
  AXPWorkflowModule.forChild({
@@ -2118,6 +3381,27 @@ class AXMPlatformManagementModule {
2118
3381
  'change-log-version': AXMChangeLogWorkflow,
2119
3382
  'new-term': AXMNewTermWorkflow,
2120
3383
  },
3384
+ }),
3385
+ AXPComponentSlotModule.forChild({
3386
+ 'side-menu-footer': [
3387
+ {
3388
+ name: 'side-menu-footer',
3389
+ component: AXMPromotionSlotComponent,
3390
+ options: {
3391
+ location: 'side-menu-footer',
3392
+ },
3393
+ },
3394
+ ],
3395
+ 'side-menu-header': [
3396
+ {
3397
+ name: 'side-menu-header',
3398
+ component: AXMPromotionSlotComponent,
3399
+ priority: 2,
3400
+ options: {
3401
+ location: 'side-menu-header',
3402
+ },
3403
+ },
3404
+ ],
2121
3405
  })] }); }
2122
3406
  }
2123
3407
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
@@ -2137,6 +3421,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
2137
3421
  'new-term': AXMNewTermWorkflow,
2138
3422
  },
2139
3423
  }),
3424
+ AXPComponentSlotModule.forChild({
3425
+ 'side-menu-footer': [
3426
+ {
3427
+ name: 'side-menu-footer',
3428
+ component: AXMPromotionSlotComponent,
3429
+ options: {
3430
+ location: 'side-menu-footer',
3431
+ },
3432
+ },
3433
+ ],
3434
+ 'side-menu-header': [
3435
+ {
3436
+ name: 'side-menu-header',
3437
+ component: AXMPromotionSlotComponent,
3438
+ priority: 2,
3439
+ options: {
3440
+ location: 'side-menu-header',
3441
+ },
3442
+ },
3443
+ ],
3444
+ }),
2140
3445
  ],
2141
3446
  exports: [],
2142
3447
  declarations: [],
@@ -2158,6 +3463,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
2158
3463
  provide: AXMAppTermService,
2159
3464
  useClass: AXMAppTermServiceImpl,
2160
3465
  },
3466
+ {
3467
+ provide: AXMAppPromotionService,
3468
+ useClass: AXMPromotionServiceImpl,
3469
+ },
3470
+ {
3471
+ provide: AXMDataSourceService,
3472
+ useClass: AXMDataSourceServiceImpl,
3473
+ },
2161
3474
  {
2162
3475
  provide: AXP_ENTITY_DEFINITION_LOADER,
2163
3476
  useClass: AXMEntityLoader,
@@ -2168,6 +3481,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
2168
3481
  useClass: AXMMenuProvider,
2169
3482
  multi: true,
2170
3483
  },
3484
+ {
3485
+ provide: AXP_WIDGET_DATASOURCE_PROVIDER,
3486
+ useClass: AXMDynamicDataSourceProvider,
3487
+ multi: true,
3488
+ },
2171
3489
  AppTermAndVersionCheck,
2172
3490
  ],
2173
3491
  }]
@@ -2177,5 +3495,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
2177
3495
  * Generated bundle index. Do not edit.
2178
3496
  */
2179
3497
 
2180
- export { AXMAppTermService, AXMAppTermServiceImpl, AXMAppVersionService, AXMAppVersionServiceImpl, AXMAppVersionSlotComponent, AXMChangeLogPopupAction, AXMChangeLogUpdateSettingAction, AXMChangeLogWorkflow, AXMCommonModuleEntityProvider, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMListTermsComponent, AXMNewTermWorkflow, AXMNotifyAppComponent, AXMNotifyNewTermPopupAction, AXMPlatformManagementModule, AXMTermUpdateSettingAction, AppTermAndVersionCheck, RootConfig, appTermEntityEntityFactory, appVersionEntityEntityFactory, globalVariableEntityFactory };
3498
+ export { AXMAppPromotionService, AXMAppTermService, AXMAppTermServiceImpl, AXMAppVersionService, AXMAppVersionServiceImpl, AXMAppVersionSlotComponent, AXMChangeLogPopupAction, AXMChangeLogUpdateSettingAction, AXMChangeLogWorkflow, AXMCommonModuleEntityProvider, AXMDataSourceService, AXMDataSourceServiceImpl, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMListTermsComponent, AXMNewTermWorkflow, AXMNotifyAppComponent, AXMNotifyNewTermPopupAction, AXMPlatformManagementModule, AXMPromotionServiceImpl, AXMPromotionSlotComponent, AXMTermUpdateSettingAction, AXPRegionalService, AXPRegionalStoreService, AppTermAndVersionCheck, RootConfig, appTermEntityEntityFactory, appVersionEntityEntityFactory, dataSourceEntityFactory, globalVariableEntityFactory, promotionEntityFactory };
2181
3499
  //# sourceMappingURL=acorex-modules-platform-management.mjs.map