Releases: ghiscoding/aurelia-slickgrid
Releases · ghiscoding/aurelia-slickgrid
v1.4.0
Features
- add i18n support into
Editors.date
with Flatpickr - add Column
queryField
property to make possible to filter or sort by another field - add a
customStructure
property for the selectfilter
to use different key/value pair, see Wiki - Select Filter for more info - complete rewrite of
backendServiceApi
- add
addLocaleIntoQuery
property for GraphQL query - make the filterTypingDebounce optional, default 750ms
- make
enablePagination
totally optional (it will detect when we are using backend service api) - make
initOptions
totally optional and use Pagination options wheninitOptions
doesn't include paging info
- add
Fixes
- fixed Editors.date with latest version of Flatpickr
- fixed pagination a GraphQL pageSize should always be a number not string
- fixed error thrown by SlickGrid of "Stylesheet missing"
- fixed regular grid local filter not working with localization (i18n), 1st column in Example 12
- make column string filter case insensitive and fixed * operator
- fixed pagination resetting "items per page" on filterBy/orderBy change
- pagination, changing page and filter/sort should also reset to page 1
Deprecated
onBackendEventApi
was replaced bybackendServiceApi
which was a big rewrite and brings a lot of new features (see on top), mainly there's a lot less setup to do at the beginning, the API does a lot of setup by itself.- this is for now only a console warning, advising you to use the new API
New Styling and Event Aggregators
Fixes
- check grid exist before trying to resize (or auto-resize) the Grid to avoid console error thrown by SlickGrid
- fix an error thrown by SlickGrid when editing a row and highlighting it
New Features
- add info icon Formatter
Formatters.infoIcon
with has Font Awesome (fa-info-circle) - add extra SASS border variables for multiple elements
- border around Header Titles
- border around Header Filter Row
- border around ViewPort
- add flag to show/hide Clear Filters & Toggle Filter commands in GridMenu
- add Refresh Dataset command in GridMenu for backendAPI Services only (OData / GraphQL)
- added many new Event Aggregator
onDataviewCreated
onGridCreated
onBeforeGridCreate
onBeforeGridDestroy
onAfterGridDestroyed
You can see the OnEvent documentation in the Wiki - Grid & DataView Events
Add localization to Select dropdown filter
Fixes
- fix select Dropdown filter not working correctly with string
- fix highlight row sometime throwing slickgrid error with updateItem
New Features
- add localization to Select dropdown filter
- example 12 on the demo was also updated to show this change
Fix backend services calling 2x times postProcess
Fixes
- Add a destroy to the Filter Service to fix an issue showing up with backend services (OData/GraphQL) which was calling 2x times a
postProcess
introduced by previous version change. - unsubscribe only when subscriber exist
Localization with i18n and other features
Fixes
- fix some minor CSS/SASS stylings
New Features
- Localization with i18n
- Add Complex Object Formatter
- GraphQL Service support of Complex Object with dot notation (.)
- Refactored GraphQL Service properties to make it easier to use
- there's nothing remove though, just addition of properties like
columnDefinitions
andcolumnIds
that you can pass directly to the GraphQL Service options
- there's nothing remove though, just addition of properties like
- Column Picker and Grid Menu last 2 checkboxes (force fit column & synchronous resize) are now translated.
- this became possible with the latest version of Slickgrid
2.3.12
, make sure you have latest version installed
- this became possible with the latest version of Slickgrid
Add functionality of Add/Update/Highlight datagrid item & other goodies
Fixes
- Pagination should go back to page 1 on Sort and/or Filter Changed
- fix wrong behavior of inline dateEditor with Flatpickr
- fix cannot find stylesheet on element detach/destroy
Small breaking change
- calling the "resizeGrid()" function from the ResizerService no longer requires to pass Grid & Column Definitions objects as arguments. This is to simplify the call when user want to resize the grid.
New Features
- auto-resize columns when onMenuClose of Grid Menu is called
- add outputType to be used with inline editor (currently only DateEditor supports it)
Checkbox Selector (row selection) and multiple fixes
-
Fixes
- leftover filters in a page (by changing route) were carried over in the next route and if they didn't exist were causing error thrown in console. Now watch for route change and perform destroy of certain objects
- fix GraphQL filter with dropdown, it should use the
EQ
operator instead ofContains
- fix GraphQL should cast Observable to Promise also when performing a filter change
-
New Features
- Add row selections with
enableCheckboxSelector
- Single row selection is also supported but you have to use certain gridOptions
- Review the Wiki - Row Selection for more info
- Add row selections with
rebuild to fix CSS
- Some of the CSS seemed invalid for some reason, I just did a rebuilt and republish on NPM and it seem to be
fixed now. - Cleaned up the
.npmignore
to have a cleaner and smaller NPM download - Added a
doc
folder which will be use for creating the Github demo page
Complete rewrite
This is a complete rewrite (2 months in the work) and the dependency changed from Slickgrid-ES6 to the original Slickgrid (6pac fork). Read the README for more details.
There is a lot more documentation in this release, a good place to start is the Wiki - HOWTO Step by Step
If you want to know more about the complete rewrite and breaking change, see the README of the project.
Tweak aurelia-slickgrid plugin for new Aurelia-CLI sample to work
- Tweaked/refactored a few pieces of code to make Aurelia-CLI work
- Remove SlickWindowResizer & SlickPager from import, since they souldn't be invoked directly
- Move slick-pager.scss to be with slick-pager.js so that the require css doesn't fail in the bundle
- Since CLI doesn't support import of images in JS, we can use instead simple variables of their URL (update CLI and Webpack in consequence).
- Again CLI doesn't support import of CSS, I had to remove them from the Plugins (headermenu) and make the CSS available at all time in the global CSS.
- Delete all images from dist, since I don't really use them