@ibiz-template/runtime 0.1.1 → 0.1.3
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 +122 -92
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +25 -26
- package/out/de-logic/index.d.ts +13 -0
- package/out/de-logic/index.d.ts.map +1 -1
- package/out/de-logic/index.js +34 -2
- package/out/engine/md-view.engine.d.ts +2 -2
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +7 -3
- package/out/index.d.ts +2 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +2 -0
- package/out/interface/controller/controller/control/i-pickup-view-panel.controller.d.ts +10 -0
- package/out/interface/controller/controller/control/i-pickup-view-panel.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts +11 -0
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree.controller.d.ts +0 -10
- package/out/interface/controller/controller/control/i-tree.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts +15 -0
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-grid.state.d.ts +52 -0
- package/out/interface/controller/state/control/i-grid.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree.state.d.ts +2 -2
- package/out/interface/controller/state/control/i-tree.state.d.ts.map +1 -1
- package/out/model/layout/layout.d.ts.map +1 -1
- package/out/model/layout/layout.js +8 -2
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +18 -16
- package/package.json +4 -3
- package/src/controller/common/control/md-control.controller.ts +28 -29
- package/src/de-logic/index.ts +50 -2
- package/src/engine/md-view.engine.ts +8 -3
- package/src/index.ts +2 -0
- package/src/interface/controller/controller/control/i-pickup-view-panel.controller.ts +10 -0
- package/src/interface/controller/controller/control/i-tree-exp-bar.controller.ts +13 -1
- package/src/interface/controller/controller/control/i-tree.controller.ts +0 -11
- package/src/interface/controller/event/control/i-pickup-view-panel.event.ts +16 -0
- package/src/interface/controller/state/control/i-grid.state.ts +58 -0
- package/src/interface/controller/state/control/i-tree.state.ts +2 -2
- package/src/model/layout/layout.ts +6 -2
- package/src/utils/open-redirect-view/open-redirect-view.ts +18 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"md-control.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/common/control/md-control.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAS,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;;;;;;GASG;AACH,qBAAa,mBAAmB,CAC5B,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3C,CAAC,SAAS,eAAe,GAAG,eAAe,CAE7C,SAAQ,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CACjC,YAAW,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAExC;;;;;;OAMG;IACH,OAAO,EAAG,gBAAgB,CAAC;IAE3B,SAAS,KAAK,IAAI,IAAI,eAAe,CAAC,eAAe,CAAC,CAErD;IAED,SAAS,CAAC,SAAS,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"md-control.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/common/control/md-control.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAS,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;;;;;;GASG;AACH,qBAAa,mBAAmB,CAC5B,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3C,CAAC,SAAS,eAAe,GAAG,eAAe,CAE7C,SAAQ,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CACjC,YAAW,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAExC;;;;;;OAMG;IACH,OAAO,EAAG,gBAAgB,CAAC;IAE3B,SAAS,KAAK,IAAI,IAAI,eAAe,CAAC,eAAe,CAAC,CAErD;IAED,SAAS,CAAC,SAAS,IAAI,IAAI;IAgB3B;;;;;;;OAOG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI;IAIjD;;;;;;OAMG;IACG,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IA6B7D;;;;;OAKG;IACG,IAAI,CAAC,IAAI,GAAE,gBAAqB,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAyCzD;;;;;;;;OAQG;IACG,SAAS,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAIzE;;;;OAIG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B;;;;;;OAMG;IACG,MAAM,CAAC,IAAI,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IA0CtD;;;;;;OAMG;IACH,WAAW,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI;IAQ9B;;;;;;OAMG;IACH,OAAO,IAAI,KAAK,EAAE;IAIlB,SAAS,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAMrC,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI;IAWtC;;;;;;OAMG;IACG,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAmB5C;;;;;;OAMG;IACG,YAAY,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAM9C;;;;;;OAMG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBjC;;;;;;OAMG;IACG,UAAU,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,UAAU,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAkC9D"}
|
|
@@ -30,6 +30,7 @@ export class MDControlController extends ControlController {
|
|
|
30
30
|
this.state.isLoaded = false;
|
|
31
31
|
this.state.singleSelect = true;
|
|
32
32
|
this.state.mdctrlActiveMode = 0;
|
|
33
|
+
this.state.groups = [];
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* 设置排序
|
|
@@ -78,42 +79,40 @@ export class MDControlController extends ControlController {
|
|
|
78
79
|
* @date 2022-08-19 14:08:50
|
|
79
80
|
*/
|
|
80
81
|
async load(args = {}) {
|
|
81
|
-
// *初始加载需要重置分页
|
|
82
|
-
const isInitialLoad = args.isInitialLoad === true;
|
|
83
|
-
const isLoadMore = args.isLoadMore === true;
|
|
84
|
-
if (isInitialLoad) {
|
|
85
|
-
this.state.curPage = 1;
|
|
86
|
-
}
|
|
87
|
-
else if (isLoadMore) {
|
|
88
|
-
this.state.curPage += 1;
|
|
89
|
-
}
|
|
90
|
-
// *查询参数处理
|
|
91
|
-
const { context } = this.handlerAbilityParams(args);
|
|
92
|
-
const params = await this.getFetchParams(args === null || args === void 0 ? void 0 : args.params);
|
|
93
|
-
// *发起请求
|
|
94
82
|
await this.startLoading();
|
|
95
|
-
let res;
|
|
96
83
|
try {
|
|
97
|
-
|
|
84
|
+
// *初始加载需要重置分页
|
|
85
|
+
const isInitialLoad = args.isInitialLoad === true;
|
|
86
|
+
const isLoadMore = args.isLoadMore === true;
|
|
87
|
+
if (isInitialLoad) {
|
|
88
|
+
this.state.curPage = 1;
|
|
89
|
+
}
|
|
90
|
+
else if (isLoadMore) {
|
|
91
|
+
this.state.curPage += 1;
|
|
92
|
+
}
|
|
93
|
+
// *查询参数处理
|
|
94
|
+
const { context } = this.handlerAbilityParams(args);
|
|
95
|
+
const params = await this.getFetchParams(args === null || args === void 0 ? void 0 : args.params);
|
|
96
|
+
const res = await this.service.fetch(context, params);
|
|
98
97
|
// 更新分页数据总条数
|
|
99
98
|
if (typeof res.total === 'number') {
|
|
100
99
|
this.state.total = res.total;
|
|
101
100
|
}
|
|
101
|
+
if (isLoadMore) {
|
|
102
|
+
this.state.items.push(...res.data);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
this.state.items = res.data;
|
|
106
|
+
}
|
|
107
|
+
await this.afterLoad(args, res.data);
|
|
108
|
+
this.state.isLoaded = true;
|
|
109
|
+
await this._evt.emit('onLoadSuccess', {
|
|
110
|
+
isInitialLoad,
|
|
111
|
+
});
|
|
102
112
|
}
|
|
103
113
|
finally {
|
|
104
114
|
await this.endLoading();
|
|
105
115
|
}
|
|
106
|
-
if (isLoadMore) {
|
|
107
|
-
this.state.items.push(...res.data);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
this.state.items = res.data;
|
|
111
|
-
}
|
|
112
|
-
await this.afterLoad(args, res.data);
|
|
113
|
-
this.state.isLoaded = true;
|
|
114
|
-
await this._evt.emit('onLoadSuccess', {
|
|
115
|
-
isInitialLoad,
|
|
116
|
-
});
|
|
117
116
|
return this.state.items;
|
|
118
117
|
}
|
|
119
118
|
/**
|
package/out/de-logic/index.d.ts
CHANGED
|
@@ -14,6 +14,19 @@ import { IAppDataEntity, IAppDELogic } from '@ibiz/model-core';
|
|
|
14
14
|
* @return {*} {Promise<HttpResponse<IData>>}
|
|
15
15
|
*/
|
|
16
16
|
export declare function execDELogic(deDELogic: IAppDELogic, context: IParams, data: IData, params: IParams): Promise<unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* 通过id执行实体逻辑
|
|
19
|
+
* @author lxm
|
|
20
|
+
* @date 2023-08-04 02:49:44
|
|
21
|
+
* @export
|
|
22
|
+
* @param {string} deDELogicId
|
|
23
|
+
* @param {string} dataEntityId
|
|
24
|
+
* @param {IParams} context
|
|
25
|
+
* @param {IData} data
|
|
26
|
+
* @param {IParams} params
|
|
27
|
+
* @return {*} {Promise<unknown>}
|
|
28
|
+
*/
|
|
29
|
+
export declare function execDELogicById(deDELogicId: string, dataEntityId: string, context: IParams, data: IData, params: IParams): Promise<unknown>;
|
|
17
30
|
/**
|
|
18
31
|
* 执行实体方法的实体逻辑并返回对应的response
|
|
19
32
|
* @author lxm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/de-logic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/de-logic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAgB,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA2B/D;;;;;;;;;;;;GAYG;AACH,wBAAsB,WAAW,CAC/B,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,OAAO,CAAC,CAUlB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAU9B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,EACtC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,IAAI,CAAC,CAYf"}
|
package/out/de-logic/index.js
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
import { HttpError, HttpResponse } from '@ibiz-template/core';
|
|
2
|
-
import { filterFieldLogics } from '../model';
|
|
1
|
+
import { HttpError, HttpResponse, RuntimeError } from '@ibiz-template/core';
|
|
2
|
+
import { filterFieldLogics, findDELogic } from '../model';
|
|
3
3
|
import { DELogic } from './de-logic';
|
|
4
4
|
/**
|
|
5
5
|
* 实体处理逻辑实例缓存
|
|
6
6
|
*/
|
|
7
7
|
const deLogicMap = new Map();
|
|
8
|
+
/**
|
|
9
|
+
* 找到实体逻辑模型
|
|
10
|
+
* @author lxm
|
|
11
|
+
* @date 2023-08-04 02:47:16
|
|
12
|
+
* @param {string} deDELogicId
|
|
13
|
+
* @param {string} dataEntityId
|
|
14
|
+
* @param {string} [appId]
|
|
15
|
+
* @return {*} {(Promise<IAppDELogic | undefined>)}
|
|
16
|
+
*/
|
|
17
|
+
async function findDeLogic(deDELogicId, dataEntityId, appId) {
|
|
18
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(dataEntityId, appId);
|
|
19
|
+
return findDELogic(deDELogicId, appDataEntity);
|
|
20
|
+
}
|
|
8
21
|
/**
|
|
9
22
|
* 执行实体处理逻辑
|
|
10
23
|
*
|
|
@@ -25,6 +38,25 @@ export async function execDELogic(deDELogic, context, data, params) {
|
|
|
25
38
|
const deLogic = deLogicMap.get(deDELogic);
|
|
26
39
|
return deLogic.exec(context, data, params);
|
|
27
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* 通过id执行实体逻辑
|
|
43
|
+
* @author lxm
|
|
44
|
+
* @date 2023-08-04 02:49:44
|
|
45
|
+
* @export
|
|
46
|
+
* @param {string} deDELogicId
|
|
47
|
+
* @param {string} dataEntityId
|
|
48
|
+
* @param {IParams} context
|
|
49
|
+
* @param {IData} data
|
|
50
|
+
* @param {IParams} params
|
|
51
|
+
* @return {*} {Promise<unknown>}
|
|
52
|
+
*/
|
|
53
|
+
export async function execDELogicById(deDELogicId, dataEntityId, context, data, params) {
|
|
54
|
+
const deLogic = await findDeLogic(deDELogicId, dataEntityId, context.srfappid);
|
|
55
|
+
if (!deLogic) {
|
|
56
|
+
throw new RuntimeError(`${dataEntityId}找不到实体逻辑${deDELogicId}`);
|
|
57
|
+
}
|
|
58
|
+
return execDELogic(deLogic, context, data, params);
|
|
59
|
+
}
|
|
28
60
|
/**
|
|
29
61
|
* 执行实体方法的实体逻辑并返回对应的response
|
|
30
62
|
* @author lxm
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAppDEMultiDataView } from '@ibiz/model-core';
|
|
2
2
|
import { ViewController } from '../controller';
|
|
3
|
-
import { IMDViewEvent, IMDViewState, IMDControlController, ISearchFormController, MDCtrlRemoveParams, ISearchBarController } from '../interface';
|
|
3
|
+
import { IMDViewEvent, IMDViewState, IMDControlController, ISearchFormController, MDCtrlRemoveParams, ISearchBarController, MDCtrlLoadParams } from '../interface';
|
|
4
4
|
import { ViewEngineBase } from './view-base.engine';
|
|
5
5
|
/**
|
|
6
6
|
* 多数据视图引擎
|
|
@@ -87,7 +87,7 @@ export declare class MDViewEngine extends ViewEngineBase {
|
|
|
87
87
|
* @date 2023-05-22 03:17:33
|
|
88
88
|
* @return {*} {Promise<void>}
|
|
89
89
|
*/
|
|
90
|
-
protected load(): Promise<void>;
|
|
90
|
+
protected load(args?: MDCtrlLoadParams): Promise<void>;
|
|
91
91
|
/**
|
|
92
92
|
* 视图刷新
|
|
93
93
|
* @author lxm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"md-view.engine.d.ts","sourceRoot":"","sources":["../../src/engine/md-view.engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"md-view.engine.d.ts","sourceRoot":"","sources":["../../src/engine/md-view.engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;GAOG;AACH,qBAAa,YAAa,SAAQ,cAAc;IAC9C,UAAkB,IAAI,EAAE,cAAc,CACpC,mBAAmB,EACnB,YAAY,EACZ,YAAY,CACb,CAAC;IAEF;;;;;;OAMG;IACH,IAAI,gBAAgB,IAAI,MAAM,CAE7B;IAED;;;;;OAKG;IACH,SAAS,KAAK,UAAU,IAAI,qBAAqB,CAEhD;IAED;;;;;OAKG;IACH,SAAS,KAAK,SAAS,IAAI,oBAAoB,CAE9C;IAED;;;;;;OAMG;IACH,SAAS,KAAK,YAAY,IAAI,oBAAoB,CAIjD;IAEK,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAM1B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAyD1B,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;IAwCrE,SAAS,CAAC,OAAO,IAAI,KAAK,EAAE;IAI5B;;;;;;;;OAQG;cACa,QAAQ,CAAC,IAAI,EAAE;QAC7B,IAAI,EAAE,KAAK,EAAE,CAAC;QACd,KAAK,CAAC,EAAE,UAAU,CAAC;KACpB,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBjB;;;;;;;;OAQG;cACa,OAAO,CAAC,IAAI,EAAE;QAC5B,IAAI,EAAE,KAAK,EAAE,CAAC;QACd,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BjB;;;;;;OAMG;cACa,MAAM,CAAC,IAAI,CAAC,EAAE,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5E;;;;;OAKG;cACa,IAAI,CAAC,IAAI,GAAE,gBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhE;;;;;OAKG;cACa,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxC;;;;;OAKG;IACH,SAAS,CAAC,eAAe,IAAI,OAAO;IAiBpC;;;;;OAKG;cACa,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3C;;;;;;OAMG;cACa,UAAU,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,UAAU,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAItE;;;;;;OAMG;IACG,IAAI,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,UAAU,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAItE,SAAS,CAAC,qBAAqB,IAAI,OAAO;IAc1C;;;;;OAKG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;CAS/B"}
|
|
@@ -136,6 +136,10 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
136
136
|
this.copy(args);
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
+
if (key === 'load') {
|
|
140
|
+
this.load(args);
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
139
143
|
return super.call(key, args);
|
|
140
144
|
}
|
|
141
145
|
getData() {
|
|
@@ -166,7 +170,7 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
166
170
|
view: this.view,
|
|
167
171
|
}));
|
|
168
172
|
if (result === -1) {
|
|
169
|
-
|
|
173
|
+
ibiz.log.warn(`视图[${this.view.model.codeName}],未配置编辑打开视图`);
|
|
170
174
|
}
|
|
171
175
|
}
|
|
172
176
|
/**
|
|
@@ -216,8 +220,8 @@ export class MDViewEngine extends ViewEngineBase {
|
|
|
216
220
|
* @date 2023-05-22 03:17:33
|
|
217
221
|
* @return {*} {Promise<void>}
|
|
218
222
|
*/
|
|
219
|
-
async load() {
|
|
220
|
-
await this.xdataControl.load({ isInitialLoad: true });
|
|
223
|
+
async load(args = {}) {
|
|
224
|
+
await this.xdataControl.load(Object.assign({ isInitialLoad: true }, args));
|
|
221
225
|
}
|
|
222
226
|
/**
|
|
223
227
|
* 视图刷新
|
package/out/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './service';
|
|
|
9
9
|
export * from './utils';
|
|
10
10
|
export * from './controller';
|
|
11
11
|
export * from './ui-action';
|
|
12
|
+
export * from './ui-logic';
|
|
13
|
+
export * from './de-logic';
|
|
12
14
|
export * from './engine';
|
|
13
15
|
export * from './model';
|
|
14
16
|
export { Application } from './application';
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AAEjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AAEjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -9,6 +9,8 @@ export * from './service';
|
|
|
9
9
|
export * from './utils';
|
|
10
10
|
export * from './controller';
|
|
11
11
|
export * from './ui-action';
|
|
12
|
+
export * from './ui-logic';
|
|
13
|
+
export * from './de-logic';
|
|
12
14
|
export * from './engine';
|
|
13
15
|
export * from './model';
|
|
14
16
|
export { Application } from './application';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IDEPickupViewPanel } from '@ibiz/model-core';
|
|
2
2
|
import { IPickupViewPanelEvent } from '../../event';
|
|
3
3
|
import { IPickupViewPanelState } from '../../state';
|
|
4
|
+
import { IViewController } from '../view';
|
|
4
5
|
import { IControlController } from './i-control.controller';
|
|
5
6
|
/**
|
|
6
7
|
* 选择视图面板控制器
|
|
@@ -10,6 +11,15 @@ import { IControlController } from './i-control.controller';
|
|
|
10
11
|
* @extends {IControlController<IDEPickupViewPanel, IPickupViewPanelState, IPickupViewPanelEvent>}
|
|
11
12
|
*/
|
|
12
13
|
export interface IPickupViewPanelController extends IControlController<IDEPickupViewPanel, IPickupViewPanelState, IPickupViewPanelEvent> {
|
|
14
|
+
/**
|
|
15
|
+
* 选择视图嵌入视图控制器
|
|
16
|
+
*
|
|
17
|
+
* @author zk
|
|
18
|
+
* @date 2023-08-04 08:08:43
|
|
19
|
+
* @type {IViewController}
|
|
20
|
+
* @memberof IPickupViewPanelController
|
|
21
|
+
*/
|
|
22
|
+
embedView: IViewController;
|
|
13
23
|
/**
|
|
14
24
|
* 获取选中数据
|
|
15
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-pickup-view-panel.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-pickup-view-panel.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,WAAW,0BACf,SAAQ,kBAAkB,CACxB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,CACtB;IACD;;;;;;;OAOG;IACH,eAAe,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAEpC;;;;;;;OAOG;IACH,UAAU,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;CAChC"}
|
|
1
|
+
{"version":3,"file":"i-pickup-view-panel.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-pickup-view-panel.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,WAAW,0BACf,SAAQ,kBAAkB,CACxB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,CACtB;IACD;;;;;;;OAOG;IACH,SAAS,EAAE,eAAe,CAAC;IAC3B;;;;;;;OAOG;IACH,eAAe,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAEpC;;;;;;;OAOG;IACH,UAAU,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;CAChC"}
|
|
@@ -2,6 +2,7 @@ import { ITreeExpBar } from '@ibiz/model-core';
|
|
|
2
2
|
import { ITreeExpBarEvent } from '../../event';
|
|
3
3
|
import { ITreeExpBarState } from '../../state';
|
|
4
4
|
import { IExpBarControlController } from './i-exp-bar-control.controller';
|
|
5
|
+
import { INavViewMsg } from './panel-item';
|
|
5
6
|
/**
|
|
6
7
|
* 树导航栏控制器
|
|
7
8
|
*
|
|
@@ -10,5 +11,15 @@ import { IExpBarControlController } from './i-exp-bar-control.controller';
|
|
|
10
11
|
* @extends {IExpBarControlController<ITreeExpBar, ITreeExpBarState, ITreeExpBarEvent>}
|
|
11
12
|
*/
|
|
12
13
|
export interface ITreeExpBarController extends IExpBarControlController<ITreeExpBar, ITreeExpBarState, ITreeExpBarEvent> {
|
|
14
|
+
/**
|
|
15
|
+
* 获取导航视图消息
|
|
16
|
+
*
|
|
17
|
+
* @author zk
|
|
18
|
+
* @date 2023-08-04 08:08:27
|
|
19
|
+
* @param {IData[]} data
|
|
20
|
+
* @return {*} {(INavViewMsg | undefined)}
|
|
21
|
+
* @memberof ITreeExpBarController
|
|
22
|
+
*/
|
|
23
|
+
getNavViewMsg(data: IData[]): INavViewMsg | undefined;
|
|
13
24
|
}
|
|
14
25
|
//# sourceMappingURL=i-tree-exp-bar.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-tree-exp-bar.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-tree-exp-bar.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"i-tree-exp-bar.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-tree-exp-bar.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,WAAW,qBACf,SAAQ,wBAAwB,CAC9B,WAAW,EACX,gBAAgB,EAChB,gBAAgB,CACjB;IACD;;;;;;;;OAQG;IACH,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,WAAW,GAAG,SAAS,CAAC;CACvD"}
|
|
@@ -11,16 +11,6 @@ import { IMDControlController } from './i-md-control.controller';
|
|
|
11
11
|
* @extends {IMDControlController}
|
|
12
12
|
*/
|
|
13
13
|
export interface ITreeController extends IMDControlController<IDETree, ITreeState, ITreeEvent> {
|
|
14
|
-
/**
|
|
15
|
-
* 设置展开节点
|
|
16
|
-
*
|
|
17
|
-
* @author zk
|
|
18
|
-
* @date 2023-07-10 08:07:36
|
|
19
|
-
* @param {string[]} nodeKey
|
|
20
|
-
* @param {boolean} isExpanded
|
|
21
|
-
* @memberof ITreeController
|
|
22
|
-
*/
|
|
23
|
-
setExpandedKeys(nodeKeys: string[], isReplace?: boolean): void;
|
|
24
14
|
/**
|
|
25
15
|
* 树节点点击事件
|
|
26
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-tree.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-tree.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,eACf,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;IAC7D
|
|
1
|
+
{"version":3,"file":"i-tree.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-tree.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,eACf,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;IAC7D;;;;;;OAMG;IACH,eAAe,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1D;;;;;;;;OAQG;IACH,UAAU,CACR,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -40,5 +40,20 @@ export interface IPickupViewPanelEvent extends IControlEvent {
|
|
|
40
40
|
data: IData[];
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* 选择视图初始化
|
|
45
|
+
*
|
|
46
|
+
* @author zk
|
|
47
|
+
* @date 2023-08-04 05:08:37
|
|
48
|
+
* @type {{
|
|
49
|
+
* event: EventBase;
|
|
50
|
+
* emitArgs: { data: IViewController };
|
|
51
|
+
* }}
|
|
52
|
+
* @memberof IPickupViewPanelEvent
|
|
53
|
+
*/
|
|
54
|
+
onPickUpViewMounted: {
|
|
55
|
+
event: EventBase;
|
|
56
|
+
emitArgs: undefined;
|
|
57
|
+
};
|
|
43
58
|
}
|
|
44
59
|
//# sourceMappingURL=i-pickup-view-panel.event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-pickup-view-panel.event.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/event/control/i-pickup-view-panel.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D;;;;;;;;OAQG;IACH,iBAAiB,EAAE;QACjB,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE;YAAE,IAAI,EAAE,KAAK,EAAE,CAAA;SAAE,CAAC;KAC7B,CAAC;IAEF;;;;;;;;;;OAUG;IACH,YAAY,EAAE;QACZ,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE;YAAE,IAAI,EAAE,KAAK,EAAE,CAAA;SAAE,CAAC;KAC7B,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"i-pickup-view-panel.event.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/event/control/i-pickup-view-panel.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D;;;;;;;;OAQG;IACH,iBAAiB,EAAE;QACjB,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE;YAAE,IAAI,EAAE,KAAK,EAAE,CAAA;SAAE,CAAC;KAC7B,CAAC;IAEF;;;;;;;;;;OAUG;IACH,YAAY,EAAE;QACZ,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE;YAAE,IAAI,EAAE,KAAK,EAAE,CAAA;SAAE,CAAC;KAC7B,CAAC;IAEF;;;;;;;;;;OAUG;IACH,mBAAmB,EAAE;QACnB,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE,SAAS,CAAC;KACrB,CAAC;CACH"}
|
|
@@ -10,6 +10,28 @@ export interface IGridState extends IMDControlState {
|
|
|
10
10
|
* @type {IGridRowState[]}
|
|
11
11
|
*/
|
|
12
12
|
rows: IGridRowState[];
|
|
13
|
+
/**
|
|
14
|
+
* 表格列状态数组
|
|
15
|
+
* 顺序就是列的排序
|
|
16
|
+
* @author lxm
|
|
17
|
+
* @date 2023-08-04 07:08:16
|
|
18
|
+
* @type {IColumnState[]}
|
|
19
|
+
*/
|
|
20
|
+
columnStates: IColumnState[];
|
|
21
|
+
/**
|
|
22
|
+
* 聚合计算的结果
|
|
23
|
+
* @author lxm
|
|
24
|
+
* @date 2023-08-07 04:09:08
|
|
25
|
+
* @type {IData}
|
|
26
|
+
*/
|
|
27
|
+
aggResult: IData;
|
|
28
|
+
/**
|
|
29
|
+
* 远程聚合计算结果
|
|
30
|
+
* @author lxm
|
|
31
|
+
* @date 2023-08-07 05:36:54
|
|
32
|
+
* @type {IData}
|
|
33
|
+
*/
|
|
34
|
+
remoteAggResult?: IData;
|
|
13
35
|
}
|
|
14
36
|
export interface IGridRowState {
|
|
15
37
|
/**
|
|
@@ -78,4 +100,34 @@ export interface IGridRowState {
|
|
|
78
100
|
*/
|
|
79
101
|
processing: boolean;
|
|
80
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* 表格列状态
|
|
105
|
+
* @author lxm
|
|
106
|
+
* @date 2023-08-04 07:19:02
|
|
107
|
+
* @export
|
|
108
|
+
* @interface IColumnState
|
|
109
|
+
*/
|
|
110
|
+
export interface IColumnState {
|
|
111
|
+
/**
|
|
112
|
+
* 列标识,是列模型的codeName
|
|
113
|
+
* @author lxm
|
|
114
|
+
* @date 2023-08-04 07:16:07
|
|
115
|
+
* @type {string}
|
|
116
|
+
*/
|
|
117
|
+
key: string;
|
|
118
|
+
/**
|
|
119
|
+
* 列的中文标题
|
|
120
|
+
* @author lxm
|
|
121
|
+
* @date 2023-08-04 07:17:57
|
|
122
|
+
* @type {string}
|
|
123
|
+
*/
|
|
124
|
+
caption: string;
|
|
125
|
+
/**
|
|
126
|
+
* 显示隐藏
|
|
127
|
+
* @author lxm
|
|
128
|
+
* @date 2023-08-04 07:18:47
|
|
129
|
+
* @type {boolean}
|
|
130
|
+
*/
|
|
131
|
+
hidden: boolean;
|
|
132
|
+
}
|
|
81
133
|
//# sourceMappingURL=i-grid.state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-grid.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-grid.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"i-grid.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-grid.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;;OAMG;IACH,IAAI,EAAE,aAAa,EAAE,CAAC;IAEtB;;;;;;OAMG;IACH,YAAY,EAAE,YAAY,EAAE,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,EAAE,KAAK,CAAC;IAEjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;;;;;OAMG;IACH,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAEvC;;;;;;OAMG;IACH,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAA;KAAE,CAAC;IAEpD;;;;;;OAMG;IACH,aAAa,EAAE;QACb,CAAC,CAAC,EAAE,MAAM,GAAG;YACX,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;YAClB,QAAQ,EAAE,OAAO,CAAC;SACnB,CAAC;KACH,CAAC;IAEF;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -17,14 +17,14 @@ export interface ITreeState extends IMDControlState {
|
|
|
17
17
|
*/
|
|
18
18
|
rootNode: ITreeNodeData;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 默认展开的节点集合
|
|
21
21
|
*
|
|
22
22
|
* @author zk
|
|
23
23
|
* @date 2023-07-10 08:07:25
|
|
24
24
|
* @type {string[]}
|
|
25
25
|
* @memberof ITreeState
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
defaultExpandedKeys: string[];
|
|
28
28
|
/**
|
|
29
29
|
* 右键上下文菜单状态
|
|
30
30
|
* @author lxm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-tree.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-tree.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;OAKG;IACH,QAAQ,EAAE,aAAa,CAAC;IAExB;;;;;;;OAOG;IACH,
|
|
1
|
+
{"version":3,"file":"i-tree.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-tree.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD;;;;;OAKG;IACH,QAAQ,EAAE,aAAa,CAAC;IAExB;;;;;;;OAOG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;;OAKG;IACH,YAAY,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAA;KAAE,CAAC;CACtD;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CAGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/model/layout/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGnE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,UAAU,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/model/layout/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGnE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,UAAU,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CA0BA;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,UAAU,GAAG,KAAK,CAuClE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,cAAc,GACxB,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,CA+BrC;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,MAAM,EAAE,CAIvE"}
|
|
@@ -14,7 +14,10 @@ export function calcLayoutHeightWidth(layoutPos) {
|
|
|
14
14
|
result.width = '100%';
|
|
15
15
|
}
|
|
16
16
|
else if (width && width > 0) {
|
|
17
|
-
if (
|
|
17
|
+
if (width > 0 && width <= 1) {
|
|
18
|
+
result.width = `${width * 100}%`;
|
|
19
|
+
}
|
|
20
|
+
else if (widthMode === 'PERCENTAGE') {
|
|
18
21
|
result.width = `${width}%`;
|
|
19
22
|
}
|
|
20
23
|
else {
|
|
@@ -25,7 +28,10 @@ export function calcLayoutHeightWidth(layoutPos) {
|
|
|
25
28
|
result.height = '100%';
|
|
26
29
|
}
|
|
27
30
|
else if (height && height > 0) {
|
|
28
|
-
if (
|
|
31
|
+
if (height > 0 && height <= 1) {
|
|
32
|
+
result.height = `${height * 100}%`;
|
|
33
|
+
}
|
|
34
|
+
else if (heightMode === 'PERCENTAGE') {
|
|
29
35
|
result.height = `${height}%`;
|
|
30
36
|
}
|
|
31
37
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/utils/open-redirect-view/open-redirect-view.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,KAAK,EAAO,GACjB,OAAO,CAAC,UAAU,CAAC,CAOrB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAmDf;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,KAAK,EAAO,GACjB,OAAO,CAAC,UAAU,CAAC,CAyGrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,GACV,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"open-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/utils/open-redirect-view/open-redirect-view.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,KAAK,EAAO,GACjB,OAAO,CAAC,UAAU,CAAC,CAOrB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAmDf;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,KAAK,EAAO,GACjB,OAAO,CAAC,UAAU,CAAC,CAyGrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,GACV,OAAO,CAAC,MAAM,CAAC,CA0CjB"}
|
|
@@ -166,7 +166,7 @@ export async function openDERedirectView(appView, context, params = {}, data = [
|
|
|
166
166
|
tag: name,
|
|
167
167
|
title: realTitle,
|
|
168
168
|
})));
|
|
169
|
-
throw new RuntimeModelError(appView, `未找到重定向标识[${rdTag}]或[${deRdTag}]
|
|
169
|
+
throw new RuntimeModelError(appView, `未找到重定向标识[${rdTag}]或[${deRdTag}]或工作流[${wfRdTag}]对应视图`);
|
|
170
170
|
}
|
|
171
171
|
return { ok: true, data: [] };
|
|
172
172
|
}
|
|
@@ -184,16 +184,6 @@ export async function openDERedirectView(appView, context, params = {}, data = [
|
|
|
184
184
|
*/
|
|
185
185
|
export async function calcDERdTag(entity, rdView, params, data) {
|
|
186
186
|
let rdTag = '';
|
|
187
|
-
// 重定向视图自定义类别属性
|
|
188
|
-
const typeFieldId = rdView.typeAppDEFieldId;
|
|
189
|
-
// 自定义重定向
|
|
190
|
-
if (typeFieldId) {
|
|
191
|
-
const { codeName } = findFieldById(entity, typeFieldId);
|
|
192
|
-
const value = data[codeName.toLowerCase()];
|
|
193
|
-
if (notNilEmpty(value)) {
|
|
194
|
-
return value;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
187
|
const defView = `${ibiz.env.isMob ? 'MOB' : ''}EDITVIEW`;
|
|
198
188
|
// 如果流程步骤存在,按照工作流优先
|
|
199
189
|
const srfWf = params.srfwf;
|
|
@@ -204,10 +194,22 @@ export async function calcDERdTag(entity, rdView, params, data) {
|
|
|
204
194
|
return `${defView}:${srfWf.toUpperCase()}`;
|
|
205
195
|
}
|
|
206
196
|
let typeValue = '';
|
|
207
|
-
//
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
197
|
+
// 重定向视图自定义类别属性
|
|
198
|
+
const typeFieldId = rdView.typeAppDEFieldId;
|
|
199
|
+
// 自定义重定向
|
|
200
|
+
if (typeFieldId) {
|
|
201
|
+
const { codeName } = findFieldById(entity, typeFieldId);
|
|
202
|
+
const value = data[codeName.toLowerCase()];
|
|
203
|
+
if (notNilEmpty(value)) {
|
|
204
|
+
typeValue = value;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
if (isNilOrEmpty(typeValue)) {
|
|
208
|
+
// 从索引属性获取重定向视图类型
|
|
209
|
+
if (entity.indexTypeAppDEFieldId) {
|
|
210
|
+
const { codeName } = findFieldById(entity, entity.indexTypeAppDEFieldId);
|
|
211
|
+
typeValue = data[codeName.toLowerCase()];
|
|
212
|
+
}
|
|
211
213
|
}
|
|
212
214
|
if (isNilOrEmpty(typeValue)) {
|
|
213
215
|
// 从多表单属性判断重定向视图类型
|
|
@@ -217,7 +219,7 @@ export async function calcDERdTag(entity, rdView, params, data) {
|
|
|
217
219
|
}
|
|
218
220
|
}
|
|
219
221
|
if (notNilEmpty(typeValue)) {
|
|
220
|
-
rdTag = `${defView}:${typeValue}`;
|
|
222
|
+
rdTag = `${defView}:${typeValue.toUpperCase()}`;
|
|
221
223
|
}
|
|
222
224
|
else {
|
|
223
225
|
rdTag = `${defView}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "控制器包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "chitanda",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ibiz-template/core": "^0.1.
|
|
32
|
+
"@ibiz-template/core": "^0.1.3",
|
|
33
33
|
"@ibiz/model-core": "^0.0.14",
|
|
34
34
|
"@types/path-browserify": "^1.0.0",
|
|
35
35
|
"@types/qs": "^6.9.7",
|
|
@@ -52,5 +52,6 @@
|
|
|
52
52
|
"qs": "^6.11.0",
|
|
53
53
|
"qx-util": "^0.4.8",
|
|
54
54
|
"ramda": "^0.29.0"
|
|
55
|
-
}
|
|
55
|
+
},
|
|
56
|
+
"gitHead": "1dd8759a918fa93fe6af75f7104a6911c46b186a"
|
|
56
57
|
}
|