simple-boot-front 1.0.107 → 1.0.110
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.
package/SimpleBootFront.d.ts
CHANGED
@@ -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):
|
30
|
+
run(otherInstanceSim?: Map<ConstructorType<any>, any>, url?: string): SimstanceManager;
|
31
31
|
private afterSetting;
|
32
32
|
initDomRenderScripts(): void;
|
33
33
|
private initDomRenderTargetElements;
|
package/SimpleBootFront.js
CHANGED
@@ -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,7 @@ 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,
|
212
|
+
var startEndPoint = RawSet_1.RawSet.createStartEndPoint(id, RawSetType_1.RawSetType.TARGET_ELEMENT, this.domRenderConfig);
|
211
213
|
target.appendChild(startEndPoint.start);
|
212
214
|
target.insertAdjacentHTML('beforeend', this.getComponentInnerHtml(this.rootRouter, id));
|
213
215
|
target.appendChild(startEndPoint.end);
|
@@ -235,11 +237,11 @@ var SimpleBootFront = (function (_super) {
|
|
235
237
|
SimpleBootFront.prototype.runRouting = function (otherInstanceSim, url) {
|
236
238
|
var _a;
|
237
239
|
return __awaiter(this, void 0, void 0, function () {
|
238
|
-
var intent, data;
|
240
|
+
var simstanceManager, intent, data;
|
239
241
|
return __generator(this, function (_b) {
|
240
242
|
switch (_b.label) {
|
241
243
|
case 0:
|
242
|
-
this.initRun(otherInstanceSim);
|
244
|
+
simstanceManager = this.initRun(otherInstanceSim);
|
243
245
|
if (url) {
|
244
246
|
this.navigation.goNoPopStateEvent(url);
|
245
247
|
}
|
@@ -254,11 +256,12 @@ var SimpleBootFront = (function (_super) {
|
|
254
256
|
});
|
255
257
|
};
|
256
258
|
SimpleBootFront.prototype.run = function (otherInstanceSim, url) {
|
257
|
-
this.initRun(otherInstanceSim);
|
259
|
+
var simstanceManager = this.initRun(otherInstanceSim);
|
258
260
|
if (url) {
|
259
261
|
this.navigation.go(url);
|
260
262
|
}
|
261
263
|
this.option.window.dispatchEvent(new Event('popstate'));
|
264
|
+
return simstanceManager;
|
262
265
|
};
|
263
266
|
SimpleBootFront.prototype.afterSetting = function () {
|
264
267
|
var _this = this;
|
package/lifecycle/OnInit.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "simple-boot-front",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.110",
|
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.
|
76
|
-
"simple-boot-core": "^1.0.
|
75
|
+
"dom-render": "^1.0.88",
|
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;
|