@valtimo/plugin 12.11.0 → 12.14.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.
@@ -3839,6 +3839,88 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
3839
3839
  type: Output
3840
3840
  }] } });
3841
3841
 
3842
+ /*
3843
+ * Copyright 2015-2024 Ritense BV, the Netherlands.
3844
+ *
3845
+ * Licensed under EUPL, Version 1.2 (the "License");
3846
+ * you may not use this file except in compliance with the License.
3847
+ * You may obtain a copy of the License at
3848
+ *
3849
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
3850
+ *
3851
+ * Unless required by applicable law or agreed to in writing, software
3852
+ * distributed under the License is distributed on an "AS IS" basis,
3853
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3854
+ * See the License for the specific language governing permissions and
3855
+ * limitations under the License.
3856
+ */
3857
+ class RelateerZakenComponent {
3858
+ set pluginId(value) {
3859
+ this.pluginId$.next(value);
3860
+ }
3861
+ constructor(pluginTranslatePipe) {
3862
+ this.pluginTranslatePipe = pluginTranslatePipe;
3863
+ this.valid = new EventEmitter();
3864
+ this.configuration = new EventEmitter();
3865
+ this.pluginId$ = new BehaviorSubject('');
3866
+ this.aardRelatieOptions$ = this.pluginId$.pipe(filter(pluginId => !!pluginId), switchMap(pluginId => combineLatest([
3867
+ this.pluginTranslatePipe.transform('option-vervolg', pluginId),
3868
+ this.pluginTranslatePipe.transform('option-onderwerp', pluginId),
3869
+ this.pluginTranslatePipe.transform('option-bijdrage', pluginId),
3870
+ ])), map$1(([vervolgText, onderwerpText, bijdrageText]) => [
3871
+ { id: 'vervolg', text: vervolgText },
3872
+ { id: 'onderwerp', text: onderwerpText },
3873
+ { id: 'bijdrage', text: bijdrageText }
3874
+ ]));
3875
+ this.formValue$ = new BehaviorSubject(null);
3876
+ this.valid$ = new BehaviorSubject(false);
3877
+ }
3878
+ ngOnInit() {
3879
+ this.openSaveSubscription();
3880
+ }
3881
+ ngOnDestroy() {
3882
+ this.saveSubscription?.unsubscribe();
3883
+ }
3884
+ formValueChange(formValue) {
3885
+ this.formValue$.next(formValue);
3886
+ this.handleValid(formValue);
3887
+ }
3888
+ handleValid(formValue) {
3889
+ const valid = !!formValue.teRelaterenZaakUri && !!formValue.aardRelatie;
3890
+ this.valid$.next(valid);
3891
+ this.valid.emit(valid);
3892
+ }
3893
+ openSaveSubscription() {
3894
+ this.saveSubscription = this.save$?.subscribe(save => {
3895
+ combineLatest([this.formValue$, this.valid$])
3896
+ .pipe(take(1))
3897
+ .subscribe(([formValue, valid]) => {
3898
+ if (valid) {
3899
+ this.configuration.emit(formValue);
3900
+ }
3901
+ });
3902
+ });
3903
+ }
3904
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RelateerZakenComponent, deps: [{ token: PluginTranslatePipe }], target: i0.ɵɵFactoryTarget.Component }); }
3905
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: RelateerZakenComponent, selector: "valtimo-relateer-zaken", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, providers: [PluginTranslatePipe], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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 pluginId: pluginId$ | async,\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"teRelaterenZaakUri\"\n [title]=\"'teRelaterenZaakUri' | pluginTranslate: obs.pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.teRelaterenZaakUri\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n ></v-input>\n <v-select\n [items]=\"aardRelatieOptions$ | async\"\n name=\"aardRelatie\"\n [title]=\"'aardRelatie' | pluginTranslate: obs.pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.aardRelatie\"\n [required]=\"true\"\n ></v-select>\n</v-form>\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"], outputs: ["valueChange"] }, { kind: "component", type: i2$2.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "defaultSelectionIds", "disabled", "dropUp", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "clearText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder", "smallMargin", "carbonTheme", "appendInline", "dataTestId"], outputs: ["selectedChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: PluginTranslatePipe, name: "pluginTranslate" }] }); }
3906
+ }
3907
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RelateerZakenComponent, decorators: [{
3908
+ type: Component,
3909
+ args: [{ selector: 'valtimo-relateer-zaken', providers: [PluginTranslatePipe], template: "<!--\n ~ Copyright 2015-2024 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 pluginId: pluginId$ | async,\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"teRelaterenZaakUri\"\n [title]=\"'teRelaterenZaakUri' | pluginTranslate: obs.pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.teRelaterenZaakUri\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n ></v-input>\n <v-select\n [items]=\"aardRelatieOptions$ | async\"\n name=\"aardRelatie\"\n [title]=\"'aardRelatie' | pluginTranslate: obs.pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.aardRelatie\"\n [required]=\"true\"\n ></v-select>\n</v-form>\n" }]
3910
+ }], ctorParameters: () => [{ type: PluginTranslatePipe }], propDecorators: { save$: [{
3911
+ type: Input
3912
+ }], disabled$: [{
3913
+ type: Input
3914
+ }], pluginId: [{
3915
+ type: Input
3916
+ }], prefillConfiguration$: [{
3917
+ type: Input
3918
+ }], valid: [{
3919
+ type: Output
3920
+ }], configuration: [{
3921
+ type: Output
3922
+ }] } });
3923
+
3842
3924
  /*
3843
3925
  * Copyright 2015-2024 Ritense BV, the Netherlands.
3844
3926
  *
@@ -3869,7 +3951,8 @@ class ZakenApiPluginModule {
3869
3951
  EndHersteltermijnComponent,
3870
3952
  CreateZaakeigenschapComponent,
3871
3953
  UpdateZaakeigenschapComponent,
3872
- DeleteZaakeigenschapComponent], imports: [CommonModule,
3954
+ DeleteZaakeigenschapComponent,
3955
+ RelateerZakenComponent], imports: [CommonModule,
3873
3956
  PluginTranslatePipeModule,
3874
3957
  FormModule,
3875
3958
  InputModule,
@@ -3896,7 +3979,8 @@ class ZakenApiPluginModule {
3896
3979
  EndHersteltermijnComponent,
3897
3980
  CreateZaakeigenschapComponent,
3898
3981
  UpdateZaakeigenschapComponent,
3899
- DeleteZaakeigenschapComponent] }); }
3982
+ DeleteZaakeigenschapComponent,
3983
+ RelateerZakenComponent] }); }
3900
3984
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ZakenApiPluginModule, imports: [CommonModule,
3901
3985
  PluginTranslatePipeModule,
3902
3986
  FormModule,
@@ -3931,6 +4015,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
3931
4015
  CreateZaakeigenschapComponent,
3932
4016
  UpdateZaakeigenschapComponent,
3933
4017
  DeleteZaakeigenschapComponent,
4018
+ RelateerZakenComponent,
3934
4019
  ],
3935
4020
  imports: [
3936
4021
  CommonModule,
@@ -3964,6 +4049,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
3964
4049
  CreateZaakeigenschapComponent,
3965
4050
  UpdateZaakeigenschapComponent,
3966
4051
  DeleteZaakeigenschapComponent,
4052
+ RelateerZakenComponent,
3967
4053
  ],
3968
4054
  }]
3969
4055
  }] });
@@ -4034,6 +4120,7 @@ const zakenApiPluginSpecification = {
4034
4120
  'create-zaakeigenschap': CreateZaakeigenschapComponent,
4035
4121
  'update-zaakeigenschap': UpdateZaakeigenschapComponent,
4036
4122
  'delete-zaakeigenschap': DeleteZaakeigenschapComponent,
4123
+ 'relateer-zaken': RelateerZakenComponent,
4037
4124
  },
4038
4125
  pluginTranslations: {
4039
4126
  nl: {
@@ -4126,6 +4213,12 @@ const zakenApiPluginSpecification = {
4126
4213
  plannedEndDate: 'Geplande eind datum',
4127
4214
  finalDeliveryDate: 'Laatste opleverings datum',
4128
4215
  dateformatTooltip: 'Een datum in formaat van yyyy-mm-dd. Kan ook een verwijzing zijn naar het document of process, bijvoorbeeld doc:customer/startDatum of pv:startDatum',
4216
+ 'relateer-zaken': 'Relateer zaken',
4217
+ teRelaterenZaakUri: 'URL naar de te relateren zaak',
4218
+ aardRelatie: 'Aard van de relatie',
4219
+ 'option-vervolg': 'De andere zaak gaf aanleiding tot het starten van de onderhanden zaak.',
4220
+ 'option-onderwerp': 'De andere zaak is relevant voor cq. is onderwerp van de onderhanden zaak.',
4221
+ 'option-bijdrage': 'Aan het bereiken van de uitkomst van de andere zaak levert de onderhanden zaak een bijdrage.',
4129
4222
  },
4130
4223
  en: {
4131
4224
  title: 'Zaken API',
@@ -4217,6 +4310,12 @@ const zakenApiPluginSpecification = {
4217
4310
  plannedEndDate: 'Planned end date',
4218
4311
  finalDeliveryDate: 'Final delivery date',
4219
4312
  dateformatTooltip: 'A date in the format of yyyy-mm-dd. Can also be a reference to the document or process, for example doc:customer/startDate or pv:startDate',
4313
+ 'relateer-zaken': 'Add relation between two Zaken',
4314
+ teRelaterenZaakUri: 'URL to the Zaak to be related',
4315
+ aardRelatie: 'Nature of the relationship',
4316
+ 'option-vervolg': 'The other Zaak prompted the start of the current Zaak.',
4317
+ 'option-onderwerp': 'The other Zaak is relevant to or the subject of the current Zaak.',
4318
+ 'option-bijdrage': 'The current Zaak contributes to the outcome of the other Zaak.',
4220
4319
  },
4221
4320
  de: {
4222
4321
  title: 'Zaken API',
@@ -4308,6 +4407,12 @@ const zakenApiPluginSpecification = {
4308
4407
  plannedEndDate: 'Geplantes Enddatum',
4309
4408
  finalDeliveryDate: 'Endgültiger Liefertermin',
4310
4409
  dateformatTooltip: 'Ein Datum im Format yyyy-mm-dd. Kann auch ein Verweis auf das Dokument oder den Prozess sein, zum Beispiel doc:kunde/startDatum oder pv:startDatum',
4410
+ 'relateer-zaken': 'Beziehung zwischen Zaken herstellen',
4411
+ teRelaterenZaakUri: 'URL zum zu verknüpfenden Zaak',
4412
+ aardRelatie: 'Art der Beziehung',
4413
+ 'option-vervolg': 'Der andere Zaak gab Anlass zur Einleitung des aktuellen Zaak.',
4414
+ 'option-onderwerp': 'Der andere Zaak ist relevant für bzw. Gegenstand des aktuellen Zaak.',
4415
+ 'option-bijdrage': 'Der aktuelle Zaak trägt zum Ergebnis des anderen Zaak bei.',
4311
4416
  },
4312
4417
  },
4313
4418
  };
@@ -7837,5 +7942,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
7837
7942
  * Generated bundle index. Do not edit.
7838
7943
  */
7839
7944
 
7840
- export { BesluitenApiConfigurationComponent, BesluitenApiPluginModule, CatalogiApiConfigurationComponent, CatalogiApiPluginModule, CompletePortalTaskComponent, CreateNatuurlijkPersoonZaakRolComponent, CreateNietNatuurlijkPersoonZaakRolComponent, CreatePortalTaskComponent, CreateZaakBesluitConfigurationComponent, CreateZaakConfigurationComponent, CreateZaakResultaatConfigurationComponent, CreateZaakeigenschapComponent, DeleteObjectComponent, DeleteZaakeigenschapComponent, DocumentenApiConfigurationComponent, DocumentenApiPluginModule, DownloadDocumentConfigurationComponent, EndHersteltermijnComponent, ExactPluginModule, GenerateDocumentConfigurationComponent, GetBesluittypeConfigurationComponent, GetEigenschapConfigurationComponent, GetResultaattypeConfigurationComponent, GetStatustypeConfigurationComponent, GetTemplateNamesComponent, LinkDocumentToBesluitConfigurationComponent, LinkDocumentToZaakConfigurationComponent, LinkUploadedDocumentToZaakConfigurationComponent, NotificatiesApiConfigurationComponent, NotificatiesApiPluginModule, ObjectTokenAuthencationConfigurationComponent, ObjectTokenAuthenticationPluginModule, ObjectenApiConfigurationComponent, ObjectenApiPluginModule, ObjecttypenApiConfigurationComponent, ObjecttypenApiPluginModule, OpenNotificatiesConfigurationComponent, OpenNotificatiesPluginModule, OpenZaakConfigurationComponent, OpenZaakPluginModule, PLUGINS_TOKEN, PluginConfigurationContainerComponent, PluginConfigurationContainerModule, PluginManagementService, PluginService, PluginTranslatePipe, PluginTranslatePipeModule, PluginTranslationService, PortaaltaakConfigurationComponent, PortaaltaakPluginModule, SetZaakStatusConfigurationComponent, SetZaakopschortingComponent, SmartDocumentsConfigurationComponent, SmartDocumentsPluginModule, StartHersteltermijnConfigurationComponent, StoreTempDocumentConfigurationComponent, StoreUploadedDocumentConfigurationComponent, StoreUploadedDocumentInPartsConfigurationComponent, UpdateZaakeigenschapComponent, VerzoekConfigurationComponent, VerzoekPluginModule, ZakenApiConfigurationComponent, ZakenApiPluginModule, besluitenApiPluginSpecification, catalogiApiPluginSpecification, documentenApiPluginSpecification, exactPluginSpecification, notificatiesApiPluginSpecification, objectTokenAuthenticationPluginSpecification, objectenApiPluginSpecification, objecttypenApiPluginSpecification, openNotificatiesPluginSpecification, openZaakPluginSpecification, portaaltaakPluginSpecification, smartDocumentsPluginSpecification, verzoekPluginSpecification, zakenApiPluginSpecification };
7945
+ export { BesluitenApiConfigurationComponent, BesluitenApiPluginModule, CatalogiApiConfigurationComponent, CatalogiApiPluginModule, CompletePortalTaskComponent, CreateNatuurlijkPersoonZaakRolComponent, CreateNietNatuurlijkPersoonZaakRolComponent, CreatePortalTaskComponent, CreateZaakBesluitConfigurationComponent, CreateZaakConfigurationComponent, CreateZaakResultaatConfigurationComponent, CreateZaakeigenschapComponent, DeleteObjectComponent, DeleteZaakeigenschapComponent, DocumentenApiConfigurationComponent, DocumentenApiPluginModule, DownloadDocumentConfigurationComponent, EndHersteltermijnComponent, ExactPluginModule, GenerateDocumentConfigurationComponent, GetBesluittypeConfigurationComponent, GetEigenschapConfigurationComponent, GetResultaattypeConfigurationComponent, GetStatustypeConfigurationComponent, GetTemplateNamesComponent, LinkDocumentToBesluitConfigurationComponent, LinkDocumentToZaakConfigurationComponent, LinkUploadedDocumentToZaakConfigurationComponent, NotificatiesApiConfigurationComponent, NotificatiesApiPluginModule, ObjectTokenAuthencationConfigurationComponent, ObjectTokenAuthenticationPluginModule, ObjectenApiConfigurationComponent, ObjectenApiPluginModule, ObjecttypenApiConfigurationComponent, ObjecttypenApiPluginModule, OpenNotificatiesConfigurationComponent, OpenNotificatiesPluginModule, OpenZaakConfigurationComponent, OpenZaakPluginModule, PLUGINS_TOKEN, PluginConfigurationContainerComponent, PluginConfigurationContainerModule, PluginManagementService, PluginService, PluginTranslatePipe, PluginTranslatePipeModule, PluginTranslationService, PortaaltaakConfigurationComponent, PortaaltaakPluginModule, RelateerZakenComponent, SetZaakStatusConfigurationComponent, SetZaakopschortingComponent, SmartDocumentsConfigurationComponent, SmartDocumentsPluginModule, StartHersteltermijnConfigurationComponent, StoreTempDocumentConfigurationComponent, StoreUploadedDocumentConfigurationComponent, StoreUploadedDocumentInPartsConfigurationComponent, UpdateZaakeigenschapComponent, VerzoekConfigurationComponent, VerzoekPluginModule, ZakenApiConfigurationComponent, ZakenApiPluginModule, besluitenApiPluginSpecification, catalogiApiPluginSpecification, documentenApiPluginSpecification, exactPluginSpecification, notificatiesApiPluginSpecification, objectTokenAuthenticationPluginSpecification, objectenApiPluginSpecification, objecttypenApiPluginSpecification, openNotificatiesPluginSpecification, openZaakPluginSpecification, portaaltaakPluginSpecification, smartDocumentsPluginSpecification, verzoekPluginSpecification, zakenApiPluginSpecification };
7841
7946
  //# sourceMappingURL=valtimo-plugin.mjs.map