@ibiz-template/runtime 0.5.7-alpha.3 → 0.5.7-alpha.5

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 (127) hide show
  1. package/dist/index.esm.js +661 -309
  2. package/dist/index.system.min.js +1 -1
  3. package/out/app-hub.d.ts +2 -0
  4. package/out/app-hub.d.ts.map +1 -1
  5. package/out/app-hub.js +2 -0
  6. package/out/application.js +1 -1
  7. package/out/controller/control/exp-bar/exp-bar.controller.d.ts.map +1 -1
  8. package/out/controller/control/exp-bar/exp-bar.controller.js +7 -0
  9. package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts +5 -0
  10. package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts.map +1 -1
  11. package/out/controller/control/exp-bar/tree-exp-bar.controller.js +16 -0
  12. package/out/controller/control/search-bar/entity-schema.d.ts +1 -2
  13. package/out/controller/control/search-bar/entity-schema.d.ts.map +1 -1
  14. package/out/controller/control/search-bar/entity-schema.js +2 -2
  15. package/out/controller/control/search-bar/index.d.ts +2 -0
  16. package/out/controller/control/search-bar/index.d.ts.map +1 -1
  17. package/out/controller/control/search-bar/index.js +2 -0
  18. package/out/controller/control/search-bar/search-bar-filter.controller.d.ts +5 -6
  19. package/out/controller/control/search-bar/search-bar-filter.controller.d.ts.map +1 -1
  20. package/out/controller/control/search-bar/search-bar-filter.controller.js +6 -9
  21. package/out/controller/control/search-bar/search-bar.controller.d.ts +1 -24
  22. package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
  23. package/out/controller/control/search-bar/search-bar.controller.js +11 -88
  24. package/out/controller/control/search-bar/use-searchcond.d.ts +33 -0
  25. package/out/controller/control/search-bar/use-searchcond.d.ts.map +1 -0
  26. package/out/controller/control/search-bar/use-searchcond.js +91 -0
  27. package/out/controller/notification/async-action.controller.d.ts +64 -0
  28. package/out/controller/notification/async-action.controller.d.ts.map +1 -0
  29. package/out/controller/notification/async-action.controller.js +141 -0
  30. package/out/controller/notification/index.d.ts +2 -0
  31. package/out/controller/notification/index.d.ts.map +1 -0
  32. package/out/controller/notification/index.js +1 -0
  33. package/out/controller/notification/internal-message.controller.d.ts +23 -0
  34. package/out/controller/notification/internal-message.controller.d.ts.map +1 -0
  35. package/out/controller/notification/internal-message.controller.js +50 -0
  36. package/out/controller/notification/notice.controller.d.ts +10 -0
  37. package/out/controller/notification/notice.controller.d.ts.map +1 -0
  38. package/out/controller/notification/notice.controller.js +13 -0
  39. package/out/global/global-util/global-util.d.ts +9 -1
  40. package/out/global/global-util/global-util.d.ts.map +1 -1
  41. package/out/global/global-util/global-util.js +9 -1
  42. package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts +8 -1
  43. package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts.map +1 -1
  44. package/out/interface/common/i-popover-options/i-popover-options.d.ts +9 -1
  45. package/out/interface/common/i-popover-options/i-popover-options.d.ts.map +1 -1
  46. package/out/interface/controller/controller/index.d.ts +1 -0
  47. package/out/interface/controller/controller/index.d.ts.map +1 -1
  48. package/out/interface/controller/controller/index.js +1 -0
  49. package/out/interface/controller/controller/notice/i-async-action.controller.d.ts +49 -0
  50. package/out/interface/controller/controller/notice/i-async-action.controller.d.ts.map +1 -0
  51. package/out/interface/controller/controller/notice/i-async-action.controller.js +1 -0
  52. package/out/interface/controller/controller/notice/i-internal-message.controller.d.ts +68 -0
  53. package/out/interface/controller/controller/notice/i-internal-message.controller.d.ts.map +1 -0
  54. package/out/interface/controller/controller/notice/i-internal-message.controller.js +1 -0
  55. package/out/interface/controller/controller/notice/i-notice.controller.d.ts +33 -0
  56. package/out/interface/controller/controller/notice/i-notice.controller.d.ts.map +1 -0
  57. package/out/interface/controller/controller/notice/i-notice.controller.js +1 -0
  58. package/out/interface/controller/controller/notice/index.d.ts +4 -0
  59. package/out/interface/controller/controller/notice/index.d.ts.map +1 -0
  60. package/out/interface/controller/controller/notice/index.js +1 -0
  61. package/out/interface/provider/i-async-action.provider.d.ts +11 -3
  62. package/out/interface/provider/i-async-action.provider.d.ts.map +1 -1
  63. package/out/interface/provider/i-internal-message.provider.d.ts +10 -2
  64. package/out/interface/provider/i-internal-message.provider.d.ts.map +1 -1
  65. package/out/interface/util/i-notice-util/i-notice-util.d.ts +34 -0
  66. package/out/interface/util/i-notice-util/i-notice-util.d.ts.map +1 -0
  67. package/out/interface/util/i-notice-util/i-notice-util.js +1 -0
  68. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +2 -2
  69. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -1
  70. package/out/interface/util/index.d.ts +1 -0
  71. package/out/interface/util/index.d.ts.map +1 -1
  72. package/out/register/helper/async-action-register.d.ts +2 -1
  73. package/out/register/helper/async-action-register.d.ts.map +1 -1
  74. package/out/register/helper/async-action-register.js +3 -3
  75. package/out/register/helper/internal-message-register.js +2 -2
  76. package/out/service/service/auth/v7-auth.service.d.ts +8 -0
  77. package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
  78. package/out/service/service/auth/v7-auth.service.js +15 -0
  79. package/out/service/service/internal-message/internal-message.service.d.ts +1 -1
  80. package/out/service/service/internal-message/internal-message.service.d.ts.map +1 -1
  81. package/out/service/service/internal-message/internal-message.service.js +7 -16
  82. package/out/types.d.ts +8 -1
  83. package/out/types.d.ts.map +1 -1
  84. package/out/utils/file-util/file-util.d.ts +57 -0
  85. package/out/utils/file-util/file-util.d.ts.map +1 -0
  86. package/out/utils/file-util/file-util.js +113 -0
  87. package/out/utils/file-util/index.d.ts +2 -0
  88. package/out/utils/file-util/index.d.ts.map +1 -0
  89. package/out/utils/file-util/index.js +1 -0
  90. package/out/utils/index.d.ts +1 -0
  91. package/out/utils/index.d.ts.map +1 -1
  92. package/out/utils/index.js +1 -0
  93. package/package.json +5 -6
  94. package/src/app-hub.ts +3 -0
  95. package/src/application.ts +1 -1
  96. package/src/controller/control/exp-bar/exp-bar.controller.ts +6 -0
  97. package/src/controller/control/exp-bar/tree-exp-bar.controller.ts +17 -0
  98. package/src/controller/control/search-bar/entity-schema.ts +4 -4
  99. package/src/controller/control/search-bar/index.ts +2 -0
  100. package/src/controller/control/search-bar/search-bar-filter.controller.ts +15 -10
  101. package/src/controller/control/search-bar/search-bar.controller.ts +24 -98
  102. package/src/controller/control/search-bar/use-searchcond.ts +100 -0
  103. package/src/controller/notification/async-action.controller.ts +163 -0
  104. package/src/controller/notification/index.ts +1 -0
  105. package/src/controller/notification/internal-message.controller.ts +64 -0
  106. package/src/controller/notification/notice.controller.ts +16 -0
  107. package/src/global/global-util/global-util.ts +10 -0
  108. package/src/interface/common/i-app-hub-service/i-app-hub-service.ts +9 -1
  109. package/src/interface/common/i-popover-options/i-popover-options.ts +10 -1
  110. package/src/interface/controller/controller/index.ts +1 -0
  111. package/src/interface/controller/controller/notice/i-async-action.controller.ts +52 -0
  112. package/src/interface/controller/controller/notice/i-internal-message.controller.ts +74 -0
  113. package/src/interface/controller/controller/notice/i-notice.controller.ts +36 -0
  114. package/src/interface/controller/controller/notice/index.ts +9 -0
  115. package/src/interface/provider/i-async-action.provider.ts +14 -3
  116. package/src/interface/provider/i-internal-message.provider.ts +10 -2
  117. package/src/interface/util/i-notice-util/i-notice-util.ts +34 -0
  118. package/src/interface/util/i-open-view-util/i-open-view-util.ts +2 -1
  119. package/src/interface/util/index.ts +1 -0
  120. package/src/register/helper/async-action-register.ts +4 -4
  121. package/src/register/helper/internal-message-register.ts +2 -2
  122. package/src/service/service/auth/v7-auth.service.ts +16 -1
  123. package/src/service/service/internal-message/internal-message.service.ts +12 -18
  124. package/src/types.ts +9 -0
  125. package/src/utils/file-util/file-util.ts +141 -0
  126. package/src/utils/file-util/index.ts +1 -0
  127. package/src/utils/index.ts +1 -0
package/dist/index.esm.js CHANGED
@@ -76,7 +76,7 @@ var RegisterCenter = class {
76
76
  };
77
77
 
78
78
  // src/command/app/app-func/app-func.ts
79
- import { ModelError as ModelError16, RuntimeError as RuntimeError25 } from "@ibiz-template/core";
79
+ import { ModelError as ModelError16, RuntimeError as RuntimeError26 } from "@ibiz-template/core";
80
80
 
81
81
  // src/utils/error-handler/default-error-handler.ts
82
82
  import {
@@ -3247,8 +3247,8 @@ var baseStyle = {
3247
3247
  position: "fixed",
3248
3248
  zIndex: "10000"
3249
3249
  };
3250
- function cloneElement(clone31, teleport = document.body, isRemoveChild = true) {
3251
- const element = getAnimationElement(clone31);
3250
+ function cloneElement(clone32, teleport = document.body, isRemoveChild = true) {
3251
+ const element = getAnimationElement(clone32);
3252
3252
  if (element == null) {
3253
3253
  throw new Error("Cannot clone a null or undefined element.");
3254
3254
  }
@@ -3667,11 +3667,11 @@ function arrayContains(arr, val) {
3667
3667
  });
3668
3668
  }
3669
3669
  function cloneObject(o) {
3670
- var clone31 = {};
3670
+ var clone32 = {};
3671
3671
  for (var p in o) {
3672
- clone31[p] = o[p];
3672
+ clone32[p] = o[p];
3673
3673
  }
3674
- return clone31;
3674
+ return clone32;
3675
3675
  }
3676
3676
  function replaceObjectProps(o1, o2) {
3677
3677
  var o = cloneObject(o1);
@@ -4844,8 +4844,124 @@ var AnimeUtil = class {
4844
4844
  }
4845
4845
  };
4846
4846
 
4847
+ // src/utils/file-util/file-util.ts
4848
+ import { RuntimeError as RuntimeError5, downloadFileFromBlob } from "@ibiz-template/core";
4849
+ import qs2 from "qs";
4850
+ var FileUtil = class {
4851
+ /**
4852
+ * 计算OSSCat参数
4853
+ *
4854
+ * @author zk
4855
+ * @date 2024-01-26 02:01:52
4856
+ * @param {string} url
4857
+ * @param {IContext} context
4858
+ * @return {*} {string}
4859
+ * @memberof FileUtil
4860
+ */
4861
+ calcOSSCatUrl(url, context, OSSCatName) {
4862
+ var _a;
4863
+ let uploadUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(url);
4864
+ const app = ibiz.hub.getApp(context.srfappid);
4865
+ const OSSCat = OSSCatName || app.model.defaultOSSCat || ((_a = app.model.userParam) == null ? void 0 : _a.DefaultOSSCat);
4866
+ uploadUrl = uploadUrl.replace("/{cat}", OSSCat ? "/".concat(OSSCat) : "");
4867
+ return uploadUrl;
4868
+ }
4869
+ /**
4870
+ * 计算文件的上传路径和下载路径
4871
+ * 下载路径文件id用%fileId%占位,替换即可
4872
+ * 配置编辑器参数uploadParams和exportParams时,会像导航参数一样动态添加对应的参数到url上
4873
+ *
4874
+ * @author zk
4875
+ * @date 2024-01-26 02:01:15
4876
+ * @param {IData} data
4877
+ * @param {IContext} context
4878
+ * @param {IParams} params
4879
+ * @param {IParams} uploadParams
4880
+ * @param {IParams} exportParams
4881
+ * @return {*} {{
4882
+ * uploadUrl: string;
4883
+ * downloadUrl: string;
4884
+ * }}
4885
+ * @memberof FileUtil
4886
+ */
4887
+ calcFileUpDownUrl(context, params, data = {}, extraParams = {}) {
4888
+ const { uploadParams, exportParams, osscat: OSSCatName } = extraParams;
4889
+ let uploadUrl = this.calcOSSCatUrl(
4890
+ ibiz.env.uploadFileUrl,
4891
+ context,
4892
+ OSSCatName
4893
+ );
4894
+ let downloadUrl = this.calcOSSCatUrl(
4895
+ "".concat(ibiz.env.downloadFileUrl, "/%fileId%"),
4896
+ context,
4897
+ OSSCatName
4898
+ );
4899
+ let _uploadParams = {};
4900
+ let _exportParams = {};
4901
+ if (uploadParams) {
4902
+ _uploadParams = convertNavData(uploadParams, data, params, context);
4903
+ }
4904
+ if (exportParams) {
4905
+ _exportParams = convertNavData(exportParams, data, params, context);
4906
+ }
4907
+ uploadUrl += qs2.stringify(_uploadParams, { addQueryPrefix: true });
4908
+ downloadUrl += qs2.stringify(_exportParams, { addQueryPrefix: true });
4909
+ return { uploadUrl, downloadUrl };
4910
+ }
4911
+ /**
4912
+ * 请求url获取文件流,并用JS触发文件下载
4913
+ *
4914
+ * @author zk
4915
+ * @date 2024-01-26 02:01:29
4916
+ * @param {{ url: string; name: string }} file
4917
+ * @memberof FileUtil
4918
+ */
4919
+ async fileDownload(url, name) {
4920
+ const response = await ibiz.net.request(url, {
4921
+ method: "get",
4922
+ responseType: "blob",
4923
+ baseURL: ""
4924
+ // 已经有baseURL了,这里无需再写
4925
+ });
4926
+ if (response.status !== 200) {
4927
+ throw new RuntimeError5("\u4E0B\u8F7D\u6587\u4EF6\u5931\u8D25");
4928
+ }
4929
+ if (!response.data) {
4930
+ throw new RuntimeError5("\u6587\u4EF6\u6D41\u6570\u636E\u4E0D\u5B58\u5728");
4931
+ } else {
4932
+ const fileName = name;
4933
+ downloadFileFromBlob(response.data, fileName);
4934
+ }
4935
+ }
4936
+ /**
4937
+ * 文件上传
4938
+ *
4939
+ * @author zk
4940
+ * @date 2024-01-26 05:01:35
4941
+ * @param {string} uploadUrl
4942
+ * @param {Blob} file
4943
+ * @param {IData} headers
4944
+ * @return {*} {Promise<IData>}
4945
+ * @memberof FileUtil
4946
+ */
4947
+ async fileUpload(uploadUrl, file, headers) {
4948
+ const formData = new FormData();
4949
+ formData.append("file", file);
4950
+ const res = await ibiz.net.axios({
4951
+ url: uploadUrl,
4952
+ method: "post",
4953
+ headers,
4954
+ data: formData
4955
+ });
4956
+ if (res.status !== 200) {
4957
+ throw new RuntimeError5("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25");
4958
+ }
4959
+ return res.data;
4960
+ }
4961
+ };
4962
+
4847
4963
  // src/command/app/open-app-view/open-app-view.ts
4848
- import { ModelError as ModelError15, RuntimeError as RuntimeError24 } from "@ibiz-template/core";
4964
+ import { ModelError as ModelError15, RuntimeError as RuntimeError25 } from "@ibiz-template/core";
4849
4965
  import { clone as clone17 } from "ramda";
4850
4966
 
4851
4967
  // src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
@@ -4952,7 +5068,7 @@ var PSModelCondEngineBase = class {
4952
5068
  };
4953
5069
 
4954
5070
  // src/service/utils/de-dq-cond/ps-model-group-cond-base.ts
4955
- import { RuntimeError as RuntimeError5 } from "@ibiz-template/core";
5071
+ import { RuntimeError as RuntimeError6 } from "@ibiz-template/core";
4956
5072
 
4957
5073
  // src/service/utils/de-dq-cond/ps-model-cond-base.ts
4958
5074
  var PSModelCondBase = class {
@@ -5105,7 +5221,7 @@ var PSModelGroupCondBase = class _PSModelGroupCondBase extends PSModelCondBase {
5105
5221
  }
5106
5222
  });
5107
5223
  } else {
5108
- throw new RuntimeError5("\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4");
5224
+ throw new RuntimeError6("\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4");
5109
5225
  }
5110
5226
  }
5111
5227
  }
@@ -5227,7 +5343,7 @@ _PSDEDQCondEngine.PARAMTYPE_WEBCONTEXT = "WEBCONTEXT";
5227
5343
  var PSDEDQCondEngine = _PSDEDQCondEngine;
5228
5344
 
5229
5345
  // src/register/helper/app-counter-register.ts
5230
- import { RuntimeError as RuntimeError6 } from "@ibiz-template/core";
5346
+ import { RuntimeError as RuntimeError7 } from "@ibiz-template/core";
5231
5347
 
5232
5348
  // src/register/helper/common-register.ts
5233
5349
  async function getPluginRegisterKey(pluginId, appId2) {
@@ -5271,14 +5387,14 @@ async function getAppCounterProvider(model) {
5271
5387
  if (counterType === "CUSTOM") {
5272
5388
  provider = getProvider(codeName);
5273
5389
  if (!provider) {
5274
- throw new RuntimeError6("\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u7CFB\u7EDF\u8BA1\u6570\u5668".concat(codeName, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
5390
+ throw new RuntimeError7("\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u7CFB\u7EDF\u8BA1\u6570\u5668".concat(codeName, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
5275
5391
  } else {
5276
5392
  return provider;
5277
5393
  }
5278
5394
  }
5279
5395
  provider = getProvider(counterType);
5280
5396
  if (!provider) {
5281
- throw new RuntimeError6("\u627E\u4E0D\u7CFB\u7EDF\u8BA1\u6570\u5668\u7C7B\u578B".concat(counterType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
5397
+ throw new RuntimeError7("\u627E\u4E0D\u7CFB\u7EDF\u8BA1\u6570\u5668\u7C7B\u578B".concat(counterType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
5282
5398
  } else {
5283
5399
  return provider;
5284
5400
  }
@@ -5564,7 +5680,7 @@ async function getPortletProvider(model) {
5564
5680
  }
5565
5681
 
5566
5682
  // src/register/helper/ui-action-register.ts
5567
- import { RuntimeError as RuntimeError7 } from "@ibiz-template/core";
5683
+ import { RuntimeError as RuntimeError8 } from "@ibiz-template/core";
5568
5684
  var UIACTION_PROVIDER_PREFIX = "UIACTION";
5569
5685
  function registerUIActionProvider(key, callback) {
5570
5686
  ibiz.register.register("".concat(UIACTION_PROVIDER_PREFIX, "_").concat(key), callback);
@@ -5594,14 +5710,14 @@ async function getUIActionProvider(model) {
5594
5710
  }
5595
5711
  provider = getProvider8(uiactionMode);
5596
5712
  if (!provider) {
5597
- throw new RuntimeError7("\u627E\u4E0D\u754C\u9762\u884C\u4E3A\u6A21\u5F0F".concat(uiactionMode, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
5713
+ throw new RuntimeError8("\u627E\u4E0D\u754C\u9762\u884C\u4E3A\u6A21\u5F0F".concat(uiactionMode, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
5598
5714
  } else {
5599
5715
  return provider;
5600
5716
  }
5601
5717
  }
5602
5718
 
5603
5719
  // src/register/helper/ui-logic-node-register.ts
5604
- import { RuntimeError as RuntimeError8 } from "@ibiz-template/core";
5720
+ import { RuntimeError as RuntimeError9 } from "@ibiz-template/core";
5605
5721
  var UILOGINNODE_PROVIDER_PREFIX = "UI_LOGIN_NODE";
5606
5722
  function registerUILogicNodeProvider(key, callback) {
5607
5723
  ibiz.register.register("".concat(UILOGINNODE_PROVIDER_PREFIX, "_").concat(key), callback);
@@ -5617,7 +5733,7 @@ async function getUILogicNodeProvider(model) {
5617
5733
  if (provider) {
5618
5734
  return provider;
5619
5735
  }
5620
- throw new RuntimeError8(
5736
+ throw new RuntimeError9(
5621
5737
  "\u627E\u4E0D\u5230\u754C\u9762\u903B\u8F91\u524D\u7AEF\u63D2\u4EF6\u8282\u70B9\uFF0C\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668")
5622
5738
  );
5623
5739
  }
@@ -5667,7 +5783,7 @@ async function getViewProvider(model) {
5667
5783
  }
5668
5784
 
5669
5785
  // src/register/helper/async-action-register.ts
5670
- import { RuntimeError as RuntimeError9 } from "@ibiz-template/core";
5786
+ import { RuntimeError as RuntimeError10 } from "@ibiz-template/core";
5671
5787
  var ASYNC_ACTION_PROVIDER_PREFIX = "ASYNC_ACTION";
5672
5788
  function registerAsyncActionProvider(key, callback) {
5673
5789
  ibiz.register.register("".concat(ASYNC_ACTION_PROVIDER_PREFIX, "_").concat(key), callback);
@@ -5677,19 +5793,19 @@ function getProvider10(key) {
5677
5793
  "".concat(ASYNC_ACTION_PROVIDER_PREFIX, "_").concat(key)
5678
5794
  );
5679
5795
  }
5680
- function getAsyncActionProvider(actiontype) {
5796
+ function getAsyncActionProvider(action) {
5681
5797
  const provider = getProvider10(
5682
- actiontype || "DEFAULT"
5798
+ action.actiontype || "DEFAULT"
5683
5799
  );
5684
5800
  if (!provider) {
5685
- throw new RuntimeError9("\u627E\u4E0D\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B".concat(actiontype, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
5801
+ throw new RuntimeError10("\u627E\u4E0D\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B".concat(action.actiontype, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
5686
5802
  } else {
5687
5803
  return provider;
5688
5804
  }
5689
5805
  }
5690
5806
 
5691
5807
  // src/platform/provider/platform-provider-base.ts
5692
- import { downloadFileFromBlob, RuntimeError as RuntimeError10 } from "@ibiz-template/core";
5808
+ import { downloadFileFromBlob as downloadFileFromBlob2, RuntimeError as RuntimeError11 } from "@ibiz-template/core";
5693
5809
  var PlatformProviderBase = class {
5694
5810
  back() {
5695
5811
  throw new Error("Method not implemented.");
@@ -5707,13 +5823,13 @@ var PlatformProviderBase = class {
5707
5823
  baseURL: ""
5708
5824
  });
5709
5825
  if (response.status !== 200) {
5710
- throw new RuntimeError10("\u4E0B\u8F7D\u6587\u4EF6\u5931\u8D25");
5826
+ throw new RuntimeError11("\u4E0B\u8F7D\u6587\u4EF6\u5931\u8D25");
5711
5827
  }
5712
5828
  if (!response.data) {
5713
- throw new RuntimeError10("\u6587\u4EF6\u6D41\u6570\u636E\u4E0D\u5B58\u5728");
5829
+ throw new RuntimeError11("\u6587\u4EF6\u6D41\u6570\u636E\u4E0D\u5B58\u5728");
5714
5830
  } else {
5715
5831
  const fileName = name;
5716
- downloadFileFromBlob(response.data, fileName);
5832
+ downloadFileFromBlob2(response.data, fileName);
5717
5833
  return Promise.resolve(true);
5718
5834
  }
5719
5835
  }
@@ -5785,7 +5901,7 @@ function getPlatformProvider() {
5785
5901
  }
5786
5902
 
5787
5903
  // src/register/helper/de-method-register.ts
5788
- import { RuntimeError as RuntimeError11 } from "@ibiz-template/core";
5904
+ import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
5789
5905
  var DEMETHOD_PROVIDER_PREFIX = "DEMETHOD";
5790
5906
  function registerDEMethodProvider(key, callback) {
5791
5907
  ibiz.register.register("".concat(DEMETHOD_PROVIDER_PREFIX, "_").concat(key), callback);
@@ -5811,7 +5927,7 @@ async function getDEMethodProvider(model) {
5811
5927
  }
5812
5928
  provider = getProvider12(methodType);
5813
5929
  if (!provider) {
5814
- throw new RuntimeError11("\u627E\u4E0D\u5B9E\u4F53\u884C\u4E3A\u65B9\u6CD5\u7C7B\u578B\u4E3A".concat(methodType, "\u7684\u9002\u914D\u5668"));
5930
+ throw new RuntimeError12("\u627E\u4E0D\u5B9E\u4F53\u884C\u4E3A\u65B9\u6CD5\u7C7B\u578B\u4E3A".concat(methodType, "\u7684\u9002\u914D\u5668"));
5815
5931
  } else {
5816
5932
  return provider;
5817
5933
  }
@@ -5881,7 +5997,7 @@ async function getAppMenuItemProvider(model) {
5881
5997
  }
5882
5998
 
5883
5999
  // src/register/helper/internal-message-register.ts
5884
- import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
6000
+ import { RuntimeError as RuntimeError13 } from "@ibiz-template/core";
5885
6001
  var INTERNAL_MESSAGE_PROVIDER_PREFIX = "INTERNAL_MESSAGE";
5886
6002
  function registerInternalMessageProvider(key, callback) {
5887
6003
  ibiz.register.register(
@@ -5896,17 +6012,17 @@ function getProvider15(key) {
5896
6012
  }
5897
6013
  function getInternalMessageProvider(msg) {
5898
6014
  const provider = getProvider15(
5899
- msg.message_type || "DEFAULT"
6015
+ msg.content_type || "DEFAULT"
5900
6016
  );
5901
6017
  if (!provider) {
5902
- throw new RuntimeError12("\u627E\u4E0D\u7AD9\u5185\u4FE1\u7C7B\u578B".concat(msg.message_type, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
6018
+ throw new RuntimeError13("\u627E\u4E0D\u7AD9\u5185\u4FE1\u7C7B\u578B".concat(msg.content_type, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
5903
6019
  } else {
5904
6020
  return provider;
5905
6021
  }
5906
6022
  }
5907
6023
 
5908
6024
  // src/service/utils/app-counter/app-counter.ts
5909
- import { IBizContext, RuntimeError as RuntimeError13 } from "@ibiz-template/core";
6025
+ import { IBizContext, RuntimeError as RuntimeError14 } from "@ibiz-template/core";
5910
6026
  import { notNilEmpty as notNilEmpty5, QXEvent as QXEvent2 } from "qx-util";
5911
6027
  import { clone as clone3 } from "ramda";
5912
6028
  var AppCounter = class {
@@ -6011,7 +6127,7 @@ var AppCounter = class {
6011
6127
  * @return {*} {Promise<IData>}
6012
6128
  */
6013
6129
  async load() {
6014
- throw new RuntimeError13("\u672A\u5B9E\u73B0\u8BA1\u6570\u5668\u52A0\u8F7D\u65B9\u6CD5");
6130
+ throw new RuntimeError14("\u672A\u5B9E\u73B0\u8BA1\u6570\u5668\u52A0\u8F7D\u65B9\u6CD5");
6015
6131
  }
6016
6132
  /**
6017
6133
  * 计数器刷新
@@ -6471,10 +6587,10 @@ var DynamicCodeListCache = class {
6471
6587
  // src/service/utils/de-cache/de-cache.ts
6472
6588
  import { where, equals, clone as clone4, isNil as isNil5, isEmpty as isEmpty5 } from "ramda";
6473
6589
  import { createUUID as createUUID2 } from "qx-util";
6474
- import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
6590
+ import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
6475
6591
 
6476
6592
  // src/service/utils/service-exist-util/service-exist-util.ts
6477
- import { RuntimeError as RuntimeError14 } from "@ibiz-template/core";
6593
+ import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
6478
6594
  import { isEmpty as isEmpty4, isNil as isNil4 } from "ramda";
6479
6595
  function isExistSrfKey(funcName, entity) {
6480
6596
  if (entity != null) {
@@ -6483,14 +6599,14 @@ function isExistSrfKey(funcName, entity) {
6483
6599
  return true;
6484
6600
  }
6485
6601
  }
6486
- throw new RuntimeError14("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfkey\u300D\u65E0\u6CD5\u5904\u7406"));
6602
+ throw new RuntimeError15("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfkey\u300D\u65E0\u6CD5\u5904\u7406"));
6487
6603
  }
6488
6604
  function isExistSessionId(funcName, context) {
6489
6605
  const { srfsessionid } = context;
6490
6606
  if (!isNil4(srfsessionid) && !isEmpty4(srfsessionid)) {
6491
6607
  return true;
6492
6608
  }
6493
- throw new RuntimeError14("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
6609
+ throw new RuntimeError15("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
6494
6610
  }
6495
6611
 
6496
6612
  // src/service/utils/de-cache/de-cache.ts
@@ -6576,7 +6692,7 @@ var DECache = class {
6576
6692
  if (this.isUnionKey) {
6577
6693
  this.calcUnionKey(entity);
6578
6694
  if (this.checkData(context, entity.srfkey)) {
6579
- throw new RuntimeError15(
6695
+ throw new RuntimeError16(
6580
6696
  "\u65B0\u5EFA\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
6581
6697
  );
6582
6698
  }
@@ -6637,7 +6753,7 @@ var DECache = class {
6637
6753
  if (this.isUnionKey) {
6638
6754
  this.calcUnionKey(entity);
6639
6755
  if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
6640
- throw new RuntimeError15(
6756
+ throw new RuntimeError16(
6641
6757
  "\u66F4\u65B0\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
6642
6758
  );
6643
6759
  }
@@ -6773,7 +6889,7 @@ var DECache = class {
6773
6889
  if (this.isUnionKey) {
6774
6890
  this.calcUnionKey(entity);
6775
6891
  if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
6776
- throw new RuntimeError15(
6892
+ throw new RuntimeError16(
6777
6893
  "\u66F4\u65B0\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
6778
6894
  );
6779
6895
  }
@@ -7115,7 +7231,7 @@ async function calcDynaSysParams(appDataEntityId, context, opts = {}) {
7115
7231
  }
7116
7232
 
7117
7233
  // src/service/service/code-list/code-list.service.ts
7118
- import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
7234
+ import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
7119
7235
  var CodeListService = class {
7120
7236
  constructor(appModel) {
7121
7237
  this.appModel = appModel;
@@ -7262,7 +7378,7 @@ var CodeListService = class {
7262
7378
  async get(tag, context, params) {
7263
7379
  const codeList = this.allCodeLists.get(tag);
7264
7380
  if (!codeList) {
7265
- throw new RuntimeError16("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
7381
+ throw new RuntimeError17("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
7266
7382
  }
7267
7383
  if (codeList.codeListType === "STATIC") {
7268
7384
  return this.getStatic(codeList);
@@ -7384,12 +7500,12 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
7384
7500
  // src/service/service/entity/de.service.ts
7385
7501
  import {
7386
7502
  ModelError as ModelError7,
7387
- RuntimeError as RuntimeError18,
7503
+ RuntimeError as RuntimeError19,
7388
7504
  RuntimeModelError as RuntimeModelError10
7389
7505
  } from "@ibiz-template/core";
7390
7506
 
7391
7507
  // src/service/service/work-flow/work-flow.service.ts
7392
- import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
7508
+ import { RuntimeError as RuntimeError18 } from "@ibiz-template/core";
7393
7509
  var WorkFlowService = class {
7394
7510
  /**
7395
7511
  * Creates an instance of WorkFlowService.
@@ -7711,7 +7827,7 @@ var WorkFlowService = class {
7711
7827
  case "sendcopy":
7712
7828
  return this.wfSendCopy(context, params, data);
7713
7829
  default: {
7714
- throw new RuntimeError17("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
7830
+ throw new RuntimeError18("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
7715
7831
  }
7716
7832
  }
7717
7833
  }
@@ -8291,7 +8407,7 @@ var DEService = class {
8291
8407
  if (method) {
8292
8408
  return method.exec(context, params, params2);
8293
8409
  }
8294
- throw new RuntimeError18("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
8410
+ throw new RuntimeError19("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
8295
8411
  }
8296
8412
  getDraft(context, params, params2) {
8297
8413
  return this.exec("GetDraft", context, params, params2);
@@ -8345,7 +8461,7 @@ var DEService = class {
8345
8461
  if (method) {
8346
8462
  return method.exec(context, params, params2);
8347
8463
  }
8348
- throw new RuntimeError18("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
8464
+ throw new RuntimeError19("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
8349
8465
  }
8350
8466
  /**
8351
8467
  * 实体级别 AI 聊天会话
@@ -8738,7 +8854,7 @@ var ControlService = class {
8738
8854
  };
8739
8855
 
8740
8856
  // src/service/service/control/md-control.service.ts
8741
- import { RuntimeError as RuntimeError19 } from "@ibiz-template/core";
8857
+ import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
8742
8858
  import { isArray as isArray3 } from "qx-util";
8743
8859
  var MDControlService = class extends ControlService {
8744
8860
  /**
@@ -8867,7 +8983,7 @@ var MDControlService = class extends ControlService {
8867
8983
  * @returns {*} {Promise<IHttpResponse>}
8868
8984
  */
8869
8985
  async exportData(_dataExport, _context, _params = {}) {
8870
- throw new RuntimeError19("\u672A\u5B9E\u73B0");
8986
+ throw new RuntimeError20("\u672A\u5B9E\u73B0");
8871
8987
  }
8872
8988
  /**
8873
8989
  * 处理响应
@@ -8902,7 +9018,7 @@ var MDControlService = class extends ControlService {
8902
9018
  };
8903
9019
 
8904
9020
  // src/service/service/authority/authority.service.ts
8905
- import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
9021
+ import { RuntimeError as RuntimeError21 } from "@ibiz-template/core";
8906
9022
 
8907
9023
  // src/service/service/authority/de-authority.service.ts
8908
9024
  var DeAuthorityService = class {
@@ -9038,7 +9154,7 @@ var AuthorityService = class {
9038
9154
  this.appModel.appId
9039
9155
  );
9040
9156
  if (!entityModel) {
9041
- throw new RuntimeError20("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
9157
+ throw new RuntimeError21("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
9042
9158
  }
9043
9159
  const constructor = this.constructorCache.get(id);
9044
9160
  let service;
@@ -9220,6 +9336,7 @@ var V7AuthService = class {
9220
9336
  true
9221
9337
  );
9222
9338
  }
9339
+ await this.loadAppData();
9223
9340
  ibiz.hub.getAllApps().forEach((app) => {
9224
9341
  app.initMqtt();
9225
9342
  });
@@ -9236,6 +9353,19 @@ var V7AuthService = class {
9236
9353
  isAnonymous
9237
9354
  } : void 0;
9238
9355
  }
9356
+ /**
9357
+ * 加载应用数据
9358
+ *
9359
+ * @author chitanda
9360
+ * @date 2022-07-20 20:07:50
9361
+ * @return {*} {Promise<void>}
9362
+ */
9363
+ async loadAppData() {
9364
+ const res = await ibiz.net.get("/appdata");
9365
+ if (res.ok) {
9366
+ ibiz.appData = res.data;
9367
+ }
9368
+ }
9239
9369
  };
9240
9370
 
9241
9371
  // src/service/service/async-action/async-action.service.ts
@@ -9272,7 +9402,7 @@ var AsyncActionService = class {
9272
9402
  import {
9273
9403
  HttpError as HttpError5,
9274
9404
  HttpResponse as HttpResponse3,
9275
- RuntimeError as RuntimeError22,
9405
+ RuntimeError as RuntimeError23,
9276
9406
  RuntimeModelError as RuntimeModelError22
9277
9407
  } from "@ibiz-template/core";
9278
9408
  import { isArray as isArray6, isNil as isNil10 } from "lodash-es";
@@ -9503,7 +9633,7 @@ var Method = class {
9503
9633
  };
9504
9634
 
9505
9635
  // src/de-logic/index.ts
9506
- import { HttpError as HttpError4, HttpResponse as HttpResponse2, RuntimeError as RuntimeError21 } from "@ibiz-template/core";
9636
+ import { HttpError as HttpError4, HttpResponse as HttpResponse2, RuntimeError as RuntimeError22 } from "@ibiz-template/core";
9507
9637
  import { isArray as isArray5 } from "lodash-es";
9508
9638
  import { clone as clone13 } from "ramda";
9509
9639
 
@@ -10565,7 +10695,7 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
10565
10695
  context.srfappid
10566
10696
  );
10567
10697
  if (!deLogic) {
10568
- throw new RuntimeError21("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
10698
+ throw new RuntimeError22("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
10569
10699
  }
10570
10700
  return execDELogic(deLogic, context, data, params);
10571
10701
  }
@@ -10710,7 +10840,7 @@ var DEActionMethod = class extends Method {
10710
10840
  */
10711
10841
  async create(context, data, params) {
10712
10842
  if (!data) {
10713
- throw new RuntimeError22("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
10843
+ throw new RuntimeError23("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
10714
10844
  }
10715
10845
  if (this.isLocalMode) {
10716
10846
  return this.createTemp(context, this.createEntity(data));
@@ -10752,7 +10882,7 @@ var DEActionMethod = class extends Method {
10752
10882
  */
10753
10883
  async update(context, data, params) {
10754
10884
  if (!data) {
10755
- throw new RuntimeError22("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
10885
+ throw new RuntimeError23("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
10756
10886
  }
10757
10887
  if (this.isLocalMode) {
10758
10888
  return this.updateTemp(context, this.createEntity(data));
@@ -11261,9 +11391,16 @@ var InternalMessageService = class {
11261
11391
  * @return {*} {Promise<IHttpResponse<IInternalMessage[]>>}
11262
11392
  */
11263
11393
  async fetch(params = {}) {
11264
- const res = {
11265
- ok: true
11394
+ const fetchParams = {
11395
+ page: 0,
11396
+ size: 20,
11397
+ sort: "update_time,desc"
11266
11398
  };
11399
+ Object.assign(fetchParams, params);
11400
+ const res = await ibiz.net.post(
11401
+ "".concat(this.baseUrl, "/fetch_cur_receiver"),
11402
+ fetchParams
11403
+ );
11267
11404
  if (res.headers) {
11268
11405
  if (res.headers["x-page"]) {
11269
11406
  res.page = Number(res.headers["x-page"]);
@@ -11278,16 +11415,6 @@ var InternalMessageService = class {
11278
11415
  if (isNil12(res.data)) {
11279
11416
  res.data = [];
11280
11417
  }
11281
- res.page = params.page;
11282
- res.total = 34;
11283
- res.data = Array.from({ length: params.size }, (_, i) => ({
11284
- id: i + 1,
11285
- status: "RECEIVED",
11286
- title: "\u6807\u9898".concat(i + 1),
11287
- content: "\u5185\u5BB9".concat(i + 1, "\u957F\u5185\u5BB9"),
11288
- short_content: "\u5185\u5BB9".concat(i + 1, "\u77ED\u5185\u5BB9"),
11289
- create_time: (/* @__PURE__ */ new Date()).toISOString()
11290
- }));
11291
11418
  return res;
11292
11419
  }
11293
11420
  /**
@@ -12154,7 +12281,7 @@ var MqttService = class {
12154
12281
  };
12155
12282
 
12156
12283
  // src/service/de-service-util.ts
12157
- import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
12284
+ import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
12158
12285
  var _DEServiceUtil = class _DEServiceUtil {
12159
12286
  /**
12160
12287
  * Creates an instance of DEServiceUtil.
@@ -12207,7 +12334,7 @@ var _DEServiceUtil = class _DEServiceUtil {
12207
12334
  this.appModel.appId
12208
12335
  );
12209
12336
  if (!entityModel) {
12210
- throw new RuntimeError23("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
12337
+ throw new RuntimeError24("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
12211
12338
  }
12212
12339
  const constructor = _DEServiceUtil.constructorCache.get(id.toUpperCase());
12213
12340
  let service;
@@ -12339,7 +12466,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
12339
12466
  const context = clone17(_context);
12340
12467
  const appView = await ibiz.hub.config.view.get(appViewId);
12341
12468
  if (!appView) {
12342
- throw new RuntimeError24("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
12469
+ throw new RuntimeError25("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
12343
12470
  }
12344
12471
  if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
12345
12472
  const deName = calcDeCodeNameById(appView.appDataEntityId);
@@ -12451,7 +12578,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
12451
12578
  */
12452
12579
  async openPopover(appView, event, context, params = {}) {
12453
12580
  if (!event) {
12454
- throw new RuntimeError24("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
12581
+ throw new RuntimeError25("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
12455
12582
  }
12456
12583
  return ibiz.openView.popover(appView.id, event, context, params);
12457
12584
  }
@@ -12507,7 +12634,7 @@ var _AppFuncCommand = class _AppFuncCommand {
12507
12634
  const app = await ibiz.hub.getAppAsync(context.srfappid);
12508
12635
  const appFunc = app.getAppFunc(appFuncId);
12509
12636
  if (!appFunc) {
12510
- throw new RuntimeError25("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
12637
+ throw new RuntimeError26("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
12511
12638
  }
12512
12639
  const { navigateContexts, navigateParams, appFuncType } = appFunc;
12513
12640
  const _context = context.clone();
@@ -12541,7 +12668,7 @@ var _AppFuncCommand = class _AppFuncCommand {
12541
12668
  */
12542
12669
  async openAppView(appFunc, context, params, opts) {
12543
12670
  if (!appFunc.appViewId) {
12544
- throw new RuntimeError25("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
12671
+ throw new RuntimeError26("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
12545
12672
  }
12546
12673
  return ibiz.commands.execute(
12547
12674
  OpenAppViewCommand.TAG,
@@ -12575,7 +12702,7 @@ var _AppFuncCommand = class _AppFuncCommand {
12575
12702
  */
12576
12703
  openPdAppFunc(appFunc, context, params) {
12577
12704
  ibiz.log.warn("openPdAppFunc", appFunc, context, params);
12578
- throw new RuntimeError25("\u672A\u5B9E\u73B0");
12705
+ throw new RuntimeError26("\u672A\u5B9E\u73B0");
12579
12706
  }
12580
12707
  /**
12581
12708
  * 执行 JavaScript 脚本
@@ -12589,7 +12716,7 @@ var _AppFuncCommand = class _AppFuncCommand {
12589
12716
  */
12590
12717
  executeJavaScript(appFunc, context, params) {
12591
12718
  ibiz.log.warn("executeJavaScript", appFunc, context, params);
12592
- throw new RuntimeError25("\u672A\u5B9E\u73B0");
12719
+ throw new RuntimeError26("\u672A\u5B9E\u73B0");
12593
12720
  }
12594
12721
  /**
12595
12722
  * 自定义应用功能
@@ -12603,7 +12730,7 @@ var _AppFuncCommand = class _AppFuncCommand {
12603
12730
  */
12604
12731
  custom(appFunc, context, params) {
12605
12732
  ibiz.log.warn("custom", appFunc, context, params);
12606
- throw new RuntimeError25("\u672A\u5B9E\u73B0");
12733
+ throw new RuntimeError26("\u672A\u5B9E\u73B0");
12607
12734
  }
12608
12735
  };
12609
12736
  /**
@@ -12624,7 +12751,7 @@ function installCommand() {
12624
12751
  }
12625
12752
 
12626
12753
  // src/app-hub.ts
12627
- import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
12754
+ import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
12628
12755
 
12629
12756
  // src/application.ts
12630
12757
  import { Net, getToken } from "@ibiz-template/core";
@@ -12792,7 +12919,7 @@ var Application = class {
12792
12919
  this.model.appId
12793
12920
  );
12794
12921
  this.mqtt.evt.on("message", (message) => {
12795
- ibiz.mc.command.asyncAction.next(message);
12922
+ ibiz.mc.command.next(message);
12796
12923
  });
12797
12924
  await this.mqtt.connect();
12798
12925
  }
@@ -12828,7 +12955,7 @@ var Convert = class {
12828
12955
  };
12829
12956
 
12830
12957
  // src/hub/config/app-view-config-service.ts
12831
- import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
12958
+ import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
12832
12959
  var AppViewConfigService = class {
12833
12960
  constructor() {
12834
12961
  /**
@@ -12870,7 +12997,7 @@ var AppViewConfigService = class {
12870
12997
  if (!this.viewConfigs.has(id)) {
12871
12998
  const model = await ibiz.hub.getAppView(id);
12872
12999
  if (!model) {
12873
- throw new RuntimeError26("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
13000
+ throw new RuntimeError27("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
12874
13001
  }
12875
13002
  this.set(model.id, {
12876
13003
  id: model.id,
@@ -12934,14 +13061,14 @@ var TreeGridExNotifyState = /* @__PURE__ */ ((TreeGridExNotifyState2) => {
12934
13061
 
12935
13062
  // src/controller/common/view/view.controller.ts
12936
13063
  import { notNilEmpty as notNilEmpty6 } from "qx-util";
12937
- import { IBizContext as IBizContext2, RuntimeError as RuntimeError33 } from "@ibiz-template/core";
13064
+ import { IBizContext as IBizContext2, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
12938
13065
  import { isEmpty as isEmpty8, isNil as isNil20, isNotNil as isNotNil2 } from "ramda";
12939
13066
 
12940
13067
  // src/controller/utils/loading/loading.state.ts
12941
13068
  import { NOOP } from "@ibiz-template/core";
12942
13069
 
12943
13070
  // src/controller/utils/counter/counter.ts
12944
- import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
13071
+ import { RuntimeError as RuntimeError28 } from "@ibiz-template/core";
12945
13072
  var Counter = class {
12946
13073
  /**
12947
13074
  * Creates an instance of Counter.
@@ -13003,7 +13130,7 @@ var Counter = class {
13003
13130
  return;
13004
13131
  }
13005
13132
  if (this.count === 0) {
13006
- throw new RuntimeError27("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
13133
+ throw new RuntimeError28("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
13007
13134
  }
13008
13135
  this.count -= 1;
13009
13136
  if (this.count === 0) {
@@ -13583,7 +13710,7 @@ function getOriginData(data) {
13583
13710
  }
13584
13711
 
13585
13712
  // src/controller/utils/value-rule/value-rule.ts
13586
- import { RuntimeError as RuntimeError28 } from "@ibiz-template/core";
13713
+ import { RuntimeError as RuntimeError29 } from "@ibiz-template/core";
13587
13714
  import { isNilOrEmpty as isNilOrEmpty6, isNumber } from "qx-util";
13588
13715
  import { isNil as isNil16 } from "ramda";
13589
13716
  function generateRules(itemVRs, name, valueItemName) {
@@ -13633,7 +13760,7 @@ function generateRules(itemVRs, name, valueItemName) {
13633
13760
  deRule.groupCond
13634
13761
  );
13635
13762
  if (!isPast) {
13636
- callback(new RuntimeError28(infoMessage || deRule.ruleInfo));
13763
+ callback(new RuntimeError29(infoMessage || deRule.ruleInfo));
13637
13764
  }
13638
13765
  return true;
13639
13766
  },
@@ -13703,7 +13830,7 @@ function generateEditorRules(editor) {
13703
13830
  }
13704
13831
 
13705
13832
  // src/controller/utils/value-ex/value-ex.ts
13706
- import { RuntimeError as RuntimeError29 } from "@ibiz-template/core";
13833
+ import { RuntimeError as RuntimeError30 } from "@ibiz-template/core";
13707
13834
  import { isNil as isNil17, mergeLeft } from "ramda";
13708
13835
  var ValueExUtil = class {
13709
13836
  /**
@@ -13735,7 +13862,7 @@ var ValueExUtil = class {
13735
13862
  const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
13736
13863
  if (["OBJECTS", "OBJECT"].includes(valueType)) {
13737
13864
  if (!objectNameField) {
13738
- throw new RuntimeError29("\u7F3A\u5C11objectNameField");
13865
+ throw new RuntimeError30("\u7F3A\u5C11objectNameField");
13739
13866
  }
13740
13867
  const textKey = objectNameField.toLowerCase();
13741
13868
  if (valueType === "OBJECTS") {
@@ -13751,7 +13878,7 @@ var ValueExUtil = class {
13751
13878
  };
13752
13879
 
13753
13880
  // src/controller/utils/value-default/value-default.ts
13754
- import { RuntimeError as RuntimeError30, ModelError as ModelError17 } from "@ibiz-template/core";
13881
+ import { RuntimeError as RuntimeError31, ModelError as ModelError17 } from "@ibiz-template/core";
13755
13882
  import dayjs from "dayjs";
13756
13883
  import { createUUID as createUUID8 } from "qx-util";
13757
13884
  import { isNil as isNil18, isNotNil } from "ramda";
@@ -13792,7 +13919,7 @@ function getDefaultValue(opts, origins) {
13792
13919
  case "SESSION":
13793
13920
  case "APPLICATION":
13794
13921
  if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
13795
- throw new RuntimeError30("appdata.context\u4E0D\u5B58\u5728");
13922
+ throw new RuntimeError31("appdata.context\u4E0D\u5B58\u5728");
13796
13923
  }
13797
13924
  return ibiz.appData.context[defaultValue];
13798
13925
  case "CONTEXT":
@@ -13806,7 +13933,7 @@ function getDefaultValue(opts, origins) {
13806
13933
 
13807
13934
  // src/controller/utils/data-file-util/data-file-util.ts
13808
13935
  import {
13809
- RuntimeError as RuntimeError31
13936
+ RuntimeError as RuntimeError32
13810
13937
  } from "@ibiz-template/core";
13811
13938
  var asyncImportUrl = "asyncimportdata2";
13812
13939
  var importUrl = "importdata2";
@@ -13860,11 +13987,11 @@ async function importData(file, appDataEntity, dataImport) {
13860
13987
  }
13861
13988
  async function exportData(header, data, fileName) {
13862
13989
  if (!ibiz.util.getExcelUtil) {
13863
- throw new RuntimeError31("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
13990
+ throw new RuntimeError32("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
13864
13991
  }
13865
13992
  const exportExcel = await ibiz.util.getExcelUtil();
13866
13993
  if (!exportExcel) {
13867
- throw new RuntimeError31("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
13994
+ throw new RuntimeError32("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
13868
13995
  }
13869
13996
  try {
13870
13997
  exportExcel.exportJsonToExcel({
@@ -14112,7 +14239,7 @@ var BaseController = class {
14112
14239
  };
14113
14240
 
14114
14241
  // src/controller/utils/view-msg/view-msg-controller.ts
14115
- import { RuntimeError as RuntimeError32, RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
14242
+ import { RuntimeError as RuntimeError33, RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
14116
14243
  import { isNil as isNil19, mergeRight as mergeRight2 } from "ramda";
14117
14244
  var ViewMsgController = class _ViewMsgController {
14118
14245
  constructor(msgGroupId) {
@@ -14138,7 +14265,7 @@ var ViewMsgController = class _ViewMsgController {
14138
14265
  (item) => item.id === this.msgGroupId
14139
14266
  );
14140
14267
  if (!msgGroup) {
14141
- throw new RuntimeError32("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
14268
+ throw new RuntimeError33("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
14142
14269
  }
14143
14270
  this.msgGroup = msgGroup;
14144
14271
  const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
@@ -14152,7 +14279,7 @@ var ViewMsgController = class _ViewMsgController {
14152
14279
  }
14153
14280
  });
14154
14281
  if (msgDetailsViewMsgIds.length) {
14155
- throw new RuntimeError32(
14282
+ throw new RuntimeError33(
14156
14283
  "\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
14157
14284
  );
14158
14285
  }
@@ -14582,7 +14709,7 @@ var ViewController = class extends BaseController {
14582
14709
  async callUIAction(key, args) {
14583
14710
  const result = this.call(key, args);
14584
14711
  if (result === void 0) {
14585
- throw new RuntimeError33("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
14712
+ throw new RuntimeError34("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
14586
14713
  }
14587
14714
  return result;
14588
14715
  }
@@ -15265,7 +15392,7 @@ var ControlController = class extends BaseController {
15265
15392
  };
15266
15393
 
15267
15394
  // src/controller/common/control/md-control.controller.ts
15268
- import { isElementSame, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
15395
+ import { isElementSame, RuntimeError as RuntimeError35 } from "@ibiz-template/core";
15269
15396
  import { debounce } from "lodash-es";
15270
15397
  var MDControlController = class extends ControlController {
15271
15398
  constructor() {
@@ -15548,7 +15675,7 @@ var MDControlController = class extends ControlController {
15548
15675
  async remove(args) {
15549
15676
  const { context, params, data } = this.handlerAbilityParams(args);
15550
15677
  if (!(data == null ? void 0 : data.length)) {
15551
- throw new RuntimeError34("\u672A\u9009\u4E2D\u6570\u636E");
15678
+ throw new RuntimeError35("\u672A\u9009\u4E2D\u6570\u636E");
15552
15679
  }
15553
15680
  if ((args == null ? void 0 : args.silent) !== true) {
15554
15681
  const del = await ibiz.confirm.error({
@@ -15697,7 +15824,7 @@ var MDControlController = class extends ControlController {
15697
15824
  (importItem) => importItem.id === dedataImportId
15698
15825
  );
15699
15826
  if (!dataImport) {
15700
- throw new RuntimeError34("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
15827
+ throw new RuntimeError35("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
15701
15828
  }
15702
15829
  let importName = "DataImport";
15703
15830
  if (dataImport.enableCustomized) {
@@ -15731,7 +15858,7 @@ var MDControlController = class extends ControlController {
15731
15858
  // src/controller/control/app-menu/app-menu.controller.ts
15732
15859
  import {
15733
15860
  findRecursiveChild,
15734
- RuntimeError as RuntimeError35,
15861
+ RuntimeError as RuntimeError36,
15735
15862
  RuntimeModelError as RuntimeModelError26
15736
15863
  } from "@ibiz-template/core";
15737
15864
  var AppMenuController = class extends ControlController {
@@ -15800,7 +15927,7 @@ var AppMenuController = class extends ControlController {
15800
15927
  childrenFields: ["appMenuItems"]
15801
15928
  });
15802
15929
  if (!menuItem) {
15803
- throw new RuntimeError35("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
15930
+ throw new RuntimeError36("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
15804
15931
  }
15805
15932
  this.evt.emit("onClick", {
15806
15933
  eventArg: id,
@@ -15929,7 +16056,7 @@ var AppMenuController = class extends ControlController {
15929
16056
  // src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
15930
16057
  import {
15931
16058
  findRecursiveChild as findRecursiveChild2,
15932
- RuntimeError as RuntimeError36,
16059
+ RuntimeError as RuntimeError37,
15933
16060
  RuntimeModelError as RuntimeModelError27
15934
16061
  } from "@ibiz-template/core";
15935
16062
  var AppMenuIconViewController = class extends AppMenuController {
@@ -15939,7 +16066,7 @@ var AppMenuIconViewController = class extends AppMenuController {
15939
16066
  childrenFields: ["appMenuItems"]
15940
16067
  });
15941
16068
  if (!menuItem) {
15942
- throw new RuntimeError36("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
16069
+ throw new RuntimeError37("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
15943
16070
  }
15944
16071
  this.evt.emit("onClick", {
15945
16072
  eventArg: id,
@@ -15967,7 +16094,7 @@ var AppMenuIconViewController = class extends AppMenuController {
15967
16094
  import dayjs3 from "dayjs";
15968
16095
 
15969
16096
  // src/controller/control/calendar/calendar.service.ts
15970
- import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
16097
+ import { RuntimeError as RuntimeError38 } from "@ibiz-template/core";
15971
16098
  var CalendarService = class extends MDControlService {
15972
16099
  /**
15973
16100
  * 执行查询多条数据的方法
@@ -16017,11 +16144,11 @@ var CalendarService = class extends MDControlService {
16017
16144
  setCalendarConfigData(items, index) {
16018
16145
  const { sysCalendarItems } = this.model;
16019
16146
  if (!sysCalendarItems) {
16020
- throw new RuntimeError37("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
16147
+ throw new RuntimeError38("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
16021
16148
  }
16022
16149
  const calendarItem = sysCalendarItems[index];
16023
16150
  if (!calendarItem) {
16024
- throw new RuntimeError37("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
16151
+ throw new RuntimeError38("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
16025
16152
  }
16026
16153
  return items.map((item) => {
16027
16154
  return new CalendarItemData(calendarItem, item);
@@ -16235,11 +16362,11 @@ var CalendarController = class extends MDControlController {
16235
16362
  };
16236
16363
 
16237
16364
  // src/controller/control/chart/chart.controller.ts
16238
- import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
16365
+ import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
16239
16366
 
16240
16367
  // src/controller/control/chart/generator/chart-options-generator.ts
16241
16368
  import { mergeDeepRight as mergeDeepRight3 } from "ramda";
16242
- import { RuntimeError as RuntimeError38 } from "@ibiz-template/core";
16369
+ import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
16243
16370
 
16244
16371
  // src/controller/control/chart/generator/line-series-generator.ts
16245
16372
  import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
@@ -17248,7 +17375,7 @@ var ChartOptionsGenerator2 = class {
17248
17375
  getChartDataByParams(params) {
17249
17376
  const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
17250
17377
  if (!generator) {
17251
- throw new RuntimeError38("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
17378
+ throw new RuntimeError39("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
17252
17379
  }
17253
17380
  return generator.getChartDataByParams(params);
17254
17381
  }
@@ -17361,10 +17488,10 @@ var ChartController = class extends MDControlController {
17361
17488
  */
17362
17489
  updateChart() {
17363
17490
  if (!this.chart) {
17364
- throw new RuntimeError39("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
17491
+ throw new RuntimeError40("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
17365
17492
  }
17366
17493
  if (!this.options) {
17367
- throw new RuntimeError39("options\u8FD8\u6CA1\u8BA1\u7B97");
17494
+ throw new RuntimeError40("options\u8FD8\u6CA1\u8BA1\u7B97");
17368
17495
  }
17369
17496
  this.chart.setOption(this.options, { notMerge: true });
17370
17497
  this.resizeChart();
@@ -17402,7 +17529,7 @@ var CaptionBarController = class extends ControlController {
17402
17529
  };
17403
17530
 
17404
17531
  // src/controller/control/toolbar/toolbar.controllerr.ts
17405
- import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError48 } from "@ibiz-template/core";
17532
+ import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError49 } from "@ibiz-template/core";
17406
17533
 
17407
17534
  // src/ui-action/provider/backend-ui-action-provider.ts
17408
17535
  import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
@@ -17412,7 +17539,7 @@ import { isArray as isArray8 } from "qx-util";
17412
17539
  import { RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
17413
17540
 
17414
17541
  // src/ui-logic/index.ts
17415
- import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
17542
+ import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
17416
17543
 
17417
17544
  // src/ui-logic/ui-logic.ts
17418
17545
  import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
@@ -17963,7 +18090,7 @@ var EndNode2 = class extends UILogicNode {
17963
18090
  };
17964
18091
 
17965
18092
  // src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
17966
- import { ModelError as ModelError22, RuntimeError as RuntimeError40 } from "@ibiz-template/core";
18093
+ import { ModelError as ModelError22, RuntimeError as RuntimeError41 } from "@ibiz-template/core";
17967
18094
  import { clone as clone21 } from "ramda";
17968
18095
  var PrepareJSParamNode = class extends UILogicNode {
17969
18096
  async exec(ctx) {
@@ -18013,7 +18140,7 @@ var PrepareJSParamNode = class extends UILogicNode {
18013
18140
  setParamValue(nodeParam, ctx) {
18014
18141
  const { dstFieldName, dstDEUILogicParamId } = nodeParam;
18015
18142
  if (!dstDEUILogicParamId) {
18016
- throw new RuntimeError40("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
18143
+ throw new RuntimeError41("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
18017
18144
  }
18018
18145
  let dstField = dstFieldName;
18019
18146
  if (ctx.isEntityParam(dstDEUILogicParamId)) {
@@ -18130,7 +18257,7 @@ var PrepareJSParamNode = class extends UILogicNode {
18130
18257
  };
18131
18258
 
18132
18259
  // src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
18133
- import { RuntimeError as RuntimeError41, RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
18260
+ import { RuntimeError as RuntimeError42, RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
18134
18261
  import { isFunction } from "lodash-es";
18135
18262
  var ViewCtrlInvokeNode = class extends UILogicNode {
18136
18263
  async exec(ctx) {
@@ -18147,14 +18274,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
18147
18274
  }
18148
18275
  const invokeParam = ctx.params[invokeParamId];
18149
18276
  if (!invokeParam) {
18150
- throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
18277
+ throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
18151
18278
  }
18152
18279
  const invokeCtrl = ctx.params[invokeCtrlId];
18153
18280
  if (!invokeCtrl) {
18154
- throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
18281
+ throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
18155
18282
  }
18156
18283
  if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
18157
- throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
18284
+ throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
18158
18285
  }
18159
18286
  await invokeCtrl[invokeMethod](invokeParam);
18160
18287
  }
@@ -18380,16 +18507,16 @@ var DataSetNode2 = class extends UILogicNode {
18380
18507
  };
18381
18508
 
18382
18509
  // src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
18383
- import { RuntimeError as RuntimeError42 } from "@ibiz-template/core";
18510
+ import { RuntimeError as RuntimeError43 } from "@ibiz-template/core";
18384
18511
  var ThrowExceptionNode2 = class extends UILogicNode {
18385
18512
  async exec(_ctx) {
18386
18513
  const { errorInfo } = this.model;
18387
- throw new RuntimeError42(errorInfo);
18514
+ throw new RuntimeError43(errorInfo);
18388
18515
  }
18389
18516
  };
18390
18517
 
18391
18518
  // src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
18392
- import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
18519
+ import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
18393
18520
  var ViewCtrlFireEventNode = class extends UILogicNode {
18394
18521
  async exec(ctx) {
18395
18522
  ctx.isEndNode = true;
@@ -18405,18 +18532,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
18405
18532
  }
18406
18533
  const invokeCtrl = ctx.params[fireCtrlId];
18407
18534
  if (!invokeCtrl) {
18408
- throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
18535
+ throw new RuntimeError44("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
18409
18536
  }
18410
18537
  const eventParam = ctx.params[eventParamId];
18411
18538
  if (!eventParam) {
18412
- throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
18539
+ throw new RuntimeError44("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
18413
18540
  }
18414
18541
  await invokeCtrl.evt.emit(eventName, eventParam);
18415
18542
  }
18416
18543
  };
18417
18544
 
18418
18545
  // src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
18419
- import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
18546
+ import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
18420
18547
  var ExecuteDELogicNode = class extends UILogicNode {
18421
18548
  async exec(ctx) {
18422
18549
  const {
@@ -18436,7 +18563,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
18436
18563
  }
18437
18564
  const dstParam = ctx.params[dstDEUILogicParamId];
18438
18565
  if (!dstParam) {
18439
- throw new RuntimeError44("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
18566
+ throw new RuntimeError45("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
18440
18567
  }
18441
18568
  const result = await execDELogicById(
18442
18569
  dstAppDELogicId,
@@ -18759,7 +18886,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
18759
18886
  const app = ibiz.hub.getApp(parameters.context.srfappid);
18760
18887
  const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
18761
18888
  if (!deUILogic) {
18762
- throw new RuntimeError45(
18889
+ throw new RuntimeError46(
18763
18890
  "\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
18764
18891
  );
18765
18892
  }
@@ -18772,7 +18899,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
18772
18899
  }
18773
18900
 
18774
18901
  // src/ui-action/uiaction-util.ts
18775
- import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
18902
+ import { RuntimeError as RuntimeError47 } from "@ibiz-template/core";
18776
18903
  var UIActionUtil = class {
18777
18904
  /**
18778
18905
  * 执行界面行为
@@ -18787,7 +18914,7 @@ var UIActionUtil = class {
18787
18914
  static async exec(actionId, params, appId2) {
18788
18915
  const action = await getUIActionById(actionId, appId2);
18789
18916
  if (!action) {
18790
- throw new RuntimeError46("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
18917
+ throw new RuntimeError47("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
18791
18918
  }
18792
18919
  if (action.actionTarget === "SINGLEDATA") {
18793
18920
  const validateResult = await params.view.call("Validate" /* VALIDATE */);
@@ -19252,7 +19379,7 @@ import {
19252
19379
  StringUtil,
19253
19380
  RuntimeModelError as RuntimeModelError51,
19254
19381
  ModelError as ModelError26,
19255
- RuntimeError as RuntimeError47
19382
+ RuntimeError as RuntimeError48
19256
19383
  } from "@ibiz-template/core";
19257
19384
  var FrontUIActionProvider = class extends UIActionProviderBase {
19258
19385
  async execAction(action, args) {
@@ -19362,7 +19489,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
19362
19489
  if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
19363
19490
  requestUrl += "/".concat((_b = appDataEntity.codeName2) == null ? void 0 : _b.toLowerCase(), "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
19364
19491
  } else {
19365
- throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
19492
+ throw new RuntimeError48("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
19366
19493
  }
19367
19494
  const res = await ibiz.net.request(requestUrl, {
19368
19495
  method: "get",
@@ -19389,10 +19516,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
19389
19516
  window.open(link, "_blank");
19390
19517
  }
19391
19518
  } else {
19392
- throw new RuntimeError47("\u6253\u5370\u5931\u8D25");
19519
+ throw new RuntimeError48("\u6253\u5370\u5931\u8D25");
19393
19520
  }
19394
19521
  } else {
19395
- throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u6253\u5370\u9879");
19522
+ throw new RuntimeError48("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u6253\u5370\u9879");
19396
19523
  }
19397
19524
  }
19398
19525
  /**
@@ -19443,7 +19570,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
19443
19570
  refreshMode: 1
19444
19571
  };
19445
19572
  }
19446
- throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u5165\u9879");
19573
+ throw new RuntimeError48("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u5165\u9879");
19447
19574
  }
19448
19575
  /**
19449
19576
  * 执行导出行为
@@ -19494,10 +19621,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
19494
19621
  URL.revokeObjectURL(elink.href);
19495
19622
  document.body.removeChild(elink);
19496
19623
  } else {
19497
- throw new RuntimeError47("\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25");
19624
+ throw new RuntimeError48("\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25");
19498
19625
  }
19499
19626
  } else {
19500
- throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u51FA\u9879");
19627
+ throw new RuntimeError48("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u51FA\u9879");
19501
19628
  }
19502
19629
  }
19503
19630
  };
@@ -19584,7 +19711,7 @@ var ToolbarController = class extends ControlController {
19584
19711
  const actionId = item.uiactionId;
19585
19712
  const uiAction = await getUIActionById(actionId, item.appId);
19586
19713
  if (!uiAction) {
19587
- throw new RuntimeError48("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
19714
+ throw new RuntimeError49("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
19588
19715
  }
19589
19716
  const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
19590
19717
  if (enableLoading) {
@@ -20644,7 +20771,7 @@ var DataViewControlController = class extends MDControlController {
20644
20771
  import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
20645
20772
 
20646
20773
  // src/controller/control/exp-bar/exp-bar.controller.ts
20647
- import { RuntimeError as RuntimeError49, RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
20774
+ import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
20648
20775
  var ExpBarControlController = class extends ControlController {
20649
20776
  constructor() {
20650
20777
  super(...arguments);
@@ -20842,6 +20969,11 @@ var ExpBarControlController = class extends ControlController {
20842
20969
  } else {
20843
20970
  this.navByFirstItem();
20844
20971
  }
20972
+ } else {
20973
+ const data = this.xDataController.state.selectedData;
20974
+ if (data[0]) {
20975
+ this.xDataController.setActive(data[0]);
20976
+ }
20845
20977
  }
20846
20978
  }
20847
20979
  /**
@@ -20970,7 +21102,7 @@ var ExpBarControlController = class extends ControlController {
20970
21102
  if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
20971
21103
  return this.XDataModel.navAppViewId;
20972
21104
  }
20973
- throw new RuntimeError49("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
21105
+ throw new RuntimeError50("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
20974
21106
  }
20975
21107
  /**
20976
21108
  * 获取导航视图
@@ -21113,7 +21245,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
21113
21245
  };
21114
21246
 
21115
21247
  // src/controller/control/exp-bar/tree-exp-bar.controller.ts
21116
- import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
21248
+ import { RuntimeError as RuntimeError51, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
21117
21249
  var TreeExpBarController = class extends ExpBarControlController {
21118
21250
  constructor() {
21119
21251
  super(...arguments);
@@ -21143,6 +21275,21 @@ var TreeExpBarController = class extends ExpBarControlController {
21143
21275
  }
21144
21276
  return controller;
21145
21277
  }
21278
+ /**
21279
+ * 组件挂载
21280
+ *
21281
+ */
21282
+ async onMounted() {
21283
+ super.onMounted();
21284
+ if (this.xDataController) {
21285
+ this.xDataController.evt.on("onAfterRefreshParent", (_event) => {
21286
+ const data = this.xDataController.state.selectedData;
21287
+ if (data[0]) {
21288
+ this.xDataController.setActive(data[0]);
21289
+ }
21290
+ });
21291
+ }
21292
+ }
21146
21293
  /**
21147
21294
  * 获取指定节点模型
21148
21295
  *
@@ -21187,7 +21334,7 @@ var TreeExpBarController = class extends ExpBarControlController {
21187
21334
  const deData = node._deData || node;
21188
21335
  const nodeModel = this.getNodeModel(node._nodeId);
21189
21336
  if (!nodeModel) {
21190
- throw new RuntimeError50("\u627E\u4E0D\u5230".concat(node._nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
21337
+ throw new RuntimeError51("\u627E\u4E0D\u5230".concat(node._nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
21191
21338
  }
21192
21339
  const result = this.prepareParams(nodeModel, deData, context, params);
21193
21340
  result.context.currentSrfNav = nodeId;
@@ -21378,7 +21525,7 @@ var ChartExpBarController = class extends ExpBarControlController {
21378
21525
  };
21379
21526
 
21380
21527
  // src/controller/control/form/search-form/search-form.controller.ts
21381
- import { RuntimeError as RuntimeError51 } from "@ibiz-template/core";
21528
+ import { RuntimeError as RuntimeError52 } from "@ibiz-template/core";
21382
21529
 
21383
21530
  // src/controller/control/form/form/form.controller.ts
21384
21531
  import {
@@ -21949,7 +22096,7 @@ var SearchFormController = class extends FormController {
21949
22096
  applyStoredFilter(index) {
21950
22097
  const filter = this.state.storedFilters[index];
21951
22098
  if (!filter) {
21952
- throw new RuntimeError51("\u6CA1\u6709\u627E\u5230\u53EF\u4EE5\u5E94\u7528\u7684\u641C\u7D22\u6761\u4EF6");
22099
+ throw new RuntimeError52("\u6CA1\u6709\u627E\u5230\u53EF\u4EE5\u5E94\u7528\u7684\u641C\u7D22\u6761\u4EF6");
21953
22100
  }
21954
22101
  if (filter.data) {
21955
22102
  Object.assign(this.data, filter.data);
@@ -21965,7 +22112,7 @@ var SearchFormController = class extends FormController {
21965
22112
  async removeStoredFilter(index) {
21966
22113
  const filter = this.state.storedFilters[index];
21967
22114
  if (!filter) {
21968
- throw new RuntimeError51("\u6CA1\u6709\u627E\u5230\u4FDD\u5B58\u7684\u641C\u7D22\u6761\u4EF6");
22115
+ throw new RuntimeError52("\u6CA1\u6709\u627E\u5230\u4FDD\u5B58\u7684\u641C\u7D22\u6761\u4EF6");
21969
22116
  }
21970
22117
  this.state.storedFilters.splice(index, 1);
21971
22118
  await this.saveConfig();
@@ -23254,7 +23401,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
23254
23401
  };
23255
23402
 
23256
23403
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
23257
- import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
23404
+ import { RuntimeError as RuntimeError53, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
23258
23405
  import { createUUID as createUUID11 } from "qx-util";
23259
23406
 
23260
23407
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
@@ -23371,7 +23518,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
23371
23518
  async remove(id) {
23372
23519
  const controller = this.formMap.get(id);
23373
23520
  if (!controller) {
23374
- throw new RuntimeError52("\u6CA1\u6709\u627E\u5230\u5BF9\u5E94".concat(id, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
23521
+ throw new RuntimeError53("\u6CA1\u6709\u627E\u5230\u5BF9\u5E94".concat(id, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
23375
23522
  }
23376
23523
  await controller.remove();
23377
23524
  const index = this.state.items.findIndex((item) => item.id === id);
@@ -23673,7 +23820,7 @@ var FormTabPanelController = class extends FormDetailController {
23673
23820
  import {
23674
23821
  awaitTimeout,
23675
23822
  mergeInLeft as mergeInLeft2,
23676
- RuntimeError as RuntimeError53
23823
+ RuntimeError as RuntimeError54
23677
23824
  } from "@ibiz-template/core";
23678
23825
  import { debounce as debounce2 } from "lodash-es";
23679
23826
  import { createUUID as createUUID12 } from "qx-util";
@@ -24138,7 +24285,7 @@ var EditFormController = class extends FormController {
24138
24285
  }
24139
24286
  const isValid = await this.validate();
24140
24287
  if (!isValid) {
24141
- throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
24288
+ throw new RuntimeError54("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
24142
24289
  }
24143
24290
  if (!silent) {
24144
24291
  await this.startLoading();
@@ -24261,7 +24408,7 @@ var EditFormController = class extends FormController {
24261
24408
  (item) => item.id === formItemUpdateId
24262
24409
  );
24263
24410
  if (!formItemUpdate) {
24264
- throw new RuntimeError53("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
24411
+ throw new RuntimeError54("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
24265
24412
  }
24266
24413
  const {
24267
24414
  appDEMethodId,
@@ -24320,7 +24467,7 @@ var EditFormController = class extends FormController {
24320
24467
  async wfStart(args) {
24321
24468
  const isValid = await this.validate();
24322
24469
  if (!isValid) {
24323
- throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
24470
+ throw new RuntimeError54("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
24324
24471
  }
24325
24472
  await this.startLoading();
24326
24473
  const { context, params } = this.handlerAbilityParams(args);
@@ -24349,7 +24496,7 @@ var EditFormController = class extends FormController {
24349
24496
  async wfSubmit(args) {
24350
24497
  const isValid = await this.validate();
24351
24498
  if (!isValid) {
24352
- throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
24499
+ throw new RuntimeError54("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
24353
24500
  }
24354
24501
  await this.startLoading();
24355
24502
  const { context, params } = this.handlerAbilityParams(args);
@@ -24665,7 +24812,7 @@ import {
24665
24812
  debounceAndAsyncMerge as debounceAndAsyncMerge2,
24666
24813
  mergeDefaultInLeft,
24667
24814
  recursiveIterate as recursiveIterate7,
24668
- RuntimeError as RuntimeError54,
24815
+ RuntimeError as RuntimeError55,
24669
24816
  RuntimeModelError as RuntimeModelError61
24670
24817
  } from "@ibiz-template/core";
24671
24818
  import { clone as clone25 } from "ramda";
@@ -25191,7 +25338,7 @@ var GridController = class extends MDControlController {
25191
25338
  if (editShowMode === "row") {
25192
25339
  const editingRow = this.state.rows.find((item) => item.showRowEdit);
25193
25340
  if (editingRow) {
25194
- throw new RuntimeError54("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
25341
+ throw new RuntimeError55("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
25195
25342
  }
25196
25343
  }
25197
25344
  const queryParams = { ...this.params };
@@ -25232,7 +25379,7 @@ var GridController = class extends MDControlController {
25232
25379
  const isCreate = data.srfuf === 0 /* CREATE */;
25233
25380
  const rowState = this.findRowState(data);
25234
25381
  if (!rowState) {
25235
- throw new RuntimeError54("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
25382
+ throw new RuntimeError55("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
25236
25383
  }
25237
25384
  if (!rowState.modified) {
25238
25385
  ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
@@ -25244,7 +25391,7 @@ var GridController = class extends MDControlController {
25244
25391
  }
25245
25392
  const isValid = await this.validate(rowState);
25246
25393
  if (!isValid) {
25247
- throw new RuntimeError54("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
25394
+ throw new RuntimeError55("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
25248
25395
  }
25249
25396
  let res;
25250
25397
  const deName = calcDeCodeNameById(this.model.appDataEntityId);
@@ -25457,7 +25604,7 @@ var GridController = class extends MDControlController {
25457
25604
  }
25458
25605
  async toggleRowEdit() {
25459
25606
  if (!this.model.enableRowNew) {
25460
- throw new RuntimeError54("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
25607
+ throw new RuntimeError55("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
25461
25608
  }
25462
25609
  this.state.rowEditOpen = !this.state.rowEditOpen;
25463
25610
  }
@@ -25490,7 +25637,7 @@ var GridController = class extends MDControlController {
25490
25637
  } else {
25491
25638
  const editingRow = this.state.rows.find((item) => item.showRowEdit);
25492
25639
  if (editingRow) {
25493
- throw new RuntimeError54("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
25640
+ throw new RuntimeError55("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
25494
25641
  }
25495
25642
  if (row.data.srfuf === 1 /* UPDATE */) {
25496
25643
  row.cacheData = clone25(row.data);
@@ -25545,7 +25692,7 @@ var GridController = class extends MDControlController {
25545
25692
  (item) => item.id === updateId
25546
25693
  );
25547
25694
  if (!findUpdate) {
25548
- throw new RuntimeError54("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
25695
+ throw new RuntimeError55("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
25549
25696
  }
25550
25697
  const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
25551
25698
  const updateItems = degeiupdateDetails.map((item) => item.id);
@@ -25701,7 +25848,7 @@ var GridController = class extends MDControlController {
25701
25848
  data2 = this.getData();
25702
25849
  }
25703
25850
  if (data2.length === 0) {
25704
- throw new RuntimeError54("\u65E0\u5BFC\u51FA\u6570\u636E");
25851
+ throw new RuntimeError55("\u65E0\u5BFC\u51FA\u6570\u636E");
25705
25852
  }
25706
25853
  return formatExcelData(data2);
25707
25854
  };
@@ -26267,7 +26414,7 @@ var GridUAColumnController = class extends GridColumnController {
26267
26414
  };
26268
26415
 
26269
26416
  // src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
26270
- import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
26417
+ import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
26271
26418
  import Schema2 from "async-validator";
26272
26419
  import { isNilOrEmpty as isNilOrEmpty8 } from "qx-util";
26273
26420
  var GridFieldEditColumnController = class extends GridFieldColumnController {
@@ -26407,7 +26554,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
26407
26554
  if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
26408
26555
  const result = await this.validate(row);
26409
26556
  if (!result) {
26410
- throw new RuntimeError55(
26557
+ throw new RuntimeError56(
26411
26558
  "".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
26412
26559
  );
26413
26560
  }
@@ -26705,7 +26852,7 @@ var ListController = class extends MDControlController {
26705
26852
  };
26706
26853
 
26707
26854
  // src/controller/control/panel/panel/panel.controller.ts
26708
- import { recursiveIterate as recursiveIterate8, RuntimeError as RuntimeError56 } from "@ibiz-template/core";
26855
+ import { recursiveIterate as recursiveIterate8, RuntimeError as RuntimeError57 } from "@ibiz-template/core";
26709
26856
  var PanelController = class extends ControlController {
26710
26857
  constructor(model, context, params, ctx, container) {
26711
26858
  super(model, context, params, ctx);
@@ -26829,7 +26976,7 @@ var PanelController = class extends ControlController {
26829
26976
  var _a, _b;
26830
26977
  const data = await this.prepareData();
26831
26978
  if (!data) {
26832
- throw new RuntimeError56("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
26979
+ throw new RuntimeError57("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
26833
26980
  }
26834
26981
  const panelData = this.convertData(data);
26835
26982
  (_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
@@ -27424,12 +27571,8 @@ var PickupViewPanelController = class extends ControlController {
27424
27571
  };
27425
27572
 
27426
27573
  // src/controller/control/search-bar/search-bar.controller.ts
27427
- import {
27428
- RuntimeError as RuntimeError57,
27429
- mergeInLeft as mergeInLeft3,
27430
- recursiveIterate as recursiveIterate9
27431
- } from "@ibiz-template/core";
27432
- import { clone as clone27, isNil as isNil25 } from "ramda";
27574
+ import { mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
27575
+ import { clone as clone27 } from "ramda";
27433
27576
 
27434
27577
  // src/controller/control/search-bar/search-bar-filter.controller.ts
27435
27578
  import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
@@ -27438,9 +27581,9 @@ var ExcludeOPs = [
27438
27581
  "ISNOTNULL" /* IS_NOT_NULL */
27439
27582
  ];
27440
27583
  var SearchBarFilterController = class {
27441
- constructor(model, searchBar) {
27584
+ constructor(model, appDataEntity, context, params) {
27442
27585
  this.model = model;
27443
- this.searchBar = searchBar;
27586
+ this.appDataEntity = appDataEntity;
27444
27587
  /**
27445
27588
  * 不需要编辑器
27446
27589
  * @author lxm
@@ -27449,21 +27592,17 @@ var SearchBarFilterController = class {
27449
27592
  */
27450
27593
  this.noEditor = false;
27451
27594
  var _a;
27595
+ this.context = context;
27596
+ this.params = params;
27452
27597
  let field;
27453
27598
  if (model.appDEFieldId) {
27454
- field = findFieldById(searchBar.appDataEntity, model.appDEFieldId);
27599
+ field = findFieldById(appDataEntity, model.appDEFieldId);
27455
27600
  }
27456
27601
  this.fieldName = field ? field.codeName.toLowerCase() : model.id;
27457
27602
  this.label = model.caption || (field == null ? void 0 : field.logicName) || model.id;
27458
27603
  this.valueOP = (_a = model.defsearchMode) == null ? void 0 : _a.valueOP;
27459
27604
  this.noEditor = this.valueOP ? ExcludeOPs.includes(this.valueOP) : !this.model.editor;
27460
27605
  }
27461
- get context() {
27462
- return this.searchBar.context;
27463
- }
27464
- get params() {
27465
- return this.searchBar.params;
27466
- }
27467
27606
  /**
27468
27607
  * 初始化
27469
27608
  * @author lxm
@@ -27760,7 +27899,7 @@ function getEditor(field, op) {
27760
27899
  const editorModel = EditorsMap["".concat(field.type, "_").concat(op)];
27761
27900
  return editorModel;
27762
27901
  }
27763
- async function calcFilterModelBySchema(json, c) {
27902
+ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
27764
27903
  var _a;
27765
27904
  if (!json.properties) {
27766
27905
  return [];
@@ -27796,8 +27935,8 @@ async function calcFilterModelBySchema(json, c) {
27796
27935
  });
27797
27936
  const codeNameToId = {};
27798
27937
  const dataEntity = await ibiz.hub.getAppDataEntity(
27799
- c.model.appDataEntityId,
27800
- c.model.appId
27938
+ appDataEntityId,
27939
+ modelAppId
27801
27940
  );
27802
27941
  (_a = dataEntity.appDEFields) == null ? void 0 : _a.forEach((field) => {
27803
27942
  codeNameToId[field.codeName.toLowerCase()] = field.id;
@@ -27827,6 +27966,72 @@ async function calcFilterModelBySchema(json, c) {
27827
27966
  return addSearchBarFilters;
27828
27967
  }
27829
27968
 
27969
+ // src/controller/control/search-bar/use-searchcond.ts
27970
+ import { RuntimeError as RuntimeError58, recursiveIterate as recursiveIterate9 } from "@ibiz-template/core";
27971
+ import { isNil as isNil25 } from "ramda";
27972
+ function getOriginFilterNodes() {
27973
+ return [
27974
+ {
27975
+ leaf: false,
27976
+ logicType: "AND",
27977
+ children: [{ leaf: true, field: null, valueOP: null, value: null }]
27978
+ }
27979
+ ];
27980
+ }
27981
+ function formatFilters(node) {
27982
+ if (!node.leaf) {
27983
+ return {
27984
+ condtype: "GROUP",
27985
+ condop: node.logicType,
27986
+ bnotmode: false,
27987
+ searchconds: node.children.map((item) => formatFilters(item))
27988
+ };
27989
+ }
27990
+ return {
27991
+ condtype: "DEFIELD",
27992
+ fieldname: node.field,
27993
+ condop: node.valueOP,
27994
+ value: node.value
27995
+ };
27996
+ }
27997
+ function parseFilters(data) {
27998
+ if (data.condtype === "GROUP") {
27999
+ return {
28000
+ leaf: false,
28001
+ logicType: data.condop === "AND" ? "AND" : "OR",
28002
+ children: (data.searchconds || []).map(
28003
+ (item) => parseFilters(item)
28004
+ )
28005
+ };
28006
+ }
28007
+ if (data.condtype === "DEFIELD") {
28008
+ return {
28009
+ leaf: true,
28010
+ field: data.fieldname || null,
28011
+ valueOP: data.condop || null,
28012
+ value: data.value || null
28013
+ };
28014
+ }
28015
+ throw new RuntimeError58("\u65E0\u6548\u7684condtype:".concat(data.condtype));
28016
+ }
28017
+ function calcSearchConds(filterNodes) {
28018
+ let hasFilter = false;
28019
+ let hasError = false;
28020
+ recursiveIterate9(filterNodes[0], (node) => {
28021
+ if (node.leaf) {
28022
+ if (node.field && node.valueOP && !isNil25(node.value)) {
28023
+ hasFilter = true;
28024
+ } else {
28025
+ hasError = true;
28026
+ }
28027
+ }
28028
+ });
28029
+ if (hasFilter && !hasError) {
28030
+ const filter = [formatFilters(filterNodes[0])];
28031
+ return filter;
28032
+ }
28033
+ }
28034
+
27830
28035
  // src/controller/control/search-bar/search-bar.controller.ts
27831
28036
  var SearchBarController = class extends ControlController {
27832
28037
  constructor() {
@@ -27871,7 +28076,7 @@ var SearchBarController = class extends ControlController {
27871
28076
  * @author lxm
27872
28077
  * @date 2024-01-05 10:10:37
27873
28078
  */
27874
- this.addSchemaFilters = false;
28079
+ this.addSchemaFilters = true;
27875
28080
  }
27876
28081
  /**
27877
28082
  * 启用自定义过滤项
@@ -27948,7 +28153,11 @@ var SearchBarController = class extends ControlController {
27948
28153
  if (!json) {
27949
28154
  return;
27950
28155
  }
27951
- const addSearchBarFilters = await calcFilterModelBySchema(json, this);
28156
+ const addSearchBarFilters = await calcFilterModelBySchema(
28157
+ json,
28158
+ this.model.appDataEntityId,
28159
+ this.model.appId
28160
+ );
27952
28161
  const mergeFilters = [];
27953
28162
  (_a = this.model.searchBarFilters) == null ? void 0 : _a.forEach((filter) => {
27954
28163
  const findindex = addSearchBarFilters.findIndex(
@@ -28050,7 +28259,7 @@ var SearchBarController = class extends ControlController {
28050
28259
  * @date 2023-10-16 03:52:44
28051
28260
  */
28052
28261
  resetFilter() {
28053
- this.state.filterNodes = this.getOriginFilterNodes();
28262
+ this.state.filterNodes = getOriginFilterNodes();
28054
28263
  this.evt.emit("onSearch", void 0);
28055
28264
  }
28056
28265
  /**
@@ -28064,7 +28273,12 @@ var SearchBarController = class extends ControlController {
28064
28273
  var _a;
28065
28274
  if ((_a = this.searchBarFilters) == null ? void 0 : _a.length) {
28066
28275
  this.searchBarFilters.forEach((item) => {
28067
- const filterController = new SearchBarFilterController(item, this);
28276
+ const filterController = new SearchBarFilterController(
28277
+ item,
28278
+ this.appDataEntity,
28279
+ this.context,
28280
+ this.params
28281
+ );
28068
28282
  this.filterControllers.push(filterController);
28069
28283
  });
28070
28284
  await Promise.all(
@@ -28082,86 +28296,8 @@ var SearchBarController = class extends ControlController {
28082
28296
  if (!this.enableFilter) {
28083
28297
  return;
28084
28298
  }
28085
- let hasFilter = false;
28086
- let hasError = false;
28087
- recursiveIterate9(this.state.filterNodes[0], (node) => {
28088
- if (node.leaf) {
28089
- if (node.field && node.valueOP && !isNil25(node.value)) {
28090
- hasFilter = true;
28091
- } else {
28092
- hasError = true;
28093
- }
28094
- }
28095
- });
28096
- if (hasFilter && !hasError) {
28097
- const filter = [this.formatFilters(this.state.filterNodes[0])];
28098
- return filter;
28099
- }
28100
- }
28101
- /**
28102
- * 格式化过滤项 (后续如果修改这里的逻辑记得把下方的反推函数parseFilters也跟着修改!)
28103
- * @author lxm
28104
- * @date 2023-10-16 03:45:41
28105
- * @param {IFilterNode} node
28106
- * @return {*} {IData}
28107
- */
28108
- formatFilters(node) {
28109
- if (!node.leaf) {
28110
- return {
28111
- condtype: "GROUP",
28112
- condop: node.logicType,
28113
- bnotmode: false,
28114
- searchconds: node.children.map((item) => this.formatFilters(item))
28115
- };
28116
- }
28117
- return {
28118
- condtype: "DEFIELD",
28119
- fieldname: node.field,
28120
- condop: node.valueOP,
28121
- value: node.value
28122
- };
28123
- }
28124
- /**
28125
- * 根据格式化后的过滤项反推出过滤项树节点数据集合
28126
- * @param {IData} data
28127
- * @return {*}
28128
- * @author: zhujiamin
28129
- * @Date: 2023-12-28 09:47:45
28130
- */
28131
- parseFilters(data) {
28132
- if (data.condtype === "GROUP") {
28133
- return {
28134
- leaf: false,
28135
- logicType: data.condop === "AND" ? "AND" : "OR",
28136
- children: (data.searchconds || []).map(
28137
- (item) => this.parseFilters(item)
28138
- )
28139
- };
28140
- }
28141
- if (data.condtype === "DEFIELD") {
28142
- return {
28143
- leaf: true,
28144
- field: data.fieldname || null,
28145
- valueOP: data.condop || null,
28146
- value: data.value || null
28147
- };
28148
- }
28149
- throw new RuntimeError57("\u65E0\u6548\u7684condtype:".concat(data.condtype));
28150
- }
28151
- /**
28152
- * 获取初始过滤项树节点数据集合
28153
- * @return {*}
28154
- * @author: zhujiamin
28155
- * @Date: 2023-12-21 17:29:47
28156
- */
28157
- getOriginFilterNodes() {
28158
- return [
28159
- {
28160
- leaf: false,
28161
- logicType: "AND",
28162
- children: [{ leaf: true, field: null, valueOP: null, value: null }]
28163
- }
28164
- ];
28299
+ const searchconds = calcSearchConds(this.state.filterNodes);
28300
+ return searchconds;
28165
28301
  }
28166
28302
  /**
28167
28303
  * 初始化搜索栏分组项(获取后台分组清单并合并模型)
@@ -28324,11 +28460,11 @@ var SearchBarController = class extends ControlController {
28324
28460
  }
28325
28461
  if (groupItem.searchGroupData && groupItem.searchGroupData.searchconds && groupItem.searchGroupData.searchconds.length > 0) {
28326
28462
  const filterNodes = groupItem.searchGroupData.searchconds.map(
28327
- (item) => this.parseFilters(item)
28463
+ (item) => parseFilters(item)
28328
28464
  );
28329
28465
  this.state.filterNodes = filterNodes;
28330
28466
  } else {
28331
- this.state.filterNodes = this.getOriginFilterNodes();
28467
+ this.state.filterNodes = getOriginFilterNodes();
28332
28468
  }
28333
28469
  if (this.grid && groupItem && groupItem.searchGroupData) {
28334
28470
  this.grid.setGroupParams(groupItem.searchGroupData);
@@ -28575,7 +28711,7 @@ var TabExpPanelController = class extends ControlController {
28575
28711
 
28576
28712
  // src/controller/control/tree/tree.controller.ts
28577
28713
  import {
28578
- RuntimeError as RuntimeError58,
28714
+ RuntimeError as RuntimeError59,
28579
28715
  RuntimeModelError as RuntimeModelError64,
28580
28716
  recursiveIterate as recursiveIterate10
28581
28717
  } from "@ibiz-template/core";
@@ -29569,7 +29705,7 @@ var TreeController = class extends MDControlController {
29569
29705
  throw new RuntimeModelError64(model, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u7F16\u8F91\u6A21\u5F0F\uFF1A\u540D\u79F0");
29570
29706
  }
29571
29707
  if (nodeData._nodeType !== "DE") {
29572
- throw new RuntimeError58("\u4E0D\u662F\u5B9E\u4F53\u6811\u8282\u70B9\u6570\u636E");
29708
+ throw new RuntimeError59("\u4E0D\u662F\u5B9E\u4F53\u6811\u8282\u70B9\u6570\u636E");
29573
29709
  }
29574
29710
  nodeData._text = text;
29575
29711
  await this.updateDeNodeData([nodeData]);
@@ -29577,7 +29713,7 @@ var TreeController = class extends MDControlController {
29577
29713
  };
29578
29714
 
29579
29715
  // src/controller/control/wizard-panel/wizard-panel.controller.ts
29580
- import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
29716
+ import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
29581
29717
 
29582
29718
  // src/controller/control/wizard-panel/wizard-panel.service.ts
29583
29719
  var WizardPanelService = class extends ControlService {
@@ -29743,7 +29879,7 @@ var WizardPanelController = class extends ControlController {
29743
29879
  const { activeFormTag } = this.state;
29744
29880
  const controller = this.formControllers.get(activeFormTag);
29745
29881
  if (!controller) {
29746
- throw new RuntimeError59("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
29882
+ throw new RuntimeError60("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
29747
29883
  }
29748
29884
  return controller;
29749
29885
  }
@@ -29785,7 +29921,7 @@ var WizardPanelController = class extends ControlController {
29785
29921
  getWizardFormByTag(tag) {
29786
29922
  var _a;
29787
29923
  if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
29788
- throw new RuntimeError59("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
29924
+ throw new RuntimeError60("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
29789
29925
  return;
29790
29926
  }
29791
29927
  const wizardForm = this.model.dewizard.dewizardForms.find(
@@ -29794,7 +29930,7 @@ var WizardPanelController = class extends ControlController {
29794
29930
  }
29795
29931
  );
29796
29932
  if (!wizardForm) {
29797
- throw new RuntimeError59("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
29933
+ throw new RuntimeError60("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
29798
29934
  }
29799
29935
  return wizardForm;
29800
29936
  }
@@ -29865,7 +30001,7 @@ var WizardPanelController = class extends ControlController {
29865
30001
  prevTag = this.tagHistory[this.tagHistory.length - 1];
29866
30002
  }
29867
30003
  if (!prevTag) {
29868
- throw new RuntimeError59("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
30004
+ throw new RuntimeError60("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
29869
30005
  }
29870
30006
  this.state.activeFormTag = prevTag;
29871
30007
  }
@@ -29901,7 +30037,7 @@ var WizardPanelController = class extends ControlController {
29901
30037
  });
29902
30038
  const nextWizardStep = wizardSteps[index + 1];
29903
30039
  if (!nextWizardStep) {
29904
- throw new RuntimeError59("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
30040
+ throw new RuntimeError60("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
29905
30041
  }
29906
30042
  const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
29907
30043
  if (nextWizardForm && nextWizardForm.formTag) {
@@ -29910,7 +30046,7 @@ var WizardPanelController = class extends ControlController {
29910
30046
  }
29911
30047
  }
29912
30048
  if (!nextTag) {
29913
- throw new RuntimeError59("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
30049
+ throw new RuntimeError60("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
29914
30050
  }
29915
30051
  this.state.activeFormTag = nextTag;
29916
30052
  this.tagHistory.push(nextTag);
@@ -30233,7 +30369,7 @@ var MDCtrlController = class extends MDControlController {
30233
30369
  };
30234
30370
 
30235
30371
  // src/controller/control/kanban/kanban.controller.ts
30236
- import { RuntimeError as RuntimeError60, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
30372
+ import { RuntimeError as RuntimeError61, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
30237
30373
  import { isNil as isNil27 } from "ramda";
30238
30374
 
30239
30375
  // src/controller/control/kanban/kanban.service.ts
@@ -30324,7 +30460,7 @@ var KanbanController = class extends DataViewControlController {
30324
30460
  } else {
30325
30461
  const toNum = Number(sortValue);
30326
30462
  if (Number.isNaN(toNum)) {
30327
- throw new RuntimeError60(
30463
+ throw new RuntimeError61(
30328
30464
  "".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
30329
30465
  );
30330
30466
  }
@@ -30410,7 +30546,7 @@ var KanbanController = class extends DataViewControlController {
30410
30546
  }
30411
30547
  handleDataGroup() {
30412
30548
  if (!this.model.enableGroup || this.model.groupMode === "NONE") {
30413
- throw new RuntimeError60("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
30549
+ throw new RuntimeError61("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
30414
30550
  }
30415
30551
  return super.handleDataGroup();
30416
30552
  }
@@ -30753,7 +30889,7 @@ var KanbanController = class extends DataViewControlController {
30753
30889
 
30754
30890
  // src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
30755
30891
  import {
30756
- RuntimeError as RuntimeError61,
30892
+ RuntimeError as RuntimeError62,
30757
30893
  RuntimeModelError as RuntimeModelError67,
30758
30894
  awaitTimeout as awaitTimeout3,
30759
30895
  recursiveIterate as recursiveIterate11
@@ -31013,11 +31149,11 @@ var TreeGridExController = class extends TreeController {
31013
31149
  return;
31014
31150
  }
31015
31151
  if (nodeData._nodeType !== "DE") {
31016
- throw new RuntimeError61("\u975E\u5B9E\u4F53\u8282\u70B9\u6570\u636E\u4E0D\u80FD\u4FDD\u5B58");
31152
+ throw new RuntimeError62("\u975E\u5B9E\u4F53\u8282\u70B9\u6570\u636E\u4E0D\u80FD\u4FDD\u5B58");
31017
31153
  }
31018
31154
  const rowState = this.state.rows[nodeData._uuid];
31019
31155
  if (!rowState) {
31020
- throw new RuntimeError61("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
31156
+ throw new RuntimeError62("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
31021
31157
  }
31022
31158
  if (!rowState.modified) {
31023
31159
  ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
@@ -31031,7 +31167,7 @@ var TreeGridExController = class extends TreeController {
31031
31167
  const { appDataEntityId, updateAppDEActionId } = nodeModel;
31032
31168
  const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
31033
31169
  if (isCreate) {
31034
- throw new RuntimeError61("\u6682\u4E0D\u652F\u6301\u65B0\u5EFA");
31170
+ throw new RuntimeError62("\u6682\u4E0D\u652F\u6301\u65B0\u5EFA");
31035
31171
  }
31036
31172
  if (!updateAppDEActionId) {
31037
31173
  throw new RuntimeModelError67(nodeModel, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u66F4\u65B0\u5B9E\u4F53\u884C\u4E3A");
@@ -31191,7 +31327,7 @@ var TreeGridExController = class extends TreeController {
31191
31327
  (item) => item.showRowEdit
31192
31328
  );
31193
31329
  if (editingRow) {
31194
- throw new RuntimeError61("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
31330
+ throw new RuntimeError62("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
31195
31331
  }
31196
31332
  if (row.data._deData.srfuf === 1 /* UPDATE */) {
31197
31333
  row.cacheData = clone28(row.data);
@@ -31304,7 +31440,7 @@ var TreeGridExColumnController = class {
31304
31440
  // src/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.ts
31305
31441
  import {
31306
31442
  DataTypes as DataTypes5,
31307
- RuntimeError as RuntimeError62,
31443
+ RuntimeError as RuntimeError63,
31308
31444
  RuntimeModelError as RuntimeModelError68
31309
31445
  } from "@ibiz-template/core";
31310
31446
  import { clone as clone29 } from "ramda";
@@ -31505,7 +31641,7 @@ var TreeGridExNodeColumnController = class {
31505
31641
  const valueItem = this.nodeColumn.linkValueItem || "srfkey";
31506
31642
  const value = row.data[valueItem];
31507
31643
  if (value == null) {
31508
- throw new RuntimeError62("\u672A\u5728\u884C\u6570\u636E\u4E2D\u53D6\u5230 ".concat(valueItem, " \u7684\u503C"));
31644
+ throw new RuntimeError63("\u672A\u5728\u884C\u6570\u636E\u4E2D\u53D6\u5230 ".concat(valueItem, " \u7684\u503C"));
31509
31645
  }
31510
31646
  const { linkAppViewId } = this.nodeColumn;
31511
31647
  if (!linkAppViewId) {
@@ -31938,7 +32074,7 @@ var TreeGridService = class extends GridService {
31938
32074
  };
31939
32075
 
31940
32076
  // src/controller/control/medit-view-panel/medit-view-panel.controller.ts
31941
- import { RuntimeError as RuntimeError63 } from "@ibiz-template/core";
32077
+ import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
31942
32078
  import { createUUID as createUUID13 } from "qx-util";
31943
32079
 
31944
32080
  // src/controller/control/medit-view-panel/medit-view-panel.service.ts
@@ -32154,7 +32290,7 @@ var MEditViewPanelController = class extends MDControlController {
32154
32290
  (item) => item.id === id
32155
32291
  );
32156
32292
  if (panelUiItemIndex < 0) {
32157
- throw new RuntimeError63("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
32293
+ throw new RuntimeError64("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
32158
32294
  }
32159
32295
  const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
32160
32296
  if (tempUiItem.id.startsWith("mockId:")) {
@@ -33034,6 +33170,207 @@ var HubController = class {
33034
33170
  }
33035
33171
  };
33036
33172
 
33173
+ // src/controller/notification/async-action.controller.ts
33174
+ import { QXEvent as QXEvent7 } from "qx-util";
33175
+ import { clone as clone30 } from "ramda";
33176
+ import { isNil as isNil28, isNumber as isNumber2 } from "lodash-es";
33177
+ import dayjs7 from "dayjs";
33178
+ var AsyncActionController = class {
33179
+ constructor() {
33180
+ this.evt = new QXEvent7();
33181
+ this.total = 0;
33182
+ this.actions = [];
33183
+ /**
33184
+ * 正在处理中的数量
33185
+ * @author lxm
33186
+ * @date 2024-01-25 04:51:18
33187
+ * @type {number}
33188
+ */
33189
+ this.doingNum = 0;
33190
+ /**
33191
+ * 结束的状态值集合
33192
+ * @author lxm
33193
+ * @date 2024-01-25 05:08:26
33194
+ * @protected
33195
+ */
33196
+ this.finishedStates = [30, 40];
33197
+ /**
33198
+ * 请求服务
33199
+ * @author lxm
33200
+ * @date 2024-01-25 04:50:12
33201
+ * @protected
33202
+ */
33203
+ this.service = new AsyncActionService();
33204
+ }
33205
+ async init() {
33206
+ this.listenMessage();
33207
+ }
33208
+ /**
33209
+ * 监听全局的实时消息
33210
+ * @author lxm
33211
+ * @date 2024-01-25 04:47:36
33212
+ */
33213
+ listenMessage() {
33214
+ ibiz.mc.command.asyncAction.on(async (msg) => {
33215
+ if (!msg.data || msg.subtype !== "ASYNCACTION") {
33216
+ return;
33217
+ }
33218
+ const asyncAction = this.formatAsyncAction(
33219
+ msg.data
33220
+ );
33221
+ const findIndex2 = this.actions.findIndex(
33222
+ (item) => item.asyncacitonid === asyncAction.asyncacitonid
33223
+ );
33224
+ if (findIndex2 === -1) {
33225
+ this.add(asyncAction);
33226
+ } else {
33227
+ this.update(asyncAction);
33228
+ }
33229
+ });
33230
+ }
33231
+ /**
33232
+ * 格式化数据
33233
+ * @author lxm
33234
+ * @date 2024-01-25 05:03:47
33235
+ * @protected
33236
+ * @param {IPortalAsyncAction} data
33237
+ * @return {*} {IPortalAsyncAction}
33238
+ */
33239
+ formatAsyncAction(data) {
33240
+ const dateFields = [
33241
+ "begintime",
33242
+ "endtime",
33243
+ "createdate",
33244
+ "updatedate"
33245
+ ];
33246
+ dateFields.forEach((key) => {
33247
+ if (isNumber2(data[key])) {
33248
+ data[key] = dayjs7(data[key]).format("YYYY-MM-DD HH:mm:ss");
33249
+ }
33250
+ });
33251
+ if (!isNil28(data.actionresult)) {
33252
+ try {
33253
+ const json = JSON.parse(data.actionresult);
33254
+ data.actionresult = json;
33255
+ } catch (error) {
33256
+ }
33257
+ }
33258
+ if (!isNil28(data.completionrate)) {
33259
+ const num = Number(data.completionrate);
33260
+ if (Number.isNaN(num)) {
33261
+ data.completionrate = void 0;
33262
+ } else {
33263
+ data.completionrate = num;
33264
+ }
33265
+ }
33266
+ return data;
33267
+ }
33268
+ /**
33269
+ * 添加一条新消息
33270
+ * @author lxm
33271
+ * @date 2024-01-25 04:58:37
33272
+ * @protected
33273
+ * @param {IPortalAsyncAction} action
33274
+ */
33275
+ add(action) {
33276
+ this.actions.unshift(action);
33277
+ if (!this.finishedStates.includes(action.actionstate)) {
33278
+ this.doingNum += 1;
33279
+ ibiz.notice.showDoingNotice({ num: this.doingNum });
33280
+ } else {
33281
+ this.noticeResult(action);
33282
+ }
33283
+ this.evt.emit("add", clone30(action));
33284
+ this.evt.emit("dataChange");
33285
+ }
33286
+ /**
33287
+ * 添加一条新消息
33288
+ * @author lxm
33289
+ * @date 2024-01-25 04:58:37
33290
+ * @protected
33291
+ * @param {IPortalAsyncAction} action
33292
+ */
33293
+ update(action) {
33294
+ const index = this.actions.findIndex(
33295
+ (item) => item.asyncacitonid === action.asyncacitonid
33296
+ );
33297
+ this.actions.splice(index, 1, action);
33298
+ if (this.finishedStates.includes(action.actionstate)) {
33299
+ this.doingNum -= 1;
33300
+ if (this.doingNum <= 0) {
33301
+ ibiz.notice.closeDoingNotice();
33302
+ }
33303
+ this.noticeResult(action);
33304
+ }
33305
+ this.evt.emit("change", clone30(action));
33306
+ this.evt.emit("dataChange");
33307
+ }
33308
+ noticeResult(action) {
33309
+ ibiz.notice.showAsyncAction(action);
33310
+ }
33311
+ };
33312
+
33313
+ // src/controller/notification/internal-message.controller.ts
33314
+ import { QXEvent as QXEvent8 } from "qx-util";
33315
+ var InternalMessageController = class {
33316
+ constructor() {
33317
+ this.evt = new QXEvent8();
33318
+ this.total = 0;
33319
+ /**
33320
+ * 当前分页
33321
+ * @author lxm
33322
+ * @date 2024-01-26 10:06:28
33323
+ * @type {number}
33324
+ */
33325
+ this.page = 0;
33326
+ this.size = 20;
33327
+ this.messages = [];
33328
+ this.service = new InternalMessageService();
33329
+ }
33330
+ async init() {
33331
+ this.load();
33332
+ }
33333
+ async load() {
33334
+ await this.fetch(false);
33335
+ }
33336
+ async loadMore() {
33337
+ await this.fetch(true);
33338
+ }
33339
+ async fetch(loadMore = false) {
33340
+ if (loadMore === false) {
33341
+ this.page = 0;
33342
+ } else {
33343
+ this.page += 1;
33344
+ }
33345
+ const fetchParams = {
33346
+ page: this.page,
33347
+ size: this.size,
33348
+ sort: "update_time,desc"
33349
+ };
33350
+ const res = await this.service.fetch(fetchParams);
33351
+ this.total = res.total;
33352
+ if (loadMore) {
33353
+ this.messages.push(...res.data);
33354
+ } else {
33355
+ this.messages = res.data;
33356
+ }
33357
+ this.evt.emit("dataChange");
33358
+ }
33359
+ };
33360
+
33361
+ // src/controller/notification/notice.controller.ts
33362
+ var NoticeController = class {
33363
+ constructor() {
33364
+ this.total = 0;
33365
+ this.asyncAction = new AsyncActionController();
33366
+ this.internalMessage = new InternalMessageController();
33367
+ }
33368
+ async init() {
33369
+ await this.internalMessage.init();
33370
+ await this.asyncAction.init();
33371
+ }
33372
+ };
33373
+
33037
33374
  // src/app-hub.ts
33038
33375
  var AppHub = class {
33039
33376
  constructor() {
@@ -33103,6 +33440,7 @@ var AppHub = class {
33103
33440
  * @date 2023-07-03 07:12:05
33104
33441
  */
33105
33442
  this.config = new AppConfigService();
33443
+ this.notice = new NoticeController();
33106
33444
  /**
33107
33445
  * 默认首页视图名称
33108
33446
  *
@@ -33236,7 +33574,7 @@ var AppHub = class {
33236
33574
  this.registerAppView(appView);
33237
33575
  return appView;
33238
33576
  }
33239
- throw new RuntimeError64("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
33577
+ throw new RuntimeError65("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
33240
33578
  }
33241
33579
  /**
33242
33580
  * 根据视图模型路径,加参数重新计算视图模型
@@ -33257,7 +33595,7 @@ var AppHub = class {
33257
33595
  );
33258
33596
  return model;
33259
33597
  }
33260
- throw new RuntimeError64("\u89C6\u56FE[".concat(modelPath, "]\u4E0D\u5B58\u5728"));
33598
+ throw new RuntimeError65("\u89C6\u56FE[".concat(modelPath, "]\u4E0D\u5B58\u5728"));
33261
33599
  }
33262
33600
  /**
33263
33601
  * 根据应用实体代码名称查找应用视图
@@ -33288,7 +33626,7 @@ var AppHub = class {
33288
33626
  this.registerAppDataEntity(entity, appId2);
33289
33627
  return entity;
33290
33628
  }
33291
- throw new RuntimeError64("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
33629
+ throw new RuntimeError65("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
33292
33630
  }
33293
33631
  /**
33294
33632
  * 新建 hub 应用
@@ -33303,7 +33641,7 @@ var AppHub = class {
33303
33641
  return this.appMap.get(id);
33304
33642
  }
33305
33643
  if (!this.modelLoaderProvider) {
33306
- throw new RuntimeError64("\u8BF7\u5148\u6CE8\u518C\u6A21\u578B\u52A0\u8F7D\u9002\u914D\u5668");
33644
+ throw new RuntimeError65("\u8BF7\u5148\u6CE8\u518C\u6A21\u578B\u52A0\u8F7D\u9002\u914D\u5668");
33307
33645
  }
33308
33646
  const appModel = await this.modelLoaderProvider.getApp(id);
33309
33647
  const app = new Application(appModel);
@@ -33434,7 +33772,7 @@ var EngineFactory = class {
33434
33772
  };
33435
33773
 
33436
33774
  // src/engine/view-base.engine.ts
33437
- import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
33775
+ import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
33438
33776
  var ViewEngineBase = class {
33439
33777
  /**
33440
33778
  * 构造函数在视图控制器的构造函数逻辑内部执行
@@ -33622,7 +33960,7 @@ var ViewEngineBase = class {
33622
33960
  const { appDataEntityId } = this.view.model;
33623
33961
  const { evt, context, params } = this.view;
33624
33962
  if (!appDataEntityId) {
33625
- throw new RuntimeError65("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
33963
+ throw new RuntimeError66("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
33626
33964
  }
33627
33965
  const app = ibiz.hub.getApp(context.srfappid);
33628
33966
  const res = await app.deService.exec(
@@ -33644,7 +33982,7 @@ var ViewEngineBase = class {
33644
33982
 
33645
33983
  // src/engine/md-view.engine.ts
33646
33984
  import { RuntimeModelError as RuntimeModelError70 } from "@ibiz-template/core";
33647
- import { clone as clone30 } from "ramda";
33985
+ import { clone as clone31 } from "ramda";
33648
33986
  var MDViewEngine = class extends ViewEngineBase {
33649
33987
  /**
33650
33988
  * 多数据部件名称
@@ -33856,7 +34194,7 @@ var MDViewEngine = class extends ViewEngineBase {
33856
34194
  if (!openAppViewLogic) {
33857
34195
  throw new RuntimeModelError70(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
33858
34196
  }
33859
- const params = clone30(this.view.params);
34197
+ const params = clone31(this.view.params);
33860
34198
  if (copyMode) {
33861
34199
  params.srfcopymode = copyMode;
33862
34200
  }
@@ -34051,6 +34389,14 @@ var GlobalUtil = class {
34051
34389
  * @memberof GlobalUtil
34052
34390
  */
34053
34391
  this.anime = new AnimeUtil();
34392
+ /**
34393
+ * 文件工具类
34394
+ *
34395
+ * @author zk
34396
+ * @date 2024-01-26 04:01:24
34397
+ * @memberof GlobalUtil
34398
+ */
34399
+ this.file = new FileUtil();
34054
34400
  this.error.register(new DefaultErrorHandler());
34055
34401
  }
34056
34402
  /**
@@ -34082,7 +34428,7 @@ var GlobalUtil = class {
34082
34428
  };
34083
34429
 
34084
34430
  // src/logic-scheduler/executor/logic-executor.ts
34085
- import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
34431
+ import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
34086
34432
  var LogicExecutor = class {
34087
34433
  /**
34088
34434
  * @author lxm
@@ -34103,7 +34449,7 @@ var LogicExecutor = class {
34103
34449
  */
34104
34450
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
34105
34451
  execute(_executeParams) {
34106
- throw new RuntimeError66("Method not implemented.");
34452
+ throw new RuntimeError67("Method not implemented.");
34107
34453
  }
34108
34454
  /**
34109
34455
  * 销毁方法
@@ -34540,7 +34886,7 @@ var LogicSchedulerCenter = class {
34540
34886
  };
34541
34887
 
34542
34888
  // src/logic-scheduler/trigger/logic-trigger.ts
34543
- import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
34889
+ import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
34544
34890
  var LogicTrigger = class {
34545
34891
  /**
34546
34892
  * @author lxm
@@ -34600,7 +34946,7 @@ var LogicTrigger = class {
34600
34946
  if (this.executor) {
34601
34947
  return this.executor.execute(executeParams);
34602
34948
  }
34603
- throw new RuntimeError67("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
34949
+ throw new RuntimeError68("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
34604
34950
  }
34605
34951
  /**
34606
34952
  * 销毁方法
@@ -34617,12 +34963,12 @@ var CustomTrigger = class extends LogicTrigger {
34617
34963
  };
34618
34964
 
34619
34965
  // src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
34620
- import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
34966
+ import { RuntimeError as RuntimeError69 } from "@ibiz-template/core";
34621
34967
  var ItemDynaLogicTrigger = class extends LogicTrigger {
34622
34968
  bindExecutor(executor) {
34623
34969
  super.bindExecutor(executor);
34624
34970
  if (this.executor.type !== "SCRIPT") {
34625
- throw new RuntimeError68(
34971
+ throw new RuntimeError69(
34626
34972
  "\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
34627
34973
  );
34628
34974
  }
@@ -34658,7 +35004,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
34658
35004
  };
34659
35005
 
34660
35006
  // src/logic-scheduler/trigger/timer-trigger.ts
34661
- import { RuntimeError as RuntimeError69, RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
35007
+ import { RuntimeError as RuntimeError70, RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
34662
35008
  var TimerTrigger = class extends LogicTrigger {
34663
35009
  constructor() {
34664
35010
  super(...arguments);
@@ -34670,7 +35016,7 @@ var TimerTrigger = class extends LogicTrigger {
34670
35016
  }
34671
35017
  this.timer = setInterval(() => {
34672
35018
  if (!this.scheduler.defaultParamsCb) {
34673
- throw new RuntimeError69("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
35019
+ throw new RuntimeError70("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
34674
35020
  }
34675
35021
  const params = this.scheduler.defaultParamsCb();
34676
35022
  this.executor.execute(params);
@@ -34687,7 +35033,7 @@ var TimerTrigger = class extends LogicTrigger {
34687
35033
  // src/logic-scheduler/executor/app-ui-logic-executor.ts
34688
35034
  import {
34689
35035
  ModelError as ModelError34,
34690
- RuntimeError as RuntimeError70,
35036
+ RuntimeError as RuntimeError71,
34691
35037
  RuntimeModelError as RuntimeModelError73
34692
35038
  } from "@ibiz-template/core";
34693
35039
  import { notNilEmpty as notNilEmpty9 } from "qx-util";
@@ -34725,7 +35071,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
34725
35071
  const { context, params, ...rest } = parameters;
34726
35072
  const { data } = parameters;
34727
35073
  if (!(data == null ? void 0 : data[0])) {
34728
- throw new RuntimeError70("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
35074
+ throw new RuntimeError71("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
34729
35075
  }
34730
35076
  const openViewRefs = appUILogic.openDataAppViews;
34731
35077
  let openViewRef;
@@ -34785,7 +35131,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
34785
35131
  const openViewRefs = appUILogic.openDataAppViews;
34786
35132
  const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
34787
35133
  if (!findView) {
34788
- throw new RuntimeError70(
35134
+ throw new RuntimeError71(
34789
35135
  "\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
34790
35136
  );
34791
35137
  }
@@ -34910,7 +35256,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
34910
35256
  }
34911
35257
  const selectData = (_a = result.data) == null ? void 0 : _a[0];
34912
35258
  if (!selectData) {
34913
- throw new RuntimeError70("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
35259
+ throw new RuntimeError71("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
34914
35260
  }
34915
35261
  const indexType = selectData.srfkey;
34916
35262
  const findView = newDataAppViews == null ? void 0 : newDataAppViews.find(
@@ -34920,7 +35266,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
34920
35266
  }
34921
35267
  );
34922
35268
  if (!findView) {
34923
- throw new RuntimeError70(
35269
+ throw new RuntimeError71(
34924
35270
  "\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
34925
35271
  );
34926
35272
  }
@@ -34957,7 +35303,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
34957
35303
  }
34958
35304
  });
34959
35305
  if (pickParentFieldName === void 0) {
34960
- throw new RuntimeError70(
35306
+ throw new RuntimeError71(
34961
35307
  "\u6CA1\u6709\u627E\u5230".concat(pickParentDeName, "\u5728\u5F53\u524D\u5B9E\u4F53\u7684\u5916\u952E\u5C5E\u6027")
34962
35308
  );
34963
35309
  }
@@ -35289,6 +35635,7 @@ export {
35289
35635
  ExpBarControlController,
35290
35636
  FORMDETAIL_PROVIDER_PREFIX,
35291
35637
  FetchMethod,
35638
+ FileUtil,
35292
35639
  FormButtonController,
35293
35640
  FormButtonState,
35294
35641
  FormController,
@@ -35452,11 +35799,13 @@ export {
35452
35799
  calcDeCodeNameById,
35453
35800
  calcDynaClass,
35454
35801
  calcDynaSysParams,
35802
+ calcFilterModelBySchema,
35455
35803
  calcGridLayoutPos,
35456
35804
  calcLayoutHeightWidth,
35457
35805
  calcMainStateOPPrivsStrs,
35458
35806
  calcNavParams,
35459
35807
  calcResPath,
35808
+ calcSearchConds,
35460
35809
  compare,
35461
35810
  compareNumber,
35462
35811
  contains,
@@ -35477,6 +35826,7 @@ export {
35477
35826
  findEditItem,
35478
35827
  findFieldById,
35479
35828
  findModelChild,
35829
+ formatFilters,
35480
35830
  formatMultiData,
35481
35831
  generateEditorRules,
35482
35832
  generateRules,
@@ -35501,6 +35851,7 @@ export {
35501
35851
  getInternalMessageProvider,
35502
35852
  getMatchResPath,
35503
35853
  getOriginData,
35854
+ getOriginFilterNodes,
35504
35855
  getPFPlugin,
35505
35856
  getPanelItemProvider,
35506
35857
  getPlatformProvider,
@@ -35529,6 +35880,7 @@ export {
35529
35880
  isValueChange,
35530
35881
  matchMainState,
35531
35882
  openRedirectView,
35883
+ parseFilters,
35532
35884
  parseUserParams,
35533
35885
  presetAppCounterProvider,
35534
35886
  presetDEMethodProvider,