Releases: dnbexperience/eufemia
Releases Β· dnbexperience/eufemia
v10.50.0
10.50.0 (2024-09-23)
π Documentation
- adds import statement to info doc for components (#3966) (8034c44)
- adds import statement to info doc for elements (#3972) (55ba97d)
- adds tabs to elements docs (#3967) (8305ce3)
- fix markdown link to text counter component (4fb5485)
- fix markdown link to text counter component (#3958) (2671ed4)
π Bug Fixes
- ChildrenWithAge: sync summary and edit container (#3950) (52ca0fb)
- Forms: add support for
transformIn
andtransformOut
to Field.SelectCountry (#3975) (d1c44c8), closes #3974 - Forms: deprecate and rename
{itemNr}
in favor of{itemNo}
(#3969) (594f967) - Forms: enhance defaultValue routine during mounting of fields (#3962) (68bcbcb)
- Forms: enhance reset routine of ChildrenWithAge block (#3961) (2ae6a5f)
- Forms: ensure
defaultValue
works in React.StrictMode (#3959) (fb71a48) - Forms: ensure
Value.*
component'stransformIn
can changes its value (#3965) (0698741) - Forms: execute
transformOut
when value or defaultValue is given (#3974) (77eab0c) - Forms: make
exportValidators
work with the same validator as given invalidator
oronBlurValidator
(#3977) (52a5e69) - Visibility: prioritize
visible
with a booean over other path assetion (#3949) (c74ee1d)
β¨ Features
- Forms: add
filterCountries
prop to Field.SelectCountry to filter out certain countries (#3979) (56dfe4f) - Forms: add
filterCountries
to Field.PhoneNumber (#3981) (8041541) - Forms: add
inheritVisibility
to eachValue.*
component (#3948) (367889b) - Forms: add
limit
prop to Iterate.Array (#3964) (c29b477) - Forms: add
reduceToVisibleFields
to theuseData
hook and Form.HandleronSubmit
(#3957) (db24256) - Forms: add
remove
method to Form.useData (#3960) (950e6a3) - Forms: add
useCountry
withgetCountryNameByIso
to Value.SelectCountry (#3953) (350c060) - OrganizationNumber: adds organization number validation (#3976) (6f344c2)
- Value.ArraySelection: add
variant
prop to allow for list layout (#3947) (1aff360)
v10.49.0
10.49.0 (2024-09-16)
β¨ Features
- Forms: add
{nextItemNo}
support to Iterate.PushButton (#3936) (c1445a3) - Forms: add
{nextItemNo}
support to Iterate.PushContainer open button (#3937) (84e8281) - Forms: add
animate
prop to Iterate.Array (#3928) (1d9f3e4)
π Bug Fixes
- ChildrenWithAge: fixes spacing issue above 1st child (#3942) (0f9dff3)
- Forms: enhance container boundary error handling (#3939) (e4691a0)
- Forms: remove unwanted Iterate.EditContainer error confirmation when using required on Form.Handler (#3938) (4523e35)
- Forms: Wizard.Step JSX component TypeScript fix (#3935) (5556182)
- HeightAnimation: enhance adjusting the height to 0 (#3929) (a1f6129)
- PushContainer: Add missing variant type (#3931) (32d41b9)
v10.48.0
10.48.0 (2024-09-12)
π Bug Fixes
- countries: Fixes wrong country code for Martinique #3915 (a9f86e4)
- countries: Remove outdated countries #3915 (36ef5cf)
- Forms: rename 'Macedonia' to 'North Macedonia' (#3918) (a4eb8a4)
- Forms: rename "Hviterussland" to "Belarus" (#3917) (702118a)
- removes outdated countries based on ISO 3166-1 alpha-2 (#3916) (a045acd)
β¨ Features
- Forms: add
toolbarVariant="minimumOneItem"
to Iterate.Toolbar for hiding buttons when there is only one item in the array (#3919) (3367a77), closes #3877 - Forms: add
validator
support to Iterate.Array (#3926) (6fd439e) - Forms: auto-open Form.Section container when fields have errors and add
validateInitially
prop (#3878) (9b49006) - Forms: auto-open iterate containers when validation errors and make
Iterate.Toolbar
fully customizable (#3877) (52326bf), closes #3919 - Forms: show optional label when a field uses
required={false}
and addlabelSuffix
prop to each field (#3921) (60e440a) - Wizard: add
preventNavigation
callback function toonStepChange
(#3924) (5ec2772)
v10.47.0
10.47.0 (2024-09-10)
π Documentation
- add component translations table to properties docs (#3902) (66dd12e)
- useTheme: updates docs to match TS type definitions (#3901) (52aaab3)
β¨ Features
- Button: rewise documented
title
prop with aria-label documentation (#3863) (ea444c0) - CopyOnClick: adds copyContent prop (e5a91b6)
- countries: Added missing countries from ISO 3166 #3894 (2992084)
- countries: Added missing countries from ISO 3166 #3894 (#3899) (ada0e92)
- Forms: extend validations in
Field.NationalIdentityNumber
(#3888) (50cc26b) - Forms: make it possible to reuse and extend internal validators (#3908) (7c97bf5)
- Forms: provide
connectWithPath
in the validator and onBlurValidator to get values from other fields/paths (#3895) (f4cf06f) - Value.Date: adds numeric variant (#3907) (b03e199)
π Bug Fixes
- Accordion: deprecate (rename) expandBehaviour in favor of expandBehavior (#3905) (76143b0)
- Breakpoint: ensure matching breakpoint ranges in mixins with docs & hooks (#3896) (260fcaf)
- Flex: enhance handling of React fragments (#3892) (156c805)
- Forms: enhance cleanup routine of fields (#3885) (388e0b2), closes #3877
- Forms: ensure label supports HTML formatting (#3911) (227569c)
- Forms: ensure labels do update when they change (async fields) (#3910) (bc40449)
- Forms: warn on value prop usage on fields inside iterate with itemPath (#3886) (116820d), closes #3877 #3882
- LabelDescription: nothing was returned (#3898) (3452855)
v10.46.0
10.46.0 (2024-09-02)
π Documentation
β¨ Features
- Blocks.ChildrenWithAge: removes step controls in age field (#3867) (3b02e45)
- CopyOnClick: add new component (#3834) (07ba09d)
- Field.ArraySelection: add dataPath prop (#3872) (35427d7)
- Forms: add
Value.SelectCountry
component (#3875) (416df35) - Forms: add function support for the
prefix
orsuffix
props inField.Number
(#3880) (652448c) - Forms: add validation for dnr and fnr in
Field.NationalIdentityNumber
(#3771) (8a2da43) - Forms: deprecate filterSubmitData in Form.Handler and return
filterData
in onSubmit and onChange instead (#3873) (f05bdd2)
π Bug Fixes
- Forms: add support for
gap={false}
to Value.Composition (ValueBlock) (#3884) (413c568) - Forms: enhance
Field.Email
validation pattern (#3874) (aee005f) - Forms: fallback to use default locale for translations when providing a non-existent locale (#3817) (f768613)
- InfinityScroller: forward load button props (#3737) (645a7b3)
v10.45.0
10.45.0 (2024-08-26)
π Documentation
π Bug Fixes
- forms: enhance
Field.Name
validation rule (#3849) (9c9142d) - forms: ensure
Iterate.Array
can handle an array given in the data context (#3842) (263f4c7), closes #3759 - forms: ensure
Section.EditContainer
cancel restores data when path is given (#3853) (eabc583), closes #3797 - forms: ensure pressing enter in an input field inside Wizard does trigger next step (#3852) (fd35828)
- forms: make
Form.Isolation
s data flow "from outside" stricter (#3847) (977962b), closes #3844 - forms: validate fields inside
Iterate.EditContainer
when done button is pressed (#3850) (2a2272e) - forms: validate fields inside
Section.EditContainer
when done button is pressed (#3851) (1c34980) - useTheme: define the return type of
null
as a possible return (#3861) (8d0cf61)
β¨ Features
- forms: add
inheritLabel
prop to value components (#3858) (01e0976) - forms: add
Iterate.PushContainer
to support an "initially open" container (#3843) (0fe23a9) - forms: add
Value.ArraySelection
component (#3854) (bc55cc2) - forms: add
Value.Selection
component (#3857) (7432986) - forms: add support for
{itemNr}
to the iterate container title + adduseItem
hook (#3848) (0d50272) - Upload: define max file size for file type (#3859) (13fc1a8)
v10.44.0
10.44.0 (2024-08-19)
π Documentation
- Field.Expiry: display translation props (#3815) (1efbbd0)
- Field.PhoneNumber: document onChange event args (#3807) (2b5f55e)
- Form.Isolation: add real world examples (#3808) (daec2fa)
π Bug Fixes
- Button: onClick can now be set using context provider (#3781) (0d2f525)
- forms: add
Form.Isolation
path support when used insideForm.Section
(#3829) (d836c18) - forms: ensure correct spacing between
Iterate.Array
items (#3838) (250aec0) - forms: ensure Form.Isolated does merge data properly (#3811) (8c90cb8), closes #3806
- forms: ensure Form.Isolation with commitHandleRef triggers field errors (#3810) (204396d)
- forms: show error when entered
Field.Currency
orField.Number
value exceeds maximum possible amount (#3821) (e9cdd68)
β¨ Features
- Field.PhoneNumber, Field.SelectCountry: additional event args for onFocus and onBlur (#3820) (1da5d4f)
- Field: adds typing for event callbacks (#3830) (2275002)
- Form: continuousValidation did not update error state correctly (#3804) (5ff74bd)
- forms: add
dataPath
prop to Field.Selection (#3816) (e43ad59) - forms: add
Form.clearData
method to remove existing/shared data forms with an id (#3809) (acf4c7f), closes #3803 /github.com/dnbexperience/eufemia/issues/3803#issuecomment-2283661946 - forms: add
transformOnCommit
to Form.Isolation (#3813) (21eca1a), closes #3812 #3808 - forms: add path prop support to Form.Isolation (#3812) (a16d782), closes #3811
- Forms: seperate translations for Boolean and Toggle (#3819) (fa0827b)
- Upload: enables disabling of fileMaxSize (#3835) (f2eff23)
v10.43.0
10.43.0 (2024-08-08)
π Documentation
β¨ Features
- forms: add
itemPath
to Visibility for when usingvisibleWhen
(#3798) (2e0663e) - forms: add Form.Isolation to isolate data context temporarily (#3796) (9ea241f)
- forms: Form.Visibility β deprecate
withValue
in favor ofhasValue
(#3799) (e9e51e0)