angular2-bootstrap-confirm
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -347,3 +347,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
}), | ||
__metadata('design:paramtypes', [core_1.ElementRef, core_1.Renderer, core_1.ChangeDetectorRef, position_provider_1.PositionService, confirmOptions_provider_1.PopoverConfirmOptions]) | ||
__metadata('design:paramtypes', [core_1.ElementRef, core_1.Renderer, core_1.ChangeDetectorRef, position_provider_1.Position, confirmOptions_provider_1.PopoverConfirmOptions]) | ||
], ConfirmPopover); | ||
@@ -370,13 +370,13 @@ return ConfirmPopover; | ||
var core_1 = __webpack_require__(2); | ||
var PositionService = (function () { | ||
function PositionService() { | ||
throw new Error('You must provide a service that implements the PositionService when bootstrapping your app.'); | ||
var Position = (function () { | ||
function Position() { | ||
throw new Error('You must provide a service that implements the Position when bootstrapping your app.'); | ||
} | ||
PositionService = __decorate([ | ||
Position = __decorate([ | ||
core_1.Injectable(), | ||
__metadata('design:paramtypes', []) | ||
], PositionService); | ||
return PositionService; | ||
], Position); | ||
return Position; | ||
}()); | ||
exports.PositionService = PositionService; | ||
exports.Position = Position; | ||
@@ -383,0 +383,0 @@ |
@@ -0,1 +1,21 @@ | ||
<a name="0.3.0"></a> | ||
# [0.3.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/0.2.0...v0.3.0) (2016-05-07) | ||
### Features | ||
* **position:** rename PositionService to Position ([5c05e4e](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/5c05e4e)), closes [#11](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues/11) | ||
### BREAKING CHANGES | ||
* position: PositionService has now been renamed to Position. Use it like so: | ||
``` | ||
import {Position} from 'angular2-bootstrap-confirm'; | ||
import {PositionService} from 'ng2-bootstrap/components/position'; | ||
provide(Position, {useClass: PositionService}) | ||
``` | ||
<a name="0.2.0"></a> | ||
@@ -7,7 +27,7 @@ # [0.2.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.1.0...v0.2.0) (2016-05-07) | ||
* **angular2:** upgrade to angular2 RC1([d4d3c6b](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/d4d3c6b)) | ||
* **buttons:** allow hiding of the confirm / cancel buttons([540b965](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/540b965)), closes [#10](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues/10) | ||
* **position:** provide a bundled copy of the position service so ng2-bootstrap isn't required as a([37b295f](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/37b295f)) | ||
* allow usage without a module bundler by providing a standalone position bundle([9ebae67](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/9ebae67)), closes [#8](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues/8) | ||
* add bootstrap v4 classes([3f4959f2](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/3f4959f2)) | ||
* **angular2:** upgrade to angular2 RC1 ([d4d3c6b](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/d4d3c6b)) | ||
* **buttons:** allow hiding of the confirm / cancel buttons ([540b965](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/540b965)), closes [#10](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues/10) | ||
* **position:** provide a bundled copy of the position service so ng2-bootstrap isn't required as a peer dependency ([37b295f](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/37b295f)) | ||
* allow usage without a module bundler by providing a standalone position bundle ([9ebae67](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/9ebae67)), closes [#8](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues/8) | ||
* add bootstrap v4 classes ([3f4959f2](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/3f4959f2)) | ||
@@ -32,3 +52,3 @@ ### BREAKING CHANGES | ||
0.1.0 | ||
_Initial release_ | ||
# 0.1.0 | ||
_Initial release_ |
{ | ||
"name": "angular2-bootstrap-confirm", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "An angular2 bootstrap confirmation popover", | ||
@@ -16,4 +16,4 @@ "main": "./angular2-bootstrap-confirm.js", | ||
"test:watch": "karma start --watch", | ||
"clean": "del ./src/*.d.ts ./demo/*.d.ts angular2-bootstrap-confirm.d.ts angular2-bootstrap-confirm.js* ./position", | ||
"prepublish": "npm run build:dist && npm run build:position", | ||
"clean": "del ./src/*.d.ts ./demo/*.d.ts ./test/*.d.ts angular2-bootstrap-confirm.d.ts angular2-bootstrap-confirm.js* ./position", | ||
"prepublish": "npm test && npm run build:dist && npm run build:position", | ||
"postpublish": "npm run clean", | ||
@@ -20,0 +20,0 @@ "commit": "git-cz", |
@@ -32,3 +32,3 @@ # Angular bootstrap confirm | ||
``` | ||
npm install --save angular2@2.0.0-beta.17 ng2-bootstrap@1 angular2-bootstrap-confirm | ||
npm install --save @angular/core@2.0.0-rc.1 angular2-bootstrap-confirm | ||
``` | ||
@@ -40,6 +40,6 @@ | ||
import {Component, provide} from '@angular/core'; | ||
import {Confirm, ConfirmOptions, PositionService} from 'angular2-bootstrap-confirm'; | ||
import {PositionService as Ng2PositionService} from 'ng2-bootstrap/components/position'; | ||
import {Confirm, ConfirmOptions, Position} from 'angular2-bootstrap-confirm'; | ||
import {PositionService} from 'ng2-bootstrap/components/position'; | ||
// Or if you don't want to depend on the ng2-bootstrap module, use the bundled position service: | ||
// import {PositionService as Ng2PositionService} from 'angular2-bootstrap-confirm/position/position'; | ||
// import {PositionService} from 'angular2-bootstrap-confirm/position/position'; | ||
@@ -50,3 +50,3 @@ @Component({ | ||
ConfirmOptions, | ||
provide(PositionService, {useClass: Ng2PositionService}) // this is required so you can use the bundled position service rather than rely on the `ng2-bootstrap` module | ||
provide(Position, {useClass: PositionService}) // this is required so you can use the bundled position service rather than rely on the `ng2-bootstrap` module | ||
], | ||
@@ -87,3 +87,3 @@ directives: [ | ||
// position service available as ng2BootstrapPosition.PositionService | ||
// confirm options, directive and position token available as ng2BootstrapConfirm.ConfirmOptions, ng2BootstrapConfirm.Confirm, ng2BootstrapConfirm.PositionService | ||
// confirm options, directive and position token available as ng2BootstrapConfirm.ConfirmOptions, ng2BootstrapConfirm.Confirm, ng2BootstrapConfirm.Position | ||
</script> | ||
@@ -90,0 +90,0 @@ ``` |
import { AfterViewInit, ElementRef, ChangeDetectorRef, Renderer } from '@angular/core'; | ||
import { PositionService } from './position.provider'; | ||
import { Position } from './position.provider'; | ||
import { PopoverConfirmOptions } from './confirmOptions.provider'; | ||
@@ -13,3 +13,3 @@ export declare class ConfirmPopover implements AfterViewInit { | ||
private popoverPosition; | ||
constructor(elm: ElementRef, renderer: Renderer, cdr: ChangeDetectorRef, position: PositionService, options: PopoverConfirmOptions); | ||
constructor(elm: ElementRef, renderer: Renderer, cdr: ChangeDetectorRef, position: Position, options: PopoverConfirmOptions); | ||
ngAfterViewInit(): void; | ||
@@ -16,0 +16,0 @@ private positionPopover(); |
@@ -1,4 +0,4 @@ | ||
export declare abstract class PositionService { | ||
export declare abstract class Position { | ||
constructor(); | ||
abstract positionElements(hostEl: any, targetEl: any, positionStr: any, appendToBody: any): any; | ||
} |
Sorry, the diff of this file is not supported yet
69282