ng-virtual-list 17.3.2 → 17.4.1
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 +9 -8
- package/esm2022/lib/components/ng-virtual-list-item.component.mjs +4 -4
- package/esm2022/lib/const/index.mjs +3 -2
- package/esm2022/lib/models/base-virtual-list-item-component.mjs +1 -1
- package/esm2022/lib/models/index.mjs +2 -3
- package/esm2022/lib/ng-virtual-list.component.mjs +38 -14
- package/esm2022/lib/utils/buffer-interpolation.mjs +27 -0
- package/esm2022/lib/utils/index.mjs +2 -6
- package/esm2022/lib/utils/trackBox.mjs +63 -13
- package/esm2022/lib/utils/tracker.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ng-virtual-list.mjs +309 -209
- package/fesm2022/ng-virtual-list.mjs.map +1 -1
- package/lib/components/ng-virtual-list-item.component.d.ts +9 -9
- package/lib/const/index.d.ts +2 -1
- package/lib/models/base-virtual-list-item-component.d.ts +0 -1
- package/lib/models/index.d.ts +1 -4
- package/lib/ng-virtual-list.component.d.ts +61 -51
- package/lib/utils/buffer-interpolation.d.ts +5 -0
- package/lib/utils/index.d.ts +3 -6
- package/lib/utils/trackBox.d.ts +20 -2
- package/lib/utils/tracker.d.ts +11 -4
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { IRenderVirtualListItem } from '../models/render-item.model';
|
|
3
3
|
import { ISize } from '../types';
|
|
4
|
-
import { BaseVirtualListItemComponent } from '../models';
|
|
4
|
+
import { BaseVirtualListItemComponent } from '../models/base-virtual-list-item-component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Virtual list item component
|
|
@@ -10,24 +10,24 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* @email djonnyx@gmail.com
|
|
11
11
|
*/
|
|
12
12
|
export declare class NgVirtualListItemComponent extends BaseVirtualListItemComponent {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
private static __nextId;
|
|
14
|
+
private _id;
|
|
15
15
|
get id(): number;
|
|
16
|
-
|
|
16
|
+
private _cdr;
|
|
17
17
|
regular: boolean;
|
|
18
18
|
data: import("@angular/core").WritableSignal<IRenderVirtualListItem | undefined>;
|
|
19
|
-
|
|
19
|
+
private _data;
|
|
20
20
|
set item(v: IRenderVirtualListItem | undefined);
|
|
21
|
-
|
|
21
|
+
private _regularLength;
|
|
22
22
|
set regularLength(v: string);
|
|
23
23
|
get item(): IRenderVirtualListItem | undefined;
|
|
24
24
|
get itemId(): import("../types").Id | undefined;
|
|
25
25
|
itemRenderer: import("@angular/core").WritableSignal<TemplateRef<any> | undefined>;
|
|
26
26
|
set renderer(v: TemplateRef<any> | undefined);
|
|
27
|
-
|
|
27
|
+
private _elementRef;
|
|
28
28
|
get element(): HTMLElement;
|
|
29
29
|
constructor();
|
|
30
|
-
|
|
30
|
+
private update;
|
|
31
31
|
getBounds(): ISize;
|
|
32
32
|
show(): void;
|
|
33
33
|
hide(): void;
|
package/lib/const/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SnappingMethods } from "../enums";
|
|
2
2
|
import { Directions } from "../enums/directions";
|
|
3
3
|
export declare const DEFAULT_ITEM_SIZE = 24;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const DEFAULT_BUFFER_SIZE = 2;
|
|
5
|
+
export declare const DEFAULT_MAX_BUFFER_SIZE = 100;
|
|
5
6
|
export declare const DEFAULT_LIST_SIZE = 400;
|
|
6
7
|
export declare const DEFAULT_SNAP = false;
|
|
7
8
|
export declare const DEFAULT_ENABLED_BUFFER_OPTIMIZATION = false;
|
|
@@ -18,7 +18,6 @@ export declare abstract class BaseVirtualListItemComponent {
|
|
|
18
18
|
abstract itemRenderer: WritableSignal<TemplateRef<any> | undefined>;
|
|
19
19
|
abstract set renderer(v: TemplateRef<any> | undefined);
|
|
20
20
|
abstract get element(): HTMLElement;
|
|
21
|
-
protected abstract update(): void;
|
|
22
21
|
abstract getBounds(): ISize;
|
|
23
22
|
abstract show(): void;
|
|
24
23
|
abstract hide(): void;
|
package/lib/models/index.d.ts
CHANGED
|
@@ -3,7 +3,4 @@ import { IScrollEvent } from './scroll-event.model';
|
|
|
3
3
|
import { IVirtualListItem } from './item.model';
|
|
4
4
|
import { IVirtualListStickyMap } from './sticky-map.model';
|
|
5
5
|
import { IVirtualListCollection } from './collection.model';
|
|
6
|
-
|
|
7
|
-
import { Component$1 } from './component.model';
|
|
8
|
-
export type { ScrollDirection, IScrollEvent, IVirtualListItem, IVirtualListStickyMap, IVirtualListCollection, Component$1, };
|
|
9
|
-
export { BaseVirtualListItemComponent, };
|
|
6
|
+
export type { ScrollDirection, IScrollEvent, IVirtualListItem, IVirtualListStickyMap, IVirtualListCollection, };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { IScrollEvent, IVirtualListCollection, IVirtualListStickyMap } from './models';
|
|
4
4
|
import { Id, ISize } from './types';
|
|
5
|
-
import { IRenderVirtualListCollection } from './models/render-collection.model';
|
|
6
5
|
import { Direction, SnappingMethod } from './enums';
|
|
7
|
-
import { TrackBox } from './utils';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
/**
|
|
10
8
|
* Virtual list component.
|
|
@@ -15,17 +13,17 @@ import * as i0 from "@angular/core";
|
|
|
15
13
|
* @email djonnyx@gmail.com
|
|
16
14
|
*/
|
|
17
15
|
export declare class NgVirtualListComponent implements AfterViewInit, OnInit, OnDestroy {
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
private static __nextId;
|
|
17
|
+
private _id;
|
|
20
18
|
/**
|
|
21
19
|
* Readonly. Returns the unique identifier of the component.
|
|
22
20
|
*/
|
|
23
21
|
get id(): number;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
private _listContainerRef;
|
|
23
|
+
private _snapContainerRef;
|
|
24
|
+
private _snappedContainer;
|
|
25
|
+
private _container;
|
|
26
|
+
private _list;
|
|
29
27
|
/**
|
|
30
28
|
* Fires when the list has been scrolled.
|
|
31
29
|
*/
|
|
@@ -34,7 +32,7 @@ export declare class NgVirtualListComponent implements AfterViewInit, OnInit, On
|
|
|
34
32
|
* Fires when the list has completed scrolling.
|
|
35
33
|
*/
|
|
36
34
|
onScrollEnd: import("@angular/core").OutputEmitterRef<IScrollEvent>;
|
|
37
|
-
|
|
35
|
+
private _itemsOptions;
|
|
38
36
|
/**
|
|
39
37
|
* Collection of list items.
|
|
40
38
|
*/
|
|
@@ -54,13 +52,13 @@ export declare class NgVirtualListComponent implements AfterViewInit, OnInit, On
|
|
|
54
52
|
* Rendering element template.
|
|
55
53
|
*/
|
|
56
54
|
itemRenderer: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
57
|
-
|
|
55
|
+
private _itemRenderer;
|
|
58
56
|
/**
|
|
59
57
|
* Dictionary zIndex by id of the list element. If the value is not set or equal to 0,
|
|
60
58
|
* then a simple element is displayed, if the value is greater than 0, then the sticky position mode is enabled for the element.
|
|
61
59
|
*/
|
|
62
60
|
stickyMap: import("@angular/core").InputSignal<IVirtualListStickyMap>;
|
|
63
|
-
|
|
61
|
+
private _itemSizeOptions;
|
|
64
62
|
/**
|
|
65
63
|
* If direction = 'vertical', then the height of a typical element. If direction = 'horizontal', then the width of a typical element.
|
|
66
64
|
* Ignored if the dynamicSize property is true.
|
|
@@ -75,31 +73,44 @@ export declare class NgVirtualListComponent implements AfterViewInit, OnInit, On
|
|
|
75
73
|
* Determines the direction in which elements are placed. Default value is "vertical".
|
|
76
74
|
*/
|
|
77
75
|
direction: import("@angular/core").InputSignal<Direction>;
|
|
76
|
+
private _itemOffsetTransform;
|
|
78
77
|
/**
|
|
79
78
|
* Number of elements outside the scope of visibility. Default value is 2.
|
|
79
|
+
* @deprecated "itemOffset" parameter is deprecated. Use "bufferSize" and "maxBufferSize".
|
|
80
80
|
*/
|
|
81
81
|
itemsOffset: import("@angular/core").InputSignal<number>;
|
|
82
|
+
/**
|
|
83
|
+
* Number of elements outside the scope of visibility. Default value is 2.
|
|
84
|
+
*/
|
|
85
|
+
bufferSize: import("@angular/core").InputSignal<number>;
|
|
86
|
+
private _maxBufferSizeTransform;
|
|
87
|
+
/**
|
|
88
|
+
* Maximum number of elements outside the scope of visibility. Default value is 100.
|
|
89
|
+
* If maxBufferSize is set to be greater than bufferSize, then adaptive buffer mode is enabled.
|
|
90
|
+
* The greater the scroll size, the more elements are allocated for rendering.
|
|
91
|
+
*/
|
|
92
|
+
maxBufferSize: import("@angular/core").InputSignal<number>;
|
|
82
93
|
/**
|
|
83
94
|
* Snapping method.
|
|
84
95
|
* 'default' - Normal group rendering.
|
|
85
96
|
* 'advanced' - The group is rendered on a transparent background. List items below the group are not rendered.
|
|
86
97
|
*/
|
|
87
98
|
snappingMethod: import("@angular/core").InputSignal<SnappingMethod>;
|
|
88
|
-
|
|
99
|
+
private _isSnappingMethodAdvanced;
|
|
89
100
|
get isSnappingMethodAdvanced(): boolean;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
private _isVertical;
|
|
102
|
+
private _displayComponents;
|
|
103
|
+
private _snapedDisplayComponent;
|
|
104
|
+
private _bounds;
|
|
105
|
+
private _scrollSize;
|
|
106
|
+
private _resizeObserver;
|
|
107
|
+
private _resizeSnappedComponentHandler;
|
|
108
|
+
private _resizeSnappedObserver;
|
|
109
|
+
private _componentsResizeObserver;
|
|
110
|
+
private _onResizeHandler;
|
|
111
|
+
private _onScrollHandler;
|
|
112
|
+
private _elementRef;
|
|
113
|
+
private _initialized;
|
|
103
114
|
readonly $initialized: Observable<boolean>;
|
|
104
115
|
/**
|
|
105
116
|
* The name of the property by which tracking is performed
|
|
@@ -108,31 +119,30 @@ export declare class NgVirtualListComponent implements AfterViewInit, OnInit, On
|
|
|
108
119
|
/**
|
|
109
120
|
* Base class of the element component
|
|
110
121
|
*/
|
|
111
|
-
|
|
122
|
+
private _itemComponentClass;
|
|
112
123
|
/**
|
|
113
124
|
* Base class trackBox
|
|
114
125
|
*/
|
|
115
|
-
|
|
126
|
+
private _trackBoxClass;
|
|
116
127
|
/**
|
|
117
128
|
* Dictionary of element sizes by their id
|
|
118
129
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
130
|
+
private _trackBox;
|
|
131
|
+
private _onTrackBoxChangeHandler;
|
|
132
|
+
private _cacheVersion;
|
|
122
133
|
constructor();
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
protected resetRenderers(itemRenderer?: TemplateRef<HTMLElement>): void;
|
|
134
|
+
private onInit;
|
|
135
|
+
private listenCacheChangesIfNeed;
|
|
136
|
+
private getIsSnappingMethodAdvanced;
|
|
137
|
+
private getIsVertical;
|
|
138
|
+
private createDisplayComponentsIfNeed;
|
|
139
|
+
private updateRegularRenderer;
|
|
140
|
+
private resetRenderers;
|
|
131
141
|
/**
|
|
132
142
|
* Tracking by id
|
|
133
143
|
*/
|
|
134
|
-
|
|
135
|
-
|
|
144
|
+
private tracking;
|
|
145
|
+
private resetBoundsSize;
|
|
136
146
|
/**
|
|
137
147
|
* Returns the bounds of an element with a given id
|
|
138
148
|
*/
|
|
@@ -142,17 +152,17 @@ export declare class NgVirtualListComponent implements AfterViewInit, OnInit, On
|
|
|
142
152
|
* Behavior accepts the values "auto", "instant" and "smooth".
|
|
143
153
|
*/
|
|
144
154
|
scrollTo(id: Id, behavior?: ScrollBehavior): void;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
155
|
+
private _scrollToRepeatExecutionTimeout;
|
|
156
|
+
private clearScrollToRepeatExecutionTimeout;
|
|
157
|
+
private scrollToExecutor;
|
|
148
158
|
/**
|
|
149
159
|
* Scrolls the scroll area to the desired element with the specified ID.
|
|
150
160
|
*/
|
|
151
161
|
scrollToEnd(behavior?: ScrollBehavior): void;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
162
|
+
private _onContainerScrollHandler;
|
|
163
|
+
private _onContainerScrollEndHandler;
|
|
164
|
+
private afterViewInit;
|
|
165
|
+
private dispose;
|
|
156
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgVirtualListComponent, never>;
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgVirtualListComponent, "ng-virtual-list", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "snap": { "alias": "snap"; "required": false; "isSignal": true; }; "enabledBufferOptimization": { "alias": "enabledBufferOptimization"; "required": false; "isSignal": true; }; "itemRenderer": { "alias": "itemRenderer"; "required": true; "isSignal": true; }; "stickyMap": { "alias": "stickyMap"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "dynamicSize": { "alias": "dynamicSize"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "itemsOffset": { "alias": "itemsOffset"; "required": false; "isSignal": true; }; "snappingMethod": { "alias": "snappingMethod"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; }, { "onScroll": "onScroll"; "onScrollEnd": "onScrollEnd"; }, never, never, false, never>;
|
|
167
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgVirtualListComponent, "ng-virtual-list", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "snap": { "alias": "snap"; "required": false; "isSignal": true; }; "enabledBufferOptimization": { "alias": "enabledBufferOptimization"; "required": false; "isSignal": true; }; "itemRenderer": { "alias": "itemRenderer"; "required": true; "isSignal": true; }; "stickyMap": { "alias": "stickyMap"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "dynamicSize": { "alias": "dynamicSize"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "itemsOffset": { "alias": "itemsOffset"; "required": false; "isSignal": true; }; "bufferSize": { "alias": "bufferSize"; "required": false; "isSignal": true; }; "maxBufferSize": { "alias": "maxBufferSize"; "required": false; "isSignal": true; }; "snappingMethod": { "alias": "snappingMethod"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; }, { "onScroll": "onScroll"; "onScrollEnd": "onScrollEnd"; }, never, never, false, never>;
|
|
158
168
|
}
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { isDirection } from "./isDirection";
|
|
2
1
|
import { debounce } from "./debounce";
|
|
3
2
|
import { toggleClassName } from './toggleClassName';
|
|
4
|
-
import {
|
|
5
|
-
import { TrackBox, IUpdateCollectionReturns, TRACK_BOX_CHANGE_EVENT_NAME, IMetrics, IRecalculateMetricsOptions, IGetItemPositionOptions, IUpdateCollectionOptions, CacheMapEvents, OnChangeEventListener, CacheMapListeners, ItemDisplayMethods } from "./trackBox";
|
|
6
|
-
import { CMap, ICacheMap, CACHE_BOX_CHANGE_EVENT_NAME } from './cacheMap';
|
|
3
|
+
import { IMetrics } from "./trackBox";
|
|
7
4
|
import { ScrollEvent } from "./scrollEvent";
|
|
8
|
-
export {
|
|
9
|
-
export type {
|
|
5
|
+
export { debounce, toggleClassName, ScrollEvent, };
|
|
6
|
+
export type { IMetrics, };
|
package/lib/utils/trackBox.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import { CacheMap, CMap } from "./cacheMap";
|
|
|
5
5
|
import { Tracker } from "./tracker";
|
|
6
6
|
import { ISize } from "../types";
|
|
7
7
|
import { HEIGHT_PROP_NAME, WIDTH_PROP_NAME } from "../const";
|
|
8
|
-
import {
|
|
8
|
+
import { IVirtualListStickyMap } from "../models";
|
|
9
|
+
import { BaseVirtualListItemComponent } from "../models/base-virtual-list-item-component";
|
|
9
10
|
export declare const TRACK_BOX_CHANGE_EVENT_NAME = "change";
|
|
10
11
|
export interface IMetrics {
|
|
11
12
|
delta: number;
|
|
@@ -46,7 +47,8 @@ export interface IRecalculateMetricsOptions<I extends {
|
|
|
46
47
|
collection: C;
|
|
47
48
|
isVertical: boolean;
|
|
48
49
|
itemSize: number;
|
|
49
|
-
|
|
50
|
+
bufferSize: number;
|
|
51
|
+
maxBufferSize: number;
|
|
50
52
|
dynamicSize: boolean;
|
|
51
53
|
scrollSize: number;
|
|
52
54
|
snap: boolean;
|
|
@@ -103,7 +105,9 @@ export declare class TrackBox<C extends BaseVirtualListItemComponent = any> exte
|
|
|
103
105
|
* Set the trackBy property
|
|
104
106
|
*/
|
|
105
107
|
set trackingPropertyName(v: string);
|
|
108
|
+
protected _trackingPropertyName: string;
|
|
106
109
|
constructor(trackingPropertyName: string);
|
|
110
|
+
protected initialize(): void;
|
|
107
111
|
set(id: Id, bounds: ISize): CMap<Id, ISize>;
|
|
108
112
|
protected _previousCollection: Array<{
|
|
109
113
|
id: Id;
|
|
@@ -117,6 +121,16 @@ export declare class TrackBox<C extends BaseVirtualListItemComponent = any> exte
|
|
|
117
121
|
protected _previousTotalSize: number;
|
|
118
122
|
protected _scrollDelta: number;
|
|
119
123
|
get scrollDelta(): number;
|
|
124
|
+
isAdaptiveBuffer: boolean;
|
|
125
|
+
protected _bufferSequenceExtraThreshold: number;
|
|
126
|
+
protected _maxBufferSequenceLength: number;
|
|
127
|
+
protected _bufferSizeSequence: Array<number>;
|
|
128
|
+
protected _bufferSize: number;
|
|
129
|
+
get bufferSize(): number;
|
|
130
|
+
protected _defaultBufferSize: number;
|
|
131
|
+
protected _maxBufferSize: number;
|
|
132
|
+
protected _resetBufferSizeTimeout: number;
|
|
133
|
+
protected _resetBufferSizeTimer: number | undefined;
|
|
120
134
|
protected lifeCircle(): void;
|
|
121
135
|
/**
|
|
122
136
|
* Scans the collection for deleted items and flushes the deleted item cache.
|
|
@@ -148,6 +162,10 @@ export declare class TrackBox<C extends BaseVirtualListItemComponent = any> exte
|
|
|
148
162
|
getNearestItem<I extends {
|
|
149
163
|
id: Id;
|
|
150
164
|
}, C extends Array<I>>(scrollSize: number, items: C, itemSize: number, isVertical: boolean): I | undefined;
|
|
165
|
+
protected _previousScrollSize: number;
|
|
166
|
+
protected updateAdaptiveBufferParams(metrics: IMetrics, totalItemsLength: number): void;
|
|
167
|
+
protected startResetBufferSizeTimer(): void;
|
|
168
|
+
protected disposeClearBufferSizeTimer(): void;
|
|
151
169
|
/**
|
|
152
170
|
* Calculates the position of an element based on the given scrollSize
|
|
153
171
|
*/
|
package/lib/utils/tracker.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ComponentRef } from "@angular/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ScrollDirection } from "../models";
|
|
3
3
|
import { Id, ISize } from "../types";
|
|
4
|
+
import { BaseVirtualListItemComponent } from "../models/base-virtual-list-item-component";
|
|
5
|
+
type TrackingPropertyId = string | number;
|
|
4
6
|
export interface IVirtualListItemComponent<I = any> {
|
|
5
7
|
getBounds(): ISize;
|
|
6
8
|
itemId: Id;
|
|
@@ -19,7 +21,9 @@ export declare class Tracker<C extends BaseVirtualListItemComponent = any> {
|
|
|
19
21
|
/**
|
|
20
22
|
* display objects dictionary of indexes by id
|
|
21
23
|
*/
|
|
22
|
-
|
|
24
|
+
protected _displayObjectIndexMapById: {
|
|
25
|
+
[id: number]: number;
|
|
26
|
+
};
|
|
23
27
|
set displayObjectIndexMapById(v: {
|
|
24
28
|
[id: number]: number;
|
|
25
29
|
});
|
|
@@ -29,12 +33,14 @@ export declare class Tracker<C extends BaseVirtualListItemComponent = any> {
|
|
|
29
33
|
/**
|
|
30
34
|
* Dictionary displayItems propertyNameId by items propertyNameId
|
|
31
35
|
*/
|
|
32
|
-
|
|
36
|
+
protected _trackMap: {
|
|
37
|
+
[id: TrackingPropertyId]: number;
|
|
38
|
+
} | null;
|
|
33
39
|
get trackMap(): {
|
|
34
40
|
[id: string]: number;
|
|
35
41
|
[id: number]: number;
|
|
36
42
|
} | null;
|
|
37
|
-
|
|
43
|
+
protected _trackingPropertyName: string;
|
|
38
44
|
set trackingPropertyName(v: string);
|
|
39
45
|
constructor(trackingPropertyName: string);
|
|
40
46
|
/**
|
|
@@ -44,3 +50,4 @@ export declare class Tracker<C extends BaseVirtualListItemComponent = any> {
|
|
|
44
50
|
untrackComponentByIdProperty(component?: C): void;
|
|
45
51
|
dispose(): void;
|
|
46
52
|
}
|
|
53
|
+
export {};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED