render-core 1.3.71 → 1.4.1
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/index.d.ts +55 -23
- package/index.js +79 -45
- package/kernel/delivery/delivery.d.ts +5 -0
- package/kernel/delivery/delivery.js +52 -0
- package/kernel/directive/data/v-el.d.ts +8 -0
- package/{core/cmd → kernel/directive}/data/v-el.js +2 -2
- package/kernel/directive/data/v-html.d.ts +8 -0
- package/{core/cmd → kernel/directive}/data/v-html.js +2 -2
- package/kernel/directive/data/v-txt.d.ts +8 -0
- package/{core/cmd → kernel/directive}/data/v-txt.js +2 -2
- package/kernel/directive/justify/v-if.d.ts +6 -0
- package/{core/cmd → kernel/directive}/justify/v-if.js +2 -2
- package/kernel/directive/justify/v-render.d.ts +6 -0
- package/{core/cmd → kernel/directive}/justify/v-render.js +2 -2
- package/kernel/directive/justify/v-show.d.ts +6 -0
- package/{core/cmd → kernel/directive}/justify/v-show.js +2 -2
- package/kernel/directive/justify/v-switch.d.ts +6 -0
- package/{core/cmd → kernel/directive}/justify/v-switch.js +2 -2
- package/{core/cmd → kernel/directive}/loop/v-for-utility.d.ts +1 -1
- package/{core/cmd → kernel/directive}/loop/v-for-utility.js +3 -3
- package/{core/cmd → kernel/directive}/loop/v-for.d.ts +1 -1
- package/{core/cmd → kernel/directive}/loop/v-for.js +2 -2
- package/{core/cmd → kernel/directive}/loop/v-map-utility.d.ts +1 -1
- package/{core/cmd → kernel/directive}/loop/v-map-utility.js +3 -3
- package/kernel/directive/loop/v-map.d.ts +6 -0
- package/{core/cmd → kernel/directive}/loop/v-map.js +2 -2
- package/kernel/directive/method/v-on.d.ts +8 -0
- package/{core/cmd → kernel/directive}/method/v-on.js +2 -2
- package/kernel/directive/property/v-bind.d.ts +6 -0
- package/{core/cmd → kernel/directive}/property/v-bind.js +3 -3
- package/kernel/directive/react/v-model.d.ts +6 -0
- package/{core/cmd → kernel/directive}/react/v-model.js +3 -3
- package/kernel/directive/ref/v-ref.d.ts +6 -0
- package/{core/cmd → kernel/directive}/ref/v-ref.js +2 -2
- package/kernel/directive/salt/v-solt.d.ts +13 -0
- package/kernel/directive/salt/v-solt.js +46 -0
- package/kernel/proxyer/getProxy.d.ts +9 -0
- package/kernel/proxyer/getProxy.js +35 -0
- package/kernel/renderer/initRender.d.ts +10 -0
- package/kernel/renderer/initRender.js +69 -0
- package/kernel/renderer/postRender.d.ts +10 -0
- package/kernel/renderer/postRender.js +70 -0
- package/kernel/renderer/rawRender.d.ts +10 -0
- package/kernel/renderer/rawRender.js +70 -0
- package/kernel/renderer/updateRender.d.ts +6 -0
- package/kernel/renderer/updateRender.js +33 -0
- package/package.json +1 -4
- package/system/define/ContextController.d.ts +29 -0
- package/system/define/ContextController.js +23 -0
- package/system/generic/ControllerGeneric.d.ts +21 -0
- package/system/generic/RenderGeneric.d.ts +4 -0
- package/system/injection/inject.d.ts +24 -0
- package/system/injection/inject.js +54 -0
- package/system/injection/injection.d.ts +21 -0
- package/system/injection/injection.js +50 -0
- package/system/lifecycle/lifeCycle.d.ts +14 -0
- package/system/lifecycle/lifeCycle.js +21 -0
- package/system/lifecycle/mount.d.ts +17 -0
- package/system/lifecycle/mount.js +50 -0
- package/system/output/error.d.ts +0 -0
- package/system/output/error.js +4 -0
- package/system/recorder/table0/system_func_0.d.ts +47 -0
- package/system/recorder/table0/system_func_0.js +71 -0
- package/system/recorder/table0/system_t_0.d.ts +9 -0
- package/system/recorder/table0/system_t_0.js +7 -0
- package/system/recorder/table1/system_func_1.d.ts +2 -0
- package/system/recorder/table1/system_func_1.js +7 -0
- package/system/recorder/table1/system_t_1.d.ts +4 -0
- package/system/recorder/table1/system_t_1.js +3 -0
- package/system/recorder/table2/system_t_2.d.ts +2 -0
- package/{library/taglib/metaTagLib.js → system/recorder/table2/system_t_2.js} +14 -15
- package/system/resolver/props.d.ts +18 -0
- package/system/resolver/props.js +64 -0
- package/system/router/router.d.ts +3 -0
- package/system/router/router.js +20 -0
- package/system/utility/checkUtility.js +4 -0
- package/system/utility/cmdUtility.d.ts +15 -0
- package/system/utility/cmdUtility.js +43 -0
- package/system/utility/injectUtility.d.ts +4 -0
- package/system/utility/injectUtility.js +14 -0
- package/system/utility/inputType.d.ts +5 -0
- package/system/utility/inputType.js +20 -0
- package/{core → system}/utility/inputUtility.d.ts +1 -0
- package/{core → system}/utility/inputUtility.js +8 -0
- package/system/utility/miscUtility.d.ts +6 -0
- package/{core → system}/utility/miscUtility.js +2 -2
- package/system/utility/sectionUtility.d.ts +6 -0
- package/{core → system}/utility/sectionUtility.js +18 -15
- package/{core → system}/utility/styleUtility.d.ts +5 -4
- package/{core → system}/utility/styleUtility.js +24 -33
- package/{core → system}/utility/templateUtility.d.ts +1 -1
- package/tension/DefaultRouterPlugin.d.ts +17 -0
- package/tension/DefaultRouterPlugin.js +11 -0
- package/tension/generic/ComponentGeneric.d.ts +13 -0
- package/tension/generic/ComponentGeneric.js +1 -0
- package/tension/generic/HooksGeneric.d.ts +6 -0
- package/tension/generic/HooksGeneric.js +1 -0
- package/tension/generic/OriginalDataGeneric.d.ts +18 -0
- package/tension/generic/OriginalDataGeneric.js +1 -0
- package/tension/generic/PluginGeneric.d.ts +5 -0
- package/tension/generic/PluginGeneric.js +1 -0
- package/tension/generic/PrefaceGeneric.d.ts +6 -0
- package/tension/generic/PrefaceGeneric.js +1 -0
- package/tension/generic/RouterGeneric.d.ts +5 -0
- package/tension/generic/RouterGeneric.js +1 -0
- package/tension/prototype/AbstractComponent.d.ts +43 -0
- package/tension/prototype/AbstractComponent.js +113 -0
- package/tension/prototype/AbstractRouter.d.ts +6 -0
- package/tension/prototype/AbstractRouter.js +12 -0
- package/tension/prototype/HooksAction.d.ts +7 -0
- package/tension/prototype/HooksAction.js +24 -0
- package/tension/prototype/PrefaceAction.d.ts +7 -0
- package/tension/prototype/PrefaceAction.js +14 -0
- package/tension/prototype/RouterAction.d.ts +16 -0
- package/tension/prototype/RouterAction.js +13 -0
- package/xboot/Entrance.d.ts +7 -0
- package/xboot/Entrance.js +43 -0
- package/xboot/RenderProcessor.d.ts +7 -0
- package/xboot/RenderProcessor.js +29 -0
- package/xboot/TagProcessor.d.ts +7 -0
- package/{runtime → xboot}/TagProcessor.js +6 -6
- package/core/cmd/data/v-el.d.ts +0 -8
- package/core/cmd/data/v-html.d.ts +0 -8
- package/core/cmd/data/v-txt.d.ts +0 -8
- package/core/cmd/justify/v-if.d.ts +0 -6
- package/core/cmd/justify/v-render.d.ts +0 -6
- package/core/cmd/justify/v-show.d.ts +0 -6
- package/core/cmd/justify/v-switch.d.ts +0 -6
- package/core/cmd/loop/v-map.d.ts +0 -6
- package/core/cmd/method/v-on.d.ts +0 -8
- package/core/cmd/property/v-bind.d.ts +0 -6
- package/core/cmd/react/v-model.d.ts +0 -6
- package/core/cmd/ref/v-ref.d.ts +0 -6
- package/core/cmd/solt/v-solt.d.ts +0 -14
- package/core/cmd/solt/v-solt.js +0 -46
- package/core/inject/inject.d.ts +0 -30
- package/core/inject/inject.js +0 -63
- package/core/lifecycle/afterMethods.d.ts +0 -16
- package/core/lifecycle/afterMethods.js +0 -22
- package/core/lifecycle/controllerCycle.d.ts +0 -13
- package/core/lifecycle/controllerCycle.js +0 -42
- package/core/lifecycle/mount.d.ts +0 -16
- package/core/lifecycle/mount.js +0 -31
- package/core/proxy/getProxy.d.ts +0 -13
- package/core/proxy/getProxy.js +0 -42
- package/core/render/PostRender.d.ts +0 -12
- package/core/render/PostRender.js +0 -42
- package/core/render/delivery.d.ts +0 -5
- package/core/render/delivery.js +0 -42
- package/core/render/initRender.d.ts +0 -12
- package/core/render/initRender.js +0 -39
- package/core/render/rawRender.d.ts +0 -12
- package/core/render/rawRender.js +0 -43
- package/core/render/updateRender.d.ts +0 -6
- package/core/render/updateRender.js +0 -29
- package/core/resolver/props.d.ts +0 -19
- package/core/resolver/props.js +0 -61
- package/core/utility/checkUtility.js +0 -4
- package/core/utility/cmdUtility.d.ts +0 -16
- package/core/utility/cmdUtility.js +0 -58
- package/core/utility/injectUtility.d.ts +0 -13
- package/core/utility/injectUtility.js +0 -58
- package/core/utility/inputType.d.ts +0 -5
- package/core/utility/inputType.js +0 -20
- package/core/utility/miscUtility.d.ts +0 -6
- package/core/utility/sectionUtility.d.ts +0 -6
- package/generic/RenderGeneric.d.ts +0 -5
- package/http/generic/HttpGeneric.d.ts +0 -2
- package/library/props/PropertyLib.d.ts +0 -6
- package/library/props/PropertyLib.js +0 -5
- package/library/taglib/metaTagLib.d.ts +0 -2
- package/proto/controller/AppController.d.ts +0 -16
- package/proto/controller/AppController.js +0 -25
- package/proto/controller/ComponentController.d.ts +0 -15
- package/proto/controller/ComponentController.js +0 -22
- package/proto/controller/PageController.d.ts +0 -23
- package/proto/controller/PageController.js +0 -40
- package/runtime/Entrance.d.ts +0 -6
- package/runtime/Entrance.js +0 -14
- package/runtime/RenderProcessor.d.ts +0 -7
- package/runtime/RenderProcessor.js +0 -28
- package/runtime/TagProcessor.d.ts +0 -9
- /package/{generic/RenderGeneric.js → system/generic/ControllerGeneric.js} +0 -0
- /package/{http/generic/HttpGeneric.js → system/generic/RenderGeneric.js} +0 -0
- /package/{http → system/http}/Http.d.ts +0 -0
- /package/{http → system/http}/Http.js +0 -0
- /package/{core → system}/loader/loader.d.ts +0 -0
- /package/{core → system}/loader/loader.js +0 -0
- /package/{core → system}/resolver/query.d.ts +0 -0
- /package/{core → system}/resolver/query.js +0 -0
- /package/{core → system}/utility/checkUtility.d.ts +0 -0
- /package/{core → system}/utility/dataUtility.d.ts +0 -0
- /package/{core → system}/utility/dataUtility.js +0 -0
- /package/{core → system}/utility/errorUtility.d.ts +0 -0
- /package/{core → system}/utility/errorUtility.js +0 -0
- /package/{core → system}/utility/modelUtility.d.ts +0 -0
- /package/{core → system}/utility/modelUtility.js +0 -0
- /package/{core → system}/utility/templateUtility.js +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var PageController = /** @class */ (function () {
|
|
2
|
-
//构造函数
|
|
3
|
-
function PageController() {
|
|
4
|
-
//注入系统方法
|
|
5
|
-
this.methods = Reflect.get(window, "pageMethods");
|
|
6
|
-
this.link = new Map();
|
|
7
|
-
this.to = Array();
|
|
8
|
-
this.crtTag = null;
|
|
9
|
-
this.solt = new Map();
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param method
|
|
14
|
-
* @param args
|
|
15
|
-
*/
|
|
16
|
-
PageController.prototype.receiver = function (method) {
|
|
17
|
-
var args = [];
|
|
18
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
19
|
-
args[_i - 1] = arguments[_i];
|
|
20
|
-
}
|
|
21
|
-
Reflect.get(window, method).call(window, args);
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(PageController.prototype, "crtTag", {
|
|
24
|
-
//返回当前页面的渲染元素
|
|
25
|
-
get: function () {
|
|
26
|
-
return this.currentTag;
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @param element
|
|
31
|
-
*/
|
|
32
|
-
set: function (element) {
|
|
33
|
-
this.currentTag = element;
|
|
34
|
-
},
|
|
35
|
-
enumerable: false,
|
|
36
|
-
configurable: true
|
|
37
|
-
});
|
|
38
|
-
return PageController;
|
|
39
|
-
}());
|
|
40
|
-
export { PageController };
|
package/runtime/Entrance.d.ts
DELETED
package/runtime/Entrance.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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,28 +0,0 @@
|
|
|
1
|
-
import { isUnKnown } from "../core/utility/checkUtility";
|
|
2
|
-
import { delivery } from "../core/render/delivery";
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @param collection
|
|
6
|
-
* @param link
|
|
7
|
-
*/
|
|
8
|
-
export function renderHtml(collection, link) {
|
|
9
|
-
//遍历element节点,判断是否为自定义标签
|
|
10
|
-
for (var i = 0; i < collection.length; i++) {
|
|
11
|
-
if (isUnKnown(collection[i].nodeName.toUpperCase())) {
|
|
12
|
-
//从tag库中获取该组件的定义
|
|
13
|
-
var component = Reflect.get(window, "tagLib").get(collection[i].nodeName.toUpperCase());
|
|
14
|
-
if (component === undefined) {
|
|
15
|
-
//没有找到定义,向控制台输出警告
|
|
16
|
-
console.error(collection[i].nodeName.toUpperCase() + " can't be found in renderJs, you should firstly register in renderJs");
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
//找到,渲染自定义标签
|
|
20
|
-
delivery(component, collection[i].parentNode, collection[i], link);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
//非自定义标签,深度解析
|
|
25
|
-
renderHtml(collection[i].children, link);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Component } from "render-refer";
|
|
2
|
-
import { RenderJS } from "../index";
|
|
3
|
-
/**
|
|
4
|
-
* This function is used to save the prototype component proto in the window object.
|
|
5
|
-
* So, you can hava a tip that we custom a property named 'tagLib' in the window object.
|
|
6
|
-
* @param application
|
|
7
|
-
* @param component
|
|
8
|
-
*/
|
|
9
|
-
export declare function registerTagLib(application: RenderJS, component: Component | Component[]): void;
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|