@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.
@@ -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.1",
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": "52fb8ee155f1cf493e58a7e9fd1ad6509d1200c2"
37
+ "gitHead": "5c3bf7109bd11a684e0a1f8244c35f24fb537a8e"
38
38
  }