@ibiz-template/runtime 0.7.26-alpha.1 → 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.
- package/dist/index.esm.js +484 -222
- package/dist/index.system.min.js +1 -1
- package/out/controller/common/control/md-control.controller.js +2 -1
- package/out/controller/control/calendar/calendar.controller.d.ts +15 -0
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +85 -16
- package/out/controller/control/calendar/calendar.service.d.ts +10 -0
- package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.service.js +21 -1
- package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/base-series-generator.js +3 -1
- package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/chart-options-generator.js +199 -80
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts +14 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +29 -1
- package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
- package/out/controller/notification/internal-message.controller.js +7 -1
- package/out/interface/controller/state/control/i-calendar.state.d.ts +21 -0
- package/out/interface/controller/state/control/i-calendar.state.d.ts.map +1 -1
- package/out/interface/service/i-data-entity/i-data-entity.d.ts +7 -0
- package/out/interface/service/i-data-entity/i-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.d.ts +1 -0
- package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.js +2 -0
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts +15 -0
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +17 -2
- package/out/utils/script/script-factory.d.ts +12 -0
- package/out/utils/script/script-factory.d.ts.map +1 -1
- package/out/utils/script/script-factory.js +16 -1
- package/package.json +2 -2
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
|
|
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";
|
|
@@ -19469,10 +19489,11 @@ var MDControlController = class extends ControlController {
|
|
|
19469
19489
|
* @return {*} {void}
|
|
19470
19490
|
*/
|
|
19471
19491
|
onDEDataChange(msg) {
|
|
19492
|
+
var _a;
|
|
19472
19493
|
if (!isNil24(msg.triggerKey) && msg.triggerKey === this.triggerKey) {
|
|
19473
19494
|
return;
|
|
19474
19495
|
}
|
|
19475
|
-
if (!msg.data || msg.data.srfdecodename !== this.dataEntity.codeName) {
|
|
19496
|
+
if (!msg.data || msg.data.srfdecodename !== ((_a = this.dataEntity) == null ? void 0 : _a.codeName)) {
|
|
19476
19497
|
return;
|
|
19477
19498
|
}
|
|
19478
19499
|
let isRefresh = false;
|
|
@@ -19937,7 +19958,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
19937
19958
|
|
|
19938
19959
|
// src/controller/control/calendar/calendar.controller.ts
|
|
19939
19960
|
import dayjs3 from "dayjs";
|
|
19940
|
-
import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
19961
|
+
import { RuntimeError as RuntimeError40, RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
19941
19962
|
|
|
19942
19963
|
// src/controller/control/calendar/calendar.service.ts
|
|
19943
19964
|
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
@@ -19962,7 +19983,7 @@ var CalendarService = class extends MDControlService {
|
|
|
19962
19983
|
async (item) => {
|
|
19963
19984
|
const fetchAction = item.appDEDataSetId || "fetchdefault";
|
|
19964
19985
|
const tempContext = context.clone();
|
|
19965
|
-
const tempParams =
|
|
19986
|
+
const tempParams = this.handleRequestParams(item, params);
|
|
19966
19987
|
if (item.maxSize) {
|
|
19967
19988
|
tempParams.size = item.maxSize;
|
|
19968
19989
|
}
|
|
@@ -20033,6 +20054,26 @@ var CalendarService = class extends MDControlService {
|
|
|
20033
20054
|
);
|
|
20034
20055
|
return res;
|
|
20035
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
|
+
}
|
|
20036
20077
|
};
|
|
20037
20078
|
|
|
20038
20079
|
// src/controller/control/calendar/calendar.controller.ts
|
|
@@ -20046,9 +20087,13 @@ var CalendarController = class extends MDControlController {
|
|
|
20046
20087
|
* @memberof CalendarController
|
|
20047
20088
|
*/
|
|
20048
20089
|
initState() {
|
|
20090
|
+
var _a, _b;
|
|
20049
20091
|
super.initState();
|
|
20050
20092
|
this.state.selectedDate = /* @__PURE__ */ new Date();
|
|
20051
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;
|
|
20052
20097
|
}
|
|
20053
20098
|
/**
|
|
20054
20099
|
* 生命周期-创建完成
|
|
@@ -20064,6 +20109,30 @@ var CalendarController = class extends MDControlController {
|
|
|
20064
20109
|
this.service = new CalendarService(this.model);
|
|
20065
20110
|
await this.service.init(this.context);
|
|
20066
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
|
+
});
|
|
20067
20136
|
}
|
|
20068
20137
|
/**
|
|
20069
20138
|
* 初始化视图触发器
|
|
@@ -20072,7 +20141,7 @@ var CalendarController = class extends MDControlController {
|
|
|
20072
20141
|
* @memberof CalendarService
|
|
20073
20142
|
*/
|
|
20074
20143
|
initViewScheduler() {
|
|
20075
|
-
const viewLogics = this.model
|
|
20144
|
+
const viewLogics = getViewLogics(this.model);
|
|
20076
20145
|
if (viewLogics.length !== 0) {
|
|
20077
20146
|
this.viewScheduler = ibiz.scheduler.createViewScheduler(viewLogics);
|
|
20078
20147
|
this.viewScheduler.defaultParamsCb = () => {
|
|
@@ -20085,6 +20154,19 @@ var CalendarController = class extends MDControlController {
|
|
|
20085
20154
|
}
|
|
20086
20155
|
}
|
|
20087
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
|
+
}
|
|
20088
20170
|
/**
|
|
20089
20171
|
* 设置激活数据
|
|
20090
20172
|
*
|
|
@@ -20093,10 +20175,13 @@ var CalendarController = class extends MDControlController {
|
|
|
20093
20175
|
* @memberof CalendarService
|
|
20094
20176
|
*/
|
|
20095
20177
|
async setActive(item) {
|
|
20096
|
-
this.
|
|
20097
|
-
|
|
20098
|
-
data: [item]
|
|
20178
|
+
this._evt.emit("onActive", {
|
|
20179
|
+
data: item ? [item] : []
|
|
20099
20180
|
});
|
|
20181
|
+
if (!item) {
|
|
20182
|
+
return;
|
|
20183
|
+
}
|
|
20184
|
+
await this.openData(item);
|
|
20100
20185
|
}
|
|
20101
20186
|
/**
|
|
20102
20187
|
* 打开编辑数据视图
|
|
@@ -20105,11 +20190,11 @@ var CalendarController = class extends MDControlController {
|
|
|
20105
20190
|
* @memberof CalendarService
|
|
20106
20191
|
*/
|
|
20107
20192
|
async openData(item) {
|
|
20108
|
-
var _a, _b;
|
|
20193
|
+
var _a, _b, _c;
|
|
20109
20194
|
const context = this.context.clone();
|
|
20110
|
-
const deName = ((_a = item.deData.srfdecodename) == null ? void 0 :
|
|
20195
|
+
const deName = ((_b = (_a = item.deData) == null ? void 0 : _a.srfdecodename) == null ? void 0 : _b.toLowerCase()) || calcDeCodeNameById(this.model.appDataEntityId);
|
|
20111
20196
|
context[deName.toLowerCase()] = item.deData.srfkey;
|
|
20112
|
-
const result = await ((
|
|
20197
|
+
const result = await ((_c = this.viewScheduler) == null ? void 0 : _c.triggerCustom(
|
|
20113
20198
|
"".concat(item.itemType.toLowerCase(), "_opendata"),
|
|
20114
20199
|
{
|
|
20115
20200
|
context,
|
|
@@ -20216,21 +20301,61 @@ var CalendarController = class extends MDControlController {
|
|
|
20216
20301
|
*/
|
|
20217
20302
|
getCurSelectDate(param) {
|
|
20218
20303
|
const { selectedDate } = this.state;
|
|
20219
|
-
const {
|
|
20304
|
+
const { calendarStyle } = this.model;
|
|
20305
|
+
let { srfstartdate, srfenddate } = param;
|
|
20220
20306
|
if (!srfstartdate || !srfenddate) {
|
|
20221
|
-
|
|
20222
|
-
|
|
20223
|
-
|
|
20224
|
-
|
|
20225
|
-
|
|
20226
|
-
|
|
20227
|
-
|
|
20228
|
-
|
|
20229
|
-
|
|
20230
|
-
|
|
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
|
+
}
|
|
20231
20356
|
return {
|
|
20232
|
-
srfstartdate: dayjs3(
|
|
20233
|
-
srfenddate: dayjs3(
|
|
20357
|
+
srfstartdate: dayjs3(srfstartdate).format("YYYY-MM-DD HH:mm:ss"),
|
|
20358
|
+
srfenddate: dayjs3(srfenddate).format("YYYY-MM-DD HH:mm:ss")
|
|
20234
20359
|
};
|
|
20235
20360
|
}
|
|
20236
20361
|
return { srfstartdate, srfenddate };
|
|
@@ -20279,6 +20404,10 @@ var CalendarController = class extends MDControlController {
|
|
|
20279
20404
|
* @memberof CalendarController
|
|
20280
20405
|
*/
|
|
20281
20406
|
async onRowClick(data) {
|
|
20407
|
+
if (!data) {
|
|
20408
|
+
this.setSelection([]);
|
|
20409
|
+
return;
|
|
20410
|
+
}
|
|
20282
20411
|
const { selectedData } = this.state;
|
|
20283
20412
|
const filterArr = selectedData.filter(
|
|
20284
20413
|
(item) => item.deData.srfkey !== data.deData.srfkey
|
|
@@ -20308,12 +20437,12 @@ var CalendarController = class extends MDControlController {
|
|
|
20308
20437
|
};
|
|
20309
20438
|
|
|
20310
20439
|
// src/controller/control/chart/chart.controller.ts
|
|
20311
|
-
import { RuntimeError as
|
|
20440
|
+
import { RuntimeError as RuntimeError42 } from "@ibiz-template/core";
|
|
20312
20441
|
|
|
20313
20442
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
20314
20443
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
20315
20444
|
import { isObject as isObject2, isString as isString2 } from "qx-util";
|
|
20316
|
-
import { RuntimeError as
|
|
20445
|
+
import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
|
|
20317
20446
|
|
|
20318
20447
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
20319
20448
|
import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
|
|
@@ -20637,10 +20766,9 @@ var BaseSeriesGenerator = class {
|
|
|
20637
20766
|
} else {
|
|
20638
20767
|
this.prepareChartData(
|
|
20639
20768
|
groupData,
|
|
20640
|
-
{
|
|
20641
|
-
...item,
|
|
20769
|
+
Object.assign(item, {
|
|
20642
20770
|
[this.valueField]: groupData[group].get(catalog).value
|
|
20643
|
-
},
|
|
20771
|
+
}),
|
|
20644
20772
|
catalog,
|
|
20645
20773
|
group
|
|
20646
20774
|
);
|
|
@@ -21377,7 +21505,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
21377
21505
|
* @memberof ChartOptionsGenerator
|
|
21378
21506
|
*/
|
|
21379
21507
|
async initMultiCatalogxAxis(context, params) {
|
|
21380
|
-
var _a, _b, _c, _d, _e;
|
|
21508
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
21381
21509
|
const { controlParam } = this.model;
|
|
21382
21510
|
if (controlParam && ((_a = controlParam.ctrlParams) == null ? void 0 : _a.CATALOGFIELDS)) {
|
|
21383
21511
|
try {
|
|
@@ -21386,18 +21514,27 @@ var ChartOptionsGenerator2 = class {
|
|
|
21386
21514
|
);
|
|
21387
21515
|
const tempaxis = [];
|
|
21388
21516
|
let titleshow = true;
|
|
21389
|
-
let
|
|
21517
|
+
let labelshow = true;
|
|
21390
21518
|
let gridIndex = 0;
|
|
21391
21519
|
if (Array.isArray(tempCatalogFields)) {
|
|
21392
21520
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
21393
21521
|
if (this.chartUserParam && this.chartUserParam.xAxis) {
|
|
21394
|
-
if (
|
|
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)) {
|
|
21395
21532
|
const tempconfig = this.chartUserParam.xAxis[this.chartUserParam.xAxis.length - 1];
|
|
21396
21533
|
titleshow = tempconfig.name === void 0 ? true : !!tempconfig.name;
|
|
21397
|
-
|
|
21534
|
+
labelshow = ((_i = tempconfig.axisLabel) == null ? void 0 : _i.show) === void 0 ? true : (_j = tempconfig.axisLabel) == null ? void 0 : _j.show;
|
|
21398
21535
|
} else {
|
|
21399
21536
|
titleshow = this.chartUserParam.xAxis.name === void 0 ? true : !!this.chartUserParam.xAxis.name;
|
|
21400
|
-
|
|
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;
|
|
21401
21538
|
}
|
|
21402
21539
|
}
|
|
21403
21540
|
if (this.chartUserParam && this.chartUserParam.grid && Array.isArray(this.chartUserParam.grid)) {
|
|
@@ -21405,6 +21542,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
21405
21542
|
}
|
|
21406
21543
|
await Promise.all(
|
|
21407
21544
|
tempCatalogFields.slice(0, -1).map(async (catalog, index) => {
|
|
21545
|
+
var _a2;
|
|
21408
21546
|
if (catalog.mode === "codelist" && catalog.codelistId) {
|
|
21409
21547
|
const codeListItems = await app.codeList.get(
|
|
21410
21548
|
catalog.codelistId,
|
|
@@ -21413,37 +21551,77 @@ var ChartOptionsGenerator2 = class {
|
|
|
21413
21551
|
);
|
|
21414
21552
|
if (codeListItems) {
|
|
21415
21553
|
const tempxAxisData = [];
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
data: xAxisData,
|
|
21430
|
-
position: "bottom"
|
|
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
|
+
};
|
|
21431
21567
|
});
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
|
|
21438
|
-
|
|
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
|
+
});
|
|
21439
21591
|
}
|
|
21440
|
-
|
|
21441
|
-
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
|
|
21445
|
-
|
|
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
|
+
};
|
|
21446
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
|
+
}
|
|
21447
21625
|
}
|
|
21448
21626
|
}
|
|
21449
21627
|
}
|
|
@@ -21451,51 +21629,100 @@ var ChartOptionsGenerator2 = class {
|
|
|
21451
21629
|
);
|
|
21452
21630
|
const mergeName = tempCatalogFields.map((catalog) => {
|
|
21453
21631
|
return catalog.name;
|
|
21454
|
-
}).join("/");
|
|
21455
|
-
|
|
21456
|
-
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
|
|
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
|
+
}
|
|
21464
21644
|
}
|
|
21465
|
-
|
|
21466
|
-
|
|
21467
|
-
|
|
21468
|
-
}
|
|
21645
|
+
],
|
|
21646
|
+
position: "bottom"
|
|
21647
|
+
});
|
|
21648
|
+
}
|
|
21469
21649
|
if (this.chartUserParam) {
|
|
21470
|
-
if (
|
|
21471
|
-
this.chartUserParam.
|
|
21472
|
-
|
|
21473
|
-
|
|
21474
|
-
|
|
21475
|
-
|
|
21476
|
-
|
|
21477
|
-
|
|
21478
|
-
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
|
|
21482
|
-
|
|
21483
|
-
|
|
21484
|
-
|
|
21485
|
-
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
|
|
21489
|
-
|
|
21490
|
-
|
|
21491
|
-
|
|
21492
|
-
|
|
21493
|
-
|
|
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"
|
|
21494
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
|
+
}
|
|
21495
21695
|
} else {
|
|
21496
|
-
|
|
21497
|
-
|
|
21498
|
-
|
|
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
|
+
}
|
|
21499
21726
|
}
|
|
21500
21727
|
}
|
|
21501
21728
|
}
|
|
@@ -21645,7 +21872,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
21645
21872
|
getChartDataByParams(params) {
|
|
21646
21873
|
const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
|
|
21647
21874
|
if (!generator) {
|
|
21648
|
-
throw new
|
|
21875
|
+
throw new RuntimeError41(
|
|
21649
21876
|
ibiz.i18n.t("runtime.controller.control.chart.noFindSequence", {
|
|
21650
21877
|
seriesIndex: params.seriesIndex
|
|
21651
21878
|
})
|
|
@@ -21929,12 +22156,12 @@ var ChartController = class extends MDControlController {
|
|
|
21929
22156
|
*/
|
|
21930
22157
|
updateChart() {
|
|
21931
22158
|
if (!this.chart) {
|
|
21932
|
-
throw new
|
|
22159
|
+
throw new RuntimeError42(
|
|
21933
22160
|
ibiz.i18n.t("runtime.controller.control.chart.noInitialised")
|
|
21934
22161
|
);
|
|
21935
22162
|
}
|
|
21936
22163
|
if (!this.options) {
|
|
21937
|
-
throw new
|
|
22164
|
+
throw new RuntimeError42(
|
|
21938
22165
|
ibiz.i18n.t("runtime.controller.control.chart.noCalculated")
|
|
21939
22166
|
);
|
|
21940
22167
|
}
|
|
@@ -21986,7 +22213,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
21986
22213
|
};
|
|
21987
22214
|
|
|
21988
22215
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
21989
|
-
import { recursiveIterate as recursiveIterate2, RuntimeError as
|
|
22216
|
+
import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError51 } from "@ibiz-template/core";
|
|
21990
22217
|
|
|
21991
22218
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
21992
22219
|
import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
|
|
@@ -21996,7 +22223,7 @@ import { isArray as isArray8 } from "qx-util";
|
|
|
21996
22223
|
import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
21997
22224
|
|
|
21998
22225
|
// src/ui-logic/index.ts
|
|
21999
|
-
import { RuntimeError as
|
|
22226
|
+
import { RuntimeError as RuntimeError48 } from "@ibiz-template/core";
|
|
22000
22227
|
|
|
22001
22228
|
// src/ui-logic/ui-logic.ts
|
|
22002
22229
|
import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
@@ -22652,7 +22879,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
22652
22879
|
};
|
|
22653
22880
|
|
|
22654
22881
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
22655
|
-
import { ModelError as ModelError22, RuntimeError as
|
|
22882
|
+
import { ModelError as ModelError22, RuntimeError as RuntimeError43 } from "@ibiz-template/core";
|
|
22656
22883
|
import { clone as clone23 } from "ramda";
|
|
22657
22884
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
22658
22885
|
async exec(ctx) {
|
|
@@ -22718,7 +22945,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
22718
22945
|
setParamValue(nodeParam, ctx) {
|
|
22719
22946
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
22720
22947
|
if (!dstDEUILogicParamId) {
|
|
22721
|
-
throw new
|
|
22948
|
+
throw new RuntimeError43(ibiz.i18n.t("runtime.uiLogic.noTargetParameter"));
|
|
22722
22949
|
}
|
|
22723
22950
|
let dstField = dstFieldName;
|
|
22724
22951
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -22835,7 +23062,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
22835
23062
|
};
|
|
22836
23063
|
|
|
22837
23064
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
22838
|
-
import { RuntimeError as
|
|
23065
|
+
import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
|
|
22839
23066
|
import { isFunction } from "lodash-es";
|
|
22840
23067
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
22841
23068
|
async exec(ctx) {
|
|
@@ -22861,7 +23088,7 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
22861
23088
|
}
|
|
22862
23089
|
const invokeParam = ctx.params[invokeParamId];
|
|
22863
23090
|
if (!invokeParam) {
|
|
22864
|
-
throw new
|
|
23091
|
+
throw new RuntimeError44(
|
|
22865
23092
|
ibiz.i18n.t("runtime.uiLogic.noFoundOperationParameter", {
|
|
22866
23093
|
invokeParamId
|
|
22867
23094
|
})
|
|
@@ -22869,14 +23096,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
22869
23096
|
}
|
|
22870
23097
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
22871
23098
|
if (!invokeCtrl) {
|
|
22872
|
-
throw new
|
|
23099
|
+
throw new RuntimeError44(
|
|
22873
23100
|
ibiz.i18n.t("runtime.uiLogic.noFoundInterfaceObject", {
|
|
22874
23101
|
invokeCtrlId
|
|
22875
23102
|
})
|
|
22876
23103
|
);
|
|
22877
23104
|
}
|
|
22878
23105
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
22879
|
-
throw new
|
|
23106
|
+
throw new RuntimeError44(
|
|
22880
23107
|
ibiz.i18n.t("runtime.uiLogic.noFoundInvokeMethod", {
|
|
22881
23108
|
invokeMethod
|
|
22882
23109
|
})
|
|
@@ -23216,7 +23443,7 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
23216
23443
|
};
|
|
23217
23444
|
|
|
23218
23445
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
23219
|
-
import { RuntimeError as
|
|
23446
|
+
import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
|
|
23220
23447
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
23221
23448
|
async exec(_ctx) {
|
|
23222
23449
|
const { errorInfo } = this.model;
|
|
@@ -23226,12 +23453,12 @@ var ThrowExceptionNode2 = class extends UILogicNode {
|
|
|
23226
23453
|
errorInfo
|
|
23227
23454
|
})
|
|
23228
23455
|
);
|
|
23229
|
-
throw new
|
|
23456
|
+
throw new RuntimeError45(errorInfo);
|
|
23230
23457
|
}
|
|
23231
23458
|
};
|
|
23232
23459
|
|
|
23233
23460
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
23234
|
-
import { RuntimeError as
|
|
23461
|
+
import { RuntimeError as RuntimeError46, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
23235
23462
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
23236
23463
|
async exec(ctx) {
|
|
23237
23464
|
ctx.isEndNode = true;
|
|
@@ -23256,13 +23483,13 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
23256
23483
|
}
|
|
23257
23484
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
23258
23485
|
if (!invokeCtrl) {
|
|
23259
|
-
throw new
|
|
23486
|
+
throw new RuntimeError46(
|
|
23260
23487
|
ibiz.i18n.t("runtime.uiLogic.noFoundTriggerObject", { fireCtrlId })
|
|
23261
23488
|
);
|
|
23262
23489
|
}
|
|
23263
23490
|
const eventParam = ctx.params[eventParamId];
|
|
23264
23491
|
if (!eventParam) {
|
|
23265
|
-
throw new
|
|
23492
|
+
throw new RuntimeError46(
|
|
23266
23493
|
ibiz.i18n.t("runtime.uiLogic.noFoundEventParameterObject", {
|
|
23267
23494
|
eventParamId
|
|
23268
23495
|
})
|
|
@@ -23284,7 +23511,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
23284
23511
|
};
|
|
23285
23512
|
|
|
23286
23513
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
23287
|
-
import { RuntimeError as
|
|
23514
|
+
import { RuntimeError as RuntimeError47, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
23288
23515
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
23289
23516
|
async exec(ctx) {
|
|
23290
23517
|
const {
|
|
@@ -23313,7 +23540,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
23313
23540
|
}
|
|
23314
23541
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
23315
23542
|
if (!dstParam) {
|
|
23316
|
-
throw new
|
|
23543
|
+
throw new RuntimeError47(
|
|
23317
23544
|
ibiz.i18n.t("runtime.uiLogic.passedParameter", { dstDEUILogicParamId })
|
|
23318
23545
|
);
|
|
23319
23546
|
}
|
|
@@ -23349,15 +23576,14 @@ var RawJSCodeNode = class extends UILogicNode {
|
|
|
23349
23576
|
}),
|
|
23350
23577
|
this.model.code
|
|
23351
23578
|
);
|
|
23352
|
-
ScriptFactory.
|
|
23579
|
+
await ScriptFactory.asyncExecScriptFn(
|
|
23353
23580
|
{
|
|
23354
23581
|
view: ctx.view,
|
|
23355
23582
|
context: ctx.context,
|
|
23356
23583
|
params: ctx.viewParam,
|
|
23357
23584
|
uiLogic: ctx.params
|
|
23358
23585
|
},
|
|
23359
|
-
this.model.code || ""
|
|
23360
|
-
{ isAsync: false }
|
|
23586
|
+
this.model.code || ""
|
|
23361
23587
|
);
|
|
23362
23588
|
}
|
|
23363
23589
|
};
|
|
@@ -23713,7 +23939,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
23713
23939
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
23714
23940
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
23715
23941
|
if (!deUILogic) {
|
|
23716
|
-
throw new
|
|
23942
|
+
throw new RuntimeError48(
|
|
23717
23943
|
ibiz.i18n.t("runtime.uiLogic.interfaceLogic", {
|
|
23718
23944
|
appDataEntityId,
|
|
23719
23945
|
deUILogicId
|
|
@@ -23741,7 +23967,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
23741
23967
|
}
|
|
23742
23968
|
|
|
23743
23969
|
// src/ui-action/uiaction-util.ts
|
|
23744
|
-
import { RuntimeError as
|
|
23970
|
+
import { RuntimeError as RuntimeError49 } from "@ibiz-template/core";
|
|
23745
23971
|
var UIActionUtil = class {
|
|
23746
23972
|
/**
|
|
23747
23973
|
* 执行界面行为
|
|
@@ -23756,7 +23982,7 @@ var UIActionUtil = class {
|
|
|
23756
23982
|
static async exec(actionId, params, appId2) {
|
|
23757
23983
|
const action = await getUIActionById(actionId, appId2);
|
|
23758
23984
|
if (!action) {
|
|
23759
|
-
throw new
|
|
23985
|
+
throw new RuntimeError49(
|
|
23760
23986
|
ibiz.i18n.t("runtime.uiAction.noFoundBehaviorModel", { actionId })
|
|
23761
23987
|
);
|
|
23762
23988
|
}
|
|
@@ -24264,7 +24490,7 @@ import {
|
|
|
24264
24490
|
StringUtil,
|
|
24265
24491
|
RuntimeModelError as RuntimeModelError53,
|
|
24266
24492
|
ModelError as ModelError26,
|
|
24267
|
-
RuntimeError as
|
|
24493
|
+
RuntimeError as RuntimeError50
|
|
24268
24494
|
} from "@ibiz-template/core";
|
|
24269
24495
|
import { mergeRight as mergeRight4 } from "ramda";
|
|
24270
24496
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
@@ -24390,7 +24616,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
24390
24616
|
if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
|
|
24391
24617
|
requestUrl += "/".concat(appDataEntity.deapicodeName2, "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
|
|
24392
24618
|
} else {
|
|
24393
|
-
throw new
|
|
24619
|
+
throw new RuntimeError50(ibiz.i18n.t("runtime.uiAction.dataPrimaryKey"));
|
|
24394
24620
|
}
|
|
24395
24621
|
const res = await ibiz.net.request(requestUrl, {
|
|
24396
24622
|
method: "get",
|
|
@@ -24416,10 +24642,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
24416
24642
|
window.open(link, "_blank");
|
|
24417
24643
|
}
|
|
24418
24644
|
} else {
|
|
24419
|
-
throw new
|
|
24645
|
+
throw new RuntimeError50(ibiz.i18n.t("runtime.uiAction.printFailure"));
|
|
24420
24646
|
}
|
|
24421
24647
|
} else {
|
|
24422
|
-
throw new
|
|
24648
|
+
throw new RuntimeError50(ibiz.i18n.t("runtime.uiAction.physicalPrint"));
|
|
24423
24649
|
}
|
|
24424
24650
|
}
|
|
24425
24651
|
/**
|
|
@@ -24504,12 +24730,12 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
24504
24730
|
URL.revokeObjectURL(elink.href);
|
|
24505
24731
|
document.body.removeChild(elink);
|
|
24506
24732
|
} else {
|
|
24507
|
-
throw new
|
|
24733
|
+
throw new RuntimeError50(
|
|
24508
24734
|
ibiz.i18n.t("runtime.uiAction.exportRequestFailed")
|
|
24509
24735
|
);
|
|
24510
24736
|
}
|
|
24511
24737
|
} else {
|
|
24512
|
-
throw new
|
|
24738
|
+
throw new RuntimeError50(
|
|
24513
24739
|
ibiz.i18n.t("runtime.uiAction.noEntityExportsFound")
|
|
24514
24740
|
);
|
|
24515
24741
|
}
|
|
@@ -24527,7 +24753,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
24527
24753
|
const actionResult = {};
|
|
24528
24754
|
const { context, params, data, event } = args;
|
|
24529
24755
|
if (!event) {
|
|
24530
|
-
throw new
|
|
24756
|
+
throw new RuntimeError50(ibiz.i18n.t("runtime.uiAction.lackNativeEvent"));
|
|
24531
24757
|
}
|
|
24532
24758
|
const { resultContext, resultParams } = await this.handleParams(
|
|
24533
24759
|
action,
|
|
@@ -24666,7 +24892,7 @@ var ToolbarController = class extends ControlController {
|
|
|
24666
24892
|
const actionId = item.uiactionId;
|
|
24667
24893
|
const uiAction = await getUIActionById(actionId, item.appId);
|
|
24668
24894
|
if (!uiAction) {
|
|
24669
|
-
throw new
|
|
24895
|
+
throw new RuntimeError51(
|
|
24670
24896
|
ibiz.i18n.t("runtime.controller.control.toolbar.noFound", {
|
|
24671
24897
|
actionId
|
|
24672
24898
|
})
|
|
@@ -26107,7 +26333,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
26107
26333
|
import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
|
|
26108
26334
|
|
|
26109
26335
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
26110
|
-
import { RuntimeError as
|
|
26336
|
+
import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
|
|
26111
26337
|
var ExpBarControlController = class extends ControlController {
|
|
26112
26338
|
constructor() {
|
|
26113
26339
|
super(...arguments);
|
|
@@ -26440,7 +26666,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
26440
26666
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
26441
26667
|
return this.XDataModel.navAppViewId;
|
|
26442
26668
|
}
|
|
26443
|
-
throw new
|
|
26669
|
+
throw new RuntimeError52(
|
|
26444
26670
|
ibiz.i18n.t("runtime.controller.control.expBar.multiNode")
|
|
26445
26671
|
);
|
|
26446
26672
|
}
|
|
@@ -26587,7 +26813,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
26587
26813
|
};
|
|
26588
26814
|
|
|
26589
26815
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
26590
|
-
import { RuntimeError as
|
|
26816
|
+
import { RuntimeError as RuntimeError53, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
|
|
26591
26817
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
26592
26818
|
constructor() {
|
|
26593
26819
|
super(...arguments);
|
|
@@ -26678,7 +26904,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
26678
26904
|
const deData = node._deData || node;
|
|
26679
26905
|
const nodeModel = this.getNodeModel(node._nodeId);
|
|
26680
26906
|
if (!nodeModel) {
|
|
26681
|
-
throw new
|
|
26907
|
+
throw new RuntimeError53(
|
|
26682
26908
|
ibiz.i18n.t("runtime.controller.control.expBar.noFindNodeModel", {
|
|
26683
26909
|
nodeId: node._nodeId
|
|
26684
26910
|
})
|
|
@@ -26873,7 +27099,7 @@ var ChartExpBarController = class extends ExpBarControlController {
|
|
|
26873
27099
|
};
|
|
26874
27100
|
|
|
26875
27101
|
// src/controller/control/form/search-form/search-form.controller.ts
|
|
26876
|
-
import { RuntimeError as
|
|
27102
|
+
import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
|
|
26877
27103
|
|
|
26878
27104
|
// src/controller/control/form/form/form.controller.ts
|
|
26879
27105
|
import {
|
|
@@ -27519,7 +27745,7 @@ var SearchFormController = class extends FormController {
|
|
|
27519
27745
|
applyStoredFilter(index) {
|
|
27520
27746
|
const filter = this.state.storedFilters[index];
|
|
27521
27747
|
if (!filter) {
|
|
27522
|
-
throw new
|
|
27748
|
+
throw new RuntimeError54(
|
|
27523
27749
|
ibiz.i18n.t("runtime.controller.control.form.searchTerms")
|
|
27524
27750
|
);
|
|
27525
27751
|
}
|
|
@@ -27537,7 +27763,7 @@ var SearchFormController = class extends FormController {
|
|
|
27537
27763
|
async removeStoredFilter(index) {
|
|
27538
27764
|
const filter = this.state.storedFilters[index];
|
|
27539
27765
|
if (!filter) {
|
|
27540
|
-
throw new
|
|
27766
|
+
throw new RuntimeError54(
|
|
27541
27767
|
ibiz.i18n.t("runtime.controller.control.form.saveSearch")
|
|
27542
27768
|
);
|
|
27543
27769
|
}
|
|
@@ -29027,7 +29253,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
29027
29253
|
};
|
|
29028
29254
|
|
|
29029
29255
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
29030
|
-
import { RuntimeError as
|
|
29256
|
+
import { RuntimeError as RuntimeError55, RuntimeModelError as RuntimeModelError60 } from "@ibiz-template/core";
|
|
29031
29257
|
import { createUUID as createUUID11 } from "qx-util";
|
|
29032
29258
|
|
|
29033
29259
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -29050,6 +29276,13 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
29050
29276
|
* @date 2023-11-11 08:03:56
|
|
29051
29277
|
*/
|
|
29052
29278
|
this.formMap = /* @__PURE__ */ new Map();
|
|
29279
|
+
/**
|
|
29280
|
+
* 数据集合
|
|
29281
|
+
*
|
|
29282
|
+
* @type {IData[]}
|
|
29283
|
+
* @memberof FormMDCtrlFormController
|
|
29284
|
+
*/
|
|
29285
|
+
this.items = [];
|
|
29053
29286
|
}
|
|
29054
29287
|
createState() {
|
|
29055
29288
|
var _a;
|
|
@@ -29092,7 +29325,8 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
29092
29325
|
const fetchAction = "fetchdefault";
|
|
29093
29326
|
const res = await ibiz.hub.getApp(this.model.appId).deService.exec(appDataEntityId, fetchAction, this.context, this.params);
|
|
29094
29327
|
if (res.ok) {
|
|
29095
|
-
this.
|
|
29328
|
+
this.items = res.data;
|
|
29329
|
+
this.state.items = this.items.map((item) => {
|
|
29096
29330
|
const context = this.context.clone();
|
|
29097
29331
|
context[this.deName] = item.srfkey;
|
|
29098
29332
|
const params = { ...this.params };
|
|
@@ -29104,6 +29338,30 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
29104
29338
|
});
|
|
29105
29339
|
}
|
|
29106
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
|
+
}
|
|
29107
29365
|
/**
|
|
29108
29366
|
* 表单状态变更通知
|
|
29109
29367
|
*
|
|
@@ -29168,7 +29426,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
29168
29426
|
async remove(id) {
|
|
29169
29427
|
const controller = this.formMap.get(id);
|
|
29170
29428
|
if (!controller) {
|
|
29171
|
-
throw new
|
|
29429
|
+
throw new RuntimeError55(
|
|
29172
29430
|
ibiz.i18n.t("runtime.controller.control.form.noFoundFormController", {
|
|
29173
29431
|
id
|
|
29174
29432
|
})
|
|
@@ -29520,7 +29778,7 @@ import {
|
|
|
29520
29778
|
IBizContext as IBizContext6,
|
|
29521
29779
|
isElementSame as isElementSame2,
|
|
29522
29780
|
mergeInLeft as mergeInLeft2,
|
|
29523
|
-
RuntimeError as
|
|
29781
|
+
RuntimeError as RuntimeError56
|
|
29524
29782
|
} from "@ibiz-template/core";
|
|
29525
29783
|
import { debounce } from "lodash-es";
|
|
29526
29784
|
import { createUUID as createUUID12 } from "qx-util";
|
|
@@ -29989,7 +30247,7 @@ var EditFormController = class extends FormController {
|
|
|
29989
30247
|
}
|
|
29990
30248
|
const isValid = await this.validate();
|
|
29991
30249
|
if (!isValid) {
|
|
29992
|
-
throw new
|
|
30250
|
+
throw new RuntimeError56(
|
|
29993
30251
|
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
29994
30252
|
);
|
|
29995
30253
|
}
|
|
@@ -30125,7 +30383,7 @@ var EditFormController = class extends FormController {
|
|
|
30125
30383
|
(item) => item.id === formItemUpdateId
|
|
30126
30384
|
);
|
|
30127
30385
|
if (!formItemUpdate) {
|
|
30128
|
-
throw new
|
|
30386
|
+
throw new RuntimeError56(
|
|
30129
30387
|
ibiz.i18n.t("runtime.controller.control.form.itemUpdate", {
|
|
30130
30388
|
formItemUpdateId
|
|
30131
30389
|
})
|
|
@@ -30188,7 +30446,7 @@ var EditFormController = class extends FormController {
|
|
|
30188
30446
|
async wfStart(args) {
|
|
30189
30447
|
const isValid = await this.validate();
|
|
30190
30448
|
if (!isValid) {
|
|
30191
|
-
throw new
|
|
30449
|
+
throw new RuntimeError56(
|
|
30192
30450
|
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
30193
30451
|
);
|
|
30194
30452
|
}
|
|
@@ -30221,7 +30479,7 @@ var EditFormController = class extends FormController {
|
|
|
30221
30479
|
async wfSubmit(args) {
|
|
30222
30480
|
const isValid = await this.validate();
|
|
30223
30481
|
if (!isValid) {
|
|
30224
|
-
throw new
|
|
30482
|
+
throw new RuntimeError56(
|
|
30225
30483
|
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
30226
30484
|
);
|
|
30227
30485
|
}
|
|
@@ -30634,7 +30892,7 @@ import {
|
|
|
30634
30892
|
EntityError as EntityError2,
|
|
30635
30893
|
mergeDefaultInLeft,
|
|
30636
30894
|
recursiveIterate as recursiveIterate7,
|
|
30637
|
-
RuntimeError as
|
|
30895
|
+
RuntimeError as RuntimeError57,
|
|
30638
30896
|
RuntimeModelError as RuntimeModelError63
|
|
30639
30897
|
} from "@ibiz-template/core";
|
|
30640
30898
|
import { clone as clone27, isNil as isNil28 } from "ramda";
|
|
@@ -31205,7 +31463,7 @@ var GridController = class extends MDControlController {
|
|
|
31205
31463
|
} else {
|
|
31206
31464
|
const toNum = Number(sortValue);
|
|
31207
31465
|
if (Number.isNaN(toNum)) {
|
|
31208
|
-
throw new
|
|
31466
|
+
throw new RuntimeError57(
|
|
31209
31467
|
ibiz.i18n.t("runtime.controller.control.grid.convertedValue", {
|
|
31210
31468
|
srfmajortext: item.srfmajortext
|
|
31211
31469
|
})
|
|
@@ -31396,7 +31654,7 @@ var GridController = class extends MDControlController {
|
|
|
31396
31654
|
if (editShowMode === "row") {
|
|
31397
31655
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
31398
31656
|
if (editingRow) {
|
|
31399
|
-
throw new
|
|
31657
|
+
throw new RuntimeError57(
|
|
31400
31658
|
ibiz.i18n.t("runtime.controller.common.md.firstComplete")
|
|
31401
31659
|
);
|
|
31402
31660
|
}
|
|
@@ -31439,7 +31697,7 @@ var GridController = class extends MDControlController {
|
|
|
31439
31697
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
31440
31698
|
const rowState = this.findRowState(data);
|
|
31441
31699
|
if (!rowState) {
|
|
31442
|
-
throw new
|
|
31700
|
+
throw new RuntimeError57(
|
|
31443
31701
|
ibiz.i18n.t("runtime.controller.common.md.rowData")
|
|
31444
31702
|
);
|
|
31445
31703
|
}
|
|
@@ -31453,7 +31711,7 @@ var GridController = class extends MDControlController {
|
|
|
31453
31711
|
}
|
|
31454
31712
|
const isValid = await this.validate(rowState);
|
|
31455
31713
|
if (!isValid) {
|
|
31456
|
-
throw new
|
|
31714
|
+
throw new RuntimeError57(
|
|
31457
31715
|
ibiz.i18n.t("runtime.controller.control.grid.saveCancel")
|
|
31458
31716
|
);
|
|
31459
31717
|
}
|
|
@@ -31709,7 +31967,7 @@ var GridController = class extends MDControlController {
|
|
|
31709
31967
|
}
|
|
31710
31968
|
async toggleRowEdit() {
|
|
31711
31969
|
if (!this.model.enableRowNew) {
|
|
31712
|
-
throw new
|
|
31970
|
+
throw new RuntimeError57(
|
|
31713
31971
|
ibiz.i18n.t("runtime.controller.control.grid.noSupportRowEditing")
|
|
31714
31972
|
);
|
|
31715
31973
|
}
|
|
@@ -31744,7 +32002,7 @@ var GridController = class extends MDControlController {
|
|
|
31744
32002
|
} else {
|
|
31745
32003
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
31746
32004
|
if (editingRow) {
|
|
31747
|
-
throw new
|
|
32005
|
+
throw new RuntimeError57(
|
|
31748
32006
|
ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
|
|
31749
32007
|
);
|
|
31750
32008
|
}
|
|
@@ -31801,7 +32059,7 @@ var GridController = class extends MDControlController {
|
|
|
31801
32059
|
(item) => item.id === updateId
|
|
31802
32060
|
);
|
|
31803
32061
|
if (!findUpdate) {
|
|
31804
|
-
throw new
|
|
32062
|
+
throw new RuntimeError57(
|
|
31805
32063
|
ibiz.i18n.t("runtime.controller.control.grid.updateColumns", {
|
|
31806
32064
|
updateId
|
|
31807
32065
|
})
|
|
@@ -31945,7 +32203,7 @@ var GridController = class extends MDControlController {
|
|
|
31945
32203
|
data = this.getData();
|
|
31946
32204
|
}
|
|
31947
32205
|
if (data.length === 0) {
|
|
31948
|
-
throw new
|
|
32206
|
+
throw new RuntimeError57(
|
|
31949
32207
|
ibiz.i18n.t("runtime.controller.control.grid.exported")
|
|
31950
32208
|
);
|
|
31951
32209
|
}
|
|
@@ -31961,7 +32219,7 @@ var GridController = class extends MDControlController {
|
|
|
31961
32219
|
async exportData(args) {
|
|
31962
32220
|
const { header } = this.dataExportParam;
|
|
31963
32221
|
if (!header) {
|
|
31964
|
-
throw new
|
|
32222
|
+
throw new RuntimeError57(
|
|
31965
32223
|
ibiz.i18n.t("runtime.controller.control.grid.tabularColumns")
|
|
31966
32224
|
);
|
|
31967
32225
|
}
|
|
@@ -32621,7 +32879,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
32621
32879
|
};
|
|
32622
32880
|
|
|
32623
32881
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
32624
|
-
import { RuntimeError as
|
|
32882
|
+
import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
|
|
32625
32883
|
import Schema2 from "async-validator";
|
|
32626
32884
|
import { isNilOrEmpty as isNilOrEmpty8 } from "qx-util";
|
|
32627
32885
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -32761,7 +33019,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
32761
33019
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
32762
33020
|
const result = await this.validate(row);
|
|
32763
33021
|
if (!result) {
|
|
32764
|
-
throw new
|
|
33022
|
+
throw new RuntimeError58(
|
|
32765
33023
|
ibiz.i18n.t("runtime.controller.control.grid.checksumErrors", {
|
|
32766
33024
|
codeName: this.editItem.codeName,
|
|
32767
33025
|
fieldName: row.errors[this.fieldName]
|
|
@@ -33085,7 +33343,7 @@ var ListController = class extends MDControlController {
|
|
|
33085
33343
|
};
|
|
33086
33344
|
|
|
33087
33345
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
33088
|
-
import { recursiveIterate as recursiveIterate8, RuntimeError as
|
|
33346
|
+
import { recursiveIterate as recursiveIterate8, RuntimeError as RuntimeError59 } from "@ibiz-template/core";
|
|
33089
33347
|
import { AsyncSeriesHook as AsyncSeriesHook2 } from "qx-util";
|
|
33090
33348
|
var PanelController = class extends ControlController {
|
|
33091
33349
|
constructor(model, context, params, ctx, container) {
|
|
@@ -33242,7 +33500,7 @@ var PanelController = class extends ControlController {
|
|
|
33242
33500
|
var _a, _b;
|
|
33243
33501
|
const data = await this.prepareData();
|
|
33244
33502
|
if (!data) {
|
|
33245
|
-
throw new
|
|
33503
|
+
throw new RuntimeError59(
|
|
33246
33504
|
ibiz.i18n.t("runtime.controller.control.panel.panelData")
|
|
33247
33505
|
);
|
|
33248
33506
|
}
|
|
@@ -34376,7 +34634,7 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
|
|
|
34376
34634
|
}
|
|
34377
34635
|
|
|
34378
34636
|
// src/controller/control/search-bar/search-bar-filter-items.controller.ts
|
|
34379
|
-
import { RuntimeError as
|
|
34637
|
+
import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
|
|
34380
34638
|
import { clone as clone29 } from "ramda";
|
|
34381
34639
|
var SubFieldRegex2 = /^N_(.\w+)_(.\w+)$/;
|
|
34382
34640
|
var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
@@ -34435,7 +34693,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
|
34435
34693
|
return false;
|
|
34436
34694
|
});
|
|
34437
34695
|
if (!minorDEId) {
|
|
34438
|
-
throw new
|
|
34696
|
+
throw new RuntimeError60(
|
|
34439
34697
|
ibiz.i18n.t("runtime.controller.control.searchBar.noFoundEntity", {
|
|
34440
34698
|
targetField
|
|
34441
34699
|
})
|
|
@@ -35634,7 +35892,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
35634
35892
|
|
|
35635
35893
|
// src/controller/control/tree/tree.controller.ts
|
|
35636
35894
|
import {
|
|
35637
|
-
RuntimeError as
|
|
35895
|
+
RuntimeError as RuntimeError61,
|
|
35638
35896
|
RuntimeModelError as RuntimeModelError66,
|
|
35639
35897
|
recursiveIterate as recursiveIterate11
|
|
35640
35898
|
} from "@ibiz-template/core";
|
|
@@ -36720,7 +36978,7 @@ var TreeController = class extends MDControlController {
|
|
|
36720
36978
|
);
|
|
36721
36979
|
}
|
|
36722
36980
|
if (nodeData._nodeType !== "DE") {
|
|
36723
|
-
throw new
|
|
36981
|
+
throw new RuntimeError61(
|
|
36724
36982
|
ibiz.i18n.t("runtime.controller.control.tree.nodeData")
|
|
36725
36983
|
);
|
|
36726
36984
|
}
|
|
@@ -36738,7 +36996,7 @@ var TreeController = class extends MDControlController {
|
|
|
36738
36996
|
let needRefresh = false;
|
|
36739
36997
|
const treeNode = this.getNodeModel(item._nodeId);
|
|
36740
36998
|
if (!treeNode) {
|
|
36741
|
-
throw new
|
|
36999
|
+
throw new RuntimeError61(
|
|
36742
37000
|
ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
|
|
36743
37001
|
);
|
|
36744
37002
|
}
|
|
@@ -36784,7 +37042,7 @@ var TreeController = class extends MDControlController {
|
|
|
36784
37042
|
};
|
|
36785
37043
|
|
|
36786
37044
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
36787
|
-
import { RuntimeError as
|
|
37045
|
+
import { RuntimeError as RuntimeError62 } from "@ibiz-template/core";
|
|
36788
37046
|
|
|
36789
37047
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
36790
37048
|
var WizardPanelService = class extends ControlService {
|
|
@@ -36972,7 +37230,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
36972
37230
|
const { activeFormTag } = this.state;
|
|
36973
37231
|
const controller = this.formControllers.get(activeFormTag);
|
|
36974
37232
|
if (!controller) {
|
|
36975
|
-
throw new
|
|
37233
|
+
throw new RuntimeError62(
|
|
36976
37234
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.formController", {
|
|
36977
37235
|
activeFormTag
|
|
36978
37236
|
})
|
|
@@ -37022,7 +37280,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
37022
37280
|
getWizardFormByTag(tag) {
|
|
37023
37281
|
var _a;
|
|
37024
37282
|
if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
|
|
37025
|
-
throw new
|
|
37283
|
+
throw new RuntimeError62(
|
|
37026
37284
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.noConfiguration")
|
|
37027
37285
|
);
|
|
37028
37286
|
return;
|
|
@@ -37033,7 +37291,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
37033
37291
|
}
|
|
37034
37292
|
);
|
|
37035
37293
|
if (!wizardForm) {
|
|
37036
|
-
throw new
|
|
37294
|
+
throw new RuntimeError62(
|
|
37037
37295
|
ibiz.i18n.t(
|
|
37038
37296
|
"runtime.controller.control.wizardPanel.wizardFormIdentifier",
|
|
37039
37297
|
{ tag }
|
|
@@ -37125,7 +37383,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
37125
37383
|
prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
37126
37384
|
}
|
|
37127
37385
|
if (!prevTag) {
|
|
37128
|
-
throw new
|
|
37386
|
+
throw new RuntimeError62(
|
|
37129
37387
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.noPreviousForm")
|
|
37130
37388
|
);
|
|
37131
37389
|
}
|
|
@@ -37163,7 +37421,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
37163
37421
|
});
|
|
37164
37422
|
const nextWizardStep = wizardSteps[index + 1];
|
|
37165
37423
|
if (!nextWizardStep) {
|
|
37166
|
-
throw new
|
|
37424
|
+
throw new RuntimeError62(
|
|
37167
37425
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.nextStep")
|
|
37168
37426
|
);
|
|
37169
37427
|
}
|
|
@@ -37174,7 +37432,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
37174
37432
|
}
|
|
37175
37433
|
}
|
|
37176
37434
|
if (!nextTag) {
|
|
37177
|
-
throw new
|
|
37435
|
+
throw new RuntimeError62(
|
|
37178
37436
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.nextForm")
|
|
37179
37437
|
);
|
|
37180
37438
|
}
|
|
@@ -37560,7 +37818,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
37560
37818
|
};
|
|
37561
37819
|
|
|
37562
37820
|
// src/controller/control/kanban/kanban.controller.ts
|
|
37563
|
-
import { RuntimeError as
|
|
37821
|
+
import { RuntimeError as RuntimeError63, RuntimeModelError as RuntimeModelError68 } from "@ibiz-template/core";
|
|
37564
37822
|
import { clone as clone32, isNil as isNil33 } from "ramda";
|
|
37565
37823
|
|
|
37566
37824
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -37679,7 +37937,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
37679
37937
|
} else {
|
|
37680
37938
|
const toNum = Number(sortValue);
|
|
37681
37939
|
if (Number.isNaN(toNum)) {
|
|
37682
|
-
throw new
|
|
37940
|
+
throw new RuntimeError63(
|
|
37683
37941
|
ibiz.i18n.t("runtime.controller.control.grid.convertedValue", {
|
|
37684
37942
|
srfmajortext: item.srfmajortext
|
|
37685
37943
|
})
|
|
@@ -37803,7 +38061,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
37803
38061
|
}
|
|
37804
38062
|
handleDataGroup() {
|
|
37805
38063
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
37806
|
-
throw new
|
|
38064
|
+
throw new RuntimeError63(
|
|
37807
38065
|
ibiz.i18n.t("runtime.controller.control.kanban.groupedOn")
|
|
37808
38066
|
);
|
|
37809
38067
|
}
|
|
@@ -38193,7 +38451,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
38193
38451
|
|
|
38194
38452
|
// src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
|
|
38195
38453
|
import {
|
|
38196
|
-
RuntimeError as
|
|
38454
|
+
RuntimeError as RuntimeError64,
|
|
38197
38455
|
RuntimeModelError as RuntimeModelError69,
|
|
38198
38456
|
awaitTimeout as awaitTimeout3,
|
|
38199
38457
|
recursiveIterate as recursiveIterate12
|
|
@@ -38478,13 +38736,13 @@ var TreeGridExController = class extends TreeController {
|
|
|
38478
38736
|
return;
|
|
38479
38737
|
}
|
|
38480
38738
|
if (nodeData._nodeType !== "DE") {
|
|
38481
|
-
throw new
|
|
38739
|
+
throw new RuntimeError64(
|
|
38482
38740
|
ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
|
|
38483
38741
|
);
|
|
38484
38742
|
}
|
|
38485
38743
|
const rowState = this.state.rows[nodeData._uuid];
|
|
38486
38744
|
if (!rowState) {
|
|
38487
|
-
throw new
|
|
38745
|
+
throw new RuntimeError64(
|
|
38488
38746
|
ibiz.i18n.t("runtime.controller.common.md.rowData")
|
|
38489
38747
|
);
|
|
38490
38748
|
}
|
|
@@ -38500,7 +38758,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
38500
38758
|
const { appDataEntityId, updateAppDEActionId } = nodeModel;
|
|
38501
38759
|
const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
|
|
38502
38760
|
if (isCreate) {
|
|
38503
|
-
throw new
|
|
38761
|
+
throw new RuntimeError64(
|
|
38504
38762
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.noSupportCreation")
|
|
38505
38763
|
);
|
|
38506
38764
|
}
|
|
@@ -38665,7 +38923,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
38665
38923
|
(item) => item.showRowEdit
|
|
38666
38924
|
);
|
|
38667
38925
|
if (editingRow) {
|
|
38668
|
-
throw new
|
|
38926
|
+
throw new RuntimeError64(
|
|
38669
38927
|
ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
|
|
38670
38928
|
);
|
|
38671
38929
|
}
|
|
@@ -38780,7 +39038,7 @@ var TreeGridExColumnController = class {
|
|
|
38780
39038
|
// src/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.ts
|
|
38781
39039
|
import {
|
|
38782
39040
|
DataTypes as DataTypes5,
|
|
38783
|
-
RuntimeError as
|
|
39041
|
+
RuntimeError as RuntimeError65,
|
|
38784
39042
|
RuntimeModelError as RuntimeModelError70
|
|
38785
39043
|
} from "@ibiz-template/core";
|
|
38786
39044
|
import { clone as clone34 } from "ramda";
|
|
@@ -38985,7 +39243,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
38985
39243
|
const valueItem = this.nodeColumn.linkValueItem || "srfkey";
|
|
38986
39244
|
const value = row.data[valueItem];
|
|
38987
39245
|
if (value == null) {
|
|
38988
|
-
throw new
|
|
39246
|
+
throw new RuntimeError65(
|
|
38989
39247
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.noPickedUp", {
|
|
38990
39248
|
valueItem
|
|
38991
39249
|
})
|
|
@@ -39414,7 +39672,7 @@ var TreeGridService = class extends GridService {
|
|
|
39414
39672
|
};
|
|
39415
39673
|
|
|
39416
39674
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
39417
|
-
import { RuntimeError as
|
|
39675
|
+
import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
|
|
39418
39676
|
import { createUUID as createUUID14 } from "qx-util";
|
|
39419
39677
|
|
|
39420
39678
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -39634,7 +39892,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
39634
39892
|
(item) => item.id === id
|
|
39635
39893
|
);
|
|
39636
39894
|
if (panelUiItemIndex < 0) {
|
|
39637
|
-
throw new
|
|
39895
|
+
throw new RuntimeError66(
|
|
39638
39896
|
ibiz.i18n.t("runtime.controller.control.meditViewPanel.dataExist")
|
|
39639
39897
|
);
|
|
39640
39898
|
}
|
|
@@ -39974,7 +40232,7 @@ var User2ReportPanelGenerator = class extends ReportPanelBaseGenerator {
|
|
|
39974
40232
|
};
|
|
39975
40233
|
|
|
39976
40234
|
// src/controller/control/report-panel/generator/bi-generator.ts
|
|
39977
|
-
import { RuntimeError as
|
|
40235
|
+
import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
|
|
39978
40236
|
var BIReportPanelGenerator = class extends ReportPanelBaseGenerator {
|
|
39979
40237
|
/**
|
|
39980
40238
|
* 设置配置
|
|
@@ -39986,7 +40244,7 @@ var BIReportPanelGenerator = class extends ReportPanelBaseGenerator {
|
|
|
39986
40244
|
setConfig() {
|
|
39987
40245
|
var _a;
|
|
39988
40246
|
if (!((_a = this.model.appDEReport) == null ? void 0 : _a.reportUIModel)) {
|
|
39989
|
-
throw new
|
|
40247
|
+
throw new RuntimeError67(
|
|
39990
40248
|
ibiz.i18n.t("runtime.controller.control.reportPanel.noReportUIModel")
|
|
39991
40249
|
);
|
|
39992
40250
|
}
|
|
@@ -40258,7 +40516,7 @@ var ReportPanelController = class extends ControlController {
|
|
|
40258
40516
|
// src/controller/control/gantt/gantt.controller.ts
|
|
40259
40517
|
import {
|
|
40260
40518
|
awaitTimeout as awaitTimeout4,
|
|
40261
|
-
RuntimeError as
|
|
40519
|
+
RuntimeError as RuntimeError68,
|
|
40262
40520
|
RuntimeModelError as RuntimeModelError72
|
|
40263
40521
|
} from "@ibiz-template/core";
|
|
40264
40522
|
|
|
@@ -40804,13 +41062,13 @@ var GanttController = class extends TreeGridExController {
|
|
|
40804
41062
|
*/
|
|
40805
41063
|
async modifyNodeTime(nodeData, { begin, end }) {
|
|
40806
41064
|
if (nodeData._nodeType !== "DE") {
|
|
40807
|
-
throw new
|
|
41065
|
+
throw new RuntimeError68(
|
|
40808
41066
|
ibiz.i18n.t("runtime.controller.control.gantt.noNode")
|
|
40809
41067
|
);
|
|
40810
41068
|
}
|
|
40811
41069
|
const rowState = this.getRowState(nodeData._id);
|
|
40812
41070
|
if (!rowState) {
|
|
40813
|
-
throw new
|
|
41071
|
+
throw new RuntimeError68(
|
|
40814
41072
|
ibiz.i18n.t("runtime.controller.common.md.rowData")
|
|
40815
41073
|
);
|
|
40816
41074
|
}
|
|
@@ -40832,13 +41090,13 @@ var GanttController = class extends TreeGridExController {
|
|
|
40832
41090
|
return;
|
|
40833
41091
|
}
|
|
40834
41092
|
if (nodeData._nodeType !== "DE") {
|
|
40835
|
-
throw new
|
|
41093
|
+
throw new RuntimeError68(
|
|
40836
41094
|
ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
|
|
40837
41095
|
);
|
|
40838
41096
|
}
|
|
40839
41097
|
const rowState = this.state.rows[nodeData._uuid];
|
|
40840
41098
|
if (!rowState) {
|
|
40841
|
-
throw new
|
|
41099
|
+
throw new RuntimeError68(
|
|
40842
41100
|
ibiz.i18n.t("runtime.controller.common.md.rowData")
|
|
40843
41101
|
);
|
|
40844
41102
|
}
|
|
@@ -40888,7 +41146,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
40888
41146
|
async remove(args) {
|
|
40889
41147
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
40890
41148
|
if (!(data == null ? void 0 : data.length)) {
|
|
40891
|
-
throw new
|
|
41149
|
+
throw new RuntimeError68(
|
|
40892
41150
|
ibiz.i18n.t("runtime.controller.common.control.uncheckedData")
|
|
40893
41151
|
);
|
|
40894
41152
|
}
|
|
@@ -41011,7 +41269,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
41011
41269
|
(item) => item.showRowEdit
|
|
41012
41270
|
);
|
|
41013
41271
|
if (editingRow) {
|
|
41014
|
-
throw new
|
|
41272
|
+
throw new RuntimeError68(
|
|
41015
41273
|
ibiz.i18n.t("runtime.controller.common.md.firstComplete")
|
|
41016
41274
|
);
|
|
41017
41275
|
}
|
|
@@ -41550,7 +41808,11 @@ var InternalMessageController = class {
|
|
|
41550
41808
|
find.status = "READ";
|
|
41551
41809
|
this.unreadCount -= 1;
|
|
41552
41810
|
this.evt.emit("unreadCountChange", this.unreadCount);
|
|
41553
|
-
this.
|
|
41811
|
+
if (this.unreadOnly) {
|
|
41812
|
+
this.load();
|
|
41813
|
+
} else {
|
|
41814
|
+
this.evt.emit("dataChange");
|
|
41815
|
+
}
|
|
41554
41816
|
}
|
|
41555
41817
|
/**
|
|
41556
41818
|
* 把所有未读消息标记为已读
|
|
@@ -41870,7 +42132,7 @@ var AppHub = class {
|
|
|
41870
42132
|
this.registerAppView(appView);
|
|
41871
42133
|
return appView;
|
|
41872
42134
|
}
|
|
41873
|
-
throw new
|
|
42135
|
+
throw new RuntimeError69(ibiz.i18n.t("runtime.hub.noExist", { id }));
|
|
41874
42136
|
}
|
|
41875
42137
|
/**
|
|
41876
42138
|
* 根据DrControl的名称和子应用标识获取模型
|
|
@@ -41909,7 +42171,7 @@ var AppHub = class {
|
|
|
41909
42171
|
);
|
|
41910
42172
|
return model;
|
|
41911
42173
|
}
|
|
41912
|
-
throw new
|
|
42174
|
+
throw new RuntimeError69(
|
|
41913
42175
|
ibiz.i18n.t("runtime.hub.noExist", { id: modelPath })
|
|
41914
42176
|
);
|
|
41915
42177
|
}
|
|
@@ -41949,7 +42211,7 @@ var AppHub = class {
|
|
|
41949
42211
|
this.registerAppDataEntity(entity, appId2);
|
|
41950
42212
|
return entity;
|
|
41951
42213
|
}
|
|
41952
|
-
throw new
|
|
42214
|
+
throw new RuntimeError69(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
41953
42215
|
}
|
|
41954
42216
|
/**
|
|
41955
42217
|
* 新建 hub 应用
|
|
@@ -41964,7 +42226,7 @@ var AppHub = class {
|
|
|
41964
42226
|
return this.appMap.get(id);
|
|
41965
42227
|
}
|
|
41966
42228
|
if (!this.modelLoaderProvider) {
|
|
41967
|
-
throw new
|
|
42229
|
+
throw new RuntimeError69(ibiz.i18n.t("runtime.utils.firstregister"));
|
|
41968
42230
|
}
|
|
41969
42231
|
const appModel = await this.modelLoaderProvider.getApp(id);
|
|
41970
42232
|
const subAppRef = await this.modelLoaderProvider.getSubAppRef(id);
|
|
@@ -42111,7 +42373,7 @@ var EngineFactory = class {
|
|
|
42111
42373
|
|
|
42112
42374
|
// src/engine/view-base.engine.ts
|
|
42113
42375
|
import {
|
|
42114
|
-
RuntimeError as
|
|
42376
|
+
RuntimeError as RuntimeError70,
|
|
42115
42377
|
findRecursiveChild as findRecursiveChild3,
|
|
42116
42378
|
IBizContext as IBizContext7
|
|
42117
42379
|
} from "@ibiz-template/core";
|
|
@@ -42496,7 +42758,7 @@ var ViewEngineBase = class {
|
|
|
42496
42758
|
const { appDataEntityId } = this.view.model;
|
|
42497
42759
|
const { evt, context, params } = this.view;
|
|
42498
42760
|
if (!appDataEntityId) {
|
|
42499
|
-
throw new
|
|
42761
|
+
throw new RuntimeError70(ibiz.i18n.t("runtime.engine.loadEntityData"));
|
|
42500
42762
|
}
|
|
42501
42763
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
42502
42764
|
const res = await app.deService.exec(
|
|
@@ -42978,7 +43240,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
42978
43240
|
};
|
|
42979
43241
|
|
|
42980
43242
|
// src/global/global-util/global-util.ts
|
|
42981
|
-
import { RuntimeError as
|
|
43243
|
+
import { RuntimeError as RuntimeError71 } from "@ibiz-template/core";
|
|
42982
43244
|
var sourceTitle = document.title;
|
|
42983
43245
|
var GlobalUtil = class {
|
|
42984
43246
|
constructor() {
|
|
@@ -43119,7 +43381,7 @@ var GlobalUtil = class {
|
|
|
43119
43381
|
* @return {*} {IParams}
|
|
43120
43382
|
*/
|
|
43121
43383
|
getGlobalParam() {
|
|
43122
|
-
throw new
|
|
43384
|
+
throw new RuntimeError71(ibiz.i18n.t("runtime.global.noImplemented"));
|
|
43123
43385
|
}
|
|
43124
43386
|
/**
|
|
43125
43387
|
* 获取视图路由参数变量,数组类型,基于路由解析出来的,每一个对象里面都有context和params
|
|
@@ -43128,12 +43390,12 @@ var GlobalUtil = class {
|
|
|
43128
43390
|
* @return {*} {IParams}
|
|
43129
43391
|
*/
|
|
43130
43392
|
getRouterParams() {
|
|
43131
|
-
throw new
|
|
43393
|
+
throw new RuntimeError71(ibiz.i18n.t("runtime.global.noImplementedRouting"));
|
|
43132
43394
|
}
|
|
43133
43395
|
};
|
|
43134
43396
|
|
|
43135
43397
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
43136
|
-
import { RuntimeError as
|
|
43398
|
+
import { RuntimeError as RuntimeError72 } from "@ibiz-template/core";
|
|
43137
43399
|
var LogicExecutor = class {
|
|
43138
43400
|
/**
|
|
43139
43401
|
* @author lxm
|
|
@@ -43154,7 +43416,7 @@ var LogicExecutor = class {
|
|
|
43154
43416
|
*/
|
|
43155
43417
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
43156
43418
|
execute(_executeParams) {
|
|
43157
|
-
throw new
|
|
43419
|
+
throw new RuntimeError72(
|
|
43158
43420
|
ibiz.i18n.t("runtime.logicScheduler.executor.noImplementedMethod")
|
|
43159
43421
|
);
|
|
43160
43422
|
}
|
|
@@ -43606,7 +43868,7 @@ var LogicSchedulerCenter = class {
|
|
|
43606
43868
|
};
|
|
43607
43869
|
|
|
43608
43870
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
43609
|
-
import { RuntimeError as
|
|
43871
|
+
import { RuntimeError as RuntimeError73 } from "@ibiz-template/core";
|
|
43610
43872
|
var LogicTrigger = class {
|
|
43611
43873
|
/**
|
|
43612
43874
|
* @author lxm
|
|
@@ -43666,7 +43928,7 @@ var LogicTrigger = class {
|
|
|
43666
43928
|
if (this.executor) {
|
|
43667
43929
|
return this.executor.execute(executeParams);
|
|
43668
43930
|
}
|
|
43669
|
-
throw new
|
|
43931
|
+
throw new RuntimeError73(
|
|
43670
43932
|
ibiz.i18n.t("runtime.logicScheduler.trigger.noExecutorBound", {
|
|
43671
43933
|
id: this.logic.id
|
|
43672
43934
|
})
|
|
@@ -43687,12 +43949,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
43687
43949
|
};
|
|
43688
43950
|
|
|
43689
43951
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
43690
|
-
import { RuntimeError as
|
|
43952
|
+
import { RuntimeError as RuntimeError74 } from "@ibiz-template/core";
|
|
43691
43953
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
43692
43954
|
bindExecutor(executor) {
|
|
43693
43955
|
super.bindExecutor(executor);
|
|
43694
43956
|
if (this.executor.type !== "SCRIPT") {
|
|
43695
|
-
throw new
|
|
43957
|
+
throw new RuntimeError74(
|
|
43696
43958
|
ibiz.i18n.t("runtime.logicScheduler.trigger.triggerType")
|
|
43697
43959
|
);
|
|
43698
43960
|
}
|
|
@@ -43729,7 +43991,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
43729
43991
|
};
|
|
43730
43992
|
|
|
43731
43993
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
43732
|
-
import { RuntimeError as
|
|
43994
|
+
import { RuntimeError as RuntimeError75, RuntimeModelError as RuntimeModelError75 } from "@ibiz-template/core";
|
|
43733
43995
|
var TimerTrigger = class extends LogicTrigger {
|
|
43734
43996
|
constructor() {
|
|
43735
43997
|
super(...arguments);
|
|
@@ -43744,7 +44006,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
43744
44006
|
}
|
|
43745
44007
|
this.timer = setInterval(() => {
|
|
43746
44008
|
if (!this.scheduler.defaultParamsCb) {
|
|
43747
|
-
throw new
|
|
44009
|
+
throw new RuntimeError75(
|
|
43748
44010
|
ibiz.i18n.t("runtime.logicScheduler.trigger.parameterCallback")
|
|
43749
44011
|
);
|
|
43750
44012
|
}
|
|
@@ -43763,7 +44025,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
43763
44025
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
43764
44026
|
import {
|
|
43765
44027
|
ModelError as ModelError34,
|
|
43766
|
-
RuntimeError as
|
|
44028
|
+
RuntimeError as RuntimeError76,
|
|
43767
44029
|
RuntimeModelError as RuntimeModelError76
|
|
43768
44030
|
} from "@ibiz-template/core";
|
|
43769
44031
|
import { notNilEmpty as notNilEmpty11 } from "qx-util";
|
|
@@ -43801,7 +44063,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
43801
44063
|
const { context, params, ...rest } = parameters;
|
|
43802
44064
|
const { data } = parameters;
|
|
43803
44065
|
if (!(data == null ? void 0 : data[0])) {
|
|
43804
|
-
throw new
|
|
44066
|
+
throw new RuntimeError76(
|
|
43805
44067
|
ibiz.i18n.t("runtime.logicScheduler.executor.noActionableData")
|
|
43806
44068
|
);
|
|
43807
44069
|
}
|
|
@@ -43870,7 +44132,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
43870
44132
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
43871
44133
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
43872
44134
|
if (!findView) {
|
|
43873
|
-
throw new
|
|
44135
|
+
throw new RuntimeError76(
|
|
43874
44136
|
ibiz.i18n.t("runtime.logicScheduler.executor.editViews", {
|
|
43875
44137
|
formTypeValue
|
|
43876
44138
|
})
|
|
@@ -44003,7 +44265,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
44003
44265
|
}
|
|
44004
44266
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
44005
44267
|
if (!selectData) {
|
|
44006
|
-
throw new
|
|
44268
|
+
throw new RuntimeError76(
|
|
44007
44269
|
ibiz.i18n.t("runtime.logicScheduler.executor.checkOne")
|
|
44008
44270
|
);
|
|
44009
44271
|
}
|
|
@@ -44015,7 +44277,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
44015
44277
|
}
|
|
44016
44278
|
);
|
|
44017
44279
|
if (!findView) {
|
|
44018
|
-
throw new
|
|
44280
|
+
throw new RuntimeError76(
|
|
44019
44281
|
ibiz.i18n.t("runtime.logicScheduler.executor.entitiesAssociated", {
|
|
44020
44282
|
indexType
|
|
44021
44283
|
})
|
|
@@ -44057,7 +44319,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
44057
44319
|
}
|
|
44058
44320
|
});
|
|
44059
44321
|
if (pickParentFieldName === void 0) {
|
|
44060
|
-
throw new
|
|
44322
|
+
throw new RuntimeError76(
|
|
44061
44323
|
ibiz.i18n.t("runtime.logicScheduler.executor.foreignKey", {
|
|
44062
44324
|
pickParentDeName
|
|
44063
44325
|
})
|