@acorex/platform 20.7.4 → 20.7.6

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.
@@ -2401,6 +2401,11 @@ declare class AXPGalleryWidgetEditComponent extends AXPValueWidgetComponent<AXPF
2401
2401
  protected readonly fileActions: _angular_core.Signal<AXCFileUploaderAction[]>;
2402
2402
  ngOnInit(): void;
2403
2403
  private loadActions;
2404
+ /**
2405
+ * Format file size with appropriate unit (B, KB, MB, GB, etc.)
2406
+ * Divides by 1000 until the value is less than 1000
2407
+ */
2408
+ private formatFileSize;
2404
2409
  /**
2405
2410
  * Convert AXPFileListItem to AXMediaViewerData for display in media viewer
2406
2411
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/platform",
3
- "version": "20.7.4",
3
+ "version": "20.7.6",
4
4
  "peerDependencies": {
5
5
  "@acorex/cdk": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
6
6
  "@acorex/core": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
@@ -27,6 +27,10 @@
27
27
  "types": "./index.d.ts",
28
28
  "default": "./fesm2022/acorex-platform.mjs"
29
29
  },
30
+ "./auth": {
31
+ "types": "./auth/index.d.ts",
32
+ "default": "./fesm2022/acorex-platform-auth.mjs"
33
+ },
30
34
  "./common": {
31
35
  "types": "./common/index.d.ts",
32
36
  "default": "./fesm2022/acorex-platform-common.mjs"
@@ -43,10 +47,6 @@
43
47
  "types": "./native/index.d.ts",
44
48
  "default": "./fesm2022/acorex-platform-native.mjs"
45
49
  },
46
- "./auth": {
47
- "types": "./auth/index.d.ts",
48
- "default": "./fesm2022/acorex-platform-auth.mjs"
49
- },
50
50
  "./runtime": {
51
51
  "types": "./runtime/index.d.ts",
52
52
  "default": "./fesm2022/acorex-platform-runtime.mjs"
@@ -689,6 +689,14 @@ interface AXPWorkflowInstance {
689
689
  * Finished at timestamp (ISO date-time, nullable).
690
690
  */
691
691
  finishedAt?: string | null;
692
+ /**
693
+ * Entity reference ID (for linking workflow instances to business entities).
694
+ */
695
+ entityRefId?: string | null;
696
+ /**
697
+ * Entity reference type (e.g., 'HumanCapitalManagement.LeaveRequest').
698
+ */
699
+ entityRefType?: string | null;
692
700
  }
693
701
 
694
702
  /**
@@ -1038,7 +1046,16 @@ interface AXPStartWorkflowResponse {
1038
1046
  * Client should execute this task based on executionMode.
1039
1047
  */
1040
1048
  pendingTask?: AXPWorkflowTask | null;
1041
- lastActivityOutput?: Record<string, any>;
1049
+ /**
1050
+ * Activity outputs map (activityId -> output).
1051
+ * Returned for expression evaluation in subsequent activities.
1052
+ */
1053
+ activityOutputs?: Record<string, any>;
1054
+ /**
1055
+ * Last activity output (convenience).
1056
+ * Prefer using `activityOutputs[activityId]` when possible.
1057
+ */
1058
+ lastActivityOutput?: any;
1042
1059
  }
1043
1060
  /**
1044
1061
  * Request to resume a suspended workflow.
@@ -1120,6 +1137,16 @@ interface AXPWorkflowInstanceState {
1120
1137
  * Workflow variables (state).
1121
1138
  */
1122
1139
  variables: Record<string, any>;
1140
+ /**
1141
+ * Activity outputs map (activityId -> output).
1142
+ * Used by expression evaluation scope as `outputs.activityId`.
1143
+ */
1144
+ activityOutputs?: Record<string, any>;
1145
+ /**
1146
+ * Last activity output (convenience).
1147
+ * Useful when the next activity needs a quick access to the previous result.
1148
+ */
1149
+ lastActivityOutput?: any;
1123
1150
  /**
1124
1151
  * Initial input data.
1125
1152
  */