@byteluck-fe/model-driven-engine 2.3.11 → 2.4.1-beta.0
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.
|
@@ -84,7 +84,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
84
84
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
85
85
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
function _ts_generator(thisArg, body) {
|
|
88
88
|
var f, y, t, g, _ = {
|
|
89
89
|
label: 0,
|
|
90
90
|
sent: function() {
|
|
@@ -178,7 +178,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
|
178
178
|
done: true
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
}
|
|
181
|
+
}
|
|
182
182
|
import { error, logerror } from "@byteluck-fe/model-driven-shared";
|
|
183
183
|
export var ActionManager = /*#__PURE__*/ function() {
|
|
184
184
|
"use strict";
|
|
@@ -203,7 +203,7 @@ export var ActionManager = /*#__PURE__*/ function() {
|
|
|
203
203
|
var _this = this;
|
|
204
204
|
return _async_to_generator(function() {
|
|
205
205
|
var action, _action_func, result, e;
|
|
206
|
-
return
|
|
206
|
+
return _ts_generator(this, function(_state) {
|
|
207
207
|
switch(_state.label){
|
|
208
208
|
case 0:
|
|
209
209
|
action = _this.actionMap.get(name);
|
|
@@ -59,7 +59,7 @@ function _define_property(obj, key, value) {
|
|
|
59
59
|
}
|
|
60
60
|
return obj;
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
function _ts_generator(thisArg, body) {
|
|
63
63
|
var f, y, t, g, _ = {
|
|
64
64
|
label: 0,
|
|
65
65
|
sent: function() {
|
|
@@ -153,7 +153,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
|
153
153
|
done: true
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
}
|
|
156
|
+
}
|
|
157
157
|
import { JSONCopy, logerror } from "@byteluck-fe/model-driven-shared";
|
|
158
158
|
export var DataManager = /*#__PURE__*/ function() {
|
|
159
159
|
"use strict";
|
|
@@ -188,7 +188,7 @@ export var DataManager = /*#__PURE__*/ function() {
|
|
|
188
188
|
value: function getRemoteData(payload) {
|
|
189
189
|
var _this = this;
|
|
190
190
|
return _async_to_generator(function() {
|
|
191
|
-
return
|
|
191
|
+
return _ts_generator(this, function(_state) {
|
|
192
192
|
if (_this.executer === undefined) {
|
|
193
193
|
logerror("未初始化executer");
|
|
194
194
|
return [
|
|
@@ -252,7 +252,7 @@ function _create_super(Derived) {
|
|
|
252
252
|
return _possible_constructor_return(this, result);
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
|
|
255
|
+
function _ts_generator(thisArg, body) {
|
|
256
256
|
var f, y, t, g, _ = {
|
|
257
257
|
label: 0,
|
|
258
258
|
sent: function() {
|
|
@@ -346,7 +346,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
|
346
346
|
done: true
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
|
-
}
|
|
349
|
+
}
|
|
350
350
|
import { DataBind, ObjectDataBind, RuntimeListControl } from "@byteluck-fe/model-driven-core";
|
|
351
351
|
import { CONTROL_BASE_TYPE, CONTROL_TYPE, DEFAULT_LOCALE, error, genNonDuplicateId, isString, JSONCopy, log, RulesMessage, updateValueFromKeys, warn, Watcher } from "@byteluck-fe/model-driven-shared";
|
|
352
352
|
import { Runtime } from "./Runtime";
|
|
@@ -722,7 +722,7 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
722
722
|
};
|
|
723
723
|
return _async_to_generator(function() {
|
|
724
724
|
var needWait, promiseResolver, promise, results;
|
|
725
|
-
return
|
|
725
|
+
return _ts_generator(this, function(_state) {
|
|
726
726
|
switch(_state.label){
|
|
727
727
|
case 0:
|
|
728
728
|
if (!(eventKey === "engine-mounted")) return [
|
|
@@ -59,7 +59,7 @@ function _define_property(obj, key, value) {
|
|
|
59
59
|
}
|
|
60
60
|
return obj;
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
function _ts_generator(thisArg, body) {
|
|
63
63
|
var f, y, t, g, _ = {
|
|
64
64
|
label: 0,
|
|
65
65
|
sent: function() {
|
|
@@ -153,7 +153,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
|
153
153
|
done: true
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
}
|
|
156
|
+
}
|
|
157
157
|
import { EventLogic } from "@byteluck-fe/model-driven-shared";
|
|
158
158
|
// type EventKeyMap = {
|
|
159
159
|
// [eventKey in EventKeys]?: string
|
|
@@ -209,7 +209,7 @@ export var ControlsEventPlugin = /*#__PURE__*/ function() {
|
|
|
209
209
|
var _this = this;
|
|
210
210
|
this.engine.on(eventKey, function() {
|
|
211
211
|
var _ref = _async_to_generator(function(payload) {
|
|
212
|
-
return
|
|
212
|
+
return _ts_generator(this, function(_state) {
|
|
213
213
|
switch(_state.label){
|
|
214
214
|
case 0:
|
|
215
215
|
// 初始化state的时候不触发change事件,必须在engine mounted以后才触发
|
|
@@ -250,7 +250,7 @@ export var ControlsEventPlugin = /*#__PURE__*/ function() {
|
|
|
250
250
|
var _this = this;
|
|
251
251
|
return _async_to_generator(function() {
|
|
252
252
|
var events, result;
|
|
253
|
-
return
|
|
253
|
+
return _ts_generator(this, function(_state) {
|
|
254
254
|
switch(_state.label){
|
|
255
255
|
case 0:
|
|
256
256
|
events = _this.config[payload.instance.id];
|
|
@@ -265,7 +265,7 @@ export var ControlsEventPlugin = /*#__PURE__*/ function() {
|
|
|
265
265
|
Promise.all(events[name].map(function() {
|
|
266
266
|
var _ref = _async_to_generator(function(eventName) {
|
|
267
267
|
var execResult;
|
|
268
|
-
return
|
|
268
|
+
return _ts_generator(this, function(_state) {
|
|
269
269
|
switch(_state.label){
|
|
270
270
|
case 0:
|
|
271
271
|
return [
|
|
@@ -105,7 +105,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
105
105
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
106
106
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
function _ts_generator(thisArg, body) {
|
|
109
109
|
var f, y, t, g, _ = {
|
|
110
110
|
label: 0,
|
|
111
111
|
sent: function() {
|
|
@@ -199,7 +199,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
|
199
199
|
done: true
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
}
|
|
202
|
+
}
|
|
203
203
|
var LifecycleEventKeyMap = {
|
|
204
204
|
"engine-mounted": "did_mount",
|
|
205
205
|
"engine-submit": "will_submit",
|
|
@@ -226,7 +226,7 @@ export var LifecycleEventPlugin = /*#__PURE__*/ function() {
|
|
|
226
226
|
engine.on(engineKey, function() {
|
|
227
227
|
var _ref = _async_to_generator(function(payload) {
|
|
228
228
|
var result;
|
|
229
|
-
return
|
|
229
|
+
return _ts_generator(this, function(_state) {
|
|
230
230
|
switch(_state.label){
|
|
231
231
|
case 0:
|
|
232
232
|
return [
|
|
@@ -265,7 +265,7 @@ export var LifecycleEventPlugin = /*#__PURE__*/ function() {
|
|
|
265
265
|
var _this = this;
|
|
266
266
|
return _async_to_generator(function() {
|
|
267
267
|
var events, result;
|
|
268
|
-
return
|
|
268
|
+
return _ts_generator(this, function(_state) {
|
|
269
269
|
switch(_state.label){
|
|
270
270
|
case 0:
|
|
271
271
|
events = _this.config;
|
|
@@ -280,7 +280,7 @@ export var LifecycleEventPlugin = /*#__PURE__*/ function() {
|
|
|
280
280
|
Promise.all(events[name].map(function() {
|
|
281
281
|
var _ref = _async_to_generator(function(eventName) {
|
|
282
282
|
var execResult;
|
|
283
|
-
return
|
|
283
|
+
return _ts_generator(this, function(_state) {
|
|
284
284
|
switch(_state.label){
|
|
285
285
|
case 0:
|
|
286
286
|
return [
|