@ngrx-traits/common 12.0.0 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -615,7 +615,7 @@
615
615
  * addLoadEntitiesTrait<Todo>(),
616
616
  * //addFilterEntitiesTrait<Todo,TodoFilter>() // no params uses remote filtering
617
617
  * addFilterEntitiesTrait<Todo,TodoFilter>({filterFn: (filter, entity) => // local filtering
618
- * filter?.content && entity.content?.includes(filter?.content) || false})
618
+ * !filter.content || !!entity.content?.includes(filter.content.toLowerCase())
619
619
  * // or use the following function to switch between remote search and local
620
620
  * // depending on which properties have changed in the filter
621
621
  * // isRemoteFilter: (previous, current) => previous?.someRemoteParam !== current?.someRemoteParam,
@@ -887,7 +887,7 @@
887
887
  * To make the pagination experience smoother the loadEntities to get new pages is done when the current page is change to
888
888
  * the last cached page.
889
889
  * @param config
890
- * @param config.cacheType - Default to 'full', change the cache mode
890
+ * @param config.cacheType - Default to 'partial', change the cache mode
891
891
  * @param config.pageSize - Default to 20, number of entities on each page
892
892
  * @param config.currentPage - Default to 0, starting page
893
893
  * @param config.pagesToCache - Default to 3, used in partial and grow cache mode, is the number of
@@ -929,7 +929,7 @@
929
929
  * traits.selectors.selectTodosPageInfo()
930
930
  */
931
931
  function addEntitiesPaginationTrait(_a) {
932
- var _b = _a === void 0 ? {} : _a, _c = _b.cacheType, cacheType = _c === void 0 ? 'full' : _c, _d = _b.pageSize, pageSize = _d === void 0 ? 20 : _d, _e = _b.currentPage, currentPage = _e === void 0 ? 0 : _e, _f = _b.pagesToCache, pagesToCache = _f === void 0 ? 3 : _f;
932
+ var _b = _a === void 0 ? {} : _a, _c = _b.cacheType, cacheType = _c === void 0 ? 'partial' : _c, _d = _b.pageSize, pageSize = _d === void 0 ? 20 : _d, _e = _b.currentPage, currentPage = _e === void 0 ? 0 : _e, _f = _b.pagesToCache, pagesToCache = _f === void 0 ? 3 : _f;
933
933
  return core.createTraitFactory({
934
934
  key: entitiesPaginationTraitKey,
935
935
  depends: [loadEntitiesTraitKey],