Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Feb 8, 2016
1 parent b360909 commit 4989960
Show file tree
Hide file tree
Showing 14 changed files with 2,792 additions and 1,366 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-templating",
"version": "1.0.0-beta.1.1.0",
"version": "1.0.0-beta.1.1.1",
"description": "An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.",
"keywords": [
"aurelia",
Expand Down
62 changes: 60 additions & 2 deletions dist/amd/aurelia-templating.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
declare module 'aurelia-templating' {
import 'core-js';
import * as LogManager from 'aurelia-logging';
import { DOM, PLATFORM, FEATURE } from 'aurelia-pal';
import { Origin, protocol, metadata } from 'aurelia-metadata';
import { relativeToFile } from 'aurelia-path';
import { TemplateRegistryEntry, Loader } from 'aurelia-loader';
import { DOM, PLATFORM, FEATURE } from 'aurelia-pal';
import { Binding, createOverrideContext, ValueConverterResource, BindingBehaviorResource, subscriberCollection, bindingMode, ObserverLocator, EventManager, createScopeForTest } from 'aurelia-binding';
import { Container, resolver, inject } from 'aurelia-dependency-injection';
import { TaskQueue } from 'aurelia-task-queue';
export interface EventHandler {
eventName: string;
bubbles: boolean;
dispose: Function;
handler: Function;
}

/**
* Specifies how a view should be created.
Expand Down Expand Up @@ -266,6 +272,52 @@ declare module 'aurelia-templating' {
unregisterEffect(effectName: string): void;
}

/**
* Dispatches subscribets to and publishes events in the DOM.
* @param element
*/
export class ElementEvents {
constructor(element: Element);

/**
* Dispatches an Event on the context element.
* @param eventName
* @param detail
* @param bubbles
* @param cancelable
*/
publish(eventName: string, detail?: Object, bubbles?: boolean, cancelable?: boolean): any;

/**
* Adds and Event Listener on the context element.
* @param eventName
* @param handler
* @param bubbles
* @return Returns the eventHandler containing a dispose method
*/
subscribe(eventName: string, handler: Function, bubbles?: boolean): EventHandler;

/**
* Adds an Event Listener on the context element, that will be disposed on the first trigger.
* @param eventName
* @param handler
* @param bubbles
* @return Returns the eventHandler containing a dispose method
*/
subscribeOnce(eventName: String, handler: Function, bubbles?: Boolean): EventHandler;

/**
* Removes all events that are listening to the specified eventName.
* @param eventName
*/
dispose(eventName: string): void;

/**
* Removes all event handlers.
*/
disposeAll(): any;
}

/**
* A context that flows through the view resource load process.
*/
Expand Down Expand Up @@ -1170,7 +1222,7 @@ declare module 'aurelia-templating' {
* @param instruction The instructions pertaining to the controller's behavior.
* @param viewModel The developer's view model instance which provides the custom behavior for this controller.
*/
constructor(behavior: HtmlBehaviorResource, instruction: BehaviorInstruction, viewModel: Object);
constructor(behavior: HtmlBehaviorResource, instruction: BehaviorInstruction, viewModel: Object, elementEvents?: ElementEvents);

/**
* Invoked when the view which contains this controller is created.
Expand Down Expand Up @@ -1501,6 +1553,12 @@ declare module 'aurelia-templating' {
*/
export function useShadowDOM(target?: any): any;

/**
* Decorator: Enables custom processing of the attributes on an element before the framework inspects them.
* @param processor Pass a function which can provide custom processing of the content.
*/
export function processAttributes(processor: Function): any;

/**
* Decorator: Enables custom processing of the content that is places inside the
* custom element by its consumer.
Expand Down
Loading

0 comments on commit 4989960

Please sign in to comment.