Skip to content

Releases: cloudnc/ngx-sub-form

v4.0.0

19 Dec 12:56
050cd3a

Choose a tag to compare

4.0.0 (2019-12-19)

Bug Fixes

  • lib: remap and root form components don't have the default values passed (only a type issue) (b58e983)

BREAKING CHANGES

  • lib: Adding a parameter to the transformToFormGroup method could be a breaking change if you're calling super.transformToFormGroup. As this method is a callback for ngx-sub-form, chances are: You're not calling it and this change will probably NOT affect you. The upgrade should go smoothly. If it does affect you, it'll be caught at build time so it should be easy to find out.

v3.0.6

18 Dec 16:16
48dc131

Choose a tag to compare

3.0.6 (2019-12-18)

Bug Fixes

v3.0.5

18 Dec 12:51
bdcc5aa

Choose a tag to compare

3.0.5 (2019-12-18)

Bug Fixes

v3.0.4

02 Dec 13:03
e01e19a

Choose a tag to compare

3.0.4 (2019-12-02)

Bug Fixes

  • lib: remove lodash-es dependency (04dafb3)

v3.0.3

28 Nov 10:18
2499b90

Choose a tag to compare

3.0.3 (2019-11-28)

Bug Fixes

  • lib: formGroupErrors only includes the errors within a FormArray, which makes it unusable to access an error by index (13c2535)
  • lib: when accessing formGroupErrors, a FormArray with no errors returns an empty array instead of null (d736211)

v3.0.2

12 Nov 12:30
9a7da28

Choose a tag to compare

3.0.2 (2019-11-12)

Bug Fixes

v3.0.1

07 Nov 14:36
1956d25

Choose a tag to compare

3.0.1 (2019-11-07)

This release should be 3.0.0 but an issue happened and the 3.0.0 couldn't be published.
Here are the notes for 3.0.0 (and the empty 3.0.1):

Features

  • lib: possibility to define default values and reset a form using those + possibility to set a formControl to null
  • lib: handle default values with transformToFormGroup

BREAKING CHANGES

transformToFormGroup can now receive a null value.
It also has a new param "defaultValues" which is a Partial of the form interface.
This gives finer control on the behavior when a null value is passed to a sub form and let you implement what you want. Indeed in some cases you may still display a sub form even if it's value is null, in that case, you then have the choice to reset the formGroup to default values, or set all of them to null. From transformToFormGroup, if you return null all the properties of the form will be reset to null, otherwise return an object representing all the values.

v2.11.5

30 Sep 13:50
005a8e5

Choose a tag to compare

2.11.5 (2019-09-30)

Bug Fixes

  • doc: typo "formControlErrors" instead of "formGroupErrors" (071c719)
  • doc: typo "formControlErrors" instead of "formGroupErrors" (#100) (005a8e5)

v2.11.4

05 Sep 12:25
d3c7292

Choose a tag to compare

2.11.4 (2019-09-05)

Bug Fixes

v2.11.3

13 Aug 16:45
6ecdb20

Choose a tag to compare

2.11.3 (2019-08-13)

Bug Fixes