@valtimo-plugins/parent-child-plugin 1.1.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,12 +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';
9
+ import * as i2$1 from 'carbon-components-angular';
10
+ import { PaginationModel, ButtonModule, CheckboxModule, InputModule as InputModule$1, PaginationModule } from 'carbon-components-angular';
7
11
  import * as i2 from '@valtimo/components';
8
12
  import { FormModule, InputModule, CarbonMultiInputModule } from '@valtimo/components';
9
- import { BehaviorSubject, combineLatest, take, switchMap, of, map } 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';
10
16
 
11
17
  /*
12
18
  * Copyright 2026 Ritense BV, the Netherlands.
@@ -246,6 +252,177 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
246
252
  type: Output
247
253
  }] } });
248
254
 
255
+ /*
256
+ * Copyright 2026 Ritense BV, the Netherlands.
257
+ *
258
+ * Licensed under EUPL, Version 1.2 (the "License");
259
+ * you may not use this file except in compliance with the License.
260
+ * You may obtain a copy of the License at
261
+ *
262
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
263
+ *
264
+ * Unless required by applicable law or agreed to in writing, software
265
+ * distributed under the License is distributed on an "AS IS" basis,
266
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
267
+ * See the License for the specific language governing permissions and
268
+ * limitations under the License.
269
+ */
270
+ // Own mapping rows instead of valtimo-carbon-multi-input, which has no checkbox column for merge.
271
+ class SyncToParentConfigurationComponent {
272
+ constructor() {
273
+ this.valid = new EventEmitter();
274
+ this.configuration = new EventEmitter();
275
+ this.mappings = [this.emptyMapping()];
276
+ this.subscriptions = new Subscription();
277
+ }
278
+ ngOnInit() {
279
+ this.subscriptions.add((this.prefillConfiguration$ ?? of(null)).pipe(take(1)).subscribe(prefill => {
280
+ if (prefill?.mappings?.length) {
281
+ this.mappings = prefill.mappings.map(mapping => ({ ...mapping, merge: !!mapping.merge }));
282
+ }
283
+ this.emitValid();
284
+ }));
285
+ this.subscriptions.add(this.save$?.subscribe(() => {
286
+ if (this.isValid()) {
287
+ this.configuration.emit({ mappings: this.mappings });
288
+ }
289
+ }));
290
+ }
291
+ ngOnDestroy() {
292
+ this.subscriptions.unsubscribe();
293
+ }
294
+ change(index, change) {
295
+ this.mappings[index] = { ...this.mappings[index], ...change };
296
+ this.emitValid();
297
+ }
298
+ add() {
299
+ this.mappings = [...this.mappings, this.emptyMapping()];
300
+ this.emitValid();
301
+ }
302
+ remove(index) {
303
+ this.mappings = this.mappings.filter((_, i) => i !== index);
304
+ this.emitValid();
305
+ }
306
+ emitValid() {
307
+ this.valid.emit(this.isValid());
308
+ }
309
+ isValid() {
310
+ const isPointer = (path) => path.startsWith("/");
311
+ return (this.mappings.length > 0 &&
312
+ this.mappings.every(mapping => isPointer(mapping.source) && isPointer(mapping.target)));
313
+ }
314
+ emptyMapping() {
315
+ return { source: "", target: "", merge: false };
316
+ }
317
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SyncToParentConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
318
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: SyncToParentConfigurationComponent, isStandalone: false, selector: "valtimo-sync-to-parent-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, 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<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", 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: "directive", type: i2$1.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "component", type: i2$1.Checkbox, selector: "cds-checkbox, ibm-checkbox", inputs: ["disabled", "skeleton", "hideLabel", "name", "id", "required", "value", "ariaLabel", "ariaLabelledby", "indeterminate", "checked"], outputs: ["click", "checkedChange", "indeterminateChange"] }, { kind: "component", type: i2$1.Label, selector: "cds-label, ibm-label", inputs: ["labelInputID", "disabled", "skeleton", "helperText", "invalidText", "invalid", "warn", "warnText", "ariaLabel"] }, { kind: "directive", type: i2$1.TextInput, selector: "[cdsText], [ibmText]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.PluginTranslatePipe, name: "pluginTranslate" }] }); }
319
+ }
320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SyncToParentConfigurationComponent, decorators: [{
321
+ type: Component,
322
+ args: [{ standalone: false, selector: "valtimo-sync-to-parent-configuration", 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<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" }]
323
+ }], propDecorators: { save$: [{
324
+ type: Input
325
+ }], disabled$: [{
326
+ type: Input
327
+ }], pluginId: [{
328
+ type: Input
329
+ }], prefillConfiguration$: [{
330
+ type: Input
331
+ }], valid: [{
332
+ type: Output
333
+ }], configuration: [{
334
+ type: Output
335
+ }] } });
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
+
249
426
  /*
250
427
  * Copyright 2026 Ritense BV, the Netherlands.
251
428
  *
@@ -265,10 +442,19 @@ class ParentChildPluginModule {
265
442
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
266
443
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, declarations: [ParentChildPluginConfigurationComponent,
267
444
  ParentChildActionConfigurationComponent,
268
- SyncToChildrenConfigurationComponent], imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule], exports: [ParentChildPluginConfigurationComponent,
445
+ SyncToChildrenConfigurationComponent,
446
+ SyncToParentConfigurationComponent,
447
+ ParentChildrenListComponent], imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1, PaginationModule, RouterModule], exports: [ParentChildPluginConfigurationComponent,
269
448
  ParentChildActionConfigurationComponent,
270
- SyncToChildrenConfigurationComponent] }); }
271
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule] }); }
449
+ SyncToChildrenConfigurationComponent,
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] }); }
272
458
  }
273
459
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, decorators: [{
274
460
  type: NgModule,
@@ -277,13 +463,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
277
463
  ParentChildPluginConfigurationComponent,
278
464
  ParentChildActionConfigurationComponent,
279
465
  SyncToChildrenConfigurationComponent,
466
+ SyncToParentConfigurationComponent,
467
+ ParentChildrenListComponent,
280
468
  ],
281
- imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule],
469
+ imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1, PaginationModule, RouterModule],
282
470
  exports: [
283
471
  ParentChildPluginConfigurationComponent,
284
472
  ParentChildActionConfigurationComponent,
285
473
  SyncToChildrenConfigurationComponent,
474
+ SyncToParentConfigurationComponent,
475
+ ParentChildrenListComponent,
286
476
  ],
477
+ providers: [
478
+ {
479
+ provide: CUSTOM_WIDGET_TOKEN,
480
+ useValue: { "parent-children-list": ParentChildrenListComponent },
481
+ },
482
+ ]
287
483
  }]
288
484
  }] });
289
485
 
@@ -342,6 +538,7 @@ const parentChildPluginSpecification = {
342
538
  functionConfigurationComponents: {
343
539
  "connect-parent": ParentChildActionConfigurationComponent,
344
540
  "sync-to-children": SyncToChildrenConfigurationComponent,
541
+ "sync-to-parent": SyncToParentConfigurationComponent,
345
542
  },
346
543
  pluginTranslations: {
347
544
  nl: {
@@ -356,6 +553,13 @@ const parentChildPluginSpecification = {
356
553
  mappings: "Mapping",
357
554
  mappingSource: "Pad in bovenliggend document",
358
555
  mappingTarget: "Pad in onderliggend document",
556
+ "sync-to-parent": "Synchroniseer naar bovenliggend document",
557
+ 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.",
558
+ parentMappingSource: "Pad in onderliggend document",
559
+ parentMappingTarget: "Pad in bovenliggend document",
560
+ mappingMerge: "Lijst samenvoegen",
561
+ addMapping: "Mapping toevoegen",
562
+ deleteMapping: "Verwijderen",
359
563
  },
360
564
  en: {
361
565
  title: "Parent Child Plugin",
@@ -369,6 +573,13 @@ const parentChildPluginSpecification = {
369
573
  mappings: "Mapping",
370
574
  mappingSource: "Path in parent document",
371
575
  mappingTarget: "Path in child document",
576
+ "sync-to-parent": "Sync to parent document",
577
+ 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.",
578
+ parentMappingSource: "Path in child document",
579
+ parentMappingTarget: "Path in parent document",
580
+ mappingMerge: "Merge list",
581
+ addMapping: "Add mapping",
582
+ deleteMapping: "Delete",
372
583
  },
373
584
  },
374
585
  };
@@ -391,10 +602,11 @@ const parentChildPluginSpecification = {
391
602
  /*
392
603
  * Public API Surface of parent-child-plugin
393
604
  */
605
+ const PARENT_CHILDREN_LIST_WIDGET_KEY = 'parent-children-list';
394
606
 
395
607
  /**
396
608
  * Generated bundle index. Do not edit.
397
609
  */
398
610
 
399
- export { ParentChildActionConfigurationComponent, ParentChildPluginConfigurationComponent, ParentChildPluginModule, SyncToChildrenConfigurationComponent, parentChildPluginSpecification };
611
+ export { PARENT_CHILDREN_LIST_WIDGET_KEY, ParentChildActionConfigurationComponent, ParentChildPluginConfigurationComponent, ParentChildPluginModule, ParentChildrenListComponent, SyncToChildrenConfigurationComponent, SyncToParentConfigurationComponent, parentChildPluginSpecification };
400
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/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}\n\ninterface SyncToChildrenConfig {\n mappings: NodeMapping[];\n}\n\nexport {ParentChildPluginConfig, ParentChildActionConfig, NodeMapping, SyncToChildrenConfig};\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 {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\nimport {PluginTranslatePipeModule} from \"@valtimo/plugin\";\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\";\n\n@NgModule({\n declarations: [\n ParentChildPluginConfigurationComponent,\n ParentChildActionConfigurationComponent,\n SyncToChildrenConfigurationComponent,\n ],\n imports: [CommonModule, PluginTranslatePipeModule, FormModule, ValtimoInputModule, CarbonMultiInputModule],\n exports: [\n ParentChildPluginConfigurationComponent,\n ParentChildActionConfigurationComponent,\n SyncToChildrenConfigurationComponent,\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\";\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 },\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 },\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 },\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\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["ValtimoInputModule"],"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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BAAyB;AACxC,YAAA,aAAa,EAAE,wBAAwB;AACxC,SAAA;AACF,KAAA;;;ACzDH;;;;;;;;;;;;;;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,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;;IA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,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 {};
@@ -0,0 +1,25 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
2
+ import { FunctionConfigurationComponent, FunctionConfigurationData } from "@valtimo/plugin";
3
+ import { Observable } from "rxjs";
4
+ import { NodeMapping, SyncToParentConfig } from "../../models";
5
+ import * as i0 from "@angular/core";
6
+ export declare class SyncToParentConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {
7
+ save$: Observable<void>;
8
+ disabled$: Observable<boolean>;
9
+ pluginId: string;
10
+ prefillConfiguration$: Observable<SyncToParentConfig>;
11
+ valid: EventEmitter<boolean>;
12
+ configuration: EventEmitter<FunctionConfigurationData>;
13
+ mappings: NodeMapping[];
14
+ private readonly subscriptions;
15
+ ngOnInit(): void;
16
+ ngOnDestroy(): void;
17
+ change(index: number, change: Partial<NodeMapping>): void;
18
+ add(): void;
19
+ remove(index: number): void;
20
+ private emitValid;
21
+ private isValid;
22
+ private emptyMapping;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<SyncToParentConfigurationComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<SyncToParentConfigurationComponent, "valtimo-sync-to-parent-configuration", never, { "save$": { "alias": "save$"; "required": false; }; "disabled$": { "alias": "disabled$"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "prefillConfiguration$": { "alias": "prefillConfiguration$"; "required": false; }; }, { "valid": "valid"; "configuration": "configuration"; }, never, never, false, never>;
25
+ }
@@ -7,8 +7,12 @@ interface ParentChildActionConfig {
7
7
  interface NodeMapping {
8
8
  source: string;
9
9
  target: string;
10
+ merge?: boolean;
10
11
  }
11
12
  interface SyncToChildrenConfig {
12
13
  mappings: NodeMapping[];
13
14
  }
14
- export { ParentChildPluginConfig, ParentChildActionConfig, NodeMapping, SyncToChildrenConfig };
15
+ interface SyncToParentConfig {
16
+ mappings: NodeMapping[];
17
+ }
18
+ export { ParentChildPluginConfig, ParentChildActionConfig, NodeMapping, SyncToChildrenConfig, SyncToParentConfig };
@@ -2,11 +2,15 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./components/parent-child-plugin-configuration/parent-child-plugin-configuration.component";
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
- import * as i4 from "@angular/common";
6
- import * as i5 from "@valtimo/plugin";
7
- import * as i6 from "@valtimo/components";
5
+ import * as i4 from "./components/sync-to-parent-configuration/sync-to-parent-configuration.component";
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";
8
12
  export declare class ParentChildPluginModule {
9
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ParentChildPluginModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<ParentChildPluginModule, [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent, typeof i3.SyncToChildrenConfigurationComponent], [typeof i4.CommonModule, typeof i5.PluginTranslatePipeModule, typeof i6.FormModule, typeof i6.InputModule, typeof i6.CarbonMultiInputModule], [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent, typeof i3.SyncToChildrenConfigurationComponent]>;
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]>;
11
15
  static ɵinj: i0.ɵɵInjectorDeclaration<ParentChildPluginModule>;
12
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.1.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
@@ -4,3 +4,6 @@ export * from "./lib/plugins/parent-child-plugin/parent-child-plugin.specificati
4
4
  export * from "./lib/plugins/parent-child-plugin/components/parent-child-plugin-configuration/parent-child-plugin-configuration.component";
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
+ 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";