@byteluck-fe/model-driven-engine 2.5.1 → 2.5.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.
- package/dist/esm/common/ActionManager.js +28 -28
- package/dist/esm/common/DataManager.js +12 -12
- package/dist/esm/common/Engine.js +121 -137
- package/dist/esm/common/OkWorker.js +10 -10
- package/dist/esm/common/Plugin.js +2 -2
- package/dist/esm/common/Runtime.js +29 -29
- package/dist/esm/common/Store.js +34 -16
- package/dist/esm/common/checkerValue.js +77 -77
- package/dist/esm/common/proxyState.js +18 -18
- package/dist/esm/plugins/CalcPlugin.js +29 -29
- package/dist/esm/plugins/ControlsEventPlugin.js +18 -18
- package/dist/esm/plugins/ES6ModulePlugin.js +19 -19
- package/dist/esm/plugins/LifecycleEventPlugin.js +28 -28
- package/dist/esm/plugins/StylePlugin.js +7 -7
- package/dist/index.umd.js +8 -9
- package/dist/types/common/Engine.d.ts +2 -1
- package/dist/types/common/Store.d.ts +5 -1
- package/package.json +2 -2
|
@@ -175,6 +175,7 @@ declare class Engine extends Watcher<EventKeys> {
|
|
|
175
175
|
getInstanceInSubtableHeader<T extends ControlsKeys>(instance: ControlRuntimeInstance<T> | RuntimeControl): ControlRuntimeInstance<T> | undefined;
|
|
176
176
|
setControlConfig(...args: Parameters<Runtime['registerControlConfig']>): Runtime;
|
|
177
177
|
getControlConfig(control: ControlsKeys): Readonly<Record<string, unknown>> | undefined;
|
|
178
|
-
inList(controlId: string): undefined;
|
|
178
|
+
inList(controlId: string): string | undefined;
|
|
179
|
+
findSubtableHeadersControl(controlId: string): undefined;
|
|
179
180
|
}
|
|
180
181
|
export { Engine, EventPayload, SchemaEventPayload, EngineProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuntimeControl, DataBind, ObjectDataBind, OptionSetting } from '@byteluck-fe/model-driven-core';
|
|
1
|
+
import { RuntimeControl, DataBind, ObjectDataBind, OptionSetting, ControlRuntimeInstance, ControlsKeys } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
export type StateType = {
|
|
3
3
|
[controlId: string]: unknown;
|
|
4
4
|
};
|
|
@@ -27,6 +27,9 @@ export interface DataBindMappingFieldItem {
|
|
|
27
27
|
export type dataBindMappingType = {
|
|
28
28
|
[dataCode: string]: DataBindMappingTypeItem;
|
|
29
29
|
};
|
|
30
|
+
export type SubtableHeadersControlIdMapping = {
|
|
31
|
+
[controlId: string]: ControlRuntimeInstance<ControlsKeys>;
|
|
32
|
+
};
|
|
30
33
|
type StoreProps = {
|
|
31
34
|
instance: RuntimeControl[];
|
|
32
35
|
};
|
|
@@ -35,6 +38,7 @@ declare class Store {
|
|
|
35
38
|
state: StatesType;
|
|
36
39
|
dataBindMapping: dataBindMappingType;
|
|
37
40
|
controlIdMapping: controlIdMappingType;
|
|
41
|
+
subtableHeadersControlIdMapping: SubtableHeadersControlIdMapping;
|
|
38
42
|
readonly defaultState: StatesType;
|
|
39
43
|
constructor(props: StoreProps);
|
|
40
44
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "~18.0.6"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "5c3bf7109bd11a684e0a1f8244c35f24fb537a8e"
|
|
38
38
|
}
|