Releases: dnbexperience/eufemia
Releases Β· dnbexperience/eufemia
v10.59.0
10.59.0 (2024-12-02)
β¨ Features
- Upload: disabling delete button when loading (cca3388)
π Bug Fixes
- FormLabel: unhandled runtime error, elem is null (#4354) (a3414f1), closes /github.com/dnbexperience/eufemia/pull/4354/files#diff-f476207b8a837f2c0dea83ca374c5d383bcd895b0f6f10e033e12d7c0a7a3f84R142
v10.58.0
10.58.0 (2024-11-29)
β¨ Features
- Forms: add
showConfirmDialog
to Iterate.RemoveButton (#4330) (76bddf0) - Forms: add
variant="filled"
andtoolbarVariant="custom"
to Iterate.EditContainer and Iterate.ViewContainer (#4329) (b2b9eef) - Forms: add support for using a function references instead of a string based id (#4331) (a6e3bc3)
- Forms: enhance typing and add docs on how to deal with TypeScript types (#4343) (10b199b)
- Forms: introduce
decoupleForm
prop to Form.Handler (#4332) (0b02b6e)
π Bug Fixes
- DatePicker: make sure the picker and input only reacts to the props that have changed (#4342) (4cd52a3)
- Forms.Card: remove outline when variant="basic" on Section containers when used in Wizard (#4336) (ebad212)
- forms: add
sessionStorageId
support to Field.Upload with empty file list rendering (#4339) (d02a0af) - NumberFormat: improve regex for parsing phone numbers with country codes (#4340) (96613ed), closes #4337
v10.57.1
v10.57.0
10.57.0 (2024-11-22)
π Bug Fixes
- Forms: align Value.SummaryList when Value.* has no label (#4311) (b6621c2)
- Forms: ensure fields inside composition share submit indicator (#4309) (e726e20)
- Forms: safeguard errorMessages to avoid infinite loops when not wrapped in useMemo (#4305) (f14bacc)
- Forms: show indicator with async onBlurValidator call when
validateInitially
is used (#4303) (c585491) - Icon: ensure icon name is rendered as
data-testid
(#4304) (235b823)
β¨ Features
- Card, Section: add
outset
property for moderate layout breakout (#4317) (6008d9a) - DrawerList, Dropdown, Autocomplete, Field.Selection, Field.ArraySelection: disabled options (#4154) (8786d5d)
- Field.Upload: adds support for async and sync fn in
fileHandler
(#4294) (2cc816a) - Forms: add
Form.Card
with different default appearance than Card (useForm.Card
in forms instead of Card) (#4318) (7bbc0ca) - Forms: add
labelSrOnly
to Value.* components (#4319) (46f68ae), closes #4311 - Forms: deprecate
validator
in favor ofonChangeValidator
(#4314) (5a06b2e) - Typography: add general
.dnb-t
helper classes and add typography props to Span (#4235) (9dfe66d)
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)