Socket
Socket
Sign inDemoInstall

angular2-virtual-scroll

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-virtual-scroll - npm Package Compare versions

Comparing version 0.0.9 to 0.1.0

dist/virtual-scroll.metadata.json

4

CHANGELOG.md
# v0.1.0
* Feature: [enable AoT #16](https://github.com/rintoj/angular2-virtual-scroll/issues/16)
# v0.0.9

@@ -3,0 +7,0 @@

17

dist/virtual-scroll.d.ts

@@ -1,2 +0,2 @@

import { ElementRef, EventEmitter, ModuleWithProviders, OnChanges, OnDestroy, OnInit, Renderer, SimpleChanges } from '@angular/core';
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer, SimpleChanges } from '@angular/core';
export interface ChangeEvent {

@@ -16,9 +16,9 @@ start?: number;

change: EventEmitter<ChangeEvent>;
protected contentElementRef: ElementRef;
private onScrollListener;
private topPadding;
private scrollHeight;
private previousStart;
private previousEnd;
private startupLoop;
contentElementRef: ElementRef;
onScrollListener: Function;
topPadding: number;
scrollHeight: number;
previousStart: number;
previousEnd: number;
startupLoop: boolean;
constructor(element: ElementRef, renderer: Renderer);

@@ -35,3 +35,2 @@ ngOnInit(): void;

export declare class VirtualScrollModule {
static forRoot(): ModuleWithProviders;
}

@@ -11,4 +11,4 @@ "use strict";

};
var core_1 = require('@angular/core');
var common_1 = require('@angular/common');
var core_1 = require("@angular/core");
var common_1 = require("@angular/common");
var VirtualScrollComponent = (function () {

@@ -122,44 +122,44 @@ function VirtualScrollComponent(element, renderer) {

};
__decorate([
core_1.Input(),
__metadata('design:type', Array)
], VirtualScrollComponent.prototype, "items", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Number)
], VirtualScrollComponent.prototype, "scrollbarWidth", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Number)
], VirtualScrollComponent.prototype, "scrollbarHeight", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Number)
], VirtualScrollComponent.prototype, "childWidth", void 0);
__decorate([
core_1.Input(),
__metadata('design:type', Number)
], VirtualScrollComponent.prototype, "childHeight", void 0);
__decorate([
core_1.Output(),
__metadata('design:type', core_1.EventEmitter)
], VirtualScrollComponent.prototype, "update", void 0);
__decorate([
core_1.Output(),
__metadata('design:type', core_1.EventEmitter)
], VirtualScrollComponent.prototype, "change", void 0);
__decorate([
core_1.ViewChild('content', { read: core_1.ElementRef }),
__metadata('design:type', core_1.ElementRef)
], VirtualScrollComponent.prototype, "contentElementRef", void 0);
VirtualScrollComponent = __decorate([
core_1.Component({
selector: 'virtual-scroll',
template: "\n <div class=\"total-padding\" [style.height]=\"scrollHeight + 'px'\"></div>\n <div class=\"scrollable-content\" #content [style.transform]=\"'translateY(' + topPadding + 'px)'\">\n <ng-content></ng-content>\n </div>\n ",
styles: ["\n :host {\n overflow: hidden;\n overflow-y: auto;\n position: relative;\n -webkit-overflow-scrolling: touch;\n }\n .scrollable-content {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n }\n .total-padding {\n width: 1px;\n opacity: 0;\n }\n "]
}),
__metadata('design:paramtypes', [core_1.ElementRef, core_1.Renderer])
], VirtualScrollComponent);
return VirtualScrollComponent;
}());
__decorate([
core_1.Input(),
__metadata("design:type", Array)
], VirtualScrollComponent.prototype, "items", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Number)
], VirtualScrollComponent.prototype, "scrollbarWidth", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Number)
], VirtualScrollComponent.prototype, "scrollbarHeight", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Number)
], VirtualScrollComponent.prototype, "childWidth", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Number)
], VirtualScrollComponent.prototype, "childHeight", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
], VirtualScrollComponent.prototype, "update", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
], VirtualScrollComponent.prototype, "change", void 0);
__decorate([
core_1.ViewChild('content', { read: core_1.ElementRef }),
__metadata("design:type", core_1.ElementRef)
], VirtualScrollComponent.prototype, "contentElementRef", void 0);
VirtualScrollComponent = __decorate([
core_1.Component({
selector: 'virtual-scroll',
template: "\n <div class=\"total-padding\" [style.height]=\"scrollHeight + 'px'\"></div>\n <div class=\"scrollable-content\" #content [style.transform]=\"'translateY(' + topPadding + 'px)'\">\n <ng-content></ng-content>\n </div>\n ",
styles: ["\n :host {\n overflow: hidden;\n overflow-y: auto;\n position: relative;\n -webkit-overflow-scrolling: touch;\n }\n .scrollable-content {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n }\n .total-padding {\n width: 1px;\n opacity: 0;\n }\n "]
}),
__metadata("design:paramtypes", [core_1.ElementRef, core_1.Renderer])
], VirtualScrollComponent);
exports.VirtualScrollComponent = VirtualScrollComponent;

@@ -169,19 +169,12 @@ var VirtualScrollModule = (function () {

}
VirtualScrollModule.forRoot = function () {
return {
ngModule: VirtualScrollModule,
providers: []
};
};
VirtualScrollModule = __decorate([
core_1.NgModule({
imports: [common_1.CommonModule],
exports: [VirtualScrollComponent],
declarations: [VirtualScrollComponent]
}),
__metadata('design:paramtypes', [])
], VirtualScrollModule);
return VirtualScrollModule;
}());
VirtualScrollModule = __decorate([
core_1.NgModule({
imports: [common_1.CommonModule],
exports: [VirtualScrollComponent],
declarations: [VirtualScrollComponent]
})
], VirtualScrollModule);
exports.VirtualScrollModule = VirtualScrollModule;
//# sourceMappingURL=virtual-scroll.js.map
{
"name": "angular2-virtual-scroll",
"version": "0.0.9",
"version": "0.1.0",
"description": "Angular 2 module for virtual -infinite- list. Supports multi-column",

@@ -8,3 +8,4 @@ "main": "dist/virtual-scroll.js",

"scripts": {
"build": "npm run tsc --",
"cleanup": "rimraf dist",
"build": "npm run cleanup && npm run ngc",
"lint": "tslint src/**/*.ts",

@@ -14,5 +15,5 @@ "prepublish": "npm run build",

"test": "npm test",
"tsc": "node_modules/typescript/bin/tsc",
"ngc": "ngc",
"tslint": "tslint",
"watch": "npm run tsc -- -w"
"watch": "ngc -- -w"
},

@@ -35,14 +36,20 @@ "repository": {

"devDependencies": {
"@angular/common": "2.1.1",
"@angular/compiler": "2.1.1",
"@angular/core": "2.1.1",
"@angular/platform-browser": "2.1.1",
"@angular/platform-browser-dynamic": "2.1.1",
"@angular/common": "~2.4.0",
"@angular/compiler": "~2.4.0",
"@angular/compiler-cli": "^2.4.1",
"@angular/core": "~2.4.0",
"@angular/forms": "~2.4.0",
"@angular/http": "~2.4.0",
"@angular/platform-browser": "~2.4.0",
"@angular/platform-browser-dynamic": "~2.4.0",
"@angular/router": "~3.4.0",
"@types/node": "6.0.45",
"codelyzer": "1.0.0-beta.2",
"rxjs": "5.0.0-beta.12",
"tslint": "3.15.1",
"typescript": "2.0.6",
"zone.js": "0.6.25"
"codelyzer": "^2.0.0",
"core-js": "^2.4.1",
"rimraf": "2.5.4",
"rxjs": "5.0.1",
"tslint": "^4.4.2",
"typescript": "^2.1.6",
"zone.js": "^0.7.4"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc