simple-boot-front
Advanced tools
Comparing version 1.0.106 to 1.0.107
{ | ||
"name": "simple-boot-front", | ||
"version": "1.0.106", | ||
"version": "1.0.107", | ||
"main": "SimpleApplication.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -165,3 +165,3 @@ "use strict"; | ||
var component = (0, Component_1.getComponent)(targetObj); | ||
var styles = RawSet_1.RawSet.styleTransformLocal((_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [], id); | ||
var styles = RawSet_1.RawSet.generateStyleTransform((_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [], id); | ||
var template = ((_b = component === null || component === void 0 ? void 0 : component.template) !== null && _b !== void 0 ? _b : ''); | ||
@@ -207,9 +207,10 @@ return styles + template; | ||
SimpleBootFront.prototype.writeRootRouter = function () { | ||
var _a, _b, _c; | ||
var routerAtomic = new SimAtomic_1.SimAtomic(this.rootRouter, this.getSimstanceManager()); | ||
var target = this.option.window.document.querySelector(this.option.selector); | ||
if (target && routerAtomic.value) { | ||
var component = routerAtomic.getConfig(Component_1.ComponentMetadataKey); | ||
var styles = ((_b = (_a = component === null || component === void 0 ? void 0 : component.styles) === null || _a === void 0 ? void 0 : _a.map(function (it) { return "<style>".concat(it, "</style>"); })) !== null && _b !== void 0 ? _b : []).join(' '); | ||
target.innerHTML = "".concat(styles, " ").concat((_c = component === null || component === void 0 ? void 0 : component.template) !== null && _c !== void 0 ? _c : ''); | ||
var id = 'root-router'; | ||
var startEndPoint = RawSet_1.RawSet.createStartEndPoint(id, RawSet_1.RawSetType.TARGET_ELEMENT, this.domRenderConfig); | ||
target.appendChild(startEndPoint.start); | ||
target.insertAdjacentHTML('beforeend', this.getComponentInnerHtml(this.rootRouter, id)); | ||
target.appendChild(startEndPoint.end); | ||
} | ||
@@ -216,0 +217,0 @@ return routerAtomic; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1194
66586