Skip to content

Commit

Permalink
chore(all): prepare release 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Sep 25, 2018
1 parent d2b472b commit 7924e73
Show file tree
Hide file tree
Showing 17 changed files with 124 additions and 62 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-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.",
"keywords": [
"aurelia",
Expand Down
12 changes: 8 additions & 4 deletions dist/amd/route-href.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
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';

Object.defineProperty(exports, "__esModule", {
Expand Down Expand Up @@ -27,11 +27,15 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aureli



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) {


Expand Down Expand Up @@ -79,5 +83,5 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aureli
};

return RouteHref;
}()) || _class) || _class) || _class) || _class) || _class);
}()) || _class) || _class) || _class) || _class);
});
10 changes: 7 additions & 3 deletions dist/amd/router-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

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'), _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];
};

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 () {
function RouterView(element, container, viewSlot, router, viewLocator, compositionTransaction, compositionEngine) {


Expand Down Expand Up @@ -205,7 +209,7 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'layoutModel', [_aureliaTemplating.bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class) || _class) || _class);
})), _class2)) || _class) || _class);

var RouterViewLocator = exports.RouterViewLocator = function () {
function RouterViewLocator() {
Expand Down
10 changes: 6 additions & 4 deletions dist/aurelia-templating-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ import {
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';
Expand All @@ -35,13 +35,15 @@ import {
relativeToFile
} from 'aurelia-path';
export declare class RouteHref {
static inject(): any;
constructor(router?: any, element?: any);
bind(): any;
unbind(): any;
attributeChanged(value?: any, previous?: any): any;
processChange(): any;
}
export declare class RouterView {
static inject(): any;
swapOrder: any;
layoutView: any;
layoutViewModel: any;
Expand Down
14 changes: 11 additions & 3 deletions dist/aurelia-templating-router.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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';
import {Origin} from 'aurelia-metadata';
import {relativeToFile} from 'aurelia-path';
Expand All @@ -13,8 +13,12 @@ const logger = LogManager.getLogger('route-href');
@bindable({name: 'route', changeHandler: 'processChange', primaryProperty: true})
@bindable({name: 'params', changeHandler: 'processChange'})
@bindable({name: 'attribute', defaultValue: 'href'})
@inject(Router, DOM.Element)
export class RouteHref {

static inject() {
return [Router, DOM.Element];
}

constructor(router, element) {
this.router = router;
this.element = element;
Expand Down Expand Up @@ -61,8 +65,12 @@ export class RouteHref {

@customElement('router-view')
@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;
@bindable layoutView;
@bindable layoutViewModel;
Expand Down
12 changes: 7 additions & 5 deletions dist/commonjs/route-href.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ Object.defineProperty(exports, "__esModule", {
});
exports.RouteHref = undefined;

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');

var _aureliaPal = require('aurelia-pal');
Expand All @@ -25,7 +23,11 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;

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) {


Expand Down Expand Up @@ -73,4 +75,4 @@ var RouteHref = exports.RouteHref = (_dec = (0, _aureliaTemplating.customAttribu
};

return RouteHref;
}()) || _class) || _class) || _class) || _class) || _class);
}()) || _class) || _class) || _class) || _class);
10 changes: 7 additions & 3 deletions dist/commonjs/router-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports.RouterViewLocator = exports.RouterView = undefined;

var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;

var _aureliaDependencyInjection = require('aurelia-dependency-injection');

Expand Down Expand Up @@ -64,7 +64,11 @@ function _initializerWarningHelper(descriptor, context) {
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

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) {


Expand Down Expand Up @@ -216,7 +220,7 @@ var RouterView = exports.RouterView = (_dec = (0, _aureliaTemplating.customEleme
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'layoutModel', [_aureliaTemplating.bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class) || _class) || _class);
})), _class2)) || _class) || _class);

var RouterViewLocator = exports.RouterViewLocator = function () {
function RouterViewLocator() {
Expand Down
12 changes: 8 additions & 4 deletions dist/es2015/route-href.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
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';
import { DOM } from 'aurelia-pal';
import * as LogManager from 'aurelia-logging';

const logger = LogManager.getLogger('route-href');

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) {
this.router = router;
this.element = element;
Expand Down Expand Up @@ -50,4 +54,4 @@ export let RouteHref = (_dec = customAttribute('route-href'), _dec2 = bindable({
logger.error(reason);
});
}
}) || _class) || _class) || _class) || _class) || _class);
}) || _class) || _class) || _class) || _class);
12 changes: 8 additions & 4 deletions dist/es2015/router-view.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Expand Down Expand Up @@ -43,14 +43,18 @@ function _initializerWarningHelper(descriptor, context) {
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

import { Container, inject } from 'aurelia-dependency-injection';
import { Container } from 'aurelia-dependency-injection';
import { createOverrideContext } from 'aurelia-binding';
import { ViewSlot, ViewLocator, customElement, noView, BehaviorInstruction, bindable, CompositionTransaction, CompositionEngine, ShadowDOM, SwapStrategies } from 'aurelia-templating';
import { Router } from 'aurelia-router';
import { Origin } from 'aurelia-metadata';
import { DOM } from 'aurelia-pal';

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) {
_initDefineProp(this, 'swapOrder', _descriptor, this);
Expand Down Expand Up @@ -195,7 +199,7 @@ export let RouterView = (_dec = customElement('router-view'), _dec2 = inject(DOM
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'layoutModel', [bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class) || _class) || _class);
})), _class2)) || _class) || _class);

export let RouterViewLocator = class RouterViewLocator {
constructor() {
Expand Down
11 changes: 7 additions & 4 deletions dist/native-modules/route-href.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
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';
import { DOM } from 'aurelia-pal';
import * as LogManager from 'aurelia-logging';

var logger = LogManager.getLogger('route-href');

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) {


Expand Down Expand Up @@ -58,4 +61,4 @@ export var RouteHref = (_dec = customAttribute('route-href'), _dec2 = bindable({
};

return RouteHref;
}()) || _class) || _class) || _class) || _class) || _class);
}()) || _class) || _class) || _class) || _class);
12 changes: 8 additions & 4 deletions dist/native-modules/router-view.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;
var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Expand Down Expand Up @@ -45,14 +45,18 @@ function _initializerWarningHelper(descriptor, context) {
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

import { Container, inject } from 'aurelia-dependency-injection';
import { Container } from 'aurelia-dependency-injection';
import { createOverrideContext } from 'aurelia-binding';
import { ViewSlot, ViewLocator, customElement, noView, BehaviorInstruction, bindable, CompositionTransaction, CompositionEngine, ShadowDOM, SwapStrategies } from 'aurelia-templating';
import { Router } from 'aurelia-router';
import { Origin } from 'aurelia-metadata';
import { DOM } from 'aurelia-pal';

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) {


Expand Down Expand Up @@ -204,7 +208,7 @@ export var RouterView = (_dec = customElement('router-view'), _dec2 = inject(DOM
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'layoutModel', [bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class) || _class) || _class);
})), _class2)) || _class) || _class);

export var RouterViewLocator = function () {
function RouterViewLocator() {
Expand Down
Loading

0 comments on commit 7924e73

Please sign in to comment.