@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.
Files changed (50) hide show
  1. package/dist/index.esm.js +705 -197
  2. package/dist/index.system.min.js +1 -1
  3. package/out/app-hub.d.ts.map +1 -1
  4. package/out/app-hub.js +2 -1
  5. package/out/application.d.ts +3 -2
  6. package/out/application.d.ts.map +1 -1
  7. package/out/application.js +3 -2
  8. package/out/controller/common/control/md-control.controller.js +2 -1
  9. package/out/controller/control/calendar/calendar.controller.d.ts +15 -0
  10. package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
  11. package/out/controller/control/calendar/calendar.controller.js +85 -16
  12. package/out/controller/control/calendar/calendar.service.d.ts +10 -0
  13. package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
  14. package/out/controller/control/calendar/calendar.service.js +21 -1
  15. package/out/controller/control/chart/generator/base-series-generator.d.ts +16 -0
  16. package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
  17. package/out/controller/control/chart/generator/base-series-generator.js +114 -5
  18. package/out/controller/control/chart/generator/chart-options-generator.d.ts +7 -0
  19. package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
  20. package/out/controller/control/chart/generator/chart-options-generator.js +286 -2
  21. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts +14 -0
  22. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
  23. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +29 -1
  24. package/out/controller/control/kanban/kanban.controller.d.ts +0 -6
  25. package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
  26. package/out/controller/control/kanban/kanban.controller.js +8 -38
  27. package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
  28. package/out/controller/notification/internal-message.controller.js +7 -1
  29. package/out/interface/controller/state/control/i-calendar.state.d.ts +21 -0
  30. package/out/interface/controller/state/control/i-calendar.state.d.ts.map +1 -1
  31. package/out/interface/provider/model-loader.provider.d.ts +10 -1
  32. package/out/interface/provider/model-loader.provider.d.ts.map +1 -1
  33. package/out/interface/service/i-data-entity/i-data-entity.d.ts +7 -0
  34. package/out/interface/service/i-data-entity/i-data-entity.d.ts.map +1 -1
  35. package/out/locale/en/index.d.ts +3 -0
  36. package/out/locale/en/index.d.ts.map +1 -1
  37. package/out/locale/en/index.js +3 -0
  38. package/out/locale/zh-CN/index.d.ts +3 -0
  39. package/out/locale/zh-CN/index.d.ts.map +1 -1
  40. package/out/locale/zh-CN/index.js +3 -0
  41. package/out/service/app-data-entity/app-data-entity.d.ts +1 -0
  42. package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
  43. package/out/service/app-data-entity/app-data-entity.js +2 -0
  44. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts +15 -0
  45. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
  46. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +17 -2
  47. package/out/utils/script/script-factory.d.ts +12 -0
  48. package/out/utils/script/script-factory.d.ts.map +1 -1
  49. package/out/utils/script/script-factory.js +16 -1
  50. package/package.json +4 -4
@@ -63,6 +63,9 @@ export declare const zhCn: {
63
63
  noFindSequence: string;
64
64
  noInitialised: string;
65
65
  noCalculated: string;
66
+ classificationNotArray: string;
67
+ classificationNotString: string;
68
+ errorJson: string;
66
69
  };
67
70
  dataView: {
68
71
  noBehaviourGroup: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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: '操作项没有配置界面行为组',
@@ -20,6 +20,7 @@ export declare class AppDataEntity implements IDataEntity {
20
20
  srfkey: string;
21
21
  srfmajortext: string;
22
22
  tempsrfkey: string;
23
+ srfordervalue: number;
23
24
  get srfuf(): Srfuf;
24
25
  /**
25
26
  * Creates an instance of AppDataEntity.
@@ -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;IAEhB,aAAa,EAAE,MAAM,CAAC;IAEtB,WAAW,EAAE,MAAM,CAAC;IAEpB,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE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E,IAAI,GAAE,KAAK,GAAG,aAAkB;IAyFpE;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,IAAI,IAAI;IAgClC;;;;;;OAMG;IACH,KAAK,IAAI,aAAa;IAOtB;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,aAAa,GAAG,aAAa;IAiBlD;;;;;;;;OAQG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,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;AAE/C,qBAAa,aAAc,SAAQ,WAAW;IACpC,KAAK,EAAE,iBAAiB,CAAC;IAE3B,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAkB/C"}
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.execScriptFn({
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 || '', { isAsync: false });
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,CAAC,EAAE,mBAAmB,GAC5B,OAAO;IAMV;;;;;;;;OAQG;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,GAAE,OAAY,GAAG,OAAO;CAMvE"}
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.0",
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.35",
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.35",
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": "1ca87b0da3c01b72e5afaf88cb841c432f955240"
69
+ "gitHead": "cb512f1b38c1ad8a757d83cb1adc6e3d226628d2"
70
70
  }