@valtimo-plugins/parent-child-plugin 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,18 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Output, Input, Component, NgModule } from '@angular/core';
2
+ import { EventEmitter, Output, Input, Component, inject, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i3 from '@valtimo/plugin';
6
6
  import { PluginTranslatePipeModule } from '@valtimo/plugin';
7
+ import * as i3$1 from '@angular/router';
8
+ import { ActivatedRoute, Router, RouterModule } from '@angular/router';
7
9
  import * as i2$1 from 'carbon-components-angular';
8
- import { ButtonModule, CheckboxModule, InputModule as InputModule$1 } from 'carbon-components-angular';
10
+ import { PaginationModel, ButtonModule, CheckboxModule, InputModule as InputModule$1, PaginationModule } from 'carbon-components-angular';
9
11
  import * as i2 from '@valtimo/components';
10
12
  import { FormModule, InputModule, CarbonMultiInputModule } from '@valtimo/components';
11
- import { BehaviorSubject, combineLatest, take, switchMap, of, map, Subscription } from 'rxjs';
13
+ import { BehaviorSubject, combineLatest, take, switchMap, of, map, Subscription, tap, shareReplay, forkJoin } from 'rxjs';
14
+ import { DocumentService } from '@valtimo/document';
15
+ import { CUSTOM_WIDGET_TOKEN } from '@valtimo/layout';
12
16
 
13
17
  /*
14
18
  * Copyright 2026 Ritense BV, the Netherlands.
@@ -330,6 +334,95 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
330
334
  type: Output
331
335
  }] } });
332
336
 
337
+ /*
338
+ * Copyright 2026 Ritense BV, the Netherlands.
339
+ *
340
+ * Licensed under EUPL, Version 1.2 (the "License");
341
+ * you may not use this file except in compliance with the License.
342
+ * You may obtain a copy of the License at
343
+ *
344
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
345
+ *
346
+ * Unless required by applicable law or agreed to in writing, software
347
+ * distributed under the License is distributed on an "AS IS" basis,
348
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
349
+ * See the License for the specific language governing permissions and
350
+ * limitations under the License.
351
+ */
352
+ /**
353
+ * Custom case widget listing the CHILD documents of the case being viewed, one row per child.
354
+ * Configure it in a case widget tab as type "custom" with componentKey "parent-children-list"; every
355
+ * componentValue maps a column title to a "doc:" expression on the child document, e.g. {"1. Name": "doc:/name"};
356
+ * the optional number prefix sets the column order and is not shown.
357
+ */
358
+ class ParentChildrenListComponent {
359
+ constructor() {
360
+ this.documentService = inject(DocumentService);
361
+ this.paginationModel = new PaginationModel(); // starts at page 1 with 10 rows per page
362
+ this.page$ = new BehaviorSubject(undefined);
363
+ // Custom widgets do not get the document ID as input, so it is read from the case route.
364
+ this.childIds$ = inject(ActivatedRoute).paramMap.pipe(map(params => params.get("documentId")), switchMap(documentId => (documentId ? this.documentService.getDocument(documentId) : of(null))),
365
+ // The Valtimo model types relations as string[], the API returns {id, relationType} objects.
366
+ map(parent => (parent?.relations ?? [])
367
+ .filter(relation => relation.relationType === "CHILD")
368
+ .map(relation => relation.id)), tap(childIds => (this.paginationModel.totalDataLength = childIds.length)), shareReplay(1));
369
+ this.rows$ = combineLatest([this.childIds$, this.page$]).pipe(switchMap(([childIds]) => {
370
+ const { currentPage, pageLength = 10 } = this.paginationModel;
371
+ const pageIds = childIds.slice((currentPage - 1) * pageLength, currentPage * pageLength);
372
+ // shortcut: one request per child on the current page; add a backend endpoint if pages get large.
373
+ return pageIds.length ? forkJoin(pageIds.map(id => this.documentService.getDocument(id))) : of([]);
374
+ }), map(children => children.map(child => ({
375
+ link: ["/cases", child.definitionId?.blueprintId?.blueprintKey ?? "", "document", child.id],
376
+ values: this.columns.map(column => this.display(child.content, column.expression)),
377
+ }))));
378
+ this.router = inject(Router);
379
+ }
380
+ // Valtimo stores componentValue as Postgres JSONB, which reorders keys; an optional "1. " key prefix sets the order.
381
+ get columns() {
382
+ const componentValue = (this.widgetConfiguration?.properties?.componentValue ?? {});
383
+ return Object.entries(componentValue)
384
+ .map(([key, expression]) => {
385
+ const match = key.match(/^(\d+)\.\s*(.*)$/);
386
+ return { order: match ? Number(match[1]) : Number.MAX_SAFE_INTEGER, title: match ? match[2] : key, expression };
387
+ })
388
+ .sort((a, b) => a.order - b.order);
389
+ }
390
+ get titles() {
391
+ return this.columns.map(column => column.title);
392
+ }
393
+ // Carbon emits selectPage for page changes and (with page 1) after a page size change.
394
+ selectPage(page) {
395
+ this.paginationModel.currentPage = page;
396
+ this.page$.next();
397
+ }
398
+ open(row) {
399
+ window.open(this.router.serializeUrl(this.router.createUrlTree(row.link)), "_blank", "noopener");
400
+ }
401
+ display(content, expression) {
402
+ if (!expression?.startsWith("doc:"))
403
+ return "";
404
+ const path = expression.substring("doc:".length);
405
+ // Like Valtimo's doc: resolver, accept a JSON pointer (doc:/a/b) or a dotted path (doc:a.b).
406
+ const pointer = path.startsWith("/") ? path : "/" + path.replace(/\./g, "/");
407
+ const value = pointer
408
+ .split("/")
409
+ .slice(1)
410
+ .map(part => part.replace(/~1/g, "/").replace(/~0/g, "~"))
411
+ .reduce((node, key) => node?.[key], content);
412
+ if (value === null || value === undefined)
413
+ return "";
414
+ return Array.isArray(value) ? value.join(", ") : typeof value === "object" ? JSON.stringify(value) : String(value);
415
+ }
416
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildrenListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
417
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: ParentChildrenListComponent, isStandalone: false, selector: "valtimo-parent-children-list", inputs: { widgetConfiguration: "widgetConfiguration" }, ngImport: i0, template: "<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<table class=\"cds--data-table cds--data-table--sm\" style=\"width: 100%\">\n <thead>\n <tr>\n <th *ngFor=\"let title of titles\" scope=\"col\">\n <div class=\"cds--table-header-label\">{{ title }}</div>\n </th>\n <th scope=\"col\"><span class=\"cds--visually-hidden\">Link</span></th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"rows$ | async as rows; else loading\">\n <tr\n *ngFor=\"let row of rows\"\n role=\"link\"\n tabindex=\"0\"\n style=\"cursor: pointer\"\n (click)=\"open(row)\"\n (keydown.enter)=\"open(row)\"\n >\n <td *ngFor=\"let value of row.values\">{{ value }}</td>\n <td style=\"width: 2rem; text-align: right\">\n <a\n [routerLink]=\"row.link\"\n target=\"_blank\"\n rel=\"noopener\"\n aria-label=\"Open in new tab\"\n title=\"Open in new tab\"\n tabindex=\"-1\"\n (click)=\"$event.stopPropagation()\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" width=\"16\" height=\"16\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z\" />\n </svg>\n </a>\n </td>\n </tr>\n <tr *ngIf=\"rows.length === 0\">\n <td [attr.colspan]=\"titles.length + 1\">-</td>\n </tr>\n </ng-container>\n <ng-template #loading>\n <tr>\n <td [attr.colspan]=\"titles.length + 1\">\u2026</td>\n </tr>\n </ng-template>\n </tbody>\n</table>\n\n<cds-pagination\n *ngIf=\"paginationModel.totalDataLength > 0\"\n [model]=\"paginationModel\"\n [itemsPerPageOptions]=\"[10, 20, 50]\"\n (selectPage)=\"selectPage($event)\"\n></cds-pagination>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.Pagination, selector: "cds-pagination, ibm-pagination", inputs: ["skeleton", "model", "disabled", "pageInputDisabled", "showPageInput", "pagesUnknown", "pageSelectThreshold", "translations", "itemsPerPageOptions"], outputs: ["selectPage"] }, { kind: "directive", type: i3$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
418
+ }
419
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildrenListComponent, decorators: [{
420
+ type: Component,
421
+ args: [{ standalone: false, selector: "valtimo-parent-children-list", template: "<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<table class=\"cds--data-table cds--data-table--sm\" style=\"width: 100%\">\n <thead>\n <tr>\n <th *ngFor=\"let title of titles\" scope=\"col\">\n <div class=\"cds--table-header-label\">{{ title }}</div>\n </th>\n <th scope=\"col\"><span class=\"cds--visually-hidden\">Link</span></th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"rows$ | async as rows; else loading\">\n <tr\n *ngFor=\"let row of rows\"\n role=\"link\"\n tabindex=\"0\"\n style=\"cursor: pointer\"\n (click)=\"open(row)\"\n (keydown.enter)=\"open(row)\"\n >\n <td *ngFor=\"let value of row.values\">{{ value }}</td>\n <td style=\"width: 2rem; text-align: right\">\n <a\n [routerLink]=\"row.link\"\n target=\"_blank\"\n rel=\"noopener\"\n aria-label=\"Open in new tab\"\n title=\"Open in new tab\"\n tabindex=\"-1\"\n (click)=\"$event.stopPropagation()\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" width=\"16\" height=\"16\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z\" />\n </svg>\n </a>\n </td>\n </tr>\n <tr *ngIf=\"rows.length === 0\">\n <td [attr.colspan]=\"titles.length + 1\">-</td>\n </tr>\n </ng-container>\n <ng-template #loading>\n <tr>\n <td [attr.colspan]=\"titles.length + 1\">\u2026</td>\n </tr>\n </ng-template>\n </tbody>\n</table>\n\n<cds-pagination\n *ngIf=\"paginationModel.totalDataLength > 0\"\n [model]=\"paginationModel\"\n [itemsPerPageOptions]=\"[10, 20, 50]\"\n (selectPage)=\"selectPage($event)\"\n></cds-pagination>\n" }]
422
+ }], propDecorators: { widgetConfiguration: [{
423
+ type: Input
424
+ }] } });
425
+
333
426
  /*
334
427
  * Copyright 2026 Ritense BV, the Netherlands.
335
428
  *
@@ -350,11 +443,18 @@ class ParentChildPluginModule {
350
443
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, declarations: [ParentChildPluginConfigurationComponent,
351
444
  ParentChildActionConfigurationComponent,
352
445
  SyncToChildrenConfigurationComponent,
353
- SyncToParentConfigurationComponent], imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1], exports: [ParentChildPluginConfigurationComponent,
446
+ SyncToParentConfigurationComponent,
447
+ ParentChildrenListComponent], imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1, PaginationModule, RouterModule], exports: [ParentChildPluginConfigurationComponent,
354
448
  ParentChildActionConfigurationComponent,
355
449
  SyncToChildrenConfigurationComponent,
356
- SyncToParentConfigurationComponent] }); }
357
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1] }); }
450
+ SyncToParentConfigurationComponent,
451
+ ParentChildrenListComponent] }); }
452
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, providers: [
453
+ {
454
+ provide: CUSTOM_WIDGET_TOKEN,
455
+ useValue: { "parent-children-list": ParentChildrenListComponent },
456
+ },
457
+ ], imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1, PaginationModule, RouterModule] }); }
358
458
  }
359
459
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, decorators: [{
360
460
  type: NgModule,
@@ -364,14 +464,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
364
464
  ParentChildActionConfigurationComponent,
365
465
  SyncToChildrenConfigurationComponent,
366
466
  SyncToParentConfigurationComponent,
467
+ ParentChildrenListComponent,
367
468
  ],
368
- imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1],
469
+ imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1, PaginationModule, RouterModule],
369
470
  exports: [
370
471
  ParentChildPluginConfigurationComponent,
371
472
  ParentChildActionConfigurationComponent,
372
473
  SyncToChildrenConfigurationComponent,
373
474
  SyncToParentConfigurationComponent,
475
+ ParentChildrenListComponent,
374
476
  ],
477
+ providers: [
478
+ {
479
+ provide: CUSTOM_WIDGET_TOKEN,
480
+ useValue: { "parent-children-list": ParentChildrenListComponent },
481
+ },
482
+ ]
375
483
  }]
376
484
  }] });
377
485
 
@@ -494,10 +602,11 @@ const parentChildPluginSpecification = {
494
602
  /*
495
603
  * Public API Surface of parent-child-plugin
496
604
  */
605
+ const PARENT_CHILDREN_LIST_WIDGET_KEY = 'parent-children-list';
497
606
 
498
607
  /**
499
608
  * Generated bundle index. Do not edit.
500
609
  */
501
610
 
502
- export { ParentChildActionConfigurationComponent, ParentChildPluginConfigurationComponent, ParentChildPluginModule, SyncToChildrenConfigurationComponent, SyncToParentConfigurationComponent, parentChildPluginSpecification };
611
+ export { PARENT_CHILDREN_LIST_WIDGET_KEY, ParentChildActionConfigurationComponent, ParentChildPluginConfigurationComponent, ParentChildPluginModule, ParentChildrenListComponent, SyncToChildrenConfigurationComponent, SyncToParentConfigurationComponent, parentChildPluginSpecification };
503
612
  //# sourceMappingURL=valtimo-plugins-parent-child-plugin.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"valtimo-plugins-parent-child-plugin.mjs","sources":["../../src/lib/plugins/parent-child-plugin/models/config.ts","../../src/lib/plugins/parent-child-plugin/models/index.ts","../../src/lib/plugins/parent-child-plugin/components/parent-child-plugin-configuration/parent-child-plugin-configuration.component.ts","../../src/lib/plugins/parent-child-plugin/components/parent-child-plugin-configuration/parent-child-plugin-configuration.component.html","../../src/lib/plugins/parent-child-plugin/components/parent-child-action-configuration/parent-child-action-configuration.component.ts","../../src/lib/plugins/parent-child-plugin/components/parent-child-action-configuration/parent-child-action-configuration.component.html","../../src/lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component.ts","../../src/lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component.html","../../src/lib/plugins/parent-child-plugin/components/sync-to-parent-configuration/sync-to-parent-configuration.component.ts","../../src/lib/plugins/parent-child-plugin/components/sync-to-parent-configuration/sync-to-parent-configuration.component.html","../../src/lib/plugins/parent-child-plugin/parent-child-plugin-module.ts","../../src/lib/plugins/parent-child-plugin/assets/parent-child-plugin-logo.ts","../../src/lib/plugins/parent-child-plugin/assets/index.ts","../../src/lib/plugins/parent-child-plugin/parent-child-plugin.specification.ts","../../src/public_api.ts","../../src/valtimo-plugins-parent-child-plugin.ts"],"sourcesContent":["/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {PluginConfigurationData} from \"@valtimo/plugin\";\n\ninterface ParentChildPluginConfig extends PluginConfigurationData {\n}\n\ninterface ParentChildActionConfig {\n parentDocumentId: string;\n}\n\ninterface NodeMapping {\n source: string;\n target: string;\n merge?: boolean;\n}\n\ninterface SyncToChildrenConfig {\n mappings: NodeMapping[];\n}\n\ninterface SyncToParentConfig {\n mappings: NodeMapping[];\n}\n\nexport {ParentChildPluginConfig, ParentChildActionConfig, NodeMapping, SyncToChildrenConfig, SyncToParentConfig};\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from \"./config\";\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {PluginConfigurationComponent, PluginConfigurationData} from \"@valtimo/plugin\";\nimport {BehaviorSubject, combineLatest, Observable, Subscription, take} from \"rxjs\";\nimport {ParentChildPluginConfig} from \"../../models\";\n\n@Component({\n standalone: false,\n selector: \"valtimo-parent-child-plugin-configuration\",\n templateUrl: \"./parent-child-plugin-configuration.component.html\",\n})\nexport class ParentChildPluginConfigurationComponent implements PluginConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<ParentChildPluginConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<PluginConfigurationData> = new EventEmitter<PluginConfigurationData>();\n\n private saveSubscription!: Subscription;\n private readonly formValue$ = new BehaviorSubject<ParentChildPluginConfig | null>(null);\n private readonly valid$ = new BehaviorSubject<boolean>(false);\n\n ngOnInit(): void {\n this.openSaveSubscription();\n }\n\n ngOnDestroy() {\n this.saveSubscription?.unsubscribe();\n }\n\n formValueChange(formValue: ParentChildPluginConfig): void {\n this.formValue$.next(formValue);\n this.handleValid(formValue);\n }\n\n private handleValid(formValue: ParentChildPluginConfig): void {\n const valid = !!formValue.configurationTitle;\n this.valid$.next(valid);\n this.valid.emit(valid);\n }\n\n private openSaveSubscription(): void {\n this.saveSubscription = this.save$?.subscribe(() => {\n combineLatest([this.formValue$, this.valid$])\n .pipe(take(1))\n .subscribe(([formValue, valid]) => {\n if (valid) {\n this.configuration.emit(formValue!);\n }\n });\n });\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [widthPx]=\"350\"\n placeholder=\"Parent Child Plugin\"\n >\n </v-input>\n</v-form>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {FunctionConfigurationComponent, FunctionConfigurationData} from \"@valtimo/plugin\";\nimport {BehaviorSubject, combineLatest, Observable, Subscription, switchMap, take} from \"rxjs\";\nimport {ParentChildActionConfig} from \"../../models\";\n\n@Component({\n standalone: false,\n selector: \"valtimo-parent-child-action-configuration\",\n templateUrl: \"./parent-child-action-configuration.component.html\",\n})\nexport class ParentChildActionConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<ParentChildActionConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<FunctionConfigurationData> = new EventEmitter<FunctionConfigurationData>();\n\n private saveSubscription!: Subscription;\n private readonly formValue$ = new BehaviorSubject<ParentChildActionConfig | null>(null);\n private readonly valid$ = new BehaviorSubject<boolean>(false);\n\n public ngOnInit(): void {\n this.openSaveSubscription();\n }\n\n public ngOnDestroy() {\n this.saveSubscription?.unsubscribe();\n }\n\n public formValueChange(formValue: ParentChildActionConfig): void {\n this.formValue$.next(formValue);\n this.handleValid(formValue);\n }\n\n private handleValid(formValue: ParentChildActionConfig): void {\n const valid = !!formValue.parentDocumentId;\n this.valid$.next(valid);\n this.valid.emit(valid);\n }\n\n private openSaveSubscription(): void {\n this.saveSubscription = this.save$\n ?.pipe(\n switchMap(() => combineLatest([this.formValue$, this.valid$]).pipe(take(1)))\n )\n .subscribe(([formValue, valid]) => {\n if (valid) {\n this.configuration.emit(formValue!);\n }\n });\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<p style=\"margin-bottom: 1.5rem\">{{ 'actionDescription' | pluginTranslate: pluginId | async }}</p>\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"parentDocumentId\"\n [title]=\"'parentDocumentId' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.parentDocumentId\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [widthPx]=\"350\"\n >\n </v-input>\n</v-form>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {FunctionConfigurationComponent, FunctionConfigurationData} from \"@valtimo/plugin\";\nimport {MultiInputKeyValue, MultiInputOutput} from \"@valtimo/components\";\nimport {BehaviorSubject, combineLatest, map, Observable, of, Subscription, switchMap, take} from \"rxjs\";\nimport {SyncToChildrenConfig} from \"../../models\";\n\n@Component({\n standalone: false,\n selector: \"valtimo-sync-to-children-configuration\",\n templateUrl: \"./sync-to-children-configuration.component.html\",\n})\nexport class SyncToChildrenConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<SyncToChildrenConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<FunctionConfigurationData> = new EventEmitter<FunctionConfigurationData>();\n\n public prefillMappings$!: Observable<MultiInputKeyValue[]>;\n\n private saveSubscription!: Subscription;\n private readonly formValue$ = new BehaviorSubject<SyncToChildrenConfig | null>(null);\n private readonly valid$ = new BehaviorSubject<boolean>(false);\n\n public ngOnInit(): void {\n this.prefillMappings$ = (this.prefillConfiguration$ ?? of(null)).pipe(\n map(prefill => (prefill?.mappings ?? []).map(mapping => ({key: mapping.source, value: mapping.target})))\n );\n this.openSaveSubscription();\n }\n\n public ngOnDestroy() {\n this.saveSubscription?.unsubscribe();\n }\n\n public mappingsChange(values: MultiInputOutput): void {\n const formValue: SyncToChildrenConfig = {\n mappings: (values as MultiInputKeyValue[]).map(value => ({source: value.key ?? \"\", target: value.value ?? \"\"})),\n };\n this.formValue$.next(formValue);\n this.handleValid(formValue);\n }\n\n private handleValid(formValue: SyncToChildrenConfig): void {\n const isPointer = (path: string) => path.startsWith(\"/\");\n const valid =\n formValue.mappings.length > 0 &&\n formValue.mappings.every(mapping => isPointer(mapping.source) && isPointer(mapping.target));\n this.valid$.next(valid);\n this.valid.emit(valid);\n }\n\n private openSaveSubscription(): void {\n this.saveSubscription = this.save$\n ?.pipe(\n switchMap(() => combineLatest([this.formValue$, this.valid$]).pipe(take(1)))\n )\n .subscribe(([formValue, valid]) => {\n if (valid) {\n this.configuration.emit(formValue!);\n }\n });\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<p style=\"margin-bottom: 1.5rem\">{{ 'syncToChildrenDescription' | pluginTranslate: pluginId | async }}</p>\n\n<valtimo-carbon-multi-input\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillMappings$ | async\n } as obs\"\n type=\"keyValue\"\n name=\"mappings\"\n [title]=\"'mappings' | pluginTranslate: pluginId | async\"\n [keyColumnTitle]=\"'mappingSource' | pluginTranslate: pluginId | async\"\n [valueColumnTitle]=\"'mappingTarget' | pluginTranslate: pluginId | async\"\n [defaultValues]=\"obs.prefill\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [margin]=\"true\"\n (valueChange)=\"mappingsChange($event)\"\n></valtimo-carbon-multi-input>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {FunctionConfigurationComponent, FunctionConfigurationData} from \"@valtimo/plugin\";\nimport {Observable, of, Subscription, take} from \"rxjs\";\nimport {NodeMapping, SyncToParentConfig} from \"../../models\";\n\n// Own mapping rows instead of valtimo-carbon-multi-input, which has no checkbox column for merge.\n@Component({\n standalone: false,\n selector: \"valtimo-sync-to-parent-configuration\",\n templateUrl: \"./sync-to-parent-configuration.component.html\",\n})\nexport class SyncToParentConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<SyncToParentConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<FunctionConfigurationData> = new EventEmitter<FunctionConfigurationData>();\n\n public mappings: NodeMapping[] = [this.emptyMapping()];\n\n private readonly subscriptions = new Subscription();\n\n public ngOnInit(): void {\n this.subscriptions.add(\n (this.prefillConfiguration$ ?? of(null)).pipe(take(1)).subscribe(prefill => {\n if (prefill?.mappings?.length) {\n this.mappings = prefill.mappings.map(mapping => ({...mapping, merge: !!mapping.merge}));\n }\n this.emitValid();\n })\n );\n this.subscriptions.add(\n this.save$?.subscribe(() => {\n if (this.isValid()) {\n this.configuration.emit({mappings: this.mappings});\n }\n })\n );\n }\n\n public ngOnDestroy(): void {\n this.subscriptions.unsubscribe();\n }\n\n public change(index: number, change: Partial<NodeMapping>): void {\n this.mappings[index] = {...this.mappings[index], ...change};\n this.emitValid();\n }\n\n public add(): void {\n this.mappings = [...this.mappings, this.emptyMapping()];\n this.emitValid();\n }\n\n public remove(index: number): void {\n this.mappings = this.mappings.filter((_, i) => i !== index);\n this.emitValid();\n }\n\n private emitValid(): void {\n this.valid.emit(this.isValid());\n }\n\n private isValid(): boolean {\n const isPointer = (path: string) => path.startsWith(\"/\");\n return (\n this.mappings.length > 0 &&\n this.mappings.every(mapping => isPointer(mapping.source) && isPointer(mapping.target))\n );\n }\n\n private emptyMapping(): NodeMapping {\n return {source: \"\", target: \"\", merge: false};\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<p style=\"margin-bottom: 1.5rem\">{{ 'syncToParentDescription' | pluginTranslate: pluginId | async }}</p>\n\n<ng-container *ngIf=\"{disabled: disabled$ | async} as obs\">\n <cds-label>{{ 'mappings' | pluginTranslate: pluginId | async }}</cds-label>\n\n <div\n *ngFor=\"let mapping of mappings; index as i\"\n style=\"display: flex; gap: 1rem; align-items: flex-end; margin-bottom: 0.5rem\"\n >\n <div style=\"flex: 1\">\n <cds-label *ngIf=\"i === 0\">{{ 'parentMappingSource' | pluginTranslate: pluginId | async }}</cds-label>\n <input\n cdsText\n [attr.aria-label]=\"'parentMappingSource' | pluginTranslate: pluginId | async\"\n [value]=\"mapping.source\"\n [disabled]=\"obs.disabled\"\n (input)=\"change(i, {source: $any($event.target).value})\"\n />\n </div>\n\n <div style=\"flex: 1\">\n <cds-label *ngIf=\"i === 0\">{{ 'parentMappingTarget' | pluginTranslate: pluginId | async }}</cds-label>\n <input\n cdsText\n [attr.aria-label]=\"'parentMappingTarget' | pluginTranslate: pluginId | async\"\n [value]=\"mapping.target\"\n [disabled]=\"obs.disabled\"\n (input)=\"change(i, {target: $any($event.target).value})\"\n />\n </div>\n\n <cds-checkbox\n [checked]=\"mapping.merge\"\n [disabled]=\"obs.disabled\"\n (checkedChange)=\"change(i, {merge: $event})\"\n >\n {{ 'mappingMerge' | pluginTranslate: pluginId | async }}\n </cds-checkbox>\n\n <button\n cdsButton=\"danger--ghost\"\n type=\"button\"\n [disabled]=\"obs.disabled || mappings.length === 1\"\n (click)=\"remove(i)\"\n >\n {{ 'deleteMapping' | pluginTranslate: pluginId | async }}\n </button>\n </div>\n\n <button cdsButton=\"primary\" size=\"sm\" type=\"button\" [disabled]=\"obs.disabled\" (click)=\"add()\">\n {{ 'addMapping' | pluginTranslate: pluginId | async }}\n </button>\n</ng-container>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\nimport {PluginTranslatePipeModule} from \"@valtimo/plugin\";\nimport {ButtonModule, CheckboxModule, InputModule as CarbonInputModule} from \"carbon-components-angular\";\nimport {CarbonMultiInputModule, FormModule, InputModule as ValtimoInputModule} from \"@valtimo/components\";\nimport {ParentChildPluginConfigurationComponent} from \"./components/parent-child-plugin-configuration/parent-child-plugin-configuration.component\";\nimport {ParentChildActionConfigurationComponent} from \"./components/parent-child-action-configuration/parent-child-action-configuration.component\";\nimport {SyncToChildrenConfigurationComponent} from \"./components/sync-to-children-configuration/sync-to-children-configuration.component\";\nimport {SyncToParentConfigurationComponent} from \"./components/sync-to-parent-configuration/sync-to-parent-configuration.component\";\n\n@NgModule({\n declarations: [\n ParentChildPluginConfigurationComponent,\n ParentChildActionConfigurationComponent,\n SyncToChildrenConfigurationComponent,\n SyncToParentConfigurationComponent,\n ],\n imports: [CommonModule, PluginTranslatePipeModule, FormModule, ValtimoInputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, CarbonInputModule],\n exports: [\n ParentChildPluginConfigurationComponent,\n ParentChildActionConfigurationComponent,\n SyncToChildrenConfigurationComponent,\n SyncToParentConfigurationComponent,\n ],\n})\nexport class ParentChildPluginModule {\n}\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst PARENT_CHILD_PLUGIN_LOGO_BASE64 =\n \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDA1MGIyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTIiIGN5PSI1IiByPSIzIi8+PGxpbmUgeDE9IjEyIiB5MT0iOCIgeDI9IjEyIiB5Mj0iMTIiLz48bGluZSB4MT0iNyIgeTE9IjEyIiB4Mj0iMTciIHkyPSIxMiIvPjxsaW5lIHgxPSI3IiB5MT0iMTIiIHgyPSI3IiB5Mj0iMTYiLz48bGluZSB4MT0iMTciIHkxPSIxMiIgeDI9IjE3IiB5Mj0iMTYiLz48Y2lyY2xlIGN4PSI3IiBjeT0iMTkiIHI9IjIuNSIvPjxjaXJjbGUgY3g9IjE3IiBjeT0iMTkiIHI9IjIuNSIvPjwvc3ZnPg==\";\n\nexport {PARENT_CHILD_PLUGIN_LOGO_BASE64};\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from \"./parent-child-plugin-logo\";\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {PluginSpecification} from \"@valtimo/plugin\";\nimport {ParentChildPluginConfigurationComponent} from \"./components/parent-child-plugin-configuration/parent-child-plugin-configuration.component\";\nimport {PARENT_CHILD_PLUGIN_LOGO_BASE64} from \"./assets\";\nimport {ParentChildActionConfigurationComponent} from \"./components/parent-child-action-configuration/parent-child-action-configuration.component\";\nimport {SyncToChildrenConfigurationComponent} from \"./components/sync-to-children-configuration/sync-to-children-configuration.component\";\nimport {SyncToParentConfigurationComponent} from \"./components/sync-to-parent-configuration/sync-to-parent-configuration.component\";\n\nconst parentChildPluginSpecification: PluginSpecification = {\n pluginId: \"parent-child-plugin\",\n pluginConfigurationComponent: ParentChildPluginConfigurationComponent,\n pluginLogoBase64: PARENT_CHILD_PLUGIN_LOGO_BASE64,\n functionConfigurationComponents: {\n \"connect-parent\": ParentChildActionConfigurationComponent,\n \"sync-to-children\": SyncToChildrenConfigurationComponent,\n \"sync-to-parent\": SyncToParentConfigurationComponent,\n },\n pluginTranslations: {\n nl: {\n title: \"Parent Child Plugin\",\n \"connect-parent\": \"Koppel bovenliggend document\",\n description: \"Dit is een voorbeeld plugin die beschikt over een API call action.\",\n configurationTitle: \"Configuratienaam\",\n actionDescription: \"Deze actie koppelt het huidige document aan een bovenliggend document: het huidige document krijgt een PARENT relatie en het bovenliggend document krijgt een CHILD relatie.\",\n parentDocumentId: \"Document ID van bovenliggend document\",\n \"sync-to-children\": \"Synchroniseer naar onderliggende documenten\",\n syncToChildrenDescription: \"Deze actie kopieert de geconfigureerde onderdelen van het huidige document naar alle onderliggende (CHILD) documenten. Paden zijn JSON pointers, bijvoorbeeld /destination.\",\n mappings: \"Mapping\",\n mappingSource: \"Pad in bovenliggend document\",\n mappingTarget: \"Pad in onderliggend document\",\n \"sync-to-parent\": \"Synchroniseer naar bovenliggend document\",\n syncToParentDescription: \"Deze actie kopieert de geconfigureerde onderdelen van het huidige document naar het bovenliggende (PARENT) document. Paden zijn JSON pointers, bijvoorbeeld /destination. Met 'Lijst samenvoegen' wordt een lijst toegevoegd aan de bestaande lijst in het bovenliggende document (zonder dubbelen) in plaats van die te vervangen.\",\n parentMappingSource: \"Pad in onderliggend document\",\n parentMappingTarget: \"Pad in bovenliggend document\",\n mappingMerge: \"Lijst samenvoegen\",\n addMapping: \"Mapping toevoegen\",\n deleteMapping: \"Verwijderen\",\n },\n en: {\n title: \"Parent Child Plugin\",\n \"connect-parent\": \"Connect parent document\",\n description: \"This is a parent-child plugin demonstrating an API call action.\",\n configurationTitle: \"Configuration Name\",\n actionDescription: \"This action links the current document to a parent document: the current document gets a PARENT relation and the parent document gets a CHILD relation.\",\n parentDocumentId: \"Parent document ID\",\n \"sync-to-children\": \"Sync to child documents\",\n syncToChildrenDescription: \"This action copies the configured nodes of the current document into all of its child documents. Paths are JSON pointers, for example /destination.\",\n mappings: \"Mapping\",\n mappingSource: \"Path in parent document\",\n mappingTarget: \"Path in child document\",\n \"sync-to-parent\": \"Sync to parent document\",\n syncToParentDescription: \"This action copies the configured nodes of the current document into its parent document. Paths are JSON pointers, for example /destination. With 'Merge list', a list is added to the existing list in the parent document (without duplicates) instead of replacing it.\",\n parentMappingSource: \"Path in child document\",\n parentMappingTarget: \"Path in parent document\",\n mappingMerge: \"Merge list\",\n addMapping: \"Add mapping\",\n deleteMapping: \"Delete\",\n },\n },\n};\n\nexport {parentChildPluginSpecification};\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of parent-child-plugin\n */\n\nexport * from \"./lib/plugins/parent-child-plugin/models\";\nexport * from \"./lib/plugins/parent-child-plugin/parent-child-plugin-module\";\nexport * from \"./lib/plugins/parent-child-plugin/parent-child-plugin.specification\";\nexport * from \"./lib/plugins/parent-child-plugin/components/parent-child-plugin-configuration/parent-child-plugin-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/parent-child-action-configuration/parent-child-action-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/sync-to-parent-configuration/sync-to-parent-configuration.component\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i2","ValtimoInputModule","CarbonInputModule"],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MAYU,uCAAuC,CAAA;AALpD,IAAA,WAAA,GAAA;AAUY,QAAA,IAAA,CAAA,KAAK,GAA0B,IAAI,YAAY,EAAW;AAC1D,QAAA,IAAA,CAAA,aAAa,GAA0C,IAAI,YAAY,EAA2B;AAG3F,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,eAAe,CAAiC,IAAI,CAAC;AACtE,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAgC9D;IA9BC,QAAQ,GAAA;QACN,IAAI,CAAC,oBAAoB,EAAE;;IAG7B,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,gBAAgB,EAAE,WAAW,EAAE;;AAGtC,IAAA,eAAe,CAAC,SAAkC,EAAA;AAChD,QAAA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AAE,yBAAyB;AAC3C,YAAA,uBAAuB,EAAE,2QAA2Q;AACpS,YAAA,mBAAmB,EAAE,wBAAwB;AAC7C,YAAA,mBAAmB,EAAE,yBAAyB;AAC9C,YAAA,YAAY,EAAE,YAAY;AAC1B,YAAA,UAAU,EAAE,aAAa;AACzB,YAAA,aAAa,EAAE,QAAQ;AACxB,SAAA;AACF,KAAA;;;ACzEH;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
1
+ {"version":3,"file":"valtimo-plugins-parent-child-plugin.mjs","sources":["../../src/lib/plugins/parent-child-plugin/models/config.ts","../../src/lib/plugins/parent-child-plugin/models/index.ts","../../src/lib/plugins/parent-child-plugin/components/parent-child-plugin-configuration/parent-child-plugin-configuration.component.ts","../../src/lib/plugins/parent-child-plugin/components/parent-child-plugin-configuration/parent-child-plugin-configuration.component.html","../../src/lib/plugins/parent-child-plugin/components/parent-child-action-configuration/parent-child-action-configuration.component.ts","../../src/lib/plugins/parent-child-plugin/components/parent-child-action-configuration/parent-child-action-configuration.component.html","../../src/lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component.ts","../../src/lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component.html","../../src/lib/plugins/parent-child-plugin/components/sync-to-parent-configuration/sync-to-parent-configuration.component.ts","../../src/lib/plugins/parent-child-plugin/components/sync-to-parent-configuration/sync-to-parent-configuration.component.html","../../src/lib/plugins/parent-child-plugin/components/parent-children-list/parent-children-list.component.ts","../../src/lib/plugins/parent-child-plugin/components/parent-children-list/parent-children-list.component.html","../../src/lib/plugins/parent-child-plugin/parent-child-plugin-module.ts","../../src/lib/plugins/parent-child-plugin/assets/parent-child-plugin-logo.ts","../../src/lib/plugins/parent-child-plugin/assets/index.ts","../../src/lib/plugins/parent-child-plugin/parent-child-plugin.specification.ts","../../src/public_api.ts","../../src/valtimo-plugins-parent-child-plugin.ts"],"sourcesContent":["/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {PluginConfigurationData} from \"@valtimo/plugin\";\n\ninterface ParentChildPluginConfig extends PluginConfigurationData {\n}\n\ninterface ParentChildActionConfig {\n parentDocumentId: string;\n}\n\ninterface NodeMapping {\n source: string;\n target: string;\n merge?: boolean;\n}\n\ninterface SyncToChildrenConfig {\n mappings: NodeMapping[];\n}\n\ninterface SyncToParentConfig {\n mappings: NodeMapping[];\n}\n\nexport {ParentChildPluginConfig, ParentChildActionConfig, NodeMapping, SyncToChildrenConfig, SyncToParentConfig};\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from \"./config\";\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {PluginConfigurationComponent, PluginConfigurationData} from \"@valtimo/plugin\";\nimport {BehaviorSubject, combineLatest, Observable, Subscription, take} from \"rxjs\";\nimport {ParentChildPluginConfig} from \"../../models\";\n\n@Component({\n standalone: false,\n selector: \"valtimo-parent-child-plugin-configuration\",\n templateUrl: \"./parent-child-plugin-configuration.component.html\",\n})\nexport class ParentChildPluginConfigurationComponent implements PluginConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<ParentChildPluginConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<PluginConfigurationData> = new EventEmitter<PluginConfigurationData>();\n\n private saveSubscription!: Subscription;\n private readonly formValue$ = new BehaviorSubject<ParentChildPluginConfig | null>(null);\n private readonly valid$ = new BehaviorSubject<boolean>(false);\n\n ngOnInit(): void {\n this.openSaveSubscription();\n }\n\n ngOnDestroy() {\n this.saveSubscription?.unsubscribe();\n }\n\n formValueChange(formValue: ParentChildPluginConfig): void {\n this.formValue$.next(formValue);\n this.handleValid(formValue);\n }\n\n private handleValid(formValue: ParentChildPluginConfig): void {\n const valid = !!formValue.configurationTitle;\n this.valid$.next(valid);\n this.valid.emit(valid);\n }\n\n private openSaveSubscription(): void {\n this.saveSubscription = this.save$?.subscribe(() => {\n combineLatest([this.formValue$, this.valid$])\n .pipe(take(1))\n .subscribe(([formValue, valid]) => {\n if (valid) {\n this.configuration.emit(formValue!);\n }\n });\n });\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [widthPx]=\"350\"\n placeholder=\"Parent Child Plugin\"\n >\n </v-input>\n</v-form>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {FunctionConfigurationComponent, FunctionConfigurationData} from \"@valtimo/plugin\";\nimport {BehaviorSubject, combineLatest, Observable, Subscription, switchMap, take} from \"rxjs\";\nimport {ParentChildActionConfig} from \"../../models\";\n\n@Component({\n standalone: false,\n selector: \"valtimo-parent-child-action-configuration\",\n templateUrl: \"./parent-child-action-configuration.component.html\",\n})\nexport class ParentChildActionConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<ParentChildActionConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<FunctionConfigurationData> = new EventEmitter<FunctionConfigurationData>();\n\n private saveSubscription!: Subscription;\n private readonly formValue$ = new BehaviorSubject<ParentChildActionConfig | null>(null);\n private readonly valid$ = new BehaviorSubject<boolean>(false);\n\n public ngOnInit(): void {\n this.openSaveSubscription();\n }\n\n public ngOnDestroy() {\n this.saveSubscription?.unsubscribe();\n }\n\n public formValueChange(formValue: ParentChildActionConfig): void {\n this.formValue$.next(formValue);\n this.handleValid(formValue);\n }\n\n private handleValid(formValue: ParentChildActionConfig): void {\n const valid = !!formValue.parentDocumentId;\n this.valid$.next(valid);\n this.valid.emit(valid);\n }\n\n private openSaveSubscription(): void {\n this.saveSubscription = this.save$\n ?.pipe(\n switchMap(() => combineLatest([this.formValue$, this.valid$]).pipe(take(1)))\n )\n .subscribe(([formValue, valid]) => {\n if (valid) {\n this.configuration.emit(formValue!);\n }\n });\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<p style=\"margin-bottom: 1.5rem\">{{ 'actionDescription' | pluginTranslate: pluginId | async }}</p>\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"parentDocumentId\"\n [title]=\"'parentDocumentId' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.parentDocumentId\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [widthPx]=\"350\"\n >\n </v-input>\n</v-form>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {FunctionConfigurationComponent, FunctionConfigurationData} from \"@valtimo/plugin\";\nimport {MultiInputKeyValue, MultiInputOutput} from \"@valtimo/components\";\nimport {BehaviorSubject, combineLatest, map, Observable, of, Subscription, switchMap, take} from \"rxjs\";\nimport {SyncToChildrenConfig} from \"../../models\";\n\n@Component({\n standalone: false,\n selector: \"valtimo-sync-to-children-configuration\",\n templateUrl: \"./sync-to-children-configuration.component.html\",\n})\nexport class SyncToChildrenConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<SyncToChildrenConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<FunctionConfigurationData> = new EventEmitter<FunctionConfigurationData>();\n\n public prefillMappings$!: Observable<MultiInputKeyValue[]>;\n\n private saveSubscription!: Subscription;\n private readonly formValue$ = new BehaviorSubject<SyncToChildrenConfig | null>(null);\n private readonly valid$ = new BehaviorSubject<boolean>(false);\n\n public ngOnInit(): void {\n this.prefillMappings$ = (this.prefillConfiguration$ ?? of(null)).pipe(\n map(prefill => (prefill?.mappings ?? []).map(mapping => ({key: mapping.source, value: mapping.target})))\n );\n this.openSaveSubscription();\n }\n\n public ngOnDestroy() {\n this.saveSubscription?.unsubscribe();\n }\n\n public mappingsChange(values: MultiInputOutput): void {\n const formValue: SyncToChildrenConfig = {\n mappings: (values as MultiInputKeyValue[]).map(value => ({source: value.key ?? \"\", target: value.value ?? \"\"})),\n };\n this.formValue$.next(formValue);\n this.handleValid(formValue);\n }\n\n private handleValid(formValue: SyncToChildrenConfig): void {\n const isPointer = (path: string) => path.startsWith(\"/\");\n const valid =\n formValue.mappings.length > 0 &&\n formValue.mappings.every(mapping => isPointer(mapping.source) && isPointer(mapping.target));\n this.valid$.next(valid);\n this.valid.emit(valid);\n }\n\n private openSaveSubscription(): void {\n this.saveSubscription = this.save$\n ?.pipe(\n switchMap(() => combineLatest([this.formValue$, this.valid$]).pipe(take(1)))\n )\n .subscribe(([formValue, valid]) => {\n if (valid) {\n this.configuration.emit(formValue!);\n }\n });\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<p style=\"margin-bottom: 1.5rem\">{{ 'syncToChildrenDescription' | pluginTranslate: pluginId | async }}</p>\n\n<valtimo-carbon-multi-input\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillMappings$ | async\n } as obs\"\n type=\"keyValue\"\n name=\"mappings\"\n [title]=\"'mappings' | pluginTranslate: pluginId | async\"\n [keyColumnTitle]=\"'mappingSource' | pluginTranslate: pluginId | async\"\n [valueColumnTitle]=\"'mappingTarget' | pluginTranslate: pluginId | async\"\n [defaultValues]=\"obs.prefill\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [margin]=\"true\"\n (valueChange)=\"mappingsChange($event)\"\n></valtimo-carbon-multi-input>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {FunctionConfigurationComponent, FunctionConfigurationData} from \"@valtimo/plugin\";\nimport {Observable, of, Subscription, take} from \"rxjs\";\nimport {NodeMapping, SyncToParentConfig} from \"../../models\";\n\n// Own mapping rows instead of valtimo-carbon-multi-input, which has no checkbox column for merge.\n@Component({\n standalone: false,\n selector: \"valtimo-sync-to-parent-configuration\",\n templateUrl: \"./sync-to-parent-configuration.component.html\",\n})\nexport class SyncToParentConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<SyncToParentConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<FunctionConfigurationData> = new EventEmitter<FunctionConfigurationData>();\n\n public mappings: NodeMapping[] = [this.emptyMapping()];\n\n private readonly subscriptions = new Subscription();\n\n public ngOnInit(): void {\n this.subscriptions.add(\n (this.prefillConfiguration$ ?? of(null)).pipe(take(1)).subscribe(prefill => {\n if (prefill?.mappings?.length) {\n this.mappings = prefill.mappings.map(mapping => ({...mapping, merge: !!mapping.merge}));\n }\n this.emitValid();\n })\n );\n this.subscriptions.add(\n this.save$?.subscribe(() => {\n if (this.isValid()) {\n this.configuration.emit({mappings: this.mappings});\n }\n })\n );\n }\n\n public ngOnDestroy(): void {\n this.subscriptions.unsubscribe();\n }\n\n public change(index: number, change: Partial<NodeMapping>): void {\n this.mappings[index] = {...this.mappings[index], ...change};\n this.emitValid();\n }\n\n public add(): void {\n this.mappings = [...this.mappings, this.emptyMapping()];\n this.emitValid();\n }\n\n public remove(index: number): void {\n this.mappings = this.mappings.filter((_, i) => i !== index);\n this.emitValid();\n }\n\n private emitValid(): void {\n this.valid.emit(this.isValid());\n }\n\n private isValid(): boolean {\n const isPointer = (path: string) => path.startsWith(\"/\");\n return (\n this.mappings.length > 0 &&\n this.mappings.every(mapping => isPointer(mapping.source) && isPointer(mapping.target))\n );\n }\n\n private emptyMapping(): NodeMapping {\n return {source: \"\", target: \"\", merge: false};\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<p style=\"margin-bottom: 1.5rem\">{{ 'syncToParentDescription' | pluginTranslate: pluginId | async }}</p>\n\n<ng-container *ngIf=\"{disabled: disabled$ | async} as obs\">\n <cds-label>{{ 'mappings' | pluginTranslate: pluginId | async }}</cds-label>\n\n <div\n *ngFor=\"let mapping of mappings; index as i\"\n style=\"display: flex; gap: 1rem; align-items: flex-end; margin-bottom: 0.5rem\"\n >\n <div style=\"flex: 1\">\n <cds-label *ngIf=\"i === 0\">{{ 'parentMappingSource' | pluginTranslate: pluginId | async }}</cds-label>\n <input\n cdsText\n [attr.aria-label]=\"'parentMappingSource' | pluginTranslate: pluginId | async\"\n [value]=\"mapping.source\"\n [disabled]=\"obs.disabled\"\n (input)=\"change(i, {source: $any($event.target).value})\"\n />\n </div>\n\n <div style=\"flex: 1\">\n <cds-label *ngIf=\"i === 0\">{{ 'parentMappingTarget' | pluginTranslate: pluginId | async }}</cds-label>\n <input\n cdsText\n [attr.aria-label]=\"'parentMappingTarget' | pluginTranslate: pluginId | async\"\n [value]=\"mapping.target\"\n [disabled]=\"obs.disabled\"\n (input)=\"change(i, {target: $any($event.target).value})\"\n />\n </div>\n\n <cds-checkbox\n [checked]=\"mapping.merge\"\n [disabled]=\"obs.disabled\"\n (checkedChange)=\"change(i, {merge: $event})\"\n >\n {{ 'mappingMerge' | pluginTranslate: pluginId | async }}\n </cds-checkbox>\n\n <button\n cdsButton=\"danger--ghost\"\n type=\"button\"\n [disabled]=\"obs.disabled || mappings.length === 1\"\n (click)=\"remove(i)\"\n >\n {{ 'deleteMapping' | pluginTranslate: pluginId | async }}\n </button>\n </div>\n\n <button cdsButton=\"primary\" size=\"sm\" type=\"button\" [disabled]=\"obs.disabled\" (click)=\"add()\">\n {{ 'addMapping' | pluginTranslate: pluginId | async }}\n </button>\n</ng-container>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, inject, Input} from \"@angular/core\";\nimport {ActivatedRoute, Router} from \"@angular/router\";\nimport {DocumentService} from \"@valtimo/document\";\nimport {CustomWidget} from \"@valtimo/layout\";\nimport {PaginationModel} from \"carbon-components-angular\";\nimport {BehaviorSubject, combineLatest, forkJoin, map, Observable, of, shareReplay, switchMap, tap} from \"rxjs\";\n\ninterface DocumentRelation {\n id: string;\n relationType: string;\n}\n\ninterface ChildCaseRow {\n link: string[];\n values: string[];\n}\n\n/**\n * Custom case widget listing the CHILD documents of the case being viewed, one row per child.\n * Configure it in a case widget tab as type \"custom\" with componentKey \"parent-children-list\"; every\n * componentValue maps a column title to a \"doc:\" expression on the child document, e.g. {\"1. Name\": \"doc:/name\"};\n * the optional number prefix sets the column order and is not shown.\n */\n@Component({\n standalone: false,\n selector: \"valtimo-parent-children-list\",\n templateUrl: \"./parent-children-list.component.html\",\n})\nexport class ParentChildrenListComponent {\n // The widget editor stores each key/value pair directly in componentValue; read them from the whole config.\n @Input() widgetConfiguration?: CustomWidget;\n\n // Valtimo stores componentValue as Postgres JSONB, which reorders keys; an optional \"1. \" key prefix sets the order.\n private get columns(): {title: string; expression: string}[] {\n const componentValue = (this.widgetConfiguration?.properties?.componentValue ?? {}) as Record<string, string>;\n return Object.entries(componentValue)\n .map(([key, expression]) => {\n const match = key.match(/^(\\d+)\\.\\s*(.*)$/);\n return {order: match ? Number(match[1]) : Number.MAX_SAFE_INTEGER, title: match ? match[2] : key, expression};\n })\n .sort((a, b) => a.order - b.order);\n }\n\n public get titles(): string[] {\n return this.columns.map(column => column.title);\n }\n\n private readonly documentService = inject(DocumentService);\n\n public readonly paginationModel = new PaginationModel(); // starts at page 1 with 10 rows per page\n private readonly page$ = new BehaviorSubject<void>(undefined);\n\n // Custom widgets do not get the document ID as input, so it is read from the case route.\n private readonly childIds$: Observable<string[]> = inject(ActivatedRoute).paramMap.pipe(\n map(params => params.get(\"documentId\")),\n switchMap(documentId => (documentId ? this.documentService.getDocument(documentId) : of(null))),\n // The Valtimo model types relations as string[], the API returns {id, relationType} objects.\n map(parent =>\n ((parent?.relations ?? []) as unknown as DocumentRelation[])\n .filter(relation => relation.relationType === \"CHILD\")\n .map(relation => relation.id)\n ),\n tap(childIds => (this.paginationModel.totalDataLength = childIds.length)),\n shareReplay(1)\n );\n\n public readonly rows$: Observable<ChildCaseRow[]> = combineLatest([this.childIds$, this.page$]).pipe(\n switchMap(([childIds]) => {\n const {currentPage, pageLength = 10} = this.paginationModel;\n const pageIds = childIds.slice((currentPage - 1) * pageLength, currentPage * pageLength);\n // shortcut: one request per child on the current page; add a backend endpoint if pages get large.\n return pageIds.length ? forkJoin(pageIds.map(id => this.documentService.getDocument(id))) : of([]);\n }),\n map(children =>\n children.map(child => ({\n link: [\"/cases\", child.definitionId?.blueprintId?.blueprintKey ?? \"\", \"document\", child.id],\n values: this.columns.map(column => this.display(child.content, column.expression)),\n }))\n )\n );\n\n private readonly router = inject(Router);\n\n // Carbon emits selectPage for page changes and (with page 1) after a page size change.\n public selectPage(page: number): void {\n this.paginationModel.currentPage = page;\n this.page$.next();\n }\n\n public open(row: ChildCaseRow): void {\n window.open(this.router.serializeUrl(this.router.createUrlTree(row.link)), \"_blank\", \"noopener\");\n }\n\n private display(content: object, expression: string): string {\n if (!expression?.startsWith(\"doc:\")) return \"\";\n const path = expression.substring(\"doc:\".length);\n // Like Valtimo's doc: resolver, accept a JSON pointer (doc:/a/b) or a dotted path (doc:a.b).\n const pointer = path.startsWith(\"/\") ? path : \"/\" + path.replace(/\\./g, \"/\");\n const value = pointer\n .split(\"/\")\n .slice(1)\n .map(part => part.replace(/~1/g, \"/\").replace(/~0/g, \"~\"))\n .reduce<any>((node, key) => node?.[key], content);\n if (value === null || value === undefined) return \"\";\n return Array.isArray(value) ? value.join(\", \") : typeof value === \"object\" ? JSON.stringify(value) : String(value);\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<table class=\"cds--data-table cds--data-table--sm\" style=\"width: 100%\">\n <thead>\n <tr>\n <th *ngFor=\"let title of titles\" scope=\"col\">\n <div class=\"cds--table-header-label\">{{ title }}</div>\n </th>\n <th scope=\"col\"><span class=\"cds--visually-hidden\">Link</span></th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"rows$ | async as rows; else loading\">\n <tr\n *ngFor=\"let row of rows\"\n role=\"link\"\n tabindex=\"0\"\n style=\"cursor: pointer\"\n (click)=\"open(row)\"\n (keydown.enter)=\"open(row)\"\n >\n <td *ngFor=\"let value of row.values\">{{ value }}</td>\n <td style=\"width: 2rem; text-align: right\">\n <a\n [routerLink]=\"row.link\"\n target=\"_blank\"\n rel=\"noopener\"\n aria-label=\"Open in new tab\"\n title=\"Open in new tab\"\n tabindex=\"-1\"\n (click)=\"$event.stopPropagation()\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" width=\"16\" height=\"16\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z\" />\n </svg>\n </a>\n </td>\n </tr>\n <tr *ngIf=\"rows.length === 0\">\n <td [attr.colspan]=\"titles.length + 1\">-</td>\n </tr>\n </ng-container>\n <ng-template #loading>\n <tr>\n <td [attr.colspan]=\"titles.length + 1\">…</td>\n </tr>\n </ng-template>\n </tbody>\n</table>\n\n<cds-pagination\n *ngIf=\"paginationModel.totalDataLength > 0\"\n [model]=\"paginationModel\"\n [itemsPerPageOptions]=\"[10, 20, 50]\"\n (selectPage)=\"selectPage($event)\"\n></cds-pagination>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\nimport {PluginTranslatePipeModule} from \"@valtimo/plugin\";\nimport {RouterModule} from \"@angular/router\";\nimport {ButtonModule, CheckboxModule, InputModule as CarbonInputModule, PaginationModule} from \"carbon-components-angular\";\nimport {CarbonMultiInputModule, FormModule, InputModule as ValtimoInputModule} from \"@valtimo/components\";\nimport {ParentChildPluginConfigurationComponent} from \"./components/parent-child-plugin-configuration/parent-child-plugin-configuration.component\";\nimport {ParentChildActionConfigurationComponent} from \"./components/parent-child-action-configuration/parent-child-action-configuration.component\";\nimport {SyncToChildrenConfigurationComponent} from \"./components/sync-to-children-configuration/sync-to-children-configuration.component\";\nimport {SyncToParentConfigurationComponent} from \"./components/sync-to-parent-configuration/sync-to-parent-configuration.component\";\nimport {ParentChildrenListComponent} from \"./components/parent-children-list/parent-children-list.component\";\nimport {CUSTOM_WIDGET_TOKEN} from \"@valtimo/layout\";\n\n@NgModule({\n declarations: [\n ParentChildPluginConfigurationComponent,\n ParentChildActionConfigurationComponent,\n SyncToChildrenConfigurationComponent,\n SyncToParentConfigurationComponent,\n ParentChildrenListComponent,\n ],\n imports: [CommonModule, PluginTranslatePipeModule, FormModule, ValtimoInputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, CarbonInputModule, PaginationModule, RouterModule],\n exports: [\n ParentChildPluginConfigurationComponent,\n ParentChildActionConfigurationComponent,\n SyncToChildrenConfigurationComponent,\n SyncToParentConfigurationComponent,\n ParentChildrenListComponent,\n ],\n providers: [\n {\n provide: CUSTOM_WIDGET_TOKEN,\n useValue: {\"parent-children-list\": ParentChildrenListComponent},\n },\n ]\n})\nexport class ParentChildPluginModule {\n}\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst PARENT_CHILD_PLUGIN_LOGO_BASE64 =\n \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDA1MGIyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTIiIGN5PSI1IiByPSIzIi8+PGxpbmUgeDE9IjEyIiB5MT0iOCIgeDI9IjEyIiB5Mj0iMTIiLz48bGluZSB4MT0iNyIgeTE9IjEyIiB4Mj0iMTciIHkyPSIxMiIvPjxsaW5lIHgxPSI3IiB5MT0iMTIiIHgyPSI3IiB5Mj0iMTYiLz48bGluZSB4MT0iMTciIHkxPSIxMiIgeDI9IjE3IiB5Mj0iMTYiLz48Y2lyY2xlIGN4PSI3IiBjeT0iMTkiIHI9IjIuNSIvPjxjaXJjbGUgY3g9IjE3IiBjeT0iMTkiIHI9IjIuNSIvPjwvc3ZnPg==\";\n\nexport {PARENT_CHILD_PLUGIN_LOGO_BASE64};\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from \"./parent-child-plugin-logo\";\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {PluginSpecification} from \"@valtimo/plugin\";\nimport {ParentChildPluginConfigurationComponent} from \"./components/parent-child-plugin-configuration/parent-child-plugin-configuration.component\";\nimport {PARENT_CHILD_PLUGIN_LOGO_BASE64} from \"./assets\";\nimport {ParentChildActionConfigurationComponent} from \"./components/parent-child-action-configuration/parent-child-action-configuration.component\";\nimport {SyncToChildrenConfigurationComponent} from \"./components/sync-to-children-configuration/sync-to-children-configuration.component\";\nimport {SyncToParentConfigurationComponent} from \"./components/sync-to-parent-configuration/sync-to-parent-configuration.component\";\n\nconst parentChildPluginSpecification: PluginSpecification = {\n pluginId: \"parent-child-plugin\",\n pluginConfigurationComponent: ParentChildPluginConfigurationComponent,\n pluginLogoBase64: PARENT_CHILD_PLUGIN_LOGO_BASE64,\n functionConfigurationComponents: {\n \"connect-parent\": ParentChildActionConfigurationComponent,\n \"sync-to-children\": SyncToChildrenConfigurationComponent,\n \"sync-to-parent\": SyncToParentConfigurationComponent,\n },\n pluginTranslations: {\n nl: {\n title: \"Parent Child Plugin\",\n \"connect-parent\": \"Koppel bovenliggend document\",\n description: \"Dit is een voorbeeld plugin die beschikt over een API call action.\",\n configurationTitle: \"Configuratienaam\",\n actionDescription: \"Deze actie koppelt het huidige document aan een bovenliggend document: het huidige document krijgt een PARENT relatie en het bovenliggend document krijgt een CHILD relatie.\",\n parentDocumentId: \"Document ID van bovenliggend document\",\n \"sync-to-children\": \"Synchroniseer naar onderliggende documenten\",\n syncToChildrenDescription: \"Deze actie kopieert de geconfigureerde onderdelen van het huidige document naar alle onderliggende (CHILD) documenten. Paden zijn JSON pointers, bijvoorbeeld /destination.\",\n mappings: \"Mapping\",\n mappingSource: \"Pad in bovenliggend document\",\n mappingTarget: \"Pad in onderliggend document\",\n \"sync-to-parent\": \"Synchroniseer naar bovenliggend document\",\n syncToParentDescription: \"Deze actie kopieert de geconfigureerde onderdelen van het huidige document naar het bovenliggende (PARENT) document. Paden zijn JSON pointers, bijvoorbeeld /destination. Met 'Lijst samenvoegen' wordt een lijst toegevoegd aan de bestaande lijst in het bovenliggende document (zonder dubbelen) in plaats van die te vervangen.\",\n parentMappingSource: \"Pad in onderliggend document\",\n parentMappingTarget: \"Pad in bovenliggend document\",\n mappingMerge: \"Lijst samenvoegen\",\n addMapping: \"Mapping toevoegen\",\n deleteMapping: \"Verwijderen\",\n },\n en: {\n title: \"Parent Child Plugin\",\n \"connect-parent\": \"Connect parent document\",\n description: \"This is a parent-child plugin demonstrating an API call action.\",\n configurationTitle: \"Configuration Name\",\n actionDescription: \"This action links the current document to a parent document: the current document gets a PARENT relation and the parent document gets a CHILD relation.\",\n parentDocumentId: \"Parent document ID\",\n \"sync-to-children\": \"Sync to child documents\",\n syncToChildrenDescription: \"This action copies the configured nodes of the current document into all of its child documents. Paths are JSON pointers, for example /destination.\",\n mappings: \"Mapping\",\n mappingSource: \"Path in parent document\",\n mappingTarget: \"Path in child document\",\n \"sync-to-parent\": \"Sync to parent document\",\n syncToParentDescription: \"This action copies the configured nodes of the current document into its parent document. Paths are JSON pointers, for example /destination. With 'Merge list', a list is added to the existing list in the parent document (without duplicates) instead of replacing it.\",\n parentMappingSource: \"Path in child document\",\n parentMappingTarget: \"Path in parent document\",\n mappingMerge: \"Merge list\",\n addMapping: \"Add mapping\",\n deleteMapping: \"Delete\",\n },\n },\n};\n\nexport {parentChildPluginSpecification};\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of parent-child-plugin\n */\n\nexport * from \"./lib/plugins/parent-child-plugin/models\";\nexport * from \"./lib/plugins/parent-child-plugin/parent-child-plugin-module\";\nexport * from \"./lib/plugins/parent-child-plugin/parent-child-plugin.specification\";\nexport * from \"./lib/plugins/parent-child-plugin/components/parent-child-plugin-configuration/parent-child-plugin-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/parent-child-action-configuration/parent-child-action-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/sync-to-parent-configuration/sync-to-parent-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/parent-children-list/parent-children-list.component\";\n\nexport const PARENT_CHILDREN_LIST_WIDGET_KEY = 'parent-children-list' as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i2","i3","ValtimoInputModule","CarbonInputModule"],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MAYU,uCAAuC,CAAA;AALpD,IAAA,WAAA,GAAA;AAUY,QAAA,IAAA,CAAA,KAAK,GAA0B,IAAI,YAAY,EAAW;AAC1D,QAAA,IAAA,CAAA,aAAa,GAA0C,IAAI,YAAY,EAA2B;AAG3F,QAAA,IAAA,CAA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uB,EAAE,2QAA2Q;AACpS,YAAA,mBAAmB,EAAE,wBAAwB;AAC7C,YAAA,mBAAmB,EAAE,yBAAyB;AAC9C,YAAA,YAAY,EAAE,YAAY;AAC1B,YAAA,UAAU,EAAE,aAAa;AACzB,YAAA,aAAa,EAAE,QAAQ;AACxB,SAAA;AACF,KAAA;;;ACzEH;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;AAWI,MAAM,+BAA+B,GAAG;;AC7B/C;;AAEG;;;;"}
@@ -0,0 +1,31 @@
1
+ import { CustomWidget } from "@valtimo/layout";
2
+ import { PaginationModel } from "carbon-components-angular";
3
+ import { Observable } from "rxjs";
4
+ import * as i0 from "@angular/core";
5
+ interface ChildCaseRow {
6
+ link: string[];
7
+ values: string[];
8
+ }
9
+ /**
10
+ * Custom case widget listing the CHILD documents of the case being viewed, one row per child.
11
+ * Configure it in a case widget tab as type "custom" with componentKey "parent-children-list"; every
12
+ * componentValue maps a column title to a "doc:" expression on the child document, e.g. {"1. Name": "doc:/name"};
13
+ * the optional number prefix sets the column order and is not shown.
14
+ */
15
+ export declare class ParentChildrenListComponent {
16
+ widgetConfiguration?: CustomWidget;
17
+ private get columns();
18
+ get titles(): string[];
19
+ private readonly documentService;
20
+ readonly paginationModel: PaginationModel;
21
+ private readonly page$;
22
+ private readonly childIds$;
23
+ readonly rows$: Observable<ChildCaseRow[]>;
24
+ private readonly router;
25
+ selectPage(page: number): void;
26
+ open(row: ChildCaseRow): void;
27
+ private display;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<ParentChildrenListComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<ParentChildrenListComponent, "valtimo-parent-children-list", never, { "widgetConfiguration": { "alias": "widgetConfiguration"; "required": false; }; }, {}, never, never, false, never>;
30
+ }
31
+ export {};
@@ -3,12 +3,14 @@ import * as i1 from "./components/parent-child-plugin-configuration/parent-child
3
3
  import * as i2 from "./components/parent-child-action-configuration/parent-child-action-configuration.component";
4
4
  import * as i3 from "./components/sync-to-children-configuration/sync-to-children-configuration.component";
5
5
  import * as i4 from "./components/sync-to-parent-configuration/sync-to-parent-configuration.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@valtimo/plugin";
8
- import * as i7 from "@valtimo/components";
9
- import * as i8 from "carbon-components-angular";
6
+ import * as i5 from "./components/parent-children-list/parent-children-list.component";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "@valtimo/plugin";
9
+ import * as i8 from "@valtimo/components";
10
+ import * as i9 from "carbon-components-angular";
11
+ import * as i10 from "@angular/router";
10
12
  export declare class ParentChildPluginModule {
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ParentChildPluginModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<ParentChildPluginModule, [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent, typeof i3.SyncToChildrenConfigurationComponent, typeof i4.SyncToParentConfigurationComponent], [typeof i5.CommonModule, typeof i6.PluginTranslatePipeModule, typeof i7.FormModule, typeof i7.InputModule, typeof i7.CarbonMultiInputModule, typeof i8.ButtonModule, typeof i8.CheckboxModule, typeof i8.InputModule], [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent, typeof i3.SyncToChildrenConfigurationComponent, typeof i4.SyncToParentConfigurationComponent]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ParentChildPluginModule, [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent, typeof i3.SyncToChildrenConfigurationComponent, typeof i4.SyncToParentConfigurationComponent, typeof i5.ParentChildrenListComponent], [typeof i6.CommonModule, typeof i7.PluginTranslatePipeModule, typeof i8.FormModule, typeof i8.InputModule, typeof i8.CarbonMultiInputModule, typeof i9.ButtonModule, typeof i9.CheckboxModule, typeof i9.InputModule, typeof i9.PaginationModule, typeof i10.RouterModule], [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent, typeof i3.SyncToChildrenConfigurationComponent, typeof i4.SyncToParentConfigurationComponent, typeof i5.ParentChildrenListComponent]>;
13
15
  static ɵinj: i0.ɵɵInjectorDeclaration<ParentChildPluginModule>;
14
16
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo-plugins/parent-child-plugin",
3
3
  "license": "EUPL-1.2",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "19.2.20",
7
7
  "@angular/core": "19.2.20"
package/public_api.d.ts CHANGED
@@ -5,3 +5,5 @@ export * from "./lib/plugins/parent-child-plugin/components/parent-child-plugin-
5
5
  export * from "./lib/plugins/parent-child-plugin/components/parent-child-action-configuration/parent-child-action-configuration.component";
6
6
  export * from "./lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component";
7
7
  export * from "./lib/plugins/parent-child-plugin/components/sync-to-parent-configuration/sync-to-parent-configuration.component";
8
+ export * from "./lib/plugins/parent-child-plugin/components/parent-children-list/parent-children-list.component";
9
+ export declare const PARENT_CHILDREN_LIST_WIDGET_KEY: "parent-children-list";