@valtimo/form-flow-management 12.0.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/README.md +33 -0
- package/esm2022/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.mjs +39 -0
- package/esm2022/lib/components/editor/form-flow-editor.component.mjs +160 -0
- package/esm2022/lib/components/editor/formflow.schema.json +79 -0
- package/esm2022/lib/components/new-form-flow-modal/new-form-flow-modal.component.mjs +67 -0
- package/esm2022/lib/components/overview/form-flow-overview.component.mjs +80 -0
- package/esm2022/lib/form-flow-management-routing.module.mjs +55 -0
- package/esm2022/lib/form-flow-management.module.mjs +101 -0
- package/esm2022/lib/models/form-flow.model.mjs +17 -0
- package/esm2022/lib/models/index.mjs +17 -0
- package/esm2022/lib/services/form-flow-download.service.mjs +40 -0
- package/esm2022/lib/services/form-flow.service.mjs +66 -0
- package/esm2022/lib/services/index.mjs +17 -0
- package/esm2022/public-api.mjs +22 -0
- package/esm2022/valtimo-form-flow-management.mjs +5 -0
- package/fesm2022/valtimo-form-flow-management.mjs +739 -0
- package/fesm2022/valtimo-form-flow-management.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.d.ts +12 -0
- package/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.d.ts.map +1 -0
- package/lib/components/editor/form-flow-editor.component.d.ts +130 -0
- package/lib/components/editor/form-flow-editor.component.d.ts.map +1 -0
- package/lib/components/new-form-flow-modal/new-form-flow-modal.component.d.ts +20 -0
- package/lib/components/new-form-flow-modal/new-form-flow-modal.component.d.ts.map +1 -0
- package/lib/components/overview/form-flow-overview.component.d.ts +24 -0
- package/lib/components/overview/form-flow-overview.component.d.ts.map +1 -0
- package/lib/form-flow-management-routing.module.d.ts +9 -0
- package/lib/form-flow-management-routing.module.d.ts.map +1 -0
- package/lib/form-flow-management.module.d.ts +17 -0
- package/lib/form-flow-management.module.d.ts.map +1 -0
- package/lib/models/form-flow.model.d.ts +47 -0
- package/lib/models/form-flow.model.d.ts.map +1 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/services/form-flow-download.service.d.ts +11 -0
- package/lib/services/form-flow-download.service.d.ts.map +1 -0
- package/lib/services/form-flow.service.d.ts +23 -0
- package/lib/services/form-flow.service.d.ts.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/package.json +25 -0
- package/public-api.d.ts +4 -0
- package/public-api.d.ts.map +1 -0
- package/valtimo-form-flow-management.d.ts.map +1 -0
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject, tap, switchMap, take, catchError, of, finalize, combineLatest, filter, map, startWith } from 'rxjs';
|
|
4
|
+
import * as i1 from '@valtimo/config';
|
|
5
|
+
import { ROLE_ADMIN } from '@valtimo/config';
|
|
6
|
+
import * as i2 from '@angular/common/http';
|
|
7
|
+
import * as i3 from '@angular/common';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
import * as i5 from '@ngx-translate/core';
|
|
10
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
11
|
+
import * as i3$1 from '@valtimo/components';
|
|
12
|
+
import { CARBON_CONSTANTS, ViewType, CarbonListComponent, ConfirmationModalModule, EditorModule, RenderInPageHeaderDirectiveModule, CarbonListModule } from '@valtimo/components';
|
|
13
|
+
import * as i2$1 from '@angular/router';
|
|
14
|
+
import { RouterModule } from '@angular/router';
|
|
15
|
+
import { AuthGuardService } from '@valtimo/security';
|
|
16
|
+
import * as i4 from 'carbon-components-angular';
|
|
17
|
+
import { NotificationService, ButtonModule, ModalModule, InputModule, IconModule, LoadingModule, DialogModule, NotificationModule, DropdownModule } from 'carbon-components-angular';
|
|
18
|
+
import * as i1$1 from '@angular/forms';
|
|
19
|
+
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
23
|
+
*
|
|
24
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
25
|
+
* you may not use this file except in compliance with the License.
|
|
26
|
+
* You may obtain a copy of the License at
|
|
27
|
+
*
|
|
28
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
29
|
+
*
|
|
30
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
31
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
32
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
33
|
+
* See the License for the specific language governing permissions and
|
|
34
|
+
* limitations under the License.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/*
|
|
38
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
39
|
+
*
|
|
40
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
41
|
+
* you may not use this file except in compliance with the License.
|
|
42
|
+
* You may obtain a copy of the License at
|
|
43
|
+
*
|
|
44
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
45
|
+
*
|
|
46
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
47
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
48
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
49
|
+
* See the License for the specific language governing permissions and
|
|
50
|
+
* limitations under the License.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
class FormFlowService {
|
|
54
|
+
get formFlowDefinitions$() {
|
|
55
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/form-flow/definition`);
|
|
56
|
+
}
|
|
57
|
+
constructor(configService, http) {
|
|
58
|
+
this.configService = configService;
|
|
59
|
+
this.http = http;
|
|
60
|
+
this.formFlows$ = new BehaviorSubject([]);
|
|
61
|
+
this.loading$ = new BehaviorSubject(false);
|
|
62
|
+
this.valtimoEndpointUri = `${this.configService.config.valtimoApi.endpointUri}management/`;
|
|
63
|
+
}
|
|
64
|
+
addFormFlow(definition) {
|
|
65
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/form-flow/definition`, definition);
|
|
66
|
+
}
|
|
67
|
+
deleteFormFlowDefinition(key) {
|
|
68
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/form-flow/definition/${key}`);
|
|
69
|
+
}
|
|
70
|
+
dispatchAction(actionResult) {
|
|
71
|
+
actionResult
|
|
72
|
+
.pipe(tap(() => {
|
|
73
|
+
this.loading$.next(true);
|
|
74
|
+
}), switchMap(() => this.formFlowDefinitions$), take(1), catchError(error => of(error)))
|
|
75
|
+
.subscribe({
|
|
76
|
+
next: (formFlows) => {
|
|
77
|
+
this.formFlows$.next(formFlows.content);
|
|
78
|
+
this.loading$.next(false);
|
|
79
|
+
},
|
|
80
|
+
error: error => {
|
|
81
|
+
console.error(error);
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
loadFormFlows() {
|
|
86
|
+
this.formFlowDefinitions$
|
|
87
|
+
.pipe(tap(() => {
|
|
88
|
+
this.loading$.next(true);
|
|
89
|
+
}), take(1))
|
|
90
|
+
.subscribe({
|
|
91
|
+
next: (items) => {
|
|
92
|
+
this.formFlows$.next(items.content);
|
|
93
|
+
this.loading$.next(false);
|
|
94
|
+
},
|
|
95
|
+
error: error => {
|
|
96
|
+
console.error(error);
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
getFormFlowDefinition(id) {
|
|
101
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/form-flow/definition/${id.key}/${id.version}`);
|
|
102
|
+
}
|
|
103
|
+
updateFormFlowDefinition(key, updatedDefinition) {
|
|
104
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/form-flow/definition/${key}`, updatedDefinition);
|
|
105
|
+
}
|
|
106
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
107
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowService, providedIn: 'root' }); }
|
|
108
|
+
}
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowService, decorators: [{
|
|
110
|
+
type: Injectable,
|
|
111
|
+
args: [{ providedIn: 'root' }]
|
|
112
|
+
}], ctorParameters: () => [{ type: i1.ConfigService }, { type: i2.HttpClient }] });
|
|
113
|
+
|
|
114
|
+
/*
|
|
115
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
116
|
+
*
|
|
117
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
118
|
+
* you may not use this file except in compliance with the License.
|
|
119
|
+
* You may obtain a copy of the License at
|
|
120
|
+
*
|
|
121
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
122
|
+
*
|
|
123
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
124
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
125
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
126
|
+
* See the License for the specific language governing permissions and
|
|
127
|
+
* limitations under the License.
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
/*
|
|
131
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
132
|
+
*
|
|
133
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
134
|
+
* you may not use this file except in compliance with the License.
|
|
135
|
+
* You may obtain a copy of the License at
|
|
136
|
+
*
|
|
137
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
138
|
+
*
|
|
139
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
140
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
141
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
142
|
+
* See the License for the specific language governing permissions and
|
|
143
|
+
* limitations under the License.
|
|
144
|
+
*/
|
|
145
|
+
class NewFormFlowModalComponent {
|
|
146
|
+
get key() {
|
|
147
|
+
return this.form?.get('key');
|
|
148
|
+
}
|
|
149
|
+
constructor(fb) {
|
|
150
|
+
this.fb = fb;
|
|
151
|
+
this.open = false;
|
|
152
|
+
this.closeEvent = new EventEmitter();
|
|
153
|
+
this.form = this.fb.group({
|
|
154
|
+
key: this.fb.control('', Validators.required),
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
onCancel() {
|
|
158
|
+
this.closeEvent.emit(null);
|
|
159
|
+
this.resetForm();
|
|
160
|
+
}
|
|
161
|
+
onConfirm() {
|
|
162
|
+
if (!this.key) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
this.closeEvent.emit({
|
|
166
|
+
key: this.key.value,
|
|
167
|
+
version: 1,
|
|
168
|
+
startStep: 'start-step',
|
|
169
|
+
steps: [],
|
|
170
|
+
});
|
|
171
|
+
this.resetForm();
|
|
172
|
+
}
|
|
173
|
+
resetForm() {
|
|
174
|
+
setTimeout(() => {
|
|
175
|
+
this.form.reset();
|
|
176
|
+
}, CARBON_CONSTANTS.modalAnimationMs);
|
|
177
|
+
}
|
|
178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NewFormFlowModalComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
179
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: NewFormFlowModalComponent, selector: "valtimo-new-form-flow-modal", inputs: { open: "open" }, outputs: { closeEvent: "closeEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-modal [open]=\"open\" showFooter=\"true\" [title]=\"'formFlow.add' | translate\" valtimoCdsModal>\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"onCancel()\">\n <h3 cdsModalHeaderHeading>\n {{ 'formFlow.add' | translate }}\n </h3>\n </cds-modal-header>\n\n <section cdsModalContent>\n <form [formGroup]=\"form\">\n <cds-label [invalid]=\"key.dirty && key.invalid\">\n {{ 'formFlow.key' | translate }}\n\n <input\n formControlName=\"key\"\n cdsText\n placeholder=\"{{ 'formFlow.key' | translate }}\"\n [attr.modal-primary-focus]=\"true\"\n [invalid]=\"key.dirty && key.invalid\"\n />\n </cds-label>\n </form>\n </section>\n\n <cds-modal-footer>\n <button cdsButton=\"ghost\" (click)=\"onCancel()\">\n {{ 'interface.cancel' | translate }}\n </button>\n\n <button [disabled]=\"this.form.invalid\" (click)=\"onConfirm()\" cdsButton=\"primary\">\n {{ 'interface.create' | translate }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n", dependencies: [{ kind: "directive", type: i4.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i4.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i4.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i4.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i4.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i4.ModalHeaderHeading, selector: "[cdsModalHeaderHeading], [ibmModalHeaderHeading]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i4.Label, selector: "cds-label, ibm-label", inputs: ["labelInputID", "disabled", "skeleton", "helperText", "invalidText", "invalid", "warn", "warnText", "ariaLabel"] }, { kind: "directive", type: i4.TextInput, selector: "[cdsText], [ibmText]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
180
|
+
}
|
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NewFormFlowModalComponent, decorators: [{
|
|
182
|
+
type: Component,
|
|
183
|
+
args: [{ selector: 'valtimo-new-form-flow-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-modal [open]=\"open\" showFooter=\"true\" [title]=\"'formFlow.add' | translate\" valtimoCdsModal>\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"onCancel()\">\n <h3 cdsModalHeaderHeading>\n {{ 'formFlow.add' | translate }}\n </h3>\n </cds-modal-header>\n\n <section cdsModalContent>\n <form [formGroup]=\"form\">\n <cds-label [invalid]=\"key.dirty && key.invalid\">\n {{ 'formFlow.key' | translate }}\n\n <input\n formControlName=\"key\"\n cdsText\n placeholder=\"{{ 'formFlow.key' | translate }}\"\n [attr.modal-primary-focus]=\"true\"\n [invalid]=\"key.dirty && key.invalid\"\n />\n </cds-label>\n </form>\n </section>\n\n <cds-modal-footer>\n <button cdsButton=\"ghost\" (click)=\"onCancel()\">\n {{ 'interface.cancel' | translate }}\n </button>\n\n <button [disabled]=\"this.form.invalid\" (click)=\"onConfirm()\" cdsButton=\"primary\">\n {{ 'interface.create' | translate }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n" }]
|
|
184
|
+
}], ctorParameters: () => [{ type: i1$1.FormBuilder }], propDecorators: { open: [{
|
|
185
|
+
type: Input
|
|
186
|
+
}], closeEvent: [{
|
|
187
|
+
type: Output
|
|
188
|
+
}] } });
|
|
189
|
+
|
|
190
|
+
/*
|
|
191
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
192
|
+
*
|
|
193
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
194
|
+
* you may not use this file except in compliance with the License.
|
|
195
|
+
* You may obtain a copy of the License at
|
|
196
|
+
*
|
|
197
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
198
|
+
*
|
|
199
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
201
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
* See the License for the specific language governing permissions and
|
|
203
|
+
* limitations under the License.
|
|
204
|
+
*/
|
|
205
|
+
class FormFlowOverviewComponent {
|
|
206
|
+
constructor(formFlowService, router) {
|
|
207
|
+
this.formFlowService = formFlowService;
|
|
208
|
+
this.router = router;
|
|
209
|
+
this.fields = [
|
|
210
|
+
{
|
|
211
|
+
viewType: ViewType.TEXT,
|
|
212
|
+
key: 'key',
|
|
213
|
+
label: 'formFlow.key',
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
viewType: ViewType.TEXT,
|
|
217
|
+
key: 'versions.0',
|
|
218
|
+
label: 'formFlow.version',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
viewType: ViewType.BOOLEAN,
|
|
222
|
+
key: 'readOnly',
|
|
223
|
+
label: 'formFlow.readOnly',
|
|
224
|
+
},
|
|
225
|
+
];
|
|
226
|
+
this.formFlowDefinitions$ = this.formFlowService.formFlows$;
|
|
227
|
+
this.loading$ = this.formFlowService.loading$;
|
|
228
|
+
this.showAddModal$ = new BehaviorSubject(false);
|
|
229
|
+
}
|
|
230
|
+
ngOnInit() {
|
|
231
|
+
this.formFlowService.loadFormFlows();
|
|
232
|
+
}
|
|
233
|
+
openAddModal() {
|
|
234
|
+
this.showAddModal$.next(true);
|
|
235
|
+
}
|
|
236
|
+
onAdd(data) {
|
|
237
|
+
this.showAddModal$.next(false);
|
|
238
|
+
if (!data) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
this.formFlowService.dispatchAction(this.formFlowService.addFormFlow(data).pipe(finalize(() => {
|
|
242
|
+
this.showAddModal$.next(false);
|
|
243
|
+
})));
|
|
244
|
+
}
|
|
245
|
+
onRowClick(formFlow) {
|
|
246
|
+
this.router.navigate([`/form-flow-management/${formFlow.key}`]);
|
|
247
|
+
}
|
|
248
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowOverviewComponent, deps: [{ token: FormFlowService }, { token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
249
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: FormFlowOverviewComponent, selector: "ng-component", viewQueries: [{ propertyName: "carbonList", first: true, predicate: CarbonListComponent, descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-carbon-list\n [header]=\"false\"\n [items]=\"formFlowDefinitions$ | async\"\n [fields]=\"fields\"\n [loading]=\"loading$ | async\"\n (rowClicked)=\"onRowClick($event)\"\n>\n <ng-container header> {{ 'formFlow.title' | translate }} </ng-container>\n\n <div carbonToolbarContent>\n <ng-container [ngTemplateOutlet]=\"addFormFlowButton\"></ng-container>\n </div>\n\n <valtimo-no-results\n [action]=\"addFormFlowButton\"\n description=\"{{ 'formFlow.noResults.description' | translate }}\"\n title=\"{{ 'formFlow.noResults.title' | translate }}\"\n ></valtimo-no-results>\n</valtimo-carbon-list>\n\n<valtimo-new-form-flow-modal\n [open]=\"showAddModal$ | async\"\n (closeEvent)=\"onAdd($event)\"\n></valtimo-new-form-flow-modal>\n\n<ng-template #addFormFlowButton>\n <button cdsButton=\"primary\" (click)=\"openAddModal()\">\n {{ 'formFlow.add' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i4.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i3$1.CarbonListComponent, selector: "valtimo-carbon-list", inputs: ["items", "fields", "tableTranslations", "paginatorConfig", "pagination", "loading", "actions", "actionItems", "header", "hideColumnHeader", "initialSortState", "isSearchable", "enableSingleSelection", "lastColumnTemplate", "paginationIdentifier", "showSelectionColumn", "striped", "hideToolbar", "lockedTooltipTranslationKey", "movingRowsEnabled"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged", "moveRow", "itemsReordered"] }, { kind: "component", type: i3$1.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title"] }, { kind: "component", type: NewFormFlowModalComponent, selector: "valtimo-new-form-flow-modal", inputs: ["open"], outputs: ["closeEvent"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
250
|
+
}
|
|
251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowOverviewComponent, decorators: [{
|
|
252
|
+
type: Component,
|
|
253
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-carbon-list\n [header]=\"false\"\n [items]=\"formFlowDefinitions$ | async\"\n [fields]=\"fields\"\n [loading]=\"loading$ | async\"\n (rowClicked)=\"onRowClick($event)\"\n>\n <ng-container header> {{ 'formFlow.title' | translate }} </ng-container>\n\n <div carbonToolbarContent>\n <ng-container [ngTemplateOutlet]=\"addFormFlowButton\"></ng-container>\n </div>\n\n <valtimo-no-results\n [action]=\"addFormFlowButton\"\n description=\"{{ 'formFlow.noResults.description' | translate }}\"\n title=\"{{ 'formFlow.noResults.title' | translate }}\"\n ></valtimo-no-results>\n</valtimo-carbon-list>\n\n<valtimo-new-form-flow-modal\n [open]=\"showAddModal$ | async\"\n (closeEvent)=\"onAdd($event)\"\n></valtimo-new-form-flow-modal>\n\n<ng-template #addFormFlowButton>\n <button cdsButton=\"primary\" (click)=\"openAddModal()\">\n {{ 'formFlow.add' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n</ng-template>\n" }]
|
|
254
|
+
}], ctorParameters: () => [{ type: FormFlowService }, { type: i2$1.Router }], propDecorators: { carbonList: [{
|
|
255
|
+
type: ViewChild,
|
|
256
|
+
args: [CarbonListComponent]
|
|
257
|
+
}] } });
|
|
258
|
+
|
|
259
|
+
var $schema = "http://json-schema.org/draft-07/schema#";
|
|
260
|
+
var $id = "formflow.schema";
|
|
261
|
+
var title = "Form flow definition";
|
|
262
|
+
var description = "Representation of a form flow definition";
|
|
263
|
+
var type = "object";
|
|
264
|
+
var properties = {
|
|
265
|
+
startStep: {
|
|
266
|
+
type: "string",
|
|
267
|
+
description: "This must contain the key of the first step of the form flow"
|
|
268
|
+
},
|
|
269
|
+
steps: {
|
|
270
|
+
type: "array",
|
|
271
|
+
description: "This array should contain all the possible steps of the form flow",
|
|
272
|
+
items: {
|
|
273
|
+
type: "object",
|
|
274
|
+
properties: {
|
|
275
|
+
key: {
|
|
276
|
+
type: "string",
|
|
277
|
+
description: "The identifying human readable key of the step"
|
|
278
|
+
},
|
|
279
|
+
type: {
|
|
280
|
+
type: "object",
|
|
281
|
+
description: "The type of form that should be displayed",
|
|
282
|
+
properties: {
|
|
283
|
+
name: {
|
|
284
|
+
type: "string",
|
|
285
|
+
description: "This defines the type of the step, for instance: 'form'"
|
|
286
|
+
},
|
|
287
|
+
properties: {
|
|
288
|
+
type: "object",
|
|
289
|
+
description: "This object holds additional properties for the specified type"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
required: [
|
|
293
|
+
"name",
|
|
294
|
+
"properties"
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
onOpen: {
|
|
298
|
+
type: "array",
|
|
299
|
+
description: "An array of expressions which are executed in order when opening the step",
|
|
300
|
+
items: {
|
|
301
|
+
type: "string",
|
|
302
|
+
description: "An expression that is executed when opening the step"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
onComplete: {
|
|
306
|
+
type: "array",
|
|
307
|
+
description: "An array of expressions which are executed in order when completing the step",
|
|
308
|
+
items: {
|
|
309
|
+
type: "string",
|
|
310
|
+
description: "An expression that is executed when completing the step"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
nextSteps: {
|
|
314
|
+
type: "array",
|
|
315
|
+
description: "The possible next steps. A condition must be added on all steps but one. The step without a condition is the default step that will be used when all conditions fail",
|
|
316
|
+
items: {
|
|
317
|
+
type: "object",
|
|
318
|
+
properties: {
|
|
319
|
+
step: {
|
|
320
|
+
type: "string",
|
|
321
|
+
title: "The key of the next step. This should match one of the keys in the steps array"
|
|
322
|
+
},
|
|
323
|
+
condition: {
|
|
324
|
+
type: [
|
|
325
|
+
"string",
|
|
326
|
+
"null"
|
|
327
|
+
],
|
|
328
|
+
title: "This should contain an expression telling what condition should be met to go to this next step. If there is no condition this is the default next step."
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
required: [
|
|
332
|
+
"step"
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
required: [
|
|
338
|
+
"key",
|
|
339
|
+
"type"
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
minItems: 1,
|
|
343
|
+
uniqueItems: true
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
var required = [
|
|
347
|
+
"startStep",
|
|
348
|
+
"steps"
|
|
349
|
+
];
|
|
350
|
+
var formFlowSchemaJson = {
|
|
351
|
+
$schema: $schema,
|
|
352
|
+
$id: $id,
|
|
353
|
+
title: title,
|
|
354
|
+
description: description,
|
|
355
|
+
type: type,
|
|
356
|
+
properties: properties,
|
|
357
|
+
required: required
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
/*
|
|
361
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
362
|
+
*
|
|
363
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
364
|
+
* you may not use this file except in compliance with the License.
|
|
365
|
+
* You may obtain a copy of the License at
|
|
366
|
+
*
|
|
367
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
368
|
+
*
|
|
369
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
370
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
371
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
372
|
+
* See the License for the specific language governing permissions and
|
|
373
|
+
* limitations under the License.
|
|
374
|
+
*/
|
|
375
|
+
class FormFlowDownloadService {
|
|
376
|
+
constructor(formFlowService) {
|
|
377
|
+
this.formFlowService = formFlowService;
|
|
378
|
+
}
|
|
379
|
+
downloadJson(json, formFlowDefinitionId) {
|
|
380
|
+
const sJson = JSON.stringify(json, null, 2);
|
|
381
|
+
const element = document.createElement('a');
|
|
382
|
+
element.setAttribute('href', 'data:text/json;charset=UTF-8,' + encodeURIComponent(sJson));
|
|
383
|
+
element.setAttribute('download', `${formFlowDefinitionId.key}-${formFlowDefinitionId.version}.formflow.json`);
|
|
384
|
+
element.style.display = 'none';
|
|
385
|
+
document.body.appendChild(element);
|
|
386
|
+
element.click(); // simulate click
|
|
387
|
+
document.body.removeChild(element);
|
|
388
|
+
}
|
|
389
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowDownloadService, deps: [{ token: FormFlowService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
390
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowDownloadService, providedIn: 'root' }); }
|
|
391
|
+
}
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowDownloadService, decorators: [{
|
|
393
|
+
type: Injectable,
|
|
394
|
+
args: [{ providedIn: 'root' }]
|
|
395
|
+
}], ctorParameters: () => [{ type: FormFlowService }] });
|
|
396
|
+
|
|
397
|
+
/*
|
|
398
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
399
|
+
*
|
|
400
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
401
|
+
* you may not use this file except in compliance with the License.
|
|
402
|
+
* You may obtain a copy of the License at
|
|
403
|
+
*
|
|
404
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
405
|
+
*
|
|
406
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
407
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
408
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
409
|
+
* See the License for the specific language governing permissions and
|
|
410
|
+
* limitations under the License.
|
|
411
|
+
*/
|
|
412
|
+
class DeleteFormFlowModalComponent {
|
|
413
|
+
constructor() {
|
|
414
|
+
this.deleteEvent = new EventEmitter();
|
|
415
|
+
}
|
|
416
|
+
onDelete(formFlowDefinitionKey) {
|
|
417
|
+
this.deleteEvent.emit(formFlowDefinitionKey);
|
|
418
|
+
}
|
|
419
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DeleteFormFlowModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
420
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DeleteFormFlowModalComponent, selector: "valtimo-delete-form-flow-modal", inputs: { deleteFormFlowDefinitionKey: "deleteFormFlowDefinitionKey", showDeleteModal$: "showDeleteModal$" }, outputs: { deleteEvent: "deleteEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"interface.delete\"\n confirmButtonType=\"danger\"\n contentTranslationKey=\"formFlow.deleteModalContent\"\n [outputOnConfirm]=\"deleteFormFlowDefinitionKey\"\n [showModalSubject$]=\"showDeleteModal$\"\n titleTranslationKey=\"interface.delete\"\n (confirmEvent)=\"onDelete($event)\"\n></valtimo-confirmation-modal>\n", dependencies: [{ kind: "component", type: i3$1.ConfirmationModalComponent, selector: "valtimo-confirmation-modal", inputs: ["titleTranslationKey", "title", "content", "contentTranslationKey", "confirmButtonText", "confirmButtonTextTranslationKey", "confirmButtonType", "showOptionalButton", "optionalButtonText", "optionalButtonTextTranslationKey", "optionalButtonType", "cancelButtonText", "cancelButtonTextTranslationKey", "cancelButtonType", "showModalSubject$", "outputOnConfirm", "outputOnOptional", "spacerAfterCancelButton"], outputs: ["confirmEvent", "optionalEvent", "cancelEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
421
|
+
}
|
|
422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DeleteFormFlowModalComponent, decorators: [{
|
|
423
|
+
type: Component,
|
|
424
|
+
args: [{ selector: 'valtimo-delete-form-flow-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"interface.delete\"\n confirmButtonType=\"danger\"\n contentTranslationKey=\"formFlow.deleteModalContent\"\n [outputOnConfirm]=\"deleteFormFlowDefinitionKey\"\n [showModalSubject$]=\"showDeleteModal$\"\n titleTranslationKey=\"interface.delete\"\n (confirmEvent)=\"onDelete($event)\"\n></valtimo-confirmation-modal>\n" }]
|
|
425
|
+
}], propDecorators: { deleteFormFlowDefinitionKey: [{
|
|
426
|
+
type: Input
|
|
427
|
+
}], showDeleteModal$: [{
|
|
428
|
+
type: Input
|
|
429
|
+
}], deleteEvent: [{
|
|
430
|
+
type: Output
|
|
431
|
+
}] } });
|
|
432
|
+
|
|
433
|
+
/*
|
|
434
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
435
|
+
*
|
|
436
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
437
|
+
* you may not use this file except in compliance with the License.
|
|
438
|
+
* You may obtain a copy of the License at
|
|
439
|
+
*
|
|
440
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
441
|
+
*
|
|
442
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
443
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
444
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
445
|
+
* See the License for the specific language governing permissions and
|
|
446
|
+
* limitations under the License.
|
|
447
|
+
*/
|
|
448
|
+
class FormFlowEditorComponent {
|
|
449
|
+
constructor(formFlowService, route, pageTitleService, router, notificationService, translateService, formFlowDownloadService, pageHeaderService) {
|
|
450
|
+
this.formFlowService = formFlowService;
|
|
451
|
+
this.route = route;
|
|
452
|
+
this.pageTitleService = pageTitleService;
|
|
453
|
+
this.router = router;
|
|
454
|
+
this.notificationService = notificationService;
|
|
455
|
+
this.translateService = translateService;
|
|
456
|
+
this.formFlowDownloadService = formFlowDownloadService;
|
|
457
|
+
this.pageHeaderService = pageHeaderService;
|
|
458
|
+
this.model$ = new BehaviorSubject(null);
|
|
459
|
+
this.readOnly$ = new BehaviorSubject(false);
|
|
460
|
+
this.valid$ = new BehaviorSubject(false);
|
|
461
|
+
this.loading$ = new BehaviorSubject(true);
|
|
462
|
+
this.showDeleteModal$ = new BehaviorSubject(false);
|
|
463
|
+
this.formFlowDefinitionVersions$ = new BehaviorSubject([1]);
|
|
464
|
+
this.formFlowDefinitionId$ = new BehaviorSubject(null);
|
|
465
|
+
this.CARBON_THEME = 'g10';
|
|
466
|
+
this.formFlowSchemaJson = formFlowSchemaJson;
|
|
467
|
+
this._updatedModelValue$ = new BehaviorSubject('');
|
|
468
|
+
this.formFlowDefinitionVersionItems$ = combineLatest([this.formFlowDefinitionVersions$, this.formFlowDefinitionId$]).pipe(filter(([versions, formFlowDefinitionId]) => !!versions && !!formFlowDefinitionId), map(([versions, formFlowDefinitionId]) => versions.map(version => ({
|
|
469
|
+
formFlowDefinitionId: {
|
|
470
|
+
key: formFlowDefinitionId.key,
|
|
471
|
+
version,
|
|
472
|
+
},
|
|
473
|
+
content: `${this.translateService.instant('formFlow.version')}: ${version}`,
|
|
474
|
+
selected: version === formFlowDefinitionId.version,
|
|
475
|
+
}))), map(formFlowDefinitionVersionItems => ({
|
|
476
|
+
value: formFlowDefinitionVersionItems,
|
|
477
|
+
isLoading: false,
|
|
478
|
+
})), startWith({ isLoading: true }));
|
|
479
|
+
this.formFlowDefinition$ = this.formFlowDefinitionId$.pipe(filter(id => !!id), switchMap(id => this.formFlowService.getFormFlowDefinition(id)));
|
|
480
|
+
this.compactMode$ = this.pageHeaderService.compactMode$;
|
|
481
|
+
}
|
|
482
|
+
ngOnInit() {
|
|
483
|
+
this.formFlowService.loadFormFlows();
|
|
484
|
+
this.openFormFlowDefinitionSubscription();
|
|
485
|
+
}
|
|
486
|
+
ngOnDestroy() {
|
|
487
|
+
this.pageTitleService.enableReset();
|
|
488
|
+
this._idSubscription?.unsubscribe();
|
|
489
|
+
this._definitionSubscription?.unsubscribe();
|
|
490
|
+
}
|
|
491
|
+
onValid(valid) {
|
|
492
|
+
this.valid$.next(valid !== false);
|
|
493
|
+
}
|
|
494
|
+
onValueChange(value) {
|
|
495
|
+
this._updatedModelValue$.next(value);
|
|
496
|
+
}
|
|
497
|
+
updateFormFlowDefinition() {
|
|
498
|
+
this.loading$.next(true);
|
|
499
|
+
combineLatest([this._updatedModelValue$, this.formFlowDefinitionId$])
|
|
500
|
+
.pipe(take(1), map(([updatedModelValue, formFlowDefinitionId]) => ({
|
|
501
|
+
...JSON.parse(updatedModelValue),
|
|
502
|
+
key: formFlowDefinitionId.key,
|
|
503
|
+
version: this.formFlowDefinitionVersions$.value[0] + 1,
|
|
504
|
+
})), switchMap(updatedFormFlowDefinition => this.formFlowService.updateFormFlowDefinition(updatedFormFlowDefinition.key, updatedFormFlowDefinition)))
|
|
505
|
+
.subscribe({
|
|
506
|
+
next: result => {
|
|
507
|
+
const id = { key: result.key, version: result.version };
|
|
508
|
+
this.showSuccessMessage(result.key);
|
|
509
|
+
this.formFlowDefinitionId$.next(id);
|
|
510
|
+
this.formFlowDefinitionVersions$.next([id.version].concat(this.formFlowDefinitionVersions$.value));
|
|
511
|
+
},
|
|
512
|
+
error: () => {
|
|
513
|
+
this.loading$.next(false);
|
|
514
|
+
},
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
onDelete(formFlowDefinitionKey) {
|
|
518
|
+
this.loading$.next(true);
|
|
519
|
+
this.formFlowService.dispatchAction(this.formFlowService.deleteFormFlowDefinition(formFlowDefinitionKey).pipe(finalize(() => {
|
|
520
|
+
this.router.navigate(['/form-flow-management']);
|
|
521
|
+
})));
|
|
522
|
+
}
|
|
523
|
+
showDeleteModal() {
|
|
524
|
+
this.showDeleteModal$.next(true);
|
|
525
|
+
}
|
|
526
|
+
downloadFormFlowDefinition(model) {
|
|
527
|
+
this.formFlowDefinitionId$.subscribe(formFlowDefinitionId => this.formFlowDownloadService.downloadJson(JSON.parse(model.value), formFlowDefinitionId));
|
|
528
|
+
}
|
|
529
|
+
loadFormFlowDefinitionId(formFlowDefinitionId) {
|
|
530
|
+
if (!!formFlowDefinitionId) {
|
|
531
|
+
this.formFlowDefinitionId$.next(formFlowDefinitionId);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
openFormFlowDefinitionSubscription() {
|
|
535
|
+
this.loading$.next(true);
|
|
536
|
+
this._idSubscription = this.route.params
|
|
537
|
+
.pipe(filter(params => params?.key), map(params => params.key), switchMap(key => combineLatest([
|
|
538
|
+
of(key),
|
|
539
|
+
this.formFlowService.formFlows$.pipe(map(formFlowDefinitions => formFlowDefinitions.find(definition => definition.key === key)?.versions), filter(versions => !!versions), take(1), tap(versions => this.formFlowDefinitionVersions$.next(versions))),
|
|
540
|
+
])), map(([key, versions]) => ({ key, version: versions[0] })))
|
|
541
|
+
.subscribe(formFlowDefinitionId => {
|
|
542
|
+
this.pageTitleService.setCustomPageTitle(formFlowDefinitionId.key);
|
|
543
|
+
this.formFlowDefinitionId$.next(formFlowDefinitionId);
|
|
544
|
+
});
|
|
545
|
+
this._definitionSubscription = this.formFlowDefinition$.pipe().subscribe(formFlowDefinition => {
|
|
546
|
+
this.readOnly$.next(formFlowDefinition.readOnly === true);
|
|
547
|
+
this.setModel(formFlowDefinition);
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
setModel(formFlowDefinition) {
|
|
551
|
+
const clone = { ...formFlowDefinition };
|
|
552
|
+
delete clone.version;
|
|
553
|
+
delete clone.readOnly;
|
|
554
|
+
this.model$.next({
|
|
555
|
+
value: JSON.stringify(clone),
|
|
556
|
+
language: 'json',
|
|
557
|
+
uri: formFlowDefinition.key + '-' + formFlowDefinition.version + '.formflow.json',
|
|
558
|
+
});
|
|
559
|
+
this.loading$.next(false);
|
|
560
|
+
}
|
|
561
|
+
showSuccessMessage(key) {
|
|
562
|
+
this.notificationService.showToast({
|
|
563
|
+
caption: this.translateService.instant('formFlow.savedSuccessTitleMessage', {
|
|
564
|
+
key,
|
|
565
|
+
}),
|
|
566
|
+
type: 'success',
|
|
567
|
+
duration: 4000,
|
|
568
|
+
showClose: true,
|
|
569
|
+
title: this.translateService.instant('formFlow.savedSuccessTitle'),
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowEditorComponent, deps: [{ token: FormFlowService }, { token: i2$1.ActivatedRoute }, { token: i3$1.PageTitleService }, { token: i2$1.Router }, { token: i4.NotificationService }, { token: i5.TranslateService }, { token: FormFlowDownloadService }, { token: i3$1.PageHeaderService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
573
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: FormFlowEditorComponent, selector: "ng-component", providers: [NotificationService], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"model$ | async as model; else loading\">\n <valtimo-editor\n [disabled]=\"(loading$ | async) === false && readOnly$ | async\"\n [model]=\"model\"\n [jsonSchema]=\"formFlowSchemaJson\"\n (validEvent)=\"onValid($event)\"\n (valueChangeEvent)=\"onValueChange($event)\"\n [fitPage]=\"true\"\n ></valtimo-editor>\n</ng-container>\n\n<ng-container renderInPageHeader>\n <ng-template>\n <div\n class=\"buttons-container\"\n *ngIf=\"{\n model: model$ | async,\n valid: valid$ | async,\n readOnly: readOnly$ | async,\n versions: formFlowDefinitionVersionItems$ | async,\n compactMode: compactMode$ | async\n } as obs\"\n >\n <cds-dropdown\n [disabled]=\"obs.versions.isLoading || obs.versions.value.length === 1\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.versions.isLoading\"\n (selected)=\"loadFormFlowDefinitionId($event.item.formFlowDefinitionId)\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n >\n <cds-dropdown-list [items]=\"obs.versions.value || []\"></cds-dropdown-list>\n </cds-dropdown>\n\n <div class=\"buttons-container-right\">\n <cds-overflow-menu class=\"overflow-button\">\n <cds-overflow-menu-option\n [disabled]=\"!obs.valid && !obs.readOnly\"\n (selected)=\"downloadFormFlowDefinition(obs.model)\"\n >{{ 'interface.export' | translate }}\n </cds-overflow-menu-option>\n\n <cds-overflow-menu-option\n [disabled]=\"obs.readOnly\"\n type=\"danger\"\n (selected)=\"showDeleteModal()\"\n >{{ 'interface.delete' | translate }}\n </cds-overflow-menu-option>\n </cds-overflow-menu>\n\n <button\n [disabled]=\"!obs.valid || obs.readOnly\"\n cdsButton=\"primary\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n (click)=\"updateFormFlowDefinition()\"\n >\n {{ 'interface.save' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"save\" size=\"16\"></svg>\n </button>\n </div>\n </div>\n </ng-template>\n</ng-container>\n\n<ng-container *ngIf=\"{formFlowDefinitionId: formFlowDefinitionId$ | async} as obs\">\n <valtimo-delete-form-flow-modal\n [deleteFormFlowDefinitionKey]=\"obs.formFlowDefinitionId?.key\"\n [showDeleteModal$]=\"showDeleteModal$\"\n (deleteEvent)=\"onDelete($event)\"\n >\n </valtimo-delete-form-flow-modal>\n</ng-container>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".loading-container{display:flex;width:100%;justify-content:center}::ng-deep .page-actions{width:100%}.buttons-container{display:flex;width:100%;justify-content:space-between;align-items:center}.buttons-container button{height:min-content}.buttons-container-right{display:flex;align-items:center}.overflow-button{margin-right:16px}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i4.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i3$1.EditorComponent, selector: "valtimo-editor", inputs: ["editorOptions", "model", "disabled", "formatOnLoad", "widthPx", "heightPx", "heightStyle", "jsonSchema", "fitPage", "fitPageExtraSpace"], outputs: ["validEvent", "valueChangeEvent"] }, { kind: "directive", type: i3$1.RenderInPageHeaderDirective, selector: "[renderInPageHeader]", inputs: ["fullWidth"] }, { kind: "component", type: i4.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i4.OverflowMenu, selector: "cds-overflow-menu, ibm-overflow-menu", inputs: ["buttonLabel", "flip", "placement", "open", "customTrigger", "offset", "wrapperClass", "triggerClass"], outputs: ["openChange"] }, { kind: "component", type: i4.OverflowMenuOption, selector: "cds-overflow-menu-option, ibm-overflow-menu-option", inputs: ["divider", "type", "disabled", "href", "target", "innerClass"], outputs: ["selected"] }, { kind: "component", type: i4.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp"], outputs: ["selected", "onClose", "close"] }, { kind: "component", type: i4.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: DeleteFormFlowModalComponent, selector: "valtimo-delete-form-flow-modal", inputs: ["deleteFormFlowDefinitionKey", "showDeleteModal$"], outputs: ["deleteEvent"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
574
|
+
}
|
|
575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowEditorComponent, decorators: [{
|
|
576
|
+
type: Component,
|
|
577
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, providers: [NotificationService], template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"model$ | async as model; else loading\">\n <valtimo-editor\n [disabled]=\"(loading$ | async) === false && readOnly$ | async\"\n [model]=\"model\"\n [jsonSchema]=\"formFlowSchemaJson\"\n (validEvent)=\"onValid($event)\"\n (valueChangeEvent)=\"onValueChange($event)\"\n [fitPage]=\"true\"\n ></valtimo-editor>\n</ng-container>\n\n<ng-container renderInPageHeader>\n <ng-template>\n <div\n class=\"buttons-container\"\n *ngIf=\"{\n model: model$ | async,\n valid: valid$ | async,\n readOnly: readOnly$ | async,\n versions: formFlowDefinitionVersionItems$ | async,\n compactMode: compactMode$ | async\n } as obs\"\n >\n <cds-dropdown\n [disabled]=\"obs.versions.isLoading || obs.versions.value.length === 1\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.versions.isLoading\"\n (selected)=\"loadFormFlowDefinitionId($event.item.formFlowDefinitionId)\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n >\n <cds-dropdown-list [items]=\"obs.versions.value || []\"></cds-dropdown-list>\n </cds-dropdown>\n\n <div class=\"buttons-container-right\">\n <cds-overflow-menu class=\"overflow-button\">\n <cds-overflow-menu-option\n [disabled]=\"!obs.valid && !obs.readOnly\"\n (selected)=\"downloadFormFlowDefinition(obs.model)\"\n >{{ 'interface.export' | translate }}\n </cds-overflow-menu-option>\n\n <cds-overflow-menu-option\n [disabled]=\"obs.readOnly\"\n type=\"danger\"\n (selected)=\"showDeleteModal()\"\n >{{ 'interface.delete' | translate }}\n </cds-overflow-menu-option>\n </cds-overflow-menu>\n\n <button\n [disabled]=\"!obs.valid || obs.readOnly\"\n cdsButton=\"primary\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n (click)=\"updateFormFlowDefinition()\"\n >\n {{ 'interface.save' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"save\" size=\"16\"></svg>\n </button>\n </div>\n </div>\n </ng-template>\n</ng-container>\n\n<ng-container *ngIf=\"{formFlowDefinitionId: formFlowDefinitionId$ | async} as obs\">\n <valtimo-delete-form-flow-modal\n [deleteFormFlowDefinitionKey]=\"obs.formFlowDefinitionId?.key\"\n [showDeleteModal$]=\"showDeleteModal$\"\n (deleteEvent)=\"onDelete($event)\"\n >\n </valtimo-delete-form-flow-modal>\n</ng-container>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".loading-container{display:flex;width:100%;justify-content:center}::ng-deep .page-actions{width:100%}.buttons-container{display:flex;width:100%;justify-content:space-between;align-items:center}.buttons-container button{height:min-content}.buttons-container-right{display:flex;align-items:center}.overflow-button{margin-right:16px}\n/*!\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
578
|
+
}], ctorParameters: () => [{ type: FormFlowService }, { type: i2$1.ActivatedRoute }, { type: i3$1.PageTitleService }, { type: i2$1.Router }, { type: i4.NotificationService }, { type: i5.TranslateService }, { type: FormFlowDownloadService }, { type: i3$1.PageHeaderService }] });
|
|
579
|
+
|
|
580
|
+
/*
|
|
581
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
582
|
+
*
|
|
583
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
584
|
+
* you may not use this file except in compliance with the License.
|
|
585
|
+
* You may obtain a copy of the License at
|
|
586
|
+
*
|
|
587
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
588
|
+
*
|
|
589
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
590
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
591
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
592
|
+
* See the License for the specific language governing permissions and
|
|
593
|
+
* limitations under the License.
|
|
594
|
+
*/
|
|
595
|
+
const routes = [
|
|
596
|
+
{
|
|
597
|
+
path: 'form-flow-management',
|
|
598
|
+
component: FormFlowOverviewComponent,
|
|
599
|
+
canActivate: [AuthGuardService],
|
|
600
|
+
data: { title: 'Form flow', formFlows: [ROLE_ADMIN] },
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
path: 'form-flow-management/:key',
|
|
604
|
+
component: FormFlowEditorComponent,
|
|
605
|
+
canActivate: [AuthGuardService],
|
|
606
|
+
data: {
|
|
607
|
+
title: 'FormFlow details',
|
|
608
|
+
formFlows: [ROLE_ADMIN],
|
|
609
|
+
customPageTitle: true,
|
|
610
|
+
},
|
|
611
|
+
},
|
|
612
|
+
];
|
|
613
|
+
class FormFlowManagementRoutingModule {
|
|
614
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowManagementRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
615
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: FormFlowManagementRoutingModule, imports: [CommonModule, i2$1.RouterModule], exports: [RouterModule] }); }
|
|
616
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowManagementRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
|
|
617
|
+
}
|
|
618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowManagementRoutingModule, decorators: [{
|
|
619
|
+
type: NgModule,
|
|
620
|
+
args: [{
|
|
621
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
622
|
+
exports: [RouterModule],
|
|
623
|
+
}]
|
|
624
|
+
}] });
|
|
625
|
+
|
|
626
|
+
/*
|
|
627
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
628
|
+
*
|
|
629
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
630
|
+
* you may not use this file except in compliance with the License.
|
|
631
|
+
* You may obtain a copy of the License at
|
|
632
|
+
*
|
|
633
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
634
|
+
*
|
|
635
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
636
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
637
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
638
|
+
* See the License for the specific language governing permissions and
|
|
639
|
+
* limitations under the License.
|
|
640
|
+
*/
|
|
641
|
+
class FormFlowManagementModule {
|
|
642
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
643
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: FormFlowManagementModule, declarations: [FormFlowOverviewComponent,
|
|
644
|
+
NewFormFlowModalComponent,
|
|
645
|
+
FormFlowEditorComponent,
|
|
646
|
+
DeleteFormFlowModalComponent], imports: [CommonModule,
|
|
647
|
+
FormFlowManagementRoutingModule,
|
|
648
|
+
ButtonModule,
|
|
649
|
+
FormsModule,
|
|
650
|
+
ModalModule,
|
|
651
|
+
TranslateModule,
|
|
652
|
+
ReactiveFormsModule,
|
|
653
|
+
InputModule,
|
|
654
|
+
IconModule,
|
|
655
|
+
ConfirmationModalModule,
|
|
656
|
+
EditorModule,
|
|
657
|
+
RenderInPageHeaderDirectiveModule,
|
|
658
|
+
LoadingModule,
|
|
659
|
+
IconModule,
|
|
660
|
+
DialogModule,
|
|
661
|
+
NotificationModule,
|
|
662
|
+
CarbonListModule,
|
|
663
|
+
DropdownModule] }); }
|
|
664
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowManagementModule, imports: [CommonModule,
|
|
665
|
+
FormFlowManagementRoutingModule,
|
|
666
|
+
ButtonModule,
|
|
667
|
+
FormsModule,
|
|
668
|
+
ModalModule,
|
|
669
|
+
TranslateModule,
|
|
670
|
+
ReactiveFormsModule,
|
|
671
|
+
InputModule,
|
|
672
|
+
IconModule,
|
|
673
|
+
ConfirmationModalModule,
|
|
674
|
+
EditorModule,
|
|
675
|
+
RenderInPageHeaderDirectiveModule,
|
|
676
|
+
LoadingModule,
|
|
677
|
+
IconModule,
|
|
678
|
+
DialogModule,
|
|
679
|
+
NotificationModule,
|
|
680
|
+
CarbonListModule,
|
|
681
|
+
DropdownModule] }); }
|
|
682
|
+
}
|
|
683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FormFlowManagementModule, decorators: [{
|
|
684
|
+
type: NgModule,
|
|
685
|
+
args: [{
|
|
686
|
+
declarations: [
|
|
687
|
+
FormFlowOverviewComponent,
|
|
688
|
+
NewFormFlowModalComponent,
|
|
689
|
+
FormFlowEditorComponent,
|
|
690
|
+
DeleteFormFlowModalComponent,
|
|
691
|
+
],
|
|
692
|
+
imports: [
|
|
693
|
+
CommonModule,
|
|
694
|
+
FormFlowManagementRoutingModule,
|
|
695
|
+
ButtonModule,
|
|
696
|
+
FormsModule,
|
|
697
|
+
ModalModule,
|
|
698
|
+
TranslateModule,
|
|
699
|
+
ReactiveFormsModule,
|
|
700
|
+
InputModule,
|
|
701
|
+
IconModule,
|
|
702
|
+
ConfirmationModalModule,
|
|
703
|
+
EditorModule,
|
|
704
|
+
RenderInPageHeaderDirectiveModule,
|
|
705
|
+
LoadingModule,
|
|
706
|
+
IconModule,
|
|
707
|
+
DialogModule,
|
|
708
|
+
NotificationModule,
|
|
709
|
+
CarbonListModule,
|
|
710
|
+
DropdownModule,
|
|
711
|
+
],
|
|
712
|
+
}]
|
|
713
|
+
}] });
|
|
714
|
+
|
|
715
|
+
/*
|
|
716
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
717
|
+
*
|
|
718
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
719
|
+
* you may not use this file except in compliance with the License.
|
|
720
|
+
* You may obtain a copy of the License at
|
|
721
|
+
*
|
|
722
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
723
|
+
*
|
|
724
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
725
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
726
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
727
|
+
* See the License for the specific language governing permissions and
|
|
728
|
+
* limitations under the License.
|
|
729
|
+
*/
|
|
730
|
+
/*
|
|
731
|
+
* Public API Surface of form-flow
|
|
732
|
+
*/
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Generated bundle index. Do not edit.
|
|
736
|
+
*/
|
|
737
|
+
|
|
738
|
+
export { FormFlowManagementModule, FormFlowService };
|
|
739
|
+
//# sourceMappingURL=valtimo-form-flow-management.mjs.map
|