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.
- package/index.d.ts +14 -8
- package/index.js +18 -13
- package/kernel/delivery/delivery.js +3 -3
- package/kernel/directive/property/v-bind.js +2 -2
- package/kernel/directive/react/v-model.js +1 -1
- package/kernel/proxyer/getProxy.d.ts +0 -3
- package/kernel/proxyer/getProxy.js +1 -5
- package/kernel/renderer/initRender.js +9 -10
- package/kernel/renderer/postRender.js +10 -11
- package/kernel/renderer/rawRender.js +10 -11
- package/kernel/renderer/updateRender.js +14 -13
- package/kernel/router/router.js +3 -3
- package/package.json +1 -4
- package/system/generic/component/ComponentGeneric.d.ts +1 -1
- package/system/generic/controller/ControllerGeneric.d.ts +10 -4
- package/system/generic/data/ComputedDataGeneric.d.ts +13 -0
- package/system/generic/data/WatcherDataGeneric.d.ts +13 -0
- package/system/injection/injection.d.ts +8 -3
- package/system/injection/injection.js +22 -12
- package/system/injection/{inject.d.ts → injector.d.ts} +4 -0
- package/system/injection/{inject.js → injector.js} +14 -0
- package/system/lifecycle/mount.js +5 -8
- package/system/loader/loader.js +1 -1
- package/system/prototype/ContextController.d.ts +9 -8
- package/system/prototype/ContextController.js +1 -7
- package/system/recorder/table2/system_func_2.d.ts +5 -0
- package/system/recorder/table2/system_func_2.js +8 -0
- package/system/utility/{dataUtility.d.ts → data/dataUtility.d.ts} +1 -1
- package/system/utility/{dataUtility.js → data/dataUtility.js} +1 -1
- package/system/utility/{cmdUtility.d.ts → directive/cmdUtility.d.ts} +2 -2
- package/system/utility/{cmdUtility.js → directive/cmdUtility.js} +14 -14
- package/system/utility/{miscUtility.d.ts → initiate/miscUtility.d.ts} +1 -1
- package/system/utility/{miscUtility.js → initiate/miscUtility.js} +1 -1
- package/system/utility/initiate/templateUtility.d.ts +6 -0
- package/system/utility/{templateUtility.js → initiate/templateUtility.js} +1 -0
- package/system/utility/react/inputType.d.ts +25 -0
- package/system/utility/{inputType.js → react/inputType.js} +20 -0
- package/system/utility/{inputUtility.d.ts → react/inputUtility.d.ts} +15 -1
- package/system/utility/{inputUtility.js → react/inputUtility.js} +26 -9
- package/system/utility/{modelUtility.d.ts → react/modelUtility.d.ts} +3 -3
- package/system/utility/{modelUtility.js → react/modelUtility.js} +5 -7
- package/system/utility/{sectionUtility.d.ts → react/sectionUtility.d.ts} +1 -1
- package/system/utility/{sectionUtility.js → react/sectionUtility.js} +25 -9
- package/system/utility/{styleUtility.d.ts → style/styleUtility.d.ts} +1 -1
- package/system/utility/{styleUtility.js → style/styleUtility.js} +3 -3
- package/tension/prototype/HooksAction.js +1 -1
- package/xboot/{Entrance.d.ts → entrance.d.ts} +3 -3
- package/xboot/{Entrance.js → entrance.js} +4 -5
- package/xboot/{RenderProcessor.js → renderProcessor.js} +2 -2
- package/xboot/{TagProcessor.js → tagProcessor.js} +4 -8
- package/system/define/ContextController.d.ts +0 -29
- package/system/define/ContextController.js +0 -23
- package/system/generic/ControllerGeneric.d.ts +0 -21
- package/system/generic/RenderGeneric.d.ts +0 -4
- package/system/http/Http.d.ts +0 -11
- package/system/http/Http.js +0 -36
- package/system/router/router.d.ts +0 -3
- package/system/router/router.js +0 -20
- package/system/utility/checkUtility.d.ts +0 -1
- package/system/utility/checkUtility.js +0 -4
- package/system/utility/injectUtility.d.ts +0 -4
- package/system/utility/injectUtility.js +0 -14
- package/system/utility/inputType.d.ts +0 -5
- package/system/utility/templateUtility.d.ts +0 -5
- package/tension/DefaultRouterPlugin.d.ts +0 -17
- package/tension/DefaultRouterPlugin.js +0 -11
- package/tension/generic/ComponentGeneric.d.ts +0 -13
- package/tension/generic/ComponentGeneric.js +0 -1
- package/tension/generic/HooksGeneric.d.ts +0 -6
- package/tension/generic/HooksGeneric.js +0 -1
- package/tension/generic/OriginalDataGeneric.d.ts +0 -18
- package/tension/generic/OriginalDataGeneric.js +0 -1
- package/tension/generic/PluginGeneric.d.ts +0 -5
- package/tension/generic/PluginGeneric.js +0 -1
- package/tension/generic/PrefaceGeneric.d.ts +0 -6
- package/tension/generic/PrefaceGeneric.js +0 -1
- package/tension/generic/RouterGeneric.d.ts +0 -5
- package/tension/generic/RouterGeneric.js +0 -1
- package/tension/prototype/AbstractRouter.d.ts +0 -6
- package/tension/prototype/AbstractRouter.js +0 -12
- package/tension/prototype/RouterAction.d.ts +0 -9
- package/tension/prototype/RouterAction.js +0 -20
- /package/system/generic/{ControllerGeneric.js → data/ComputedDataGeneric.js} +0 -0
- /package/system/generic/{RenderGeneric.js → data/WatcherDataGeneric.js} +0 -0
- /package/system/{utility → output}/errorUtility.d.ts +0 -0
- /package/system/{utility → output}/errorUtility.js +0 -0
- /package/xboot/{RenderProcessor.d.ts → renderProcessor.d.ts} +0 -0
- /package/xboot/{TagProcessor.d.ts → tagProcessor.d.ts} +0 -0
package/system/http/Http.d.ts
DELETED
package/system/http/Http.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 资源定向
|
|
3
|
-
* @param url
|
|
4
|
-
* @param parameters
|
|
5
|
-
*/
|
|
6
|
-
export function redirect(url, parameters) {
|
|
7
|
-
if (parameters !== null) {
|
|
8
|
-
var params = Object.getOwnPropertyNames(parameters);
|
|
9
|
-
if (params.length !== 0) {
|
|
10
|
-
var queries_1 = "";
|
|
11
|
-
params.forEach(function (value) {
|
|
12
|
-
if (queries_1 === "") {
|
|
13
|
-
queries_1 = queries_1 + value + "=" + parameters[value].toString();
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
queries_1 = queries_1 + "&" + value + "=" + parameters[value].toString();
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
queries_1 = encodeURI(queries_1);
|
|
20
|
-
location.href = url + "?" + queries_1;
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
location.href = url;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
location.href = url;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* locate the position
|
|
32
|
-
* @param position
|
|
33
|
-
*/
|
|
34
|
-
export function relocate(position) {
|
|
35
|
-
location.hash = position;
|
|
36
|
-
}
|
package/system/router/router.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { get_context_controller, get_router_for_application } from "../recorder/table0/system_func_0";
|
|
2
|
-
import { spa_delivery } from "../../kernel/delivery/delivery";
|
|
3
|
-
export function router_listener_with_router(view) {
|
|
4
|
-
if (view !== null) {
|
|
5
|
-
var controller = get_context_controller();
|
|
6
|
-
var router = get_router_for_application();
|
|
7
|
-
var component = router.getComponentByUrl(location.pathname);
|
|
8
|
-
spa_delivery(component, view.parentNode, view, controller);
|
|
9
|
-
}
|
|
10
|
-
else
|
|
11
|
-
console.log("Without view element to render");
|
|
12
|
-
}
|
|
13
|
-
export function router_listener_without_router(component, view) {
|
|
14
|
-
if (view !== null) {
|
|
15
|
-
var controller = get_context_controller();
|
|
16
|
-
spa_delivery(component, view.parentNode, view, controller);
|
|
17
|
-
}
|
|
18
|
-
else
|
|
19
|
-
console.log("Without view element to render");
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isUnKnown(element: string): boolean;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function getCodeSpaceForCommit(data: {}, commit: any): void;
|
|
2
|
-
export declare function getCodeSpaceForPublish(data: {}, publisher: any): void;
|
|
3
|
-
export declare function getSetCodeSpaceForProperty(data: {}, setter: any): void;
|
|
4
|
-
export declare function getGetCodeSpaceForProperty(data: {}, getter: any): void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//注入对象
|
|
2
|
-
export function getCodeSpaceForCommit(data, commit) {
|
|
3
|
-
Reflect.set(data, "$commit", commit);
|
|
4
|
-
}
|
|
5
|
-
//注入对象
|
|
6
|
-
export function getCodeSpaceForPublish(data, publisher) {
|
|
7
|
-
Reflect.set(data, "$publish", publisher);
|
|
8
|
-
}
|
|
9
|
-
export function getSetCodeSpaceForProperty(data, setter) {
|
|
10
|
-
Reflect.set(data, "$set", setter);
|
|
11
|
-
}
|
|
12
|
-
export function getGetCodeSpaceForProperty(data, getter) {
|
|
13
|
-
Reflect.set(data, "$get", getter);
|
|
14
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ContextController } from "../prototype/ContextController";
|
|
2
|
-
export declare function textType(target: any, doc: any, controller: ContextController): void;
|
|
3
|
-
export declare function assignType(target: any, controller: ContextController): void;
|
|
4
|
-
export declare function fileType(target: any, controller: ContextController): void;
|
|
5
|
-
export declare function checkType(target: any): void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PrefaceGeneric } from "./generic/plugin/preface/PrefaceGeneric";
|
|
2
|
-
import { HooksGeneric } from "./generic/plugin/hooks/HooksGeneric";
|
|
3
|
-
import { Component } from "../index";
|
|
4
|
-
import { PluginGeneric } from "./generic/plugin/PluginGeneric";
|
|
5
|
-
export declare class DefaultRouterPlugin implements PluginGeneric {
|
|
6
|
-
private readonly routerTable;
|
|
7
|
-
constructor(routeTable: {
|
|
8
|
-
mode: string;
|
|
9
|
-
table: [
|
|
10
|
-
{
|
|
11
|
-
path: string;
|
|
12
|
-
component: Component;
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
});
|
|
16
|
-
plugin(preface: PrefaceGeneric, hooks: HooksGeneric): void;
|
|
17
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RouterAction } from "./prototype/RouterAction";
|
|
2
|
-
var DefaultRouterPlugin = /** @class */ (function () {
|
|
3
|
-
function DefaultRouterPlugin(routeTable) {
|
|
4
|
-
this.routerTable = routeTable;
|
|
5
|
-
}
|
|
6
|
-
DefaultRouterPlugin.prototype.plugin = function (preface, hooks) {
|
|
7
|
-
preface.set_router(new RouterAction(this.routerTable));
|
|
8
|
-
};
|
|
9
|
-
return DefaultRouterPlugin;
|
|
10
|
-
}());
|
|
11
|
-
export { DefaultRouterPlugin };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface ComponentGeneric {
|
|
2
|
-
getName(): string;
|
|
3
|
-
getTemplate(): string;
|
|
4
|
-
getConfig(): {};
|
|
5
|
-
getBoxStyle(): string;
|
|
6
|
-
getProps(): {};
|
|
7
|
-
getData(): {};
|
|
8
|
-
getComputed(): {};
|
|
9
|
-
getMethods(): {};
|
|
10
|
-
getWatcher(): {};
|
|
11
|
-
getBeforeRender(): () => void;
|
|
12
|
-
getAfterRender(): () => void;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface OriginalDataGeneric {
|
|
2
|
-
$name?: string;
|
|
3
|
-
$props?: Map<string, any>;
|
|
4
|
-
$params?: Map<string, any>;
|
|
5
|
-
$refs?: Map<string, any>;
|
|
6
|
-
$redirect?: (url: string, parameters: {}) => void;
|
|
7
|
-
$relocate?: (position: string) => void;
|
|
8
|
-
$commit?: (method: string, ...args: [any]) => void;
|
|
9
|
-
$publish?: (method: string, ...args: [any]) => void;
|
|
10
|
-
$get?: (name: string) => any;
|
|
11
|
-
$set?: (name: string, value: any) => any;
|
|
12
|
-
$context?: {
|
|
13
|
-
getVersion(): string;
|
|
14
|
-
getDestination(): string;
|
|
15
|
-
changeStyle?: (tag: string, theme: string) => void;
|
|
16
|
-
changeTheme?: (theme: string) => void;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RouterGeneric } from "../generic/router/RouterGeneric";
|
|
2
|
-
import { Component } from "../../index";
|
|
3
|
-
export declare class AbstractRouter implements RouterGeneric {
|
|
4
|
-
getComponentByUrl(url: string): Component;
|
|
5
|
-
getQueriesByUrl(url: string): Map<string, any>;
|
|
6
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var AbstractRouter = /** @class */ (function () {
|
|
2
|
-
function AbstractRouter() {
|
|
3
|
-
}
|
|
4
|
-
AbstractRouter.prototype.getComponentByUrl = function (url) {
|
|
5
|
-
return undefined;
|
|
6
|
-
};
|
|
7
|
-
AbstractRouter.prototype.getQueriesByUrl = function (url) {
|
|
8
|
-
return undefined;
|
|
9
|
-
};
|
|
10
|
-
return AbstractRouter;
|
|
11
|
-
}());
|
|
12
|
-
export { AbstractRouter };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { RouterGeneric } from "../generic/router/RouterGeneric";
|
|
2
|
-
import { Component } from "../../index";
|
|
3
|
-
import { HooksAction } from "./HooksAction";
|
|
4
|
-
export declare class RouterAction implements RouterGeneric {
|
|
5
|
-
private readonly hooks;
|
|
6
|
-
constructor(hooks: HooksAction);
|
|
7
|
-
getComponent(): Component;
|
|
8
|
-
getPathVariable(): Map<string, any>;
|
|
9
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { get_route_table } from "../../system/recorder/table1/system_func_1";
|
|
2
|
-
var RouterAction = /** @class */ (function () {
|
|
3
|
-
function RouterAction(hooks) {
|
|
4
|
-
this.hooks = hooks;
|
|
5
|
-
}
|
|
6
|
-
RouterAction.prototype.getComponent = function () {
|
|
7
|
-
var component;
|
|
8
|
-
for (var i = 0; i < get_route_table()['table'].length; i++) {
|
|
9
|
-
if (get_route_table()['table'][i]['path'] == location.pathname) {
|
|
10
|
-
component = get_route_table()['table'][i]['component'];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return component;
|
|
14
|
-
};
|
|
15
|
-
RouterAction.prototype.getPathVariable = function () {
|
|
16
|
-
return new Map();
|
|
17
|
-
};
|
|
18
|
-
return RouterAction;
|
|
19
|
-
}());
|
|
20
|
-
export { RouterAction };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|