ng-virtual-list 21.12.2 → 21.12.4
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 +2 -2
- package/fesm2022/ng-virtual-list.mjs +214 -71
- package/fesm2022/ng-virtual-list.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ng-virtual-list.d.ts +46 -9
package/package.json
CHANGED
|
@@ -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,19 @@ 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
|
+
private _prevPos;
|
|
2616
|
+
updateTo(end: number): boolean;
|
|
2617
|
+
animate(params: IAnimatorParams): number;
|
|
2618
|
+
hasAnimation(id?: number): boolean;
|
|
2619
|
+
stop(id?: number): void;
|
|
2586
2620
|
dispose(): void;
|
|
2587
2621
|
}
|
|
2588
2622
|
|
|
@@ -2762,7 +2796,9 @@ declare class NgScrollView extends BaseScrollView {
|
|
|
2762
2796
|
get startLayoutOffset(): number;
|
|
2763
2797
|
protected _intersectionComponentId: Id | null;
|
|
2764
2798
|
protected _isAlignmentAnimation: boolean;
|
|
2799
|
+
get animated(): boolean;
|
|
2765
2800
|
constructor();
|
|
2801
|
+
hasAnimation(id?: number): boolean;
|
|
2766
2802
|
protected updateDirection(position: number, prePosition: number): void;
|
|
2767
2803
|
protected overrideCoordinates(x: number, y: number): void;
|
|
2768
2804
|
protected measureVelocity(): void;
|
|
@@ -2779,19 +2815,20 @@ declare class NgScrollView extends BaseScrollView {
|
|
|
2779
2815
|
protected move(isVertical: boolean, position: number, blending?: boolean, userAction?: boolean, fireUpdate?: boolean): void;
|
|
2780
2816
|
protected moveWithAcceleration(isVertical: boolean, position: number, v0: number, v: number, a0: number, timestamp: number): void;
|
|
2781
2817
|
protected normalizeValue(value: number): number;
|
|
2782
|
-
protected animate(startValue: number, endValue: number, duration?: number, easingFunction?: Easing, userAction?: boolean, alignmentAtComplete?: boolean, skipOverridedCoordinates?: boolean):
|
|
2818
|
+
protected animate(startValue: number, endValue: number, duration?: number, easingFunction?: Easing, blending?: boolean, userAction?: boolean, alignmentAtComplete?: boolean, skipOverridedCoordinates?: boolean): number;
|
|
2783
2819
|
protected getSnappedComponentSize(): number | null;
|
|
2784
2820
|
protected alignPosition(animated?: boolean, force?: boolean): boolean;
|
|
2785
2821
|
protected checkIntersectionComponent(): void;
|
|
2786
2822
|
protected onAnimationComplete(position: number): void;
|
|
2787
2823
|
fireScroll(userAction?: boolean): void;
|
|
2788
2824
|
scrollLimits(value?: number | undefined, silent?: boolean): boolean;
|
|
2789
|
-
scroll(params: IScrollToParams):
|
|
2825
|
+
scroll(params: IScrollToParams): number;
|
|
2790
2826
|
protected emitScrollableEvent(): void;
|
|
2791
2827
|
refreshCoordinate(x: number, y: number): void;
|
|
2792
2828
|
protected fireScrollEvent(userAction: boolean): void;
|
|
2793
2829
|
protected onDragStart(): void;
|
|
2794
2830
|
reset(offset?: number): void;
|
|
2831
|
+
stopAnimation(id: number): void;
|
|
2795
2832
|
ngOnDestroy(): void;
|
|
2796
2833
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgScrollView, never>;
|
|
2797
2834
|
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 +3019,7 @@ declare class NgScrollerComponent extends NgScrollView {
|
|
|
2982
3019
|
snapIfNeed(animated?: boolean): void;
|
|
2983
3020
|
startScrollTo(): void;
|
|
2984
3021
|
finishedScrollTo(): void;
|
|
2985
|
-
scrollTo(params: IScrollToParams):
|
|
3022
|
+
scrollTo(params: IScrollToParams): number;
|
|
2986
3023
|
stopScrollbar(): void;
|
|
2987
3024
|
private dropVelocity;
|
|
2988
3025
|
protected stopMoving(): void;
|