Skip to content

2.0.0 (Beta) to support Multiple Grids (Major Version includes breaking changes)

Compare
Choose a tag to compare
@ghiscoding ghiscoding released this 05 Jun 05:01
· 2090 commits to master since this release

This is a Major version and does include a few breaking changes to bring support to Multiple Grids in a view. I had to change the Singleton Services to non-Singleton and that already in itself is a major breaking change.

Since this is breaking, I decided to include a long list of changes that I had put aside to refactor.
The entire list of changes can be seen in #19 issue and the Migration Guide to 2.x is available here

This version will be in Beta for at least a week or 2, until we try it out in our project and possibly get feedback from the community. If you find anything strange or not working, please open a new issue. Since this is in Beta, things could change slightly and if you guys want some changes, now is the time to express yourself.

List of changes

This list does not include everything, for the entire list of changes take a look at #19 issue and the Migration Guide to 2.x is available here

Wiki documentation

The Wiki are not yet changed but will be in the coming days, it might take some time to update them all. In the mean time, I strongly suggest you to look at the GitHub demo, you can see them all here

Features

  • (grid): change all services to non-singleton
  • (grid): support multiple grids in a view (see Example 1 and Example 10)
  • (demo): add dynamic column header change to Example 12
  • (grid): expose all Services and SlickGrid objects into new (onAureliaGridCreated) Event Emitter
    • this is the biggest change to refactor in your projects (please review Migration Guide)
  • (grid): expose all Slickgrid and DataView events through dispatch
    • View example: (sgOnSelectedRowsChanged)="handleSelectedRowsChanged1($event.detail.eventData, $event.detail.args)"
  • (rowSelect): add preselectedRows and expose all Plugin
  • (formatter): add new Percent and PercentSymbol Formatters
  • (editors): add new Custom Editor functionality
  • (gridState): add Column Size/Visibility/Position in Grid State & Presets

Refactoring

  • (grid): Remove all deprecated code and functions
  • (backend): all backend service methods renamed as processOnX
  • (gridOptions): all Grid Menu showX were renamed hideX
  • (searchTerm): remove searchTerm and only use searchTerms
  • (styling): change highlight and selected row color to blueish
  • (styling): change mouse hover background color
  • (editor): move all Editor generic params (like collection) into editor property

Fixes

  • fix(filters): return false when invalid date
  • fix(sorters): return -1 or 1 for invalid dates
  • (editors): fix serialization/deserilization in editors