@byteluck-fe/model-driven-engine 1.7.6-bete.2 → 1.7.6-bete.21
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ControlRuntimeInstance, ControlsInstance, ControlsKeys, DataBind, DeepPartial, LayoutControls, ObjectDataBind, RuntimeControl, RuntimeListControl, Schema } from '@byteluck-fe/model-driven-core';
|
|
1
|
+
import { ControlRuntimeInstance, ControlsInstance, ControlsKeys, DataBind, DeepPartial, LayoutControls, ObjectDataBind, Rules, RuntimeControl, RuntimeListControl, Schema } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
import { Callback, Watcher } from '@byteluck-fe/model-driven-shared';
|
|
3
3
|
import { Plugin } from './Plugin';
|
|
4
4
|
import { Runtime, RuntimeProps } from './Runtime';
|
|
@@ -54,6 +54,11 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
54
54
|
private actionManager;
|
|
55
55
|
private dataManager?;
|
|
56
56
|
private _jobTasks;
|
|
57
|
+
/**
|
|
58
|
+
* 用于存储运行态无需proxy的数据
|
|
59
|
+
* from v1.7.6-beta
|
|
60
|
+
*/
|
|
61
|
+
rawStore: Record<string, any>;
|
|
57
62
|
constructor(props: EngineProps);
|
|
58
63
|
private debugLog;
|
|
59
64
|
use(plugin: Plugin): this;
|
|
@@ -77,8 +82,8 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
77
82
|
createControlInstance: <T extends never>(type: T, initSchema?: DeepPartial<Schema<T, InstanceType<import("@byteluck-fe/model-driven-core").Controls[T]["Property"]>>> | undefined) => InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<T, "Runtime">> | undefined;
|
|
78
83
|
schemaEvent(eventKey: 'schema-change', payload: SchemaEventPayload): void;
|
|
79
84
|
updateInstanceProps(instance: SchemaEventPayload['instance'] | string, props: string, value: unknown, rowIndex?: number): void;
|
|
80
|
-
getRules(controlId?: string):
|
|
81
|
-
getAntdRules(controlId?: string):
|
|
85
|
+
getRules(controlId?: string): Rules | undefined;
|
|
86
|
+
getAntdRules(controlId?: string): Rules | undefined;
|
|
82
87
|
getState(controlId?: string, rowIndex?: number): unknown;
|
|
83
88
|
getEmptyState(controlId?: string): any;
|
|
84
89
|
/**
|
|
@@ -169,5 +174,7 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
169
174
|
getInstanceInSubtableHeader<T extends ControlsKeys>(instance: ControlRuntimeInstance<T> | RuntimeControl): ControlRuntimeInstance<T> | undefined;
|
|
170
175
|
setControlConfig(...args: Parameters<Runtime['registerControlConfig']>): Runtime;
|
|
171
176
|
getControlConfig(control: ControlsKeys): Readonly<Record<string, unknown>> | undefined;
|
|
177
|
+
initSubTableRowPropsFromInstanceHeaders(instance: RuntimeListControl): void;
|
|
178
|
+
initSubTableRowPropsFromProxySetNewValue(instance: RuntimeListControl, value: any[]): void;
|
|
172
179
|
}
|
|
173
180
|
export { Engine, EventPayload, SchemaEventPayload, EngineProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function genSubTableRowInstanceFromHeaders(headers: any[]): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "1.7.6-bete.
|
|
3
|
+
"version": "1.7.6-bete.21",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -22,12 +22,14 @@
|
|
|
22
22
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@byteluck-fe/model-driven-core": "1.7.6-bete.
|
|
25
|
+
"@byteluck-fe/model-driven-core": "1.7.6-bete.21",
|
|
26
26
|
"@byteluck-fe/model-driven-shared": "^1.7.5",
|
|
27
|
+
"lodash.clonedeep": "^4.5.0",
|
|
27
28
|
"mathjs": "^11.3.3"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
31
|
+
"@types/lodash.clonedeep": "^4.5.7",
|
|
30
32
|
"@types/node": "~18.0.3"
|
|
31
33
|
},
|
|
32
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "2600d7ee5f7481d680a1741bf34ec04e6de98d4d"
|
|
33
35
|
}
|