2 Bug Fixes
Nov 2, 2018
This release does not include schematics to help migration steps for 1.0 yet, so you'll have to manually apply the fixes listed here.
To get this update, run
npm i @clr/angular@next @clr/ui@next @clr/icons@next. The
@next tag is necessary only while Clarity 1.0 is in prerelease, afterwards it won't be necessary. You can use this with any Angular CLI project, even if you've already started to work on it. You may need to run
ng update @angular/core @angular/cli first to update to Angular 7.
The checkboxes have been overhauled to work with the new forms, and the old
clr-checkbox component has been removed.
The login page template has been updated to support the new form controls, with only a slight visual difference. If you do not update to the new forms, you'll need to be sure to include the deprecated forms module in your Angular module.
The new datagrid pagination is a visual improvement to the original pagination that also includes a new text field for users to manually input the page they'd like to view by entering the number directly. It also was a requirement for future work in the datagrid. You can also add a new component
clr-dg-page-size which will display a select box for items per page.
Forms have been improved to support NgControl reset methods, and can be forced to display validation by marking them as dirty. This helps in cases where you want to force validation (such as when the user submits a form without filling in all the fields), and when you need to clear the values and reset validation.
Previously, Angular forms would default to the vertical layout, which is against the desired UX default. Therefore, unless you specify a different layout it will adopt horizontal by default with Angular forms.