@byteluck-fe/model-driven-engine 2.22.2-beta.1 → 2.22.2-beta.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.
Files changed (40) hide show
  1. package/README.md +30 -30
  2. package/dist/esm/common/ActionManager.js +7 -7
  3. package/dist/esm/common/DataManager.js +2 -2
  4. package/dist/esm/common/Engine.js +130 -124
  5. package/dist/esm/common/OkWorker.js +8 -8
  6. package/dist/esm/common/Runtime.js +17 -17
  7. package/dist/esm/common/Store.js +13 -13
  8. package/dist/esm/common/checkerValue.js +22 -22
  9. package/dist/esm/common/index.js +2 -2
  10. package/dist/esm/common/proxyState.js +52 -56
  11. package/dist/esm/index.js +3 -3
  12. package/dist/esm/plugins/CalcPlugin.js +57 -61
  13. package/dist/esm/plugins/ControlsEventPlugin.js +4 -4
  14. package/dist/esm/plugins/ES6ModulePlugin.js +6 -6
  15. package/dist/esm/plugins/LifecycleEventPlugin.js +5 -5
  16. package/dist/esm/plugins/StylePlugin.js +10 -10
  17. package/dist/esm/plugins/index.js +5 -5
  18. package/dist/esm/utils/index.js +1 -1
  19. package/dist/esm/utils/runtimeUtils.js +3 -3
  20. package/dist/index.umd.js +25 -25
  21. package/dist/types/common/ActionManager.d.ts +14 -14
  22. package/dist/types/common/DataManager.d.ts +10 -10
  23. package/dist/types/common/Engine.d.ts +201 -195
  24. package/dist/types/common/OkWorker.d.ts +13 -13
  25. package/dist/types/common/Plugin.d.ts +6 -6
  26. package/dist/types/common/Runtime.d.ts +31 -31
  27. package/dist/types/common/Store.d.ts +54 -54
  28. package/dist/types/common/checkerValue.d.ts +3 -3
  29. package/dist/types/common/index.d.ts +2 -2
  30. package/dist/types/common/proxyState.d.ts +30 -30
  31. package/dist/types/index.d.ts +3 -3
  32. package/dist/types/plugins/CalcPlugin.d.ts +121 -121
  33. package/dist/types/plugins/ControlsEventPlugin.d.ts +17 -17
  34. package/dist/types/plugins/ES6ModulePlugin.d.ts +27 -27
  35. package/dist/types/plugins/LifecycleEventPlugin.d.ts +15 -15
  36. package/dist/types/plugins/StylePlugin.d.ts +13 -13
  37. package/dist/types/plugins/index.d.ts +5 -5
  38. package/dist/types/utils/index.d.ts +1 -1
  39. package/dist/types/utils/runtimeUtils.d.ts +5 -5
  40. package/package.json +2 -2
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
- # Engine
2
- 运行态引擎
3
-
4
- ```
5
- │ index.ts // 入口文件
6
-
7
- ├─common // 引擎相关
8
- │ ActionManager.ts // utils操作管理
9
- │ checkerValue.ts // 表单值校验器
10
- │ DataManager.ts // 数据源容器
11
- │ Engine.ts // 引擎
12
- │ index.ts // 入口
13
- │ OkWorker.ts // 无用
14
- │ Plugin.ts // 插件
15
- │ proxyState.ts // 劫持引擎表单数据
16
- │ Runtime.ts // 控件注册和创建
17
- │ Store.ts // 数据管理
18
-
19
- ├─plugins
20
- │ CalcPlugin.ts // 计算公式插件
21
- │ ControlsEventPlugin.ts // 控件二开事件插件
22
- │ ES6ModulePlugin.ts //
23
- │ index.ts
24
- │ LifecycleEventPlugin.ts // 页面生命周期事件
25
- │ StylePlugin.ts // css二开
26
-
27
- └─utils
28
- index.ts
29
- runtimeUtils.ts // 工具函数
30
- ```
1
+ # Engine
2
+ 运行态引擎
3
+
4
+ ```
5
+ │ index.ts // 入口文件
6
+
7
+ ├─common // 引擎相关
8
+ │ ActionManager.ts // utils操作管理
9
+ │ checkerValue.ts // 表单值校验器
10
+ │ DataManager.ts // 数据源容器
11
+ │ Engine.ts // 引擎
12
+ │ index.ts // 入口
13
+ │ OkWorker.ts // 无用
14
+ │ Plugin.ts // 插件
15
+ │ proxyState.ts // 劫持引擎表单数据
16
+ │ Runtime.ts // 控件注册和创建
17
+ │ Store.ts // 数据管理
18
+
19
+ ├─plugins
20
+ │ CalcPlugin.ts // 计算公式插件
21
+ │ ControlsEventPlugin.ts // 控件二开事件插件
22
+ │ ES6ModulePlugin.ts //
23
+ │ index.ts
24
+ │ LifecycleEventPlugin.ts // 页面生命周期事件
25
+ │ StylePlugin.ts // css二开
26
+
27
+ └─utils
28
+ index.ts
29
+ runtimeUtils.ts // 工具函数
30
+ ```
@@ -179,18 +179,18 @@ function _ts_generator(thisArg, body) {
179
179
  };
180
180
  }
181
181
  }
182
- import { error, logerror } from '@byteluck-fe/model-driven-shared';
182
+ import { error, logerror } from "@byteluck-fe/model-driven-shared";
183
183
  export var ActionManager = /*#__PURE__*/ function() {
184
184
  "use strict";
185
185
  function ActionManager() {
186
186
  _class_call_check(this, ActionManager);
187
187
  _define_property(this, "actionMap", new Map());
188
188
  _define_property(this, "buildinActions", {});
189
- /**
190
- * 执行action的时候,作为第二个参数传递给方法,可以通过外部挂载
189
+ /**
190
+ * 执行action的时候,作为第二个参数传递给方法,可以通过外部挂载
191
191
  */ _define_property(this, "actionUtils", {});
192
- /**
193
- * 用于存储es module解析出来的源码,CustomVueControlPlugin
192
+ /**
193
+ * 用于存储es module解析出来的源码,CustomVueControlPlugin
194
194
  */ _define_property(this, "sources", {});
195
195
  }
196
196
  _create_class(ActionManager, [
@@ -255,7 +255,7 @@ export var ActionManager = /*#__PURE__*/ function() {
255
255
  key: "addAction",
256
256
  value: function addAction(name, func) {
257
257
  if (this.actionMap.has(name)) {
258
- error('duplicated action key');
258
+ error("duplicated action key");
259
259
  }
260
260
  var action = new Action(name, func);
261
261
  this.actionMap.set(name, action);
@@ -268,7 +268,7 @@ var Action = function Action(id, func) {
268
268
  "use strict";
269
269
  _class_call_check(this, Action);
270
270
  _define_property(this, "func", void 0);
271
- _define_property(this, "id", '');
271
+ _define_property(this, "id", "");
272
272
  this.id = id;
273
273
  this.func = func;
274
274
  };
@@ -154,7 +154,7 @@ function _ts_generator(thisArg, body) {
154
154
  };
155
155
  }
156
156
  }
157
- import { JSONCopy, logerror } from '@byteluck-fe/model-driven-shared';
157
+ import { JSONCopy, logerror } from "@byteluck-fe/model-driven-shared";
158
158
  export var DataManager = /*#__PURE__*/ function() {
159
159
  "use strict";
160
160
  function DataManager(callbackExecuter) {
@@ -190,7 +190,7 @@ export var DataManager = /*#__PURE__*/ function() {
190
190
  return _async_to_generator(function() {
191
191
  return _ts_generator(this, function(_state) {
192
192
  if (_this.executer === undefined) {
193
- logerror('未初始化executer');
193
+ logerror("未初始化executer");
194
194
  return [
195
195
  2,
196
196
  []