@web-atoms/core
Version:
38 lines (37 loc) • 1.29 kB
JavaScript
System.register(["./App", "./services/MockNavigationService", "./services/NavigationService"], function (_export, _context) {
"use strict";
var App, MockNavigationService, NavigationService, MockApp;
_export("MockApp", void 0);
return {
setters: [function (_App) {
App = _App.App;
}, function (_servicesMockNavigationService) {
MockNavigationService = _servicesMockNavigationService.MockNavigationService;
}, function (_servicesNavigationService) {
NavigationService = _servicesNavigationService.NavigationService;
}],
execute: function () {
_export("MockApp", MockApp = class MockApp extends App {
constructor() {
super();
this.put(NavigationService, new MockNavigationService(this));
}
updateDefaultStyle(textContent) {
if (this.styleElement) {
if (this.styleElement.textContent === textContent) {
return;
}
}
const ss = document.createElement("style");
ss.textContent = textContent;
if (this.styleElement) {
this.styleElement.remove();
}
document.head.appendChild(ss);
this.styleElement = ss;
}
});
}
};
});
//# sourceMappingURL=MockApp.js.map