From 2ce8c531a02051bdc027a240b48b4caec0600a79 Mon Sep 17 00:00:00 2001 From: vasileios Date: Thu, 30 May 2024 08:18:00 +0200 Subject: [PATCH] [open-formulieren/open-forms#3993] Added city and streetName properties to addressnl component --- src/formio/components/addressNL.ts | 3 +++ test-d/formio/components/addressNL.test-d.ts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/formio/components/addressNL.ts b/src/formio/components/addressNL.ts index 3e7e1ec..d3311fb 100644 --- a/src/formio/components/addressNL.ts +++ b/src/formio/components/addressNL.ts @@ -8,6 +8,8 @@ export interface AddressData { houseNumber: string; houseLetter: string; houseNumberAddition: string; + city: string; + streetName: string; } export type AddressNLInputSchema = InputComponentSchema; @@ -19,4 +21,5 @@ export type AddressNLInputSchema = InputComponentSchema { type: 'addressNL'; + deriveAddress: boolean; } diff --git a/test-d/formio/components/addressNL.test-d.ts b/test-d/formio/components/addressNL.test-d.ts index 7f5727b..79cabea 100644 --- a/test-d/formio/components/addressNL.test-d.ts +++ b/test-d/formio/components/addressNL.test-d.ts @@ -8,6 +8,7 @@ expectAssignable({ type: 'addressNL', key: 'someAddressNL', label: 'Some AddressNL', + deriveAddress: false, }); // appropriate default value type @@ -16,11 +17,14 @@ expectAssignable({ type: 'addressNL', key: 'someAddressNL', label: 'Some AddressNL', + deriveAddress: false, defaultValue: { postcode: '', houseNumber: '', houseLetter: '', houseNumberAddition: '', + city: '', + streetName: '', }, }); @@ -39,6 +43,7 @@ expectAssignable({ hidden: false, clearOnHide: true, isSensitiveData: true, + deriveAddress: false, // Advanced tab conditional: { show: undefined,