simple-boot-front 1.0.108 → 1.0.111

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ export declare class SimpleBootFront extends SimpleApplication {
15
15
  rootRouter: ConstructorType<any>;
16
16
  option: SimFrontOption;
17
17
  navigation: Navigation;
18
- domRendoerExcludeProxy: (typeof SimFrontOption | typeof SimstanceManager | typeof IntentManager | typeof RouterManager | typeof SimpleApplication | typeof Navigation | typeof HttpService)[];
18
+ domRendoerExcludeProxy: (typeof SimFrontOption | typeof SimstanceManager | typeof IntentManager | typeof RouterManager | typeof Navigation | typeof HttpService)[];
19
19
  domRenderTargetElements: TargetElement[];
20
20
  domRenderTargetAttrs: TargetAttr[];
21
21
  domRenderConfig: Config;
@@ -27,7 +27,7 @@ export declare class SimpleBootFront extends SimpleApplication {
27
27
  writeRootRouter(): SimAtomic<any>;
28
28
  goRouting(url: string): Promise<RouterModule<SimAtomic<Object>, any>>;
29
29
  runRouting(otherInstanceSim?: Map<ConstructorType<any>, any>, url?: string): Promise<RouterModule<SimAtomic<Object>, any> | undefined>;
30
- run(otherInstanceSim?: Map<ConstructorType<any>, any>, url?: string): void;
30
+ run(otherInstanceSim?: Map<ConstructorType<any>, any>, url?: string): SimstanceManager;
31
31
  private afterSetting;
32
32
  initDomRenderScripts(): void;
33
33
  private initDomRenderTargetElements;
@@ -75,7 +75,8 @@ var SimstanceManager_1 = require("simple-boot-core/simstance/SimstanceManager");
75
75
  var IntentManager_1 = require("simple-boot-core/intent/IntentManager");
76
76
  var RouterManager_1 = require("simple-boot-core/route/RouterManager");
77
77
  var ScriptUtils_1 = require("dom-render/utils/script/ScriptUtils");
78
- var RawSet_1 = require("dom-render/RawSet");
78
+ var RawSet_1 = require("dom-render/rawsets/RawSet");
79
+ var RawSetType_1 = require("dom-render/rawsets/RawSetType");
79
80
  var Types_1 = require("dom-render/types/Types");
80
81
  var InjectFrontSituationType_1 = require("./decorators/inject/InjectFrontSituationType");
81
82
  var SimpleBootFront = (function (_super) {
@@ -175,7 +176,7 @@ var SimpleBootFront = (function (_super) {
175
176
  };
176
177
  SimpleBootFront.prototype.initRun = function (otherInstanceSim) {
177
178
  var _this = this;
178
- _super.prototype.run.call(this, otherInstanceSim);
179
+ var simstanceManager = _super.prototype.run.call(this, otherInstanceSim);
179
180
  this.initDomRenderScripts();
180
181
  this.initDomRenderTargetElements();
181
182
  this.navigation = this.simstanceManager.getOrNewSim(Navigation_1.Navigation);
@@ -190,6 +191,7 @@ var SimpleBootFront = (function (_super) {
190
191
  _this.afterSetting();
191
192
  });
192
193
  });
194
+ return simstanceManager;
193
195
  };
194
196
  SimpleBootFront.prototype.initWriteRootRouter = function () {
195
197
  var _a;
@@ -207,7 +209,8 @@ var SimpleBootFront = (function (_super) {
207
209
  var target = this.option.window.document.querySelector(this.option.selector);
208
210
  if (target && routerAtomic.value) {
209
211
  var id = 'root-router';
210
- var startEndPoint = RawSet_1.RawSet.createStartEndPoint(id, RawSet_1.RawSetType.TARGET_ELEMENT, this.domRenderConfig);
212
+ var startEndPoint = RawSet_1.RawSet.createStartEndPoint(id, RawSetType_1.RawSetType.TARGET_ELEMENT, this.domRenderConfig);
213
+ target.innerHTML = '';
211
214
  target.appendChild(startEndPoint.start);
212
215
  target.insertAdjacentHTML('beforeend', this.getComponentInnerHtml(this.rootRouter, id));
213
216
  target.appendChild(startEndPoint.end);
@@ -235,11 +238,11 @@ var SimpleBootFront = (function (_super) {
235
238
  SimpleBootFront.prototype.runRouting = function (otherInstanceSim, url) {
236
239
  var _a;
237
240
  return __awaiter(this, void 0, void 0, function () {
238
- var intent, data;
241
+ var simstanceManager, intent, data;
239
242
  return __generator(this, function (_b) {
240
243
  switch (_b.label) {
241
244
  case 0:
242
- this.initRun(otherInstanceSim);
245
+ simstanceManager = this.initRun(otherInstanceSim);
243
246
  if (url) {
244
247
  this.navigation.goNoPopStateEvent(url);
245
248
  }
@@ -254,11 +257,12 @@ var SimpleBootFront = (function (_super) {
254
257
  });
255
258
  };
256
259
  SimpleBootFront.prototype.run = function (otherInstanceSim, url) {
257
- this.initRun(otherInstanceSim);
260
+ var simstanceManager = this.initRun(otherInstanceSim);
258
261
  if (url) {
259
262
  this.navigation.go(url);
260
263
  }
261
264
  this.option.window.dispatchEvent(new Event('popstate'));
265
+ return simstanceManager;
262
266
  };
263
267
  SimpleBootFront.prototype.afterSetting = function () {
264
268
  var _this = this;
@@ -1,4 +1,4 @@
1
- import { RawSet } from 'dom-render/RawSet';
1
+ import { RawSet } from 'dom-render/rawsets/RawSet';
2
2
  export declare type OnInitParameter = {
3
3
  makerObj: any;
4
4
  rawSet: RawSet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-boot-front",
3
- "version": "1.0.108",
3
+ "version": "1.0.111",
4
4
  "main": "SimpleApplication.js",
5
5
  "license": "MIT",
6
6
  "description": "front end SPA frameworks",
@@ -72,7 +72,7 @@
72
72
  "typescript": "^4.4.3"
73
73
  },
74
74
  "dependencies": {
75
- "dom-render": "^1.0.87",
76
- "simple-boot-core": "^1.0.31"
75
+ "dom-render": "^1.0.89",
76
+ "simple-boot-core": "^1.0.32"
77
77
  }
78
78
  }
@@ -1,5 +1,5 @@
1
1
  import { Runnable } from 'simple-boot-core/run/Runnable';
2
- import { RawSet } from 'dom-render/RawSet';
2
+ import { RawSet } from 'dom-render/rawsets/RawSet';
3
3
  export declare abstract class ScriptRunnable implements Runnable {
4
4
  rawSets: Map<RawSet, any>;
5
5
  render(): void;
@@ -46,7 +46,7 @@ var CookieService = (function () {
46
46
  this.option.window.document.cookie = name + '=; expires=Thu, 01 Jan 1999 00:00:10 GMT;' + " path=".concat(path);
47
47
  };
48
48
  CookieService = __decorate([
49
- (0, SimDecorator_1.Sim)(),
49
+ SimDecorator_1.Sim,
50
50
  __metadata("design:paramtypes", [SimFrontOption_1.SimFrontOption])
51
51
  ], CookieService);
52
52
  return CookieService;
@@ -15,7 +15,7 @@ var HttpService = (function () {
15
15
  function HttpService() {
16
16
  }
17
17
  HttpService = __decorate([
18
- (0, SimDecorator_1.Sim)(),
18
+ SimDecorator_1.Sim,
19
19
  __metadata("design:paramtypes", [])
20
20
  ], HttpService);
21
21
  return HttpService;
@@ -44,7 +44,7 @@ var MetaTagService = (function () {
44
44
  return meta;
45
45
  };
46
46
  MetaTagService = __decorate([
47
- (0, SimDecorator_1.Sim)(),
47
+ SimDecorator_1.Sim,
48
48
  __metadata("design:paramtypes", [SimFrontOption_1.SimFrontOption])
49
49
  ], MetaTagService);
50
50
  return MetaTagService;
@@ -109,7 +109,7 @@ var Navigation = (function () {
109
109
  return this.option.window.history.state;
110
110
  };
111
111
  Navigation = __decorate([
112
- (0, SimDecorator_1.Sim)(),
112
+ SimDecorator_1.Sim,
113
113
  __metadata("design:paramtypes", [SimFrontOption_1.SimFrontOption])
114
114
  ], Navigation);
115
115
  return Navigation;
@@ -31,7 +31,7 @@ var ScriptService = (function () {
31
31
  return obj;
32
32
  };
33
33
  ScriptService = __decorate([
34
- (0, SimDecorator_1.Sim)(),
34
+ SimDecorator_1.Sim,
35
35
  __metadata("design:paramtypes", [SimstanceManager_1.SimstanceManager])
36
36
  ], ScriptService);
37
37
  return ScriptService;
@@ -59,7 +59,7 @@ var StorageService = (function () {
59
59
  window.localStorage.clear();
60
60
  };
61
61
  StorageService = __decorate([
62
- (0, SimDecorator_1.Sim)(),
62
+ SimDecorator_1.Sim,
63
63
  __metadata("design:paramtypes", [SimFrontOption_1.SimFrontOption])
64
64
  ], StorageService);
65
65
  return StorageService;
@@ -38,7 +38,7 @@ var ViewService = (function () {
38
38
  return (_a = this.e(".".concat(selector))) !== null && _a !== void 0 ? _a : undefined;
39
39
  };
40
40
  ViewService = __decorate([
41
- (0, SimDecorator_1.Sim)(),
41
+ SimDecorator_1.Sim,
42
42
  __metadata("design:paramtypes", [])
43
43
  ], ViewService);
44
44
  return ViewService;