diff --git a/src/formio/components/addressNL.ts b/src/formio/components/addressNL.ts index 3e7e1ec..874a89c 100644 --- a/src/formio/components/addressNL.ts +++ b/src/formio/components/addressNL.ts @@ -8,6 +8,9 @@ export interface AddressData { houseNumber: string; houseLetter: string; houseNumberAddition: string; + city?: string; + streetName?: string; + secretStreetCity?: string; } export type AddressNLInputSchema = InputComponentSchema; @@ -19,4 +22,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..86d87d0 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,15 @@ expectAssignable({ type: 'addressNL', key: 'someAddressNL', label: 'Some AddressNL', + deriveAddress: false, defaultValue: { postcode: '', houseNumber: '', houseLetter: '', houseNumberAddition: '', + city: '', + streetName: '', + secretStreetCity: '', }, }); @@ -39,6 +44,7 @@ expectAssignable({ hidden: false, clearOnHide: true, isSensitiveData: true, + deriveAddress: false, // Advanced tab conditional: { show: undefined, @@ -75,4 +81,5 @@ expectNotAssignable({ disabled: true, placeholder: '', hideLabel: true, + deriveAddress: false, } as const);