-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
deba8d9
commit 152af22
Showing
43 changed files
with
739 additions
and
1,502 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.