ng-virtual-list 20.7.6 โ†’ 20.7.8

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ๐Ÿš€ High-performance virtual scrolling for Angular apps. Render 100,000+ items in Angular without breaking a sweat. Smooth, customizable, and developer-friendly.
4
4
 
5
- Flexible, and actively maintained Angular library that excels with high-performance, feature-rich virtualized listsโ€”including grouping, sticky headers, snapping, animations, single and multiple selection of elements and both scroll directions. Whether you're rendering millions of items or building interactive list components, it delivers scalability and customization. Angular (14โ€“20) compatibility.
5
+ Flexible, and actively maintained Angular library that excels with high-performance, feature-rich virtualized listsโ€”including grouping, sticky headers, snapping, animations, collapsing group elements, single and multiple selection of elements and both scroll directions. Whether you're rendering millions of items or building interactive list components, it delivers scalability and customization. Angular (14โ€“20) compatibility.
6
6
 
7
7
  <img width="1033" height="171" alt="logo" src="https://github.com/user-attachments/assets/b559cfde-405a-4361-b71b-6715478d997d" />
8
8
 
@@ -26,8 +26,9 @@ Flexible, and actively maintained Angular library that excels with high-performa
26
26
  ๐Ÿ“ฑ Works everywhere โ€” smooth on desktop & mobile.<br/>
27
27
  ๐Ÿ”€ Flexible layouts โ€” vertical, horizontal, grouped lists, sticky headers.<br/>
28
28
  ๐Ÿ“ Dynamic sizes โ€” handles items of varying height/width.<br/>
29
- ๐ŸŽฏ Precise control โ€” scroll to an ID, or snap to positions.<br/>
30
- ๐Ÿ”Œ Angular-friendly โ€” simple inputs/outputs, trackBy support.<br/>
29
+ ๐Ÿ” Precise control โ€” scroll to an ID, or snap to positions.<br/>
30
+ โœ… Selecting elements โ€” ability to work in Select and MultiSelect modes.<br/>
31
+ ๐Ÿงฉ Collapsing group elements โ€” ability to collapse group elements (elements with the "stickiness" parameter).<br/>
31
32
 
32
33
  <br/>
33
34
 
@@ -48,6 +49,8 @@ Flexible, and actively maintained Angular library that excels with high-performa
48
49
  - Multiple selection
49
50
  - Performance tuning
50
51
  - bufferSize and maxBufferSize for fine-grained control
52
+ - Collapsing groups
53
+ - collapse group elements
51
54
 
52
55
  <br/>
53
56
 
@@ -74,6 +77,8 @@ Single and multiple selection of elements
74
77
 
75
78
  Navigating with the keyboard
76
79
 
80
+ Collapsing groups
81
+
77
82
  Support for element animation
78
83
 
79
84
  <br/>
@@ -598,6 +603,7 @@ Inputs
598
603
  | itemRenderer | TemplateRef | Rendering element template. |
599
604
  | methodForSelecting | [MethodForSelecting](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/enums/method-for-selecting.ts) | Method for selecting list items. Default value is 'none'. 'select' - List items are selected one by one. 'multi-select' - Multiple selection of list items. 'none' - List items are not selectable. |
600
605
  | itemConfigMap | [IVirtualListItemConfigMap?](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/models/item-config-map.model.ts) | Sets `sticky` position and `selectable` for the list item element. If `sticky` position is greater than `0`, then `sticky` position is applied. If the `sticky` value is greater than `0`, then the `sticky` position mode is enabled for the element. `1` - position start, `2` - position end. Default value is `0`. `selectable` determines whether an element can be selected or not. Default value is `true`. |
606
+ | collapseByClick | boolean? = true | If `false`, the element is collapsed using the config.collapse method passed to the template; if `true`, the element is collapsed by clicking on it. The default value is `true`. |
601
607
  | selectByClick | boolean? = true | If `false`, the element is selected using the config.select method passed to the template; if `true`, the element is selected by clicking on it. The default value is `true`. |
602
608
  | snap | boolean? = false | Determines whether elements will snap. Default value is "false". |
603
609
  | snappingMethod | [SnappingMethod? = 'normal'](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/enums/snapping-method.ts) | Snapping method. 'normal' - Normal group rendering. 'advanced' - The group is rendered on a transparent background. List items below the group are not rendered. |
@@ -606,6 +612,7 @@ Inputs
606
612
  | enabledBufferOptimization | boolean? = true | Experimental! Enables buffer optimization. Can only be used if items in the collection are not added or updated. |
607
613
  | trackBy | string? = 'id' | The name of the property by which tracking is performed. |
608
614
  | selectedIds | Array<[Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts)> \| [Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts) \| undefined | Sets the selected items. |
615
+ | collapsedIds | Array<[Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts)> | Sets the collapsed items. |
609
616
 
610
617
  <br/>
611
618
 
@@ -617,6 +624,7 @@ Outputs
617
624
  | onScroll | ([IScrollEvent](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/models/scroll-event.model.ts)) => void | Fires when the list has been scrolled. |
618
625
  | onScrollEnd | ([IScrollEvent](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/models/scroll-event.model.ts)) => void | Fires when the list has completed scrolling. |
619
626
  | onSelect | Array<[Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts)> \| [Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts) \| undefined | Fires when an elements are selected. |
627
+ | onCollapse | Array<[Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts)> \| [Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts) \| undefined | Fires when elements are collapsed. |
620
628
  | onViewportChange | [ISize](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/size.ts) | Fires when the viewport size is changed. |
621
629
 
622
630
 
@@ -636,12 +644,12 @@ Methods
636
644
 
637
645
  | Angular version | ng-virtual-list version | git | npm |
638
646
  |--|--|--|--|
639
- | 19.x | 19.7.8 | [19.x](https://github.com/DjonnyX/ng-virtual-list/tree/19.x) | [19.7.8](https://www.npmjs.com/package/ng-virtual-list/v/19.7.8) |
640
- | 18.x | 18.7.6 | [18.x](https://github.com/DjonnyX/ng-virtual-list/tree/18.x) | [18.7.6](https://www.npmjs.com/package/ng-virtual-list/v/18.7.6) |
641
- | 17.x | 17.7.6 | [17.x](https://github.com/DjonnyX/ng-virtual-list/tree/17.x) | [17.7.6](https://www.npmjs.com/package/ng-virtual-list/v/17.7.6) |
642
- | 16.x | 16.7.6 | [16.x](https://github.com/DjonnyX/ng-virtual-list/tree/16.x) | [16.7.6](https://www.npmjs.com/package/ng-virtual-list/v/16.7.6) |
643
- | 15.x | 15.7.6 | [15.x](https://github.com/DjonnyX/ng-virtual-list/tree/15.x) | [15.7.6](https://www.npmjs.com/package/ng-virtual-list/v/15.7.6) |
644
- | 14.x | 14.7.6 | [14.x](https://github.com/DjonnyX/ng-virtual-list/tree/14.x) | [14.7.6](https://www.npmjs.com/package/ng-virtual-list/v/14.7.6) |
647
+ | 19.x | 19.7.10 | [19.x](https://github.com/DjonnyX/ng-virtual-list/tree/19.x) | [19.7.10](https://www.npmjs.com/package/ng-virtual-list/v/19.7.10) |
648
+ | 18.x | 18.7.8 | [18.x](https://github.com/DjonnyX/ng-virtual-list/tree/18.x) | [18.7.8](https://www.npmjs.com/package/ng-virtual-list/v/18.7.8) |
649
+ | 17.x | 17.7.8 | [17.x](https://github.com/DjonnyX/ng-virtual-list/tree/17.x) | [17.7.8](https://www.npmjs.com/package/ng-virtual-list/v/17.7.8) |
650
+ | 16.x | 16.7.7 | [16.x](https://github.com/DjonnyX/ng-virtual-list/tree/16.x) | [16.7.7](https://www.npmjs.com/package/ng-virtual-list/v/16.7.7) |
651
+ | 15.x | 15.7.7 | [15.x](https://github.com/DjonnyX/ng-virtual-list/tree/15.x) | [15.7.7](https://www.npmjs.com/package/ng-virtual-list/v/15.7.7) |
652
+ | 14.x | 14.7.7 | [14.x](https://github.com/DjonnyX/ng-virtual-list/tree/14.x) | [14.7.7](https://www.npmjs.com/package/ng-virtual-list/v/14.7.7) |
645
653
 
646
654
  <br/>
647
655