render-core 1.4.12 → 1.4.14

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.
Files changed (140) hide show
  1. package/index.d.ts +90 -90
  2. package/index.js +131 -131
  3. package/kernel/delivery/delivery.d.ts +29 -29
  4. package/kernel/delivery/delivery.js +83 -83
  5. package/kernel/directive/data/v-el.d.ts +8 -8
  6. package/kernel/directive/data/v-el.js +28 -28
  7. package/kernel/directive/data/v-html.d.ts +8 -8
  8. package/kernel/directive/data/v-html.js +26 -26
  9. package/kernel/directive/data/v-txt.d.ts +8 -8
  10. package/kernel/directive/data/v-txt.js +29 -29
  11. package/kernel/directive/justify/v-if.d.ts +6 -6
  12. package/kernel/directive/justify/v-if.js +43 -43
  13. package/kernel/directive/justify/v-render.d.ts +6 -6
  14. package/kernel/directive/justify/v-render.js +26 -26
  15. package/kernel/directive/justify/v-show.d.ts +6 -6
  16. package/kernel/directive/justify/v-show.js +26 -26
  17. package/kernel/directive/justify/v-switch.d.ts +6 -6
  18. package/kernel/directive/justify/v-switch.js +35 -35
  19. package/kernel/directive/loop/v-for-utility.d.ts +14 -14
  20. package/kernel/directive/loop/v-for-utility.js +66 -66
  21. package/kernel/directive/loop/v-for.d.ts +22 -22
  22. package/kernel/directive/loop/v-for.js +64 -64
  23. package/kernel/directive/loop/v-map-utility.d.ts +12 -12
  24. package/kernel/directive/loop/v-map-utility.js +73 -73
  25. package/kernel/directive/loop/v-map.d.ts +6 -6
  26. package/kernel/directive/loop/v-map.js +24 -24
  27. package/kernel/directive/method/v-on.d.ts +8 -8
  28. package/kernel/directive/method/v-on.js +40 -40
  29. package/kernel/directive/property/v-bind.d.ts +6 -6
  30. package/kernel/directive/property/v-bind.js +33 -33
  31. package/kernel/directive/react/v-model.d.ts +6 -6
  32. package/kernel/directive/react/v-model.js +22 -22
  33. package/kernel/directive/ref/v-ref.d.ts +6 -6
  34. package/kernel/directive/ref/v-ref.js +16 -16
  35. package/kernel/directive/salt/v-solt.d.ts +13 -13
  36. package/kernel/directive/salt/v-solt.js +46 -46
  37. package/kernel/proxyer/getProxy.d.ts +14 -14
  38. package/kernel/proxyer/getProxy.js +43 -43
  39. package/kernel/renderer/initRender.d.ts +10 -10
  40. package/kernel/renderer/initRender.js +67 -67
  41. package/kernel/renderer/postRender.d.ts +10 -10
  42. package/kernel/renderer/postRender.js +68 -68
  43. package/kernel/renderer/rawRender.d.ts +10 -10
  44. package/kernel/renderer/rawRender.js +68 -68
  45. package/kernel/renderer/updateRender.d.ts +6 -6
  46. package/kernel/renderer/updateRender.js +34 -34
  47. package/kernel/router/router.d.ts +12 -12
  48. package/kernel/router/router.js +37 -37
  49. package/package.json +22 -19
  50. package/system/generic/component/ComponentGeneric.d.ts +13 -13
  51. package/system/generic/component/ComponentGeneric.js +1 -1
  52. package/system/generic/controller/ControllerGeneric.d.ts +27 -27
  53. package/system/generic/controller/ControllerGeneric.js +1 -1
  54. package/system/generic/data/ComputedDataGeneric.d.ts +14 -14
  55. package/system/generic/data/ComputedDataGeneric.js +1 -1
  56. package/system/generic/data/OriginalDataGeneric.d.ts +14 -14
  57. package/system/generic/data/OriginalDataGeneric.js +1 -1
  58. package/system/generic/data/WatcherDataGeneric.d.ts +14 -14
  59. package/system/generic/data/WatcherDataGeneric.js +1 -1
  60. package/system/generic/http/HttpGeneric.d.ts +4 -4
  61. package/system/generic/http/HttpGeneric.js +1 -1
  62. package/system/generic/render/RenderGeneric.d.ts +9 -9
  63. package/system/generic/render/RenderGeneric.js +1 -1
  64. package/system/injection/injection.d.ts +21 -21
  65. package/system/injection/injection.js +50 -50
  66. package/system/injection/injector.d.ts +78 -78
  67. package/system/injection/injector.js +123 -123
  68. package/system/lifecycle/lifeCycle.d.ts +14 -14
  69. package/system/lifecycle/lifeCycle.js +21 -21
  70. package/system/lifecycle/mount.d.ts +17 -17
  71. package/system/lifecycle/mount.js +47 -47
  72. package/system/loader/loader.d.ts +7 -7
  73. package/system/loader/loader.js +18 -18
  74. package/system/output/error.js +4 -4
  75. package/system/output/errorUtility.d.ts +3 -3
  76. package/system/output/errorUtility.js +9 -9
  77. package/system/prototype/ContextController.d.ts +30 -30
  78. package/system/prototype/ContextController.js +17 -17
  79. package/system/prototype/HttpAction.d.ts +9 -9
  80. package/system/prototype/HttpAction.js +37 -37
  81. package/system/recorder/table0/system_func_0.d.ts +30 -30
  82. package/system/recorder/table0/system_func_0.js +47 -47
  83. package/system/recorder/table0/system_t_0.d.ts +7 -7
  84. package/system/recorder/table0/system_t_0.js +5 -5
  85. package/system/recorder/table1/system_func_1.d.ts +8 -8
  86. package/system/recorder/table1/system_func_1.js +25 -25
  87. package/system/recorder/table1/system_t_1.d.ts +8 -8
  88. package/system/recorder/table1/system_t_1.js +7 -7
  89. package/system/recorder/table2/system_func_2.d.ts +5 -5
  90. package/system/recorder/table2/system_func_2.js +8 -8
  91. package/system/recorder/table2/system_t_2.d.ts +2 -2
  92. package/system/recorder/table2/system_t_2.js +26 -26
  93. package/system/recorder/table3/system_func_3.d.ts +10 -10
  94. package/system/recorder/table3/system_func_3.js +25 -25
  95. package/system/recorder/table3/system_t_3.d.ts +10 -10
  96. package/system/recorder/table3/system_t_3.js +9 -9
  97. package/system/resolver/props.d.ts +18 -18
  98. package/system/resolver/props.js +64 -64
  99. package/system/resolver/query.d.ts +4 -4
  100. package/system/resolver/query.js +15 -15
  101. package/system/utility/data/dataUtility.d.ts +5 -5
  102. package/system/utility/data/dataUtility.js +12 -12
  103. package/system/utility/directive/cmdUtility.d.ts +15 -15
  104. package/system/utility/directive/cmdUtility.js +43 -43
  105. package/system/utility/initiate/miscUtility.d.ts +6 -6
  106. package/system/utility/initiate/miscUtility.js +12 -12
  107. package/system/utility/initiate/templateUtility.d.ts +6 -6
  108. package/system/utility/initiate/templateUtility.js +11 -11
  109. package/system/utility/react/inputType.d.ts +25 -25
  110. package/system/utility/react/inputType.js +40 -40
  111. package/system/utility/react/inputUtility.d.ts +19 -19
  112. package/system/utility/react/inputUtility.js +125 -125
  113. package/system/utility/react/modelUtility.d.ts +15 -15
  114. package/system/utility/react/modelUtility.js +64 -64
  115. package/system/utility/react/sectionUtility.d.ts +6 -6
  116. package/system/utility/react/sectionUtility.js +123 -123
  117. package/system/utility/style/styleUtility.d.ts +29 -29
  118. package/system/utility/style/styleUtility.js +102 -102
  119. package/tension/SystemInitPlugin.d.ts +6 -6
  120. package/tension/SystemInitPlugin.js +10 -10
  121. package/tension/generic/plugin/PluginGeneric.d.ts +5 -5
  122. package/tension/generic/plugin/PluginGeneric.js +1 -1
  123. package/tension/generic/plugin/hooks/HooksGeneric.d.ts +6 -6
  124. package/tension/generic/plugin/hooks/HooksGeneric.js +1 -1
  125. package/tension/generic/plugin/preface/PrefaceGeneric.d.ts +11 -11
  126. package/tension/generic/plugin/preface/PrefaceGeneric.js +1 -1
  127. package/tension/generic/router/RouterGeneric.d.ts +5 -5
  128. package/tension/generic/router/RouterGeneric.js +1 -1
  129. package/tension/prototype/AbstractComponent.d.ts +43 -43
  130. package/tension/prototype/AbstractComponent.js +113 -113
  131. package/tension/prototype/HooksAction.d.ts +7 -7
  132. package/tension/prototype/HooksAction.js +19 -19
  133. package/tension/prototype/PrefaceAction.d.ts +12 -12
  134. package/tension/prototype/PrefaceAction.js +27 -27
  135. package/xboot/entrance.d.ts +16 -16
  136. package/xboot/entrance.js +53 -53
  137. package/xboot/renderProcessor.d.ts +7 -7
  138. package/xboot/renderProcessor.js +21 -21
  139. package/xboot/tagProcessor.d.ts +7 -7
  140. package/xboot/tagProcessor.js +22 -22
@@ -1,113 +1,113 @@
1
- /**
2
- * This is the component prototype.
3
- */
4
- var AbstractComponent = /** @class */ (function () {
5
- function AbstractComponent(config) {
6
- //标签名称
7
- this.name = config.name;
8
- //标签模板样式
9
- this.template = config.template;
10
- //添加box样式
11
- if (typeof config === "undefined") {
12
- this.config = {
13
- boxMode: true
14
- };
15
- }
16
- else {
17
- this.config = config.config;
18
- }
19
- //添加box样式
20
- if (typeof config.boxStyle === "undefined") {
21
- this.boxStyle = "";
22
- }
23
- else {
24
- this.boxStyle = config.boxStyle.replace(/^{/, "");
25
- this.boxStyle = this.boxStyle.replace(/}$/, "");
26
- this.boxStyle = this.boxStyle.replace(/\n/, "");
27
- this.boxStyle = this.boxStyle.trim();
28
- }
29
- //props validate
30
- if (typeof config.props === "undefined") {
31
- this.props = [];
32
- }
33
- else {
34
- this.props = config.props;
35
- }
36
- //添加数据
37
- if (typeof config.data === "undefined") {
38
- this.data = {};
39
- }
40
- else {
41
- this.data = config.data;
42
- }
43
- //添加计算属性
44
- if (typeof config.computed === "undefined") {
45
- this.computed = {};
46
- }
47
- else {
48
- this.computed = config.computed;
49
- }
50
- //添加方法属性
51
- if (typeof config.methods === "undefined") {
52
- this.methods = {};
53
- }
54
- else {
55
- this.methods = config.methods;
56
- }
57
- //添加监控属性
58
- if (typeof config.watcher === "undefined") {
59
- this.watcher = {};
60
- }
61
- else {
62
- this.watcher = config.watcher;
63
- }
64
- //生命周期函数
65
- if (typeof config.beforeRender === "undefined") {
66
- this.beforeRender = function () { };
67
- }
68
- else {
69
- this.beforeRender = config.beforeRender;
70
- }
71
- if (typeof config.afterRender === "undefined") {
72
- this.afterRender = function () { };
73
- }
74
- else {
75
- this.afterRender = config.afterRender;
76
- }
77
- }
78
- AbstractComponent.prototype.getName = function () {
79
- return this.name;
80
- };
81
- AbstractComponent.prototype.getTemplate = function () {
82
- return this.template;
83
- };
84
- AbstractComponent.prototype.getConfig = function () {
85
- return this.config;
86
- };
87
- AbstractComponent.prototype.getBoxStyle = function () {
88
- return this.boxStyle;
89
- };
90
- AbstractComponent.prototype.getProps = function () {
91
- return this.props;
92
- };
93
- AbstractComponent.prototype.getData = function () {
94
- return this.data;
95
- };
96
- AbstractComponent.prototype.getMethods = function () {
97
- return this.methods;
98
- };
99
- AbstractComponent.prototype.getComputed = function () {
100
- return this.computed;
101
- };
102
- AbstractComponent.prototype.getWatcher = function () {
103
- return this.watcher;
104
- };
105
- AbstractComponent.prototype.getBeforeRender = function () {
106
- return this.beforeRender;
107
- };
108
- AbstractComponent.prototype.getAfterRender = function () {
109
- return this.afterRender;
110
- };
111
- return AbstractComponent;
112
- }());
113
- export { AbstractComponent };
1
+ /**
2
+ * This is the component prototype.
3
+ */
4
+ var AbstractComponent = /** @class */ (function () {
5
+ function AbstractComponent(config) {
6
+ //标签名称
7
+ this.name = config.name;
8
+ //标签模板样式
9
+ this.template = config.template;
10
+ //添加box样式
11
+ if (typeof config === "undefined") {
12
+ this.config = {
13
+ boxMode: true
14
+ };
15
+ }
16
+ else {
17
+ this.config = config.config;
18
+ }
19
+ //添加box样式
20
+ if (typeof config.boxStyle === "undefined") {
21
+ this.boxStyle = "";
22
+ }
23
+ else {
24
+ this.boxStyle = config.boxStyle.replace(/^{/, "");
25
+ this.boxStyle = this.boxStyle.replace(/}$/, "");
26
+ this.boxStyle = this.boxStyle.replace(/\n/, "");
27
+ this.boxStyle = this.boxStyle.trim();
28
+ }
29
+ //props validate
30
+ if (typeof config.props === "undefined") {
31
+ this.props = [];
32
+ }
33
+ else {
34
+ this.props = config.props;
35
+ }
36
+ //添加数据
37
+ if (typeof config.data === "undefined") {
38
+ this.data = {};
39
+ }
40
+ else {
41
+ this.data = config.data;
42
+ }
43
+ //添加计算属性
44
+ if (typeof config.computed === "undefined") {
45
+ this.computed = {};
46
+ }
47
+ else {
48
+ this.computed = config.computed;
49
+ }
50
+ //添加方法属性
51
+ if (typeof config.methods === "undefined") {
52
+ this.methods = {};
53
+ }
54
+ else {
55
+ this.methods = config.methods;
56
+ }
57
+ //添加监控属性
58
+ if (typeof config.watcher === "undefined") {
59
+ this.watcher = {};
60
+ }
61
+ else {
62
+ this.watcher = config.watcher;
63
+ }
64
+ //生命周期函数
65
+ if (typeof config.beforeRender === "undefined") {
66
+ this.beforeRender = function () { };
67
+ }
68
+ else {
69
+ this.beforeRender = config.beforeRender;
70
+ }
71
+ if (typeof config.afterRender === "undefined") {
72
+ this.afterRender = function () { };
73
+ }
74
+ else {
75
+ this.afterRender = config.afterRender;
76
+ }
77
+ }
78
+ AbstractComponent.prototype.getName = function () {
79
+ return this.name;
80
+ };
81
+ AbstractComponent.prototype.getTemplate = function () {
82
+ return this.template;
83
+ };
84
+ AbstractComponent.prototype.getConfig = function () {
85
+ return this.config;
86
+ };
87
+ AbstractComponent.prototype.getBoxStyle = function () {
88
+ return this.boxStyle;
89
+ };
90
+ AbstractComponent.prototype.getProps = function () {
91
+ return this.props;
92
+ };
93
+ AbstractComponent.prototype.getData = function () {
94
+ return this.data;
95
+ };
96
+ AbstractComponent.prototype.getMethods = function () {
97
+ return this.methods;
98
+ };
99
+ AbstractComponent.prototype.getComputed = function () {
100
+ return this.computed;
101
+ };
102
+ AbstractComponent.prototype.getWatcher = function () {
103
+ return this.watcher;
104
+ };
105
+ AbstractComponent.prototype.getBeforeRender = function () {
106
+ return this.beforeRender;
107
+ };
108
+ AbstractComponent.prototype.getAfterRender = function () {
109
+ return this.afterRender;
110
+ };
111
+ return AbstractComponent;
112
+ }());
113
+ export { AbstractComponent };
@@ -1,7 +1,7 @@
1
- import { HooksGeneric } from "../generic/plugin/hooks/HooksGeneric";
2
- import { Component } from "../../index";
3
- export declare class HooksAction implements HooksGeneric {
4
- changeStyle(tag: string, theme: string): void;
5
- changeTheme(theme: string): void;
6
- directDelivery(component: Component): void;
7
- }
1
+ import { HooksGeneric } from "../generic/plugin/hooks/HooksGeneric";
2
+ import { Component } from "../../index";
3
+ export declare class HooksAction implements HooksGeneric {
4
+ changeStyle(tag: string, theme: string): void;
5
+ changeTheme(theme: string): void;
6
+ directDelivery(component: Component): void;
7
+ }
@@ -1,19 +1,19 @@
1
- import { changeStyle, changeTheme } from "../../system/utility/style/styleUtility";
2
- import { direct_delivery } from "../../kernel/delivery/delivery";
3
- var HooksAction = /** @class */ (function () {
4
- function HooksAction() {
5
- }
6
- //更改tag样式
7
- HooksAction.prototype.changeStyle = function (tag, theme) {
8
- changeStyle(tag, theme);
9
- };
10
- //更改主题样式
11
- HooksAction.prototype.changeTheme = function (theme) {
12
- changeTheme(theme);
13
- };
14
- HooksAction.prototype.directDelivery = function (component) {
15
- direct_delivery(component);
16
- };
17
- return HooksAction;
18
- }());
19
- export { HooksAction };
1
+ import { changeStyle, changeTheme } from "../../system/utility/style/styleUtility";
2
+ import { direct_delivery } from "../../kernel/delivery/delivery";
3
+ var HooksAction = /** @class */ (function () {
4
+ function HooksAction() {
5
+ }
6
+ //更改tag样式
7
+ HooksAction.prototype.changeStyle = function (tag, theme) {
8
+ changeStyle(tag, theme);
9
+ };
10
+ //更改主题样式
11
+ HooksAction.prototype.changeTheme = function (theme) {
12
+ changeTheme(theme);
13
+ };
14
+ HooksAction.prototype.directDelivery = function (component) {
15
+ direct_delivery(component);
16
+ };
17
+ return HooksAction;
18
+ }());
19
+ export { HooksAction };
@@ -1,12 +1,12 @@
1
- import { PrefaceGeneric } from "../generic/plugin/preface/PrefaceGeneric";
2
- import { Component } from "../../index";
3
- import { HttpAction } from "../../system/prototype/HttpAction";
4
- import { RouterGeneric } from "../generic/router/RouterGeneric";
5
- export declare class PrefaceAction implements PrefaceGeneric {
6
- add_anonymous_extension(name: string, plugin: object): void;
7
- add_anonymous_filed(name: string, value: any): void;
8
- add_system_router(router: RouterGeneric): void;
9
- add_user_http(http: HttpAction): void;
10
- register_component(component: Component): void;
11
- set_field_route_mode(value: boolean): void;
12
- }
1
+ import { PrefaceGeneric } from "../generic/plugin/preface/PrefaceGeneric";
2
+ import { Component } from "../../index";
3
+ import { HttpAction } from "../../system/prototype/HttpAction";
4
+ import { RouterGeneric } from "../generic/router/RouterGeneric";
5
+ export declare class PrefaceAction implements PrefaceGeneric {
6
+ add_anonymous_extension(name: string, plugin: object): void;
7
+ add_anonymous_filed(name: string, value: any): void;
8
+ add_system_router(router: RouterGeneric): void;
9
+ add_user_http(http: HttpAction): void;
10
+ register_component(component: Component): void;
11
+ set_field_route_mode(value: boolean): void;
12
+ }
@@ -1,27 +1,27 @@
1
- import { registerTagLib } from "../../xboot/tagProcessor";
2
- import { set_system_ext_router, set_user_anonymous_ext, set_user_anonymous_field, set_user_ext_http } from "../../system/recorder/table3/system_func_3";
3
- import { set_router_mode } from "../../system/recorder/table1/system_func_1";
4
- var PrefaceAction = /** @class */ (function () {
5
- function PrefaceAction() {
6
- }
7
- PrefaceAction.prototype.add_anonymous_extension = function (name, plugin) {
8
- set_user_anonymous_ext(name, plugin);
9
- };
10
- PrefaceAction.prototype.add_anonymous_filed = function (name, value) {
11
- set_user_anonymous_field(name, value);
12
- };
13
- PrefaceAction.prototype.add_system_router = function (router) {
14
- set_system_ext_router(router);
15
- };
16
- PrefaceAction.prototype.add_user_http = function (http) {
17
- set_user_ext_http(http);
18
- };
19
- PrefaceAction.prototype.register_component = function (component) {
20
- registerTagLib(component);
21
- };
22
- PrefaceAction.prototype.set_field_route_mode = function (value) {
23
- set_router_mode(value);
24
- };
25
- return PrefaceAction;
26
- }());
27
- export { PrefaceAction };
1
+ import { registerTagLib } from "../../xboot/tagProcessor";
2
+ import { set_system_ext_router, set_user_anonymous_ext, set_user_anonymous_field, set_user_ext_http } from "../../system/recorder/table3/system_func_3";
3
+ import { set_router_mode } from "../../system/recorder/table1/system_func_1";
4
+ var PrefaceAction = /** @class */ (function () {
5
+ function PrefaceAction() {
6
+ }
7
+ PrefaceAction.prototype.add_anonymous_extension = function (name, plugin) {
8
+ set_user_anonymous_ext(name, plugin);
9
+ };
10
+ PrefaceAction.prototype.add_anonymous_filed = function (name, value) {
11
+ set_user_anonymous_field(name, value);
12
+ };
13
+ PrefaceAction.prototype.add_system_router = function (router) {
14
+ set_system_ext_router(router);
15
+ };
16
+ PrefaceAction.prototype.add_user_http = function (http) {
17
+ set_user_ext_http(http);
18
+ };
19
+ PrefaceAction.prototype.register_component = function (component) {
20
+ registerTagLib(component);
21
+ };
22
+ PrefaceAction.prototype.set_field_route_mode = function (value) {
23
+ set_router_mode(value);
24
+ };
25
+ return PrefaceAction;
26
+ }());
27
+ export { PrefaceAction };
@@ -1,16 +1,16 @@
1
- import { Component } from "../index";
2
- /**
3
- * The entrance of weave
4
- * @param root
5
- */
6
- export declare function render_for_weave(root?: string): void;
7
- /**
8
- * The entrance of listen
9
- */
10
- export declare function render_for_listen(): void;
11
- /**
12
- * The entrance of render
13
- * @param component
14
- * @param mounter
15
- */
16
- export declare function render_for_render(component: Component, mounter: string): void;
1
+ import { Component } from "../index";
2
+ /**
3
+ * The entrance of weave
4
+ * @param root
5
+ */
6
+ export declare function render_for_weave(root?: string): void;
7
+ /**
8
+ * The entrance of listen
9
+ */
10
+ export declare function render_for_listen(): void;
11
+ /**
12
+ * The entrance of render
13
+ * @param component
14
+ * @param mounter
15
+ */
16
+ export declare function render_for_render(component: Component, mounter: string): void;
package/xboot/entrance.js CHANGED
@@ -1,53 +1,53 @@
1
- import { themeStyle } from "../system/utility/style/styleUtility";
2
- import { renderHtml } from "./renderProcessor";
3
- import { get_context_controller, get_style_library, get_tag_library } from "../system/recorder/table0/system_func_0";
4
- import { router_listener_with_router, router_listener_without_router } from "../kernel/router/router";
5
- /**
6
- * The entrance of weave
7
- * @param root
8
- */
9
- export function render_for_weave(root) {
10
- get_tag_library().forEach(function (component) {
11
- themeStyle(component, get_style_library());
12
- });
13
- if (root == null) {
14
- //开始渲染
15
- get_context_controller().componentAttachedRootElement = document.body;
16
- renderHtml(document.children, get_context_controller());
17
- }
18
- else {
19
- var mountPoint = document.getElementById(root);
20
- if (mountPoint == null) {
21
- get_context_controller().componentAttachedRootElement = document.body;
22
- //开始渲染
23
- console.warn("Mount point not found");
24
- console.warn("Mount point was selected to body");
25
- renderHtml(document.body.children, get_context_controller());
26
- }
27
- else {
28
- //开始渲染
29
- get_context_controller().componentAttachedRootElement = mountPoint;
30
- renderHtml(mountPoint.children, get_context_controller());
31
- }
32
- }
33
- }
34
- /**
35
- * The entrance of listen
36
- */
37
- export function render_for_listen() {
38
- get_tag_library().forEach(function (component) {
39
- themeStyle(component, get_style_library());
40
- });
41
- router_listener_with_router(document.querySelector("webview"));
42
- }
43
- /**
44
- * The entrance of render
45
- * @param component
46
- * @param mounter
47
- */
48
- export function render_for_render(component, mounter) {
49
- get_tag_library().forEach(function (component) {
50
- themeStyle(component, get_style_library());
51
- });
52
- router_listener_without_router(component, document.getElementById(mounter));
53
- }
1
+ import { themeStyle } from "../system/utility/style/styleUtility";
2
+ import { renderHtml } from "./renderProcessor";
3
+ import { get_context_controller, get_style_library, get_tag_library } from "../system/recorder/table0/system_func_0";
4
+ import { router_listener_with_router, router_listener_without_router } from "../kernel/router/router";
5
+ /**
6
+ * The entrance of weave
7
+ * @param root
8
+ */
9
+ export function render_for_weave(root) {
10
+ get_tag_library().forEach(function (component) {
11
+ themeStyle(component, get_style_library());
12
+ });
13
+ if (root == null) {
14
+ //开始渲染
15
+ get_context_controller().componentAttachedRootElement = document.body;
16
+ renderHtml(document.children, get_context_controller());
17
+ }
18
+ else {
19
+ var mountPoint = document.getElementById(root);
20
+ if (mountPoint == null) {
21
+ get_context_controller().componentAttachedRootElement = document.body;
22
+ //开始渲染
23
+ console.warn("Mount point not found");
24
+ console.warn("Mount point was selected to body");
25
+ renderHtml(document.body.children, get_context_controller());
26
+ }
27
+ else {
28
+ //开始渲染
29
+ get_context_controller().componentAttachedRootElement = mountPoint;
30
+ renderHtml(mountPoint.children, get_context_controller());
31
+ }
32
+ }
33
+ }
34
+ /**
35
+ * The entrance of listen
36
+ */
37
+ export function render_for_listen() {
38
+ get_tag_library().forEach(function (component) {
39
+ themeStyle(component, get_style_library());
40
+ });
41
+ router_listener_with_router(document.querySelector("webview"));
42
+ }
43
+ /**
44
+ * The entrance of render
45
+ * @param component
46
+ * @param mounter
47
+ */
48
+ export function render_for_render(component, mounter) {
49
+ get_tag_library().forEach(function (component) {
50
+ themeStyle(component, get_style_library());
51
+ });
52
+ router_listener_without_router(component, document.getElementById(mounter));
53
+ }
@@ -1,7 +1,7 @@
1
- import { ContextController } from "../system/prototype/ContextController";
2
- /**
3
- * This function is used to render element below the mount point.
4
- * @param collection
5
- * @param contextController
6
- */
7
- export declare function renderHtml(collection: HTMLCollection, contextController: ContextController): void;
1
+ import { ContextController } from "../system/prototype/ContextController";
2
+ /**
3
+ * This function is used to render element below the mount point.
4
+ * @param collection
5
+ * @param contextController
6
+ */
7
+ export declare function renderHtml(collection: HTMLCollection, contextController: ContextController): void;
@@ -1,21 +1,21 @@
1
- import { get_tag_library } from "../system/recorder/table0/system_func_0";
2
- import { mpa_delivery } from "../kernel/delivery/delivery";
3
- import { tag_unknown_check } from "../system/recorder/table2/system_func_2";
4
- /**
5
- * This function is used to render element below the mount point.
6
- * @param collection
7
- * @param contextController
8
- */
9
- export function renderHtml(collection, contextController) {
10
- for (var i = 0; i < collection.length; i++) {
11
- if (tag_unknown_check(collection[i].nodeName.toUpperCase())) {
12
- var component = get_tag_library().get(collection[i].nodeName.toUpperCase());
13
- if (typeof component === undefined)
14
- console.error(collection[i].nodeName.toUpperCase() + " can't be found in renderJs, you should firstly register in renderJs");
15
- else
16
- mpa_delivery(component, collection[i].parentNode, collection[i], contextController);
17
- }
18
- else
19
- renderHtml(collection[i].children, contextController);
20
- }
21
- }
1
+ import { get_tag_library } from "../system/recorder/table0/system_func_0";
2
+ import { mpa_delivery } from "../kernel/delivery/delivery";
3
+ import { tag_unknown_check } from "../system/recorder/table2/system_func_2";
4
+ /**
5
+ * This function is used to render element below the mount point.
6
+ * @param collection
7
+ * @param contextController
8
+ */
9
+ export function renderHtml(collection, contextController) {
10
+ for (var i = 0; i < collection.length; i++) {
11
+ if (tag_unknown_check(collection[i].nodeName.toUpperCase())) {
12
+ var component = get_tag_library().get(collection[i].nodeName.toUpperCase());
13
+ if (typeof component === undefined)
14
+ console.error(collection[i].nodeName.toUpperCase() + " can't be found in renderJs, you should firstly register in renderJs");
15
+ else
16
+ mpa_delivery(component, collection[i].parentNode, collection[i], contextController);
17
+ }
18
+ else
19
+ renderHtml(collection[i].children, contextController);
20
+ }
21
+ }
@@ -1,7 +1,7 @@
1
- import { Component } from "../index";
2
- /**
3
- * This function is used to save the prototype component proto in the window object.
4
- * So, you can hava a tip that we custom a property named 'tagLib' in the window object.
5
- * @param component
6
- */
7
- export declare function registerTagLib(component: Component | Component[]): void;
1
+ import { Component } from "../index";
2
+ /**
3
+ * This function is used to save the prototype component proto in the window object.
4
+ * So, you can hava a tip that we custom a property named 'tagLib' in the window object.
5
+ * @param component
6
+ */
7
+ export declare function registerTagLib(component: Component | Component[]): void;
@@ -1,22 +1,22 @@
1
- import { get_tag_library } from "../system/recorder/table0/system_func_0";
2
- /**
3
- * This function is used to save the prototype component proto in the window object.
4
- * So, you can hava a tip that we custom a property named 'tagLib' in the window object.
5
- * @param component
6
- */
7
- export function registerTagLib(component) {
8
- if (Array.isArray(component)) {
9
- component.forEach(function (component) {
10
- if (!get_tag_library().has(component.getName().toUpperCase()))
11
- get_tag_library().set(component.getName().toUpperCase(), component);
12
- else
13
- console.warn("The Tag:" + component.getName().toUpperCase() + "has been registered!");
14
- });
15
- }
16
- else {
17
- if (!get_tag_library().has(component.getName().toUpperCase()))
18
- get_tag_library().set(component.getName().toUpperCase(), component);
19
- else
20
- console.warn("The Tag:" + component.getName().toUpperCase() + "has been registered!");
21
- }
22
- }
1
+ import { get_tag_library } from "../system/recorder/table0/system_func_0";
2
+ /**
3
+ * This function is used to save the prototype component proto in the window object.
4
+ * So, you can hava a tip that we custom a property named 'tagLib' in the window object.
5
+ * @param component
6
+ */
7
+ export function registerTagLib(component) {
8
+ if (Array.isArray(component)) {
9
+ component.forEach(function (component) {
10
+ if (!get_tag_library().has(component.getName().toUpperCase()))
11
+ get_tag_library().set(component.getName().toUpperCase(), component);
12
+ else
13
+ console.warn("The Tag:" + component.getName().toUpperCase() + "has been registered!");
14
+ });
15
+ }
16
+ else {
17
+ if (!get_tag_library().has(component.getName().toUpperCase()))
18
+ get_tag_library().set(component.getName().toUpperCase(), component);
19
+ else
20
+ console.warn("The Tag:" + component.getName().toUpperCase() + "has been registered!");
21
+ }
22
+ }