ng-virtual-list 19.11.3 → 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 +5272 -2956
- 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
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
1
|
+
import { OnDestroy, Signal, TemplateRef } from '@angular/core';
|
|
2
2
|
import { IRenderVirtualListItem, IVirtualListCollection, IVirtualListItem, IVirtualListItemConfigMap } from './models';
|
|
3
3
|
import { IScrollEvent, IScrollOptions, IAnimationParams, ISize, IScrollingSettings } from './interfaces';
|
|
4
|
-
import { FocusAlignment, Id } from './types';
|
|
5
|
-
import { CollectionMode, Direction, MethodForSelecting, SnappingMethod, TextDirection } from './enums';
|
|
4
|
+
import { Alignment, ArithmeticExpression, FocusAlignment, Id, ItemTransform, SnappingDistance, CollectionMode, Direction, SelectingMode, SnappingMethod, SnapToItemAlign, TextDirection, CollapsingMode, SpreadingMode } from './types';
|
|
6
5
|
import { BaseVirtualListItemComponent } from './components/ng-list-item/base';
|
|
7
6
|
import { Component$1 } from './models/component.model';
|
|
8
7
|
import { IScrollParams } from './interfaces';
|
|
@@ -41,6 +40,10 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
41
40
|
* Fires when the viewport size is changed.
|
|
42
41
|
*/
|
|
43
42
|
onViewportChange: import("@angular/core").OutputEmitterRef<ISize>;
|
|
43
|
+
/**
|
|
44
|
+
* Emit the component ID when an element crosses the alignment line specified by the snapToItemAlign property.
|
|
45
|
+
*/
|
|
46
|
+
onSnapItem: import("@angular/core").OutputEmitterRef<Id>;
|
|
44
47
|
/**
|
|
45
48
|
* Fires when an element is clicked.
|
|
46
49
|
*/
|
|
@@ -63,6 +66,8 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
63
66
|
onScrollReachEnd: import("@angular/core").OutputEmitterRef<void>;
|
|
64
67
|
private _$show;
|
|
65
68
|
readonly $show: import("rxjs").Observable<boolean>;
|
|
69
|
+
private _$initialized;
|
|
70
|
+
readonly $initialized: import("rxjs").Observable<boolean>;
|
|
66
71
|
private _scrollbarThickness;
|
|
67
72
|
/**
|
|
68
73
|
* Scrollbar thickness.
|
|
@@ -118,7 +123,7 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
118
123
|
collapsedIds: import("@angular/core").InputSignal<Id[]>;
|
|
119
124
|
private _selectByClickOptions;
|
|
120
125
|
/**
|
|
121
|
-
* If `false`, the element is selected using the
|
|
126
|
+
* If `false`, the element is selected using the api.select method passed to the template;
|
|
122
127
|
* if `true`, the element is selected by clicking on it. The default value is `true`.
|
|
123
128
|
*/
|
|
124
129
|
selectByClick: import("@angular/core").InputSignal<boolean>;
|
|
@@ -130,9 +135,15 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
130
135
|
collapseByClick: import("@angular/core").InputSignal<boolean>;
|
|
131
136
|
private _snapOptions;
|
|
132
137
|
/**
|
|
133
|
-
*
|
|
138
|
+
* @deprecated
|
|
139
|
+
* Use the `stickyEnabled` property instead.
|
|
134
140
|
*/
|
|
135
141
|
snap: import("@angular/core").InputSignal<boolean>;
|
|
142
|
+
private _stickyEnabledOptions;
|
|
143
|
+
/**
|
|
144
|
+
* Determines whether items with the given `sticky` in `itemConfigMap` will stick to the edges. Default value is "true".
|
|
145
|
+
*/
|
|
146
|
+
stickyEnabled: import("@angular/core").InputSignal<boolean>;
|
|
136
147
|
private _snapToEndTransitionInstantOffsetOptions;
|
|
137
148
|
/**
|
|
138
149
|
* Sets the offset value; if the scroll area value is exceeded, the scroll animation will be disabled. Default value is "0".
|
|
@@ -140,14 +151,16 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
140
151
|
snapToEndTransitionInstantOffset: import("@angular/core").InputSignal<number>;
|
|
141
152
|
private _scrollStartOffsetOptions;
|
|
142
153
|
/**
|
|
143
|
-
* Sets the scroll start offset value
|
|
154
|
+
* Sets the scroll start offset value. Can be specified in absolute or percentage values.
|
|
155
|
+
* Supports arithmetic expressions of addition `50% + 25` or subtraction `50% - 25`. Default value is "0".
|
|
144
156
|
*/
|
|
145
|
-
scrollStartOffset: import("@angular/core").InputSignal<
|
|
157
|
+
scrollStartOffset: import("@angular/core").InputSignal<ArithmeticExpression>;
|
|
146
158
|
private _scrollEndOffsetOptions;
|
|
147
159
|
/**
|
|
148
|
-
* Sets the scroll end offset value
|
|
160
|
+
* Sets the scroll end offset value. Can be specified in absolute or percentage values.
|
|
161
|
+
* Supports arithmetic expressions of addition `50% + 25` or subtraction `50% - 25`. Default value is "0".
|
|
149
162
|
*/
|
|
150
|
-
scrollEndOffset: import("@angular/core").InputSignal<
|
|
163
|
+
scrollEndOffset: import("@angular/core").InputSignal<ArithmeticExpression>;
|
|
151
164
|
private _snapScrollToStartOptions;
|
|
152
165
|
/**
|
|
153
166
|
* Determines whether the scroll will be anchored to the start of the list. Default value is "true".
|
|
@@ -157,6 +170,7 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
157
170
|
* If snapScrollToStart is disabled and snapScrollToEnd is enabled, the list will snap to the end;
|
|
158
171
|
* if you move the scroll bar to the beginning, the list will snap to the beginning.
|
|
159
172
|
* If both snapScrollToStart and snapScrollToEnd are disabled, the list will never snap to the beginning or end.
|
|
173
|
+
* In the `spreadingMode=SpreadingModes.INFINITY` mode, the `snapScrollToStart` property is automatically disabled, since the list has no beginning or end.
|
|
160
174
|
*/
|
|
161
175
|
snapScrollToStart: import("@angular/core").InputSignal<boolean>;
|
|
162
176
|
private _snapScrollToEndOptions;
|
|
@@ -167,6 +181,7 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
167
181
|
* If snapScrollToStart is disabled and snapScrollToEnd is enabled, the list will snap to the end;
|
|
168
182
|
* if you move the scroll bar to the beginning, the list will snap to the beginning.
|
|
169
183
|
* If both snapScrollToStart and snapScrollToEnd are disabled, the list will never snap to the beginning or end.
|
|
184
|
+
* In the `spreadingMode=SpreadingModes.INFINITY` mode, the `snapScrollToEnd` property is automatically disabled, since the list has no beginning or end.
|
|
170
185
|
*/
|
|
171
186
|
snapScrollToEnd: import("@angular/core").InputSignal<boolean>;
|
|
172
187
|
private _snapScrollToBottomOptions;
|
|
@@ -185,6 +200,11 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
185
200
|
* Determines whether scrolling using the scrollbar will be possible. The default value is "true".
|
|
186
201
|
*/
|
|
187
202
|
scrollbarInteractive: import("@angular/core").InputSignal<boolean>;
|
|
203
|
+
private _overlappingScrollbarOptions;
|
|
204
|
+
/**
|
|
205
|
+
* Determines whether the scroll bar will overlap the list. The default value is "false".
|
|
206
|
+
*/
|
|
207
|
+
overlappingScrollbar: import("@angular/core").InputSignal<boolean>;
|
|
188
208
|
private _scrollBehaviorOptions;
|
|
189
209
|
/**
|
|
190
210
|
* Defines the scrolling behavior for any element on the page. The default value is "smooth".
|
|
@@ -195,15 +215,81 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
195
215
|
* Scrolling settings.
|
|
196
216
|
* - frictionalForce - Frictional force. Default value is 0.035.
|
|
197
217
|
* - mass - Mass. Default value is 0.005.
|
|
198
|
-
* - maxDistance - Maximum scrolling distance. Default value is
|
|
218
|
+
* - maxDistance - Maximum scrolling distance. Default value is 100000.
|
|
199
219
|
* - maxDuration - Maximum animation duration. Default value is 4000.
|
|
200
|
-
* - speedScale - Speed scale. Default value is
|
|
220
|
+
* - speedScale - Speed scale. Default value is 10.
|
|
201
221
|
* - optimization - Enables scrolling performance optimization. Default value is `true`.
|
|
202
222
|
*/
|
|
203
223
|
scrollingSettings: import("@angular/core").InputSignal<IScrollingSettings>;
|
|
224
|
+
private _itemTransformOptions;
|
|
225
|
+
/**
|
|
226
|
+
* Custom transformation of element's position, rotation, scale, opacity and zIndex. The default value is `null`.
|
|
227
|
+
*/
|
|
228
|
+
itemTransform: import("@angular/core").InputSignal<ItemTransform | null>;
|
|
229
|
+
private _snapToItemOptions;
|
|
230
|
+
/**
|
|
231
|
+
* Snap to an item. The default value is `false`.
|
|
232
|
+
*/
|
|
233
|
+
snapToItem: import("@angular/core").InputSignal<boolean>;
|
|
234
|
+
private _snapToItemAlignOptions;
|
|
235
|
+
/**
|
|
236
|
+
* Alignment for snapToItem. Available values are `start`, `center`, and `end`. The default value is `center`.
|
|
237
|
+
*/
|
|
238
|
+
snapToItemAlign: import("@angular/core").InputSignal<SnapToItemAlign>;
|
|
239
|
+
private _snappingDistanceOptions;
|
|
240
|
+
/**
|
|
241
|
+
* Snapping activation distance. Can be specified as a percentage of the element size or in absolute values.
|
|
242
|
+
* The default value is `25%`.
|
|
243
|
+
*/
|
|
244
|
+
snappingDistance: import("@angular/core").InputSignal<SnappingDistance>;
|
|
245
|
+
private _scrollingOneByOneOptions;
|
|
246
|
+
/**
|
|
247
|
+
* Specifies whether to scroll one item at a time if true and the scrollToItem property is set. The default value is `false`.
|
|
248
|
+
*/
|
|
249
|
+
scrollingOneByOne: import("@angular/core").InputSignal<boolean>;
|
|
250
|
+
private _alignmentOptions;
|
|
251
|
+
/**
|
|
252
|
+
* Determines the alignment of the list. Two modes are available: `none` and `center`. The `center` mode aligns the list items to the center of the viewport, ideal for use with the `itemTransform` property.
|
|
253
|
+
* The `none` mode means no alignment. The default value is `none`.
|
|
254
|
+
*/
|
|
255
|
+
alignment: import("@angular/core").InputSignal<Alignment>;
|
|
256
|
+
private _zIndexWhenSelectingOptions;
|
|
257
|
+
/**
|
|
258
|
+
* Defines the zIndex when a list item is selected. The default value is `null`.
|
|
259
|
+
*/
|
|
260
|
+
zIndexWhenSelecting: import("@angular/core").InputSignal<string | null>;
|
|
261
|
+
private _spreadingModeOptions;
|
|
262
|
+
/**
|
|
263
|
+
* The order of list elements. Available values are `standard` and `infinity`.
|
|
264
|
+
* `normal` — list elements are ordered according to the collection sequence.
|
|
265
|
+
* `infinity` — list elements are ordered cyclically, forming an infinite list.
|
|
266
|
+
* When set to `infinity`, the `alignment` property is forced to the value `Alignments.CENTER`, the `scrollbarEnabled` property is forced to the `false`
|
|
267
|
+
* The default value is `standard`.
|
|
268
|
+
*/
|
|
269
|
+
spreadingMode: import("@angular/core").InputSignal<SpreadingMode>;
|
|
270
|
+
private _dividesOptions;
|
|
271
|
+
/**
|
|
272
|
+
* Column or row numbers. The default value is `1`.
|
|
273
|
+
*/
|
|
274
|
+
divides: import("@angular/core").InputSignal<number>;
|
|
275
|
+
private _motionBlurOptions;
|
|
276
|
+
/**
|
|
277
|
+
* Motion blur effect. The default value is `0.15`.
|
|
278
|
+
*/
|
|
279
|
+
motionBlur: import("@angular/core").InputSignal<number>;
|
|
280
|
+
private _maxMotionBlurOptions;
|
|
281
|
+
/**
|
|
282
|
+
* Maximum motion blur effect. The default value is `0.5`.
|
|
283
|
+
*/
|
|
284
|
+
maxMotionBlur: import("@angular/core").InputSignal<number>;
|
|
285
|
+
private _motionBlurEnabledOptions;
|
|
286
|
+
/**
|
|
287
|
+
* Determines whether to apply motion blur or not. The default value is `false`.
|
|
288
|
+
*/
|
|
289
|
+
motionBlurEnabled: import("@angular/core").InputSignal<boolean>;
|
|
204
290
|
private _animationParamsOptions;
|
|
205
291
|
/**
|
|
206
|
-
* Animation parameters. The default value is "{ scrollToItem: 50, navigateToItem: 150 }".
|
|
292
|
+
* Animation parameters. The default value is "{ scrollToItem: 50, snapToItem: 150, navigateToItem: 150, navigateByKeyboard: 50 }".
|
|
207
293
|
*/
|
|
208
294
|
animationParams: import("@angular/core").InputSignal<IAnimationParams>;
|
|
209
295
|
private _overscrollEnabledOptions;
|
|
@@ -227,12 +313,13 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
227
313
|
private _itemRenderer;
|
|
228
314
|
private _itemConfigMapOptions;
|
|
229
315
|
/**
|
|
230
|
-
* Sets `sticky` position, `collapsable` and `selectable` for the list item element. If `sticky` position is greater than `0`, then `sticky` position is applied.
|
|
316
|
+
* Sets `sticky` position, `fullSize`, `collapsable` and `selectable` for the list item element. If `sticky` position is greater than `0`, then `sticky` position is applied.
|
|
231
317
|
* If the `sticky` value is greater than `0`, then the `sticky` position mode is enabled for the element. `1` - position start, `2` - position end.
|
|
232
318
|
* Default value is `0`.
|
|
233
319
|
* `selectable` determines whether an element can be selected or not. Default value is `true`.
|
|
234
320
|
* `collapsable` determines whether an element with a `sticky` property greater than zero can collapse and
|
|
235
321
|
* collapse elements in front that do not have a `sticky` property.
|
|
322
|
+
* `fullSize` determines the size of an element when rendering lists with cell divisions. If sticky is 1 or 2, fullSize automatically becomes true. The default value is false.
|
|
236
323
|
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/models/item-config-map.model.ts
|
|
237
324
|
* @author Evgenii Alexandrovich Grebennikov
|
|
238
325
|
* @email djonnyx@gmail.com
|
|
@@ -241,10 +328,23 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
241
328
|
private _itemSizeOptions;
|
|
242
329
|
/**
|
|
243
330
|
* If direction = 'vertical', then the height of a typical element. If direction = 'horizontal', then the width of a typical element.
|
|
244
|
-
* If the dynamicSize property is true, the items in the list can have different sizes, and you must specify the itemSize property
|
|
331
|
+
* If the `dynamicSize` property is true, the items in the list can have different sizes, and you must specify the `itemSize` property
|
|
245
332
|
* to adjust the sizes of the items in the unallocated area.
|
|
333
|
+
* If the value is 'viewport', the sizes of elements are automatically resized to fit the viewport size.
|
|
334
|
+
*/
|
|
335
|
+
itemSize: import("@angular/core").InputSignal<number | "viewport">;
|
|
336
|
+
private _minItemSizeOptions;
|
|
337
|
+
/**
|
|
338
|
+
* If the `dynamicSize` property is enabled, the minimum size of the element is set.
|
|
339
|
+
* If the value is 'viewport', the sizes of elements are automatically resized to fit the viewport size.
|
|
340
|
+
*/
|
|
341
|
+
minItemSize: import("@angular/core").InputSignal<number | "viewport">;
|
|
342
|
+
private _maxItemSizeOptions;
|
|
343
|
+
/**
|
|
344
|
+
* If the `dynamicSize` property is enabled, the maximum size of the element is set.
|
|
345
|
+
* If the value is 'viewport', the sizes of elements are automatically resized to fit the viewport size.
|
|
246
346
|
*/
|
|
247
|
-
|
|
347
|
+
maxItemSize: import("@angular/core").InputSignal<number | "viewport">;
|
|
248
348
|
private _dynamicSizeOptions;
|
|
249
349
|
/**
|
|
250
350
|
* If true, items in the list may have different sizes, and the itemSize property must be specified to adjust
|
|
@@ -281,14 +381,29 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
281
381
|
* 'advanced' - A mask is applied to the viewport area so that the background is displayed underneath the attached group.
|
|
282
382
|
*/
|
|
283
383
|
snappingMethod: import("@angular/core").InputSignal<SnappingMethod>;
|
|
384
|
+
private _collapsingModeOptions;
|
|
385
|
+
/**
|
|
386
|
+
* Mode for collapsing list items.
|
|
387
|
+
* `none` - List items are not selectable.
|
|
388
|
+
* `multi-collapse` - List items are collapsed one by one.
|
|
389
|
+
* 'accordion' - Accordion collapsible list items.
|
|
390
|
+
* Default value is `multi-collapse
|
|
391
|
+
*/
|
|
392
|
+
collapsingMode: import("@angular/core").InputSignal<CollapsingMode>;
|
|
284
393
|
private _methodForSelectingOptions;
|
|
394
|
+
/**
|
|
395
|
+
* @deprecated
|
|
396
|
+
* The "methodForSelecting" property is deprecated. Use the "selectMode" property.
|
|
397
|
+
*/
|
|
398
|
+
methodForSelecting: import("@angular/core").InputSignal<SelectingMode>;
|
|
399
|
+
private _selectingModeOptions;
|
|
285
400
|
/**
|
|
286
401
|
* Method for selecting list items. Default value is 'none'.
|
|
287
402
|
* 'select' - List items are selected one by one.
|
|
288
403
|
* 'multi-select' - Multiple selection of list items.
|
|
289
404
|
* 'none' - List items are not selectable.
|
|
290
405
|
*/
|
|
291
|
-
|
|
406
|
+
selectingMode: import("@angular/core").InputSignal<SelectingMode>;
|
|
292
407
|
private _trackByOptions;
|
|
293
408
|
/**
|
|
294
409
|
* The name of the property by which tracking is performed
|
|
@@ -309,10 +424,12 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
309
424
|
* Can be either "ltr" (left-to-right) or "rtl" (right-to-left).
|
|
310
425
|
*/
|
|
311
426
|
langTextDir: import("@angular/core").InputSignal<TextDirection>;
|
|
312
|
-
private
|
|
313
|
-
private
|
|
314
|
-
private
|
|
427
|
+
private _isSingleSelection;
|
|
428
|
+
private _isMultiSelection;
|
|
429
|
+
private _isMultipleCollapse;
|
|
430
|
+
private _isAccordionCollapse;
|
|
315
431
|
private _isSnappingMethodAdvanced;
|
|
432
|
+
protected _isInfinity: Signal<boolean>;
|
|
316
433
|
private _isVertical;
|
|
317
434
|
protected get isVertical(): boolean;
|
|
318
435
|
protected readonly focusedElement: import("@angular/core").WritableSignal<Id | null>;
|
|
@@ -325,11 +442,28 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
325
442
|
private _snappedDisplayComponents;
|
|
326
443
|
private _bounds;
|
|
327
444
|
protected get bounds(): import("@angular/core").WritableSignal<ISize | null>;
|
|
445
|
+
protected _actualScrollbarEnabled: Signal<boolean>;
|
|
446
|
+
private _actualAlignment;
|
|
447
|
+
protected get actualAlignment(): Signal<Alignment>;
|
|
448
|
+
private _actualItemSize;
|
|
449
|
+
protected get actualItemSize(): import("@angular/core").WritableSignal<number>;
|
|
450
|
+
private _actualMinItemSize;
|
|
451
|
+
protected get actualMinItemSize(): import("@angular/core").WritableSignal<number>;
|
|
452
|
+
private _actualMaxItemSize;
|
|
453
|
+
protected get actualMaxItemSize(): import("@angular/core").WritableSignal<number>;
|
|
328
454
|
private _totalSize;
|
|
329
455
|
private _listBounds;
|
|
330
|
-
private
|
|
456
|
+
private _$scrollSize;
|
|
331
457
|
private _isScrollStart;
|
|
332
458
|
private _isScrollEnd;
|
|
459
|
+
protected _precalculatedScrollStartOffset: import("@angular/core").WritableSignal<number>;
|
|
460
|
+
protected _precalculatedScrollEndOffset: import("@angular/core").WritableSignal<number>;
|
|
461
|
+
protected _actualScrollStartOffset: import("@angular/core").WritableSignal<number>;
|
|
462
|
+
protected _actualScrollEndOffset: import("@angular/core").WritableSignal<number>;
|
|
463
|
+
protected _actualSnapScrollToStart: Signal<boolean>;
|
|
464
|
+
protected _actualSnapScrollToEnd: Signal<boolean>;
|
|
465
|
+
protected _alignmentScrollStartOffset: import("@angular/core").WritableSignal<number>;
|
|
466
|
+
protected _alignmentScrollEndOffset: import("@angular/core").WritableSignal<number>;
|
|
333
467
|
private _resizeSnappedComponentHandler;
|
|
334
468
|
private _resizeSnappedObserver;
|
|
335
469
|
private focusItem;
|
|
@@ -366,7 +500,6 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
366
500
|
protected readonly $preventScrollSnapping: import("rxjs").Observable<boolean>;
|
|
367
501
|
private _destroyRef;
|
|
368
502
|
private _updateId;
|
|
369
|
-
private _scrollStateUpdateIndex;
|
|
370
503
|
private _readyForShow;
|
|
371
504
|
private _cached;
|
|
372
505
|
private _isLoading;
|
|
@@ -376,7 +509,6 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
376
509
|
private readonly $viewInit;
|
|
377
510
|
private _$destroy;
|
|
378
511
|
private readonly $destroy;
|
|
379
|
-
protected getScrollStateVersion(totalSize: number, scrollSize: number, cacheVersion: number): string;
|
|
380
512
|
constructor();
|
|
381
513
|
ngAfterViewInit(): void;
|
|
382
514
|
private onAfterResize;
|
|
@@ -384,9 +516,12 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
384
516
|
private snappingHandler;
|
|
385
517
|
private emitScrollEvent;
|
|
386
518
|
private getIsSnappingMethodAdvanced;
|
|
387
|
-
private
|
|
388
|
-
private
|
|
389
|
-
private
|
|
519
|
+
private getIsNoneSelection;
|
|
520
|
+
private getIsSingleSelection;
|
|
521
|
+
private getIsMultiSelection;
|
|
522
|
+
private getIsNoneCollapse;
|
|
523
|
+
private getIsMultipleCollapse;
|
|
524
|
+
private getIsAccordionCollapse;
|
|
390
525
|
private getIsVertical;
|
|
391
526
|
private getIsLazy;
|
|
392
527
|
private createDisplayComponentsIfNeed;
|
|
@@ -439,5 +574,5 @@ export declare class NgVirtualListComponent implements OnDestroy {
|
|
|
439
574
|
ngOnDestroy(): void;
|
|
440
575
|
private dispose;
|
|
441
576
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgVirtualListComponent, never>;
|
|
442
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgVirtualListComponent, "ng-virtual-list", never, { "scrollbarThickness": { "alias": "scrollbarThickness"; "required": false; "isSignal": true; }; "scrollbarMinSize": { "alias": "scrollbarMinSize"; "required": false; "isSignal": true; }; "scrollbarThumbRenderer": { "alias": "scrollbarThumbRenderer"; "required": false; "isSignal": true; }; "scrollbarThumbParams": { "alias": "scrollbarThumbParams"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "waitForPreparation": { "alias": "waitForPreparation"; "required": false; "isSignal": true; }; "clickDistance": { "alias": "clickDistance"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "defaultItemValue": { "alias": "defaultItemValue"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "collapsedIds": { "alias": "collapsedIds"; "required": false; "isSignal": true; }; "selectByClick": { "alias": "selectByClick"; "required": false; "isSignal": true; }; "collapseByClick": { "alias": "collapseByClick"; "required": false; "isSignal": true; }; "snap": { "alias": "snap"; "required": false; "isSignal": true; }; "snapToEndTransitionInstantOffset": { "alias": "snapToEndTransitionInstantOffset"; "required": false; "isSignal": true; }; "scrollStartOffset": { "alias": "scrollStartOffset"; "required": false; "isSignal": true; }; "scrollEndOffset": { "alias": "scrollEndOffset"; "required": false; "isSignal": true; }; "snapScrollToStart": { "alias": "snapScrollToStart"; "required": false; "isSignal": true; }; "snapScrollToEnd": { "alias": "snapScrollToEnd"; "required": false; "isSignal": true; }; "snapScrollToBottom": { "alias": "snapScrollToBottom"; "required": false; "isSignal": true; }; "scrollbarEnabled": { "alias": "scrollbarEnabled"; "required": false; "isSignal": true; }; "scrollbarInteractive": { "alias": "scrollbarInteractive"; "required": false; "isSignal": true; }; "scrollBehavior": { "alias": "scrollBehavior"; "required": false; "isSignal": true; }; "scrollingSettings": { "alias": "scrollingSettings"; "required": false; "isSignal": true; }; "animationParams": { "alias": "animationParams"; "required": false; "isSignal": true; }; "overscrollEnabled": { "alias": "overscrollEnabled"; "required": false; "isSignal": true; }; "enabledBufferOptimization": { "alias": "enabledBufferOptimization"; "required": false; "isSignal": true; }; "itemRenderer": { "alias": "itemRenderer"; "required": true; "isSignal": true; }; "itemConfigMap": { "alias": "itemConfigMap"; "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; }; "collectionMode": { "alias": "collectionMode"; "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; }; "methodForSelecting": { "alias": "methodForSelecting"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "screenReaderMessage": { "alias": "screenReaderMessage"; "required": false; "isSignal": true; }; "langTextDir": { "alias": "langTextDir"; "required": false; "isSignal": true; }; }, { "onScroll": "onScroll"; "onScrollEnd": "onScrollEnd"; "onViewportChange": "onViewportChange"; "onItemClick": "onItemClick"; "onSelect": "onSelect"; "onCollapse": "onCollapse"; "onScrollReachStart": "onScrollReachStart"; "onScrollReachEnd": "onScrollReachEnd"; }, never, never, false, never>;
|
|
577
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgVirtualListComponent, "ng-virtual-list", never, { "scrollbarThickness": { "alias": "scrollbarThickness"; "required": false; "isSignal": true; }; "scrollbarMinSize": { "alias": "scrollbarMinSize"; "required": false; "isSignal": true; }; "scrollbarThumbRenderer": { "alias": "scrollbarThumbRenderer"; "required": false; "isSignal": true; }; "scrollbarThumbParams": { "alias": "scrollbarThumbParams"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "waitForPreparation": { "alias": "waitForPreparation"; "required": false; "isSignal": true; }; "clickDistance": { "alias": "clickDistance"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "defaultItemValue": { "alias": "defaultItemValue"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "collapsedIds": { "alias": "collapsedIds"; "required": false; "isSignal": true; }; "selectByClick": { "alias": "selectByClick"; "required": false; "isSignal": true; }; "collapseByClick": { "alias": "collapseByClick"; "required": false; "isSignal": true; }; "snap": { "alias": "snap"; "required": false; "isSignal": true; }; "stickyEnabled": { "alias": "stickyEnabled"; "required": false; "isSignal": true; }; "snapToEndTransitionInstantOffset": { "alias": "snapToEndTransitionInstantOffset"; "required": false; "isSignal": true; }; "scrollStartOffset": { "alias": "scrollStartOffset"; "required": false; "isSignal": true; }; "scrollEndOffset": { "alias": "scrollEndOffset"; "required": false; "isSignal": true; }; "snapScrollToStart": { "alias": "snapScrollToStart"; "required": false; "isSignal": true; }; "snapScrollToEnd": { "alias": "snapScrollToEnd"; "required": false; "isSignal": true; }; "snapScrollToBottom": { "alias": "snapScrollToBottom"; "required": false; "isSignal": true; }; "scrollbarEnabled": { "alias": "scrollbarEnabled"; "required": false; "isSignal": true; }; "scrollbarInteractive": { "alias": "scrollbarInteractive"; "required": false; "isSignal": true; }; "overlappingScrollbar": { "alias": "overlappingScrollbar"; "required": false; "isSignal": true; }; "scrollBehavior": { "alias": "scrollBehavior"; "required": false; "isSignal": true; }; "scrollingSettings": { "alias": "scrollingSettings"; "required": false; "isSignal": true; }; "itemTransform": { "alias": "itemTransform"; "required": false; "isSignal": true; }; "snapToItem": { "alias": "snapToItem"; "required": false; "isSignal": true; }; "snapToItemAlign": { "alias": "snapToItemAlign"; "required": false; "isSignal": true; }; "snappingDistance": { "alias": "snappingDistance"; "required": false; "isSignal": true; }; "scrollingOneByOne": { "alias": "scrollingOneByOne"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "zIndexWhenSelecting": { "alias": "zIndexWhenSelecting"; "required": false; "isSignal": true; }; "spreadingMode": { "alias": "spreadingMode"; "required": false; "isSignal": true; }; "divides": { "alias": "divides"; "required": false; "isSignal": true; }; "motionBlur": { "alias": "motionBlur"; "required": false; "isSignal": true; }; "maxMotionBlur": { "alias": "maxMotionBlur"; "required": false; "isSignal": true; }; "motionBlurEnabled": { "alias": "motionBlurEnabled"; "required": false; "isSignal": true; }; "animationParams": { "alias": "animationParams"; "required": false; "isSignal": true; }; "overscrollEnabled": { "alias": "overscrollEnabled"; "required": false; "isSignal": true; }; "enabledBufferOptimization": { "alias": "enabledBufferOptimization"; "required": false; "isSignal": true; }; "itemRenderer": { "alias": "itemRenderer"; "required": true; "isSignal": true; }; "itemConfigMap": { "alias": "itemConfigMap"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "minItemSize": { "alias": "minItemSize"; "required": false; "isSignal": true; }; "maxItemSize": { "alias": "maxItemSize"; "required": false; "isSignal": true; }; "dynamicSize": { "alias": "dynamicSize"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "collectionMode": { "alias": "collectionMode"; "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; }; "collapsingMode": { "alias": "collapsingMode"; "required": false; "isSignal": true; }; "methodForSelecting": { "alias": "methodForSelecting"; "required": false; "isSignal": true; }; "selectingMode": { "alias": "selectingMode"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "screenReaderMessage": { "alias": "screenReaderMessage"; "required": false; "isSignal": true; }; "langTextDir": { "alias": "langTextDir"; "required": false; "isSignal": true; }; }, { "onScroll": "onScroll"; "onScrollEnd": "onScrollEnd"; "onViewportChange": "onViewportChange"; "onSnapItem": "onSnapItem"; "onItemClick": "onItemClick"; "onSelect": "onSelect"; "onCollapse": "onCollapse"; "onScrollReachStart": "onScrollReachStart"; "onScrollReachEnd": "onScrollReachEnd"; }, never, never, false, never>;
|
|
443
578
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TrackBox } from './core/track-box';
|
|
2
|
-
import { IRenderVirtualListItem, IVirtualListItem } from './models';
|
|
3
|
-
import { IAnimationParams, IScrollOptions, ISize } from './interfaces';
|
|
2
|
+
import { IRenderVirtualListItem, IVirtualListCollection, IVirtualListItem, IVirtualListItemConfigMap } from './models';
|
|
3
|
+
import { IAnimationParams, IRect, IScrollOptions, ISize } from './interfaces';
|
|
4
4
|
import { IRenderVirtualListCollection } from './models/render-collection.model';
|
|
5
|
-
import { TextDirection } from './
|
|
6
|
-
import {
|
|
5
|
+
import { TextDirection } from './types';
|
|
6
|
+
import { SelectingModesTypes } from './enums/selecting-modes-types';
|
|
7
7
|
import { FocusAlignment, Id } from './types';
|
|
8
8
|
import { FocusItemParams } from './types/focus-item-params';
|
|
9
9
|
import { IScrollToParams } from './interfaces/scroll-to-params';
|
|
@@ -20,17 +20,18 @@ export declare class NgVirtualListService {
|
|
|
20
20
|
private _id;
|
|
21
21
|
get id(): number;
|
|
22
22
|
private _nextComponentId;
|
|
23
|
-
private _$
|
|
24
|
-
$
|
|
23
|
+
private _$virtualClick;
|
|
24
|
+
$virtualClick: import("rxjs").Observable<IRenderVirtualListItem<any> | null>;
|
|
25
25
|
private _$selectedIds;
|
|
26
26
|
$selectedIds: import("rxjs").Observable<Id | Id[] | null>;
|
|
27
27
|
private _$collapsedIds;
|
|
28
28
|
$collapsedIds: import("rxjs").Observable<Id[]>;
|
|
29
|
-
private _$
|
|
30
|
-
$
|
|
31
|
-
set
|
|
29
|
+
private _$selectingMode;
|
|
30
|
+
$selectingMode: import("rxjs").Observable<SelectingModesTypes>;
|
|
31
|
+
set selectingMode(v: SelectingModesTypes);
|
|
32
32
|
private _$focusedId;
|
|
33
33
|
$focusedId: import("rxjs").Observable<Id | null>;
|
|
34
|
+
set focusedId(v: Id | null);
|
|
34
35
|
get focusedId(): Id | null;
|
|
35
36
|
private _$focusItem;
|
|
36
37
|
readonly $focusItem: import("rxjs").Observable<FocusItemParams>;
|
|
@@ -48,16 +49,25 @@ export declare class NgVirtualListService {
|
|
|
48
49
|
lastFocusedItemId: number;
|
|
49
50
|
scrollStartOffset: number;
|
|
50
51
|
scrollEndOffset: number;
|
|
52
|
+
zIndexWhenSelecting: string | null;
|
|
51
53
|
selectByClick: boolean;
|
|
52
54
|
collapseByClick: boolean;
|
|
53
55
|
defaultItemValue: IVirtualListItem | null;
|
|
56
|
+
snapToItem: boolean;
|
|
57
|
+
isInfinity: boolean;
|
|
54
58
|
isVertical: boolean;
|
|
55
59
|
dynamic: boolean;
|
|
60
|
+
itemSize: number;
|
|
56
61
|
snapScrollToStart: boolean;
|
|
57
62
|
snapScrollToEnd: boolean;
|
|
58
63
|
animationParams: IAnimationParams;
|
|
64
|
+
isNoneCollapse: boolean;
|
|
65
|
+
isMultipleCollapse: boolean;
|
|
66
|
+
isAccordionCollapse: boolean;
|
|
59
67
|
private _trackBox;
|
|
60
68
|
listElement: HTMLDivElement | null;
|
|
69
|
+
items: IVirtualListCollection;
|
|
70
|
+
itemConfigMap: IVirtualListItemConfigMap;
|
|
61
71
|
private _$displayItems;
|
|
62
72
|
readonly $displayItems: import("rxjs").Observable<IRenderVirtualListCollection>;
|
|
63
73
|
get displayItems(): IRenderVirtualListCollection;
|
|
@@ -74,6 +84,8 @@ export declare class NgVirtualListService {
|
|
|
74
84
|
set scrollBarSize(v: number);
|
|
75
85
|
private _$scrollBarSize;
|
|
76
86
|
readonly $scrollBarSize: import("rxjs").Observable<number>;
|
|
87
|
+
private _$intersectionElementBySnapToItemAlign;
|
|
88
|
+
readonly $intersectionElementBySnapToItemAlign: import("rxjs").Observable<Id | null>;
|
|
77
89
|
private _$clickDistance;
|
|
78
90
|
readonly $clickDistance: import("rxjs").Observable<number>;
|
|
79
91
|
get clickDistance(): number;
|
|
@@ -86,8 +98,8 @@ export declare class NgVirtualListService {
|
|
|
86
98
|
set collapsedIds(ids: Array<Id>);
|
|
87
99
|
get collapsedIds(): Array<Id>;
|
|
88
100
|
constructor();
|
|
89
|
-
|
|
90
|
-
update(immediately?: boolean
|
|
101
|
+
virtualClick(data: IRenderVirtualListItem | null): void;
|
|
102
|
+
update(immediately?: boolean): void;
|
|
91
103
|
private getItemConfig;
|
|
92
104
|
/**
|
|
93
105
|
* Selects a list item
|
|
@@ -111,10 +123,16 @@ export declare class NgVirtualListService {
|
|
|
111
123
|
*/
|
|
112
124
|
focusById(id: Id, align?: FocusAlignment, scrollBehavior?: ScrollBehavior): void;
|
|
113
125
|
focus(element: HTMLElement, align?: FocusAlignment, behavior?: ScrollBehavior): boolean;
|
|
126
|
+
focusList(): void;
|
|
114
127
|
focusFirstElement(): void;
|
|
115
|
-
areaFocus(id: Id | null): void;
|
|
116
128
|
initialize(id: number, trackBox: TrackBox): void;
|
|
117
129
|
generateComponentId(): number;
|
|
130
|
+
getComponentBoundsByIntersectionPosition(position: number, maxPosition?: number | null): (IRect & {
|
|
131
|
+
id: Id | null;
|
|
132
|
+
isFirst: boolean;
|
|
133
|
+
isLast: boolean;
|
|
134
|
+
}) | null;
|
|
135
|
+
setIntersectionElementBySnapToItemAlign(id: Id | null): void;
|
|
118
136
|
/**
|
|
119
137
|
* The method scrolls the list to the element with the given `id` and returns the value of the scrolled area.
|
|
120
138
|
*/
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Color, ItemTransform } from '../types';
|
|
2
|
+
export interface IDeckOfCards3DOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Depth Of Field. Default value is `null`.
|
|
5
|
+
*/
|
|
6
|
+
dof?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Fog color. Default value is `null`.
|
|
9
|
+
*/
|
|
10
|
+
fogColor?: Color;
|
|
11
|
+
/**
|
|
12
|
+
* Fog weight. Default value is `null`.
|
|
13
|
+
*/
|
|
14
|
+
fogWeight?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Spacing between items. Default value is `0.5`.
|
|
17
|
+
*/
|
|
18
|
+
spacingBetweenItems?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Angle of inclination. Default value is `1`.
|
|
21
|
+
*/
|
|
22
|
+
angle?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Depth. Default value is `0.15`.
|
|
25
|
+
*/
|
|
26
|
+
depth?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Scale. Default value is `0.15`.
|
|
29
|
+
*/
|
|
30
|
+
scale?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Scale X. Default value is `null`.
|
|
33
|
+
*/
|
|
34
|
+
scaleX?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
* Scale Y. Default value is `null`.
|
|
37
|
+
*/
|
|
38
|
+
scaleY?: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* Depth exponent. Default value is `4`.
|
|
41
|
+
*/
|
|
42
|
+
depthPow?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Sinusoidal distribution. Default value is `false`.
|
|
45
|
+
*/
|
|
46
|
+
sineWave?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* deckOfCards3D
|
|
50
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/transformations/deck-of-cards-3d.ts
|
|
51
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
52
|
+
* @email djonnyx@gmail.com
|
|
53
|
+
*/
|
|
54
|
+
export declare const deckOfCards3D: (options?: IDeckOfCards3DOptions) => ItemTransform;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Color, ItemTransform } from '../types';
|
|
2
|
+
export interface IDeckOfCardsOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Depth Of Field. Default value is `null`.
|
|
5
|
+
*/
|
|
6
|
+
dof?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Fog color. Default value is `null`.
|
|
9
|
+
*/
|
|
10
|
+
fogColor?: Color;
|
|
11
|
+
/**
|
|
12
|
+
* Fog weight. Default value is `null`.
|
|
13
|
+
*/
|
|
14
|
+
fogWeight?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Spacing between items. Default value is `0.5`.
|
|
17
|
+
*/
|
|
18
|
+
spacingBetweenItems?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Depth. Default value is `0.15`.
|
|
21
|
+
*/
|
|
22
|
+
depth?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Scale. Default value is `0.15`.
|
|
25
|
+
*/
|
|
26
|
+
scale?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Scale X. Default value is `null`.
|
|
29
|
+
*/
|
|
30
|
+
scaleX?: number | null;
|
|
31
|
+
/**
|
|
32
|
+
* Scale Y. Default value is `null`.
|
|
33
|
+
*/
|
|
34
|
+
scaleY?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
* Depth exponent. Default value is `4`.
|
|
37
|
+
*/
|
|
38
|
+
depthPow?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Sinusoidal distribution. Default value is `false`.
|
|
41
|
+
*/
|
|
42
|
+
sineWave?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* deckOfCards
|
|
46
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/transformations/deck-of-cards.ts
|
|
47
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
48
|
+
* @email djonnyx@gmail.com
|
|
49
|
+
*/
|
|
50
|
+
export declare const deckOfCards: (options?: IDeckOfCardsOptions) => ItemTransform;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Color, ItemTransform } from '../types';
|
|
2
|
+
export interface IEventHorizonOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Depth Of Field. Default value is `null`.
|
|
5
|
+
*/
|
|
6
|
+
dof?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Fog color. Default value is `null`.
|
|
9
|
+
*/
|
|
10
|
+
fogColor?: Color;
|
|
11
|
+
/**
|
|
12
|
+
* Fog weight. Default value is `null`.
|
|
13
|
+
*/
|
|
14
|
+
fogWeight?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Spacing between items. Default value is `0.5`.
|
|
17
|
+
*/
|
|
18
|
+
spacingBetweenItems?: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* eventHorizon
|
|
22
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/transformations/event-horizon.ts
|
|
23
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
24
|
+
* @email djonnyx@gmail.com
|
|
25
|
+
*/
|
|
26
|
+
export declare const eventHorizon: (options?: IEventHorizonOptions) => ItemTransform;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const ItemTransformations: {
|
|
2
|
+
EVENT_HORIZON: (options?: import("./event-horizon").IEventHorizonOptions) => import("ng-virtual-list").ItemTransform;
|
|
3
|
+
LINEAR: (options?: import("./linear").ILintearOptions) => import("ng-virtual-list").ItemTransform;
|
|
4
|
+
DECK_OF_CARDS: (options?: import("./deck-of-cards").IDeckOfCardsOptions) => import("ng-virtual-list").ItemTransform;
|
|
5
|
+
DECK_OF_CARDS_3D: (options?: import("./deck-of-cards-3d").IDeckOfCards3DOptions) => import("ng-virtual-list").ItemTransform;
|
|
6
|
+
SWIPE_3D: (options?: import("./swipe-3d").ISwipe3DOptions) => import("ng-virtual-list").ItemTransform;
|
|
7
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Color, ItemTransform } from '../types';
|
|
2
|
+
export interface ILintearOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Depth Of Field. Default value is `null`.
|
|
5
|
+
*/
|
|
6
|
+
dof?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Fog color. Default value is `null`.
|
|
9
|
+
*/
|
|
10
|
+
fogColor?: Color;
|
|
11
|
+
/**
|
|
12
|
+
* Fog weight. Default value is `null`.
|
|
13
|
+
*/
|
|
14
|
+
fogWeight?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Spacing between items. Default value is `0.5`.
|
|
17
|
+
*/
|
|
18
|
+
spacingBetweenItems?: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* linear
|
|
22
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/19.x/projects/ng-virtual-list/src/lib/transformations/linear.ts
|
|
23
|
+
* @author Evgenii Alexandrovich Grebennikov
|
|
24
|
+
* @email djonnyx@gmail.com
|
|
25
|
+
*/
|
|
26
|
+
export declare const linear: (options?: ILintearOptions) => ItemTransform;
|