ng-virtual-list 19.11.4 → 19.12.0
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 +76 -36
- package/fesm2022/ng-virtual-list.mjs +5271 -2955
- package/fesm2022/ng-virtual-list.mjs.map +1 -1
- package/lib/components/ng-list-item/base/base-virtual-list-item-component.d.ts +16 -2
- package/lib/components/ng-list-item/const/index.d.ts +1 -1
- package/lib/components/ng-list-item/ng-virtual-list-item.component.d.ts +2 -1
- package/lib/components/ng-list-item/ng-virtual-list-item.module.d.ts +2 -2
- package/lib/components/ng-list-item/utils/create-display-id.d.ts +6 -0
- package/lib/components/ng-list-item/utils/get-element-by-index.d.ts +15 -1
- package/lib/components/ng-list-item/utils/index.d.ts +2 -1
- package/lib/components/ng-list-item/utils/matrix-3d.d.ts +7 -0
- package/lib/components/ng-prerender-container/components/ng-prerender-list/ng-prerender-list.component.d.ts +5 -4
- package/lib/components/ng-prerender-container/components/ng-prerender-list-item/ng-prerender-list-item.component.d.ts +2 -2
- package/lib/components/ng-prerender-container/components/ng-prerender-list-item/ng-prerender-list-item.module.d.ts +2 -2
- package/lib/components/ng-prerender-container/components/ng-prerender-scroller/ng-prerender-scroller.component.d.ts +3 -3
- package/lib/components/ng-prerender-container/interfaces/refresh-params.d.ts +1 -0
- package/lib/components/ng-prerender-container/ng-prerender-container.component.d.ts +6 -5
- package/lib/components/ng-scroll-bar/ng-scroll-bar.component.d.ts +5 -2
- package/lib/components/ng-scroll-view/base/base-scroll-view.component.d.ts +14 -3
- package/lib/components/ng-scroll-view/const/index.d.ts +3 -1
- package/lib/components/ng-scroll-view/interfaces/scroll-to-params.d.ts +3 -0
- package/lib/components/ng-scroll-view/ng-scroll-view.component.d.ts +51 -8
- package/lib/components/ng-scroll-view/utils/calculate-direction.d.ts +6 -0
- package/lib/components/ng-scroll-view/utils/calculate-velocity.d.ts +7 -0
- package/lib/components/ng-scroll-view/utils/get-dir.d.ts +7 -0
- package/lib/components/ng-scroll-view/utils/index.d.ts +3 -1
- package/lib/components/ng-scroll-view/utils/matrix-3d.d.ts +7 -0
- package/lib/components/ng-scroller/ng-scroller.component.d.ts +25 -26
- package/lib/const/index.d.ts +46 -5
- package/lib/core/cache-map.d.ts +0 -10
- package/lib/core/const/index.d.ts +1 -0
- package/lib/core/enums/index.d.ts +2 -0
- package/lib/core/enums/item-display-methods.d.ts +12 -0
- package/lib/core/events/index.d.ts +2 -0
- package/lib/core/events/track-box-events.d.ts +10 -0
- package/lib/core/interfaces/get-item-position-options.d.ts +10 -0
- package/lib/core/interfaces/get-metrics-returns.d.ts +11 -0
- package/lib/core/interfaces/index.d.ts +8 -0
- package/lib/core/interfaces/item.d.ts +9 -0
- package/lib/core/interfaces/metrics.d.ts +51 -0
- package/lib/core/interfaces/recalculate-metrics-options.d.ts +32 -0
- package/lib/core/interfaces/update-collection-options.d.ts +10 -0
- package/lib/core/interfaces/update-collection-returns.d.ts +14 -0
- package/lib/core/track-box.d.ts +25 -95
- package/lib/core/tracker.d.ts +1 -1
- package/lib/core/types/cache-map-events.d.ts +8 -0
- package/lib/core/types/cache-map-listeners.d.ts +9 -0
- package/lib/core/types/cache.d.ts +12 -0
- package/lib/core/types/index.d.ts +6 -0
- package/lib/core/types/on-change-event-listener.d.ts +7 -0
- package/lib/core/types/on-tick-event-listener.d.ts +7 -0
- package/lib/core/utils/get-service-id-prop.d.ts +7 -0
- package/lib/core/utils/index.d.ts +2 -0
- package/lib/directives/index.d.ts +2 -2
- package/lib/directives/locale-sensitive/locale-sensitive.directive.d.ts +1 -1
- package/lib/directives/{item-click/item-click.directive.d.ts → virtual-click/virtual-click.directive.d.ts} +5 -5
- package/lib/directives/virtual-click/virtual-click.module.d.ts +8 -0
- package/lib/enums/alignments.d.ts +10 -0
- package/lib/enums/collapsing-modes.d.ts +20 -0
- package/lib/enums/index.d.ts +7 -9
- package/lib/enums/{method-for-selecting-types.d.ts → selecting-modes-types.d.ts} +3 -3
- package/lib/enums/{methods-for-selecting.d.ts → selecting-modes.d.ts} +3 -3
- package/lib/enums/snap-to-item-aligns.d.ts +20 -0
- package/lib/enums/spreading-modes.d.ts +16 -0
- package/lib/interfaces/animation-params.d.ts +1 -0
- package/lib/interfaces/base-virtual-list-item-component.d.ts +13 -13
- package/lib/interfaces/index.d.ts +3 -2
- package/lib/interfaces/item-transformation.d.ts +22 -0
- package/lib/interfaces/point.d.ts +16 -0
- package/lib/interfaces/scroll-options.d.ts +4 -0
- package/lib/interfaces/scroll-params.d.ts +2 -1
- package/lib/models/item-config-map.model.d.ts +5 -0
- package/lib/models/item.model.d.ts +7 -0
- package/lib/models/render-item-config.model.d.ts +50 -0
- package/lib/models/render-item-measures.model.d.ts +71 -0
- package/lib/ng-virtual-list-public.service.d.ts +4 -5
- package/lib/ng-virtual-list.component.d.ts +161 -26
- package/lib/ng-virtual-list.service.d.ts +30 -12
- package/lib/transformations/deck-of-cards-3d.d.ts +54 -0
- package/lib/transformations/deck-of-cards.d.ts +50 -0
- package/lib/transformations/event-horizon.d.ts +26 -0
- package/lib/transformations/index.d.ts +7 -0
- package/lib/transformations/linear.d.ts +26 -0
- package/lib/transformations/swipe-3d.d.ts +38 -0
- package/lib/types/alignment.d.ts +8 -0
- package/lib/types/arithmetic-expression.d.ts +10 -0
- package/lib/types/collapsing-mode.d.ts +8 -0
- package/lib/{enums → types}/collection-mode.d.ts +1 -1
- package/lib/types/color.d.ts +4 -0
- package/lib/{enums → types}/direction.d.ts +1 -1
- package/lib/types/float-or-persentage-value.d.ts +7 -0
- package/lib/types/focus-item-params.d.ts +6 -0
- package/lib/types/gradient-color-position.d.ts +1 -1
- package/lib/types/index.d.ts +15 -1
- package/lib/types/item-transform.d.ts +9 -0
- package/lib/types/scroll-direction.d.ts +2 -0
- package/lib/types/selecting-mode.d.ts +8 -0
- package/lib/types/snap-to-item-align.d.ts +8 -0
- package/lib/types/snapping-distance.d.ts +8 -0
- package/lib/{enums → types}/snapping-method.d.ts +1 -1
- package/lib/types/spreading-mode.d.ts +8 -0
- package/lib/{enums → types}/text-direction.d.ts +1 -1
- package/lib/utils/animator/animator.d.ts +10 -17
- package/lib/utils/animator/const/index.d.ts +1 -0
- package/lib/utils/animator/index.d.ts +2 -1
- package/lib/utils/animator/interfaces/animator-params.d.ts +18 -0
- package/lib/utils/animator/interfaces/animator-update-data.d.ts +13 -0
- package/lib/utils/animator/interfaces/index.d.ts +3 -0
- package/lib/utils/animator/types/easing.d.ts +6 -0
- package/lib/utils/get-scroll-state-version.d.ts +1 -0
- package/lib/utils/is-collapse-mode.d.ts +8 -0
- package/lib/utils/is-collection-mode.d.ts +1 -1
- package/lib/utils/is-direction.d.ts +1 -1
- package/lib/utils/is-persentage-value.d.ts +7 -0
- package/lib/utils/is-select-mode.d.ts +8 -0
- package/lib/utils/is-spreading-mode.d.ts +8 -0
- package/lib/utils/normalize-collection.d.ts +8 -0
- package/lib/utils/parse-arithmetic-expression.d.ts +8 -0
- package/lib/utils/parse-float-or-persentage-value.d.ts +7 -0
- package/lib/utils/scrolling-direction.d.ts +17 -0
- package/lib/utils/snapping-method.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/lib/components/ng-scroller/const/index.d.ts +0 -1
- package/lib/directives/item-click/item-click.module.d.ts +0 -8
- package/lib/enums/method-for-selecting.d.ts +0 -8
- package/lib/utils/is-method-for-selecting.d.ts +0 -8
|
@@ -3,15 +3,20 @@ import { ISize } from '../../../interfaces';
|
|
|
3
3
|
import { IRenderVirtualListItem } from '../../../models/render-item.model';
|
|
4
4
|
import { IDisplayObjectConfig, IDisplayObjectMeasures } from '../../../models';
|
|
5
5
|
import { ITemplateContext } from '../interfaces';
|
|
6
|
-
import { TextDirection } from '../../../
|
|
6
|
+
import { TextDirection } from '../../../types';
|
|
7
7
|
import { NgVirtualListService } from '../../../ng-virtual-list.service';
|
|
8
|
+
import { IBaseVirtualListItemComponent } from '../../../interfaces/base-virtual-list-item-component';
|
|
9
|
+
import { Color } from '../../../types';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
8
11
|
/**
|
|
9
12
|
* BaseVirtualListItemComponent
|
|
10
13
|
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/list-item/base/base-virtual-list-item-component.ts
|
|
11
14
|
* @author Evgenii Alexandrovich Grebennikov
|
|
12
15
|
* @email djonnyx@gmail.com
|
|
13
16
|
*/
|
|
14
|
-
export declare class BaseVirtualListItemComponent {
|
|
17
|
+
export declare class BaseVirtualListItemComponent implements IBaseVirtualListItemComponent {
|
|
18
|
+
protected _item: Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
19
|
+
protected _container: Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
15
20
|
private _apiService;
|
|
16
21
|
protected readonly _service: NgVirtualListService;
|
|
17
22
|
protected _id: number;
|
|
@@ -21,11 +26,14 @@ export declare class BaseVirtualListItemComponent {
|
|
|
21
26
|
protected _displayId: string;
|
|
22
27
|
get displayId(): string;
|
|
23
28
|
protected _isSelected: boolean;
|
|
29
|
+
set isSelected(v: boolean);
|
|
30
|
+
get isSelected(): boolean;
|
|
24
31
|
protected _isCollapsed: boolean;
|
|
25
32
|
protected readonly config: import("@angular/core").WritableSignal<IDisplayObjectConfig>;
|
|
26
33
|
protected readonly measures: import("@angular/core").WritableSignal<IDisplayObjectMeasures | null>;
|
|
27
34
|
protected readonly focused: import("@angular/core").WritableSignal<boolean>;
|
|
28
35
|
protected readonly part: import("@angular/core").WritableSignal<string>;
|
|
36
|
+
protected readonly fxPart: import("@angular/core").WritableSignal<string>;
|
|
29
37
|
protected readonly data: import("@angular/core").WritableSignal<IRenderVirtualListItem<any> | null>;
|
|
30
38
|
protected _data: IRenderVirtualListItem | null;
|
|
31
39
|
set item(v: IRenderVirtualListItem | null);
|
|
@@ -35,12 +43,15 @@ export declare class BaseVirtualListItemComponent {
|
|
|
35
43
|
protected readonly index: Signal<number>;
|
|
36
44
|
protected readonly templateContext: Signal<ITemplateContext>;
|
|
37
45
|
regular: boolean;
|
|
46
|
+
protected _blendColor: Color | null;
|
|
38
47
|
protected _scrollBarSize: number;
|
|
39
48
|
protected _langTextDir: TextDirection;
|
|
40
49
|
protected _regularLength: string;
|
|
41
50
|
set regularLength(v: string);
|
|
42
51
|
get item(): IRenderVirtualListItem | null;
|
|
43
52
|
get itemId(): import("ng-virtual-list").Id | undefined;
|
|
53
|
+
get zIndex(): string;
|
|
54
|
+
get visibility(): string;
|
|
44
55
|
protected readonly itemRenderer: import("@angular/core").WritableSignal<TemplateRef<any> | undefined>;
|
|
45
56
|
protected _renderer: TemplateRef<any> | undefined;
|
|
46
57
|
set renderer(v: TemplateRef<any> | undefined);
|
|
@@ -52,7 +63,10 @@ export declare class BaseVirtualListItemComponent {
|
|
|
52
63
|
protected updateConfig(v: IRenderVirtualListItem<any> | null): void;
|
|
53
64
|
protected update(): void;
|
|
54
65
|
protected updatePartStr(v: IRenderVirtualListItem | null, isSelected: boolean, isCollapsed: boolean): void;
|
|
66
|
+
protected hasFocus(): boolean;
|
|
55
67
|
getBounds(): ISize;
|
|
56
68
|
show(): void;
|
|
57
69
|
hide(): void;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseVirtualListItemComponent, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseVirtualListItemComponent, "ng-base-virtual-list-item", never, {}, {}, never, never, false, never>;
|
|
58
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ID = "id",
|
|
1
|
+
export declare const ID = "id", NGVL_VISIBILITY = "ngvl-visibility", MATRIX_3D_HIDDEN: string, ATTR_AREA_SELECTED = "area-selected", POSITION = "position", POSITION_ZERO = "0", ITEM_ID = "item-id", KEY_SPACE = " ", KEY_ARR_LEFT = "ArrowLeft", KEY_ARR_UP = "ArrowUp", KEY_ARR_RIGHT = "ArrowRight", KEY_ARR_DOWN = "ArrowDown", EVENT_FOCUS_IN = "focusin", EVENT_FOCUS_OUT = "focusout", EVENT_KEY_DOWN = "keydown", CLASS_NAME_SNAPPED = "snapped", CLASS_NAME_SNAPPED_OUT = "snapped-out", CLASS_NAME_FOCUS = "focus";
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Virtual list component.
|
|
7
7
|
* Maximum performance for extremely large lists.
|
|
8
8
|
* It is based on algorithms for virtualization of screen objects.
|
|
9
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/list-item/ng-virtual-list-item.component.ts
|
|
9
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-list-item/ng-virtual-list-item.component.ts
|
|
10
10
|
* @author Evgenii Alexandrovich Grebennikov
|
|
11
11
|
* @email djonnyx@gmail.com
|
|
12
12
|
*/
|
|
@@ -16,6 +16,7 @@ export declare class NgVirtualListItemComponent extends BaseVirtualListItemCompo
|
|
|
16
16
|
constructor();
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
private keyKode;
|
|
19
|
+
private getNavigationTimeout;
|
|
19
20
|
private toNextItem;
|
|
20
21
|
private toPrevItem;
|
|
21
22
|
private focusNext;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./ng-virtual-list-item.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../../directives/
|
|
4
|
+
import * as i3 from "../../directives/virtual-click/virtual-click.module";
|
|
5
5
|
export declare class NgVirtualListItemModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgVirtualListItemModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgVirtualListItemModule, [typeof i1.NgVirtualListItemComponent], [typeof i2.CommonModule, typeof i3.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgVirtualListItemModule, [typeof i1.NgVirtualListItemComponent], [typeof i2.CommonModule, typeof i3.VirtualClickModule], [typeof i1.NgVirtualListItemComponent]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgVirtualListItemModule>;
|
|
9
9
|
}
|
|
@@ -1 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* createDisplayId
|
|
3
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-list-item/utils/create-display-id.ts
|
|
4
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
5
|
+
* @email djonnyx@gmail.com
|
|
6
|
+
*/
|
|
1
7
|
export declare const createDisplayId: (listId: number, id: number) => string;
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
export declare const NGVL_INDEX = "ngvl-index",
|
|
1
|
+
export declare const NGVL_INDEX = "ngvl-index",
|
|
2
|
+
/**
|
|
3
|
+
* getListElementByIndex
|
|
4
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-list-item/utils/get-element-by-index.ts
|
|
5
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
6
|
+
* @email djonnyx@gmail.com
|
|
7
|
+
*/
|
|
8
|
+
getListElementByIndex: (index: number) => string,
|
|
9
|
+
/**
|
|
10
|
+
* getListElements
|
|
11
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-list-item/utils/get-element-by-index.ts
|
|
12
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
13
|
+
* @email djonnyx@gmail.com
|
|
14
|
+
*/
|
|
15
|
+
getListElements: () => string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { getListElementByIndex, getListElements, NGVL_INDEX } from './get-element-by-index';
|
|
2
2
|
import { createDisplayId } from './create-display-id';
|
|
3
|
-
|
|
3
|
+
import { matrix3d } from './matrix-3d';
|
|
4
|
+
export { createDisplayId, getListElementByIndex, getListElements, matrix3d, NGVL_INDEX, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* matrix3d
|
|
3
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-list-item/utils/matrix-3d.ts
|
|
4
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
5
|
+
* @email djonnyx@gmail.com
|
|
6
|
+
*/
|
|
7
|
+
export declare const matrix3d: (x: number, y: number, z: number, scaleX: number, scaleY: number, scaleZ: number, rotationX: number, rotationY: number, rotationZ: number) => string;
|
|
@@ -5,13 +5,13 @@ import { IVirtualListCollection } from "../../../../models";
|
|
|
5
5
|
import { PrerenderCache } from "../../types/cache";
|
|
6
6
|
import { BaseVirtualListItemComponent } from "../../../ng-list-item/base";
|
|
7
7
|
import { Component$1 } from "../../../../models/component.model";
|
|
8
|
-
import { Direction } from "../../../../
|
|
8
|
+
import { Direction } from "../../../../types";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* NgPrerenderList
|
|
12
12
|
* Maximum performance for extremely large lists.
|
|
13
13
|
* It is based on algorithms for virtualization of screen objects.
|
|
14
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/prerender-container/components/prerender-list/prerender-list.component.ts
|
|
14
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-prerender-container/components/ng-prerender-list/ng-prerender-list.component.ts
|
|
15
15
|
* @author Evgenii Alexandrovich Grebennikov
|
|
16
16
|
* @email djonnyx@gmail.com
|
|
17
17
|
*/
|
|
@@ -27,6 +27,7 @@ export declare class NgPrerenderList implements OnDestroy {
|
|
|
27
27
|
dynamic: import("@angular/core").InputSignal<boolean>;
|
|
28
28
|
itemSize: import("@angular/core").InputSignal<number>;
|
|
29
29
|
trackBy: import("@angular/core").InputSignal<string>;
|
|
30
|
+
divides: import("@angular/core").InputSignal<number>;
|
|
30
31
|
itemRenderer: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
31
32
|
itemComponentClass: import("@angular/core").InputSignal<Component$1<BaseVirtualListItemComponent>>;
|
|
32
33
|
protected _items: import("@angular/core").WritableSignal<IVirtualListCollection<Object> | null>;
|
|
@@ -57,5 +58,5 @@ export declare class NgPrerenderList implements OnDestroy {
|
|
|
57
58
|
ngOnDestroy(): void;
|
|
58
59
|
dispose(): void;
|
|
59
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgPrerenderList, never>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgPrerenderList, "ng-prerender-list", never, { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "isVertical": { "alias": "isVertical"; "required": false; "isSignal": true; }; "scrollbarEnabled": { "alias": "scrollbarEnabled"; "required": false; "isSignal": true; }; "startOffset": { "alias": "startOffset"; "required": false; "isSignal": true; }; "endOffset": { "alias": "endOffset"; "required": false; "isSignal": true; }; "bounds": { "alias": "bounds"; "required": true; "isSignal": true; }; "dynamic": { "alias": "dynamic"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "itemRenderer": { "alias": "itemRenderer"; "required": false; "isSignal": true; }; "itemComponentClass": { "alias": "itemComponentClass"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgPrerenderList, "ng-prerender-list", never, { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "isVertical": { "alias": "isVertical"; "required": false; "isSignal": true; }; "scrollbarEnabled": { "alias": "scrollbarEnabled"; "required": false; "isSignal": true; }; "startOffset": { "alias": "startOffset"; "required": false; "isSignal": true; }; "endOffset": { "alias": "endOffset"; "required": false; "isSignal": true; }; "bounds": { "alias": "bounds"; "required": true; "isSignal": true; }; "dynamic": { "alias": "dynamic"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "divides": { "alias": "divides"; "required": false; "isSignal": true; }; "itemRenderer": { "alias": "itemRenderer"; "required": false; "isSignal": true; }; "itemComponentClass": { "alias": "itemComponentClass"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
61
62
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NgVirtualListItemComponent } from '../../../ng-list-item/ng-virtual-list-item.component';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* NgPrerenderVirtualListItemComponent
|
|
5
5
|
* Maximum performance for extremely large lists.
|
|
6
6
|
* It is based on algorithms for virtualization of screen objects.
|
|
7
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-prerender-container/components/ng-prerender-list-item.component.ts
|
|
7
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-prerender-container/components/ng-prerender-list-item/ng-prerender-list-item.component.ts
|
|
8
8
|
* @author Evgenii Alexandrovich Grebennikov
|
|
9
9
|
* @email djonnyx@gmail.com
|
|
10
10
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./ng-prerender-list-item.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../../../../directives/
|
|
4
|
+
import * as i3 from "../../../../directives/virtual-click/virtual-click.module";
|
|
5
5
|
export declare class NgPrerenderVirtualListItemModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgPrerenderVirtualListItemModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgPrerenderVirtualListItemModule, [typeof i1.NgPrerenderVirtualListItemComponent], [typeof i2.CommonModule, typeof i3.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgPrerenderVirtualListItemModule, [typeof i1.NgPrerenderVirtualListItemComponent], [typeof i2.CommonModule, typeof i3.VirtualClickModule], [typeof i1.NgPrerenderVirtualListItemComponent]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgPrerenderVirtualListItemModule>;
|
|
9
9
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Signal } from '@angular/core';
|
|
2
|
-
import { TextDirection } from '../../../../
|
|
2
|
+
import { TextDirection } from '../../../../types';
|
|
3
3
|
import { BaseScrollView } from '../../../ng-scroll-view/base/base-scroll-view.component';
|
|
4
4
|
import { NgScrollBarComponent } from '../../../ng-scroll-bar/ng-scroll-bar.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* NgPrerenderScrollerComponent
|
|
8
8
|
* Maximum performance for extremely large lists.
|
|
9
9
|
* It is based on algorithms for virtualization of screen objects.
|
|
10
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/prerender-container/prerender-scroller/prerender-scroller.component.ts
|
|
10
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-prerender-container/components/ng-prerender-scroller/ng-prerender-scroller.component.ts
|
|
11
11
|
* @author Evgenii Alexandrovich Grebennikov
|
|
12
12
|
* @email djonnyx@gmail.com
|
|
13
13
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
2
3
|
import { ISize } from '../../interfaces';
|
|
3
4
|
import { IVirtualListCollection } from "../../models";
|
|
4
|
-
import { Direction } from "../../
|
|
5
|
-
import { Observable } from "rxjs";
|
|
5
|
+
import { Direction } from "../../types";
|
|
6
6
|
import { PrerenderCache } from "./types";
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* NgPrerenderContainer
|
|
10
10
|
* Maximum performance for extremely large lists.
|
|
11
11
|
* It is based on algorithms for virtualization of screen objects.
|
|
12
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/ng-prerender-container/ng-prerender-container.component.ts
|
|
12
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-prerender-container/ng-prerender-container.component.ts
|
|
13
13
|
* @author Evgenii Alexandrovich Grebennikov
|
|
14
14
|
* @email djonnyx@gmail.com
|
|
15
15
|
*/
|
|
@@ -25,6 +25,7 @@ export declare class NgPrerenderContainer {
|
|
|
25
25
|
dynamic: import("@angular/core").InputSignal<boolean>;
|
|
26
26
|
itemSize: import("@angular/core").InputSignal<number>;
|
|
27
27
|
trackBy: import("@angular/core").InputSignal<string>;
|
|
28
|
+
divides: import("@angular/core").InputSignal<number>;
|
|
28
29
|
itemRenderer: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
29
30
|
readonly $render: Observable<PrerenderCache>;
|
|
30
31
|
get active(): boolean;
|
|
@@ -33,5 +34,5 @@ export declare class NgPrerenderContainer {
|
|
|
33
34
|
on(items?: IVirtualListCollection | null): void;
|
|
34
35
|
off(): void;
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgPrerenderContainer, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgPrerenderContainer, "ng-prerender-container", never, { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "isVertical": { "alias": "isVertical"; "required": false; "isSignal": true; }; "scrollbarEnabled": { "alias": "scrollbarEnabled"; "required": false; "isSignal": true; }; "startOffset": { "alias": "startOffset"; "required": false; "isSignal": true; }; "endOffset": { "alias": "endOffset"; "required": false; "isSignal": true; }; "bounds": { "alias": "bounds"; "required": true; "isSignal": true; }; "dynamic": { "alias": "dynamic"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "itemRenderer": { "alias": "itemRenderer"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgPrerenderContainer, "ng-prerender-container", never, { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "isVertical": { "alias": "isVertical"; "required": false; "isSignal": true; }; "scrollbarEnabled": { "alias": "scrollbarEnabled"; "required": false; "isSignal": true; }; "startOffset": { "alias": "startOffset"; "required": false; "isSignal": true; }; "endOffset": { "alias": "endOffset"; "required": false; "isSignal": true; }; "bounds": { "alias": "bounds"; "required": true; "isSignal": true; }; "dynamic": { "alias": "dynamic"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "divides": { "alias": "divides"; "required": false; "isSignal": true; }; "itemRenderer": { "alias": "itemRenderer"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
37
38
|
}
|
|
@@ -3,6 +3,7 @@ import { GradientColorPositions } from '../../types/gradient-color-positions';
|
|
|
3
3
|
import { NgScrollView } from '../ng-scroll-view';
|
|
4
4
|
import { IScrollBarDragEvent, IScrollBarTemplateContext } from './interfaces';
|
|
5
5
|
import { NgScrollBarService } from './ng-scroll-bar.service';
|
|
6
|
+
import { TextDirection } from '../../types';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* ScrollBar component.
|
|
@@ -14,7 +15,7 @@ import * as i0 from "@angular/core";
|
|
|
14
15
|
*/
|
|
15
16
|
export declare class NgScrollBarComponent extends NgScrollView {
|
|
16
17
|
protected _defaultRenderer: Signal<TemplateRef<any> | undefined>;
|
|
17
|
-
protected
|
|
18
|
+
protected _scrollBarService: NgScrollBarService;
|
|
18
19
|
private _apiService;
|
|
19
20
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
20
21
|
readonly onDrag: import("@angular/core").OutputEmitterRef<IScrollBarDragEvent>;
|
|
@@ -24,7 +25,9 @@ export declare class NgScrollBarComponent extends NgScrollView {
|
|
|
24
25
|
readonly thickness: import("@angular/core").InputSignal<number>;
|
|
25
26
|
readonly scrollbarMinSize: import("@angular/core").InputSignal<number>;
|
|
26
27
|
readonly prepared: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
readonly langTextDir: import("@angular/core").InputSignal<TextDirection>;
|
|
27
29
|
readonly interactive: import("@angular/core").InputSignal<boolean>;
|
|
30
|
+
readonly overlapping: import("@angular/core").InputSignal<boolean>;
|
|
28
31
|
readonly show: import("@angular/core").InputSignal<boolean>;
|
|
29
32
|
readonly params: import("@angular/core").InputSignal<{
|
|
30
33
|
[propName: string]: any;
|
|
@@ -47,5 +50,5 @@ export declare class NgScrollBarComponent extends NgScrollView {
|
|
|
47
50
|
private thumbHit;
|
|
48
51
|
click(event: PointerEvent | MouseEvent): void;
|
|
49
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgScrollBarComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgScrollBarComponent, "ng-scroll-bar", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "thumbGradientPositions": { "alias": "thumbGradientPositions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "scrollbarMinSize": { "alias": "scrollbarMinSize"; "required": false; "isSignal": true; }; "prepared": { "alias": "prepared"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "show": { "alias": "show"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; "renderer": { "alias": "renderer"; "required": false; "isSignal": true; }; }, { "onDrag": "onDrag"; "onDragEnd": "onDragEnd"; }, never, never, false, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgScrollBarComponent, "ng-scroll-bar", never, { "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "thumbGradientPositions": { "alias": "thumbGradientPositions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "scrollbarMinSize": { "alias": "scrollbarMinSize"; "required": false; "isSignal": true; }; "prepared": { "alias": "prepared"; "required": false; "isSignal": true; }; "langTextDir": { "alias": "langTextDir"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "overlapping": { "alias": "overlapping"; "required": false; "isSignal": true; }; "show": { "alias": "show"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; "renderer": { "alias": "renderer"; "required": false; "isSignal": true; }; }, { "onDrag": "onDrag"; "onDragEnd": "onDragEnd"; }, never, never, false, never>;
|
|
51
54
|
}
|
|
@@ -17,8 +17,13 @@ export declare class BaseScrollView {
|
|
|
17
17
|
readonly direction: import("@angular/core").InputSignal<ScrollerDirections>;
|
|
18
18
|
readonly startOffset: import("@angular/core").InputSignal<number>;
|
|
19
19
|
readonly endOffset: import("@angular/core").InputSignal<number>;
|
|
20
|
+
readonly alignmentStartOffset: import("@angular/core").InputSignal<number>;
|
|
21
|
+
readonly alignmentEndOffset: import("@angular/core").InputSignal<number>;
|
|
22
|
+
readonly isInfinity: import("@angular/core").InputSignal<boolean>;
|
|
20
23
|
readonly isVertical: Signal<boolean>;
|
|
21
24
|
readonly grabbing: import("@angular/core").WritableSignal<boolean>;
|
|
25
|
+
protected _inversion: boolean;
|
|
26
|
+
protected _overscrollEnabled: boolean;
|
|
22
27
|
protected _$updateScrollBar: Subject<void>;
|
|
23
28
|
protected $updateScrollBar: import("rxjs").Observable<void>;
|
|
24
29
|
get scrollable(): boolean;
|
|
@@ -34,6 +39,10 @@ export declare class BaseScrollView {
|
|
|
34
39
|
protected _actualTotalSize: number;
|
|
35
40
|
protected _totalSize: number;
|
|
36
41
|
set totalSize(v: number);
|
|
42
|
+
get totalSize(): number;
|
|
43
|
+
protected _startLayoutOffset: number;
|
|
44
|
+
set startLayoutOffset(v: number);
|
|
45
|
+
get startLayoutOffset(): number;
|
|
37
46
|
get actualScrollHeight(): number;
|
|
38
47
|
get actualScrollWidth(): number;
|
|
39
48
|
protected _actualX: number;
|
|
@@ -46,11 +55,13 @@ export declare class BaseScrollView {
|
|
|
46
55
|
get scrollHeight(): number;
|
|
47
56
|
readonly viewportBounds: import("@angular/core").WritableSignal<ISize>;
|
|
48
57
|
readonly contentBounds: import("@angular/core").WritableSignal<ISize>;
|
|
49
|
-
protected
|
|
58
|
+
protected _isCoordinatesOverrided: boolean;
|
|
50
59
|
constructor();
|
|
51
60
|
tick(): void;
|
|
61
|
+
protected overrideCoordinates(x: number, y: number): void;
|
|
62
|
+
protected normalizeScrollSize(): boolean;
|
|
52
63
|
protected onResizeViewport(): void;
|
|
53
|
-
protected onResizeContent(): void;
|
|
64
|
+
protected onResizeContent(value?: number | null): void;
|
|
54
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseScrollView, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseScrollView, "base-scroll-view", never, { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "startOffset": { "alias": "startOffset"; "required": false; "isSignal": true; }; "endOffset": { "alias": "endOffset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseScrollView, "base-scroll-view", never, { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "startOffset": { "alias": "startOffset"; "required": false; "isSignal": true; }; "endOffset": { "alias": "endOffset"; "required": false; "isSignal": true; }; "alignmentStartOffset": { "alias": "alignmentStartOffset"; "required": false; "isSignal": true; }; "alignmentEndOffset": { "alias": "alignmentEndOffset"; "required": false; "isSignal": true; }; "isInfinity": { "alias": "isInfinity"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
56
67
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from "@angular/core";
|
|
2
2
|
export declare const SCROLL_VIEW_INVERSION: InjectionToken<boolean>;
|
|
3
|
+
export declare const SCROLL_VIEW_OVERSCROLL_ENABLED: InjectionToken<boolean>;
|
|
3
4
|
export declare const SCROLL_VIEW_NORMALIZE_VALUE_FROM_ZERO: InjectionToken<boolean>;
|
|
4
|
-
export declare const TOP = "top", LEFT = "left", INSTANT = "instant", AUTO = "auto", SMOOTH = "smooth", DURATION = 2000, FRICTION_FORCE = 0.035, MAX_DURATION = 4000, ANIMATION_DURATION = 50, MASS = 0.005, MAX_DIST = 12500, MAX_VELOCITY_TIMESTAMP = 100, SPEED_SCALE = 15, OVERSCROLL_START_ITERATION = 2;
|
|
5
|
+
export declare const TOP = "top", LEFT = "left", INSTANT = "instant", AUTO = "auto", SMOOTH = "smooth", DURATION = 2000, FRICTION_FORCE = 0.035, MAX_DURATION = 4000, ANIMATION_DURATION = 50, MASS = 0.005, MAX_DIST = 12500, MAX_VELOCITY_TIMESTAMP = 100, SPEED_SCALE = 15, OVERSCROLL_START_ITERATION = 2, INTERSECTION_DISTANCE = 1;
|
|
6
|
+
export declare const MAX_ITERATIONS_FOR_AVERAGE_CALCULATIONS = 5, INSTANT_VELOCITY_SCALE = 1000;
|
|
5
7
|
export declare const SCROLL_EVENT: Event;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { CdkScrollable } from '@angular/cdk/scrolling';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
2
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
3
3
|
import { Animator, Easing } from '../../utils/animator';
|
|
4
4
|
import { IScrollToParams } from './interfaces';
|
|
5
5
|
import { BaseScrollView } from './base/base-scroll-view.component';
|
|
6
|
-
import { IScrollingSettings } from '../../interfaces';
|
|
6
|
+
import { IAnimationParams, IScrollingSettings } from '../../interfaces';
|
|
7
|
+
import { NgVirtualListService } from '../../ng-virtual-list.service';
|
|
8
|
+
import { Id, SnappingDistance, SnapToItemAlign } from '../../types';
|
|
9
|
+
import { ScrollingDirection } from '../../utils/scrolling-direction';
|
|
7
10
|
import * as i0 from "@angular/core";
|
|
8
11
|
/**
|
|
9
12
|
* NgScrollView
|
|
@@ -15,42 +18,82 @@ import * as i0 from "@angular/core";
|
|
|
15
18
|
*/
|
|
16
19
|
export declare class NgScrollView extends BaseScrollView {
|
|
17
20
|
readonly cdkScrollable: CdkScrollable | undefined;
|
|
21
|
+
protected _service: NgVirtualListService;
|
|
18
22
|
readonly scrollBehavior: import("@angular/core").InputSignal<ScrollBehavior>;
|
|
19
23
|
readonly overscrollEnabled: import("@angular/core").InputSignal<boolean>;
|
|
20
24
|
readonly scrollingSettings: import("@angular/core").InputSignal<IScrollingSettings>;
|
|
25
|
+
readonly snapToItem: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
readonly scrollingOneByOne: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
readonly snapToItemAlign: import("@angular/core").InputSignal<SnapToItemAlign>;
|
|
28
|
+
readonly snappingDistance: import("@angular/core").InputSignal<SnappingDistance>;
|
|
29
|
+
readonly animationParams: import("@angular/core").InputSignal<IAnimationParams>;
|
|
21
30
|
protected _normalizeValueFromZero: boolean;
|
|
31
|
+
protected _isScrollsTo: boolean;
|
|
32
|
+
protected _scrollDirection: ScrollingDirection;
|
|
33
|
+
get scrollDirection(): import("ng-virtual-list").ScrollDirection;
|
|
34
|
+
get $scrollDirection(): import("rxjs").Observable<import("ng-virtual-list").ScrollDirection>;
|
|
35
|
+
protected _$wheel: Subject<number>;
|
|
36
|
+
readonly $wheel: import("rxjs").Observable<number>;
|
|
22
37
|
protected _$scroll: Subject<boolean>;
|
|
23
38
|
readonly $scroll: import("rxjs").Observable<boolean>;
|
|
24
39
|
protected _$scrollEnd: Subject<boolean>;
|
|
25
40
|
readonly $scrollEnd: import("rxjs").Observable<boolean>;
|
|
41
|
+
protected _velocities: Array<number>;
|
|
42
|
+
protected _$velocity: BehaviorSubject<number>;
|
|
43
|
+
protected $velocity: import("rxjs").Observable<number>;
|
|
44
|
+
get velocity(): number;
|
|
45
|
+
protected _$averageVelocity: BehaviorSubject<number>;
|
|
46
|
+
protected $averageVelocity: import("rxjs").Observable<number>;
|
|
47
|
+
get averageVelocity(): number;
|
|
48
|
+
private _measureVelocityTimestamp;
|
|
49
|
+
private _measureVelocityLastPosition;
|
|
26
50
|
private _startPosition;
|
|
27
51
|
protected _animator: Animator;
|
|
28
52
|
protected _interactive: boolean;
|
|
29
53
|
private _overscrollIteration;
|
|
54
|
+
set x(v: number);
|
|
55
|
+
get x(): number;
|
|
56
|
+
protected setX(x: number, snap?: boolean, normalize?: boolean): void;
|
|
57
|
+
set y(v: number);
|
|
58
|
+
get y(): number;
|
|
59
|
+
protected setY(y: number, snap?: boolean, normalize?: boolean): void;
|
|
60
|
+
protected _delta: number;
|
|
30
61
|
set delta(v: number);
|
|
62
|
+
set startLayoutOffset(v: number);
|
|
63
|
+
get startLayoutOffset(): number;
|
|
64
|
+
protected _intersectionComponentId: Id | null;
|
|
65
|
+
protected _isAlignmentAnimation: boolean;
|
|
31
66
|
constructor();
|
|
67
|
+
protected updateDirection(position: number, prePosition: number): void;
|
|
68
|
+
protected overrideCoordinates(x: number, y: number): void;
|
|
69
|
+
protected measureVelocity(): void;
|
|
70
|
+
protected stopMoving(): void;
|
|
71
|
+
private snapIfNecessary;
|
|
72
|
+
protected snapWithInitialForceIfNecessary(v0?: number | null, animated?: boolean, force?: boolean): boolean;
|
|
32
73
|
private calculatePosition;
|
|
33
74
|
private cancelOverscroll;
|
|
34
75
|
private checkOverscrollByAxis;
|
|
35
76
|
private checkOverscroll;
|
|
36
77
|
private calculateVelocity;
|
|
37
78
|
private calculateAcceleration;
|
|
38
|
-
stopScrolling(): void;
|
|
79
|
+
stopScrolling(force?: boolean): void;
|
|
39
80
|
protected move(isVertical: boolean, position: number, blending?: boolean, userAction?: boolean, fireUpdate?: boolean): void;
|
|
40
81
|
protected moveWithAcceleration(isVertical: boolean, position: number, v0: number, v: number, a0: number, timestamp: number): void;
|
|
41
82
|
protected normalizeValue(value: number): number;
|
|
42
|
-
protected animate(startValue: number, endValue: number, duration?: number, easingFunction?: Easing, userAction?: boolean): void;
|
|
83
|
+
protected animate(startValue: number, endValue: number, duration?: number, easingFunction?: Easing, userAction?: boolean, alignmentAtComplete?: boolean, skipOverridedCoordinates?: boolean): void;
|
|
84
|
+
protected getSnappedComponentSize(): number | null;
|
|
85
|
+
protected alignPosition(animated?: boolean, force?: boolean): boolean;
|
|
86
|
+
protected checkIntersectionComponent(): void;
|
|
43
87
|
protected onAnimationComplete(position: number): void;
|
|
44
88
|
fireScroll(userAction?: boolean): void;
|
|
45
|
-
scrollLimits(value?: number | undefined): boolean;
|
|
89
|
+
scrollLimits(value?: number | undefined, silent?: boolean): boolean;
|
|
46
90
|
scroll(params: IScrollToParams): void;
|
|
47
91
|
protected emitScrollableEvent(): void;
|
|
48
|
-
|
|
49
|
-
refreshY(value: number): void;
|
|
92
|
+
refreshCoordinate(x: number, y: number): void;
|
|
50
93
|
protected fireScrollEvent(userAction: boolean): void;
|
|
51
94
|
protected onDragStart(): void;
|
|
52
95
|
reset(offset?: number): void;
|
|
53
96
|
ngOnDestroy(): void;
|
|
54
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgScrollView, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵ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; }; }, {}, never, never, true, never>;
|
|
98
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
56
99
|
}
|
|
@@ -1 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* calculateDirection
|
|
3
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/utils/calculate-direction.ts
|
|
4
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
5
|
+
* @email djonnyx@gmail.com
|
|
6
|
+
*/
|
|
1
7
|
export declare const calculateDirection: (buffer: Array<[number, number]>) => number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* calculateVelocity
|
|
3
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/utils/calculate-velocity.ts
|
|
4
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
5
|
+
* @email djonnyx@gmail.com
|
|
6
|
+
*/
|
|
7
|
+
export declare const calculateVelocity: (startPosition: number, currentPosition: number, timestamp: number) => number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* getDir
|
|
3
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/utils/get-dir.ts
|
|
4
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
5
|
+
* @email djonnyx@gmail.com
|
|
6
|
+
*/
|
|
7
|
+
export declare const getDir: (p: number, c: number) => 1 | -1 | 0;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { calculateDirection } from "./calculate-direction";
|
|
2
2
|
import { ScrollBox } from "./scroll-box";
|
|
3
|
-
|
|
3
|
+
import { matrix3d } from "./matrix-3d";
|
|
4
|
+
import { getDir } from "./get-dir";
|
|
5
|
+
export { calculateDirection, getDir, matrix3d, ScrollBox, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* matrix3d
|
|
3
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/utils/matrix-3d.ts
|
|
4
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
5
|
+
* @email djonnyx@gmail.com
|
|
6
|
+
*/
|
|
7
|
+
export declare const matrix3d: (x: number, y: number) => string;
|