ngx-infinite-scroll
Advanced tools
Comparing version 7.2.0 to 8.0.0
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ContainerRef":{"__symbolic":"interface"},"InfiniteScrollEvent":{"__symbolic":"interface"},"IPositionElements":{"__symbolic":"interface"},"IPositionStats":{"__symbolic":"interface"},"IResolver":{"__symbolic":"interface"},"InfiniteScrollDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":18,"character":1},"arguments":[{"selector":"[infiniteScroll], [infinite-scroll], [data-infinite-scroll]"}]}],"members":{"scrolled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":23,"character":3}}]}],"scrolledUp":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":24,"character":3}}]}],"infiniteScrollDistance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"infiniteScrollUpDistance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"infiniteScrollThrottle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"infiniteScrollDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"infiniteScrollContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"scrollWindow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"immediateCheck":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"horizontal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"alwaysCallback":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"fromRoot":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":39,"character":31},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":39,"character":57}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"setup":[{"__symbolic":"method"}],"handleOnScroll":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"destroyScroller":[{"__symbolic":"method"}]}},"InfiniteScrollModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"InfiniteScrollDirective"}],"exports":[{"__symbolic":"reference","name":"InfiniteScrollDirective"}],"imports":[],"providers":[]}]}],"members":{}}},"origins":{"ContainerRef":"./src/models","InfiniteScrollEvent":"./src/models","IPositionElements":"./src/models","IPositionStats":"./src/models","IResolver":"./src/models","InfiniteScrollDirective":"./src/modules/infinite-scroll.directive","InfiniteScrollModule":"./src/modules/ngx-infinite-scroll.module"},"importAs":"ngx-infinite-scroll"} | ||
{"__symbolic":"module","version":4,"metadata":{"ContainerRef":{"__symbolic":"interface"},"IInfiniteScrollEvent":{"__symbolic":"interface"},"IPositionElements":{"__symbolic":"interface"},"IPositionStats":{"__symbolic":"interface"},"IResolver":{"__symbolic":"interface"},"InfiniteScrollDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":18,"character":1},"arguments":[{"selector":"[infiniteScroll], [infinite-scroll], [data-infinite-scroll]"}]}],"members":{"scrolled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":23,"character":3}}]}],"scrolledUp":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":24,"character":3}}]}],"infiniteScrollDistance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"infiniteScrollUpDistance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"infiniteScrollThrottle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"infiniteScrollDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"infiniteScrollContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"scrollWindow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"immediateCheck":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"horizontal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"alwaysCallback":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"fromRoot":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":39,"character":31},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":39,"character":57}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"setup":[{"__symbolic":"method"}],"handleOnScroll":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"destroyScroller":[{"__symbolic":"method"}]}},"InfiniteScrollModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"InfiniteScrollDirective"}],"exports":[{"__symbolic":"reference","name":"InfiniteScrollDirective"}],"imports":[],"providers":[]}]}],"members":{}}},"origins":{"ContainerRef":"./src/models","IInfiniteScrollEvent":"./src/models","IPositionElements":"./src/models","IPositionStats":"./src/models","IResolver":"./src/models","InfiniteScrollDirective":"./src/modules/infinite-scroll.directive","InfiniteScrollModule":"./src/modules/ngx-infinite-scroll.module"},"importAs":"ngx-infinite-scroll"} |
{ | ||
"name": "ngx-infinite-scroll", | ||
"version": "7.2.0", | ||
"version": "8.0.0", | ||
"description": "An infinite scroll directive for Angular compatible with AoT compilation and Tree shaking", | ||
@@ -38,14 +38,14 @@ "main": "./bundles/ngx-infinite-scroll.umd.js", | ||
"peerDependencies": { | ||
"@angular/common": ">= 7.0.0", | ||
"@angular/core": ">= 7.0.0" | ||
"@angular/common": ">= 8.0.0", | ||
"@angular/core": ">= 8.0.0" | ||
}, | ||
"devDependencies": { | ||
"@angular/animations": "^7.0.0", | ||
"@angular/common": "^7.0.0", | ||
"@angular/compiler": "^7.0.0", | ||
"@angular/compiler-cli": "^7.0.0", | ||
"@angular/core": "^7.0.0", | ||
"@angular/platform-browser": "^7.0.0", | ||
"@angular/platform-browser-dynamic": "^7.0.0", | ||
"@angular/platform-server": "^7.0.0", | ||
"@angular/animations": "^8.0.0", | ||
"@angular/common": "^8.0.0", | ||
"@angular/compiler": "^8.0.0", | ||
"@angular/compiler-cli": "^8.0.0", | ||
"@angular/core": "^8.0.0", | ||
"@angular/platform-browser": "^8.0.0", | ||
"@angular/platform-browser-dynamic": "^8.0.0", | ||
"@angular/platform-server": "^8.0.0", | ||
"@compodoc/compodoc": "^1.1.2", | ||
@@ -55,3 +55,3 @@ "@types/jasmine": "3.3.9", | ||
"chalk": "1.1.3", | ||
"codelyzer": "^4.3.0", | ||
"codelyzer": "5.1.0", | ||
"core-js": "2.4.1", | ||
@@ -74,8 +74,8 @@ "jasmine-core": "2.5.2", | ||
"tsickle": "^0.34.0", | ||
"tslint": "4.5.1", | ||
"typescript": "3.1.6", | ||
"tslint": "5.18.0", | ||
"typescript": "^3.1.1", | ||
"uglify-js": "^2.8.15", | ||
"webpack": "2.3.1", | ||
"yargs": "7.0.2", | ||
"zone.js": "^0.8.26" | ||
"zone.js": "0.9.1" | ||
}, | ||
@@ -82,0 +82,0 @@ "dependencies": { |
@@ -10,6 +10,7 @@ [![Build Status](https://travis-ci.org/orizens/ngx-infinite-scroll.svg?branch=master)](https://travis-ci.org/orizens/ngx-infinite-scroll) [![Backers on Open Collective](https://opencollective.com/ngx-infinite-scroll/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/ngx-infinite-scroll/sponsors/badge.svg)](#sponsors) | ||
versions now follow Angular's version to easily reflect compatibility. | ||
Meaning, for **Angular 7**, use `ngx-infinite-scroll @ ^7.0.0` | ||
Meaning, for **Angular 8**, use `ngx-infinite-scroll @ ^8.0.0` | ||
## Angular - Older Versions Support | ||
For **Angular 7** - `ngx-infinite-scroll@7.0.0` | ||
For **Angular 6** and **rxjs 6** - `ngx-infinite-scroll@6.0.0` | ||
@@ -61,6 +62,6 @@ For **Angular 4** and **Angular = ^5.5.6** - use version `ngx-infinite-scroll@0.8.4` | ||
| @Output() | Type | Event Type | Required | Description | | ||
| ---------- | ------------ | ------------------- | -------- | ------------------------------------------------------------------------------- | | ||
| scrolled | EventEmitter | InfiniteScrollEvent | optional | this will callback if the distance threshold has been reached on a scroll down. | | ||
| scrolledUp | EventEmitter | InfiniteScrollEvent | optional | this will callback if the distance threshold has been reached on a scroll up. | | ||
| @Output() | Type | Event Type | Required | Description | | ||
| ---------- | ------------ | -------------------- | -------- | ------------------------------------------------------------------------------- | | ||
| scrolled | EventEmitter | IInfiniteScrollEvent | optional | this will callback if the distance threshold has been reached on a scroll down. | | ||
| scrolledUp | EventEmitter | IInfiniteScrollEvent | optional | this will callback if the distance threshold has been reached on a scroll up. | | ||
@@ -67,0 +68,0 @@ ## Behavior |
import { ElementRef } from '@angular/core'; | ||
export declare type ContainerRef = Window | ElementRef | any; | ||
export interface InfiniteScrollEvent { | ||
export interface IInfiniteScrollEvent { | ||
currentScrollPosition: number; | ||
@@ -54,3 +54,3 @@ } | ||
type: string; | ||
payload: InfiniteScrollEvent; | ||
payload: IInfiniteScrollEvent; | ||
} |
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; | ||
import { InfiniteScrollEvent, IInfiniteScrollAction } from '../models'; | ||
import { IInfiniteScrollEvent, IInfiniteScrollAction } from '../models'; | ||
export declare class InfiniteScrollDirective implements OnDestroy, OnChanges, AfterViewInit { | ||
private element; | ||
private zone; | ||
scrolled: EventEmitter<InfiniteScrollEvent>; | ||
scrolledUp: EventEmitter<InfiniteScrollEvent>; | ||
scrolled: EventEmitter<IInfiniteScrollEvent>; | ||
scrolledUp: EventEmitter<IInfiniteScrollEvent>; | ||
infiniteScrollDistance: number; | ||
@@ -9,0 +9,0 @@ infiniteScrollUpDistance: number; |
@@ -1,3 +0,3 @@ | ||
export { ContainerRef, InfiniteScrollEvent, IPositionElements, IPositionStats, IResolver } from './models'; | ||
export { ContainerRef, IInfiniteScrollEvent, IPositionElements, IPositionStats, IResolver } from './models'; | ||
export { InfiniteScrollDirective } from './modules/infinite-scroll.directive'; | ||
export { InfiniteScrollModule } from './modules/ngx-infinite-scroll.module'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237518
260