render-core 1.3.67 → 1.3.68

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