@valtimo/case-migration 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/esm2022/lib/case-migration-routing.module.mjs +44 -0
  2. package/esm2022/lib/case-migration.module.mjs +81 -0
  3. package/esm2022/lib/components/case-migration-component/case-migration.component.mjs +118 -0
  4. package/esm2022/lib/models/case-migration.model.mjs +17 -0
  5. package/esm2022/lib/models/index.mjs +17 -0
  6. package/esm2022/lib/services/case-migration.service.mjs +40 -0
  7. package/esm2022/lib/services/index.mjs +17 -0
  8. package/esm2022/public-api.mjs +22 -0
  9. package/esm2022/valtimo-case-migration.mjs +5 -0
  10. package/fesm2022/valtimo-case-migration.mjs +346 -0
  11. package/fesm2022/valtimo-case-migration.mjs.map +1 -0
  12. package/index.d.ts +6 -0
  13. package/lib/case-migration-routing.module.d.ts +9 -0
  14. package/lib/case-migration-routing.module.d.ts.map +1 -0
  15. package/lib/case-migration.module.d.ts +14 -0
  16. package/lib/case-migration.module.d.ts.map +1 -0
  17. package/lib/components/case-migration-component/case-migration.component.d.ts +34 -0
  18. package/lib/components/case-migration-component/case-migration.component.d.ts.map +1 -0
  19. package/lib/models/case-migration.model.d.ts +27 -0
  20. package/lib/models/case-migration.model.d.ts.map +1 -0
  21. package/lib/models/index.d.ts +2 -0
  22. package/lib/models/index.d.ts.map +1 -0
  23. package/lib/services/case-migration.service.d.ts +15 -0
  24. package/lib/services/case-migration.service.d.ts.map +1 -0
  25. package/lib/services/index.d.ts +2 -0
  26. package/lib/services/index.d.ts.map +1 -0
  27. package/package.json +26 -0
  28. package/public-api.d.ts +4 -0
  29. package/public-api.d.ts.map +1 -0
  30. package/valtimo-case-migration.d.ts.map +1 -0
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { NgModule } from '@angular/core';
17
+ import { RouterModule } from '@angular/router';
18
+ import { CommonModule } from '@angular/common';
19
+ import { AuthGuardService } from '@valtimo/security';
20
+ import { ROLE_ADMIN } from '@valtimo/config';
21
+ import { CaseMigrationComponent } from './components/case-migration-component/case-migration.component';
22
+ import * as i0 from "@angular/core";
23
+ import * as i1 from "@angular/router";
24
+ const routes = [
25
+ {
26
+ path: 'case-migration',
27
+ component: CaseMigrationComponent,
28
+ canActivate: [AuthGuardService],
29
+ data: { title: 'Case migration', roles: [ROLE_ADMIN] },
30
+ },
31
+ ];
32
+ export class CaseMigrationRoutingModule {
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
34
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationRoutingModule, imports: [CommonModule, i1.RouterModule], exports: [RouterModule] }); }
35
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
36
+ }
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationRoutingModule, decorators: [{
38
+ type: NgModule,
39
+ args: [{
40
+ imports: [CommonModule, RouterModule.forChild(routes)],
41
+ exports: [RouterModule],
42
+ }]
43
+ }] });
44
+ //# sourceMappingURL=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 * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { NgModule } from '@angular/core';
17
+ import { CaseMigrationRoutingModule } from './case-migration-routing.module';
18
+ import { CommonModule } from '@angular/common';
19
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
20
+ import { CarbonMultiInputModule, ConfirmationModalModule, RenderInPageHeaderDirectiveModule, TooltipIconModule, WidgetModule, } from '@valtimo/components';
21
+ import { TranslateModule } from '@ngx-translate/core';
22
+ import { CaseMigrationComponent } from './components/case-migration-component/case-migration.component';
23
+ import { ButtonModule, DropdownModule, IconModule, InputModule, NotificationModule, } from 'carbon-components-angular';
24
+ import * as i0 from "@angular/core";
25
+ export class CaseMigrationModule {
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
27
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationModule, declarations: [CaseMigrationComponent], imports: [CommonModule,
28
+ CaseMigrationRoutingModule,
29
+ ReactiveFormsModule,
30
+ WidgetModule,
31
+ FormsModule,
32
+ TranslateModule,
33
+ DropdownModule,
34
+ RenderInPageHeaderDirectiveModule,
35
+ InputModule,
36
+ TooltipIconModule,
37
+ ButtonModule,
38
+ IconModule,
39
+ CarbonMultiInputModule,
40
+ ConfirmationModalModule,
41
+ NotificationModule] }); }
42
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationModule, imports: [CommonModule,
43
+ CaseMigrationRoutingModule,
44
+ ReactiveFormsModule,
45
+ WidgetModule,
46
+ FormsModule,
47
+ TranslateModule,
48
+ DropdownModule,
49
+ RenderInPageHeaderDirectiveModule,
50
+ InputModule,
51
+ TooltipIconModule,
52
+ ButtonModule,
53
+ IconModule,
54
+ CarbonMultiInputModule,
55
+ ConfirmationModalModule,
56
+ NotificationModule] }); }
57
+ }
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationModule, decorators: [{
59
+ type: NgModule,
60
+ args: [{
61
+ declarations: [CaseMigrationComponent],
62
+ imports: [
63
+ CommonModule,
64
+ CaseMigrationRoutingModule,
65
+ ReactiveFormsModule,
66
+ WidgetModule,
67
+ FormsModule,
68
+ TranslateModule,
69
+ DropdownModule,
70
+ RenderInPageHeaderDirectiveModule,
71
+ InputModule,
72
+ TooltipIconModule,
73
+ ButtonModule,
74
+ IconModule,
75
+ CarbonMultiInputModule,
76
+ ConfirmationModalModule,
77
+ NotificationModule,
78
+ ],
79
+ }]
80
+ }] });
81
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzZS1taWdyYXRpb24ubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9jYXNlLW1pZ3JhdGlvbi9zcmMvbGliL2Nhc2UtbWlncmF0aW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLDBCQUEwQixFQUFDLE1BQU0saUNBQWlDLENBQUM7QUFDM0UsT0FBTyxFQUFDLFlBQV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Glvbk1vZHVsZSxcbn0gZnJvbSAnY2FyYm9uLWNvbXBvbmVudHMtYW5ndWxhcic7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0Nhc2VNaWdyYXRpb25Db21wb25lbnRdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIENhc2VNaWdyYXRpb25Sb3V0aW5nTW9kdWxlLFxuICAgIFJlYWN0aXZlRm9ybXNNb2R1bGUsXG4gICAgV2lkZ2V0TW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuICAgIFRyYW5zbGF0ZU1vZHVsZSxcbiAgICBEcm9wZG93bk1vZHVsZSxcbiAgICBSZW5kZXJJblBhZ2VIZWFkZXJEaXJlY3RpdmVNb2R1bGUsXG4gICAgSW5wdXRNb2R1bGUsXG4gICAgVG9vbHRpcEljb25Nb2R1bGUsXG4gICAgQnV0dG9uTW9kdWxlLFxuICAgIEljb25Nb2R1bGUsXG4gICAgQ2FyYm9uTXVsdGlJbnB1dE1vZHVsZSxcbiAgICBDb25maXJtYXRpb25Nb2RhbE1vZHVsZSxcbiAgICBOb3RpZmljYXRpb25Nb2R1bGUsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIENhc2VNaWdyYXRpb25Nb2R1bGUge31cbiJdfQ==
@@ -0,0 +1,118 @@
1
+ /*
2
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Component } from '@angular/core';
17
+ import { BehaviorSubject, combineLatest, filter, map, shareReplay, startWith, switchMap, take, } from 'rxjs';
18
+ import { WatsonHealthStackedMove16 } from '@carbon/icons';
19
+ import * as i0 from "@angular/core";
20
+ import * as i1 from "@valtimo/document";
21
+ import * as i2 from "../../services";
22
+ import * as i3 from "carbon-components-angular";
23
+ import * as i4 from "@angular/common";
24
+ import * as i5 from "@valtimo/components";
25
+ import * as i6 from "@ngx-translate/core";
26
+ export class CaseMigrationComponent {
27
+ constructor(documentService, caseMigrationService, iconService) {
28
+ this.documentService = documentService;
29
+ this.caseMigrationService = caseMigrationService;
30
+ this.iconService = iconService;
31
+ this.sourceDocumentDefinitionNameSelected$ = new BehaviorSubject(null);
32
+ this.sourceDocumentDefinitionVersionSelected$ = new BehaviorSubject(null);
33
+ this.targetDocumentDefinitionNameSelected$ = new BehaviorSubject(null);
34
+ this.targetDocumentDefinitionVersionSelected$ = new BehaviorSubject(null);
35
+ this.patchItems$ = new BehaviorSubject([]);
36
+ this.errors$ = new BehaviorSubject([]);
37
+ this.showConfirmationModal$ = new BehaviorSubject(false);
38
+ this.documentDefinitionIds$ = this.documentService.getAllDefinitions().pipe(map(definitions => definitions.content.map(definition => definition.id)), shareReplay(1));
39
+ this.sourceDocumentDefinitionNameItems$ = this.documentDefinitionIds$.pipe(map(documentDefinitionIds => documentDefinitionIds.map(documentDefinitionId => ({
40
+ documentDefinitionName: documentDefinitionId.name,
41
+ content: documentDefinitionId.name,
42
+ selected: false,
43
+ }))), map(items => ({
44
+ value: items,
45
+ isLoading: false,
46
+ })), startWith({ isLoading: true }));
47
+ this.sourceDocumentDefinitionVersionItems$ = combineLatest([this.sourceDocumentDefinitionNameSelected$, this.documentDefinitionIds$]).pipe(map(([sourceDocumentDefinitionNameSelected, documentDefinitionIds]) => documentDefinitionIds.find(id => id.name === sourceDocumentDefinitionNameSelected)), filter(documentDefinitionId => !!documentDefinitionId), map(documentDefinitionId => [...Array(documentDefinitionId.version).keys()].map(v => v + 1)), map(versions => versions.map(version => ({
48
+ documentDefinitionVersion: version,
49
+ content: version.toString(),
50
+ selected: false,
51
+ }))));
52
+ this.targetDocumentDefinitionNameItems$ = this.documentDefinitionIds$.pipe(map(documentDefinitionIds => documentDefinitionIds.map(documentDefinitionId => ({
53
+ documentDefinitionName: documentDefinitionId.name,
54
+ content: documentDefinitionId.name,
55
+ selected: false,
56
+ }))), map(items => ({
57
+ value: items,
58
+ isLoading: false,
59
+ })), startWith({ isLoading: true }));
60
+ this.targetDocumentDefinitionVersionItems$ = combineLatest([this.targetDocumentDefinitionNameSelected$, this.documentDefinitionIds$]).pipe(map(([targetDocumentDefinitionNameSelected, documentDefinitionIds]) => documentDefinitionIds.find(id => id.name === targetDocumentDefinitionNameSelected)), filter(documentDefinitionId => !!documentDefinitionId), map(documentDefinitionId => [...Array(documentDefinitionId.version).keys()].map(v => v + 1)), map(versions => versions.map(version => ({
61
+ documentDefinitionVersion: version,
62
+ content: version.toString(),
63
+ selected: false,
64
+ }))));
65
+ this.patches$ = this.patchItems$.pipe(map(patchItems => patchItems.map(patchItem => ({
66
+ source: patchItem.key,
67
+ target: patchItem.value,
68
+ }))));
69
+ this.CARBON_THEME = 'g10';
70
+ this.iconService.registerAll([WatsonHealthStackedMove16]);
71
+ }
72
+ mappingValueChange(patches) {
73
+ this.patchItems$.next(patches);
74
+ }
75
+ checkPatches() {
76
+ combineLatest([
77
+ this.sourceDocumentDefinitionNameSelected$,
78
+ this.sourceDocumentDefinitionVersionSelected$,
79
+ this.targetDocumentDefinitionNameSelected$,
80
+ this.targetDocumentDefinitionVersionSelected$,
81
+ this.patches$,
82
+ ])
83
+ .pipe(take(1), map(([documentDefinitionNameSource, documentDefinitionVersionSource, documentDefinitionNameTarget, documentDefinitionVersionTarget, patches,]) => ({
84
+ documentDefinitionNameSource,
85
+ documentDefinitionVersionSource,
86
+ documentDefinitionNameTarget,
87
+ documentDefinitionVersionTarget,
88
+ patches,
89
+ })), switchMap(request => this.caseMigrationService.getConflicts(request)))
90
+ .subscribe(response => {
91
+ this.errors$.next(response.errors.concat(response.conflicts.filter(c => !!c.error).map(c => c.source + ': ' + c.error)));
92
+ });
93
+ }
94
+ migrate() {
95
+ combineLatest([
96
+ this.sourceDocumentDefinitionNameSelected$,
97
+ this.sourceDocumentDefinitionVersionSelected$,
98
+ this.targetDocumentDefinitionNameSelected$,
99
+ this.targetDocumentDefinitionVersionSelected$,
100
+ this.patches$,
101
+ ])
102
+ .pipe(take(1), map(([documentDefinitionNameSource, documentDefinitionVersionSource, documentDefinitionNameTarget, documentDefinitionVersionTarget, patches,]) => ({
103
+ documentDefinitionNameSource,
104
+ documentDefinitionVersionSource,
105
+ documentDefinitionNameTarget,
106
+ documentDefinitionVersionTarget,
107
+ patches,
108
+ })), switchMap(request => this.caseMigrationService.migrate(request)))
109
+ .subscribe();
110
+ }
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationComponent, deps: [{ token: i1.DocumentService }, { token: i2.CaseMigrationService }, { token: i3.IconService }], target: i0.ɵɵFactoryTarget.Component }); }
112
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: CaseMigrationComponent, selector: "valtimo-case-migration", ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n sourceDocumentDefinitionNameItems: sourceDocumentDefinitionNameItems$ | async,\n sourceDocumentDefinitionVersionItems: sourceDocumentDefinitionVersionItems$ | async,\n targetDocumentDefinitionNameItems: targetDocumentDefinitionNameItems$ | async,\n targetDocumentDefinitionVersionItems: targetDocumentDefinitionVersionItems$ | async,\n sourceDocumentDefinitionNameSelected: sourceDocumentDefinitionNameSelected$ | async,\n sourceDocumentDefinitionVersionSelected: sourceDocumentDefinitionVersionSelected$ | async,\n targetDocumentDefinitionNameSelected: targetDocumentDefinitionNameSelected$ | async,\n targetDocumentDefinitionVersionSelected: targetDocumentDefinitionVersionSelected$ | async,\n patchItems: patchItems$ | async,\n errors: errors$ | async,\n showConfirmationModal: showConfirmationModal$\n } as obs\"\n>\n <ng-container>\n <div class=\"pb-2\">\n <cds-notification\n [notificationObj]=\"{\n type: 'warning',\n title: 'caseMigration.warningBeta' | translate,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.caseDefinition' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n (selected)=\"sourceDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n sourceDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"targetDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n targetDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2 pb-2\">\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.patches' | translate }}</h2>\n </div>\n </div>\n <valtimo-carbon-multi-input\n type=\"keyValue\"\n (valueChange)=\"mappingValueChange($event)\"\n [title]=\"' '\"\n [tooltip]=\"'caseMigration.patchTooltip' | translate\"\n [defaultValues]=\"[]\"\n [keyColumnTitle]=\"'caseMigration.patchSource' | translate\"\n [valueColumnTitle]=\"'caseMigration.patchTarget' | translate\"\n [fullWidth]=\"true\"\n ></valtimo-carbon-multi-input>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2\">\n <div *ngIf=\"obs.errors?.length >= 1\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.errors' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"pb-2\" *ngFor=\"let error of obs.errors\">\n <cds-notification\n [notificationObj]=\"{\n type: 'error',\n title: error,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </div>\n </ng-container>\n\n <ng-container>\n <button\n class=\"mt-2 mb-2 mr-2\"\n cdsButton=\"secondary\"\n size=\"md\"\n (click)=\"checkPatches()\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.checkPatches' | translate }}\n </button>\n <button\n class=\"mt-2 mb-2 ml-2\"\n cdsButton=\"primary\"\n size=\"md\"\n (click)=\"showConfirmationModal$.next(true)\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.migrate' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"watsonHealthStackedMove\" size=\"16\"></svg>\n </button>\n </ng-container>\n\n <valtimo-confirmation-modal\n [showModalSubject$]=\"obs.showConfirmationModal\"\n (confirmEvent)=\"migrate()\"\n (cancelEvent)=\"showConfirmationModal$.next(false)\"\n cancelButtonType=\"ghost\"\n confirmButtonTextTranslationKey=\"caseMigration.modalTitle\"\n titleTranslationKey=\"caseMigration.modalTitle\"\n contentTranslationKey=\"caseMigration.modalContent\"\n ></valtimo-confirmation-modal>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp"], outputs: ["selected", "onClose", "close"] }, { kind: "component", type: i3.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "directive", type: i3.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i3.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i5.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["name", "title", "titleTranslationKey", "type", "arbitraryValueAmount", "arbitraryAmountTitles", "initialAmountOfRows", "minimumAmountOfRows", "maxRows", "addRowText", "addRowTranslationKey", "deleteRowText", "deleteRowTranslationKey", "disabled", "defaultValues", "margin", "tooltip", "required", "keyColumnTitle", "valueColumnTitle", "dropdownColumnTitle", "hideDeleteButton", "hideAddButton", "dropdownItems", "dropdownWidth", "fullWidth", "carbonTheme"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "component", type: i5.ConfirmationModalComponent, selector: "valtimo-confirmation-modal", inputs: ["titleTranslationKey", "title", "content", "contentTranslationKey", "confirmButtonText", "confirmButtonTextTranslationKey", "confirmButtonType", "showOptionalButton", "optionalButtonText", "optionalButtonTextTranslationKey", "optionalButtonType", "cancelButtonText", "cancelButtonTextTranslationKey", "cancelButtonType", "showModalSubject$", "outputOnConfirm", "outputOnOptional", "spacerAfterCancelButton"], outputs: ["confirmEvent", "optionalEvent", "cancelEvent"] }, { kind: "component", type: i3.Notification, selector: "cds-notification, cds-inline-notification, ibm-notification, ibm-inline-notification", inputs: ["notificationObj"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
113
+ }
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationComponent, decorators: [{
115
+ type: Component,
116
+ args: [{ selector: 'valtimo-case-migration', template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n sourceDocumentDefinitionNameItems: sourceDocumentDefinitionNameItems$ | async,\n sourceDocumentDefinitionVersionItems: sourceDocumentDefinitionVersionItems$ | async,\n targetDocumentDefinitionNameItems: targetDocumentDefinitionNameItems$ | async,\n targetDocumentDefinitionVersionItems: targetDocumentDefinitionVersionItems$ | async,\n sourceDocumentDefinitionNameSelected: sourceDocumentDefinitionNameSelected$ | async,\n sourceDocumentDefinitionVersionSelected: sourceDocumentDefinitionVersionSelected$ | async,\n targetDocumentDefinitionNameSelected: targetDocumentDefinitionNameSelected$ | async,\n targetDocumentDefinitionVersionSelected: targetDocumentDefinitionVersionSelected$ | async,\n patchItems: patchItems$ | async,\n errors: errors$ | async,\n showConfirmationModal: showConfirmationModal$\n } as obs\"\n>\n <ng-container>\n <div class=\"pb-2\">\n <cds-notification\n [notificationObj]=\"{\n type: 'warning',\n title: 'caseMigration.warningBeta' | translate,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.caseDefinition' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n (selected)=\"sourceDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n sourceDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"targetDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n targetDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2 pb-2\">\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.patches' | translate }}</h2>\n </div>\n </div>\n <valtimo-carbon-multi-input\n type=\"keyValue\"\n (valueChange)=\"mappingValueChange($event)\"\n [title]=\"' '\"\n [tooltip]=\"'caseMigration.patchTooltip' | translate\"\n [defaultValues]=\"[]\"\n [keyColumnTitle]=\"'caseMigration.patchSource' | translate\"\n [valueColumnTitle]=\"'caseMigration.patchTarget' | translate\"\n [fullWidth]=\"true\"\n ></valtimo-carbon-multi-input>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2\">\n <div *ngIf=\"obs.errors?.length >= 1\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.errors' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"pb-2\" *ngFor=\"let error of obs.errors\">\n <cds-notification\n [notificationObj]=\"{\n type: 'error',\n title: error,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </div>\n </ng-container>\n\n <ng-container>\n <button\n class=\"mt-2 mb-2 mr-2\"\n cdsButton=\"secondary\"\n size=\"md\"\n (click)=\"checkPatches()\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.checkPatches' | translate }}\n </button>\n <button\n class=\"mt-2 mb-2 ml-2\"\n cdsButton=\"primary\"\n size=\"md\"\n (click)=\"showConfirmationModal$.next(true)\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.migrate' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"watsonHealthStackedMove\" size=\"16\"></svg>\n </button>\n </ng-container>\n\n <valtimo-confirmation-modal\n [showModalSubject$]=\"obs.showConfirmationModal\"\n (confirmEvent)=\"migrate()\"\n (cancelEvent)=\"showConfirmationModal$.next(false)\"\n cancelButtonType=\"ghost\"\n confirmButtonTextTranslationKey=\"caseMigration.modalTitle\"\n titleTranslationKey=\"caseMigration.modalTitle\"\n contentTranslationKey=\"caseMigration.modalContent\"\n ></valtimo-confirmation-modal>\n</ng-container>\n" }]
117
+ }], ctorParameters: () => [{ type: i1.DocumentService }, { type: i2.CaseMigrationService }, { type: i3.IconService }] });
118
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzZS1taWdyYXRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9jYXNlLW1pZ3JhdGlvbi9zcmMvbGliL2NvbXBvbmVudHMvY2FzZS1taWdyYXRpb24tY29tcG9uZW50L2Nhc2UtbWlncmF0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vY2FzZS1taWdyYXRpb24vc3JjL2xpYi9jb21wb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Y29udGVudDogdmVyc2lvbi50b1N0cmluZygpLFxuICAgICAgICAgICAgICBzZWxlY3RlZDogZmFsc2UsXG4gICAgICAgICAgICB9KSBhcyBMaXN0SXRlbVxuICAgICAgICApXG4gICAgICApXG4gICAgKTtcbiAgcHVibGljIHJlYWRvbmx5IHRhcmdldERvY3VtZW50RGVmaW5pdGlvbk5hbWVJdGVtcyQ6IE9ic2VydmFibGU8TG9hZGVkVmFsdWU8QXJyYXk8TGlzdEl0ZW0+Pj4gPVxuICAgIHRoaXMuZG9jdW1lbnREZWZpbml0aW9uSWRzJC5waXBlKFxuICAgICAgbWFwKGRvY3VtZW50RGVmaW5pdGlvbklkcyA9PlxuICAgICAgICBkb2N1bWVudERlZmluaXRpb25JZHMubWFwKFxuICAgICAgICAgIGRvY3VtZW50RGVmaW5pdGlvbklkID0+XG4gICAgICAgICAgICAoe1xuICAgICAgICAgICAgICBkb2N1bWVudERlZmluaXRpb25OYW1lOiBkb2N1bWVudERlZmluaXRpb25JZC5uYW1lLFxuICAgICAgICAgICAgICBjb250ZW50OiBkb2N1bWVudERlZmluaXRpb25JZC5uYW1lLFxuICAgICAgICAgICAgICBzZWxlY3RlZDogZmFsc2UsXG4gICAgICAgICAgICB9KSBhcyBMaXN0SXRlbVxuICAgICAgICApXG4gICAgICApLFxuICAgICAgbWFwKGl0ZW1zID0+ICh7XG4gICAgICAgIHZhbHVlOiBpdGVtcyxcbiAgICAgICAgaXNMb2FkaW5nOiBmYWxzZSxcbiAgICAgIH0pKSxcbiAgICAgIHN0YXJ0V2l0aCh7aXNMb2FkaW5nOiB0cnVlfSlcbiAgICApO1xuICBwdWJsaWMgcmVhZG9ubHkgdGFyZ2V0RG9jdW1lbnREZWZpbml0aW9uVmVyc2lvbkl0ZW1zJDogT2JzZXJ2YWJsZTxBcnJheTxMaXN0SXRlbT4+ID1cbiAgICBjb21iaW5lTGF0ZXN0KFt0aGlzLnRhcmdldERvY3VtZW50RGVmaW5pdGlvbk5hbWVTZWxlY3RlZCQsIHRoaXMuZG9jdW1lbnREZWZpbml0aW9uSWRzJF0pLnBpcGUoXG4gICAgICBtYXAoKFt0YXJnZXREb2N1bWVudERlZmluaXRpb25OYW1lU2VsZWN0ZWQsIGRvY3VtZW50RGVmaW5pdGlvbklkc10pID0+XG4gICAgICAgIGRvY3VtZW50RGVmaW5pdGlvbklkcy5maW5kKGlkID0+IGlkLm5hbWUgPT09IHRhcmdldERvY3VtZW50RGVmaW5pdGlvbk5hbWVTZWxlY3RlZClcbiAgICAgICksXG4gICAgICBmaWx0ZXIoZG9jdW1lbnREZWZpbml0aW9uSWQgPT4gISFkb2N1bWVudERlZmluaXRpb25JZCksXG4gICAgICBtYXAoZG9jdW1lbnREZWZpbml0aW9uSWQgPT4gWy4uLkFycmF5KGRvY3VtZW50RGVmaW5pdGlvbklkLnZlcnNpb24pLmtleXMoKV0ubWFwKHYgPT4gdiArIDEpKSxcbiAgICAgIG1hcCh2ZXJzaW9ucyA9PlxuICAgICAgICB2ZXJzaW9ucy5tYXAoXG4gICAgICAgICAgdmVyc2lvbiA9PlxuICAgICAgICAgICAgKHtcbiAgICAgICAgICAgICAgZG9jdW1lbnREZWZpbml0aW9uVmVyc2lvbjogdmVyc2lvbixcbiAgICAgICAgICAgICAgY29udGVudDogdmVyc2lvbi50b1N0cmluZygpLFxuICAgICAgICAgICAgICBzZWxlY3RlZDogZmFsc2UsXG4gICAgICAgICAgICB9KSBhcyBMaXN0SXRlbVxuICAgICAgICApXG4gICAgICApXG4gICAgKTtcbiAgcHVibGljIHJlYWRvbmx5IHBhdGNoZXMkOiBPYnNlcnZhYmxlPEFycmF5PERvY3VtZW50TWlncmF0aW9uUGF0Y2g+PiA9XG4gICAgdGhpcy5wYXRjaEl0ZW1zJC5waXBlKFxuICAgICAgbWFwKHBhdGNoSXRlbXMgPT5cbiAgICAgICAgcGF0Y2hJdGVtcy5tYXAoXG4gICAgICAgICAgcGF0Y2hJdGVtID0+XG4gICAgICAgICAgICAoe1xuICAgICAgICAgICAgICBzb3VyY2U6IHBhdGNoSXRlbS5rZXksXG4gICAgICAgICAgICAgIHRhcmdldDogcGF0Y2hJdGVtLnZhbHVlLFxuICAgICAgICAgICAgfSkgYXMgRG9jdW1lbnRNaWdyYXRpb25QYXRjaFxuICAgICAgICApXG4gICAgICApXG4gICAgKTtcblxuICBtYXBwaW5nVmFsdWVDaGFuZ2UocGF0Y2hlczogTXVsdGlJbnB1dFZhbHVlcyk6IHZvaWQge1xuICAgIHRoaXMucGF0Y2hJdGVtcyQubmV4dChwYXRjaGVzKTtcbiAgfVxuXG4gIGNoZWNrUGF0Y2hlcygpIHtcbiAgICBjb21iaW5lTGF0ZXN0KFtcbiAgICAgIHRoaXMuc291cmNlRG9jdW1lbnREZWZpbml0aW9uTmFtZVNlbGVjdGVkJCxcbiAgICAgIHRoaXMuc291cmNlRG9jdW1lbnREZWZpbml0aW9uVmVyc2lvblNlbGVjdGVkJCxcbiAgICAgIHRoaXMudGFyZ2V0RG9jdW1lbnREZWZpbml0aW9uTmFtZVNlbGVjdGVkJCxcbiAgICAgIHRoaXMudGFyZ2V0RG9jdW1lbnREZWZpbml0aW9uVmVyc2lvblNlbGVjdGVkJCxcbiAgICAgIHRoaXMucGF0Y2hlcyQsXG4gICAgXSlcbiAgICAgIC5waXBlKFxuICAgICAgICB0YWtlKDEpLFxuICAgICAgICBtYXAoXG4gICAgICAgICAgKFtcbiAgICAgICAgICAgIGRvY3VtZW50RGVmaW5pdGlvbk5hbWVTb3VyY2UsXG4gICAgICAgICAgICBkb2N1bWVudERlZmluaXRpb25WZXJzaW9uU291cmNlLFxuICAgICAgICAgICAgZG9jdW1lbnREZWZpbml0aW9uTmFtZVRhcmdldCxcbiAgICAgICAgICAgIGRvY3VtZW50RGVmaW5pdGlvblZlcnNpb25UYXJnZXQsXG4gICAgICAgICAgICBwYXRjaGVzLFxuICAgICAgICAgIF0pID0+XG4gICAgICAgICAgICAoe1xuICAgICAgICAgICAgICBkb2N1bWVudERlZmluaXRpb25OYW1lU291cmNlLFxuICAgICAgICAgICAgICBkb2N1bWVudERlZmluaXRpb25WZXJzaW9uU291cmNlLFxuICAgICAgICAgICAgICBkb2N1bWVudERlZmluaXRpb25OYW1lVGFyZ2V0LFxuICAgICAgICAgICAgICBkb2N1bWVudERlZmluaXRpb25WZXJzaW9uVGFyZ2V0LFxuICAgICAgICAgICAgICBwYXRjaGVzLFxuICAgICAgICAgICAgfSkgYXMgRG9jdW1lbnRNaWdyYXRpb25Db25mbGljdFJlcXVlc3RcbiAgICAgICAgKSxcbiAgICAgICAgc3dpdGNoTWFwKHJlcXVlc3QgPT5cbiAgICAgICAgICB0aGlzLmNhc2VNaWdyYXRpb25TZXJ2aWNlLmdldENvbmZsaWN0cyhyZXF1ZXN0IGFzIERvY3VtZW50TWlncmF0aW9uQ29uZmxpY3RSZXF1ZXN0KVxuICAgICAgICApXG4gICAgICApXG4gICAgICAuc3Vic2NyaWJlKHJlc3BvbnNlID0+IHtcbiAgICAgICAgdGhpcy5lcnJvcnMkLm5leHQoXG4gICAgICAgICAgcmVzcG9uc2UuZXJyb3JzLmNvbmNhdChcbiAgICAgICAgICAgIHJlc3BvbnNlLmNvbmZsaWN0cy5maWx0ZXIoYyA9PiAhIWMuZXJyb3IpLm1hcChjID0+IGMuc291cmNlICsgJzogJyArIGMuZXJyb3IpXG4gICAgICAgICAgKVxuICAgICAgICApO1xuICAgICAgfSk7XG4gIH1cblxuICBtaWdyYXRlKCkge1xuICAgIGNvbWJpbmVMYXRlc3QoW1xuICAgICAgdGhpcy5zb3VyY2VEb2N1bWVudERlZmluaXRpb25OYW1lU2VsZWN0ZWQkLFxuICAgICAgdGhpcy5zb3VyY2VEb2N1bWVudERlZmluaXRpb25WZXJzaW9uU2VsZWN0ZWQkLFxuICAgICAgdGhpcy50YXJnZXREb2N1bWVudERlZmluaXRpb25OYW1lU2VsZWN0ZWQkLFxuICAgICAgdGhpcy50YXJnZXREb2N1bWVudERlZmluaXRpb25WZXJzaW9uU2VsZWN0ZWQkLFxuICAgICAgdGhpcy5wYXRjaGVzJCxcbiAgICBdKVxuICAgICAgLnBpcGUoXG4gICAgICAgIHRha2UoMSksXG4gICAgICAgIG1hcChcbiAgICAgICAgICAoW1xuICAgICAgICAgICAgZG9jdW1lbnREZWZpbml0aW9uTmFtZVNvdXJjZSxcbiAgICAgICAgICAgIGRvY3VtZW50RGVmaW5pdGlvblZlcnNpb25Tb3VyY2UsXG4gICAgICAgICAgICBkb2N1bWVudERlZmluaXRpb25OYW1lVGFyZ2V0LFxuICAgICAgICAgICAgZG9jdW1lbnREZWZpbml0aW9uVmVyc2lvblRhcmdldCxcbiAgICAgICAgICAgIHBhdGNoZXMsXG4gICAgICAgICAgXSkgPT5cbiAgICAgICAgICAgICh7XG4gICAgICAgICAgICAgIGRvY3VtZW50RGVmaW5pdGlvbk5hbWVTb3VyY2UsXG4gICAgICAgICAgICAgIGRvY3VtZW50RGVmaW5pdGlvblZlcnNpb25Tb3VyY2UsXG4gICAgICAgICAgICAgIGRvY3VtZW50RGVmaW5pdGlvbk5hbWVUYXJnZXQsXG4gICAgICAgICAgICAgIGRvY3VtZW50RGVmaW5pdGlvblZlcnNpb25UYXJnZXQsXG4gICAgICAgICAgICAgIHBhdGNoZXMsXG4gICAgICAgICAgICB9KSBhcyBEb2N1bWVudE1pZ3JhdGlvbkNvbmZsaWN0UmVxdWVzdFxuICAgICAgICApLFxuICAgICAgICBzd2l0Y2hNYXAocmVxdWVzdCA9PlxuICAgICAgICAgIHRoaXMuY2FzZU1pZ3JhdGlvblNlcnZpY2UubWlncmF0ZShyZXF1ZXN0IGFzIERvY3VtZW50TWlncmF0aW9uQ29uZmxpY3RSZXF1ZXN0KVxuICAgICAgICApXG4gICAgICApXG4gICAgICAuc3Vic2NyaWJlKCk7XG4gIH1cblxuICBwcm90ZWN0ZWQgcmVhZG9ubHkgQ0FSQk9OX1RIRU1FID0gJ2cxMCc7XG59XG4iLCI8IS0tXG4gIH4gQ29weXJpZ2h0IDIwM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 +1,17 @@
1
+ /*
2
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzZS1taWdyYXRpb24ubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2Nhc2UtbWlncmF0aW9uL3NyYy9saWIvbW9kZWxzL2Nhc2UtbWlncmF0aW9uLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHlyaWdodCAyMDE1LTIwMjQgUml0ZW5zZSBCViwgdGhlIE5ldGhlcmxhbmRzLlxuICpcbiAqIExpY2Vuc2VkIHVuZGVyIEVVUEwsIFZlcnNpb24gMS4yICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogaHR0cHM6Ly9qb2ludXAuZWMuZXVyb3BhLmV1L2NvbGxlY3Rpb24vZXVwbC9ldXBsLXRleHQtZXVwbC0xMlxuICpcbiAqIFVub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pdGlvbk5hbWVUYXJnZXQ6IHN0cmluZztcbiAgZG9jdW1lbnREZWZpbml0aW9uVmVyc2lvblRhcmdldDogbnVtYmVyO1xuICBjb25mbGljdHM6IERvY3VtZW50TWlncmF0aW9uUGF0Y2hbXTtcbiAgZXJyb3JzOiBBcnJheTxzdHJpbmc+O1xuICBkb2N1bWVudENvdW50OiBudW1iZXI7XG59XG5cbmludGVyZmFjZSBEb2N1bWVudE1pZ3JhdGlvblBhdGNoIHtcbiAgc291cmNlOiBzdHJpbmc7XG4gIHRhcmdldD86IHN0cmluZztcbiAgZXJyb3I/OiBzdHJpbmc7XG59XG5cbmV4cG9ydCB7XG4gIExvYWRlZFZhbHVlLFxuICBEb2N1bWVudE1pZ3JhdGlvbkNvbmZsaWN0UmVxdWVzdCxcbiAgRG9jdW1lbnRNaWdyYXRpb25Db25mbGljdFJlc3BvbnNlLFxuICBEb2N1bWVudE1pZ3JhdGlvblBhdGNoLFxufTtcbiJdfQ==
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './case-migration.model';
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2Nhc2UtbWlncmF0aW9uL3NyYy9saWIvbW9kZWxzL2luZGV4LnRzIl0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 * Copyright 2015-2024 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Injectable } from '@angular/core';
17
+ import * as i0 from "@angular/core";
18
+ import * as i1 from "@angular/common/http";
19
+ import * as i2 from "@valtimo/config";
20
+ export class CaseMigrationService {
21
+ constructor(http, configService) {
22
+ this.http = http;
23
+ this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
24
+ }
25
+ getConflicts(request) {
26
+ return this.http.post(`${this.valtimoEndpointUri}management/v1/document-definition/migration/conflicts`, request);
27
+ }
28
+ migrate(request) {
29
+ return this.http.post(`${this.valtimoEndpointUri}management/v1/document-definition/migrate`, request);
30
+ }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
32
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationService, providedIn: 'root' }); }
33
+ }
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationService, decorators: [{
35
+ type: Injectable,
36
+ args: [{
37
+ providedIn: 'root',
38
+ }]
39
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ConfigService }] });
40
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzZS1taWd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0VuZHBvaW50VXJpfW1hbmFnZW1lbnQvdjEvZG9jdW1lbnQtZGVmaW5pdGlvbi9taWdyYXRlYCxcbiAgICAgIHJlcXVlc3RcbiAgICApO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './case-migration.service';
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2Nhc2UtbWlncmF0aW9uL3NyYy9saWIvc2VydmljZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxjQUFjLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHlyaWdodCAyMDE1LTIwMjQgUml0ZW5zZSBCViwgdGhlIE5ldGhlcmxhbmRzLlxuICpcbiAqIExpY2Vuc2VkIHVuZGVyIEVVUEwsIFZlcnNpb24gMS4yICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogaHR0cHM6Ly9qb2ludXAuZWMuZXVyb3BhLmV1L2NvbGxlY3Rpb24vZXVwbC9ldXBsLXRleHQtZXVwbC0xMlxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBiYXNpcyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9jYXNlLW1pZ3JhdGlvbi5zZXJ2aWNlJztcbiJdfQ==
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
3
+ *
4
+ * Licensed under EUPL, Version 1.2 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" basis,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /*
17
+ * Public API Surface of case-migration
18
+ */
19
+ export * from './lib/models';
20
+ export * from './lib/services';
21
+ export * from './lib/case-migration.module';
22
+ //# sourceMappingURL=data:application/json;base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W1wbGllZC5cbiAqIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmRcbiAqIGxpbWl0YXRpb25zIHVuZGVyIHRoZSBMaWNlbnNlLlxuICovXG5cbi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgY2FzZS1taWdyYXRpb25cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9tb2RlbHMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvc2VydmljZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY2FzZS1taWdyYXRpb24ubW9kdWxlJztcbiJdfQ==
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1jYXNlLW1pZ3JhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vY2FzZS1taWdyYXRpb24vc3JjL3ZhbHRpbW8tY2FzZS1taWdyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,346 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common/http';
4
+ import * as i2 from '@valtimo/config';
5
+ import { ROLE_ADMIN } from '@valtimo/config';
6
+ import * as i1$2 from '@angular/router';
7
+ import { RouterModule } from '@angular/router';
8
+ import * as i4 from '@angular/common';
9
+ import { CommonModule } from '@angular/common';
10
+ import { AuthGuardService } from '@valtimo/security';
11
+ import { BehaviorSubject, map, shareReplay, startWith, combineLatest, filter, take, switchMap } from 'rxjs';
12
+ import { WatsonHealthStackedMove16 } from '@carbon/icons';
13
+ import * as i1$1 from '@valtimo/document';
14
+ import * as i3 from 'carbon-components-angular';
15
+ import { DropdownModule, InputModule, ButtonModule, IconModule, NotificationModule } from 'carbon-components-angular';
16
+ import * as i5 from '@valtimo/components';
17
+ import { WidgetModule, RenderInPageHeaderDirectiveModule, TooltipIconModule, CarbonMultiInputModule, ConfirmationModalModule } from '@valtimo/components';
18
+ import * as i6 from '@ngx-translate/core';
19
+ import { TranslateModule } from '@ngx-translate/core';
20
+ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
21
+
22
+ /*
23
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
24
+ *
25
+ * Licensed under EUPL, Version 1.2 (the "License");
26
+ * you may not use this file except in compliance with the License.
27
+ * You may obtain a copy of the License at
28
+ *
29
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
30
+ *
31
+ * Unless required by applicable law or agreed to in writing, software
32
+ * distributed under the License is distributed on an "AS IS" basis,
33
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34
+ * See the License for the specific language governing permissions and
35
+ * limitations under the License.
36
+ */
37
+
38
+ /*
39
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
40
+ *
41
+ * Licensed under EUPL, Version 1.2 (the "License");
42
+ * you may not use this file except in compliance with the License.
43
+ * You may obtain a copy of the License at
44
+ *
45
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
46
+ *
47
+ * Unless required by applicable law or agreed to in writing, software
48
+ * distributed under the License is distributed on an "AS IS" basis,
49
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50
+ * See the License for the specific language governing permissions and
51
+ * limitations under the License.
52
+ */
53
+
54
+ /*
55
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
56
+ *
57
+ * Licensed under EUPL, Version 1.2 (the "License");
58
+ * you may not use this file except in compliance with the License.
59
+ * You may obtain a copy of the License at
60
+ *
61
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
62
+ *
63
+ * Unless required by applicable law or agreed to in writing, software
64
+ * distributed under the License is distributed on an "AS IS" basis,
65
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66
+ * See the License for the specific language governing permissions and
67
+ * limitations under the License.
68
+ */
69
+ class CaseMigrationService {
70
+ constructor(http, configService) {
71
+ this.http = http;
72
+ this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
73
+ }
74
+ getConflicts(request) {
75
+ return this.http.post(`${this.valtimoEndpointUri}management/v1/document-definition/migration/conflicts`, request);
76
+ }
77
+ migrate(request) {
78
+ return this.http.post(`${this.valtimoEndpointUri}management/v1/document-definition/migrate`, request);
79
+ }
80
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
81
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationService, providedIn: 'root' }); }
82
+ }
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationService, decorators: [{
84
+ type: Injectable,
85
+ args: [{
86
+ providedIn: 'root',
87
+ }]
88
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ConfigService }] });
89
+
90
+ /*
91
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
92
+ *
93
+ * Licensed under EUPL, Version 1.2 (the "License");
94
+ * you may not use this file except in compliance with the License.
95
+ * You may obtain a copy of the License at
96
+ *
97
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
98
+ *
99
+ * Unless required by applicable law or agreed to in writing, software
100
+ * distributed under the License is distributed on an "AS IS" basis,
101
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
102
+ * See the License for the specific language governing permissions and
103
+ * limitations under the License.
104
+ */
105
+
106
+ /*
107
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
108
+ *
109
+ * Licensed under EUPL, Version 1.2 (the "License");
110
+ * you may not use this file except in compliance with the License.
111
+ * You may obtain a copy of the License at
112
+ *
113
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
114
+ *
115
+ * Unless required by applicable law or agreed to in writing, software
116
+ * distributed under the License is distributed on an "AS IS" basis,
117
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118
+ * See the License for the specific language governing permissions and
119
+ * limitations under the License.
120
+ */
121
+ class CaseMigrationComponent {
122
+ constructor(documentService, caseMigrationService, iconService) {
123
+ this.documentService = documentService;
124
+ this.caseMigrationService = caseMigrationService;
125
+ this.iconService = iconService;
126
+ this.sourceDocumentDefinitionNameSelected$ = new BehaviorSubject(null);
127
+ this.sourceDocumentDefinitionVersionSelected$ = new BehaviorSubject(null);
128
+ this.targetDocumentDefinitionNameSelected$ = new BehaviorSubject(null);
129
+ this.targetDocumentDefinitionVersionSelected$ = new BehaviorSubject(null);
130
+ this.patchItems$ = new BehaviorSubject([]);
131
+ this.errors$ = new BehaviorSubject([]);
132
+ this.showConfirmationModal$ = new BehaviorSubject(false);
133
+ this.documentDefinitionIds$ = this.documentService.getAllDefinitions().pipe(map(definitions => definitions.content.map(definition => definition.id)), shareReplay(1));
134
+ this.sourceDocumentDefinitionNameItems$ = this.documentDefinitionIds$.pipe(map(documentDefinitionIds => documentDefinitionIds.map(documentDefinitionId => ({
135
+ documentDefinitionName: documentDefinitionId.name,
136
+ content: documentDefinitionId.name,
137
+ selected: false,
138
+ }))), map(items => ({
139
+ value: items,
140
+ isLoading: false,
141
+ })), startWith({ isLoading: true }));
142
+ this.sourceDocumentDefinitionVersionItems$ = combineLatest([this.sourceDocumentDefinitionNameSelected$, this.documentDefinitionIds$]).pipe(map(([sourceDocumentDefinitionNameSelected, documentDefinitionIds]) => documentDefinitionIds.find(id => id.name === sourceDocumentDefinitionNameSelected)), filter(documentDefinitionId => !!documentDefinitionId), map(documentDefinitionId => [...Array(documentDefinitionId.version).keys()].map(v => v + 1)), map(versions => versions.map(version => ({
143
+ documentDefinitionVersion: version,
144
+ content: version.toString(),
145
+ selected: false,
146
+ }))));
147
+ this.targetDocumentDefinitionNameItems$ = this.documentDefinitionIds$.pipe(map(documentDefinitionIds => documentDefinitionIds.map(documentDefinitionId => ({
148
+ documentDefinitionName: documentDefinitionId.name,
149
+ content: documentDefinitionId.name,
150
+ selected: false,
151
+ }))), map(items => ({
152
+ value: items,
153
+ isLoading: false,
154
+ })), startWith({ isLoading: true }));
155
+ this.targetDocumentDefinitionVersionItems$ = combineLatest([this.targetDocumentDefinitionNameSelected$, this.documentDefinitionIds$]).pipe(map(([targetDocumentDefinitionNameSelected, documentDefinitionIds]) => documentDefinitionIds.find(id => id.name === targetDocumentDefinitionNameSelected)), filter(documentDefinitionId => !!documentDefinitionId), map(documentDefinitionId => [...Array(documentDefinitionId.version).keys()].map(v => v + 1)), map(versions => versions.map(version => ({
156
+ documentDefinitionVersion: version,
157
+ content: version.toString(),
158
+ selected: false,
159
+ }))));
160
+ this.patches$ = this.patchItems$.pipe(map(patchItems => patchItems.map(patchItem => ({
161
+ source: patchItem.key,
162
+ target: patchItem.value,
163
+ }))));
164
+ this.CARBON_THEME = 'g10';
165
+ this.iconService.registerAll([WatsonHealthStackedMove16]);
166
+ }
167
+ mappingValueChange(patches) {
168
+ this.patchItems$.next(patches);
169
+ }
170
+ checkPatches() {
171
+ combineLatest([
172
+ this.sourceDocumentDefinitionNameSelected$,
173
+ this.sourceDocumentDefinitionVersionSelected$,
174
+ this.targetDocumentDefinitionNameSelected$,
175
+ this.targetDocumentDefinitionVersionSelected$,
176
+ this.patches$,
177
+ ])
178
+ .pipe(take(1), map(([documentDefinitionNameSource, documentDefinitionVersionSource, documentDefinitionNameTarget, documentDefinitionVersionTarget, patches,]) => ({
179
+ documentDefinitionNameSource,
180
+ documentDefinitionVersionSource,
181
+ documentDefinitionNameTarget,
182
+ documentDefinitionVersionTarget,
183
+ patches,
184
+ })), switchMap(request => this.caseMigrationService.getConflicts(request)))
185
+ .subscribe(response => {
186
+ this.errors$.next(response.errors.concat(response.conflicts.filter(c => !!c.error).map(c => c.source + ': ' + c.error)));
187
+ });
188
+ }
189
+ migrate() {
190
+ combineLatest([
191
+ this.sourceDocumentDefinitionNameSelected$,
192
+ this.sourceDocumentDefinitionVersionSelected$,
193
+ this.targetDocumentDefinitionNameSelected$,
194
+ this.targetDocumentDefinitionVersionSelected$,
195
+ this.patches$,
196
+ ])
197
+ .pipe(take(1), map(([documentDefinitionNameSource, documentDefinitionVersionSource, documentDefinitionNameTarget, documentDefinitionVersionTarget, patches,]) => ({
198
+ documentDefinitionNameSource,
199
+ documentDefinitionVersionSource,
200
+ documentDefinitionNameTarget,
201
+ documentDefinitionVersionTarget,
202
+ patches,
203
+ })), switchMap(request => this.caseMigrationService.migrate(request)))
204
+ .subscribe();
205
+ }
206
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationComponent, deps: [{ token: i1$1.DocumentService }, { token: CaseMigrationService }, { token: i3.IconService }], target: i0.ɵɵFactoryTarget.Component }); }
207
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: CaseMigrationComponent, selector: "valtimo-case-migration", ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n sourceDocumentDefinitionNameItems: sourceDocumentDefinitionNameItems$ | async,\n sourceDocumentDefinitionVersionItems: sourceDocumentDefinitionVersionItems$ | async,\n targetDocumentDefinitionNameItems: targetDocumentDefinitionNameItems$ | async,\n targetDocumentDefinitionVersionItems: targetDocumentDefinitionVersionItems$ | async,\n sourceDocumentDefinitionNameSelected: sourceDocumentDefinitionNameSelected$ | async,\n sourceDocumentDefinitionVersionSelected: sourceDocumentDefinitionVersionSelected$ | async,\n targetDocumentDefinitionNameSelected: targetDocumentDefinitionNameSelected$ | async,\n targetDocumentDefinitionVersionSelected: targetDocumentDefinitionVersionSelected$ | async,\n patchItems: patchItems$ | async,\n errors: errors$ | async,\n showConfirmationModal: showConfirmationModal$\n } as obs\"\n>\n <ng-container>\n <div class=\"pb-2\">\n <cds-notification\n [notificationObj]=\"{\n type: 'warning',\n title: 'caseMigration.warningBeta' | translate,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.caseDefinition' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n (selected)=\"sourceDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n sourceDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"targetDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n targetDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2 pb-2\">\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.patches' | translate }}</h2>\n </div>\n </div>\n <valtimo-carbon-multi-input\n type=\"keyValue\"\n (valueChange)=\"mappingValueChange($event)\"\n [title]=\"' '\"\n [tooltip]=\"'caseMigration.patchTooltip' | translate\"\n [defaultValues]=\"[]\"\n [keyColumnTitle]=\"'caseMigration.patchSource' | translate\"\n [valueColumnTitle]=\"'caseMigration.patchTarget' | translate\"\n [fullWidth]=\"true\"\n ></valtimo-carbon-multi-input>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2\">\n <div *ngIf=\"obs.errors?.length >= 1\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.errors' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"pb-2\" *ngFor=\"let error of obs.errors\">\n <cds-notification\n [notificationObj]=\"{\n type: 'error',\n title: error,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </div>\n </ng-container>\n\n <ng-container>\n <button\n class=\"mt-2 mb-2 mr-2\"\n cdsButton=\"secondary\"\n size=\"md\"\n (click)=\"checkPatches()\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.checkPatches' | translate }}\n </button>\n <button\n class=\"mt-2 mb-2 ml-2\"\n cdsButton=\"primary\"\n size=\"md\"\n (click)=\"showConfirmationModal$.next(true)\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.migrate' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"watsonHealthStackedMove\" size=\"16\"></svg>\n </button>\n </ng-container>\n\n <valtimo-confirmation-modal\n [showModalSubject$]=\"obs.showConfirmationModal\"\n (confirmEvent)=\"migrate()\"\n (cancelEvent)=\"showConfirmationModal$.next(false)\"\n cancelButtonType=\"ghost\"\n confirmButtonTextTranslationKey=\"caseMigration.modalTitle\"\n titleTranslationKey=\"caseMigration.modalTitle\"\n contentTranslationKey=\"caseMigration.modalContent\"\n ></valtimo-confirmation-modal>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp"], outputs: ["selected", "onClose", "close"] }, { kind: "component", type: i3.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "directive", type: i3.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i3.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i5.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["name", "title", "titleTranslationKey", "type", "arbitraryValueAmount", "arbitraryAmountTitles", "initialAmountOfRows", "minimumAmountOfRows", "maxRows", "addRowText", "addRowTranslationKey", "deleteRowText", "deleteRowTranslationKey", "disabled", "defaultValues", "margin", "tooltip", "required", "keyColumnTitle", "valueColumnTitle", "dropdownColumnTitle", "hideDeleteButton", "hideAddButton", "dropdownItems", "dropdownWidth", "fullWidth", "carbonTheme"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "component", type: i5.ConfirmationModalComponent, selector: "valtimo-confirmation-modal", inputs: ["titleTranslationKey", "title", "content", "contentTranslationKey", "confirmButtonText", "confirmButtonTextTranslationKey", "confirmButtonType", "showOptionalButton", "optionalButtonText", "optionalButtonTextTranslationKey", "optionalButtonType", "cancelButtonText", "cancelButtonTextTranslationKey", "cancelButtonType", "showModalSubject$", "outputOnConfirm", "outputOnOptional", "spacerAfterCancelButton"], outputs: ["confirmEvent", "optionalEvent", "cancelEvent"] }, { kind: "component", type: i3.Notification, selector: "cds-notification, cds-inline-notification, ibm-notification, ibm-inline-notification", inputs: ["notificationObj"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
208
+ }
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationComponent, decorators: [{
210
+ type: Component,
211
+ args: [{ selector: 'valtimo-case-migration', template: "<!--\n ~ Copyright 2015-2024 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n sourceDocumentDefinitionNameItems: sourceDocumentDefinitionNameItems$ | async,\n sourceDocumentDefinitionVersionItems: sourceDocumentDefinitionVersionItems$ | async,\n targetDocumentDefinitionNameItems: targetDocumentDefinitionNameItems$ | async,\n targetDocumentDefinitionVersionItems: targetDocumentDefinitionVersionItems$ | async,\n sourceDocumentDefinitionNameSelected: sourceDocumentDefinitionNameSelected$ | async,\n sourceDocumentDefinitionVersionSelected: sourceDocumentDefinitionVersionSelected$ | async,\n targetDocumentDefinitionNameSelected: targetDocumentDefinitionNameSelected$ | async,\n targetDocumentDefinitionVersionSelected: targetDocumentDefinitionVersionSelected$ | async,\n patchItems: patchItems$ | async,\n errors: errors$ | async,\n showConfirmationModal: showConfirmationModal$\n } as obs\"\n>\n <ng-container>\n <div class=\"pb-2\">\n <cds-notification\n [notificationObj]=\"{\n type: 'warning',\n title: 'caseMigration.warningBeta' | translate,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.caseDefinition' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n (selected)=\"sourceDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n sourceDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"targetDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n targetDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2 pb-2\">\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.patches' | translate }}</h2>\n </div>\n </div>\n <valtimo-carbon-multi-input\n type=\"keyValue\"\n (valueChange)=\"mappingValueChange($event)\"\n [title]=\"' '\"\n [tooltip]=\"'caseMigration.patchTooltip' | translate\"\n [defaultValues]=\"[]\"\n [keyColumnTitle]=\"'caseMigration.patchSource' | translate\"\n [valueColumnTitle]=\"'caseMigration.patchTarget' | translate\"\n [fullWidth]=\"true\"\n ></valtimo-carbon-multi-input>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2\">\n <div *ngIf=\"obs.errors?.length >= 1\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.errors' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"pb-2\" *ngFor=\"let error of obs.errors\">\n <cds-notification\n [notificationObj]=\"{\n type: 'error',\n title: error,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </div>\n </ng-container>\n\n <ng-container>\n <button\n class=\"mt-2 mb-2 mr-2\"\n cdsButton=\"secondary\"\n size=\"md\"\n (click)=\"checkPatches()\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.checkPatches' | translate }}\n </button>\n <button\n class=\"mt-2 mb-2 ml-2\"\n cdsButton=\"primary\"\n size=\"md\"\n (click)=\"showConfirmationModal$.next(true)\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.migrate' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"watsonHealthStackedMove\" size=\"16\"></svg>\n </button>\n </ng-container>\n\n <valtimo-confirmation-modal\n [showModalSubject$]=\"obs.showConfirmationModal\"\n (confirmEvent)=\"migrate()\"\n (cancelEvent)=\"showConfirmationModal$.next(false)\"\n cancelButtonType=\"ghost\"\n confirmButtonTextTranslationKey=\"caseMigration.modalTitle\"\n titleTranslationKey=\"caseMigration.modalTitle\"\n contentTranslationKey=\"caseMigration.modalContent\"\n ></valtimo-confirmation-modal>\n</ng-container>\n" }]
212
+ }], ctorParameters: () => [{ type: i1$1.DocumentService }, { type: CaseMigrationService }, { type: i3.IconService }] });
213
+
214
+ /*
215
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
216
+ *
217
+ * Licensed under EUPL, Version 1.2 (the "License");
218
+ * you may not use this file except in compliance with the License.
219
+ * You may obtain a copy of the License at
220
+ *
221
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
222
+ *
223
+ * Unless required by applicable law or agreed to in writing, software
224
+ * distributed under the License is distributed on an "AS IS" basis,
225
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
226
+ * See the License for the specific language governing permissions and
227
+ * limitations under the License.
228
+ */
229
+ const routes = [
230
+ {
231
+ path: 'case-migration',
232
+ component: CaseMigrationComponent,
233
+ canActivate: [AuthGuardService],
234
+ data: { title: 'Case migration', roles: [ROLE_ADMIN] },
235
+ },
236
+ ];
237
+ class CaseMigrationRoutingModule {
238
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
239
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationRoutingModule, imports: [CommonModule, i1$2.RouterModule], exports: [RouterModule] }); }
240
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
241
+ }
242
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationRoutingModule, decorators: [{
243
+ type: NgModule,
244
+ args: [{
245
+ imports: [CommonModule, RouterModule.forChild(routes)],
246
+ exports: [RouterModule],
247
+ }]
248
+ }] });
249
+
250
+ /*
251
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
252
+ *
253
+ * Licensed under EUPL, Version 1.2 (the "License");
254
+ * you may not use this file except in compliance with the License.
255
+ * You may obtain a copy of the License at
256
+ *
257
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
258
+ *
259
+ * Unless required by applicable law or agreed to in writing, software
260
+ * distributed under the License is distributed on an "AS IS" basis,
261
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
262
+ * See the License for the specific language governing permissions and
263
+ * limitations under the License.
264
+ */
265
+ class CaseMigrationModule {
266
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
267
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationModule, declarations: [CaseMigrationComponent], imports: [CommonModule,
268
+ CaseMigrationRoutingModule,
269
+ ReactiveFormsModule,
270
+ WidgetModule,
271
+ FormsModule,
272
+ TranslateModule,
273
+ DropdownModule,
274
+ RenderInPageHeaderDirectiveModule,
275
+ InputModule,
276
+ TooltipIconModule,
277
+ ButtonModule,
278
+ IconModule,
279
+ CarbonMultiInputModule,
280
+ ConfirmationModalModule,
281
+ NotificationModule] }); }
282
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationModule, imports: [CommonModule,
283
+ CaseMigrationRoutingModule,
284
+ ReactiveFormsModule,
285
+ WidgetModule,
286
+ FormsModule,
287
+ TranslateModule,
288
+ DropdownModule,
289
+ RenderInPageHeaderDirectiveModule,
290
+ InputModule,
291
+ TooltipIconModule,
292
+ ButtonModule,
293
+ IconModule,
294
+ CarbonMultiInputModule,
295
+ ConfirmationModalModule,
296
+ NotificationModule] }); }
297
+ }
298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CaseMigrationModule, decorators: [{
299
+ type: NgModule,
300
+ args: [{
301
+ declarations: [CaseMigrationComponent],
302
+ imports: [
303
+ CommonModule,
304
+ CaseMigrationRoutingModule,
305
+ ReactiveFormsModule,
306
+ WidgetModule,
307
+ FormsModule,
308
+ TranslateModule,
309
+ DropdownModule,
310
+ RenderInPageHeaderDirectiveModule,
311
+ InputModule,
312
+ TooltipIconModule,
313
+ ButtonModule,
314
+ IconModule,
315
+ CarbonMultiInputModule,
316
+ ConfirmationModalModule,
317
+ NotificationModule,
318
+ ],
319
+ }]
320
+ }] });
321
+
322
+ /*
323
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
324
+ *
325
+ * Licensed under EUPL, Version 1.2 (the "License");
326
+ * you may not use this file except in compliance with the License.
327
+ * You may obtain a copy of the License at
328
+ *
329
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
330
+ *
331
+ * Unless required by applicable law or agreed to in writing, software
332
+ * distributed under the License is distributed on an "AS IS" basis,
333
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
334
+ * See the License for the specific language governing permissions and
335
+ * limitations under the License.
336
+ */
337
+ /*
338
+ * Public API Surface of case-migration
339
+ */
340
+
341
+ /**
342
+ * Generated bundle index. Do not edit.
343
+ */
344
+
345
+ export { CaseMigrationModule, CaseMigrationService };
346
+ //# sourceMappingURL=valtimo-case-migration.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-case-migration.mjs","sources":["../../../../projects/valtimo/case-migration/src/lib/models/case-migration.model.ts","../../../../projects/valtimo/case-migration/src/lib/models/index.ts","../../../../projects/valtimo/case-migration/src/lib/services/case-migration.service.ts","../../../../projects/valtimo/case-migration/src/lib/services/index.ts","../../../../projects/valtimo/case-migration/src/lib/components/case-migration-component/case-migration.component.ts","../../../../projects/valtimo/case-migration/src/lib/components/case-migration-component/case-migration.component.html","../../../../projects/valtimo/case-migration/src/lib/case-migration-routing.module.ts","../../../../projects/valtimo/case-migration/src/lib/case-migration.module.ts","../../../../projects/valtimo/case-migration/src/public-api.ts","../../../../projects/valtimo/case-migration/src/valtimo-case-migration.ts"],"sourcesContent":["/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\ninterface LoadedValue<T> {\n isLoading: boolean;\n value?: T;\n}\n\ninterface DocumentMigrationConflictRequest {\n documentDefinitionNameSource: string;\n documentDefinitionVersionSource: number;\n documentDefinitionNameTarget: string;\n documentDefinitionVersionTarget: number;\n patches: DocumentMigrationPatch[];\n}\n\ninterface DocumentMigrationConflictResponse {\n documentDefinitionNameSource: string;\n documentDefinitionVersionSource: number;\n documentDefinitionNameTarget: string;\n documentDefinitionVersionTarget: number;\n conflicts: DocumentMigrationPatch[];\n errors: Array<string>;\n documentCount: number;\n}\n\ninterface DocumentMigrationPatch {\n source: string;\n target?: string;\n error?: string;\n}\n\nexport {\n LoadedValue,\n DocumentMigrationConflictRequest,\n DocumentMigrationConflictResponse,\n DocumentMigrationPatch,\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 './case-migration.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 {ConfigService} from '@valtimo/config';\nimport {Observable} from 'rxjs';\nimport {DocumentMigrationConflictRequest, DocumentMigrationConflictResponse} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CaseMigrationService {\n private readonly valtimoEndpointUri!: string;\n\n constructor(\n private http: HttpClient,\n configService: ConfigService\n ) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n public getConflicts(\n request: DocumentMigrationConflictRequest\n ): Observable<DocumentMigrationConflictResponse> {\n return this.http.post<DocumentMigrationConflictResponse>(\n `${this.valtimoEndpointUri}management/v1/document-definition/migration/conflicts`,\n request\n );\n }\n\n public migrate(request: DocumentMigrationConflictRequest): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}management/v1/document-definition/migrate`,\n request\n );\n }\n}\n","/*\n * Copyright 2015-2024 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './case-migration.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} from '@angular/core';\nimport {DocumentDefinitionId, DocumentService} from '@valtimo/document';\nimport {MultiInputValues} from '@valtimo/components';\nimport {\n BehaviorSubject,\n combineLatest,\n filter,\n map,\n Observable,\n shareReplay,\n startWith,\n switchMap,\n take,\n} from 'rxjs';\nimport {ListItem} from 'carbon-components-angular/dropdown';\nimport {\n DocumentMigrationConflictRequest,\n DocumentMigrationPatch,\n LoadedValue,\n} from '../../models';\nimport {CaseMigrationService} from '../../services';\nimport {WatsonHealthStackedMove16} from '@carbon/icons';\nimport {IconService} from 'carbon-components-angular';\n\n@Component({\n selector: 'valtimo-case-migration',\n templateUrl: './case-migration.component.html',\n})\nexport class CaseMigrationComponent {\n public readonly sourceDocumentDefinitionNameSelected$ = new BehaviorSubject<string | null>(null);\n public readonly sourceDocumentDefinitionVersionSelected$ = new BehaviorSubject<number | null>(\n null\n );\n public readonly targetDocumentDefinitionNameSelected$ = new BehaviorSubject<string | null>(null);\n public readonly targetDocumentDefinitionVersionSelected$ = new BehaviorSubject<number | null>(\n null\n );\n public readonly patchItems$ = new BehaviorSubject<MultiInputValues>([]);\n public readonly errors$ = new BehaviorSubject<Array<string>>([]);\n public readonly showConfirmationModal$ = new BehaviorSubject<boolean>(false);\n\n constructor(\n private readonly documentService: DocumentService,\n private readonly caseMigrationService: CaseMigrationService,\n private readonly iconService: IconService\n ) {\n this.iconService.registerAll([WatsonHealthStackedMove16]);\n }\n\n public readonly documentDefinitionIds$: Observable<Array<DocumentDefinitionId>> =\n this.documentService.getAllDefinitions().pipe(\n map(definitions => definitions.content.map(definition => definition.id)),\n shareReplay(1)\n );\n public readonly sourceDocumentDefinitionNameItems$: Observable<LoadedValue<Array<ListItem>>> =\n this.documentDefinitionIds$.pipe(\n map(documentDefinitionIds =>\n documentDefinitionIds.map(\n documentDefinitionId =>\n ({\n documentDefinitionName: documentDefinitionId.name,\n content: documentDefinitionId.name,\n selected: false,\n }) as ListItem\n )\n ),\n map(items => ({\n value: items,\n isLoading: false,\n })),\n startWith({isLoading: true})\n );\n public readonly sourceDocumentDefinitionVersionItems$: Observable<Array<ListItem>> =\n combineLatest([this.sourceDocumentDefinitionNameSelected$, this.documentDefinitionIds$]).pipe(\n map(([sourceDocumentDefinitionNameSelected, documentDefinitionIds]) =>\n documentDefinitionIds.find(id => id.name === sourceDocumentDefinitionNameSelected)\n ),\n filter(documentDefinitionId => !!documentDefinitionId),\n map(documentDefinitionId => [...Array(documentDefinitionId.version).keys()].map(v => v + 1)),\n map(versions =>\n versions.map(\n version =>\n ({\n documentDefinitionVersion: version,\n content: version.toString(),\n selected: false,\n }) as ListItem\n )\n )\n );\n public readonly targetDocumentDefinitionNameItems$: Observable<LoadedValue<Array<ListItem>>> =\n this.documentDefinitionIds$.pipe(\n map(documentDefinitionIds =>\n documentDefinitionIds.map(\n documentDefinitionId =>\n ({\n documentDefinitionName: documentDefinitionId.name,\n content: documentDefinitionId.name,\n selected: false,\n }) as ListItem\n )\n ),\n map(items => ({\n value: items,\n isLoading: false,\n })),\n startWith({isLoading: true})\n );\n public readonly targetDocumentDefinitionVersionItems$: Observable<Array<ListItem>> =\n combineLatest([this.targetDocumentDefinitionNameSelected$, this.documentDefinitionIds$]).pipe(\n map(([targetDocumentDefinitionNameSelected, documentDefinitionIds]) =>\n documentDefinitionIds.find(id => id.name === targetDocumentDefinitionNameSelected)\n ),\n filter(documentDefinitionId => !!documentDefinitionId),\n map(documentDefinitionId => [...Array(documentDefinitionId.version).keys()].map(v => v + 1)),\n map(versions =>\n versions.map(\n version =>\n ({\n documentDefinitionVersion: version,\n content: version.toString(),\n selected: false,\n }) as ListItem\n )\n )\n );\n public readonly patches$: Observable<Array<DocumentMigrationPatch>> =\n this.patchItems$.pipe(\n map(patchItems =>\n patchItems.map(\n patchItem =>\n ({\n source: patchItem.key,\n target: patchItem.value,\n }) as DocumentMigrationPatch\n )\n )\n );\n\n mappingValueChange(patches: MultiInputValues): void {\n this.patchItems$.next(patches);\n }\n\n checkPatches() {\n combineLatest([\n this.sourceDocumentDefinitionNameSelected$,\n this.sourceDocumentDefinitionVersionSelected$,\n this.targetDocumentDefinitionNameSelected$,\n this.targetDocumentDefinitionVersionSelected$,\n this.patches$,\n ])\n .pipe(\n take(1),\n map(\n ([\n documentDefinitionNameSource,\n documentDefinitionVersionSource,\n documentDefinitionNameTarget,\n documentDefinitionVersionTarget,\n patches,\n ]) =>\n ({\n documentDefinitionNameSource,\n documentDefinitionVersionSource,\n documentDefinitionNameTarget,\n documentDefinitionVersionTarget,\n patches,\n }) as DocumentMigrationConflictRequest\n ),\n switchMap(request =>\n this.caseMigrationService.getConflicts(request as DocumentMigrationConflictRequest)\n )\n )\n .subscribe(response => {\n this.errors$.next(\n response.errors.concat(\n response.conflicts.filter(c => !!c.error).map(c => c.source + ': ' + c.error)\n )\n );\n });\n }\n\n migrate() {\n combineLatest([\n this.sourceDocumentDefinitionNameSelected$,\n this.sourceDocumentDefinitionVersionSelected$,\n this.targetDocumentDefinitionNameSelected$,\n this.targetDocumentDefinitionVersionSelected$,\n this.patches$,\n ])\n .pipe(\n take(1),\n map(\n ([\n documentDefinitionNameSource,\n documentDefinitionVersionSource,\n documentDefinitionNameTarget,\n documentDefinitionVersionTarget,\n patches,\n ]) =>\n ({\n documentDefinitionNameSource,\n documentDefinitionVersionSource,\n documentDefinitionNameTarget,\n documentDefinitionVersionTarget,\n patches,\n }) as DocumentMigrationConflictRequest\n ),\n switchMap(request =>\n this.caseMigrationService.migrate(request as DocumentMigrationConflictRequest)\n )\n )\n .subscribe();\n }\n\n protected readonly CARBON_THEME = 'g10';\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\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n sourceDocumentDefinitionNameItems: sourceDocumentDefinitionNameItems$ | async,\n sourceDocumentDefinitionVersionItems: sourceDocumentDefinitionVersionItems$ | async,\n targetDocumentDefinitionNameItems: targetDocumentDefinitionNameItems$ | async,\n targetDocumentDefinitionVersionItems: targetDocumentDefinitionVersionItems$ | async,\n sourceDocumentDefinitionNameSelected: sourceDocumentDefinitionNameSelected$ | async,\n sourceDocumentDefinitionVersionSelected: sourceDocumentDefinitionVersionSelected$ | async,\n targetDocumentDefinitionNameSelected: targetDocumentDefinitionNameSelected$ | async,\n targetDocumentDefinitionVersionSelected: targetDocumentDefinitionVersionSelected$ | async,\n patchItems: patchItems$ | async,\n errors: errors$ | async,\n showConfirmationModal: showConfirmationModal$\n } as obs\"\n>\n <ng-container>\n <div class=\"pb-2\">\n <cds-notification\n [notificationObj]=\"{\n type: 'warning',\n title: 'caseMigration.warningBeta' | translate,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.caseDefinition' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.sourceDocumentDefinitionNameItems.isLoading\"\n (selected)=\"sourceDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n sourceDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"row m-0\">\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionName' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"targetDocumentDefinitionNameSelected$.next($event.item.documentDefinitionName)\"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionNameItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetDocumentDefinitionVersion' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetDocumentDefinitionNameItems.isLoading\"\n (selected)=\"\n targetDocumentDefinitionVersionSelected$.next($event.item.documentDefinitionVersion)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.targetDocumentDefinitionVersionItems || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2 pb-2\">\n <div class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.patches' | translate }}</h2>\n </div>\n </div>\n <valtimo-carbon-multi-input\n type=\"keyValue\"\n (valueChange)=\"mappingValueChange($event)\"\n [title]=\"' '\"\n [tooltip]=\"'caseMigration.patchTooltip' | translate\"\n [defaultValues]=\"[]\"\n [keyColumnTitle]=\"'caseMigration.patchSource' | translate\"\n [valueColumnTitle]=\"'caseMigration.patchTarget' | translate\"\n [fullWidth]=\"true\"\n ></valtimo-carbon-multi-input>\n </div>\n </ng-container>\n\n <ng-container>\n <div class=\"pt-2\">\n <div *ngIf=\"obs.errors?.length >= 1\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n <h2>{{ 'caseMigration.errors' | translate }}</h2>\n </div>\n </div>\n\n <div class=\"pb-2\" *ngFor=\"let error of obs.errors\">\n <cds-notification\n [notificationObj]=\"{\n type: 'error',\n title: error,\n showClose: false\n }\"\n >\n </cds-notification>\n </div>\n </div>\n </ng-container>\n\n <ng-container>\n <button\n class=\"mt-2 mb-2 mr-2\"\n cdsButton=\"secondary\"\n size=\"md\"\n (click)=\"checkPatches()\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.checkPatches' | translate }}\n </button>\n <button\n class=\"mt-2 mb-2 ml-2\"\n cdsButton=\"primary\"\n size=\"md\"\n (click)=\"showConfirmationModal$.next(true)\"\n [disabled]=\"\n !obs.sourceDocumentDefinitionNameSelected ||\n !obs.sourceDocumentDefinitionVersionSelected ||\n !obs.targetDocumentDefinitionNameSelected ||\n !obs.targetDocumentDefinitionVersionSelected\n \"\n >\n {{ 'caseMigration.migrate' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"watsonHealthStackedMove\" size=\"16\"></svg>\n </button>\n </ng-container>\n\n <valtimo-confirmation-modal\n [showModalSubject$]=\"obs.showConfirmationModal\"\n (confirmEvent)=\"migrate()\"\n (cancelEvent)=\"showConfirmationModal$.next(false)\"\n cancelButtonType=\"ghost\"\n confirmButtonTextTranslationKey=\"caseMigration.modalTitle\"\n titleTranslationKey=\"caseMigration.modalTitle\"\n contentTranslationKey=\"caseMigration.modalContent\"\n ></valtimo-confirmation-modal>\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 {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/config';\nimport {CaseMigrationComponent} from './components/case-migration-component/case-migration.component';\n\nconst routes: Routes = [\n {\n path: 'case-migration',\n component: CaseMigrationComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Case migration', roles: [ROLE_ADMIN]},\n },\n];\n\n@NgModule({\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class CaseMigrationRoutingModule {}\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 {CaseMigrationRoutingModule} from './case-migration-routing.module';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n CarbonMultiInputModule,\n ConfirmationModalModule,\n RenderInPageHeaderDirectiveModule,\n TooltipIconModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {CaseMigrationComponent} from './components/case-migration-component/case-migration.component';\nimport {\n ButtonModule,\n DropdownModule,\n IconModule,\n InputModule,\n NotificationModule,\n} from 'carbon-components-angular';\n\n@NgModule({\n declarations: [CaseMigrationComponent],\n imports: [\n CommonModule,\n CaseMigrationRoutingModule,\n ReactiveFormsModule,\n WidgetModule,\n FormsModule,\n TranslateModule,\n DropdownModule,\n RenderInPageHeaderDirectiveModule,\n InputModule,\n TooltipIconModule,\n ButtonModule,\n IconModule,\n CarbonMultiInputModule,\n ConfirmationModalModule,\n NotificationModule,\n ],\n})\nexport class CaseMigrationModule {}\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 case-migration\n */\n\nexport * from './lib/models';\nexport * from './lib/services';\nexport * from './lib/case-migration.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2.CaseMigrationService"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MAWU,oBAAoB,CAAA;IAG/B,WACU,CAAA,IAAgB,EACxB,aAA4B,EAAA;QADpB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;QAGxB,IAAI,CAAC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0B;YAC1B,mBAAmB;YACnB,YAAY;YACZ,WAAW;YACX,eAAe;YACf,cAAc;YACd,iCAAiC;YACjC,WAAW;YACX,iBAAiB;YACjB,YAAY;YACZ,UAAU;YACV,sBAAsB;YACtB,uBAAuB;YACvB,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGT,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBApB/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,0BAA0B;wBAC1B,mBAAmB;wBACnB,YAAY;wBACZ,WAAW;wBACX,eAAe;wBACf,cAAc;wBACd,iCAAiC;wBACjC,WAAW;wBACX,iBAAiB;wBACjB,YAAY;wBACZ,UAAU;wBACV,sBAAsB;wBACtB,uBAAuB;wBACvB,kBAAkB;AACnB,qBAAA;AACF,iBAAA,CAAA;;;ACxDD;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@valtimo/case-migration" />
5
+ export * from './public-api';
6
+ //# sourceMappingURL=valtimo-case-migration.d.ts.map
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/router";
4
+ export declare class CaseMigrationRoutingModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaseMigrationRoutingModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CaseMigrationRoutingModule, never, [typeof i1.CommonModule, typeof i2.RouterModule], [typeof i2.RouterModule]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<CaseMigrationRoutingModule>;
8
+ }
9
+ //# sourceMappingURL=case-migration-routing.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"case-migration-routing.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/case-migration/src/lib/case-migration-routing.module.ts"],"names":[],"mappings":";;;AAgCA,qBAIa,0BAA0B;yCAA1B,0BAA0B;0CAA1B,0BAA0B;0CAA1B,0BAA0B;CAAG"}
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/case-migration-component/case-migration.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "./case-migration-routing.module";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "@valtimo/components";
7
+ import * as i6 from "@ngx-translate/core";
8
+ import * as i7 from "carbon-components-angular";
9
+ export declare class CaseMigrationModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaseMigrationModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CaseMigrationModule, [typeof i1.CaseMigrationComponent], [typeof i2.CommonModule, typeof i3.CaseMigrationRoutingModule, typeof i4.ReactiveFormsModule, typeof i5.WidgetModule, typeof i4.FormsModule, typeof i6.TranslateModule, typeof i7.DropdownModule, typeof i5.RenderInPageHeaderDirectiveModule, typeof i7.InputModule, typeof i5.TooltipIconModule, typeof i7.ButtonModule, typeof i7.IconModule, typeof i5.CarbonMultiInputModule, typeof i5.ConfirmationModalModule, typeof i7.NotificationModule], never>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<CaseMigrationModule>;
13
+ }
14
+ //# sourceMappingURL=case-migration.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"case-migration.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/case-migration/src/lib/case-migration.module.ts"],"names":[],"mappings":";;;;;;;;AAqCA,qBAoBa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
@@ -0,0 +1,34 @@
1
+ import { DocumentDefinitionId, DocumentService } from '@valtimo/document';
2
+ import { MultiInputValues } from '@valtimo/components';
3
+ import { BehaviorSubject, Observable } from 'rxjs';
4
+ import { ListItem } from 'carbon-components-angular/dropdown';
5
+ import { DocumentMigrationPatch, LoadedValue } from '../../models';
6
+ import { CaseMigrationService } from '../../services';
7
+ import { IconService } from 'carbon-components-angular';
8
+ import * as i0 from "@angular/core";
9
+ export declare class CaseMigrationComponent {
10
+ private readonly documentService;
11
+ private readonly caseMigrationService;
12
+ private readonly iconService;
13
+ readonly sourceDocumentDefinitionNameSelected$: BehaviorSubject<string>;
14
+ readonly sourceDocumentDefinitionVersionSelected$: BehaviorSubject<number>;
15
+ readonly targetDocumentDefinitionNameSelected$: BehaviorSubject<string>;
16
+ readonly targetDocumentDefinitionVersionSelected$: BehaviorSubject<number>;
17
+ readonly patchItems$: BehaviorSubject<MultiInputValues>;
18
+ readonly errors$: BehaviorSubject<string[]>;
19
+ readonly showConfirmationModal$: BehaviorSubject<boolean>;
20
+ constructor(documentService: DocumentService, caseMigrationService: CaseMigrationService, iconService: IconService);
21
+ readonly documentDefinitionIds$: Observable<Array<DocumentDefinitionId>>;
22
+ readonly sourceDocumentDefinitionNameItems$: Observable<LoadedValue<Array<ListItem>>>;
23
+ readonly sourceDocumentDefinitionVersionItems$: Observable<Array<ListItem>>;
24
+ readonly targetDocumentDefinitionNameItems$: Observable<LoadedValue<Array<ListItem>>>;
25
+ readonly targetDocumentDefinitionVersionItems$: Observable<Array<ListItem>>;
26
+ readonly patches$: Observable<Array<DocumentMigrationPatch>>;
27
+ mappingValueChange(patches: MultiInputValues): void;
28
+ checkPatches(): void;
29
+ migrate(): void;
30
+ protected readonly CARBON_THEME = "g10";
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaseMigrationComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaseMigrationComponent, "valtimo-case-migration", never, {}, {}, never, never, false, never>;
33
+ }
34
+ //# sourceMappingURL=case-migration.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"case-migration.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtim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,SAAgB,qCAAqC,EAAE,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAiB9E;IACJ,SAAgB,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAW/D;IAEJ,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAInD,YAAY;IAuCZ,OAAO;IAiCP,SAAS,CAAC,QAAQ,CAAC,YAAY,SAAS;yCA3L7B,sBAAsB;2CAAtB,sBAAsB;CA4LlC"}
@@ -0,0 +1,27 @@
1
+ interface LoadedValue<T> {
2
+ isLoading: boolean;
3
+ value?: T;
4
+ }
5
+ interface DocumentMigrationConflictRequest {
6
+ documentDefinitionNameSource: string;
7
+ documentDefinitionVersionSource: number;
8
+ documentDefinitionNameTarget: string;
9
+ documentDefinitionVersionTarget: number;
10
+ patches: DocumentMigrationPatch[];
11
+ }
12
+ interface DocumentMigrationConflictResponse {
13
+ documentDefinitionNameSource: string;
14
+ documentDefinitionVersionSource: number;
15
+ documentDefinitionNameTarget: string;
16
+ documentDefinitionVersionTarget: number;
17
+ conflicts: DocumentMigrationPatch[];
18
+ errors: Array<string>;
19
+ documentCount: number;
20
+ }
21
+ interface DocumentMigrationPatch {
22
+ source: string;
23
+ target?: string;
24
+ error?: string;
25
+ }
26
+ export { LoadedValue, DocumentMigrationConflictRequest, DocumentMigrationConflictResponse, DocumentMigrationPatch, };
27
+ //# sourceMappingURL=case-migration.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"case-migration.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/case-migration/src/lib/models/case-migration.model.ts"],"names":[],"mappings":"AAgBA,UAAU,WAAW,CAAC,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,CAAC,CAAC;CACX;AAED,UAAU,gCAAgC;IACxC,4BAA4B,EAAE,MAAM,CAAC;IACrC,+BAA+B,EAAE,MAAM,CAAC;IACxC,4BAA4B,EAAE,MAAM,CAAC;IACrC,+BAA+B,EAAE,MAAM,CAAC;IACxC,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAED,UAAU,iCAAiC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,+BAA+B,EAAE,MAAM,CAAC;IACxC,4BAA4B,EAAE,MAAM,CAAC;IACrC,+BAA+B,EAAE,MAAM,CAAC;IACxC,SAAS,EAAE,sBAAsB,EAAE,CAAC;IACpC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,sBAAsB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,OAAO,EACL,WAAW,EACX,gCAAgC,EAChC,iCAAiC,EACjC,sBAAsB,GACvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './case-migration.model';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/case-migration/src/lib/models/index.ts"],"names":[],"mappings":"AAgBA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ConfigService } from '@valtimo/config';
3
+ import { Observable } from 'rxjs';
4
+ import { DocumentMigrationConflictRequest, DocumentMigrationConflictResponse } from '../models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CaseMigrationService {
7
+ private http;
8
+ private readonly valtimoEndpointUri;
9
+ constructor(http: HttpClient, configService: ConfigService);
10
+ getConflicts(request: DocumentMigrationConflictRequest): Observable<DocumentMigrationConflictResponse>;
11
+ migrate(request: DocumentMigrationConflictRequest): Observable<void>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaseMigrationService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<CaseMigrationService>;
14
+ }
15
+ //# sourceMappingURL=case-migration.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"case-migration.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/case-migration/src/lib/services/case-migration.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,gCAAgC,EAAE,iCAAiC,EAAC,MAAM,WAAW,CAAC;;AAE9F,qBAGa,oBAAoB;IAI7B,OAAO,CAAC,IAAI;IAHd,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAU;gBAGnC,IAAI,EAAE,UAAU,EACxB,aAAa,EAAE,aAAa;IAKvB,YAAY,CACjB,OAAO,EAAE,gCAAgC,GACxC,UAAU,CAAC,iCAAiC,CAAC;IAOzC,OAAO,CAAC,OAAO,EAAE,gCAAgC,GAAG,UAAU,CAAC,IAAI,CAAC;yCAnBhE,oBAAoB;6CAApB,oBAAoB;CAyBhC"}
@@ -0,0 +1,2 @@
1
+ export * from './case-migration.service';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/case-migration/src/lib/services/index.ts"],"names":[],"mappings":"AAgBA,cAAc,0BAA0B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@valtimo/case-migration",
3
+ "license": "EUPL-1.2",
4
+ "version": "12.0.0",
5
+ "peerDependencies": {
6
+ "@angular/common": "^17.2.2",
7
+ "@angular/core": "^17.2.2"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "2.6.2"
11
+ },
12
+ "module": "fesm2022/valtimo-case-migration.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "esm2022": "./esm2022/valtimo-case-migration.mjs",
21
+ "esm": "./esm2022/valtimo-case-migration.mjs",
22
+ "default": "./fesm2022/valtimo-case-migration.mjs"
23
+ }
24
+ },
25
+ "sideEffects": false
26
+ }
@@ -0,0 +1,4 @@
1
+ export * from './lib/models';
2
+ export * from './lib/services';
3
+ export * from './lib/case-migration.module';
4
+ //# sourceMappingURL=public-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/case-migration/src/public-api.ts"],"names":[],"mappings":"AAoBA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-case-migration.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/case-migration/src/valtimo-case-migration.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}