@byteluck-fe/model-driven-engine 2.9.0-alpha.9 → 2.9.0-beta.1

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): RuntimeControl | NonNullable<InstanceType<import("@byteluck-fe/model-driven-core").ControlsConstructor<RowType, "Runtime">>> | undefined;
@@ -1,5 +1,5 @@
1
- import { RuntimeControl, RuntimeFormControl, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core';
2
- import { InstanceMap } from './Runtime';
1
+ import { RuntimeFormControl, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core';
2
+ import { Engine } from './Engine';
3
3
  export type ArrayApi = 'splice' | 'push' | 'shift' | 'pop' | 'unshift' | 'reverse';
4
4
  /**
5
5
  * @param state 当前正在操作的state数据
@@ -26,5 +26,8 @@ export declare function proxyState<T extends object>(state: T, callback: Callbac
26
26
  * @param flatInstance 拍平的instance数组
27
27
  * @param key 操作的数据在state的key - 可以是深层次的 subtable.0.input等
28
28
  * */
29
- export declare function findItem(flatInstance: RuntimeControl[], key: string, instanceMap: InstanceMap): undefined | RuntimeFormControl | ControlRuntimeInstance<'subtable'>;
29
+ export declare function findItem(key: string, engine: Engine): {
30
+ instance: undefined | RuntimeFormControl | ControlRuntimeInstance<'subtable'>;
31
+ rowIndex: undefined | number;
32
+ };
30
33
  export {};
@@ -1,5 +1,6 @@
1
1
  import { Engine, Plugin } from '../common';
2
2
  export type LifecycleEvent = {
3
+ did_init: string[];
3
4
  did_mount: string[];
4
5
  did_submit: string[];
5
6
  will_submit: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "2.9.0-alpha.9",
3
+ "version": "2.9.0-beta.1",
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.9.0-alpha.9",
30
- "@byteluck-fe/model-driven-shared": "2.9.0-alpha.9",
29
+ "@byteluck-fe/model-driven-core": "2.9.0-beta.1",
30
+ "@byteluck-fe/model-driven-shared": "2.9.0-beta.1",
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": "6b9a71cd72e9cfa5d8552ec19e896cb077e5fd29"
37
+ "gitHead": "6872530f7b8297cda380ea9868214cd8c9f6f581"
38
38
  }