Releases: dnbexperience/eufemia
Releases Β· dnbexperience/eufemia
v10.56.0
10.56.0 (2024-11-18)
π Bug Fixes
- DatePicker: ensure that
endMonth
does not fallback tostartMonth
whenendMonth
prop is defined (#4254) (5281257) - Forms: render given elements to
warning
andinfo
properties (#4261) (d60de25)
β‘ Refactoring
β¨ Features
- Field.Date: add DatePickerProps (#4160) (6a3765b)
- Forms: add
asyncFileHandler
to Field.Upload to support async file handling during upload (#4281) (030a09c) - Forms: add inline HelpButton to all Field.* components as default (with option to open in Dialog) (#4282) (e869a60)
- Forms: add support for multiple info, warning and error messages given by an array (#4284) (78f2fe8)
- ListFormat: adds spacing properties (#4255) (c72d999)
- Paragraph: handle nested paragraphs (to be
span
's) (#4251) (ca3bbde)
v10.55.1
v10.55.0
10.55.0 (2024-11-08)
π Documentation
- CountryFlag:
iso
defaults toNO
(#4234) (cab3c32) - display all Value components in the Value menu (#4231) (d260a9c)
π Bug Fixes
- ensure components having
fieldset
inside still can use spacing (#4236) (d4e4334) - Forms: add Iterate support for Field.PostalCodeAndCity when using
country
with a path (#4215) (6f80ed9), closes #4200 - Forms: ensure
Field.Number
withpercent
and without a value renders correctly (#4230) (96fa2a5), closes #4228 - Forms: fix vertical gap between Field.ArraySelection toggle buttons with checkbox variant (#4217) (83f0b37)
- Forms: remove extra space from Value.* components with
inline
property (#4246) (8b96fd1) - Forms: should display error underneath fields when nested inside Field.Selection or Field.ArraySelection (#4225) (c0f1a02)
- remove legacy
fieldset
reset (#4237) (a2f368b) - Upload: alignment when displaying single DL item (#4210) (5f745f5)
- Upload: fix
UploadFile
type to includeid
as required (#4218) (b24fdfd)
β¨ Features
- Card: add style for nested cards (#4244) (f45aa4a)
- Card: remove
beta
badge (#4211) (67a4fbd) - ChildrenWithAge: add maximum possible value to joint-responsibility & daycare (#4219) (9b9c517)
- CountryFlag: add iso to properties table (#4232) (9dc57cb)
- DatePicker: Convert to functional components with typescript and hooks (#2799) (45687ea)
- Forms: add
layoutOptions
for enhanced horizontal label layout (#4208) (8d84d97) - Forms: add
transformLabel
to Value.Composition (#4207) (c966bc1) - Forms: add
Value.Upload
component (#4233) (3adddac) - Forms: add EditButton, CancelButton and DoneButton to Form.Section containers (#4223) (092abcd)
- ListFormat: add
ListFormat
component (#4238) (63613f1) - Upload: add
download
prop to enable file downloads instead of opening in a new tab (#4213) (3e92934)
v10.54.1
v10.54.0
10.54.0 (2024-10-30)
π Documentation
π Bug Fixes
- Field.Number:
decimalLimit={0}
whencurrency
should work (#4167) (68123ea) - Forms: correct alignment of Wizard status message (error, warning, info) (#4185) (a307cda)
- Forms: ensure autocomplete="off" when autoComplete on Form.Handler is false (#4184) (6795b9f)
- Forms: ensure correct sorting in Field.SelectCountry (#4196) (8db7720), closes #4195
- Forms: fix schema validation for required paths with matching name (#4189) (04caf61), closes #4179
- Forms: only run onBlurValidator when no other errors are present (#4172) (d2797f1), closes #4074
- Forms: render multiple (combined) Ajv errors with translated messages (#4176) (2b62ef7), closes #4052
- Forms: updates country names in SelectCountry (#4187) (bb1b67c)
- NumberFormat: should not throw exception when providing an invalid currency (#4192) (a0700cd)
- Table: fix visible hidden rows for additional expandable table rows (#4188) (16b6101)
β¨ Features
- add CountryFlag component (#4181) (76a0c47)
- Dialog: add
verticalAlignment
property withtop
alignment support (#4190) (3ace8b0) - Forms: add
onDone
,onCancel
andonEdit
to Form.Section containers (#4199) (2f27ad0) - Forms: add
transformData
to the onSubmit event of Form.Handler (#4183) (748b604) - Forms: deprecate
useErrorMessage
hook for when creating your own fields (#4177) (2ae86f2), closes #4162 - Forms: deprecate Ajv
validationRule
in FormError and deprecateerrorMessages
keys likepattern
in favor of Eufemia translation keys likeField.errorPattern
(#4162) (b50387a) - Keyboard navigation: add support for
key
property (useful for fire events like {ArrowDown} during tests) (#4182) (cc1ffa8) - Upload:
text
andtitle
is possible to remove (#4163) (b6db4a4) - Upload: removes subtitle displaying file extension (#4156) (9bf9b9e)
- Upload: updates drag and drop texts in Norwegian (#4170) (ad5bbec)
v10.53.0
10.53.0 (2024-10-18)
π Bug Fixes
- Forms: keep Iterate.Array in sync with the data context and call onChange when
countPath
changes (#4147) (095ddaa) - Forms: UI alignments of the ChildrenWithAge block (#4137) (3db7201)
- Upload: handle file extensions with case insensitivity (#4138) (fd9d9ba)
β¨ Features
- add
renderMessage
to useTranslation hook for line-break support (#4125) (5b07bec) - Forms: add
country
prop to Field.PostalCodeAndCity to support other countries than Norway (#4109) (5095bea) - Forms: add
Form.useTranslation
hook (#4123) (6f40922), closes #4121 - Forms: add support for
minItems
/maxItems
error messages to Field.ArraySelection (#4120) (29ebe55) - Forms: add support to set a custom
width
to fields and values (#4142) (07b257f) - Forms: add validation to Field.BankAccountNumber (#4119) (f70ba3d)
- Forms: warn when a field path is declared more than one time (#4127) (ca15887)
v10.52.1
v10.52.0
10.52.0 (2024-10-11)
π Documentation
- NationalIdentityNumber: add docs about validation (#4077) (51bfd80)
- OrganizationNumber: adds docs about validation (#4078) (c785c51)
π Bug Fixes
- Autocomplete: Show whole suggestion list after item selection (#4060) (0acf061)
- Field.NationalIdentityNumber: validate on all digits(not only 11 digits) (#4079) (7c34fc9)
- Field.OrganizationNumber: should validate on all digits(not only when 9) (#4071) (08a4b51)
- Forms: add support for
Form.SubmitConfirmation
inside Wizard (#4088) (e1167a4), closes #4086 - Forms: don't call internal
exportValidators
when they not are exported as an array (#4113) (cd54ed0), closes #4106 - Forms: ensure
emptyValue
is set in the data context when defined (#4111) (dcc5694), closes #4070 - Forms: ensure
onBlurValidator
gets called whenvalidateInitially
is true (#4069) (59cf6c5), closes #4068 #4066 - Forms: ensure Field.SelectCountry has a fallback locale (nb-NO) (#4114) (568229a)
- Forms: ensure Form.clearData works in React.StrictMode (#4053) (da0c93a), closes #4048
- Forms: Fix use of unpolyfilled structuredClone in useData hook (#4108) (1f59f10)
- Forms: keep
Iterate.EditContainer
open when falsy value or empty object was given as the iterate value (#4087) (e932059), closes #4046 - Forms: show error on every value change when using exported validators (#4068) (cab6d01), closes #4067
- Icon: icon property typing should accept FormStatus icons (#4091) (f49eb34)
- NationalIdentityNumber: use
onBlurValidator
instead ofvalidator
(#3982) (0a93755) - Typography: match medium heading font size in Sbanken theme (#4039) (ce50529)
β¨ Features
- Forms: add
bubbleValidation
to Form.Isolation and Iterate.PushContainer to prevent the form from being submitted when there are fields with errors (#4103) (880f870), closes #4072 - Forms: add
createMinimumAgeValidator
to Field.NationalIdentityNumber make a customizableadultValidator
(#4057) (6c20ba2) - Forms: add
Form.useSnapshot
hook to handle snapshots of data (#4102) (d451793) - Forms: add
isolatedData
prop toIterate.PushContainer
(#4076) (ede5f8e) - Forms: add
isValid
to Form.Visibility for showing content based on the validation of a field (#4038) (7536752) - Forms: add
Iterate.ItemNo
component (#4095) (c736c9e) - Forms: add
transformLabel
to all Value.* component (#4056) (d63e472) - Forms: add support for
defaultValue
(andvalue
) for fields used inIterate.Array
(#3987) (afbdddf), closes #3882 - Forms: add support for
id
for when using dynamic steps withactiveWhen
(#4093) (248da92) - Forms: remove internal pattern from
Field.NationalIdentityNumber
in favor of the internal validator (#4098) (fb35722) - Forms: remove internal pattern from
Field.OrganizationNumber
in favor of the internal validator (#4092) (e829f8b), closes #4073 - Skeleton: stop animation after 30 seconds (#3479) (f67b3bb)
- Value.PhoneNumber and NumberFormat: displays country code using prefix
+
instead of00
(#4051) (fb363d0)
v10.51.2
10.51.2 (2024-10-03)
π Bug Fixes
- Badge: prevents unwanted re-rendering (#4049) (1e51e7a)
- Field.Selection: prevent
radio
re-render onClick to enable keyboard navigation (#4037) (d122f98) - Forms: support validation when using object based
transformOut
andtransformIn
on fields (#4042) (5554525), closes #3997 - Timeline: alt label complete -> completed (#4044) (4a6828d)