@acorex/modules 19.2.5 → 19.2.7

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 (208) hide show
  1. package/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.d.ts +2 -2
  2. package/auth/lib/store/auth.effects.d.ts +2 -2
  3. package/fesm2022/{acorex-modules-application-management-module-designer.component-kMtkkid-.mjs → acorex-modules-application-management-module-designer.component-DPJ4qpK3.mjs} +4 -4
  4. package/fesm2022/acorex-modules-application-management-module-designer.component-DPJ4qpK3.mjs.map +1 -0
  5. package/fesm2022/acorex-modules-application-management.mjs +3 -3
  6. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  7. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-CcRRSTGN.mjs → acorex-modules-auth-acorex-modules-auth-HwJJs-3A.mjs} +24 -24
  8. package/fesm2022/acorex-modules-auth-acorex-modules-auth-HwJJs-3A.mjs.map +1 -0
  9. package/fesm2022/acorex-modules-auth-app-chooser.component-BvxMkXPp.mjs +64 -0
  10. package/fesm2022/acorex-modules-auth-app-chooser.component-BvxMkXPp.mjs.map +1 -0
  11. package/fesm2022/{acorex-modules-auth-login.module-ua9uEgUG.mjs → acorex-modules-auth-login.module-CDvLUxls.mjs} +4 -4
  12. package/fesm2022/{acorex-modules-auth-login.module-ua9uEgUG.mjs.map → acorex-modules-auth-login.module-CDvLUxls.mjs.map} +1 -1
  13. package/fesm2022/acorex-modules-auth-master.layout-CnKBnl8W.mjs +23 -0
  14. package/fesm2022/acorex-modules-auth-master.layout-CnKBnl8W.mjs.map +1 -0
  15. package/fesm2022/{acorex-modules-auth-password.component-BVoPZUG9.mjs → acorex-modules-auth-password.component-1FnIjiZ8.mjs} +2 -2
  16. package/fesm2022/{acorex-modules-auth-password.component-BVoPZUG9.mjs.map → acorex-modules-auth-password.component-1FnIjiZ8.mjs.map} +1 -1
  17. package/fesm2022/{acorex-modules-auth-password.component-CIwOjQRh.mjs → acorex-modules-auth-password.component-C16jeHuJ.mjs} +4 -4
  18. package/fesm2022/acorex-modules-auth-password.component-C16jeHuJ.mjs.map +1 -0
  19. package/fesm2022/{acorex-modules-auth-routes-hR3jePok.mjs → acorex-modules-auth-routes-ZDDUhAWd.mjs} +2 -2
  20. package/fesm2022/{acorex-modules-auth-routes-hR3jePok.mjs.map → acorex-modules-auth-routes-ZDDUhAWd.mjs.map} +1 -1
  21. package/fesm2022/{acorex-modules-auth-setting.provider-GJeEbIRd.mjs → acorex-modules-auth-setting.provider-DDl3OHw6.mjs} +2 -2
  22. package/fesm2022/{acorex-modules-auth-setting.provider-GJeEbIRd.mjs.map → acorex-modules-auth-setting.provider-DDl3OHw6.mjs.map} +1 -1
  23. package/fesm2022/acorex-modules-auth-tenant-chooser.component-CKsbiOUX.mjs +83 -0
  24. package/fesm2022/acorex-modules-auth-tenant-chooser.component-CKsbiOUX.mjs.map +1 -0
  25. package/fesm2022/{acorex-modules-auth-two-factor.module-CKe_H_-u.mjs → acorex-modules-auth-two-factor.module-C32MVGby.mjs} +2 -2
  26. package/fesm2022/{acorex-modules-auth-two-factor.module-CKe_H_-u.mjs.map → acorex-modules-auth-two-factor.module-C32MVGby.mjs.map} +1 -1
  27. package/fesm2022/acorex-modules-auth.mjs +1 -1
  28. package/fesm2022/acorex-modules-conversation.mjs +4 -4
  29. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  30. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-DGGKoVbL.mjs +908 -0
  31. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-DGGKoVbL.mjs.map +1 -0
  32. package/fesm2022/{acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs → acorex-modules-form-template-management-category.entity-B1X2QyYV.mjs} +2 -2
  33. package/fesm2022/{acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs.map → acorex-modules-form-template-management-category.entity-B1X2QyYV.mjs.map} +1 -1
  34. package/fesm2022/acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs.map +1 -1
  35. package/fesm2022/{acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs → acorex-modules-form-template-management-setting.provider-D-HyCbH7.mjs} +2 -2
  36. package/fesm2022/{acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs.map → acorex-modules-form-template-management-setting.provider-D-HyCbH7.mjs.map} +1 -1
  37. package/fesm2022/acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs +126 -0
  38. package/fesm2022/acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs.map +1 -0
  39. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CVyFN7D9.mjs → acorex-modules-form-template-management-template-widget-edit.component-CyZLM6M9.mjs} +2 -2
  40. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-CyZLM6M9.mjs.map +1 -0
  41. package/fesm2022/{acorex-modules-form-template-management-template.entity-BpApQcvG.mjs → acorex-modules-form-template-management-template.entity-DXIhxJeU.mjs} +2 -2
  42. package/fesm2022/{acorex-modules-form-template-management-template.entity-BpApQcvG.mjs.map → acorex-modules-form-template-management-template.entity-DXIhxJeU.mjs.map} +1 -1
  43. package/fesm2022/acorex-modules-form-template-management.mjs +1 -907
  44. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
  45. package/fesm2022/acorex-modules-notification-management.mjs +263 -9
  46. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  47. package/fesm2022/acorex-modules-organization-management-add-item.component-D0tN7Se4.mjs +83 -0
  48. package/fesm2022/acorex-modules-organization-management-add-item.component-D0tN7Se4.mjs.map +1 -0
  49. package/fesm2022/{acorex-modules-organization-managment-branch.entity-kuZxLStS.mjs → acorex-modules-organization-management-branch.entity-CbmnpHl2.mjs} +2 -2
  50. package/fesm2022/acorex-modules-organization-management-branch.entity-CbmnpHl2.mjs.map +1 -0
  51. package/fesm2022/{acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs → acorex-modules-organization-management-chart.entity-Bk4WgsYr.mjs} +2 -2
  52. package/fesm2022/acorex-modules-organization-management-chart.entity-Bk4WgsYr.mjs.map +1 -0
  53. package/fesm2022/{acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs → acorex-modules-organization-management-company.entity-d7GaCVei.mjs} +2 -2
  54. package/fesm2022/acorex-modules-organization-management-company.entity-d7GaCVei.mjs.map +1 -0
  55. package/fesm2022/{acorex-modules-organization-managment-department.entity-C1PxLx6p.mjs → acorex-modules-organization-management-department.entity-Dl7y4Rva.mjs} +2 -2
  56. package/fesm2022/acorex-modules-organization-management-department.entity-Dl7y4Rva.mjs.map +1 -0
  57. package/fesm2022/{acorex-modules-organization-managment-division.entity-DHVnrP38.mjs → acorex-modules-organization-management-division.entity-Ckmu2Tj9.mjs} +2 -2
  58. package/fesm2022/acorex-modules-organization-management-division.entity-Ckmu2Tj9.mjs.map +1 -0
  59. package/fesm2022/{acorex-modules-organization-managment-employee.entity-D4BSxGAW.mjs → acorex-modules-organization-management-employee.entity-PwlBjkYo.mjs} +2 -2
  60. package/fesm2022/acorex-modules-organization-management-employee.entity-PwlBjkYo.mjs.map +1 -0
  61. package/fesm2022/{acorex-modules-organization-managment-employment-type.entity-Cgbezwio.mjs → acorex-modules-organization-management-employment-type.entity-9aOaYT_-.mjs} +2 -2
  62. package/fesm2022/acorex-modules-organization-management-employment-type.entity-9aOaYT_-.mjs.map +1 -0
  63. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-BzjTyYyS.mjs +92 -0
  64. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-BzjTyYyS.mjs.map +1 -0
  65. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-DObuNZKQ.mjs +145 -0
  66. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-DObuNZKQ.mjs.map +1 -0
  67. package/fesm2022/acorex-modules-organization-management-org-chart.page-Cz4ENQRa.mjs +868 -0
  68. package/fesm2022/acorex-modules-organization-management-org-chart.page-Cz4ENQRa.mjs.map +1 -0
  69. package/fesm2022/{acorex-modules-organization-managment-position.entity-Bbb5KAkm.mjs → acorex-modules-organization-management-position.entity-DDkiBefn.mjs} +2 -2
  70. package/fesm2022/acorex-modules-organization-management-position.entity-DDkiBefn.mjs.map +1 -0
  71. package/fesm2022/{acorex-modules-organization-managment-setting.keys-CF6Giykz.mjs → acorex-modules-organization-management-setting.keys-CF6Giykz.mjs} +1 -1
  72. package/fesm2022/acorex-modules-organization-management-setting.keys-CF6Giykz.mjs.map +1 -0
  73. package/fesm2022/{acorex-modules-organization-managment-setting.provider-nKs53GcA.mjs → acorex-modules-organization-management-setting.provider-eLv_qnmE.mjs} +3 -3
  74. package/fesm2022/acorex-modules-organization-management-setting.provider-eLv_qnmE.mjs.map +1 -0
  75. package/fesm2022/{acorex-modules-organization-managment.mjs → acorex-modules-organization-management.mjs} +66 -22
  76. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -0
  77. package/fesm2022/acorex-modules-platform-management.mjs +1455 -155
  78. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  79. package/fesm2022/acorex-modules-security-management.mjs +12 -1
  80. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  81. package/form-template-management/index.d.ts +0 -1
  82. package/form-template-management/lib/features/designer/index.d.ts +5 -0
  83. package/form-template-management/lib/{services → features/designer}/template.provider.d.ts +1 -1
  84. package/form-template-management/lib/features/index.d.ts +1 -0
  85. package/notification-management/lib/entities/channel/channel.types.d.ts +14 -2
  86. package/organization-management/README.md +3 -0
  87. package/organization-management/index.d.ts +4 -0
  88. package/{organization-managment → organization-management}/lib/entities/chart/chart.types.d.ts +10 -5
  89. package/organization-management/lib/features/index.d.ts +1 -0
  90. package/organization-management/lib/features/organization-chart/add-item/add-item.component.d.ts +21 -0
  91. package/organization-management/lib/features/organization-chart/index.d.ts +1 -0
  92. package/{organization-managment → organization-management}/lib/features/organization-chart/org-chart-configuration.page.d.ts +4 -4
  93. package/organization-management/lib/features/organization-chart/org-chart-configuration.service.d.ts +25 -0
  94. package/organization-management/lib/features/organization-chart/org-chart-print.service.d.ts +45 -0
  95. package/{organization-managment → organization-management}/lib/features/organization-chart/org-chart.page.d.ts +79 -8
  96. package/organization-management/lib/features/organization-chart/org-chart.service.d.ts +63 -0
  97. package/organization-management/lib/features/organization-chart/org-chart.type.d.ts +46 -0
  98. package/{organization-managment/lib/organization-managment.module.d.ts → organization-management/lib/organization-management.module.d.ts} +4 -4
  99. package/package.json +8 -8
  100. package/platform-management/lib/const.d.ts +12 -0
  101. package/platform-management/lib/entities/app-term/components/notify-app/notify-app.component.d.ts +1 -2
  102. package/platform-management/lib/entities/data-source/coulmn-def.widget.d.ts +56 -0
  103. package/platform-management/lib/entities/data-source/data-source.entity.d.ts +3 -0
  104. package/platform-management/lib/entities/data-source/data-source.service.d.ts +10 -0
  105. package/platform-management/lib/entities/data-source/data-source.types.d.ts +7 -0
  106. package/platform-management/lib/entities/data-source/datasource-provider.dynamic.d.ts +6 -0
  107. package/platform-management/lib/entities/data-source/index.d.ts +3 -0
  108. package/platform-management/lib/entities/index.d.ts +2 -0
  109. package/platform-management/lib/entities/promotion/components/index.d.ts +1 -0
  110. package/platform-management/lib/entities/promotion/components/promotion-slot/promotion-slot.component.d.ts +13 -0
  111. package/platform-management/lib/entities/promotion/index.d.ts +4 -0
  112. package/platform-management/lib/entities/promotion/promotion.entity.d.ts +3 -0
  113. package/platform-management/lib/entities/promotion/promotion.service.d.ts +10 -0
  114. package/platform-management/lib/entities/promotion/promotion.types.d.ts +15 -0
  115. package/platform-management/lib/platform-management.module.d.ts +2 -1
  116. package/security-management/index.d.ts +1 -0
  117. package/security-management/lib/menu.keys.d.ts +5 -0
  118. package/fesm2022/acorex-modules-application-management-module-designer.component-kMtkkid-.mjs.map +0 -1
  119. package/fesm2022/acorex-modules-auth-acorex-modules-auth-CcRRSTGN.mjs.map +0 -1
  120. package/fesm2022/acorex-modules-auth-app-chooser.component-DuRnQda8.mjs +0 -64
  121. package/fesm2022/acorex-modules-auth-app-chooser.component-DuRnQda8.mjs.map +0 -1
  122. package/fesm2022/acorex-modules-auth-master.layout-KNzdjwP6.mjs +0 -23
  123. package/fesm2022/acorex-modules-auth-master.layout-KNzdjwP6.mjs.map +0 -1
  124. package/fesm2022/acorex-modules-auth-password.component-CIwOjQRh.mjs.map +0 -1
  125. package/fesm2022/acorex-modules-auth-tenant-chooser.component-Cx3fK__H.mjs +0 -83
  126. package/fesm2022/acorex-modules-auth-tenant-chooser.component-Cx3fK__H.mjs.map +0 -1
  127. package/fesm2022/acorex-modules-form-template-management-template-picker.component-CG-_1tWi.mjs +0 -126
  128. package/fesm2022/acorex-modules-form-template-management-template-picker.component-CG-_1tWi.mjs.map +0 -1
  129. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-CVyFN7D9.mjs.map +0 -1
  130. package/fesm2022/acorex-modules-organization-managment-branch.entity-kuZxLStS.mjs.map +0 -1
  131. package/fesm2022/acorex-modules-organization-managment-chart.entity-BqUE8fbV.mjs.map +0 -1
  132. package/fesm2022/acorex-modules-organization-managment-company.entity-DJt8tCqO.mjs.map +0 -1
  133. package/fesm2022/acorex-modules-organization-managment-department.entity-C1PxLx6p.mjs.map +0 -1
  134. package/fesm2022/acorex-modules-organization-managment-division.entity-DHVnrP38.mjs.map +0 -1
  135. package/fesm2022/acorex-modules-organization-managment-employee.entity-D4BSxGAW.mjs.map +0 -1
  136. package/fesm2022/acorex-modules-organization-managment-employment-type.entity-Cgbezwio.mjs.map +0 -1
  137. package/fesm2022/acorex-modules-organization-managment-org-chart-configuration.page-Dc6c7GmB.mjs +0 -310
  138. package/fesm2022/acorex-modules-organization-managment-org-chart-configuration.page-Dc6c7GmB.mjs.map +0 -1
  139. package/fesm2022/acorex-modules-organization-managment-org-chart.page-CTHNSn2n.mjs +0 -505
  140. package/fesm2022/acorex-modules-organization-managment-org-chart.page-CTHNSn2n.mjs.map +0 -1
  141. package/fesm2022/acorex-modules-organization-managment-position.entity-Bbb5KAkm.mjs.map +0 -1
  142. package/fesm2022/acorex-modules-organization-managment-setting.keys-CF6Giykz.mjs.map +0 -1
  143. package/fesm2022/acorex-modules-organization-managment-setting.provider-nKs53GcA.mjs.map +0 -1
  144. package/fesm2022/acorex-modules-organization-managment.mjs.map +0 -1
  145. package/organization-managment/README.md +0 -3
  146. package/organization-managment/index.d.ts +0 -3
  147. package/organization-managment/lib/features/organization-chart/org-chart-print.service.d.ts +0 -22
  148. package/organization-managment/lib/features/organization-chart/org-chart.service.d.ts +0 -35
  149. package/organization-managment/lib/features/organization-chart/org-chart.type.d.ts +0 -25
  150. /package/form-template-management/lib/{services → features/designer}/designer-connector.service.d.ts +0 -0
  151. /package/form-template-management/lib/{pages → features}/designer/designer.page.d.ts +0 -0
  152. /package/form-template-management/lib/{components → features/designer}/widgets/template/index.d.ts +0 -0
  153. /package/form-template-management/lib/{components → features/designer}/widgets/template/template-widget-designer.component.d.ts +0 -0
  154. /package/form-template-management/lib/{components → features/designer}/widgets/template/template-widget-edit.component.d.ts +0 -0
  155. /package/form-template-management/lib/{components → features/designer}/widgets/template/template-widget-view.component.d.ts +0 -0
  156. /package/form-template-management/lib/{components → features/designer}/widgets/template/template-widget.config.d.ts +0 -0
  157. /package/form-template-management/lib/{components → features/designer}/widgets/template-designer/index.d.ts +0 -0
  158. /package/form-template-management/lib/{components → features/designer}/widgets/template-designer/template-designer-widget-view.component.d.ts +0 -0
  159. /package/form-template-management/lib/{components → features/designer}/widgets/template-designer/template-designer-widget.config.d.ts +0 -0
  160. /package/form-template-management/lib/{components → features/designer}/widgets/template-picker/template-picker.component.d.ts +0 -0
  161. /package/form-template-management/lib/{components → features/designer}/widgets/template-picker/template.provider.d.ts +0 -0
  162. /package/form-template-management/lib/{workflows → features/designer/workflows}/create-template.workflow.d.ts +0 -0
  163. /package/form-template-management/lib/{workflows → features/designer/workflows}/design-template.workflow.d.ts +0 -0
  164. /package/{organization-managment → organization-management}/lib/const.d.ts +0 -0
  165. /package/{organization-managment → organization-management}/lib/entities/branch/branch.entity.d.ts +0 -0
  166. /package/{organization-managment → organization-management}/lib/entities/branch/branch.module.d.ts +0 -0
  167. /package/{organization-managment → organization-management}/lib/entities/branch/branch.service.d.ts +0 -0
  168. /package/{organization-managment → organization-management}/lib/entities/branch/branch.types.d.ts +0 -0
  169. /package/{organization-managment → organization-management}/lib/entities/branch/index.d.ts +0 -0
  170. /package/{organization-managment → organization-management}/lib/entities/chart/chart.entity.d.ts +0 -0
  171. /package/{organization-managment → organization-management}/lib/entities/chart/chart.module.d.ts +0 -0
  172. /package/{organization-managment → organization-management}/lib/entities/chart/chart.service.d.ts +0 -0
  173. /package/{organization-managment → organization-management}/lib/entities/chart/index.d.ts +0 -0
  174. /package/{organization-managment → organization-management}/lib/entities/company/company.entity.d.ts +0 -0
  175. /package/{organization-managment → organization-management}/lib/entities/company/company.module.d.ts +0 -0
  176. /package/{organization-managment → organization-management}/lib/entities/company/company.service.d.ts +0 -0
  177. /package/{organization-managment → organization-management}/lib/entities/company/company.types.d.ts +0 -0
  178. /package/{organization-managment → organization-management}/lib/entities/company/index.d.ts +0 -0
  179. /package/{organization-managment → organization-management}/lib/entities/department/department.entity.d.ts +0 -0
  180. /package/{organization-managment → organization-management}/lib/entities/department/department.module.d.ts +0 -0
  181. /package/{organization-managment → organization-management}/lib/entities/department/department.service.d.ts +0 -0
  182. /package/{organization-managment → organization-management}/lib/entities/department/department.types.d.ts +0 -0
  183. /package/{organization-managment → organization-management}/lib/entities/department/index.d.ts +0 -0
  184. /package/{organization-managment → organization-management}/lib/entities/division/division.entity.d.ts +0 -0
  185. /package/{organization-managment → organization-management}/lib/entities/division/division.module.d.ts +0 -0
  186. /package/{organization-managment → organization-management}/lib/entities/division/division.service.d.ts +0 -0
  187. /package/{organization-managment → organization-management}/lib/entities/division/division.types.d.ts +0 -0
  188. /package/{organization-managment → organization-management}/lib/entities/division/index.d.ts +0 -0
  189. /package/{organization-managment → organization-management}/lib/entities/employee/employee.entity.d.ts +0 -0
  190. /package/{organization-managment → organization-management}/lib/entities/employee/employee.module.d.ts +0 -0
  191. /package/{organization-managment → organization-management}/lib/entities/employee/employee.service.d.ts +0 -0
  192. /package/{organization-managment → organization-management}/lib/entities/employee/employee.types.d.ts +0 -0
  193. /package/{organization-managment → organization-management}/lib/entities/employee/index.d.ts +0 -0
  194. /package/{organization-managment → organization-management}/lib/entities/employment-type/employment-type.entity.d.ts +0 -0
  195. /package/{organization-managment → organization-management}/lib/entities/employment-type/employment-type.module.d.ts +0 -0
  196. /package/{organization-managment → organization-management}/lib/entities/employment-type/employment-type.service.d.ts +0 -0
  197. /package/{organization-managment → organization-management}/lib/entities/employment-type/employment-type.types.d.ts +0 -0
  198. /package/{organization-managment → organization-management}/lib/entities/employment-type/index.d.ts +0 -0
  199. /package/{organization-managment → organization-management}/lib/entities/index.d.ts +0 -0
  200. /package/{organization-managment → organization-management}/lib/entities/position/index.d.ts +0 -0
  201. /package/{organization-managment → organization-management}/lib/entities/position/position.entity.d.ts +0 -0
  202. /package/{organization-managment → organization-management}/lib/entities/position/position.module.d.ts +0 -0
  203. /package/{organization-managment → organization-management}/lib/entities/position/position.service.d.ts +0 -0
  204. /package/{organization-managment → organization-management}/lib/entities/position/position.types.d.ts +0 -0
  205. /package/{organization-managment → organization-management}/lib/entity.provider.d.ts +0 -0
  206. /package/{organization-managment → organization-management}/lib/menu.provider.d.ts +0 -0
  207. /package/{organization-managment → organization-management}/lib/setting.keys.d.ts +0 -0
  208. /package/{organization-managment → organization-management}/lib/setting.provider.d.ts +0 -0
@@ -1,908 +1,2 @@
1
- import { AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';
2
- import { AXMEntityCrudServiceImpl, AXPSearchCommandProvider, AXPDataGenerator, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
3
- import * as i2 from '@acorex/platform/layout/builder';
4
- import { AXPWidgetComponent, AXPLayoutBuilderModule, AXP_WIDGETS_ADVANCE_GROUP, createStringProperty, AXP_WIDGETS_LAYOUT_GROUP } from '@acorex/platform/layout/builder';
5
- import { AXPDesignerService, AXPWidgetDesignerRendererDirective, AXPDesignerAddWidgetMiniButtonComponent, AXPDesignerConnector } from '@acorex/platform/layout/designer';
6
- import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
7
- import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_BEHAVIOR_PROPERTY_GROUP, AXPWidgetsModule } from '@acorex/platform/widgets';
8
- import * as i2$1 from '@acorex/platform/workflow';
9
- import { AXPWorkflowService, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
10
- import * as i0 from '@angular/core';
11
- import { InjectionToken, inject, Injectable, computed, signal, effect, Component, ChangeDetectionStrategy, HostBinding, NgModule, Injector } from '@angular/core';
12
- import { ROUTES } from '@angular/router';
13
- import * as i3 from '@acorex/core/translation';
14
- import { AXTranslationModule } from '@acorex/core/translation';
15
- import * as i1 from '@angular/common';
16
- import { CommonModule } from '@angular/common';
17
- import { sortBy, get } from 'lodash-es';
18
- import { AXPopupService } from '@acorex/components/popup';
19
- import { AXButtonModule } from '@acorex/components/button';
20
-
21
- const AXP_TEMPLATE_WIDGET_PROVIDER = new InjectionToken('AXP_TEMPLATE_WIDGET_PROVIDER');
22
- class AXPTemplateWidgetProviderService {
23
- constructor() {
24
- this.popupService = inject(AXPopupService);
25
- this.providers = inject(AXP_TEMPLATE_WIDGET_PROVIDER, { optional: true });
26
- }
27
- async items(query) {
28
- if (Array.isArray(this.providers)) {
29
- const result = [];
30
- for (const provider of this.providers) {
31
- const items = await provider.items(query);
32
- if (items) {
33
- result.push(...items);
34
- }
35
- }
36
- return result;
37
- }
38
- else {
39
- return [];
40
- }
41
- }
42
- async get(id) {
43
- if (Array.isArray(this.providers)) {
44
- for (const provider of this.providers) {
45
- const node = await provider.get(id);
46
- if (node) {
47
- return node;
48
- }
49
- }
50
- }
51
- return null;
52
- }
53
- async chooseTemplate() {
54
- const com = await import('./acorex-modules-form-template-management-template-picker.component-CG-_1tWi.mjs').then((c) => c.AXPTemplateWidgetPickerComponent);
55
- const widgets = await this.items({
56
- skip: 0,
57
- take: 100,
58
- filter: {
59
- field: 'type.id',
60
- value: 20,
61
- operator: {
62
- type: 'equal',
63
- }
64
- }
65
- });
66
- const result = await this.popupService.open(com, {
67
- title: 'Widget Template Gallery',
68
- size: 'md',
69
- closeButton: true,
70
- data: {
71
- widgets: sortBy(widgets, (c) => c.title),
72
- },
73
- });
74
- if (result.data) {
75
- const selected = result.data?.widgets;
76
- return selected[0];
77
- }
78
- return null;
79
- }
80
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
81
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetProviderService, providedIn: 'root' }); }
82
- }
83
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetProviderService, decorators: [{
84
- type: Injectable,
85
- args: [{ providedIn: 'root' }]
86
- }] });
87
-
88
- class AXPTemplateWidgetViewComponent extends AXPWidgetComponent {
89
- constructor() {
90
- super();
91
- this.metaKey = '__meta__';
92
- this.templateProvider = inject(AXPTemplateWidgetProviderService);
93
- this.templateId = computed(() => this.options()['templateId']);
94
- this.nodes = signal([]);
95
- //
96
- effect(async () => {
97
- this.nodes.set([]);
98
- const value = this.getValue();
99
- const templateId = get(value, `${this.metaKey}.templateId`) ?? this.templateId();
100
- if (templateId) {
101
- const item = await this.templateProvider.get(templateId);
102
- if (item) {
103
- this.nodes.set(item.nodes);
104
- }
105
- }
106
- });
107
- }
108
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
109
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPTemplateWidgetViewComponent, isStandalone: true, selector: "axp-template-widget-view", usesInheritance: true, ngImport: i0, template: `
110
- @for (node of nodes(); track $index) {
111
- <ng-container axp-widget-renderer
112
- [node]="node"
113
- [parentNode]="this"
114
- [mode]="this.mode"
115
- >
116
- </ng-container>
117
- }
118
- @empty {
119
- <span class="ax-underline ax-decoration-dotted ax-underline-offset-8 ax-text-gray-400">
120
- {{ 'empty-template' | translate : { scope: 'form-template-management' } | async }}
121
- </span>
122
- }
123
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: i2.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
124
- }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetViewComponent, decorators: [{
126
- type: Component,
127
- args: [{
128
- selector: 'axp-template-widget-view',
129
- template: `
130
- @for (node of nodes(); track $index) {
131
- <ng-container axp-widget-renderer
132
- [node]="node"
133
- [parentNode]="this"
134
- [mode]="this.mode"
135
- >
136
- </ng-container>
137
- }
138
- @empty {
139
- <span class="ax-underline ax-decoration-dotted ax-underline-offset-8 ax-text-gray-400">
140
- {{ 'empty-template' | translate : { scope: 'form-template-management' } | async }}
141
- </span>
142
- }
143
- `,
144
- changeDetection: ChangeDetectionStrategy.OnPush,
145
- imports: [CommonModule, AXPLayoutBuilderModule, AXTranslationModule]
146
- }]
147
- }], ctorParameters: () => [] });
148
-
149
- var templateWidgetView_component = /*#__PURE__*/Object.freeze({
150
- __proto__: null,
151
- AXPTemplateWidgetViewComponent: AXPTemplateWidgetViewComponent
152
- });
153
-
154
- const AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU = {
155
- text: 'Choose Template',
156
- name: 'choose',
157
- icon: 'fa-solid fa-folder-open',
158
- };
159
- class AXPTemplateWidgetDesignerComponent extends AXPWidgetComponent {
160
- constructor() {
161
- super();
162
- this.templateProvider = inject(AXPTemplateWidgetProviderService);
163
- this.designerService = inject(AXPDesignerService);
164
- this.templateId = computed(() => this.options()['templateId']);
165
- this.nodes = signal([]);
166
- this.title = signal(null);
167
- //
168
- effect(async () => {
169
- this.nodes.set([]);
170
- if (this.templateId()) {
171
- const item = await this.templateProvider.get(this.templateId());
172
- if (item && item.nodes?.length > 0) {
173
- this.title.set(item.title);
174
- this.nodes.set(item.nodes);
175
- }
176
- }
177
- });
178
- }
179
- // override async ngOnInit() {
180
- // super.ngOnInit();
181
- // if (!this.templateId()) {
182
- // this.handleChooseWidget();
183
- // }
184
- // }
185
- async handleChooseWidget() {
186
- const result = await this.templateProvider.chooseTemplate();
187
- if (result) {
188
- this.designerService.update({
189
- mode: 'update',
190
- values: { options: { templateId: result.id } },
191
- widget: this.node,
192
- });
193
- }
194
- }
195
- get __class() {
196
- const cls = {};
197
- //
198
- cls[`ax-w-full`] = true;
199
- cls[`ax-widget-outline`] = true;
200
- //
201
- cls[`ax-block`] = true;
202
- return cls;
203
- }
204
- onContextMenu(context) {
205
- const items = [
206
- AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU
207
- ];
208
- items[items.length - 1].break = true;
209
- context.items.unshift(...items);
210
- }
211
- async executeCommand(command) {
212
- switch (command.name) {
213
- case AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU.name:
214
- await this.handleChooseWidget();
215
- break;
216
- }
217
- return Promise.resolve();
218
- }
219
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetDesignerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
220
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPTemplateWidgetDesignerComponent, isStandalone: true, selector: "axp-template-widget-designer", host: { properties: { "class": "this.__class" } }, providers: [
221
- {
222
- provide: AXPTemplateWidgetDesignerComponent,
223
- useExisting: AXPWidgetComponent,
224
- },
225
- ], usesInheritance: true, ngImport: i0, template: `
226
- @if(nodes().length) {
227
- <div class="ax-relative ax-block ax-w-full ax-pointer-events-none">
228
- @for (node of nodes(); track $index) {
229
- <ng-container axp-widget-designer-renderer [locked]="true" [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
230
- }
231
- <div
232
- class="ax-absolute ax-top-0 ax-bottom-0 ax-left-0 ax-right-0 ax-bg-blue-400 ax-opacity-30 ax-flex ax-justify-center ax-items-center ax-z-[400]"
233
- >
234
- <span class="ax-capitalize ax-font-semibold ax-text-primary-700"> {{ title() }}</span>
235
- </div>
236
- </div>
237
- } @else {
238
- <axp-designer-add-widget-mini-button
239
- class="ax-flex-1 ax-self-center ax-place-self-end"
240
- (onClick)="handleChooseWidget()"
241
- >
242
- </axp-designer-add-widget-mini-button>
243
- }
244
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: AXPWidgetDesignerRendererDirective, selector: "[axp-widget-designer-renderer]", inputs: ["parentNode", "index", "locked", "mode", "node"] }, { kind: "component", type: AXPDesignerAddWidgetMiniButtonComponent, selector: "axp-designer-add-widget-mini-button", outputs: ["onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
245
- }
246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetDesignerComponent, decorators: [{
247
- type: Component,
248
- args: [{
249
- selector: 'axp-template-widget-designer',
250
- template: `
251
- @if(nodes().length) {
252
- <div class="ax-relative ax-block ax-w-full ax-pointer-events-none">
253
- @for (node of nodes(); track $index) {
254
- <ng-container axp-widget-designer-renderer [locked]="true" [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
255
- }
256
- <div
257
- class="ax-absolute ax-top-0 ax-bottom-0 ax-left-0 ax-right-0 ax-bg-blue-400 ax-opacity-30 ax-flex ax-justify-center ax-items-center ax-z-[400]"
258
- >
259
- <span class="ax-capitalize ax-font-semibold ax-text-primary-700"> {{ title() }}</span>
260
- </div>
261
- </div>
262
- } @else {
263
- <axp-designer-add-widget-mini-button
264
- class="ax-flex-1 ax-self-center ax-place-self-end"
265
- (onClick)="handleChooseWidget()"
266
- >
267
- </axp-designer-add-widget-mini-button>
268
- }
269
- `,
270
- changeDetection: ChangeDetectionStrategy.OnPush,
271
- imports: [
272
- CommonModule,
273
- AXPLayoutBuilderModule,
274
- AXPWidgetDesignerRendererDirective,
275
- AXPDesignerAddWidgetMiniButtonComponent,
276
- ],
277
- providers: [
278
- {
279
- provide: AXPTemplateWidgetDesignerComponent,
280
- useExisting: AXPWidgetComponent,
281
- },
282
- ]
283
- }]
284
- }], ctorParameters: () => [], propDecorators: { __class: [{
285
- type: HostBinding,
286
- args: ['class']
287
- }] } });
288
-
289
- var templateWidgetDesigner_component = /*#__PURE__*/Object.freeze({
290
- __proto__: null,
291
- AXPTemplateWidgetDesignerComponent: AXPTemplateWidgetDesignerComponent,
292
- AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU: AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU
293
- });
294
-
295
- const AXPTemplateWidget = {
296
- name: 'template',
297
- title: 'Template',
298
- type: 'container',
299
- icon: 'fa-solid fa-file-invoice',
300
- group: AXP_WIDGETS_ADVANCE_GROUP,
301
- visible: true,
302
- options: {
303
- canInsert: false,
304
- },
305
- properties: [
306
- AXP_NAME_PROPERTY,
307
- AXP_DATA_PATH_PROPERTY,
308
- createStringProperty({
309
- name: 'options.templateId',
310
- title: 'Template',
311
- group: AXP_BEHAVIOR_PROPERTY_GROUP,
312
- visible: false,
313
- }),
314
- ],
315
- components: {
316
- view: {
317
- component: () => Promise.resolve().then(function () { return templateWidgetView_component; }).then((c) => c.AXPTemplateWidgetViewComponent),
318
- },
319
- edit: {
320
- component: () => import('./acorex-modules-form-template-management-template-widget-edit.component-CVyFN7D9.mjs').then((c) => c.AXPTemplateWidgetEditComponent),
321
- },
322
- print: {
323
- component: () => Promise.resolve().then(function () { return templateWidgetView_component; }).then((c) => c.AXPTemplateWidgetViewComponent),
324
- },
325
- designer: {
326
- component: () => Promise.resolve().then(function () { return templateWidgetDesigner_component; }).then((c) => c.AXPTemplateWidgetDesignerComponent),
327
- },
328
- },
329
- };
330
-
331
- class AXPTemplateDesignerWidgetViewComponent extends AXPWidgetComponent {
332
- constructor() {
333
- super(...arguments);
334
- this.workflow = inject(AXPWorkflowService);
335
- }
336
- async handleClick() {
337
- await this.workflow.execute('design-form-template', { data: { id: this.extractValue('id') } });
338
- }
339
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
340
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPTemplateDesignerWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
341
- <span
342
- class="ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer"
343
- (click)="handleClick()"
344
- >
345
- {{ 't("edit-template",{ scope:"form-template-management" })' | translate | async }}
346
- </span>
347
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
348
- }
349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, decorators: [{
350
- type: Component,
351
- args: [{
352
- template: `
353
- <span
354
- class="ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer"
355
- (click)="handleClick()"
356
- >
357
- {{ 't("edit-template",{ scope:"form-template-management" })' | translate | async }}
358
- </span>
359
- `,
360
- changeDetection: ChangeDetectionStrategy.OnPush,
361
- imports: [CommonModule, AXButtonModule, AXTranslationModule]
362
- }]
363
- }] });
364
-
365
- var templateDesignerWidgetView_component = /*#__PURE__*/Object.freeze({
366
- __proto__: null,
367
- AXPTemplateDesignerWidgetViewComponent: AXPTemplateDesignerWidgetViewComponent
368
- });
369
-
370
- const AXPTemplateDesignerWidget = {
371
- name: "template-designer",
372
- title: "Template Designer",
373
- icon: "fa-solid fa-square",
374
- type: 'editor',
375
- group: AXP_WIDGETS_LAYOUT_GROUP,
376
- visible: false,
377
- properties: [
378
- AXP_NAME_PROPERTY,
379
- AXP_DATA_PATH_PROPERTY,
380
- ],
381
- components: {
382
- view: {
383
- component: () => Promise.resolve().then(function () { return templateDesignerWidgetView_component; }).then((c) => c.AXPTemplateDesignerWidgetViewComponent),
384
- },
385
- edit: {
386
- component: () => Promise.resolve().then(function () { return templateDesignerWidgetView_component; }).then((c) => c.AXPTemplateDesignerWidgetViewComponent),
387
- }
388
- }
389
- };
390
-
391
- const config = {
392
- i18n: 'form-template-management',
393
- };
394
- const RootConfig = {
395
- config,
396
- module: {
397
- route: 'form-template-management',
398
- name: 'FormTemplateManagement',
399
- title: `t('module-name', {scope:"${config.i18n}"})`,
400
- icon: 'fa-light fa-file-invoice'
401
- },
402
- entities: {
403
- category: {
404
- name: 'Category',
405
- title: 't("category", { scope: "common" })',
406
- icon: 'fa-light fa-list'
407
- },
408
- template: {
409
- name: 'Template',
410
- title: `t("template",{scope:"${config.i18n}"})`,
411
- icon: 'fa-light fa-file-code'
412
- }
413
- },
414
- };
415
-
416
- class AXMFormTemplateManagementCategoryEntityService extends AXMEntityCrudServiceImpl {
417
- }
418
- class AXMFormTemplateManagementCategoryEntityServiceImpl extends AXMFormTemplateManagementCategoryEntityService {
419
- constructor() {
420
- super(`${RootConfig.module.name}.${RootConfig.entities.category.name}`);
421
- }
422
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
423
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl }); }
424
- }
425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl, decorators: [{
426
- type: Injectable
427
- }], ctorParameters: () => [] });
428
-
429
- class AXMFormTemplateManagementCategoryEntityModule {
430
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
431
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule }); }
432
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, providers: [
433
- {
434
- provide: AXMFormTemplateManagementCategoryEntityService,
435
- useClass: AXMFormTemplateManagementCategoryEntityServiceImpl,
436
- },
437
- ] }); }
438
- }
439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, decorators: [{
440
- type: NgModule,
441
- args: [{
442
- imports: [],
443
- exports: [],
444
- declarations: [],
445
- providers: [
446
- {
447
- provide: AXMFormTemplateManagementCategoryEntityService,
448
- useClass: AXMFormTemplateManagementCategoryEntityServiceImpl,
449
- },
450
- ],
451
- }]
452
- }] });
453
-
454
- class AXMFormTemplateManagementTemplateEntityService extends AXMEntityCrudServiceImpl {
455
- }
456
- class AXMFormTemplateManagementTemplateEntityServiceImpl extends AXMFormTemplateManagementTemplateEntityService {
457
- constructor() {
458
- super(`${RootConfig.module.name}.${RootConfig.entities.template.name}`);
459
- }
460
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
461
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl }); }
462
- }
463
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl, decorators: [{
464
- type: Injectable
465
- }], ctorParameters: () => [] });
466
-
467
- class AXMFormTemplateManagementTemplateEntityModule {
468
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
469
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule }); }
470
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, providers: [
471
- {
472
- provide: AXMFormTemplateManagementTemplateEntityService,
473
- useClass: AXMFormTemplateManagementTemplateEntityServiceImpl,
474
- },
475
- ] }); }
476
- }
477
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, decorators: [{
478
- type: NgModule,
479
- args: [{
480
- imports: [],
481
- exports: [],
482
- declarations: [],
483
- providers: [
484
- {
485
- provide: AXMFormTemplateManagementTemplateEntityService,
486
- useClass: AXMFormTemplateManagementTemplateEntityServiceImpl,
487
- },
488
- ],
489
- }]
490
- }] });
491
-
492
- const AXMFormTemplateTypes = {
493
- Form: { id: 10, title: 'Form Template' },
494
- Widget: { id: 20, title: 'Widget Template' },
495
- };
496
-
497
- class AXMEntityProvider {
498
- constructor() {
499
- this.injector = inject(Injector);
500
- }
501
- preload() {
502
- const module = RootConfig.module.name;
503
- return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
504
- module: module,
505
- entity: entity.name,
506
- }));
507
- }
508
- async get(moduleName, entityName) {
509
- if (moduleName == RootConfig.module.name) {
510
- switch (entityName) {
511
- case RootConfig.entities.category.name:
512
- return (await import('./acorex-modules-form-template-management-category.entity-BcfMw_wb.mjs')).factory(this.injector);
513
- case RootConfig.entities.template.name:
514
- return (await import('./acorex-modules-form-template-management-template.entity-BpApQcvG.mjs')).factory(this.injector);
515
- }
516
- }
517
- return null;
518
- }
519
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
520
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider }); }
521
- }
522
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, decorators: [{
523
- type: Injectable
524
- }] });
525
-
526
- class AXMMenuProvider {
527
- constructor() {
528
- this.entityService = inject(AXPEntityService);
529
- }
530
- async provide(context) {
531
- const scope = RootConfig.config.i18n;
532
- const module = RootConfig.module;
533
- context.addItems([
534
- {
535
- priority: 9001,
536
- text: `t('root-menu', {scope:"${scope}"})`,
537
- icon: module.icon,
538
- children: [
539
- {
540
- text: `t("categories", {scope: "${scope}"})`,
541
- path: this.entityService.createPath(module.name, RootConfig.entities.category.name),
542
- icon: RootConfig.entities.category.icon,
543
- priority: 1,
544
- },
545
- {
546
- text: `t('templates', {scope:"${scope}"})`,
547
- path: this.entityService.createPath(module.name, RootConfig.entities.template.name),
548
- icon: RootConfig.entities.template.icon,
549
- priority: 2,
550
- },
551
- ],
552
- },
553
- ]);
554
- }
555
- }
556
-
557
- class AXMPermissionProvider {
558
- async provide(context) {
559
- context.addPermissions([
560
- {
561
- name: 'forms:templates:view',
562
- title: 'Permission to view templates',
563
- isArchived: false,
564
- },
565
- ]);
566
- }
567
- }
568
-
569
- class AXMSearchCommandProvider extends AXPSearchCommandProvider {
570
- constructor() {
571
- super(...arguments);
572
- this.commands = [
573
- {
574
- group: 'command',
575
- title: 'New Form Template',
576
- icon: RootConfig.entities.template.icon,
577
- description: 'Create a new form template for designing reusable forms.', // Added description
578
- commands: {
579
- 'create-entity': {
580
- entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
581
- },
582
- },
583
- },
584
- {
585
- group: 'command',
586
- title: 'New Form Template Category',
587
- icon: RootConfig.entities.category.icon,
588
- description: 'Create a new category to organize form templates.', // Added description
589
- commands: {
590
- 'create-entity': {
591
- entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,
592
- },
593
- },
594
- },
595
- ];
596
- }
597
- }
598
-
599
- class AXPDesignerConnectorImpl extends AXPDesignerConnector {
600
- constructor() {
601
- super(...arguments);
602
- this.workflow = inject(AXPWorkflowService);
603
- this.templateEntityService = inject(AXMFormTemplateManagementTemplateEntityService);
604
- this.categoryEntityService = inject(AXMFormTemplateManagementCategoryEntityService);
605
- }
606
- //#region Save and load Widgets
607
- async save(id, content) {
608
- const item = await this.templateEntityService.getOne(id);
609
- if (item) {
610
- await this.templateEntityService.updateOne(id, { template: content.json });
611
- return true;
612
- }
613
- else {
614
- throw Error("Invalid Id");
615
- }
616
- }
617
- async saveAs(content) {
618
- const result = await this.workflow.execute('create-entity', {
619
- redirect: false,
620
- entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
621
- canCreateNewOne: false,
622
- data: {
623
- name: AXPDataGenerator.alphanumeric(10),
624
- type: AXMFormTemplateTypes.Widget,
625
- template: content.json,
626
- categoryId: (await this.categoryEntityService.query()).items[0]?.id
627
- }
628
- });
629
- return result.getOutput('result');
630
- }
631
- async load(id) {
632
- const item = await this.templateEntityService.getOne(id);
633
- if (item) {
634
- return item.template;
635
- }
636
- else {
637
- throw Error("Invalid Id");
638
- }
639
- }
640
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDesignerConnectorImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
641
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDesignerConnectorImpl }); }
642
- }
643
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDesignerConnectorImpl, decorators: [{
644
- type: Injectable
645
- }] });
646
-
647
- class AXPTemplateWidgetProviderImpl {
648
- constructor() {
649
- this.service = inject(AXMFormTemplateManagementTemplateEntityService);
650
- }
651
- async items(query) {
652
- const result = ((await this.service.query(query)).items).map(c => ({
653
- id: c.id,
654
- title: c.title,
655
- group: {
656
- name: c.categoryId,
657
- order: 2,
658
- title: get(c, 'category.title') ?? 'Custom'
659
- },
660
- description: c.description
661
- }));
662
- return result;
663
- }
664
- async get(id) {
665
- const item = await this.service.getOne(id);
666
- if (item) {
667
- const document = JSON.parse(item.template);
668
- const page = document?.children?.[0];
669
- return {
670
- id: item.id,
671
- nodes: page?.children ?? [],
672
- title: item.title,
673
- };
674
- }
675
- else {
676
- throw Error("Invalid Id");
677
- }
678
- }
679
- }
680
-
681
- const AXMCreateFormTemplateWorkflow = {
682
- startStepId: 'create-form-template',
683
- steps: {
684
- "create-form-template": {
685
- action: 'start-workflow',
686
- input: {
687
- workflow: "create-entity",
688
- context: {
689
- redirect: true,
690
- entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
691
- }
692
- },
693
- nextSteps: [
694
- {
695
- conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
696
- nextStepId: 'get-template-confirmaton',
697
- },
698
- ],
699
- },
700
- "get-template-confirmaton": {
701
- action: 'show-prompt-dialog',
702
- input: {
703
- title: 'Confirm Action',
704
- message: `Would you like to proceed with starting template design?`,
705
- type: 'primary',
706
- },
707
- nextSteps: [
708
- {
709
- conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
710
- nextStepId: 'template-design',
711
- },
712
- ],
713
- },
714
- "template-design": {
715
- action: 'open-form-template-designer',
716
- },
717
- },
718
- };
719
-
720
- class AXMOpenFormTemplateDesignerAction extends AXPWorkflowAction {
721
- constructor() {
722
- super(...arguments);
723
- this.navigation = inject(AXPWorkflowNavigateAction);
724
- }
725
- async execute(context) {
726
- const { id } = context.getVariable('data');
727
- context.setVariable('payload', {
728
- commands: `forms/designer?id=${id}`,
729
- target: 'blank'
730
- });
731
- await this.navigation.execute(context);
732
- }
733
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
734
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction }); }
735
- }
736
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, decorators: [{
737
- type: Injectable
738
- }] });
739
- const AXMDesignFormTemplateWorkflow = {
740
- startStepId: 'open-design-designer',
741
- steps: {
742
- "open-design-designer": {
743
- action: 'open-form-template-designer',
744
- },
745
- },
746
- };
747
-
748
- function routesFacory() {
749
- const routes = [
750
- {
751
- path: 'forms',
752
- children: [
753
- {
754
- path: 'designer',
755
- loadComponent: () => import('./acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs').then((c) => c.AXMFormTemplateManagementModuleDesignerPage),
756
- },
757
- {
758
- path: 'preview',
759
- loadComponent: () => import('@acorex/platform/layout/designer').then((c) => c.AXPLayoutDesignerPreviewComponent),
760
- },
761
- {
762
- path: 'viewer',
763
- loadComponent: () => import('@acorex/platform/layout/designer').then((c) => c.AXPLayoutDesignerPreviewViewerComponent),
764
- },
765
- ],
766
- },
767
- ];
768
- return routes;
769
- }
770
- class AXMFormTemplateManagementModule {
771
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
772
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModule, imports: [AXPWidgetsModule,
773
- AXMFormTemplateManagementCategoryEntityModule,
774
- AXMFormTemplateManagementTemplateEntityModule, i2.AXPLayoutBuilderModule, i2$1.AXPWorkflowModule] }); }
775
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModule, providers: [
776
- {
777
- provide: ROUTES,
778
- multi: true,
779
- useFactory: routesFacory,
780
- },
781
- {
782
- provide: AXP_ENTITY_DEFINITION_LOADER,
783
- useClass: AXMEntityProvider,
784
- multi: true,
785
- },
786
- {
787
- provide: AXP_MENU_PROVIDER,
788
- useClass: AXMMenuProvider,
789
- multi: true,
790
- },
791
- {
792
- provide: AXPDesignerConnector,
793
- useClass: AXPDesignerConnectorImpl,
794
- },
795
- {
796
- provide: AXP_TEMPLATE_WIDGET_PROVIDER,
797
- useClass: AXPTemplateWidgetProviderImpl,
798
- multi: true,
799
- },
800
- {
801
- provide: AXP_SETTING_DEFINITION_PROVIDER,
802
- useFactory: async () => {
803
- const provider = (await import('./acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs')).AXMSettingProvider;
804
- return new provider();
805
- },
806
- multi: true,
807
- },
808
- {
809
- provide: AXP_SEARCH_PROVIDER,
810
- useClass: AXMSearchCommandProvider,
811
- multi: true,
812
- },
813
- {
814
- provide: AXP_PERMISSION_PROVIDER,
815
- useClass: AXMPermissionProvider,
816
- multi: true,
817
- },
818
- ], imports: [AXPWidgetsModule,
819
- AXMFormTemplateManagementCategoryEntityModule,
820
- AXMFormTemplateManagementTemplateEntityModule,
821
- AXPLayoutBuilderModule.forChild({
822
- widgets: [AXPTemplateDesignerWidget, AXPTemplateWidget],
823
- }),
824
- AXPWorkflowModule.forChild({
825
- actions: {
826
- 'open-form-template-designer': AXMOpenFormTemplateDesignerAction,
827
- },
828
- workflows: {
829
- 'create-form-template': AXMCreateFormTemplateWorkflow,
830
- 'design-form-template': AXMDesignFormTemplateWorkflow,
831
- },
832
- })] }); }
833
- }
834
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModule, decorators: [{
835
- type: NgModule,
836
- args: [{
837
- imports: [
838
- AXPWidgetsModule,
839
- AXMFormTemplateManagementCategoryEntityModule,
840
- AXMFormTemplateManagementTemplateEntityModule,
841
- AXPLayoutBuilderModule.forChild({
842
- widgets: [AXPTemplateDesignerWidget, AXPTemplateWidget],
843
- }),
844
- AXPWorkflowModule.forChild({
845
- actions: {
846
- 'open-form-template-designer': AXMOpenFormTemplateDesignerAction,
847
- },
848
- workflows: {
849
- 'create-form-template': AXMCreateFormTemplateWorkflow,
850
- 'design-form-template': AXMDesignFormTemplateWorkflow,
851
- },
852
- }),
853
- ],
854
- exports: [],
855
- declarations: [],
856
- providers: [
857
- {
858
- provide: ROUTES,
859
- multi: true,
860
- useFactory: routesFacory,
861
- },
862
- {
863
- provide: AXP_ENTITY_DEFINITION_LOADER,
864
- useClass: AXMEntityProvider,
865
- multi: true,
866
- },
867
- {
868
- provide: AXP_MENU_PROVIDER,
869
- useClass: AXMMenuProvider,
870
- multi: true,
871
- },
872
- {
873
- provide: AXPDesignerConnector,
874
- useClass: AXPDesignerConnectorImpl,
875
- },
876
- {
877
- provide: AXP_TEMPLATE_WIDGET_PROVIDER,
878
- useClass: AXPTemplateWidgetProviderImpl,
879
- multi: true,
880
- },
881
- {
882
- provide: AXP_SETTING_DEFINITION_PROVIDER,
883
- useFactory: async () => {
884
- const provider = (await import('./acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs')).AXMSettingProvider;
885
- return new provider();
886
- },
887
- multi: true,
888
- },
889
- {
890
- provide: AXP_SEARCH_PROVIDER,
891
- useClass: AXMSearchCommandProvider,
892
- multi: true,
893
- },
894
- {
895
- provide: AXP_PERMISSION_PROVIDER,
896
- useClass: AXMPermissionProvider,
897
- multi: true,
898
- },
899
- ],
900
- }]
901
- }] });
902
-
903
- /**
904
- * Generated bundle index. Do not edit.
905
- */
906
-
907
- export { AXMFormTemplateManagementCategoryEntityModule, AXMFormTemplateManagementCategoryEntityService, AXMFormTemplateManagementCategoryEntityServiceImpl, AXMFormTemplateManagementModule, AXMFormTemplateManagementTemplateEntityModule, AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateManagementTemplateEntityServiceImpl, AXMFormTemplateTypes, AXPTemplateWidget, AXPTemplateWidgetDesignerComponent, AXPTemplateWidgetProviderService, AXPTemplateWidgetViewComponent, AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU, AXP_TEMPLATE_WIDGET_PROVIDER, RootConfig };
1
+ export { e as AXMFormTemplateManagementCategoryEntityModule, A as AXMFormTemplateManagementCategoryEntityService, f as AXMFormTemplateManagementCategoryEntityServiceImpl, d as AXMFormTemplateManagementModule, g as AXMFormTemplateManagementTemplateEntityModule, a as AXMFormTemplateManagementTemplateEntityService, h as AXMFormTemplateManagementTemplateEntityServiceImpl, b as AXMFormTemplateTypes, R as RootConfig } from './acorex-modules-form-template-management-acorex-modules-form-template-management-DGGKoVbL.mjs';
908
2
  //# sourceMappingURL=acorex-modules-form-template-management.mjs.map