@acorex/modules 18.2.4 → 19.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/auth/lib/account/app-chooser/app-chooser-slot.component.d.ts +1 -1
  2. package/fesm2022/{acorex-modules-application-management-module-designer.component-B6WPz0N8.mjs → acorex-modules-application-management-module-designer.component-1pXIvIeG.mjs} +9 -23
  3. package/fesm2022/acorex-modules-application-management-module-designer.component-1pXIvIeG.mjs.map +1 -0
  4. package/fesm2022/acorex-modules-application-management.mjs +44 -48
  5. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  6. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DQzSrtut.mjs → acorex-modules-auth-acorex-modules-auth-CtWwcZOU.mjs} +44 -51
  7. package/fesm2022/acorex-modules-auth-acorex-modules-auth-CtWwcZOU.mjs.map +1 -0
  8. package/fesm2022/{acorex-modules-auth-app-chooser.component-BFQgjqFV.mjs → acorex-modules-auth-app-chooser.component-BK4Hs5OP.mjs} +7 -13
  9. package/fesm2022/acorex-modules-auth-app-chooser.component-BK4Hs5OP.mjs.map +1 -0
  10. package/fesm2022/{acorex-modules-auth-blank.layout-Bq822Iz4.mjs → acorex-modules-auth-blank.layout-B1a0710P.mjs} +5 -5
  11. package/fesm2022/acorex-modules-auth-blank.layout-B1a0710P.mjs.map +1 -0
  12. package/fesm2022/{acorex-modules-auth-login.module-KR2dB8vW.mjs → acorex-modules-auth-login.module-Cvr3l9wl.mjs} +8 -24
  13. package/fesm2022/acorex-modules-auth-login.module-Cvr3l9wl.mjs.map +1 -0
  14. package/fesm2022/acorex-modules-auth-master.layout-4jTF1Xhx.mjs +23 -0
  15. package/fesm2022/acorex-modules-auth-master.layout-4jTF1Xhx.mjs.map +1 -0
  16. package/fesm2022/{acorex-modules-auth-password.component-DpjEjw0o.mjs → acorex-modules-auth-password.component-C5soTmv9.mjs} +8 -16
  17. package/fesm2022/acorex-modules-auth-password.component-C5soTmv9.mjs.map +1 -0
  18. package/fesm2022/{acorex-modules-auth-password.component-9uIMNoQE.mjs → acorex-modules-auth-password.component-DeCK_glZ.mjs} +6 -19
  19. package/fesm2022/acorex-modules-auth-password.component-DeCK_glZ.mjs.map +1 -0
  20. package/fesm2022/{acorex-modules-auth-routes-CWqGOFnQ.mjs → acorex-modules-auth-routes-DqgtVe9G.mjs} +2 -2
  21. package/fesm2022/{acorex-modules-auth-routes-CWqGOFnQ.mjs.map → acorex-modules-auth-routes-DqgtVe9G.mjs.map} +1 -1
  22. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-6qDoCUBo.mjs → acorex-modules-auth-tenant-chooser.component-CorZ4Z7h.mjs} +6 -6
  23. package/fesm2022/acorex-modules-auth-tenant-chooser.component-CorZ4Z7h.mjs.map +1 -0
  24. package/fesm2022/{acorex-modules-auth-two-factor-code.component-BJKmvI7y.mjs → acorex-modules-auth-two-factor-code.component-BEsTVMeC.mjs} +6 -6
  25. package/fesm2022/acorex-modules-auth-two-factor-code.component-BEsTVMeC.mjs.map +1 -0
  26. package/fesm2022/{acorex-modules-auth-two-factor.module-Bnoi3ZXB.mjs → acorex-modules-auth-two-factor.module-C99NYq3o.mjs} +7 -23
  27. package/fesm2022/acorex-modules-auth-two-factor.module-C99NYq3o.mjs.map +1 -0
  28. package/fesm2022/acorex-modules-auth.mjs +1 -19
  29. package/fesm2022/acorex-modules-auth.mjs.map +1 -1
  30. package/fesm2022/acorex-modules-backend.mjs +36 -35
  31. package/fesm2022/acorex-modules-backend.mjs.map +1 -1
  32. package/fesm2022/acorex-modules-conversation.mjs +50 -51
  33. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  34. package/fesm2022/acorex-modules-form-template-management-category.entity-xUkZHVgy.mjs +195 -0
  35. package/fesm2022/acorex-modules-form-template-management-category.entity-xUkZHVgy.mjs.map +1 -0
  36. package/fesm2022/{acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs → acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs} +8 -5
  37. package/fesm2022/acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs.map +1 -0
  38. package/fesm2022/acorex-modules-form-template-management-template-picker.component-D_FkgF0W.mjs +123 -0
  39. package/fesm2022/acorex-modules-form-template-management-template-picker.component-D_FkgF0W.mjs.map +1 -0
  40. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-Bgx5YRBc.mjs +111 -0
  41. package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-Bgx5YRBc.mjs.map +1 -0
  42. package/fesm2022/acorex-modules-form-template-management-template.entity-CGhbmYel.mjs +470 -0
  43. package/fesm2022/acorex-modules-form-template-management-template.entity-CGhbmYel.mjs.map +1 -0
  44. package/fesm2022/acorex-modules-form-template-management.mjs +383 -730
  45. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
  46. package/fesm2022/acorex-modules-localization-management.mjs +332 -334
  47. package/fesm2022/acorex-modules-localization-management.mjs.map +1 -1
  48. package/fesm2022/acorex-modules-notification-management.mjs +33 -34
  49. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  50. package/fesm2022/acorex-modules-platform-management.mjs +77 -84
  51. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  52. package/fesm2022/acorex-modules-scheduler-job-management.mjs +34 -23
  53. package/fesm2022/acorex-modules-scheduler-job-management.mjs.map +1 -1
  54. package/fesm2022/acorex-modules-text-template-management.mjs +22 -22
  55. package/form-template-management/index.d.ts +4 -0
  56. package/form-template-management/lib/components/widgets/template/index.d.ts +4 -0
  57. package/form-template-management/lib/components/widgets/template/template-picker/template-picker.component.d.ts +30 -0
  58. package/form-template-management/lib/components/widgets/template/template-widget-designer.component.d.ts +25 -0
  59. package/form-template-management/lib/components/widgets/template/template-widget-edit.component.d.ts +13 -0
  60. package/form-template-management/lib/components/widgets/template/template-widget-view.component.d.ts +11 -0
  61. package/form-template-management/lib/components/widgets/template/template-widget.config.d.ts +5 -0
  62. package/form-template-management/lib/components/widgets/template/template.provider.d.ts +30 -0
  63. package/form-template-management/lib/entities/category/category.types.d.ts +0 -1
  64. package/form-template-management/lib/entities/category/index.d.ts +0 -1
  65. package/form-template-management/lib/entities/template/index.d.ts +0 -1
  66. package/form-template-management/lib/entities/template/template.types.d.ts +11 -0
  67. package/form-template-management/lib/pages/designer/designer.page.d.ts +1 -0
  68. package/form-template-management/lib/services/designer-connector.service.d.ts +7 -3
  69. package/form-template-management/lib/services/template.provider.d.ts +3 -4
  70. package/localization-management/index.d.ts +2 -1
  71. package/package.json +11 -33
  72. package/platform-management/index.d.ts +2 -1
  73. package/platform-management/lib/common/{entity.loader.d.ts → entity.provider.d.ts} +3 -3
  74. package/platform-management/lib/common/index.d.ts +1 -2
  75. package/scheduler-job-management/index.d.ts +1 -0
  76. package/esm2022/acorex-modules.mjs +0 -5
  77. package/esm2022/application-management/acorex-modules-application-management.mjs +0 -5
  78. package/esm2022/application-management/index.mjs +0 -14
  79. package/esm2022/application-management/lib/application-management-mock-data.mjs +0 -109
  80. package/esm2022/application-management/lib/application-management.module.mjs +0 -117
  81. package/esm2022/application-management/lib/application-management.route.mjs +0 -29
  82. package/esm2022/application-management/lib/application-management.service.mjs +0 -66
  83. package/esm2022/application-management/lib/application-management.source.mjs +0 -9
  84. package/esm2022/application-management/lib/application-management.types.mjs +0 -2
  85. package/esm2022/application-management/lib/const.mjs +0 -6
  86. package/esm2022/application-management/lib/entities/application-module.entity.mjs +0 -270
  87. package/esm2022/application-management/lib/entities/applications.entity.mjs +0 -311
  88. package/esm2022/application-management/lib/entities/edition.entity.mjs +0 -281
  89. package/esm2022/application-management/lib/entities/entity.entity.mjs +0 -295
  90. package/esm2022/application-management/lib/entities/feature.entity.mjs +0 -281
  91. package/esm2022/application-management/lib/entities/modules.entity.mjs +0 -321
  92. package/esm2022/application-management/lib/entities/permission.entity.mjs +0 -281
  93. package/esm2022/application-management/lib/entities/property.entity.mjs +0 -447
  94. package/esm2022/application-management/lib/entity.loader.mjs +0 -46
  95. package/esm2022/application-management/lib/layouts/index.mjs +0 -2
  96. package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +0 -84
  97. package/esm2022/application-management/lib/menu.provider.mjs +0 -28
  98. package/esm2022/application-management/lib/module-designer/module-designer.component.mjs +0 -150
  99. package/esm2022/application-management/lib/module-designer/module-designer.service.mjs +0 -3
  100. package/esm2022/application-management/lib/module-designer/module-designer.type.mjs +0 -2
  101. package/esm2022/application-management/lib/services/application-management.service.mjs +0 -17
  102. package/esm2022/application-management/lib/services/application-module-management.service.mjs +0 -17
  103. package/esm2022/application-management/lib/services/context-menu.service.mjs +0 -166
  104. package/esm2022/application-management/lib/services/edition-management.service.mjs +0 -17
  105. package/esm2022/application-management/lib/services/entity-management.service.mjs +0 -17
  106. package/esm2022/application-management/lib/services/feature-management.service.mjs +0 -17
  107. package/esm2022/application-management/lib/services/module-management.service.mjs +0 -17
  108. package/esm2022/application-management/lib/services/permission-management.service.mjs +0 -17
  109. package/esm2022/application-management/lib/services/property-management.service.mjs +0 -17
  110. package/esm2022/application-management/lib/workflows/create-module-entity.workflow.mjs +0 -66
  111. package/esm2022/application-management/lib/workflows/index.mjs +0 -3
  112. package/esm2022/application-management/lib/workflows/show-module-entity-details.workflow.mjs +0 -9
  113. package/esm2022/auth/acorex-modules-auth.mjs +0 -5
  114. package/esm2022/auth/index.mjs +0 -5
  115. package/esm2022/auth/lib/account/account.module.mjs +0 -110
  116. package/esm2022/auth/lib/account/app-chooser/app-chooser-list.component.mjs +0 -31
  117. package/esm2022/auth/lib/account/app-chooser/app-chooser-slot.component.mjs +0 -42
  118. package/esm2022/auth/lib/account/app-chooser/app-chooser.component.mjs +0 -62
  119. package/esm2022/auth/lib/account/profile/profile-slot.component.mjs +0 -108
  120. package/esm2022/auth/lib/account/tenant-chooser/tenant-chooser-dropdown.component.mjs +0 -26
  121. package/esm2022/auth/lib/account/tenant-chooser/tenant-chooser.component.mjs +0 -80
  122. package/esm2022/auth/lib/auth.config.mjs +0 -23
  123. package/esm2022/auth/lib/auth.module.mjs +0 -51
  124. package/esm2022/auth/lib/auth.routes.mjs +0 -39
  125. package/esm2022/auth/lib/error-handler.mjs +0 -47
  126. package/esm2022/auth/lib/forgot/password/password.component.mjs +0 -56
  127. package/esm2022/auth/lib/forgot/routes.mjs +0 -7
  128. package/esm2022/auth/lib/login/login.module.mjs +0 -52
  129. package/esm2022/auth/lib/login/password/password.component.mjs +0 -118
  130. package/esm2022/auth/lib/menu.provider.mjs +0 -41
  131. package/esm2022/auth/lib/shared/layouts/blank/blank.layout.mjs +0 -15
  132. package/esm2022/auth/lib/shared/layouts/master/master.layout.mjs +0 -20
  133. package/esm2022/auth/lib/shared/services/idle.service.mjs +0 -42
  134. package/esm2022/auth/lib/shared/services/index.mjs +0 -2
  135. package/esm2022/auth/lib/store/auth.effects.mjs +0 -90
  136. package/esm2022/auth/lib/store/index.mjs +0 -3
  137. package/esm2022/auth/lib/two-factor/two-factor-code/two-factor-code.component.mjs +0 -37
  138. package/esm2022/auth/lib/two-factor/two-factor.module.mjs +0 -42
  139. package/esm2022/backend/acorex-modules-backend.mjs +0 -5
  140. package/esm2022/backend/index.mjs +0 -5
  141. package/esm2022/backend/lib/auth/oidc/application.loader.mjs +0 -54
  142. package/esm2022/backend/lib/auth/oidc/configuration.service.mjs +0 -52
  143. package/esm2022/backend/lib/auth/oidc/feature.loader.mjs +0 -21
  144. package/esm2022/backend/lib/auth/oidc/index.mjs +0 -7
  145. package/esm2022/backend/lib/auth/oidc/oidc.strategy.mjs +0 -217
  146. package/esm2022/backend/lib/auth/oidc/permission.loader.mjs +0 -34
  147. package/esm2022/backend/lib/auth/oidc/signincallback.component.mjs +0 -43
  148. package/esm2022/backend/lib/auth/oidc/tenant.loader.mjs +0 -34
  149. package/esm2022/backend/lib/backend.configs.mjs +0 -2
  150. package/esm2022/backend/lib/backend.module.mjs +0 -130
  151. package/esm2022/backend/lib/data/api/comment.service.mjs +0 -46
  152. package/esm2022/backend/lib/data/api/data-provider.mjs +0 -165
  153. package/esm2022/backend/lib/data/api/file.service.mjs +0 -101
  154. package/esm2022/backend/lib/data/api/module-designer.service.mjs +0 -95
  155. package/esm2022/backend/lib/data/index.mjs +0 -5
  156. package/esm2022/conversation/acorex-modules-conversation.mjs +0 -5
  157. package/esm2022/conversation/index.mjs +0 -17
  158. package/esm2022/conversation/lib/const.mjs +0 -8
  159. package/esm2022/conversation/lib/conversation.module.mjs +0 -17
  160. package/esm2022/conversation/lib/entities/chat/chat.module.mjs +0 -141
  161. package/esm2022/conversation/lib/entities/chat/chat.service.mjs +0 -23
  162. package/esm2022/conversation/lib/entities/chat/chat.type.mjs +0 -2
  163. package/esm2022/conversation/lib/entities/chat/components/chat-item/chat-item.component.mjs +0 -53
  164. package/esm2022/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.mjs +0 -13
  165. package/esm2022/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.mjs +0 -28
  166. package/esm2022/conversation/lib/entities/chat/components/chat-preview/chat-preview.component.mjs +0 -124
  167. package/esm2022/conversation/lib/entities/chat/components/chat-preview-header/chat-preview-header.component.mjs +0 -22
  168. package/esm2022/conversation/lib/entities/chat/pages/chat/chat.component.mjs +0 -80
  169. package/esm2022/conversation/lib/entities/comments/comment.module.mjs +0 -100
  170. package/esm2022/conversation/lib/entities/comments/comments.service.mjs +0 -21
  171. package/esm2022/conversation/lib/entities/comments/comments.type.mjs +0 -2
  172. package/esm2022/conversation/lib/entities/comments/pages/comment-list-view.component.mjs +0 -392
  173. package/esm2022/conversation/lib/entities/comments/pages/comment-lookup-popup.component.mjs +0 -56
  174. package/esm2022/form-template-management/acorex-modules-form-template-management.mjs +0 -5
  175. package/esm2022/form-template-management/index.mjs +0 -2
  176. package/esm2022/form-template-management/lib/components/widgets/template-designer/index.mjs +0 -3
  177. package/esm2022/form-template-management/lib/components/widgets/template-designer/template-designer-widget-view.component.mjs +0 -44
  178. package/esm2022/form-template-management/lib/components/widgets/template-designer/template-designer-widget.config.mjs +0 -23
  179. package/esm2022/form-template-management/lib/const.mjs +0 -8
  180. package/esm2022/form-template-management/lib/entities/category/category.entity.mjs +0 -241
  181. package/esm2022/form-template-management/lib/entities/category/category.module.mjs +0 -28
  182. package/esm2022/form-template-management/lib/entities/category/category.service.mjs +0 -17
  183. package/esm2022/form-template-management/lib/entities/category/category.types.mjs +0 -2
  184. package/esm2022/form-template-management/lib/entities/category/index.mjs +0 -5
  185. package/esm2022/form-template-management/lib/entities/template/index.mjs +0 -5
  186. package/esm2022/form-template-management/lib/entities/template/template.entity.mjs +0 -434
  187. package/esm2022/form-template-management/lib/entities/template/template.module.mjs +0 -28
  188. package/esm2022/form-template-management/lib/entities/template/template.service.mjs +0 -17
  189. package/esm2022/form-template-management/lib/entities/template/template.types.mjs +0 -2
  190. package/esm2022/form-template-management/lib/entity.provider.mjs +0 -25
  191. package/esm2022/form-template-management/lib/form-template-management.module.mjs +0 -143
  192. package/esm2022/form-template-management/lib/menu.provider.mjs +0 -32
  193. package/esm2022/form-template-management/lib/pages/designer/designer.page.mjs +0 -29
  194. package/esm2022/form-template-management/lib/services/designer-connector.service.mjs +0 -40
  195. package/esm2022/form-template-management/lib/services/template.provider.mjs +0 -31
  196. package/esm2022/form-template-management/lib/workflows/create-template.workflow.mjs +0 -40
  197. package/esm2022/form-template-management/lib/workflows/design-template.workflow.mjs +0 -32
  198. package/esm2022/index.mjs +0 -2
  199. package/esm2022/localization-management/acorex-modules-localization-management.mjs +0 -5
  200. package/esm2022/localization-management/index.mjs +0 -8
  201. package/esm2022/localization-management/lib/const.mjs +0 -9
  202. package/esm2022/localization-management/lib/culture/culture.entity.mjs +0 -239
  203. package/esm2022/localization-management/lib/culture/culture.service.mjs +0 -17
  204. package/esm2022/localization-management/lib/culture/culture.types.mjs +0 -2
  205. package/esm2022/localization-management/lib/culture/index.mjs +0 -4
  206. package/esm2022/localization-management/lib/entity.loader.mjs +0 -36
  207. package/esm2022/localization-management/lib/language/index.mjs +0 -4
  208. package/esm2022/localization-management/lib/language/language-slot/language-slot.component.mjs +0 -30
  209. package/esm2022/localization-management/lib/language/language.entity.mjs +0 -239
  210. package/esm2022/localization-management/lib/language/language.service.mjs +0 -17
  211. package/esm2022/localization-management/lib/language/language.types.mjs +0 -2
  212. package/esm2022/localization-management/lib/localization-management.module.mjs +0 -99
  213. package/esm2022/localization-management/lib/localization-management.source.mjs +0 -4
  214. package/esm2022/localization-management/lib/localization-store.service.mjs +0 -34
  215. package/esm2022/localization-management/lib/menu.provider.mjs +0 -44
  216. package/esm2022/localization-management/lib/time-zone/index.mjs +0 -4
  217. package/esm2022/localization-management/lib/time-zone/time-zone.entity.mjs +0 -256
  218. package/esm2022/localization-management/lib/time-zone/time-zone.service.mjs +0 -17
  219. package/esm2022/localization-management/lib/time-zone/time-zone.types.mjs +0 -2
  220. package/esm2022/notification-management/acorex-modules-notification-management.mjs +0 -5
  221. package/esm2022/notification-management/index.mjs +0 -9
  222. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +0 -39
  223. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.mjs +0 -155
  224. package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.mjs +0 -36
  225. package/esm2022/notification-management/lib/const.mjs +0 -9
  226. package/esm2022/notification-management/lib/entities/my-notification.mjs +0 -236
  227. package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +0 -344
  228. package/esm2022/notification-management/lib/entities/notification-log.entity.mjs +0 -180
  229. package/esm2022/notification-management/lib/entities/notification-template.entity.mjs +0 -298
  230. package/esm2022/notification-management/lib/entities/notification.entity.mjs +0 -207
  231. package/esm2022/notification-management/lib/entity.loader.mjs +0 -41
  232. package/esm2022/notification-management/lib/menu.provider.mjs +0 -54
  233. package/esm2022/notification-management/lib/notification-management-mock-data.mjs +0 -55
  234. package/esm2022/notification-management/lib/notification-management.module.mjs +0 -61
  235. package/esm2022/notification-management/lib/notification-management.service.mjs +0 -39
  236. package/esm2022/notification-management/lib/notification-management.type.mjs +0 -2
  237. package/esm2022/notification-management/lib/notification.service.mjs +0 -3
  238. package/esm2022/platform-management/acorex-modules-platform-management.mjs +0 -5
  239. package/esm2022/platform-management/index.mjs +0 -4
  240. package/esm2022/platform-management/lib/common/common.module.mjs +0 -65
  241. package/esm2022/platform-management/lib/common/common.source.mjs +0 -5
  242. package/esm2022/platform-management/lib/common/country/country-datasource.provider.mjs +0 -27
  243. package/esm2022/platform-management/lib/common/country/country.entity.mjs +0 -696
  244. package/esm2022/platform-management/lib/common/country/country.service.mjs +0 -17
  245. package/esm2022/platform-management/lib/common/country/country.types.mjs +0 -2
  246. package/esm2022/platform-management/lib/common/country/index.mjs +0 -4
  247. package/esm2022/platform-management/lib/common/currency/currency.entity.mjs +0 -283
  248. package/esm2022/platform-management/lib/common/currency/currency.service.mjs +0 -17
  249. package/esm2022/platform-management/lib/common/currency/currency.types.mjs +0 -2
  250. package/esm2022/platform-management/lib/common/currency/index.mjs +0 -4
  251. package/esm2022/platform-management/lib/common/entity.loader.mjs +0 -36
  252. package/esm2022/platform-management/lib/common/index.mjs +0 -5
  253. package/esm2022/platform-management/lib/common/province/index.mjs +0 -4
  254. package/esm2022/platform-management/lib/common/province/province.entity.mjs +0 -307
  255. package/esm2022/platform-management/lib/common/province/province.service.mjs +0 -17
  256. package/esm2022/platform-management/lib/common/province/province.types.mjs +0 -2
  257. package/esm2022/platform-management/lib/const.mjs +0 -12
  258. package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +0 -346
  259. package/esm2022/platform-management/lib/global-variables/entity.loader.mjs +0 -23
  260. package/esm2022/platform-management/lib/global-variables/global-variables.service.mjs +0 -16
  261. package/esm2022/platform-management/lib/global-variables/global-variables.types.mjs +0 -2
  262. package/esm2022/platform-management/lib/global-variables/index.mjs +0 -5
  263. package/esm2022/platform-management/lib/menu.provider.mjs +0 -74
  264. package/esm2022/platform-management/lib/platform-management.module.mjs +0 -61
  265. package/esm2022/scheduler-job-management/acorex-modules-scheduler-job-management.mjs +0 -5
  266. package/esm2022/scheduler-job-management/index.mjs +0 -5
  267. package/esm2022/scheduler-job-management/lib/const.mjs +0 -8
  268. package/esm2022/scheduler-job-management/lib/entities/index.mjs +0 -2
  269. package/esm2022/scheduler-job-management/lib/entities/scheduler-job/index.mjs +0 -5
  270. package/esm2022/scheduler-job-management/lib/entities/scheduler-job/scheduler-job.entity.mjs +0 -333
  271. package/esm2022/scheduler-job-management/lib/entities/scheduler-job/scheduler-job.module.mjs +0 -28
  272. package/esm2022/scheduler-job-management/lib/entities/scheduler-job/scheduler-job.service.mjs +0 -17
  273. package/esm2022/scheduler-job-management/lib/entities/scheduler-job/scheduler-job.types.mjs +0 -2
  274. package/esm2022/scheduler-job-management/lib/entity.provider.mjs +0 -25
  275. package/esm2022/scheduler-job-management/lib/menu.provider.mjs +0 -31
  276. package/esm2022/scheduler-job-management/lib/scheduler-job-management.module.mjs +0 -44
  277. package/esm2022/text-template-management/acorex-modules-text-template-management.mjs +0 -5
  278. package/esm2022/text-template-management/index.mjs +0 -6
  279. package/esm2022/text-template-management/lib/const.mjs +0 -8
  280. package/esm2022/text-template-management/lib/entities/category/category.entity.mjs +0 -262
  281. package/esm2022/text-template-management/lib/entities/category/category.module.mjs +0 -28
  282. package/esm2022/text-template-management/lib/entities/category/category.service.mjs +0 -17
  283. package/esm2022/text-template-management/lib/entities/category/category.types.mjs +0 -2
  284. package/esm2022/text-template-management/lib/entities/category/index.mjs +0 -5
  285. package/esm2022/text-template-management/lib/entities/index.mjs +0 -3
  286. package/esm2022/text-template-management/lib/entities/template/index.mjs +0 -5
  287. package/esm2022/text-template-management/lib/entities/template/template.entity.mjs +0 -405
  288. package/esm2022/text-template-management/lib/entities/template/template.module.mjs +0 -28
  289. package/esm2022/text-template-management/lib/entities/template/template.service.mjs +0 -17
  290. package/esm2022/text-template-management/lib/entities/template/template.types.mjs +0 -2
  291. package/esm2022/text-template-management/lib/entity.provider.mjs +0 -29
  292. package/esm2022/text-template-management/lib/menu.provider.mjs +0 -37
  293. package/esm2022/text-template-management/lib/setting.provider.mjs +0 -308
  294. package/esm2022/text-template-management/lib/text-template-management.module.mjs +0 -56
  295. package/fesm2022/acorex-modules-application-management-module-designer.component-B6WPz0N8.mjs.map +0 -1
  296. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DQzSrtut.mjs.map +0 -1
  297. package/fesm2022/acorex-modules-auth-app-chooser.component-BFQgjqFV.mjs.map +0 -1
  298. package/fesm2022/acorex-modules-auth-blank.layout-Bq822Iz4.mjs.map +0 -1
  299. package/fesm2022/acorex-modules-auth-login.module-KR2dB8vW.mjs.map +0 -1
  300. package/fesm2022/acorex-modules-auth-master.layout-CU27gbWp.mjs +0 -38
  301. package/fesm2022/acorex-modules-auth-master.layout-CU27gbWp.mjs.map +0 -1
  302. package/fesm2022/acorex-modules-auth-password.component-9uIMNoQE.mjs.map +0 -1
  303. package/fesm2022/acorex-modules-auth-password.component-DpjEjw0o.mjs.map +0 -1
  304. package/fesm2022/acorex-modules-auth-tenant-chooser.component-6qDoCUBo.mjs.map +0 -1
  305. package/fesm2022/acorex-modules-auth-two-factor-code.component-BJKmvI7y.mjs.map +0 -1
  306. package/fesm2022/acorex-modules-auth-two-factor.module-Bnoi3ZXB.mjs.map +0 -1
  307. package/fesm2022/acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs.map +0 -1
  308. package/platform-management/lib/common/common.source.d.ts +0 -4
@@ -1,19 +1,21 @@
1
- import { AXMEntityCrudServiceImpl, AXPEntityCommandScope, AXPEntityQueryType, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER } from '@acorex/platform/common';
1
+ import { AXMEntityCrudServiceImpl, AXPDataGenerator, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER } from '@acorex/platform/common';
2
2
  import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
3
- import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXPWidgetsModule, AXP_TEMPLATE_WIDGET_PROVIDER } from '@acorex/platform/widgets';
3
+ import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_BEHAVIOR_PROPERTY_GROUP, AXPWidgetsModule } from '@acorex/platform/widgets';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, NgModule, inject, Injector, ChangeDetectionStrategy, Component } from '@angular/core';
5
+ import { Injectable, NgModule, inject, Injector, Component, ChangeDetectionStrategy, InjectionToken, computed, signal, effect, HostBinding } from '@angular/core';
6
6
  import { ROUTES } from '@angular/router';
7
- import * as i1$1 from '@acorex/platform/layout/builder';
8
- import { AXPWidgetsCatalog, AXPWidgetComponent, AXP_WIDGETS_LAYOUT_GROUP, AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
7
+ import * as i2 from '@acorex/platform/layout/builder';
8
+ import { AXPWidgetComponent, AXP_WIDGETS_LAYOUT_GROUP, AXPLayoutBuilderModule, AXPContainerWidgetComponent, AXP_WIDGETS_ADVANCE_GROUP, createStringProperty } from '@acorex/platform/layout/builder';
9
9
  import { AXButtonModule } from '@acorex/components/button';
10
- import * as i2 from '@acorex/core/translation';
10
+ import * as i3 from '@acorex/core/translation';
11
11
  import { AXTranslationModule } from '@acorex/core/translation';
12
12
  import * as i2$1 from '@acorex/platform/workflow';
13
13
  import { AXPWorkflowService, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
14
14
  import * as i1 from '@angular/common';
15
15
  import { CommonModule } from '@angular/common';
16
- import { AXPDesignerConnector } from '@acorex/platform/layout/designer';
16
+ import { AXPDesignerConnector, AXPDesignerService, AXPWidgetDesignerRendererDirective, AXPDesignerAddWidgetMiniButtonComponent } from '@acorex/platform/layout/designer';
17
+ import { sortBy, get } from 'lodash-es';
18
+ import { AXPopupService } from '@acorex/components/popup';
17
19
 
18
20
  const AXMFormTemplateManagementModuleConst = {
19
21
  moduleName: 'FormTemplateManagement',
@@ -29,266 +31,24 @@ class AXMFormTemplateManagementCategoryEntityServiceImpl extends AXMFormTemplate
29
31
  constructor() {
30
32
  super(`${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.categoryEntity}`);
31
33
  }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
33
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl }); }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
35
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl }); }
34
36
  }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl, decorators: [{
36
38
  type: Injectable
37
39
  }], ctorParameters: () => [] });
38
40
 
39
- async function factory$1(injector) {
40
- const dataService = injector.get(AXMFormTemplateManagementCategoryEntityService);
41
- const i18n = AXMFormTemplateManagementModuleConst.i18n;
42
- const entityDef = {
43
- module: AXMFormTemplateManagementModuleConst.moduleName,
44
- name: AXMFormTemplateManagementModuleConst.categoryEntity,
45
- source: '',
46
- title: `t("category", { scope: "common" })`,
47
- formats: {
48
- individual: `t("category", { scope: "common" })`,
49
- plural: `t("categories", { scope: "common" })`,
50
- },
51
- relatedEntities: [],
52
- groups: [
53
- {
54
- id: 'section',
55
- title: `t("category", { scope: "common" })`,
56
- },
57
- ],
58
- properties: [
59
- {
60
- name: 'name',
61
- title: 't("name", { scope: "common" })',
62
- groupId: 'section',
63
- options: {
64
- sort: {
65
- enabled: true,
66
- },
67
- },
68
- schema: {
69
- dataType: 'string',
70
- interface: {
71
- type: AXPWidgetsCatalog.text,
72
- },
73
- },
74
- validations: [
75
- {
76
- rule: 'required',
77
- },
78
- ],
79
- },
80
- {
81
- name: 'title',
82
- title: 't("title", { scope: "common" })',
83
- groupId: 'section',
84
- schema: {
85
- dataType: 'string',
86
- interface: {
87
- type: AXPWidgetsCatalog.text,
88
- },
89
- },
90
- validations: [
91
- {
92
- rule: 'required',
93
- },
94
- ],
95
- },
96
- ],
97
- columns: [{ name: 'name' }, { name: 'title' }],
98
- commands: {
99
- create: {
100
- execute: async (data) => {
101
- const res = await dataService.insertOne(data);
102
- return { id: res };
103
- },
104
- },
105
- delete: {
106
- execute: async (id) => {
107
- return await dataService.deleteOne(id);
108
- },
109
- },
110
- update: {
111
- execute: async (data) => {
112
- return await dataService.updateOne(data.id, data);
113
- },
114
- },
115
- },
116
- queries: {
117
- byKey: {
118
- execute: async (id) => {
119
- return await dataService.getOne(id);
120
- },
121
- type: AXPEntityQueryType.Single,
122
- },
123
- list: {
124
- execute: async (e) => {
125
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
126
- },
127
- type: AXPEntityQueryType.List,
128
- },
129
- },
130
- interfaces: {
131
- master: {
132
- create: {
133
- sections: [
134
- {
135
- id: 'section',
136
- },
137
- ],
138
- properties: [
139
- {
140
- name: 'name',
141
- layout: {
142
- positions: {
143
- lg: {
144
- colSpan: 6,
145
- },
146
- },
147
- },
148
- },
149
- {
150
- name: 'title',
151
- layout: {
152
- positions: {
153
- lg: {
154
- colSpan: 6,
155
- },
156
- },
157
- },
158
- },
159
- ],
160
- },
161
- update: {
162
- sections: [
163
- {
164
- id: 'section',
165
- },
166
- ],
167
- properties: [
168
- {
169
- name: 'name',
170
- layout: {
171
- positions: {
172
- lg: {
173
- colSpan: 6,
174
- },
175
- },
176
- },
177
- },
178
- {
179
- name: 'title',
180
- layout: {
181
- positions: {
182
- lg: {
183
- colSpan: 6,
184
- },
185
- },
186
- },
187
- },
188
- ],
189
- },
190
- single: {
191
- title: '{{title}}',
192
- sections: [
193
- {
194
- id: 'section',
195
- layout: {
196
- positions: {
197
- lg: {
198
- colSpan: 12,
199
- },
200
- },
201
- },
202
- },
203
- ],
204
- properties: [
205
- {
206
- name: 'name',
207
- layout: {
208
- positions: {
209
- lg: {
210
- colSpan: 6,
211
- },
212
- },
213
- },
214
- },
215
- {
216
- name: 'title',
217
- layout: {
218
- positions: {
219
- lg: {
220
- colSpan: 6,
221
- },
222
- },
223
- },
224
- },
225
- ],
226
- actions: [],
227
- },
228
- list: {
229
- actions: [
230
- {
231
- title: `t("create", { scope: "common" })`,
232
- command: 'create-entity',
233
- priority: 'primary',
234
- type: 'create',
235
- scope: AXPEntityCommandScope.TypeLevel,
236
- },
237
- {
238
- title: 't("deleteItems", { scope: "common" })',
239
- command: 'delete-entity',
240
- priority: 'primary',
241
- type: 'delete',
242
- scope: AXPEntityCommandScope.Selected,
243
- },
244
- {
245
- title: 't("detail", { scope: "common" })',
246
- command: 'open-entity',
247
- priority: 'secondary',
248
- type: 'view',
249
- scope: AXPEntityCommandScope.Individual,
250
- },
251
- {
252
- title: 't("delete", { scope: "common" })',
253
- command: 'delete-entity',
254
- priority: 'secondary',
255
- type: 'delete',
256
- scope: AXPEntityCommandScope.Individual,
257
- },
258
- ],
259
- views: [
260
- {
261
- name: 'all',
262
- title: 't("allItem", { scope: "common" })',
263
- fixed: true,
264
- columns: [],
265
- conditions: [],
266
- sorts: [],
267
- },
268
- ],
269
- },
270
- },
271
- },
272
- };
273
- return entityDef;
274
- }
275
-
276
- var category_entity = /*#__PURE__*/Object.freeze({
277
- __proto__: null,
278
- factory: factory$1
279
- });
280
-
281
41
  class AXMFormTemplateManagementCategoryEntityModule {
282
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
283
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule }); }
284
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, providers: [
42
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
43
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule }); }
44
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, providers: [
285
45
  {
286
46
  provide: AXMFormTemplateManagementCategoryEntityService,
287
47
  useClass: AXMFormTemplateManagementCategoryEntityServiceImpl,
288
48
  },
289
49
  ] }); }
290
50
  }
291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityModule, decorators: [{
292
52
  type: NgModule,
293
53
  args: [{
294
54
  imports: [],
@@ -309,459 +69,24 @@ class AXMFormTemplateManagementTemplateEntityServiceImpl extends AXMFormTemplate
309
69
  constructor() {
310
70
  super(`${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.templateEntity}`);
311
71
  }
312
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
313
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl }); }
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
73
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl }); }
314
74
  }
315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl, decorators: [{
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl, decorators: [{
316
76
  type: Injectable
317
77
  }], ctorParameters: () => [] });
318
78
 
319
- async function factory(injector) {
320
- const dataService = injector.get(AXMFormTemplateManagementTemplateEntityService);
321
- const i18n = AXMFormTemplateManagementModuleConst.i18n;
322
- const entityDef = {
323
- module: AXMFormTemplateManagementModuleConst.moduleName,
324
- name: AXMFormTemplateManagementModuleConst.templateEntity,
325
- source: '',
326
- title: `t("template",{scope:"${i18n}"})`,
327
- formats: {
328
- individual: `t("template",{scope:"${i18n}"})`,
329
- plural: `t("templates",{scope:"${i18n}"})`,
330
- },
331
- relatedEntities: [],
332
- groups: [
333
- {
334
- id: 'section',
335
- title: `t("information",{scope:"common"})`,
336
- },
337
- ],
338
- properties: [
339
- {
340
- name: 'name',
341
- title: 't("name", { scope: "common" })',
342
- groupId: 'section',
343
- options: {
344
- filter: {
345
- inline: { enabled: true },
346
- },
347
- sort: {
348
- enabled: true,
349
- },
350
- },
351
- schema: {
352
- dataType: 'string',
353
- interface: {
354
- type: AXPWidgetsCatalog.text,
355
- },
356
- },
357
- validations: [
358
- {
359
- rule: 'required',
360
- },
361
- ],
362
- },
363
- {
364
- name: 'title',
365
- title: 't("title", { scope: "common" })',
366
- groupId: 'section',
367
- options: {
368
- filter: {
369
- inline: { enabled: true },
370
- },
371
- sort: {
372
- enabled: true,
373
- },
374
- },
375
- schema: {
376
- dataType: 'string',
377
- interface: {
378
- type: AXPWidgetsCatalog.text,
379
- },
380
- },
381
- validations: [
382
- {
383
- rule: 'required',
384
- },
385
- ],
386
- },
387
- {
388
- name: 'categoryId',
389
- title: 't("category", { scope: "common" })',
390
- groupId: 'section',
391
- schema: {
392
- dataType: 'string',
393
- interface: {
394
- type: AXPWidgetsCatalog.lookup,
395
- options: {
396
- entity: `${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.categoryEntity}`,
397
- expose: [
398
- { source: 'id', target: 'categoryId' },
399
- { source: 'title', target: 'category.title' },
400
- ],
401
- },
402
- },
403
- },
404
- validations: [
405
- {
406
- rule: 'required',
407
- },
408
- ],
409
- },
410
- {
411
- name: 'type',
412
- title: `t("template-type",{scope:"${i18n}"})`,
413
- groupId: 'section',
414
- schema: {
415
- dataType: 'string',
416
- interface: {
417
- type: AXPWidgetsCatalog.select,
418
- options: {
419
- valueField: 'value',
420
- textField: 'title',
421
- defaultValue: '10',
422
- dataSource: [
423
- { value: 10, title: 'Form Template' },
424
- { value: 20, title: 'Widgets Template' },
425
- ],
426
- multiple: false,
427
- },
428
- },
429
- },
430
- validations: [
431
- {
432
- rule: 'required',
433
- },
434
- ],
435
- },
436
- {
437
- name: 'template',
438
- title: `t("template",{scope:"${i18n}"})`,
439
- groupId: 'section',
440
- schema: {
441
- dataType: 'string',
442
- interface: {
443
- type: AXPWidgetsCatalog.templateDesigner,
444
- },
445
- },
446
- },
447
- ],
448
- columns: [
449
- { name: 'name' },
450
- { name: 'title' },
451
- { name: 'type' },
452
- { name: 'categoryId', options: { dataPath: 'category.title' } },
453
- ],
454
- commands: {
455
- create: {
456
- execute: async (data) => {
457
- const res = await dataService.insertOne(data);
458
- return { id: res };
459
- },
460
- },
461
- delete: {
462
- execute: async (id) => {
463
- return await dataService.deleteOne(id);
464
- },
465
- },
466
- update: {
467
- execute: async (data) => {
468
- return await dataService.updateOne(data.id, data);
469
- },
470
- },
471
- },
472
- queries: {
473
- byKey: {
474
- execute: async (id) => {
475
- return await dataService.getOne(id);
476
- },
477
- type: AXPEntityQueryType.Single,
478
- },
479
- list: {
480
- execute: async (e) => {
481
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
482
- },
483
- type: AXPEntityQueryType.List,
484
- },
485
- },
486
- interfaces: {
487
- master: {
488
- create: {
489
- sections: [
490
- {
491
- id: 'section',
492
- },
493
- ],
494
- properties: [
495
- {
496
- name: 'name',
497
- layout: {
498
- positions: {
499
- lg: {
500
- colSpan: 6,
501
- },
502
- },
503
- },
504
- },
505
- {
506
- name: 'title',
507
- layout: {
508
- positions: {
509
- lg: {
510
- colSpan: 6,
511
- },
512
- },
513
- },
514
- },
515
- {
516
- name: 'type',
517
- layout: {
518
- order: 10,
519
- positions: {
520
- lg: {
521
- colSpan: 6,
522
- },
523
- },
524
- },
525
- },
526
- {
527
- name: 'categoryId',
528
- layout: {
529
- order: 20,
530
- positions: {
531
- lg: {
532
- colSpan: 6,
533
- },
534
- },
535
- },
536
- },
537
- ],
538
- },
539
- update: {
540
- sections: [
541
- {
542
- id: 'section',
543
- },
544
- ],
545
- properties: [
546
- {
547
- name: 'name',
548
- layout: {
549
- positions: {
550
- lg: {
551
- colSpan: 6,
552
- },
553
- },
554
- },
555
- },
556
- {
557
- name: 'title',
558
- layout: {
559
- positions: {
560
- lg: {
561
- colSpan: 6,
562
- },
563
- },
564
- },
565
- },
566
- {
567
- name: 'categoryId',
568
- layout: {
569
- positions: {
570
- lg: {
571
- colSpan: 6,
572
- },
573
- },
574
- },
575
- },
576
- {
577
- name: 'type',
578
- layout: {
579
- positions: {
580
- lg: {
581
- colSpan: 6,
582
- },
583
- },
584
- },
585
- },
586
- ],
587
- },
588
- single: {
589
- title: '{{title}}',
590
- sections: [
591
- {
592
- id: 'section',
593
- layout: {
594
- positions: {
595
- lg: {
596
- colSpan: 12,
597
- },
598
- },
599
- },
600
- },
601
- {
602
- id: 'template',
603
- layout: {
604
- positions: {
605
- lg: {
606
- colSpan: 12,
607
- },
608
- },
609
- },
610
- },
611
- ],
612
- properties: [
613
- {
614
- name: 'name',
615
- layout: {
616
- positions: {
617
- lg: {
618
- colSpan: 6,
619
- },
620
- },
621
- },
622
- },
623
- {
624
- name: 'title',
625
- layout: {
626
- positions: {
627
- lg: {
628
- colSpan: 6,
629
- },
630
- },
631
- },
632
- },
633
- {
634
- name: 'type',
635
- layout: {
636
- positions: {
637
- lg: {
638
- colSpan: 6,
639
- },
640
- },
641
- },
642
- },
643
- {
644
- name: 'categoryId',
645
- layout: {
646
- positions: {
647
- lg: {
648
- colSpan: 4,
649
- },
650
- },
651
- },
652
- },
653
- {
654
- name: 'template',
655
- layout: {
656
- label: {
657
- visible: false,
658
- },
659
- positions: {
660
- lg: {
661
- colSpan: 4,
662
- },
663
- },
664
- },
665
- },
666
- ],
667
- actions: [],
668
- },
669
- list: {
670
- actions: [
671
- {
672
- title: `t("create", { scope: "common" })`,
673
- command: 'create-form-template',
674
- priority: 'primary',
675
- type: 'create',
676
- scope: AXPEntityCommandScope.TypeLevel,
677
- },
678
- {
679
- title: 't("deleteItems", { scope: "common" })',
680
- command: 'delete-entity',
681
- priority: 'primary',
682
- type: 'delete',
683
- scope: AXPEntityCommandScope.Selected,
684
- },
685
- {
686
- title: 't("detail", { scope: "common" })',
687
- command: 'open-entity',
688
- priority: 'secondary',
689
- type: 'view',
690
- scope: AXPEntityCommandScope.Individual,
691
- },
692
- {
693
- title: 't("delete", { scope: "common" })',
694
- command: 'delete-entity',
695
- priority: 'secondary',
696
- type: 'delete',
697
- scope: AXPEntityCommandScope.Individual,
698
- },
699
- ],
700
- views: [
701
- {
702
- name: 'all',
703
- title: 't("allItem", { scope: "common" })',
704
- fixed: true,
705
- columns: [],
706
- conditions: [],
707
- sorts: [{ name: 'title', dir: 'asc' }],
708
- },
709
- {
710
- name: 'forms',
711
- title: `t("forms", { scope: "${i18n}" })`,
712
- fixed: true,
713
- columns: [],
714
- conditions: [
715
- {
716
- name: 'type.value',
717
- operator: {
718
- type: 'equal',
719
- },
720
- value: 10,
721
- },
722
- ],
723
- sorts: [{ name: 'title', dir: 'asc' }],
724
- },
725
- {
726
- name: 'widgets',
727
- title: `t("widgets", { scope: "${i18n}" })`,
728
- fixed: true,
729
- columns: [],
730
- conditions: [
731
- {
732
- name: 'type.value',
733
- operator: {
734
- type: 'equal',
735
- },
736
- value: 20,
737
- },
738
- ],
739
- sorts: [{ name: 'title', dir: 'asc' }],
740
- },
741
- ],
742
- },
743
- },
744
- },
745
- };
746
- return entityDef;
747
- }
748
-
749
- var template_entity = /*#__PURE__*/Object.freeze({
750
- __proto__: null,
751
- factory: factory
752
- });
753
-
754
79
  class AXMFormTemplateManagementTemplateEntityModule {
755
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
756
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule }); }
757
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, providers: [
80
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
81
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule }); }
82
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, providers: [
758
83
  {
759
84
  provide: AXMFormTemplateManagementTemplateEntityService,
760
85
  useClass: AXMFormTemplateManagementTemplateEntityServiceImpl,
761
86
  },
762
87
  ] }); }
763
88
  }
764
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityModule, decorators: [{
765
90
  type: NgModule,
766
91
  args: [{
767
92
  imports: [],
@@ -776,6 +101,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
776
101
  }]
777
102
  }] });
778
103
 
104
+ const AXMFormTemplateTypes = {
105
+ Form: { id: 10, title: 'Form Template' },
106
+ Widget: { id: 20, title: 'Widgets Template' }
107
+ };
108
+
779
109
  class AXMFormTemplateManagementModuleEntityProvider {
780
110
  constructor() {
781
111
  this.injector = inject(Injector);
@@ -784,17 +114,17 @@ class AXMFormTemplateManagementModuleEntityProvider {
784
114
  if (moduleName == AXMFormTemplateManagementModuleConst.moduleName) {
785
115
  switch (entityName) {
786
116
  case AXMFormTemplateManagementModuleConst.categoryEntity:
787
- return (await Promise.resolve().then(function () { return category_entity; })).factory(this.injector);
117
+ return (await import('./acorex-modules-form-template-management-category.entity-xUkZHVgy.mjs')).factory(this.injector);
788
118
  case AXMFormTemplateManagementModuleConst.templateEntity:
789
- return (await Promise.resolve().then(function () { return template_entity; })).factory(this.injector);
119
+ return (await import('./acorex-modules-form-template-management-template.entity-CGhbmYel.mjs')).factory(this.injector);
790
120
  }
791
121
  }
792
122
  return null;
793
123
  }
794
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
795
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider }); }
124
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
125
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider }); }
796
126
  }
797
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider, decorators: [{
127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider, decorators: [{
798
128
  type: Injectable
799
129
  }] });
800
130
 
@@ -835,17 +165,17 @@ class AXPTemplateDesignerWidgetViewComponent extends AXPWidgetComponent {
835
165
  async handleClick() {
836
166
  await this.workflow.execute('design-form-template', { data: { id: this.extractValue('id') } });
837
167
  }
838
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
839
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPTemplateDesignerWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
168
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
169
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPTemplateDesignerWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
840
170
  <span
841
171
  class="ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer"
842
172
  (click)="handleClick()"
843
173
  >
844
- {{ 'edit-template' | translate : { scope: 'form-template-management' } | async }}
174
+ {{ 't("edit-template",{ scope:"form-template-management" })' | translate | async }}
845
175
  </span>
846
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i2.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
176
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
847
177
  }
848
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, decorators: [{
178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateDesignerWidgetViewComponent, decorators: [{
849
179
  type: Component,
850
180
  args: [{
851
181
  template: `
@@ -853,12 +183,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
853
183
  class="ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer"
854
184
  (click)="handleClick()"
855
185
  >
856
- {{ 'edit-template' | translate : { scope: 'form-template-management' } | async }}
186
+ {{ 't("edit-template",{ scope:"form-template-management" })' | translate | async }}
857
187
  </span>
858
188
  `,
859
- standalone: true,
860
189
  changeDetection: ChangeDetectionStrategy.OnPush,
861
- imports: [CommonModule, AXButtonModule, AXTranslationModule],
190
+ imports: [CommonModule, AXButtonModule, AXTranslationModule]
862
191
  }]
863
192
  }] });
864
193
 
@@ -931,28 +260,36 @@ class AXPDesignerConnectorImpl extends AXPDesignerConnector {
931
260
  constructor() {
932
261
  super(...arguments);
933
262
  this.workflow = inject(AXPWorkflowService);
934
- this.service = inject(AXMFormTemplateManagementTemplateEntityService);
935
- //#endregion
263
+ this.templateEntityService = inject(AXMFormTemplateManagementTemplateEntityService);
264
+ this.categoryEntityService = inject(AXMFormTemplateManagementCategoryEntityService);
936
265
  }
937
266
  //#region Save and load Widgets
938
267
  async save(id, content) {
939
- const item = await this.service.getOne(id);
268
+ const item = await this.templateEntityService.getOne(id);
940
269
  if (item) {
941
- await this.service.updateOne(id, { template: content.json });
270
+ await this.templateEntityService.updateOne(id, { template: content.json });
271
+ return true;
942
272
  }
943
273
  else {
944
274
  throw Error("Invalid Id");
945
275
  }
946
276
  }
947
277
  async saveAs(content) {
948
- //TODO:
949
278
  const result = await this.workflow.execute('create-entity', {
950
279
  redirect: false,
951
280
  entity: `${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.templateEntity}`,
281
+ canCreateNewOne: false,
282
+ data: {
283
+ name: AXPDataGenerator.alphanumeric(10),
284
+ type: AXMFormTemplateTypes.Widget,
285
+ template: content.json,
286
+ categoryId: (await this.categoryEntityService.query()).items[0]?.id
287
+ }
952
288
  });
289
+ return result.getOutput('result');
953
290
  }
954
291
  async load(id) {
955
- const item = await this.service.getOne(id);
292
+ const item = await this.templateEntityService.getOne(id);
956
293
  if (item) {
957
294
  return item.template;
958
295
  }
@@ -960,7 +297,12 @@ class AXPDesignerConnectorImpl extends AXPDesignerConnector {
960
297
  throw Error("Invalid Id");
961
298
  }
962
299
  }
300
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDesignerConnectorImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
301
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDesignerConnectorImpl }); }
963
302
  }
303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDesignerConnectorImpl, decorators: [{
304
+ type: Injectable
305
+ }] });
964
306
 
965
307
  class AXMOpenFormTemplateDesignerAction extends AXPWorkflowAction {
966
308
  constructor() {
@@ -975,10 +317,10 @@ class AXMOpenFormTemplateDesignerAction extends AXPWorkflowAction {
975
317
  });
976
318
  await this.navigation.execute(context);
977
319
  }
978
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
979
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMOpenFormTemplateDesignerAction }); }
320
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
321
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction }); }
980
322
  }
981
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, decorators: [{
323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMOpenFormTemplateDesignerAction, decorators: [{
982
324
  type: Injectable
983
325
  }] });
984
326
  const AXMDesignFormTemplateWorkflow = {
@@ -1011,7 +353,12 @@ class AXPTemplateWidgetProviderImpl {
1011
353
  const item = await this.service.getOne(id);
1012
354
  if (item) {
1013
355
  const document = JSON.parse(item.template);
1014
- return document?.children?.[0];
356
+ const page = document?.children?.[0];
357
+ return {
358
+ id: item.id,
359
+ nodes: page?.children ?? [],
360
+ title: item.title
361
+ };
1015
362
  }
1016
363
  else {
1017
364
  throw Error("Invalid Id");
@@ -1019,6 +366,310 @@ class AXPTemplateWidgetProviderImpl {
1019
366
  }
1020
367
  }
1021
368
 
369
+ const AXP_TEMPLATE_WIDGET_PROVIDER = new InjectionToken('AXP_TEMPLATE_WIDGET_PROVIDER');
370
+ class AXPTemplateWidgetProviderService {
371
+ constructor() {
372
+ this.popupService = inject(AXPopupService);
373
+ this.providers = inject(AXP_TEMPLATE_WIDGET_PROVIDER, { optional: true });
374
+ }
375
+ async items(query) {
376
+ if (Array.isArray(this.providers)) {
377
+ const result = [];
378
+ for (const provider of this.providers) {
379
+ const items = await provider.items(query);
380
+ if (items) {
381
+ result.push(...items);
382
+ }
383
+ }
384
+ return result;
385
+ }
386
+ else {
387
+ return [];
388
+ }
389
+ }
390
+ async get(id) {
391
+ if (Array.isArray(this.providers)) {
392
+ for (const provider of this.providers) {
393
+ const node = await provider.get(id);
394
+ if (node) {
395
+ return node;
396
+ }
397
+ }
398
+ }
399
+ return null;
400
+ }
401
+ async chooseTemplate() {
402
+ const com = await import('./acorex-modules-form-template-management-template-picker.component-D_FkgF0W.mjs').then((c) => c.AXPTemplateWidgetPickerComponent);
403
+ const widgets = await this.items({
404
+ skip: 0,
405
+ take: 100,
406
+ filter: {
407
+ field: 'type.id',
408
+ value: 20,
409
+ operator: {
410
+ type: 'equal',
411
+ }
412
+ }
413
+ });
414
+ const result = await this.popupService.open(com, {
415
+ title: 'Widget Template Gallery',
416
+ size: 'md',
417
+ closeButton: true,
418
+ data: {
419
+ widgets: sortBy(widgets, (c) => c.title),
420
+ },
421
+ });
422
+ if (result.data) {
423
+ const selected = result.data?.widgets;
424
+ return selected[0];
425
+ }
426
+ return null;
427
+ }
428
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
429
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetProviderService, providedIn: 'root' }); }
430
+ }
431
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetProviderService, decorators: [{
432
+ type: Injectable,
433
+ args: [{ providedIn: 'root' }]
434
+ }] });
435
+
436
+ class AXPTemplateWidgetViewComponent extends AXPWidgetComponent {
437
+ constructor() {
438
+ super();
439
+ this.metaKey = '__meta__';
440
+ this.templateProvider = inject(AXPTemplateWidgetProviderService);
441
+ this.templateId = computed(() => this.options()['templateId']);
442
+ this.nodes = signal([]);
443
+ //
444
+ effect(async () => {
445
+ this.nodes.set([]);
446
+ const value = this.getValue();
447
+ const templateId = get(value, `${this.metaKey}.templateId`) ?? this.templateId();
448
+ if (templateId) {
449
+ const item = await this.templateProvider.get(templateId);
450
+ if (item) {
451
+ this.nodes.set(item.nodes);
452
+ }
453
+ }
454
+ });
455
+ }
456
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
457
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPTemplateWidgetViewComponent, isStandalone: true, selector: "axp-template-widget-view", usesInheritance: true, ngImport: i0, template: `
458
+ @for (node of nodes(); track $index) {
459
+ <ng-container axp-widget-renderer
460
+ [node]="node"
461
+ [parentNode]="this"
462
+ [mode]="this.mode"
463
+ >
464
+ </ng-container>
465
+ }
466
+ @empty {
467
+ <span class="ax-underline ax-decoration-dotted ax-underline-offset-8 ax-text-gray-400">
468
+ {{ 'empty-template' | translate : { scope: 'form-template-management' } | async }}
469
+ </span>
470
+ }
471
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: i2.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
472
+ }
473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetViewComponent, decorators: [{
474
+ type: Component,
475
+ args: [{
476
+ selector: 'axp-template-widget-view',
477
+ template: `
478
+ @for (node of nodes(); track $index) {
479
+ <ng-container axp-widget-renderer
480
+ [node]="node"
481
+ [parentNode]="this"
482
+ [mode]="this.mode"
483
+ >
484
+ </ng-container>
485
+ }
486
+ @empty {
487
+ <span class="ax-underline ax-decoration-dotted ax-underline-offset-8 ax-text-gray-400">
488
+ {{ 'empty-template' | translate : { scope: 'form-template-management' } | async }}
489
+ </span>
490
+ }
491
+ `,
492
+ changeDetection: ChangeDetectionStrategy.OnPush,
493
+ imports: [CommonModule, AXPLayoutBuilderModule, AXTranslationModule]
494
+ }]
495
+ }], ctorParameters: () => [] });
496
+
497
+ var templateWidgetView_component = /*#__PURE__*/Object.freeze({
498
+ __proto__: null,
499
+ AXPTemplateWidgetViewComponent: AXPTemplateWidgetViewComponent
500
+ });
501
+
502
+ const AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU = {
503
+ text: 'Choose Template',
504
+ name: 'choose',
505
+ icon: 'fa-solid fa-folder-open',
506
+ };
507
+ class AXPTemplateWidgetDesignerComponent extends AXPContainerWidgetComponent {
508
+ constructor() {
509
+ super();
510
+ this.templateProvider = inject(AXPTemplateWidgetProviderService);
511
+ this.designerService = inject(AXPDesignerService);
512
+ this.templateId = computed(() => this.options()['templateId']);
513
+ this.nodes = signal([]);
514
+ this.title = signal(null);
515
+ //
516
+ effect(async () => {
517
+ this.nodes.set([]);
518
+ if (this.templateId()) {
519
+ const item = await this.templateProvider.get(this.templateId());
520
+ if (item && item.nodes?.length > 0) {
521
+ this.title.set(item.title);
522
+ this.nodes.set(item.nodes);
523
+ }
524
+ }
525
+ });
526
+ }
527
+ async handleChooseWidget() {
528
+ const result = await this.templateProvider.chooseTemplate();
529
+ if (result) {
530
+ this.designerService.update({
531
+ mode: 'update',
532
+ values: { options: { templateId: result.id } },
533
+ widget: this.node,
534
+ });
535
+ }
536
+ }
537
+ get __class() {
538
+ const cls = {};
539
+ //
540
+ cls[`ax-w-full`] = true;
541
+ cls[`ax-widget-outline`] = true;
542
+ //
543
+ cls[`ax-block`] = true;
544
+ return cls;
545
+ }
546
+ onContextMenu(context) {
547
+ const items = [
548
+ AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU
549
+ ];
550
+ items[items.length - 1].break = true;
551
+ context.items.unshift(...items);
552
+ }
553
+ async executeCommand(command) {
554
+ switch (command.name) {
555
+ case AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU.name:
556
+ await this.handleChooseWidget();
557
+ break;
558
+ }
559
+ return Promise.resolve();
560
+ }
561
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetDesignerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
562
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPTemplateWidgetDesignerComponent, isStandalone: true, selector: "axp-template-widget-designer", host: { properties: { "class": "this.__class" } }, providers: [
563
+ {
564
+ provide: AXPTemplateWidgetDesignerComponent,
565
+ useExisting: AXPContainerWidgetComponent,
566
+ },
567
+ ], usesInheritance: true, ngImport: i0, template: `
568
+ @if(nodes().length) {
569
+ <div class="ax-relative ax-block ax-w-full ax-pointer-events-none">
570
+ @for (node of nodes(); track $index) {
571
+ <ng-container axp-widget-designer-renderer [locked]="true" [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
572
+ }
573
+ <div
574
+ class="ax-absolute ax-top-0 ax-bottom-0 ax-left-0 ax-right-0 ax-bg-blue-400 ax-opacity-30 ax-flex ax-justify-center ax-items-center ax-z-[400]"
575
+ >
576
+ <span class="ax-capitalize ax-font-semibold ax-text-primary-700"> {{ title() }}</span>
577
+ </div>
578
+ </div>
579
+ } @else {
580
+ <axp-designer-add-widget-mini-button
581
+ class="ax-flex-1 ax-self-center ax-place-self-end"
582
+ (onClick)="handleChooseWidget()"
583
+ >
584
+ </axp-designer-add-widget-mini-button>
585
+ }
586
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: AXPWidgetDesignerRendererDirective, selector: "[axp-widget-designer-renderer]", inputs: ["parentNode", "index", "locked", "mode", "node"] }, { kind: "component", type: AXPDesignerAddWidgetMiniButtonComponent, selector: "axp-designer-add-widget-mini-button", outputs: ["onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
587
+ }
588
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTemplateWidgetDesignerComponent, decorators: [{
589
+ type: Component,
590
+ args: [{
591
+ selector: 'axp-template-widget-designer',
592
+ template: `
593
+ @if(nodes().length) {
594
+ <div class="ax-relative ax-block ax-w-full ax-pointer-events-none">
595
+ @for (node of nodes(); track $index) {
596
+ <ng-container axp-widget-designer-renderer [locked]="true" [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
597
+ }
598
+ <div
599
+ class="ax-absolute ax-top-0 ax-bottom-0 ax-left-0 ax-right-0 ax-bg-blue-400 ax-opacity-30 ax-flex ax-justify-center ax-items-center ax-z-[400]"
600
+ >
601
+ <span class="ax-capitalize ax-font-semibold ax-text-primary-700"> {{ title() }}</span>
602
+ </div>
603
+ </div>
604
+ } @else {
605
+ <axp-designer-add-widget-mini-button
606
+ class="ax-flex-1 ax-self-center ax-place-self-end"
607
+ (onClick)="handleChooseWidget()"
608
+ >
609
+ </axp-designer-add-widget-mini-button>
610
+ }
611
+ `,
612
+ changeDetection: ChangeDetectionStrategy.OnPush,
613
+ imports: [
614
+ CommonModule,
615
+ AXPLayoutBuilderModule,
616
+ AXPWidgetDesignerRendererDirective,
617
+ AXPDesignerAddWidgetMiniButtonComponent,
618
+ ],
619
+ providers: [
620
+ {
621
+ provide: AXPTemplateWidgetDesignerComponent,
622
+ useExisting: AXPContainerWidgetComponent,
623
+ },
624
+ ]
625
+ }]
626
+ }], ctorParameters: () => [], propDecorators: { __class: [{
627
+ type: HostBinding,
628
+ args: ['class']
629
+ }] } });
630
+
631
+ var templateWidgetDesigner_component = /*#__PURE__*/Object.freeze({
632
+ __proto__: null,
633
+ AXPTemplateWidgetDesignerComponent: AXPTemplateWidgetDesignerComponent,
634
+ AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU: AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU
635
+ });
636
+
637
+ const AXPTemplateWidget = {
638
+ name: 'template',
639
+ title: 'Template',
640
+ type: 'container',
641
+ icon: 'fa-solid fa-file-invoice',
642
+ group: AXP_WIDGETS_ADVANCE_GROUP,
643
+ visible: true,
644
+ options: {
645
+ canInsert: false,
646
+ },
647
+ properties: [
648
+ AXP_NAME_PROPERTY,
649
+ AXP_DATA_PATH_PROPERTY,
650
+ createStringProperty({
651
+ name: 'options.templateId',
652
+ title: 'Template',
653
+ group: AXP_BEHAVIOR_PROPERTY_GROUP,
654
+ visible: false,
655
+ }),
656
+ ],
657
+ components: {
658
+ view: {
659
+ component: () => Promise.resolve().then(function () { return templateWidgetView_component; }).then((c) => c.AXPTemplateWidgetViewComponent),
660
+ },
661
+ edit: {
662
+ component: () => import('./acorex-modules-form-template-management-template-widget-edit.component-Bgx5YRBc.mjs').then((c) => c.AXPTemplateWidgetEditComponent),
663
+ },
664
+ print: {
665
+ component: () => Promise.resolve().then(function () { return templateWidgetView_component; }).then((c) => c.AXPTemplateWidgetViewComponent),
666
+ },
667
+ designer: {
668
+ component: () => Promise.resolve().then(function () { return templateWidgetDesigner_component; }).then((c) => c.AXPTemplateWidgetDesignerComponent),
669
+ },
670
+ },
671
+ };
672
+
1022
673
  function routesFacory() {
1023
674
  const routes = [
1024
675
  {
@@ -1026,7 +677,7 @@ function routesFacory() {
1026
677
  children: [
1027
678
  {
1028
679
  path: 'designer',
1029
- loadComponent: () => import('./acorex-modules-form-template-management-designer.page-NhIPhsRs.mjs').then((c) => c.AXMFormTemplateManagementModuleDesignerPage),
680
+ loadComponent: () => import('./acorex-modules-form-template-management-designer.page-BLbPLLdP.mjs').then((c) => c.AXMFormTemplateManagementModuleDesignerPage),
1030
681
  },
1031
682
  {
1032
683
  path: 'preview',
@@ -1042,11 +693,11 @@ function routesFacory() {
1042
693
  return routes;
1043
694
  }
1044
695
  class AXMFormTemplateManagementModule {
1045
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1046
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, imports: [AXPWidgetsModule,
696
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
697
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModule, imports: [AXPWidgetsModule,
1047
698
  AXMFormTemplateManagementCategoryEntityModule,
1048
- AXMFormTemplateManagementTemplateEntityModule, i1$1.AXPLayoutBuilderModule, i2$1.AXPWorkflowModule] }); }
1049
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, providers: [
699
+ AXMFormTemplateManagementTemplateEntityModule, i2.AXPLayoutBuilderModule, i2$1.AXPWorkflowModule] }); }
700
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModule, providers: [
1050
701
  {
1051
702
  provide: ROUTES,
1052
703
  multi: true,
@@ -1076,7 +727,8 @@ class AXMFormTemplateManagementModule {
1076
727
  AXMFormTemplateManagementTemplateEntityModule,
1077
728
  AXPLayoutBuilderModule.forChild({
1078
729
  widgets: [
1079
- AXPTemplateDesignerWidget
730
+ AXPTemplateDesignerWidget,
731
+ AXPTemplateWidget
1080
732
  ]
1081
733
  }),
1082
734
  AXPWorkflowModule.forChild({
@@ -1089,7 +741,7 @@ class AXMFormTemplateManagementModule {
1089
741
  }
1090
742
  })] }); }
1091
743
  }
1092
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMFormTemplateManagementModule, decorators: [{
744
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModule, decorators: [{
1093
745
  type: NgModule,
1094
746
  args: [{
1095
747
  imports: [
@@ -1098,7 +750,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
1098
750
  AXMFormTemplateManagementTemplateEntityModule,
1099
751
  AXPLayoutBuilderModule.forChild({
1100
752
  widgets: [
1101
- AXPTemplateDesignerWidget
753
+ AXPTemplateDesignerWidget,
754
+ AXPTemplateWidget
1102
755
  ]
1103
756
  }),
1104
757
  AXPWorkflowModule.forChild({
@@ -1146,5 +799,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
1146
799
  * Generated bundle index. Do not edit.
1147
800
  */
1148
801
 
1149
- export { AXMFormTemplateManagementModule };
802
+ export { AXMFormTemplateManagementCategoryEntityModule, AXMFormTemplateManagementCategoryEntityService, AXMFormTemplateManagementCategoryEntityServiceImpl, AXMFormTemplateManagementModule, AXMFormTemplateManagementModuleConst, AXMFormTemplateManagementTemplateEntityModule, AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateManagementTemplateEntityServiceImpl, AXMFormTemplateTypes, AXPTemplateWidget, AXPTemplateWidgetDesignerComponent, AXPTemplateWidgetProviderService, AXPTemplateWidgetViewComponent, AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU, AXP_TEMPLATE_WIDGET_PROVIDER };
1150
803
  //# sourceMappingURL=acorex-modules-form-template-management.mjs.map