ng-virtual-list 18.1.2 → 18.2.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 +1 -1
- package/esm2022/lib/components/ng-virtual-list-item.component.mjs +5 -4
- package/esm2022/lib/models/render-item-config.model.mjs +1 -1
- package/esm2022/lib/models/sticky-map.model.mjs +1 -1
- package/esm2022/lib/ng-virtual-list.component.mjs +6 -7
- package/esm2022/lib/utils/toggleClassName.mjs +4 -4
- package/esm2022/lib/utils/trackBox.mjs +79 -17
- package/esm2022/lib/utils/tracker.mjs +23 -3
- package/fesm2022/ng-virtual-list.mjs +112 -30
- package/fesm2022/ng-virtual-list.mjs.map +1 -1
- package/lib/models/render-item-config.model.d.ts +4 -0
- package/lib/models/sticky-map.model.d.ts +4 -2
- package/lib/ng-virtual-list.component.d.ts +1 -0
- package/lib/utils/toggleClassName.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dictionary zIndex by id of the list element. If the value is not set or equal to 0, then a simple element is displayed,
|
|
2
|
+
* Dictionary zIndex by id of the list element. If the value is not set or equal to 0, then a simple element is displayed,
|
|
3
|
+
* if the value is greater than 0, then the sticky position mode is enabled for the element. 1 - position start, 2 - position end.
|
|
3
4
|
* @link https://github.com/DjonnyX/ng-virtual-list/blob/18.x/projects/ng-virtual-list/src/lib/models/sticky-map.model.ts
|
|
4
5
|
* @author Evgenii Grebennikov
|
|
5
6
|
* @email djonnyx@gmail.com
|
|
@@ -7,6 +8,7 @@
|
|
|
7
8
|
export interface IVirtualListStickyMap {
|
|
8
9
|
/**
|
|
9
10
|
* Sets zIndex for the element ID. If zIndex is greater than 0, then sticky position is applied.
|
|
11
|
+
* 1 - position start, 2 - position end.
|
|
10
12
|
*/
|
|
11
|
-
[id: string]:
|
|
13
|
+
[id: string]: 0 | 1 | 2;
|
|
12
14
|
}
|
|
@@ -84,6 +84,7 @@ export declare class NgVirtualListComponent implements AfterViewInit, OnInit, On
|
|
|
84
84
|
*/
|
|
85
85
|
snappingMethod: import("@angular/core").InputSignal<SnappingMethod>;
|
|
86
86
|
protected _isSnappingMethodAdvanced: boolean;
|
|
87
|
+
get isSnappingMethodAdvanced(): boolean;
|
|
87
88
|
protected _isVertical: boolean;
|
|
88
89
|
protected _displayComponents: Array<ComponentRef<NgVirtualListItemComponent>>;
|
|
89
90
|
protected _snapedDisplayComponent: ComponentRef<NgVirtualListItemComponent> | undefined;
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* @author Evgenii Grebennikov
|
|
5
5
|
* @email djonnyx@gmail.com
|
|
6
6
|
*/
|
|
7
|
-
export declare const toggleClassName: (el: HTMLElement, className: string,
|
|
7
|
+
export declare const toggleClassName: (el: HTMLElement, className: string, removeClassName?: string) => void;
|