render-core 1.4.31 → 1.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +62 -29
- package/index.js +52 -44
- package/kernel/delivery/delivery.d.ts +4 -10
- package/kernel/delivery/delivery.js +4 -17
- package/kernel/directive/data/v-el.d.ts +1 -1
- package/kernel/directive/data/v-html.d.ts +1 -1
- package/kernel/directive/data/v-txt.d.ts +1 -1
- package/kernel/directive/justify/v-if.js +2 -2
- package/kernel/directive/slot/v-slot.d.ts +1 -1
- package/kernel/proxyer/getProxy.d.ts +1 -1
- package/kernel/renderer/initRender.d.ts +3 -3
- package/kernel/renderer/initRender.js +6 -5
- package/kernel/renderer/pageRender.d.ts +9 -0
- package/kernel/renderer/pageRender.js +53 -0
- package/kernel/renderer/postRender.d.ts +3 -3
- package/kernel/renderer/postRender.js +4 -3
- package/kernel/renderer/rawRender.d.ts +3 -3
- package/kernel/renderer/rawRender.js +4 -3
- package/kernel/renderer/updateRender.d.ts +1 -1
- package/kernel/router/router.d.ts +3 -9
- package/kernel/router/router.js +10 -30
- package/package.json +1 -1
- package/system/generic/component/ComponentGeneric.d.ts +2 -2
- package/{tension/prototype → system/generic/component/instance}/AbstractComponent.d.ts +9 -11
- package/{tension/prototype → system/generic/component/instance}/AbstractComponent.js +9 -24
- package/system/generic/controller/ControllerGeneric.d.ts +3 -3
- package/system/{prototype → generic/controller/prototype}/ContextController.d.ts +6 -6
- package/system/{prototype → generic/controller/prototype}/HttpAction.d.ts +1 -1
- package/system/generic/data/ComputedDataGeneric.d.ts +1 -1
- package/system/generic/data/OriginalDataGeneric.d.ts +1 -1
- package/system/generic/data/WatcherDataGeneric.d.ts +1 -1
- package/system/generic/render/RenderGeneric.d.ts +2 -4
- package/system/injection/injection.d.ts +1 -1
- package/system/injection/injector.d.ts +5 -5
- package/system/lifecycle/lifeCycle.d.ts +1 -1
- package/system/lifecycle/mount.d.ts +3 -3
- package/system/lifecycle/mount.js +1 -1
- package/system/recorder/table0/system_func_0.d.ts +5 -5
- package/system/recorder/table0/system_t_0.d.ts +2 -2
- package/system/recorder/table1/system_func_1.d.ts +2 -0
- package/system/recorder/table1/system_func_1.js +6 -0
- package/system/recorder/table3/system_func_3.d.ts +1 -1
- package/system/utility/directive/cmdUtility.d.ts +3 -3
- package/system/utility/initiate/templateUtility.d.ts +2 -2
- package/system/utility/react/inputType.d.ts +1 -1
- package/system/utility/react/sectionUtility.d.ts +1 -1
- package/system/utility/style/styleUtility.d.ts +2 -2
- package/tension/SystemInitPlugin.js +1 -1
- package/tension/generic/plugin/hooks/HooksGeneric.d.ts +0 -2
- package/tension/generic/plugin/preface/PrefaceGeneric.d.ts +3 -3
- package/tension/generic/router/RouterGeneric.d.ts +6 -3
- package/tension/prototype/HooksAction.d.ts +0 -2
- package/tension/prototype/HooksAction.js +0 -4
- package/tension/prototype/PrefaceAction.d.ts +3 -3
- package/verify/directive-linter.d.ts +0 -4
- package/verify/directive-linter.js +152 -123
- package/xboot/entrance.d.ts +1 -13
- package/xboot/entrance.js +3 -49
- package/xboot/renderProcessor.d.ts +1 -1
- package/xboot/tagProcessor.d.ts +2 -2
- package/kernel/directive/salt/v-solt.d.ts +0 -13
- package/kernel/directive/salt/v-solt.js +0 -46
- /package/system/{prototype → generic/controller/prototype}/ContextController.js +0 -0
- /package/system/{prototype → generic/controller/prototype}/HttpAction.js +0 -0
package/kernel/router/router.js
CHANGED
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { get_context_controller } from "../../system/recorder/table0/system_func_0";
|
|
2
2
|
import { spa_delivery } from "../delivery/delivery";
|
|
3
3
|
import { get_system_ext_router } from "../../system/recorder/table3/system_func_3";
|
|
4
|
-
import { set_path_variable } from "../../system/recorder/table1/system_func_1";
|
|
4
|
+
import { set_params_variable, set_path_variable } from "../../system/recorder/table1/system_func_1";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
6
|
* @param view
|
|
7
|
+
* @param params
|
|
8
|
+
* @param pathParams
|
|
8
9
|
*/
|
|
9
|
-
export function router_listener_with_router(view) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var component = router.getComponent();
|
|
17
|
-
var variable = router.getPathVariable();
|
|
18
|
-
set_path_variable(variable);
|
|
19
|
-
spa_delivery(component, view.parentNode, view, controller);
|
|
20
|
-
}
|
|
21
|
-
else
|
|
22
|
-
console.warn("Without view element to render");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @param component
|
|
28
|
-
* @param mounter
|
|
29
|
-
*/
|
|
30
|
-
export function router_listener_without_router(component, mounter) {
|
|
31
|
-
if (mounter !== null) {
|
|
32
|
-
var controller = get_context_controller();
|
|
33
|
-
spa_delivery(component, mounter.parentNode, mounter, controller);
|
|
34
|
-
}
|
|
35
|
-
else
|
|
36
|
-
console.warn("Without mounter element to render");
|
|
10
|
+
export function router_listener_with_router(view, params, pathParams) {
|
|
11
|
+
var controller = get_context_controller();
|
|
12
|
+
var router = get_system_ext_router();
|
|
13
|
+
var component = router.getComponent();
|
|
14
|
+
set_params_variable(params);
|
|
15
|
+
set_path_variable(pathParams);
|
|
16
|
+
spa_delivery(component.component, view, controller);
|
|
37
17
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ComponentGeneric } from "
|
|
1
|
+
import { ComponentGeneric } from "../ComponentGeneric";
|
|
2
2
|
/**
|
|
3
3
|
* This is the component prototype.
|
|
4
4
|
*/
|
|
5
5
|
export declare abstract class AbstractComponent implements ComponentGeneric {
|
|
6
|
-
private readonly name;
|
|
7
6
|
private readonly template;
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly boxStyle?;
|
|
7
|
+
private readonly style;
|
|
10
8
|
private readonly props?;
|
|
11
9
|
private readonly data?;
|
|
12
10
|
private readonly methods?;
|
|
@@ -15,12 +13,12 @@ export declare abstract class AbstractComponent implements ComponentGeneric {
|
|
|
15
13
|
private readonly beforeRender?;
|
|
16
14
|
private readonly afterRender?;
|
|
17
15
|
protected constructor(config: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
template: {
|
|
17
|
+
name: string;
|
|
18
|
+
vDate: string;
|
|
19
|
+
template: string;
|
|
22
20
|
};
|
|
23
|
-
|
|
21
|
+
style?: string;
|
|
24
22
|
props?: {} | string[];
|
|
25
23
|
data?: {};
|
|
26
24
|
computed?: {};
|
|
@@ -31,8 +29,8 @@ export declare abstract class AbstractComponent implements ComponentGeneric {
|
|
|
31
29
|
});
|
|
32
30
|
getName(): string;
|
|
33
31
|
getTemplate(): string;
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
getVDate(): string;
|
|
33
|
+
getStyle(): string;
|
|
36
34
|
getProps(): {};
|
|
37
35
|
getData(): {};
|
|
38
36
|
getMethods(): {};
|
|
@@ -3,28 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
var AbstractComponent = /** @class */ (function () {
|
|
5
5
|
function AbstractComponent(config) {
|
|
6
|
-
//标签名称
|
|
7
|
-
this.name = config.name;
|
|
8
6
|
//标签模板样式
|
|
9
7
|
this.template = config.template;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
this.config = {
|
|
13
|
-
boxMode: true
|
|
14
|
-
};
|
|
8
|
+
if (typeof config.style === "undefined") {
|
|
9
|
+
this.style = "";
|
|
15
10
|
}
|
|
16
11
|
else {
|
|
17
|
-
this.
|
|
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();
|
|
12
|
+
this.style = config.style;
|
|
28
13
|
}
|
|
29
14
|
//props validate
|
|
30
15
|
if (typeof config.props === "undefined") {
|
|
@@ -76,16 +61,16 @@ var AbstractComponent = /** @class */ (function () {
|
|
|
76
61
|
}
|
|
77
62
|
}
|
|
78
63
|
AbstractComponent.prototype.getName = function () {
|
|
79
|
-
return this.name;
|
|
64
|
+
return this.template.name;
|
|
80
65
|
};
|
|
81
66
|
AbstractComponent.prototype.getTemplate = function () {
|
|
82
|
-
return this.template;
|
|
67
|
+
return this.template.template;
|
|
83
68
|
};
|
|
84
|
-
AbstractComponent.prototype.
|
|
85
|
-
return this.
|
|
69
|
+
AbstractComponent.prototype.getVDate = function () {
|
|
70
|
+
return this.template.vDate;
|
|
86
71
|
};
|
|
87
|
-
AbstractComponent.prototype.
|
|
88
|
-
return this.
|
|
72
|
+
AbstractComponent.prototype.getStyle = function () {
|
|
73
|
+
return this.style;
|
|
89
74
|
};
|
|
90
75
|
AbstractComponent.prototype.getProps = function () {
|
|
91
76
|
return this.props;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ContextController } from "
|
|
2
|
-
import {
|
|
1
|
+
import { ContextController } from "./prototype/ContextController";
|
|
2
|
+
import { AdjustComponent, ControlComponent } from "../../../index";
|
|
3
3
|
import { OriginalDataGeneric } from "../data/OriginalDataGeneric";
|
|
4
4
|
/**
|
|
5
5
|
* The class is the prototype of controller
|
|
6
6
|
*/
|
|
7
7
|
export interface ControllerGeneric {
|
|
8
8
|
componentAttachedRootElement: ParentNode;
|
|
9
|
-
prototypeOfComponent:
|
|
9
|
+
prototypeOfComponent: AdjustComponent | ControlComponent;
|
|
10
10
|
parentController: ContextController;
|
|
11
11
|
anchorBegin: HTMLElement;
|
|
12
12
|
anchorEnd: HTMLElement;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ControllerGeneric } from "../
|
|
2
|
-
import {
|
|
3
|
-
import { OriginalDataGeneric } from "
|
|
4
|
-
import { ComputedDataGeneric } from "
|
|
5
|
-
import { WatcherDataGeneric } from "
|
|
1
|
+
import { ControllerGeneric } from "../ControllerGeneric";
|
|
2
|
+
import { AdjustComponent, ControlComponent } from "../../../../index";
|
|
3
|
+
import { OriginalDataGeneric } from "../../data/OriginalDataGeneric";
|
|
4
|
+
import { ComputedDataGeneric } from "../../data/ComputedDataGeneric";
|
|
5
|
+
import { WatcherDataGeneric } from "../../data/WatcherDataGeneric";
|
|
6
6
|
export declare class ContextController implements ControllerGeneric {
|
|
7
7
|
componentAttachedRootElement: ParentNode | Element;
|
|
8
|
-
prototypeOfComponent:
|
|
8
|
+
prototypeOfComponent: AdjustComponent | ControlComponent;
|
|
9
9
|
parentController: ContextController;
|
|
10
10
|
anchorBegin: HTMLElement;
|
|
11
11
|
anchorEnd: HTMLElement;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PluginGeneric } from "../../../tension/generic/plugin/PluginGeneric";
|
|
2
|
-
import {
|
|
2
|
+
import { AdjustComponent, ControlComponent } from "../../../index";
|
|
3
3
|
export interface RenderGeneric {
|
|
4
4
|
use_plugin(plugin: PluginGeneric): void;
|
|
5
|
-
add_tag(component:
|
|
5
|
+
add_tag(component: AdjustComponent | ControlComponent): void;
|
|
6
6
|
listen(): void;
|
|
7
|
-
render(component: Component, mounter: string): void;
|
|
8
|
-
weave(mounter: string): void;
|
|
9
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContextController } from "../prototype/ContextController";
|
|
2
|
-
import {
|
|
1
|
+
import { ContextController } from "../generic/controller/prototype/ContextController";
|
|
2
|
+
import { AdjustComponent, ControlComponent } from "../../index";
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @param name
|
|
@@ -63,16 +63,16 @@ export declare function inject_$getter_to_data(data: {}, getter: any): void;
|
|
|
63
63
|
* @param controller
|
|
64
64
|
* @param proto
|
|
65
65
|
*/
|
|
66
|
-
export declare function inject_method_to_data(controller: ContextController, proto:
|
|
66
|
+
export declare function inject_method_to_data(controller: ContextController, proto: AdjustComponent | ControlComponent): void;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @param controller
|
|
70
70
|
* @param proto
|
|
71
71
|
*/
|
|
72
|
-
export declare function inject_watcher_to_controller(controller: ContextController, proto:
|
|
72
|
+
export declare function inject_watcher_to_controller(controller: ContextController, proto: AdjustComponent | ControlComponent): void;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @param controller
|
|
76
76
|
* @param proto
|
|
77
77
|
*/
|
|
78
|
-
export declare function inject_computed_to_controller(controller: ContextController, proto:
|
|
78
|
+
export declare function inject_computed_to_controller(controller: ContextController, proto: AdjustComponent | ControlComponent): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContextController } from "../prototype/ContextController";
|
|
2
|
-
import {
|
|
1
|
+
import { ContextController } from "../generic/controller/prototype/ContextController";
|
|
2
|
+
import { AdjustComponent, ControlComponent } from "../../index";
|
|
3
3
|
/**
|
|
4
4
|
* This function is used to mount the dom to the HTML document.
|
|
5
5
|
* @param controller
|
|
@@ -8,7 +8,7 @@ import { Component } from "../../index";
|
|
|
8
8
|
* @param child
|
|
9
9
|
* @param tagTemplate
|
|
10
10
|
*/
|
|
11
|
-
export declare function archive_mount(controller: ContextController, proto:
|
|
11
|
+
export declare function archive_mount(controller: ContextController, proto: AdjustComponent | ControlComponent, parent: ParentNode, child: ChildNode, tagTemplate: Element): void;
|
|
12
12
|
/**
|
|
13
13
|
* Insert elements without div element
|
|
14
14
|
* @param root
|
|
@@ -10,7 +10,7 @@ export function archive_mount(controller, proto, parent, child, tagTemplate) {
|
|
|
10
10
|
//mount
|
|
11
11
|
var renderSpace = document.createElement("div");
|
|
12
12
|
//给box添加样式
|
|
13
|
-
renderSpace.setAttribute("style", proto.
|
|
13
|
+
renderSpace.setAttribute("style", proto.getStyle());
|
|
14
14
|
//指定渲染空间
|
|
15
15
|
controller.componentAttachedRootElement = renderSpace;
|
|
16
16
|
//开始渲染
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ContextController } from "../../prototype/ContextController";
|
|
1
|
+
import { AdjustComponent, ControlComponent } from "../../../index";
|
|
2
|
+
import { ContextController } from "../../generic/controller/prototype/ContextController";
|
|
3
3
|
/**
|
|
4
4
|
* Use the func to inject a tag component to the tag-library.
|
|
5
5
|
* @param tagName The tag name
|
|
6
6
|
* @param tagDefine The tag prototype class
|
|
7
7
|
*/
|
|
8
|
-
export declare function tag_library_inject(tagName: string, tagDefine:
|
|
8
|
+
export declare function tag_library_inject(tagName: string, tagDefine: AdjustComponent | ControlComponent): void;
|
|
9
9
|
/**
|
|
10
10
|
* Use the func to get a tag prototype class
|
|
11
11
|
* @param tagName The name of tag you want to search
|
|
12
12
|
*/
|
|
13
|
-
export declare function tag_library_search(tagName: string):
|
|
13
|
+
export declare function tag_library_search(tagName: string): AdjustComponent | ControlComponent | null;
|
|
14
14
|
/**
|
|
15
15
|
* From the system_t_0 table, get tag library
|
|
16
16
|
*/
|
|
17
|
-
export declare function get_tag_library(): Map<string,
|
|
17
|
+
export declare function get_tag_library(): Map<string, AdjustComponent | ControlComponent>;
|
|
18
18
|
/**
|
|
19
19
|
* From the system_t_0 table, get style library
|
|
20
20
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdjustComponent, ControlComponent } from "../../../index";
|
|
2
2
|
declare const _default: {
|
|
3
|
-
tagLib: Map<string,
|
|
3
|
+
tagLib: Map<string, AdjustComponent | ControlComponent>;
|
|
4
4
|
styleLib: Map<string, Map<string, string>>;
|
|
5
5
|
contextController: any;
|
|
6
6
|
};
|
|
@@ -4,5 +4,7 @@ export declare function set_router_mode(value: boolean): void;
|
|
|
4
4
|
export declare function get_route_mode(): boolean;
|
|
5
5
|
export declare function set_path_variable(value: object): void;
|
|
6
6
|
export declare function get_path_variable(): Map<string, string>;
|
|
7
|
+
export declare function set_params_variable(value: object): void;
|
|
8
|
+
export declare function get_params_variable(): Map<string, string>;
|
|
7
9
|
export declare function get_route_table(): object;
|
|
8
10
|
export declare function set_route_table(value: object): void;
|
|
@@ -17,6 +17,12 @@ export function set_path_variable(value) {
|
|
|
17
17
|
export function get_path_variable() {
|
|
18
18
|
return Reflect.get(system_t_1, "pathVariable");
|
|
19
19
|
}
|
|
20
|
+
export function set_params_variable(value) {
|
|
21
|
+
Reflect.set(system_t_1, "params", value);
|
|
22
|
+
}
|
|
23
|
+
export function get_params_variable() {
|
|
24
|
+
return Reflect.get(system_t_1, "params");
|
|
25
|
+
}
|
|
20
26
|
export function get_route_table() {
|
|
21
27
|
return Reflect.get(system_t_1, "routeTable");
|
|
22
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpAction } from "../../prototype/HttpAction";
|
|
1
|
+
import { HttpAction } from "../../generic/controller/prototype/HttpAction";
|
|
2
2
|
import { RouterGeneric } from "../../../tension/generic/router/RouterGeneric";
|
|
3
3
|
export declare function set_system_ext_router(router: RouterGeneric): void;
|
|
4
4
|
export declare function get_system_ext_router(): RouterGeneric;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ContextController } from "../../prototype/ContextController";
|
|
2
|
-
import {
|
|
1
|
+
import { ContextController } from "../../generic/controller/prototype/ContextController";
|
|
2
|
+
import { AdjustComponent, ControlComponent } 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
|
|
6
6
|
* @param proto
|
|
7
7
|
* @param controller
|
|
8
8
|
*/
|
|
9
|
-
export declare function directive_parse_collection_for_before(tagTemplate: Element, proto:
|
|
9
|
+
export declare function directive_parse_collection_for_before(tagTemplate: Element, proto: AdjustComponent | ControlComponent, controller: ContextController): void;
|
|
10
10
|
/**
|
|
11
11
|
* This function is used to parse_directive those commands which should be executed after mount.
|
|
12
12
|
* @param templateSpace
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdjustComponent, ControlComponent } from "../../../index";
|
|
2
2
|
/**
|
|
3
3
|
* This func used to get the view tag from the template
|
|
4
4
|
* @param proto
|
|
5
5
|
*/
|
|
6
|
-
export declare function getTemplate(proto:
|
|
6
|
+
export declare function getTemplate(proto: AdjustComponent | ControlComponent): Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdjustComponent, ControlComponent } from "../../../index";
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @param tag
|
|
@@ -9,7 +9,7 @@ export declare function checkStyleLabel(tag: string): boolean;
|
|
|
9
9
|
* @param component
|
|
10
10
|
* @param styleLib
|
|
11
11
|
*/
|
|
12
|
-
export declare function themeStyle(component:
|
|
12
|
+
export declare function themeStyle(component: AdjustComponent | ControlComponent, styleLib: Map<string, object>): void;
|
|
13
13
|
/**
|
|
14
14
|
* Here is the function to resolve
|
|
15
15
|
* @param tag
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { HttpAction } from "../../../../system/prototype/HttpAction";
|
|
2
|
-
import {
|
|
1
|
+
import { HttpAction } from "../../../../system/generic/controller/prototype/HttpAction";
|
|
2
|
+
import { AdjustComponent, ControlComponent } from "../../../../index";
|
|
3
3
|
import { RouterGeneric } from "../../router/RouterGeneric";
|
|
4
4
|
export interface PrefaceGeneric {
|
|
5
5
|
add_system_router(router: RouterGeneric): void;
|
|
6
6
|
add_user_http(http: HttpAction): void;
|
|
7
7
|
add_anonymous_extension(name: string, plugin: object): void;
|
|
8
8
|
add_anonymous_filed(name: string, value: any): void;
|
|
9
|
-
register_component(component:
|
|
9
|
+
register_component(component: AdjustComponent | ControlComponent): void;
|
|
10
10
|
set_field_route_mode(value: boolean): void;
|
|
11
11
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PageComponent } from "../../../index";
|
|
2
2
|
export interface RouterGeneric {
|
|
3
|
-
getComponent():
|
|
4
|
-
|
|
3
|
+
getComponent(): {
|
|
4
|
+
params: Map<string, any>;
|
|
5
|
+
pathParams: Map<string, any>;
|
|
6
|
+
component: PageComponent;
|
|
7
|
+
};
|
|
5
8
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { HooksGeneric } from "../generic/plugin/hooks/HooksGeneric";
|
|
2
|
-
import { Component } from "../../index";
|
|
3
2
|
export declare class HooksAction implements HooksGeneric {
|
|
4
3
|
changeStyle(tag: string, theme: string): void;
|
|
5
4
|
changeTheme(theme: string): void;
|
|
6
|
-
directDelivery(component: Component): void;
|
|
7
5
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { changeStyle, changeTheme } from "../../system/utility/style/styleUtility";
|
|
2
|
-
import { direct_delivery } from "../../kernel/delivery/delivery";
|
|
3
2
|
var HooksAction = /** @class */ (function () {
|
|
4
3
|
function HooksAction() {
|
|
5
4
|
}
|
|
@@ -11,9 +10,6 @@ var HooksAction = /** @class */ (function () {
|
|
|
11
10
|
HooksAction.prototype.changeTheme = function (theme) {
|
|
12
11
|
changeTheme(theme);
|
|
13
12
|
};
|
|
14
|
-
HooksAction.prototype.directDelivery = function (component) {
|
|
15
|
-
direct_delivery(component);
|
|
16
|
-
};
|
|
17
13
|
return HooksAction;
|
|
18
14
|
}());
|
|
19
15
|
export { HooksAction };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PrefaceGeneric } from "../generic/plugin/preface/PrefaceGeneric";
|
|
2
|
-
import {
|
|
3
|
-
import { HttpAction } from "../../system/prototype/HttpAction";
|
|
2
|
+
import { AdjustComponent, ControlComponent } from "../../index";
|
|
3
|
+
import { HttpAction } from "../../system/generic/controller/prototype/HttpAction";
|
|
4
4
|
import { RouterGeneric } from "../generic/router/RouterGeneric";
|
|
5
5
|
export declare class PrefaceAction implements PrefaceGeneric {
|
|
6
6
|
add_anonymous_extension(name: string, plugin: object): void;
|
|
7
7
|
add_anonymous_filed(name: string, value: any): void;
|
|
8
8
|
add_system_router(router: RouterGeneric): void;
|
|
9
9
|
add_user_http(http: HttpAction): void;
|
|
10
|
-
register_component(component:
|
|
10
|
+
register_component(component: AdjustComponent | ControlComponent): void;
|
|
11
11
|
set_field_route_mode(value: boolean): void;
|
|
12
12
|
}
|