@acorex/modules 19.2.20 → 19.3.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.d.ts +2 -2
  2. package/auth/lib/setting.provider.d.ts +4 -0
  3. package/common/index.d.ts +1 -0
  4. package/common/lib/entities/dashboard/dashboard.types.d.ts +1 -1
  5. package/common/lib/features/{dashboard-home/dashboard-home.d.ts → home-dashboard/dashboard-home/home-dashboard.d.ts} +72 -52
  6. package/common/lib/features/{dashboard-home/dashboard-home.store.d.ts → home-dashboard/dashboard-home/home-dashboard.store.d.ts} +9 -4
  7. package/common/lib/features/home-dashboard/dashboard-home/index.d.ts +3 -0
  8. package/common/lib/features/{dashboard-popups → home-dashboard/dashboard-popups}/add-dashboard-popup.d.ts +7 -5
  9. package/common/lib/features/home-dashboard/dashboard-popups/configuration-popup.d.ts +14 -0
  10. package/common/lib/features/{dashboard-popups → home-dashboard/dashboard-popups}/dashboard-popup.service.d.ts +5 -4
  11. package/common/lib/features/home-dashboard/setrting.keys.d.ts +3 -0
  12. package/common/lib/features/{widget-wrapper → home-dashboard/widget-wrapper}/dashboard-widget-wrapper.d.ts +2 -1
  13. package/common/lib/menu.provider.d.ts +1 -1
  14. package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +1 -1
  15. package/conversation/lib/entities/comments/comments.service.d.ts +4 -4
  16. package/conversation/lib/entities/comments/comments.type.d.ts +1 -1
  17. package/document-management/lib/badge.provider.d.ts +11 -0
  18. package/document-management/lib/entities/document/document.service.d.ts +1 -1
  19. package/document-management/lib/entities/document/document.types.d.ts +2 -0
  20. package/document-management/lib/entities/document-type/document-type.service.d.ts +3 -3
  21. package/document-management/lib/entities/folder/folder.service.d.ts +2 -7
  22. package/document-management/lib/entities/folder/folder.types.d.ts +2 -1
  23. package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +9 -0
  24. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +20 -8
  25. package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +10 -6
  26. package/document-management/lib/features/document-explorer/views/detail-panel/detail-panel.component.d.ts +40 -36
  27. package/document-management/lib/features/document-explorer/views/details/details-view.component.d.ts +40 -36
  28. package/document-management/lib/features/document-explorer/views/large-icons/large-icons-view.component.d.ts +40 -36
  29. package/document-management/lib/features/document-explorer/views/large-tiles/large-tiles-view.component.d.ts +40 -36
  30. package/document-management/lib/features/document-explorer/views/list/list-view.component.d.ts +40 -36
  31. package/document-management/lib/features/document-explorer/views/small-icons/small-icons-view.component.d.ts +40 -36
  32. package/document-management/lib/features/document-explorer/views/small-tiles/small-tiles-view.component.d.ts +40 -36
  33. package/document-management/lib/features/drive/drive.component.d.ts +15 -9
  34. package/document-management/lib/features/drive/index.d.ts +3 -0
  35. package/document-management/lib/features/drive-choose/drive-choose.component.d.ts +16 -8
  36. package/document-management/lib/features/shared/components/document-type-choose-file/document-type-choose-file.component.d.ts +16 -0
  37. package/document-management/lib/features/shared/components/file-viewer-popup/file-viewer-popup.component.d.ts +5 -1
  38. package/document-management/lib/features/shared/components/folder-path-breadcrumbs/folder-path-breadcrumbs.component.d.ts +10 -6
  39. package/document-management/lib/features/shared/components/index.d.ts +1 -0
  40. package/document-management/lib/features/shared/components/link-dialog/link-dialog.component.d.ts +24 -0
  41. package/document-management/lib/features/shared/components/lock-dialog/lock-dialog.component.d.ts +16 -0
  42. package/document-management/lib/features/shared/components/share-dialog/share-dialog.component.d.ts +22 -0
  43. package/document-management/lib/features/shared/components/share-email-dialog/share-email-dialog.component.d.ts +17 -0
  44. package/document-management/lib/features/shared/components/unlock-dialog/unlock-dialog.component.d.ts +10 -0
  45. package/document-management/lib/features/shared/document-manager.service.d.ts +45 -22
  46. package/document-management/lib/features/shared/document-manager.types.d.ts +5 -7
  47. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-column.component.d.ts +1 -1
  48. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +66 -44
  49. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-print.component.d.ts +1 -1
  50. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-view.component.d.ts +1 -1
  51. package/document-management/lib/features/widgets/document-attachment/index.d.ts +0 -1
  52. package/fesm2022/acorex-modules-application-management.mjs +0 -1
  53. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  54. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DrcL7GCj.mjs → acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs} +15 -19
  55. package/fesm2022/acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs.map +1 -0
  56. package/fesm2022/{acorex-modules-auth-app-chooser.component-CbJb1P_k.mjs → acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs} +2 -2
  57. package/fesm2022/{acorex-modules-auth-app-chooser.component-CbJb1P_k.mjs.map → acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs.map} +1 -1
  58. package/fesm2022/{acorex-modules-auth-login.module-DFCB1l7W.mjs → acorex-modules-auth-login.module-B_WrZQJx.mjs} +4 -4
  59. package/fesm2022/{acorex-modules-auth-login.module-DFCB1l7W.mjs.map → acorex-modules-auth-login.module-B_WrZQJx.mjs.map} +1 -1
  60. package/fesm2022/{acorex-modules-auth-master.layout-CuKXvY0o.mjs → acorex-modules-auth-master.layout-hDbrFbwO.mjs} +2 -2
  61. package/fesm2022/{acorex-modules-auth-master.layout-CuKXvY0o.mjs.map → acorex-modules-auth-master.layout-hDbrFbwO.mjs.map} +1 -1
  62. package/fesm2022/{acorex-modules-auth-password.component-DacOjakT.mjs → acorex-modules-auth-password.component-BnT_IaqN.mjs} +2 -2
  63. package/fesm2022/{acorex-modules-auth-password.component-DacOjakT.mjs.map → acorex-modules-auth-password.component-BnT_IaqN.mjs.map} +1 -1
  64. package/fesm2022/{acorex-modules-auth-password.component-5gwz30CZ.mjs → acorex-modules-auth-password.component-DDE0M5GE.mjs} +2 -2
  65. package/fesm2022/{acorex-modules-auth-password.component-5gwz30CZ.mjs.map → acorex-modules-auth-password.component-DDE0M5GE.mjs.map} +1 -1
  66. package/fesm2022/{acorex-modules-auth-routes-D018Lg-b.mjs → acorex-modules-auth-routes-Da02kID6.mjs} +2 -2
  67. package/fesm2022/{acorex-modules-auth-routes-D018Lg-b.mjs.map → acorex-modules-auth-routes-Da02kID6.mjs.map} +1 -1
  68. package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs +271 -0
  69. package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs.map +1 -0
  70. package/fesm2022/{acorex-modules-auth-two-factor.module-DiEB7VWl.mjs → acorex-modules-auth-two-factor.module-BrDpX4X1.mjs} +2 -2
  71. package/fesm2022/{acorex-modules-auth-two-factor.module-DiEB7VWl.mjs.map → acorex-modules-auth-two-factor.module-BrDpX4X1.mjs.map} +1 -1
  72. package/fesm2022/acorex-modules-auth.mjs +1 -1
  73. package/fesm2022/acorex-modules-common-index-rvP9ISgL.mjs +717 -0
  74. package/fesm2022/acorex-modules-common-index-rvP9ISgL.mjs.map +1 -0
  75. package/fesm2022/acorex-modules-common.mjs +34 -24
  76. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  77. package/fesm2022/acorex-modules-conversation.mjs +4 -2
  78. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  79. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-_BOVaDOq.mjs → acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs} +1054 -266
  80. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs.map +1 -0
  81. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs +135 -0
  82. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs.map +1 -0
  83. package/fesm2022/{acorex-modules-document-management-details-view.component-BHcu_gYH.mjs → acorex-modules-document-management-details-view.component-BFMgAxeK.mjs} +2 -2
  84. package/fesm2022/{acorex-modules-document-management-details-view.component-BHcu_gYH.mjs.map → acorex-modules-document-management-details-view.component-BFMgAxeK.mjs.map} +1 -1
  85. package/fesm2022/{acorex-modules-document-management-drive-choose.component-WoZfDyLK.mjs → acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs} +22 -16
  86. package/fesm2022/acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs.map +1 -0
  87. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DvriE0YR.mjs → acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs} +2 -2
  88. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DvriE0YR.mjs.map → acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs.map} +1 -1
  89. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-ByWrKvZe.mjs → acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs} +2 -2
  90. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-ByWrKvZe.mjs.map → acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs.map} +1 -1
  91. package/fesm2022/acorex-modules-document-management-link-dialog.component-1iPUnhr1.mjs +70 -0
  92. package/fesm2022/acorex-modules-document-management-link-dialog.component-1iPUnhr1.mjs.map +1 -0
  93. package/fesm2022/{acorex-modules-document-management-list-view.component-B6J6Tokv.mjs → acorex-modules-document-management-list-view.component-BPkaAGjR.mjs} +2 -2
  94. package/fesm2022/{acorex-modules-document-management-list-view.component-B6J6Tokv.mjs.map → acorex-modules-document-management-list-view.component-BPkaAGjR.mjs.map} +1 -1
  95. package/fesm2022/acorex-modules-document-management-lock-dialog.component-BwKdUUcf.mjs +52 -0
  96. package/fesm2022/acorex-modules-document-management-lock-dialog.component-BwKdUUcf.mjs.map +1 -0
  97. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-Dae6RWb8.mjs → acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs} +10 -10
  98. package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs.map +1 -0
  99. package/fesm2022/acorex-modules-document-management-share-dialog.component-BiNdRpqs.mjs +143 -0
  100. package/fesm2022/acorex-modules-document-management-share-dialog.component-BiNdRpqs.mjs.map +1 -0
  101. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-BvR5OuCV.mjs +55 -0
  102. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-BvR5OuCV.mjs.map +1 -0
  103. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-TrYeB22e.mjs → acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs} +2 -2
  104. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-TrYeB22e.mjs.map → acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs.map} +1 -1
  105. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DDKdWg8I.mjs → acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs} +2 -2
  106. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DDKdWg8I.mjs.map → acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs.map} +1 -1
  107. package/fesm2022/acorex-modules-document-management-unlock-dialog.component-DkZQ84kg.mjs +37 -0
  108. package/fesm2022/acorex-modules-document-management-unlock-dialog.component-DkZQ84kg.mjs.map +1 -0
  109. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  110. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs} +30 -24
  111. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs.map +1 -0
  112. package/fesm2022/{acorex-modules-form-template-management-category.entity-BdiYytzK.mjs → acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs} +7 -3
  113. package/fesm2022/acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs.map +1 -0
  114. package/fesm2022/{acorex-modules-form-template-management-setting.provider-CoETMkEC.mjs → acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs} +20 -17
  115. package/fesm2022/acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs.map +1 -0
  116. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-0JfGxdMv.mjs → acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs} +5 -4
  117. package/fesm2022/acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs.map +1 -0
  118. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkJ3ieIg.mjs → acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs} +2 -2
  119. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkJ3ieIg.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs.map} +1 -1
  120. package/fesm2022/{acorex-modules-form-template-management-template.entity-ByE2p0Mu.mjs → acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs} +53 -33
  121. package/fesm2022/acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs.map +1 -0
  122. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CThcXWpt.mjs → acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs} +2 -2
  123. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CThcXWpt.mjs.map → acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs.map} +1 -1
  124. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  125. package/fesm2022/acorex-modules-notification-management.mjs +43 -35
  126. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  127. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-JKQwYEPq.mjs → acorex-modules-organization-management-org-chart-configuration.page-BFu7TUGC.mjs} +3 -3
  128. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-JKQwYEPq.mjs.map → acorex-modules-organization-management-org-chart-configuration.page-BFu7TUGC.mjs.map} +1 -1
  129. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-QLdDEdqL.mjs → acorex-modules-organization-management-org-chart-configuration.service-B4ohp4o5.mjs} +5 -4
  130. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-B4ohp4o5.mjs.map +1 -0
  131. package/fesm2022/{acorex-modules-organization-management-org-chart.page-C2ZtUVKI.mjs → acorex-modules-organization-management-org-chart.page-BIytyLYP.mjs} +3 -4
  132. package/fesm2022/acorex-modules-organization-management-org-chart.page-BIytyLYP.mjs.map +1 -0
  133. package/fesm2022/{acorex-modules-organization-management-setting.provider-CMDpwkG2.mjs → acorex-modules-organization-management-setting.provider-BPjFNA5E.mjs} +44 -23
  134. package/fesm2022/acorex-modules-organization-management-setting.provider-BPjFNA5E.mjs.map +1 -0
  135. package/fesm2022/acorex-modules-organization-management.mjs +6 -6
  136. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  137. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs +4746 -0
  138. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs.map +1 -0
  139. package/fesm2022/{acorex-modules-platform-management-list-version.component-C9764yzu.mjs → acorex-modules-platform-management-list-version.component-EHtlPye1.mjs} +2 -2
  140. package/fesm2022/acorex-modules-platform-management-list-version.component-EHtlPye1.mjs.map +1 -0
  141. package/fesm2022/acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs +335 -0
  142. package/fesm2022/acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs.map +1 -0
  143. package/fesm2022/acorex-modules-platform-management.mjs +1 -4866
  144. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  145. package/fesm2022/acorex-modules-security-management.mjs +18 -12
  146. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  147. package/form-template-management/lib/entities/category/category.service.d.ts +2 -2
  148. package/form-template-management/lib/entities/category/category.types.d.ts +2 -1
  149. package/form-template-management/lib/entities/template/template.service.d.ts +2 -2
  150. package/form-template-management/lib/entities/template/template.types.d.ts +38 -5
  151. package/form-template-management/lib/features/designer/template.provider.d.ts +1 -1
  152. package/form-template-management/lib/features/designer/widgets/template-picker/template.provider.d.ts +3 -3
  153. package/form-template-management/lib/setting.provider.d.ts +4 -0
  154. package/notification-management/lib/{components → features/components}/admin-notification-item/admin-notification-item.component.d.ts +1 -1
  155. package/notification-management/lib/{components → features/components}/admin-notification-panel/admin-notification-panel.component.d.ts +1 -1
  156. package/notification-management/lib/setting.provider.d.ts +4 -0
  157. package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +2 -2
  158. package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +2 -2
  159. package/organization-management/lib/setting.provider.d.ts +5 -3
  160. package/package.json +1 -1
  161. package/platform-management/index.d.ts +1 -1
  162. package/platform-management/lib/entities/app-term/index.d.ts +2 -2
  163. package/platform-management/lib/entities/app-version/index.d.ts +2 -2
  164. package/platform-management/lib/entities/index.d.ts +0 -1
  165. package/platform-management/lib/entities/promotion/index.d.ts +1 -1
  166. package/platform-management/lib/features/app-terms/check-terms.service.d.ts +11 -0
  167. package/platform-management/lib/{entities/app-term → features/app-terms}/components/notify-app/notify-app.component.d.ts +1 -1
  168. package/platform-management/lib/{entities/app-term → features/app-terms}/pages/list/list-terms.component.d.ts +2 -2
  169. package/platform-management/lib/{entities/check-version.d.ts → features/app-version/check-version.service.d.ts} +3 -4
  170. package/platform-management/lib/{entities → features}/app-version/components/list-versions/list-version.component.d.ts +1 -1
  171. package/platform-management/lib/{entities → features}/app-version/components/notify-app/notify-app.component.d.ts +1 -1
  172. package/platform-management/lib/{common → features/common}/index.d.ts +1 -1
  173. package/platform-management/lib/{common → features/common}/regional/setting.keys.d.ts +3 -1
  174. package/platform-management/lib/{common → features/common}/regional/setting.provider.d.ts +4 -1
  175. package/platform-management/lib/{entities → features}/promotion/components/promotion-slot/promotion-slot.component.d.ts +2 -2
  176. package/platform-management/lib/platform-management.module.d.ts +4 -3
  177. package/security-management/lib/entities/users/users.service.d.ts +4 -4
  178. package/security-management/lib/entities/users/users.types.d.ts +0 -4
  179. package/common/lib/features/dashboard-home/index.d.ts +0 -1
  180. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-filter.component.d.ts +0 -6
  181. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DrcL7GCj.mjs.map +0 -1
  182. package/fesm2022/acorex-modules-auth-setting.provider-DDl3OHw6.mjs +0 -59
  183. package/fesm2022/acorex-modules-auth-setting.provider-DDl3OHw6.mjs.map +0 -1
  184. package/fesm2022/acorex-modules-common-index-D90SN6SH.mjs +0 -507
  185. package/fesm2022/acorex-modules-common-index-D90SN6SH.mjs.map +0 -1
  186. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-_BOVaDOq.mjs.map +0 -1
  187. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D66KoQNb.mjs +0 -92
  188. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D66KoQNb.mjs.map +0 -1
  189. package/fesm2022/acorex-modules-document-management-drive-choose.component-WoZfDyLK.mjs.map +0 -1
  190. package/fesm2022/acorex-modules-document-management-drive.component-B3BCzdVv.mjs +0 -305
  191. package/fesm2022/acorex-modules-document-management-drive.component-B3BCzdVv.mjs.map +0 -1
  192. package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-Dae6RWb8.mjs.map +0 -1
  193. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs.map +0 -1
  194. package/fesm2022/acorex-modules-form-template-management-category.entity-BdiYytzK.mjs.map +0 -1
  195. package/fesm2022/acorex-modules-form-template-management-setting.provider-CoETMkEC.mjs.map +0 -1
  196. package/fesm2022/acorex-modules-form-template-management-template-picker.component-0JfGxdMv.mjs.map +0 -1
  197. package/fesm2022/acorex-modules-form-template-management-template.entity-ByE2p0Mu.mjs.map +0 -1
  198. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-QLdDEdqL.mjs.map +0 -1
  199. package/fesm2022/acorex-modules-organization-management-org-chart.page-C2ZtUVKI.mjs.map +0 -1
  200. package/fesm2022/acorex-modules-organization-management-setting.provider-CMDpwkG2.mjs.map +0 -1
  201. package/fesm2022/acorex-modules-platform-management-list-version.component-C9764yzu.mjs.map +0 -1
  202. /package/common/lib/features/{dashboard-home/dashboard.type.d.ts → home-dashboard/dashboard-home/home-dashboard.type.d.ts} +0 -0
  203. /package/notification-management/lib/{components → features/components}/admin-notification-slot/admin-notification-slot.component.d.ts +0 -0
  204. /package/platform-management/lib/{entities/app-term → features/app-terms}/pages/index.d.ts +0 -0
  205. /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/index.d.ts +0 -0
  206. /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/notify-new-term.workflow.d.ts +0 -0
  207. /package/platform-management/lib/{entities → features}/app-version/components/index.d.ts +0 -0
  208. /package/platform-management/lib/{entities → features}/app-version/components/slots/app-version-slot.component.d.ts +0 -0
  209. /package/platform-management/lib/{entities → features}/app-version/workflows/change-log.workflow.d.ts +0 -0
  210. /package/platform-management/lib/{entities → features}/app-version/workflows/index.d.ts +0 -0
  211. /package/platform-management/lib/{entities → features}/app-version/workflows/show-release-notes.workflow.d.ts +0 -0
  212. /package/platform-management/lib/{common → features/common}/common.module.d.ts +0 -0
  213. /package/platform-management/lib/{common → features/common}/entity.provider.d.ts +0 -0
  214. /package/platform-management/lib/{common → features/common}/regional/data-source.provider.d.ts +0 -0
  215. /package/platform-management/lib/{common → features/common}/regional/index.d.ts +0 -0
  216. /package/platform-management/lib/{common → features/common}/regional/language-slot/language-slot.component.d.ts +0 -0
  217. /package/platform-management/lib/{common → features/common}/regional/regional-store.service.d.ts +0 -0
  218. /package/platform-management/lib/{entities → features}/promotion/components/index.d.ts +0 -0
@@ -1,2 +1,2 @@
1
- export { g as AXMDocumentManagementDocumentEntityModule, k as AXMDocumentManagementDocumentTypeEntityModule, m as AXMDocumentManagementDocumentTypeEntityServiceImpl, o as AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, p as AXMDocumentManagementDocumentTypeMetaDefinitionEntityService, q as AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl, s as AXMDocumentManagementDocumentTypeMetaValueEntityModule, t as AXMDocumentManagementDocumentTypeMetaValueEntityService, u as AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl, w as AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, x as AXMDocumentManagementDocumentTypeStatusDefinitionEntityService, y as AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl, e as AXMDocumentManagementModule, h as AXMDocumentService, i as AXMDocumentServiceImpl, l as AXMDocumentTypeService, D as AXMEntityProvider, B as AXMFolderService, C as AXMFolderServiceImpl, E as AXMMenuProvider, F as AXMSearchCommandProvider, G as AXMSettingProvider, R as RootConfig, f as documentFactory, j as documentTypeFactory, n as documentTypeMetaDefinitionfactory, r as documentTypeMetaValueFactory, v as documentTypeStatusDefinitionFactory, z as folderFactory } from './acorex-modules-document-management-acorex-modules-document-management-_BOVaDOq.mjs';
1
+ export { g as AXMDocumentManagementDocumentEntityModule, k as AXMDocumentManagementDocumentTypeEntityModule, n as AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, o as AXMDocumentManagementDocumentTypeMetaDefinitionEntityService, p as AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl, r as AXMDocumentManagementDocumentTypeMetaValueEntityModule, s as AXMDocumentManagementDocumentTypeMetaValueEntityService, t as AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl, v as AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, w as AXMDocumentManagementDocumentTypeStatusDefinitionEntityService, x as AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl, e as AXMDocumentManagementModule, h as AXMDocumentService, i as AXMDocumentServiceImpl, a as AXMDocumentTypeService, l as AXMDocumentTypeServiceImpl, C as AXMEntityProvider, z as AXMFolderService, B as AXMFolderServiceImpl, D as AXMMenuProvider, E as AXMSearchCommandProvider, F as AXMSettingProvider, R as RootConfig, f as documentFactory, j as documentTypeFactory, m as documentTypeMetaDefinitionfactory, q as documentTypeMetaValueFactory, u as documentTypeStatusDefinitionFactory, y as folderFactory } from './acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs';
2
2
  //# sourceMappingURL=acorex-modules-document-management.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { AXPSessionService, AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';
2
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
- import { AXPWidgetComponent, AXPLayoutBuilderModule, createStringProperty, AXP_WIDGETS_ADVANCE_GROUP, AXP_WIDGETS_LAYOUT_GROUP } from '@acorex/platform/layout/builder';
4
+ import { AXPWidgetComponent, AXPLayoutBuilderModule, createStringProperty, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_LAYOUT_CATEGORY } from '@acorex/platform/layout/builder';
5
5
  import { AXPDesignerConnector, AXPDesignerService, AXPWidgetDesignerRendererDirective, AXPDesignerAddWidgetMiniButtonComponent, AXPDesignerMessageKeys } from '@acorex/platform/layout/designer';
6
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';
@@ -32,7 +32,7 @@ const RootConfig = {
32
32
  },
33
33
  entities: {
34
34
  category: {
35
- name: 'Category',
35
+ name: 'TemplateCategory',
36
36
  title: 't("category", { scope: "common" })',
37
37
  icon: 'fa-light fa-list'
38
38
  },
@@ -123,6 +123,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
123
123
  const AXMFormTemplateTypes = {
124
124
  Form: { id: 10, title: 'Form Template' },
125
125
  Widget: { id: 20, title: 'Widget Template' },
126
+ Report: { id: 30, title: 'Report Template' },
126
127
  };
127
128
 
128
129
  class AXMEntityProvider {
@@ -140,9 +141,9 @@ class AXMEntityProvider {
140
141
  if (moduleName == RootConfig.module.name) {
141
142
  switch (entityName) {
142
143
  case RootConfig.entities.category.name:
143
- return (await import('./acorex-modules-form-template-management-category.entity-BdiYytzK.mjs')).factory(this.injector);
144
+ return (await import('./acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs')).factory(this.injector);
144
145
  case RootConfig.entities.template.name:
145
- return (await import('./acorex-modules-form-template-management-template.entity-ByE2p0Mu.mjs')).factory(this.injector);
146
+ return (await import('./acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs')).factory(this.injector);
146
147
  }
147
148
  }
148
149
  return null;
@@ -274,7 +275,7 @@ class AXPTemplateWidgetProviderImpl {
274
275
  id: c.id,
275
276
  title: c.title,
276
277
  group: {
277
- name: c.categoryId,
278
+ name: c.categoryIds[0],
278
279
  order: 2,
279
280
  title: get(c, 'category.title') ?? 'Custom',
280
281
  },
@@ -357,14 +358,19 @@ const AXMCreateFormTemplateWorkflow = {
357
358
  context: {
358
359
  redirect: true,
359
360
  entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
361
+ },
362
+ options: {
363
+ process: {
364
+ redirect: false,
365
+ }
360
366
  }
361
367
  },
362
- nextSteps: [
363
- {
364
- conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
365
- nextStepId: 'get-template-confirmaton',
366
- },
367
- ],
368
+ // nextSteps: [
369
+ // {
370
+ // conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
371
+ // nextStepId: 'get-template-confirmaton',
372
+ // },
373
+ // ],
368
374
  },
369
375
  "get-template-confirmaton": {
370
376
  action: 'show-prompt-dialog',
@@ -454,7 +460,7 @@ class AXPTemplateWidgetProviderService {
454
460
  return null;
455
461
  }
456
462
  async chooseTemplate() {
457
- const com = await import('./acorex-modules-form-template-management-template-picker.component-0JfGxdMv.mjs').then((c) => c.AXPTemplateWidgetPickerComponent);
463
+ const com = await import('./acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs').then((c) => c.AXPTemplateWidgetPickerComponent);
458
464
  const widgets = await this.items({
459
465
  skip: 0,
460
466
  take: 100,
@@ -695,9 +701,8 @@ const AXPTemplateWidget = {
695
701
  name: 'template',
696
702
  title: 'Template',
697
703
  type: 'container',
698
- icon: 'fa-solid fa-file-invoice',
699
- group: AXP_WIDGETS_ADVANCE_GROUP,
700
- visible: true,
704
+ icon: 'fa-light fa-file-invoice',
705
+ categories: AXP_WIDGETS_ADVANCE_CATEGORY,
701
706
  options: {
702
707
  canInsert: false,
703
708
  },
@@ -716,7 +721,7 @@ const AXPTemplateWidget = {
716
721
  component: () => Promise.resolve().then(function () { return templateWidgetView_component; }).then((c) => c.AXPTemplateWidgetViewComponent),
717
722
  },
718
723
  edit: {
719
- component: () => import('./acorex-modules-form-template-management-template-widget-edit.component-BkJ3ieIg.mjs').then((c) => c.AXPTemplateWidgetEditComponent),
724
+ component: () => import('./acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs').then((c) => c.AXPTemplateWidgetEditComponent),
720
725
  },
721
726
  print: {
722
727
  component: () => Promise.resolve().then(function () { return templateWidgetView_component; }).then((c) => c.AXPTemplateWidgetViewComponent),
@@ -780,8 +785,7 @@ const AXPTemplateDesignerWidget = {
780
785
  title: "Template Designer",
781
786
  icon: "fa-solid fa-square",
782
787
  type: 'editor',
783
- group: AXP_WIDGETS_LAYOUT_GROUP,
784
- visible: false,
788
+ categories: AXP_WIDGETS_LAYOUT_CATEGORY,
785
789
  properties: [
786
790
  AXP_NAME_PROPERTY,
787
791
  AXP_DATA_PATH_PROPERTY,
@@ -804,7 +808,7 @@ class AXMOpenFormTemplateViewerAction extends AXPWorkflowAction {
804
808
  async execute(context) {
805
809
  const { id } = context.getVariable('data');
806
810
  const metadata = context.getVariable('metadata');
807
- const comp = await import('./acorex-modules-form-template-management-viewer-popup.component-CThcXWpt.mjs').then(x => x.AXPFormTemplateViewerPopupComponent);
811
+ const comp = await import('./acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs').then(x => x.AXPFormTemplateViewerPopupComponent);
808
812
  const result = await this.popupService.open(comp, {
809
813
  title: 'Form Template Viewer',
810
814
  data: {
@@ -994,8 +998,9 @@ class AXMFormTemplateManagementModule {
994
998
  {
995
999
  provide: AXP_SETTING_DEFINITION_PROVIDER,
996
1000
  useFactory: async () => {
997
- const provider = (await import('./acorex-modules-form-template-management-setting.provider-CoETMkEC.mjs')).AXMSettingProvider;
998
- return new provider();
1001
+ const injector = inject(Injector);
1002
+ const provider = (await import('./acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs')).AXMSettingProvider;
1003
+ return new provider(injector);
999
1004
  },
1000
1005
  multi: true,
1001
1006
  },
@@ -1091,8 +1096,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1091
1096
  {
1092
1097
  provide: AXP_SETTING_DEFINITION_PROVIDER,
1093
1098
  useFactory: async () => {
1094
- const provider = (await import('./acorex-modules-form-template-management-setting.provider-CoETMkEC.mjs')).AXMSettingProvider;
1095
- return new provider();
1099
+ const injector = inject(Injector);
1100
+ const provider = (await import('./acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs')).AXMSettingProvider;
1101
+ return new provider(injector);
1096
1102
  },
1097
1103
  multi: true,
1098
1104
  },
@@ -1115,4 +1121,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1115
1121
  */
1116
1122
 
1117
1123
  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 };
1118
- //# sourceMappingURL=acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs.map
1124
+ //# sourceMappingURL=acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.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: 'TemplateCategory',\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 { AXMFormTemplateCategoryEntityModel } from './category.types';\n\nexport abstract class AXMFormTemplateManagementCategoryEntityService extends AXMEntityCrudServiceImpl<\n string,\n AXMFormTemplateCategoryEntityModel\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 {\n AXMCreateFormTemplateDto,\n AXMFormTemplateDetailDto,\n AXMFormTemplateListItemDto,\n AXMUpdateFormTemplateDto,\n} from './template.types';\n\nexport abstract class AXMFormTemplateManagementTemplateEntityService extends AXMEntityCrudServiceImpl<\n string,\n AXMFormTemplateDetailDto,\n AXMFormTemplateListItemDto,\n AXMCreateFormTemplateDto,\n AXMUpdateFormTemplateDto\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 { AXPEntityCreateDto, AXPEntityDetailDto, AXPEntityListItemDto, AXPEntityUpdateDto } from '@acorex/platform/layout/entity';\n\n\nexport interface AXMCreateFormTemplateDto extends AXPEntityCreateDto {\n templateId: string;\n title: string;\n description?: string;\n typeId: number;\n categoryIds: string[];\n}\n\nexport interface AXMUpdateFormTemplateDto extends AXPEntityUpdateDto<string> {\n title: string;\n description?: string;\n typeId: number;\n template?: string;\n categoryIds: string[];\n}\n\nexport interface AXMFormTemplateDetailDto extends AXPEntityDetailDto<string> {\n title: string;\n description?: string;\n typeId: number;\n type: number;\n template: string | null;\n categoryIds: string[];\n categories: { id: string, title: string }[];\n}\n\nexport interface AXMFormTemplateListItemDto extends AXPEntityListItemDto<string> {\n title: string;\n description?: string;\n typeId: number;\n type: number;\n categoryIds: string[];\n categories: { id: string, title: string }[];\n}\n\n\nexport const AXMFormTemplateTypes = {\n Form: { id: 10, title: 'Form Template' },\n Widget: { id: 20, title: 'Widget Template' },\n Report: { id: 30, title: 'Report 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/core';\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.categoryIds[0],\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 options: {\n process: {\n redirect: false,\n }\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 { AXPWidgetCategory, AXPWidgetNode } from '@acorex/platform/layout/builder';\nimport { AXPQueryRequest } from '@acorex/platform/core';\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: AXPWidgetCategory;\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_CATEGORY, AXPWidgetConfig, 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-light fa-file-invoice',\n categories: AXP_WIDGETS_ADVANCE_CATEGORY,\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_CATEGORY, 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 categories: AXP_WIDGETS_LAYOUT_CATEGORY,\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 { inject, Injector, 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 injector = inject(Injector);\n const provider = (await import('./setting.provider')).AXMSettingProvider;\n return new provider(injector);\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;CACjC;AACY,MAAA,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,0BAA0B;AACjC,QAAA,IAAI,EAAE,wBAAwB;AAC9B,QAAA,KAAK,EAAE,CAAA,yBAAA,EAA4B,MAAM,CAAC,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Q,CAAC;gCACjC,MAAM,QAAQ,GAAG,CAAC,MAAM,OAAO,yEAAoB,CAAC,EAAE,kBAAkB;AACxE,gCAAA,OAAO,IAAI,QAAQ,CAAC,QAAQ,CAAC;6BAC9B;AACD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,mBAAmB;AAC5B,4BAAA,QAAQ,EAAE,wBAAwB;AAClC,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,uBAAuB;AAChC,4BAAA,QAAQ,EAAE,qBAAqB;AAC/B,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA;;;AC5HD;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';
2
2
  import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
3
- import { A as AXMFormTemplateManagementCategoryEntityService, R as RootConfig } from './acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs';
3
+ import { A as AXMFormTemplateManagementCategoryEntityService, R as RootConfig } from './acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs';
4
4
 
5
5
  async function factory(injector) {
6
6
  const dataService = injector.get(AXMFormTemplateManagementCategoryEntityService);
@@ -89,7 +89,11 @@ async function factory(injector) {
89
89
  },
90
90
  list: {
91
91
  execute: async (e) => {
92
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
92
+ const res = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
93
+ return {
94
+ items: res.items.map((item) => ({ ...item, hasChild: item.childCount > 0 })),
95
+ total: res.total,
96
+ };
93
97
  },
94
98
  type: AXPEntityQueryType.List,
95
99
  },
@@ -231,4 +235,4 @@ async function factory(injector) {
231
235
  }
232
236
 
233
237
  export { factory };
234
- //# sourceMappingURL=acorex-modules-form-template-management-category.entity-BdiYytzK.mjs.map
238
+ //# sourceMappingURL=acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/entities/category/category.entity.ts"],"sourcesContent":["import { AXPEntity, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\n\nimport { RootConfig } from '../../const';\nimport { AXMFormTemplateManagementCategoryEntityService } from './category.service';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMFormTemplateManagementCategoryEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.category.name,\n parentKey: 'parentId',\n source: '',\n title: RootConfig.entities.category.title,\n formats: {\n individual: `t(\"category\", { scope: \"${i18n}\" })`,\n plural: `t(\"categories\", { scope: \"${i18n}\" })`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"category\", { scope: \"common\" })`,\n },\n ],\n properties: [\n {\n name: 'title',\n title: `t(\"title\",{ scope: \"common\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n width: '400px',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'parentId',\n title: `t(\"parentId\",{ scope: \"${i18n}\" })`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,\n },\n },\n },\n },\n ],\n columns: [{ name: 'title' }],\n commands: {\n create: {\n execute: async (data: any) => {\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n const res = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });\n return {\n items: res.items.map((item) => ({ ...item, hasChild: item.childCount > 0 })),\n total: res.total,\n };\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'parentId',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'parentId',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'section',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n actions: [],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-entity',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: 't(\"deleteItems\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n {\n name: 'all',\n title: 't(\"allItem\", { scope: \"common\" })',\n fixed: true,\n columns: [],\n conditions: [],\n sorts: [],\n },\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAOO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,8CAA8C,CAAC;AAChF,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI;AACvC,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK;AACzC,QAAA,OAAO,EAAE;YACP,UAAU,EAAE,CAA2B,wBAAA,EAAA,IAAI,CAAM,IAAA,CAAA;YACjD,MAAM,EAAE,CAA6B,0BAAA,EAAA,IAAI,CAAM,IAAA,CAAA;AAC/C,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aAAA;AACF,SAAA;AACD,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,EAAE,EAAE,SAAS;AACb,gBAAA,KAAK,EAAE,CAAoC,kCAAA,CAAA;AAC5C,aAAA;AACF,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA;AACE,gBAAA,IAAI,EAAE,OAAO;AACb,gBAAA,KAAK,EAAE,CAAiC,+BAAA,CAAA;AACxC,gBA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AACX,4BAAA,UAAU,EAAE,EAAE;AACd,4BAAA,KAAK,EAAE,EAAE;AACV,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
@@ -1,59 +1,62 @@
1
1
  import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
2
- import { R as RootConfig } from './acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs';
2
+ import { R as RootConfig } from './acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs';
3
+ import { AXTranslationService } from '@acorex/core/translation';
3
4
 
4
5
  class AXMSettingProvider {
6
+ constructor(injector) {
7
+ this.injector = injector;
8
+ this.translateService = this.injector.get(AXTranslationService);
9
+ }
5
10
  async provide(context) {
11
+ const trans = async (key) => await this.translateService.translateAsync(`settings.form-template.${key}`, { scope: 'form-template-management' });
6
12
  context
7
13
  // Add Form Template Group
8
- .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)
14
+ .addGroup('form-template', await trans('title'), await trans('description'), RootConfig.module.icon)
9
15
  // Start Interface Section
10
- .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')
16
+ .addSection('designer', await trans('designer.title'), await trans('designer.description'))
11
17
  .addSetting({
12
- key: 'history-panel',
13
- title: 'Show History Panel',
18
+ key: 'designer.history-panel',
19
+ title: await trans('designer.history-panel.title'),
14
20
  scope: 'U',
15
21
  isInherited: true,
16
22
  defaultValue: false,
17
23
  widget: {
18
24
  type: AXPWidgetsCatalog.toggle,
19
25
  },
20
- description: 'Enable or disable the history panel for forms.',
26
+ description: await trans('designer.history-panel.description'),
21
27
  validationRules: [
22
28
  {
23
29
  rule: 'required',
24
30
  },
25
31
  ],
26
32
  })
27
- .endSection()
28
- // Start Saving Section
29
- .addSection('saving', 'Saving', 'Settings related to saving form data.')
30
33
  .addSetting({
31
- key: 'auto-save',
32
- title: 'Auto Save',
34
+ key: 'designer.auto-save',
35
+ title: await trans('designer.auto-save.title'),
33
36
  scope: 'U',
34
37
  isInherited: true,
35
38
  defaultValue: false,
36
39
  widget: {
37
40
  type: AXPWidgetsCatalog.toggle,
38
41
  },
39
- description: 'Automatically save form data at regular intervals.',
42
+ description: await trans('designer.auto-save.description'),
40
43
  })
41
44
  .addSetting({
42
- key: 'auto-save-interval',
43
- title: 'Auto Save Interval',
45
+ key: 'designer.auto-save-interval',
46
+ title: await trans('designer.auto-save-interval.title'),
44
47
  scope: 'U',
45
48
  isInherited: true,
46
49
  defaultValue: 1,
47
50
  widget: {
48
51
  type: AXPWidgetsCatalog.number,
49
52
  options: {
50
- visibility: `{{ context.eval('auto-save') }}`,
53
+ visibility: `{{ context.eval('designer.auto-save') }}`,
51
54
  hasClearButton: false,
52
55
  minValue: 1,
53
56
  maxValue: 60,
54
57
  }
55
58
  },
56
- description: 'Set the time interval (in minites) for auto-saving form data.',
59
+ description: await trans('designer.auto-save-interval.description'),
57
60
  })
58
61
  .endSection()
59
62
  // End Form Template Group
@@ -62,4 +65,4 @@ class AXMSettingProvider {
62
65
  }
63
66
 
64
67
  export { AXMSettingProvider };
65
- //# sourceMappingURL=acorex-modules-form-template-management-setting.provider-CoETMkEC.mjs.map
68
+ //# sourceMappingURL=acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/setting.provider.ts"],"sourcesContent":["import { AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { RootConfig } from './const';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { Injector } from '@angular/core';\n\nexport class AXMSettingProvider implements AXPSettingDefinitionProvider {\n private readonly translateService = this.injector.get(AXTranslationService);\n\n constructor(private injector: Injector) { }\n\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n const trans = async (key: string) => await this.translateService.translateAsync(`settings.form-template.${key}`, { scope: 'form-template-management' });\n\n context\n // Add Form Template Group\n .addGroup('form-template', await trans('title'), await trans('description'), RootConfig.module.icon)\n\n // Start Interface Section\n .addSection('designer', await trans('designer.title'), await trans('designer.description'))\n .addSetting({\n key: 'designer.history-panel',\n title: await trans('designer.history-panel.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: false,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n },\n description: await trans('designer.history-panel.description'),\n validationRules: [\n {\n rule: 'required',\n },\n ],\n })\n .addSetting({\n key: 'designer.auto-save',\n title: await trans('designer.auto-save.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: false,\n widget: {\n type: AXPWidgetsCatalog.toggle,\n },\n description: await trans('designer.auto-save.description'),\n })\n .addSetting({\n key: 'designer.auto-save-interval',\n title: await trans('designer.auto-save-interval.title'),\n scope: 'U',\n isInherited: true,\n defaultValue: 1,\n widget: {\n type: AXPWidgetsCatalog.number,\n options: {\n visibility: `{{ context.eval('designer.auto-save') }}`,\n hasClearButton: false,\n minValue: 1,\n maxValue: 60,\n }\n },\n description: await trans('designer.auto-save-interval.description'),\n })\n .endSection()\n\n // End Form Template Group\n .endGroup();\n }\n}\n"],"names":[],"mappings":";;;;MAMa,kBAAkB,CAAA;AAG7B,IAAA,WAAA,CAAoB,QAAkB,EAAA;QAAlB,IAAQ,CAAA,QAAA,GAAR,QAAQ;QAFX,IAAgB,CAAA,gBAAA,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC;;IAI3E,MAAM,OAAO,CAAC,OAA4C,EAAA;QACxD,MAAM,KAAK,GAAG,OAAO,GAAW,KAAK,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAA0B,uBAAA,EAAA,GAAG,CAAE,CAAA,EAAE,EAAE,KAAK,EAAE,0BAA0B,EAAE,CAAC;QAEvJ;;aAEG,QAAQ,CAAC,eA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BAAiB,CAAC,MAAM;AAC9B,gBAAA,OAAO,EAAE;AACP,oBAAA,UAAU,EAAE,CAA0C,wCAAA,CAAA;AACtD,oBAAA,cAAc,EAAE,KAAK;AACrB,oBAAA,QAAQ,EAAE,CAAC;AACX,oBAAA,QAAQ,EAAE,EAAE;AACb;AACF,aAAA;AACD,YAAA,WAAW,EAAE,MAAM,KAAK,CAAC,yCAAyC,CAAC;SACpE;AACA,aAAA,UAAU;;AAGV,aAAA,QAAQ,EAAE;;AAEhB;;;;"}
@@ -7,7 +7,8 @@ import { AXDecoratorModule } from '@acorex/components/decorators';
7
7
  import { AXBasePageComponent } from '@acorex/components/page';
8
8
  import * as i6 from '@acorex/components/search-box';
9
9
  import { AXSearchBoxModule } from '@acorex/components/search-box';
10
- import { AXPSettingService, AXPSettingScope } from '@acorex/platform/common';
10
+ import { AXPSettingService } from '@acorex/platform/common';
11
+ import { AXPPlatformScope } from '@acorex/platform/core';
11
12
  import * as i1 from '@angular/common';
12
13
  import { CommonModule } from '@angular/common';
13
14
  import * as i0 from '@angular/core';
@@ -152,7 +153,7 @@ class AXPTemplateWidgetPickerComponent extends AXBasePageComponent {
152
153
  pinnedWidgets = pinnedWidgets.filter((name) => name !== widget.id);
153
154
  }
154
155
  // Save the updated list of pinned widgets
155
- await this.settingService.scope(AXPSettingScope.User).set(this.pinnedSettingKey, pinnedWidgets);
156
+ await this.settingService.scope(AXPPlatformScope.User).set(this.pinnedSettingKey, pinnedWidgets);
156
157
  // Trigger a re-render of the widgets
157
158
  this.displayWidgets.set([...this.displayWidgets()]);
158
159
  }
@@ -165,7 +166,7 @@ class AXPTemplateWidgetPickerComponent extends AXBasePageComponent {
165
166
  }
166
167
  handleMenuItemClick(item) {
167
168
  this.selectedCategory.set(item);
168
- this.settingService.scope(AXPSettingScope.User).set(this.lastSelectedCategoryKey, item.id);
169
+ this.settingService.scope(AXPPlatformScope.User).set(this.lastSelectedCategoryKey, item.id);
169
170
  }
170
171
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetPickerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
171
172
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPTemplateWidgetPickerComponent, isStandalone: true, selector: "ng-component", inputs: { searchTerm: { classPropertyName: "searchTerm", publicName: "searchTerm", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchTerm: "searchTermChange" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-flex-col lg:ax-h-[60vh]\">\n <div class=\"ax-p-2 ax-surface-lowest ax-border-b ax-flex-none\">\n <ax-search-box look=\"fill\" placeholder=\"e.g. Button, Text, ...\" class=\"ax-sm\" [(ngModel)]=\"searchTerm\"\n [delayTime]=\"300\" [axAutoFocus]=\"true\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n <div class=\"ax-flex ax-flex-grow ax-h-full \">\n <div\n class=\"ax-flex ax-h-full ax-overflow-auto ax-w-1/3 ax-justify-start ax-items-start ax-surface-lowest ax-border-e \">\n <ax-side-menu look=\"pills\" [look]=\"'with-line-color'\" [location]=\"'start'\">\n <ng-container *ngFor=\"let item of displayCategories()\" [ngTemplateOutlet]=\"recursiveMenu\"\n [ngTemplateOutletContext]=\"{ item: item }\">\n </ng-container>\n </ax-side-menu>\n <ng-template #recursiveMenu let-item=\"item\">\n <ax-side-menu-item [active]=\"item ===selectedCategory()\" (onClick)=\"handleMenuItemClick(item)\"\n [isCollapsed]=\"!isExpanded(item)\">\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-folder ax-text-yellow-500 fa-fw\"></ax-icon>\n </ax-prefix>\n <span>{{ item.text | translate | async }}</span>\n <ng-container *ngIf=\"item.hasChild\">\n <ng-container *ngFor=\"let child of item.children\" [ngTemplateOutlet]=\"recursiveMenu\"\n [ngTemplateOutletContext]=\"{ item: child }\">\n </ng-container>\n </ng-container>\n </ax-side-menu-item>\n </ng-template>\n </div>\n <div class=\"ax-flex ax-h-full ax-overflow-auto ax-flex-col ax-w-2/3 \">\n <div class=\"ax-flex ax-flex-col ax-p-4\">\n <ng-template #itemTpl let-w>\n <div (click)=\"handleClick($event, w)\"\n class=\"ax-py-2 ax-px-3 ax-rounded-md ax-flex ax-gap-3 ax-items-center ax-group hover:ax-bg-primary-100 dark:hover:ax-bg-primary-800 ax-cursor-pointer\"\n [class.ax-bg-primary-100]=\"isWidgetSelected(w)\">\n <div\n class=\"ax-w-10 ax-h-10 ax-flex ax-items-center ax-justify-center ax-rounded-md ax-border ax-border-neutral-200 ax-text-neutral-500 ax-bg-on-surface group-hover:ax-bg-primary-200\"\n [class.ax-bg-primary-200]=\"isWidgetSelected(w)\">\n <i [ngClass]=\"w.icon\" class=\"ax-text-lg group-hover:ax-text-primary-700 ax-text-on-surface-fore\"\n [class.ax-text-primary-700]=\"isWidgetSelected(w)\"></i>\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-1 ax-flex-1\">\n <div class=\"ax-flex ax-items-center ax-gap-2\">\n <div class=\"ax-font-semibold ax-text-sm\">{{ w.title }}</div>\n <div (click)=\"handlePinClick($event, w)\">\n @if (w.pinned) {\n <i class=\"fa-solid fa-thumbtack ax-text-sm ax-text-neutral-500 ax-rotate-45\"></i>\n } @else {\n <i\n class=\"fa-light fa-thumbtack ax-text-sm ax-text-neutral-500 ax-rotate-45 ax-invisible group-hover:ax-visible\"></i>\n }\n </div>\n </div>\n <span class=\"ax-text-xs ax-text-neutral-400 ax-truncate\">\n {{ w.description }}\n </span>\n </div>\n </div>\n </ng-template>\n <div class=\"ax-grid ax-grid-cols-2 ax-gap-2\">\n @for(w of pinnedList();track $index) {\n <ng-container *ngTemplateOutlet=\"itemTpl; context: { $implicit: w }\"></ng-container>\n }\n </div>\n @if(pinnedList().length) {\n <hr class=\"ax-my-4 ax-border-dashed\" />\n }\n <div class=\"ax-grid ax-grid-cols-2 ax-gap-2\">\n @for(w of regularList();track $index) {\n <ng-container *ngTemplateOutlet=\"itemTpl; context: { $implicit: w }\"></ng-container>\n }\n </div>\n </div>\n </div>\n </div>\n</div>\n\n@if(selectedWidgets().length) {\n<ax-footer>\n <ax-suffix>\n <ax-button look=\"solid\" color=\"primary\" text=\"{{ selectedWidgets().length }} Selected\"\n (onClick)=\"handleConfirmSelection()\"></ax-button>\n </ax-suffix>\n</ax-footer>\n}", styles: [".selected-widget{border-width:1px;--tw-border-opacity: 1;border-color:rgba(var(--ax-sys-color-primary-500),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-primary-100),var(--tw-bg-opacity, 1))}.selected-widget i{--tw-text-opacity: 1;color:rgba(var(--ax-sys-color-primary-500),var(--tw-text-opacity, 1))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type:
@@ -188,4 +189,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
188
189
  }] });
189
190
 
190
191
  export { AXPTemplateWidgetPickerComponent };
191
- //# sourceMappingURL=acorex-modules-form-template-management-template-picker.component-0JfGxdMv.mjs.map
192
+ //# sourceMappingURL=acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template-picker/template-picker.component.ts","../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template-picker/template-picker.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCommonModule } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXSearchBoxModule } from '@acorex/components/search-box';\nimport { AXTabStripChangedEvent } from '@acorex/components/tabs';\nimport { AXPSettingService } from '@acorex/platform/common';\nimport { AXPPlatformScope } from '@acorex/platform/core';\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, inject, model, signal, ViewEncapsulation } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { orderBy } from 'lodash-es';\nimport { AXPTemplateWidgetListItem } from './template.provider';\nimport { AXSideMenuModule } from '@acorex/components/side-menu';\nimport { AXTranslationModule } from '@acorex/core/translation';\n\nexport interface AXPDisplayWidgetProvided extends AXPTemplateWidgetListItem {\n pinned: boolean;\n}\n\nexport interface AXPCategoryDisplayModel {\n id: string;\n text: string;\n parentId?: string;\n hasChild: boolean;\n children?: AXPCategoryDisplayModel[];\n}\n\n@Component({\n imports: [\n CommonModule,\n FormsModule,\n //\n AXCommonModule,\n AXButtonModule,\n AXDecoratorModule,\n AXSearchBoxModule,\n AXSideMenuModule,\n AXTranslationModule\n ],\n templateUrl: './template-picker.component.html',\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./template-picker.component.scss']\n})\nexport class AXPTemplateWidgetPickerComponent extends AXBasePageComponent {\n private settingService = inject(AXPSettingService);\n private readonly lastSelectedCategoryKey = 'forms:templates:picker:lastSelectedCategory';\n\n protected override async ngOnInit() {\n super.ngOnInit();\n const pinnedWidgets = (await this.settingService.get<string[]>(this.pinnedSettingKey)) || [];\n this.displayWidgets.set(this.widgets.map((c) => ({ ...c, pinned: pinnedWidgets.includes(c.id), icon: c.icon ?? 'fa-solid fa-file-invoice' })));\n\n const lastSelectedCategoryId = await this.settingService.get<string>(this.lastSelectedCategoryKey);\n if (lastSelectedCategoryId) {\n const findCategory = (categories: AXPCategoryDisplayModel[], id: string): AXPCategoryDisplayModel | null => {\n for (const category of categories) {\n if (category.id === id) return category;\n if (category.children) {\n const found = findCategory(category.children, id);\n if (found) return found;\n }\n }\n return null;\n };\n const lastSelectedCategory = findCategory(this.displayCategories(), lastSelectedCategoryId);\n if (lastSelectedCategory) {\n this.selectedCategory.set(lastSelectedCategory);\n }\n }\n }\n\n protected isExpanded(item: AXPCategoryDisplayModel): boolean {\n const selectedCategory = this.selectedCategory();\n if (!selectedCategory) return false;\n\n const isParent = (category: AXPCategoryDisplayModel, targetId: string): boolean => {\n if (category.id === targetId) return true;\n if (category.children) {\n return category.children.some(child => isParent(child, targetId));\n }\n return false;\n };\n\n return isParent(item, selectedCategory.id);\n }\n\n\n private readonly pinnedSettingKey = 'forms:templates:picker:pinned';\n\n protected searchTerm = model('');\n\n // Signals\n private widgets: AXPDisplayWidgetProvided[] = [];\n private displayWidgets = signal<AXPDisplayWidgetProvided[]>([]);\n\n // Signal to track selected widgets\n protected selectedWidgets = signal<AXPDisplayWidgetProvided[]>([]);\n\n // Computed for filtered and ordered widget list\n private orderedList = computed(() => {\n const search = this.searchTerm().toLowerCase();\n const selectedCategory = this.selectedCategory();\n const selectedCategoryId = selectedCategory ? selectedCategory.id : null;\n\n const filterByCategory = (widget: AXPDisplayWidgetProvided) => {\n if (!selectedCategoryId) return true;\n const categoryIds = [selectedCategoryId, ...(selectedCategory?.children?.map(c => c.id) || [])];\n return categoryIds.includes(widget.group.name);\n };\n\n return orderBy(\n this.displayWidgets().filter((w) => {\n const matchesCategory = filterByCategory(w);\n const matchesSearch =\n !search || w.title.toLowerCase().includes(search) || w.description?.toLowerCase().includes(search);\n return matchesCategory && matchesSearch;\n }),\n ['pinned', 'title'],\n ['desc', 'asc']\n );\n });\n\n // Pinned and regular lists\n protected pinnedList = computed(() => this.orderedList().filter((c) => c.pinned));\n protected regularList = computed(() => this.orderedList().filter((c) => !c.pinned));\n\n\n protected currentTabIndex = signal(0);\n\n\n // protected override async ngOnInit() {\n // super.ngOnInit();\n // const pinnedWidgets = (await this.settingService.get<string[]>(this.pinnedSettingKey)) || [];\n // this.displayWidgets.set(this.widgets.map((c) => ({ ...c, pinned: pinnedWidgets.includes(c.id), icon: c.icon ?? 'fa-solid fa-file-invoice' })));\n // }\n\n protected handleTabChange(event: AXTabStripChangedEvent): void {\n const indx = event.index;\n if (this.currentTabIndex() != indx) {\n this.currentTabIndex.set(indx);\n }\n }\n\n protected handleClick(event: MouseEvent, widget: AXPDisplayWidgetProvided) {\n if (event.ctrlKey) {\n const currentSelection = this.selectedWidgets();\n const isAlreadySelected = currentSelection.some((w) => w === widget);\n\n if (isAlreadySelected) {\n // Deselect widget if already selected\n this.selectedWidgets.set(currentSelection.filter((w) => w !== widget));\n } else {\n // Add widget to selection\n this.selectedWidgets.set([...currentSelection, widget]);\n }\n } else {\n // If CTRL is not pressed, select only the clicked widget\n this.close({ widgets: [widget] });\n }\n }\n\n protected async handlePinClick(e: MouseEvent, widget: AXPDisplayWidgetProvided) {\n e.stopPropagation();\n widget.pinned = !widget.pinned;\n // Get the current list of pinned widgets from settings\n let pinnedWidgets = (await this.settingService.get<string[]>(this.pinnedSettingKey)) || [];\n\n // Update the list of pinned widgets based on the pinned status\n if (widget.pinned) {\n if (!pinnedWidgets.includes(widget.id)) {\n pinnedWidgets.push(widget.id);\n }\n } else {\n pinnedWidgets = pinnedWidgets.filter((name) => name !== widget.id);\n }\n\n // Save the updated list of pinned widgets\n await this.settingService.scope(AXPPlatformScope.User).set(this.pinnedSettingKey, pinnedWidgets);\n\n // Trigger a re-render of the widgets\n this.displayWidgets.set([...this.displayWidgets()]);\n }\n\n // Check if a widget is selected\n protected isWidgetSelected(widget: AXPDisplayWidgetProvided): boolean {\n return this.selectedWidgets().includes(widget);\n }\n\n protected handleConfirmSelection(): void {\n this.close({ widgets: this.selectedWidgets() });\n }\n\n\n //#region Category Tree\n\n private categories: any[] = [];\n\n protected displayCategories = computed<AXPCategoryDisplayModel[]>(() => {\n const map = (node: any): AXPCategoryDisplayModel => {\n const children = this.categories.filter(i => i.parentId == node.id).map(map);\n return {\n id: node.id,\n text: node.title,\n parentId: node.parentId,\n hasChild: children.length > 0,\n children: children\n } as AXPCategoryDisplayModel\n }\n return this.categories.filter(c => !c.parentId).map(map);\n });\n\n\n protected selectedCategory = signal<AXPCategoryDisplayModel | null>(null);\n\n protected handleMenuItemClick(item: AXPCategoryDisplayModel) {\n this.selectedCategory.set(item);\n this.settingService.scope(AXPPlatformScope.User).set(this.lastSelectedCategoryKey, item.id);\n }\n\n //#end region\n}\n","<div class=\"ax-flex ax-flex-col lg:ax-h-[60vh]\">\n <div class=\"ax-p-2 ax-surface-lowest ax-border-b ax-flex-none\">\n <ax-search-box look=\"fill\" placeholder=\"e.g. Button, Text, ...\" class=\"ax-sm\" [(ngModel)]=\"searchTerm\"\n [delayTime]=\"300\" [axAutoFocus]=\"true\">\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n <div class=\"ax-flex ax-flex-grow ax-h-full \">\n <div\n class=\"ax-flex ax-h-full ax-overflow-auto ax-w-1/3 ax-justify-start ax-items-start ax-surface-lowest ax-border-e \">\n <ax-side-menu look=\"pills\" [look]=\"'with-line-color'\" [location]=\"'start'\">\n <ng-container *ngFor=\"let item of displayCategories()\" [ngTemplateOutlet]=\"recursiveMenu\"\n [ngTemplateOutletContext]=\"{ item: item }\">\n </ng-container>\n </ax-side-menu>\n <ng-template #recursiveMenu let-item=\"item\">\n <ax-side-menu-item [active]=\"item ===selectedCategory()\" (onClick)=\"handleMenuItemClick(item)\"\n [isCollapsed]=\"!isExpanded(item)\">\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-folder ax-text-yellow-500 fa-fw\"></ax-icon>\n </ax-prefix>\n <span>{{ item.text | translate | async }}</span>\n <ng-container *ngIf=\"item.hasChild\">\n <ng-container *ngFor=\"let child of item.children\" [ngTemplateOutlet]=\"recursiveMenu\"\n [ngTemplateOutletContext]=\"{ item: child }\">\n </ng-container>\n </ng-container>\n </ax-side-menu-item>\n </ng-template>\n </div>\n <div class=\"ax-flex ax-h-full ax-overflow-auto ax-flex-col ax-w-2/3 \">\n <div class=\"ax-flex ax-flex-col ax-p-4\">\n <ng-template #itemTpl let-w>\n <div (click)=\"handleClick($event, w)\"\n class=\"ax-py-2 ax-px-3 ax-rounded-md ax-flex ax-gap-3 ax-items-center ax-group hover:ax-bg-primary-100 dark:hover:ax-bg-primary-800 ax-cursor-pointer\"\n [class.ax-bg-primary-100]=\"isWidgetSelected(w)\">\n <div\n class=\"ax-w-10 ax-h-10 ax-flex ax-items-center ax-justify-center ax-rounded-md ax-border ax-border-neutral-200 ax-text-neutral-500 ax-bg-on-surface group-hover:ax-bg-primary-200\"\n [class.ax-bg-primary-200]=\"isWidgetSelected(w)\">\n <i [ngClass]=\"w.icon\" class=\"ax-text-lg group-hover:ax-text-primary-700 ax-text-on-surface-fore\"\n [class.ax-text-primary-700]=\"isWidgetSelected(w)\"></i>\n </div>\n <div class=\"ax-flex ax-flex-col ax-gap-1 ax-flex-1\">\n <div class=\"ax-flex ax-items-center ax-gap-2\">\n <div class=\"ax-font-semibold ax-text-sm\">{{ w.title }}</div>\n <div (click)=\"handlePinClick($event, w)\">\n @if (w.pinned) {\n <i class=\"fa-solid fa-thumbtack ax-text-sm ax-text-neutral-500 ax-rotate-45\"></i>\n } @else {\n <i\n class=\"fa-light fa-thumbtack ax-text-sm ax-text-neutral-500 ax-rotate-45 ax-invisible group-hover:ax-visible\"></i>\n }\n </div>\n </div>\n <span class=\"ax-text-xs ax-text-neutral-400 ax-truncate\">\n {{ w.description }}\n </span>\n </div>\n </div>\n </ng-template>\n <div class=\"ax-grid ax-grid-cols-2 ax-gap-2\">\n @for(w of pinnedList();track $index) {\n <ng-container *ngTemplateOutlet=\"itemTpl; context: { $implicit: w }\"></ng-container>\n }\n </div>\n @if(pinnedList().length) {\n <hr class=\"ax-my-4 ax-border-dashed\" />\n }\n <div class=\"ax-grid ax-grid-cols-2 ax-gap-2\">\n @for(w of regularList();track $index) {\n <ng-container *ngTemplateOutlet=\"itemTpl; context: { $implicit: w }\"></ng-container>\n }\n </div>\n </div>\n </div>\n </div>\n</div>\n\n@if(selectedWidgets().length) {\n<ax-footer>\n <ax-suffix>\n <ax-button look=\"solid\" color=\"primary\" text=\"{{ selectedWidgets().length }} Selected\"\n (onClick)=\"handleConfirmSelection()\"></ax-button>\n </ax-suffix>\n</ax-footer>\n}"],"names":["i8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4CM,MAAO,gCAAiC,SAAQ,mBAAmB,CAAA;AAhBzE,IAAA,WAAA,GAAA;;AAiBU,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;QACjC,IAAuB,CAAA,uBAAA,GAAG,6CAA6C;QA0CvE,IAAgB,CAAA,gBAAA,GAAG,+BAA+B;AAEzD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,EAAE,CAAC;;QAGxB,IAAO,CAAA,OAAA,GAA+B,EAAE;AACxC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAA6B,EAAE,CAAC;;AAGrD,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAA6B,EAAE,CAAC;;AAG1D,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;YAClC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE;AAC9C,YAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE;AA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