@valtimo-plugins/parent-child-plugin 1.1.0 → 1.2.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.
- package/fesm2022/valtimo-plugins-parent-child-plugin.mjs +109 -6
- package/fesm2022/valtimo-plugins-parent-child-plugin.mjs.map +1 -1
- package/lib/plugins/parent-child-plugin/components/sync-to-parent-configuration/sync-to-parent-configuration.component.d.ts +25 -0
- package/lib/plugins/parent-child-plugin/models/config.d.ts +5 -1
- package/lib/plugins/parent-child-plugin/parent-child-plugin-module.d.ts +6 -4
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -4,9 +4,11 @@ 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 i2$1 from 'carbon-components-angular';
|
|
8
|
+
import { ButtonModule, CheckboxModule, InputModule as InputModule$1 } from 'carbon-components-angular';
|
|
7
9
|
import * as i2 from '@valtimo/components';
|
|
8
10
|
import { FormModule, InputModule, CarbonMultiInputModule } from '@valtimo/components';
|
|
9
|
-
import { BehaviorSubject, combineLatest, take, switchMap, of, map } from 'rxjs';
|
|
11
|
+
import { BehaviorSubject, combineLatest, take, switchMap, of, map, Subscription } from 'rxjs';
|
|
10
12
|
|
|
11
13
|
/*
|
|
12
14
|
* Copyright 2026 Ritense BV, the Netherlands.
|
|
@@ -246,6 +248,88 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
246
248
|
type: Output
|
|
247
249
|
}] } });
|
|
248
250
|
|
|
251
|
+
/*
|
|
252
|
+
* Copyright 2026 Ritense BV, the Netherlands.
|
|
253
|
+
*
|
|
254
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
255
|
+
* you may not use this file except in compliance with the License.
|
|
256
|
+
* You may obtain a copy of the License at
|
|
257
|
+
*
|
|
258
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
259
|
+
*
|
|
260
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
261
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
262
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
263
|
+
* See the License for the specific language governing permissions and
|
|
264
|
+
* limitations under the License.
|
|
265
|
+
*/
|
|
266
|
+
// Own mapping rows instead of valtimo-carbon-multi-input, which has no checkbox column for merge.
|
|
267
|
+
class SyncToParentConfigurationComponent {
|
|
268
|
+
constructor() {
|
|
269
|
+
this.valid = new EventEmitter();
|
|
270
|
+
this.configuration = new EventEmitter();
|
|
271
|
+
this.mappings = [this.emptyMapping()];
|
|
272
|
+
this.subscriptions = new Subscription();
|
|
273
|
+
}
|
|
274
|
+
ngOnInit() {
|
|
275
|
+
this.subscriptions.add((this.prefillConfiguration$ ?? of(null)).pipe(take(1)).subscribe(prefill => {
|
|
276
|
+
if (prefill?.mappings?.length) {
|
|
277
|
+
this.mappings = prefill.mappings.map(mapping => ({ ...mapping, merge: !!mapping.merge }));
|
|
278
|
+
}
|
|
279
|
+
this.emitValid();
|
|
280
|
+
}));
|
|
281
|
+
this.subscriptions.add(this.save$?.subscribe(() => {
|
|
282
|
+
if (this.isValid()) {
|
|
283
|
+
this.configuration.emit({ mappings: this.mappings });
|
|
284
|
+
}
|
|
285
|
+
}));
|
|
286
|
+
}
|
|
287
|
+
ngOnDestroy() {
|
|
288
|
+
this.subscriptions.unsubscribe();
|
|
289
|
+
}
|
|
290
|
+
change(index, change) {
|
|
291
|
+
this.mappings[index] = { ...this.mappings[index], ...change };
|
|
292
|
+
this.emitValid();
|
|
293
|
+
}
|
|
294
|
+
add() {
|
|
295
|
+
this.mappings = [...this.mappings, this.emptyMapping()];
|
|
296
|
+
this.emitValid();
|
|
297
|
+
}
|
|
298
|
+
remove(index) {
|
|
299
|
+
this.mappings = this.mappings.filter((_, i) => i !== index);
|
|
300
|
+
this.emitValid();
|
|
301
|
+
}
|
|
302
|
+
emitValid() {
|
|
303
|
+
this.valid.emit(this.isValid());
|
|
304
|
+
}
|
|
305
|
+
isValid() {
|
|
306
|
+
const isPointer = (path) => path.startsWith("/");
|
|
307
|
+
return (this.mappings.length > 0 &&
|
|
308
|
+
this.mappings.every(mapping => isPointer(mapping.source) && isPointer(mapping.target)));
|
|
309
|
+
}
|
|
310
|
+
emptyMapping() {
|
|
311
|
+
return { source: "", target: "", merge: false };
|
|
312
|
+
}
|
|
313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SyncToParentConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
314
|
+
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" }] }); }
|
|
315
|
+
}
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SyncToParentConfigurationComponent, decorators: [{
|
|
317
|
+
type: Component,
|
|
318
|
+
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" }]
|
|
319
|
+
}], propDecorators: { save$: [{
|
|
320
|
+
type: Input
|
|
321
|
+
}], disabled$: [{
|
|
322
|
+
type: Input
|
|
323
|
+
}], pluginId: [{
|
|
324
|
+
type: Input
|
|
325
|
+
}], prefillConfiguration$: [{
|
|
326
|
+
type: Input
|
|
327
|
+
}], valid: [{
|
|
328
|
+
type: Output
|
|
329
|
+
}], configuration: [{
|
|
330
|
+
type: Output
|
|
331
|
+
}] } });
|
|
332
|
+
|
|
249
333
|
/*
|
|
250
334
|
* Copyright 2026 Ritense BV, the Netherlands.
|
|
251
335
|
*
|
|
@@ -265,10 +349,12 @@ class ParentChildPluginModule {
|
|
|
265
349
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
266
350
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, declarations: [ParentChildPluginConfigurationComponent,
|
|
267
351
|
ParentChildActionConfigurationComponent,
|
|
268
|
-
SyncToChildrenConfigurationComponent
|
|
352
|
+
SyncToChildrenConfigurationComponent,
|
|
353
|
+
SyncToParentConfigurationComponent], imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1], exports: [ParentChildPluginConfigurationComponent,
|
|
269
354
|
ParentChildActionConfigurationComponent,
|
|
270
|
-
SyncToChildrenConfigurationComponent
|
|
271
|
-
|
|
355
|
+
SyncToChildrenConfigurationComponent,
|
|
356
|
+
SyncToParentConfigurationComponent] }); }
|
|
357
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1] }); }
|
|
272
358
|
}
|
|
273
359
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, decorators: [{
|
|
274
360
|
type: NgModule,
|
|
@@ -277,12 +363,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
277
363
|
ParentChildPluginConfigurationComponent,
|
|
278
364
|
ParentChildActionConfigurationComponent,
|
|
279
365
|
SyncToChildrenConfigurationComponent,
|
|
366
|
+
SyncToParentConfigurationComponent,
|
|
280
367
|
],
|
|
281
|
-
imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule],
|
|
368
|
+
imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, InputModule$1],
|
|
282
369
|
exports: [
|
|
283
370
|
ParentChildPluginConfigurationComponent,
|
|
284
371
|
ParentChildActionConfigurationComponent,
|
|
285
372
|
SyncToChildrenConfigurationComponent,
|
|
373
|
+
SyncToParentConfigurationComponent,
|
|
286
374
|
],
|
|
287
375
|
}]
|
|
288
376
|
}] });
|
|
@@ -342,6 +430,7 @@ const parentChildPluginSpecification = {
|
|
|
342
430
|
functionConfigurationComponents: {
|
|
343
431
|
"connect-parent": ParentChildActionConfigurationComponent,
|
|
344
432
|
"sync-to-children": SyncToChildrenConfigurationComponent,
|
|
433
|
+
"sync-to-parent": SyncToParentConfigurationComponent,
|
|
345
434
|
},
|
|
346
435
|
pluginTranslations: {
|
|
347
436
|
nl: {
|
|
@@ -356,6 +445,13 @@ const parentChildPluginSpecification = {
|
|
|
356
445
|
mappings: "Mapping",
|
|
357
446
|
mappingSource: "Pad in bovenliggend document",
|
|
358
447
|
mappingTarget: "Pad in onderliggend document",
|
|
448
|
+
"sync-to-parent": "Synchroniseer naar bovenliggend document",
|
|
449
|
+
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.",
|
|
450
|
+
parentMappingSource: "Pad in onderliggend document",
|
|
451
|
+
parentMappingTarget: "Pad in bovenliggend document",
|
|
452
|
+
mappingMerge: "Lijst samenvoegen",
|
|
453
|
+
addMapping: "Mapping toevoegen",
|
|
454
|
+
deleteMapping: "Verwijderen",
|
|
359
455
|
},
|
|
360
456
|
en: {
|
|
361
457
|
title: "Parent Child Plugin",
|
|
@@ -369,6 +465,13 @@ const parentChildPluginSpecification = {
|
|
|
369
465
|
mappings: "Mapping",
|
|
370
466
|
mappingSource: "Path in parent document",
|
|
371
467
|
mappingTarget: "Path in child document",
|
|
468
|
+
"sync-to-parent": "Sync to parent document",
|
|
469
|
+
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.",
|
|
470
|
+
parentMappingSource: "Path in child document",
|
|
471
|
+
parentMappingTarget: "Path in parent document",
|
|
472
|
+
mappingMerge: "Merge list",
|
|
473
|
+
addMapping: "Add mapping",
|
|
474
|
+
deleteMapping: "Delete",
|
|
372
475
|
},
|
|
373
476
|
},
|
|
374
477
|
};
|
|
@@ -396,5 +499,5 @@ const parentChildPluginSpecification = {
|
|
|
396
499
|
* Generated bundle index. Do not edit.
|
|
397
500
|
*/
|
|
398
501
|
|
|
399
|
-
export { ParentChildActionConfigurationComponent, ParentChildPluginConfigurationComponent, ParentChildPluginModule, SyncToChildrenConfigurationComponent, parentChildPluginSpecification };
|
|
502
|
+
export { ParentChildActionConfigurationComponent, ParentChildPluginConfigurationComponent, ParentChildPluginModule, SyncToChildrenConfigurationComponent, SyncToParentConfigurationComponent, parentChildPluginSpecification };
|
|
400
503
|
//# 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,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC;AAC/B,QAAA,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;;AAGrB,IAAA,WAAW,CAAC,SAAkC,EAAA;AACpD,QAAA,MAAM,KAAK,GAAG,CAAC,CAAC,SAAS,CAAC,kBAAkB;AAC5C,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;AACvB,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;;IAGhB,oBAAoB,GAAA;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,MAAK;YACjD,aAAa,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC;AACzC,iBAAA,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;iBACZ,SAAS,CAAC,CAAC,CA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W,EAAE,oEAAoE;AACjF,YAAA,kBAAkB,EAAE,kBAAkB;AACtC,YAAA,iBAAiB,EAAE,8KAA8K;AACjM,YAAA,gBAAgB,EAAE,uCAAuC;AACzD,YAAA,kBAAkB,EAAE,6CAA6C;AACjE,YAAA,yBAAyB,EAAE,6KAA6K;AACxM,YAAA,QAAQ,EAAE,SAAS;AACnB,YAAA,aAAa,EAAE,8BAA8B;AAC7C,YAAA,aAAa,EAAE,8BAA8B;AAC9C,SAAA;AACD,QAAA,EAAE,EAAE;AACF,YAAA,KAAK,EAAE,qBAAqB;AAC5B,YAAA,gBAAgB,EAAE,yBAAyB;AAC3C,YAAA,WAAW,EAAE,iEAAiE;AAC9E,YAAA,kBAAkB,EAAE,oBAAoB;AACxC,YAAA,iBAAiB,EAAE,yJAAyJ;AAC5K,YAAA,gBAAgB,EAAE,oBAAoB;AACtC,YAAA,kBAAkB,EAAE,yBAAyB;AAC7C,YAAA,yBAAyB,EAAE,qJAAqJ;AAChL,YAAA,QAAQ,EAAE,SAAS;AACnB,YAAA,aAAa,EAAE,yBAAyB;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/parent-child-plugin-module.ts","../../src/lib/plugins/parent-child-plugin/assets/parent-child-plugin-logo.ts","../../src/lib/plugins/parent-child-plugin/assets/index.ts","../../src/lib/plugins/parent-child-plugin/parent-child-plugin.specification.ts","../../src/public_api.ts","../../src/valtimo-plugins-parent-child-plugin.ts"],"sourcesContent":["/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {PluginConfigurationData} from \"@valtimo/plugin\";\n\ninterface ParentChildPluginConfig extends PluginConfigurationData {\n}\n\ninterface ParentChildActionConfig {\n parentDocumentId: string;\n}\n\ninterface NodeMapping {\n source: string;\n target: string;\n merge?: boolean;\n}\n\ninterface SyncToChildrenConfig {\n mappings: NodeMapping[];\n}\n\ninterface SyncToParentConfig {\n mappings: NodeMapping[];\n}\n\nexport {ParentChildPluginConfig, ParentChildActionConfig, NodeMapping, SyncToChildrenConfig, SyncToParentConfig};\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from \"./config\";\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {PluginConfigurationComponent, PluginConfigurationData} from \"@valtimo/plugin\";\nimport {BehaviorSubject, combineLatest, Observable, Subscription, take} from \"rxjs\";\nimport {ParentChildPluginConfig} from \"../../models\";\n\n@Component({\n standalone: false,\n selector: \"valtimo-parent-child-plugin-configuration\",\n templateUrl: \"./parent-child-plugin-configuration.component.html\",\n})\nexport class ParentChildPluginConfigurationComponent implements PluginConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<ParentChildPluginConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<PluginConfigurationData> = new EventEmitter<PluginConfigurationData>();\n\n private saveSubscription!: Subscription;\n private readonly formValue$ = new BehaviorSubject<ParentChildPluginConfig | null>(null);\n private readonly valid$ = new BehaviorSubject<boolean>(false);\n\n ngOnInit(): void {\n this.openSaveSubscription();\n }\n\n ngOnDestroy() {\n this.saveSubscription?.unsubscribe();\n }\n\n formValueChange(formValue: ParentChildPluginConfig): void {\n this.formValue$.next(formValue);\n this.handleValid(formValue);\n }\n\n private handleValid(formValue: ParentChildPluginConfig): void {\n const valid = !!formValue.configurationTitle;\n this.valid$.next(valid);\n this.valid.emit(valid);\n }\n\n private openSaveSubscription(): void {\n this.saveSubscription = this.save$?.subscribe(() => {\n combineLatest([this.formValue$, this.valid$])\n .pipe(take(1))\n .subscribe(([formValue, valid]) => {\n if (valid) {\n this.configuration.emit(formValue!);\n }\n });\n });\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [widthPx]=\"350\"\n placeholder=\"Parent Child Plugin\"\n >\n </v-input>\n</v-form>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {FunctionConfigurationComponent, FunctionConfigurationData} from \"@valtimo/plugin\";\nimport {BehaviorSubject, combineLatest, Observable, Subscription, switchMap, take} from \"rxjs\";\nimport {ParentChildActionConfig} from \"../../models\";\n\n@Component({\n standalone: false,\n selector: \"valtimo-parent-child-action-configuration\",\n templateUrl: \"./parent-child-action-configuration.component.html\",\n})\nexport class ParentChildActionConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<ParentChildActionConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<FunctionConfigurationData> = new EventEmitter<FunctionConfigurationData>();\n\n private saveSubscription!: Subscription;\n private readonly formValue$ = new BehaviorSubject<ParentChildActionConfig | null>(null);\n private readonly valid$ = new BehaviorSubject<boolean>(false);\n\n public ngOnInit(): void {\n this.openSaveSubscription();\n }\n\n public ngOnDestroy() {\n this.saveSubscription?.unsubscribe();\n }\n\n public formValueChange(formValue: ParentChildActionConfig): void {\n this.formValue$.next(formValue);\n this.handleValid(formValue);\n }\n\n private handleValid(formValue: ParentChildActionConfig): void {\n const valid = !!formValue.parentDocumentId;\n this.valid$.next(valid);\n this.valid.emit(valid);\n }\n\n private openSaveSubscription(): void {\n this.saveSubscription = this.save$\n ?.pipe(\n switchMap(() => combineLatest([this.formValue$, this.valid$]).pipe(take(1)))\n )\n .subscribe(([formValue, valid]) => {\n if (valid) {\n this.configuration.emit(formValue!);\n }\n });\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<p style=\"margin-bottom: 1.5rem\">{{ 'actionDescription' | pluginTranslate: pluginId | async }}</p>\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"parentDocumentId\"\n [title]=\"'parentDocumentId' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.parentDocumentId\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [widthPx]=\"350\"\n >\n </v-input>\n</v-form>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {FunctionConfigurationComponent, FunctionConfigurationData} from \"@valtimo/plugin\";\nimport {MultiInputKeyValue, MultiInputOutput} from \"@valtimo/components\";\nimport {BehaviorSubject, combineLatest, map, Observable, of, Subscription, switchMap, take} from \"rxjs\";\nimport {SyncToChildrenConfig} from \"../../models\";\n\n@Component({\n standalone: false,\n selector: \"valtimo-sync-to-children-configuration\",\n templateUrl: \"./sync-to-children-configuration.component.html\",\n})\nexport class SyncToChildrenConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<SyncToChildrenConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<FunctionConfigurationData> = new EventEmitter<FunctionConfigurationData>();\n\n public prefillMappings$!: Observable<MultiInputKeyValue[]>;\n\n private saveSubscription!: Subscription;\n private readonly formValue$ = new BehaviorSubject<SyncToChildrenConfig | null>(null);\n private readonly valid$ = new BehaviorSubject<boolean>(false);\n\n public ngOnInit(): void {\n this.prefillMappings$ = (this.prefillConfiguration$ ?? of(null)).pipe(\n map(prefill => (prefill?.mappings ?? []).map(mapping => ({key: mapping.source, value: mapping.target})))\n );\n this.openSaveSubscription();\n }\n\n public ngOnDestroy() {\n this.saveSubscription?.unsubscribe();\n }\n\n public mappingsChange(values: MultiInputOutput): void {\n const formValue: SyncToChildrenConfig = {\n mappings: (values as MultiInputKeyValue[]).map(value => ({source: value.key ?? \"\", target: value.value ?? \"\"})),\n };\n this.formValue$.next(formValue);\n this.handleValid(formValue);\n }\n\n private handleValid(formValue: SyncToChildrenConfig): void {\n const isPointer = (path: string) => path.startsWith(\"/\");\n const valid =\n formValue.mappings.length > 0 &&\n formValue.mappings.every(mapping => isPointer(mapping.source) && isPointer(mapping.target));\n this.valid$.next(valid);\n this.valid.emit(valid);\n }\n\n private openSaveSubscription(): void {\n this.saveSubscription = this.save$\n ?.pipe(\n switchMap(() => combineLatest([this.formValue$, this.valid$]).pipe(take(1)))\n )\n .subscribe(([formValue, valid]) => {\n if (valid) {\n this.configuration.emit(formValue!);\n }\n });\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<p style=\"margin-bottom: 1.5rem\">{{ 'syncToChildrenDescription' | pluginTranslate: pluginId | async }}</p>\n\n<valtimo-carbon-multi-input\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillMappings$ | async\n } as obs\"\n type=\"keyValue\"\n name=\"mappings\"\n [title]=\"'mappings' | pluginTranslate: pluginId | async\"\n [keyColumnTitle]=\"'mappingSource' | pluginTranslate: pluginId | async\"\n [valueColumnTitle]=\"'mappingTarget' | pluginTranslate: pluginId | async\"\n [defaultValues]=\"obs.prefill\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [margin]=\"true\"\n (valueChange)=\"mappingsChange($event)\"\n></valtimo-carbon-multi-input>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from \"@angular/core\";\nimport {FunctionConfigurationComponent, FunctionConfigurationData} from \"@valtimo/plugin\";\nimport {Observable, of, Subscription, take} from \"rxjs\";\nimport {NodeMapping, SyncToParentConfig} from \"../../models\";\n\n// Own mapping rows instead of valtimo-carbon-multi-input, which has no checkbox column for merge.\n@Component({\n standalone: false,\n selector: \"valtimo-sync-to-parent-configuration\",\n templateUrl: \"./sync-to-parent-configuration.component.html\",\n})\nexport class SyncToParentConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {\n @Input() save$!: Observable<void>;\n @Input() disabled$!: Observable<boolean>;\n @Input() pluginId!: string;\n @Input() prefillConfiguration$!: Observable<SyncToParentConfig>;\n @Output() valid: EventEmitter<boolean> = new EventEmitter<boolean>();\n @Output() configuration: EventEmitter<FunctionConfigurationData> = new EventEmitter<FunctionConfigurationData>();\n\n public mappings: NodeMapping[] = [this.emptyMapping()];\n\n private readonly subscriptions = new Subscription();\n\n public ngOnInit(): void {\n this.subscriptions.add(\n (this.prefillConfiguration$ ?? of(null)).pipe(take(1)).subscribe(prefill => {\n if (prefill?.mappings?.length) {\n this.mappings = prefill.mappings.map(mapping => ({...mapping, merge: !!mapping.merge}));\n }\n this.emitValid();\n })\n );\n this.subscriptions.add(\n this.save$?.subscribe(() => {\n if (this.isValid()) {\n this.configuration.emit({mappings: this.mappings});\n }\n })\n );\n }\n\n public ngOnDestroy(): void {\n this.subscriptions.unsubscribe();\n }\n\n public change(index: number, change: Partial<NodeMapping>): void {\n this.mappings[index] = {...this.mappings[index], ...change};\n this.emitValid();\n }\n\n public add(): void {\n this.mappings = [...this.mappings, this.emptyMapping()];\n this.emitValid();\n }\n\n public remove(index: number): void {\n this.mappings = this.mappings.filter((_, i) => i !== index);\n this.emitValid();\n }\n\n private emitValid(): void {\n this.valid.emit(this.isValid());\n }\n\n private isValid(): boolean {\n const isPointer = (path: string) => path.startsWith(\"/\");\n return (\n this.mappings.length > 0 &&\n this.mappings.every(mapping => isPointer(mapping.source) && isPointer(mapping.target))\n );\n }\n\n private emptyMapping(): NodeMapping {\n return {source: \"\", target: \"\", merge: false};\n }\n}\n","<!--\n ~ Copyright 2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<p style=\"margin-bottom: 1.5rem\">{{ 'syncToParentDescription' | pluginTranslate: pluginId | async }}</p>\n\n<ng-container *ngIf=\"{disabled: disabled$ | async} as obs\">\n <cds-label>{{ 'mappings' | pluginTranslate: pluginId | async }}</cds-label>\n\n <div\n *ngFor=\"let mapping of mappings; index as i\"\n style=\"display: flex; gap: 1rem; align-items: flex-end; margin-bottom: 0.5rem\"\n >\n <div style=\"flex: 1\">\n <cds-label *ngIf=\"i === 0\">{{ 'parentMappingSource' | pluginTranslate: pluginId | async }}</cds-label>\n <input\n cdsText\n [attr.aria-label]=\"'parentMappingSource' | pluginTranslate: pluginId | async\"\n [value]=\"mapping.source\"\n [disabled]=\"obs.disabled\"\n (input)=\"change(i, {source: $any($event.target).value})\"\n />\n </div>\n\n <div style=\"flex: 1\">\n <cds-label *ngIf=\"i === 0\">{{ 'parentMappingTarget' | pluginTranslate: pluginId | async }}</cds-label>\n <input\n cdsText\n [attr.aria-label]=\"'parentMappingTarget' | pluginTranslate: pluginId | async\"\n [value]=\"mapping.target\"\n [disabled]=\"obs.disabled\"\n (input)=\"change(i, {target: $any($event.target).value})\"\n />\n </div>\n\n <cds-checkbox\n [checked]=\"mapping.merge\"\n [disabled]=\"obs.disabled\"\n (checkedChange)=\"change(i, {merge: $event})\"\n >\n {{ 'mappingMerge' | pluginTranslate: pluginId | async }}\n </cds-checkbox>\n\n <button\n cdsButton=\"danger--ghost\"\n type=\"button\"\n [disabled]=\"obs.disabled || mappings.length === 1\"\n (click)=\"remove(i)\"\n >\n {{ 'deleteMapping' | pluginTranslate: pluginId | async }}\n </button>\n </div>\n\n <button cdsButton=\"primary\" size=\"sm\" type=\"button\" [disabled]=\"obs.disabled\" (click)=\"add()\">\n {{ 'addMapping' | pluginTranslate: pluginId | async }}\n </button>\n</ng-container>\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\nimport {PluginTranslatePipeModule} from \"@valtimo/plugin\";\nimport {ButtonModule, CheckboxModule, InputModule as CarbonInputModule} from \"carbon-components-angular\";\nimport {CarbonMultiInputModule, FormModule, InputModule as ValtimoInputModule} from \"@valtimo/components\";\nimport {ParentChildPluginConfigurationComponent} from \"./components/parent-child-plugin-configuration/parent-child-plugin-configuration.component\";\nimport {ParentChildActionConfigurationComponent} from \"./components/parent-child-action-configuration/parent-child-action-configuration.component\";\nimport {SyncToChildrenConfigurationComponent} from \"./components/sync-to-children-configuration/sync-to-children-configuration.component\";\nimport {SyncToParentConfigurationComponent} from \"./components/sync-to-parent-configuration/sync-to-parent-configuration.component\";\n\n@NgModule({\n declarations: [\n ParentChildPluginConfigurationComponent,\n ParentChildActionConfigurationComponent,\n SyncToChildrenConfigurationComponent,\n SyncToParentConfigurationComponent,\n ],\n imports: [CommonModule, PluginTranslatePipeModule, FormModule, ValtimoInputModule, CarbonMultiInputModule, ButtonModule, CheckboxModule, CarbonInputModule],\n exports: [\n ParentChildPluginConfigurationComponent,\n ParentChildActionConfigurationComponent,\n SyncToChildrenConfigurationComponent,\n SyncToParentConfigurationComponent,\n ],\n})\nexport class ParentChildPluginModule {\n}\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst PARENT_CHILD_PLUGIN_LOGO_BASE64 =\n \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDA1MGIyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTIiIGN5PSI1IiByPSIzIi8+PGxpbmUgeDE9IjEyIiB5MT0iOCIgeDI9IjEyIiB5Mj0iMTIiLz48bGluZSB4MT0iNyIgeTE9IjEyIiB4Mj0iMTciIHkyPSIxMiIvPjxsaW5lIHgxPSI3IiB5MT0iMTIiIHgyPSI3IiB5Mj0iMTYiLz48bGluZSB4MT0iMTciIHkxPSIxMiIgeDI9IjE3IiB5Mj0iMTYiLz48Y2lyY2xlIGN4PSI3IiBjeT0iMTkiIHI9IjIuNSIvPjxjaXJjbGUgY3g9IjE3IiBjeT0iMTkiIHI9IjIuNSIvPjwvc3ZnPg==\";\n\nexport {PARENT_CHILD_PLUGIN_LOGO_BASE64};\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from \"./parent-child-plugin-logo\";\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {PluginSpecification} from \"@valtimo/plugin\";\nimport {ParentChildPluginConfigurationComponent} from \"./components/parent-child-plugin-configuration/parent-child-plugin-configuration.component\";\nimport {PARENT_CHILD_PLUGIN_LOGO_BASE64} from \"./assets\";\nimport {ParentChildActionConfigurationComponent} from \"./components/parent-child-action-configuration/parent-child-action-configuration.component\";\nimport {SyncToChildrenConfigurationComponent} from \"./components/sync-to-children-configuration/sync-to-children-configuration.component\";\nimport {SyncToParentConfigurationComponent} from \"./components/sync-to-parent-configuration/sync-to-parent-configuration.component\";\n\nconst parentChildPluginSpecification: PluginSpecification = {\n pluginId: \"parent-child-plugin\",\n pluginConfigurationComponent: ParentChildPluginConfigurationComponent,\n pluginLogoBase64: PARENT_CHILD_PLUGIN_LOGO_BASE64,\n functionConfigurationComponents: {\n \"connect-parent\": ParentChildActionConfigurationComponent,\n \"sync-to-children\": SyncToChildrenConfigurationComponent,\n \"sync-to-parent\": SyncToParentConfigurationComponent,\n },\n pluginTranslations: {\n nl: {\n title: \"Parent Child Plugin\",\n \"connect-parent\": \"Koppel bovenliggend document\",\n description: \"Dit is een voorbeeld plugin die beschikt over een API call action.\",\n configurationTitle: \"Configuratienaam\",\n actionDescription: \"Deze actie koppelt het huidige document aan een bovenliggend document: het huidige document krijgt een PARENT relatie en het bovenliggend document krijgt een CHILD relatie.\",\n parentDocumentId: \"Document ID van bovenliggend document\",\n \"sync-to-children\": \"Synchroniseer naar onderliggende documenten\",\n syncToChildrenDescription: \"Deze actie kopieert de geconfigureerde onderdelen van het huidige document naar alle onderliggende (CHILD) documenten. Paden zijn JSON pointers, bijvoorbeeld /destination.\",\n mappings: \"Mapping\",\n mappingSource: \"Pad in bovenliggend document\",\n mappingTarget: \"Pad in onderliggend document\",\n \"sync-to-parent\": \"Synchroniseer naar bovenliggend document\",\n syncToParentDescription: \"Deze actie kopieert de geconfigureerde onderdelen van het huidige document naar het bovenliggende (PARENT) document. Paden zijn JSON pointers, bijvoorbeeld /destination. Met 'Lijst samenvoegen' wordt een lijst toegevoegd aan de bestaande lijst in het bovenliggende document (zonder dubbelen) in plaats van die te vervangen.\",\n parentMappingSource: \"Pad in onderliggend document\",\n parentMappingTarget: \"Pad in bovenliggend document\",\n mappingMerge: \"Lijst samenvoegen\",\n addMapping: \"Mapping toevoegen\",\n deleteMapping: \"Verwijderen\",\n },\n en: {\n title: \"Parent Child Plugin\",\n \"connect-parent\": \"Connect parent document\",\n description: \"This is a parent-child plugin demonstrating an API call action.\",\n configurationTitle: \"Configuration Name\",\n actionDescription: \"This action links the current document to a parent document: the current document gets a PARENT relation and the parent document gets a CHILD relation.\",\n parentDocumentId: \"Parent document ID\",\n \"sync-to-children\": \"Sync to child documents\",\n syncToChildrenDescription: \"This action copies the configured nodes of the current document into all of its child documents. Paths are JSON pointers, for example /destination.\",\n mappings: \"Mapping\",\n mappingSource: \"Path in parent document\",\n mappingTarget: \"Path in child document\",\n \"sync-to-parent\": \"Sync to parent document\",\n syncToParentDescription: \"This action copies the configured nodes of the current document into its parent document. Paths are JSON pointers, for example /destination. With 'Merge list', a list is added to the existing list in the parent document (without duplicates) instead of replacing it.\",\n parentMappingSource: \"Path in child document\",\n parentMappingTarget: \"Path in parent document\",\n mappingMerge: \"Merge list\",\n addMapping: \"Add mapping\",\n deleteMapping: \"Delete\",\n },\n },\n};\n\nexport {parentChildPluginSpecification};\n","/*\n * Copyright 2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of parent-child-plugin\n */\n\nexport * from \"./lib/plugins/parent-child-plugin/models\";\nexport * from \"./lib/plugins/parent-child-plugin/parent-child-plugin-module\";\nexport * from \"./lib/plugins/parent-child-plugin/parent-child-plugin.specification\";\nexport * from \"./lib/plugins/parent-child-plugin/components/parent-child-plugin-configuration/parent-child-plugin-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/parent-child-action-configuration/parent-child-action-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component\";\nexport * from \"./lib/plugins/parent-child-plugin/components/sync-to-parent-configuration/sync-to-parent-configuration.component\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i2","ValtimoInputModule","CarbonInputModule"],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MAYU,uCAAuC,CAAA;AALpD,IAAA,WAAA,GAAA;AAUY,QAAA,IAAA,CAAA,KAAK,GAA0B,IAAI,YAAY,EAAW;AAC1D,QAAA,IAAA,CAAA,aAAa,GAA0C,IAAI,YAAY,EAA2B;AAG3F,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,eAAe,CAAiC,IAAI,CAAC;AACtE,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAgC9D;IA9BC,QAAQ,GAAA;QACN,IAAI,CAAC,oBAAoB,EAAE;;IAG7B,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,gBAAgB,EAAE,WAAW,EAAE;;AAGtC,IAAA,eAAe,CAAC,SAAkC,EAAA;AAChD,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS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QAA2Q;AACpS,YAAA,mBAAmB,EAAE,wBAAwB;AAC7C,YAAA,mBAAmB,EAAE,yBAAyB;AAC9C,YAAA,YAAY,EAAE,YAAY;AAC1B,YAAA,UAAU,EAAE,aAAa;AACzB,YAAA,aAAa,EAAE,QAAQ;AACxB,SAAA;AACF,KAAA;;;ACzEH;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
|
|
@@ -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
|
-
|
|
15
|
+
interface SyncToParentConfig {
|
|
16
|
+
mappings: NodeMapping[];
|
|
17
|
+
}
|
|
18
|
+
export { ParentChildPluginConfig, ParentChildActionConfig, NodeMapping, SyncToChildrenConfig, SyncToParentConfig };
|
|
@@ -2,11 +2,13 @@ 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 "
|
|
6
|
-
import * as i5 from "@
|
|
7
|
-
import * as i6 from "@valtimo/
|
|
5
|
+
import * as i4 from "./components/sync-to-parent-configuration/sync-to-parent-configuration.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "@valtimo/plugin";
|
|
8
|
+
import * as i7 from "@valtimo/components";
|
|
9
|
+
import * as i8 from "carbon-components-angular";
|
|
8
10
|
export declare class ParentChildPluginModule {
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParentChildPluginModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ParentChildPluginModule, [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent, typeof i3.SyncToChildrenConfigurationComponent], [typeof
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ParentChildPluginModule, [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent, typeof i3.SyncToChildrenConfigurationComponent, typeof i4.SyncToParentConfigurationComponent], [typeof i5.CommonModule, typeof i6.PluginTranslatePipeModule, typeof i7.FormModule, typeof i7.InputModule, typeof i7.CarbonMultiInputModule, typeof i8.ButtonModule, typeof i8.CheckboxModule, typeof i8.InputModule], [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent, typeof i3.SyncToChildrenConfigurationComponent, typeof i4.SyncToParentConfigurationComponent]>;
|
|
11
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<ParentChildPluginModule>;
|
|
12
14
|
}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ 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";
|