render-core 1.4.9 → 1.4.11

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 (88) hide show
  1. package/index.d.ts +14 -8
  2. package/index.js +18 -13
  3. package/kernel/delivery/delivery.js +3 -3
  4. package/kernel/directive/property/v-bind.js +2 -2
  5. package/kernel/directive/react/v-model.js +1 -1
  6. package/kernel/proxyer/getProxy.d.ts +0 -3
  7. package/kernel/proxyer/getProxy.js +1 -5
  8. package/kernel/renderer/initRender.js +9 -10
  9. package/kernel/renderer/postRender.js +10 -11
  10. package/kernel/renderer/rawRender.js +10 -11
  11. package/kernel/renderer/updateRender.js +14 -13
  12. package/kernel/router/router.js +3 -3
  13. package/package.json +1 -4
  14. package/system/generic/component/ComponentGeneric.d.ts +1 -1
  15. package/system/generic/controller/ControllerGeneric.d.ts +10 -4
  16. package/system/generic/data/ComputedDataGeneric.d.ts +13 -0
  17. package/system/generic/data/WatcherDataGeneric.d.ts +13 -0
  18. package/system/injection/injection.d.ts +8 -3
  19. package/system/injection/injection.js +22 -12
  20. package/system/injection/{inject.d.ts → injector.d.ts} +4 -0
  21. package/system/injection/{inject.js → injector.js} +14 -0
  22. package/system/lifecycle/mount.js +5 -8
  23. package/system/loader/loader.js +1 -1
  24. package/system/prototype/ContextController.d.ts +9 -8
  25. package/system/prototype/ContextController.js +1 -7
  26. package/system/recorder/table2/system_func_2.d.ts +5 -0
  27. package/system/recorder/table2/system_func_2.js +8 -0
  28. package/system/utility/{dataUtility.d.ts → data/dataUtility.d.ts} +1 -1
  29. package/system/utility/{dataUtility.js → data/dataUtility.js} +1 -1
  30. package/system/utility/{cmdUtility.d.ts → directive/cmdUtility.d.ts} +2 -2
  31. package/system/utility/{cmdUtility.js → directive/cmdUtility.js} +14 -14
  32. package/system/utility/{miscUtility.d.ts → initiate/miscUtility.d.ts} +1 -1
  33. package/system/utility/{miscUtility.js → initiate/miscUtility.js} +1 -1
  34. package/system/utility/initiate/templateUtility.d.ts +6 -0
  35. package/system/utility/{templateUtility.js → initiate/templateUtility.js} +1 -0
  36. package/system/utility/react/inputType.d.ts +25 -0
  37. package/system/utility/{inputType.js → react/inputType.js} +20 -0
  38. package/system/utility/{inputUtility.d.ts → react/inputUtility.d.ts} +15 -1
  39. package/system/utility/{inputUtility.js → react/inputUtility.js} +26 -9
  40. package/system/utility/{modelUtility.d.ts → react/modelUtility.d.ts} +3 -3
  41. package/system/utility/{modelUtility.js → react/modelUtility.js} +5 -7
  42. package/system/utility/{sectionUtility.d.ts → react/sectionUtility.d.ts} +1 -1
  43. package/system/utility/{sectionUtility.js → react/sectionUtility.js} +25 -9
  44. package/system/utility/{styleUtility.d.ts → style/styleUtility.d.ts} +1 -1
  45. package/system/utility/{styleUtility.js → style/styleUtility.js} +3 -3
  46. package/tension/prototype/HooksAction.js +1 -1
  47. package/xboot/{Entrance.d.ts → entrance.d.ts} +3 -3
  48. package/xboot/{Entrance.js → entrance.js} +4 -5
  49. package/xboot/{RenderProcessor.js → renderProcessor.js} +2 -2
  50. package/xboot/{TagProcessor.js → tagProcessor.js} +4 -8
  51. package/system/define/ContextController.d.ts +0 -29
  52. package/system/define/ContextController.js +0 -23
  53. package/system/generic/ControllerGeneric.d.ts +0 -21
  54. package/system/generic/RenderGeneric.d.ts +0 -4
  55. package/system/http/Http.d.ts +0 -11
  56. package/system/http/Http.js +0 -36
  57. package/system/router/router.d.ts +0 -3
  58. package/system/router/router.js +0 -20
  59. package/system/utility/checkUtility.d.ts +0 -1
  60. package/system/utility/checkUtility.js +0 -4
  61. package/system/utility/injectUtility.d.ts +0 -4
  62. package/system/utility/injectUtility.js +0 -14
  63. package/system/utility/inputType.d.ts +0 -5
  64. package/system/utility/templateUtility.d.ts +0 -5
  65. package/tension/DefaultRouterPlugin.d.ts +0 -17
  66. package/tension/DefaultRouterPlugin.js +0 -11
  67. package/tension/generic/ComponentGeneric.d.ts +0 -13
  68. package/tension/generic/ComponentGeneric.js +0 -1
  69. package/tension/generic/HooksGeneric.d.ts +0 -6
  70. package/tension/generic/HooksGeneric.js +0 -1
  71. package/tension/generic/OriginalDataGeneric.d.ts +0 -18
  72. package/tension/generic/OriginalDataGeneric.js +0 -1
  73. package/tension/generic/PluginGeneric.d.ts +0 -5
  74. package/tension/generic/PluginGeneric.js +0 -1
  75. package/tension/generic/PrefaceGeneric.d.ts +0 -6
  76. package/tension/generic/PrefaceGeneric.js +0 -1
  77. package/tension/generic/RouterGeneric.d.ts +0 -5
  78. package/tension/generic/RouterGeneric.js +0 -1
  79. package/tension/prototype/AbstractRouter.d.ts +0 -6
  80. package/tension/prototype/AbstractRouter.js +0 -12
  81. package/tension/prototype/RouterAction.d.ts +0 -9
  82. package/tension/prototype/RouterAction.js +0 -20
  83. /package/system/generic/{ControllerGeneric.js → data/ComputedDataGeneric.js} +0 -0
  84. /package/system/generic/{RenderGeneric.js → data/WatcherDataGeneric.js} +0 -0
  85. /package/system/{utility → output}/errorUtility.d.ts +0 -0
  86. /package/system/{utility → output}/errorUtility.js +0 -0
  87. /package/xboot/{RenderProcessor.d.ts → renderProcessor.d.ts} +0 -0
  88. /package/xboot/{TagProcessor.d.ts → tagProcessor.d.ts} +0 -0
@@ -1,19 +1,22 @@
1
1
  import { ControllerGeneric } from "../generic/controller/ControllerGeneric";
2
2
  import { Component } from "../../index";
3
+ import { OriginalDataGeneric } from "../generic/data/OriginalDataGeneric";
4
+ import { ComputedDataGeneric } from "../generic/data/ComputedDataGeneric";
5
+ import { WatcherDataGeneric } from "../generic/data/WatcherDataGeneric";
3
6
  export declare class ContextController implements ControllerGeneric {
4
7
  componentAttachedRootElement: ParentNode | Element;
5
8
  prototypeOfComponent: Component;
6
9
  parentController: ContextController;
7
- anchor: HTMLElement;
8
- begin: HTMLElement;
10
+ anchorBegin: HTMLElement;
11
+ anchorEnd: HTMLElement;
9
12
  componentConfig: {
10
13
  boxMode: boolean;
11
14
  plugins?: Map<string, any>;
12
15
  };
13
- originalData: {};
14
- dataForMethod: {};
15
- dataForComputed: {};
16
- dataForWatcher: {};
16
+ originalData: OriginalDataGeneric;
17
+ dataForMethod: OriginalDataGeneric;
18
+ dataForComputed: ComputedDataGeneric;
19
+ dataForWatcher: WatcherDataGeneric;
17
20
  salt: Map<string, any>;
18
21
  lazyComponent: Map<string, {}>;
19
22
  slaveComponent: ContextController[];
@@ -22,8 +25,6 @@ export declare class ContextController implements ControllerGeneric {
22
25
  watcher: {};
23
26
  constructor(config: {
24
27
  boxMode: boolean;
25
- $plugins?: Map<string, any>;
26
28
  });
27
29
  receiver(method: string, ...args: any[]): any;
28
- flush(): void;
29
30
  }
@@ -1,13 +1,10 @@
1
- import { update_Render } from "../../kernel/renderer/updateRender";
2
1
  var ContextController = /** @class */ (function () {
3
- //构造函数
4
2
  function ContextController(config) {
3
+ this.componentConfig = config;
5
4
  this.lazyComponent = new Map();
6
5
  this.slaveComponent = Array();
7
6
  this.salt = new Map();
8
- this.componentConfig = config;
9
7
  }
10
- //接收器
11
8
  ContextController.prototype.receiver = function (method) {
12
9
  var args = [];
13
10
  for (var _i = 1; _i < arguments.length; _i++) {
@@ -15,9 +12,6 @@ var ContextController = /** @class */ (function () {
15
12
  }
16
13
  return this.prototypeOfComponent.getMethods()[method].apply(this.dataForMethod, args);
17
14
  };
18
- ContextController.prototype.flush = function () {
19
- update_Render(this);
20
- };
21
15
  return ContextController;
22
16
  }());
23
17
  export { ContextController };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This func used the check the tag
3
+ * @param element
4
+ */
5
+ export declare function tag_unknown_check(element: string): boolean;
@@ -0,0 +1,8 @@
1
+ import system_t_2 from "./system_t_2";
2
+ /**
3
+ * This func used the check the tag
4
+ * @param element
5
+ */
6
+ export function tag_unknown_check(element) {
7
+ return !system_t_2.some(function (ele) { return ele == element; });
8
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ * This func used to generate a new original data form prototype
3
3
  * @param data
4
4
  */
5
5
  export declare function dataInject(data: {}): any;
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ * This func used to generate a new original data form prototype
3
3
  * @param data
4
4
  */
5
5
  export function dataInject(data) {
@@ -1,5 +1,5 @@
1
- import { ContextController } from "../prototype/ContextController";
2
- import { Component } from "../../index";
1
+ import { ContextController } from "../../prototype/ContextController";
2
+ import { Component } from "../../../index";
3
3
  /**
4
4
  * This function is used to parse_directive those commands which should be executed before mount.
5
5
  * @param tagTemplate
@@ -1,17 +1,17 @@
1
- import { add_label_to_element } from "./miscUtility";
2
- import { parse_directive_event } from "../../kernel/directive/method/v-on";
3
- import { parse_directive_html } from "../../kernel/directive/data/v-html";
4
- import { parse_directive_txt } from "../../kernel/directive/data/v-txt";
5
- import { parse_directive_model } from "../../kernel/directive/react/v-model";
6
- import { parse_directive_bind } from "../../kernel/directive/property/v-bind";
7
- import { parse_directive_show } from "../../kernel/directive/justify/v-show";
8
- import { parse_directive_render } from "../../kernel/directive/justify/v-render";
9
- import { parse_directive_if } from "../../kernel/directive/justify/v-if";
10
- import { parse_directive_switch } from "../../kernel/directive/justify/v-switch";
11
- import { parse_directive_for_of } from "../../kernel/directive/loop/v-for";
12
- import { parse_directive_salt_extract } from "../../kernel/directive/salt/v-solt";
13
- import { parse_directive_expression } from "../../kernel/directive/data/v-el";
14
- import { parse_directive_for_map } from "../../kernel/directive/loop/v-map";
1
+ import { add_label_to_element } from "../initiate/miscUtility";
2
+ import { parse_directive_event } from "../../../kernel/directive/method/v-on";
3
+ import { parse_directive_html } from "../../../kernel/directive/data/v-html";
4
+ import { parse_directive_txt } from "../../../kernel/directive/data/v-txt";
5
+ import { parse_directive_model } from "../../../kernel/directive/react/v-model";
6
+ import { parse_directive_bind } from "../../../kernel/directive/property/v-bind";
7
+ import { parse_directive_show } from "../../../kernel/directive/justify/v-show";
8
+ import { parse_directive_render } from "../../../kernel/directive/justify/v-render";
9
+ import { parse_directive_if } from "../../../kernel/directive/justify/v-if";
10
+ import { parse_directive_switch } from "../../../kernel/directive/justify/v-switch";
11
+ import { parse_directive_for_of } from "../../../kernel/directive/loop/v-for";
12
+ import { parse_directive_salt_extract } from "../../../kernel/directive/salt/v-solt";
13
+ import { parse_directive_expression } from "../../../kernel/directive/data/v-el";
14
+ import { parse_directive_for_map } from "../../../kernel/directive/loop/v-map";
15
15
  /**
16
16
  * This function is used to parse_directive those commands which should be executed before mount.
17
17
  * @param tagTemplate
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 给组件元素添加cpn标签
2
+ * This func used to add tag label to the content of the user tag
3
3
  * @param nodes
4
4
  * @param component
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 给组件元素添加cpn标签
2
+ * This func used to add tag label to the content of the user tag
3
3
  * @param nodes
4
4
  * @param component
5
5
  */
@@ -0,0 +1,6 @@
1
+ import { Component } from "../../../index";
2
+ /**
3
+ * This func used to get the view tag from the template
4
+ * @param proto
5
+ */
6
+ export declare function getTemplate(proto: Component): Element;
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * This func used to get the view tag from the template
2
3
  * @param proto
3
4
  */
4
5
  export function getTemplate(proto) {
@@ -0,0 +1,25 @@
1
+ import { ContextController } from "../../prototype/ContextController";
2
+ /**
3
+ * This func used to resolve input-data which is the text type
4
+ * @param target
5
+ * @param doc
6
+ * @param controller
7
+ */
8
+ export declare function textType(target: any, doc: any, controller: ContextController): void;
9
+ /**
10
+ * This func used to resolve input-data which is the assign type
11
+ * @param target
12
+ * @param controller
13
+ */
14
+ export declare function assignType(target: any, controller: ContextController): void;
15
+ /**
16
+ * This func used to resolve input-data which is the file type
17
+ * @param target
18
+ * @param controller
19
+ */
20
+ export declare function fileType(target: any, controller: ContextController): void;
21
+ /**
22
+ * This func used to resolve input-data which is the check type
23
+ * @param target
24
+ */
25
+ export declare function checkType(target: any): void;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * This func used to resolve input-data which is the text type
3
+ * @param target
4
+ * @param doc
5
+ * @param controller
6
+ */
1
7
  export function textType(target, doc, controller) {
2
8
  // @ts-ignore
3
9
  target.value = controller.dataForMethod[target.getAttribute("name")];
@@ -6,14 +12,28 @@ export function textType(target, doc, controller) {
6
12
  // @ts-ignore
7
13
  target.setSelectionRange(doc.start, doc.start);
8
14
  }
15
+ /**
16
+ * This func used to resolve input-data which is the assign type
17
+ * @param target
18
+ * @param controller
19
+ */
9
20
  export function assignType(target, controller) {
10
21
  // @ts-ignore
11
22
  target.value = controller.dataForMethod[target.getAttribute("name")];
12
23
  }
24
+ /**
25
+ * This func used to resolve input-data which is the file type
26
+ * @param target
27
+ * @param controller
28
+ */
13
29
  export function fileType(target, controller) {
14
30
  // @ts-ignore
15
31
  target.files = controller.dataForMethod[target.getAttribute("name")];
16
32
  }
33
+ /**
34
+ * This func used to resolve input-data which is the check type
35
+ * @param target
36
+ */
17
37
  export function checkType(target) {
18
38
  // @ts-ignore
19
39
  target.checked = "checked";
@@ -1,5 +1,19 @@
1
1
  export declare function inputUtility(element: Element, space: Object): void;
2
+ /**
3
+ *
4
+ * @param element
5
+ * @param space
6
+ */
2
7
  export declare function filesType(element: Element, space: Object): void;
8
+ /**
9
+ *
10
+ * @param element
11
+ * @param space
12
+ */
3
13
  export declare function selectUtility(element: Element, space: Object): void;
14
+ /**
15
+ *
16
+ * @param element
17
+ * @param space
18
+ */
4
19
  export declare function textareaUtility(element: Element, space: Object): void;
5
- export declare function changeUtility(element: Element, space: Object): void;
@@ -58,16 +58,26 @@ export function inputUtility(element, space) {
58
58
  assignType(element, space);
59
59
  break;
60
60
  default:
61
- console.log("This type input can`t be dealed!");
61
+ console.log("This type input can`t be tackled!");
62
62
  break;
63
63
  }
64
64
  }
65
+ /**
66
+ *
67
+ * @param element
68
+ * @param space
69
+ */
65
70
  function assignType(element, space) {
66
71
  Reflect.set(space, "origin", {
67
72
  tag: element.tagName,
68
73
  id: element.getAttribute("id"),
69
74
  });
70
75
  }
76
+ /**
77
+ *
78
+ * @param element
79
+ * @param space
80
+ */
71
81
  function editType(element, space) {
72
82
  Reflect.set(space, "origin", {
73
83
  tag: element.tagName,
@@ -76,12 +86,22 @@ function editType(element, space) {
76
86
  start: element.selectionStart
77
87
  });
78
88
  }
89
+ /**
90
+ *
91
+ * @param element
92
+ * @param space
93
+ */
79
94
  export function filesType(element, space) {
80
95
  Reflect.set(space, "origin", {
81
96
  tag: element.tagName,
82
97
  id: element.getAttribute("id")
83
98
  });
84
99
  }
100
+ /**
101
+ *
102
+ * @param element
103
+ * @param space
104
+ */
85
105
  export function selectUtility(element, space) {
86
106
  Reflect.set(space, "origin", {
87
107
  tag: element.tagName,
@@ -90,6 +110,11 @@ export function selectUtility(element, space) {
90
110
  selected: element.value
91
111
  });
92
112
  }
113
+ /**
114
+ *
115
+ * @param element
116
+ * @param space
117
+ */
93
118
  export function textareaUtility(element, space) {
94
119
  Reflect.set(space, "origin", {
95
120
  tag: element.tagName,
@@ -98,11 +123,3 @@ export function textareaUtility(element, space) {
98
123
  start: element.selectionStart
99
124
  });
100
125
  }
101
- export function changeUtility(element, space) {
102
- Reflect.set(space, "origin", {
103
- tag: element.tagName,
104
- id: element.getAttribute("id"),
105
- // @ts-ignore
106
- start: element.selectionStart
107
- });
108
- }
@@ -1,15 +1,15 @@
1
1
  /**
2
- *
2
+ * This func used to make a flag to the input element
3
3
  * @param evt
4
4
  */
5
5
  export declare function compositionstart(evt: any): void;
6
6
  /**
7
- *
7
+ * This func used to make a flag to the input element
8
8
  * @param evt
9
9
  */
10
10
  export declare function listener(evt: any): void;
11
11
  /**
12
- *
12
+ * This func used to make a flag to the input element
13
13
  * @param evt
14
14
  */
15
15
  export declare function compositionend(evt: any): void;
@@ -1,13 +1,13 @@
1
1
  import { inputUtility, selectUtility, textareaUtility } from "./inputUtility";
2
2
  /**
3
- *
3
+ * This func used to make a flag to the input element
4
4
  * @param evt
5
5
  */
6
6
  export function compositionstart(evt) {
7
7
  evt.target.setAttribute("flag", "false");
8
8
  }
9
9
  /**
10
- *
10
+ * This func used to make a flag to the input element
11
11
  * @param evt
12
12
  */
13
13
  export function listener(evt) {
@@ -29,16 +29,14 @@ export function listener(evt) {
29
29
  break;
30
30
  }
31
31
  //Update the value
32
- if (element.type === "file") {
32
+ if (element.type === "file")
33
33
  this[element.name] = element.files;
34
- }
35
- else {
34
+ else
36
35
  this[element.name] = element.value;
37
- }
38
36
  }
39
37
  }
40
38
  /**
41
- *
39
+ * This func used to make a flag to the input element
42
40
  * @param evt
43
41
  */
44
42
  export function compositionend(evt) {
@@ -1,4 +1,4 @@
1
- import { ContextController } from "../prototype/ContextController";
1
+ import { ContextController } from "../../prototype/ContextController";
2
2
  /**
3
3
  *
4
4
  * @param controller
@@ -24,6 +24,12 @@ export function locateInputAddress(controller) {
24
24
  }
25
25
  }
26
26
  }
27
+ /**
28
+ *
29
+ * @param target
30
+ * @param doc
31
+ * @param controller
32
+ */
27
33
  function locateInput(target, doc, controller) {
28
34
  switch (target.getAttribute("type")) {
29
35
  case "text":
@@ -88,6 +94,25 @@ function locateInput(target, doc, controller) {
88
94
  break;
89
95
  }
90
96
  }
97
+ /**
98
+ *
99
+ * @param target
100
+ * @param doc
101
+ */
102
+ function locateSelect(target, doc) {
103
+ // @ts-ignore
104
+ var list = target.getElementsByTagName("option");
105
+ for (var i = 0; i < list.length; i++) {
106
+ if (list[i].value === doc.selected)
107
+ list[i].selected = true;
108
+ }
109
+ }
110
+ /**
111
+ *
112
+ * @param target
113
+ * @param doc
114
+ * @param controller
115
+ */
91
116
  function locateTextArea(target, doc, controller) {
92
117
  // @ts-ignore
93
118
  target.value = controller.dataForMethod[target.getAttribute("name")];
@@ -96,12 +121,3 @@ function locateTextArea(target, doc, controller) {
96
121
  // @ts-ignore
97
122
  target.setSelectionRange(doc.start, doc.start);
98
123
  }
99
- function locateSelect(target, doc) {
100
- // @ts-ignore
101
- var list = target.getElementsByTagName("option");
102
- for (var i = 0; i < list.length; i++) {
103
- if (list[i].value === doc.selected) {
104
- list[i].selected = true;
105
- }
106
- }
107
- }
@@ -1,4 +1,4 @@
1
- import { Component } from "../../index";
1
+ import { Component } from "../../../index";
2
2
  /**
3
3
  *
4
4
  * @param tag
@@ -1,6 +1,6 @@
1
- import { loadStyle } from "../loader/loader";
2
- import { get_theme_style, set_theme_style } from "../recorder/table1/system_func_1";
3
- import { get_style_library } from "../recorder/table0/system_func_0";
1
+ import { loadStyle } from "../../loader/loader";
2
+ import { get_theme_style, set_theme_style } from "../../recorder/table1/system_func_1";
3
+ import { get_style_library } from "../../recorder/table0/system_func_0";
4
4
  /**
5
5
  *
6
6
  * @param tag
@@ -1,4 +1,4 @@
1
- import { changeStyle, changeTheme } from "../../system/utility/styleUtility";
1
+ import { changeStyle, changeTheme } from "../../system/utility/style/styleUtility";
2
2
  import { direct_delivery } from "../../kernel/delivery/delivery";
3
3
  var HooksAction = /** @class */ (function () {
4
4
  function HooksAction() {
@@ -1,15 +1,15 @@
1
1
  import { Component } from "../index";
2
2
  /**
3
- * The entrance of render
3
+ * The entrance of weave
4
4
  * @param root
5
5
  */
6
6
  export declare function render_for_weave(root?: string): void;
7
7
  /**
8
- *
8
+ * The entrance of listen
9
9
  */
10
10
  export declare function render_for_listen(): void;
11
11
  /**
12
- *
12
+ * The entrance of render
13
13
  * @param component
14
14
  * @param mounter
15
15
  */
@@ -1,13 +1,12 @@
1
- import { themeStyle } from "../system/utility/styleUtility";
1
+ import { themeStyle } from "../system/utility/style/styleUtility";
2
2
  import { renderHtml } from "./renderProcessor";
3
3
  import { get_context_controller, get_style_library, get_tag_library } from "../system/recorder/table0/system_func_0";
4
4
  import { router_listener_with_router, router_listener_without_router } from "../kernel/router/router";
5
5
  /**
6
- * The entrance of render
6
+ * The entrance of weave
7
7
  * @param root
8
8
  */
9
9
  export function render_for_weave(root) {
10
- //获取styleLib对象
11
10
  get_tag_library().forEach(function (component) {
12
11
  themeStyle(component, get_style_library());
13
12
  });
@@ -33,7 +32,7 @@ export function render_for_weave(root) {
33
32
  }
34
33
  }
35
34
  /**
36
- *
35
+ * The entrance of listen
37
36
  */
38
37
  export function render_for_listen() {
39
38
  get_tag_library().forEach(function (component) {
@@ -42,7 +41,7 @@ export function render_for_listen() {
42
41
  router_listener_with_router(document.querySelector("webview"));
43
42
  }
44
43
  /**
45
- *
44
+ * The entrance of render
46
45
  * @param component
47
46
  * @param mounter
48
47
  */
@@ -1,6 +1,6 @@
1
- import { isUnKnown } from "../system/utility/checkUtility";
2
1
  import { get_tag_library } from "../system/recorder/table0/system_func_0";
3
2
  import { mpa_delivery } from "../kernel/delivery/delivery";
3
+ import { tag_unknown_check } from "../system/recorder/table2/system_func_2";
4
4
  /**
5
5
  * This function is used to render element below the mount point.
6
6
  * @param collection
@@ -8,7 +8,7 @@ import { mpa_delivery } from "../kernel/delivery/delivery";
8
8
  */
9
9
  export function renderHtml(collection, contextController) {
10
10
  for (var i = 0; i < collection.length; i++) {
11
- if (isUnKnown(collection[i].nodeName.toUpperCase())) {
11
+ if (tag_unknown_check(collection[i].nodeName.toUpperCase())) {
12
12
  var component = get_tag_library().get(collection[i].nodeName.toUpperCase());
13
13
  if (typeof component === undefined)
14
14
  console.error(collection[i].nodeName.toUpperCase() + " can't be found in renderJs, you should firstly register in renderJs");
@@ -7,20 +7,16 @@ import { get_tag_library } from "../system/recorder/table0/system_func_0";
7
7
  export function registerTagLib(component) {
8
8
  if (Array.isArray(component)) {
9
9
  component.forEach(function (component) {
10
- if (!get_tag_library().has(component.getName().toUpperCase())) {
10
+ if (!get_tag_library().has(component.getName().toUpperCase()))
11
11
  get_tag_library().set(component.getName().toUpperCase(), component);
12
- }
13
- else {
12
+ else
14
13
  console.warn("The Tag:" + component.getName().toUpperCase() + "has been registered!");
15
- }
16
14
  });
17
15
  }
18
16
  else {
19
- if (!get_tag_library().has(component.getName().toUpperCase())) {
17
+ if (!get_tag_library().has(component.getName().toUpperCase()))
20
18
  get_tag_library().set(component.getName().toUpperCase(), component);
21
- }
22
- else {
19
+ else
23
20
  console.warn("The Tag:" + component.getName().toUpperCase() + "has been registered!");
24
- }
25
21
  }
26
22
  }
@@ -1,29 +0,0 @@
1
- import { ControllerGeneric } from "../generic/controller/ControllerGeneric";
2
- import { Component } from "../../index";
3
- export declare class ContextController implements ControllerGeneric {
4
- componentAttachedRootElement: ParentNode | Element;
5
- prototypeOfComponent: Component;
6
- parentController: ContextController;
7
- anchor: HTMLElement;
8
- begin: HTMLElement;
9
- componentConfig: {
10
- boxMode: boolean;
11
- plugins?: Map<string, any>;
12
- };
13
- originalData: {};
14
- dataForMethod: {};
15
- dataForComputed: {};
16
- dataForWatcher: {};
17
- salt: Map<string, any>;
18
- lazyComponent: Map<string, {}>;
19
- slaveComponent: ContextController[];
20
- method: {};
21
- computed: {};
22
- watcher: {};
23
- constructor(config: {
24
- boxMode: boolean;
25
- $plugins?: Map<string, any>;
26
- });
27
- receiver(method: string, ...args: any[]): any;
28
- flush(): void;
29
- }
@@ -1,23 +0,0 @@
1
- import { update_Render } from "../../kernel/renderer/updateRender";
2
- var ContextController = /** @class */ (function () {
3
- //构造函数
4
- function ContextController(config) {
5
- this.lazyComponent = new Map();
6
- this.slaveComponent = Array();
7
- this.salt = new Map();
8
- this.componentConfig = config;
9
- }
10
- //接收器
11
- ContextController.prototype.receiver = function (method) {
12
- var args = [];
13
- for (var _i = 1; _i < arguments.length; _i++) {
14
- args[_i - 1] = arguments[_i];
15
- }
16
- return this.prototypeOfComponent.getMethods()[method].apply(this.dataForMethod, args);
17
- };
18
- ContextController.prototype.flush = function () {
19
- update_Render(this);
20
- };
21
- return ContextController;
22
- }());
23
- export { ContextController };
@@ -1,21 +0,0 @@
1
- import { ContextController } from "../define/ContextController";
2
- import { Component } from "../../index";
3
- export interface ControllerGeneric {
4
- componentAttachedRootElement: ParentNode;
5
- prototypeOfComponent: Component;
6
- parentController: ContextController;
7
- componentConfig: {
8
- boxMode: boolean;
9
- };
10
- originalData: {};
11
- dataForMethod: {};
12
- dataForComputed: {};
13
- salt: Map<string, any>;
14
- lazyComponent: Map<string, {}>;
15
- slaveComponent: ContextController[];
16
- method: {};
17
- computed: {};
18
- watcher: {};
19
- receiver(method: string, ...args: any[]): any;
20
- flush(): void;
21
- }
@@ -1,4 +0,0 @@
1
- import { AbstractPlugin } from "../../index";
2
- export interface RenderGeneric {
3
- use_plugin(plugin: AbstractPlugin): void;
4
- }