Skip to content

Commit 5cfdf88

Browse files
committed
v1.10.0
1 parent 4acd507 commit 5cfdf88

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

demo/app/samples/adapter/clip.component.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
<p>
88
<em>Adapter.clip</em> is another <em>Adapter</em> API method
99
allowing to remove out-of-viewport items on demand.
10+
Not to be confused with <em>Adapter.remove</em>, as
11+
this method has no impact on the <em>Datasource</em>.
12+
It just cleans up the DOM.
13+
</p>
14+
<p>
1015
Commonly, the <em>uiScroll</em> runs the clipping procedure
1116
each time new items are fetched after scrolling.
1217
Also, the <em>uiScroll</em> clips old items from a side of the viewport

demo/app/samples/adapter/remove.component.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
removing by id and by index:
2828
</p>
2929
<pre>{{predicateDescription}}</pre>
30+
<p>
31+
Indexes are adjusted each time we perform a removing via Adapter.
32+
It is impossible to remove item with id = 5 twice,
33+
because there is only one item with id = 5.
34+
But we may remove item with index = 5 as many times
35+
as many items we have after this index.
36+
</p>
3037
<p>
3138
Only a continuous series of items can be removed at a time using <em>predicate</em>.
3239
So, if you need to remove items 1, 2, 3 and 5,
@@ -39,7 +46,7 @@
3946
This method works with both buffered and virtual items.
4047
For example, if we have [1..10] buffered items (they are rendered)
4148
and [11..100] virtual items (emulated via forward padding element
42-
which size corresponds to 90 virtual items) and the we perform
49+
which size corresponds to 90 virtual items) and then we perform
4350
<em>Adapter.remove(&#123; indexes: [100] &#125;)</em>, we'll have
4451
the following:
4552
</p>
@@ -51,13 +58,6 @@
5158
so the scrollable area becomes slightly smaller
5259
</li>
5360
</ul>
54-
<p>
55-
Indexes are adjusted each time we perform a removing via Adapter.
56-
It is impossible to remove item with id = 5 twice,
57-
because there is only one item with id = 5.
58-
But we may remove item with index = 5 as many times
59-
as many items we have after this index.
60-
</p>
6161
<p>
6262
Indexes decrease by default, and the next option (<em>increase</em>)
6363
allows to change the default indexes adjustment strategy.

package-dist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-ui-scroll",
3-
"version": "1.9.1",
3+
"version": "1.10.0",
44
"description": "Infinite/virtual scroll for Angular",
55
"main": "./bundles/ngx-ui-scroll.umd.js",
66
"module": "./fesm5/ngx-ui-scroll.js",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"deploy-app": "npm run build-app && firebase deploy",
1515
"preinstall": "cd server && npm install",
1616
"postinstall": "npm run build-app",
17-
"pack:install": "npm run build && npm pack ./dist && npm install ngx-ui-scroll-1.9.1.tgz --no-save",
17+
"pack:install": "npm run build && npm pack ./dist && npm install ngx-ui-scroll-1.10.0.tgz --no-save",
1818
"pack:start": "npm run pack:install && npm start",
1919
"build": "node build.js",
2020
"publish:lib": "npm run build && npm publish ./dist",

src/ui-scroll.version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default '1.9.1';
1+
export default '1.10.0';

0 commit comments

Comments
 (0)