@byteluck-fe/model-driven-engine 1.7.6-bete.13 → 1.7.6-bete.17

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.
@@ -1,4 +1,4 @@
1
- import { ControlRuntimeInstance, ControlsInstance, ControlsKeys, DataBind, DeepPartial, LayoutControls, ObjectDataBind, RuntimeControl, RuntimeListControl, Schema } from '@byteluck-fe/model-driven-core';
1
+ import { ControlRuntimeInstance, ControlsInstance, ControlsKeys, DataBind, DeepPartial, LayoutControls, ObjectDataBind, Rules, RuntimeControl, RuntimeListControl, Schema } from '@byteluck-fe/model-driven-core';
2
2
  import { Callback, Watcher } from '@byteluck-fe/model-driven-shared';
3
3
  import { Plugin } from './Plugin';
4
4
  import { Runtime, RuntimeProps } from './Runtime';
@@ -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").RegisterControls;
66
+ static register(...arg: Parameters<typeof Runtime['register']>): typeof import("@byteluck-fe/model-driven-core/dist/types").RegisterControls;
67
67
  static judgeControlIsRegistered(control: Parameters<typeof Runtime['register']>[0]): boolean;
68
68
  mount(): void;
69
69
  destroy(): void;
@@ -73,17 +73,17 @@ 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").ControlsConstructor<RowType, "Runtime">>> | undefined;
76
+ listControlCreateRow<RowType extends ControlsKeys>(instance: RuntimeListControl, rowType: RowType): NonNullable<InstanceType<import("@byteluck-fe/model-driven-core/dist/types").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").Controls[T]["Property"]>>> | undefined) => InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<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;
83
83
  schemaEvent(eventKey: 'schema-change', payload: SchemaEventPayload): void;
84
84
  updateInstanceProps(instance: SchemaEventPayload['instance'] | string, props: string, value: unknown, rowIndex?: number): void;
85
- getRules(controlId?: string): import("async-validator").Rules | undefined;
86
- getAntdRules(controlId?: string): import("async-validator").Rules | undefined;
85
+ getRules(controlId?: string): Rules | undefined;
86
+ getAntdRules(controlId?: string): Rules | undefined;
87
87
  getState(controlId?: string, rowIndex?: number): unknown;
88
88
  getEmptyState(controlId?: string): any;
89
89
  /**
@@ -0,0 +1 @@
1
+ export declare function genSubTableRowInstanceFromHeaders(headers: any[]): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "1.7.6-bete.13",
3
+ "version": "1.7.6-bete.17",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -22,12 +22,14 @@
22
22
  "postpublish": "node ../../scripts/postpublish.js"
23
23
  },
24
24
  "dependencies": {
25
- "@byteluck-fe/model-driven-core": "1.7.6-bete.12",
25
+ "@byteluck-fe/model-driven-core": "1.7.6-bete.17",
26
26
  "@byteluck-fe/model-driven-shared": "^1.7.5",
27
+ "lodash.clonedeep": "^4.5.0",
27
28
  "mathjs": "^11.3.3"
28
29
  },
29
30
  "devDependencies": {
31
+ "@types/lodash.clonedeep": "^4.5.7",
30
32
  "@types/node": "~18.0.3"
31
33
  },
32
- "gitHead": "282d9833ade1c1d25818404593e82088d4ab4af6"
34
+ "gitHead": "477eafb25da80a7f98154bb300ee4522955aecb3"
33
35
  }