@ibiz-template/runtime 0.7.41-alpha.0 → 0.7.41-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 (29) hide show
  1. package/dist/index.esm.js +82 -6
  2. package/dist/index.system.min.js +1 -1
  3. package/out/config/global-config.d.ts.map +1 -1
  4. package/out/config/global-config.js +1 -0
  5. package/out/controller/control/app-menu/app-menu.controller.d.ts.map +1 -1
  6. package/out/controller/control/app-menu/app-menu.controller.js +4 -1
  7. package/out/controller/control/form/form-detail/form-tab-panel/form-tab-panel.controller.d.ts +7 -0
  8. package/out/controller/control/form/form-detail/form-tab-panel/form-tab-panel.controller.d.ts.map +1 -1
  9. package/out/controller/control/form/form-detail/form-tab-panel/form-tab-panel.controller.js +9 -0
  10. package/out/controller/control/gantt/gantt.controller.d.ts +10 -1
  11. package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
  12. package/out/controller/control/gantt/gantt.controller.js +46 -1
  13. package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
  14. package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +3 -2
  15. package/out/interface/api/app/i-micro-app-config-center.d.ts +7 -0
  16. package/out/interface/api/app/i-micro-app-config-center.d.ts.map +1 -1
  17. package/out/interface/api/common/global-config/i-api-global-app-menu-config.d.ts +7 -0
  18. package/out/interface/api/common/global-config/i-api-global-app-menu-config.d.ts.map +1 -1
  19. package/out/interface/api/controller/control/i-api-chart.controller.d.ts +1 -0
  20. package/out/interface/api/controller/control/i-api-chart.controller.d.ts.map +1 -1
  21. package/out/interface/common/i-plugin-factory/i-plugin-factory.d.ts +10 -12
  22. package/out/interface/common/i-plugin-factory/i-plugin-factory.d.ts.map +1 -1
  23. package/out/micro-app/config-center.d.ts +7 -0
  24. package/out/micro-app/config-center.d.ts.map +1 -1
  25. package/out/micro-app/config-center.js +16 -0
  26. package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts +6 -0
  27. package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts.map +1 -1
  28. package/out/register/helper/common-register.js +1 -1
  29. package/package.json +5 -5
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 = {
@@ -22848,7 +22849,7 @@ async function getPluginRegisterKey(pluginId, appId2) {
22848
22849
  );
22849
22850
  return;
22850
22851
  }
22851
- await ibiz.plugin.loadPlugin(plugin);
22852
+ await ibiz.plugin.loadPlugin(plugin, appId2);
22852
22853
  return "".concat(plugin.pluginType, "_").concat(plugin.pluginCode);
22853
22854
  }
22854
22855
 
@@ -38448,11 +38449,14 @@ var AppMenuController = class extends ControlController {
38448
38449
  toRouteDepth: this.routeDepth + 1
38449
38450
  });
38450
38451
  }
38452
+ const param = { ...this.params };
38453
+ if (ibiz.config.appMenu.echoMode === "MENUITEM")
38454
+ Object.assign(param, { srfmenuitem: id });
38451
38455
  await ibiz.commands.execute(
38452
38456
  AppFuncCommand.TAG,
38453
38457
  menuItem.appFuncId,
38454
38458
  tempContext,
38455
- this.params,
38459
+ param,
38456
38460
  { ...opts, view: this.view }
38457
38461
  );
38458
38462
  }
@@ -53342,10 +53346,19 @@ var FormTabPanelController = class extends FormDetailController {
53342
53346
  * @author lxm
53343
53347
  * @date 2024-01-17 02:59:38
53344
53348
  * @param {string} tabId
53349
+ * @deprecated
53345
53350
  */
53346
53351
  onTabChange(tabId) {
53347
53352
  this.state.activeTab = tabId;
53348
53353
  }
53354
+ /**
53355
+ * @description 切换激活分页
53356
+ * @param {string} tabId 分页id
53357
+ * @memberof FormTabPanelController
53358
+ */
53359
+ selectTab(tabId) {
53360
+ this.state.activeTab = tabId;
53361
+ }
53349
53362
  /**
53350
53363
  * 根据id去表单控制器里取得计数器对象
53351
53364
  * @return {*}
@@ -62865,13 +62878,14 @@ var TreeGridExController = class extends TreeController {
62865
62878
  * @memberof TreeController
62866
62879
  */
62867
62880
  async onTreeNodeClick(_nodeData, event) {
62868
- var _a3;
62881
+ var _a3, _b2;
62869
62882
  const nodeData = this.getNodeData(_nodeData._id);
62870
62883
  if (!nodeData) {
62871
62884
  return;
62872
62885
  }
62873
62886
  const clickActionItem = (_a3 = this.contextMenuInfos[nodeData._nodeId]) == null ? void 0 : _a3.clickTBUIActionItem;
62874
- if (clickActionItem) {
62887
+ const onlyOneActionItem = (_b2 = this.contextMenuInfos[nodeData._nodeId]) == null ? void 0 : _b2.onlyOneActionItem;
62888
+ if (clickActionItem && onlyOneActionItem) {
62875
62889
  return this.doUIAction(
62876
62890
  clickActionItem.uiactionId,
62877
62891
  nodeData,
@@ -65041,7 +65055,7 @@ var GanttController = class extends TreeGridExController {
65041
65055
  /**
65042
65056
  * 处理默认展开
65043
65057
  *
65044
- * @param {ITreeNodeData[]} data 子节点数据
65058
+ * @param {IGanttNodeData[]} data 子节点数据
65045
65059
  * @return {*} {Promise<void>}
65046
65060
  */
65047
65061
  async handleDefaultExpandNodes(data) {
@@ -65057,6 +65071,49 @@ var GanttController = class extends TreeGridExController {
65057
65071
  }
65058
65072
  }
65059
65073
  }
65074
+ /**
65075
+ * 甘特图树节点点击事件
65076
+ *
65077
+ * @param {IGanttNodeData} _nodeData
65078
+ * @param {MouseEvent} event
65079
+ * @return {*} {Promise<void>}
65080
+ * @memberof GanttController
65081
+ */
65082
+ async onTreeNodeClick(_nodeData, event) {
65083
+ var _a3, _b2;
65084
+ const nodeData = this.getNodeData(_nodeData._id);
65085
+ if (!nodeData)
65086
+ return;
65087
+ const clickActionItem = (_a3 = this.contextMenuInfos[nodeData._nodeId]) == null ? void 0 : _a3.clickTBUIActionItem;
65088
+ const onlyOneActionItem = (_b2 = this.contextMenuInfos[nodeData._nodeId]) == null ? void 0 : _b2.onlyOneActionItem;
65089
+ if (clickActionItem && onlyOneActionItem) {
65090
+ return this.doUIAction(
65091
+ clickActionItem.uiactionId,
65092
+ nodeData,
65093
+ event,
65094
+ clickActionItem.appId
65095
+ );
65096
+ }
65097
+ if (this.state.navigational) {
65098
+ const nodeModel = this.getNodeModel(nodeData._nodeId);
65099
+ if (!(nodeModel == null ? void 0 : nodeModel.navAppViewId))
65100
+ return;
65101
+ }
65102
+ if (this.state.singleSelect && !nodeData._disableSelect) {
65103
+ const { selectedData } = this.state;
65104
+ const filterArr = selectedData.filter((item) => item._id !== nodeData._id);
65105
+ if (filterArr.length === selectedData.length) {
65106
+ this.setSelection(
65107
+ this.state.singleSelect ? [nodeData] : selectedData.concat([nodeData])
65108
+ );
65109
+ } else {
65110
+ this.setSelection(filterArr);
65111
+ }
65112
+ }
65113
+ if (this.state.mdctrlActiveMode === 1) {
65114
+ await this.setActive(nodeData);
65115
+ }
65116
+ }
65060
65117
  /**
65061
65118
  * 打开编辑数据视图
65062
65119
  *
@@ -74604,6 +74661,25 @@ var MicroAppConfigCenter = class {
74604
74661
  getMicroApp(name2) {
74605
74662
  return this.apps.get(name2);
74606
74663
  }
74664
+ /**
74665
+ * @description 获取插件基础路径
74666
+ * @param {string} name
74667
+ * @returns {*} {string}
74668
+ * @memberof MicroAppConfigCenter
74669
+ */
74670
+ getPluginBaseUrl(name2) {
74671
+ if (ibiz.env.runContainer === "FULLCODE" && name2 !== ibiz.env.appId) {
74672
+ const microAppConfig = this.getMicroApp(name2);
74673
+ if (microAppConfig && microAppConfig.pluginBaseUrl) {
74674
+ const microAppPluginBaseUrl = new URL(
74675
+ microAppConfig.pluginBaseUrl,
74676
+ microAppConfig.entry
74677
+ ).href;
74678
+ return "".concat(microAppPluginBaseUrl);
74679
+ }
74680
+ }
74681
+ return ibiz.env.pluginBaseUrl;
74682
+ }
74607
74683
  };
74608
74684
 
74609
74685
  // src/app-hub.ts