@valtimo/case-migration 12.14.1 → 13.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +1,26 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Component, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common/http';
4
- import * as i2 from '@valtimo/config';
5
- import { ROLE_ADMIN } from '@valtimo/config';
4
+ import * as i2 from '@valtimo/shared';
5
+ import { ROLE_ADMIN } from '@valtimo/shared';
6
6
  import * as i1$2 from '@angular/router';
7
7
  import { RouterModule } from '@angular/router';
8
- import * as i4 from '@angular/common';
8
+ import * as i6 from '@angular/common';
9
9
  import { CommonModule } from '@angular/common';
10
10
  import { AuthGuardService } from '@valtimo/security';
11
- import { BehaviorSubject, map, shareReplay, startWith, combineLatest, filter, take, switchMap } from 'rxjs';
11
+ import { BehaviorSubject, map, shareReplay, startWith, combineLatest, take, switchMap } from 'rxjs';
12
12
  import { WatsonHealthStackedMove16 } from '@carbon/icons';
13
13
  import * as i1$1 from '@valtimo/document';
14
14
  import * as i3 from 'carbon-components-angular';
15
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';
16
+ import * as i5 from '@ngx-translate/core';
19
17
  import { TranslateModule } from '@ngx-translate/core';
18
+ import * as i7 from '@valtimo/components';
19
+ import { WidgetModule, RenderInPageHeaderDirective, TooltipIconModule, CarbonMultiInputModule, ConfirmationModalModule } from '@valtimo/components';
20
20
  import { ReactiveFormsModule, FormsModule } from '@angular/forms';
21
21
 
22
22
  /*
23
- * Copyright 2015-2024 Ritense BV, the Netherlands.
23
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
24
24
  *
25
25
  * Licensed under EUPL, Version 1.2 (the "License");
26
26
  * you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
36
36
  */
37
37
 
38
38
  /*
39
- * Copyright 2015-2024 Ritense BV, the Netherlands.
39
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
40
40
  *
41
41
  * Licensed under EUPL, Version 1.2 (the "License");
42
42
  * you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
52
52
  */
53
53
 
54
54
  /*
55
- * Copyright 2015-2024 Ritense BV, the Netherlands.
55
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
56
56
  *
57
57
  * Licensed under EUPL, Version 1.2 (the "License");
58
58
  * you may not use this file except in compliance with the License.
@@ -77,10 +77,10 @@ class CaseMigrationService {
77
77
  migrate(request) {
78
78
  return this.http.post(`${this.valtimoEndpointUri}management/v1/document-definition/migrate`, request);
79
79
  }
80
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", 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.12", ngImport: i0, type: CaseMigrationService, providedIn: 'root' }); }
80
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", 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: "19.2.14", ngImport: i0, type: CaseMigrationService, providedIn: 'root' }); }
82
82
  }
83
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationService, decorators: [{
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationService, decorators: [{
84
84
  type: Injectable,
85
85
  args: [{
86
86
  providedIn: 'root',
@@ -88,7 +88,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
88
88
  }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ConfigService }] });
89
89
 
90
90
  /*
91
- * Copyright 2015-2024 Ritense BV, the Netherlands.
91
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
92
92
  *
93
93
  * Licensed under EUPL, Version 1.2 (the "License");
94
94
  * you may not use this file except in compliance with the License.
@@ -104,7 +104,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
104
104
  */
105
105
 
106
106
  /*
107
- * Copyright 2015-2024 Ritense BV, the Netherlands.
107
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
108
108
  *
109
109
  * Licensed under EUPL, Version 1.2 (the "License");
110
110
  * you may not use this file except in compliance with the License.
@@ -119,41 +119,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
119
119
  * limitations under the License.
120
120
  */
121
121
  class CaseMigrationComponent {
122
- constructor(documentService, caseMigrationService, iconService) {
122
+ constructor(documentService, caseMigrationService, iconService, globalNotificationService, translateService) {
123
123
  this.documentService = documentService;
124
124
  this.caseMigrationService = caseMigrationService;
125
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);
126
+ this.globalNotificationService = globalNotificationService;
127
+ this.translateService = translateService;
128
+ this.sourceCaseDefinitionKeySelected$ = new BehaviorSubject(null);
129
+ this.sourceCaseDefinitionVersionTagSelected$ = new BehaviorSubject(null);
130
+ this.targetCaseDefinitionKeySelected$ = new BehaviorSubject(null);
131
+ this.targetCaseDefinitionVersionTagSelected$ = new BehaviorSubject(null);
130
132
  this.patchItems$ = new BehaviorSubject([]);
131
- this.errors$ = new BehaviorSubject([]);
133
+ this.errors$ = new BehaviorSubject(null);
132
134
  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,
135
+ this.caseDefinitions$ = this.documentService
136
+ .getCaseDefinitionsManagement({ sort: 'name,id.versionTag' })
137
+ .pipe(map(caseDefinitionsPage => caseDefinitionsPage.content), shareReplay(1));
138
+ this.sourceCaseDefinitionKeyItems$ = this.caseDefinitions$.pipe(map(caseDefinitions => [
139
+ ...new Map(caseDefinitions.map(item => [item.caseDefinitionKey, item])).values(),
140
+ ]), map(caseDefinitions => caseDefinitions.map(caseDefinition => ({
141
+ caseDefinitionKey: caseDefinition.caseDefinitionKey,
142
+ content: caseDefinition.name,
137
143
  selected: false,
138
144
  }))), map(items => ({
139
145
  value: items,
140
146
  isLoading: false,
141
147
  })), 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,
148
+ this.sourceCaseDefinitionVersionTagItems$ = combineLatest([this.sourceCaseDefinitionKeySelected$, this.caseDefinitions$]).pipe(map(([sourceCaseDefinitionKeySelected, caseDefinitions]) => caseDefinitions.filter(caseDefinition => caseDefinition.caseDefinitionKey === sourceCaseDefinitionKeySelected)), map(caseDefinitions => caseDefinitions.map(caseDefinition => caseDefinition.caseDefinitionVersionTag)), map(versions => versions.map(version => ({
149
+ caseDefinitionVersionTag: version,
144
150
  content: version.toString(),
145
151
  selected: false,
146
152
  }))));
147
- this.targetDocumentDefinitionNameItems$ = this.documentDefinitionIds$.pipe(map(documentDefinitionIds => documentDefinitionIds.map(documentDefinitionId => ({
148
- documentDefinitionName: documentDefinitionId.name,
149
- content: documentDefinitionId.name,
153
+ this.targetCaseDefinitionKeyItems$ = this.caseDefinitions$.pipe(map(caseDefinitions => [
154
+ ...new Map(caseDefinitions.map(item => [item.caseDefinitionKey, item])).values(),
155
+ ]), map(caseDefinitions => caseDefinitions.map(caseDefinition => ({
156
+ caseDefinitionKey: caseDefinition.caseDefinitionKey,
157
+ content: caseDefinition.name,
150
158
  selected: false,
151
159
  }))), map(items => ({
152
160
  value: items,
153
161
  isLoading: false,
154
162
  })), 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,
163
+ this.targetCaseDefinitionVersionTagItems$ = combineLatest([this.targetCaseDefinitionKeySelected$, this.caseDefinitions$]).pipe(map(([targetCaseDefinitionKeySelected, caseDefinitions]) => caseDefinitions.filter(caseDefinition => caseDefinition.caseDefinitionKey === targetCaseDefinitionKeySelected)), map(caseDefinitions => caseDefinitions.map(caseDefinition => caseDefinition.caseDefinitionVersionTag)), map(versions => versions.map(version => ({
164
+ caseDefinitionVersionTag: version,
157
165
  content: version.toString(),
158
166
  selected: false,
159
167
  }))));
@@ -168,18 +176,25 @@ class CaseMigrationComponent {
168
176
  this.patchItems$.next(patches);
169
177
  }
170
178
  checkPatches() {
179
+ this.errors$.next(null);
171
180
  combineLatest([
172
- this.sourceDocumentDefinitionNameSelected$,
173
- this.sourceDocumentDefinitionVersionSelected$,
174
- this.targetDocumentDefinitionNameSelected$,
175
- this.targetDocumentDefinitionVersionSelected$,
181
+ this.sourceCaseDefinitionKeySelected$,
182
+ this.sourceCaseDefinitionVersionTagSelected$,
183
+ this.targetCaseDefinitionKeySelected$,
184
+ this.targetCaseDefinitionVersionTagSelected$,
176
185
  this.patches$,
177
186
  ])
178
- .pipe(take(1), map(([documentDefinitionNameSource, documentDefinitionVersionSource, documentDefinitionNameTarget, documentDefinitionVersionTarget, patches,]) => ({
179
- documentDefinitionNameSource,
180
- documentDefinitionVersionSource,
181
- documentDefinitionNameTarget,
182
- documentDefinitionVersionTarget,
187
+ .pipe(take(1), map(([caseDefinitionKeySource, caseDefinitionVersionTagSource, caseDefinitionKeyTarget, caseDefinitionVersionTagTarget, patches,]) => ({
188
+ documentDefinitionNameSource: caseDefinitionKeySource,
189
+ caseDefinitionIdSource: {
190
+ key: caseDefinitionKeySource,
191
+ versionTag: caseDefinitionVersionTagSource,
192
+ },
193
+ documentDefinitionNameTarget: caseDefinitionKeyTarget,
194
+ caseDefinitionIdTarget: {
195
+ key: caseDefinitionKeyTarget,
196
+ versionTag: caseDefinitionVersionTagTarget,
197
+ },
183
198
  patches,
184
199
  })), switchMap(request => this.caseMigrationService.getConflicts(request)))
185
200
  .subscribe(response => {
@@ -187,32 +202,48 @@ class CaseMigrationComponent {
187
202
  });
188
203
  }
189
204
  migrate() {
205
+ this.errors$.next(null);
190
206
  combineLatest([
191
- this.sourceDocumentDefinitionNameSelected$,
192
- this.sourceDocumentDefinitionVersionSelected$,
193
- this.targetDocumentDefinitionNameSelected$,
194
- this.targetDocumentDefinitionVersionSelected$,
207
+ this.sourceCaseDefinitionKeySelected$,
208
+ this.sourceCaseDefinitionVersionTagSelected$,
209
+ this.targetCaseDefinitionKeySelected$,
210
+ this.targetCaseDefinitionVersionTagSelected$,
195
211
  this.patches$,
196
212
  ])
197
- .pipe(take(1), map(([documentDefinitionNameSource, documentDefinitionVersionSource, documentDefinitionNameTarget, documentDefinitionVersionTarget, patches,]) => ({
198
- documentDefinitionNameSource,
199
- documentDefinitionVersionSource,
200
- documentDefinitionNameTarget,
201
- documentDefinitionVersionTarget,
213
+ .pipe(take(1), map(([caseDefinitionKeySource, caseDefinitionVersionTagSource, caseDefinitionKeyTarget, caseDefinitionVersionTagTarget, patches,]) => ({
214
+ documentDefinitionNameSource: caseDefinitionKeySource,
215
+ caseDefinitionIdSource: {
216
+ key: caseDefinitionKeySource,
217
+ versionTag: caseDefinitionVersionTagSource,
218
+ },
219
+ documentDefinitionNameTarget: caseDefinitionKeyTarget,
220
+ caseDefinitionIdTarget: {
221
+ key: caseDefinitionKeyTarget,
222
+ versionTag: caseDefinitionVersionTagTarget,
223
+ },
202
224
  patches,
203
225
  })), switchMap(request => this.caseMigrationService.migrate(request)))
204
- .subscribe();
226
+ .subscribe({
227
+ next: () => {
228
+ this.errors$.next([]);
229
+ this.globalNotificationService.showToast({
230
+ title: this.translateService.instant('caseMigration.noErrors'),
231
+ type: 'success',
232
+ });
233
+ },
234
+ error: error => this.errors$.next([error.message]),
235
+ });
205
236
  }
206
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", 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.12", 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", "hideLabel", "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: ["addRowText", "addRowTranslationKey", "arbitraryAmountTitles", "arbitraryValueAmount", "defaultValues", "deleteRowText", "deleteRowTranslationKey", "disabled", "dropdownColumnTitle", "dropdownItems", "dropdownWidth", "fullWidth", "hideAddButton", "hideDeleteButton", "initialAmountOfRows", "keyColumnTitle", "margin", "maxRows", "minimumAmountOfRows", "name", "required", "title", "titleTranslationKey", "tooltip", "type", "valueColumnTitle", "valuePathSelectorDocumentDefinitionName", "valuePathSelectorPrefixes", "valuePathSelectorShowDocumentDefinitionSelector", "valuePathSelectorNotation", "keyColumnFlex", "dropdownColumnFlex", "valueColumnFlex"], 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" }] }); }
237
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationComponent, deps: [{ token: i1$1.DocumentService }, { token: CaseMigrationService }, { token: i3.IconService }, { token: i2.GlobalNotificationService }, { token: i5.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
238
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: CaseMigrationComponent, isStandalone: false, selector: "valtimo-case-migration", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n sourceCaseDefinitionKeyItems: sourceCaseDefinitionKeyItems$ | async,\n sourceCaseDefinitionVersionTagItems: sourceCaseDefinitionVersionTagItems$ | async,\n targetCaseDefinitionKeyItems: targetCaseDefinitionKeyItems$ | async,\n targetCaseDefinitionVersionTagItems: targetCaseDefinitionVersionTagItems$ | async,\n sourceCaseDefinitionKeySelected: sourceCaseDefinitionKeySelected$ | async,\n sourceCaseDefinitionVersionTagSelected: sourceCaseDefinitionVersionTagSelected$ | async,\n targetCaseDefinitionKeySelected: targetCaseDefinitionKeySelected$ | async,\n targetCaseDefinitionVersionTagSelected: targetCaseDefinitionVersionTagSelected$ | 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.sourceCaseDefinitionKey' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.sourceCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.sourceCaseDefinitionKeyItems.isLoading\"\n (selected)=\"sourceCaseDefinitionKeySelected$.next($event.item.caseDefinitionKey)\"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceCaseDefinitionKeyItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceCaseDefinitionVersionTag' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"\n sourceCaseDefinitionVersionTagSelected$.next($event.item.caseDefinitionVersionTag)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceCaseDefinitionVersionTagItems || []\"\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.targetCaseDefinitionKey' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"targetCaseDefinitionKeySelected$.next($event.item.caseDefinitionKey)\"\n >\n <cds-dropdown-list\n [items]=\"obs.targetCaseDefinitionKeyItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetCaseDefinitionVersionTag' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"\n targetCaseDefinitionVersionTagSelected$.next($event.item.caseDefinitionVersionTag)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.targetCaseDefinitionVersionTagItems || []\"\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 === 0\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n {{ 'caseMigration.noErrors' | translate }}\n </div>\n </div>\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.sourceCaseDefinitionKeySelected ||\n !obs.sourceCaseDefinitionVersionTagSelected ||\n !obs.targetCaseDefinitionKeySelected ||\n !obs.targetCaseDefinitionVersionTagSelected\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.sourceCaseDefinitionKeySelected ||\n !obs.sourceCaseDefinitionVersionTagSelected ||\n !obs.targetCaseDefinitionKeySelected ||\n !obs.targetCaseDefinitionVersionTagSelected\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: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "hideLabel", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "readonly", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp", "fluid"], 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: i7.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["addRowText", "addRowTranslationKey", "arbitraryAmountTitles", "arbitraryValueAmount", "defaultValues", "deleteRowText", "deleteRowTranslationKey", "disabled", "dropdownColumnTitle", "dropdownItems", "dropdownWidth", "fullWidth", "hideAddButton", "hideDeleteButton", "initialAmountOfRows", "keyColumnTitle", "margin", "maxRows", "minimumAmountOfRows", "name", "required", "title", "titleTranslationKey", "tooltip", "type", "valueColumnTitle", "valuePathSelectorCaseDefinitionKey", "valuePathSelectorPrefixes", "valuePathSelectorShowCaseDefinitionSelector", "valuePathSelectorNotation", "keyColumnFlex", "dropdownColumnFlex", "valueColumnFlex"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "component", type: i7.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: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
208
239
  }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationComponent, decorators: [{
240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationComponent, decorators: [{
210
241
  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 }] });
242
+ args: [{ standalone: false, selector: 'valtimo-case-migration', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n class=\"case-count-configuration-form\"\n *ngIf=\"{\n sourceCaseDefinitionKeyItems: sourceCaseDefinitionKeyItems$ | async,\n sourceCaseDefinitionVersionTagItems: sourceCaseDefinitionVersionTagItems$ | async,\n targetCaseDefinitionKeyItems: targetCaseDefinitionKeyItems$ | async,\n targetCaseDefinitionVersionTagItems: targetCaseDefinitionVersionTagItems$ | async,\n sourceCaseDefinitionKeySelected: sourceCaseDefinitionKeySelected$ | async,\n sourceCaseDefinitionVersionTagSelected: sourceCaseDefinitionVersionTagSelected$ | async,\n targetCaseDefinitionKeySelected: targetCaseDefinitionKeySelected$ | async,\n targetCaseDefinitionVersionTagSelected: targetCaseDefinitionVersionTagSelected$ | 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.sourceCaseDefinitionKey' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.sourceCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.sourceCaseDefinitionKeyItems.isLoading\"\n (selected)=\"sourceCaseDefinitionKeySelected$.next($event.item.caseDefinitionKey)\"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceCaseDefinitionKeyItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.sourceCaseDefinitionVersionTag' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"\n sourceCaseDefinitionVersionTagSelected$.next($event.item.caseDefinitionVersionTag)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.sourceCaseDefinitionVersionTagItems || []\"\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.targetCaseDefinitionKey' | translate\"\n [style.width.px]=\"350\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"targetCaseDefinitionKeySelected$.next($event.item.caseDefinitionKey)\"\n >\n <cds-dropdown-list\n [items]=\"obs.targetCaseDefinitionKeyItems.value || []\"\n ></cds-dropdown-list>\n </cds-dropdown>\n <cds-dropdown\n class=\"pr-2 pb-2\"\n [label]=\"'caseMigration.targetCaseDefinitionVersionTag' | translate\"\n [style.width.px]=\"300\"\n [disabled]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n [dropUp]=\"false\"\n [skeleton]=\"obs.targetCaseDefinitionKeyItems.isLoading\"\n (selected)=\"\n targetCaseDefinitionVersionTagSelected$.next($event.item.caseDefinitionVersionTag)\n \"\n >\n <cds-dropdown-list\n [items]=\"obs.targetCaseDefinitionVersionTagItems || []\"\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 === 0\" class=\"input-group mt-4 mb-2 align-items-center\">\n <div>\n {{ 'caseMigration.noErrors' | translate }}\n </div>\n </div>\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.sourceCaseDefinitionKeySelected ||\n !obs.sourceCaseDefinitionVersionTagSelected ||\n !obs.targetCaseDefinitionKeySelected ||\n !obs.targetCaseDefinitionVersionTagSelected\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.sourceCaseDefinitionKeySelected ||\n !obs.sourceCaseDefinitionVersionTagSelected ||\n !obs.targetCaseDefinitionKeySelected ||\n !obs.targetCaseDefinitionVersionTagSelected\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" }]
243
+ }], ctorParameters: () => [{ type: i1$1.DocumentService }, { type: CaseMigrationService }, { type: i3.IconService }, { type: i2.GlobalNotificationService }, { type: i5.TranslateService }] });
213
244
 
214
245
  /*
215
- * Copyright 2015-2024 Ritense BV, the Netherlands.
246
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
216
247
  *
217
248
  * Licensed under EUPL, Version 1.2 (the "License");
218
249
  * you may not use this file except in compliance with the License.
@@ -235,11 +266,11 @@ const routes = [
235
266
  },
236
267
  ];
237
268
  class CaseMigrationRoutingModule {
238
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
239
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationRoutingModule, imports: [CommonModule, i1$2.RouterModule], exports: [RouterModule] }); }
240
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
269
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
270
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationRoutingModule, imports: [CommonModule, i1$2.RouterModule], exports: [RouterModule] }); }
271
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
241
272
  }
242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationRoutingModule, decorators: [{
273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationRoutingModule, decorators: [{
243
274
  type: NgModule,
244
275
  args: [{
245
276
  imports: [CommonModule, RouterModule.forChild(routes)],
@@ -248,7 +279,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
248
279
  }] });
249
280
 
250
281
  /*
251
- * Copyright 2015-2024 Ritense BV, the Netherlands.
282
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
252
283
  *
253
284
  * Licensed under EUPL, Version 1.2 (the "License");
254
285
  * you may not use this file except in compliance with the License.
@@ -263,15 +294,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
263
294
  * limitations under the License.
264
295
  */
265
296
  class CaseMigrationModule {
266
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
267
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationModule, declarations: [CaseMigrationComponent], imports: [CommonModule,
297
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
298
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationModule, declarations: [CaseMigrationComponent], imports: [CommonModule,
268
299
  CaseMigrationRoutingModule,
269
300
  ReactiveFormsModule,
270
301
  WidgetModule,
271
302
  FormsModule,
272
303
  TranslateModule,
273
304
  DropdownModule,
274
- RenderInPageHeaderDirectiveModule,
305
+ RenderInPageHeaderDirective,
275
306
  InputModule,
276
307
  TooltipIconModule,
277
308
  ButtonModule,
@@ -279,14 +310,13 @@ class CaseMigrationModule {
279
310
  CarbonMultiInputModule,
280
311
  ConfirmationModalModule,
281
312
  NotificationModule] }); }
282
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationModule, imports: [CommonModule,
313
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationModule, imports: [CommonModule,
283
314
  CaseMigrationRoutingModule,
284
315
  ReactiveFormsModule,
285
316
  WidgetModule,
286
317
  FormsModule,
287
318
  TranslateModule,
288
319
  DropdownModule,
289
- RenderInPageHeaderDirectiveModule,
290
320
  InputModule,
291
321
  TooltipIconModule,
292
322
  ButtonModule,
@@ -295,7 +325,7 @@ class CaseMigrationModule {
295
325
  ConfirmationModalModule,
296
326
  NotificationModule] }); }
297
327
  }
298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CaseMigrationModule, decorators: [{
328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: CaseMigrationModule, decorators: [{
299
329
  type: NgModule,
300
330
  args: [{
301
331
  declarations: [CaseMigrationComponent],
@@ -307,7 +337,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
307
337
  FormsModule,
308
338
  TranslateModule,
309
339
  DropdownModule,
310
- RenderInPageHeaderDirectiveModule,
340
+ RenderInPageHeaderDirective,
311
341
  InputModule,
312
342
  TooltipIconModule,
313
343
  ButtonModule,
@@ -320,7 +350,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
320
350
  }] });
321
351
 
322
352
  /*
323
- * Copyright 2015-2024 Ritense BV, the Netherlands.
353
+ * Copyright 2015-2025 Ritense BV, the Netherlands.
324
354
  *
325
355
  * Licensed under EUPL, Version 1.2 (the "License");
326
356
  * you may not use this file except in compliance with the License.