@ibiz-template/runtime 0.7.41-alpha.111 → 0.7.41-alpha.112

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 (58) hide show
  1. package/dist/index.esm.js +304 -244
  2. package/dist/index.system.min.js +1 -1
  3. package/out/config/global-config.d.ts.map +1 -1
  4. package/out/config/global-config.js +1 -0
  5. package/out/controller/common/base.controller.js +2 -2
  6. package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
  7. package/out/controller/common/editor/editor.controller.js +10 -1
  8. package/out/controller/common/view/view.controller.js +2 -2
  9. package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
  10. package/out/controller/control/calendar/calendar.controller.js +15 -11
  11. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts +6 -0
  12. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
  13. package/out/controller/control/form/form-detail/form-item/form-item.controller.js +14 -1
  14. package/out/controller/control/form/form-detail/form-item/form-item.state.d.ts +7 -0
  15. package/out/controller/control/form/form-detail/form-item/form-item.state.d.ts.map +1 -1
  16. package/out/controller/control/form/form-detail/form-item/form-item.state.js +7 -0
  17. package/out/controller/control/form/form-detail/form-rawitem/form-rawitem.controller.d.ts +7 -0
  18. package/out/controller/control/form/form-detail/form-rawitem/form-rawitem.controller.d.ts.map +1 -1
  19. package/out/controller/control/form/form-detail/form-rawitem/form-rawitem.controller.js +15 -0
  20. package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
  21. package/out/controller/control/grid/grid/grid.controller.js +12 -2
  22. package/out/controller/control/report-panel/generator/bi-converter/base/grid-converter-base.js +9 -9
  23. package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
  24. package/out/controller/control/tree/tree.controller.js +14 -10
  25. package/out/engine/md-view.engine.d.ts.map +1 -1
  26. package/out/engine/md-view.engine.js +22 -20
  27. package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +9 -0
  28. package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
  29. package/out/interface/api/state/control/form-detail/i-api-form-item.state.d.ts +6 -0
  30. package/out/interface/api/state/control/form-detail/i-api-form-item.state.d.ts.map +1 -1
  31. package/out/logic-scheduler/executor/app-ui-action-executor.js +1 -1
  32. package/out/logic-scheduler/scheduler/view-logic-scheduler.d.ts +3 -4
  33. package/out/logic-scheduler/scheduler/view-logic-scheduler.d.ts.map +1 -1
  34. package/out/logic-scheduler/scheduler/view-logic-scheduler.js +7 -5
  35. package/out/utils/handlebars/helpers/date-format/date-format.d.ts +14 -0
  36. package/out/utils/handlebars/helpers/date-format/date-format.d.ts.map +1 -0
  37. package/out/utils/handlebars/helpers/date-format/date-format.js +18 -0
  38. package/out/utils/handlebars/helpers/index.d.ts.map +1 -1
  39. package/out/utils/handlebars/helpers/index.js +2 -0
  40. package/package.json +4 -4
  41. package/src/config/global-config.ts +1 -0
  42. package/src/controller/common/base.controller.ts +2 -2
  43. package/src/controller/common/editor/editor.controller.ts +13 -1
  44. package/src/controller/common/view/view.controller.ts +2 -2
  45. package/src/controller/control/calendar/calendar.controller.ts +15 -17
  46. package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +14 -1
  47. package/src/controller/control/form/form-detail/form-item/form-item.state.ts +8 -0
  48. package/src/controller/control/form/form-detail/form-rawitem/form-rawitem.controller.ts +15 -0
  49. package/src/controller/control/grid/grid/grid.controller.ts +13 -1
  50. package/src/controller/control/report-panel/generator/bi-converter/base/grid-converter-base.ts +9 -9
  51. package/src/controller/control/tree/tree.controller.ts +14 -16
  52. package/src/engine/md-view.engine.ts +22 -24
  53. package/src/interface/api/common/global-config/i-api-global-common-config.ts +10 -0
  54. package/src/interface/api/state/control/form-detail/i-api-form-item.state.ts +7 -0
  55. package/src/logic-scheduler/executor/app-ui-action-executor.ts +1 -1
  56. package/src/logic-scheduler/scheduler/view-logic-scheduler.ts +7 -5
  57. package/src/utils/handlebars/helpers/date-format/date-format.ts +20 -0
  58. package/src/utils/handlebars/helpers/index.ts +2 -0
package/dist/index.esm.js CHANGED
@@ -20003,7 +20003,8 @@ var GlobalConfig = class {
20003
20003
  enableAsyncActionNotice: false,
20004
20004
  aiChunkView: "",
20005
20005
  aiChunkEntity: "",
20006
- counterMaxValue: 99
20006
+ counterMaxValue: 99,
20007
+ enhancedUI: false
20007
20008
  };
20008
20009
  // 全局分页流布局配置
20009
20010
  this.drtab = {
@@ -20597,6 +20598,17 @@ var HelperAbs = class extends HelperBase {
20597
20598
  }
20598
20599
  };
20599
20600
 
20601
+ // src/utils/handlebars/helpers/date-format/date-format.ts
20602
+ import dayjs from "dayjs";
20603
+ var HelperDateFormat = class extends HelperBase {
20604
+ constructor(hbs) {
20605
+ super(hbs, "dateFormat");
20606
+ }
20607
+ onExecute(date, format) {
20608
+ return dayjs(date).format(format);
20609
+ }
20610
+ };
20611
+
20600
20612
  // src/utils/handlebars/helpers/index.ts
20601
20613
  function installHelpers(hsb) {
20602
20614
  new HelperAbs(hsb);
@@ -20619,6 +20631,7 @@ function installHelpers(hsb) {
20619
20631
  new HelperSpinalCase(hsb);
20620
20632
  new HelperUpperCase(hsb);
20621
20633
  new HelperEqPropertyValue(hsb);
20634
+ new HelperDateFormat(hsb);
20622
20635
  }
20623
20636
 
20624
20637
  // src/utils/handlebars/handlebars.ts
@@ -25958,7 +25971,7 @@ var ValueExUtil = class {
25958
25971
 
25959
25972
  // src/controller/utils/value-default/value-default.ts
25960
25973
  import { RuntimeError as RuntimeError12, ModelError as ModelError4 } from "@ibiz-template/core";
25961
- import dayjs from "dayjs";
25974
+ import dayjs2 from "dayjs";
25962
25975
  import { createUUID as createUUID3 } from "qx-util";
25963
25976
  import { isNil as isNil9, isNotNil } from "ramda";
25964
25977
  function getDefaultValue(opts, origins) {
@@ -25992,7 +26005,7 @@ function getDefaultValue(opts, origins) {
25992
26005
  case "OPERATOR":
25993
26006
  return context.srfuserid;
25994
26007
  case "CURTIME":
25995
- return dayjs().format(valueFormat);
26008
+ return dayjs2().format(valueFormat);
25996
26009
  case "PARAM":
25997
26010
  return data[defaultValue];
25998
26011
  case "SESSION":
@@ -28417,12 +28430,12 @@ var BaseController = class {
28417
28430
  async created() {
28418
28431
  this.mountCounter.enroll(SELF_KEY);
28419
28432
  await this.onCreated();
28433
+ ibiz.log.debug("".concat(this.constructor.name, ":").concat(this.name, " onCreated"));
28434
+ await this._evt.emit("onCreated", void 0);
28420
28435
  this.state.isCreated = true;
28421
28436
  this.force(() => {
28422
28437
  this.mountSelf();
28423
28438
  });
28424
- ibiz.log.debug("".concat(this.constructor.name, ":").concat(this.name, " onCreated"));
28425
- this._evt.emit("onCreated", void 0);
28426
28439
  }
28427
28440
  /**
28428
28441
  * 生命周期-创建完成,实际执行逻辑,子类重写用这个
@@ -28872,8 +28885,8 @@ var ViewController = class extends BaseController {
28872
28885
  return this.getEventArgs();
28873
28886
  };
28874
28887
  if (this.scheduler.hasViewEventTrigger) {
28875
- this.evt.onAll((_eventName, event) => {
28876
- this.scheduler.triggerViewEvent(event);
28888
+ this.evt.onAll(async (_eventName, event) => {
28889
+ await this.scheduler.triggerViewEvent(event);
28877
28890
  });
28878
28891
  }
28879
28892
  }
@@ -29340,7 +29353,7 @@ var HtmlViewController = class extends ViewController {
29340
29353
 
29341
29354
  // src/controller/common/editor/editor.controller.ts
29342
29355
  import { DataTypes } from "@ibiz-template/core";
29343
- import dayjs2 from "dayjs";
29356
+ import dayjs3 from "dayjs";
29344
29357
  var EditorController = class {
29345
29358
  /**
29346
29359
  * Creates an instance of EditorController.
@@ -29513,7 +29526,7 @@ var EditorController = class {
29513
29526
  await this.onInit();
29514
29527
  }
29515
29528
  async onInit() {
29516
- var _a3, _b2;
29529
+ var _a3, _b2, _c, _d;
29517
29530
  if (this.model.placeHolder) {
29518
29531
  this.placeHolder = this.model.placeHolder;
29519
29532
  }
@@ -29560,6 +29573,14 @@ var EditorController = class {
29560
29573
  (item) => item.id !== this.model.id
29561
29574
  );
29562
29575
  }
29576
+ const controlAttributes = ((_d = (_c = this.parent.model) == null ? void 0 : _c.controlAttributes) == null ? void 0 : _d.filter(
29577
+ (item) => "classNames" /* CLASSNAMES */ === item.attrName || "styles" /* STYLES */ === item.attrName
29578
+ )) || [];
29579
+ if (controlAttributes.length) {
29580
+ if (!this.model.controlAttributes)
29581
+ this.model.controlAttributes = [];
29582
+ this.model.controlAttributes.push(...controlAttributes);
29583
+ }
29563
29584
  this.initExtraParams();
29564
29585
  }
29565
29586
  /**
@@ -29649,7 +29670,7 @@ var EditorController = class {
29649
29670
  }
29650
29671
  const isDate = DataTypes.isDate(this.dataType);
29651
29672
  if (isDate) {
29652
- const formatVal = dayjs2(strVal).format(this.valueFormat);
29673
+ const formatVal = dayjs3(strVal).format(this.valueFormat);
29653
29674
  if (formatVal !== "Invalid Date") {
29654
29675
  return formatVal;
29655
29676
  }
@@ -31943,8 +31964,8 @@ var AppMenuIconViewController = class extends AppMenuController {
31943
31964
  };
31944
31965
 
31945
31966
  // src/controller/control/calendar/calendar.controller.ts
31946
- import dayjs3 from "dayjs";
31947
- import { RuntimeError as RuntimeError30, RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
31967
+ import dayjs4 from "dayjs";
31968
+ import { RuntimeError as RuntimeError30 } from "@ibiz-template/core";
31948
31969
 
31949
31970
  // src/controller/control/calendar/calendar.service.ts
31950
31971
  import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
@@ -36295,41 +36316,41 @@ var CalendarController = class extends MDControlController {
36295
36316
  switch (this.timeRangeMode) {
36296
36317
  case "year":
36297
36318
  this.state.timeRange = [
36298
- dayjs3().startOf("year").toDate(),
36299
- dayjs3().endOf("year").toDate()
36319
+ dayjs4().startOf("year").toDate(),
36320
+ dayjs4().endOf("year").toDate()
36300
36321
  ];
36301
36322
  break;
36302
36323
  case "halfYear":
36303
- const year = dayjs3().year();
36304
- const isFirstHalf = dayjs3().month() < 6;
36324
+ const year = dayjs4().year();
36325
+ const isFirstHalf = dayjs4().month() < 6;
36305
36326
  if (isFirstHalf) {
36306
36327
  this.state.timeRange = [
36307
- dayjs3("".concat(year, "-01-01")).toDate(),
36308
- dayjs3("".concat(year, "-06-30")).toDate()
36328
+ dayjs4("".concat(year, "-01-01")).toDate(),
36329
+ dayjs4("".concat(year, "-06-30")).toDate()
36309
36330
  ];
36310
36331
  } else {
36311
36332
  this.state.timeRange = [
36312
- dayjs3("".concat(year, "-07-01")).toDate(),
36313
- dayjs3("".concat(year, "-12-31")).toDate()
36333
+ dayjs4("".concat(year, "-07-01")).toDate(),
36334
+ dayjs4("".concat(year, "-12-31")).toDate()
36314
36335
  ];
36315
36336
  }
36316
36337
  break;
36317
36338
  case "quarter":
36318
36339
  this.state.timeRange = [
36319
- dayjs3().startOf("quarter").toDate(),
36320
- dayjs3().endOf("quarter").toDate()
36340
+ dayjs4().startOf("quarter").toDate(),
36341
+ dayjs4().endOf("quarter").toDate()
36321
36342
  ];
36322
36343
  break;
36323
36344
  case "custom":
36324
36345
  const { begintime } = this.controlParams;
36325
36346
  const { endtime } = this.controlParams;
36326
- if (!begintime || !dayjs3(begintime).isValid() || !endtime || !dayjs3(endtime).isValid())
36347
+ if (!begintime || !dayjs4(begintime).isValid() || !endtime || !dayjs4(endtime).isValid())
36327
36348
  throw new RuntimeError30(
36328
36349
  ibiz.i18n.t("runtime.controller.control.calendar.illegalTime")
36329
36350
  );
36330
36351
  this.state.timeRange = [
36331
- dayjs3(begintime).toDate(),
36332
- dayjs3(endtime).toDate()
36352
+ dayjs4(begintime).toDate(),
36353
+ dayjs4(endtime).toDate()
36333
36354
  ];
36334
36355
  break;
36335
36356
  default:
@@ -36400,8 +36421,8 @@ var CalendarController = class extends MDControlController {
36400
36421
  return this.getEventArgs();
36401
36422
  };
36402
36423
  if (this.viewScheduler.hasViewEventTrigger) {
36403
- this.evt.onAll((_eventName, event) => {
36404
- this.viewScheduler.triggerViewEvent(event);
36424
+ this.evt.onAll(async (_eventName, event) => {
36425
+ await this.viewScheduler.triggerViewEvent(event);
36405
36426
  });
36406
36427
  }
36407
36428
  }
@@ -36463,13 +36484,12 @@ var CalendarController = class extends MDControlController {
36463
36484
  ctrl: this
36464
36485
  }
36465
36486
  ));
36466
- if (result === -1)
36467
- throw new RuntimeModelError40(
36468
- calendarItem,
36469
- ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
36470
- itemType: calendarItem.itemType.toLowerCase()
36471
- })
36472
- );
36487
+ if (result === -1) {
36488
+ ibiz.log.error(ibiz.i18n.t("runtime.engine.logicOpendata"));
36489
+ return {
36490
+ cancel: true
36491
+ };
36492
+ }
36473
36493
  return {
36474
36494
  cancel: result ? result.ok : true
36475
36495
  };
@@ -36499,13 +36519,12 @@ var CalendarController = class extends MDControlController {
36499
36519
  ctrl: this
36500
36520
  }
36501
36521
  ));
36502
- if (result === -1)
36503
- throw new RuntimeModelError40(
36504
- calendarItem,
36505
- ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
36506
- itemType: calendarItem.itemType.toLowerCase()
36507
- })
36508
- );
36522
+ if (result === -1) {
36523
+ ibiz.log.error(ibiz.i18n.t("runtime.engine.logicNewdata"));
36524
+ return {
36525
+ cancel: true
36526
+ };
36527
+ }
36509
36528
  return {
36510
36529
  cancel: result ? result.ok : true
36511
36530
  };
@@ -36645,9 +36664,9 @@ var CalendarController = class extends MDControlController {
36645
36664
  let result = 0;
36646
36665
  const x = a[sortField];
36647
36666
  const y = b[sortField];
36648
- if (dayjs3(x).isAfter(y)) {
36667
+ if (dayjs4(x).isAfter(y)) {
36649
36668
  result = -1;
36650
- } else if (dayjs3(x).isBefore(y)) {
36669
+ } else if (dayjs4(x).isBefore(y)) {
36651
36670
  result = 1;
36652
36671
  }
36653
36672
  return result;
@@ -36715,15 +36734,15 @@ var CalendarController = class extends MDControlController {
36715
36734
  );
36716
36735
  break;
36717
36736
  case "USER2":
36718
- srfstartdate = dayjs3(timeRange[0]).format("YYYY-MM-DD");
36719
- srfenddate = dayjs3(timeRange[1]).format("YYYY-MM-DD");
36737
+ srfstartdate = dayjs4(timeRange[0]).format("YYYY-MM-DD");
36738
+ srfenddate = dayjs4(timeRange[1]).format("YYYY-MM-DD");
36720
36739
  break;
36721
36740
  default:
36722
36741
  break;
36723
36742
  }
36724
36743
  return {
36725
- srfstartdate: dayjs3(srfstartdate).format("YYYY-MM-DD HH:mm:ss"),
36726
- srfenddate: dayjs3(srfenddate).format("YYYY-MM-DD HH:mm:ss")
36744
+ srfstartdate: dayjs4(srfstartdate).format("YYYY-MM-DD HH:mm:ss"),
36745
+ srfenddate: dayjs4(srfenddate).format("YYYY-MM-DD HH:mm:ss")
36727
36746
  };
36728
36747
  }
36729
36748
  return { srfstartdate, srfenddate };
@@ -36913,22 +36932,22 @@ import { isObject as isObject2, isString as isString2 } from "qx-util";
36913
36932
  import { RuntimeError as RuntimeError31 } from "@ibiz-template/core";
36914
36933
 
36915
36934
  // src/controller/control/chart/generator/line-series-generator.ts
36916
- import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
36935
+ import { RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
36917
36936
 
36918
36937
  // src/controller/control/chart/generator/base-series-generator.ts
36919
- import { plus, RuntimeModelError as RuntimeModelError41, toNumberOrNil } from "@ibiz-template/core";
36920
- import dayjs4 from "dayjs";
36938
+ import { plus, RuntimeModelError as RuntimeModelError40, toNumberOrNil } from "@ibiz-template/core";
36939
+ import dayjs5 from "dayjs";
36921
36940
  import minMax from "dayjs/plugin/minMax";
36922
36941
  import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
36923
36942
  import quarterOfYear from "dayjs/plugin/quarterOfYear";
36924
36943
  import weekOfYear from "dayjs/plugin/weekOfYear";
36925
36944
  import isoWeek from "dayjs/plugin/isoWeek";
36926
36945
  import { clone as clone16, isNil as isNil15, mergeDeepRight } from "ramda";
36927
- dayjs4.extend(minMax);
36928
- dayjs4.extend(isSameOrBefore);
36929
- dayjs4.extend(quarterOfYear);
36930
- dayjs4.extend(weekOfYear);
36931
- dayjs4.extend(isoWeek);
36946
+ dayjs5.extend(minMax);
36947
+ dayjs5.extend(isSameOrBefore);
36948
+ dayjs5.extend(quarterOfYear);
36949
+ dayjs5.extend(weekOfYear);
36950
+ dayjs5.extend(isoWeek);
36932
36951
  var DEFAULT_GROUP = "$default_group";
36933
36952
  var BaseSeriesGenerator = class {
36934
36953
  /**
@@ -36998,13 +37017,13 @@ var BaseSeriesGenerator = class {
36998
37017
  var _a3;
36999
37018
  const { chartSeriesEncode, caption, id, userParam } = model;
37000
37019
  if (!model.catalogField) {
37001
- throw new RuntimeModelError41(
37020
+ throw new RuntimeModelError40(
37002
37021
  model,
37003
37022
  ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
37004
37023
  );
37005
37024
  }
37006
37025
  if (!model.valueField) {
37007
- throw new RuntimeModelError41(
37026
+ throw new RuntimeModelError40(
37008
37027
  model,
37009
37028
  ibiz.i18n.t("runtime.controller.control.chart.missingValue")
37010
37029
  );
@@ -37550,25 +37569,25 @@ var BaseSeriesGenerator = class {
37550
37569
  format = "YYYY-MM";
37551
37570
  }
37552
37571
  if (singleData[this.catalogField]) {
37553
- const formattedDate = dayjs4(singleData[this.catalogField]).format(
37572
+ const formattedDate = dayjs5(singleData[this.catalogField]).format(
37554
37573
  format
37555
37574
  );
37556
37575
  singleData[this.catalogField] = formattedDate;
37557
37576
  }
37558
37577
  } else if (groupMode === "QUARTER") {
37559
37578
  if (singleData[this.catalogField]) {
37560
- const formattedDate = "".concat(dayjs4(
37579
+ const formattedDate = "".concat(dayjs5(
37561
37580
  singleData[this.catalogField]
37562
- ).format("YYYY"), "-").concat(dayjs4(
37581
+ ).format("YYYY"), "-").concat(dayjs5(
37563
37582
  singleData[this.catalogField]
37564
37583
  ).quarter());
37565
37584
  singleData[this.catalogField] = formattedDate;
37566
37585
  }
37567
37586
  } else if (groupMode === "YEARWEEK") {
37568
37587
  if (singleData[this.catalogField]) {
37569
- const formattedDate = "".concat(dayjs4(
37588
+ const formattedDate = "".concat(dayjs5(
37570
37589
  singleData[this.catalogField]
37571
- ).format("YYYY"), "-").concat(dayjs4(singleData[this.catalogField]).week());
37590
+ ).format("YYYY"), "-").concat(dayjs5(singleData[this.catalogField]).week());
37572
37591
  singleData[this.catalogField] = formattedDate;
37573
37592
  }
37574
37593
  }
@@ -37590,7 +37609,7 @@ var BaseSeriesGenerator = class {
37590
37609
  let sortedKeys = [];
37591
37610
  if (groupMode === "DAY" || groupMode === "YEAR" || groupMode === "MONTH") {
37592
37611
  sortedKeys = Array.from(dateMap.keys()).sort(
37593
- (a, b) => dayjs4(a).diff(dayjs4(b))
37612
+ (a, b) => dayjs5(a).diff(dayjs5(b))
37594
37613
  );
37595
37614
  } else if (groupMode === "QUARTER" || groupMode === "YEARWEEK") {
37596
37615
  sortedKeys = Array.from(dateMap.keys()).sort((a, b) => {
@@ -37623,13 +37642,13 @@ var BaseSeriesGenerator = class {
37623
37642
  const dates = [];
37624
37643
  Object.keys(data).forEach((key) => {
37625
37644
  data[key].forEach((_val, date) => {
37626
- dates.push(dayjs4(date));
37645
+ dates.push(dayjs5(date));
37627
37646
  });
37628
37647
  });
37629
37648
  if (!dates.length)
37630
37649
  return;
37631
- const maxDate = dayjs4.max(dates);
37632
- const minDate = dayjs4.min(dates);
37650
+ const maxDate = dayjs5.max(dates);
37651
+ const minDate = dayjs5.min(dates);
37633
37652
  if (groupMode === "DAY") {
37634
37653
  let currentDate = minDate;
37635
37654
  const endDate = maxDate;
@@ -37751,13 +37770,13 @@ var BaseSeriesGenerator = class {
37751
37770
  var LineSeriesGenerator = class extends BaseSeriesGenerator {
37752
37771
  calcStaticOptions() {
37753
37772
  if (this.xAxisIndex === void 0) {
37754
- throw new RuntimeModelError42(
37773
+ throw new RuntimeModelError41(
37755
37774
  this.model,
37756
37775
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37757
37776
  );
37758
37777
  }
37759
37778
  if (this.yAxisIndex === void 0) {
37760
- throw new RuntimeModelError42(
37779
+ throw new RuntimeModelError41(
37761
37780
  this.model,
37762
37781
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37763
37782
  );
@@ -37776,17 +37795,17 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
37776
37795
  };
37777
37796
 
37778
37797
  // src/controller/control/chart/generator/bar-series-generator.ts
37779
- import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
37798
+ import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
37780
37799
  var BarSeriesGenerator = class extends BaseSeriesGenerator {
37781
37800
  calcStaticOptions() {
37782
37801
  if (this.xAxisIndex === void 0) {
37783
- throw new RuntimeModelError43(
37802
+ throw new RuntimeModelError42(
37784
37803
  this.model,
37785
37804
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37786
37805
  );
37787
37806
  }
37788
37807
  if (this.yAxisIndex === void 0) {
37789
- throw new RuntimeModelError43(
37808
+ throw new RuntimeModelError42(
37790
37809
  this.model,
37791
37810
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37792
37811
  );
@@ -37842,17 +37861,17 @@ var PieSeriesGenerator = class extends BaseSeriesGenerator {
37842
37861
  };
37843
37862
 
37844
37863
  // src/controller/control/chart/generator/scatter-series-generator.ts
37845
- import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
37864
+ import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
37846
37865
  var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
37847
37866
  calcStaticOptions() {
37848
37867
  if (this.xAxisIndex === void 0) {
37849
- throw new RuntimeModelError44(
37868
+ throw new RuntimeModelError43(
37850
37869
  this.model,
37851
37870
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37852
37871
  );
37853
37872
  }
37854
37873
  if (this.yAxisIndex === void 0) {
37855
- throw new RuntimeModelError44(
37874
+ throw new RuntimeModelError43(
37856
37875
  this.model,
37857
37876
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
37858
37877
  );
@@ -37982,7 +38001,7 @@ var RadarSeriesGenerator = class extends BaseSeriesGenerator {
37982
38001
  };
37983
38002
 
37984
38003
  // src/controller/control/chart/generator/area-series-generator.ts
37985
- import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
38004
+ import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
37986
38005
  var AreaSeriesGenerator = class extends BaseSeriesGenerator {
37987
38006
  /**
37988
38007
  * 计算静态序列的options
@@ -37991,13 +38010,13 @@ var AreaSeriesGenerator = class extends BaseSeriesGenerator {
37991
38010
  */
37992
38011
  calcStaticOptions() {
37993
38012
  if (this.xAxisIndex === void 0) {
37994
- throw new RuntimeModelError45(
38013
+ throw new RuntimeModelError44(
37995
38014
  this.model,
37996
38015
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredX")
37997
38016
  );
37998
38017
  }
37999
38018
  if (this.yAxisIndex === void 0) {
38000
- throw new RuntimeModelError45(
38019
+ throw new RuntimeModelError44(
38001
38020
  this.model,
38002
38021
  ibiz.i18n.t("runtime.controller.control.chart.noConfiguredY")
38003
38022
  );
@@ -38047,7 +38066,7 @@ var GaugeSeriesGenerator = class extends BaseSeriesGenerator {
38047
38066
  // src/controller/control/chart/generator/candlestick-series-generator.ts
38048
38067
  import { isNil as isNil16 } from "ramda";
38049
38068
  import { isArray as isArray9, isNumber as isNumber3 } from "qx-util";
38050
- import { plus as plus2, RuntimeModelError as RuntimeModelError46, toNumberOrNil as toNumberOrNil2 } from "@ibiz-template/core";
38069
+ import { plus as plus2, RuntimeModelError as RuntimeModelError45, toNumberOrNil as toNumberOrNil2 } from "@ibiz-template/core";
38051
38070
  var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
38052
38071
  /**
38053
38072
  * 初始化参数
@@ -38060,7 +38079,7 @@ var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
38060
38079
  var _a3;
38061
38080
  const { chartSeriesEncode, caption, id, userParam, navViewParamJO } = model;
38062
38081
  if (!model.catalogField) {
38063
- throw new RuntimeModelError46(
38082
+ throw new RuntimeModelError45(
38064
38083
  model,
38065
38084
  ibiz.i18n.t("runtime.controller.control.chart.missingClassification")
38066
38085
  );
@@ -41392,7 +41411,7 @@ import { clone as clone23 } from "ramda";
41392
41411
  import { isString as isString3 } from "lodash-es";
41393
41412
 
41394
41413
  // src/controller/control/search-bar/search-bar-filter.controller.ts
41395
- import { RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
41414
+ import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
41396
41415
 
41397
41416
  // src/controller/control/search-bar/util.ts
41398
41417
  var ItemsValueOPs = [
@@ -41473,7 +41492,7 @@ var SearchBarFilterController = class {
41473
41492
  async init() {
41474
41493
  if (!this.noEditor) {
41475
41494
  if (!this.model.editor) {
41476
- throw new RuntimeModelError47(
41495
+ throw new RuntimeModelError46(
41477
41496
  this.model,
41478
41497
  ibiz.i18n.t("runtime.controller.control.searchBar.missingModel")
41479
41498
  );
@@ -43581,7 +43600,7 @@ import {
43581
43600
  clone as clone25,
43582
43601
  DataTypes as DataTypes2,
43583
43602
  isElementSame as isElementSame2,
43584
- RuntimeModelError as RuntimeModelError48
43603
+ RuntimeModelError as RuntimeModelError47
43585
43604
  } from "@ibiz-template/core";
43586
43605
  import { isNil as isNil18, isNotNil as isNotNil4 } from "ramda";
43587
43606
  import { createUUID as createUUID6, isBoolean } from "qx-util";
@@ -44044,7 +44063,7 @@ var DataViewControlController = class extends MDControlController {
44044
44063
  const { enableGroup } = this.state;
44045
44064
  if (enableGroup && groupMode) {
44046
44065
  if (!groupAppDEFieldId) {
44047
- throw new RuntimeModelError48(
44066
+ throw new RuntimeModelError47(
44048
44067
  this.model,
44049
44068
  ibiz.i18n.t(
44050
44069
  "runtime.controller.control.dataView.propertiesNoConfigured"
@@ -44137,7 +44156,7 @@ var DataViewControlController = class extends MDControlController {
44137
44156
  async handleCodeListGroup() {
44138
44157
  const { groupAppDEFieldId, groupCodeListId } = this.model;
44139
44158
  if (!groupCodeListId) {
44140
- throw new RuntimeModelError48(
44159
+ throw new RuntimeModelError47(
44141
44160
  this.model,
44142
44161
  ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
44143
44162
  );
@@ -44251,7 +44270,7 @@ var DataViewControlController = class extends MDControlController {
44251
44270
  caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
44252
44271
  }
44253
44272
  if (!item.appDEFieldId) {
44254
- throw new RuntimeModelError48(
44273
+ throw new RuntimeModelError47(
44255
44274
  item,
44256
44275
  ibiz.i18n.t("runtime.controller.control.dataView.sortingItems")
44257
44276
  );
@@ -44472,13 +44491,13 @@ var DataViewControlController = class extends MDControlController {
44472
44491
  await this.updateChangedItems([draggedItem]);
44473
44492
  } else {
44474
44493
  if (!minorSortAppDEFieldId)
44475
- throw new RuntimeModelError48(
44494
+ throw new RuntimeModelError47(
44476
44495
  this.model,
44477
44496
  ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
44478
44497
  );
44479
44498
  const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
44480
44499
  if (!moveAction)
44481
- throw new RuntimeModelError48(
44500
+ throw new RuntimeModelError47(
44482
44501
  this.model,
44483
44502
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
44484
44503
  );
@@ -45474,7 +45493,7 @@ import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
45474
45493
 
45475
45494
  // src/controller/control/form/form/form.controller.ts
45476
45495
  import {
45477
- RuntimeModelError as RuntimeModelError49,
45496
+ RuntimeModelError as RuntimeModelError48,
45478
45497
  debounceAndAsyncMerge,
45479
45498
  recursiveIterate as recursiveIterate8,
45480
45499
  EntityError,
@@ -45744,7 +45763,7 @@ var FormController = class extends ControlController {
45744
45763
  return;
45745
45764
  }
45746
45765
  if (form.details[detail.id]) {
45747
- throw new RuntimeModelError49(
45766
+ throw new RuntimeModelError48(
45748
45767
  detail,
45749
45768
  ibiz.i18n.t(
45750
45769
  "runtime.controller.control.form.initializationException",
@@ -47959,6 +47978,13 @@ var FormItemState = class extends FormDetailState {
47959
47978
  * @memberof FormItemState
47960
47979
  */
47961
47980
  this.inputTipUrl = void 0;
47981
+ /**
47982
+ * 编辑器类名集合
47983
+ *
47984
+ * @type {string[]}
47985
+ * @memberof FormItemState
47986
+ */
47987
+ this.editorClass = [];
47962
47988
  let $disabled = false;
47963
47989
  Object.defineProperty(this, "disabled", {
47964
47990
  enumerable: true,
@@ -48462,6 +48488,19 @@ var FormItemController = class extends FormDetailController {
48462
48488
  clearTipsCache() {
48463
48489
  localStorage.removeItem(this.TIPS_CACHE);
48464
48490
  }
48491
+ /**
48492
+ * @description 计算动态样式表
48493
+ * @param {IData} data
48494
+ * @memberof FormItemController
48495
+ */
48496
+ calcDynaClass(data) {
48497
+ var _a3;
48498
+ super.calcDynaClass(data);
48499
+ if ((_a3 = this.model.editor) == null ? void 0 : _a3.dynaClass) {
48500
+ const dynaClass = calcDynaClass(this.model.editor.dynaClass, data);
48501
+ this.state.editorClass = dynaClass;
48502
+ }
48503
+ }
48465
48504
  };
48466
48505
 
48467
48506
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts
@@ -48670,7 +48709,7 @@ var FormMDCtrlController = class extends FormDetailController {
48670
48709
  import {
48671
48710
  ModelError as ModelError20,
48672
48711
  mergeInLeft as mergeInLeft2,
48673
- RuntimeModelError as RuntimeModelError50
48712
+ RuntimeModelError as RuntimeModelError49
48674
48713
  } from "@ibiz-template/core";
48675
48714
  var FormMDCtrlMDController = class extends FormMDCtrlController {
48676
48715
  constructor() {
@@ -48709,7 +48748,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
48709
48748
  if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
48710
48749
  return;
48711
48750
  }
48712
- throw new RuntimeModelError50(
48751
+ throw new RuntimeModelError49(
48713
48752
  this.model,
48714
48753
  ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
48715
48754
  );
@@ -48848,7 +48887,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
48848
48887
  };
48849
48888
 
48850
48889
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
48851
- import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
48890
+ import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
48852
48891
  import { createUUID as createUUID8 } from "qx-util";
48853
48892
 
48854
48893
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
@@ -48893,7 +48932,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
48893
48932
  if (((_a3 = this.context) == null ? void 0 : _a3.srfrunmode) === "DESIGN") {
48894
48933
  return;
48895
48934
  }
48896
- throw new RuntimeModelError51(
48935
+ throw new RuntimeModelError50(
48897
48936
  this.model,
48898
48937
  ibiz.i18n.t("runtime.controller.control.form.unconfiguredWidgets")
48899
48938
  );
@@ -49458,6 +49497,20 @@ var FormRawItemController = class extends FormDetailController {
49458
49497
  var _a3;
49459
49498
  return new FormRawItemState((_a3 = this.parent) == null ? void 0 : _a3.state);
49460
49499
  }
49500
+ /**
49501
+ * @description 计算动态样式表
49502
+ * @protected
49503
+ * @param {IData} data
49504
+ * @memberof FormRawItemController
49505
+ */
49506
+ calcDynaClass(data) {
49507
+ var _a3;
49508
+ super.calcDynaClass(data);
49509
+ if ((_a3 = this.model.rawItem) == null ? void 0 : _a3.dynaClass) {
49510
+ const dynaClass = calcDynaClass(this.model.rawItem.dynaClass, data);
49511
+ this.state.class.containerDyna = dynaClass;
49512
+ }
49513
+ }
49461
49514
  };
49462
49515
 
49463
49516
  // src/controller/control/form/form-detail/form-tab-page/form-tab-page.state.ts
@@ -49897,7 +49950,7 @@ import { clone as clone30, isNil as isNil21 } from "ramda";
49897
49950
  // src/controller/control/form/edit-form/edit-form.service.ts
49898
49951
  import {
49899
49952
  recursiveIterate as recursiveIterate12,
49900
- RuntimeModelError as RuntimeModelError52
49953
+ RuntimeModelError as RuntimeModelError51
49901
49954
  } from "@ibiz-template/core";
49902
49955
  var EditFormService = class extends FormService {
49903
49956
  /**
@@ -50024,7 +50077,7 @@ var EditFormService = class extends FormService {
50024
50077
  const wizardForm = this.model;
50025
50078
  const methodName = (_a3 = wizardForm.goBackControlAction) == null ? void 0 : _a3.appDEMethodId;
50026
50079
  if (!methodName) {
50027
- throw new RuntimeModelError52(
50080
+ throw new RuntimeModelError51(
50028
50081
  this.model,
50029
50082
  ibiz.i18n.t("runtime.controller.control.form.lackBehavior")
50030
50083
  );
@@ -51277,15 +51330,15 @@ import {
51277
51330
  awaitTimeout as awaitTimeout2,
51278
51331
  RuntimeError as RuntimeError40,
51279
51332
  recursiveIterate as recursiveIterate13,
51280
- RuntimeModelError as RuntimeModelError54,
51333
+ RuntimeModelError as RuntimeModelError53,
51281
51334
  mergeDefaultInLeft as mergeDefaultInLeft2,
51282
51335
  debounceAndAsyncMerge as debounceAndAsyncMerge2
51283
51336
  } from "@ibiz-template/core";
51284
51337
  import { clone as clone32 } from "ramda";
51285
- import dayjs5 from "dayjs";
51338
+ import dayjs6 from "dayjs";
51286
51339
 
51287
51340
  // src/controller/control/grid/grid/grid.service.ts
51288
- import { RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
51341
+ import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
51289
51342
  var GridService = class extends MDControlService2 {
51290
51343
  /**
51291
51344
  * 初始化属性映射
@@ -51313,7 +51366,7 @@ var GridService = class extends MDControlService2 {
51313
51366
  dataType: dataItem.dataType
51314
51367
  });
51315
51368
  } else {
51316
- throw new RuntimeModelError53(
51369
+ throw new RuntimeModelError52(
51317
51370
  column,
51318
51371
  ibiz.i18n.t("runtime.controller.control.grid.corresponding", {
51319
51372
  deField
@@ -51864,8 +51917,8 @@ var GridController = class extends MDControlController {
51864
51917
  if (!valueFormat) {
51865
51918
  return strVal;
51866
51919
  }
51867
- if (isDate && dayjs5(strVal, valueFormat, true).isValid()) {
51868
- const formatVal = dayjs5(strVal).format(valueFormat);
51920
+ if (isDate && dayjs6(strVal, valueFormat, true).isValid()) {
51921
+ const formatVal = dayjs6(strVal).format(valueFormat);
51869
51922
  return formatVal;
51870
51923
  }
51871
51924
  return ibiz.util.text.format(strVal, valueFormat);
@@ -52243,7 +52296,7 @@ var GridController = class extends MDControlController {
52243
52296
  (item) => item.model.appDEFieldId === groupAppDEFieldId
52244
52297
  );
52245
52298
  if (!this.groupFieldColumn) {
52246
- throw new RuntimeModelError54(
52299
+ throw new RuntimeModelError53(
52247
52300
  this.model,
52248
52301
  ibiz.i18n.t("runtime.controller.control.grid.attributeColumns")
52249
52302
  );
@@ -52254,7 +52307,7 @@ var GridController = class extends MDControlController {
52254
52307
  );
52255
52308
  if (index !== -1 && index !== 0) {
52256
52309
  if (this.isMultistageHeader) {
52257
- throw new RuntimeModelError54(
52310
+ throw new RuntimeModelError53(
52258
52311
  this.model,
52259
52312
  ibiz.i18n.t("runtime.controller.control.grid.configureFirstColumn", {
52260
52313
  groupFieldName
@@ -52266,13 +52319,13 @@ var GridController = class extends MDControlController {
52266
52319
  }
52267
52320
  if (groupMode === "CODELIST") {
52268
52321
  if (!groupCodeListId) {
52269
- throw new RuntimeModelError54(
52322
+ throw new RuntimeModelError53(
52270
52323
  this.model,
52271
52324
  ibiz.i18n.t("runtime.controller.control.grid.requiresCodeTable")
52272
52325
  );
52273
52326
  }
52274
52327
  if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
52275
- throw new RuntimeModelError54(
52328
+ throw new RuntimeModelError53(
52276
52329
  this.model,
52277
52330
  ibiz.i18n.t("runtime.controller.control.grid.noMatchCodeTable", {
52278
52331
  groupFieldName
@@ -52431,7 +52484,7 @@ var GridController = class extends MDControlController {
52431
52484
  return;
52432
52485
  }
52433
52486
  if (!aggAppDEDataSetId || !aggAppDataEntityId) {
52434
- throw new RuntimeModelError54(
52487
+ throw new RuntimeModelError53(
52435
52488
  this.model,
52436
52489
  ibiz.i18n.t("runtime.controller.control.grid.missingConfiguration")
52437
52490
  );
@@ -53203,7 +53256,7 @@ var GridController = class extends MDControlController {
53203
53256
  * @memberof GridController
53204
53257
  */
53205
53258
  async exportData(args) {
53206
- var _a3;
53259
+ var _a3, _b2;
53207
53260
  if ((_a3 = this.dataExport) == null ? void 0 : _a3.enableBackend) {
53208
53261
  await this.excuteBackendExport(args.params);
53209
53262
  return;
@@ -53218,10 +53271,19 @@ var GridController = class extends MDControlController {
53218
53271
  const data = await this.getExportData(args.params);
53219
53272
  const formatData = this.formatExcelData(data, fields);
53220
53273
  const table = formatData.map((v) => Object.values(v));
53274
+ let fileName = this.model.logicName;
53275
+ if ((_b2 = this.dataExport) == null ? void 0 : _b2.fileNameFormat) {
53276
+ fileName = await ibiz.util.hbs.render(this.dataExport.fileNameFormat, {
53277
+ context: this.context,
53278
+ params: this.params,
53279
+ data: this.view.state.srfactiveviewdata,
53280
+ now: /* @__PURE__ */ new Date()
53281
+ });
53282
+ }
53221
53283
  await ibiz.platform.frontExport({
53222
53284
  header,
53223
53285
  data: table,
53224
- fileName: this.model.logicName
53286
+ fileName
53225
53287
  });
53226
53288
  }
53227
53289
  /**
@@ -53476,7 +53538,7 @@ var GridController = class extends MDControlController {
53476
53538
  var _a3;
53477
53539
  const moveAction = (_a3 = this.model.moveControlAction) == null ? void 0 : _a3.appDEMethodId;
53478
53540
  if (!moveAction) {
53479
- throw new RuntimeModelError54(
53541
+ throw new RuntimeModelError53(
53480
53542
  this.model,
53481
53543
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
53482
53544
  );
@@ -53588,7 +53650,7 @@ import {
53588
53650
  ModelError as ModelError22,
53589
53651
  base64ToStr
53590
53652
  } from "@ibiz-template/core";
53591
- import dayjs6 from "dayjs";
53653
+ import dayjs7 from "dayjs";
53592
53654
  import { debounce as debounce2 } from "lodash-es";
53593
53655
  import { clone as clone33, isNil as isNil22 } from "ramda";
53594
53656
  import { isNilOrEmpty as isNilOrEmpty7 } from "qx-util";
@@ -53996,7 +54058,7 @@ var GridFieldColumnController = class extends GridColumnController {
53996
54058
  }
53997
54059
  const isDate = DataTypes4.isDate(this.dataType);
53998
54060
  if (isDate) {
53999
- const formatVal = dayjs6(strVal).format(this.valueFormat);
54061
+ const formatVal = dayjs7(strVal).format(this.valueFormat);
54000
54062
  if (formatVal !== "Invalid Date") {
54001
54063
  return formatVal;
54002
54064
  }
@@ -54033,7 +54095,7 @@ var GridFieldColumnController = class extends GridColumnController {
54033
54095
  };
54034
54096
 
54035
54097
  // src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
54036
- import { RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
54098
+ import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
54037
54099
  var GridUAColumnController = class extends GridColumnController {
54038
54100
  /**
54039
54101
  * 给rowController初始化操作列的状态
@@ -54046,7 +54108,7 @@ var GridUAColumnController = class extends GridColumnController {
54046
54108
  var _a3;
54047
54109
  const { deuiactionGroup } = this.model;
54048
54110
  if (!deuiactionGroup) {
54049
- throw new RuntimeModelError55(
54111
+ throw new RuntimeModelError54(
54050
54112
  this.model,
54051
54113
  ibiz.i18n.t("runtime.controller.control.grid.behaviorGroup")
54052
54114
  );
@@ -54384,9 +54446,9 @@ import {
54384
54446
  clone as clone35,
54385
54447
  DataTypes as DataTypes5,
54386
54448
  isElementSame as isElementSame4,
54387
- RuntimeModelError as RuntimeModelError56
54449
+ RuntimeModelError as RuntimeModelError55
54388
54450
  } from "@ibiz-template/core";
54389
- import dayjs7 from "dayjs";
54451
+ import dayjs8 from "dayjs";
54390
54452
 
54391
54453
  // src/controller/control/list/list.service.ts
54392
54454
  import { clone as clone34 } from "@ibiz-template/core";
@@ -54811,9 +54873,9 @@ var ListController = class extends MDControlController {
54811
54873
  let groupVal = item[textDEFieldId];
54812
54874
  if (dateFormat)
54813
54875
  groupVal = formatDateByScale(groupVal, dateFormat);
54814
- if (this.model.groupStyle === "STYLE2" && dayjs7(groupVal).isValid()) {
54876
+ if (this.model.groupStyle === "STYLE2" && dayjs8(groupVal).isValid()) {
54815
54877
  groupVal = formatDateByScale(groupVal, "day");
54816
- if (dayjs7(groupVal).isSame(dayjs7(), "day"))
54878
+ if (dayjs8(groupVal).isSame(dayjs8(), "day"))
54817
54879
  groupVal = ibiz.i18n.t("runtime.controller.common.md.today");
54818
54880
  }
54819
54881
  if (isNil23(groupVal)) {
@@ -55099,13 +55161,13 @@ var ListController = class extends MDControlController {
55099
55161
  await this.updateChangedItems([draggedItem]);
55100
55162
  } else {
55101
55163
  if (!minorSortAppDEFieldId)
55102
- throw new RuntimeModelError56(
55164
+ throw new RuntimeModelError55(
55103
55165
  this.model,
55104
55166
  ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
55105
55167
  );
55106
55168
  const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
55107
55169
  if (!moveAction)
55108
- throw new RuntimeModelError56(
55170
+ throw new RuntimeModelError55(
55109
55171
  this.model,
55110
55172
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
55111
55173
  );
@@ -57826,7 +57888,7 @@ var TabExpPanelController = class extends ControlController {
57826
57888
  import {
57827
57889
  RuntimeError as RuntimeError43,
57828
57890
  recursiveIterate as recursiveIterate15,
57829
- RuntimeModelError as RuntimeModelError57
57891
+ RuntimeModelError as RuntimeModelError56
57830
57892
  } from "@ibiz-template/core";
57831
57893
  import { isNil as isNil27 } from "ramda";
57832
57894
  import { isBoolean as isBoolean4 } from "qx-util";
@@ -58715,8 +58777,8 @@ var TreeController = class extends MDControlController {
58715
58777
  return this.getEventArgs();
58716
58778
  };
58717
58779
  if (this.viewScheduler.hasViewEventTrigger) {
58718
- this.evt.onAll((_eventName, event) => {
58719
- this.viewScheduler.triggerViewEvent(event);
58780
+ this.evt.onAll(async (_eventName, event) => {
58781
+ await this.viewScheduler.triggerViewEvent(event);
58720
58782
  });
58721
58783
  }
58722
58784
  }
@@ -59425,7 +59487,7 @@ var TreeController = class extends MDControlController {
59425
59487
  const { moveAppDEActionId, appDataEntityId, allowOrder } = orderNodeModel;
59426
59488
  if (allowOrder) {
59427
59489
  if (!moveAppDEActionId) {
59428
- throw new RuntimeModelError57(
59490
+ throw new RuntimeModelError56(
59429
59491
  this.model,
59430
59492
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
59431
59493
  );
@@ -59507,7 +59569,7 @@ var TreeController = class extends MDControlController {
59507
59569
  async modifyNodeText(nodeData, text) {
59508
59570
  const model = this.getNodeModel(nodeData._nodeId);
59509
59571
  if (!model.allowEditText) {
59510
- throw new RuntimeModelError57(
59572
+ throw new RuntimeModelError56(
59511
59573
  model,
59512
59574
  ibiz.i18n.t("runtime.controller.control.tree.editMode")
59513
59575
  );
@@ -59620,7 +59682,7 @@ var TreeController = class extends MDControlController {
59620
59682
  const nodeModel = this.getNodeModel(nodeType);
59621
59683
  const parentNodeData = this.getNodeData(parentKey);
59622
59684
  if (!nodeModel) {
59623
- throw new RuntimeModelError57(
59685
+ throw new RuntimeModelError56(
59624
59686
  this.model,
59625
59687
  ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
59626
59688
  );
@@ -59753,13 +59815,12 @@ var TreeController = class extends MDControlController {
59753
59815
  ctrl: this
59754
59816
  }
59755
59817
  ));
59756
- if (result === -1)
59757
- throw new RuntimeModelError57(
59758
- nodeModel,
59759
- ibiz.i18n.t("runtime.controller.common.md.logicOpendata", {
59760
- itemType: nodeModel.id.toLowerCase()
59761
- })
59762
- );
59818
+ if (result === -1) {
59819
+ ibiz.log.error(ibiz.i18n.t("runtime.engine.logicOpendata"));
59820
+ return {
59821
+ cancel: true
59822
+ };
59823
+ }
59763
59824
  return {
59764
59825
  cancel: result ? !result.ok : true
59765
59826
  };
@@ -59792,13 +59853,12 @@ var TreeController = class extends MDControlController {
59792
59853
  ctrl: this
59793
59854
  }
59794
59855
  ));
59795
- if (result === -1)
59796
- throw new RuntimeModelError57(
59797
- nodeModel,
59798
- ibiz.i18n.t("runtime.controller.common.md.logicNewdata", {
59799
- itemType: nodeModel.id.toLowerCase()
59800
- })
59801
- );
59856
+ if (result === -1) {
59857
+ ibiz.log.error(ibiz.i18n.t("runtime.engine.logicNewdata"));
59858
+ return {
59859
+ cancel: true
59860
+ };
59861
+ }
59802
59862
  return {
59803
59863
  cancel: result ? !result.ok : true
59804
59864
  };
@@ -60389,7 +60449,7 @@ var WizardPanelController = class extends ControlController {
60389
60449
  };
60390
60450
 
60391
60451
  // src/controller/control/md-ctrl/md-ctrl.controller.ts
60392
- import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
60452
+ import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
60393
60453
  import { clone as clone38, isNil as isNil28, isNotNil as isNotNil8 } from "ramda";
60394
60454
  import { createUUID as createUUID15 } from "qx-util";
60395
60455
 
@@ -60708,7 +60768,7 @@ var MDCtrlController = class extends MDControlController {
60708
60768
  const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
60709
60769
  if (enableGroup && groupMode) {
60710
60770
  if (!groupAppDEFieldId) {
60711
- throw new RuntimeModelError58(
60771
+ throw new RuntimeModelError57(
60712
60772
  this.model,
60713
60773
  ibiz.i18n.t(
60714
60774
  "runtime.controller.control.dataView.propertiesNoConfigured"
@@ -60800,7 +60860,7 @@ var MDCtrlController = class extends MDControlController {
60800
60860
  async handleCodeListGroup() {
60801
60861
  const { groupAppDEFieldId, groupCodeListId } = this.model;
60802
60862
  if (!groupCodeListId) {
60803
- throw new RuntimeModelError58(
60863
+ throw new RuntimeModelError57(
60804
60864
  this.model,
60805
60865
  ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
60806
60866
  );
@@ -61138,7 +61198,7 @@ import {
61138
61198
  clone as clone39,
61139
61199
  RuntimeError as RuntimeError46,
61140
61200
  isElementSame as isElementSame5,
61141
- RuntimeModelError as RuntimeModelError59
61201
+ RuntimeModelError as RuntimeModelError58
61142
61202
  } from "@ibiz-template/core";
61143
61203
 
61144
61204
  // src/controller/control/kanban/kanban.service.ts
@@ -61428,7 +61488,7 @@ var KanbanController = class extends DataViewControlController {
61428
61488
  async handleCodeListGroup() {
61429
61489
  const { groupAppDEFieldId, groupCodeListId } = this.model;
61430
61490
  if (!groupCodeListId) {
61431
- throw new RuntimeModelError59(
61491
+ throw new RuntimeModelError58(
61432
61492
  this.model,
61433
61493
  ibiz.i18n.t("runtime.controller.control.dataView.tableNoConfigured")
61434
61494
  );
@@ -61492,13 +61552,13 @@ var KanbanController = class extends DataViewControlController {
61492
61552
  await this.updateChangedItems([draggedItem]);
61493
61553
  } else {
61494
61554
  if (!minorSortAppDEFieldId)
61495
- throw new RuntimeModelError59(
61555
+ throw new RuntimeModelError58(
61496
61556
  this.model,
61497
61557
  ibiz.i18n.t("runtime.controller.common.md.sortingProperties")
61498
61558
  );
61499
61559
  const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
61500
61560
  if (!moveAction)
61501
- throw new RuntimeModelError59(
61561
+ throw new RuntimeModelError58(
61502
61562
  this.model,
61503
61563
  ibiz.i18n.t("runtime.controller.common.md.noMoveDataCconfig")
61504
61564
  );
@@ -61699,7 +61759,7 @@ import {
61699
61759
  RuntimeError as RuntimeError47,
61700
61760
  awaitTimeout as awaitTimeout3,
61701
61761
  recursiveIterate as recursiveIterate16,
61702
- RuntimeModelError as RuntimeModelError60
61762
+ RuntimeModelError as RuntimeModelError59
61703
61763
  } from "@ibiz-template/core";
61704
61764
  import { clone as clone40 } from "ramda";
61705
61765
 
@@ -62128,7 +62188,7 @@ var TreeGridExController = class extends TreeController {
62128
62188
  );
62129
62189
  }
62130
62190
  if (!updateAppDEActionId) {
62131
- throw new RuntimeModelError60(
62191
+ throw new RuntimeModelError59(
62132
62192
  nodeModel,
62133
62193
  ibiz.i18n.t("runtime.controller.control.treeGridEx.updateBehavior")
62134
62194
  );
@@ -62456,10 +62516,10 @@ var TreeGridExColumnController = class {
62456
62516
  import {
62457
62517
  DataTypes as DataTypes7,
62458
62518
  RuntimeError as RuntimeError48,
62459
- RuntimeModelError as RuntimeModelError61
62519
+ RuntimeModelError as RuntimeModelError60
62460
62520
  } from "@ibiz-template/core";
62461
62521
  import { clone as clone41 } from "ramda";
62462
- import dayjs8 from "dayjs";
62522
+ import dayjs9 from "dayjs";
62463
62523
  var TreeGridExNodeColumnController = class {
62464
62524
  /**
62465
62525
  * @author lxm
@@ -62487,7 +62547,7 @@ var TreeGridExNodeColumnController = class {
62487
62547
  }
62488
62548
  );
62489
62549
  if (!nodeColumn || !nodeDataItem) {
62490
- throw new RuntimeModelError61(
62550
+ throw new RuntimeModelError60(
62491
62551
  nodeModel,
62492
62552
  ibiz.i18n.t("runtime.controller.control.treeGridEx.noConfigured", {
62493
62553
  name: this.fieldColumn.name
@@ -62503,7 +62563,7 @@ var TreeGridExNodeColumnController = class {
62503
62563
  }
62504
62564
  );
62505
62565
  if (!nodeEditItem) {
62506
- throw new RuntimeModelError61(
62566
+ throw new RuntimeModelError60(
62507
62567
  nodeModel,
62508
62568
  ibiz.i18n.t("runtime.controller.control.treeGridEx.editItem", {
62509
62569
  name: this.fieldColumn.name
@@ -62759,7 +62819,7 @@ var TreeGridExNodeColumnController = class {
62759
62819
  }
62760
62820
  const isDate = DataTypes7.isDate(this.dataType);
62761
62821
  if (isDate || this.fieldColumn.name === "createdate") {
62762
- const formatVal = dayjs8(strVal).format(this.valueFormat);
62822
+ const formatVal = dayjs9(strVal).format(this.valueFormat);
62763
62823
  if (formatVal !== "Invalid Date") {
62764
62824
  return formatVal;
62765
62825
  }
@@ -63012,7 +63072,7 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
63012
63072
  };
63013
63073
 
63014
63074
  // src/controller/control/tree-grid/tree-grid.controller.ts
63015
- import { RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
63075
+ import { RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
63016
63076
  import { createUUID as createUUID16 } from "qx-util";
63017
63077
  var TreeGridController = class extends GridController {
63018
63078
  constructor() {
@@ -63057,7 +63117,7 @@ var TreeGridController = class extends GridController {
63057
63117
  return item.treeColumnMode === 4 || item.treeColumnMode === 12;
63058
63118
  });
63059
63119
  if (!treeGridParent)
63060
- throw new RuntimeModelError62(
63120
+ throw new RuntimeModelError61(
63061
63121
  this.model,
63062
63122
  ibiz.i18n.t("runtime.controller.control.treeGrid.columnMode")
63063
63123
  );
@@ -63065,7 +63125,7 @@ var TreeGridController = class extends GridController {
63065
63125
  return item.treeColumnMode === 2 || item.treeColumnMode === 3;
63066
63126
  });
63067
63127
  if (!treeGridValue)
63068
- throw new RuntimeModelError62(
63128
+ throw new RuntimeModelError61(
63069
63129
  this.model,
63070
63130
  ibiz.i18n.t("runtime.controller.control.treeGrid.columnsSchema")
63071
63131
  );
@@ -64635,18 +64695,18 @@ var GridConverterBase = class extends ConverterBase {
64635
64695
  grid_function_setting
64636
64696
  } = this.reportUIModel;
64637
64697
  result.vars = {
64638
- "--ibiz-control-grid-header-align": grid_header_position,
64639
- "--ibiz-control-grid-header-font-size": "".concat(grid_header_fontsize, "px"),
64640
- "--ibiz-control-grid-header-text-color": grid_header_fontcolor,
64641
- "--ibiz-control-grid-content-font-size": "".concat(grid_body_fontsize, "px"),
64642
- "--ibiz-control-grid-content-text-color": grid_body_fontcolor
64698
+ "--ibiz-control-grid-header-cell-align": grid_header_position,
64699
+ "--ibiz-control-grid-header-cell-font-size": "".concat(grid_header_fontsize, "px"),
64700
+ "--ibiz-control-grid-header-cell-text-color": grid_header_fontcolor,
64701
+ "--ibiz-control-grid-body-cell-font-size": "".concat(grid_body_fontsize, "px"),
64702
+ "--ibiz-control-grid-body-cell-text-color": grid_body_fontcolor
64643
64703
  };
64644
64704
  if (grid_header_fontstyle) {
64645
- const key = grid_header_fontstyle === "bold" ? "--ibiz-control-grid-header-font-weight" : "--ibiz-control-grid-header-font-style";
64705
+ const key = grid_header_fontstyle === "bold" ? "--ibiz-control-grid-header-cell-font-weight" : "--ibiz-control-grid-header-cell-font-style";
64646
64706
  result.vars[key] = grid_header_fontstyle;
64647
64707
  }
64648
64708
  if (grid_body_fontstyle) {
64649
- const key = grid_body_fontstyle === "bold" ? "--ibiz-control-grid-content-font-weight" : "--ibiz-control-grid-content-font-style";
64709
+ const key = grid_body_fontstyle === "bold" ? "--ibiz-control-grid-body-cell-font-weight" : "--ibiz-control-grid-body-cell-font-style";
64650
64710
  result.vars[key] = grid_body_fontstyle;
64651
64711
  }
64652
64712
  if (grid_show_agg == "1") {
@@ -68673,7 +68733,7 @@ var AppCounter8 = class {
68673
68733
  };
68674
68734
 
68675
68735
  // src/service/utils/app-counter/app-de-counter.ts
68676
- import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
68736
+ import { RuntimeModelError as RuntimeModelError62 } from "@ibiz-template/core";
68677
68737
  var AppDECounter = class extends AppCounter8 {
68678
68738
  /**
68679
68739
  * 计数器初始化
@@ -68687,7 +68747,7 @@ var AppDECounter = class extends AppCounter8 {
68687
68747
  this.appDataEntityId = this.model.appDataEntityId;
68688
68748
  const action = this.model.getAppDEActionId;
68689
68749
  if (!action) {
68690
- throw new RuntimeModelError63(
68750
+ throw new RuntimeModelError62(
68691
68751
  this.model,
68692
68752
  ibiz.i18n.t("runtime.service.noFoundCounterBehavior")
68693
68753
  );
@@ -68834,7 +68894,7 @@ DEDQCondUtil.map = /* @__PURE__ */ new WeakMap();
68834
68894
  import {
68835
68895
  IBizContext as IBizContext8,
68836
68896
  ModelError as ModelError26,
68837
- RuntimeModelError as RuntimeModelError64,
68897
+ RuntimeModelError as RuntimeModelError63,
68838
68898
  StringUtil as StringUtil5
68839
68899
  } from "@ibiz-template/core";
68840
68900
  import { clone as clone48, isNil as isNil29 } from "ramda";
@@ -69235,13 +69295,13 @@ var DynamicCodeListCache = class {
69235
69295
  return Object.freeze(presetresultItems);
69236
69296
  }
69237
69297
  if (!appDataEntityId) {
69238
- throw new RuntimeModelError64(
69298
+ throw new RuntimeModelError63(
69239
69299
  this.codeList,
69240
69300
  ibiz.i18n.t("runtime.controller.utils.viewMsg.unconfiguredEntities")
69241
69301
  );
69242
69302
  }
69243
69303
  if (!appDEDataSetId) {
69244
- throw new RuntimeModelError64(
69304
+ throw new RuntimeModelError63(
69245
69305
  this.codeList,
69246
69306
  ibiz.i18n.t("runtime.service.unconfiguredDataset")
69247
69307
  );
@@ -70563,7 +70623,7 @@ var ConfigService = class {
70563
70623
  };
70564
70624
 
70565
70625
  // src/service/service/counter/counter.service.ts
70566
- import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
70626
+ import { RuntimeModelError as RuntimeModelError64 } from "@ibiz-template/core";
70567
70627
  var CounterService = class {
70568
70628
  /**
70569
70629
  * 获取计数器
@@ -70608,7 +70668,7 @@ var CounterService = class {
70608
70668
  static async getCounterByRef(model, context, params) {
70609
70669
  const { appCounter } = model;
70610
70670
  if (!appCounter) {
70611
- throw new RuntimeModelError65(
70671
+ throw new RuntimeModelError64(
70612
70672
  model,
70613
70673
  ibiz.i18n.t("runtime.service.noConfiguredCounters")
70614
70674
  );
@@ -70633,7 +70693,7 @@ import {
70633
70693
  IBizContext as IBizContext9,
70634
70694
  ModelError as ModelError28,
70635
70695
  RuntimeError as RuntimeError60,
70636
- RuntimeModelError as RuntimeModelError67
70696
+ RuntimeModelError as RuntimeModelError66
70637
70697
  } from "@ibiz-template/core";
70638
70698
  import { createUUID as createUUID20 } from "qx-util";
70639
70699
  import { isNil as isNil34, isUndefined } from "lodash-es";
@@ -71255,7 +71315,7 @@ var AppDataEntity = class _AppDataEntity {
71255
71315
  };
71256
71316
 
71257
71317
  // src/service/dto/method.dto.ts
71258
- import { ModelError as ModelError27, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
71318
+ import { ModelError as ModelError27, RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
71259
71319
  import { clone as clone51 } from "ramda";
71260
71320
  var MethodDto = class {
71261
71321
  /**
@@ -71361,7 +71421,7 @@ var MethodDto = class {
71361
71421
  context
71362
71422
  );
71363
71423
  } else {
71364
- throw new RuntimeModelError66(
71424
+ throw new RuntimeModelError65(
71365
71425
  field,
71366
71426
  ibiz.i18n.t("runtime.service.subRelationships")
71367
71427
  );
@@ -71626,7 +71686,7 @@ var DEService = class {
71626
71686
  }
71627
71687
  const model = findAppDEMethod(this.model, id);
71628
71688
  if (!model) {
71629
- throw new RuntimeModelError67(
71689
+ throw new RuntimeModelError66(
71630
71690
  this.model,
71631
71691
  ibiz.i18n.t("runtime.service.noFoundServiceMethod", { id })
71632
71692
  );
@@ -72625,14 +72685,14 @@ import {
72625
72685
  HttpError as HttpError8,
72626
72686
  HttpResponse as HttpResponse5,
72627
72687
  RuntimeError as RuntimeError62,
72628
- RuntimeModelError as RuntimeModelError69
72688
+ RuntimeModelError as RuntimeModelError68
72629
72689
  } from "@ibiz-template/core";
72630
72690
  import { isArray as isArray10, isNil as isNil36, isUndefined as isUndefined2 } from "lodash-es";
72631
72691
  import { ascSort } from "qx-util";
72632
72692
  import { clone as clone52 } from "ramda";
72633
72693
 
72634
72694
  // src/service/service/entity/method/method.ts
72635
- import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError68 } from "@ibiz-template/core";
72695
+ import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError67 } from "@ibiz-template/core";
72636
72696
 
72637
72697
  // src/service/service/entity/method/method-input.ts
72638
72698
  var MethodInput = class {
@@ -72851,12 +72911,12 @@ var Method = class {
72851
72911
  break;
72852
72912
  default:
72853
72913
  if (requestMethod) {
72854
- throw new RuntimeModelError68(
72914
+ throw new RuntimeModelError67(
72855
72915
  this.method,
72856
72916
  ibiz.i18n.t("runtime.service.requestMethods", { requestMethod })
72857
72917
  );
72858
72918
  } else {
72859
- throw new RuntimeModelError68(
72919
+ throw new RuntimeModelError67(
72860
72920
  this.method,
72861
72921
  ibiz.i18n.t("runtime.service.noConfiguredRequestMethod")
72862
72922
  );
@@ -72867,7 +72927,7 @@ var Method = class {
72867
72927
  if (actionType === "SCRIPT") {
72868
72928
  return new HttpResponse4(data);
72869
72929
  }
72870
- throw new RuntimeModelError68(
72930
+ throw new RuntimeModelError67(
72871
72931
  this.method,
72872
72932
  ibiz.i18n.t("runtime.service.unsupportedBehaviorTypes", { actionType })
72873
72933
  );
@@ -72983,7 +73043,7 @@ var DEActionMethod = class extends Method {
72983
73043
  if (this.method.actionType === "DELOGIC") {
72984
73044
  const deLogic = findDELogic(this.method.appDELogicId, this.entity);
72985
73045
  if (!deLogic) {
72986
- throw new RuntimeModelError69(
73046
+ throw new RuntimeModelError68(
72987
73047
  this.method,
72988
73048
  ibiz.i18n.t("runtime.service.lackEntityLogic")
72989
73049
  );
@@ -73373,7 +73433,7 @@ var DEActionMethod = class extends Method {
73373
73433
  configs = ascSort(configs, "removeOrder");
73374
73434
  for (const config of configs) {
73375
73435
  if (config.rstype !== "DER1N") {
73376
- throw new RuntimeModelError69(
73436
+ throw new RuntimeModelError68(
73377
73437
  config,
73378
73438
  ibiz.i18n.t("runtime.service.deletionDeletion")
73379
73439
  );
@@ -73652,7 +73712,7 @@ import {
73652
73712
  HttpResponse as HttpResponse6,
73653
73713
  ModelError as ModelError29,
73654
73714
  RuntimeError as RuntimeError63,
73655
- RuntimeModelError as RuntimeModelError70
73715
+ RuntimeModelError as RuntimeModelError69
73656
73716
  } from "@ibiz-template/core";
73657
73717
  import { isArray as isArray11 } from "lodash-es";
73658
73718
  import { clone as clone53, isEmpty as isEmpty9, isNil as isNil37 } from "ramda";
@@ -73696,7 +73756,7 @@ var FetchMethod = class extends Method {
73696
73756
  break;
73697
73757
  case "SCRIPT":
73698
73758
  if (!this.method.scriptCode) {
73699
- throw new RuntimeModelError70(
73759
+ throw new RuntimeModelError69(
73700
73760
  this.method,
73701
73761
  ibiz.i18n.t("runtime.service.scriptCodeNotConfig")
73702
73762
  );
@@ -73881,7 +73941,7 @@ var FetchMethod = class extends Method {
73881
73941
  async fetchCodeListSet(context, params) {
73882
73942
  const { appCodeListId } = this.method;
73883
73943
  if (!appCodeListId) {
73884
- throw new RuntimeModelError70(
73944
+ throw new RuntimeModelError69(
73885
73945
  this.method,
73886
73946
  ibiz.i18n.t("runtime.service.sourceCodeTable")
73887
73947
  );
@@ -73908,7 +73968,7 @@ var FetchMethod = class extends Method {
73908
73968
  async fetchCodeListSetWithMeta(context, params) {
73909
73969
  const { appCodeListId } = this.method;
73910
73970
  if (!appCodeListId) {
73911
- throw new RuntimeModelError70(
73971
+ throw new RuntimeModelError69(
73912
73972
  this.method,
73913
73973
  ibiz.i18n.t("runtime.service.sourceCodeTable")
73914
73974
  );
@@ -84485,29 +84545,29 @@ function paramsToSearchconds(_params) {
84485
84545
  }
84486
84546
 
84487
84547
  // src/utils/date-util/index.ts
84488
- import dayjs9 from "dayjs";
84548
+ import dayjs10 from "dayjs";
84489
84549
  function formatDateByScale(val, timeScale) {
84490
84550
  let value = val;
84491
84551
  const date = new Date(val);
84492
84552
  if (!val || isNaN(date.getTime()))
84493
84553
  return value;
84494
- const year = dayjs9(date).year();
84554
+ const year = dayjs10(date).year();
84495
84555
  const type = timeScale === "yearweek" ? "week" : timeScale;
84496
84556
  switch (type) {
84497
84557
  case "year":
84498
84558
  value = "".concat(year);
84499
84559
  break;
84500
84560
  case "quarter":
84501
- value = "".concat(year, " ").concat(dayjs9(date).quarter()).concat(ibiz.i18n.t("runtime.controller.utils.util.quarter"));
84561
+ value = "".concat(year, " ").concat(dayjs10(date).quarter()).concat(ibiz.i18n.t("runtime.controller.utils.util.quarter"));
84502
84562
  break;
84503
84563
  case "month":
84504
- value = "".concat(year, " ").concat(dayjs9(date).month() + 1).concat(ibiz.i18n.t("runtime.controller.utils.util.month"));
84564
+ value = "".concat(year, " ").concat(dayjs10(date).month() + 1).concat(ibiz.i18n.t("runtime.controller.utils.util.month"));
84505
84565
  break;
84506
84566
  case "week":
84507
- value = "".concat(year, " ").concat(dayjs9(date).week()).concat(ibiz.i18n.t("runtime.controller.utils.util.week"));
84567
+ value = "".concat(year, " ").concat(dayjs10(date).week()).concat(ibiz.i18n.t("runtime.controller.utils.util.week"));
84508
84568
  break;
84509
84569
  case "day":
84510
- value = dayjs9(date).format("YYYY-MM-DD");
84570
+ value = dayjs10(date).format("YYYY-MM-DD");
84511
84571
  break;
84512
84572
  default:
84513
84573
  break;
@@ -84515,7 +84575,7 @@ function formatDateByScale(val, timeScale) {
84515
84575
  return value;
84516
84576
  }
84517
84577
  function getWeeksInYear(year) {
84518
- const lastDayOfYear = dayjs9("".concat(year, "-12-31"));
84578
+ const lastDayOfYear = dayjs10("".concat(year, "-12-31"));
84519
84579
  const week = lastDayOfYear.isoWeek();
84520
84580
  return week === 1 ? 52 : week;
84521
84581
  }
@@ -84552,7 +84612,7 @@ function generateYearWeekRange(minYearWeek, maxYearWeek, paddingWeeks = 0) {
84552
84612
  function calcDateRangeByScale(val, timeScale) {
84553
84613
  if (!val || isNaN(new Date(val).getTime()))
84554
84614
  return;
84555
- let date = dayjs9(val);
84615
+ let date = dayjs10(val);
84556
84616
  const type = timeScale === "yearweek" ? "week" : timeScale;
84557
84617
  switch (type) {
84558
84618
  case "year":
@@ -84580,8 +84640,8 @@ function calcDateRangeByScale(val, timeScale) {
84580
84640
  }
84581
84641
  function compareDateEqualByScale(dateStr1, dateStr2, timeScale) {
84582
84642
  let result = false;
84583
- const date1 = dayjs9(dateStr1);
84584
- const date2 = dayjs9(dateStr2);
84643
+ const date1 = dayjs10(dateStr1);
84644
+ const date2 = dayjs10(dateStr2);
84585
84645
  if (!dateStr1 || !dateStr2 || !date1.isValid() || !date2.isValid())
84586
84646
  return result;
84587
84647
  switch (timeScale) {
@@ -86547,7 +86607,7 @@ import { QXEvent as QXEvent14 } from "qx-util";
86547
86607
  import { QXEvent as QXEvent12 } from "qx-util";
86548
86608
  import { clone as clone60 } from "ramda";
86549
86609
  import { isNil as isNil40, isNumber as isNumber5 } from "lodash-es";
86550
- import dayjs10 from "dayjs";
86610
+ import dayjs11 from "dayjs";
86551
86611
  var AsyncActionController = class {
86552
86612
  constructor() {
86553
86613
  this.evt = new QXEvent12();
@@ -86621,7 +86681,7 @@ var AsyncActionController = class {
86621
86681
  ];
86622
86682
  dateFields.forEach((key) => {
86623
86683
  if (isNumber5(data[key])) {
86624
- data[key] = dayjs10(data[key]).format("YYYY-MM-DD HH:mm:ss");
86684
+ data[key] = dayjs11(data[key]).format("YYYY-MM-DD HH:mm:ss");
86625
86685
  }
86626
86686
  });
86627
86687
  if (!isNil40(data.actionresult)) {
@@ -88515,7 +88575,7 @@ var ViewEngineBase = class {
88515
88575
  };
88516
88576
 
88517
88577
  // src/engine/md-view.engine.ts
88518
- import { RuntimeModelError as RuntimeModelError71 } from "@ibiz-template/core";
88578
+ import { RuntimeModelError as RuntimeModelError70 } from "@ibiz-template/core";
88519
88579
  import { clone as clone61 } from "ramda";
88520
88580
  var MDViewEngine = class extends ViewEngineBase {
88521
88581
  /**
@@ -88767,21 +88827,20 @@ var MDViewEngine = class extends ViewEngineBase {
88767
88827
  view: this.view
88768
88828
  }));
88769
88829
  if (result === -1) {
88770
- throw new RuntimeModelError71(
88771
- this.view.model,
88772
- ibiz.i18n.t("runtime.engine.logicOpendata")
88773
- );
88774
- } else {
88775
- if (result && result.ok && result.data && result.data.length > 0) {
88776
- this.view.evt.emit("onDataChange", {
88777
- data: result.data,
88778
- actionType: "EDIT"
88779
- });
88780
- }
88830
+ ibiz.log.error(ibiz.i18n.t("runtime.engine.logicOpendata"));
88781
88831
  return {
88782
- cancel: result ? !result.ok : true
88832
+ cancel: true
88783
88833
  };
88784
88834
  }
88835
+ if (result && result.ok && result.data && result.data.length > 0) {
88836
+ this.view.evt.emit("onDataChange", {
88837
+ data: result.data,
88838
+ actionType: "EDIT"
88839
+ });
88840
+ }
88841
+ return {
88842
+ cancel: result ? !result.ok : true
88843
+ };
88785
88844
  }
88786
88845
  /**
88787
88846
  * 打开新建数据视图
@@ -88799,7 +88858,7 @@ var MDViewEngine = class extends ViewEngineBase {
88799
88858
  (item) => item.id === "newdata"
88800
88859
  );
88801
88860
  if (!openAppViewLogic) {
88802
- throw new RuntimeModelError71(
88861
+ throw new RuntimeModelError70(
88803
88862
  this.view.model,
88804
88863
  ibiz.i18n.t("runtime.engine.logicNewdata")
88805
88864
  );
@@ -88819,21 +88878,20 @@ var MDViewEngine = class extends ViewEngineBase {
88819
88878
  view: this.view
88820
88879
  }));
88821
88880
  if (result === -1) {
88822
- throw new RuntimeModelError71(
88823
- this.view.model,
88824
- ibiz.i18n.t("runtime.engine.logicNewdata")
88825
- );
88826
- } else {
88827
- if (result.ok && result.data && result.data.length > 0) {
88828
- this.view.evt.emit("onDataChange", {
88829
- data: result.data,
88830
- actionType: "NEW"
88831
- });
88832
- }
88881
+ ibiz.log.error(ibiz.i18n.t("runtime.engine.logicNewdata"));
88833
88882
  return {
88834
- cancel: result ? !result.ok : true
88883
+ cancel: true
88835
88884
  };
88836
88885
  }
88886
+ if (result.ok && result.data && result.data.length > 0) {
88887
+ this.view.evt.emit("onDataChange", {
88888
+ data: result.data,
88889
+ actionType: "NEW"
88890
+ });
88891
+ }
88892
+ return {
88893
+ cancel: result ? !result.ok : true
88894
+ };
88837
88895
  }
88838
88896
  /**
88839
88897
  * 视图删除
@@ -89856,13 +89914,13 @@ var ScriptExecutor = class extends LogicExecutor {
89856
89914
  };
89857
89915
 
89858
89916
  // src/logic-scheduler/executor/app-de-ui-logic-executor.ts
89859
- import { RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
89917
+ import { RuntimeModelError as RuntimeModelError71 } from "@ibiz-template/core";
89860
89918
  var AppDEUILogicExecutor = class extends LogicExecutor {
89861
89919
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
89862
89920
  execute(executeParams) {
89863
89921
  const { appDEUILogicId, appDataEntityId } = this.logic;
89864
89922
  if (!appDEUILogicId) {
89865
- throw new RuntimeModelError72(
89923
+ throw new RuntimeModelError71(
89866
89924
  this.logic,
89867
89925
  ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
89868
89926
  );
@@ -90132,16 +90190,18 @@ var ViewLogicScheduler = class extends LogicScheduler {
90132
90190
  * 触发视图事件
90133
90191
  * @author lxm
90134
90192
  * @date 2023-06-26 02:26:33
90135
- * @param {string} itemName 子项名称
90136
- * @param {Partial<IUILogicParams>} executeParams 执行参数
90137
- * @return {*} {(boolean | undefined)}
90193
+ * @param {EventBase} event 事件对象
90194
+ * @return {*} {Promise<void>}
90138
90195
  */
90139
- triggerViewEvent(event) {
90196
+ async triggerViewEvent(event) {
90140
90197
  const matchParams = {
90141
90198
  eventName: event.eventName,
90142
90199
  triggerType: "VIEWEVENT"
90143
90200
  };
90144
- this.triggerAndExecute(matchParams, event);
90201
+ const result = this.triggerAndExecute(matchParams, event);
90202
+ if (result == null ? void 0 : result.length) {
90203
+ await Promise.all(result);
90204
+ }
90145
90205
  }
90146
90206
  };
90147
90207
 
@@ -90353,7 +90413,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
90353
90413
  };
90354
90414
 
90355
90415
  // src/logic-scheduler/trigger/timer-trigger.ts
90356
- import { RuntimeError as RuntimeError81, RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
90416
+ import { RuntimeError as RuntimeError81, RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
90357
90417
  var TimerTrigger = class extends LogicTrigger {
90358
90418
  constructor() {
90359
90419
  super(...arguments);
@@ -90361,7 +90421,7 @@ var TimerTrigger = class extends LogicTrigger {
90361
90421
  }
90362
90422
  start() {
90363
90423
  if (!this.logic.timer) {
90364
- throw new RuntimeModelError73(
90424
+ throw new RuntimeModelError72(
90365
90425
  this.logic,
90366
90426
  ibiz.i18n.t("runtime.logicScheduler.trigger.timerLacks")
90367
90427
  );
@@ -90401,7 +90461,7 @@ var TimerTrigger = class extends LogicTrigger {
90401
90461
  import {
90402
90462
  ModelError as ModelError34,
90403
90463
  RuntimeError as RuntimeError82,
90404
- RuntimeModelError as RuntimeModelError74
90464
+ RuntimeModelError as RuntimeModelError73
90405
90465
  } from "@ibiz-template/core";
90406
90466
  import { notNilEmpty as notNilEmpty11 } from "qx-util";
90407
90467
  var AppUILogicExecutor = class extends LogicExecutor {
@@ -90449,7 +90509,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
90449
90509
  } else {
90450
90510
  openViewRef = appUILogic.openDataAppView;
90451
90511
  if (!openViewRef) {
90452
- throw new RuntimeModelError74(
90512
+ throw new RuntimeModelError73(
90453
90513
  appUILogic,
90454
90514
  ibiz.i18n.t(
90455
90515
  "runtime.logicScheduler.executor.defaultOpendataViewLogic"
@@ -90459,7 +90519,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
90459
90519
  }
90460
90520
  const openView = openViewRef.refAppViewId;
90461
90521
  if (!openView) {
90462
- throw new RuntimeModelError74(
90522
+ throw new RuntimeModelError73(
90463
90523
  appUILogic,
90464
90524
  ibiz.i18n.t("runtime.logicScheduler.executor.noActuallyReference")
90465
90525
  );
@@ -90497,7 +90557,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
90497
90557
  );
90498
90558
  const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
90499
90559
  if (!typeFileName) {
90500
- throw new RuntimeModelError74(
90560
+ throw new RuntimeModelError73(
90501
90561
  appUILogic,
90502
90562
  ibiz.i18n.t("runtime.logicScheduler.executor.attributeConfiguration", {
90503
90563
  codeName: appDataEntity.codeName
@@ -90507,7 +90567,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
90507
90567
  const { data } = parameters;
90508
90568
  const formTypeValue = data[0][typeFileName];
90509
90569
  if (!formTypeValue) {
90510
- throw new RuntimeModelError74(
90570
+ throw new RuntimeModelError73(
90511
90571
  appUILogic,
90512
90572
  ibiz.i18n.t("runtime.logicScheduler.executor.entityAttributeValues")
90513
90573
  );
@@ -90554,7 +90614,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
90554
90614
  return viewRef.refMode.toLowerCase() !== parentDeName;
90555
90615
  });
90556
90616
  if (!newViewRef) {
90557
- throw new RuntimeModelError74(
90617
+ throw new RuntimeModelError73(
90558
90618
  appUILogic,
90559
90619
  ibiz.i18n.t("runtime.logicScheduler.executor.selectionView")
90560
90620
  );
@@ -90567,7 +90627,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
90567
90627
  } else {
90568
90628
  newViewRef = newDataAppView;
90569
90629
  if (!newViewRef || !newViewRef.refAppViewId) {
90570
- throw new RuntimeModelError74(
90630
+ throw new RuntimeModelError73(
90571
90631
  appUILogic,
90572
90632
  ibiz.i18n.t("runtime.logicScheduler.executor.newdataViewLogic")
90573
90633
  );
@@ -90640,7 +90700,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
90640
90700
  const { context, params, ...rest } = parameters;
90641
90701
  const { view } = parameters;
90642
90702
  if (!wizardAppView || !wizardAppView.refAppViewId) {
90643
- throw new RuntimeModelError74(
90703
+ throw new RuntimeModelError73(
90644
90704
  appUILogic,
90645
90705
  ibiz.i18n.t("runtime.logicScheduler.executor.indexEntity")
90646
90706
  );
@@ -90698,7 +90758,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
90698
90758
  const minorDERs = selfDe.minorAppDERSs;
90699
90759
  const pickParentDeName = newViewRef.refMode.toLowerCase();
90700
90760
  if (!minorDERs) {
90701
- throw new RuntimeModelError74(
90761
+ throw new RuntimeModelError73(
90702
90762
  selfDe,
90703
90763
  ibiz.i18n.t("runtime.logicScheduler.executor.relationships")
90704
90764
  );
@@ -90809,17 +90869,17 @@ var ControlEventTrigger = class extends LogicTrigger {
90809
90869
  };
90810
90870
 
90811
90871
  // src/logic-scheduler/executor/app-ui-action-executor.ts
90812
- import { RuntimeModelError as RuntimeModelError75 } from "@ibiz-template/core";
90872
+ import { RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
90813
90873
  var AppDEUIActionExecutor = class extends LogicExecutor {
90814
90874
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
90815
90875
  execute(executeParams) {
90816
90876
  if (!this.logic.appDEUIActionId) {
90817
- throw new RuntimeModelError75(
90877
+ throw new RuntimeModelError74(
90818
90878
  this.logic,
90819
90879
  ibiz.i18n.t("runtime.logicScheduler.executor.missingTrigger")
90820
90880
  );
90821
90881
  }
90822
- UIActionUtil.execAndResolved(
90882
+ return UIActionUtil.execAndResolved(
90823
90883
  this.logic.appDEUIActionId,
90824
90884
  executeParams,
90825
90885
  this.logic.appId