@ibiz-template/runtime 0.7.41-alpha.100 → 0.7.41-alpha.102

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 (48) hide show
  1. package/dist/index.esm.js +557 -302
  2. package/dist/index.system.min.js +1 -1
  3. package/out/controller/common/editor/code-list-editor.controller.d.ts.map +1 -1
  4. package/out/controller/common/editor/code-list-editor.controller.js +5 -4
  5. package/out/controller/control/app-menu/app-menu.controller.d.ts.map +1 -1
  6. package/out/controller/control/app-menu/app-menu.controller.js +4 -2
  7. package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
  8. package/out/controller/control/calendar/calendar.controller.js +4 -0
  9. package/out/controller/control/kanban/kanban.controller.js +1 -1
  10. package/out/interface/provider/i-app-func-block.provider.d.ts +69 -0
  11. package/out/interface/provider/i-app-func-block.provider.d.ts.map +1 -0
  12. package/out/interface/provider/i-app-func-block.provider.js +1 -0
  13. package/out/interface/provider/index.d.ts +1 -0
  14. package/out/interface/provider/index.d.ts.map +1 -1
  15. package/out/interface/service/service/i-auth.service.d.ts +5 -0
  16. package/out/interface/service/service/i-auth.service.d.ts.map +1 -1
  17. package/out/locale/en/index.d.ts +1 -0
  18. package/out/locale/en/index.d.ts.map +1 -1
  19. package/out/locale/en/index.js +1 -0
  20. package/out/locale/zh-CN/index.d.ts +1 -0
  21. package/out/locale/zh-CN/index.d.ts.map +1 -1
  22. package/out/locale/zh-CN/index.js +1 -0
  23. package/out/logic-scheduler/executor/script-executor.d.ts.map +1 -1
  24. package/out/logic-scheduler/executor/script-executor.js +9 -3
  25. package/out/register/helper/app-func-block-register.d.ts +20 -0
  26. package/out/register/helper/app-func-block-register.d.ts.map +1 -0
  27. package/out/register/helper/app-func-block-register.js +29 -0
  28. package/out/register/helper/index.d.ts +1 -0
  29. package/out/register/helper/index.d.ts.map +1 -1
  30. package/out/register/helper/index.js +1 -0
  31. package/out/service/service/auth/v7-auth.service.d.ts +1 -1
  32. package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
  33. package/out/service/service/auth/v7-auth.service.js +4 -7
  34. package/out/service/service/entity/method/fetch.d.ts +22 -0
  35. package/out/service/service/entity/method/fetch.d.ts.map +1 -1
  36. package/out/service/service/entity/method/fetch.js +101 -4
  37. package/out/utils/error-handler/default-error-handler.d.ts +15 -0
  38. package/out/utils/error-handler/default-error-handler.d.ts.map +1 -1
  39. package/out/utils/error-handler/default-error-handler.js +48 -6
  40. package/out/utils/index.d.ts +1 -0
  41. package/out/utils/index.d.ts.map +1 -1
  42. package/out/utils/index.js +1 -0
  43. package/out/utils/model/index.d.ts +7 -0
  44. package/out/utils/model/index.d.ts.map +1 -0
  45. package/out/utils/model/index.js +65 -0
  46. package/out/utils/script/script-function.d.ts.map +1 -1
  47. package/out/utils/script/script-function.js +0 -1
  48. package/package.json +3 -3
package/dist/index.esm.js CHANGED
@@ -19562,7 +19562,7 @@ var RegisterCenter = class {
19562
19562
  };
19563
19563
 
19564
19564
  // src/command/app/app-func/app-func.ts
19565
- import { ModelError as ModelError31, RuntimeError as RuntimeError71 } from "@ibiz-template/core";
19565
+ import { ModelError as ModelError31, RuntimeError as RuntimeError72 } from "@ibiz-template/core";
19566
19566
 
19567
19567
  // src/utils/error-handler/default-error-handler.ts
19568
19568
  import {
@@ -19572,21 +19572,48 @@ import {
19572
19572
  NoticeError,
19573
19573
  RuntimeError
19574
19574
  } from "@ibiz-template/core";
19575
- var DefaultErrorHandler = class {
19575
+ var _DefaultErrorHandler = class _DefaultErrorHandler {
19576
+ /**
19577
+ * 判断错误是否重复
19578
+ */
19579
+ static isDuplicate(message) {
19580
+ const { DEDUP_INTERVAL, errorCache } = _DefaultErrorHandler;
19581
+ const now = Date.now();
19582
+ for (const [key, time] of errorCache) {
19583
+ if (now - time >= DEDUP_INTERVAL) {
19584
+ errorCache.delete(key);
19585
+ }
19586
+ }
19587
+ const lastTime = errorCache.get(message);
19588
+ if (lastTime !== void 0) {
19589
+ return true;
19590
+ }
19591
+ errorCache.set(message, now);
19592
+ return false;
19593
+ }
19594
+ /**
19595
+ * 处理错误
19596
+ */
19576
19597
  handle(error) {
19577
19598
  var _a3, _b2;
19599
+ const { isDuplicate } = _DefaultErrorHandler;
19578
19600
  if (error instanceof RuntimeModelError || error instanceof ModelError) {
19579
- ibiz.message.error(error.message, 10, true);
19601
+ if (!isDuplicate(error.message)) {
19602
+ ibiz.message.error(error.message, 10, true);
19603
+ }
19580
19604
  } else if (error instanceof HttpError) {
19581
19605
  if (error.status === 401) {
19582
- ibiz.message.error(
19583
- ibiz.i18n.t("runtime.utils.errorHandler.noPermissionless")
19584
- );
19606
+ const msg = ibiz.i18n.t("runtime.utils.errorHandler.noPermissionless");
19607
+ if (!isDuplicate(msg)) {
19608
+ ibiz.message.error(msg);
19609
+ }
19585
19610
  } else if (error.status === 404) {
19586
19611
  ibiz.mc.error.send(error);
19587
19612
  } else if (error.status === 500 && ((_b2 = (_a3 = error.response) == null ? void 0 : _a3.data) == null ? void 0 : _b2.type) === "DataEntityRuntimeException") {
19588
- ibiz.message.error(error.message);
19589
- } else {
19613
+ if (!isDuplicate(error.message)) {
19614
+ ibiz.message.error(error.message);
19615
+ }
19616
+ } else if (!isDuplicate(error.message)) {
19590
19617
  ibiz.notification.error({
19591
19618
  title: "",
19592
19619
  desc: error.message,
@@ -19594,14 +19621,27 @@ var DefaultErrorHandler = class {
19594
19621
  });
19595
19622
  }
19596
19623
  } else if (error instanceof NoticeError) {
19597
- ibiz.message.error(error.message, error.duration, error.duration === 0);
19624
+ if (!isDuplicate(error.message)) {
19625
+ ibiz.message.error(error.message, error.duration, error.duration === 0);
19626
+ }
19598
19627
  } else if (error instanceof RuntimeError) {
19599
- ibiz.message.error(error.message, 10, true);
19628
+ if (!isDuplicate(error.message)) {
19629
+ ibiz.message.error(error.message, 10, true);
19630
+ }
19600
19631
  }
19601
19632
  ibiz.log.error(error);
19602
19633
  return true;
19603
19634
  }
19604
19635
  };
19636
+ /**
19637
+ * 错误去重时间间隔(300ms)
19638
+ */
19639
+ _DefaultErrorHandler.DEDUP_INTERVAL = 300;
19640
+ /**
19641
+ * 错误缓存
19642
+ */
19643
+ _DefaultErrorHandler.errorCache = /* @__PURE__ */ new Map();
19644
+ var DefaultErrorHandler = _DefaultErrorHandler;
19605
19645
 
19606
19646
  // src/utils/error-handler/error-handler-center.ts
19607
19647
  var ErrorHandlerCenter = class {
@@ -21977,7 +22017,6 @@ var ScriptFunction = class {
21977
22017
  ibiz.i18n.t("runtime.utils.script.errorReportingScript"),
21978
22018
  code
21979
22019
  );
21980
- throw error;
21981
22020
  }
21982
22021
  };
21983
22022
  }
@@ -23022,7 +23061,7 @@ import { clone as clone56 } from "ramda";
23022
23061
  // src/utils/theme-util/custom-theme-util.ts
23023
23062
  import { notNilEmpty as notNilEmpty10 } from "qx-util";
23024
23063
  import { clone as clone55 } from "ramda";
23025
- import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
23064
+ import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
23026
23065
 
23027
23066
  // src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
23028
23067
  import { isEmpty as isEmpty4, isNil as isNil5 } from "ramda";
@@ -29058,7 +29097,6 @@ var EditorController = class {
29058
29097
  };
29059
29098
 
29060
29099
  // src/controller/common/editor/code-list-editor.controller.ts
29061
- import { RuntimeModelError as RuntimeModelError16 } from "@ibiz-template/core";
29062
29100
  var CodeListEditorController = class extends EditorController {
29063
29101
  constructor() {
29064
29102
  super(...arguments);
@@ -29122,10 +29160,14 @@ var CodeListEditorController = class extends EditorController {
29122
29160
  this.allItems = this.toBoolean(this.editorParams.allitems);
29123
29161
  }
29124
29162
  if (this.editorParams.itemsText) {
29125
- this.itemsText = this.editorParams.itemsText;
29163
+ this.itemsText = ibiz.appUtil.resolveI18nText(
29164
+ this.editorParams.itemsText
29165
+ );
29126
29166
  }
29127
29167
  if (this.editorParams.itemstext) {
29128
- this.itemsText = this.editorParams.itemstext;
29168
+ this.itemsText = ibiz.appUtil.resolveI18nText(
29169
+ this.editorParams.itemstext
29170
+ );
29129
29171
  }
29130
29172
  }
29131
29173
  }
@@ -29174,12 +29216,12 @@ var CodeListEditorController = class extends EditorController {
29174
29216
  }
29175
29217
  if (this.editorParams.enumOptions)
29176
29218
  return this.editorParams.enumOptions;
29177
- throw new RuntimeModelError16(
29178
- this.model,
29219
+ ibiz.log.error(
29179
29220
  ibiz.i18n.t("runtime.controller.common.editor.editorNoConfigured", {
29180
29221
  editorType: this.model.editorType
29181
29222
  })
29182
29223
  );
29224
+ return [];
29183
29225
  }
29184
29226
  };
29185
29227
 
@@ -29744,7 +29786,7 @@ var ControlController = class extends BaseController {
29744
29786
  import {
29745
29787
  RuntimeError as RuntimeError17,
29746
29788
  isElementSame,
29747
- RuntimeModelError as RuntimeModelError17
29789
+ RuntimeModelError as RuntimeModelError16
29748
29790
  } from "@ibiz-template/core";
29749
29791
  import { isNil as isNil13 } from "ramda";
29750
29792
  import { isArray as isArray6 } from "lodash-es";
@@ -30432,7 +30474,7 @@ var MDControlController = class extends ControlController {
30432
30474
  async importData() {
30433
30475
  const { appDataEntityId, dedataImportId } = this.model;
30434
30476
  if (!appDataEntityId || !dedataImportId) {
30435
- throw new RuntimeModelError17(
30477
+ throw new RuntimeModelError16(
30436
30478
  this.model,
30437
30479
  ibiz.i18n.t("runtime.controller.common.control.noImportModel")
30438
30480
  );
@@ -30642,7 +30684,7 @@ var MDControlController = class extends ControlController {
30642
30684
  import {
30643
30685
  RuntimeError as RuntimeError18,
30644
30686
  recursiveIterate as recursiveIterate2,
30645
- RuntimeModelError as RuntimeModelError18,
30687
+ RuntimeModelError as RuntimeModelError17,
30646
30688
  findRecursiveChild
30647
30689
  } from "@ibiz-template/core";
30648
30690
 
@@ -30880,8 +30922,9 @@ var AppMenuController = class extends ControlController {
30880
30922
  }
30881
30923
  async onCreated() {
30882
30924
  var _a3;
30883
- await super.onCreated();
30884
30925
  this.app = await ibiz.hub.getApp(this.context.srfappid);
30926
+ await calcDynamicMenu(this.model, this.context, this.params);
30927
+ await super.onCreated();
30885
30928
  await this.initAppMenuItemProviders();
30886
30929
  (_a3 = this.model.appMenuItems) == null ? void 0 : _a3.forEach((item) => {
30887
30930
  this.initMenuItemState(item);
@@ -31136,7 +31179,7 @@ var AppMenuController = class extends ControlController {
31136
31179
  return provider.onClick(menuItem, event, this);
31137
31180
  }
31138
31181
  if (!menuItem.appFuncId) {
31139
- throw new RuntimeModelError18(
31182
+ throw new RuntimeModelError17(
31140
31183
  menuItem,
31141
31184
  ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
31142
31185
  );
@@ -31206,7 +31249,7 @@ var AppMenuController = class extends ControlController {
31206
31249
  }
31207
31250
  });
31208
31251
  };
31209
- flattenMenus(this.model.appMenuItems);
31252
+ flattenMenus(this.model.appMenuItems || []);
31210
31253
  this.allAppMenuItems = result;
31211
31254
  }
31212
31255
  /**
@@ -31298,7 +31341,7 @@ var AppMenuController = class extends ControlController {
31298
31341
  import {
31299
31342
  findRecursiveChild as findRecursiveChild2,
31300
31343
  RuntimeError as RuntimeError19,
31301
- RuntimeModelError as RuntimeModelError19
31344
+ RuntimeModelError as RuntimeModelError18
31302
31345
  } from "@ibiz-template/core";
31303
31346
  var AppMenuIconViewController = class extends AppMenuController {
31304
31347
  async onClickMenuItem(id, event) {
@@ -31316,7 +31359,7 @@ var AppMenuIconViewController = class extends AppMenuController {
31316
31359
  event
31317
31360
  });
31318
31361
  if (!menuItem.appFuncId) {
31319
- throw new RuntimeModelError19(
31362
+ throw new RuntimeModelError18(
31320
31363
  menuItem,
31321
31364
  ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
31322
31365
  );
@@ -31338,7 +31381,7 @@ var AppMenuIconViewController = class extends AppMenuController {
31338
31381
 
31339
31382
  // src/controller/control/calendar/calendar.controller.ts
31340
31383
  import dayjs3 from "dayjs";
31341
- import { RuntimeError as RuntimeError30, RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
31384
+ import { RuntimeError as RuntimeError30, RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
31342
31385
 
31343
31386
  // src/controller/control/calendar/calendar.service.ts
31344
31387
  import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
@@ -32136,11 +32179,11 @@ var CalendarService = class extends MDControlService2 {
32136
32179
  import { recursiveIterate as recursiveIterate3, RuntimeError as RuntimeError29 } from "@ibiz-template/core";
32137
32180
 
32138
32181
  // src/ui-action/provider/backend-ui-action-provider.ts
32139
- import { RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
32182
+ import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
32140
32183
  import { isArray as isArray8 } from "qx-util";
32141
32184
 
32142
32185
  // src/ui-action/provider/ui-action-provider-base.ts
32143
- import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
32186
+ import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
32144
32187
 
32145
32188
  // src/ui-logic/index.ts
32146
32189
  import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
@@ -32149,7 +32192,7 @@ import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
32149
32192
  import {
32150
32193
  IBizContext as IBizContext3,
32151
32194
  ModelError as ModelError18,
32152
- RuntimeModelError as RuntimeModelError36
32195
+ RuntimeModelError as RuntimeModelError35
32153
32196
  } from "@ibiz-template/core";
32154
32197
  import { clone as clone14 } from "ramda";
32155
32198
 
@@ -32304,20 +32347,20 @@ var UILogicContext = class {
32304
32347
  };
32305
32348
 
32306
32349
  // src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
32307
- import { RuntimeModelError as RuntimeModelError22 } from "@ibiz-template/core";
32350
+ import { RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
32308
32351
 
32309
32352
  // src/ui-logic/ui-logic-link/ui-logic-link.ts
32310
32353
  import { ModelError as ModelError13 } from "@ibiz-template/core";
32311
32354
 
32312
32355
  // src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
32313
- import { RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
32356
+ import { RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
32314
32357
 
32315
32358
  // src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
32316
32359
  var UILogicLinkCond = class {
32317
32360
  };
32318
32361
 
32319
32362
  // src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
32320
- import { ModelError as ModelError12, RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
32363
+ import { ModelError as ModelError12, RuntimeModelError as RuntimeModelError19 } from "@ibiz-template/core";
32321
32364
 
32322
32365
  // src/ui-logic/utils/handle-src-val.ts
32323
32366
  import { ModelError as ModelError11 } from "@ibiz-template/core";
@@ -32456,7 +32499,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
32456
32499
  switch (this.type) {
32457
32500
  case "ENTITYFIELD": {
32458
32501
  if (!this.value) {
32459
- throw new RuntimeModelError20(
32502
+ throw new RuntimeModelError19(
32460
32503
  this.model,
32461
32504
  ibiz.i18n.t("runtime.uiLogic.currentConditionValue")
32462
32505
  );
@@ -32468,7 +32511,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
32468
32511
  }
32469
32512
  case "SRCENTITYFIELD": {
32470
32513
  if (!this.value) {
32471
- throw new RuntimeModelError20(
32514
+ throw new RuntimeModelError19(
32472
32515
  this.model,
32473
32516
  ibiz.i18n.t("runtime.uiLogic.sourceDataObjectAttribute")
32474
32517
  );
@@ -32559,7 +32602,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
32559
32602
  test(ctx, context, data) {
32560
32603
  let bol = this.op !== "OR";
32561
32604
  if (this.conds.length === 0) {
32562
- throw new RuntimeModelError21(
32605
+ throw new RuntimeModelError20(
32563
32606
  this.model,
32564
32607
  ibiz.i18n.t("runtime.uiLogic.interfaceConnectionConditional")
32565
32608
  );
@@ -32708,13 +32751,13 @@ var DEActionNode2 = class extends UILogicNode {
32708
32751
  retDEUILogicParamId
32709
32752
  } = this.model;
32710
32753
  if (!dstAppDataEntityId) {
32711
- throw new RuntimeModelError22(
32754
+ throw new RuntimeModelError21(
32712
32755
  this.model,
32713
32756
  ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedEntity")
32714
32757
  );
32715
32758
  }
32716
32759
  if (!dstAppDEActionId) {
32717
- throw new RuntimeModelError22(
32760
+ throw new RuntimeModelError21(
32718
32761
  this.model,
32719
32762
  ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedBehavior")
32720
32763
  );
@@ -32745,7 +32788,7 @@ var DEActionNode2 = class extends UILogicNode {
32745
32788
  };
32746
32789
 
32747
32790
  // src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
32748
- import { RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
32791
+ import { RuntimeModelError as RuntimeModelError22 } from "@ibiz-template/core";
32749
32792
  var DEUIActionNode = class extends UILogicNode {
32750
32793
  async exec(ctx) {
32751
32794
  const {
@@ -32756,7 +32799,7 @@ var DEUIActionNode = class extends UILogicNode {
32756
32799
  } = this.model;
32757
32800
  const { data, parameters } = ctx;
32758
32801
  if (!dstAppDEUIActionId) {
32759
- throw new RuntimeModelError23(
32802
+ throw new RuntimeModelError22(
32760
32803
  this.model,
32761
32804
  ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceBehavior")
32762
32805
  );
@@ -33031,26 +33074,26 @@ var PrepareJSParamNode = class extends UILogicNode {
33031
33074
  };
33032
33075
 
33033
33076
  // src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
33034
- import { RuntimeError as RuntimeError22, RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
33077
+ import { RuntimeError as RuntimeError22, RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
33035
33078
  import { isFunction } from "lodash-es";
33036
33079
  var ViewCtrlInvokeNode = class extends UILogicNode {
33037
33080
  async exec(ctx) {
33038
33081
  ctx.isEndNode = true;
33039
33082
  const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
33040
33083
  if (!invokeCtrlId) {
33041
- throw new RuntimeModelError24(
33084
+ throw new RuntimeModelError23(
33042
33085
  this.model,
33043
33086
  ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceObject")
33044
33087
  );
33045
33088
  }
33046
33089
  if (!invokeParamId) {
33047
- throw new RuntimeModelError24(
33090
+ throw new RuntimeModelError23(
33048
33091
  this.model,
33049
33092
  ibiz.i18n.t("runtime.uiLogic.noConfiguredOperatingParameters")
33050
33093
  );
33051
33094
  }
33052
33095
  if (!invokeMethod) {
33053
- throw new RuntimeModelError24(
33096
+ throw new RuntimeModelError23(
33054
33097
  this.model,
33055
33098
  ibiz.i18n.t("runtime.uiLogic.noConfiguredCallMethod")
33056
33099
  );
@@ -33091,12 +33134,12 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
33091
33134
  };
33092
33135
 
33093
33136
  // src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts
33094
- import { RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
33137
+ import { RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
33095
33138
  var BindParamNode2 = class extends UILogicNode {
33096
33139
  async exec(ctx) {
33097
33140
  const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
33098
33141
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
33099
- throw new RuntimeModelError25(
33142
+ throw new RuntimeModelError24(
33100
33143
  this.model,
33101
33144
  ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
33102
33145
  );
@@ -33115,7 +33158,7 @@ var BindParamNode2 = class extends UILogicNode {
33115
33158
  };
33116
33159
 
33117
33160
  // src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts
33118
- import { ModelError as ModelError16, RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
33161
+ import { ModelError as ModelError16, RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
33119
33162
  var MsgBoxNode = class extends UILogicNode {
33120
33163
  constructor() {
33121
33164
  super(...arguments);
@@ -33129,13 +33172,13 @@ var MsgBoxNode = class extends UILogicNode {
33129
33172
  async exec(ctx) {
33130
33173
  const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
33131
33174
  if (!msgBoxType) {
33132
- throw new RuntimeModelError26(
33175
+ throw new RuntimeModelError25(
33133
33176
  this.model,
33134
33177
  ibiz.i18n.t("runtime.uiLogic.missingMessageTypeConfiguration")
33135
33178
  );
33136
33179
  }
33137
33180
  if (!buttonsType) {
33138
- throw new RuntimeModelError26(
33181
+ throw new RuntimeModelError25(
33139
33182
  this.model,
33140
33183
  ibiz.i18n.t("runtime.uiLogic.missingButtonTypeConfiguration")
33141
33184
  );
@@ -33239,12 +33282,12 @@ var PFPluginNode = class extends UILogicNode {
33239
33282
  };
33240
33283
 
33241
33284
  // src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
33242
- import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
33285
+ import { RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
33243
33286
  var DebugParamNode2 = class extends UILogicNode {
33244
33287
  async exec(ctx) {
33245
33288
  const { dstDEUILogicParamId, name: name2 } = this.model;
33246
33289
  if (!dstDEUILogicParamId) {
33247
- throw new RuntimeModelError27(
33290
+ throw new RuntimeModelError26(
33248
33291
  this.model,
33249
33292
  ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
33250
33293
  );
@@ -33258,12 +33301,12 @@ var DebugParamNode2 = class extends UILogicNode {
33258
33301
  };
33259
33302
 
33260
33303
  // src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts
33261
- import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
33304
+ import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
33262
33305
  var ResetParamNode2 = class extends UILogicNode {
33263
33306
  async exec(ctx) {
33264
33307
  const { dstDEUILogicParamId } = this.model;
33265
33308
  if (!dstDEUILogicParamId) {
33266
- throw new RuntimeModelError28(
33309
+ throw new RuntimeModelError27(
33267
33310
  this.model,
33268
33311
  ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
33269
33312
  );
@@ -33280,13 +33323,13 @@ var ResetParamNode2 = class extends UILogicNode {
33280
33323
  };
33281
33324
 
33282
33325
  // src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
33283
- import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
33326
+ import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
33284
33327
  import { clone as clone13 } from "ramda";
33285
33328
  var CopyParamNode2 = class extends UILogicNode {
33286
33329
  async exec(ctx) {
33287
33330
  const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
33288
33331
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
33289
- throw new RuntimeModelError29(
33332
+ throw new RuntimeModelError28(
33290
33333
  this.model,
33291
33334
  ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
33292
33335
  );
@@ -33305,7 +33348,7 @@ var CopyParamNode2 = class extends UILogicNode {
33305
33348
  };
33306
33349
 
33307
33350
  // src/ui-logic/ui-logic-node/append-param-node/append-param-node.ts
33308
- import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
33351
+ import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
33309
33352
  var AppendParamNode2 = class extends UILogicNode {
33310
33353
  async exec(ctx) {
33311
33354
  const {
@@ -33316,7 +33359,7 @@ var AppendParamNode2 = class extends UILogicNode {
33316
33359
  srcSize
33317
33360
  } = this.model;
33318
33361
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
33319
- throw new RuntimeModelError30(
33362
+ throw new RuntimeModelError29(
33320
33363
  this.model,
33321
33364
  ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
33322
33365
  );
@@ -33341,12 +33384,12 @@ var AppendParamNode2 = class extends UILogicNode {
33341
33384
  };
33342
33385
 
33343
33386
  // src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts
33344
- import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
33387
+ import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
33345
33388
  var SortParamNode2 = class extends UILogicNode {
33346
33389
  async exec(ctx) {
33347
33390
  const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
33348
33391
  if (!dstDEUILogicParamId || !dstFieldName) {
33349
- throw new RuntimeModelError31(
33392
+ throw new RuntimeModelError30(
33350
33393
  this.model,
33351
33394
  ibiz.i18n.t("runtime.deLogic.deLogicNode.missingParameterProperty")
33352
33395
  );
@@ -33370,12 +33413,12 @@ var SortParamNode2 = class extends UILogicNode {
33370
33413
  };
33371
33414
 
33372
33415
  // src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts
33373
- import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
33416
+ import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
33374
33417
  var RenewParamNode2 = class extends UILogicNode {
33375
33418
  async exec(ctx) {
33376
33419
  const { dstDEUILogicParamId } = this.model;
33377
33420
  if (!dstDEUILogicParamId) {
33378
- throw new RuntimeModelError32(
33421
+ throw new RuntimeModelError31(
33379
33422
  this.model,
33380
33423
  ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
33381
33424
  );
@@ -33392,7 +33435,7 @@ var RenewParamNode2 = class extends UILogicNode {
33392
33435
  };
33393
33436
 
33394
33437
  // src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts
33395
- import { RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
33438
+ import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
33396
33439
  var DataSetNode2 = class extends UILogicNode {
33397
33440
  async exec(ctx) {
33398
33441
  const {
@@ -33402,7 +33445,7 @@ var DataSetNode2 = class extends UILogicNode {
33402
33445
  retDEUILogicParamId
33403
33446
  } = this.model;
33404
33447
  if (!dstDEUILogicParamId) {
33405
- throw new RuntimeModelError33(
33448
+ throw new RuntimeModelError32(
33406
33449
  this.model,
33407
33450
  ibiz.i18n.t("runtime.uiLogic.missingfilter")
33408
33451
  );
@@ -33447,25 +33490,25 @@ var ThrowExceptionNode2 = class extends UILogicNode {
33447
33490
  };
33448
33491
 
33449
33492
  // src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
33450
- import { RuntimeError as RuntimeError24, RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
33493
+ import { RuntimeError as RuntimeError24, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
33451
33494
  var ViewCtrlFireEventNode = class extends UILogicNode {
33452
33495
  async exec(ctx) {
33453
33496
  ctx.isEndNode = true;
33454
33497
  const { eventName, eventParamId, fireCtrlId } = this.model;
33455
33498
  if (!fireCtrlId) {
33456
- throw new RuntimeModelError34(
33499
+ throw new RuntimeModelError33(
33457
33500
  this.model,
33458
33501
  ibiz.i18n.t("runtime.uiLogic.noConfiguredTriggerObject")
33459
33502
  );
33460
33503
  }
33461
33504
  if (!eventName) {
33462
- throw new RuntimeModelError34(
33505
+ throw new RuntimeModelError33(
33463
33506
  this.model,
33464
33507
  ibiz.i18n.t("runtime.uiLogic.noConfiguredEvent")
33465
33508
  );
33466
33509
  }
33467
33510
  if (!eventParamId) {
33468
- throw new RuntimeModelError34(
33511
+ throw new RuntimeModelError33(
33469
33512
  this.model,
33470
33513
  ibiz.i18n.t("runtime.uiLogic.noConfiguredEventParameters")
33471
33514
  );
@@ -33500,7 +33543,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
33500
33543
  };
33501
33544
 
33502
33545
  // src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
33503
- import { RuntimeError as RuntimeError25, RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
33546
+ import { RuntimeError as RuntimeError25, RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
33504
33547
  var ExecuteDELogicNode = class extends UILogicNode {
33505
33548
  async exec(ctx) {
33506
33549
  const {
@@ -33510,19 +33553,19 @@ var ExecuteDELogicNode = class extends UILogicNode {
33510
33553
  retDEUILogicParamId
33511
33554
  } = this.model;
33512
33555
  if (!dstAppDataEntityId) {
33513
- throw new RuntimeModelError35(
33556
+ throw new RuntimeModelError34(
33514
33557
  this.model,
33515
33558
  ibiz.i18n.t("runtime.uiLogic.noEntityConfigured")
33516
33559
  );
33517
33560
  }
33518
33561
  if (!dstAppDELogicId) {
33519
- throw new RuntimeModelError35(
33562
+ throw new RuntimeModelError34(
33520
33563
  this.model,
33521
33564
  ibiz.i18n.t("runtime.uiLogic.noEntityLogicConfigured")
33522
33565
  );
33523
33566
  }
33524
33567
  if (!dstDEUILogicParamId) {
33525
- throw new RuntimeModelError35(
33568
+ throw new RuntimeModelError34(
33526
33569
  this.model,
33527
33570
  ibiz.i18n.t("runtime.uiLogic.noIncomingLogic")
33528
33571
  );
@@ -33751,7 +33794,7 @@ var UILogic = class {
33751
33794
  this.params = /* @__PURE__ */ new Map();
33752
33795
  var _a3;
33753
33796
  if (!((_a3 = model.deuilogicNodes) == null ? void 0 : _a3.length)) {
33754
- throw new RuntimeModelError36(
33797
+ throw new RuntimeModelError35(
33755
33798
  model,
33756
33799
  ibiz.i18n.t("runtime.uiLogic.noLogicalNodesConfigured")
33757
33800
  );
@@ -33881,7 +33924,7 @@ var UILogic = class {
33881
33924
  const start = this.nodes.get(startDEUILogicNodeId);
33882
33925
  await this.deepExec(start, ctx);
33883
33926
  } else {
33884
- throw new RuntimeModelError36(
33927
+ throw new RuntimeModelError35(
33885
33928
  this.model,
33886
33929
  ibiz.i18n.t("runtime.deLogic.deLogicNode.noSetStartNode")
33887
33930
  );
@@ -34086,7 +34129,7 @@ var UIActionProviderBase = class {
34086
34129
  const { appDEUILogicId, appDataEntityId, uilogicAttachMode, appId: appId2 } = action;
34087
34130
  if (uilogicAttachMode === "REPLACE") {
34088
34131
  if (!appDEUILogicId) {
34089
- throw new RuntimeModelError37(
34132
+ throw new RuntimeModelError36(
34090
34133
  action,
34091
34134
  ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
34092
34135
  );
@@ -34129,7 +34172,7 @@ var UIActionProviderBase = class {
34129
34172
  }
34130
34173
  if (action.uilogicAttachMode === "AFTER") {
34131
34174
  if (!appDEUILogicId) {
34132
- throw new RuntimeModelError37(
34175
+ throw new RuntimeModelError36(
34133
34176
  action,
34134
34177
  ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
34135
34178
  );
@@ -34413,7 +34456,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
34413
34456
  const entityName = action.appDataEntityId;
34414
34457
  const methodName = action.appDEMethodId;
34415
34458
  if (!entityName || !methodName) {
34416
- throw new RuntimeModelError38(
34459
+ throw new RuntimeModelError37(
34417
34460
  action,
34418
34461
  ibiz.i18n.t("runtime.uiAction.noEntityOrBehavior")
34419
34462
  );
@@ -34550,7 +34593,7 @@ import {
34550
34593
  StringUtil as StringUtil3,
34551
34594
  ModelError as ModelError19,
34552
34595
  RuntimeError as RuntimeError28,
34553
- RuntimeModelError as RuntimeModelError39
34596
+ RuntimeModelError as RuntimeModelError38
34554
34597
  } from "@ibiz-template/core";
34555
34598
  import { clone as clone15, mergeRight as mergeRight4 } from "ramda";
34556
34599
  var FrontUIActionProvider = class extends UIActionProviderBase {
@@ -34572,7 +34615,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
34572
34615
  case "WIZARD": {
34573
34616
  const frontPSAppView = action.frontAppViewId;
34574
34617
  if (!frontPSAppView) {
34575
- throw new RuntimeModelError39(
34618
+ throw new RuntimeModelError38(
34576
34619
  action,
34577
34620
  ibiz.i18n.t("runtime.uiAction.noConfiguredopenView")
34578
34621
  );
@@ -34677,7 +34720,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
34677
34720
  );
34678
34721
  return result || {};
34679
34722
  }
34680
- throw new RuntimeModelError39(
34723
+ throw new RuntimeModelError38(
34681
34724
  action,
34682
34725
  ibiz.i18n.t("runtime.uiAction.missingConfigurationScriptCode")
34683
34726
  );
@@ -34761,7 +34804,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
34761
34804
  const { resultContext, resultParams, presetParams } = await this.handleParams(action, args.context, args.data, args.params);
34762
34805
  const { appDataEntityId, appDEDataImportId, frontAppViewId } = action;
34763
34806
  if (!appDataEntityId || !appDEDataImportId) {
34764
- throw new RuntimeModelError39(
34807
+ throw new RuntimeModelError38(
34765
34808
  action,
34766
34809
  ibiz.i18n.t("runtime.controller.common.control.noImportModel")
34767
34810
  );
@@ -35054,7 +35097,7 @@ var LoginOutUIActionProvider = class extends UIActionProviderBase {
35054
35097
  };
35055
35098
 
35056
35099
  // src/ui-action/provider/custom-ui-action-provider.ts
35057
- import { RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
35100
+ import { RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
35058
35101
  var CustomUIActionProvider = class extends UIActionProviderBase {
35059
35102
  async execAction(action, args) {
35060
35103
  const { scriptCode } = action;
@@ -35066,7 +35109,7 @@ var CustomUIActionProvider = class extends UIActionProviderBase {
35066
35109
  );
35067
35110
  return result || {};
35068
35111
  }
35069
- throw new RuntimeModelError40(
35112
+ throw new RuntimeModelError39(
35070
35113
  action,
35071
35114
  ibiz.i18n.t("runtime.uiAction.missingConfigurationScriptCode")
35072
35115
  );
@@ -35626,6 +35669,11 @@ var CalendarController = class extends MDControlController {
35626
35669
  if ((_b2 = (_a3 = this.model.controlParam) == null ? void 0 : _a3.ctrlParams) == null ? void 0 : _b2.TIMELINECAPTIONFORMAT) {
35627
35670
  this.timelineCaptionFormat = this.model.controlParam.ctrlParams.TIMELINECAPTIONFORMAT;
35628
35671
  }
35672
+ if (this.controlParams.calendartitle) {
35673
+ this.state.calendarTitle = ibiz.appUtil.resolveI18nText(
35674
+ this.controlParams.calendartitle
35675
+ );
35676
+ }
35629
35677
  this.state.showDetail = ((_d = (_c = this.model.controlParam) == null ? void 0 : _c.ctrlParams) == null ? void 0 : _d.SHOWDETAIL) || this.controlParams.showdetail === "true" || false;
35630
35678
  this.service = new CalendarService(this.model);
35631
35679
  await this.service.init(this.context);
@@ -35775,7 +35823,7 @@ var CalendarController = class extends MDControlController {
35775
35823
  }
35776
35824
  ));
35777
35825
  if (result === -1)
35778
- throw new RuntimeModelError41(
35826
+ throw new RuntimeModelError40(
35779
35827
  calendarItem,
35780
35828
  ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
35781
35829
  itemType: calendarItem.itemType.toLowerCase()
@@ -35811,7 +35859,7 @@ var CalendarController = class extends MDControlController {
35811
35859
  }
35812
35860
  ));
35813
35861
  if (result === -1)
35814
- throw new RuntimeModelError41(
35862
+ throw new RuntimeModelError40(
35815
35863
  calendarItem,
35816
35864
  ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
35817
35865
  itemType: calendarItem.itemType.toLowerCase()
@@ -36221,10 +36269,10 @@ import { isObject as isObject2, isString as isString2 } from "qx-util";
36221
36269
  import { RuntimeError as RuntimeError31 } from "@ibiz-template/core";
36222
36270
 
36223
36271
  // src/controller/control/chart/generator/line-series-generator.ts
36224
- import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
36272
+ import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
36225
36273
 
36226
36274
  // src/controller/control/chart/generator/base-series-generator.ts
36227
- import { plus, RuntimeModelError as RuntimeModelError42, toNumberOrNil } from "@ibiz-template/core";
36275
+ import { plus, RuntimeModelError as RuntimeModelError41, toNumberOrNil } from "@ibiz-template/core";
36228
36276
  import dayjs4 from "dayjs";
36229
36277
  import minMax from "dayjs/plugin/minMax";
36230
36278
  import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
@@ -36306,13 +36354,13 @@ var BaseSeriesGenerator = class {
36306
36354
  var _a3;
36307
36355
  const { chartSeriesEncode, caption, id, userParam } = model;
36308
36356
  if (!model.catalogField) {
36309
- throw new RuntimeModelError42(
36357
+ throw new RuntimeModelError41(
36310
36358
  model,
36311
36359
  ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
36312
36360
  );
36313
36361
  }
36314
36362
  if (!model.valueField) {
36315
- throw new RuntimeModelError42(
36363
+ throw new RuntimeModelError41(
36316
36364
  model,
36317
36365
  ibiz.i18n.t("runtime.controller.control.chart.missingValue")
36318
36366
  );
@@ -37059,13 +37107,13 @@ var BaseSeriesGenerator = class {
37059
37107
  var LineSeriesGenerator = class extends BaseSeriesGenerator {
37060
37108
  calcStaticOptions() {
37061
37109
  if (this.xAxisIndex === void 0) {
37062
- throw new RuntimeModelError43(
37110
+ throw new RuntimeModelError42(
37063
37111
  this.model,
37064
37112
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37065
37113
  );
37066
37114
  }
37067
37115
  if (this.yAxisIndex === void 0) {
37068
- throw new RuntimeModelError43(
37116
+ throw new RuntimeModelError42(
37069
37117
  this.model,
37070
37118
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37071
37119
  );
@@ -37084,17 +37132,17 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
37084
37132
  };
37085
37133
 
37086
37134
  // src/controller/control/chart/generator/bar-series-generator.ts
37087
- import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
37135
+ import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
37088
37136
  var BarSeriesGenerator = class extends BaseSeriesGenerator {
37089
37137
  calcStaticOptions() {
37090
37138
  if (this.xAxisIndex === void 0) {
37091
- throw new RuntimeModelError44(
37139
+ throw new RuntimeModelError43(
37092
37140
  this.model,
37093
37141
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37094
37142
  );
37095
37143
  }
37096
37144
  if (this.yAxisIndex === void 0) {
37097
- throw new RuntimeModelError44(
37145
+ throw new RuntimeModelError43(
37098
37146
  this.model,
37099
37147
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37100
37148
  );
@@ -37150,17 +37198,17 @@ var PieSeriesGenerator = class extends BaseSeriesGenerator {
37150
37198
  };
37151
37199
 
37152
37200
  // src/controller/control/chart/generator/scatter-series-generator.ts
37153
- import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
37201
+ import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
37154
37202
  var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
37155
37203
  calcStaticOptions() {
37156
37204
  if (this.xAxisIndex === void 0) {
37157
- throw new RuntimeModelError45(
37205
+ throw new RuntimeModelError44(
37158
37206
  this.model,
37159
37207
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37160
37208
  );
37161
37209
  }
37162
37210
  if (this.yAxisIndex === void 0) {
37163
- throw new RuntimeModelError45(
37211
+ throw new RuntimeModelError44(
37164
37212
  this.model,
37165
37213
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37166
37214
  );
@@ -37290,7 +37338,7 @@ var RadarSeriesGenerator = class extends BaseSeriesGenerator {
37290
37338
  };
37291
37339
 
37292
37340
  // src/controller/control/chart/generator/area-series-generator.ts
37293
- import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
37341
+ import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
37294
37342
  var AreaSeriesGenerator = class extends BaseSeriesGenerator {
37295
37343
  /**
37296
37344
  * 计算静态序列的options
@@ -37299,13 +37347,13 @@ var AreaSeriesGenerator = class extends BaseSeriesGenerator {
37299
37347
  */
37300
37348
  calcStaticOptions() {
37301
37349
  if (this.xAxisIndex === void 0) {
37302
- throw new RuntimeModelError46(
37350
+ throw new RuntimeModelError45(
37303
37351
  this.model,
37304
37352
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37305
37353
  );
37306
37354
  }
37307
37355
  if (this.yAxisIndex === void 0) {
37308
- throw new RuntimeModelError46(
37356
+ throw new RuntimeModelError45(
37309
37357
  this.model,
37310
37358
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37311
37359
  );
@@ -37355,7 +37403,7 @@ var GaugeSeriesGenerator = class extends BaseSeriesGenerator {
37355
37403
  // src/controller/control/chart/generator/candlestick-series-generator.ts
37356
37404
  import { isNil as isNil16 } from "ramda";
37357
37405
  import { isArray as isArray9, isNumber as isNumber3 } from "qx-util";
37358
- import { plus as plus2, RuntimeModelError as RuntimeModelError47, toNumberOrNil as toNumberOrNil2 } from "@ibiz-template/core";
37406
+ import { plus as plus2, RuntimeModelError as RuntimeModelError46, toNumberOrNil as toNumberOrNil2 } from "@ibiz-template/core";
37359
37407
  var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
37360
37408
  /**
37361
37409
  * 初始化参数
@@ -37368,7 +37416,7 @@ var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
37368
37416
  var _a3;
37369
37417
  const { chartSeriesEncode, caption, id, userParam, navViewParamJO } = model;
37370
37418
  if (!model.catalogField) {
37371
- throw new RuntimeModelError47(
37419
+ throw new RuntimeModelError46(
37372
37420
  model,
37373
37421
  ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
37374
37422
  );
@@ -40700,7 +40748,7 @@ import { clone as clone23 } from "ramda";
40700
40748
  import { isString as isString3 } from "lodash-es";
40701
40749
 
40702
40750
  // src/controller/control/search-bar/search-bar-filter.controller.ts
40703
- import { RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
40751
+ import { RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
40704
40752
 
40705
40753
  // src/controller/control/search-bar/util.ts
40706
40754
  var ItemsValueOPs = [
@@ -40781,7 +40829,7 @@ var SearchBarFilterController = class {
40781
40829
  async init() {
40782
40830
  if (!this.noEditor) {
40783
40831
  if (!this.model.editor) {
40784
- throw new RuntimeModelError48(
40832
+ throw new RuntimeModelError47(
40785
40833
  this.model,
40786
40834
  ibiz.i18n.t("runtime.controller.control.searchBar.missingModel")
40787
40835
  );
@@ -42881,7 +42929,7 @@ import {
42881
42929
  clone as clone25,
42882
42930
  DataTypes as DataTypes2,
42883
42931
  isElementSame as isElementSame2,
42884
- RuntimeModelError as RuntimeModelError49
42932
+ RuntimeModelError as RuntimeModelError48
42885
42933
  } from "@ibiz-template/core";
42886
42934
  import { isNil as isNil18, isNotNil as isNotNil4 } from "ramda";
42887
42935
  import { createUUID as createUUID6, isBoolean } from "qx-util";
@@ -43344,7 +43392,7 @@ var DataViewControlController = class extends MDControlController {
43344
43392
  const { enableGroup } = this.state;
43345
43393
  if (enableGroup && groupMode) {
43346
43394
  if (!groupAppDEFieldId) {
43347
- throw new RuntimeModelError49(
43395
+ throw new RuntimeModelError48(
43348
43396
  this.model,
43349
43397
  ibiz.i18n.t(
43350
43398
  "runtime.controller.control.dataView.propertiesNoConfigured"
@@ -43437,7 +43485,7 @@ var DataViewControlController = class extends MDControlController {
43437
43485
  async handleCodeListGroup() {
43438
43486
  const { groupAppDEFieldId, groupCodeListId } = this.model;
43439
43487
  if (!groupCodeListId) {
43440
- throw new RuntimeModelError49(
43488
+ throw new RuntimeModelError48(
43441
43489
  this.model,
43442
43490
  ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
43443
43491
  );
@@ -43551,7 +43599,7 @@ var DataViewControlController = class extends MDControlController {
43551
43599
  caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
43552
43600
  }
43553
43601
  if (!item.appDEFieldId) {
43554
- throw new RuntimeModelError49(
43602
+ throw new RuntimeModelError48(
43555
43603
  item,
43556
43604
  ibiz.i18n.t("runtime.controller.control.dataView.sortingItems")
43557
43605
  );
@@ -43772,13 +43820,13 @@ var DataViewControlController = class extends MDControlController {
43772
43820
  await this.updateChangedItems([draggedItem]);
43773
43821
  } else {
43774
43822
  if (!minorSortAppDEFieldId)
43775
- throw new RuntimeModelError49(
43823
+ throw new RuntimeModelError48(
43776
43824
  this.model,
43777
43825
  ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
43778
43826
  );
43779
43827
  const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
43780
43828
  if (!moveAction)
43781
- throw new RuntimeModelError49(
43829
+ throw new RuntimeModelError48(
43782
43830
  this.model,
43783
43831
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
43784
43832
  );
@@ -44774,7 +44822,7 @@ import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
44774
44822
 
44775
44823
  // src/controller/control/form/form/form.controller.ts
44776
44824
  import {
44777
- RuntimeModelError as RuntimeModelError50,
44825
+ RuntimeModelError as RuntimeModelError49,
44778
44826
  debounceAndAsyncMerge,
44779
44827
  recursiveIterate as recursiveIterate8,
44780
44828
  EntityError,
@@ -45044,7 +45092,7 @@ var FormController = class extends ControlController {
45044
45092
  return;
45045
45093
  }
45046
45094
  if (form.details[detail.id]) {
45047
- throw new RuntimeModelError50(
45095
+ throw new RuntimeModelError49(
45048
45096
  detail,
45049
45097
  ibiz.i18n.t(
45050
45098
  "runtime.controller.control.form.initializationException",
@@ -47949,7 +47997,7 @@ var FormMDCtrlController = class extends FormDetailController {
47949
47997
  import {
47950
47998
  ModelError as ModelError20,
47951
47999
  mergeInLeft as mergeInLeft2,
47952
- RuntimeModelError as RuntimeModelError51
48000
+ RuntimeModelError as RuntimeModelError50
47953
48001
  } from "@ibiz-template/core";
47954
48002
  var FormMDCtrlMDController = class extends FormMDCtrlController {
47955
48003
  constructor() {
@@ -47988,7 +48036,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
47988
48036
  if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
47989
48037
  return;
47990
48038
  }
47991
- throw new RuntimeModelError51(
48039
+ throw new RuntimeModelError50(
47992
48040
  this.model,
47993
48041
  ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
47994
48042
  );
@@ -48119,7 +48167,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
48119
48167
  };
48120
48168
 
48121
48169
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
48122
- import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
48170
+ import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
48123
48171
  import { createUUID as createUUID8 } from "qx-util";
48124
48172
 
48125
48173
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
@@ -48164,7 +48212,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
48164
48212
  if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
48165
48213
  return;
48166
48214
  }
48167
- throw new RuntimeModelError52(
48215
+ throw new RuntimeModelError51(
48168
48216
  this.model,
48169
48217
  ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
48170
48218
  );
@@ -49168,7 +49216,7 @@ import { clone as clone30, isNil as isNil21 } from "ramda";
49168
49216
  // src/controller/control/form/edit-form/edit-form.service.ts
49169
49217
  import {
49170
49218
  recursiveIterate as recursiveIterate12,
49171
- RuntimeModelError as RuntimeModelError53
49219
+ RuntimeModelError as RuntimeModelError52
49172
49220
  } from "@ibiz-template/core";
49173
49221
  var EditFormService = class extends FormService {
49174
49222
  /**
@@ -49295,7 +49343,7 @@ var EditFormService = class extends FormService {
49295
49343
  const wizardForm = this.model;
49296
49344
  const methodName = (_a3 = wizardForm.goBackControlAction) == null ? void 0 : _a3.appDEMethodId;
49297
49345
  if (!methodName) {
49298
- throw new RuntimeModelError53(
49346
+ throw new RuntimeModelError52(
49299
49347
  this.model,
49300
49348
  ibiz.i18n.t("runtime.controller.control.form.lackBehavior")
49301
49349
  );
@@ -50548,7 +50596,7 @@ import {
50548
50596
  awaitTimeout as awaitTimeout2,
50549
50597
  RuntimeError as RuntimeError40,
50550
50598
  recursiveIterate as recursiveIterate13,
50551
- RuntimeModelError as RuntimeModelError55,
50599
+ RuntimeModelError as RuntimeModelError54,
50552
50600
  mergeDefaultInLeft as mergeDefaultInLeft2,
50553
50601
  debounceAndAsyncMerge as debounceAndAsyncMerge2
50554
50602
  } from "@ibiz-template/core";
@@ -50556,7 +50604,7 @@ import { clone as clone32 } from "ramda";
50556
50604
  import dayjs5 from "dayjs";
50557
50605
 
50558
50606
  // src/controller/control/grid/grid/grid.service.ts
50559
- import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
50607
+ import { RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
50560
50608
  var GridService = class extends MDControlService2 {
50561
50609
  /**
50562
50610
  * 初始化属性映射
@@ -50584,7 +50632,7 @@ var GridService = class extends MDControlService2 {
50584
50632
  dataType: dataItem.dataType
50585
50633
  });
50586
50634
  } else {
50587
- throw new RuntimeModelError54(
50635
+ throw new RuntimeModelError53(
50588
50636
  column,
50589
50637
  ibiz.i18n.t("runtime.controller.control.grid.corresponding", {
50590
50638
  deField
@@ -51503,7 +51551,7 @@ var GridController = class extends MDControlController {
51503
51551
  (item) => item.model.appDEFieldId === groupAppDEFieldId
51504
51552
  );
51505
51553
  if (!this.groupFieldColumn) {
51506
- throw new RuntimeModelError55(
51554
+ throw new RuntimeModelError54(
51507
51555
  this.model,
51508
51556
  ibiz.i18n.t("runtime.controller.control.grid.attributeColumns")
51509
51557
  );
@@ -51514,7 +51562,7 @@ var GridController = class extends MDControlController {
51514
51562
  );
51515
51563
  if (index !== -1 && index !== 0) {
51516
51564
  if (this.isMultistageHeader) {
51517
- throw new RuntimeModelError55(
51565
+ throw new RuntimeModelError54(
51518
51566
  this.model,
51519
51567
  ibiz.i18n.t("runtime.controller.control.grid.configureFirstColumn", {
51520
51568
  groupFieldName
@@ -51526,13 +51574,13 @@ var GridController = class extends MDControlController {
51526
51574
  }
51527
51575
  if (groupMode === "CODELIST") {
51528
51576
  if (!groupCodeListId) {
51529
- throw new RuntimeModelError55(
51577
+ throw new RuntimeModelError54(
51530
51578
  this.model,
51531
51579
  ibiz.i18n.t("runtime.controller.control.grid.requiresCodeTable")
51532
51580
  );
51533
51581
  }
51534
51582
  if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
51535
- throw new RuntimeModelError55(
51583
+ throw new RuntimeModelError54(
51536
51584
  this.model,
51537
51585
  ibiz.i18n.t("runtime.controller.control.grid.noMatchCodeTable", {
51538
51586
  groupFieldName
@@ -51691,7 +51739,7 @@ var GridController = class extends MDControlController {
51691
51739
  return;
51692
51740
  }
51693
51741
  if (!aggAppDEDataSetId || !aggAppDataEntityId) {
51694
- throw new RuntimeModelError55(
51742
+ throw new RuntimeModelError54(
51695
51743
  this.model,
51696
51744
  ibiz.i18n.t("runtime.controller.control.grid.missingConfiguration")
51697
51745
  );
@@ -52736,7 +52784,7 @@ var GridController = class extends MDControlController {
52736
52784
  var _a3;
52737
52785
  const moveAction = (_a3 = this.model.moveControlAction) == null ? void 0 : _a3.appDEMethodId;
52738
52786
  if (!moveAction) {
52739
- throw new RuntimeModelError55(
52787
+ throw new RuntimeModelError54(
52740
52788
  this.model,
52741
52789
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
52742
52790
  );
@@ -53267,7 +53315,7 @@ var GridFieldColumnController = class extends GridColumnController {
53267
53315
  };
53268
53316
 
53269
53317
  // src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
53270
- import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
53318
+ import { RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
53271
53319
  var GridUAColumnController = class extends GridColumnController {
53272
53320
  /**
53273
53321
  * 给rowController初始化操作列的状态
@@ -53280,7 +53328,7 @@ var GridUAColumnController = class extends GridColumnController {
53280
53328
  var _a3;
53281
53329
  const { deuiactionGroup } = this.model;
53282
53330
  if (!deuiactionGroup) {
53283
- throw new RuntimeModelError56(
53331
+ throw new RuntimeModelError55(
53284
53332
  this.model,
53285
53333
  ibiz.i18n.t("runtime.controller.control.grid.behaviorGroup")
53286
53334
  );
@@ -53618,7 +53666,7 @@ import {
53618
53666
  clone as clone35,
53619
53667
  DataTypes as DataTypes5,
53620
53668
  isElementSame as isElementSame4,
53621
- RuntimeModelError as RuntimeModelError57
53669
+ RuntimeModelError as RuntimeModelError56
53622
53670
  } from "@ibiz-template/core";
53623
53671
  import dayjs7 from "dayjs";
53624
53672
 
@@ -54333,13 +54381,13 @@ var ListController = class extends MDControlController {
54333
54381
  await this.updateChangedItems([draggedItem]);
54334
54382
  } else {
54335
54383
  if (!minorSortAppDEFieldId)
54336
- throw new RuntimeModelError57(
54384
+ throw new RuntimeModelError56(
54337
54385
  this.model,
54338
54386
  ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
54339
54387
  );
54340
54388
  const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
54341
54389
  if (!moveAction)
54342
- throw new RuntimeModelError57(
54390
+ throw new RuntimeModelError56(
54343
54391
  this.model,
54344
54392
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
54345
54393
  );
@@ -57053,7 +57101,7 @@ var TabExpPanelController = class extends ControlController {
57053
57101
  import {
57054
57102
  RuntimeError as RuntimeError43,
57055
57103
  recursiveIterate as recursiveIterate15,
57056
- RuntimeModelError as RuntimeModelError58
57104
+ RuntimeModelError as RuntimeModelError57
57057
57105
  } from "@ibiz-template/core";
57058
57106
  import { isNil as isNil27 } from "ramda";
57059
57107
  import { isBoolean as isBoolean4 } from "qx-util";
@@ -58652,7 +58700,7 @@ var TreeController = class extends MDControlController {
58652
58700
  const { moveAppDEActionId, appDataEntityId, allowOrder } = orderNodeModel;
58653
58701
  if (allowOrder) {
58654
58702
  if (!moveAppDEActionId) {
58655
- throw new RuntimeModelError58(
58703
+ throw new RuntimeModelError57(
58656
58704
  this.model,
58657
58705
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
58658
58706
  );
@@ -58734,7 +58782,7 @@ var TreeController = class extends MDControlController {
58734
58782
  async modifyNodeText(nodeData, text) {
58735
58783
  const model = this.getNodeModel(nodeData._nodeId);
58736
58784
  if (!model.allowEditText) {
58737
- throw new RuntimeModelError58(
58785
+ throw new RuntimeModelError57(
58738
58786
  model,
58739
58787
  ibiz.i18n.t("runtime.controller.control.tree.editMode")
58740
58788
  );
@@ -58847,7 +58895,7 @@ var TreeController = class extends MDControlController {
58847
58895
  const nodeModel = this.getNodeModel(nodeType);
58848
58896
  const parentNodeData = this.getNodeData(parentKey);
58849
58897
  if (!nodeModel) {
58850
- throw new RuntimeModelError58(
58898
+ throw new RuntimeModelError57(
58851
58899
  this.model,
58852
58900
  ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
58853
58901
  );
@@ -58981,7 +59029,7 @@ var TreeController = class extends MDControlController {
58981
59029
  }
58982
59030
  ));
58983
59031
  if (result === -1)
58984
- throw new RuntimeModelError58(
59032
+ throw new RuntimeModelError57(
58985
59033
  nodeModel,
58986
59034
  ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
58987
59035
  itemType: nodeModel.id.toLowerCase()
@@ -59020,7 +59068,7 @@ var TreeController = class extends MDControlController {
59020
59068
  }
59021
59069
  ));
59022
59070
  if (result === -1)
59023
- throw new RuntimeModelError58(
59071
+ throw new RuntimeModelError57(
59024
59072
  nodeModel,
59025
59073
  ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
59026
59074
  itemType: nodeModel.id.toLowerCase()
@@ -59616,7 +59664,7 @@ var WizardPanelController = class extends ControlController {
59616
59664
  };
59617
59665
 
59618
59666
  // src/controller/control/md-ctrl/md-ctrl.controller.ts
59619
- import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError59 } from "@ibiz-template/core";
59667
+ import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
59620
59668
  import { clone as clone38, isNil as isNil28, isNotNil as isNotNil8 } from "ramda";
59621
59669
  import { createUUID as createUUID15 } from "qx-util";
59622
59670
 
@@ -59935,7 +59983,7 @@ var MDCtrlController = class extends MDControlController {
59935
59983
  const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
59936
59984
  if (enableGroup && groupMode) {
59937
59985
  if (!groupAppDEFieldId) {
59938
- throw new RuntimeModelError59(
59986
+ throw new RuntimeModelError58(
59939
59987
  this.model,
59940
59988
  ibiz.i18n.t(
59941
59989
  "runtime.controller.control.dataView.propertiesNoConfigured"
@@ -60027,7 +60075,7 @@ var MDCtrlController = class extends MDControlController {
60027
60075
  async handleCodeListGroup() {
60028
60076
  const { groupAppDEFieldId, groupCodeListId } = this.model;
60029
60077
  if (!groupCodeListId) {
60030
- throw new RuntimeModelError59(
60078
+ throw new RuntimeModelError58(
60031
60079
  this.model,
60032
60080
  ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
60033
60081
  );
@@ -60365,7 +60413,7 @@ import {
60365
60413
  clone as clone39,
60366
60414
  RuntimeError as RuntimeError46,
60367
60415
  isElementSame as isElementSame5,
60368
- RuntimeModelError as RuntimeModelError60
60416
+ RuntimeModelError as RuntimeModelError59
60369
60417
  } from "@ibiz-template/core";
60370
60418
 
60371
60419
  // src/controller/control/kanban/kanban.service.ts
@@ -60419,7 +60467,7 @@ var KanbanController = class extends DataViewControlController {
60419
60467
  get laneDescription() {
60420
60468
  var _a3;
60421
60469
  if (this.controlParams.lanedescription)
60422
- return this.controlParams.lanedescription;
60470
+ return ibiz.appUtil.resolveI18nText(this.controlParams.lanedescription);
60423
60471
  return (_a3 = this.dataEntity) == null ? void 0 : _a3.logicName;
60424
60472
  }
60425
60473
  async initControlService() {
@@ -60655,7 +60703,7 @@ var KanbanController = class extends DataViewControlController {
60655
60703
  async handleCodeListGroup() {
60656
60704
  const { groupAppDEFieldId, groupCodeListId } = this.model;
60657
60705
  if (!groupCodeListId) {
60658
- throw new RuntimeModelError60(
60706
+ throw new RuntimeModelError59(
60659
60707
  this.model,
60660
60708
  ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
60661
60709
  );
@@ -60719,13 +60767,13 @@ var KanbanController = class extends DataViewControlController {
60719
60767
  await this.updateChangedItems([draggedItem]);
60720
60768
  } else {
60721
60769
  if (!minorSortAppDEFieldId)
60722
- throw new RuntimeModelError60(
60770
+ throw new RuntimeModelError59(
60723
60771
  this.model,
60724
60772
  ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
60725
60773
  );
60726
60774
  const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
60727
60775
  if (!moveAction)
60728
- throw new RuntimeModelError60(
60776
+ throw new RuntimeModelError59(
60729
60777
  this.model,
60730
60778
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
60731
60779
  );
@@ -60926,7 +60974,7 @@ import {
60926
60974
  RuntimeError as RuntimeError47,
60927
60975
  awaitTimeout as awaitTimeout3,
60928
60976
  recursiveIterate as recursiveIterate16,
60929
- RuntimeModelError as RuntimeModelError61
60977
+ RuntimeModelError as RuntimeModelError60
60930
60978
  } from "@ibiz-template/core";
60931
60979
  import { clone as clone40 } from "ramda";
60932
60980
 
@@ -61355,7 +61403,7 @@ var TreeGridExController = class extends TreeController {
61355
61403
  );
61356
61404
  }
61357
61405
  if (!updateAppDEActionId) {
61358
- throw new RuntimeModelError61(
61406
+ throw new RuntimeModelError60(
61359
61407
  nodeModel,
61360
61408
  ibiz.i18n.t("runtime.controller.control.treeGridEx.updateBehavior")
61361
61409
  );
@@ -61683,7 +61731,7 @@ var TreeGridExColumnController = class {
61683
61731
  import {
61684
61732
  DataTypes as DataTypes7,
61685
61733
  RuntimeError as RuntimeError48,
61686
- RuntimeModelError as RuntimeModelError62
61734
+ RuntimeModelError as RuntimeModelError61
61687
61735
  } from "@ibiz-template/core";
61688
61736
  import { clone as clone41 } from "ramda";
61689
61737
  import dayjs8 from "dayjs";
@@ -61714,7 +61762,7 @@ var TreeGridExNodeColumnController = class {
61714
61762
  }
61715
61763
  );
61716
61764
  if (!nodeColumn || !nodeDataItem) {
61717
- throw new RuntimeModelError62(
61765
+ throw new RuntimeModelError61(
61718
61766
  nodeModel,
61719
61767
  ibiz.i18n.t("runtime.controller.control.treeGridEx.noConfigured", {
61720
61768
  name: this.fieldColumn.name
@@ -61730,7 +61778,7 @@ var TreeGridExNodeColumnController = class {
61730
61778
  }
61731
61779
  );
61732
61780
  if (!nodeEditItem) {
61733
- throw new RuntimeModelError62(
61781
+ throw new RuntimeModelError61(
61734
61782
  nodeModel,
61735
61783
  ibiz.i18n.t("runtime.controller.control.treeGridEx.editItem", {
61736
61784
  name: this.fieldColumn.name
@@ -62239,7 +62287,7 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
62239
62287
  };
62240
62288
 
62241
62289
  // src/controller/control/tree-grid/tree-grid.controller.ts
62242
- import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
62290
+ import { RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
62243
62291
  import { createUUID as createUUID16 } from "qx-util";
62244
62292
  var TreeGridController = class extends GridController {
62245
62293
  constructor() {
@@ -62284,7 +62332,7 @@ var TreeGridController = class extends GridController {
62284
62332
  return item.treeColumnMode === 4 || item.treeColumnMode === 12;
62285
62333
  });
62286
62334
  if (!treeGridParent)
62287
- throw new RuntimeModelError63(
62335
+ throw new RuntimeModelError62(
62288
62336
  this.model,
62289
62337
  ibiz.i18n.t("runtime.controller.control.treeGrid.columnMode")
62290
62338
  );
@@ -62292,7 +62340,7 @@ var TreeGridController = class extends GridController {
62292
62340
  return item.treeColumnMode === 2 || item.treeColumnMode === 3;
62293
62341
  });
62294
62342
  if (!treeGridValue)
62295
- throw new RuntimeModelError63(
62343
+ throw new RuntimeModelError62(
62296
62344
  this.model,
62297
62345
  ibiz.i18n.t("runtime.controller.control.treeGrid.columnsSchema")
62298
62346
  );
@@ -67684,8 +67732,27 @@ async function getAcItemProvider(model) {
67684
67732
  return provider;
67685
67733
  }
67686
67734
 
67735
+ // src/register/helper/app-func-block-register.ts
67736
+ import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
67737
+ var APP_FUNC_BLOCK_PROVIDER_PREFIX = "APPFUNCBLOCK";
67738
+ function registerAppFuncBlockProvider(callback) {
67739
+ ibiz.register.register("".concat(APP_FUNC_BLOCK_PROVIDER_PREFIX, "_DEFAULT"), callback);
67740
+ }
67741
+ async function getAppFuncBlockProvider() {
67742
+ const provider = ibiz.register.get(
67743
+ "".concat(APP_FUNC_BLOCK_PROVIDER_PREFIX, "_DEFAULT")
67744
+ );
67745
+ if (!provider) {
67746
+ throw new RuntimeError54(
67747
+ ibiz.i18n.t("runtime.register.helper.noFoundAppFuncBlock")
67748
+ );
67749
+ } else {
67750
+ return provider;
67751
+ }
67752
+ }
67753
+
67687
67754
  // src/service/utils/app-counter/app-counter.ts
67688
- import { IBizContext as IBizContext7, RuntimeError as RuntimeError54 } from "@ibiz-template/core";
67755
+ import { IBizContext as IBizContext7, RuntimeError as RuntimeError55 } from "@ibiz-template/core";
67689
67756
  import { notNilEmpty as notNilEmpty8, QXEvent as QXEvent4 } from "qx-util";
67690
67757
  import { clone as clone47 } from "ramda";
67691
67758
  import { toNumber } from "lodash-es";
@@ -67814,7 +67881,7 @@ var AppCounter8 = class {
67814
67881
  * @return {*} {Promise<IData>}
67815
67882
  */
67816
67883
  async load() {
67817
- throw new RuntimeError54(ibiz.i18n.t("runtime.service.noImplementedCounter"));
67884
+ throw new RuntimeError55(ibiz.i18n.t("runtime.service.noImplementedCounter"));
67818
67885
  }
67819
67886
  /**
67820
67887
  * 计数器刷新
@@ -67881,7 +67948,7 @@ var AppCounter8 = class {
67881
67948
  };
67882
67949
 
67883
67950
  // src/service/utils/app-counter/app-de-counter.ts
67884
- import { RuntimeModelError as RuntimeModelError64 } from "@ibiz-template/core";
67951
+ import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
67885
67952
  var AppDECounter = class extends AppCounter8 {
67886
67953
  /**
67887
67954
  * 计数器初始化
@@ -67895,7 +67962,7 @@ var AppDECounter = class extends AppCounter8 {
67895
67962
  this.appDataEntityId = this.model.appDataEntityId;
67896
67963
  const action = this.model.getAppDEActionId;
67897
67964
  if (!action) {
67898
- throw new RuntimeModelError64(
67965
+ throw new RuntimeModelError63(
67899
67966
  this.model,
67900
67967
  ibiz.i18n.t("runtime.service.noFoundCounterBehavior")
67901
67968
  );
@@ -68042,7 +68109,7 @@ DEDQCondUtil.map = /* @__PURE__ */ new WeakMap();
68042
68109
  import {
68043
68110
  IBizContext as IBizContext8,
68044
68111
  ModelError as ModelError26,
68045
- RuntimeModelError as RuntimeModelError65,
68112
+ RuntimeModelError as RuntimeModelError64,
68046
68113
  StringUtil as StringUtil5
68047
68114
  } from "@ibiz-template/core";
68048
68115
  import { clone as clone48, isNil as isNil29 } from "ramda";
@@ -68437,13 +68504,13 @@ var DynamicCodeListCache = class {
68437
68504
  return Object.freeze(presetresultItems);
68438
68505
  }
68439
68506
  if (!appDataEntityId) {
68440
- throw new RuntimeModelError65(
68507
+ throw new RuntimeModelError64(
68441
68508
  this.codeList,
68442
68509
  ibiz.i18n.t("runtime.controller.utils.viewMsg.unconfiguredEntities")
68443
68510
  );
68444
68511
  }
68445
68512
  if (!appDEDataSetId) {
68446
- throw new RuntimeModelError65(
68513
+ throw new RuntimeModelError64(
68447
68514
  this.codeList,
68448
68515
  ibiz.i18n.t("runtime.service.unconfiguredDataset")
68449
68516
  );
@@ -68637,10 +68704,10 @@ var DynamicCodeListCache = class {
68637
68704
  // src/service/utils/de-cache/de-cache.ts
68638
68705
  import { where, equals, clone as clone49, isNil as isNil31, isEmpty as isEmpty7 } from "ramda";
68639
68706
  import { createUUID as createUUID18 } from "qx-util";
68640
- import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
68707
+ import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
68641
68708
 
68642
68709
  // src/service/utils/service-exist-util/service-exist-util.ts
68643
- import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
68710
+ import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
68644
68711
  import { isEmpty as isEmpty6, isNil as isNil30 } from "ramda";
68645
68712
  function isExistSrfKey(funcName, entity) {
68646
68713
  if (entity != null) {
@@ -68649,7 +68716,7 @@ function isExistSrfKey(funcName, entity) {
68649
68716
  return true;
68650
68717
  }
68651
68718
  }
68652
- throw new RuntimeError55(
68719
+ throw new RuntimeError56(
68653
68720
  ibiz.i18n.t("runtime.service.processedWithout", { funcName })
68654
68721
  );
68655
68722
  }
@@ -68658,7 +68725,7 @@ function isExistSessionId(funcName, context) {
68658
68725
  if (!isNil30(srfsessionid) && !isEmpty6(srfsessionid)) {
68659
68726
  return true;
68660
68727
  }
68661
- throw new RuntimeError55(
68728
+ throw new RuntimeError56(
68662
68729
  ibiz.i18n.t("runtime.service.noExistProcessed", { funcName })
68663
68730
  );
68664
68731
  }
@@ -68753,7 +68820,7 @@ var DECache = class {
68753
68820
  this.calcUnionKey(entity);
68754
68821
  if (this.checkData(context, entity.srfunionkey)) {
68755
68822
  ibiz.log.error(
68756
- new RuntimeError56(
68823
+ new RuntimeError57(
68757
68824
  ibiz.i18n.t("runtime.service.createPrimaryKeyData", {
68758
68825
  srfkey: entity.srfunionkey
68759
68826
  })
@@ -68825,7 +68892,7 @@ var DECache = class {
68825
68892
  this.calcUnionKey(entity);
68826
68893
  if (oldUnionKey !== entity.srfunionkey && this.checkData(context, entity.srfunionkey)) {
68827
68894
  ibiz.log.error(
68828
- new RuntimeError56(
68895
+ new RuntimeError57(
68829
68896
  ibiz.i18n.t("runtime.service.updatePrimaryKeyData", {
68830
68897
  srfkey: entity.srfunionkey
68831
68898
  })
@@ -68964,7 +69031,7 @@ var DECache = class {
68964
69031
  this.calcUnionKey(entity);
68965
69032
  if (oldUnionKey !== entity.srfunionkey && this.checkData(context, entity.srfunionkey)) {
68966
69033
  ibiz.log.error(
68967
- new RuntimeError56(
69034
+ new RuntimeError57(
68968
69035
  ibiz.i18n.t("runtime.service.updatePrimaryKeyData", {
68969
69036
  srfkey: entity.srfunionkey
68970
69037
  })
@@ -69418,7 +69485,7 @@ var DeMethodProcesser = class {
69418
69485
  };
69419
69486
 
69420
69487
  // src/service/service/code-list/code-list.service.ts
69421
- import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
69488
+ import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
69422
69489
  import { isNumber as isNumber4 } from "lodash-es";
69423
69490
  var CodeListService = class {
69424
69491
  constructor(appModel) {
@@ -69584,7 +69651,7 @@ var CodeListService = class {
69584
69651
  var _a3;
69585
69652
  const codeList = this.allCodeLists.get(tag);
69586
69653
  if (!codeList) {
69587
- throw new RuntimeError57(
69654
+ throw new RuntimeError58(
69588
69655
  ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
69589
69656
  );
69590
69657
  }
@@ -69647,7 +69714,7 @@ var CodeListService = class {
69647
69714
  async getItem(tag, value, context, params) {
69648
69715
  const codeList = this.allCodeLists.get(tag);
69649
69716
  if (!codeList) {
69650
- throw new RuntimeError57(
69717
+ throw new RuntimeError58(
69651
69718
  ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
69652
69719
  );
69653
69720
  }
@@ -69664,7 +69731,7 @@ var CodeListService = class {
69664
69731
  let codeListInstance;
69665
69732
  const codeList = this.allCodeLists.get(tag);
69666
69733
  if (!codeList) {
69667
- throw new RuntimeError57(
69734
+ throw new RuntimeError58(
69668
69735
  ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
69669
69736
  );
69670
69737
  }
@@ -69765,7 +69832,7 @@ var ConfigService = class {
69765
69832
  };
69766
69833
 
69767
69834
  // src/service/service/counter/counter.service.ts
69768
- import { RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
69835
+ import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
69769
69836
  var CounterService = class {
69770
69837
  /**
69771
69838
  * 获取计数器
@@ -69810,7 +69877,7 @@ var CounterService = class {
69810
69877
  static async getCounterByRef(model, context, params) {
69811
69878
  const { appCounter } = model;
69812
69879
  if (!appCounter) {
69813
- throw new RuntimeModelError66(
69880
+ throw new RuntimeModelError65(
69814
69881
  model,
69815
69882
  ibiz.i18n.t("runtime.service.noConfiguredCounters")
69816
69883
  );
@@ -69834,14 +69901,14 @@ import {
69834
69901
  HttpError as HttpError6,
69835
69902
  IBizContext as IBizContext9,
69836
69903
  ModelError as ModelError28,
69837
- RuntimeError as RuntimeError59,
69838
- RuntimeModelError as RuntimeModelError68
69904
+ RuntimeError as RuntimeError60,
69905
+ RuntimeModelError as RuntimeModelError67
69839
69906
  } from "@ibiz-template/core";
69840
69907
  import { createUUID as createUUID20 } from "qx-util";
69841
69908
  import { isNil as isNil34, isUndefined } from "lodash-es";
69842
69909
 
69843
69910
  // src/service/service/work-flow/work-flow.service.ts
69844
- import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
69911
+ import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
69845
69912
  var WorkFlowService = class {
69846
69913
  /**
69847
69914
  * Creates an instance of WorkFlowService.
@@ -70163,7 +70230,7 @@ var WorkFlowService = class {
70163
70230
  case "sendcopy":
70164
70231
  return this.wfSendCopy(context, params, data);
70165
70232
  default: {
70166
- throw new RuntimeError58(
70233
+ throw new RuntimeError59(
70167
70234
  ibiz.i18n.t("runtime.service.noImplemented", { methodName })
70168
70235
  );
70169
70236
  }
@@ -70457,7 +70524,7 @@ var AppDataEntity = class _AppDataEntity {
70457
70524
  };
70458
70525
 
70459
70526
  // src/service/dto/method.dto.ts
70460
- import { ModelError as ModelError27, RuntimeModelError as RuntimeModelError67 } from "@ibiz-template/core";
70527
+ import { ModelError as ModelError27, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
70461
70528
  import { clone as clone51 } from "ramda";
70462
70529
  var MethodDto = class {
70463
70530
  /**
@@ -70563,7 +70630,7 @@ var MethodDto = class {
70563
70630
  context
70564
70631
  );
70565
70632
  } else {
70566
- throw new RuntimeModelError67(
70633
+ throw new RuntimeModelError66(
70567
70634
  field,
70568
70635
  ibiz.i18n.t("runtime.service.subRelationships")
70569
70636
  );
@@ -70824,7 +70891,7 @@ var DEService = class {
70824
70891
  }
70825
70892
  const model = findAppDEMethod(this.model, id);
70826
70893
  if (!model) {
70827
- throw new RuntimeModelError68(
70894
+ throw new RuntimeModelError67(
70828
70895
  this.model,
70829
70896
  ibiz.i18n.t("runtime.service.noFoundServiceMethod", { id })
70830
70897
  );
@@ -70883,7 +70950,7 @@ var DEService = class {
70883
70950
  throw error;
70884
70951
  }
70885
70952
  }
70886
- throw new RuntimeError59(
70953
+ throw new RuntimeError60(
70887
70954
  ibiz.i18n.t("runtime.service.noSupportedMethod", {
70888
70955
  codeName: this.model.codeName,
70889
70956
  id
@@ -70961,7 +71028,7 @@ var DEService = class {
70961
71028
  if (method) {
70962
71029
  return method.exec(context, params, params2);
70963
71030
  }
70964
- throw new RuntimeError59(
71031
+ throw new RuntimeError60(
70965
71032
  ibiz.i18n.t("runtime.service.noSupportedMethod", {
70966
71033
  codeName: this.model.codeName,
70967
71034
  id
@@ -71125,7 +71192,7 @@ var DEService = class {
71125
71192
  };
71126
71193
 
71127
71194
  // src/service/service/authority/authority.service.ts
71128
- import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
71195
+ import { RuntimeError as RuntimeError61 } from "@ibiz-template/core";
71129
71196
 
71130
71197
  // src/service/service/authority/de-authority.service.ts
71131
71198
  var DeAuthorityService = class {
@@ -71381,7 +71448,7 @@ var AuthorityService = class {
71381
71448
  this.appModel.appId
71382
71449
  );
71383
71450
  if (!entityModel) {
71384
- throw new RuntimeError60(ibiz.i18n.t("runtime.service.noFound", { id }));
71451
+ throw new RuntimeError61(ibiz.i18n.t("runtime.service.noFound", { id }));
71385
71452
  }
71386
71453
  const constructor = this.constructorCache.get(id);
71387
71454
  let service;
@@ -71764,15 +71831,12 @@ var V7AuthService = class {
71764
71831
  * @memberof V7AuthService
71765
71832
  */
71766
71833
  async loadAppData(context) {
71767
- let res;
71768
- if (context && Object.keys(context).length > 0) {
71769
- res = await ibiz.net.get("/appdata", context);
71770
- } else {
71771
- res = await ibiz.net.get("/appdata");
71772
- }
71834
+ const appFuncBlockProvider = await getAppFuncBlockProvider();
71835
+ const res = await appFuncBlockProvider.loadAppData(context);
71773
71836
  if (res.ok) {
71774
71837
  ibiz.appData = res.data;
71775
71838
  }
71839
+ return res.ok;
71776
71840
  }
71777
71841
  /**
71778
71842
  * 清空权限数据
@@ -71825,15 +71889,15 @@ var AsyncActionService = class {
71825
71889
  import {
71826
71890
  HttpError as HttpError8,
71827
71891
  HttpResponse as HttpResponse5,
71828
- RuntimeError as RuntimeError61,
71829
- RuntimeModelError as RuntimeModelError70
71892
+ RuntimeError as RuntimeError62,
71893
+ RuntimeModelError as RuntimeModelError69
71830
71894
  } from "@ibiz-template/core";
71831
71895
  import { isArray as isArray10, isNil as isNil36, isUndefined as isUndefined2 } from "lodash-es";
71832
71896
  import { ascSort } from "qx-util";
71833
71897
  import { clone as clone52 } from "ramda";
71834
71898
 
71835
71899
  // src/service/service/entity/method/method.ts
71836
- import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError69 } from "@ibiz-template/core";
71900
+ import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError68 } from "@ibiz-template/core";
71837
71901
 
71838
71902
  // src/service/service/entity/method/method-input.ts
71839
71903
  var MethodInput = class {
@@ -72052,12 +72116,12 @@ var Method = class {
72052
72116
  break;
72053
72117
  default:
72054
72118
  if (requestMethod) {
72055
- throw new RuntimeModelError69(
72119
+ throw new RuntimeModelError68(
72056
72120
  this.method,
72057
72121
  ibiz.i18n.t("runtime.service.requestMethods", { requestMethod })
72058
72122
  );
72059
72123
  } else {
72060
- throw new RuntimeModelError69(
72124
+ throw new RuntimeModelError68(
72061
72125
  this.method,
72062
72126
  ibiz.i18n.t("runtime.service.noConfiguredRequestMethod")
72063
72127
  );
@@ -72068,7 +72132,7 @@ var Method = class {
72068
72132
  if (actionType === "SCRIPT") {
72069
72133
  return new HttpResponse4(data);
72070
72134
  }
72071
- throw new RuntimeModelError69(
72135
+ throw new RuntimeModelError68(
72072
72136
  this.method,
72073
72137
  ibiz.i18n.t("runtime.service.unsupportedBehaviorTypes", { actionType })
72074
72138
  );
@@ -72184,7 +72248,7 @@ var DEActionMethod = class extends Method {
72184
72248
  if (this.method.actionType === "DELOGIC") {
72185
72249
  const deLogic = findDELogic(this.method.appDELogicId, this.entity);
72186
72250
  if (!deLogic) {
72187
- throw new RuntimeModelError70(
72251
+ throw new RuntimeModelError69(
72188
72252
  this.method,
72189
72253
  ibiz.i18n.t("runtime.service.lackEntityLogic")
72190
72254
  );
@@ -72324,7 +72388,7 @@ var DEActionMethod = class extends Method {
72324
72388
  */
72325
72389
  async create(context, data, params, header) {
72326
72390
  if (!data) {
72327
- throw new RuntimeError61(ibiz.i18n.t("runtime.service.createBehavior"));
72391
+ throw new RuntimeError62(ibiz.i18n.t("runtime.service.createBehavior"));
72328
72392
  }
72329
72393
  if (this.isLocalMode) {
72330
72394
  const res2 = await this.executeLocalMethod(
@@ -72377,7 +72441,7 @@ var DEActionMethod = class extends Method {
72377
72441
  */
72378
72442
  async update(context, data, params, header) {
72379
72443
  if (!data) {
72380
- throw new RuntimeError61(ibiz.i18n.t("runtime.service.updateBehavior"));
72444
+ throw new RuntimeError62(ibiz.i18n.t("runtime.service.updateBehavior"));
72381
72445
  }
72382
72446
  if (this.isLocalMode) {
72383
72447
  const res2 = await this.executeLocalMethod(
@@ -72574,7 +72638,7 @@ var DEActionMethod = class extends Method {
72574
72638
  configs = ascSort(configs, "removeOrder");
72575
72639
  for (const config of configs) {
72576
72640
  if (config.rstype !== "DER1N") {
72577
- throw new RuntimeModelError70(
72641
+ throw new RuntimeModelError69(
72578
72642
  config,
72579
72643
  ibiz.i18n.t("runtime.service.deletionDeletion")
72580
72644
  );
@@ -72852,7 +72916,7 @@ var DeActionDeMethodProvider = class {
72852
72916
  import {
72853
72917
  HttpResponse as HttpResponse6,
72854
72918
  ModelError as ModelError29,
72855
- RuntimeModelError as RuntimeModelError71
72919
+ RuntimeModelError as RuntimeModelError70
72856
72920
  } from "@ibiz-template/core";
72857
72921
  import { isArray as isArray11 } from "lodash-es";
72858
72922
  import { clone as clone53, isEmpty as isEmpty9, isNil as isNil37 } from "ramda";
@@ -72874,14 +72938,19 @@ var FetchMethod = class extends Method {
72874
72938
  }
72875
72939
  const cond = DEDQCondUtil.getCond(this.method);
72876
72940
  const filter = new SearchFilter(context, searchParams);
72877
- const items = await this.searchLocal(cond, filter);
72878
- res = new HttpResponse6(items, 200);
72941
+ const { items, total, page, size, totalPages } = await this.searchLocalWithMeta(cond, filter);
72942
+ res = new HttpResponse6(items, 200, "", {
72943
+ "x-total": total,
72944
+ "x-page": page,
72945
+ "x-per-page": size,
72946
+ "x-total-pages": totalPages
72947
+ });
72879
72948
  } else {
72880
72949
  switch (this.method.dataSetType) {
72881
72950
  case "INDEXDE":
72882
72951
  case "CODELIST":
72883
72952
  case "MULTIFORM":
72884
- res = await this.fetchCodeListSet(context, searchParams);
72953
+ res = await this.fetchCodeListSetWithMeta(context, searchParams);
72885
72954
  break;
72886
72955
  case "REMOTE":
72887
72956
  {
@@ -72970,10 +73039,73 @@ var FetchMethod = class extends Method {
72970
73039
  }
72971
73040
  const { page, size } = filter;
72972
73041
  const start = page * size;
72973
- const end = (page + 1) * size - 1;
73042
+ const end = (page + 1) * size;
72974
73043
  const items = list.slice(start, end).map((item) => clone53(item));
72975
73044
  return items;
72976
73045
  }
73046
+ /**
73047
+ * 搜索本地数据(带元数据)
73048
+ * @param cond 查询实例
73049
+ * @param filter 过滤对象
73050
+ * @param queryParamKeys 当前实体支持快速搜索的属性
73051
+ * @returns 数据列表和分页信息
73052
+ */
73053
+ async searchLocalWithMeta(cond, filter, queryParamKeys = this.entity.quickSearchAppDEFieldIds) {
73054
+ let list = this.service.local.getList();
73055
+ if (cond) {
73056
+ if (list.length > 0) {
73057
+ list = list.filter((obj) => cond.test(obj, filter));
73058
+ }
73059
+ }
73060
+ if (list.length > 0) {
73061
+ if (filter.query && filter.query !== "") {
73062
+ if (queryParamKeys) {
73063
+ list = list.filter((obj) => {
73064
+ const reg2 = new RegExp(filter.query.toLowerCase());
73065
+ for (let i = 0; i < queryParamKeys.length; i += 1) {
73066
+ const key = queryParamKeys[i];
73067
+ const val = obj[key];
73068
+ if (reg2.test(val.toLowerCase())) {
73069
+ return true;
73070
+ }
73071
+ }
73072
+ return false;
73073
+ });
73074
+ }
73075
+ }
73076
+ }
73077
+ if (!isNil37(filter.sortField) && !isEmpty9(filter.sortField)) {
73078
+ if (filter.sortMode === "DESC") {
73079
+ list = descSort(list, filter.sortField);
73080
+ } else {
73081
+ list = ascSort2(list, filter.sortField);
73082
+ }
73083
+ }
73084
+ if (!isNil37(filter.srfDefaultCond) && !isEmpty9(filter.srfDefaultCond)) {
73085
+ const defaultConds = filter.srfDefaultCond;
73086
+ const defaultCondKeys = Object.keys(defaultConds);
73087
+ list = list.filter((obj) => {
73088
+ for (let i = 0; i < defaultCondKeys.length; i += 1) {
73089
+ const key = defaultCondKeys[i];
73090
+ if (obj[key] === defaultConds[key]) {
73091
+ return true;
73092
+ }
73093
+ }
73094
+ return false;
73095
+ });
73096
+ }
73097
+ const { page, size } = filter;
73098
+ const start = page * size;
73099
+ const end = (page + 1) * size;
73100
+ const items = list.slice(start, end).map((item) => clone53(item));
73101
+ return {
73102
+ items,
73103
+ total: list.length,
73104
+ page,
73105
+ size,
73106
+ totalPages: Math.ceil(list.length / size)
73107
+ };
73108
+ }
72977
73109
  /**
72978
73110
  * 获取代码表数据来源的集合
72979
73111
  * @author lxm
@@ -72985,7 +73117,7 @@ var FetchMethod = class extends Method {
72985
73117
  async fetchCodeListSet(context, params) {
72986
73118
  const { appCodeListId } = this.method;
72987
73119
  if (!appCodeListId) {
72988
- throw new RuntimeModelError71(
73120
+ throw new RuntimeModelError70(
72989
73121
  this.method,
72990
73122
  ibiz.i18n.t("runtime.service.sourceCodeTable")
72991
73123
  );
@@ -73002,6 +73134,38 @@ var FetchMethod = class extends Method {
73002
73134
  }));
73003
73135
  return new HttpResponse6(dataSet, 200);
73004
73136
  }
73137
+ /**
73138
+ * 获取代码表数据来源的集合(带元数据)
73139
+ *
73140
+ * @param {IContext} context
73141
+ * @param {IParams} params
73142
+ * @return {*} {Promise<HttpResponse<IData[]>>}
73143
+ */
73144
+ async fetchCodeListSetWithMeta(context, params) {
73145
+ const { appCodeListId } = this.method;
73146
+ if (!appCodeListId) {
73147
+ throw new RuntimeModelError70(
73148
+ this.method,
73149
+ ibiz.i18n.t("runtime.service.sourceCodeTable")
73150
+ );
73151
+ }
73152
+ const codeItems = await this.app.codeList.get(
73153
+ appCodeListId,
73154
+ context,
73155
+ params
73156
+ );
73157
+ const { keyAppDEFieldId, majorAppDEFieldId } = this.entity;
73158
+ const dataSet = codeItems.map((item) => ({
73159
+ [keyAppDEFieldId]: item.value,
73160
+ [majorAppDEFieldId]: item.text
73161
+ }));
73162
+ return new HttpResponse6(dataSet, 200, "", {
73163
+ "x-total": codeItems.length,
73164
+ "x-page": 0,
73165
+ "x-per-page": codeItems.length,
73166
+ "x-total-pages": 1
73167
+ });
73168
+ }
73005
73169
  };
73006
73170
 
73007
73171
  // src/service/service/entity/method/ac-fetch.ts
@@ -73549,7 +73713,7 @@ import qs3 from "qs";
73549
73713
  import {
73550
73714
  clearAppCookie as clearAppCookie2,
73551
73715
  CoreConst as CoreConst2,
73552
- RuntimeError as RuntimeError62,
73716
+ RuntimeError as RuntimeError63,
73553
73717
  setAppCookie as setAppCookie2
73554
73718
  } from "@ibiz-template/core";
73555
73719
  var ThirdAuthService = class {
@@ -73572,7 +73736,7 @@ var ThirdAuthService = class {
73572
73736
  case "OAUTH":
73573
73737
  return this.oauthThirdAuth(params);
73574
73738
  default:
73575
- throw new RuntimeError62(
73739
+ throw new RuntimeError63(
73576
73740
  ibiz.i18n.t("runtime.service.thirdAuth.noSupported", { type })
73577
73741
  );
73578
73742
  }
@@ -73624,7 +73788,7 @@ var ThirdAuthService = class {
73624
73788
  const search = qs3.parse(window.location.search.replace("?", ""));
73625
73789
  try {
73626
73790
  if (!search.corpId) {
73627
- throw new RuntimeError62(
73791
+ throw new RuntimeError63(
73628
73792
  ibiz.i18n.t("runtime.service.thirdAuth.corpidError")
73629
73793
  );
73630
73794
  }
@@ -73633,7 +73797,7 @@ var ThirdAuthService = class {
73633
73797
  corpId: search.corpId
73634
73798
  });
73635
73799
  if (!res || !res.code) {
73636
- throw new RuntimeError62(
73800
+ throw new RuntimeError63(
73637
73801
  ibiz.i18n.t("runtime.service.thirdAuth.dingTalkCodeErrir")
73638
73802
  );
73639
73803
  }
@@ -73654,7 +73818,7 @@ var ThirdAuthService = class {
73654
73818
  window.location.href = "./?srfthird_auth_success=false";
73655
73819
  return { ok: false, data: response.data };
73656
73820
  }
73657
- throw new RuntimeError62(
73821
+ throw new RuntimeError63(
73658
73822
  ibiz.i18n.t("runtime.service.thirdAuth.dingTalkAuthError")
73659
73823
  );
73660
73824
  } catch (error) {
@@ -73691,7 +73855,7 @@ var ThirdAuthService = class {
73691
73855
  return { ok: true, data };
73692
73856
  }
73693
73857
  }
73694
- throw new RuntimeError62(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
73858
+ throw new RuntimeError63(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
73695
73859
  }
73696
73860
  /**
73697
73861
  * 企业微信嵌入授权
@@ -73762,7 +73926,7 @@ var ThirdAuthService = class {
73762
73926
  return { ok: true, data };
73763
73927
  }
73764
73928
  }
73765
- throw new RuntimeError62(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
73929
+ throw new RuntimeError63(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
73766
73930
  }
73767
73931
  /**
73768
73932
  * oauth 登录
@@ -73775,7 +73939,7 @@ var ThirdAuthService = class {
73775
73939
  async oauthThirdAuth(params = {}) {
73776
73940
  const oauthOpenAccessId = params.oauthopenaccessid || ibiz.env.oauthOpenAccessId;
73777
73941
  if (!oauthOpenAccessId) {
73778
- throw new RuntimeError62(
73942
+ throw new RuntimeError63(
73779
73943
  ibiz.i18n.t("runtime.service.thirdAuth.oauthOpenAccessIdError")
73780
73944
  );
73781
73945
  }
@@ -73811,7 +73975,7 @@ var ThirdAuthService = class {
73811
73975
  };
73812
73976
 
73813
73977
  // src/service/service/util/ai-util.service.ts
73814
- import { RuntimeError as RuntimeError63 } from "@ibiz-template/core";
73978
+ import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
73815
73979
  var AIUtilService = class {
73816
73980
  /**
73817
73981
  * 构造函数
@@ -73972,10 +74136,10 @@ var AIUtilService = class {
73972
74136
  var _a3;
73973
74137
  const getSessionAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.getSessionAppDEActionId;
73974
74138
  if (!getSessionAppDEActionId)
73975
- throw new RuntimeError63("getSessionAppDEActionId is null");
74139
+ throw new RuntimeError64("getSessionAppDEActionId is null");
73976
74140
  const sessionService = await this.getSessionService(context);
73977
74141
  if (!sessionService)
73978
- throw new RuntimeError63("sessionService is null");
74142
+ throw new RuntimeError64("sessionService is null");
73979
74143
  const response = await sessionService.exec(
73980
74144
  getSessionAppDEActionId,
73981
74145
  context,
@@ -74000,12 +74164,12 @@ var AIUtilService = class {
74000
74164
  var _a3;
74001
74165
  const updateSessionAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.updateSessionAppDEActionId;
74002
74166
  if (!updateSessionAppDEActionId)
74003
- throw new RuntimeError63("updateSessionAppDEActionId is null");
74167
+ throw new RuntimeError64("updateSessionAppDEActionId is null");
74004
74168
  if (!data || Object.keys(data).length === 0)
74005
- throw new RuntimeError63("data is null");
74169
+ throw new RuntimeError64("data is null");
74006
74170
  const sessionService = await this.getSessionService(context);
74007
74171
  if (!sessionService)
74008
- throw new RuntimeError63("sessionService is null");
74172
+ throw new RuntimeError64("sessionService is null");
74009
74173
  const tempContext = context.clone();
74010
74174
  tempContext[this.sessionAppEntityName.toLowerCase()] = realID;
74011
74175
  const tempData = this.handleUserRequestData(data, "sessionmodelMapping");
@@ -74069,10 +74233,10 @@ var AIUtilService = class {
74069
74233
  var _a3;
74070
74234
  const getMessageAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.getMessageAppDEActionId;
74071
74235
  if (!getMessageAppDEActionId)
74072
- throw new RuntimeError63("getMessageAppDEActionId is null");
74236
+ throw new RuntimeError64("getMessageAppDEActionId is null");
74073
74237
  const messageService = await this.getMessageService(context);
74074
74238
  if (!messageService)
74075
- throw new RuntimeError63("messageService is null");
74239
+ throw new RuntimeError64("messageService is null");
74076
74240
  const response = await messageService.exec(
74077
74241
  getMessageAppDEActionId,
74078
74242
  context,
@@ -74127,10 +74291,10 @@ var AIUtilService = class {
74127
74291
  return false;
74128
74292
  const { likeMessageAppDEActionId } = this.utilParams;
74129
74293
  if (!likeMessageAppDEActionId)
74130
- throw new RuntimeError63("likeMessageAppDEActionId is null");
74294
+ throw new RuntimeError64("likeMessageAppDEActionId is null");
74131
74295
  const messageService = await this.getMessageService(context);
74132
74296
  if (!messageService)
74133
- throw new RuntimeError63("messageService is null");
74297
+ throw new RuntimeError64("messageService is null");
74134
74298
  const tempContext = context.clone();
74135
74299
  tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
74136
74300
  await messageService.exec(
@@ -74155,10 +74319,10 @@ var AIUtilService = class {
74155
74319
  return false;
74156
74320
  const { dislikeMessageAppDEActionId } = this.utilParams;
74157
74321
  if (!dislikeMessageAppDEActionId)
74158
- throw new RuntimeError63("dislikeMessageAppDEActionId is null");
74322
+ throw new RuntimeError64("dislikeMessageAppDEActionId is null");
74159
74323
  const messageService = await this.getMessageService(context);
74160
74324
  if (!messageService)
74161
- throw new RuntimeError63("messageService is null");
74325
+ throw new RuntimeError64("messageService is null");
74162
74326
  const tempContext = context.clone();
74163
74327
  tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
74164
74328
  await messageService.exec(
@@ -74183,10 +74347,10 @@ var AIUtilService = class {
74183
74347
  return false;
74184
74348
  const { cancelFeedbackMessageAppDEActionId } = this.utilParams;
74185
74349
  if (!cancelFeedbackMessageAppDEActionId)
74186
- throw new RuntimeError63("cancelFeedbackAppDEActionId is null");
74350
+ throw new RuntimeError64("cancelFeedbackAppDEActionId is null");
74187
74351
  const messageService = await this.getMessageService(context);
74188
74352
  if (!messageService)
74189
- throw new RuntimeError63("messageService is null");
74353
+ throw new RuntimeError64("messageService is null");
74190
74354
  const tempContext = context.clone();
74191
74355
  tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
74192
74356
  await messageService.exec(
@@ -74550,7 +74714,7 @@ var CollaborateService = class {
74550
74714
  };
74551
74715
 
74552
74716
  // src/service/de-service-util.ts
74553
- import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
74717
+ import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
74554
74718
  var _DEServiceUtil = class _DEServiceUtil {
74555
74719
  /**
74556
74720
  * Creates an instance of DEServiceUtil.
@@ -74684,7 +74848,7 @@ var _DEServiceUtil = class _DEServiceUtil {
74684
74848
  appid || this.appModel.appId
74685
74849
  );
74686
74850
  if (!entityModel) {
74687
- throw new RuntimeError64(ibiz.i18n.t("runtime.service.noFound", { id }));
74851
+ throw new RuntimeError65(ibiz.i18n.t("runtime.service.noFound", { id }));
74688
74852
  }
74689
74853
  const constructor = _DEServiceUtil.constructorCache.get(id.toUpperCase());
74690
74854
  let service;
@@ -75040,7 +75204,7 @@ var CustomThemeUtil = class {
75040
75204
  ibiz.i18n.t("runtime.controller.utils.customThemeUtil.saveSuccess")
75041
75205
  );
75042
75206
  } else {
75043
- throw new RuntimeError65(
75207
+ throw new RuntimeError66(
75044
75208
  ibiz.i18n.t("runtime.controller.utils.customThemeUtil.saveError")
75045
75209
  );
75046
75210
  }
@@ -75069,7 +75233,7 @@ var CustomThemeUtil = class {
75069
75233
  ibiz.i18n.t("runtime.controller.utils.customThemeUtil.resetSuccess")
75070
75234
  );
75071
75235
  } else {
75072
- throw new RuntimeError65(
75236
+ throw new RuntimeError66(
75073
75237
  ibiz.i18n.t("runtime.controller.utils.customThemeUtil.resetError")
75074
75238
  );
75075
75239
  }
@@ -77433,7 +77597,7 @@ var AnimeUtil = class {
77433
77597
  // src/utils/file-util/file-util.ts
77434
77598
  import {
77435
77599
  CoreConst as CoreConst3,
77436
- RuntimeError as RuntimeError66,
77600
+ RuntimeError as RuntimeError67,
77437
77601
  downloadFileFromBlob as downloadFileFromBlob2,
77438
77602
  getAppCookie as getAppCookie2
77439
77603
  } from "@ibiz-template/core";
@@ -77803,7 +77967,7 @@ var FileUtil = class {
77803
77967
  downloadTicketParams
77804
77968
  );
77805
77969
  if (!downloadTicket) {
77806
- throw new RuntimeError66(
77970
+ throw new RuntimeError67(
77807
77971
  "runtime.utils.fileUtil.getDownloadTicketFailed"
77808
77972
  );
77809
77973
  }
@@ -77816,10 +77980,10 @@ var FileUtil = class {
77816
77980
  // 已经有baseURL了,这里无需再写
77817
77981
  });
77818
77982
  if (response.status !== 200) {
77819
- throw new RuntimeError66(ibiz.i18n.t("runtime.platform.failedDownload"));
77983
+ throw new RuntimeError67(ibiz.i18n.t("runtime.platform.failedDownload"));
77820
77984
  }
77821
77985
  if (!response.data) {
77822
- throw new RuntimeError66(ibiz.i18n.t("runtime.platform.fileStreamData"));
77986
+ throw new RuntimeError67(ibiz.i18n.t("runtime.platform.fileStreamData"));
77823
77987
  } else {
77824
77988
  let fileName = ibiz.util.file.getFileName(response);
77825
77989
  if (name2)
@@ -77845,7 +78009,7 @@ var FileUtil = class {
77845
78009
  data: formData
77846
78010
  });
77847
78011
  if (res.status !== 200) {
77848
- throw new RuntimeError66(
78012
+ throw new RuntimeError67(
77849
78013
  ibiz.i18n.t("runtime.utils.fileUtil.fileUploadFailed")
77850
78014
  );
77851
78015
  }
@@ -77995,7 +78159,7 @@ var FileUtil = class {
77995
78159
  downloadTicketParams
77996
78160
  );
77997
78161
  if (!downloadTicket) {
77998
- throw new RuntimeError66(
78162
+ throw new RuntimeError67(
77999
78163
  "runtime.utils.fileUtil.getDownloadTicketFailed"
78000
78164
  );
78001
78165
  }
@@ -78008,10 +78172,10 @@ var FileUtil = class {
78008
78172
  // 已经有 baseURL,不需要再写
78009
78173
  });
78010
78174
  if (response.status !== 200) {
78011
- throw new RuntimeError66(ibiz.i18n.t("runtime.platform.failedDownload"));
78175
+ throw new RuntimeError67(ibiz.i18n.t("runtime.platform.failedDownload"));
78012
78176
  }
78013
78177
  if (!response.data) {
78014
- throw new RuntimeError66(ibiz.i18n.t("runtime.platform.fileStreamData"));
78178
+ throw new RuntimeError67(ibiz.i18n.t("runtime.platform.fileStreamData"));
78015
78179
  }
78016
78180
  return response.data;
78017
78181
  }
@@ -78207,7 +78371,7 @@ var ShortCutUtil = class {
78207
78371
 
78208
78372
  // src/utils/bi-report-util/bi-report-util.ts
78209
78373
  import { clone as clone57 } from "ramda";
78210
- import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
78374
+ import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
78211
78375
  var BIReportUtil = class {
78212
78376
  /**
78213
78377
  * 打开设计界面
@@ -78244,7 +78408,7 @@ var BIReportUtil = class {
78244
78408
  }
78245
78409
  }
78246
78410
  } catch (error) {
78247
- throw new RuntimeError67(error.message);
78411
+ throw new RuntimeError68(error.message);
78248
78412
  }
78249
78413
  } else if (data.mode === "UI") {
78250
78414
  config = this.translateReportPanelToConfig(data.reportPanel.model);
@@ -78640,7 +78804,7 @@ var BIReportUtil = class {
78640
78804
  };
78641
78805
 
78642
78806
  // src/utils/record-nav-util/record-nav-util.ts
78643
- import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
78807
+ import { RuntimeError as RuntimeError69 } from "@ibiz-template/core";
78644
78808
  import { createUUID as createUUID24 } from "qx-util";
78645
78809
  var RecordNavUtil = class {
78646
78810
  constructor() {
@@ -78747,7 +78911,7 @@ var RecordNavUtil = class {
78747
78911
  async getFirstRecord(ctrlId, dataId) {
78748
78912
  const targrtCtrl = this.getCtrl(ctrlId);
78749
78913
  if (!targrtCtrl) {
78750
- throw new RuntimeError68(
78914
+ throw new RuntimeError69(
78751
78915
  ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
78752
78916
  ctrlId
78753
78917
  })
@@ -78778,7 +78942,7 @@ var RecordNavUtil = class {
78778
78942
  async getPreviousRecord(ctrlId, dataId) {
78779
78943
  const targrtCtrl = this.getCtrl(ctrlId);
78780
78944
  if (!targrtCtrl) {
78781
- throw new RuntimeError68(
78945
+ throw new RuntimeError69(
78782
78946
  ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
78783
78947
  ctrlId
78784
78948
  })
@@ -78817,7 +78981,7 @@ var RecordNavUtil = class {
78817
78981
  async getNextRecord(ctrlId, dataId) {
78818
78982
  const targrtCtrl = this.getCtrl(ctrlId);
78819
78983
  if (!targrtCtrl) {
78820
- throw new RuntimeError68(
78984
+ throw new RuntimeError69(
78821
78985
  ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
78822
78986
  ctrlId
78823
78987
  })
@@ -78869,7 +79033,7 @@ var RecordNavUtil = class {
78869
79033
  async getLastRecord(ctrlId, dataId) {
78870
79034
  const targrtCtrl = this.getCtrl(ctrlId);
78871
79035
  if (!targrtCtrl) {
78872
- throw new RuntimeError68(
79036
+ throw new RuntimeError69(
78873
79037
  ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
78874
79038
  ctrlId
78875
79039
  })
@@ -79410,7 +79574,7 @@ var Html2Canvas = class {
79410
79574
  };
79411
79575
 
79412
79576
  // src/utils/voice-util/voice-util.ts
79413
- import { RuntimeError as RuntimeError69 } from "@ibiz-template/core";
79577
+ import { RuntimeError as RuntimeError70 } from "@ibiz-template/core";
79414
79578
  var VoiceUtil = class {
79415
79579
  /**
79416
79580
  * 文字转语音
@@ -79446,7 +79610,7 @@ var VoiceUtil = class {
79446
79610
  * @date 2024-12-20 15:07:31
79447
79611
  */
79448
79612
  speechToText() {
79449
- throw new RuntimeError69(ibiz.i18n.t("runtime.common.unrealized"));
79613
+ throw new RuntimeError70(ibiz.i18n.t("runtime.common.unrealized"));
79450
79614
  }
79451
79615
  };
79452
79616
 
@@ -84682,8 +84846,84 @@ function stringifyObj(obj) {
84682
84846
  });
84683
84847
  }
84684
84848
 
84849
+ // src/utils/model/index.ts
84850
+ import { isBase64, isBase64Image as isBase64Image2, isSvg } from "@ibiz-template/core";
84851
+ async function calcDynamicMenu(menu, context, params) {
84852
+ const {
84853
+ appId: appId2,
84854
+ dynamicMode,
84855
+ clsAppDEFieldId,
84856
+ textAppDEFieldId,
84857
+ tipsAppDEFieldId,
84858
+ itemAppDEDataSetId,
84859
+ iconClsAppDEFieldId,
84860
+ itemAppDataEntityId,
84861
+ appFuncTagAppDEFieldId,
84862
+ enableScriptAppDEFieldId,
84863
+ visibleScriptAppDEFieldId
84864
+ } = menu;
84865
+ if (dynamicMode !== 1 || !itemAppDataEntityId || !itemAppDEDataSetId)
84866
+ return;
84867
+ try {
84868
+ const app = ibiz.hub.getApp(appId2);
84869
+ const res = await app.deService.exec(
84870
+ itemAppDataEntityId,
84871
+ itemAppDEDataSetId,
84872
+ context,
84873
+ params
84874
+ );
84875
+ if (res.ok && res.data && Array.isArray(res.data)) {
84876
+ if (!menu.appMenuItems)
84877
+ menu.appMenuItems = [];
84878
+ res.data.forEach((item) => {
84879
+ const menuItem = {
84880
+ appId: appId2,
84881
+ id: item.srfkey,
84882
+ name: item.srfkey,
84883
+ itemType: "MENUITEM",
84884
+ appFuncId: appFuncTagAppDEFieldId ? item[appFuncTagAppDEFieldId] : void 0,
84885
+ caption: textAppDEFieldId ? item[textAppDEFieldId] : item.srfmajortext,
84886
+ tooltip: tipsAppDEFieldId ? item[tipsAppDEFieldId] : item.srfmajortext
84887
+ };
84888
+ if (clsAppDEFieldId && item[clsAppDEFieldId])
84889
+ menuItem.sysCss = { appId: appId2, cssName: item[clsAppDEFieldId] };
84890
+ if (iconClsAppDEFieldId && item[iconClsAppDEFieldId]) {
84891
+ const icon = item[iconClsAppDEFieldId];
84892
+ const imagePath = isBase64Image2(icon) || isBase64(icon) || isSvg(icon) || icon.endsWith("svg") || icon.startsWith("http");
84893
+ menuItem.sysImage = {
84894
+ appId: appId2,
84895
+ [imagePath ? "imagePath" : "cssClass"]: icon
84896
+ };
84897
+ }
84898
+ let visible = true;
84899
+ if (visibleScriptAppDEFieldId && item[visibleScriptAppDEFieldId]) {
84900
+ visible = ScriptFactory.execScriptFn(
84901
+ { context, params },
84902
+ item[visibleScriptAppDEFieldId],
84903
+ { singleRowReturn: true }
84904
+ );
84905
+ }
84906
+ menuItem.hidden = !visible;
84907
+ let enable = true;
84908
+ if (enableScriptAppDEFieldId && item[enableScriptAppDEFieldId]) {
84909
+ enable = ScriptFactory.execScriptFn(
84910
+ { context, params },
84911
+ item[enableScriptAppDEFieldId],
84912
+ { singleRowReturn: true }
84913
+ );
84914
+ }
84915
+ menuItem.valid = enable;
84916
+ if (visible)
84917
+ menu.appMenuItems.push(menuItem);
84918
+ });
84919
+ }
84920
+ } catch (error) {
84921
+ ibiz.log.error(error);
84922
+ }
84923
+ }
84924
+
84685
84925
  // src/command/app/open-app-view/open-app-view.ts
84686
- import { ModelError as ModelError30, RuntimeError as RuntimeError70 } from "@ibiz-template/core";
84926
+ import { ModelError as ModelError30, RuntimeError as RuntimeError71 } from "@ibiz-template/core";
84687
84927
  import { clone as clone59 } from "ramda";
84688
84928
  var _OpenAppViewCommand = class _OpenAppViewCommand {
84689
84929
  constructor() {
@@ -84707,7 +84947,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
84707
84947
  }
84708
84948
  const appView = await ibiz.hub.config.view.get(appViewId);
84709
84949
  if (!appView) {
84710
- throw new RuntimeError70(
84950
+ throw new RuntimeError71(
84711
84951
  ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
84712
84952
  appViewId
84713
84953
  })
@@ -84837,7 +85077,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
84837
85077
  async openPopover(appView, context, params = {}, opts = {}) {
84838
85078
  const { event, modalOption } = opts;
84839
85079
  if (!event) {
84840
- throw new RuntimeError70(ibiz.i18n.t("runtime.command.app.missingEvent"));
85080
+ throw new RuntimeError71(ibiz.i18n.t("runtime.command.app.missingEvent"));
84841
85081
  }
84842
85082
  if (opts.parentData) {
84843
85083
  params.parentData = stringifyObj(opts.parentData);
@@ -84921,7 +85161,7 @@ var _AppFuncCommand = class _AppFuncCommand {
84921
85161
  const app = await ibiz.hub.getAppAsync(context.srfappid);
84922
85162
  const appFunc = app.getAppFunc(appFuncId);
84923
85163
  if (!appFunc) {
84924
- throw new RuntimeError71(
85164
+ throw new RuntimeError72(
84925
85165
  ibiz.i18n.t("runtime.command.app.noFindApplicationFunction", {
84926
85166
  appFuncId
84927
85167
  })
@@ -84967,7 +85207,7 @@ var _AppFuncCommand = class _AppFuncCommand {
84967
85207
  */
84968
85208
  async openAppView(appFunc, context, params, opts) {
84969
85209
  if (!appFunc.appViewId) {
84970
- throw new RuntimeError71(
85210
+ throw new RuntimeError72(
84971
85211
  ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
84972
85212
  appViewId: appFunc.appViewId
84973
85213
  })
@@ -85005,7 +85245,7 @@ var _AppFuncCommand = class _AppFuncCommand {
85005
85245
  */
85006
85246
  openPdAppFunc(appFunc, context, params) {
85007
85247
  ibiz.log.warn("openPdAppFunc", appFunc, context, params);
85008
- throw new RuntimeError71(ibiz.i18n.t("runtime.common.unrealized"));
85248
+ throw new RuntimeError72(ibiz.i18n.t("runtime.common.unrealized"));
85009
85249
  }
85010
85250
  /**
85011
85251
  * 执行 JavaScript 脚本
@@ -85057,7 +85297,7 @@ var _AppFuncCommand = class _AppFuncCommand {
85057
85297
  */
85058
85298
  custom(appFunc, context, params) {
85059
85299
  ibiz.log.warn("custom", appFunc, context, params);
85060
- throw new RuntimeError71(ibiz.i18n.t("runtime.common.unrealized"));
85300
+ throw new RuntimeError72(ibiz.i18n.t("runtime.common.unrealized"));
85061
85301
  }
85062
85302
  };
85063
85303
  /**
@@ -85078,7 +85318,7 @@ function installCommand() {
85078
85318
  }
85079
85319
 
85080
85320
  // src/app-hub.ts
85081
- import { getToken as getToken2, RuntimeError as RuntimeError73 } from "@ibiz-template/core";
85321
+ import { getToken as getToken2, RuntimeError as RuntimeError74 } from "@ibiz-template/core";
85082
85322
 
85083
85323
  // src/application.ts
85084
85324
  import { Net } from "@ibiz-template/core";
@@ -85400,7 +85640,7 @@ var Convert = class {
85400
85640
  };
85401
85641
 
85402
85642
  // src/hub/config/app-view-config-service.ts
85403
- import { RuntimeError as RuntimeError72 } from "@ibiz-template/core";
85643
+ import { RuntimeError as RuntimeError73 } from "@ibiz-template/core";
85404
85644
  var AppViewConfigService = class {
85405
85645
  constructor() {
85406
85646
  /**
@@ -85495,7 +85735,7 @@ var AppViewConfigService = class {
85495
85735
  if (!this.viewConfigs.has(id)) {
85496
85736
  const model = await ibiz.hub.getAppView(id);
85497
85737
  if (!model) {
85498
- throw new RuntimeError72(ibiz.i18n.t("runtime.hub.noExist", { id }));
85738
+ throw new RuntimeError73(ibiz.i18n.t("runtime.hub.noExist", { id }));
85499
85739
  }
85500
85740
  this.set(model.id, {
85501
85741
  id: model.id,
@@ -86525,7 +86765,7 @@ var AppHub = class {
86525
86765
  this.registerAppView(appView);
86526
86766
  return appView;
86527
86767
  }
86528
- throw new RuntimeError73(ibiz.i18n.t("runtime.hub.noExist", { id }));
86768
+ throw new RuntimeError74(ibiz.i18n.t("runtime.hub.noExist", { id }));
86529
86769
  }
86530
86770
  /**
86531
86771
  * 根据DrControl的名称和子应用标识获取模型
@@ -86633,7 +86873,7 @@ var AppHub = class {
86633
86873
  );
86634
86874
  return model;
86635
86875
  }
86636
- throw new RuntimeError73(
86876
+ throw new RuntimeError74(
86637
86877
  ibiz.i18n.t("runtime.hub.noExist", { id: modelPath })
86638
86878
  );
86639
86879
  }
@@ -86676,7 +86916,7 @@ var AppHub = class {
86676
86916
  this.registerAppDataEntity(entity, appId2);
86677
86917
  return entity;
86678
86918
  }
86679
- throw new RuntimeError73(ibiz.i18n.t("runtime.service.noFound", { id }));
86919
+ throw new RuntimeError74(ibiz.i18n.t("runtime.service.noFound", { id }));
86680
86920
  }
86681
86921
  /**
86682
86922
  * 根据代码表标识获取子应用代码表
@@ -86703,7 +86943,7 @@ var AppHub = class {
86703
86943
  return this.appMap.get(id);
86704
86944
  }
86705
86945
  if (!this.modelLoaderProvider) {
86706
- throw new RuntimeError73(ibiz.i18n.t("runtime.utils.firstregister"));
86946
+ throw new RuntimeError74(ibiz.i18n.t("runtime.utils.firstregister"));
86707
86947
  }
86708
86948
  const appModel = await this.modelLoaderProvider.getApp(id);
86709
86949
  const subAppRef = await this.modelLoaderProvider.getSubAppRef(id);
@@ -86843,7 +87083,7 @@ var AppHub = class {
86843
87083
  */
86844
87084
  mergeSubAppCodeList(codeList) {
86845
87085
  if (!this.modelLoaderProvider) {
86846
- throw new RuntimeError73(ibiz.i18n.t("runtime.utils.firstregister"));
87086
+ throw new RuntimeError74(ibiz.i18n.t("runtime.utils.firstregister"));
86847
87087
  }
86848
87088
  this.modelLoaderProvider.mergeSubAppCodeList(codeList);
86849
87089
  }
@@ -86945,7 +87185,7 @@ var EngineFactory = class {
86945
87185
 
86946
87186
  // src/engine/view-base.engine.ts
86947
87187
  import {
86948
- RuntimeError as RuntimeError74,
87188
+ RuntimeError as RuntimeError75,
86949
87189
  findRecursiveChild as findRecursiveChild3,
86950
87190
  IBizContext as IBizContext10
86951
87191
  } from "@ibiz-template/core";
@@ -87421,7 +87661,7 @@ var ViewEngineBase = class {
87421
87661
  const { appDataEntityId } = this.view.model;
87422
87662
  const { evt, context, params } = this.view;
87423
87663
  if (!appDataEntityId) {
87424
- throw new RuntimeError74(ibiz.i18n.t("runtime.engine.loadEntityData"));
87664
+ throw new RuntimeError75(ibiz.i18n.t("runtime.engine.loadEntityData"));
87425
87665
  }
87426
87666
  const app = ibiz.hub.getApp(context.srfappid);
87427
87667
  const res = await app.deService.exec(
@@ -87502,7 +87742,7 @@ var ViewEngineBase = class {
87502
87742
  };
87503
87743
 
87504
87744
  // src/engine/md-view.engine.ts
87505
- import { RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
87745
+ import { RuntimeModelError as RuntimeModelError71 } from "@ibiz-template/core";
87506
87746
  import { clone as clone61 } from "ramda";
87507
87747
  var MDViewEngine = class extends ViewEngineBase {
87508
87748
  /**
@@ -87754,7 +87994,7 @@ var MDViewEngine = class extends ViewEngineBase {
87754
87994
  view: this.view
87755
87995
  }));
87756
87996
  if (result === -1) {
87757
- throw new RuntimeModelError72(
87997
+ throw new RuntimeModelError71(
87758
87998
  this.view.model,
87759
87999
  ibiz.i18n.t("runtime.engine.logicOpendata")
87760
88000
  );
@@ -87786,7 +88026,7 @@ var MDViewEngine = class extends ViewEngineBase {
87786
88026
  (item) => item.id === "newdata"
87787
88027
  );
87788
88028
  if (!openAppViewLogic) {
87789
- throw new RuntimeModelError72(
88029
+ throw new RuntimeModelError71(
87790
88030
  this.view.model,
87791
88031
  ibiz.i18n.t("runtime.engine.logicNewdata")
87792
88032
  );
@@ -87806,7 +88046,7 @@ var MDViewEngine = class extends ViewEngineBase {
87806
88046
  view: this.view
87807
88047
  }));
87808
88048
  if (result === -1) {
87809
- throw new RuntimeModelError72(
88049
+ throw new RuntimeModelError71(
87810
88050
  this.view.model,
87811
88051
  ibiz.i18n.t("runtime.engine.logicNewdata")
87812
88052
  );
@@ -88538,7 +88778,7 @@ var gBase64 = {
88538
88778
  };
88539
88779
 
88540
88780
  // src/global/global-util/global-util.ts
88541
- import { RuntimeError as RuntimeError75 } from "@ibiz-template/core";
88781
+ import { RuntimeError as RuntimeError76 } from "@ibiz-template/core";
88542
88782
  var GlobalUtil = class {
88543
88783
  constructor() {
88544
88784
  /**
@@ -88684,7 +88924,7 @@ var GlobalUtil = class {
88684
88924
  * @memberof GlobalUtil
88685
88925
  */
88686
88926
  getGlobalParam() {
88687
- throw new RuntimeError75(ibiz.i18n.t("runtime.global.noImplemented"));
88927
+ throw new RuntimeError76(ibiz.i18n.t("runtime.global.noImplemented"));
88688
88928
  }
88689
88929
  /**
88690
88930
  * @description 获取视图路由参数变量,数组类型,基于路由解析出来的,每一个对象里面都有context和params
@@ -88692,7 +88932,7 @@ var GlobalUtil = class {
88692
88932
  * @memberof GlobalUtil
88693
88933
  */
88694
88934
  getRouterParams() {
88695
- throw new RuntimeError75(ibiz.i18n.t("runtime.global.noImplementedRouting"));
88935
+ throw new RuntimeError76(ibiz.i18n.t("runtime.global.noImplementedRouting"));
88696
88936
  }
88697
88937
  /**
88698
88938
  * @description 注册全局功能类扩展,用于替换预置能力
@@ -88707,7 +88947,7 @@ var GlobalUtil = class {
88707
88947
  };
88708
88948
 
88709
88949
  // src/logic-scheduler/executor/logic-executor.ts
88710
- import { RuntimeError as RuntimeError76 } from "@ibiz-template/core";
88950
+ import { RuntimeError as RuntimeError77 } from "@ibiz-template/core";
88711
88951
  var LogicExecutor = class {
88712
88952
  /**
88713
88953
  * @author lxm
@@ -88728,7 +88968,7 @@ var LogicExecutor = class {
88728
88968
  */
88729
88969
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
88730
88970
  execute(_executeParams) {
88731
- throw new RuntimeError76(
88971
+ throw new RuntimeError77(
88732
88972
  ibiz.i18n.t("runtime.logicScheduler.executor.noImplementedMethod")
88733
88973
  );
88734
88974
  }
@@ -88815,24 +89055,33 @@ var ScriptExecutor = class extends LogicExecutor {
88815
89055
  init(paramKeys, convertFun, options) {
88816
89056
  this.convertScriptArgs = convertFun;
88817
89057
  const code = this.logic.scriptCode;
88818
- this.scriptFn = ScriptFactory.createScriptFn(paramKeys, code, options);
89058
+ try {
89059
+ this.scriptFn = ScriptFactory.createScriptFn(paramKeys, code, options);
89060
+ } catch (error) {
89061
+ ibiz.log.error(
89062
+ ibiz.i18n.t("runtime.utils.script.errorReportingScript"),
89063
+ code
89064
+ );
89065
+ }
88819
89066
  this.initialized = true;
88820
89067
  }
88821
89068
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
88822
89069
  execute(executeParams) {
88823
89070
  const scriptArgs = this.convertScriptArgs(executeParams);
88824
- return this.scriptFn.exec(scriptArgs);
89071
+ if (this.scriptFn) {
89072
+ return this.scriptFn.exec(scriptArgs);
89073
+ }
88825
89074
  }
88826
89075
  };
88827
89076
 
88828
89077
  // src/logic-scheduler/executor/app-de-ui-logic-executor.ts
88829
- import { RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
89078
+ import { RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
88830
89079
  var AppDEUILogicExecutor = class extends LogicExecutor {
88831
89080
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
88832
89081
  execute(executeParams) {
88833
89082
  const { appDEUILogicId, appDataEntityId } = this.logic;
88834
89083
  if (!appDEUILogicId) {
88835
- throw new RuntimeModelError73(
89084
+ throw new RuntimeModelError72(
88836
89085
  this.logic,
88837
89086
  ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
88838
89087
  );
@@ -89198,7 +89447,7 @@ var LogicSchedulerCenter = class {
89198
89447
  };
89199
89448
 
89200
89449
  // src/logic-scheduler/trigger/logic-trigger.ts
89201
- import { RuntimeError as RuntimeError77 } from "@ibiz-template/core";
89450
+ import { RuntimeError as RuntimeError78 } from "@ibiz-template/core";
89202
89451
  var LogicTrigger = class {
89203
89452
  /**
89204
89453
  * @author lxm
@@ -89259,7 +89508,7 @@ var LogicTrigger = class {
89259
89508
  if (this.executor) {
89260
89509
  return this.executor.execute(executeParams);
89261
89510
  }
89262
- throw new RuntimeError77(
89511
+ throw new RuntimeError78(
89263
89512
  ibiz.i18n.t("runtime.logicScheduler.trigger.noExecutorBound", {
89264
89513
  id: this.logic.id
89265
89514
  })
@@ -89280,12 +89529,12 @@ var CustomTrigger = class extends LogicTrigger {
89280
89529
  };
89281
89530
 
89282
89531
  // src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
89283
- import { RuntimeError as RuntimeError78 } from "@ibiz-template/core";
89532
+ import { RuntimeError as RuntimeError79 } from "@ibiz-template/core";
89284
89533
  var ItemDynaLogicTrigger = class extends LogicTrigger {
89285
89534
  bindExecutor(executor) {
89286
89535
  super.bindExecutor(executor);
89287
89536
  if (this.executor.type !== "SCRIPT") {
89288
- throw new RuntimeError78(
89537
+ throw new RuntimeError79(
89289
89538
  ibiz.i18n.t("runtime.logicScheduler.trigger.triggerType")
89290
89539
  );
89291
89540
  }
@@ -89323,7 +89572,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
89323
89572
  };
89324
89573
 
89325
89574
  // src/logic-scheduler/trigger/timer-trigger.ts
89326
- import { RuntimeError as RuntimeError79, RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
89575
+ import { RuntimeError as RuntimeError80, RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
89327
89576
  var TimerTrigger = class extends LogicTrigger {
89328
89577
  constructor() {
89329
89578
  super(...arguments);
@@ -89331,14 +89580,14 @@ var TimerTrigger = class extends LogicTrigger {
89331
89580
  }
89332
89581
  start() {
89333
89582
  if (!this.logic.timer) {
89334
- throw new RuntimeModelError74(
89583
+ throw new RuntimeModelError73(
89335
89584
  this.logic,
89336
89585
  ibiz.i18n.t("runtime.logicScheduler.trigger.timerLacks")
89337
89586
  );
89338
89587
  }
89339
89588
  this.timer = setInterval(() => {
89340
89589
  if (!this.scheduler.defaultParamsCb) {
89341
- throw new RuntimeError79(
89590
+ throw new RuntimeError80(
89342
89591
  ibiz.i18n.t("runtime.logicScheduler.trigger.parameterCallback")
89343
89592
  );
89344
89593
  }
@@ -89370,8 +89619,8 @@ var TimerTrigger = class extends LogicTrigger {
89370
89619
  // src/logic-scheduler/executor/app-ui-logic-executor.ts
89371
89620
  import {
89372
89621
  ModelError as ModelError34,
89373
- RuntimeError as RuntimeError80,
89374
- RuntimeModelError as RuntimeModelError75
89622
+ RuntimeError as RuntimeError81,
89623
+ RuntimeModelError as RuntimeModelError74
89375
89624
  } from "@ibiz-template/core";
89376
89625
  import { notNilEmpty as notNilEmpty11 } from "qx-util";
89377
89626
  var AppUILogicExecutor = class extends LogicExecutor {
@@ -89408,7 +89657,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89408
89657
  const { context, params, ...rest } = parameters;
89409
89658
  const { data, view } = parameters;
89410
89659
  if (!(data == null ? void 0 : data[0])) {
89411
- throw new RuntimeError80(
89660
+ throw new RuntimeError81(
89412
89661
  ibiz.i18n.t("runtime.logicScheduler.executor.noActionableData")
89413
89662
  );
89414
89663
  }
@@ -89419,7 +89668,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89419
89668
  } else {
89420
89669
  openViewRef = appUILogic.openDataAppView;
89421
89670
  if (!openViewRef) {
89422
- throw new RuntimeModelError75(
89671
+ throw new RuntimeModelError74(
89423
89672
  appUILogic,
89424
89673
  ibiz.i18n.t(
89425
89674
  "runtime.logicScheduler.executor.defaultOpendataViewLogic"
@@ -89429,7 +89678,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89429
89678
  }
89430
89679
  const openView = openViewRef.refAppViewId;
89431
89680
  if (!openView) {
89432
- throw new RuntimeModelError75(
89681
+ throw new RuntimeModelError74(
89433
89682
  appUILogic,
89434
89683
  ibiz.i18n.t("runtime.logicScheduler.executor.noActuallyReference")
89435
89684
  );
@@ -89467,7 +89716,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89467
89716
  );
89468
89717
  const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
89469
89718
  if (!typeFileName) {
89470
- throw new RuntimeModelError75(
89719
+ throw new RuntimeModelError74(
89471
89720
  appUILogic,
89472
89721
  ibiz.i18n.t("runtime.logicScheduler.executor.attributeConfiguration", {
89473
89722
  codeName: appDataEntity.codeName
@@ -89477,7 +89726,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89477
89726
  const { data } = parameters;
89478
89727
  const formTypeValue = data[0][typeFileName];
89479
89728
  if (!formTypeValue) {
89480
- throw new RuntimeModelError75(
89729
+ throw new RuntimeModelError74(
89481
89730
  appUILogic,
89482
89731
  ibiz.i18n.t("runtime.logicScheduler.executor.entityAttributeValues")
89483
89732
  );
@@ -89485,7 +89734,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89485
89734
  const openViewRefs = appUILogic.openDataAppViews;
89486
89735
  const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
89487
89736
  if (!findView) {
89488
- throw new RuntimeError80(
89737
+ throw new RuntimeError81(
89489
89738
  ibiz.i18n.t("runtime.logicScheduler.executor.editViews", {
89490
89739
  formTypeValue
89491
89740
  })
@@ -89524,7 +89773,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89524
89773
  return viewRef.refMode.toLowerCase() !== parentDeName;
89525
89774
  });
89526
89775
  if (!newViewRef) {
89527
- throw new RuntimeModelError75(
89776
+ throw new RuntimeModelError74(
89528
89777
  appUILogic,
89529
89778
  ibiz.i18n.t("runtime.logicScheduler.executor.selectionView")
89530
89779
  );
@@ -89537,7 +89786,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89537
89786
  } else {
89538
89787
  newViewRef = newDataAppView;
89539
89788
  if (!newViewRef || !newViewRef.refAppViewId) {
89540
- throw new RuntimeModelError75(
89789
+ throw new RuntimeModelError74(
89541
89790
  appUILogic,
89542
89791
  ibiz.i18n.t("runtime.logicScheduler.executor.newdataViewLogic")
89543
89792
  );
@@ -89610,7 +89859,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89610
89859
  const { context, params, ...rest } = parameters;
89611
89860
  const { view } = parameters;
89612
89861
  if (!wizardAppView || !wizardAppView.refAppViewId) {
89613
- throw new RuntimeModelError75(
89862
+ throw new RuntimeModelError74(
89614
89863
  appUILogic,
89615
89864
  ibiz.i18n.t("runtime.logicScheduler.executor.indexEntity")
89616
89865
  );
@@ -89627,7 +89876,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89627
89876
  }
89628
89877
  const selectData = (_a3 = result.data) == null ? void 0 : _a3[0];
89629
89878
  if (!selectData) {
89630
- throw new RuntimeError80(
89879
+ throw new RuntimeError81(
89631
89880
  ibiz.i18n.t("runtime.logicScheduler.executor.checkOne")
89632
89881
  );
89633
89882
  }
@@ -89639,7 +89888,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89639
89888
  }
89640
89889
  );
89641
89890
  if (!findView) {
89642
- throw new RuntimeError80(
89891
+ throw new RuntimeError81(
89643
89892
  ibiz.i18n.t("runtime.logicScheduler.executor.entitiesAssociated", {
89644
89893
  indexType
89645
89894
  })
@@ -89668,7 +89917,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89668
89917
  const minorDERs = selfDe.minorAppDERSs;
89669
89918
  const pickParentDeName = newViewRef.refMode.toLowerCase();
89670
89919
  if (!minorDERs) {
89671
- throw new RuntimeModelError75(
89920
+ throw new RuntimeModelError74(
89672
89921
  selfDe,
89673
89922
  ibiz.i18n.t("runtime.logicScheduler.executor.relationships")
89674
89923
  );
@@ -89681,7 +89930,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89681
89930
  }
89682
89931
  });
89683
89932
  if (pickParentFieldName === void 0) {
89684
- throw new RuntimeError80(
89933
+ throw new RuntimeError81(
89685
89934
  ibiz.i18n.t("runtime.logicScheduler.executor.foreignKey", {
89686
89935
  pickParentDeName
89687
89936
  })
@@ -89779,12 +90028,12 @@ var ControlEventTrigger = class extends LogicTrigger {
89779
90028
  };
89780
90029
 
89781
90030
  // src/logic-scheduler/executor/app-ui-action-executor.ts
89782
- import { RuntimeModelError as RuntimeModelError76 } from "@ibiz-template/core";
90031
+ import { RuntimeModelError as RuntimeModelError75 } from "@ibiz-template/core";
89783
90032
  var AppDEUIActionExecutor = class extends LogicExecutor {
89784
90033
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
89785
90034
  execute(executeParams) {
89786
90035
  if (!this.logic.appDEUIActionId) {
89787
- throw new RuntimeModelError76(
90036
+ throw new RuntimeModelError75(
89788
90037
  this.logic,
89789
90038
  ibiz.i18n.t("runtime.logicScheduler.executor.missingTrigger")
89790
90039
  );
@@ -90378,6 +90627,7 @@ var en = {
90378
90627
  adapter: "Cannot find the adapter corresponding to the system counter plugin {pluginKey}.",
90379
90628
  customizedSystemAdapter: "Cannot find the adapter corresponding to the customized system counter {codeName}.",
90380
90629
  noFoundSystemCounter: "Adapter for system counter type {counterType} is not found.",
90630
+ noFoundAppFuncBlock: "Cannot find the default adapter for the application function block.",
90381
90631
  applicationMenu: "Cannot find the adapter corresponding to the application menu item plugin {pluginKey}.",
90382
90632
  asynchronousAction: "Find the adapter that does not correspond to the asynchronous action type {actiontype}.",
90383
90633
  matchedPlugin: "Not matched to plugin [{pluginId}] model",
@@ -91060,6 +91310,7 @@ var zhCn = {
91060
91310
  adapter: "\u627E\u4E0D\u5230\u7CFB\u7EDF\u8BA1\u6570\u5668\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91061
91311
  customizedSystemAdapter: "\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u7CFB\u7EDF\u8BA1\u6570\u5668{codeName}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91062
91312
  noFoundSystemCounter: "\u627E\u4E0D\u7CFB\u7EDF\u8BA1\u6570\u5668\u7C7B\u578B{counterType}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91313
+ noFoundAppFuncBlock: "\u627E\u4E0D\u5230\u5E94\u7528\u529F\u80FD\u5757\u9ED8\u8BA4\u9002\u914D\u5668",
91063
91314
  applicationMenu: "\u627E\u4E0D\u5230\u5E94\u7528\u83DC\u5355\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91064
91315
  asynchronousAction: "\u627E\u4E0D\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B{actiontype}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91065
91316
  matchedPlugin: "\u672A\u5339\u914D\u5230\u63D2\u4EF6[{pluginId}]\u6A21\u578B",
@@ -91338,6 +91589,7 @@ export {
91338
91589
  AIUtilService,
91339
91590
  APPMENUITEM_PROVIDER_PREFIX,
91340
91591
  APP_COUNTER_PROVIDER_PREFIX,
91592
+ APP_FUNC_BLOCK_PROVIDER_PREFIX,
91341
91593
  ASYNC_ACTION_PROVIDER_PREFIX,
91342
91594
  AcFetchMethod,
91343
91595
  ActionBarPortletController,
@@ -91656,6 +91908,7 @@ export {
91656
91908
  calcDyUiactionGroup,
91657
91909
  calcDynaClass,
91658
91910
  calcDynaSysParams,
91911
+ calcDynamicMenu,
91659
91912
  calcFilterModelBySchema,
91660
91913
  calcGridLayoutPos,
91661
91914
  calcImportSchemaData,
@@ -91716,6 +91969,7 @@ export {
91716
91969
  getAllPanelField,
91717
91970
  getAllUIActionItems,
91718
91971
  getAppCounterProvider,
91972
+ getAppFuncBlockProvider,
91719
91973
  getAppMenuItemProvider,
91720
91974
  getAppViewRef,
91721
91975
  getAreaLevelByCode,
@@ -91800,6 +92054,7 @@ export {
91800
92054
  presetUIActionProvider,
91801
92055
  registerAcItemProvider,
91802
92056
  registerAppCounterProvider,
92057
+ registerAppFuncBlockProvider,
91803
92058
  registerAppMenuItemProvider,
91804
92059
  registerAsyncActionProvider,
91805
92060
  registerControlProvider,