simple-boot-front 1.0.75 → 1.0.76

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.
@@ -12,8 +12,8 @@ export declare class SimpleBootFront extends SimpleApplication {
12
12
  option: SimFrontOption;
13
13
  navigation: Navigation;
14
14
  domRendoerExcludeProxy: (typeof SimFrontOption | typeof SimstanceManager | typeof SimpleApplication | typeof Navigation | typeof HttpService | typeof IntentManager | typeof RouterManager)[];
15
- targetElements: TargetElement[];
16
- targetAttrs: TargetAttr[];
15
+ domRenderTargetElements: TargetElement[];
16
+ domRenderTargetAttrs: TargetAttr[];
17
17
  constructor(rootRouter: ConstructorType<any>, option: SimFrontOption);
18
18
  getComponentInnerHtml(targetObj: any): string;
19
19
  createDomRender<T extends object>(obj: T): T;
@@ -73,12 +73,13 @@ var SimpleBootFront = (function (_super) {
73
73
  var _this = _super.call(this, rootRouter, option) || this;
74
74
  _this.rootRouter = rootRouter;
75
75
  _this.option = option;
76
- _this.domRendoerExcludeProxy = [SimpleApplication_1.SimpleApplication, IntentManager_1.IntentManager, RouterManager_1.RouterManager, SimstanceManager_1.SimstanceManager, SimFrontOption_1.SimFrontOption, Navigation_1.Navigation, ViewService_1.ViewService, HttpService_1.HttpService];
76
+ _this.domRendoerExcludeProxy = [SimpleApplication_1.SimpleApplication, IntentManager_1.IntentManager, RouterManager_1.RouterManager, SimstanceManager_1.SimstanceManager, SimFrontOption_1.SimFrontOption, Navigation_1.Navigation, ViewService_1.ViewService, HttpService_1.HttpService, HTMLElement];
77
+ _this.domRenderTargetElements = [];
78
+ _this.domRenderTargetAttrs = [];
77
79
  window.__dirname = 'simple-boot-front__dirname';
78
- _this.targetElements = [];
79
80
  var selectors = Component_1.componentSelectors;
80
81
  selectors.forEach(function (val, name) {
81
- _this.targetElements.push({
82
+ _this.domRenderTargetElements.push({
82
83
  name: name,
83
84
  callBack: function (element, obj, rawSet) {
84
85
  var componentObj = _this.simstanceManager.newSim(val);
@@ -107,19 +108,19 @@ var SimpleBootFront = (function (_super) {
107
108
  }
108
109
  });
109
110
  });
110
- _this.targetAttrs = [{
111
- name: 'component', callBack: function (element, attrValue, obj, rawSet) {
112
- var fag = _this.option.window.document.createDocumentFragment();
113
- if (attrValue) {
114
- var targetObj = ScriptUtils_1.ScriptUtils.eval("return " + attrValue, obj);
115
- var n = element.cloneNode(true);
116
- var innerHTML = _this.getComponentInnerHtml(targetObj);
117
- n.innerHTML = innerHTML;
118
- fag.append(RawSet_1.RawSet.drThisCreate(n, attrValue, '', true, obj));
119
- }
120
- return fag;
111
+ _this.domRenderTargetAttrs.push({
112
+ name: 'component', callBack: function (element, attrValue, obj, rawSet) {
113
+ var fag = _this.option.window.document.createDocumentFragment();
114
+ if (attrValue) {
115
+ var targetObj = ScriptUtils_1.ScriptUtils.eval("return " + attrValue, obj);
116
+ var n = element.cloneNode(true);
117
+ var innerHTML = _this.getComponentInnerHtml(targetObj);
118
+ n.innerHTML = innerHTML;
119
+ fag.append(RawSet_1.RawSet.drThisCreate(n, attrValue, '', true, obj));
121
120
  }
122
- }];
121
+ return fag;
122
+ }
123
+ });
123
124
  option.proxy = {
124
125
  onProxy: function (it) { return _this.createDomRender(it); }
125
126
  };
@@ -136,8 +137,8 @@ var SimpleBootFront = (function (_super) {
136
137
  var component = (0, Component_1.getComponent)(obj);
137
138
  if (component && typeof obj === 'object') {
138
139
  return DomRender_1.DomRender.run(obj, undefined, {
139
- targetElements: this.targetElements,
140
- targetAttrs: this.targetAttrs,
140
+ targetElements: this.domRenderTargetElements,
141
+ targetAttrs: this.domRenderTargetAttrs,
141
142
  onAttrInit: function (attrName, attrValue, obj) {
142
143
  var _a, _b;
143
144
  if (attrName === 'component') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-boot-front",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "main": "SimpleApplication.js",
5
5
  "license": "MIT",
6
6
  "description": "front end SPA frameworks",
@@ -73,7 +73,7 @@
73
73
  "typescript": "^4.3.5"
74
74
  },
75
75
  "dependencies": {
76
- "dom-render": "^1.0.37",
76
+ "dom-render": "^1.0.38",
77
77
  "reflect-metadata": "^0.1.13",
78
78
  "simple-boot-core": "^1.0.20"
79
79
  }