@acorex/platform 20.7.3 → 20.7.5
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.
- package/common/index.d.ts +172 -3
- package/fesm2022/acorex-platform-common.mjs +164 -3
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-C9mOMYwZ.mjs → acorex-platform-layout-widgets-file-list-popup.component-BfV3spe3.mjs} +3 -3
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-C9mOMYwZ.mjs.map → acorex-platform-layout-widgets-file-list-popup.component-BfV3spe3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-DhzAQ9L6.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-BJh1QJqp.mjs} +3 -3
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-DhzAQ9L6.mjs.map → acorex-platform-layout-widgets-tabular-data-edit-popup.component-BJh1QJqp.mjs.map} +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +281 -131
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +75 -7
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/widgets/index.d.ts +36 -20
- package/package.json +5 -5
- package/workflow/index.d.ts +28 -1
|
@@ -6,7 +6,7 @@ import { AXBasePageComponent } from '@acorex/components/page';
|
|
|
6
6
|
import * as _acorex_platform_core from '@acorex/platform/core';
|
|
7
7
|
import { AXPDeviceService, AXPValidationRule, AXPTag, AXPFileListItem, AXPExpressionEvaluatorService, AXPExecuteCommandResult, AXPActionMenuItem } from '@acorex/platform/core';
|
|
8
8
|
import { AXStyleColorType, AXClickEvent, AXStyleLookType, AXDataSource, AXValueChangedEvent, AXDataSourceFilterOption, AXDirection, AXButtonClickEvent } from '@acorex/cdk/common';
|
|
9
|
-
import { AXPClipBoardService, AXPLanguage, AXPStatusDefinition, AXPStatusTransition, AXPStatusProvider } from '@acorex/platform/common';
|
|
9
|
+
import { AXPClipBoardService, AXPLanguage, AXCFileUploaderAction, AXCFileUploaderCapabilities, AXPStatusDefinition, AXPStatusTransition, AXPStatusProvider } from '@acorex/platform/common';
|
|
10
10
|
import { AXDropListDroppedEvent } from '@acorex/cdk/drag-drop';
|
|
11
11
|
import { AXPDragDropListItem } from '@acorex/platform/layout/components';
|
|
12
12
|
import { AXValidationService } from '@acorex/core/validation';
|
|
@@ -17,7 +17,6 @@ import { AXCodeEditorDefaultLanguage } from '@acorex/components/code-editor';
|
|
|
17
17
|
import { AXRowCommandItemClickEvent, AXDataTableComponent, AXRowCommandItem } from '@acorex/components/data-table';
|
|
18
18
|
import { AXPCommand } from '@acorex/platform/runtime';
|
|
19
19
|
import { AXFileService } from '@acorex/core/file';
|
|
20
|
-
import { AXUploaderService } from '@acorex/cdk/uploader';
|
|
21
20
|
import { AXMediaViewerData } from '@acorex/components/media-viewer';
|
|
22
21
|
import * as _acorex_components_map from '@acorex/components/map';
|
|
23
22
|
import { AXMapData, AXMapPolygon, AXPoiMarker } from '@acorex/components/map';
|
|
@@ -2263,20 +2262,10 @@ declare class AXPFileUploaderWidgetColumnComponent extends AXPColumnWidgetCompon
|
|
|
2263
2262
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPFileUploaderWidgetColumnComponent, "axp-file-uploader-widget-column", never, { "rawValue": { "alias": "rawValue"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; }, {}, never, never, true, never>;
|
|
2264
2263
|
}
|
|
2265
2264
|
|
|
2266
|
-
interface FileUploaderActionContext {
|
|
2267
|
-
host: AXPFileUploaderWidgetEditComponent;
|
|
2268
|
-
}
|
|
2269
|
-
interface FileUploaderAction {
|
|
2270
|
-
plugin: string;
|
|
2271
|
-
global?: boolean;
|
|
2272
|
-
text?: string;
|
|
2273
|
-
textKey?: string;
|
|
2274
|
-
icon?: string;
|
|
2275
|
-
run: (ctx: FileUploaderActionContext) => void | Promise<void>;
|
|
2276
|
-
}
|
|
2277
2265
|
declare class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent<AXPFileListItem[] | undefined> {
|
|
2278
2266
|
protected readonly fileService: AXFileService;
|
|
2279
2267
|
private readonly hooks;
|
|
2268
|
+
private readonly fileActionsService;
|
|
2280
2269
|
protected multiple: _angular_core.Signal<boolean>;
|
|
2281
2270
|
private readonly acceptOverride;
|
|
2282
2271
|
protected accept: _angular_core.Signal<string>;
|
|
@@ -2291,11 +2280,10 @@ declare class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent
|
|
|
2291
2280
|
protected maxFileSize: _angular_core.Signal<number>;
|
|
2292
2281
|
protected isDragOver: _angular_core.WritableSignal<boolean>;
|
|
2293
2282
|
private readonly innerActions;
|
|
2294
|
-
protected fileActions: _angular_core.Signal<
|
|
2283
|
+
protected readonly fileActions: _angular_core.Signal<AXCFileUploaderAction[]>;
|
|
2295
2284
|
ngOnInit(): void;
|
|
2296
2285
|
private loadActions;
|
|
2297
2286
|
private configureFromHooks;
|
|
2298
|
-
protected uploadFromComputer(): Promise<void>;
|
|
2299
2287
|
/**
|
|
2300
2288
|
* Process files from various sources (file picker, drag-drop, etc.)
|
|
2301
2289
|
*/
|
|
@@ -2312,7 +2300,7 @@ declare class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent
|
|
|
2312
2300
|
*/
|
|
2313
2301
|
handleFileRename(file: AXPFileListItem): void;
|
|
2314
2302
|
clear(): void;
|
|
2315
|
-
|
|
2303
|
+
protected readonly capabilities: AXCFileUploaderCapabilities;
|
|
2316
2304
|
onFileChange(event: {
|
|
2317
2305
|
event: Event;
|
|
2318
2306
|
files: File[];
|
|
@@ -2388,7 +2376,7 @@ declare class AXPFileUploaderWidgetService {
|
|
|
2388
2376
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPFileUploaderWidgetService>;
|
|
2389
2377
|
}
|
|
2390
2378
|
|
|
2391
|
-
declare class AXPGalleryWidgetEditComponent extends AXPValueWidgetComponent<
|
|
2379
|
+
declare class AXPGalleryWidgetEditComponent extends AXPValueWidgetComponent<AXPFileListItem[]> {
|
|
2392
2380
|
protected thumbnail: _angular_core.Signal<boolean>;
|
|
2393
2381
|
protected height: _angular_core.Signal<string>;
|
|
2394
2382
|
protected header: _angular_core.Signal<boolean>;
|
|
@@ -2396,9 +2384,37 @@ declare class AXPGalleryWidgetEditComponent extends AXPValueWidgetComponent<AXMe
|
|
|
2396
2384
|
protected fullScreenButton: _angular_core.Signal<boolean>;
|
|
2397
2385
|
protected allowUploadTypes: _angular_core.Signal<string[]>;
|
|
2398
2386
|
protected allowUpload: _angular_core.Signal<boolean>;
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2387
|
+
protected plugins: _angular_core.Signal<{
|
|
2388
|
+
name: string;
|
|
2389
|
+
options?: unknown;
|
|
2390
|
+
}[]>;
|
|
2391
|
+
protected excludePlugins: _angular_core.Signal<string[]>;
|
|
2392
|
+
protected readonly fileService: AXFileService;
|
|
2393
|
+
private readonly hooks;
|
|
2394
|
+
private readonly fileActionsService;
|
|
2395
|
+
private gallery;
|
|
2396
|
+
/**
|
|
2397
|
+
* Convert AXPFileListItem[] to AXMediaViewerData[] for display in media viewer
|
|
2398
|
+
*/
|
|
2399
|
+
protected readonly mediaViewerData: _angular_core.Signal<AXMediaViewerData[]>;
|
|
2400
|
+
private readonly innerActions;
|
|
2401
|
+
protected readonly fileActions: _angular_core.Signal<AXCFileUploaderAction[]>;
|
|
2402
|
+
ngOnInit(): void;
|
|
2403
|
+
private loadActions;
|
|
2404
|
+
/**
|
|
2405
|
+
* Convert AXPFileListItem to AXMediaViewerData for display in media viewer
|
|
2406
|
+
*/
|
|
2407
|
+
private fileItemToMediaViewerData;
|
|
2408
|
+
protected readonly capabilities: AXCFileUploaderCapabilities;
|
|
2409
|
+
/**
|
|
2410
|
+
* Process files from various sources (file picker, drag-drop, etc.)
|
|
2411
|
+
* This method is called by drag-and-drop handler
|
|
2412
|
+
*/
|
|
2413
|
+
private processFiles;
|
|
2414
|
+
onFileChange(event: {
|
|
2415
|
+
event: Event;
|
|
2416
|
+
files: File[];
|
|
2417
|
+
}): void;
|
|
2402
2418
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPGalleryWidgetEditComponent, never>;
|
|
2403
2419
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPGalleryWidgetEditComponent, "axp-gallery-widget-edit", never, {}, {}, never, never, true, never>;
|
|
2404
2420
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/platform",
|
|
3
|
-
"version": "20.7.
|
|
3
|
+
"version": "20.7.5",
|
|
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,10 +27,6 @@
|
|
|
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
|
-
},
|
|
34
30
|
"./common": {
|
|
35
31
|
"types": "./common/index.d.ts",
|
|
36
32
|
"default": "./fesm2022/acorex-platform-common.mjs"
|
|
@@ -39,6 +35,10 @@
|
|
|
39
35
|
"types": "./core/index.d.ts",
|
|
40
36
|
"default": "./fesm2022/acorex-platform-core.mjs"
|
|
41
37
|
},
|
|
38
|
+
"./auth": {
|
|
39
|
+
"types": "./auth/index.d.ts",
|
|
40
|
+
"default": "./fesm2022/acorex-platform-auth.mjs"
|
|
41
|
+
},
|
|
42
42
|
"./domain": {
|
|
43
43
|
"types": "./domain/index.d.ts",
|
|
44
44
|
"default": "./fesm2022/acorex-platform-domain.mjs"
|
package/workflow/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
*/
|