Skip to content

Commit

Permalink
[open-formulieren/open-forms#4423] Added layout property to addressnl
Browse files Browse the repository at this point in the history
  • Loading branch information
vaszig committed Jun 28, 2024
1 parent ef6df7b commit 8a1f68d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/formio/components/addressNL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ export interface AddressNLComponentSchema
extends Omit<AddressNLInputSchema, 'hideLabel' | 'placeholder' | 'disabled' | 'validateOn'> {
type: 'addressNL';
deriveAddress: boolean;
layout: 'singleColumn' | 'doubleColumn';
}
4 changes: 4 additions & 0 deletions test-d/formio/components/addressNL.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ expectAssignable<AddressNLComponentSchema>({
key: 'someAddressNL',
label: 'Some AddressNL',
deriveAddress: false,
layout: 'doubleColumn',
});

// appropriate default value type
Expand All @@ -18,6 +19,7 @@ expectAssignable<AddressNLComponentSchema>({
key: 'someAddressNL',
label: 'Some AddressNL',
deriveAddress: false,
layout: 'doubleColumn',
defaultValue: {
postcode: '',
houseNumber: '',
Expand Down Expand Up @@ -45,6 +47,7 @@ expectAssignable<AddressNLComponentSchema>({
clearOnHide: true,
isSensitiveData: true,
deriveAddress: false,
layout: 'doubleColumn',
// Advanced tab
conditional: {
show: undefined,
Expand Down Expand Up @@ -82,4 +85,5 @@ expectNotAssignable<AddressNLComponentSchema>({
placeholder: '',
hideLabel: true,
deriveAddress: false,
layout: 'doubleColumn',
} as const);

0 comments on commit 8a1f68d

Please sign in to comment.