@valtimo/form-flow-management 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/README.md +33 -0
  2. package/fesm2022/valtimo-form-flow-management.mjs +696 -0
  3. package/fesm2022/valtimo-form-flow-management.mjs.map +1 -0
  4. package/index.d.ts +6 -0
  5. package/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.d.ts +12 -0
  6. package/lib/components/delete-form-flow-modal/delete-form-flow-modal.component.d.ts.map +1 -0
  7. package/lib/components/editor/form-flow-editor.component.d.ts +128 -0
  8. package/lib/components/editor/form-flow-editor.component.d.ts.map +1 -0
  9. package/lib/components/new-form-flow-modal/new-form-flow-modal.component.d.ts +20 -0
  10. package/lib/components/new-form-flow-modal/new-form-flow-modal.component.d.ts.map +1 -0
  11. package/lib/components/overview/form-flow-overview.component.d.ts +37 -0
  12. package/lib/components/overview/form-flow-overview.component.d.ts.map +1 -0
  13. package/lib/form-flow-management.module.d.ts +16 -0
  14. package/lib/form-flow-management.module.d.ts.map +1 -0
  15. package/lib/models/form-flow.model.d.ts +51 -0
  16. package/lib/models/form-flow.model.d.ts.map +1 -0
  17. package/lib/models/index.d.ts +2 -0
  18. package/lib/models/index.d.ts.map +1 -0
  19. package/lib/services/form-flow-download.service.d.ts +10 -0
  20. package/lib/services/form-flow-download.service.d.ts.map +1 -0
  21. package/lib/services/form-flow.service.d.ts +18 -0
  22. package/lib/services/form-flow.service.d.ts.map +1 -0
  23. package/lib/services/index.d.ts +2 -0
  24. package/lib/services/index.d.ts.map +1 -0
  25. package/package.json +23 -0
  26. package/public-api.d.ts +6 -0
  27. package/public-api.d.ts.map +1 -0
  28. package/valtimo-form-flow-management.d.ts.map +1 -0
@@ -0,0 +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/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,C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wBAC3B,aAAa;wBACb,UAAU;wBACV,YAAY;wBACZ,kBAAkB;wBAClB,gBAAgB;wBAChB,cAAc;wBACd,uBAAuB;AACxB,qBAAA;AACF,iBAAA;;;ACpED;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@valtimo/form-flow-management" />
5
+ export * from './public-api';
6
+ //# sourceMappingURL=valtimo-form-flow-management.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DeleteFormFlowModalComponent {
5
+ deleteFormFlowDefinitionKey: string;
6
+ showDeleteModal$: Observable<boolean>;
7
+ deleteEvent: EventEmitter<string>;
8
+ onDelete(formFlowDefinitionKey: string): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeleteFormFlowModalComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<DeleteFormFlowModalComponent, "valtimo-delete-form-flow-modal", never, { "deleteFormFlowDefinitionKey": { "alias": "deleteFormFlowDefinitionKey"; "required": false; }; "showDeleteModal$": { "alias": "showDeleteModal$"; "required": false; }; }, { "deleteEvent": "deleteEvent"; }, never, never, false, never>;
11
+ }
12
+ //# sourceMappingURL=delete-form-flow-modal.component.d.ts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,128 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
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';
10
+ import { FormFlowDownloadService } from '../../services/form-flow-download.service';
11
+ import * as i0 from "@angular/core";
12
+ export declare class FormFlowEditorComponent implements OnDestroy {
13
+ private readonly breadcrumbService;
14
+ private readonly formFlowDownloadService;
15
+ private readonly formFlowService;
16
+ private readonly iconService;
17
+ private readonly notificationService;
18
+ private readonly pageHeaderService;
19
+ private readonly pageTitleService;
20
+ private readonly route;
21
+ private readonly router;
22
+ private readonly translateService;
23
+ readonly readOnly$: BehaviorSubject<boolean>;
24
+ readonly valid$: BehaviorSubject<boolean>;
25
+ readonly loading$: BehaviorSubject<boolean>;
26
+ readonly showDeleteModal$: BehaviorSubject<boolean>;
27
+ readonly formFlowDefinitionId$: BehaviorSubject<FormFlowDefinitionId>;
28
+ readonly CARBON_THEME = "g10";
29
+ private readonly _params$;
30
+ readonly formFlowSchemaJson: {
31
+ $schema: string;
32
+ $id: string;
33
+ title: string;
34
+ description: string;
35
+ type: string;
36
+ properties: {
37
+ startStep: {
38
+ type: string;
39
+ description: string;
40
+ };
41
+ steps: {
42
+ type: string;
43
+ description: string;
44
+ items: {
45
+ type: string;
46
+ properties: {
47
+ key: {
48
+ type: string;
49
+ description: string;
50
+ };
51
+ type: {
52
+ type: string;
53
+ description: string;
54
+ properties: {
55
+ name: {
56
+ type: string;
57
+ description: string;
58
+ };
59
+ properties: {
60
+ type: string;
61
+ description: string;
62
+ };
63
+ };
64
+ required: string[];
65
+ };
66
+ onOpen: {
67
+ type: string;
68
+ description: string;
69
+ items: {
70
+ type: string;
71
+ description: string;
72
+ };
73
+ };
74
+ onComplete: {
75
+ type: string;
76
+ description: string;
77
+ items: {
78
+ type: string;
79
+ description: string;
80
+ };
81
+ };
82
+ nextSteps: {
83
+ type: string;
84
+ description: string;
85
+ items: {
86
+ type: string;
87
+ properties: {
88
+ step: {
89
+ type: string;
90
+ title: string;
91
+ };
92
+ condition: {
93
+ type: string[];
94
+ title: string;
95
+ };
96
+ };
97
+ required: string[];
98
+ };
99
+ };
100
+ };
101
+ required: string[];
102
+ };
103
+ minItems: number;
104
+ uniqueItems: boolean;
105
+ };
106
+ };
107
+ required: string[];
108
+ };
109
+ private readonly _formFlowDefinition2$;
110
+ readonly model$: Observable<EditorModel>;
111
+ private readonly _updatedModelValue$;
112
+ readonly compactMode$: Observable<boolean>;
113
+ constructor(breadcrumbService: BreadcrumbService, formFlowDownloadService: FormFlowDownloadService, formFlowService: FormFlowService, iconService: IconService, notificationService: GlobalNotificationService, pageHeaderService: PageHeaderService, pageTitleService: PageTitleService, route: ActivatedRoute, router: Router, translateService: TranslateService);
114
+ ngOnDestroy(): void;
115
+ onValid(valid: boolean): void;
116
+ onValueChange(value: string): void;
117
+ updateFormFlowDefinition(): void;
118
+ onDelete(): void;
119
+ showDeleteModal(): void;
120
+ downloadFormFlowDefinition(model: EditorModel): void;
121
+ navigateBack(): void;
122
+ private getEditorModel;
123
+ private showSuccessMessage;
124
+ private initBreadcrumbs;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowEditorComponent, never>;
126
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowEditorComponent, "ng-component", never, {}, {}, never, never, false, never>;
127
+ }
128
+ //# sourceMappingURL=form-flow-editor.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-flow-editor.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/form-flow-management/src/lib/components/editor/form-flow-editor.component.ts"],"names":[],"mappings":"AAeA,OAAO,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,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EACL,eAAe,EAIf,UAAU,EAIX,MAAM,MAAM,CAAC;AACd,OAAO,EAAqB,oBAAoB,EAAuB,MAAM,cAAc,CAAC;AAC5F,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;;AAGlF,qBAMa,uBAAwB,YAAW,SAAS;IA6CrD,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,uBAAuB;IACxC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IArDnC,SAAgB,SAAS,2BAAuC;IAChE,SAAgB,MAAM,2BAAuC;IAC7D,SAAgB,QAAQ,2BAAsC;IAC9D,SAAgB,gBAAgB,2BAAuC;IACvE,SAAgB,qBAAqB,wCAA0D;IAC/F,SAAgB,YAAY,SAAS;IAErC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAQvB;IACF,SAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAsB;IAExD,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAgBpC;IACF,SAAgB,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,CAE7C;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"}
@@ -0,0 +1,20 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormBuilder } from '@angular/forms';
3
+ import { FormFlowDefinition } from '../../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NewFormFlowModalComponent {
6
+ private readonly fb;
7
+ open: boolean;
8
+ closeEvent: EventEmitter<FormFlowDefinition>;
9
+ form: import("@angular/forms").FormGroup<{
10
+ key: import("@angular/forms").FormControl<string>;
11
+ }>;
12
+ get key(): import("@angular/forms").AbstractControl<string, string>;
13
+ constructor(fb: FormBuilder);
14
+ onCancel(): void;
15
+ onConfirm(): void;
16
+ private resetForm;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewFormFlowModalComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewFormFlowModalComponent, "valtimo-new-form-flow-modal", never, { "open": { "alias": "open"; "required": false; }; }, { "closeEvent": "closeEvent"; }, never, never, false, never>;
19
+ }
20
+ //# sourceMappingURL=new-form-flow-modal.component.d.ts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,37 @@
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';
5
+ import { BehaviorSubject, Observable } from 'rxjs';
6
+ import { FormFlowDefinition, ListFormFlowDefinition } from '../../models';
7
+ import { FormFlowService } from '../../services';
8
+ import * as i0 from "@angular/core";
9
+ export declare class FormFlowOverviewComponent {
10
+ private readonly formFlowService;
11
+ private readonly globalNotificationService;
12
+ private readonly route;
13
+ private readonly router;
14
+ private readonly translateService;
15
+ private readonly editPermissionsService;
16
+ carbonList: CarbonListComponent;
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$;
24
+ readonly formFlowDefinitions$: Observable<ListFormFlowDefinition[]>;
25
+ readonly showAddModal$: BehaviorSubject<boolean>;
26
+ readonly params$: Observable<CaseManagementParams>;
27
+ readonly hasEditPermissions$: Observable<boolean>;
28
+ constructor(formFlowService: FormFlowService, globalNotificationService: GlobalNotificationService, route: ActivatedRoute, router: Router, translateService: TranslateService, editPermissionsService: EditPermissionsService);
29
+ openAddModal(): void;
30
+ onAdd(formFlowDefinition: FormFlowDefinition | null): void;
31
+ editFormFlowDetails(formFlowDefinition: ListFormFlowDefinition): void;
32
+ deleteFormFlow(item: ListFormFlowDefinition): void;
33
+ onDelete(definitionKey: string): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowOverviewComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFlowOverviewComponent, "ng-component", never, {}, {}, never, never, false, never>;
36
+ }
37
+ //# sourceMappingURL=form-flow-overview.component.d.ts.map
@@ -0,0 +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":"AAgBA,OAAO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AyB,EACpD,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,sBAAsB;IAG1D,YAAY,IAAI,IAAI;IAIpB,KAAK,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,GAAG,IAAI;IAiB1D,mBAAmB,CAAC,kBAAkB,EAAE,sBAAsB,GAAG,IAAI;IAIrE,cAAc,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI;IAKlD,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;yCAhHjC,yBAAyB;2CAAzB,yBAAyB;CAoIrC"}
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/overview/form-flow-overview.component";
3
+ import * as i2 from "./components/new-form-flow-modal/new-form-flow-modal.component";
4
+ import * as i3 from "./components/editor/form-flow-editor.component";
5
+ import * as i4 from "./components/delete-form-flow-modal/delete-form-flow-modal.component";
6
+ import * as i5 from "@angular/common";
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";
11
+ export declare class FormFlowManagementModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowManagementModule, 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>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormFlowManagementModule>;
15
+ }
16
+ //# sourceMappingURL=form-flow-management.module.d.ts.map
@@ -0,0 +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":";;;;;;;;;;AAyCA,qBA4Ba,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAAG"}
@@ -0,0 +1,51 @@
1
+ interface ListFormFlowDefinition {
2
+ key: string;
3
+ versions: Array<number>;
4
+ readOnly?: boolean;
5
+ }
6
+ interface FormFlowDefinition {
7
+ key: string;
8
+ readOnly?: boolean;
9
+ startStep: string;
10
+ steps: Array<FormFlowStep>;
11
+ }
12
+ interface FormFlowDefinitionId {
13
+ key: string;
14
+ version: number;
15
+ }
16
+ interface FormFlowStep {
17
+ key: string;
18
+ nextSteps: Array<FormFlowNextStep>;
19
+ onBack: Array<string>;
20
+ onOpen: Array<string>;
21
+ onComplete: Array<string>;
22
+ type: FormFlowStepType;
23
+ }
24
+ interface FormFlowNextStep {
25
+ condition?: string;
26
+ step: string;
27
+ }
28
+ interface FormFlowStepType {
29
+ name: string;
30
+ properties: FormStepTypeProperties | CustomComponentStepTypeProperties;
31
+ }
32
+ interface FormStepTypeProperties {
33
+ definition: string;
34
+ }
35
+ interface CustomComponentStepTypeProperties {
36
+ componentId: string;
37
+ }
38
+ interface DeleteFormFlowsRequest {
39
+ formFlowKeys: Array<string>;
40
+ }
41
+ interface LoadedValue<T> {
42
+ isLoading: boolean;
43
+ value?: T;
44
+ }
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, };
51
+ //# sourceMappingURL=form-flow.model.d.ts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,2 @@
1
+ export * from './form-flow.model';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/models/index.ts"],"names":[],"mappings":"AAgBA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { CaseManagementParams } from '@valtimo/shared';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormFlowDownloadService {
4
+ downloadJson(json: object, params: CaseManagementParams & {
5
+ formFlowDefinitionKey: string;
6
+ }): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowDownloadService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormFlowDownloadService>;
9
+ }
10
+ //# sourceMappingURL=form-flow-download.service.d.ts.map
@@ -0,0 +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":"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"}
@@ -0,0 +1,18 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ConfigService, Page, BaseApiService } from '@valtimo/shared';
3
+ import { Observable } from 'rxjs';
4
+ import { FormFlowDefinition, ListFormFlowDefinition } from '../models';
5
+ import * as i0 from "@angular/core";
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>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFlowService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormFlowService>;
17
+ }
18
+ //# sourceMappingURL=form-flow.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-flow.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/services/form-flow.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAC,aAAa,EAAE,IAAI,EAAE,cAAc,EAAC,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAA8B,UAAU,EAA2B,MAAM,MAAM,CAAC;AACvF,OAAO,EAAC,kBAAkB,EAAwB,sBAAsB,EAAC,MAAM,WAAW,CAAC;;AAE3F,qBAGa,eAAgB,SAAQ,cAAc;IAE/C,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU;IACzC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa;gBAD5B,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa;IAK1C,sBAAsB,CAC3B,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,GACrB,UAAU,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;IAQpC,0BAA0B,CAC/B,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,qBAAqB,EAAE,MAAM,GAC5B,UAAU,CAAC,kBAAkB,CAAC;IAQ1B,wBAAwB,CAC7B,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,kBAAkB,GAC7B,UAAU,CAAC,kBAAkB,CAAC;IAS1B,wBAAwB,CAC7B,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,GACpB,UAAU,CAAC,IAAI,CAAC;IAQZ,wBAAwB,CAC7B,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,kBAAkB,GACpC,UAAU,CAAC,kBAAkB,CAAC;yCA7DtB,eAAe;6CAAf,eAAe;CAqE3B"}
@@ -0,0 +1,2 @@
1
+ export * from './form-flow.service';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/form-flow-management/src/lib/services/index.ts"],"names":[],"mappings":"AAgBA,cAAc,qBAAqB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@valtimo/form-flow-management",
3
+ "version": "0.0.0",
4
+ "peerDependencies": {
5
+ "@angular/common": "^19.2.8",
6
+ "@angular/core": "^19.2.8"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "2.8.1"
10
+ },
11
+ "module": "fesm2022/valtimo-form-flow-management.mjs",
12
+ "typings": "index.d.ts",
13
+ "exports": {
14
+ "./package.json": {
15
+ "default": "./package.json"
16
+ },
17
+ ".": {
18
+ "types": "./index.d.ts",
19
+ "default": "./fesm2022/valtimo-form-flow-management.mjs"
20
+ }
21
+ },
22
+ "sideEffects": false
23
+ }
@@ -0,0 +1,6 @@
1
+ export * from './lib/models';
2
+ export * from './lib/services';
3
+ export * from './lib/components/overview/form-flow-overview.component';
4
+ export * from './lib/components/editor/form-flow-editor.component';
5
+ export * from './lib/form-flow-management.module';
6
+ //# sourceMappingURL=public-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/form-flow-management/src/public-api.ts"],"names":[],"mappings":"AAoBA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wDAAwD,CAAC;AACvE,cAAc,oDAAoD,CAAC;AACnE,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-form-flow-management.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/form-flow-management/src/valtimo-form-flow-management.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}