@ibiz-template/runtime 0.7.26-alpha.1 → 0.7.26-alpha.2
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/index.esm.js +484 -222
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/control/md-control.controller.js +2 -1
- package/out/controller/control/calendar/calendar.controller.d.ts +15 -0
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +85 -16
- package/out/controller/control/calendar/calendar.service.d.ts +10 -0
- package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.service.js +21 -1
- package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/base-series-generator.js +3 -1
- package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/chart-options-generator.js +199 -80
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts +14 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +29 -1
- package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
- package/out/controller/notification/internal-message.controller.js +7 -1
- package/out/interface/controller/state/control/i-calendar.state.d.ts +21 -0
- package/out/interface/controller/state/control/i-calendar.state.d.ts.map +1 -1
- package/out/interface/service/i-data-entity/i-data-entity.d.ts +7 -0
- package/out/interface/service/i-data-entity/i-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.d.ts +1 -0
- package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.js +2 -0
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts +15 -0
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +17 -2
- package/out/utils/script/script-factory.d.ts +12 -0
- package/out/utils/script/script-factory.d.ts.map +1 -1
- package/out/utils/script/script-factory.js +16 -1
- package/package.json +2 -2
|
@@ -22,9 +22,24 @@ export class ScriptFactory {
|
|
|
22
22
|
* @param {IScriptFunctionOpts} options 选项
|
|
23
23
|
* @return {*}
|
|
24
24
|
*/
|
|
25
|
-
static execScriptFn(args, scriptCode, options) {
|
|
25
|
+
static execScriptFn(args, scriptCode, options = {}) {
|
|
26
26
|
return this.createScriptFn(Object.keys(args), scriptCode, options).exec(args);
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* 直接创建并同步执行脚本
|
|
30
|
+
*
|
|
31
|
+
* @author tony001
|
|
32
|
+
* @date 2024-06-25 14:06:25
|
|
33
|
+
* @static
|
|
34
|
+
* @param {IParams} args
|
|
35
|
+
* @param {string} scriptCode
|
|
36
|
+
* @param {IScriptFunctionOpts} [options={}]
|
|
37
|
+
* @return {*} {Promise<unknown>}
|
|
38
|
+
*/
|
|
39
|
+
static async asyncExecScriptFn(args, scriptCode, options = {}) {
|
|
40
|
+
const result = await this.createScriptFn(Object.keys(args), scriptCode, Object.assign(Object.assign({}, options), { isAsync: true })).exec(args);
|
|
41
|
+
return result;
|
|
42
|
+
}
|
|
28
43
|
/**
|
|
29
44
|
* 执行单行脚本
|
|
30
45
|
* @author lxm
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.7.26-alpha.
|
|
3
|
+
"version": "0.7.26-alpha.2",
|
|
4
4
|
"description": "控制器包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"qx-util": "^0.4.8",
|
|
67
67
|
"ramda": "^0.29.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "cb512f1b38c1ad8a757d83cb1adc6e3d226628d2"
|
|
70
70
|
}
|