@acorex/modules 20.6.0-next.2 → 20.6.0-next.3

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 (33) hide show
  1. package/common/index.d.ts +85 -3
  2. package/fesm2022/acorex-modules-common.mjs +1 -1
  3. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  4. package/fesm2022/acorex-modules-content-management-acorex-modules-content-management-DUEmt_c7.mjs.map +1 -1
  5. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-D6A8nh4E.mjs → acorex-modules-document-management-acorex-modules-document-management-Cx45oj-N.mjs} +77 -72
  6. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-D6A8nh4E.mjs.map → acorex-modules-document-management-acorex-modules-document-management-Cx45oj-N.mjs.map} +1 -1
  7. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-RnnszRLs.mjs → acorex-modules-document-management-attachment-widget.component-D-f5Ml7b.mjs} +2 -2
  8. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-RnnszRLs.mjs.map → acorex-modules-document-management-attachment-widget.component-D-f5Ml7b.mjs.map} +1 -1
  9. package/fesm2022/{acorex-modules-document-management-details-view.component-Cos2NG-O.mjs → acorex-modules-document-management-details-view.component-BQmpQhlZ.mjs} +2 -2
  10. package/fesm2022/{acorex-modules-document-management-details-view.component-Cos2NG-O.mjs.map → acorex-modules-document-management-details-view.component-BQmpQhlZ.mjs.map} +1 -1
  11. package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-CuYgvv2m.mjs → acorex-modules-document-management-document-signature-popup.component-Dz1uKKIr.mjs} +2 -2
  12. package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-CuYgvv2m.mjs.map → acorex-modules-document-management-document-signature-popup.component-Dz1uKKIr.mjs.map} +1 -1
  13. package/fesm2022/{acorex-modules-document-management-drive-choose.component-Cmc5lK1T.mjs → acorex-modules-document-management-drive-choose.component-Bh245lBa.mjs} +2 -2
  14. package/fesm2022/{acorex-modules-document-management-drive-choose.component-Cmc5lK1T.mjs.map → acorex-modules-document-management-drive-choose.component-Bh245lBa.mjs.map} +1 -1
  15. package/fesm2022/{acorex-modules-document-management-drive.component-NubvqosJ.mjs → acorex-modules-document-management-drive.component-BrSRKQ23.mjs} +2 -2
  16. package/fesm2022/{acorex-modules-document-management-drive.component-NubvqosJ.mjs.map → acorex-modules-document-management-drive.component-BrSRKQ23.mjs.map} +1 -1
  17. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-3EMonsWT.mjs → acorex-modules-document-management-large-icons-view.component-C1FegGr_.mjs} +2 -2
  18. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-3EMonsWT.mjs.map → acorex-modules-document-management-large-icons-view.component-C1FegGr_.mjs.map} +1 -1
  19. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Chnjms53.mjs → acorex-modules-document-management-large-tiles-view.component-r-zzDobG.mjs} +2 -2
  20. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Chnjms53.mjs.map → acorex-modules-document-management-large-tiles-view.component-r-zzDobG.mjs.map} +1 -1
  21. package/fesm2022/{acorex-modules-document-management-list-view.component-CITeGX_Y.mjs → acorex-modules-document-management-list-view.component-GuPa6IEy.mjs} +2 -2
  22. package/fesm2022/{acorex-modules-document-management-list-view.component-CITeGX_Y.mjs.map → acorex-modules-document-management-list-view.component-GuPa6IEy.mjs.map} +1 -1
  23. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-bUtjrzBL.mjs → acorex-modules-document-management-permission-definition.provider-yjgChROd.mjs} +2 -2
  24. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-bUtjrzBL.mjs.map → acorex-modules-document-management-permission-definition.provider-yjgChROd.mjs.map} +1 -1
  25. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DLW4iBWa.mjs → acorex-modules-document-management-small-icons-view.component-CF5IIGwk.mjs} +2 -2
  26. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DLW4iBWa.mjs.map → acorex-modules-document-management-small-icons-view.component-CF5IIGwk.mjs.map} +1 -1
  27. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-CUrf4NNl.mjs → acorex-modules-document-management-small-tiles-view.component-DqXs1Z9m.mjs} +2 -2
  28. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-CUrf4NNl.mjs.map → acorex-modules-document-management-small-tiles-view.component-DqXs1Z9m.mjs.map} +1 -1
  29. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  30. package/fesm2022/acorex-modules-workflow-management.mjs +591 -11
  31. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
  32. package/package.json +2 -2
  33. package/workflow-management/index.d.ts +148 -6
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@acorex/modules",
3
- "version": "20.6.0-next.2",
3
+ "version": "20.6.0-next.3",
4
4
  "peerDependencies": {
5
- "@acorex/platform": "20.6.0-next.2",
5
+ "@acorex/platform": "20.6.0-next.3",
6
6
  "@angular/service-worker": "^20.0.0",
7
7
  "angular-oauth2-oidc": "^15.0.0",
8
8
  "d3": "^7.0.0",
@@ -1,12 +1,46 @@
1
- import { AXPMenuProvider, AXPMenuProviderContext, AXPCommandActionCallback } from '@acorex/platform/common';
1
+ import { AXPEntity, AXPMenuProvider, AXPMenuProviderContext, AXPCommandActionCallback } from '@acorex/platform/common';
2
+ import { AXPEntityDefinitionLoader, AXPEntityPreloadEntity, AXPEntityModel, AXMEntityCrudServiceImpl, AXPEntityActionPlugin } from '@acorex/platform/layout/entity';
2
3
  import * as i0 from '@angular/core';
4
+ import { Injector } from '@angular/core';
3
5
  import * as i1$1 from '@acorex/modules/calendar-management';
4
6
  import * as i1 from '@acorex/platform/workflow';
5
- import { AXPWorkflowAction, AXPWorkflowContext, AXPWorkflow } from '@acorex/platform/workflow';
7
+ import { AXPWorkflowDefinition, AXPWorkflowAction, AXPWorkflowContext, AXPWorkflow } from '@acorex/platform/workflow';
6
8
  import * as i2 from '@acorex/platform/layout/widget-core';
7
- import { AXPEntityActionPlugin } from '@acorex/platform/layout/entity';
9
+ import { AXPCommand } from '@acorex/platform/runtime';
10
+
11
+ declare const RootConfig: {
12
+ config: {
13
+ i18n: string;
14
+ module: string;
15
+ };
16
+ module: {
17
+ route: string;
18
+ name: string;
19
+ title: string;
20
+ icon: string;
21
+ };
22
+ entities: {
23
+ workflowDefinition: {
24
+ name: string;
25
+ source: string;
26
+ title: string;
27
+ titlePlural: string;
28
+ icon: string;
29
+ };
30
+ };
31
+ };
32
+
33
+ declare class AXMWorkflowManagementModuleEntityProvider implements AXPEntityDefinitionLoader {
34
+ preload(): AXPEntityPreloadEntity[];
35
+ private injector;
36
+ get(moduleName: string, entityName: string): Promise<AXPEntity | null>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementModuleEntityProvider, never>;
38
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowManagementModuleEntityProvider>;
39
+ }
8
40
 
9
41
  declare class AXMMenuProvider implements AXPMenuProvider {
42
+ private entityService;
43
+ private sessionService;
10
44
  provide(context: AXPMenuProviderContext): Promise<void>;
11
45
  }
12
46
 
@@ -22,12 +56,120 @@ declare class AXPDistributionPluginModule {
22
56
  static ɵinj: i0.ɵɵInjectorDeclaration<AXPDistributionPluginModule>;
23
57
  }
24
58
 
59
+ declare class AXMWorkflowManagementWorkflowDefinitionEntityModule {
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityModule, never>;
61
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityModule, never, never, never>;
62
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityModule>;
63
+ }
64
+
25
65
  declare class AXMWorkflowManagementModule {
26
66
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementModule, never, [typeof i1$1.AXMCalendarManagementModule, typeof AXMSignPluginModule, typeof AXPDistributionPluginModule], never>;
67
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMWorkflowManagementModule, never, [typeof i1$1.AXMCalendarManagementModule, typeof AXMSignPluginModule, typeof AXPDistributionPluginModule, typeof AXMWorkflowManagementWorkflowDefinitionEntityModule], never>;
28
68
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMWorkflowManagementModule>;
29
69
  }
30
70
 
71
+ /**
72
+ * Workflow Definition Entity Model.
73
+ *
74
+ * Extends AXPWorkflowDefinition with entity-specific fields for UI.
75
+ */
76
+ interface AXMWorkflowManagementWorkflowDefinitionEntityModel extends AXPEntityModel<string> {
77
+ /**
78
+ * Workflow definition ID (logical ID, same across versions)
79
+ */
80
+ definitionId: string;
81
+ /**
82
+ * Workflow name
83
+ */
84
+ name: string;
85
+ /**
86
+ * Description
87
+ */
88
+ description?: string;
89
+ /**
90
+ * Version number
91
+ */
92
+ version: number;
93
+ /**
94
+ * Is latest version
95
+ */
96
+ isLatest: boolean;
97
+ /**
98
+ * Is published
99
+ */
100
+ isPublished: boolean;
101
+ /**
102
+ * Is readonly
103
+ */
104
+ isReadonly: boolean;
105
+ /**
106
+ * Is system workflow
107
+ */
108
+ isSystem: boolean;
109
+ /**
110
+ * Creation timestamp
111
+ */
112
+ createdAt: string;
113
+ /**
114
+ * Full workflow definition (stored as JSON)
115
+ */
116
+ workflowDefinition?: AXPWorkflowDefinition;
117
+ }
118
+
119
+ declare abstract class AXMWorkflowManagementWorkflowDefinitionEntityService extends AXMEntityCrudServiceImpl<string, AXMWorkflowManagementWorkflowDefinitionEntityModel> {
120
+ }
121
+ declare class AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl extends AXMWorkflowManagementWorkflowDefinitionEntityService {
122
+ constructor();
123
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl, never>;
124
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl>;
125
+ }
126
+
127
+ /**
128
+ * Input for ExecuteWorkflow command
129
+ */
130
+ interface ExecuteWorkflowInput {
131
+ /**
132
+ * Workflow definition ID
133
+ */
134
+ definitionId: string;
135
+ /**
136
+ * Initial input data
137
+ */
138
+ input?: Record<string, any>;
139
+ }
140
+ /**
141
+ * Output for ExecuteWorkflow command
142
+ */
143
+ interface ExecuteWorkflowOutput {
144
+ /**
145
+ * Execution ID
146
+ */
147
+ executionId: string;
148
+ /**
149
+ * Workflow output
150
+ */
151
+ output: any;
152
+ /**
153
+ * Success flag
154
+ */
155
+ success: boolean;
156
+ }
157
+ /**
158
+ * Execute Workflow Command
159
+ *
160
+ * Starts and manages workflow execution from entity list.
161
+ * Handles the complete workflow lifecycle including frontend/backend activities.
162
+ */
163
+ declare class ExecuteWorkflowCommand implements AXPCommand<ExecuteWorkflowInput, ExecuteWorkflowOutput> {
164
+ private readonly workflowCoordinator;
165
+ private readonly toastService;
166
+ execute(input: ExecuteWorkflowInput): Promise<ExecuteWorkflowOutput>;
167
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExecuteWorkflowCommand, never>;
168
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExecuteWorkflowCommand>;
169
+ }
170
+
171
+ declare function factory(injector: Injector): Promise<AXPEntity | null>;
172
+
31
173
  /**
32
174
  * Action to show document distribution popup
33
175
  */
@@ -80,5 +222,5 @@ interface AXMSignPluginOptions {
80
222
  }
81
223
  declare const signPlugin: AXPEntityActionPlugin;
82
224
 
83
- export { AXMCommonCreateDistributionRecordsAction, AXMCommonDistributionPopupAction, AXMCommonDistributionWorkflow, AXMMenuProvider, AXMSignPluginModule, AXMSignPopupAction, AXMSignWorkflow, AXMWorkflowManagementModule, AXPDistributionPluginModule, distributionPlugin, signPlugin };
84
- export type { AXMSignPluginOptions, AXPDistributionPluginOptions };
225
+ export { AXMCommonCreateDistributionRecordsAction, AXMCommonDistributionPopupAction, AXMCommonDistributionWorkflow, AXMMenuProvider, AXMSignPluginModule, AXMSignPopupAction, AXMSignWorkflow, AXMWorkflowManagementModule, AXMWorkflowManagementModuleEntityProvider, AXMWorkflowManagementWorkflowDefinitionEntityModule, AXMWorkflowManagementWorkflowDefinitionEntityService, AXMWorkflowManagementWorkflowDefinitionEntityServiceImpl, AXPDistributionPluginModule, ExecuteWorkflowCommand, RootConfig, distributionPlugin, signPlugin, factory as workflowDefinitionEntityFactory };
226
+ export type { AXMSignPluginOptions, AXMWorkflowManagementWorkflowDefinitionEntityModel, AXPDistributionPluginOptions, ExecuteWorkflowInput, ExecuteWorkflowOutput };