ng-virtual-list 22.12.1 → 22.12.3
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/README.md +10 -10
- package/fesm2022/ng-virtual-list.mjs +215 -74
- package/fesm2022/ng-virtual-list.mjs.map +1 -1
- package/package.json +2 -2
- package/types/ng-virtual-list.d.ts +45 -9
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-virtual-list",
|
|
3
|
-
"version": "22.12.
|
|
3
|
+
"version": "22.12.3",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Evgenii Alexandrovich Grebennikov",
|
|
6
6
|
"email": "djonnyx@gmail.com"
|
|
7
7
|
},
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"homepage": "https://github.com/DjonnyX/ng-virtual-list/tree/
|
|
9
|
+
"homepage": "https://github.com/DjonnyX/ng-virtual-list/tree/22.x/projects/ng-virtual-list",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"ng",
|
|
12
12
|
"angular",
|
|
@@ -415,6 +415,10 @@ interface IDisplayObjectConfig extends IRenderVirtualListItemConfig {
|
|
|
415
415
|
* Determines whether the element is collapsed or not.
|
|
416
416
|
*/
|
|
417
417
|
collapsed: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* True if scroll capture occurs.
|
|
420
|
+
*/
|
|
421
|
+
grabbing: boolean;
|
|
418
422
|
}
|
|
419
423
|
|
|
420
424
|
/**
|
|
@@ -1746,6 +1750,19 @@ declare class NgVirtualListService {
|
|
|
1746
1750
|
get langTextDir(): TextDirection;
|
|
1747
1751
|
private _langTextDir;
|
|
1748
1752
|
set langTextDir(v: TextDirection);
|
|
1753
|
+
private _$grabbing;
|
|
1754
|
+
readonly $grabbing: rxjs.Observable<boolean>;
|
|
1755
|
+
get grabbing(): boolean;
|
|
1756
|
+
private _grabbing;
|
|
1757
|
+
set grabbing(v: boolean);
|
|
1758
|
+
private _$clickPressed;
|
|
1759
|
+
readonly $clickPressed: rxjs.Observable<boolean>;
|
|
1760
|
+
get clickPressed(): boolean;
|
|
1761
|
+
private _clickPressed;
|
|
1762
|
+
set clickPressed(v: boolean);
|
|
1763
|
+
private _$isGrabbing;
|
|
1764
|
+
readonly $isGrabbing: rxjs.Observable<boolean>;
|
|
1765
|
+
get isGrabbing(): boolean;
|
|
1749
1766
|
get scrollBarSize(): number;
|
|
1750
1767
|
private _scrollBarSize;
|
|
1751
1768
|
set scrollBarSize(v: number);
|
|
@@ -1888,7 +1905,7 @@ declare class BaseVirtualListItemComponent implements IBaseVirtualListItemCompon
|
|
|
1888
1905
|
protected _destroyRef: DestroyRef;
|
|
1889
1906
|
constructor();
|
|
1890
1907
|
protected updateMeasures(v: IRenderVirtualListItem<any> | null): void;
|
|
1891
|
-
protected updateConfig(v: IRenderVirtualListItem<any> | null): void;
|
|
1908
|
+
protected updateConfig(v: IRenderVirtualListItem<any> | null, grabbing: boolean): void;
|
|
1892
1909
|
protected update(): void;
|
|
1893
1910
|
protected updatePartStr(v: IRenderVirtualListItem | null, isSelected: boolean, isCollapsed: boolean): void;
|
|
1894
1911
|
protected hasFocus(): boolean;
|
|
@@ -1918,8 +1935,10 @@ declare class NgVirtualListItemComponent extends BaseVirtualListItemComponent im
|
|
|
1918
1935
|
private toPrevItem;
|
|
1919
1936
|
private focusNext;
|
|
1920
1937
|
private focusPrev;
|
|
1921
|
-
protected updateConfig(v: IRenderVirtualListItem<any> | null): void;
|
|
1938
|
+
protected updateConfig(v: IRenderVirtualListItem<any> | null, grabbing: boolean): void;
|
|
1922
1939
|
onClickHandler(): void;
|
|
1940
|
+
onClickPressHandler(): void;
|
|
1941
|
+
onClickCancelHandler(): void;
|
|
1923
1942
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgVirtualListItemComponent, never>;
|
|
1924
1943
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgVirtualListItemComponent, "ng-virtual-list-item", never, {}, {}, never, never, false, never>;
|
|
1925
1944
|
}
|
|
@@ -2211,7 +2230,7 @@ declare class NgVirtualListComponent implements OnDestroy {
|
|
|
2211
2230
|
motionBlurEnabled: _angular_core.InputSignal<boolean>;
|
|
2212
2231
|
private _animationParamsOptions;
|
|
2213
2232
|
/**
|
|
2214
|
-
* Animation parameters. The default value is "{ scrollToItem:
|
|
2233
|
+
* Animation parameters. The default value is "{ scrollToItem: 150, snapToItem: 150, navigateToItem: 150, navigateByKeyboard: 50 }".
|
|
2215
2234
|
*/
|
|
2216
2235
|
animationParams: _angular_core.InputSignal<IAnimationParams>;
|
|
2217
2236
|
private _overscrollEnabledOptions;
|
|
@@ -2425,6 +2444,7 @@ declare class NgVirtualListComponent implements OnDestroy {
|
|
|
2425
2444
|
private _readyForShow;
|
|
2426
2445
|
private _cached;
|
|
2427
2446
|
private _isLoading;
|
|
2447
|
+
private _animationId;
|
|
2428
2448
|
protected get cachable(): boolean;
|
|
2429
2449
|
protected get prerenderable(): boolean;
|
|
2430
2450
|
private _$viewInit;
|
|
@@ -2509,14 +2529,19 @@ declare class NgVirtualListComponent implements OnDestroy {
|
|
|
2509
2529
|
* @email djonnyx@gmail.com
|
|
2510
2530
|
*/
|
|
2511
2531
|
declare class VirtualClickDirective {
|
|
2532
|
+
private _$maxDistance;
|
|
2533
|
+
protected $maxDistance: rxjs.Observable<number | null>;
|
|
2512
2534
|
private _maxDistance;
|
|
2513
2535
|
set maxDistance(v: number | string);
|
|
2514
2536
|
onVirtualClick: _angular_core.OutputEmitterRef<PointerEvent | TouchEvent>;
|
|
2537
|
+
onVirtualClickPress: _angular_core.OutputEmitterRef<PointerEvent | TouchEvent>;
|
|
2538
|
+
onVirtualClickCancel: _angular_core.OutputEmitterRef<void>;
|
|
2539
|
+
private _service;
|
|
2515
2540
|
private _elementRef;
|
|
2516
2541
|
private _destroyRef;
|
|
2517
2542
|
constructor();
|
|
2518
2543
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VirtualClickDirective, never>;
|
|
2519
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<VirtualClickDirective, "[virtualClick]", never, { "maxDistance": { "alias": "maxClickDistance"; "required": false; }; }, { "onVirtualClick": "onVirtualClick"; }, never, never, false, never>;
|
|
2544
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<VirtualClickDirective, "[virtualClick]", never, { "maxDistance": { "alias": "maxClickDistance"; "required": false; }; }, { "onVirtualClick": "onVirtualClick"; "onVirtualClickPress": "onVirtualClickPress"; "onVirtualClickCancel": "onVirtualClickCancel"; }, never, never, false, never>;
|
|
2520
2545
|
}
|
|
2521
2546
|
|
|
2522
2547
|
declare class VirtualClickModule {
|
|
@@ -2579,10 +2604,18 @@ interface IAnimatorParams {
|
|
|
2579
2604
|
declare class Animator {
|
|
2580
2605
|
private static _nextId;
|
|
2581
2606
|
private _animationId;
|
|
2607
|
+
get animated(): boolean;
|
|
2608
|
+
get isAnimated(): boolean;
|
|
2582
2609
|
private _currentId;
|
|
2610
|
+
get id(): number;
|
|
2583
2611
|
private generateId;
|
|
2584
|
-
|
|
2585
|
-
|
|
2612
|
+
private _diff;
|
|
2613
|
+
private _startValue;
|
|
2614
|
+
private _endValue;
|
|
2615
|
+
updateTo(value: number): boolean;
|
|
2616
|
+
animate(params: IAnimatorParams): number;
|
|
2617
|
+
hasAnimation(id?: number): boolean;
|
|
2618
|
+
stop(id?: number): void;
|
|
2586
2619
|
dispose(): void;
|
|
2587
2620
|
}
|
|
2588
2621
|
|
|
@@ -2762,7 +2795,9 @@ declare class NgScrollView extends BaseScrollView {
|
|
|
2762
2795
|
get startLayoutOffset(): number;
|
|
2763
2796
|
protected _intersectionComponentId: Id | null;
|
|
2764
2797
|
protected _isAlignmentAnimation: boolean;
|
|
2798
|
+
get animated(): boolean;
|
|
2765
2799
|
constructor();
|
|
2800
|
+
hasAnimation(id?: number): boolean;
|
|
2766
2801
|
protected updateDirection(position: number, prePosition: number): void;
|
|
2767
2802
|
protected overrideCoordinates(x: number, y: number): void;
|
|
2768
2803
|
protected measureVelocity(): void;
|
|
@@ -2779,19 +2814,20 @@ declare class NgScrollView extends BaseScrollView {
|
|
|
2779
2814
|
protected move(isVertical: boolean, position: number, blending?: boolean, userAction?: boolean, fireUpdate?: boolean): void;
|
|
2780
2815
|
protected moveWithAcceleration(isVertical: boolean, position: number, v0: number, v: number, a0: number, timestamp: number): void;
|
|
2781
2816
|
protected normalizeValue(value: number): number;
|
|
2782
|
-
protected animate(startValue: number, endValue: number, duration?: number, easingFunction?: Easing, userAction?: boolean, alignmentAtComplete?: boolean, skipOverridedCoordinates?: boolean):
|
|
2817
|
+
protected animate(startValue: number, endValue: number, duration?: number, easingFunction?: Easing, blending?: boolean, userAction?: boolean, alignmentAtComplete?: boolean, skipOverridedCoordinates?: boolean): number;
|
|
2783
2818
|
protected getSnappedComponentSize(): number | null;
|
|
2784
2819
|
protected alignPosition(animated?: boolean, force?: boolean): boolean;
|
|
2785
2820
|
protected checkIntersectionComponent(): void;
|
|
2786
2821
|
protected onAnimationComplete(position: number): void;
|
|
2787
2822
|
fireScroll(userAction?: boolean): void;
|
|
2788
2823
|
scrollLimits(value?: number | undefined, silent?: boolean): boolean;
|
|
2789
|
-
scroll(params: IScrollToParams):
|
|
2824
|
+
scroll(params: IScrollToParams): number;
|
|
2790
2825
|
protected emitScrollableEvent(): void;
|
|
2791
2826
|
refreshCoordinate(x: number, y: number): void;
|
|
2792
2827
|
protected fireScrollEvent(userAction: boolean): void;
|
|
2793
2828
|
protected onDragStart(): void;
|
|
2794
2829
|
reset(offset?: number): void;
|
|
2830
|
+
stopAnimation(id: number): void;
|
|
2795
2831
|
ngOnDestroy(): void;
|
|
2796
2832
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgScrollView, never>;
|
|
2797
2833
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgScrollView, "ng-scroll-view", never, { "scrollBehavior": { "alias": "scrollBehavior"; "required": false; "isSignal": true; }; "overscrollEnabled": { "alias": "overscrollEnabled"; "required": false; "isSignal": true; }; "scrollingSettings": { "alias": "scrollingSettings"; "required": false; "isSignal": true; }; "snapToItem": { "alias": "snapToItem"; "required": false; "isSignal": true; }; "scrollingOneByOne": { "alias": "scrollingOneByOne"; "required": false; "isSignal": true; }; "snapToItemAlign": { "alias": "snapToItemAlign"; "required": false; "isSignal": true; }; "snappingDistance": { "alias": "snappingDistance"; "required": false; "isSignal": true; }; "animationParams": { "alias": "animationParams"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -2982,7 +3018,7 @@ declare class NgScrollerComponent extends NgScrollView {
|
|
|
2982
3018
|
snapIfNeed(animated?: boolean): void;
|
|
2983
3019
|
startScrollTo(): void;
|
|
2984
3020
|
finishedScrollTo(): void;
|
|
2985
|
-
scrollTo(params: IScrollToParams):
|
|
3021
|
+
scrollTo(params: IScrollToParams): number;
|
|
2986
3022
|
stopScrollbar(): void;
|
|
2987
3023
|
private dropVelocity;
|
|
2988
3024
|
protected stopMoving(): void;
|