All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
4.2.1 (2019-06-24)
- allow angular 8 peer dependency (9aa2a5b)
4.2.0 (2018-08-09)
- add closeOnOutsideClick input (1789efa)
4.1.1 (2018-06-16)
4.1.0 (2018-02-10)
4.0.0 (2017-12-24)
- remove deprecated
title
andmessage
options (872bc8f), closes #62 - upgrade to angular 5 (e463e8c)
- use ng-packagr for bundling the library (8bc9a0c)
- reverseButtonOrder: allow the button order to be reversed (a6ca883)
- reverseButtonOrder: By default the cancel button is on the left and the confirm button is on the right.
To get the old behaviour set
reverseButtonOrder
to true. Also flexbox is now required to use this package, so IE10 or higher is now required to use this package. - The umd bundle path has changed from
angular-confirmation-popover/dist/umd/angular-confirmation-popover.js
toangular-confirmation-popover/bundles/angular-confirmation-popover.umd.js
- angular 5 or higher is now required to use this package
- The
title
option has been renamed topopoverTitle
, andmessage
has been renamed topopoverMessage
3.4.2 (2017-12-24)
- isOpen: allow an external button click to open the popover (85be07d)
3.4.1 (2017-11-21)
- popoverMessage: make it work (2119556)
3.4.0 (2017-11-21)
3.3.0 (2017-11-20)
- add support for angular 5 (02c0048), closes #60
- make buttons behave as buttons (e1ffaa3), closes #58
3.2.0 (2017-08-28)
3.1.1 (2017-06-21)
3.1.0 (2017-03-25)
3.0.0 (2017-03-24)
- remove
<template>
deprecation warning (11f2820)
- angular 4.0 or higher is now required to use this module. The upgrade should be seamless for most users
2.1.3 (2017-03-23)
- loosen peer dependency to allow angular 4 (7e84d3c)
2.1.2 (2017-01-11)
- positioning: fix accidental breaking change for rollup users (db541cc)
2.1.1 (2017-01-07)
- downgrade typescript to fix error when consuming the library (f8ca343)
2.1.0 (2017-01-07)
2.0.3 (2016-11-08)
- aot: fix aot compilation (5d5818a)
2.0.2 (2016-11-08)
- fix default confirm text (b7bbced)
2.0.1 (2016-11-08)
- rename all internal directives, components and providers (356f545)
2.0.0 (2016-11-08)
- defaults: defaults are now configured by passing them via ConfirmModule.forRoot() (802c1ef)
- positioning: the position service is now bundled by default (c486999), closes #23
- rename ConfirmModule to ConfirmationPopoverModule (1da24d0)
- rename mwlConfirm to mwlConfirmationPopover (ef5fcf4)
- rename the npm package (d1cbaa5), closes #22
- the package name has been renamed from angular2-bootstrap-confirm to angular-confirmation-popover
- the directive selector has changed from mwlConfirm to mwlConfirmationPopover
- The ConfirmModule has been renamed to ConfirmationPopoverModule
- defaults: Before:
const defaults = new ConfirmOptions();
defaults.confirmButtonType = 'danger';
providers: [
{provide: ConfirmOptions, useValue: defaults}
]
After:
imports: [
ConfirmModule.forRoot({
confirmButtonType: 'danger'
})
]
- positioning: There is now no longer any exported
Position
token. To migrate just remove any references to it - aot: angular 2.1.2 or higher is now required for AOT to work
1.0.4 (2016-10-21)
- aot: export confirm directive (c543bf1)
1.0.3 (2016-10-21)
- aot: export focus directive (3f43e68)
1.0.2 (2016-09-28)
1.0.1 (2016-09-25)
- use correct module imports (261dec7)
1.0.0 (2016-09-25)
- position: export position service from index of the position folder (6c48a3e)
- position: Before:
import {Positioning} from 'angular2-bootstrap-confirm/position/position';
After:
import {Positioning} from 'angular2-bootstrap-confirm/position';
0.11.3 (2016-09-24)
- aot: remove private from methods used in templates (c5ad1d6)
0.11.2 (2016-09-24)
- aot: export popover component so aot works (599021a)
0.11.1 (2016-09-24)
- aot: fix typescript errors when using aot (6827be0)
0.11.0 (2016-09-24)
- build: support offline template compilation (b7d518d)
- build: For System.js users the path to the UMD files has changed:
Before:
node_modules/angular2-bootstrap-confirm/angular2-bootstrap-confirm.js
After:
node_modules/angular2-bootstrap-confirm/dist/umd/angular2-bootstrap-confirm.js
0.10.2 (2016-09-13)
- peerDependencies: allow any version of angular higher than RC5 (f6add7d)
0.10.1 (2016-09-01)
- angular2: fix peer dependency to allow for RC6 (a85cf87)
0.10.0 (2016-08-12)
- upgrade to angular RC5 (040010d)
- A peer dependency of angular RC5 is now required.
The ConfirmPopover
component and Confirm
directive are now no longer exported. Instead you must use the new ConfirmModule
module in your apps module like so:
import {NgModule} from '@angular/core';
import {ConfirmModule} from 'angular2-bootstrap-confirm';
@NgModule({
declarations: [MyComponent],
imports: [ConfirmModule],
bootstrap: [MyComponent]
})
class MyModule {}
0.9.1 (2016-08-04)
- position: fix positionining typings (80a51d3)
0.9.0 (2016-08-04)
- position: change the recommended positioning service (d2a780b)
- position: The exported service name from the
angular2-bootstrap-confirm/position/position
file has changed fromPositionService
toPositioning
. To migrate:
Before
import {PositionService} from 'angular2-bootstrap-confirm/position/position';
After:
import {Positioning} from 'angular2-bootstrap-confirm/position/position';
0.8.1 (2016-07-02)
- rebuild with typescript stable instead of nightly
0.8.0 (2016-07-02)
- use
ComponentFactoryResolver
for creating the popover (99af89f) - mwlConfirm: renamed the selector of the mwlConfirm directive (54a013c)
- mwlFocus: rename focusOn to mwlFocus (5e3cbe7)
- mwlFocus: rename the mwlFocus directive selector to be camelcased (724ea47)
- mwlConfirm: the CSS selector of the directive has changed from
mwl-confirm
tomwlConfirm
- You must now add a
precompile: [ConfirmPopover]
, to any components metadata that uses the confirm directive like so:
import {Component} from '@angular/core';
import {Confirm, ConfirmOptions, ConfirmPopover, Position} from 'angular2-bootstrap-confirm';
@Component({
selector: 'my-component',
directives: [
Confirm
],
precompile: [
ConfirmPopover
],
...
})
class MyComponent {
}
- mwlFocus: focusOn has been removed in favour of binding directly to the mwlFocus selector. Only relevant if using a custom template.
Before:
mwlFocus [focusOn]="condition"
After
[mwlFocus]="condition"
- mwlFocus: the mwlFocus selector has changed from
mwl-focus
tomwlFocus
. Only relevant if using a custom template.
0.7.0 (2016-07-01)
- use new Compiler service for creating the popover (2707211)
- angular RC4 or higher is now required to use this module
0.6.0 (2016-06-25)
0.5.2 (2016-06-23)
0.5.1 (2016-06-22)
0.5.0 (2016-06-17)
- appendToBody: add support for appendToBody (6cfa171), closes #4
- popoverClass: allow a custom CSS class to be set on the popover (e5baed9)
- provide: remove deprecated provide usage (36f315f)
- provide: angular RC2 or greater is now required to use this module
0.4.1 (2016-05-19)
- angular-cli: add main module export for angular-cli (b8b77ac)
0.4.0 (2016-05-10)
ConfirmOptions: allow confirm options to be instantiated by angulars DI
- the constructor of ConfirmOptions now no longer takes an object of values.
This allows you to just pass ConfirmOptions
directly to the providers of your app or component and angular will instantiate it for you. e.g.
providers: [ConfirmOptions], // previously angular would throw and you'd have to instantiate it yourself with useFactory
To migrate:
Before:
const options = new ConfirmOptions({
focusButton: 'confirm'
});
After:
const options = new ConfirmOptions();
Object.assign(options, {
focusButton: 'confirm'
});
0.3.3 (2016-05-09)
- dont bundle angular common module with the dist files(9b03f61)
0.3.2 (2016-05-09)
- fix typescript error that prevented the module from being imported(252e83e)
0.3.1 (2016-05-09)
- test release of the new publishing script and to update the npm readme
0.3.0 (2016-05-07)
- 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})
0.2.0 (2016-05-07)
- angular2: upgrade to angular2 RC1 (d4d3c6b)
- buttons: allow hiding of the confirm / cancel buttons (540b965), closes #10
- position: provide a bundled copy of the position service so ng2-bootstrap isn't required as a peer dependency (37b295f)
- allow usage without a module bundler by providing a standalone position bundle (9ebae67), closes #8
- add bootstrap v4 classes (3f4959f2)
- position: you now need to provide the position service for the directive to use like so:
import {provide} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
import {Confirm, ConfirmOptions, PositionService} from 'angular2-bootstrap-confirm';
import {PositionService as Ng2PositionService} 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';
bootstrap(MyApp, [
provide(PositionService, {useClass: Ng2PositionService})
]);
- angular2: a peer dependency of angular2 RC1 is now required
Initial release