ng-virtual-list 16.1.3 → 16.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 +8 -8
- package/esm2022/lib/utils/toggleClassName.mjs +4 -4
- package/esm2022/lib/utils/trackBox.mjs +76 -17
- package/esm2022/lib/utils/tracker.mjs +23 -3
- package/fesm2022/ng-virtual-list.mjs +111 -31
- 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/16.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
|
}
|
|
@@ -124,6 +124,7 @@ export declare class NgVirtualListComponent implements AfterViewInit, OnInit, On
|
|
|
124
124
|
set snappingMethod(v: SnappingMethod);
|
|
125
125
|
get snappingMethod(): SnappingMethod;
|
|
126
126
|
protected _isSnappingMethodAdvanced: boolean;
|
|
127
|
+
get isSnappingMethodAdvanced(): boolean;
|
|
127
128
|
protected _displayComponents: Array<ComponentRef<NgVirtualListItemComponent>>;
|
|
128
129
|
protected _snapedDisplayComponent: ComponentRef<NgVirtualListItemComponent> | undefined;
|
|
129
130
|
protected _$bounds: BehaviorSubject<ISize | null>;
|
|
@@ -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;
|