Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var _dec, _class, _dec2, _class2;
import { inject } from 'aurelia-dependency-injection';
import { CompositionEngine, useView, inlineView, customElement } from 'aurelia-templating';
import { RouteLoader, Router } from 'aurelia-router';
import { relativeToFile } from 'aurelia-path';
import { Origin } from 'aurelia-metadata';
import { RouterViewLocator } from './router-view';
let EmptyClass = (_dec = inlineView('<template></template>'), _dec(_class = class EmptyClass {}) || _class);
export let TemplatingRouteLoader = (_dec2 = inject(CompositionEngine), _dec2(_class2 = class TemplatingRouteLoader extends RouteLoader {
constructor(compositionEngine) {
super();
this.compositionEngine = compositionEngine;
}
loadRoute(router, config) {
let childContainer = router.container.createChild();
let viewModel;
if (config.moduleId === null) {
viewModel = EmptyClass;
} else if (/\.html/i.test(config.moduleId)) {
viewModel = createDynamicClass(config.moduleId);
} else {
var _dec, _class, _dec2, _class2;
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
import { inject } from 'aurelia-dependency-injection';
import { CompositionEngine, useView, inlineView, customElement } from 'aurelia-templating';
import { RouteLoader, Router } from 'aurelia-router';
import { relativeToFile } from 'aurelia-path';
import { Origin } from 'aurelia-metadata';
import { RouterViewLocator } from './router-view';
var EmptyClass = (_dec = inlineView('<template></template>'), _dec(_class = function EmptyClass() {
}) || _class);
export var TemplatingRouteLoader = (_dec2 = inject(CompositionEngine), _dec2(_class2 = function (_RouteLoader) {
_inherits(TemplatingRouteLoader, _RouteLoader);
function TemplatingRouteLoader(compositionEngine) {
var _this = _possibleConstructorReturn(this, _RouteLoader.call(this));
_this.compositionEngine = compositionEngine;
return _this;
}
TemplatingRouteLoader.prototype.loadRoute = function loadRoute(router, config) {
var UxListItem = /** @class */ (function () {
function UxListItem() {
this.theme = null;
}
__decorate([
bindable
], UxListItem.prototype, "theme", void 0);
UxListItem = __decorate([
customElement('ux-list-item'),
inlineView(VIEW$1)
], UxListItem);
return UxListItem;
}());
var UxListItem = /** @class */ (function () {
function UxListItem() {
this.theme = null;
}
__decorate([
aureliaTemplating.bindable
], UxListItem.prototype, "theme", void 0);
UxListItem = __decorate([
aureliaTemplating.customElement('ux-list-item'),
aureliaTemplating.inlineView(VIEW$1)
], UxListItem);
return UxListItem;
}());
if (newValue != null && newValue.themeKey == null) {
newValue.themeKey = 'list';
}
this.styleEngine.applyTheme(newValue, this.element);
}
};
__decorate([
bindable
], UxList.prototype, "theme", void 0);
__decorate([
bindable
], UxList.prototype, "type", void 0);
UxList = __decorate([
inject(Element, StyleEngine),
customElement('ux-list'),
inlineView(VIEW)
], UxList);
var uxListItem = "<template class="\"ux-list-item\"" role="\"listitem\""> </template> ";
var VIEW$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': uxListItem
});
let UxListItem = class UxListItem {
constructor() {
this.theme = null;
}
};
__decorate([
bindable