@ibiz-template/runtime 0.7.41-alpha.101 → 0.7.41-alpha.103

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 (40) hide show
  1. package/dist/index.esm.js +360 -297
  2. package/dist/index.system.min.js +1 -1
  3. package/out/constant/value-op.d.ts +1 -1
  4. package/out/constant/value-op.js +1 -1
  5. package/out/controller/common/editor/code-list-editor.controller.d.ts.map +1 -1
  6. package/out/controller/common/editor/code-list-editor.controller.js +5 -4
  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/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
  10. package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +19 -2
  11. package/out/controller/control/kanban/kanban.controller.js +1 -1
  12. package/out/controller/control/search-bar/entity-schema.js +1 -1
  13. package/out/interface/provider/i-app-func-block.provider.d.ts +69 -0
  14. package/out/interface/provider/i-app-func-block.provider.d.ts.map +1 -0
  15. package/out/interface/provider/i-app-func-block.provider.js +1 -0
  16. package/out/interface/provider/index.d.ts +1 -0
  17. package/out/interface/provider/index.d.ts.map +1 -1
  18. package/out/interface/service/service/i-auth.service.d.ts +5 -0
  19. package/out/interface/service/service/i-auth.service.d.ts.map +1 -1
  20. package/out/locale/en/index.d.ts +2 -1
  21. package/out/locale/en/index.d.ts.map +1 -1
  22. package/out/locale/en/index.js +2 -1
  23. package/out/locale/zh-CN/index.d.ts +2 -1
  24. package/out/locale/zh-CN/index.d.ts.map +1 -1
  25. package/out/locale/zh-CN/index.js +2 -1
  26. package/out/logic-scheduler/executor/script-executor.d.ts.map +1 -1
  27. package/out/logic-scheduler/executor/script-executor.js +9 -3
  28. package/out/register/helper/app-func-block-register.d.ts +20 -0
  29. package/out/register/helper/app-func-block-register.d.ts.map +1 -0
  30. package/out/register/helper/app-func-block-register.js +29 -0
  31. package/out/register/helper/index.d.ts +1 -0
  32. package/out/register/helper/index.d.ts.map +1 -1
  33. package/out/register/helper/index.js +1 -0
  34. package/out/service/service/auth/v7-auth.service.d.ts +1 -1
  35. package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
  36. package/out/service/service/auth/v7-auth.service.js +4 -7
  37. package/out/utils/jsonschema-util/jsonschema-util.js +3 -3
  38. package/out/utils/script/script-function.d.ts.map +1 -1
  39. package/out/utils/script/script-function.js +0 -1
  40. package/package.json +2 -2
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 {
@@ -20533,7 +20533,7 @@ var ValueOP = /* @__PURE__ */ ((ValueOP2) => {
20533
20533
  ValueOP2["IN"] = "IN";
20534
20534
  ValueOP2["NOT_IN"] = "NOTIN";
20535
20535
  ValueOP2["LIKE"] = "LIKE";
20536
- ValueOP2["LIFT_LIKE"] = "LIFTLIKE";
20536
+ ValueOP2["LEFT_LIKE"] = "LEFTLIKE";
20537
20537
  ValueOP2["RIGHT_LIKE"] = "RIGHT_LIKE";
20538
20538
  ValueOP2["CHILD_OF"] = "CHILDOF";
20539
20539
  ValueOP2["USER_LIKE"] = "USERLIKE";
@@ -22017,7 +22017,6 @@ var ScriptFunction = class {
22017
22017
  ibiz.i18n.t("runtime.utils.script.errorReportingScript"),
22018
22018
  code
22019
22019
  );
22020
- throw error;
22021
22020
  }
22022
22021
  };
22023
22022
  }
@@ -23062,7 +23061,7 @@ import { clone as clone56 } from "ramda";
23062
23061
  // src/utils/theme-util/custom-theme-util.ts
23063
23062
  import { notNilEmpty as notNilEmpty10 } from "qx-util";
23064
23063
  import { clone as clone55 } from "ramda";
23065
- import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
23064
+ import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
23066
23065
 
23067
23066
  // src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
23068
23067
  import { isEmpty as isEmpty4, isNil as isNil5 } from "ramda";
@@ -29098,7 +29097,6 @@ var EditorController = class {
29098
29097
  };
29099
29098
 
29100
29099
  // src/controller/common/editor/code-list-editor.controller.ts
29101
- import { RuntimeModelError as RuntimeModelError16 } from "@ibiz-template/core";
29102
29100
  var CodeListEditorController = class extends EditorController {
29103
29101
  constructor() {
29104
29102
  super(...arguments);
@@ -29162,10 +29160,14 @@ var CodeListEditorController = class extends EditorController {
29162
29160
  this.allItems = this.toBoolean(this.editorParams.allitems);
29163
29161
  }
29164
29162
  if (this.editorParams.itemsText) {
29165
- this.itemsText = this.editorParams.itemsText;
29163
+ this.itemsText = ibiz.appUtil.resolveI18nText(
29164
+ this.editorParams.itemsText
29165
+ );
29166
29166
  }
29167
29167
  if (this.editorParams.itemstext) {
29168
- this.itemsText = this.editorParams.itemstext;
29168
+ this.itemsText = ibiz.appUtil.resolveI18nText(
29169
+ this.editorParams.itemstext
29170
+ );
29169
29171
  }
29170
29172
  }
29171
29173
  }
@@ -29214,12 +29216,12 @@ var CodeListEditorController = class extends EditorController {
29214
29216
  }
29215
29217
  if (this.editorParams.enumOptions)
29216
29218
  return this.editorParams.enumOptions;
29217
- throw new RuntimeModelError16(
29218
- this.model,
29219
+ ibiz.log.error(
29219
29220
  ibiz.i18n.t("runtime.controller.common.editor.editorNoConfigured", {
29220
29221
  editorType: this.model.editorType
29221
29222
  })
29222
29223
  );
29224
+ return [];
29223
29225
  }
29224
29226
  };
29225
29227
 
@@ -29784,7 +29786,7 @@ var ControlController = class extends BaseController {
29784
29786
  import {
29785
29787
  RuntimeError as RuntimeError17,
29786
29788
  isElementSame,
29787
- RuntimeModelError as RuntimeModelError17
29789
+ RuntimeModelError as RuntimeModelError16
29788
29790
  } from "@ibiz-template/core";
29789
29791
  import { isNil as isNil13 } from "ramda";
29790
29792
  import { isArray as isArray6 } from "lodash-es";
@@ -30472,7 +30474,7 @@ var MDControlController = class extends ControlController {
30472
30474
  async importData() {
30473
30475
  const { appDataEntityId, dedataImportId } = this.model;
30474
30476
  if (!appDataEntityId || !dedataImportId) {
30475
- throw new RuntimeModelError17(
30477
+ throw new RuntimeModelError16(
30476
30478
  this.model,
30477
30479
  ibiz.i18n.t("runtime.controller.common.control.noImportModel")
30478
30480
  );
@@ -30682,7 +30684,7 @@ var MDControlController = class extends ControlController {
30682
30684
  import {
30683
30685
  RuntimeError as RuntimeError18,
30684
30686
  recursiveIterate as recursiveIterate2,
30685
- RuntimeModelError as RuntimeModelError18,
30687
+ RuntimeModelError as RuntimeModelError17,
30686
30688
  findRecursiveChild
30687
30689
  } from "@ibiz-template/core";
30688
30690
 
@@ -31177,7 +31179,7 @@ var AppMenuController = class extends ControlController {
31177
31179
  return provider.onClick(menuItem, event, this);
31178
31180
  }
31179
31181
  if (!menuItem.appFuncId) {
31180
- throw new RuntimeModelError18(
31182
+ throw new RuntimeModelError17(
31181
31183
  menuItem,
31182
31184
  ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
31183
31185
  );
@@ -31339,7 +31341,7 @@ var AppMenuController = class extends ControlController {
31339
31341
  import {
31340
31342
  findRecursiveChild as findRecursiveChild2,
31341
31343
  RuntimeError as RuntimeError19,
31342
- RuntimeModelError as RuntimeModelError19
31344
+ RuntimeModelError as RuntimeModelError18
31343
31345
  } from "@ibiz-template/core";
31344
31346
  var AppMenuIconViewController = class extends AppMenuController {
31345
31347
  async onClickMenuItem(id, event) {
@@ -31357,7 +31359,7 @@ var AppMenuIconViewController = class extends AppMenuController {
31357
31359
  event
31358
31360
  });
31359
31361
  if (!menuItem.appFuncId) {
31360
- throw new RuntimeModelError19(
31362
+ throw new RuntimeModelError18(
31361
31363
  menuItem,
31362
31364
  ibiz.i18n.t("runtime.controller.control.menu.noConfigured")
31363
31365
  );
@@ -31379,7 +31381,7 @@ var AppMenuIconViewController = class extends AppMenuController {
31379
31381
 
31380
31382
  // src/controller/control/calendar/calendar.controller.ts
31381
31383
  import dayjs3 from "dayjs";
31382
- import { RuntimeError as RuntimeError30, RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
31384
+ import { RuntimeError as RuntimeError30, RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
31383
31385
 
31384
31386
  // src/controller/control/calendar/calendar.service.ts
31385
31387
  import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
@@ -32177,11 +32179,11 @@ var CalendarService = class extends MDControlService2 {
32177
32179
  import { recursiveIterate as recursiveIterate3, RuntimeError as RuntimeError29 } from "@ibiz-template/core";
32178
32180
 
32179
32181
  // src/ui-action/provider/backend-ui-action-provider.ts
32180
- import { RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
32182
+ import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
32181
32183
  import { isArray as isArray8 } from "qx-util";
32182
32184
 
32183
32185
  // src/ui-action/provider/ui-action-provider-base.ts
32184
- import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
32186
+ import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
32185
32187
 
32186
32188
  // src/ui-logic/index.ts
32187
32189
  import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
@@ -32190,7 +32192,7 @@ import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
32190
32192
  import {
32191
32193
  IBizContext as IBizContext3,
32192
32194
  ModelError as ModelError18,
32193
- RuntimeModelError as RuntimeModelError36
32195
+ RuntimeModelError as RuntimeModelError35
32194
32196
  } from "@ibiz-template/core";
32195
32197
  import { clone as clone14 } from "ramda";
32196
32198
 
@@ -32345,20 +32347,20 @@ var UILogicContext = class {
32345
32347
  };
32346
32348
 
32347
32349
  // src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
32348
- import { RuntimeModelError as RuntimeModelError22 } from "@ibiz-template/core";
32350
+ import { RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
32349
32351
 
32350
32352
  // src/ui-logic/ui-logic-link/ui-logic-link.ts
32351
32353
  import { ModelError as ModelError13 } from "@ibiz-template/core";
32352
32354
 
32353
32355
  // src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
32354
- import { RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
32356
+ import { RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
32355
32357
 
32356
32358
  // src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
32357
32359
  var UILogicLinkCond = class {
32358
32360
  };
32359
32361
 
32360
32362
  // src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
32361
- import { ModelError as ModelError12, RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
32363
+ import { ModelError as ModelError12, RuntimeModelError as RuntimeModelError19 } from "@ibiz-template/core";
32362
32364
 
32363
32365
  // src/ui-logic/utils/handle-src-val.ts
32364
32366
  import { ModelError as ModelError11 } from "@ibiz-template/core";
@@ -32497,7 +32499,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
32497
32499
  switch (this.type) {
32498
32500
  case "ENTITYFIELD": {
32499
32501
  if (!this.value) {
32500
- throw new RuntimeModelError20(
32502
+ throw new RuntimeModelError19(
32501
32503
  this.model,
32502
32504
  ibiz.i18n.t("runtime.uiLogic.currentConditionValue")
32503
32505
  );
@@ -32509,7 +32511,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
32509
32511
  }
32510
32512
  case "SRCENTITYFIELD": {
32511
32513
  if (!this.value) {
32512
- throw new RuntimeModelError20(
32514
+ throw new RuntimeModelError19(
32513
32515
  this.model,
32514
32516
  ibiz.i18n.t("runtime.uiLogic.sourceDataObjectAttribute")
32515
32517
  );
@@ -32600,7 +32602,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
32600
32602
  test(ctx, context, data) {
32601
32603
  let bol = this.op !== "OR";
32602
32604
  if (this.conds.length === 0) {
32603
- throw new RuntimeModelError21(
32605
+ throw new RuntimeModelError20(
32604
32606
  this.model,
32605
32607
  ibiz.i18n.t("runtime.uiLogic.interfaceConnectionConditional")
32606
32608
  );
@@ -32749,13 +32751,13 @@ var DEActionNode2 = class extends UILogicNode {
32749
32751
  retDEUILogicParamId
32750
32752
  } = this.model;
32751
32753
  if (!dstAppDataEntityId) {
32752
- throw new RuntimeModelError22(
32754
+ throw new RuntimeModelError21(
32753
32755
  this.model,
32754
32756
  ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedEntity")
32755
32757
  );
32756
32758
  }
32757
32759
  if (!dstAppDEActionId) {
32758
- throw new RuntimeModelError22(
32760
+ throw new RuntimeModelError21(
32759
32761
  this.model,
32760
32762
  ibiz.i18n.t("runtime.deLogic.deLogicNode.unspecifiedBehavior")
32761
32763
  );
@@ -32786,7 +32788,7 @@ var DEActionNode2 = class extends UILogicNode {
32786
32788
  };
32787
32789
 
32788
32790
  // src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
32789
- import { RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
32791
+ import { RuntimeModelError as RuntimeModelError22 } from "@ibiz-template/core";
32790
32792
  var DEUIActionNode = class extends UILogicNode {
32791
32793
  async exec(ctx) {
32792
32794
  const {
@@ -32797,7 +32799,7 @@ var DEUIActionNode = class extends UILogicNode {
32797
32799
  } = this.model;
32798
32800
  const { data, parameters } = ctx;
32799
32801
  if (!dstAppDEUIActionId) {
32800
- throw new RuntimeModelError23(
32802
+ throw new RuntimeModelError22(
32801
32803
  this.model,
32802
32804
  ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceBehavior")
32803
32805
  );
@@ -33072,26 +33074,26 @@ var PrepareJSParamNode = class extends UILogicNode {
33072
33074
  };
33073
33075
 
33074
33076
  // src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
33075
- import { RuntimeError as RuntimeError22, RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
33077
+ import { RuntimeError as RuntimeError22, RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
33076
33078
  import { isFunction } from "lodash-es";
33077
33079
  var ViewCtrlInvokeNode = class extends UILogicNode {
33078
33080
  async exec(ctx) {
33079
33081
  ctx.isEndNode = true;
33080
33082
  const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
33081
33083
  if (!invokeCtrlId) {
33082
- throw new RuntimeModelError24(
33084
+ throw new RuntimeModelError23(
33083
33085
  this.model,
33084
33086
  ibiz.i18n.t("runtime.uiLogic.noConfiguredInterfaceObject")
33085
33087
  );
33086
33088
  }
33087
33089
  if (!invokeParamId) {
33088
- throw new RuntimeModelError24(
33090
+ throw new RuntimeModelError23(
33089
33091
  this.model,
33090
33092
  ibiz.i18n.t("runtime.uiLogic.noConfiguredOperatingParameters")
33091
33093
  );
33092
33094
  }
33093
33095
  if (!invokeMethod) {
33094
- throw new RuntimeModelError24(
33096
+ throw new RuntimeModelError23(
33095
33097
  this.model,
33096
33098
  ibiz.i18n.t("runtime.uiLogic.noConfiguredCallMethod")
33097
33099
  );
@@ -33132,12 +33134,12 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
33132
33134
  };
33133
33135
 
33134
33136
  // src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts
33135
- import { RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
33137
+ import { RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
33136
33138
  var BindParamNode2 = class extends UILogicNode {
33137
33139
  async exec(ctx) {
33138
33140
  const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
33139
33141
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
33140
- throw new RuntimeModelError25(
33142
+ throw new RuntimeModelError24(
33141
33143
  this.model,
33142
33144
  ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
33143
33145
  );
@@ -33156,7 +33158,7 @@ var BindParamNode2 = class extends UILogicNode {
33156
33158
  };
33157
33159
 
33158
33160
  // src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts
33159
- import { ModelError as ModelError16, RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
33161
+ import { ModelError as ModelError16, RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
33160
33162
  var MsgBoxNode = class extends UILogicNode {
33161
33163
  constructor() {
33162
33164
  super(...arguments);
@@ -33170,13 +33172,13 @@ var MsgBoxNode = class extends UILogicNode {
33170
33172
  async exec(ctx) {
33171
33173
  const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
33172
33174
  if (!msgBoxType) {
33173
- throw new RuntimeModelError26(
33175
+ throw new RuntimeModelError25(
33174
33176
  this.model,
33175
33177
  ibiz.i18n.t("runtime.uiLogic.missingMessageTypeConfiguration")
33176
33178
  );
33177
33179
  }
33178
33180
  if (!buttonsType) {
33179
- throw new RuntimeModelError26(
33181
+ throw new RuntimeModelError25(
33180
33182
  this.model,
33181
33183
  ibiz.i18n.t("runtime.uiLogic.missingButtonTypeConfiguration")
33182
33184
  );
@@ -33280,12 +33282,12 @@ var PFPluginNode = class extends UILogicNode {
33280
33282
  };
33281
33283
 
33282
33284
  // src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
33283
- import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
33285
+ import { RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
33284
33286
  var DebugParamNode2 = class extends UILogicNode {
33285
33287
  async exec(ctx) {
33286
33288
  const { dstDEUILogicParamId, name: name2 } = this.model;
33287
33289
  if (!dstDEUILogicParamId) {
33288
- throw new RuntimeModelError27(
33290
+ throw new RuntimeModelError26(
33289
33291
  this.model,
33290
33292
  ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
33291
33293
  );
@@ -33299,12 +33301,12 @@ var DebugParamNode2 = class extends UILogicNode {
33299
33301
  };
33300
33302
 
33301
33303
  // src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts
33302
- import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
33304
+ import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
33303
33305
  var ResetParamNode2 = class extends UILogicNode {
33304
33306
  async exec(ctx) {
33305
33307
  const { dstDEUILogicParamId } = this.model;
33306
33308
  if (!dstDEUILogicParamId) {
33307
- throw new RuntimeModelError28(
33309
+ throw new RuntimeModelError27(
33308
33310
  this.model,
33309
33311
  ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
33310
33312
  );
@@ -33321,13 +33323,13 @@ var ResetParamNode2 = class extends UILogicNode {
33321
33323
  };
33322
33324
 
33323
33325
  // src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
33324
- import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
33326
+ import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
33325
33327
  import { clone as clone13 } from "ramda";
33326
33328
  var CopyParamNode2 = class extends UILogicNode {
33327
33329
  async exec(ctx) {
33328
33330
  const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
33329
33331
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
33330
- throw new RuntimeModelError29(
33332
+ throw new RuntimeModelError28(
33331
33333
  this.model,
33332
33334
  ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
33333
33335
  );
@@ -33346,7 +33348,7 @@ var CopyParamNode2 = class extends UILogicNode {
33346
33348
  };
33347
33349
 
33348
33350
  // src/ui-logic/ui-logic-node/append-param-node/append-param-node.ts
33349
- import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
33351
+ import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
33350
33352
  var AppendParamNode2 = class extends UILogicNode {
33351
33353
  async exec(ctx) {
33352
33354
  const {
@@ -33357,7 +33359,7 @@ var AppendParamNode2 = class extends UILogicNode {
33357
33359
  srcSize
33358
33360
  } = this.model;
33359
33361
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
33360
- throw new RuntimeModelError30(
33362
+ throw new RuntimeModelError29(
33361
33363
  this.model,
33362
33364
  ibiz.i18n.t("runtime.uiLogic.missingTargetParameter")
33363
33365
  );
@@ -33382,12 +33384,12 @@ var AppendParamNode2 = class extends UILogicNode {
33382
33384
  };
33383
33385
 
33384
33386
  // src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts
33385
- import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
33387
+ import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
33386
33388
  var SortParamNode2 = class extends UILogicNode {
33387
33389
  async exec(ctx) {
33388
33390
  const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
33389
33391
  if (!dstDEUILogicParamId || !dstFieldName) {
33390
- throw new RuntimeModelError31(
33392
+ throw new RuntimeModelError30(
33391
33393
  this.model,
33392
33394
  ibiz.i18n.t("runtime.deLogic.deLogicNode.missingParameterProperty")
33393
33395
  );
@@ -33411,12 +33413,12 @@ var SortParamNode2 = class extends UILogicNode {
33411
33413
  };
33412
33414
 
33413
33415
  // src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts
33414
- import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
33416
+ import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
33415
33417
  var RenewParamNode2 = class extends UILogicNode {
33416
33418
  async exec(ctx) {
33417
33419
  const { dstDEUILogicParamId } = this.model;
33418
33420
  if (!dstDEUILogicParamId) {
33419
- throw new RuntimeModelError32(
33421
+ throw new RuntimeModelError31(
33420
33422
  this.model,
33421
33423
  ibiz.i18n.t("runtime.deLogic.deLogicNode.missingConfiguration")
33422
33424
  );
@@ -33433,7 +33435,7 @@ var RenewParamNode2 = class extends UILogicNode {
33433
33435
  };
33434
33436
 
33435
33437
  // src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts
33436
- import { RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
33438
+ import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
33437
33439
  var DataSetNode2 = class extends UILogicNode {
33438
33440
  async exec(ctx) {
33439
33441
  const {
@@ -33443,7 +33445,7 @@ var DataSetNode2 = class extends UILogicNode {
33443
33445
  retDEUILogicParamId
33444
33446
  } = this.model;
33445
33447
  if (!dstDEUILogicParamId) {
33446
- throw new RuntimeModelError33(
33448
+ throw new RuntimeModelError32(
33447
33449
  this.model,
33448
33450
  ibiz.i18n.t("runtime.uiLogic.missingfilter")
33449
33451
  );
@@ -33488,25 +33490,25 @@ var ThrowExceptionNode2 = class extends UILogicNode {
33488
33490
  };
33489
33491
 
33490
33492
  // src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
33491
- import { RuntimeError as RuntimeError24, RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
33493
+ import { RuntimeError as RuntimeError24, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
33492
33494
  var ViewCtrlFireEventNode = class extends UILogicNode {
33493
33495
  async exec(ctx) {
33494
33496
  ctx.isEndNode = true;
33495
33497
  const { eventName, eventParamId, fireCtrlId } = this.model;
33496
33498
  if (!fireCtrlId) {
33497
- throw new RuntimeModelError34(
33499
+ throw new RuntimeModelError33(
33498
33500
  this.model,
33499
33501
  ibiz.i18n.t("runtime.uiLogic.noConfiguredTriggerObject")
33500
33502
  );
33501
33503
  }
33502
33504
  if (!eventName) {
33503
- throw new RuntimeModelError34(
33505
+ throw new RuntimeModelError33(
33504
33506
  this.model,
33505
33507
  ibiz.i18n.t("runtime.uiLogic.noConfiguredEvent")
33506
33508
  );
33507
33509
  }
33508
33510
  if (!eventParamId) {
33509
- throw new RuntimeModelError34(
33511
+ throw new RuntimeModelError33(
33510
33512
  this.model,
33511
33513
  ibiz.i18n.t("runtime.uiLogic.noConfiguredEventParameters")
33512
33514
  );
@@ -33541,7 +33543,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
33541
33543
  };
33542
33544
 
33543
33545
  // src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
33544
- import { RuntimeError as RuntimeError25, RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
33546
+ import { RuntimeError as RuntimeError25, RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
33545
33547
  var ExecuteDELogicNode = class extends UILogicNode {
33546
33548
  async exec(ctx) {
33547
33549
  const {
@@ -33551,19 +33553,19 @@ var ExecuteDELogicNode = class extends UILogicNode {
33551
33553
  retDEUILogicParamId
33552
33554
  } = this.model;
33553
33555
  if (!dstAppDataEntityId) {
33554
- throw new RuntimeModelError35(
33556
+ throw new RuntimeModelError34(
33555
33557
  this.model,
33556
33558
  ibiz.i18n.t("runtime.uiLogic.noEntityConfigured")
33557
33559
  );
33558
33560
  }
33559
33561
  if (!dstAppDELogicId) {
33560
- throw new RuntimeModelError35(
33562
+ throw new RuntimeModelError34(
33561
33563
  this.model,
33562
33564
  ibiz.i18n.t("runtime.uiLogic.noEntityLogicConfigured")
33563
33565
  );
33564
33566
  }
33565
33567
  if (!dstDEUILogicParamId) {
33566
- throw new RuntimeModelError35(
33568
+ throw new RuntimeModelError34(
33567
33569
  this.model,
33568
33570
  ibiz.i18n.t("runtime.uiLogic.noIncomingLogic")
33569
33571
  );
@@ -33792,7 +33794,7 @@ var UILogic = class {
33792
33794
  this.params = /* @__PURE__ */ new Map();
33793
33795
  var _a3;
33794
33796
  if (!((_a3 = model.deuilogicNodes) == null ? void 0 : _a3.length)) {
33795
- throw new RuntimeModelError36(
33797
+ throw new RuntimeModelError35(
33796
33798
  model,
33797
33799
  ibiz.i18n.t("runtime.uiLogic.noLogicalNodesConfigured")
33798
33800
  );
@@ -33922,7 +33924,7 @@ var UILogic = class {
33922
33924
  const start = this.nodes.get(startDEUILogicNodeId);
33923
33925
  await this.deepExec(start, ctx);
33924
33926
  } else {
33925
- throw new RuntimeModelError36(
33927
+ throw new RuntimeModelError35(
33926
33928
  this.model,
33927
33929
  ibiz.i18n.t("runtime.deLogic.deLogicNode.noSetStartNode")
33928
33930
  );
@@ -34127,7 +34129,7 @@ var UIActionProviderBase = class {
34127
34129
  const { appDEUILogicId, appDataEntityId, uilogicAttachMode, appId: appId2 } = action;
34128
34130
  if (uilogicAttachMode === "REPLACE") {
34129
34131
  if (!appDEUILogicId) {
34130
- throw new RuntimeModelError37(
34132
+ throw new RuntimeModelError36(
34131
34133
  action,
34132
34134
  ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
34133
34135
  );
@@ -34170,7 +34172,7 @@ var UIActionProviderBase = class {
34170
34172
  }
34171
34173
  if (action.uilogicAttachMode === "AFTER") {
34172
34174
  if (!appDEUILogicId) {
34173
- throw new RuntimeModelError37(
34175
+ throw new RuntimeModelError36(
34174
34176
  action,
34175
34177
  ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
34176
34178
  );
@@ -34454,7 +34456,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
34454
34456
  const entityName = action.appDataEntityId;
34455
34457
  const methodName = action.appDEMethodId;
34456
34458
  if (!entityName || !methodName) {
34457
- throw new RuntimeModelError38(
34459
+ throw new RuntimeModelError37(
34458
34460
  action,
34459
34461
  ibiz.i18n.t("runtime.uiAction.noEntityOrBehavior")
34460
34462
  );
@@ -34591,7 +34593,7 @@ import {
34591
34593
  StringUtil as StringUtil3,
34592
34594
  ModelError as ModelError19,
34593
34595
  RuntimeError as RuntimeError28,
34594
- RuntimeModelError as RuntimeModelError39
34596
+ RuntimeModelError as RuntimeModelError38
34595
34597
  } from "@ibiz-template/core";
34596
34598
  import { clone as clone15, mergeRight as mergeRight4 } from "ramda";
34597
34599
  var FrontUIActionProvider = class extends UIActionProviderBase {
@@ -34613,7 +34615,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
34613
34615
  case "WIZARD": {
34614
34616
  const frontPSAppView = action.frontAppViewId;
34615
34617
  if (!frontPSAppView) {
34616
- throw new RuntimeModelError39(
34618
+ throw new RuntimeModelError38(
34617
34619
  action,
34618
34620
  ibiz.i18n.t("runtime.uiAction.noConfiguredopenView")
34619
34621
  );
@@ -34718,7 +34720,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
34718
34720
  );
34719
34721
  return result || {};
34720
34722
  }
34721
- throw new RuntimeModelError39(
34723
+ throw new RuntimeModelError38(
34722
34724
  action,
34723
34725
  ibiz.i18n.t("runtime.uiAction.missingConfigurationScriptCode")
34724
34726
  );
@@ -34802,7 +34804,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
34802
34804
  const { resultContext, resultParams, presetParams } = await this.handleParams(action, args.context, args.data, args.params);
34803
34805
  const { appDataEntityId, appDEDataImportId, frontAppViewId } = action;
34804
34806
  if (!appDataEntityId || !appDEDataImportId) {
34805
- throw new RuntimeModelError39(
34807
+ throw new RuntimeModelError38(
34806
34808
  action,
34807
34809
  ibiz.i18n.t("runtime.controller.common.control.noImportModel")
34808
34810
  );
@@ -35095,7 +35097,7 @@ var LoginOutUIActionProvider = class extends UIActionProviderBase {
35095
35097
  };
35096
35098
 
35097
35099
  // src/ui-action/provider/custom-ui-action-provider.ts
35098
- import { RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
35100
+ import { RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
35099
35101
  var CustomUIActionProvider = class extends UIActionProviderBase {
35100
35102
  async execAction(action, args) {
35101
35103
  const { scriptCode } = action;
@@ -35107,7 +35109,7 @@ var CustomUIActionProvider = class extends UIActionProviderBase {
35107
35109
  );
35108
35110
  return result || {};
35109
35111
  }
35110
- throw new RuntimeModelError40(
35112
+ throw new RuntimeModelError39(
35111
35113
  action,
35112
35114
  ibiz.i18n.t("runtime.uiAction.missingConfigurationScriptCode")
35113
35115
  );
@@ -35667,6 +35669,11 @@ var CalendarController = class extends MDControlController {
35667
35669
  if ((_b2 = (_a3 = this.model.controlParam) == null ? void 0 : _a3.ctrlParams) == null ? void 0 : _b2.TIMELINECAPTIONFORMAT) {
35668
35670
  this.timelineCaptionFormat = this.model.controlParam.ctrlParams.TIMELINECAPTIONFORMAT;
35669
35671
  }
35672
+ if (this.controlParams.calendartitle) {
35673
+ this.state.calendarTitle = ibiz.appUtil.resolveI18nText(
35674
+ this.controlParams.calendartitle
35675
+ );
35676
+ }
35670
35677
  this.state.showDetail = ((_d = (_c = this.model.controlParam) == null ? void 0 : _c.ctrlParams) == null ? void 0 : _d.SHOWDETAIL) || this.controlParams.showdetail === "true" || false;
35671
35678
  this.service = new CalendarService(this.model);
35672
35679
  await this.service.init(this.context);
@@ -35816,7 +35823,7 @@ var CalendarController = class extends MDControlController {
35816
35823
  }
35817
35824
  ));
35818
35825
  if (result === -1)
35819
- throw new RuntimeModelError41(
35826
+ throw new RuntimeModelError40(
35820
35827
  calendarItem,
35821
35828
  ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
35822
35829
  itemType: calendarItem.itemType.toLowerCase()
@@ -35852,7 +35859,7 @@ var CalendarController = class extends MDControlController {
35852
35859
  }
35853
35860
  ));
35854
35861
  if (result === -1)
35855
- throw new RuntimeModelError41(
35862
+ throw new RuntimeModelError40(
35856
35863
  calendarItem,
35857
35864
  ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
35858
35865
  itemType: calendarItem.itemType.toLowerCase()
@@ -36262,10 +36269,10 @@ import { isObject as isObject2, isString as isString2 } from "qx-util";
36262
36269
  import { RuntimeError as RuntimeError31 } from "@ibiz-template/core";
36263
36270
 
36264
36271
  // src/controller/control/chart/generator/line-series-generator.ts
36265
- import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
36272
+ import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
36266
36273
 
36267
36274
  // src/controller/control/chart/generator/base-series-generator.ts
36268
- import { plus, RuntimeModelError as RuntimeModelError42, toNumberOrNil } from "@ibiz-template/core";
36275
+ import { plus, RuntimeModelError as RuntimeModelError41, toNumberOrNil } from "@ibiz-template/core";
36269
36276
  import dayjs4 from "dayjs";
36270
36277
  import minMax from "dayjs/plugin/minMax";
36271
36278
  import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
@@ -36347,13 +36354,13 @@ var BaseSeriesGenerator = class {
36347
36354
  var _a3;
36348
36355
  const { chartSeriesEncode, caption, id, userParam } = model;
36349
36356
  if (!model.catalogField) {
36350
- throw new RuntimeModelError42(
36357
+ throw new RuntimeModelError41(
36351
36358
  model,
36352
36359
  ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
36353
36360
  );
36354
36361
  }
36355
36362
  if (!model.valueField) {
36356
- throw new RuntimeModelError42(
36363
+ throw new RuntimeModelError41(
36357
36364
  model,
36358
36365
  ibiz.i18n.t("runtime.controller.control.chart.missingValue")
36359
36366
  );
@@ -37100,13 +37107,13 @@ var BaseSeriesGenerator = class {
37100
37107
  var LineSeriesGenerator = class extends BaseSeriesGenerator {
37101
37108
  calcStaticOptions() {
37102
37109
  if (this.xAxisIndex === void 0) {
37103
- throw new RuntimeModelError43(
37110
+ throw new RuntimeModelError42(
37104
37111
  this.model,
37105
37112
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37106
37113
  );
37107
37114
  }
37108
37115
  if (this.yAxisIndex === void 0) {
37109
- throw new RuntimeModelError43(
37116
+ throw new RuntimeModelError42(
37110
37117
  this.model,
37111
37118
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37112
37119
  );
@@ -37125,17 +37132,17 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
37125
37132
  };
37126
37133
 
37127
37134
  // src/controller/control/chart/generator/bar-series-generator.ts
37128
- import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
37135
+ import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
37129
37136
  var BarSeriesGenerator = class extends BaseSeriesGenerator {
37130
37137
  calcStaticOptions() {
37131
37138
  if (this.xAxisIndex === void 0) {
37132
- throw new RuntimeModelError44(
37139
+ throw new RuntimeModelError43(
37133
37140
  this.model,
37134
37141
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37135
37142
  );
37136
37143
  }
37137
37144
  if (this.yAxisIndex === void 0) {
37138
- throw new RuntimeModelError44(
37145
+ throw new RuntimeModelError43(
37139
37146
  this.model,
37140
37147
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37141
37148
  );
@@ -37191,17 +37198,17 @@ var PieSeriesGenerator = class extends BaseSeriesGenerator {
37191
37198
  };
37192
37199
 
37193
37200
  // src/controller/control/chart/generator/scatter-series-generator.ts
37194
- import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
37201
+ import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
37195
37202
  var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
37196
37203
  calcStaticOptions() {
37197
37204
  if (this.xAxisIndex === void 0) {
37198
- throw new RuntimeModelError45(
37205
+ throw new RuntimeModelError44(
37199
37206
  this.model,
37200
37207
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37201
37208
  );
37202
37209
  }
37203
37210
  if (this.yAxisIndex === void 0) {
37204
- throw new RuntimeModelError45(
37211
+ throw new RuntimeModelError44(
37205
37212
  this.model,
37206
37213
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37207
37214
  );
@@ -37331,7 +37338,7 @@ var RadarSeriesGenerator = class extends BaseSeriesGenerator {
37331
37338
  };
37332
37339
 
37333
37340
  // src/controller/control/chart/generator/area-series-generator.ts
37334
- import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
37341
+ import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
37335
37342
  var AreaSeriesGenerator = class extends BaseSeriesGenerator {
37336
37343
  /**
37337
37344
  * 计算静态序列的options
@@ -37340,13 +37347,13 @@ var AreaSeriesGenerator = class extends BaseSeriesGenerator {
37340
37347
  */
37341
37348
  calcStaticOptions() {
37342
37349
  if (this.xAxisIndex === void 0) {
37343
- throw new RuntimeModelError46(
37350
+ throw new RuntimeModelError45(
37344
37351
  this.model,
37345
37352
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37346
37353
  );
37347
37354
  }
37348
37355
  if (this.yAxisIndex === void 0) {
37349
- throw new RuntimeModelError46(
37356
+ throw new RuntimeModelError45(
37350
37357
  this.model,
37351
37358
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37352
37359
  );
@@ -37396,7 +37403,7 @@ var GaugeSeriesGenerator = class extends BaseSeriesGenerator {
37396
37403
  // src/controller/control/chart/generator/candlestick-series-generator.ts
37397
37404
  import { isNil as isNil16 } from "ramda";
37398
37405
  import { isArray as isArray9, isNumber as isNumber3 } from "qx-util";
37399
- 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";
37400
37407
  var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
37401
37408
  /**
37402
37409
  * 初始化参数
@@ -37409,7 +37416,7 @@ var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
37409
37416
  var _a3;
37410
37417
  const { chartSeriesEncode, caption, id, userParam, navViewParamJO } = model;
37411
37418
  if (!model.catalogField) {
37412
- throw new RuntimeModelError47(
37419
+ throw new RuntimeModelError46(
37413
37420
  model,
37414
37421
  ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
37415
37422
  );
@@ -40741,7 +40748,7 @@ import { clone as clone23 } from "ramda";
40741
40748
  import { isString as isString3 } from "lodash-es";
40742
40749
 
40743
40750
  // src/controller/control/search-bar/search-bar-filter.controller.ts
40744
- import { RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
40751
+ import { RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
40745
40752
 
40746
40753
  // src/controller/control/search-bar/util.ts
40747
40754
  var ItemsValueOPs = [
@@ -40822,7 +40829,7 @@ var SearchBarFilterController = class {
40822
40829
  async init() {
40823
40830
  if (!this.noEditor) {
40824
40831
  if (!this.model.editor) {
40825
- throw new RuntimeModelError48(
40832
+ throw new RuntimeModelError47(
40826
40833
  this.model,
40827
40834
  ibiz.i18n.t("runtime.controller.control.searchBar.missingModel")
40828
40835
  );
@@ -41081,7 +41088,7 @@ var typeToOPs = {
41081
41088
  "ISNOTNULL" /* IS_NOT_NULL */,
41082
41089
  "USERLIKE" /* USER_LIKE */,
41083
41090
  "LIKE" /* LIKE */,
41084
- "LIFTLIKE" /* LIFT_LIKE */,
41091
+ "LEFTLIKE" /* LEFT_LIKE */,
41085
41092
  "RIGHT_LIKE" /* RIGHT_LIKE */
41086
41093
  ],
41087
41094
  number: [
@@ -42922,7 +42929,7 @@ import {
42922
42929
  clone as clone25,
42923
42930
  DataTypes as DataTypes2,
42924
42931
  isElementSame as isElementSame2,
42925
- RuntimeModelError as RuntimeModelError49
42932
+ RuntimeModelError as RuntimeModelError48
42926
42933
  } from "@ibiz-template/core";
42927
42934
  import { isNil as isNil18, isNotNil as isNotNil4 } from "ramda";
42928
42935
  import { createUUID as createUUID6, isBoolean } from "qx-util";
@@ -43385,7 +43392,7 @@ var DataViewControlController = class extends MDControlController {
43385
43392
  const { enableGroup } = this.state;
43386
43393
  if (enableGroup && groupMode) {
43387
43394
  if (!groupAppDEFieldId) {
43388
- throw new RuntimeModelError49(
43395
+ throw new RuntimeModelError48(
43389
43396
  this.model,
43390
43397
  ibiz.i18n.t(
43391
43398
  "runtime.controller.control.dataView.propertiesNoConfigured"
@@ -43478,7 +43485,7 @@ var DataViewControlController = class extends MDControlController {
43478
43485
  async handleCodeListGroup() {
43479
43486
  const { groupAppDEFieldId, groupCodeListId } = this.model;
43480
43487
  if (!groupCodeListId) {
43481
- throw new RuntimeModelError49(
43488
+ throw new RuntimeModelError48(
43482
43489
  this.model,
43483
43490
  ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
43484
43491
  );
@@ -43592,7 +43599,7 @@ var DataViewControlController = class extends MDControlController {
43592
43599
  caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
43593
43600
  }
43594
43601
  if (!item.appDEFieldId) {
43595
- throw new RuntimeModelError49(
43602
+ throw new RuntimeModelError48(
43596
43603
  item,
43597
43604
  ibiz.i18n.t("runtime.controller.control.dataView.sortingItems")
43598
43605
  );
@@ -43813,13 +43820,13 @@ var DataViewControlController = class extends MDControlController {
43813
43820
  await this.updateChangedItems([draggedItem]);
43814
43821
  } else {
43815
43822
  if (!minorSortAppDEFieldId)
43816
- throw new RuntimeModelError49(
43823
+ throw new RuntimeModelError48(
43817
43824
  this.model,
43818
43825
  ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
43819
43826
  );
43820
43827
  const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
43821
43828
  if (!moveAction)
43822
- throw new RuntimeModelError49(
43829
+ throw new RuntimeModelError48(
43823
43830
  this.model,
43824
43831
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
43825
43832
  );
@@ -44815,7 +44822,7 @@ import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
44815
44822
 
44816
44823
  // src/controller/control/form/form/form.controller.ts
44817
44824
  import {
44818
- RuntimeModelError as RuntimeModelError50,
44825
+ RuntimeModelError as RuntimeModelError49,
44819
44826
  debounceAndAsyncMerge,
44820
44827
  recursiveIterate as recursiveIterate8,
44821
44828
  EntityError,
@@ -45085,7 +45092,7 @@ var FormController = class extends ControlController {
45085
45092
  return;
45086
45093
  }
45087
45094
  if (form.details[detail.id]) {
45088
- throw new RuntimeModelError50(
45095
+ throw new RuntimeModelError49(
45089
45096
  detail,
45090
45097
  ibiz.i18n.t(
45091
45098
  "runtime.controller.control.form.initializationException",
@@ -47990,7 +47997,7 @@ var FormMDCtrlController = class extends FormDetailController {
47990
47997
  import {
47991
47998
  ModelError as ModelError20,
47992
47999
  mergeInLeft as mergeInLeft2,
47993
- RuntimeModelError as RuntimeModelError51
48000
+ RuntimeModelError as RuntimeModelError50
47994
48001
  } from "@ibiz-template/core";
47995
48002
  var FormMDCtrlMDController = class extends FormMDCtrlController {
47996
48003
  constructor() {
@@ -48029,7 +48036,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
48029
48036
  if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
48030
48037
  return;
48031
48038
  }
48032
- throw new RuntimeModelError51(
48039
+ throw new RuntimeModelError50(
48033
48040
  this.model,
48034
48041
  ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
48035
48042
  );
@@ -48160,7 +48167,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
48160
48167
  };
48161
48168
 
48162
48169
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
48163
- import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
48170
+ import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
48164
48171
  import { createUUID as createUUID8 } from "qx-util";
48165
48172
 
48166
48173
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
@@ -48205,7 +48212,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
48205
48212
  if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
48206
48213
  return;
48207
48214
  }
48208
- throw new RuntimeModelError52(
48215
+ throw new RuntimeModelError51(
48209
48216
  this.model,
48210
48217
  ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
48211
48218
  );
@@ -49209,7 +49216,7 @@ import { clone as clone30, isNil as isNil21 } from "ramda";
49209
49216
  // src/controller/control/form/edit-form/edit-form.service.ts
49210
49217
  import {
49211
49218
  recursiveIterate as recursiveIterate12,
49212
- RuntimeModelError as RuntimeModelError53
49219
+ RuntimeModelError as RuntimeModelError52
49213
49220
  } from "@ibiz-template/core";
49214
49221
  var EditFormService = class extends FormService {
49215
49222
  /**
@@ -49336,7 +49343,7 @@ var EditFormService = class extends FormService {
49336
49343
  const wizardForm = this.model;
49337
49344
  const methodName = (_a3 = wizardForm.goBackControlAction) == null ? void 0 : _a3.appDEMethodId;
49338
49345
  if (!methodName) {
49339
- throw new RuntimeModelError53(
49346
+ throw new RuntimeModelError52(
49340
49347
  this.model,
49341
49348
  ibiz.i18n.t("runtime.controller.control.form.lackBehavior")
49342
49349
  );
@@ -50589,7 +50596,7 @@ import {
50589
50596
  awaitTimeout as awaitTimeout2,
50590
50597
  RuntimeError as RuntimeError40,
50591
50598
  recursiveIterate as recursiveIterate13,
50592
- RuntimeModelError as RuntimeModelError55,
50599
+ RuntimeModelError as RuntimeModelError54,
50593
50600
  mergeDefaultInLeft as mergeDefaultInLeft2,
50594
50601
  debounceAndAsyncMerge as debounceAndAsyncMerge2
50595
50602
  } from "@ibiz-template/core";
@@ -50597,7 +50604,7 @@ import { clone as clone32 } from "ramda";
50597
50604
  import dayjs5 from "dayjs";
50598
50605
 
50599
50606
  // src/controller/control/grid/grid/grid.service.ts
50600
- import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
50607
+ import { RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
50601
50608
  var GridService = class extends MDControlService2 {
50602
50609
  /**
50603
50610
  * 初始化属性映射
@@ -50625,7 +50632,7 @@ var GridService = class extends MDControlService2 {
50625
50632
  dataType: dataItem.dataType
50626
50633
  });
50627
50634
  } else {
50628
- throw new RuntimeModelError54(
50635
+ throw new RuntimeModelError53(
50629
50636
  column,
50630
50637
  ibiz.i18n.t("runtime.controller.control.grid.corresponding", {
50631
50638
  deField
@@ -51544,7 +51551,7 @@ var GridController = class extends MDControlController {
51544
51551
  (item) => item.model.appDEFieldId === groupAppDEFieldId
51545
51552
  );
51546
51553
  if (!this.groupFieldColumn) {
51547
- throw new RuntimeModelError55(
51554
+ throw new RuntimeModelError54(
51548
51555
  this.model,
51549
51556
  ibiz.i18n.t("runtime.controller.control.grid.attributeColumns")
51550
51557
  );
@@ -51555,7 +51562,7 @@ var GridController = class extends MDControlController {
51555
51562
  );
51556
51563
  if (index !== -1 && index !== 0) {
51557
51564
  if (this.isMultistageHeader) {
51558
- throw new RuntimeModelError55(
51565
+ throw new RuntimeModelError54(
51559
51566
  this.model,
51560
51567
  ibiz.i18n.t("runtime.controller.control.grid.configureFirstColumn", {
51561
51568
  groupFieldName
@@ -51567,13 +51574,13 @@ var GridController = class extends MDControlController {
51567
51574
  }
51568
51575
  if (groupMode === "CODELIST") {
51569
51576
  if (!groupCodeListId) {
51570
- throw new RuntimeModelError55(
51577
+ throw new RuntimeModelError54(
51571
51578
  this.model,
51572
51579
  ibiz.i18n.t("runtime.controller.control.grid.requiresCodeTable")
51573
51580
  );
51574
51581
  }
51575
51582
  if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
51576
- throw new RuntimeModelError55(
51583
+ throw new RuntimeModelError54(
51577
51584
  this.model,
51578
51585
  ibiz.i18n.t("runtime.controller.control.grid.noMatchCodeTable", {
51579
51586
  groupFieldName
@@ -51732,7 +51739,7 @@ var GridController = class extends MDControlController {
51732
51739
  return;
51733
51740
  }
51734
51741
  if (!aggAppDEDataSetId || !aggAppDataEntityId) {
51735
- throw new RuntimeModelError55(
51742
+ throw new RuntimeModelError54(
51736
51743
  this.model,
51737
51744
  ibiz.i18n.t("runtime.controller.control.grid.missingConfiguration")
51738
51745
  );
@@ -52777,7 +52784,7 @@ var GridController = class extends MDControlController {
52777
52784
  var _a3;
52778
52785
  const moveAction = (_a3 = this.model.moveControlAction) == null ? void 0 : _a3.appDEMethodId;
52779
52786
  if (!moveAction) {
52780
- throw new RuntimeModelError55(
52787
+ throw new RuntimeModelError54(
52781
52788
  this.model,
52782
52789
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
52783
52790
  );
@@ -53127,11 +53134,37 @@ var GridFieldColumnController = class extends GridColumnController {
53127
53134
  */
53128
53135
  async triggerAction(row, event) {
53129
53136
  const actionId = this.model.deuiactionId;
53137
+ const tempContext = this.context.clone();
53138
+ const tempParams = clone33(this.params);
53139
+ const { userParam } = this.model;
53140
+ if (userParam) {
53141
+ const { navigateContexts, navigateParams } = parseUserParams(userParam);
53142
+ let selfContext = {};
53143
+ if (navigateContexts && row.data) {
53144
+ selfContext = convertNavData(
53145
+ navigateContexts,
53146
+ row.data,
53147
+ tempParams,
53148
+ tempContext
53149
+ );
53150
+ }
53151
+ Object.assign(tempContext, selfContext);
53152
+ let selfParams = {};
53153
+ if (navigateParams && row.data) {
53154
+ selfParams = convertNavData(
53155
+ navigateParams,
53156
+ row.data,
53157
+ tempParams,
53158
+ tempContext
53159
+ );
53160
+ }
53161
+ Object.assign(tempParams, selfParams);
53162
+ }
53130
53163
  await UIActionUtil.execAndResolved(
53131
53164
  actionId,
53132
53165
  {
53133
- context: this.context,
53134
- params: this.params,
53166
+ context: tempContext,
53167
+ params: tempParams,
53135
53168
  data: [row.data],
53136
53169
  view: this.grid.view,
53137
53170
  ctrl: this.grid,
@@ -53308,7 +53341,7 @@ var GridFieldColumnController = class extends GridColumnController {
53308
53341
  };
53309
53342
 
53310
53343
  // src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
53311
- import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
53344
+ import { RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
53312
53345
  var GridUAColumnController = class extends GridColumnController {
53313
53346
  /**
53314
53347
  * 给rowController初始化操作列的状态
@@ -53321,7 +53354,7 @@ var GridUAColumnController = class extends GridColumnController {
53321
53354
  var _a3;
53322
53355
  const { deuiactionGroup } = this.model;
53323
53356
  if (!deuiactionGroup) {
53324
- throw new RuntimeModelError56(
53357
+ throw new RuntimeModelError55(
53325
53358
  this.model,
53326
53359
  ibiz.i18n.t("runtime.controller.control.grid.behaviorGroup")
53327
53360
  );
@@ -53659,7 +53692,7 @@ import {
53659
53692
  clone as clone35,
53660
53693
  DataTypes as DataTypes5,
53661
53694
  isElementSame as isElementSame4,
53662
- RuntimeModelError as RuntimeModelError57
53695
+ RuntimeModelError as RuntimeModelError56
53663
53696
  } from "@ibiz-template/core";
53664
53697
  import dayjs7 from "dayjs";
53665
53698
 
@@ -54374,13 +54407,13 @@ var ListController = class extends MDControlController {
54374
54407
  await this.updateChangedItems([draggedItem]);
54375
54408
  } else {
54376
54409
  if (!minorSortAppDEFieldId)
54377
- throw new RuntimeModelError57(
54410
+ throw new RuntimeModelError56(
54378
54411
  this.model,
54379
54412
  ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
54380
54413
  );
54381
54414
  const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
54382
54415
  if (!moveAction)
54383
- throw new RuntimeModelError57(
54416
+ throw new RuntimeModelError56(
54384
54417
  this.model,
54385
54418
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
54386
54419
  );
@@ -57094,7 +57127,7 @@ var TabExpPanelController = class extends ControlController {
57094
57127
  import {
57095
57128
  RuntimeError as RuntimeError43,
57096
57129
  recursiveIterate as recursiveIterate15,
57097
- RuntimeModelError as RuntimeModelError58
57130
+ RuntimeModelError as RuntimeModelError57
57098
57131
  } from "@ibiz-template/core";
57099
57132
  import { isNil as isNil27 } from "ramda";
57100
57133
  import { isBoolean as isBoolean4 } from "qx-util";
@@ -58693,7 +58726,7 @@ var TreeController = class extends MDControlController {
58693
58726
  const { moveAppDEActionId, appDataEntityId, allowOrder } = orderNodeModel;
58694
58727
  if (allowOrder) {
58695
58728
  if (!moveAppDEActionId) {
58696
- throw new RuntimeModelError58(
58729
+ throw new RuntimeModelError57(
58697
58730
  this.model,
58698
58731
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
58699
58732
  );
@@ -58775,7 +58808,7 @@ var TreeController = class extends MDControlController {
58775
58808
  async modifyNodeText(nodeData, text) {
58776
58809
  const model = this.getNodeModel(nodeData._nodeId);
58777
58810
  if (!model.allowEditText) {
58778
- throw new RuntimeModelError58(
58811
+ throw new RuntimeModelError57(
58779
58812
  model,
58780
58813
  ibiz.i18n.t("runtime.controller.control.tree.editMode")
58781
58814
  );
@@ -58888,7 +58921,7 @@ var TreeController = class extends MDControlController {
58888
58921
  const nodeModel = this.getNodeModel(nodeType);
58889
58922
  const parentNodeData = this.getNodeData(parentKey);
58890
58923
  if (!nodeModel) {
58891
- throw new RuntimeModelError58(
58924
+ throw new RuntimeModelError57(
58892
58925
  this.model,
58893
58926
  ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
58894
58927
  );
@@ -59022,7 +59055,7 @@ var TreeController = class extends MDControlController {
59022
59055
  }
59023
59056
  ));
59024
59057
  if (result === -1)
59025
- throw new RuntimeModelError58(
59058
+ throw new RuntimeModelError57(
59026
59059
  nodeModel,
59027
59060
  ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
59028
59061
  itemType: nodeModel.id.toLowerCase()
@@ -59061,7 +59094,7 @@ var TreeController = class extends MDControlController {
59061
59094
  }
59062
59095
  ));
59063
59096
  if (result === -1)
59064
- throw new RuntimeModelError58(
59097
+ throw new RuntimeModelError57(
59065
59098
  nodeModel,
59066
59099
  ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
59067
59100
  itemType: nodeModel.id.toLowerCase()
@@ -59657,7 +59690,7 @@ var WizardPanelController = class extends ControlController {
59657
59690
  };
59658
59691
 
59659
59692
  // src/controller/control/md-ctrl/md-ctrl.controller.ts
59660
- import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError59 } from "@ibiz-template/core";
59693
+ import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
59661
59694
  import { clone as clone38, isNil as isNil28, isNotNil as isNotNil8 } from "ramda";
59662
59695
  import { createUUID as createUUID15 } from "qx-util";
59663
59696
 
@@ -59976,7 +60009,7 @@ var MDCtrlController = class extends MDControlController {
59976
60009
  const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
59977
60010
  if (enableGroup && groupMode) {
59978
60011
  if (!groupAppDEFieldId) {
59979
- throw new RuntimeModelError59(
60012
+ throw new RuntimeModelError58(
59980
60013
  this.model,
59981
60014
  ibiz.i18n.t(
59982
60015
  "runtime.controller.control.dataView.propertiesNoConfigured"
@@ -60068,7 +60101,7 @@ var MDCtrlController = class extends MDControlController {
60068
60101
  async handleCodeListGroup() {
60069
60102
  const { groupAppDEFieldId, groupCodeListId } = this.model;
60070
60103
  if (!groupCodeListId) {
60071
- throw new RuntimeModelError59(
60104
+ throw new RuntimeModelError58(
60072
60105
  this.model,
60073
60106
  ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
60074
60107
  );
@@ -60406,7 +60439,7 @@ import {
60406
60439
  clone as clone39,
60407
60440
  RuntimeError as RuntimeError46,
60408
60441
  isElementSame as isElementSame5,
60409
- RuntimeModelError as RuntimeModelError60
60442
+ RuntimeModelError as RuntimeModelError59
60410
60443
  } from "@ibiz-template/core";
60411
60444
 
60412
60445
  // src/controller/control/kanban/kanban.service.ts
@@ -60460,7 +60493,7 @@ var KanbanController = class extends DataViewControlController {
60460
60493
  get laneDescription() {
60461
60494
  var _a3;
60462
60495
  if (this.controlParams.lanedescription)
60463
- return this.controlParams.lanedescription;
60496
+ return ibiz.appUtil.resolveI18nText(this.controlParams.lanedescription);
60464
60497
  return (_a3 = this.dataEntity) == null ? void 0 : _a3.logicName;
60465
60498
  }
60466
60499
  async initControlService() {
@@ -60696,7 +60729,7 @@ var KanbanController = class extends DataViewControlController {
60696
60729
  async handleCodeListGroup() {
60697
60730
  const { groupAppDEFieldId, groupCodeListId } = this.model;
60698
60731
  if (!groupCodeListId) {
60699
- throw new RuntimeModelError60(
60732
+ throw new RuntimeModelError59(
60700
60733
  this.model,
60701
60734
  ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
60702
60735
  );
@@ -60760,13 +60793,13 @@ var KanbanController = class extends DataViewControlController {
60760
60793
  await this.updateChangedItems([draggedItem]);
60761
60794
  } else {
60762
60795
  if (!minorSortAppDEFieldId)
60763
- throw new RuntimeModelError60(
60796
+ throw new RuntimeModelError59(
60764
60797
  this.model,
60765
60798
  ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
60766
60799
  );
60767
60800
  const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
60768
60801
  if (!moveAction)
60769
- throw new RuntimeModelError60(
60802
+ throw new RuntimeModelError59(
60770
60803
  this.model,
60771
60804
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
60772
60805
  );
@@ -60967,7 +61000,7 @@ import {
60967
61000
  RuntimeError as RuntimeError47,
60968
61001
  awaitTimeout as awaitTimeout3,
60969
61002
  recursiveIterate as recursiveIterate16,
60970
- RuntimeModelError as RuntimeModelError61
61003
+ RuntimeModelError as RuntimeModelError60
60971
61004
  } from "@ibiz-template/core";
60972
61005
  import { clone as clone40 } from "ramda";
60973
61006
 
@@ -61396,7 +61429,7 @@ var TreeGridExController = class extends TreeController {
61396
61429
  );
61397
61430
  }
61398
61431
  if (!updateAppDEActionId) {
61399
- throw new RuntimeModelError61(
61432
+ throw new RuntimeModelError60(
61400
61433
  nodeModel,
61401
61434
  ibiz.i18n.t("runtime.controller.control.treeGridEx.updateBehavior")
61402
61435
  );
@@ -61724,7 +61757,7 @@ var TreeGridExColumnController = class {
61724
61757
  import {
61725
61758
  DataTypes as DataTypes7,
61726
61759
  RuntimeError as RuntimeError48,
61727
- RuntimeModelError as RuntimeModelError62
61760
+ RuntimeModelError as RuntimeModelError61
61728
61761
  } from "@ibiz-template/core";
61729
61762
  import { clone as clone41 } from "ramda";
61730
61763
  import dayjs8 from "dayjs";
@@ -61755,7 +61788,7 @@ var TreeGridExNodeColumnController = class {
61755
61788
  }
61756
61789
  );
61757
61790
  if (!nodeColumn || !nodeDataItem) {
61758
- throw new RuntimeModelError62(
61791
+ throw new RuntimeModelError61(
61759
61792
  nodeModel,
61760
61793
  ibiz.i18n.t("runtime.controller.control.treeGridEx.noConfigured", {
61761
61794
  name: this.fieldColumn.name
@@ -61771,7 +61804,7 @@ var TreeGridExNodeColumnController = class {
61771
61804
  }
61772
61805
  );
61773
61806
  if (!nodeEditItem) {
61774
- throw new RuntimeModelError62(
61807
+ throw new RuntimeModelError61(
61775
61808
  nodeModel,
61776
61809
  ibiz.i18n.t("runtime.controller.control.treeGridEx.editItem", {
61777
61810
  name: this.fieldColumn.name
@@ -62280,7 +62313,7 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
62280
62313
  };
62281
62314
 
62282
62315
  // src/controller/control/tree-grid/tree-grid.controller.ts
62283
- import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
62316
+ import { RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
62284
62317
  import { createUUID as createUUID16 } from "qx-util";
62285
62318
  var TreeGridController = class extends GridController {
62286
62319
  constructor() {
@@ -62325,7 +62358,7 @@ var TreeGridController = class extends GridController {
62325
62358
  return item.treeColumnMode === 4 || item.treeColumnMode === 12;
62326
62359
  });
62327
62360
  if (!treeGridParent)
62328
- throw new RuntimeModelError63(
62361
+ throw new RuntimeModelError62(
62329
62362
  this.model,
62330
62363
  ibiz.i18n.t("runtime.controller.control.treeGrid.columnMode")
62331
62364
  );
@@ -62333,7 +62366,7 @@ var TreeGridController = class extends GridController {
62333
62366
  return item.treeColumnMode === 2 || item.treeColumnMode === 3;
62334
62367
  });
62335
62368
  if (!treeGridValue)
62336
- throw new RuntimeModelError63(
62369
+ throw new RuntimeModelError62(
62337
62370
  this.model,
62338
62371
  ibiz.i18n.t("runtime.controller.control.treeGrid.columnsSchema")
62339
62372
  );
@@ -67725,8 +67758,27 @@ async function getAcItemProvider(model) {
67725
67758
  return provider;
67726
67759
  }
67727
67760
 
67761
+ // src/register/helper/app-func-block-register.ts
67762
+ import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
67763
+ var APP_FUNC_BLOCK_PROVIDER_PREFIX = "APPFUNCBLOCK";
67764
+ function registerAppFuncBlockProvider(callback) {
67765
+ ibiz.register.register("".concat(APP_FUNC_BLOCK_PROVIDER_PREFIX, "_DEFAULT"), callback);
67766
+ }
67767
+ async function getAppFuncBlockProvider() {
67768
+ const provider = ibiz.register.get(
67769
+ "".concat(APP_FUNC_BLOCK_PROVIDER_PREFIX, "_DEFAULT")
67770
+ );
67771
+ if (!provider) {
67772
+ throw new RuntimeError54(
67773
+ ibiz.i18n.t("runtime.register.helper.noFoundAppFuncBlock")
67774
+ );
67775
+ } else {
67776
+ return provider;
67777
+ }
67778
+ }
67779
+
67728
67780
  // src/service/utils/app-counter/app-counter.ts
67729
- import { IBizContext as IBizContext7, RuntimeError as RuntimeError54 } from "@ibiz-template/core";
67781
+ import { IBizContext as IBizContext7, RuntimeError as RuntimeError55 } from "@ibiz-template/core";
67730
67782
  import { notNilEmpty as notNilEmpty8, QXEvent as QXEvent4 } from "qx-util";
67731
67783
  import { clone as clone47 } from "ramda";
67732
67784
  import { toNumber } from "lodash-es";
@@ -67855,7 +67907,7 @@ var AppCounter8 = class {
67855
67907
  * @return {*} {Promise<IData>}
67856
67908
  */
67857
67909
  async load() {
67858
- throw new RuntimeError54(ibiz.i18n.t("runtime.service.noImplementedCounter"));
67910
+ throw new RuntimeError55(ibiz.i18n.t("runtime.service.noImplementedCounter"));
67859
67911
  }
67860
67912
  /**
67861
67913
  * 计数器刷新
@@ -67922,7 +67974,7 @@ var AppCounter8 = class {
67922
67974
  };
67923
67975
 
67924
67976
  // src/service/utils/app-counter/app-de-counter.ts
67925
- import { RuntimeModelError as RuntimeModelError64 } from "@ibiz-template/core";
67977
+ import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
67926
67978
  var AppDECounter = class extends AppCounter8 {
67927
67979
  /**
67928
67980
  * 计数器初始化
@@ -67936,7 +67988,7 @@ var AppDECounter = class extends AppCounter8 {
67936
67988
  this.appDataEntityId = this.model.appDataEntityId;
67937
67989
  const action = this.model.getAppDEActionId;
67938
67990
  if (!action) {
67939
- throw new RuntimeModelError64(
67991
+ throw new RuntimeModelError63(
67940
67992
  this.model,
67941
67993
  ibiz.i18n.t("runtime.service.noFoundCounterBehavior")
67942
67994
  );
@@ -68083,7 +68135,7 @@ DEDQCondUtil.map = /* @__PURE__ */ new WeakMap();
68083
68135
  import {
68084
68136
  IBizContext as IBizContext8,
68085
68137
  ModelError as ModelError26,
68086
- RuntimeModelError as RuntimeModelError65,
68138
+ RuntimeModelError as RuntimeModelError64,
68087
68139
  StringUtil as StringUtil5
68088
68140
  } from "@ibiz-template/core";
68089
68141
  import { clone as clone48, isNil as isNil29 } from "ramda";
@@ -68478,13 +68530,13 @@ var DynamicCodeListCache = class {
68478
68530
  return Object.freeze(presetresultItems);
68479
68531
  }
68480
68532
  if (!appDataEntityId) {
68481
- throw new RuntimeModelError65(
68533
+ throw new RuntimeModelError64(
68482
68534
  this.codeList,
68483
68535
  ibiz.i18n.t("runtime.controller.utils.viewMsg.unconfiguredEntities")
68484
68536
  );
68485
68537
  }
68486
68538
  if (!appDEDataSetId) {
68487
- throw new RuntimeModelError65(
68539
+ throw new RuntimeModelError64(
68488
68540
  this.codeList,
68489
68541
  ibiz.i18n.t("runtime.service.unconfiguredDataset")
68490
68542
  );
@@ -68678,10 +68730,10 @@ var DynamicCodeListCache = class {
68678
68730
  // src/service/utils/de-cache/de-cache.ts
68679
68731
  import { where, equals, clone as clone49, isNil as isNil31, isEmpty as isEmpty7 } from "ramda";
68680
68732
  import { createUUID as createUUID18 } from "qx-util";
68681
- import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
68733
+ import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
68682
68734
 
68683
68735
  // src/service/utils/service-exist-util/service-exist-util.ts
68684
- import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
68736
+ import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
68685
68737
  import { isEmpty as isEmpty6, isNil as isNil30 } from "ramda";
68686
68738
  function isExistSrfKey(funcName, entity) {
68687
68739
  if (entity != null) {
@@ -68690,7 +68742,7 @@ function isExistSrfKey(funcName, entity) {
68690
68742
  return true;
68691
68743
  }
68692
68744
  }
68693
- throw new RuntimeError55(
68745
+ throw new RuntimeError56(
68694
68746
  ibiz.i18n.t("runtime.service.processedWithout", { funcName })
68695
68747
  );
68696
68748
  }
@@ -68699,7 +68751,7 @@ function isExistSessionId(funcName, context) {
68699
68751
  if (!isNil30(srfsessionid) && !isEmpty6(srfsessionid)) {
68700
68752
  return true;
68701
68753
  }
68702
- throw new RuntimeError55(
68754
+ throw new RuntimeError56(
68703
68755
  ibiz.i18n.t("runtime.service.noExistProcessed", { funcName })
68704
68756
  );
68705
68757
  }
@@ -68794,7 +68846,7 @@ var DECache = class {
68794
68846
  this.calcUnionKey(entity);
68795
68847
  if (this.checkData(context, entity.srfunionkey)) {
68796
68848
  ibiz.log.error(
68797
- new RuntimeError56(
68849
+ new RuntimeError57(
68798
68850
  ibiz.i18n.t("runtime.service.createPrimaryKeyData", {
68799
68851
  srfkey: entity.srfunionkey
68800
68852
  })
@@ -68866,7 +68918,7 @@ var DECache = class {
68866
68918
  this.calcUnionKey(entity);
68867
68919
  if (oldUnionKey !== entity.srfunionkey && this.checkData(context, entity.srfunionkey)) {
68868
68920
  ibiz.log.error(
68869
- new RuntimeError56(
68921
+ new RuntimeError57(
68870
68922
  ibiz.i18n.t("runtime.service.updatePrimaryKeyData", {
68871
68923
  srfkey: entity.srfunionkey
68872
68924
  })
@@ -69005,7 +69057,7 @@ var DECache = class {
69005
69057
  this.calcUnionKey(entity);
69006
69058
  if (oldUnionKey !== entity.srfunionkey && this.checkData(context, entity.srfunionkey)) {
69007
69059
  ibiz.log.error(
69008
- new RuntimeError56(
69060
+ new RuntimeError57(
69009
69061
  ibiz.i18n.t("runtime.service.updatePrimaryKeyData", {
69010
69062
  srfkey: entity.srfunionkey
69011
69063
  })
@@ -69459,7 +69511,7 @@ var DeMethodProcesser = class {
69459
69511
  };
69460
69512
 
69461
69513
  // src/service/service/code-list/code-list.service.ts
69462
- import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
69514
+ import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
69463
69515
  import { isNumber as isNumber4 } from "lodash-es";
69464
69516
  var CodeListService = class {
69465
69517
  constructor(appModel) {
@@ -69625,7 +69677,7 @@ var CodeListService = class {
69625
69677
  var _a3;
69626
69678
  const codeList = this.allCodeLists.get(tag);
69627
69679
  if (!codeList) {
69628
- throw new RuntimeError57(
69680
+ throw new RuntimeError58(
69629
69681
  ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
69630
69682
  );
69631
69683
  }
@@ -69688,7 +69740,7 @@ var CodeListService = class {
69688
69740
  async getItem(tag, value, context, params) {
69689
69741
  const codeList = this.allCodeLists.get(tag);
69690
69742
  if (!codeList) {
69691
- throw new RuntimeError57(
69743
+ throw new RuntimeError58(
69692
69744
  ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
69693
69745
  );
69694
69746
  }
@@ -69705,7 +69757,7 @@ var CodeListService = class {
69705
69757
  let codeListInstance;
69706
69758
  const codeList = this.allCodeLists.get(tag);
69707
69759
  if (!codeList) {
69708
- throw new RuntimeError57(
69760
+ throw new RuntimeError58(
69709
69761
  ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
69710
69762
  );
69711
69763
  }
@@ -69806,7 +69858,7 @@ var ConfigService = class {
69806
69858
  };
69807
69859
 
69808
69860
  // src/service/service/counter/counter.service.ts
69809
- import { RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
69861
+ import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
69810
69862
  var CounterService = class {
69811
69863
  /**
69812
69864
  * 获取计数器
@@ -69851,7 +69903,7 @@ var CounterService = class {
69851
69903
  static async getCounterByRef(model, context, params) {
69852
69904
  const { appCounter } = model;
69853
69905
  if (!appCounter) {
69854
- throw new RuntimeModelError66(
69906
+ throw new RuntimeModelError65(
69855
69907
  model,
69856
69908
  ibiz.i18n.t("runtime.service.noConfiguredCounters")
69857
69909
  );
@@ -69875,14 +69927,14 @@ import {
69875
69927
  HttpError as HttpError6,
69876
69928
  IBizContext as IBizContext9,
69877
69929
  ModelError as ModelError28,
69878
- RuntimeError as RuntimeError59,
69879
- RuntimeModelError as RuntimeModelError68
69930
+ RuntimeError as RuntimeError60,
69931
+ RuntimeModelError as RuntimeModelError67
69880
69932
  } from "@ibiz-template/core";
69881
69933
  import { createUUID as createUUID20 } from "qx-util";
69882
69934
  import { isNil as isNil34, isUndefined } from "lodash-es";
69883
69935
 
69884
69936
  // src/service/service/work-flow/work-flow.service.ts
69885
- import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
69937
+ import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
69886
69938
  var WorkFlowService = class {
69887
69939
  /**
69888
69940
  * Creates an instance of WorkFlowService.
@@ -70204,7 +70256,7 @@ var WorkFlowService = class {
70204
70256
  case "sendcopy":
70205
70257
  return this.wfSendCopy(context, params, data);
70206
70258
  default: {
70207
- throw new RuntimeError58(
70259
+ throw new RuntimeError59(
70208
70260
  ibiz.i18n.t("runtime.service.noImplemented", { methodName })
70209
70261
  );
70210
70262
  }
@@ -70498,7 +70550,7 @@ var AppDataEntity = class _AppDataEntity {
70498
70550
  };
70499
70551
 
70500
70552
  // src/service/dto/method.dto.ts
70501
- import { ModelError as ModelError27, RuntimeModelError as RuntimeModelError67 } from "@ibiz-template/core";
70553
+ import { ModelError as ModelError27, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
70502
70554
  import { clone as clone51 } from "ramda";
70503
70555
  var MethodDto = class {
70504
70556
  /**
@@ -70604,7 +70656,7 @@ var MethodDto = class {
70604
70656
  context
70605
70657
  );
70606
70658
  } else {
70607
- throw new RuntimeModelError67(
70659
+ throw new RuntimeModelError66(
70608
70660
  field,
70609
70661
  ibiz.i18n.t("runtime.service.subRelationships")
70610
70662
  );
@@ -70865,7 +70917,7 @@ var DEService = class {
70865
70917
  }
70866
70918
  const model = findAppDEMethod(this.model, id);
70867
70919
  if (!model) {
70868
- throw new RuntimeModelError68(
70920
+ throw new RuntimeModelError67(
70869
70921
  this.model,
70870
70922
  ibiz.i18n.t("runtime.service.noFoundServiceMethod", { id })
70871
70923
  );
@@ -70924,7 +70976,7 @@ var DEService = class {
70924
70976
  throw error;
70925
70977
  }
70926
70978
  }
70927
- throw new RuntimeError59(
70979
+ throw new RuntimeError60(
70928
70980
  ibiz.i18n.t("runtime.service.noSupportedMethod", {
70929
70981
  codeName: this.model.codeName,
70930
70982
  id
@@ -71002,7 +71054,7 @@ var DEService = class {
71002
71054
  if (method) {
71003
71055
  return method.exec(context, params, params2);
71004
71056
  }
71005
- throw new RuntimeError59(
71057
+ throw new RuntimeError60(
71006
71058
  ibiz.i18n.t("runtime.service.noSupportedMethod", {
71007
71059
  codeName: this.model.codeName,
71008
71060
  id
@@ -71166,7 +71218,7 @@ var DEService = class {
71166
71218
  };
71167
71219
 
71168
71220
  // src/service/service/authority/authority.service.ts
71169
- import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
71221
+ import { RuntimeError as RuntimeError61 } from "@ibiz-template/core";
71170
71222
 
71171
71223
  // src/service/service/authority/de-authority.service.ts
71172
71224
  var DeAuthorityService = class {
@@ -71422,7 +71474,7 @@ var AuthorityService = class {
71422
71474
  this.appModel.appId
71423
71475
  );
71424
71476
  if (!entityModel) {
71425
- throw new RuntimeError60(ibiz.i18n.t("runtime.service.noFound", { id }));
71477
+ throw new RuntimeError61(ibiz.i18n.t("runtime.service.noFound", { id }));
71426
71478
  }
71427
71479
  const constructor = this.constructorCache.get(id);
71428
71480
  let service;
@@ -71805,15 +71857,12 @@ var V7AuthService = class {
71805
71857
  * @memberof V7AuthService
71806
71858
  */
71807
71859
  async loadAppData(context) {
71808
- let res;
71809
- if (context && Object.keys(context).length > 0) {
71810
- res = await ibiz.net.get("/appdata", context);
71811
- } else {
71812
- res = await ibiz.net.get("/appdata");
71813
- }
71860
+ const appFuncBlockProvider = await getAppFuncBlockProvider();
71861
+ const res = await appFuncBlockProvider.loadAppData(context);
71814
71862
  if (res.ok) {
71815
71863
  ibiz.appData = res.data;
71816
71864
  }
71865
+ return res.ok;
71817
71866
  }
71818
71867
  /**
71819
71868
  * 清空权限数据
@@ -71866,15 +71915,15 @@ var AsyncActionService = class {
71866
71915
  import {
71867
71916
  HttpError as HttpError8,
71868
71917
  HttpResponse as HttpResponse5,
71869
- RuntimeError as RuntimeError61,
71870
- RuntimeModelError as RuntimeModelError70
71918
+ RuntimeError as RuntimeError62,
71919
+ RuntimeModelError as RuntimeModelError69
71871
71920
  } from "@ibiz-template/core";
71872
71921
  import { isArray as isArray10, isNil as isNil36, isUndefined as isUndefined2 } from "lodash-es";
71873
71922
  import { ascSort } from "qx-util";
71874
71923
  import { clone as clone52 } from "ramda";
71875
71924
 
71876
71925
  // src/service/service/entity/method/method.ts
71877
- import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError69 } from "@ibiz-template/core";
71926
+ import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError68 } from "@ibiz-template/core";
71878
71927
 
71879
71928
  // src/service/service/entity/method/method-input.ts
71880
71929
  var MethodInput = class {
@@ -72093,12 +72142,12 @@ var Method = class {
72093
72142
  break;
72094
72143
  default:
72095
72144
  if (requestMethod) {
72096
- throw new RuntimeModelError69(
72145
+ throw new RuntimeModelError68(
72097
72146
  this.method,
72098
72147
  ibiz.i18n.t("runtime.service.requestMethods", { requestMethod })
72099
72148
  );
72100
72149
  } else {
72101
- throw new RuntimeModelError69(
72150
+ throw new RuntimeModelError68(
72102
72151
  this.method,
72103
72152
  ibiz.i18n.t("runtime.service.noConfiguredRequestMethod")
72104
72153
  );
@@ -72109,7 +72158,7 @@ var Method = class {
72109
72158
  if (actionType === "SCRIPT") {
72110
72159
  return new HttpResponse4(data);
72111
72160
  }
72112
- throw new RuntimeModelError69(
72161
+ throw new RuntimeModelError68(
72113
72162
  this.method,
72114
72163
  ibiz.i18n.t("runtime.service.unsupportedBehaviorTypes", { actionType })
72115
72164
  );
@@ -72225,7 +72274,7 @@ var DEActionMethod = class extends Method {
72225
72274
  if (this.method.actionType === "DELOGIC") {
72226
72275
  const deLogic = findDELogic(this.method.appDELogicId, this.entity);
72227
72276
  if (!deLogic) {
72228
- throw new RuntimeModelError70(
72277
+ throw new RuntimeModelError69(
72229
72278
  this.method,
72230
72279
  ibiz.i18n.t("runtime.service.lackEntityLogic")
72231
72280
  );
@@ -72365,7 +72414,7 @@ var DEActionMethod = class extends Method {
72365
72414
  */
72366
72415
  async create(context, data, params, header) {
72367
72416
  if (!data) {
72368
- throw new RuntimeError61(ibiz.i18n.t("runtime.service.createBehavior"));
72417
+ throw new RuntimeError62(ibiz.i18n.t("runtime.service.createBehavior"));
72369
72418
  }
72370
72419
  if (this.isLocalMode) {
72371
72420
  const res2 = await this.executeLocalMethod(
@@ -72418,7 +72467,7 @@ var DEActionMethod = class extends Method {
72418
72467
  */
72419
72468
  async update(context, data, params, header) {
72420
72469
  if (!data) {
72421
- throw new RuntimeError61(ibiz.i18n.t("runtime.service.updateBehavior"));
72470
+ throw new RuntimeError62(ibiz.i18n.t("runtime.service.updateBehavior"));
72422
72471
  }
72423
72472
  if (this.isLocalMode) {
72424
72473
  const res2 = await this.executeLocalMethod(
@@ -72615,7 +72664,7 @@ var DEActionMethod = class extends Method {
72615
72664
  configs = ascSort(configs, "removeOrder");
72616
72665
  for (const config of configs) {
72617
72666
  if (config.rstype !== "DER1N") {
72618
- throw new RuntimeModelError70(
72667
+ throw new RuntimeModelError69(
72619
72668
  config,
72620
72669
  ibiz.i18n.t("runtime.service.deletionDeletion")
72621
72670
  );
@@ -72893,7 +72942,7 @@ var DeActionDeMethodProvider = class {
72893
72942
  import {
72894
72943
  HttpResponse as HttpResponse6,
72895
72944
  ModelError as ModelError29,
72896
- RuntimeModelError as RuntimeModelError71
72945
+ RuntimeModelError as RuntimeModelError70
72897
72946
  } from "@ibiz-template/core";
72898
72947
  import { isArray as isArray11 } from "lodash-es";
72899
72948
  import { clone as clone53, isEmpty as isEmpty9, isNil as isNil37 } from "ramda";
@@ -73094,7 +73143,7 @@ var FetchMethod = class extends Method {
73094
73143
  async fetchCodeListSet(context, params) {
73095
73144
  const { appCodeListId } = this.method;
73096
73145
  if (!appCodeListId) {
73097
- throw new RuntimeModelError71(
73146
+ throw new RuntimeModelError70(
73098
73147
  this.method,
73099
73148
  ibiz.i18n.t("runtime.service.sourceCodeTable")
73100
73149
  );
@@ -73121,7 +73170,7 @@ var FetchMethod = class extends Method {
73121
73170
  async fetchCodeListSetWithMeta(context, params) {
73122
73171
  const { appCodeListId } = this.method;
73123
73172
  if (!appCodeListId) {
73124
- throw new RuntimeModelError71(
73173
+ throw new RuntimeModelError70(
73125
73174
  this.method,
73126
73175
  ibiz.i18n.t("runtime.service.sourceCodeTable")
73127
73176
  );
@@ -73690,7 +73739,7 @@ import qs3 from "qs";
73690
73739
  import {
73691
73740
  clearAppCookie as clearAppCookie2,
73692
73741
  CoreConst as CoreConst2,
73693
- RuntimeError as RuntimeError62,
73742
+ RuntimeError as RuntimeError63,
73694
73743
  setAppCookie as setAppCookie2
73695
73744
  } from "@ibiz-template/core";
73696
73745
  var ThirdAuthService = class {
@@ -73713,7 +73762,7 @@ var ThirdAuthService = class {
73713
73762
  case "OAUTH":
73714
73763
  return this.oauthThirdAuth(params);
73715
73764
  default:
73716
- throw new RuntimeError62(
73765
+ throw new RuntimeError63(
73717
73766
  ibiz.i18n.t("runtime.service.thirdAuth.noSupported", { type })
73718
73767
  );
73719
73768
  }
@@ -73765,7 +73814,7 @@ var ThirdAuthService = class {
73765
73814
  const search = qs3.parse(window.location.search.replace("?", ""));
73766
73815
  try {
73767
73816
  if (!search.corpId) {
73768
- throw new RuntimeError62(
73817
+ throw new RuntimeError63(
73769
73818
  ibiz.i18n.t("runtime.service.thirdAuth.corpidError")
73770
73819
  );
73771
73820
  }
@@ -73774,7 +73823,7 @@ var ThirdAuthService = class {
73774
73823
  corpId: search.corpId
73775
73824
  });
73776
73825
  if (!res || !res.code) {
73777
- throw new RuntimeError62(
73826
+ throw new RuntimeError63(
73778
73827
  ibiz.i18n.t("runtime.service.thirdAuth.dingTalkCodeErrir")
73779
73828
  );
73780
73829
  }
@@ -73795,7 +73844,7 @@ var ThirdAuthService = class {
73795
73844
  window.location.href = "./?srfthird_auth_success=false";
73796
73845
  return { ok: false, data: response.data };
73797
73846
  }
73798
- throw new RuntimeError62(
73847
+ throw new RuntimeError63(
73799
73848
  ibiz.i18n.t("runtime.service.thirdAuth.dingTalkAuthError")
73800
73849
  );
73801
73850
  } catch (error) {
@@ -73832,7 +73881,7 @@ var ThirdAuthService = class {
73832
73881
  return { ok: true, data };
73833
73882
  }
73834
73883
  }
73835
- throw new RuntimeError62(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
73884
+ throw new RuntimeError63(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
73836
73885
  }
73837
73886
  /**
73838
73887
  * 企业微信嵌入授权
@@ -73903,7 +73952,7 @@ var ThirdAuthService = class {
73903
73952
  return { ok: true, data };
73904
73953
  }
73905
73954
  }
73906
- throw new RuntimeError62(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
73955
+ throw new RuntimeError63(ibiz.i18n.t("runtime.service.thirdAuth.appIdError"));
73907
73956
  }
73908
73957
  /**
73909
73958
  * oauth 登录
@@ -73916,7 +73965,7 @@ var ThirdAuthService = class {
73916
73965
  async oauthThirdAuth(params = {}) {
73917
73966
  const oauthOpenAccessId = params.oauthopenaccessid || ibiz.env.oauthOpenAccessId;
73918
73967
  if (!oauthOpenAccessId) {
73919
- throw new RuntimeError62(
73968
+ throw new RuntimeError63(
73920
73969
  ibiz.i18n.t("runtime.service.thirdAuth.oauthOpenAccessIdError")
73921
73970
  );
73922
73971
  }
@@ -73952,7 +74001,7 @@ var ThirdAuthService = class {
73952
74001
  };
73953
74002
 
73954
74003
  // src/service/service/util/ai-util.service.ts
73955
- import { RuntimeError as RuntimeError63 } from "@ibiz-template/core";
74004
+ import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
73956
74005
  var AIUtilService = class {
73957
74006
  /**
73958
74007
  * 构造函数
@@ -74113,10 +74162,10 @@ var AIUtilService = class {
74113
74162
  var _a3;
74114
74163
  const getSessionAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.getSessionAppDEActionId;
74115
74164
  if (!getSessionAppDEActionId)
74116
- throw new RuntimeError63("getSessionAppDEActionId is null");
74165
+ throw new RuntimeError64("getSessionAppDEActionId is null");
74117
74166
  const sessionService = await this.getSessionService(context);
74118
74167
  if (!sessionService)
74119
- throw new RuntimeError63("sessionService is null");
74168
+ throw new RuntimeError64("sessionService is null");
74120
74169
  const response = await sessionService.exec(
74121
74170
  getSessionAppDEActionId,
74122
74171
  context,
@@ -74141,12 +74190,12 @@ var AIUtilService = class {
74141
74190
  var _a3;
74142
74191
  const updateSessionAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.updateSessionAppDEActionId;
74143
74192
  if (!updateSessionAppDEActionId)
74144
- throw new RuntimeError63("updateSessionAppDEActionId is null");
74193
+ throw new RuntimeError64("updateSessionAppDEActionId is null");
74145
74194
  if (!data || Object.keys(data).length === 0)
74146
- throw new RuntimeError63("data is null");
74195
+ throw new RuntimeError64("data is null");
74147
74196
  const sessionService = await this.getSessionService(context);
74148
74197
  if (!sessionService)
74149
- throw new RuntimeError63("sessionService is null");
74198
+ throw new RuntimeError64("sessionService is null");
74150
74199
  const tempContext = context.clone();
74151
74200
  tempContext[this.sessionAppEntityName.toLowerCase()] = realID;
74152
74201
  const tempData = this.handleUserRequestData(data, "sessionmodelMapping");
@@ -74210,10 +74259,10 @@ var AIUtilService = class {
74210
74259
  var _a3;
74211
74260
  const getMessageAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.getMessageAppDEActionId;
74212
74261
  if (!getMessageAppDEActionId)
74213
- throw new RuntimeError63("getMessageAppDEActionId is null");
74262
+ throw new RuntimeError64("getMessageAppDEActionId is null");
74214
74263
  const messageService = await this.getMessageService(context);
74215
74264
  if (!messageService)
74216
- throw new RuntimeError63("messageService is null");
74265
+ throw new RuntimeError64("messageService is null");
74217
74266
  const response = await messageService.exec(
74218
74267
  getMessageAppDEActionId,
74219
74268
  context,
@@ -74268,10 +74317,10 @@ var AIUtilService = class {
74268
74317
  return false;
74269
74318
  const { likeMessageAppDEActionId } = this.utilParams;
74270
74319
  if (!likeMessageAppDEActionId)
74271
- throw new RuntimeError63("likeMessageAppDEActionId is null");
74320
+ throw new RuntimeError64("likeMessageAppDEActionId is null");
74272
74321
  const messageService = await this.getMessageService(context);
74273
74322
  if (!messageService)
74274
- throw new RuntimeError63("messageService is null");
74323
+ throw new RuntimeError64("messageService is null");
74275
74324
  const tempContext = context.clone();
74276
74325
  tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
74277
74326
  await messageService.exec(
@@ -74296,10 +74345,10 @@ var AIUtilService = class {
74296
74345
  return false;
74297
74346
  const { dislikeMessageAppDEActionId } = this.utilParams;
74298
74347
  if (!dislikeMessageAppDEActionId)
74299
- throw new RuntimeError63("dislikeMessageAppDEActionId is null");
74348
+ throw new RuntimeError64("dislikeMessageAppDEActionId is null");
74300
74349
  const messageService = await this.getMessageService(context);
74301
74350
  if (!messageService)
74302
- throw new RuntimeError63("messageService is null");
74351
+ throw new RuntimeError64("messageService is null");
74303
74352
  const tempContext = context.clone();
74304
74353
  tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
74305
74354
  await messageService.exec(
@@ -74324,10 +74373,10 @@ var AIUtilService = class {
74324
74373
  return false;
74325
74374
  const { cancelFeedbackMessageAppDEActionId } = this.utilParams;
74326
74375
  if (!cancelFeedbackMessageAppDEActionId)
74327
- throw new RuntimeError63("cancelFeedbackAppDEActionId is null");
74376
+ throw new RuntimeError64("cancelFeedbackAppDEActionId is null");
74328
74377
  const messageService = await this.getMessageService(context);
74329
74378
  if (!messageService)
74330
- throw new RuntimeError63("messageService is null");
74379
+ throw new RuntimeError64("messageService is null");
74331
74380
  const tempContext = context.clone();
74332
74381
  tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
74333
74382
  await messageService.exec(
@@ -74691,7 +74740,7 @@ var CollaborateService = class {
74691
74740
  };
74692
74741
 
74693
74742
  // src/service/de-service-util.ts
74694
- import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
74743
+ import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
74695
74744
  var _DEServiceUtil = class _DEServiceUtil {
74696
74745
  /**
74697
74746
  * Creates an instance of DEServiceUtil.
@@ -74825,7 +74874,7 @@ var _DEServiceUtil = class _DEServiceUtil {
74825
74874
  appid || this.appModel.appId
74826
74875
  );
74827
74876
  if (!entityModel) {
74828
- throw new RuntimeError64(ibiz.i18n.t("runtime.service.noFound", { id }));
74877
+ throw new RuntimeError65(ibiz.i18n.t("runtime.service.noFound", { id }));
74829
74878
  }
74830
74879
  const constructor = _DEServiceUtil.constructorCache.get(id.toUpperCase());
74831
74880
  let service;
@@ -75181,7 +75230,7 @@ var CustomThemeUtil = class {
75181
75230
  ibiz.i18n.t("runtime.controller.utils.customThemeUtil.saveSuccess")
75182
75231
  );
75183
75232
  } else {
75184
- throw new RuntimeError65(
75233
+ throw new RuntimeError66(
75185
75234
  ibiz.i18n.t("runtime.controller.utils.customThemeUtil.saveError")
75186
75235
  );
75187
75236
  }
@@ -75210,7 +75259,7 @@ var CustomThemeUtil = class {
75210
75259
  ibiz.i18n.t("runtime.controller.utils.customThemeUtil.resetSuccess")
75211
75260
  );
75212
75261
  } else {
75213
- throw new RuntimeError65(
75262
+ throw new RuntimeError66(
75214
75263
  ibiz.i18n.t("runtime.controller.utils.customThemeUtil.resetError")
75215
75264
  );
75216
75265
  }
@@ -77574,7 +77623,7 @@ var AnimeUtil = class {
77574
77623
  // src/utils/file-util/file-util.ts
77575
77624
  import {
77576
77625
  CoreConst as CoreConst3,
77577
- RuntimeError as RuntimeError66,
77626
+ RuntimeError as RuntimeError67,
77578
77627
  downloadFileFromBlob as downloadFileFromBlob2,
77579
77628
  getAppCookie as getAppCookie2
77580
77629
  } from "@ibiz-template/core";
@@ -77944,7 +77993,7 @@ var FileUtil = class {
77944
77993
  downloadTicketParams
77945
77994
  );
77946
77995
  if (!downloadTicket) {
77947
- throw new RuntimeError66(
77996
+ throw new RuntimeError67(
77948
77997
  "runtime.utils.fileUtil.getDownloadTicketFailed"
77949
77998
  );
77950
77999
  }
@@ -77957,10 +78006,10 @@ var FileUtil = class {
77957
78006
  // 已经有baseURL了,这里无需再写
77958
78007
  });
77959
78008
  if (response.status !== 200) {
77960
- throw new RuntimeError66(ibiz.i18n.t("runtime.platform.failedDownload"));
78009
+ throw new RuntimeError67(ibiz.i18n.t("runtime.platform.failedDownload"));
77961
78010
  }
77962
78011
  if (!response.data) {
77963
- throw new RuntimeError66(ibiz.i18n.t("runtime.platform.fileStreamData"));
78012
+ throw new RuntimeError67(ibiz.i18n.t("runtime.platform.fileStreamData"));
77964
78013
  } else {
77965
78014
  let fileName = ibiz.util.file.getFileName(response);
77966
78015
  if (name2)
@@ -77986,7 +78035,7 @@ var FileUtil = class {
77986
78035
  data: formData
77987
78036
  });
77988
78037
  if (res.status !== 200) {
77989
- throw new RuntimeError66(
78038
+ throw new RuntimeError67(
77990
78039
  ibiz.i18n.t("runtime.utils.fileUtil.fileUploadFailed")
77991
78040
  );
77992
78041
  }
@@ -78136,7 +78185,7 @@ var FileUtil = class {
78136
78185
  downloadTicketParams
78137
78186
  );
78138
78187
  if (!downloadTicket) {
78139
- throw new RuntimeError66(
78188
+ throw new RuntimeError67(
78140
78189
  "runtime.utils.fileUtil.getDownloadTicketFailed"
78141
78190
  );
78142
78191
  }
@@ -78149,10 +78198,10 @@ var FileUtil = class {
78149
78198
  // 已经有 baseURL,不需要再写
78150
78199
  });
78151
78200
  if (response.status !== 200) {
78152
- throw new RuntimeError66(ibiz.i18n.t("runtime.platform.failedDownload"));
78201
+ throw new RuntimeError67(ibiz.i18n.t("runtime.platform.failedDownload"));
78153
78202
  }
78154
78203
  if (!response.data) {
78155
- throw new RuntimeError66(ibiz.i18n.t("runtime.platform.fileStreamData"));
78204
+ throw new RuntimeError67(ibiz.i18n.t("runtime.platform.fileStreamData"));
78156
78205
  }
78157
78206
  return response.data;
78158
78207
  }
@@ -78348,7 +78397,7 @@ var ShortCutUtil = class {
78348
78397
 
78349
78398
  // src/utils/bi-report-util/bi-report-util.ts
78350
78399
  import { clone as clone57 } from "ramda";
78351
- import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
78400
+ import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
78352
78401
  var BIReportUtil = class {
78353
78402
  /**
78354
78403
  * 打开设计界面
@@ -78385,7 +78434,7 @@ var BIReportUtil = class {
78385
78434
  }
78386
78435
  }
78387
78436
  } catch (error) {
78388
- throw new RuntimeError67(error.message);
78437
+ throw new RuntimeError68(error.message);
78389
78438
  }
78390
78439
  } else if (data.mode === "UI") {
78391
78440
  config = this.translateReportPanelToConfig(data.reportPanel.model);
@@ -78781,7 +78830,7 @@ var BIReportUtil = class {
78781
78830
  };
78782
78831
 
78783
78832
  // src/utils/record-nav-util/record-nav-util.ts
78784
- import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
78833
+ import { RuntimeError as RuntimeError69 } from "@ibiz-template/core";
78785
78834
  import { createUUID as createUUID24 } from "qx-util";
78786
78835
  var RecordNavUtil = class {
78787
78836
  constructor() {
@@ -78888,7 +78937,7 @@ var RecordNavUtil = class {
78888
78937
  async getFirstRecord(ctrlId, dataId) {
78889
78938
  const targrtCtrl = this.getCtrl(ctrlId);
78890
78939
  if (!targrtCtrl) {
78891
- throw new RuntimeError68(
78940
+ throw new RuntimeError69(
78892
78941
  ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
78893
78942
  ctrlId
78894
78943
  })
@@ -78919,7 +78968,7 @@ var RecordNavUtil = class {
78919
78968
  async getPreviousRecord(ctrlId, dataId) {
78920
78969
  const targrtCtrl = this.getCtrl(ctrlId);
78921
78970
  if (!targrtCtrl) {
78922
- throw new RuntimeError68(
78971
+ throw new RuntimeError69(
78923
78972
  ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
78924
78973
  ctrlId
78925
78974
  })
@@ -78958,7 +79007,7 @@ var RecordNavUtil = class {
78958
79007
  async getNextRecord(ctrlId, dataId) {
78959
79008
  const targrtCtrl = this.getCtrl(ctrlId);
78960
79009
  if (!targrtCtrl) {
78961
- throw new RuntimeError68(
79010
+ throw new RuntimeError69(
78962
79011
  ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
78963
79012
  ctrlId
78964
79013
  })
@@ -79010,7 +79059,7 @@ var RecordNavUtil = class {
79010
79059
  async getLastRecord(ctrlId, dataId) {
79011
79060
  const targrtCtrl = this.getCtrl(ctrlId);
79012
79061
  if (!targrtCtrl) {
79013
- throw new RuntimeError68(
79062
+ throw new RuntimeError69(
79014
79063
  ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
79015
79064
  ctrlId
79016
79065
  })
@@ -79052,7 +79101,7 @@ var JsonSchemaUtil = class {
79052
79101
  "ISNOTNULL" /* IS_NOT_NULL */,
79053
79102
  "USERLIKE" /* USER_LIKE */,
79054
79103
  "LIKE" /* LIKE */,
79055
- "LIFTLIKE" /* LIFT_LIKE */,
79104
+ "LEFTLIKE" /* LEFT_LIKE */,
79056
79105
  "RIGHT_LIKE" /* RIGHT_LIKE */
79057
79106
  ],
79058
79107
  ["NUMBER" /* NUMBER */]: [
@@ -79212,8 +79261,8 @@ var JsonSchemaUtil = class {
79212
79261
  label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.like")
79213
79262
  },
79214
79263
  {
79215
- valueOP: "LIFTLIKE" /* LIFT_LIKE */,
79216
- label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.lift_like")
79264
+ valueOP: "LEFTLIKE" /* LEFT_LIKE */,
79265
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.left_like")
79217
79266
  },
79218
79267
  {
79219
79268
  valueOP: "RIGHT_LIKE" /* RIGHT_LIKE */,
@@ -79551,7 +79600,7 @@ var Html2Canvas = class {
79551
79600
  };
79552
79601
 
79553
79602
  // src/utils/voice-util/voice-util.ts
79554
- import { RuntimeError as RuntimeError69 } from "@ibiz-template/core";
79603
+ import { RuntimeError as RuntimeError70 } from "@ibiz-template/core";
79555
79604
  var VoiceUtil = class {
79556
79605
  /**
79557
79606
  * 文字转语音
@@ -79587,7 +79636,7 @@ var VoiceUtil = class {
79587
79636
  * @date 2024-12-20 15:07:31
79588
79637
  */
79589
79638
  speechToText() {
79590
- throw new RuntimeError69(ibiz.i18n.t("runtime.common.unrealized"));
79639
+ throw new RuntimeError70(ibiz.i18n.t("runtime.common.unrealized"));
79591
79640
  }
79592
79641
  };
79593
79642
 
@@ -84900,7 +84949,7 @@ async function calcDynamicMenu(menu, context, params) {
84900
84949
  }
84901
84950
 
84902
84951
  // src/command/app/open-app-view/open-app-view.ts
84903
- import { ModelError as ModelError30, RuntimeError as RuntimeError70 } from "@ibiz-template/core";
84952
+ import { ModelError as ModelError30, RuntimeError as RuntimeError71 } from "@ibiz-template/core";
84904
84953
  import { clone as clone59 } from "ramda";
84905
84954
  var _OpenAppViewCommand = class _OpenAppViewCommand {
84906
84955
  constructor() {
@@ -84924,7 +84973,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
84924
84973
  }
84925
84974
  const appView = await ibiz.hub.config.view.get(appViewId);
84926
84975
  if (!appView) {
84927
- throw new RuntimeError70(
84976
+ throw new RuntimeError71(
84928
84977
  ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
84929
84978
  appViewId
84930
84979
  })
@@ -85054,7 +85103,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
85054
85103
  async openPopover(appView, context, params = {}, opts = {}) {
85055
85104
  const { event, modalOption } = opts;
85056
85105
  if (!event) {
85057
- throw new RuntimeError70(ibiz.i18n.t("runtime.command.app.missingEvent"));
85106
+ throw new RuntimeError71(ibiz.i18n.t("runtime.command.app.missingEvent"));
85058
85107
  }
85059
85108
  if (opts.parentData) {
85060
85109
  params.parentData = stringifyObj(opts.parentData);
@@ -85138,7 +85187,7 @@ var _AppFuncCommand = class _AppFuncCommand {
85138
85187
  const app = await ibiz.hub.getAppAsync(context.srfappid);
85139
85188
  const appFunc = app.getAppFunc(appFuncId);
85140
85189
  if (!appFunc) {
85141
- throw new RuntimeError71(
85190
+ throw new RuntimeError72(
85142
85191
  ibiz.i18n.t("runtime.command.app.noFindApplicationFunction", {
85143
85192
  appFuncId
85144
85193
  })
@@ -85184,7 +85233,7 @@ var _AppFuncCommand = class _AppFuncCommand {
85184
85233
  */
85185
85234
  async openAppView(appFunc, context, params, opts) {
85186
85235
  if (!appFunc.appViewId) {
85187
- throw new RuntimeError71(
85236
+ throw new RuntimeError72(
85188
85237
  ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
85189
85238
  appViewId: appFunc.appViewId
85190
85239
  })
@@ -85222,7 +85271,7 @@ var _AppFuncCommand = class _AppFuncCommand {
85222
85271
  */
85223
85272
  openPdAppFunc(appFunc, context, params) {
85224
85273
  ibiz.log.warn("openPdAppFunc", appFunc, context, params);
85225
- throw new RuntimeError71(ibiz.i18n.t("runtime.common.unrealized"));
85274
+ throw new RuntimeError72(ibiz.i18n.t("runtime.common.unrealized"));
85226
85275
  }
85227
85276
  /**
85228
85277
  * 执行 JavaScript 脚本
@@ -85274,7 +85323,7 @@ var _AppFuncCommand = class _AppFuncCommand {
85274
85323
  */
85275
85324
  custom(appFunc, context, params) {
85276
85325
  ibiz.log.warn("custom", appFunc, context, params);
85277
- throw new RuntimeError71(ibiz.i18n.t("runtime.common.unrealized"));
85326
+ throw new RuntimeError72(ibiz.i18n.t("runtime.common.unrealized"));
85278
85327
  }
85279
85328
  };
85280
85329
  /**
@@ -85295,7 +85344,7 @@ function installCommand() {
85295
85344
  }
85296
85345
 
85297
85346
  // src/app-hub.ts
85298
- import { getToken as getToken2, RuntimeError as RuntimeError73 } from "@ibiz-template/core";
85347
+ import { getToken as getToken2, RuntimeError as RuntimeError74 } from "@ibiz-template/core";
85299
85348
 
85300
85349
  // src/application.ts
85301
85350
  import { Net } from "@ibiz-template/core";
@@ -85617,7 +85666,7 @@ var Convert = class {
85617
85666
  };
85618
85667
 
85619
85668
  // src/hub/config/app-view-config-service.ts
85620
- import { RuntimeError as RuntimeError72 } from "@ibiz-template/core";
85669
+ import { RuntimeError as RuntimeError73 } from "@ibiz-template/core";
85621
85670
  var AppViewConfigService = class {
85622
85671
  constructor() {
85623
85672
  /**
@@ -85712,7 +85761,7 @@ var AppViewConfigService = class {
85712
85761
  if (!this.viewConfigs.has(id)) {
85713
85762
  const model = await ibiz.hub.getAppView(id);
85714
85763
  if (!model) {
85715
- throw new RuntimeError72(ibiz.i18n.t("runtime.hub.noExist", { id }));
85764
+ throw new RuntimeError73(ibiz.i18n.t("runtime.hub.noExist", { id }));
85716
85765
  }
85717
85766
  this.set(model.id, {
85718
85767
  id: model.id,
@@ -86742,7 +86791,7 @@ var AppHub = class {
86742
86791
  this.registerAppView(appView);
86743
86792
  return appView;
86744
86793
  }
86745
- throw new RuntimeError73(ibiz.i18n.t("runtime.hub.noExist", { id }));
86794
+ throw new RuntimeError74(ibiz.i18n.t("runtime.hub.noExist", { id }));
86746
86795
  }
86747
86796
  /**
86748
86797
  * 根据DrControl的名称和子应用标识获取模型
@@ -86850,7 +86899,7 @@ var AppHub = class {
86850
86899
  );
86851
86900
  return model;
86852
86901
  }
86853
- throw new RuntimeError73(
86902
+ throw new RuntimeError74(
86854
86903
  ibiz.i18n.t("runtime.hub.noExist", { id: modelPath })
86855
86904
  );
86856
86905
  }
@@ -86893,7 +86942,7 @@ var AppHub = class {
86893
86942
  this.registerAppDataEntity(entity, appId2);
86894
86943
  return entity;
86895
86944
  }
86896
- throw new RuntimeError73(ibiz.i18n.t("runtime.service.noFound", { id }));
86945
+ throw new RuntimeError74(ibiz.i18n.t("runtime.service.noFound", { id }));
86897
86946
  }
86898
86947
  /**
86899
86948
  * 根据代码表标识获取子应用代码表
@@ -86920,7 +86969,7 @@ var AppHub = class {
86920
86969
  return this.appMap.get(id);
86921
86970
  }
86922
86971
  if (!this.modelLoaderProvider) {
86923
- throw new RuntimeError73(ibiz.i18n.t("runtime.utils.firstregister"));
86972
+ throw new RuntimeError74(ibiz.i18n.t("runtime.utils.firstregister"));
86924
86973
  }
86925
86974
  const appModel = await this.modelLoaderProvider.getApp(id);
86926
86975
  const subAppRef = await this.modelLoaderProvider.getSubAppRef(id);
@@ -87060,7 +87109,7 @@ var AppHub = class {
87060
87109
  */
87061
87110
  mergeSubAppCodeList(codeList) {
87062
87111
  if (!this.modelLoaderProvider) {
87063
- throw new RuntimeError73(ibiz.i18n.t("runtime.utils.firstregister"));
87112
+ throw new RuntimeError74(ibiz.i18n.t("runtime.utils.firstregister"));
87064
87113
  }
87065
87114
  this.modelLoaderProvider.mergeSubAppCodeList(codeList);
87066
87115
  }
@@ -87162,7 +87211,7 @@ var EngineFactory = class {
87162
87211
 
87163
87212
  // src/engine/view-base.engine.ts
87164
87213
  import {
87165
- RuntimeError as RuntimeError74,
87214
+ RuntimeError as RuntimeError75,
87166
87215
  findRecursiveChild as findRecursiveChild3,
87167
87216
  IBizContext as IBizContext10
87168
87217
  } from "@ibiz-template/core";
@@ -87638,7 +87687,7 @@ var ViewEngineBase = class {
87638
87687
  const { appDataEntityId } = this.view.model;
87639
87688
  const { evt, context, params } = this.view;
87640
87689
  if (!appDataEntityId) {
87641
- throw new RuntimeError74(ibiz.i18n.t("runtime.engine.loadEntityData"));
87690
+ throw new RuntimeError75(ibiz.i18n.t("runtime.engine.loadEntityData"));
87642
87691
  }
87643
87692
  const app = ibiz.hub.getApp(context.srfappid);
87644
87693
  const res = await app.deService.exec(
@@ -87719,7 +87768,7 @@ var ViewEngineBase = class {
87719
87768
  };
87720
87769
 
87721
87770
  // src/engine/md-view.engine.ts
87722
- import { RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
87771
+ import { RuntimeModelError as RuntimeModelError71 } from "@ibiz-template/core";
87723
87772
  import { clone as clone61 } from "ramda";
87724
87773
  var MDViewEngine = class extends ViewEngineBase {
87725
87774
  /**
@@ -87971,7 +88020,7 @@ var MDViewEngine = class extends ViewEngineBase {
87971
88020
  view: this.view
87972
88021
  }));
87973
88022
  if (result === -1) {
87974
- throw new RuntimeModelError72(
88023
+ throw new RuntimeModelError71(
87975
88024
  this.view.model,
87976
88025
  ibiz.i18n.t("runtime.engine.logicOpendata")
87977
88026
  );
@@ -88003,7 +88052,7 @@ var MDViewEngine = class extends ViewEngineBase {
88003
88052
  (item) => item.id === "newdata"
88004
88053
  );
88005
88054
  if (!openAppViewLogic) {
88006
- throw new RuntimeModelError72(
88055
+ throw new RuntimeModelError71(
88007
88056
  this.view.model,
88008
88057
  ibiz.i18n.t("runtime.engine.logicNewdata")
88009
88058
  );
@@ -88023,7 +88072,7 @@ var MDViewEngine = class extends ViewEngineBase {
88023
88072
  view: this.view
88024
88073
  }));
88025
88074
  if (result === -1) {
88026
- throw new RuntimeModelError72(
88075
+ throw new RuntimeModelError71(
88027
88076
  this.view.model,
88028
88077
  ibiz.i18n.t("runtime.engine.logicNewdata")
88029
88078
  );
@@ -88755,7 +88804,7 @@ var gBase64 = {
88755
88804
  };
88756
88805
 
88757
88806
  // src/global/global-util/global-util.ts
88758
- import { RuntimeError as RuntimeError75 } from "@ibiz-template/core";
88807
+ import { RuntimeError as RuntimeError76 } from "@ibiz-template/core";
88759
88808
  var GlobalUtil = class {
88760
88809
  constructor() {
88761
88810
  /**
@@ -88901,7 +88950,7 @@ var GlobalUtil = class {
88901
88950
  * @memberof GlobalUtil
88902
88951
  */
88903
88952
  getGlobalParam() {
88904
- throw new RuntimeError75(ibiz.i18n.t("runtime.global.noImplemented"));
88953
+ throw new RuntimeError76(ibiz.i18n.t("runtime.global.noImplemented"));
88905
88954
  }
88906
88955
  /**
88907
88956
  * @description 获取视图路由参数变量,数组类型,基于路由解析出来的,每一个对象里面都有context和params
@@ -88909,7 +88958,7 @@ var GlobalUtil = class {
88909
88958
  * @memberof GlobalUtil
88910
88959
  */
88911
88960
  getRouterParams() {
88912
- throw new RuntimeError75(ibiz.i18n.t("runtime.global.noImplementedRouting"));
88961
+ throw new RuntimeError76(ibiz.i18n.t("runtime.global.noImplementedRouting"));
88913
88962
  }
88914
88963
  /**
88915
88964
  * @description 注册全局功能类扩展,用于替换预置能力
@@ -88924,7 +88973,7 @@ var GlobalUtil = class {
88924
88973
  };
88925
88974
 
88926
88975
  // src/logic-scheduler/executor/logic-executor.ts
88927
- import { RuntimeError as RuntimeError76 } from "@ibiz-template/core";
88976
+ import { RuntimeError as RuntimeError77 } from "@ibiz-template/core";
88928
88977
  var LogicExecutor = class {
88929
88978
  /**
88930
88979
  * @author lxm
@@ -88945,7 +88994,7 @@ var LogicExecutor = class {
88945
88994
  */
88946
88995
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
88947
88996
  execute(_executeParams) {
88948
- throw new RuntimeError76(
88997
+ throw new RuntimeError77(
88949
88998
  ibiz.i18n.t("runtime.logicScheduler.executor.noImplementedMethod")
88950
88999
  );
88951
89000
  }
@@ -89032,24 +89081,33 @@ var ScriptExecutor = class extends LogicExecutor {
89032
89081
  init(paramKeys, convertFun, options) {
89033
89082
  this.convertScriptArgs = convertFun;
89034
89083
  const code = this.logic.scriptCode;
89035
- this.scriptFn = ScriptFactory.createScriptFn(paramKeys, code, options);
89084
+ try {
89085
+ this.scriptFn = ScriptFactory.createScriptFn(paramKeys, code, options);
89086
+ } catch (error) {
89087
+ ibiz.log.error(
89088
+ ibiz.i18n.t("runtime.utils.script.errorReportingScript"),
89089
+ code
89090
+ );
89091
+ }
89036
89092
  this.initialized = true;
89037
89093
  }
89038
89094
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
89039
89095
  execute(executeParams) {
89040
89096
  const scriptArgs = this.convertScriptArgs(executeParams);
89041
- return this.scriptFn.exec(scriptArgs);
89097
+ if (this.scriptFn) {
89098
+ return this.scriptFn.exec(scriptArgs);
89099
+ }
89042
89100
  }
89043
89101
  };
89044
89102
 
89045
89103
  // src/logic-scheduler/executor/app-de-ui-logic-executor.ts
89046
- import { RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
89104
+ import { RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
89047
89105
  var AppDEUILogicExecutor = class extends LogicExecutor {
89048
89106
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
89049
89107
  execute(executeParams) {
89050
89108
  const { appDEUILogicId, appDataEntityId } = this.logic;
89051
89109
  if (!appDEUILogicId) {
89052
- throw new RuntimeModelError73(
89110
+ throw new RuntimeModelError72(
89053
89111
  this.logic,
89054
89112
  ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
89055
89113
  );
@@ -89415,7 +89473,7 @@ var LogicSchedulerCenter = class {
89415
89473
  };
89416
89474
 
89417
89475
  // src/logic-scheduler/trigger/logic-trigger.ts
89418
- import { RuntimeError as RuntimeError77 } from "@ibiz-template/core";
89476
+ import { RuntimeError as RuntimeError78 } from "@ibiz-template/core";
89419
89477
  var LogicTrigger = class {
89420
89478
  /**
89421
89479
  * @author lxm
@@ -89476,7 +89534,7 @@ var LogicTrigger = class {
89476
89534
  if (this.executor) {
89477
89535
  return this.executor.execute(executeParams);
89478
89536
  }
89479
- throw new RuntimeError77(
89537
+ throw new RuntimeError78(
89480
89538
  ibiz.i18n.t("runtime.logicScheduler.trigger.noExecutorBound", {
89481
89539
  id: this.logic.id
89482
89540
  })
@@ -89497,12 +89555,12 @@ var CustomTrigger = class extends LogicTrigger {
89497
89555
  };
89498
89556
 
89499
89557
  // src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
89500
- import { RuntimeError as RuntimeError78 } from "@ibiz-template/core";
89558
+ import { RuntimeError as RuntimeError79 } from "@ibiz-template/core";
89501
89559
  var ItemDynaLogicTrigger = class extends LogicTrigger {
89502
89560
  bindExecutor(executor) {
89503
89561
  super.bindExecutor(executor);
89504
89562
  if (this.executor.type !== "SCRIPT") {
89505
- throw new RuntimeError78(
89563
+ throw new RuntimeError79(
89506
89564
  ibiz.i18n.t("runtime.logicScheduler.trigger.triggerType")
89507
89565
  );
89508
89566
  }
@@ -89540,7 +89598,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
89540
89598
  };
89541
89599
 
89542
89600
  // src/logic-scheduler/trigger/timer-trigger.ts
89543
- import { RuntimeError as RuntimeError79, RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
89601
+ import { RuntimeError as RuntimeError80, RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
89544
89602
  var TimerTrigger = class extends LogicTrigger {
89545
89603
  constructor() {
89546
89604
  super(...arguments);
@@ -89548,14 +89606,14 @@ var TimerTrigger = class extends LogicTrigger {
89548
89606
  }
89549
89607
  start() {
89550
89608
  if (!this.logic.timer) {
89551
- throw new RuntimeModelError74(
89609
+ throw new RuntimeModelError73(
89552
89610
  this.logic,
89553
89611
  ibiz.i18n.t("runtime.logicScheduler.trigger.timerLacks")
89554
89612
  );
89555
89613
  }
89556
89614
  this.timer = setInterval(() => {
89557
89615
  if (!this.scheduler.defaultParamsCb) {
89558
- throw new RuntimeError79(
89616
+ throw new RuntimeError80(
89559
89617
  ibiz.i18n.t("runtime.logicScheduler.trigger.parameterCallback")
89560
89618
  );
89561
89619
  }
@@ -89587,8 +89645,8 @@ var TimerTrigger = class extends LogicTrigger {
89587
89645
  // src/logic-scheduler/executor/app-ui-logic-executor.ts
89588
89646
  import {
89589
89647
  ModelError as ModelError34,
89590
- RuntimeError as RuntimeError80,
89591
- RuntimeModelError as RuntimeModelError75
89648
+ RuntimeError as RuntimeError81,
89649
+ RuntimeModelError as RuntimeModelError74
89592
89650
  } from "@ibiz-template/core";
89593
89651
  import { notNilEmpty as notNilEmpty11 } from "qx-util";
89594
89652
  var AppUILogicExecutor = class extends LogicExecutor {
@@ -89625,7 +89683,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89625
89683
  const { context, params, ...rest } = parameters;
89626
89684
  const { data, view } = parameters;
89627
89685
  if (!(data == null ? void 0 : data[0])) {
89628
- throw new RuntimeError80(
89686
+ throw new RuntimeError81(
89629
89687
  ibiz.i18n.t("runtime.logicScheduler.executor.noActionableData")
89630
89688
  );
89631
89689
  }
@@ -89636,7 +89694,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89636
89694
  } else {
89637
89695
  openViewRef = appUILogic.openDataAppView;
89638
89696
  if (!openViewRef) {
89639
- throw new RuntimeModelError75(
89697
+ throw new RuntimeModelError74(
89640
89698
  appUILogic,
89641
89699
  ibiz.i18n.t(
89642
89700
  "runtime.logicScheduler.executor.defaultOpendataViewLogic"
@@ -89646,7 +89704,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89646
89704
  }
89647
89705
  const openView = openViewRef.refAppViewId;
89648
89706
  if (!openView) {
89649
- throw new RuntimeModelError75(
89707
+ throw new RuntimeModelError74(
89650
89708
  appUILogic,
89651
89709
  ibiz.i18n.t("runtime.logicScheduler.executor.noActuallyReference")
89652
89710
  );
@@ -89684,7 +89742,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89684
89742
  );
89685
89743
  const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
89686
89744
  if (!typeFileName) {
89687
- throw new RuntimeModelError75(
89745
+ throw new RuntimeModelError74(
89688
89746
  appUILogic,
89689
89747
  ibiz.i18n.t("runtime.logicScheduler.executor.attributeConfiguration", {
89690
89748
  codeName: appDataEntity.codeName
@@ -89694,7 +89752,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89694
89752
  const { data } = parameters;
89695
89753
  const formTypeValue = data[0][typeFileName];
89696
89754
  if (!formTypeValue) {
89697
- throw new RuntimeModelError75(
89755
+ throw new RuntimeModelError74(
89698
89756
  appUILogic,
89699
89757
  ibiz.i18n.t("runtime.logicScheduler.executor.entityAttributeValues")
89700
89758
  );
@@ -89702,7 +89760,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89702
89760
  const openViewRefs = appUILogic.openDataAppViews;
89703
89761
  const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
89704
89762
  if (!findView) {
89705
- throw new RuntimeError80(
89763
+ throw new RuntimeError81(
89706
89764
  ibiz.i18n.t("runtime.logicScheduler.executor.editViews", {
89707
89765
  formTypeValue
89708
89766
  })
@@ -89741,7 +89799,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89741
89799
  return viewRef.refMode.toLowerCase() !== parentDeName;
89742
89800
  });
89743
89801
  if (!newViewRef) {
89744
- throw new RuntimeModelError75(
89802
+ throw new RuntimeModelError74(
89745
89803
  appUILogic,
89746
89804
  ibiz.i18n.t("runtime.logicScheduler.executor.selectionView")
89747
89805
  );
@@ -89754,7 +89812,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89754
89812
  } else {
89755
89813
  newViewRef = newDataAppView;
89756
89814
  if (!newViewRef || !newViewRef.refAppViewId) {
89757
- throw new RuntimeModelError75(
89815
+ throw new RuntimeModelError74(
89758
89816
  appUILogic,
89759
89817
  ibiz.i18n.t("runtime.logicScheduler.executor.newdataViewLogic")
89760
89818
  );
@@ -89827,7 +89885,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89827
89885
  const { context, params, ...rest } = parameters;
89828
89886
  const { view } = parameters;
89829
89887
  if (!wizardAppView || !wizardAppView.refAppViewId) {
89830
- throw new RuntimeModelError75(
89888
+ throw new RuntimeModelError74(
89831
89889
  appUILogic,
89832
89890
  ibiz.i18n.t("runtime.logicScheduler.executor.indexEntity")
89833
89891
  );
@@ -89844,7 +89902,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89844
89902
  }
89845
89903
  const selectData = (_a3 = result.data) == null ? void 0 : _a3[0];
89846
89904
  if (!selectData) {
89847
- throw new RuntimeError80(
89905
+ throw new RuntimeError81(
89848
89906
  ibiz.i18n.t("runtime.logicScheduler.executor.checkOne")
89849
89907
  );
89850
89908
  }
@@ -89856,7 +89914,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89856
89914
  }
89857
89915
  );
89858
89916
  if (!findView) {
89859
- throw new RuntimeError80(
89917
+ throw new RuntimeError81(
89860
89918
  ibiz.i18n.t("runtime.logicScheduler.executor.entitiesAssociated", {
89861
89919
  indexType
89862
89920
  })
@@ -89885,7 +89943,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89885
89943
  const minorDERs = selfDe.minorAppDERSs;
89886
89944
  const pickParentDeName = newViewRef.refMode.toLowerCase();
89887
89945
  if (!minorDERs) {
89888
- throw new RuntimeModelError75(
89946
+ throw new RuntimeModelError74(
89889
89947
  selfDe,
89890
89948
  ibiz.i18n.t("runtime.logicScheduler.executor.relationships")
89891
89949
  );
@@ -89898,7 +89956,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
89898
89956
  }
89899
89957
  });
89900
89958
  if (pickParentFieldName === void 0) {
89901
- throw new RuntimeError80(
89959
+ throw new RuntimeError81(
89902
89960
  ibiz.i18n.t("runtime.logicScheduler.executor.foreignKey", {
89903
89961
  pickParentDeName
89904
89962
  })
@@ -89996,12 +90054,12 @@ var ControlEventTrigger = class extends LogicTrigger {
89996
90054
  };
89997
90055
 
89998
90056
  // src/logic-scheduler/executor/app-ui-action-executor.ts
89999
- import { RuntimeModelError as RuntimeModelError76 } from "@ibiz-template/core";
90057
+ import { RuntimeModelError as RuntimeModelError75 } from "@ibiz-template/core";
90000
90058
  var AppDEUIActionExecutor = class extends LogicExecutor {
90001
90059
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
90002
90060
  execute(executeParams) {
90003
90061
  if (!this.logic.appDEUIActionId) {
90004
- throw new RuntimeModelError76(
90062
+ throw new RuntimeModelError75(
90005
90063
  this.logic,
90006
90064
  ibiz.i18n.t("runtime.logicScheduler.executor.missingTrigger")
90007
90065
  );
@@ -90461,7 +90519,7 @@ var en = {
90461
90519
  in: "Value In range (In)",
90462
90520
  not_in: "Value not in range (NotIn)",
90463
90521
  like: "Text contains (%)",
90464
- lift_like: "Text left contained (%#)",
90522
+ left_like: "Text left contained (%#)",
90465
90523
  right_like: "Text right included (#%)",
90466
90524
  exists: "exists(EXISTS)",
90467
90525
  not_exists: "Does not exist (NOTEXISTS)"
@@ -90595,6 +90653,7 @@ var en = {
90595
90653
  adapter: "Cannot find the adapter corresponding to the system counter plugin {pluginKey}.",
90596
90654
  customizedSystemAdapter: "Cannot find the adapter corresponding to the customized system counter {codeName}.",
90597
90655
  noFoundSystemCounter: "Adapter for system counter type {counterType} is not found.",
90656
+ noFoundAppFuncBlock: "Cannot find the default adapter for the application function block.",
90598
90657
  applicationMenu: "Cannot find the adapter corresponding to the application menu item plugin {pluginKey}.",
90599
90658
  asynchronousAction: "Find the adapter that does not correspond to the asynchronous action type {actiontype}.",
90600
90659
  matchedPlugin: "Not matched to plugin [{pluginId}] model",
@@ -91144,7 +91203,7 @@ var zhCn = {
91144
91203
  in: "\u503C\u5728\u8303\u56F4\u4E2D(In)",
91145
91204
  not_in: "\u503C\u4E0D\u5728\u8303\u56F4\u4E2D(NotIn)",
91146
91205
  like: "\u6587\u672C\u5305\u542B(%)",
91147
- lift_like: "\u6587\u672C\u5DE6\u5305\u542B(%#)",
91206
+ left_like: "\u6587\u672C\u5DE6\u5305\u542B(%#)",
91148
91207
  right_like: "\u6587\u672C\u53F3\u5305\u542B(#%)",
91149
91208
  exists: "\u5B58\u5728(EXISTS)",
91150
91209
  not_exists: "\u4E0D\u5B58\u5728(NOTEXISTS)"
@@ -91277,6 +91336,7 @@ var zhCn = {
91277
91336
  adapter: "\u627E\u4E0D\u5230\u7CFB\u7EDF\u8BA1\u6570\u5668\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91278
91337
  customizedSystemAdapter: "\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u7CFB\u7EDF\u8BA1\u6570\u5668{codeName}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91279
91338
  noFoundSystemCounter: "\u627E\u4E0D\u7CFB\u7EDF\u8BA1\u6570\u5668\u7C7B\u578B{counterType}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91339
+ noFoundAppFuncBlock: "\u627E\u4E0D\u5230\u5E94\u7528\u529F\u80FD\u5757\u9ED8\u8BA4\u9002\u914D\u5668",
91280
91340
  applicationMenu: "\u627E\u4E0D\u5230\u5E94\u7528\u83DC\u5355\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91281
91341
  asynchronousAction: "\u627E\u4E0D\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B{actiontype}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
91282
91342
  matchedPlugin: "\u672A\u5339\u914D\u5230\u63D2\u4EF6[{pluginId}]\u6A21\u578B",
@@ -91555,6 +91615,7 @@ export {
91555
91615
  AIUtilService,
91556
91616
  APPMENUITEM_PROVIDER_PREFIX,
91557
91617
  APP_COUNTER_PROVIDER_PREFIX,
91618
+ APP_FUNC_BLOCK_PROVIDER_PREFIX,
91558
91619
  ASYNC_ACTION_PROVIDER_PREFIX,
91559
91620
  AcFetchMethod,
91560
91621
  ActionBarPortletController,
@@ -91934,6 +91995,7 @@ export {
91934
91995
  getAllPanelField,
91935
91996
  getAllUIActionItems,
91936
91997
  getAppCounterProvider,
91998
+ getAppFuncBlockProvider,
91937
91999
  getAppMenuItemProvider,
91938
92000
  getAppViewRef,
91939
92001
  getAreaLevelByCode,
@@ -92018,6 +92080,7 @@ export {
92018
92080
  presetUIActionProvider,
92019
92081
  registerAcItemProvider,
92020
92082
  registerAppCounterProvider,
92083
+ registerAppFuncBlockProvider,
92021
92084
  registerAppMenuItemProvider,
92022
92085
  registerAsyncActionProvider,
92023
92086
  registerControlProvider,