Changelog
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
6.3.12 (2024-12-08)
Bug Fixes
- core: fix submit validation on Angular v19 (1f2ac70), closes #4027
- primeng: restrict primeng peer dependencies (f9fca14), closes #3724
6.3.11 (2024-11-23)
Bug Fixes
6.3.10 (2024-10-20)
Bug Fixes
- core: apply default value on add fieldArray with resetOnHide (49aa764), closes #4002
- core: support clone object with no constructor (fcfe2bd), closes #4008
6.3.9 (2024-10-15)
Bug Fixes
- core: use union for field expression declaration (543d9e8), closes #4001
6.3.8 (2024-10-13)
Bug Fixes
- core: add type checking for boolean expressions (a86fad2), closes #3962
- core: mark formControl as dirty before value changes (4fbc367), closes #3996
- core: performance decline issue (#3994) (585357a)
- json-schema: improve anyOf selection of primitive types (74662f6), closes #3980
6.3.7 (2024-09-10)
Bug Fixes
- core: detect form status changes in Angular v18.1 (84e2150), closes #3972
- json-schema: ensure fieldGroup is defined for multischema (bf41932), closes #3975
6.3.6 (2024-07-14)
Bug Fixes
- core: set default value when insert at custom index for fieldArray (3461ea5), closes #3957
- json-schema: rely on value from form control for validation (ab5d29d), closes #3958
6.3.5 (2024-06-23)
Bug Fixes
6.3.4 (2024-06-09)
Bug Fixes
6.3.3 (2024-06-02)
Bug Fixes
6.3.2 (2024-05-26)
Bug Fixes
- core: detect model changes for zoneless change detection (#3922) (7db5ae2), closes #3921
- core: ensure defaultValues is set on new nested item added to array (#3924) (41e95db), closes #3891
- core: override initial defaultValue on build (#3923) (b5fb32c), closes #3916
- primeng: set default value for datepicker numberOfMonths (#3925) (40dd9bb), closes #3897
6.3.1 (2024-05-12)
Bug Fixes
- json-schema: ignore resetOnHide for array typ on build (fc8d6d1), closes #3910
- primeng: select filtering prop (#3856) (67c6783)
6.3.0 (2024-01-28)
Features
Bug Fixes
- core: handle clone of Uint8Array instance (0566430), closes #3850
- json-schema: handled nested key for uniqueItems (0f67d89), closes #3842
- json-schema: pass a valid model value for oneOf in array type (d597c00), closes #3805
- material: ensure textarea is working with Angular v17 hydration (e61880e), closes #3824
- primeng: add missing appendTo property to select type (c07e6d6), closes #3809
6.2.2 (2023-10-28)
Bug Fixes
- bootstrap: update multicheckbox aria attr in input tag (#3793) (c78462a)
- core: fix array remove for array of oneOf (88449e0), closes #3794
- core: optimize execution time of field expressions (6acf797), closes #3799
6.2.1 (2023-10-08)
Bug Fixes
- core: disable detect local fields inside wrappers (22b21d8), closes #3572
- core: disable update TreeValidity during the build step (3f65fb4), closes #3791
- core: remove detectChanges call in asyn validator (b0b9a09), closes #3791
- core: set the asyncValidators when async validators are present (#3792) (d825cff), closes #3791
6.2.0 (2023-09-28)
Features
Bug Fixes
- core: add warning when passing invalid type for required prop (0bf7676), closes #3756
- core: update onInit hook type definition (0b7c553), closes #3722
- json-schema: allow scientific notation in number type (4d67c3e), closes #3757
- json-schema: fix uniqueItems validator for object (c8b59b3), closes #3764
- json-schema: support dependencies for oneOf with mixed type (a9d8676), closes #3749
- json-schema: support oneOf with array mixed type (bcf930b), closes #3769 #3785
- material: use correct CSS class for form field required marker (#3763) (8ac1683)
6.1.8 (2023-06-12)
Bug Fixes
- core: allow createComponent type in testing (cf22bed), closes #3700
- core: detect changes when field is focused (9861d6f)
- core: set a default value to FieldType::field property (817431a), closes #3700
6.1.7 (2023-05-20)
Bug Fixes
6.1.6 (2023-05-10)
Bug Fixes
- core: ensure formState changes on all fields (db584f8), closes #3680
6.1.5 (2023-05-06)
Bug Fixes
- core: delegate FormArray creation to FieldArrayType only (7d02313), closes #3576
- core: supports nested model assign in expressions (74b3b69), closes #3667 #3664
- schematics: add module import to root module (ea959be), closes #3638
6.1.4 (2023-05-01)
Bug Fixes
- core: ensure disabled prop is working for field without key (#3665) (1dd5c6e), closes #3657
- core: ensure observe prop is defined before calling defineProperty (#3666) (d8cafc8), closes #3631
- core: select options pipe has wrong return types (0ff64bc)
- material: add panelClass to mat-select props (#3634) (9b28fc0)
6.1.3 (2023-03-06)
Bug Fixes
- material: add DisplayWith to Slider default value (6ec558c)
6.1.2 (2023-03-06)
Bug Fixes
- core: allow Observable in validator message (2d6ddfa), closes #3601
- core: handle unchanged emitted model immutable mode (601ddd3), closes #3584
- demo: unsubscribe subscriptions to avoid memory leaks (7876c1e)
- kendo: update peer dependencies (501b3fe)
- kendo: update peer dependencies (#3592) (ecbbe55), closes #3571
- material: fix typo "ng-containe" -> "ng-container" (e262fbf)
- material: update assign DisplayWith in Slider type (e76e243), closes #3574
- material: use same reference for adding and removing event listener (22c2ec1)
6.1.1 (2023-01-20)
Bug Fixes
- core: ensure the model is a valid array for FieldArrayType (f1add09), closes #3561
- material: add subscriptSizing support for FormField (8e6114a), closes #3559
- material: add support of text prefix / suffix (2779cd2), closes #3556
- material: fix select overlay position (611a02f), closes #3563
- material: support thumb label in slider type (8239de2), closes #3560
6.1.0 (2023-01-15)
Features
Bug Fixes
- core: hide empty formly-field element (4713038), closes #3516
- kendo: take account of passing custom wrapper (bcce565), closes #3553
- material: make slider compatible with v15 (2466a5e), closes #3503
- material: set default color for mat-form-field (78b9a90), closes #3532
6.0.4 (2022-11-30)
Bug Fixes
- core: handle component destroy error (8e93d4c)
- core: import error in rxjs v6 (7f2cd96), closes #3513
6.0.3 (2022-11-29)
Bug Fixes
6.0.2 (2022-11-06)
Bug Fixes
- json-schema: fix uniqueItems validator (eb7c122)
- json-schema: ignore optional array in minItems validator (#3485) (71a921a)
- json-schema: skip populate array default value for optional array (#3486) (d63af4a)
6.0.1 (2022-10-09)
Bug Fixes
- json-schema: retrieve other field value from f.model (#3441) (c282cde)
- kendo: remove duplicate formControl directive in input type (276487f), closes #3435
6.0.0 (2022-08-28)
Bug Fixes
- core: detect changes of formState (bd00fa1), closes #3388
- nativescript: remove usage of deprecated module (ae3f927), closes #3385
Bug Fixes
Features
- kendo: update peerDependencies to Angular v13 (735b8e5)
Bug Fixes
- core: add Angular 14 compatibility (e1b9141), closes #3340
- core: sync fieldGroup length on FieldArrayType remove (8da376c), closes #3353
- material: remove usage of form-field deep import path (#3359) (f0a7acf)
⚠ BREAKING CHANGES
- primeng:
datepicker
type has been removed from FormlyPrimeNGModule
, use FormlyDatepickerModule
instead.
import { FormlyDatepickerModule } from '@ngx-formly/primeng/datepicker';
@NgModule({
imports: [
...
FormlyDatepickerModule,
],
})
export class AppModule {}
Bug Fixes
- core: fixed FieldArrayTypeConfig props declaration (#3342) (7f02170), closes #3341
- core: handle passing undefined to select options pipe (#3326) (2299818)
- primeng: remove datepicker from main module (fb623be), closes #3339
Bug Fixes
Bug Fixes
- schematics: use v6.0.0-beta (47f08f5)
⚠ BREAKING CHANGES
- bootstrap: To customize style of bootstrap types rely on
formly-wrapper-form-field
instead of the following selectors:
formly-wrapper-addons
formly-field-checkbox
formly-field-input
formly-field-multicheckbox
formly-field-radio
formly-field-select
formly-field-textarea
Features
- add typings for Formly UI types (#3303) (8f9d9aa), closes #3242
- bootstrap: support floating labels (7c4c64c), closes #3265
- core: add preset module to enable form config re-use (#3256) (597f5fa), closes #3208
- core: allow passing component to the field definition (#3239) (d6bff72), closes #2077
- core: allow passing wrapper component to the field definition (#3240) (b56e4be), closes #2077
- core: deprecate
expressionProperties
in favor of expressions
(4df05ce), closes #2853
- core: deprecate
templateOptions
in favor of props
(6e9d949), closes #2853
- json-schema: rely on minItems to pre-populate array default value (#3263) (4943c78), closes #3246
Bug Fixes
- core: remove additionalProps from FormlyFieldProps interface (#3295) (05891df), closes #3242
- material: detect changes of datepicker opened property (#3275) (30f45fd), closes #3257
⚠ BREAKING CHANGES
- core: minimal required version of
@angular/forms
is v13.2
.
Features
Bug Fixes
- core: remove OnPush change detection in wrappers (#3227) (b507a51), closes #3207
- core: removes usage of deprecated ComponentFactoryResolver (#3225) (21905b1)
- core: update validation messages signature (#3206) (e6d309e), closes #3201
⚠ BREAKING CHANGES
- ionic: minimal required version of
@ionic/angular
is v6
.
Features
- bootstrap: remove usage of inline-styles in addons (#3153) (3e80086), closes #2496
- core: use minLength, maxLength for message validations (#3164) (74e8dd5), closes #1896
- ionic: update peerDependencies to v6 (3e66e69)
- ionic: use modal for datetime type (1c2e4a8)
- json-schema: support oneOf for non-object type (#3152) (17bdf07), closes #2528
Bug Fixes
- core: detect changes when building a child field (#3151) (7d17f20)
- core: do not emit
modelChange
when a field without key changes (#3154) (95f5cd2)
- core: ignore passing empty string to field key (#3193) (33e8a8a), closes #3175
- ng-zorro-antd: add missing change event for select and radio type (#3197) (eca28f7)
- testing: build field on createField::setInputs call (#3150) (e0e0243)
⚠ BREAKING CHANGES
- nativescript: minimal required version of
@nativescript/angular
is v13
.
Features
Bug Fixes
- core: detect fields input changes after the first render (#3146) (61b17f8)
- core: detect formControl status changes (#3136) (da76615), closes #3123
- core: update field component instance used in onPopulate (#3145) (179c2ec), closes #2285
- upgrade: update incorrect spread operator in upgrade docs (#3102) (7e1ad6e)
Bug Fixes
- core: emit valueChanges when FormControl value changes (#3079) (4bd37b8), closes #3076
Bug Fixes
⚠ BREAKING CHANGES
- Formly v6 now requires Angular Version >= 13
- bootstrap: The two first argument of
onClick
handler has been replaced by field
instance
Features
- bootstrap: change
add-on::onClick
callback signature (f063d2b), closes #2617
- bootstrap: update bootstrap to v5 (#2846) (6130804)
- core: add helper function to get the field by key (#3040) (43cce72), closes #2854
- core: allow passing function to fieldArray (#3014) (ed4ec31), closes #2809 #1882
- core: Allow passing model to updateInitialValue (#3022) (81e8f82), closes #2943
- material: add calendarHeaderComponent input for datepicker (#2871) (bc172ad), closes #2814
- material: add label position input to toggle type (#3013) (30e83a2), closes #3006
- material: add slider missing inputs (#2873) (015c25f), closes #2110
- material: add typeaheadDebounceInterval input for select (#2872) (f3b8137), closes #2649
- material: pass field to suffix/prefix material template (#3023) (1fcbb03), closes #2895
- upgrade to angular v13 (#3062) (7dbfdec), closes #3053 #3049 #2701 #2958
Bug Fixes
- core: improve detection changes of templateOptions props (#2971) (5996c90), closes #2961
- schematics: use angular v13 (71aacb3)
⚠ BREAKING CHANGES
- core: The checkExpressionOn option is set to modelChange instead of changeDetectionCheck
- Formly v6 now requires Angular Version >= 11
- core: The
resetFieldOnHide
option is enabled by default
- core: The
lazyRender
option is enabled by default
- core: The initial value of the created FormControl has been changed from
null
to
undefined
to match the field model value.
- core: The defaultValue for fieldGroup and fieldArray has been removed.
Features
- bootstrap: move types into separate entry points (f08d787)
- core: add
@ngx-formly/core/testing
package (866cb26)
- core: add support for inline type (#2759) (9d8069e), closes #2707 #2086
- core: add type of templateOptions accessor "to" (#2745) (21775b9)
- core: add v6 migration guide (#2716) (8c274d9)
- core: allow control resetOnHide for a specific field (#2721) (057dcce)
- core: allow omit formly-field element (#2761) (edb11d9), closes #2710 #2756
- core: allow pass already grouped structure to select opti… (#2091) (6b5fb3d), closes #1580
- core: allow passing observable for expression asyncValidators (#1849) (51c5f3d)
- core: avoid unnecessary model changes for group/array type (#1901) (3d255c0)
- core: check expression on change only (#2743) (0fd6f01)
- core: expose build, detectChanges and checkExpressions in options (#2328) (fa91dfa), closes #1773 #1583
- core: lazy render hidden fields by default (#2720) (e0bcb7c)
- core: remove deprecated hook methods (#2347) (d45ca37)
- core: remove deprecated methods and configs (#1665) (b6eb1de)
- core: remove deprecated template manipulators (069fb3f)
- core: remove v5.5 deprecations (#1842) (1c7b5c6)
- core: switch to OnPush change detection (#2317) (5132292)
- core: use undefined as defaultValue for control to match the model (#1917) (52b294b), closes #1861
- ionic: move types into separate entry points (#1570) (2c4ef82)
- json-schema: map 'boolean', 'string', 'number', 'integer', 'enum' types (#2232) (64bd68c)
- kendo: move types into separate entry points (#1569) (0e785b4)
- material: mat-hint alignment support (#2646) (1217745), closes #2494
- material: simplify extending custom field type (#2742) (7ec909d)
- ng-zorro-antd: add ui-ng-zorro-antd (ee6c0fd)
- ng-zorro-antd: move types into separate entry points (9ba6c63)
- primeng: calendar support (#2615) (7d29e4f)
- primeng: move types into separate entry points (#1568) (6ec3c4f)
- upgrade to Angular 9 (#2316) (d31b2a6)
- upgrade to angular v10 (#2741) (b3cc18a)
Bug Fixes
- core: detect changes of formState and on rebuild (#2335) (c75acc1)
- core: skip emitting modelChange on inputs changes (67a1919)
- material: removed double tag closing in datepicker type (#2327) (7969ac9)
- sync v5 branch (2acc4ea)
5.12.7 (2022-10-02)
Bug Fixes
- core: detect change of expressionChanges in formlySelectOptions (9f729d3), closes #3420
5.12.6 (2022-07-14)
Bug Fixes
5.12.5 (2022-06-10)
Bug Fixes
- core: detect changes when focusing a repeatable field (#3347) (5f600c2), closes #3344
5.12.4 (2022-06-03)
Bug Fixes
- core: detect validation message changes in expressionProperties (#3330) (c7692d9), closes #3317
- core: trigger validation in ArrayType on field update (#3328) (90ef367), closes #3327
5.12.3 (2022-05-27)
Bug Fixes
- bootstrap: updates dirty state before modelChange in multicheckbox (1ea4463), closes #3302
- core: keep display: none for hidden fields when lazyRender is true (cc10cb9), closes #3313
- material: add null check for datepicker errors property (9fcabef), closes #3315
5.12.2 (2022-05-19)
- core: avoid rebuild all fields on FieldArray update (#3301) (2f17e73)
5.12.1 (2022-04-22)
Bug Fixes
- core: emit valueChanges when fieldArray length is decreasing (#3279) (169bc62), closes #3250
- core: improve eval array notation in expressions (#3278) (17c0bd6), closes #3264
5.12.0 (2022-03-30)
Bug Fixes
Features
5.11.2 (2022-03-16)
Bug Fixes
- core: allow override typing for field property in FieldArrayType (#3230) (3aa5537), closes #3218
5.11.1 (2022-03-13)
Bug Fixes
- core: mark defaultOptions as optional (c71d799)
5.11.0 (2022-03-13)
Features
- core: add support of strictTemplates in FieldType (#3218) (99e7e2b)
Bug Fixes
- bootstrap: support disable a specific multicheckbox option (#3192) (bed082f), closes #3184
- core: use host listener to catch custom change events (#3196) (f7831c8), closes #2353
- material: prioritize matDatepickerParse error over required (#3195) (8c9a397), closes #3190
Bug Fixes
- core: keep disabled state of field group consistent (#3163) (d4e4758), closes #3160
- core: take account passing a non-string value for field id (962b190)
Bug Fixes
- core: call change callback after formControl update (#3155) (f07e13b)
- core: ignore handle attr by formlyAttributes if already set (#3156) (3ee0164), closes #2532
- core: remove unnecessary validation calls during the build step (#3157) (3bf8760)
Bug Fixes
- core: optimize emitted valueChanges for fieldArray items (#3143) (6b95b50), closes #3130
- material: fix invalid ARIA attributes in MultiCheckbox type (#3144) (ca44093), closes #3004
Bug Fixes
- core: detect validation message changes in expressions (84581bc), closes #3104
- json-schema: improve detecting oneOf selected item for object & array (b71dabe)
- json-schema: improve handling oneOf array select change (c11334a), closes #3124
Bug Fixes
Bug Fixes
Bug Fixes
- core: improve detecting changes when using Function in expression (#3080) (73551ee), closes #2993
- json-schema: take account of oneOf model change (#3077) (1cbdc3e), closes #3059
- json-schema: take account of undefined value for integer type (#3078) (7bdd137), closes #3075
Bug Fixes
- core: handle TemplateRef clone (#3067) (8e1ba9f), closes #2574
- material: assign prefix to templateOptions instead of field (ecca5d3), closes #3074
Bug Fixes
Bug Fixes
Bug Fixes
- core: allow overriding the default build-in html attributes (#2915) (a20df51), closes #2908
- core: improve parse array notation in expression property (#2924) (05d714f), closes #2916
- core: improve stream source comparison of expressionProperties (#2923) (ce1ca29), closes #2922
- core: set aria-hidden to required marker (#2913) (2d70d9f), closes #2887
- core: take account of previously disabled control (#2910) (65c8a95), closes #2907
- json-schema: handle array type without items keyword (#2914) (6cb40ec), closes #2884
- json-schema: take account of empty model in required expr (#2904) (22451d9), closes #2898
- material: support passing long error message (#2912) (32fac5b), closes #2892
Bug Fixes
- json-schema: improve validation of multipleOf with decimal numbers (#2869) (faece37), closes #2863
- json-schema: support passing widget with $ref definition (#2870) (fee312d), closes #2865
Bug Fixes
Bug Fixes
- core: ensure validators key is defined on build (#2820) (51300c8), closes #2818
- json-schema: do not override widget.formlyConfig.key (#2807) (69140f0)
- json-schema: resolve recursive schema when using widget (#2827) (055c268), closes #2823
- json-schema: take account of optional object with required props (#2817) (6a97932), closes #2752
- material: allow passing aria-label to mat-select (#2828) (f26d7e2), closes #2821
Bug Fixes
Bug Fixes
- schematics: handle not found project (af27dee)
Bug Fixes
Bug Fixes
- schematics: restrict angular dependencies (5b18126), closes #2701
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
5.10.9 (2020-12-14)
Reverts
- core: take account of parent disable state on init (0e0980a), closes #2624
5.10.8 (2020-12-11)
Bug Fixes
5.10.7 (2020-12-08)
Bug Fixes
5.10.6 (2020-10-31)
Bug Fixes
5.10.5 (2020-10-25)
Bug Fixes
- core: avoid creation a dummy field for nested key (#2560) (0b9caa4), closes #2547
- core: avoid overriding accessor by property (#2559) (deefd4e), closes #2552
- material: prevent scroll on focus for radio and checkbox (#2562) (fd0ccd2)
5.10.4 (2020-10-17)
Bug Fixes
5.10.3 (2020-10-03)
Bug Fixes
5.10.2 (2020-09-26)
Bug Fixes
5.10.1 (2020-09-04)
Bug Fixes
- core: apply defaultValue for array when resetFieldOnHide enabled (#2488) (4049e00)
5.10.0 (2020-08-30)
Bug Fixes
- core: avoid memory leakes for internal componentRefs (#2474) (e3d29e5)
- core: share formControl for array field when key is duplicated (#2422) (8e461f4), closes #2420
- json-schema: avoid rely on default value for select oneOf item (#2431) (1c182bf), closes #2429
- json-schema: avoid reset on hide during the build step (#2426) (07fb1f6), closes #2420
- json-schema: support nested oneOf (#2428) (085f32c), closes #2403
- json-schema: take account of passing float to multipleOf validation (#2441) (f0ba4be), closes #2435
- material: apply a11y for validation messages (#2464) (c35a73b)
- material: remove empty mat-prefix and mat-suffix (#2444) (108fe95), closes #2443
- schematics: update angular-devkit deps (#2413) (6e232e1)
Features
5.9.3 (2020-07-26)
Bug Fixes
5.9.2 (2020-07-24)
Bug Fixes
5.9.1 (2020-07-20)
Bug Fixes
5.9.0 (2020-07-14)
Bug Fixes
- core: avoid unnecessary valueChanges on add/remove field array (#2361) (26370ce), closes #2355
- material: rely on checkbox change input instead of formly attr (#2356) (eaa66ed), closes #2353
- material: revert required behavior for checkbox (#2358) (3c08c38), closes #2349
- schematics: include ng-zorro-antd in uiTheme schema.json (ffad0db), closes #2333
Features
- core: allow passing number or array to field key (#2359) (edf7f27), closes #2344
- core: emit expressionChanges event through fieldChanges option (#2357) (5d19b9f), closes #2350
5.8.0 (2020-06-29)
Bug Fixes
- core: ensure change event is called after the formControl change (#2336) (051480d), closes #2324
- schematics: add ng-zorro-antd to ui-theme option (#2337) (e2274a7), closes #2333
Features
- bootstrap: support checkbox without label (#2339) (989dec0), closes #2313
- core: support attach error to specific field from a validator (#2342) (d8b612d), closes #2332
- ionic: add Names && ShortNames inputs for datetime picker (#2338) (2e74cb3), closes #2331
- material: add monthSelected && yearSelected outputs for datepicker (#2340) (f1f0cc9), closes #2308
5.7.2 (2020-06-20)
Bug Fixes
- core: allow Observable for
validation.messages
property (#2297) (af6ecf8)
- core: provide more details on missing type declaration (#2320) (c98b242), closes #2305
- material: use false for input static query (#2319) (cd53629), closes #2314
5.7.1 (2020-06-03)
Bug Fixes
5.7.0 (2020-06-01)
Bug Fixes
Features
- bootstrap: support switch style checkboxes (#2263) (5b1a771), closes #2257
- core: add an alternative way for passing parameters to validation (#2269) (0295bd9), closes #1828
- core: allow nullable value for group type (#2267) (a34d384), closes #2265
- core: allow onInit/afterView/afterContent to return observables (#2242) (f91637e), closes #1986
- core: deprecate doCheck, afterContent and afterView Checked hooks (#2245) (aea28e1)
- core: support passing observable for validation message (#2241) (a53a737), closes #2214
- core: support validations for fieldGroup with empty key (#2271) (ffe7df0), closes #2059 #2255
- ionic: add compareWith input for select type (#2277) (7ef2b8e), closes #2275
- material: add missing mat-datepicker inputs to datepickerOptions (#2274) (4003729), closes #2221
5.6.2 (2020-05-21)
Bug Fixes
- material: take account of disabled state for multicheckbox type (#2225) (741df7a), closes #2224
- material: take account of radio button focus on page load (#2249) (35602e5), closes #2248
5.6.1 (2020-04-30)
Bug Fixes
- core: resubscribe to expr prop when re-rendering the field (#2216) (1269f57), closes #2214
- ionic: allow async options for ion-select (#2202) (7a3247d)
- material: make sure required attribute is present in mat types (#2213) (89ea2ac), closes #2212
5.6.0 (2020-04-22)
Bug Fixes
- core: ensure field is not empty when calling hooks (#2198) (7019161), closes #1864
- core: fix OnPush FieldTypes not being change detected (#2192) (3234118)
- core: support Content-Security-Policy header script-src 's… (#2199) (23edc3e), closes #2157
- json-schema: take acocunt of total matched oneOf props (#2196) (9367216), closes #2195
- schematics: remove comments in collection.json (#2178) (5514f59)
Features
- bootstrap: support custom-inline for radio/checkbox (#2133) (8b46f95), closes #2103
- core: add safeHtml opt to bypass sanitizing template HTML… (#2090) (bbd7009), closes #2039
- core: all Add/Remove field array without triggering form… (#2087) (a96cae6), closes #2044
- ionic: add missing properties to datetime type (#2141) (56705dc)
- material: add dateInput and dateChange options to datepic… (#2132) (666e960), closes #2127
- material: mat-slide-toggle color support (#2186) (3e3b121)
- material: mat-slider thumbLabel support (#2190) (6266881)
5.5.15 (2020-03-17)
Bug Fixes
- core: allow using FieldArray without a key (#2142) (32a3a9d)
- core: ensure showError option return a boolean value (#2146) (0ed6f9a), closes #2144
- primeng: change class ui-messages-error to ui-message-error (#2136) (1b41aaa), closes #2135
5.5.14 (2020-03-06)
Bug Fixes
5.5.13 (2020-02-20)
Bug Fixes
5.5.12 (2020-02-12)
Bug Fixes
- core: ensure UI is in sync when using custom checkExpressi… (#2097) (80c2f7b), closes #2095
- core: take account of passing observable to model expr (#2096) (4bf1445), closes #2094
- core: take account of the emitted modelChange value as mod… (#2098) (ad99519), closes #2093
- core: reduce form _updateTreeValidity calls (#2078) (dad2ef6)
5.5.11 (2020-02-03)
Bug Fixes
- bootstrap: rely on accessor to select empty option (#2047) (890c5aa), closes #2043
- core: avoid using includes for IE compatibility (#2062) (1f9b0ae), closes #2058
- core: create field type instance for each formly-field com… (#2068) (ecc632d), closes #2060 #2065 #2045
- core: detach the rendered field from the destroyed wrapper… (#2073) (cca863e)
- core: detect expression changes on submit (#2046) (9947906), closes #1845
- core: detect observable expression changes when using OnPush CD (#2051) (960ee42), closes #2050
- core: ensure wrapProperty fn is removed after unsubscribe (#2067) (ef77b49), closes #2066
- core: keep order of value subscriptions consistent on rebu… (#2063) (d667122), closes #2061
- core: set id attr to the first formlyAttributes elements only (ed3ea3c)
- core: use id @Input when is set instead of field id (dfda03b), closes #2071
- material: remove textarea autosize attributes when disabled (#2052) (80e7c14), closes #2042
- core: reduce number of created components during the buil… (#2069) (f371aad)
5.5.10 (2020-01-20)
Bug Fixes
- core: improve detect changes of formly-field host binding (#2033) (47fe101), closes #2031
- material: allow overriding tabindex on mat-radio-group (#2034) (4f397ae), closes #2032
5.5.9 (2020-01-13)
Bug Fixes
- core: avoid re-use the removed controls of fieldArray (ce02649)
- core: rely on ngZone to detect changes instead of changeDe… (#2027) (2e838a0), closes #2018
- core: take account of custom formControl value changes (#2017) (c8dacb5), closes #2016
- core: update validity of detached field control (503e793)
- json-schema: ensure default value is applied on switch oneOf schema (f04cdde)
- bootstrap: improve render time of long list for select ty… (#2023) (cd198f3), closes #2022
5.5.8 (2020-01-06)
Bug Fixes
- core: avoid touching hidden field control on re-build (#1989) (f982c32), closes #1987
- core: detect changes before emitting
modelChange
(#2001) (73e1651)
- core: eval expressions after
reset
is fully processed (#1998) (2f785e0)
- core: ignore removed controls on reset (#1997) (0d76f50)
- core: improve handling validation of hidden fields (#2008) (298a152)
- core: reduce the amount of emitted valueChanges event (#1990) (b940a8e), closes #1970
- core: render template type when used in expressionProperti… (#2010) (796547a)
- json-schema: assign default value when the field is shown (#2006) (fb65684), closes #1995
- json-schema: enable autclear for extended schema with oneOf (#2014) (a92c88f)
- json-schema: rely on initialModel to resolve oneOf schema (#2009) (8ce506b)
- material: take account of min/max and step attr for slider type (#2015) (3476948)
- core: reduce the emitted
modelChange
events (#1999) (b7567a1)
- core: reduce the registered formlyAttributes event listen… (#1992) (e1ef87e), closes #1991
- core: use OnPush change detection on FormlyValidationMess… (#1996) (70ffd5d)
5.5.7 (2019-12-17)
Bug Fixes
- bootstrap: add missing compareWith input to the select type (#1978) (14f9964), closes #1974
- core: check expressions before emitting modelChange (#1977) (510570e)
- core: fix max calls error when dealing with sync valueChanges (#1973) (f685d3b)
- ionic: add missing dialog text inputs (#1979) (95b0815), closes #1963
- json-schema: take account of model value on resolve oneOf schema (#1968) (0330789), closes #1957
- material: avoid unnecessary focus when Radio Button is selected (0665700), closes #1969
- material: disable tabindex for MatRadioGroup element (26bea8f), closes #1969
5.5.6 (2019-11-20)
Bug Fixes
5.5.5 (2019-11-18)
Bug Fixes
5.5.4 (2019-11-10)
Bug Fixes
- core: emit a valid model when using array notation key in group (#1910) (e4cd721), closes #1857
- core: ignore default debounce when using updateOn blur/submit (#1903) (2d73fb9), closes #1898
- core: include field without key on hide changed programmatically (#1904) (39a9051)
- core: skip detectChanges call on first render (#1905) (24396a3), closes #1900
5.5.3 (2019-11-01)
Bug Fixes
- core: ensure the first render is called after onInit (#1881) (73f0316)
- core: set static flag to false for ivy support (#1893) (9a63c3e)
- core: toggle control when hide changed programmatically (#1888) (fdb1cbe), closes #1817 #1742
- core: update form validity when changing built-in validations (#1887) (fb8485d), closes #1493
5.5.2 (2019-10-29)
Bug Fixes
- core: change the check File instance for SSR compatibility (#1865) (7883f1a), closes #1864
- core: clone initialModel during reset model (#1874) (e706cf8), closes #1872
- core: ensure array notation for key emit a valid model (#1859) (0b3ab37), closes #1857
- core: ensure the validation calls occurs only once during build (#1866) (770bea9), closes #1754
- core: support resolving non static fieldComponent query (#1878) (ac7e9a2), closes #1868
- core: toggle controls of the hidden fields before the visible ones (#1875) (d35460e), closes #1700
- ionic: add missing export of ionFormlyAttributes (#1880) (679ee10), closes #1879
- json-schema: use multi-select to handle anyOf schema (eb71a68)
- material: avoid using deprecated underlineRef (#1860) (807218f)
- material: support selectAll in multiselect with group (#1867) (f5625ea), closes #1852
- make FormlyModule ModuleWithProviders generic for ng9 support (#1854) (dbb860d)
5.5.1 (2019-10-15)
Bug Fixes
- core: add warn when using legacy select option (#1840) (bf2448d)
- core: apply sync value only when key is duplicated (#1837) (4a34464)
- core: merge existing options when replacing a field type (#1838) (177c4f4), closes #1836
5.5.0 (2019-10-09)
Bug Fixes
Features
- core: deprecate passing content inside the 'formly-form' tag (#1826) (0f168f7)
- core: deprecate passing immutable attr to formly-form component (#1827) (61f9391)
- core: mark the form array dirty on Add/Remove (#1824) (92bb6d7), closes #1679
- ionic: allow customize <ion-item> lines (#1809) (94dd5cc), closes #1732
- json-schema: add const validator (#1825) (4607b1c)
- json-schema: add support for adding custom labels to enum (#1802) (a96c8fe)
- json-schema: add support for uniqueItems (#1812) (9164c74)
- json-schema: partial support of anyOf/oneOf keyword (#1811) (d60e0f5)
- json-schema: support multiselect type (#1813) (371723e)
5.4.3 (2019-09-20)
Bug Fixes
- core: better clone for File and moment.js instance (#1789) (d810035), closes #1788
- core: skip _markForCheck call during init (#1792) (718920a)
- json-schema: set nullable string type to
null
if empty (#1787) (8d4985b)
5.4.2 (2019-09-16)
Bug Fixes
- core: allow nullable value for array type (#1780) (d8f5f61), closes #1764
- core: avoid checking parent field on eval hide expression (#1749) (087523b), closes #1700
- json-schema: guess nullable and single array type (#1781) (dabf2a6), closes #1777
- json-schema: set valid fieldArray when additionalItems is empty (#1784) (4413193), closes #1777
- material: ensure showing datepicker icon when OnPush enabled (#1767) (6ef3e57), closes #1766
- material: use passed aria-labelledby attr for select type (#1748) (b8f1834), closes #1746
5.4.1 (2019-08-26)
Bug Fixes
- core: avoid removing the wrong formControl instance on hide (#1741) (9a68aaf), closes #1700
- material: enable static query for formFieldControl (#1740) (512befe)
- material: enable static query for MatFormField (#1733) (038c22d)
5.4.0 (2019-08-19)
Bug Fixes
Features
5.3.0 (2019-07-24)
Bug Fixes
- core: add warn for missing static flag for @ViewChild (#1673) (b0972a2), closes #1633
- core: avoid assigning defaultValue by reference (#1687) (4ac1fe3), closes #1684
- core: override existing form group instance on re-build (#1680) (8ddffee), closes #1677
- json-schema: handle passing empty value for number type (#1657) (070f558)
Features
5.2.0 (2019-07-08)
Bug Fixes
- bootstrap: select empty option when value is null (#1652) (50a1138), closes #1625
- core: restore support component-level injectors for types (#1651) (165ac75), closes #1622
- material: avoid handling focus for selected radio option (#1648) (44535ac), closes #1631
- material: remove duplicated change event listener (#1649) (d28f7a8), closes #1644
Features
- core: take account of enumerable getter on clone (#1637) (66239d9)
5.1.9 (2019-06-04)
Bug Fixes
- material: multi-select when passing observable data (#1614) (e74bd4e)
5.1.8 (2019-05-31)
Bug Fixes
- core: avoid rerender on model change with immutable mode (#1610) (16fc39e), closes #1429
5.1.7 (2019-05-28)
Bug Fixes
5.1.6 (2019-05-24)
Bug Fixes
5.1.5 (2019-05-20)
Bug Fixes
- core: rely on option componentFactoryResolver for wrapper (#1590) (7c8fc00)
5.1.4 (2019-05-13)
Bug Fixes
5.1.3 (2019-05-07)
Bug Fixes
5.1.2 (2019-05-06)
Bug Fixes
5.1.1 (2019-05-03)
Bug Fixes
- core: allow passing a non array to the validation property (#1575) (3cdc8fa), closes #1573
5.1.0 (2019-04-28)
Features
- core: add field arg to hideExpression and expressionProperties (#1544) (24998ad), closes #704
- core: deprecate usage of
this.field
in expressionProperties (#1550) (b6172b4)
- material: add disableOptionCentering support for mat-select (#1545) (9c655c6)
- material: add select all option to multiselect (#1552) (144f5fa)
- material: adds datepicker toggle positioning support (#1560) (63698b3)
5.0.4 (2019-04-17)
Bug Fixes
Reverts
5.0.3 (2019-04-15)
Bug Fixes
5.0.2 (2019-04-08)
Bug Fixes
- material: add errorStateMatcher to autocomplete example (#1517) (4606db9)
- material: add FieldType set value (#1515) (93268e4)
- material: add missing attrs to native-select (#1514) (8200078)
5.0.1 (2019-04-03)
Bug Fixes
- core: avoid mixin string and number for KeyPath (dffe082)
- core: avoid recursive calls for assignModelValue (63310d2)
- core: avoid using unnecessary rxjs operators (#1499) (cc59fcf)
- core: check date type using instanceof (2d108db)
- core: reduce regex calls for getKeyPath (#1501) (9e78c04)
- core: rely on push instead of spread operaror (4c363b2)
- core: skip fieldParentFormControl call when field has parent (#1500) (f5de20b)
- core: updateValidity only when validators/asyncValidator change (#1504) (57a2087)
- core: use for-of instead of while for getFieldValue (a9841fb)
5.0.0 (2019-03-23)
To upgrade from 4.0 to 5.0 see UPGRADE-5.0
Bug Fixes
- material: assign formly formField to MatDatepickerInput (#1471) (c22b751)
Features
- core: deep merge widget prop & add map callback (#1467) (cdb33bb)
Bug Fixes
- core: pass a valid key for nested json-schema prop (#1462) (dabe153)
Features
- core: allow enable immutable mode through NgModule config (#1460) (07438b2)
Bug Fixes
Bug Fixes
- core: ensure repeat form is in sync with the model val (#1451) (77feb5b), closes #1450
Bug Fixes
Bug Fixes
Bug Fixes
- core: fix memory leak when using immutable attr (#1434) (0885836)
Bug Fixes
Features
Bug Fixes
Bug Fixes
- core: display async validation message for OnPush CD (#1419) (344b697), closes #1417
- core: improve managing focus with expressionProperties (#1421) (405d8cc), closes #1413
Features
- core: mark builder optional for FieldArrayType (#1418) (692f84e)
To upgrade from 4.0 to 5.0 see UPGRADE-5.0
Features
- bootstrap: add inline support for multicheckboxe and radio (#1407) (31a5784), closes #1400
Features
Bug Fixes
- material: add readonly and tabindex to number input (#1383) (8c6fee7)
- material: remove duplicated readonly prop (#1372) (34eccf5)
Features
- bootstrap: add addons to select (#1381) (2479091), closes #1380
- ionic: emit int value for number input type (008a50c)
- kendo: emit int value for number input type (f53eaa5)
- primeng: emit int value for number input type (a088477)
Bug Fixes
- core: create new component instance when hostView is destroyed (#1343) (f603676)
Features
- move defaultOptions to FieldType declaration (#1345) (dbc9ae2)
Bug Fixes
Bug Fixes
- core: ensure init options during buildForm (#1333) (ee958c1)
Features
- core: deprecate manipulators in favor of extensions (#1332) (d8ec692)
Bug Fixes
- core: use Renderer2 instead of HostBinding (7d1cc2c)
Features
- material: warn missing FieldType for a custom field type (031f704)
Bug Fixes
Features
Bug Fixes
- material: fallback to default tabindex value (#1282) (588be37), closes #1281
- material: use readonly input instead of formly-attributes (#1279) (5c1bce7)
Features
Bug Fixes
Features
Bug Fixes
- core: ensure validation error is displayed while enabling onpush CD (#1266) (7984729), closes #1262
- core: ignore clone SafeHtmlImpl value (#1257) (a7c018b), closes #1254
- material: fallback to field.type for custom FieldControlType (#1261) (6a116f7)
- material: set select aria-labelledby to avoid ExpressionCheck Error (#1265) (41fae5c), closes #1251
Features
Bug Fixes
- core: ignore cached expression value during buildForm (#1252) (15995af), closes #1250
- core: take account of deprecated FormlyField inputs changes (#1242) (3f22da8), closes #1241
Features
Features
- core: add form alias to the field object (#1226) (053d72f)
- core: allow passing disabled prop for select options (039a693)
Bug Fixes
- bootstrap: take account of checked options for multicheckbox (#1213) (7484599), closes #1212
Features
- allow passing array value for multicheckbox (#1214) (609eb39)
Features
- allow passing observable for multicheckbox (#1209) (d370959)
- core: deprecated
createControl
method in favor of prePopulate
(#1210) (86ee2b0)
Bug Fixes
- bootstrap: get correct radio value through queryselector (#1190) (a673ba7), closes #1187
Features
- bootstrap: use ngValue for option with 'null' for placeholder (#1182) (d10a62b), closes #1169
- core: deprecated
lifecycle
option in favor of 'hooks' (#1192) (891532b)
Bug Fixes
- core: pass field props to lifeCycleHooks (#1174) (f944bdb)
- material: avoid define hidden prop in field templateOptions (#1175) (c8a3e37)
Bug Fixes
- material: make sure input type number emits the correct value (#1172) (e2fbee4)
Features
- core: deprecate passing options and form input to FormlyField (#1173) (724f594)
Bug Fixes
- core: move init field validation to onPopulate hook (#1164) (cc278b5)
Features
BREAKING CHANGES
- core: The library is now using Angular 6.1 and Typescript 2.9.2
Bug Fixes
Features
- core: add core extension (9ed88ae)
- core: add FieldForm extension (b87f7fe)
- core: add FieldValidation extension (21312bf)
- core: delegate field lifecycle to its component (fcccc95)
- core: deprecate fieldTransform in favor of custom extension (3d50d96)
- core: pass root field in extension hooks (#1153) (c16c007)
Bug Fixes
- bootstrap: rely on control value for indeterminate checkbox state (ad50e11), closes #1143
Features
- core: move template render into separate field-type (dccf8e2)
Bug Fixes
- core: hide internal component from public interface (1f7404b)
- kendo: use KENDO prefix in config name (#1128) (7b6511a)
- material: add missing id for toggle, slider and datepicker (4569e86)
Features
- core: take account of templateOptions attributes changes (39bd41c), closes #1132
- ionic: extended v4 support (952bca6)
Bug Fixes
Features
Bug Fixes
- core: init fieldArray during assignModelToFields (#1105) (cd2e92b)
Features
To upgrade from 4.0 to 5.0 see UPGRADE-5.0
Bug Fixes
- core: allow false value for legacy select-option (5e48376)
- core: apply init fields type for fieldArray (1832532)
- core: ensure init fieldArray even if fieldGroup is not set (b815e91)
- core: restore FormlyFormBuilder & FormlyConfig to forRoot module (a3b26ca)
- core: update formcontrol validators when fields change (63d325b), closes #1059
- demo: fixed material autocomplete stackblitz example (33f6994), closes #1062
Features
- material: move multicheckbox into a separate module (fa49c0a)
- add nativescript support (5898186)
- bootstrap: introduce form-field wrapper (d73c382)
- bootstrap: remove bootstrap v3 support (450882d), closes #679
- bootstrap: remove deprecated wrappers (fabb373)
- core: add access to the parent field from children (48a70d7), closes #764
- core: add reset action in FieldArrayType (db30fc3), closes #1076
- core: allow passing nested key in fieldGroup (d90ecb8)
- core: allow passing observable in expressionProperties (258d103), closes #1031
- core: apply disabled status to fieldGroup items (6f503b9), closes #844
- core: initial work for JSON Schema implementation (b2767f4), closes #1056
- core: move formlySelectOptions pipe to core (512caf7)
- core: remove deprecated fieldForm input in FormlyValidationMessage (fe7bda3)
- core: remove lifecycle hooks in FieldType (c431a14)
- core: support attr binding in formlyAttributes (4fa306f), closes #1066
- core: use the new providedIn with better lazyload support (4325e40)
- material: move textarea into a separate module (6bb9e09)
- schematics: add nativescript (91d42df)
- allow passing observable for radio options (10ae8af)
- migrate from ionic-angular to @ionic/angular (0b48dca)
BREAKING CHANGES
4.7.2 (2018-08-07)
Bug Fixes
- bootstrap: ensure using angular multi-select selector (5bc50c8), closes #1094
4.7.1 (2018-08-01)
Bug Fixes
- core: avoid setting wrapper while init type-config (0371180)
4.7.0 (2018-08-01)
Features
- bootstrap: deprecate all wrappers in favor of
form-field
(03c7e4b)
- bootstrap: introduce form-field wrapper (8a276fb)
4.6.6 (2018-07-20)
- core: Revert "perf(core): check expression change only when expression is set"
4.6.5 (2018-07-18)
Bug Fixes
- core: avoid merging array in reverseDeepMerge (1ab4e11)
- core: init fields options before assignModelToFields (9a322e6)
4.6.4 (2018-07-12)
- core: check expression change only when expression is set (f30ac9a)
4.6.3 (2018-06-28)
Bug Fixes
- material: ensure focus field elm on container click (b5f195b)
4.6.2 (2018-06-27)
Bug Fixes
- core: remove passing model value to FormGroup (#1021) (f0f7e2c)
4.6.1 (2018-06-27)
Bug Fixes
- core: ensure passing a valid model for FormGroup instance (f512ebb), closes #1019
4.6.0 (2018-06-27)
Features
- bootstrap: allow passing function for labelProp and valueProp (9a658a4)
- material: allow passing function for labelProp and valueProp (667ac50), closes #982
- material: support compareWith input for select type (2f17694), closes #982
4.5.0 (2018-06-21)
Features
- core: allow specify the target of a validation error (d2105f7), closes #1007
4.4.6 (2018-06-18)
Bug Fixes
- bootstrap: allow disabling the default templateManipulator wrappers (6a82e8b), closes #1003
4.4.5 (2018-06-18)
Bug Fixes
- core: avoid duplicate templateManipulator wrapper during rebuild (291d214), closes #997
4.4.4 (2018-06-07)
Bug Fixes
- core: avoid passing a number path when handling hideExpression (edabd82), closes #981
Features
4.4.3 (2018-06-06)
Bug Fixes
- core: update field model when assigning a new model (727e7d5), closes #975
4.4.2 (2018-06-02)
Bug Fixes
- material: recalculate the gap size after displaying field (58c3fe8)
4.4.1 (2018-06-01)
Bug Fixes
- core: ensure tracking model change after reseting model (840661d), closes #969
4.4.0 (2018-05-30)
Features
- material: update datepicker to support min max (1e7d92c)
4.3.0 (2018-05-25)
Features
- material: move types into separate entry points (32671b7)
4.2.0 (2018-05-21)
Features
- core: add
updateOn
to modelOptions
(2f9f3a3)
- material: allow setting custom appearance and color (69b3ae7)
4.1.0 (2018-05-18)
Features
- add grouped select support when binding observables (0f903c7)
4.0.3 (2018-05-15)
Bug Fixes
- core: export FormlyTemplateOptions (7953c1d), closes #950
4.0.2 (2018-05-13)
Bug Fixes
- core: create field component before calling onInit lifecycle (b3923f2)
4.0.1 (2018-05-09)
Bug Fixes
- core: keep Observable value in clone (bcb4bb4)
4.0.0 (2018-05-06)
Features
- add angular & rxjs 6.0 support (00587d0)
3.1.0 (2018-05-06)
Bug Fixes
- core: ensure using a valid formcontrol in FieldArrayType:add (90d7cf7)
3.0.3 (2018-05-04)
Bug Fixes
- core: move building pre/post wrapper into FormBuilder (#938) (711e418), closes #925
- material: avoid using deprecated align input for checkbox (#937) (6ab6109)
3.0.2 (2018-05-03)
Bug Fixes
3.0.1 (2018-05-02)
Bug Fixes
- core: allow using validation with custom validator (#928) (116c6ec), closes #926
3.0.0 (2018-04-28)
Features
- core: deprecate passing 'fieldForm' in formly-validation-message (bfd014e)
Features
- core: allow access to the model from the field (b5034f2)
- core: move createControl FieldArrayType to core (883a63c), closes #909
BREAKING CHANGES
- core: createControl in FieldArrayType has been removed
Bug Fixes
- material: use default entryFile (9032911)
Features
- core: remove deprecated 'field.' path in
expressionProperties
(b23e546)
- core: remove passing formControl for formlyAttributes events (4d4f894)
- material: remove deprecated floatPlaceholder (3a57aca)
- material: remove deprecated focusMonitor method (8c09639)
BREAKING CHANGES
core: Passing formControl
as a second argument for (focus, blur, keyup, keydown, click, change, keypress) events is removed rely on field.formControl
instead.
Before:
keypress: (field, formControl) => { console.log(formControl.value); },
After:
keypress: (field, event) => { console.log(field.formControl.value); },
core: Using field.prop
path in expressionProperties
is removed, use prop
instead.
Before:
expressionProperties = {
'field.className': ...
}
After:
expressionProperties = {
'className': ...
}
material: FormlyWrapperFormField::focusMonitor is removed
material: the deprecated floatPlaceholder
option is replaced by floatLabel
Before:
templateOptions: {
floatPlaceholder: ...
}
After:
templateOptions: {
floatLabel: ...
}
Features
- core: move managing lifeCycle hooks to
formly-field
component (#872) (40a6e6c), closes #643
- core: remove
formControl
input in FormlyAttributes (#862) (5c41bdc), closes #642
- core: use rxjs lettable operators. (#857) (a2e79bd)
- ionic: initial work for ui-ionic support (#659) (31d732b)
- initial work for kendo support (#897) (df6551d), closes #599
- initial work for primeng support (#887) (40ca63f)
- material: add auto-Complete type example (273447b), closes #615
- material: add slider type (70019ca)
- material: add toggle type (7a39efc)
- material: implement DatePicker type (#873) (b5b5c18), closes #614
BREAKING CHANGES
- core:
formControl
has been removed in [formlyAttributes]
directive.
- core: droped Angular 4 support + rxjs version should >= 5.5.8
2.1.1 (2018-04-21)
2.1.0 (2018-04-21)
Features
- core: pass field instance into ValidatorOption callback (#898) (0233d41)
2.0.1 (2018-04-18)
Bug Fixes
- core: do not force using FormGroup when FieldArray is set. (#894) (cb16156), closes #890
2.0.0 (2018-04-15)
To upgrade from ng-formly to @ngx-formly/core see UPGRADE-2.0
Bug Fixes
- bootstrap: apply border radius for input when using addons (#882) (cc3b168), closes #656
- core: take account of hidden fields when reseting model. (#883) (2eeae7a), closes #881
- core: use
Field
instead FormlyFieldConfig
in showError (#878) (f84252e), closes #877
Features
- core: pass event instead of formControl to FormlyAttributes events. (#870) (2bcc875), closes #867
Deprecations
Passing formControl
as a second argument for (focus, blur, keyup, keydown, click, change, keypress) events is deprecated and it will be removed in the 3.0 version, use field.formControl
instead.
Before:
keypress: (field, formControl) => { console.log(formControl.value); },
After:
keypress: (field) => { console.log(field.formControl.value); },
Using field.prop
path in expressionProperties
is deprecated, use prop
instead.
Before:
expressionProperties = {
'field.className': ...
}
After:
expressionProperties = {
'className': ...
}
Features
- core: allow passing the index and the initial model for FieldArrayType::add method. (#869) (93f5eab), closes #866
Features
- code: allow using key expression property without passing
field
path. (#863) (809fced)
Bug Fixes
- core: remove hide field to force re-evalute it in FormlyFormExpression. (#852) (333af5f)
- core: toggle disabled state when disabled property is changed. (442701d), closes #851
Bug Fixes
- core: apply disabled status to child field when fieldGroup is set. (#847) (5ddd53a), closes #844
Bug Fixes
Features
- core: Added ng-content to formly-group. Updated Examples to inline remove button of repeating section (#840) (2a19867)
- docs: add validation + expression-properties section. (#836) (3f5fff0)
Bug Fixes
- core: allow passing falsy value for hideExpression. (#833) (7469a2a), closes #832
Bug Fixes
- core: subscribe to formcontrol when key and type are set. (#829) (eb2db0f), closes #827
Bug Fixes
- bootstrap: always enable description + validation for templateManipulators. (#826) (edecf76)
Bug Fixes
- core: ensure tracking model changes when using Repeating section. (33ab0a9), closes #821 #822
Bug Fixes
- core: fallback to null for an non-existing member on model change. (e332485), closes #805
- core: check field expression only in root component. (#811) (495eb9b)
- core: do not emit
modelChange
on model-input change. (20cc4b9)
Bug Fixes
- core: move tracking model change to root component. (#809) (0410653), closes #805
- core: avoid calling setControl if control already exist in form. (#810) (8898389)
Bug Fixes
- core: avoid initializing FormlyGroup twice. (#803) (28cfbd9)
Bug Fixes
- core:
addFormControl
apply patchValue only for FormControl instance. (#799) (dde0c14)
- core: call the
parentForm.reset
only if it match the current form. (#798) (222c3a0), closes #796
- core: use patch method instead of reset when model change. (#797) (ed6e7ba), closes #794
Bug Fixes
Bug Fixes
- core: change
submitted
state on resetForm. (#786) (426ce5b), closes #785
- core: take account of model changes for an existent field form. (#784) (35fe7c5), closes #782
- core: take account of model changes when fields is already builded. (#787) (73b85b4)
Bug Fixes
- core: avoid reset parent form when resetting model. (#783) (1757193)
Bug Fixes
Features
- core: allow binding Observables to select options (#772) (7307e02)
Bug Fixes
Bug Fixes
- core: set empty array as defaultValue when fieldArray is set. (#762) (2567886), closes #761
Bug Fixes
- bootstrap: show error message when asyncValidators is set. (#759) (cb5e980), closes #757
- demo: take account of model changes in example-viewer. (#755) (15b4c48), closes #754
Bug Fixes
- core: rely on
__build__
to check expression instead of parentFormlyForm. (#751) (886dad9), closes #745
- core: reset FormArray when resetting model. (#750) (e37ae81), closes #648
Features
- core: introduce FieldArrayType to simplify managing repeating fields. (#749) (90dd1da)
- formly-form: allow passing FormArray in form input. (#748) (76938a8)
Bug Fixes
- core: only read attributes property if templateOptions are set (#744) (0843b11)
- FormlyFormExpression: ensure ParentFormControl is set when for check field visibility. (#743) (d8d7b27)
Bug Fixes
- bootstrap: avoid displaying blank field in select. (#742) (c2c23ef), closes #739
- core: ignore built-in validations only when passing false value. (#740) (f29538a), closes #729
Features
- bootstrap, material: allow removing the required asterisk symbol. (#741) (0060633), closes #738
- core: allow rendering extra attributes (#736) (59b0034)
Bug Fixes
- bootstrap: don't render label when the templateOption is not set (#734) (8f30bb2)
- FormlyFormExpression: ensure toggling formControl when key contains array syntax (#735) (58f25b7)
Bug Fixes
- bootstrap: ensure emitting an int value for number input type. (#730) (8a30092), closes #729
- core: ensure emitting modelChange for nested field groups. (#728) (21c3e2a)
Features
Features
- core: add
modelChange
output to emit the formly model changes. (#726) (9bf5102), closes #720
Bug Fixes
- core: assign changed model in expressionProperties into formControl. (#724) (fc3f935), closes #723
- core: use JSON.stringify for comparing object in expressionProperties. (#725) (122a685)
Features
- core: support using
className
in expressionProperties. (#721) (b96329e)
Bug Fixes
Features
- material: allow using matPrefix/matSuffix within form-field wrapper. (#719) (97f4557), closes #715
- material: simplify creation custom field type. (#718) (1f25587)
Bug Fixes
- core: ensure passing a valid model in checkField expression. (#713) (688b902)
- core: avoid check fields expression in child component. (#712) (75fd149)
Bug Fixes
- core: ensure passing a valid form for checkField when fieldGroup is set. (#709) (dc6cf0e)
Bug Fixes
- bootstrap: fixed input width when using add-ons (#706) (0fc4390), closes #699
- avoid using expressionProperties for Cascaded Select example. (#705) (96ad6cd)
Bug Fixes
- core: check fields expression after build to avoid creation dup formcontrol. (#700) (ae925fd)
Features
- core: add FormlyFormExpression for eval field expressions. (#696) (c8591ab)
Bug Fixes
- bootstrap: add missing bs4 label class for radio and multicheckbox. (#682) (cc0b607), closes #679
Features
Features
- bootstrap, material: allow disable indeterminate state for checkbox. (#678) (78b0775), closes #674
Bug Fixes
- bootstrap,material: ensure using the model value for indeterminate state check. (#675) (2b82345), closes #674
Bug Fixes
- core: ensure passing a string path for FormGroup. (#666) (f5f2378), closes #665
Bug Fixes
- bootstrap, material: add default value for select options. (#655) (e9819ec)
- core: take account of model changes in wrappers and types. (#664) (e17cead), closes #658
- bootstrap: add missing addons style. (#657) (25fdbf7), closes #656
Bug Fixes
- material: remove underline for radio and checkbox field. (#652) (a66d8b1), closes #616
Bug Fixes
- core: ensure key is set when toggle
hide
. (#650) (e69ea08)
- core: wrap hideExpression for field in fieldGroup. (#647) (b949ced)
- material: ensure calls to change event. (#651) (a2d52a8), closes #390
Bug Fixes
- core: take account of hideExpression for fieldGroup with empty key (#639) (3261878)
Bug Fixes
- bootstrap: add missing
control-label
class for label (#637) (c9c6c61), closes #633
Bug Fixes
- core: add default wrappers when type is set (#630) (2dd41ab)
Bug Fixes
- core: avoid calling deepMerge for readonly property. (#626) (6b7987f)
- material: ensure calls to lifecycle hooks (#628) (09a7149)
- material,bootstrap: Add asterisk for checkbox. (#624) (f8ed354), closes #623
Bug Fixes
Bug Fixes
- validation: assign defaultOptions before validation init. (#618) (843bff4)
Bug Fixes
- bootstrap,material: ensure ids is unique for radio and checkbox types. (#608) (d47d7d1), closes #607
- select: ensure selectOption is updated when using expression. (#612) (bb84077)
Features
- material: Add an asterisk to field when required. (#609) (71202af), closes #604
Bug Fixes
- bootstrap: ensure to set a string value when select is not multiple. (#602) (6c591f8), closes #601
Bug Fixes
- core: assign correctly model value in field expression during build. (#596) (77d62ae)
- core: ensure nested form group is created for nested key. (#597) (3213f98)
- core: mark form unsubmitted on reset form. (#591) (082de94)
Features
- bootstrap,material: add multi-select support (#598) (97d8956)
Bug Fixes
- core: change form validity when expressionProperty change. (#590) (290761c), closes #582
Bug Fixes
- core: remove usage of setTimeout. (#586) (c3de20c)
- core: take account of model changes when using hideExpression. (#581) (672679e), closes #580
- hideExpression: use getFieldModel only for simple field (#588) (9a5eeac)
Features
- demo: add copy to clipboard to example-viewer. (#585) (a307a7c)
- demo: add preview code + more examples. (#583) (6a86dd4)
- material: use stable version
5.0.0
(#587) (023386d)
Bug Fixes
Bug Fixes
- FormlyConfig: allow using function in validation messages. (#573) (745478d)
Features
Features
Features
Bug Fixes
Features
Bug Fixes
- #551: ensure templateOptions is defined (#553) (48f4a36)
- #551: fixed assign object to string for
assignModelValue
(#552) (7b37c56)
Bug Fixes
- clone: create clone of date instead of empty object. (#549) (0dea289)
Features
- field: allow passing function for field expression. (#548) (5e630fe)
- material2: update to 5.0.0-rc0 (#550) (10baf1e)
Bug Fixes
- textarea: set default value for rows and cols (#546) (2a0f783)
Features
- validation: move FormlyValidationMessage into core module (#547) (da502f2)
Bug Fixes
- replace deprecated OpaqueToken with InjectionToken (#508) (fbf1dc3)
- #514: avoid suppress and/or force validation messages. (#524) (1ffe899)
- field: use showError instead of valid. (2ba78a3)
Features
- #536: use standard-version for CHANGELOG generation (#538) (9061311)
- bootstrap: support Bootstrap 4 Beta (#529) (2b70567)
- core: rename package to
@ngx-formly
+ follow Angular Package Format. (#497) (2197a51)
- demo: use angular-cli for demo-example (#542) (b8d6483)
- field: remove deprecated
valid
prop. (#537) (88a9652)
- fieldChanges: remove FormlyPubSub in favor of fieldChanges option. (#525) (e78916f)
- label: append with an asterisk when required (#523) (bad3ecb)
- material: initial work for ui-material (#534) (11b8f9b)
- remove deprecated options. (#507) (6c46667)
- replace deprecated
Renderer
by Renderer2
(#498) (0754b26)
- use
ng-template
for dynamic components (#499) (9203f1e)
- npm: add publish script (#510) (0788a51)
- npm: allow angular v5. (#520) (1c6fb06)
- npm: update packages. (#522) (ecf5e0f)
- validation-message: move FormlyValidationMessages into FormlyConfig (#526) (9b2e39f)
BREAKING CHANGES
- field:
Field::valid
is no longer available, use showError
instead.
- validation-message: removed FormlyValidationMessages
- fieldChanges: removed FormlyPubSub.