@valtimo/decision 12.5.1 → 12.6.1

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/index.ts","../../../../projects/valtimo/decision/src/lib/decision.service.ts","../../../../projects/valtimo/decision/src/lib/services/decision-state.service.ts","../../../../projects/valtimo/decision/src/lib/services/index.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.component.ts","../../../../projects/valtimo/decision/src/lib/decision.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/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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport 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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './decision.model';\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {Decision, DecisionXml} from './models';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DecisionService {\n private valtimoApiConfig: any;\n\n constructor(\n private configService: ConfigService,\n private http: HttpClient\n ) {\n this.valtimoApiConfig = configService.config.valtimoApi;\n }\n\n deployDmn(dmn: File): Observable<any> {\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 return this.http.post<any>(\n `${this.valtimoApiConfig.endpointUri}v1/process/definition/deployment`,\n formData\n );\n }\n\n getDecisions(): Observable<Decision[]> {\n return this.http.get<Decision[]>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition`\n );\n }\n\n getDecisionById(decisionId: string): Observable<Decision> {\n return this.http.get<Decision>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition/${decisionId}`\n );\n }\n\n getLatestDecisionByKey(decisionKey: string): Observable<Decision> {\n return this.http.get<Decision>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition/key/${decisionKey}`\n );\n }\n\n getDecisionXml(decisionId: string): Observable<DecisionXml> {\n return this.http.get<DecisionXml>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition/${decisionId}/xml`\n );\n }\n}\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './decision-state.service';\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Output, ViewChild} from '@angular/core';\nimport {DecisionService} from '../decision.service';\nimport {ModalComponent} from '@valtimo/components';\nimport {DecisionStateService} from '../services';\n\n@Component({\n selector: 'valtimo-decision-deploy',\n templateUrl: './decision-deploy.component.html',\n styleUrls: ['./decision-deploy.component.scss'],\n})\nexport class DecisionDeployComponent {\n public dmn: File | null = null;\n @Output() deploySuccessful = new EventEmitter();\n @ViewChild('decisionDeployModal') modal: ModalComponent;\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly stateService: DecisionStateService\n ) {}\n\n onChange(files: FileList): void {\n this.dmn = files.item(0);\n }\n\n deployDmn(): void {\n this.decisionService.deployDmn(this.dmn).subscribe(() => {\n this.modal.hide();\n this.deploySuccessful.emit();\n this.stateService.refreshDecisions();\n });\n }\n\n openModal() {\n this.modal.show();\n }\n}\n","<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #decisionDeployModal\n elementId=\"decisionDeployModal\"\n title=\"Upload Decision table\"\n [showFooter]=\"true\"\n>\n <div body>\n <div class=\"mt-3\">{{ 'decisions.upload.description' | translate }}</div>\n <div class=\"form-group mt-3 mb-3\">\n <input type=\"file\" id=\"file\" accept=\".dmn\" (change)=\"onChange($event.target.files)\" />\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-right\">\n <button\n [disabled]=\"!dmn\"\n class=\"btn btn-primary btn-space\"\n type=\"button\"\n (click)=\"deployDmn()\"\n >\n <i class=\"icon mdi mdi-upload mr-1\"></i>\n {{ 'Upload' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, ViewChild} from '@angular/core';\nimport {Decision} from '../models';\nimport {DecisionService} from '../decision.service';\nimport {Router} from '@angular/router';\nimport {BehaviorSubject, map, switchMap, tap} from 'rxjs';\nimport {ConfigService} from '@valtimo/config';\nimport {DecisionStateService} from '../services';\nimport {DecisionDeployComponent} from '../decision-deploy/decision-deploy.component';\nimport {IconService} from 'carbon-components-angular';\nimport {Upload16} from '@carbon/icons';\n\n@Component({\n selector: 'valtimo-decision-list',\n templateUrl: './decision-list.component.html',\n styleUrls: ['./decision-list.component.scss'],\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\n readonly experimentalEditing!: boolean;\n\n readonly decisionsLatestVersions$ = this.stateService.refreshDecisions$.pipe(\n switchMap(() => this.decisionService.getDecisions()),\n map(decisions =>\n decisions.reduce((acc, curr) => {\n const findInAcc = acc.find(decision => decision.key === curr.key);\n\n if (findInAcc && findInAcc.version > curr.version) {\n return acc;\n } else if (findInAcc && findInAcc.version < curr.version) {\n const newAcc = acc.filter(decision => decision.key !== curr.key);\n return [...newAcc, curr];\n }\n\n return [...acc, curr];\n }, [])\n ),\n tap(() => this.loading$.next(false))\n );\n\n constructor(\n private decisionService: DecisionService,\n private readonly iconService: IconService,\n private router: Router,\n private readonly configService: ConfigService,\n private readonly stateService: DecisionStateService\n ) {\n this.iconService.registerAll([Upload16]);\n this.experimentalEditing = this.configService.config.featureToggles.experimentalDmnEditing;\n }\n\n viewDecisionTable(decision: Decision) {\n if (this.experimentalEditing) {\n this.router.navigate(['/decision-tables/edit', decision.id]);\n } else {\n this.router.navigate(['/decision-tables', decision.id]);\n }\n }\n}\n","<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"decisionsLatestVersions$ | async as decisions\">\n <ng-container *ngIf=\"(loading$ | async) === false\">\n <valtimo-carbon-list\n [items]=\"decisions\"\n [fields]=\"fields\"\n (rowClicked)=\"viewDecisionTable($event)\"\n [header]=\"false\"\n [isSearchable]=\"true\"\n >\n <ng-container carbonToolbarContent>\n <button cdsButton=\"primary\" (click)=\"this.deploy.openModal()\">\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 </ng-container>\n</ng-container>\n\n<valtimo-decision-deploy #decisionDeploy></valtimo-decision-deploy>\n\n<ng-container *ngIf=\"loading$ | async\">\n <valtimo-carbon-list [loading]=\"true\"> </valtimo-carbon-list>\n</ng-container>\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, ViewChild} from '@angular/core';\nimport {DecisionListComponent} from './decision-list/decision-list.component';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-decision',\n templateUrl: './decision.component.html',\n styleUrls: ['./decision.component.scss'],\n})\nexport class DecisionComponent {\n readonly experimentalEditing!: boolean;\n\n constructor(private readonly configService: ConfigService) {\n this.experimentalEditing = this.configService.config.featureToggles.experimentalDmnEditing;\n }\n\n @ViewChild('decisionList') list: DecisionListComponent;\n}\n","<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<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-->\n <!-- *ngIf=\"experimentalEditing\"-->\n <!-- class=\"btn btn-primary btn-space\"-->\n <!-- [routerLink]=\"'edit/create'\"-->\n <!-- >-->\n <!-- <i class=\"icon mdi mdi-plus mr-1\"></i>-->\n <!-- {{ 'Create decision table' | translate }}-->\n <!-- </button>-->\n </div>\n </div>\n <valtimo-decision-list #decisionList></valtimo-decision-list>\n </div>\n</div>\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {DecisionService} from '../decision.service';\nimport {AfterViewInit, Component} from '@angular/core';\nimport DmnJS from 'dmn-js/dist/dmn-modeler.development.js';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {Decision, DecisionXml} from '../models';\nimport {migrateDiagram} from '@bpmn-io/dmn-migrate';\nimport {LayoutService} from '@valtimo/layout';\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 {AlertService, PageTitleService, SelectedValue, SelectItem} from '@valtimo/components';\nimport {TranslateService} from '@ngx-translate/core';\nimport {EMPTY_DECISION} from './empty-decision';\n\ndeclare const $: any;\n\n@Component({\n selector: 'valtimo-decision-modeler',\n templateUrl: './decision-modeler.component.html',\n styleUrls: ['./decision-modeler.component.scss'],\n})\nexport class DecisionModelerComponent implements AfterViewInit {\n private CLASS_NAMES = {\n drd: 'dmn-icon-lasso-tool',\n decisionTable: 'dmn-icon-decision-table',\n literalExpression: 'dmn-icon-literal-expression',\n };\n private $container!: any;\n private $tabs!: any;\n private dmnModeler!: DmnJS;\n\n readonly versionSelectionDisabled$ = new BehaviorSubject<boolean>(true);\n\n readonly isCreating$ = new BehaviorSubject<boolean>(false);\n\n private readonly decisionId$: Observable<string | null> = this.route.params.pipe(\n map(params => params?.id),\n tap(decisionId => this.isCreating$.next(decisionId === 'create')),\n filter(decisionId => !!decisionId && decisionId !== 'create'),\n tap(() => this.versionSelectionDisabled$.next(true))\n );\n\n readonly selectionId$ = new BehaviorSubject<string>('');\n\n private readonly decision$: Observable<Decision> = this.decisionId$.pipe(\n switchMap(decisionId => this.decisionService.getDecisionById(decisionId)),\n tap(decision => {\n if (decision) {\n this.selectionId$.next(decision.id);\n }\n })\n );\n\n readonly decisionTitle$: Observable<string> = this.decision$.pipe(\n map(decision => decision?.key || ''),\n tap(decisionTitle => {\n this.pageTitleService.setCustomPageTitle(decisionTitle);\n })\n );\n\n readonly createdDecisionVersionSelectItems$ = new BehaviorSubject<Array<SelectItem>>([]);\n\n readonly decisionVersionSelectItems$: Observable<Array<SelectItem>> = combineLatest([\n this.decision$,\n this.decisionService.getDecisions(),\n this.createdDecisionVersionSelectItems$,\n ]).pipe(\n map(([currentDecision, decisions, createdDecisionVersionSelectItems]) => {\n const decisionsWithKey = decisions.filter(decision => decision.key === currentDecision.key);\n\n return [\n ...decisionsWithKey.map(decision => ({\n id: decision.id,\n text: decision.version.toString(),\n })),\n ...createdDecisionVersionSelectItems,\n ].sort((a, b) => Number(b.text) - Number(a.text));\n }),\n tap(() => this.versionSelectionDisabled$.next(false))\n );\n\n readonly decisionXml$ = this.decisionId$.pipe(\n switchMap(decisionId => this.decisionService.getDecisionXml(decisionId)),\n tap(decisionXml => {\n if (decisionXml) {\n this.loadDecisionXml(decisionXml);\n }\n })\n );\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly route: ActivatedRoute,\n private readonly router: Router,\n private readonly alertService: AlertService,\n private readonly translateService: TranslateService,\n public readonly layoutService: LayoutService,\n private readonly pageTitleService: PageTitleService\n ) {}\n\n ngAfterViewInit(): void {\n this.setProperties();\n this.setTabEvents();\n this.setModelerEvents();\n }\n\n switchVersion(decisionId: string | SelectedValue): void {\n if (decisionId) {\n this.router.navigate(['/decision-tables/edit', decisionId]);\n }\n }\n\n deploy(): void {\n from(this.dmnModeler.saveXML({format: true}))\n .pipe(\n map(result => (result as any).xml),\n map(\n xml =>\n new File([xml], 'decision.dmn', {\n type: 'text/xml',\n })\n ),\n switchMap(file => this.decisionService.deployDmn(file)),\n tap(res => {\n const deployedDefinitions = res.deployedDecisionDefinitions;\n const deployedDecisionDefinition =\n deployedDefinitions[Object.keys(deployedDefinitions)[0]];\n const deployedId = deployedDecisionDefinition.id;\n\n this.createdDecisionVersionSelectItems$\n .pipe(take(1))\n .subscribe(createdDecisionVersionSelectItems => {\n if (deployedDecisionDefinition) {\n this.createdDecisionVersionSelectItems$.next([\n ...createdDecisionVersionSelectItems,\n {\n id: deployedId,\n text: deployedDecisionDefinition.version.toString(),\n },\n ]);\n }\n\n if (deployedId) {\n setTimeout(() => {\n this.switchVersion(deployedId);\n this.alertService.success(\n this.translateService.instant('decisions.deploySuccess')\n );\n });\n }\n });\n }),\n catchError(() => {\n this.alertService.error(this.translateService.instant('decisions.deployFailure'));\n return of(null);\n })\n )\n .subscribe();\n }\n\n download(): void {\n from(this.dmnModeler.saveXML({format: true}))\n .pipe(\n map(result => (result as any).xml),\n map(\n xml =>\n new File([xml], 'decision.dmn', {\n type: 'text/xml',\n })\n ),\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 private setProperties(): void {\n const isCreating = this.isCreating$.getValue();\n\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: {\n bindTo: window,\n },\n });\n\n if (isCreating) {\n this.loadEmptyDecisionTable();\n }\n }\n\n private loadEmptyDecisionTable(): void {\n this.loadDecisionXml(EMPTY_DECISION);\n }\n\n private setTabEvents = (): void => {\n const $tabs = this.$tabs;\n const dmnModeler = this.dmnModeler;\n\n $tabs.delegate('.tab', 'click', async function (e) {\n // get index of view from clicked tab\n const viewIdx = parseInt(this.getAttribute('data-id'), 10);\n\n // get view using index\n const view = dmnModeler.getViews()[viewIdx];\n\n // open view\n try {\n await dmnModeler.open(view);\n } catch (err) {\n console.error('error opening tab', err);\n }\n });\n };\n\n private setModelerEvents = (): void => {\n const $tabs = this.$tabs;\n const CLASS_NAMES = this.CLASS_NAMES;\n\n this.dmnModeler.on('views.changed', function (event) {\n // get views from event\n const {views, activeView} = event;\n\n // clear tabs\n $tabs.empty();\n\n // create a new tab for each view\n views.forEach(function (v, idx) {\n const className = CLASS_NAMES[v.type];\n\n const tab = $(`\n <div class=\"tab ${v === activeView ? 'active' : ''}\" data-id=\"${idx}\">\n <span class=\"${className}\"></span>\n ${v.element.name || v.element.id}\n </div>\n `);\n\n $tabs.append(tab);\n });\n });\n };\n\n private loadDecisionXml(decision: DecisionXml): void {\n from(this.dmnModeler.importXML(decision.dmnXml))\n .pipe(\n tap(() => {\n this.setEditor();\n }),\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(decisionXml => this.dmnModeler.importXML(decisionXml)),\n tap(() => {\n this.setEditor();\n }),\n catchError(() => {\n this.alertService.error(this.translateService.instant('decisions.loadFailure'));\n return of(null);\n })\n )\n .subscribe();\n }\n\n private setEditor(): void {\n const dmnModeler = this.dmnModeler;\n\n const activeView = dmnModeler.getActiveView();\n\n // apply initial logic in DRD view\n if (activeView.type === 'drd') {\n const activeEditor = dmnModeler.getActiveViewer();\n\n // access active editor components\n const canvas = activeEditor.get('canvas');\n\n // zoom to fit full viewport\n canvas.zoom('fit-viewport');\n }\n }\n}\n","<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n [ngClass]=\"{'main-content pt-0': !layoutService.isFullscreen}\"\n class=\"mb-5\"\n *ngIf=\"{\n decisionXml: decisionXml$ | async,\n decisionTitle: decisionTitle$ | async,\n } as obs\"\n>\n <div [ngClass]=\"{'container-fluid': !layoutService.isFullscreen}\">\n <ng-container *ngTemplateOutlet=\"buttons\"></ng-container>\n <ng-container *ngTemplateOutlet=\"createButtons\"></ng-container>\n <div [ngClass]=\"{'mt-4': !layoutService.isFullscreen}\" class=\"modeler pl-3 pr-3 mb-3\">\n <ng-container *ngTemplateOutlet=\"diagramHeader\"></ng-container>\n <ng-container *ngTemplateOutlet=\"diagram\"></ng-container>\n </div>\n </div>\n</div>\n\n<ng-template #buttons>\n <div\n class=\"text-right\"\n *ngIf=\"(isCreating$ | async) === false && {selectionId: selectionId$ | async} as obs\"\n >\n <div class=\"btn-group mt-m3px mb-3\" *ngIf=\"obs.selectionId && !layoutService.isFullscreen\">\n <button class=\"btn btn-primary btn-space\" (click)=\"download()\">\n <i class=\"icon mdi mdi-download mr-1\"></i>{{ 'processManagement.download' | translate }}\n </button>\n <button\n class=\"btn btn-success btn-space\"\n (click)=\"deploy()\"\n [ngClass]=\"{'mr-0': obs.selectionId !== null}\"\n >\n <i class=\"icon mdi mdi-upload mr-1\"></i>{{ 'decisions.deploy' | translate }}\n </button>\n </div>\n </div>\n</ng-template>\n\n<ng-template #createButtons>\n <div class=\"text-right\" *ngIf=\"isCreating$ | async\">\n <div class=\"btn-group mt-m3px mb-3\" *ngIf=\"!layoutService.isFullscreen\">\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 <!-- <button-->\n <!-- *ngIf=\"selectedVersion === null\"-->\n <!-- class=\"btn btn-danger btn-space mr-0\"-->\n <!-- (click)=\"reset()\"-->\n <!-- >-->\n <!-- <i class=\"icon mdi mdi-delete mr-1\"></i>{{ 'processManagement.clear' | translate }}-->\n <!-- </button>-->\n </div>\n </div>\n</ng-template>\n\n<ng-template #diagramHeader>\n <div class=\"row pt-4 pb-3 bg-light diagram-header justify-content-between\">\n <ng-container *ngTemplateOutlet=\"versionSelection\"></ng-container>\n <ng-container *ngTemplateOutlet=\"fullScreenToggle\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #versionSelection>\n <div class=\"col-md-2 d-flex justify-content-center align-items-center\">\n <ng-container\n *ngIf=\"\n (isCreating$ | async) === false && {\n versionSelectItems: decisionVersionSelectItems$ | async,\n defaultSelectionId: selectionId$ | async,\n disabled: versionSelectionDisabled$ | async,\n } as obs\n \"\n >\n <v-select\n name=\"version\"\n [title]=\"'decisions.version' | translate\"\n [disabled]=\"obs.disabled\"\n [clearable]=\"false\"\n [loading]=\"!obs.versionSelectItems\"\n [items]=\"obs.versionSelectItems\"\n [defaultSelectionId]=\"obs.defaultSelectionId\"\n [widthInPx]=\"100\"\n (selectedChange)=\"switchVersion($event)\"\n ></v-select>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #fullScreenToggle>\n <div class=\"col-md-2 d-flex fullscreen-toggle align-items-start justify-content-end\">\n <i\n (click)=\"layoutService.toggleFullscreen()\"\n [ngClass]=\"{\n 'mdi-fullscreen': !layoutService.isFullscreen,\n 'mdi-fullscreen-exit': layoutService.isFullscreen,\n }\"\n class=\"mdi\"\n ></i>\n </div>\n</ng-template>\n\n<ng-template #diagram>\n <div class=\"row bg-white diagram mb-3\">\n <div class=\"dmn-modeler\">\n <div class=\"test-container\">\n <div class=\"editor-parent\">\n <div class=\"editor-container\"></div>\n <div class=\"editor-tabs\"></div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnInit, ViewEncapsulation} from '@angular/core';\nimport {DecisionService} from '../decision.service';\nimport DmnViewer from 'dmn-js';\nimport {DecisionXml} from '../models';\nimport {ActivatedRoute} from '@angular/router';\nimport {ToastrService} from 'ngx-toastr';\nimport {migrateDiagram} from '@bpmn-io/dmn-migrate';\n\n@Component({\n selector: 'valtimo-decision-display',\n templateUrl: './decision-display.component.html',\n styleUrls: ['./decision-display.component.scss'],\n encapsulation: ViewEncapsulation.None,\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 private readonly toasterService: ToastrService\n ) {}\n\n ngOnInit() {\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) {\n const decisionXml = await migrateDiagram(decision.dmnXml);\n\n if (decisionXml) {\n this.viewer.importXML(decisionXml, error => {\n if (error) {\n console.log('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-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {DecisionComponent} from './decision.component';\nimport {ROLE_ADMIN} from '@valtimo/config';\nimport {DecisionModelerComponent} from './decision-modeler/decision-modeler.component';\nimport {DecisionDisplayComponent} from './decision-display/decision-display.component';\n\nconst routes: Routes = [\n {\n path: 'decision-tables',\n component: DecisionComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Decision tables', roles: [ROLE_ADMIN]},\n },\n {\n path: 'decision-tables/:id',\n component: DecisionDisplayComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Decision tables', roles: [ROLE_ADMIN]},\n },\n {\n path: 'decision-tables/edit/:id',\n component: DecisionModelerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Edit decision table', roles: [ROLE_ADMIN], customPageTitle: true},\n },\n {\n path: 'decision-tables/edit/create',\n component: DecisionModelerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Create decision table', roles: [ROLE_ADMIN]},\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DecisionRoutingModule {}\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {DecisionComponent} from './decision.component';\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 ListModule,\n ModalModule,\n SpinnerModule,\n WidgetModule,\n SelectModule,\n CarbonListModule,\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 declarations: [\n DecisionComponent,\n DecisionDeployComponent,\n DecisionDisplayComponent,\n DecisionListComponent,\n DecisionModelerComponent,\n ],\n imports: [\n DecisionRoutingModule,\n WidgetModule,\n ListModule,\n TranslateModule,\n ModalModule,\n CommonModule,\n FormsModule,\n SelectModule,\n SpinnerModule,\n CarbonListModule,\n ButtonModule,\n IconModule,\n ],\n exports: [DecisionComponent, DecisionModelerComponent],\n})\nexport class DecisionModule {}\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of decision\n */\n\nexport * from './lib/models';\nexport * from './lib/decision.module';\nexport * from './lib/decision.component';\nexport * from './lib/decision-modeler/decision-modeler.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.DecisionService","i2.DecisionStateService","i2","i3","i4","i5.DecisionStateService","i7","i8.DecisionDeployComponent","i9","i2.DecisionListComponent","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;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YAAY;YACZ,UAAU,CAAA,EAAA,OAAA,EAAA,CAEF,iBAAiB,EAAE,wBAAwB,CAAA,EAAA,CAAA,CAAA,EAAA;AAE1C,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAfvB,qBAAqB;YACrB,YAAY;YACZ,UAAU;YACV,eAAe;YACf,WAAW;YACX,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,aAAa;YACb,gBAAgB;YAChB,YAAY;YACZ,UAAU,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAID,cAAc,EAAA,UAAA,EAAA,CAAA;kBAxB1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,uBAAuB;wBACvB,wBAAwB;wBACxB,qBAAqB;wBACrB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,YAAY;wBACZ,UAAU;wBACV,eAAe;wBACf,WAAW;wBACX,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,aAAa;wBACb,gBAAgB;wBAChB,YAAY;wBACZ,UAAU;AACX,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;AACvD,iBAAA,CAAA;;;AC3DD;;;;;;;;;;;;;;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/index.ts","../../../../projects/valtimo/decision/src/lib/decision.service.ts","../../../../projects/valtimo/decision/src/lib/services/decision-state.service.ts","../../../../projects/valtimo/decision/src/lib/services/index.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.component.ts","../../../../projects/valtimo/decision/src/lib/decision.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/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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport 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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './decision.model';\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {Decision, DecisionXml} from './models';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DecisionService {\n private valtimoApiConfig: any;\n\n constructor(\n private configService: ConfigService,\n private http: HttpClient\n ) {\n this.valtimoApiConfig = configService.config.valtimoApi;\n }\n\n deployDmn(dmn: File): Observable<any> {\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 return this.http.post<any>(\n `${this.valtimoApiConfig.endpointUri}v1/process/definition/deployment`,\n formData\n );\n }\n\n getDecisions(): Observable<Decision[]> {\n return this.http.get<Decision[]>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition`\n );\n }\n\n getDecisionById(decisionId: string): Observable<Decision> {\n return this.http.get<Decision>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition/${decisionId}`\n );\n }\n\n getLatestDecisionByKey(decisionKey: string): Observable<Decision> {\n return this.http.get<Decision>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition/key/${decisionKey}`\n );\n }\n\n getDecisionXml(decisionId: string): Observable<DecisionXml> {\n return this.http.get<DecisionXml>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition/${decisionId}/xml`\n );\n }\n}\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './decision-state.service';\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Output, ViewChild} from '@angular/core';\nimport {DecisionService} from '../decision.service';\nimport {ModalComponent} from '@valtimo/components';\nimport {DecisionStateService} from '../services';\n\n@Component({\n selector: 'valtimo-decision-deploy',\n templateUrl: './decision-deploy.component.html',\n styleUrls: ['./decision-deploy.component.scss'],\n})\nexport class DecisionDeployComponent {\n public dmn: File | null = null;\n @Output() deploySuccessful = new EventEmitter();\n @ViewChild('decisionDeployModal') modal: ModalComponent;\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly stateService: DecisionStateService\n ) {}\n\n onChange(files: FileList): void {\n this.dmn = files.item(0);\n }\n\n deployDmn(): void {\n this.decisionService.deployDmn(this.dmn).subscribe(() => {\n this.modal.hide();\n this.deploySuccessful.emit();\n this.stateService.refreshDecisions();\n });\n }\n\n openModal() {\n this.modal.show();\n }\n}\n","<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #decisionDeployModal\n elementId=\"decisionDeployModal\"\n title=\"Upload Decision table\"\n [showFooter]=\"true\"\n>\n <div body>\n <div class=\"mt-3\">{{ 'decisions.upload.description' | translate }}</div>\n <div class=\"form-group mt-3 mb-3\">\n <input type=\"file\" id=\"file\" accept=\".dmn\" (change)=\"onChange($event.target.files)\" />\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-right\">\n <button\n [disabled]=\"!dmn\"\n class=\"btn btn-primary btn-space\"\n type=\"button\"\n (click)=\"deployDmn()\"\n >\n <i class=\"icon mdi mdi-upload mr-1\"></i>\n {{ 'Upload' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, ViewChild} from '@angular/core';\nimport {Decision} from '../models';\nimport {DecisionService} from '../decision.service';\nimport {Router} from '@angular/router';\nimport {BehaviorSubject, map, switchMap, tap} from 'rxjs';\nimport {ConfigService} from '@valtimo/config';\nimport {DecisionStateService} from '../services';\nimport {DecisionDeployComponent} from '../decision-deploy/decision-deploy.component';\nimport {IconService} from 'carbon-components-angular';\nimport {Upload16} from '@carbon/icons';\n\n@Component({\n selector: 'valtimo-decision-list',\n templateUrl: './decision-list.component.html',\n styleUrls: ['./decision-list.component.scss'],\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\n readonly experimentalEditing!: boolean;\n\n readonly decisionsLatestVersions$ = this.stateService.refreshDecisions$.pipe(\n switchMap(() => this.decisionService.getDecisions()),\n map(decisions =>\n decisions.reduce((acc, curr) => {\n const findInAcc = acc.find(decision => decision.key === curr.key);\n\n if (findInAcc && findInAcc.version > curr.version) {\n return acc;\n } else if (findInAcc && findInAcc.version < curr.version) {\n const newAcc = acc.filter(decision => decision.key !== curr.key);\n return [...newAcc, curr];\n }\n\n return [...acc, curr];\n }, [])\n ),\n tap(() => this.loading$.next(false))\n );\n\n constructor(\n private decisionService: DecisionService,\n private readonly iconService: IconService,\n private router: Router,\n private readonly configService: ConfigService,\n private readonly stateService: DecisionStateService\n ) {\n this.iconService.registerAll([Upload16]);\n this.experimentalEditing = this.configService.config.featureToggles.experimentalDmnEditing;\n }\n\n viewDecisionTable(decision: Decision) {\n if (this.experimentalEditing) {\n this.router.navigate(['/decision-tables/edit', decision.id]);\n } else {\n this.router.navigate(['/decision-tables', decision.id]);\n }\n }\n}\n","<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"decisionsLatestVersions$ | async as decisions\">\n <ng-container *ngIf=\"(loading$ | async) === false\">\n <valtimo-carbon-list\n [items]=\"decisions\"\n [fields]=\"fields\"\n (rowClicked)=\"viewDecisionTable($event)\"\n [header]=\"false\"\n [isSearchable]=\"true\"\n >\n <ng-container carbonToolbarContent>\n <button cdsButton=\"primary\" (click)=\"this.deploy.openModal()\">\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 </ng-container>\n</ng-container>\n\n<valtimo-decision-deploy #decisionDeploy></valtimo-decision-deploy>\n\n<ng-container *ngIf=\"loading$ | async\">\n <valtimo-carbon-list [loading]=\"true\"> </valtimo-carbon-list>\n</ng-container>\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, ViewChild} from '@angular/core';\nimport {DecisionListComponent} from './decision-list/decision-list.component';\nimport {ConfigService} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-decision',\n templateUrl: './decision.component.html',\n styleUrls: ['./decision.component.scss'],\n})\nexport class DecisionComponent {\n readonly experimentalEditing!: boolean;\n\n constructor(private readonly configService: ConfigService) {\n this.experimentalEditing = this.configService.config.featureToggles.experimentalDmnEditing;\n }\n\n @ViewChild('decisionList') list: DecisionListComponent;\n}\n","<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<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-->\n <!-- *ngIf=\"experimentalEditing\"-->\n <!-- class=\"btn btn-primary btn-space\"-->\n <!-- [routerLink]=\"'edit/create'\"-->\n <!-- >-->\n <!-- <i class=\"icon mdi mdi-plus mr-1\"></i>-->\n <!-- {{ 'Create decision table' | translate }}-->\n <!-- </button>-->\n </div>\n </div>\n <valtimo-decision-list #decisionList></valtimo-decision-list>\n </div>\n</div>\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {DecisionService} from '../decision.service';\nimport {AfterViewInit, Component} from '@angular/core';\nimport DmnJS from 'dmn-js/dist/dmn-modeler.development.js';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {Decision, DecisionXml} from '../models';\nimport {migrateDiagram} from '@bpmn-io/dmn-migrate';\nimport {LayoutService} from '@valtimo/layout';\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 {AlertService, PageTitleService, SelectedValue, SelectItem} from '@valtimo/components';\nimport {TranslateService} from '@ngx-translate/core';\nimport {EMPTY_DECISION} from './empty-decision';\n\ndeclare const $: any;\n\n@Component({\n selector: 'valtimo-decision-modeler',\n templateUrl: './decision-modeler.component.html',\n styleUrls: ['./decision-modeler.component.scss'],\n})\nexport class DecisionModelerComponent implements AfterViewInit {\n private CLASS_NAMES = {\n drd: 'dmn-icon-lasso-tool',\n decisionTable: 'dmn-icon-decision-table',\n literalExpression: 'dmn-icon-literal-expression',\n };\n private $container!: any;\n private $tabs!: any;\n private dmnModeler!: DmnJS;\n\n readonly versionSelectionDisabled$ = new BehaviorSubject<boolean>(true);\n\n readonly isCreating$ = new BehaviorSubject<boolean>(false);\n\n private readonly decisionId$: Observable<string | null> = this.route.params.pipe(\n map(params => params?.id),\n tap(decisionId => this.isCreating$.next(decisionId === 'create')),\n filter(decisionId => !!decisionId && decisionId !== 'create'),\n tap(() => this.versionSelectionDisabled$.next(true))\n );\n\n readonly selectionId$ = new BehaviorSubject<string>('');\n\n private readonly decision$: Observable<Decision> = this.decisionId$.pipe(\n switchMap(decisionId => this.decisionService.getDecisionById(decisionId)),\n tap(decision => {\n if (decision) {\n this.selectionId$.next(decision.id);\n }\n })\n );\n\n readonly decisionTitle$: Observable<string> = this.decision$.pipe(\n map(decision => decision?.key || ''),\n tap(decisionTitle => {\n this.pageTitleService.setCustomPageTitle(decisionTitle);\n })\n );\n\n readonly createdDecisionVersionSelectItems$ = new BehaviorSubject<Array<SelectItem>>([]);\n\n readonly decisionVersionSelectItems$: Observable<Array<SelectItem>> = combineLatest([\n this.decision$,\n this.decisionService.getDecisions(),\n this.createdDecisionVersionSelectItems$,\n ]).pipe(\n map(([currentDecision, decisions, createdDecisionVersionSelectItems]) => {\n const decisionsWithKey = decisions.filter(decision => decision.key === currentDecision.key);\n\n return [\n ...decisionsWithKey.map(decision => ({\n id: decision.id,\n text: decision.version.toString(),\n })),\n ...createdDecisionVersionSelectItems,\n ].sort((a, b) => Number(b.text) - Number(a.text));\n }),\n tap(() => this.versionSelectionDisabled$.next(false))\n );\n\n readonly decisionXml$ = this.decisionId$.pipe(\n switchMap(decisionId => this.decisionService.getDecisionXml(decisionId)),\n tap(decisionXml => {\n if (decisionXml) {\n this.loadDecisionXml(decisionXml);\n }\n })\n );\n\n constructor(\n private readonly decisionService: DecisionService,\n private readonly route: ActivatedRoute,\n private readonly router: Router,\n private readonly alertService: AlertService,\n private readonly translateService: TranslateService,\n public readonly layoutService: LayoutService,\n private readonly pageTitleService: PageTitleService\n ) {}\n\n ngAfterViewInit(): void {\n this.setProperties();\n this.setTabEvents();\n this.setModelerEvents();\n }\n\n switchVersion(decisionId: string | SelectedValue): void {\n if (decisionId) {\n this.router.navigate(['/decision-tables/edit', decisionId]);\n }\n }\n\n deploy(): void {\n from(this.dmnModeler.saveXML({format: true}))\n .pipe(\n map(result => (result as any).xml),\n map(\n xml =>\n new File([xml], 'decision.dmn', {\n type: 'text/xml',\n })\n ),\n switchMap(file => this.decisionService.deployDmn(file)),\n tap(res => {\n const deployedDefinitions = res.deployedDecisionDefinitions;\n const deployedDecisionDefinition =\n deployedDefinitions[Object.keys(deployedDefinitions)[0]];\n const deployedId = deployedDecisionDefinition.id;\n\n this.createdDecisionVersionSelectItems$\n .pipe(take(1))\n .subscribe(createdDecisionVersionSelectItems => {\n if (deployedDecisionDefinition) {\n this.createdDecisionVersionSelectItems$.next([\n ...createdDecisionVersionSelectItems,\n {\n id: deployedId,\n text: deployedDecisionDefinition.version.toString(),\n },\n ]);\n }\n\n if (deployedId) {\n setTimeout(() => {\n this.switchVersion(deployedId);\n this.alertService.success(\n this.translateService.instant('decisions.deploySuccess')\n );\n });\n }\n });\n }),\n catchError(() => {\n this.alertService.error(this.translateService.instant('decisions.deployFailure'));\n return of(null);\n })\n )\n .subscribe();\n }\n\n download(): void {\n from(this.dmnModeler.saveXML({format: true}))\n .pipe(\n map(result => (result as any).xml),\n map(\n xml =>\n new File([xml], 'decision.dmn', {\n type: 'text/xml',\n })\n ),\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 private setProperties(): void {\n const isCreating = this.isCreating$.getValue();\n\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: {\n bindTo: window,\n },\n });\n\n if (isCreating) {\n this.loadEmptyDecisionTable();\n }\n }\n\n private loadEmptyDecisionTable(): void {\n this.loadDecisionXml(EMPTY_DECISION);\n }\n\n private setTabEvents = (): void => {\n const $tabs = this.$tabs;\n const dmnModeler = this.dmnModeler;\n\n $tabs.delegate('.tab', 'click', async function (e) {\n // get index of view from clicked tab\n const viewIdx = parseInt(this.getAttribute('data-id'), 10);\n\n // get view using index\n const view = dmnModeler.getViews()[viewIdx];\n\n // open view\n try {\n await dmnModeler.open(view);\n } catch (err) {\n console.error('error opening tab', err);\n }\n });\n };\n\n private setModelerEvents = (): void => {\n const $tabs = this.$tabs;\n const CLASS_NAMES = this.CLASS_NAMES;\n\n this.dmnModeler.on('views.changed', function (event) {\n // get views from event\n const {views, activeView} = event;\n\n // clear tabs\n $tabs.empty();\n\n // create a new tab for each view\n views.forEach(function (v, idx) {\n const className = CLASS_NAMES[v.type];\n\n const tab = $(`\n <div class=\"tab ${v === activeView ? 'active' : ''}\" data-id=\"${idx}\">\n <span class=\"${className}\"></span>\n ${v.element.name || v.element.id}\n </div>\n `);\n\n $tabs.append(tab);\n });\n });\n };\n\n private loadDecisionXml(decision: DecisionXml): void {\n from(this.dmnModeler.importXML(decision.dmnXml))\n .pipe(\n tap(() => {\n this.setEditor();\n }),\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(decisionXml => this.dmnModeler.importXML(decisionXml)),\n tap(() => {\n this.setEditor();\n }),\n catchError(() => {\n this.alertService.error(this.translateService.instant('decisions.loadFailure'));\n return of(null);\n })\n )\n .subscribe();\n }\n\n private setEditor(): void {\n const dmnModeler = this.dmnModeler;\n\n const activeView = dmnModeler.getActiveView();\n\n // apply initial logic in DRD view\n if (activeView.type === 'drd') {\n const activeEditor = dmnModeler.getActiveViewer();\n\n // access active editor components\n const canvas = activeEditor.get('canvas');\n\n // zoom to fit full viewport\n canvas.zoom('fit-viewport');\n }\n }\n}\n","<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n [ngClass]=\"{'main-content pt-0': !layoutService.isFullscreen}\"\n class=\"mb-5\"\n *ngIf=\"{\n decisionXml: decisionXml$ | async,\n decisionTitle: decisionTitle$ | async,\n } as obs\"\n>\n <div [ngClass]=\"{'container-fluid': !layoutService.isFullscreen}\">\n <ng-container *ngTemplateOutlet=\"buttons\"></ng-container>\n <ng-container *ngTemplateOutlet=\"createButtons\"></ng-container>\n <div [ngClass]=\"{'mt-4': !layoutService.isFullscreen}\" class=\"modeler pl-3 pr-3 mb-3\">\n <ng-container *ngTemplateOutlet=\"diagramHeader\"></ng-container>\n <ng-container *ngTemplateOutlet=\"diagram\"></ng-container>\n </div>\n </div>\n</div>\n\n<ng-template #buttons>\n <div\n class=\"text-right\"\n *ngIf=\"(isCreating$ | async) === false && {selectionId: selectionId$ | async} as obs\"\n >\n <div class=\"btn-group mt-m3px mb-3\" *ngIf=\"obs.selectionId && !layoutService.isFullscreen\">\n <button class=\"btn btn-primary btn-space\" (click)=\"download()\">\n <i class=\"icon mdi mdi-download mr-1\"></i>{{ 'processManagement.download' | translate }}\n </button>\n <button\n class=\"btn btn-success btn-space\"\n (click)=\"deploy()\"\n [ngClass]=\"{'mr-0': obs.selectionId !== null}\"\n >\n <i class=\"icon mdi mdi-upload mr-1\"></i>{{ 'decisions.deploy' | translate }}\n </button>\n </div>\n </div>\n</ng-template>\n\n<ng-template #createButtons>\n <div class=\"text-right\" *ngIf=\"isCreating$ | async\">\n <div class=\"btn-group mt-m3px mb-3\" *ngIf=\"!layoutService.isFullscreen\">\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 <!-- <button-->\n <!-- *ngIf=\"selectedVersion === null\"-->\n <!-- class=\"btn btn-danger btn-space mr-0\"-->\n <!-- (click)=\"reset()\"-->\n <!-- >-->\n <!-- <i class=\"icon mdi mdi-delete mr-1\"></i>{{ 'processManagement.clear' | translate }}-->\n <!-- </button>-->\n </div>\n </div>\n</ng-template>\n\n<ng-template #diagramHeader>\n <div class=\"row pt-4 pb-3 bg-light diagram-header justify-content-between\">\n <ng-container *ngTemplateOutlet=\"versionSelection\"></ng-container>\n <ng-container *ngTemplateOutlet=\"fullScreenToggle\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #versionSelection>\n <div class=\"col-md-2 d-flex justify-content-center align-items-center\">\n <ng-container\n *ngIf=\"\n (isCreating$ | async) === false && {\n versionSelectItems: decisionVersionSelectItems$ | async,\n defaultSelectionId: selectionId$ | async,\n disabled: versionSelectionDisabled$ | async,\n } as obs\n \"\n >\n <v-select\n name=\"version\"\n [title]=\"'decisions.version' | translate\"\n [disabled]=\"obs.disabled\"\n [clearable]=\"false\"\n [loading]=\"!obs.versionSelectItems\"\n [items]=\"obs.versionSelectItems\"\n [defaultSelectionId]=\"obs.defaultSelectionId\"\n [widthInPx]=\"100\"\n (selectedChange)=\"switchVersion($event)\"\n ></v-select>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #fullScreenToggle>\n <div class=\"col-md-2 d-flex fullscreen-toggle align-items-start justify-content-end\">\n <i\n (click)=\"layoutService.toggleFullscreen()\"\n [ngClass]=\"{\n 'mdi-fullscreen': !layoutService.isFullscreen,\n 'mdi-fullscreen-exit': layoutService.isFullscreen,\n }\"\n class=\"mdi\"\n ></i>\n </div>\n</ng-template>\n\n<ng-template #diagram>\n <div class=\"row bg-white diagram mb-3\">\n <div class=\"dmn-modeler\">\n <div class=\"test-container\">\n <div class=\"editor-parent\">\n <div class=\"editor-container\"></div>\n <div class=\"editor-tabs\"></div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnInit, ViewEncapsulation} from '@angular/core';\nimport {DecisionService} from '../decision.service';\nimport DmnViewer from 'dmn-js';\nimport {DecisionXml} from '../models';\nimport {ActivatedRoute} from '@angular/router';\nimport {ToastrService} from 'ngx-toastr';\nimport {migrateDiagram} from '@bpmn-io/dmn-migrate';\n\n@Component({\n selector: 'valtimo-decision-display',\n templateUrl: './decision-display.component.html',\n styleUrls: ['./decision-display.component.scss'],\n encapsulation: ViewEncapsulation.None,\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 private readonly toasterService: ToastrService\n ) {}\n\n ngOnInit() {\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) {\n const decisionXml = await migrateDiagram(decision.dmnXml);\n\n if (decisionXml) {\n this.viewer.importXML(decisionXml, error => {\n if (error) {\n console.log('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-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<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-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {DecisionComponent} from './decision.component';\nimport {ROLE_ADMIN} from '@valtimo/config';\nimport {DecisionModelerComponent} from './decision-modeler/decision-modeler.component';\nimport {DecisionDisplayComponent} from './decision-display/decision-display.component';\n\nconst routes: Routes = [\n {\n path: 'decision-tables',\n component: DecisionComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Decision tables', roles: [ROLE_ADMIN]},\n },\n {\n path: 'decision-tables/:id',\n component: DecisionDisplayComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Decision tables', roles: [ROLE_ADMIN]},\n },\n {\n path: 'decision-tables/edit/:id',\n component: DecisionModelerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Edit decision table', roles: [ROLE_ADMIN], customPageTitle: true},\n },\n {\n path: 'decision-tables/edit/create',\n component: DecisionModelerComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Create decision table', roles: [ROLE_ADMIN]},\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DecisionRoutingModule {}\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {DecisionComponent} from './decision.component';\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 ListModule,\n ModalModule,\n SpinnerModule,\n WidgetModule,\n SelectModule,\n CarbonListModule,\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 declarations: [\n DecisionComponent,\n DecisionDeployComponent,\n DecisionDisplayComponent,\n DecisionListComponent,\n DecisionModelerComponent,\n ],\n imports: [\n DecisionRoutingModule,\n WidgetModule,\n ListModule,\n TranslateModule,\n ModalModule,\n CommonModule,\n FormsModule,\n SelectModule,\n SpinnerModule,\n CarbonListModule,\n ButtonModule,\n IconModule,\n ],\n exports: [DecisionComponent, DecisionModelerComponent],\n})\nexport class DecisionModule {}\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of decision\n */\n\nexport * from './lib/models';\nexport * from './lib/decision.module';\nexport * from './lib/decision.component';\nexport * from './lib/decision-modeler/decision-modeler.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.DecisionService","i2.DecisionStateService","i2","i3","i4","i5.DecisionStateService","i7","i8.DecisionDeployComponent","i9","i2.DecisionListComponent","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MAWU,eAAe,CAAA;IAG1B,WACU,CAAA,aAA4B,EAC5B,IAAgB,EAAA;QADhB,IAAa,CAAA,aAAA,GAAb,aAAa;QACb,IAAI,CAAA,IAAA,GAAJ,IAAI;QAEZ,IAAI,CAAC,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU;;AAGzD,IAAA,SAAS,CAAC,GAAS,EAAA;AACjB,QAAA,MAAM,QAAQ,GAAa,IAAI,QAAQ,EAAE;AACzC,QAAA,QAAQ,CAAC,MAAM,CAAC,MAAM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QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,uBAAuB;wBACvB,wBAAwB;wBACxB,qBAAqB;wBACrB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,YAAY;wBACZ,UAAU;wBACV,eAAe;wBACf,WAAW;wBACX,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,aAAa;wBACb,gBAAgB;wBAChB,YAAY;wBACZ,UAAU;AACX,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;AACvD,iBAAA;;;AC3DD;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/decision",
3
3
  "license": "EUPL-1.2",
4
- "version": "12.5.1",
4
+ "version": "12.6.1",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.2.2",
7
7
  "@angular/core": "^17.2.2"