@ibiz-template/runtime 0.6.2-dev.0 → 0.6.2

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 (30) hide show
  1. package/dist/index.esm.js +425 -186
  2. package/dist/index.system.min.js +1 -1
  3. package/out/controller/common/control/control.controller.d.ts.map +1 -1
  4. package/out/controller/common/control/control.controller.js +20 -15
  5. package/out/controller/common/control/md-control.controller.d.ts +3 -4
  6. package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
  7. package/out/controller/common/control/md-control.controller.js +14 -13
  8. package/out/controller/control/calendar/calendar.controller.d.ts +31 -1
  9. package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
  10. package/out/controller/control/calendar/calendar.controller.js +67 -0
  11. package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
  12. package/out/controller/control/chart/chart.controller.js +1 -0
  13. package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
  14. package/out/controller/control/form/form/form.controller.js +2 -1
  15. package/out/controller/control/gantt/gantt.controller.d.ts +48 -1
  16. package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
  17. package/out/controller/control/gantt/gantt.controller.js +90 -7
  18. package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
  19. package/out/controller/control/grid/grid/grid.controller.js +6 -2
  20. package/out/controller/control/tree/tree.controller.d.ts +3 -4
  21. package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
  22. package/out/controller/control/tree/tree.controller.js +19 -8
  23. package/out/controller/control/tree/tree.service.d.ts +22 -0
  24. package/out/controller/control/tree/tree.service.d.ts.map +1 -1
  25. package/out/controller/control/tree/tree.service.js +30 -0
  26. package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
  27. package/out/controller/notification/internal-message.controller.js +11 -2
  28. package/out/interface/util/i-notification-util/i-notification-util.d.ts +14 -0
  29. package/out/interface/util/i-notification-util/i-notification-util.d.ts.map +1 -1
  30. package/package.json +4 -3
package/dist/index.esm.js CHANGED
@@ -15708,26 +15708,34 @@ var ControlController = class extends BaseController {
15708
15708
  * @return {*} {void}
15709
15709
  */
15710
15710
  actionNotification(tag, opts) {
15711
- var _a;
15712
- const { ctrlMsg } = this.model;
15713
- const msgItem = (_a = ctrlMsg == null ? void 0 : ctrlMsg.ctrlMsgItems) == null ? void 0 : _a.find((item) => item.name === tag);
15714
- let message;
15711
+ let message = "";
15715
15712
  let duration;
15716
- if (msgItem && msgItem.content) {
15717
- duration = isNil23(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
15718
- const scriptParams = { ...this.getEventArgs() };
15719
- if (opts == null ? void 0 : opts.data) {
15720
- scriptParams.data = opts.data;
15721
- }
15722
- message = ScriptFactory.execScriptFn(
15723
- scriptParams,
15724
- "`".concat(msgItem.content, "`"),
15725
- {
15726
- isAsync: false,
15727
- singleRowReturn: true
15728
- }
15713
+ const { ctrlMsg } = this.model;
15714
+ if (ctrlMsg && ctrlMsg.ctrlMsgItems) {
15715
+ const hiddenSsgItem = ctrlMsg.ctrlMsgItems.find(
15716
+ (item) => item.name === "".concat(tag, "_HIDDEN")
15729
15717
  );
15730
- } else {
15718
+ if (hiddenSsgItem) {
15719
+ return;
15720
+ }
15721
+ const msgItem = ctrlMsg.ctrlMsgItems.find((item) => item.name === tag);
15722
+ if (msgItem && msgItem.content) {
15723
+ duration = isNil23(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
15724
+ const scriptParams = { ...this.getEventArgs() };
15725
+ if (opts == null ? void 0 : opts.data) {
15726
+ scriptParams.data = opts.data;
15727
+ }
15728
+ message = ScriptFactory.execScriptFn(
15729
+ scriptParams,
15730
+ "`".concat(msgItem.content, "`"),
15731
+ {
15732
+ isAsync: false,
15733
+ singleRowReturn: true
15734
+ }
15735
+ );
15736
+ }
15737
+ }
15738
+ if (!message && ibiz.i18n) {
15731
15739
  const resTag = "CONTROL.".concat(this.model.controlType, ".").concat(tag).toUpperCase();
15732
15740
  message = ibiz.i18n.t(resTag, "");
15733
15741
  if (message === resTag) {
@@ -16062,13 +16070,7 @@ var MDControlController = class extends ControlController {
16062
16070
  try {
16063
16071
  await handleAllSettled(
16064
16072
  data.map(async (item) => {
16065
- const deName = this.getRemoveDeName(item);
16066
- if (item.srfuf !== 0 /* CREATE */) {
16067
- const tempContext = context.clone();
16068
- tempContext[deName] = item.srfkey;
16069
- await this.service.remove(tempContext, params);
16070
- needRefresh = true;
16071
- }
16073
+ needRefresh = await this.handleItemRemove(item, context, params);
16072
16074
  this.afterRemove(item);
16073
16075
  })
16074
16076
  );
@@ -16095,14 +16097,21 @@ var MDControlController = class extends ControlController {
16095
16097
  await this._evt.emit("onRemoveSuccess", void 0);
16096
16098
  }
16097
16099
  /**
16098
- * 获取删除实体codeName
16099
- * @param {IData} _item
16100
+ * 删除每一项
16100
16101
  * @return {*}
16101
16102
  * @author: zhujiamin
16102
- * @Date: 2024-02-22 16:47:44
16103
+ * @Date: 2024-02-27 09:47:52
16103
16104
  */
16104
- getRemoveDeName(_item) {
16105
- return calcDeCodeNameById(this.model.appDataEntityId);
16105
+ async handleItemRemove(item, context, params) {
16106
+ let needRefresh = false;
16107
+ const deName = calcDeCodeNameById(this.model.appDataEntityId);
16108
+ if (item.srfuf !== 0 /* CREATE */) {
16109
+ const tempContext = context.clone();
16110
+ tempContext[deName] = item.srfkey;
16111
+ await this.service.remove(tempContext, params);
16112
+ needRefresh = true;
16113
+ }
16114
+ return needRefresh;
16106
16115
  }
16107
16116
  /**
16108
16117
  * 后台删除结束后界面删除逻辑
@@ -16473,6 +16482,7 @@ var AppMenuIconViewController = class extends AppMenuController {
16473
16482
 
16474
16483
  // src/controller/control/calendar/calendar.controller.ts
16475
16484
  import dayjs3 from "dayjs";
16485
+ import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
16476
16486
 
16477
16487
  // src/controller/control/calendar/calendar.service.ts
16478
16488
  import { RuntimeError as RuntimeError38 } from "@ibiz-template/core";
@@ -16594,6 +16604,73 @@ var CalendarController = class extends MDControlController {
16594
16604
  await super.onCreated();
16595
16605
  this.service = new CalendarService(this.model);
16596
16606
  await this.service.init(this.context);
16607
+ this.initViewScheduler();
16608
+ }
16609
+ /**
16610
+ * 初始化视图触发器
16611
+ *
16612
+ * @protected
16613
+ * @memberof CalendarService
16614
+ */
16615
+ initViewScheduler() {
16616
+ const viewLogics = this.model.appViewLogics || [];
16617
+ if (viewLogics.length !== 0) {
16618
+ this.viewScheduler = ibiz.scheduler.createViewScheduler(viewLogics);
16619
+ this.viewScheduler.defaultParamsCb = () => {
16620
+ return this.getEventArgs();
16621
+ };
16622
+ if (this.viewScheduler.hasViewEventTrigger) {
16623
+ this.evt.onAll((_eventName, event) => {
16624
+ this.viewScheduler.triggerViewEvent(event);
16625
+ });
16626
+ }
16627
+ }
16628
+ }
16629
+ /**
16630
+ * 设置激活数据
16631
+ *
16632
+ * @param {ICalendarItemData} item
16633
+ * @return {*} {Promise<void>}
16634
+ * @memberof CalendarService
16635
+ */
16636
+ async setActive(item) {
16637
+ this.openData(item);
16638
+ return this._evt.emit("onActive", {
16639
+ data: [item]
16640
+ });
16641
+ }
16642
+ /**
16643
+ * 打开编辑数据视图
16644
+ *
16645
+ * @param {ICalendarItemData} item
16646
+ * @memberof CalendarService
16647
+ */
16648
+ async openData(item) {
16649
+ var _a, _b;
16650
+ const context = this.context.clone();
16651
+ const deName = ((_a = item.deData.srfdecodename) == null ? void 0 : _a.toLowerCase()) || calcDeCodeNameById(this.model.appDataEntityId);
16652
+ context[deName.toLowerCase()] = item.deData.srfkey;
16653
+ const result = await ((_b = this.viewScheduler) == null ? void 0 : _b.triggerCustom(
16654
+ "".concat(item.itemType.toLowerCase(), "_opendata"),
16655
+ {
16656
+ context,
16657
+ params: this.params,
16658
+ data: [item.deData],
16659
+ event: void 0,
16660
+ view: this.view,
16661
+ ctrl: this
16662
+ }
16663
+ ));
16664
+ if (result === -1) {
16665
+ throw new RuntimeModelError28(
16666
+ this.model,
16667
+ "\u7F3A\u5C11".concat(item.itemType.toLowerCase(), "_opendata\u7684\u89C6\u56FE\u903B\u8F91")
16668
+ );
16669
+ } else {
16670
+ return {
16671
+ cancel: result ? result.ok : true
16672
+ };
16673
+ }
16597
16674
  }
16598
16675
  /**
16599
16676
  * 日历加载
@@ -16756,10 +16833,10 @@ import { mergeDeepRight as mergeDeepRight3 } from "ramda";
16756
16833
  import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
16757
16834
 
16758
16835
  // src/controller/control/chart/generator/line-series-generator.ts
16759
- import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
16836
+ import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
16760
16837
 
16761
16838
  // src/controller/control/chart/generator/base-series-generator.ts
16762
- import { plus, RuntimeModelError as RuntimeModelError28, toNumberOrNil } from "@ibiz-template/core";
16839
+ import { plus, RuntimeModelError as RuntimeModelError29, toNumberOrNil } from "@ibiz-template/core";
16763
16840
  import dayjs4 from "dayjs";
16764
16841
  import minMax2 from "dayjs/plugin/minMax";
16765
16842
  import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
@@ -16809,10 +16886,10 @@ var BaseSeriesGenerator = class {
16809
16886
  this.chartGenerator = chartGenerator;
16810
16887
  const { chartSeriesEncode, caption, id, userParam } = model;
16811
16888
  if (!model.catalogField) {
16812
- throw new RuntimeModelError28(model, "\u7F3A\u5C11\u5206\u7C7B\u5C5E\u6027\u914D\u7F6E");
16889
+ throw new RuntimeModelError29(model, "\u7F3A\u5C11\u5206\u7C7B\u5C5E\u6027\u914D\u7F6E");
16813
16890
  }
16814
16891
  if (!model.valueField) {
16815
- throw new RuntimeModelError28(model, "\u7F3A\u5C11\u503C\u5C5E\u6027\u914D\u7F6E");
16892
+ throw new RuntimeModelError29(model, "\u7F3A\u5C11\u503C\u5C5E\u6027\u914D\u7F6E");
16816
16893
  }
16817
16894
  this.catalogField = chartGenerator.getFieldKey(model.catalogField);
16818
16895
  this.valueField = chartGenerator.getFieldKey(model.valueField);
@@ -17235,10 +17312,10 @@ var BaseSeriesGenerator = class {
17235
17312
  var LineSeriesGenerator = class extends BaseSeriesGenerator {
17236
17313
  calcStaticOptions() {
17237
17314
  if (this.xAxisIndex === void 0) {
17238
- throw new RuntimeModelError29(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
17315
+ throw new RuntimeModelError30(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
17239
17316
  }
17240
17317
  if (this.yAxisIndex === void 0) {
17241
- throw new RuntimeModelError29(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
17318
+ throw new RuntimeModelError30(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
17242
17319
  }
17243
17320
  const options = super.calcStaticOptions();
17244
17321
  options.xAxisIndex = this.xAxisIndex;
@@ -17254,14 +17331,14 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
17254
17331
  };
17255
17332
 
17256
17333
  // src/controller/control/chart/generator/bar-series-generator.ts
17257
- import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
17334
+ import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
17258
17335
  var BarSeriesGenerator = class extends BaseSeriesGenerator {
17259
17336
  calcStaticOptions() {
17260
17337
  if (this.xAxisIndex === void 0) {
17261
- throw new RuntimeModelError30(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
17338
+ throw new RuntimeModelError31(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
17262
17339
  }
17263
17340
  if (this.yAxisIndex === void 0) {
17264
- throw new RuntimeModelError30(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
17341
+ throw new RuntimeModelError31(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
17265
17342
  }
17266
17343
  const options = super.calcStaticOptions();
17267
17344
  options.xAxisIndex = this.xAxisIndex;
@@ -17314,14 +17391,14 @@ var PieSeriesGenerator = class extends BaseSeriesGenerator {
17314
17391
  };
17315
17392
 
17316
17393
  // src/controller/control/chart/generator/scatter-series-generator.ts
17317
- import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
17394
+ import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
17318
17395
  var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
17319
17396
  calcStaticOptions() {
17320
17397
  if (this.xAxisIndex === void 0) {
17321
- throw new RuntimeModelError31(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
17398
+ throw new RuntimeModelError32(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
17322
17399
  }
17323
17400
  if (this.yAxisIndex === void 0) {
17324
- throw new RuntimeModelError31(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
17401
+ throw new RuntimeModelError32(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
17325
17402
  }
17326
17403
  const options = super.calcStaticOptions();
17327
17404
  options.xAxisIndex = this.xAxisIndex;
@@ -17832,6 +17909,7 @@ var ChartController = class extends MDControlController {
17832
17909
  await this.service.init(this.context);
17833
17910
  this.generator = new ChartOptionsGenerator2(this.model);
17834
17911
  await this.generator.init(this.context, this.params);
17912
+ this.resizeChart = this.resizeChart.bind(this);
17835
17913
  window.addEventListener("resize", this.resizeChart);
17836
17914
  }
17837
17915
  async afterLoad(args, items) {
@@ -17922,17 +18000,17 @@ var CaptionBarController = class extends ControlController {
17922
18000
  import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError49 } from "@ibiz-template/core";
17923
18001
 
17924
18002
  // src/ui-action/provider/backend-ui-action-provider.ts
17925
- import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
18003
+ import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
17926
18004
  import { isArray as isArray8 } from "qx-util";
17927
18005
 
17928
18006
  // src/ui-action/provider/ui-action-provider-base.ts
17929
- import { RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
18007
+ import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
17930
18008
 
17931
18009
  // src/ui-logic/index.ts
17932
18010
  import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
17933
18011
 
17934
18012
  // src/ui-logic/ui-logic.ts
17935
- import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
18013
+ import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
17936
18014
 
17937
18015
  // src/ui-logic/ui-logic-context.ts
17938
18016
  var UILogicContext = class {
@@ -18078,20 +18156,20 @@ var UILogicContext = class {
18078
18156
  };
18079
18157
 
18080
18158
  // src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
18081
- import { RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
18159
+ import { RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
18082
18160
 
18083
18161
  // src/ui-logic/ui-logic-link/ui-logic-link.ts
18084
18162
  import { ModelError as ModelError20 } from "@ibiz-template/core";
18085
18163
 
18086
18164
  // src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
18087
- import { RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
18165
+ import { RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
18088
18166
 
18089
18167
  // src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
18090
18168
  var UILogicLinkCond = class {
18091
18169
  };
18092
18170
 
18093
18171
  // src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
18094
- import { ModelError as ModelError19, RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
18172
+ import { ModelError as ModelError19, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
18095
18173
 
18096
18174
  // src/ui-logic/utils/handle-src-val.ts
18097
18175
  import { ModelError as ModelError18 } from "@ibiz-template/core";
@@ -18189,7 +18267,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
18189
18267
  switch (this.type) {
18190
18268
  case "ENTITYFIELD": {
18191
18269
  if (!this.value) {
18192
- throw new RuntimeModelError32(
18270
+ throw new RuntimeModelError33(
18193
18271
  this.model,
18194
18272
  "\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
18195
18273
  );
@@ -18201,7 +18279,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
18201
18279
  }
18202
18280
  case "SRCENTITYFIELD": {
18203
18281
  if (!this.value) {
18204
- throw new RuntimeModelError32(
18282
+ throw new RuntimeModelError33(
18205
18283
  this.model,
18206
18284
  "\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6E90\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
18207
18285
  );
@@ -18280,7 +18358,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
18280
18358
  test(ctx, context, data) {
18281
18359
  let bol = true;
18282
18360
  if (this.conds.length === 0) {
18283
- throw new RuntimeModelError33(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
18361
+ throw new RuntimeModelError34(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
18284
18362
  }
18285
18363
  for (let i = 0; i < this.conds.length; i++) {
18286
18364
  const cond = this.conds[i];
@@ -18411,10 +18489,10 @@ var DEActionNode2 = class extends UILogicNode {
18411
18489
  retDEUILogicParamId
18412
18490
  } = this.model;
18413
18491
  if (!dstAppDataEntityId) {
18414
- throw new RuntimeModelError34(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
18492
+ throw new RuntimeModelError35(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
18415
18493
  }
18416
18494
  if (!dstAppDEActionId) {
18417
- throw new RuntimeModelError34(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
18495
+ throw new RuntimeModelError35(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
18418
18496
  }
18419
18497
  const requestData = ctx.params[dstDEUILogicParamId];
18420
18498
  const app = ibiz.hub.getApp(ctx.context.srfappid);
@@ -18436,13 +18514,13 @@ var DEActionNode2 = class extends UILogicNode {
18436
18514
  };
18437
18515
 
18438
18516
  // src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
18439
- import { RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
18517
+ import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
18440
18518
  var DEUIActionNode = class extends UILogicNode {
18441
18519
  async exec(ctx) {
18442
18520
  const { dstAppDEUIActionId, dstDEUILogicParamId, dstAppDataEntityId } = this.model;
18443
18521
  const { data, parameters } = ctx;
18444
18522
  if (!dstAppDEUIActionId) {
18445
- throw new RuntimeModelError35(this.model, "\u672A\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
18523
+ throw new RuntimeModelError36(this.model, "\u672A\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
18446
18524
  }
18447
18525
  let actionData = [data];
18448
18526
  if (dstDEUILogicParamId) {
@@ -18691,20 +18769,20 @@ var PrepareJSParamNode = class extends UILogicNode {
18691
18769
  };
18692
18770
 
18693
18771
  // src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
18694
- import { RuntimeError as RuntimeError42, RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
18772
+ import { RuntimeError as RuntimeError42, RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
18695
18773
  import { isFunction } from "lodash-es";
18696
18774
  var ViewCtrlInvokeNode = class extends UILogicNode {
18697
18775
  async exec(ctx) {
18698
18776
  ctx.isEndNode = true;
18699
18777
  const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
18700
18778
  if (!invokeCtrlId) {
18701
- throw new RuntimeModelError36(this.model, "\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u5BF9\u8C61");
18779
+ throw new RuntimeModelError37(this.model, "\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u5BF9\u8C61");
18702
18780
  }
18703
18781
  if (!invokeParamId) {
18704
- throw new RuntimeModelError36(this.model, "\u6CA1\u6709\u914D\u7F6E\u64CD\u4F5C\u53C2\u6570");
18782
+ throw new RuntimeModelError37(this.model, "\u6CA1\u6709\u914D\u7F6E\u64CD\u4F5C\u53C2\u6570");
18705
18783
  }
18706
18784
  if (!invokeMethod) {
18707
- throw new RuntimeModelError36(this.model, "\u6CA1\u6709\u914D\u7F6E\u8C03\u7528\u65B9\u6CD5");
18785
+ throw new RuntimeModelError37(this.model, "\u6CA1\u6709\u914D\u7F6E\u8C03\u7528\u65B9\u6CD5");
18708
18786
  }
18709
18787
  const invokeParam = ctx.params[invokeParamId];
18710
18788
  if (!invokeParam) {
@@ -18726,12 +18804,12 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
18726
18804
  };
18727
18805
 
18728
18806
  // src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts
18729
- import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
18807
+ import { RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
18730
18808
  var BindParamNode2 = class extends UILogicNode {
18731
18809
  async exec(ctx) {
18732
18810
  const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
18733
18811
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
18734
- throw new RuntimeModelError37(
18812
+ throw new RuntimeModelError38(
18735
18813
  this.model,
18736
18814
  "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
18737
18815
  );
@@ -18746,7 +18824,7 @@ var BindParamNode2 = class extends UILogicNode {
18746
18824
  };
18747
18825
 
18748
18826
  // src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts
18749
- import { ModelError as ModelError23, RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
18827
+ import { ModelError as ModelError23, RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
18750
18828
  var MsgBoxNode = class extends UILogicNode {
18751
18829
  constructor() {
18752
18830
  super(...arguments);
@@ -18760,10 +18838,10 @@ var MsgBoxNode = class extends UILogicNode {
18760
18838
  async exec(ctx) {
18761
18839
  const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
18762
18840
  if (!msgBoxType) {
18763
- throw new RuntimeModelError38(this.model, "\u7F3A\u5C11\u6D88\u606F\u7C7B\u578B\u7684\u914D\u7F6E");
18841
+ throw new RuntimeModelError39(this.model, "\u7F3A\u5C11\u6D88\u606F\u7C7B\u578B\u7684\u914D\u7F6E");
18764
18842
  }
18765
18843
  if (!buttonsType) {
18766
- throw new RuntimeModelError38(this.model, "\u7F3A\u5C11\u6309\u94AE\u7C7B\u578B\u7684\u914D\u7F6E");
18844
+ throw new RuntimeModelError39(this.model, "\u7F3A\u5C11\u6309\u94AE\u7C7B\u578B\u7684\u914D\u7F6E");
18767
18845
  }
18768
18846
  let { title } = this.model;
18769
18847
  let { message } = this.model;
@@ -18829,12 +18907,12 @@ var PFPluginNode = class extends UILogicNode {
18829
18907
  };
18830
18908
 
18831
18909
  // src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
18832
- import { RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
18910
+ import { RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
18833
18911
  var DebugParamNode = class extends UILogicNode {
18834
18912
  async exec(ctx) {
18835
18913
  const { dstDEUILogicParamId, name } = this.model;
18836
18914
  if (!dstDEUILogicParamId) {
18837
- throw new RuntimeModelError39(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
18915
+ throw new RuntimeModelError40(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
18838
18916
  }
18839
18917
  const param = ctx.params[dstDEUILogicParamId];
18840
18918
  ibiz.log.info("\u903B\u8F91\u8282\u70B9".concat(name, "\u64CD\u4F5C\u53C2\u6570\u503C:"), param);
@@ -18842,12 +18920,12 @@ var DebugParamNode = class extends UILogicNode {
18842
18920
  };
18843
18921
 
18844
18922
  // src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts
18845
- import { RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
18923
+ import { RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
18846
18924
  var ResetParamNode2 = class extends UILogicNode {
18847
18925
  async exec(ctx) {
18848
18926
  const { dstDEUILogicParamId } = this.model;
18849
18927
  if (!dstDEUILogicParamId) {
18850
- throw new RuntimeModelError40(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
18928
+ throw new RuntimeModelError41(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
18851
18929
  }
18852
18930
  ctx.resetParam(dstDEUILogicParamId);
18853
18931
  ibiz.log.debug(
@@ -18857,13 +18935,13 @@ var ResetParamNode2 = class extends UILogicNode {
18857
18935
  };
18858
18936
 
18859
18937
  // src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
18860
- import { RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
18938
+ import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
18861
18939
  import { clone as clone23 } from "ramda";
18862
18940
  var CopyParamNode2 = class extends UILogicNode {
18863
18941
  async exec(ctx) {
18864
18942
  const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
18865
18943
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
18866
- throw new RuntimeModelError41(
18944
+ throw new RuntimeModelError42(
18867
18945
  this.model,
18868
18946
  "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
18869
18947
  );
@@ -18878,7 +18956,7 @@ var CopyParamNode2 = class extends UILogicNode {
18878
18956
  };
18879
18957
 
18880
18958
  // src/ui-logic/ui-logic-node/append-param-node/append-param-node.ts
18881
- import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
18959
+ import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
18882
18960
  var AppendParamNode2 = class extends UILogicNode {
18883
18961
  async exec(ctx) {
18884
18962
  const {
@@ -18889,7 +18967,7 @@ var AppendParamNode2 = class extends UILogicNode {
18889
18967
  srcSize
18890
18968
  } = this.model;
18891
18969
  if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
18892
- throw new RuntimeModelError42(
18970
+ throw new RuntimeModelError43(
18893
18971
  this.model,
18894
18972
  "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
18895
18973
  );
@@ -18913,12 +18991,12 @@ var AppendParamNode2 = class extends UILogicNode {
18913
18991
  };
18914
18992
 
18915
18993
  // src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts
18916
- import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
18994
+ import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
18917
18995
  var SortParamNode2 = class extends UILogicNode {
18918
18996
  async exec(ctx) {
18919
18997
  const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
18920
18998
  if (!dstDEUILogicParamId || !dstFieldName) {
18921
- throw new RuntimeModelError43(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u76EE\u6807\u5C5E\u6027\u914D\u7F6E");
18999
+ throw new RuntimeModelError44(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u76EE\u6807\u5C5E\u6027\u914D\u7F6E");
18922
19000
  }
18923
19001
  const key = dstFieldName;
18924
19002
  const arr = ctx.params[dstDEUILogicParamId];
@@ -18933,12 +19011,12 @@ var SortParamNode2 = class extends UILogicNode {
18933
19011
  };
18934
19012
 
18935
19013
  // src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts
18936
- import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
19014
+ import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
18937
19015
  var RenewParamNode2 = class extends UILogicNode {
18938
19016
  async exec(ctx) {
18939
19017
  const { dstDEUILogicParamId } = this.model;
18940
19018
  if (!dstDEUILogicParamId) {
18941
- throw new RuntimeModelError44(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
19019
+ throw new RuntimeModelError45(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
18942
19020
  }
18943
19021
  ctx.renewParam(dstDEUILogicParamId);
18944
19022
  ibiz.log.debug(
@@ -18948,7 +19026,7 @@ var RenewParamNode2 = class extends UILogicNode {
18948
19026
  };
18949
19027
 
18950
19028
  // src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts
18951
- import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
19029
+ import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
18952
19030
  var DataSetNode2 = class extends UILogicNode {
18953
19031
  async exec(ctx) {
18954
19032
  const {
@@ -18958,7 +19036,7 @@ var DataSetNode2 = class extends UILogicNode {
18958
19036
  retDEUILogicParamId
18959
19037
  } = this.model;
18960
19038
  if (!dstDEUILogicParamId) {
18961
- throw new RuntimeModelError45(this.model, "\u7F3A\u5C11\u914D\u7F6E\u8FC7\u6EE4\u53C2\u6570");
19039
+ throw new RuntimeModelError46(this.model, "\u7F3A\u5C11\u914D\u7F6E\u8FC7\u6EE4\u53C2\u6570");
18962
19040
  }
18963
19041
  const queryParams = ctx.params[dstDEUILogicParamId];
18964
19042
  const app = ibiz.hub.getApp(ctx.context.srfappid);
@@ -18991,19 +19069,19 @@ var ThrowExceptionNode2 = class extends UILogicNode {
18991
19069
  };
18992
19070
 
18993
19071
  // src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
18994
- import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
19072
+ import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
18995
19073
  var ViewCtrlFireEventNode = class extends UILogicNode {
18996
19074
  async exec(ctx) {
18997
19075
  ctx.isEndNode = true;
18998
19076
  const { eventName, eventParamId, fireCtrlId } = this.model;
18999
19077
  if (!fireCtrlId) {
19000
- throw new RuntimeModelError46(this.model, "\u6CA1\u6709\u914D\u7F6E\u89E6\u53D1\u5BF9\u8C61");
19078
+ throw new RuntimeModelError47(this.model, "\u6CA1\u6709\u914D\u7F6E\u89E6\u53D1\u5BF9\u8C61");
19001
19079
  }
19002
19080
  if (!eventName) {
19003
- throw new RuntimeModelError46(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u540D\u79F0\u53C2\u6570");
19081
+ throw new RuntimeModelError47(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u540D\u79F0\u53C2\u6570");
19004
19082
  }
19005
19083
  if (!eventParamId) {
19006
- throw new RuntimeModelError46(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u53C2\u6570");
19084
+ throw new RuntimeModelError47(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u53C2\u6570");
19007
19085
  }
19008
19086
  const invokeCtrl = ctx.params[fireCtrlId];
19009
19087
  if (!invokeCtrl) {
@@ -19022,7 +19100,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
19022
19100
  };
19023
19101
 
19024
19102
  // src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
19025
- import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
19103
+ import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
19026
19104
  var ExecuteDELogicNode = class extends UILogicNode {
19027
19105
  async exec(ctx) {
19028
19106
  const {
@@ -19032,13 +19110,13 @@ var ExecuteDELogicNode = class extends UILogicNode {
19032
19110
  retDEUILogicParamId
19033
19111
  } = this.model;
19034
19112
  if (!dstAppDataEntityId) {
19035
- throw new RuntimeModelError47(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
19113
+ throw new RuntimeModelError48(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
19036
19114
  }
19037
19115
  if (!dstAppDELogicId) {
19038
- throw new RuntimeModelError47(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91");
19116
+ throw new RuntimeModelError48(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91");
19039
19117
  }
19040
19118
  if (!dstDEUILogicParamId) {
19041
- throw new RuntimeModelError47(this.model, "\u6CA1\u6709\u914D\u7F6E\u4F20\u5165\u903B\u8F91\u53C2\u6570");
19119
+ throw new RuntimeModelError48(this.model, "\u6CA1\u6709\u914D\u7F6E\u4F20\u5165\u903B\u8F91\u53C2\u6570");
19042
19120
  }
19043
19121
  const dstParam = ctx.params[dstDEUILogicParamId];
19044
19122
  if (!dstParam) {
@@ -19213,7 +19291,7 @@ var UILogic = class {
19213
19291
  this.params = /* @__PURE__ */ new Map();
19214
19292
  var _a;
19215
19293
  if (!((_a = model.deuilogicNodes) == null ? void 0 : _a.length)) {
19216
- throw new RuntimeModelError48(model, "\u754C\u9762\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
19294
+ throw new RuntimeModelError49(model, "\u754C\u9762\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
19217
19295
  }
19218
19296
  model.deuilogicNodes.forEach((node) => {
19219
19297
  const { logicNodeType } = node;
@@ -19333,7 +19411,7 @@ var UILogic = class {
19333
19411
  const start = this.nodes.get(startDEUILogicNodeId);
19334
19412
  await this.deepExec(start, ctx);
19335
19413
  } else {
19336
- throw new RuntimeModelError48(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
19414
+ throw new RuntimeModelError49(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
19337
19415
  }
19338
19416
  if (ctx.isEndNode) {
19339
19417
  return ctx.result;
@@ -19515,7 +19593,7 @@ var UIActionProviderBase = class {
19515
19593
  const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
19516
19594
  if (uilogicAttachMode === "REPLACE") {
19517
19595
  if (!appDEUILogicId) {
19518
- throw new RuntimeModelError49(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
19596
+ throw new RuntimeModelError50(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
19519
19597
  }
19520
19598
  await execUILogic(appDEUILogicId, appDataEntityId, args);
19521
19599
  return result;
@@ -19530,7 +19608,7 @@ var UIActionProviderBase = class {
19530
19608
  }
19531
19609
  if (action.uilogicAttachMode === "AFTER") {
19532
19610
  if (!appDEUILogicId) {
19533
- throw new RuntimeModelError49(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
19611
+ throw new RuntimeModelError50(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
19534
19612
  }
19535
19613
  await execUILogic(
19536
19614
  appDEUILogicId,
@@ -19777,7 +19855,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
19777
19855
  const entityName = action.appDataEntityId;
19778
19856
  const methodName = action.appDEMethodId;
19779
19857
  if (!entityName || !methodName) {
19780
- throw new RuntimeModelError50(action, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6216\u5B9E\u4F53\u884C\u4E3A");
19858
+ throw new RuntimeModelError51(action, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6216\u5B9E\u4F53\u884C\u4E3A");
19781
19859
  }
19782
19860
  const { resultContext, resultParams, resultData } = await this.handleParams(
19783
19861
  action,
@@ -19903,7 +19981,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
19903
19981
  // src/ui-action/provider/front-ui-action-provider.ts
19904
19982
  import {
19905
19983
  StringUtil,
19906
- RuntimeModelError as RuntimeModelError51,
19984
+ RuntimeModelError as RuntimeModelError52,
19907
19985
  ModelError as ModelError26,
19908
19986
  RuntimeError as RuntimeError48
19909
19987
  } from "@ibiz-template/core";
@@ -19921,7 +19999,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
19921
19999
  case "WIZARD": {
19922
20000
  const frontPSAppView = action.frontAppViewId;
19923
20001
  if (!frontPSAppView) {
19924
- throw new RuntimeModelError51(action, "\u672A\u914D\u7F6E\u6253\u5F00\u89C6\u56FE");
20002
+ throw new RuntimeModelError52(action, "\u672A\u914D\u7F6E\u6253\u5F00\u89C6\u56FE");
19925
20003
  }
19926
20004
  const { resultContext, resultParams } = await this.handleParams(
19927
20005
  action,
@@ -19987,7 +20065,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
19987
20065
  );
19988
20066
  return result || {};
19989
20067
  }
19990
- throw new RuntimeModelError51(action, "\u81EA\u5B9A\u4E49\u7C7B\u578B\u7F3A\u5C11\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
20068
+ throw new RuntimeModelError52(action, "\u81EA\u5B9A\u4E49\u7C7B\u578B\u7F3A\u5C11\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
19991
20069
  }
19992
20070
  /**
19993
20071
  * 执行打印行为
@@ -20840,7 +20918,7 @@ var RawItemPortletController = class extends PortletPartController {
20840
20918
  };
20841
20919
 
20842
20920
  // src/controller/control/data-view/data-view.controller.ts
20843
- import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
20921
+ import { RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
20844
20922
  import { isNil as isNil25 } from "ramda";
20845
20923
 
20846
20924
  // src/controller/control/data-view/data-view.service.ts
@@ -21055,7 +21133,7 @@ var DataViewControlController = class extends MDControlController {
21055
21133
  const optItemModel = this.getOptItemModel();
21056
21134
  if (optItemModel) {
21057
21135
  if (!optItemModel.deuiactionGroup) {
21058
- throw new RuntimeModelError52(this.model, "\u64CD\u4F5C\u9879\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
21136
+ throw new RuntimeModelError53(this.model, "\u64CD\u4F5C\u9879\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
21059
21137
  }
21060
21138
  if (!((_a = optItemModel.deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
21061
21139
  ibiz.log.debug("\u64CD\u4F5C\u9879\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
@@ -21108,7 +21186,7 @@ var DataViewControlController = class extends MDControlController {
21108
21186
  const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
21109
21187
  if (enableGroup && groupMode) {
21110
21188
  if (!groupAppDEFieldId) {
21111
- throw new RuntimeModelError52(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
21189
+ throw new RuntimeModelError53(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
21112
21190
  }
21113
21191
  if (groupMode === "AUTO") {
21114
21192
  this.handleAutoGroup();
@@ -21175,7 +21253,7 @@ var DataViewControlController = class extends MDControlController {
21175
21253
  async handleCodeListGroup() {
21176
21254
  const { groupAppDEFieldId, groupCodeListId } = this.model;
21177
21255
  if (!groupCodeListId) {
21178
- throw new RuntimeModelError52(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
21256
+ throw new RuntimeModelError53(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
21179
21257
  }
21180
21258
  const { items } = this.state;
21181
21259
  const groupMap = /* @__PURE__ */ new Map();
@@ -21281,7 +21359,7 @@ var DataViewControlController = class extends MDControlController {
21281
21359
  caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
21282
21360
  }
21283
21361
  if (!item.appDEFieldId) {
21284
- throw new RuntimeModelError52(item, "\u542F\u7528\u6392\u5E8F\u7684\u9879\u5FC5\u987B\u5173\u8054\u5B9E\u4F53\u5C5E\u6027");
21362
+ throw new RuntimeModelError53(item, "\u542F\u7528\u6392\u5E8F\u7684\u9879\u5FC5\u987B\u5173\u8054\u5B9E\u4F53\u5C5E\u6027");
21285
21363
  }
21286
21364
  const tempItem = {
21287
21365
  caption,
@@ -21299,10 +21377,10 @@ var DataViewControlController = class extends MDControlController {
21299
21377
  };
21300
21378
 
21301
21379
  // src/controller/control/exp-bar/calendar-exp-bar.controller.ts
21302
- import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
21380
+ import { RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
21303
21381
 
21304
21382
  // src/controller/control/exp-bar/exp-bar.controller.ts
21305
- import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
21383
+ import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
21306
21384
  var ExpBarControlController = class extends ControlController {
21307
21385
  constructor() {
21308
21386
  super(...arguments);
@@ -21357,7 +21435,7 @@ var ExpBarControlController = class extends ControlController {
21357
21435
  get xDataController() {
21358
21436
  const controller = this.view.getController(this.model.xdataControlName);
21359
21437
  if (!controller) {
21360
- throw new RuntimeModelError53(
21438
+ throw new RuntimeModelError54(
21361
21439
  this.model,
21362
21440
  "\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
21363
21441
  );
@@ -21721,7 +21799,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
21721
21799
  get xDataController() {
21722
21800
  const controller = this.view.getController(this.model.xdataControlName);
21723
21801
  if (!controller) {
21724
- throw new RuntimeModelError54(
21802
+ throw new RuntimeModelError55(
21725
21803
  this.model,
21726
21804
  "\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
21727
21805
  );
@@ -21776,7 +21854,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
21776
21854
  };
21777
21855
 
21778
21856
  // src/controller/control/exp-bar/tree-exp-bar.controller.ts
21779
- import { RuntimeError as RuntimeError51, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
21857
+ import { RuntimeError as RuntimeError51, RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
21780
21858
  var TreeExpBarController = class extends ExpBarControlController {
21781
21859
  constructor() {
21782
21860
  super(...arguments);
@@ -21799,7 +21877,7 @@ var TreeExpBarController = class extends ExpBarControlController {
21799
21877
  get xDataController() {
21800
21878
  const controller = this.view.getController(this.model.xdataControlName);
21801
21879
  if (!controller) {
21802
- throw new RuntimeModelError55(
21880
+ throw new RuntimeModelError56(
21803
21881
  this.model,
21804
21882
  "\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
21805
21883
  );
@@ -22060,7 +22138,7 @@ import { RuntimeError as RuntimeError52 } from "@ibiz-template/core";
22060
22138
 
22061
22139
  // src/controller/control/form/form/form.controller.ts
22062
22140
  import {
22063
- RuntimeModelError as RuntimeModelError56,
22141
+ RuntimeModelError as RuntimeModelError57,
22064
22142
  debounceAndAsyncMerge,
22065
22143
  recursiveIterate as recursiveIterate3
22066
22144
  } from "@ibiz-template/core";
@@ -22129,7 +22207,7 @@ var FormController = class extends ControlController {
22129
22207
  * @protected
22130
22208
  */
22131
22209
  preprocessModel(model) {
22132
- if (this.context && this.context.srfreadonly === true) {
22210
+ if (this.context && (this.context.srfreadonly === true || this.context.srfreadonly === "true")) {
22133
22211
  const pages = model.deformPages;
22134
22212
  if (pages) {
22135
22213
  pages.forEach((page) => {
@@ -22252,7 +22330,7 @@ var FormController = class extends ControlController {
22252
22330
  return;
22253
22331
  }
22254
22332
  if (form.details[detail.id]) {
22255
- throw new RuntimeModelError56(
22333
+ throw new RuntimeModelError57(
22256
22334
  detail,
22257
22335
  "\u521D\u59CB\u5316\u5F02\u5E38: \u8868\u5355\u6210\u5458[".concat(detail.id, "](").concat(detail.detailType, ")\u5DF2\u5B58\u5728\uFF0C\u8868\u5355\u9879\u6807\u8BC6\u91CD\u590D\u8BF7\u68C0\u67E5\u914D\u7F6E")
22258
22336
  );
@@ -23873,7 +23951,7 @@ var FormMDCtrlController = class extends FormDetailController {
23873
23951
  import {
23874
23952
  mergeInLeft,
23875
23953
  ModelError as ModelError27,
23876
- RuntimeModelError as RuntimeModelError57
23954
+ RuntimeModelError as RuntimeModelError58
23877
23955
  } from "@ibiz-template/core";
23878
23956
  var FormMDCtrlMDController = class extends FormMDCtrlController {
23879
23957
  constructor() {
@@ -23899,7 +23977,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
23899
23977
  await super.onInit();
23900
23978
  const { contentControl } = this.model;
23901
23979
  if (!contentControl) {
23902
- throw new RuntimeModelError57(this.model, "\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5185\u5BB9\u90E8\u4EF6");
23980
+ throw new RuntimeModelError58(this.model, "\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5185\u5BB9\u90E8\u4EF6");
23903
23981
  }
23904
23982
  if (contentControl.controlType === "GRID") {
23905
23983
  mergeInLeft(contentControl, {
@@ -23996,7 +24074,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
23996
24074
  };
23997
24075
 
23998
24076
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
23999
- import { RuntimeError as RuntimeError53, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
24077
+ import { RuntimeError as RuntimeError53, RuntimeModelError as RuntimeModelError59 } from "@ibiz-template/core";
24000
24078
  import { createUUID as createUUID11 } from "qx-util";
24001
24079
 
24002
24080
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
@@ -24037,7 +24115,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
24037
24115
  super.onInit();
24038
24116
  const { contentControl } = this.model;
24039
24117
  if (!contentControl) {
24040
- throw new RuntimeModelError58(this.model, "\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5185\u5BB9\u90E8\u4EF6");
24118
+ throw new RuntimeModelError59(this.model, "\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5185\u5BB9\u90E8\u4EF6");
24041
24119
  }
24042
24120
  contentControl.enableAutoSave = this.enableCreate || this.enableUpdate;
24043
24121
  const controlProvider = await getControlProvider(contentControl);
@@ -24424,7 +24502,7 @@ import { clone as clone25 } from "ramda";
24424
24502
  // src/controller/control/form/edit-form/edit-form.service.ts
24425
24503
  import {
24426
24504
  recursiveIterate as recursiveIterate6,
24427
- RuntimeModelError as RuntimeModelError59
24505
+ RuntimeModelError as RuntimeModelError60
24428
24506
  } from "@ibiz-template/core";
24429
24507
  var EditFormService = class extends FormService {
24430
24508
  /**
@@ -24548,7 +24626,7 @@ var EditFormService = class extends FormService {
24548
24626
  const wizardForm = this.model;
24549
24627
  const methodName = (_a = wizardForm.goBackControlAction) == null ? void 0 : _a.appDEMethodId;
24550
24628
  if (!methodName) {
24551
- throw new RuntimeModelError59(this.model, "\u7F3A\u5C11\u8FD4\u56DE\u64CD\u4F5C\u5B9E\u4F53\u884C\u4E3A");
24629
+ throw new RuntimeModelError60(this.model, "\u7F3A\u5C11\u8FD4\u56DE\u64CD\u4F5C\u5B9E\u4F53\u884C\u4E3A");
24552
24630
  }
24553
24631
  let res = await this.exec(
24554
24632
  methodName,
@@ -25410,12 +25488,12 @@ import {
25410
25488
  mergeDefaultInLeft,
25411
25489
  recursiveIterate as recursiveIterate7,
25412
25490
  RuntimeError as RuntimeError55,
25413
- RuntimeModelError as RuntimeModelError61
25491
+ RuntimeModelError as RuntimeModelError62
25414
25492
  } from "@ibiz-template/core";
25415
25493
  import { clone as clone26 } from "ramda";
25416
25494
 
25417
25495
  // src/controller/control/grid/grid/grid.service.ts
25418
- import { RuntimeModelError as RuntimeModelError60 } from "@ibiz-template/core";
25496
+ import { RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
25419
25497
  var GridService = class extends MDControlService {
25420
25498
  /**
25421
25499
  * 初始化属性映射
@@ -25443,7 +25521,7 @@ var GridService = class extends MDControlService {
25443
25521
  dataType: dataItem.dataType
25444
25522
  });
25445
25523
  } else {
25446
- throw new RuntimeModelError60(
25524
+ throw new RuntimeModelError61(
25447
25525
  column,
25448
25526
  "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u8868\u683C\u6570\u636E\u9879[".concat(deField, "]")
25449
25527
  );
@@ -25753,11 +25831,11 @@ var GridController = class extends MDControlController {
25753
25831
  (item) => item.model.appDEFieldId === groupAppDEFieldId
25754
25832
  );
25755
25833
  if (!this.groupFieldColumn) {
25756
- throw new RuntimeModelError61(this.model, "\u6CA1\u6709\u914D\u7F6E\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217");
25834
+ throw new RuntimeModelError62(this.model, "\u6CA1\u6709\u914D\u7F6E\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217");
25757
25835
  }
25758
25836
  const groupFieldName = this.groupFieldColumn.model.id;
25759
25837
  if (!this.groupFieldColumn.model.appCodeListId) {
25760
- throw new RuntimeModelError61(
25838
+ throw new RuntimeModelError62(
25761
25839
  this.groupFieldColumn.model,
25762
25840
  "\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217".concat(groupFieldName, "\u6CA1\u6709\u914D\u7F6E\u4EE3\u7801\u8868")
25763
25841
  );
@@ -25767,7 +25845,7 @@ var GridController = class extends MDControlController {
25767
25845
  );
25768
25846
  if (index !== -1 && index !== 0) {
25769
25847
  if (this.isMultistageHeader) {
25770
- throw new RuntimeModelError61(
25848
+ throw new RuntimeModelError62(
25771
25849
  this.model,
25772
25850
  "\u8BF7\u5C06\u5206\u7EC4\u5C5E\u6027\u5217".concat(groupFieldName, "\u914D\u7F6E\u4E3A\u7B2C\u4E00\u5217")
25773
25851
  );
@@ -25777,10 +25855,10 @@ var GridController = class extends MDControlController {
25777
25855
  }
25778
25856
  if (groupMode === "CODELIST") {
25779
25857
  if (!groupCodeListId) {
25780
- throw new RuntimeModelError61(this.model, "\u4EE3\u7801\u8868\u5206\u7EC4\u6A21\u5F0F\u9700\u8981\u914D\u7F6E\u4EE3\u7801\u8868");
25858
+ throw new RuntimeModelError62(this.model, "\u4EE3\u7801\u8868\u5206\u7EC4\u6A21\u5F0F\u9700\u8981\u914D\u7F6E\u4EE3\u7801\u8868");
25781
25859
  }
25782
25860
  if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
25783
- throw new RuntimeModelError61(
25861
+ throw new RuntimeModelError62(
25784
25862
  this.model,
25785
25863
  "\u5206\u7EC4\u4EE3\u7801\u8868\u4E0E\u5C5E\u6027\u5217".concat(groupFieldName, "\u7684\u4EE3\u7801\u8868\u4E0D\u4E00\u81F4")
25786
25864
  );
@@ -25868,7 +25946,7 @@ var GridController = class extends MDControlController {
25868
25946
  return;
25869
25947
  }
25870
25948
  if (!aggAppDEDataSetId || !aggAppDataEntityId) {
25871
- throw new RuntimeModelError61(this.model, "\u7F3A\u5C11\u914D\u7F6E\u805A\u5408\u5B9E\u4F53\u6216\u805A\u5408\u6570\u636E\u96C6");
25949
+ throw new RuntimeModelError62(this.model, "\u7F3A\u5C11\u914D\u7F6E\u805A\u5408\u5B9E\u4F53\u6216\u805A\u5408\u6570\u636E\u96C6");
25872
25950
  }
25873
25951
  const params = await this.getFetchParams();
25874
25952
  const app = ibiz.hub.getApp(this.context.srfappid);
@@ -26476,12 +26554,12 @@ var GridController = class extends MDControlController {
26476
26554
  (column) => column.caption
26477
26555
  );
26478
26556
  } else {
26479
- filterVal = Object.keys(this.fieldColumns).map(
26480
- (key) => this.fieldColumns[key].model.id
26481
- );
26482
- header = Object.keys(this.fieldColumns).map(
26483
- (key) => this.fieldColumns[key].model.caption
26484
- );
26557
+ const { degridColumns } = this.model;
26558
+ if (!degridColumns) {
26559
+ throw new RuntimeError55("\u65E0\u8868\u683C\u5217");
26560
+ }
26561
+ filterVal = degridColumns.map((item) => item.id);
26562
+ header = degridColumns.map((item) => item.caption);
26485
26563
  }
26486
26564
  const data = formatArrayData(filterVal, await getExportData());
26487
26565
  await exportData(header, data, this.model.logicName);
@@ -26967,7 +27045,7 @@ var GridFieldColumnController = class extends GridColumnController {
26967
27045
  };
26968
27046
 
26969
27047
  // src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
26970
- import { RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
27048
+ import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
26971
27049
  var GridUAColumnController = class extends GridColumnController {
26972
27050
  /**
26973
27051
  * 给rowController初始化操作列的状态
@@ -26980,7 +27058,7 @@ var GridUAColumnController = class extends GridColumnController {
26980
27058
  var _a;
26981
27059
  const { deuiactionGroup } = this.model;
26982
27060
  if (!deuiactionGroup) {
26983
- throw new RuntimeModelError62(this.model, "\u64CD\u4F5C\u5217\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
27061
+ throw new RuntimeModelError63(this.model, "\u64CD\u4F5C\u5217\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
26984
27062
  }
26985
27063
  if (!((_a = deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
26986
27064
  ibiz.log.debug("\u64CD\u4F5C\u5217\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
@@ -28194,7 +28272,7 @@ import { clone as clone28, isNil as isNil28 } from "ramda";
28194
28272
  import { isString as isString2 } from "lodash-es";
28195
28273
 
28196
28274
  // src/controller/control/search-bar/search-bar-filter.controller.ts
28197
- import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
28275
+ import { RuntimeModelError as RuntimeModelError64 } from "@ibiz-template/core";
28198
28276
  var ExcludeOPs = [
28199
28277
  "ISNULL" /* IS_NULL */,
28200
28278
  "ISNOTNULL" /* IS_NOT_NULL */
@@ -28242,7 +28320,7 @@ var SearchBarFilterController = class {
28242
28320
  async init() {
28243
28321
  if (!this.noEditor) {
28244
28322
  if (!this.model.editor) {
28245
- throw new RuntimeModelError63(this.model, "\u7F3A\u5C11\u7F16\u8F91\u5668\u6A21\u578B");
28323
+ throw new RuntimeModelError64(this.model, "\u7F3A\u5C11\u7F16\u8F91\u5668\u6A21\u578B");
28246
28324
  }
28247
28325
  this.editorProvider = await getEditorProvider(this.model.editor);
28248
28326
  if (this.editorProvider) {
@@ -29431,7 +29509,7 @@ var TabExpPanelController = class extends ControlController {
29431
29509
  // src/controller/control/tree/tree.controller.ts
29432
29510
  import {
29433
29511
  RuntimeError as RuntimeError59,
29434
- RuntimeModelError as RuntimeModelError64,
29512
+ RuntimeModelError as RuntimeModelError65,
29435
29513
  recursiveIterate as recursiveIterate11
29436
29514
  } from "@ibiz-template/core";
29437
29515
 
@@ -29717,6 +29795,49 @@ var TreeService = class extends MDControlService {
29717
29795
  }
29718
29796
  return [];
29719
29797
  }
29798
+ /**
29799
+ * 删除单条数据
29800
+ *
29801
+ * @author lxm
29802
+ * @date 2022-09-07 19:09:48
29803
+ * @param {IContext} context 上下文
29804
+ * @param {IParams} [params={}] 视图参数
29805
+ * @returns {*}
29806
+ */
29807
+ async removeItem(appDataEntityId, context, params = {}) {
29808
+ var _a;
29809
+ const removeAction = ((_a = this.model.removeControlAction) == null ? void 0 : _a.appDEMethodId) || "remove";
29810
+ const res = await this.execWithEntityId(
29811
+ appDataEntityId,
29812
+ removeAction,
29813
+ context,
29814
+ void 0,
29815
+ params
29816
+ );
29817
+ return res;
29818
+ }
29819
+ /**
29820
+ * 执行服务方法(带实体id)
29821
+ *
29822
+ * @author lxm
29823
+ * @date 2022-08-31 17:08:41
29824
+ * @param {string} methodName 方法名
29825
+ * @param {IContext} context 上下文
29826
+ * @param {IParams} [params={}] 视图参数或数据
29827
+ * @returns {*} {Promise<IHttpResponse>}
29828
+ */
29829
+ async execWithEntityId(appDataEntityId, methodName, context, data, params) {
29830
+ const header = this.handleCustomRequestHeader();
29831
+ const res = await this.app.deService.exec(
29832
+ appDataEntityId,
29833
+ methodName,
29834
+ context,
29835
+ data,
29836
+ params,
29837
+ header
29838
+ );
29839
+ return res;
29840
+ }
29720
29841
  };
29721
29842
 
29722
29843
  // src/controller/control/tree/tree.controller.ts
@@ -30340,7 +30461,7 @@ var TreeController = class extends MDControlController {
30340
30461
  const { sortAppDEFieldId, sortDir, allowOrder } = orderNodeModel;
30341
30462
  if (allowOrder === true) {
30342
30463
  if (!sortAppDEFieldId) {
30343
- throw new RuntimeModelError64(orderNodeModel, "\u7F3A\u5C11\u914D\u7F6E\u6392\u5E8F\u5C5E\u6027");
30464
+ throw new RuntimeModelError65(orderNodeModel, "\u7F3A\u5C11\u914D\u7F6E\u6392\u5E8F\u5C5E\u6027");
30344
30465
  }
30345
30466
  const sortField = sortAppDEFieldId.toLowerCase();
30346
30467
  const isAsc = sortDir === "ASC";
@@ -30421,7 +30542,7 @@ var TreeController = class extends MDControlController {
30421
30542
  async modifyNodeText(nodeData, text) {
30422
30543
  const model = this.getNodeModel(nodeData._nodeId);
30423
30544
  if (!model.allowEditText) {
30424
- throw new RuntimeModelError64(model, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u7F16\u8F91\u6A21\u5F0F\uFF1A\u540D\u79F0");
30545
+ throw new RuntimeModelError65(model, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u7F16\u8F91\u6A21\u5F0F\uFF1A\u540D\u79F0");
30425
30546
  }
30426
30547
  if (nodeData._nodeType !== "DE") {
30427
30548
  throw new RuntimeError59("\u4E0D\u662F\u5B9E\u4F53\u6811\u8282\u70B9\u6570\u636E");
@@ -30430,18 +30551,28 @@ var TreeController = class extends MDControlController {
30430
30551
  await this.updateDeNodeData([nodeData]);
30431
30552
  }
30432
30553
  /**
30433
- * 获取删除实体codeName
30434
- * @param {IData} item
30554
+ * 删除每一项
30435
30555
  * @return {*}
30436
30556
  * @author: zhujiamin
30437
- * @Date: 2024-02-22 16:47:44
30557
+ * @Date: 2024-02-27 09:47:52
30438
30558
  */
30439
- getRemoveDeName(item) {
30559
+ async handleItemRemove(item, context, params) {
30560
+ let needRefresh = false;
30440
30561
  const treeNode = this.getNodeModel(item._nodeId);
30441
- if (treeNode) {
30442
- return calcDeCodeNameById(treeNode.appDataEntityId);
30562
+ if (!treeNode) {
30563
+ throw new RuntimeError59("\u672A\u627E\u5230\u6811\u8282\u70B9");
30564
+ }
30565
+ const nodeAppDataEntityId = treeNode.appDataEntityId;
30566
+ if (nodeAppDataEntityId) {
30567
+ const deName = calcDeCodeNameById(nodeAppDataEntityId);
30568
+ if (item.srfuf !== 0 /* CREATE */) {
30569
+ const tempContext = context.clone();
30570
+ tempContext[deName] = item.srfkey;
30571
+ await this.service.removeItem(nodeAppDataEntityId, tempContext, params);
30572
+ needRefresh = true;
30573
+ }
30443
30574
  }
30444
- return calcDeCodeNameById(this.model.appDataEntityId);
30575
+ return needRefresh;
30445
30576
  }
30446
30577
  };
30447
30578
 
@@ -30798,7 +30929,7 @@ var WizardPanelController = class extends ControlController {
30798
30929
  };
30799
30930
 
30800
30931
  // src/controller/control/md-ctrl/md-ctrl.controller.ts
30801
- import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
30932
+ import { RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
30802
30933
  import { isNil as isNil29 } from "ramda";
30803
30934
 
30804
30935
  // src/controller/control/md-ctrl/md-ctrl.service.ts
@@ -31005,7 +31136,7 @@ var MDCtrlController = class extends MDControlController {
31005
31136
  const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
31006
31137
  if (enableGroup && groupMode) {
31007
31138
  if (!groupAppDEFieldId) {
31008
- throw new RuntimeModelError65(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
31139
+ throw new RuntimeModelError66(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
31009
31140
  }
31010
31141
  if (groupMode === "AUTO") {
31011
31142
  this.handleAutoGroup();
@@ -31072,7 +31203,7 @@ var MDCtrlController = class extends MDControlController {
31072
31203
  async handleCodeListGroup() {
31073
31204
  const { groupAppDEFieldId, groupCodeListId } = this.model;
31074
31205
  if (!groupCodeListId) {
31075
- throw new RuntimeModelError65(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
31206
+ throw new RuntimeModelError66(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
31076
31207
  }
31077
31208
  const { items } = this.state;
31078
31209
  const groupMap = /* @__PURE__ */ new Map();
@@ -31102,7 +31233,7 @@ var MDCtrlController = class extends MDControlController {
31102
31233
  };
31103
31234
 
31104
31235
  // src/controller/control/kanban/kanban.controller.ts
31105
- import { RuntimeError as RuntimeError61, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
31236
+ import { RuntimeError as RuntimeError61, RuntimeModelError as RuntimeModelError67 } from "@ibiz-template/core";
31106
31237
  import { isNil as isNil30 } from "ramda";
31107
31238
 
31108
31239
  // src/controller/control/kanban/kanban.service.ts
@@ -31180,10 +31311,10 @@ var KanbanController = class extends DataViewControlController {
31180
31311
  const sortField = this.model.minorSortAppDEFieldId;
31181
31312
  const { minorSortDir } = this.model;
31182
31313
  if (!sortField) {
31183
- throw new RuntimeModelError66(this.model, "\u6392\u5E8F\u5C5E\u6027\u6CA1\u914D\u7F6E");
31314
+ throw new RuntimeModelError67(this.model, "\u6392\u5E8F\u5C5E\u6027\u6CA1\u914D\u7F6E");
31184
31315
  }
31185
31316
  if (!minorSortDir) {
31186
- throw new RuntimeModelError66(this.model, "\u6392\u5E8F\u65B9\u5411\u6CA1\u914D\u7F6E");
31317
+ throw new RuntimeModelError67(this.model, "\u6392\u5E8F\u65B9\u5411\u6CA1\u914D\u7F6E");
31187
31318
  }
31188
31319
  const isAsc = minorSortDir === "ASC";
31189
31320
  items.forEach((item) => {
@@ -31327,7 +31458,7 @@ var KanbanController = class extends DataViewControlController {
31327
31458
  async handleCodeListGroup() {
31328
31459
  const { groupAppDEFieldId, groupCodeListId } = this.model;
31329
31460
  if (!groupCodeListId) {
31330
- throw new RuntimeModelError66(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
31461
+ throw new RuntimeModelError67(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
31331
31462
  }
31332
31463
  const { items } = this.state;
31333
31464
  const groupMap = /* @__PURE__ */ new Map();
@@ -31623,7 +31754,7 @@ var KanbanController = class extends DataViewControlController {
31623
31754
  // src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
31624
31755
  import {
31625
31756
  RuntimeError as RuntimeError62,
31626
- RuntimeModelError as RuntimeModelError67,
31757
+ RuntimeModelError as RuntimeModelError68,
31627
31758
  awaitTimeout as awaitTimeout3,
31628
31759
  recursiveIterate as recursiveIterate12
31629
31760
  } from "@ibiz-template/core";
@@ -31903,7 +32034,7 @@ var TreeGridExController = class extends TreeController {
31903
32034
  throw new RuntimeError62("\u6682\u4E0D\u652F\u6301\u65B0\u5EFA");
31904
32035
  }
31905
32036
  if (!updateAppDEActionId) {
31906
- throw new RuntimeModelError67(nodeModel, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u66F4\u65B0\u5B9E\u4F53\u884C\u4E3A");
32037
+ throw new RuntimeModelError68(nodeModel, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u66F4\u65B0\u5B9E\u4F53\u884C\u4E3A");
31907
32038
  }
31908
32039
  const deName = calcDeCodeNameById(appDataEntityId);
31909
32040
  const tempContext = this.context.clone();
@@ -32174,7 +32305,7 @@ var TreeGridExColumnController = class {
32174
32305
  import {
32175
32306
  DataTypes as DataTypes5,
32176
32307
  RuntimeError as RuntimeError63,
32177
- RuntimeModelError as RuntimeModelError68
32308
+ RuntimeModelError as RuntimeModelError69
32178
32309
  } from "@ibiz-template/core";
32179
32310
  import { clone as clone30 } from "ramda";
32180
32311
  import dayjs6 from "dayjs";
@@ -32205,7 +32336,7 @@ var TreeGridExNodeColumnController = class {
32205
32336
  }
32206
32337
  );
32207
32338
  if (!nodeColumn || !nodeDataItem) {
32208
- throw new RuntimeModelError68(
32339
+ throw new RuntimeModelError69(
32209
32340
  nodeModel,
32210
32341
  "\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u5BF9\u5E94\u8868\u683C\u5217".concat(this.fieldColumn.name, "\u7684\u6570\u636E\u9879")
32211
32342
  );
@@ -32219,7 +32350,7 @@ var TreeGridExNodeColumnController = class {
32219
32350
  }
32220
32351
  );
32221
32352
  if (!nodeEditItem) {
32222
- throw new RuntimeModelError68(
32353
+ throw new RuntimeModelError69(
32223
32354
  nodeModel,
32224
32355
  "\u6CA1\u6709\u627E\u5230\u5BF9\u5E94\u8868\u683C\u5217".concat(this.fieldColumn.name, "\u7684\u7F16\u8F91\u9879\u6A21\u578B")
32225
32356
  );
@@ -32719,7 +32850,7 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
32719
32850
  };
32720
32851
 
32721
32852
  // src/controller/control/tree-grid/tree-grid.controller.ts
32722
- import { RuntimeModelError as RuntimeModelError69 } from "@ibiz-template/core";
32853
+ import { RuntimeModelError as RuntimeModelError70 } from "@ibiz-template/core";
32723
32854
  var TreeGridController = class extends GridController {
32724
32855
  constructor() {
32725
32856
  super(...arguments);
@@ -32764,10 +32895,10 @@ var TreeGridController = class extends GridController {
32764
32895
  return item.treeColumnMode === 2 || item.treeColumnMode === 3;
32765
32896
  });
32766
32897
  if (!treeGridParent) {
32767
- throw new RuntimeModelError69(this.model, "\u6811\u8868\u683C\u65E0\u503C\u5217\u6A21\u5F0F");
32898
+ throw new RuntimeModelError70(this.model, "\u6811\u8868\u683C\u65E0\u503C\u5217\u6A21\u5F0F");
32768
32899
  }
32769
32900
  if (!treeGridValue) {
32770
- throw new RuntimeModelError69(this.model, "\u6811\u8868\u683C\u65E0\u7236\u503C\u5217\u6A21\u5F0F");
32901
+ throw new RuntimeModelError70(this.model, "\u6811\u8868\u683C\u65E0\u7236\u503C\u5217\u6A21\u5F0F");
32771
32902
  }
32772
32903
  this.treeGridValueField = treeGridValue.appDEFieldId.toLowerCase();
32773
32904
  this.treeGridParentField = treeGridParent.appDEFieldId.toLowerCase();
@@ -33510,7 +33641,11 @@ var ReportPanelController = class extends ControlController {
33510
33641
  };
33511
33642
 
33512
33643
  // src/controller/control/gantt/gantt.controller.ts
33513
- import { awaitTimeout as awaitTimeout4, RuntimeError as RuntimeError65 } from "@ibiz-template/core";
33644
+ import {
33645
+ awaitTimeout as awaitTimeout4,
33646
+ RuntimeError as RuntimeError65,
33647
+ RuntimeModelError as RuntimeModelError71
33648
+ } from "@ibiz-template/core";
33514
33649
 
33515
33650
  // src/controller/control/gantt/gantt.service.ts
33516
33651
  import { ModelError as ModelError31 } from "@ibiz-template/core";
@@ -33826,6 +33961,93 @@ var GanttController = class extends TreeGridExController {
33826
33961
  setGanttStyle(style) {
33827
33962
  this.state.ganttStyle = style;
33828
33963
  }
33964
+ async onCreated() {
33965
+ await super.onCreated();
33966
+ this.initViewScheduler();
33967
+ }
33968
+ /**
33969
+ * 初始化视图触发器
33970
+ *
33971
+ * @protected
33972
+ * @memberof GanttController
33973
+ */
33974
+ initViewScheduler() {
33975
+ const viewLogics = this.model.appViewLogics || [];
33976
+ if (viewLogics.length !== 0) {
33977
+ this.viewScheduler = ibiz.scheduler.createViewScheduler(viewLogics);
33978
+ this.viewScheduler.defaultParamsCb = () => {
33979
+ return this.getEventArgs();
33980
+ };
33981
+ if (this.viewScheduler.hasViewEventTrigger) {
33982
+ this.evt.onAll((_eventName, event) => {
33983
+ this.viewScheduler.triggerViewEvent(event);
33984
+ });
33985
+ }
33986
+ }
33987
+ }
33988
+ /**
33989
+ * 设置激活数据
33990
+ *
33991
+ * @param {IGanttNodeData} item
33992
+ * @return {*} {Promise<void>}
33993
+ * @memberof GanttController
33994
+ */
33995
+ async setActive(item) {
33996
+ const nodeParams = this.parseTreeNodeData(item);
33997
+ if (item._nodeType === "DE") {
33998
+ await this.onNodeDataActive(nodeParams);
33999
+ }
34000
+ return this._evt.emit("onActive", { ...nodeParams, nodeData: item });
34001
+ }
34002
+ /**
34003
+ * 节点数据激活
34004
+ *
34005
+ * @param {IGanttNodeData} item
34006
+ * @return {*} {Promise<void>}
34007
+ * @memberof GanttController
34008
+ */
34009
+ async onNodeDataActive(nodeParams) {
34010
+ const res = await this.openData(nodeParams);
34011
+ if (!res.cancel) {
34012
+ this.refreshNodeChildren(nodeParams.data[0], true);
34013
+ }
34014
+ }
34015
+ /**
34016
+ * 打开编辑数据视图
34017
+ *
34018
+ * @param {IGanttNodeData} item
34019
+ * @memberof GanttController
34020
+ */
34021
+ async openData({
34022
+ data,
34023
+ context,
34024
+ params
34025
+ }) {
34026
+ var _a;
34027
+ const nodeData = data[0];
34028
+ const nodeModel = this.getNodeModel(nodeData._nodeId);
34029
+ const { appDataEntityId } = nodeModel;
34030
+ const deName = calcDeCodeNameById(appDataEntityId);
34031
+ context[deName.toLowerCase()] = nodeData.srfkey;
34032
+ const result = await ((_a = this.viewScheduler) == null ? void 0 : _a.triggerCustom(
34033
+ "".concat(nodeModel.id.toLowerCase(), "_opendata"),
34034
+ {
34035
+ context,
34036
+ params,
34037
+ data,
34038
+ event: void 0,
34039
+ view: this.view,
34040
+ ctrl: this
34041
+ }
34042
+ ));
34043
+ if (result === -1) {
34044
+ throw new RuntimeModelError71(nodeModel, "\u7F3A\u5C11opendata\u7684\u89C6\u56FE\u903B\u8F91");
34045
+ } else {
34046
+ return {
34047
+ cancel: result ? result.ok : true
34048
+ };
34049
+ }
34050
+ }
33829
34051
  /**
33830
34052
  * 设置行属性的值
33831
34053
  *
@@ -33970,8 +34192,11 @@ var GanttController = class extends TreeGridExController {
33970
34192
  tempContext,
33971
34193
  params
33972
34194
  );
33973
- if (refreshNode) {
33974
- refreshNode = item;
34195
+ if (!refreshNode && item._parent) {
34196
+ const parentNodeData = this.getNodeData(
34197
+ item._parent._id
34198
+ );
34199
+ refreshNode = parentNodeData;
33975
34200
  }
33976
34201
  needRefresh = true;
33977
34202
  }
@@ -33985,8 +34210,8 @@ var GanttController = class extends TreeGridExController {
33985
34210
  default: "\u6570\u636E[".concat(data.map((item) => item.srfmajortext).join("\u3001"), "]\u5220\u9664\u6210\u529F!")
33986
34211
  });
33987
34212
  }
33988
- if (needRefresh && !(args == null ? void 0 : args.notRefresh)) {
33989
- await this.refreshNodeChildren(refreshNode, true);
34213
+ if (needRefresh && refreshNode && !(args == null ? void 0 : args.notRefresh)) {
34214
+ await this.refreshNodeChildren(refreshNode);
33990
34215
  }
33991
34216
  } catch (error) {
33992
34217
  await this._evt.emit("onRemoveError", void 0);
@@ -34016,7 +34241,7 @@ var GanttController = class extends TreeGridExController {
34016
34241
  if (this.state.rows[data._uuid]) {
34017
34242
  delete this.state.rows[data._uuid];
34018
34243
  }
34019
- if (data._deData.srfuf === 0 /* CREATE */ && data._parent) {
34244
+ if (data._parent) {
34020
34245
  const parentNodeData = this.getNodeData(
34021
34246
  data._parent._id
34022
34247
  );
@@ -34277,6 +34502,9 @@ var AsyncActionController = class {
34277
34502
  };
34278
34503
 
34279
34504
  // src/controller/notification/internal-message.controller.ts
34505
+ import {
34506
+ IBizContext as IBizContext4
34507
+ } from "@ibiz-template/core";
34280
34508
  import { QXEvent as QXEvent8 } from "qx-util";
34281
34509
  function isHTML(str) {
34282
34510
  if (str === "")
@@ -34302,7 +34530,6 @@ var InternalMessageController = class {
34302
34530
  this.service = new InternalMessageService();
34303
34531
  }
34304
34532
  async init() {
34305
- await this.load();
34306
34533
  this.listenMqtt();
34307
34534
  await this.refreshUnreadCount();
34308
34535
  }
@@ -34389,10 +34616,22 @@ var InternalMessageController = class {
34389
34616
  return;
34390
34617
  }
34391
34618
  if (msg.content) {
34392
- ibiz.notification.info({
34619
+ ibiz.notification.default({
34393
34620
  isHtmlDesc: isHTML(msg.content),
34394
34621
  desc: msg.content,
34395
- position: "bottom-right"
34622
+ position: "bottom-right",
34623
+ onClick: () => {
34624
+ const redirectUrl = ibiz.env.isMob ? msg.mobileurl : msg.url;
34625
+ if (redirectUrl) {
34626
+ const { viewId, context, params } = parseViewProtocol(redirectUrl);
34627
+ ibiz.commands.execute(
34628
+ OpenAppViewCommand.TAG,
34629
+ viewId,
34630
+ IBizContext4.create(context),
34631
+ params
34632
+ );
34633
+ }
34634
+ }
34396
34635
  });
34397
34636
  }
34398
34637
  this.refreshUnreadCount();
@@ -35129,7 +35368,7 @@ var ViewEngineBase = class {
35129
35368
  };
35130
35369
 
35131
35370
  // src/engine/md-view.engine.ts
35132
- import { RuntimeModelError as RuntimeModelError70 } from "@ibiz-template/core";
35371
+ import { RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
35133
35372
  import { clone as clone32 } from "ramda";
35134
35373
  var MDViewEngine = class extends ViewEngineBase {
35135
35374
  /**
@@ -35317,7 +35556,7 @@ var MDViewEngine = class extends ViewEngineBase {
35317
35556
  view: this.view
35318
35557
  }));
35319
35558
  if (result === -1) {
35320
- throw new RuntimeModelError70(this.view.model, "\u7F3A\u5C11opendata\u7684\u89C6\u56FE\u903B\u8F91");
35559
+ throw new RuntimeModelError72(this.view.model, "\u7F3A\u5C11opendata\u7684\u89C6\u56FE\u903B\u8F91");
35321
35560
  } else {
35322
35561
  return {
35323
35562
  cancel: !result.ok
@@ -35340,7 +35579,7 @@ var MDViewEngine = class extends ViewEngineBase {
35340
35579
  (item) => item.id === "newdata"
35341
35580
  );
35342
35581
  if (!openAppViewLogic) {
35343
- throw new RuntimeModelError70(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
35582
+ throw new RuntimeModelError72(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
35344
35583
  }
35345
35584
  const params = clone32(this.view.params);
35346
35585
  if (copyMode) {
@@ -35354,7 +35593,7 @@ var MDViewEngine = class extends ViewEngineBase {
35354
35593
  view: this.view
35355
35594
  }));
35356
35595
  if (result === -1) {
35357
- throw new RuntimeModelError70(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
35596
+ throw new RuntimeModelError72(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
35358
35597
  } else {
35359
35598
  return {
35360
35599
  cancel: !result.ok
@@ -35744,13 +35983,13 @@ var ScriptExecutor = class extends LogicExecutor {
35744
35983
  };
35745
35984
 
35746
35985
  // src/logic-scheduler/executor/app-de-ui-logic-executor.ts
35747
- import { RuntimeModelError as RuntimeModelError71 } from "@ibiz-template/core";
35986
+ import { RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
35748
35987
  var AppDEUILogicExecutor = class extends LogicExecutor {
35749
35988
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
35750
35989
  execute(executeParams) {
35751
35990
  const { appDEUILogicId, appDataEntityId } = this.logic;
35752
35991
  if (!appDEUILogicId) {
35753
- throw new RuntimeModelError71(this.logic, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
35992
+ throw new RuntimeModelError73(this.logic, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
35754
35993
  }
35755
35994
  return execUILogic(appDEUILogicId, appDataEntityId, executeParams);
35756
35995
  }
@@ -36208,7 +36447,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
36208
36447
  };
36209
36448
 
36210
36449
  // src/logic-scheduler/trigger/timer-trigger.ts
36211
- import { RuntimeError as RuntimeError71, RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
36450
+ import { RuntimeError as RuntimeError71, RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
36212
36451
  var TimerTrigger = class extends LogicTrigger {
36213
36452
  constructor() {
36214
36453
  super(...arguments);
@@ -36216,7 +36455,7 @@ var TimerTrigger = class extends LogicTrigger {
36216
36455
  }
36217
36456
  start() {
36218
36457
  if (!this.logic.timer) {
36219
- throw new RuntimeModelError72(this.logic, "\u5B9A\u65F6\u5668\u7F3A\u5C11\u5B9A\u65F6\u95F4\u9694");
36458
+ throw new RuntimeModelError74(this.logic, "\u5B9A\u65F6\u5668\u7F3A\u5C11\u5B9A\u65F6\u95F4\u9694");
36220
36459
  }
36221
36460
  this.timer = setInterval(() => {
36222
36461
  if (!this.scheduler.defaultParamsCb) {
@@ -36238,7 +36477,7 @@ var TimerTrigger = class extends LogicTrigger {
36238
36477
  import {
36239
36478
  ModelError as ModelError34,
36240
36479
  RuntimeError as RuntimeError72,
36241
- RuntimeModelError as RuntimeModelError73
36480
+ RuntimeModelError as RuntimeModelError75
36242
36481
  } from "@ibiz-template/core";
36243
36482
  import { notNilEmpty as notNilEmpty9 } from "qx-util";
36244
36483
  var AppUILogicExecutor = class extends LogicExecutor {
@@ -36284,7 +36523,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
36284
36523
  } else {
36285
36524
  openViewRef = appUILogic.openDataAppView;
36286
36525
  if (!openViewRef) {
36287
- throw new RuntimeModelError73(
36526
+ throw new RuntimeModelError75(
36288
36527
  appUILogic,
36289
36528
  "opendata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE"
36290
36529
  );
@@ -36292,7 +36531,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
36292
36531
  }
36293
36532
  const openView = openViewRef.refAppViewId;
36294
36533
  if (!openView) {
36295
- throw new RuntimeModelError73(
36534
+ throw new RuntimeModelError75(
36296
36535
  appUILogic,
36297
36536
  "opendata\u89C6\u56FE\u903B\u8F91\u7684\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE\u6CA1\u6709\u5B9E\u9645\u5F15\u7528\u89C6\u56FE"
36298
36537
  );
@@ -36322,7 +36561,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
36322
36561
  );
36323
36562
  const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
36324
36563
  if (!typeFileName) {
36325
- throw new RuntimeModelError73(
36564
+ throw new RuntimeModelError75(
36326
36565
  appUILogic,
36327
36566
  "".concat(appDataEntity.codeName, "[\u591A\u8868\u5355\u5B9E\u4F53] or [\u7D22\u5F15\u5B9E\u4F53]\u7F3A\u5C11\u7C7B\u578B\u5C5E\u6027\u914D\u7F6E")
36328
36567
  );
@@ -36330,7 +36569,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
36330
36569
  const { data } = parameters;
36331
36570
  const formTypeValue = data[0][typeFileName];
36332
36571
  if (!formTypeValue) {
36333
- throw new RuntimeModelError73(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
36572
+ throw new RuntimeModelError75(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
36334
36573
  }
36335
36574
  const openViewRefs = appUILogic.openDataAppViews;
36336
36575
  const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
@@ -36372,7 +36611,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
36372
36611
  return viewRef.refMode.toLowerCase() !== parentDeName;
36373
36612
  });
36374
36613
  if (!newViewRef) {
36375
- throw new RuntimeModelError73(
36614
+ throw new RuntimeModelError75(
36376
36615
  appUILogic,
36377
36616
  "\u6CA1\u6709\u627E\u5230\u6279\u6DFB\u52A0\u9700\u8981\u6253\u5F00\u7684\u9009\u62E9\u89C6\u56FE"
36378
36617
  );
@@ -36382,7 +36621,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
36382
36621
  } else {
36383
36622
  newViewRef = newDataAppView;
36384
36623
  if (!newViewRef || !newViewRef.refAppViewId) {
36385
- throw new RuntimeModelError73(
36624
+ throw new RuntimeModelError75(
36386
36625
  appUILogic,
36387
36626
  "newdata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u65B0\u5EFA\u6570\u636E\u89C6\u56FE"
36388
36627
  );
@@ -36446,7 +36685,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
36446
36685
  const { wizardAppView, newDataAppViews } = appUILogic;
36447
36686
  const { context, params, ...rest } = parameters;
36448
36687
  if (!wizardAppView || !wizardAppView.refAppViewId) {
36449
- throw new RuntimeModelError73(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
36688
+ throw new RuntimeModelError75(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
36450
36689
  }
36451
36690
  const result = await ibiz.commands.execute(
36452
36691
  OpenAppViewCommand.TAG,
@@ -36497,7 +36736,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
36497
36736
  const minorDERs = selfDe.minorAppDERSs;
36498
36737
  const pickParentDeName = newViewRef.refMode.toLowerCase();
36499
36738
  if (!minorDERs) {
36500
- throw new RuntimeModelError73(selfDe, "\u5B9E\u4F53\u6CA1\u6709\u4ECE\u5173\u7CFB\u96C6\u5408\uFF01");
36739
+ throw new RuntimeModelError75(selfDe, "\u5B9E\u4F53\u6CA1\u6709\u4ECE\u5173\u7CFB\u96C6\u5408\uFF01");
36501
36740
  }
36502
36741
  let pickParentFieldName = "";
36503
36742
  minorDERs == null ? void 0 : minorDERs.forEach((item) => {
@@ -36594,12 +36833,12 @@ var ControlEventTrigger = class extends LogicTrigger {
36594
36833
  };
36595
36834
 
36596
36835
  // src/logic-scheduler/executor/app-ui-action-executor.ts
36597
- import { RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
36836
+ import { RuntimeModelError as RuntimeModelError76 } from "@ibiz-template/core";
36598
36837
  var AppDEUIActionExecutor = class extends LogicExecutor {
36599
36838
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
36600
36839
  execute(executeParams) {
36601
36840
  if (!this.logic.appDEUIActionId) {
36602
- throw new RuntimeModelError74(
36841
+ throw new RuntimeModelError76(
36603
36842
  this.logic,
36604
36843
  "\u903B\u8F91\u4E2D\u7F3A\u5C11\u89E6\u53D1\u5E94\u7528\u5B9E\u4F53\u754C\u9762\u884C\u4E3Aid"
36605
36844
  );