From 8a1f68d336445debf68124ef551cd0d6d13c84f3 Mon Sep 17 00:00:00 2001 From: vasileios Date: Fri, 28 Jun 2024 15:54:46 +0200 Subject: [PATCH] [open-formulieren/open-forms#4423] Added layout property to addressnl --- src/formio/components/addressNL.ts | 1 + test-d/formio/components/addressNL.test-d.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/formio/components/addressNL.ts b/src/formio/components/addressNL.ts index 874a89c..86b20ae 100644 --- a/src/formio/components/addressNL.ts +++ b/src/formio/components/addressNL.ts @@ -23,4 +23,5 @@ export interface AddressNLComponentSchema extends Omit { type: 'addressNL'; deriveAddress: boolean; + layout: 'singleColumn' | 'doubleColumn'; } diff --git a/test-d/formio/components/addressNL.test-d.ts b/test-d/formio/components/addressNL.test-d.ts index 86d87d0..969b068 100644 --- a/test-d/formio/components/addressNL.test-d.ts +++ b/test-d/formio/components/addressNL.test-d.ts @@ -9,6 +9,7 @@ expectAssignable({ key: 'someAddressNL', label: 'Some AddressNL', deriveAddress: false, + layout: 'doubleColumn', }); // appropriate default value type @@ -18,6 +19,7 @@ expectAssignable({ key: 'someAddressNL', label: 'Some AddressNL', deriveAddress: false, + layout: 'doubleColumn', defaultValue: { postcode: '', houseNumber: '', @@ -45,6 +47,7 @@ expectAssignable({ clearOnHide: true, isSensitiveData: true, deriveAddress: false, + layout: 'doubleColumn', // Advanced tab conditional: { show: undefined, @@ -82,4 +85,5 @@ expectNotAssignable({ placeholder: '', hideLabel: true, deriveAddress: false, + layout: 'doubleColumn', } as const);