Slickgrid-Universal is a monorepo which includes all Editors, Filters, Extensions, Services and is also Framework Agnostic to take full advantage of SlickGrid core lib.
MIT License
Bot releases are hidden (Show)
Published by ghiscoding over 2 years ago
Published by ghiscoding almost 3 years ago
This new version brings a few new features and contributions, the main ones are:
Cell/Row Selection Auto-Scroll, a new live Example 17 to demo the feature
Row Dragging Auto-Scroll, check Example 7 for a demo (make sure to clear all filters to test this though)
All-in-one Filters Modal, see a live demo on Example 7
<-- this is just a gif, the real button is in the Example 7 😉
OData new $select
and $expand
options & other OData fixes, see live demo Example 9 and consult updated OData Wiki
new Example 18 that demos a Real-Time Trading Platform, it also shows how fast SlickGrid really is.
Huge thanks for the following contributions
Thanks a lot guys 🚀
Make sure to upvote ⭐ and/or Buy Me a Coffee ☕ ... and if you already have, well thank you 😺
Cheers and Happy Coding 👨💻
validateMassUpdateChange
callback & bug fixes (#603) (2c1559b)skipError
to CRUD methods in Grid Service (869ed87)collapsed
(7fedfa1)Published by ghiscoding almost 3 years ago
This new release has some Breaking Changes but should be transparent for must developers if you use the default CSS theme.
If however, you use a lot of SlickGrid SASS variables (all of them were renamed to add a $slick-
prefix). If you also use a lot of the SlickGrid CSS classes directly for any of the menu plugins then you will also be impacted. in any case please review the Migration Guide 1.x
The biggest internal change made in the lib for this version was to rewrite all of the SlickGrid controls/plugins into Slickgrid-Universal and that took a few months. Prior to this release, all of these controls/plugins were using what we can call bridges or wrappers (e.g. we had gridMenuExtension.ts
for the Grid Menu that was pointing to the 6pac/SlickGrid/controls/slick.gridmenu.js
with a bridge so that the lib could add our custom list of commands like "Clear Filters, "Clear Sorting", etc... that didn't exist in the core repo) now with the rewrite we can say goodbye to the bridges and we now only have 1 file which got renamed to common/extensions/slickGridMenu.ts
. So what I did was to move them all into the lib but also rewrite all the jQuery code as plain JavaScript (or I should say TypeScript) and add proper unit tests for all of that.
You might ask... Does that mean we can get rid of jQuery? The answer is unfortunately still No, but we are closer than before (I would say about 60% of SlickGrid is now in plain JS code, prior to this release it was probably around 30%). What is coded in plain JS at this point are: all Editors, Filters, Controls & Plugins (there are some exceptions like AutoComplete Editor & DraggableGrouping which require jQueryUI). SlickGrid itself (and its DataView) are also still written in jQuery and that will take a lot of effort to convert.
Also with the rewrite comes a full set of new unit test suites (over 500+ new tests) and a bunch of new E2E tests (Cypress). This will now be a lot easier to maintain and we won't need to wait for a new release in both SlickGrid repo and this repo to take advantage of plugin changes & extra features. Another great thing about the rewrite is that there were a lot of duplicate code in SlickGrid plugins because every plugins had to be written as standalone (e.g. CellMenu and ContextMenu are to a very high proportion the same 1000 lines of code with the only small difference of what event is triggered to open the menu, the rest is the same), but with the rewrite in here, I removed all the duplicate code and merged a lot of independent CSS classes (that is the change that might impact you if you're using the default theme, so keep reading).
Some of the main changes
Make sure to upvote ⭐ and/or Buy Me a Coffee ☕ ... and if you already have, well thank you 😺
Cheers and Happy Coding 👨💻
salesforce-vanilla-bundle
standalone package (214d8e7)minHeight
option to ColumnPicker/GridMenu (cfcfc85)caller
property to onSelectedRowsChanged
event (cc5f4ae)assign-deep
by local deepMerge
util (2f56bd3)prepend
not supported in IE/Salesforce (b210f9d)prepend
not supported in IE/Salesforce (13bd9a4)Published by ghiscoding almost 3 years ago
This new release brings a new Custom Tooltip plugin (opt-in), it can parse [title]
attributes to create regular tooltip or create your own Custom Tooltip via a Custom Formatter. You can also create Custom Tooltip for Column Headers and Column Header-Row (filters).
When using the Row Move feature, we often forget which row we started the drag/move, so by adding a shadow item (it's simply a clone of the row you're dragging with absolute position that follows the mouse position) and this makes it easier to remind the user which row exactly is being moved. This is a new flag option hideRowMoveShadow
that is enabled by default (if you want to use it, then change it to false
).
A reminder to everyone, this is an Open Source project and everyone is welcome to contribute (even as small as fixing a typo in a Wiki is welcome). We all gain from contributions.
Make sure to upvote ⭐ and/or Buy Me a Coffee ☕ ... and if you already have, well thank you 😺
Cheers and Happy Coding 👨💻
setPinning
with empty object/null should clear it (48b11f7)0.19.1
0.19.2
Published by ghiscoding about 3 years ago
Tree Data filtering will now include children when the parent item passes its filter criteria, please note that this is different compare to previous version where it would not include children and if you still want the same behavior as before then you can use the new flag excludeChildrenWhenFilteringTree
.
2x new options (flags) were created
excludeChildrenWhenFilteringTree
autoApproveParentItemWhenTreeColumnIsValid
(which only work with excludeChildrenWhenFilteringTree: false
which is default)See the update Tree Data - Wiki for these new options and Example 6 for a live demo of all options.
new grid option ignoreAccentOnStringFilterAndSort
to ignore text with accent (like any Latin language) while Filtering/Sorting, see Wiki
A big thanks to
ignoreAccentOnStringFilterAndSort
grid option to ignore text with accent (like any Latin language)A reminder to everyone, this is an Open Source project and everyone is welcome to contribute (even as small as fixing a typo in a Wiki is welcome). We all gain from contributions.
Make sure to upvote ⭐ and/or Buy Me a Coffee ☕ ... and if you already have, well thank you 😺
Cheers and Happy Coding 👨💻
excludeChildrenWhenFilteringTree
set as new default (47df943)prepend
not supported in IE/Salesforce (f183115)Published by ghiscoding about 3 years ago
As the title says, this new version brings better error handling of error thrown by backend, the biggest change is that if the backend server throws an error the grid will now rollback any changes in the grid (whether it's a Sort, Filter or Pagination change). So the lib now keep a reference of the last successful change and rollback that last status and the backend query string is also rolled back if any error is thrown, so you won't be left out with an unfinished activity.
Also in tandem with the previous paragraph, we now also have access to cancellable events (whether it's a Sort, Filter or Pagination change).
See the list below of all 3 possible events with their associated onBeforeX
event:
onBeforeSearchChange
)onBeforeSort
)onBeforePaginationChange
(with Backend Service API)onBeforePagingInfoChanged
(with Local In-Memory grid)For example
gridContainerElm.addEventListener('onBeforeSort', (e) => {
e.preventDefault();
return false;
});
Make sure to upvote ⭐ and/or Buy Me a Coffee ☕ ... and if you already have, well thanks 😺
Cheers and Happy Coding
dynamicallyToggledItemState
method to toggle parent(s) (26369f9)getFilteredItemCount
to show correct count, fix #469 (963235c)Published by ghiscoding over 3 years ago
This new release adds CSS Variables (see Wiki) and few more fixes to get Angular-Slickgrid to finally use Slickgrid-Universal, so you now have the choice to use SASS and/or CSS Variables. There's a few more changes that you can see below, including aria-label for assistive screen reader (it's not perfect, it's just a start and if anyone want to contribute please do so).
Make sure to upvote ⭐ and/or Buy Me a Coffee ☕ ... and if you already have, well thanks 😺
Cheers and Happy Coding
protected
(ecbb93a)Published by ghiscoding over 3 years ago
this new version adds the Tree Data into the Grid State & Presets (when enabled), so you could reload the grid by saving & reapplying the same Grid State and Presets (toggled items) that it was before refreshing the page. There's also some more enhancements and fixes which you can see from the list below.
in this version, we converted a few of the Filters/Editors from jQuery to native. That does not mean we can drop jQuery, but it's a start, SlickGrid uses jQuery heavily so I'm not even sure if it will ever be possible to drop jQuery completely (there's also a few external libs that are jQuery libs: multiple-select.js, jQueryUI autocomplete & slider range). On the other end, this conversion might bring better performance in some areas, at least I would imagine, on single/multiple Filter & Editors with large collection.
There are also a few Components that were decoupled as new monorepo packages so that they could be used in Aurelia-Slickgrid/Angular-Slickgrid (Binding, EventPubSubService, CustomFooterComponent, PaginationComponent). This new version will also be the first version to be used by Angular-Slickgrid for its upcoming major version and so Slickgrid-Universal will soon be used by 2 separate libs (Aurelia-Slickgrid & Angular-Slickgrid) 🚀🥳
Make sure to upvote ⭐ and/or Buy Me a Coffee ☕ ... and if you already have, well thanks 😺
Cheers and Happy Coding
color-disabled-dark
(55c3062)color-disabled
(7151198)getItemCount
method with optional tree level (b3f8f94)initiallyCollapsed
change internal toggled state (380f2f9)Published by ghiscoding over 3 years ago
This new version brings a lot of Tree Data Optimizations and Fixes. We now also have single column resize by content (enabled in all grids)
This new feature is enabled in all grids by default (and as any other feature of the lib, there's flag to disable it too). This new action is very similar to Excel column resize, it will read through the entire dataset (max at 5k rows) and calculate what width it requires to display all the text (it's not an autofit, it's really a resize by content calculation). The feature comes from a reuse of the code that was put in place to handle an entire Grid Resize by Content that was shipped in previous version except that now we also have a single column resize (the default grid resize will always be autofit in viewport).
resizeMaxWidthThreshold
is an option I often use)Because there were many resize options ending up in the Grid Option, I moved all of them into a new ResizeByContentOption
, you can see all info in the new Resize by Content - Wiki
Make sure to upvote ⭐ and/or Buy Me a Coffee ☕ ... and if you already have, well thank you 😺
Cheers and Happy Coding
compositeEditorFormOrder
option (03f2d66)resizeByContentOnlyOnFirstLoad
grid option (ffe7dc4)Published by ghiscoding over 3 years ago
The biggest feature is this release is probably the Resize Columns by their Content (that is an opt-in feature since it requires cpu cycle to parse through the dataset to calculate width of each column).
There's also Row Selection Count that is now showing in the Custom Footer (unless you already have left footer text, if so it won't override it). The grids with colspan were also not exporting correctly and now they do (that is related to reading the item metadata)... there's a few other things, just see the full list below. You can also now filter empty values on the single/multipleSelect Filter (see Wiki)
Also note, every Example now have a direct link to each Component TypeScript file, the link will be on the far right. This will be much quicker to find the associated code of the Example Component you're looking at.
Make sure to upvote ⭐ and/or Buy Me a Coffee ☕
... and if you already have, well thank you 😺
Cheers
onBeforeOpen
optional callback to Composite Editor (#306) (a642482)target
to onBeforeEditCell
w/called by composite (#301) (7440ff5)hideColumnByIndex
form Grid Service (#312) (b00c64d)scrollColumnIntoView
after changing view (b751151)setOptions
(f2027e6)Published by ghiscoding over 3 years ago
This new release brings a few nice new Features the most notable are the following
filterTypingDebounce
for filters with keyup (mainly default Text Search Input and its Compound version), this will help users dealing with huge dataset, add a debounce/throttle should speed up the search since it will query only after user pauses typingEnjoying the lib? Make sure to upvote ⭐ and/or Buy Me a Coffee ☕
... and if you already have, well thank you 😺
Cheers
onSelect
callback to Autocomplete Editor (#286) (2d106d4)IN_COLLECTION
operator to allow searching cell value as Array (#282) (ecce93c)filterTypingDebounce
for filters w/keyup (#289) (3aecc89)filterTypingDebounce
for keyboard filters (#283) (bb7dcd3)<>
should be Not Contains instead of Not Equal (#276) (960884d)Published by ghiscoding over 3 years ago
As the title suggest, this new release brings a few improvements in terms of performance. especially in the following 3 areas
addItems
, updateItems
and deleteItems
)
You first reaction might be... how did you gain so much perf boost?
It all started when I was looking at where MomentJS is used in the lib, then I noticed that the Date sorting is actually parsing to a MomentJS object twice (1x for validating the date and 1x for the actual date) but that could be improved to do it in 1 parsing execution (use the same moment object to call momentDate.isValid()
and then just use it for the sorting diff)... so with that done, I decided to take a look at date filtering to also avoid double parsing, but what I ended up finding, was that were being double parsed and worst than that, it was re-parsing the search values on every single cell value comparison (in other words if we have 50k rows, it was double-parsing the date in the search value 50k times and double-parsing the cell value 50k as well... so when it was supposed to compare and parse 50k rows + 1 time parsing for search value, it was in fact parsing over 4 times that which was about 200k parsing instead of 50k + 1 row... hence the perf boost between 4-6x faster). You can try it yourself, go over the GitHub demo page on Example2 and/or Example 3 then click on "50k rows" and test it out for yourself. If you are dealing with couple thousand rows, you might not notice the difference but make that 25,000 or 50,000 rows and you will surely notice the boost 🚀
Published by ghiscoding over 3 years ago
This new release brings a few fixes and most importantly an addition to the Composite Editor - Clone Item (which allows copying a row with possible edits before cloning). There's also a brand new Composite Editor - Wiki with full details on how to use Composite Editor (which now allows you to do the following 5 actions: create/clone/editor/mass-update/mass-selection)
If you like the lib, please upvote ⭐ and/or Buy Me a Coffee ☕
see the changelog of each package below:
collectionOverride
option (0efb18f)nameCompositeEditor
override for Composite Editor (fcdb2e9)Published by ghiscoding almost 4 years ago
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 🚀
collectionOverride
for the Select Editor (single/multiple) and the AutoComplete Editor which allows to change the collection per cell clicked (see Collection Override - Wiki
require(plugin)
, which was not Tree Shakable, they now are imported the more natural way import(plugin)
which is Tree Shakablerequire(flatpickr/locale)
, you need to see the breaking change below.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 main.ts
file (right after AureliaSlickgrid 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.
If you like the lib, please upvote ⭐ and/or Buy Me a Coffee ☕
see the changelog of each package below:
Published by ghiscoding almost 4 years ago
Add AutoComplete, SingleSelect & MultipleSelect Filters collection watch (if an item is pushed or removed from the collection, the filter will re-render its list).
Also fixed a few problems identified by Aurelia with ESM Module imports (converted all load dynamic plugins from require
to regular imports
).
see the changelog of each package below:
Published by ghiscoding almost 4 years ago
This is it, Aurelia-Slickgrid 3.0.0
is released and it takes full advantage of Slickgrid-Universal monorepo structure.
see the changelog of each package below:
Published by ghiscoding almost 4 years ago
Fixed a few styling issues with Bootstrap 4 and also renamed registerExternalServices
to registerExternalResources
which is a small breaking change. The reason is that it can now takes a mix of Services and/or Components which the later is a new feature (we now load the SlickCompositeEditorComponent
through it)
see the changelog of each package below: