@valtimo/form-flow-management 13.43.0 → 13.45.0
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/fesm2022/valtimo-form-flow-management.mjs +1559 -186
- package/fesm2022/valtimo-form-flow-management.mjs.map +1 -1
- package/lib/components/editor/form-flow-editor.component.d.ts +34 -5
- package/lib/components/editor/form-flow-editor.component.d.ts.map +1 -1
- package/lib/components/editor/tabs/form-flow-json-editor-tab/form-flow-json-editor-tab.component.d.ts +17 -0
- package/lib/components/editor/tabs/form-flow-json-editor-tab/form-flow-json-editor-tab.component.d.ts.map +1 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-context-properties/form-flow-context-properties.component.d.ts +23 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-context-properties/form-flow-context-properties.component.d.ts.map +1 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-expression-help-modal/form-flow-expression-help-modal.component.d.ts +15 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-expression-help-modal/form-flow-expression-help-modal.component.d.ts.map +1 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-expression-list/form-flow-expression-list.component.d.ts +54 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-expression-list/form-flow-expression-list.component.d.ts.map +1 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-step-detail/form-flow-step-detail.component.d.ts +73 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-step-detail/form-flow-step-detail.component.d.ts.map +1 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-step-list/form-flow-step-list.component.d.ts +42 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-step-list/form-flow-step-list.component.d.ts.map +1 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-transition-list/form-flow-transition-list.component.d.ts +49 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-transition-list/form-flow-transition-list.component.d.ts.map +1 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-ui-editor-tab.component.d.ts +89 -0
- package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-ui-editor-tab.component.d.ts.map +1 -0
- package/lib/components/new-form-flow-modal/new-form-flow-modal.component.d.ts.map +1 -1
- package/lib/constants/form-flow-editor.test-ids.d.ts +19 -0
- package/lib/constants/form-flow-editor.test-ids.d.ts.map +1 -0
- package/lib/constants/index.d.ts +3 -0
- package/lib/constants/index.d.ts.map +1 -0
- package/lib/constants/injection-tokens.d.ts +5 -0
- package/lib/constants/injection-tokens.d.ts.map +1 -0
- package/lib/form-flow-management.module.d.ts +3 -1
- package/lib/form-flow-management.module.d.ts.map +1 -1
- package/lib/models/form-flow-custom-component.model.d.ts +18 -0
- package/lib/models/form-flow-custom-component.model.d.ts.map +1 -0
- package/lib/models/form-flow-editor.model.d.ts +6 -0
- package/lib/models/form-flow-editor.model.d.ts.map +1 -0
- package/lib/models/form-flow.model.d.ts +8 -6
- package/lib/models/form-flow.model.d.ts.map +1 -1
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/services/form-flow-component.service.d.ts +13 -0
- package/lib/services/form-flow-component.service.d.ts.map +1 -0
- package/lib/services/form-flow-download.service.d.ts.map +1 -1
- package/lib/services/form-flow-editor-form.service.d.ts +52 -0
- package/lib/services/form-flow-editor-form.service.d.ts.map +1 -0
- package/lib/services/form-flow.service.d.ts +2 -1
- package/lib/services/form-flow.service.d.ts.map +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/translate.utils.d.ts +8 -0
- package/lib/utils/translate.utils.d.ts.map +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/public-api.d.ts.map +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { BreadcrumbService, EditorModel, PageHeaderService, PageTitleService } from '@valtimo/components';
|
|
4
|
+
import { BreadcrumbService, EditorModel, PageHeaderService, PageTitleService, PendingChangesComponent } from '@valtimo/components';
|
|
5
5
|
import { GlobalNotificationService } from '@valtimo/shared';
|
|
6
6
|
import { IconService } from 'carbon-components-angular';
|
|
7
|
-
import { editor } from 'monaco-editor';
|
|
8
7
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
|
+
import { FormFlowEditorTab } from '../../models';
|
|
9
9
|
import { FormFlowService } from '../../services';
|
|
10
10
|
import { FormFlowDownloadService } from '../../services/form-flow-download.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class FormFlowEditorComponent implements OnDestroy {
|
|
12
|
+
export declare class FormFlowEditorComponent extends PendingChangesComponent implements OnDestroy {
|
|
13
13
|
private readonly breadcrumbService;
|
|
14
14
|
private readonly formFlowDownloadService;
|
|
15
15
|
private readonly formFlowService;
|
|
@@ -20,29 +20,58 @@ export declare class FormFlowEditorComponent implements OnDestroy {
|
|
|
20
20
|
private readonly route;
|
|
21
21
|
private readonly router;
|
|
22
22
|
private readonly translateService;
|
|
23
|
+
private _tabs;
|
|
23
24
|
readonly readOnly$: BehaviorSubject<boolean>;
|
|
24
25
|
readonly valid$: BehaviorSubject<boolean>;
|
|
25
26
|
readonly loading$: BehaviorSubject<boolean>;
|
|
26
27
|
readonly showDeleteModal$: BehaviorSubject<boolean>;
|
|
27
|
-
readonly
|
|
28
|
+
readonly $activeTab: import("@angular/core").WritableSignal<FormFlowEditorTab>;
|
|
29
|
+
readonly $saveAttempted: import("@angular/core").WritableSignal<boolean>;
|
|
30
|
+
protected readonly FormFlowEditorTab: typeof FormFlowEditorTab;
|
|
31
|
+
protected readonly testIds: {
|
|
32
|
+
readonly saveButton: "formFlowEditorSaveButton";
|
|
33
|
+
readonly backButton: "formFlowEditorBackButton";
|
|
34
|
+
readonly stepList: "formFlowEditorStepList";
|
|
35
|
+
readonly stepListItem: "formFlowEditorStepListItem";
|
|
36
|
+
readonly addStepButton: "formFlowEditorAddStepButton";
|
|
37
|
+
readonly deleteStepButton: "formFlowEditorDeleteStepButton";
|
|
38
|
+
readonly makeStartStepButton: "formFlowEditorMakeStartStepButton";
|
|
39
|
+
readonly stepKeyInput: "formFlowEditorStepKeyInput";
|
|
40
|
+
readonly stepTitleInput: "formFlowEditorStepTitleInput";
|
|
41
|
+
readonly stepTypeDropdown: "formFlowEditorStepTypeDropdown";
|
|
42
|
+
readonly stepPropertyInput: "formFlowEditorStepPropertyInput";
|
|
43
|
+
readonly stepPropertyDropdown: "formFlowEditorStepPropertyDropdown";
|
|
44
|
+
readonly addTransitionButton: "formFlowEditorAddTransitionButton";
|
|
45
|
+
readonly transitionRow: "formFlowEditorTransitionRow";
|
|
46
|
+
readonly addExpressionButton: "formFlowEditorAddExpressionButton";
|
|
47
|
+
readonly expressionInput: "formFlowEditorExpressionInput";
|
|
48
|
+
};
|
|
28
49
|
private readonly _context$;
|
|
29
50
|
private readonly _params$;
|
|
30
51
|
readonly formFlowSchemaJson$: Observable<object>;
|
|
31
|
-
readonly editorOptions: editor.IEditorOptions;
|
|
32
52
|
private readonly _formFlowDefinition2$;
|
|
33
53
|
readonly model$: Observable<EditorModel>;
|
|
34
54
|
private readonly _updatedModelValue$;
|
|
55
|
+
private _pendingBaseline;
|
|
35
56
|
readonly compactMode$: Observable<boolean>;
|
|
36
57
|
constructor(breadcrumbService: BreadcrumbService, formFlowDownloadService: FormFlowDownloadService, formFlowService: FormFlowService, iconService: IconService, notificationService: GlobalNotificationService, pageHeaderService: PageHeaderService, pageTitleService: PageTitleService, route: ActivatedRoute, router: Router, translateService: TranslateService);
|
|
37
58
|
ngOnDestroy(): void;
|
|
38
59
|
onValid(valid: boolean): void;
|
|
39
60
|
onValueChange(value: string): void;
|
|
61
|
+
setActiveTab(tab: FormFlowEditorTab): void;
|
|
62
|
+
protected onCancelRedirect(): void;
|
|
40
63
|
updateFormFlowDefinition(): void;
|
|
41
64
|
onDelete(): void;
|
|
42
65
|
showDeleteModal(): void;
|
|
43
66
|
downloadFormFlowDefinition(model: EditorModel): void;
|
|
44
67
|
navigateBack(): void;
|
|
68
|
+
private restoreActiveTabFromUrl;
|
|
69
|
+
private syncTabHeaders;
|
|
70
|
+
private editorRouteSegments;
|
|
71
|
+
private overviewRouteSegments;
|
|
72
|
+
private serializeDefinition;
|
|
45
73
|
private getEditorModel;
|
|
74
|
+
private normalizeJson;
|
|
46
75
|
private showSuccessMessage;
|
|
47
76
|
private initBreadcrumbs;
|
|
48
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowEditorComponent, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-flow-editor.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/form-flow-editor.component.ts"],"names":[],"mappings":"AAeA,OAAO,
|
|
1
|
+
{"version":3,"file":"form-flow-editor.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/form-flow-editor.component.ts"],"names":[],"mappings":"AAeA,OAAO,EAGL,SAAS,EAIV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,cAAc,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAIL,yBAAyB,EAE1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,WAAW,EAAM,MAAM,2BAA2B,CAAC;AAC3D,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O,CAAC,QAAQ,CAAC,mBAAmB,CAAmC;IAGvE,OAAO,CAAC,gBAAgB,CAAuB;IAE/C,SAAgB,YAAY,sBAAuC;gBAGhD,iBAAiB,EAAE,iBAAiB,EACpC,uBAAuB,EAAE,uBAAuB,EAChD,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,yBAAyB,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,EAClC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,gBAAgB;IAQ9C,WAAW,IAAI,IAAI;IAOnB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAI7B,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAelC,YAAY,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI;cAU9B,gBAAgB,IAAI,IAAI;IAIpC,wBAAwB,IAAI,IAAI;IA+ChC,QAAQ,IAAI,IAAI;IAgChB,eAAe,IAAI,IAAI;IAIvB,0BAA0B,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAQpD,YAAY,IAAI,IAAI;IAQ3B,OAAO,CAAC,uBAAuB;IAU/B,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,qBAAqB;IAyB7B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,eAAe;yCAtVZ,uBAAuB;2CAAvB,uBAAuB;CA4XnC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { EditorModel } from '@valtimo/components';
|
|
3
|
+
import { editor } from 'monaco-editor';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormFlowJsonEditorTabComponent {
|
|
6
|
+
disabled: boolean | null;
|
|
7
|
+
model: EditorModel;
|
|
8
|
+
schema: object | null;
|
|
9
|
+
validEvent: EventEmitter<boolean>;
|
|
10
|
+
valueChangeEvent: EventEmitter<string>;
|
|
11
|
+
readonly editorOptions: editor.IEditorOptions;
|
|
12
|
+
onValid(valid: boolean): void;
|
|
13
|
+
onValueChange(value: string): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowJsonEditorTabComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowJsonEditorTabComponent, "valtimo-form-flow-json-editor-tab", never, { "disabled": { "alias": "disabled"; "required": false; }; "model": { "alias": "model"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; }, { "validEvent": "validEvent"; "valueChangeEvent": "valueChangeEvent"; }, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=form-flow-json-editor-tab.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-json-editor-tab.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/tabs/form-flow-json-editor-tab/form-flow-json-editor-tab.component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAqC,YAAY,EAAgB,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,WAAW,EAAe,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;;AAErC,qBAOa,8BAA8B;IACzB,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAS;IACjC,KAAK,EAAG,WAAW,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE5B,UAAU,wBAA+B;IACzC,gBAAgB,uBAA8B;IAE/D,SAAgB,aAAa,EAAE,MAAM,CAAC,cAAc,CAElD;IAEK,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAI7B,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;yCAhB9B,8BAA8B;2CAA9B,8BAA8B;CAmB1C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { FormFlowAdditionalPropertyDto, FormFlowRegistryDto } from '@valtimo/shared';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface ContextPropertyGroup {
|
|
5
|
+
labelKey: string;
|
|
6
|
+
properties: FormFlowAdditionalPropertyDto[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Lists the `additionalProperties` entries that expressions can rely on, grouped by how the form
|
|
10
|
+
* flow is linked (user task or start event). The property names come from the form flow registry,
|
|
11
|
+
* so this always matches what the backend actually provides.
|
|
12
|
+
*/
|
|
13
|
+
export declare class FormFlowContextPropertiesComponent {
|
|
14
|
+
private readonly translateService;
|
|
15
|
+
set registry(registry: FormFlowRegistryDto | null);
|
|
16
|
+
groups: ContextPropertyGroup[];
|
|
17
|
+
constructor(translateService: TranslateService);
|
|
18
|
+
getDescription(property: FormFlowAdditionalPropertyDto): string;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowContextPropertiesComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowContextPropertiesComponent, "valtimo-form-flow-context-properties", never, { "registry": { "alias": "registry"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=form-flow-context-properties.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-context-properties.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-context-properties/form-flow-context-properties.component.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAkB,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAC,6BAA6B,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;;AAGnF,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,6BAA6B,EAAE,CAAC;CAC7C;AAED;;;;GAIG;AACH,qBAQa,kCAAkC;IAiBjC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAhB7C,IAAoB,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,EAYhE;IAEM,MAAM,EAAE,oBAAoB,EAAE,CAAM;gBAEd,gBAAgB,EAAE,gBAAgB;IAExD,cAAc,CAAC,QAAQ,EAAE,6BAA6B,GAAG,MAAM;yCAnB3D,kCAAkC;2CAAlC,kCAAkC;CA0B9C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormFlowRegistryDto } from '@valtimo/shared';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Explains how SpEL expressions work in a form flow — conditions, action hooks and the data they
|
|
6
|
+
* can access — in a modal, so the editor itself only needs a compact pointer to this help.
|
|
7
|
+
*/
|
|
8
|
+
export declare class FormFlowExpressionHelpModalComponent {
|
|
9
|
+
open: boolean;
|
|
10
|
+
registry: FormFlowRegistryDto | null;
|
|
11
|
+
closeEvent: EventEmitter<void>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowExpressionHelpModalComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowExpressionHelpModalComponent, "valtimo-form-flow-expression-help-modal", never, { "open": { "alias": "open"; "required": false; }; "registry": { "alias": "registry"; "required": false; }; }, { "closeEvent": "closeEvent"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=form-flow-expression-help-modal.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-expression-help-modal.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-expression-help-modal/form-flow-expression-help-modal.component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAqC,YAAY,EAAgB,MAAM,eAAe,CAAC;AAG9F,OAAO,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;;AAIpD;;;GAGG;AACH,qBAea,oCAAoC;IAC/B,IAAI,UAAS;IACb,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAQ;IAE3C,UAAU,qBAA4B;yCAJ5C,oCAAoC;2CAApC,oCAAoC;CAKhD"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { FormArray, FormControl } from '@angular/forms';
|
|
2
|
+
import { FormFlowRegistryDto } from '@valtimo/shared';
|
|
3
|
+
import { IconService } from 'carbon-components-angular';
|
|
4
|
+
import { FormFlowEditorFormService } from '../../../../../services/form-flow-editor-form.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
interface ExpressionSuggestion {
|
|
7
|
+
label: string;
|
|
8
|
+
expression: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Editable list of SpEL expressions for one of a step's lifecycle hooks (on open, on complete,
|
|
12
|
+
* on back). The add-menu offers the expression beans from the form flow registry as ready-made
|
|
13
|
+
* templates next to a blank expression.
|
|
14
|
+
*/
|
|
15
|
+
export declare class FormFlowExpressionListComponent {
|
|
16
|
+
private readonly formService;
|
|
17
|
+
private readonly iconService;
|
|
18
|
+
expressions: FormArray;
|
|
19
|
+
label: string;
|
|
20
|
+
description: string;
|
|
21
|
+
readOnly: boolean | null;
|
|
22
|
+
/** While false the admin is still modelling and empty-expression errors stay hidden; a save
|
|
23
|
+
* attempt flips it to reveal them. */
|
|
24
|
+
revealErrors: boolean;
|
|
25
|
+
set registry(registry: FormFlowRegistryDto | null);
|
|
26
|
+
suggestions: ExpressionSuggestion[];
|
|
27
|
+
protected readonly testIds: {
|
|
28
|
+
readonly saveButton: "formFlowEditorSaveButton";
|
|
29
|
+
readonly backButton: "formFlowEditorBackButton";
|
|
30
|
+
readonly stepList: "formFlowEditorStepList";
|
|
31
|
+
readonly stepListItem: "formFlowEditorStepListItem";
|
|
32
|
+
readonly addStepButton: "formFlowEditorAddStepButton";
|
|
33
|
+
readonly deleteStepButton: "formFlowEditorDeleteStepButton";
|
|
34
|
+
readonly makeStartStepButton: "formFlowEditorMakeStartStepButton";
|
|
35
|
+
readonly stepKeyInput: "formFlowEditorStepKeyInput";
|
|
36
|
+
readonly stepTitleInput: "formFlowEditorStepTitleInput";
|
|
37
|
+
readonly stepTypeDropdown: "formFlowEditorStepTypeDropdown";
|
|
38
|
+
readonly stepPropertyInput: "formFlowEditorStepPropertyInput";
|
|
39
|
+
readonly stepPropertyDropdown: "formFlowEditorStepPropertyDropdown";
|
|
40
|
+
readonly addTransitionButton: "formFlowEditorAddTransitionButton";
|
|
41
|
+
readonly transitionRow: "formFlowEditorTransitionRow";
|
|
42
|
+
readonly addExpressionButton: "formFlowEditorAddExpressionButton";
|
|
43
|
+
readonly expressionInput: "formFlowEditorExpressionInput";
|
|
44
|
+
};
|
|
45
|
+
constructor(formService: FormFlowEditorFormService, iconService: IconService);
|
|
46
|
+
get expressionControls(): FormControl[];
|
|
47
|
+
addExpression(expression?: string): void;
|
|
48
|
+
removeExpression(index: number): void;
|
|
49
|
+
private formatMethod;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowExpressionListComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowExpressionListComponent, "valtimo-form-flow-expression-list", never, { "expressions": { "alias": "expressions"; "required": false; }; "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "revealErrors": { "alias": "revealErrors"; "required": false; }; "registry": { "alias": "registry"; "required": false; }; }, {}, never, never, true, never>;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=form-flow-expression-list.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-expression-list.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-expression-list/form-flow-expression-list.component.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAsB,MAAM,gBAAgB,CAAC;AAI3E,OAAO,EAA8B,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAA2B,WAAW,EAAc,MAAM,2BAA2B,CAAC;AAE7F,OAAO,EAAC,yBAAyB,EAAC,MAAM,uDAAuD,CAAC;;AAEhG,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,qBAiBa,+BAA+B;IAuBxC,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAvBd,WAAW,EAAG,SAAS,CAAC;IACxB,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAS;IACjD;0CACsC;IACtB,YAAY,UAAS;IAErC,IAAoB,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,EAOhE;IAEM,WAAW,EAAE,oBAAoB,EAAE,CAAM;IAEhD,SAAS,CAAC,QAAQ,CAAC,OAAO;;;;;;;;;;;;;;;;;MAA6B;gBAGpC,WAAW,EAAE,yBAAyB,EACtC,WAAW,EAAE,WAAW;IAK3C,IAAW,kBAAkB,IAAI,WAAW,EAAE,CAE7C;IAEM,aAAa,CAAC,UAAU,SAAK,GAAG,IAAI;IAKpC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK5C,OAAO,CAAC,YAAY;yCA3CT,+BAA+B;2CAA/B,+BAA+B;CA8C3C"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormArray, FormGroup } from '@angular/forms';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { FormFlowRegistryDto } from '@valtimo/shared';
|
|
5
|
+
import { IconService, ListItem, NotificationAction } from 'carbon-components-angular';
|
|
6
|
+
import { FormFlowEditorFormService } from '../../../../../services/form-flow-editor-form.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Detail editor for a single form flow step: its key, title, type with type-specific properties,
|
|
10
|
+
* outgoing transitions and the three lifecycle expression lists.
|
|
11
|
+
*/
|
|
12
|
+
export declare class FormFlowStepDetailComponent implements OnInit, OnChanges, OnDestroy {
|
|
13
|
+
private readonly formService;
|
|
14
|
+
private readonly iconService;
|
|
15
|
+
private readonly translateService;
|
|
16
|
+
stepGroup: FormGroup;
|
|
17
|
+
registry: FormFlowRegistryDto | null;
|
|
18
|
+
stepKeys: string[];
|
|
19
|
+
formOptions: string[];
|
|
20
|
+
componentOptions: string[];
|
|
21
|
+
isStartStep: boolean;
|
|
22
|
+
readOnly: boolean | null;
|
|
23
|
+
duplicateKey: boolean;
|
|
24
|
+
/** When false the admin is still modelling and required-field errors stay hidden; a save attempt
|
|
25
|
+
* flips it to reveal them. */
|
|
26
|
+
revealErrors: boolean;
|
|
27
|
+
deleteStepEvent: EventEmitter<void>;
|
|
28
|
+
makeStartEvent: EventEmitter<void>;
|
|
29
|
+
stepTypeItems: ListItem[];
|
|
30
|
+
readonly $showHelpModal: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
helpActions: NotificationAction[];
|
|
32
|
+
protected readonly testIds: {
|
|
33
|
+
readonly saveButton: "formFlowEditorSaveButton";
|
|
34
|
+
readonly backButton: "formFlowEditorBackButton";
|
|
35
|
+
readonly stepList: "formFlowEditorStepList";
|
|
36
|
+
readonly stepListItem: "formFlowEditorStepListItem";
|
|
37
|
+
readonly addStepButton: "formFlowEditorAddStepButton";
|
|
38
|
+
readonly deleteStepButton: "formFlowEditorDeleteStepButton";
|
|
39
|
+
readonly makeStartStepButton: "formFlowEditorMakeStartStepButton";
|
|
40
|
+
readonly stepKeyInput: "formFlowEditorStepKeyInput";
|
|
41
|
+
readonly stepTitleInput: "formFlowEditorStepTitleInput";
|
|
42
|
+
readonly stepTypeDropdown: "formFlowEditorStepTypeDropdown";
|
|
43
|
+
readonly stepPropertyInput: "formFlowEditorStepPropertyInput";
|
|
44
|
+
readonly stepPropertyDropdown: "formFlowEditorStepPropertyDropdown";
|
|
45
|
+
readonly addTransitionButton: "formFlowEditorAddTransitionButton";
|
|
46
|
+
readonly transitionRow: "formFlowEditorTransitionRow";
|
|
47
|
+
readonly addExpressionButton: "formFlowEditorAddExpressionButton";
|
|
48
|
+
readonly expressionInput: "formFlowEditorExpressionInput";
|
|
49
|
+
};
|
|
50
|
+
private readonly _selectItemsCache;
|
|
51
|
+
private _typeSubscription;
|
|
52
|
+
constructor(formService: FormFlowEditorFormService, iconService: IconService, translateService: TranslateService);
|
|
53
|
+
ngOnInit(): void;
|
|
54
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
55
|
+
ngOnDestroy(): void;
|
|
56
|
+
get propertiesGroup(): FormGroup;
|
|
57
|
+
get propertyNames(): string[];
|
|
58
|
+
get transitions(): FormArray;
|
|
59
|
+
getExpressions(hook: 'onOpen' | 'onComplete' | 'onBack'): FormArray;
|
|
60
|
+
isControlInvalid(name: string): boolean;
|
|
61
|
+
getPropertyLabel(name: string): string;
|
|
62
|
+
isFormDefinitionProperty(name: string): boolean;
|
|
63
|
+
getFormDefinitionItems(): ListItem[];
|
|
64
|
+
isCustomComponentProperty(name: string): boolean;
|
|
65
|
+
getCustomComponentItems(): ListItem[];
|
|
66
|
+
private getSelectItems;
|
|
67
|
+
private buildStepTypeItems;
|
|
68
|
+
getTypeTooltip(): string;
|
|
69
|
+
private openTypeSubscription;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowStepDetailComponent, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowStepDetailComponent, "valtimo-form-flow-step-detail", never, { "stepGroup": { "alias": "stepGroup"; "required": false; }; "registry": { "alias": "registry"; "required": false; }; "stepKeys": { "alias": "stepKeys"; "required": false; }; "formOptions": { "alias": "formOptions"; "required": false; }; "componentOptions": { "alias": "componentOptions"; "required": false; }; "isStartStep": { "alias": "isStartStep"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "duplicateKey": { "alias": "duplicateKey"; "required": false; }; "revealErrors": { "alias": "revealErrors"; "required": false; }; }, { "deleteStepEvent": "deleteStepEvent"; "makeStartEvent": "makeStartEvent"; }, never, never, true, never>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=form-flow-step-detail.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-step-detail.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-step-detail/form-flow-step-detail.component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAGL,YAAY,EAEZ,SAAS,EACT,SAAS,EACT,MAAM,EAGN,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,SAAS,EAAE,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAkB,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAEtE,OAAO,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAIL,WAAW,EAGX,QAAQ,EACR,kBAAkB,EAGnB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAC,yBAAyB,EAAC,MAAM,uDAAuD,CAAC;;AAMhG;;;GAGG;AACH,qBAuBa,2BAA4B,YAAW,MAAM,E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,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI/C,sBAAsB,IAAI,QAAQ,EAAE;IAMpC,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIhD,uBAAuB,IAAI,QAAQ,EAAE;IAI5C,OAAO,CAAC,cAAc;IAetB,OAAO,CAAC,kBAAkB;IAqBnB,cAAc,IAAI,MAAM;IAU/B,OAAO,CAAC,oBAAoB;yCAjKjB,2BAA2B;2CAA3B,2BAA2B;CAiLvC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { IconService } from 'carbon-components-angular';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface FormFlowStepListItem {
|
|
5
|
+
key: string;
|
|
6
|
+
title: string;
|
|
7
|
+
typeName: string;
|
|
8
|
+
isStart: boolean;
|
|
9
|
+
invalid: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** Clickable overview of all steps in the flow, ordered as defined, with the start step first. */
|
|
12
|
+
export declare class FormFlowStepListComponent {
|
|
13
|
+
private readonly iconService;
|
|
14
|
+
steps: FormFlowStepListItem[];
|
|
15
|
+
selectedIndex: number | null;
|
|
16
|
+
readOnly: boolean | null;
|
|
17
|
+
selectEvent: EventEmitter<number>;
|
|
18
|
+
addEvent: EventEmitter<void>;
|
|
19
|
+
protected readonly testIds: {
|
|
20
|
+
readonly saveButton: "formFlowEditorSaveButton";
|
|
21
|
+
readonly backButton: "formFlowEditorBackButton";
|
|
22
|
+
readonly stepList: "formFlowEditorStepList";
|
|
23
|
+
readonly stepListItem: "formFlowEditorStepListItem";
|
|
24
|
+
readonly addStepButton: "formFlowEditorAddStepButton";
|
|
25
|
+
readonly deleteStepButton: "formFlowEditorDeleteStepButton";
|
|
26
|
+
readonly makeStartStepButton: "formFlowEditorMakeStartStepButton";
|
|
27
|
+
readonly stepKeyInput: "formFlowEditorStepKeyInput";
|
|
28
|
+
readonly stepTitleInput: "formFlowEditorStepTitleInput";
|
|
29
|
+
readonly stepTypeDropdown: "formFlowEditorStepTypeDropdown";
|
|
30
|
+
readonly stepPropertyInput: "formFlowEditorStepPropertyInput";
|
|
31
|
+
readonly stepPropertyDropdown: "formFlowEditorStepPropertyDropdown";
|
|
32
|
+
readonly addTransitionButton: "formFlowEditorAddTransitionButton";
|
|
33
|
+
readonly transitionRow: "formFlowEditorTransitionRow";
|
|
34
|
+
readonly addExpressionButton: "formFlowEditorAddExpressionButton";
|
|
35
|
+
readonly expressionInput: "formFlowEditorExpressionInput";
|
|
36
|
+
};
|
|
37
|
+
constructor(iconService: IconService);
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowStepListComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowStepListComponent, "valtimo-form-flow-step-list", never, { "steps": { "alias": "steps"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, { "selectEvent": "selectEvent"; "addEvent": "addEvent"; }, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
export { FormFlowStepListItem };
|
|
42
|
+
//# sourceMappingURL=form-flow-step-list.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-step-list.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-step-list/form-flow-step-list.component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAqC,YAAY,EAAgB,MAAM,eAAe,CAAC;AAG9F,OAAO,EAA2B,WAAW,EAAY,MAAM,2BAA2B,CAAC;;AAG3F,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,kGAAkG;AAClG,qBAQa,yBAAyB;IAUxB,OAAO,CAAC,QAAQ,CAAC,WAAW;IATxB,KAAK,EAAE,oBAAoB,EAAE,CAAM;IACnC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAS;IAEhC,WAAW,uBAA8B;IACzC,QAAQ,qBAA4B;IAErD,SAAS,CAAC,QAAQ,CAAC,OAAO;;;;;;;;;;;;;;;;;MAA6B;gBAE1B,WAAW,EAAE,WAAW;yCAV1C,yBAAyB;2CAAzB,yBAAyB;CAarC;AAED,OAAO,EAAC,oBAAoB,EAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormArray, FormGroup } from '@angular/forms';
|
|
3
|
+
import { IconService, ListItem } from 'carbon-components-angular';
|
|
4
|
+
import { FormFlowEditorFormService } from '../../../../../services/form-flow-editor-form.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Editable list of a step's outgoing transitions. Transitions are evaluated top to bottom — the
|
|
8
|
+
* first entry whose condition holds is taken and a condition-less entry acts as the default — so
|
|
9
|
+
* the rows can be reordered.
|
|
10
|
+
*/
|
|
11
|
+
export declare class FormFlowTransitionListComponent implements OnChanges {
|
|
12
|
+
private readonly formService;
|
|
13
|
+
private readonly iconService;
|
|
14
|
+
transitions: FormArray;
|
|
15
|
+
stepKeys: string[];
|
|
16
|
+
readOnly: boolean | null;
|
|
17
|
+
/** While false the admin is still modelling and empty-target errors stay hidden; a save attempt
|
|
18
|
+
* flips it to reveal them. */
|
|
19
|
+
revealErrors: boolean;
|
|
20
|
+
protected readonly testIds: {
|
|
21
|
+
readonly saveButton: "formFlowEditorSaveButton";
|
|
22
|
+
readonly backButton: "formFlowEditorBackButton";
|
|
23
|
+
readonly stepList: "formFlowEditorStepList";
|
|
24
|
+
readonly stepListItem: "formFlowEditorStepListItem";
|
|
25
|
+
readonly addStepButton: "formFlowEditorAddStepButton";
|
|
26
|
+
readonly deleteStepButton: "formFlowEditorDeleteStepButton";
|
|
27
|
+
readonly makeStartStepButton: "formFlowEditorMakeStartStepButton";
|
|
28
|
+
readonly stepKeyInput: "formFlowEditorStepKeyInput";
|
|
29
|
+
readonly stepTitleInput: "formFlowEditorStepTitleInput";
|
|
30
|
+
readonly stepTypeDropdown: "formFlowEditorStepTypeDropdown";
|
|
31
|
+
readonly stepPropertyInput: "formFlowEditorStepPropertyInput";
|
|
32
|
+
readonly stepPropertyDropdown: "formFlowEditorStepPropertyDropdown";
|
|
33
|
+
readonly addTransitionButton: "formFlowEditorAddTransitionButton";
|
|
34
|
+
readonly transitionRow: "formFlowEditorTransitionRow";
|
|
35
|
+
readonly addExpressionButton: "formFlowEditorAddExpressionButton";
|
|
36
|
+
readonly expressionInput: "formFlowEditorExpressionInput";
|
|
37
|
+
};
|
|
38
|
+
private readonly _rowItems;
|
|
39
|
+
constructor(formService: FormFlowEditorFormService, iconService: IconService);
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
41
|
+
get transitionGroups(): FormGroup[];
|
|
42
|
+
getRowItems(transitionGroup: FormGroup): ListItem[];
|
|
43
|
+
addTransition(): void;
|
|
44
|
+
removeTransition(index: number): void;
|
|
45
|
+
moveTransition(index: number, offset: -1 | 1): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowTransitionListComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowTransitionListComponent, "valtimo-form-flow-transition-list", never, { "transitions": { "alias": "transitions"; "required": false; }; "stepKeys": { "alias": "stepKeys"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "revealErrors": { "alias": "revealErrors"; "required": false; }; }, {}, never, never, true, never>;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=form-flow-transition-list.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-transition-list.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-transition-list/form-flow-transition-list.component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAA4C,SAAS,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AAClG,OAAO,EAAC,SAAS,EAAE,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AAIzE,OAAO,EAIL,WAAW,EAEX,QAAQ,EACT,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAC,yBAAyB,EAAC,MAAM,uDAAuD,CAAC;;AAEhG;;;;GAIG;AACH,qBAiBa,+BAAgC,YAAW,SAAS;IAmB7D,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAnBd,WAAW,EAAG,SAAS,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAM;IACxB,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAS;IACjD;kCAC8B;IACd,YAAY,UAAS;IAErC,SAAS,CAAC,QAAQ,CAAC,OAAO;;;;;;;;;;;;;;;;;MAA6B;IAKvD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAGtB;gBAGe,WAAW,EAAE,yBAAyB,EACtC,WAAW,EAAE,WAAW;IAKpC,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAOhD,IAAW,gBAAgB,IAAI,SAAS,EAAE,CAEzC;IAEM,WAAW,CAAC,eAAe,EAAE,SAAS,GAAG,QAAQ,EAAE;IAYnD,aAAa,IAAI,IAAI;IAKrB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAKrC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI;yCA1D/C,+BAA+B;2CAA/B,+BAA+B;CAmE3C"}
|
package/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-ui-editor-tab.component.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { EditorModel } from '@valtimo/components';
|
|
6
|
+
import { FormManagementService } from '@valtimo/form-management';
|
|
7
|
+
import { FormFlowRegistryDto } from '@valtimo/shared';
|
|
8
|
+
import { FormFlowService } from '../../../../services';
|
|
9
|
+
import { FormFlowComponentService } from '../../../../services/form-flow-component.service';
|
|
10
|
+
import { FormFlowEditorFormService } from '../../../../services/form-flow-editor-form.service';
|
|
11
|
+
import { FormFlowStepListItem } from './form-flow-step-list/form-flow-step-list.component';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* The visual form flow editor. Renders the definition as a step list with a detail panel and emits
|
|
15
|
+
* the modified definition as JSON through the same contract as the JSON editor tab, so the
|
|
16
|
+
* surrounding editor page treats both tabs identically.
|
|
17
|
+
*/
|
|
18
|
+
export declare class FormFlowUiEditorTabComponent implements OnChanges, OnDestroy {
|
|
19
|
+
private readonly formService;
|
|
20
|
+
private readonly formFlowService;
|
|
21
|
+
private readonly formFlowComponentService;
|
|
22
|
+
private readonly formManagementService;
|
|
23
|
+
private readonly route;
|
|
24
|
+
private readonly translateService;
|
|
25
|
+
model: EditorModel | null;
|
|
26
|
+
readOnly: boolean | null;
|
|
27
|
+
/** The parent's save-attempt state: while false the admin is still modelling and no validation
|
|
28
|
+
* errors are shown; a save attempt flips it and reveals them. */
|
|
29
|
+
revealErrors: boolean;
|
|
30
|
+
validEvent: EventEmitter<boolean>;
|
|
31
|
+
valueChangeEvent: EventEmitter<string>;
|
|
32
|
+
form: FormGroup | null;
|
|
33
|
+
registry: FormFlowRegistryDto | null;
|
|
34
|
+
readonly $selectedIndex: import("@angular/core").WritableSignal<number>;
|
|
35
|
+
readonly $stepListItems: import("@angular/core").WritableSignal<FormFlowStepListItem[]>;
|
|
36
|
+
readonly $stepKeys: import("@angular/core").WritableSignal<string[]>;
|
|
37
|
+
readonly $formOptions: import("@angular/core").WritableSignal<string[]>;
|
|
38
|
+
readonly $componentOptions: import("@angular/core").WritableSignal<string[]>;
|
|
39
|
+
readonly $definitionErrors: import("@angular/core").WritableSignal<string[]>;
|
|
40
|
+
readonly $parseFailed: import("@angular/core").WritableSignal<boolean>;
|
|
41
|
+
protected readonly testIds: {
|
|
42
|
+
readonly saveButton: "formFlowEditorSaveButton";
|
|
43
|
+
readonly backButton: "formFlowEditorBackButton";
|
|
44
|
+
readonly stepList: "formFlowEditorStepList";
|
|
45
|
+
readonly stepListItem: "formFlowEditorStepListItem";
|
|
46
|
+
readonly addStepButton: "formFlowEditorAddStepButton";
|
|
47
|
+
readonly deleteStepButton: "formFlowEditorDeleteStepButton";
|
|
48
|
+
readonly makeStartStepButton: "formFlowEditorMakeStartStepButton";
|
|
49
|
+
readonly stepKeyInput: "formFlowEditorStepKeyInput";
|
|
50
|
+
readonly stepTitleInput: "formFlowEditorStepTitleInput";
|
|
51
|
+
readonly stepTypeDropdown: "formFlowEditorStepTypeDropdown";
|
|
52
|
+
readonly stepPropertyInput: "formFlowEditorStepPropertyInput";
|
|
53
|
+
readonly stepPropertyDropdown: "formFlowEditorStepPropertyDropdown";
|
|
54
|
+
readonly addTransitionButton: "formFlowEditorAddTransitionButton";
|
|
55
|
+
readonly transitionRow: "formFlowEditorTransitionRow";
|
|
56
|
+
readonly addExpressionButton: "formFlowEditorAddExpressionButton";
|
|
57
|
+
readonly expressionInput: "formFlowEditorExpressionInput";
|
|
58
|
+
};
|
|
59
|
+
private _definition;
|
|
60
|
+
private _definitionKey;
|
|
61
|
+
private _previousStepKeys;
|
|
62
|
+
private _formSubscriptions;
|
|
63
|
+
private readonly _subscriptions;
|
|
64
|
+
constructor(formService: FormFlowEditorFormService, formFlowService: FormFlowService, formFlowComponentService: FormFlowComponentService, formManagementService: FormManagementService, route: ActivatedRoute, translateService: TranslateService);
|
|
65
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
66
|
+
ngOnDestroy(): void;
|
|
67
|
+
get selectedStepGroup(): FormGroup | null;
|
|
68
|
+
isSelectedKeyDuplicate(): boolean;
|
|
69
|
+
isSelectedStepStart(): boolean;
|
|
70
|
+
onMakeStartStep(): void;
|
|
71
|
+
onSelectStep(index: number): void;
|
|
72
|
+
onAddStep(): void;
|
|
73
|
+
onDeleteStep(): void;
|
|
74
|
+
private get stepsArray();
|
|
75
|
+
private parseModel;
|
|
76
|
+
private buildForm;
|
|
77
|
+
private selectInitialStep;
|
|
78
|
+
private applyReadOnly;
|
|
79
|
+
private trackStepKeyRenames;
|
|
80
|
+
private currentStepKeys;
|
|
81
|
+
private refreshDerivedState;
|
|
82
|
+
private loadFormOptions;
|
|
83
|
+
private arraysEqual;
|
|
84
|
+
private collectDefinitionErrors;
|
|
85
|
+
private emitState;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowUiEditorTabComponent, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowUiEditorTabComponent, "valtimo-form-flow-ui-editor-tab", never, { "model": { "alias": "model"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "revealErrors": { "alias": "revealErrors"; "required": false; }; }, { "validEvent": "validEvent"; "valueChangeEvent": "valueChangeEvent"; }, never, never, true, never>;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=form-flow-ui-editor-tab.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-ui-editor-tab.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/tabs/form-flow-ui-editor-tab/form-flow-ui-editor-tab.component.ts"],"names":[],"mappings":"AAiBA,OAAO,EA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-
{"version":3,"file":"new-form-flow-modal.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form-flow-management/src/lib/components/new-form-flow-modal/new-form-flow-modal.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqC,YAAY,EAAgB,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,WAAW,EAAkC,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;;AAKhD,qBAca,yBAAyB;IAYxB,OAAO,CAAC,QAAQ,CAAC,EAAE;IAXtB,IAAI,UAAS;IACZ,UAAU,mCAAiD;IAE9D,IAAI;;OAER;IAEH,IAAW,GAAG,6DAEb;gBAE4B,EAAE,EAAE,WAAW;IAErC,QAAQ,IAAI,IAAI;IAKhB,SAAS,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"new-form-flow-modal.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form-flow-management/src/lib/components/new-form-flow-modal/new-form-flow-modal.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqC,YAAY,EAAgB,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,WAAW,EAAkC,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;;AAKhD,qBAca,yBAAyB;IAYxB,OAAO,CAAC,QAAQ,CAAC,EAAE;IAXtB,IAAI,UAAS;IACZ,UAAU,mCAAiD;IAE9D,IAAI;;OAER;IAEH,IAAW,GAAG,6DAEb;gBAE4B,EAAE,EAAE,WAAW;IAErC,QAAQ,IAAI,IAAI;IAKhB,SAAS,IAAI,IAAI;IAsBxB,OAAO,CAAC,SAAS;yCAzCN,yBAAyB;2CAAzB,yBAAyB;CA8CrC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const FORM_FLOW_EDITOR_TEST_IDS: {
|
|
2
|
+
readonly saveButton: "formFlowEditorSaveButton";
|
|
3
|
+
readonly backButton: "formFlowEditorBackButton";
|
|
4
|
+
readonly stepList: "formFlowEditorStepList";
|
|
5
|
+
readonly stepListItem: "formFlowEditorStepListItem";
|
|
6
|
+
readonly addStepButton: "formFlowEditorAddStepButton";
|
|
7
|
+
readonly deleteStepButton: "formFlowEditorDeleteStepButton";
|
|
8
|
+
readonly makeStartStepButton: "formFlowEditorMakeStartStepButton";
|
|
9
|
+
readonly stepKeyInput: "formFlowEditorStepKeyInput";
|
|
10
|
+
readonly stepTitleInput: "formFlowEditorStepTitleInput";
|
|
11
|
+
readonly stepTypeDropdown: "formFlowEditorStepTypeDropdown";
|
|
12
|
+
readonly stepPropertyInput: "formFlowEditorStepPropertyInput";
|
|
13
|
+
readonly stepPropertyDropdown: "formFlowEditorStepPropertyDropdown";
|
|
14
|
+
readonly addTransitionButton: "formFlowEditorAddTransitionButton";
|
|
15
|
+
readonly transitionRow: "formFlowEditorTransitionRow";
|
|
16
|
+
readonly addExpressionButton: "formFlowEditorAddExpressionButton";
|
|
17
|
+
readonly expressionInput: "formFlowEditorExpressionInput";
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=form-flow-editor.test-ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-editor.test-ids.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/constants/form-flow-editor.test-ids.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;CAiB5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/constants/index.ts"],"names":[],"mappings":"AAgBA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { FormFlowCustomComponentDefinition } from '../models';
|
|
3
|
+
declare const FORM_FLOW_COMPONENT_TOKEN: InjectionToken<FormFlowCustomComponentDefinition[]>;
|
|
4
|
+
export { FORM_FLOW_COMPONENT_TOKEN };
|
|
5
|
+
//# sourceMappingURL=injection-tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injection-tokens.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/constants/injection-tokens.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAC,iCAAiC,EAAC,MAAM,WAAW,CAAC;AAE5D,QAAA,MAAM,yBAAyB,qDAG9B,CAAC;AAEF,OAAO,EAAC,yBAAyB,EAAC,CAAC"}
|
|
@@ -8,9 +8,11 @@ import * as i6 from "@angular/forms";
|
|
|
8
8
|
import * as i7 from "@ngx-translate/core";
|
|
9
9
|
import * as i8 from "@valtimo/components";
|
|
10
10
|
import * as i9 from "./components/new-form-flow-modal/new-form-flow-modal.component";
|
|
11
|
+
import * as i10 from "./components/editor/tabs/form-flow-json-editor-tab/form-flow-json-editor-tab.component";
|
|
12
|
+
import * as i11 from "./components/editor/tabs/form-flow-ui-editor-tab/form-flow-ui-editor-tab.component";
|
|
11
13
|
export declare class FormFlowManagementModule {
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowManagementModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormFlowManagementModule, [typeof i1.FormFlowOverviewComponent, typeof i2.FormFlowEditorComponent, typeof i3.DeleteFormFlowModalComponent], [typeof i4.CommonModule, typeof i5.ButtonModule, typeof i6.FormsModule, typeof i5.ModalModule, typeof i7.TranslateModule, typeof i6.ReactiveFormsModule, typeof i5.InputModule, typeof i5.IconModule, typeof i8.ConfirmationModalModule, typeof i8.EditorModule, typeof i8.RenderInPageHeaderDirective, typeof i5.LoadingModule, typeof i5.IconModule, typeof i8.OverflowMenuComponent, typeof i8.OverflowMenuOptionComponent, typeof i8.OverflowMenuTriggerComponent, typeof i5.NotificationModule, typeof i8.CarbonListModule, typeof i5.DropdownModule, typeof i8.ConfirmationModalModule, typeof i9.NewFormFlowModalComponent], never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormFlowManagementModule, [typeof i1.FormFlowOverviewComponent, typeof i2.FormFlowEditorComponent, typeof i3.DeleteFormFlowModalComponent], [typeof i4.CommonModule, typeof i5.ButtonModule, typeof i6.FormsModule, typeof i5.ModalModule, typeof i7.TranslateModule, typeof i6.ReactiveFormsModule, typeof i5.InputModule, typeof i5.IconModule, typeof i8.ConfirmationModalModule, typeof i8.EditorModule, typeof i8.RenderInPageHeaderDirective, typeof i5.LoadingModule, typeof i5.IconModule, typeof i8.OverflowMenuComponent, typeof i8.OverflowMenuOptionComponent, typeof i8.OverflowMenuTriggerComponent, typeof i5.NotificationModule, typeof i8.CarbonListModule, typeof i5.DropdownModule, typeof i8.ConfirmationModalModule, typeof i9.NewFormFlowModalComponent, typeof i5.TabsModule, typeof i10.FormFlowJsonEditorTabComponent, typeof i11.FormFlowUiEditorTabComponent], never>;
|
|
14
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormFlowManagementModule>;
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=form-flow-management.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-flow-management.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/form-flow-management/src/lib/form-flow-management.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-flow-management.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/form-flow-management/src/lib/form-flow-management.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AA8CA,qBA6Ba,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAAG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter, Type } from '@angular/core';
|
|
2
|
+
import { FormioSubmission } from '@valtimo/components';
|
|
3
|
+
interface ChangeEvent {
|
|
4
|
+
data: object;
|
|
5
|
+
}
|
|
6
|
+
interface FormFlowCustomComponent {
|
|
7
|
+
formFlowInstanceId: string;
|
|
8
|
+
componentId?: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
changeEvent: EventEmitter<ChangeEvent>;
|
|
11
|
+
submitEvent: EventEmitter<FormioSubmission>;
|
|
12
|
+
}
|
|
13
|
+
interface FormFlowCustomComponentDefinition {
|
|
14
|
+
id: string;
|
|
15
|
+
component: Type<FormFlowCustomComponent>;
|
|
16
|
+
}
|
|
17
|
+
export { ChangeEvent, FormFlowCustomComponent, FormFlowCustomComponentDefinition };
|
|
18
|
+
//# sourceMappingURL=form-flow-custom-component.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-flow-custom-component.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/models/form-flow-custom-component.model.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,YAAY,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,uBAAuB;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACvC,WAAW,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;CAC7C;AAED,UAAU,iCAAiC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC;CAC1C;AAED,OAAO,EAAC,WAAW,EAAE,uBAAuB,EAAE,iCAAiC,EAAC,CAAC"}
|