Skip to content

Commit

Permalink
chore(*): prepare release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcScheib committed Jun 29, 2016
1 parent deba8d9 commit 152af22
Show file tree
Hide file tree
Showing 43 changed files with 739 additions and 1,502 deletions.
44 changes: 0 additions & 44 deletions dist/amd/aurelia-notify.d.ts

This file was deleted.

51 changes: 51 additions & 0 deletions dist/amd/aurelia-notify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
define(['exports', './bs-notification', './notification-level', './notification-service', './notification-controller', './notification-renderer'], function (exports, _bsNotification, _notificationLevel, _notificationService, _notificationController, _notificationRenderer) {
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
Object.keys(_bsNotification).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _bsNotification[key];
}
});
});
Object.keys(_notificationLevel).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _notificationLevel[key];
}
});
});
Object.keys(_notificationService).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _notificationService[key];
}
});
});
Object.keys(_notificationController).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _notificationController[key];
}
});
});
exports.configure = configure;
function configure(config, callback) {
config.globalResources('./bs-notification');

if (typeof callback === 'function') {
callback(_notificationRenderer.globalSettings);
}
}
});
16 changes: 6 additions & 10 deletions dist/amd/bs-notification.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
define(['exports', 'aurelia-framework', './notification-controller'], function (exports, _aureliaFramework, _notificationController) {
define(['exports', './notification-controller'], function (exports, _notificationController) {
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.BSNotification = undefined;

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}


var _dec, _class;
var _class, _temp;

var BSNotification = exports.BSNotification = (_dec = (0, _aureliaFramework.inject)(_notificationController.NotificationController), _dec(_class = function () {
var BSNotification = exports.BSNotification = (_temp = _class = function () {
function BSNotification(controller) {
_classCallCheck(this, BSNotification);


this.controller = controller;
}
Expand All @@ -27,5 +23,5 @@ define(['exports', 'aurelia-framework', './notification-controller'], function (
};

return BSNotification;
}()) || _class);
}(), _class.inject = [_notificationController.NotificationController], _temp);
});
41 changes: 3 additions & 38 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,16 @@
define(['exports', './bs-notification', './notification-level', './notification-service', './notification-controller', './notification-renderer'], function (exports, _bsNotification, _notificationLevel, _notificationService, _notificationController, _notificationRenderer) {
define(['exports', './aurelia-notify'], function (exports, _aureliaNotify) {
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
Object.keys(_bsNotification).forEach(function (key) {
Object.keys(_aureliaNotify).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _bsNotification[key];
return _aureliaNotify[key];
}
});
});
Object.keys(_notificationLevel).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _notificationLevel[key];
}
});
});
Object.keys(_notificationService).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _notificationService[key];
}
});
});
Object.keys(_notificationController).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _notificationController[key];
}
});
});
exports.configure = configure;
function configure(config, callback) {
config.globalResources('./bs-notification');

if (typeof callback === 'function') {
callback(_notificationRenderer.globalSettings);
}
}
});
8 changes: 2 additions & 6 deletions dist/amd/notification-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ define(['exports', './lifecycle'], function (exports, _lifecycle) {
});
exports.NotificationController = undefined;

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}


var NotificationController = exports.NotificationController = function () {
function NotificationController(renderer, settings) {
_classCallCheck(this, NotificationController);


this._renderer = renderer;
this.settings = settings;
Expand Down
20 changes: 8 additions & 12 deletions dist/amd/notification-renderer.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
define(['exports', 'aurelia-templating', './bs-notification'], function (exports, _aureliaTemplating, _bsNotification) {
define(['exports', 'aurelia-pal', 'aurelia-templating', './bs-notification'], function (exports, _aureliaPal, _aureliaTemplating, _bsNotification) {
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NotificationRenderer = exports.globalSettings = undefined;

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}


var globalSettings = exports.globalSettings = {
append: false,
Expand All @@ -27,7 +23,7 @@ define(['exports', 'aurelia-templating', './bs-notification'], function (exports
if (transition) return transition;

var t = void 0;
var el = document.createElement('fakeelement');
var el = _aureliaPal.DOM.createElement('fakeelement');
var transitions = {
'transition': 'transitionend',
'OTransition': 'oTransitionEnd',
Expand All @@ -47,7 +43,7 @@ define(['exports', 'aurelia-templating', './bs-notification'], function (exports

var NotificationRenderer = exports.NotificationRenderer = function () {
function NotificationRenderer() {
_classCallCheck(this, NotificationRenderer);


this.defaultSettings = globalSettings;

Expand All @@ -58,7 +54,7 @@ define(['exports', 'aurelia-templating', './bs-notification'], function (exports
var _this = this;

var settings = notificationController.settings;
var notificationHost = document.createElement('notification-host');
var notificationHost = _aureliaPal.DOM.createElement('notification-host');
var notificationContainer = this.getNotificationContainer(settings.containerSelector);

if (settings.append === true) {
Expand Down Expand Up @@ -139,12 +135,12 @@ define(['exports', 'aurelia-templating', './bs-notification'], function (exports
};

NotificationRenderer.prototype.getNotificationContainer = function getNotificationContainer(containerSelector) {
var notificationContainer = document.querySelector(containerSelector);
var notificationContainer = _aureliaPal.DOM.querySelectorAll(containerSelector);
if (notificationContainer === null) {
notificationContainer = document.body;
notificationContainer = _aureliaPal.DOM.querySelectorAll('body');
}

return notificationContainer;
return notificationContainer[0];
};

return NotificationRenderer;
Expand Down
16 changes: 6 additions & 10 deletions dist/amd/notification-service.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
define(['exports', 'aurelia-dependency-injection', 'aurelia-framework', 'aurelia-metadata', 'aurelia-templating', './lifecycle', './notification-controller', './notification-level', './notification-renderer'], function (exports, _aureliaDependencyInjection, _aureliaFramework, _aureliaMetadata, _aureliaTemplating, _lifecycle, _notificationController, _notificationLevel, _notificationRenderer) {
define(['exports', 'aurelia-dependency-injection', 'aurelia-metadata', 'aurelia-templating', './lifecycle', './notification-controller', './notification-level', './notification-renderer'], function (exports, _aureliaDependencyInjection, _aureliaMetadata, _aureliaTemplating, _lifecycle, _notificationController, _notificationLevel, _notificationRenderer) {
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NotificationService = undefined;

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}


var _dec, _class;
var _class, _temp;

var NotificationService = exports.NotificationService = (_dec = (0, _aureliaFramework.inject)(_aureliaTemplating.CompositionEngine, _aureliaDependencyInjection.Container, _notificationRenderer.NotificationRenderer), _dec(_class = function () {
var NotificationService = exports.NotificationService = (_temp = _class = function () {
function NotificationService(compositionEngine, container, notificationRenderer) {
_classCallCheck(this, NotificationService);


this.compositionEngine = compositionEngine;
this.container = container;
Expand Down Expand Up @@ -93,5 +89,5 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-framework', 'aurelia
};

return NotificationService;
}()) || _class);
}(), _class.inject = [_aureliaTemplating.CompositionEngine, _aureliaDependencyInjection.Container, _notificationRenderer.NotificationRenderer], _temp);
});
85 changes: 42 additions & 43 deletions dist/aurelia-notify.d.ts
Original file line number Diff line number Diff line change
@@ -1,44 +1,43 @@
declare module 'aurelia-notify' {
import {
inject
} from 'aurelia-framework';
import {
ViewSlot,
CompositionEngine
} from 'aurelia-templating';
import {
Container
} from 'aurelia-dependency-injection';
import {
Origin
} from 'aurelia-metadata';
export class BSNotification {
constructor(controller: NotificationController);
activate(model: any): any;
}
export function invokeLifecycle(instance: any, name: string, model: any): any;
export class NotificationController {
constructor(renderer: NotificationRenderer, settings: any);
close(): any;
}
export let NotificationLevel: any;
export let globalSettings: any;
export class NotificationRenderer {
defaultSettings: any;
constructor();
createNotificationHost(notificationController: NotificationController): any;
showNotification(notificationController: NotificationController): any;
hideNotification(notificationController: NotificationController): any;
destroyNotificationHost(notificationController: NotificationController): any;
getNotificationContainer(containerSelector: string): any;
}
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;
warning(message: string, settings?: any): any;
danger(message: string, settings?: any): any;
}
import {
DOM
} from 'aurelia-pal';
import {
ViewSlot,
CompositionEngine
} from 'aurelia-templating';
import {
Container
} from 'aurelia-dependency-injection';
import {
Origin
} from 'aurelia-metadata';
export declare let NotificationLevel: any;
export declare function invokeLifecycle(instance: any, name: string, model: any): any;
export declare class NotificationController {
constructor(renderer: NotificationRenderer, settings: any);
close(): any;
}
export declare class BSNotification {
static inject: any;
constructor(controller: NotificationController);
activate(model: any): any;
}
export declare let globalSettings: any;
export declare class NotificationRenderer {
defaultSettings: any;
constructor();
createNotificationHost(notificationController: NotificationController): any;
showNotification(notificationController: NotificationController): any;
hideNotification(notificationController: NotificationController): any;
destroyNotificationHost(notificationController: NotificationController): any;
getNotificationContainer(containerSelector: string): any;
}
export declare class NotificationService {
static inject: any;
constructor(compositionEngine: CompositionEngine, container: Container, notificationRenderer: NotificationRenderer);
notify(message: string, settings?: any, level?: string): any;
info(message: string, settings?: any): any;
success(message: string, settings?: any): any;
warning(message: string, settings?: any): any;
danger(message: string, settings?: any): any;
}
Loading

0 comments on commit 152af22

Please sign in to comment.