ngx-formly

đź“ť JSON powered / Dynamic forms for Angular

MIT License

Downloads
694.6K
Stars
2.8K
Committers
94

Bot releases are hidden (Show)

ngx-formly - v5.10.6

Published by aitboudad almost 4 years ago

Bug Fixes

ngx-formly - v5.10.5

Published by aitboudad almost 4 years ago

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)
ngx-formly - v5.10.4

Published by aitboudad about 4 years ago

Bug Fixes

  • core: assign validator for field with empty key (#2544) (116e454)
  • support disable a specific select/radio option (#2543) (6159cb0), closes #2532
ngx-formly - v5.10.3

Published by aitboudad about 4 years ago

Bug Fixes

  • core: clear validation cache on fields input change (#2527) (5ef8c67), closes #2524
  • core: supports array notation in expression property (#2526) (485bc32), closes #2525
ngx-formly - v5.10.2

Published by aitboudad about 4 years ago

Bug Fixes

ngx-formly - v5.10.1

Published by aitboudad about 4 years ago

Bug Fixes

  • core: apply defaultValue for array when resetFieldOnHide enabled (#2488) (4049e00)
ngx-formly - v5.10.0

Published by aitboudad about 4 years ago

Highlights

  • lazy render hidden fields: When enabled the components of hidden fields will not be present on the DOM which improves the rendering performance and avoid extra HTTP calls when used with the async pipe.

To enable this feature pass true to lazyRender options:

    FormlyModule.forRoot({
+      extras: {
+        lazyRender: true,
+      },
    }),
  • reset field on hide: By default Formly model contains the value of hidden fields which is not convenient in some cases so we've introduced a new option resetFieldOnHide that detach the hidden field value from the main model.

To enable this feature pass true to resetFieldOnHide options:

    FormlyModule.forRoot({
+      extras: {
+        resetFieldOnHide: true,
+      },
    }),
  • allow passing multiple errors from a single validator: To validate multiple fields with a single validator which is useful in dealing with server-side validation for an entire form section and display distinct error messages for each field.
export function customValidator() {
  ...

  return {
    passwordValidator: {
      errorPath: 'password',
      message: 'Please choose a stronger password!', 
    },
    usernameValidator: {
      errorPath: 'username',
      message: 'This username is already taken!',
    },
  };
}

Bug Fixes

  • core: avoid memory leakes for internal componentRefs (#2474) (e3d29e5), closes #2449
  • 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

ngx-formly - v5.9.3

Published by aitboudad about 4 years ago

Bug Fixes

ngx-formly - v5.9.2

Published by aitboudad about 4 years ago

Bug Fixes

ngx-formly - v5.9.1

Published by aitboudad over 4 years ago

Bug Fixes

ngx-formly - v5.9.0

Published by aitboudad over 4 years ago

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
ngx-formly - v5.8.0

Published by aitboudad over 4 years ago

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
ngx-formly - v5.7.2

Published by aitboudad over 4 years ago

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
ngx-formly - v5.7.0

Published by aitboudad over 4 years ago

Highlights

  • Observable for validation message (Example)
    The validation message can return an observable value which is useful for an i18n app where the messages are loaded asynchronously.

  • Simplify passing extra parameters to validation (Example)

    validation: [
      { name: 'date-future', options: { days: 5 } }
    ]
    
  • Allow onInit/afterView/afterContent to return observables (Example)

    {
      hooks: {
        onInit: (field) => {
          // subscription and unsubscribe is handled by formly
          return field.formControl.valueChanges
            .pipe(tap(value => console.warn(value))),
          ;
        }
      }
    }
    
  • Take account of defined validators in a fieldGroup with empty key (Example)

Bug Fixes

  • schematics: rely sourceRoot to get the project path (#2292) (46885e9), closes #2291

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
ngx-formly - v5.7.1

Published by aitboudad over 4 years ago

Bug Fixes

ngx-formly - v5.6.2

Published by aitboudad over 4 years ago

Bug Fixes

  • material: take account of disabled state for multicheckbox type (#2225) (741df7a)
  • material: take account of radio button focus on page load (#2249) (35602e5)
ngx-formly - v5.6.1

Published by aitboudad over 4 years ago

Bug Fixes

  • core: resubscribe to expr prop when re-rendering the field (#2216) (1269f57)
  • ionic: allow async options for ion-select (#2202) (7a3247d)
  • material: make sure required attribute is present in mat types (#2213) (89ea2ac)
ngx-formly - v5.6.0

Published by aitboudad over 4 years ago

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), closes #2191
  • 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)
ngx-formly - v5.5.15

Published by aitboudad over 4 years ago

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
ngx-formly - v5.5.14

Published by aitboudad over 4 years ago

Bug Fixes

Package Rankings
Top 0.81% on Npmjs.org
Top 6.75% on Proxy.golang.org
Badges
Extracted from project README
Npm version Downloads Gitter Build Status Twitter Gitpod ready-to-code
Related Projects