@byteluck-fe/model-driven-engine 1.7.6-bete.20 → 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.
@@ -63,7 +63,7 @@ declare class Engine extends Watcher<EventKeys> {
63
63
  private debugLog;
64
64
  use(plugin: Plugin): this;
65
65
  registerControl(...arg: Parameters<Runtime['register']>): this;
66
- static register(...arg: Parameters<typeof Runtime['register']>): typeof import("@byteluck-fe/model-driven-core/dist/types").RegisterControls;
66
+ static register(...arg: Parameters<typeof Runtime['register']>): typeof import("@byteluck-fe/model-driven-core").RegisterControls;
67
67
  static judgeControlIsRegistered(control: Parameters<typeof Runtime['register']>[0]): boolean;
68
68
  mount(): void;
69
69
  destroy(): void;
@@ -73,13 +73,13 @@ declare class Engine extends Watcher<EventKeys> {
73
73
  private _handlerArrayUpdate;
74
74
  private _handlerObjectUpdate;
75
75
  private applyPlugins;
76
- listControlCreateRow<RowType extends ControlsKeys>(instance: RuntimeListControl, rowType: RowType): NonNullable<InstanceType<import("@byteluck-fe/model-driven-core/dist/types").ControlsConstructor<RowType, "Runtime">>> | undefined;
76
+ listControlCreateRow<RowType extends ControlsKeys>(instance: RuntimeListControl, rowType: RowType): NonNullable<InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<RowType, "Runtime">>> | undefined;
77
77
  listControlAddRow(instance: RuntimeListControl, rowType?: ControlsKeys): void;
78
78
  emit(eventKey: EventKeys, payload: EventPayload): Promise<unknown[]>;
79
79
  on(key: EventKeys, callback: Callback): void;
80
80
  createControl(...args: Parameters<Runtime['createControl']>): never[];
81
81
  createInstance<T extends ControlsKeys>(type: T, initSchema?: DeepPartial<Schema<T>>): ControlsInstance<T, 'Runtime'> | undefined;
82
- createControlInstance: <T extends never>(type: T, initSchema?: DeepPartial<Schema<T, InstanceType<import("@byteluck-fe/model-driven-core/dist/types").Controls[T]["Property"]>>> | undefined) => InstanceType<import("@byteluck-fe/model-driven-core/dist/types").ControlsConstructor<T, "Runtime">> | undefined;
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;
83
83
  schemaEvent(eventKey: 'schema-change', payload: SchemaEventPayload): void;
84
84
  updateInstanceProps(instance: SchemaEventPayload['instance'] | string, props: string, value: unknown, rowIndex?: number): void;
85
85
  getRules(controlId?: string): Rules | undefined;
@@ -174,5 +174,7 @@ declare class Engine extends Watcher<EventKeys> {
174
174
  getInstanceInSubtableHeader<T extends ControlsKeys>(instance: ControlRuntimeInstance<T> | RuntimeControl): ControlRuntimeInstance<T> | undefined;
175
175
  setControlConfig(...args: Parameters<Runtime['registerControlConfig']>): Runtime;
176
176
  getControlConfig(control: ControlsKeys): Readonly<Record<string, unknown>> | undefined;
177
+ initSubTableRowPropsFromInstanceHeaders(instance: RuntimeListControl): void;
178
+ initSubTableRowPropsFromProxySetNewValue(instance: RuntimeListControl, value: any[]): void;
177
179
  }
178
180
  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": "1.7.6-bete.20",
3
+ "version": "1.7.6-bete.21",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -22,7 +22,7 @@
22
22
  "postpublish": "node ../../scripts/postpublish.js"
23
23
  },
24
24
  "dependencies": {
25
- "@byteluck-fe/model-driven-core": "1.7.6-bete.20",
25
+ "@byteluck-fe/model-driven-core": "1.7.6-bete.21",
26
26
  "@byteluck-fe/model-driven-shared": "^1.7.5",
27
27
  "lodash.clonedeep": "^4.5.0",
28
28
  "mathjs": "^11.3.3"
@@ -31,5 +31,5 @@
31
31
  "@types/lodash.clonedeep": "^4.5.7",
32
32
  "@types/node": "~18.0.3"
33
33
  },
34
- "gitHead": "a815497dcfb8ac3152e5fd64fa57d368a159def1"
34
+ "gitHead": "2600d7ee5f7481d680a1741bf34ec04e6de98d4d"
35
35
  }