render-core 1.4.14 → 1.4.16

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 +58 -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 +19 -22
  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
package/index.d.ts CHANGED
@@ -1,90 +1,90 @@
1
- import { RenderGeneric } from "./system/generic/render/RenderGeneric";
2
- import { ContextController } from "./system/prototype/ContextController";
3
- import { PluginGeneric } from "./tension/generic/plugin/PluginGeneric";
4
- import { HooksGeneric } from "./tension/generic/plugin/hooks/HooksGeneric";
5
- import { AbstractComponent } from "./tension/prototype/AbstractComponent";
6
- import { PrefaceGeneric } from "./tension/generic/plugin/preface/PrefaceGeneric";
7
- import { RouterGeneric } from "./tension/generic/router/RouterGeneric";
8
- /**
9
- * This class is used to prototype the properties type
10
- */
11
- export declare class PropertyType {
12
- static STRING: 'string';
13
- static INT: 'int';
14
- static FLOAT: 'float';
15
- static BOOLEAN: 'boolean';
16
- static JSON: 'json';
17
- }
18
- /**
19
- * This abstract class is the plugin interface class for those who want to develop plugin for the system
20
- */
21
- export declare abstract class AbstractPlugin implements PluginGeneric {
22
- plugin(preface: PrefaceGeneric, hooks: HooksGeneric): void;
23
- }
24
- /**
25
- * This abstract class is the router interface class for those who want to develop router for the system
26
- */
27
- export declare abstract class AbstractRouter implements RouterGeneric {
28
- /**
29
- * The method must be overwritten by developer
30
- */
31
- getComponent(): Component;
32
- /**
33
- * The method must be overwritten by developer
34
- */
35
- getPathVariable(): Map<string, any>;
36
- }
37
- /**
38
- * Here is the template class for render component!
39
- */
40
- export declare class Component extends AbstractComponent {
41
- constructor(config: {
42
- name: string;
43
- template: string;
44
- config: {
45
- boxMode: boolean;
46
- };
47
- boxStyle?: string;
48
- props?: {} | string[];
49
- data?: {};
50
- computed?: {};
51
- methods?: {};
52
- watcher?: {};
53
- beforeRender?: () => void;
54
- afterRender?: () => void;
55
- });
56
- }
57
- /**
58
- * This proto is the application proto.
59
- */
60
- export declare class RenderJS implements RenderGeneric {
61
- contextController: ContextController;
62
- constructor();
63
- /**
64
- * This func is used to execute plugins
65
- */
66
- use_plugin(plugin: PluginGeneric): void;
67
- /**
68
- * This unc is used to register component to system
69
- * @param component
70
- */
71
- add_tag(component: Component): void;
72
- /**
73
- * This func is used to work under the route mode
74
- */
75
- listen(): void;
76
- /**
77
- * This func is used to work under the directive render mode
78
- */
79
- render(component: Component, mounter: string): void;
80
- /**
81
- * This func is used to work under the weave mode
82
- */
83
- weave(mounter: string): void;
84
- }
85
- /**
86
- * This func is used to extend window environment
87
- * @param on
88
- * @param func
89
- */
90
- export declare function extend_window(on: string, func: any): void;
1
+ import { RenderGeneric } from "./system/generic/render/RenderGeneric";
2
+ import { ContextController } from "./system/prototype/ContextController";
3
+ import { PluginGeneric } from "./tension/generic/plugin/PluginGeneric";
4
+ import { HooksGeneric } from "./tension/generic/plugin/hooks/HooksGeneric";
5
+ import { AbstractComponent } from "./tension/prototype/AbstractComponent";
6
+ import { PrefaceGeneric } from "./tension/generic/plugin/preface/PrefaceGeneric";
7
+ import { RouterGeneric } from "./tension/generic/router/RouterGeneric";
8
+ /**
9
+ * This class is used to prototype the properties type
10
+ */
11
+ export declare class PropertyType {
12
+ static STRING: 'string';
13
+ static INT: 'int';
14
+ static FLOAT: 'float';
15
+ static BOOLEAN: 'boolean';
16
+ static JSON: 'json';
17
+ }
18
+ /**
19
+ * This abstract class is the plugin interface class for those who want to develop plugin for the system
20
+ */
21
+ export declare abstract class AbstractPlugin implements PluginGeneric {
22
+ plugin(preface: PrefaceGeneric, hooks: HooksGeneric): void;
23
+ }
24
+ /**
25
+ * This abstract class is the router interface class for those who want to develop router for the system
26
+ */
27
+ export declare abstract class AbstractRouter implements RouterGeneric {
28
+ /**
29
+ * The method must be overwritten by developer
30
+ */
31
+ getComponent(): Component;
32
+ /**
33
+ * The method must be overwritten by developer
34
+ */
35
+ getPathVariable(): Map<string, any>;
36
+ }
37
+ /**
38
+ * Here is the template class for render component!
39
+ */
40
+ export declare class Component extends AbstractComponent {
41
+ constructor(config: {
42
+ name: string;
43
+ template: string;
44
+ config: {
45
+ boxMode: boolean;
46
+ };
47
+ boxStyle?: string;
48
+ props?: {} | string[];
49
+ data?: {};
50
+ computed?: {};
51
+ methods?: {};
52
+ watcher?: {};
53
+ beforeRender?: () => void;
54
+ afterRender?: () => void;
55
+ });
56
+ }
57
+ /**
58
+ * This proto is the application proto.
59
+ */
60
+ export declare class RenderJS implements RenderGeneric {
61
+ contextController: ContextController;
62
+ constructor();
63
+ /**
64
+ * This func is used to execute plugins
65
+ */
66
+ use_plugin(plugin: PluginGeneric): void;
67
+ /**
68
+ * This unc is used to register component to system
69
+ * @param component
70
+ */
71
+ add_tag(component: Component): void;
72
+ /**
73
+ * This func is used to work under the route mode
74
+ */
75
+ listen(): void;
76
+ /**
77
+ * This func is used to work under the directive render mode
78
+ */
79
+ render(component: Component, mounter: string): void;
80
+ /**
81
+ * This func is used to work under the weave mode
82
+ */
83
+ weave(mounter: string): void;
84
+ }
85
+ /**
86
+ * This func is used to extend window environment
87
+ * @param on
88
+ * @param func
89
+ */
90
+ export declare function extend_window(on: string, func: any): void;
package/index.js CHANGED
@@ -1,131 +1,131 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { render_for_listen, render_for_render, render_for_weave } from "./xboot/entrance";
17
- import { registerTagLib } from "./xboot/tagProcessor";
18
- import { HooksAction } from "./tension/prototype/HooksAction";
19
- import { ContextController } from "./system/prototype/ContextController";
20
- import { AbstractComponent } from "./tension/prototype/AbstractComponent";
21
- import { set_context_controller } from "./system/recorder/table0/system_func_0";
22
- import { PrefaceAction } from "./tension/prototype/PrefaceAction";
23
- import { SystemInitPlugin } from "./tension/SystemInitPlugin";
24
- /**
25
- * This class is used to prototype the properties type
26
- */
27
- var PropertyType = /** @class */ (function () {
28
- function PropertyType() {
29
- }
30
- return PropertyType;
31
- }());
32
- export { PropertyType };
33
- /**
34
- * This abstract class is the plugin interface class for those who want to develop plugin for the system
35
- */
36
- var AbstractPlugin = /** @class */ (function () {
37
- function AbstractPlugin() {
38
- }
39
- AbstractPlugin.prototype.plugin = function (preface, hooks) { };
40
- return AbstractPlugin;
41
- }());
42
- export { AbstractPlugin };
43
- /**
44
- * This abstract class is the router interface class for those who want to develop router for the system
45
- */
46
- var AbstractRouter = /** @class */ (function () {
47
- function AbstractRouter() {
48
- }
49
- /**
50
- * The method must be overwritten by developer
51
- */
52
- AbstractRouter.prototype.getComponent = function () {
53
- return undefined;
54
- };
55
- /**
56
- * The method must be overwritten by developer
57
- */
58
- AbstractRouter.prototype.getPathVariable = function () {
59
- return new Map();
60
- };
61
- return AbstractRouter;
62
- }());
63
- export { AbstractRouter };
64
- /**
65
- * Here is the template class for render component!
66
- */
67
- var Component = /** @class */ (function (_super) {
68
- __extends(Component, _super);
69
- function Component(config) {
70
- return _super.call(this, config) || this;
71
- }
72
- return Component;
73
- }(AbstractComponent));
74
- export { Component };
75
- /**
76
- * This proto is the application proto.
77
- */
78
- var RenderJS = /** @class */ (function () {
79
- function RenderJS() {
80
- /* initiate the page controller */
81
- this.contextController = new ContextController({
82
- boxMode: false,
83
- });
84
- /* init the basis extension */
85
- this.use_plugin(new SystemInitPlugin());
86
- }
87
- /**
88
- * This func is used to execute plugins
89
- */
90
- RenderJS.prototype.use_plugin = function (plugin) {
91
- plugin.plugin(new PrefaceAction(), new HooksAction());
92
- };
93
- /**
94
- * This unc is used to register component to system
95
- * @param component
96
- */
97
- RenderJS.prototype.add_tag = function (component) {
98
- registerTagLib(component);
99
- };
100
- /**
101
- * This func is used to work under the route mode
102
- */
103
- RenderJS.prototype.listen = function () {
104
- set_context_controller(this.contextController);
105
- render_for_listen();
106
- };
107
- /**
108
- * This func is used to work under the directive render mode
109
- */
110
- RenderJS.prototype.render = function (component, mounter) {
111
- set_context_controller(this.contextController);
112
- render_for_render(component, mounter);
113
- };
114
- /**
115
- * This func is used to work under the weave mode
116
- */
117
- RenderJS.prototype.weave = function (mounter) {
118
- set_context_controller(this.contextController);
119
- render_for_weave(mounter);
120
- };
121
- return RenderJS;
122
- }());
123
- export { RenderJS };
124
- /**
125
- * This func is used to extend window environment
126
- * @param on
127
- * @param func
128
- */
129
- export function extend_window(on, func) {
130
- Reflect.set(window, on, func);
131
- }
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ import { render_for_listen, render_for_render, render_for_weave } from "./xboot/entrance";
17
+ import { registerTagLib } from "./xboot/tagProcessor";
18
+ import { HooksAction } from "./tension/prototype/HooksAction";
19
+ import { ContextController } from "./system/prototype/ContextController";
20
+ import { AbstractComponent } from "./tension/prototype/AbstractComponent";
21
+ import { set_context_controller } from "./system/recorder/table0/system_func_0";
22
+ import { PrefaceAction } from "./tension/prototype/PrefaceAction";
23
+ import { SystemInitPlugin } from "./tension/SystemInitPlugin";
24
+ /**
25
+ * This class is used to prototype the properties type
26
+ */
27
+ var PropertyType = /** @class */ (function () {
28
+ function PropertyType() {
29
+ }
30
+ return PropertyType;
31
+ }());
32
+ export { PropertyType };
33
+ /**
34
+ * This abstract class is the plugin interface class for those who want to develop plugin for the system
35
+ */
36
+ var AbstractPlugin = /** @class */ (function () {
37
+ function AbstractPlugin() {
38
+ }
39
+ AbstractPlugin.prototype.plugin = function (preface, hooks) { };
40
+ return AbstractPlugin;
41
+ }());
42
+ export { AbstractPlugin };
43
+ /**
44
+ * This abstract class is the router interface class for those who want to develop router for the system
45
+ */
46
+ var AbstractRouter = /** @class */ (function () {
47
+ function AbstractRouter() {
48
+ }
49
+ /**
50
+ * The method must be overwritten by developer
51
+ */
52
+ AbstractRouter.prototype.getComponent = function () {
53
+ return undefined;
54
+ };
55
+ /**
56
+ * The method must be overwritten by developer
57
+ */
58
+ AbstractRouter.prototype.getPathVariable = function () {
59
+ return new Map();
60
+ };
61
+ return AbstractRouter;
62
+ }());
63
+ export { AbstractRouter };
64
+ /**
65
+ * Here is the template class for render component!
66
+ */
67
+ var Component = /** @class */ (function (_super) {
68
+ __extends(Component, _super);
69
+ function Component(config) {
70
+ return _super.call(this, config) || this;
71
+ }
72
+ return Component;
73
+ }(AbstractComponent));
74
+ export { Component };
75
+ /**
76
+ * This proto is the application proto.
77
+ */
78
+ var RenderJS = /** @class */ (function () {
79
+ function RenderJS() {
80
+ /* initiate the page controller */
81
+ this.contextController = new ContextController({
82
+ boxMode: false,
83
+ });
84
+ /* init the basis extension */
85
+ this.use_plugin(new SystemInitPlugin());
86
+ }
87
+ /**
88
+ * This func is used to execute plugins
89
+ */
90
+ RenderJS.prototype.use_plugin = function (plugin) {
91
+ plugin.plugin(new PrefaceAction(), new HooksAction());
92
+ };
93
+ /**
94
+ * This unc is used to register component to system
95
+ * @param component
96
+ */
97
+ RenderJS.prototype.add_tag = function (component) {
98
+ registerTagLib(component);
99
+ };
100
+ /**
101
+ * This func is used to work under the route mode
102
+ */
103
+ RenderJS.prototype.listen = function () {
104
+ set_context_controller(this.contextController);
105
+ render_for_listen();
106
+ };
107
+ /**
108
+ * This func is used to work under the directive render mode
109
+ */
110
+ RenderJS.prototype.render = function (component, mounter) {
111
+ set_context_controller(this.contextController);
112
+ render_for_render(component, mounter);
113
+ };
114
+ /**
115
+ * This func is used to work under the weave mode
116
+ */
117
+ RenderJS.prototype.weave = function (mounter) {
118
+ set_context_controller(this.contextController);
119
+ render_for_weave(mounter);
120
+ };
121
+ return RenderJS;
122
+ }());
123
+ export { RenderJS };
124
+ /**
125
+ * This func is used to extend window environment
126
+ * @param on
127
+ * @param func
128
+ */
129
+ export function extend_window(on, func) {
130
+ Reflect.set(window, on, func);
131
+ }
@@ -1,29 +1,29 @@
1
- import { ContextController } from "../../system/prototype/ContextController";
2
- import { Component } from "../../index";
3
- /**
4
- *
5
- * @param protoTypeComponent
6
- * @param componentAttachedRootElement
7
- * @param child
8
- * @param parentController
9
- */
10
- export declare function spa_delivery(protoTypeComponent: Component, componentAttachedRootElement: ParentNode, child: Element, parentController: ContextController): void;
11
- /**
12
- *
13
- * @param protoTypeComponent
14
- */
15
- export declare function direct_delivery(protoTypeComponent: Component): void;
16
- /**
17
- *
18
- * @param protoTypeComponent
19
- * @param componentAttachedRootElement
20
- * @param child
21
- * @param parentController
22
- */
23
- export declare function mpa_delivery(protoTypeComponent: Component, componentAttachedRootElement: ParentNode, child: Element, parentController: ContextController): void;
24
- /**
25
- *
26
- * @param collection
27
- * @param parentController
28
- */
29
- export declare function findComponent(collection: HTMLCollection, parentController: ContextController): void;
1
+ import { ContextController } from "../../system/prototype/ContextController";
2
+ import { Component } from "../../index";
3
+ /**
4
+ *
5
+ * @param protoTypeComponent
6
+ * @param componentAttachedRootElement
7
+ * @param child
8
+ * @param parentController
9
+ */
10
+ export declare function spa_delivery(protoTypeComponent: Component, componentAttachedRootElement: ParentNode, child: Element, parentController: ContextController): void;
11
+ /**
12
+ *
13
+ * @param protoTypeComponent
14
+ */
15
+ export declare function direct_delivery(protoTypeComponent: Component): void;
16
+ /**
17
+ *
18
+ * @param protoTypeComponent
19
+ * @param componentAttachedRootElement
20
+ * @param child
21
+ * @param parentController
22
+ */
23
+ export declare function mpa_delivery(protoTypeComponent: Component, componentAttachedRootElement: ParentNode, child: Element, parentController: ContextController): void;
24
+ /**
25
+ *
26
+ * @param collection
27
+ * @param parentController
28
+ */
29
+ export declare function findComponent(collection: HTMLCollection, parentController: ContextController): void;
@@ -1,83 +1,83 @@
1
- import { ContextController } from "../../system/prototype/ContextController";
2
- import { get_tag_library, set_context_controller } from "../../system/recorder/table0/system_func_0";
3
- import { init_renderer } from "../renderer/initRender";
4
- import { post_renderer } from "../renderer/postRender";
5
- import { raw_renderer } from "../renderer/rawRender";
6
- import { renderHtml } from "../../xboot/renderProcessor";
7
- import { tag_unknown_check } from "../../system/recorder/table2/system_func_2";
8
- /**
9
- *
10
- * @param protoTypeComponent
11
- * @param componentAttachedRootElement
12
- * @param child
13
- * @param parentController
14
- */
15
- export function spa_delivery(protoTypeComponent, componentAttachedRootElement, child, parentController) {
16
- raw_renderer(protoTypeComponent, componentAttachedRootElement, child, parentController);
17
- }
18
- /**
19
- *
20
- * @param protoTypeComponent
21
- */
22
- export function direct_delivery(protoTypeComponent) {
23
- var context = new ContextController({
24
- boxMode: true
25
- });
26
- set_context_controller(context);
27
- var webview = document.querySelector("webview");
28
- raw_renderer(protoTypeComponent, webview.parentNode, webview, context);
29
- }
30
- /**
31
- *
32
- * @param protoTypeComponent
33
- * @param componentAttachedRootElement
34
- * @param child
35
- * @param parentController
36
- */
37
- export function mpa_delivery(protoTypeComponent, componentAttachedRootElement, child, parentController) {
38
- //两种渲染方式
39
- if (child.hasAttribute("name")) {
40
- //需要保持状态的渲染
41
- if (parentController.lazyComponent.has(child.getAttribute("name"))) {
42
- //该元素存在旧数据,是更新渲染
43
- init_renderer(protoTypeComponent, componentAttachedRootElement, child, parentController);
44
- }
45
- else {
46
- //该元素不存在旧数据,是第一次渲染
47
- post_renderer(protoTypeComponent, componentAttachedRootElement, child, parentController);
48
- }
49
- }
50
- else {
51
- if (tag_unknown_check(child.nodeName.toUpperCase())) {
52
- //从tag库中获取该组件的定义
53
- var component = get_tag_library().get(child.nodeName.toUpperCase());
54
- if (!component) {
55
- //没有找到定义,向控制台输出警告
56
- console.error(child.nodeName.toUpperCase() + " can't be found in renderJs, you should firstly register in renderJs");
57
- }
58
- else {
59
- //找到,渲染自定义标签
60
- raw_renderer(protoTypeComponent, componentAttachedRootElement, child, parentController);
61
- }
62
- }
63
- else {
64
- //非自定义标签,深度解析
65
- renderHtml(child.children, parentController);
66
- }
67
- }
68
- }
69
- /**
70
- *
71
- * @param collection
72
- * @param parentController
73
- */
74
- export function findComponent(collection, parentController) {
75
- for (var i = 0; i < collection.length; i++) {
76
- if (tag_unknown_check(collection[i].nodeName)) {
77
- mpa_delivery(get_tag_library().get(collection[i].nodeName.toUpperCase()), collection[i].parentNode, collection[i], parentController);
78
- }
79
- else {
80
- findComponent(collection[i].children, parentController);
81
- }
82
- }
83
- }
1
+ import { ContextController } from "../../system/prototype/ContextController";
2
+ import { get_tag_library, set_context_controller } from "../../system/recorder/table0/system_func_0";
3
+ import { init_renderer } from "../renderer/initRender";
4
+ import { post_renderer } from "../renderer/postRender";
5
+ import { raw_renderer } from "../renderer/rawRender";
6
+ import { renderHtml } from "../../xboot/renderProcessor";
7
+ import { tag_unknown_check } from "../../system/recorder/table2/system_func_2";
8
+ /**
9
+ *
10
+ * @param protoTypeComponent
11
+ * @param componentAttachedRootElement
12
+ * @param child
13
+ * @param parentController
14
+ */
15
+ export function spa_delivery(protoTypeComponent, componentAttachedRootElement, child, parentController) {
16
+ raw_renderer(protoTypeComponent, componentAttachedRootElement, child, parentController);
17
+ }
18
+ /**
19
+ *
20
+ * @param protoTypeComponent
21
+ */
22
+ export function direct_delivery(protoTypeComponent) {
23
+ var context = new ContextController({
24
+ boxMode: true
25
+ });
26
+ set_context_controller(context);
27
+ var webview = document.querySelector("webview");
28
+ raw_renderer(protoTypeComponent, webview.parentNode, webview, context);
29
+ }
30
+ /**
31
+ *
32
+ * @param protoTypeComponent
33
+ * @param componentAttachedRootElement
34
+ * @param child
35
+ * @param parentController
36
+ */
37
+ export function mpa_delivery(protoTypeComponent, componentAttachedRootElement, child, parentController) {
38
+ //两种渲染方式
39
+ if (child.hasAttribute("name")) {
40
+ //需要保持状态的渲染
41
+ if (parentController.lazyComponent.has(child.getAttribute("name"))) {
42
+ //该元素存在旧数据,是更新渲染
43
+ init_renderer(protoTypeComponent, componentAttachedRootElement, child, parentController);
44
+ }
45
+ else {
46
+ //该元素不存在旧数据,是第一次渲染
47
+ post_renderer(protoTypeComponent, componentAttachedRootElement, child, parentController);
48
+ }
49
+ }
50
+ else {
51
+ if (tag_unknown_check(child.nodeName.toUpperCase())) {
52
+ //从tag库中获取该组件的定义
53
+ var component = get_tag_library().get(child.nodeName.toUpperCase());
54
+ if (!component) {
55
+ //没有找到定义,向控制台输出警告
56
+ console.error(child.nodeName.toUpperCase() + " can't be found in renderJs, you should firstly register in renderJs");
57
+ }
58
+ else {
59
+ //找到,渲染自定义标签
60
+ raw_renderer(protoTypeComponent, componentAttachedRootElement, child, parentController);
61
+ }
62
+ }
63
+ else {
64
+ //非自定义标签,深度解析
65
+ renderHtml(child.children, parentController);
66
+ }
67
+ }
68
+ }
69
+ /**
70
+ *
71
+ * @param collection
72
+ * @param parentController
73
+ */
74
+ export function findComponent(collection, parentController) {
75
+ for (var i = 0; i < collection.length; i++) {
76
+ if (tag_unknown_check(collection[i].nodeName)) {
77
+ mpa_delivery(get_tag_library().get(collection[i].nodeName.toUpperCase()), collection[i].parentNode, collection[i], parentController);
78
+ }
79
+ else {
80
+ findComponent(collection[i].children, parentController);
81
+ }
82
+ }
83
+ }