@pepperi-addons/ngx-lib 0.2.57-beta.2 → 0.2.58
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.
- package/bundles/pepperi-addons-ngx-lib-list.umd.js +7 -7
- package/bundles/pepperi-addons-ngx-lib-list.umd.js.map +1 -1
- package/esm2015/list/virtual-scroller.js +4 -4
- package/fesm2015/pepperi-addons-ngx-lib-list.js +5 -5
- package/fesm2015/pepperi-addons-ngx-lib-list.js.map +1 -1
- package/list/virtual-scroller.d.ts +2 -2
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ import { pepIconArrowDown, pepIconArrowEither, pepIconArrowUp, pepIconSystemMust
|
|
|
14
14
|
import { PepFormModule } from '@pepperi-addons/ngx-lib/form';
|
|
15
15
|
import { PepMenuModule } from '@pepperi-addons/ngx-lib/menu';
|
|
16
16
|
import { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';
|
|
17
|
-
import * as
|
|
17
|
+
import * as tween from '@tweenjs/tween.js';
|
|
18
18
|
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
|
19
19
|
|
|
20
20
|
function VIRTUAL_SCROLLER_DEFAULT_OPTIONS_FACTORY() {
|
|
@@ -329,9 +329,9 @@ class VirtualScrollerComponent {
|
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
const tweenConfigObj = { scrollPosition: scrollElement[this._scrollType] };
|
|
332
|
-
const newTween = new
|
|
332
|
+
const newTween = new tween.Tween(tweenConfigObj)
|
|
333
333
|
.to({ scrollPosition }, animationMilliseconds)
|
|
334
|
-
.easing(
|
|
334
|
+
.easing(tween.Easing.Quadratic.Out)
|
|
335
335
|
.onUpdate((data) => {
|
|
336
336
|
if (isNaN(data.scrollPosition)) {
|
|
337
337
|
return;
|
|
@@ -1276,9 +1276,9 @@ class PepListComponent {
|
|
|
1276
1276
|
if (this.currentTween !== undefined) {
|
|
1277
1277
|
this.currentTween.stop();
|
|
1278
1278
|
}
|
|
1279
|
-
this.currentTween = new
|
|
1279
|
+
this.currentTween = new tween.Tween({ scrollTop: currentScrollTop })
|
|
1280
1280
|
.to({ scrollTop }, this.scrollAnimationTime)
|
|
1281
|
-
.easing(
|
|
1281
|
+
.easing(tween.Easing.Quadratic.Out)
|
|
1282
1282
|
.onUpdate((data) => {
|
|
1283
1283
|
if (isNaN(data.scrollTop)) {
|
|
1284
1284
|
return;
|