@valtimo/form-flow-management 12.19.0 → 13.0.1-next-minor.81

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.
Files changed (35) hide show
  1. package/fesm2022/valtimo-form-flow-management.mjs +226 -269
  2. package/fesm2022/valtimo-form-flow-management.mjs.map +1 -1
  3. package/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.d.ts.map +1 -1
  4. package/lib/components/editor/form-flow-editor.component.d.ts +22 -24
  5. package/lib/components/editor/form-flow-editor.component.d.ts.map +1 -1
  6. package/lib/components/new-form-flow-modal/new-form-flow-modal.component.d.ts.map +1 -1
  7. package/lib/components/overview/form-flow-overview.component.d.ts +24 -11
  8. package/lib/components/overview/form-flow-overview.component.d.ts.map +1 -1
  9. package/lib/form-flow-management.module.d.ts +5 -6
  10. package/lib/form-flow-management.module.d.ts.map +1 -1
  11. package/lib/models/form-flow.model.d.ts +6 -2
  12. package/lib/models/form-flow.model.d.ts.map +1 -1
  13. package/lib/services/form-flow-download.service.d.ts +4 -5
  14. package/lib/services/form-flow-download.service.d.ts.map +1 -1
  15. package/lib/services/form-flow.service.d.ts +12 -17
  16. package/lib/services/form-flow.service.d.ts.map +1 -1
  17. package/package.json +4 -7
  18. package/public-api.d.ts +2 -0
  19. package/public-api.d.ts.map +1 -1
  20. package/esm2022/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.mjs +0 -39
  21. package/esm2022/lib/components/editor/form-flow-editor.component.mjs +0 -161
  22. package/esm2022/lib/components/editor/formflow.schema.json +0 -79
  23. package/esm2022/lib/components/new-form-flow-modal/new-form-flow-modal.component.mjs +0 -67
  24. package/esm2022/lib/components/overview/form-flow-overview.component.mjs +0 -80
  25. package/esm2022/lib/form-flow-management-routing.module.mjs +0 -55
  26. package/esm2022/lib/form-flow-management.module.mjs +0 -101
  27. package/esm2022/lib/models/form-flow.model.mjs +0 -17
  28. package/esm2022/lib/models/index.mjs +0 -17
  29. package/esm2022/lib/services/form-flow-download.service.mjs +0 -40
  30. package/esm2022/lib/services/form-flow.service.mjs +0 -66
  31. package/esm2022/lib/services/index.mjs +0 -17
  32. package/esm2022/public-api.mjs +0 -22
  33. package/esm2022/valtimo-form-flow-management.mjs +0 -5
  34. package/lib/form-flow-management-routing.module.d.ts +0 -9
  35. package/lib/form-flow-management-routing.module.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"valtimo-form-flow-management.mjs","sources":["../../../../projects/valtimo/form-flow-management/src/lib/models/form-flow.model.ts","../../../../projects/valtimo/form-flow-management/src/lib/models/index.ts","../../../../projects/valtimo/form-flow-management/src/lib/services/form-flow.service.ts","../../../../projects/valtimo/form-flow-management/src/lib/services/index.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/new-form-flow-modal/new-form-flow-modal.component.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/new-form-flow-modal/new-form-flow-modal.component.html","../../../../projects/valtimo/form-flow-management/src/lib/components/overview/form-flow-overview.component.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/overview/form-flow-overview.component.html","../../../../projects/valtimo/form-flow-management/src/lib/services/form-flow-download.service.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.html","../../../../projects/valtimo/form-flow-management/src/lib/components/editor/form-flow-editor.component.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/editor/form-flow-editor.component.html","../../../../projects/valtimo/form-flow-management/src/lib/form-flow-management-routing.module.ts","../../../../projects/valtimo/form-flow-management/src/lib/form-flow-management.module.ts","../../../../projects/valtimo/form-flow-management/src/public-api.ts","../../../../projects/valtimo/form-flow-management/src/valtimo-form-flow-management.ts"],"sourcesContent":["/*\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\ninterface ListFormFlowDefinition {\n key: string;\n versions: Array<number>;\n readOnly?: boolean;\n}\n\ninterface FormFlowDefinition {\n key: string;\n version?: number;\n readOnly?: boolean;\n startStep: string;\n steps: Array<FormFlowStep>;\n}\n\ninterface FormFlowDefinitionId {\n key: string;\n version: number;\n}\n\ninterface FormFlowStep {\n key: string;\n nextSteps: Array<FormFlowNextStep>;\n onBack: Array<string>;\n onOpen: Array<string>;\n onComplete: Array<string>;\n type: FormFlowStepType;\n}\n\ninterface FormFlowNextStep {\n condition?: string;\n step: string;\n}\n\ninterface FormFlowStepType {\n name: string;\n properties: FormStepTypeProperties | CustomComponentStepTypeProperties;\n}\n\ninterface FormStepTypeProperties {\n definition: string;\n}\n\ninterface CustomComponentStepTypeProperties {\n componentId: string;\n}\n\ninterface DeleteFormFlowsRequest {\n formFlowKeys: Array<string>;\n}\n\ninterface LoadedValue<T> {\n isLoading: boolean;\n value?: T;\n}\n\nexport {\n ListFormFlowDefinition,\n FormFlowDefinition,\n FormFlowDefinitionId,\n FormFlowStep,\n FormFlowNextStep,\n FormFlowStepType,\n FormStepTypeProperties,\n CustomComponentStepTypeProperties,\n DeleteFormFlowsRequest,\n LoadedValue,\n};\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\nexport * from './form-flow.model';\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\nimport {HttpClient} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {ConfigService, Page} from '@valtimo/config';\nimport {BehaviorSubject, catchError, Observable, of, switchMap, take, tap} from 'rxjs';\nimport {\n DeleteFormFlowsRequest,\n FormFlowDefinition,\n FormFlowDefinitionId,\n ListFormFlowDefinition,\n} from '../models';\n\n@Injectable({providedIn: 'root'})\nexport class FormFlowService {\n public readonly formFlows$ = new BehaviorSubject<ListFormFlowDefinition[]>([]);\n public readonly loading$ = new BehaviorSubject<boolean>(false);\n\n private valtimoEndpointUri: string;\n\n private get formFlowDefinitions$(): Observable<Page<ListFormFlowDefinition>> {\n return this.http.get<Page<ListFormFlowDefinition>>(\n `${this.valtimoEndpointUri}v1/form-flow/definition`\n );\n }\n\n constructor(\n private readonly configService: ConfigService,\n private readonly http: HttpClient\n ) {\n this.valtimoEndpointUri = `${this.configService.config.valtimoApi.endpointUri}management/`;\n }\n\n public addFormFlow(definition: FormFlowDefinition): Observable<FormFlowDefinition> {\n return this.http.post<FormFlowDefinition>(\n `${this.valtimoEndpointUri}v1/form-flow/definition`,\n definition\n );\n }\n\n public deleteFormFlowDefinition(key: string): Observable<null> {\n return this.http.delete<null>(`${this.valtimoEndpointUri}v1/form-flow/definition/${key}`);\n }\n\n public dispatchAction(actionResult: Observable<FormFlowDefinition | null>): void {\n actionResult\n .pipe(\n tap(() => {\n this.loading$.next(true);\n }),\n switchMap(() => this.formFlowDefinitions$),\n take(1),\n catchError(error => of(error))\n )\n .subscribe({\n next: (formFlows: Page<ListFormFlowDefinition>) => {\n this.formFlows$.next(formFlows.content);\n this.loading$.next(false);\n },\n error: error => {\n console.error(error);\n },\n });\n }\n\n public loadFormFlows(): void {\n this.formFlowDefinitions$\n .pipe(\n tap(() => {\n this.loading$.next(true);\n }),\n take(1)\n )\n .subscribe({\n next: (items: Page<ListFormFlowDefinition>) => {\n this.formFlows$.next(items.content);\n this.loading$.next(false);\n },\n error: error => {\n console.error(error);\n },\n });\n }\n\n public getFormFlowDefinition(id: FormFlowDefinitionId): Observable<FormFlowDefinition> {\n return this.http.get<FormFlowDefinition>(\n `${this.valtimoEndpointUri}v1/form-flow/definition/${id.key}/${id.version}`\n );\n }\n\n public updateFormFlowDefinition(\n key: string,\n updatedDefinition: FormFlowDefinition\n ): Observable<FormFlowDefinition> {\n return this.http.put<FormFlowDefinition>(\n `${this.valtimoEndpointUri}v1/form-flow/definition/${key}`,\n updatedDefinition\n );\n }\n}\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\nexport * from './form-flow.service';\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\nimport {ChangeDetectionStrategy, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {FormBuilder, Validators} from '@angular/forms';\nimport {FormFlowDefinition} from '../../models';\nimport {CARBON_CONSTANTS} from '@valtimo/components';\n\n@Component({\n selector: 'valtimo-new-form-flow-modal',\n templateUrl: './new-form-flow-modal.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NewFormFlowModalComponent {\n @Input() open = false;\n @Output() closeEvent = new EventEmitter<FormFlowDefinition | null>();\n\n public form = this.fb.group({\n key: this.fb.control('', Validators.required),\n });\n\n public get key() {\n return this.form?.get('key');\n }\n\n constructor(private readonly fb: FormBuilder) {}\n\n public onCancel(): void {\n this.closeEvent.emit(null);\n this.resetForm();\n }\n\n public onConfirm(): void {\n if (!this.key) {\n return;\n }\n\n this.closeEvent.emit({\n key: this.key.value,\n version: 1,\n startStep: 'start-step',\n steps: [],\n });\n this.resetForm();\n }\n\n private resetForm(): void {\n setTimeout(() => {\n this.form.reset();\n }, CARBON_CONSTANTS.modalAnimationMs);\n }\n}\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\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","/*\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 */\nimport {ChangeDetectionStrategy, Component, OnInit, ViewChild} from '@angular/core';\nimport {Router} from '@angular/router';\nimport {CarbonListComponent, ColumnConfig, ViewType} from '@valtimo/components';\nimport {BehaviorSubject, finalize, Observable} from 'rxjs';\nimport {FormFlowDefinition, ListFormFlowDefinition} from '../../models';\nimport {FormFlowService} from '../../services/form-flow.service';\n\n@Component({\n templateUrl: './form-flow-overview.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormFlowOverviewComponent implements OnInit {\n @ViewChild(CarbonListComponent) carbonList: CarbonListComponent;\n\n public fields: ColumnConfig[] = [\n {\n viewType: ViewType.TEXT,\n key: 'key',\n label: 'formFlow.key',\n },\n {\n viewType: ViewType.TEXT,\n key: 'versions.0',\n label: 'formFlow.version',\n },\n {\n viewType: ViewType.BOOLEAN,\n key: 'readOnly',\n label: 'formFlow.readOnly',\n },\n ];\n\n public readonly formFlowDefinitions$: Observable<ListFormFlowDefinition[]> =\n this.formFlowService.formFlows$;\n public readonly loading$: Observable<boolean> = this.formFlowService.loading$;\n public readonly showAddModal$ = new BehaviorSubject<boolean>(false);\n\n constructor(\n private readonly formFlowService: FormFlowService,\n private readonly router: Router\n ) {}\n\n public ngOnInit(): void {\n this.formFlowService.loadFormFlows();\n }\n\n public openAddModal(): void {\n this.showAddModal$.next(true);\n }\n\n public onAdd(data: FormFlowDefinition | null): void {\n this.showAddModal$.next(false);\n\n if (!data) {\n return;\n }\n\n this.formFlowService.dispatchAction(\n this.formFlowService.addFormFlow(data).pipe(\n finalize(() => {\n this.showAddModal$.next(false);\n })\n )\n );\n }\n\n public onRowClick(formFlow: ListFormFlowDefinition): void {\n this.router.navigate([`/form-flow-management/${formFlow.key}`]);\n }\n}\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\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","/*\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\nimport {Injectable} from '@angular/core';\nimport {FormFlowService} from './form-flow.service';\nimport {FormFlowDefinitionId} from '../models';\n\n@Injectable({providedIn: 'root'})\nexport class FormFlowDownloadService {\n constructor(private readonly formFlowService: FormFlowService) {}\n\n public downloadJson(json: object, formFlowDefinitionId: FormFlowDefinitionId): void {\n const sJson = JSON.stringify(json, null, 2);\n const element = document.createElement('a');\n element.setAttribute('href', 'data:text/json;charset=UTF-8,' + encodeURIComponent(sJson));\n element.setAttribute(\n 'download',\n `${formFlowDefinitionId.key}-${formFlowDefinitionId.version}.formflow.json`\n );\n element.style.display = 'none';\n document.body.appendChild(element);\n element.click(); // simulate click\n document.body.removeChild(element);\n }\n}\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\nimport {ChangeDetectionStrategy, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'valtimo-delete-form-flow-modal',\n templateUrl: './delete-form-flow-modal.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DeleteFormFlowModalComponent {\n @Input() deleteFormFlowDefinitionKey: string;\n @Input() showDeleteModal$: Observable<boolean>;\n @Output() deleteEvent = new EventEmitter<string>();\n\n public onDelete(formFlowDefinitionKey: string): void {\n this.deleteEvent.emit(formFlowDefinitionKey);\n }\n}\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\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","/*\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\nimport {ChangeDetectionStrategy, Component, OnDestroy, OnInit} from '@angular/core';\nimport {FormFlowService} from '../../services/form-flow.service';\nimport {\n BehaviorSubject,\n combineLatest,\n filter,\n finalize,\n map,\n Observable,\n of,\n startWith,\n Subscription,\n switchMap,\n take,\n tap,\n} from 'rxjs';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {\n CARBON_CONSTANTS,\n EditorModel,\n PageHeaderService,\n PageTitleService,\n} from '@valtimo/components';\nimport {FormFlowDefinition, FormFlowDefinitionId, LoadedValue} from '../../models';\nimport {NotificationService} from 'carbon-components-angular';\nimport {TranslateService} from '@ngx-translate/core';\nimport {FormFlowDownloadService} from '../../services/form-flow-download.service';\nimport {ListItem} from 'carbon-components-angular/dropdown';\nimport formFlowSchemaJson from './formflow.schema.json';\n\n@Component({\n templateUrl: './form-flow-editor.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./form-flow-editor.component.scss'],\n providers: [NotificationService],\n})\nexport class FormFlowEditorComponent implements OnInit, OnDestroy {\n public readonly model$ = new BehaviorSubject<EditorModel | null>(null);\n public readonly readOnly$ = new BehaviorSubject<boolean>(false);\n public readonly valid$ = new BehaviorSubject<boolean>(false);\n public readonly loading$ = new BehaviorSubject<boolean>(true);\n public readonly showDeleteModal$ = new BehaviorSubject<boolean>(false);\n public readonly formFlowDefinitionVersions$ = new BehaviorSubject<Array<number>>([1]);\n public readonly formFlowDefinitionId$ = new BehaviorSubject<FormFlowDefinitionId | null>(null);\n private _idSubscription!: Subscription;\n private _definitionSubscription!: Subscription;\n public readonly CARBON_THEME = 'g10';\n\n public readonly formFlowSchemaJson = formFlowSchemaJson;\n\n private readonly _updatedModelValue$ = new BehaviorSubject<string>('');\n\n public readonly formFlowDefinitionVersionItems$: Observable<LoadedValue<Array<ListItem>>> =\n combineLatest([this.formFlowDefinitionVersions$, this.formFlowDefinitionId$]).pipe(\n filter(([versions, formFlowDefinitionId]) => !!versions && !!formFlowDefinitionId),\n map(([versions, formFlowDefinitionId]) =>\n versions.map(\n version =>\n ({\n formFlowDefinitionId: {\n key: formFlowDefinitionId.key,\n version,\n } as FormFlowDefinitionId,\n content: `${this.translateService.instant('formFlow.version')}: ${version}`,\n selected: version === formFlowDefinitionId.version,\n }) as ListItem\n )\n ),\n map(formFlowDefinitionVersionItems => ({\n value: formFlowDefinitionVersionItems,\n isLoading: false,\n })),\n startWith({isLoading: true})\n );\n public readonly formFlowDefinition$: Observable<FormFlowDefinition> =\n this.formFlowDefinitionId$.pipe(\n filter(id => !!id),\n switchMap(id => this.formFlowService.getFormFlowDefinition(id))\n );\n\n public readonly compactMode$ = this.pageHeaderService.compactMode$;\n\n constructor(\n private readonly formFlowService: FormFlowService,\n private readonly route: ActivatedRoute,\n private readonly pageTitleService: PageTitleService,\n private readonly router: Router,\n private readonly notificationService: NotificationService,\n private readonly translateService: TranslateService,\n private readonly formFlowDownloadService: FormFlowDownloadService,\n private readonly pageHeaderService: PageHeaderService\n ) {}\n\n public ngOnInit(): void {\n this.formFlowService.loadFormFlows();\n this.openFormFlowDefinitionSubscription();\n }\n\n public ngOnDestroy(): void {\n this.pageTitleService.enableReset();\n this._idSubscription?.unsubscribe();\n this._definitionSubscription?.unsubscribe();\n }\n\n public onValid(valid: boolean): void {\n this.valid$.next(valid !== false);\n }\n\n public onValueChange(value: string): void {\n this._updatedModelValue$.next(value);\n }\n\n public updateFormFlowDefinition(): void {\n this.loading$.next(true);\n\n combineLatest([this._updatedModelValue$, this.formFlowDefinitionId$])\n .pipe(\n take(1),\n map(([updatedModelValue, formFlowDefinitionId]) => ({\n ...(JSON.parse(updatedModelValue) as FormFlowDefinition),\n key: formFlowDefinitionId.key,\n version: this.formFlowDefinitionVersions$.value[0] + 1,\n })),\n switchMap(updatedFormFlowDefinition =>\n this.formFlowService.updateFormFlowDefinition(\n updatedFormFlowDefinition.key,\n updatedFormFlowDefinition\n )\n )\n )\n .subscribe({\n next: result => {\n const id = {key: result.key, version: result.version};\n this.showSuccessMessage(result.key);\n this.formFlowDefinitionId$.next(id);\n this.formFlowDefinitionVersions$.next(\n [id.version].concat(this.formFlowDefinitionVersions$.value)\n );\n },\n error: () => {\n this.loading$.next(false);\n },\n });\n }\n\n public onDelete(formFlowDefinitionKey: string): void {\n this.loading$.next(true);\n this.formFlowService.dispatchAction(\n this.formFlowService.deleteFormFlowDefinition(formFlowDefinitionKey).pipe(\n finalize(() => {\n this.router.navigate(['/form-flow-management']);\n })\n )\n );\n }\n\n public showDeleteModal(): void {\n this.showDeleteModal$.next(true);\n }\n\n public downloadFormFlowDefinition(model: EditorModel): void {\n this.formFlowDefinitionId$.subscribe(formFlowDefinitionId =>\n this.formFlowDownloadService.downloadJson(JSON.parse(model.value), formFlowDefinitionId)\n );\n }\n\n public loadFormFlowDefinitionId(formFlowDefinitionId?: FormFlowDefinitionId) {\n if (!!formFlowDefinitionId) {\n this.formFlowDefinitionId$.next(formFlowDefinitionId);\n }\n }\n\n private openFormFlowDefinitionSubscription(): void {\n this.loading$.next(true);\n\n this._idSubscription = this.route.params\n .pipe(\n filter(params => params?.key),\n map(params => params.key),\n switchMap(key =>\n combineLatest([\n of(key),\n this.formFlowService.formFlows$.pipe(\n map(\n formFlowDefinitions =>\n formFlowDefinitions.find(definition => definition.key === key)?.versions\n ),\n filter(versions => !!versions),\n take(1),\n tap(versions => this.formFlowDefinitionVersions$.next(versions))\n ),\n ])\n ),\n map(([key, versions]) => ({key, version: versions[0]}) as FormFlowDefinitionId)\n )\n .subscribe(formFlowDefinitionId => {\n this.pageTitleService.setCustomPageTitle(formFlowDefinitionId.key);\n this.formFlowDefinitionId$.next(formFlowDefinitionId);\n });\n\n this._definitionSubscription = this.formFlowDefinition$.pipe().subscribe(formFlowDefinition => {\n this.readOnly$.next(formFlowDefinition.readOnly === true);\n this.setModel(formFlowDefinition);\n });\n }\n\n private setModel(formFlowDefinition: FormFlowDefinition): void {\n const clone = {...formFlowDefinition};\n delete clone.version;\n delete clone.readOnly;\n this.model$.next({\n value: JSON.stringify(clone),\n language: 'json',\n uri: formFlowDefinition.key + '-' + formFlowDefinition.version + '.formflow.json',\n });\n this.loading$.next(false);\n }\n\n private showSuccessMessage(key: string): void {\n this.notificationService.showToast({\n caption: this.translateService.instant('formFlow.savedSuccessTitleMessage', {\n key,\n }),\n type: 'success',\n duration: CARBON_CONSTANTS.notificationDuration,\n showClose: true,\n title: this.translateService.instant('formFlow.savedSuccessTitle'),\n });\n }\n}\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\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","/*\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\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {ROLE_ADMIN} from '@valtimo/config';\nimport {AuthGuardService} from '@valtimo/security';\nimport {FormFlowOverviewComponent} from './components/overview/form-flow-overview.component';\nimport {FormFlowEditorComponent} from './components/editor/form-flow-editor.component';\n\nconst routes: Routes = [\n {\n path: 'form-flow-management',\n component: FormFlowOverviewComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Form flow', formFlows: [ROLE_ADMIN]},\n },\n {\n path: 'form-flow-management/:key',\n component: FormFlowEditorComponent,\n canActivate: [AuthGuardService],\n data: {\n title: 'FormFlow details',\n formFlows: [ROLE_ADMIN],\n customPageTitle: true,\n },\n },\n];\n\n@NgModule({\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class FormFlowManagementRoutingModule {}\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\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {\n CarbonListModule,\n ConfirmationModalModule,\n EditorModule,\n RenderInPageHeaderDirectiveModule,\n} from '@valtimo/components';\nimport {FormFlowManagementRoutingModule} from './form-flow-management-routing.module';\nimport {FormFlowOverviewComponent} from './components/overview/form-flow-overview.component';\nimport {NewFormFlowModalComponent} from './components/new-form-flow-modal/new-form-flow-modal.component';\nimport {\n ButtonModule,\n DialogModule,\n DropdownModule,\n IconModule,\n InputModule,\n LoadingModule,\n ModalModule,\n NotificationModule,\n} from 'carbon-components-angular';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {FormFlowEditorComponent} from './components/editor/form-flow-editor.component';\nimport {DeleteFormFlowModalComponent} from './components/delete-form-flow-modal/delete-form-flow-modal.component';\n\n@NgModule({\n declarations: [\n FormFlowOverviewComponent,\n NewFormFlowModalComponent,\n FormFlowEditorComponent,\n DeleteFormFlowModalComponent,\n ],\n imports: [\n CommonModule,\n FormFlowManagementRoutingModule,\n ButtonModule,\n FormsModule,\n ModalModule,\n TranslateModule,\n ReactiveFormsModule,\n InputModule,\n IconModule,\n ConfirmationModalModule,\n EditorModule,\n RenderInPageHeaderDirectiveModule,\n LoadingModule,\n IconModule,\n DialogModule,\n NotificationModule,\n CarbonListModule,\n DropdownModule,\n ],\n})\nexport class FormFlowManagementModule {}\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\n/*\n * Public API Surface of form-flow\n */\n\nexport * from './lib/models';\nexport * from './lib/services';\nexport * from './lib/form-flow-management.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2","i3","i1.FormFlowService","i5","i6.NewFormFlowModalComponent","i7","i6.FormFlowDownloadService","i8.DeleteFormFlowModalComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;MCcU,eAAe,CAAA;AAM1B,IAAA,IAAY,oBAAoB,GAAA;AAC9B,QAAA,OAAO,IAA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,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YApBjC,YAAY;YACZ,+BAA+B;YAC/B,YAAY;YACZ,WAAW;YACX,WAAW;YACX,eAAe;YACf,mBAAmB;YACnB,WAAW;YACX,UAAU;YACV,uBAAuB;YACvB,YAAY;YACZ,iCAAiC;YACjC,aAAa;YACb,UAAU;YACV,YAAY;YACZ,kBAAkB;YAClB,gBAAgB;YAChB,cAAc,CAAA,EAAA,CAAA,CAAA;;4FAGL,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBA5BpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,yBAAyB;wBACzB,yBAAyB;wBACzB,uBAAuB;wBACvB,4BAA4B;AAC7B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,+BAA+B;wBAC/B,YAAY;wBACZ,WAAW;wBACX,WAAW;wBACX,eAAe;wBACf,mBAAmB;wBACnB,WAAW;wBACX,UAAU;wBACV,uBAAuB;wBACvB,YAAY;wBACZ,iCAAiC;wBACjC,aAAa;wBACb,UAAU;wBACV,YAAY;wBACZ,kBAAkB;wBAClB,gBAAgB;wBAChB,cAAc;AACf,qBAAA;AACF,iBAAA;;;ACrED;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
1
+ {"version":3,"file":"valtimo-form-flow-management.mjs","sources":["../../../../projects/valtimo/form-flow-management/src/lib/models/form-flow.model.ts","../../../../projects/valtimo/form-flow-management/src/lib/models/index.ts","../../../../projects/valtimo/form-flow-management/src/lib/services/form-flow.service.ts","../../../../projects/valtimo/form-flow-management/src/lib/services/index.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/new-form-flow-modal/new-form-flow-modal.component.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/new-form-flow-modal/new-form-flow-modal.component.html","../../../../projects/valtimo/form-flow-management/src/lib/components/overview/form-flow-overview.component.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/overview/form-flow-overview.component.html","../../../../projects/valtimo/form-flow-management/src/lib/services/form-flow-download.service.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/editor/form-flow-editor.component.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/editor/form-flow-editor.component.html","../../../../projects/valtimo/form-flow-management/src/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.ts","../../../../projects/valtimo/form-flow-management/src/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.html","../../../../projects/valtimo/form-flow-management/src/lib/form-flow-management.module.ts","../../../../projects/valtimo/form-flow-management/src/public-api.ts","../../../../projects/valtimo/form-flow-management/src/valtimo-form-flow-management.ts"],"sourcesContent":["/*\n * Copyright 2015-2025 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\ninterface ListFormFlowDefinition {\n key: string;\n versions: Array<number>;\n readOnly?: boolean;\n}\n\ninterface FormFlowDefinition {\n key: string;\n readOnly?: boolean;\n startStep: string;\n steps: Array<FormFlowStep>;\n}\n\ninterface FormFlowDefinitionId {\n key: string;\n version: number;\n}\n\ninterface FormFlowStep {\n key: string;\n nextSteps: Array<FormFlowNextStep>;\n onBack: Array<string>;\n onOpen: Array<string>;\n onComplete: Array<string>;\n type: FormFlowStepType;\n}\n\ninterface FormFlowNextStep {\n condition?: string;\n step: string;\n}\n\ninterface FormFlowStepType {\n name: string;\n properties: FormStepTypeProperties | CustomComponentStepTypeProperties;\n}\n\ninterface FormStepTypeProperties {\n definition: string;\n}\n\ninterface CustomComponentStepTypeProperties {\n componentId: string;\n}\n\ninterface DeleteFormFlowsRequest {\n formFlowKeys: Array<string>;\n}\n\ninterface LoadedValue<T> {\n isLoading: boolean;\n value?: T;\n}\n\ninterface FormFlowEditorParams {\n formFlowDefinitionKey: string;\n caseDefinitionKey: string;\n caseDefinitionVersionTag: string;\n}\n\nexport {\n ListFormFlowDefinition,\n FormFlowDefinition,\n FormFlowDefinitionId,\n FormFlowStep,\n FormFlowNextStep,\n FormFlowStepType,\n FormStepTypeProperties,\n CustomComponentStepTypeProperties,\n DeleteFormFlowsRequest,\n LoadedValue,\n FormFlowEditorParams,\n};\n","/*\n * Copyright 2015-2025 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\nexport * from './form-flow.model';\n","/*\n * Copyright 2015-2025 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\nimport {HttpClient} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {ConfigService, Page, BaseApiService} from '@valtimo/shared';\nimport {BehaviorSubject, catchError, Observable, of, switchMap, take, tap} from 'rxjs';\nimport {FormFlowDefinition, FormFlowDefinitionId, ListFormFlowDefinition} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class FormFlowService extends BaseApiService {\n constructor(\n protected readonly httpClient: HttpClient,\n protected readonly configService: ConfigService\n ) {\n super(httpClient, configService);\n }\n\n public getFormFlowDefinitions(\n caseDefinitionKey: string,\n caseVersionTag: string\n ): Observable<Page<ListFormFlowDefinition>> {\n return this.httpClient.get<Page<ListFormFlowDefinition>>(\n this.getApiUrl(\n `management/v1/case-definition/${caseDefinitionKey}/version/${caseVersionTag}/form-flow-definition`\n )\n );\n }\n\n public getFormFlowDefinitionByKey(\n caseDefinitionKey: string,\n caseVersionTag: string,\n formFlowDefinitionKey: string\n ): Observable<FormFlowDefinition> {\n return this.httpClient.get<FormFlowDefinition>(\n this.getApiUrl(\n `management/v1/case-definition/${caseDefinitionKey}/version/${caseVersionTag}/form-flow-definition/${formFlowDefinitionKey}`\n )\n );\n }\n\n public createFormFlowDefinition(\n caseDefinitionKey: string,\n caseVersionTag: string,\n definition: FormFlowDefinition\n ): Observable<FormFlowDefinition> {\n return this.httpClient.post<FormFlowDefinition>(\n this.getApiUrl(\n `management/v1/case-definition/${caseDefinitionKey}/version/${caseVersionTag}/form-flow-definition`\n ),\n definition\n );\n }\n\n public deleteFormFlowDefinition(\n caseDefinitionKey: string,\n caseVersionTag: string,\n definitionKey: string\n ): Observable<null> {\n return this.httpClient.delete<null>(\n this.getApiUrl(\n `management/v1/case-definition/${caseDefinitionKey}/version/${caseVersionTag}/form-flow-definition/${definitionKey}`\n )\n );\n }\n\n public updateFormFlowDefinition(\n caseDefinitionKey: string,\n caseVersionTag: string,\n definitionKey: string,\n updatedDefinition: FormFlowDefinition\n ): Observable<FormFlowDefinition> {\n return this.httpClient.put<FormFlowDefinition>(\n this.getApiUrl(\n `management/v1/case-definition/${caseDefinitionKey}/version/${caseVersionTag}/form-flow-definition/${definitionKey}`\n ),\n updatedDefinition\n );\n }\n}\n","/*\n * Copyright 2015-2025 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\nexport * from './form-flow.service';\n","/*\n * Copyright 2015-2025 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\nimport {ChangeDetectionStrategy, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {FormBuilder, Validators} from '@angular/forms';\nimport {FormFlowDefinition} from '../../models';\nimport {CARBON_CONSTANTS} from '@valtimo/components';\n\n@Component({\n standalone: false,\n selector: 'valtimo-new-form-flow-modal',\n templateUrl: './new-form-flow-modal.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NewFormFlowModalComponent {\n @Input() open = false;\n @Output() closeEvent = new EventEmitter<FormFlowDefinition | null>();\n\n public form = this.fb.group({\n key: this.fb.control('', Validators.required),\n });\n\n public get key() {\n return this.form?.get('key');\n }\n\n constructor(private readonly fb: FormBuilder) {}\n\n public onCancel(): void {\n this.closeEvent.emit(null);\n this.resetForm();\n }\n\n public onConfirm(): void {\n if (!this.key) {\n return;\n }\n\n this.closeEvent.emit({\n key: this.key.value ?? '',\n startStep: 'start-step',\n steps: [],\n });\n this.resetForm();\n }\n\n private resetForm(): void {\n setTimeout(() => {\n this.form.reset();\n }, CARBON_CONSTANTS.modalAnimationMs);\n }\n}\n","<!--\n ~ Copyright 2015-2025 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\n [open]=\"open\"\n showFooter=\"true\"\n [title]=\"'formFlow.add' | translate\"\n valtimoCdsModal\n (close)=\"onCancel()\"\n>\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","/*\n * Copyright 2015-2025 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 */\nimport {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {TranslateService} from '@ngx-translate/core';\nimport {ActionItem, CarbonListComponent, ColumnConfig, ViewType} from '@valtimo/components';\nimport {\n CaseManagementParams,\n EditPermissionsService,\n getCaseManagementRouteParams,\n GlobalNotificationService,\n Page,\n} from '@valtimo/shared';\nimport {BehaviorSubject, combineLatest, map, Observable, of, switchMap, tap} from 'rxjs';\nimport {FormFlowDefinition, ListFormFlowDefinition} from '../../models';\nimport {FormFlowService} from '../../services';\n\n@Component({\n standalone: false,\n templateUrl: './form-flow-overview.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormFlowOverviewComponent {\n @ViewChild(CarbonListComponent) carbonList: CarbonListComponent;\n\n public readonly FIELDS: ColumnConfig[] = [\n {\n viewType: ViewType.TEXT,\n key: 'key',\n label: 'formFlow.key',\n },\n {\n viewType: ViewType.TEXT,\n key: 'versions.0',\n label: 'formFlow.version',\n },\n {\n viewType: ViewType.BOOLEAN,\n key: 'readOnly',\n label: 'formFlow.readOnly',\n },\n ];\n\n public readonly ACTION_ITEMS: ActionItem[] = [\n {\n callback: this.editFormFlowDetails.bind(this),\n label: 'interface.edit',\n },\n {\n callback: this.deleteFormFlow.bind(this),\n label: 'interface.delete',\n type: 'danger',\n },\n ];\n\n public readonly loading$ = new BehaviorSubject<boolean>(true);\n public readonly showDeleteModal$ = new BehaviorSubject<boolean>(false);\n public readonly deleteDefinitionKey$ = new BehaviorSubject<string | null>(null);\n\n private _params: CaseManagementParams | undefined = undefined;\n private readonly _refresh$ = new BehaviorSubject<null>(null);\n public readonly formFlowDefinitions$: Observable<ListFormFlowDefinition[]> = combineLatest([\n getCaseManagementRouteParams(this.route),\n this._refresh$,\n ]).pipe(\n tap(([params]) => {\n this.loading$.next(true);\n this._params = params;\n }),\n switchMap(([params]) =>\n !params\n ? of(null)\n : this.formFlowService.getFormFlowDefinitions(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag\n )\n ),\n map((formFlows: Page<ListFormFlowDefinition> | null) => {\n this.loading$.next(false);\n return !formFlows ? [] : formFlows.content;\n })\n );\n public readonly showAddModal$ = new BehaviorSubject<boolean>(false);\n\n public readonly params$ = getCaseManagementRouteParams(this.route);\n\n public readonly hasEditPermissions$: Observable<boolean> = this.params$.pipe(\n switchMap(params =>\n this.editPermissionsService.hasEditPermissions(\n params?.caseDefinitionKey,\n params?.caseDefinitionVersionTag\n )\n )\n );\n\n constructor(\n private readonly formFlowService: FormFlowService,\n private readonly globalNotificationService: GlobalNotificationService,\n private readonly route: ActivatedRoute,\n private readonly router: Router,\n private readonly translateService: TranslateService,\n private readonly editPermissionsService: EditPermissionsService\n ) {}\n\n public openAddModal(): void {\n this.showAddModal$.next(true);\n }\n\n public onAdd(formFlowDefinition: FormFlowDefinition | null): void {\n this.showAddModal$.next(false);\n\n if (!formFlowDefinition || !this._params) return;\n\n this.formFlowService\n .createFormFlowDefinition(\n this._params.caseDefinitionKey,\n this._params.caseDefinitionVersionTag,\n formFlowDefinition\n )\n .subscribe((formFlowDefinition: FormFlowDefinition) => {\n this.showAddModal$.next(false);\n this.router.navigate([formFlowDefinition.key], {relativeTo: this.route});\n });\n }\n\n public editFormFlowDetails(formFlowDefinition: ListFormFlowDefinition): void {\n this.router.navigate([formFlowDefinition.key], {relativeTo: this.route});\n }\n\n public deleteFormFlow(item: ListFormFlowDefinition): void {\n this.deleteDefinitionKey$.next(item.key);\n this.showDeleteModal$.next(true);\n }\n\n public onDelete(definitionKey: string): void {\n if (!this._params) return;\n\n this.formFlowService\n .deleteFormFlowDefinition(\n this._params.caseDefinitionKey,\n this._params.caseDefinitionVersionTag,\n definitionKey\n )\n .subscribe(() => {\n this.globalNotificationService.showToast({\n title: this.translateService.instant('interface.delete'),\n caption: this.translateService.instant('formFlow.deletedSuccessfully', {\n key: definitionKey,\n }),\n type: 'success',\n });\n this._refresh$.next(null);\n });\n }\n}\n","<!--\n ~ Copyright 2015-2025 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 [actionItems]=\"ACTION_ITEMS\"\n [header]=\"false\"\n [items]=\"formFlowDefinitions$ | async\"\n [fields]=\"FIELDS\"\n [loading]=\"loading$ | async\"\n (rowClicked)=\"editFormFlowDetails($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 *ngIf=\"hasEditPermissions$ | async\" 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\n<valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"interface.delete\"\n confirmButtonType=\"danger\"\n contentTranslationKey=\"formFlow.deleteModalContent\"\n [outputOnConfirm]=\"deleteDefinitionKey$ | async\"\n [showModalSubject$]=\"showDeleteModal$\"\n titleTranslationKey=\"interface.delete\"\n (confirmEvent)=\"onDelete($event)\"\n></valtimo-confirmation-modal>\n","/*\n * Copyright 2015-2025 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 */\nimport {Injectable} from '@angular/core';\nimport {CaseManagementParams} from '@valtimo/shared';\n\n@Injectable({providedIn: 'root'})\nexport class FormFlowDownloadService {\n public downloadJson(\n json: object,\n params: CaseManagementParams & {formFlowDefinitionKey: string}\n ): void {\n const sJson = JSON.stringify(json, null, 2);\n const element = document.createElement('a');\n element.setAttribute('href', 'data:text/json;charset=UTF-8,' + encodeURIComponent(sJson));\n element.setAttribute(\n 'download',\n `${params.caseDefinitionKey}-${params.caseDefinitionVersionTag}-${params.formFlowDefinitionKey}.formflow.json`\n );\n element.style.display = 'none';\n document.body.appendChild(element);\n element.click(); // simulate click\n document.body.removeChild(element);\n }\n}\n","/*\n * Copyright 2015-2025 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 */\nimport {ChangeDetectionStrategy, Component, OnDestroy} from '@angular/core';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {ArrowLeft16} from '@carbon/icons';\nimport {TranslateService} from '@ngx-translate/core';\nimport {\n BreadcrumbService,\n EditorModel,\n PageHeaderService,\n PageTitleService,\n} from '@valtimo/components';\nimport {\n CaseManagementParams,\n getCaseManagementRouteParams,\n GlobalNotificationService,\n} from '@valtimo/shared';\nimport {IconService} from 'carbon-components-angular';\nimport {\n BehaviorSubject,\n combineLatest,\n finalize,\n map,\n Observable,\n switchMap,\n take,\n tap,\n} from 'rxjs';\nimport {FormFlowDefinition, FormFlowDefinitionId, FormFlowEditorParams} from '../../models';\nimport {FormFlowService} from '../../services';\nimport {FormFlowDownloadService} from '../../services/form-flow-download.service';\nimport formFlowSchemaJson from './formflow.schema.json';\n\n@Component({\n standalone: false,\n templateUrl: './form-flow-editor.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./form-flow-editor.component.scss'],\n})\nexport class FormFlowEditorComponent implements OnDestroy {\n public readonly readOnly$ = new BehaviorSubject<boolean>(false);\n public readonly valid$ = new BehaviorSubject<boolean>(false);\n public readonly loading$ = new BehaviorSubject<boolean>(true);\n public readonly showDeleteModal$ = new BehaviorSubject<boolean>(false);\n public readonly formFlowDefinitionId$ = new BehaviorSubject<FormFlowDefinitionId | null>(null);\n public readonly CARBON_THEME = 'g10';\n\n private readonly _params$: Observable<FormFlowEditorParams> = combineLatest([\n getCaseManagementRouteParams(this.route),\n this.route.params as Observable<{formFlowDefinitionKey: string}>,\n ]).pipe(\n map(([caseManagementParams, params]) => ({\n ...(caseManagementParams ?? {caseDefinitionKey: '', caseDefinitionVersionTag: ''}),\n ...params,\n }))\n );\n public readonly formFlowSchemaJson = formFlowSchemaJson;\n\n private readonly _formFlowDefinition2$ = this._params$.pipe(\n tap(() => this.loading$.next(true)),\n switchMap((params: FormFlowEditorParams) => {\n this.initBreadcrumbs(params);\n\n return this.formFlowService.getFormFlowDefinitionByKey(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag,\n params.formFlowDefinitionKey\n );\n }),\n tap((formFlowDefinition: FormFlowDefinition) => {\n this.pageTitleService.setCustomPageTitle(formFlowDefinition.key);\n this.readOnly$.next(formFlowDefinition.readOnly === true);\n this.loading$.next(false);\n })\n );\n public readonly model$: Observable<EditorModel> = this._formFlowDefinition2$.pipe(\n map((formFlowDefinition: FormFlowDefinition) => this.getEditorModel(formFlowDefinition))\n );\n\n private readonly _updatedModelValue$ = new BehaviorSubject<string>('');\n\n public readonly compactMode$ = this.pageHeaderService.compactMode$;\n\n constructor(\n private readonly breadcrumbService: BreadcrumbService,\n private readonly formFlowDownloadService: FormFlowDownloadService,\n private readonly formFlowService: FormFlowService,\n private readonly iconService: IconService,\n private readonly notificationService: GlobalNotificationService,\n private readonly pageHeaderService: PageHeaderService,\n private readonly pageTitleService: PageTitleService,\n private readonly route: ActivatedRoute,\n private readonly router: Router,\n private readonly translateService: TranslateService\n ) {\n this.iconService.registerAll([ArrowLeft16]);\n this.pageTitleService.disableReset();\n }\n\n public ngOnDestroy(): void {\n this.pageTitleService.enableReset();\n this.breadcrumbService.clearThirdBreadcrumb();\n this.breadcrumbService.clearFourthBreadcrumb();\n }\n\n public onValid(valid: boolean): void {\n this.valid$.next(valid);\n }\n\n public onValueChange(value: string): void {\n this._updatedModelValue$.next(value);\n }\n\n public updateFormFlowDefinition(): void {\n this.loading$.next(true);\n\n combineLatest([this._params$, this._updatedModelValue$])\n .pipe(\n take(1),\n switchMap(([params, updatedModelValue]) =>\n this.formFlowService.updateFormFlowDefinition(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag,\n params.formFlowDefinitionKey,\n {\n ...(JSON.parse(updatedModelValue) as FormFlowDefinition),\n key: params.formFlowDefinitionKey,\n }\n )\n ),\n finalize(() => this.loading$.next(false))\n )\n .subscribe(result => {\n this.showSuccessMessage(result.key);\n });\n }\n\n public onDelete(): void {\n this.loading$.next(true);\n this._params$\n .pipe(\n take(1),\n switchMap((params: CaseManagementParams & {formFlowDefinitionKey: string}) =>\n this.formFlowService.deleteFormFlowDefinition(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag,\n params.formFlowDefinitionKey\n )\n )\n )\n .subscribe(() => {\n this.router.navigate(['../'], {relativeTo: this.route});\n });\n }\n\n public showDeleteModal(): void {\n this.showDeleteModal$.next(true);\n }\n\n public downloadFormFlowDefinition(model: EditorModel): void {\n this._params$\n .pipe(take(1))\n .subscribe((params: CaseManagementParams & {formFlowDefinitionKey: string}) =>\n this.formFlowDownloadService.downloadJson(JSON.parse(model.value), params)\n );\n }\n\n public navigateBack(): void {\n this.router.navigate(['../'], {relativeTo: this.route});\n }\n\n private getEditorModel(formFlowDefinition: FormFlowDefinition): EditorModel {\n const clone = {...formFlowDefinition};\n delete clone.readOnly;\n return {\n value: JSON.stringify(clone),\n language: 'json',\n };\n }\n\n private showSuccessMessage(formFlowDefinitionKey: string): void {\n this.notificationService.showToast({\n caption: this.translateService.instant('formFlow.savedSuccessTitleMessage', {\n key: formFlowDefinitionKey,\n }),\n type: 'success',\n title: this.translateService.instant('formFlow.savedSuccessTitle'),\n });\n }\n\n private initBreadcrumbs(params: FormFlowEditorParams): void {\n const route = `/case-management/case/${params.caseDefinitionKey}/version/${params.caseDefinitionVersionTag}`;\n\n this.breadcrumbService.setThirdBreadcrumb({\n route: [route],\n content: `${params.caseDefinitionKey} (${params.caseDefinitionVersionTag})`,\n href: route,\n });\n\n const routeWithFormFlows = `${route}/form-flows`;\n\n this.breadcrumbService.setFourthBreadcrumb({\n route: [routeWithFormFlows],\n content: this.translateService.instant('caseManagement.tabs.formFlows'),\n href: routeWithFormFlows,\n });\n }\n}\n","<!--\n ~ Copyright 2015-2025 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@if (model$ | async; as model) {\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} @else {\n <cds-loading></cds-loading>\n}\n\n<ng-container renderInPageHeader>\n <ng-template>\n <div\n *ngIf=\"{\n compactMode: compactMode$ | async,\n valid: valid$ | async,\n readOnly: readOnly$ | async,\n model: model$ | async,\n } as obs\"\n class=\"buttons-container\"\n >\n <cds-overflow-menu>\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 cdsButton=\"secondary\" [size]=\"obs.compactMode ? 'sm' : 'md'\" (click)=\"navigateBack()\">\n {{ 'interface.back' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"arrow--left\" size=\"16\"></svg>\n </button>\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 </ng-template>\n</ng-container>\n\n<valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"interface.delete\"\n confirmButtonType=\"danger\"\n contentTranslationKey=\"formFlow.deleteModalContent\"\n [showModalSubject$]=\"showDeleteModal$\"\n titleTranslationKey=\"interface.delete\"\n (confirmEvent)=\"onDelete()\"\n></valtimo-confirmation-modal>\n","/*\n * Copyright 2015-2025 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\nimport {ChangeDetectionStrategy, Component, EventEmitter, Input, Output} from '@angular/core';\nimport {Observable} from 'rxjs';\n\n@Component({\n standalone: false,\n selector: 'valtimo-delete-form-flow-modal',\n templateUrl: './delete-form-flow-modal.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DeleteFormFlowModalComponent {\n @Input() deleteFormFlowDefinitionKey: string;\n @Input() showDeleteModal$: Observable<boolean>;\n @Output() deleteEvent = new EventEmitter<string>();\n\n public onDelete(formFlowDefinitionKey: string): void {\n this.deleteEvent.emit(formFlowDefinitionKey);\n }\n}\n","<!--\n ~ Copyright 2015-2025 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","/*\n * Copyright 2015-2025 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\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {\n CarbonListModule,\n ConfirmationModalModule,\n EditorModule,\n RenderInPageHeaderDirective,\n} from '@valtimo/components';\nimport {FormFlowOverviewComponent} from './components/overview/form-flow-overview.component';\nimport {NewFormFlowModalComponent} from './components/new-form-flow-modal/new-form-flow-modal.component';\nimport {\n ButtonModule,\n DialogModule,\n DropdownModule,\n IconModule,\n InputModule,\n LoadingModule,\n ModalModule,\n NotificationModule,\n} from 'carbon-components-angular';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {FormFlowEditorComponent} from './components/editor/form-flow-editor.component';\nimport {DeleteFormFlowModalComponent} from './components/delete-form-flow-modal/delete-form-flow-modal.component';\n\n@NgModule({\n declarations: [\n FormFlowOverviewComponent,\n NewFormFlowModalComponent,\n FormFlowEditorComponent,\n DeleteFormFlowModalComponent,\n ],\n imports: [\n CommonModule,\n ButtonModule,\n FormsModule,\n ModalModule,\n TranslateModule,\n ReactiveFormsModule,\n InputModule,\n IconModule,\n ConfirmationModalModule,\n EditorModule,\n RenderInPageHeaderDirective,\n LoadingModule,\n IconModule,\n DialogModule,\n NotificationModule,\n CarbonListModule,\n DropdownModule,\n ConfirmationModalModule,\n ],\n})\nexport class FormFlowManagementModule {}\n","/*\n * Copyright 2015-2025 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/*\n * Public API Surface of form-flow\n */\n\nexport * from './lib/models';\nexport * from './lib/services';\nexport * from './lib/components/overview/form-flow-overview.component';\nexport * from './lib/components/editor/form-flow-editor.component';\nexport * from './lib/form-flow-management.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2","i3","i1.FormFlowService","i6","i7","i8.NewFormFlowModalComponent","i2.FormFlowDownloadService","i3.FormFlowService","i4","i5","i8"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACWG,MAAO,eAAgB,SAAQ,cAAc,CAAA;IACjD,WACqB,CAAA,UAAsB,EACtB,aAA4B,EAAA;AAE/C,QAAA,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC;QAHb,IAAU,CAAA,UAAA,GAAV,UAAU;QACV,IAAa,CAAA,aAAA,GAAb,aAAa;;IAK3B,sBAAsB,CAC3B,iBAAyB,EACzB,cAAsB,EAAA;AAEtB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CACxB,IAAI,CAAC,SAAS,CACZ,iCAAiC,iBAAiB,CAAA,SAAA,EAAY,cAAc,CAAuB,qBAAA,CAAA,CACpG,CACF;;AAGI,IAAA,0BAA0B,CAC/B,iBAAyB,EACzB,cAAsB,EACtB,qBAA6B,EAAA;AAE7B,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CACxB,IAAI,CAAC,SAAS,CACZ,CAAiC,8BAAA,EAAA,iBAAi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
@@ -1 +1 @@
1
- {"version":3,"file":"delete-form-flow-modal.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form-flow-management/src/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqC,YAAY,EAAgB,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;;AAEhC,qBAKa,4BAA4B;IAC9B,2BAA2B,EAAE,MAAM,CAAC;IACpC,gBAAgB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACrC,WAAW,uBAA8B;IAE5C,QAAQ,CAAC,qBAAqB,EAAE,MAAM,GAAG,IAAI;yCALzC,4BAA4B;2CAA5B,4BAA4B;CAQxC"}
1
+ {"version":3,"file":"delete-form-flow-modal.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form-flow-management/src/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqC,YAAY,EAAgB,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;;AAEhC,qBAMa,4BAA4B;IAC9B,2BAA2B,EAAE,MAAM,CAAC;IACpC,gBAAgB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACrC,WAAW,uBAA8B;IAE5C,QAAQ,CAAC,qBAAqB,EAAE,MAAM,GAAG,IAAI;yCALzC,4BAA4B;2CAA5B,4BAA4B;CAQxC"}
@@ -1,33 +1,32 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { FormFlowService } from '../../services/form-flow.service';
3
- import { BehaviorSubject, Observable } from 'rxjs';
1
+ import { OnDestroy } from '@angular/core';
4
2
  import { ActivatedRoute, Router } from '@angular/router';
5
- import { EditorModel, PageHeaderService, PageTitleService } from '@valtimo/components';
6
- import { FormFlowDefinition, FormFlowDefinitionId, LoadedValue } from '../../models';
7
- import { NotificationService } from 'carbon-components-angular';
8
3
  import { TranslateService } from '@ngx-translate/core';
4
+ import { BreadcrumbService, EditorModel, PageHeaderService, PageTitleService } from '@valtimo/components';
5
+ import { GlobalNotificationService } from '@valtimo/shared';
6
+ import { IconService } from 'carbon-components-angular';
7
+ import { BehaviorSubject, Observable } from 'rxjs';
8
+ import { FormFlowDefinitionId } from '../../models';
9
+ import { FormFlowService } from '../../services';
9
10
  import { FormFlowDownloadService } from '../../services/form-flow-download.service';
10
- import { ListItem } from 'carbon-components-angular/dropdown';
11
11
  import * as i0 from "@angular/core";
12
- export declare class FormFlowEditorComponent implements OnInit, OnDestroy {
12
+ export declare class FormFlowEditorComponent implements OnDestroy {
13
+ private readonly breadcrumbService;
14
+ private readonly formFlowDownloadService;
13
15
  private readonly formFlowService;
14
- private readonly route;
16
+ private readonly iconService;
17
+ private readonly notificationService;
18
+ private readonly pageHeaderService;
15
19
  private readonly pageTitleService;
20
+ private readonly route;
16
21
  private readonly router;
17
- private readonly notificationService;
18
22
  private readonly translateService;
19
- private readonly formFlowDownloadService;
20
- private readonly pageHeaderService;
21
- readonly model$: BehaviorSubject<EditorModel>;
22
23
  readonly readOnly$: BehaviorSubject<boolean>;
23
24
  readonly valid$: BehaviorSubject<boolean>;
24
25
  readonly loading$: BehaviorSubject<boolean>;
25
26
  readonly showDeleteModal$: BehaviorSubject<boolean>;
26
- readonly formFlowDefinitionVersions$: BehaviorSubject<number[]>;
27
27
  readonly formFlowDefinitionId$: BehaviorSubject<FormFlowDefinitionId>;
28
- private _idSubscription;
29
- private _definitionSubscription;
30
28
  readonly CARBON_THEME = "g10";
29
+ private readonly _params$;
31
30
  readonly formFlowSchemaJson: {
32
31
  $schema: string;
33
32
  $id: string;
@@ -107,23 +106,22 @@ export declare class FormFlowEditorComponent implements OnInit, OnDestroy {
107
106
  };
108
107
  required: string[];
109
108
  };
109
+ private readonly _formFlowDefinition2$;
110
+ readonly model$: Observable<EditorModel>;
110
111
  private readonly _updatedModelValue$;
111
- readonly formFlowDefinitionVersionItems$: Observable<LoadedValue<Array<ListItem>>>;
112
- readonly formFlowDefinition$: Observable<FormFlowDefinition>;
113
112
  readonly compactMode$: Observable<boolean>;
114
- constructor(formFlowService: FormFlowService, route: ActivatedRoute, pageTitleService: PageTitleService, router: Router, notificationService: NotificationService, translateService: TranslateService, formFlowDownloadService: FormFlowDownloadService, pageHeaderService: PageHeaderService);
115
- ngOnInit(): void;
113
+ constructor(breadcrumbService: BreadcrumbService, formFlowDownloadService: FormFlowDownloadService, formFlowService: FormFlowService, iconService: IconService, notificationService: GlobalNotificationService, pageHeaderService: PageHeaderService, pageTitleService: PageTitleService, route: ActivatedRoute, router: Router, translateService: TranslateService);
116
114
  ngOnDestroy(): void;
117
115
  onValid(valid: boolean): void;
118
116
  onValueChange(value: string): void;
119
117
  updateFormFlowDefinition(): void;
120
- onDelete(formFlowDefinitionKey: string): void;
118
+ onDelete(): void;
121
119
  showDeleteModal(): void;
122
120
  downloadFormFlowDefinition(model: EditorModel): void;
123
- loadFormFlowDefinitionId(formFlowDefinitionId?: FormFlowDefinitionId): void;
124
- private openFormFlowDefinitionSubscription;
125
- private setModel;
121
+ navigateBack(): void;
122
+ private getEditorModel;
126
123
  private showSuccessMessage;
124
+ private initBreadcrumbs;
127
125
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowEditorComponent, never>;
128
126
  static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowEditorComponent, "ng-component", never, {}, {}, never, never, false, never>;
129
127
  }
@@ -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":"AAgBA,OAAO,EAAqC,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACpF,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AACjE,OAAO,EACL,eAAe,EAKf,UAAU,EAOX,MAAM,MAAM,CAAC;AACd,OAAO,EAAC,cA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AAmC;IAEvE,SAAgB,+BAA+B,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAqBrF;IACJ,SAAgB,mBAAmB,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAI/D;IAEJ,SAAgB,YAAY,sBAAuC;gBAGhD,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,cAAc,EACrB,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,gBAAgB,EAClC,uBAAuB,EAAE,uBAAuB,EAChD,iBAAiB,EAAE,iBAAiB;IAGhD,QAAQ,IAAI,IAAI;IAKhB,WAAW,IAAI,IAAI;IAMnB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAI7B,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIlC,wBAAwB,IAAI,IAAI;IAiChC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,GAAG,IAAI;IAW7C,eAAe,IAAI,IAAI;IAIvB,0BAA0B,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAMpD,wBAAwB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB;IAM3E,OAAO,CAAC,kCAAkC;IAkC1C,OAAO,CAAC,QAAQ;IAYhB,OAAO,CAAC,kBAAkB;yCAtLf,uBAAuB;2CAAvB,uBAAuB;CAiMnC"}
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,EAAqC,SAAS,EAAC,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAC,cAAc,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,iBAAi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E7C;IAEF,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAmC;IAEvE,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;IAM9C,WAAW,IAAI,IAAI;IAMnB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAI7B,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIlC,wBAAwB,IAAI,IAAI;IAwBhC,QAAQ,IAAI,IAAI;IAkBhB,eAAe,IAAI,IAAI;IAIvB,0BAA0B,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAQpD,YAAY,IAAI,IAAI;IAI3B,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,eAAe;yCAvJZ,uBAAuB;2CAAvB,uBAAuB;CAwKnC"}
@@ -1 +1 @@
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,EAAa,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;;AAGhD,qBAKa,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;IAcxB,OAAO,CAAC,SAAS;yCAjCN,yBAAyB;2CAAzB,yBAAyB;CAsCrC"}
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,EAAa,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;;AAGhD,qBAMa,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;IAaxB,OAAO,CAAC,SAAS;yCAhCN,yBAAyB;2CAAzB,yBAAyB;CAqCrC"}
@@ -1,23 +1,36 @@
1
- import { OnInit } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { CarbonListComponent, ColumnConfig } from '@valtimo/components';
1
+ import { ActivatedRoute, Router } from '@angular/router';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { ActionItem, CarbonListComponent, ColumnConfig } from '@valtimo/components';
4
+ import { CaseManagementParams, EditPermissionsService, GlobalNotificationService } from '@valtimo/shared';
4
5
  import { BehaviorSubject, Observable } from 'rxjs';
5
6
  import { FormFlowDefinition, ListFormFlowDefinition } from '../../models';
6
- import { FormFlowService } from '../../services/form-flow.service';
7
+ import { FormFlowService } from '../../services';
7
8
  import * as i0 from "@angular/core";
8
- export declare class FormFlowOverviewComponent implements OnInit {
9
+ export declare class FormFlowOverviewComponent {
9
10
  private readonly formFlowService;
11
+ private readonly globalNotificationService;
12
+ private readonly route;
10
13
  private readonly router;
14
+ private readonly translateService;
15
+ private readonly editPermissionsService;
11
16
  carbonList: CarbonListComponent;
12
- fields: ColumnConfig[];
17
+ readonly FIELDS: ColumnConfig[];
18
+ readonly ACTION_ITEMS: ActionItem[];
19
+ readonly loading$: BehaviorSubject<boolean>;
20
+ readonly showDeleteModal$: BehaviorSubject<boolean>;
21
+ readonly deleteDefinitionKey$: BehaviorSubject<string>;
22
+ private _params;
23
+ private readonly _refresh$;
13
24
  readonly formFlowDefinitions$: Observable<ListFormFlowDefinition[]>;
14
- readonly loading$: Observable<boolean>;
15
25
  readonly showAddModal$: BehaviorSubject<boolean>;
16
- constructor(formFlowService: FormFlowService, router: Router);
17
- ngOnInit(): void;
26
+ readonly params$: Observable<CaseManagementParams>;
27
+ readonly hasEditPermissions$: Observable<boolean>;
28
+ constructor(formFlowService: FormFlowService, globalNotificationService: GlobalNotificationService, route: ActivatedRoute, router: Router, translateService: TranslateService, editPermissionsService: EditPermissionsService);
18
29
  openAddModal(): void;
19
- onAdd(data: FormFlowDefinition | null): void;
20
- onRowClick(formFlow: ListFormFlowDefinition): void;
30
+ onAdd(formFlowDefinition: FormFlowDefinition | null): void;
31
+ editFormFlowDetails(formFlowDefinition: ListFormFlowDefinition): void;
32
+ deleteFormFlow(item: ListFormFlowDefinition): void;
33
+ onDelete(definitionKey: string): void;
21
34
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowOverviewComponent, never>;
22
35
  static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowOverviewComponent, "ng-component", never, {}, {}, never, never, false, never>;
23
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"form-flow-overview.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form-flow-management/src/lib/components/overview/form-flow-overview.component.ts"],"names":[],"mappings":"AAeA,OAAO,EAAqC,MAAM,EAAY,MAAM,eAAe,CAAC;AACpF,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAW,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,eAAe,EAAY,UAAU,EAAC,MAAM,MAAM,CAAC;AAC3D,OAAO,EAAC,kBAAkB,EAAE,sBAAsB,EAAC,MAAM,cAAc,CAAC;AACxE,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;;AAEjE,qBAIa,yBAA0B,YAAW,MAAM;IA2BpD,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;IA3BO,UAAU,EAAE,mBAAmB,CAAC;IAEzD,MAAM,EAAE,YAAY,EAAE,CAgB3B;IAEF,SAAgB,oBAAoB,EAAE,UAAU,CAAC,sBAAsB,EAAE,CAAC,CACxC;IAClC,SAAgB,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,CAAiC;IAC9E,SAAgB,aAAa,2BAAuC;gBAGjD,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,MAAM;IAG1B,QAAQ,IAAI,IAAI;IAIhB,YAAY,IAAI,IAAI;IAIpB,KAAK,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI,GAAG,IAAI;IAgB5C,UAAU,CAAC,QAAQ,EAAE,sBAAsB,GAAG,IAAI;yCAvD9C,yBAAyB;2CAAzB,yBAAyB;CA0DrC"}
1
+ {"version":3,"file":"form-flow-overview.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form-flow-management/src/lib/components/overview/form-flow-overview.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,cAAc,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAW,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EAEtB,yBAAyB,EAE1B,MAAM,iBAAiB,CAAC;AACzB,O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AAC,IAAI,EAAE,sBAAsB,GAAG,IAAI;IAKlD,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;yCAhHjC,yBAAyB;2CAAzB,yBAAyB;CAoIrC"}
@@ -4,14 +4,13 @@ import * as i2 from "./components/new-form-flow-modal/new-form-flow-modal.compon
4
4
  import * as i3 from "./components/editor/form-flow-editor.component";
5
5
  import * as i4 from "./components/delete-form-flow-modal/delete-form-flow-modal.component";
6
6
  import * as i5 from "@angular/common";
7
- import * as i6 from "./form-flow-management-routing.module";
8
- import * as i7 from "carbon-components-angular";
9
- import * as i8 from "@angular/forms";
10
- import * as i9 from "@ngx-translate/core";
11
- import * as i10 from "@valtimo/components";
7
+ import * as i6 from "carbon-components-angular";
8
+ import * as i7 from "@angular/forms";
9
+ import * as i8 from "@ngx-translate/core";
10
+ import * as i9 from "@valtimo/components";
12
11
  export declare class FormFlowManagementModule {
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowManagementModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormFlowManagementModule, [typeof i1.FormFlowOverviewComponent, typeof i2.NewFormFlowModalComponent, typeof i3.FormFlowEditorComponent, typeof i4.DeleteFormFlowModalComponent], [typeof i5.CommonModule, typeof i6.FormFlowManagementRoutingModule, typeof i7.ButtonModule, typeof i8.FormsModule, typeof i7.ModalModule, typeof i9.TranslateModule, typeof i8.ReactiveFormsModule, typeof i7.InputModule, typeof i7.IconModule, typeof i10.ConfirmationModalModule, typeof i10.EditorModule, typeof i10.RenderInPageHeaderDirectiveModule, typeof i7.LoadingModule, typeof i7.IconModule, typeof i7.DialogModule, typeof i7.NotificationModule, typeof i10.CarbonListModule, typeof i7.DropdownModule], never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormFlowManagementModule, [typeof i1.FormFlowOverviewComponent, typeof i2.NewFormFlowModalComponent, typeof i3.FormFlowEditorComponent, typeof i4.DeleteFormFlowModalComponent], [typeof i5.CommonModule, typeof i6.ButtonModule, typeof i7.FormsModule, typeof i6.ModalModule, typeof i8.TranslateModule, typeof i7.ReactiveFormsModule, typeof i6.InputModule, typeof i6.IconModule, typeof i9.ConfirmationModalModule, typeof i9.EditorModule, typeof i9.RenderInPageHeaderDirective, typeof i6.LoadingModule, typeof i6.IconModule, typeof i6.DialogModule, typeof i6.NotificationModule, typeof i9.CarbonListModule, typeof i6.DropdownModule, typeof i9.ConfirmationModalModule], never>;
15
14
  static ɵinj: i0.ɵɵInjectorDeclaration<FormFlowManagementModule>;
16
15
  }
17
16
  //# 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":";;;;;;;;;;;AA0CA,qBA4Ba,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAAG"}
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":";;;;;;;;;;AAyCA,qBA4Ba,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAAG"}
@@ -5,7 +5,6 @@ interface ListFormFlowDefinition {
5
5
  }
6
6
  interface FormFlowDefinition {
7
7
  key: string;
8
- version?: number;
9
8
  readOnly?: boolean;
10
9
  startStep: string;
11
10
  steps: Array<FormFlowStep>;
@@ -43,5 +42,10 @@ interface LoadedValue<T> {
43
42
  isLoading: boolean;
44
43
  value?: T;
45
44
  }
46
- export { ListFormFlowDefinition, FormFlowDefinition, FormFlowDefinitionId, FormFlowStep, FormFlowNextStep, FormFlowStepType, FormStepTypeProperties, CustomComponentStepTypeProperties, DeleteFormFlowsRequest, LoadedValue, };
45
+ interface FormFlowEditorParams {
46
+ formFlowDefinitionKey: string;
47
+ caseDefinitionKey: string;
48
+ caseDefinitionVersionTag: string;
49
+ }
50
+ export { ListFormFlowDefinition, FormFlowDefinition, FormFlowDefinitionId, FormFlowStep, FormFlowNextStep, FormFlowStepType, FormStepTypeProperties, CustomComponentStepTypeProperties, DeleteFormFlowsRequest, LoadedValue, FormFlowEditorParams, };
47
51
  //# sourceMappingURL=form-flow.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-flow.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/models/form-flow.model.ts"],"names":[],"mappings":"AAgBA,UAAU,sBAAsB;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,kBAAkB;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC5B;AAED,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,YAAY;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACnC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,sBAAsB,GAAG,iCAAiC,CAAC;CACxE;AAED,UAAU,sBAAsB;IAC9B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,iCAAiC;IACzC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,sBAAsB;IAC9B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED,UAAU,WAAW,CAAC,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,CAAC,CAAC;CACX;AAED,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,iCAAiC,EACjC,sBAAsB,EACtB,WAAW,GACZ,CAAC"}
1
+ {"version":3,"file":"form-flow.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/models/form-flow.model.ts"],"names":[],"mappings":"AAgBA,UAAU,sBAAsB;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,kBAAkB;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC5B;AAED,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,YAAY;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACnC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,sBAAsB,GAAG,iCAAiC,CAAC;CACxE;AAED,UAAU,sBAAsB;IAC9B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,iCAAiC;IACzC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,sBAAsB;IAC9B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED,UAAU,WAAW,CAAC,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,CAAC,CAAC;CACX;AAED,UAAU,oBAAoB;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,iCAAiC,EACjC,sBAAsB,EACtB,WAAW,EACX,oBAAoB,GACrB,CAAC"}
@@ -1,10 +1,9 @@
1
- import { FormFlowService } from './form-flow.service';
2
- import { FormFlowDefinitionId } from '../models';
1
+ import { CaseManagementParams } from '@valtimo/shared';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class FormFlowDownloadService {
5
- private readonly formFlowService;
6
- constructor(formFlowService: FormFlowService);
7
- downloadJson(json: object, formFlowDefinitionId: FormFlowDefinitionId): void;
4
+ downloadJson(json: object, params: CaseManagementParams & {
5
+ formFlowDefinitionKey: string;
6
+ }): void;
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowDownloadService, never>;
9
8
  static ɵprov: i0.ɵɵInjectableDeclaration<FormFlowDownloadService>;
10
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"form-flow-download.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/services/form-flow-download.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,WAAW,CAAC;;AAE/C,qBACa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,eAAe;IAEtD,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,oBAAoB,EAAE,oBAAoB,GAAG,IAAI;yCAHxE,uBAAuB;6CAAvB,uBAAuB;CAgBnC"}
1
+ {"version":3,"file":"form-flow-download.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/services/form-flow-download.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,oBAAoB,EAAC,MAAM,iBAAiB,CAAC;;AAErD,qBACa,uBAAuB;IAC3B,YAAY,CACjB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,oBAAoB,GAAG;QAAC,qBAAqB,EAAE,MAAM,CAAA;KAAC,GAC7D,IAAI;yCAJI,uBAAuB;6CAAvB,uBAAuB;CAiBnC"}
@@ -1,22 +1,17 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { ConfigService } from '@valtimo/config';
3
- import { BehaviorSubject, Observable } from 'rxjs';
4
- import { FormFlowDefinition, FormFlowDefinitionId, ListFormFlowDefinition } from '../models';
2
+ import { ConfigService, Page, BaseApiService } from '@valtimo/shared';
3
+ import { Observable } from 'rxjs';
4
+ import { FormFlowDefinition, ListFormFlowDefinition } from '../models';
5
5
  import * as i0 from "@angular/core";
6
- export declare class FormFlowService {
7
- private readonly configService;
8
- private readonly http;
9
- readonly formFlows$: BehaviorSubject<ListFormFlowDefinition[]>;
10
- readonly loading$: BehaviorSubject<boolean>;
11
- private valtimoEndpointUri;
12
- private get formFlowDefinitions$();
13
- constructor(configService: ConfigService, http: HttpClient);
14
- addFormFlow(definition: FormFlowDefinition): Observable<FormFlowDefinition>;
15
- deleteFormFlowDefinition(key: string): Observable<null>;
16
- dispatchAction(actionResult: Observable<FormFlowDefinition | null>): void;
17
- loadFormFlows(): void;
18
- getFormFlowDefinition(id: FormFlowDefinitionId): Observable<FormFlowDefinition>;
19
- updateFormFlowDefinition(key: string, updatedDefinition: FormFlowDefinition): Observable<FormFlowDefinition>;
6
+ export declare class FormFlowService extends BaseApiService {
7
+ protected readonly httpClient: HttpClient;
8
+ protected readonly configService: ConfigService;
9
+ constructor(httpClient: HttpClient, configService: ConfigService);
10
+ getFormFlowDefinitions(caseDefinitionKey: string, caseVersionTag: string): Observable<Page<ListFormFlowDefinition>>;
11
+ getFormFlowDefinitionByKey(caseDefinitionKey: string, caseVersionTag: string, formFlowDefinitionKey: string): Observable<FormFlowDefinition>;
12
+ createFormFlowDefinition(caseDefinitionKey: string, caseVersionTag: string, definition: FormFlowDefinition): Observable<FormFlowDefinition>;
13
+ deleteFormFlowDefinition(caseDefinitionKey: string, caseVersionTag: string, definitionKey: string): Observable<null>;
14
+ updateFormFlowDefinition(caseDefinitionKey: string, caseVersionTag: string, definitionKey: string, updatedDefinition: FormFlowDefinition): Observable<FormFlowDefinition>;
20
15
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowService, never>;
21
16
  static ɵprov: i0.ɵɵInjectableDeclaration<FormFlowService>;
22
17
  }