@byteluck-fe/model-driven-engine 2.5.1 → 2.5.3

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,6 +68,7 @@ declare class Engine extends Watcher<EventKeys> {
68
68
  private _proxyStateBeforeSetCallback;
69
69
  private _proxyStateCallback;
70
70
  private _handlerArrayUpdate;
71
+ private _handlerSubtableUpdateUid;
71
72
  private _handlerObjectUpdate;
72
73
  private applyPlugins;
73
74
  listControlCreateRow<RowType extends ControlsKeys>(instance: RuntimeListControl, rowType: RowType): NonNullable<InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<RowType, "Runtime">>> | undefined;
@@ -175,6 +176,7 @@ declare class Engine extends Watcher<EventKeys> {
175
176
  getInstanceInSubtableHeader<T extends ControlsKeys>(instance: ControlRuntimeInstance<T> | RuntimeControl): ControlRuntimeInstance<T> | undefined;
176
177
  setControlConfig(...args: Parameters<Runtime['registerControlConfig']>): Runtime;
177
178
  getControlConfig(control: ControlsKeys): Readonly<Record<string, unknown>> | undefined;
178
- inList(controlId: string): undefined;
179
+ inList(controlId: string): string | undefined;
180
+ findSubtableHeadersControl(controlId: string): undefined;
179
181
  }
180
182
  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.3",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,13 +26,13 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-core": "2.5.0-beta.15",
30
- "@byteluck-fe/model-driven-shared": "2.5.0-beta.9",
29
+ "@byteluck-fe/model-driven-core": "2.5.3",
30
+ "@byteluck-fe/model-driven-shared": "2.5.3",
31
31
  "@types/mathjs": "^9.4.2",
32
32
  "mathjs": "^11.3.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "~18.0.6"
36
36
  },
37
- "gitHead": "52fb8ee155f1cf493e58a7e9fd1ad6509d1200c2"
37
+ "gitHead": "9207c31501e84896728e6c5a9a7696b70a9a87ed"
38
38
  }