Skip to content

Commit

Permalink
chore(*): prepare release 0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcScheib committed May 19, 2016
1 parent 8b4de3e commit 6c83118
Show file tree
Hide file tree
Showing 23 changed files with 203 additions and 134 deletions.
1 change: 1 addition & 0 deletions dist/amd/aurelia-notify.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ declare module 'aurelia-notify' {
}
export class NotificationService {
constructor(compositionEngine: CompositionEngine, container: Container, notificationRenderer: NotificationRenderer);
_getViewModel(compositionContext?: any): any;
notify(message: string, settings?: any, level?: string): any;
info(message: string, settings?: any): any;
success(message: string, settings?: any): any;
Expand Down
14 changes: 7 additions & 7 deletions dist/amd/notification-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ define(['exports', './lifecycle'], function (exports, _lifecycle) {

return (0, _lifecycle.invokeLifecycle)(this.viewModel, 'canDeactivate').then(function (canDeactivate) {
if (canDeactivate) {
return (0, _lifecycle.invokeLifecycle)(_this.viewModel, 'deactivate');
(0, _lifecycle.invokeLifecycle)(_this.viewModel, 'deactivate').then(function () {
return _this._renderer.hideNotification(_this);
}).then(function () {
return _this._renderer.destroyNotificationHost(_this);
}).then(function () {
_this.controller.unbind();
});
}
}).then(function () {
return _this._renderer.hideNotification(_this);
}).then(function () {
return _this._renderer.destroyNotificationHost(_this);
}).then(function () {
_this.controller.unbind();
});
};

Expand Down
18 changes: 9 additions & 9 deletions dist/amd/notification-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-framework', 'aurelia

return (0, _lifecycle.invokeLifecycle)(returnedCompositionContext.viewModel, 'canActivate', _settings.model).then(function (canActivate) {
if (canActivate) {
return _this.compositionEngine.createController(returnedCompositionContext);
_this.compositionEngine.createController(returnedCompositionContext).then(function (controller) {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return _this.notificationRenderer.createNotificationHost(notificationController);
}).then(function () {
return _this.notificationRenderer.showNotification(notificationController);
});
}
}).then(function (controller) {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return _this.notificationRenderer.createNotificationHost(notificationController);
}).then(function () {
return _this.notificationRenderer.showNotification(notificationController);
});
});
};
Expand Down
1 change: 1 addition & 0 deletions dist/aurelia-notify.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ declare module 'aurelia-notify' {
}
export class NotificationService {
constructor(compositionEngine: CompositionEngine, container: Container, notificationRenderer: NotificationRenderer);
_getViewModel(compositionContext?: any): any;
notify(message: string, settings?: any, level?: string): any;
info(message: string, settings?: any): any;
success(message: string, settings?: any): any;
Expand Down
38 changes: 22 additions & 16 deletions dist/aurelia-notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@ export class NotificationController {

return invokeLifecycle(this.viewModel, 'canDeactivate').then(canDeactivate => {
if (canDeactivate) {
return invokeLifecycle(this.viewModel, 'deactivate');
invokeLifecycle(this.viewModel, 'deactivate')
.then(() => {
return this._renderer.hideNotification(this);
})
.then(() => {
return this._renderer.destroyNotificationHost(this);
})
.then(() => {
this.controller.unbind();
});
}
}).then(() => {
return this._renderer.hideNotification(this);
}).then(() => {
return this._renderer.destroyNotificationHost(this);
}).then(() => {
this.controller.unbind();
});
}
}
Expand Down Expand Up @@ -188,20 +191,23 @@ export class NotificationService {

return invokeLifecycle(returnedCompositionContext.viewModel, 'canActivate', _settings.model).then(canActivate => {
if (canActivate) {
return this.compositionEngine.createController(returnedCompositionContext);
this.compositionEngine.createController(returnedCompositionContext)
.then(controller => {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return this.notificationRenderer.createNotificationHost(notificationController);
})
.then(() => {
return this.notificationRenderer.showNotification(notificationController);
});
}
}).then(controller => {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return this.notificationRenderer.createNotificationHost(notificationController);
}).then(() => {
return this.notificationRenderer.showNotification(notificationController);
});
});
}


info(message: string, settings?: any) {
this.notify(message, settings, NotificationLevel.info);
}
Expand Down
1 change: 1 addition & 0 deletions dist/commonjs/aurelia-notify.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ declare module 'aurelia-notify' {
}
export class NotificationService {
constructor(compositionEngine: CompositionEngine, container: Container, notificationRenderer: NotificationRenderer);
_getViewModel(compositionContext?: any): any;
notify(message: string, settings?: any, level?: string): any;
info(message: string, settings?: any): any;
success(message: string, settings?: any): any;
Expand Down
14 changes: 7 additions & 7 deletions dist/commonjs/notification-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ var NotificationController = exports.NotificationController = function () {

return (0, _lifecycle.invokeLifecycle)(this.viewModel, 'canDeactivate').then(function (canDeactivate) {
if (canDeactivate) {
return (0, _lifecycle.invokeLifecycle)(_this.viewModel, 'deactivate');
(0, _lifecycle.invokeLifecycle)(_this.viewModel, 'deactivate').then(function () {
return _this._renderer.hideNotification(_this);
}).then(function () {
return _this._renderer.destroyNotificationHost(_this);
}).then(function () {
_this.controller.unbind();
});
}
}).then(function () {
return _this._renderer.hideNotification(_this);
}).then(function () {
return _this._renderer.destroyNotificationHost(_this);
}).then(function () {
_this.controller.unbind();
});
};

Expand Down
18 changes: 9 additions & 9 deletions dist/commonjs/notification-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ var NotificationService = exports.NotificationService = (_dec = (0, _aureliaFram

return (0, _lifecycle.invokeLifecycle)(returnedCompositionContext.viewModel, 'canActivate', _settings.model).then(function (canActivate) {
if (canActivate) {
return _this.compositionEngine.createController(returnedCompositionContext);
_this.compositionEngine.createController(returnedCompositionContext).then(function (controller) {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return _this.notificationRenderer.createNotificationHost(notificationController);
}).then(function () {
return _this.notificationRenderer.showNotification(notificationController);
});
}
}).then(function (controller) {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return _this.notificationRenderer.createNotificationHost(notificationController);
}).then(function () {
return _this.notificationRenderer.showNotification(notificationController);
});
});
};
Expand Down
1 change: 1 addition & 0 deletions dist/es2015/aurelia-notify.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ declare module 'aurelia-notify' {
}
export class NotificationService {
constructor(compositionEngine: CompositionEngine, container: Container, notificationRenderer: NotificationRenderer);
_getViewModel(compositionContext?: any): any;
notify(message: string, settings?: any, level?: string): any;
info(message: string, settings?: any): any;
success(message: string, settings?: any): any;
Expand Down
14 changes: 7 additions & 7 deletions dist/es2015/notification-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export let NotificationController = class NotificationController {

return invokeLifecycle(this.viewModel, 'canDeactivate').then(canDeactivate => {
if (canDeactivate) {
return invokeLifecycle(this.viewModel, 'deactivate');
invokeLifecycle(this.viewModel, 'deactivate').then(() => {
return this._renderer.hideNotification(this);
}).then(() => {
return this._renderer.destroyNotificationHost(this);
}).then(() => {
this.controller.unbind();
});
}
}).then(() => {
return this._renderer.hideNotification(this);
}).then(() => {
return this._renderer.destroyNotificationHost(this);
}).then(() => {
this.controller.unbind();
});
}
};
18 changes: 9 additions & 9 deletions dist/es2015/notification-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ export let NotificationService = (_dec = inject(CompositionEngine, Container, No

return invokeLifecycle(returnedCompositionContext.viewModel, 'canActivate', _settings.model).then(canActivate => {
if (canActivate) {
return this.compositionEngine.createController(returnedCompositionContext);
this.compositionEngine.createController(returnedCompositionContext).then(controller => {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return this.notificationRenderer.createNotificationHost(notificationController);
}).then(() => {
return this.notificationRenderer.showNotification(notificationController);
});
}
}).then(controller => {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return this.notificationRenderer.createNotificationHost(notificationController);
}).then(() => {
return this.notificationRenderer.showNotification(notificationController);
});
});
}
Expand Down
1 change: 1 addition & 0 deletions dist/system/aurelia-notify.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ declare module 'aurelia-notify' {
}
export class NotificationService {
constructor(compositionEngine: CompositionEngine, container: Container, notificationRenderer: NotificationRenderer);
_getViewModel(compositionContext?: any): any;
notify(message: string, settings?: any, level?: string): any;
info(message: string, settings?: any): any;
success(message: string, settings?: any): any;
Expand Down
2 changes: 2 additions & 0 deletions dist/system/bs-notification.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

System.register(['aurelia-framework', './notification-controller'], function (_export, _context) {
"use strict";

var inject, NotificationController, _dec, _class, BSNotification;

function _classCallCheck(instance, Constructor) {
Expand Down
2 changes: 2 additions & 0 deletions dist/system/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

System.register(['./notification-renderer', './bs-notification', './notification-level', './notification-service', './notification-controller'], function (_export, _context) {
"use strict";

var globalSettings;
return {
setters: [function (_notificationRenderer) {
Expand Down
2 changes: 2 additions & 0 deletions dist/system/lifecycle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

System.register([], function (_export, _context) {
"use strict";

return {
setters: [],
execute: function () {
Expand Down
16 changes: 9 additions & 7 deletions dist/system/notification-controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

System.register(['./lifecycle'], function (_export, _context) {
"use strict";

var invokeLifecycle, NotificationController;

function _classCallCheck(instance, Constructor) {
Expand Down Expand Up @@ -29,14 +31,14 @@ System.register(['./lifecycle'], function (_export, _context) {

return invokeLifecycle(this.viewModel, 'canDeactivate').then(function (canDeactivate) {
if (canDeactivate) {
return invokeLifecycle(_this.viewModel, 'deactivate');
invokeLifecycle(_this.viewModel, 'deactivate').then(function () {
return _this._renderer.hideNotification(_this);
}).then(function () {
return _this._renderer.destroyNotificationHost(_this);
}).then(function () {
_this.controller.unbind();
});
}
}).then(function () {
return _this._renderer.hideNotification(_this);
}).then(function () {
return _this._renderer.destroyNotificationHost(_this);
}).then(function () {
_this.controller.unbind();
});
};

Expand Down
2 changes: 2 additions & 0 deletions dist/system/notification-level.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

System.register([], function (_export, _context) {
"use strict";

var NotificationLevel;
return {
setters: [],
Expand Down
2 changes: 2 additions & 0 deletions dist/system/notification-renderer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

System.register(['aurelia-templating', './bs-notification'], function (_export, _context) {
"use strict";

var ViewSlot, BSNotification, globalSettings, NotificationRenderer;

function _classCallCheck(instance, Constructor) {
Expand Down
20 changes: 11 additions & 9 deletions dist/system/notification-service.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

System.register(['aurelia-dependency-injection', 'aurelia-framework', 'aurelia-metadata', 'aurelia-templating', './lifecycle', './notification-controller', './notification-level', './notification-renderer'], function (_export, _context) {
"use strict";

var Container, inject, Origin, CompositionEngine, invokeLifecycle, NotificationController, NotificationLevel, NotificationRenderer, _dec, _class, NotificationService;

function _classCallCheck(instance, Constructor) {
Expand Down Expand Up @@ -76,16 +78,16 @@ System.register(['aurelia-dependency-injection', 'aurelia-framework', 'aurelia-m

return invokeLifecycle(returnedCompositionContext.viewModel, 'canActivate', _settings.model).then(function (canActivate) {
if (canActivate) {
return _this.compositionEngine.createController(returnedCompositionContext);
_this.compositionEngine.createController(returnedCompositionContext).then(function (controller) {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return _this.notificationRenderer.createNotificationHost(notificationController);
}).then(function () {
return _this.notificationRenderer.showNotification(notificationController);
});
}
}).then(function (controller) {
notificationController.controller = controller;
notificationController.view = controller.view;
controller.automate();

return _this.notificationRenderer.createNotificationHost(notificationController);
}).then(function () {
return _this.notificationRenderer.showNotification(notificationController);
});
});
};
Expand Down
Loading

0 comments on commit 6c83118

Please sign in to comment.