@acorex/modules 19.2.11 → 19.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/application-management/lib/application-management.service.d.ts +1 -1
  2. package/application-management/lib/application-management.types.d.ts +1 -1
  3. package/application-management/lib/services/application-management.service.d.ts +1 -1
  4. package/application-management/lib/services/application-module-management.service.d.ts +1 -1
  5. package/application-management/lib/services/edition-management.service.d.ts +1 -1
  6. package/application-management/lib/services/entity-management.service.d.ts +1 -1
  7. package/application-management/lib/services/feature-management.service.d.ts +1 -1
  8. package/application-management/lib/services/module-management.service.d.ts +1 -1
  9. package/application-management/lib/services/permission-management.service.d.ts +1 -1
  10. package/application-management/lib/services/property-management.service.d.ts +1 -1
  11. package/auth/lib/auth.module.d.ts +2 -3
  12. package/auth/lib/pages/login/password/password.component.d.ts +1 -0
  13. package/conversation/lib/entities/chat/chat.service.d.ts +1 -1
  14. package/conversation/lib/entities/chat/chat.type.d.ts +1 -1
  15. package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +1 -1
  16. package/conversation/lib/entities/comments/comments.service.d.ts +1 -1
  17. package/conversation/lib/entities/comments/comments.type.d.ts +1 -1
  18. package/document-management/index.d.ts +1 -0
  19. package/document-management/lib/const.d.ts +6 -5
  20. package/document-management/lib/document-management.module.d.ts +3 -1
  21. package/document-management/lib/entities/document/document.service.d.ts +8 -5
  22. package/document-management/lib/entities/document/document.types.d.ts +2 -1
  23. package/document-management/lib/entities/document-type/document-type.service.d.ts +1 -1
  24. package/document-management/lib/entities/document-type/document-type.types.d.ts +16 -1
  25. package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.service.d.ts +1 -1
  26. package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.types.d.ts +1 -1
  27. package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.service.d.ts +1 -1
  28. package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.types.d.ts +1 -1
  29. package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.service.d.ts +1 -1
  30. package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.types.d.ts +1 -1
  31. package/document-management/lib/entities/folder/folder.entity.d.ts +3 -0
  32. package/document-management/lib/entities/folder/folder.service.d.ts +12 -0
  33. package/document-management/lib/entities/folder/folder.types.d.ts +37 -0
  34. package/document-management/lib/entities/folder/index.d.ts +3 -0
  35. package/document-management/lib/entities/index.d.ts +6 -0
  36. package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +14 -0
  37. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +74 -0
  38. package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +57 -0
  39. package/document-management/lib/features/document-explorer/index.d.ts +3 -0
  40. package/document-management/lib/features/document-explorer/settings.keys.d.ts +5 -0
  41. package/document-management/lib/features/drive/drive.component.d.ts +200 -0
  42. package/document-management/lib/features/drive/index.d.ts +3 -0
  43. package/document-management/lib/features/file-type/file-type.module.d.ts +6 -0
  44. package/document-management/lib/features/file-type/index.d.ts +2 -0
  45. package/document-management/lib/features/file-type/providers/archive.file.d.ts +4 -0
  46. package/document-management/lib/features/file-type/providers/audio.file.d.ts +4 -0
  47. package/document-management/lib/features/file-type/providers/code.file.d.ts +4 -0
  48. package/document-management/lib/features/file-type/providers/document.file.d.ts +4 -0
  49. package/document-management/lib/features/file-type/providers/image.file.d.ts +4 -0
  50. package/document-management/lib/features/file-type/providers/index.d.ts +6 -0
  51. package/document-management/lib/features/file-type/providers/video.file.d.ts +4 -0
  52. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-column.component.d.ts +6 -0
  53. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-designer.component.d.ts +6 -0
  54. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-edit.component.d.ts +18 -0
  55. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-view.component.d.ts +6 -0
  56. package/document-management/lib/features/file-type/widgets/file-type-extension/file-type-extension-widget.config.d.ts +7 -0
  57. package/document-management/lib/features/file-type/widgets/file-type-extension/index.d.ts +5 -0
  58. package/document-management/lib/features/file-type/widgets/index.d.ts +1 -0
  59. package/document-management/lib/features/shared/document-manager.service.d.ts +130 -0
  60. package/document-management/lib/features/shared/document-manager.types.d.ts +21 -0
  61. package/document-management/lib/features/shared/index.d.ts +1 -0
  62. package/document-management/lib/menu.provider.d.ts +1 -0
  63. package/fesm2022/acorex-modules-application-management.mjs +3 -3
  64. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  65. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-D1qxdECo.mjs → acorex-modules-auth-acorex-modules-auth-CZ_nTBkL.mjs} +53 -133
  66. package/fesm2022/acorex-modules-auth-acorex-modules-auth-CZ_nTBkL.mjs.map +1 -0
  67. package/fesm2022/{acorex-modules-auth-app-chooser.component-8GCTwtb2.mjs → acorex-modules-auth-app-chooser.component-CGSygSjS.mjs} +2 -2
  68. package/fesm2022/{acorex-modules-auth-app-chooser.component-8GCTwtb2.mjs.map → acorex-modules-auth-app-chooser.component-CGSygSjS.mjs.map} +1 -1
  69. package/fesm2022/{acorex-modules-auth-login.module-DR3QLEM-.mjs → acorex-modules-auth-login.module-B1sF3B_O.mjs} +4 -4
  70. package/fesm2022/{acorex-modules-auth-login.module-DR3QLEM-.mjs.map → acorex-modules-auth-login.module-B1sF3B_O.mjs.map} +1 -1
  71. package/fesm2022/{acorex-modules-auth-master.layout-BMJ5mW63.mjs → acorex-modules-auth-master.layout-CK4nyS8D.mjs} +2 -2
  72. package/fesm2022/{acorex-modules-auth-master.layout-BMJ5mW63.mjs.map → acorex-modules-auth-master.layout-CK4nyS8D.mjs.map} +1 -1
  73. package/fesm2022/{acorex-modules-auth-password.component-avrMwyr8.mjs → acorex-modules-auth-password.component-DC_zi8bV.mjs} +6 -6
  74. package/fesm2022/{acorex-modules-auth-password.component-avrMwyr8.mjs.map → acorex-modules-auth-password.component-DC_zi8bV.mjs.map} +1 -1
  75. package/fesm2022/acorex-modules-auth-password.component-DqvmIMDR.mjs +127 -0
  76. package/fesm2022/acorex-modules-auth-password.component-DqvmIMDR.mjs.map +1 -0
  77. package/fesm2022/{acorex-modules-auth-routes-BPYBFOxg.mjs → acorex-modules-auth-routes-DwHgPrDP.mjs} +2 -2
  78. package/fesm2022/{acorex-modules-auth-routes-BPYBFOxg.mjs.map → acorex-modules-auth-routes-DwHgPrDP.mjs.map} +1 -1
  79. package/fesm2022/{acorex-modules-auth-two-factor-code.component-YhAHhKIr.mjs → acorex-modules-auth-two-factor-code.component-DrV3UBuT.mjs} +5 -5
  80. package/fesm2022/{acorex-modules-auth-two-factor-code.component-YhAHhKIr.mjs.map → acorex-modules-auth-two-factor-code.component-DrV3UBuT.mjs.map} +1 -1
  81. package/fesm2022/{acorex-modules-auth-two-factor.module-B_V_nQN_.mjs → acorex-modules-auth-two-factor.module-BatKQRdJ.mjs} +3 -3
  82. package/fesm2022/{acorex-modules-auth-two-factor.module-B_V_nQN_.mjs.map → acorex-modules-auth-two-factor.module-BatKQRdJ.mjs.map} +1 -1
  83. package/fesm2022/acorex-modules-auth.mjs +1 -1
  84. package/fesm2022/acorex-modules-conversation.mjs +3 -3
  85. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  86. package/fesm2022/acorex-modules-document-management-drive.component-bjnFFaLS.mjs +951 -0
  87. package/fesm2022/acorex-modules-document-management-drive.component-bjnFFaLS.mjs.map +1 -0
  88. package/fesm2022/acorex-modules-document-management.mjs +1596 -331
  89. package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
  90. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-szDh56Bk.mjs} +174 -64
  91. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-szDh56Bk.mjs.map +1 -0
  92. package/fesm2022/{acorex-modules-form-template-management-category.entity-D00XZd7o.mjs → acorex-modules-form-template-management-category.entity-BZXqnhwK.mjs} +4 -17
  93. package/fesm2022/acorex-modules-form-template-management-category.entity-BZXqnhwK.mjs.map +1 -0
  94. package/fesm2022/{acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs → acorex-modules-form-template-management-designer.page-Bd_bZ_7p.mjs} +4 -3
  95. package/fesm2022/acorex-modules-form-template-management-designer.page-Bd_bZ_7p.mjs.map +1 -0
  96. package/fesm2022/{acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs → acorex-modules-form-template-management-setting.provider-o2_TSVfK.mjs} +2 -2
  97. package/fesm2022/{acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs.map → acorex-modules-form-template-management-setting.provider-o2_TSVfK.mjs.map} +1 -1
  98. package/fesm2022/acorex-modules-form-template-management-template-picker.component-BxOdV3y2.mjs +191 -0
  99. package/fesm2022/acorex-modules-form-template-management-template-picker.component-BxOdV3y2.mjs.map +1 -0
  100. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs → acorex-modules-form-template-management-template-widget-edit.component--MGoF75g.mjs} +32 -49
  101. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component--MGoF75g.mjs.map +1 -0
  102. package/fesm2022/{acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs → acorex-modules-form-template-management-template.entity-JvWcqjzi.mjs} +3 -3
  103. package/fesm2022/acorex-modules-form-template-management-template.entity-JvWcqjzi.mjs.map +1 -0
  104. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs → acorex-modules-form-template-management-viewer-popup.component-Bllb70Ih.mjs} +2 -2
  105. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs.map → acorex-modules-form-template-management-viewer-popup.component-Bllb70Ih.mjs.map} +1 -1
  106. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  107. package/fesm2022/acorex-modules-notification-management.mjs +10 -3
  108. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  109. package/fesm2022/{acorex-modules-organization-management-add-item.component-PhQRBTtI.mjs → acorex-modules-organization-management-add-item.component-Y-i6xDkl.mjs} +2 -2
  110. package/fesm2022/{acorex-modules-organization-management-add-item.component-PhQRBTtI.mjs.map → acorex-modules-organization-management-add-item.component-Y-i6xDkl.mjs.map} +1 -1
  111. package/fesm2022/acorex-modules-organization-management-branch.entity-DhObzxhh.mjs +344 -0
  112. package/fesm2022/acorex-modules-organization-management-branch.entity-DhObzxhh.mjs.map +1 -0
  113. package/fesm2022/{acorex-modules-organization-management-employee.entity-PwlBjkYo.mjs → acorex-modules-organization-management-employee.entity-DcJCJN3R.mjs} +4 -4
  114. package/fesm2022/acorex-modules-organization-management-employee.entity-DcJCJN3R.mjs.map +1 -0
  115. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-DjzqBdaS.mjs → acorex-modules-organization-management-org-chart-configuration.page-DO8wSZqZ.mjs} +2 -2
  116. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-DjzqBdaS.mjs.map → acorex-modules-organization-management-org-chart-configuration.page-DO8wSZqZ.mjs.map} +1 -1
  117. package/fesm2022/{acorex-modules-organization-management-org-chart.page-BSh18amn.mjs → acorex-modules-organization-management-org-chart.page-DXyAFXwE.mjs} +17 -11
  118. package/fesm2022/acorex-modules-organization-management-org-chart.page-DXyAFXwE.mjs.map +1 -0
  119. package/fesm2022/{acorex-modules-organization-management-position.entity-B7ceEEbu.mjs → acorex-modules-organization-management-position.entity-D17Yembh.mjs} +2 -2
  120. package/fesm2022/acorex-modules-organization-management-position.entity-D17Yembh.mjs.map +1 -0
  121. package/fesm2022/{acorex-modules-organization-management-branch.entity-CxxFiBPd.mjs → acorex-modules-organization-management-role.entity-Cmbyle8P.mjs} +36 -54
  122. package/fesm2022/acorex-modules-organization-management-role.entity-Cmbyle8P.mjs.map +1 -0
  123. package/fesm2022/{acorex-modules-organization-management-setting.provider-eLv_qnmE.mjs → acorex-modules-organization-management-setting.provider-CAU8Bve9.mjs} +7 -7
  124. package/fesm2022/acorex-modules-organization-management-setting.provider-CAU8Bve9.mjs.map +1 -0
  125. package/fesm2022/acorex-modules-organization-management-team.entity-DcurAtLd.mjs +238 -0
  126. package/fesm2022/acorex-modules-organization-management-team.entity-DcurAtLd.mjs.map +1 -0
  127. package/fesm2022/acorex-modules-organization-management.mjs +200 -105
  128. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  129. package/fesm2022/acorex-modules-platform-management-list-version.component-CoZBz85x.mjs +59 -0
  130. package/fesm2022/acorex-modules-platform-management-list-version.component-CoZBz85x.mjs.map +1 -0
  131. package/fesm2022/acorex-modules-platform-management.mjs +867 -610
  132. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  133. package/fesm2022/acorex-modules-scheduler-job-management.mjs +2 -2
  134. package/fesm2022/acorex-modules-scheduler-job-management.mjs.map +1 -1
  135. package/fesm2022/acorex-modules-security-management.mjs +61 -29
  136. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  137. package/fesm2022/acorex-modules-text-template-management.mjs +324 -6
  138. package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
  139. package/form-template-management/lib/entities/category/category.service.d.ts +1 -1
  140. package/form-template-management/lib/entities/category/category.types.d.ts +2 -1
  141. package/form-template-management/lib/entities/template/template.service.d.ts +1 -1
  142. package/form-template-management/lib/entities/template/template.types.d.ts +1 -1
  143. package/form-template-management/lib/features/designer/designer.page.d.ts +1 -0
  144. package/form-template-management/lib/features/designer/template.provider.d.ts +1 -1
  145. package/form-template-management/lib/features/designer/widgets/template/template-widget-edit.component.d.ts +0 -4
  146. package/form-template-management/lib/features/designer/widgets/template-designer/template-designer-widget-view.component.d.ts +1 -0
  147. package/form-template-management/lib/features/designer/widgets/template-picker/template-picker.component.d.ts +14 -4
  148. package/form-template-management/lib/features/designer/widgets/template-picker/template.provider.d.ts +2 -1
  149. package/form-template-management/lib/features/designer/workflows/design-template.workflow.d.ts +1 -8
  150. package/form-template-management/lib/features/designer/workflows/workflow.actions.d.ts +17 -0
  151. package/form-template-management/lib/menu.provider.d.ts +1 -0
  152. package/notification-management/lib/entities/channel/channel.service.d.ts +1 -1
  153. package/notification-management/lib/entities/channel/channel.types.d.ts +2 -1
  154. package/notification-management/lib/entities/notification/notification.service.d.ts +1 -1
  155. package/notification-management/lib/entities/notification/notification.types.d.ts +1 -1
  156. package/notification-management/lib/entities/template/template.service.d.ts +1 -1
  157. package/notification-management/lib/entities/template/template.types.d.ts +1 -1
  158. package/notification-management/lib/menu.provider.d.ts +1 -0
  159. package/organization-management/lib/const.d.ts +3 -0
  160. package/organization-management/lib/entities/branch/branch.service.d.ts +1 -1
  161. package/organization-management/lib/entities/branch/branch.types.d.ts +1 -1
  162. package/organization-management/lib/entities/chart/chart.service.d.ts +1 -1
  163. package/organization-management/lib/entities/chart/chart.types.d.ts +1 -1
  164. package/organization-management/lib/entities/company/company.service.d.ts +1 -1
  165. package/organization-management/lib/entities/company/company.types.d.ts +1 -1
  166. package/organization-management/lib/entities/department/department.service.d.ts +1 -1
  167. package/organization-management/lib/entities/department/department.types.d.ts +1 -1
  168. package/organization-management/lib/entities/division/division.service.d.ts +1 -1
  169. package/organization-management/lib/entities/division/division.types.d.ts +1 -1
  170. package/organization-management/lib/entities/employee/employee.service.d.ts +1 -1
  171. package/organization-management/lib/entities/employee/employee.types.d.ts +1 -1
  172. package/organization-management/lib/entities/employment-type/employment-type.service.d.ts +1 -1
  173. package/organization-management/lib/entities/employment-type/employment-type.types.d.ts +1 -1
  174. package/organization-management/lib/entities/index.d.ts +6 -4
  175. package/organization-management/lib/entities/position/position.service.d.ts +1 -1
  176. package/organization-management/lib/entities/position/position.types.d.ts +1 -1
  177. package/organization-management/lib/entities/role/index.d.ts +3 -0
  178. package/organization-management/lib/entities/role/role.entity.d.ts +3 -0
  179. package/organization-management/lib/entities/role/role.module.d.ts +6 -0
  180. package/organization-management/lib/entities/role/role.service.d.ts +10 -0
  181. package/organization-management/lib/entities/role/role.types.d.ts +5 -0
  182. package/organization-management/lib/entities/team/index.d.ts +3 -0
  183. package/organization-management/lib/entities/team/team.entity.d.ts +3 -0
  184. package/organization-management/lib/entities/team/team.module.d.ts +6 -0
  185. package/organization-management/lib/entities/team/team.service.d.ts +10 -0
  186. package/organization-management/lib/entities/team/team.types.d.ts +5 -0
  187. package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +3 -0
  188. package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +3 -0
  189. package/organization-management/lib/organization-management.module.d.ts +11 -9
  190. package/package.json +1 -1
  191. package/platform-management/lib/common/regional/data-source.provider.d.ts +10 -0
  192. package/platform-management/lib/const.d.ts +6 -0
  193. package/platform-management/lib/entities/app-term/app-term.service.d.ts +1 -1
  194. package/platform-management/lib/entities/app-term/app-term.types.d.ts +1 -1
  195. package/platform-management/lib/entities/app-version/app-version.service.d.ts +1 -1
  196. package/platform-management/lib/entities/app-version/app-version.types.d.ts +1 -1
  197. package/platform-management/lib/entities/app-version/components/slots/app-version-slot.component.d.ts +1 -1
  198. package/platform-management/lib/entities/app-version/workflows/change-log.workflow.d.ts +1 -1
  199. package/platform-management/lib/entities/app-version/workflows/show-release-notes.workflow.d.ts +9 -0
  200. package/platform-management/lib/entities/data-source/data-source.service.d.ts +1 -1
  201. package/platform-management/lib/entities/data-source/data-source.types.d.ts +1 -1
  202. package/platform-management/lib/entities/global-variable/global-variables.service.d.ts +1 -1
  203. package/platform-management/lib/entities/global-variable/global-variables.types.d.ts +1 -1
  204. package/platform-management/lib/entities/index.d.ts +1 -1
  205. package/platform-management/lib/entities/meta-data-definition/index.d.ts +0 -1
  206. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.service.d.ts +5 -5
  207. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.types.d.ts +3 -4
  208. package/platform-management/lib/entities/promotion/promotion.service.d.ts +1 -1
  209. package/platform-management/lib/entities/promotion/promotion.types.d.ts +2 -1
  210. package/platform-management/lib/platform-management.module.d.ts +4 -5
  211. package/scheduler-job-management/lib/entities/scheduler-job/scheduler-job.service.d.ts +1 -1
  212. package/scheduler-job-management/lib/entities/scheduler-job/scheduler-job.types.d.ts +1 -1
  213. package/security-management/lib/entities/index.d.ts +2 -0
  214. package/security-management/lib/entities/profile/profile.types.d.ts +1 -1
  215. package/security-management/lib/entities/roles/roles.service.d.ts +1 -1
  216. package/security-management/lib/entities/roles/roles.types.d.ts +3 -1
  217. package/security-management/lib/entities/users/users.service.d.ts +1 -1
  218. package/security-management/lib/entities/users/users.types.d.ts +12 -3
  219. package/text-template-management/lib/const.d.ts +6 -0
  220. package/text-template-management/lib/entities/category/category.service.d.ts +1 -1
  221. package/text-template-management/lib/entities/category/category.types.d.ts +1 -1
  222. package/text-template-management/lib/entities/index.d.ts +1 -0
  223. package/text-template-management/lib/entities/tag-template/index.d.ts +3 -0
  224. package/text-template-management/lib/entities/tag-template/tag-template.entity.d.ts +3 -0
  225. package/text-template-management/lib/entities/tag-template/tag-template.service.d.ts +10 -0
  226. package/text-template-management/lib/entities/tag-template/tag-template.types.d.ts +5 -0
  227. package/text-template-management/lib/entities/template/template.service.d.ts +1 -1
  228. package/text-template-management/lib/entities/template/template.types.d.ts +1 -1
  229. package/auth/lib/store/auth.effects.d.ts +0 -18
  230. package/auth/lib/store/index.d.ts +0 -1
  231. package/document-management/lib/entities/document-type/coulmn-def.widget.d.ts +0 -70
  232. package/fesm2022/acorex-modules-auth-acorex-modules-auth-D1qxdECo.mjs.map +0 -1
  233. package/fesm2022/acorex-modules-auth-password.component-EXWlXGez.mjs +0 -121
  234. package/fesm2022/acorex-modules-auth-password.component-EXWlXGez.mjs.map +0 -1
  235. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs.map +0 -1
  236. package/fesm2022/acorex-modules-form-template-management-category.entity-D00XZd7o.mjs.map +0 -1
  237. package/fesm2022/acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs.map +0 -1
  238. package/fesm2022/acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs +0 -126
  239. package/fesm2022/acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs.map +0 -1
  240. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs.map +0 -1
  241. package/fesm2022/acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs.map +0 -1
  242. package/fesm2022/acorex-modules-organization-management-branch.entity-CxxFiBPd.mjs.map +0 -1
  243. package/fesm2022/acorex-modules-organization-management-employee.entity-PwlBjkYo.mjs.map +0 -1
  244. package/fesm2022/acorex-modules-organization-management-org-chart.page-BSh18amn.mjs.map +0 -1
  245. package/fesm2022/acorex-modules-organization-management-position.entity-B7ceEEbu.mjs.map +0 -1
  246. package/fesm2022/acorex-modules-organization-management-setting.provider-eLv_qnmE.mjs.map +0 -1
  247. package/platform-management/lib/entities/meta-data-definition/meta-data-definition.module.d.ts +0 -6
@@ -1,18 +1,33 @@
1
+ import { AXPSessionService, AXPAuthGuard, AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';
2
+ import { AXPSearchCommandProvider, AXPEntityQueryType, AXPEntityCommandScope, createAllQueryView, AXPFileTypeProviderService, AXP_FILE_TYPE_INFO_PROVIDER, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
3
+ import { AXPEntityService, AXMEntityCrudServiceImpl, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
1
4
  import * as i0 from '@angular/core';
2
- import { inject, Injector, Injectable, NgModule } from '@angular/core';
3
- import { AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';
4
- import { AXPSearchCommandProvider, AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, createAllQueryView, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
5
- import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
6
- import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
7
- import { upperFirst, camelCase } from 'lodash-es';
5
+ import { inject, Injector, Injectable, NgModule, Component, ChangeDetectionStrategy, signal } from '@angular/core';
6
+ import { firstValueFrom } from 'rxjs';
7
+ import * as i6 from '@acorex/platform/layout/builder';
8
+ import { AXPWidgetsCatalog, AXPWidgetComponent, AXPLayoutBuilderModule, AXP_WIDGETS_ADVANCE_GROUP } from '@acorex/platform/layout/builder';
9
+ import { ROUTES } from '@angular/router';
10
+ import { AXDataSource } from '@acorex/components/common';
11
+ import { AXMMetaDataDefinitionService } from '@acorex/modules/platform-management';
12
+ import { CommonModule } from '@angular/common';
13
+ import * as i7$1 from '@acorex/components/collapse';
14
+ import { AXCollapseModule } from '@acorex/components/collapse';
15
+ import * as i5 from '@acorex/components/decorators';
16
+ import { AXDecoratorModule } from '@acorex/components/decorators';
17
+ import * as i7 from '@acorex/components/form';
18
+ import { AXFormModule } from '@acorex/components/form';
19
+ import * as i4 from '@acorex/components/label';
20
+ import { AXLabelModule } from '@acorex/components/label';
21
+ import * as i1 from '@acorex/components/select-box';
22
+ import { AXSelectBoxModule } from '@acorex/components/select-box';
23
+ import * as i2 from '@angular/forms';
24
+ import { FormsModule } from '@angular/forms';
25
+ import get from 'lodash-es/get';
26
+ import set from 'lodash-es/set';
27
+ import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY } from '@acorex/platform/widgets';
8
28
 
9
29
  const config = {
10
30
  i18n: 'document-management',
11
- documentEntity: 'Document',
12
- documentTypeEntity: 'DocumentType',
13
- documentTypeMetaDefinitionEntity: 'DocumentTypeMetaDefinition',
14
- documentTypeMetaValueEntity: 'DocumentTypeMetaValue',
15
- documentTypeStatusDefinitionEntity: 'DocumentTypeStatusDefinition',
16
31
  };
17
32
  const RootConfig = {
18
33
  config,
@@ -23,17 +38,23 @@ const RootConfig = {
23
38
  icon: 'fa-light fa-file-invoice',
24
39
  },
25
40
  entities: {
41
+ folder: {
42
+ name: 'Folder',
43
+ title: `t("folder", { scope: "${config.i18n}" })`,
44
+ titlePlural: `t("folderPlural", { scope: "${config.i18n}" })`,
45
+ icon: 'fa-light fa-folder',
46
+ },
26
47
  document: {
27
48
  name: 'Document',
28
49
  title: `t("document", { scope: "${config.i18n}" })`,
29
50
  titlePlural: `t("documentPlural", { scope: "${config.i18n}" })`,
30
- icon: 'fa-light fa-document',
51
+ icon: 'fa-light fa-file',
31
52
  },
32
53
  documentType: {
33
54
  name: 'DocumentType',
34
55
  title: `t("documentType", { scope: "${config.i18n}" })`,
35
56
  titlePlural: `t("documentTypePlural", { scope: "${config.i18n}" })`,
36
- icon: 'fa-light fa-document',
57
+ icon: 'fa-light fa-books',
37
58
  },
38
59
  documentTypeMetaDefinition: {
39
60
  name: 'documentTypeMeta',
@@ -56,29 +77,6 @@ const RootConfig = {
56
77
  },
57
78
  };
58
79
 
59
- class AXMMenuProvider {
60
- constructor() {
61
- this.entityService = inject(AXPEntityService);
62
- }
63
- async provide(context) {
64
- context.addItems([
65
- {
66
- priority: 9001,
67
- text: RootConfig.module.title,
68
- icon: RootConfig.module.icon,
69
- children: [
70
- {
71
- text: RootConfig.entities.documentType.title,
72
- path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.documentType.name),
73
- icon: RootConfig.entities.documentType.icon,
74
- priority: 1,
75
- },
76
- ],
77
- },
78
- ]);
79
- }
80
- }
81
-
82
80
  class AXMEntityProvider {
83
81
  constructor() {
84
82
  this.injector = inject(Injector);
@@ -94,9 +92,11 @@ class AXMEntityProvider {
94
92
  if (moduleName == RootConfig.module.name) {
95
93
  switch (entityName) {
96
94
  case RootConfig.entities.document.name:
97
- return (await Promise.resolve().then(function () { return index$1; })).documentFactory(this.injector);
95
+ return (await Promise.resolve().then(function () { return index; })).documentFactory(this.injector);
98
96
  case RootConfig.entities.documentType.name:
99
97
  return (await Promise.resolve().then(function () { return index; })).documentTypeFactory(this.injector);
98
+ case RootConfig.entities.folder.name:
99
+ return (await Promise.resolve().then(function () { return index; })).folderFactory(this.injector);
100
100
  }
101
101
  }
102
102
  return null;
@@ -108,6 +108,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
108
108
  type: Injectable
109
109
  }] });
110
110
 
111
+ class AXMMenuProvider {
112
+ constructor() {
113
+ this.entityService = inject(AXPEntityService);
114
+ this.sessionService = inject(AXPSessionService);
115
+ }
116
+ async provide(context) {
117
+ const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
118
+ if (!isAuthorized) {
119
+ return;
120
+ }
121
+ //
122
+ context.addItems([
123
+ {
124
+ priority: 9001,
125
+ text: RootConfig.module.title,
126
+ icon: RootConfig.module.icon,
127
+ children: [
128
+ {
129
+ text: RootConfig.entities.documentType.title,
130
+ path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.documentType.name),
131
+ icon: RootConfig.entities.documentType.icon,
132
+ priority: 2
133
+ },
134
+ {
135
+ text: RootConfig.entities.document.titlePlural,
136
+ path: `${this.sessionService.application?.name}/drive/company`,
137
+ icon: RootConfig.entities.document.icon,
138
+ priority: 1
139
+ }
140
+ ]
141
+ }
142
+ ]);
143
+ //
144
+ context.find('edit-profile').insert([
145
+ {
146
+ name: 'my-notifications',
147
+ text: `t('my-drive.title', {scope: "${RootConfig.config.i18n}"})`,
148
+ icon: 'fa-light fa-folder-open',
149
+ path: `${this.sessionService.application?.name}/drive/my`,
150
+ data: {
151
+ scope: 'user'
152
+ },
153
+ },
154
+ ], 'after');
155
+ }
156
+ }
157
+
111
158
  class AXMPermissionProvider {
112
159
  async provide(context) {
113
160
  // context.addPermissions([
@@ -120,6 +167,25 @@ class AXMPermissionProvider {
120
167
  }
121
168
  }
122
169
 
170
+ class AXMSearchCommandProvider extends AXPSearchCommandProvider {
171
+ constructor() {
172
+ super(...arguments);
173
+ this.commands = [
174
+ // {
175
+ // group: 'command',
176
+ // title: 'New Form Template',
177
+ // icon: RootConfig.entities.template.icon,
178
+ // description: 'Create a new form template for designing reusable forms.', // Added description
179
+ // commands: {
180
+ // 'create-entity': {
181
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
182
+ // },
183
+ // },
184
+ // }
185
+ ];
186
+ }
187
+ }
188
+
123
189
  class AXMSettingProvider {
124
190
  async provide(context) {
125
191
  // context
@@ -148,40 +214,25 @@ class AXMSettingProvider {
148
214
  }
149
215
  }
150
216
 
151
- class AXMSearchCommandProvider extends AXPSearchCommandProvider {
152
- constructor() {
153
- super(...arguments);
154
- this.commands = [
155
- // {
156
- // group: 'command',
157
- // title: 'New Form Template',
158
- // icon: RootConfig.entities.template.icon,
159
- // description: 'Create a new form template for designing reusable forms.', // Added description
160
- // commands: {
161
- // 'create-entity': {
162
- // entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
163
- // },
164
- // },
165
- // }
166
- ];
167
- }
168
- }
169
-
170
- class AXMDocumentManagementDocumentEntityService extends AXMEntityCrudServiceImpl {
217
+ class AXMDocumentService extends AXMEntityCrudServiceImpl {
171
218
  }
172
- class AXMDocumentManagementDocumentEntityServiceImpl extends AXMDocumentManagementDocumentEntityService {
219
+ class AXMDocumentServiceImpl extends AXMDocumentService {
173
220
  constructor() {
174
- super(`${RootConfig.module.name}.${RootConfig.entities.document}`);
221
+ super(`${RootConfig.module.name}.${RootConfig.entities.document.name}`);
222
+ }
223
+ async getPath(_) {
224
+ throw new Error('Not implemented');
175
225
  }
176
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
177
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityServiceImpl }); }
226
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
227
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentServiceImpl }); }
178
228
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityServiceImpl, decorators: [{
229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentServiceImpl, decorators: [{
180
230
  type: Injectable
181
231
  }], ctorParameters: () => [] });
182
232
 
183
233
  async function documentFactory(injector) {
184
- const dataService = injector.get(AXMDocumentManagementDocumentEntityService);
234
+ const dataService = injector.get(AXMDocumentService);
235
+ const i18n = RootConfig.config.i18n;
185
236
  const entityDef = {
186
237
  module: RootConfig.module.name,
187
238
  name: RootConfig.entities.document.name,
@@ -240,6 +291,72 @@ async function documentFactory(injector) {
240
291
  },
241
292
  ],
242
293
  },
294
+ {
295
+ name: 'type',
296
+ title: 't("type", { scope: "common" })',
297
+ groupId: 'section',
298
+ schema: {
299
+ dataType: 'string',
300
+ interface: {
301
+ type: AXPWidgetsCatalog.lookup,
302
+ options: {
303
+ entity: `${RootConfig.module.name}.${RootConfig.entities.documentType.name}`,
304
+ expose: 'type',
305
+ },
306
+ },
307
+ },
308
+ validations: [
309
+ {
310
+ rule: 'required',
311
+ },
312
+ ],
313
+ },
314
+ {
315
+ name: 'metaData',
316
+ title: 't("metaData", { scope: "common" })',
317
+ groupId: 'section',
318
+ schema: {
319
+ dataType: 'string',
320
+ interface: {
321
+ type: AXPWidgetsCatalog.metaData,
322
+ options: {
323
+ listMeta: ` {{context.eval("type.meta")}} `,
324
+ },
325
+ triggers: [
326
+ {
327
+ event: `{{ events.context("type") }}`,
328
+ action: `{{ console.log(context.eval("type")); }}`,
329
+ },
330
+ ],
331
+ },
332
+ },
333
+ validations: [
334
+ {
335
+ rule: 'required',
336
+ },
337
+ ],
338
+ },
339
+ {
340
+ name: 'file',
341
+ title: `t("file", { scope: "${i18n}" })`,
342
+ groupId: 'section',
343
+ schema: {
344
+ dataType: 'string',
345
+ interface: {
346
+ type: AXPWidgetsCatalog.file,
347
+ options: {
348
+ maxFileSize: ` {{context.eval("type.maxSize")}} `,
349
+ multiple: ` {{context.eval("type.multiple")}} `,
350
+ accept: ` {{context.eval("type.multiple")}} `,
351
+ },
352
+ },
353
+ },
354
+ validations: [
355
+ {
356
+ rule: 'required',
357
+ },
358
+ ],
359
+ },
243
360
  ],
244
361
  columns: [{ name: 'name' }, { name: 'title' }],
245
362
  commands: {
@@ -303,6 +420,36 @@ async function documentFactory(injector) {
303
420
  },
304
421
  },
305
422
  },
423
+ {
424
+ name: 'type',
425
+ layout: {
426
+ positions: {
427
+ lg: {
428
+ colSpan: 12,
429
+ },
430
+ },
431
+ },
432
+ },
433
+ {
434
+ name: 'metaData',
435
+ layout: {
436
+ positions: {
437
+ lg: {
438
+ colSpan: 12,
439
+ },
440
+ },
441
+ },
442
+ },
443
+ {
444
+ name: 'file',
445
+ layout: {
446
+ positions: {
447
+ lg: {
448
+ colSpan: 12,
449
+ },
450
+ },
451
+ },
452
+ },
306
453
  ],
307
454
  },
308
455
  update: {
@@ -332,6 +479,36 @@ async function documentFactory(injector) {
332
479
  },
333
480
  },
334
481
  },
482
+ {
483
+ name: 'type',
484
+ layout: {
485
+ positions: {
486
+ lg: {
487
+ colSpan: 12,
488
+ },
489
+ },
490
+ },
491
+ },
492
+ {
493
+ name: 'metaData',
494
+ layout: {
495
+ positions: {
496
+ lg: {
497
+ colSpan: 12,
498
+ },
499
+ },
500
+ },
501
+ },
502
+ {
503
+ name: 'file',
504
+ layout: {
505
+ positions: {
506
+ lg: {
507
+ colSpan: 12,
508
+ },
509
+ },
510
+ },
511
+ },
335
512
  ],
336
513
  },
337
514
  single: {
@@ -369,6 +546,36 @@ async function documentFactory(injector) {
369
546
  },
370
547
  },
371
548
  },
549
+ {
550
+ name: 'type',
551
+ layout: {
552
+ positions: {
553
+ lg: {
554
+ colSpan: 12,
555
+ },
556
+ },
557
+ },
558
+ },
559
+ {
560
+ name: 'metaData',
561
+ layout: {
562
+ positions: {
563
+ lg: {
564
+ colSpan: 12,
565
+ },
566
+ },
567
+ },
568
+ },
569
+ {
570
+ name: 'file',
571
+ layout: {
572
+ positions: {
573
+ lg: {
574
+ colSpan: 12,
575
+ },
576
+ },
577
+ },
578
+ },
372
579
  ],
373
580
  actions: [],
374
581
  },
@@ -403,16 +610,7 @@ async function documentFactory(injector) {
403
610
  scope: AXPEntityCommandScope.Individual,
404
611
  },
405
612
  ],
406
- views: [
407
- {
408
- name: 'all',
409
- title: 't("allItem", { scope: "common" })',
410
- fixed: true,
411
- columns: [],
412
- conditions: [],
413
- sorts: [],
414
- },
415
- ],
613
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
416
614
  },
417
615
  },
418
616
  },
@@ -425,8 +623,8 @@ class AXMDocumentManagementDocumentEntityModule {
425
623
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule }); }
426
624
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentEntityModule, providers: [
427
625
  {
428
- provide: AXMDocumentManagementDocumentEntityService,
429
- useClass: AXMDocumentManagementDocumentEntityServiceImpl,
626
+ provide: AXMDocumentService,
627
+ useClass: AXMDocumentServiceImpl,
430
628
  },
431
629
  ] }); }
432
630
  }
@@ -438,209 +636,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
438
636
  declarations: [],
439
637
  providers: [
440
638
  {
441
- provide: AXMDocumentManagementDocumentEntityService,
442
- useClass: AXMDocumentManagementDocumentEntityServiceImpl,
639
+ provide: AXMDocumentService,
640
+ useClass: AXMDocumentServiceImpl,
443
641
  },
444
642
  ],
445
643
  }]
446
644
  }] });
447
645
 
448
- var index$1 = /*#__PURE__*/Object.freeze({
449
- __proto__: null,
450
- AXMDocumentManagementDocumentEntityModule: AXMDocumentManagementDocumentEntityModule,
451
- AXMDocumentManagementDocumentEntityService: AXMDocumentManagementDocumentEntityService,
452
- AXMDocumentManagementDocumentEntityServiceImpl: AXMDocumentManagementDocumentEntityServiceImpl,
453
- documentFactory: documentFactory
454
- });
646
+ class AXMDocumentManagementDocumentTypeEntityService extends AXMEntityCrudServiceImpl {
647
+ }
648
+ class AXMDocumentManagementDocumentTypeEntityServiceImpl extends AXMDocumentManagementDocumentTypeEntityService {
649
+ constructor() {
650
+ super(`${RootConfig.module.name}.${RootConfig.entities.documentType.name}`);
651
+ }
652
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
653
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl }); }
654
+ }
655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl, decorators: [{
656
+ type: Injectable
657
+ }], ctorParameters: () => [] });
455
658
 
456
- const AXM_COLUMN_DEF_WIDGET = [
457
- {
458
- type: 'grid-row-layout',
459
- mode: 'view',
460
- children: [
461
- {
462
- type: 'grid-item-layout',
463
- mode: 'view',
464
- options: { colSpan: 3 },
465
- children: [
466
- {
467
- type: 'text-editor',
468
- mode: 'edit',
469
- path: 'name',
470
- options: {
471
- placeholder: 'Name',
472
- defaultValue: 'test',
473
- },
474
- },
475
- ],
659
+ async function documentTypeFactory(injector) {
660
+ const dataService = injector.get(AXMDocumentManagementDocumentTypeEntityService);
661
+ const metaDefinitionService = injector.get(AXMMetaDataDefinitionService);
662
+ const i18n = RootConfig.config.i18n;
663
+ const entityDef = {
664
+ module: RootConfig.module.name,
665
+ name: RootConfig.entities.documentType.name,
666
+ source: '',
667
+ title: RootConfig.entities.documentType.title,
668
+ formats: {
669
+ individual: RootConfig.entities.documentType.title,
670
+ plural: RootConfig.entities.documentType.titlePlural,
671
+ searchResult: {
672
+ title: '{{ title }}',
673
+ description: RootConfig.module.title,
476
674
  },
477
- {
478
- type: 'grid-item-layout',
479
- mode: 'view',
480
- options: { colSpan: 3 },
481
- children: [
482
- {
483
- type: 'text-editor',
484
- mode: 'edit',
485
- path: 'title',
486
- options: {
487
- placeholder: 'Title',
488
- },
489
- },
490
- ],
491
- },
492
- {
493
- type: 'grid-item-layout',
494
- options: { colSpan: 3 },
495
- mode: 'view',
496
- children: [
497
- {
498
- type: 'select-editor',
499
- mode: 'edit',
500
- path: 'type',
501
- options: {
502
- ruleValidation: {
503
- rule: true,
504
- },
505
- placeholder: 'Type',
506
- valueField: 'name',
507
- textField: 'title',
508
- dataSource: Object.entries(AXPWidgetsCatalog).map(([key, value]) => {
509
- return {
510
- title: upperFirst(camelCase(key)),
511
- name: value,
512
- };
513
- }),
514
- direction: 'horizontal',
515
- multiple: false,
516
- },
517
- },
518
- ],
519
- },
520
- {
521
- type: 'grid-item-layout',
522
- options: { colSpan: 2 },
523
- mode: 'view',
524
- children: [
525
- {
526
- type: 'checkbox-editor',
527
- mode: 'edit',
528
- path: 'isRequire',
529
- },
530
- ],
531
- },
532
- ],
533
- },
534
- ];
535
- // export const AXM_COLUMN_DEF_WIDGET = [
536
- // {
537
- // type: 'grid-row-layout',
538
- // // name: 'grid-row-layout1',
539
- // mode: 'view',
540
- // path: '',
541
- // children: [
542
- // {
543
- // type: 'grid-item-layout',
544
- // mode: 'view',
545
- // // path: '',
546
- // options: { colSpan: 4 },
547
- // // name: 'grid-item-layout1',
548
- // children: [
549
- // {
550
- // type: 'text-editor',
551
- // //name: 'text-editor1',
552
- // mode: 'edit',
553
- // path: 'name',
554
- // options: {
555
- // placeholder: 'Name',
556
- // defaultValue: 'test',
557
- // },
558
- // },
559
- // ],
560
- // },
561
- // {
562
- // type: 'grid-item-layout',
563
- // mode: 'view',
564
- // // path: '',
565
- // options: { colSpan: 4 },
566
- // //name: 'grid-item-layout2',
567
- // children: [
568
- // {
569
- // type: 'text-editor',
570
- // // name: 'text-editor2',
571
- // mode: 'edit',
572
- // path: 'title',
573
- // options: {
574
- // placeholder: 'Title',
575
- // },
576
- // },
577
- // ],
578
- // },
579
- // {
580
- // type: 'grid-item-layout',
581
- // options: { colSpan: 4 },
582
- // mode: 'view',
583
- // // path: '',
584
- // // name: 'grid-item-layout3',
585
- // children: [
586
- // {
587
- // type: 'select-editor',
588
- // //name: 'select-editor1',
589
- // mode: 'edit',
590
- // path: 'type',
591
- // options: {
592
- // placeholder: 'Type',
593
- // valueField: 'name',
594
- // textField: 'title',
595
- // dataSource: [
596
- // { title: 'text', name: AXPWidgetsCatalog.text },
597
- // { title: 'Check Box', name: AXPWidgetsCatalog.checkbox },
598
- // { title: 'Gallery', name: AXPWidgetsCatalog.gallery },
599
- // ],
600
- // direction: 'horizontal',
601
- // multiple: false,
602
- // },
603
- // },
604
- // ],
605
- // },
606
- // ],
607
- // },
608
- // ];
609
-
610
- class AXMDocumentManagementDocumentTypeEntityService extends AXMEntityCrudServiceImpl {
611
- }
612
- class AXMDocumentManagementDocumentTypeEntityServiceImpl extends AXMDocumentManagementDocumentTypeEntityService {
613
- constructor() {
614
- super(`${RootConfig.module.name}.${RootConfig.entities.documentType}`);
615
- }
616
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
617
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl }); }
618
- }
619
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementDocumentTypeEntityServiceImpl, decorators: [{
620
- type: Injectable
621
- }], ctorParameters: () => [] });
622
-
623
- async function documentTypeFactory(injector) {
624
- const dataService = injector.get(AXMDocumentManagementDocumentTypeEntityService);
625
- const i18n = RootConfig.config.i18n;
626
- const entityDef = {
627
- module: RootConfig.module.name,
628
- name: RootConfig.entities.document.name,
629
- source: '',
630
- title: RootConfig.entities.document.title,
631
- formats: {
632
- individual: RootConfig.entities.document.title,
633
- plural: RootConfig.entities.document.titlePlural,
634
- searchResult: {
635
- title: '{{ title }}',
636
- description: RootConfig.module.title,
637
- },
638
- },
639
- relatedEntities: [],
640
- groups: [
675
+ },
676
+ relatedEntities: [],
677
+ groups: [
641
678
  {
642
679
  id: 'section',
643
- title: RootConfig.entities.document.title,
680
+ title: RootConfig.entities.documentType.title,
644
681
  },
645
682
  ],
646
683
  properties: [
@@ -681,33 +718,88 @@ async function documentTypeFactory(injector) {
681
718
  },
682
719
  ],
683
720
  },
721
+ {
722
+ name: 'maxSize',
723
+ title: `t("maxSize", { scope: "${i18n}" })`,
724
+ groupId: 'section',
725
+ schema: {
726
+ dataType: 'number',
727
+ interface: {
728
+ type: AXPWidgetsCatalog.numberUnit,
729
+ options: {
730
+ textField: 'name',
731
+ valueField: 'value',
732
+ dataSource: [
733
+ {
734
+ name: 'kb',
735
+ value: 'KB',
736
+ calUnit: 1,
737
+ },
738
+ {
739
+ name: 'mb',
740
+ value: 'MB',
741
+ calUnit: 1024,
742
+ },
743
+ {
744
+ name: 'gb',
745
+ value: 'GB',
746
+ calUnit: 1024 * 1024,
747
+ },
748
+ ],
749
+ mainUnit: 'kb',
750
+ },
751
+ },
752
+ },
753
+ validations: [
754
+ {
755
+ rule: 'required',
756
+ },
757
+ ],
758
+ },
759
+ {
760
+ name: 'isEncrypted',
761
+ title: `t("isEncrypted", { scope: "${i18n}" })`,
762
+ groupId: 'section',
763
+ schema: {
764
+ dataType: 'boolean',
765
+ interface: {
766
+ type: AXPWidgetsCatalog.checkbox,
767
+ },
768
+ },
769
+ },
684
770
  {
685
771
  name: 'meta',
686
772
  title: `t("meta", { scope: "${i18n}" })`,
687
773
  groupId: 'section',
688
774
  schema: {
689
- defaultValue: [
690
- {
691
- name: 'name',
692
- title: 'Name',
693
- type: {
694
- title: 'Text',
695
- name: 'text-editor',
696
- },
697
- },
698
- {
699
- name: 'title',
700
- title: 'Title',
701
- type: {
702
- title: 'Text',
703
- name: 'text-editor',
704
- },
775
+ dataType: 'object',
776
+ interface: {
777
+ type: AXPWidgetsCatalog.select,
778
+ options: {
779
+ valueField: 'id',
780
+ textField: 'title',
781
+ //defaultValue: AXMFormTemplateTypes.Form,
782
+ dataSource: new AXDataSource({
783
+ load: async (_) => {
784
+ const metaData = await metaDefinitionService.query();
785
+ return metaData;
786
+ },
787
+ pageSize: 100,
788
+ }),
789
+ multiple: true,
705
790
  },
706
- ],
791
+ },
792
+ },
793
+ },
794
+ {
795
+ name: 'type',
796
+ title: `t("type", { scope: "${i18n}" })`,
797
+ groupId: 'section',
798
+ schema: {
707
799
  dataType: 'object',
708
800
  interface: {
709
- type: AXPWidgetsCatalog.repeaterLayout,
710
- children: AXM_COLUMN_DEF_WIDGET,
801
+ type: AXPWidgetsCatalog.fileTypeExtension,
802
+ options: {},
711
803
  },
712
804
  },
713
805
  },
@@ -734,7 +826,9 @@ async function documentTypeFactory(injector) {
734
826
  queries: {
735
827
  byKey: {
736
828
  execute: async (id) => {
737
- return await dataService.getOne(id);
829
+ const x = await dataService.getOne(id);
830
+ console.log(x);
831
+ return x;
738
832
  },
739
833
  type: AXPEntityQueryType.Single,
740
834
  },
@@ -774,6 +868,26 @@ async function documentTypeFactory(injector) {
774
868
  },
775
869
  },
776
870
  },
871
+ {
872
+ name: 'maxSize',
873
+ layout: {
874
+ positions: {
875
+ lg: {
876
+ colSpan: 6,
877
+ },
878
+ },
879
+ },
880
+ },
881
+ {
882
+ name: 'isEncrypted',
883
+ layout: {
884
+ positions: {
885
+ lg: {
886
+ colSpan: 6,
887
+ },
888
+ },
889
+ },
890
+ },
777
891
  {
778
892
  name: 'meta',
779
893
  layout: {
@@ -784,6 +898,16 @@ async function documentTypeFactory(injector) {
784
898
  },
785
899
  },
786
900
  },
901
+ {
902
+ name: 'type',
903
+ layout: {
904
+ positions: {
905
+ lg: {
906
+ colSpan: 12,
907
+ },
908
+ },
909
+ },
910
+ },
787
911
  ],
788
912
  },
789
913
  update: {
@@ -813,6 +937,26 @@ async function documentTypeFactory(injector) {
813
937
  },
814
938
  },
815
939
  },
940
+ {
941
+ name: 'maxSize',
942
+ layout: {
943
+ positions: {
944
+ lg: {
945
+ colSpan: 6,
946
+ },
947
+ },
948
+ },
949
+ },
950
+ {
951
+ name: 'isEncrypted',
952
+ layout: {
953
+ positions: {
954
+ lg: {
955
+ colSpan: 6,
956
+ },
957
+ },
958
+ },
959
+ },
816
960
  {
817
961
  name: 'meta',
818
962
  layout: {
@@ -823,6 +967,16 @@ async function documentTypeFactory(injector) {
823
967
  },
824
968
  },
825
969
  },
970
+ {
971
+ name: 'type',
972
+ layout: {
973
+ positions: {
974
+ lg: {
975
+ colSpan: 12,
976
+ },
977
+ },
978
+ },
979
+ },
826
980
  ],
827
981
  },
828
982
  single: {
@@ -860,6 +1014,26 @@ async function documentTypeFactory(injector) {
860
1014
  },
861
1015
  },
862
1016
  },
1017
+ {
1018
+ name: 'maxSize',
1019
+ layout: {
1020
+ positions: {
1021
+ lg: {
1022
+ colSpan: 6,
1023
+ },
1024
+ },
1025
+ },
1026
+ },
1027
+ {
1028
+ name: 'isEncrypted',
1029
+ layout: {
1030
+ positions: {
1031
+ lg: {
1032
+ colSpan: 6,
1033
+ },
1034
+ },
1035
+ },
1036
+ },
863
1037
  {
864
1038
  name: 'meta',
865
1039
  layout: {
@@ -870,6 +1044,16 @@ async function documentTypeFactory(injector) {
870
1044
  },
871
1045
  },
872
1046
  },
1047
+ {
1048
+ name: 'type',
1049
+ layout: {
1050
+ positions: {
1051
+ lg: {
1052
+ colSpan: 12,
1053
+ },
1054
+ },
1055
+ },
1056
+ },
873
1057
  ],
874
1058
  actions: [],
875
1059
  },
@@ -937,14 +1121,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
937
1121
  }]
938
1122
  }] });
939
1123
 
940
- var index = /*#__PURE__*/Object.freeze({
941
- __proto__: null,
942
- AXMDocumentManagementDocumentTypeEntityModule: AXMDocumentManagementDocumentTypeEntityModule,
943
- AXMDocumentManagementDocumentTypeEntityService: AXMDocumentManagementDocumentTypeEntityService,
944
- AXMDocumentManagementDocumentTypeEntityServiceImpl: AXMDocumentManagementDocumentTypeEntityServiceImpl,
945
- documentTypeFactory: documentTypeFactory
946
- });
947
-
948
1124
  class AXMDocumentManagementDocumentTypeMetaDefinitionEntityService extends AXMEntityCrudServiceImpl {
949
1125
  }
950
1126
  class AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl extends AXMDocumentManagementDocumentTypeMetaDefinitionEntityService {
@@ -1752,44 +1928,1130 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1752
1928
  }]
1753
1929
  }] });
1754
1930
 
1755
- class AXMDocumentManagementModule {
1756
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1757
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, AXMDocumentManagementDocumentTypeMetaValueEntityModule, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, AXMDocumentManagementDocumentTypeEntityModule, AXMDocumentManagementDocumentEntityModule] }); }
1758
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, providers: [
1759
- {
1760
- provide: AXP_MENU_PROVIDER,
1761
- useClass: AXMMenuProvider,
1762
- multi: true,
1763
- },
1764
- {
1765
- provide: AXP_ENTITY_DEFINITION_LOADER,
1766
- useClass: AXMEntityProvider,
1767
- multi: true,
1931
+ class AXMFolderService extends AXMEntityCrudServiceImpl {
1932
+ }
1933
+ class AXMFolderServiceImpl extends AXMFolderService {
1934
+ constructor() {
1935
+ super(`${RootConfig.module.name}.${RootConfig.entities.folder.name}`);
1936
+ }
1937
+ async getPath(_) {
1938
+ throw new Error('Not implemented');
1939
+ }
1940
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFolderServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1941
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFolderServiceImpl }); }
1942
+ }
1943
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFolderServiceImpl, decorators: [{
1944
+ type: Injectable
1945
+ }], ctorParameters: () => [] });
1946
+
1947
+ async function folderFactory(injector) {
1948
+ const dataService = injector.get(AXMFolderService);
1949
+ const entityDef = {
1950
+ module: RootConfig.module.name,
1951
+ name: RootConfig.entities.folder.name,
1952
+ source: '',
1953
+ title: RootConfig.entities.folder.title,
1954
+ formats: {
1955
+ individual: RootConfig.entities.folder.title,
1956
+ plural: RootConfig.entities.folder.titlePlural,
1957
+ searchResult: {
1958
+ title: '{{ title }}',
1959
+ description: RootConfig.module.title,
1768
1960
  },
1961
+ },
1962
+ relatedEntities: [],
1963
+ groups: [
1769
1964
  {
1770
- provide: AXP_SETTING_DEFINITION_PROVIDER,
1771
- useClass: AXMSettingProvider,
1772
- multi: true,
1965
+ id: 'section',
1966
+ title: RootConfig.entities.folder.title,
1773
1967
  },
1968
+ ],
1969
+ properties: [
1774
1970
  {
1775
- provide: AXP_SEARCH_PROVIDER,
1776
- useClass: AXMSearchCommandProvider,
1777
- multi: true,
1971
+ name: 'name',
1972
+ title: 't("name", { scope: "common" })',
1973
+ groupId: 'section',
1974
+ options: {
1975
+ sort: {
1976
+ enabled: true,
1977
+ },
1978
+ },
1979
+ schema: {
1980
+ dataType: 'string',
1981
+ interface: {
1982
+ type: AXPWidgetsCatalog.text,
1983
+ },
1984
+ },
1985
+ validations: [
1986
+ {
1987
+ rule: 'required',
1988
+ },
1989
+ ],
1778
1990
  },
1779
1991
  {
1780
- provide: AXP_PERMISSION_PROVIDER,
1781
- useClass: AXMPermissionProvider,
1782
- multi: true,
1783
- },
1784
- ], imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, AXMDocumentManagementDocumentTypeMetaValueEntityModule, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, AXMDocumentManagementDocumentTypeEntityModule, AXMDocumentManagementDocumentEntityModule] }); }
1785
- }
1786
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, decorators: [{
1787
- type: NgModule,
1788
- args: [{
1789
- imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, AXMDocumentManagementDocumentTypeMetaValueEntityModule, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, AXMDocumentManagementDocumentTypeEntityModule, AXMDocumentManagementDocumentEntityModule,],
1992
+ name: 'title',
1993
+ title: 't("title", { scope: "common" })',
1994
+ groupId: 'section',
1995
+ schema: {
1996
+ dataType: 'string',
1997
+ interface: {
1998
+ type: AXPWidgetsCatalog.text,
1999
+ },
2000
+ },
2001
+ validations: [
2002
+ {
2003
+ rule: 'required',
2004
+ },
2005
+ ],
2006
+ },
2007
+ ],
2008
+ columns: [{ name: 'name' }, { name: 'title' }],
2009
+ commands: {
2010
+ create: {
2011
+ execute: async (data) => {
2012
+ const res = await dataService.insertOne(data);
2013
+ return { id: res };
2014
+ },
2015
+ },
2016
+ delete: {
2017
+ execute: async (id) => {
2018
+ return await dataService.deleteOne(id);
2019
+ },
2020
+ },
2021
+ update: {
2022
+ execute: async (data) => {
2023
+ return await dataService.updateOne(data.id, data);
2024
+ },
2025
+ },
2026
+ },
2027
+ queries: {
2028
+ byKey: {
2029
+ execute: async (id) => {
2030
+ return await dataService.getOne(id);
2031
+ },
2032
+ type: AXPEntityQueryType.Single,
2033
+ },
2034
+ list: {
2035
+ execute: async (e) => {
2036
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2037
+ },
2038
+ type: AXPEntityQueryType.List,
2039
+ },
2040
+ },
2041
+ interfaces: {
2042
+ master: {
2043
+ create: {
2044
+ sections: [
2045
+ {
2046
+ id: 'section',
2047
+ },
2048
+ ],
2049
+ properties: [
2050
+ {
2051
+ name: 'name',
2052
+ layout: {
2053
+ positions: {
2054
+ lg: {
2055
+ colSpan: 6,
2056
+ },
2057
+ },
2058
+ },
2059
+ },
2060
+ {
2061
+ name: 'title',
2062
+ layout: {
2063
+ positions: {
2064
+ lg: {
2065
+ colSpan: 6,
2066
+ },
2067
+ },
2068
+ },
2069
+ },
2070
+ ],
2071
+ },
2072
+ update: {
2073
+ sections: [
2074
+ {
2075
+ id: 'section',
2076
+ },
2077
+ ],
2078
+ properties: [
2079
+ {
2080
+ name: 'name',
2081
+ layout: {
2082
+ positions: {
2083
+ lg: {
2084
+ colSpan: 6,
2085
+ },
2086
+ },
2087
+ },
2088
+ },
2089
+ {
2090
+ name: 'title',
2091
+ layout: {
2092
+ positions: {
2093
+ lg: {
2094
+ colSpan: 6,
2095
+ },
2096
+ },
2097
+ },
2098
+ },
2099
+ ],
2100
+ },
2101
+ single: {
2102
+ title: '{{title}}',
2103
+ sections: [
2104
+ {
2105
+ id: 'section',
2106
+ layout: {
2107
+ positions: {
2108
+ lg: {
2109
+ colSpan: 12,
2110
+ },
2111
+ },
2112
+ },
2113
+ },
2114
+ ],
2115
+ properties: [
2116
+ {
2117
+ name: 'name',
2118
+ layout: {
2119
+ positions: {
2120
+ lg: {
2121
+ colSpan: 6,
2122
+ },
2123
+ },
2124
+ },
2125
+ },
2126
+ {
2127
+ name: 'title',
2128
+ layout: {
2129
+ positions: {
2130
+ lg: {
2131
+ colSpan: 6,
2132
+ },
2133
+ },
2134
+ },
2135
+ },
2136
+ ],
2137
+ actions: [],
2138
+ },
2139
+ list: {
2140
+ actions: [
2141
+ {
2142
+ title: `t("create", { scope: "common" })`,
2143
+ command: 'create-entity',
2144
+ priority: 'primary',
2145
+ type: 'create',
2146
+ scope: AXPEntityCommandScope.TypeLevel,
2147
+ },
2148
+ {
2149
+ title: 't("deleteItems", { scope: "common" })',
2150
+ command: 'delete-entity',
2151
+ priority: 'primary',
2152
+ type: 'delete',
2153
+ scope: AXPEntityCommandScope.Selected,
2154
+ },
2155
+ {
2156
+ title: 't("detail", { scope: "common" })',
2157
+ command: 'open-entity',
2158
+ priority: 'secondary',
2159
+ type: 'view',
2160
+ scope: AXPEntityCommandScope.Individual,
2161
+ },
2162
+ {
2163
+ title: 't("delete", { scope: "common" })',
2164
+ command: 'delete-entity',
2165
+ priority: 'secondary',
2166
+ type: 'delete',
2167
+ scope: AXPEntityCommandScope.Individual,
2168
+ },
2169
+ ],
2170
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
2171
+ },
2172
+ },
2173
+ },
2174
+ };
2175
+ return entityDef;
2176
+ }
2177
+
2178
+ var index = /*#__PURE__*/Object.freeze({
2179
+ __proto__: null,
2180
+ AXMDocumentManagementDocumentEntityModule: AXMDocumentManagementDocumentEntityModule,
2181
+ AXMDocumentManagementDocumentTypeEntityModule: AXMDocumentManagementDocumentTypeEntityModule,
2182
+ AXMDocumentManagementDocumentTypeEntityService: AXMDocumentManagementDocumentTypeEntityService,
2183
+ AXMDocumentManagementDocumentTypeEntityServiceImpl: AXMDocumentManagementDocumentTypeEntityServiceImpl,
2184
+ AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule: AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
2185
+ AXMDocumentManagementDocumentTypeMetaDefinitionEntityService: AXMDocumentManagementDocumentTypeMetaDefinitionEntityService,
2186
+ AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl: AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl,
2187
+ AXMDocumentManagementDocumentTypeMetaValueEntityModule: AXMDocumentManagementDocumentTypeMetaValueEntityModule,
2188
+ AXMDocumentManagementDocumentTypeMetaValueEntityService: AXMDocumentManagementDocumentTypeMetaValueEntityService,
2189
+ AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl: AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl,
2190
+ AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule: AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
2191
+ AXMDocumentManagementDocumentTypeStatusDefinitionEntityService: AXMDocumentManagementDocumentTypeStatusDefinitionEntityService,
2192
+ AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl: AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl,
2193
+ AXMDocumentService: AXMDocumentService,
2194
+ AXMDocumentServiceImpl: AXMDocumentServiceImpl,
2195
+ AXMFolderService: AXMFolderService,
2196
+ AXMFolderServiceImpl: AXMFolderServiceImpl,
2197
+ documentFactory: documentFactory,
2198
+ documentTypeFactory: documentTypeFactory,
2199
+ documentTypeMetaDefinitionfactory: documentTypeMetaDefinitionfactory,
2200
+ documentTypeMetaValueFactory: documentTypeMetaValueFactory,
2201
+ documentTypeStatusDefinitionFactory: documentTypeStatusDefinitionFactory,
2202
+ folderFactory: folderFactory
2203
+ });
2204
+
2205
+ class AXMImageFileTypeProvider {
2206
+ async items() {
2207
+ return [
2208
+ {
2209
+ name: 'image',
2210
+ title: 'Image',
2211
+ icon: 'fa-light fa-image ax-text-purple-500',
2212
+ extensions: [
2213
+ {
2214
+ name: 'jpg',
2215
+ title: 'JPEG',
2216
+ icon: 'fa-light fa-image ax-text-purple-500',
2217
+ meta: [],
2218
+ },
2219
+ {
2220
+ name: 'png',
2221
+ title: 'PNG',
2222
+ icon: 'fa-light fa-image ax-text-purple-500',
2223
+ meta: [],
2224
+ },
2225
+ {
2226
+ name: 'gif',
2227
+ title: 'GIF',
2228
+ icon: 'fa-light fa-image ax-text-purple-500',
2229
+ meta: [
2230
+ {
2231
+ name: 'duration',
2232
+ title: 'Duration',
2233
+ interface: async () => {
2234
+ return {
2235
+ type: AXPWidgetsCatalog.text,
2236
+ options: {
2237
+ validations: [
2238
+ {
2239
+ rule: "required"
2240
+ }
2241
+ ]
2242
+ },
2243
+ path: 'gift.duration',
2244
+ };
2245
+ },
2246
+ },
2247
+ ],
2248
+ },
2249
+ ],
2250
+ meta: [
2251
+ {
2252
+ name: 'width',
2253
+ title: 'Width',
2254
+ interface: async () => {
2255
+ return {
2256
+ type: AXPWidgetsCatalog.text,
2257
+ options: {
2258
+ validations: [
2259
+ {
2260
+ rule: "required"
2261
+ }
2262
+ ]
2263
+ },
2264
+ path: 'image.width',
2265
+ };
2266
+ },
2267
+ },
2268
+ {
2269
+ name: 'height',
2270
+ title: 'Height',
2271
+ interface: async () => {
2272
+ return {
2273
+ type: AXPWidgetsCatalog.text,
2274
+ options: {},
2275
+ path: 'image.height',
2276
+ };
2277
+ },
2278
+ },
2279
+ ],
2280
+ },
2281
+ ];
2282
+ }
2283
+ }
2284
+
2285
+ class AXMVideoFileTypeProvider {
2286
+ async items() {
2287
+ return [
2288
+ {
2289
+ name: 'video',
2290
+ title: 'Video',
2291
+ icon: 'fa-light fa-video ax-text-red-500',
2292
+ extensions: [
2293
+ {
2294
+ name: 'mp4',
2295
+ title: 'MP4',
2296
+ icon: 'fa-light fa-video ax-text-red-500',
2297
+ meta: [],
2298
+ },
2299
+ {
2300
+ name: 'avi',
2301
+ title: 'AVI',
2302
+ icon: 'fa-light fa-video ax-text-red-500',
2303
+ meta: [],
2304
+ },
2305
+ {
2306
+ name: 'mkv',
2307
+ title: 'MKV',
2308
+ icon: 'fa-light fa-video ax-text-red-500',
2309
+ meta: [],
2310
+ },
2311
+ ],
2312
+ },
2313
+ ];
2314
+ }
2315
+ }
2316
+
2317
+ class AXMDocumentFileTypeProvider {
2318
+ async items() {
2319
+ return [
2320
+ {
2321
+ name: 'document',
2322
+ title: 'Document',
2323
+ icon: 'fa-light fa-file-lines ax-text-blue-600',
2324
+ extensions: [
2325
+ {
2326
+ name: 'pdf',
2327
+ title: 'PDF',
2328
+ icon: 'fa-light fa-file-pdf ax-text-red-600',
2329
+ meta: [],
2330
+ },
2331
+ {
2332
+ name: 'doc',
2333
+ title: 'Word',
2334
+ icon: 'fa-light fa-file-word ax-text-blue-700',
2335
+ meta: [],
2336
+ },
2337
+ {
2338
+ name: 'docx',
2339
+ title: 'Word',
2340
+ icon: 'fa-light fa-file-word ax-text-blue-700',
2341
+ meta: [],
2342
+ },
2343
+ {
2344
+ name: 'xls',
2345
+ title: 'Excel',
2346
+ icon: 'fa-light fa-file-excel ax-text-green-700',
2347
+ meta: [],
2348
+ },
2349
+ {
2350
+ name: 'xlsx',
2351
+ title: 'Excel',
2352
+ icon: 'fa-light fa-file-excel ax-text-green-700',
2353
+ meta: [],
2354
+ },
2355
+ {
2356
+ name: 'ppt',
2357
+ title: 'PowerPoint',
2358
+ icon: 'fa-light fa-file-powerpoint ax-text-orange-700',
2359
+ meta: [],
2360
+ },
2361
+ {
2362
+ name: 'pptx',
2363
+ title: 'PowerPoint',
2364
+ icon: 'fa-light fa-file-powerpoint ax-text-orange-700',
2365
+ meta: [],
2366
+ },
2367
+ {
2368
+ name: 'txt',
2369
+ title: 'Text',
2370
+ icon: 'fa-light fa-file-lines ax-text-blue-600',
2371
+ meta: [],
2372
+ },
2373
+ {
2374
+ name: 'rtf',
2375
+ title: 'Rich Text',
2376
+ icon: 'fa-light fa-file-lines ax-text-blue-600',
2377
+ meta: [],
2378
+ },
2379
+ ],
2380
+ },
2381
+ ];
2382
+ }
2383
+ }
2384
+
2385
+ class AXMAudioFileTypeProvider {
2386
+ async items() {
2387
+ return [
2388
+ {
2389
+ name: 'audio',
2390
+ title: 'Audio',
2391
+ icon: 'fa-light fa-file-audio ax-text-green-500',
2392
+ extensions: [
2393
+ {
2394
+ name: 'mp3',
2395
+ title: 'MP3',
2396
+ icon: 'fa-light fa-file-audio ax-text-green-500',
2397
+ meta: [],
2398
+ },
2399
+ {
2400
+ name: 'wav',
2401
+ title: 'WAV',
2402
+ icon: 'fa-light fa-file-audio ax-text-green-500',
2403
+ meta: [],
2404
+ },
2405
+ {
2406
+ name: 'ogg',
2407
+ title: 'OGG',
2408
+ icon: 'fa-light fa-file-audio ax-text-green-500',
2409
+ meta: [],
2410
+ },
2411
+ {
2412
+ name: 'm4a',
2413
+ title: 'M4A',
2414
+ icon: 'fa-light fa-file-audio ax-text-green-500',
2415
+ meta: [],
2416
+ },
2417
+ {
2418
+ name: 'flac',
2419
+ title: 'FLAC',
2420
+ icon: 'fa-light fa-file-audio ax-text-green-500',
2421
+ meta: [],
2422
+ },
2423
+ ],
2424
+ },
2425
+ ];
2426
+ }
2427
+ }
2428
+
2429
+ class AXMArchiveFileTypeProvider {
2430
+ async items() {
2431
+ return [
2432
+ {
2433
+ name: 'archive',
2434
+ title: 'Archive',
2435
+ icon: 'fa-light fa-file-zipper ax-text-orange-500',
2436
+ extensions: [
2437
+ {
2438
+ name: 'zip',
2439
+ title: 'ZIP',
2440
+ icon: 'fa-light fa-file-zipper ax-text-orange-500',
2441
+ meta: [],
2442
+ },
2443
+ {
2444
+ name: 'rar',
2445
+ title: 'RAR',
2446
+ icon: 'fa-light fa-file-zipper ax-text-orange-500',
2447
+ meta: [],
2448
+ },
2449
+ {
2450
+ name: '7z',
2451
+ title: '7-Zip',
2452
+ icon: 'fa-light fa-file-zipper ax-text-orange-500',
2453
+ meta: [],
2454
+ },
2455
+ {
2456
+ name: 'tar',
2457
+ title: 'TAR',
2458
+ icon: 'fa-light fa-file-zipper ax-text-orange-500',
2459
+ meta: [],
2460
+ },
2461
+ {
2462
+ name: 'gz',
2463
+ title: 'GZIP',
2464
+ icon: 'fa-light fa-file-zipper ax-text-orange-500',
2465
+ meta: [],
2466
+ },
2467
+ ],
2468
+ },
2469
+ ];
2470
+ }
2471
+ }
2472
+
2473
+ class AXMCodeFileTypeProvider {
2474
+ async items() {
2475
+ return [
2476
+ {
2477
+ name: 'code',
2478
+ title: 'Code',
2479
+ icon: 'fa-light fa-file-code ax-text-blue-500',
2480
+ extensions: [
2481
+ {
2482
+ name: 'js',
2483
+ title: 'JavaScript',
2484
+ icon: 'fa-light fa-file-code ax-text-yellow-500',
2485
+ meta: [],
2486
+ },
2487
+ {
2488
+ name: 'ts',
2489
+ title: 'TypeScript',
2490
+ icon: 'fa-light fa-file-code ax-text-blue-600',
2491
+ meta: [],
2492
+ },
2493
+ {
2494
+ name: 'html',
2495
+ title: 'HTML',
2496
+ icon: 'fa-light fa-file-code ax-text-orange-600',
2497
+ meta: [],
2498
+ },
2499
+ {
2500
+ name: 'css',
2501
+ title: 'CSS',
2502
+ icon: 'fa-light fa-file-code ax-text-pink-500',
2503
+ meta: [],
2504
+ },
2505
+ {
2506
+ name: 'json',
2507
+ title: 'JSON',
2508
+ icon: 'fa-light fa-file-code ax-text-green-500',
2509
+ meta: [],
2510
+ },
2511
+ {
2512
+ name: 'xml',
2513
+ title: 'XML',
2514
+ icon: 'fa-light fa-file-code ax-text-green-500',
2515
+ meta: [],
2516
+ },
2517
+ {
2518
+ name: 'py',
2519
+ title: 'Python',
2520
+ icon: 'fa-light fa-file-code ax-text-yellow-500',
2521
+ meta: [],
2522
+ },
2523
+ {
2524
+ name: 'java',
2525
+ title: 'Java',
2526
+ icon: 'fa-light fa-file-code ax-text-red-500',
2527
+ meta: [],
2528
+ },
2529
+ {
2530
+ name: 'cpp',
2531
+ title: 'C++',
2532
+ icon: 'fa-light fa-file-code ax-text-blue-500',
2533
+ meta: [],
2534
+ },
2535
+ {
2536
+ name: 'cs',
2537
+ title: 'C#',
2538
+ icon: 'fa-light fa-file-code ax-text-blue-500',
2539
+ meta: [],
2540
+ },
2541
+ ],
2542
+ },
2543
+ ];
2544
+ }
2545
+ }
2546
+
2547
+ class AXMFileTypeExtensionWidgetColumnComponent extends AXPWidgetComponent {
2548
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2549
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMFileTypeExtensionWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2550
+ }
2551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetColumnComponent, decorators: [{
2552
+ type: Component,
2553
+ args: [{
2554
+ template: ``,
2555
+ changeDetection: ChangeDetectionStrategy.OnPush,
2556
+ imports: [CommonModule],
2557
+ inputs: ['rawValue'],
2558
+ }]
2559
+ }] });
2560
+
2561
+ var fileTypeExtensionColumn_component = /*#__PURE__*/Object.freeze({
2562
+ __proto__: null,
2563
+ AXMFileTypeExtensionWidgetColumnComponent: AXMFileTypeExtensionWidgetColumnComponent
2564
+ });
2565
+
2566
+ class AXMFileTypeExtensionWidgetDesignerComponent extends AXPWidgetComponent {
2567
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetDesignerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2568
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMFileTypeExtensionWidgetDesignerComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2569
+ }
2570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetDesignerComponent, decorators: [{
2571
+ type: Component,
2572
+ args: [{
2573
+ template: ``,
2574
+ changeDetection: ChangeDetectionStrategy.OnPush,
2575
+ imports: [CommonModule],
2576
+ inputs: ['rawValue'],
2577
+ }]
2578
+ }] });
2579
+
2580
+ // @if(allowSearch()) {
2581
+ // <ax-search-box><ax-clear-button></ax-clear-button></ax-search-box>
2582
+ // } @if(hasClearButton()) {
2583
+ // <ax-clear-button></ax-clear-button>
2584
+ // } @for (validation of validationRules(); track $index) {
2585
+ // <ax-validation-rule
2586
+ // [rule]="validation.rule"
2587
+ // [message]="validation.options?.message"
2588
+ // [options]="validation.options"
2589
+ // ></ax-validation-rule>
2590
+ // } @for (validation of validationRules(); track $index) {
2591
+ // <ax-validation-rule
2592
+ // [rule]="validation.rule"
2593
+ // [message]="validation.options?.message"
2594
+ // [options]="validation.options"
2595
+ // ></ax-validation-rule>
2596
+ class AXMFileTypeExtensionWidgetEditComponent extends AXPWidgetComponent {
2597
+ constructor() {
2598
+ super(...arguments);
2599
+ this.fileTypeService = inject(AXPFileTypeProviderService);
2600
+ this.dataSource = new AXDataSource({
2601
+ load: async (_) => {
2602
+ try {
2603
+ const res = await this.fileTypeService.items();
2604
+ const types = res
2605
+ .map((item) => {
2606
+ const { meta, extensions, ...rest } = item;
2607
+ return extensions.map((ext) => {
2608
+ const { meta, ...extRest } = ext;
2609
+ return {
2610
+ ...rest,
2611
+ ...extRest,
2612
+ name: `${item.name}.${ext.name}`,
2613
+ title: `${item.title}/${ext.title}`,
2614
+ };
2615
+ });
2616
+ })
2617
+ .flat();
2618
+ return {
2619
+ items: types,
2620
+ total: types.length,
2621
+ };
2622
+ }
2623
+ catch (e) {
2624
+ console.log(e);
2625
+ }
2626
+ return {
2627
+ items: [],
2628
+ total: 0,
2629
+ };
2630
+ },
2631
+ pageSize: 100,
2632
+ });
2633
+ this.selectedItems = signal(this.getValue()?.selectedItems ?? []);
2634
+ this.context = signal(this.getValue()?.context ?? {});
2635
+ }
2636
+ ngOnInit() {
2637
+ super.ngOnInit();
2638
+ this.selectedItems.set(this.getValue()?.selectedItems ?? []);
2639
+ this.context.set(this.getValue()?.context ?? {});
2640
+ }
2641
+ outputs() {
2642
+ return ['selectedItems', 'context'];
2643
+ }
2644
+ handleOnContextChange(e) {
2645
+ this.context.set(e.data);
2646
+ this.setValue({ ...this.getValue(), context: e.data });
2647
+ }
2648
+ async handleValueChange(e) {
2649
+ const selectItems = e.component.selectedItems;
2650
+ this.setValue({ ...this.getValue(), selectedItems: selectItems });
2651
+ const result = {};
2652
+ for (const item of selectItems) {
2653
+ const type = item.name.split('.')[0];
2654
+ const ext = item.name.split('.')[1];
2655
+ var fileType = await this.fileTypeService.get(type);
2656
+ if (fileType != undefined) {
2657
+ const extension = fileType.extensions.find((extension) => extension.name == ext) || { name: ext, title: '' };
2658
+ if (extension.meta) {
2659
+ for (const meta of extension.meta) {
2660
+ if (!get(meta, '__node__')) {
2661
+ set(meta, '__node__', typeof meta.interface == 'function' ? await meta.interface() : meta.interface);
2662
+ }
2663
+ }
2664
+ }
2665
+ if (fileType.meta) {
2666
+ for (const meta of fileType.meta) {
2667
+ if (!get(meta, '__node__')) {
2668
+ set(meta, '__node__', typeof meta.interface == 'function' ? await meta.interface() : meta.interface);
2669
+ }
2670
+ }
2671
+ }
2672
+ if (result[type]) {
2673
+ result[type] = {
2674
+ ...fileType,
2675
+ extensions: [...result[type].extensions, extension],
2676
+ };
2677
+ }
2678
+ else {
2679
+ result[type] = {
2680
+ ...fileType,
2681
+ extensions: [extension],
2682
+ };
2683
+ }
2684
+ }
2685
+ }
2686
+ this.selectedItems.set(Object.values(result));
2687
+ }
2688
+ getNode(meta) {
2689
+ return get(meta, '__node__');
2690
+ }
2691
+ filedIsRequired(meta) {
2692
+ const node = get(meta, '__node__');
2693
+ if (node && node.options && node.options.validations) {
2694
+ return node.options.validations.some((validation) => validation.rule === 'required');
2695
+ }
2696
+ return false;
2697
+ }
2698
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2699
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMFileTypeExtensionWidgetEditComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
2700
+ <div>
2701
+ <ax-select-box
2702
+ #dd
2703
+ [dataSource]="dataSource"
2704
+ valueField="name"
2705
+ textField="title"
2706
+ [multiple]="true"
2707
+ [ngModel]="getValue()?.selectedItems"
2708
+ (onValueChanged)="handleValueChange($event)"
2709
+ >
2710
+ </ax-select-box>
2711
+ <div class="ax-py-3"></div>
2712
+ <axp-widgets-container (onContextChanged)="handleOnContextChange($event)" [context]="context()">
2713
+ @if (selectedItems().length > 0) {
2714
+ <ax-collapse-group look="fill">
2715
+ @for (item of selectedItems(); track item.name) {
2716
+ <!-- File Types -->
2717
+ <ax-collapse [caption]="item.title">
2718
+ <div class="ax-flex ax-flex-col ax-gap-5">
2719
+ @if (item.meta && item.meta.length > 0) {
2720
+ <div class="ax-flex ax-flex-col ax-gap-2">
2721
+ <ax-text [textContent]="'Global Meta Data'" class="ax-font-bold ax-text-sm"></ax-text>
2722
+ @for (metaFile of item.meta; track metaFile.name) {
2723
+ <!-- File Meta Data -->
2724
+ <ax-form-field>
2725
+ <ax-label [required]="filedIsRequired(metaFile)">{{ metaFile.title }}</ax-label>
2726
+ <ng-container axp-widget-renderer [node]="getNode(metaFile)" [mode]="'edit'"></ng-container>
2727
+ </ax-form-field>
2728
+ }
2729
+ </div>
2730
+ }
2731
+ @if (item.extensions && item.extensions.length > 0) {
2732
+ <div class="ax-flex ax-flex-col ax-gap-3">
2733
+ @for (ext of item.extensions; track ext.name) {
2734
+ <!-- Extensions -->
2735
+ @if (ext.meta && ext.meta.length > 0) {
2736
+ <ax-text [textContent]="ext.title" class="ax-font-bold ax-text-sm"></ax-text>
2737
+ <div class="ax-flex ax-flex-col ax-gap-2">
2738
+ @for (extMeta of ext.meta; track $index) {
2739
+ <!-- Extension Meta Data -->
2740
+ <ax-form-field>
2741
+ <ax-label [required]="filedIsRequired(extMeta)">{{ extMeta.title }}</ax-label>
2742
+ <ng-container axp-widget-renderer [node]="getNode(extMeta)"
2743
+ [mode]="'edit'"></ng-container>
2744
+ </ax-form-field>
2745
+ }
2746
+ </div>
2747
+ }
2748
+ <!-- End Extension Meta Data -->
2749
+ }
2750
+ </div>
2751
+ <!-- End Extensions -->
2752
+ }
2753
+ </div>
2754
+ </ax-collapse>
2755
+ }
2756
+ <!-- End File Types -->
2757
+ </ax-collapse-group>
2758
+ }
2759
+ </axp-widgets-container>
2760
+ </div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { 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: AXFormModule }, { kind: "component", type: i7.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i6.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i6.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXCollapseModule }, { kind: "component", type: i7$1.AXCollapseComponent, selector: "ax-collapse", inputs: ["disabled", "look", "isCollapsed", "showHeader", "caption", "icon", "isLoading", "headerTemplate"], outputs: ["onClick", "isCollapsedChange"] }, { kind: "component", type: i7$1.AXCollapseGroupComponent, selector: "ax-collapse-group", inputs: ["look", "accordion", "activeIndex"], outputs: ["accordionChange", "activeIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2761
+ }
2762
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetEditComponent, decorators: [{
2763
+ type: Component,
2764
+ args: [{
2765
+ template: `
2766
+ <div>
2767
+ <ax-select-box
2768
+ #dd
2769
+ [dataSource]="dataSource"
2770
+ valueField="name"
2771
+ textField="title"
2772
+ [multiple]="true"
2773
+ [ngModel]="getValue()?.selectedItems"
2774
+ (onValueChanged)="handleValueChange($event)"
2775
+ >
2776
+ </ax-select-box>
2777
+ <div class="ax-py-3"></div>
2778
+ <axp-widgets-container (onContextChanged)="handleOnContextChange($event)" [context]="context()">
2779
+ @if (selectedItems().length > 0) {
2780
+ <ax-collapse-group look="fill">
2781
+ @for (item of selectedItems(); track item.name) {
2782
+ <!-- File Types -->
2783
+ <ax-collapse [caption]="item.title">
2784
+ <div class="ax-flex ax-flex-col ax-gap-5">
2785
+ @if (item.meta && item.meta.length > 0) {
2786
+ <div class="ax-flex ax-flex-col ax-gap-2">
2787
+ <ax-text [textContent]="'Global Meta Data'" class="ax-font-bold ax-text-sm"></ax-text>
2788
+ @for (metaFile of item.meta; track metaFile.name) {
2789
+ <!-- File Meta Data -->
2790
+ <ax-form-field>
2791
+ <ax-label [required]="filedIsRequired(metaFile)">{{ metaFile.title }}</ax-label>
2792
+ <ng-container axp-widget-renderer [node]="getNode(metaFile)" [mode]="'edit'"></ng-container>
2793
+ </ax-form-field>
2794
+ }
2795
+ </div>
2796
+ }
2797
+ @if (item.extensions && item.extensions.length > 0) {
2798
+ <div class="ax-flex ax-flex-col ax-gap-3">
2799
+ @for (ext of item.extensions; track ext.name) {
2800
+ <!-- Extensions -->
2801
+ @if (ext.meta && ext.meta.length > 0) {
2802
+ <ax-text [textContent]="ext.title" class="ax-font-bold ax-text-sm"></ax-text>
2803
+ <div class="ax-flex ax-flex-col ax-gap-2">
2804
+ @for (extMeta of ext.meta; track $index) {
2805
+ <!-- Extension Meta Data -->
2806
+ <ax-form-field>
2807
+ <ax-label [required]="filedIsRequired(extMeta)">{{ extMeta.title }}</ax-label>
2808
+ <ng-container axp-widget-renderer [node]="getNode(extMeta)"
2809
+ [mode]="'edit'"></ng-container>
2810
+ </ax-form-field>
2811
+ }
2812
+ </div>
2813
+ }
2814
+ <!-- End Extension Meta Data -->
2815
+ }
2816
+ </div>
2817
+ <!-- End Extensions -->
2818
+ }
2819
+ </div>
2820
+ </ax-collapse>
2821
+ }
2822
+ <!-- End File Types -->
2823
+ </ax-collapse-group>
2824
+ }
2825
+ </axp-widgets-container>
2826
+ </div>`,
2827
+ changeDetection: ChangeDetectionStrategy.OnPush,
2828
+ imports: [CommonModule, AXSelectBoxModule, FormsModule, AXFormModule, AXLabelModule, AXDecoratorModule, AXPLayoutBuilderModule, AXCollapseModule],
2829
+ inputs: [],
2830
+ }]
2831
+ }] });
2832
+
2833
+ var fileTypeExtensionEdit_component = /*#__PURE__*/Object.freeze({
2834
+ __proto__: null,
2835
+ AXMFileTypeExtensionWidgetEditComponent: AXMFileTypeExtensionWidgetEditComponent
2836
+ });
2837
+
2838
+ class AXMFileTypeExtensionWidgetViewComponent extends AXPWidgetComponent {
2839
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
2840
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMFileTypeExtensionWidgetViewComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2841
+ }
2842
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeExtensionWidgetViewComponent, decorators: [{
2843
+ type: Component,
2844
+ args: [{
2845
+ template: ``,
2846
+ changeDetection: ChangeDetectionStrategy.OnPush,
2847
+ imports: [CommonModule],
2848
+ inputs: ['rawValue'],
2849
+ }]
2850
+ }] });
2851
+
2852
+ var fileTypeExtensionView_component = /*#__PURE__*/Object.freeze({
2853
+ __proto__: null,
2854
+ AXMFileTypeExtensionWidgetViewComponent: AXMFileTypeExtensionWidgetViewComponent
2855
+ });
2856
+
2857
+ const AXmFileTypeExtensionWidget = {
2858
+ name: 'file-type-extension',
2859
+ title: 'File Type Extension',
2860
+ description: 'Uploads and manages files',
2861
+ icon: 'fa-solid fa-files',
2862
+ group: AXP_WIDGETS_ADVANCE_GROUP,
2863
+ type: 'editor',
2864
+ properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY],
2865
+ components: {
2866
+ view: {
2867
+ component: () => Promise.resolve().then(function () { return fileTypeExtensionView_component; }).then((c) => c.AXMFileTypeExtensionWidgetViewComponent),
2868
+ },
2869
+ edit: {
2870
+ component: () => Promise.resolve().then(function () { return fileTypeExtensionEdit_component; }).then((c) => c.AXMFileTypeExtensionWidgetEditComponent),
2871
+ },
2872
+ // filter: {
2873
+ // component: () => import('./file-type-extension-filter.component').then((c) => c.AXPFileBoxWidgetFilterComponent),
2874
+ // },
2875
+ column: {
2876
+ component: () => Promise.resolve().then(function () { return fileTypeExtensionColumn_component; }).then((c) => c.AXMFileTypeExtensionWidgetColumnComponent),
2877
+ },
2878
+ // print: {
2879
+ // component: () => import('./file-type-extension-print.component').then((c) => c.AXPFileBoxWidgetPrintComponent),
2880
+ // },
2881
+ designer: {
2882
+ component: () => Promise.resolve().then(function () { return fileTypeExtensionEdit_component; }).then((c) => c.AXMFileTypeExtensionWidgetEditComponent),
2883
+ },
2884
+ },
2885
+ };
2886
+
2887
+ class AXMFileTypeModule {
2888
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2889
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeModule }); }
2890
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeModule, providers: [
2891
+ {
2892
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2893
+ useClass: AXMImageFileTypeProvider,
2894
+ multi: true,
2895
+ },
2896
+ {
2897
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2898
+ useClass: AXMVideoFileTypeProvider,
2899
+ multi: true,
2900
+ },
2901
+ {
2902
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2903
+ useClass: AXMDocumentFileTypeProvider,
2904
+ multi: true,
2905
+ },
2906
+ {
2907
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2908
+ useClass: AXMAudioFileTypeProvider,
2909
+ multi: true,
2910
+ },
2911
+ {
2912
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2913
+ useClass: AXMCodeFileTypeProvider,
2914
+ multi: true,
2915
+ },
2916
+ {
2917
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2918
+ useClass: AXMArchiveFileTypeProvider,
2919
+ multi: true,
2920
+ },
2921
+ ] }); }
2922
+ }
2923
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileTypeModule, decorators: [{
2924
+ type: NgModule,
2925
+ args: [{
2926
+ providers: [
2927
+ {
2928
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2929
+ useClass: AXMImageFileTypeProvider,
2930
+ multi: true,
2931
+ },
2932
+ {
2933
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2934
+ useClass: AXMVideoFileTypeProvider,
2935
+ multi: true,
2936
+ },
2937
+ {
2938
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2939
+ useClass: AXMDocumentFileTypeProvider,
2940
+ multi: true,
2941
+ },
2942
+ {
2943
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2944
+ useClass: AXMAudioFileTypeProvider,
2945
+ multi: true,
2946
+ },
2947
+ {
2948
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2949
+ useClass: AXMCodeFileTypeProvider,
2950
+ multi: true,
2951
+ },
2952
+ {
2953
+ provide: AXP_FILE_TYPE_INFO_PROVIDER,
2954
+ useClass: AXMArchiveFileTypeProvider,
2955
+ multi: true,
2956
+ },
2957
+ ],
2958
+ }]
2959
+ }] });
2960
+
2961
+ function routesFacory() {
2962
+ const config = inject(AXP_ENTITY_CONFIG_TOKEN);
2963
+ const routes = [
2964
+ {
2965
+ path: ':app/drive/:scope',
2966
+ component: config.viewers.root(),
2967
+ canActivate: [AXPAuthGuard],
2968
+ data: { reuse: true },
2969
+ children: [
2970
+ {
2971
+ path: '',
2972
+ loadComponent: () => import('./acorex-modules-document-management-drive.component-bjnFFaLS.mjs').then((c) => c.AXMDocumentDriveComponent),
2973
+ },
2974
+ {
2975
+ path: ':id',
2976
+ loadComponent: () => import('./acorex-modules-document-management-drive.component-bjnFFaLS.mjs').then((c) => c.AXMDocumentDriveComponent),
2977
+ },
2978
+ ],
2979
+ },
2980
+ ];
2981
+ return routes;
2982
+ }
2983
+ class AXMDocumentManagementModule {
2984
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2985
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
2986
+ AXMDocumentManagementDocumentTypeMetaValueEntityModule,
2987
+ AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
2988
+ AXMDocumentManagementDocumentTypeEntityModule,
2989
+ AXMDocumentManagementDocumentEntityModule, i6.AXPLayoutBuilderModule, AXMFileTypeModule] }); }
2990
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, providers: [
2991
+ {
2992
+ provide: AXMFolderService,
2993
+ useClass: AXMFolderServiceImpl,
2994
+ },
2995
+ {
2996
+ provide: AXP_MENU_PROVIDER,
2997
+ useClass: AXMMenuProvider,
2998
+ multi: true,
2999
+ },
3000
+ {
3001
+ provide: AXP_ENTITY_DEFINITION_LOADER,
3002
+ useClass: AXMEntityProvider,
3003
+ multi: true,
3004
+ },
3005
+ {
3006
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
3007
+ useClass: AXMSettingProvider,
3008
+ multi: true,
3009
+ },
3010
+ {
3011
+ provide: AXP_SEARCH_PROVIDER,
3012
+ useClass: AXMSearchCommandProvider,
3013
+ multi: true,
3014
+ },
3015
+ {
3016
+ provide: AXP_PERMISSION_PROVIDER,
3017
+ useClass: AXMPermissionProvider,
3018
+ multi: true,
3019
+ },
3020
+ {
3021
+ provide: ROUTES,
3022
+ multi: true,
3023
+ useFactory: routesFacory,
3024
+ },
3025
+ ], imports: [AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
3026
+ AXMDocumentManagementDocumentTypeMetaValueEntityModule,
3027
+ AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
3028
+ AXMDocumentManagementDocumentTypeEntityModule,
3029
+ AXMDocumentManagementDocumentEntityModule,
3030
+ AXPLayoutBuilderModule.forChild({
3031
+ widgets: [AXmFileTypeExtensionWidget],
3032
+ }),
3033
+ AXMFileTypeModule] }); }
3034
+ }
3035
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMDocumentManagementModule, decorators: [{
3036
+ type: NgModule,
3037
+ args: [{
3038
+ imports: [
3039
+ AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule,
3040
+ AXMDocumentManagementDocumentTypeMetaValueEntityModule,
3041
+ AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule,
3042
+ AXMDocumentManagementDocumentTypeEntityModule,
3043
+ AXMDocumentManagementDocumentEntityModule,
3044
+ AXPLayoutBuilderModule.forChild({
3045
+ widgets: [AXmFileTypeExtensionWidget],
3046
+ }),
3047
+ AXMFileTypeModule,
3048
+ ],
1790
3049
  exports: [],
1791
- declarations: [],
1792
3050
  providers: [
3051
+ {
3052
+ provide: AXMFolderService,
3053
+ useClass: AXMFolderServiceImpl,
3054
+ },
1793
3055
  {
1794
3056
  provide: AXP_MENU_PROVIDER,
1795
3057
  useClass: AXMMenuProvider,
@@ -1815,15 +3077,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1815
3077
  useClass: AXMPermissionProvider,
1816
3078
  multi: true,
1817
3079
  },
1818
- ]
3080
+ {
3081
+ provide: ROUTES,
3082
+ multi: true,
3083
+ useFactory: routesFacory,
3084
+ },
3085
+ ],
1819
3086
  }]
1820
3087
  }] });
1821
3088
 
1822
- //export * from './lib/pages';
1823
-
1824
3089
  /**
1825
3090
  * Generated bundle index. Do not edit.
1826
3091
  */
1827
3092
 
1828
- export { AXMDocumentManagementModule, AXMEntityProvider, AXMMenuProvider, AXMSearchCommandProvider, AXMSettingProvider, RootConfig };
3093
+ export { AXMDocumentManagementDocumentEntityModule, AXMDocumentManagementDocumentTypeEntityModule, AXMDocumentManagementDocumentTypeEntityService, AXMDocumentManagementDocumentTypeEntityServiceImpl, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule, AXMDocumentManagementDocumentTypeMetaDefinitionEntityService, AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl, AXMDocumentManagementDocumentTypeMetaValueEntityModule, AXMDocumentManagementDocumentTypeMetaValueEntityService, AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl, AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule, AXMDocumentManagementDocumentTypeStatusDefinitionEntityService, AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl, AXMDocumentManagementModule, AXMDocumentService, AXMDocumentServiceImpl, AXMEntityProvider, AXMFolderService, AXMFolderServiceImpl, AXMMenuProvider, AXMSearchCommandProvider, AXMSettingProvider, RootConfig, documentFactory, documentTypeFactory, documentTypeMetaDefinitionfactory, documentTypeMetaValueFactory, documentTypeStatusDefinitionFactory, folderFactory };
1829
3094
  //# sourceMappingURL=acorex-modules-document-management.mjs.map