Skip to content

Commit

Permalink
chore(all): add latest build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
AureliaEffect committed Mar 19, 2019
1 parent e0f32bb commit d2da414
Show file tree
Hide file tree
Showing 9 changed files with 222 additions and 197 deletions.
80 changes: 41 additions & 39 deletions dist/amd/aurelia-templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};

var _class, _temp, _dec, _class2, _dec2, _class3, _dec3, _class4, _dec4, _class5, _dec5, _class6, _dec6, _class7, _class8, _temp2, _class9, _temp3, _class11, _dec7, _class13, _dec8, _class14, _class15, _temp4, _dec9, _class16, _dec10, _class17, _dec11, _class18;
var _class, _temp, _class2, _temp2, _dec, _class3, _dec2, _class4, _dec3, _class5, _dec4, _class6, _dec5, _class7, _dec6, _class8, _class9, _temp3, _class10, _temp4, _class12, _dec7, _class14, _dec8, _class15, _class16, _temp5, _dec9, _class17, _dec10, _class18, _dec11, _class19;



Expand Down Expand Up @@ -267,7 +267,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
return target ? deco(target) : deco;
}

var ElementEvents = exports.ElementEvents = function () {
var ElementEvents = exports.ElementEvents = (_temp = _class = function () {
function ElementEvents(element) {


Expand Down Expand Up @@ -301,21 +301,23 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
this.element.dispatchEvent(event);
};

ElementEvents.prototype.subscribe = function subscribe(eventName, handler) {
var captureOrOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

ElementEvents.prototype.subscribe = function subscribe(eventName, handler, captureOrOptions) {
if (typeof handler === 'function') {
if (captureOrOptions === undefined) {
captureOrOptions = ElementEvents.defaultListenerOptions;
}
var eventHandler = new EventHandlerImpl(this, eventName, handler, captureOrOptions, false);
return eventHandler;
}

return undefined;
};

ElementEvents.prototype.subscribeOnce = function subscribeOnce(eventName, handler) {
var captureOrOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

ElementEvents.prototype.subscribeOnce = function subscribeOnce(eventName, handler, captureOrOptions) {
if (typeof handler === 'function') {
if (captureOrOptions === undefined) {
captureOrOptions = ElementEvents.defaultListenerOptions;
}
var eventHandler = new EventHandlerImpl(this, eventName, handler, captureOrOptions, true);
return eventHandler;
}
Expand Down Expand Up @@ -346,7 +348,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return ElementEvents;
}();
}(), _class.defaultListenerOptions = true, _temp);

var EventHandlerImpl = function () {
function EventHandlerImpl(owner, eventName, handler, captureOrOptions, once) {
Expand Down Expand Up @@ -477,7 +479,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli

BehaviorInstruction.normal = new BehaviorInstruction();

var TargetInstruction = exports.TargetInstruction = (_temp = _class = function () {
var TargetInstruction = exports.TargetInstruction = (_temp2 = _class2 = function () {
function TargetInstruction() {

}
Expand Down Expand Up @@ -535,7 +537,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return TargetInstruction;
}(), _class.noExpressions = Object.freeze([]), _temp);
}(), _class2.noExpressions = Object.freeze([]), _temp2);


var tiProto = TargetInstruction.prototype;
Expand Down Expand Up @@ -577,7 +579,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
}
});

var RelativeViewStrategy = exports.RelativeViewStrategy = (_dec = viewStrategy(), _dec(_class2 = function () {
var RelativeViewStrategy = exports.RelativeViewStrategy = (_dec = viewStrategy(), _dec(_class3 = function () {
function RelativeViewStrategy(path) {


Expand All @@ -601,8 +603,8 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return RelativeViewStrategy;
}()) || _class2);
var ConventionalViewStrategy = exports.ConventionalViewStrategy = (_dec2 = viewStrategy(), _dec2(_class3 = function () {
}()) || _class3);
var ConventionalViewStrategy = exports.ConventionalViewStrategy = (_dec2 = viewStrategy(), _dec2(_class4 = function () {
function ConventionalViewStrategy(viewLocator, origin) {


Expand All @@ -616,8 +618,8 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return ConventionalViewStrategy;
}()) || _class3);
var NoViewStrategy = exports.NoViewStrategy = (_dec3 = viewStrategy(), _dec3(_class4 = function () {
}()) || _class4);
var NoViewStrategy = exports.NoViewStrategy = (_dec3 = viewStrategy(), _dec3(_class5 = function () {
function NoViewStrategy(dependencies, dependencyBaseUrl) {


Expand Down Expand Up @@ -656,8 +658,8 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return NoViewStrategy;
}()) || _class4);
var TemplateRegistryViewStrategy = exports.TemplateRegistryViewStrategy = (_dec4 = viewStrategy(), _dec4(_class5 = function () {
}()) || _class5);
var TemplateRegistryViewStrategy = exports.TemplateRegistryViewStrategy = (_dec4 = viewStrategy(), _dec4(_class6 = function () {
function TemplateRegistryViewStrategy(moduleId, entry) {


Expand All @@ -677,8 +679,8 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return TemplateRegistryViewStrategy;
}()) || _class5);
var InlineViewStrategy = exports.InlineViewStrategy = (_dec5 = viewStrategy(), _dec5(_class6 = function () {
}()) || _class6);
var InlineViewStrategy = exports.InlineViewStrategy = (_dec5 = viewStrategy(), _dec5(_class7 = function () {
function InlineViewStrategy(markup, dependencies, dependencyBaseUrl) {


Expand Down Expand Up @@ -715,8 +717,8 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return InlineViewStrategy;
}()) || _class6);
var StaticViewStrategy = exports.StaticViewStrategy = (_dec6 = viewStrategy(), _dec6(_class7 = function () {
}()) || _class7);
var StaticViewStrategy = exports.StaticViewStrategy = (_dec6 = viewStrategy(), _dec6(_class8 = function () {
function StaticViewStrategy(config) {


Expand Down Expand Up @@ -802,8 +804,8 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return StaticViewStrategy;
}()) || _class7);
var ViewLocator = exports.ViewLocator = (_temp2 = _class8 = function () {
}()) || _class8);
var ViewLocator = exports.ViewLocator = (_temp3 = _class9 = function () {
function ViewLocator() {

}
Expand Down Expand Up @@ -883,7 +885,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return ViewLocator;
}(), _class8.viewStrategyMetadataKey = 'aurelia:view-strategy', _temp2);
}(), _class9.viewStrategyMetadataKey = 'aurelia:view-strategy', _temp3);


function mi(name) {
Expand Down Expand Up @@ -1264,7 +1266,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
return ShadowSlot;
}();

var ShadowDOM = exports.ShadowDOM = (_temp3 = _class9 = function () {
var ShadowDOM = exports.ShadowDOM = (_temp4 = _class10 = function () {
function ShadowDOM() {

}
Expand Down Expand Up @@ -1350,7 +1352,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return ShadowDOM;
}(), _class9.defaultSlotKey = '__au-default-slot-key__', _temp3);
}(), _class10.defaultSlotKey = '__au-default-slot-key__', _temp4);


function register(lookup, name, resource, type) {
Expand Down Expand Up @@ -2312,7 +2314,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
return ViewSlot;
}();

var ProviderResolver = (0, _aureliaDependencyInjection.resolver)(_class11 = function () {
var ProviderResolver = (0, _aureliaDependencyInjection.resolver)(_class12 = function () {
function ProviderResolver() {

}
Expand All @@ -2323,7 +2325,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return ProviderResolver;
}()) || _class11;
}()) || _class12;

var providerResolverInstance = new ProviderResolver();

Expand Down Expand Up @@ -2770,7 +2772,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli

var defaultLetHandler = BindingLanguage.prototype.createLetExpressions;

var ViewCompiler = exports.ViewCompiler = (_dec7 = (0, _aureliaDependencyInjection.inject)(BindingLanguage, ViewResources), _dec7(_class13 = function () {
var ViewCompiler = exports.ViewCompiler = (_dec7 = (0, _aureliaDependencyInjection.inject)(BindingLanguage, ViewResources), _dec7(_class14 = function () {
function ViewCompiler(bindingLanguage, resources) {


Expand Down Expand Up @@ -3187,7 +3189,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return ViewCompiler;
}()) || _class13);
}()) || _class14);

var ResourceModule = exports.ResourceModule = function () {
function ResourceModule(moduleId) {
Expand Down Expand Up @@ -3476,7 +3478,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli

var auSlotBehavior = null;

var ViewEngine = exports.ViewEngine = (_dec8 = (0, _aureliaDependencyInjection.inject)(_aureliaLoader.Loader, _aureliaDependencyInjection.Container, ViewCompiler, ModuleAnalyzer, ViewResources), _dec8(_class14 = (_temp4 = _class15 = function () {
var ViewEngine = exports.ViewEngine = (_dec8 = (0, _aureliaDependencyInjection.inject)(_aureliaLoader.Loader, _aureliaDependencyInjection.Container, ViewCompiler, ModuleAnalyzer, ViewResources), _dec8(_class15 = (_temp5 = _class16 = function () {
function ViewEngine(loader, container, viewCompiler, moduleAnalyzer, appResources) {


Expand Down Expand Up @@ -3665,7 +3667,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return ViewEngine;
}(), _class15.viewModelRequireMetadataKey = 'aurelia:view-model-require', _temp4)) || _class14);
}(), _class16.viewModelRequireMetadataKey = 'aurelia:view-model-require', _temp5)) || _class15);

var Controller = exports.Controller = function () {
function Controller(behavior, instruction, viewModel, container) {
Expand Down Expand Up @@ -3838,7 +3840,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
return Controller;
}();

var BehaviorPropertyObserver = exports.BehaviorPropertyObserver = (_dec9 = (0, _aureliaBinding.subscriberCollection)(), _dec9(_class16 = function () {
var BehaviorPropertyObserver = exports.BehaviorPropertyObserver = (_dec9 = (0, _aureliaBinding.subscriberCollection)(), _dec9(_class17 = function () {
function BehaviorPropertyObserver(taskQueue, obj, propertyName, selfSubscriber, initialValue) {


Expand Down Expand Up @@ -3900,7 +3902,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return BehaviorPropertyObserver;
}()) || _class16);
}()) || _class17);


function getObserver(instance, name) {
Expand Down Expand Up @@ -4831,7 +4833,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
return context.viewModel.activate(context.model) || Promise.resolve();
}

var CompositionEngine = exports.CompositionEngine = (_dec10 = (0, _aureliaDependencyInjection.inject)(ViewEngine, ViewLocator), _dec10(_class17 = function () {
var CompositionEngine = exports.CompositionEngine = (_dec10 = (0, _aureliaDependencyInjection.inject)(ViewEngine, ViewLocator), _dec10(_class18 = function () {
function CompositionEngine(viewEngine, viewLocator) {


Expand Down Expand Up @@ -4997,7 +4999,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return CompositionEngine;
}()) || _class17);
}()) || _class18);

var ElementConfigResource = exports.ElementConfigResource = function () {
function ElementConfigResource() {
Expand Down Expand Up @@ -5209,7 +5211,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};
}

var TemplatingEngine = exports.TemplatingEngine = (_dec11 = (0, _aureliaDependencyInjection.inject)(_aureliaDependencyInjection.Container, ModuleAnalyzer, ViewCompiler, CompositionEngine), _dec11(_class18 = function () {
var TemplatingEngine = exports.TemplatingEngine = (_dec11 = (0, _aureliaDependencyInjection.inject)(_aureliaDependencyInjection.Container, ModuleAnalyzer, ViewCompiler, CompositionEngine), _dec11(_class19 = function () {
function TemplatingEngine(container, moduleAnalyzer, viewCompiler, compositionEngine) {


Expand Down Expand Up @@ -5253,5 +5255,5 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

return TemplatingEngine;
}()) || _class18);
}()) || _class19);
});
5 changes: 3 additions & 2 deletions dist/aurelia-templating.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ export declare function viewEngineHooks(target?: any): any;
* @param element
*/
export declare class ElementEvents {
static defaultListenerOptions: boolean | AddEventListenerOptions;
constructor(element: EventTarget);

/**
Expand All @@ -625,13 +626,13 @@ export declare class ElementEvents {
* Adds and Event Listener on the context element.
* @return Returns the eventHandler containing a dispose method
*/
subscribe(eventName: string, handler: Function, captureOrOptions?: boolean): EventHandler;
subscribe(eventName: string, handler: Function, captureOrOptions?: boolean | AddEventListenerOptions): EventHandler;

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

/**
* Removes all events that are listening to the specified eventName.
Expand Down
12 changes: 10 additions & 2 deletions dist/aurelia-templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ interface EventHandler {
* @param element
*/
export class ElementEvents {
static defaultListenerOptions: boolean | AddEventListenerOptions = true;

constructor(element: EventTarget) {
this.element = element;
this.subscriptions = {};
Expand Down Expand Up @@ -310,8 +312,11 @@ export class ElementEvents {
* Adds and Event Listener on the context element.
* @return Returns the eventHandler containing a dispose method
*/
subscribe(eventName: string, handler: Function, captureOrOptions?: boolean = true): EventHandler {
subscribe(eventName: string, handler: Function, captureOrOptions?: boolean | AddEventListenerOptions): EventHandler {
if (typeof handler === 'function') {
if (captureOrOptions === undefined) {
captureOrOptions = ElementEvents.defaultListenerOptions;
}
const eventHandler = new EventHandlerImpl(this, eventName, handler, captureOrOptions, false);
return eventHandler;
}
Expand All @@ -323,8 +328,11 @@ export class ElementEvents {
* Adds an Event Listener on the context element, that will be disposed on the first trigger.
* @return Returns the eventHandler containing a dispose method
*/
subscribeOnce(eventName: string, handler: Function, captureOrOptions?: boolean = true): EventHandler {
subscribeOnce(eventName: string, handler: Function, captureOrOptions?: boolean | AddEventListenerOptions): EventHandler {
if (typeof handler === 'function') {
if (captureOrOptions === undefined) {
captureOrOptions = ElementEvents.defaultListenerOptions;
}
const eventHandler = new EventHandlerImpl(this, eventName, handler, captureOrOptions, true);
return eventHandler;
}
Expand Down
Loading

0 comments on commit d2da414

Please sign in to comment.