@ibiz-template/runtime 0.3.4 → 0.3.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 (79) hide show
  1. package/dist/index.esm.js +308 -163
  2. package/dist/index.system.min.js +2 -2
  3. package/dist/index.system.min.js.map +1 -1
  4. package/out/constant/index.d.ts +1 -0
  5. package/out/constant/index.d.ts.map +1 -1
  6. package/out/constant/index.js +1 -0
  7. package/out/constant/platform-type.d.ts +43 -0
  8. package/out/constant/platform-type.d.ts.map +1 -0
  9. package/out/constant/platform-type.js +44 -0
  10. package/out/constant/view-call-tag.d.ts +5 -1
  11. package/out/constant/view-call-tag.d.ts.map +1 -1
  12. package/out/constant/view-call-tag.js +4 -0
  13. package/out/controller/control/chart/generator/funnel-series-generator.js +1 -1
  14. package/out/controller/control/chart/generator/pie-series-generator.js +1 -1
  15. package/out/index.d.ts +1 -0
  16. package/out/index.d.ts.map +1 -1
  17. package/out/index.js +1 -0
  18. package/out/install.d.ts.map +1 -1
  19. package/out/install.js +6 -0
  20. package/out/interface/provider/i-platform-provider.d.ts +49 -0
  21. package/out/interface/provider/i-platform-provider.d.ts.map +1 -0
  22. package/out/interface/provider/i-platform-provider.js +1 -0
  23. package/out/interface/provider/index.d.ts +1 -0
  24. package/out/interface/provider/index.d.ts.map +1 -1
  25. package/out/interface/service/service/i-auth.service.d.ts +1 -1
  26. package/out/interface/service/service/i-auth.service.d.ts.map +1 -1
  27. package/out/platform/index.d.ts +3 -0
  28. package/out/platform/index.d.ts.map +1 -0
  29. package/out/platform/index.js +2 -0
  30. package/out/platform/platform-util.d.ts +11 -0
  31. package/out/platform/platform-util.d.ts.map +1 -0
  32. package/out/platform/platform-util.js +50 -0
  33. package/out/platform/provider/browser-platform-provider.d.ts +13 -0
  34. package/out/platform/provider/browser-platform-provider.d.ts.map +1 -0
  35. package/out/platform/provider/browser-platform-provider.js +12 -0
  36. package/out/platform/provider/index.d.ts +12 -0
  37. package/out/platform/provider/index.d.ts.map +1 -0
  38. package/out/platform/provider/index.js +17 -0
  39. package/out/platform/provider/platform-provider-base.d.ts +18 -0
  40. package/out/platform/provider/platform-provider-base.d.ts.map +1 -0
  41. package/out/platform/provider/platform-provider-base.js +42 -0
  42. package/out/register/helper/index.d.ts +1 -0
  43. package/out/register/helper/index.d.ts.map +1 -1
  44. package/out/register/helper/index.js +1 -0
  45. package/out/register/helper/platform-register.d.ts +23 -0
  46. package/out/register/helper/platform-register.d.ts.map +1 -0
  47. package/out/register/helper/platform-register.js +44 -0
  48. package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
  49. package/out/service/app-data-entity/app-data-entity.js +9 -2
  50. package/out/service/service/auth/v7-auth.service.d.ts +1 -1
  51. package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
  52. package/out/service/service/auth/v7-auth.service.js +6 -2
  53. package/out/types.d.ts +10 -1
  54. package/out/types.d.ts.map +1 -1
  55. package/out/ui-action/provider/front-ui-action-provider.d.ts +1 -1
  56. package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
  57. package/out/ui-action/provider/front-ui-action-provider.js +8 -9
  58. package/package.json +3 -3
  59. package/src/constant/index.ts +1 -0
  60. package/src/constant/platform-type.ts +50 -0
  61. package/src/constant/view-call-tag.ts +4 -0
  62. package/src/controller/control/chart/generator/funnel-series-generator.ts +1 -1
  63. package/src/controller/control/chart/generator/pie-series-generator.ts +1 -1
  64. package/src/index.ts +1 -0
  65. package/src/install.ts +6 -0
  66. package/src/interface/provider/i-platform-provider.ts +55 -0
  67. package/src/interface/provider/index.ts +1 -0
  68. package/src/interface/service/service/i-auth.service.ts +5 -1
  69. package/src/platform/index.ts +2 -0
  70. package/src/platform/platform-util.ts +57 -0
  71. package/src/platform/provider/browser-platform-provider.ts +12 -0
  72. package/src/platform/provider/index.ts +19 -0
  73. package/src/platform/provider/platform-provider-base.ts +50 -0
  74. package/src/register/helper/index.ts +1 -0
  75. package/src/register/helper/platform-register.ts +56 -0
  76. package/src/service/app-data-entity/app-data-entity.ts +9 -2
  77. package/src/service/service/auth/v7-auth.service.ts +10 -2
  78. package/src/types.ts +11 -0
  79. package/src/ui-action/provider/front-ui-action-provider.ts +23 -5
package/dist/index.esm.js CHANGED
@@ -71,7 +71,7 @@ var RegisterCenter = class {
71
71
  };
72
72
 
73
73
  // src/command/app/app-func/app-func.ts
74
- import { ModelError as ModelError15, RuntimeError as RuntimeError20 } from "@ibiz-template/core";
74
+ import { ModelError as ModelError15, RuntimeError as RuntimeError21 } from "@ibiz-template/core";
75
75
 
76
76
  // src/utils/handlebars/utils/helper/helper.ts
77
77
  var HelperUtil = class {
@@ -2307,6 +2307,7 @@ var ViewCallTag = /* @__PURE__ */ ((ViewCallTag2) => {
2307
2307
  ViewCallTag2["GET_ALL_DATA"] = "GetAllData";
2308
2308
  ViewCallTag2["VALIDATE"] = "Validate";
2309
2309
  ViewCallTag2["TOGGLE_COLLAPSE"] = "ToggleCollapse";
2310
+ ViewCallTag2["WF_WITHDRAW"] = "WFWithdraw";
2310
2311
  return ViewCallTag2;
2311
2312
  })(ViewCallTag || {});
2312
2313
 
@@ -2333,6 +2334,19 @@ var ValueOP = /* @__PURE__ */ ((ValueOP2) => {
2333
2334
  return ValueOP2;
2334
2335
  })(ValueOP || {});
2335
2336
 
2337
+ // src/constant/platform-type.ts
2338
+ var PlatformType = /* @__PURE__ */ ((PlatformType2) => {
2339
+ PlatformType2["IOS"] = "IOS";
2340
+ PlatformType2["ANDROID"] = "Android";
2341
+ PlatformType2["WECHAT"] = "WeChat";
2342
+ PlatformType2["QQ"] = "QQ";
2343
+ PlatformType2["DINGTALK"] = "DingTalk";
2344
+ PlatformType2["BROWSER"] = "Browser";
2345
+ PlatformType2["WCMP"] = "WeChatMiniProgram";
2346
+ PlatformType2["DESKTOP"] = "Desktop";
2347
+ return PlatformType2;
2348
+ })(PlatformType || {});
2349
+
2336
2350
  // src/constant/studio-event.ts
2337
2351
  var StudioViewEvents = class {
2338
2352
  };
@@ -2592,7 +2606,7 @@ async function handleAllSettled(values, isThrow = true) {
2592
2606
  }
2593
2607
 
2594
2608
  // src/command/app/open-app-view/open-app-view.ts
2595
- import { ModelError as ModelError14, RuntimeError as RuntimeError19 } from "@ibiz-template/core";
2609
+ import { ModelError as ModelError14, RuntimeError as RuntimeError20 } from "@ibiz-template/core";
2596
2610
  import { clone as clone13 } from "ramda";
2597
2611
 
2598
2612
  // src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
@@ -3422,8 +3436,103 @@ function getAsyncActionProvider(actiontype) {
3422
3436
  }
3423
3437
  }
3424
3438
 
3439
+ // src/platform/provider/platform-provider-base.ts
3440
+ import { downloadFileFromBlob, RuntimeError as RuntimeError9 } from "@ibiz-template/core";
3441
+ var PlatformProviderBase = class {
3442
+ back() {
3443
+ throw new Error("Method not implemented.");
3444
+ }
3445
+ init() {
3446
+ throw new Error("Method not implemented.");
3447
+ }
3448
+ async login(loginName, passWord, _verificationCode) {
3449
+ return ibiz.auth.login(loginName, passWord);
3450
+ }
3451
+ async download(url, name) {
3452
+ const response = await ibiz.net.request(url, {
3453
+ method: "get",
3454
+ responseType: "blob"
3455
+ });
3456
+ if (response.status !== 200) {
3457
+ throw new RuntimeError9("\u4E0B\u8F7D\u6587\u4EF6\u5931\u8D25");
3458
+ }
3459
+ if (!response.data) {
3460
+ throw new RuntimeError9("\u6587\u4EF6\u6D41\u6570\u636E\u4E0D\u5B58\u5728");
3461
+ } else {
3462
+ const fileName = name;
3463
+ downloadFileFromBlob(response.data, fileName);
3464
+ return Promise.resolve(true);
3465
+ }
3466
+ }
3467
+ };
3468
+
3469
+ // src/platform/provider/browser-platform-provider.ts
3470
+ var BrowserPlatformProvider = class extends PlatformProviderBase {
3471
+ };
3472
+
3473
+ // src/platform/provider/index.ts
3474
+ function install() {
3475
+ const browserPlatformProvider = new BrowserPlatformProvider();
3476
+ registerPlatformProvider("Browser" /* BROWSER */, () => browserPlatformProvider);
3477
+ }
3478
+
3479
+ // src/platform/platform-util.ts
3480
+ var ua = window.navigator.userAgent.toLowerCase();
3481
+ function isAndroid() {
3482
+ return /Android|Adr/i.test(ua);
3483
+ }
3484
+ function isIos() {
3485
+ return /iPhone|iPod|iPad/i.test(ua);
3486
+ }
3487
+ function isWeChat() {
3488
+ return /MicroMessenger/i.test(ua);
3489
+ }
3490
+ function isDingDing() {
3491
+ return /DingTalk/i.test(ua);
3492
+ }
3493
+ function isWxMp() {
3494
+ return /miniProgram/i.test(ua) || window.__wxjs_environment === "miniprogram";
3495
+ }
3496
+ function getPlatformType() {
3497
+ if (isAndroid()) {
3498
+ return "Android" /* ANDROID */;
3499
+ }
3500
+ if (isIos()) {
3501
+ return "IOS" /* IOS */;
3502
+ }
3503
+ if (isWeChat()) {
3504
+ return "WeChat" /* WECHAT */;
3505
+ }
3506
+ if (isDingDing()) {
3507
+ return "DingTalk" /* DINGTALK */;
3508
+ }
3509
+ if (isWxMp()) {
3510
+ return "WeChatMiniProgram" /* WCMP */;
3511
+ }
3512
+ return "Browser" /* BROWSER */;
3513
+ }
3514
+
3515
+ // src/register/helper/platform-register.ts
3516
+ var PLATFORM_PROVIDER_PREFIX = "PLATFORM";
3517
+ function registerPlatformProvider(key, callback) {
3518
+ ibiz.register.register("".concat(PLATFORM_PROVIDER_PREFIX, "_").concat(key), callback);
3519
+ }
3520
+ function getProvider11(key) {
3521
+ return ibiz.register.get(
3522
+ "".concat(PLATFORM_PROVIDER_PREFIX, "_").concat(key)
3523
+ );
3524
+ }
3525
+ function getPlatformProvider() {
3526
+ const platformType = getPlatformType();
3527
+ const provider = getProvider11(platformType);
3528
+ if (!provider) {
3529
+ return getProvider11("Browser" /* BROWSER */);
3530
+ }
3531
+ return provider;
3532
+ }
3533
+
3425
3534
  // src/service/utils/app-counter/app-counter.ts
3426
- import { IBizContext, RuntimeError as RuntimeError9 } from "@ibiz-template/core";
3535
+ import { IBizContext, RuntimeError as RuntimeError10 } from "@ibiz-template/core";
3427
3536
  import { notNilEmpty as notNilEmpty5, QXEvent } from "qx-util";
3428
3537
  import { clone as clone2 } from "ramda";
3429
3538
  var AppCounter = class {
@@ -3528,7 +3637,7 @@ var AppCounter = class {
3528
3637
  * @return {*} {Promise<IData>}
3529
3638
  */
3530
3639
  async load() {
3531
- throw new RuntimeError9("\u672A\u5B9E\u73B0\u8BA1\u6570\u5668\u52A0\u8F7D\u65B9\u6CD5");
3640
+ throw new RuntimeError10("\u672A\u5B9E\u73B0\u8BA1\u6570\u5668\u52A0\u8F7D\u65B9\u6CD5");
3532
3641
  }
3533
3642
  /**
3534
3643
  * 计数器刷新
@@ -3961,7 +4070,7 @@ import { where, equals, clone as clone3, isNil as isNil5, isEmpty as isEmpty5 }
3961
4070
  import { createUUID } from "qx-util";
3962
4071
 
3963
4072
  // src/service/utils/service-exist-util/service-exist-util.ts
3964
- import { RuntimeError as RuntimeError10 } from "@ibiz-template/core";
4073
+ import { RuntimeError as RuntimeError11 } from "@ibiz-template/core";
3965
4074
  import { isEmpty as isEmpty4, isNil as isNil4 } from "ramda";
3966
4075
  function isExistSrfKey(funcName, entity) {
3967
4076
  if (entity != null) {
@@ -3970,14 +4079,14 @@ function isExistSrfKey(funcName, entity) {
3970
4079
  return true;
3971
4080
  }
3972
4081
  }
3973
- throw new RuntimeError10("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfkey\u300D\u65E0\u6CD5\u5904\u7406"));
4082
+ throw new RuntimeError11("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfkey\u300D\u65E0\u6CD5\u5904\u7406"));
3974
4083
  }
3975
4084
  function isExistSessionId(funcName, context) {
3976
4085
  const { srfsessionid } = context;
3977
4086
  if (!isNil4(srfsessionid) && !isEmpty4(srfsessionid)) {
3978
4087
  return true;
3979
4088
  }
3980
- throw new RuntimeError10("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
4089
+ throw new RuntimeError11("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
3981
4090
  }
3982
4091
 
3983
4092
  // src/service/utils/de-cache/de-cache.ts
@@ -4468,7 +4577,7 @@ var SearchFilter = class {
4468
4577
  };
4469
4578
 
4470
4579
  // src/service/service/code-list/code-list.service.ts
4471
- import { RuntimeError as RuntimeError11 } from "@ibiz-template/core";
4580
+ import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
4472
4581
  var CodeListService = class {
4473
4582
  constructor(appModel) {
4474
4583
  this.appModel = appModel;
@@ -4615,7 +4724,7 @@ var CodeListService = class {
4615
4724
  async get(tag, context, params) {
4616
4725
  const codeList = this.allCodeLists.get(tag);
4617
4726
  if (!codeList) {
4618
- throw new RuntimeError11("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
4727
+ throw new RuntimeError12("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
4619
4728
  }
4620
4729
  if (codeList.codeListType === "STATIC") {
4621
4730
  return this.getStatic(codeList);
@@ -4737,11 +4846,11 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
4737
4846
  // src/service/service/entity/de.service.ts
4738
4847
  import {
4739
4848
  ModelError as ModelError13,
4740
- RuntimeError as RuntimeError15
4849
+ RuntimeError as RuntimeError16
4741
4850
  } from "@ibiz-template/core";
4742
4851
 
4743
4852
  // src/service/service/work-flow/work-flow.service.ts
4744
- import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
4853
+ import { RuntimeError as RuntimeError13 } from "@ibiz-template/core";
4745
4854
  var WorkFlowService = class {
4746
4855
  /**
4747
4856
  * Creates an instance of WorkFlowService.
@@ -5061,7 +5170,7 @@ var WorkFlowService = class {
5061
5170
  case "sendcopy":
5062
5171
  return this.wfSendCopy(context, params, data);
5063
5172
  default: {
5064
- throw new RuntimeError12("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
5173
+ throw new RuntimeError13("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
5065
5174
  }
5066
5175
  }
5067
5176
  }
@@ -5103,7 +5212,7 @@ var FileService = class {
5103
5212
  // src/service/service/entity/method/de-action.ts
5104
5213
  import {
5105
5214
  HttpResponse as HttpResponse3,
5106
- RuntimeError as RuntimeError14,
5215
+ RuntimeError as RuntimeError15,
5107
5216
  RuntimeModelError as RuntimeModelError19
5108
5217
  } from "@ibiz-template/core";
5109
5218
  import { isArray as isArray6, isNil as isNil8 } from "lodash-es";
@@ -5269,11 +5378,18 @@ var AppDataEntity = class _AppDataEntity {
5269
5378
  * @return {*} {AppDataEntity}
5270
5379
  */
5271
5380
  assign(data) {
5381
+ let _data = {};
5272
5382
  if (data instanceof _AppDataEntity) {
5273
- Object.assign(this._data, data._data);
5383
+ _data = data._data;
5274
5384
  } else {
5275
- Object.assign(this._data, data);
5385
+ _data = data;
5276
5386
  }
5387
+ Object.keys(_data).forEach((key) => {
5388
+ if (_data[key] === void 0) {
5389
+ delete _data[key];
5390
+ }
5391
+ });
5392
+ Object.assign(this._data, _data);
5277
5393
  return this;
5278
5394
  }
5279
5395
  /**
@@ -5697,7 +5813,7 @@ var Method = class {
5697
5813
  };
5698
5814
 
5699
5815
  // src/de-logic/index.ts
5700
- import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as RuntimeError13 } from "@ibiz-template/core";
5816
+ import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as RuntimeError14 } from "@ibiz-template/core";
5701
5817
  import { isArray as isArray5 } from "lodash-es";
5702
5818
  import { clone as clone9 } from "ramda";
5703
5819
 
@@ -6750,7 +6866,7 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
6750
6866
  context.srfappid
6751
6867
  );
6752
6868
  if (!deLogic) {
6753
- throw new RuntimeError13("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
6869
+ throw new RuntimeError14("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
6754
6870
  }
6755
6871
  return execDELogic(deLogic, context, data, params);
6756
6872
  }
@@ -6909,7 +7025,7 @@ var DEActionMethod = class extends Method {
6909
7025
  */
6910
7026
  async create(context, data, params) {
6911
7027
  if (!data) {
6912
- throw new RuntimeError14("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
7028
+ throw new RuntimeError15("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
6913
7029
  }
6914
7030
  if (this.isLocalMode) {
6915
7031
  return this.createTemp(context, this.createEntity(data));
@@ -6951,7 +7067,7 @@ var DEActionMethod = class extends Method {
6951
7067
  */
6952
7068
  async update(context, data, params) {
6953
7069
  if (!data) {
6954
- throw new RuntimeError14("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
7070
+ throw new RuntimeError15("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
6955
7071
  }
6956
7072
  if (this.isLocalMode) {
6957
7073
  return this.updateTemp(context, this.createEntity(data));
@@ -7423,7 +7539,7 @@ var DEService = class {
7423
7539
  if (method) {
7424
7540
  return method.exec(context, params, params2);
7425
7541
  }
7426
- throw new RuntimeError15("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
7542
+ throw new RuntimeError16("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
7427
7543
  }
7428
7544
  getDraft(context, params, params2) {
7429
7545
  return this.exec("GetDraft", context, params, params2);
@@ -7459,7 +7575,7 @@ var DEService = class {
7459
7575
  if (method) {
7460
7576
  return method.exec(context, params, params2);
7461
7577
  }
7462
- throw new RuntimeError15("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
7578
+ throw new RuntimeError16("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
7463
7579
  }
7464
7580
  /**
7465
7581
  * 实体级别 AI 聊天会话
@@ -7819,7 +7935,7 @@ var ControlService = class {
7819
7935
  };
7820
7936
 
7821
7937
  // src/service/service/control/md-control.service.ts
7822
- import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
7938
+ import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
7823
7939
  import { isArray as isArray8 } from "qx-util";
7824
7940
  var MDControlService = class extends ControlService {
7825
7941
  /**
@@ -7928,7 +8044,7 @@ var MDControlService = class extends ControlService {
7928
8044
  * @returns {*} {Promise<IHttpResponse>}
7929
8045
  */
7930
8046
  async exportData(_dataExport, _context, _params = {}) {
7931
- throw new RuntimeError16("\u672A\u5B9E\u73B0");
8047
+ throw new RuntimeError17("\u672A\u5B9E\u73B0");
7932
8048
  }
7933
8049
  /**
7934
8050
  * 处理响应
@@ -7963,7 +8079,7 @@ var MDControlService = class extends ControlService {
7963
8079
  };
7964
8080
 
7965
8081
  // src/service/service/authority/authority.service.ts
7966
- import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
8082
+ import { RuntimeError as RuntimeError18 } from "@ibiz-template/core";
7967
8083
 
7968
8084
  // src/service/service/authority/de-authority.service.ts
7969
8085
  var DeAuthorityService = class {
@@ -8099,7 +8215,7 @@ var AuthorityService = class {
8099
8215
  this.appModel.appId
8100
8216
  );
8101
8217
  if (!entityModel) {
8102
- throw new RuntimeError17("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
8218
+ throw new RuntimeError18("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
8103
8219
  }
8104
8220
  const constructor = this.constructorCache.get(id);
8105
8221
  let service;
@@ -8170,9 +8286,13 @@ var AuthorityService = class {
8170
8286
  import { CoreConst } from "@ibiz-template/core";
8171
8287
  import { clearCookie, setCookie } from "qx-util";
8172
8288
  var V7AuthService = class {
8173
- async login(loginname, password) {
8289
+ async login(loginname, password, rememberme) {
8174
8290
  try {
8175
- const res = await ibiz.net.post("/v7/login", { loginname, password });
8291
+ const res = await ibiz.net.post("/v7/login", {
8292
+ loginname,
8293
+ password,
8294
+ rememberme
8295
+ });
8176
8296
  const { data } = res;
8177
8297
  if (data && data.token) {
8178
8298
  setCookie(CoreConst.TOKEN, data.token, 0, true);
@@ -8822,7 +8942,7 @@ var MqttService = class {
8822
8942
  };
8823
8943
 
8824
8944
  // src/service/de-service-util.ts
8825
- import { RuntimeError as RuntimeError18 } from "@ibiz-template/core";
8945
+ import { RuntimeError as RuntimeError19 } from "@ibiz-template/core";
8826
8946
  var DEServiceUtil = class {
8827
8947
  /**
8828
8948
  * Creates an instance of DEServiceUtil.
@@ -8877,7 +8997,7 @@ var DEServiceUtil = class {
8877
8997
  this.appModel.appId
8878
8998
  );
8879
8999
  if (!entityModel) {
8880
- throw new RuntimeError18("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
9000
+ throw new RuntimeError19("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
8881
9001
  }
8882
9002
  const constructor = this.constructorCache.get(id);
8883
9003
  let service;
@@ -8940,7 +9060,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
8940
9060
  const context = clone13(_context);
8941
9061
  const appView = await ibiz.hub.config.view.get(appViewId);
8942
9062
  if (!appView) {
8943
- throw new RuntimeError19("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
9063
+ throw new RuntimeError20("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
8944
9064
  }
8945
9065
  if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
8946
9066
  const deName = calcDeCodeNameById(appView.appDataEntityId);
@@ -9029,7 +9149,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
9029
9149
  */
9030
9150
  async openPopover(appView, event, context, params = {}) {
9031
9151
  if (!event) {
9032
- throw new RuntimeError19("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
9152
+ throw new RuntimeError20("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
9033
9153
  }
9034
9154
  return ibiz.openView.popover(appView.id, event, context, params);
9035
9155
  }
@@ -9084,7 +9204,7 @@ var _AppFuncCommand = class _AppFuncCommand {
9084
9204
  async exec(appFuncId, context, params = {}, opts = {}) {
9085
9205
  const appFunc = ibiz.hub.getApp(context.srfappid).getAppFunc(appFuncId);
9086
9206
  if (!appFunc) {
9087
- throw new RuntimeError20("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
9207
+ throw new RuntimeError21("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
9088
9208
  }
9089
9209
  const { navigateContexts, navigateParams, appFuncType } = appFunc;
9090
9210
  const _context = context.clone();
@@ -9118,7 +9238,7 @@ var _AppFuncCommand = class _AppFuncCommand {
9118
9238
  */
9119
9239
  async openAppView(appFunc, context, params, opts) {
9120
9240
  if (!appFunc.appViewId) {
9121
- throw new RuntimeError20("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
9241
+ throw new RuntimeError21("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
9122
9242
  }
9123
9243
  return ibiz.commands.execute(
9124
9244
  OpenAppViewCommand.TAG,
@@ -9152,7 +9272,7 @@ var _AppFuncCommand = class _AppFuncCommand {
9152
9272
  */
9153
9273
  openPdAppFunc(appFunc, context, params) {
9154
9274
  ibiz.log.warn("openPdAppFunc", appFunc, context, params);
9155
- throw new RuntimeError20("\u672A\u5B9E\u73B0");
9275
+ throw new RuntimeError21("\u672A\u5B9E\u73B0");
9156
9276
  }
9157
9277
  /**
9158
9278
  * 执行 JavaScript 脚本
@@ -9166,7 +9286,7 @@ var _AppFuncCommand = class _AppFuncCommand {
9166
9286
  */
9167
9287
  executeJavaScript(appFunc, context, params) {
9168
9288
  ibiz.log.warn("executeJavaScript", appFunc, context, params);
9169
- throw new RuntimeError20("\u672A\u5B9E\u73B0");
9289
+ throw new RuntimeError21("\u672A\u5B9E\u73B0");
9170
9290
  }
9171
9291
  /**
9172
9292
  * 自定义应用功能
@@ -9180,7 +9300,7 @@ var _AppFuncCommand = class _AppFuncCommand {
9180
9300
  */
9181
9301
  custom(appFunc, context, params) {
9182
9302
  ibiz.log.warn("custom", appFunc, context, params);
9183
- throw new RuntimeError20("\u672A\u5B9E\u73B0");
9303
+ throw new RuntimeError21("\u672A\u5B9E\u73B0");
9184
9304
  }
9185
9305
  };
9186
9306
  /**
@@ -9201,7 +9321,7 @@ function installCommand() {
9201
9321
  }
9202
9322
 
9203
9323
  // src/app-hub.ts
9204
- import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
9324
+ import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
9205
9325
 
9206
9326
  // src/application.ts
9207
9327
  import { Net, getToken } from "@ibiz-template/core";
@@ -9393,7 +9513,7 @@ var Convert = class {
9393
9513
  };
9394
9514
 
9395
9515
  // src/hub/config/app-view-config-service.ts
9396
- import { RuntimeError as RuntimeError21 } from "@ibiz-template/core";
9516
+ import { RuntimeError as RuntimeError22 } from "@ibiz-template/core";
9397
9517
  var AppViewConfigService = class {
9398
9518
  constructor() {
9399
9519
  /**
@@ -9413,7 +9533,7 @@ var AppViewConfigService = class {
9413
9533
  if (!this.viewConfigs.has(key)) {
9414
9534
  const model = await ibiz.hub.getAppView(key);
9415
9535
  if (!model) {
9416
- throw new RuntimeError21("\u89C6\u56FE[".concat(key, "]\u4E0D\u5B58\u5728"));
9536
+ throw new RuntimeError22("\u89C6\u56FE[".concat(key, "]\u4E0D\u5B58\u5728"));
9417
9537
  }
9418
9538
  this.set(model.id, {
9419
9539
  id: model.id,
@@ -9469,14 +9589,14 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
9469
9589
 
9470
9590
  // src/controller/common/view/view.controller.ts
9471
9591
  import { createUUID as createUUID7, notNilEmpty as notNilEmpty6 } from "qx-util";
9472
- import { IBizContext as IBizContext2, RuntimeError as RuntimeError28 } from "@ibiz-template/core";
9592
+ import { IBizContext as IBizContext2, RuntimeError as RuntimeError29 } from "@ibiz-template/core";
9473
9593
  import { isEmpty as isEmpty8, isNil as isNil18, isNotNil as isNotNil2 } from "ramda";
9474
9594
 
9475
9595
  // src/controller/utils/loading/loading.state.ts
9476
9596
  import { NOOP } from "@ibiz-template/core";
9477
9597
 
9478
9598
  // src/controller/utils/counter/counter.ts
9479
- import { RuntimeError as RuntimeError22 } from "@ibiz-template/core";
9599
+ import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
9480
9600
  var Counter = class {
9481
9601
  /**
9482
9602
  * Creates an instance of Counter.
@@ -9538,7 +9658,7 @@ var Counter = class {
9538
9658
  return;
9539
9659
  }
9540
9660
  if (this.count === 0) {
9541
- throw new RuntimeError22("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
9661
+ throw new RuntimeError23("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
9542
9662
  }
9543
9663
  this.count -= 1;
9544
9664
  if (this.count === 0) {
@@ -10098,7 +10218,7 @@ function getOriginData(data) {
10098
10218
  }
10099
10219
 
10100
10220
  // src/controller/utils/value-rule/value-rule.ts
10101
- import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
10221
+ import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
10102
10222
  import { isNilOrEmpty as isNilOrEmpty7, isNumber } from "qx-util";
10103
10223
  import { isNil as isNil14 } from "ramda";
10104
10224
  function generateRules(itemVRs, name, valueItemName) {
@@ -10148,7 +10268,7 @@ function generateRules(itemVRs, name, valueItemName) {
10148
10268
  deRule.groupCond
10149
10269
  );
10150
10270
  if (!isPast) {
10151
- callback(new RuntimeError23(infoMessage || deRule.ruleInfo));
10271
+ callback(new RuntimeError24(infoMessage || deRule.ruleInfo));
10152
10272
  }
10153
10273
  return true;
10154
10274
  },
@@ -10218,7 +10338,7 @@ function generateEditorRules(editor) {
10218
10338
  }
10219
10339
 
10220
10340
  // src/controller/utils/value-ex/value-ex.ts
10221
- import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
10341
+ import { RuntimeError as RuntimeError25 } from "@ibiz-template/core";
10222
10342
  import { isNil as isNil15, mergeLeft } from "ramda";
10223
10343
  var ValueExUtil = class {
10224
10344
  /**
@@ -10250,7 +10370,7 @@ var ValueExUtil = class {
10250
10370
  const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
10251
10371
  if (["OBJECTS", "OBJECT"].includes(valueType)) {
10252
10372
  if (!objectNameField) {
10253
- throw new RuntimeError24("\u7F3A\u5C11objectNameField");
10373
+ throw new RuntimeError25("\u7F3A\u5C11objectNameField");
10254
10374
  }
10255
10375
  const textKey = objectNameField.toLowerCase();
10256
10376
  if (valueType === "OBJECTS") {
@@ -10266,7 +10386,7 @@ var ValueExUtil = class {
10266
10386
  };
10267
10387
 
10268
10388
  // src/controller/utils/value-default/value-default.ts
10269
- import { RuntimeError as RuntimeError25, ModelError as ModelError16 } from "@ibiz-template/core";
10389
+ import { RuntimeError as RuntimeError26, ModelError as ModelError16 } from "@ibiz-template/core";
10270
10390
  import dayjs from "dayjs";
10271
10391
  import { createUUID as createUUID6 } from "qx-util";
10272
10392
  import { isNil as isNil16, isNotNil } from "ramda";
@@ -10307,7 +10427,7 @@ function getDefaultValue(opts, origins) {
10307
10427
  case "SESSION":
10308
10428
  case "APPLICATION":
10309
10429
  if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
10310
- throw new RuntimeError25("appdata.context\u4E0D\u5B58\u5728");
10430
+ throw new RuntimeError26("appdata.context\u4E0D\u5B58\u5728");
10311
10431
  }
10312
10432
  return ibiz.appData.context[defaultValue];
10313
10433
  case "CONTEXT":
@@ -10321,7 +10441,7 @@ function getDefaultValue(opts, origins) {
10321
10441
 
10322
10442
  // src/controller/utils/data-file-util/data-file-util.ts
10323
10443
  import {
10324
- RuntimeError as RuntimeError26
10444
+ RuntimeError as RuntimeError27
10325
10445
  } from "@ibiz-template/core";
10326
10446
  var asyncImportUrl = "asyncimportdata2";
10327
10447
  var importUrl = "importdata2";
@@ -10375,11 +10495,11 @@ async function importData(file, appDataEntity, dataImport) {
10375
10495
  }
10376
10496
  async function exportData(header, data, fileName) {
10377
10497
  if (!ibiz.util.getExcelUtil) {
10378
- throw new RuntimeError26("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
10498
+ throw new RuntimeError27("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
10379
10499
  }
10380
10500
  const exportExcel = await ibiz.util.getExcelUtil();
10381
10501
  if (!exportExcel) {
10382
- throw new RuntimeError26("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
10502
+ throw new RuntimeError27("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
10383
10503
  }
10384
10504
  try {
10385
10505
  exportExcel.exportJsonToExcel({
@@ -10605,7 +10725,7 @@ var BaseController = class {
10605
10725
  };
10606
10726
 
10607
10727
  // src/controller/utils/view-msg/view-msg-controller.ts
10608
- import { RuntimeError as RuntimeError27, RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
10728
+ import { RuntimeError as RuntimeError28, RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
10609
10729
  import { isNil as isNil17, mergeRight as mergeRight2 } from "ramda";
10610
10730
  var ViewMsgController = class _ViewMsgController {
10611
10731
  constructor(msgGroupId) {
@@ -10631,7 +10751,7 @@ var ViewMsgController = class _ViewMsgController {
10631
10751
  (item) => item.id === this.msgGroupId
10632
10752
  );
10633
10753
  if (!msgGroup) {
10634
- throw new RuntimeError27("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
10754
+ throw new RuntimeError28("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
10635
10755
  }
10636
10756
  this.msgGroup = msgGroup;
10637
10757
  const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
@@ -10645,7 +10765,7 @@ var ViewMsgController = class _ViewMsgController {
10645
10765
  }
10646
10766
  });
10647
10767
  if (msgDetailsViewMsgIds.length) {
10648
- throw new RuntimeError27(
10768
+ throw new RuntimeError28(
10649
10769
  "\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
10650
10770
  );
10651
10771
  }
@@ -11057,7 +11177,7 @@ var ViewController = class extends BaseController {
11057
11177
  async callUIAction(key, args) {
11058
11178
  const result = this.call(key, args);
11059
11179
  if (result === void 0) {
11060
- throw new RuntimeError28("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
11180
+ throw new RuntimeError29("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
11061
11181
  }
11062
11182
  return result;
11063
11183
  }
@@ -11648,7 +11768,7 @@ var ControlController = class extends BaseController {
11648
11768
  };
11649
11769
 
11650
11770
  // src/controller/common/control/md-control.controller.ts
11651
- import { isElementSame, RuntimeError as RuntimeError29 } from "@ibiz-template/core";
11771
+ import { isElementSame, RuntimeError as RuntimeError30 } from "@ibiz-template/core";
11652
11772
  import { debounce } from "lodash-es";
11653
11773
  var MDControlController = class extends ControlController {
11654
11774
  constructor() {
@@ -11840,7 +11960,7 @@ var MDControlController = class extends ControlController {
11840
11960
  async remove(args) {
11841
11961
  const { context, params, data } = this.handlerAbilityParams(args);
11842
11962
  if (!(data == null ? void 0 : data.length)) {
11843
- throw new RuntimeError29("\u672A\u9009\u4E2D\u6570\u636E");
11963
+ throw new RuntimeError30("\u672A\u9009\u4E2D\u6570\u636E");
11844
11964
  }
11845
11965
  if ((args == null ? void 0 : args.silent) !== true) {
11846
11966
  const del = await ibiz.confirm.error({
@@ -11976,7 +12096,7 @@ var MDControlController = class extends ControlController {
11976
12096
  (importItem) => importItem.id === dedataImportId
11977
12097
  );
11978
12098
  if (!dataImport) {
11979
- throw new RuntimeError29("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
12099
+ throw new RuntimeError30("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
11980
12100
  }
11981
12101
  const modal = ibiz.overlay.createModal(
11982
12102
  "DataImport",
@@ -12006,7 +12126,7 @@ var MDControlController = class extends ControlController {
12006
12126
  // src/controller/control/app-menu/app-menu.controller.ts
12007
12127
  import {
12008
12128
  findRecursiveChild,
12009
- RuntimeError as RuntimeError30,
12129
+ RuntimeError as RuntimeError31,
12010
12130
  RuntimeModelError as RuntimeModelError23
12011
12131
  } from "@ibiz-template/core";
12012
12132
  var AppMenuController = class extends ControlController {
@@ -12046,7 +12166,7 @@ var AppMenuController = class extends ControlController {
12046
12166
  childrenFields: ["appMenuItems"]
12047
12167
  });
12048
12168
  if (!menuItem) {
12049
- throw new RuntimeError30("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
12169
+ throw new RuntimeError31("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
12050
12170
  }
12051
12171
  this.evt.emit("onClick", {
12052
12172
  eventArg: id,
@@ -12136,7 +12256,7 @@ var AppMenuController = class extends ControlController {
12136
12256
  // src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
12137
12257
  import {
12138
12258
  findRecursiveChild as findRecursiveChild2,
12139
- RuntimeError as RuntimeError31,
12259
+ RuntimeError as RuntimeError32,
12140
12260
  RuntimeModelError as RuntimeModelError24
12141
12261
  } from "@ibiz-template/core";
12142
12262
  var AppMenuIconViewController = class extends AppMenuController {
@@ -12146,7 +12266,7 @@ var AppMenuIconViewController = class extends AppMenuController {
12146
12266
  childrenFields: ["appMenuItems"]
12147
12267
  });
12148
12268
  if (!menuItem) {
12149
- throw new RuntimeError31("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
12269
+ throw new RuntimeError32("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
12150
12270
  }
12151
12271
  this.evt.emit("onClick", {
12152
12272
  eventArg: id,
@@ -12174,7 +12294,7 @@ var AppMenuIconViewController = class extends AppMenuController {
12174
12294
  import dayjs2 from "dayjs";
12175
12295
 
12176
12296
  // src/controller/control/calendar/calendar.service.ts
12177
- import { RuntimeError as RuntimeError32 } from "@ibiz-template/core";
12297
+ import { RuntimeError as RuntimeError33 } from "@ibiz-template/core";
12178
12298
  var CalendarService = class extends MDControlService {
12179
12299
  /**
12180
12300
  * 执行查询多条数据的方法
@@ -12224,11 +12344,11 @@ var CalendarService = class extends MDControlService {
12224
12344
  setCalendarConfigData(items, index) {
12225
12345
  const { sysCalendarItems } = this.model;
12226
12346
  if (!sysCalendarItems) {
12227
- throw new RuntimeError32("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
12347
+ throw new RuntimeError33("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
12228
12348
  }
12229
12349
  const calendarItem = sysCalendarItems[index];
12230
12350
  if (!calendarItem) {
12231
- throw new RuntimeError32("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
12351
+ throw new RuntimeError33("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
12232
12352
  }
12233
12353
  return items.map((item) => {
12234
12354
  return new CalendarItemData(calendarItem, item);
@@ -12442,11 +12562,11 @@ var CalendarController = class extends MDControlController {
12442
12562
  };
12443
12563
 
12444
12564
  // src/controller/control/chart/chart.controller.ts
12445
- import { RuntimeError as RuntimeError34 } from "@ibiz-template/core";
12565
+ import { RuntimeError as RuntimeError35 } from "@ibiz-template/core";
12446
12566
 
12447
12567
  // src/controller/control/chart/generator/chart-options-generator.ts
12448
12568
  import { mergeDeepRight as mergeDeepRight3 } from "ramda";
12449
- import { RuntimeError as RuntimeError33 } from "@ibiz-template/core";
12569
+ import { RuntimeError as RuntimeError34 } from "@ibiz-template/core";
12450
12570
 
12451
12571
  // src/controller/control/chart/generator/line-series-generator.ts
12452
12572
  import { RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
@@ -12970,7 +13090,7 @@ var BarSeriesGenerator = class extends BaseSeriesGenerator {
12970
13090
  var FunnelSeriesGenerator = class extends BaseSeriesGenerator {
12971
13091
  calcStaticOptions() {
12972
13092
  const options = super.calcStaticOptions();
12973
- options.label.formatter = "{b}: {d}%({c})";
13093
+ options.label.formatter = "{b}: {d}%";
12974
13094
  options.label.position = "outer";
12975
13095
  return options;
12976
13096
  }
@@ -12990,7 +13110,7 @@ var FunnelSeriesGenerator = class extends BaseSeriesGenerator {
12990
13110
  var PieSeriesGenerator = class extends BaseSeriesGenerator {
12991
13111
  calcStaticOptions() {
12992
13112
  const options = super.calcStaticOptions();
12993
- options.label.formatter = "{b}: {d}%({c})";
13113
+ options.label.formatter = "{b}: {d}%";
12994
13114
  options.label.position = "outside";
12995
13115
  return options;
12996
13116
  }
@@ -13449,7 +13569,7 @@ var ChartOptionsGenerator2 = class {
13449
13569
  getChartDataByParams(params) {
13450
13570
  const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
13451
13571
  if (!generator) {
13452
- throw new RuntimeError33("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
13572
+ throw new RuntimeError34("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
13453
13573
  }
13454
13574
  return generator.getChartDataByParams(params);
13455
13575
  }
@@ -13563,10 +13683,10 @@ var ChartController = class extends MDControlController {
13563
13683
  */
13564
13684
  updateChart() {
13565
13685
  if (!this.chart) {
13566
- throw new RuntimeError34("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
13686
+ throw new RuntimeError35("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
13567
13687
  }
13568
13688
  if (!this.options) {
13569
- throw new RuntimeError34("options\u8FD8\u6CA1\u8BA1\u7B97");
13689
+ throw new RuntimeError35("options\u8FD8\u6CA1\u8BA1\u7B97");
13570
13690
  }
13571
13691
  this.chart.setOption(this.options);
13572
13692
  this.resizeChart();
@@ -13611,7 +13731,7 @@ var CaptionBarController = class extends ControlController {
13611
13731
  };
13612
13732
 
13613
13733
  // src/controller/control/toolbar/toolbar.controllerr.ts
13614
- import { recursiveIterate, RuntimeError as RuntimeError43 } from "@ibiz-template/core";
13734
+ import { recursiveIterate, RuntimeError as RuntimeError44 } from "@ibiz-template/core";
13615
13735
 
13616
13736
  // src/ui-action/provider/backend-ui-action-provider.ts
13617
13737
  import { RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
@@ -13621,7 +13741,7 @@ import { isArray as isArray9 } from "qx-util";
13621
13741
  import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
13622
13742
 
13623
13743
  // src/ui-logic/index.ts
13624
- import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
13744
+ import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
13625
13745
 
13626
13746
  // src/ui-logic/ui-logic.ts
13627
13747
  import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
@@ -14157,7 +14277,7 @@ var EndNode2 = class extends UILogicNode {
14157
14277
  };
14158
14278
 
14159
14279
  // src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
14160
- import { ModelError as ModelError21, RuntimeError as RuntimeError35 } from "@ibiz-template/core";
14280
+ import { ModelError as ModelError21, RuntimeError as RuntimeError36 } from "@ibiz-template/core";
14161
14281
  import { clone as clone17 } from "ramda";
14162
14282
  var PrepareJSParamNode = class extends UILogicNode {
14163
14283
  async exec(ctx) {
@@ -14207,7 +14327,7 @@ var PrepareJSParamNode = class extends UILogicNode {
14207
14327
  setParamValue(nodeParam, ctx) {
14208
14328
  const { dstFieldName, dstDEUILogicParamId } = nodeParam;
14209
14329
  if (!dstDEUILogicParamId) {
14210
- throw new RuntimeError35("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
14330
+ throw new RuntimeError36("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
14211
14331
  }
14212
14332
  let dstField = dstFieldName;
14213
14333
  if (ctx.isEntityParam(dstDEUILogicParamId)) {
@@ -14324,7 +14444,7 @@ var PrepareJSParamNode = class extends UILogicNode {
14324
14444
  };
14325
14445
 
14326
14446
  // src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
14327
- import { RuntimeError as RuntimeError36, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
14447
+ import { RuntimeError as RuntimeError37, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
14328
14448
  import { isFunction } from "lodash-es";
14329
14449
  var ViewCtrlInvokeNode = class extends UILogicNode {
14330
14450
  async exec(ctx) {
@@ -14341,14 +14461,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
14341
14461
  }
14342
14462
  const invokeParam = ctx.params[invokeParamId];
14343
14463
  if (!invokeParam) {
14344
- throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
14464
+ throw new RuntimeError37("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
14345
14465
  }
14346
14466
  const invokeCtrl = ctx.params[invokeCtrlId];
14347
14467
  if (!invokeCtrl) {
14348
- throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
14468
+ throw new RuntimeError37("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
14349
14469
  }
14350
14470
  if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
14351
- throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
14471
+ throw new RuntimeError37("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
14352
14472
  }
14353
14473
  await invokeCtrl[invokeMethod](invokeParam);
14354
14474
  }
@@ -14574,16 +14694,16 @@ var DataSetNode2 = class extends UILogicNode {
14574
14694
  };
14575
14695
 
14576
14696
  // src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
14577
- import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
14697
+ import { RuntimeError as RuntimeError38 } from "@ibiz-template/core";
14578
14698
  var ThrowExceptionNode2 = class extends UILogicNode {
14579
14699
  async exec(_ctx) {
14580
14700
  const { errorInfo } = this.model;
14581
- throw new RuntimeError37(errorInfo);
14701
+ throw new RuntimeError38(errorInfo);
14582
14702
  }
14583
14703
  };
14584
14704
 
14585
14705
  // src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
14586
- import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
14706
+ import { RuntimeError as RuntimeError39, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
14587
14707
  var ViewCtrlFireEventNode = class extends UILogicNode {
14588
14708
  async exec(ctx) {
14589
14709
  ctx.isEndNode = true;
@@ -14599,18 +14719,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
14599
14719
  }
14600
14720
  const invokeCtrl = ctx.params[fireCtrlId];
14601
14721
  if (!invokeCtrl) {
14602
- throw new RuntimeError38("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
14722
+ throw new RuntimeError39("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
14603
14723
  }
14604
14724
  const eventParam = ctx.params[eventParamId];
14605
14725
  if (!eventParam) {
14606
- throw new RuntimeError38("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
14726
+ throw new RuntimeError39("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
14607
14727
  }
14608
14728
  await invokeCtrl.evt.emit(eventName, eventParam);
14609
14729
  }
14610
14730
  };
14611
14731
 
14612
14732
  // src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
14613
- import { RuntimeError as RuntimeError39, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
14733
+ import { RuntimeError as RuntimeError40, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
14614
14734
  var ExecuteDELogicNode = class extends UILogicNode {
14615
14735
  async exec(ctx) {
14616
14736
  const {
@@ -14630,7 +14750,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
14630
14750
  }
14631
14751
  const dstParam = ctx.params[dstDEUILogicParamId];
14632
14752
  if (!dstParam) {
14633
- throw new RuntimeError39("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
14753
+ throw new RuntimeError40("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
14634
14754
  }
14635
14755
  const result = await execDELogicById(
14636
14756
  dstAppDELogicId,
@@ -14934,7 +15054,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
14934
15054
  const app = ibiz.hub.getApp(parameters.context.srfappid);
14935
15055
  const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
14936
15056
  if (!deUILogic) {
14937
- throw new RuntimeError40(
15057
+ throw new RuntimeError41(
14938
15058
  "\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
14939
15059
  );
14940
15060
  }
@@ -14947,7 +15067,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
14947
15067
  }
14948
15068
 
14949
15069
  // src/ui-action/uiaction-util.ts
14950
- import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
15070
+ import { RuntimeError as RuntimeError42 } from "@ibiz-template/core";
14951
15071
  var UIActionUtil = class {
14952
15072
  /**
14953
15073
  * 执行界面行为
@@ -14962,7 +15082,7 @@ var UIActionUtil = class {
14962
15082
  static async exec(actionId, params) {
14963
15083
  const action = await getUIActionById(actionId);
14964
15084
  if (!action) {
14965
- throw new RuntimeError41("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
15085
+ throw new RuntimeError42("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
14966
15086
  }
14967
15087
  if (action.actionTarget === "SINGLEDATA") {
14968
15088
  const validateResult = await params.view.call("Validate" /* VALIDATE */);
@@ -15371,7 +15491,7 @@ import {
15371
15491
  StringUtil,
15372
15492
  RuntimeModelError as RuntimeModelError48,
15373
15493
  ModelError as ModelError25,
15374
- RuntimeError as RuntimeError42
15494
+ RuntimeError as RuntimeError43
15375
15495
  } from "@ibiz-template/core";
15376
15496
  var FrontUIActionProvider = class extends UIActionProviderBase {
15377
15497
  async execAction(action, args) {
@@ -15463,6 +15583,12 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
15463
15583
  */
15464
15584
  async executePrint(action, args) {
15465
15585
  var _a, _b;
15586
+ const { resultParams } = await this.handleParams(
15587
+ action,
15588
+ args.context,
15589
+ args.data,
15590
+ args.params
15591
+ );
15466
15592
  const appDataEntity = await ibiz.hub.getAppDataEntity(
15467
15593
  action.appDataEntityId
15468
15594
  );
@@ -15473,22 +15599,26 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
15473
15599
  let requestUrl = "";
15474
15600
  const { context } = args;
15475
15601
  if (context && context[appDataEntity.codeName.toLowerCase()]) {
15476
- requestUrl += "/".concat((_b = appDataEntity.codeName2) == null ? void 0 : _b.toLowerCase(), "/printdata/").concat(context[appDataEntity.codeName.toLowerCase()], "?srfprinttag=").concat(appDEPrint.codeName);
15602
+ requestUrl += "/".concat((_b = appDataEntity.codeName2) == null ? void 0 : _b.toLowerCase(), "/printdata/").concat(context[appDataEntity.codeName.toLowerCase()]);
15477
15603
  } else {
15478
- throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
15604
+ throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
15479
15605
  }
15480
15606
  const res = await ibiz.net.request(requestUrl, {
15481
15607
  method: "get",
15482
- responseType: "blob"
15608
+ responseType: "blob",
15609
+ params: {
15610
+ srfprinttag: appDEPrint.codeName,
15611
+ ...resultParams
15612
+ }
15483
15613
  });
15484
15614
  if (res.ok) {
15485
15615
  const link = window.URL.createObjectURL(res.data);
15486
15616
  window.open(link, "_blank");
15487
15617
  } else {
15488
- throw new RuntimeError42("\u6253\u5370\u5931\u8D25");
15618
+ throw new RuntimeError43("\u6253\u5370\u5931\u8D25");
15489
15619
  }
15490
15620
  } else {
15491
- throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u6253\u5370\u9879");
15621
+ throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u6253\u5370\u9879");
15492
15622
  }
15493
15623
  }
15494
15624
  /**
@@ -15526,7 +15656,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
15526
15656
  refreshMode: 1
15527
15657
  };
15528
15658
  }
15529
- throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u5165\u9879");
15659
+ throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u5165\u9879");
15530
15660
  }
15531
15661
  /**
15532
15662
  * 执行导出行为
@@ -15535,8 +15665,14 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
15535
15665
  * @param {IUILogicParams} args
15536
15666
  * @return {*}
15537
15667
  */
15538
- async executeDataExport(action, _args) {
15668
+ async executeDataExport(action, args) {
15539
15669
  var _a, _b;
15670
+ const { resultParams } = await this.handleParams(
15671
+ action,
15672
+ args.context,
15673
+ args.data,
15674
+ args.params
15675
+ );
15540
15676
  const appDataEntity = await ibiz.hub.getAppDataEntity(
15541
15677
  action.appDataEntityId
15542
15678
  );
@@ -15548,12 +15684,12 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
15548
15684
  const params = {
15549
15685
  page: 0,
15550
15686
  size: appDEDataExport.maxRowCount ? appDEDataExport.maxRowCount : 1e3,
15551
- responseType: "blob"
15687
+ ...args.params,
15688
+ ...resultParams
15552
15689
  };
15553
15690
  const res = await ibiz.net.request(url, {
15554
15691
  method: "post",
15555
- data: params,
15556
- responseType: "blob"
15692
+ data: params
15557
15693
  });
15558
15694
  if (res.status === 200) {
15559
15695
  let fileName = "".concat(appDataEntity.logicName, "\u8868.xlsx");
@@ -15570,10 +15706,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
15570
15706
  URL.revokeObjectURL(elink.href);
15571
15707
  document.body.removeChild(elink);
15572
15708
  } else {
15573
- throw new RuntimeError42("\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25");
15709
+ throw new RuntimeError43("\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25");
15574
15710
  }
15575
15711
  } else {
15576
- throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u51FA\u9879");
15712
+ throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u51FA\u9879");
15577
15713
  }
15578
15714
  }
15579
15715
  };
@@ -15641,7 +15777,7 @@ var ToolbarController = class extends ControlController {
15641
15777
  const actionId = item.uiactionId;
15642
15778
  const uiAction = await getUIActionById(actionId);
15643
15779
  if (!uiAction) {
15644
- throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
15780
+ throw new RuntimeError44("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
15645
15781
  }
15646
15782
  const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
15647
15783
  if (enableLoading) {
@@ -16663,7 +16799,7 @@ var DataViewControlController = class extends MDControlController {
16663
16799
  import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
16664
16800
 
16665
16801
  // src/controller/control/exp-bar/exp-bar.controller.ts
16666
- import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
16802
+ import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
16667
16803
  var ExpBarControlController = class extends ControlController {
16668
16804
  constructor() {
16669
16805
  super(...arguments);
@@ -16989,7 +17125,7 @@ var ExpBarControlController = class extends ControlController {
16989
17125
  if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
16990
17126
  return this.XDataModel.navAppViewId;
16991
17127
  }
16992
- throw new RuntimeError44("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
17128
+ throw new RuntimeError45("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
16993
17129
  }
16994
17130
  /**
16995
17131
  * 获取导航视图
@@ -17132,7 +17268,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
17132
17268
  };
17133
17269
 
17134
17270
  // src/controller/control/exp-bar/tree-exp-bar.controller.ts
17135
- import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
17271
+ import { RuntimeError as RuntimeError46, RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
17136
17272
  var TreeExpBarController = class extends ExpBarControlController {
17137
17273
  constructor() {
17138
17274
  super(...arguments);
@@ -17207,7 +17343,7 @@ var TreeExpBarController = class extends ExpBarControlController {
17207
17343
  const deData = node.deData || node;
17208
17344
  const nodeModel = this.getNodeModel(node.nodeId);
17209
17345
  if (!nodeModel) {
17210
- throw new RuntimeError45("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
17346
+ throw new RuntimeError46("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
17211
17347
  }
17212
17348
  const result = this.prepareParams(nodeModel, deData, context, params);
17213
17349
  result.context.currentSrfNav = nodeId;
@@ -19023,7 +19159,7 @@ var FormMDCtrlContentTypeController = class {
19023
19159
  import { clone as clone20 } from "ramda";
19024
19160
 
19025
19161
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-control/form-mdctrl-control.controller.ts
19026
- import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
19162
+ import { RuntimeError as RuntimeError47 } from "@ibiz-template/core";
19027
19163
  var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController {
19028
19164
  /**
19029
19165
  * 初始化
@@ -19038,7 +19174,7 @@ var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController
19038
19174
  const { model } = this.parent;
19039
19175
  const { contentControl } = model;
19040
19176
  if (!contentControl) {
19041
- throw new RuntimeError46("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
19177
+ throw new RuntimeError47("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
19042
19178
  }
19043
19179
  this.controlModel = contentControl;
19044
19180
  const controlProvider = await getControlProvider(this.controlModel);
@@ -19156,7 +19292,7 @@ import { isArray as isArray10 } from "lodash-es";
19156
19292
  import {
19157
19293
  awaitTimeout,
19158
19294
  mergeInLeft,
19159
- RuntimeError as RuntimeError47,
19295
+ RuntimeError as RuntimeError48,
19160
19296
  mergeDefaultInLeft as mergeDefaultInLeft2
19161
19297
  } from "@ibiz-template/core";
19162
19298
  import { debounce as debounce2 } from "lodash-es";
@@ -19602,7 +19738,7 @@ var EditFormController = class extends FormController {
19602
19738
  }
19603
19739
  const isValid = await this.validate();
19604
19740
  if (!isValid) {
19605
- throw new RuntimeError47("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19741
+ throw new RuntimeError48("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19606
19742
  }
19607
19743
  if (!silent) {
19608
19744
  await this.startLoading();
@@ -19728,7 +19864,7 @@ var EditFormController = class extends FormController {
19728
19864
  (item) => item.id === formItemUpdateId
19729
19865
  );
19730
19866
  if (!formItemUpdate) {
19731
- throw new RuntimeError47("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
19867
+ throw new RuntimeError48("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
19732
19868
  }
19733
19869
  const { appDEMethodId, defiupdateDetails, customCode, scriptCode } = formItemUpdate;
19734
19870
  const updateItems = defiupdateDetails == null ? void 0 : defiupdateDetails.map((item) => item.id);
@@ -19772,7 +19908,7 @@ var EditFormController = class extends FormController {
19772
19908
  async wfStart(args) {
19773
19909
  const isValid = await this.validate();
19774
19910
  if (!isValid) {
19775
- throw new RuntimeError47("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19911
+ throw new RuntimeError48("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19776
19912
  }
19777
19913
  await this.startLoading();
19778
19914
  const { context, params } = this.handlerAbilityParams(args);
@@ -19803,7 +19939,7 @@ var EditFormController = class extends FormController {
19803
19939
  async wfSubmit(args) {
19804
19940
  const isValid = await this.validate();
19805
19941
  if (!isValid) {
19806
- throw new RuntimeError47("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19942
+ throw new RuntimeError48("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
19807
19943
  }
19808
19944
  await this.startLoading();
19809
19945
  const { context, params } = this.handlerAbilityParams(args);
@@ -20035,7 +20171,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlControlController {
20035
20171
  };
20036
20172
 
20037
20173
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts
20038
- import { RuntimeError as RuntimeError48, mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
20174
+ import { RuntimeError as RuntimeError49, mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
20039
20175
  var FormMDCtrlGridController = class extends FormMDCtrlControlController {
20040
20176
  constructor() {
20041
20177
  super(...arguments);
@@ -20147,7 +20283,7 @@ var FormMDCtrlGridController = class extends FormMDCtrlControlController {
20147
20283
  const { model } = this.parent;
20148
20284
  const { contentControl } = model;
20149
20285
  if (!contentControl) {
20150
- throw new RuntimeError48("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
20286
+ throw new RuntimeError49("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
20151
20287
  }
20152
20288
  mergeInLeft3(contentControl, { enableRowEdit: true, enableRowNew: true });
20153
20289
  this.controlModel = contentControl;
@@ -20941,7 +21077,7 @@ import {
20941
21077
  debounceAndAsyncMerge as debounceAndAsyncMerge2,
20942
21078
  mergeDefaultInLeft as mergeDefaultInLeft3,
20943
21079
  recursiveIterate as recursiveIterate5,
20944
- RuntimeError as RuntimeError49,
21080
+ RuntimeError as RuntimeError50,
20945
21081
  RuntimeModelError as RuntimeModelError54
20946
21082
  } from "@ibiz-template/core";
20947
21083
  import { clone as clone22 } from "ramda";
@@ -21325,7 +21461,7 @@ var GridController = class extends MDControlController {
21325
21461
  if (editShowMode === "row") {
21326
21462
  const editingRow = this.state.rows.find((item) => item.showRowEdit);
21327
21463
  if (editingRow) {
21328
- throw new RuntimeError49("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
21464
+ throw new RuntimeError50("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
21329
21465
  }
21330
21466
  }
21331
21467
  const queryParams = { ...this.params };
@@ -21366,7 +21502,7 @@ var GridController = class extends MDControlController {
21366
21502
  const isCreate = data.srfuf === 0 /* CREATE */;
21367
21503
  const rowState = this.findRowState(data);
21368
21504
  if (!rowState) {
21369
- throw new RuntimeError49("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
21505
+ throw new RuntimeError50("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
21370
21506
  }
21371
21507
  if (!rowState.modified) {
21372
21508
  ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
@@ -21378,7 +21514,7 @@ var GridController = class extends MDControlController {
21378
21514
  }
21379
21515
  const isValid = await this.validate(rowState);
21380
21516
  if (!isValid) {
21381
- throw new RuntimeError49("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
21517
+ throw new RuntimeError50("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
21382
21518
  }
21383
21519
  let res;
21384
21520
  const deName = calcDeCodeNameById(this.model.appDataEntityId);
@@ -21575,7 +21711,7 @@ var GridController = class extends MDControlController {
21575
21711
  }
21576
21712
  async toggleRowEdit() {
21577
21713
  if (!this.model.enableRowNew) {
21578
- throw new RuntimeError49("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
21714
+ throw new RuntimeError50("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
21579
21715
  }
21580
21716
  this.state.rowEditOpen = !this.state.rowEditOpen;
21581
21717
  }
@@ -21608,7 +21744,7 @@ var GridController = class extends MDControlController {
21608
21744
  } else {
21609
21745
  const editingRow = this.state.rows.find((item) => item.showRowEdit);
21610
21746
  if (editingRow) {
21611
- throw new RuntimeError49("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
21747
+ throw new RuntimeError50("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
21612
21748
  }
21613
21749
  if (row.data.srfuf === 1 /* UPDATE */) {
21614
21750
  row.cacheData = clone22(row.data);
@@ -21658,7 +21794,7 @@ var GridController = class extends MDControlController {
21658
21794
  (item) => item.id === updateId
21659
21795
  );
21660
21796
  if (!findUpdate) {
21661
- throw new RuntimeError49("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
21797
+ throw new RuntimeError50("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
21662
21798
  }
21663
21799
  const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
21664
21800
  const updateItems = degeiupdateDetails.map((item) => item.id);
@@ -21813,7 +21949,7 @@ var GridController = class extends MDControlController {
21813
21949
  data2 = this.getData();
21814
21950
  }
21815
21951
  if (data2.length === 0) {
21816
- throw new RuntimeError49("\u65E0\u5BFC\u51FA\u6570\u636E");
21952
+ throw new RuntimeError50("\u65E0\u5BFC\u51FA\u6570\u636E");
21817
21953
  }
21818
21954
  return formatExcelData(data2);
21819
21955
  };
@@ -22205,7 +22341,7 @@ var GridUAColumnController = class extends GridColumnController {
22205
22341
  };
22206
22342
 
22207
22343
  // src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
22208
- import { RuntimeError as RuntimeError50 } from "@ibiz-template/core";
22344
+ import { RuntimeError as RuntimeError51 } from "@ibiz-template/core";
22209
22345
  import Schema2 from "async-validator";
22210
22346
  import { isNilOrEmpty as isNilOrEmpty9 } from "qx-util";
22211
22347
  var GridFieldEditColumnController = class extends GridFieldColumnController {
@@ -22342,7 +22478,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
22342
22478
  if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
22343
22479
  const result = await this.validate(row);
22344
22480
  if (!result) {
22345
- throw new RuntimeError50(
22481
+ throw new RuntimeError51(
22346
22482
  "".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
22347
22483
  );
22348
22484
  }
@@ -22700,7 +22836,7 @@ var ListController = class extends MDControlController {
22700
22836
  };
22701
22837
 
22702
22838
  // src/controller/control/panel/panel/panel.controller.ts
22703
- import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError51 } from "@ibiz-template/core";
22839
+ import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError52 } from "@ibiz-template/core";
22704
22840
  var PanelController = class extends ControlController {
22705
22841
  constructor(model, context, params, ctx, container) {
22706
22842
  super(model, context, params, ctx);
@@ -22824,7 +22960,7 @@ var PanelController = class extends ControlController {
22824
22960
  var _a, _b;
22825
22961
  const data = await this.prepareData();
22826
22962
  if (!data) {
22827
- throw new RuntimeError51("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
22963
+ throw new RuntimeError52("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
22828
22964
  }
22829
22965
  const panelData = this.convertData(data);
22830
22966
  (_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
@@ -24481,7 +24617,7 @@ var TreeController = class extends MDControlController {
24481
24617
  };
24482
24618
 
24483
24619
  // src/controller/control/wizard-panel/wizard-panel.controller.ts
24484
- import { RuntimeError as RuntimeError52 } from "@ibiz-template/core";
24620
+ import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
24485
24621
 
24486
24622
  // src/controller/control/wizard-panel/wizard-panel.service.ts
24487
24623
  var WizardPanelService = class extends ControlService {
@@ -24640,7 +24776,7 @@ var WizardPanelController = class extends ControlController {
24640
24776
  const { activeFormTag } = this.state;
24641
24777
  const controller = this.formControllers.get(activeFormTag);
24642
24778
  if (!controller) {
24643
- throw new RuntimeError52("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
24779
+ throw new RuntimeError53("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
24644
24780
  }
24645
24781
  return controller;
24646
24782
  }
@@ -24680,7 +24816,7 @@ var WizardPanelController = class extends ControlController {
24680
24816
  getWizardFormByTag(tag) {
24681
24817
  var _a;
24682
24818
  if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
24683
- throw new RuntimeError52("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
24819
+ throw new RuntimeError53("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
24684
24820
  return;
24685
24821
  }
24686
24822
  const wizardForm = this.model.dewizard.dewizardForms.find(
@@ -24689,7 +24825,7 @@ var WizardPanelController = class extends ControlController {
24689
24825
  }
24690
24826
  );
24691
24827
  if (!wizardForm) {
24692
- throw new RuntimeError52("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
24828
+ throw new RuntimeError53("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
24693
24829
  }
24694
24830
  return wizardForm;
24695
24831
  }
@@ -24756,7 +24892,7 @@ var WizardPanelController = class extends ControlController {
24756
24892
  this.tagHistory.pop();
24757
24893
  }
24758
24894
  if (!prevTag) {
24759
- throw new RuntimeError52("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
24895
+ throw new RuntimeError53("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
24760
24896
  }
24761
24897
  this.state.activeFormTag = prevTag;
24762
24898
  }
@@ -24792,7 +24928,7 @@ var WizardPanelController = class extends ControlController {
24792
24928
  });
24793
24929
  const nextWizardStep = wizardSteps[index + 1];
24794
24930
  if (!nextWizardStep) {
24795
- throw new RuntimeError52("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
24931
+ throw new RuntimeError53("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
24796
24932
  }
24797
24933
  const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
24798
24934
  if (nextWizardForm && nextWizardForm.formTag) {
@@ -24801,7 +24937,7 @@ var WizardPanelController = class extends ControlController {
24801
24937
  }
24802
24938
  }
24803
24939
  if (!nextTag) {
24804
- throw new RuntimeError52("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
24940
+ throw new RuntimeError53("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
24805
24941
  }
24806
24942
  this.state.activeFormTag = nextTag;
24807
24943
  this.tagHistory.push(nextTag);
@@ -25140,7 +25276,7 @@ var MDCtrlController = class extends MDControlController {
25140
25276
  };
25141
25277
 
25142
25278
  // src/controller/control/kanban/kanban.controller.ts
25143
- import { RuntimeError as RuntimeError53, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
25279
+ import { RuntimeError as RuntimeError54, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
25144
25280
  import { isNil as isNil25 } from "ramda";
25145
25281
 
25146
25282
  // src/controller/control/kanban/kanban.service.ts
@@ -25228,7 +25364,7 @@ var KanbanController = class extends DataViewControlController {
25228
25364
  } else {
25229
25365
  const toNum = Number(sortValue);
25230
25366
  if (Number.isNaN(toNum)) {
25231
- throw new RuntimeError53(
25367
+ throw new RuntimeError54(
25232
25368
  "".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
25233
25369
  );
25234
25370
  }
@@ -25244,7 +25380,7 @@ var KanbanController = class extends DataViewControlController {
25244
25380
  }
25245
25381
  handleDataGroup() {
25246
25382
  if (!this.model.enableGroup || this.model.groupMode === "NONE") {
25247
- throw new RuntimeError53("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
25383
+ throw new RuntimeError54("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
25248
25384
  }
25249
25385
  return super.handleDataGroup();
25250
25386
  }
@@ -25738,7 +25874,7 @@ var TreeGridService = class extends GridService {
25738
25874
  };
25739
25875
 
25740
25876
  // src/controller/control/medit-view-panel/medit-view-panel.controller.ts
25741
- import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
25877
+ import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
25742
25878
  import { createUUID as createUUID10 } from "qx-util";
25743
25879
 
25744
25880
  // src/controller/control/medit-view-panel/medit-view-panel.service.ts
@@ -25953,7 +26089,7 @@ var MEditViewPanelController = class extends MDControlController {
25953
26089
  (item) => item.id === id
25954
26090
  );
25955
26091
  if (panelUiItemIndex < 0) {
25956
- throw new RuntimeError54("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
26092
+ throw new RuntimeError55("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
25957
26093
  }
25958
26094
  const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
25959
26095
  if (tempUiItem.id.startsWith("mockId:")) {
@@ -26368,7 +26504,7 @@ var AppHub = class {
26368
26504
  this.registerAppView(appView);
26369
26505
  return appView;
26370
26506
  }
26371
- throw new RuntimeError55("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
26507
+ throw new RuntimeError56("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
26372
26508
  }
26373
26509
  /**
26374
26510
  * 根据应用实体代码名称查找应用视图
@@ -26399,7 +26535,7 @@ var AppHub = class {
26399
26535
  this.registerAppDataEntity(entity, appId);
26400
26536
  return entity;
26401
26537
  }
26402
- throw new RuntimeError55("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
26538
+ throw new RuntimeError56("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
26403
26539
  }
26404
26540
  /**
26405
26541
  * 新建 hub 应用
@@ -26420,7 +26556,7 @@ var AppHub = class {
26420
26556
  appModel = await this.modelLoaderProvider.getApp(id);
26421
26557
  this.registerApp(appModel);
26422
26558
  } else {
26423
- throw new RuntimeError55("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
26559
+ throw new RuntimeError56("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
26424
26560
  }
26425
26561
  const app = new Application(appModel);
26426
26562
  this.appMap.set(id, app);
@@ -26518,7 +26654,7 @@ var EngineFactory = class {
26518
26654
  };
26519
26655
 
26520
26656
  // src/engine/view-base.engine.ts
26521
- import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
26657
+ import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
26522
26658
  var ViewEngineBase = class {
26523
26659
  /**
26524
26660
  * 构造函数在视图控制器的构造函数逻辑内部执行
@@ -26706,7 +26842,7 @@ var ViewEngineBase = class {
26706
26842
  const { appDataEntityId } = this.view.model;
26707
26843
  const { evt, context, params } = this.view;
26708
26844
  if (!appDataEntityId) {
26709
- throw new RuntimeError56("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
26845
+ throw new RuntimeError57("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
26710
26846
  }
26711
26847
  const app = ibiz.hub.getApp(context.srfappid);
26712
26848
  const res = await app.deService.exec(
@@ -27071,7 +27207,7 @@ import {
27071
27207
  ModelError as ModelError28,
27072
27208
  HttpError as HttpError4,
27073
27209
  NoticeError as NoticeError2,
27074
- RuntimeError as RuntimeError57
27210
+ RuntimeError as RuntimeError58
27075
27211
  } from "@ibiz-template/core";
27076
27212
  var DefaultErrorHandler = class {
27077
27213
  handle(error) {
@@ -27089,7 +27225,7 @@ var DefaultErrorHandler = class {
27089
27225
  }
27090
27226
  } else if (error instanceof NoticeError2) {
27091
27227
  ibiz.message.error(error.message, error.duration, error.duration === 0);
27092
- } else if (error instanceof RuntimeError57) {
27228
+ } else if (error instanceof RuntimeError58) {
27093
27229
  ibiz.message.error(error.message, 10, true);
27094
27230
  }
27095
27231
  ibiz.log.error(error);
@@ -27217,7 +27353,7 @@ var GlobalUtil = class {
27217
27353
  };
27218
27354
 
27219
27355
  // src/logic-scheduler/executor/logic-executor.ts
27220
- import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
27356
+ import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
27221
27357
  var LogicExecutor = class {
27222
27358
  /**
27223
27359
  * @author lxm
@@ -27238,7 +27374,7 @@ var LogicExecutor = class {
27238
27374
  */
27239
27375
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
27240
27376
  execute(_executeParams) {
27241
- throw new RuntimeError58("Method not implemented.");
27377
+ throw new RuntimeError59("Method not implemented.");
27242
27378
  }
27243
27379
  /**
27244
27380
  * 销毁方法
@@ -27675,7 +27811,7 @@ var LogicSchedulerCenter = class {
27675
27811
  };
27676
27812
 
27677
27813
  // src/logic-scheduler/trigger/logic-trigger.ts
27678
- import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
27814
+ import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
27679
27815
  var LogicTrigger = class {
27680
27816
  /**
27681
27817
  * @author lxm
@@ -27735,7 +27871,7 @@ var LogicTrigger = class {
27735
27871
  if (this.executor) {
27736
27872
  return this.executor.execute(executeParams);
27737
27873
  }
27738
- throw new RuntimeError59("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
27874
+ throw new RuntimeError60("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
27739
27875
  }
27740
27876
  /**
27741
27877
  * 销毁方法
@@ -27752,12 +27888,12 @@ var CustomTrigger = class extends LogicTrigger {
27752
27888
  };
27753
27889
 
27754
27890
  // src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
27755
- import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
27891
+ import { RuntimeError as RuntimeError61 } from "@ibiz-template/core";
27756
27892
  var ItemDynaLogicTrigger = class extends LogicTrigger {
27757
27893
  bindExecutor(executor) {
27758
27894
  super.bindExecutor(executor);
27759
27895
  if (this.executor.type !== "SCRIPT") {
27760
- throw new RuntimeError60(
27896
+ throw new RuntimeError61(
27761
27897
  "\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
27762
27898
  );
27763
27899
  }
@@ -27793,7 +27929,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
27793
27929
  };
27794
27930
 
27795
27931
  // src/logic-scheduler/trigger/timer-trigger.ts
27796
- import { RuntimeError as RuntimeError61, RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
27932
+ import { RuntimeError as RuntimeError62, RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
27797
27933
  var TimerTrigger = class extends LogicTrigger {
27798
27934
  constructor() {
27799
27935
  super(...arguments);
@@ -27805,7 +27941,7 @@ var TimerTrigger = class extends LogicTrigger {
27805
27941
  }
27806
27942
  this.timer = setInterval(() => {
27807
27943
  if (!this.scheduler.defaultParamsCb) {
27808
- throw new RuntimeError61("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
27944
+ throw new RuntimeError62("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
27809
27945
  }
27810
27946
  const params = this.scheduler.defaultParamsCb();
27811
27947
  this.executor.execute(params);
@@ -27822,7 +27958,7 @@ var TimerTrigger = class extends LogicTrigger {
27822
27958
  // src/logic-scheduler/executor/app-ui-logic-executor.ts
27823
27959
  import {
27824
27960
  ModelError as ModelError31,
27825
- RuntimeError as RuntimeError62,
27961
+ RuntimeError as RuntimeError63,
27826
27962
  RuntimeModelError as RuntimeModelError63
27827
27963
  } from "@ibiz-template/core";
27828
27964
  import { notNilEmpty as notNilEmpty9 } from "qx-util";
@@ -27855,7 +27991,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27855
27991
  const { context, params, ...rest } = parameters;
27856
27992
  const { data } = parameters;
27857
27993
  if (!(data == null ? void 0 : data[0])) {
27858
- throw new RuntimeError62("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
27994
+ throw new RuntimeError63("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
27859
27995
  }
27860
27996
  const openViewRefs = appUILogic.openDataAppViews;
27861
27997
  let openViewRef;
@@ -27914,7 +28050,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
27914
28050
  const openViewRefs = appUILogic.openDataAppViews;
27915
28051
  const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
27916
28052
  if (!findView) {
27917
- throw new RuntimeError62(
28053
+ throw new RuntimeError63(
27918
28054
  "\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
27919
28055
  );
27920
28056
  }
@@ -28032,12 +28168,12 @@ var AppUILogicExecutor = class extends LogicExecutor {
28032
28168
  }
28033
28169
  const selectData = (_a = result.data) == null ? void 0 : _a[0];
28034
28170
  if (!selectData) {
28035
- throw new RuntimeError62("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
28171
+ throw new RuntimeError63("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
28036
28172
  }
28037
28173
  const indexType = selectData.srfkey;
28038
28174
  const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
28039
28175
  if (!findView) {
28040
- throw new RuntimeError62(
28176
+ throw new RuntimeError63(
28041
28177
  "\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
28042
28178
  );
28043
28179
  }
@@ -28231,7 +28367,7 @@ function installLogicSchedule() {
28231
28367
  }
28232
28368
 
28233
28369
  // src/install.ts
28234
- function install() {
28370
+ function install2() {
28235
28371
  const { ibiz: ibiz2 } = window;
28236
28372
  ibiz2.util = new GlobalUtil();
28237
28373
  ibiz2.hub = new AppHub();
@@ -28244,6 +28380,8 @@ function install() {
28244
28380
  presetUIActionProvider();
28245
28381
  presetAppCounterProvider();
28246
28382
  installLogicSchedule();
28383
+ install();
28384
+ ibiz2.platform = getPlatformProvider();
28247
28385
  }
28248
28386
 
28249
28387
  // src/plugin/plugin-static-resource/plugin-static-resource.ts
@@ -28348,6 +28486,7 @@ export {
28348
28486
  AuthorityService,
28349
28487
  BackendUIActionProvider,
28350
28488
  BaseController,
28489
+ BrowserPlatformProvider,
28351
28490
  ButtonContainerState,
28352
28491
  CONTROL_PROVIDER_PREFIX,
28353
28492
  CTX,
@@ -28463,6 +28602,7 @@ export {
28463
28602
  MqttService,
28464
28603
  OpenAppViewCommand,
28465
28604
  PANELITEM_PROVIDER_PREFIX,
28605
+ PLATFORM_PROVIDER_PREFIX,
28466
28606
  PORTLET_PROVIDER_PREFIX,
28467
28607
  PSDEDQCondEngine,
28468
28608
  PanelController,
@@ -28472,6 +28612,8 @@ export {
28472
28612
  PanelItemState,
28473
28613
  PanelNotifyState,
28474
28614
  PickupViewPanelController,
28615
+ PlatformProviderBase,
28616
+ PlatformType,
28475
28617
  PluginStaticResource,
28476
28618
  PortletPartController,
28477
28619
  PortletPartState,
@@ -28575,6 +28717,8 @@ export {
28575
28717
  getOriginData,
28576
28718
  getPFPlugin,
28577
28719
  getPanelItemProvider,
28720
+ getPlatformProvider,
28721
+ getPlatformType,
28578
28722
  getPortletProvider,
28579
28723
  getRootNode,
28580
28724
  getTreeNode,
@@ -28590,7 +28734,7 @@ export {
28590
28734
  hasDeCodeName,
28591
28735
  hasSubRoute,
28592
28736
  importData,
28593
- install,
28737
+ install2 as install,
28594
28738
  installCommand,
28595
28739
  isDataContainer,
28596
28740
  isValueChange,
@@ -28606,6 +28750,7 @@ export {
28606
28750
  registerFormDetailProvider,
28607
28751
  registerGridColumnProvider,
28608
28752
  registerPanelItemProvider,
28753
+ registerPlatformProvider,
28609
28754
  registerPortletProvider,
28610
28755
  registerUIActionProvider,
28611
28756
  registerUILogicNodeProvider,