@valtimo/decision 13.33.0 → 13.35.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.
@@ -1 +1 @@
1
- {"version":3,"file":"valtimo-decision.mjs","sources":["../../../../projects/valtimo/decision/src/lib/models/decision.model.ts","../../../../projects/valtimo/decision/src/lib/models/decision-management.model.ts","../../../../projects/valtimo/decision/src/lib/models/index.ts","../../../../projects/valtimo/decision/src/lib/services/decision-state.service.ts","../../../../projects/valtimo/decision/src/lib/services/decision.service.ts","../../../../projects/valtimo/decision/src/lib/services/index.ts","../../../../projects/valtimo/decision/src/lib/constants/decision.test-ids.ts","../../../../projects/valtimo/decision/src/lib/constants/index.ts","../../../../projects/valtimo/decision/src/lib/decision-modeler/empty-decision.ts","../../../../projects/valtimo/decision/src/lib/decision-modeler/decision-modeler.component.ts","../../../../projects/valtimo/decision/src/lib/decision-modeler/decision-modeler.component.html","../../../../projects/valtimo/decision/src/lib/decision-display/decision-display.component.ts","../../../../projects/valtimo/decision/src/lib/decision-display/decision-display.component.html","../../../../projects/valtimo/decision/src/lib/utils/decision.utils.ts","../../../../projects/valtimo/decision/src/lib/decision-deploy/decision-deploy.component.ts","../../../../projects/valtimo/decision/src/lib/decision-deploy/decision-deploy.component.html","../../../../projects/valtimo/decision/src/lib/decision-list/decision-list.component.ts","../../../../projects/valtimo/decision/src/lib/decision-list/decision-list.component.html","../../../../projects/valtimo/decision/src/lib/decision-routing.module.ts","../../../../projects/valtimo/decision/src/lib/decision.module.ts","../../../../projects/valtimo/decision/src/public-api.ts","../../../../projects/valtimo/decision/src/valtimo-decision.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\nexport interface Decision {\n category: string;\n decisionRequirementsDefinitionId: string;\n decisionRequirementsDefinitionKey: string;\n deploymentId: string;\n historyTimeToLive: number;\n id: string;\n key: string;\n name: string;\n resource: string;\n tenantId: string;\n version: number;\n versionTag: string;\n}\n\nexport interface DecisionXml {\n id: string;\n dmnXml: string;\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\nimport {ManagementContext} from '@valtimo/shared';\n\ninterface DecisionManagementRouteData {\n context: ManagementContext;\n}\nexport {DecisionManagementRouteData};\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 './decision.model';\nexport * from './decision-management.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 {Injectable} from '@angular/core';\nimport {Observable, startWith, Subject} from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DecisionStateService {\n private readonly _refreshDecisions$ = new Subject<null>();\n\n get refreshDecisions$(): Observable<null> {\n return this._refreshDecisions$.asObservable().pipe(startWith(null));\n }\n\n refreshDecisions(): void {\n this._refreshDecisions$.next(null);\n }\n}\n","/*\n * Copyright 2015-2026 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 {HttpClient, HttpHeaders} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {BaseApiService, ConfigService, InterceptorSkip} from '@valtimo/shared';\nimport {Decision, DecisionXml} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DecisionService extends BaseApiService {\n constructor(\n protected readonly httpClient: HttpClient,\n protected readonly configService: ConfigService\n ) {\n super(httpClient, configService);\n }\n\n public deployDmn(dmn: File): Observable<{identifier: string}> {\n const formData: FormData = new FormData();\n formData.append('file', dmn);\n formData.append('deployment-name', 'dmnTableDeploy');\n formData.append('deployment-source', 'process application');\n\n return this.httpClient.post<{identifier: string}>(\n this.getApiUrl('/v1/process/definition/deployment'),\n formData\n );\n }\n\n public getDecisions(): Observable<Decision[]> {\n return this.httpClient.get<Decision[]>(\n this.getApiUrl('/operaton-rest/engine/default/decision-definition')\n );\n }\n\n public getDecisionById(decisionId: string): Observable<Decision> {\n return this.httpClient.get<Decision>(\n this.getApiUrl(`/operaton-rest/engine/default/decision-definition/${decisionId}`)\n );\n }\n\n public getLatestDecisionByKey(decisionKey: string): Observable<Decision> {\n return this.httpClient.get<Decision>(\n this.getApiUrl(`/operaton-rest/engine/default/decision-definition/key/${decisionKey}`)\n );\n }\n\n public getDecisionXml(decisionId: string): Observable<DecisionXml> {\n return this.httpClient.get<DecisionXml>(\n this.getApiUrl(`/operaton-rest/engine/default/decision-definition/${decisionId}/xml`)\n );\n }\n\n public listCaseDecisionDefinitions(\n caseDefinitionKey: string,\n versionTag: string\n ): Observable<Decision[]> {\n return this.httpClient.get<Decision[]>(\n this.getApiUrl(\n `/management/v1/case-definition/${caseDefinitionKey}/version/${versionTag}/decision-definition`\n )\n );\n }\n\n public deployCaseDecisionDefinition(\n caseDefinitionKey: string,\n versionTag: string,\n dmn: File\n ): Observable<{identifier: string}> {\n const formData = new FormData();\n formData.append('file', dmn);\n\n return this.httpClient.post<{identifier: string}>(\n this.getApiUrl(\n `/management/v1/case-definition/${caseDefinitionKey}/version/${versionTag}/decision-definition`\n ),\n formData,\n {\n headers: new HttpHeaders().set(InterceptorSkip, '204'),\n }\n );\n }\n\n public deleteCaseDecisionDefinition(\n caseDefinitionKey: string,\n versionTag: string,\n decisionDefinitionKey: string\n ): Observable<any> {\n return this.httpClient.delete<any>(\n this.getApiUrl(\n `/management/v1/case-definition/${caseDefinitionKey}/version/${versionTag}/decision-definition/${decisionDefinitionKey}`\n )\n );\n }\n\n public listBuildingBlockDecisionDefinitions(\n key: string,\n versionTag: string\n ): Observable<Decision[]> {\n return this.httpClient.get<Decision[]>(\n this.getApiUrl(\n `/management/v1/building-block/${key}/version/${versionTag}/decision-definition`\n )\n );\n }\n\n public deployBuildingBlockDecisionDefinition(\n key: string,\n versionTag: string,\n dmn: File\n ): Observable<{identifier: string}> {\n const formData = new FormData();\n formData.append('file', dmn);\n\n return this.httpClient.post<{identifier: string}>(\n this.getApiUrl(\n `/management/v1/building-block/${key}/version/${versionTag}/decision-definition`\n ),\n formData,\n {\n headers: new HttpHeaders().set(InterceptorSkip, '204'),\n }\n );\n }\n\n public deleteBuildingBlockDecisionDefinition(\n key: string,\n versionTag: string,\n decisionDefinitionKey: string\n ): Observable<any> {\n return this.httpClient.delete<any>(\n this.getApiUrl(\n `/management/v1/building-block/${key}/version/${versionTag}/decision-definition/${decisionDefinitionKey}`\n )\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 './decision-state.service';\nexport * from './decision.service';\n","/*\n * Copyright 2015-2026 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 const DECISION_LIST_TEST_IDS = {\n uploadButton: 'decisionListUploadButton',\n} as const;\n\nexport const DECISION_UPLOAD_TEST_IDS = {\n submitButton: 'decisionUploadModalSubmitButton',\n} as const;\n\nexport const DECISION_MODELER_TEST_IDS = {\n deployButton: 'decisionModelerDeployButton',\n backButton: 'decisionModelerBackButton',\n} as const;\n","/*\n * Copyright 2015-2026 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 './decision.test-ids';\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 {DecisionXml} from '../models';\n\nconst EMPTY_DECISION: DecisionXml = {\n id: '',\n dmnXml: `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\" xmlns:dmndi=\"https://www.omg.org/spec/DMN/20191111/DMNDI/\" xmlns:dc=\"http://www.omg.org/spec/DMN/20180521/DC/\" id=\"Definitions_1h198v9\" name=\"DRD\" namespace=\"http://camunda.org/schema/1.0/dmn\" xmlns:modeler=\"http://camunda.org/schema/modeler/1.0\" exporter=\"Camunda Modeler\" exporterVersion=\"5.2.0\" modeler:executionPlatform=\"Camunda Cloud\" modeler:executionPlatformVersion=\"8.0.0\">\n <decision id=\"Decision_1e18q76\" name=\"Decision 1\">\n <decisionTable id=\"DecisionTable_1apu23m\">\n <input id=\"Input_1\">\n <inputExpression id=\"InputExpression_1\" typeRef=\"string\">\n <text></text>\n </inputExpression>\n </input>\n <output id=\"Output_1\" typeRef=\"string\" />\n </decisionTable>\n </decision>\n <dmndi:DMNDI>\n <dmndi:DMNDiagram>\n <dmndi:DMNShape dmnElementRef=\"Decision_1e18q76\">\n <dc:Bounds height=\"80\" width=\"180\" x=\"160\" y=\"100\" />\n </dmndi:DMNShape>\n </dmndi:DMNDiagram>\n </dmndi:DMNDI>\n</definitions>\n`,\n};\n\nexport {EMPTY_DECISION};\n","/*\n * Copyright 2015-2026 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 {DECISION_MODELER_TEST_IDS} from '../constants';\nimport {DecisionService} from '../services/decision.service';\nimport {AfterViewInit, Component, OnDestroy, OnInit} from '@angular/core';\nimport DmnJS from 'dmn-js/dist/dmn-modeler.development.js';\nimport {ActivatedRoute, Router, RouterModule} from '@angular/router';\nimport {DecisionXml} from '../models';\nimport {migrateDiagram} from '@bpmn-io/dmn-migrate';\nimport {\n BehaviorSubject,\n catchError,\n combineLatest,\n filter,\n from,\n map,\n Observable,\n of,\n switchMap,\n take,\n tap,\n} from 'rxjs';\nimport {\n BreadcrumbService,\n FitPageDirective,\n PageHeaderService,\n PageTitleService,\n PendingChangesComponent,\n RenderInPageHeaderDirective,\n SelectedValue,\n SelectModule as ValtimoSelectModule,\n OverflowMenuComponent,\n OverflowMenuOptionComponent,\n OverflowMenuTriggerComponent,\n WidgetModule,\n} from '@valtimo/components';\nimport {TranslateModule, TranslateService} from '@ngx-translate/core';\nimport {EMPTY_DECISION} from './empty-decision';\nimport {CommonModule} from '@angular/common';\nimport {\n ButtonModule,\n IconModule,\n IconService,\n ModalModule,\n SelectModule,\n} from 'carbon-components-angular';\nimport {\n BuildingBlockManagementParams,\n CaseManagementParams,\n EditPermissionsService,\n getBuildingBlockManagementRouteParams,\n getCaseManagementRouteParams,\n getContextObservable,\n GlobalNotificationService,\n ManagementContext,\n} from '@valtimo/shared';\nimport {ArrowLeft16, Deploy16, Download16} from '@carbon/icons';\n\ndeclare const $: any;\n\n@Component({\n selector: 'valtimo-decision-modeler',\n standalone: true,\n templateUrl: './decision-modeler.component.html',\n styleUrls: ['./decision-modeler.component.scss'],\n imports: [\n CommonModule,\n RouterModule,\n ModalModule,\n SelectModule,\n WidgetModule,\n ValtimoSelectModule,\n TranslateModule,\n RenderInPageHeaderDirective,\n ButtonModule,\n IconModule,\n FitPageDirective,\n OverflowMenuComponent,\n OverflowMenuOptionComponent,\n OverflowMenuTriggerComponent,\n ],\n})\nexport class DecisionModelerComponent\n extends PendingChangesComponent\n implements OnInit, OnDestroy, AfterViewInit\n{\n private CLASS_NAMES = {\n drd: 'dmn-icon-lasso-tool',\n decisionTable: 'dmn-icon-decision-table',\n literalExpression: 'dmn-icon-literal-expression',\n };\n\n protected readonly testIds = DECISION_MODELER_TEST_IDS;\n\n private $container!: any;\n private $tabs!: any;\n private dmnModeler!: DmnJS;\n\n public readonly versionSelectionDisabled$ = new BehaviorSubject<boolean>(true);\n public readonly isCreating$ = new BehaviorSubject<boolean>(false);\n public readonly selectionId$ = new BehaviorSubject<string>('');\n\n private _fileName!: string;\n\n public readonly caseManagementRouteParams$: Observable<CaseManagementParams | undefined> =\n getCaseManagementRouteParams(this.route);\n\n public readonly buildingBlockManagementRouteParams$: Observable<\n BuildingBlockManagementParams | undefined\n > = getBuildingBlockManagementRouteParams(this.route);\n\n public readonly context$: Observable<ManagementContext | null> = getContextObservable(this.route);\n public readonly isIndependent$ = this.context$.pipe(map(context => context === 'independent'));\n\n public readonly compactMode$ = this.pageHeaderService.compactMode$;\n\n public readonly hasEditPermissions$: Observable<boolean> = combineLatest([\n this.caseManagementRouteParams$,\n this.context$,\n ]).pipe(\n switchMap(([params, context]) =>\n this.editPermissionsService.hasPermissionsToEditBasedOnContext(params, context ?? '')\n )\n );\n\n private readonly decisionId$ = this.route.params.pipe(\n map(params => params?.id),\n tap(id => {\n this.isCreating$.next(id === 'create');\n this.versionSelectionDisabled$.next(true);\n }),\n filter(id => !!id && id !== 'create')\n );\n\n public readonly decision$ = this.decisionId$.pipe(\n switchMap(id => this.decisionService.getDecisionById(id)),\n tap(decision => {\n this._fileName = decision.resource;\n if (decision) this.selectionId$.next(decision.id);\n })\n );\n\n public readonly decisionTitle$ = this.decision$.pipe(\n map(d => d?.name || d?.key || '-'),\n tap(title => this.pageTitleService.setCustomPageTitle(title))\n );\n\n private readonly _refreshDecisionSelectItems$ = new BehaviorSubject<null>(null);\n public readonly decisionVersionSelectItems$ = this._refreshDecisionSelectItems$.pipe(\n switchMap(() => combineLatest([this.decision$, this.decisionService.getDecisions()])),\n map(([current, list]) => {\n const filtered = list.filter(d => d.key === current.key);\n return [...filtered.map(d => ({id: d.id, text: d.version.toString()}))].sort(\n (a, b) => +(b.text ?? '') - +(a.text ?? '')\n );\n }),\n tap(() => this.versionSelectionDisabled$.next(false))\n );\n\n public readonly decisionXml$ = this.decisionId$.pipe(\n switchMap(id => this.decisionService.getDecisionXml(id)),\n tap(xml => xml && this.loadDecisionXml(xml))\n );\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly route: ActivatedRoute,\n private readonly router: Router,\n private readonly translateService: TranslateService,\n private readonly pageTitleService: PageTitleService,\n private readonly breadcrumbService: BreadcrumbService,\n private readonly iconService: IconService,\n private readonly pageHeaderService: PageHeaderService,\n private readonly notificationService: GlobalNotificationService,\n private readonly editPermissionsService: EditPermissionsService\n ) {\n super();\n this.iconService.registerAll([Deploy16, Download16, ArrowLeft16]);\n }\n\n public ngOnInit(): void {\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 ngAfterViewInit(): void {\n this.setProperties();\n this.setTabEvents();\n this.setModelerEvents();\n\n this.context$.pipe(take(1)).subscribe(context => {\n if (!context) return;\n\n if (context === 'buildingBlock') {\n this.buildingBlockManagementRouteParams$.pipe(take(1)).subscribe(params => {\n if (params) this.initBuildingBlockBreadcrumbs(params);\n });\n } else {\n this.caseManagementRouteParams$.pipe(take(1)).subscribe(params => {\n if (params) this.initBreadcrumbs(params, context);\n });\n }\n });\n }\n\n public switchVersion(decisionId: string | SelectedValue): void {\n if (!decisionId) return;\n\n this.router.navigate(['../', decisionId], {relativeTo: this.route});\n this._refreshDecisionSelectItems$.next(null);\n }\n\n public deploy(): void {\n from(this.dmnModeler.saveXML({format: true}))\n .pipe(\n map(result => new File([(result as any).xml], this._fileName, {type: 'text/xml'})),\n switchMap(file => combineLatest([of(file), this.context$])),\n switchMap(([file, context]) => {\n if (context === 'independent') {\n return this.decisionService.deployDmn(file);\n }\n if (context === 'buildingBlock') {\n return this.buildingBlockManagementRouteParams$.pipe(\n switchMap(params =>\n this.decisionService.deployBuildingBlockDecisionDefinition(\n params?.buildingBlockDefinitionKey ?? '',\n params?.buildingBlockDefinitionVersionTag ?? '',\n file\n )\n )\n );\n }\n return this.caseManagementRouteParams$.pipe(\n switchMap(params =>\n this.decisionService.deployCaseDecisionDefinition(\n params?.caseDefinitionKey ?? '',\n params?.caseDefinitionVersionTag ?? '',\n file\n )\n )\n );\n }),\n tap((res: {identifier: string}) => {\n this.switchVersion(res.identifier);\n this.showNotification('success', 'decisions.deploySuccess');\n }),\n catchError(() => {\n this.showNotification('error', 'decisions.deployFailure');\n\n return of(null);\n })\n )\n .subscribe();\n }\n\n public download(): void {\n from(this.dmnModeler.saveXML({format: true}))\n .pipe(\n map(result => new File([(result as any).xml], 'decision.dmn', {type: 'text/xml'})),\n tap(file => {\n const link = document.createElement('a');\n link.download = 'diagram.dmn';\n link.href = window.URL.createObjectURL(file);\n link.click();\n window.URL.revokeObjectURL(link.href);\n link.remove();\n })\n )\n .subscribe();\n }\n\n public navigateBack(notification: null | 'success' | 'error', message: string): void {\n this.router.navigate(['../'], {relativeTo: this.route});\n\n if (!notification) return;\n\n this.showNotification(notification, message);\n }\n\n private showNotification(notification: null | 'success' | 'error', message: string): void {\n if (!notification) return;\n\n this.notificationService.showToast({\n caption: this.translateService.instant(message),\n type: notification,\n title: this.translateService.instant(`interface.${notification}`),\n });\n }\n\n private setProperties(): void {\n const isCreating = this.isCreating$.getValue();\n this.$container = $('.editor-container');\n this.$tabs = $('.editor-tabs');\n this.dmnModeler = new DmnJS({\n container: this.$container,\n height: 500,\n width: '100%',\n keyboard: {bindTo: window},\n });\n if (isCreating) this.loadEmptyDecisionTable();\n }\n\n private loadEmptyDecisionTable(): void {\n this.loadDecisionXml(EMPTY_DECISION);\n }\n\n private setTabEvents(): void {\n this.$tabs.delegate('.tab', 'click', async (event: any) => {\n const index = +event.currentTarget.getAttribute('data-id');\n const view = this.dmnModeler.getViews()[index];\n try {\n await this.dmnModeler.open(view);\n } catch (err) {\n console.error('tab open error', err);\n }\n });\n }\n\n private setModelerEvents(): void {\n this.dmnModeler.on('views.changed', event => {\n const {views, activeView} = event;\n this.$tabs.empty();\n views.forEach((v, i) => {\n const className = this.CLASS_NAMES[v.type];\n const tab = $(\n `<div class=\"tab ${v === activeView ? 'active' : ''}\" data-id=\"${i}\"><span class=\"${className}\"></span>${v.element.name || v.element.id}</div>`\n );\n this.$tabs.append(tab);\n });\n });\n }\n\n private loadDecisionXml(decision: DecisionXml): void {\n from(this.dmnModeler.importXML(decision.dmnXml))\n .pipe(\n tap(() => this.setEditor()),\n catchError(() => {\n this.migrateAndLoadDecisionXml(decision);\n return of(null);\n })\n )\n .subscribe();\n }\n\n private migrateAndLoadDecisionXml(decision: DecisionXml): void {\n from(migrateDiagram(decision.dmnXml))\n .pipe(\n switchMap(xml => this.dmnModeler.importXML(xml)),\n tap(() => this.setEditor()),\n catchError(() => {\n this.showNotification('error', 'decisions.loadFailure');\n return of(null);\n })\n )\n .subscribe();\n }\n\n private setEditor(): void {\n const view = this.dmnModeler.getActiveView();\n if (view?.type === 'drd') {\n const canvas = this.dmnModeler.getActiveViewer().get('canvas');\n canvas.zoom('fit-viewport');\n }\n }\n\n private initBreadcrumbs(params: CaseManagementParams, context: ManagementContext): void {\n if (context === 'independent') return;\n\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 routeWithDecisions = `${route}/decisions`;\n\n this.breadcrumbService.setFourthBreadcrumb({\n route: [routeWithDecisions],\n content: this.translateService.instant('caseManagement.tabs.decision'),\n href: routeWithDecisions,\n });\n }\n\n private initBuildingBlockBreadcrumbs(params: BuildingBlockManagementParams): void {\n const route = `/building-block-management/building-block/${params.buildingBlockDefinitionKey}/version/${params.buildingBlockDefinitionVersionTag}`;\n const generalRoute = `${route}/general`;\n\n this.breadcrumbService.setThirdBreadcrumb({\n route: [generalRoute],\n content: `${params.buildingBlockDefinitionKey} (${params.buildingBlockDefinitionVersionTag})`,\n href: generalRoute,\n });\n\n const routeWithDecisions = `${route}/decisions`;\n\n this.breadcrumbService.setFourthBreadcrumb({\n route: [routeWithDecisions],\n content: this.translateService.instant('buildingBlockManagement.tabs.decisions'),\n href: routeWithDecisions,\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<div\n *ngIf=\"{\n decisionXml: decisionXml$ | async,\n decisionTitle: decisionTitle$ | async,\n } as obs\"\n fitPage\n [disableOverflow]=\"true\"\n class=\"dmn-editor\"\n>\n <ng-container *ngTemplateOutlet=\"diagram\"></ng-container>\n</div>\n\n<ng-template #diagram>\n <div class=\"editor-parent\">\n <div class=\"editor-container\"></div>\n <div class=\"editor-tabs\"></div>\n </div>\n</ng-template>\n\n<ng-container renderInPageHeader>\n <ng-template>\n <div\n *ngIf=\"{\n selectionId: selectionId$ | async,\n isCreating: isCreating$ | async,\n context: context$ | async,\n compactMode: compactMode$ | async,\n hasEditPermissions: hasEditPermissions$ | async,\n } as obs\"\n class=\"decision-modeler-actions\"\n >\n <ng-container *ngTemplateOutlet=\"versionSelection\"></ng-container>\n\n <button\n *ngIf=\"obs.context === 'case'\"\n cdsButton=\"secondary\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n (click)=\"navigateBack(null)\"\n [attr.data-test-id]=\"testIds.backButton\"\n >\n <svg class=\"cds--btn__icon\" cdsIcon=\"arrow--left\" size=\"16\"></svg>\n\n <span>{{ 'interface.back' | translate }}</span>\n </button>\n\n @if (obs.selectionId && !obs.isCreating) {\n <button\n *ngIf=\"obs.hasEditPermissions\"\n cdsButton=\"primary\"\n (click)=\"deploy()\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n [attr.data-test-id]=\"testIds.deployButton\"\n >\n {{ 'decisions.deploy' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"deploy\" size=\"16\"></svg>\n </button>\n\n <v-overflow-menu class=\"overflow-button\" placement=\"bottom-end\">\n <v-overflow-menu-trigger overflowTrigger></v-overflow-menu-trigger>\n <v-overflow-menu-option (selected)=\"download()\"\n >{{ 'interface.export' | translate }}\n </v-overflow-menu-option>\n </v-overflow-menu>\n } @else {\n <button class=\"btn btn-success btn-space\" (click)=\"deploy()\">\n <i class=\"icon mdi mdi-upload mr-1\"></i>{{ 'decisions.deploy' | translate }}\n </button>\n }\n </div>\n </ng-template>\n</ng-container>\n\n<ng-template #versionSelection>\n <ng-container\n *ngIf=\"{\n selectItems: (decisionVersionSelectItems$ | async) || [],\n isIndependent: isIndependent$ | async,\n versionSelectionDisabled: versionSelectionDisabled$ | async,\n selectionId: selectionId$ | async,\n } as obs\"\n >\n <v-select\n *ngIf=\"obs.isIndependent\"\n name=\"version\"\n [title]=\"'decisions.version' | translate\"\n [disabled]=\"obs.versionSelectionDisabled\"\n [clearable]=\"false\"\n [loading]=\"obs.selectItems.length === 0\"\n [items]=\"obs.selectItems\"\n [defaultSelectionId]=\"obs.selectionId\"\n [widthInPx]=\"120\"\n (selectedChange)=\"switchVersion($event)\"\n ></v-select>\n </ng-container>\n</ng-template>\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 {Component, OnInit, ViewEncapsulation} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ActivatedRoute, RouterModule} from '@angular/router';\nimport {DecisionService} from '../services/decision.service';\nimport {DecisionXml} from '../models';\nimport DmnViewer from 'dmn-js';\nimport {migrateDiagram} from '@bpmn-io/dmn-migrate';\nimport {TranslateModule} from '@ngx-translate/core';\n\n@Component({\n selector: 'valtimo-decision-display',\n standalone: true,\n templateUrl: './decision-display.component.html',\n styleUrls: ['./decision-display.component.scss'],\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, RouterModule, TranslateModule],\n})\nexport class DecisionDisplayComponent implements OnInit {\n public viewer: DmnViewer;\n private decisionId: string;\n public decisionXml: string;\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly route: ActivatedRoute\n ) {}\n\n ngOnInit(): void {\n this.viewer = new DmnViewer({\n container: '#canvas',\n });\n this.decisionId = this.route.snapshot.paramMap.get('id')!;\n this.loadDecisionXml();\n }\n\n loadDecisionXml(): void {\n this.decisionService.getDecisionXml(this.decisionId).subscribe((decision: DecisionXml) => {\n this.viewer.importXML(decision.dmnXml, error => {\n if (error) {\n this.migrateAndLoadDecisionXml(decision);\n }\n });\n this.decisionXml = decision.dmnXml;\n });\n }\n\n async migrateAndLoadDecisionXml(decision: DecisionXml): Promise<void> {\n const decisionXml = await migrateDiagram(decision.dmnXml);\n\n if (decisionXml) {\n this.viewer.importXML(decisionXml, error => {\n if (error) {\n console.error('Error importing migrated XML', error);\n }\n });\n this.decisionXml = decisionXml;\n }\n }\n\n download(): void {\n const file = new Blob([this.decisionXml], {type: 'text/xml'});\n const link = document.createElement('a');\n link.download = `decision_table_${this.decisionId}.dmn`;\n link.href = window.URL.createObjectURL(file);\n link.click();\n window.URL.revokeObjectURL(link.href);\n link.remove();\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<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"text-right\">\n <div class=\"btn-group mt-m3px mb-3\">\n <button (click)=\"download()\" class=\"btn btn-primary btn-space mr-0\">\n <i class=\"fa fa-save\"></i> &nbsp;\n <span>{{ 'Download' | translate }}</span>\n </button>\n </div>\n </div>\n <div id=\"canvas\" class=\"canvas-dmn\"></div>\n </div>\n</div>\n","/*\n * Copyright 2015-2026 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 {Decision} from '../models';\n\nexport function filterLatestDecisionVersions(decisions: Decision[]): Decision[] {\n return decisions.reduce((acc: Decision[], curr: Decision) => {\n const existing = acc.find(d => d.key === curr.key);\n if (existing && existing.version >= curr.version) return acc;\n if (existing && existing.version < curr.version)\n return [...acc.filter(d => d.key !== curr.key), curr];\n return [...acc, curr];\n }, []);\n}\n","/*\n * Copyright 2015-2026 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 {Component, EventEmitter, Output} from '@angular/core';\nimport {FormBuilder, FormsModule, ReactiveFormsModule, Validators} from '@angular/forms';\nimport {ActivatedRoute} from '@angular/router';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {\n ButtonModule,\n FileUploaderModule,\n LayerModule,\n ModalModule,\n} from 'carbon-components-angular';\nimport {BehaviorSubject, combineLatest, switchMap, take} from 'rxjs';\nimport {DECISION_UPLOAD_TEST_IDS} from '../constants';\nimport {\n getBuildingBlockManagementRouteParams,\n getCaseManagementRouteParams,\n getContextObservable,\n} from '@valtimo/shared';\nimport {DecisionService, DecisionStateService} from '../services';\n\n@Component({\n selector: 'valtimo-decision-deploy',\n standalone: true,\n templateUrl: './decision-deploy.component.html',\n styleUrls: ['./decision-deploy.component.scss'],\n imports: [\n CommonModule,\n FormsModule,\n TranslateModule,\n ModalModule,\n ButtonModule,\n LayerModule,\n FileUploaderModule,\n ReactiveFormsModule,\n ],\n})\nexport class DecisionDeployComponent {\n @Output() deploySuccessful = new EventEmitter();\n\n public dmn: File | null = null;\n\n public readonly modalOpen$ = new BehaviorSubject<boolean>(false);\n\n protected readonly testIds = DECISION_UPLOAD_TEST_IDS;\n\n public readonly caseManagementRouteParams$ = getCaseManagementRouteParams(this.route);\n public readonly buildingBlockManagementRouteParams$ =\n getBuildingBlockManagementRouteParams(this.route);\n public readonly context$ = getContextObservable(this.route);\n\n public readonly ACCEPTED_FILES: string[] = ['dmn'];\n\n public readonly form = this.formBuilder.group({\n file: this.formBuilder.control(new Set<any>(), [Validators.required]),\n });\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly stateService: DecisionStateService,\n private readonly route: ActivatedRoute,\n private readonly formBuilder: FormBuilder\n ) {}\n\n public get selectedDmnFile(): File | null {\n const fileSet = this.form.value?.file;\n return fileSet?.size ? fileSet.values().next().value?.file || null : null;\n }\n\n public onChange(files: FileList): void {\n this.dmn = files.item(0);\n }\n\n public deployDmn(): void {\n const dmnFile = this.selectedDmnFile;\n if (!dmnFile) return;\n\n this.context$\n .pipe(\n take(1),\n switchMap(context => {\n if (context === 'case') {\n return this.caseManagementRouteParams$.pipe(\n take(1),\n switchMap(params =>\n this.decisionService.deployCaseDecisionDefinition(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag,\n dmnFile\n )\n )\n );\n }\n if (context === 'buildingBlock') {\n return this.buildingBlockManagementRouteParams$.pipe(\n take(1),\n switchMap(params =>\n this.decisionService.deployBuildingBlockDecisionDefinition(\n params.buildingBlockDefinitionKey,\n params.buildingBlockDefinitionVersionTag,\n dmnFile\n )\n )\n );\n }\n return this.decisionService.deployDmn(dmnFile);\n })\n )\n .subscribe(() => {\n this.closeModal();\n this.deploySuccessful.emit();\n this.stateService.refreshDecisions();\n });\n }\n\n public openModal() {\n this.modalOpen$.next(true);\n }\n\n public closeModal(): void {\n this.modalOpen$.next(false);\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 showFooter=\"true\" valtimoCdsModal [open]=\"modalOpen$ | async\" (close)=\"closeModal()\">\n <cds-modal-header showCloseButton=\"true\" (closeSelect)=\"closeModal()\">\n <h3 cdsModalHeaderHeading>{{ 'decisions.upload.title' | translate }}</h3>\n </cds-modal-header>\n\n <section cdsModalContent [cdsLayer]=\"1\" [formGroup]=\"form\">\n <cds-file-uploader\n [accept]=\"ACCEPTED_FILES\"\n [multiple]=\"false\"\n buttonType=\"primary\"\n [title]=\"'decisions.upload.fileUploaderTitle' | translate\"\n [description]=\"'decisions.upload.fileUploaderDescription' | translate\"\n [buttonText]=\"'decisions.upload.fileUploaderButton' | translate\"\n formControlName=\"file\"\n >\n </cds-file-uploader>\n </section>\n\n <cds-modal-footer>\n <button cdsButton=\"secondary\" (click)=\"closeModal()\">\n {{ 'interface.cancel' | translate }}\n </button>\n\n <button\n cdsButton=\"primary\"\n [disabled]=\"!selectedDmnFile\"\n (click)=\"deployDmn()\"\n [attr.data-test-id]=\"testIds.submitButton\"\n >\n {{ 'interface.upload' | translate }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n","/*\n * Copyright 2015-2026 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 {ChangeDetectorRef, Component, ViewChild} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ActivatedRoute, Router, RouterModule} from '@angular/router';\nimport {BehaviorSubject, combineLatest, map, Observable, switchMap, take, tap} from 'rxjs';\nimport {Decision} from '../models';\nimport {filterLatestDecisionVersions} from '../utils/decision.utils';\nimport {DecisionService} from '../services/decision.service';\nimport {\n ConfigService,\n EditPermissionsService,\n getBuildingBlockManagementRouteParams,\n getCaseManagementRouteParams,\n getContextObservable,\n} from '@valtimo/shared';\nimport {DecisionStateService} from '../services';\nimport {DecisionDeployComponent} from '../decision-deploy/decision-deploy.component';\nimport {DECISION_LIST_TEST_IDS} from '../constants';\nimport {CarbonListModule, WidgetModule} from '@valtimo/components';\nimport {ButtonModule, IconModule, IconService} from 'carbon-components-angular';\nimport {Upload16} from '@carbon/icons';\nimport {TranslateModule} from '@ngx-translate/core';\n\n@Component({\n selector: 'valtimo-decision-list',\n standalone: true,\n templateUrl: './decision-list.component.html',\n styleUrls: ['./decision-list.component.scss'],\n imports: [\n CommonModule,\n RouterModule,\n CarbonListModule,\n IconModule,\n WidgetModule,\n DecisionDeployComponent,\n TranslateModule,\n ButtonModule,\n ],\n})\nexport class DecisionListComponent {\n @ViewChild('decisionDeploy') deploy: DecisionDeployComponent;\n\n public fields = [\n {key: 'key', label: 'Key'},\n {key: 'name', label: 'Name'},\n {key: 'version', label: 'Version'},\n ];\n\n readonly loading$ = new BehaviorSubject<boolean>(true);\n readonly experimentalEditing$ =\n this.configService.getFeatureToggleObservable('experimentalDmnEditing');\n\n protected readonly testIds = DECISION_LIST_TEST_IDS;\n\n public readonly caseManagementRouteParams$ = getCaseManagementRouteParams(this.route);\n public readonly buildingBlockManagementRouteParams$ =\n getBuildingBlockManagementRouteParams(this.route);\n public readonly context$ = getContextObservable(this.route);\n\n readonly decisionsLatestVersions$ = this.stateService.refreshDecisions$.pipe(\n switchMap(() => this.context$),\n switchMap(context => {\n if (context === 'case') {\n return this.caseManagementRouteParams$.pipe(\n switchMap(params =>\n this.decisionService.listCaseDecisionDefinitions(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag\n )\n )\n );\n }\n if (context === 'buildingBlock') {\n return this.buildingBlockManagementRouteParams$.pipe(\n switchMap(params =>\n this.decisionService.listBuildingBlockDecisionDefinitions(\n params.buildingBlockDefinitionKey,\n params.buildingBlockDefinitionVersionTag\n )\n )\n );\n }\n return this.decisionService.getDecisions();\n }),\n map(filterLatestDecisionVersions),\n tap(() => {\n this.loading$.next(false);\n this.cdr.detectChanges();\n })\n );\n\n public readonly hasEditPermissions$: Observable<boolean> = combineLatest([\n this.caseManagementRouteParams$,\n this.context$,\n ]).pipe(\n switchMap(([params, context]) => {\n return this.editPermissionsService.hasPermissionsToEditBasedOnContext(params, context);\n })\n );\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly iconService: IconService,\n private readonly router: Router,\n private readonly configService: ConfigService,\n private readonly stateService: DecisionStateService,\n private readonly route: ActivatedRoute,\n private readonly cdr: ChangeDetectorRef,\n private readonly editPermissionsService: EditPermissionsService\n ) {\n this.iconService.registerAll([Upload16]);\n }\n\n public viewDecisionTable(decision: Decision): void {\n combineLatest([this.context$, this.experimentalEditing$])\n .pipe(take(1))\n .subscribe(([context, experimentalEditing]) => {\n if (context === 'independent') {\n const basePath = experimentalEditing ? '/decision-tables/edit/' : '/decision-tables/';\n this.router.navigate([basePath + decision.id]);\n } else if (context === 'buildingBlock') {\n this.buildingBlockManagementRouteParams$.pipe(take(1)).subscribe(params => {\n this.router.navigateByUrl(\n `building-block-management/building-block/${params.buildingBlockDefinitionKey}/version/${params.buildingBlockDefinitionVersionTag}/decisions/${decision.id}`\n );\n });\n } else {\n this.caseManagementRouteParams$.pipe(take(1)).subscribe(params => {\n this.router.navigateByUrl(\n `case-management/case/${params.caseDefinitionKey}/version/${params.caseDefinitionVersionTag}/decisions/${decision.id}`\n );\n });\n }\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 [items]=\"(decisionsLatestVersions$ | async) || []\"\n [loading]=\"loading$ | async\"\n [fields]=\"fields\"\n (rowClicked)=\"viewDecisionTable($event)\"\n [header]=\"false\"\n [isSearchable]=\"true\"\n>\n <ng-container carbonToolbarContent>\n <button\n *ngIf=\"hasEditPermissions$ | async\"\n cdsButton=\"primary\"\n (click)=\"this.deploy.openModal()\"\n [attr.data-test-id]=\"testIds.uploadButton\"\n >\n {{ 'Upload' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"upload\" size=\"16\"></svg>\n </button>\n </ng-container>\n</valtimo-carbon-list>\n\n<valtimo-decision-deploy #decisionDeploy></valtimo-decision-deploy>\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 {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {ROLE_ADMIN} from '@valtimo/shared';\nimport {DecisionModelerComponent} from './decision-modeler/decision-modeler.component';\nimport {DecisionDisplayComponent} from './decision-display/decision-display.component';\nimport {DecisionManagementRouteData} from './models/decision-management.model';\nimport {DecisionListComponent} from './decision-list/decision-list.component';\n\nconst routes: Routes = [\n {\n path: 'decision-tables',\n component: DecisionListComponent,\n canActivate: [AuthGuardService],\n data: {\n title: 'Decision tables',\n roles: [ROLE_ADMIN],\n context: 'independent',\n } as DecisionManagementRouteData,\n },\n {\n path: 'decision-tables/:id',\n component: DecisionDisplayComponent,\n canActivate: [AuthGuardService],\n data: {\n title: 'Decision tables',\n roles: [ROLE_ADMIN],\n context: 'independent',\n } as DecisionManagementRouteData,\n },\n {\n path: 'decision-tables/edit/:id',\n component: DecisionModelerComponent,\n canActivate: [AuthGuardService],\n data: {\n title: 'Edit decision table',\n roles: [ROLE_ADMIN],\n customPageTitle: true,\n context: 'independent',\n } as DecisionManagementRouteData,\n },\n {\n path: 'decision-tables/edit/create',\n component: DecisionModelerComponent,\n canActivate: [AuthGuardService],\n data: {\n title: 'Create decision table',\n roles: [ROLE_ADMIN],\n context: 'independent',\n } as DecisionManagementRouteData,\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DecisionRoutingModule {}\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 {NgModule} from '@angular/core';\nimport {DecisionRoutingModule} from './decision-routing.module';\nimport {DecisionDeployComponent} from './decision-deploy/decision-deploy.component';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {DecisionDisplayComponent} from './decision-display/decision-display.component';\nimport {DecisionListComponent} from './decision-list/decision-list.component';\nimport {\n CarbonListModule,\n ModalModule,\n SelectModule,\n SpinnerModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {DecisionModelerComponent} from './decision-modeler/decision-modeler.component';\nimport {ButtonModule, IconModule} from 'carbon-components-angular';\n\n@NgModule({\n imports: [\n DecisionRoutingModule,\n WidgetModule,\n TranslateModule,\n ModalModule,\n CommonModule,\n FormsModule,\n SelectModule,\n SpinnerModule,\n CarbonListModule,\n ButtonModule,\n IconModule,\n DecisionDeployComponent,\n DecisionModelerComponent,\n DecisionListComponent,\n DecisionDisplayComponent,\n ],\n exports: [DecisionModelerComponent],\n})\nexport class DecisionModule {}\n","/*\n * Copyright 2015-2026 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 decision\n */\n\nexport * from './lib/models';\nexport * from './lib/services';\nexport * from './lib/decision.module';\nexport * from './lib/decision-modeler/decision-modeler.component';\nexport * from './lib/decision-display/decision-display.component';\nexport * from './lib/decision-list/decision-list.component';\nexport * from './lib/decision-deploy/decision-deploy.component';\nexport * from './lib/constants';\nexport * from './lib/utils/decision.utils';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i1.DecisionService","i5","ValtimoSelectModule","i1.DecisionStateService","i3","i4","i6","i5.DecisionStateService","i7","i1","ModalModule","SelectModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MAQU,oBAAoB,CAAA;AAHjC,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,kBAAkB,GAAG,IAAI,OAAO,EAAQ;AAS1D;AAPC,IAAA,IAAI,iBAAiB,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;;IAGrE,gBAAgB,GAAA;AACd,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC;;+GARzB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cAFnB,MAAM,EAAA,CAAA,CAAA;;4FAEP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACrBD;;;;;;;;;;;;;;AAcG;AAWG,MAAO,eAAgB,SAAQ,cAAc,CAAA;IACjD,WACqB,CAAA,UAAsB,EACtB,aAA4B,EAAA;AAE/C,QAAA,KAAK,CAAC,UAAU,EAAE,aA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wBACfD,aAAW;wBACX,YAAY;wBACZ,WAAW;wBACXC,cAAY;wBACZ,aAAa;wBACb,gBAAgB;wBAChB,YAAY;wBACZ,UAAU;wBACV,uBAAuB;wBACvB,wBAAwB;wBACxB,qBAAqB;wBACrB,wBAAwB;AACzB,qBAAA;oBACD,OAAO,EAAE,CAAC,wBAAwB,CAAC;AACpC,iBAAA;;;ACrDD;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
1
+ {"version":3,"file":"valtimo-decision.mjs","sources":["../../../../projects/valtimo/decision/src/lib/models/decision.model.ts","../../../../projects/valtimo/decision/src/lib/models/decision-management.model.ts","../../../../projects/valtimo/decision/src/lib/models/index.ts","../../../../projects/valtimo/decision/src/lib/services/decision-state.service.ts","../../../../projects/valtimo/decision/src/lib/services/decision.service.ts","../../../../projects/valtimo/decision/src/lib/services/index.ts","../../../../projects/valtimo/decision/src/lib/constants/decision.test-ids.ts","../../../../projects/valtimo/decision/src/lib/constants/index.ts","../../../../projects/valtimo/decision/src/lib/utils/dmn-template.ts","../../../../projects/valtimo/decision/src/lib/decision-form-modal/decision-form-modal.component.ts","../../../../projects/valtimo/decision/src/lib/decision-form-modal/decision-form-modal.component.html","../../../../projects/valtimo/decision/src/lib/decision-modeler/empty-decision.ts","../../../../projects/valtimo/decision/src/lib/decision-modeler/decision-modeler.component.ts","../../../../projects/valtimo/decision/src/lib/decision-modeler/decision-modeler.component.html","../../../../projects/valtimo/decision/src/lib/decision-display/decision-display.component.ts","../../../../projects/valtimo/decision/src/lib/decision-display/decision-display.component.html","../../../../projects/valtimo/decision/src/lib/utils/decision.utils.ts","../../../../projects/valtimo/decision/src/lib/decision-deploy/decision-deploy.component.ts","../../../../projects/valtimo/decision/src/lib/decision-deploy/decision-deploy.component.html","../../../../projects/valtimo/decision/src/lib/decision-list/decision-list.component.ts","../../../../projects/valtimo/decision/src/lib/decision-list/decision-list.component.html","../../../../projects/valtimo/decision/src/lib/decision-routing.module.ts","../../../../projects/valtimo/decision/src/lib/decision.module.ts","../../../../projects/valtimo/decision/src/public-api.ts","../../../../projects/valtimo/decision/src/valtimo-decision.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\nexport interface Decision {\n category: string;\n decisionRequirementsDefinitionId: string;\n decisionRequirementsDefinitionKey: string;\n deploymentId: string;\n historyTimeToLive: number;\n id: string;\n key: string;\n name: string;\n resource: string;\n tenantId: string;\n version: number;\n versionTag: string;\n}\n\nexport interface DecisionXml {\n id: string;\n dmnXml: string;\n}\n\nexport interface DecisionInputVariable {\n /** Human-readable column header shown in the decision table. */\n label: string;\n /** The process variable / FEEL expression the input column evaluates. */\n expression: string;\n}\n\nexport interface DecisionFormValue {\n name: string;\n inputVariables: DecisionInputVariable[];\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\nimport {ManagementContext} from '@valtimo/shared';\n\ninterface DecisionManagementRouteData {\n context: ManagementContext;\n}\nexport {DecisionManagementRouteData};\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 './decision.model';\nexport * from './decision-management.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 {Injectable} from '@angular/core';\nimport {Observable, startWith, Subject} from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DecisionStateService {\n private readonly _refreshDecisions$ = new Subject<null>();\n\n get refreshDecisions$(): Observable<null> {\n return this._refreshDecisions$.asObservable().pipe(startWith(null));\n }\n\n refreshDecisions(): void {\n this._refreshDecisions$.next(null);\n }\n}\n","/*\n * Copyright 2015-2026 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 {HttpClient, HttpHeaders} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {BaseApiService, ConfigService, InterceptorSkip} from '@valtimo/shared';\nimport {Decision, DecisionXml} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DecisionService extends BaseApiService {\n constructor(\n protected readonly httpClient: HttpClient,\n protected readonly configService: ConfigService\n ) {\n super(httpClient, configService);\n }\n\n public deployDmn(dmn: File): Observable<{identifier: string}> {\n const formData: FormData = new FormData();\n formData.append('file', dmn);\n formData.append('deployment-name', 'dmnTableDeploy');\n formData.append('deployment-source', 'process application');\n\n return this.httpClient.post<{identifier: string}>(\n this.getApiUrl('/v1/process/definition/deployment'),\n formData\n );\n }\n\n public getDecisions(): Observable<Decision[]> {\n return this.httpClient.get<Decision[]>(\n this.getApiUrl('/operaton-rest/engine/default/decision-definition')\n );\n }\n\n public getUnlinkedDecisions(): Observable<Decision[]> {\n // Only the \"global\" decision tables: those not linked to a case or building block definition.\n return this.httpClient.get<Decision[]>(this.getApiUrl('/management/v1/decision-definition'));\n }\n\n public getDecisionById(decisionId: string): Observable<Decision> {\n return this.httpClient.get<Decision>(\n this.getApiUrl(`/operaton-rest/engine/default/decision-definition/${decisionId}`)\n );\n }\n\n public getLatestDecisionByKey(decisionKey: string): Observable<Decision> {\n return this.httpClient.get<Decision>(\n this.getApiUrl(`/operaton-rest/engine/default/decision-definition/key/${decisionKey}`)\n );\n }\n\n public getDecisionXml(decisionId: string): Observable<DecisionXml> {\n return this.httpClient.get<DecisionXml>(\n this.getApiUrl(`/operaton-rest/engine/default/decision-definition/${decisionId}/xml`)\n );\n }\n\n public listCaseDecisionDefinitions(\n caseDefinitionKey: string,\n versionTag: string\n ): Observable<Decision[]> {\n return this.httpClient.get<Decision[]>(\n this.getApiUrl(\n `/management/v1/case-definition/${caseDefinitionKey}/version/${versionTag}/decision-definition`\n )\n );\n }\n\n public deployCaseDecisionDefinition(\n caseDefinitionKey: string,\n versionTag: string,\n dmn: File\n ): Observable<{identifier: string}> {\n const formData = new FormData();\n formData.append('file', dmn);\n\n return this.httpClient.post<{identifier: string}>(\n this.getApiUrl(\n `/management/v1/case-definition/${caseDefinitionKey}/version/${versionTag}/decision-definition`\n ),\n formData,\n {\n headers: new HttpHeaders().set(InterceptorSkip, '204'),\n }\n );\n }\n\n public deleteCaseDecisionDefinition(\n caseDefinitionKey: string,\n versionTag: string,\n decisionDefinitionKey: string\n ): Observable<any> {\n return this.httpClient.delete<any>(\n this.getApiUrl(\n `/management/v1/case-definition/${caseDefinitionKey}/version/${versionTag}/decision-definition/${decisionDefinitionKey}`\n )\n );\n }\n\n public listBuildingBlockDecisionDefinitions(\n key: string,\n versionTag: string\n ): Observable<Decision[]> {\n return this.httpClient.get<Decision[]>(\n this.getApiUrl(\n `/management/v1/building-block/${key}/version/${versionTag}/decision-definition`\n )\n );\n }\n\n public deployBuildingBlockDecisionDefinition(\n key: string,\n versionTag: string,\n dmn: File\n ): Observable<{identifier: string}> {\n const formData = new FormData();\n formData.append('file', dmn);\n\n return this.httpClient.post<{identifier: string}>(\n this.getApiUrl(\n `/management/v1/building-block/${key}/version/${versionTag}/decision-definition`\n ),\n formData,\n {\n headers: new HttpHeaders().set(InterceptorSkip, '204'),\n }\n );\n }\n\n public deleteBuildingBlockDecisionDefinition(\n key: string,\n versionTag: string,\n decisionDefinitionKey: string\n ): Observable<any> {\n return this.httpClient.delete<any>(\n this.getApiUrl(\n `/management/v1/building-block/${key}/version/${versionTag}/decision-definition/${decisionDefinitionKey}`\n )\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 './decision-state.service';\nexport * from './decision.service';\n","/*\n * Copyright 2015-2026 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 const DECISION_LIST_TEST_IDS = {\n uploadButton: 'decisionListUploadButton',\n createButton: 'decisionListCreateButton',\n} as const;\n\nexport const DECISION_UPLOAD_TEST_IDS = {\n submitButton: 'decisionUploadModalSubmitButton',\n} as const;\n\nexport const DECISION_FORM_TEST_IDS = {\n nameInput: 'decisionFormModalNameInput',\n inputVariables: 'decisionFormModalInputVariables',\n submitButton: 'decisionFormModalSubmitButton',\n} as const;\n\nexport const DECISION_MODELER_TEST_IDS = {\n deployButton: 'decisionModelerDeployButton',\n backButton: 'decisionModelerBackButton',\n readOnlyTag: 'decisionModelerReadOnlyTag',\n} as const;\n","/*\n * Copyright 2015-2026 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 './decision.test-ids';\n","/*\n * Copyright 2015-2026 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 {DecisionFormValue, DecisionInputVariable, DecisionXml} from '../models';\n\nconst DEFAULT_DECISION_KEY = 'decision';\n\nfunction escapeXmlAttribute(value: string): string {\n return value\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;')\n .replace(/\"/g, '&quot;')\n .replace(/'/g, '&apos;');\n}\n\nfunction escapeXmlText(value: string): string {\n return value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n}\n\n/**\n * Derives a valid DMN decision key (an XML NCName) from a human-readable name.\n * The decision key doubles as the identifier referenced from a process'\n * business rule task, so it must be a stable, valid identifier.\n */\nfunction toDecisionKey(name: string): string {\n const cleaned = (name ?? '')\n .trim()\n .replace(/[^A-Za-z0-9_-]+/g, '_')\n .replace(/^[_-]+|[_-]+$/g, '');\n\n if (!cleaned) return DEFAULT_DECISION_KEY;\n\n return /^[A-Za-z_]/.test(cleaned) ? cleaned : `${DEFAULT_DECISION_KEY}_${cleaned}`;\n}\n\n/**\n * Derives the name of the `.dmn` file that is deployed for a created decision.\n */\nfunction toDecisionFileName(name: string): string {\n return `${toDecisionKey(name)}.dmn`;\n}\n\n/**\n * Normalizes input columns: trims label/expression, drops rows without a process\n * variable (the expression is required), defaults the label to the process\n * variable name when it is left blank, and guarantees at least one (empty) input\n * column so the decision table always has an input to work with.\n */\nfunction normalizeInputVariables(\n inputVariables: DecisionInputVariable[] | undefined\n): DecisionInputVariable[] {\n const cleaned = (inputVariables ?? [])\n .map(({label, expression}) => ({\n label: (label ?? '').trim(),\n expression: (expression ?? '').trim(),\n }))\n .filter(({expression}) => expression.length > 0)\n .map(({label, expression}) => ({label: label || expression, expression}));\n\n return cleaned.length ? cleaned : [{label: '', expression: ''}];\n}\n\n/**\n * Builds a deployable DMN 1.3 decision table seeded with one input column per\n * provided input variable and a single output. Each input column gets its\n * process variable as the input expression and, optionally, a human-readable\n * label as the column header. Seeding this up front means the created table is\n * functional immediately - the user only has to add rules before deploying.\n */\nfunction createDmnXml({name, inputVariables}: DecisionFormValue): DecisionXml {\n const key = toDecisionKey(name);\n const safeName = escapeXmlAttribute((name ?? '').trim() || key);\n const inputs = normalizeInputVariables(inputVariables);\n\n const inputsXml = inputs\n .map(({label, expression}, index) => {\n const labelAttr = label ? ` label=\"${escapeXmlAttribute(label)}\"` : '';\n return ` <input id=\"Input_${index + 1}\"${labelAttr}>\n <inputExpression id=\"InputExpression_${index + 1}\" typeRef=\"string\">\n <text>${escapeXmlText(expression)}</text>\n </inputExpression>\n </input>`;\n })\n .join('\\n');\n\n const inputEntriesXml = inputs\n .map(\n (_, index) => ` <inputEntry id=\"UnaryTests_${index + 1}\">\n <text></text>\n </inputEntry>`\n )\n .join('\\n');\n\n const dmnXml = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\" xmlns:dmndi=\"https://www.omg.org/spec/DMN/20191111/DMNDI/\" xmlns:dc=\"http://www.omg.org/spec/DMN/20180521/DC/\" id=\"Definitions_${key}\" name=\"${safeName}\" namespace=\"http://camunda.org/schema/1.0/dmn\">\n <decision id=\"${key}\" name=\"${safeName}\">\n <decisionTable id=\"DecisionTable_${key}\">\n${inputsXml}\n <output id=\"Output_1\" label=\"Output\" name=\"result\" typeRef=\"string\" />\n <rule id=\"DecisionRule_1\">\n${inputEntriesXml}\n <outputEntry id=\"LiteralExpression_1\">\n <text></text>\n </outputEntry>\n </rule>\n </decisionTable>\n </decision>\n <dmndi:DMNDI>\n <dmndi:DMNDiagram>\n <dmndi:DMNShape dmnElementRef=\"${key}\">\n <dc:Bounds height=\"80\" width=\"180\" x=\"160\" y=\"100\" />\n </dmndi:DMNShape>\n </dmndi:DMNDiagram>\n </dmndi:DMNDI>\n</definitions>\n`;\n\n return {id: '', dmnXml};\n}\n\nfunction childrenByLocalName(parent: Element, localName: string): Element[] {\n return Array.from(parent.children).filter(child => child.localName === localName);\n}\n\nfunction firstChildByLocalName(parent: Element, localName: string): Element | null {\n return childrenByLocalName(parent, localName)[0] ?? null;\n}\n\nfunction uniqueId(doc: Document, prefix: string): string {\n let id: string;\n do {\n id = `${prefix}_${Math.random().toString(36).slice(2, 10)}`;\n } while (doc.querySelector(`[id=\"${id}\"]`));\n return id;\n}\n\n/**\n * Reads the editable form values (decision name and input columns) from an\n * existing DMN XML document.\n */\nfunction parseDecisionForm(xml: string): DecisionFormValue {\n const doc = new DOMParser().parseFromString(xml, 'application/xml');\n\n const decision = doc.getElementsByTagNameNS('*', 'decision')[0];\n const name = decision?.getAttribute('name') || decision?.getAttribute('id') || '';\n\n const inputVariables = Array.from(doc.getElementsByTagNameNS('*', 'input')).map(input => {\n const inputExpression = input.getElementsByTagNameNS('*', 'inputExpression')[0];\n const text = inputExpression?.getElementsByTagNameNS('*', 'text')[0];\n const expression = (text?.textContent ?? '').trim();\n const label = (input.getAttribute('label') ?? '').trim();\n // A label equal to the expression means it was defaulted, so present it as blank.\n return {label: label === expression ? '' : label, expression};\n });\n\n return {name, inputVariables};\n}\n\nfunction setInputColumn(\n input: Element,\n {label, expression}: DecisionInputVariable,\n doc: Document,\n ns: string | null\n): void {\n if (label) {\n input.setAttribute('label', label);\n } else {\n input.removeAttribute('label');\n }\n\n let inputExpression = firstChildByLocalName(input, 'inputExpression');\n if (!inputExpression) {\n inputExpression = doc.createElementNS(ns, 'inputExpression');\n inputExpression.setAttribute('id', uniqueId(doc, 'InputExpression'));\n inputExpression.setAttribute('typeRef', 'string');\n input.appendChild(inputExpression);\n }\n\n let text = firstChildByLocalName(inputExpression, 'text');\n if (!text) {\n text = doc.createElementNS(ns, 'text');\n inputExpression.appendChild(text);\n }\n text.textContent = expression;\n}\n\nfunction createInputElement(\n inputVariable: DecisionInputVariable,\n doc: Document,\n ns: string | null\n): Element {\n const input = doc.createElementNS(ns, 'input');\n input.setAttribute('id', uniqueId(doc, 'Input'));\n setInputColumn(input, inputVariable, doc, ns);\n return input;\n}\n\nfunction createEmptyInputEntry(doc: Document, ns: string | null): Element {\n const entry = doc.createElementNS(ns, 'inputEntry');\n entry.setAttribute('id', uniqueId(doc, 'UnaryTests'));\n const text = doc.createElementNS(ns, 'text');\n text.textContent = '';\n entry.appendChild(text);\n return entry;\n}\n\n/**\n * Patches an existing DMN XML document with a new decision name and set of input\n * columns, while preserving the decision key, outputs, rules and diagram. Input\n * columns are reconciled positionally: existing columns are updated (label +\n * expression), extra columns add an input (and a blank entry to every rule), and\n * removed columns drop the input (and their rule entries).\n */\nfunction updateDmnXml(xml: string, {name, inputVariables}: DecisionFormValue): string {\n const doc = new DOMParser().parseFromString(xml, 'application/xml');\n\n if (doc.getElementsByTagName('parsererror').length > 0) {\n return xml;\n }\n\n const trimmedName = (name ?? '').trim();\n\n const decision = doc.getElementsByTagNameNS('*', 'decision')[0];\n if (decision && trimmedName) {\n decision.setAttribute('name', trimmedName);\n }\n\n const decisionTable = doc.getElementsByTagNameNS('*', 'decisionTable')[0];\n if (!decisionTable) {\n return new XMLSerializer().serializeToString(doc);\n }\n\n const ns = decisionTable.namespaceURI;\n const targets = normalizeInputVariables(inputVariables);\n\n const existingInputs = childrenByLocalName(decisionTable, 'input');\n const rules = childrenByLocalName(decisionTable, 'rule');\n\n // Build the final ordered list of input columns, reusing existing nodes where possible.\n const finalInputs = targets.map((inputVariable, index) => {\n const existing = existingInputs[index];\n if (existing) {\n setInputColumn(existing, inputVariable, doc, ns);\n return existing;\n }\n return createInputElement(inputVariable, doc, ns);\n });\n\n // Remove all existing inputs, then re-insert the final ones in order before the outputs/rules.\n existingInputs.forEach(input => input.remove());\n const anchor =\n firstChildByLocalName(decisionTable, 'output') ??\n firstChildByLocalName(decisionTable, 'rule') ??\n null;\n finalInputs.forEach(input => decisionTable.insertBefore(input, anchor));\n\n // Reconcile each rule's input entries to match the number of input columns.\n rules.forEach(rule => {\n const entries = childrenByLocalName(rule, 'inputEntry');\n\n for (let index = entries.length; index < finalInputs.length; index++) {\n const firstOutputEntry = firstChildByLocalName(rule, 'outputEntry');\n rule.insertBefore(createEmptyInputEntry(doc, ns), firstOutputEntry);\n }\n\n for (let index = entries.length - 1; index >= finalInputs.length; index--) {\n entries[index].remove();\n }\n });\n\n return new XMLSerializer().serializeToString(doc);\n}\n\nexport {createDmnXml, toDecisionKey, toDecisionFileName, parseDecisionForm, updateDmnXml};\n","/*\n * Copyright 2015-2026 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 {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output,\n signal,\n} from '@angular/core';\nimport {FormBuilder, FormControl, ReactiveFormsModule, Validators} from '@angular/forms';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {\n CarbonMultiInputModule,\n MultiInputOutput,\n MultiInputValues,\n runAfterCarbonModalClosed,\n ValtimoCdsModalDirective,\n} from '@valtimo/components';\nimport {ButtonModule, InputModule, LayerModule, ModalModule} from 'carbon-components-angular';\nimport {BehaviorSubject} from 'rxjs';\nimport {DECISION_FORM_TEST_IDS} from '../constants';\nimport {DecisionFormValue, DecisionInputVariable} from '../models';\n\n@Component({\n selector: 'valtimo-decision-form-modal',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './decision-form-modal.component.html',\n imports: [\n CommonModule,\n ReactiveFormsModule,\n TranslateModule,\n ModalModule,\n ButtonModule,\n InputModule,\n LayerModule,\n ValtimoCdsModalDirective,\n CarbonMultiInputModule,\n ],\n styleUrl: './decision-form-modal.component.scss',\n})\nexport class DecisionFormModalComponent {\n @Input() public titleKey = 'decisions.createModal.title';\n @Input() public submitKey = 'interface.create';\n\n @Output() submitEvent = new EventEmitter<DecisionFormValue>();\n\n public readonly MAX_INPUT_VARIABLES = 100;\n\n public readonly modalOpen$ = new BehaviorSubject<boolean>(false);\n public readonly defaultInputVariables$ = new BehaviorSubject<MultiInputValues>([\n {key: '', value: ''},\n ]);\n\n /** True when a row has a label but no process variable (the process variable is required). */\n public readonly $inputVariablesInvalid = signal<boolean>(false);\n\n protected readonly testIds = DECISION_FORM_TEST_IDS;\n\n public readonly form = this.formBuilder.group({\n name: this.formBuilder.control('', [Validators.required]),\n });\n\n private _inputVariables: DecisionInputVariable[] = [];\n\n public get name(): FormControl<string> {\n return this.form.get('name') as FormControl<string>;\n }\n\n constructor(private readonly formBuilder: FormBuilder) {}\n\n public open(initial?: DecisionFormValue): void {\n const inputVariables = initial?.inputVariables ?? [];\n this._inputVariables = inputVariables.map(({label, expression}) => ({label, expression}));\n // The multi-input renders key (left) then value (right); the process variable is\n // the first column, so it maps to key and the label maps to value.\n this.defaultInputVariables$.next(\n inputVariables.length\n ? inputVariables.map(({label, expression}) => ({key: expression, value: label}))\n : [{key: '', value: ''}]\n );\n this.updateInputVariablesValidity();\n this.form.reset({name: initial?.name ?? ''});\n this.modalOpen$.next(true);\n }\n\n /** Convenience used by the \"create\" trigger, which opens an empty form. */\n public openModal(): void {\n this.open();\n }\n\n public closeModal(): void {\n this.modalOpen$.next(false);\n runAfterCarbonModalClosed(() => {\n this.form.reset({name: ''});\n this._inputVariables = [];\n this.$inputVariablesInvalid.set(false);\n this.defaultInputVariables$.next([{key: '', value: ''}]);\n });\n }\n\n public onInputVariablesChange(values: MultiInputOutput): void {\n this._inputVariables = ((values as MultiInputValues) ?? []).map(row => ({\n label: row.value ?? '',\n expression: row.key ?? '',\n }));\n this.updateInputVariablesValidity();\n }\n\n public submit(): void {\n if (this.form.invalid || this.$inputVariablesInvalid()) {\n this.form.markAllAsTouched();\n return;\n }\n\n const name = (this.form.getRawValue().name ?? '').trim();\n const inputVariables = this._inputVariables\n .map(({label, expression}) => ({label: label.trim(), expression: expression.trim()}))\n .filter(({expression}) => expression.length > 0);\n\n this.submitEvent.emit({name, inputVariables});\n this.closeModal();\n }\n\n private updateInputVariablesValidity(): void {\n this.$inputVariablesInvalid.set(\n this._inputVariables.some(\n ({label, expression}) => label.trim().length > 0 && expression.trim().length === 0\n )\n );\n }\n}\n","<!--\n ~ Copyright 2015-2026 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 showFooter=\"true\" valtimoCdsModal [open]=\"modalOpen$ | async\" (close)=\"closeModal()\">\n <cds-modal-header showCloseButton=\"true\" (closeSelect)=\"closeModal()\">\n <h3 cdsModalHeaderHeading>{{ titleKey | translate }}</h3>\n </cds-modal-header>\n\n <form cdsModalContent [cdsLayer]=\"1\" [formGroup]=\"form\">\n <div class=\"cds--text-input__field-wrapper\">\n <cds-label [invalid]=\"name.touched && name.invalid\">\n <span>{{ 'decisions.createModal.name' | translate }}</span>\n\n <input\n cdsText\n formControlName=\"name\"\n [attr.data-test-id]=\"testIds.nameInput\"\n [invalid]=\"name.touched && name.invalid\"\n placeholder=\"{{ 'decisions.createModal.namePlaceholder' | translate }}\"\n />\n </cds-label>\n\n <div *ngIf=\"name.touched && name.invalid\" class=\"cds--form-requirement\">\n {{ 'decisions.createModal.nameRequired' | translate }}\n </div>\n </div>\n\n <valtimo-carbon-multi-input\n *ngIf=\"modalOpen$ | async\"\n type=\"keyValue\"\n [attr.data-test-id]=\"testIds.inputVariables\"\n [titleTranslationKey]=\"'decisions.createModal.inputVariables'\"\n [tooltip]=\"'decisions.createModal.inputVariablesHelper' | translate\"\n [keyColumnTitle]=\"'decisions.createModal.inputExpression' | translate\"\n [valueColumnTitle]=\"'decisions.createModal.inputLabel' | translate\"\n [addRowTranslationKey]=\"'decisions.createModal.addInputVariable'\"\n [defaultValues]=\"defaultInputVariables$ | async\"\n [initialAmountOfRows]=\"1\"\n [minimumAmountOfRows]=\"1\"\n [maxRows]=\"MAX_INPUT_VARIABLES\"\n [margin]=\"true\"\n [fullWidth]=\"true\"\n (valueChange)=\"onInputVariablesChange($event)\"\n ></valtimo-carbon-multi-input>\n\n <div *ngIf=\"$inputVariablesInvalid()\" class=\"cds--form-requirement\">\n {{ 'decisions.createModal.inputExpressionRequired' | translate }}\n </div>\n </form>\n\n <cds-modal-footer>\n <button cdsButton=\"secondary\" (click)=\"closeModal()\">\n {{ 'interface.cancel' | translate }}\n </button>\n\n <button\n cdsButton=\"primary\"\n [disabled]=\"form.invalid || $inputVariablesInvalid()\"\n (click)=\"submit()\"\n [attr.data-test-id]=\"testIds.submitButton\"\n >\n {{ submitKey | 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 */\n\nimport {DecisionXml} from '../models';\n\nconst EMPTY_DECISION: DecisionXml = {\n id: '',\n dmnXml: `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\" xmlns:dmndi=\"https://www.omg.org/spec/DMN/20191111/DMNDI/\" xmlns:dc=\"http://www.omg.org/spec/DMN/20180521/DC/\" id=\"Definitions_1h198v9\" name=\"DRD\" namespace=\"http://camunda.org/schema/1.0/dmn\" xmlns:modeler=\"http://camunda.org/schema/modeler/1.0\" exporter=\"Camunda Modeler\" exporterVersion=\"5.2.0\" modeler:executionPlatform=\"Camunda Cloud\" modeler:executionPlatformVersion=\"8.0.0\">\n <decision id=\"Decision_1e18q76\" name=\"Decision 1\">\n <decisionTable id=\"DecisionTable_1apu23m\">\n <input id=\"Input_1\">\n <inputExpression id=\"InputExpression_1\" typeRef=\"string\">\n <text></text>\n </inputExpression>\n </input>\n <output id=\"Output_1\" typeRef=\"string\" />\n </decisionTable>\n </decision>\n <dmndi:DMNDI>\n <dmndi:DMNDiagram>\n <dmndi:DMNShape dmnElementRef=\"Decision_1e18q76\">\n <dc:Bounds height=\"80\" width=\"180\" x=\"160\" y=\"100\" />\n </dmndi:DMNShape>\n </dmndi:DMNDiagram>\n </dmndi:DMNDI>\n</definitions>\n`,\n};\n\nexport {EMPTY_DECISION};\n","/*\n * Copyright 2015-2026 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 {DECISION_MODELER_TEST_IDS} from '../constants';\nimport {DecisionService} from '../services/decision.service';\nimport {AfterViewInit, Component, OnDestroy, OnInit, ViewChild} from '@angular/core';\nimport DmnJS from 'dmn-js/dist/dmn-modeler.development.js';\nimport DmnViewer from 'dmn-js/dist/dmn-viewer.development.js';\nimport {ActivatedRoute, Router, RouterModule} from '@angular/router';\nimport {DecisionFormValue, DecisionXml} from '../models';\nimport {\n createDmnXml,\n parseDecisionForm,\n toDecisionFileName,\n updateDmnXml,\n} from '../utils/dmn-template';\nimport {DecisionFormModalComponent} from '../decision-form-modal/decision-form-modal.component';\nimport {migrateDiagram} from '@bpmn-io/dmn-migrate';\nimport {\n BehaviorSubject,\n catchError,\n combineLatest,\n filter,\n from,\n map,\n Observable,\n of,\n shareReplay,\n switchMap,\n take,\n tap,\n} from 'rxjs';\nimport {\n BreadcrumbService,\n ConfirmationModalModule,\n FitPageDirective,\n OverflowMenuComponent,\n OverflowMenuOptionComponent,\n OverflowMenuTriggerComponent,\n PageHeaderService,\n PageTitleService,\n PendingChangesComponent,\n RenderInPageHeaderDirective,\n SelectedValue,\n SelectModule as ValtimoSelectModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {TranslateModule, TranslateService} from '@ngx-translate/core';\nimport {EMPTY_DECISION} from './empty-decision';\nimport {CommonModule} from '@angular/common';\nimport {\n ButtonModule,\n IconModule,\n IconService,\n ModalModule,\n SelectModule,\n TagModule,\n} from 'carbon-components-angular';\nimport {\n BuildingBlockManagementParams,\n CaseManagementParams,\n DraftVersionService,\n EditPermissionsService,\n getBuildingBlockManagementRouteParams,\n getCaseManagementRouteParams,\n getContextObservable,\n GlobalNotificationService,\n ManagementContext,\n} from '@valtimo/shared';\nimport {ArrowLeft16, Deploy16, Download16} from '@carbon/icons';\n\ndeclare const $: any;\n\n@Component({\n selector: 'valtimo-decision-modeler',\n standalone: true,\n templateUrl: './decision-modeler.component.html',\n styleUrls: ['./decision-modeler.component.scss'],\n imports: [\n CommonModule,\n RouterModule,\n ModalModule,\n SelectModule,\n WidgetModule,\n ValtimoSelectModule,\n TranslateModule,\n RenderInPageHeaderDirective,\n ButtonModule,\n IconModule,\n TagModule,\n FitPageDirective,\n OverflowMenuComponent,\n OverflowMenuOptionComponent,\n OverflowMenuTriggerComponent,\n DecisionFormModalComponent,\n ConfirmationModalModule,\n ],\n})\nexport class DecisionModelerComponent\n extends PendingChangesComponent\n implements OnInit, OnDestroy, AfterViewInit\n{\n @ViewChild('decisionEdit') edit: DecisionFormModalComponent;\n\n private CLASS_NAMES = {\n drd: 'dmn-icon-lasso-tool',\n decisionTable: 'dmn-icon-decision-table',\n literalExpression: 'dmn-icon-literal-expression',\n };\n\n protected readonly testIds = DECISION_MODELER_TEST_IDS;\n\n private $container!: any;\n private $tabs!: any;\n private dmnEditor!: DmnJS | DmnViewer;\n\n public readonly versionSelectionDisabled$ = new BehaviorSubject<boolean>(true);\n public readonly isCreating$ = new BehaviorSubject<boolean>(false);\n public readonly selectionId$ = new BehaviorSubject<string>('');\n public readonly showDeleteModal$ = new BehaviorSubject<boolean>(false);\n\n // Emits once the dmn-js editor instance has been created, so XML import can wait for it.\n private readonly _editorReady$ = new BehaviorSubject<boolean>(false);\n\n private _fileName!: string;\n private _createSeed: DecisionFormValue | null = null;\n private _decisionKey: string | null = null;\n\n public readonly caseManagementRouteParams$: Observable<CaseManagementParams | undefined> =\n getCaseManagementRouteParams(this.route);\n\n public readonly buildingBlockManagementRouteParams$: Observable<\n BuildingBlockManagementParams | undefined\n > = getBuildingBlockManagementRouteParams(this.route);\n\n public readonly context$: Observable<ManagementContext | null> = getContextObservable(this.route);\n public readonly isIndependent$ = this.context$.pipe(map(context => context === 'independent'));\n\n public readonly compactMode$ = this.pageHeaderService.compactMode$;\n\n public readonly hasEditPermissions$: Observable<boolean> = combineLatest([\n this.caseManagementRouteParams$,\n this.buildingBlockManagementRouteParams$,\n this.context$,\n ]).pipe(\n switchMap(([caseParams, buildingBlockParams, context]) => {\n // Building block decision tables can only be edited on a draft (non-final) version.\n if (context === 'buildingBlock') {\n return this.draftVersionService.isDraftVersionBuildingBlock(\n buildingBlockParams?.buildingBlockDefinitionKey ?? '',\n buildingBlockParams?.buildingBlockDefinitionVersionTag ?? ''\n );\n }\n return this.editPermissionsService.hasPermissionsToEditBasedOnContext(\n caseParams,\n context ?? ''\n );\n }),\n shareReplay({bufferSize: 1, refCount: false})\n );\n\n // The editor is shown as a read-only viewer when the user cannot edit (e.g. a final case or\n // building block definition) and is not creating a new decision table.\n public readonly readOnly$: Observable<boolean> = combineLatest([\n this.isCreating$,\n this.hasEditPermissions$,\n ]).pipe(map(([isCreating, hasEditPermissions]) => !isCreating && !hasEditPermissions));\n\n private readonly decisionId$ = this.route.params.pipe(\n map(params => params?.id),\n tap(id => {\n this.isCreating$.next(id === 'create');\n this.versionSelectionDisabled$.next(true);\n }),\n filter(id => !!id && id !== 'create')\n );\n\n public readonly decision$ = this.decisionId$.pipe(\n switchMap(id => this.decisionService.getDecisionById(id)),\n tap(decision => {\n this._fileName = decision.resource;\n this._decisionKey = decision?.key ?? null;\n if (decision) this.selectionId$.next(decision.id);\n })\n );\n\n public readonly decisionTitle$ = this.decision$.pipe(\n map(d => d?.name || d?.key || '-'),\n tap(title => this.pageTitleService.setCustomPageTitle(title))\n );\n\n private readonly _refreshDecisionSelectItems$ = new BehaviorSubject<null>(null);\n public readonly decisionVersionSelectItems$ = this._refreshDecisionSelectItems$.pipe(\n switchMap(() => combineLatest([this.decision$, this.decisionService.getUnlinkedDecisions()])),\n map(([current, list]) => {\n const filtered = list.filter(d => d.key === current.key);\n return [...filtered.map(d => ({id: d.id, text: d.version.toString()}))].sort(\n (a, b) => +(b.text ?? '') - +(a.text ?? '')\n );\n }),\n tap(() => this.versionSelectionDisabled$.next(false))\n );\n\n public readonly decisionXml$ = this.decisionId$.pipe(\n switchMap(id => this.decisionService.getDecisionXml(id)),\n // Wait until the editor (modeler or read-only viewer) has been created before importing.\n switchMap(xml =>\n this._editorReady$.pipe(\n filter(Boolean),\n take(1),\n map(() => xml)\n )\n ),\n tap(xml => xml && this.loadDecisionXml(xml))\n );\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly route: ActivatedRoute,\n private readonly router: Router,\n private readonly translateService: TranslateService,\n private readonly pageTitleService: PageTitleService,\n private readonly breadcrumbService: BreadcrumbService,\n private readonly iconService: IconService,\n private readonly pageHeaderService: PageHeaderService,\n private readonly notificationService: GlobalNotificationService,\n private readonly editPermissionsService: EditPermissionsService,\n private readonly draftVersionService: DraftVersionService\n ) {\n super();\n this.iconService.registerAll([Deploy16, Download16, ArrowLeft16]);\n this._createSeed = this.extractCreateSeed();\n }\n\n private extractCreateSeed(): DecisionFormValue | null {\n const navigationState =\n this.router.getCurrentNavigation()?.extras?.state ??\n (typeof history !== 'undefined' ? history.state : undefined);\n\n const name = navigationState?.['decisionName'];\n const inputVariables = navigationState?.['inputVariables'];\n\n if (typeof name === 'string' && name) {\n return {\n name,\n inputVariables: Array.isArray(inputVariables)\n ? inputVariables\n .filter((variable: unknown): variable is Record<string, unknown> => !!variable)\n .map(variable => ({\n label: String(variable['label'] ?? ''),\n expression: String(variable['expression'] ?? ''),\n }))\n : [],\n };\n }\n\n return null;\n }\n\n public ngOnInit(): void {\n this.pageTitleService.disableReset();\n }\n\n public ngOnDestroy(): void {\n this.dmnEditor?.destroy();\n this.pageTitleService.enableReset();\n this.breadcrumbService.clearThirdBreadcrumb();\n this.breadcrumbService.clearFourthBreadcrumb();\n }\n\n public ngAfterViewInit(): void {\n this.initEditor();\n\n this.context$.pipe(take(1)).subscribe(context => {\n if (!context) return;\n\n if (context === 'buildingBlock') {\n this.buildingBlockManagementRouteParams$.pipe(take(1)).subscribe(params => {\n if (params) this.initBuildingBlockBreadcrumbs(params);\n });\n } else {\n this.caseManagementRouteParams$.pipe(take(1)).subscribe(params => {\n if (params) this.initBreadcrumbs(params, context);\n });\n }\n });\n }\n\n public switchVersion(decisionId: string | SelectedValue): void {\n if (!decisionId) return;\n\n this.router.navigate(['../', decisionId], {relativeTo: this.route});\n this._refreshDecisionSelectItems$.next(null);\n }\n\n public deploy(): void {\n from(this.dmnEditor.saveXML({format: true}))\n .pipe(\n map(result => new File([(result as any).xml], this._fileName, {type: 'text/xml'})),\n switchMap(file => combineLatest([of(file), this.context$])),\n switchMap(([file, context]) => {\n if (context === 'independent') {\n return this.decisionService.deployDmn(file);\n }\n if (context === 'buildingBlock') {\n return this.buildingBlockManagementRouteParams$.pipe(\n switchMap(params =>\n this.decisionService.deployBuildingBlockDecisionDefinition(\n params?.buildingBlockDefinitionKey ?? '',\n params?.buildingBlockDefinitionVersionTag ?? '',\n file\n )\n )\n );\n }\n return this.caseManagementRouteParams$.pipe(\n switchMap(params =>\n this.decisionService.deployCaseDecisionDefinition(\n params?.caseDefinitionKey ?? '',\n params?.caseDefinitionVersionTag ?? '',\n file\n )\n )\n );\n }),\n tap((res: {identifier: string}) => {\n this.switchVersion(res.identifier);\n this.showNotification('success', 'decisions.deploySuccess');\n }),\n catchError(() => {\n this.showNotification('error', 'decisions.deployFailure');\n\n return of(null);\n })\n )\n .subscribe();\n }\n\n public download(): void {\n from(this.dmnEditor.saveXML({format: true}))\n .pipe(\n map(result => new File([(result as any).xml], 'decision.dmn', {type: 'text/xml'})),\n tap(file => {\n const link = document.createElement('a');\n link.download = 'diagram.dmn';\n link.href = window.URL.createObjectURL(file);\n link.click();\n window.URL.revokeObjectURL(link.href);\n link.remove();\n })\n )\n .subscribe();\n }\n\n public openEditModal(): void {\n from(this.dmnEditor.saveXML({format: true}))\n .pipe(take(1))\n .subscribe(result => this.edit.open(parseDecisionForm((result as any).xml)));\n }\n\n public onEditDecision(value: DecisionFormValue): void {\n from(this.dmnEditor.saveXML({format: true}))\n .pipe(\n map(result => updateDmnXml((result as any).xml, value)),\n switchMap(xml => this.dmnEditor.importXML(xml)),\n tap(() => {\n this.setEditor();\n if (value.name) this.pageTitleService.setCustomPageTitle(value.name);\n }),\n catchError(() => {\n this.showNotification('error', 'decisions.loadFailure');\n return of(null);\n })\n )\n .subscribe();\n }\n\n public onDeleteClick(): void {\n this.showDeleteModal$.next(true);\n }\n\n public onDeleteConfirm(): void {\n const decisionKey = this._decisionKey;\n if (!decisionKey) return;\n\n this.context$\n .pipe(\n take(1),\n switchMap(context => {\n if (context === 'buildingBlock') {\n return this.buildingBlockManagementRouteParams$.pipe(\n take(1),\n switchMap(params =>\n this.decisionService.deleteBuildingBlockDecisionDefinition(\n params?.buildingBlockDefinitionKey ?? '',\n params?.buildingBlockDefinitionVersionTag ?? '',\n decisionKey\n )\n )\n );\n }\n return this.caseManagementRouteParams$.pipe(\n take(1),\n switchMap(params =>\n this.decisionService.deleteCaseDecisionDefinition(\n params?.caseDefinitionKey ?? '',\n params?.caseDefinitionVersionTag ?? '',\n decisionKey\n )\n )\n );\n })\n )\n .subscribe({\n next: () => {\n this.navigateBack();\n this.showNotification('success', 'decisions.deleteSuccess');\n },\n error: () => this.showNotification('error', 'decisions.deleteFailure'),\n });\n }\n\n public navigateBack(): void {\n this.context$.pipe(take(1)).subscribe(context => {\n if (context === 'independent') {\n this.router.navigate(['/decision-tables']);\n } else {\n this.router.navigate(['../'], {relativeTo: this.route});\n }\n });\n }\n\n private showNotification(notification: null | 'success' | 'error', message: string): void {\n if (!notification) return;\n\n this.notificationService.showToast({\n caption: this.translateService.instant(message),\n type: notification,\n title: this.translateService.instant(`interface.${notification}`),\n });\n }\n\n private initEditor(): void {\n // A new decision table is always created in the editable modeler. For existing tables the\n // edit permissions decide whether to render the editable modeler or a read-only viewer.\n if (this.route.snapshot.params?.['id'] === 'create') {\n this.createEditor(false);\n this.loadEmptyDecisionTable();\n return;\n }\n\n this.hasEditPermissions$\n .pipe(take(1))\n .subscribe(hasEditPermissions => this.createEditor(!hasEditPermissions));\n }\n\n private createEditor(readOnly: boolean): void {\n this.$container = $('.editor-container');\n this.$tabs = $('.editor-tabs');\n this.dmnEditor = readOnly\n ? new DmnViewer({\n container: this.$container,\n height: 500,\n width: '100%',\n })\n : new DmnJS({\n container: this.$container,\n height: 500,\n width: '100%',\n keyboard: {bindTo: window},\n });\n this.setTabEvents();\n this.setModelerEvents();\n this._editorReady$.next(true);\n }\n\n private loadEmptyDecisionTable(): void {\n if (this._createSeed) {\n this._fileName = toDecisionFileName(this._createSeed.name);\n this.pageTitleService.setCustomPageTitle(this._createSeed.name);\n this.loadDecisionXml(createDmnXml(this._createSeed));\n return;\n }\n\n this._fileName = 'decision.dmn';\n this.loadDecisionXml(EMPTY_DECISION);\n }\n\n private setTabEvents(): void {\n this.$tabs.delegate('.tab', 'click', async (event: any) => {\n const index = +event.currentTarget.getAttribute('data-id');\n const view = this.dmnEditor.getViews()[index];\n try {\n await this.dmnEditor.open(view);\n } catch (err) {\n console.error('tab open error', err);\n }\n });\n }\n\n private setModelerEvents(): void {\n this.dmnEditor.on('views.changed', event => {\n const {views, activeView} = event;\n this.$tabs.empty();\n views.forEach((v, i) => {\n const className = this.CLASS_NAMES[v.type];\n const tab = $(\n `<div class=\"tab ${v === activeView ? 'active' : ''}\" data-id=\"${i}\"><span class=\"${className}\"></span>${v.element.name || v.element.id}</div>`\n );\n this.$tabs.append(tab);\n });\n });\n }\n\n private loadDecisionXml(decision: DecisionXml): void {\n from(this.dmnEditor.importXML(decision.dmnXml))\n .pipe(\n tap(() => this.setEditor()),\n catchError(() => {\n this.migrateAndLoadDecisionXml(decision);\n return of(null);\n })\n )\n .subscribe();\n }\n\n private migrateAndLoadDecisionXml(decision: DecisionXml): void {\n from(migrateDiagram(decision.dmnXml))\n .pipe(\n switchMap(xml => this.dmnEditor.importXML(xml)),\n tap(() => this.setEditor()),\n catchError(() => {\n this.showNotification('error', 'decisions.loadFailure');\n return of(null);\n })\n )\n .subscribe();\n }\n\n private setEditor(): void {\n const view = this.dmnEditor.getActiveView();\n if (view?.type === 'drd') {\n const canvas = this.dmnEditor.getActiveViewer().get('canvas');\n canvas.zoom('fit-viewport');\n }\n }\n\n private initBreadcrumbs(params: CaseManagementParams, context: ManagementContext): void {\n if (context === 'independent') return;\n\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 routeWithDecisions = `${route}/decisions`;\n\n this.breadcrumbService.setFourthBreadcrumb({\n route: [routeWithDecisions],\n content: this.translateService.instant('caseManagement.tabs.decision'),\n href: routeWithDecisions,\n });\n }\n\n private initBuildingBlockBreadcrumbs(params: BuildingBlockManagementParams): void {\n const route = `/building-block-management/building-block/${params.buildingBlockDefinitionKey}/version/${params.buildingBlockDefinitionVersionTag}`;\n const generalRoute = `${route}/general`;\n\n this.breadcrumbService.setThirdBreadcrumb({\n route: [generalRoute],\n content: `${params.buildingBlockDefinitionKey} (${params.buildingBlockDefinitionVersionTag})`,\n href: generalRoute,\n });\n\n const routeWithDecisions = `${route}/decisions`;\n\n this.breadcrumbService.setFourthBreadcrumb({\n route: [routeWithDecisions],\n content: this.translateService.instant('buildingBlockManagement.tabs.decisions'),\n href: routeWithDecisions,\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<div\n *ngIf=\"{\n decisionXml: decisionXml$ | async,\n decisionTitle: decisionTitle$ | async,\n } as obs\"\n fitPage\n [disableOverflow]=\"true\"\n class=\"dmn-editor\"\n>\n <ng-container *ngTemplateOutlet=\"diagram\"></ng-container>\n</div>\n\n<ng-template #diagram>\n <div class=\"editor-parent\">\n <div class=\"editor-container\"></div>\n <div class=\"editor-tabs\"></div>\n </div>\n</ng-template>\n\n<ng-container renderInPageHeader>\n <ng-template>\n <div\n *ngIf=\"{\n selectionId: selectionId$ | async,\n isCreating: isCreating$ | async,\n context: context$ | async,\n compactMode: compactMode$ | async,\n hasEditPermissions: hasEditPermissions$ | async,\n readOnly: readOnly$ | async,\n } as obs\"\n class=\"decision-modeler-actions\"\n >\n <cds-tag *ngIf=\"obs.readOnly\" type=\"blue\" [attr.data-test-id]=\"testIds.readOnlyTag\">{{\n 'decisions.readOnly' | translate\n }}</cds-tag>\n\n <ng-container *ngTemplateOutlet=\"versionSelection\"></ng-container>\n\n <button\n *ngIf=\"obs.context === 'case' || obs.isCreating\"\n cdsButton=\"secondary\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n (click)=\"navigateBack()\"\n [attr.data-test-id]=\"testIds.backButton\"\n >\n <svg class=\"cds--btn__icon\" cdsIcon=\"arrow--left\" size=\"16\"></svg>\n\n <span>{{ 'interface.back' | translate }}</span>\n </button>\n\n @if (obs.selectionId && !obs.isCreating) {\n <button\n cdsButton=\"primary\"\n [disabled]=\"!obs.hasEditPermissions\"\n (click)=\"deploy()\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n [attr.data-test-id]=\"testIds.deployButton\"\n >\n {{ 'decisions.deploy' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"deploy\" size=\"16\"></svg>\n </button>\n\n <v-overflow-menu class=\"overflow-button\" placement=\"bottom-end\">\n <v-overflow-menu-trigger overflowTrigger></v-overflow-menu-trigger>\n <v-overflow-menu-option [disabled]=\"!obs.hasEditPermissions\" (selected)=\"openEditModal()\"\n >{{ 'interface.edit' | translate }}\n </v-overflow-menu-option>\n <v-overflow-menu-option (selected)=\"download()\"\n >{{ 'interface.export' | translate }}\n </v-overflow-menu-option>\n <v-overflow-menu-option\n [disabled]=\"!obs.hasEditPermissions || obs.context === 'independent'\"\n type=\"danger\"\n (selected)=\"onDeleteClick()\"\n >{{ 'interface.delete' | translate }}\n </v-overflow-menu-option>\n </v-overflow-menu>\n } @else {\n <button\n cdsButton=\"primary\"\n [disabled]=\"!obs.hasEditPermissions\"\n (click)=\"deploy()\"\n [size]=\"obs.compactMode ? 'sm' : 'md'\"\n [attr.data-test-id]=\"testIds.deployButton\"\n >\n {{ 'decisions.deploy' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"deploy\" size=\"16\"></svg>\n </button>\n }\n </div>\n </ng-template>\n</ng-container>\n\n<ng-template #versionSelection>\n <ng-container\n *ngIf=\"{\n selectItems: (decisionVersionSelectItems$ | async) || [],\n isIndependent: isIndependent$ | async,\n versionSelectionDisabled: versionSelectionDisabled$ | async,\n selectionId: selectionId$ | async,\n } as obs\"\n >\n <v-select\n *ngIf=\"obs.isIndependent\"\n name=\"version\"\n [title]=\"'decisions.version' | translate\"\n [disabled]=\"obs.versionSelectionDisabled\"\n [clearable]=\"false\"\n [loading]=\"obs.selectItems.length === 0\"\n [items]=\"obs.selectItems\"\n [defaultSelectionId]=\"obs.selectionId\"\n [widthInPx]=\"120\"\n (selectedChange)=\"switchVersion($event)\"\n ></v-select>\n </ng-container>\n</ng-template>\n\n<valtimo-decision-form-modal\n #decisionEdit\n titleKey=\"decisions.editModal.title\"\n submitKey=\"interface.save\"\n (submitEvent)=\"onEditDecision($event)\"\n></valtimo-decision-form-modal>\n\n<valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"interface.delete\"\n confirmButtonType=\"danger\"\n contentTranslationKey=\"decisions.deleteModal.content\"\n [showModalSubject$]=\"showDeleteModal$\"\n titleTranslationKey=\"decisions.deleteModal.title\"\n (confirmEvent)=\"onDeleteConfirm()\"\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 {Component, OnInit, ViewEncapsulation} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ActivatedRoute, RouterModule} from '@angular/router';\nimport {DecisionService} from '../services/decision.service';\nimport {DecisionXml} from '../models';\nimport DmnViewer from 'dmn-js';\nimport {migrateDiagram} from '@bpmn-io/dmn-migrate';\nimport {TranslateModule} from '@ngx-translate/core';\n\n@Component({\n selector: 'valtimo-decision-display',\n standalone: true,\n templateUrl: './decision-display.component.html',\n styleUrls: ['./decision-display.component.scss'],\n encapsulation: ViewEncapsulation.None,\n imports: [CommonModule, RouterModule, TranslateModule],\n})\nexport class DecisionDisplayComponent implements OnInit {\n public viewer: DmnViewer;\n private decisionId: string;\n public decisionXml: string;\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly route: ActivatedRoute\n ) {}\n\n ngOnInit(): void {\n this.viewer = new DmnViewer({\n container: '#canvas',\n });\n this.decisionId = this.route.snapshot.paramMap.get('id')!;\n this.loadDecisionXml();\n }\n\n loadDecisionXml(): void {\n this.decisionService.getDecisionXml(this.decisionId).subscribe((decision: DecisionXml) => {\n this.viewer.importXML(decision.dmnXml, error => {\n if (error) {\n this.migrateAndLoadDecisionXml(decision);\n }\n });\n this.decisionXml = decision.dmnXml;\n });\n }\n\n async migrateAndLoadDecisionXml(decision: DecisionXml): Promise<void> {\n const decisionXml = await migrateDiagram(decision.dmnXml);\n\n if (decisionXml) {\n this.viewer.importXML(decisionXml, error => {\n if (error) {\n console.error('Error importing migrated XML', error);\n }\n });\n this.decisionXml = decisionXml;\n }\n }\n\n download(): void {\n const file = new Blob([this.decisionXml], {type: 'text/xml'});\n const link = document.createElement('a');\n link.download = `decision_table_${this.decisionId}.dmn`;\n link.href = window.URL.createObjectURL(file);\n link.click();\n window.URL.revokeObjectURL(link.href);\n link.remove();\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<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"text-right\">\n <div class=\"btn-group mt-m3px mb-3\">\n <button (click)=\"download()\" class=\"btn btn-primary btn-space mr-0\">\n <i class=\"fa fa-save\"></i> &nbsp;\n <span>{{ 'Download' | translate }}</span>\n </button>\n </div>\n </div>\n <div id=\"canvas\" class=\"canvas-dmn\"></div>\n </div>\n</div>\n","/*\n * Copyright 2015-2026 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 {Decision} from '../models';\n\nexport function filterLatestDecisionVersions(decisions: Decision[]): Decision[] {\n return decisions.reduce((acc: Decision[], curr: Decision) => {\n const existing = acc.find(d => d.key === curr.key);\n if (existing && existing.version >= curr.version) return acc;\n if (existing && existing.version < curr.version)\n return [...acc.filter(d => d.key !== curr.key), curr];\n return [...acc, curr];\n }, []);\n}\n","/*\n * Copyright 2015-2026 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 {Component, EventEmitter, Output} from '@angular/core';\nimport {FormBuilder, FormsModule, ReactiveFormsModule, Validators} from '@angular/forms';\nimport {ActivatedRoute} from '@angular/router';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {\n ButtonModule,\n FileUploaderModule,\n LayerModule,\n ModalModule,\n} from 'carbon-components-angular';\nimport {BehaviorSubject, combineLatest, switchMap, take} from 'rxjs';\nimport {DECISION_UPLOAD_TEST_IDS} from '../constants';\nimport {\n getBuildingBlockManagementRouteParams,\n getCaseManagementRouteParams,\n getContextObservable,\n} from '@valtimo/shared';\nimport {DecisionService, DecisionStateService} from '../services';\n\n@Component({\n selector: 'valtimo-decision-deploy',\n standalone: true,\n templateUrl: './decision-deploy.component.html',\n styleUrls: ['./decision-deploy.component.scss'],\n imports: [\n CommonModule,\n FormsModule,\n TranslateModule,\n ModalModule,\n ButtonModule,\n LayerModule,\n FileUploaderModule,\n ReactiveFormsModule,\n ],\n})\nexport class DecisionDeployComponent {\n @Output() deploySuccessful = new EventEmitter();\n\n public dmn: File | null = null;\n\n public readonly modalOpen$ = new BehaviorSubject<boolean>(false);\n\n protected readonly testIds = DECISION_UPLOAD_TEST_IDS;\n\n public readonly caseManagementRouteParams$ = getCaseManagementRouteParams(this.route);\n public readonly buildingBlockManagementRouteParams$ =\n getBuildingBlockManagementRouteParams(this.route);\n public readonly context$ = getContextObservable(this.route);\n\n public readonly ACCEPTED_FILES: string[] = ['dmn'];\n\n public readonly form = this.formBuilder.group({\n file: this.formBuilder.control(new Set<any>(), [Validators.required]),\n });\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly stateService: DecisionStateService,\n private readonly route: ActivatedRoute,\n private readonly formBuilder: FormBuilder\n ) {}\n\n public get selectedDmnFile(): File | null {\n const fileSet = this.form.value?.file;\n return fileSet?.size ? fileSet.values().next().value?.file || null : null;\n }\n\n public onChange(files: FileList): void {\n this.dmn = files.item(0);\n }\n\n public deployDmn(): void {\n const dmnFile = this.selectedDmnFile;\n if (!dmnFile) return;\n\n this.context$\n .pipe(\n take(1),\n switchMap(context => {\n if (context === 'case') {\n return this.caseManagementRouteParams$.pipe(\n take(1),\n switchMap(params =>\n this.decisionService.deployCaseDecisionDefinition(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag,\n dmnFile\n )\n )\n );\n }\n if (context === 'buildingBlock') {\n return this.buildingBlockManagementRouteParams$.pipe(\n take(1),\n switchMap(params =>\n this.decisionService.deployBuildingBlockDecisionDefinition(\n params.buildingBlockDefinitionKey,\n params.buildingBlockDefinitionVersionTag,\n dmnFile\n )\n )\n );\n }\n return this.decisionService.deployDmn(dmnFile);\n })\n )\n .subscribe(() => {\n this.closeModal();\n this.deploySuccessful.emit();\n this.stateService.refreshDecisions();\n });\n }\n\n public openModal() {\n this.modalOpen$.next(true);\n }\n\n public closeModal(): void {\n this.modalOpen$.next(false);\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 showFooter=\"true\" valtimoCdsModal [open]=\"modalOpen$ | async\" (close)=\"closeModal()\">\n <cds-modal-header showCloseButton=\"true\" (closeSelect)=\"closeModal()\">\n <h3 cdsModalHeaderHeading>{{ 'decisions.upload.title' | translate }}</h3>\n </cds-modal-header>\n\n <section cdsModalContent [cdsLayer]=\"1\" [formGroup]=\"form\">\n <cds-file-uploader\n [accept]=\"ACCEPTED_FILES\"\n [multiple]=\"false\"\n buttonType=\"primary\"\n [title]=\"'decisions.upload.fileUploaderTitle' | translate\"\n [description]=\"'decisions.upload.fileUploaderDescription' | translate\"\n [buttonText]=\"'decisions.upload.fileUploaderButton' | translate\"\n formControlName=\"file\"\n >\n </cds-file-uploader>\n </section>\n\n <cds-modal-footer>\n <button cdsButton=\"secondary\" (click)=\"closeModal()\">\n {{ 'interface.cancel' | translate }}\n </button>\n\n <button\n cdsButton=\"primary\"\n [disabled]=\"!selectedDmnFile\"\n (click)=\"deployDmn()\"\n [attr.data-test-id]=\"testIds.submitButton\"\n >\n {{ 'interface.upload' | translate }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n","/*\n * Copyright 2015-2026 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 {ChangeDetectorRef, Component, ViewChild} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ActivatedRoute, Router, RouterModule} from '@angular/router';\nimport {BehaviorSubject, combineLatest, map, Observable, switchMap, take, tap} from 'rxjs';\nimport {DecisionFormValue, Decision} from '../models';\nimport {filterLatestDecisionVersions} from '../utils/decision.utils';\nimport {parseDecisionForm, toDecisionFileName, updateDmnXml} from '../utils/dmn-template';\nimport {DecisionService} from '../services/decision.service';\nimport {\n EditPermissionsService,\n getBuildingBlockManagementRouteParams,\n getCaseManagementRouteParams,\n getContextObservable,\n GlobalNotificationService,\n ManagementContext,\n} from '@valtimo/shared';\nimport {DecisionStateService} from '../services';\nimport {DecisionDeployComponent} from '../decision-deploy/decision-deploy.component';\nimport {DecisionFormModalComponent} from '../decision-form-modal/decision-form-modal.component';\nimport {DECISION_LIST_TEST_IDS} from '../constants';\nimport {\n ActionItem,\n CarbonListModule,\n ConfirmationModalModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {ButtonModule, IconModule, IconService} from 'carbon-components-angular';\nimport {Add16, Upload16} from '@carbon/icons';\nimport {TranslateModule, TranslateService} from '@ngx-translate/core';\n\n@Component({\n selector: 'valtimo-decision-list',\n standalone: true,\n templateUrl: './decision-list.component.html',\n styleUrls: ['./decision-list.component.scss'],\n imports: [\n CommonModule,\n RouterModule,\n CarbonListModule,\n IconModule,\n WidgetModule,\n DecisionDeployComponent,\n DecisionFormModalComponent,\n ConfirmationModalModule,\n TranslateModule,\n ButtonModule,\n ],\n})\nexport class DecisionListComponent {\n @ViewChild('decisionDeploy') deploy: DecisionDeployComponent;\n @ViewChild('decisionCreate') create: DecisionFormModalComponent;\n @ViewChild('decisionEdit') edit: DecisionFormModalComponent;\n\n public fields = [\n {key: 'key', label: 'Key'},\n {key: 'name', label: 'Name'},\n {key: 'version', label: 'Version'},\n ];\n\n public readonly ACTION_ITEMS: ActionItem[] = [\n {\n label: 'interface.edit',\n callback: this.openEditModal.bind(this),\n type: 'normal',\n disabled$: () => this.hasEditPermissions$.pipe(map(canEdit => !canEdit)),\n },\n {\n label: 'interface.delete',\n callback: this.onDeleteClick.bind(this),\n type: 'danger',\n disabled$: () =>\n this.hasEditPermissions$.pipe(map(canEdit => !canEdit || this._context !== 'case')),\n },\n ];\n\n public readonly showDeleteModal$ = new BehaviorSubject<boolean>(false);\n\n readonly loading$ = new BehaviorSubject<boolean>(true);\n\n protected readonly testIds = DECISION_LIST_TEST_IDS;\n\n public readonly caseManagementRouteParams$ = getCaseManagementRouteParams(this.route);\n public readonly buildingBlockManagementRouteParams$ =\n getBuildingBlockManagementRouteParams(this.route);\n public readonly context$ = getContextObservable(this.route);\n\n readonly decisionsLatestVersions$ = this.stateService.refreshDecisions$.pipe(\n switchMap(() => this.context$),\n switchMap(context => {\n if (context === 'case') {\n return this.caseManagementRouteParams$.pipe(\n switchMap(params =>\n this.decisionService.listCaseDecisionDefinitions(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag\n )\n )\n );\n }\n if (context === 'buildingBlock') {\n return this.buildingBlockManagementRouteParams$.pipe(\n switchMap(params =>\n this.decisionService.listBuildingBlockDecisionDefinitions(\n params.buildingBlockDefinitionKey,\n params.buildingBlockDefinitionVersionTag\n )\n )\n );\n }\n return this.decisionService.getUnlinkedDecisions();\n }),\n map(filterLatestDecisionVersions),\n tap(() => {\n this.loading$.next(false);\n this.cdr.detectChanges();\n })\n );\n\n public readonly hasEditPermissions$: Observable<boolean> = combineLatest([\n this.caseManagementRouteParams$,\n this.context$,\n ]).pipe(\n switchMap(([params, context]) => {\n return this.editPermissionsService.hasPermissionsToEditBasedOnContext(params, context);\n })\n );\n\n private _editDecision: Decision | null = null;\n private _editXml: string | null = null;\n private _decisionToDelete: Decision | null = null;\n private _context: ManagementContext | null = null;\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly iconService: IconService,\n private readonly router: Router,\n private readonly stateService: DecisionStateService,\n private readonly route: ActivatedRoute,\n private readonly cdr: ChangeDetectorRef,\n private readonly editPermissionsService: EditPermissionsService,\n private readonly notificationService: GlobalNotificationService,\n private readonly translateService: TranslateService\n ) {\n this.iconService.registerAll([Upload16, Add16]);\n this.context$.pipe(take(1)).subscribe(context => (this._context = context));\n }\n\n public viewDecisionTable(decision: Decision): void {\n this.context$.pipe(take(1)).subscribe(context => {\n if (context === 'buildingBlock') {\n this.buildingBlockManagementRouteParams$.pipe(take(1)).subscribe(params => {\n this.router.navigateByUrl(\n `building-block-management/building-block/${params.buildingBlockDefinitionKey}/version/${params.buildingBlockDefinitionVersionTag}/decisions/${decision.id}`\n );\n });\n } else if (context === 'case') {\n this.caseManagementRouteParams$.pipe(take(1)).subscribe(params => {\n this.router.navigateByUrl(\n `case-management/case/${params.caseDefinitionKey}/version/${params.caseDefinitionVersionTag}/decisions/${decision.id}`\n );\n });\n } else {\n this.router.navigate(['/decision-tables/edit/' + decision.id]);\n }\n });\n }\n\n public onCreateDecision(value: DecisionFormValue): void {\n const state = {decisionName: value.name, inputVariables: value.inputVariables};\n\n this.context$.pipe(take(1)).subscribe(context => {\n if (context === 'buildingBlock') {\n this.buildingBlockManagementRouteParams$.pipe(take(1)).subscribe(params => {\n this.router.navigateByUrl(\n `building-block-management/building-block/${params.buildingBlockDefinitionKey}/version/${params.buildingBlockDefinitionVersionTag}/decisions/create`,\n {state}\n );\n });\n } else if (context === 'case') {\n this.caseManagementRouteParams$.pipe(take(1)).subscribe(params => {\n this.router.navigateByUrl(\n `case-management/case/${params.caseDefinitionKey}/version/${params.caseDefinitionVersionTag}/decisions/create`,\n {state}\n );\n });\n } else {\n this.router.navigate(['/decision-tables/edit/create'], {state});\n }\n });\n }\n\n public openEditModal(decision: Decision): void {\n this.decisionService\n .getDecisionXml(decision.id)\n .pipe(take(1))\n .subscribe(xml => {\n this._editDecision = decision;\n this._editXml = xml.dmnXml;\n this.edit.open(parseDecisionForm(xml.dmnXml));\n });\n }\n\n public onEditDecision(value: DecisionFormValue): void {\n if (!this._editXml || !this._editDecision) return;\n\n const patchedXml = updateDmnXml(this._editXml, value);\n const fileName = this._editDecision.resource || toDecisionFileName(this._editDecision.key);\n const file = new File([patchedXml], fileName, {type: 'text/xml'});\n\n this.deployFileForContext(file).subscribe({\n next: () => {\n this.showNotification('success', 'decisions.deploySuccess');\n this.stateService.refreshDecisions();\n },\n error: () => this.showNotification('error', 'decisions.deployFailure'),\n });\n }\n\n public onDeleteClick(decision: Decision): void {\n this._decisionToDelete = decision;\n this.showDeleteModal$.next(true);\n }\n\n public onDeleteConfirm(): void {\n if (!this._decisionToDelete) return;\n\n const decisionKey = this._decisionToDelete.key;\n\n this.caseManagementRouteParams$\n .pipe(\n take(1),\n switchMap(params =>\n this.decisionService.deleteCaseDecisionDefinition(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag,\n decisionKey\n )\n )\n )\n .subscribe({\n next: () => {\n this.showNotification('success', 'decisions.deleteSuccess');\n this.stateService.refreshDecisions();\n },\n error: () => this.showNotification('error', 'decisions.deleteFailure'),\n });\n }\n\n private deployFileForContext(file: File): Observable<{identifier: string}> {\n return this.context$.pipe(\n take(1),\n switchMap(context => {\n if (context === 'case') {\n return this.caseManagementRouteParams$.pipe(\n take(1),\n switchMap(params =>\n this.decisionService.deployCaseDecisionDefinition(\n params.caseDefinitionKey,\n params.caseDefinitionVersionTag,\n file\n )\n )\n );\n }\n if (context === 'buildingBlock') {\n return this.buildingBlockManagementRouteParams$.pipe(\n take(1),\n switchMap(params =>\n this.decisionService.deployBuildingBlockDecisionDefinition(\n params.buildingBlockDefinitionKey,\n params.buildingBlockDefinitionVersionTag,\n file\n )\n )\n );\n }\n return this.decisionService.deployDmn(file);\n })\n );\n }\n\n private showNotification(type: 'success' | 'error', message: string): void {\n this.notificationService.showToast({\n caption: this.translateService.instant(message),\n type,\n title: this.translateService.instant(`interface.${type}`),\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 [items]=\"(decisionsLatestVersions$ | async) || []\"\n [loading]=\"loading$ | async\"\n [fields]=\"fields\"\n [actionItems]=\"ACTION_ITEMS\"\n (rowClicked)=\"viewDecisionTable($event)\"\n [header]=\"false\"\n [isSearchable]=\"true\"\n>\n <ng-container carbonToolbarContent>\n <ng-container *ngIf=\"{canEdit: hasEditPermissions$ | async} as obs\">\n <button\n cdsButton=\"ghost\"\n iconOnly=\"true\"\n [disabled]=\"!obs.canEdit\"\n (click)=\"this.deploy.openModal()\"\n [attr.data-test-id]=\"testIds.uploadButton\"\n >\n <svg cdsIcon=\"upload\" size=\"16\"></svg>\n </button>\n\n <button\n cdsButton=\"primary\"\n [disabled]=\"!obs.canEdit\"\n (click)=\"this.create.openModal()\"\n [attr.data-test-id]=\"testIds.createButton\"\n >\n {{ 'decisions.create' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n </ng-container>\n </ng-container>\n</valtimo-carbon-list>\n\n<valtimo-decision-deploy #decisionDeploy></valtimo-decision-deploy>\n\n<valtimo-decision-form-modal\n #decisionCreate\n (submitEvent)=\"onCreateDecision($event)\"\n></valtimo-decision-form-modal>\n\n<valtimo-decision-form-modal\n #decisionEdit\n titleKey=\"decisions.editModal.title\"\n submitKey=\"interface.save\"\n (submitEvent)=\"onEditDecision($event)\"\n></valtimo-decision-form-modal>\n\n<valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"interface.delete\"\n confirmButtonType=\"danger\"\n contentTranslationKey=\"decisions.deleteModal.content\"\n [showModalSubject$]=\"showDeleteModal$\"\n titleTranslationKey=\"decisions.deleteModal.title\"\n (confirmEvent)=\"onDeleteConfirm()\"\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 {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {ROLE_ADMIN} from '@valtimo/shared';\nimport {DecisionModelerComponent} from './decision-modeler/decision-modeler.component';\nimport {DecisionDisplayComponent} from './decision-display/decision-display.component';\nimport {DecisionManagementRouteData} from './models/decision-management.model';\nimport {DecisionListComponent} from './decision-list/decision-list.component';\n\nconst routes: Routes = [\n {\n path: 'decision-tables',\n component: DecisionListComponent,\n canActivate: [AuthGuardService],\n data: {\n title: 'Decision tables',\n roles: [ROLE_ADMIN],\n context: 'independent',\n } as DecisionManagementRouteData,\n },\n {\n path: 'decision-tables/:id',\n component: DecisionDisplayComponent,\n canActivate: [AuthGuardService],\n data: {\n title: 'Decision tables',\n roles: [ROLE_ADMIN],\n context: 'independent',\n } as DecisionManagementRouteData,\n },\n {\n path: 'decision-tables/edit/:id',\n component: DecisionModelerComponent,\n canActivate: [AuthGuardService],\n data: {\n title: 'Edit decision table',\n roles: [ROLE_ADMIN],\n customPageTitle: true,\n context: 'independent',\n } as DecisionManagementRouteData,\n },\n {\n path: 'decision-tables/edit/create',\n component: DecisionModelerComponent,\n canActivate: [AuthGuardService],\n data: {\n title: 'Create decision table',\n roles: [ROLE_ADMIN],\n context: 'independent',\n } as DecisionManagementRouteData,\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DecisionRoutingModule {}\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 {NgModule} from '@angular/core';\nimport {DecisionRoutingModule} from './decision-routing.module';\nimport {DecisionDeployComponent} from './decision-deploy/decision-deploy.component';\nimport {DecisionFormModalComponent} from './decision-form-modal/decision-form-modal.component';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {DecisionDisplayComponent} from './decision-display/decision-display.component';\nimport {DecisionListComponent} from './decision-list/decision-list.component';\nimport {\n CarbonListModule,\n ModalModule,\n SelectModule,\n SpinnerModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {DecisionModelerComponent} from './decision-modeler/decision-modeler.component';\nimport {ButtonModule, IconModule} from 'carbon-components-angular';\n\n@NgModule({\n imports: [\n DecisionRoutingModule,\n WidgetModule,\n TranslateModule,\n ModalModule,\n CommonModule,\n FormsModule,\n SelectModule,\n SpinnerModule,\n CarbonListModule,\n ButtonModule,\n IconModule,\n DecisionDeployComponent,\n DecisionFormModalComponent,\n DecisionModelerComponent,\n DecisionListComponent,\n DecisionDisplayComponent,\n ],\n exports: [DecisionModelerComponent],\n})\nexport class DecisionModule {}\n","/*\n * Copyright 2015-2026 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 decision\n */\n\nexport * from './lib/models';\nexport * from './lib/services';\nexport * from './lib/decision.module';\nexport * from './lib/decision-modeler/decision-modeler.component';\nexport * from './lib/decision-display/decision-display.component';\nexport * from './lib/decision-list/decision-list.component';\nexport * from './lib/decision-deploy/decision-deploy.component';\nexport * from './lib/decision-form-modal/decision-form-modal.component';\nexport * from './lib/constants';\nexport * from './lib/utils/decision.utils';\nexport * from './lib/utils/dmn-template';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i1","i5","i1.DecisionService","i4","ValtimoSelectModule","DmnViewer","i1.DecisionStateService","i3","i6","i4.DecisionStateService","i8","ModalModule","SelectModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MAQU,oBAAoB,CAAA;AAHjC,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,kBAAkB,GAAG,IAAI,OAAO,EAAQ;AAS1D;AAPC,IAAA,IAAI,iBAAiB,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;;IAGrE,gBAAgB,GAAA;AACd,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC;;+GARzB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cAFnB,MAAM,EAAA,CAAA,CAAA;;4FAEP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACrBD;;;;;;;;;;;;;;AAcG;AAWG,MAAO,eAAgB,SAAQ,cAAc,CAAA;IACjD,WACqB,CAAA,UAAsB,EACtB,aAA4B,EAAA;AAE/C,QAAA,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC;QAH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