@acorex/modules 21.0.0-next.7 → 21.0.0-next.8

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 (142) hide show
  1. package/business-core/README.md +44 -1
  2. package/document-management/index.d.ts +1 -2
  3. package/fesm2022/acorex-modules-application-management.mjs +1 -0
  4. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  5. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-D5jGjm6i.mjs → acorex-modules-auth-acorex-modules-auth-8XP9xX7L.mjs} +95 -51
  6. package/fesm2022/acorex-modules-auth-acorex-modules-auth-8XP9xX7L.mjs.map +1 -0
  7. package/fesm2022/{acorex-modules-auth-app-chooser.component-BL3Fmc7y.mjs → acorex-modules-auth-app-chooser.component-BvbLYIXA.mjs} +6 -6
  8. package/fesm2022/acorex-modules-auth-app-chooser.component-BvbLYIXA.mjs.map +1 -0
  9. package/fesm2022/{acorex-modules-auth-login.module-D8-GN_Hx.mjs → acorex-modules-auth-login.module-DLWlieUn.mjs} +4 -4
  10. package/fesm2022/{acorex-modules-auth-login.module-D8-GN_Hx.mjs.map → acorex-modules-auth-login.module-DLWlieUn.mjs.map} +1 -1
  11. package/fesm2022/{acorex-modules-auth-master.layout-CgDrAbPS.mjs → acorex-modules-auth-master.layout-BzV1eUvM.mjs} +2 -2
  12. package/fesm2022/{acorex-modules-auth-master.layout-CgDrAbPS.mjs.map → acorex-modules-auth-master.layout-BzV1eUvM.mjs.map} +1 -1
  13. package/fesm2022/{acorex-modules-auth-oauth-callback.component-lEMWnVJL.mjs → acorex-modules-auth-oauth-callback.component-CqaXMQdp.mjs} +5 -5
  14. package/fesm2022/{acorex-modules-auth-oauth-callback.component-lEMWnVJL.mjs.map → acorex-modules-auth-oauth-callback.component-CqaXMQdp.mjs.map} +1 -1
  15. package/fesm2022/{acorex-modules-auth-password.component-BQII_ltO.mjs → acorex-modules-auth-password.component-BR2qrph-.mjs} +9 -9
  16. package/fesm2022/{acorex-modules-auth-password.component-BQII_ltO.mjs.map → acorex-modules-auth-password.component-BR2qrph-.mjs.map} +1 -1
  17. package/fesm2022/acorex-modules-auth-password.component-DMmRFHgO.mjs +563 -0
  18. package/fesm2022/acorex-modules-auth-password.component-DMmRFHgO.mjs.map +1 -0
  19. package/fesm2022/{acorex-modules-auth-routes-BGLnoGO4.mjs → acorex-modules-auth-routes-BRQJ6Mx_.mjs} +2 -2
  20. package/fesm2022/{acorex-modules-auth-routes-BGLnoGO4.mjs.map → acorex-modules-auth-routes-BRQJ6Mx_.mjs.map} +1 -1
  21. package/fesm2022/acorex-modules-auth-tenant-chooser.component-CptZLRwB.mjs +58 -0
  22. package/fesm2022/acorex-modules-auth-tenant-chooser.component-CptZLRwB.mjs.map +1 -0
  23. package/fesm2022/{acorex-modules-auth-two-factor-code.component-BmlUjtYC.mjs → acorex-modules-auth-two-factor-code.component-CvheFTK7.mjs} +6 -6
  24. package/fesm2022/{acorex-modules-auth-two-factor-code.component-BmlUjtYC.mjs.map → acorex-modules-auth-two-factor-code.component-CvheFTK7.mjs.map} +1 -1
  25. package/fesm2022/{acorex-modules-auth-two-factor.module-D1UjsoB8.mjs → acorex-modules-auth-two-factor.module-TGGOwEpP.mjs} +3 -3
  26. package/fesm2022/{acorex-modules-auth-two-factor.module-D1UjsoB8.mjs.map → acorex-modules-auth-two-factor.module-TGGOwEpP.mjs.map} +1 -1
  27. package/fesm2022/{acorex-modules-auth-user-sessions.component-CIlGFT7H.mjs → acorex-modules-auth-user-sessions.component-C_JzCXUy.mjs} +6 -6
  28. package/fesm2022/{acorex-modules-auth-user-sessions.component-CIlGFT7H.mjs.map → acorex-modules-auth-user-sessions.component-C_JzCXUy.mjs.map} +1 -1
  29. package/fesm2022/acorex-modules-auth.mjs +1 -1
  30. package/fesm2022/{acorex-modules-business-core-business-status.entity-DE3JJYdY.mjs → acorex-modules-business-core-business-status.entity-BYUneIcN.mjs} +2 -2
  31. package/fesm2022/acorex-modules-business-core-business-status.entity-BYUneIcN.mjs.map +1 -0
  32. package/fesm2022/{acorex-modules-business-core-business-type.entity-_IwOWQVA.mjs → acorex-modules-business-core-business-type.entity-DEy8LvEV.mjs} +2 -2
  33. package/fesm2022/acorex-modules-business-core-business-type.entity-DEy8LvEV.mjs.map +1 -0
  34. package/fesm2022/{acorex-modules-business-core-industry.entity-bwgPAZDk.mjs → acorex-modules-business-core-industry.entity-CGNfgpMs.mjs} +2 -2
  35. package/fesm2022/acorex-modules-business-core-industry.entity-CGNfgpMs.mjs.map +1 -0
  36. package/fesm2022/{acorex-modules-business-core-manufacturer.entity-CDlQlBUD.mjs → acorex-modules-business-core-manufacturer.entity-DhyMx-nJ.mjs} +2 -1
  37. package/fesm2022/acorex-modules-business-core-manufacturer.entity-DhyMx-nJ.mjs.map +1 -0
  38. package/fesm2022/acorex-modules-business-core.mjs +4 -4
  39. package/fesm2022/{acorex-modules-customer-management-customer-segment.entity-CUBg2GZp.mjs → acorex-modules-customer-management-customer-segment.entity-CoYAU5g3.mjs} +2 -1
  40. package/fesm2022/acorex-modules-customer-management-customer-segment.entity-CoYAU5g3.mjs.map +1 -0
  41. package/fesm2022/{acorex-modules-customer-management-customer-type.entity-rmq6BeCF.mjs → acorex-modules-customer-management-customer-type.entity-pt4gpOGq.mjs} +2 -1
  42. package/fesm2022/acorex-modules-customer-management-customer-type.entity-pt4gpOGq.mjs.map +1 -0
  43. package/fesm2022/acorex-modules-customer-management.mjs +2 -2
  44. package/fesm2022/acorex-modules-document-management.mjs +5 -2
  45. package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
  46. package/fesm2022/acorex-modules-financial-core.mjs +7 -5
  47. package/fesm2022/acorex-modules-financial-core.mjs.map +1 -1
  48. package/fesm2022/acorex-modules-human-capital-management-approve-leave-request.command-DN2T2hBp.mjs +59 -0
  49. package/fesm2022/acorex-modules-human-capital-management-approve-leave-request.command-DN2T2hBp.mjs.map +1 -0
  50. package/fesm2022/acorex-modules-human-capital-management-cancel-leave-request.command-CYMo0I8p.mjs +59 -0
  51. package/fesm2022/acorex-modules-human-capital-management-cancel-leave-request.command-CYMo0I8p.mjs.map +1 -0
  52. package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BDh7IX7_.mjs → acorex-modules-human-capital-management-leave-request.entity-Dm_IKrVw.mjs} +1 -2
  53. package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-Dm_IKrVw.mjs.map +1 -0
  54. package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-DlCdAtaz.mjs → acorex-modules-human-capital-management-leave-type.entity-CY81Nohl.mjs} +11 -3
  55. package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-CY81Nohl.mjs.map +1 -0
  56. package/fesm2022/acorex-modules-human-capital-management-reject-leave-request.command-1Bn0gaZi.mjs +62 -0
  57. package/fesm2022/acorex-modules-human-capital-management-reject-leave-request.command-1Bn0gaZi.mjs.map +1 -0
  58. package/fesm2022/acorex-modules-human-capital-management.mjs +114 -38
  59. package/fesm2022/acorex-modules-human-capital-management.mjs.map +1 -1
  60. package/fesm2022/{acorex-modules-learning-management-certificate-definition.entity-BVvSzl2b.mjs → acorex-modules-learning-management-certificate-definition.entity-27VKYxw1.mjs} +2 -2
  61. package/fesm2022/acorex-modules-learning-management-certificate-definition.entity-27VKYxw1.mjs.map +1 -0
  62. package/fesm2022/{acorex-modules-learning-management-course.entity-BYb3Mgyi.mjs → acorex-modules-learning-management-course.entity-BN8XHAPz.mjs} +2 -2
  63. package/fesm2022/acorex-modules-learning-management-course.entity-BN8XHAPz.mjs.map +1 -0
  64. package/fesm2022/{acorex-modules-learning-management-skill.entity-CK93JIPg.mjs → acorex-modules-learning-management-skill.entity-rfMFaOAJ.mjs} +2 -1
  65. package/fesm2022/acorex-modules-learning-management-skill.entity-rfMFaOAJ.mjs.map +1 -0
  66. package/fesm2022/{acorex-modules-learning-management-training-definition.entity-C5RVLTy7.mjs → acorex-modules-learning-management-training-definition.entity-NQqJ5avw.mjs} +2 -2
  67. package/fesm2022/acorex-modules-learning-management-training-definition.entity-NQqJ5avw.mjs.map +1 -0
  68. package/fesm2022/{acorex-modules-learning-management-training.entity-KfxtUHEK.mjs → acorex-modules-learning-management-training.entity-DHGSlVR3.mjs} +2 -2
  69. package/fesm2022/acorex-modules-learning-management-training.entity-DHGSlVR3.mjs.map +1 -0
  70. package/fesm2022/acorex-modules-learning-management.mjs +5 -5
  71. package/fesm2022/acorex-modules-notification-management.mjs +34 -16
  72. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  73. package/fesm2022/acorex-modules-order-management.mjs +4 -0
  74. package/fesm2022/acorex-modules-order-management.mjs.map +1 -1
  75. package/fesm2022/{acorex-modules-organization-management-job-definition.entity-Cki_0gIY.mjs → acorex-modules-organization-management-job-definition.entity-s-TfP412.mjs} +2 -2
  76. package/fesm2022/acorex-modules-organization-management-job-definition.entity-s-TfP412.mjs.map +1 -0
  77. package/fesm2022/{acorex-modules-organization-management-position.entity-m7QrOTgN.mjs → acorex-modules-organization-management-position.entity-vbmjSfyb.mjs} +2 -2
  78. package/fesm2022/acorex-modules-organization-management-position.entity-vbmjSfyb.mjs.map +1 -0
  79. package/fesm2022/acorex-modules-organization-management.mjs +2 -2
  80. package/fesm2022/{acorex-modules-person-management-person.entity-DWfnmtVe.mjs → acorex-modules-person-management-person.entity-BnliZw-K.mjs} +35 -33
  81. package/fesm2022/acorex-modules-person-management-person.entity-BnliZw-K.mjs.map +1 -0
  82. package/fesm2022/acorex-modules-person-management.mjs +1 -1
  83. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-BOo-XED8.mjs → acorex-modules-platform-management-acorex-modules-platform-management-CAntNN8Z.mjs} +4 -2
  84. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-BOo-XED8.mjs.map → acorex-modules-platform-management-acorex-modules-platform-management-CAntNN8Z.mjs.map} +1 -1
  85. package/fesm2022/{acorex-modules-platform-management-menu-list.component-BtQ0O4sx.mjs → acorex-modules-platform-management-menu-list.component-CWutHAb3.mjs} +2 -2
  86. package/fesm2022/{acorex-modules-platform-management-menu-list.component-BtQ0O4sx.mjs.map → acorex-modules-platform-management-menu-list.component-CWutHAb3.mjs.map} +1 -1
  87. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  88. package/fesm2022/{acorex-modules-product-catalog-brand.entity-DIv0bsiY.mjs → acorex-modules-product-catalog-brand.entity-C8VOfwF0.mjs} +2 -1
  89. package/fesm2022/acorex-modules-product-catalog-brand.entity-C8VOfwF0.mjs.map +1 -0
  90. package/fesm2022/{acorex-modules-product-catalog-product-sku.entity-CQw4VxjA.mjs → acorex-modules-product-catalog-product-sku.entity-Cxif--1E.mjs} +2 -1
  91. package/fesm2022/acorex-modules-product-catalog-product-sku.entity-Cxif--1E.mjs.map +1 -0
  92. package/fesm2022/{acorex-modules-product-catalog-product.entity-Cqye5OFr.mjs → acorex-modules-product-catalog-product.entity--aXivZUd.mjs} +2 -1
  93. package/fesm2022/acorex-modules-product-catalog-product.entity--aXivZUd.mjs.map +1 -0
  94. package/fesm2022/acorex-modules-product-catalog.mjs +3 -3
  95. package/fesm2022/acorex-modules-project-management.mjs +30 -1
  96. package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
  97. package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-Cp5QCIll.mjs → acorex-modules-report-management-report-runner-root-page.component-DEX4VgHX.mjs} +9 -9
  98. package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-DEX4VgHX.mjs.map +1 -0
  99. package/fesm2022/acorex-modules-report-management.mjs +1 -1
  100. package/fesm2022/acorex-modules-subscription-management.mjs +3 -0
  101. package/fesm2022/acorex-modules-subscription-management.mjs.map +1 -1
  102. package/fesm2022/acorex-modules-supplier-management.mjs +1 -0
  103. package/fesm2022/acorex-modules-supplier-management.mjs.map +1 -1
  104. package/fesm2022/{acorex-modules-task-management-task-board.page-Cm8wJD-y.mjs → acorex-modules-task-management-task-board.page-6D76WpRB.mjs} +468 -42
  105. package/fesm2022/acorex-modules-task-management-task-board.page-6D76WpRB.mjs.map +1 -0
  106. package/fesm2022/acorex-modules-task-management.mjs +9 -3
  107. package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
  108. package/fesm2022/acorex-modules-tenant-management.mjs +2 -0
  109. package/fesm2022/acorex-modules-tenant-management.mjs.map +1 -1
  110. package/fesm2022/acorex-modules-workflow-management.mjs +1692 -28
  111. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
  112. package/human-capital-management/index.d.ts +1 -0
  113. package/package.json +2 -2
  114. package/task-management/index.d.ts +1 -1
  115. package/workflow-management/index.d.ts +446 -11
  116. package/fesm2022/acorex-modules-auth-acorex-modules-auth-D5jGjm6i.mjs.map +0 -1
  117. package/fesm2022/acorex-modules-auth-app-chooser.component-BL3Fmc7y.mjs.map +0 -1
  118. package/fesm2022/acorex-modules-auth-password.component-DKG8o8k8.mjs +0 -226
  119. package/fesm2022/acorex-modules-auth-password.component-DKG8o8k8.mjs.map +0 -1
  120. package/fesm2022/acorex-modules-auth-tenant-chooser.component-DNDhBKDp.mjs +0 -109
  121. package/fesm2022/acorex-modules-auth-tenant-chooser.component-DNDhBKDp.mjs.map +0 -1
  122. package/fesm2022/acorex-modules-business-core-business-status.entity-DE3JJYdY.mjs.map +0 -1
  123. package/fesm2022/acorex-modules-business-core-business-type.entity-_IwOWQVA.mjs.map +0 -1
  124. package/fesm2022/acorex-modules-business-core-industry.entity-bwgPAZDk.mjs.map +0 -1
  125. package/fesm2022/acorex-modules-business-core-manufacturer.entity-CDlQlBUD.mjs.map +0 -1
  126. package/fesm2022/acorex-modules-customer-management-customer-segment.entity-CUBg2GZp.mjs.map +0 -1
  127. package/fesm2022/acorex-modules-customer-management-customer-type.entity-rmq6BeCF.mjs.map +0 -1
  128. package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-BDh7IX7_.mjs.map +0 -1
  129. package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-DlCdAtaz.mjs.map +0 -1
  130. package/fesm2022/acorex-modules-learning-management-certificate-definition.entity-BVvSzl2b.mjs.map +0 -1
  131. package/fesm2022/acorex-modules-learning-management-course.entity-BYb3Mgyi.mjs.map +0 -1
  132. package/fesm2022/acorex-modules-learning-management-skill.entity-CK93JIPg.mjs.map +0 -1
  133. package/fesm2022/acorex-modules-learning-management-training-definition.entity-C5RVLTy7.mjs.map +0 -1
  134. package/fesm2022/acorex-modules-learning-management-training.entity-KfxtUHEK.mjs.map +0 -1
  135. package/fesm2022/acorex-modules-organization-management-job-definition.entity-Cki_0gIY.mjs.map +0 -1
  136. package/fesm2022/acorex-modules-organization-management-position.entity-m7QrOTgN.mjs.map +0 -1
  137. package/fesm2022/acorex-modules-person-management-person.entity-DWfnmtVe.mjs.map +0 -1
  138. package/fesm2022/acorex-modules-product-catalog-brand.entity-DIv0bsiY.mjs.map +0 -1
  139. package/fesm2022/acorex-modules-product-catalog-product-sku.entity-CQw4VxjA.mjs.map +0 -1
  140. package/fesm2022/acorex-modules-product-catalog-product.entity-Cqye5OFr.mjs.map +0 -1
  141. package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-Cp5QCIll.mjs.map +0 -1
  142. package/fesm2022/acorex-modules-task-management-task-board.page-Cm8wJD-y.mjs.map +0 -1
@@ -104,6 +104,7 @@ interface AXMHumanCapitalManagementLeaveRequestEntityModel extends AXPEntityMode
104
104
  interface AXMHumanCapitalManagementLeaveTypeEntityModel extends AXPEntityModel<string> {
105
105
  title: string;
106
106
  description: string;
107
+ color: string;
107
108
  }
108
109
 
109
110
  interface AXMHumanCapitalManagementPositionAssignmentEntityModel extends AXPEntityModel<string> {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@acorex/modules",
3
- "version": "21.0.0-next.7",
3
+ "version": "21.0.0-next.8",
4
4
  "peerDependencies": {
5
- "@acorex/platform": "21.0.0-next.7",
5
+ "@acorex/platform": "21.0.0-next.8",
6
6
  "@angular/service-worker": "^20.0.0",
7
7
  "angular-oauth2-oidc": "^15.0.0",
8
8
  "d3": "^7.0.0",
@@ -472,7 +472,7 @@ declare class AXPTaskBoardService {
472
472
  }>;
473
473
  updateTaskDateRange(task: AXPTask, range: AXSchedulerDateRange): Promise<AXPTask>;
474
474
  updateTasks(tasks: AXPTask[]): Promise<AXPTask[]>;
475
- executeCommand(command: AXPExecuteCommand, providerName: string): void;
475
+ executeCommand(command: AXPExecuteCommand, providerName: string): Promise<AXPExecuteCommandResult>;
476
476
  getStatusName(key: any, providerName: string): Promise<string | null>;
477
477
  getEvents(range: AXRange<Date>, eventTypeIds?: string[]): Promise<AXHolidayDate[]>;
478
478
  getCalendarEventTypes(): Promise<{
@@ -8,10 +8,12 @@ import { AXPWorkflowDefinition, AXPWorkflowStatus, AXPWorkflowSubStatus, AXPWork
8
8
  import * as i2 from '@acorex/platform/layout/widget-core';
9
9
  import { AXPWidgetNode } from '@acorex/platform/layout/widget-core';
10
10
  import * as i3 from '@acorex/platform/domain';
11
- import { AXPExecuteCommandResult, AXPActionMenuItem } from '@acorex/platform/core';
11
+ import { AXPExecuteCommandResult, AXPActionMenuItem, AXPExecuteCommand, AXPCategoryEntity } from '@acorex/platform/core';
12
12
  import { AXPCommand } from '@acorex/platform/runtime';
13
13
  import { AXStyleColorType } from '@acorex/cdk/common';
14
14
  import { AXPopupSizeType } from '@acorex/components/popup';
15
+ import { AXPPageLayoutBaseComponent } from '@acorex/platform/layout/views';
16
+ import { AXPCategoryTreeDataSource, AXPCategoryTreeConfig, AXPCategoryTreeActions, AXPCategoryTreeEvents } from '@acorex/platform/layout/components';
15
17
 
16
18
  declare const RootConfig: {
17
19
  config: {
@@ -27,14 +29,14 @@ declare const RootConfig: {
27
29
  entities: {
28
30
  workflowDefinition: {
29
31
  name: string;
30
- source: string;
32
+ fullName: string;
31
33
  title: string;
32
34
  titlePlural: string;
33
35
  icon: string;
34
36
  };
35
37
  workflowInstance: {
36
38
  name: string;
37
- source: string;
39
+ fullName: string;
38
40
  title: string;
39
41
  titlePlural: string;
40
42
  icon: string;
@@ -53,13 +55,6 @@ declare const RootConfig: {
53
55
  titlePlural: string;
54
56
  icon: string;
55
57
  };
56
- workflowCategory: {
57
- name: string;
58
- fullName: string;
59
- title: string;
60
- titlePlural: string;
61
- icon: string;
62
- };
63
58
  };
64
59
  };
65
60
 
@@ -663,5 +658,445 @@ declare class AXMWorkflowActivitiesDefinitionProvider implements AXPActivityProv
663
658
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowActivitiesDefinitionProvider>;
664
659
  }
665
660
 
666
- export { AXCCategoryProvider, AXMMenuProvider, AXMSignPluginModule, AXMSignPopupAction, AXMSignWorkflow, AXMWorkflowActivitiesDefinitionProvider, AXMWorkflowManagementModule, AXMWorkflowManagementModuleEntityProvider, AXMWorkflowManagementWorkflowDefinitionEntityModule, AXMWorkflowManagementWorkflowDefinitionEntityService, AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl, AXMWorkflowManagementWorkflowInstanceEntityModule, AXMWorkflowManagementWorkflowInstanceEntityService, AXMWorkflowManagementWorkflowInstanceEntityServiceImpl, CheckPermissionActivity, ExecuteCommandActivity, ExecuteQueryActivity, ExecuteWorkflowCommand, RootConfig, ShowConfirmPopupActivity, ShowLayoutPopupActivity, signPlugin, factory$1 as workflowDefinitionEntityFactory, factory as workflowInstanceEntityFactory };
661
+ interface PropertySchema {
662
+ name: string;
663
+ type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'select' | 'any';
664
+ required: boolean;
665
+ description?: string;
666
+ defaultValue?: any;
667
+ options?: Array<{
668
+ value: any;
669
+ label: string;
670
+ }>;
671
+ }
672
+ interface ActivityInfo {
673
+ type: string;
674
+ name: string;
675
+ description: string;
676
+ icon: string;
677
+ properties: PropertySchema[];
678
+ defaultProperties?: Record<string, any>;
679
+ }
680
+ interface ExecutionLog {
681
+ timestamp: Date;
682
+ level: 'info' | 'success' | 'warning' | 'error';
683
+ message: string;
684
+ data?: any;
685
+ expanded?: boolean;
686
+ }
687
+ /**
688
+ * Represents a connection from one outcome to a target node.
689
+ */
690
+ interface OutcomeConnection {
691
+ outcome: string;
692
+ targetNodeId: string;
693
+ }
694
+ interface VisualNode {
695
+ id: string;
696
+ type: string;
697
+ name: string;
698
+ icon: string;
699
+ properties: Record<string, any>;
700
+ position: {
701
+ x: number;
702
+ y: number;
703
+ };
704
+ /**
705
+ * @deprecated Use outcomeConnections instead
706
+ * Simple list of connections (for backward compatibility)
707
+ */
708
+ connections: string[];
709
+ /**
710
+ * Outcome-based connections.
711
+ * Each outcome can connect to a different target.
712
+ */
713
+ outcomeConnections?: OutcomeConnection[];
714
+ /**
715
+ * Available outcomes for this node.
716
+ * Computed from activity descriptor.
717
+ */
718
+ outcomes?: string[];
719
+ }
720
+ type EditorTab = 'json' | 'visual';
721
+ type SettingsTab = 'general' | 'inputs' | 'outputs' | 'variables' | 'advanced';
722
+ interface WorkflowSettings {
723
+ definitionId: string;
724
+ name: string;
725
+ description: string;
726
+ inputs: WorkflowInput[];
727
+ outputs: WorkflowOutput[];
728
+ variables: WorkflowVariable[];
729
+ outcomes: string[];
730
+ usableAsActivity: boolean;
731
+ autoUpdateConsumingWorkflows: boolean;
732
+ version: number;
733
+ isLatest: boolean;
734
+ isPublished: boolean;
735
+ toolVersion: string;
736
+ providerName: string;
737
+ }
738
+ interface WorkflowInput {
739
+ name: string;
740
+ title: string;
741
+ description?: string;
742
+ schema: {
743
+ dataType: string;
744
+ nullable?: boolean;
745
+ readonly?: boolean;
746
+ hidden?: boolean | string;
747
+ defaultValue?: any | string | ((context: any | null) => any);
748
+ };
749
+ validations?: Array<{
750
+ rule: string;
751
+ message?: string;
752
+ options?: any;
753
+ }>;
754
+ }
755
+ interface WorkflowOutput {
756
+ name: string;
757
+ title: string;
758
+ description?: string;
759
+ schema: {
760
+ dataType: string;
761
+ };
762
+ }
763
+ interface WorkflowVariable {
764
+ name: string;
765
+ typeName: string;
766
+ value?: any;
767
+ description?: string;
768
+ }
769
+ declare class WorkflowStudioComponent extends AXPPageLayoutBaseComponent {
770
+ private readonly workflowManager;
771
+ private readonly activityDefinitionService;
772
+ private readonly entityService;
773
+ private readonly translationService;
774
+ activeTab: i0.WritableSignal<EditorTab>;
775
+ selectedCategory: i0.WritableSignal<AXPActivityCategory | null>;
776
+ selectedActivity: i0.WritableSignal<AXPActivityDefinition | null>;
777
+ workflowJson: i0.WritableSignal<string>;
778
+ visualNodes: i0.WritableSignal<VisualNode[]>;
779
+ selectedNode: i0.WritableSignal<VisualNode | null>;
780
+ isExecuting: i0.WritableSignal<boolean>;
781
+ executionLogs: i0.WritableSignal<ExecutionLog[]>;
782
+ executionResult: i0.WritableSignal<any>;
783
+ showExecutionDialog: i0.WritableSignal<boolean>;
784
+ workflowInstanceState: i0.WritableSignal<any>;
785
+ showPropertiesPanel: i0.WritableSignal<boolean>;
786
+ showWorkflowSettings: i0.WritableSignal<boolean>;
787
+ activeSettingsTab: i0.WritableSignal<SettingsTab>;
788
+ showExecutionResult: i0.WritableSignal<boolean>;
789
+ workflowSettings: i0.WritableSignal<WorkflowSettings>;
790
+ canvasOffset: {
791
+ x: number;
792
+ y: number;
793
+ };
794
+ isDraggingCanvas: boolean;
795
+ dragStartPos: {
796
+ x: number;
797
+ y: number;
798
+ };
799
+ draggedActivity: ActivityInfo | null;
800
+ draggedNode: VisualNode | null;
801
+ nodeDragOffset: {
802
+ x: number;
803
+ y: number;
804
+ };
805
+ connectionSource: {
806
+ node: VisualNode;
807
+ type: 'in' | 'out';
808
+ outcome?: string;
809
+ } | null;
810
+ ngOnInit(): Promise<void>;
811
+ getPageTitle(): Promise<string>;
812
+ getPageDescription(): Promise<string | null>;
813
+ getPrimaryMenuItems(): Promise<AXPActionMenuItem[]>;
814
+ getSecondaryMenuItems(): Promise<AXPActionMenuItem[]>;
815
+ execute(command: AXPExecuteCommand): Promise<void>;
816
+ /**
817
+ * Handle category selection from tree
818
+ */
819
+ onCategoryClick(category: AXPActivityCategory): void;
820
+ /**
821
+ * Handle activity selection from tree
822
+ */
823
+ onActivityClick(activity: AXPActivityDefinition): void;
824
+ /**
825
+ * Convert AXPActivityDefinition to ActivityInfo
826
+ */
827
+ private convertActivityDefinitionToInfo;
828
+ /**
829
+ * Get property type from schema
830
+ */
831
+ private getPropertyTypeFromSchema;
832
+ /**
833
+ * Get category color
834
+ */
835
+ private getCategoryColor;
836
+ /**
837
+ * Get empty workflow JSON
838
+ */
839
+ private getEmptyWorkflow;
840
+ /**
841
+ * Sync visualizer with JSON changes
842
+ */
843
+ syncVisualizerWithJson(): void;
844
+ /**
845
+ * Open execution dialog
846
+ */
847
+ openExecutionDialog(): void;
848
+ /**
849
+ * Close execution dialog
850
+ */
851
+ closeExecutionDialog(): void;
852
+ /**
853
+ * Start workflow execution
854
+ */
855
+ startWorkflowExecution(): Promise<void>;
856
+ /**
857
+ * اجرای workflow
858
+ */
859
+ runWorkflow(): Promise<void>;
860
+ /**
861
+ * اضافه کردن لاگ
862
+ */
863
+ addLog(level: 'info' | 'success' | 'warning' | 'error', message: string, data?: any): void;
864
+ /**
865
+ * کپی کردن نمونه activity
866
+ */
867
+ copyActivityTemplate(activity: ActivityInfo): void;
868
+ /**
869
+ * فرمت کردن JSON
870
+ */
871
+ formatJson(): void;
872
+ /**
873
+ * باز کردن تنظیمات workflow
874
+ */
875
+ openWorkflowSettings(): void;
876
+ /**
877
+ * بستن تنظیمات workflow
878
+ */
879
+ closeWorkflowSettings(): void;
880
+ /**
881
+ * ذخیره تنظیمات workflow
882
+ */
883
+ saveWorkflowSettings(): void;
884
+ /**
885
+ * Export workflow به فرمت Elsa Workflow Definition v3.0.0
886
+ * https://elsaworkflows.io/schemas/workflow-definition/v3.0.0/schema.json
887
+ */
888
+ exportWorkflowDefinition(): any;
889
+ /**
890
+ * دانلود WorkflowDefinition به صورت JSON file
891
+ */
892
+ downloadWorkflowDefinition(): void;
893
+ private generateId;
894
+ /**
895
+ * تغییر تب settings
896
+ */
897
+ switchSettingsTab(tab: SettingsTab): void;
898
+ addWorkflowInput(): void;
899
+ removeWorkflowInput(index: number): void;
900
+ updateWorkflowInput(index: number, field: string, value: any): void;
901
+ updateWorkflowInputSchema(index: number, schemaField: string, value: any): void;
902
+ updateWorkflowInputValidation(index: number, isRequired: boolean): void;
903
+ getInputIsRequired(input: WorkflowInput): boolean;
904
+ addWorkflowOutput(): void;
905
+ removeWorkflowOutput(index: number): void;
906
+ updateWorkflowOutput(index: number, field: string, value: any): void;
907
+ updateWorkflowOutputSchema(index: number, schemaField: string, value: any): void;
908
+ addWorkflowVariable(): void;
909
+ removeWorkflowVariable(index: number): void;
910
+ updateWorkflowVariable(index: number, field: keyof WorkflowVariable, value: any): void;
911
+ /**
912
+ * به‌روزرسانی outcomes از string
913
+ */
914
+ updateOutcomes(outcomesString: string): void;
915
+ /**
916
+ * پاک کردن لاگ‌ها
917
+ */
918
+ clearLogs(): void;
919
+ /**
920
+ * تغییر تب
921
+ */
922
+ switchTab(tab: EditorTab): void;
923
+ /**
924
+ * انتخاب Node
925
+ */
926
+ selectNodeById(node: VisualNode): void;
927
+ /**
928
+ * حذف Node
929
+ */
930
+ deleteNode(nodeId: string): void;
931
+ /**
932
+ * اتصال دو Node با outcome مشخص
933
+ */
934
+ connectNodes(fromId: string, toId: string, outcome?: string): void;
935
+ /**
936
+ * قطع اتصال (با یا بدون outcome)
937
+ */
938
+ disconnectNodes(fromId: string, toId: string, outcome?: string): void;
939
+ /**
940
+ * تبدیل JSON به Visual
941
+ */
942
+ jsonToVisual(): void;
943
+ /**
944
+ * پردازش Activity به Node (recursive)
945
+ */
946
+ private processActivityToNode;
947
+ /**
948
+ * تبدیل Visual به JSON
949
+ */
950
+ visualToJson(): void;
951
+ /**
952
+ * پیدا کردن Root Node
953
+ */
954
+ private findRootNode;
955
+ /**
956
+ * تبدیل Node به Activity (recursive)
957
+ */
958
+ private nodeToActivity;
959
+ /**
960
+ * دریافت آیکون برای نوع Activity
961
+ */
962
+ private getIconForActivityType;
963
+ /**
964
+ * به‌روزرسانی property نود
965
+ */
966
+ updateNodeProperty(nodeId: string, propertyName: string, value: any): void;
967
+ /**
968
+ * پیدا کردن activity info بر اساس type
969
+ */
970
+ private findActivityInfo;
971
+ /**
972
+ * پاک کردن همه نودها
973
+ */
974
+ clearCanvas(): void;
975
+ /**
976
+ * شروع drag از activity list
977
+ */
978
+ onActivityDragStart(event: DragEvent, activity: ActivityInfo): void;
979
+ /**
980
+ * پایان drag از activity list
981
+ */
982
+ onActivityDragEnd(event: DragEvent): void;
983
+ /**
984
+ * drag over روی Canvas
985
+ */
986
+ onCanvasDragOver(event: DragEvent): void;
987
+ /**
988
+ * drag leave از Canvas
989
+ */
990
+ onCanvasDragLeave(event: DragEvent): void;
991
+ /**
992
+ * محاسبه outcomes برای یک activity
993
+ */
994
+ computeOutcomes(activityInfo: ActivityInfo, properties: Record<string, any>): string[];
995
+ /**
996
+ * drop روی Canvas - اضافه کردن activity جدید
997
+ */
998
+ onCanvasDrop(event: DragEvent): void;
999
+ /**
1000
+ * شروع drag نود
1001
+ */
1002
+ onNodeDragStart(event: DragEvent, node: VisualNode): void;
1003
+ /**
1004
+ * در حال drag نود
1005
+ */
1006
+ onNodeDrag(event: DragEvent, node: VisualNode): void;
1007
+ /**
1008
+ * پایان drag نود
1009
+ */
1010
+ onNodeDragEnd(event: DragEvent, node: VisualNode): void;
1011
+ /**
1012
+ * کلیک روی کانکتور - برای ایجاد اتصال (برای activities با یک outcome)
1013
+ */
1014
+ onConnectorClick(event: Event, node: VisualNode, type: 'in' | 'out'): void;
1015
+ /**
1016
+ * کلیک روی outcome connector - برای activities با چند outcome
1017
+ */
1018
+ onOutcomeConnectorClick(event: Event, node: VisualNode, outcome: string): void;
1019
+ /**
1020
+ * تغییر وضعیت نمایش Properties Panel
1021
+ */
1022
+ togglePropertiesPanel(): void;
1023
+ /**
1024
+ * پیدا کردن Node با ID
1025
+ */
1026
+ findNodeById(nodeId: string): VisualNode | undefined;
1027
+ /**
1028
+ * بررسی اینکه آیا properties خالی است یا نه
1029
+ */
1030
+ hasProperties(properties: Record<string, any>): boolean;
1031
+ /**
1032
+ * دسترسی به Object برای استفاده در template
1033
+ */
1034
+ protected readonly Object: ObjectConstructor;
1035
+ /**
1036
+ * دسترسی به typeof برای استفاده در template
1037
+ */
1038
+ protected readonly typeof: (value: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
1039
+ /**
1040
+ * دسترسی به JSON برای استفاده در template
1041
+ */
1042
+ protected readonly JSON: JSON;
1043
+ /**
1044
+ * دریافت رنگ بر اساس outcome
1045
+ */
1046
+ protected getOutcomeColor(outcome: string): string;
1047
+ /**
1048
+ * دریافت نام رنگ برای marker ID
1049
+ */
1050
+ protected getOutcomeColorName(outcome: string): string;
1051
+ /**
1052
+ * به‌روزرسانی property با parse کردن JSON
1053
+ */
1054
+ updateNodePropertyJSON(nodeId: string, propertyName: string, jsonString: string): void;
1055
+ static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowStudioComponent, never>;
1056
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowStudioComponent, "app-workflow-studio", never, {}, {}, never, never, true, never>;
1057
+ }
1058
+
1059
+ declare class AXMActivityCategoriesTreeComponent {
1060
+ private readonly activityDefinitionService;
1061
+ /**
1062
+ * Emitted when a category node is clicked
1063
+ */
1064
+ categoryClick: i0.OutputEmitterRef<AXPActivityCategory>;
1065
+ /**
1066
+ * Emitted when an activity node is clicked
1067
+ */
1068
+ activityClick: i0.OutputEmitterRef<AXPActivityDefinition>;
1069
+ /**
1070
+ * Category tree data source
1071
+ */
1072
+ protected readonly categoryTreeDataSource: AXPCategoryTreeDataSource;
1073
+ /**
1074
+ * Category tree configuration
1075
+ */
1076
+ protected readonly categoryTreeConfig: i0.Signal<AXPCategoryTreeConfig>;
1077
+ /**
1078
+ * Category tree actions (disabled CRUD operations)
1079
+ */
1080
+ protected readonly categoryTreeActions: i0.Signal<AXPCategoryTreeActions>;
1081
+ /**
1082
+ * Category tree events
1083
+ */
1084
+ protected readonly categoryTreeEvents: i0.Signal<AXPCategoryTreeEvents>;
1085
+ /**
1086
+ * Handle category tree node click events
1087
+ */
1088
+ protected handleNodeClick(entity: AXPCategoryEntity): void;
1089
+ /**
1090
+ * Map activity categories to category entities
1091
+ */
1092
+ private mapCategoriesToEntities;
1093
+ /**
1094
+ * Map activity definitions to category entities
1095
+ */
1096
+ private mapActivitiesToEntities;
1097
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMActivityCategoriesTreeComponent, never>;
1098
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXMActivityCategoriesTreeComponent, "axp-activity-categories-tree", never, {}, { "categoryClick": "categoryClick"; "activityClick": "activityClick"; }, never, never, true, never>;
1099
+ }
1100
+
1101
+ export { AXCCategoryProvider, AXMActivityCategoriesTreeComponent, AXMMenuProvider, AXMSignPluginModule, AXMSignPopupAction, AXMSignWorkflow, AXMWorkflowActivitiesDefinitionProvider, AXMWorkflowManagementModule, AXMWorkflowManagementModuleEntityProvider, AXMWorkflowManagementWorkflowDefinitionEntityModule, AXMWorkflowManagementWorkflowDefinitionEntityService, AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl, AXMWorkflowManagementWorkflowInstanceEntityModule, AXMWorkflowManagementWorkflowInstanceEntityService, AXMWorkflowManagementWorkflowInstanceEntityServiceImpl, CheckPermissionActivity, ExecuteCommandActivity, ExecuteQueryActivity, ExecuteWorkflowCommand, RootConfig, ShowConfirmPopupActivity, ShowLayoutPopupActivity, WorkflowStudioComponent, signPlugin, factory$1 as workflowDefinitionEntityFactory, factory as workflowInstanceEntityFactory };
667
1102
  export type { AXMSignPluginOptions, AXMWorkflowManagementWorkflowDefinitionEntityModel, AXMWorkflowManagementWorkflowInstanceEntityModel, CheckPermissionInput, CheckPermissionOutput, ExecuteCommandInput, ExecuteCommandOutput, ExecuteQueryInput, ExecuteQueryOutput, ExecuteWorkflowInput, ExecuteWorkflowOutput, ShowConfirmPopupInput, ShowConfirmPopupOutput, ShowLayoutPopupInput, ShowLayoutPopupOutput };