simple-boot-front 1.0.115 → 1.0.117
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/README.MD +6 -6
- package/SimpleBootFront.d.ts +1 -1
- package/SimpleBootFront.js +6 -1
- package/decorators/Component.d.ts +0 -1
- package/decorators/Script.d.ts +0 -1
- package/lifecycle/OnInit.d.ts +1 -1
- package/package.json +3 -3
package/README.MD
CHANGED
@@ -52,7 +52,7 @@ npm start
|
|
52
52
|
<summary>pages/home.ts<strong>🔻(click)</strong></summary>
|
53
53
|
|
54
54
|
```typescript
|
55
|
-
@Sim
|
55
|
+
@Sim
|
56
56
|
@Component({
|
57
57
|
template: '<div>home</div>'
|
58
58
|
})
|
@@ -65,7 +65,7 @@ export class Home {
|
|
65
65
|
<summary>pages/user.ts<strong>🔻(click)</strong></summary>
|
66
66
|
|
67
67
|
```typescript
|
68
|
-
@Sim
|
68
|
+
@Sim
|
69
69
|
@Component({
|
70
70
|
template: '<div>user</div>'
|
71
71
|
})
|
@@ -92,7 +92,7 @@ export class User {
|
|
92
92
|
|
93
93
|
</header>
|
94
94
|
<main>
|
95
|
-
<router
|
95
|
+
<router dr-this="this.child" dr-this:type="outlet" dr-strip="false"></router>
|
96
96
|
</main>
|
97
97
|
<footer>
|
98
98
|
footer
|
@@ -116,7 +116,7 @@ index.ts ▼
|
|
116
116
|
```typescript
|
117
117
|
import template from './index.html'
|
118
118
|
import style from './index.css'
|
119
|
-
@Sim
|
119
|
+
@Sim
|
120
120
|
@Router({
|
121
121
|
path: '',
|
122
122
|
route: {
|
@@ -165,7 +165,7 @@ Objects managed by the SimpleBootFront framework
|
|
165
165
|
```typescript
|
166
166
|
import template from './index.html'
|
167
167
|
import style from './index.css'
|
168
|
-
@Sim
|
168
|
+
@Sim
|
169
169
|
@Component({
|
170
170
|
selector: 'index', // default class name LowerCase
|
171
171
|
template,
|
@@ -199,7 +199,7 @@ constructor(index: Index){...}
|
|
199
199
|
```typescript
|
200
200
|
import template from './index.html'
|
201
201
|
import style from './index.css'
|
202
|
-
@Sim
|
202
|
+
@Sim
|
203
203
|
@Router({
|
204
204
|
path: '',
|
205
205
|
route: {
|
package/SimpleBootFront.d.ts
CHANGED
@@ -25,7 +25,7 @@ export declare class SimpleBootFront extends SimpleApplication {
|
|
25
25
|
private initRun;
|
26
26
|
initWriteRootRouter(): void;
|
27
27
|
writeRootRouter(): SimAtomic<any>;
|
28
|
-
goRouting(url: string): Promise<RouterModule<SimAtomic<
|
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
30
|
run(otherInstanceSim?: Map<ConstructorType<any>, any>, url?: string): SimstanceManager;
|
31
31
|
private afterSetting;
|
package/SimpleBootFront.js
CHANGED
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
29
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
30
30
|
function step(op) {
|
31
31
|
if (f) throw new TypeError("Generator is already executing.");
|
32
|
-
while (_) try {
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
35
35
|
switch (op[0]) {
|
@@ -105,6 +105,7 @@ var SimpleBootFront = (function (_super) {
|
|
105
105
|
});
|
106
106
|
}
|
107
107
|
}],
|
108
|
+
eventVariables: {},
|
108
109
|
proxyExcludeTyps: _this.domRendoerExcludeProxy,
|
109
110
|
operatorAround: {
|
110
111
|
drThis: {
|
@@ -152,6 +153,10 @@ var SimpleBootFront = (function (_super) {
|
|
152
153
|
this.initDomRenderScripts();
|
153
154
|
this.initDomRenderTargetElements();
|
154
155
|
this.navigation = this.simstanceManager.getOrNewSim(Navigation_1.Navigation);
|
156
|
+
this.domRenderConfig.eventVariables = {
|
157
|
+
$router: this.navigation,
|
158
|
+
$application: this
|
159
|
+
};
|
155
160
|
this.initWriteRootRouter();
|
156
161
|
this.option.window.addEventListener('intent', function (event) {
|
157
162
|
var cevent = event;
|
@@ -4,7 +4,6 @@ export interface ComponentConfig {
|
|
4
4
|
selector?: string;
|
5
5
|
template?: string;
|
6
6
|
styles?: (string)[];
|
7
|
-
using?: (ConstructorType<any>)[];
|
8
7
|
}
|
9
8
|
export declare const ComponentMetadataKey: unique symbol;
|
10
9
|
export declare function Component(target: ConstructorType<any>): void;
|
package/decorators/Script.d.ts
CHANGED
@@ -3,7 +3,6 @@ import { ScriptRunnable } from 'script/ScriptRunnable';
|
|
3
3
|
export declare const scripts: Map<string, ConstructorType<ScriptRunnable>>;
|
4
4
|
export interface ScriptConfig {
|
5
5
|
name?: string;
|
6
|
-
using?: (ConstructorType<any>)[];
|
7
6
|
}
|
8
7
|
export declare const ScriptMetadataKey: unique symbol;
|
9
8
|
export declare const Script: (config?: ScriptConfig) => GenericClassDecorator<ConstructorType<ScriptRunnable>>;
|
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.117",
|
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.93",
|
76
|
+
"simple-boot-core": "^1.0.40"
|
77
77
|
}
|
78
78
|
}
|