@acorex/modules 19.2.20 → 19.3.0-next.0

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 (185) hide show
  1. package/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.d.ts +2 -2
  2. package/auth/lib/setting.provider.d.ts +4 -0
  3. package/common/index.d.ts +1 -0
  4. package/common/lib/entities/dashboard/dashboard.types.d.ts +1 -1
  5. package/common/lib/features/{dashboard-home/dashboard-home.d.ts → home-dashboard/dashboard-home/home-dashboard.d.ts} +72 -52
  6. package/common/lib/features/{dashboard-home/dashboard-home.store.d.ts → home-dashboard/dashboard-home/home-dashboard.store.d.ts} +9 -4
  7. package/common/lib/features/home-dashboard/dashboard-home/index.d.ts +3 -0
  8. package/common/lib/features/{dashboard-popups → home-dashboard/dashboard-popups}/add-dashboard-popup.d.ts +7 -5
  9. package/common/lib/features/home-dashboard/dashboard-popups/configuration-popup.d.ts +14 -0
  10. package/common/lib/features/{dashboard-popups → home-dashboard/dashboard-popups}/dashboard-popup.service.d.ts +5 -4
  11. package/common/lib/features/home-dashboard/setrting.keys.d.ts +3 -0
  12. package/common/lib/features/{widget-wrapper → home-dashboard/widget-wrapper}/dashboard-widget-wrapper.d.ts +2 -1
  13. package/common/lib/menu.provider.d.ts +1 -1
  14. package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +1 -1
  15. package/conversation/lib/entities/comments/comments.service.d.ts +4 -4
  16. package/conversation/lib/entities/comments/comments.type.d.ts +1 -1
  17. package/document-management/lib/badge.provider.d.ts +11 -0
  18. package/document-management/lib/entities/document/document.service.d.ts +1 -1
  19. package/document-management/lib/entities/document/document.types.d.ts +2 -0
  20. package/document-management/lib/entities/document-type/document-type.service.d.ts +3 -3
  21. package/document-management/lib/entities/folder/folder.service.d.ts +2 -7
  22. package/document-management/lib/entities/folder/folder.types.d.ts +2 -1
  23. package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +6 -0
  24. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +18 -8
  25. package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +10 -6
  26. package/document-management/lib/features/document-explorer/views/detail-panel/detail-panel.component.d.ts +40 -36
  27. package/document-management/lib/features/document-explorer/views/details/details-view.component.d.ts +40 -36
  28. package/document-management/lib/features/document-explorer/views/large-icons/large-icons-view.component.d.ts +40 -36
  29. package/document-management/lib/features/document-explorer/views/large-tiles/large-tiles-view.component.d.ts +40 -36
  30. package/document-management/lib/features/document-explorer/views/list/list-view.component.d.ts +40 -36
  31. package/document-management/lib/features/document-explorer/views/small-icons/small-icons-view.component.d.ts +40 -36
  32. package/document-management/lib/features/document-explorer/views/small-tiles/small-tiles-view.component.d.ts +40 -36
  33. package/document-management/lib/features/drive/drive.component.d.ts +15 -9
  34. package/document-management/lib/features/drive/index.d.ts +3 -0
  35. package/document-management/lib/features/drive-choose/drive-choose.component.d.ts +16 -8
  36. package/document-management/lib/features/shared/components/document-type-choose-file/document-type-choose-file.component.d.ts +16 -0
  37. package/document-management/lib/features/shared/components/file-viewer-popup/file-viewer-popup.component.d.ts +5 -1
  38. package/document-management/lib/features/shared/components/folder-path-breadcrumbs/folder-path-breadcrumbs.component.d.ts +10 -6
  39. package/document-management/lib/features/shared/components/index.d.ts +1 -0
  40. package/document-management/lib/features/shared/components/link-dialog/link-dialog.component.d.ts +24 -0
  41. package/document-management/lib/features/shared/components/lock-dialog/lock-dialog.component.d.ts +16 -0
  42. package/document-management/lib/features/shared/components/share-dialog/share-dialog.component.d.ts +22 -0
  43. package/document-management/lib/features/shared/components/share-email-dialog/share-email-dialog.component.d.ts +17 -0
  44. package/document-management/lib/features/shared/components/unlock-dialog/unlock-dialog.component.d.ts +10 -0
  45. package/document-management/lib/features/shared/document-manager.service.d.ts +43 -22
  46. package/document-management/lib/features/shared/document-manager.types.d.ts +5 -7
  47. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-column.component.d.ts +1 -1
  48. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +66 -44
  49. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-print.component.d.ts +1 -1
  50. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-view.component.d.ts +1 -1
  51. package/document-management/lib/features/widgets/document-attachment/index.d.ts +0 -1
  52. package/fesm2022/acorex-modules-application-management.mjs +0 -1
  53. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  54. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DrcL7GCj.mjs → acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs} +15 -19
  55. package/fesm2022/acorex-modules-auth-acorex-modules-auth-5o4GqqVA.mjs.map +1 -0
  56. package/fesm2022/{acorex-modules-auth-app-chooser.component-CbJb1P_k.mjs → acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs} +2 -2
  57. package/fesm2022/{acorex-modules-auth-app-chooser.component-CbJb1P_k.mjs.map → acorex-modules-auth-app-chooser.component-NuQzP5DC.mjs.map} +1 -1
  58. package/fesm2022/{acorex-modules-auth-login.module-DFCB1l7W.mjs → acorex-modules-auth-login.module-B_WrZQJx.mjs} +4 -4
  59. package/fesm2022/{acorex-modules-auth-login.module-DFCB1l7W.mjs.map → acorex-modules-auth-login.module-B_WrZQJx.mjs.map} +1 -1
  60. package/fesm2022/{acorex-modules-auth-master.layout-CuKXvY0o.mjs → acorex-modules-auth-master.layout-hDbrFbwO.mjs} +2 -2
  61. package/fesm2022/{acorex-modules-auth-master.layout-CuKXvY0o.mjs.map → acorex-modules-auth-master.layout-hDbrFbwO.mjs.map} +1 -1
  62. package/fesm2022/{acorex-modules-auth-password.component-DacOjakT.mjs → acorex-modules-auth-password.component-BnT_IaqN.mjs} +2 -2
  63. package/fesm2022/{acorex-modules-auth-password.component-DacOjakT.mjs.map → acorex-modules-auth-password.component-BnT_IaqN.mjs.map} +1 -1
  64. package/fesm2022/{acorex-modules-auth-password.component-5gwz30CZ.mjs → acorex-modules-auth-password.component-DDE0M5GE.mjs} +2 -2
  65. package/fesm2022/{acorex-modules-auth-password.component-5gwz30CZ.mjs.map → acorex-modules-auth-password.component-DDE0M5GE.mjs.map} +1 -1
  66. package/fesm2022/{acorex-modules-auth-routes-D018Lg-b.mjs → acorex-modules-auth-routes-Da02kID6.mjs} +2 -2
  67. package/fesm2022/{acorex-modules-auth-routes-D018Lg-b.mjs.map → acorex-modules-auth-routes-Da02kID6.mjs.map} +1 -1
  68. package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs +271 -0
  69. package/fesm2022/acorex-modules-auth-setting.provider-D3A0WUgJ.mjs.map +1 -0
  70. package/fesm2022/{acorex-modules-auth-two-factor.module-DiEB7VWl.mjs → acorex-modules-auth-two-factor.module-BrDpX4X1.mjs} +2 -2
  71. package/fesm2022/{acorex-modules-auth-two-factor.module-DiEB7VWl.mjs.map → acorex-modules-auth-two-factor.module-BrDpX4X1.mjs.map} +1 -1
  72. package/fesm2022/acorex-modules-auth.mjs +1 -1
  73. package/fesm2022/acorex-modules-common-index-rvP9ISgL.mjs +717 -0
  74. package/fesm2022/acorex-modules-common-index-rvP9ISgL.mjs.map +1 -0
  75. package/fesm2022/acorex-modules-common.mjs +34 -24
  76. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  77. package/fesm2022/acorex-modules-conversation.mjs +4 -2
  78. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  79. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-_BOVaDOq.mjs → acorex-modules-document-management-acorex-modules-document-management-CI0m4lpX.mjs} +1015 -260
  80. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CI0m4lpX.mjs.map +1 -0
  81. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D8anTs3Q.mjs +117 -0
  82. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D8anTs3Q.mjs.map +1 -0
  83. package/fesm2022/{acorex-modules-document-management-details-view.component-BHcu_gYH.mjs → acorex-modules-document-management-details-view.component-z05RykKt.mjs} +2 -2
  84. package/fesm2022/{acorex-modules-document-management-details-view.component-BHcu_gYH.mjs.map → acorex-modules-document-management-details-view.component-z05RykKt.mjs.map} +1 -1
  85. package/fesm2022/{acorex-modules-document-management-drive-choose.component-WoZfDyLK.mjs → acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs} +22 -16
  86. package/fesm2022/acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs.map +1 -0
  87. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DvriE0YR.mjs → acorex-modules-document-management-large-icons-view.component-DctO0SZ7.mjs} +2 -2
  88. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DvriE0YR.mjs.map → acorex-modules-document-management-large-icons-view.component-DctO0SZ7.mjs.map} +1 -1
  89. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-ByWrKvZe.mjs → acorex-modules-document-management-large-tiles-view.component-CtCdVI_p.mjs} +2 -2
  90. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-ByWrKvZe.mjs.map → acorex-modules-document-management-large-tiles-view.component-CtCdVI_p.mjs.map} +1 -1
  91. package/fesm2022/acorex-modules-document-management-link-dialog.component-1iPUnhr1.mjs +70 -0
  92. package/fesm2022/acorex-modules-document-management-link-dialog.component-1iPUnhr1.mjs.map +1 -0
  93. package/fesm2022/{acorex-modules-document-management-list-view.component-B6J6Tokv.mjs → acorex-modules-document-management-list-view.component-Cz2wNqhM.mjs} +2 -2
  94. package/fesm2022/{acorex-modules-document-management-list-view.component-B6J6Tokv.mjs.map → acorex-modules-document-management-list-view.component-Cz2wNqhM.mjs.map} +1 -1
  95. package/fesm2022/acorex-modules-document-management-lock-dialog.component-BwKdUUcf.mjs +52 -0
  96. package/fesm2022/acorex-modules-document-management-lock-dialog.component-BwKdUUcf.mjs.map +1 -0
  97. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-Dae6RWb8.mjs → acorex-modules-document-management-rename-node-dialog.component-DB868l1X.mjs} +10 -10
  98. package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-DB868l1X.mjs.map +1 -0
  99. package/fesm2022/acorex-modules-document-management-share-dialog.component-BiNdRpqs.mjs +143 -0
  100. package/fesm2022/acorex-modules-document-management-share-dialog.component-BiNdRpqs.mjs.map +1 -0
  101. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-BvR5OuCV.mjs +55 -0
  102. package/fesm2022/acorex-modules-document-management-share-email-dialog.component-BvR5OuCV.mjs.map +1 -0
  103. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-TrYeB22e.mjs → acorex-modules-document-management-small-icons-view.component-B_O5Qpmi.mjs} +2 -2
  104. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-TrYeB22e.mjs.map → acorex-modules-document-management-small-icons-view.component-B_O5Qpmi.mjs.map} +1 -1
  105. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DDKdWg8I.mjs → acorex-modules-document-management-small-tiles-view.component-b2lauUIY.mjs} +2 -2
  106. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-DDKdWg8I.mjs.map → acorex-modules-document-management-small-tiles-view.component-b2lauUIY.mjs.map} +1 -1
  107. package/fesm2022/acorex-modules-document-management-unlock-dialog.component-DkZQ84kg.mjs +37 -0
  108. package/fesm2022/acorex-modules-document-management-unlock-dialog.component-DkZQ84kg.mjs.map +1 -0
  109. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  110. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs} +30 -24
  111. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs.map +1 -0
  112. package/fesm2022/{acorex-modules-form-template-management-category.entity-BdiYytzK.mjs → acorex-modules-form-template-management-category.entity-CLFAo0Cn.mjs} +7 -3
  113. package/fesm2022/acorex-modules-form-template-management-category.entity-CLFAo0Cn.mjs.map +1 -0
  114. package/fesm2022/{acorex-modules-form-template-management-setting.provider-CoETMkEC.mjs → acorex-modules-form-template-management-setting.provider-DgHwqlhz.mjs} +20 -17
  115. package/fesm2022/acorex-modules-form-template-management-setting.provider-DgHwqlhz.mjs.map +1 -0
  116. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-0JfGxdMv.mjs → acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs} +5 -4
  117. package/fesm2022/acorex-modules-form-template-management-template-picker.component-M-R2U9CH.mjs.map +1 -0
  118. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkJ3ieIg.mjs → acorex-modules-form-template-management-template-widget-edit.component-CYAyug_g.mjs} +2 -2
  119. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-BkJ3ieIg.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-CYAyug_g.mjs.map} +1 -1
  120. package/fesm2022/{acorex-modules-form-template-management-template.entity-ByE2p0Mu.mjs → acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs} +53 -33
  121. package/fesm2022/acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs.map +1 -0
  122. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CThcXWpt.mjs → acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs} +2 -2
  123. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CThcXWpt.mjs.map → acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs.map} +1 -1
  124. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  125. package/fesm2022/acorex-modules-notification-management.mjs +43 -35
  126. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  127. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-JKQwYEPq.mjs → acorex-modules-organization-management-org-chart-configuration.page-BFu7TUGC.mjs} +3 -3
  128. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-JKQwYEPq.mjs.map → acorex-modules-organization-management-org-chart-configuration.page-BFu7TUGC.mjs.map} +1 -1
  129. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-QLdDEdqL.mjs → acorex-modules-organization-management-org-chart-configuration.service-B4ohp4o5.mjs} +5 -4
  130. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-B4ohp4o5.mjs.map +1 -0
  131. package/fesm2022/{acorex-modules-organization-management-org-chart.page-C2ZtUVKI.mjs → acorex-modules-organization-management-org-chart.page-BIytyLYP.mjs} +3 -4
  132. package/fesm2022/acorex-modules-organization-management-org-chart.page-BIytyLYP.mjs.map +1 -0
  133. package/fesm2022/{acorex-modules-organization-management-setting.provider-CMDpwkG2.mjs → acorex-modules-organization-management-setting.provider-BPjFNA5E.mjs} +44 -23
  134. package/fesm2022/acorex-modules-organization-management-setting.provider-BPjFNA5E.mjs.map +1 -0
  135. package/fesm2022/acorex-modules-organization-management.mjs +6 -6
  136. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  137. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DNUdH0N9.mjs +4703 -0
  138. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DNUdH0N9.mjs.map +1 -0
  139. package/fesm2022/{acorex-modules-platform-management-list-version.component-C9764yzu.mjs → acorex-modules-platform-management-list-version.component-D3yLcmjw.mjs} +2 -2
  140. package/fesm2022/{acorex-modules-platform-management-list-version.component-C9764yzu.mjs.map → acorex-modules-platform-management-list-version.component-D3yLcmjw.mjs.map} +1 -1
  141. package/fesm2022/acorex-modules-platform-management-setting.provider-CQCoLwHW.mjs +335 -0
  142. package/fesm2022/acorex-modules-platform-management-setting.provider-CQCoLwHW.mjs.map +1 -0
  143. package/fesm2022/acorex-modules-platform-management.mjs +1 -4866
  144. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  145. package/fesm2022/acorex-modules-security-management.mjs +18 -12
  146. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  147. package/form-template-management/lib/entities/category/category.service.d.ts +2 -2
  148. package/form-template-management/lib/entities/category/category.types.d.ts +2 -1
  149. package/form-template-management/lib/entities/template/template.service.d.ts +2 -2
  150. package/form-template-management/lib/entities/template/template.types.d.ts +38 -5
  151. package/form-template-management/lib/features/designer/template.provider.d.ts +1 -1
  152. package/form-template-management/lib/features/designer/widgets/template-picker/template.provider.d.ts +3 -3
  153. package/form-template-management/lib/setting.provider.d.ts +4 -0
  154. package/notification-management/lib/setting.provider.d.ts +4 -0
  155. package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +2 -2
  156. package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +2 -2
  157. package/organization-management/lib/setting.provider.d.ts +5 -3
  158. package/package.json +1 -1
  159. package/platform-management/lib/common/regional/setting.keys.d.ts +3 -1
  160. package/platform-management/lib/common/regional/setting.provider.d.ts +4 -1
  161. package/security-management/lib/entities/users/users.service.d.ts +4 -4
  162. package/security-management/lib/entities/users/users.types.d.ts +0 -4
  163. package/common/lib/features/dashboard-home/index.d.ts +0 -1
  164. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-filter.component.d.ts +0 -6
  165. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DrcL7GCj.mjs.map +0 -1
  166. package/fesm2022/acorex-modules-auth-setting.provider-DDl3OHw6.mjs +0 -59
  167. package/fesm2022/acorex-modules-auth-setting.provider-DDl3OHw6.mjs.map +0 -1
  168. package/fesm2022/acorex-modules-common-index-D90SN6SH.mjs +0 -507
  169. package/fesm2022/acorex-modules-common-index-D90SN6SH.mjs.map +0 -1
  170. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-_BOVaDOq.mjs.map +0 -1
  171. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D66KoQNb.mjs +0 -92
  172. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D66KoQNb.mjs.map +0 -1
  173. package/fesm2022/acorex-modules-document-management-drive-choose.component-WoZfDyLK.mjs.map +0 -1
  174. package/fesm2022/acorex-modules-document-management-drive.component-B3BCzdVv.mjs +0 -305
  175. package/fesm2022/acorex-modules-document-management-drive.component-B3BCzdVv.mjs.map +0 -1
  176. package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-Dae6RWb8.mjs.map +0 -1
  177. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs.map +0 -1
  178. package/fesm2022/acorex-modules-form-template-management-category.entity-BdiYytzK.mjs.map +0 -1
  179. package/fesm2022/acorex-modules-form-template-management-setting.provider-CoETMkEC.mjs.map +0 -1
  180. package/fesm2022/acorex-modules-form-template-management-template-picker.component-0JfGxdMv.mjs.map +0 -1
  181. package/fesm2022/acorex-modules-form-template-management-template.entity-ByE2p0Mu.mjs.map +0 -1
  182. package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-QLdDEdqL.mjs.map +0 -1
  183. package/fesm2022/acorex-modules-organization-management-org-chart.page-C2ZtUVKI.mjs.map +0 -1
  184. package/fesm2022/acorex-modules-organization-management-setting.provider-CMDpwkG2.mjs.map +0 -1
  185. /package/common/lib/features/{dashboard-home/dashboard.type.d.ts → home-dashboard/dashboard-home/home-dashboard.type.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-form-template-management-template-widget-edit.component-BkJ3ieIg.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template/template-widget-edit.component.ts"],"sourcesContent":["import { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPLayoutBuilderModule, AXPWidgetComponent, AXPWidgetNode } from '@acorex/platform/layout/builder';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, effect, inject, signal, untracked } from '@angular/core';\nimport { get, set } from 'lodash-es';\nimport { AXPTemplateWidgetProviderService } from '../template-picker/template.provider';\n\n@Component({\n selector: 'axp-template-widget-edit',\n template: `\n @for (node of nodes(); track $index) {\n <ng-container axp-widget-renderer\n [node]=\"node\"\n [parentNode]=\"this\"\n [mode]=\"this.mode\">\n </ng-container>\n }\n <!-- @if(nodes().length>0) {\n <ng-container>\n \n </ng-container> -->\n <!-- @if(showRemove())\n {\n <div\n class=\"ax-text-danger-500 hover:ax-text-danger-800 ax-mt-2 ax-text-xs ax-cursor-pointer\"\n (click)=\"handleRemoveClick()\"\n >\n {{ 'remove-template' | translate : { scope: 'form-template-management' } | async }}\n </div>\n }\n } \n @else {\n <span\n class=\"ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer\"\n (click)=\"handleSelectClick()\"\n >\n {{ 'choose-template' | translate : { scope: 'form-template-management' } | async }}\n </span>\n } -->\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXPLayoutBuilderModule, AXTranslationModule]\n})\nexport class AXPTemplateWidgetEditComponent extends AXPWidgetComponent<any> {\n private metaKey = '__meta__';\n\n private templateProvider = inject(AXPTemplateWidgetProviderService);\n protected templateId = computed<string>(() => this.options()['templateId'] as string);\n protected nodes = signal<AXPWidgetNode[]>([]);\n // protected allowRemove = computed<boolean>(() => this.options()['allowRemove'] as boolean ?? false);\n\n\n // protected showRemove = computed(() => {\n // return this.allowRemove() && this.parent?.config.name != 'template';\n // });\n\n constructor() {\n super();\n //\n effect(\n async () => {\n this.nodes.set([]);\n const templateId = this.templateId();\n if (templateId) {\n const item = await this.templateProvider.get(templateId);\n if (item) {\n this.nodes.set(item.nodes);\n }\n }\n }\n );\n }\n\n //TODO: make a new widget to handle select widget in edit mode\n // protected async handleSelectClick() {\n // const result = await this.templateProvider.chooseTemplate();\n // if (result) {\n // this.setOptions({ templateId: result.id });\n // const value = this.getValue() ?? {};\n // set(value, this.metaKey, { templateId: result.id });\n // this.setValue(value);\n // }\n // }\n\n // protected async handleRemoveClick() {\n // this.setOptions({ templateId: null });\n // this.setValue(null);\n // }\n}\n"],"names":["i1"],"mappings":";;;;;;;;AA2CM,MAAO,8BAA+B,SAAQ,kBAAuB,CAAA;;;;;AAazE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK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IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,0BAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAExD,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBApC1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,sBAAsB,EAAE,mBAAmB;AACpE,iBAAA;;;;;"}
1
+ {"version":3,"file":"acorex-modules-form-template-management-template-widget-edit.component-CYAyug_g.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/features/designer/widgets/template/template-widget-edit.component.ts"],"sourcesContent":["import { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPLayoutBuilderModule, AXPWidgetComponent, AXPWidgetNode } from '@acorex/platform/layout/builder';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, effect, inject, signal, untracked } from '@angular/core';\nimport { get, set } from 'lodash-es';\nimport { AXPTemplateWidgetProviderService } from '../template-picker/template.provider';\n\n@Component({\n selector: 'axp-template-widget-edit',\n template: `\n @for (node of nodes(); track $index) {\n <ng-container axp-widget-renderer\n [node]=\"node\"\n [parentNode]=\"this\"\n [mode]=\"this.mode\">\n </ng-container>\n }\n <!-- @if(nodes().length>0) {\n <ng-container>\n \n </ng-container> -->\n <!-- @if(showRemove())\n {\n <div\n class=\"ax-text-danger-500 hover:ax-text-danger-800 ax-mt-2 ax-text-xs ax-cursor-pointer\"\n (click)=\"handleRemoveClick()\"\n >\n {{ 'remove-template' | translate : { scope: 'form-template-management' } | async }}\n </div>\n }\n } \n @else {\n <span\n class=\"ax-underline ax-decoration-dotted ax-underline-offset-8 hover:ax-text-primary-500 ax-cursor-pointer\"\n (click)=\"handleSelectClick()\"\n >\n {{ 'choose-template' | translate : { scope: 'form-template-management' } | async }}\n </span>\n } -->\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXPLayoutBuilderModule, AXTranslationModule]\n})\nexport class AXPTemplateWidgetEditComponent extends AXPWidgetComponent<any> {\n private metaKey = '__meta__';\n\n private templateProvider = inject(AXPTemplateWidgetProviderService);\n protected templateId = computed<string>(() => this.options()['templateId'] as string);\n protected nodes = signal<AXPWidgetNode[]>([]);\n // protected allowRemove = computed<boolean>(() => this.options()['allowRemove'] as boolean ?? false);\n\n\n // protected showRemove = computed(() => {\n // return this.allowRemove() && this.parent?.config.name != 'template';\n // });\n\n constructor() {\n super();\n //\n effect(\n async () => {\n this.nodes.set([]);\n const templateId = this.templateId();\n if (templateId) {\n const item = await this.templateProvider.get(templateId);\n if (item) {\n this.nodes.set(item.nodes);\n }\n }\n }\n );\n }\n\n //TODO: make a new widget to handle select widget in edit mode\n // protected async handleSelectClick() {\n // const result = await this.templateProvider.chooseTemplate();\n // if (result) {\n // this.setOptions({ templateId: result.id });\n // const value = this.getValue() ?? {};\n // set(value, this.metaKey, { templateId: result.id });\n // this.setValue(value);\n // }\n // }\n\n // protected async handleRemoveClick() {\n // this.setOptions({ templateId: null });\n // this.setValue(null);\n // }\n}\n"],"names":["i1"],"mappings":";;;;;;;;AA2CM,MAAO,8BAA+B,SAAQ,kBAAuB,CAAA;;;;;AAazE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QAbD,IAAO,CAAA,OAAA,GAAG,UAAU;AAEpB,QAAA,IAAA,CA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AA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAExD,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBApC1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,sBAAsB,EAAE,mBAAmB;AACpE,iBAAA;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { createAllQueryView, createQueryView, AXPEntityCommandScope, AXPEntityQueryType } from '@acorex/platform/common';
2
2
  import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
3
- import { a as AXMFormTemplateManagementTemplateEntityService, R as RootConfig, b as AXMFormTemplateTypes } from './acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs';
3
+ import { a as AXMFormTemplateManagementTemplateEntityService, R as RootConfig, b as AXMFormTemplateTypes } from './acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs';
4
4
 
5
5
  async function factory(injector) {
6
6
  const dataService = injector.get(AXMFormTemplateManagementTemplateEntityService);
@@ -18,6 +18,21 @@ async function factory(injector) {
18
18
  description: RootConfig.module.title,
19
19
  },
20
20
  },
21
+ category: {
22
+ entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,
23
+ title: 'Categories',
24
+ textField: 'title',
25
+ valueField: 'id',
26
+ applyConditions: [
27
+ {
28
+ name: 'categoryId',
29
+ operator: {
30
+ type: 'equal',
31
+ },
32
+ value: 'id',
33
+ },
34
+ ],
35
+ },
21
36
  relatedEntities: [],
22
37
  groups: [
23
38
  {
@@ -27,8 +42,8 @@ async function factory(injector) {
27
42
  ],
28
43
  properties: [
29
44
  {
30
- name: 'documentId',
31
- title: `t("document-id",{scope:"${i18n}"})`,
45
+ name: 'templateId',
46
+ title: `t("template-id",{scope:"${i18n}"})`,
32
47
  groupId: 'section',
33
48
  options: {
34
49
  filter: {
@@ -51,14 +66,14 @@ async function factory(injector) {
51
66
  {
52
67
  rule: 'minLength',
53
68
  options: {
54
- value: 3
55
- }
69
+ value: 3,
70
+ },
56
71
  },
57
72
  {
58
73
  rule: 'maxLength',
59
74
  options: {
60
- value: 10
61
- }
75
+ value: 10,
76
+ },
62
77
  },
63
78
  ],
64
79
  },
@@ -87,19 +102,19 @@ async function factory(injector) {
87
102
  {
88
103
  rule: 'minLength',
89
104
  options: {
90
- value: 3
91
- }
105
+ value: 3,
106
+ },
92
107
  },
93
108
  {
94
109
  rule: 'maxLength',
95
110
  options: {
96
- value: 50
97
- }
111
+ value: 50,
112
+ },
98
113
  },
99
114
  ],
100
115
  },
101
116
  {
102
- name: 'categoryId',
117
+ name: 'categoryIds',
103
118
  title: `t("categoryId",{scope:"${i18n}"})`,
104
119
  groupId: 'section',
105
120
  schema: {
@@ -108,9 +123,10 @@ async function factory(injector) {
108
123
  type: AXPWidgetsCatalog.lookup,
109
124
  options: {
110
125
  entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,
126
+ multiple: true,
111
127
  expose: [
112
- { source: 'id', target: 'categoryId' },
113
- { source: 'title', target: 'category.title' },
128
+ { source: 'id', target: 'categories.{id}' },
129
+ { source: 'title', target: 'categories.{title}' },
114
130
  ],
115
131
  },
116
132
  },
@@ -168,10 +184,10 @@ async function factory(injector) {
168
184
  },
169
185
  ],
170
186
  columns: [
171
- { name: 'documentId' },
187
+ { name: 'templateId' },
172
188
  { name: 'title' },
173
189
  { name: 'type' },
174
- { name: 'categoryId', options: { dataPath: 'category.title' } },
190
+ { name: 'categoryIds', options: { dataPath: 'categories' } },
175
191
  { name: 'isArchived' },
176
192
  ],
177
193
  commands: {
@@ -201,7 +217,10 @@ async function factory(injector) {
201
217
  },
202
218
  list: {
203
219
  execute: async (e) => {
204
- return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
220
+ console.log('e: ', e);
221
+ const res = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
222
+ console.log('res: ', res);
223
+ return res;
205
224
  },
206
225
  type: AXPEntityQueryType.List,
207
226
  },
@@ -216,7 +235,7 @@ async function factory(injector) {
216
235
  ],
217
236
  properties: [
218
237
  {
219
- name: 'documentId',
238
+ name: 'templateId',
220
239
  layout: {
221
240
  positions: {
222
241
  lg: {
@@ -247,7 +266,7 @@ async function factory(injector) {
247
266
  },
248
267
  },
249
268
  {
250
- name: 'categoryId',
269
+ name: 'categoryIds',
251
270
  layout: {
252
271
  order: 20,
253
272
  positions: {
@@ -267,7 +286,7 @@ async function factory(injector) {
267
286
  ],
268
287
  properties: [
269
288
  {
270
- name: 'documentId',
289
+ name: 'templateId',
271
290
  layout: {
272
291
  positions: {
273
292
  lg: {
@@ -287,7 +306,7 @@ async function factory(injector) {
287
306
  },
288
307
  },
289
308
  {
290
- name: 'categoryId',
309
+ name: 'categoryIds',
291
310
  layout: {
292
311
  positions: {
293
312
  lg: {
@@ -309,7 +328,7 @@ async function factory(injector) {
309
328
  ],
310
329
  },
311
330
  single: {
312
- title: '{{title}} {{documentId}}',
331
+ title: '{{title}} {{templateId}}',
313
332
  sections: [
314
333
  {
315
334
  id: 'section',
@@ -334,7 +353,7 @@ async function factory(injector) {
334
353
  ],
335
354
  properties: [
336
355
  {
337
- name: 'documentId',
356
+ name: 'templateId',
338
357
  layout: {
339
358
  positions: {
340
359
  lg: {
@@ -364,7 +383,8 @@ async function factory(injector) {
364
383
  },
365
384
  },
366
385
  {
367
- name: 'categoryId',
386
+ name: 'categoryIds',
387
+ dataPath: 'categories',
368
388
  layout: {
369
389
  positions: {
370
390
  lg: {
@@ -425,8 +445,8 @@ async function factory(injector) {
425
445
  command: {
426
446
  name: 'open-form-template',
427
447
  metadata: {
428
- preview: true
429
- }
448
+ preview: true,
449
+ },
430
450
  },
431
451
  priority: 'primary',
432
452
  type: 'view',
@@ -466,24 +486,24 @@ async function factory(injector) {
466
486
  createQueryView('forms', `t("forms", { scope: "${i18n}" })`, true, {
467
487
  conditions: [
468
488
  {
469
- name: 'type.value',
489
+ name: 'type.id',
470
490
  operator: {
471
491
  type: 'equal',
472
492
  },
473
493
  value: 10,
474
- }
475
- ]
494
+ },
495
+ ],
476
496
  }),
477
497
  createQueryView('widgets', `t("widgets", { scope: "${i18n}" })`, true, {
478
498
  conditions: [
479
499
  {
480
- name: 'type.value',
500
+ name: 'type.id',
481
501
  operator: {
482
502
  type: 'equal',
483
503
  },
484
504
  value: 20,
485
- }
486
- ]
505
+ },
506
+ ],
487
507
  }),
488
508
  ],
489
509
  },
@@ -494,4 +514,4 @@ async function factory(injector) {
494
514
  }
495
515
 
496
516
  export { factory };
497
- //# sourceMappingURL=acorex-modules-form-template-management-template.entity-ByE2p0Mu.mjs.map
517
+ //# sourceMappingURL=acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/entities/template/template.entity.ts"],"sourcesContent":["import {\n AXPEntity,\n AXPEntityCommandScope,\n AXPEntityQueryType,\n createAllQueryView,\n createQueryView,\n} from '@acorex/platform/common';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { Injector } from '@angular/core';\n\nimport { RootConfig } from '../../const';\nimport { AXMFormTemplateManagementTemplateEntityService } from './template.service';\nimport { AXMFormTemplateTypes } from './template.types';\n\nexport async function factory(injector: Injector): Promise<AXPEntity | null> {\n const dataService = injector.get(AXMFormTemplateManagementTemplateEntityService);\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.template.name,\n source: '',\n title: RootConfig.entities.template.title,\n formats: {\n individual: `t(\"template\",{scope:\"${i18n}\"})`,\n plural: `t(\"templates\",{scope:\"${i18n}\"})`,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n category: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,\n title: 'Categories',\n textField: 'title',\n valueField: 'id',\n applyConditions: [\n {\n name: 'categoryId',\n operator: {\n type: 'equal',\n },\n value: 'id',\n },\n ],\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: `t(\"information\",{scope:\"common\"})`,\n },\n ],\n properties: [\n {\n name: 'templateId',\n title: `t(\"template-id\",{scope:\"${i18n}\"})`,\n groupId: 'section',\n options: {\n filter: {\n inline: { enabled: true },\n },\n sort: {\n enabled: true,\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n {\n rule: 'minLength',\n options: {\n value: 3,\n },\n },\n {\n rule: 'maxLength',\n options: {\n value: 10,\n },\n },\n ],\n },\n {\n name: 'title',\n title: `t(\"title\",{scope:\"common\"})`,\n groupId: 'section',\n options: {\n filter: {\n inline: { enabled: true },\n },\n sort: {\n enabled: true,\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n {\n rule: 'minLength',\n options: {\n value: 3,\n },\n },\n {\n rule: 'maxLength',\n options: {\n value: 50,\n },\n },\n ],\n },\n {\n name: 'categoryIds',\n title: `t(\"categoryId\",{scope:\"${i18n}\"})`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,\n multiple: true,\n expose: [\n { source: 'id', target: 'categories.{id}' },\n { source: 'title', target: 'categories.{title}' },\n ],\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'type',\n title: `t(\"template-type\",{scope:\"${i18n}\"})`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n defaultValue: AXMFormTemplateTypes.Form,\n interface: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'id',\n textField: 'title',\n dataSource: [AXMFormTemplateTypes.Form, AXMFormTemplateTypes.Widget],\n multiple: false,\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'template',\n title: `t(\"template\",{scope:\"${i18n}\"})`,\n groupId: 'section',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.templateDesigner,\n },\n },\n },\n {\n name: 'isArchived',\n title: `t(\"isArchived\",{scope:\"${i18n}\"})`,\n groupId: 'application',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsCatalog.toggle,\n },\n },\n },\n ],\n columns: [\n { name: 'templateId' },\n { name: 'title' },\n { name: 'type' },\n { name: 'categoryIds', options: { dataPath: 'categories' } },\n { name: 'isArchived' },\n ],\n commands: {\n create: {\n execute: async (data: any) => {\n const res = await dataService.insertOne(data);\n return { id: res };\n },\n },\n delete: {\n execute: async (id: any) => {\n return await dataService.deleteOne(id);\n },\n },\n update: {\n execute: async (data: any) => {\n return await dataService.updateOne(data.id, data);\n },\n },\n },\n queries: {\n byKey: {\n execute: async (id: string) => {\n return await dataService.getOne(id);\n },\n type: AXPEntityQueryType.Single,\n },\n list: {\n execute: async (e: any) => {\n console.log('e: ', e);\n const res = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });\n console.log('res: ', res);\n return res;\n },\n type: AXPEntityQueryType.List,\n },\n },\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'templateId',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'type',\n layout: {\n order: 10,\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'categoryIds',\n layout: {\n order: 20,\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'section',\n },\n ],\n properties: [\n {\n name: 'templateId',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'categoryIds',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'type',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n ],\n },\n single: {\n title: '{{title}} {{templateId}}',\n sections: [\n {\n id: 'section',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n id: 'template',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n properties: [\n {\n name: 'templateId',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'type',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'categoryIds',\n dataPath: 'categories',\n layout: {\n positions: {\n lg: {\n colSpan: 4,\n },\n },\n },\n },\n {\n name: 'template',\n layout: {\n label: {\n visible: false,\n },\n positions: {\n lg: {\n colSpan: 4,\n },\n },\n },\n },\n ],\n actions: [\n {\n command: 'archive-entity',\n priority: 'secondary',\n scope: AXPEntityCommandScope.Individual,\n type: 'archive',\n title: `t(\"archive\", { scope: \"common\" })`,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n },\n list: {\n actions: [\n {\n title: `t(\"create\", { scope: \"common\" })`,\n command: 'create-form-template',\n priority: 'primary',\n type: 'create',\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n title: `t(\"design\", { scope: \"common\" })`,\n command: 'design-form-template',\n priority: 'primary',\n type: 'design',\n scope: AXPEntityCommandScope.Individual,\n },\n\n {\n title: `t(\"open\", { scope: \"common\" })`,\n command: {\n name: 'open-form-template',\n metadata: {\n preview: true,\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'primary',\n type: 'delete',\n scope: AXPEntityCommandScope.Selected,\n },\n {\n title: 't(\"detail\", { scope: \"common\" })',\n command: 'open-entity',\n priority: 'secondary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n title: 't(\"delete\", { scope: \"common\" })',\n command: 'delete-entity',\n priority: 'secondary',\n type: 'delete',\n scope: AXPEntityCommandScope.Individual,\n },\n {\n command: 'archive-entity',\n priority: 'secondary',\n scope: AXPEntityCommandScope.Selected,\n type: 'archive',\n title: `t(\"archive\", { scope: \"common\" })`,\n },\n ],\n views: [\n createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),\n createQueryView('forms', `t(\"forms\", { scope: \"${i18n}\" })`, true, {\n conditions: [\n {\n name: 'type.id',\n operator: {\n type: 'equal',\n },\n value: 10,\n },\n ],\n }),\n createQueryView('widgets', `t(\"widgets\", { scope: \"${i18n}\" })`, true, {\n conditions: [\n {\n name: 'type.id',\n operator: {\n type: 'equal',\n },\n value: 20,\n },\n ],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAcO,eAAe,OAAO,CAAC,QAAkB,EAAA;IAC9C,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,8CAA8C,CAAC;AAChF,IAAA,MAAM,IAA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AAE,EAAE;AACV,iCAAA;AACF,6BAAA;yBACF,CAAC;wBACF,eAAe,CAAC,SAAS,EAAE,CAAA,uBAAA,EAA0B,IAAI,CAAM,IAAA,CAAA,EAAE,IAAI,EAAE;AACrE,4BAAA,UAAU,EAAE;AACV,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,QAAQ,EAAE;AACR,wCAAA,IAAI,EAAE,OAAO;AACd,qCAAA;AACD,oCAAA,KAAK,EAAE,EAAE;AACV,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
@@ -4,7 +4,7 @@ import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i0 from '@angular/core';
6
6
  import { signal, inject, computed, ViewEncapsulation, Component } from '@angular/core';
7
- import { c as AXPFormTemplateViewerConnector } from './acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs';
7
+ import { c as AXPFormTemplateViewerConnector } from './acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs';
8
8
  import { AXBasePageComponent } from '@acorex/components/page';
9
9
  import * as i5 from '@acorex/components/decorators';
10
10
  import { AXDecoratorModule } from '@acorex/components/decorators';
@@ -90,4 +90,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
90
90
  }] });
91
91
 
92
92
  export { AXPFormTemplateViewerPopupComponent };
93
- //# sourceMappingURL=acorex-modules-form-template-management-viewer-popup.component-CThcXWpt.mjs.map
93
+ //# sourceMappingURL=acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-modules-form-template-management-viewer-popup.component-CThcXWpt.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/features/viewer/viewer-popup.component.ts"],"sourcesContent":["import { AXPLayoutBuilderModule, AXPLayoutContextChangeEvent, AXPWidgetDataSource, AXPWidgetDataSourceProviderService, AXPWidgetNode, AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, inject, signal, ViewEncapsulation } from '@angular/core';\nimport { AXPFormTemplateViewerConnector } from './viewer-connector.service'\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPMetaData } from '@acorex/platform/core';\n\n@Component({\n template: `\n <div class=\"ax-p-4 ax-min-h-64\">\n <ax-form #form>\n <axp-widgets-container [context]=\"context\" (onContextChanged)=\"handleContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"currentPage()\" [mode]=\"'edit'\"></ng-container>\n </axp-widgets-container>\n </ax-form>\n </div>\n <ax-footer *translate=\"let t\">\n <ax-suffix>\n <ax-button [text]=\"t('cancel') | async\" (onClick)=\"this.close()\"></ax-button>\n <ax-button color=\"primary\" [text]=\"t('submit') | async\" (onClick)=\"handleSubmitClick(form)\"> </ax-button>\n </ax-suffix>\n </ax-footer>\n `,\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, AXPLayoutBuilderModule, AXDecoratorModule, AXButtonModule, AXFormModule, AXTranslationModule]\n})\nexport class AXPFormTemplateViewerPopupComponent extends AXBasePageComponent {\n\n\n protected context: any = {};\n protected readonly document = signal({ type: AXPWidgetsCatalog.document } as AXPWidgetNode);\n protected readonly currentPageIndex = signal(0);\n protected connector = inject(AXPFormTemplateViewerConnector);\n protected dataSourceProvider = inject(AXPWidgetDataSourceProviderService);\n\n protected templateId: string = '';\n protected metadata?: AXPMetaData | undefined;\n\n protected readonly currentPage = computed(() => {\n return (\n this.document().children?.[this.currentPageIndex()] ?? ({ type: AXPWidgetsCatalog.pageLayout } as AXPWidgetNode)\n );\n });\n\n\n protected override async ngOnInit() {\n super.ngOnInit();\n const data = await this.connector.load(this.templateId);\n this.document.set(JSON.parse(data || '{}'));\n }\n\n\n\n protected handleContextChanged(e: AXPLayoutContextChangeEvent) {\n this.context = e.data;\n }\n\n protected functions = {\n getDataSourceNames: this.getDataSources.bind(this),\n };\n\n private async getDataSources(name: string): Promise<AXPWidgetDataSource | undefined> {\n return await this.dataSourceProvider.get(name);\n }\n\n protected async handleSubmitClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n await this.connector.submit(this.templateId, this.context, this.metadata);\n this.close({context:this.context});\n }\n }\n}\n"],"names":["i5","i6"],"mappings":";;;;;;;;;;;;;;;;;AA8BM,MAAO,mCAAoC,SAAQ,mBAAmB,CAAA;AAnB5E,IAAA,WAAA,GAAA;;QAsBc,IAAO,CAAA,OAAA,GAAQ,EAAE;QACR,IAAQ,CAAA,QAAA,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,iBAAiB,CAAC,QAAQ,EAAmB,CAAC;AACxE,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,CAAC,CAAC;AACrC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,8BAA8B,CAAC;AAClD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,kCAAkC,CAAC;QAE/D,IAAU,CAAA,UAAA,GAAW,EAAE;AAGd,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;YAC3C,QACI,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC,IAAK,EAAE,IAAI,EAAE,iBAAiB,CAAC,UAAU,EAAoB;AAExH,SAAC,CAAC;AAeQ,QAAA,IAAA,CAAA,SAAS,GAAG;YAClB,kBAAkB,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC;SACrD;AAaJ;AA3BuB,IAAA,MAAM,QAAQ,GAAA;QAC9B,KAAK,CAA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EAAA,MAAA,EAAA,cAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAE3G,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAnB/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;AAcX,EAAA,CAAA;oBACC,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB;AACvH,iBAAA;;;;;"}
1
+ {"version":3,"file":"acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs","sources":["../../../../libs/modules/form-template-management/src/lib/features/viewer/viewer-popup.component.ts"],"sourcesContent":["import { AXPLayoutBuilderModule, AXPLayoutContextChangeEvent, AXPWidgetDataSource, AXPWidgetDataSourceProviderService, AXPWidgetNode, AXPWidgetsCatalog } from '@acorex/platform/layout/builder';\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, inject, signal, ViewEncapsulation } from '@angular/core';\nimport { AXPFormTemplateViewerConnector } from './viewer-connector.service'\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPMetaData } from '@acorex/platform/core';\n\n@Component({\n template: `\n <div class=\"ax-p-4 ax-min-h-64\">\n <ax-form #form>\n <axp-widgets-container [context]=\"context\" (onContextChanged)=\"handleContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"currentPage()\" [mode]=\"'edit'\"></ng-container>\n </axp-widgets-container>\n </ax-form>\n </div>\n <ax-footer *translate=\"let t\">\n <ax-suffix>\n <ax-button [text]=\"t('cancel') | async\" (onClick)=\"this.close()\"></ax-button>\n <ax-button color=\"primary\" [text]=\"t('submit') | async\" (onClick)=\"handleSubmitClick(form)\"> </ax-button>\n </ax-suffix>\n </ax-footer>\n `,\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, AXPLayoutBuilderModule, AXDecoratorModule, AXButtonModule, AXFormModule, AXTranslationModule]\n})\nexport class AXPFormTemplateViewerPopupComponent extends AXBasePageComponent {\n\n\n protected context: any = {};\n protected readonly document = signal({ type: AXPWidgetsCatalog.document } as AXPWidgetNode);\n protected readonly currentPageIndex = signal(0);\n protected connector = inject(AXPFormTemplateViewerConnector);\n protected dataSourceProvider = inject(AXPWidgetDataSourceProviderService);\n\n protected templateId: string = '';\n protected metadata?: AXPMetaData | undefined;\n\n protected readonly currentPage = computed(() => {\n return (\n this.document().children?.[this.currentPageIndex()] ?? ({ type: AXPWidgetsCatalog.pageLayout } as AXPWidgetNode)\n );\n });\n\n\n protected override async ngOnInit() {\n super.ngOnInit();\n const data = await this.connector.load(this.templateId);\n this.document.set(JSON.parse(data || '{}'));\n }\n\n\n\n protected handleContextChanged(e: AXPLayoutContextChangeEvent) {\n this.context = e.data;\n }\n\n protected functions = {\n getDataSourceNames: this.getDataSources.bind(this),\n };\n\n private async getDataSources(name: string): Promise<AXPWidgetDataSource | undefined> {\n return await this.dataSourceProvider.get(name);\n }\n\n protected async handleSubmitClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n await this.connector.submit(this.templateId, this.context, this.metadata);\n this.close({context:this.context});\n }\n }\n}\n"],"names":["i5","i6"],"mappings":";;;;;;;;;;;;;;;;;AA8BM,MAAO,mCAAoC,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,EAAE;;;;;;;;;;;;;;AAcX,EAAA,CAAA;oBACC,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB;AACvH,iBAAA;;;;;"}
@@ -1,2 +1,2 @@
1
- export { f as AXMFormTemplateManagementCategoryEntityModule, A as AXMFormTemplateManagementCategoryEntityService, g as AXMFormTemplateManagementCategoryEntityServiceImpl, e as AXMFormTemplateManagementModule, h as AXMFormTemplateManagementTemplateEntityModule, a as AXMFormTemplateManagementTemplateEntityService, i as AXMFormTemplateManagementTemplateEntityServiceImpl, b as AXMFormTemplateTypes, R as RootConfig } from './acorex-modules-form-template-management-acorex-modules-form-template-management-CJYrDtq6.mjs';
1
+ export { f as AXMFormTemplateManagementCategoryEntityModule, A as AXMFormTemplateManagementCategoryEntityService, g as AXMFormTemplateManagementCategoryEntityServiceImpl, e as AXMFormTemplateManagementModule, h as AXMFormTemplateManagementTemplateEntityModule, a as AXMFormTemplateManagementTemplateEntityService, i as AXMFormTemplateManagementTemplateEntityServiceImpl, b as AXMFormTemplateTypes, R as RootConfig } from './acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs';
2
2
  //# sourceMappingURL=acorex-modules-form-template-management.mjs.map
@@ -28,6 +28,7 @@ import { AXAvatarModule } from '@acorex/components/avatar';
28
28
  import * as i4 from '@acorex/components/image';
29
29
  import { AXImageModule } from '@acorex/components/image';
30
30
  import { RootConfig as RootConfig$2 } from '@acorex/modules/form-template-management';
31
+ import { AXTranslationService } from '@acorex/core/translation';
31
32
 
32
33
  const config = {
33
34
  i18n: 'notification-management',
@@ -1702,8 +1703,9 @@ class AXMNotificationManagementModule {
1702
1703
  {
1703
1704
  provide: AXP_SETTING_DEFINITION_PROVIDER,
1704
1705
  useFactory: async () => {
1706
+ const injector = inject(Injector);
1705
1707
  const provider = (await Promise.resolve().then(function () { return setting_provider; })).AXMSettingProvider;
1706
- return new provider();
1708
+ return new provider(injector);
1707
1709
  },
1708
1710
  multi: true,
1709
1711
  },
@@ -1757,8 +1759,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1757
1759
  {
1758
1760
  provide: AXP_SETTING_DEFINITION_PROVIDER,
1759
1761
  useFactory: async () => {
1762
+ const injector = inject(Injector);
1760
1763
  const provider = (await Promise.resolve().then(function () { return setting_provider; })).AXMSettingProvider;
1761
- return new provider();
1764
+ return new provider(injector);
1762
1765
  },
1763
1766
  multi: true,
1764
1767
  },
@@ -1790,26 +1793,31 @@ var AXPSettingKeys;
1790
1793
  })(AXPSettingKeys || (AXPSettingKeys = {}));
1791
1794
 
1792
1795
  class AXMSettingProvider {
1796
+ constructor(injector) {
1797
+ this.injector = injector;
1798
+ this.translateService = this.injector.get(AXTranslationService);
1799
+ }
1793
1800
  async provide(context) {
1801
+ const trans = async (key) => await this.translateService.translateAsync(`settings.notification-settings.${key}`, { scope: 'notification-management' });
1794
1802
  context
1795
1803
  // Add Notification Settings Group
1796
- .addGroup('notification-settings', 'Notification Settings', 'Settings for all notification services.', RootConfig$2.module.icon)
1804
+ .addGroup('notification-settings', await trans('title'), await trans('description'), RootConfig$2.module.icon)
1797
1805
  // SMTP Settings Section
1798
- .addSection('smtp-settings', 'SMTP Settings', 'Configuration for sending emails via SMTP.')
1806
+ .addSection('smtp-settings', await trans('smtp.title'), await trans('smtp.description'))
1799
1807
  .addSetting({
1800
1808
  key: AXPSettingKeys.Server,
1801
- title: 'SMTP Server',
1809
+ title: await trans('smtp.server.title'),
1802
1810
  scope: 'T',
1803
1811
  isInherited: true,
1804
1812
  defaultValue: '',
1805
1813
  widget: {
1806
1814
  type: AXPWidgetsCatalog.text,
1807
1815
  },
1808
- description: 'The address of the SMTP server.',
1816
+ description: await trans('smtp.server.description'),
1809
1817
  })
1810
1818
  .addSetting({
1811
1819
  key: AXPSettingKeys.Port,
1812
- title: 'SMTP Port',
1820
+ title: await trans('smtp.port.title'),
1813
1821
  scope: 'T',
1814
1822
  isInherited: true,
1815
1823
  defaultValue: 587,
@@ -1820,148 +1828,148 @@ class AXMSettingProvider {
1820
1828
  maxValue: 65535,
1821
1829
  },
1822
1830
  },
1823
- description: 'The port for connecting to the SMTP server.',
1831
+ description: await trans('smtp.port.description'),
1824
1832
  })
1825
1833
  .addSetting({
1826
1834
  key: AXPSettingKeys.Username,
1827
- title: 'SMTP Username',
1835
+ title: await trans('smtp.username.title'),
1828
1836
  scope: 'T',
1829
1837
  isInherited: true,
1830
1838
  defaultValue: '',
1831
1839
  widget: {
1832
1840
  type: AXPWidgetsCatalog.text,
1833
1841
  },
1834
- description: 'The username for SMTP server authentication.',
1842
+ description: await trans('smtp.username.description'),
1835
1843
  })
1836
1844
  .addSetting({
1837
1845
  key: AXPSettingKeys.Password,
1838
- title: 'SMTP Password',
1846
+ title: await trans('smtp.password.title'),
1839
1847
  scope: 'T',
1840
1848
  isInherited: true,
1841
1849
  defaultValue: '',
1842
1850
  widget: {
1843
1851
  type: AXPWidgetsCatalog.password,
1844
1852
  },
1845
- description: 'The password for SMTP server authentication.',
1853
+ description: await trans('smtp.password.description'),
1846
1854
  })
1847
1855
  .addSetting({
1848
1856
  key: AXPSettingKeys.UseSSL,
1849
- title: 'Use SSL',
1857
+ title: await trans('smtp.ssl.title'),
1850
1858
  scope: 'T',
1851
1859
  isInherited: true,
1852
1860
  defaultValue: false,
1853
1861
  widget: {
1854
1862
  type: AXPWidgetsCatalog.toggle,
1855
1863
  },
1856
- description: 'Enable SSL for secure communication.',
1864
+ description: await trans('smtp.ssl.description'),
1857
1865
  })
1858
1866
  .addSetting({
1859
1867
  key: AXPSettingKeys.UseTLS,
1860
- title: 'Use TLS',
1868
+ title: await trans('smtp.tls.title'),
1861
1869
  scope: 'T',
1862
1870
  isInherited: true,
1863
1871
  defaultValue: true,
1864
1872
  widget: {
1865
1873
  type: AXPWidgetsCatalog.toggle,
1866
1874
  },
1867
- description: 'Enable TLS for secure communication.',
1875
+ description: await trans('smtp.tls.description'),
1868
1876
  })
1869
1877
  .endSection()
1870
1878
  // Telegram Settings Section
1871
- .addSection('telegram-settings', 'Telegram Settings', 'Configuration for sending notifications via Telegram.')
1879
+ .addSection('telegram-settings', await trans('telegram.title'), await trans('telegram.description'))
1872
1880
  .addSetting({
1873
1881
  key: AXPSettingKeys.TelegramToken,
1874
- title: 'Telegram Bot Token',
1882
+ title: await trans('telegram.token.title'),
1875
1883
  scope: 'T',
1876
1884
  isInherited: true,
1877
1885
  defaultValue: '',
1878
1886
  widget: {
1879
1887
  type: AXPWidgetsCatalog.text,
1880
1888
  },
1881
- description: 'The token for the Telegram bot.',
1889
+ description: await trans('telegram.token.description'),
1882
1890
  })
1883
1891
  .addSetting({
1884
1892
  key: AXPSettingKeys.TelegramChatId,
1885
- title: 'Telegram Chat ID',
1893
+ title: await trans('telegram.chat-id.title'),
1886
1894
  scope: 'T',
1887
1895
  isInherited: true,
1888
1896
  defaultValue: '',
1889
1897
  widget: {
1890
1898
  type: AXPWidgetsCatalog.text,
1891
1899
  },
1892
- description: 'The Chat ID to send Telegram notifications.',
1900
+ description: await trans('telegram.chat-id.description'),
1893
1901
  })
1894
1902
  .endSection()
1895
1903
  // WhatsApp Settings Section
1896
- .addSection('whatsapp-settings', 'WhatsApp Settings', 'Configuration for sending notifications via WhatsApp.')
1904
+ .addSection('whatsapp-settings', await trans('whatsapp.title'), await trans('whatsapp.description'))
1897
1905
  .addSetting({
1898
1906
  key: AXPSettingKeys.WhatsAppApiUrl,
1899
- title: 'WhatsApp API URL',
1907
+ title: await trans('whatsapp.api-url.title'),
1900
1908
  scope: 'T',
1901
1909
  isInherited: true,
1902
1910
  defaultValue: '',
1903
1911
  widget: {
1904
1912
  type: AXPWidgetsCatalog.text,
1905
1913
  },
1906
- description: 'The API URL for WhatsApp integration.',
1914
+ description: await trans('whatsapp.api-url.description'),
1907
1915
  })
1908
1916
  .addSetting({
1909
1917
  key: AXPSettingKeys.WhatsAppAuthToken,
1910
- title: 'WhatsApp Auth Token',
1918
+ title: await trans('whatsapp.auth-token.title'),
1911
1919
  scope: 'T',
1912
1920
  isInherited: true,
1913
1921
  defaultValue: '',
1914
1922
  widget: {
1915
1923
  type: AXPWidgetsCatalog.password,
1916
1924
  },
1917
- description: 'The authentication token for WhatsApp API.',
1925
+ description: await trans('whatsapp.auth-token.description'),
1918
1926
  })
1919
1927
  .endSection()
1920
1928
  // Firebase Settings Section
1921
- .addSection('firebase-settings', 'Firebase Settings', 'Configuration for Firebase notifications.')
1929
+ .addSection('firebase-settings', await trans('firebase.title'), await trans('firebase.description'))
1922
1930
  .addSetting({
1923
1931
  key: AXPSettingKeys.FirebaseApiKey,
1924
- title: 'Firebase API Key',
1932
+ title: await trans('firebase.api-key.title'),
1925
1933
  scope: 'T',
1926
1934
  isInherited: true,
1927
1935
  defaultValue: '',
1928
1936
  widget: {
1929
1937
  type: AXPWidgetsCatalog.text,
1930
1938
  },
1931
- description: 'The API key for Firebase project.',
1939
+ description: await trans('firebase.api-key.description'),
1932
1940
  })
1933
1941
  .addSetting({
1934
1942
  key: AXPSettingKeys.FirebaseProjectId,
1935
- title: 'Firebase Project ID',
1943
+ title: await trans('firebase.project-id.title'),
1936
1944
  scope: 'T',
1937
1945
  isInherited: true,
1938
1946
  defaultValue: '',
1939
1947
  widget: {
1940
1948
  type: AXPWidgetsCatalog.text,
1941
1949
  },
1942
- description: 'The project ID of the Firebase project.',
1950
+ description: await trans('firebase.project-id.description'),
1943
1951
  })
1944
1952
  .addSetting({
1945
1953
  key: AXPSettingKeys.FirebaseSenderId,
1946
- title: 'Firebase Sender ID',
1954
+ title: await trans('firebase.sender-id.title'),
1947
1955
  scope: 'T',
1948
1956
  isInherited: true,
1949
1957
  defaultValue: '',
1950
1958
  widget: {
1951
1959
  type: AXPWidgetsCatalog.text,
1952
1960
  },
1953
- description: 'The sender ID for Firebase notifications.',
1961
+ description: await trans('firebase.sender-id.description'),
1954
1962
  })
1955
1963
  .addSetting({
1956
1964
  key: AXPSettingKeys.FirebaseAppId,
1957
- title: 'Firebase App ID',
1965
+ title: await trans('firebase.app-id.title'),
1958
1966
  scope: 'T',
1959
1967
  isInherited: true,
1960
1968
  defaultValue: '',
1961
1969
  widget: {
1962
1970
  type: AXPWidgetsCatalog.text,
1963
1971
  },
1964
- description: 'The App ID of the Firebase project.',
1972
+ description: await trans('firebase.app-id.description'),
1965
1973
  })
1966
1974
  .endSection()
1967
1975
  // End Notification Settings Group