From d1cbaa51244b88685d9295823b9d370c751cd6d2 Mon Sep 17 00:00:00 2001 From: Matt Lewis Date: Tue, 8 Nov 2016 16:09:43 +0000 Subject: [PATCH] feat: rename the npm package BREAKING CHANGE: the package name has been renamed from angular2-bootstrap-confirm to angular-confirmation-popover Closes #22 --- CHANGELOG.md | 122 +++++++++--------- README.md | 32 ++--- demo/index.html | 8 +- karma.conf.ts | 4 +- package.json | 16 ++- ...s => angular-confirmation-popover.spec.ts} | 0 webpack.config.umd.ts | 4 +- 7 files changed, 94 insertions(+), 92 deletions(-) rename test/{angular2-bootstrap-confirm.spec.ts => angular-confirmation-popover.spec.ts} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1978e16..b26c90a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,52 +3,52 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. -## [1.0.4](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v1.0.3...v1.0.4) (2016-10-21) +## [1.0.4](https://github.com/mattlewis92/angular-confirmation-popover/compare/v1.0.3...v1.0.4) (2016-10-21) ### Bug Fixes -* **aot:** export confirm directive ([c543bf1](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/c543bf1)) +* **aot:** export confirm directive ([c543bf1](https://github.com/mattlewis92/angular-confirmation-popover/commit/c543bf1)) -## [1.0.3](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v1.0.2...v1.0.3) (2016-10-21) +## [1.0.3](https://github.com/mattlewis92/angular-confirmation-popover/compare/v1.0.2...v1.0.3) (2016-10-21) ### Bug Fixes -* **aot:** export focus directive ([3f43e68](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/3f43e68)) +* **aot:** export focus directive ([3f43e68](https://github.com/mattlewis92/angular-confirmation-popover/commit/3f43e68)) -## [1.0.2](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v1.0.1...v1.0.2) (2016-09-28) +## [1.0.2](https://github.com/mattlewis92/angular-confirmation-popover/compare/v1.0.1...v1.0.2) (2016-09-28) ### Bug Fixes -* **typings:** don't include references to core-js ([a82acb4](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/a82acb4)), closes [#20](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues/20) +* **typings:** don't include references to core-js ([a82acb4](https://github.com/mattlewis92/angular-confirmation-popover/commit/a82acb4)), closes [#20](https://github.com/mattlewis92/angular-confirmation-popover/issues/20) -## [1.0.1](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v1.0.0...v1.0.1) (2016-09-25) +## [1.0.1](https://github.com/mattlewis92/angular-confirmation-popover/compare/v1.0.0...v1.0.1) (2016-09-25) ### Bug Fixes -* use correct module imports ([261dec7](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/261dec7)) +* use correct module imports ([261dec7](https://github.com/mattlewis92/angular-confirmation-popover/commit/261dec7)) -# [1.0.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.11.3...v1.0.0) (2016-09-25) +# [1.0.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.11.3...v1.0.0) (2016-09-25) ### Features -* **position:** export position service from index of the position folder ([6c48a3e](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/6c48a3e)) +* **position:** export position service from index of the position folder ([6c48a3e](https://github.com/mattlewis92/angular-confirmation-popover/commit/6c48a3e)) ### BREAKING CHANGES @@ -66,42 +66,42 @@ import {Positioning} from 'angular2-bootstrap-confirm/position'; -## [0.11.3](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.11.2...v0.11.3) (2016-09-24) +## [0.11.3](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.11.2...v0.11.3) (2016-09-24) ### Bug Fixes -* **aot:** remove private from methods used in templates ([c5ad1d6](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/c5ad1d6)) +* **aot:** remove private from methods used in templates ([c5ad1d6](https://github.com/mattlewis92/angular-confirmation-popover/commit/c5ad1d6)) -## [0.11.2](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.11.1...v0.11.2) (2016-09-24) +## [0.11.2](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.11.1...v0.11.2) (2016-09-24) ### Bug Fixes -* **aot:** export popover component so aot works ([599021a](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/599021a)) +* **aot:** export popover component so aot works ([599021a](https://github.com/mattlewis92/angular-confirmation-popover/commit/599021a)) -## [0.11.1](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.11.0...v0.11.1) (2016-09-24) +## [0.11.1](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.11.0...v0.11.1) (2016-09-24) ### Bug Fixes -* **aot:** fix typescript errors when using aot ([6827be0](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/6827be0)) +* **aot:** fix typescript errors when using aot ([6827be0](https://github.com/mattlewis92/angular-confirmation-popover/commit/6827be0)) -# [0.11.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.10.2...v0.11.0) (2016-09-24) +# [0.11.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.10.2...v0.11.0) (2016-09-24) ### Features -* **build:** support offline template compilation ([b7d518d](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/b7d518d)) +* **build:** support offline template compilation ([b7d518d](https://github.com/mattlewis92/angular-confirmation-popover/commit/b7d518d)) ### BREAKING CHANGES @@ -121,32 +121,32 @@ node_modules/angular2-bootstrap-confirm/dist/umd/angular2-bootstrap-confirm.js -## [0.10.2](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.10.1...v0.10.2) (2016-09-13) +## [0.10.2](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.10.1...v0.10.2) (2016-09-13) ### Bug Fixes -* **peerDependencies:** allow any version of angular higher than RC5 ([f6add7d](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/f6add7d)) +* **peerDependencies:** allow any version of angular higher than RC5 ([f6add7d](https://github.com/mattlewis92/angular-confirmation-popover/commit/f6add7d)) -## [0.10.1](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.10.0...v0.10.1) (2016-09-01) +## [0.10.1](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.10.0...v0.10.1) (2016-09-01) ### Bug Fixes -* **angular2:** fix peer dependency to allow for RC6 ([a85cf87](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/a85cf87)) +* **angular2:** fix peer dependency to allow for RC6 ([a85cf87](https://github.com/mattlewis92/angular-confirmation-popover/commit/a85cf87)) -# [0.10.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.9.1...v0.10.0) (2016-08-12) +# [0.10.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.9.1...v0.10.0) (2016-08-12) ### Features -* upgrade to angular RC5 ([040010d](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/040010d)) +* upgrade to angular RC5 ([040010d](https://github.com/mattlewis92/angular-confirmation-popover/commit/040010d)) ### BREAKING CHANGES @@ -170,22 +170,22 @@ class MyModule {} -## [0.9.1](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.9.0...v0.9.1) (2016-08-04) +## [0.9.1](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.9.0...v0.9.1) (2016-08-04) ### Bug Fixes -* **position:** fix positionining typings ([80a51d3](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/80a51d3)) +* **position:** fix positionining typings ([80a51d3](https://github.com/mattlewis92/angular-confirmation-popover/commit/80a51d3)) -# [0.9.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.8.1...v0.9.0) (2016-08-04) +# [0.9.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.8.1...v0.9.0) (2016-08-04) ### Features -* **position:** change the recommended positioning service ([d2a780b](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/d2a780b)) +* **position:** change the recommended positioning service ([d2a780b](https://github.com/mattlewis92/angular-confirmation-popover/commit/d2a780b)) ### BREAKING CHANGES @@ -205,20 +205,20 @@ import {Positioning} from 'angular2-bootstrap-confirm/position/position'; -## [0.8.1](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.8.0...v0.8.1) (2016-07-02) +## [0.8.1](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.8.0...v0.8.1) (2016-07-02) * rebuild with typescript stable instead of nightly -# [0.8.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.7.0...v0.8.0) (2016-07-02) +# [0.8.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.7.0...v0.8.0) (2016-07-02) ### Features -* use `ComponentFactoryResolver` for creating the popover ([99af89f](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/99af89f)) -* **mwlConfirm:** renamed the selector of the mwlConfirm directive ([54a013c](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/54a013c)) -* **mwlFocus:** rename focusOn to mwlFocus ([5e3cbe7](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/5e3cbe7)) -* **mwlFocus:** rename the mwlFocus directive selector to be camelcased ([724ea47](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/724ea47)) +* use `ComponentFactoryResolver` for creating the popover ([99af89f](https://github.com/mattlewis92/angular-confirmation-popover/commit/99af89f)) +* **mwlConfirm:** renamed the selector of the mwlConfirm directive ([54a013c](https://github.com/mattlewis92/angular-confirmation-popover/commit/54a013c)) +* **mwlFocus:** rename focusOn to mwlFocus ([5e3cbe7](https://github.com/mattlewis92/angular-confirmation-popover/commit/5e3cbe7)) +* **mwlFocus:** rename the mwlFocus directive selector to be camelcased ([724ea47](https://github.com/mattlewis92/angular-confirmation-popover/commit/724ea47)) ### BREAKING CHANGES @@ -260,12 +260,12 @@ After -# [0.7.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.6.0...v0.7.0) (2016-07-01) +# [0.7.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.6.0...v0.7.0) (2016-07-01) ### Features -* use new Compiler service for creating the popover ([2707211](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/2707211)) +* use new Compiler service for creating the popover ([2707211](https://github.com/mattlewis92/angular-confirmation-popover/commit/2707211)) ### BREAKING CHANGES @@ -275,39 +275,39 @@ After -# [0.6.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.5.2...v0.6.0) (2016-06-25) +# [0.6.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.5.2...v0.6.0) (2016-06-25) ### Features -* **customTemplate:** allow a custom template to be used for the popover ([ce7fec6](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/ce7fec6)), closes [#6](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues/6) +* **customTemplate:** allow a custom template to be used for the popover ([ce7fec6](https://github.com/mattlewis92/angular-confirmation-popover/commit/ce7fec6)), closes [#6](https://github.com/mattlewis92/angular-confirmation-popover/issues/6) -## [0.5.2](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.5.1...v0.5.2) (2016-06-23) +## [0.5.2](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.5.1...v0.5.2) (2016-06-23) ### Bug Fixes -* **isOpen:** fix isOpen attribute that when set would break this module ([fe5516d](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/fe5516d)), closes [#14](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues/14) +* **isOpen:** fix isOpen attribute that when set would break this module ([fe5516d](https://github.com/mattlewis92/angular-confirmation-popover/commit/fe5516d)), closes [#14](https://github.com/mattlewis92/angular-confirmation-popover/issues/14) -## [0.5.1](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.5.0...v0.5.1) (2016-06-22) +## [0.5.1](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.5.0...v0.5.1) (2016-06-22) -# [0.5.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.4.1...v0.5.0) (2016-06-17) +# [0.5.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.4.1...v0.5.0) (2016-06-17) ### Features -* **appendToBody:** add support for appendToBody ([6cfa171](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/6cfa171)), closes [#4](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues/4) -* **popoverClass:** allow a custom CSS class to be set on the popover ([e5baed9](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/e5baed9)) -* **provide:** remove deprecated provide usage ([36f315f](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/36f315f)) +* **appendToBody:** add support for appendToBody ([6cfa171](https://github.com/mattlewis92/angular-confirmation-popover/commit/6cfa171)), closes [#4](https://github.com/mattlewis92/angular-confirmation-popover/issues/4) +* **popoverClass:** allow a custom CSS class to be set on the popover ([e5baed9](https://github.com/mattlewis92/angular-confirmation-popover/commit/e5baed9)) +* **provide:** remove deprecated provide usage ([36f315f](https://github.com/mattlewis92/angular-confirmation-popover/commit/36f315f)) ### BREAKING CHANGES @@ -317,17 +317,17 @@ After -## [0.4.1](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.4.0...v0.4.1) (2016-05-19) +## [0.4.1](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.4.0...v0.4.1) (2016-05-19) ### Bug Fixes -* **angular-cli:** add main module export for angular-cli ([b8b77ac](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/b8b77ac)) +* **angular-cli:** add main module export for angular-cli ([b8b77ac](https://github.com/mattlewis92/angular-confirmation-popover/commit/b8b77ac)) -## [0.4.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.3.3...v0.4.0) (2016-05-10) +## [0.4.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.3.3...v0.4.0) (2016-05-10) ### Features @@ -362,37 +362,37 @@ Object.assign(options, { -## [0.3.3](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.3.2...v0.3.3) (2016-05-09) +## [0.3.3](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.3.2...v0.3.3) (2016-05-09) ### Bug Fixes -* dont bundle angular common module with the dist files([9b03f61](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/9b03f61)) +* dont bundle angular common module with the dist files([9b03f61](https://github.com/mattlewis92/angular-confirmation-popover/commit/9b03f61)) -## [0.3.2](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.3.1...v0.3.2) (2016-05-09) +## [0.3.2](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.3.1...v0.3.2) (2016-05-09) ### Bug Fixes -* fix typescript error that prevented the module from being imported([252e83e](https://github.com/mattlewis92/angular2-bootstrap-confirm/commit/252e83e)) +* fix typescript error that prevented the module from being imported([252e83e](https://github.com/mattlewis92/angular-confirmation-popover/commit/252e83e)) -## [0.3.1](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/0.3.0...v0.3.1) (2016-05-09) +## [0.3.1](https://github.com/mattlewis92/angular-confirmation-popover/compare/0.3.0...v0.3.1) (2016-05-09) * test release of the new publishing script and to update the npm readme -# [0.3.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/0.2.0...v0.3.0) (2016-05-07) +# [0.3.0](https://github.com/mattlewis92/angular-confirmation-popover/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) +* **position:** rename PositionService to Position ([5c05e4e](https://github.com/mattlewis92/angular-confirmation-popover/commit/5c05e4e)), closes [#11](https://github.com/mattlewis92/angular-confirmation-popover/issues/11) ### BREAKING CHANGES @@ -407,16 +407,16 @@ provide(Position, {useClass: PositionService}) -# [0.2.0](https://github.com/mattlewis92/angular2-bootstrap-confirm/compare/v0.1.0...v0.2.0) (2016-05-07) +# [0.2.0](https://github.com/mattlewis92/angular-confirmation-popover/compare/v0.1.0...v0.2.0) (2016-05-07) ### Features -* **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)) +* **angular2:** upgrade to angular2 RC1 ([d4d3c6b](https://github.com/mattlewis92/angular-confirmation-popover/commit/d4d3c6b)) +* **buttons:** allow hiding of the confirm / cancel buttons ([540b965](https://github.com/mattlewis92/angular-confirmation-popover/commit/540b965)), closes [#10](https://github.com/mattlewis92/angular-confirmation-popover/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/angular-confirmation-popover/commit/37b295f)) +* allow usage without a module bundler by providing a standalone position bundle ([9ebae67](https://github.com/mattlewis92/angular-confirmation-popover/commit/9ebae67)), closes [#8](https://github.com/mattlewis92/angular-confirmation-popover/issues/8) +* add bootstrap v4 classes ([3f4959f2](https://github.com/mattlewis92/angular-confirmation-popover/commit/3f4959f2)) ### BREAKING CHANGES diff --git a/README.md b/README.md index 4ea7e11..7377867 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# Angular2 bootstrap confirm -[![Build Status](https://travis-ci.org/mattlewis92/angular2-bootstrap-confirm.svg?branch=master)](https://travis-ci.org/mattlewis92/angular2-bootstrap-confirm) -[![npm version](https://badge.fury.io/js/angular2-bootstrap-confirm.svg)](http://badge.fury.io/js/angular2-bootstrap-confirm) -[![devDependency Status](https://david-dm.org/mattlewis92/angular2-bootstrap-confirm/dev-status.svg)](https://david-dm.org/mattlewis92/angular2-bootstrap-confirm#info=devDependencies) -[![GitHub issues](https://img.shields.io/github/issues/mattlewis92/angular2-bootstrap-confirm.svg)](https://github.com/mattlewis92/angular2-bootstrap-confirm/issues) -[![GitHub stars](https://img.shields.io/github/stars/mattlewis92/angular2-bootstrap-confirm.svg)](https://github.com/mattlewis92/angular2-bootstrap-confirm/stargazers) -[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/mattlewis92/angular2-bootstrap-confirm/master/LICENSE) +# Angular confirmation popover +[![Build Status](https://travis-ci.org/mattlewis92/angular-confirmation-popover.svg?branch=master)](https://travis-ci.org/mattlewis92/angular-confirmation-popover) +[![npm version](https://badge.fury.io/js/angular-confirmation-popover.svg)](http://badge.fury.io/js/angular-confirmation-popover) +[![devDependency Status](https://david-dm.org/mattlewis92/angular-confirmation-popover/dev-status.svg)](https://david-dm.org/mattlewis92/angular-confirmation-popover#info=devDependencies) +[![GitHub issues](https://img.shields.io/github/issues/mattlewis92/angular-confirmation-popover.svg)](https://github.com/mattlewis92/angular-confirmation-popover/issues) +[![GitHub stars](https://img.shields.io/github/stars/mattlewis92/angular-confirmation-popover.svg)](https://github.com/mattlewis92/angular-confirmation-popover/stargazers) +[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/mattlewis92/angular-confirmation-popover/master/LICENSE) ## Demo -https://mattlewis92.github.io/angular2-bootstrap-confirm/ +https://mattlewis92.github.io/angular-confirmation-popover/ ## Table of contents @@ -19,7 +19,7 @@ https://mattlewis92.github.io/angular2-bootstrap-confirm/ ## About -A simple angular2 directive to display a bootstrap styled confirmation popover when an element is clicked. +A simple angular 2.0+ directive to display a bootstrap styled confirmation popover when an element is clicked. Pull requests are welcome. @@ -29,14 +29,14 @@ Pull requests are welcome. Install through npm: ``` -npm install --save angular2-bootstrap-confirm +npm install --save angular-confirmation-popover ``` Then use it in your app on a component: ```typescript import {NgModule, Component} from '@angular/core'; -import {ConfirmationPopoverModule} from 'angular2-bootstrap-confirm'; +import {ConfirmationPopoverModule} from 'angular-confirmation-popover'; // first add it to your apps module @NgModule({ @@ -77,13 +77,13 @@ class MyComponent { ``` -You may also find it useful to view the [demo source](https://github.com/mattlewis92/angular2-bootstrap-confirm/blob/master/demo/demo.ts). +You may also find it useful to view the [demo source](https://github.com/mattlewis92/angular-confirmation-popover/blob/master/demo/demo.ts). ### Usage without a module bundler ``` - + ``` @@ -96,9 +96,9 @@ You will need to add this line in your server bootstrap code to get this module ## Documentation All documentation is auto-generated from the source via typedoc and can be viewed here: -https://mattlewis92.github.io/angular2-bootstrap-confirm/docs/ +https://mattlewis92.github.io/angular-confirmation-popover/docs/ -The main confirm directive options can be viewed [here](https://mattlewis92.github.io/angular2-bootstrap-confirm/docs/classes/confirm.html). +The main confirm directive options can be viewed [here](https://mattlewis92.github.io/angular-confirmation-popover/docs/classes/confirm.html). ## Development diff --git a/demo/index.html b/demo/index.html index 6871877..8b2938b 100644 --- a/demo/index.html +++ b/demo/index.html @@ -8,7 +8,7 @@ -
diff --git a/karma.conf.ts b/karma.conf.ts index 4361bb0..31825dd 100644 --- a/karma.conf.ts +++ b/karma.conf.ts @@ -13,7 +13,7 @@ module.exports = function(config) { // list of files / patterns to load in the browser files: [ - 'test/angular2-bootstrap-confirm.spec.ts' + 'test/angular-confirmation-popover.spec.ts' ], // list of files to exclude @@ -23,7 +23,7 @@ module.exports = function(config) { // preprocess matching files before serving them to the browser // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { - 'test/angular2-bootstrap-confirm.spec.ts': ['webpack', 'sourcemap'] + 'test/angular-confirmation-popover.spec.ts': ['webpack', 'sourcemap'] }, webpack: { diff --git a/package.json b/package.json index 4736663..7e45974 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "angular2-bootstrap-confirm", + "name": "angular-confirmation-popover", "version": "1.0.4", - "description": "An angular2 bootstrap confirmation popover", - "main": "./dist/umd/angular2-bootstrap-confirm.js", + "description": "An angular 2.0+ bootstrap confirmation popover", + "main": "./dist/umd/angular-confirmation-popover.js", "module": "./dist/esm/src/index.js", "typings": "./dist/esm/src/index.d.ts", "scripts": { @@ -24,20 +24,22 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/mattlewis92/angular2-bootstrap-confirm.git" + "url": "git+https://github.com/mattlewis92/angular-confirmation-popover.git" }, "keywords": [ + "angular", "angular2", "bootstrap", "popover", - "confirm" + "confirm", + "confirmation" ], "author": "Matt Lewis", "license": "MIT", "bugs": { - "url": "https://github.com/mattlewis92/angular2-bootstrap-confirm/issues" + "url": "https://github.com/mattlewis92/angular-confirmation-popover/issues" }, - "homepage": "https://github.com/mattlewis92/angular2-bootstrap-confirm#readme", + "homepage": "https://github.com/mattlewis92/angular-confirmation-popover#readme", "devDependencies": { "@angular/common": "~2.1.1", "@angular/compiler": "~2.1.1", diff --git a/test/angular2-bootstrap-confirm.spec.ts b/test/angular-confirmation-popover.spec.ts similarity index 100% rename from test/angular2-bootstrap-confirm.spec.ts rename to test/angular-confirmation-popover.spec.ts diff --git a/webpack.config.umd.ts b/webpack.config.umd.ts index 760dd1c..1292ed9 100644 --- a/webpack.config.umd.ts +++ b/webpack.config.umd.ts @@ -2,9 +2,9 @@ module.exports = { entry: __dirname + '/src/index.ts', output: { path: __dirname + '/dist/umd', - filename: 'angular2-bootstrap-confirm.js', + filename: 'angular-confirmation-popover.js', libraryTarget: 'umd', - library: 'ng2BootstrapConfirm' + library: 'angularConfirmationPopover' }, externals: { '@angular/core': {