@ibiz-template/runtime 0.7.26-alpha.0 → 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 +705 -197
- package/dist/index.system.min.js +1 -1
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +2 -1
- package/out/application.d.ts +3 -2
- package/out/application.d.ts.map +1 -1
- package/out/application.js +3 -2
- 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 +16 -0
- package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/base-series-generator.js +114 -5
- package/out/controller/control/chart/generator/chart-options-generator.d.ts +7 -0
- package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/chart-options-generator.js +286 -2
- 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/control/kanban/kanban.controller.d.ts +0 -6
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +8 -38
- 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/provider/model-loader.provider.d.ts +10 -1
- package/out/interface/provider/model-loader.provider.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/locale/en/index.d.ts +3 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +3 -0
- package/out/locale/zh-CN/index.d.ts +3 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +3 -0
- 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 +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2nBhB,CAAC"}
|
|
@@ -64,6 +64,9 @@ export const zhCn = {
|
|
|
64
64
|
noFindSequence: '找不到{seriesIndex}序列的generator!',
|
|
65
65
|
noInitialised: 'chart对象没有正确初始化',
|
|
66
66
|
noCalculated: 'options还没计算',
|
|
67
|
+
classificationNotArray: '配置的分类属性值不是一个数组',
|
|
68
|
+
classificationNotString: '配置的分类属性值不是一个字符串',
|
|
69
|
+
errorJson: 'JSON解析错误',
|
|
67
70
|
},
|
|
68
71
|
dataView: {
|
|
69
72
|
noBehaviourGroup: '操作项没有配置界面行为组',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-data-entity.d.ts","sourceRoot":"","sources":["../../../src/service/app-data-entity/app-data-entity.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;;;GAOG;AACH,qBAAa,aAAc,YAAW,WAAW;IAC/C,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B,UAAkB,KAAK,EAAE,KAAK,CAAC;IAE/B,UAAkB,OAAO,EAAE,cAAc,CAAC;IAElC,OAAO,EAAE,MAAM,CAAC;IA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AO,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO;CA6B5E"}
|
|
@@ -148,6 +148,7 @@ export class AppDataEntity {
|
|
|
148
148
|
clone() {
|
|
149
149
|
const entity = new AppDataEntity(this._entity, this._data);
|
|
150
150
|
entity.srfkey = this.srfkey;
|
|
151
|
+
entity.srfordervalue = this.srfordervalue;
|
|
151
152
|
return entity;
|
|
152
153
|
}
|
|
153
154
|
/**
|
|
@@ -162,6 +163,7 @@ export class AppDataEntity {
|
|
|
162
163
|
let _data = {};
|
|
163
164
|
if (data instanceof AppDataEntity) {
|
|
164
165
|
_data = data._data;
|
|
166
|
+
this.srfordervalue = data.srfordervalue;
|
|
165
167
|
}
|
|
166
168
|
else {
|
|
167
169
|
_data = data;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { IDEUIRawCodeLogic } from '@ibiz/model-core';
|
|
2
2
|
import { UILogicContext } from '../../ui-logic-context';
|
|
3
3
|
import { UILogicNode } from '../ui-logic-node';
|
|
4
|
+
/**
|
|
5
|
+
* 直接脚本,同步执行方式写法
|
|
6
|
+
* 1)`return new Promise((resolve) => {
|
|
7
|
+
* uiLogic.reportpanel.openReportDesignPage().then((result) =>{
|
|
8
|
+
* resolve(result);
|
|
9
|
+
* })
|
|
10
|
+
* });`
|
|
11
|
+
* 2)`return await uiLogic.reportpanel.openReportDesignPage()`
|
|
12
|
+
*
|
|
13
|
+
* @author tony001
|
|
14
|
+
* @date 2024-06-25 14:06:02
|
|
15
|
+
* @export
|
|
16
|
+
* @class RawJSCodeNode
|
|
17
|
+
* @extends {UILogicNode}
|
|
18
|
+
*/
|
|
4
19
|
export declare class RawJSCodeNode extends UILogicNode {
|
|
5
20
|
model: IDEUIRawCodeLogic;
|
|
6
21
|
exec(ctx: UILogicContext): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raw-js-code-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"raw-js-code-node.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,iBAAiB,CAAC;IAE3B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAiB/C"}
|
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
import { ScriptFactory } from '../../../utils';
|
|
2
2
|
import { UILogicNode } from '../ui-logic-node';
|
|
3
|
+
/**
|
|
4
|
+
* 直接脚本,同步执行方式写法
|
|
5
|
+
* 1)`return new Promise((resolve) => {
|
|
6
|
+
* uiLogic.reportpanel.openReportDesignPage().then((result) =>{
|
|
7
|
+
* resolve(result);
|
|
8
|
+
* })
|
|
9
|
+
* });`
|
|
10
|
+
* 2)`return await uiLogic.reportpanel.openReportDesignPage()`
|
|
11
|
+
*
|
|
12
|
+
* @author tony001
|
|
13
|
+
* @date 2024-06-25 14:06:02
|
|
14
|
+
* @export
|
|
15
|
+
* @class RawJSCodeNode
|
|
16
|
+
* @extends {UILogicNode}
|
|
17
|
+
*/
|
|
3
18
|
export class RawJSCodeNode extends UILogicNode {
|
|
4
19
|
async exec(ctx) {
|
|
5
20
|
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceLogicNodeDirectCode', {
|
|
6
21
|
id: this.model.id,
|
|
7
22
|
}), this.model.code);
|
|
8
|
-
ScriptFactory.
|
|
23
|
+
await ScriptFactory.asyncExecScriptFn({
|
|
9
24
|
view: ctx.view,
|
|
10
25
|
context: ctx.context,
|
|
11
26
|
params: ctx.viewParam,
|
|
12
27
|
uiLogic: ctx.params,
|
|
13
|
-
}, this.model.code || ''
|
|
28
|
+
}, this.model.code || '');
|
|
14
29
|
}
|
|
15
30
|
}
|
|
@@ -22,6 +22,18 @@ export declare class ScriptFactory {
|
|
|
22
22
|
* @return {*}
|
|
23
23
|
*/
|
|
24
24
|
static execScriptFn(args: IParams, scriptCode: string, options?: IScriptFunctionOpts): unknown;
|
|
25
|
+
/**
|
|
26
|
+
* 直接创建并同步执行脚本
|
|
27
|
+
*
|
|
28
|
+
* @author tony001
|
|
29
|
+
* @date 2024-06-25 14:06:25
|
|
30
|
+
* @static
|
|
31
|
+
* @param {IParams} args
|
|
32
|
+
* @param {string} scriptCode
|
|
33
|
+
* @param {IScriptFunctionOpts} [options={}]
|
|
34
|
+
* @return {*} {Promise<unknown>}
|
|
35
|
+
*/
|
|
36
|
+
static asyncExecScriptFn(args: IParams, scriptCode: string, options?: IScriptFunctionOpts): Promise<unknown>;
|
|
25
37
|
/**
|
|
26
38
|
* 执行单行脚本
|
|
27
39
|
* @author lxm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script-factory.d.ts","sourceRoot":"","sources":["../../../src/utils/script/script-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,aAAa;IACxB;;;;;;;;OAQG;IACH,MAAM,CAAC,cAAc,CACnB,OAAO,EAAE,MAAM,EAAE,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,cAAc;IAIjB;;;;;;;;;OASG;IACH,MAAM,CAAC,YAAY,CACjB,IAAI,EAAE,OAAO,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,
|
|
1
|
+
{"version":3,"file":"script-factory.d.ts","sourceRoot":"","sources":["../../../src/utils/script/script-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,aAAa;IACxB;;;;;;;;OAQG;IACH,MAAM,CAAC,cAAc,CACnB,OAAO,EAAE,MAAM,EAAE,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,cAAc;IAIjB;;;;;;;;;OASG;IACH,MAAM,CAAC,YAAY,CACjB,IAAI,EAAE,OAAO,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,mBAAwB,GAChC,OAAO;IAMV;;;;;;;;;;OAUG;WACU,iBAAiB,CAC5B,IAAI,EAAE,OAAO,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,OAAO,CAAC;IAQnB;;;;;;;;OAQG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,GAAE,OAAY,GAAG,OAAO;CAMvE"}
|
|
@@ -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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@ibiz-template/core": "^0.7.25",
|
|
39
|
-
"@ibiz/model-core": "^0.1.
|
|
39
|
+
"@ibiz/model-core": "^0.1.37",
|
|
40
40
|
"@types/animejs": "^3.1.12",
|
|
41
41
|
"@types/path-browserify": "^1.0.2",
|
|
42
42
|
"@types/qs": "^6.9.11",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@ibiz-template/core": "^0.6.0",
|
|
57
|
-
"@ibiz/model-core": "^0.1.
|
|
57
|
+
"@ibiz/model-core": "^0.1.37",
|
|
58
58
|
"async-validator": "^4.2.5",
|
|
59
59
|
"dayjs": "^1.11.7",
|
|
60
60
|
"echarts": "^5.4.3",
|
|
@@ -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
|
}
|