simple-boot-front 1.0.114 → 1.0.116
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.js +1 -1
- package/decorators/Component.d.ts +0 -1
- package/decorators/Script.d.ts +1 -2
- 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.js
CHANGED
@@ -115,7 +115,7 @@ var SimpleBootFront = (function (_super) {
|
|
115
115
|
if (component) {
|
116
116
|
var styles = (_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [];
|
117
117
|
var template = (_b = component === null || component === void 0 ? void 0 : component.template) !== null && _b !== void 0 ? _b : '';
|
118
|
-
return new ComponentSet_1.ComponentSet(
|
118
|
+
return new ComponentSet_1.ComponentSet(data, template, styles, { objPath: null });
|
119
119
|
}
|
120
120
|
else {
|
121
121
|
return undefined;
|
@@ -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,8 +3,7 @@ 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
|
-
export declare const Script: (config?: ScriptConfig
|
8
|
+
export declare const Script: (config?: ScriptConfig) => GenericClassDecorator<ConstructorType<ScriptRunnable>>;
|
10
9
|
export declare const getScript: (target: ConstructorType<any> | Function | any) => ScriptConfig | undefined;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "simple-boot-front",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.116",
|
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.92",
|
76
|
+
"simple-boot-core": "^1.0.40"
|
77
77
|
}
|
78
78
|
}
|