@ibiz-template/runtime 0.3.1 → 0.3.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.
Files changed (93) hide show
  1. package/dist/index.esm.js +603 -278
  2. package/dist/index.system.min.js +2 -2
  3. package/dist/index.system.min.js.map +1 -1
  4. package/out/app-hub.d.ts +5 -5
  5. package/out/app-hub.d.ts.map +1 -1
  6. package/out/app-hub.js +2 -2
  7. package/out/config/global-config.d.ts.map +1 -1
  8. package/out/config/global-config.js +1 -0
  9. package/out/constant/sys-uiaction-tag.d.ts +4 -0
  10. package/out/constant/sys-uiaction-tag.d.ts.map +1 -1
  11. package/out/constant/sys-uiaction-tag.js +4 -0
  12. package/out/controller/common/control/control.controller.js +2 -2
  13. package/out/controller/control/app-menu/app-menu.controller.d.ts +2 -3
  14. package/out/controller/control/app-menu/app-menu.controller.d.ts.map +1 -1
  15. package/out/controller/control/form/edit-form/edit-form.service.js +1 -1
  16. package/out/controller/control/form/form-detail/form-item/form-item.controller.js +1 -1
  17. package/out/controller/control/form/search-form/search-form.controller.d.ts +9 -0
  18. package/out/controller/control/form/search-form/search-form.controller.d.ts.map +1 -1
  19. package/out/controller/control/form/search-form/search-form.controller.js +59 -0
  20. package/out/controller/control/grid/grid/grid.controller.d.ts +31 -2
  21. package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
  22. package/out/controller/control/grid/grid/grid.controller.js +83 -21
  23. package/out/controller/control/panel/panel/panel.controller.d.ts +4 -1
  24. package/out/controller/control/panel/panel/panel.controller.d.ts.map +1 -1
  25. package/out/controller/control/panel/panel/panel.controller.js +17 -16
  26. package/out/controller/utils/data-file-util/data-file-util.d.ts +3 -3
  27. package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
  28. package/out/controller/utils/data-file-util/data-file-util.js +10 -4
  29. package/out/engine/md-view.engine.d.ts.map +1 -1
  30. package/out/engine/md-view.engine.js +8 -0
  31. package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts +5 -5
  32. package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts.map +1 -1
  33. package/out/interface/common/i-app-service/i-app-service.d.ts +53 -0
  34. package/out/interface/common/i-app-service/i-app-service.d.ts.map +1 -1
  35. package/out/interface/common/i-global-config/i-global-grid-config.d.ts +9 -0
  36. package/out/interface/common/i-global-config/i-global-grid-config.d.ts.map +1 -1
  37. package/out/interface/controller/controller/control/i-grid.controller.d.ts +27 -1
  38. package/out/interface/controller/controller/control/i-grid.controller.d.ts.map +1 -1
  39. package/out/interface/controller/controller/control/i-panel.controller.d.ts +8 -0
  40. package/out/interface/controller/controller/control/i-panel.controller.d.ts.map +1 -1
  41. package/out/interface/service/service/i-app-de.service.d.ts +66 -0
  42. package/out/interface/service/service/i-app-de.service.d.ts.map +1 -1
  43. package/out/model/utils/util.d.ts +5 -5
  44. package/out/model/utils/util.d.ts.map +1 -1
  45. package/out/model/utils/util.js +16 -8
  46. package/out/service/dto/method.dto.d.ts +2 -2
  47. package/out/service/dto/method.dto.d.ts.map +1 -1
  48. package/out/service/dto/method.dto.js +3 -1
  49. package/out/service/service/config/config.service.d.ts.map +1 -1
  50. package/out/service/service/control/control.service.d.ts +2 -2
  51. package/out/service/service/control/control.service.d.ts.map +1 -1
  52. package/out/service/service/entity/de.service.d.ts +6 -0
  53. package/out/service/service/entity/de.service.d.ts.map +1 -1
  54. package/out/service/service/entity/de.service.js +18 -0
  55. package/out/service/service/entity/method/method.d.ts +2 -3
  56. package/out/service/service/entity/method/method.d.ts.map +1 -1
  57. package/out/service/service/work-flow/work-flow.service.d.ts.map +1 -1
  58. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
  59. package/out/service/vo/tree-node-data/tree-data-set-node-data.js +5 -0
  60. package/out/ui-action/provider/front-ui-action-provider.d.ts +24 -0
  61. package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
  62. package/out/ui-action/provider/front-ui-action-provider.js +128 -1
  63. package/out/ui-action/provider/sys-ui-action-provider.d.ts.map +1 -1
  64. package/out/ui-action/provider/sys-ui-action-provider.js +2 -0
  65. package/package.json +3 -3
  66. package/src/app-hub.ts +5 -5
  67. package/src/config/global-config.ts +1 -0
  68. package/src/constant/sys-uiaction-tag.ts +4 -0
  69. package/src/controller/common/control/control.controller.ts +2 -2
  70. package/src/controller/control/app-menu/app-menu.controller.ts +2 -2
  71. package/src/controller/control/form/edit-form/edit-form.service.ts +1 -1
  72. package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +1 -1
  73. package/src/controller/control/form/search-form/search-form.controller.ts +64 -0
  74. package/src/controller/control/grid/grid/grid.controller.ts +121 -27
  75. package/src/controller/control/panel/panel/panel.controller.ts +15 -0
  76. package/src/controller/utils/data-file-util/data-file-util.ts +11 -3
  77. package/src/engine/md-view.engine.ts +8 -0
  78. package/src/interface/common/i-app-hub-service/i-app-hub-service.ts +5 -5
  79. package/src/interface/common/i-app-service/i-app-service.ts +71 -0
  80. package/src/interface/common/i-global-config/i-global-grid-config.ts +10 -0
  81. package/src/interface/controller/controller/control/i-grid.controller.ts +30 -1
  82. package/src/interface/controller/controller/control/i-panel.controller.ts +9 -0
  83. package/src/interface/service/service/i-app-de.service.ts +96 -0
  84. package/src/model/utils/util.ts +18 -8
  85. package/src/service/dto/method.dto.ts +5 -3
  86. package/src/service/service/config/config.service.ts +2 -3
  87. package/src/service/service/control/control.service.ts +2 -2
  88. package/src/service/service/entity/de.service.ts +48 -0
  89. package/src/service/service/entity/method/method.ts +2 -3
  90. package/src/service/service/work-flow/work-flow.service.ts +2 -3
  91. package/src/service/vo/tree-node-data/tree-data-set-node-data.ts +7 -1
  92. package/src/ui-action/provider/front-ui-action-provider.ts +153 -1
  93. package/src/ui-action/provider/sys-ui-action-provider.ts +2 -0
package/dist/index.esm.js CHANGED
@@ -9,7 +9,8 @@ var GlobalConfig = class {
9
9
  // 全局表格配置
10
10
  this.grid = {
11
11
  editShowMode: "row",
12
- editSaveMode: "cell-blur"
12
+ editSaveMode: "cell-blur",
13
+ overflowMode: "wrap"
13
14
  };
14
15
  // 全局菜单配置
15
16
  this.appMenu = {
@@ -617,11 +618,12 @@ function calcNavParams(model, originParams) {
617
618
  }
618
619
 
619
620
  // src/utils/open-redirect-view/open-redirect-view.ts
620
- import { RuntimeError, RuntimeModelError } from "@ibiz-template/core";
621
+ import { RuntimeError, RuntimeModelError as RuntimeModelError2 } from "@ibiz-template/core";
621
622
  import { isNilOrEmpty as isNilOrEmpty2, notNilEmpty as notNilEmpty3 } from "qx-util";
622
623
  import qs from "qs";
623
624
 
624
625
  // src/model/utils/util.ts
626
+ import { RuntimeModelError } from "@ibiz-template/core";
625
627
  function findModelChild(models, id) {
626
628
  if (models && id) {
627
629
  const model = models.find((item) => {
@@ -667,10 +669,10 @@ function parseUserParams(userParams) {
667
669
  const splitArr = key.split(".");
668
670
  switch (splitArr[0]) {
669
671
  case "SRFNAVPARAM":
670
- Object.assign(navigateContexts, { [splitArr[1]]: param });
672
+ Object.assign(navigateParams, { [splitArr[1]]: param });
671
673
  break;
672
674
  case "SRFNAVCTX":
673
- Object.assign(navigateParams, { [splitArr[1]]: param });
675
+ Object.assign(navigateContexts, { [splitArr[1]]: param });
674
676
  break;
675
677
  default:
676
678
  Object.assign(other, { key: param });
@@ -681,9 +683,18 @@ function parseUserParams(userParams) {
681
683
  }
682
684
  return { navigateContexts, navigateParams, other };
683
685
  }
684
- function getPFPlugin(app, id) {
685
- var _a;
686
- const plugin = (_a = app.appPFPluginRefs) == null ? void 0 : _a.find((item) => item.id === id);
686
+ function getPFPlugin(id, appId) {
687
+ const app = ibiz.hub.getApp(appId);
688
+ if (!app) {
689
+ throw new RuntimeModelError(app, "\u672A\u627E\u5230\u5E94\u7528");
690
+ }
691
+ const { model } = app;
692
+ if (!model.appPFPluginRefs) {
693
+ throw new RuntimeModelError(model, "\u5E94\u7528\u672A\u914D\u7F6E\u63D2\u4EF6");
694
+ }
695
+ const plugin = model.appPFPluginRefs.find(
696
+ (item) => item.pluginCode.toLowerCase() === id.toLowerCase()
697
+ );
687
698
  if (!plugin) {
688
699
  throw new Error("\u672A\u627E\u5230\u63D2\u4EF6".concat(id));
689
700
  }
@@ -1120,7 +1131,7 @@ async function openDERedirectView(appView, context, params = {}, opts = {}) {
1120
1131
  return result;
1121
1132
  }
1122
1133
  } else {
1123
- throw new RuntimeModelError(refView, "\u672A\u914D\u7F6E\u5B9E\u9645\u5F15\u7528\u89C6\u56FE");
1134
+ throw new RuntimeModelError2(refView, "\u672A\u914D\u7F6E\u5B9E\u9645\u5F15\u7528\u89C6\u56FE");
1124
1135
  }
1125
1136
  } else {
1126
1137
  ibiz.log.error(
@@ -1131,7 +1142,7 @@ async function openDERedirectView(appView, context, params = {}, opts = {}) {
1131
1142
  title: realTitle
1132
1143
  }))
1133
1144
  );
1134
- throw new RuntimeModelError(
1145
+ throw new RuntimeModelError2(
1135
1146
  appView,
1136
1147
  "\u672A\u627E\u5230\u91CD\u5B9A\u5411\u6807\u8BC6[".concat(rdTag, "]\u6216[").concat(deRdTag, "]\u6216\u5DE5\u4F5C\u6D41[").concat(wfRdTag, "]\u5BF9\u5E94\u89C6\u56FE")
1137
1148
  );
@@ -1803,7 +1814,7 @@ function checkFieldScriptRule(value, data, scriptCode, errorInfo, primaryModel)
1803
1814
  }
1804
1815
 
1805
1816
  // src/utils/verify/form-dynamic-logic.ts
1806
- import { ModelError, RuntimeModelError as RuntimeModelError2 } from "@ibiz-template/core";
1817
+ import { ModelError, RuntimeModelError as RuntimeModelError3 } from "@ibiz-template/core";
1807
1818
  function isGroupLogic(logic) {
1808
1819
  return logic.logicType === "GROUP";
1809
1820
  }
@@ -1814,7 +1825,7 @@ function verifyFormGroupLogic(data, logic) {
1814
1825
  if (isGroupLogic(logic)) {
1815
1826
  const children = logic.defdlogics;
1816
1827
  if (!children || children.length === 0) {
1817
- throw new RuntimeModelError2(logic, "\u53D1\u73B0\u7A7A\u903B\u8F91\u7EC4\uFF0C\u903B\u8F91\u65E0\u6CD5\u6B63\u5E38\u6267\u884C\uFF01");
1828
+ throw new RuntimeModelError3(logic, "\u53D1\u73B0\u7A7A\u903B\u8F91\u7EC4\uFF0C\u903B\u8F91\u65E0\u6CD5\u6B63\u5E38\u6267\u884C\uFF01");
1818
1829
  }
1819
1830
  let result = true;
1820
1831
  if (logic.groupOP === "AND") {
@@ -1843,7 +1854,7 @@ function verifyFormGroupLogic(data, logic) {
1843
1854
  }
1844
1855
 
1845
1856
  // src/utils/verify/panel-dynamic-logic.ts
1846
- import { ModelError as ModelError2, RuntimeModelError as RuntimeModelError3 } from "@ibiz-template/core";
1857
+ import { ModelError as ModelError2, RuntimeModelError as RuntimeModelError4 } from "@ibiz-template/core";
1847
1858
  function isGroupLogic2(logic) {
1848
1859
  return logic.logicType === "GROUP";
1849
1860
  }
@@ -1854,7 +1865,7 @@ function verifyPanelGroupLogic(data, logic) {
1854
1865
  if (isGroupLogic2(logic)) {
1855
1866
  const children = logic.panelItemLogics;
1856
1867
  if (!children || children.length === 0) {
1857
- throw new RuntimeModelError3(logic, "\u53D1\u73B0\u7A7A\u903B\u8F91\u7EC4\uFF0C\u903B\u8F91\u65E0\u6CD5\u6B63\u5E38\u6267\u884C\uFF01");
1868
+ throw new RuntimeModelError4(logic, "\u53D1\u73B0\u7A7A\u903B\u8F91\u7EC4\uFF0C\u903B\u8F91\u65E0\u6CD5\u6B63\u5E38\u6267\u884C\uFF01");
1858
1869
  }
1859
1870
  let result = true;
1860
1871
  if (logic.groupOP === "AND") {
@@ -2269,6 +2280,7 @@ var SysUIActionTag = /* @__PURE__ */ ((SysUIActionTag2) => {
2269
2280
  SysUIActionTag2["CANCEL"] = "Cancel";
2270
2281
  SysUIActionTag2["OK"] = "Ok";
2271
2282
  SysUIActionTag2["SEARCH"] = "Search";
2283
+ SysUIActionTag2["RESET"] = "Reset";
2272
2284
  SysUIActionTag2["FINISH"] = "Finish";
2273
2285
  SysUIActionTag2["NEXT_STEP"] = "NextStep";
2274
2286
  SysUIActionTag2["PREV_STEP"] = "PrevStep";
@@ -3581,7 +3593,7 @@ var AppCounter = class {
3581
3593
  };
3582
3594
 
3583
3595
  // src/service/utils/app-counter/app-de-counter.ts
3584
- import { RuntimeModelError as RuntimeModelError4 } from "@ibiz-template/core";
3596
+ import { RuntimeModelError as RuntimeModelError5 } from "@ibiz-template/core";
3585
3597
  var AppDECounter = class extends AppCounter {
3586
3598
  /**
3587
3599
  * 计数器初始化
@@ -3595,7 +3607,7 @@ var AppDECounter = class extends AppCounter {
3595
3607
  this.appDataEntityId = this.model.appDataEntityId;
3596
3608
  const action = this.model.getAppDEActionId;
3597
3609
  if (!action) {
3598
- throw new RuntimeModelError4(this.model, "\u672A\u627E\u5230\u83B7\u53D6\u8BA1\u6570\u5668\u884C\u4E3A!");
3610
+ throw new RuntimeModelError5(this.model, "\u672A\u627E\u5230\u83B7\u53D6\u8BA1\u6570\u5668\u884C\u4E3A!");
3599
3611
  }
3600
3612
  this.action = action;
3601
3613
  await super.init(context, params);
@@ -3713,7 +3725,7 @@ var DEDQCondUtil = class {
3713
3725
  DEDQCondUtil.map = /* @__PURE__ */ new WeakMap();
3714
3726
 
3715
3727
  // src/service/utils/dynamic-code-list/dynamic-code-list.ts
3716
- import { ModelError as ModelError4, RuntimeModelError as RuntimeModelError5 } from "@ibiz-template/core";
3728
+ import { ModelError as ModelError4, RuntimeModelError as RuntimeModelError6 } from "@ibiz-template/core";
3717
3729
  import { isNil as isNil3 } from "ramda";
3718
3730
  var DynamicCodeListCache = class {
3719
3731
  constructor(codeList) {
@@ -3852,10 +3864,10 @@ var DynamicCodeListCache = class {
3852
3864
  return Object.freeze(res2.data.items);
3853
3865
  }
3854
3866
  if (!appDataEntityId) {
3855
- throw new RuntimeModelError5(this.codeList, "\u672A\u914D\u7F6E\u5E94\u7528\u5B9E\u4F53");
3867
+ throw new RuntimeModelError6(this.codeList, "\u672A\u914D\u7F6E\u5E94\u7528\u5B9E\u4F53");
3856
3868
  }
3857
3869
  if (!appDEDataSetId) {
3858
- throw new RuntimeModelError5(this.codeList, "\u672A\u914D\u7F6E\u6570\u636E\u96C6");
3870
+ throw new RuntimeModelError6(this.codeList, "\u672A\u914D\u7F6E\u6570\u636E\u96C6");
3859
3871
  }
3860
3872
  const res = await app.deService.exec(
3861
3873
  appDataEntityId,
@@ -4667,7 +4679,7 @@ var ConfigService = class {
4667
4679
  };
4668
4680
 
4669
4681
  // src/service/service/counter/counter.service.ts
4670
- import { RuntimeModelError as RuntimeModelError6 } from "@ibiz-template/core";
4682
+ import { RuntimeModelError as RuntimeModelError7 } from "@ibiz-template/core";
4671
4683
  var CounterService = class {
4672
4684
  /**
4673
4685
  * 获取计数器
@@ -4706,7 +4718,7 @@ var CounterService = class {
4706
4718
  static async getCounterByRef(model, context, params) {
4707
4719
  const { appCounter } = model;
4708
4720
  if (!appCounter) {
4709
- throw new RuntimeModelError6(model, "\u672A\u914D\u7F6E\u5E94\u7528\u8BA1\u6570\u5668!");
4721
+ throw new RuntimeModelError7(model, "\u672A\u914D\u7F6E\u5E94\u7528\u8BA1\u6570\u5668!");
4710
4722
  }
4711
4723
  return this.getCounter(appCounter, context, params);
4712
4724
  }
@@ -5092,12 +5104,12 @@ var FileService = class {
5092
5104
  import {
5093
5105
  HttpResponse as HttpResponse3,
5094
5106
  RuntimeError as RuntimeError14,
5095
- RuntimeModelError as RuntimeModelError18
5107
+ RuntimeModelError as RuntimeModelError19
5096
5108
  } from "@ibiz-template/core";
5097
5109
  import { isArray as isArray6, isNil as isNil8 } from "lodash-es";
5098
5110
 
5099
5111
  // src/service/service/entity/method/method.ts
5100
- import { RuntimeModelError as RuntimeModelError7 } from "@ibiz-template/core";
5112
+ import { RuntimeModelError as RuntimeModelError8 } from "@ibiz-template/core";
5101
5113
  import { isArray as isArray3 } from "lodash-es";
5102
5114
 
5103
5115
  // src/service/app-data-entity/app-data-entity.ts
@@ -5349,7 +5361,9 @@ var MethodDto = class _MethodDto {
5349
5361
  const field = this.fields[i];
5350
5362
  const key = field.codeName.toLowerCase();
5351
5363
  switch (field.type) {
5352
- case "SIMPLE": {
5364
+ case "SIMPLE":
5365
+ case "SIMPLES":
5366
+ case "DTO": {
5353
5367
  break;
5354
5368
  }
5355
5369
  case "DTOS": {
@@ -5617,17 +5631,17 @@ var Method = class {
5617
5631
  break;
5618
5632
  default:
5619
5633
  if (requestMethod) {
5620
- throw new RuntimeModelError7(
5634
+ throw new RuntimeModelError8(
5621
5635
  this.method,
5622
5636
  "\u672A\u652F\u6301\u7684\u8BF7\u6C42\u65B9\u5F0F: ".concat(requestMethod)
5623
5637
  );
5624
5638
  } else {
5625
- throw new RuntimeModelError7(this.method, "\u672A\u914D\u7F6E\u8BF7\u6C42\u65B9\u5F0F");
5639
+ throw new RuntimeModelError8(this.method, "\u672A\u914D\u7F6E\u8BF7\u6C42\u65B9\u5F0F");
5626
5640
  }
5627
5641
  }
5628
5642
  return res;
5629
5643
  }
5630
- throw new RuntimeModelError7(this.method, "\u672A\u652F\u6301\u7684\u884C\u4E3A\u7C7B\u578B[".concat(actionType, "]"));
5644
+ throw new RuntimeModelError8(this.method, "\u672A\u652F\u6301\u7684\u884C\u4E3A\u7C7B\u578B[".concat(actionType, "]"));
5631
5645
  }
5632
5646
  mergeRequestPath(path2, methodName) {
5633
5647
  return "".concat(path2, "/").concat(methodName);
@@ -5688,7 +5702,7 @@ import { isArray as isArray5 } from "lodash-es";
5688
5702
  import { clone as clone9 } from "ramda";
5689
5703
 
5690
5704
  // src/de-logic/de-logic.ts
5691
- import { ModelError as ModelError11, RuntimeModelError as RuntimeModelError17 } from "@ibiz-template/core";
5705
+ import { ModelError as ModelError11, RuntimeModelError as RuntimeModelError18 } from "@ibiz-template/core";
5692
5706
 
5693
5707
  // src/de-logic/de-logic-context.ts
5694
5708
  import { isArray as isArray4 } from "lodash-es";
@@ -5820,17 +5834,17 @@ var DELogicContext = class {
5820
5834
  };
5821
5835
 
5822
5836
  // src/de-logic/de-logic-node/de-action-node/de-action-node.ts
5823
- import { RuntimeModelError as RuntimeModelError10 } from "@ibiz-template/core";
5837
+ import { RuntimeModelError as RuntimeModelError11 } from "@ibiz-template/core";
5824
5838
 
5825
5839
  // src/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.ts
5826
- import { RuntimeModelError as RuntimeModelError9 } from "@ibiz-template/core";
5840
+ import { RuntimeModelError as RuntimeModelError10 } from "@ibiz-template/core";
5827
5841
 
5828
5842
  // src/de-logic/de-logic-link/de-logic-link-cond/de-logic-link-cond.ts
5829
5843
  var DELogicLinkCond = class {
5830
5844
  };
5831
5845
 
5832
5846
  // src/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.ts
5833
- import { ModelError as ModelError6, RuntimeModelError as RuntimeModelError8 } from "@ibiz-template/core";
5847
+ import { ModelError as ModelError6, RuntimeModelError as RuntimeModelError9 } from "@ibiz-template/core";
5834
5848
  var DELogicLinkSingleCond = class extends DELogicLinkCond {
5835
5849
  constructor(model) {
5836
5850
  super();
@@ -5877,7 +5891,7 @@ var DELogicLinkSingleCond = class extends DELogicLinkCond {
5877
5891
  switch (this.type) {
5878
5892
  case "ENTITYFIELD": {
5879
5893
  if (!this.value) {
5880
- throw new RuntimeModelError8(
5894
+ throw new RuntimeModelError9(
5881
5895
  this.model,
5882
5896
  "\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
5883
5897
  );
@@ -5887,7 +5901,7 @@ var DELogicLinkSingleCond = class extends DELogicLinkCond {
5887
5901
  }
5888
5902
  case "SRCENTITYFIELD": {
5889
5903
  if (!this.value) {
5890
- throw new RuntimeModelError8(
5904
+ throw new RuntimeModelError9(
5891
5905
  this.model,
5892
5906
  "\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6E90\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
5893
5907
  );
@@ -5950,7 +5964,7 @@ var DELogicLinkGroupCond = class _DELogicLinkGroupCond extends DELogicLinkCond {
5950
5964
  test(ctx, context, data) {
5951
5965
  let bol = true;
5952
5966
  if (this.conds.length === 0) {
5953
- throw new RuntimeModelError9(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
5967
+ throw new RuntimeModelError10(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
5954
5968
  }
5955
5969
  for (let i = 0; i < this.conds.length; i++) {
5956
5970
  const cond = this.conds[i];
@@ -6053,10 +6067,10 @@ var DEActionNode = class extends DELogicNode {
6053
6067
  retDELogicParamId
6054
6068
  } = this.model;
6055
6069
  if (!dstAppDataEntityId) {
6056
- throw new RuntimeModelError10(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
6070
+ throw new RuntimeModelError11(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
6057
6071
  }
6058
6072
  if (!dstAppDEActionId) {
6059
- throw new RuntimeModelError10(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
6073
+ throw new RuntimeModelError11(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
6060
6074
  }
6061
6075
  const requestData = ctx.params[dstDELogicParamId];
6062
6076
  const app = ibiz.hub.getApp(ctx.context.srfappid);
@@ -6340,12 +6354,12 @@ var DataSetNode = class extends DELogicNode {
6340
6354
  };
6341
6355
 
6342
6356
  // src/de-logic/de-logic-node/bind-param-node/bind-param-node.ts
6343
- import { RuntimeModelError as RuntimeModelError11 } from "@ibiz-template/core";
6357
+ import { RuntimeModelError as RuntimeModelError12 } from "@ibiz-template/core";
6344
6358
  var BindParamNode = class extends DELogicNode {
6345
6359
  async exec(ctx) {
6346
6360
  const { dstDELogicParamId, srcDELogicParamId } = this.model;
6347
6361
  if (!dstDELogicParamId || !srcDELogicParamId) {
6348
- throw new RuntimeModelError11(
6362
+ throw new RuntimeModelError12(
6349
6363
  this.model,
6350
6364
  "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
6351
6365
  );
@@ -6356,37 +6370,37 @@ var BindParamNode = class extends DELogicNode {
6356
6370
  };
6357
6371
 
6358
6372
  // src/de-logic/de-logic-node/reset-param-node/reset-param-node.ts
6359
- import { RuntimeModelError as RuntimeModelError12 } from "@ibiz-template/core";
6373
+ import { RuntimeModelError as RuntimeModelError13 } from "@ibiz-template/core";
6360
6374
  var ResetParamNode = class extends DELogicNode {
6361
6375
  async exec(ctx) {
6362
6376
  const { dstDELogicParamId } = this.model;
6363
6377
  if (!dstDELogicParamId) {
6364
- throw new RuntimeModelError12(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
6378
+ throw new RuntimeModelError13(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
6365
6379
  }
6366
6380
  ctx.resetParam(dstDELogicParamId);
6367
6381
  }
6368
6382
  };
6369
6383
 
6370
6384
  // src/de-logic/de-logic-node/renew-param-node/renew-param-node.ts
6371
- import { RuntimeModelError as RuntimeModelError13 } from "@ibiz-template/core";
6385
+ import { RuntimeModelError as RuntimeModelError14 } from "@ibiz-template/core";
6372
6386
  var RenewParamNode = class extends DELogicNode {
6373
6387
  async exec(ctx) {
6374
6388
  const { dstDELogicParamId } = this.model;
6375
6389
  if (!dstDELogicParamId) {
6376
- throw new RuntimeModelError13(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
6390
+ throw new RuntimeModelError14(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
6377
6391
  }
6378
6392
  ctx.renewParam(dstDELogicParamId);
6379
6393
  }
6380
6394
  };
6381
6395
 
6382
6396
  // src/de-logic/de-logic-node/copy-param-node/copy-param-node.ts
6383
- import { RuntimeModelError as RuntimeModelError14 } from "@ibiz-template/core";
6397
+ import { RuntimeModelError as RuntimeModelError15 } from "@ibiz-template/core";
6384
6398
  import { clone as clone7 } from "ramda";
6385
6399
  var CopyParamNode = class extends DELogicNode {
6386
6400
  async exec(ctx) {
6387
6401
  const { dstDELogicParamId, srcDELogicParamId } = this.model;
6388
6402
  if (!dstDELogicParamId || !srcDELogicParamId) {
6389
- throw new RuntimeModelError14(
6403
+ throw new RuntimeModelError15(
6390
6404
  this.model,
6391
6405
  "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
6392
6406
  );
@@ -6397,12 +6411,12 @@ var CopyParamNode = class extends DELogicNode {
6397
6411
  };
6398
6412
 
6399
6413
  // src/de-logic/de-logic-node/sort-param-node/sort-param-node.ts
6400
- import { RuntimeModelError as RuntimeModelError15 } from "@ibiz-template/core";
6414
+ import { RuntimeModelError as RuntimeModelError16 } from "@ibiz-template/core";
6401
6415
  var SortParamNode = class extends DELogicNode {
6402
6416
  async exec(ctx) {
6403
6417
  const { dstDELogicParamId, dstSortDir, dstFieldName } = this.model;
6404
6418
  if (!dstDELogicParamId || !dstFieldName) {
6405
- throw new RuntimeModelError15(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u76EE\u6807\u5C5E\u6027\u914D\u7F6E");
6419
+ throw new RuntimeModelError16(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u76EE\u6807\u5C5E\u6027\u914D\u7F6E");
6406
6420
  }
6407
6421
  const key = dstFieldName.toLowerCase();
6408
6422
  const arr = ctx.params[dstDELogicParamId];
@@ -6413,7 +6427,7 @@ var SortParamNode = class extends DELogicNode {
6413
6427
  };
6414
6428
 
6415
6429
  // src/de-logic/de-logic-node/append-param-node/append-param-node.ts
6416
- import { RuntimeModelError as RuntimeModelError16 } from "@ibiz-template/core";
6430
+ import { RuntimeModelError as RuntimeModelError17 } from "@ibiz-template/core";
6417
6431
  var AppendParamNode = class extends DELogicNode {
6418
6432
  async exec(ctx) {
6419
6433
  const {
@@ -6424,7 +6438,7 @@ var AppendParamNode = class extends DELogicNode {
6424
6438
  srcSize
6425
6439
  } = this.model;
6426
6440
  if (!dstDELogicParamId || !srcDELogicParamId) {
6427
- throw new RuntimeModelError16(
6441
+ throw new RuntimeModelError17(
6428
6442
  this.model,
6429
6443
  "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
6430
6444
  );
@@ -6573,7 +6587,7 @@ var DELogic = class {
6573
6587
  var _a, _b;
6574
6588
  if (model.customCode) {
6575
6589
  if (!model.scriptCode) {
6576
- throw new RuntimeModelError17(model, "\u811A\u672C\u4EE3\u7801\u6A21\u5F0F\u6CA1\u6709\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
6590
+ throw new RuntimeModelError18(model, "\u811A\u672C\u4EE3\u7801\u6A21\u5F0F\u6CA1\u6709\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
6577
6591
  }
6578
6592
  this.scriptFn = ScriptFactory.createScriptFn([], model.scriptCode, {
6579
6593
  isAsync: true
@@ -6581,7 +6595,7 @@ var DELogic = class {
6581
6595
  return;
6582
6596
  }
6583
6597
  if (!((_a = model.delogicNodes) == null ? void 0 : _a.length)) {
6584
- throw new RuntimeModelError17(model, "\u5B9E\u4F53\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
6598
+ throw new RuntimeModelError18(model, "\u5B9E\u4F53\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
6585
6599
  }
6586
6600
  model.delogicNodes.forEach((node) => {
6587
6601
  const { logicNodeType } = node;
@@ -6680,7 +6694,7 @@ var DELogic = class {
6680
6694
  const start = this.nodes.get(startDELogicNodeId);
6681
6695
  await this.deepExec(start, ctx);
6682
6696
  } else {
6683
- throw new RuntimeModelError17(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
6697
+ throw new RuntimeModelError18(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
6684
6698
  }
6685
6699
  if (ctx.isEndNode) {
6686
6700
  return ctx.result;
@@ -6817,7 +6831,7 @@ var DEActionMethod = class extends Method {
6817
6831
  if (this.method.actionType === "DELOGIC") {
6818
6832
  const deLogic = findDELogic(this.method.appDELogicId, this.entity);
6819
6833
  if (!deLogic) {
6820
- throw new RuntimeModelError18(this.method, "\u7F3A\u5C11\u5B9E\u4F53\u5904\u7406\u903B\u8F91");
6834
+ throw new RuntimeModelError19(this.method, "\u7F3A\u5C11\u5B9E\u4F53\u5904\u7406\u903B\u8F91");
6821
6835
  }
6822
6836
  return execDELogicAction(deLogic, context, data, params);
6823
6837
  }
@@ -7135,7 +7149,7 @@ var DEActionMethod = class extends Method {
7135
7149
  import {
7136
7150
  HttpResponse as HttpResponse4,
7137
7151
  ModelError as ModelError12,
7138
- RuntimeModelError as RuntimeModelError19
7152
+ RuntimeModelError as RuntimeModelError20
7139
7153
  } from "@ibiz-template/core";
7140
7154
  import { ascSort, descSort } from "qx-util";
7141
7155
  import { clone as clone10, equals as equals2, isEmpty as isEmpty7, isNil as isNil9, where as where2 } from "ramda";
@@ -7296,7 +7310,7 @@ var FetchMethod = class extends Method {
7296
7310
  async fetchCodeListSet(context, params) {
7297
7311
  const { appCodeListId } = this.method;
7298
7312
  if (!appCodeListId) {
7299
- throw new RuntimeModelError19(this.method, "\u6CA1\u6709\u6307\u5B9A\u6570\u636E\u6765\u6E90\u4EE3\u7801\u8868");
7313
+ throw new RuntimeModelError20(this.method, "\u6CA1\u6709\u6307\u5B9A\u6570\u636E\u6765\u6E90\u4EE3\u7801\u8868");
7300
7314
  }
7301
7315
  const codeItems = await this.app.codeList.get(
7302
7316
  appCodeListId,
@@ -7411,6 +7425,24 @@ var DEService = class {
7411
7425
  }
7412
7426
  throw new RuntimeError15("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
7413
7427
  }
7428
+ getDraft(context, params, params2) {
7429
+ return this.exec("GetDraft", context, params, params2);
7430
+ }
7431
+ create(context, params, params2) {
7432
+ return this.exec("Create", context, params, params2);
7433
+ }
7434
+ get(context, params, params2) {
7435
+ return this.exec("Get", context, params, params2);
7436
+ }
7437
+ update(context, params, params2) {
7438
+ return this.exec("Update", context, params, params2);
7439
+ }
7440
+ remove(context, params, params2) {
7441
+ return this.exec("Remove", context, params, params2);
7442
+ }
7443
+ fetchDefault(context, params, params2) {
7444
+ return this.exec("FetchDefault", context, params, params2);
7445
+ }
7414
7446
  /**
7415
7447
  * 执行服务方法 ac 模式
7416
7448
  *
@@ -8283,6 +8315,10 @@ var TreeDataSetNodeData = class extends TreeNodeData {
8283
8315
  this.srfmajortext = this.deData.srfmajortext;
8284
8316
  this.icon = this.calcIcon(model);
8285
8317
  this.textHtml = this.calcTextHtml(model);
8318
+ if (model.leafFlagAppDEFieldId) {
8319
+ const value = data[model.leafFlagAppDEFieldId];
8320
+ this.leaf = [1, "1", true, "true"].includes(value);
8321
+ }
8286
8322
  }
8287
8323
  calcIcon(model) {
8288
8324
  const icon = super.calcIcon(model) || {};
@@ -9117,7 +9153,7 @@ function installCommand() {
9117
9153
  }
9118
9154
 
9119
9155
  // src/app-hub.ts
9120
- import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
9156
+ import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
9121
9157
 
9122
9158
  // src/application.ts
9123
9159
  import { Net, getToken } from "@ibiz-template/core";
@@ -10257,10 +10293,13 @@ function listenAsyncAction(id) {
10257
10293
  ibiz.mc.command.asyncAction.on(callBack);
10258
10294
  });
10259
10295
  }
10260
- async function asyncImportData(file, appDataEntity) {
10296
+ async function asyncImportData(file, appDataEntity, dataImport) {
10261
10297
  const data = new FormData();
10262
10298
  data.append("file", file);
10263
- const url = "".concat(appDataEntity.codeName2.toLowerCase(), "/").concat(asyncImportUrl);
10299
+ let url = "".concat(appDataEntity.codeName2.toLowerCase(), "/").concat(asyncImportUrl);
10300
+ if (dataImport == null ? void 0 : dataImport.codeName) {
10301
+ url += "?srfimporttag=".concat(dataImport.codeName);
10302
+ }
10264
10303
  const res = await ibiz.net.request(url, {
10265
10304
  method: "post",
10266
10305
  data,
@@ -10272,10 +10311,13 @@ async function asyncImportData(file, appDataEntity) {
10272
10311
  "OBJECTCREATED"
10273
10312
  );
10274
10313
  }
10275
- async function importData(file, appDataEntity) {
10314
+ async function importData(file, appDataEntity, dataImport) {
10276
10315
  const data = new FormData();
10277
10316
  data.append("file", file);
10278
- const url = "".concat(appDataEntity.codeName2.toLowerCase(), "/").concat(importUrl);
10317
+ let url = "".concat(appDataEntity.codeName2.toLowerCase(), "/").concat(importUrl);
10318
+ if (dataImport == null ? void 0 : dataImport.codeName) {
10319
+ url += "?srfimporttag=".concat(dataImport.codeName);
10320
+ }
10279
10321
  const res = await ibiz.net.request(url, {
10280
10322
  method: "post",
10281
10323
  data,
@@ -10515,7 +10557,7 @@ var BaseController = class {
10515
10557
  };
10516
10558
 
10517
10559
  // src/controller/utils/view-msg/view-msg-controller.ts
10518
- import { RuntimeError as RuntimeError27, RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
10560
+ import { RuntimeError as RuntimeError27, RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
10519
10561
  import { isNil as isNil17, mergeRight as mergeRight2 } from "ramda";
10520
10562
  var ViewMsgController = class _ViewMsgController {
10521
10563
  constructor(msgGroupId) {
@@ -10580,7 +10622,7 @@ var ViewMsgController = class _ViewMsgController {
10580
10622
  static async fetchDataSet(msgModel, context, params) {
10581
10623
  const { appDataEntityId, appDEDataSetId } = msgModel;
10582
10624
  if (!appDEDataSetId) {
10583
- throw new RuntimeModelError20(msgModel, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6570\u636E\u96C6");
10625
+ throw new RuntimeModelError21(msgModel, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6570\u636E\u96C6");
10584
10626
  }
10585
10627
  const res = await ibiz.hub.getApp(context.srfappid).deService.exec(appDataEntityId, appDEDataSetId, context, params);
10586
10628
  if (res.data.length) {
@@ -10674,7 +10716,7 @@ var ViewMsgController = class _ViewMsgController {
10674
10716
  msgPosAppDEFieldId
10675
10717
  } = msgModel;
10676
10718
  if (!appDataEntityId) {
10677
- throw new RuntimeModelError20(msgModel, "\u672A\u914D\u7F6E\u5E94\u7528\u5B9E\u4F53");
10719
+ throw new RuntimeModelError21(msgModel, "\u672A\u914D\u7F6E\u5E94\u7528\u5B9E\u4F53");
10678
10720
  }
10679
10721
  const entity = await ibiz.hub.getAppDataEntity(
10680
10722
  appDataEntityId,
@@ -11222,7 +11264,7 @@ var EditorController = class {
11222
11264
  };
11223
11265
 
11224
11266
  // src/controller/common/editor/code-list-editor.controller.ts
11225
- import { RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
11267
+ import { RuntimeModelError as RuntimeModelError22 } from "@ibiz-template/core";
11226
11268
  var CodeListEditorController = class extends EditorController {
11227
11269
  /**
11228
11270
  * 加载代码表数据
@@ -11246,7 +11288,7 @@ var CodeListEditorController = class extends EditorController {
11246
11288
  );
11247
11289
  return dataItems;
11248
11290
  }
11249
- throw new RuntimeModelError21(
11291
+ throw new RuntimeModelError22(
11250
11292
  this.model,
11251
11293
  "\u7F16\u8F91\u5668\u7C7B\u578B[".concat(this.model.editorType, "]\uFF0C\u672A\u914D\u7F6E\u4EE3\u7801\u8868")
11252
11294
  );
@@ -11255,7 +11297,7 @@ var CodeListEditorController = class extends EditorController {
11255
11297
 
11256
11298
  // src/controller/common/control/control.controller.ts
11257
11299
  import { IBizContext as IBizContext3, IBizParams, NoticeError } from "@ibiz-template/core";
11258
- import { isNil as isNil19 } from "ramda";
11300
+ import { clone as clone14, isNil as isNil19 } from "ramda";
11259
11301
  import { notNilEmpty as notNilEmpty7 } from "qx-util";
11260
11302
  var ControlController = class extends BaseController {
11261
11303
  /**
@@ -11295,7 +11337,7 @@ var ControlController = class extends BaseController {
11295
11337
  "".concat(model.controlType, "_DEFAULT")
11296
11338
  );
11297
11339
  if (panelModel) {
11298
- this.controlPanel = panelModel;
11340
+ this.controlPanel = clone14(panelModel);
11299
11341
  }
11300
11342
  this.updateContextParams({});
11301
11343
  }
@@ -11917,7 +11959,7 @@ var MDControlController = class extends ControlController {
11917
11959
  import {
11918
11960
  findRecursiveChild,
11919
11961
  RuntimeError as RuntimeError30,
11920
- RuntimeModelError as RuntimeModelError22
11962
+ RuntimeModelError as RuntimeModelError23
11921
11963
  } from "@ibiz-template/core";
11922
11964
  var AppMenuController = class extends ControlController {
11923
11965
  initState() {
@@ -11963,7 +12005,7 @@ var AppMenuController = class extends ControlController {
11963
12005
  event
11964
12006
  });
11965
12007
  if (!menuItem.appFuncId) {
11966
- throw new RuntimeModelError22(menuItem, "\u6CA1\u6709\u914D\u7F6E\u5E94\u7528\u529F\u80FD");
12008
+ throw new RuntimeModelError23(menuItem, "\u6CA1\u6709\u914D\u7F6E\u5E94\u7528\u529F\u80FD");
11967
12009
  }
11968
12010
  const tempContext = this.context.clone();
11969
12011
  if (this.routeDepth && useDepth) {
@@ -12047,7 +12089,7 @@ var AppMenuController = class extends ControlController {
12047
12089
  import {
12048
12090
  findRecursiveChild as findRecursiveChild2,
12049
12091
  RuntimeError as RuntimeError31,
12050
- RuntimeModelError as RuntimeModelError23
12092
+ RuntimeModelError as RuntimeModelError24
12051
12093
  } from "@ibiz-template/core";
12052
12094
  var AppMenuIconViewController = class extends AppMenuController {
12053
12095
  async onClickMenuItem(id, event) {
@@ -12063,7 +12105,7 @@ var AppMenuIconViewController = class extends AppMenuController {
12063
12105
  event
12064
12106
  });
12065
12107
  if (!menuItem.appFuncId) {
12066
- throw new RuntimeModelError23(menuItem, "\u6CA1\u6709\u914D\u7F6E\u5E94\u7528\u529F\u80FD");
12108
+ throw new RuntimeModelError24(menuItem, "\u6CA1\u6709\u914D\u7F6E\u5E94\u7528\u529F\u80FD");
12067
12109
  }
12068
12110
  const tempContext = this.context.clone();
12069
12111
  if (this.routeDepth === 1) {
@@ -12335,17 +12377,17 @@ import { mergeDeepRight as mergeDeepRight3 } from "ramda";
12335
12377
  import { RuntimeError as RuntimeError33 } from "@ibiz-template/core";
12336
12378
 
12337
12379
  // src/controller/control/chart/generator/line-series-generator.ts
12338
- import { RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
12380
+ import { RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
12339
12381
 
12340
12382
  // src/controller/control/chart/generator/base-series-generator.ts
12341
- import { plus, RuntimeModelError as RuntimeModelError24, toNumberOrNil } from "@ibiz-template/core";
12383
+ import { plus, RuntimeModelError as RuntimeModelError25, toNumberOrNil } from "@ibiz-template/core";
12342
12384
  import dayjs3 from "dayjs";
12343
12385
  import minMax from "dayjs/plugin/minMax";
12344
12386
  import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
12345
12387
  import quarterOfYear from "dayjs/plugin/quarterOfYear";
12346
12388
  import weekOfYear from "dayjs/plugin/weekOfYear";
12347
12389
  import isoWeek from "dayjs/plugin/isoWeek";
12348
- import { clone as clone14, isNil as isNil20, mergeDeepRight } from "ramda";
12390
+ import { clone as clone15, isNil as isNil20, mergeDeepRight } from "ramda";
12349
12391
  dayjs3.extend(minMax);
12350
12392
  dayjs3.extend(isSameOrBefore);
12351
12393
  dayjs3.extend(quarterOfYear);
@@ -12381,10 +12423,10 @@ var BaseSeriesGenerator = class {
12381
12423
  this.chartGenerator = chartGenerator;
12382
12424
  const { chartSeriesEncode, caption, id, userParam } = model;
12383
12425
  if (!model.catalogField) {
12384
- throw new RuntimeModelError24(model, "\u7F3A\u5C11\u5206\u7C7B\u5C5E\u6027\u914D\u7F6E");
12426
+ throw new RuntimeModelError25(model, "\u7F3A\u5C11\u5206\u7C7B\u5C5E\u6027\u914D\u7F6E");
12385
12427
  }
12386
12428
  if (!model.valueField) {
12387
- throw new RuntimeModelError24(model, "\u7F3A\u5C11\u503C\u5C5E\u6027\u914D\u7F6E");
12429
+ throw new RuntimeModelError25(model, "\u7F3A\u5C11\u503C\u5C5E\u6027\u914D\u7F6E");
12388
12430
  }
12389
12431
  this.catalogField = chartGenerator.getFieldKey(model.catalogField);
12390
12432
  this.valueField = chartGenerator.getFieldKey(model.valueField);
@@ -12571,7 +12613,7 @@ var BaseSeriesGenerator = class {
12571
12613
  dataPreprocess(data) {
12572
12614
  const tempData = [];
12573
12615
  data.forEach((singleData) => {
12574
- tempData.push(clone14(singleData));
12616
+ tempData.push(clone15(singleData));
12575
12617
  });
12576
12618
  const { groupMode } = this.model;
12577
12619
  if (groupMode) {
@@ -12765,10 +12807,10 @@ var BaseSeriesGenerator = class {
12765
12807
  var LineSeriesGenerator = class extends BaseSeriesGenerator {
12766
12808
  calcStaticOptions() {
12767
12809
  if (this.xAxisIndex === void 0) {
12768
- throw new RuntimeModelError25(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
12810
+ throw new RuntimeModelError26(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
12769
12811
  }
12770
12812
  if (this.yAxisIndex === void 0) {
12771
- throw new RuntimeModelError25(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
12813
+ throw new RuntimeModelError26(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
12772
12814
  }
12773
12815
  const options = super.calcStaticOptions();
12774
12816
  options.xAxisIndex = this.xAxisIndex;
@@ -12784,14 +12826,14 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
12784
12826
  };
12785
12827
 
12786
12828
  // src/controller/control/chart/generator/bar-series-generator.ts
12787
- import { RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
12829
+ import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
12788
12830
  var BarSeriesGenerator = class extends BaseSeriesGenerator {
12789
12831
  calcStaticOptions() {
12790
12832
  if (this.xAxisIndex === void 0) {
12791
- throw new RuntimeModelError26(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
12833
+ throw new RuntimeModelError27(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
12792
12834
  }
12793
12835
  if (this.yAxisIndex === void 0) {
12794
- throw new RuntimeModelError26(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
12836
+ throw new RuntimeModelError27(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
12795
12837
  }
12796
12838
  const options = super.calcStaticOptions();
12797
12839
  options.xAxisIndex = this.xAxisIndex;
@@ -12852,14 +12894,14 @@ var PieSeriesGenerator = class extends BaseSeriesGenerator {
12852
12894
  };
12853
12895
 
12854
12896
  // src/controller/control/chart/generator/scatter-series-generator.ts
12855
- import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
12897
+ import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
12856
12898
  var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
12857
12899
  calcStaticOptions() {
12858
12900
  if (this.xAxisIndex === void 0) {
12859
- throw new RuntimeModelError27(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
12901
+ throw new RuntimeModelError28(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
12860
12902
  }
12861
12903
  if (this.yAxisIndex === void 0) {
12862
- throw new RuntimeModelError27(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
12904
+ throw new RuntimeModelError28(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
12863
12905
  }
12864
12906
  const options = super.calcStaticOptions();
12865
12907
  options.xAxisIndex = this.xAxisIndex;
@@ -13438,20 +13480,20 @@ var CaptionBarController = class extends ControlController {
13438
13480
  };
13439
13481
 
13440
13482
  // src/controller/control/toolbar/toolbar.controllerr.ts
13441
- import { recursiveIterate, RuntimeError as RuntimeError42 } from "@ibiz-template/core";
13483
+ import { recursiveIterate, RuntimeError as RuntimeError43 } from "@ibiz-template/core";
13442
13484
 
13443
13485
  // src/ui-action/provider/backend-ui-action-provider.ts
13444
- import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
13486
+ import { RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
13445
13487
  import { isArray as isArray9 } from "qx-util";
13446
13488
 
13447
13489
  // src/ui-action/provider/ui-action-provider-base.ts
13448
- import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
13490
+ import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
13449
13491
 
13450
13492
  // src/ui-logic/index.ts
13451
13493
  import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
13452
13494
 
13453
13495
  // src/ui-logic/ui-logic.ts
13454
- import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
13496
+ import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
13455
13497
 
13456
13498
  // src/ui-logic/ui-logic-context.ts
13457
13499
  var UILogicContext = class {
@@ -13586,24 +13628,24 @@ var UILogicContext = class {
13586
13628
  };
13587
13629
 
13588
13630
  // src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
13589
- import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
13631
+ import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
13590
13632
 
13591
13633
  // src/ui-logic/ui-logic-link/ui-logic-link.ts
13592
13634
  import { ModelError as ModelError19 } from "@ibiz-template/core";
13593
13635
 
13594
13636
  // src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
13595
- import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
13637
+ import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
13596
13638
 
13597
13639
  // src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
13598
13640
  var UILogicLinkCond = class {
13599
13641
  };
13600
13642
 
13601
13643
  // src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
13602
- import { ModelError as ModelError18, RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
13644
+ import { ModelError as ModelError18, RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
13603
13645
 
13604
13646
  // src/ui-logic/utils/handle-src-val.ts
13605
13647
  import { ModelError as ModelError17 } from "@ibiz-template/core";
13606
- import { clone as clone15 } from "ramda";
13648
+ import { clone as clone16 } from "ramda";
13607
13649
  function handleSrcVal2(ctx, srcValParams) {
13608
13650
  const { srcDEUILogicParamId, srcFieldName, srcValue } = srcValParams;
13609
13651
  const srcValueType = srcValParams.srcValueType || "SRCDLPARAM";
@@ -13630,7 +13672,7 @@ function handleSrcVal2(ctx, srcValParams) {
13630
13672
  value = ctx.parameters.context;
13631
13673
  break;
13632
13674
  case "ENVPARAM":
13633
- value = clone15(ibiz.env);
13675
+ value = clone16(ibiz.env);
13634
13676
  break;
13635
13677
  default:
13636
13678
  throw new ModelError17(srcValParams, "\u6682\u672A\u652F\u6301\u6E90\u503C\u7C7B\u578B".concat(srcValueType));
@@ -13695,7 +13737,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
13695
13737
  switch (this.type) {
13696
13738
  case "ENTITYFIELD": {
13697
13739
  if (!this.value) {
13698
- throw new RuntimeModelError28(
13740
+ throw new RuntimeModelError29(
13699
13741
  this.model,
13700
13742
  "\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
13701
13743
  );
@@ -13705,7 +13747,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
13705
13747
  }
13706
13748
  case "SRCENTITYFIELD": {
13707
13749
  if (!this.value) {
13708
- throw new RuntimeModelError28(
13750
+ throw new RuntimeModelError29(
13709
13751
  this.model,
13710
13752
  "\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6E90\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
13711
13753
  );
@@ -13771,7 +13813,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
13771
13813
  test(ctx, context, data) {
13772
13814
  let bol = true;
13773
13815
  if (this.conds.length === 0) {
13774
- throw new RuntimeModelError29(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
13816
+ throw new RuntimeModelError30(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
13775
13817
  }
13776
13818
  for (let i = 0; i < this.conds.length; i++) {
13777
13819
  const cond = this.conds[i];
@@ -13897,10 +13939,10 @@ var DEActionNode2 = class extends UILogicNode {
13897
13939
  retDEUILogicParamId
13898
13940
  } = this.model;
13899
13941
  if (!dstAppDataEntityId) {
13900
- throw new RuntimeModelError30(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
13942
+ throw new RuntimeModelError31(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
13901
13943
  }
13902
13944
  if (!dstAppDEActionId) {
13903
- throw new RuntimeModelError30(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
13945
+ throw new RuntimeModelError31(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
13904
13946
  }
13905
13947
  const requestData = ctx.params[dstDEUILogicParamId];
13906
13948
  const app = ibiz.hub.getApp(ctx.context.srfappid);
@@ -13918,13 +13960,13 @@ var DEActionNode2 = class extends UILogicNode {
13918
13960
  };
13919
13961
 
13920
13962
  // src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
13921
- import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
13963
+ import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
13922
13964
  var DEUIActionNode = class extends UILogicNode {
13923
13965
  async exec(ctx) {
13924
13966
  const { dstAppDEUIActionId, dstDEUILogicParamId } = this.model;
13925
13967
  const { data, parameters } = ctx;
13926
13968
  if (!dstAppDEUIActionId) {
13927
- throw new RuntimeModelError31(this.model, "\u672A\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
13969
+ throw new RuntimeModelError32(this.model, "\u672A\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
13928
13970
  }
13929
13971
  let actionData = [data];
13930
13972
  if (dstDEUILogicParamId) {
@@ -13985,7 +14027,7 @@ var EndNode2 = class extends UILogicNode {
13985
14027
 
13986
14028
  // src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
13987
14029
  import { ModelError as ModelError21, RuntimeError as RuntimeError35 } from "@ibiz-template/core";
13988
- import { clone as clone16 } from "ramda";
14030
+ import { clone as clone17 } from "ramda";
13989
14031
  var PrepareJSParamNode = class extends UILogicNode {
13990
14032
  async exec(ctx) {
13991
14033
  const nodeParams = this.model.deuilogicNodeParams;
@@ -14074,7 +14116,7 @@ var PrepareJSParamNode = class extends UILogicNode {
14074
14116
  copyParam(nodeParam, ctx) {
14075
14117
  const { dstDEUILogicParamId } = nodeParam;
14076
14118
  const srcVal = handleSrcVal2(ctx, nodeParam);
14077
- ctx.params[dstDEUILogicParamId] = clone16(srcVal);
14119
+ ctx.params[dstDEUILogicParamId] = clone17(srcVal);
14078
14120
  }
14079
14121
  /**
14080
14122
  * 绑定参数
@@ -14151,20 +14193,20 @@ var PrepareJSParamNode = class extends UILogicNode {
14151
14193
  };
14152
14194
 
14153
14195
  // src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
14154
- import { RuntimeError as RuntimeError36, RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
14196
+ import { RuntimeError as RuntimeError36, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
14155
14197
  import { isFunction } from "lodash-es";
14156
14198
  var ViewCtrlInvokeNode = class extends UILogicNode {
14157
14199
  async exec(ctx) {
14158
14200
  ctx.isEndNode = true;
14159
14201
  const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
14160
14202
  if (!invokeCtrlId) {
14161
- throw new RuntimeModelError32(this.model, "\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u5BF9\u8C61");
14203
+ throw new RuntimeModelError33(this.model, "\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u5BF9\u8C61");
14162
14204
  }
14163
14205
  if (!invokeParamId) {
14164
- throw new RuntimeModelError32(this.model, "\u6CA1\u6709\u914D\u7F6E\u64CD\u4F5C\u53C2\u6570");
14206
+ throw new RuntimeModelError33(this.model, "\u6CA1\u6709\u914D\u7F6E\u64CD\u4F5C\u53C2\u6570");
14165
14207
  }
14166
14208
  if (!invokeMethod) {
14167
- throw new RuntimeModelError32(this.model, "\u6CA1\u6709\u914D\u7F6E\u8C03\u7528\u65B9\u6CD5");
14209
+ throw new RuntimeModelError33(this.model, "\u6CA1\u6709\u914D\u7F6E\u8C03\u7528\u65B9\u6CD5");
14168
14210
  }
14169
14211
  const invokeParam = ctx.params[invokeParamId];
14170
14212
  if (!invokeParam) {
@@ -14182,12 +14224,12 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
14182
14224
  };
14183
14225
 
14184
14226
  // src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts
14185
- import { RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
14227
+ import { RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
14186
14228
  var BindParamNode2 = class extends UILogicNode {
14187
14229
  async exec(ctx) {
14188
14230
  const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
14189
14231
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
14190
- throw new RuntimeModelError33(
14232
+ throw new RuntimeModelError34(
14191
14233
  this.model,
14192
14234
  "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
14193
14235
  );
@@ -14198,7 +14240,7 @@ var BindParamNode2 = class extends UILogicNode {
14198
14240
  };
14199
14241
 
14200
14242
  // src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts
14201
- import { ModelError as ModelError22, RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
14243
+ import { ModelError as ModelError22, RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
14202
14244
  var MsgBoxNode = class extends UILogicNode {
14203
14245
  constructor() {
14204
14246
  super(...arguments);
@@ -14212,10 +14254,10 @@ var MsgBoxNode = class extends UILogicNode {
14212
14254
  async exec(ctx) {
14213
14255
  const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
14214
14256
  if (!msgBoxType) {
14215
- throw new RuntimeModelError34(this.model, "\u7F3A\u5C11\u6D88\u606F\u7C7B\u578B\u7684\u914D\u7F6E");
14257
+ throw new RuntimeModelError35(this.model, "\u7F3A\u5C11\u6D88\u606F\u7C7B\u578B\u7684\u914D\u7F6E");
14216
14258
  }
14217
14259
  if (!buttonsType) {
14218
- throw new RuntimeModelError34(this.model, "\u7F3A\u5C11\u6309\u94AE\u7C7B\u578B\u7684\u914D\u7F6E");
14260
+ throw new RuntimeModelError35(this.model, "\u7F3A\u5C11\u6309\u94AE\u7C7B\u578B\u7684\u914D\u7F6E");
14219
14261
  }
14220
14262
  let { title } = this.model;
14221
14263
  let { message } = this.model;
@@ -14275,12 +14317,12 @@ var PFPluginNode = class extends UILogicNode {
14275
14317
  };
14276
14318
 
14277
14319
  // src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
14278
- import { RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
14320
+ import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
14279
14321
  var DebugParamNode = class extends UILogicNode {
14280
14322
  async exec(ctx) {
14281
14323
  const { dstDEUILogicParamId, name } = this.model;
14282
14324
  if (!dstDEUILogicParamId) {
14283
- throw new RuntimeModelError35(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
14325
+ throw new RuntimeModelError36(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
14284
14326
  }
14285
14327
  const param = ctx.params[dstDEUILogicParamId];
14286
14328
  console.log("\u903B\u8F91\u8282\u70B9".concat(name, "\u64CD\u4F5C\u53C2\u6570\u503C:"), param);
@@ -14288,36 +14330,36 @@ var DebugParamNode = class extends UILogicNode {
14288
14330
  };
14289
14331
 
14290
14332
  // src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts
14291
- import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
14333
+ import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
14292
14334
  var ResetParamNode2 = class extends UILogicNode {
14293
14335
  async exec(ctx) {
14294
14336
  const { dstDEUILogicParamId } = this.model;
14295
14337
  if (!dstDEUILogicParamId) {
14296
- throw new RuntimeModelError36(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
14338
+ throw new RuntimeModelError37(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
14297
14339
  }
14298
14340
  ctx.resetParam(dstDEUILogicParamId);
14299
14341
  }
14300
14342
  };
14301
14343
 
14302
14344
  // src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
14303
- import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
14304
- import { clone as clone17 } from "ramda";
14345
+ import { RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
14346
+ import { clone as clone18 } from "ramda";
14305
14347
  var CopyParamNode2 = class extends UILogicNode {
14306
14348
  async exec(ctx) {
14307
14349
  const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
14308
14350
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
14309
- throw new RuntimeModelError37(
14351
+ throw new RuntimeModelError38(
14310
14352
  this.model,
14311
14353
  "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
14312
14354
  );
14313
14355
  }
14314
14356
  const srcVal = handleSrcVal2(ctx, this.model);
14315
- ctx.params[dstDEUILogicParamId] = clone17(srcVal);
14357
+ ctx.params[dstDEUILogicParamId] = clone18(srcVal);
14316
14358
  }
14317
14359
  };
14318
14360
 
14319
14361
  // src/ui-logic/ui-logic-node/append-param-node/append-param-node.ts
14320
- import { RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
14362
+ import { RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
14321
14363
  var AppendParamNode2 = class extends UILogicNode {
14322
14364
  async exec(ctx) {
14323
14365
  const {
@@ -14328,7 +14370,7 @@ var AppendParamNode2 = class extends UILogicNode {
14328
14370
  srcSize
14329
14371
  } = this.model;
14330
14372
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
14331
- throw new RuntimeModelError38(
14373
+ throw new RuntimeModelError39(
14332
14374
  this.model,
14333
14375
  "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
14334
14376
  );
@@ -14346,12 +14388,12 @@ var AppendParamNode2 = class extends UILogicNode {
14346
14388
  };
14347
14389
 
14348
14390
  // src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts
14349
- import { RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
14391
+ import { RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
14350
14392
  var SortParamNode2 = class extends UILogicNode {
14351
14393
  async exec(ctx) {
14352
14394
  const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
14353
14395
  if (!dstDEUILogicParamId || !dstFieldName) {
14354
- throw new RuntimeModelError39(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u76EE\u6807\u5C5E\u6027\u914D\u7F6E");
14396
+ throw new RuntimeModelError40(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u76EE\u6807\u5C5E\u6027\u914D\u7F6E");
14355
14397
  }
14356
14398
  const key = dstFieldName;
14357
14399
  const arr = ctx.params[dstDEUILogicParamId];
@@ -14362,19 +14404,19 @@ var SortParamNode2 = class extends UILogicNode {
14362
14404
  };
14363
14405
 
14364
14406
  // src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts
14365
- import { RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
14407
+ import { RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
14366
14408
  var RenewParamNode2 = class extends UILogicNode {
14367
14409
  async exec(ctx) {
14368
14410
  const { dstDEUILogicParamId } = this.model;
14369
14411
  if (!dstDEUILogicParamId) {
14370
- throw new RuntimeModelError40(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
14412
+ throw new RuntimeModelError41(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
14371
14413
  }
14372
14414
  ctx.renewParam(dstDEUILogicParamId);
14373
14415
  }
14374
14416
  };
14375
14417
 
14376
14418
  // src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts
14377
- import { RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
14419
+ import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
14378
14420
  var DataSetNode2 = class extends UILogicNode {
14379
14421
  async exec(ctx) {
14380
14422
  const {
@@ -14384,7 +14426,7 @@ var DataSetNode2 = class extends UILogicNode {
14384
14426
  retDEUILogicParamId
14385
14427
  } = this.model;
14386
14428
  if (!dstDEUILogicParamId) {
14387
- throw new RuntimeModelError41(this.model, "\u7F3A\u5C11\u914D\u7F6E\u8FC7\u6EE4\u53C2\u6570");
14429
+ throw new RuntimeModelError42(this.model, "\u7F3A\u5C11\u914D\u7F6E\u8FC7\u6EE4\u53C2\u6570");
14388
14430
  }
14389
14431
  const queryParams = ctx.params[dstDEUILogicParamId];
14390
14432
  const app = ibiz.hub.getApp(ctx.context.srfappid);
@@ -14410,19 +14452,19 @@ var ThrowExceptionNode2 = class extends UILogicNode {
14410
14452
  };
14411
14453
 
14412
14454
  // src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
14413
- import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
14455
+ import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
14414
14456
  var ViewCtrlFireEventNode = class extends UILogicNode {
14415
14457
  async exec(ctx) {
14416
14458
  ctx.isEndNode = true;
14417
14459
  const { eventName, eventParamId, fireCtrlId } = this.model;
14418
14460
  if (!fireCtrlId) {
14419
- throw new RuntimeModelError42(this.model, "\u6CA1\u6709\u914D\u7F6E\u89E6\u53D1\u5BF9\u8C61");
14461
+ throw new RuntimeModelError43(this.model, "\u6CA1\u6709\u914D\u7F6E\u89E6\u53D1\u5BF9\u8C61");
14420
14462
  }
14421
14463
  if (!eventName) {
14422
- throw new RuntimeModelError42(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u540D\u79F0\u53C2\u6570");
14464
+ throw new RuntimeModelError43(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u540D\u79F0\u53C2\u6570");
14423
14465
  }
14424
14466
  if (!eventParamId) {
14425
- throw new RuntimeModelError42(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u53C2\u6570");
14467
+ throw new RuntimeModelError43(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u53C2\u6570");
14426
14468
  }
14427
14469
  const invokeCtrl = ctx.params[fireCtrlId];
14428
14470
  if (!invokeCtrl) {
@@ -14437,7 +14479,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
14437
14479
  };
14438
14480
 
14439
14481
  // src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
14440
- import { RuntimeError as RuntimeError39, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
14482
+ import { RuntimeError as RuntimeError39, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
14441
14483
  var ExecuteDELogicNode = class extends UILogicNode {
14442
14484
  async exec(ctx) {
14443
14485
  const {
@@ -14447,13 +14489,13 @@ var ExecuteDELogicNode = class extends UILogicNode {
14447
14489
  retDEUILogicParamId
14448
14490
  } = this.model;
14449
14491
  if (!dstAppDataEntityId) {
14450
- throw new RuntimeModelError43(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
14492
+ throw new RuntimeModelError44(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
14451
14493
  }
14452
14494
  if (!dstAppDELogicId) {
14453
- throw new RuntimeModelError43(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91");
14495
+ throw new RuntimeModelError44(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91");
14454
14496
  }
14455
14497
  if (!dstDEUILogicParamId) {
14456
- throw new RuntimeModelError43(this.model, "\u6CA1\u6709\u914D\u7F6E\u4F20\u5165\u903B\u8F91\u53C2\u6570");
14498
+ throw new RuntimeModelError44(this.model, "\u6CA1\u6709\u914D\u7F6E\u4F20\u5165\u903B\u8F91\u53C2\u6570");
14457
14499
  }
14458
14500
  const dstParam = ctx.params[dstDEUILogicParamId];
14459
14501
  if (!dstParam) {
@@ -14598,7 +14640,7 @@ var UILogic = class {
14598
14640
  this.params = /* @__PURE__ */ new Map();
14599
14641
  var _a;
14600
14642
  if (!((_a = model.deuilogicNodes) == null ? void 0 : _a.length)) {
14601
- throw new RuntimeModelError44(model, "\u754C\u9762\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
14643
+ throw new RuntimeModelError45(model, "\u754C\u9762\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
14602
14644
  }
14603
14645
  model.deuilogicNodes.forEach((node) => {
14604
14646
  const { logicNodeType } = node;
@@ -14715,7 +14757,7 @@ var UILogic = class {
14715
14757
  const start = this.nodes.get(startDEUILogicNodeId);
14716
14758
  await this.deepExec(start, ctx);
14717
14759
  } else {
14718
- throw new RuntimeModelError44(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
14760
+ throw new RuntimeModelError45(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
14719
14761
  }
14720
14762
  if (ctx.isEndNode) {
14721
14763
  return ctx.result;
@@ -14851,7 +14893,7 @@ var UIActionProviderBase = class {
14851
14893
  const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
14852
14894
  if (uilogicAttachMode === "REPLACE") {
14853
14895
  if (!appDEUILogicId) {
14854
- throw new RuntimeModelError45(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
14896
+ throw new RuntimeModelError46(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
14855
14897
  }
14856
14898
  await execUILogic(appDEUILogicId, appDataEntityId, args);
14857
14899
  return result;
@@ -14883,7 +14925,7 @@ var UIActionProviderBase = class {
14883
14925
  }
14884
14926
  if (action.uilogicAttachMode === "AFTER") {
14885
14927
  if (!appDEUILogicId) {
14886
- throw new RuntimeModelError45(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
14928
+ throw new RuntimeModelError46(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
14887
14929
  }
14888
14930
  await execUILogic(appDEUILogicId, appDataEntityId, args);
14889
14931
  }
@@ -15071,7 +15113,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
15071
15113
  const entityName = action.appDataEntityId;
15072
15114
  const methodName = action.appDEMethodId;
15073
15115
  if (!entityName || !methodName) {
15074
- throw new RuntimeModelError46(action, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6216\u5B9E\u4F53\u884C\u4E3A");
15116
+ throw new RuntimeModelError47(action, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6216\u5B9E\u4F53\u884C\u4E3A");
15075
15117
  }
15076
15118
  const { resultContext, resultParams, resultData } = await this.handleParams(
15077
15119
  action,
@@ -15177,7 +15219,9 @@ var SysUIActionProvider = class extends UIActionProviderBase {
15177
15219
  ["GRIDVIEW_VIEWACTION", "View"],
15178
15220
  ["GRIDVIEW_SAVEROWACTION", "SaveRow"],
15179
15221
  ["APP_LOGIN", "Login"],
15180
- ["APP_LOGOUT", "logout"]
15222
+ ["APP_LOGOUT", "logout"],
15223
+ ["UTIL_RESET", "Reset"],
15224
+ ["UTIL_SEARCH", "Search"]
15181
15225
  ]);
15182
15226
  }
15183
15227
  async execAction(action, args) {
@@ -15192,7 +15236,12 @@ var SysUIActionProvider = class extends UIActionProviderBase {
15192
15236
  };
15193
15237
 
15194
15238
  // src/ui-action/provider/front-ui-action-provider.ts
15195
- import { StringUtil, RuntimeModelError as RuntimeModelError47, ModelError as ModelError25 } from "@ibiz-template/core";
15239
+ import {
15240
+ StringUtil,
15241
+ RuntimeModelError as RuntimeModelError48,
15242
+ ModelError as ModelError25,
15243
+ RuntimeError as RuntimeError42
15244
+ } from "@ibiz-template/core";
15196
15245
  var FrontUIActionProvider = class extends UIActionProviderBase {
15197
15246
  async execAction(action, args) {
15198
15247
  const { context, params, data, event, noWaitRoute } = args;
@@ -15207,7 +15256,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
15207
15256
  case "WIZARD": {
15208
15257
  const frontPSAppView = action.frontAppViewId;
15209
15258
  if (!frontPSAppView) {
15210
- throw new RuntimeModelError47(action, "\u672A\u914D\u7F6E\u6253\u5F00\u89C6\u56FE");
15259
+ throw new RuntimeModelError48(action, "\u672A\u914D\u7F6E\u6253\u5F00\u89C6\u56FE");
15211
15260
  }
15212
15261
  const { resultContext, resultParams } = await this.handleParams(
15213
15262
  action,
@@ -15232,6 +15281,15 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
15232
15281
  }
15233
15282
  break;
15234
15283
  }
15284
+ case "PRINT":
15285
+ await this.executePrint(action, args);
15286
+ break;
15287
+ case "DATAIMP":
15288
+ actionResult = await this.executeDataImport(action, args);
15289
+ break;
15290
+ case "DATAEXP":
15291
+ await this.executeDataExport(action, args);
15292
+ break;
15235
15293
  case "OTHER":
15236
15294
  actionResult = this.doOther(action, args);
15237
15295
  break;
@@ -15263,7 +15321,129 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
15263
15321
  );
15264
15322
  return result || {};
15265
15323
  }
15266
- throw new RuntimeModelError47(action, "\u81EA\u5B9A\u4E49\u7C7B\u578B\u7F3A\u5C11\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
15324
+ throw new RuntimeModelError48(action, "\u81EA\u5B9A\u4E49\u7C7B\u578B\u7F3A\u5C11\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
15325
+ }
15326
+ /**
15327
+ * 执行打印行为
15328
+ * @protected
15329
+ * @param {IAppDEUIAction} action
15330
+ * @param {IUILogicParams} args
15331
+ * @return {*}
15332
+ */
15333
+ async executePrint(action, args) {
15334
+ var _a, _b;
15335
+ const appDataEntity = await ibiz.hub.getAppDataEntity(
15336
+ action.appDataEntityId
15337
+ );
15338
+ const appDEPrint = (_a = appDataEntity.appDEPrints) == null ? void 0 : _a.find((print) => {
15339
+ return print.id === action.appDEPrintId;
15340
+ });
15341
+ if (appDEPrint) {
15342
+ let requestUrl = "";
15343
+ const { context } = args;
15344
+ if (context && context[appDataEntity.codeName.toLowerCase()]) {
15345
+ requestUrl += "/".concat((_b = appDataEntity.codeName2) == null ? void 0 : _b.toLowerCase(), "/printdata/").concat(context[appDataEntity.codeName.toLowerCase()], "?srfprinttag=").concat(appDEPrint.codeName);
15346
+ } else {
15347
+ throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
15348
+ }
15349
+ const res = await ibiz.net.request(requestUrl, {
15350
+ method: "get",
15351
+ responseType: "blob"
15352
+ });
15353
+ if (res.ok) {
15354
+ const link = window.URL.createObjectURL(res.data);
15355
+ window.open(link, "_blank");
15356
+ } else {
15357
+ throw new RuntimeError42("\u6253\u5370\u5931\u8D25");
15358
+ }
15359
+ } else {
15360
+ throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u6253\u5370\u9879");
15361
+ }
15362
+ }
15363
+ /**
15364
+ * 执行导入行为
15365
+ * @protected
15366
+ * @param {IAppDEUIAction} action
15367
+ * @param {IUILogicParams} args
15368
+ * @return {*}
15369
+ */
15370
+ async executeDataImport(action, _args) {
15371
+ var _a;
15372
+ const appDataEntity = await ibiz.hub.getAppDataEntity(
15373
+ action.appDataEntityId
15374
+ );
15375
+ const appDEDataImport = (_a = appDataEntity.appDEDataImports) == null ? void 0 : _a.find(
15376
+ (dataImport) => dataImport.id === action.appDEDataImportId
15377
+ );
15378
+ if (appDEDataImport) {
15379
+ const modal = ibiz.overlay.createModal(
15380
+ "DataImport",
15381
+ {
15382
+ dismiss: () => modal.dismiss(),
15383
+ appDataEntity,
15384
+ dataImport: appDEDataImport
15385
+ },
15386
+ {
15387
+ width: "auto",
15388
+ placement: "center"
15389
+ }
15390
+ );
15391
+ modal.present();
15392
+ await modal.onWillDismiss();
15393
+ return {
15394
+ refresh: true,
15395
+ refreshMode: 1
15396
+ };
15397
+ }
15398
+ throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u5165\u9879");
15399
+ }
15400
+ /**
15401
+ * 执行导出行为
15402
+ * @protected
15403
+ * @param {IAppDEUIAction} action
15404
+ * @param {IUILogicParams} args
15405
+ * @return {*}
15406
+ */
15407
+ async executeDataExport(action, _args) {
15408
+ var _a, _b;
15409
+ const appDataEntity = await ibiz.hub.getAppDataEntity(
15410
+ action.appDataEntityId
15411
+ );
15412
+ const appDEDataExport = (_a = appDataEntity.appDEDataExports) == null ? void 0 : _a.find((dataExport) => {
15413
+ return dataExport.id === action.appDEDataExportId;
15414
+ });
15415
+ if (appDEDataExport) {
15416
+ const url = "/".concat((_b = appDataEntity.codeName2) == null ? void 0 : _b.toLowerCase(), "/exportdata/fetchdefault?srfexporttag=").concat(appDEDataExport.codeName);
15417
+ const params = {
15418
+ page: 0,
15419
+ size: appDEDataExport.maxRowCount ? appDEDataExport.maxRowCount : 1e3,
15420
+ responseType: "blob"
15421
+ };
15422
+ const res = await ibiz.net.request(url, {
15423
+ method: "post",
15424
+ data: params,
15425
+ responseType: "blob"
15426
+ });
15427
+ if (res.status === 200) {
15428
+ let fileName = "".concat(appDataEntity.logicName, "\u8868.xlsx");
15429
+ fileName = decodeURIComponent(fileName);
15430
+ const blob = new Blob([res.data], {
15431
+ type: "application/vnd.ms-excel"
15432
+ });
15433
+ const elink = document.createElement("a");
15434
+ elink.download = fileName;
15435
+ elink.style.display = "none";
15436
+ elink.href = URL.createObjectURL(blob);
15437
+ document.body.appendChild(elink);
15438
+ elink.click();
15439
+ URL.revokeObjectURL(elink.href);
15440
+ document.body.removeChild(elink);
15441
+ } else {
15442
+ throw new RuntimeError42("\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25");
15443
+ }
15444
+ } else {
15445
+ throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u51FA\u9879");
15446
+ }
15267
15447
  }
15268
15448
  };
15269
15449
 
@@ -15330,7 +15510,7 @@ var ToolbarController = class extends ControlController {
15330
15510
  const actionId = item.uiactionId;
15331
15511
  const uiAction = await getUIActionById(actionId);
15332
15512
  if (!uiAction) {
15333
- throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
15513
+ throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
15334
15514
  }
15335
15515
  const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
15336
15516
  if (enableLoading) {
@@ -15893,7 +16073,7 @@ var RawItemPortletController = class extends PortletPartController {
15893
16073
  };
15894
16074
 
15895
16075
  // src/controller/control/data-view/data-view.controller.ts
15896
- import { RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
16076
+ import { RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
15897
16077
  import { isNil as isNil21 } from "ramda";
15898
16078
 
15899
16079
  // src/controller/control/data-view/data-view.service.ts
@@ -16108,7 +16288,7 @@ var DataViewControlController = class extends MDControlController {
16108
16288
  const optItemModel = this.getOptItemModel();
16109
16289
  if (optItemModel) {
16110
16290
  if (!optItemModel.deuiactionGroup) {
16111
- throw new RuntimeModelError48(this.model, "\u64CD\u4F5C\u9879\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
16291
+ throw new RuntimeModelError49(this.model, "\u64CD\u4F5C\u9879\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
16112
16292
  }
16113
16293
  if (!((_a = optItemModel.deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
16114
16294
  ibiz.log.debug("\u64CD\u4F5C\u9879\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
@@ -16157,7 +16337,7 @@ var DataViewControlController = class extends MDControlController {
16157
16337
  const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
16158
16338
  if (enableGroup && groupMode) {
16159
16339
  if (!groupAppDEFieldId) {
16160
- throw new RuntimeModelError48(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
16340
+ throw new RuntimeModelError49(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
16161
16341
  }
16162
16342
  if (groupMode === "AUTO") {
16163
16343
  this.handleAutoGroup();
@@ -16224,7 +16404,7 @@ var DataViewControlController = class extends MDControlController {
16224
16404
  async handleCodeListGroup() {
16225
16405
  const { groupAppDEFieldId, groupCodeListId } = this.model;
16226
16406
  if (!groupCodeListId) {
16227
- throw new RuntimeModelError48(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
16407
+ throw new RuntimeModelError49(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
16228
16408
  }
16229
16409
  const { items } = this.state;
16230
16410
  const groupMap = /* @__PURE__ */ new Map();
@@ -16331,7 +16511,7 @@ var DataViewControlController = class extends MDControlController {
16331
16511
  caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
16332
16512
  }
16333
16513
  if (!item.appDEFieldId) {
16334
- throw new RuntimeModelError48(item, "\u542F\u7528\u6392\u5E8F\u7684\u9879\u5FC5\u987B\u5173\u8054\u5B9E\u4F53\u5C5E\u6027");
16514
+ throw new RuntimeModelError49(item, "\u542F\u7528\u6392\u5E8F\u7684\u9879\u5FC5\u987B\u5173\u8054\u5B9E\u4F53\u5C5E\u6027");
16335
16515
  }
16336
16516
  const tempItem = {
16337
16517
  caption,
@@ -16349,10 +16529,10 @@ var DataViewControlController = class extends MDControlController {
16349
16529
  };
16350
16530
 
16351
16531
  // src/controller/control/exp-bar/calendar-exp-bar.controller.ts
16352
- import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
16532
+ import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
16353
16533
 
16354
16534
  // src/controller/control/exp-bar/exp-bar.controller.ts
16355
- import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
16535
+ import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
16356
16536
  var ExpBarControlController = class extends ControlController {
16357
16537
  constructor() {
16358
16538
  super(...arguments);
@@ -16407,7 +16587,7 @@ var ExpBarControlController = class extends ControlController {
16407
16587
  get xDataController() {
16408
16588
  const controller = this.view.getController(this.model.xdataControlName);
16409
16589
  if (!controller) {
16410
- throw new RuntimeModelError49(
16590
+ throw new RuntimeModelError50(
16411
16591
  this.model,
16412
16592
  "\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
16413
16593
  );
@@ -16678,7 +16858,7 @@ var ExpBarControlController = class extends ControlController {
16678
16858
  if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
16679
16859
  return this.XDataModel.navAppViewId;
16680
16860
  }
16681
- throw new RuntimeError43("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
16861
+ throw new RuntimeError44("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
16682
16862
  }
16683
16863
  /**
16684
16864
  * 获取导航视图
@@ -16766,7 +16946,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
16766
16946
  get xDataController() {
16767
16947
  const controller = this.view.getController(this.model.xdataControlName);
16768
16948
  if (!controller) {
16769
- throw new RuntimeModelError50(
16949
+ throw new RuntimeModelError51(
16770
16950
  this.model,
16771
16951
  "\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
16772
16952
  );
@@ -16821,7 +17001,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
16821
17001
  };
16822
17002
 
16823
17003
  // src/controller/control/exp-bar/tree-exp-bar.controller.ts
16824
- import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
17004
+ import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
16825
17005
  var TreeExpBarController = class extends ExpBarControlController {
16826
17006
  constructor() {
16827
17007
  super(...arguments);
@@ -16844,7 +17024,7 @@ var TreeExpBarController = class extends ExpBarControlController {
16844
17024
  get xDataController() {
16845
17025
  const controller = this.view.getController(this.model.xdataControlName);
16846
17026
  if (!controller) {
16847
- throw new RuntimeModelError51(
17027
+ throw new RuntimeModelError52(
16848
17028
  this.model,
16849
17029
  "\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
16850
17030
  );
@@ -16896,7 +17076,7 @@ var TreeExpBarController = class extends ExpBarControlController {
16896
17076
  const deData = node.deData || node;
16897
17077
  const nodeModel = this.getNodeModel(node.nodeId);
16898
17078
  if (!nodeModel) {
16899
- throw new RuntimeError44("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
17079
+ throw new RuntimeError45("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
16900
17080
  }
16901
17081
  const result = this.prepareParams(nodeModel, deData, context, params);
16902
17082
  result.context.currentSrfNav = nodeId;
@@ -17290,6 +17470,7 @@ var SearchFormService = class extends ControlService {
17290
17470
  var SearchFormController = class extends FormController {
17291
17471
  async onCreated() {
17292
17472
  await super.onCreated();
17473
+ this.preprocessLayoutPanel();
17293
17474
  this.service = new SearchFormService(this.model);
17294
17475
  await this.service.init(this.context);
17295
17476
  await this.load();
@@ -17399,6 +17580,57 @@ var SearchFormController = class extends FormController {
17399
17580
  await this.onSearchButtonClick();
17400
17581
  }
17401
17582
  }
17583
+ /**
17584
+ * 根据搜索表单的按钮位置和按钮样式
17585
+ * 预处理部件布局面板模型
17586
+ * @author lxm
17587
+ * @date 2023-11-21 04:17:43
17588
+ * @protected
17589
+ * @return {*}
17590
+ */
17591
+ preprocessLayoutPanel() {
17592
+ if (!this.controlPanel) {
17593
+ return;
17594
+ }
17595
+ const { searchButtonStyle } = this.model;
17596
+ let deleteRight = false;
17597
+ let deleteBottom = false;
17598
+ const searchButtonPos = this.model.searchButtonPos || "RIGHT";
17599
+ deleteRight = searchButtonPos === "BOTTOM";
17600
+ deleteBottom = searchButtonPos !== "BOTTOM";
17601
+ if (searchButtonStyle === "NONE") {
17602
+ deleteRight = true;
17603
+ deleteBottom = true;
17604
+ }
17605
+ const recursivePanelItems = (parent) => {
17606
+ let children;
17607
+ let childrenKey = "";
17608
+ ["rootPanelItems", "panelItems"].find((key) => {
17609
+ if (parent[key]) {
17610
+ children = parent[key];
17611
+ childrenKey = key;
17612
+ return true;
17613
+ }
17614
+ return false;
17615
+ });
17616
+ if (children && children.length > 0) {
17617
+ const newArr = [];
17618
+ children.forEach((item) => {
17619
+ const isDelete = deleteRight && item.id === "control_buttons_right" || deleteBottom && item.id === "control_buttons_bottom";
17620
+ if (!isDelete) {
17621
+ newArr.push(item);
17622
+ recursivePanelItems(item);
17623
+ }
17624
+ });
17625
+ if (newArr.length < children.length) {
17626
+ parent[childrenKey] = newArr;
17627
+ }
17628
+ }
17629
+ };
17630
+ if (deleteBottom || deleteRight) {
17631
+ recursivePanelItems(this.controlPanel);
17632
+ }
17633
+ }
17402
17634
  };
17403
17635
 
17404
17636
  // src/controller/control/form/form-detail/form-detail/form-detail.state.ts
@@ -18188,7 +18420,7 @@ var FormItemController = class extends FormDetailController {
18188
18420
  * @readonly
18189
18421
  */
18190
18422
  get name() {
18191
- return this.model.fieldName || this.model.id;
18423
+ return this.model.id;
18192
18424
  }
18193
18425
  /**
18194
18426
  * 表单项对应属性的值
@@ -18577,10 +18809,10 @@ var FormMDCtrlContentTypeController = class {
18577
18809
  };
18578
18810
 
18579
18811
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts
18580
- import { clone as clone19 } from "ramda";
18812
+ import { clone as clone20 } from "ramda";
18581
18813
 
18582
18814
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-control/form-mdctrl-control.controller.ts
18583
- import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
18815
+ import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
18584
18816
  var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController {
18585
18817
  /**
18586
18818
  * 初始化
@@ -18595,7 +18827,7 @@ var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController
18595
18827
  const { model } = this.parent;
18596
18828
  const { contentControl } = model;
18597
18829
  if (!contentControl) {
18598
- throw new RuntimeError45("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
18830
+ throw new RuntimeError46("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
18599
18831
  }
18600
18832
  this.controlModel = contentControl;
18601
18833
  const controlProvider = await getControlProvider(this.controlModel);
@@ -18713,17 +18945,17 @@ import { isArray as isArray10 } from "lodash-es";
18713
18945
  import {
18714
18946
  awaitTimeout,
18715
18947
  mergeInLeft,
18716
- RuntimeError as RuntimeError46,
18948
+ RuntimeError as RuntimeError47,
18717
18949
  mergeDefaultInLeft as mergeDefaultInLeft2
18718
18950
  } from "@ibiz-template/core";
18719
18951
  import { debounce as debounce2 } from "lodash-es";
18720
18952
  import { createUUID as createUUID8 } from "qx-util";
18721
- import { clone as clone18 } from "ramda";
18953
+ import { clone as clone19 } from "ramda";
18722
18954
 
18723
18955
  // src/controller/control/form/edit-form/edit-form.service.ts
18724
18956
  import {
18725
18957
  recursiveIterate as recursiveIterate4,
18726
- RuntimeModelError as RuntimeModelError52
18958
+ RuntimeModelError as RuntimeModelError53
18727
18959
  } from "@ibiz-template/core";
18728
18960
  var EditFormService = class extends ControlService {
18729
18961
  /**
@@ -18841,7 +19073,7 @@ var EditFormService = class extends ControlService {
18841
19073
  const wizardForm = this.model;
18842
19074
  const methodName = (_a = wizardForm.goBackControlAction) == null ? void 0 : _a.appDEMethodId;
18843
19075
  if (!methodName) {
18844
- throw new RuntimeModelError52(this.model, "\u7F3A\u5C11\u8FD4\u56DE\u64CD\u4F5C\u5B9E\u4F53\u884C\u4E3A");
19076
+ throw new RuntimeModelError53(this.model, "\u7F3A\u5C11\u8FD4\u56DE\u64CD\u4F5C\u5B9E\u4F53\u884C\u4E3A");
18845
19077
  }
18846
19078
  let res = await this.exec(
18847
19079
  methodName,
@@ -18943,7 +19175,7 @@ var EditFormService = class extends ControlService {
18943
19175
  (item) => {
18944
19176
  if (item.detailType === "FORMITEM" || item.detailType === "MDCTRL") {
18945
19177
  const formItem = item;
18946
- const uiKey = formItem.fieldName || formItem.id.toLowerCase();
19178
+ const uiKey = formItem.id.toLowerCase();
18947
19179
  const deField = formItem.fieldName || item.appDEFieldId;
18948
19180
  let mapField;
18949
19181
  if (deField) {
@@ -19065,8 +19297,8 @@ var EditFormController = class extends FormController {
19065
19297
  * @return {*} {Promise<IData>}
19066
19298
  */
19067
19299
  async copy() {
19068
- const context = clone18(this.context);
19069
- const queryParams = clone18(this.params);
19300
+ const context = clone19(this.context);
19301
+ const queryParams = clone19(this.params);
19070
19302
  const appDataEntity = await ibiz.hub.getAppDataEntity(
19071
19303
  this.model.appDataEntityId
19072
19304
  );
@@ -19122,7 +19354,7 @@ var EditFormController = class extends FormController {
19122
19354
  return this.loadDraft();
19123
19355
  }
19124
19356
  const { context, params } = this.handlerAbilityParams(args);
19125
- const queryParams = clone18(params);
19357
+ const queryParams = clone19(params);
19126
19358
  let res;
19127
19359
  try {
19128
19360
  await this.startLoading();
@@ -19159,7 +19391,7 @@ var EditFormController = class extends FormController {
19159
19391
  }
19160
19392
  const isValid = await this.validate();
19161
19393
  if (!isValid) {
19162
- throw new RuntimeError46("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19394
+ throw new RuntimeError47("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19163
19395
  }
19164
19396
  if (!silent) {
19165
19397
  await this.startLoading();
@@ -19285,7 +19517,7 @@ var EditFormController = class extends FormController {
19285
19517
  (item) => item.id === formItemUpdateId
19286
19518
  );
19287
19519
  if (!formItemUpdate) {
19288
- throw new RuntimeError46("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
19520
+ throw new RuntimeError47("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
19289
19521
  }
19290
19522
  const { appDEMethodId, defiupdateDetails, customCode, scriptCode } = formItemUpdate;
19291
19523
  const updateItems = defiupdateDetails == null ? void 0 : defiupdateDetails.map((item) => item.id);
@@ -19329,7 +19561,7 @@ var EditFormController = class extends FormController {
19329
19561
  async wfStart(args) {
19330
19562
  const isValid = await this.validate();
19331
19563
  if (!isValid) {
19332
- throw new RuntimeError46("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19564
+ throw new RuntimeError47("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19333
19565
  }
19334
19566
  await this.startLoading();
19335
19567
  const { context, params } = this.handlerAbilityParams(args);
@@ -19360,7 +19592,7 @@ var EditFormController = class extends FormController {
19360
19592
  async wfSubmit(args) {
19361
19593
  const isValid = await this.validate();
19362
19594
  if (!isValid) {
19363
- throw new RuntimeError46("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19595
+ throw new RuntimeError47("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19364
19596
  }
19365
19597
  await this.startLoading();
19366
19598
  const { context, params } = this.handlerAbilityParams(args);
@@ -19592,7 +19824,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlControlController {
19592
19824
  };
19593
19825
 
19594
19826
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts
19595
- import { RuntimeError as RuntimeError47, mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
19827
+ import { RuntimeError as RuntimeError48, mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
19596
19828
  var FormMDCtrlGridController = class extends FormMDCtrlControlController {
19597
19829
  constructor() {
19598
19830
  super(...arguments);
@@ -19704,7 +19936,7 @@ var FormMDCtrlGridController = class extends FormMDCtrlControlController {
19704
19936
  const { model } = this.parent;
19705
19937
  const { contentControl } = model;
19706
19938
  if (!contentControl) {
19707
- throw new RuntimeError47("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
19939
+ throw new RuntimeError48("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
19708
19940
  }
19709
19941
  mergeInLeft3(contentControl, { enableRowEdit: true, enableRowNew: true });
19710
19942
  this.controlModel = contentControl;
@@ -20127,7 +20359,7 @@ var FormMDCtrlController = class extends FormDetailController {
20127
20359
  setFormDataValue() {
20128
20360
  const name = this.model.appDEFieldId || this.model.fieldName || this.model.id;
20129
20361
  if (name) {
20130
- this.form.setDataValue(name, clone19(this.state.contentCtrlData));
20362
+ this.form.setDataValue(name, clone20(this.state.contentCtrlData));
20131
20363
  }
20132
20364
  }
20133
20365
  /**
@@ -20195,10 +20427,10 @@ var FormMDCtrlController = class extends FormDetailController {
20195
20427
  };
20196
20428
 
20197
20429
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-item.controller.ts
20198
- import { clone as clone20 } from "ramda";
20430
+ import { clone as clone21 } from "ramda";
20199
20431
  var FormMDCtrlItemController = class extends EditFormController {
20200
20432
  constructor(model, context, params, ctx, data, form) {
20201
- const tempModel = clone20(form.model);
20433
+ const tempModel = clone21(form.model);
20202
20434
  Object.assign(tempModel, model, { name: void 0 });
20203
20435
  super(tempModel, context, params, ctx);
20204
20436
  this.state.data = data;
@@ -20498,10 +20730,10 @@ import {
20498
20730
  debounceAndAsyncMerge as debounceAndAsyncMerge2,
20499
20731
  mergeDefaultInLeft as mergeDefaultInLeft3,
20500
20732
  recursiveIterate as recursiveIterate5,
20501
- RuntimeError as RuntimeError48,
20502
- RuntimeModelError as RuntimeModelError53
20733
+ RuntimeError as RuntimeError49,
20734
+ RuntimeModelError as RuntimeModelError54
20503
20735
  } from "@ibiz-template/core";
20504
- import { clone as clone21 } from "ramda";
20736
+ import { clone as clone22 } from "ramda";
20505
20737
 
20506
20738
  // src/controller/control/grid/grid/grid.service.ts
20507
20739
  var GridService = class extends MDControlService {
@@ -20646,6 +20878,16 @@ var GridController = class extends MDControlController {
20646
20878
  get allowRowEdit() {
20647
20879
  return !!this.model.enableRowEdit && this.state.rowEditOpen;
20648
20880
  }
20881
+ /**
20882
+ * 单元格超出呈现模式
20883
+ * @author lxm
20884
+ * @date 2023-11-17 01:56:26
20885
+ * @readonly
20886
+ * @type {('wrap' | 'ellipsis')}
20887
+ */
20888
+ get overflowMode() {
20889
+ return ibiz.config.grid.overflowMode;
20890
+ }
20649
20891
  initState() {
20650
20892
  super.initState();
20651
20893
  this.state.rows = [];
@@ -20695,11 +20937,11 @@ var GridController = class extends MDControlController {
20695
20937
  (item) => item.model.appDEFieldId === groupAppDEFieldId
20696
20938
  );
20697
20939
  if (!this.groupFieldColumn) {
20698
- throw new RuntimeModelError53(this.model, "\u6CA1\u6709\u914D\u7F6E\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217");
20940
+ throw new RuntimeModelError54(this.model, "\u6CA1\u6709\u914D\u7F6E\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217");
20699
20941
  }
20700
20942
  const groupFieldName = this.groupFieldColumn.model.id;
20701
20943
  if (!this.groupFieldColumn.model.appCodeListId) {
20702
- throw new RuntimeModelError53(
20944
+ throw new RuntimeModelError54(
20703
20945
  this.groupFieldColumn.model,
20704
20946
  "\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217".concat(groupFieldName, "\u6CA1\u6709\u914D\u7F6E\u4EE3\u7801\u8868")
20705
20947
  );
@@ -20709,7 +20951,7 @@ var GridController = class extends MDControlController {
20709
20951
  );
20710
20952
  if (index !== -1 && index !== 0) {
20711
20953
  if (this.isMultistageHeader) {
20712
- throw new RuntimeModelError53(
20954
+ throw new RuntimeModelError54(
20713
20955
  this.model,
20714
20956
  "\u8BF7\u5C06\u5206\u7EC4\u5C5E\u6027\u5217".concat(groupFieldName, "\u914D\u7F6E\u4E3A\u7B2C\u4E00\u5217")
20715
20957
  );
@@ -20719,10 +20961,10 @@ var GridController = class extends MDControlController {
20719
20961
  }
20720
20962
  if (groupMode === "CODELIST") {
20721
20963
  if (!groupCodeListId) {
20722
- throw new RuntimeModelError53(this.model, "\u4EE3\u7801\u8868\u5206\u7EC4\u6A21\u5F0F\u9700\u8981\u914D\u7F6E\u4EE3\u7801\u8868");
20964
+ throw new RuntimeModelError54(this.model, "\u4EE3\u7801\u8868\u5206\u7EC4\u6A21\u5F0F\u9700\u8981\u914D\u7F6E\u4EE3\u7801\u8868");
20723
20965
  }
20724
20966
  if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
20725
- throw new RuntimeModelError53(
20967
+ throw new RuntimeModelError54(
20726
20968
  this.model,
20727
20969
  "\u5206\u7EC4\u4EE3\u7801\u8868\u4E0E\u5C5E\u6027\u5217".concat(groupFieldName, "\u7684\u4EE3\u7801\u8868\u4E0D\u4E00\u81F4")
20728
20970
  );
@@ -20804,7 +21046,7 @@ var GridController = class extends MDControlController {
20804
21046
  return;
20805
21047
  }
20806
21048
  if (!aggAppDEDataSetId || !aggAppDataEntityId) {
20807
- throw new RuntimeModelError53(this.model, "\u7F3A\u5C11\u914D\u7F6E\u805A\u5408\u5B9E\u4F53\u6216\u805A\u5408\u6570\u636E\u96C6");
21049
+ throw new RuntimeModelError54(this.model, "\u7F3A\u5C11\u914D\u7F6E\u805A\u5408\u5B9E\u4F53\u6216\u805A\u5408\u6570\u636E\u96C6");
20808
21050
  }
20809
21051
  const params = await this.getFetchParams();
20810
21052
  const app = ibiz.hub.getApp(this.context.srfappid);
@@ -20872,7 +21114,7 @@ var GridController = class extends MDControlController {
20872
21114
  if (editShowMode === "row") {
20873
21115
  const editingRow = this.state.rows.find((item) => item.showRowEdit);
20874
21116
  if (editingRow) {
20875
- throw new RuntimeError48("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
21117
+ throw new RuntimeError49("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
20876
21118
  }
20877
21119
  }
20878
21120
  const queryParams = { ...this.params };
@@ -20913,7 +21155,7 @@ var GridController = class extends MDControlController {
20913
21155
  const isCreate = data.srfuf === 0 /* CREATE */;
20914
21156
  const rowState = this.findRowState(data);
20915
21157
  if (!rowState) {
20916
- throw new RuntimeError48("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
21158
+ throw new RuntimeError49("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
20917
21159
  }
20918
21160
  if (!rowState.modified) {
20919
21161
  ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
@@ -20925,7 +21167,7 @@ var GridController = class extends MDControlController {
20925
21167
  }
20926
21168
  const isValid = await this.validate(rowState);
20927
21169
  if (!isValid) {
20928
- throw new RuntimeError48("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
21170
+ throw new RuntimeError49("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
20929
21171
  }
20930
21172
  let res;
20931
21173
  const deName = calcDeCodeNameById(this.model.appDataEntityId);
@@ -21122,7 +21364,7 @@ var GridController = class extends MDControlController {
21122
21364
  }
21123
21365
  async toggleRowEdit() {
21124
21366
  if (!this.model.enableRowNew) {
21125
- throw new RuntimeError48("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
21367
+ throw new RuntimeError49("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
21126
21368
  }
21127
21369
  this.state.rowEditOpen = !this.state.rowEditOpen;
21128
21370
  }
@@ -21155,10 +21397,10 @@ var GridController = class extends MDControlController {
21155
21397
  } else {
21156
21398
  const editingRow = this.state.rows.find((item) => item.showRowEdit);
21157
21399
  if (editingRow) {
21158
- throw new RuntimeError48("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
21400
+ throw new RuntimeError49("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
21159
21401
  }
21160
21402
  if (row.data.srfuf === 1 /* UPDATE */) {
21161
- row.cacheData = clone21(row.data);
21403
+ row.cacheData = clone22(row.data);
21162
21404
  const defaultVal = this.calcDefaultValue(row.data, false);
21163
21405
  Object.assign(row.data, defaultVal);
21164
21406
  }
@@ -21205,7 +21447,7 @@ var GridController = class extends MDControlController {
21205
21447
  (item) => item.id === updateId
21206
21448
  );
21207
21449
  if (!findUpdate) {
21208
- throw new RuntimeError48("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
21450
+ throw new RuntimeError49("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
21209
21451
  }
21210
21452
  const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
21211
21453
  const updateItems = degeiupdateDetails.map((item) => item.id);
@@ -21259,6 +21501,30 @@ var GridController = class extends MDControlController {
21259
21501
  }
21260
21502
  return res.data;
21261
21503
  }
21504
+ /**
21505
+ * 初始化数据导出列
21506
+ * @return {*}
21507
+ * @author: zhujiamin
21508
+ * @Date: 2023-11-21 18:54:16
21509
+ */
21510
+ async findAllExportColumns(dataExport) {
21511
+ var _a;
21512
+ const app = ibiz.hub.getApp(this.context.srfappid);
21513
+ const exportColumnsPromises = (_a = dataExport.dedataExportItems) == null ? void 0 : _a.map(async (item) => {
21514
+ const tempExportColumn = { ...item };
21515
+ if (item.codeListId) {
21516
+ tempExportColumn.codeList = app.codeList.getCodeList(item.codeListId);
21517
+ tempExportColumn.codeListItems = await app.codeList.get(
21518
+ item.codeListId
21519
+ );
21520
+ }
21521
+ return tempExportColumn;
21522
+ });
21523
+ if (exportColumnsPromises) {
21524
+ return Promise.all(exportColumnsPromises);
21525
+ }
21526
+ return void 0;
21527
+ }
21262
21528
  /**
21263
21529
  * 数据导出
21264
21530
  *
@@ -21267,18 +21533,57 @@ var GridController = class extends MDControlController {
21267
21533
  * @memberof MDControlController
21268
21534
  */
21269
21535
  async exportData(_args) {
21270
- const items = this.fieldColumns;
21536
+ var _a;
21537
+ if (this.model.dedataExportId && !this.dataExport) {
21538
+ this.dataExport = (_a = this.dataEntity.appDEDataExports) == null ? void 0 : _a.find((dataExport) => {
21539
+ return dataExport.id === this.model.dedataExportId;
21540
+ });
21541
+ if (this.dataExport) {
21542
+ this.allExportColumns = await this.findAllExportColumns(
21543
+ this.dataExport
21544
+ );
21545
+ }
21546
+ }
21271
21547
  const formatExcelData = (data2) => {
21272
- const cloneData = clone21(
21548
+ var _a2;
21549
+ const codeListMap = /* @__PURE__ */ new Map();
21550
+ if (this.allExportColumns && this.allExportColumns.length > 0) {
21551
+ (_a2 = this.allExportColumns) == null ? void 0 : _a2.forEach((exportColumn) => {
21552
+ if (exportColumn.codeListItems) {
21553
+ codeListMap.set(
21554
+ exportColumn.appDEFieldId,
21555
+ exportColumn.codeListItems
21556
+ );
21557
+ }
21558
+ });
21559
+ } else {
21560
+ Object.keys(this.fieldColumns).forEach((key) => {
21561
+ if (this.fieldColumns[key].codeList) {
21562
+ codeListMap.set(key, this.fieldColumns[key].codeListItems);
21563
+ }
21564
+ });
21565
+ }
21566
+ const cloneData = clone22(
21273
21567
  data2.map((item) => {
21274
21568
  return item.getOrigin();
21275
21569
  })
21276
21570
  );
21571
+ cloneData.forEach((item) => {
21572
+ const fields = Object.keys(item);
21573
+ fields.forEach((key) => {
21574
+ var _a3;
21575
+ if (codeListMap.get(key)) {
21576
+ item[key] = ((_a3 = codeListMap.get(key).find((_item) => {
21577
+ return _item.value === item[key];
21578
+ })) == null ? void 0 : _a3.text) || item[key];
21579
+ }
21580
+ });
21581
+ });
21277
21582
  return cloneData;
21278
21583
  };
21279
21584
  const getExportData = async () => {
21280
- var _a;
21281
- const type = (_a = _args.params) == null ? void 0 : _a.type;
21585
+ var _a2;
21586
+ const type = (_a2 = _args.params) == null ? void 0 : _a2.type;
21282
21587
  let data2 = [];
21283
21588
  if (type === "activatedPage") {
21284
21589
  data2 = this.state.rows.map((row) => row.data);
@@ -21297,7 +21602,7 @@ var GridController = class extends MDControlController {
21297
21602
  data2 = this.getData();
21298
21603
  }
21299
21604
  if (data2.length === 0) {
21300
- throw new RuntimeError48("\u65E0\u5BFC\u51FA\u6570\u636E");
21605
+ throw new RuntimeError49("\u65E0\u5BFC\u51FA\u6570\u636E");
21301
21606
  }
21302
21607
  return formatExcelData(data2);
21303
21608
  };
@@ -21308,12 +21613,23 @@ var GridController = class extends MDControlController {
21308
21613
  });
21309
21614
  });
21310
21615
  };
21311
- const filterVal = Object.keys(items).map(
21312
- (key) => items[key].model.id
21313
- );
21314
- const header = Object.keys(items).map(
21315
- (key) => items[key].model.caption
21316
- );
21616
+ let filterVal = [];
21617
+ let header = [];
21618
+ if (this.allExportColumns && this.allExportColumns.length > 0) {
21619
+ filterVal = this.allExportColumns.map(
21620
+ (column) => column.appDEFieldId
21621
+ );
21622
+ header = this.allExportColumns.map(
21623
+ (column) => column.caption
21624
+ );
21625
+ } else {
21626
+ filterVal = Object.keys(this.fieldColumns).map(
21627
+ (key) => this.fieldColumns[key].model.id
21628
+ );
21629
+ header = Object.keys(this.fieldColumns).map(
21630
+ (key) => this.fieldColumns[key].model.caption
21631
+ );
21632
+ }
21317
21633
  const data = formatArrayData(filterVal, await getExportData());
21318
21634
  await exportData(header, data, this.model.logicName);
21319
21635
  }
@@ -21378,7 +21694,7 @@ var GridController = class extends MDControlController {
21378
21694
  import { DataTypes as DataTypes3, ModelError as ModelError26, plus as plus2 } from "@ibiz-template/core";
21379
21695
  import dayjs4 from "dayjs";
21380
21696
  import { debounce as debounce3 } from "lodash-es";
21381
- import { clone as clone22, isNil as isNil22 } from "ramda";
21697
+ import { clone as clone23, isNil as isNil22 } from "ramda";
21382
21698
  var GridFieldColumnController = class extends GridColumnController {
21383
21699
  constructor() {
21384
21700
  super(...arguments);
@@ -21482,7 +21798,7 @@ var GridFieldColumnController = class extends GridColumnController {
21482
21798
  srfkey: value,
21483
21799
  ...wfContext
21484
21800
  });
21485
- const tempParams = clone22(this.params);
21801
+ const tempParams = clone23(this.params);
21486
21802
  const { context: newContext, params: newParams } = this.handlePublicParams(
21487
21803
  row.data,
21488
21804
  tempContext,
@@ -21624,7 +21940,7 @@ var GridFieldColumnController = class extends GridColumnController {
21624
21940
  };
21625
21941
 
21626
21942
  // src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
21627
- import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
21943
+ import { RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
21628
21944
  var GridUAColumnController = class extends GridColumnController {
21629
21945
  /**
21630
21946
  * 给rowController初始化操作列的状态
@@ -21637,7 +21953,7 @@ var GridUAColumnController = class extends GridColumnController {
21637
21953
  var _a;
21638
21954
  const { deuiactionGroup } = this.model;
21639
21955
  if (!deuiactionGroup) {
21640
- throw new RuntimeModelError54(this.model, "\u64CD\u4F5C\u5217\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
21956
+ throw new RuntimeModelError55(this.model, "\u64CD\u4F5C\u5217\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
21641
21957
  }
21642
21958
  if (!((_a = deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
21643
21959
  ibiz.log.debug("\u64CD\u4F5C\u5217\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
@@ -21678,7 +21994,7 @@ var GridUAColumnController = class extends GridColumnController {
21678
21994
  };
21679
21995
 
21680
21996
  // src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
21681
- import { RuntimeError as RuntimeError49 } from "@ibiz-template/core";
21997
+ import { RuntimeError as RuntimeError50 } from "@ibiz-template/core";
21682
21998
  import Schema2 from "async-validator";
21683
21999
  import { isNilOrEmpty as isNilOrEmpty9 } from "qx-util";
21684
22000
  var GridFieldEditColumnController = class extends GridFieldColumnController {
@@ -21815,7 +22131,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
21815
22131
  if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
21816
22132
  const result = await this.validate(row);
21817
22133
  if (!result) {
21818
- throw new RuntimeError49(
22134
+ throw new RuntimeError50(
21819
22135
  "".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
21820
22136
  );
21821
22137
  }
@@ -22173,10 +22489,10 @@ var ListController = class extends MDControlController {
22173
22489
  };
22174
22490
 
22175
22491
  // src/controller/control/panel/panel/panel.controller.ts
22176
- import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError50 } from "@ibiz-template/core";
22492
+ import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError51 } from "@ibiz-template/core";
22177
22493
  var PanelController = class extends ControlController {
22178
- constructor() {
22179
- super(...arguments);
22494
+ constructor(model, context, params, ctx, container) {
22495
+ super(model, context, params, ctx);
22180
22496
  /**
22181
22497
  * 所有面板成员的控制器
22182
22498
  *
@@ -22193,6 +22509,7 @@ var PanelController = class extends ControlController {
22193
22509
  * @type {{ [key: string]: IPanelItemProvider | IControlProvider}}
22194
22510
  */
22195
22511
  this.providers = {};
22512
+ this.container = container;
22196
22513
  }
22197
22514
  get _evt() {
22198
22515
  return this.evt;
@@ -22296,7 +22613,7 @@ var PanelController = class extends ControlController {
22296
22613
  var _a, _b;
22297
22614
  const data = await this.prepareData();
22298
22615
  if (!data) {
22299
- throw new RuntimeError50("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
22616
+ throw new RuntimeError51("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
22300
22617
  }
22301
22618
  const panelData = this.convertData(data);
22302
22619
  (_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
@@ -22895,7 +23212,7 @@ import { recursiveIterate as recursiveIterate7 } from "@ibiz-template/core";
22895
23212
  import { isNil as isNil23 } from "ramda";
22896
23213
 
22897
23214
  // src/controller/control/search-bar/search-bar-filter.controller.ts
22898
- import { RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
23215
+ import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
22899
23216
  var SearchBarFilterController = class {
22900
23217
  constructor(model, searchBar) {
22901
23218
  this.model = model;
@@ -22923,7 +23240,7 @@ var SearchBarFilterController = class {
22923
23240
  */
22924
23241
  async init() {
22925
23242
  if (!this.model.editor) {
22926
- throw new RuntimeModelError55(this.model, "\u7F3A\u5C11\u7F16\u8F91\u5668\u6A21\u578B");
23243
+ throw new RuntimeModelError56(this.model, "\u7F3A\u5C11\u7F16\u8F91\u5668\u6A21\u578B");
22927
23244
  }
22928
23245
  this.editorProvider = await getEditorProvider(this.model.editor);
22929
23246
  if (this.editorProvider) {
@@ -23953,7 +24270,7 @@ var TreeController = class extends MDControlController {
23953
24270
  };
23954
24271
 
23955
24272
  // src/controller/control/wizard-panel/wizard-panel.controller.ts
23956
- import { RuntimeError as RuntimeError51 } from "@ibiz-template/core";
24273
+ import { RuntimeError as RuntimeError52 } from "@ibiz-template/core";
23957
24274
 
23958
24275
  // src/controller/control/wizard-panel/wizard-panel.service.ts
23959
24276
  var WizardPanelService = class extends ControlService {
@@ -24112,7 +24429,7 @@ var WizardPanelController = class extends ControlController {
24112
24429
  const { activeFormTag } = this.state;
24113
24430
  const controller = this.formControllers.get(activeFormTag);
24114
24431
  if (!controller) {
24115
- throw new RuntimeError51("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
24432
+ throw new RuntimeError52("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
24116
24433
  }
24117
24434
  return controller;
24118
24435
  }
@@ -24152,7 +24469,7 @@ var WizardPanelController = class extends ControlController {
24152
24469
  getWizardFormByTag(tag) {
24153
24470
  var _a;
24154
24471
  if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
24155
- throw new RuntimeError51("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
24472
+ throw new RuntimeError52("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
24156
24473
  return;
24157
24474
  }
24158
24475
  const wizardForm = this.model.dewizard.dewizardForms.find(
@@ -24161,7 +24478,7 @@ var WizardPanelController = class extends ControlController {
24161
24478
  }
24162
24479
  );
24163
24480
  if (!wizardForm) {
24164
- throw new RuntimeError51("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
24481
+ throw new RuntimeError52("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
24165
24482
  }
24166
24483
  return wizardForm;
24167
24484
  }
@@ -24228,7 +24545,7 @@ var WizardPanelController = class extends ControlController {
24228
24545
  this.tagHistory.pop();
24229
24546
  }
24230
24547
  if (!prevTag) {
24231
- throw new RuntimeError51("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
24548
+ throw new RuntimeError52("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
24232
24549
  }
24233
24550
  this.state.activeFormTag = prevTag;
24234
24551
  }
@@ -24264,7 +24581,7 @@ var WizardPanelController = class extends ControlController {
24264
24581
  });
24265
24582
  const nextWizardStep = wizardSteps[index + 1];
24266
24583
  if (!nextWizardStep) {
24267
- throw new RuntimeError51("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
24584
+ throw new RuntimeError52("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
24268
24585
  }
24269
24586
  const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
24270
24587
  if (nextWizardForm && nextWizardForm.formTag) {
@@ -24273,7 +24590,7 @@ var WizardPanelController = class extends ControlController {
24273
24590
  }
24274
24591
  }
24275
24592
  if (!nextTag) {
24276
- throw new RuntimeError51("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
24593
+ throw new RuntimeError52("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
24277
24594
  }
24278
24595
  this.state.activeFormTag = nextTag;
24279
24596
  this.tagHistory.push(nextTag);
@@ -24292,7 +24609,7 @@ var WizardPanelController = class extends ControlController {
24292
24609
  };
24293
24610
 
24294
24611
  // src/controller/control/md-ctrl/md-ctrl.controller.ts
24295
- import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
24612
+ import { RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
24296
24613
  import { isNil as isNil24 } from "ramda";
24297
24614
 
24298
24615
  // src/controller/control/md-ctrl/md-ctrl.service.ts
@@ -24515,7 +24832,7 @@ var MDCtrlController = class extends MDControlController {
24515
24832
  const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
24516
24833
  if (enableGroup && groupMode) {
24517
24834
  if (!groupAppDEFieldId) {
24518
- throw new RuntimeModelError56(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
24835
+ throw new RuntimeModelError57(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
24519
24836
  }
24520
24837
  if (groupMode === "AUTO") {
24521
24838
  this.handleAutoGroup();
@@ -24582,7 +24899,7 @@ var MDCtrlController = class extends MDControlController {
24582
24899
  async handleCodeListGroup() {
24583
24900
  const { groupAppDEFieldId, groupCodeListId } = this.model;
24584
24901
  if (!groupCodeListId) {
24585
- throw new RuntimeModelError56(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
24902
+ throw new RuntimeModelError57(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
24586
24903
  }
24587
24904
  const { items } = this.state;
24588
24905
  const groupMap = /* @__PURE__ */ new Map();
@@ -24612,7 +24929,7 @@ var MDCtrlController = class extends MDControlController {
24612
24929
  };
24613
24930
 
24614
24931
  // src/controller/control/kanban/kanban.controller.ts
24615
- import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
24932
+ import { RuntimeError as RuntimeError53, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
24616
24933
  import { isNil as isNil25 } from "ramda";
24617
24934
 
24618
24935
  // src/controller/control/kanban/kanban.service.ts
@@ -24687,10 +25004,10 @@ var KanbanController = class extends DataViewControlController {
24687
25004
  const sortField = this.model.minorSortAppDEFieldId;
24688
25005
  const { minorSortDir } = this.model;
24689
25006
  if (!sortField) {
24690
- throw new RuntimeModelError57(this.model, "\u6392\u5E8F\u5C5E\u6027\u6CA1\u914D\u7F6E");
25007
+ throw new RuntimeModelError58(this.model, "\u6392\u5E8F\u5C5E\u6027\u6CA1\u914D\u7F6E");
24691
25008
  }
24692
25009
  if (!minorSortDir) {
24693
- throw new RuntimeModelError57(this.model, "\u6392\u5E8F\u65B9\u5411\u6CA1\u914D\u7F6E");
25010
+ throw new RuntimeModelError58(this.model, "\u6392\u5E8F\u65B9\u5411\u6CA1\u914D\u7F6E");
24694
25011
  }
24695
25012
  const isAsc = minorSortDir === "ASC";
24696
25013
  items.forEach((item) => {
@@ -24700,7 +25017,7 @@ var KanbanController = class extends DataViewControlController {
24700
25017
  } else {
24701
25018
  const toNum = Number(sortValue);
24702
25019
  if (Number.isNaN(toNum)) {
24703
- throw new RuntimeError52(
25020
+ throw new RuntimeError53(
24704
25021
  "".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
24705
25022
  );
24706
25023
  }
@@ -24716,7 +25033,7 @@ var KanbanController = class extends DataViewControlController {
24716
25033
  }
24717
25034
  handleDataGroup() {
24718
25035
  if (!this.model.enableGroup || this.model.groupMode === "NONE") {
24719
- throw new RuntimeError52("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
25036
+ throw new RuntimeError53("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
24720
25037
  }
24721
25038
  return super.handleDataGroup();
24722
25039
  }
@@ -25210,7 +25527,7 @@ var TreeGridService = class extends GridService {
25210
25527
  };
25211
25528
 
25212
25529
  // src/controller/control/medit-view-panel/medit-view-panel.controller.ts
25213
- import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
25530
+ import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
25214
25531
  import { createUUID as createUUID9 } from "qx-util";
25215
25532
 
25216
25533
  // src/controller/control/medit-view-panel/medit-view-panel.service.ts
@@ -25425,7 +25742,7 @@ var MEditViewPanelController = class extends MDControlController {
25425
25742
  (item) => item.id === id
25426
25743
  );
25427
25744
  if (panelUiItemIndex < 0) {
25428
- throw new RuntimeError53("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
25745
+ throw new RuntimeError54("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
25429
25746
  }
25430
25747
  const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
25431
25748
  if (tempUiItem.id.startsWith("mockId:")) {
@@ -25840,7 +26157,7 @@ var AppHub = class {
25840
26157
  this.registerAppView(appView);
25841
26158
  return appView;
25842
26159
  }
25843
- throw new RuntimeError54("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
26160
+ throw new RuntimeError55("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
25844
26161
  }
25845
26162
  /**
25846
26163
  * 根据应用实体代码名称查找应用视图
@@ -25871,7 +26188,7 @@ var AppHub = class {
25871
26188
  this.registerAppDataEntity(entity, appId);
25872
26189
  return entity;
25873
26190
  }
25874
- throw new RuntimeError54("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
26191
+ throw new RuntimeError55("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
25875
26192
  }
25876
26193
  /**
25877
26194
  * 新建 hub 应用
@@ -25892,7 +26209,7 @@ var AppHub = class {
25892
26209
  appModel = await this.modelLoaderProvider.getApp(id);
25893
26210
  this.registerApp(appModel);
25894
26211
  } else {
25895
- throw new RuntimeError54("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
26212
+ throw new RuntimeError55("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
25896
26213
  }
25897
26214
  const app = new Application(appModel);
25898
26215
  this.appMap.set(id, app);
@@ -25912,7 +26229,7 @@ var AppHub = class {
25912
26229
  * @author chitanda
25913
26230
  * @date 2023-04-17 21:04:41
25914
26231
  * @param {string} [key=ibiz.env.appId]
25915
- * @return {*} {Promise<Application>}
26232
+ * @return {*} {Promise<IAppService>}
25916
26233
  */
25917
26234
  async getAppAsync(key = ibiz.env.appId) {
25918
26235
  return this.createApp(key);
@@ -25923,7 +26240,7 @@ var AppHub = class {
25923
26240
  * @author chitanda
25924
26241
  * @date 2023-04-17 22:04:42
25925
26242
  * @param {(string | IApplication)} [app]
25926
- * @return {*} {Application}
26243
+ * @return {*} {IAppService}
25927
26244
  */
25928
26245
  getApp(app) {
25929
26246
  let key = null;
@@ -25990,7 +26307,7 @@ var EngineFactory = class {
25990
26307
  };
25991
26308
 
25992
26309
  // src/engine/view-base.engine.ts
25993
- import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
26310
+ import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
25994
26311
  var ViewEngineBase = class {
25995
26312
  /**
25996
26313
  * 构造函数在视图控制器的构造函数逻辑内部执行
@@ -26178,7 +26495,7 @@ var ViewEngineBase = class {
26178
26495
  const { appDataEntityId } = this.view.model;
26179
26496
  const { evt, context, params } = this.view;
26180
26497
  if (!appDataEntityId) {
26181
- throw new RuntimeError55("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
26498
+ throw new RuntimeError56("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
26182
26499
  }
26183
26500
  const app = ibiz.hub.getApp(context.srfappid);
26184
26501
  const res = await app.deService.exec(
@@ -26199,8 +26516,8 @@ var ViewEngineBase = class {
26199
26516
  };
26200
26517
 
26201
26518
  // src/engine/md-view.engine.ts
26202
- import { RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
26203
- import { clone as clone23 } from "ramda";
26519
+ import { RuntimeModelError as RuntimeModelError59 } from "@ibiz-template/core";
26520
+ import { clone as clone24 } from "ramda";
26204
26521
  var MDViewEngine = class extends ViewEngineBase {
26205
26522
  /**
26206
26523
  * 多数据部件名称
@@ -26338,6 +26655,14 @@ var MDViewEngine = class extends ViewEngineBase {
26338
26655
  await this.exportData(args);
26339
26656
  return null;
26340
26657
  }
26658
+ if (key === "Search" /* SEARCH */) {
26659
+ await this.searchForm.search();
26660
+ return null;
26661
+ }
26662
+ if (key === "Reset" /* RESET */) {
26663
+ await this.searchForm.reset();
26664
+ return null;
26665
+ }
26341
26666
  if (key === "Copy" /* COPY */) {
26342
26667
  this.copy(args);
26343
26668
  return null;
@@ -26375,7 +26700,7 @@ var MDViewEngine = class extends ViewEngineBase {
26375
26700
  view: this.view
26376
26701
  }));
26377
26702
  if (result === -1) {
26378
- throw new RuntimeModelError58(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
26703
+ throw new RuntimeModelError59(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
26379
26704
  } else {
26380
26705
  return {
26381
26706
  cancel: !result.ok
@@ -26398,9 +26723,9 @@ var MDViewEngine = class extends ViewEngineBase {
26398
26723
  (item) => item.id === "newdata"
26399
26724
  );
26400
26725
  if (!openAppViewLogic) {
26401
- throw new RuntimeModelError58(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
26726
+ throw new RuntimeModelError59(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
26402
26727
  }
26403
- const params = clone23(this.view.params);
26728
+ const params = clone24(this.view.params);
26404
26729
  if (copyMode) {
26405
26730
  params.srfcopymode = copyMode;
26406
26731
  }
@@ -26412,7 +26737,7 @@ var MDViewEngine = class extends ViewEngineBase {
26412
26737
  view: this.view
26413
26738
  }));
26414
26739
  if (result === -1) {
26415
- throw new RuntimeModelError58(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
26740
+ throw new RuntimeModelError59(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
26416
26741
  } else {
26417
26742
  return {
26418
26743
  cancel: !result.ok
@@ -26531,15 +26856,15 @@ var MDViewEngine = class extends ViewEngineBase {
26531
26856
 
26532
26857
  // src/utils/error-handler/default-error-handler.ts
26533
26858
  import {
26534
- RuntimeModelError as RuntimeModelError59,
26859
+ RuntimeModelError as RuntimeModelError60,
26535
26860
  ModelError as ModelError28,
26536
26861
  HttpError as HttpError4,
26537
26862
  NoticeError as NoticeError2,
26538
- RuntimeError as RuntimeError56
26863
+ RuntimeError as RuntimeError57
26539
26864
  } from "@ibiz-template/core";
26540
26865
  var DefaultErrorHandler = class {
26541
26866
  handle(error) {
26542
- if (error instanceof RuntimeModelError59 || error instanceof ModelError28) {
26867
+ if (error instanceof RuntimeModelError60 || error instanceof ModelError28) {
26543
26868
  ibiz.message.error(error.message, 10, true);
26544
26869
  } else if (error instanceof HttpError4) {
26545
26870
  if (error.status === 401) {
@@ -26553,7 +26878,7 @@ var DefaultErrorHandler = class {
26553
26878
  }
26554
26879
  } else if (error instanceof NoticeError2) {
26555
26880
  ibiz.message.error(error.message, error.duration, error.duration === 0);
26556
- } else if (error instanceof RuntimeError56) {
26881
+ } else if (error instanceof RuntimeError57) {
26557
26882
  ibiz.message.error(error.message, 10, true);
26558
26883
  }
26559
26884
  ibiz.log.error(error);
@@ -26681,7 +27006,7 @@ var GlobalUtil = class {
26681
27006
  };
26682
27007
 
26683
27008
  // src/logic-scheduler/executor/logic-executor.ts
26684
- import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
27009
+ import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
26685
27010
  var LogicExecutor = class {
26686
27011
  /**
26687
27012
  * @author lxm
@@ -26702,7 +27027,7 @@ var LogicExecutor = class {
26702
27027
  */
26703
27028
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
26704
27029
  execute(_executeParams) {
26705
- throw new RuntimeError57("Method not implemented.");
27030
+ throw new RuntimeError58("Method not implemented.");
26706
27031
  }
26707
27032
  /**
26708
27033
  * 销毁方法
@@ -26793,13 +27118,13 @@ var ScriptExecutor = class extends LogicExecutor {
26793
27118
  };
26794
27119
 
26795
27120
  // src/logic-scheduler/executor/app-de-ui-logic-executor.ts
26796
- import { RuntimeModelError as RuntimeModelError60 } from "@ibiz-template/core";
27121
+ import { RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
26797
27122
  var AppDEUILogicExecutor = class extends LogicExecutor {
26798
27123
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
26799
27124
  execute(executeParams) {
26800
27125
  const { appDEUILogicId, appDataEntityId } = this.logic;
26801
27126
  if (!appDEUILogicId) {
26802
- throw new RuntimeModelError60(this.logic, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
27127
+ throw new RuntimeModelError61(this.logic, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
26803
27128
  }
26804
27129
  execUILogic(appDEUILogicId, appDataEntityId, executeParams);
26805
27130
  }
@@ -27139,7 +27464,7 @@ var LogicSchedulerCenter = class {
27139
27464
  };
27140
27465
 
27141
27466
  // src/logic-scheduler/trigger/logic-trigger.ts
27142
- import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
27467
+ import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
27143
27468
  var LogicTrigger = class {
27144
27469
  /**
27145
27470
  * @author lxm
@@ -27199,7 +27524,7 @@ var LogicTrigger = class {
27199
27524
  if (this.executor) {
27200
27525
  return this.executor.execute(executeParams);
27201
27526
  }
27202
- throw new RuntimeError58("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
27527
+ throw new RuntimeError59("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
27203
27528
  }
27204
27529
  /**
27205
27530
  * 销毁方法
@@ -27216,12 +27541,12 @@ var CustomTrigger = class extends LogicTrigger {
27216
27541
  };
27217
27542
 
27218
27543
  // src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
27219
- import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
27544
+ import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
27220
27545
  var ItemDynaLogicTrigger = class extends LogicTrigger {
27221
27546
  bindExecutor(executor) {
27222
27547
  super.bindExecutor(executor);
27223
27548
  if (this.executor.type !== "SCRIPT") {
27224
- throw new RuntimeError59(
27549
+ throw new RuntimeError60(
27225
27550
  "\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
27226
27551
  );
27227
27552
  }
@@ -27257,7 +27582,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
27257
27582
  };
27258
27583
 
27259
27584
  // src/logic-scheduler/trigger/timer-trigger.ts
27260
- import { RuntimeError as RuntimeError60, RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
27585
+ import { RuntimeError as RuntimeError61, RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
27261
27586
  var TimerTrigger = class extends LogicTrigger {
27262
27587
  constructor() {
27263
27588
  super(...arguments);
@@ -27265,11 +27590,11 @@ var TimerTrigger = class extends LogicTrigger {
27265
27590
  }
27266
27591
  start() {
27267
27592
  if (!this.logic.timer) {
27268
- throw new RuntimeModelError61(this.logic, "\u5B9A\u65F6\u5668\u7F3A\u5C11\u5B9A\u65F6\u95F4\u9694");
27593
+ throw new RuntimeModelError62(this.logic, "\u5B9A\u65F6\u5668\u7F3A\u5C11\u5B9A\u65F6\u95F4\u9694");
27269
27594
  }
27270
27595
  this.timer = setInterval(() => {
27271
27596
  if (!this.scheduler.defaultParamsCb) {
27272
- throw new RuntimeError60("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
27597
+ throw new RuntimeError61("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
27273
27598
  }
27274
27599
  const params = this.scheduler.defaultParamsCb();
27275
27600
  this.executor.execute(params);
@@ -27286,8 +27611,8 @@ var TimerTrigger = class extends LogicTrigger {
27286
27611
  // src/logic-scheduler/executor/app-ui-logic-executor.ts
27287
27612
  import {
27288
27613
  ModelError as ModelError31,
27289
- RuntimeError as RuntimeError61,
27290
- RuntimeModelError as RuntimeModelError62
27614
+ RuntimeError as RuntimeError62,
27615
+ RuntimeModelError as RuntimeModelError63
27291
27616
  } from "@ibiz-template/core";
27292
27617
  import { notNilEmpty as notNilEmpty9 } from "qx-util";
27293
27618
  var AppUILogicExecutor = class extends LogicExecutor {
@@ -27319,7 +27644,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27319
27644
  const { context, params, ...rest } = parameters;
27320
27645
  const { data } = parameters;
27321
27646
  if (!(data == null ? void 0 : data[0])) {
27322
- throw new RuntimeError61("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
27647
+ throw new RuntimeError62("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
27323
27648
  }
27324
27649
  const openViewRefs = appUILogic.openDataAppViews;
27325
27650
  let openViewRef;
@@ -27328,7 +27653,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27328
27653
  } else {
27329
27654
  openViewRef = appUILogic.openDataAppView;
27330
27655
  if (!openViewRef) {
27331
- throw new RuntimeModelError62(
27656
+ throw new RuntimeModelError63(
27332
27657
  appUILogic,
27333
27658
  "opendata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE"
27334
27659
  );
@@ -27336,7 +27661,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27336
27661
  }
27337
27662
  const openView = openViewRef.refAppViewId;
27338
27663
  if (!openView) {
27339
- throw new RuntimeModelError62(
27664
+ throw new RuntimeModelError63(
27340
27665
  appUILogic,
27341
27666
  "opendata\u89C6\u56FE\u903B\u8F91\u7684\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE\u6CA1\u6709\u5B9E\u9645\u5F15\u7528\u89C6\u56FE"
27342
27667
  );
@@ -27365,7 +27690,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27365
27690
  );
27366
27691
  const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
27367
27692
  if (!typeFileName) {
27368
- throw new RuntimeModelError62(
27693
+ throw new RuntimeModelError63(
27369
27694
  appUILogic,
27370
27695
  "".concat(appDataEntity.codeName, "[\u591A\u8868\u5355\u5B9E\u4F53] or [\u7D22\u5F15\u5B9E\u4F53]\u7F3A\u5C11\u7C7B\u578B\u5C5E\u6027\u914D\u7F6E")
27371
27696
  );
@@ -27373,12 +27698,12 @@ var AppUILogicExecutor = class extends LogicExecutor {
27373
27698
  const { data } = parameters;
27374
27699
  const formTypeValue = data[0][typeFileName];
27375
27700
  if (!formTypeValue) {
27376
- throw new RuntimeModelError62(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
27701
+ throw new RuntimeModelError63(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
27377
27702
  }
27378
27703
  const openViewRefs = appUILogic.openDataAppViews;
27379
27704
  const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
27380
27705
  if (!findView) {
27381
- throw new RuntimeError61(
27706
+ throw new RuntimeError62(
27382
27707
  "\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
27383
27708
  );
27384
27709
  }
@@ -27415,7 +27740,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27415
27740
  return viewRef.refMode.toLowerCase() !== parentDeName;
27416
27741
  });
27417
27742
  if (!newViewRef) {
27418
- throw new RuntimeModelError62(
27743
+ throw new RuntimeModelError63(
27419
27744
  appUILogic,
27420
27745
  "\u6CA1\u6709\u627E\u5230\u6279\u6DFB\u52A0\u9700\u8981\u6253\u5F00\u7684\u9009\u62E9\u89C6\u56FE"
27421
27746
  );
@@ -27425,7 +27750,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27425
27750
  } else {
27426
27751
  newViewRef = newDataAppView;
27427
27752
  if (!newViewRef || !newViewRef.refAppViewId) {
27428
- throw new RuntimeModelError62(
27753
+ throw new RuntimeModelError63(
27429
27754
  appUILogic,
27430
27755
  "newdata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u65B0\u5EFA\u6570\u636E\u89C6\u56FE"
27431
27756
  );
@@ -27482,7 +27807,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27482
27807
  const { wizardAppView, newDataAppViews } = appUILogic;
27483
27808
  const { context, params, ...rest } = parameters;
27484
27809
  if (!wizardAppView || !wizardAppView.refAppViewId) {
27485
- throw new RuntimeModelError62(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
27810
+ throw new RuntimeModelError63(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
27486
27811
  }
27487
27812
  const result = await ibiz.commands.execute(
27488
27813
  OpenAppViewCommand.TAG,
@@ -27496,12 +27821,12 @@ var AppUILogicExecutor = class extends LogicExecutor {
27496
27821
  }
27497
27822
  const selectData = (_a = result.data) == null ? void 0 : _a[0];
27498
27823
  if (!selectData) {
27499
- throw new RuntimeError61("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
27824
+ throw new RuntimeError62("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
27500
27825
  }
27501
27826
  const indexType = selectData.srfkey;
27502
27827
  const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
27503
27828
  if (!findView) {
27504
- throw new RuntimeError61(
27829
+ throw new RuntimeError62(
27505
27830
  "\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
27506
27831
  );
27507
27832
  }
@@ -27528,7 +27853,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27528
27853
  const minorDERs = selfDe.minorAppDERSs;
27529
27854
  const pickParentDeName = newViewRef.refMode.toLowerCase();
27530
27855
  if (!minorDERs) {
27531
- throw new RuntimeModelError62(selfDe, "\u5B9E\u4F53\u6CA1\u6709\u4ECE\u5173\u7CFB\u96C6\u5408\uFF01");
27856
+ throw new RuntimeModelError63(selfDe, "\u5B9E\u4F53\u6CA1\u6709\u4ECE\u5173\u7CFB\u96C6\u5408\uFF01");
27532
27857
  }
27533
27858
  let pickParentFieldName;
27534
27859
  minorDERs == null ? void 0 : minorDERs.forEach((item) => {
@@ -27627,12 +27952,12 @@ var ControlEventTrigger = class extends LogicTrigger {
27627
27952
  };
27628
27953
 
27629
27954
  // src/logic-scheduler/executor/app-ui-action-executor.ts
27630
- import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
27955
+ import { RuntimeModelError as RuntimeModelError64 } from "@ibiz-template/core";
27631
27956
  var AppDEUIActionExecutor = class extends LogicExecutor {
27632
27957
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
27633
27958
  execute(executeParams) {
27634
27959
  if (!this.logic.appDEUIActionId) {
27635
- throw new RuntimeModelError63(
27960
+ throw new RuntimeModelError64(
27636
27961
  this.logic,
27637
27962
  "\u903B\u8F91\u4E2D\u7F3A\u5C11\u89E6\u53D1\u5E94\u7528\u5B9E\u4F53\u754C\u9762\u884C\u4E3Aid"
27638
27963
  );