@ibiz-template/runtime 0.2.18-dev.2 → 0.2.18
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 +250 -170
- package/dist/index.system.min.js +2 -2
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.js +2 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts +6 -0
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.js +16 -3
- package/out/controller/control/panel/panel/panel-item.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel-item.controller.js +2 -1
- package/out/controller/utils/data-file-util/data-file-util.d.ts +1 -1
- package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
- package/out/controller/utils/data-file-util/data-file-util.js +10 -23
- package/out/install.d.ts.map +1 -1
- package/out/install.js +3 -1
- package/out/interface/controller/event/argument/form-detail.event.d.ts +24 -2
- package/out/interface/controller/event/argument/form-detail.event.d.ts.map +1 -1
- package/out/interface/controller/event/argument/form-detail.event.js +24 -1
- package/out/interface/controller/event/argument/index.d.ts +2 -0
- package/out/interface/controller/event/argument/index.d.ts.map +1 -1
- package/out/interface/controller/event/argument/index.js +2 -1
- package/out/interface/controller/event/argument/panel-item.event.d.ts +23 -1
- package/out/interface/controller/event/argument/panel-item.event.d.ts.map +1 -1
- package/out/interface/controller/event/argument/panel-item.event.js +24 -1
- package/out/interface/provider/i-async-action.provider.d.ts +27 -0
- package/out/interface/provider/i-async-action.provider.d.ts.map +1 -0
- package/out/interface/provider/i-async-action.provider.js +1 -0
- package/out/interface/provider/index.d.ts +1 -0
- package/out/interface/provider/index.d.ts.map +1 -1
- package/out/interface/service/service/i-async-action.service.d.ts +28 -0
- package/out/interface/service/service/i-async-action.service.d.ts.map +1 -0
- package/out/interface/service/service/i-async-action.service.js +1 -0
- package/out/interface/service/service/index.d.ts +1 -0
- package/out/interface/service/service/index.d.ts.map +1 -1
- package/out/register/helper/async-action-register.d.ts +22 -0
- package/out/register/helper/async-action-register.d.ts.map +1 -0
- package/out/register/helper/async-action-register.js +35 -0
- package/out/register/helper/index.d.ts +1 -0
- package/out/register/helper/index.d.ts.map +1 -1
- package/out/register/helper/index.js +1 -0
- package/out/service/app-data-entity/app-data-entity.d.ts +3 -3
- package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.js +3 -3
- package/out/service/service/async-action/async-action.service.d.ts +28 -0
- package/out/service/service/async-action/async-action.service.d.ts.map +1 -0
- package/out/service/service/async-action/async-action.service.js +31 -0
- package/out/service/service/index.d.ts +1 -0
- package/out/service/service/index.d.ts.map +1 -1
- package/out/service/service/index.js +1 -0
- package/out/types.d.ts +9 -1
- package/out/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/controller/control/form/form-detail/form-detail/form-detail.controller.ts +2 -1
- package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +17 -3
- package/src/controller/control/panel/panel/panel-item.controller.ts +2 -1
- package/src/controller/utils/data-file-util/data-file-util.ts +16 -27
- package/src/install.ts +7 -1
- package/src/interface/controller/event/argument/form-detail.event.ts +26 -2
- package/src/interface/controller/event/argument/index.ts +2 -0
- package/src/interface/controller/event/argument/panel-item.event.ts +25 -1
- package/src/interface/provider/i-async-action.provider.ts +29 -0
- package/src/interface/provider/index.ts +1 -0
- package/src/interface/service/service/i-async-action.service.ts +29 -0
- package/src/interface/service/service/index.ts +1 -0
- package/src/register/helper/async-action-register.ts +47 -0
- package/src/register/helper/index.ts +1 -0
- package/src/service/app-data-entity/app-data-entity.ts +3 -3
- package/src/service/service/async-action/async-action.service.ts +37 -0
- package/src/service/service/index.ts +1 -0
- package/src/types.ts +10 -0
package/dist/index.esm.js
CHANGED
|
@@ -70,7 +70,7 @@ var RegisterCenter = class {
|
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
// src/command/app/app-func/app-func.ts
|
|
73
|
-
import { ModelError as ModelError15, RuntimeError as
|
|
73
|
+
import { ModelError as ModelError15, RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
74
74
|
|
|
75
75
|
// src/utils/handlebars/utils/helper/helper.ts
|
|
76
76
|
var HelperUtil = class {
|
|
@@ -2580,7 +2580,7 @@ async function handleAllSettled(values, isThrow = true) {
|
|
|
2580
2580
|
}
|
|
2581
2581
|
|
|
2582
2582
|
// src/command/app/open-app-view/open-app-view.ts
|
|
2583
|
-
import { ModelError as ModelError14, RuntimeError as
|
|
2583
|
+
import { ModelError as ModelError14, RuntimeError as RuntimeError19 } from "@ibiz-template/core";
|
|
2584
2584
|
import { clone as clone13 } from "ramda";
|
|
2585
2585
|
|
|
2586
2586
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
@@ -3390,8 +3390,28 @@ async function getViewProvider(model) {
|
|
|
3390
3390
|
return provider;
|
|
3391
3391
|
}
|
|
3392
3392
|
|
|
3393
|
+
// src/register/helper/async-action-register.ts
|
|
3394
|
+
import { RuntimeError as RuntimeError8 } from "@ibiz-template/core";
|
|
3395
|
+
var ASYNC_ACTION_PROVIDER_PREFIX = "ASYNC_ACTION";
|
|
3396
|
+
function registerAsyncActionProvider(key, callback) {
|
|
3397
|
+
ibiz.register.register("".concat(ASYNC_ACTION_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
3398
|
+
}
|
|
3399
|
+
function getProvider10(key) {
|
|
3400
|
+
return ibiz.register.get(
|
|
3401
|
+
"".concat(ASYNC_ACTION_PROVIDER_PREFIX, "_").concat(key)
|
|
3402
|
+
);
|
|
3403
|
+
}
|
|
3404
|
+
function getAsyncActionProvider(actiontype) {
|
|
3405
|
+
const provider = getProvider10(actiontype);
|
|
3406
|
+
if (!provider) {
|
|
3407
|
+
throw new RuntimeError8("\u627E\u4E0D\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B".concat(actiontype, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
3408
|
+
} else {
|
|
3409
|
+
return provider;
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3393
3413
|
// src/service/utils/app-counter/app-counter.ts
|
|
3394
|
-
import { IBizContext, RuntimeError as
|
|
3414
|
+
import { IBizContext, RuntimeError as RuntimeError9 } from "@ibiz-template/core";
|
|
3395
3415
|
import { notNilEmpty as notNilEmpty5, QXEvent } from "qx-util";
|
|
3396
3416
|
import { clone as clone2 } from "ramda";
|
|
3397
3417
|
var AppCounter = class {
|
|
@@ -3496,7 +3516,7 @@ var AppCounter = class {
|
|
|
3496
3516
|
* @return {*} {Promise<IData>}
|
|
3497
3517
|
*/
|
|
3498
3518
|
async load() {
|
|
3499
|
-
throw new
|
|
3519
|
+
throw new RuntimeError9("\u672A\u5B9E\u73B0\u8BA1\u6570\u5668\u52A0\u8F7D\u65B9\u6CD5");
|
|
3500
3520
|
}
|
|
3501
3521
|
/**
|
|
3502
3522
|
* 计数器刷新
|
|
@@ -3929,7 +3949,7 @@ import { where, equals, clone as clone3, isNil as isNil5, isEmpty as isEmpty5 }
|
|
|
3929
3949
|
import { createUUID } from "qx-util";
|
|
3930
3950
|
|
|
3931
3951
|
// src/service/utils/service-exist-util/service-exist-util.ts
|
|
3932
|
-
import { RuntimeError as
|
|
3952
|
+
import { RuntimeError as RuntimeError10 } from "@ibiz-template/core";
|
|
3933
3953
|
import { isEmpty as isEmpty4, isNil as isNil4 } from "ramda";
|
|
3934
3954
|
function isExistSrfKey(funcName, entity) {
|
|
3935
3955
|
if (entity != null) {
|
|
@@ -3938,14 +3958,14 @@ function isExistSrfKey(funcName, entity) {
|
|
|
3938
3958
|
return true;
|
|
3939
3959
|
}
|
|
3940
3960
|
}
|
|
3941
|
-
throw new
|
|
3961
|
+
throw new RuntimeError10("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfkey\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
3942
3962
|
}
|
|
3943
3963
|
function isExistSessionId(funcName, context) {
|
|
3944
3964
|
const { srfsessionid } = context;
|
|
3945
3965
|
if (!isNil4(srfsessionid) && !isEmpty4(srfsessionid)) {
|
|
3946
3966
|
return true;
|
|
3947
3967
|
}
|
|
3948
|
-
throw new
|
|
3968
|
+
throw new RuntimeError10("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
3949
3969
|
}
|
|
3950
3970
|
|
|
3951
3971
|
// src/service/utils/de-cache/de-cache.ts
|
|
@@ -4436,7 +4456,7 @@ var SearchFilter = class {
|
|
|
4436
4456
|
};
|
|
4437
4457
|
|
|
4438
4458
|
// src/service/service/code-list/code-list.service.ts
|
|
4439
|
-
import { RuntimeError as
|
|
4459
|
+
import { RuntimeError as RuntimeError11 } from "@ibiz-template/core";
|
|
4440
4460
|
var CodeListService = class {
|
|
4441
4461
|
constructor(appModel) {
|
|
4442
4462
|
this.appModel = appModel;
|
|
@@ -4583,7 +4603,7 @@ var CodeListService = class {
|
|
|
4583
4603
|
async get(tag, context, params) {
|
|
4584
4604
|
const codeList = this.allCodeLists.get(tag);
|
|
4585
4605
|
if (!codeList) {
|
|
4586
|
-
throw new
|
|
4606
|
+
throw new RuntimeError11("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
|
|
4587
4607
|
}
|
|
4588
4608
|
if (codeList.codeListType === "STATIC") {
|
|
4589
4609
|
return this.getStatic(codeList);
|
|
@@ -4705,11 +4725,11 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
|
4705
4725
|
// src/service/service/entity/de.service.ts
|
|
4706
4726
|
import {
|
|
4707
4727
|
ModelError as ModelError13,
|
|
4708
|
-
RuntimeError as
|
|
4728
|
+
RuntimeError as RuntimeError15
|
|
4709
4729
|
} from "@ibiz-template/core";
|
|
4710
4730
|
|
|
4711
4731
|
// src/service/service/work-flow/work-flow.service.ts
|
|
4712
|
-
import { RuntimeError as
|
|
4732
|
+
import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
|
|
4713
4733
|
var WorkFlowService = class {
|
|
4714
4734
|
/**
|
|
4715
4735
|
* Creates an instance of WorkFlowService.
|
|
@@ -5029,7 +5049,7 @@ var WorkFlowService = class {
|
|
|
5029
5049
|
case "sendcopy":
|
|
5030
5050
|
return this.wfSendCopy(context, params, data);
|
|
5031
5051
|
default: {
|
|
5032
|
-
throw new
|
|
5052
|
+
throw new RuntimeError12("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
|
|
5033
5053
|
}
|
|
5034
5054
|
}
|
|
5035
5055
|
}
|
|
@@ -5071,7 +5091,7 @@ var FileService = class {
|
|
|
5071
5091
|
// src/service/service/entity/method/de-action.ts
|
|
5072
5092
|
import {
|
|
5073
5093
|
HttpResponse as HttpResponse3,
|
|
5074
|
-
RuntimeError as
|
|
5094
|
+
RuntimeError as RuntimeError14,
|
|
5075
5095
|
RuntimeModelError as RuntimeModelError18
|
|
5076
5096
|
} from "@ibiz-template/core";
|
|
5077
5097
|
import { isArray as isArray6, isNil as isNil8 } from "lodash-es";
|
|
@@ -5101,11 +5121,11 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
5101
5121
|
* Creates an instance of AppDataEntity.
|
|
5102
5122
|
*
|
|
5103
5123
|
* @author chitanda
|
|
5104
|
-
* @date
|
|
5124
|
+
* @date 2023-11-16 15:11:08
|
|
5105
5125
|
* @param {IAppDataEntity} entity
|
|
5106
|
-
* @param {(IData | AppDataEntity)} data
|
|
5126
|
+
* @param {(IData | AppDataEntity)} [data={}]
|
|
5107
5127
|
*/
|
|
5108
|
-
constructor(entity, data) {
|
|
5128
|
+
constructor(entity, data = {}) {
|
|
5109
5129
|
Object.defineProperty(this, "_entity", {
|
|
5110
5130
|
enumerable: false,
|
|
5111
5131
|
configurable: true,
|
|
@@ -5663,7 +5683,7 @@ var Method = class {
|
|
|
5663
5683
|
};
|
|
5664
5684
|
|
|
5665
5685
|
// src/de-logic/index.ts
|
|
5666
|
-
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as
|
|
5686
|
+
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as RuntimeError13 } from "@ibiz-template/core";
|
|
5667
5687
|
import { isArray as isArray5 } from "lodash-es";
|
|
5668
5688
|
import { clone as clone9 } from "ramda";
|
|
5669
5689
|
|
|
@@ -6716,7 +6736,7 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
6716
6736
|
context.srfappid
|
|
6717
6737
|
);
|
|
6718
6738
|
if (!deLogic) {
|
|
6719
|
-
throw new
|
|
6739
|
+
throw new RuntimeError13("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
|
|
6720
6740
|
}
|
|
6721
6741
|
return execDELogic(deLogic, context, data, params);
|
|
6722
6742
|
}
|
|
@@ -6875,7 +6895,7 @@ var DEActionMethod = class extends Method {
|
|
|
6875
6895
|
*/
|
|
6876
6896
|
async create(context, data, params) {
|
|
6877
6897
|
if (!data) {
|
|
6878
|
-
throw new
|
|
6898
|
+
throw new RuntimeError14("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
6879
6899
|
}
|
|
6880
6900
|
if (this.isLocalMode) {
|
|
6881
6901
|
return this.createTemp(context, this.createEntity(data));
|
|
@@ -6917,7 +6937,7 @@ var DEActionMethod = class extends Method {
|
|
|
6917
6937
|
*/
|
|
6918
6938
|
async update(context, data, params) {
|
|
6919
6939
|
if (!data) {
|
|
6920
|
-
throw new
|
|
6940
|
+
throw new RuntimeError14("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
6921
6941
|
}
|
|
6922
6942
|
if (this.isLocalMode) {
|
|
6923
6943
|
return this.updateTemp(context, this.createEntity(data));
|
|
@@ -7389,7 +7409,7 @@ var DEService = class {
|
|
|
7389
7409
|
if (method) {
|
|
7390
7410
|
return method.exec(context, params, params2);
|
|
7391
7411
|
}
|
|
7392
|
-
throw new
|
|
7412
|
+
throw new RuntimeError15("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
7393
7413
|
}
|
|
7394
7414
|
/**
|
|
7395
7415
|
* 执行服务方法 ac 模式
|
|
@@ -7407,7 +7427,7 @@ var DEService = class {
|
|
|
7407
7427
|
if (method) {
|
|
7408
7428
|
return method.exec(context, params, params2);
|
|
7409
7429
|
}
|
|
7410
|
-
throw new
|
|
7430
|
+
throw new RuntimeError15("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
7411
7431
|
}
|
|
7412
7432
|
/**
|
|
7413
7433
|
* 实体级别 AI 聊天会话
|
|
@@ -7767,7 +7787,7 @@ var ControlService = class {
|
|
|
7767
7787
|
};
|
|
7768
7788
|
|
|
7769
7789
|
// src/service/service/control/md-control.service.ts
|
|
7770
|
-
import { RuntimeError as
|
|
7790
|
+
import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
|
|
7771
7791
|
import { isArray as isArray8 } from "qx-util";
|
|
7772
7792
|
var MDControlService = class extends ControlService {
|
|
7773
7793
|
/**
|
|
@@ -7876,7 +7896,7 @@ var MDControlService = class extends ControlService {
|
|
|
7876
7896
|
* @returns {*} {Promise<IHttpResponse>}
|
|
7877
7897
|
*/
|
|
7878
7898
|
async exportData(_dataExport, _context, _params = {}) {
|
|
7879
|
-
throw new
|
|
7899
|
+
throw new RuntimeError16("\u672A\u5B9E\u73B0");
|
|
7880
7900
|
}
|
|
7881
7901
|
/**
|
|
7882
7902
|
* 处理响应
|
|
@@ -7911,7 +7931,7 @@ var MDControlService = class extends ControlService {
|
|
|
7911
7931
|
};
|
|
7912
7932
|
|
|
7913
7933
|
// src/service/service/authority/authority.service.ts
|
|
7914
|
-
import { RuntimeError as
|
|
7934
|
+
import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
|
|
7915
7935
|
|
|
7916
7936
|
// src/service/service/authority/de-authority.service.ts
|
|
7917
7937
|
var DeAuthorityService = class {
|
|
@@ -8047,7 +8067,7 @@ var AuthorityService = class {
|
|
|
8047
8067
|
this.appModel.appId
|
|
8048
8068
|
);
|
|
8049
8069
|
if (!entityModel) {
|
|
8050
|
-
throw new
|
|
8070
|
+
throw new RuntimeError17("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
8051
8071
|
}
|
|
8052
8072
|
const constructor = this.constructorCache.get(id);
|
|
8053
8073
|
let service;
|
|
@@ -8152,6 +8172,32 @@ var V7AuthService = class {
|
|
|
8152
8172
|
}
|
|
8153
8173
|
};
|
|
8154
8174
|
|
|
8175
|
+
// src/service/service/async-action/async-action.service.ts
|
|
8176
|
+
var AsyncActionService = class {
|
|
8177
|
+
/**
|
|
8178
|
+
* 获取异步操作的集合
|
|
8179
|
+
* @author lxm
|
|
8180
|
+
* @date 2023-11-15 10:55:25
|
|
8181
|
+
* @param {IParams} [params={}]
|
|
8182
|
+
* @return {*} {Promise<IHttpResponse<IPortalAsyncAction[]>>}
|
|
8183
|
+
*/
|
|
8184
|
+
async fetch(params = {}) {
|
|
8185
|
+
const res = await ibiz.net.post("/portal/asyncaction/all", params);
|
|
8186
|
+
return res;
|
|
8187
|
+
}
|
|
8188
|
+
/**
|
|
8189
|
+
* 获取单条异步操作
|
|
8190
|
+
* @author lxm
|
|
8191
|
+
* @date 2023-11-15 10:57:08
|
|
8192
|
+
* @param {string} actionID
|
|
8193
|
+
* @return {*} {Promise<IHttpResponse<IPortalAsyncAction[]>>}
|
|
8194
|
+
*/
|
|
8195
|
+
async get(actionID) {
|
|
8196
|
+
const res = await ibiz.net.get("/portal/asyncaction/".concat(actionID));
|
|
8197
|
+
return res;
|
|
8198
|
+
}
|
|
8199
|
+
};
|
|
8200
|
+
|
|
8155
8201
|
// src/service/vo/tree-node-data/tree-node-data.ts
|
|
8156
8202
|
var TreeNodeData = class {
|
|
8157
8203
|
constructor(model, parentNodeData, opts) {
|
|
@@ -8688,7 +8734,7 @@ var MqttService = class {
|
|
|
8688
8734
|
};
|
|
8689
8735
|
|
|
8690
8736
|
// src/service/de-service-util.ts
|
|
8691
|
-
import { RuntimeError as
|
|
8737
|
+
import { RuntimeError as RuntimeError18 } from "@ibiz-template/core";
|
|
8692
8738
|
var DEServiceUtil = class {
|
|
8693
8739
|
/**
|
|
8694
8740
|
* Creates an instance of DEServiceUtil.
|
|
@@ -8743,7 +8789,7 @@ var DEServiceUtil = class {
|
|
|
8743
8789
|
this.appModel.appId
|
|
8744
8790
|
);
|
|
8745
8791
|
if (!entityModel) {
|
|
8746
|
-
throw new
|
|
8792
|
+
throw new RuntimeError18("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
8747
8793
|
}
|
|
8748
8794
|
const constructor = this.constructorCache.get(id);
|
|
8749
8795
|
let service;
|
|
@@ -8806,7 +8852,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
8806
8852
|
const context = clone13(_context);
|
|
8807
8853
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
8808
8854
|
if (!appView) {
|
|
8809
|
-
throw new
|
|
8855
|
+
throw new RuntimeError19("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
|
|
8810
8856
|
}
|
|
8811
8857
|
if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
|
|
8812
8858
|
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
@@ -8895,7 +8941,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
8895
8941
|
*/
|
|
8896
8942
|
async openPopover(appView, event, context, params = {}) {
|
|
8897
8943
|
if (!event) {
|
|
8898
|
-
throw new
|
|
8944
|
+
throw new RuntimeError19("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
|
|
8899
8945
|
}
|
|
8900
8946
|
return ibiz.openView.popover(appView.id, event, context, params);
|
|
8901
8947
|
}
|
|
@@ -8950,7 +8996,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
8950
8996
|
async exec(appFuncId, context, params = {}, opts = {}) {
|
|
8951
8997
|
const appFunc = ibiz.hub.getApp(context.srfappid).getAppFunc(appFuncId);
|
|
8952
8998
|
if (!appFunc) {
|
|
8953
|
-
throw new
|
|
8999
|
+
throw new RuntimeError20("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
|
|
8954
9000
|
}
|
|
8955
9001
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
8956
9002
|
const _context = context.clone();
|
|
@@ -8984,7 +9030,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
8984
9030
|
*/
|
|
8985
9031
|
async openAppView(appFunc, context, params, opts) {
|
|
8986
9032
|
if (!appFunc.appViewId) {
|
|
8987
|
-
throw new
|
|
9033
|
+
throw new RuntimeError20("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
|
|
8988
9034
|
}
|
|
8989
9035
|
return ibiz.commands.execute(
|
|
8990
9036
|
OpenAppViewCommand.TAG,
|
|
@@ -9018,7 +9064,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
9018
9064
|
*/
|
|
9019
9065
|
openPdAppFunc(appFunc, context, params) {
|
|
9020
9066
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
9021
|
-
throw new
|
|
9067
|
+
throw new RuntimeError20("\u672A\u5B9E\u73B0");
|
|
9022
9068
|
}
|
|
9023
9069
|
/**
|
|
9024
9070
|
* 执行 JavaScript 脚本
|
|
@@ -9032,7 +9078,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
9032
9078
|
*/
|
|
9033
9079
|
executeJavaScript(appFunc, context, params) {
|
|
9034
9080
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
9035
|
-
throw new
|
|
9081
|
+
throw new RuntimeError20("\u672A\u5B9E\u73B0");
|
|
9036
9082
|
}
|
|
9037
9083
|
/**
|
|
9038
9084
|
* 自定义应用功能
|
|
@@ -9046,7 +9092,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
9046
9092
|
*/
|
|
9047
9093
|
custom(appFunc, context, params) {
|
|
9048
9094
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
9049
|
-
throw new
|
|
9095
|
+
throw new RuntimeError20("\u672A\u5B9E\u73B0");
|
|
9050
9096
|
}
|
|
9051
9097
|
};
|
|
9052
9098
|
/**
|
|
@@ -9067,7 +9113,7 @@ function installCommand() {
|
|
|
9067
9113
|
}
|
|
9068
9114
|
|
|
9069
9115
|
// src/app-hub.ts
|
|
9070
|
-
import { RuntimeError as
|
|
9116
|
+
import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
|
|
9071
9117
|
|
|
9072
9118
|
// src/application.ts
|
|
9073
9119
|
import { Net, getToken } from "@ibiz-template/core";
|
|
@@ -9259,7 +9305,7 @@ var Convert = class {
|
|
|
9259
9305
|
};
|
|
9260
9306
|
|
|
9261
9307
|
// src/hub/config/app-view-config-service.ts
|
|
9262
|
-
import { RuntimeError as
|
|
9308
|
+
import { RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
9263
9309
|
var AppViewConfigService = class {
|
|
9264
9310
|
constructor() {
|
|
9265
9311
|
/**
|
|
@@ -9279,7 +9325,7 @@ var AppViewConfigService = class {
|
|
|
9279
9325
|
if (!this.viewConfigs.has(key)) {
|
|
9280
9326
|
const model = await ibiz.hub.getAppView(key);
|
|
9281
9327
|
if (!model) {
|
|
9282
|
-
throw new
|
|
9328
|
+
throw new RuntimeError21("\u89C6\u56FE[".concat(key, "]\u4E0D\u5B58\u5728"));
|
|
9283
9329
|
}
|
|
9284
9330
|
this.set(model.id, {
|
|
9285
9331
|
id: model.id,
|
|
@@ -9335,14 +9381,14 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
|
|
|
9335
9381
|
|
|
9336
9382
|
// src/controller/common/view/view.controller.ts
|
|
9337
9383
|
import { createUUID as createUUID6, notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
9338
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
9384
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError28 } from "@ibiz-template/core";
|
|
9339
9385
|
import { isEmpty as isEmpty8, isNil as isNil17, isNotNil as isNotNil2 } from "ramda";
|
|
9340
9386
|
|
|
9341
9387
|
// src/controller/utils/loading/loading.state.ts
|
|
9342
9388
|
import { NOOP } from "@ibiz-template/core";
|
|
9343
9389
|
|
|
9344
9390
|
// src/controller/utils/counter/counter.ts
|
|
9345
|
-
import { RuntimeError as
|
|
9391
|
+
import { RuntimeError as RuntimeError22 } from "@ibiz-template/core";
|
|
9346
9392
|
var Counter = class {
|
|
9347
9393
|
/**
|
|
9348
9394
|
* Creates an instance of Counter.
|
|
@@ -9404,7 +9450,7 @@ var Counter = class {
|
|
|
9404
9450
|
return;
|
|
9405
9451
|
}
|
|
9406
9452
|
if (this.count === 0) {
|
|
9407
|
-
throw new
|
|
9453
|
+
throw new RuntimeError22("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
9408
9454
|
}
|
|
9409
9455
|
this.count -= 1;
|
|
9410
9456
|
if (this.count === 0) {
|
|
@@ -9964,7 +10010,7 @@ function getOriginData(data) {
|
|
|
9964
10010
|
}
|
|
9965
10011
|
|
|
9966
10012
|
// src/controller/utils/value-rule/value-rule.ts
|
|
9967
|
-
import { RuntimeError as
|
|
10013
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
9968
10014
|
import { isNilOrEmpty as isNilOrEmpty7, isNumber } from "qx-util";
|
|
9969
10015
|
import { isNil as isNil13 } from "ramda";
|
|
9970
10016
|
function generateRules(itemVRs, name, valueItemName) {
|
|
@@ -10014,7 +10060,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
10014
10060
|
deRule.groupCond
|
|
10015
10061
|
);
|
|
10016
10062
|
if (!isPast) {
|
|
10017
|
-
callback(new
|
|
10063
|
+
callback(new RuntimeError23(infoMessage || deRule.ruleInfo));
|
|
10018
10064
|
}
|
|
10019
10065
|
return true;
|
|
10020
10066
|
},
|
|
@@ -10084,7 +10130,7 @@ function generateEditorRules(editor) {
|
|
|
10084
10130
|
}
|
|
10085
10131
|
|
|
10086
10132
|
// src/controller/utils/value-ex/value-ex.ts
|
|
10087
|
-
import { RuntimeError as
|
|
10133
|
+
import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
10088
10134
|
import { isNil as isNil14, mergeLeft } from "ramda";
|
|
10089
10135
|
var ValueExUtil = class {
|
|
10090
10136
|
/**
|
|
@@ -10116,7 +10162,7 @@ var ValueExUtil = class {
|
|
|
10116
10162
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
10117
10163
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
10118
10164
|
if (!objectNameField) {
|
|
10119
|
-
throw new
|
|
10165
|
+
throw new RuntimeError24("\u7F3A\u5C11objectNameField");
|
|
10120
10166
|
}
|
|
10121
10167
|
const textKey = objectNameField.toLowerCase();
|
|
10122
10168
|
if (valueType === "OBJECTS") {
|
|
@@ -10132,7 +10178,7 @@ var ValueExUtil = class {
|
|
|
10132
10178
|
};
|
|
10133
10179
|
|
|
10134
10180
|
// src/controller/utils/value-default/value-default.ts
|
|
10135
|
-
import { RuntimeError as
|
|
10181
|
+
import { RuntimeError as RuntimeError25, ModelError as ModelError16 } from "@ibiz-template/core";
|
|
10136
10182
|
import dayjs from "dayjs";
|
|
10137
10183
|
import { createUUID as createUUID5 } from "qx-util";
|
|
10138
10184
|
import { isNil as isNil15, isNotNil } from "ramda";
|
|
@@ -10173,7 +10219,7 @@ function getDefaultValue(opts, origins) {
|
|
|
10173
10219
|
case "SESSION":
|
|
10174
10220
|
case "APPLICATION":
|
|
10175
10221
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
10176
|
-
throw new
|
|
10222
|
+
throw new RuntimeError25("appdata.context\u4E0D\u5B58\u5728");
|
|
10177
10223
|
}
|
|
10178
10224
|
return ibiz.appData.context[defaultValue];
|
|
10179
10225
|
case "CONTEXT":
|
|
@@ -10187,31 +10233,20 @@ function getDefaultValue(opts, origins) {
|
|
|
10187
10233
|
|
|
10188
10234
|
// src/controller/utils/data-file-util/data-file-util.ts
|
|
10189
10235
|
import {
|
|
10190
|
-
RuntimeError as
|
|
10236
|
+
RuntimeError as RuntimeError26
|
|
10191
10237
|
} from "@ibiz-template/core";
|
|
10192
|
-
var asyncImportUrl = "
|
|
10193
|
-
var importUrl = "
|
|
10238
|
+
var asyncImportUrl = "asyncimportdata2";
|
|
10239
|
+
var importUrl = "importdata2";
|
|
10194
10240
|
function listenAsyncAction(id) {
|
|
10195
10241
|
return new Promise((resolve) => {
|
|
10196
10242
|
const callBack = (msg) => {
|
|
10197
10243
|
const messageid = msg.messageid || msg.data.asyncacitonid;
|
|
10198
|
-
if (id
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
} catch (error) {
|
|
10205
|
-
throw new RuntimeError25("\u89E3\u6790\u6570\u636E\u53D1\u751F\u9519\u8BEF");
|
|
10206
|
-
} finally {
|
|
10207
|
-
ibiz.mc.command.asyncAction.off(callBack);
|
|
10208
|
-
}
|
|
10209
|
-
} else if (msg.data.actionstate === 40) {
|
|
10210
|
-
resolve({
|
|
10211
|
-
total: 0,
|
|
10212
|
-
success: 0,
|
|
10213
|
-
message: msg.data.actionresult
|
|
10214
|
-
});
|
|
10244
|
+
if (id !== messageid) {
|
|
10245
|
+
return;
|
|
10246
|
+
}
|
|
10247
|
+
const state = msg.data.actionstate;
|
|
10248
|
+
if (state === 30 || state === 40) {
|
|
10249
|
+
resolve();
|
|
10215
10250
|
ibiz.mc.command.asyncAction.off(callBack);
|
|
10216
10251
|
}
|
|
10217
10252
|
};
|
|
@@ -10227,7 +10262,11 @@ async function asyncImportData(file, appDataEntity) {
|
|
|
10227
10262
|
data,
|
|
10228
10263
|
headers: { "Content-Type": "multipart/form-data" }
|
|
10229
10264
|
});
|
|
10230
|
-
|
|
10265
|
+
await listenAsyncAction(res.data.asyncacitonid);
|
|
10266
|
+
ibiz.mc.command.send(
|
|
10267
|
+
{ srfdecodename: appDataEntity.codeName },
|
|
10268
|
+
"OBJECTCREATED"
|
|
10269
|
+
);
|
|
10231
10270
|
}
|
|
10232
10271
|
async function importData(file, appDataEntity) {
|
|
10233
10272
|
const data = new FormData();
|
|
@@ -10242,11 +10281,11 @@ async function importData(file, appDataEntity) {
|
|
|
10242
10281
|
}
|
|
10243
10282
|
async function exportData(header, data, fileName) {
|
|
10244
10283
|
if (!ibiz.util.getExcelUtil) {
|
|
10245
|
-
throw new
|
|
10284
|
+
throw new RuntimeError26("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
10246
10285
|
}
|
|
10247
10286
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
10248
10287
|
if (!exportExcel) {
|
|
10249
|
-
throw new
|
|
10288
|
+
throw new RuntimeError26("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
10250
10289
|
}
|
|
10251
10290
|
try {
|
|
10252
10291
|
exportExcel.exportJsonToExcel({
|
|
@@ -10472,7 +10511,7 @@ var BaseController = class {
|
|
|
10472
10511
|
};
|
|
10473
10512
|
|
|
10474
10513
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
10475
|
-
import { RuntimeError as
|
|
10514
|
+
import { RuntimeError as RuntimeError27, RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
|
|
10476
10515
|
import { isNil as isNil16, mergeRight as mergeRight2 } from "ramda";
|
|
10477
10516
|
var ViewMsgController = class _ViewMsgController {
|
|
10478
10517
|
constructor(msgGroupId) {
|
|
@@ -10498,7 +10537,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
10498
10537
|
(item) => item.id === this.msgGroupId
|
|
10499
10538
|
);
|
|
10500
10539
|
if (!msgGroup) {
|
|
10501
|
-
throw new
|
|
10540
|
+
throw new RuntimeError27("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
|
|
10502
10541
|
}
|
|
10503
10542
|
this.msgGroup = msgGroup;
|
|
10504
10543
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -10512,7 +10551,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
10512
10551
|
}
|
|
10513
10552
|
});
|
|
10514
10553
|
if (msgDetailsViewMsgIds.length) {
|
|
10515
|
-
throw new
|
|
10554
|
+
throw new RuntimeError27(
|
|
10516
10555
|
"\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
|
|
10517
10556
|
);
|
|
10518
10557
|
}
|
|
@@ -10924,7 +10963,7 @@ var ViewController = class extends BaseController {
|
|
|
10924
10963
|
async callUIAction(key, args) {
|
|
10925
10964
|
const result = this.call(key, args);
|
|
10926
10965
|
if (result === void 0) {
|
|
10927
|
-
throw new
|
|
10966
|
+
throw new RuntimeError28("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
10928
10967
|
}
|
|
10929
10968
|
return result;
|
|
10930
10969
|
}
|
|
@@ -11515,7 +11554,7 @@ var ControlController = class extends BaseController {
|
|
|
11515
11554
|
};
|
|
11516
11555
|
|
|
11517
11556
|
// src/controller/common/control/md-control.controller.ts
|
|
11518
|
-
import { isElementSame, RuntimeError as
|
|
11557
|
+
import { isElementSame, RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
11519
11558
|
import { debounce } from "lodash-es";
|
|
11520
11559
|
var MDControlController = class extends ControlController {
|
|
11521
11560
|
constructor() {
|
|
@@ -11707,7 +11746,7 @@ var MDControlController = class extends ControlController {
|
|
|
11707
11746
|
async remove(args) {
|
|
11708
11747
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
11709
11748
|
if (!(data == null ? void 0 : data.length)) {
|
|
11710
|
-
throw new
|
|
11749
|
+
throw new RuntimeError29("\u672A\u9009\u4E2D\u6570\u636E");
|
|
11711
11750
|
}
|
|
11712
11751
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
11713
11752
|
const del = await ibiz.confirm.error({
|
|
@@ -11843,7 +11882,7 @@ var MDControlController = class extends ControlController {
|
|
|
11843
11882
|
(importItem) => importItem.id === dedataImportId
|
|
11844
11883
|
);
|
|
11845
11884
|
if (!dataImport) {
|
|
11846
|
-
throw new
|
|
11885
|
+
throw new RuntimeError29("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
11847
11886
|
}
|
|
11848
11887
|
const modal = ibiz.overlay.createModal(
|
|
11849
11888
|
"DataImport",
|
|
@@ -11873,7 +11912,7 @@ var MDControlController = class extends ControlController {
|
|
|
11873
11912
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
11874
11913
|
import {
|
|
11875
11914
|
findRecursiveChild,
|
|
11876
|
-
RuntimeError as
|
|
11915
|
+
RuntimeError as RuntimeError30,
|
|
11877
11916
|
RuntimeModelError as RuntimeModelError22
|
|
11878
11917
|
} from "@ibiz-template/core";
|
|
11879
11918
|
var AppMenuController = class extends ControlController {
|
|
@@ -11913,7 +11952,7 @@ var AppMenuController = class extends ControlController {
|
|
|
11913
11952
|
childrenFields: ["appMenuItems"]
|
|
11914
11953
|
});
|
|
11915
11954
|
if (!menuItem) {
|
|
11916
|
-
throw new
|
|
11955
|
+
throw new RuntimeError30("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
11917
11956
|
}
|
|
11918
11957
|
this.evt.emit("onClick", {
|
|
11919
11958
|
eventArg: id,
|
|
@@ -12003,7 +12042,7 @@ var AppMenuController = class extends ControlController {
|
|
|
12003
12042
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
12004
12043
|
import {
|
|
12005
12044
|
findRecursiveChild as findRecursiveChild2,
|
|
12006
|
-
RuntimeError as
|
|
12045
|
+
RuntimeError as RuntimeError31,
|
|
12007
12046
|
RuntimeModelError as RuntimeModelError23
|
|
12008
12047
|
} from "@ibiz-template/core";
|
|
12009
12048
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -12013,7 +12052,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
12013
12052
|
childrenFields: ["appMenuItems"]
|
|
12014
12053
|
});
|
|
12015
12054
|
if (!menuItem) {
|
|
12016
|
-
throw new
|
|
12055
|
+
throw new RuntimeError31("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
12017
12056
|
}
|
|
12018
12057
|
this.evt.emit("onClick", {
|
|
12019
12058
|
eventArg: id,
|
|
@@ -12041,7 +12080,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
12041
12080
|
import dayjs2 from "dayjs";
|
|
12042
12081
|
|
|
12043
12082
|
// src/controller/control/calendar/calendar.service.ts
|
|
12044
|
-
import { RuntimeError as
|
|
12083
|
+
import { RuntimeError as RuntimeError32 } from "@ibiz-template/core";
|
|
12045
12084
|
var CalendarService = class extends MDControlService {
|
|
12046
12085
|
/**
|
|
12047
12086
|
* 执行查询多条数据的方法
|
|
@@ -12091,11 +12130,11 @@ var CalendarService = class extends MDControlService {
|
|
|
12091
12130
|
setCalendarConfigData(items, index) {
|
|
12092
12131
|
const { sysCalendarItems } = this.model;
|
|
12093
12132
|
if (!sysCalendarItems) {
|
|
12094
|
-
throw new
|
|
12133
|
+
throw new RuntimeError32("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
12095
12134
|
}
|
|
12096
12135
|
const calendarItem = sysCalendarItems[index];
|
|
12097
12136
|
if (!calendarItem) {
|
|
12098
|
-
throw new
|
|
12137
|
+
throw new RuntimeError32("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
12099
12138
|
}
|
|
12100
12139
|
return items.map((item) => {
|
|
12101
12140
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -12285,11 +12324,11 @@ var CalendarController = class extends MDControlController {
|
|
|
12285
12324
|
};
|
|
12286
12325
|
|
|
12287
12326
|
// src/controller/control/chart/chart.controller.ts
|
|
12288
|
-
import { RuntimeError as
|
|
12327
|
+
import { RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
12289
12328
|
|
|
12290
12329
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
12291
12330
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
12292
|
-
import { RuntimeError as
|
|
12331
|
+
import { RuntimeError as RuntimeError33 } from "@ibiz-template/core";
|
|
12293
12332
|
|
|
12294
12333
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
12295
12334
|
import { RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
|
|
@@ -13235,7 +13274,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
13235
13274
|
getSrfkeyByParams(params) {
|
|
13236
13275
|
const generator = this.seriesGenerators[params.seriesIndex];
|
|
13237
13276
|
if (!generator) {
|
|
13238
|
-
throw new
|
|
13277
|
+
throw new RuntimeError33("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
|
|
13239
13278
|
}
|
|
13240
13279
|
return generator.getSrfkeyByParams(params);
|
|
13241
13280
|
}
|
|
@@ -13347,10 +13386,10 @@ var ChartController = class extends MDControlController {
|
|
|
13347
13386
|
*/
|
|
13348
13387
|
updateChart() {
|
|
13349
13388
|
if (!this.chart) {
|
|
13350
|
-
throw new
|
|
13389
|
+
throw new RuntimeError34("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
|
|
13351
13390
|
}
|
|
13352
13391
|
if (!this.options) {
|
|
13353
|
-
throw new
|
|
13392
|
+
throw new RuntimeError34("options\u8FD8\u6CA1\u8BA1\u7B97");
|
|
13354
13393
|
}
|
|
13355
13394
|
this.chart.setOption(this.options);
|
|
13356
13395
|
this.resizeChart();
|
|
@@ -13395,7 +13434,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
13395
13434
|
};
|
|
13396
13435
|
|
|
13397
13436
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
13398
|
-
import { recursiveIterate, RuntimeError as
|
|
13437
|
+
import { recursiveIterate, RuntimeError as RuntimeError42 } from "@ibiz-template/core";
|
|
13399
13438
|
|
|
13400
13439
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
13401
13440
|
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
@@ -13405,7 +13444,7 @@ import { isArray as isArray9 } from "qx-util";
|
|
|
13405
13444
|
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
13406
13445
|
|
|
13407
13446
|
// src/ui-logic/index.ts
|
|
13408
|
-
import { RuntimeError as
|
|
13447
|
+
import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
|
|
13409
13448
|
|
|
13410
13449
|
// src/ui-logic/ui-logic.ts
|
|
13411
13450
|
import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
@@ -13941,7 +13980,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
13941
13980
|
};
|
|
13942
13981
|
|
|
13943
13982
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
13944
|
-
import { ModelError as ModelError21, RuntimeError as
|
|
13983
|
+
import { ModelError as ModelError21, RuntimeError as RuntimeError35 } from "@ibiz-template/core";
|
|
13945
13984
|
import { clone as clone16 } from "ramda";
|
|
13946
13985
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
13947
13986
|
async exec(ctx) {
|
|
@@ -13991,7 +14030,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
13991
14030
|
setParamValue(nodeParam, ctx) {
|
|
13992
14031
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
13993
14032
|
if (!dstDEUILogicParamId) {
|
|
13994
|
-
throw new
|
|
14033
|
+
throw new RuntimeError35("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
|
|
13995
14034
|
}
|
|
13996
14035
|
let dstField = dstFieldName;
|
|
13997
14036
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -14108,7 +14147,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
14108
14147
|
};
|
|
14109
14148
|
|
|
14110
14149
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
14111
|
-
import { RuntimeError as
|
|
14150
|
+
import { RuntimeError as RuntimeError36, RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
14112
14151
|
import { isFunction } from "lodash-es";
|
|
14113
14152
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
14114
14153
|
async exec(ctx) {
|
|
@@ -14125,14 +14164,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
14125
14164
|
}
|
|
14126
14165
|
const invokeParam = ctx.params[invokeParamId];
|
|
14127
14166
|
if (!invokeParam) {
|
|
14128
|
-
throw new
|
|
14167
|
+
throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
14129
14168
|
}
|
|
14130
14169
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
14131
14170
|
if (!invokeCtrl) {
|
|
14132
|
-
throw new
|
|
14171
|
+
throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
14133
14172
|
}
|
|
14134
14173
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
14135
|
-
throw new
|
|
14174
|
+
throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
14136
14175
|
}
|
|
14137
14176
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
14138
14177
|
}
|
|
@@ -14358,16 +14397,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
14358
14397
|
};
|
|
14359
14398
|
|
|
14360
14399
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
14361
|
-
import { RuntimeError as
|
|
14400
|
+
import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
14362
14401
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
14363
14402
|
async exec(_ctx) {
|
|
14364
14403
|
const { errorInfo } = this.model;
|
|
14365
|
-
throw new
|
|
14404
|
+
throw new RuntimeError37(errorInfo);
|
|
14366
14405
|
}
|
|
14367
14406
|
};
|
|
14368
14407
|
|
|
14369
14408
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
14370
|
-
import { RuntimeError as
|
|
14409
|
+
import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
14371
14410
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
14372
14411
|
async exec(ctx) {
|
|
14373
14412
|
ctx.isEndNode = true;
|
|
@@ -14383,18 +14422,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
14383
14422
|
}
|
|
14384
14423
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
14385
14424
|
if (!invokeCtrl) {
|
|
14386
|
-
throw new
|
|
14425
|
+
throw new RuntimeError38("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
|
|
14387
14426
|
}
|
|
14388
14427
|
const eventParam = ctx.params[eventParamId];
|
|
14389
14428
|
if (!eventParam) {
|
|
14390
|
-
throw new
|
|
14429
|
+
throw new RuntimeError38("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
|
|
14391
14430
|
}
|
|
14392
14431
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
14393
14432
|
}
|
|
14394
14433
|
};
|
|
14395
14434
|
|
|
14396
14435
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
14397
|
-
import { RuntimeError as
|
|
14436
|
+
import { RuntimeError as RuntimeError39, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
14398
14437
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
14399
14438
|
async exec(ctx) {
|
|
14400
14439
|
const {
|
|
@@ -14414,7 +14453,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
14414
14453
|
}
|
|
14415
14454
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
14416
14455
|
if (!dstParam) {
|
|
14417
|
-
throw new
|
|
14456
|
+
throw new RuntimeError39("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
|
|
14418
14457
|
}
|
|
14419
14458
|
const result = await execDELogicById(
|
|
14420
14459
|
dstAppDELogicId,
|
|
@@ -14718,7 +14757,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
14718
14757
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
14719
14758
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
14720
14759
|
if (!deUILogic) {
|
|
14721
|
-
throw new
|
|
14760
|
+
throw new RuntimeError40(
|
|
14722
14761
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
14723
14762
|
);
|
|
14724
14763
|
}
|
|
@@ -14731,7 +14770,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
14731
14770
|
}
|
|
14732
14771
|
|
|
14733
14772
|
// src/ui-action/uiaction-util.ts
|
|
14734
|
-
import { RuntimeError as
|
|
14773
|
+
import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
|
|
14735
14774
|
var UIActionUtil = class {
|
|
14736
14775
|
/**
|
|
14737
14776
|
* 执行界面行为
|
|
@@ -14746,7 +14785,7 @@ var UIActionUtil = class {
|
|
|
14746
14785
|
static async exec(actionId, params) {
|
|
14747
14786
|
const action = await getUIActionById(actionId);
|
|
14748
14787
|
if (!action) {
|
|
14749
|
-
throw new
|
|
14788
|
+
throw new RuntimeError41("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
14750
14789
|
}
|
|
14751
14790
|
if (action.actionTarget === "SINGLEDATA") {
|
|
14752
14791
|
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
@@ -15287,7 +15326,7 @@ var ToolbarController = class extends ControlController {
|
|
|
15287
15326
|
const actionId = item.uiactionId;
|
|
15288
15327
|
const uiAction = await getUIActionById(actionId);
|
|
15289
15328
|
if (!uiAction) {
|
|
15290
|
-
throw new
|
|
15329
|
+
throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
|
|
15291
15330
|
}
|
|
15292
15331
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
15293
15332
|
if (enableLoading) {
|
|
@@ -16309,7 +16348,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
16309
16348
|
import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
16310
16349
|
|
|
16311
16350
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
16312
|
-
import { RuntimeError as
|
|
16351
|
+
import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
16313
16352
|
var ExpBarControlController = class extends ControlController {
|
|
16314
16353
|
constructor() {
|
|
16315
16354
|
super(...arguments);
|
|
@@ -16635,7 +16674,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
16635
16674
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
16636
16675
|
return this.XDataModel.navAppViewId;
|
|
16637
16676
|
}
|
|
16638
|
-
throw new
|
|
16677
|
+
throw new RuntimeError43("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
|
|
16639
16678
|
}
|
|
16640
16679
|
/**
|
|
16641
16680
|
* 获取导航视图
|
|
@@ -16778,7 +16817,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
16778
16817
|
};
|
|
16779
16818
|
|
|
16780
16819
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
16781
|
-
import { RuntimeError as
|
|
16820
|
+
import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
16782
16821
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
16783
16822
|
constructor() {
|
|
16784
16823
|
super(...arguments);
|
|
@@ -16853,7 +16892,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
16853
16892
|
const deData = node.deData || node;
|
|
16854
16893
|
const nodeModel = this.getNodeModel(node.nodeId);
|
|
16855
16894
|
if (!nodeModel) {
|
|
16856
|
-
throw new
|
|
16895
|
+
throw new RuntimeError44("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
|
|
16857
16896
|
}
|
|
16858
16897
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
16859
16898
|
result.context.currentSrfNav = nodeId;
|
|
@@ -17434,6 +17473,28 @@ var FormDetailState = class {
|
|
|
17434
17473
|
|
|
17435
17474
|
// src/controller/control/form/form-detail/form-detail/form-detail.controller.ts
|
|
17436
17475
|
import { isOverlap } from "@ibiz-template/core";
|
|
17476
|
+
|
|
17477
|
+
// src/interface/controller/event/argument/form-detail.event.ts
|
|
17478
|
+
var FormDetailEventName = /* @__PURE__ */ ((FormDetailEventName2) => {
|
|
17479
|
+
FormDetailEventName2["CLICK"] = "onClick";
|
|
17480
|
+
FormDetailEventName2["FOCUS"] = "onFocus";
|
|
17481
|
+
FormDetailEventName2["BLUR"] = "onBlur";
|
|
17482
|
+
FormDetailEventName2["CHANGE"] = "onChange";
|
|
17483
|
+
FormDetailEventName2["ENTER"] = "onEnter";
|
|
17484
|
+
return FormDetailEventName2;
|
|
17485
|
+
})(FormDetailEventName || {});
|
|
17486
|
+
|
|
17487
|
+
// src/interface/controller/event/argument/panel-item.event.ts
|
|
17488
|
+
var PanelItemEventName = /* @__PURE__ */ ((PanelItemEventName2) => {
|
|
17489
|
+
PanelItemEventName2["CLICK"] = "onClick";
|
|
17490
|
+
PanelItemEventName2["FOCUS"] = "onFocus";
|
|
17491
|
+
PanelItemEventName2["BLUR"] = "onBlur";
|
|
17492
|
+
PanelItemEventName2["CHANGE"] = "onChange";
|
|
17493
|
+
PanelItemEventName2["ENTER"] = "onEnter";
|
|
17494
|
+
return PanelItemEventName2;
|
|
17495
|
+
})(PanelItemEventName || {});
|
|
17496
|
+
|
|
17497
|
+
// src/controller/control/form/form-detail/form-detail/form-detail.controller.ts
|
|
17437
17498
|
var FormDetailController = class {
|
|
17438
17499
|
/**
|
|
17439
17500
|
* Creates an instance of FormDetailController.
|
|
@@ -17690,7 +17751,7 @@ var FormDetailController = class {
|
|
|
17690
17751
|
async onClick(event) {
|
|
17691
17752
|
this.form.evt.emit("onFormDetailEvent", {
|
|
17692
17753
|
formDetailName: this.model.id,
|
|
17693
|
-
formDetailEventName: "onClick"
|
|
17754
|
+
formDetailEventName: "onClick" /* CLICK */,
|
|
17694
17755
|
event
|
|
17695
17756
|
});
|
|
17696
17757
|
}
|
|
@@ -18322,7 +18383,7 @@ var FormItemController = class extends FormDetailController {
|
|
|
18322
18383
|
await this.form.setDataValue(name, value);
|
|
18323
18384
|
this.form.evt.emit("onFormDetailEvent", {
|
|
18324
18385
|
formDetailName: this.model.id,
|
|
18325
|
-
formDetailEventName: "onChange"
|
|
18386
|
+
formDetailEventName: "onChange" /* CHANGE */
|
|
18326
18387
|
});
|
|
18327
18388
|
}
|
|
18328
18389
|
/**
|
|
@@ -18357,7 +18418,7 @@ var FormItemController = class extends FormDetailController {
|
|
|
18357
18418
|
onFocus(event) {
|
|
18358
18419
|
this.form.evt.emit("onFormDetailEvent", {
|
|
18359
18420
|
formDetailName: this.model.id,
|
|
18360
|
-
formDetailEventName: "onFocus"
|
|
18421
|
+
formDetailEventName: "onFocus" /* FOCUS */,
|
|
18361
18422
|
event
|
|
18362
18423
|
});
|
|
18363
18424
|
}
|
|
@@ -18369,7 +18430,19 @@ var FormItemController = class extends FormDetailController {
|
|
|
18369
18430
|
onBlur(event) {
|
|
18370
18431
|
this.form.evt.emit("onFormDetailEvent", {
|
|
18371
18432
|
formDetailName: this.model.id,
|
|
18372
|
-
formDetailEventName: "onBlur"
|
|
18433
|
+
formDetailEventName: "onBlur" /* BLUR */,
|
|
18434
|
+
event
|
|
18435
|
+
});
|
|
18436
|
+
}
|
|
18437
|
+
/**
|
|
18438
|
+
* 回车事件
|
|
18439
|
+
* @author lxm
|
|
18440
|
+
* @date 2023-10-11 05:03:26
|
|
18441
|
+
*/
|
|
18442
|
+
onEnter(event) {
|
|
18443
|
+
this.form.evt.emit("onFormDetailEvent", {
|
|
18444
|
+
formDetailName: this.model.id,
|
|
18445
|
+
formDetailEventName: "onEnter" /* ENTER */,
|
|
18373
18446
|
event
|
|
18374
18447
|
});
|
|
18375
18448
|
}
|
|
@@ -18503,7 +18576,7 @@ var FormMDCtrlContentTypeController = class {
|
|
|
18503
18576
|
import { clone as clone19 } from "ramda";
|
|
18504
18577
|
|
|
18505
18578
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-control/form-mdctrl-control.controller.ts
|
|
18506
|
-
import { RuntimeError as
|
|
18579
|
+
import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
|
|
18507
18580
|
var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController {
|
|
18508
18581
|
/**
|
|
18509
18582
|
* 初始化
|
|
@@ -18518,7 +18591,7 @@ var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController
|
|
|
18518
18591
|
const { model } = this.parent;
|
|
18519
18592
|
const { contentControl } = model;
|
|
18520
18593
|
if (!contentControl) {
|
|
18521
|
-
throw new
|
|
18594
|
+
throw new RuntimeError45("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
18522
18595
|
}
|
|
18523
18596
|
this.controlModel = contentControl;
|
|
18524
18597
|
const controlProvider = await getControlProvider(this.controlModel);
|
|
@@ -18636,7 +18709,7 @@ import { isArray as isArray10 } from "lodash-es";
|
|
|
18636
18709
|
import {
|
|
18637
18710
|
awaitTimeout,
|
|
18638
18711
|
mergeInLeft,
|
|
18639
|
-
RuntimeError as
|
|
18712
|
+
RuntimeError as RuntimeError46,
|
|
18640
18713
|
mergeDefaultInLeft as mergeDefaultInLeft2
|
|
18641
18714
|
} from "@ibiz-template/core";
|
|
18642
18715
|
import { debounce as debounce2 } from "lodash-es";
|
|
@@ -19082,7 +19155,7 @@ var EditFormController = class extends FormController {
|
|
|
19082
19155
|
}
|
|
19083
19156
|
const isValid = await this.validate();
|
|
19084
19157
|
if (!isValid) {
|
|
19085
|
-
throw new
|
|
19158
|
+
throw new RuntimeError46("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
19086
19159
|
}
|
|
19087
19160
|
if (!silent) {
|
|
19088
19161
|
await this.startLoading();
|
|
@@ -19208,7 +19281,7 @@ var EditFormController = class extends FormController {
|
|
|
19208
19281
|
(item) => item.id === formItemUpdateId
|
|
19209
19282
|
);
|
|
19210
19283
|
if (!formItemUpdate) {
|
|
19211
|
-
throw new
|
|
19284
|
+
throw new RuntimeError46("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
|
|
19212
19285
|
}
|
|
19213
19286
|
const { appDEMethodId, defiupdateDetails, customCode, scriptCode } = formItemUpdate;
|
|
19214
19287
|
const updateItems = defiupdateDetails == null ? void 0 : defiupdateDetails.map((item) => item.id);
|
|
@@ -19252,7 +19325,7 @@ var EditFormController = class extends FormController {
|
|
|
19252
19325
|
async wfStart(args) {
|
|
19253
19326
|
const isValid = await this.validate();
|
|
19254
19327
|
if (!isValid) {
|
|
19255
|
-
throw new
|
|
19328
|
+
throw new RuntimeError46("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
19256
19329
|
}
|
|
19257
19330
|
await this.startLoading();
|
|
19258
19331
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -19283,7 +19356,7 @@ var EditFormController = class extends FormController {
|
|
|
19283
19356
|
async wfSubmit(args) {
|
|
19284
19357
|
const isValid = await this.validate();
|
|
19285
19358
|
if (!isValid) {
|
|
19286
|
-
throw new
|
|
19359
|
+
throw new RuntimeError46("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
19287
19360
|
}
|
|
19288
19361
|
await this.startLoading();
|
|
19289
19362
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -19515,7 +19588,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlControlController {
|
|
|
19515
19588
|
};
|
|
19516
19589
|
|
|
19517
19590
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts
|
|
19518
|
-
import { RuntimeError as
|
|
19591
|
+
import { RuntimeError as RuntimeError47, mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
|
|
19519
19592
|
var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
19520
19593
|
constructor() {
|
|
19521
19594
|
super(...arguments);
|
|
@@ -19627,7 +19700,7 @@ var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
|
19627
19700
|
const { model } = this.parent;
|
|
19628
19701
|
const { contentControl } = model;
|
|
19629
19702
|
if (!contentControl) {
|
|
19630
|
-
throw new
|
|
19703
|
+
throw new RuntimeError47("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
19631
19704
|
}
|
|
19632
19705
|
mergeInLeft3(contentControl, { enableRowEdit: true, enableRowNew: true });
|
|
19633
19706
|
this.controlModel = contentControl;
|
|
@@ -20421,7 +20494,7 @@ import {
|
|
|
20421
20494
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
20422
20495
|
mergeDefaultInLeft as mergeDefaultInLeft3,
|
|
20423
20496
|
recursiveIterate as recursiveIterate5,
|
|
20424
|
-
RuntimeError as
|
|
20497
|
+
RuntimeError as RuntimeError48,
|
|
20425
20498
|
RuntimeModelError as RuntimeModelError53
|
|
20426
20499
|
} from "@ibiz-template/core";
|
|
20427
20500
|
import { clone as clone21 } from "ramda";
|
|
@@ -20795,7 +20868,7 @@ var GridController = class extends MDControlController {
|
|
|
20795
20868
|
if (editShowMode === "row") {
|
|
20796
20869
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
20797
20870
|
if (editingRow) {
|
|
20798
|
-
throw new
|
|
20871
|
+
throw new RuntimeError48("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
|
|
20799
20872
|
}
|
|
20800
20873
|
}
|
|
20801
20874
|
const queryParams = { ...this.params };
|
|
@@ -20836,7 +20909,7 @@ var GridController = class extends MDControlController {
|
|
|
20836
20909
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
20837
20910
|
const rowState = this.findRowState(data);
|
|
20838
20911
|
if (!rowState) {
|
|
20839
|
-
throw new
|
|
20912
|
+
throw new RuntimeError48("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
20840
20913
|
}
|
|
20841
20914
|
if (!rowState.modified) {
|
|
20842
20915
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -20848,7 +20921,7 @@ var GridController = class extends MDControlController {
|
|
|
20848
20921
|
}
|
|
20849
20922
|
const isValid = await this.validate(rowState);
|
|
20850
20923
|
if (!isValid) {
|
|
20851
|
-
throw new
|
|
20924
|
+
throw new RuntimeError48("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
|
|
20852
20925
|
}
|
|
20853
20926
|
let res;
|
|
20854
20927
|
const deName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
@@ -21045,7 +21118,7 @@ var GridController = class extends MDControlController {
|
|
|
21045
21118
|
}
|
|
21046
21119
|
async toggleRowEdit() {
|
|
21047
21120
|
if (!this.model.enableRowNew) {
|
|
21048
|
-
throw new
|
|
21121
|
+
throw new RuntimeError48("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
|
|
21049
21122
|
}
|
|
21050
21123
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
21051
21124
|
}
|
|
@@ -21078,7 +21151,7 @@ var GridController = class extends MDControlController {
|
|
|
21078
21151
|
} else {
|
|
21079
21152
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
21080
21153
|
if (editingRow) {
|
|
21081
|
-
throw new
|
|
21154
|
+
throw new RuntimeError48("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
21082
21155
|
}
|
|
21083
21156
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
21084
21157
|
row.cacheData = clone21(row.data);
|
|
@@ -21128,7 +21201,7 @@ var GridController = class extends MDControlController {
|
|
|
21128
21201
|
(item) => item.id === updateId
|
|
21129
21202
|
);
|
|
21130
21203
|
if (!findUpdate) {
|
|
21131
|
-
throw new
|
|
21204
|
+
throw new RuntimeError48("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
|
|
21132
21205
|
}
|
|
21133
21206
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
21134
21207
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -21220,7 +21293,7 @@ var GridController = class extends MDControlController {
|
|
|
21220
21293
|
data2 = this.getData();
|
|
21221
21294
|
}
|
|
21222
21295
|
if (data2.length === 0) {
|
|
21223
|
-
throw new
|
|
21296
|
+
throw new RuntimeError48("\u65E0\u5BFC\u51FA\u6570\u636E");
|
|
21224
21297
|
}
|
|
21225
21298
|
return formatExcelData(data2);
|
|
21226
21299
|
};
|
|
@@ -21601,7 +21674,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
21601
21674
|
};
|
|
21602
21675
|
|
|
21603
21676
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
21604
|
-
import { RuntimeError as
|
|
21677
|
+
import { RuntimeError as RuntimeError49 } from "@ibiz-template/core";
|
|
21605
21678
|
import Schema2 from "async-validator";
|
|
21606
21679
|
import { isNilOrEmpty as isNilOrEmpty9 } from "qx-util";
|
|
21607
21680
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -21738,7 +21811,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
21738
21811
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
21739
21812
|
const result = await this.validate(row);
|
|
21740
21813
|
if (!result) {
|
|
21741
|
-
throw new
|
|
21814
|
+
throw new RuntimeError49(
|
|
21742
21815
|
"".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
|
|
21743
21816
|
);
|
|
21744
21817
|
}
|
|
@@ -22096,7 +22169,7 @@ var ListController = class extends MDControlController {
|
|
|
22096
22169
|
};
|
|
22097
22170
|
|
|
22098
22171
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
22099
|
-
import { recursiveIterate as recursiveIterate6, RuntimeError as
|
|
22172
|
+
import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError50 } from "@ibiz-template/core";
|
|
22100
22173
|
var PanelController = class extends ControlController {
|
|
22101
22174
|
constructor() {
|
|
22102
22175
|
super(...arguments);
|
|
@@ -22219,7 +22292,7 @@ var PanelController = class extends ControlController {
|
|
|
22219
22292
|
var _a, _b;
|
|
22220
22293
|
const data = await this.prepareData();
|
|
22221
22294
|
if (!data) {
|
|
22222
|
-
throw new
|
|
22295
|
+
throw new RuntimeError50("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
|
|
22223
22296
|
}
|
|
22224
22297
|
const panelData = this.convertData(data);
|
|
22225
22298
|
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
@@ -22717,7 +22790,7 @@ var PanelItemController = class {
|
|
|
22717
22790
|
onClick() {
|
|
22718
22791
|
this.panel.evt.emit("onPanelItemEvent", {
|
|
22719
22792
|
panelItemName: this.model.id,
|
|
22720
|
-
panelItemEventName: "onClick"
|
|
22793
|
+
panelItemEventName: "onClick" /* CLICK */
|
|
22721
22794
|
});
|
|
22722
22795
|
}
|
|
22723
22796
|
};
|
|
@@ -23876,7 +23949,7 @@ var TreeController = class extends MDControlController {
|
|
|
23876
23949
|
};
|
|
23877
23950
|
|
|
23878
23951
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
23879
|
-
import { RuntimeError as
|
|
23952
|
+
import { RuntimeError as RuntimeError51 } from "@ibiz-template/core";
|
|
23880
23953
|
|
|
23881
23954
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
23882
23955
|
var WizardPanelService = class extends ControlService {
|
|
@@ -24035,7 +24108,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24035
24108
|
const { activeFormTag } = this.state;
|
|
24036
24109
|
const controller = this.formControllers.get(activeFormTag);
|
|
24037
24110
|
if (!controller) {
|
|
24038
|
-
throw new
|
|
24111
|
+
throw new RuntimeError51("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
24039
24112
|
}
|
|
24040
24113
|
return controller;
|
|
24041
24114
|
}
|
|
@@ -24075,7 +24148,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24075
24148
|
getWizardFormByTag(tag) {
|
|
24076
24149
|
var _a;
|
|
24077
24150
|
if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
|
|
24078
|
-
throw new
|
|
24151
|
+
throw new RuntimeError51("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
|
|
24079
24152
|
return;
|
|
24080
24153
|
}
|
|
24081
24154
|
const wizardForm = this.model.dewizard.dewizardForms.find(
|
|
@@ -24084,7 +24157,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24084
24157
|
}
|
|
24085
24158
|
);
|
|
24086
24159
|
if (!wizardForm) {
|
|
24087
|
-
throw new
|
|
24160
|
+
throw new RuntimeError51("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
|
|
24088
24161
|
}
|
|
24089
24162
|
return wizardForm;
|
|
24090
24163
|
}
|
|
@@ -24151,7 +24224,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24151
24224
|
this.tagHistory.pop();
|
|
24152
24225
|
}
|
|
24153
24226
|
if (!prevTag) {
|
|
24154
|
-
throw new
|
|
24227
|
+
throw new RuntimeError51("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
|
|
24155
24228
|
}
|
|
24156
24229
|
this.state.activeFormTag = prevTag;
|
|
24157
24230
|
}
|
|
@@ -24187,7 +24260,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24187
24260
|
});
|
|
24188
24261
|
const nextWizardStep = wizardSteps[index + 1];
|
|
24189
24262
|
if (!nextWizardStep) {
|
|
24190
|
-
throw new
|
|
24263
|
+
throw new RuntimeError51("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
|
|
24191
24264
|
}
|
|
24192
24265
|
const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
|
|
24193
24266
|
if (nextWizardForm && nextWizardForm.formTag) {
|
|
@@ -24196,7 +24269,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24196
24269
|
}
|
|
24197
24270
|
}
|
|
24198
24271
|
if (!nextTag) {
|
|
24199
|
-
throw new
|
|
24272
|
+
throw new RuntimeError51("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
|
|
24200
24273
|
}
|
|
24201
24274
|
this.state.activeFormTag = nextTag;
|
|
24202
24275
|
this.tagHistory.push(nextTag);
|
|
@@ -24535,7 +24608,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
24535
24608
|
};
|
|
24536
24609
|
|
|
24537
24610
|
// src/controller/control/kanban/kanban.controller.ts
|
|
24538
|
-
import { RuntimeError as
|
|
24611
|
+
import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
|
|
24539
24612
|
import { isNil as isNil24 } from "ramda";
|
|
24540
24613
|
|
|
24541
24614
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -24623,7 +24696,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
24623
24696
|
} else {
|
|
24624
24697
|
const toNum = Number(sortValue);
|
|
24625
24698
|
if (Number.isNaN(toNum)) {
|
|
24626
|
-
throw new
|
|
24699
|
+
throw new RuntimeError52(
|
|
24627
24700
|
"".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
|
|
24628
24701
|
);
|
|
24629
24702
|
}
|
|
@@ -24639,7 +24712,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
24639
24712
|
}
|
|
24640
24713
|
handleDataGroup() {
|
|
24641
24714
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
24642
|
-
throw new
|
|
24715
|
+
throw new RuntimeError52("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
|
|
24643
24716
|
}
|
|
24644
24717
|
return super.handleDataGroup();
|
|
24645
24718
|
}
|
|
@@ -25133,7 +25206,7 @@ var TreeGridService = class extends GridService {
|
|
|
25133
25206
|
};
|
|
25134
25207
|
|
|
25135
25208
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
25136
|
-
import { RuntimeError as
|
|
25209
|
+
import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
|
|
25137
25210
|
import { createUUID as createUUID9 } from "qx-util";
|
|
25138
25211
|
|
|
25139
25212
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -25348,7 +25421,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
25348
25421
|
(item) => item.id === id
|
|
25349
25422
|
);
|
|
25350
25423
|
if (panelUiItemIndex < 0) {
|
|
25351
|
-
throw new
|
|
25424
|
+
throw new RuntimeError53("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
|
|
25352
25425
|
}
|
|
25353
25426
|
const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
|
|
25354
25427
|
if (tempUiItem.id.startsWith("mockId:")) {
|
|
@@ -25763,7 +25836,7 @@ var AppHub = class {
|
|
|
25763
25836
|
this.registerAppView(appView);
|
|
25764
25837
|
return appView;
|
|
25765
25838
|
}
|
|
25766
|
-
throw new
|
|
25839
|
+
throw new RuntimeError54("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
25767
25840
|
}
|
|
25768
25841
|
/**
|
|
25769
25842
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -25794,7 +25867,7 @@ var AppHub = class {
|
|
|
25794
25867
|
this.registerAppDataEntity(entity, appId);
|
|
25795
25868
|
return entity;
|
|
25796
25869
|
}
|
|
25797
|
-
throw new
|
|
25870
|
+
throw new RuntimeError54("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
25798
25871
|
}
|
|
25799
25872
|
/**
|
|
25800
25873
|
* 新建 hub 应用
|
|
@@ -25815,7 +25888,7 @@ var AppHub = class {
|
|
|
25815
25888
|
appModel = await this.modelLoaderProvider.getApp(id);
|
|
25816
25889
|
this.registerApp(appModel);
|
|
25817
25890
|
} else {
|
|
25818
|
-
throw new
|
|
25891
|
+
throw new RuntimeError54("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
|
|
25819
25892
|
}
|
|
25820
25893
|
const app = new Application(appModel);
|
|
25821
25894
|
this.appMap.set(id, app);
|
|
@@ -25913,7 +25986,7 @@ var EngineFactory = class {
|
|
|
25913
25986
|
};
|
|
25914
25987
|
|
|
25915
25988
|
// src/engine/view-base.engine.ts
|
|
25916
|
-
import { RuntimeError as
|
|
25989
|
+
import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
|
|
25917
25990
|
var ViewEngineBase = class {
|
|
25918
25991
|
/**
|
|
25919
25992
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -26101,7 +26174,7 @@ var ViewEngineBase = class {
|
|
|
26101
26174
|
const { appDataEntityId } = this.view.model;
|
|
26102
26175
|
const { evt, context, params } = this.view;
|
|
26103
26176
|
if (!appDataEntityId) {
|
|
26104
|
-
throw new
|
|
26177
|
+
throw new RuntimeError55("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
26105
26178
|
}
|
|
26106
26179
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
26107
26180
|
const res = await app.deService.exec(
|
|
@@ -26458,7 +26531,7 @@ import {
|
|
|
26458
26531
|
ModelError as ModelError28,
|
|
26459
26532
|
HttpError as HttpError4,
|
|
26460
26533
|
NoticeError as NoticeError2,
|
|
26461
|
-
RuntimeError as
|
|
26534
|
+
RuntimeError as RuntimeError56
|
|
26462
26535
|
} from "@ibiz-template/core";
|
|
26463
26536
|
var DefaultErrorHandler = class {
|
|
26464
26537
|
handle(error) {
|
|
@@ -26476,7 +26549,7 @@ var DefaultErrorHandler = class {
|
|
|
26476
26549
|
}
|
|
26477
26550
|
} else if (error instanceof NoticeError2) {
|
|
26478
26551
|
ibiz.message.error(error.message, error.duration, error.duration === 0);
|
|
26479
|
-
} else if (error instanceof
|
|
26552
|
+
} else if (error instanceof RuntimeError56) {
|
|
26480
26553
|
ibiz.message.error(error.message, 10, true);
|
|
26481
26554
|
}
|
|
26482
26555
|
ibiz.log.error(error);
|
|
@@ -26604,7 +26677,7 @@ var GlobalUtil = class {
|
|
|
26604
26677
|
};
|
|
26605
26678
|
|
|
26606
26679
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
26607
|
-
import { RuntimeError as
|
|
26680
|
+
import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
|
|
26608
26681
|
var LogicExecutor = class {
|
|
26609
26682
|
/**
|
|
26610
26683
|
* @author lxm
|
|
@@ -26625,7 +26698,7 @@ var LogicExecutor = class {
|
|
|
26625
26698
|
*/
|
|
26626
26699
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26627
26700
|
execute(_executeParams) {
|
|
26628
|
-
throw new
|
|
26701
|
+
throw new RuntimeError57("Method not implemented.");
|
|
26629
26702
|
}
|
|
26630
26703
|
/**
|
|
26631
26704
|
* 销毁方法
|
|
@@ -27062,7 +27135,7 @@ var LogicSchedulerCenter = class {
|
|
|
27062
27135
|
};
|
|
27063
27136
|
|
|
27064
27137
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
27065
|
-
import { RuntimeError as
|
|
27138
|
+
import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
|
|
27066
27139
|
var LogicTrigger = class {
|
|
27067
27140
|
/**
|
|
27068
27141
|
* @author lxm
|
|
@@ -27122,7 +27195,7 @@ var LogicTrigger = class {
|
|
|
27122
27195
|
if (this.executor) {
|
|
27123
27196
|
return this.executor.execute(executeParams);
|
|
27124
27197
|
}
|
|
27125
|
-
throw new
|
|
27198
|
+
throw new RuntimeError58("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
27126
27199
|
}
|
|
27127
27200
|
/**
|
|
27128
27201
|
* 销毁方法
|
|
@@ -27139,12 +27212,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
27139
27212
|
};
|
|
27140
27213
|
|
|
27141
27214
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
27142
|
-
import { RuntimeError as
|
|
27215
|
+
import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
|
|
27143
27216
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
27144
27217
|
bindExecutor(executor) {
|
|
27145
27218
|
super.bindExecutor(executor);
|
|
27146
27219
|
if (this.executor.type !== "SCRIPT") {
|
|
27147
|
-
throw new
|
|
27220
|
+
throw new RuntimeError59(
|
|
27148
27221
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
27149
27222
|
);
|
|
27150
27223
|
}
|
|
@@ -27180,7 +27253,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
27180
27253
|
};
|
|
27181
27254
|
|
|
27182
27255
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
27183
|
-
import { RuntimeError as
|
|
27256
|
+
import { RuntimeError as RuntimeError60, RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
|
|
27184
27257
|
var TimerTrigger = class extends LogicTrigger {
|
|
27185
27258
|
constructor() {
|
|
27186
27259
|
super(...arguments);
|
|
@@ -27192,7 +27265,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
27192
27265
|
}
|
|
27193
27266
|
this.timer = setInterval(() => {
|
|
27194
27267
|
if (!this.scheduler.defaultParamsCb) {
|
|
27195
|
-
throw new
|
|
27268
|
+
throw new RuntimeError60("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
27196
27269
|
}
|
|
27197
27270
|
const params = this.scheduler.defaultParamsCb();
|
|
27198
27271
|
this.executor.execute(params);
|
|
@@ -27209,7 +27282,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
27209
27282
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
27210
27283
|
import {
|
|
27211
27284
|
ModelError as ModelError31,
|
|
27212
|
-
RuntimeError as
|
|
27285
|
+
RuntimeError as RuntimeError61,
|
|
27213
27286
|
RuntimeModelError as RuntimeModelError62
|
|
27214
27287
|
} from "@ibiz-template/core";
|
|
27215
27288
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -27242,7 +27315,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
27242
27315
|
const { context, params, ...rest } = parameters;
|
|
27243
27316
|
const { data } = parameters;
|
|
27244
27317
|
if (!(data == null ? void 0 : data[0])) {
|
|
27245
|
-
throw new
|
|
27318
|
+
throw new RuntimeError61("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
27246
27319
|
}
|
|
27247
27320
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
27248
27321
|
let openViewRef;
|
|
@@ -27301,7 +27374,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
27301
27374
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
27302
27375
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
27303
27376
|
if (!findView) {
|
|
27304
|
-
throw new
|
|
27377
|
+
throw new RuntimeError61(
|
|
27305
27378
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
27306
27379
|
);
|
|
27307
27380
|
}
|
|
@@ -27419,12 +27492,12 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
27419
27492
|
}
|
|
27420
27493
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
27421
27494
|
if (!selectData) {
|
|
27422
|
-
throw new
|
|
27495
|
+
throw new RuntimeError61("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
27423
27496
|
}
|
|
27424
27497
|
const indexType = selectData.srfkey;
|
|
27425
27498
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
|
|
27426
27499
|
if (!findView) {
|
|
27427
|
-
throw new
|
|
27500
|
+
throw new RuntimeError61(
|
|
27428
27501
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
27429
27502
|
);
|
|
27430
27503
|
}
|
|
@@ -27625,6 +27698,7 @@ function install() {
|
|
|
27625
27698
|
ibiz2.register = new RegisterCenter();
|
|
27626
27699
|
ibiz2.config = new GlobalConfig();
|
|
27627
27700
|
ibiz2.auth = new V7AuthService();
|
|
27701
|
+
ibiz2.asyncAction = new AsyncActionService();
|
|
27628
27702
|
ibiz2.engine = new EngineFactory();
|
|
27629
27703
|
installCommand();
|
|
27630
27704
|
presetUIActionProvider();
|
|
@@ -27719,6 +27793,7 @@ var RemotePluginItem = class {
|
|
|
27719
27793
|
};
|
|
27720
27794
|
export {
|
|
27721
27795
|
APP_COUNTER_PROVIDER_PREFIX,
|
|
27796
|
+
ASYNC_ACTION_PROVIDER_PREFIX,
|
|
27722
27797
|
ActionBarPortletController,
|
|
27723
27798
|
ActivityCounter,
|
|
27724
27799
|
AppCounter,
|
|
@@ -27729,6 +27804,7 @@ export {
|
|
|
27729
27804
|
AppMenuController,
|
|
27730
27805
|
AppMenuIconViewController,
|
|
27731
27806
|
Application,
|
|
27807
|
+
AsyncActionService,
|
|
27732
27808
|
AuthorityService,
|
|
27733
27809
|
BackendUIActionProvider,
|
|
27734
27810
|
BaseController,
|
|
@@ -27779,6 +27855,7 @@ export {
|
|
|
27779
27855
|
FormController,
|
|
27780
27856
|
FormDRUIPartController,
|
|
27781
27857
|
FormDetailController,
|
|
27858
|
+
FormDetailEventName,
|
|
27782
27859
|
FormDetailState,
|
|
27783
27860
|
FormDruipartState,
|
|
27784
27861
|
FormGroupPanelController,
|
|
@@ -27850,6 +27927,7 @@ export {
|
|
|
27850
27927
|
PanelController,
|
|
27851
27928
|
PanelData,
|
|
27852
27929
|
PanelItemController,
|
|
27930
|
+
PanelItemEventName,
|
|
27853
27931
|
PanelItemState,
|
|
27854
27932
|
PanelNotifyState,
|
|
27855
27933
|
PickupViewPanelController,
|
|
@@ -27942,6 +28020,7 @@ export {
|
|
|
27942
28020
|
getAllPanelField,
|
|
27943
28021
|
getAppCounterProvider,
|
|
27944
28022
|
getAppViewRef,
|
|
28023
|
+
getAsyncActionProvider,
|
|
27945
28024
|
getChildNodeRSs,
|
|
27946
28025
|
getControl,
|
|
27947
28026
|
getControlProvider,
|
|
@@ -27980,6 +28059,7 @@ export {
|
|
|
27980
28059
|
presetAppCounterProvider,
|
|
27981
28060
|
presetUIActionProvider,
|
|
27982
28061
|
registerAppCounterProvider,
|
|
28062
|
+
registerAsyncActionProvider,
|
|
27983
28063
|
registerControlProvider,
|
|
27984
28064
|
registerEditorProvider,
|
|
27985
28065
|
registerFormDetailProvider,
|