@valtimo/plugin 13.27.0 → 13.28.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-plugin.mjs +7 -43
- package/fesm2022/valtimo-plugin.mjs.map +1 -1
- package/lib/plugins/zaken-api/components/zaken-api-configuration/zaken-api-configuration.component.d.ts +1 -6
- package/lib/plugins/zaken-api/components/zaken-api-configuration/zaken-api-configuration.component.d.ts.map +1 -1
- package/lib/plugins/zaken-api/models/config.d.ts +0 -2
- package/lib/plugins/zaken-api/models/config.d.ts.map +1 -1
- package/lib/plugins/zaken-api/zaken-api-plugin.specification.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3383,49 +3383,23 @@ class ZakenApiConfigurationComponent {
|
|
|
3383
3383
|
id: configuration.id,
|
|
3384
3384
|
text: `${configuration.title} - ${this.pluginTranslationService.instant('title', configuration.pluginDefinition.key)}`,
|
|
3385
3385
|
}))));
|
|
3386
|
-
this.noteEventListenerEnabled$ = new BehaviorSubject(false);
|
|
3387
3386
|
this.formValue$ = new BehaviorSubject(null);
|
|
3388
3387
|
this.valid$ = new BehaviorSubject(false);
|
|
3389
3388
|
}
|
|
3390
3389
|
ngOnInit() {
|
|
3391
|
-
this.initNoteEventListenerEnabled();
|
|
3392
|
-
this.openEventListenerEnabledSubscription();
|
|
3393
3390
|
this.openSaveSubscription();
|
|
3394
3391
|
}
|
|
3395
3392
|
ngOnDestroy() {
|
|
3396
3393
|
this._saveSubscription?.unsubscribe();
|
|
3397
|
-
this._eventListenerEnabledSubscription?.unsubscribe();
|
|
3398
3394
|
}
|
|
3399
3395
|
formValueChange(formValue) {
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
noteEventListenerEnabled: this.noteEventListenerEnabled$.getValue()
|
|
3403
|
-
};
|
|
3404
|
-
this.formValue$.next(formValueIncludingToggle);
|
|
3405
|
-
this.handleValid(formValueIncludingToggle);
|
|
3406
|
-
}
|
|
3407
|
-
onNoteEventListenerEnabledChange(event) {
|
|
3408
|
-
this.noteEventListenerEnabled$.next(event);
|
|
3409
|
-
}
|
|
3410
|
-
initNoteEventListenerEnabled() {
|
|
3411
|
-
this.prefillConfiguration$.pipe(take(1)).subscribe(configuration => {
|
|
3412
|
-
this.noteEventListenerEnabled$.next(configuration.noteEventListenerEnabled);
|
|
3413
|
-
});
|
|
3414
|
-
}
|
|
3415
|
-
openEventListenerEnabledSubscription() {
|
|
3416
|
-
this._eventListenerEnabledSubscription = this.noteEventListenerEnabled$.subscribe(value => {
|
|
3417
|
-
this.formValueChange(this.formValue$.getValue());
|
|
3418
|
-
});
|
|
3396
|
+
this.formValue$.next(formValue);
|
|
3397
|
+
this.handleValid(formValue);
|
|
3419
3398
|
}
|
|
3420
3399
|
handleValid(formValue) {
|
|
3421
3400
|
const valid = !!(formValue.configurationTitle &&
|
|
3422
3401
|
formValue.url &&
|
|
3423
|
-
formValue.authenticationPluginConfiguration
|
|
3424
|
-
formValue.noteEventListenerEnabled !== null &&
|
|
3425
|
-
(formValue.noteEventListenerEnabled === false
|
|
3426
|
-
||
|
|
3427
|
-
formValue.noteEventListenerEnabled === true &&
|
|
3428
|
-
formValue.noteSubject));
|
|
3402
|
+
formValue.authenticationPluginConfiguration);
|
|
3429
3403
|
this.valid$.next(valid);
|
|
3430
3404
|
this.valid.emit(valid);
|
|
3431
3405
|
}
|
|
@@ -3441,11 +3415,11 @@ class ZakenApiConfigurationComponent {
|
|
|
3441
3415
|
});
|
|
3442
3416
|
}
|
|
3443
3417
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ZakenApiConfigurationComponent, deps: [{ token: PluginManagementService }, { token: i2.TranslateService }, { token: PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3444
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: ZakenApiConfigurationComponent, isStandalone: false, selector: "valtimo-zaken-api-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null,\n
|
|
3418
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: ZakenApiConfigurationComponent, isStandalone: false, selector: "valtimo-zaken-api-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<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 [attr.data-test-id]=\"testIds.configurationTitle\"\n placeholder=\"Zaken API Plugin\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [margin]=\"true\"\n [trim]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n\n <v-input\n name=\"url\"\n [attr.data-test-id]=\"testIds.url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [defaultValue]=\"obs.prefill?.url\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [trim]=\"true\"\n [margin]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n placeholder=\"https://openzaak.example.com/zaken/api/v1/ \"\n >\n </v-input>\n\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [attr.data-test-id]=\"testIds.authenticationPluginConfiguration\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [tooltip]=\"'authenticationPluginConfigurationTooltip' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [margin]=\"true\"\n [items]=\"authObs.authenticationPluginSelectItems\"\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n ></v-select>\n </ng-container>\n\n</v-form>\n", styles: [".input-toggle--small-margin{margin-block-end:var(--v-input-small-margin)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.FormComponent, selector: "v-form", inputs: ["className"], outputs: ["valueChange"] }, { kind: "component", type: i2$2.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "smallMargin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox", "smallLabel", "rows", "clear$", "carbonTheme", "placeholder", "dataTestId", "trim", "presetsTitle", "presetOptions"], outputs: ["valueChange"] }, { kind: "component", type: i2$2.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "defaultSelectionIds", "disabled", "dropUp", "invalid", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "clearText", "clearable", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder", "smallMargin", "carbonTheme", "appendInline", "warn", "warnText", "dataTestId"], outputs: ["selectedChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: PluginTranslatePipe, name: "pluginTranslate" }] }); }
|
|
3445
3419
|
}
|
|
3446
3420
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ZakenApiConfigurationComponent, decorators: [{
|
|
3447
3421
|
type: Component,
|
|
3448
|
-
args: [{ standalone: false, selector: 'valtimo-zaken-api-configuration', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null,\n
|
|
3422
|
+
args: [{ standalone: false, selector: 'valtimo-zaken-api-configuration', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<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 [attr.data-test-id]=\"testIds.configurationTitle\"\n placeholder=\"Zaken API Plugin\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [margin]=\"true\"\n [trim]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n\n <v-input\n name=\"url\"\n [attr.data-test-id]=\"testIds.url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [defaultValue]=\"obs.prefill?.url\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [trim]=\"true\"\n [margin]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n placeholder=\"https://openzaak.example.com/zaken/api/v1/ \"\n >\n </v-input>\n\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [attr.data-test-id]=\"testIds.authenticationPluginConfiguration\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [tooltip]=\"'authenticationPluginConfigurationTooltip' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [margin]=\"true\"\n [items]=\"authObs.authenticationPluginSelectItems\"\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n ></v-select>\n </ng-container>\n\n</v-form>\n", styles: [".input-toggle--small-margin{margin-block-end:var(--v-input-small-margin)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
3449
3423
|
}], ctorParameters: () => [{ type: PluginManagementService }, { type: i2.TranslateService }, { type: PluginTranslationService }], propDecorators: { save$: [{
|
|
3450
3424
|
type: Input
|
|
3451
3425
|
}], disabled$: [{
|
|
@@ -6425,11 +6399,6 @@ const zakenApiPluginSpecification = {
|
|
|
6425
6399
|
linkUploadedDocumentToZaakMessage: 'Het koppelen van een geupload document aan een zaak heeft geen configuratie nodig.',
|
|
6426
6400
|
configurationTitle: 'Configuratienaam',
|
|
6427
6401
|
configurationTitleTooltip: 'Onder deze naam zal de plugin te herkennen zijn in de rest van de applicatie',
|
|
6428
|
-
noteEventListenerEnabled: 'Synchroniseer Dossier notitie als Zaak-notitie naar de Zaak',
|
|
6429
|
-
noteEventListenerEnabledTooltip: 'Wanneer geactiveerd zal bij het aanmaken, updaten of verwijderen van een Dossier notitie deze ook als Zaak-notitie worden gesynchroniseerd naar de Zaak (aangemaakt, bijgewerkt of verwijderd).',
|
|
6430
|
-
'noteEventListenerEnabled.toggleOn': 'Geactiveerd',
|
|
6431
|
-
'noteEventListenerEnabled.toggleOff': 'Gedeactiveerd',
|
|
6432
|
-
noteSubject: 'De vaste onderwerp tekst van de Zaak-notitie',
|
|
6433
6402
|
documentUrl: 'URL naar het document',
|
|
6434
6403
|
documentUrlTooltip: 'Dit veld ondersteunt URLs en proces variabelen. Gebruik pv:variable om een proces variabele uit te lezen',
|
|
6435
6404
|
titel: 'Documenttitel',
|
|
@@ -6507,7 +6476,7 @@ const zakenApiPluginSpecification = {
|
|
|
6507
6476
|
statustoelichtingTooltip: 'Een, voor de initiator van de zaak relevante, toelichting op de status van een zaak.',
|
|
6508
6477
|
'create-zaakresultaat': 'Zaakresultaat aanmaken',
|
|
6509
6478
|
'delete-zaakresultaten': 'Zaakresultaten verwijderen',
|
|
6510
|
-
|
|
6479
|
+
deleteZaakResultatenMessage: 'Zaakresultaten verwijderen heeft geen configuratie nodig.',
|
|
6511
6480
|
resultaattypeUrl: 'Zaakresultaat type URL',
|
|
6512
6481
|
resultaattypeUrlTooltip: 'URL-referentie naar het resultaattype.',
|
|
6513
6482
|
resultaattoelichting: 'Zaakresultaat toelichting',
|
|
@@ -6629,11 +6598,6 @@ const zakenApiPluginSpecification = {
|
|
|
6629
6598
|
linkUploadedDocumentToZaakMessage: 'Linking an uploaded document to a zaak requires no configuration.',
|
|
6630
6599
|
configurationTitle: 'Configuration name',
|
|
6631
6600
|
configurationTitleTooltip: 'With this name the plugin will be recognizable in the rest of the application',
|
|
6632
|
-
noteEventListenerEnabled: 'Synchronise Case note as Zaak-notitie to the Zaak',
|
|
6633
|
-
noteEventListenerEnabledTooltip: 'When enabled, when creating, updating or deleting a Case note it will also be synchronized as a Zaak-notitie to the Zaak (created, updated or deleted)',
|
|
6634
|
-
'noteEventListenerEnabled.toggleOn': 'Enabled',
|
|
6635
|
-
'noteEventListenerEnabled.toggleOff': 'Disabled',
|
|
6636
|
-
noteSubject: 'The fixed subject text of the Zaak-notitie',
|
|
6637
6601
|
documentUrl: 'URL to the document',
|
|
6638
6602
|
documentUrlTooltip: 'This field supports URLs and process variables. Use pv:variable to read a process variable',
|
|
6639
6603
|
titel: 'Document title',
|
|
@@ -6711,7 +6675,7 @@ const zakenApiPluginSpecification = {
|
|
|
6711
6675
|
statustoelichtingTooltip: 'An explanation of the status of a zaak that is relevant to the initiator of the zaak.',
|
|
6712
6676
|
'create-zaakresultaat': 'Create Zaakresultaat',
|
|
6713
6677
|
'delete-zaakresultaten': 'Delete Zaakresultaten',
|
|
6714
|
-
|
|
6678
|
+
deleteZaakResultatenMessage: 'Delete Zaakresultaten does not require any configuration.',
|
|
6715
6679
|
resultaattypeUrl: 'Zaakresultaat type URL',
|
|
6716
6680
|
resultaattypeUrlTooltip: 'URL reference to the resultaat type.',
|
|
6717
6681
|
resultaattoelichting: 'Zaakresultaat explanation',
|