aurelia-templating-router
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "aurelia-templating-router", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "An implementation of the RouteLoader interface for use with the router module. Also contains a custom element that allows the templating engine to display the current route.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aurelia-router', 'aurelia-pal', 'aurelia-logging'], function (exports, _aureliaTemplating, _aureliaDependencyInjection, _aureliaRouter, _aureliaPal, _aureliaLogging) { | ||
define(['exports', 'aurelia-templating', 'aurelia-router', 'aurelia-pal', 'aurelia-logging'], function (exports, _aureliaTemplating, _aureliaRouter, _aureliaPal, _aureliaLogging) { | ||
'use strict'; | ||
@@ -30,7 +30,11 @@ | ||
var _dec, _dec2, _dec3, _dec4, _dec5, _class; | ||
var _dec, _dec2, _dec3, _dec4, _class; | ||
var logger = LogManager.getLogger('route-href'); | ||
var RouteHref = exports.RouteHref = (_dec = (0, _aureliaTemplating.customAttribute)('route-href'), _dec2 = (0, _aureliaTemplating.bindable)({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = (0, _aureliaTemplating.bindable)({ name: 'params', changeHandler: 'processChange' }), _dec4 = (0, _aureliaTemplating.bindable)({ name: 'attribute', defaultValue: 'href' }), _dec5 = (0, _aureliaDependencyInjection.inject)(_aureliaRouter.Router, _aureliaPal.DOM.Element), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = _dec5(_class = function () { | ||
var RouteHref = exports.RouteHref = (_dec = (0, _aureliaTemplating.customAttribute)('route-href'), _dec2 = (0, _aureliaTemplating.bindable)({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = (0, _aureliaTemplating.bindable)({ name: 'params', changeHandler: 'processChange' }), _dec4 = (0, _aureliaTemplating.bindable)({ name: 'attribute', defaultValue: 'href' }), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = function () { | ||
RouteHref.inject = function inject() { | ||
return [_aureliaRouter.Router, _aureliaPal.DOM.Element]; | ||
}; | ||
function RouteHref(router, element) { | ||
@@ -83,3 +87,3 @@ | ||
return RouteHref; | ||
}()) || _class) || _class) || _class) || _class) || _class); | ||
}()) || _class) || _class) || _class) || _class); | ||
}); |
@@ -54,5 +54,9 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-templating', 'aurelia-router', 'aurelia-metadata', 'aurelia-pal'], function (exports, _aureliaDependencyInjection, _aureliaBinding, _aureliaTemplating, _aureliaRouter, _aureliaMetadata, _aureliaPal) { | ||
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; | ||
var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; | ||
var RouterView = exports.RouterView = (_dec = (0, _aureliaTemplating.customElement)('router-view'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.ViewSlot, _aureliaRouter.Router, _aureliaTemplating.ViewLocator, _aureliaTemplating.CompositionTransaction, _aureliaTemplating.CompositionEngine), _dec(_class = (0, _aureliaTemplating.noView)(_class = _dec2(_class = (_class2 = function () { | ||
var RouterView = exports.RouterView = (_dec = (0, _aureliaTemplating.customElement)('router-view'), _dec(_class = (0, _aureliaTemplating.noView)(_class = (_class2 = function () { | ||
RouterView.inject = function inject() { | ||
return [_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.ViewSlot, _aureliaRouter.Router, _aureliaTemplating.ViewLocator, _aureliaTemplating.CompositionTransaction, _aureliaTemplating.CompositionEngine]; | ||
}; | ||
function RouterView(element, container, viewSlot, router, viewLocator, compositionTransaction, compositionEngine) { | ||
@@ -209,3 +213,3 @@ | ||
initializer: null | ||
})), _class2)) || _class) || _class) || _class); | ||
})), _class2)) || _class) || _class); | ||
@@ -212,0 +216,0 @@ var RouterViewLocator = exports.RouterViewLocator = function () { |
@@ -18,6 +18,2 @@ import * as LogManager from 'aurelia-logging'; | ||
import { | ||
inject, | ||
Container | ||
} from 'aurelia-dependency-injection'; | ||
import { | ||
Router, | ||
@@ -30,2 +26,6 @@ RouteLoader | ||
import { | ||
Container, | ||
inject | ||
} from 'aurelia-dependency-injection'; | ||
import { | ||
createOverrideContext | ||
@@ -40,2 +40,3 @@ } from 'aurelia-binding'; | ||
export declare class RouteHref { | ||
static inject(): any; | ||
constructor(router?: any, element?: any); | ||
@@ -48,2 +49,3 @@ bind(): any; | ||
export declare class RouterView { | ||
static inject(): any; | ||
swapOrder: any; | ||
@@ -50,0 +52,0 @@ layoutView: any; |
import * as LogManager from 'aurelia-logging'; | ||
import {customAttribute,bindable,ViewSlot,ViewLocator,customElement,noView,BehaviorInstruction,CompositionTransaction,CompositionEngine,ShadowDOM,SwapStrategies,useView,inlineView} from 'aurelia-templating'; | ||
import {inject,Container} from 'aurelia-dependency-injection'; | ||
import {Router,RouteLoader} from 'aurelia-router'; | ||
import {DOM} from 'aurelia-pal'; | ||
import {Container,inject} from 'aurelia-dependency-injection'; | ||
import {createOverrideContext} from 'aurelia-binding'; | ||
@@ -16,4 +16,8 @@ import {Origin} from 'aurelia-metadata'; | ||
@bindable({name: 'attribute', defaultValue: 'href'}) | ||
@inject(Router, DOM.Element) | ||
export class RouteHref { | ||
static inject() { | ||
return [Router, DOM.Element]; | ||
} | ||
constructor(router, element) { | ||
@@ -65,4 +69,8 @@ this.router = router; | ||
@noView | ||
@inject(DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine) | ||
export class RouterView { | ||
static inject() { | ||
return [DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine]; | ||
} | ||
@bindable swapOrder; | ||
@@ -69,0 +77,0 @@ @bindable layoutView; |
@@ -8,8 +8,6 @@ 'use strict'; | ||
var _dec, _dec2, _dec3, _dec4, _dec5, _class; | ||
var _dec, _dec2, _dec3, _dec4, _class; | ||
var _aureliaTemplating = require('aurelia-templating'); | ||
var _aureliaDependencyInjection = require('aurelia-dependency-injection'); | ||
var _aureliaRouter = require('aurelia-router'); | ||
@@ -29,3 +27,7 @@ | ||
var RouteHref = exports.RouteHref = (_dec = (0, _aureliaTemplating.customAttribute)('route-href'), _dec2 = (0, _aureliaTemplating.bindable)({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = (0, _aureliaTemplating.bindable)({ name: 'params', changeHandler: 'processChange' }), _dec4 = (0, _aureliaTemplating.bindable)({ name: 'attribute', defaultValue: 'href' }), _dec5 = (0, _aureliaDependencyInjection.inject)(_aureliaRouter.Router, _aureliaPal.DOM.Element), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = _dec5(_class = function () { | ||
var RouteHref = exports.RouteHref = (_dec = (0, _aureliaTemplating.customAttribute)('route-href'), _dec2 = (0, _aureliaTemplating.bindable)({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = (0, _aureliaTemplating.bindable)({ name: 'params', changeHandler: 'processChange' }), _dec4 = (0, _aureliaTemplating.bindable)({ name: 'attribute', defaultValue: 'href' }), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = function () { | ||
RouteHref.inject = function inject() { | ||
return [_aureliaRouter.Router, _aureliaPal.DOM.Element]; | ||
}; | ||
function RouteHref(router, element) { | ||
@@ -78,2 +80,2 @@ | ||
return RouteHref; | ||
}()) || _class) || _class) || _class) || _class) || _class); | ||
}()) || _class) || _class) || _class) || _class); |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; | ||
var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; | ||
@@ -68,3 +68,7 @@ var _aureliaDependencyInjection = require('aurelia-dependency-injection'); | ||
var RouterView = exports.RouterView = (_dec = (0, _aureliaTemplating.customElement)('router-view'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.ViewSlot, _aureliaRouter.Router, _aureliaTemplating.ViewLocator, _aureliaTemplating.CompositionTransaction, _aureliaTemplating.CompositionEngine), _dec(_class = (0, _aureliaTemplating.noView)(_class = _dec2(_class = (_class2 = function () { | ||
var RouterView = exports.RouterView = (_dec = (0, _aureliaTemplating.customElement)('router-view'), _dec(_class = (0, _aureliaTemplating.noView)(_class = (_class2 = function () { | ||
RouterView.inject = function inject() { | ||
return [_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.ViewSlot, _aureliaRouter.Router, _aureliaTemplating.ViewLocator, _aureliaTemplating.CompositionTransaction, _aureliaTemplating.CompositionEngine]; | ||
}; | ||
function RouterView(element, container, viewSlot, router, viewLocator, compositionTransaction, compositionEngine) { | ||
@@ -221,3 +225,3 @@ | ||
initializer: null | ||
})), _class2)) || _class) || _class) || _class); | ||
})), _class2)) || _class) || _class); | ||
@@ -224,0 +228,0 @@ var RouterViewLocator = exports.RouterViewLocator = function () { |
@@ -1,5 +0,4 @@ | ||
var _dec, _dec2, _dec3, _dec4, _dec5, _class; | ||
var _dec, _dec2, _dec3, _dec4, _class; | ||
import { customAttribute, bindable } from 'aurelia-templating'; | ||
import { inject } from 'aurelia-dependency-injection'; | ||
import { Router } from 'aurelia-router'; | ||
@@ -11,3 +10,8 @@ import { DOM } from 'aurelia-pal'; | ||
export let RouteHref = (_dec = customAttribute('route-href'), _dec2 = bindable({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = bindable({ name: 'params', changeHandler: 'processChange' }), _dec4 = bindable({ name: 'attribute', defaultValue: 'href' }), _dec5 = inject(Router, DOM.Element), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = _dec5(_class = class RouteHref { | ||
export let RouteHref = (_dec = customAttribute('route-href'), _dec2 = bindable({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = bindable({ name: 'params', changeHandler: 'processChange' }), _dec4 = bindable({ name: 'attribute', defaultValue: 'href' }), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = class RouteHref { | ||
static inject() { | ||
return [Router, DOM.Element]; | ||
} | ||
constructor(router, element) { | ||
@@ -54,2 +58,2 @@ this.router = router; | ||
} | ||
}) || _class) || _class) || _class) || _class) || _class); | ||
}) || _class) || _class) || _class) || _class); |
@@ -1,2 +0,2 @@ | ||
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; | ||
var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; | ||
@@ -46,3 +46,3 @@ function _initDefineProp(target, property, descriptor, context) { | ||
import { Container, inject } from 'aurelia-dependency-injection'; | ||
import { Container } from 'aurelia-dependency-injection'; | ||
import { createOverrideContext } from 'aurelia-binding'; | ||
@@ -54,4 +54,8 @@ import { ViewSlot, ViewLocator, customElement, noView, BehaviorInstruction, bindable, CompositionTransaction, CompositionEngine, ShadowDOM, SwapStrategies } from 'aurelia-templating'; | ||
export let RouterView = (_dec = customElement('router-view'), _dec2 = inject(DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine), _dec(_class = noView(_class = _dec2(_class = (_class2 = class RouterView { | ||
export let RouterView = (_dec = customElement('router-view'), _dec(_class = noView(_class = (_class2 = class RouterView { | ||
static inject() { | ||
return [DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine]; | ||
} | ||
constructor(element, container, viewSlot, router, viewLocator, compositionTransaction, compositionEngine) { | ||
@@ -200,3 +204,3 @@ _initDefineProp(this, 'swapOrder', _descriptor, this); | ||
initializer: null | ||
})), _class2)) || _class) || _class) || _class); | ||
})), _class2)) || _class) || _class); | ||
@@ -203,0 +207,0 @@ export let RouterViewLocator = class RouterViewLocator { |
@@ -1,2 +0,2 @@ | ||
var _dec, _dec2, _dec3, _dec4, _dec5, _class; | ||
var _dec, _dec2, _dec3, _dec4, _class; | ||
@@ -6,3 +6,2 @@ | ||
import { customAttribute, bindable } from 'aurelia-templating'; | ||
import { inject } from 'aurelia-dependency-injection'; | ||
import { Router } from 'aurelia-router'; | ||
@@ -14,3 +13,7 @@ import { DOM } from 'aurelia-pal'; | ||
export var RouteHref = (_dec = customAttribute('route-href'), _dec2 = bindable({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = bindable({ name: 'params', changeHandler: 'processChange' }), _dec4 = bindable({ name: 'attribute', defaultValue: 'href' }), _dec5 = inject(Router, DOM.Element), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = _dec5(_class = function () { | ||
export var RouteHref = (_dec = customAttribute('route-href'), _dec2 = bindable({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = bindable({ name: 'params', changeHandler: 'processChange' }), _dec4 = bindable({ name: 'attribute', defaultValue: 'href' }), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = function () { | ||
RouteHref.inject = function inject() { | ||
return [Router, DOM.Element]; | ||
}; | ||
function RouteHref(router, element) { | ||
@@ -63,2 +66,2 @@ | ||
return RouteHref; | ||
}()) || _class) || _class) || _class) || _class) || _class); | ||
}()) || _class) || _class) || _class) || _class); |
@@ -1,2 +0,2 @@ | ||
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; | ||
var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; | ||
@@ -48,3 +48,3 @@ function _initDefineProp(target, property, descriptor, context) { | ||
import { Container, inject } from 'aurelia-dependency-injection'; | ||
import { Container } from 'aurelia-dependency-injection'; | ||
import { createOverrideContext } from 'aurelia-binding'; | ||
@@ -56,3 +56,7 @@ import { ViewSlot, ViewLocator, customElement, noView, BehaviorInstruction, bindable, CompositionTransaction, CompositionEngine, ShadowDOM, SwapStrategies } from 'aurelia-templating'; | ||
export var RouterView = (_dec = customElement('router-view'), _dec2 = inject(DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine), _dec(_class = noView(_class = _dec2(_class = (_class2 = function () { | ||
export var RouterView = (_dec = customElement('router-view'), _dec(_class = noView(_class = (_class2 = function () { | ||
RouterView.inject = function inject() { | ||
return [DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine]; | ||
}; | ||
function RouterView(element, container, viewSlot, router, viewLocator, compositionTransaction, compositionEngine) { | ||
@@ -209,3 +213,3 @@ | ||
initializer: null | ||
})), _class2)) || _class) || _class) || _class); | ||
})), _class2)) || _class) || _class); | ||
@@ -212,0 +216,0 @@ export var RouterViewLocator = function () { |
'use strict'; | ||
System.register(['aurelia-templating', 'aurelia-dependency-injection', 'aurelia-router', 'aurelia-pal', 'aurelia-logging'], function (_export, _context) { | ||
System.register(['aurelia-templating', 'aurelia-router', 'aurelia-pal', 'aurelia-logging'], function (_export, _context) { | ||
"use strict"; | ||
var customAttribute, bindable, inject, Router, DOM, LogManager, _dec, _dec2, _dec3, _dec4, _dec5, _class, logger, RouteHref; | ||
var customAttribute, bindable, Router, DOM, LogManager, _dec, _dec2, _dec3, _dec4, _class, logger, RouteHref; | ||
@@ -14,4 +14,2 @@ | ||
bindable = _aureliaTemplating.bindable; | ||
}, function (_aureliaDependencyInjection) { | ||
inject = _aureliaDependencyInjection.inject; | ||
}, function (_aureliaRouter) { | ||
@@ -27,3 +25,7 @@ Router = _aureliaRouter.Router; | ||
_export('RouteHref', RouteHref = (_dec = customAttribute('route-href'), _dec2 = bindable({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = bindable({ name: 'params', changeHandler: 'processChange' }), _dec4 = bindable({ name: 'attribute', defaultValue: 'href' }), _dec5 = inject(Router, DOM.Element), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = _dec5(_class = function () { | ||
_export('RouteHref', RouteHref = (_dec = customAttribute('route-href'), _dec2 = bindable({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = bindable({ name: 'params', changeHandler: 'processChange' }), _dec4 = bindable({ name: 'attribute', defaultValue: 'href' }), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = function () { | ||
RouteHref.inject = function inject() { | ||
return [Router, DOM.Element]; | ||
}; | ||
function RouteHref(router, element) { | ||
@@ -76,3 +78,3 @@ | ||
return RouteHref; | ||
}()) || _class) || _class) || _class) || _class) || _class)); | ||
}()) || _class) || _class) || _class) || _class)); | ||
@@ -79,0 +81,0 @@ _export('RouteHref', RouteHref); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var Container, inject, createOverrideContext, ViewSlot, ViewLocator, customElement, noView, BehaviorInstruction, bindable, CompositionTransaction, CompositionEngine, ShadowDOM, SwapStrategies, Router, Origin, DOM, _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, RouterView, RouterViewLocator; | ||
var Container, createOverrideContext, ViewSlot, ViewLocator, customElement, noView, BehaviorInstruction, bindable, CompositionTransaction, CompositionEngine, ShadowDOM, SwapStrategies, Router, Origin, DOM, _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, RouterView, RouterViewLocator; | ||
@@ -57,3 +57,2 @@ function _initDefineProp(target, property, descriptor, context) { | ||
Container = _aureliaDependencyInjection.Container; | ||
inject = _aureliaDependencyInjection.inject; | ||
}, function (_aureliaBinding) { | ||
@@ -80,3 +79,7 @@ createOverrideContext = _aureliaBinding.createOverrideContext; | ||
execute: function () { | ||
_export('RouterView', RouterView = (_dec = customElement('router-view'), _dec2 = inject(DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine), _dec(_class = noView(_class = _dec2(_class = (_class2 = function () { | ||
_export('RouterView', RouterView = (_dec = customElement('router-view'), _dec(_class = noView(_class = (_class2 = function () { | ||
RouterView.inject = function inject() { | ||
return [DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine]; | ||
}; | ||
function RouterView(element, container, viewSlot, router, viewLocator, compositionTransaction, compositionEngine) { | ||
@@ -233,3 +236,3 @@ | ||
initializer: null | ||
})), _class2)) || _class) || _class) || _class)); | ||
})), _class2)) || _class) || _class)); | ||
@@ -236,0 +239,0 @@ _export('RouterView', RouterView); |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _dec6, _dec7, _class2, _desc, _value, _class3, _descriptor, _descriptor2, _descriptor3, _descriptor4, _dec8, _class5, _dec9, _class6; | ||
var _dec, _dec2, _dec3, _dec4, _class, _dec5, _class2, _desc, _value, _class3, _descriptor, _descriptor2, _descriptor3, _descriptor4, _dec6, _class5, _dec7, _class6; | ||
@@ -17,4 +17,2 @@ var _aureliaLogging = require('aurelia-logging'); | ||
var _aureliaDependencyInjection = require('aurelia-dependency-injection'); | ||
var _aureliaRouter = require('aurelia-router'); | ||
@@ -24,2 +22,4 @@ | ||
var _aureliaDependencyInjection = require('aurelia-dependency-injection'); | ||
var _aureliaBinding = require('aurelia-binding'); | ||
@@ -84,3 +84,7 @@ | ||
var RouteHref = exports.RouteHref = (_dec = (0, _aureliaTemplating.customAttribute)('route-href'), _dec2 = (0, _aureliaTemplating.bindable)({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = (0, _aureliaTemplating.bindable)({ name: 'params', changeHandler: 'processChange' }), _dec4 = (0, _aureliaTemplating.bindable)({ name: 'attribute', defaultValue: 'href' }), _dec5 = (0, _aureliaDependencyInjection.inject)(_aureliaRouter.Router, _aureliaPal.DOM.Element), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = _dec5(_class = function () { | ||
var RouteHref = exports.RouteHref = (_dec = (0, _aureliaTemplating.customAttribute)('route-href'), _dec2 = (0, _aureliaTemplating.bindable)({ name: 'route', changeHandler: 'processChange', primaryProperty: true }), _dec3 = (0, _aureliaTemplating.bindable)({ name: 'params', changeHandler: 'processChange' }), _dec4 = (0, _aureliaTemplating.bindable)({ name: 'attribute', defaultValue: 'href' }), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = function () { | ||
RouteHref.inject = function inject() { | ||
return [_aureliaRouter.Router, _aureliaPal.DOM.Element]; | ||
}; | ||
function RouteHref(router, element) { | ||
@@ -133,4 +137,8 @@ _classCallCheck(this, RouteHref); | ||
return RouteHref; | ||
}()) || _class) || _class) || _class) || _class) || _class); | ||
var RouterView = exports.RouterView = (_dec6 = (0, _aureliaTemplating.customElement)('router-view'), _dec7 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.ViewSlot, _aureliaRouter.Router, _aureliaTemplating.ViewLocator, _aureliaTemplating.CompositionTransaction, _aureliaTemplating.CompositionEngine), _dec6(_class2 = (0, _aureliaTemplating.noView)(_class2 = _dec7(_class2 = (_class3 = function () { | ||
}()) || _class) || _class) || _class) || _class); | ||
var RouterView = exports.RouterView = (_dec5 = (0, _aureliaTemplating.customElement)('router-view'), _dec5(_class2 = (0, _aureliaTemplating.noView)(_class2 = (_class3 = function () { | ||
RouterView.inject = function inject() { | ||
return [_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.ViewSlot, _aureliaRouter.Router, _aureliaTemplating.ViewLocator, _aureliaTemplating.CompositionTransaction, _aureliaTemplating.CompositionEngine]; | ||
}; | ||
function RouterView(element, container, viewSlot, router, viewLocator, compositionTransaction, compositionEngine) { | ||
@@ -287,3 +295,3 @@ _classCallCheck(this, RouterView); | ||
initializer: null | ||
})), _class3)) || _class2) || _class2) || _class2); | ||
})), _class3)) || _class2) || _class2); | ||
@@ -312,6 +320,6 @@ var RouterViewLocator = exports.RouterViewLocator = function () { | ||
var EmptyClass = (_dec8 = (0, _aureliaTemplating.inlineView)('<template></template>'), _dec8(_class5 = function EmptyClass() { | ||
var EmptyClass = (_dec6 = (0, _aureliaTemplating.inlineView)('<template></template>'), _dec6(_class5 = function EmptyClass() { | ||
_classCallCheck(this, EmptyClass); | ||
}) || _class5); | ||
var TemplatingRouteLoader = exports.TemplatingRouteLoader = (_dec9 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.CompositionEngine), _dec9(_class6 = function (_RouteLoader) { | ||
var TemplatingRouteLoader = exports.TemplatingRouteLoader = (_dec7 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.CompositionEngine), _dec7(_class6 = function (_RouteLoader) { | ||
_inherits(TemplatingRouteLoader, _RouteLoader); | ||
@@ -367,7 +375,7 @@ | ||
function createDynamicClass(moduleId) { | ||
var _dec10, _dec11, _class7; | ||
var _dec8, _dec9, _class7; | ||
var name = /([^\/^\?]+)\.html/i.exec(moduleId)[1]; | ||
var DynamicClass = (_dec10 = (0, _aureliaTemplating.customElement)(name), _dec11 = (0, _aureliaTemplating.useView)(moduleId), _dec10(_class7 = _dec11(_class7 = function () { | ||
var DynamicClass = (_dec8 = (0, _aureliaTemplating.customElement)(name), _dec9 = (0, _aureliaTemplating.useView)(moduleId), _dec8(_class7 = _dec9(_class7 = function () { | ||
function DynamicClass() { | ||
@@ -374,0 +382,0 @@ _classCallCheck(this, DynamicClass); |
@@ -1,1 +0,1 @@ | ||
{"name":"aurelia-templating-router","children":[{"id":2,"name":"RouteHref","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":3,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":4,"name":"new RouteHref","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":5,"name":"router","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":6,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"RouteHref","id":2}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":37,"character":32}]},{"id":11,"name":"attributeChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":12,"name":"attributeChanged","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":13,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":14,"name":"previous","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":41,"character":18}]},{"id":7,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":8,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":39,"character":6}]},{"id":15,"name":"processChange","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":16,"name":"processChange","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":42,"character":15}]},{"id":9,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":10,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":40,"character":8}]}],"groups":[{"title":"Constructors","kind":512,"children":[3]},{"title":"Methods","kind":2048,"children":[11,7,15,9]}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":37,"character":30}]},{"id":17,"name":"RouterView","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":23,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":24,"name":"new RouterView","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":25,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":26,"name":"container","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":27,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":28,"name":"router","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":29,"name":"viewLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":30,"name":"compositionTransaction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":31,"name":"compositionEngine","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"RouterView","id":17}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":49,"character":15}]},{"id":22,"name":"element","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":49,"character":9}],"type":{"type":"intrinsic","name":"any"}},{"id":21,"name":"layoutModel","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":48,"character":13}],"type":{"type":"intrinsic","name":"any"}},{"id":19,"name":"layoutView","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":46,"character":12}],"type":{"type":"intrinsic","name":"any"}},{"id":20,"name":"layoutViewModel","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":47,"character":17}],"type":{"type":"intrinsic","name":"any"}},{"id":18,"name":"swapOrder","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":45,"character":11}],"type":{"type":"intrinsic","name":"any"}},{"id":35,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":36,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":37,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":38,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":52,"character":6}]},{"id":32,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":33,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":34,"name":"owningView","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":51,"character":9}]},{"id":39,"name":"process","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":40,"name":"process","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":41,"name":"viewPortInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":42,"name":"waitToSwap","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":53,"character":9}]},{"id":43,"name":"swap","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":44,"name":"swap","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":45,"name":"viewPortInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":54,"character":6}]}],"groups":[{"title":"Constructors","kind":512,"children":[23]},{"title":"Properties","kind":1024,"children":[22,21,19,20,18]},{"title":"Methods","kind":2048,"children":[35,32,39,43]}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":44,"character":31}]},{"id":46,"name":"RouterViewLocator","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Locator which finds the nearest RouterView, relative to the current dependency injection container."},"children":[{"id":47,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of the RouterViewLocator class."},"signatures":[{"id":48,"name":"new RouterViewLocator","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of the RouterViewLocator class."},"type":{"type":"reference","name":"RouterViewLocator","id":46}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":60,"character":40}]},{"id":49,"name":"findNearest","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":50,"name":"findNearest","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Finds the nearest RouterView instance.","returns":"A promise that will be resolved with the located RouterView instance.\n"},"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"RouterView","id":17}]}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":71,"character":13}]}],"groups":[{"title":"Constructors","kind":512,"children":[47]},{"title":"Methods","kind":2048,"children":[49]}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":60,"character":38}]},{"id":51,"name":"TemplatingRouteLoader","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":52,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":53,"name":"new TemplatingRouteLoader","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":54,"name":"compositionEngine","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"TemplatingRouteLoader","id":51}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":73,"character":64}]},{"id":55,"name":"loadRoute","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":56,"name":"loadRoute","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":57,"name":"router","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":58,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"RouteLoader.loadRoute"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":75,"character":11}],"overwrites":{"type":"reference","name":"RouteLoader.loadRoute"}}],"groups":[{"title":"Constructors","kind":512,"children":[52]},{"title":"Methods","kind":2048,"children":[55]}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":73,"character":42}],"extendedTypes":[{"type":"reference","name":"RouteLoader"}]}],"groups":[{"title":"Classes","kind":128,"children":[2,17,46,51]}]} | ||
{"name":"aurelia-templating-router","children":[{"id":2,"name":"RouteHref","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":5,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":6,"name":"new RouteHref","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":7,"name":"router","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":8,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"RouteHref","id":2}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":38,"character":23}]},{"id":13,"name":"attributeChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":14,"name":"attributeChanged","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":15,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":16,"name":"previous","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":42,"character":18}]},{"id":9,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":10,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":40,"character":6}]},{"id":17,"name":"processChange","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":18,"name":"processChange","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":43,"character":15}]},{"id":11,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":12,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":41,"character":8}]},{"id":3,"name":"inject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":4,"name":"inject","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":38,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[5]},{"title":"Methods","kind":2048,"children":[13,9,17,11,3]}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":37,"character":30}]},{"id":19,"name":"RouterView","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":27,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":28,"name":"new RouterView","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":29,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":30,"name":"container","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":31,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":32,"name":"router","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":33,"name":"viewLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":34,"name":"compositionTransaction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":35,"name":"compositionEngine","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"RouterView","id":19}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":51,"character":15}]},{"id":26,"name":"element","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":51,"character":9}],"type":{"type":"intrinsic","name":"any"}},{"id":25,"name":"layoutModel","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":50,"character":13}],"type":{"type":"intrinsic","name":"any"}},{"id":23,"name":"layoutView","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":48,"character":12}],"type":{"type":"intrinsic","name":"any"}},{"id":24,"name":"layoutViewModel","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":49,"character":17}],"type":{"type":"intrinsic","name":"any"}},{"id":22,"name":"swapOrder","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-router.d.ts","line":47,"character":11}],"type":{"type":"intrinsic","name":"any"}},{"id":39,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":40,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":41,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":42,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":54,"character":6}]},{"id":36,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":37,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":38,"name":"owningView","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":53,"character":9}]},{"id":43,"name":"process","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":44,"name":"process","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":45,"name":"viewPortInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":46,"name":"waitToSwap","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":55,"character":9}]},{"id":47,"name":"swap","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":48,"name":"swap","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":49,"name":"viewPortInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":56,"character":6}]},{"id":20,"name":"inject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":21,"name":"inject","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":46,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[27]},{"title":"Properties","kind":1024,"children":[26,25,23,24,22]},{"title":"Methods","kind":2048,"children":[39,36,43,47,20]}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":45,"character":31}]},{"id":50,"name":"RouterViewLocator","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Locator which finds the nearest RouterView, relative to the current dependency injection container."},"children":[{"id":51,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of the RouterViewLocator class."},"signatures":[{"id":52,"name":"new RouterViewLocator","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of the RouterViewLocator class."},"type":{"type":"reference","name":"RouterViewLocator","id":50}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":62,"character":40}]},{"id":53,"name":"findNearest","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":54,"name":"findNearest","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Finds the nearest RouterView instance.","returns":"A promise that will be resolved with the located RouterView instance.\n"},"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"RouterView","id":19}]}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":73,"character":13}]}],"groups":[{"title":"Constructors","kind":512,"children":[51]},{"title":"Methods","kind":2048,"children":[53]}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":62,"character":38}]},{"id":55,"name":"TemplatingRouteLoader","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":56,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":57,"name":"new TemplatingRouteLoader","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":58,"name":"compositionEngine","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"TemplatingRouteLoader","id":55}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":75,"character":64}]},{"id":59,"name":"loadRoute","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":60,"name":"loadRoute","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":61,"name":"router","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":62,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"RouteLoader.loadRoute"}}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":77,"character":11}],"overwrites":{"type":"reference","name":"RouteLoader.loadRoute"}}],"groups":[{"title":"Constructors","kind":512,"children":[56]},{"title":"Methods","kind":2048,"children":[59]}],"sources":[{"fileName":"aurelia-templating-router.d.ts","line":75,"character":42}],"extendedTypes":[{"type":"reference","name":"RouteLoader"}]}],"groups":[{"title":"Classes","kind":128,"children":[2,19,50,55]}]} |
@@ -0,1 +1,11 @@ | ||
<a name="1.3.3"></a> | ||
## [1.3.3](https://github.com/aurelia/templating-router/compare/1.3.2...1.3.3) (2018-09-25) | ||
### Bug Fixes | ||
* **RouterView, RouteHref:** delay element injection ([a465e6e](https://github.com/aurelia/templating-router/commit/a465e6e)) | ||
<a name="1.3.2"></a> | ||
@@ -2,0 +12,0 @@ ## [1.3.2](https://github.com/aurelia/templating-router/compare/1.3.1...1.3.2) (2018-07-03) |
{ | ||
"name": "aurelia-templating-router", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "An implementation of the RouteLoader interface for use with the router module. Also contains a custom element that allows the templating engine to display the current route.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import {customAttribute, bindable} from 'aurelia-templating'; | ||
import {inject} from 'aurelia-dependency-injection'; | ||
import {Router} from 'aurelia-router'; | ||
@@ -13,4 +12,8 @@ import {DOM} from 'aurelia-pal'; | ||
@bindable({name: 'attribute', defaultValue: 'href'}) | ||
@inject(Router, DOM.Element) | ||
export class RouteHref { | ||
static inject() { | ||
return [Router, DOM.Element]; | ||
} | ||
constructor(router, element) { | ||
@@ -17,0 +20,0 @@ this.router = router; |
@@ -1,2 +0,2 @@ | ||
import {Container, inject} from 'aurelia-dependency-injection'; | ||
import {Container} from 'aurelia-dependency-injection'; | ||
import {createOverrideContext} from 'aurelia-binding'; | ||
@@ -10,4 +10,8 @@ import {ViewSlot, ViewLocator, customElement, noView, BehaviorInstruction, bindable, CompositionTransaction, CompositionEngine, ShadowDOM, SwapStrategies} from 'aurelia-templating'; | ||
@noView | ||
@inject(DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine) | ||
export class RouterView { | ||
static inject() { | ||
return [DOM.Element, Container, ViewSlot, Router, ViewLocator, CompositionTransaction, CompositionEngine]; | ||
} | ||
@bindable swapOrder; | ||
@@ -14,0 +18,0 @@ @bindable layoutView; |
281217
3985