@byteluck-fe/model-driven-engine 7.0.0-props.99 → 8.0.0-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.
- package/dist/esm/common/ActionManager.js +16 -21
- package/dist/esm/common/DataManager.js +4 -11
- package/dist/esm/common/Engine.js +38 -50
- package/dist/esm/common/OkWorker.js +2 -6
- package/dist/esm/common/Plugin.js +1 -3
- package/dist/esm/common/Runtime.js +12 -20
- package/dist/esm/common/Store.js +2 -6
- package/dist/esm/common/checkerValue.js +13 -21
- package/dist/esm/common/proxyState.js +4 -2
- package/dist/esm/plugins/CalcPlugin.js +6 -8
- package/dist/esm/plugins/ControlsEventPlugin.js +5 -12
- package/dist/esm/plugins/ES6ModulePlugin.js +3 -7
- package/dist/esm/plugins/LifecycleEventPlugin.js +13 -20
- package/dist/esm/plugins/StylePlugin.js +2 -6
- package/dist/index.umd.js +31 -25
- package/package.json +4 -4
|
@@ -14,11 +14,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
14
14
|
reject(error);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
if (info.done)
|
|
18
|
-
|
|
19
|
-
} else {
|
|
20
|
-
Promise.resolve(value).then(_next, _throw);
|
|
21
|
-
}
|
|
17
|
+
if (info.done) resolve(value);
|
|
18
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
22
19
|
}
|
|
23
20
|
function _async_to_generator(fn) {
|
|
24
21
|
return function() {
|
|
@@ -36,9 +33,7 @@ function _async_to_generator(fn) {
|
|
|
36
33
|
};
|
|
37
34
|
}
|
|
38
35
|
function _class_call_check(instance, Constructor) {
|
|
39
|
-
if (!(instance instanceof Constructor))
|
|
40
|
-
throw new TypeError("Cannot call a class as a function");
|
|
41
|
-
}
|
|
36
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
42
37
|
}
|
|
43
38
|
function _defineProperties(target, props) {
|
|
44
39
|
for(var i = 0; i < props.length; i++){
|
|
@@ -62,9 +57,7 @@ function _define_property(obj, key, value) {
|
|
|
62
57
|
configurable: true,
|
|
63
58
|
writable: true
|
|
64
59
|
});
|
|
65
|
-
} else
|
|
66
|
-
obj[key] = value;
|
|
67
|
-
}
|
|
60
|
+
} else obj[key] = value;
|
|
68
61
|
return obj;
|
|
69
62
|
}
|
|
70
63
|
function _iterable_to_array_limit(arr, i) {
|
|
@@ -92,19 +85,11 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
92
85
|
return _arr;
|
|
93
86
|
}
|
|
94
87
|
function _non_iterable_rest() {
|
|
95
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
88
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
96
89
|
}
|
|
97
90
|
function _sliced_to_array(arr, i) {
|
|
98
91
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
99
92
|
}
|
|
100
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
101
|
-
if (!o) return;
|
|
102
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
103
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
104
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
105
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
106
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
107
|
-
}
|
|
108
93
|
function _ts_generator(thisArg, body) {
|
|
109
94
|
var f, y, t, _ = {
|
|
110
95
|
label: 0,
|
|
@@ -204,6 +189,14 @@ function _ts_generator(thisArg, body) {
|
|
|
204
189
|
};
|
|
205
190
|
}
|
|
206
191
|
}
|
|
192
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
193
|
+
if (!o) return;
|
|
194
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
195
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
196
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
197
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
198
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
199
|
+
}
|
|
207
200
|
var LifecycleEventKeyMap = {
|
|
208
201
|
'engine-initialized': 'did_init',
|
|
209
202
|
'engine-mounted': 'did_mount',
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
* @LastEditTime: 2024-11-08 11:17:53
|
|
6
6
|
* @FilePath: /model-driven/packages/engine/src/plugins/StylePlugin.ts
|
|
7
7
|
*/ function _class_call_check(instance, Constructor) {
|
|
8
|
-
if (!(instance instanceof Constructor))
|
|
9
|
-
throw new TypeError("Cannot call a class as a function");
|
|
10
|
-
}
|
|
8
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
11
9
|
}
|
|
12
10
|
function _defineProperties(target, props) {
|
|
13
11
|
for(var i = 0; i < props.length; i++){
|
|
@@ -31,9 +29,7 @@ function _define_property(obj, key, value) {
|
|
|
31
29
|
configurable: true,
|
|
32
30
|
writable: true
|
|
33
31
|
});
|
|
34
|
-
} else
|
|
35
|
-
obj[key] = value;
|
|
36
|
-
}
|
|
32
|
+
} else obj[key] = value;
|
|
37
33
|
return obj;
|
|
38
34
|
}
|
|
39
35
|
import postcss from 'postcss';
|