This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Lot of Backend Event Service refactoring
New Features
- rewrote the entire Backend Service implementation to make it much simpler to use
- you no longer need to call
initOptionsseparately to define service options, you can now do that directly in thebackendServiceApi - a new option flag
executeProcessCommandOnInit(only GraphQL for now) was added and if set to true will make theonInitirrelevant (though it still exist and available). This new flag when set to True will run theprocesscallback on page load (component init). - another option flag
addLocaleIntoQuerywas added to deal with GraphQLfilterByandorderBywith translated values. - made
filterTypingDebounceoptional, default to 750ms - made GraphQL
postProcesstotally optional, the service now use aninternalPostProcessthat will takes care of filling the slickgrid dataset and pagination info (prior to this change, you had to manually deal with them).postProcessis still available and you can still use it to stop a spinner or anything after the process is done. onBackendEventApiis deprecated is replaced bybackendServiceApi, you can still use previous implementation but you will get a warning in the console.
- you no longer need to call
- new Column option
queryFieldwas added so that you can use another field to do anorderByorfilterBy(this works with all implementation, regular grid with JSON dataset and/or backend services OData/GraphQL) - Inline Editor
dateEditorwill now translate automatically by usingngx-translate currentLangto use proper locale with Flatpickr. - renamed Event Emitter
onGridDestroyedtoonAfterGridDestroyedto be more consistent with the others.
Fixes
- fixed issue #8 when using inline editor
dateEditorand latestFlatpickrversion - fixed issue #9 string filter should be case insensitive
- fixed string filter with (*) operator on filter, the filtering query was inverse
John*=> startsWith,*Doe=> endsWith
- fixed, yet again, an error thrown by SlickGrid saying: "Stylesheet missing"
- Backend Service Pagination
- changing the page size in the UI was returning a string to
pageSizeand was breaking the pagination - changing page then typing a filter was not reseting the GraphQL offset property which would sometime break pagination since we could be out of bound.
- changing the page size in the UI was returning a string to
Deprecated
onBackendEventApiwas deprecated, please use the much simplerbackendServiceApiinstead. You will receive a warning in the console when using previous property. Please refer to the OData Wiki or the GraphQL Wiki for more info on the new property usage.