Skip to content

Support Bootstrap 5 & some Tree Shakable improvements

Compare
Choose a tag to compare
@ghiscoding ghiscoding released this 06 Jan 17:50
· 2072 commits to master since this release

First big release of the year, this version brings a lot of great features, enhancements and a small (but noteworthy) breaking change, see below. Happy New Year 🚀

Main Changes

  • a new collectionOverride for the Select Editor (single/multiple) and the AutoComplete Editor which allows to change the collection per cell clicked (see Collection Override - Wiki
  • add Bootstrap 5 support (big thanks to @gcko for the contribution and a new BS5 Demo now part of the Angular-Slickgrid-Demos)
  • OData Service fixes to better handle filter ranges & decimals (big thanks to @jr01 for these fixes)
  • following the OData changes, these were also applied to the GraphQL Service
  • a few Tree Shakable enhancements were made
    • external SlickGrid plugins are no longer imported via require(plugin), which was not Tree Shakable, they are now imported the more natural way via import(plugin) which is Tree Shakable
    • I also found out that all the Flatpickr Locales were being imported (also because of require(flatpickr/locale), you need to see the breaking change below.

Breaking Change (Flatpickr Localization)

As mentioned in previous paragraph, I found out that all the Flatpickr (date picker) Locales were all being imported (over 60 locales) and ended up in the bundle/build, so in order to fix that we now ask the developer (you) to import whichever Flatpickr Locale you need via your App Module (right after AngularSlickgridModule import), if you omit/forget to do this, it will display a console warning and revert to English. I didn't want to do a major release for this small change and there's also a console warning to tell you when you forget to import the locale properly, worst case is that you'll see English being used instead of the expected locale.

Final Note & Thanks

Again big thanks to @gcko and @jr01 for their contributions.
If you like the lib, please upvote ⭐ and/or Buy Me a Coffee


Features

  • core: export Editors, Filters & Formatters as Public (e244218)
  • core: methods to change column positions/visibilities dynamically (49ab5e5)
  • editors: add Column Editor collectionOverride option (96cbd78)
  • styling: add support for Bootstrap 5 (afb79e7)
  • editors: change all private keyword to protected for extensability (#680) (029a90c)
  • filters: change all private keyword to protected for extensability (#679) (e5b5e8d)

Bug Fixes

  • backend: GraphQL queries with input filter (8465610), closes #656
  • backend: OData queries with input filter (5822de1)
  • build: import Flatpickr Locale on demand via regular imports (ef06543)
  • core: add console error if any of column def id includes dot (b1aa321)
  • core: range default should be inclusive instead of exclusive (4990162), closes #650
  • core: use regular imports instead of require to load plugins (b5204e5)
  • editors: slider value not shown with undefined & fix small styling (b85c6c5)
  • exports: should be able to change export file name, fixes #655 (7b2a9ef)
  • plugin: Row Detail loses html content when used with Row Selection (93b59c7)
  • sorting: add cellValueCouldBeUndefined in grid option for sorting (24584b1)
  • comp: empty data warning should work with autoheight grid, fix #671 (58c593b)
  • filters: Grid State filters should always include an operator (#676) (9ded204)
  • metrics: refresh metrics also when providing new data to DataView (#677) (7b95401)
  • metrics: use onRowsOrCountChanged to refresh metrics (#681) (ceb0d77)
  • pinning: recalculate frozen idx properly when column shown changes (#682) (996125d)
  • plugins: throw when Tree Data used with Pagination, closes #658 (672db5f)
  • typings: add specific file type to export service options (b99c6e4)