render-core 1.3.66 → 1.3.68
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/core/cmd/data/v-el.d.ts +1 -1
- package/core/cmd/data/v-html.d.ts +1 -1
- package/core/cmd/data/v-txt.d.ts +1 -1
- package/core/cmd/solt/v-solt.d.ts +2 -2
- package/core/inject/inject.d.ts +1 -1
- package/core/lifecycle/afterMethods.d.ts +2 -2
- package/core/lifecycle/controllerCycle.d.ts +3 -3
- package/core/lifecycle/mount.d.ts +2 -2
- package/core/proxy/getProxy.d.ts +1 -1
- package/core/render/PostRender.d.ts +3 -3
- package/core/render/PostRender.js +1 -1
- package/core/render/delivery.d.ts +4 -4
- package/core/render/delivery.js +2 -2
- package/core/render/initRender.d.ts +3 -3
- package/core/render/initRender.js +1 -1
- package/core/render/rawRender.d.ts +3 -3
- package/core/render/rawRender.js +1 -1
- package/core/render/updateRender.d.ts +1 -1
- package/core/utility/checkUtility.js +1 -1
- package/core/utility/cmdUtility.d.ts +2 -2
- package/core/utility/injectUtility.d.ts +2 -2
- package/core/utility/inputType.d.ts +1 -1
- package/core/utility/sectionUtility.d.ts +1 -1
- package/core/utility/styleUtility.d.ts +1 -1
- package/core/utility/templateUtility.d.ts +1 -2
- package/core/utility/templateUtility.js +0 -1
- package/http/generic/HttpGeneric.d.ts +2 -0
- package/http/generic/HttpGeneric.js +1 -0
- package/index.d.ts +2 -2
- package/index.js +4 -3
- package/package.json +2 -3
- package/{lib/proto → proto}/controller/AppController.js +1 -1
- package/runtime/Entrance.d.ts +6 -0
- package/runtime/Entrance.js +14 -0
- package/runtime/{runtime.d.ts → RenderProcessor.d.ts} +1 -1
- package/runtime/{runtime.js → RenderProcessor.js} +2 -2
- package/runtime/{tools.d.ts → TagProcessor.d.ts} +1 -6
- package/runtime/{tools.js → TagProcessor.js} +0 -14
- /package/{lib/generic → generic}/RenderGeneric.d.ts +0 -0
- /package/{lib/generic → generic}/RenderGeneric.js +0 -0
- /package/{runtime → library/taglib}/metaTagLib.d.ts +0 -0
- /package/{runtime → library/taglib}/metaTagLib.js +0 -0
- /package/{lib/proto → proto}/controller/AppController.d.ts +0 -0
- /package/{lib/proto → proto}/controller/ComponentController.d.ts +0 -0
- /package/{lib/proto → proto}/controller/ComponentController.js +0 -0
- /package/{lib/proto → proto}/controller/PageController.d.ts +0 -0
- /package/{lib/proto → proto}/controller/PageController.js +0 -0
package/core/cmd/data/v-el.d.ts
CHANGED
package/core/cmd/data/v-txt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentController } from "../../../
|
|
2
|
-
import { PageController } from "../../../
|
|
1
|
+
import { ComponentController } from "../../../proto/controller/ComponentController";
|
|
2
|
+
import { PageController } from "../../../proto/controller/PageController";
|
|
3
3
|
/**
|
|
4
4
|
* 此函数用于解析自定义元素solt
|
|
5
5
|
* @param tagTemplate
|
package/core/inject/inject.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentController } from "../../
|
|
2
|
-
import { PageController } from "../../
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
|
+
import { PageController } from "../../proto/controller/PageController";
|
|
3
3
|
/**
|
|
4
4
|
* 该函数用于处理渲染后操作
|
|
5
5
|
* @param controller
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentController } from "../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
|
+
import { PageController } from "../../proto/controller/PageController";
|
|
3
|
+
import { Component } from "render-refer";
|
|
4
4
|
/**
|
|
5
5
|
* This function is used to initiate the component controller object.
|
|
6
6
|
* @param controller
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentController } from "../../
|
|
2
|
-
import { Component } from "
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
|
+
import { Component } from "render-refer";
|
|
3
3
|
/**
|
|
4
4
|
* This function is used to mount the dom to the html document.
|
|
5
5
|
* @param controller
|
package/core/proxy/getProxy.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
|
+
import { PageController } from "../../proto/controller/PageController";
|
|
3
|
+
import { Component } from "render-refer";
|
|
4
4
|
/**
|
|
5
5
|
* 该函数用于初次渲染需要记录状态的组件
|
|
6
6
|
* @param proto
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentController } from "../../
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
2
|
import { controllerCycleTypeTwo } from "../lifecycle/controllerCycle";
|
|
3
3
|
import { afterCmd, cmdUtility } from "../utility/cmdUtility";
|
|
4
4
|
import { mount, unBox } from "../lifecycle/mount";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentController } from "../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare function
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
|
+
import { PageController } from "../../proto/controller/PageController";
|
|
3
|
+
import { Component } from "render-refer";
|
|
4
|
+
export declare function delivery(proto: Component, parent: ParentNode, child: Element, link: ComponentController | PageController): void;
|
|
5
5
|
export declare function findComponent(collection: HTMLCollection, link: ComponentController | PageController): void;
|
package/core/render/delivery.js
CHANGED
|
@@ -5,7 +5,7 @@ import { raw_render } from "./rawRender";
|
|
|
5
5
|
import { getTemplate } from "../utility/templateUtility";
|
|
6
6
|
import { styleResolve } from "../utility/styleUtility";
|
|
7
7
|
//渲染自定义标签
|
|
8
|
-
export function
|
|
8
|
+
export function delivery(proto, parent, child, link) {
|
|
9
9
|
//获得模板元素
|
|
10
10
|
var tagTemplate = getTemplate(proto);
|
|
11
11
|
//注册当前解析元素
|
|
@@ -33,7 +33,7 @@ export function Render(proto, parent, child, link) {
|
|
|
33
33
|
export function findComponent(collection, link) {
|
|
34
34
|
for (var i = 0; i < collection.length; i++) {
|
|
35
35
|
if (isUnKnown(collection[i].nodeName)) {
|
|
36
|
-
|
|
36
|
+
delivery(Reflect.get(window, "tagLib").get(collection[i].nodeName.toUpperCase()), collection[i].parentNode, collection[i], link);
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
39
|
findComponent(collection[i].children, link);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
|
+
import { PageController } from "../../proto/controller/PageController";
|
|
3
|
+
import { Component } from "render-refer";
|
|
4
4
|
/**
|
|
5
5
|
* 该函数用于处理需要更更新时候,需要从父组件提取数据状态的渲染操作
|
|
6
6
|
* @param proto
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentController } from "../../
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
2
|
import { controllerCycleTypeOne } from "../lifecycle/controllerCycle";
|
|
3
3
|
import { afterCmd, cmdUtility } from "../utility/cmdUtility";
|
|
4
4
|
import { mount, unBox } from "../lifecycle/mount";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
|
+
import { PageController } from "../../proto/controller/PageController";
|
|
3
|
+
import { Component } from "render-refer";
|
|
4
4
|
/**
|
|
5
5
|
* 该函数用于渲染不需要记录状态的组件
|
|
6
6
|
* @param proto
|
package/core/render/rawRender.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentController } from "../../
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
2
|
import { controllerCycleTypeTwo } from "../lifecycle/controllerCycle";
|
|
3
3
|
import { afterCmd, cmdUtility } from "../utility/cmdUtility";
|
|
4
4
|
import { mount, unBox } from "../lifecycle/mount";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
|
+
import { Component } from "render-refer";
|
|
3
3
|
/**
|
|
4
4
|
* This function is used to resolver those commands which should be executed before mount.
|
|
5
5
|
* @param tagTemplate
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentController } from "../../
|
|
2
|
-
import { PageController } from "../../
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
|
+
import { PageController } from "../../proto/controller/PageController";
|
|
3
3
|
export declare function getCodeSpaceForProps(data: {}, $props: Map<string, object>): void;
|
|
4
4
|
export declare function getCodeSpaceForQuery(data: {}, $query: Map<string, any>): void;
|
|
5
5
|
export declare function getCodeSpaceForRef(data: {}, $ref: Map<string, Element>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentController } from "../../
|
|
1
|
+
import { ComponentController } from "../../proto/controller/ComponentController";
|
|
2
2
|
export declare function textType(target: any, doc: any, controller: ComponentController): void;
|
|
3
3
|
export declare function assignType(target: any, doc: any, controller: ComponentController): void;
|
|
4
4
|
export declare function fileType(target: any, doc: any, controller: ComponentController): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PageController } from "./
|
|
1
|
+
import { PageController } from "./proto/controller/PageController";
|
|
2
2
|
import { AbstractRenderJS, Component } from "render-refer";
|
|
3
3
|
import { PluginGeneric } from "render-refer/generic/PluginGeneric";
|
|
4
|
-
import { RenderGeneric } from "./
|
|
4
|
+
import { RenderGeneric } from "./generic/RenderGeneric";
|
|
5
5
|
/**
|
|
6
6
|
* This proto is the application proto.
|
|
7
7
|
*/
|
package/index.js
CHANGED
|
@@ -13,11 +13,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
13
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
14
|
};
|
|
15
15
|
})();
|
|
16
|
-
import { PageController } from "./
|
|
17
|
-
import {
|
|
16
|
+
import { PageController } from "./proto/controller/PageController";
|
|
17
|
+
import { render } from "./runtime/Entrance";
|
|
18
18
|
import { changeStyle, changeTheme } from "./core/utility/styleUtility";
|
|
19
|
-
import { AppController } from "./
|
|
19
|
+
import { AppController } from "./proto/controller/AppController";
|
|
20
20
|
import { AbstractRenderJS } from "render-refer";
|
|
21
|
+
import { registerTagLib } from "./runtime/TagProcessor";
|
|
21
22
|
/**
|
|
22
23
|
* This proto is the application proto.
|
|
23
24
|
*/
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "render-core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.68",
|
|
4
4
|
"description": "The extendable javascript web framework",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
7
|
"scripts": {
|
|
9
8
|
"build": "tsc"
|
|
10
9
|
},
|
|
@@ -18,7 +17,7 @@
|
|
|
18
17
|
},
|
|
19
18
|
"license": "MIT",
|
|
20
19
|
"dependencies": {
|
|
21
|
-
"render-refer": "0.0.
|
|
20
|
+
"render-refer": "0.0.9"
|
|
22
21
|
},
|
|
23
22
|
"devDependencies": {
|
|
24
23
|
"typescript": "^5.8.3"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { themeStyle } from "../core/utility/styleUtility";
|
|
2
|
+
import { renderHtml } from "./RenderProcessor";
|
|
3
|
+
/**
|
|
4
|
+
* The entrance of render
|
|
5
|
+
* @param renderJs
|
|
6
|
+
*/
|
|
7
|
+
export function render(renderJs) {
|
|
8
|
+
//获取styleLib对象
|
|
9
|
+
renderJs.tagLib.forEach(function (component) {
|
|
10
|
+
themeStyle(component, renderJs.styleLib);
|
|
11
|
+
});
|
|
12
|
+
//开始渲染
|
|
13
|
+
renderHtml(document.body.children, renderJs.page);
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isUnKnown } from "../core/utility/checkUtility";
|
|
2
|
-
import {
|
|
2
|
+
import { delivery } from "../core/render/delivery";
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @param collection
|
|
@@ -17,7 +17,7 @@ export function renderHtml(collection, link) {
|
|
|
17
17
|
}
|
|
18
18
|
else {
|
|
19
19
|
//找到,渲染自定义标签
|
|
20
|
-
|
|
20
|
+
delivery(component, collection[i].parentNode, collection[i], link);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RenderJS } from "../index";
|
|
2
1
|
import { Component } from "render-refer";
|
|
2
|
+
import { RenderJS } from "../index";
|
|
3
3
|
/**
|
|
4
4
|
* This function is used to save the prototype component proto in the window object.
|
|
5
5
|
* So, you can hava a tip that we custom a property named 'tagLib' in the window object.
|
|
@@ -7,8 +7,3 @@ import { Component } from "render-refer";
|
|
|
7
7
|
* @param component
|
|
8
8
|
*/
|
|
9
9
|
export declare function registerTagLib(application: RenderJS, component: Component | Component[]): void;
|
|
10
|
-
/**
|
|
11
|
-
* The entrance of render
|
|
12
|
-
* @param renderJs
|
|
13
|
-
*/
|
|
14
|
-
export declare function render(renderJs: RenderJS): void;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { themeStyle } from "../core/utility/styleUtility";
|
|
2
|
-
import { renderHtml } from "./runtime";
|
|
3
1
|
import { Component } from "render-refer";
|
|
4
2
|
/**
|
|
5
3
|
* This function is used to save the prototype component proto in the window object.
|
|
@@ -29,15 +27,3 @@ export function registerTagLib(application, component) {
|
|
|
29
27
|
});
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
|
-
/**
|
|
33
|
-
* The entrance of render
|
|
34
|
-
* @param renderJs
|
|
35
|
-
*/
|
|
36
|
-
export function render(renderJs) {
|
|
37
|
-
//获取styleLib对象
|
|
38
|
-
renderJs.tagLib.forEach(function (component) {
|
|
39
|
-
themeStyle(component, renderJs.styleLib);
|
|
40
|
-
});
|
|
41
|
-
//开始渲染
|
|
42
|
-
renderHtml(document.body.children, renderJs.page);
|
|
43
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|