@ibiz-template/runtime 0.7.26-alpha.0 → 0.7.26-alpha.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 (50) hide show
  1. package/dist/index.esm.js +705 -197
  2. package/dist/index.system.min.js +1 -1
  3. package/out/app-hub.d.ts.map +1 -1
  4. package/out/app-hub.js +2 -1
  5. package/out/application.d.ts +3 -2
  6. package/out/application.d.ts.map +1 -1
  7. package/out/application.js +3 -2
  8. package/out/controller/common/control/md-control.controller.js +2 -1
  9. package/out/controller/control/calendar/calendar.controller.d.ts +15 -0
  10. package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
  11. package/out/controller/control/calendar/calendar.controller.js +85 -16
  12. package/out/controller/control/calendar/calendar.service.d.ts +10 -0
  13. package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
  14. package/out/controller/control/calendar/calendar.service.js +21 -1
  15. package/out/controller/control/chart/generator/base-series-generator.d.ts +16 -0
  16. package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
  17. package/out/controller/control/chart/generator/base-series-generator.js +114 -5
  18. package/out/controller/control/chart/generator/chart-options-generator.d.ts +7 -0
  19. package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
  20. package/out/controller/control/chart/generator/chart-options-generator.js +286 -2
  21. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts +14 -0
  22. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
  23. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +29 -1
  24. package/out/controller/control/kanban/kanban.controller.d.ts +0 -6
  25. package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
  26. package/out/controller/control/kanban/kanban.controller.js +8 -38
  27. package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
  28. package/out/controller/notification/internal-message.controller.js +7 -1
  29. package/out/interface/controller/state/control/i-calendar.state.d.ts +21 -0
  30. package/out/interface/controller/state/control/i-calendar.state.d.ts.map +1 -1
  31. package/out/interface/provider/model-loader.provider.d.ts +10 -1
  32. package/out/interface/provider/model-loader.provider.d.ts.map +1 -1
  33. package/out/interface/service/i-data-entity/i-data-entity.d.ts +7 -0
  34. package/out/interface/service/i-data-entity/i-data-entity.d.ts.map +1 -1
  35. package/out/locale/en/index.d.ts +3 -0
  36. package/out/locale/en/index.d.ts.map +1 -1
  37. package/out/locale/en/index.js +3 -0
  38. package/out/locale/zh-CN/index.d.ts +3 -0
  39. package/out/locale/zh-CN/index.d.ts.map +1 -1
  40. package/out/locale/zh-CN/index.js +3 -0
  41. package/out/service/app-data-entity/app-data-entity.d.ts +1 -0
  42. package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
  43. package/out/service/app-data-entity/app-data-entity.js +2 -0
  44. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts +15 -0
  45. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
  46. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +17 -2
  47. package/out/utils/script/script-factory.d.ts +12 -0
  48. package/out/utils/script/script-factory.d.ts.map +1 -1
  49. package/out/utils/script/script-factory.js +16 -1
  50. package/package.json +4 -4
package/dist/index.esm.js CHANGED
@@ -1829,11 +1829,29 @@ var ScriptFactory = class {
1829
1829
  * @param {IScriptFunctionOpts} options 选项
1830
1830
  * @return {*}
1831
1831
  */
1832
- static execScriptFn(args, scriptCode, options) {
1832
+ static execScriptFn(args, scriptCode, options = {}) {
1833
1833
  return this.createScriptFn(Object.keys(args), scriptCode, options).exec(
1834
1834
  args
1835
1835
  );
1836
1836
  }
1837
+ /**
1838
+ * 直接创建并同步执行脚本
1839
+ *
1840
+ * @author tony001
1841
+ * @date 2024-06-25 14:06:25
1842
+ * @static
1843
+ * @param {IParams} args
1844
+ * @param {string} scriptCode
1845
+ * @param {IScriptFunctionOpts} [options={}]
1846
+ * @return {*} {Promise<unknown>}
1847
+ */
1848
+ static async asyncExecScriptFn(args, scriptCode, options = {}) {
1849
+ const result = await this.createScriptFn(Object.keys(args), scriptCode, {
1850
+ ...options,
1851
+ isAsync: true
1852
+ }).exec(args);
1853
+ return result;
1854
+ }
1837
1855
  /**
1838
1856
  * 执行单行脚本
1839
1857
  * @author lxm
@@ -6708,6 +6726,7 @@ var AppDataEntity = class _AppDataEntity {
6708
6726
  clone() {
6709
6727
  const entity = new _AppDataEntity(this._entity, this._data);
6710
6728
  entity.srfkey = this.srfkey;
6729
+ entity.srfordervalue = this.srfordervalue;
6711
6730
  return entity;
6712
6731
  }
6713
6732
  /**
@@ -6722,6 +6741,7 @@ var AppDataEntity = class _AppDataEntity {
6722
6741
  let _data = {};
6723
6742
  if (data instanceof _AppDataEntity) {
6724
6743
  _data = data._data;
6744
+ this.srfordervalue = data.srfordervalue;
6725
6745
  } else {
6726
6746
  _data = data;
6727
6747
  }
@@ -15449,7 +15469,7 @@ function installCommand() {
15449
15469
  }
15450
15470
 
15451
15471
  // src/app-hub.ts
15452
- import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
15472
+ import { RuntimeError as RuntimeError69 } from "@ibiz-template/core";
15453
15473
 
15454
15474
  // src/application.ts
15455
15475
  import { Net, getToken } from "@ibiz-template/core";
@@ -15461,8 +15481,9 @@ var Application = class {
15461
15481
  * @date 2022-12-22 15:12:26
15462
15482
  * @param {IApplication} model
15463
15483
  */
15464
- constructor(model) {
15484
+ constructor(model, subAppRef) {
15465
15485
  this.model = model;
15486
+ this.subAppRef = subAppRef;
15466
15487
  /**
15467
15488
  * 应用实体名称到应用实体代码名称的映射
15468
15489
  *
@@ -15496,7 +15517,7 @@ var Application = class {
15496
15517
  */
15497
15518
  this.appBIReportMap = /* @__PURE__ */ new Map();
15498
15519
  this.net = new Net({
15499
- baseURL: "".concat(ibiz.env.baseUrl, "/").concat(this.appId)
15520
+ baseURL: "".concat(ibiz.env.baseUrl, "/").concat(subAppRef && subAppRef.serviceId ? subAppRef.serviceId : this.appId)
15500
15521
  });
15501
15522
  this.configCache = new ConfigService(
15502
15523
  this.appId,
@@ -19468,10 +19489,11 @@ var MDControlController = class extends ControlController {
19468
19489
  * @return {*} {void}
19469
19490
  */
19470
19491
  onDEDataChange(msg) {
19492
+ var _a;
19471
19493
  if (!isNil24(msg.triggerKey) && msg.triggerKey === this.triggerKey) {
19472
19494
  return;
19473
19495
  }
19474
- if (!msg.data || msg.data.srfdecodename !== this.dataEntity.codeName) {
19496
+ if (!msg.data || msg.data.srfdecodename !== ((_a = this.dataEntity) == null ? void 0 : _a.codeName)) {
19475
19497
  return;
19476
19498
  }
19477
19499
  let isRefresh = false;
@@ -19936,7 +19958,7 @@ var AppMenuIconViewController = class extends AppMenuController {
19936
19958
 
19937
19959
  // src/controller/control/calendar/calendar.controller.ts
19938
19960
  import dayjs3 from "dayjs";
19939
- import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
19961
+ import { RuntimeError as RuntimeError40, RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
19940
19962
 
19941
19963
  // src/controller/control/calendar/calendar.service.ts
19942
19964
  import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
@@ -19961,7 +19983,7 @@ var CalendarService = class extends MDControlService {
19961
19983
  async (item) => {
19962
19984
  const fetchAction = item.appDEDataSetId || "fetchdefault";
19963
19985
  const tempContext = context.clone();
19964
- const tempParams = clone20(params);
19986
+ const tempParams = this.handleRequestParams(item, params);
19965
19987
  if (item.maxSize) {
19966
19988
  tempParams.size = item.maxSize;
19967
19989
  }
@@ -20032,6 +20054,26 @@ var CalendarService = class extends MDControlService {
20032
20054
  );
20033
20055
  return res;
20034
20056
  }
20057
+ /**
20058
+ * 处理请求参数
20059
+ *
20060
+ * @private
20061
+ * @param {ISysCalendarItem} item
20062
+ * @param {IParams} params
20063
+ * @return {*} {IParams}
20064
+ * @memberof CalendarService
20065
+ */
20066
+ handleRequestParams(item, params) {
20067
+ const tempParams = clone20(params);
20068
+ const { srfstartdate, srfenddate } = tempParams;
20069
+ Object.assign(tempParams, {
20070
+ ["n_".concat(item.beginTimeAppDEFieldId, "_gtandeq")]: srfstartdate,
20071
+ ["n_".concat(item.endTimeAppDEFieldId, "_ltandeq")]: srfenddate
20072
+ });
20073
+ delete tempParams.srfstartdate;
20074
+ delete tempParams.srfenddate;
20075
+ return tempParams;
20076
+ }
20035
20077
  };
20036
20078
 
20037
20079
  // src/controller/control/calendar/calendar.controller.ts
@@ -20045,9 +20087,13 @@ var CalendarController = class extends MDControlController {
20045
20087
  * @memberof CalendarController
20046
20088
  */
20047
20089
  initState() {
20090
+ var _a, _b;
20048
20091
  super.initState();
20049
20092
  this.state.selectedDate = /* @__PURE__ */ new Date();
20050
20093
  this.state.size = 1e3;
20094
+ this.state.legends = [];
20095
+ this.state.calendarTitle = this.model.logicName || "";
20096
+ this.state.showDetail = ((_b = (_a = this.model.controlParam) == null ? void 0 : _a.ctrlParams) == null ? void 0 : _b.SHOWDETAIL) || false;
20051
20097
  }
20052
20098
  /**
20053
20099
  * 生命周期-创建完成
@@ -20063,6 +20109,30 @@ var CalendarController = class extends MDControlController {
20063
20109
  this.service = new CalendarService(this.model);
20064
20110
  await this.service.init(this.context);
20065
20111
  this.initViewScheduler();
20112
+ this.initCalendarLegends();
20113
+ }
20114
+ /**
20115
+ * 初始化日历图例
20116
+ *
20117
+ * @protected
20118
+ * @memberof CalendarController
20119
+ */
20120
+ initCalendarLegends() {
20121
+ const { sysCalendarItems } = this.model;
20122
+ if (!sysCalendarItems) {
20123
+ throw new RuntimeError40(
20124
+ ibiz.i18n.t("runtime.controller.control.calendar.noFoundModel")
20125
+ );
20126
+ }
20127
+ sysCalendarItems.forEach((calendarItem) => {
20128
+ const { id, name, bkcolor, color } = calendarItem;
20129
+ this.state.legends.push({
20130
+ id,
20131
+ name,
20132
+ bkcolor,
20133
+ color
20134
+ });
20135
+ });
20066
20136
  }
20067
20137
  /**
20068
20138
  * 初始化视图触发器
@@ -20071,7 +20141,7 @@ var CalendarController = class extends MDControlController {
20071
20141
  * @memberof CalendarService
20072
20142
  */
20073
20143
  initViewScheduler() {
20074
- const viewLogics = this.model.appViewLogics || [];
20144
+ const viewLogics = getViewLogics(this.model);
20075
20145
  if (viewLogics.length !== 0) {
20076
20146
  this.viewScheduler = ibiz.scheduler.createViewScheduler(viewLogics);
20077
20147
  this.viewScheduler.defaultParamsCb = () => {
@@ -20084,6 +20154,19 @@ var CalendarController = class extends MDControlController {
20084
20154
  }
20085
20155
  }
20086
20156
  }
20157
+ /**
20158
+ * 销毁
20159
+ *
20160
+ * @protected
20161
+ * @return {*} {Promise<void>}
20162
+ * @memberof LightCalendarController
20163
+ */
20164
+ async onDestroyed() {
20165
+ await super.onDestroyed();
20166
+ if (this.viewScheduler) {
20167
+ this.viewScheduler.destroy();
20168
+ }
20169
+ }
20087
20170
  /**
20088
20171
  * 设置激活数据
20089
20172
  *
@@ -20092,10 +20175,13 @@ var CalendarController = class extends MDControlController {
20092
20175
  * @memberof CalendarService
20093
20176
  */
20094
20177
  async setActive(item) {
20095
- this.openData(item);
20096
- return this._evt.emit("onActive", {
20097
- data: [item]
20178
+ this._evt.emit("onActive", {
20179
+ data: item ? [item] : []
20098
20180
  });
20181
+ if (!item) {
20182
+ return;
20183
+ }
20184
+ await this.openData(item);
20099
20185
  }
20100
20186
  /**
20101
20187
  * 打开编辑数据视图
@@ -20104,11 +20190,11 @@ var CalendarController = class extends MDControlController {
20104
20190
  * @memberof CalendarService
20105
20191
  */
20106
20192
  async openData(item) {
20107
- var _a, _b;
20193
+ var _a, _b, _c;
20108
20194
  const context = this.context.clone();
20109
- const deName = ((_a = item.deData.srfdecodename) == null ? void 0 : _a.toLowerCase()) || calcDeCodeNameById(this.model.appDataEntityId);
20195
+ const deName = ((_b = (_a = item.deData) == null ? void 0 : _a.srfdecodename) == null ? void 0 : _b.toLowerCase()) || calcDeCodeNameById(this.model.appDataEntityId);
20110
20196
  context[deName.toLowerCase()] = item.deData.srfkey;
20111
- const result = await ((_b = this.viewScheduler) == null ? void 0 : _b.triggerCustom(
20197
+ const result = await ((_c = this.viewScheduler) == null ? void 0 : _c.triggerCustom(
20112
20198
  "".concat(item.itemType.toLowerCase(), "_opendata"),
20113
20199
  {
20114
20200
  context,
@@ -20215,21 +20301,61 @@ var CalendarController = class extends MDControlController {
20215
20301
  */
20216
20302
  getCurSelectDate(param) {
20217
20303
  const { selectedDate } = this.state;
20218
- const { srfstartdate, srfenddate } = param;
20304
+ const { calendarStyle } = this.model;
20305
+ let { srfstartdate, srfenddate } = param;
20219
20306
  if (!srfstartdate || !srfenddate) {
20220
- const firstDayOfMonth = new Date(
20221
- selectedDate.getFullYear(),
20222
- selectedDate.getMonth(),
20223
- 1
20224
- );
20225
- const lastDayOfMonth = new Date(
20226
- selectedDate.getFullYear(),
20227
- selectedDate.getMonth() + 1,
20228
- 1
20229
- );
20307
+ switch (calendarStyle) {
20308
+ case "DAY":
20309
+ srfstartdate = new Date(
20310
+ selectedDate.getFullYear(),
20311
+ selectedDate.getMonth(),
20312
+ selectedDate.getDate()
20313
+ );
20314
+ srfenddate = new Date(
20315
+ new Date(
20316
+ selectedDate.getFullYear(),
20317
+ selectedDate.getMonth(),
20318
+ selectedDate.getDate() + 1
20319
+ ).getTime() - 1
20320
+ );
20321
+ break;
20322
+ case "WEEK":
20323
+ const currentDayOfWeek = selectedDate.getDay();
20324
+ const offset = currentDayOfWeek > 0 ? -currentDayOfWeek + 1 : -6;
20325
+ srfstartdate = new Date(
20326
+ selectedDate.getFullYear(),
20327
+ selectedDate.getMonth(),
20328
+ selectedDate.getDate() + offset
20329
+ );
20330
+ srfenddate = new Date(
20331
+ new Date(
20332
+ srfstartdate.getFullYear(),
20333
+ srfstartdate.getMonth(),
20334
+ srfstartdate.getDate() + 7
20335
+ ).getTime() - 1
20336
+ );
20337
+ break;
20338
+ case "MONTH":
20339
+ srfstartdate = new Date(
20340
+ selectedDate.getFullYear(),
20341
+ selectedDate.getMonth(),
20342
+ 1
20343
+ );
20344
+ srfenddate = new Date(
20345
+ new Date(
20346
+ selectedDate.getFullYear(),
20347
+ selectedDate.getMonth() + 1,
20348
+ 1
20349
+ ).getTime() - 1
20350
+ );
20351
+ break;
20352
+ default:
20353
+ ibiz.log.warn("\u65E5\u5386".concat(calendarStyle, "\u6837\u5F0F\u6682\u672A\u652F\u6301"));
20354
+ break;
20355
+ }
20230
20356
  return {
20231
- srfstartdate: dayjs3(firstDayOfMonth).format("YYYY-MM-DD HH:mm:ss"),
20232
- srfenddate: dayjs3(lastDayOfMonth).format("YYYY-MM-DD HH:mm:ss")
20357
+ srfstartdate: dayjs3(srfstartdate).format("YYYY-MM-DD HH:mm:ss"),
20358
+ srfenddate: dayjs3(srfenddate).format("YYYY-MM-DD HH:mm:ss")
20233
20359
  };
20234
20360
  }
20235
20361
  return { srfstartdate, srfenddate };
@@ -20278,6 +20404,10 @@ var CalendarController = class extends MDControlController {
20278
20404
  * @memberof CalendarController
20279
20405
  */
20280
20406
  async onRowClick(data) {
20407
+ if (!data) {
20408
+ this.setSelection([]);
20409
+ return;
20410
+ }
20281
20411
  const { selectedData } = this.state;
20282
20412
  const filterArr = selectedData.filter(
20283
20413
  (item) => item.deData.srfkey !== data.deData.srfkey
@@ -20307,12 +20437,12 @@ var CalendarController = class extends MDControlController {
20307
20437
  };
20308
20438
 
20309
20439
  // src/controller/control/chart/chart.controller.ts
20310
- import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
20440
+ import { RuntimeError as RuntimeError42 } from "@ibiz-template/core";
20311
20441
 
20312
20442
  // src/controller/control/chart/generator/chart-options-generator.ts
20313
20443
  import { mergeDeepRight as mergeDeepRight3 } from "ramda";
20314
20444
  import { isObject as isObject2, isString as isString2 } from "qx-util";
20315
- import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
20445
+ import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
20316
20446
 
20317
20447
  // src/controller/control/chart/generator/line-series-generator.ts
20318
20448
  import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
@@ -20343,6 +20473,20 @@ var BaseSeriesGenerator = class {
20343
20473
  constructor(model, chartGenerator) {
20344
20474
  this.model = model;
20345
20475
  this.chartGenerator = chartGenerator;
20476
+ /**
20477
+ * 分类属性(小写)
20478
+ * @author lxm
20479
+ * @date 2023-06-09 02:44:57
20480
+ * @type {string}
20481
+ */
20482
+ this.catalogField = "";
20483
+ /**
20484
+ * 分类属性(小写)数组,用于构建多维度分层
20485
+ *
20486
+ * @type {string[]}
20487
+ * @memberof BaseSeriesGenerator
20488
+ */
20489
+ this.catalogFields = [];
20346
20490
  /**
20347
20491
  * 根据分组处理出来的图表数据数组
20348
20492
  * @author lxm
@@ -20364,6 +20508,7 @@ var BaseSeriesGenerator = class {
20364
20508
  * @type {boolean}
20365
20509
  */
20366
20510
  this.autoCompleteCategory = true;
20511
+ var _a;
20367
20512
  this.model = model;
20368
20513
  this.chartGenerator = chartGenerator;
20369
20514
  const { chartSeriesEncode, caption, id, userParam } = model;
@@ -20379,6 +20524,18 @@ var BaseSeriesGenerator = class {
20379
20524
  ibiz.i18n.t("runtime.controller.control.chart.missingValue")
20380
20525
  );
20381
20526
  }
20527
+ if (chartGenerator.model.controlParam && ((_a = chartGenerator.model.controlParam.ctrlParams) == null ? void 0 : _a.CATALOGFIELDS)) {
20528
+ try {
20529
+ const tempCatalogFields = JSON.parse(
20530
+ chartGenerator.model.controlParam.ctrlParams.CATALOGFIELDS
20531
+ );
20532
+ if (Array.isArray(tempCatalogFields)) {
20533
+ this.catalogFields = tempCatalogFields;
20534
+ }
20535
+ } catch (e) {
20536
+ throw new Error(ibiz.i18n.t("runtime.control.chart.errorJson"));
20537
+ }
20538
+ }
20382
20539
  this.catalogField = chartGenerator.getFieldKey(model.catalogField);
20383
20540
  this.valueField = chartGenerator.getFieldKey(model.valueField);
20384
20541
  this.groupField = model.seriesField ? chartGenerator.getFieldKey(model.seriesField) : void 0;
@@ -20463,6 +20620,42 @@ var BaseSeriesGenerator = class {
20463
20620
  groupData[group].get(catalog).chartData = tempChartData;
20464
20621
  (_a = this.chartDataArr) == null ? void 0 : _a.push(tempChartData);
20465
20622
  }
20623
+ /**
20624
+ * 处理多分类分组
20625
+ *
20626
+ * @param {IData[]} prevItems
20627
+ * @param {IData[]} nextItems
20628
+ * @return {*}
20629
+ * @memberof BaseSeriesGenerator
20630
+ */
20631
+ handleMultiCatalogGroup(prevItems, nextItems) {
20632
+ let tempItems = [];
20633
+ if (prevItems.length === 0) {
20634
+ tempItems = nextItems.map((item) => {
20635
+ return {
20636
+ text: item.text,
20637
+ value: item.value
20638
+ };
20639
+ });
20640
+ } else {
20641
+ for (let prev = 0; prev < prevItems.length; prev++) {
20642
+ if (nextItems.length > 0) {
20643
+ for (let next = 0; next < nextItems.length; next++) {
20644
+ tempItems.push({
20645
+ text: "".concat(prevItems[prev].text, "_").concat(nextItems[next].text),
20646
+ value: nextItems[next].value
20647
+ });
20648
+ }
20649
+ } else {
20650
+ tempItems.push({
20651
+ text: prevItems[prev].text,
20652
+ value: prevItems[prev].value
20653
+ });
20654
+ }
20655
+ }
20656
+ }
20657
+ return tempItems;
20658
+ }
20466
20659
  /**
20467
20660
  * 计算分组数据
20468
20661
  * @author lxm
@@ -20489,7 +20682,35 @@ var BaseSeriesGenerator = class {
20489
20682
  }
20490
20683
  if (!groupData[group]) {
20491
20684
  groupData[group] = /* @__PURE__ */ new Map();
20492
- if (catalogCodeListId && this.autoCompleteCategory) {
20685
+ if (this.catalogFields.length > 0) {
20686
+ let tempCodes = [];
20687
+ const tempCodeLists = [];
20688
+ this.catalogFields.forEach((catalog2) => {
20689
+ const { codelistId } = catalog2;
20690
+ if (codelistId && this.autoCompleteCategory) {
20691
+ const codeListItems = this.chartGenerator.codeListMap.get(codelistId);
20692
+ tempCodeLists.push(clone21(codeListItems));
20693
+ }
20694
+ });
20695
+ for (let i = 0; i < tempCodeLists.length; i++) {
20696
+ tempCodes = this.handleMultiCatalogGroup(
20697
+ tempCodes,
20698
+ tempCodeLists[i]
20699
+ );
20700
+ }
20701
+ tempCodes.forEach((x) => {
20702
+ groupData[group].set(x.text, { value: 0 });
20703
+ this.prepareChartData(
20704
+ groupData,
20705
+ {
20706
+ [this.valueField]: 0,
20707
+ [this.catalogField]: x.value
20708
+ },
20709
+ x.text,
20710
+ group
20711
+ );
20712
+ });
20713
+ } else if (catalogCodeListId && this.autoCompleteCategory) {
20493
20714
  const codeListItems = this.chartGenerator.codeListMap.get(catalogCodeListId);
20494
20715
  codeListItems.forEach((x) => {
20495
20716
  groupData[group].set(x.text, { value: 0 });
@@ -20505,11 +20726,31 @@ var BaseSeriesGenerator = class {
20505
20726
  });
20506
20727
  }
20507
20728
  }
20508
- const catalog = this.translateVal(
20509
- catalogCodeListId,
20510
- item[this.catalogField],
20511
- true
20512
- );
20729
+ let catalog = "";
20730
+ if (this.catalogFields.length > 0) {
20731
+ const tempCatalog = [];
20732
+ this.catalogFields.forEach((_catalog) => {
20733
+ const mergeCatalog = this.translateVal(
20734
+ _catalog.codelistId,
20735
+ item[_catalog.codename],
20736
+ true
20737
+ );
20738
+ if (!mergeCatalog) {
20739
+ return;
20740
+ }
20741
+ tempCatalog.push(mergeCatalog);
20742
+ });
20743
+ if (tempCatalog.length !== this.catalogFields.length) {
20744
+ return;
20745
+ }
20746
+ catalog = tempCatalog.join("_");
20747
+ } else {
20748
+ catalog = this.translateVal(
20749
+ catalogCodeListId,
20750
+ item[this.catalogField],
20751
+ true
20752
+ );
20753
+ }
20513
20754
  if (!catalog) {
20514
20755
  return;
20515
20756
  }
@@ -20525,7 +20766,9 @@ var BaseSeriesGenerator = class {
20525
20766
  } else {
20526
20767
  this.prepareChartData(
20527
20768
  groupData,
20528
- { ...item, [this.valueField]: groupData[group].get(catalog).value },
20769
+ Object.assign(item, {
20770
+ [this.valueField]: groupData[group].get(catalog).value
20771
+ }),
20529
20772
  catalog,
20530
20773
  group
20531
20774
  );
@@ -21255,6 +21498,239 @@ var ChartOptionsGenerator2 = class {
21255
21498
  });
21256
21499
  return AxisOption;
21257
21500
  }
21501
+ /**
21502
+ * 初始化多分类的X轴配置
21503
+ *
21504
+ * @return {*} {Promise<void>}
21505
+ * @memberof ChartOptionsGenerator
21506
+ */
21507
+ async initMultiCatalogxAxis(context, params) {
21508
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
21509
+ const { controlParam } = this.model;
21510
+ if (controlParam && ((_a = controlParam.ctrlParams) == null ? void 0 : _a.CATALOGFIELDS)) {
21511
+ try {
21512
+ const tempCatalogFields = JSON.parse(
21513
+ controlParam.ctrlParams.CATALOGFIELDS
21514
+ );
21515
+ const tempaxis = [];
21516
+ let titleshow = true;
21517
+ let labelshow = true;
21518
+ let gridIndex = 0;
21519
+ if (Array.isArray(tempCatalogFields)) {
21520
+ const app = ibiz.hub.getApp(context.srfappid);
21521
+ if (this.chartUserParam && this.chartUserParam.xAxis) {
21522
+ if (((_b = controlParam.ctrlParams) == null ? void 0 : _b.MODE) === "ROW") {
21523
+ if (Array.isArray(this.chartUserParam.yAxis)) {
21524
+ const tempconfig = this.chartUserParam.yAxis[this.chartUserParam.yAxis.length - 1];
21525
+ titleshow = tempconfig.name === void 0 ? true : !!tempconfig.name;
21526
+ labelshow = ((_c = tempconfig.axisLabel) == null ? void 0 : _c.show) === void 0 ? true : (_d = tempconfig.axisLabel) == null ? void 0 : _d.show;
21527
+ } else {
21528
+ titleshow = ((_e = this.chartUserParam.yAxis) == null ? void 0 : _e.name) === void 0 ? true : !!this.chartUserParam.yAxis.name;
21529
+ labelshow = ((_g = (_f = this.chartUserParam.yAxis) == null ? void 0 : _f.axisLabel) == null ? void 0 : _g.show) === void 0 ? true : (_h = this.chartUserParam.yAxis.axisLabel) == null ? void 0 : _h.show;
21530
+ }
21531
+ } else if (Array.isArray(this.chartUserParam.xAxis)) {
21532
+ const tempconfig = this.chartUserParam.xAxis[this.chartUserParam.xAxis.length - 1];
21533
+ titleshow = tempconfig.name === void 0 ? true : !!tempconfig.name;
21534
+ labelshow = ((_i = tempconfig.axisLabel) == null ? void 0 : _i.show) === void 0 ? true : (_j = tempconfig.axisLabel) == null ? void 0 : _j.show;
21535
+ } else {
21536
+ titleshow = this.chartUserParam.xAxis.name === void 0 ? true : !!this.chartUserParam.xAxis.name;
21537
+ labelshow = ((_k = this.chartUserParam.xAxis.axisLabel) == null ? void 0 : _k.show) === void 0 ? true : (_l = this.chartUserParam.xAxis.axisLabel) == null ? void 0 : _l.show;
21538
+ }
21539
+ }
21540
+ if (this.chartUserParam && this.chartUserParam.grid && Array.isArray(this.chartUserParam.grid)) {
21541
+ gridIndex = this.chartUserParam.grid.length - 1;
21542
+ }
21543
+ await Promise.all(
21544
+ tempCatalogFields.slice(0, -1).map(async (catalog, index) => {
21545
+ var _a2;
21546
+ if (catalog.mode === "codelist" && catalog.codelistId) {
21547
+ const codeListItems = await app.codeList.get(
21548
+ catalog.codelistId,
21549
+ context,
21550
+ params
21551
+ );
21552
+ if (codeListItems) {
21553
+ const tempxAxisData = [];
21554
+ if (((_a2 = controlParam.ctrlParams) == null ? void 0 : _a2.MODE) === "ROW") {
21555
+ const yAxisData = codeListItems.map((code) => {
21556
+ return {
21557
+ value: code.text,
21558
+ textStyle: {
21559
+ padding: [
21560
+ 0,
21561
+ 40 + 40 * (tempCatalogFields.length - index - 1),
21562
+ 0,
21563
+ 0
21564
+ ]
21565
+ }
21566
+ };
21567
+ });
21568
+ if (index === 0) {
21569
+ tempaxis.push({
21570
+ show: labelshow,
21571
+ gridIndex,
21572
+ type: "category",
21573
+ data: yAxisData,
21574
+ position: "left"
21575
+ });
21576
+ } else {
21577
+ let length = 1;
21578
+ for (let i = 0; i < tempaxis.length; i++) {
21579
+ length *= tempaxis[i].data.length;
21580
+ }
21581
+ for (let i = 0; i < length; i++) {
21582
+ tempxAxisData.push(...yAxisData);
21583
+ }
21584
+ tempaxis.push({
21585
+ show: labelshow,
21586
+ gridIndex,
21587
+ type: "category",
21588
+ data: tempxAxisData,
21589
+ position: "left"
21590
+ });
21591
+ }
21592
+ } else {
21593
+ const xAxisData = codeListItems.map((code) => {
21594
+ return {
21595
+ value: code.text,
21596
+ textStyle: {
21597
+ lineHeight: 45 * (tempCatalogFields.length - 1 - index)
21598
+ }
21599
+ };
21600
+ });
21601
+ if (index === 0) {
21602
+ tempaxis.push({
21603
+ show: labelshow,
21604
+ gridIndex,
21605
+ type: "category",
21606
+ data: xAxisData,
21607
+ position: "bottom"
21608
+ });
21609
+ } else {
21610
+ let length = 1;
21611
+ for (let i = 0; i < tempaxis.length; i++) {
21612
+ length *= tempaxis[i].data.length;
21613
+ }
21614
+ for (let i = 0; i < length; i++) {
21615
+ tempxAxisData.push(...xAxisData);
21616
+ }
21617
+ tempaxis.push({
21618
+ show: labelshow,
21619
+ gridIndex,
21620
+ type: "category",
21621
+ data: tempxAxisData,
21622
+ position: "bottom"
21623
+ });
21624
+ }
21625
+ }
21626
+ }
21627
+ }
21628
+ })
21629
+ );
21630
+ const mergeName = tempCatalogFields.map((catalog) => {
21631
+ return catalog.name;
21632
+ }).join("/").split("").join("\n");
21633
+ if (((_m = controlParam.ctrlParams) == null ? void 0 : _m.MODE) !== "ROW") {
21634
+ tempaxis.push({
21635
+ type: "category",
21636
+ gridIndex,
21637
+ show: titleshow,
21638
+ data: [
21639
+ {
21640
+ value: mergeName,
21641
+ textStyle: {
21642
+ lineHeight: labelshow ? 45 * tempCatalogFields.length : 45
21643
+ }
21644
+ }
21645
+ ],
21646
+ position: "bottom"
21647
+ });
21648
+ }
21649
+ if (this.chartUserParam) {
21650
+ if (((_n = controlParam.ctrlParams) == null ? void 0 : _n.MODE) === "ROW") {
21651
+ if (!this.chartUserParam.grid) {
21652
+ this.chartUserParam.grid = {};
21653
+ }
21654
+ let { length } = tempCatalogFields;
21655
+ if (!labelshow) {
21656
+ length = 1;
21657
+ }
21658
+ if (!titleshow) {
21659
+ length -= 1;
21660
+ }
21661
+ if (length === 0) {
21662
+ Object.assign(this.chartUserParam.grid, {
21663
+ bottom: 45
21664
+ });
21665
+ } else {
21666
+ Object.assign(this.chartUserParam.grid, {
21667
+ left: (length + 1) * 60
21668
+ });
21669
+ }
21670
+ tempaxis.push({
21671
+ type: "category",
21672
+ gridIndex,
21673
+ show: titleshow,
21674
+ data: [
21675
+ {
21676
+ value: mergeName,
21677
+ textStyle: {
21678
+ padding: [0, length * 60, 0, 0]
21679
+ }
21680
+ }
21681
+ ],
21682
+ position: "left"
21683
+ });
21684
+ if (this.chartUserParam.yAxis && Array.isArray(this.chartUserParam.yAxis)) {
21685
+ this.chartUserParam.yAxis = [
21686
+ ...this.chartUserParam.yAxis,
21687
+ ...tempaxis
21688
+ ];
21689
+ } else if (this.chartUserParam.yAxis) {
21690
+ this.chartUserParam.yAxis = [
21691
+ this.chartUserParam.yAxis,
21692
+ ...tempaxis
21693
+ ];
21694
+ }
21695
+ } else {
21696
+ if (this.chartUserParam.xAxis && Array.isArray(this.chartUserParam.xAxis)) {
21697
+ this.chartUserParam.xAxis = [
21698
+ ...this.chartUserParam.xAxis,
21699
+ ...tempaxis
21700
+ ];
21701
+ } else if (this.chartUserParam.xAxis) {
21702
+ this.chartUserParam.xAxis = [
21703
+ this.chartUserParam.xAxis,
21704
+ ...tempaxis
21705
+ ];
21706
+ }
21707
+ if (!this.chartUserParam.grid) {
21708
+ this.chartUserParam.grid = {};
21709
+ }
21710
+ let { length } = tempCatalogFields;
21711
+ if (!labelshow) {
21712
+ length = 1;
21713
+ }
21714
+ if (!titleshow) {
21715
+ length -= 1;
21716
+ }
21717
+ if (length === 0) {
21718
+ Object.assign(this.chartUserParam.grid, {
21719
+ bottom: 45
21720
+ });
21721
+ } else {
21722
+ Object.assign(this.chartUserParam.grid, {
21723
+ bottom: (length > 2 ? length - 1 : length) * 45
21724
+ });
21725
+ }
21726
+ }
21727
+ }
21728
+ }
21729
+ } catch (e) {
21730
+ throw new Error(ibiz.i18n.t("runtime.control.chart.errorJson"));
21731
+ }
21732
+ }
21733
+ }
21258
21734
  /**
21259
21735
  * 初始化
21260
21736
  * @author lxm
@@ -21265,6 +21741,7 @@ var ChartOptionsGenerator2 = class {
21265
21741
  */
21266
21742
  async init(context, params) {
21267
21743
  await this.loadCodeList(context, params);
21744
+ await this.initMultiCatalogxAxis(context, params);
21268
21745
  this.entity = await ibiz.hub.getAppDataEntity(
21269
21746
  this.model.appDataEntityId,
21270
21747
  this.model.appId
@@ -21293,7 +21770,7 @@ var ChartOptionsGenerator2 = class {
21293
21770
  * @return {*} {Promise<void>}
21294
21771
  */
21295
21772
  async loadCodeList(context, params) {
21296
- var _a;
21773
+ var _a, _b, _c;
21297
21774
  this.codeListMap.clear();
21298
21775
  if (!((_a = this.model.dechartSerieses) == null ? void 0 : _a.length)) {
21299
21776
  return;
@@ -21306,11 +21783,29 @@ var ChartOptionsGenerator2 = class {
21306
21783
  const codeListItems = await app.codeList.get(key, context, params);
21307
21784
  this.codeListMap.set(key, codeListItems);
21308
21785
  };
21786
+ if ((_c = (_b = this.model.controlParam) == null ? void 0 : _b.ctrlParams) == null ? void 0 : _c.CATALOGFIELDS) {
21787
+ try {
21788
+ const tempCatalogFields = JSON.parse(
21789
+ this.model.controlParam.ctrlParams.CATALOGFIELDS
21790
+ );
21791
+ if (Array.isArray(tempCatalogFields)) {
21792
+ await Promise.all(
21793
+ tempCatalogFields.map(async (catalog) => {
21794
+ if (catalog.mode === "codelist") {
21795
+ await loadCodeList(catalog.codelistId);
21796
+ }
21797
+ })
21798
+ );
21799
+ }
21800
+ } catch (e) {
21801
+ throw new Error(ibiz.i18n.t("runtime.control.chart.errorJson"));
21802
+ }
21803
+ }
21309
21804
  await Promise.all(
21310
21805
  this.model.dechartSerieses.map(async (series) => {
21311
21806
  const { seriesCodeListId, catalogCodeListId } = series;
21312
- await loadCodeList(seriesCodeListId);
21313
21807
  await loadCodeList(catalogCodeListId);
21808
+ await loadCodeList(seriesCodeListId);
21314
21809
  })
21315
21810
  );
21316
21811
  }
@@ -21377,7 +21872,7 @@ var ChartOptionsGenerator2 = class {
21377
21872
  getChartDataByParams(params) {
21378
21873
  const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
21379
21874
  if (!generator) {
21380
- throw new RuntimeError40(
21875
+ throw new RuntimeError41(
21381
21876
  ibiz.i18n.t("runtime.controller.control.chart.noFindSequence", {
21382
21877
  seriesIndex: params.seriesIndex
21383
21878
  })
@@ -21661,12 +22156,12 @@ var ChartController = class extends MDControlController {
21661
22156
  */
21662
22157
  updateChart() {
21663
22158
  if (!this.chart) {
21664
- throw new RuntimeError41(
22159
+ throw new RuntimeError42(
21665
22160
  ibiz.i18n.t("runtime.controller.control.chart.noInitialised")
21666
22161
  );
21667
22162
  }
21668
22163
  if (!this.options) {
21669
- throw new RuntimeError41(
22164
+ throw new RuntimeError42(
21670
22165
  ibiz.i18n.t("runtime.controller.control.chart.noCalculated")
21671
22166
  );
21672
22167
  }
@@ -21718,7 +22213,7 @@ var CaptionBarController = class extends ControlController {
21718
22213
  };
21719
22214
 
21720
22215
  // src/controller/control/toolbar/toolbar.controllerr.ts
21721
- import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError50 } from "@ibiz-template/core";
22216
+ import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError51 } from "@ibiz-template/core";
21722
22217
 
21723
22218
  // src/ui-action/provider/backend-ui-action-provider.ts
21724
22219
  import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
@@ -21728,7 +22223,7 @@ import { isArray as isArray8 } from "qx-util";
21728
22223
  import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
21729
22224
 
21730
22225
  // src/ui-logic/index.ts
21731
- import { RuntimeError as RuntimeError47 } from "@ibiz-template/core";
22226
+ import { RuntimeError as RuntimeError48 } from "@ibiz-template/core";
21732
22227
 
21733
22228
  // src/ui-logic/ui-logic.ts
21734
22229
  import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
@@ -22384,7 +22879,7 @@ var EndNode2 = class extends UILogicNode {
22384
22879
  };
22385
22880
 
22386
22881
  // src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
22387
- import { ModelError as ModelError22, RuntimeError as RuntimeError42 } from "@ibiz-template/core";
22882
+ import { ModelError as ModelError22, RuntimeError as RuntimeError43 } from "@ibiz-template/core";
22388
22883
  import { clone as clone23 } from "ramda";
22389
22884
  var PrepareJSParamNode = class extends UILogicNode {
22390
22885
  async exec(ctx) {
@@ -22450,7 +22945,7 @@ var PrepareJSParamNode = class extends UILogicNode {
22450
22945
  setParamValue(nodeParam, ctx) {
22451
22946
  const { dstFieldName, dstDEUILogicParamId } = nodeParam;
22452
22947
  if (!dstDEUILogicParamId) {
22453
- throw new RuntimeError42(ibiz.i18n.t("runtime.uiLogic.noTargetParameter"));
22948
+ throw new RuntimeError43(ibiz.i18n.t("runtime.uiLogic.noTargetParameter"));
22454
22949
  }
22455
22950
  let dstField = dstFieldName;
22456
22951
  if (ctx.isEntityParam(dstDEUILogicParamId)) {
@@ -22567,7 +23062,7 @@ var PrepareJSParamNode = class extends UILogicNode {
22567
23062
  };
22568
23063
 
22569
23064
  // src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
22570
- import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
23065
+ import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
22571
23066
  import { isFunction } from "lodash-es";
22572
23067
  var ViewCtrlInvokeNode = class extends UILogicNode {
22573
23068
  async exec(ctx) {
@@ -22593,7 +23088,7 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
22593
23088
  }
22594
23089
  const invokeParam = ctx.params[invokeParamId];
22595
23090
  if (!invokeParam) {
22596
- throw new RuntimeError43(
23091
+ throw new RuntimeError44(
22597
23092
  ibiz.i18n.t("runtime.uiLogic.noFoundOperationParameter", {
22598
23093
  invokeParamId
22599
23094
  })
@@ -22601,14 +23096,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
22601
23096
  }
22602
23097
  const invokeCtrl = ctx.params[invokeCtrlId];
22603
23098
  if (!invokeCtrl) {
22604
- throw new RuntimeError43(
23099
+ throw new RuntimeError44(
22605
23100
  ibiz.i18n.t("runtime.uiLogic.noFoundInterfaceObject", {
22606
23101
  invokeCtrlId
22607
23102
  })
22608
23103
  );
22609
23104
  }
22610
23105
  if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
22611
- throw new RuntimeError43(
23106
+ throw new RuntimeError44(
22612
23107
  ibiz.i18n.t("runtime.uiLogic.noFoundInvokeMethod", {
22613
23108
  invokeMethod
22614
23109
  })
@@ -22948,7 +23443,7 @@ var DataSetNode2 = class extends UILogicNode {
22948
23443
  };
22949
23444
 
22950
23445
  // src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
22951
- import { RuntimeError as RuntimeError44 } from "@ibiz-template/core";
23446
+ import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
22952
23447
  var ThrowExceptionNode2 = class extends UILogicNode {
22953
23448
  async exec(_ctx) {
22954
23449
  const { errorInfo } = this.model;
@@ -22958,12 +23453,12 @@ var ThrowExceptionNode2 = class extends UILogicNode {
22958
23453
  errorInfo
22959
23454
  })
22960
23455
  );
22961
- throw new RuntimeError44(errorInfo);
23456
+ throw new RuntimeError45(errorInfo);
22962
23457
  }
22963
23458
  };
22964
23459
 
22965
23460
  // src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
22966
- import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
23461
+ import { RuntimeError as RuntimeError46, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
22967
23462
  var ViewCtrlFireEventNode = class extends UILogicNode {
22968
23463
  async exec(ctx) {
22969
23464
  ctx.isEndNode = true;
@@ -22988,13 +23483,13 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
22988
23483
  }
22989
23484
  const invokeCtrl = ctx.params[fireCtrlId];
22990
23485
  if (!invokeCtrl) {
22991
- throw new RuntimeError45(
23486
+ throw new RuntimeError46(
22992
23487
  ibiz.i18n.t("runtime.uiLogic.noFoundTriggerObject", { fireCtrlId })
22993
23488
  );
22994
23489
  }
22995
23490
  const eventParam = ctx.params[eventParamId];
22996
23491
  if (!eventParam) {
22997
- throw new RuntimeError45(
23492
+ throw new RuntimeError46(
22998
23493
  ibiz.i18n.t("runtime.uiLogic.noFoundEventParameterObject", {
22999
23494
  eventParamId
23000
23495
  })
@@ -23016,7 +23511,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
23016
23511
  };
23017
23512
 
23018
23513
  // src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
23019
- import { RuntimeError as RuntimeError46, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
23514
+ import { RuntimeError as RuntimeError47, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
23020
23515
  var ExecuteDELogicNode = class extends UILogicNode {
23021
23516
  async exec(ctx) {
23022
23517
  const {
@@ -23045,7 +23540,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
23045
23540
  }
23046
23541
  const dstParam = ctx.params[dstDEUILogicParamId];
23047
23542
  if (!dstParam) {
23048
- throw new RuntimeError46(
23543
+ throw new RuntimeError47(
23049
23544
  ibiz.i18n.t("runtime.uiLogic.passedParameter", { dstDEUILogicParamId })
23050
23545
  );
23051
23546
  }
@@ -23081,15 +23576,14 @@ var RawJSCodeNode = class extends UILogicNode {
23081
23576
  }),
23082
23577
  this.model.code
23083
23578
  );
23084
- ScriptFactory.execScriptFn(
23579
+ await ScriptFactory.asyncExecScriptFn(
23085
23580
  {
23086
23581
  view: ctx.view,
23087
23582
  context: ctx.context,
23088
23583
  params: ctx.viewParam,
23089
23584
  uiLogic: ctx.params
23090
23585
  },
23091
- this.model.code || "",
23092
- { isAsync: false }
23586
+ this.model.code || ""
23093
23587
  );
23094
23588
  }
23095
23589
  };
@@ -23445,7 +23939,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
23445
23939
  const app = ibiz.hub.getApp(parameters.context.srfappid);
23446
23940
  const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
23447
23941
  if (!deUILogic) {
23448
- throw new RuntimeError47(
23942
+ throw new RuntimeError48(
23449
23943
  ibiz.i18n.t("runtime.uiLogic.interfaceLogic", {
23450
23944
  appDataEntityId,
23451
23945
  deUILogicId
@@ -23473,7 +23967,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
23473
23967
  }
23474
23968
 
23475
23969
  // src/ui-action/uiaction-util.ts
23476
- import { RuntimeError as RuntimeError48 } from "@ibiz-template/core";
23970
+ import { RuntimeError as RuntimeError49 } from "@ibiz-template/core";
23477
23971
  var UIActionUtil = class {
23478
23972
  /**
23479
23973
  * 执行界面行为
@@ -23488,7 +23982,7 @@ var UIActionUtil = class {
23488
23982
  static async exec(actionId, params, appId2) {
23489
23983
  const action = await getUIActionById(actionId, appId2);
23490
23984
  if (!action) {
23491
- throw new RuntimeError48(
23985
+ throw new RuntimeError49(
23492
23986
  ibiz.i18n.t("runtime.uiAction.noFoundBehaviorModel", { actionId })
23493
23987
  );
23494
23988
  }
@@ -23996,7 +24490,7 @@ import {
23996
24490
  StringUtil,
23997
24491
  RuntimeModelError as RuntimeModelError53,
23998
24492
  ModelError as ModelError26,
23999
- RuntimeError as RuntimeError49
24493
+ RuntimeError as RuntimeError50
24000
24494
  } from "@ibiz-template/core";
24001
24495
  import { mergeRight as mergeRight4 } from "ramda";
24002
24496
  var FrontUIActionProvider = class extends UIActionProviderBase {
@@ -24122,7 +24616,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
24122
24616
  if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
24123
24617
  requestUrl += "/".concat(appDataEntity.deapicodeName2, "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
24124
24618
  } else {
24125
- throw new RuntimeError49(ibiz.i18n.t("runtime.uiAction.dataPrimaryKey"));
24619
+ throw new RuntimeError50(ibiz.i18n.t("runtime.uiAction.dataPrimaryKey"));
24126
24620
  }
24127
24621
  const res = await ibiz.net.request(requestUrl, {
24128
24622
  method: "get",
@@ -24148,10 +24642,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
24148
24642
  window.open(link, "_blank");
24149
24643
  }
24150
24644
  } else {
24151
- throw new RuntimeError49(ibiz.i18n.t("runtime.uiAction.printFailure"));
24645
+ throw new RuntimeError50(ibiz.i18n.t("runtime.uiAction.printFailure"));
24152
24646
  }
24153
24647
  } else {
24154
- throw new RuntimeError49(ibiz.i18n.t("runtime.uiAction.physicalPrint"));
24648
+ throw new RuntimeError50(ibiz.i18n.t("runtime.uiAction.physicalPrint"));
24155
24649
  }
24156
24650
  }
24157
24651
  /**
@@ -24236,12 +24730,12 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
24236
24730
  URL.revokeObjectURL(elink.href);
24237
24731
  document.body.removeChild(elink);
24238
24732
  } else {
24239
- throw new RuntimeError49(
24733
+ throw new RuntimeError50(
24240
24734
  ibiz.i18n.t("runtime.uiAction.exportRequestFailed")
24241
24735
  );
24242
24736
  }
24243
24737
  } else {
24244
- throw new RuntimeError49(
24738
+ throw new RuntimeError50(
24245
24739
  ibiz.i18n.t("runtime.uiAction.noEntityExportsFound")
24246
24740
  );
24247
24741
  }
@@ -24259,7 +24753,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
24259
24753
  const actionResult = {};
24260
24754
  const { context, params, data, event } = args;
24261
24755
  if (!event) {
24262
- throw new RuntimeError49(ibiz.i18n.t("runtime.uiAction.lackNativeEvent"));
24756
+ throw new RuntimeError50(ibiz.i18n.t("runtime.uiAction.lackNativeEvent"));
24263
24757
  }
24264
24758
  const { resultContext, resultParams } = await this.handleParams(
24265
24759
  action,
@@ -24398,7 +24892,7 @@ var ToolbarController = class extends ControlController {
24398
24892
  const actionId = item.uiactionId;
24399
24893
  const uiAction = await getUIActionById(actionId, item.appId);
24400
24894
  if (!uiAction) {
24401
- throw new RuntimeError50(
24895
+ throw new RuntimeError51(
24402
24896
  ibiz.i18n.t("runtime.controller.control.toolbar.noFound", {
24403
24897
  actionId
24404
24898
  })
@@ -25839,7 +26333,7 @@ var DataViewControlController = class extends MDControlController {
25839
26333
  import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
25840
26334
 
25841
26335
  // src/controller/control/exp-bar/exp-bar.controller.ts
25842
- import { RuntimeError as RuntimeError51, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
26336
+ import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
25843
26337
  var ExpBarControlController = class extends ControlController {
25844
26338
  constructor() {
25845
26339
  super(...arguments);
@@ -26172,7 +26666,7 @@ var ExpBarControlController = class extends ControlController {
26172
26666
  if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
26173
26667
  return this.XDataModel.navAppViewId;
26174
26668
  }
26175
- throw new RuntimeError51(
26669
+ throw new RuntimeError52(
26176
26670
  ibiz.i18n.t("runtime.controller.control.expBar.multiNode")
26177
26671
  );
26178
26672
  }
@@ -26319,7 +26813,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
26319
26813
  };
26320
26814
 
26321
26815
  // src/controller/control/exp-bar/tree-exp-bar.controller.ts
26322
- import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
26816
+ import { RuntimeError as RuntimeError53, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
26323
26817
  var TreeExpBarController = class extends ExpBarControlController {
26324
26818
  constructor() {
26325
26819
  super(...arguments);
@@ -26410,7 +26904,7 @@ var TreeExpBarController = class extends ExpBarControlController {
26410
26904
  const deData = node._deData || node;
26411
26905
  const nodeModel = this.getNodeModel(node._nodeId);
26412
26906
  if (!nodeModel) {
26413
- throw new RuntimeError52(
26907
+ throw new RuntimeError53(
26414
26908
  ibiz.i18n.t("runtime.controller.control.expBar.noFindNodeModel", {
26415
26909
  nodeId: node._nodeId
26416
26910
  })
@@ -26605,7 +27099,7 @@ var ChartExpBarController = class extends ExpBarControlController {
26605
27099
  };
26606
27100
 
26607
27101
  // src/controller/control/form/search-form/search-form.controller.ts
26608
- import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
27102
+ import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
26609
27103
 
26610
27104
  // src/controller/control/form/form/form.controller.ts
26611
27105
  import {
@@ -27251,7 +27745,7 @@ var SearchFormController = class extends FormController {
27251
27745
  applyStoredFilter(index) {
27252
27746
  const filter = this.state.storedFilters[index];
27253
27747
  if (!filter) {
27254
- throw new RuntimeError53(
27748
+ throw new RuntimeError54(
27255
27749
  ibiz.i18n.t("runtime.controller.control.form.searchTerms")
27256
27750
  );
27257
27751
  }
@@ -27269,7 +27763,7 @@ var SearchFormController = class extends FormController {
27269
27763
  async removeStoredFilter(index) {
27270
27764
  const filter = this.state.storedFilters[index];
27271
27765
  if (!filter) {
27272
- throw new RuntimeError53(
27766
+ throw new RuntimeError54(
27273
27767
  ibiz.i18n.t("runtime.controller.control.form.saveSearch")
27274
27768
  );
27275
27769
  }
@@ -28759,7 +29253,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
28759
29253
  };
28760
29254
 
28761
29255
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
28762
- import { RuntimeError as RuntimeError54, RuntimeModelError as RuntimeModelError60 } from "@ibiz-template/core";
29256
+ import { RuntimeError as RuntimeError55, RuntimeModelError as RuntimeModelError60 } from "@ibiz-template/core";
28763
29257
  import { createUUID as createUUID11 } from "qx-util";
28764
29258
 
28765
29259
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
@@ -28782,6 +29276,13 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
28782
29276
  * @date 2023-11-11 08:03:56
28783
29277
  */
28784
29278
  this.formMap = /* @__PURE__ */ new Map();
29279
+ /**
29280
+ * 数据集合
29281
+ *
29282
+ * @type {IData[]}
29283
+ * @memberof FormMDCtrlFormController
29284
+ */
29285
+ this.items = [];
28785
29286
  }
28786
29287
  createState() {
28787
29288
  var _a;
@@ -28824,7 +29325,8 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
28824
29325
  const fetchAction = "fetchdefault";
28825
29326
  const res = await ibiz.hub.getApp(this.model.appId).deService.exec(appDataEntityId, fetchAction, this.context, this.params);
28826
29327
  if (res.ok) {
28827
- this.state.items = res.data.map((item) => {
29328
+ this.items = res.data;
29329
+ this.state.items = this.items.map((item) => {
28828
29330
  const context = this.context.clone();
28829
29331
  context[this.deName] = item.srfkey;
28830
29332
  const params = { ...this.params };
@@ -28836,6 +29338,30 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
28836
29338
  });
28837
29339
  }
28838
29340
  }
29341
+ /**
29342
+ * 更新数据
29343
+ * - 仅支持更新临时数据
29344
+ * @return {*} {Promise<void>}
29345
+ * @memberof FormMDCtrlFormController
29346
+ */
29347
+ async updateData() {
29348
+ var _a;
29349
+ const { appDataEntityId } = this.model.contentControl;
29350
+ const fetchAction = "update";
29351
+ const deService = await ibiz.hub.getAppDEService(
29352
+ this.model.appId,
29353
+ appDataEntityId,
29354
+ this.context
29355
+ );
29356
+ const data = (_a = this.state.items) == null ? void 0 : _a.map((item, index) => {
29357
+ const _item = this.items.find((v) => v.srfkey === item.id);
29358
+ _item.srfordervalue = index + 1;
29359
+ return _item;
29360
+ });
29361
+ if (deService.isLocalMode && data) {
29362
+ await deService.exec(fetchAction, this.context, data);
29363
+ }
29364
+ }
28839
29365
  /**
28840
29366
  * 表单状态变更通知
28841
29367
  *
@@ -28900,7 +29426,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
28900
29426
  async remove(id) {
28901
29427
  const controller = this.formMap.get(id);
28902
29428
  if (!controller) {
28903
- throw new RuntimeError54(
29429
+ throw new RuntimeError55(
28904
29430
  ibiz.i18n.t("runtime.controller.control.form.noFoundFormController", {
28905
29431
  id
28906
29432
  })
@@ -29252,7 +29778,7 @@ import {
29252
29778
  IBizContext as IBizContext6,
29253
29779
  isElementSame as isElementSame2,
29254
29780
  mergeInLeft as mergeInLeft2,
29255
- RuntimeError as RuntimeError55
29781
+ RuntimeError as RuntimeError56
29256
29782
  } from "@ibiz-template/core";
29257
29783
  import { debounce } from "lodash-es";
29258
29784
  import { createUUID as createUUID12 } from "qx-util";
@@ -29721,7 +30247,7 @@ var EditFormController = class extends FormController {
29721
30247
  }
29722
30248
  const isValid = await this.validate();
29723
30249
  if (!isValid) {
29724
- throw new RuntimeError55(
30250
+ throw new RuntimeError56(
29725
30251
  ibiz.i18n.t("runtime.controller.control.form.formCompletion")
29726
30252
  );
29727
30253
  }
@@ -29857,7 +30383,7 @@ var EditFormController = class extends FormController {
29857
30383
  (item) => item.id === formItemUpdateId
29858
30384
  );
29859
30385
  if (!formItemUpdate) {
29860
- throw new RuntimeError55(
30386
+ throw new RuntimeError56(
29861
30387
  ibiz.i18n.t("runtime.controller.control.form.itemUpdate", {
29862
30388
  formItemUpdateId
29863
30389
  })
@@ -29920,7 +30446,7 @@ var EditFormController = class extends FormController {
29920
30446
  async wfStart(args) {
29921
30447
  const isValid = await this.validate();
29922
30448
  if (!isValid) {
29923
- throw new RuntimeError55(
30449
+ throw new RuntimeError56(
29924
30450
  ibiz.i18n.t("runtime.controller.control.form.formCompletion")
29925
30451
  );
29926
30452
  }
@@ -29953,7 +30479,7 @@ var EditFormController = class extends FormController {
29953
30479
  async wfSubmit(args) {
29954
30480
  const isValid = await this.validate();
29955
30481
  if (!isValid) {
29956
- throw new RuntimeError55(
30482
+ throw new RuntimeError56(
29957
30483
  ibiz.i18n.t("runtime.controller.control.form.formCompletion")
29958
30484
  );
29959
30485
  }
@@ -30366,7 +30892,7 @@ import {
30366
30892
  EntityError as EntityError2,
30367
30893
  mergeDefaultInLeft,
30368
30894
  recursiveIterate as recursiveIterate7,
30369
- RuntimeError as RuntimeError56,
30895
+ RuntimeError as RuntimeError57,
30370
30896
  RuntimeModelError as RuntimeModelError63
30371
30897
  } from "@ibiz-template/core";
30372
30898
  import { clone as clone27, isNil as isNil28 } from "ramda";
@@ -30937,7 +31463,7 @@ var GridController = class extends MDControlController {
30937
31463
  } else {
30938
31464
  const toNum = Number(sortValue);
30939
31465
  if (Number.isNaN(toNum)) {
30940
- throw new RuntimeError56(
31466
+ throw new RuntimeError57(
30941
31467
  ibiz.i18n.t("runtime.controller.control.grid.convertedValue", {
30942
31468
  srfmajortext: item.srfmajortext
30943
31469
  })
@@ -31128,7 +31654,7 @@ var GridController = class extends MDControlController {
31128
31654
  if (editShowMode === "row") {
31129
31655
  const editingRow = this.state.rows.find((item) => item.showRowEdit);
31130
31656
  if (editingRow) {
31131
- throw new RuntimeError56(
31657
+ throw new RuntimeError57(
31132
31658
  ibiz.i18n.t("runtime.controller.common.md.firstComplete")
31133
31659
  );
31134
31660
  }
@@ -31171,7 +31697,7 @@ var GridController = class extends MDControlController {
31171
31697
  const isCreate = data.srfuf === 0 /* CREATE */;
31172
31698
  const rowState = this.findRowState(data);
31173
31699
  if (!rowState) {
31174
- throw new RuntimeError56(
31700
+ throw new RuntimeError57(
31175
31701
  ibiz.i18n.t("runtime.controller.common.md.rowData")
31176
31702
  );
31177
31703
  }
@@ -31185,7 +31711,7 @@ var GridController = class extends MDControlController {
31185
31711
  }
31186
31712
  const isValid = await this.validate(rowState);
31187
31713
  if (!isValid) {
31188
- throw new RuntimeError56(
31714
+ throw new RuntimeError57(
31189
31715
  ibiz.i18n.t("runtime.controller.control.grid.saveCancel")
31190
31716
  );
31191
31717
  }
@@ -31441,7 +31967,7 @@ var GridController = class extends MDControlController {
31441
31967
  }
31442
31968
  async toggleRowEdit() {
31443
31969
  if (!this.model.enableRowNew) {
31444
- throw new RuntimeError56(
31970
+ throw new RuntimeError57(
31445
31971
  ibiz.i18n.t("runtime.controller.control.grid.noSupportRowEditing")
31446
31972
  );
31447
31973
  }
@@ -31476,7 +32002,7 @@ var GridController = class extends MDControlController {
31476
32002
  } else {
31477
32003
  const editingRow = this.state.rows.find((item) => item.showRowEdit);
31478
32004
  if (editingRow) {
31479
- throw new RuntimeError56(
32005
+ throw new RuntimeError57(
31480
32006
  ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
31481
32007
  );
31482
32008
  }
@@ -31533,7 +32059,7 @@ var GridController = class extends MDControlController {
31533
32059
  (item) => item.id === updateId
31534
32060
  );
31535
32061
  if (!findUpdate) {
31536
- throw new RuntimeError56(
32062
+ throw new RuntimeError57(
31537
32063
  ibiz.i18n.t("runtime.controller.control.grid.updateColumns", {
31538
32064
  updateId
31539
32065
  })
@@ -31677,7 +32203,7 @@ var GridController = class extends MDControlController {
31677
32203
  data = this.getData();
31678
32204
  }
31679
32205
  if (data.length === 0) {
31680
- throw new RuntimeError56(
32206
+ throw new RuntimeError57(
31681
32207
  ibiz.i18n.t("runtime.controller.control.grid.exported")
31682
32208
  );
31683
32209
  }
@@ -31693,7 +32219,7 @@ var GridController = class extends MDControlController {
31693
32219
  async exportData(args) {
31694
32220
  const { header } = this.dataExportParam;
31695
32221
  if (!header) {
31696
- throw new RuntimeError56(
32222
+ throw new RuntimeError57(
31697
32223
  ibiz.i18n.t("runtime.controller.control.grid.tabularColumns")
31698
32224
  );
31699
32225
  }
@@ -32353,7 +32879,7 @@ var GridUAColumnController = class extends GridColumnController {
32353
32879
  };
32354
32880
 
32355
32881
  // src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
32356
- import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
32882
+ import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
32357
32883
  import Schema2 from "async-validator";
32358
32884
  import { isNilOrEmpty as isNilOrEmpty8 } from "qx-util";
32359
32885
  var GridFieldEditColumnController = class extends GridFieldColumnController {
@@ -32493,7 +33019,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
32493
33019
  if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
32494
33020
  const result = await this.validate(row);
32495
33021
  if (!result) {
32496
- throw new RuntimeError57(
33022
+ throw new RuntimeError58(
32497
33023
  ibiz.i18n.t("runtime.controller.control.grid.checksumErrors", {
32498
33024
  codeName: this.editItem.codeName,
32499
33025
  fieldName: row.errors[this.fieldName]
@@ -32817,7 +33343,7 @@ var ListController = class extends MDControlController {
32817
33343
  };
32818
33344
 
32819
33345
  // src/controller/control/panel/panel/panel.controller.ts
32820
- import { recursiveIterate as recursiveIterate8, RuntimeError as RuntimeError58 } from "@ibiz-template/core";
33346
+ import { recursiveIterate as recursiveIterate8, RuntimeError as RuntimeError59 } from "@ibiz-template/core";
32821
33347
  import { AsyncSeriesHook as AsyncSeriesHook2 } from "qx-util";
32822
33348
  var PanelController = class extends ControlController {
32823
33349
  constructor(model, context, params, ctx, container) {
@@ -32974,7 +33500,7 @@ var PanelController = class extends ControlController {
32974
33500
  var _a, _b;
32975
33501
  const data = await this.prepareData();
32976
33502
  if (!data) {
32977
- throw new RuntimeError58(
33503
+ throw new RuntimeError59(
32978
33504
  ibiz.i18n.t("runtime.controller.control.panel.panelData")
32979
33505
  );
32980
33506
  }
@@ -34108,7 +34634,7 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
34108
34634
  }
34109
34635
 
34110
34636
  // src/controller/control/search-bar/search-bar-filter-items.controller.ts
34111
- import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
34637
+ import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
34112
34638
  import { clone as clone29 } from "ramda";
34113
34639
  var SubFieldRegex2 = /^N_(.\w+)_(.\w+)$/;
34114
34640
  var SearchBarFilterItemsController = class extends SearchBarFilterController {
@@ -34167,7 +34693,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
34167
34693
  return false;
34168
34694
  });
34169
34695
  if (!minorDEId) {
34170
- throw new RuntimeError59(
34696
+ throw new RuntimeError60(
34171
34697
  ibiz.i18n.t("runtime.controller.control.searchBar.noFoundEntity", {
34172
34698
  targetField
34173
34699
  })
@@ -35366,7 +35892,7 @@ var TabExpPanelController = class extends ControlController {
35366
35892
 
35367
35893
  // src/controller/control/tree/tree.controller.ts
35368
35894
  import {
35369
- RuntimeError as RuntimeError60,
35895
+ RuntimeError as RuntimeError61,
35370
35896
  RuntimeModelError as RuntimeModelError66,
35371
35897
  recursiveIterate as recursiveIterate11
35372
35898
  } from "@ibiz-template/core";
@@ -36452,7 +36978,7 @@ var TreeController = class extends MDControlController {
36452
36978
  );
36453
36979
  }
36454
36980
  if (nodeData._nodeType !== "DE") {
36455
- throw new RuntimeError60(
36981
+ throw new RuntimeError61(
36456
36982
  ibiz.i18n.t("runtime.controller.control.tree.nodeData")
36457
36983
  );
36458
36984
  }
@@ -36470,7 +36996,7 @@ var TreeController = class extends MDControlController {
36470
36996
  let needRefresh = false;
36471
36997
  const treeNode = this.getNodeModel(item._nodeId);
36472
36998
  if (!treeNode) {
36473
- throw new RuntimeError60(
36999
+ throw new RuntimeError61(
36474
37000
  ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
36475
37001
  );
36476
37002
  }
@@ -36516,7 +37042,7 @@ var TreeController = class extends MDControlController {
36516
37042
  };
36517
37043
 
36518
37044
  // src/controller/control/wizard-panel/wizard-panel.controller.ts
36519
- import { RuntimeError as RuntimeError61 } from "@ibiz-template/core";
37045
+ import { RuntimeError as RuntimeError62 } from "@ibiz-template/core";
36520
37046
 
36521
37047
  // src/controller/control/wizard-panel/wizard-panel.service.ts
36522
37048
  var WizardPanelService = class extends ControlService {
@@ -36704,7 +37230,7 @@ var WizardPanelController = class extends ControlController {
36704
37230
  const { activeFormTag } = this.state;
36705
37231
  const controller = this.formControllers.get(activeFormTag);
36706
37232
  if (!controller) {
36707
- throw new RuntimeError61(
37233
+ throw new RuntimeError62(
36708
37234
  ibiz.i18n.t("runtime.controller.control.wizardPanel.formController", {
36709
37235
  activeFormTag
36710
37236
  })
@@ -36754,7 +37280,7 @@ var WizardPanelController = class extends ControlController {
36754
37280
  getWizardFormByTag(tag) {
36755
37281
  var _a;
36756
37282
  if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
36757
- throw new RuntimeError61(
37283
+ throw new RuntimeError62(
36758
37284
  ibiz.i18n.t("runtime.controller.control.wizardPanel.noConfiguration")
36759
37285
  );
36760
37286
  return;
@@ -36765,7 +37291,7 @@ var WizardPanelController = class extends ControlController {
36765
37291
  }
36766
37292
  );
36767
37293
  if (!wizardForm) {
36768
- throw new RuntimeError61(
37294
+ throw new RuntimeError62(
36769
37295
  ibiz.i18n.t(
36770
37296
  "runtime.controller.control.wizardPanel.wizardFormIdentifier",
36771
37297
  { tag }
@@ -36857,7 +37383,7 @@ var WizardPanelController = class extends ControlController {
36857
37383
  prevTag = this.tagHistory[this.tagHistory.length - 1];
36858
37384
  }
36859
37385
  if (!prevTag) {
36860
- throw new RuntimeError61(
37386
+ throw new RuntimeError62(
36861
37387
  ibiz.i18n.t("runtime.controller.control.wizardPanel.noPreviousForm")
36862
37388
  );
36863
37389
  }
@@ -36895,7 +37421,7 @@ var WizardPanelController = class extends ControlController {
36895
37421
  });
36896
37422
  const nextWizardStep = wizardSteps[index + 1];
36897
37423
  if (!nextWizardStep) {
36898
- throw new RuntimeError61(
37424
+ throw new RuntimeError62(
36899
37425
  ibiz.i18n.t("runtime.controller.control.wizardPanel.nextStep")
36900
37426
  );
36901
37427
  }
@@ -36906,7 +37432,7 @@ var WizardPanelController = class extends ControlController {
36906
37432
  }
36907
37433
  }
36908
37434
  if (!nextTag) {
36909
- throw new RuntimeError61(
37435
+ throw new RuntimeError62(
36910
37436
  ibiz.i18n.t("runtime.controller.control.wizardPanel.nextForm")
36911
37437
  );
36912
37438
  }
@@ -37292,7 +37818,7 @@ var MDCtrlController = class extends MDControlController {
37292
37818
  };
37293
37819
 
37294
37820
  // src/controller/control/kanban/kanban.controller.ts
37295
- import { RuntimeError as RuntimeError62, RuntimeModelError as RuntimeModelError68 } from "@ibiz-template/core";
37821
+ import { RuntimeError as RuntimeError63, RuntimeModelError as RuntimeModelError68 } from "@ibiz-template/core";
37296
37822
  import { clone as clone32, isNil as isNil33 } from "ramda";
37297
37823
 
37298
37824
  // src/controller/control/kanban/kanban.service.ts
@@ -37411,7 +37937,7 @@ var KanbanController = class extends DataViewControlController {
37411
37937
  } else {
37412
37938
  const toNum = Number(sortValue);
37413
37939
  if (Number.isNaN(toNum)) {
37414
- throw new RuntimeError62(
37940
+ throw new RuntimeError63(
37415
37941
  ibiz.i18n.t("runtime.controller.control.grid.convertedValue", {
37416
37942
  srfmajortext: item.srfmajortext
37417
37943
  })
@@ -37535,47 +38061,12 @@ var KanbanController = class extends DataViewControlController {
37535
38061
  }
37536
38062
  handleDataGroup() {
37537
38063
  if (!this.model.enableGroup || this.model.groupMode === "NONE") {
37538
- throw new RuntimeError62(
38064
+ throw new RuntimeError63(
37539
38065
  ibiz.i18n.t("runtime.controller.control.kanban.groupedOn")
37540
38066
  );
37541
38067
  }
37542
38068
  return super.handleDataGroup();
37543
38069
  }
37544
- /**
37545
- * 处理自动分组
37546
- *
37547
- * @memberof KanbanController
37548
- */
37549
- handleAutoGroup() {
37550
- const { groupAppDEFieldId } = this.model;
37551
- if (groupAppDEFieldId) {
37552
- const { items } = this.state;
37553
- const groupMap = /* @__PURE__ */ new Map();
37554
- items.forEach((item) => {
37555
- const groupVal = item[groupAppDEFieldId];
37556
- if (isNil33(groupVal)) {
37557
- return;
37558
- }
37559
- if (!groupMap.has(groupVal)) {
37560
- groupMap.set(groupVal, []);
37561
- }
37562
- groupMap.get(groupVal).push(item);
37563
- });
37564
- const groups = [];
37565
- groupMap.forEach((value, key) => {
37566
- const codeListItem = this.groupCodeListItems.find(
37567
- (item) => item.value === key
37568
- );
37569
- groups.push({
37570
- caption: codeListItem.text,
37571
- color: codeListItem.color,
37572
- key: codeListItem.value,
37573
- children: [...value]
37574
- });
37575
- });
37576
- this.state.groups = groups;
37577
- }
37578
- }
37579
38070
  /**
37580
38071
  * 处理代码表分组
37581
38072
  *
@@ -37658,7 +38149,7 @@ var KanbanController = class extends DataViewControlController {
37658
38149
  );
37659
38150
  }
37660
38151
  this.state.updating = true;
37661
- const computeMoveData = (_fromIndex, _toIndex, _draggedItem, targetArray) => {
38152
+ const computeMoveData = (_fromIndex, _toIndex, _draggedItem, targetArray, isCrossGroup) => {
37662
38153
  let moveData = {};
37663
38154
  const targetItem = targetArray[_toIndex];
37664
38155
  if (!targetItem) {
@@ -37687,7 +38178,7 @@ var KanbanController = class extends DataViewControlController {
37687
38178
  } else {
37688
38179
  moveData = {
37689
38180
  srftargetkey: targetItem.srfkey,
37690
- srfmovetype: _fromIndex > _toIndex ? "MOVEBEFORE" : "MOVEAFTER"
38181
+ srfmovetype: _toIndex < targetArray.length - 1 ? "MOVEBEFORE" : isCrossGroup ? "MOVEBEFORE" : "MOVEAFTER"
37691
38182
  };
37692
38183
  }
37693
38184
  return moveData;
@@ -37722,7 +38213,13 @@ var KanbanController = class extends DataViewControlController {
37722
38213
  );
37723
38214
  }
37724
38215
  }
37725
- const params = computeMoveData(fromIndex, toIndex, draggedItem, originArr);
38216
+ const params = computeMoveData(
38217
+ fromIndex,
38218
+ toIndex,
38219
+ draggedItem,
38220
+ originArr,
38221
+ info.from !== info.to
38222
+ );
37726
38223
  try {
37727
38224
  const { ok, result } = await this.moveOrderItem(draggedItem, params);
37728
38225
  if (ok) {
@@ -37954,7 +38451,7 @@ var KanbanController = class extends DataViewControlController {
37954
38451
 
37955
38452
  // src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
37956
38453
  import {
37957
- RuntimeError as RuntimeError63,
38454
+ RuntimeError as RuntimeError64,
37958
38455
  RuntimeModelError as RuntimeModelError69,
37959
38456
  awaitTimeout as awaitTimeout3,
37960
38457
  recursiveIterate as recursiveIterate12
@@ -38239,13 +38736,13 @@ var TreeGridExController = class extends TreeController {
38239
38736
  return;
38240
38737
  }
38241
38738
  if (nodeData._nodeType !== "DE") {
38242
- throw new RuntimeError63(
38739
+ throw new RuntimeError64(
38243
38740
  ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
38244
38741
  );
38245
38742
  }
38246
38743
  const rowState = this.state.rows[nodeData._uuid];
38247
38744
  if (!rowState) {
38248
- throw new RuntimeError63(
38745
+ throw new RuntimeError64(
38249
38746
  ibiz.i18n.t("runtime.controller.common.md.rowData")
38250
38747
  );
38251
38748
  }
@@ -38261,7 +38758,7 @@ var TreeGridExController = class extends TreeController {
38261
38758
  const { appDataEntityId, updateAppDEActionId } = nodeModel;
38262
38759
  const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
38263
38760
  if (isCreate) {
38264
- throw new RuntimeError63(
38761
+ throw new RuntimeError64(
38265
38762
  ibiz.i18n.t("runtime.controller.control.treeGridEx.noSupportCreation")
38266
38763
  );
38267
38764
  }
@@ -38426,7 +38923,7 @@ var TreeGridExController = class extends TreeController {
38426
38923
  (item) => item.showRowEdit
38427
38924
  );
38428
38925
  if (editingRow) {
38429
- throw new RuntimeError63(
38926
+ throw new RuntimeError64(
38430
38927
  ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
38431
38928
  );
38432
38929
  }
@@ -38541,7 +39038,7 @@ var TreeGridExColumnController = class {
38541
39038
  // src/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.ts
38542
39039
  import {
38543
39040
  DataTypes as DataTypes5,
38544
- RuntimeError as RuntimeError64,
39041
+ RuntimeError as RuntimeError65,
38545
39042
  RuntimeModelError as RuntimeModelError70
38546
39043
  } from "@ibiz-template/core";
38547
39044
  import { clone as clone34 } from "ramda";
@@ -38746,7 +39243,7 @@ var TreeGridExNodeColumnController = class {
38746
39243
  const valueItem = this.nodeColumn.linkValueItem || "srfkey";
38747
39244
  const value = row.data[valueItem];
38748
39245
  if (value == null) {
38749
- throw new RuntimeError64(
39246
+ throw new RuntimeError65(
38750
39247
  ibiz.i18n.t("runtime.controller.control.treeGridEx.noPickedUp", {
38751
39248
  valueItem
38752
39249
  })
@@ -39175,7 +39672,7 @@ var TreeGridService = class extends GridService {
39175
39672
  };
39176
39673
 
39177
39674
  // src/controller/control/medit-view-panel/medit-view-panel.controller.ts
39178
- import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
39675
+ import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
39179
39676
  import { createUUID as createUUID14 } from "qx-util";
39180
39677
 
39181
39678
  // src/controller/control/medit-view-panel/medit-view-panel.service.ts
@@ -39395,7 +39892,7 @@ var MEditViewPanelController = class extends MDControlController {
39395
39892
  (item) => item.id === id
39396
39893
  );
39397
39894
  if (panelUiItemIndex < 0) {
39398
- throw new RuntimeError65(
39895
+ throw new RuntimeError66(
39399
39896
  ibiz.i18n.t("runtime.controller.control.meditViewPanel.dataExist")
39400
39897
  );
39401
39898
  }
@@ -39735,7 +40232,7 @@ var User2ReportPanelGenerator = class extends ReportPanelBaseGenerator {
39735
40232
  };
39736
40233
 
39737
40234
  // src/controller/control/report-panel/generator/bi-generator.ts
39738
- import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
40235
+ import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
39739
40236
  var BIReportPanelGenerator = class extends ReportPanelBaseGenerator {
39740
40237
  /**
39741
40238
  * 设置配置
@@ -39747,7 +40244,7 @@ var BIReportPanelGenerator = class extends ReportPanelBaseGenerator {
39747
40244
  setConfig() {
39748
40245
  var _a;
39749
40246
  if (!((_a = this.model.appDEReport) == null ? void 0 : _a.reportUIModel)) {
39750
- throw new RuntimeError66(
40247
+ throw new RuntimeError67(
39751
40248
  ibiz.i18n.t("runtime.controller.control.reportPanel.noReportUIModel")
39752
40249
  );
39753
40250
  }
@@ -40019,7 +40516,7 @@ var ReportPanelController = class extends ControlController {
40019
40516
  // src/controller/control/gantt/gantt.controller.ts
40020
40517
  import {
40021
40518
  awaitTimeout as awaitTimeout4,
40022
- RuntimeError as RuntimeError67,
40519
+ RuntimeError as RuntimeError68,
40023
40520
  RuntimeModelError as RuntimeModelError72
40024
40521
  } from "@ibiz-template/core";
40025
40522
 
@@ -40565,13 +41062,13 @@ var GanttController = class extends TreeGridExController {
40565
41062
  */
40566
41063
  async modifyNodeTime(nodeData, { begin, end }) {
40567
41064
  if (nodeData._nodeType !== "DE") {
40568
- throw new RuntimeError67(
41065
+ throw new RuntimeError68(
40569
41066
  ibiz.i18n.t("runtime.controller.control.gantt.noNode")
40570
41067
  );
40571
41068
  }
40572
41069
  const rowState = this.getRowState(nodeData._id);
40573
41070
  if (!rowState) {
40574
- throw new RuntimeError67(
41071
+ throw new RuntimeError68(
40575
41072
  ibiz.i18n.t("runtime.controller.common.md.rowData")
40576
41073
  );
40577
41074
  }
@@ -40593,13 +41090,13 @@ var GanttController = class extends TreeGridExController {
40593
41090
  return;
40594
41091
  }
40595
41092
  if (nodeData._nodeType !== "DE") {
40596
- throw new RuntimeError67(
41093
+ throw new RuntimeError68(
40597
41094
  ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
40598
41095
  );
40599
41096
  }
40600
41097
  const rowState = this.state.rows[nodeData._uuid];
40601
41098
  if (!rowState) {
40602
- throw new RuntimeError67(
41099
+ throw new RuntimeError68(
40603
41100
  ibiz.i18n.t("runtime.controller.common.md.rowData")
40604
41101
  );
40605
41102
  }
@@ -40649,7 +41146,7 @@ var GanttController = class extends TreeGridExController {
40649
41146
  async remove(args) {
40650
41147
  const { context, params, data } = this.handlerAbilityParams(args);
40651
41148
  if (!(data == null ? void 0 : data.length)) {
40652
- throw new RuntimeError67(
41149
+ throw new RuntimeError68(
40653
41150
  ibiz.i18n.t("runtime.controller.common.control.uncheckedData")
40654
41151
  );
40655
41152
  }
@@ -40772,7 +41269,7 @@ var GanttController = class extends TreeGridExController {
40772
41269
  (item) => item.showRowEdit
40773
41270
  );
40774
41271
  if (editingRow) {
40775
- throw new RuntimeError67(
41272
+ throw new RuntimeError68(
40776
41273
  ibiz.i18n.t("runtime.controller.common.md.firstComplete")
40777
41274
  );
40778
41275
  }
@@ -41311,7 +41808,11 @@ var InternalMessageController = class {
41311
41808
  find.status = "READ";
41312
41809
  this.unreadCount -= 1;
41313
41810
  this.evt.emit("unreadCountChange", this.unreadCount);
41314
- this.evt.emit("dataChange");
41811
+ if (this.unreadOnly) {
41812
+ this.load();
41813
+ } else {
41814
+ this.evt.emit("dataChange");
41815
+ }
41315
41816
  }
41316
41817
  /**
41317
41818
  * 把所有未读消息标记为已读
@@ -41631,7 +42132,7 @@ var AppHub = class {
41631
42132
  this.registerAppView(appView);
41632
42133
  return appView;
41633
42134
  }
41634
- throw new RuntimeError68(ibiz.i18n.t("runtime.hub.noExist", { id }));
42135
+ throw new RuntimeError69(ibiz.i18n.t("runtime.hub.noExist", { id }));
41635
42136
  }
41636
42137
  /**
41637
42138
  * 根据DrControl的名称和子应用标识获取模型
@@ -41670,7 +42171,7 @@ var AppHub = class {
41670
42171
  );
41671
42172
  return model;
41672
42173
  }
41673
- throw new RuntimeError68(
42174
+ throw new RuntimeError69(
41674
42175
  ibiz.i18n.t("runtime.hub.noExist", { id: modelPath })
41675
42176
  );
41676
42177
  }
@@ -41710,7 +42211,7 @@ var AppHub = class {
41710
42211
  this.registerAppDataEntity(entity, appId2);
41711
42212
  return entity;
41712
42213
  }
41713
- throw new RuntimeError68(ibiz.i18n.t("runtime.service.noFound", { id }));
42214
+ throw new RuntimeError69(ibiz.i18n.t("runtime.service.noFound", { id }));
41714
42215
  }
41715
42216
  /**
41716
42217
  * 新建 hub 应用
@@ -41725,10 +42226,11 @@ var AppHub = class {
41725
42226
  return this.appMap.get(id);
41726
42227
  }
41727
42228
  if (!this.modelLoaderProvider) {
41728
- throw new RuntimeError68(ibiz.i18n.t("runtime.utils.firstregister"));
42229
+ throw new RuntimeError69(ibiz.i18n.t("runtime.utils.firstregister"));
41729
42230
  }
41730
42231
  const appModel = await this.modelLoaderProvider.getApp(id);
41731
- const app = new Application(appModel);
42232
+ const subAppRef = await this.modelLoaderProvider.getSubAppRef(id);
42233
+ const app = new Application(appModel, subAppRef);
41732
42234
  this.appMap.set(id, app);
41733
42235
  await this.modelLoaderProvider.initApp(id);
41734
42236
  await app.init();
@@ -41871,7 +42373,7 @@ var EngineFactory = class {
41871
42373
 
41872
42374
  // src/engine/view-base.engine.ts
41873
42375
  import {
41874
- RuntimeError as RuntimeError69,
42376
+ RuntimeError as RuntimeError70,
41875
42377
  findRecursiveChild as findRecursiveChild3,
41876
42378
  IBizContext as IBizContext7
41877
42379
  } from "@ibiz-template/core";
@@ -42256,7 +42758,7 @@ var ViewEngineBase = class {
42256
42758
  const { appDataEntityId } = this.view.model;
42257
42759
  const { evt, context, params } = this.view;
42258
42760
  if (!appDataEntityId) {
42259
- throw new RuntimeError69(ibiz.i18n.t("runtime.engine.loadEntityData"));
42761
+ throw new RuntimeError70(ibiz.i18n.t("runtime.engine.loadEntityData"));
42260
42762
  }
42261
42763
  const app = ibiz.hub.getApp(context.srfappid);
42262
42764
  const res = await app.deService.exec(
@@ -42738,7 +43240,7 @@ var MDViewEngine = class extends ViewEngineBase {
42738
43240
  };
42739
43241
 
42740
43242
  // src/global/global-util/global-util.ts
42741
- import { RuntimeError as RuntimeError70 } from "@ibiz-template/core";
43243
+ import { RuntimeError as RuntimeError71 } from "@ibiz-template/core";
42742
43244
  var sourceTitle = document.title;
42743
43245
  var GlobalUtil = class {
42744
43246
  constructor() {
@@ -42879,7 +43381,7 @@ var GlobalUtil = class {
42879
43381
  * @return {*} {IParams}
42880
43382
  */
42881
43383
  getGlobalParam() {
42882
- throw new RuntimeError70(ibiz.i18n.t("runtime.global.noImplemented"));
43384
+ throw new RuntimeError71(ibiz.i18n.t("runtime.global.noImplemented"));
42883
43385
  }
42884
43386
  /**
42885
43387
  * 获取视图路由参数变量,数组类型,基于路由解析出来的,每一个对象里面都有context和params
@@ -42888,12 +43390,12 @@ var GlobalUtil = class {
42888
43390
  * @return {*} {IParams}
42889
43391
  */
42890
43392
  getRouterParams() {
42891
- throw new RuntimeError70(ibiz.i18n.t("runtime.global.noImplementedRouting"));
43393
+ throw new RuntimeError71(ibiz.i18n.t("runtime.global.noImplementedRouting"));
42892
43394
  }
42893
43395
  };
42894
43396
 
42895
43397
  // src/logic-scheduler/executor/logic-executor.ts
42896
- import { RuntimeError as RuntimeError71 } from "@ibiz-template/core";
43398
+ import { RuntimeError as RuntimeError72 } from "@ibiz-template/core";
42897
43399
  var LogicExecutor = class {
42898
43400
  /**
42899
43401
  * @author lxm
@@ -42914,7 +43416,7 @@ var LogicExecutor = class {
42914
43416
  */
42915
43417
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
42916
43418
  execute(_executeParams) {
42917
- throw new RuntimeError71(
43419
+ throw new RuntimeError72(
42918
43420
  ibiz.i18n.t("runtime.logicScheduler.executor.noImplementedMethod")
42919
43421
  );
42920
43422
  }
@@ -43366,7 +43868,7 @@ var LogicSchedulerCenter = class {
43366
43868
  };
43367
43869
 
43368
43870
  // src/logic-scheduler/trigger/logic-trigger.ts
43369
- import { RuntimeError as RuntimeError72 } from "@ibiz-template/core";
43871
+ import { RuntimeError as RuntimeError73 } from "@ibiz-template/core";
43370
43872
  var LogicTrigger = class {
43371
43873
  /**
43372
43874
  * @author lxm
@@ -43426,7 +43928,7 @@ var LogicTrigger = class {
43426
43928
  if (this.executor) {
43427
43929
  return this.executor.execute(executeParams);
43428
43930
  }
43429
- throw new RuntimeError72(
43931
+ throw new RuntimeError73(
43430
43932
  ibiz.i18n.t("runtime.logicScheduler.trigger.noExecutorBound", {
43431
43933
  id: this.logic.id
43432
43934
  })
@@ -43447,12 +43949,12 @@ var CustomTrigger = class extends LogicTrigger {
43447
43949
  };
43448
43950
 
43449
43951
  // src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
43450
- import { RuntimeError as RuntimeError73 } from "@ibiz-template/core";
43952
+ import { RuntimeError as RuntimeError74 } from "@ibiz-template/core";
43451
43953
  var ItemDynaLogicTrigger = class extends LogicTrigger {
43452
43954
  bindExecutor(executor) {
43453
43955
  super.bindExecutor(executor);
43454
43956
  if (this.executor.type !== "SCRIPT") {
43455
- throw new RuntimeError73(
43957
+ throw new RuntimeError74(
43456
43958
  ibiz.i18n.t("runtime.logicScheduler.trigger.triggerType")
43457
43959
  );
43458
43960
  }
@@ -43489,7 +43991,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
43489
43991
  };
43490
43992
 
43491
43993
  // src/logic-scheduler/trigger/timer-trigger.ts
43492
- import { RuntimeError as RuntimeError74, RuntimeModelError as RuntimeModelError75 } from "@ibiz-template/core";
43994
+ import { RuntimeError as RuntimeError75, RuntimeModelError as RuntimeModelError75 } from "@ibiz-template/core";
43493
43995
  var TimerTrigger = class extends LogicTrigger {
43494
43996
  constructor() {
43495
43997
  super(...arguments);
@@ -43504,7 +44006,7 @@ var TimerTrigger = class extends LogicTrigger {
43504
44006
  }
43505
44007
  this.timer = setInterval(() => {
43506
44008
  if (!this.scheduler.defaultParamsCb) {
43507
- throw new RuntimeError74(
44009
+ throw new RuntimeError75(
43508
44010
  ibiz.i18n.t("runtime.logicScheduler.trigger.parameterCallback")
43509
44011
  );
43510
44012
  }
@@ -43523,7 +44025,7 @@ var TimerTrigger = class extends LogicTrigger {
43523
44025
  // src/logic-scheduler/executor/app-ui-logic-executor.ts
43524
44026
  import {
43525
44027
  ModelError as ModelError34,
43526
- RuntimeError as RuntimeError75,
44028
+ RuntimeError as RuntimeError76,
43527
44029
  RuntimeModelError as RuntimeModelError76
43528
44030
  } from "@ibiz-template/core";
43529
44031
  import { notNilEmpty as notNilEmpty11 } from "qx-util";
@@ -43561,7 +44063,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
43561
44063
  const { context, params, ...rest } = parameters;
43562
44064
  const { data } = parameters;
43563
44065
  if (!(data == null ? void 0 : data[0])) {
43564
- throw new RuntimeError75(
44066
+ throw new RuntimeError76(
43565
44067
  ibiz.i18n.t("runtime.logicScheduler.executor.noActionableData")
43566
44068
  );
43567
44069
  }
@@ -43630,7 +44132,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
43630
44132
  const openViewRefs = appUILogic.openDataAppViews;
43631
44133
  const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
43632
44134
  if (!findView) {
43633
- throw new RuntimeError75(
44135
+ throw new RuntimeError76(
43634
44136
  ibiz.i18n.t("runtime.logicScheduler.executor.editViews", {
43635
44137
  formTypeValue
43636
44138
  })
@@ -43763,7 +44265,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
43763
44265
  }
43764
44266
  const selectData = (_a = result.data) == null ? void 0 : _a[0];
43765
44267
  if (!selectData) {
43766
- throw new RuntimeError75(
44268
+ throw new RuntimeError76(
43767
44269
  ibiz.i18n.t("runtime.logicScheduler.executor.checkOne")
43768
44270
  );
43769
44271
  }
@@ -43775,7 +44277,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
43775
44277
  }
43776
44278
  );
43777
44279
  if (!findView) {
43778
- throw new RuntimeError75(
44280
+ throw new RuntimeError76(
43779
44281
  ibiz.i18n.t("runtime.logicScheduler.executor.entitiesAssociated", {
43780
44282
  indexType
43781
44283
  })
@@ -43817,7 +44319,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
43817
44319
  }
43818
44320
  });
43819
44321
  if (pickParentFieldName === void 0) {
43820
- throw new RuntimeError75(
44322
+ throw new RuntimeError76(
43821
44323
  ibiz.i18n.t("runtime.logicScheduler.executor.foreignKey", {
43822
44324
  pickParentDeName
43823
44325
  })
@@ -44165,7 +44667,10 @@ var en = {
44165
44667
  noSupportSequence: "Charts do not support sequence types at this time {seriesType}",
44166
44668
  noFindSequence: "Cannot find generator for {seriesIndex} sequence!",
44167
44669
  noInitialised: "The chart object is not properly initialised",
44168
- noCalculated: "Options have not been calculated."
44670
+ noCalculated: "Options have not been calculated.",
44671
+ classificationNotArray: "The configured classification attribute value is not an array",
44672
+ classificationNotString: "The configured classification attribute value is not an string",
44673
+ errorJson: "JSON parsing error"
44169
44674
  },
44170
44675
  dataView: {
44171
44676
  noBehaviourGroup: "No interface behaviour group is configured for the action",
@@ -44747,7 +45252,10 @@ var zhCn = {
44747
45252
  noSupportSequence: "\u56FE\u8868\u6682\u672A\u652F\u6301\u5E8F\u5217\u7C7B\u578B{seriesType}",
44748
45253
  noFindSequence: "\u627E\u4E0D\u5230{seriesIndex}\u5E8F\u5217\u7684generator\uFF01",
44749
45254
  noInitialised: "chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316",
44750
- noCalculated: "options\u8FD8\u6CA1\u8BA1\u7B97"
45255
+ noCalculated: "options\u8FD8\u6CA1\u8BA1\u7B97",
45256
+ classificationNotArray: "\u914D\u7F6E\u7684\u5206\u7C7B\u5C5E\u6027\u503C\u4E0D\u662F\u4E00\u4E2A\u6570\u7EC4",
45257
+ classificationNotString: "\u914D\u7F6E\u7684\u5206\u7C7B\u5C5E\u6027\u503C\u4E0D\u662F\u4E00\u4E2A\u5B57\u7B26\u4E32",
45258
+ errorJson: "JSON\u89E3\u6790\u9519\u8BEF"
44751
45259
  },
44752
45260
  dataView: {
44753
45261
  noBehaviourGroup: "\u64CD\u4F5C\u9879\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4",