Releases: dhilt/ngx-ui-scroll
Releases · dhilt/ngx-ui-scroll
Items of zero size
- fix for the case of zero size items (issue #163)
- fix for the case when 'check' detected changes
Adapter reset
New Adapter.reset method is introduced:
Name | Parameters | Description |
---|---|---|
insert | (options: { items: any[], before?: ItemsPredicate, after?: ItemsPredicate, decrease?: boolean }) |
Inserts items before or after the one that satisfies the predicate condition. Only one of before and after options is allowed. Indexes increase by default. Decreasing strategy can be enabled via decrease option. |
Added demo.
Added 30 tests: adapter.reset.spec and adapter.reset-persistance.spec.
Adapter insert
New Adapter.insert method is introduced:
Name | Parameters | Description |
---|---|---|
insert | (options: { items: any[], before?: ItemsPredicate, after?: ItemsPredicate, decrease?: boolean }) |
Inserts items before or after the one that satisfies the predicate condition. Only one of before and after options is allowed. Indexes increase by default. Decreasing strategy can be enabled via decrease option. |
Adapter context initialization fix
The details could be taken from the description of PR #152.
Adapter Workflow call protection
- Adapter workflow call protection (fix for the WF interruption)
- reduced inner dependencies
Workflow and Adapter initialization refactoring
- new implementation for the Adapter, public context has only getters, no extra props (PR #140)
- disposing the Workflow is based on rxjs Subject (PR #137), it eliminates issues #118 and #132
- Workflow state machine as a separate entity, reconsidered the payload of the Workflow processes (PR #138)
- "experimental" tab for the demo app, link
- new tests (246)
Workflow 6.5
Inverse setting
When there is a lack of items in the viewport, the uiScroll sets the height of the forward padding element to some value enough to fill the viewport. This is default behaviour, and this can be changed with the help of inverse setting.
When inverse setting is set to true, the backward padding element will have a priority over the forward one, and it will be stretched if there are not enough items in the viewport.
Adapter bof$/eof$
v1.3.2 Merge pull request #128 from dhilt/issue-110_fetching-new-data-when-B…
Workflow interruption on reload
- Workflow 6.0
- the Workflow can be asynchronously interrupted
- interruption for the Reload process + tests
Adapter updates and fixes
- Adapter.fix implementation (link)
- Adapter.check fix