simple-boot-front 1.0.106 → 1.0.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,7 +162,7 @@ var SimpleBootFront = (function (_super) {
162
162
  SimpleBootFront.prototype.getComponentInnerHtml = function (targetObj, id) {
163
163
  var _a, _b;
164
164
  var component = (0, Component_1.getComponent)(targetObj);
165
- var styles = RawSet_1.RawSet.styleTransformLocal((_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [], id);
165
+ var styles = RawSet_1.RawSet.generateStyleTransform((_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [], id);
166
166
  var template = ((_b = component === null || component === void 0 ? void 0 : component.template) !== null && _b !== void 0 ? _b : '');
167
167
  return styles + template;
168
168
  };
@@ -203,13 +203,14 @@ var SimpleBootFront = (function (_super) {
203
203
  }
204
204
  };
205
205
  SimpleBootFront.prototype.writeRootRouter = function () {
206
- var _a, _b, _c;
207
206
  var routerAtomic = new SimAtomic_1.SimAtomic(this.rootRouter, this.getSimstanceManager());
208
207
  var target = this.option.window.document.querySelector(this.option.selector);
209
208
  if (target && routerAtomic.value) {
210
- var component = routerAtomic.getConfig(Component_1.ComponentMetadataKey);
211
- 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(' ');
212
- target.innerHTML = "".concat(styles, " ").concat((_c = component === null || component === void 0 ? void 0 : component.template) !== null && _c !== void 0 ? _c : '');
209
+ var id = 'root-router';
210
+ var startEndPoint = RawSet_1.RawSet.createStartEndPoint(id, RawSet_1.RawSetType.TARGET_ELEMENT, this.domRenderConfig);
211
+ target.appendChild(startEndPoint.start);
212
+ target.insertAdjacentHTML('beforeend', this.getComponentInnerHtml(this.rootRouter, id));
213
+ target.appendChild(startEndPoint.end);
213
214
  }
214
215
  return routerAtomic;
215
216
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-boot-front",
3
- "version": "1.0.106",
3
+ "version": "1.0.107",
4
4
  "main": "SimpleApplication.js",
5
5
  "license": "MIT",
6
6
  "description": "front end SPA frameworks",