@ibiz-template/runtime 0.7.40 → 0.7.41-alpha.1
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 +68 -9
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +1 -0
- package/out/controller/control/app-menu/app-menu.controller.d.ts.map +1 -1
- package/out/controller/control/app-menu/app-menu.controller.js +4 -1
- package/out/controller/control/gantt/gantt.controller.d.ts +10 -1
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +46 -1
- package/out/controller/control/grid/grid/grid-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid-column.controller.js +3 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +3 -2
- package/out/interface/api/common/global-config/i-api-global-app-menu-config.d.ts +7 -0
- package/out/interface/api/common/global-config/i-api-global-app-menu-config.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-chart.controller.d.ts +1 -0
- package/out/interface/api/controller/control/i-api-chart.controller.d.ts.map +1 -1
- package/out/service/service/util/util.service.d.ts.map +1 -1
- package/out/service/service/util/util.service.js +3 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +7 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -19178,7 +19178,8 @@ var GlobalConfig = class {
|
|
|
19178
19178
|
};
|
|
19179
19179
|
// 全局菜单配置
|
|
19180
19180
|
this.appMenu = {
|
|
19181
|
-
enableEcho: true
|
|
19181
|
+
enableEcho: true,
|
|
19182
|
+
echoMode: "VIEW"
|
|
19182
19183
|
};
|
|
19183
19184
|
// 全局代码表配置
|
|
19184
19185
|
this.codeList = {
|
|
@@ -32372,8 +32373,10 @@ var UtilService = class {
|
|
|
32372
32373
|
appDataEntityTag,
|
|
32373
32374
|
appId2
|
|
32374
32375
|
);
|
|
32376
|
+
const cloneContext = context.clone();
|
|
32377
|
+
cloneContext.srfappid = appId2;
|
|
32375
32378
|
const appDEService = await app.deService.getService(
|
|
32376
|
-
|
|
32379
|
+
cloneContext,
|
|
32377
32380
|
appDataEntityTag
|
|
32378
32381
|
);
|
|
32379
32382
|
if (appDEService) {
|
|
@@ -38446,11 +38449,14 @@ var AppMenuController = class extends ControlController {
|
|
|
38446
38449
|
toRouteDepth: this.routeDepth + 1
|
|
38447
38450
|
});
|
|
38448
38451
|
}
|
|
38452
|
+
const param = { ...this.params };
|
|
38453
|
+
if (ibiz.config.appMenu.echoMode === "MENUITEM")
|
|
38454
|
+
Object.assign(param, { srfmenuitem: id });
|
|
38449
38455
|
await ibiz.commands.execute(
|
|
38450
38456
|
AppFuncCommand.TAG,
|
|
38451
38457
|
menuItem.appFuncId,
|
|
38452
38458
|
tempContext,
|
|
38453
|
-
|
|
38459
|
+
param,
|
|
38454
38460
|
{ ...opts, view: this.view }
|
|
38455
38461
|
);
|
|
38456
38462
|
}
|
|
@@ -41156,6 +41162,13 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
41156
41162
|
data,
|
|
41157
41163
|
params
|
|
41158
41164
|
);
|
|
41165
|
+
const { xdataControlName = "" } = view.model;
|
|
41166
|
+
const xdataControl = view.getController(
|
|
41167
|
+
xdataControlName
|
|
41168
|
+
);
|
|
41169
|
+
if (xdataControl) {
|
|
41170
|
+
resultContext.srfnavctrlid = xdataControl.ctrlId;
|
|
41171
|
+
}
|
|
41159
41172
|
const options = this.handleViewOptionParams(resultParams);
|
|
41160
41173
|
const res = await ibiz.commands.execute(
|
|
41161
41174
|
OpenAppViewCommand.TAG,
|
|
@@ -54697,7 +54710,7 @@ var GridColumnController = class {
|
|
|
54697
54710
|
get deGridDataItem() {
|
|
54698
54711
|
var _a3;
|
|
54699
54712
|
return (_a3 = this.grid.model.degridDataItems) == null ? void 0 : _a3.find((item) => {
|
|
54700
|
-
return item.id === this.model.
|
|
54713
|
+
return item.id === this.model.dataItemName;
|
|
54701
54714
|
});
|
|
54702
54715
|
}
|
|
54703
54716
|
/**
|
|
@@ -54775,7 +54788,8 @@ var GridColumnController = class {
|
|
|
54775
54788
|
params: this.params,
|
|
54776
54789
|
controller: this,
|
|
54777
54790
|
ctrl: this.grid,
|
|
54778
|
-
view: this.grid.view
|
|
54791
|
+
view: this.grid.view,
|
|
54792
|
+
metadata: { column: this.model }
|
|
54779
54793
|
},
|
|
54780
54794
|
scriptCode,
|
|
54781
54795
|
{ isAsync: false }
|
|
@@ -54788,7 +54802,8 @@ var GridColumnController = class {
|
|
|
54788
54802
|
params: this.params,
|
|
54789
54803
|
controller: this,
|
|
54790
54804
|
ctrl: this.grid,
|
|
54791
|
-
view: this.grid.view
|
|
54805
|
+
view: this.grid.view,
|
|
54806
|
+
metadata: { column: this.model }
|
|
54792
54807
|
},
|
|
54793
54808
|
scriptCode
|
|
54794
54809
|
);
|
|
@@ -62854,13 +62869,14 @@ var TreeGridExController = class extends TreeController {
|
|
|
62854
62869
|
* @memberof TreeController
|
|
62855
62870
|
*/
|
|
62856
62871
|
async onTreeNodeClick(_nodeData, event) {
|
|
62857
|
-
var _a3;
|
|
62872
|
+
var _a3, _b2;
|
|
62858
62873
|
const nodeData = this.getNodeData(_nodeData._id);
|
|
62859
62874
|
if (!nodeData) {
|
|
62860
62875
|
return;
|
|
62861
62876
|
}
|
|
62862
62877
|
const clickActionItem = (_a3 = this.contextMenuInfos[nodeData._nodeId]) == null ? void 0 : _a3.clickTBUIActionItem;
|
|
62863
|
-
|
|
62878
|
+
const onlyOneActionItem = (_b2 = this.contextMenuInfos[nodeData._nodeId]) == null ? void 0 : _b2.onlyOneActionItem;
|
|
62879
|
+
if (clickActionItem && onlyOneActionItem) {
|
|
62864
62880
|
return this.doUIAction(
|
|
62865
62881
|
clickActionItem.uiactionId,
|
|
62866
62882
|
nodeData,
|
|
@@ -65030,7 +65046,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
65030
65046
|
/**
|
|
65031
65047
|
* 处理默认展开
|
|
65032
65048
|
*
|
|
65033
|
-
* @param {
|
|
65049
|
+
* @param {IGanttNodeData[]} data 子节点数据
|
|
65034
65050
|
* @return {*} {Promise<void>}
|
|
65035
65051
|
*/
|
|
65036
65052
|
async handleDefaultExpandNodes(data) {
|
|
@@ -65046,6 +65062,49 @@ var GanttController = class extends TreeGridExController {
|
|
|
65046
65062
|
}
|
|
65047
65063
|
}
|
|
65048
65064
|
}
|
|
65065
|
+
/**
|
|
65066
|
+
* 甘特图树节点点击事件
|
|
65067
|
+
*
|
|
65068
|
+
* @param {IGanttNodeData} _nodeData
|
|
65069
|
+
* @param {MouseEvent} event
|
|
65070
|
+
* @return {*} {Promise<void>}
|
|
65071
|
+
* @memberof GanttController
|
|
65072
|
+
*/
|
|
65073
|
+
async onTreeNodeClick(_nodeData, event) {
|
|
65074
|
+
var _a3, _b2;
|
|
65075
|
+
const nodeData = this.getNodeData(_nodeData._id);
|
|
65076
|
+
if (!nodeData)
|
|
65077
|
+
return;
|
|
65078
|
+
const clickActionItem = (_a3 = this.contextMenuInfos[nodeData._nodeId]) == null ? void 0 : _a3.clickTBUIActionItem;
|
|
65079
|
+
const onlyOneActionItem = (_b2 = this.contextMenuInfos[nodeData._nodeId]) == null ? void 0 : _b2.onlyOneActionItem;
|
|
65080
|
+
if (clickActionItem && onlyOneActionItem) {
|
|
65081
|
+
return this.doUIAction(
|
|
65082
|
+
clickActionItem.uiactionId,
|
|
65083
|
+
nodeData,
|
|
65084
|
+
event,
|
|
65085
|
+
clickActionItem.appId
|
|
65086
|
+
);
|
|
65087
|
+
}
|
|
65088
|
+
if (this.state.navigational) {
|
|
65089
|
+
const nodeModel = this.getNodeModel(nodeData._nodeId);
|
|
65090
|
+
if (!(nodeModel == null ? void 0 : nodeModel.navAppViewId))
|
|
65091
|
+
return;
|
|
65092
|
+
}
|
|
65093
|
+
if (this.state.singleSelect && !nodeData._disableSelect) {
|
|
65094
|
+
const { selectedData } = this.state;
|
|
65095
|
+
const filterArr = selectedData.filter((item) => item._id !== nodeData._id);
|
|
65096
|
+
if (filterArr.length === selectedData.length) {
|
|
65097
|
+
this.setSelection(
|
|
65098
|
+
this.state.singleSelect ? [nodeData] : selectedData.concat([nodeData])
|
|
65099
|
+
);
|
|
65100
|
+
} else {
|
|
65101
|
+
this.setSelection(filterArr);
|
|
65102
|
+
}
|
|
65103
|
+
}
|
|
65104
|
+
if (this.state.mdctrlActiveMode === 1) {
|
|
65105
|
+
await this.setActive(nodeData);
|
|
65106
|
+
}
|
|
65107
|
+
}
|
|
65049
65108
|
/**
|
|
65050
65109
|
* 打开编辑数据视图
|
|
65051
65110
|
*
|