Change log
Change log for the Eufemia Forms extension.
Get more details about releases or have a look on all release notes on GitHub.
v10.83.0
- Fixed so data handling via
pathin Field.DateOfBirth works as expected.
v10.82.1
- Fixed spacing above the legend/label of Field.DateOfBirth.
- Fixed widths of fields in Field.DateOfBirth.
v10.82.0
- Added support for Zod schemas (along with Ajv).
- When using JSON Schema (Ajv) it is recommended to explicitly providing an
ajvInstancetoForm.Handler:
v10.81.0
- Added Field.DateOfBirth and Value.DateOfBirth component to select a date of birth.
v10.80.0
- Added
da-DKtranslations to Eufemia and Eufemia Forms.
v10.76.0
- Added variant
radioto Field.Boolean and Field.Toggle. - Added variant
switchto Field.Boolean and Field.Toggle. - Added variant
compactto Field.Upload. - Added address suggestions and autofill to the Bring API Connector.
- Fixed so the value of the phone number is truncated to 8 digits when changing country code to
NOin Field.PhoneNumber. - Fixed so Field.Indeterminate supports the
requiredproperty.
v10.75.3
- Fixed so
requiredis working correctly together with date ranges likevalue=2023-12-07|2023-12-14in Field.Date.
v10.75.2
- Fixed so maximum children can be 9 in Block.ChildrenWithAge.
- Fixed so
disabledis correctly supported in Field.Upload. - Fixed so
onStepChangeassigned to Wizard.useStep is called every time. - Fixed so
preventUncommittedChangesworks properly within a Wizard.
v10.75.0
- Added
{itemNo}support in Iterate.RemoveButton. - Fixed so Iterate.Array does work within a Form.Section.
- Ensured Iterate.Array with
requiredproperty removes error in Wizard.Step. - Ensured
reduceToVisibleFieldsworks properly within Wizard.
v10.74.0
- Added support for
preventDefaultinonClickfor checkbox variants in Field.Toggle and Field.Boolean. - Added
resetDataAfterCommitto Form.Isolation. - Added
preventUncommittedChangesproperty to Form.Isolation to show error during submit after user input. - Renamed
requireCommittopreventUncommittedChangesin Iterate.PushContainer. - Fixed so Form.Isolation does work within a Form.Section.
v10.73.2
- Added support for
labelSrOnlyto Field.PhoneNumber. - Added support for
labelSrOnlyto Field.Toggle.
v10.73.1
- Fixed required validation when only country code was given in Field.PhoneNumber.
v10.73.0
- Show error in Iterate.PushContainer on submit or in next step after user input.
- Animate chevron on expand/collapse in the newly redesigned Wizard.
- Added support for
labelSizeto allField.*components. - Added support for
labelSrOnlyto allField.*components. - Added
requireCommitproperty to Iterate.PushContainer to show error during submit or next step after user input. - Added variant
radio-listto Field.Selection. - Always validate fields in all Wizard.Step(without keepInDOM).
- Fixed handling of invalid ISO code value in Value.SelectCountry.
- Fixed handling of invalid ISO code value in Value.SelectCurrency.
- Fixed so Value.BankAccountNumber does not render when value is empty.
- Fixed so Value.OrganizationNumber does not render when value is empty.
- Fixed so Value.PhoneNumber does not render when value is empty.
- Fixed so Value.NationalIdentityNumber does not render when value is empty.
- Fixed so Wizard.Step does not pre-render step when
keepInDOM. - Fixed so
labelDescriptionwhen rendered withoutlabelwill not have additional spacing above, in allField.*components. - Fixed so
width="large"in Field.PhoneNumber will be correct. - Fixed so fields do not overflow in width on certain screen sizes.
- Fixed so Field.Upload gracefully handles
undefinedfile inputs/values. - Fixed so Form.Card used in Wizard has a default outline color.
- Fixed so Iterate.EditContainer shows red border on submit errors.
- Fixed so Field.Composition sets correct
widthif given. - Fixed a11y issue when using
requiredproperty in abuttonvariant of Field.Selection.
v10.72.3
- Ensure Field.Composition with horizontal layout will still wrap.
- Ensure Field.Selection with the autocomplete variant receives
showIndicatorin the first onType parameter object.
v10.72.2
- Ensure Iterate.Array schema validation.
v10.72.1
v10.72.0
- New design for Wizard.
- Deprecated
variantin Wizard.Container, as it no longer has any variants. - Deprecated
sidebarIdin Wizard.Container, as it no longer has any sidebar. If an id is needed, use theidproperty.
v10.71.0
- Added
disableDragAndDropin Field.Upload to disable file drag and drop. - Added
descriptionin Upload's fileItem to add description for a given file. - Added
removeDeleteButtonin Upload's fileItem to hide the remove button for a given file. - Added
iso(country) to additional args in Field.PhoneNumber events.
v10.70.1
- Fixed so form can't be submitted when
errorproperty is set inField.*components.
v10.70.0
- Added default
autoCompleteofcurrent-passwordin Field.Password. - Added
allowDuplicatesin Field.Upload to allow uploading duplicate files. - Fixed so only comparing existing properties of file's
name,sizeandlastModifiedwhen determining if file is a duplicate in Field.Upload. - Fixed so
hasValueruns in Form.Visibility when path is missing. - Fixed error reporting during Wizard.Step navigation with async event handlers and/or field validators.
v10.69.1
- Fixed so error message in the step menu of Wizard.Container is removed when unmounted.
- Fixed the rendering routine of Wizard.Step.
- Fixed so async removal of file in Field.Upload with same file name as an other file will not display spinner/loading for both files, but only the file where remove was clicked.
v10.69.0
- Added
CountryISOas thevaluetype to Field.SelectCountry. - Added Field.SelectCurrency component to select a currency value.
- Added Value.SelectCurrency component to render a currency value.
- Added possibility to set
autoCompletein Field.SelectCountry. - Fixed so there's no error message in the step menu of Wizard.Container for the active/current step, on small screens.
- Fixed so Wizard.Container does not show invalid error.
- Fixed typing for FieldBlock and useFieldProps.
v10.68.0
- Added
sv-SEtranslations to Eufemia and Eufemia Forms. - Added rendering of
labelDescriptionbeneathlabeland placed help button afterlabelin allField.*components. - Added
countryCodeto Form.Handler. - Added support for showing error messages on invalid date in Field.Date.
- Adjusted the label width of
Field.*components. - Adjusted the width of
Value.*components. - Fixed so
minDateandmaxDatein Field.Date does not interrupt first form submit. - Fixed so value
000 000 000should be invalid in Field.OrganizationNumber. - Fixed so value
0000 00 00000should be invalid in Field.BankAccountNumber. - Fixed so Field.Name.Company must consist of at least 3 letters.
- Fixed so there's no error message in the step menu of Wizard.Container after user has entered required data.
- Fixed so there's no error message in the step menu of Wizard.Container for the active/current step.
- Fixed so Value.Composition inherits properties defined in Value.Provider.
v10.67.1
- Fixed so
minDateandmaxDateis validated by the start of the day (00:00) in Field.Date.
v10.67.0
- Added support for async Autocomplete to Field.Selection.
v10.66.1
- Fixed styling of help button in Field.Upload.
- Fixed spacing of help button in Value.SummaryList when used in a Form.InfoOverlay.
- Fixed so Field.Composition always renders a
fieldset. - Fixed so
skipPortalcan be used in Field.Date. - Fixed so
aria-requiredandrequiredproperties is set in theinputelement for Field.Upload.
v10.66.0
- Added inline help button (
help) to allValue.*components as default (with option to open in Dialog). - Added
validationModeproperty withbypassOnNavigationto Wizard.Container. - Added
keepInDOMproperty to Wizard.Container. - Added existing errors in
onSubmitRequestbefore Form.Handler submit or Wizard.Step change. - Fixed showing error in Wizard(StepIndicator) menu and prevent submission if previous steps contain errors or have an unknown state.
- Fixed so validation always run on Wizard.Step changes.
v10.64.0
- Added Field.Address.Street and Field.Address.Postal.
- Added Bring API Connector to verify a postal code or autofill a street name, using Bring's Postal Code API.
- Added month and year validation in Field.Expiry.
- Added createMinimumAgeVerifier in Field.NationalIdentityNumber to make a customizable minimum age verifier function.
- Fixed displaying
titleas aria-label in Wizard.Step when wrapped in a Wizard.Container.
v10.63.0
- Added support for nesting Iterate.Array inside of Iterate.Array.
- Added showing field errors during submit inside Iterate.PushContainer when
bubbleValidationistrue. - Added support for conditional function based
info,warninganderrorproperties to allField.*. - Added Iterate.Visibility to be used within Iterate.Array (relative paths).
- Added support for
transformSelectionproperty to Field.Selection. - Added support for
requiredproperty to Iterate.PushContainer. - Added support for
requiredproperty to Iterate.Array. - Added support for
itemPathproperty to Iterate.Array. - Added support for inline
styleproperty to options in Field.Selection. - Added support for arrays with errors for
onChangeValidatorandonBlurValidator. - Added support for property
connectWithItemPathtoonBlurValidatorandonChangeValidatorto be used within Iterate. - Added the internal array as a third parameter to the callback function’s children in Iterate.Array.
- Added
displayValueandlabeltotransformDatafrom fields inside Iterate. - Fixed so wizard step changes scroll so the Wizard(StepIndicator) is included at the top.
- Fixed so Field.SelectCountry don't open when
defaultValueis given. - Fixed typing of
connectWithPathin validators. - Fixed so
fileHandlerwill not execute when validation errors in Field.Upload. - Fixed so
{itemNo}inlabelwill work in Field.Toggle. - Fixed inactive Iterate.PushContainer blocking Wizard navigation when
bubbleValidationistrue. - Fixed animation for Form.Visibility when used inside Value.SummaryList.
- Deprecated
continuousValidationin favor ofvalidateContinuouslyin allField.*components and Form.Visibility.
v10.62.4
- Fixed so divider line is displayed when setting
divider="line"inIterate.*components. - Ensured
setFormErrorin Form.useValidation acceptsundefinedornullas value. - Prioritized
gapoverstackspacing in Form.Card.
v10.62.1
- Fixed font-size of non-clickable Field.Upload item in Field.Upload.
- Fixed support for
sessionStorageIdin Field.Upload.
v10.62
- Added
labelandshowLabelproperties to Form.SubmitIndicator. - Added
updatemethod to Form.setData.
v10.61
- Added support for async
onFileClickin Value.Upload. - Fixed so
transformInandtransformOutsupports changed array and object instances. - Fixed issue where label did not stretch when providing
width="stretch"in FieldBlock which is used in mostField.*components.
v10.60.1
- Fixed so there's a gap between file and remove button in Field.Upload.
- Fixed so there's no scrolling when removing file in Field.Upload.
- Fixed handling of multiple chained async actions using
fileHandler,onFileClick, andonFileDeletein Field.Upload.
v10.60
- Added Form.InfoOverlay to display error, success (receipt), or custom messages to users.
- Added async
onFileDeletesupport to Field.Upload. - Added async
onFileClicksupport to Field.Upload. - Added
onFileClicksupport to Value.Upload. - Added
onVisibleproperty in Form.Visibility. - Added
onAnimationEndproperty in Form.Visibility. - Fixed unnecessary rerenders in Form.Handler.
- Fixed handling of multiple file upload actions when using async
fileHandlerin Field.Upload.
v10.58
- Added
variant="filled"to Iterate.ViewContainer and Iterate.EditContainer, to render with a background color. - Added
toolbarVariant="custom"to Iterate.ViewContainer and Iterate.EditContainer, to render the given toolbar without any spacing so it can be customized to your needs. - Added
showConfirmDialogto Iterate.RemoveButton, to open a confirmation dialog before removing the item. - Added
decoupleFormto Form.Handler, to be able to use the data context in a more flexible way. - Added support for using function reference instead of a string based
idin Form.Handler. - Added
sessionStorageIdsupport to Field.Upload with empty file list rendering. - Added docs on how to deal with TypeScript types, and enhanced typings.
- Fixed so there is no outline when using
variant="basic"in Form.Section containers when used in Wizard. - Fixed formatting of country prefixes in Value.PhoneNumber.
v10.57
- Added possibility for disabling individual options in Field.Selection and Field.ArraySelection.
- Added
labelSrOnlyto Value.* components, to be able to provide a label that is not visible. - Added Form.Card component to make it easier to use Card inside a form.
- Added
outsetproperty to Form.Card and Card. - Deprecated
validatorproperty in favor ofonChangeValidatorin Field.* components. - Renamed
asyncFileHandlertofileHandlerin Field.Upload, to support both async and sync file handling. - Fixed displaying indicator with async
onBlurValidatorcall whenvalidateInitiallyis used. - Fixed sharing submit indicator for fields inside Field.Composition.
- Fixed so
errorMessageswon't result in infinite loops when not wrapped inuseMemo. - Fixed alignment issue in Value.SummaryList, when providing a field without label.
v10.56
- Added inline help button (
help) to allField.*components as default (with option to open in Dialog). - Added
asyncFileHandlerto Field.Upload, to support async file handling during upload. - Added support for DatePicker properties in Field.Date.
- Added support for multiple
info,warninganderrormessages by making it possible to provide an array of messages. - Fixed so
infoandwarningproperties renders given elements.
v10.55.1
- Added
console.logwarning when using invalid child in Value.SummaryList component. - Fixed Field.Upload error when using
required, when navigating between Wizard step changes.
v10.55
- Added
transformLabelto Value.Composition. - Added Value.Upload component to render file values.
- Added Iterate support for Field.PostalCodeAndCity when using
countrywith a path. - Added
layoutOptionsfor enhanced horizontal label layout in Field.Provider. - Added
EditButton,CancelButtonandDoneButtonto Form.Section containers. - Added maximum possible value to joint-responsibility & daycare fields in Block.ChildrenWithAge.
- Fixed vertical gap between Field.ArraySelection toggle buttons with checkbox variant.
- Fixed so Field.Number with
percentand without a value renders correctly. - Fixed so components having
fieldsetinside still can use spacing. - Fixed so there's no extra space from Value.* components when using
inlineproperty. - Fixed so errors display underneath fields when nested inside Field.Selection or Field.ArraySelection.
v10.54
- Deprecated Ajv
validationRulein FormError and deprecatederrorMessageskeys likepatternin favor of Eufemia translation keys likeField.errorPattern. For a migration guide, take a look at release notes for the future major release, v11. - Added docs about
emptyValue. - Added
transformDatato theonSubmitevent listener of Form.Handler. - Added
onDone,onCancelandonEditevents to Form.Section containers. - Updated country names in list of countries used in Field.SelectCountry.
- Fixed so
decimalLimit={0}together withcurrencyin Field.Number, anddecimalLimit={0}in Field.Currency, will not allow input of decimals. - Fixed so it's possible to render multiple (combined) Ajv errors with translated messages, in FieldBlock.
- Fixed so
onBlurValidatoronly runs when no other errors(like required, etc.) are present, in useFieldProps. - Fixed so
autocomplete="off"is correctly set when settingautoComplete={false}in Form.Handler. - Fixed alignment of status message (error, warning, info) in Wizard.
- Fixed schema validation for required paths with matching name.
- Fixed correct sorting of countries in Field.SelectCountry.
v10.53
- Added validation of Norwegian bank account numbers to Field.BankAccountNumber.
- Added Form.useTranslation that returns the translations for the current locale.
- Added
renderMessagefunction in Form.useTranslation to render a string with line-breaks. - Added console warning when a field path is declared more than one time.
- Added
countryproperty in Field.PostalCodeAndCity, to support different countries than only Norway. - Fixed UI alignments in Block.ChildrenWithAge.
- Fixed so Iterate.Array is in sync with the data context, and call
onChangewhencountPathchanges.
v10.52
- Added
transformLabelto allValue.*components. - Added
bubbleValidationto Form.Isolation and Iterate.PushContainer, to prevent the form from being submitted when there are fields with errors. - Added createMinimumAgeValidator in Field.NationalIdentityNumber to make a customizable minimum age validator.
- Added Form.useSnapshot hook to handle snapshots of data.
- Added
idto Wizard.Step for when using dynamic steps withactiveWhen. - Added Iterate.ItemNo.
- Added support for
Form.SubmitConfirmationin Wizard. - Added
isolatedDatato Iterate.PushContainer. - Added displaying phone numbers in Value.PhoneNumber using prefix
+instead of00. - Added support for
defaultValue(andvalue) for fields used in Iterate.Array. - Added support for
isValidin Form.Visibility for showing content based on the validation of a field. - Removed the internal
patternin Field.OrganizationNumber, rather using the internal validator. - Removed the internal
patternin Field.NationalIdentityNumber, rather using the internal validator. - Fixed so Form.clearData works in
React.StrictMode. - Fixed use of unpolyfilled structuredClone in Form.useData hook.
- Fixed so
onBlurValidatorworks withvalidateInitially. - Fixed so Iterate.EditContainer keeps open when falsy value or empty object was given as the iterate value.
- Fixed so all errors on every value change is displayed when using exported validators from
exportValidators. - Fixed so
exportValidatorsis not called when not exported as an array. - Fixed so
emptyValueis set in the data context when defined. - Fixed so Field.SelectCountry has a fallback locale (nb-NO).
v10.51
- Added
roundingproperty with support forhalf-evenrounding to Value.Number and Value.Currency. - Added
inheritLabelandinheritVisibilityto Value.SummaryList. - Added
setFieldStatusin Form.useValidation to handle/set the status (error) of a single field. - Added displaying of
hasChildrenvalue in summary of Block.ChildrenWithAge. - Added
rangefor date range functionality in Field.Date, and Value.Date. - Added Form.SubmitConfirmation to confirm a submit during or before sending.
- Added Value.Provider to propagate value properties down to Value components (e.g.
inheritVisibility). - Deprecated Form.useError and replaced with Form.useValidation.
- Deprecated
omit_roundingin Value.Number and Value.Currency, replaced withrounding="omit". - Deprecated Form.FieldProps and replaced with Field.Provider.
- Fixed error throwing when using Iterate.useCount hook or useData hook in Wizard without form id.
- Fixed so the deprecated
itemNrstill works in the Iterate.ViewContainer. - Fixed so Field.Toggle does not render invisible label when not providing any label.
- Fixed CSS
max-widthof card in Wizard(StepIndicator) by removing themax-widthattribute. - Fixed so that we keep field state during a Wizard step change when used inside Iterate.Array (which used
defaultValueas the data source).
v10.50
- Added
reduceToVisibleFieldsto the Form.useData hook and Form.HandleronSubmit. - Added
inheritVisibilityto eachValue.*component. - Added
variantto Value.ArraySelection, to allow for list layout. - Added validation of Norwegian organization number to Field.OrganizationNumber.
- Added
filterCountriesto Field.PhoneNumber, to be able to filter out countries. - Added
filterCountriesto Field.SelectCountry, to be able to filter out countries. - Added
limitin Iterate. - Added
removemethod to the Form.useData hook. - Deprecated
itemNrin Iterate and replaced withitemNo.
v10.48
- Make Iterate.Toolbar customizable.
- Added new property
toolbarVariantto Iterate.ViewContainer and Iterate.EditContainer for hiding toolbar buttons when there is only one item in the array.
v10.46
- Added Value.SelectCountry component to render a country value.
v10.45
- Added Iterate.PushContainer to create new items in an array.
- Added Value.ArraySelection component to render an array of values.
- Added Value.Selection component to render a selection value.
v10.43
- Added Form.Isolation data provide.
- Deprecated
withValuein Form.Visibility and replaced it withhasValue.
v10.41
- Added Field.Upload component.
v10.38
- Added support for nesting fields inside of Form.Section and Form.ArraySelection.
v10.36
- Added support for dynamic Wizard steps with the
activeandactiveWhenproperty (Wizard.Step).
v10.35
- Added view and edit containers to Form.Section.
v10.34
- Added Wizard.EditButton component.
- Added a first block (ChildrenWithAge) to the list of blocks.
v10.33
- Added Form.Section that contains components and functionality for composing blocks of fields and values to be reused in different contexts.
v10.32
- Added Field.Slider component.
v10.31
- Added Field.Indeterminate component to handle checkbox indeterminate (partial) states.
v10.30
- Added
Form.FieldProps(which got renamed to Field.Provider) component to forward field properties, such asrequiredordisabledto all nested field components. - Added
localeandtranslationsto Form.Handler component to support custom translations. - Added
disabledandrequiredto Form.Handler component and pass these properties to the children fields. - Added
fieldPropsWhenHiddento Form.Visibility component to pass properties to the children when visibility is hidden.
v10.29
- Added Field.Name component.
- Added Value.Name component.
- Added Value.OrganizationNumber component.
- Added Value.PostalCodeAndCity component.
- Added
autocompletevariant to Field.Selection withautocompletePropssupport. - Added
transformInandtransformOutto Form.Handler. - Added step transition (animation) to Wizard.
- Enhanced session data storage performance by debouncing.
v10.28
- Added
getValuemethod to Form.useData and Form.getData. - Added
keepInDOMproperty to Form.Visibility.
v10.27
- Stable release of the Eufemia Forms extension 🎉