@byteluck-fe/model-driven-engine 2.1.0-beta.1 → 2.1.0-sourcemap.2
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.
|
@@ -68,7 +68,7 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
68
68
|
private _handlerArrayUpdate;
|
|
69
69
|
private _handlerObjectUpdate;
|
|
70
70
|
private applyPlugins;
|
|
71
|
-
listControlCreateRow<RowType extends ControlsKeys>(instance: RuntimeListControl, rowType: RowType):
|
|
71
|
+
listControlCreateRow<RowType extends ControlsKeys>(instance: RuntimeListControl, rowType: RowType): NonNullable<InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<RowType, "Runtime">>> | undefined;
|
|
72
72
|
listControlAddRow(instance: RuntimeListControl, rowType?: ControlsKeys): void;
|
|
73
73
|
emit(eventKey: EventKeys, payload: EventPayload): Promise<unknown[]>;
|
|
74
74
|
on(key: EventKeys, callback: Callback): void;
|
|
@@ -169,7 +169,5 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
169
169
|
getInstanceInSubtableHeader<T extends ControlsKeys>(instance: ControlRuntimeInstance<T> | RuntimeControl): ControlRuntimeInstance<T> | undefined;
|
|
170
170
|
setControlConfig(...args: Parameters<Runtime['registerControlConfig']>): Runtime;
|
|
171
171
|
getControlConfig(control: ControlsKeys): Readonly<Record<string, unknown>> | undefined;
|
|
172
|
-
initSubTableRowPropsFromInstanceHeaders(instance: RuntimeListControl): void;
|
|
173
|
-
initSubTableRowPropsFromProxySetNewValue(instance: RuntimeListControl, value: any[]): void;
|
|
174
172
|
}
|
|
175
173
|
export { Engine, EventPayload, SchemaEventPayload, EngineProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "2.1.0-
|
|
3
|
+
"version": "2.1.0-sourcemap.2",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -22,14 +22,12 @@
|
|
|
22
22
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@byteluck-fe/model-driven-core": "2.1.0-
|
|
25
|
+
"@byteluck-fe/model-driven-core": "2.1.0-sourcemap",
|
|
26
26
|
"@byteluck-fe/model-driven-shared": "2.0.9",
|
|
27
|
-
"lodash.clonedeep": "^4.5.0",
|
|
28
27
|
"mathjs": "^11.3.3"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
|
-
"@types/lodash.clonedeep": "^4.5.7",
|
|
32
30
|
"@types/node": "~18.0.3"
|
|
33
31
|
},
|
|
34
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "29df3c981ed97996d238bcc571f7340508775a10"
|
|
35
33
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// import { RuntimeSubTableColumnControl } from '@byteluck-fe/model-driven-core'
|
|
2
|
-
// import { RuntimeControl } from '@byteluck-fe/model-driven-core'
|
|
3
|
-
import cloneDeep from "lodash.clonedeep";
|
|
4
|
-
export function genSubTableRowInstanceFromHeaders(// headers: RuntimeSubTableColumnControl[]
|
|
5
|
-
headers) {
|
|
6
|
-
var subtableRow = headers.reduce(function(pre, cur) {
|
|
7
|
-
var children = cur.children;
|
|
8
|
-
children.forEach(function(control) {
|
|
9
|
-
pre[control.id] = copyPropsFromControlInstance(control);
|
|
10
|
-
});
|
|
11
|
-
return pre;
|
|
12
|
-
}, {});
|
|
13
|
-
return subtableRow;
|
|
14
|
-
}
|
|
15
|
-
function copyPropsFromControlInstance(control) {
|
|
16
|
-
return cloneDeep(control.props);
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function genSubTableRowInstanceFromHeaders(headers: any[]): any;
|