@acorex/modules 19.2.11 → 19.2.15

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 (247) hide show
  1. package/application-management/lib/application-management.service.d.ts +1 -1
  2. package/application-management/lib/application-management.types.d.ts +1 -1
  3. package/application-management/lib/services/application-management.service.d.ts +1 -1
  4. package/application-management/lib/services/application-module-management.service.d.ts +1 -1
  5. package/application-management/lib/services/edition-management.service.d.ts +1 -1
  6. package/application-management/lib/services/entity-management.service.d.ts +1 -1
  7. package/application-management/lib/services/feature-management.service.d.ts +1 -1
  8. package/application-management/lib/services/module-management.service.d.ts +1 -1
  9. package/application-management/lib/services/permission-management.service.d.ts +1 -1
  10. package/application-management/lib/services/property-management.service.d.ts +1 -1
  11. package/auth/lib/auth.module.d.ts +2 -3
  12. package/auth/lib/pages/login/password/password.component.d.ts +1 -0
  13. package/conversation/lib/entities/chat/chat.service.d.ts +1 -1
  14. package/conversation/lib/entities/chat/chat.type.d.ts +1 -1
  15. package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +1 -1
  16. package/conversation/lib/entities/comments/comments.service.d.ts +1 -1
  17. package/conversation/lib/entities/comments/comments.type.d.ts +1 -1
  18. package/document-management/index.d.ts +1 -0
  19. package/document-management/lib/const.d.ts +6 -5
  20. package/document-management/lib/document-management.module.d.ts +3 -1
  21. package/document-management/lib/entities/document/document.service.d.ts +8 -5
  22. package/document-management/lib/entities/document/document.types.d.ts +2 -1
  23. package/document-management/lib/entities/document-type/document-type.service.d.ts +1 -1
  24. package/document-management/lib/entities/document-type/document-type.types.d.ts +16 -1
  25. package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.service.d.ts +1 -1
  26. package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.types.d.ts +1 -1
  27. package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.service.d.ts +1 -1
  28. package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.types.d.ts +1 -1
  29. package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.service.d.ts +1 -1
  30. package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.types.d.ts +1 -1
  31. package/document-management/lib/entities/folder/folder.entity.d.ts +3 -0
  32. package/document-management/lib/entities/folder/folder.service.d.ts +12 -0
  33. package/document-management/lib/entities/folder/folder.types.d.ts +37 -0
  34. package/document-management/lib/entities/folder/index.d.ts +3 -0
  35. package/document-management/lib/entities/index.d.ts +6 -0
  36. package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +14 -0
  37. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +74 -0
  38. package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +57 -0
  39. package/document-management/lib/features/document-explorer/index.d.ts +3 -0
  40. package/document-management/lib/features/document-explorer/settings.keys.d.ts +5 -0
  41. package/document-management/lib/features/drive/drive.component.d.ts +200 -0
  42. package/document-management/lib/features/drive/index.d.ts +3 -0
  43. package/document-management/lib/features/file-type/file-type.module.d.ts +6 -0
  44. package/document-management/lib/features/file-type/index.d.ts +2 -0
  45. package/document-management/lib/features/file-type/providers/archive.file.d.ts +4 -0
  46. package/document-management/lib/features/file-type/providers/audio.file.d.ts +4 -0
  47. package/document-management/lib/features/file-type/providers/code.file.d.ts +4 -0
  48. package/document-management/lib/features/file-type/providers/document.file.d.ts +4 -0
  49. package/document-management/lib/features/file-type/providers/image.file.d.ts +4 -0
  50. package/document-management/lib/features/file-type/providers/index.d.ts +6 -0
  51. package/document-management/lib/features/file-type/providers/video.file.d.ts +4 -0
  52. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-column.component.d.ts +6 -0
  53. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-designer.component.d.ts +6 -0
  54. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-edit.component.d.ts +18 -0
  55. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-view.component.d.ts +6 -0
  56. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-widget.config.d.ts +7 -0
  57. package/document-management/lib/features/file-type/widgets/file-type-extension/index.d.ts +5 -0
  58. package/document-management/lib/features/file-type/widgets/index.d.ts +1 -0
  59. package/document-management/lib/features/shared/document-manager.service.d.ts +130 -0
  60. package/document-management/lib/features/shared/document-manager.types.d.ts +21 -0
  61. package/document-management/lib/features/shared/index.d.ts +1 -0
  62. package/document-management/lib/menu.provider.d.ts +1 -0
  63. package/fesm2022/acorex-modules-application-management.mjs +3 -3
  64. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  65. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-D1qxdECo.mjs → acorex-modules-auth-acorex-modules-auth-CZ_nTBkL.mjs} +53 -133
  66. package/fesm2022/acorex-modules-auth-acorex-modules-auth-CZ_nTBkL.mjs.map +1 -0
  67. package/fesm2022/{acorex-modules-auth-app-chooser.component-8GCTwtb2.mjs → acorex-modules-auth-app-chooser.component-CGSygSjS.mjs} +2 -2
  68. package/fesm2022/{acorex-modules-auth-app-chooser.component-8GCTwtb2.mjs.map → acorex-modules-auth-app-chooser.component-CGSygSjS.mjs.map} +1 -1
  69. package/fesm2022/{acorex-modules-auth-login.module-DR3QLEM-.mjs → acorex-modules-auth-login.module-B1sF3B_O.mjs} +4 -4
  70. package/fesm2022/{acorex-modules-auth-login.module-DR3QLEM-.mjs.map → acorex-modules-auth-login.module-B1sF3B_O.mjs.map} +1 -1
  71. package/fesm2022/{acorex-modules-auth-master.layout-BMJ5mW63.mjs → acorex-modules-auth-master.layout-CK4nyS8D.mjs} +2 -2
  72. package/fesm2022/{acorex-modules-auth-master.layout-BMJ5mW63.mjs.map → acorex-modules-auth-master.layout-CK4nyS8D.mjs.map} +1 -1
  73. package/fesm2022/{acorex-modules-auth-password.component-avrMwyr8.mjs → acorex-modules-auth-password.component-DC_zi8bV.mjs} +6 -6
  74. package/fesm2022/{acorex-modules-auth-password.component-avrMwyr8.mjs.map → acorex-modules-auth-password.component-DC_zi8bV.mjs.map} +1 -1
  75. package/fesm2022/acorex-modules-auth-password.component-DqvmIMDR.mjs +127 -0
  76. package/fesm2022/acorex-modules-auth-password.component-DqvmIMDR.mjs.map +1 -0
  77. package/fesm2022/{acorex-modules-auth-routes-BPYBFOxg.mjs → acorex-modules-auth-routes-DwHgPrDP.mjs} +2 -2
  78. package/fesm2022/{acorex-modules-auth-routes-BPYBFOxg.mjs.map → acorex-modules-auth-routes-DwHgPrDP.mjs.map} +1 -1
  79. package/fesm2022/{acorex-modules-auth-two-factor-code.component-YhAHhKIr.mjs → acorex-modules-auth-two-factor-code.component-DrV3UBuT.mjs} +5 -5
  80. package/fesm2022/{acorex-modules-auth-two-factor-code.component-YhAHhKIr.mjs.map → acorex-modules-auth-two-factor-code.component-DrV3UBuT.mjs.map} +1 -1
  81. package/fesm2022/{acorex-modules-auth-two-factor.module-B_V_nQN_.mjs → acorex-modules-auth-two-factor.module-BatKQRdJ.mjs} +3 -3
  82. package/fesm2022/{acorex-modules-auth-two-factor.module-B_V_nQN_.mjs.map → acorex-modules-auth-two-factor.module-BatKQRdJ.mjs.map} +1 -1
  83. package/fesm2022/acorex-modules-auth.mjs +1 -1
  84. package/fesm2022/acorex-modules-conversation.mjs +3 -3
  85. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  86. package/fesm2022/acorex-modules-document-management-drive.component-bjnFFaLS.mjs +951 -0
  87. package/fesm2022/acorex-modules-document-management-drive.component-bjnFFaLS.mjs.map +1 -0
  88. package/fesm2022/acorex-modules-document-management.mjs +1596 -331
  89. package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
  90. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-szDh56Bk.mjs} +174 -64
  91. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-szDh56Bk.mjs.map +1 -0
  92. package/fesm2022/{acorex-modules-form-template-management-category.entity-D00XZd7o.mjs → acorex-modules-form-template-management-category.entity-BZXqnhwK.mjs} +4 -17
  93. package/fesm2022/acorex-modules-form-template-management-category.entity-BZXqnhwK.mjs.map +1 -0
  94. package/fesm2022/{acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs → acorex-modules-form-template-management-designer.page-Bd_bZ_7p.mjs} +4 -3
  95. package/fesm2022/acorex-modules-form-template-management-designer.page-Bd_bZ_7p.mjs.map +1 -0
  96. package/fesm2022/{acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs → acorex-modules-form-template-management-setting.provider-o2_TSVfK.mjs} +2 -2
  97. package/fesm2022/{acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs.map → acorex-modules-form-template-management-setting.provider-o2_TSVfK.mjs.map} +1 -1
  98. package/fesm2022/acorex-modules-form-template-management-template-picker.component-BxOdV3y2.mjs +191 -0
  99. package/fesm2022/acorex-modules-form-template-management-template-picker.component-BxOdV3y2.mjs.map +1 -0
  100. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs → acorex-modules-form-template-management-template-widget-edit.component--MGoF75g.mjs} +32 -49
  101. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component--MGoF75g.mjs.map +1 -0
  102. package/fesm2022/{acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs → acorex-modules-form-template-management-template.entity-JvWcqjzi.mjs} +3 -3
  103. package/fesm2022/acorex-modules-form-template-management-template.entity-JvWcqjzi.mjs.map +1 -0
  104. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs → acorex-modules-form-template-management-viewer-popup.component-Bllb70Ih.mjs} +2 -2
  105. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs.map → acorex-modules-form-template-management-viewer-popup.component-Bllb70Ih.mjs.map} +1 -1
  106. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  107. package/fesm2022/acorex-modules-notification-management.mjs +10 -3
  108. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  109. package/fesm2022/{acorex-modules-organization-management-add-item.component-PhQRBTtI.mjs → acorex-modules-organization-management-add-item.component-Y-i6xDkl.mjs} +2 -2
  110. package/fesm2022/{acorex-modules-organization-management-add-item.component-PhQRBTtI.mjs.map → acorex-modules-organization-management-add-item.component-Y-i6xDkl.mjs.map} +1 -1
  111. package/fesm2022/acorex-modules-organization-management-branch.entity-DhObzxhh.mjs +344 -0
  112. package/fesm2022/acorex-modules-organization-management-branch.entity-DhObzxhh.mjs.map +1 -0
  113. package/fesm2022/{acorex-modules-organization-management-employee.entity-PwlBjkYo.mjs → acorex-modules-organization-management-employee.entity-DcJCJN3R.mjs} +4 -4
  114. package/fesm2022/acorex-modules-organization-management-employee.entity-DcJCJN3R.mjs.map +1 -0
  115. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-DjzqBdaS.mjs → acorex-modules-organization-management-org-chart-configuration.page-DO8wSZqZ.mjs} +2 -2
  116. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-DjzqBdaS.mjs.map → acorex-modules-organization-management-org-chart-configuration.page-DO8wSZqZ.mjs.map} +1 -1
  117. package/fesm2022/{acorex-modules-organization-management-org-chart.page-BSh18amn.mjs → acorex-modules-organization-management-org-chart.page-DXyAFXwE.mjs} +17 -11
  118. package/fesm2022/acorex-modules-organization-management-org-chart.page-DXyAFXwE.mjs.map +1 -0
  119. package/fesm2022/{acorex-modules-organization-management-position.entity-B7ceEEbu.mjs → acorex-modules-organization-management-position.entity-D17Yembh.mjs} +2 -2
  120. package/fesm2022/acorex-modules-organization-management-position.entity-D17Yembh.mjs.map +1 -0
  121. package/fesm2022/{acorex-modules-organization-management-branch.entity-CxxFiBPd.mjs → acorex-modules-organization-management-role.entity-Cmbyle8P.mjs} +36 -54
  122. package/fesm2022/acorex-modules-organization-management-role.entity-Cmbyle8P.mjs.map +1 -0
  123. package/fesm2022/{acorex-modules-organization-management-setting.provider-eLv_qnmE.mjs → acorex-modules-organization-management-setting.provider-CAU8Bve9.mjs} +7 -7
  124. package/fesm2022/acorex-modules-organization-management-setting.provider-CAU8Bve9.mjs.map +1 -0
  125. package/fesm2022/acorex-modules-organization-management-team.entity-DcurAtLd.mjs +238 -0
  126. package/fesm2022/acorex-modules-organization-management-team.entity-DcurAtLd.mjs.map +1 -0
  127. package/fesm2022/acorex-modules-organization-management.mjs +200 -105
  128. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  129. package/fesm2022/acorex-modules-platform-management-list-version.component-CoZBz85x.mjs +59 -0
  130. package/fesm2022/acorex-modules-platform-management-list-version.component-CoZBz85x.mjs.map +1 -0
  131. package/fesm2022/acorex-modules-platform-management.mjs +867 -610
  132. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  133. package/fesm2022/acorex-modules-scheduler-job-management.mjs +2 -2
  134. package/fesm2022/acorex-modules-scheduler-job-management.mjs.map +1 -1
  135. package/fesm2022/acorex-modules-security-management.mjs +61 -29
  136. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  137. package/fesm2022/acorex-modules-text-template-management.mjs +324 -6
  138. package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
  139. package/form-template-management/lib/entities/category/category.service.d.ts +1 -1
  140. package/form-template-management/lib/entities/category/category.types.d.ts +2 -1
  141. package/form-template-management/lib/entities/template/template.service.d.ts +1 -1
  142. package/form-template-management/lib/entities/template/template.types.d.ts +1 -1
  143. package/form-template-management/lib/features/designer/designer.page.d.ts +1 -0
  144. package/form-template-management/lib/features/designer/template.provider.d.ts +1 -1
  145. package/form-template-management/lib/features/designer/widgets/template/template-widget-edit.component.d.ts +0 -4
  146. package/form-template-management/lib/features/designer/widgets/template-designer/template-designer-widget-view.component.d.ts +1 -0
  147. package/form-template-management/lib/features/designer/widgets/template-picker/template-picker.component.d.ts +14 -4
  148. package/form-template-management/lib/features/designer/widgets/template-picker/template.provider.d.ts +2 -1
  149. package/form-template-management/lib/features/designer/workflows/design-template.workflow.d.ts +1 -8
  150. package/form-template-management/lib/features/designer/workflows/workflow.actions.d.ts +17 -0
  151. package/form-template-management/lib/menu.provider.d.ts +1 -0
  152. package/notification-management/lib/entities/channel/channel.service.d.ts +1 -1
  153. package/notification-management/lib/entities/channel/channel.types.d.ts +2 -1
  154. package/notification-management/lib/entities/notification/notification.service.d.ts +1 -1
  155. package/notification-management/lib/entities/notification/notification.types.d.ts +1 -1
  156. package/notification-management/lib/entities/template/template.service.d.ts +1 -1
  157. package/notification-management/lib/entities/template/template.types.d.ts +1 -1
  158. package/notification-management/lib/menu.provider.d.ts +1 -0
  159. package/organization-management/lib/const.d.ts +3 -0
  160. package/organization-management/lib/entities/branch/branch.service.d.ts +1 -1
  161. package/organization-management/lib/entities/branch/branch.types.d.ts +1 -1
  162. package/organization-management/lib/entities/chart/chart.service.d.ts +1 -1
  163. package/organization-management/lib/entities/chart/chart.types.d.ts +1 -1
  164. package/organization-management/lib/entities/company/company.service.d.ts +1 -1
  165. package/organization-management/lib/entities/company/company.types.d.ts +1 -1
  166. package/organization-management/lib/entities/department/department.service.d.ts +1 -1
  167. package/organization-management/lib/entities/department/department.types.d.ts +1 -1
  168. package/organization-management/lib/entities/division/division.service.d.ts +1 -1
  169. package/organization-management/lib/entities/division/division.types.d.ts +1 -1
  170. package/organization-management/lib/entities/employee/employee.service.d.ts +1 -1
  171. package/organization-management/lib/entities/employee/employee.types.d.ts +1 -1
  172. package/organization-management/lib/entities/employment-type/employment-type.service.d.ts +1 -1
  173. package/organization-management/lib/entities/employment-type/employment-type.types.d.ts +1 -1
  174. package/organization-management/lib/entities/index.d.ts +6 -4
  175. package/organization-management/lib/entities/position/position.service.d.ts +1 -1
  176. package/organization-management/lib/entities/position/position.types.d.ts +1 -1
  177. package/organization-management/lib/entities/role/index.d.ts +3 -0
  178. package/organization-management/lib/entities/role/role.entity.d.ts +3 -0
  179. package/organization-management/lib/entities/role/role.module.d.ts +6 -0
  180. package/organization-management/lib/entities/role/role.service.d.ts +10 -0
  181. package/organization-management/lib/entities/role/role.types.d.ts +5 -0
  182. package/organization-management/lib/entities/team/index.d.ts +3 -0
  183. package/organization-management/lib/entities/team/team.entity.d.ts +3 -0
  184. package/organization-management/lib/entities/team/team.module.d.ts +6 -0
  185. package/organization-management/lib/entities/team/team.service.d.ts +10 -0
  186. package/organization-management/lib/entities/team/team.types.d.ts +5 -0
  187. package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +3 -0
  188. package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +3 -0
  189. package/organization-management/lib/organization-management.module.d.ts +11 -9
  190. package/package.json +1 -1
  191. package/platform-management/lib/common/regional/data-source.provider.d.ts +10 -0
  192. package/platform-management/lib/const.d.ts +6 -0
  193. package/platform-management/lib/entities/app-term/app-term.service.d.ts +1 -1
  194. package/platform-management/lib/entities/app-term/app-term.types.d.ts +1 -1
  195. package/platform-management/lib/entities/app-version/app-version.service.d.ts +1 -1
  196. package/platform-management/lib/entities/app-version/app-version.types.d.ts +1 -1
  197. package/platform-management/lib/entities/app-version/components/slots/app-version-slot.component.d.ts +1 -1
  198. package/platform-management/lib/entities/app-version/workflows/change-log.workflow.d.ts +1 -1
  199. package/platform-management/lib/entities/app-version/workflows/show-release-notes.workflow.d.ts +9 -0
  200. package/platform-management/lib/entities/data-source/data-source.service.d.ts +1 -1
  201. package/platform-management/lib/entities/data-source/data-source.types.d.ts +1 -1
  202. package/platform-management/lib/entities/global-variable/global-variables.service.d.ts +1 -1
  203. package/platform-management/lib/entities/global-variable/global-variables.types.d.ts +1 -1
  204. package/platform-management/lib/entities/index.d.ts +1 -1
  205. package/platform-management/lib/entities/meta-data-definition/index.d.ts +0 -1
  206. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.service.d.ts +5 -5
  207. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.types.d.ts +3 -4
  208. package/platform-management/lib/entities/promotion/promotion.service.d.ts +1 -1
  209. package/platform-management/lib/entities/promotion/promotion.types.d.ts +2 -1
  210. package/platform-management/lib/platform-management.module.d.ts +4 -5
  211. package/scheduler-job-management/lib/entities/scheduler-job/scheduler-job.service.d.ts +1 -1
  212. package/scheduler-job-management/lib/entities/scheduler-job/scheduler-job.types.d.ts +1 -1
  213. package/security-management/lib/entities/index.d.ts +2 -0
  214. package/security-management/lib/entities/profile/profile.types.d.ts +1 -1
  215. package/security-management/lib/entities/roles/roles.service.d.ts +1 -1
  216. package/security-management/lib/entities/roles/roles.types.d.ts +3 -1
  217. package/security-management/lib/entities/users/users.service.d.ts +1 -1
  218. package/security-management/lib/entities/users/users.types.d.ts +12 -3
  219. package/text-template-management/lib/const.d.ts +6 -0
  220. package/text-template-management/lib/entities/category/category.service.d.ts +1 -1
  221. package/text-template-management/lib/entities/category/category.types.d.ts +1 -1
  222. package/text-template-management/lib/entities/index.d.ts +1 -0
  223. package/text-template-management/lib/entities/tag-template/index.d.ts +3 -0
  224. package/text-template-management/lib/entities/tag-template/tag-template.entity.d.ts +3 -0
  225. package/text-template-management/lib/entities/tag-template/tag-template.service.d.ts +10 -0
  226. package/text-template-management/lib/entities/tag-template/tag-template.types.d.ts +5 -0
  227. package/text-template-management/lib/entities/template/template.service.d.ts +1 -1
  228. package/text-template-management/lib/entities/template/template.types.d.ts +1 -1
  229. package/auth/lib/store/auth.effects.d.ts +0 -18
  230. package/auth/lib/store/index.d.ts +0 -1
  231. package/document-management/lib/entities/document-type/coulmn-def.widget.d.ts +0 -70
  232. package/fesm2022/acorex-modules-auth-acorex-modules-auth-D1qxdECo.mjs.map +0 -1
  233. package/fesm2022/acorex-modules-auth-password.component-EXWlXGez.mjs +0 -121
  234. package/fesm2022/acorex-modules-auth-password.component-EXWlXGez.mjs.map +0 -1
  235. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs.map +0 -1
  236. package/fesm2022/acorex-modules-form-template-management-category.entity-D00XZd7o.mjs.map +0 -1
  237. package/fesm2022/acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs.map +0 -1
  238. package/fesm2022/acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs +0 -126
  239. package/fesm2022/acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs.map +0 -1
  240. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs.map +0 -1
  241. package/fesm2022/acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs.map +0 -1
  242. package/fesm2022/acorex-modules-organization-management-branch.entity-CxxFiBPd.mjs.map +0 -1
  243. package/fesm2022/acorex-modules-organization-management-employee.entity-PwlBjkYo.mjs.map +0 -1
  244. package/fesm2022/acorex-modules-organization-management-org-chart.page-BSh18amn.mjs.map +0 -1
  245. package/fesm2022/acorex-modules-organization-management-position.entity-B7ceEEbu.mjs.map +0 -1
  246. package/fesm2022/acorex-modules-organization-management-setting.provider-eLv_qnmE.mjs.map +0 -1
  247. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.module.d.ts +0 -6
@@ -1,22 +1,23 @@
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';
1
+ import { AXPSessionService, AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';
2
+ import { AXPSearchCommandProvider, AXPDataGenerator, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
3
3
  import * as i2 from '@acorex/platform/layout/builder';
4
4
  import { AXPWidgetComponent, AXPLayoutBuilderModule, AXP_WIDGETS_ADVANCE_GROUP, createStringProperty, AXP_WIDGETS_LAYOUT_GROUP } from '@acorex/platform/layout/builder';
5
- import { AXPDesignerConnector, AXPDesignerService, AXPWidgetDesignerRendererDirective, AXPDesignerAddWidgetMiniButtonComponent } from '@acorex/platform/layout/designer';
6
- import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
5
+ import { AXPDesignerConnector, AXPDesignerService, AXPWidgetDesignerRendererDirective, AXPDesignerAddWidgetMiniButtonComponent, AXPDesignerMessageKeys } from '@acorex/platform/layout/designer';
6
+ import { AXMEntityCrudServiceImpl, AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
7
7
  import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_BEHAVIOR_PROPERTY_GROUP, AXPWidgetsModule } from '@acorex/platform/widgets';
8
8
  import * as i2$1 from '@acorex/platform/workflow';
9
9
  import { AXPWorkflowService, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
10
10
  import * as i0 from '@angular/core';
11
11
  import { Injectable, NgModule, inject, Injector, InjectionToken, computed, signal, effect, Component, ChangeDetectionStrategy, HostBinding } from '@angular/core';
12
12
  import { ROUTES } from '@angular/router';
13
+ import { firstValueFrom } from 'rxjs';
13
14
  import { get, sortBy } from 'lodash-es';
14
15
  import * as i3 from '@acorex/core/translation';
15
16
  import { AXTranslationModule } from '@acorex/core/translation';
16
17
  import * as i1 from '@angular/common';
17
18
  import { CommonModule } from '@angular/common';
18
19
  import { AXPopupService } from '@acorex/components/popup';
19
- import { AXButtonModule } from '@acorex/components/button';
20
+ import { AXPDataGenerator as AXPDataGenerator$1, AXPBroadcastEventService } from '@acorex/platform/core';
20
21
 
21
22
  const config = {
22
23
  i18n: 'form-template-management',
@@ -139,9 +140,9 @@ class AXMEntityProvider {
139
140
  if (moduleName == RootConfig.module.name) {
140
141
  switch (entityName) {
141
142
  case RootConfig.entities.category.name:
142
- return (await import('./acorex-modules-form-template-management-category.entity-D00XZd7o.mjs')).factory(this.injector);
143
+ return (await import('./acorex-modules-form-template-management-category.entity-BZXqnhwK.mjs')).factory(this.injector);
143
144
  case RootConfig.entities.template.name:
144
- return (await import('./acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs')).factory(this.injector);
145
+ return (await import('./acorex-modules-form-template-management-template.entity-JvWcqjzi.mjs')).factory(this.injector);
145
146
  }
146
147
  }
147
148
  return null;
@@ -156,8 +157,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
156
157
  class AXMMenuProvider {
157
158
  constructor() {
158
159
  this.entityService = inject(AXPEntityService);
160
+ this.sessionService = inject(AXPSessionService);
159
161
  }
160
162
  async provide(context) {
163
+ const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
164
+ if (!isAuthorized) {
165
+ return;
166
+ }
167
+ //
161
168
  const scope = RootConfig.config.i18n;
162
169
  const module = RootConfig.module;
163
170
  context.addItems([
@@ -229,10 +236,14 @@ class AXMSearchCommandProvider extends AXPSearchCommandProvider {
229
236
  title: 'New Form Template',
230
237
  icon: RootConfig.entities.template.icon,
231
238
  description: 'Create a new form template for designing reusable forms.', // Added description
232
- commands: {
233
- 'create-entity': {
234
- entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
235
- },
239
+ command: {
240
+ // 'create-entity': {
241
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
242
+ // },
243
+ name: 'create-entity',
244
+ options: {
245
+ entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`
246
+ }
236
247
  },
237
248
  },
238
249
  {
@@ -240,10 +251,14 @@ class AXMSearchCommandProvider extends AXPSearchCommandProvider {
240
251
  title: 'New Form Template Category',
241
252
  icon: RootConfig.entities.category.icon,
242
253
  description: 'Create a new category to organize form templates.', // Added description
243
- commands: {
244
- 'create-entity': {
245
- entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,
246
- },
254
+ command: {
255
+ // 'create-entity': {
256
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,
257
+ // },
258
+ name: 'create-entity',
259
+ options: {
260
+ entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`
261
+ }
247
262
  },
248
263
  },
249
264
  ];
@@ -255,15 +270,15 @@ class AXPTemplateWidgetProviderImpl {
255
270
  this.service = inject(AXMFormTemplateManagementTemplateEntityService);
256
271
  }
257
272
  async items(query) {
258
- const result = ((await this.service.query(query)).items).map(c => ({
273
+ const result = (await this.service.query(query)).items.map((c) => ({
259
274
  id: c.id,
260
275
  title: c.title,
261
276
  group: {
262
277
  name: c.categoryId,
263
278
  order: 2,
264
- title: get(c, 'category.title') ?? 'Custom'
279
+ title: get(c, 'category.title') ?? 'Custom',
265
280
  },
266
- description: c.description
281
+ description: c.description,
267
282
  }));
268
283
  return result;
269
284
  }
@@ -279,7 +294,7 @@ class AXPTemplateWidgetProviderImpl {
279
294
  };
280
295
  }
281
296
  else {
282
- throw Error("Invalid Id");
297
+ throw Error('Invalid Id');
283
298
  }
284
299
  }
285
300
  }
@@ -371,31 +386,37 @@ const AXMCreateFormTemplateWorkflow = {
371
386
  },
372
387
  };
373
388
 
374
- class AXMOpenFormTemplateDesignerAction extends AXPWorkflowAction {
375
- constructor() {
376
- super(...arguments);
377
- this.navigation = inject(AXPWorkflowNavigateAction);
378
- }
379
- async execute(context) {
380
- const { id } = context.getVariable('data');
381
- context.setVariable('payload', {
382
- commands: `forms/designer?id=${id}`,
383
- target: 'blank'
384
- });
385
- await this.navigation.execute(context);
386
- }
387
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
388
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction }); }
389
- }
390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, decorators: [{
391
- type: Injectable
392
- }] });
393
389
  const AXMDesignFormTemplateWorkflow = {
394
- startStepId: 'open-design-designer',
390
+ startStepId: 'open',
395
391
  steps: {
396
- "open-design-designer": {
392
+ "open": {
393
+ action: 'decide',
394
+ nextSteps: [
395
+ {
396
+ conditions: [{ type: 'SINGLE', expression: ' context.getVariable("embedded") == true' }],
397
+ nextStepId: 'embedded',
398
+ },
399
+ {
400
+ conditions: [{ type: 'SINGLE', expression: ' !context.getVariable("embedded")' }],
401
+ nextStepId: 'form',
402
+ },
403
+ ],
404
+ },
405
+ 'embedded': {
406
+ action: 'open-embedded-template-designer',
407
+ nextSteps: [
408
+ {
409
+ conditions: [{ type: 'SINGLE', expression: ' context.getOutput("result") == true' }],
410
+ nextStepId: 'save-embedded',
411
+ },
412
+ ],
413
+ },
414
+ 'form': {
397
415
  action: 'open-form-template-designer',
398
416
  },
417
+ 'save-embedded': {
418
+ action: 'save-embedded-template-designer',
419
+ },
399
420
  },
400
421
  };
401
422
 
@@ -403,6 +424,7 @@ const AXP_TEMPLATE_WIDGET_PROVIDER = new InjectionToken('AXP_TEMPLATE_WIDGET_PRO
403
424
  class AXPTemplateWidgetProviderService {
404
425
  constructor() {
405
426
  this.popupService = inject(AXPopupService);
427
+ this.categoryEntityService = inject(AXMFormTemplateManagementCategoryEntityService);
406
428
  this.providers = inject(AXP_TEMPLATE_WIDGET_PROVIDER, { optional: true });
407
429
  }
408
430
  async items(query) {
@@ -432,7 +454,7 @@ class AXPTemplateWidgetProviderService {
432
454
  return null;
433
455
  }
434
456
  async chooseTemplate() {
435
- const com = await import('./acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs').then((c) => c.AXPTemplateWidgetPickerComponent);
457
+ const com = await import('./acorex-modules-form-template-management-template-picker.component-BxOdV3y2.mjs').then((c) => c.AXPTemplateWidgetPickerComponent);
436
458
  const widgets = await this.items({
437
459
  skip: 0,
438
460
  take: 100,
@@ -441,15 +463,17 @@ class AXPTemplateWidgetProviderService {
441
463
  value: 20,
442
464
  operator: {
443
465
  type: 'equal',
444
- }
445
- }
466
+ },
467
+ },
446
468
  });
469
+ const categories = (await this.categoryEntityService.query({ skip: 0, take: 100 })).items;
447
470
  const result = await this.popupService.open(com, {
448
471
  title: 'Widget Template Gallery',
449
472
  size: 'md',
450
473
  closeButton: true,
451
474
  data: {
452
475
  widgets: sortBy(widgets, (c) => c.title),
476
+ categories,
453
477
  },
454
478
  });
455
479
  if (result.data) {
@@ -557,12 +581,6 @@ class AXPTemplateWidgetDesignerComponent extends AXPWidgetComponent {
557
581
  }
558
582
  });
559
583
  }
560
- // override async ngOnInit() {
561
- // super.ngOnInit();
562
- // if (!this.templateId()) {
563
- // this.handleChooseWidget();
564
- // }
565
- // }
566
584
  async handleChooseWidget() {
567
585
  const result = await this.templateProvider.chooseTemplate();
568
586
  if (result) {
@@ -698,7 +716,7 @@ const AXPTemplateWidget = {
698
716
  component: () => Promise.resolve().then(function () { return templateWidgetView_component; }).then((c) => c.AXPTemplateWidgetViewComponent),
699
717
  },
700
718
  edit: {
701
- component: () => import('./acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs').then((c) => c.AXPTemplateWidgetEditComponent),
719
+ component: () => import('./acorex-modules-form-template-management-template-widget-edit.component--MGoF75g.mjs').then((c) => c.AXPTemplateWidgetEditComponent),
702
720
  },
703
721
  print: {
704
722
  component: () => Promise.resolve().then(function () { return templateWidgetView_component; }).then((c) => c.AXPTemplateWidgetViewComponent),
@@ -713,19 +731,28 @@ class AXPTemplateDesignerWidgetViewComponent extends AXPWidgetComponent {
713
731
  constructor() {
714
732
  super(...arguments);
715
733
  this.workflow = inject(AXPWorkflowService);
734
+ this.embedded = computed(() => this.options()['embedded'] ?? false);
716
735
  }
717
736
  async handleClick() {
718
- await this.workflow.execute('design-form-template', { data: { id: this.extractValue('id') } });
737
+ if (this.embedded()) {
738
+ const context = await this.workflow.execute('design-form-template', { embedded: true, content: this.getValue() });
739
+ const content = context.getVariable('content');
740
+ this.setValue(content);
741
+ }
742
+ else {
743
+ const id = this.extractValue('id');
744
+ const context = await this.workflow.execute('design-form-template', { id });
745
+ }
719
746
  }
720
747
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
721
748
  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: `
722
749
  <span
723
750
  class="ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer"
724
- (click)="handleClick()"
751
+ (click)="handleClick()" *translate="let t"
725
752
  >
726
- {{ 't("edit-template",{ scope:"form-template-management" })' | translate | async }}
753
+ {{ t("edit-template",{ scope:"form-template-management" }) | async }}
727
754
  </span>
728
- `, 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 }); }
755
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i3.AXTranslatorDirective, selector: "[translate]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
729
756
  }
730
757
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, decorators: [{
731
758
  type: Component,
@@ -733,13 +760,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
733
760
  template: `
734
761
  <span
735
762
  class="ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer"
736
- (click)="handleClick()"
763
+ (click)="handleClick()" *translate="let t"
737
764
  >
738
- {{ 't("edit-template",{ scope:"form-template-management" })' | translate | async }}
765
+ {{ t("edit-template",{ scope:"form-template-management" }) | async }}
739
766
  </span>
740
767
  `,
741
768
  changeDetection: ChangeDetectionStrategy.OnPush,
742
- imports: [CommonModule, AXButtonModule, AXTranslationModule]
769
+ imports: [CommonModule, AXTranslationModule]
743
770
  }]
744
771
  }] });
745
772
 
@@ -777,7 +804,7 @@ class AXMOpenFormTemplateViewerAction extends AXPWorkflowAction {
777
804
  async execute(context) {
778
805
  const { id } = context.getVariable('data');
779
806
  const metadata = context.getVariable('metadata');
780
- const comp = await import('./acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs').then(x => x.AXPFormTemplateViewerPopupComponent);
807
+ const comp = await import('./acorex-modules-form-template-management-viewer-popup.component-Bllb70Ih.mjs').then(x => x.AXPFormTemplateViewerPopupComponent);
781
808
  const result = await this.popupService.open(comp, {
782
809
  title: 'Form Template Viewer',
783
810
  data: {
@@ -833,6 +860,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
833
860
  type: Injectable
834
861
  }] });
835
862
 
863
+ class AXMOpenFormTemplateDesignerAction extends AXPWorkflowAction {
864
+ constructor() {
865
+ super(...arguments);
866
+ this.navigation = inject(AXPWorkflowNavigateAction);
867
+ }
868
+ async execute(context) {
869
+ const id = context.getVariable('id') ?? context.getVariable('data.id') ?? AXPDataGenerator$1.uuid();
870
+ context.setVariable('payload', {
871
+ commands: `forms/designer?id=${id}`,
872
+ target: 'blank'
873
+ });
874
+ await this.navigation.execute(context);
875
+ }
876
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
877
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction }); }
878
+ }
879
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, decorators: [{
880
+ type: Injectable
881
+ }] });
882
+ Injectable();
883
+ class AXMOpenEmbeddedTemplateDesignerAction extends AXPWorkflowAction {
884
+ constructor() {
885
+ super(...arguments);
886
+ this.navigation = inject(AXPWorkflowNavigateAction);
887
+ this.broadcastService = inject(AXPBroadcastEventService);
888
+ }
889
+ async execute(context) {
890
+ const id = context.getVariable('id') ?? context.getVariable('data.id') ?? AXPDataGenerator$1.uuid();
891
+ context.setVariable('payload', {
892
+ commands: `forms/designer?id=${id}&strategy=Broadcast`,
893
+ target: 'blank'
894
+ });
895
+ await this.navigation.execute(context);
896
+ console.log(`Form opened for ID: ${id}. Waiting for user to close the form...`);
897
+ return new Promise((resolve, reject) => {
898
+ this.broadcastService.listen(AXPDesignerMessageKeys.RequestFormContent).subscribe(async (event) => {
899
+ if (event.requestId && event.data.formId == id) {
900
+ const content = context.getVariable('content') ?? null;
901
+ this.broadcastService.respondToRequest(event.requestId, content);
902
+ context.setOutput("result", true);
903
+ resolve();
904
+ }
905
+ else {
906
+ context.setOutput("result", false);
907
+ reject('No valid requestId found in the event.');
908
+ }
909
+ });
910
+ });
911
+ }
912
+ }
913
+ Injectable();
914
+ class AXMSaveEmbeddedTemplateDesignerAction extends AXPWorkflowAction {
915
+ constructor() {
916
+ super(...arguments);
917
+ this.broadcastService = inject(AXPBroadcastEventService);
918
+ }
919
+ async execute(context) {
920
+ debugger;
921
+ return new Promise((resolve, reject) => {
922
+ this.broadcastService.listen(AXPDesignerMessageKeys.SaveForm).subscribe(async (event) => {
923
+ debugger;
924
+ if (event.data.success) {
925
+ this.broadcastService.respondToRequest(event.requestId, { success: true });
926
+ context.setVariable('content', event.data.content);
927
+ context.setOutput('result', true);
928
+ }
929
+ else {
930
+ context.setOutput('result', false);
931
+ }
932
+ resolve();
933
+ });
934
+ });
935
+ }
936
+ }
937
+
836
938
  function routesFacory() {
837
939
  const routes = [
838
940
  {
@@ -840,7 +942,7 @@ function routesFacory() {
840
942
  children: [
841
943
  {
842
944
  path: 'designer',
843
- loadComponent: () => import('./acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs').then((c) => c.AXMFormTemplateManagementModuleDesignerPage),
945
+ loadComponent: () => import('./acorex-modules-form-template-management-designer.page-Bd_bZ_7p.mjs').then((c) => c.AXMFormTemplateManagementModuleDesignerPage),
844
946
  },
845
947
  {
846
948
  path: 'preview',
@@ -892,7 +994,7 @@ class AXMFormTemplateManagementModule {
892
994
  {
893
995
  provide: AXP_SETTING_DEFINITION_PROVIDER,
894
996
  useFactory: async () => {
895
- const provider = (await import('./acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs')).AXMSettingProvider;
997
+ const provider = (await import('./acorex-modules-form-template-management-setting.provider-o2_TSVfK.mjs')).AXMSettingProvider;
896
998
  return new provider();
897
999
  },
898
1000
  multi: true,
@@ -915,8 +1017,12 @@ class AXMFormTemplateManagementModule {
915
1017
  }),
916
1018
  AXPWorkflowModule.forChild({
917
1019
  actions: {
1020
+ 'open-form-template-viewer': AXMOpenFormTemplateViewerAction,
1021
+ //
918
1022
  'open-form-template-designer': AXMOpenFormTemplateDesignerAction,
919
- 'open-form-template-viewer': AXMOpenFormTemplateViewerAction
1023
+ 'open-embedded-template-designer': AXMOpenEmbeddedTemplateDesignerAction,
1024
+ //
1025
+ 'save-embedded-template-designer': AXMSaveEmbeddedTemplateDesignerAction
920
1026
  },
921
1027
  workflows: {
922
1028
  'create-form-template': AXMCreateFormTemplateWorkflow,
@@ -937,8 +1043,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
937
1043
  }),
938
1044
  AXPWorkflowModule.forChild({
939
1045
  actions: {
1046
+ 'open-form-template-viewer': AXMOpenFormTemplateViewerAction,
1047
+ //
940
1048
  'open-form-template-designer': AXMOpenFormTemplateDesignerAction,
941
- 'open-form-template-viewer': AXMOpenFormTemplateViewerAction
1049
+ 'open-embedded-template-designer': AXMOpenEmbeddedTemplateDesignerAction,
1050
+ //
1051
+ 'save-embedded-template-designer': AXMSaveEmbeddedTemplateDesignerAction
942
1052
  },
943
1053
  workflows: {
944
1054
  'create-form-template': AXMCreateFormTemplateWorkflow,
@@ -981,7 +1091,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
981
1091
  {
982
1092
  provide: AXP_SETTING_DEFINITION_PROVIDER,
983
1093
  useFactory: async () => {
984
- const provider = (await import('./acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs')).AXMSettingProvider;
1094
+ const provider = (await import('./acorex-modules-form-template-management-setting.provider-o2_TSVfK.mjs')).AXMSettingProvider;
985
1095
  return new provider();
986
1096
  },
987
1097
  multi: true,
@@ -1005,4 +1115,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1005
1115
  */
1006
1116
 
1007
1117
  export { AXMFormTemplateManagementCategoryEntityService as A, RootConfig as R, AXMFormTemplateManagementTemplateEntityService as a, AXMFormTemplateTypes as b, AXPFormTemplateViewerConnector as c, AXPTemplateWidgetProviderService as d, AXMFormTemplateManagementModule as e, AXMFormTemplateManagementCategoryEntityModule as f, AXMFormTemplateManagementCategoryEntityServiceImpl as g, AXMFormTemplateManagementTemplateEntityModule as h, AXMFormTemplateManagementTemplateEntityServiceImpl as i };
1008
- //# sourceMappingURL=acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs.map
1118
+ //# sourceMappingURL=acorex-modules-form-template-management-acorex-modules-form-template-management-szDh56Bk.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-form-template-management-acorex-modules-form-template-management-szDh56Bk.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/const.ts","../../../../libs/modules/form-template-management/src/lib/entities/category/category.service.ts","../../../../libs/modules/form-template-management/src/lib/entities/category/category.module.ts","../../../../libs/modules/form-template-management/src/lib/entities/template/template.service.ts","../../../../libs/modules/form-template-management/src/lib/entities/template/template.module.ts","../../../../libs/modules/form-template-management/src/lib/entities/template/template.types.ts","../../../../libs/modules/form-template-management/src/lib/entity.provider.ts","../../../../libs/modules/form-template-management/src/lib/menu.provider.ts","../../../../libs/modules/form-template-management/src/lib/permission.provider.ts","../../../../libs/modules/form-template-management/src/lib/search-command.provider.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/template.provider.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/designer-connector.service.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/workflows/create-template.workflow.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/workflows/design-template.workflow.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template-picker/template.provider.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template/template-widget-view.component.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template/template-widget-designer.component.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template/template-widget.config.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template-designer/template-designer-widget-view.component.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template-designer/template-designer-widget.config.ts","../../../../libs/modules/form-template-management/src/lib/features/viewer/workflows/open-template.workflow.ts","../../../../libs/modules/form-template-management/src/lib/features/viewer/viewer-connector.service.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/workflows/workflow.actions.ts","../../../../libs/modules/form-template-management/src/lib/form-template-management.module.ts","../../../../libs/modules/form-template-management/src/acorex-modules-form-template-management.ts"],"sourcesContent":["const config = {\n i18n: 'form-template-management',\n};\nexport const RootConfig = {\n config,\n module: {\n route: 'form-template-management',\n name: 'FormTemplateManagement',\n title: `t('module-name', {scope:\"${config.i18n}\"})`,\n icon: 'fa-light fa-file-invoice'\n },\n entities: {\n category: {\n name: 'Category',\n title: 't(\"category\", { scope: \"common\" })',\n icon: 'fa-light fa-list'\n },\n template: {\n name: 'Template',\n title: `t(\"template\",{scope:\"${config.i18n}\"})`,\n icon: 'fa-light fa-file-code'\n }\n },\n};\n","import { AXMEntityCrudServiceImpl } from '@acorex/platform/layout/entity';\nimport { Injectable } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMFormTemplateManagementCategoryEntityModel } from './category.types';\n\nexport abstract class AXMFormTemplateManagementCategoryEntityService extends AXMEntityCrudServiceImpl<\n string,\n AXMFormTemplateManagementCategoryEntityModel\n> {}\n\n@Injectable()\nexport class AXMFormTemplateManagementCategoryEntityServiceImpl extends AXMFormTemplateManagementCategoryEntityService {\n constructor() {\n super(`${RootConfig.module.name}.${RootConfig.entities.category.name}`);\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { AXMFormTemplateManagementCategoryEntityService, AXMFormTemplateManagementCategoryEntityServiceImpl } from './category.service';\n\n@NgModule({\nimports: [],\nexports: [],\ndeclarations: [],\n providers: [\n {\n provide: AXMFormTemplateManagementCategoryEntityService,\n useClass: AXMFormTemplateManagementCategoryEntityServiceImpl,\n },\n ],\n})\nexport class AXMFormTemplateManagementCategoryEntityModule {\n}\n ","import { AXMEntityCrudServiceImpl } from '@acorex/platform/layout/entity';\nimport { Injectable } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMFormTemplateManagementTemplateEntityModel } from './template.types';\n\nexport abstract class AXMFormTemplateManagementTemplateEntityService extends AXMEntityCrudServiceImpl<\n string,\n AXMFormTemplateManagementTemplateEntityModel\n> {}\n\n@Injectable()\nexport class AXMFormTemplateManagementTemplateEntityServiceImpl extends AXMFormTemplateManagementTemplateEntityService {\n constructor() {\n super(`${RootConfig.module.name}.${RootConfig.entities.template.name}`);\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateManagementTemplateEntityServiceImpl } from './template.service';\n\n@NgModule({\nimports: [],\nexports: [],\ndeclarations: [],\n providers: [\n {\n provide: AXMFormTemplateManagementTemplateEntityService,\n useClass: AXMFormTemplateManagementTemplateEntityServiceImpl,\n },\n ],\n})\nexport class AXMFormTemplateManagementTemplateEntityModule {\n}\n ","import { AXPEntityModel } from '@acorex/platform/layout/entity';\n\nexport interface AXMFormTemplateManagementTemplateEntityModel extends AXPEntityModel<string> {\n name: string;\n title: string;\n template: string;\n description?: string;\n type: number;\n categoryId: string;\n}\n\nexport const AXMFormTemplateTypes = {\n Form: { id: 10, title: 'Form Template' },\n Widget: { id: 20, title: 'Widget Template' },\n};\n","import { AXPEntity } from '@acorex/platform/common';\nimport {\n AXPEntityDefinitionLoader,\n AXPEntityDefinitionPreloader,\n AXPEntityPreloadEntity,\n} from '@acorex/platform/layout/entity';\nimport { Injectable, Injector, inject } from '@angular/core';\nimport { RootConfig } from './const';\n\n@Injectable()\nexport class AXMEntityProvider implements AXPEntityDefinitionLoader, AXPEntityDefinitionPreloader {\n public preload(): AXPEntityPreloadEntity[] {\n const module = RootConfig.module.name;\n return Array.from(Object.values(RootConfig.entities)).map((entity: any) => ({\n module: module,\n entity: entity.name,\n }));\n }\n\n private injector = inject(Injector);\n\n async get(moduleName: string, entityName: string): Promise<AXPEntity | null> {\n if (moduleName == RootConfig.module.name) {\n switch (entityName) {\n case RootConfig.entities.category.name:\n return (await import('./entities/category/category.entity')).factory(this.injector);\n case RootConfig.entities.template.name:\n return (await import('./entities/template/template.entity')).factory(this.injector);\n }\n }\n return null;\n }\n}\n","import { AXPMenuProvider, AXPMenuProviderContext } from '@acorex/platform/common';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { inject } from '@angular/core';\nimport { RootConfig } from './const';\nimport { firstValueFrom } from 'rxjs';\nimport { AXPSessionService } from '@acorex/platform/auth';\n\nexport class AXMMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n private sessionService = inject(AXPSessionService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);\n if (!isAuthorized) {\n return;\n }\n //\n\n const scope = RootConfig.config.i18n;\n const module = RootConfig.module;\n\n context.addItems([\n {\n priority: 9001,\n text: `t('root-menu', {scope:\"${scope}\"})`,\n icon: module.icon,\n data: {\n requiredPermission: ['forms:management']\n },\n children: [\n {\n text: `t(\"categories\", {scope: \"${scope}\"})`,\n path: this.entityService.createPath(module.name, RootConfig.entities.category.name),\n icon: RootConfig.entities.category.icon,\n priority: 1,\n data: {\n requiredPermission: ['forms:categories:edit']\n },\n },\n {\n text: `t('templates', {scope:\"${scope}\"})`,\n path: this.entityService.createPath(module.name, RootConfig.entities.template.name),\n icon: RootConfig.entities.template.icon,\n priority: 2,\n data: {\n requiredPermission: ['forms:templates:edit']\n },\n },\n ],\n },\n ]);\n }\n}\n","import { AXPPermissionProvider, AXPPermissionProviderContext } from '@acorex/platform/auth';\n\nexport class AXMPermissionProvider implements AXPPermissionProvider {\n async provide(context: AXPPermissionProviderContext): Promise<void> {\n context.addPermissions([\n {\n name: 'forms:management',\n title: 'Permission to manage templates',\n isArchived: false,\n },\n {\n name: 'forms:templates:view',\n title: 'Permission to view templates',\n isArchived: false,\n },\n {\n name: 'forms:templates:edit',\n title: 'Permission to edit templates',\n isArchived: false,\n },\n {\n name: 'forms:categories:edit',\n title: 'Permission to edit templates categories',\n isArchived: false,\n },\n ]);\n }\n}\n","import { AXPSearchCommandProvider, AXPSearchResult } from '@acorex/platform/common';\nimport { RootConfig } from './const';\n\nexport class AXMSearchCommandProvider extends AXPSearchCommandProvider {\n commands: AXPSearchResult[] = [\n {\n group: 'command',\n title: 'New Form Template',\n icon: RootConfig.entities.template.icon,\n description: 'Create a new form template for designing reusable forms.', // Added description\n command: {\n // 'create-entity': {\n // entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,\n // },\n name: 'create-entity',\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`\n }\n },\n },\n {\n group: 'command',\n title: 'New Form Template Category',\n icon: RootConfig.entities.category.icon,\n description: 'Create a new category to organize form templates.', // Added description\n command: {\n // 'create-entity': {\n // entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,\n // },\n name: 'create-entity',\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`\n }\n },\n },\n ];\n}\n","import { AXPWidgetNode } from '@acorex/platform/layout/builder';\nimport { AXPQueryRequest } from '@acorex/platform/layout/entity';\nimport { inject } from '@angular/core';\nimport { get } from 'lodash-es';\nimport { AXMFormTemplateManagementTemplateEntityService } from '../../entities/template';\nimport { AXPTemplateWidgetItem, AXPTemplateWidgetListItem, AXPTemplateWidgetProvider } from './widgets/template';\n\nexport class AXPTemplateWidgetProviderImpl implements AXPTemplateWidgetProvider {\n private service = inject(AXMFormTemplateManagementTemplateEntityService);\n\n async items(query?: AXPQueryRequest): Promise<AXPTemplateWidgetListItem[]> {\n const result = (await this.service.query(query)).items.map(\n (c) =>\n ({\n id: c.id,\n title: c.title,\n group: {\n name: c.categoryId,\n order: 2,\n title: get(c, 'category.title') ?? 'Custom',\n },\n description: c.description,\n } as AXPTemplateWidgetListItem)\n );\n return result;\n }\n\n async get(id: string): Promise<AXPTemplateWidgetItem | null> {\n const item = await this.service.getOne(id);\n if (item) {\n const document = JSON.parse(item.template) as AXPWidgetNode;\n const page = document?.children?.[0];\n\n return {\n id: item.id as string,\n nodes: page?.children ?? [],\n title: item.title,\n };\n } else {\n throw Error('Invalid Id');\n }\n }\n}\n","import { AXPDesignerConnector, AXPDesignerContent } from '@acorex/platform/layout/designer';\nimport { inject, Injectable } from '@angular/core';\nimport { AXPWorkflowService } from '@acorex/platform/workflow';\nimport { AXPDataGenerator } from '@acorex/platform/common';\nimport { RootConfig } from '../../const';\nimport { AXMFormTemplateManagementCategoryEntityService } from '../../entities/category';\nimport { AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateTypes } from '../../entities/template';\n@Injectable()\nexport class AXPDesignerConnectorImpl extends AXPDesignerConnector {\n\n\n private workflow = inject(AXPWorkflowService);\n private templateEntityService = inject(AXMFormTemplateManagementTemplateEntityService)\n private categoryEntityService = inject(AXMFormTemplateManagementCategoryEntityService)\n\n //#region Save and load Widgets\n\n public override async save(id: string, content: AXPDesignerContent): Promise<boolean> {\n const item = await this.templateEntityService.getOne(id)\n if (item) {\n await this.templateEntityService.updateOne(id, { template: content.json })\n return true;\n }\n else {\n throw Error(\"Invalid Id\");\n }\n }\n\n public override async saveAs(content: AXPDesignerContent): Promise<boolean> {\n const result = await this.workflow.execute('create-entity', {\n redirect: false,\n entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,\n canCreateNewOne: false,\n data: {\n name: AXPDataGenerator.alphanumeric(10),\n type: AXMFormTemplateTypes.Widget,\n template: content.json,\n categoryId: (await this.categoryEntityService.query()).items[0]?.id\n }\n });\n return result.getOutput('result');\n }\n\n public override async load(id: string): Promise<string | null> {\n const item = await this.templateEntityService.getOne(id)\n if (item) {\n return item.template;\n }\n else {\n throw Error(\"Invalid Id\");\n }\n }\n\n //#endregion\n}\n","import { AXPWorkflow } from \"@acorex/platform/workflow\";\nimport { RootConfig } from \"../../../const\";\n\nexport const AXMCreateFormTemplateWorkflow: AXPWorkflow = {\n startStepId: 'create-form-template',\n steps: {\n \"create-form-template\": {\n action: 'start-workflow',\n input: {\n workflow: \"create-entity\",\n context: {\n redirect: true,\n entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,\n }\n },\n nextSteps: [\n {\n conditions: [{ type: 'SINGLE', expression: 'context.getOutput(\"result\") == true' }],\n nextStepId: 'get-template-confirmaton',\n },\n ],\n },\n \"get-template-confirmaton\": {\n action: 'show-prompt-dialog',\n input: {\n title: 'Confirm Action',\n message: `Would you like to proceed with starting template design?`,\n type: 'primary',\n },\n nextSteps: [\n {\n conditions: [{ type: 'SINGLE', expression: 'context.getOutput(\"result\") == true' }],\n nextStepId: 'template-design',\n },\n ],\n },\n \"template-design\": {\n action: 'open-form-template-designer',\n },\n },\n};\n\n\n","import { AXPWorkflow } from \"@acorex/platform/workflow\";\n\nexport const AXMDesignFormTemplateWorkflow: AXPWorkflow = {\n startStepId: 'open',\n steps: {\n \"open\": {\n action: 'decide',\n nextSteps: [\n {\n conditions: [{ type: 'SINGLE', expression: ' context.getVariable(\"embedded\") == true' }],\n nextStepId: 'embedded',\n },\n {\n conditions: [{ type: 'SINGLE', expression: ' !context.getVariable(\"embedded\")' }],\n nextStepId: 'form',\n },\n ],\n },\n 'embedded': {\n action: 'open-embedded-template-designer',\n nextSteps: [\n {\n conditions: [{ type: 'SINGLE', expression: ' context.getOutput(\"result\") == true' }],\n nextStepId: 'save-embedded',\n },\n ],\n },\n 'form': {\n action: 'open-form-template-designer',\n },\n 'save-embedded': {\n action: 'save-embedded-template-designer',\n },\n },\n};\n\n\n","import { AXPopupService } from '@acorex/components/popup';\nimport { AXPWidgetGroup, AXPWidgetNode } from '@acorex/platform/layout/builder';\nimport { AXPQueryRequest } from '@acorex/platform/layout/entity';\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { sortBy } from 'lodash-es';\nimport { AXMFormTemplateManagementCategoryEntityService } from '../../../../entities/category';\n\nexport interface AXPTemplateWidgetListItem {\n id: string;\n title: string;\n description?: string;\n icon?: string;\n group: AXPWidgetGroup;\n}\n\nexport interface AXPTemplateWidgetItem {\n id: string;\n title: string;\n nodes: AXPWidgetNode[];\n}\n\nexport interface AXPTemplateWidgetProvider {\n items(query?: AXPQueryRequest): Promise<AXPTemplateWidgetListItem[]>;\n get(id: string): Promise<AXPTemplateWidgetItem | null>;\n}\n\nexport const AXP_TEMPLATE_WIDGET_PROVIDER = new InjectionToken<AXPTemplateWidgetProvider[]>(\n 'AXP_TEMPLATE_WIDGET_PROVIDER'\n);\n\n@Injectable({ providedIn: 'root' })\nexport class AXPTemplateWidgetProviderService implements AXPTemplateWidgetProvider {\n private popupService = inject(AXPopupService);\n\n private categoryEntityService = inject(AXMFormTemplateManagementCategoryEntityService);\n\n private providers = inject(AXP_TEMPLATE_WIDGET_PROVIDER, { optional: true });\n\n async items(query?: AXPQueryRequest): Promise<AXPTemplateWidgetListItem[]> {\n if (Array.isArray(this.providers)) {\n const result: AXPTemplateWidgetListItem[] = [];\n for (const provider of this.providers) {\n const items = await provider.items(query);\n if (items) {\n result.push(...items);\n }\n }\n return result;\n } else {\n return [];\n }\n }\n\n async get(id: string): Promise<AXPTemplateWidgetItem | null> {\n if (Array.isArray(this.providers)) {\n for (const provider of this.providers) {\n const node = await provider.get(id);\n if (node) {\n return node;\n }\n }\n }\n return null;\n }\n\n async chooseTemplate(): Promise<AXPTemplateWidgetListItem | null> {\n const com = await import('./template-picker.component').then((c) => c.AXPTemplateWidgetPickerComponent);\n const widgets = await this.items({\n skip: 0,\n take: 100,\n filter: {\n field: 'type.id',\n value: 20,\n operator: {\n type: 'equal',\n },\n },\n });\n\n const categories = (await this.categoryEntityService.query({ skip: 0, take: 100 })).items;\n const result = await this.popupService.open(com, {\n title: 'Widget Template Gallery',\n size: 'md',\n closeButton: true,\n data: {\n widgets: sortBy(widgets, (c) => c.title),\n categories,\n },\n });\n if (result.data) {\n const selected = result.data?.widgets as AXPTemplateWidgetListItem[];\n return selected[0];\n }\n return null;\n }\n}\n","import { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPLayoutBuilderModule, AXPWidgetComponent, AXPWidgetNode } from '@acorex/platform/layout/builder';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, effect, inject, signal } from '@angular/core';\nimport { get } from 'lodash-es';\nimport { AXPTemplateWidgetProviderService } from '../template-picker/template.provider';\n\n@Component({\n selector: 'axp-template-widget-view',\n template: `\n @for (node of nodes(); track $index) {\n <ng-container axp-widget-renderer\n [node]=\"node\"\n [parentNode]=\"this\"\n [mode]=\"this.mode\"\n >\n </ng-container>\n }\n @empty {\n <span class=\"ax-underline ax-decoration-dotted ax-underline-offset-8 ax-text-gray-400\">\n {{ 'empty-template' | translate : { scope: 'form-template-management' } | async }}\n </span>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXPLayoutBuilderModule, AXTranslationModule]\n})\nexport class AXPTemplateWidgetViewComponent extends AXPWidgetComponent<any> {\n private metaKey = '__meta__';\n private templateProvider = inject(AXPTemplateWidgetProviderService);\n protected templateId = computed<string>(() => this.options()['templateId'] as string);\n protected nodes = signal<AXPWidgetNode[]>([]);\n\n constructor() {\n super();\n //\n effect(\n async () => {\n this.nodes.set([]);\n const value = this.getValue();\n const templateId = get(value, `${this.metaKey}.templateId`) ?? this.templateId();\n if (templateId) {\n const item = await this.templateProvider.get(templateId);\n if (item) {\n this.nodes.set(item.nodes);\n }\n }\n }\n );\n }\n}\n","import { AXPWidgetComponent, AXPLayoutBuilderModule, AXPWidgetNode } from '@acorex/platform/layout/builder';\nimport {\n AXPDesignerAddWidgetMiniButtonComponent,\n AXPDesignerService,\n AXPDesignerWidgetComponent,\n AXPWidgetDesignerRendererDirective,\n} from '@acorex/platform/layout/designer';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, effect, HostBinding, inject, signal } from '@angular/core';\nimport { AXPTemplateWidgetProviderService } from '../template-picker/template.provider';\nimport { AXMenuItem } from '@acorex/components/menu';\n\nexport const AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU: AXMenuItem = {\n text: 'Choose Template',\n name: 'choose',\n icon: 'fa-solid fa-folder-open',\n};\n\n\n@Component({\n selector: 'axp-template-widget-designer',\n template: `\n @if(nodes().length) {\n <div class=\"ax-relative ax-block ax-w-full ax-pointer-events-none\">\n @for (node of nodes(); track $index) {\n <ng-container axp-widget-designer-renderer [locked]=\"true\" [node]=\"node\" [parentNode]=\"this\" [mode]=\"this.mode\"> </ng-container>\n }\n <div\n 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]\"\n >\n <span class=\"ax-capitalize ax-font-semibold ax-text-primary-700\"> {{ title() }}</span>\n </div>\n </div>\n } @else {\n <axp-designer-add-widget-mini-button\n class=\"ax-flex-1 ax-self-center ax-place-self-end\"\n (onClick)=\"handleChooseWidget()\"\n >\n </axp-designer-add-widget-mini-button>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n AXPLayoutBuilderModule,\n AXPWidgetDesignerRendererDirective,\n AXPDesignerAddWidgetMiniButtonComponent,\n ],\n providers: [\n {\n provide: AXPTemplateWidgetDesignerComponent,\n useExisting: AXPWidgetComponent,\n },\n ]\n})\nexport class AXPTemplateWidgetDesignerComponent extends AXPWidgetComponent<any> implements AXPDesignerWidgetComponent {\n private templateProvider = inject(AXPTemplateWidgetProviderService);\n private designerService = inject(AXPDesignerService);\n\n protected templateId = computed<string>(() => this.options()['templateId'] as string);\n protected nodes = signal<AXPWidgetNode[]>([]);\n protected title = signal<string | null>(null);\n\n constructor() {\n super();\n //\n effect(\n async () => {\n this.nodes.set([]);\n if (this.templateId()) {\n const item = await this.templateProvider.get(this.templateId());\n if (item && item.nodes?.length > 0) {\n this.title.set(item.title);\n this.nodes.set(item.nodes);\n }\n }\n }\n );\n }\n\n async handleChooseWidget() {\n const result = await this.templateProvider.chooseTemplate();\n if (result) {\n this.designerService.update({\n mode: 'update',\n values: { options: { templateId: result.id } },\n widget: this.node,\n });\n }\n }\n\n @HostBinding('class')\n private get __class(): string {\n const cls: any = {};\n //\n cls[`ax-w-full`] = true;\n cls[`ax-widget-outline`] = true;\n //\n cls[`ax-block`] = true;\n return cls;\n }\n\n onContextMenu(context: { items: AXMenuItem[]; }): void {\n const items: AXMenuItem[] = [\n AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU\n ]\n items[items.length - 1].break = true;\n context.items.unshift(...items)\n }\n\n async executeCommand(command: { name: string; data?: any; handled: boolean; }): Promise<void> {\n switch (command.name) {\n case AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU.name:\n await this.handleChooseWidget();\n break;\n }\n return Promise.resolve();\n }\n}\n","import { AXP_WIDGETS_ADVANCE_GROUP, AXPWidgetConfig, AXPWidgetProperty, createStringProperty } from '@acorex/platform/layout/builder';\nimport { AXP_BEHAVIOR_PROPERTY_GROUP, AXP_DATA_PATH_PROPERTY, AXP_NAME_PROPERTY } from '@acorex/platform/widgets';\n\nexport const AXPTemplateWidget: AXPWidgetConfig<AXPBlockWidgetConfigType> = {\n name: 'template',\n title: 'Template',\n type: 'container',\n icon: 'fa-solid fa-file-invoice',\n group: AXP_WIDGETS_ADVANCE_GROUP,\n visible: true,\n options: {\n canInsert: false,\n },\n properties: [\n AXP_NAME_PROPERTY,\n AXP_DATA_PATH_PROPERTY,\n createStringProperty({\n name: 'options.templateId',\n title: 'Template',\n group: AXP_BEHAVIOR_PROPERTY_GROUP,\n visible: false,\n }),\n ],\n components: {\n view: {\n component: () => import('./template-widget-view.component').then((c) => c.AXPTemplateWidgetViewComponent),\n },\n edit: {\n component: () => import('./template-widget-edit.component').then((c) => c.AXPTemplateWidgetEditComponent),\n },\n print: {\n component: () => import('./template-widget-view.component').then((c) => c.AXPTemplateWidgetViewComponent),\n },\n designer: {\n component: () => import('./template-widget-designer.component').then((c) => c.AXPTemplateWidgetDesignerComponent),\n },\n },\n};\n\nexport type AXPBlockWidgetConfigType = {\n type: 'container';\n}\n","import { AXButtonModule } from '@acorex/components/button';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPWidgetComponent } from '@acorex/platform/layout/builder';\nimport { AXPWorkflowService } from '@acorex/platform/workflow';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';\n\n@Component({\n template: `\n <span\n class=\"ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer\"\n (click)=\"handleClick()\" *translate=\"let t\"\n >\n {{ t(\"edit-template\",{ scope:\"form-template-management\" }) | async }}\n </span>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXTranslationModule]\n})\nexport class AXPTemplateDesignerWidgetViewComponent extends AXPWidgetComponent<any> {\n \n private workflow = inject(AXPWorkflowService);\n\n protected embedded = computed<string | null>(() => this.options()['embedded'] ?? false);\n\n protected async handleClick() {\n if (this.embedded()) {\n const context = await this.workflow.execute('design-form-template', { embedded: true, content: this.getValue() });\n const content = context.getVariable('content');\n this.setValue(content);\n }\n else {\n const id = this.extractValue('id');\n const context = await this.workflow.execute('design-form-template', { id });\n }\n }\n}\n","import { AXP_WIDGETS_LAYOUT_GROUP, AXPWidgetConfig } from '@acorex/platform/layout/builder';\nimport { AXP_DATA_PATH_PROPERTY, AXP_NAME_PROPERTY } from '@acorex/platform/widgets';\n\nexport const AXPTemplateDesignerWidget: AXPWidgetConfig = {\n name: \"template-designer\",\n title: \"Template Designer\",\n icon: \"fa-solid fa-square\",\n type: 'editor',\n group: AXP_WIDGETS_LAYOUT_GROUP,\n visible: false,\n properties: [\n AXP_NAME_PROPERTY,\n AXP_DATA_PATH_PROPERTY,\n ],\n components: {\n view: {\n component: () => import('./template-designer-widget-view.component').then((c) => c.AXPTemplateDesignerWidgetViewComponent),\n },\n edit: {\n component: () => import('./template-designer-widget-view.component').then((c) => c.AXPTemplateDesignerWidgetViewComponent),\n }\n }\n}\n\ndeclare module '@acorex/platform/layout/builder' {\n interface AXPWidgetTypesMap {\n templateDesigner: 'template-designer';\n }\n}","import { AXPWorkflow, AXPWorkflowAction, AXPWorkflowContext } from \"@acorex/platform/workflow\";\nimport { inject, Injectable } from \"@angular/core\";\nimport { AXPopupService } from \"@acorex/components/popup\";\n\n\n@Injectable()\nexport class AXMOpenFormTemplateViewerAction extends AXPWorkflowAction {\n\n private popupService = inject(AXPopupService);\n\n async execute(context: AXPWorkflowContext): Promise<void> {\n const { id } = context.getVariable('data');\n const metadata = context.getVariable('metadata');\n const comp = await import('../viewer-popup.component').then(x => x.AXPFormTemplateViewerPopupComponent);\n const result = await this.popupService.open(comp, {\n title: 'Form Template Viewer',\n data: {\n templateId: id,\n metadata\n }\n })\n context.setOutput('result', result.data != null);\n if (result.data?.context) {\n context.setOutput('form-context', result.data?.context);\n }\n }\n}\n\n\nexport const AXMOpenFormTemplateViewerWorkflow: AXPWorkflow = {\n startStepId: 'open-form',\n steps: {\n \"open-form\": {\n action: 'open-form-template-viewer',\n },\n },\n};\n\n\n","import { inject, Injectable } from '@angular/core';\nimport { AXMFormTemplateManagementTemplateEntityService } from '../../entities/template';\nimport { AXPMetaData } from '@acorex/platform/core';\n\nexport abstract class AXPFormTemplateViewerConnector {\n abstract submit(id: string, context: any, metadeta?: AXPMetaData): Promise<boolean>;\n abstract load(id: string): Promise<string | null>;\n}\n\n@Injectable()\nexport class AXPFormTemplateViewerConnectorImpl extends AXPFormTemplateViewerConnector {\n private templateEntityService = inject(AXMFormTemplateManagementTemplateEntityService);\n\n //#region Save and load Widgets\n\n public override async submit(id: string, context: any, metadeta?: AXPMetaData): Promise<boolean> {\n console.log(id, context, metadeta);\n return Promise.resolve(true);\n }\n\n public override async load(id: string): Promise<string | null> {\n const item = await this.templateEntityService.getOne(id);\n if (item) {\n return item.template;\n } else {\n throw Error('Invalid Id');\n }\n }\n\n //#endregion\n}\n","import { AXToastService } from \"@acorex/components/toast\";\nimport { AXPWorkflowNavigateAction } from \"@acorex/platform/common\";\nimport { AXPBroadcastEventService, AXPDataGenerator } from \"@acorex/platform/core\";\nimport { AXPDesignerMessageKeys, AXPDesignerSaveFormMessage } from \"@acorex/platform/layout/designer\";\nimport { AXPWorkflowAction, AXPWorkflowContext } from \"@acorex/platform/workflow\";\nimport { Injectable, inject } from \"@angular/core\";\n\n@Injectable()\nexport class AXMOpenFormTemplateDesignerAction extends AXPWorkflowAction {\n\n private navigation = inject(AXPWorkflowNavigateAction);\n\n async execute(context: AXPWorkflowContext): Promise<void> {\n const id = context.getVariable('id') ?? context.getVariable('data.id') ?? AXPDataGenerator.uuid();\n context.setVariable('payload', {\n commands: `forms/designer?id=${id}`,\n target: 'blank'\n });\n await this.navigation.execute(context);\n }\n}\n\n\nInjectable()\nexport class AXMOpenEmbeddedTemplateDesignerAction extends AXPWorkflowAction {\n\n private navigation = inject(AXPWorkflowNavigateAction);\n private broadcastService = inject(AXPBroadcastEventService);\n\n async execute(context: AXPWorkflowContext): Promise<void> {\n const id = context.getVariable('id') ?? context.getVariable('data.id') ?? AXPDataGenerator.uuid();\n\n context.setVariable('payload', {\n commands: `forms/designer?id=${id}&strategy=Broadcast`,\n target: 'blank'\n });\n await this.navigation.execute(context);\n\n console.log(`Form opened for ID: ${id}. Waiting for user to close the form...`);\n\n return new Promise((resolve, reject) => {\n this.broadcastService.listen<{ formId: string }>(AXPDesignerMessageKeys.RequestFormContent).subscribe(async (event) => {\n if (event.requestId && event.data.formId == id) {\n const content: string | null = context.getVariable('content') ?? null;\n this.broadcastService.respondToRequest(event.requestId, content);\n context.setOutput(\"result\", true);\n resolve();\n } else {\n context.setOutput(\"result\", false);\n reject('No valid requestId found in the event.');\n }\n });\n\n })\n }\n}\n\nInjectable()\nexport class AXMSaveEmbeddedTemplateDesignerAction extends AXPWorkflowAction {\n private broadcastService = inject(AXPBroadcastEventService);\n\n override async execute(context: AXPWorkflowContext): Promise<void> {\n debugger\n return new Promise((resolve, reject) => {\n this.broadcastService.listen<AXPDesignerSaveFormMessage>(AXPDesignerMessageKeys.SaveForm).subscribe(async (event) => {\n debugger\n if (event.data.success) {\n this.broadcastService.respondToRequest(event.requestId!, { success: true });\n context.setVariable('content', event.data.content);\n context.setOutput('result', true)\n }\n else {\n context.setOutput('result', false)\n }\n resolve();\n });\n });\n }\n\n}","import { AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';\nimport { AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex/platform/common';\nimport { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';\nimport { AXPDesignerConnector } from '@acorex/platform/layout/designer';\nimport { AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';\nimport { AXPWidgetsModule } from '@acorex/platform/widgets';\nimport { AXPWorkflowModule } from '@acorex/platform/workflow';\nimport { NgModule } from '@angular/core';\nimport { ROUTES, Routes } from '@angular/router';\nimport { AXMFormTemplateManagementCategoryEntityModule } from './entities/category';\nimport { AXMFormTemplateManagementTemplateEntityModule } from './entities/template';\nimport { AXMEntityProvider } from './entity.provider';\nimport { AXMMenuProvider } from './menu.provider';\nimport { AXMPermissionProvider } from './permission.provider';\n\nimport { AXMSearchCommandProvider } from './search-command.provider';\nimport { AXPTemplateWidgetProviderImpl } from './features/designer/template.provider';\nimport { AXPDesignerConnectorImpl } from './features/designer/designer-connector.service';\nimport { AXMCreateFormTemplateWorkflow, AXMDesignFormTemplateWorkflow, AXP_TEMPLATE_WIDGET_PROVIDER, AXPTemplateDesignerWidget, AXPTemplateWidget } from './features';\nimport { AXMOpenFormTemplateViewerAction, AXMOpenFormTemplateViewerWorkflow } from './features/viewer/workflows/open-template.workflow';\nimport { AXPFormTemplateViewerConnector, AXPFormTemplateViewerConnectorImpl } from './features/viewer/viewer-connector.service';\nimport { AXMOpenEmbeddedTemplateDesignerAction, AXMOpenFormTemplateDesignerAction, AXMSaveEmbeddedTemplateDesignerAction } from './features/designer/workflows/workflow.actions';\n\nfunction routesFacory() {\n const routes: Routes = [\n {\n path: 'forms',\n children: [\n {\n path: 'designer',\n loadComponent: () =>\n import('./features/designer/designer.page').then((c) => c.AXMFormTemplateManagementModuleDesignerPage),\n },\n {\n path: 'preview',\n loadComponent: () =>\n import('@acorex/platform/layout/designer').then((c) => c.AXPLayoutDesignerPreviewComponent),\n },\n {\n path: 'viewer',\n loadComponent: () =>\n import('@acorex/platform/layout/designer').then((c) => c.AXPLayoutDesignerPreviewViewerComponent),\n },\n ],\n },\n ];\n return routes;\n}\n\n@NgModule({\n imports: [\n AXPWidgetsModule,\n AXMFormTemplateManagementCategoryEntityModule,\n AXMFormTemplateManagementTemplateEntityModule,\n AXPLayoutBuilderModule.forChild({\n widgets: [AXPTemplateDesignerWidget, AXPTemplateWidget],\n }),\n AXPWorkflowModule.forChild({\n actions: {\n 'open-form-template-viewer': AXMOpenFormTemplateViewerAction,\n //\n 'open-form-template-designer': AXMOpenFormTemplateDesignerAction,\n 'open-embedded-template-designer': AXMOpenEmbeddedTemplateDesignerAction,\n //\n 'save-embedded-template-designer': AXMSaveEmbeddedTemplateDesignerAction\n },\n workflows: {\n 'create-form-template': AXMCreateFormTemplateWorkflow,\n 'design-form-template': AXMDesignFormTemplateWorkflow,\n 'open-form-template': AXMOpenFormTemplateViewerWorkflow\n },\n }),\n ],\n exports: [],\n declarations: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n {\n provide: AXP_ENTITY_DEFINITION_LOADER,\n useClass: AXMEntityProvider,\n multi: true,\n },\n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMMenuProvider,\n multi: true,\n },\n {\n provide: AXPDesignerConnector,\n useClass: AXPDesignerConnectorImpl,\n },\n {\n provide: AXPFormTemplateViewerConnector,\n useClass: AXPFormTemplateViewerConnectorImpl,\n },\n {\n provide: AXP_TEMPLATE_WIDGET_PROVIDER,\n useClass: AXPTemplateWidgetProviderImpl,\n multi: true,\n },\n {\n provide: AXP_SETTING_DEFINITION_PROVIDER,\n useFactory: async () => {\n const provider = (await import('./setting.provider')).AXMSettingProvider;\n return new provider();\n },\n multi: true,\n },\n {\n provide: AXP_SEARCH_PROVIDER,\n useClass: AXMSearchCommandProvider,\n multi: true,\n },\n {\n provide: AXP_PERMISSION_PROVIDER,\n useClass: AXMPermissionProvider,\n multi: true,\n },\n ],\n})\nexport class AXMFormTemplateManagementModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","AXPDataGenerator","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,0BAA0B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