@valtimo-plugins/parent-child-plugin 1.0.1 → 1.1.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 +103 -8
- package/fesm2022/valtimo-plugins-parent-child-plugin.mjs.map +1 -1
- package/lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component.d.ts +25 -0
- package/lib/plugins/parent-child-plugin/models/config.d.ts +8 -1
- package/lib/plugins/parent-child-plugin/parent-child-plugin-module.d.ts +5 -4
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -5,8 +5,8 @@ import { CommonModule } from '@angular/common';
|
|
|
5
5
|
import * as i3 from '@valtimo/plugin';
|
|
6
6
|
import { PluginTranslatePipeModule } from '@valtimo/plugin';
|
|
7
7
|
import * as i2 from '@valtimo/components';
|
|
8
|
-
import { FormModule, InputModule } from '@valtimo/components';
|
|
9
|
-
import { BehaviorSubject, combineLatest, take, switchMap } from 'rxjs';
|
|
8
|
+
import { FormModule, InputModule, CarbonMultiInputModule } from '@valtimo/components';
|
|
9
|
+
import { BehaviorSubject, combineLatest, take, switchMap, of, map } from 'rxjs';
|
|
10
10
|
|
|
11
11
|
/*
|
|
12
12
|
* Copyright 2026 Ritense BV, the Netherlands.
|
|
@@ -174,6 +174,78 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
174
174
|
type: Output
|
|
175
175
|
}] } });
|
|
176
176
|
|
|
177
|
+
/*
|
|
178
|
+
* Copyright 2026 Ritense BV, the Netherlands.
|
|
179
|
+
*
|
|
180
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
181
|
+
* you may not use this file except in compliance with the License.
|
|
182
|
+
* You may obtain a copy of the License at
|
|
183
|
+
*
|
|
184
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
185
|
+
*
|
|
186
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
188
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
* See the License for the specific language governing permissions and
|
|
190
|
+
* limitations under the License.
|
|
191
|
+
*/
|
|
192
|
+
class SyncToChildrenConfigurationComponent {
|
|
193
|
+
constructor() {
|
|
194
|
+
this.valid = new EventEmitter();
|
|
195
|
+
this.configuration = new EventEmitter();
|
|
196
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
197
|
+
this.valid$ = new BehaviorSubject(false);
|
|
198
|
+
}
|
|
199
|
+
ngOnInit() {
|
|
200
|
+
this.prefillMappings$ = (this.prefillConfiguration$ ?? of(null)).pipe(map(prefill => (prefill?.mappings ?? []).map(mapping => ({ key: mapping.source, value: mapping.target }))));
|
|
201
|
+
this.openSaveSubscription();
|
|
202
|
+
}
|
|
203
|
+
ngOnDestroy() {
|
|
204
|
+
this.saveSubscription?.unsubscribe();
|
|
205
|
+
}
|
|
206
|
+
mappingsChange(values) {
|
|
207
|
+
const formValue = {
|
|
208
|
+
mappings: values.map(value => ({ source: value.key ?? "", target: value.value ?? "" })),
|
|
209
|
+
};
|
|
210
|
+
this.formValue$.next(formValue);
|
|
211
|
+
this.handleValid(formValue);
|
|
212
|
+
}
|
|
213
|
+
handleValid(formValue) {
|
|
214
|
+
const isPointer = (path) => path.startsWith("/");
|
|
215
|
+
const valid = formValue.mappings.length > 0 &&
|
|
216
|
+
formValue.mappings.every(mapping => isPointer(mapping.source) && isPointer(mapping.target));
|
|
217
|
+
this.valid$.next(valid);
|
|
218
|
+
this.valid.emit(valid);
|
|
219
|
+
}
|
|
220
|
+
openSaveSubscription() {
|
|
221
|
+
this.saveSubscription = this.save$
|
|
222
|
+
?.pipe(switchMap(() => combineLatest([this.formValue$, this.valid$]).pipe(take(1))))
|
|
223
|
+
.subscribe(([formValue, valid]) => {
|
|
224
|
+
if (valid) {
|
|
225
|
+
this.configuration.emit(formValue);
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SyncToChildrenConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
230
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: SyncToChildrenConfigurationComponent, isStandalone: false, selector: "valtimo-sync-to-children-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\">{{ '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", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["addRowText", "addButtonType", "addRowTranslationKey", "arbitraryAmountTitles", "arbitraryValueAmount", "defaultValues", "deleteButtonType", "deleteRowText", "deleteRowTranslationKey", "disabled", "dropdownColumnTitle", "dropdownItems", "dropdownWidth", "fullWidth", "hideAddButton", "hideDeleteButton", "initialAmountOfRows", "keyColumnTitle", "margin", "maxRows", "minimumAmountOfRows", "name", "required", "title", "titleTranslationKey", "tooltip", "type", "valueColumnTitle", "valuePathSelectorCaseDefinitionKey", "valuePathSelectorPrefixes", "valuePathSelectorShowCaseDefinitionSelector", "valuePathSelectorNotation", "keyColumnFlex", "dropdownColumnFlex", "valueColumnFlex"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.PluginTranslatePipe, name: "pluginTranslate" }] }); }
|
|
231
|
+
}
|
|
232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SyncToChildrenConfigurationComponent, decorators: [{
|
|
233
|
+
type: Component,
|
|
234
|
+
args: [{ standalone: false, selector: "valtimo-sync-to-children-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\">{{ '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" }]
|
|
235
|
+
}], propDecorators: { save$: [{
|
|
236
|
+
type: Input
|
|
237
|
+
}], disabled$: [{
|
|
238
|
+
type: Input
|
|
239
|
+
}], pluginId: [{
|
|
240
|
+
type: Input
|
|
241
|
+
}], prefillConfiguration$: [{
|
|
242
|
+
type: Input
|
|
243
|
+
}], valid: [{
|
|
244
|
+
type: Output
|
|
245
|
+
}], configuration: [{
|
|
246
|
+
type: Output
|
|
247
|
+
}] } });
|
|
248
|
+
|
|
177
249
|
/*
|
|
178
250
|
* Copyright 2026 Ritense BV, the Netherlands.
|
|
179
251
|
*
|
|
@@ -191,15 +263,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
191
263
|
*/
|
|
192
264
|
class ParentChildPluginModule {
|
|
193
265
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
194
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, declarations: [ParentChildPluginConfigurationComponent,
|
|
195
|
-
|
|
266
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, declarations: [ParentChildPluginConfigurationComponent,
|
|
267
|
+
ParentChildActionConfigurationComponent,
|
|
268
|
+
SyncToChildrenConfigurationComponent], imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule], exports: [ParentChildPluginConfigurationComponent,
|
|
269
|
+
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] }); }
|
|
196
272
|
}
|
|
197
273
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ParentChildPluginModule, decorators: [{
|
|
198
274
|
type: NgModule,
|
|
199
275
|
args: [{
|
|
200
|
-
declarations: [
|
|
201
|
-
|
|
202
|
-
|
|
276
|
+
declarations: [
|
|
277
|
+
ParentChildPluginConfigurationComponent,
|
|
278
|
+
ParentChildActionConfigurationComponent,
|
|
279
|
+
SyncToChildrenConfigurationComponent,
|
|
280
|
+
],
|
|
281
|
+
imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, CarbonMultiInputModule],
|
|
282
|
+
exports: [
|
|
283
|
+
ParentChildPluginConfigurationComponent,
|
|
284
|
+
ParentChildActionConfigurationComponent,
|
|
285
|
+
SyncToChildrenConfigurationComponent,
|
|
286
|
+
],
|
|
203
287
|
}]
|
|
204
288
|
}] });
|
|
205
289
|
|
|
@@ -257,6 +341,7 @@ const parentChildPluginSpecification = {
|
|
|
257
341
|
pluginLogoBase64: PARENT_CHILD_PLUGIN_LOGO_BASE64,
|
|
258
342
|
functionConfigurationComponents: {
|
|
259
343
|
"connect-parent": ParentChildActionConfigurationComponent,
|
|
344
|
+
"sync-to-children": SyncToChildrenConfigurationComponent,
|
|
260
345
|
},
|
|
261
346
|
pluginTranslations: {
|
|
262
347
|
nl: {
|
|
@@ -266,6 +351,11 @@ const parentChildPluginSpecification = {
|
|
|
266
351
|
configurationTitle: "Configuratienaam",
|
|
267
352
|
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.",
|
|
268
353
|
parentDocumentId: "Document ID van bovenliggend document",
|
|
354
|
+
"sync-to-children": "Synchroniseer naar onderliggende documenten",
|
|
355
|
+
syncToChildrenDescription: "Deze actie kopieert de geconfigureerde onderdelen van het huidige document naar alle onderliggende (CHILD) documenten. Paden zijn JSON pointers, bijvoorbeeld /destination.",
|
|
356
|
+
mappings: "Mapping",
|
|
357
|
+
mappingSource: "Pad in bovenliggend document",
|
|
358
|
+
mappingTarget: "Pad in onderliggend document",
|
|
269
359
|
},
|
|
270
360
|
en: {
|
|
271
361
|
title: "Parent Child Plugin",
|
|
@@ -274,6 +364,11 @@ const parentChildPluginSpecification = {
|
|
|
274
364
|
configurationTitle: "Configuration Name",
|
|
275
365
|
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.",
|
|
276
366
|
parentDocumentId: "Parent document ID",
|
|
367
|
+
"sync-to-children": "Sync to child documents",
|
|
368
|
+
syncToChildrenDescription: "This action copies the configured nodes of the current document into all of its child documents. Paths are JSON pointers, for example /destination.",
|
|
369
|
+
mappings: "Mapping",
|
|
370
|
+
mappingSource: "Path in parent document",
|
|
371
|
+
mappingTarget: "Path in child document",
|
|
277
372
|
},
|
|
278
373
|
},
|
|
279
374
|
};
|
|
@@ -301,5 +396,5 @@ const parentChildPluginSpecification = {
|
|
|
301
396
|
* Generated bundle index. Do not edit.
|
|
302
397
|
*/
|
|
303
398
|
|
|
304
|
-
export { ParentChildActionConfigurationComponent, ParentChildPluginConfigurationComponent, ParentChildPluginModule, parentChildPluginSpecification };
|
|
399
|
+
export { ParentChildActionConfigurationComponent, ParentChildPluginConfigurationComponent, ParentChildPluginModule, SyncToChildrenConfigurationComponent, parentChildPluginSpecification };
|
|
305
400
|
//# 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/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\nexport {ParentChildPluginConfig, ParentChildActionConfig};\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 {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\nimport {PluginTranslatePipeModule} from \"@valtimo/plugin\";\nimport {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\";\n\n@NgModule({\n declarations: [ParentChildPluginConfigurationComponent, ParentChildActionConfigurationComponent],\n imports: [CommonModule, PluginTranslatePipeModule, FormModule, ValtimoInputModule],\n exports: [ParentChildPluginConfigurationComponent, ParentChildActionConfigurationComponent],\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\";\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 },\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 },\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 },\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\";\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,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;;;;;;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/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,CA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;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { FunctionConfigurationComponent, FunctionConfigurationData } from "@valtimo/plugin";
|
|
3
|
+
import { MultiInputKeyValue, MultiInputOutput } from "@valtimo/components";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
import { SyncToChildrenConfig } from "../../models";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SyncToChildrenConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {
|
|
8
|
+
save$: Observable<void>;
|
|
9
|
+
disabled$: Observable<boolean>;
|
|
10
|
+
pluginId: string;
|
|
11
|
+
prefillConfiguration$: Observable<SyncToChildrenConfig>;
|
|
12
|
+
valid: EventEmitter<boolean>;
|
|
13
|
+
configuration: EventEmitter<FunctionConfigurationData>;
|
|
14
|
+
prefillMappings$: Observable<MultiInputKeyValue[]>;
|
|
15
|
+
private saveSubscription;
|
|
16
|
+
private readonly formValue$;
|
|
17
|
+
private readonly valid$;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
mappingsChange(values: MultiInputOutput): void;
|
|
21
|
+
private handleValid;
|
|
22
|
+
private openSaveSubscription;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SyncToChildrenConfigurationComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SyncToChildrenConfigurationComponent, "valtimo-sync-to-children-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
|
+
}
|
|
@@ -4,4 +4,11 @@ interface ParentChildPluginConfig extends PluginConfigurationData {
|
|
|
4
4
|
interface ParentChildActionConfig {
|
|
5
5
|
parentDocumentId: string;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
interface NodeMapping {
|
|
8
|
+
source: string;
|
|
9
|
+
target: string;
|
|
10
|
+
}
|
|
11
|
+
interface SyncToChildrenConfig {
|
|
12
|
+
mappings: NodeMapping[];
|
|
13
|
+
}
|
|
14
|
+
export { ParentChildPluginConfig, ParentChildActionConfig, NodeMapping, SyncToChildrenConfig };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
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
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "@
|
|
6
|
-
import * as i5 from "@valtimo/
|
|
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";
|
|
7
8
|
export declare class ParentChildPluginModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParentChildPluginModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ParentChildPluginModule, [typeof i1.ParentChildPluginConfigurationComponent, typeof i2.ParentChildActionConfigurationComponent], [typeof
|
|
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]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<ParentChildPluginModule>;
|
|
11
12
|
}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export * from "./lib/plugins/parent-child-plugin/parent-child-plugin-module";
|
|
|
3
3
|
export * from "./lib/plugins/parent-child-plugin/parent-child-plugin.specification";
|
|
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
|
+
export * from "./lib/plugins/parent-child-plugin/components/sync-to-children-configuration/sync-to-children-configuration.component";
|