simple-boot-front 1.0.105 → 1.0.106

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.
@@ -20,7 +20,7 @@ export declare class SimpleBootFront extends SimpleApplication {
20
20
  domRenderTargetAttrs: TargetAttr[];
21
21
  domRenderConfig: Config;
22
22
  constructor(rootRouter: ConstructorType<any>, option: SimFrontOption);
23
- getComponentInnerHtml(targetObj: any): string;
23
+ getComponentInnerHtml(targetObj: any, id: string): string;
24
24
  createDomRender<T extends object>(obj: T): T;
25
25
  private initRun;
26
26
  initWriteRootRouter(): void;
@@ -146,7 +146,7 @@ var SimpleBootFront = (function (_super) {
146
146
  if (attrValue) {
147
147
  var targetObj = ScriptUtils_1.ScriptUtils.eval("return ".concat(attrValue), obj);
148
148
  var n = element.cloneNode(true);
149
- var innerHTML = _this.getComponentInnerHtml(targetObj);
149
+ var innerHTML = _this.getComponentInnerHtml(targetObj, rawSet.uuid);
150
150
  n.innerHTML = innerHTML;
151
151
  return RawSet_1.RawSet.drThisCreate(rawSet, n, attrValue, '', true, obj, _this.option);
152
152
  }
@@ -159,11 +159,11 @@ var SimpleBootFront = (function (_super) {
159
159
  };
160
160
  return _this;
161
161
  }
162
- SimpleBootFront.prototype.getComponentInnerHtml = function (targetObj) {
163
- var _a, _b, _c;
162
+ SimpleBootFront.prototype.getComponentInnerHtml = function (targetObj, id) {
163
+ var _a, _b;
164
164
  var component = (0, Component_1.getComponent)(targetObj);
165
- 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(' ');
166
- var template = ((_c = component === null || component === void 0 ? void 0 : component.template) !== null && _c !== void 0 ? _c : '');
165
+ var styles = RawSet_1.RawSet.styleTransformLocal((_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [], id);
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
  };
169
169
  SimpleBootFront.prototype.createDomRender = function (obj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-boot-front",
3
- "version": "1.0.105",
3
+ "version": "1.0.106",
4
4
  "main": "SimpleApplication.js",
5
5
  "license": "MIT",
6
6
  "description": "front end SPA frameworks",