ng-virtual-list 20.9.6 → 20.10.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 +17 -9
- package/fesm2022/ng-virtual-list.mjs +965 -650
- package/fesm2022/ng-virtual-list.mjs.map +1 -1
- package/index.d.ts +68 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -519,11 +519,14 @@ const X_LITE_BLUE_PLASMA_GRADIENT: GradientColor = ["rgba(133, 142, 255, 0)", "r
|
|
|
519
519
|
ROUND_CORNER: RoundedCorner = [3, 3, 3, 3],
|
|
520
520
|
SCROLLBAR_GRADIENT: ScrollBarTheme = {
|
|
521
521
|
fill: ["rgba(51, 0, 97, 1)", "rgba(73, 0, 97, 1)"],
|
|
522
|
+
hoverFill: ["rgba(73, 6, 133, 1)", "rgba(73, 6, 133, 1)"],
|
|
523
|
+
pressedFill: ["rgba(73, 6, 150, 1)", "rgba(95, 0, 150, 1)"],
|
|
522
524
|
strokeGradientColor: X_LITE_BLUE_PLASMA_GRADIENT,
|
|
523
525
|
strokeAnimationDuration: 1000,
|
|
524
526
|
thickness: 6,
|
|
525
527
|
roundCorner: ROUND_CORNER,
|
|
526
528
|
rippleColor: 'rgba(255,255,255,0.5)',
|
|
529
|
+
rippleEnabled: true,
|
|
527
530
|
};
|
|
528
531
|
|
|
529
532
|
@Component({
|
|
@@ -674,6 +677,11 @@ Inputs
|
|
|
674
677
|
| snapScrollToBottom | boolean? = false | Determines whether the scroll will be anchored to the end of the list at startup.. Default value is "false". |
|
|
675
678
|
| snapToEndTransitionInstantOffset | number? = 0 | Sets the offset value; if the scroll area value is exceeded, the scroll animation will be disabled. Default value is "0". |
|
|
676
679
|
| scrollbarMinSize | number? = 80 | Minimum scrollbar size. |
|
|
680
|
+
| scrollbarEnabled | boolean? = true | Determines whether the scrollbar is shown or not. The default value is "true". |
|
|
681
|
+
| scrollbarInteractive | boolean? = true | Determines whether scrolling using the scrollbar will be possible. The default value is "true". |
|
|
682
|
+
| overscrollEnabled | boolean? = true | Determines whether the overscroll (re-scroll) feature will work. The default value is "true". |
|
|
683
|
+
| animationParams | [IAnimationParams](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/animation-params.ts)? = { scrollToItem: 50, navigateToItem: 150 } | Animation parameters. The default value is "{ scrollToItem: 50, navigateToItem: 150 }". |
|
|
684
|
+
| scrollBehavior | ScrollBehavior? = 'smooth' | Defines the scrolling behavior for any element on the page. The default value is "smooth". |
|
|
677
685
|
|
|
678
686
|
<br/>
|
|
679
687
|
|
|
@@ -697,13 +705,13 @@ Methods
|
|
|
697
705
|
| Method | Type | Description |
|
|
698
706
|
|--|--|--|
|
|
699
707
|
| scrollTo | (id: [Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts), cb?: () => void, options?: [IScrollOptions](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/models/scroll-options.model.ts)) | The method scrolls the list to the element with the given `id` and returns the value of the scrolled area. |
|
|
700
|
-
|
|
|
708
|
+
| scrollToStart | (cb?: () => void, options?: [IScrollOptions](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/models/scroll-options.model.ts)) | Scrolls the scroll area to the first item in the collection. |
|
|
709
|
+
| scrollToEndItem | (cb?: () => void, options?: [IScrollOptions](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/models/scroll-options.model.ts)) | Scrolls the scroll area to the last item in the collection. |
|
|
710
|
+
| scrollToEnd | | Scrolls the list to the end of the content height. |
|
|
701
711
|
| getItemBounds | (id: [Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts), behavior?: ScrollBehavior) => void | Returns the bounds of an element with a given id |
|
|
702
712
|
| focus | [Id](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/id.ts), align: [FocusAlignment](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/types/focus-alignment.ts) = [FocusAlignments.NONE](https://github.com/DjonnyX/ng-virtual-list/blob/20.x/projects/ng-virtual-list/src/lib/enums/focus-alignments.ts) | Focus an list item by a given id. |
|
|
703
713
|
| cacheClean | | Force clearing the cache. |
|
|
704
714
|
| stopSnappingScrollToEnd | | Stops the list from snapping to the bottom edge. |
|
|
705
|
-
| updateImmediately | | Instantly refreshes the list. |
|
|
706
|
-
| markForUpdate | | Marks the list for an update that will trigger on the next tick. |
|
|
707
715
|
|
|
708
716
|
<br/>
|
|
709
717
|
|
|
@@ -729,12 +737,12 @@ Properties
|
|
|
729
737
|
|
|
730
738
|
| Angular version | ng-virtual-list version | git | npm |
|
|
731
739
|
|--|--|--|--|
|
|
732
|
-
| 19.x | 19.
|
|
733
|
-
| 18.x | 18.
|
|
734
|
-
| 17.x | 17.
|
|
735
|
-
| 16.x | 16.
|
|
736
|
-
| 15.x | 15.
|
|
737
|
-
| 14.x | 14.
|
|
740
|
+
| 19.x | 19.10.0 | [19.x](https://github.com/DjonnyX/ng-virtual-list/tree/19.x) | [19.10.0](https://www.npmjs.com/package/ng-virtual-list/v/19.10.0) |
|
|
741
|
+
| 18.x | 18.10.0 | [18.x](https://github.com/DjonnyX/ng-virtual-list/tree/18.x) | [18.10.0](https://www.npmjs.com/package/ng-virtual-list/v/18.10.0) |
|
|
742
|
+
| 17.x | 17.10.0 | [17.x](https://github.com/DjonnyX/ng-virtual-list/tree/17.x) | [17.10.0](https://www.npmjs.com/package/ng-virtual-list/v/17.10.0) |
|
|
743
|
+
| 16.x | 16.10.0 | [16.x](https://github.com/DjonnyX/ng-virtual-list/tree/16.x) | [16.10.0](https://www.npmjs.com/package/ng-virtual-list/v/16.10.0) |
|
|
744
|
+
| 15.x | 15.10.0 | [15.x](https://github.com/DjonnyX/ng-virtual-list/tree/15.x) | [15.10.0](https://www.npmjs.com/package/ng-virtual-list/v/15.10.0) |
|
|
745
|
+
| 14.x | 14.10.0 | [14.x](https://github.com/DjonnyX/ng-virtual-list/tree/14.x) | [14.10.0](https://www.npmjs.com/package/ng-virtual-list/v/14.10.0) |
|
|
738
746
|
|
|
739
747
|
<br/>
|
|
740
748
|
|