@acorex/platform 20.6.0-next.9 → 20.6.1
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 +9 -2
- package/core/index.d.ts +209 -55
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +225 -24
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +49 -4
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +39 -118
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +1011 -257
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +2 -2
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +9318 -4439
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +30 -24
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +4 -8
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs +30 -0
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-C1l2KSDa.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-m8rHZP8L.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-m8rHZP8L.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-D-31ej0C.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +2081 -1238
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +79 -3
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-mARj77Mr.mjs +136 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-mARj77Mr.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-Cym8pq0v.mjs +1543 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-Cym8pq0v.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +124 -21
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs +55 -0
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +15 -110
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +658 -45
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +6 -33
- package/layout/components/index.d.ts +301 -60
- package/layout/designer/index.d.ts +1 -1
- package/layout/entity/index.d.ts +650 -86
- package/layout/views/index.d.ts +5 -58
- package/layout/widget-core/index.d.ts +24 -26
- package/layout/widgets/README.md +0 -1
- package/layout/widgets/index.d.ts +134 -84
- package/package.json +1 -1
- package/runtime/index.d.ts +36 -8
- package/themes/default/index.d.ts +29 -73
- package/themes/shared/index.d.ts +1 -39
- package/workflow/index.d.ts +401 -90
- package/fesm2022/acorex-platform-layout-entity-create-entity.command-DGeylNSY.mjs +0 -52
- package/fesm2022/acorex-platform-layout-entity-create-entity.command-DGeylNSY.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-C1l2KSDa.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-D-31ej0C.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-WbPPqDON.mjs +0 -115
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-WbPPqDON.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CD7rJIMh.mjs +0 -803
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CD7rJIMh.mjs.map +0 -1
package/workflow/index.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Type, ModuleWithProviders, Injector, InjectionToken } from '@angular/core';
|
|
5
5
|
import { AXPCommand } from '@acorex/platform/runtime';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
6
|
+
import * as _acorex_platform_core from '@acorex/platform/core';
|
|
7
|
+
import { AXPExecuteCommandResult, AXPValidationRules, AXPActionMenuItem } from '@acorex/platform/core';
|
|
8
|
+
import { AXPWidgetTypesMap, AXPWidgetNode } from '@acorex/platform/layout/widget-core';
|
|
8
9
|
import { AXStyleColorType } from '@acorex/cdk/common';
|
|
10
|
+
import { AXPopupSizeType } from '@acorex/components/popup';
|
|
9
11
|
|
|
10
12
|
declare class AXPWorkflowError extends Error {
|
|
11
13
|
inner: Error | null;
|
|
@@ -167,17 +169,14 @@ interface AXPStoredWorkflowDefinition extends AXPVersionedEntity {
|
|
|
167
169
|
*/
|
|
168
170
|
id: string;
|
|
169
171
|
/**
|
|
170
|
-
*
|
|
172
|
+
* Unique workflow name (same across all versions).
|
|
173
|
+
* This is the primary identifier (replaces definitionId).
|
|
171
174
|
*/
|
|
172
|
-
|
|
175
|
+
name: string;
|
|
173
176
|
/**
|
|
174
177
|
* Tenant ID (nullable).
|
|
175
178
|
*/
|
|
176
179
|
tenantId?: string | null;
|
|
177
|
-
/**
|
|
178
|
-
* Human-readable name.
|
|
179
|
-
*/
|
|
180
|
-
name?: string | null;
|
|
181
180
|
/**
|
|
182
181
|
* Description of what the workflow does.
|
|
183
182
|
*/
|
|
@@ -422,7 +421,7 @@ interface AXPActivity {
|
|
|
422
421
|
*/
|
|
423
422
|
name?: string | null;
|
|
424
423
|
/**
|
|
425
|
-
* Activity type (e.g., "
|
|
424
|
+
* Activity type (e.g., "workflow-activity:write-line", "workflow-activity:if").
|
|
426
425
|
*/
|
|
427
426
|
type: string;
|
|
428
427
|
/**
|
|
@@ -443,7 +442,7 @@ interface AXPActivity {
|
|
|
443
442
|
* ```json
|
|
444
443
|
* {
|
|
445
444
|
* "id": "show-dialog",
|
|
446
|
-
* "type": "
|
|
445
|
+
* "type": "workflow-activity:show-dialog",
|
|
447
446
|
* "executionMode": "frontend"
|
|
448
447
|
* }
|
|
449
448
|
* ```
|
|
@@ -464,14 +463,13 @@ interface AXPActivity {
|
|
|
464
463
|
}
|
|
465
464
|
/**
|
|
466
465
|
* Flowchart activity (workflow definition format).
|
|
467
|
-
* Matches Flowchart from workflow definition schema.
|
|
468
466
|
* This is the root activity that contains all other activities.
|
|
469
467
|
*/
|
|
470
468
|
interface AXPFlowchart extends AXPActivity {
|
|
471
469
|
/**
|
|
472
|
-
* Type must be "
|
|
470
|
+
* Type must be "workflow-activity:flowchart".
|
|
473
471
|
*/
|
|
474
|
-
type: "
|
|
472
|
+
type: "workflow-activity:flowchart";
|
|
475
473
|
/**
|
|
476
474
|
* Activities in this flowchart.
|
|
477
475
|
*/
|
|
@@ -486,47 +484,74 @@ interface AXPFlowchart extends AXPActivity {
|
|
|
486
484
|
connections: AXPConnection[];
|
|
487
485
|
}
|
|
488
486
|
/**
|
|
489
|
-
*
|
|
490
|
-
* This
|
|
491
|
-
* All workflow definitions use this format.
|
|
487
|
+
* Simplified workflow definition for JSON files.
|
|
488
|
+
* This is what developers write - system fields are added automatically.
|
|
492
489
|
*/
|
|
493
|
-
interface
|
|
490
|
+
interface AXPWorkflowDefinitionJson {
|
|
494
491
|
/**
|
|
495
|
-
*
|
|
492
|
+
* Unique workflow name (used as key/identifier).
|
|
493
|
+
* This is the only required field for identification.
|
|
494
|
+
* Similar to entity system where 'name' is the unique key.
|
|
496
495
|
*/
|
|
497
|
-
|
|
496
|
+
name: string;
|
|
498
497
|
/**
|
|
499
|
-
*
|
|
498
|
+
* Display title (human-readable name shown in UI).
|
|
499
|
+
* Similar to entity system where 'title' is the display name.
|
|
500
500
|
*/
|
|
501
|
-
|
|
501
|
+
title?: string | null;
|
|
502
502
|
/**
|
|
503
|
-
*
|
|
503
|
+
* Description.
|
|
504
504
|
*/
|
|
505
|
-
|
|
505
|
+
description?: string | null;
|
|
506
506
|
/**
|
|
507
|
-
*
|
|
507
|
+
* Workflow variables.
|
|
508
508
|
*/
|
|
509
|
-
|
|
509
|
+
variables?: AXPVariableDefinition[];
|
|
510
510
|
/**
|
|
511
|
-
*
|
|
511
|
+
* Workflow inputs.
|
|
512
512
|
*/
|
|
513
|
-
|
|
513
|
+
inputs?: AXPWorkflowInputDefinition[];
|
|
514
514
|
/**
|
|
515
|
-
*
|
|
515
|
+
* Workflow outputs.
|
|
516
516
|
*/
|
|
517
|
-
|
|
517
|
+
outputs?: AXPWorkflowOutputDefinition[];
|
|
518
518
|
/**
|
|
519
|
-
*
|
|
519
|
+
* Workflow outcomes.
|
|
520
520
|
*/
|
|
521
|
-
|
|
521
|
+
outcomes?: string[];
|
|
522
522
|
/**
|
|
523
|
-
*
|
|
523
|
+
* Custom properties.
|
|
524
524
|
*/
|
|
525
|
-
|
|
525
|
+
customProperties?: AXPCustomProperties;
|
|
526
526
|
/**
|
|
527
|
-
*
|
|
527
|
+
* Workflow options.
|
|
528
528
|
*/
|
|
529
|
-
|
|
529
|
+
options?: AXPWorkflowOptions;
|
|
530
|
+
/**
|
|
531
|
+
* Root activity (Flowchart).
|
|
532
|
+
*/
|
|
533
|
+
root: AXPFlowchart;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Complete workflow definition (v3.0.0 format).
|
|
537
|
+
* This is the core workflow definition without system fields.
|
|
538
|
+
* System fields ($schema, tenantId, createdAt, toolVersion, isPublished, id, version, isLatest, isReadonly, isSystem)
|
|
539
|
+
* are managed by the entity system and stored in entity model.
|
|
540
|
+
*/
|
|
541
|
+
interface AXPWorkflowDefinition {
|
|
542
|
+
/**
|
|
543
|
+
* Unique workflow name (used as key/identifier, same across all versions).
|
|
544
|
+
* This is the primary identifier for the workflow.
|
|
545
|
+
*/
|
|
546
|
+
name: string;
|
|
547
|
+
/**
|
|
548
|
+
* Display title (human-readable name shown in UI).
|
|
549
|
+
*/
|
|
550
|
+
title?: string | null;
|
|
551
|
+
/**
|
|
552
|
+
* Description.
|
|
553
|
+
*/
|
|
554
|
+
description?: string | null;
|
|
530
555
|
/**
|
|
531
556
|
* Workflow variables.
|
|
532
557
|
*/
|
|
@@ -547,22 +572,6 @@ interface AXPWorkflowDefinition {
|
|
|
547
572
|
* Custom properties.
|
|
548
573
|
*/
|
|
549
574
|
customProperties?: AXPCustomProperties;
|
|
550
|
-
/**
|
|
551
|
-
* Whether workflow is readonly.
|
|
552
|
-
*/
|
|
553
|
-
isReadonly: boolean;
|
|
554
|
-
/**
|
|
555
|
-
* Whether workflow is system workflow.
|
|
556
|
-
*/
|
|
557
|
-
isSystem: boolean;
|
|
558
|
-
/**
|
|
559
|
-
* Whether this is the latest version.
|
|
560
|
-
*/
|
|
561
|
-
isLatest: boolean;
|
|
562
|
-
/**
|
|
563
|
-
* Whether workflow is published.
|
|
564
|
-
*/
|
|
565
|
-
isPublished: boolean;
|
|
566
575
|
/**
|
|
567
576
|
* Workflow options.
|
|
568
577
|
*/
|
|
@@ -606,6 +615,118 @@ interface AXPWorkflowOptions {
|
|
|
606
615
|
commitStrategyName?: string | null;
|
|
607
616
|
}
|
|
608
617
|
|
|
618
|
+
/**
|
|
619
|
+
* Workflow definition loader interface.
|
|
620
|
+
* Implement this to provide workflow definitions from various sources (JSON files, database, etc.).
|
|
621
|
+
*/
|
|
622
|
+
interface AXPWorkflowDefinitionLoader {
|
|
623
|
+
/**
|
|
624
|
+
* Get workflow definition by name (unique key).
|
|
625
|
+
* @param name - The workflow name (unique key)
|
|
626
|
+
* @returns Workflow definition or null if not found
|
|
627
|
+
*/
|
|
628
|
+
get(name: string): Promise<AXPWorkflowDefinition | null>;
|
|
629
|
+
/**
|
|
630
|
+
* Get all available workflow names.
|
|
631
|
+
* Used for preloading and discovery.
|
|
632
|
+
* @returns Array of workflow names
|
|
633
|
+
*/
|
|
634
|
+
getAllNames?(): Promise<string[]>;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* Workflow definition preloader interface.
|
|
638
|
+
* Implement this to provide a list of workflow definitions that should be preloaded.
|
|
639
|
+
*/
|
|
640
|
+
interface AXPWorkflowDefinitionPreloader {
|
|
641
|
+
/**
|
|
642
|
+
* Get list of workflow definition IDs to preload.
|
|
643
|
+
* @returns Array of definition IDs
|
|
644
|
+
*/
|
|
645
|
+
preload(): string[];
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Injection token for workflow definition loaders.
|
|
649
|
+
* Multiple loaders can be provided (multi: true).
|
|
650
|
+
*/
|
|
651
|
+
declare const AXP_WORKFLOW_DEFINITION_LOADER: InjectionToken<AXPWorkflowDefinitionLoader>;
|
|
652
|
+
/**
|
|
653
|
+
* Resolver service for workflow definitions.
|
|
654
|
+
* Aggregates all registered loaders and resolves workflow definitions.
|
|
655
|
+
*/
|
|
656
|
+
declare class AXPWorkflowDefinitionResolver {
|
|
657
|
+
private loaders;
|
|
658
|
+
/**
|
|
659
|
+
* Get workflow definition by name (unique key).
|
|
660
|
+
* Tries all registered loaders until one returns a definition.
|
|
661
|
+
* @param name - The workflow name (unique key)
|
|
662
|
+
* @returns Workflow definition or null if not found
|
|
663
|
+
*/
|
|
664
|
+
get(name: string): Promise<AXPWorkflowDefinition | null>;
|
|
665
|
+
/**
|
|
666
|
+
* Get all available workflow names from all loaders.
|
|
667
|
+
* @returns Array of unique workflow names
|
|
668
|
+
*/
|
|
669
|
+
getAllNames(): Promise<string[]>;
|
|
670
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPWorkflowDefinitionResolver, never>;
|
|
671
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPWorkflowDefinitionResolver>;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Registry service for workflow definitions.
|
|
676
|
+
* Caches loaded definitions and provides change notifications.
|
|
677
|
+
*/
|
|
678
|
+
declare class AXPWorkflowDefinitionRegistryService {
|
|
679
|
+
private resolver;
|
|
680
|
+
private cache;
|
|
681
|
+
private onChanged;
|
|
682
|
+
/**
|
|
683
|
+
* Observable for workflow definition changes.
|
|
684
|
+
*/
|
|
685
|
+
get onChanged$(): rxjs.Observable<{
|
|
686
|
+
name: string;
|
|
687
|
+
action: "registered" | "updated" | "removed";
|
|
688
|
+
}>;
|
|
689
|
+
/**
|
|
690
|
+
* Get workflow definition by name (unique key).
|
|
691
|
+
* Uses cache if available, otherwise loads from resolver.
|
|
692
|
+
* @param name - The workflow name (unique key)
|
|
693
|
+
* @returns Workflow definition or null if not found
|
|
694
|
+
*/
|
|
695
|
+
get(name: string): Promise<AXPWorkflowDefinition | null>;
|
|
696
|
+
/**
|
|
697
|
+
* Register a workflow definition in the cache.
|
|
698
|
+
* @param definition - The workflow definition to register
|
|
699
|
+
*/
|
|
700
|
+
register(definition: AXPWorkflowDefinition): void;
|
|
701
|
+
/**
|
|
702
|
+
* Update a workflow definition in the cache.
|
|
703
|
+
* @param definition - The updated workflow definition
|
|
704
|
+
*/
|
|
705
|
+
update(definition: AXPWorkflowDefinition): void;
|
|
706
|
+
/**
|
|
707
|
+
* Remove a workflow definition from the cache.
|
|
708
|
+
* @param name - The workflow name to remove
|
|
709
|
+
*/
|
|
710
|
+
remove(name: string): void;
|
|
711
|
+
/**
|
|
712
|
+
* Clear all cached workflow definitions.
|
|
713
|
+
*/
|
|
714
|
+
clear(): void;
|
|
715
|
+
/**
|
|
716
|
+
* Check if a workflow definition is cached.
|
|
717
|
+
* @param definitionId - The workflow definition ID
|
|
718
|
+
* @returns True if cached, false otherwise
|
|
719
|
+
*/
|
|
720
|
+
has(definitionId: string): boolean;
|
|
721
|
+
/**
|
|
722
|
+
* Get all cached workflow definition IDs.
|
|
723
|
+
* @returns Array of definition IDs (only those that have been loaded)
|
|
724
|
+
*/
|
|
725
|
+
getAllIds(): string[];
|
|
726
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPWorkflowDefinitionRegistryService, never>;
|
|
727
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPWorkflowDefinitionRegistryService>;
|
|
728
|
+
}
|
|
729
|
+
|
|
609
730
|
/**
|
|
610
731
|
* Workflow status.
|
|
611
732
|
*/
|
|
@@ -995,10 +1116,10 @@ interface IActivity<TInput = any, TOutput = any> extends AXPCommand<TInput, {
|
|
|
995
1116
|
* @param input - Activity input data
|
|
996
1117
|
* @returns Promise with output and outcomes
|
|
997
1118
|
*/
|
|
998
|
-
execute(input: TInput): Promise<{
|
|
1119
|
+
execute(input: TInput): Promise<AXPExecuteCommandResult<{
|
|
999
1120
|
output: TOutput;
|
|
1000
1121
|
outcomes: Record<string, any>;
|
|
1001
|
-
}
|
|
1122
|
+
}>>;
|
|
1002
1123
|
}
|
|
1003
1124
|
/**
|
|
1004
1125
|
* Base abstract class for activities.
|
|
@@ -1012,17 +1133,17 @@ declare abstract class Activity<TInput = any, TOutput = any> implements IActivit
|
|
|
1012
1133
|
* Execute the activity as a command.
|
|
1013
1134
|
* Override this method in subclasses to implement activity logic.
|
|
1014
1135
|
*/
|
|
1015
|
-
abstract execute(input: TInput): Promise<{
|
|
1136
|
+
abstract execute(input: TInput): Promise<AXPExecuteCommandResult<{
|
|
1016
1137
|
output: TOutput;
|
|
1017
1138
|
outcomes: Record<string, any>;
|
|
1018
|
-
}
|
|
1139
|
+
}>>;
|
|
1019
1140
|
/**
|
|
1020
1141
|
* Helper method that returns Done outcome by default.
|
|
1021
1142
|
*/
|
|
1022
|
-
protected createResult(output: TOutput, outcome?: string): {
|
|
1143
|
+
protected createResult(output: TOutput, outcome?: string): AXPExecuteCommandResult<{
|
|
1023
1144
|
output: TOutput;
|
|
1024
1145
|
outcomes: Record<string, any>;
|
|
1025
|
-
}
|
|
1146
|
+
}>;
|
|
1026
1147
|
}
|
|
1027
1148
|
/**
|
|
1028
1149
|
* Activity descriptor - metadata about an activity type.
|
|
@@ -1467,7 +1588,6 @@ interface WorkflowExecutionResult {
|
|
|
1467
1588
|
* - Backend activities: Execute via API calls to backend
|
|
1468
1589
|
* - State caching: Caches workflow state in client for performance
|
|
1469
1590
|
*
|
|
1470
|
-
* ✅ Suitable for production use.
|
|
1471
1591
|
*/
|
|
1472
1592
|
declare class WorkflowCoordinator {
|
|
1473
1593
|
private readonly workflowExecutionService;
|
|
@@ -1705,10 +1825,10 @@ declare class WriteLine extends Activity<{
|
|
|
1705
1825
|
constructor();
|
|
1706
1826
|
execute(input: {
|
|
1707
1827
|
text?: string;
|
|
1708
|
-
}): Promise<{
|
|
1828
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1709
1829
|
output: void;
|
|
1710
1830
|
outcomes: Record<string, any>;
|
|
1711
|
-
}
|
|
1831
|
+
}>>;
|
|
1712
1832
|
}
|
|
1713
1833
|
|
|
1714
1834
|
/**
|
|
@@ -1727,10 +1847,10 @@ declare class Sequence extends Activity<{}, void> {
|
|
|
1727
1847
|
*/
|
|
1728
1848
|
activities: IActivity[];
|
|
1729
1849
|
constructor();
|
|
1730
|
-
execute(input: {}): Promise<{
|
|
1850
|
+
execute(input: {}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1731
1851
|
output: void;
|
|
1732
1852
|
outcomes: Record<string, any>;
|
|
1733
|
-
}
|
|
1853
|
+
}>>;
|
|
1734
1854
|
}
|
|
1735
1855
|
|
|
1736
1856
|
/**
|
|
@@ -1771,13 +1891,13 @@ declare class ShowConfirmDialog extends Activity<{
|
|
|
1771
1891
|
defaultAction?: 'confirm' | 'cancel';
|
|
1772
1892
|
align?: 'horizontal' | 'vertical';
|
|
1773
1893
|
backdrop?: boolean;
|
|
1774
|
-
}): Promise<{
|
|
1894
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1775
1895
|
output: {
|
|
1776
1896
|
result: boolean;
|
|
1777
1897
|
action: string;
|
|
1778
1898
|
};
|
|
1779
1899
|
outcomes: Record<string, any>;
|
|
1780
|
-
}
|
|
1900
|
+
}>>;
|
|
1781
1901
|
}
|
|
1782
1902
|
|
|
1783
1903
|
/**
|
|
@@ -1811,13 +1931,204 @@ declare class ShowAlertDialog extends Activity<{
|
|
|
1811
1931
|
title?: string;
|
|
1812
1932
|
message?: string;
|
|
1813
1933
|
color?: AXStyleColorType;
|
|
1814
|
-
}): Promise<{
|
|
1934
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1815
1935
|
output: {
|
|
1816
1936
|
result: boolean;
|
|
1817
1937
|
action: string;
|
|
1818
1938
|
};
|
|
1819
1939
|
outcomes: Record<string, any>;
|
|
1820
|
-
}
|
|
1940
|
+
}>>;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* Show Dialog Layout Builder Activity - Displays dialog using Layout Builder.
|
|
1945
|
+
*
|
|
1946
|
+
* This activity allows you to create custom dialogs using the Layout Builder API.
|
|
1947
|
+
* It accepts JSON-serializable content (AXPWidgetNode) and actions configuration.
|
|
1948
|
+
*
|
|
1949
|
+
* The content can be created using Layout Builder and then converted to JSON:
|
|
1950
|
+
* ```typescript
|
|
1951
|
+
* const builder = layoutBuilderService.create();
|
|
1952
|
+
* builder.flex(flex => {
|
|
1953
|
+
* flex.setDirection('column')
|
|
1954
|
+
* .formField('First Name', field => {
|
|
1955
|
+
* field.path('firstName');
|
|
1956
|
+
* field.textBox({ placeholder: 'Enter first name' });
|
|
1957
|
+
* });
|
|
1958
|
+
* });
|
|
1959
|
+
* const contentNode = builder.build();
|
|
1960
|
+
* ```
|
|
1961
|
+
*
|
|
1962
|
+
* Usage in Workflow:
|
|
1963
|
+
* ```typescript
|
|
1964
|
+
* const dialog = new ShowDialogLayoutBuilder();
|
|
1965
|
+
* await dialog.execute({
|
|
1966
|
+
* title: 'User Information',
|
|
1967
|
+
* size: 'md',
|
|
1968
|
+
* context: { firstName: '', lastName: '' },
|
|
1969
|
+
* content: {
|
|
1970
|
+
* type: 'flex-layout',
|
|
1971
|
+
* mode: 'edit',
|
|
1972
|
+
* options: {
|
|
1973
|
+
* flexDirection: 'column',
|
|
1974
|
+
* gap: '16px'
|
|
1975
|
+
* },
|
|
1976
|
+
* children: [
|
|
1977
|
+
* {
|
|
1978
|
+
* type: 'form-field',
|
|
1979
|
+
* mode: 'edit',
|
|
1980
|
+
* options: {
|
|
1981
|
+
* label: 'First Name',
|
|
1982
|
+
* showLabel: true
|
|
1983
|
+
* },
|
|
1984
|
+
* children: [{
|
|
1985
|
+
* type: 'text-editor',
|
|
1986
|
+
* path: 'firstName',
|
|
1987
|
+
* options: {
|
|
1988
|
+
* placeholder: 'Enter first name'
|
|
1989
|
+
* }
|
|
1990
|
+
* }]
|
|
1991
|
+
* }
|
|
1992
|
+
* ]
|
|
1993
|
+
* },
|
|
1994
|
+
* actions: {
|
|
1995
|
+
* cancel: '@general:actions.cancel.title',
|
|
1996
|
+
* submit: '@general:actions.submit.title',
|
|
1997
|
+
* custom: [{
|
|
1998
|
+
* title: 'Save Draft',
|
|
1999
|
+
* icon: 'fa-save',
|
|
2000
|
+
* color: 'secondary',
|
|
2001
|
+
* command: { name: 'save-draft' }
|
|
2002
|
+
* }]
|
|
2003
|
+
* }
|
|
2004
|
+
* });
|
|
2005
|
+
* ```
|
|
2006
|
+
*
|
|
2007
|
+
* Usage in JSON Workflow Definition:
|
|
2008
|
+
* ```json
|
|
2009
|
+
* {
|
|
2010
|
+
* "type": "ShowDialogLayoutBuilder",
|
|
2011
|
+
* "properties": {
|
|
2012
|
+
* "title": "User Information",
|
|
2013
|
+
* "size": "md",
|
|
2014
|
+
* "context": { "firstName": "", "lastName": "" },
|
|
2015
|
+
* "content": {
|
|
2016
|
+
* "type": "flex-layout",
|
|
2017
|
+
* "mode": "edit",
|
|
2018
|
+
* "options": {
|
|
2019
|
+
* "flexDirection": "column",
|
|
2020
|
+
* "gap": "16px"
|
|
2021
|
+
* },
|
|
2022
|
+
* "children": [
|
|
2023
|
+
* {
|
|
2024
|
+
* "type": "form-field",
|
|
2025
|
+
* "mode": "edit",
|
|
2026
|
+
* "options": {
|
|
2027
|
+
* "label": "First Name",
|
|
2028
|
+
* "showLabel": true
|
|
2029
|
+
* },
|
|
2030
|
+
* "children": [{
|
|
2031
|
+
* "type": "text-editor",
|
|
2032
|
+
* "path": "firstName",
|
|
2033
|
+
* "options": {
|
|
2034
|
+
* "placeholder": "Enter first name"
|
|
2035
|
+
* }
|
|
2036
|
+
* }]
|
|
2037
|
+
* }
|
|
2038
|
+
* ]
|
|
2039
|
+
* },
|
|
2040
|
+
* "actions": {
|
|
2041
|
+
* "cancel": "@general:actions.cancel.title",
|
|
2042
|
+
* "submit": "@general:actions.submit.title"
|
|
2043
|
+
* }
|
|
2044
|
+
* }
|
|
2045
|
+
* }
|
|
2046
|
+
* ```
|
|
2047
|
+
*/
|
|
2048
|
+
declare class ShowDialogLayoutBuilder extends Activity<{
|
|
2049
|
+
/**
|
|
2050
|
+
* Dialog title
|
|
2051
|
+
*/
|
|
2052
|
+
title?: string;
|
|
2053
|
+
/**
|
|
2054
|
+
* Dialog size
|
|
2055
|
+
*/
|
|
2056
|
+
size?: AXPopupSizeType;
|
|
2057
|
+
/**
|
|
2058
|
+
* Initial dialog context/data
|
|
2059
|
+
*/
|
|
2060
|
+
context?: Record<string, any>;
|
|
2061
|
+
/**
|
|
2062
|
+
* Show close button
|
|
2063
|
+
*/
|
|
2064
|
+
closeButton?: boolean;
|
|
2065
|
+
/**
|
|
2066
|
+
* Dialog message (optional, shown above content)
|
|
2067
|
+
*/
|
|
2068
|
+
message?: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* Dialog content as AXPWidgetNode (JSON-serializable)
|
|
2071
|
+
* This can be created using Layout Builder and then converted to JSON.
|
|
2072
|
+
*/
|
|
2073
|
+
content?: AXPWidgetNode;
|
|
2074
|
+
/**
|
|
2075
|
+
* Dialog actions configuration (JSON-serializable)
|
|
2076
|
+
*/
|
|
2077
|
+
actions?: {
|
|
2078
|
+
/**
|
|
2079
|
+
* Cancel button text (optional)
|
|
2080
|
+
*/
|
|
2081
|
+
cancel?: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* Submit button text (optional)
|
|
2084
|
+
*/
|
|
2085
|
+
submit?: string;
|
|
2086
|
+
/**
|
|
2087
|
+
* Custom actions array (optional)
|
|
2088
|
+
*/
|
|
2089
|
+
custom?: AXPActionMenuItem[];
|
|
2090
|
+
};
|
|
2091
|
+
}, {
|
|
2092
|
+
/**
|
|
2093
|
+
* Dialog context/data after user interaction
|
|
2094
|
+
*/
|
|
2095
|
+
context: Record<string, any>;
|
|
2096
|
+
/**
|
|
2097
|
+
* Action that user clicked (e.g., 'submit', 'cancel', or custom action name)
|
|
2098
|
+
*/
|
|
2099
|
+
action: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* Whether user cancelled the dialog
|
|
2102
|
+
*/
|
|
2103
|
+
cancelled: boolean;
|
|
2104
|
+
/**
|
|
2105
|
+
* Whether user confirmed/submitted the dialog
|
|
2106
|
+
*/
|
|
2107
|
+
confirmed: boolean;
|
|
2108
|
+
}> {
|
|
2109
|
+
private readonly layoutBuilder;
|
|
2110
|
+
constructor();
|
|
2111
|
+
execute(input: {
|
|
2112
|
+
title?: string;
|
|
2113
|
+
size?: AXPopupSizeType;
|
|
2114
|
+
context?: Record<string, any>;
|
|
2115
|
+
closeButton?: boolean;
|
|
2116
|
+
message?: string;
|
|
2117
|
+
content?: AXPWidgetNode;
|
|
2118
|
+
actions?: {
|
|
2119
|
+
cancel?: string;
|
|
2120
|
+
submit?: string;
|
|
2121
|
+
custom?: AXPActionMenuItem[];
|
|
2122
|
+
};
|
|
2123
|
+
}): Promise<AXPExecuteCommandResult<{
|
|
2124
|
+
output: {
|
|
2125
|
+
context: Record<string, any>;
|
|
2126
|
+
action: string;
|
|
2127
|
+
cancelled: boolean;
|
|
2128
|
+
confirmed: boolean;
|
|
2129
|
+
};
|
|
2130
|
+
outcomes: Record<string, any>;
|
|
2131
|
+
}>>;
|
|
1821
2132
|
}
|
|
1822
2133
|
|
|
1823
2134
|
/**
|
|
@@ -1847,10 +2158,10 @@ declare class ShowToast extends Activity<{
|
|
|
1847
2158
|
title?: string;
|
|
1848
2159
|
message?: string;
|
|
1849
2160
|
duration?: number;
|
|
1850
|
-
}): Promise<{
|
|
2161
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1851
2162
|
output: void;
|
|
1852
2163
|
outcomes: Record<string, any>;
|
|
1853
|
-
}
|
|
2164
|
+
}>>;
|
|
1854
2165
|
}
|
|
1855
2166
|
|
|
1856
2167
|
/**
|
|
@@ -1885,10 +2196,10 @@ declare class Navigate extends Activity<{
|
|
|
1885
2196
|
entity?: string;
|
|
1886
2197
|
entityId?: string;
|
|
1887
2198
|
url?: string;
|
|
1888
|
-
}): Promise<{
|
|
2199
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1889
2200
|
output: void;
|
|
1890
2201
|
outcomes: Record<string, any>;
|
|
1891
|
-
}
|
|
2202
|
+
}>>;
|
|
1892
2203
|
}
|
|
1893
2204
|
|
|
1894
2205
|
/**
|
|
@@ -1911,10 +2222,10 @@ declare class SetVariable extends Activity<{
|
|
|
1911
2222
|
execute(input: {
|
|
1912
2223
|
variableName: string;
|
|
1913
2224
|
value: any;
|
|
1914
|
-
}): Promise<{
|
|
2225
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1915
2226
|
output: void;
|
|
1916
2227
|
outcomes: Record<string, any>;
|
|
1917
|
-
}
|
|
2228
|
+
}>>;
|
|
1918
2229
|
}
|
|
1919
2230
|
|
|
1920
2231
|
/**
|
|
@@ -1937,10 +2248,10 @@ declare class DispatchEvent extends Activity<{
|
|
|
1937
2248
|
execute(input: {
|
|
1938
2249
|
eventName: string;
|
|
1939
2250
|
eventData?: any;
|
|
1940
|
-
}): Promise<{
|
|
2251
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1941
2252
|
output: void;
|
|
1942
2253
|
outcomes: Record<string, any>;
|
|
1943
|
-
}
|
|
2254
|
+
}>>;
|
|
1944
2255
|
}
|
|
1945
2256
|
|
|
1946
2257
|
/**
|
|
@@ -1964,10 +2275,10 @@ declare class If extends Activity<{
|
|
|
1964
2275
|
condition: string | boolean;
|
|
1965
2276
|
thenActivities?: IActivity[];
|
|
1966
2277
|
elseActivities?: IActivity[];
|
|
1967
|
-
}): Promise<{
|
|
2278
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1968
2279
|
output: any;
|
|
1969
2280
|
outcomes: Record<string, any>;
|
|
1970
|
-
}
|
|
2281
|
+
}>>;
|
|
1971
2282
|
private evaluateCondition;
|
|
1972
2283
|
}
|
|
1973
2284
|
|
|
@@ -1991,10 +2302,10 @@ declare class While extends Activity<{
|
|
|
1991
2302
|
condition: string | boolean;
|
|
1992
2303
|
activities?: IActivity[];
|
|
1993
2304
|
maxIterations?: number;
|
|
1994
|
-
}): Promise<{
|
|
2305
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
1995
2306
|
output: any;
|
|
1996
2307
|
outcomes: Record<string, any>;
|
|
1997
|
-
}
|
|
2308
|
+
}>>;
|
|
1998
2309
|
private evaluateCondition;
|
|
1999
2310
|
}
|
|
2000
2311
|
|
|
@@ -2022,10 +2333,10 @@ declare class ForEach extends Activity<{
|
|
|
2022
2333
|
activities?: IActivity[];
|
|
2023
2334
|
itemVariableName?: string;
|
|
2024
2335
|
indexVariableName?: string;
|
|
2025
|
-
}): Promise<{
|
|
2336
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
2026
2337
|
output: any;
|
|
2027
2338
|
outcomes: Record<string, any>;
|
|
2028
|
-
}
|
|
2339
|
+
}>>;
|
|
2029
2340
|
}
|
|
2030
2341
|
|
|
2031
2342
|
/**
|
|
@@ -2049,10 +2360,10 @@ declare class ExecuteCommand extends Activity<{
|
|
|
2049
2360
|
execute(input: {
|
|
2050
2361
|
commandKey: string;
|
|
2051
2362
|
input?: any;
|
|
2052
|
-
}): Promise<{
|
|
2363
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
2053
2364
|
output: any;
|
|
2054
2365
|
outcomes: Record<string, any>;
|
|
2055
|
-
}
|
|
2366
|
+
}>>;
|
|
2056
2367
|
}
|
|
2057
2368
|
|
|
2058
2369
|
/**
|
|
@@ -2076,10 +2387,10 @@ declare class ExecuteQuery extends Activity<{
|
|
|
2076
2387
|
execute(input: {
|
|
2077
2388
|
queryKey: string;
|
|
2078
2389
|
input?: any;
|
|
2079
|
-
}): Promise<{
|
|
2390
|
+
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
2080
2391
|
output: any;
|
|
2081
2392
|
outcomes: Record<string, any>;
|
|
2082
|
-
}
|
|
2393
|
+
}>>;
|
|
2083
2394
|
}
|
|
2084
2395
|
|
|
2085
2396
|
/**
|
|
@@ -2096,10 +2407,10 @@ declare class ExecuteQuery extends Activity<{
|
|
|
2096
2407
|
*/
|
|
2097
2408
|
declare class StartActivity extends Activity<Record<string, never>, void> {
|
|
2098
2409
|
constructor();
|
|
2099
|
-
execute(input: Record<string, never>): Promise<{
|
|
2410
|
+
execute(input: Record<string, never>): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
2100
2411
|
output: void;
|
|
2101
2412
|
outcomes: Record<string, any>;
|
|
2102
|
-
}
|
|
2413
|
+
}>>;
|
|
2103
2414
|
}
|
|
2104
2415
|
|
|
2105
2416
|
/**
|
|
@@ -2116,10 +2427,10 @@ declare class StartActivity extends Activity<Record<string, never>, void> {
|
|
|
2116
2427
|
*/
|
|
2117
2428
|
declare class EndActivity extends Activity<Record<string, never>, void> {
|
|
2118
2429
|
constructor();
|
|
2119
|
-
execute(input: Record<string, never>): Promise<{
|
|
2430
|
+
execute(input: Record<string, never>): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
2120
2431
|
output: void;
|
|
2121
2432
|
outcomes: Record<string, any>;
|
|
2122
|
-
}
|
|
2433
|
+
}>>;
|
|
2123
2434
|
}
|
|
2124
2435
|
|
|
2125
2436
|
/**
|
|
@@ -2128,5 +2439,5 @@ declare class EndActivity extends Activity<Record<string, never>, void> {
|
|
|
2128
2439
|
*/
|
|
2129
2440
|
declare const provideWorkflowActivityCommands: () => i0.EnvironmentProviders;
|
|
2130
2441
|
|
|
2131
|
-
export { AXPActivityCategoryProviderService, AXPActivityProviderService, AXPWorkflowAction, AXPWorkflowContext, AXPWorkflowError, AXPWorkflowEventService, AXPWorkflowExecutionService, AXPWorkflowFunction, AXPWorkflowModule, AXPWorkflowRegistryService, AXPWorkflowService, AXP_ACTIVITY_CATEGORY_PROVIDER, AXP_ACTIVITY_PROVIDER, Activity, ActivityRegistry, DispatchEvent, EndActivity, ExecuteCommand, ExecuteQuery, ForEach, If, Navigate, Sequence, SetVariable, ShowAlertDialog, ShowConfirmDialog, ShowToast, StartActivity, While, WorkflowCoordinator, WriteLine, createWorkFlowEvent, ofType, provideWorkflowActivityCommands };
|
|
2132
|
-
export type { AXPActivity, AXPActivityCategoryProvider, AXPActivityCategoryProviderContext, AXPActivityExecutionContextState, AXPActivityIncident, AXPActivityProvider, AXPActivityProviderContext, AXPActivityStatus, AXPActivityVariable, AXPBookmark, AXPCompletionCallbackState, AXPConnection, AXPCustomProperties, AXPEndpoint, AXPExceptionState, AXPExpression, AXPFlowchart, AXPGetWorkflowDefinitionRequest, AXPGetWorkflowDefinitionResponse, AXPGetWorkflowExecutionStateRequest, AXPInputValue, AXPMetadata, AXPOutputValue, AXPPosition, AXPResumeWorkflowExecutionRequest, AXPResumeWorkflowExecutionResponse, AXPStartWorkflowExecutionRequest, AXPStartWorkflowExecutionResponse, AXPStoredWorkflowDefinition, AXPVariableDefinition, AXPVariableModel, AXPVersionedEntity, AXPWorkflow, AXPWorkflowActionInput, AXPWorkflowCondition, AXPWorkflowConditionType, AXPWorkflowDefinition, AXPWorkflowEvent, AXPWorkflowExecutionState, AXPWorkflowFaultState, AXPWorkflowInputDefinition, AXPWorkflowInstance, AXPWorkflowModuleConfigs, AXPWorkflowNextStep, AXPWorkflowOptions, AXPWorkflowOutputDefinition, AXPWorkflowState, AXPWorkflowStatus, AXPWorkflowStep, AXPWorkflowSubStatus, AXPWorkflowTask, ActivityCategory, ActivityCategoryDescriptor, ActivityDescriptor, ActivityPropertyWidget, IActivity, InputDescriptor, OutputDescriptor, WorkflowExecutionResult };
|
|
2442
|
+
export { AXPActivityCategoryProviderService, AXPActivityProviderService, AXPWorkflowAction, AXPWorkflowContext, AXPWorkflowDefinitionRegistryService, AXPWorkflowDefinitionResolver, AXPWorkflowError, AXPWorkflowEventService, AXPWorkflowExecutionService, AXPWorkflowFunction, AXPWorkflowModule, AXPWorkflowRegistryService, AXPWorkflowService, AXP_ACTIVITY_CATEGORY_PROVIDER, AXP_ACTIVITY_PROVIDER, AXP_WORKFLOW_DEFINITION_LOADER, Activity, ActivityRegistry, DispatchEvent, EndActivity, ExecuteCommand, ExecuteQuery, ForEach, If, Navigate, Sequence, SetVariable, ShowAlertDialog, ShowConfirmDialog, ShowDialogLayoutBuilder, ShowToast, StartActivity, While, WorkflowCoordinator, WriteLine, createWorkFlowEvent, ofType, provideWorkflowActivityCommands };
|
|
2443
|
+
export type { AXPActivity, AXPActivityCategoryProvider, AXPActivityCategoryProviderContext, AXPActivityExecutionContextState, AXPActivityIncident, AXPActivityProvider, AXPActivityProviderContext, AXPActivityStatus, AXPActivityVariable, AXPBookmark, AXPCompletionCallbackState, AXPConnection, AXPCustomProperties, AXPEndpoint, AXPExceptionState, AXPExpression, AXPFlowchart, AXPGetWorkflowDefinitionRequest, AXPGetWorkflowDefinitionResponse, AXPGetWorkflowExecutionStateRequest, AXPInputValue, AXPMetadata, AXPOutputValue, AXPPosition, AXPResumeWorkflowExecutionRequest, AXPResumeWorkflowExecutionResponse, AXPStartWorkflowExecutionRequest, AXPStartWorkflowExecutionResponse, AXPStoredWorkflowDefinition, AXPVariableDefinition, AXPVariableModel, AXPVersionedEntity, AXPWorkflow, AXPWorkflowActionInput, AXPWorkflowCondition, AXPWorkflowConditionType, AXPWorkflowDefinition, AXPWorkflowDefinitionJson, AXPWorkflowDefinitionLoader, AXPWorkflowDefinitionPreloader, AXPWorkflowEvent, AXPWorkflowExecutionState, AXPWorkflowFaultState, AXPWorkflowInputDefinition, AXPWorkflowInstance, AXPWorkflowModuleConfigs, AXPWorkflowNextStep, AXPWorkflowOptions, AXPWorkflowOutputDefinition, AXPWorkflowState, AXPWorkflowStatus, AXPWorkflowStep, AXPWorkflowSubStatus, AXPWorkflowTask, ActivityCategory, ActivityCategoryDescriptor, ActivityDescriptor, ActivityPropertyWidget, IActivity, InputDescriptor, OutputDescriptor, WorkflowExecutionResult };
|