ng2-pagination
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -0,1 +1,5 @@ | ||
# 0.5.0 (2016-10-06) | ||
* Update codebase to **Angular 2.0.2** | ||
* Use the ngc compiler and include *.metadata.json files in dist package. | ||
### 0.4.1 (2016-09-09) | ||
@@ -2,0 +6,0 @@ * Fix missing exports & typo. |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -25,16 +16,17 @@ var common_1 = require('@angular/common'); | ||
} | ||
Ng2PaginationModule = __decorate([ | ||
core_1.NgModule({ | ||
imports: [common_1.CommonModule], | ||
declarations: [ | ||
paginate_pipe_1.PaginatePipe, | ||
pagination_controls_cmp_1.PaginationControlsCmp | ||
], | ||
providers: [pagination_service_1.PaginationService], | ||
exports: [paginate_pipe_1.PaginatePipe, pagination_controls_cmp_1.PaginationControlsCmp] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], Ng2PaginationModule); | ||
Ng2PaginationModule.decorators = [ | ||
{ type: core_1.NgModule, args: [{ | ||
imports: [common_1.CommonModule], | ||
declarations: [ | ||
paginate_pipe_1.PaginatePipe, | ||
pagination_controls_cmp_1.PaginationControlsCmp | ||
], | ||
providers: [pagination_service_1.PaginationService], | ||
exports: [paginate_pipe_1.PaginatePipe, pagination_controls_cmp_1.PaginationControlsCmp] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
Ng2PaginationModule.ctorParameters = []; | ||
return Ng2PaginationModule; | ||
}()); | ||
exports.Ng2PaginationModule = Ng2PaginationModule; |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require("@angular/core"); | ||
@@ -118,11 +109,14 @@ var pagination_service_1 = require("./pagination-service"); | ||
}; | ||
PaginatePipe = __decorate([ | ||
core_1.Pipe({ | ||
name: 'paginate', | ||
pure: false | ||
}), | ||
__metadata('design:paramtypes', [pagination_service_1.PaginationService]) | ||
], PaginatePipe); | ||
PaginatePipe.decorators = [ | ||
{ type: core_1.Pipe, args: [{ | ||
name: 'paginate', | ||
pure: false | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
PaginatePipe.ctorParameters = [ | ||
{ type: pagination_service_1.PaginationService, }, | ||
]; | ||
return PaginatePipe; | ||
}()); | ||
exports.PaginatePipe = PaginatePipe; |
@@ -17,3 +17,3 @@ import { EventEmitter, ChangeDetectorRef } from '@angular/core'; | ||
pages: IPage[]; | ||
private hasTemplate; | ||
hasTemplate: boolean; | ||
private changeSub; | ||
@@ -20,0 +20,0 @@ private _directionLinks; |
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var core_1 = require('@angular/core'); | ||
@@ -213,37 +204,25 @@ var pagination_service_1 = require("./pagination-service"); | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', String) | ||
], PaginationControlsCmp.prototype, "id", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Number) | ||
], PaginationControlsCmp.prototype, "maxSize", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Boolean) | ||
], PaginationControlsCmp.prototype, "directionLinks", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Boolean) | ||
], PaginationControlsCmp.prototype, "autoHide", null); | ||
__decorate([ | ||
core_1.Output(), | ||
__metadata('design:type', core_1.EventEmitter) | ||
], PaginationControlsCmp.prototype, "pageChange", void 0); | ||
__decorate([ | ||
core_1.ViewChild('template'), | ||
__metadata('design:type', Object) | ||
], PaginationControlsCmp.prototype, "template", void 0); | ||
PaginationControlsCmp = __decorate([ | ||
core_1.Component({ | ||
selector: 'pagination-controls', | ||
template: template_1.DEFAULT_TEMPLATE, | ||
styles: [template_1.DEFAULT_STYLES], | ||
changeDetection: core_1.ChangeDetectionStrategy.OnPush | ||
}), | ||
__metadata('design:paramtypes', [pagination_service_1.PaginationService, core_1.ChangeDetectorRef]) | ||
], PaginationControlsCmp); | ||
PaginationControlsCmp.decorators = [ | ||
{ type: core_1.Component, args: [{ | ||
selector: 'pagination-controls', | ||
template: template_1.DEFAULT_TEMPLATE, | ||
styles: [template_1.DEFAULT_STYLES], | ||
changeDetection: core_1.ChangeDetectionStrategy.OnPush | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
PaginationControlsCmp.ctorParameters = [ | ||
{ type: pagination_service_1.PaginationService, }, | ||
{ type: core_1.ChangeDetectorRef, }, | ||
]; | ||
PaginationControlsCmp.propDecorators = { | ||
'id': [{ type: core_1.Input },], | ||
'maxSize': [{ type: core_1.Input },], | ||
'directionLinks': [{ type: core_1.Input },], | ||
'autoHide': [{ type: core_1.Input },], | ||
'pageChange': [{ type: core_1.Output },], | ||
'template': [{ type: core_1.ViewChild, args: ['template',] },], | ||
}; | ||
return PaginationControlsCmp; | ||
}()); | ||
exports.PaginationControlsCmp = PaginationControlsCmp; |
@@ -30,3 +30,3 @@ import { EventEmitter } from '@angular/core'; | ||
private DEFAULT_ID; | ||
defaultId: string; | ||
readonly defaultId: string; | ||
register(instance: IPaginationInstance): void; | ||
@@ -33,0 +33,0 @@ /** |
{ | ||
"name": "ng2-pagination", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Pagination for Angular 2", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"build:system": "node node_modules/typescript/bin/tsc -p tsconfig.system.json", | ||
"build:cjs": "node node_modules/typescript/bin/tsc", | ||
"build:cjs": "ngc", | ||
"build": "npm run build:cjs && npm run build:system", | ||
@@ -37,8 +37,10 @@ "test": "karma start karma.conf.js", | ||
"devDependencies": { | ||
"@angular/common": "2.0.0-rc.6", | ||
"@angular/compiler": "2.0.0-rc.6", | ||
"@angular/core": "2.0.0-rc.6", | ||
"@angular/forms": "2.0.0-rc.6", | ||
"@angular/platform-browser": "2.0.0-rc.6", | ||
"@angular/platform-browser-dynamic": "2.0.0-rc.6", | ||
"@angular/common": "^2.0.2", | ||
"@angular/compiler": "^2.0.2", | ||
"@angular/compiler-cli": "^0.6.4", | ||
"@angular/core": "^2.0.2", | ||
"@angular/forms": "^2.0.2", | ||
"@angular/platform-browser": "^2.0.2", | ||
"@angular/platform-browser-dynamic": "^2.0.2", | ||
"@angular/platform-server": "^2.0.2", | ||
"bulma": "^0.0.14", | ||
@@ -61,12 +63,12 @@ "core-js": "^2.4.0", | ||
"reflect-metadata": "0.1.3", | ||
"rxjs": "5.0.0-beta.11", | ||
"rxjs": "5.0.0-beta.12", | ||
"sass-loader": "^3.1.2", | ||
"style-loader": "^0.13.1", | ||
"ts-loader": "^0.7.2", | ||
"typescript": "^1.8.0", | ||
"typescript": "2.0.3", | ||
"typings": "^1.0.4", | ||
"webpack": "^1.12.9", | ||
"zone.js": "0.6.17" | ||
"zone.js": "0.6.25" | ||
}, | ||
"dependencies": {} | ||
} |
81682
20
33
1273