@ibiz-template/runtime 0.2.18-dev.1 → 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 +363 -195
- package/dist/index.system.min.js +2 -2
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +5 -0
- package/out/controller/control/form/form-detail/form-button/form-button.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-button/form-button.controller.js +1 -0
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts +6 -0
- 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 +13 -0
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts +18 -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 +41 -0
- 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 +48 -0
- package/out/interface/controller/event/argument/form-detail.event.d.ts.map +1 -0
- package/out/interface/controller/event/argument/form-detail.event.js +24 -0
- package/out/interface/controller/event/argument/index.d.ts +3 -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/controller/event/control/i-form.event.d.ts +13 -1
- package/out/interface/controller/event/control/i-form.event.d.ts.map +1 -1
- package/out/interface/controller/event/view/i-map-view.event.d.ts +12 -0
- package/out/interface/controller/event/view/i-map-view.event.d.ts.map +1 -0
- package/out/interface/controller/event/view/i-map-view.event.js +1 -0
- package/out/interface/controller/event/view/index.d.ts +1 -0
- package/out/interface/controller/event/view/index.d.ts.map +1 -1
- package/out/interface/controller/event/view/index.js +1 -0
- package/out/interface/controller/state/view/i-map-view.state.d.ts +11 -0
- package/out/interface/controller/state/view/i-map-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-map-view.state.js +1 -0
- package/out/interface/controller/state/view/index.d.ts +1 -0
- package/out/interface/controller/state/view/index.d.ts.map +1 -1
- package/out/interface/controller/state/view/index.js +1 -0
- 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/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +7 -2
- 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/dto/method.dto.d.ts +14 -0
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +63 -23
- 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/out/utils/handlebars/handlebars.d.ts.map +1 -1
- package/out/utils/handlebars/handlebars.js +3 -1
- package/package.json +3 -3
- package/src/controller/control/form/form/form.controller.ts +9 -0
- package/src/controller/control/form/form-detail/form-button/form-button.controller.ts +1 -0
- package/src/controller/control/form/form-detail/form-detail/form-detail.controller.ts +14 -0
- package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +44 -0
- 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 +51 -0
- package/src/interface/controller/event/argument/index.ts +3 -0
- package/src/interface/controller/event/argument/panel-item.event.ts +25 -1
- package/src/interface/controller/event/control/i-form.event.ts +14 -1
- package/src/interface/controller/event/view/i-map-view.event.ts +12 -0
- package/src/interface/controller/event/view/index.ts +1 -0
- package/src/interface/controller/state/view/i-map-view.state.ts +10 -0
- package/src/interface/controller/state/view/index.ts +1 -0
- 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/model/utils/util.ts +7 -4
- 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/dto/method.dto.ts +70 -26
- 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/src/utils/handlebars/handlebars.ts +3 -1
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 {
|
|
@@ -463,7 +463,8 @@ var HandlebarsUtil = class {
|
|
|
463
463
|
return this.p;
|
|
464
464
|
}
|
|
465
465
|
this.p = import("handlebars");
|
|
466
|
-
|
|
466
|
+
const module = await this.p;
|
|
467
|
+
this.hsb = module.default || module;
|
|
467
468
|
this.p = null;
|
|
468
469
|
installHelpers(this.hsb);
|
|
469
470
|
return this.hsb;
|
|
@@ -622,10 +623,13 @@ import qs from "qs";
|
|
|
622
623
|
|
|
623
624
|
// src/model/utils/util.ts
|
|
624
625
|
function findModelChild(models, id) {
|
|
625
|
-
if (models) {
|
|
626
|
-
const model = models.find(
|
|
627
|
-
(item
|
|
628
|
-
|
|
626
|
+
if (models && id) {
|
|
627
|
+
const model = models.find((item) => {
|
|
628
|
+
if (item.id) {
|
|
629
|
+
return item.id.toLowerCase() === id.toLowerCase();
|
|
630
|
+
}
|
|
631
|
+
return false;
|
|
632
|
+
});
|
|
629
633
|
if (model) {
|
|
630
634
|
return model;
|
|
631
635
|
}
|
|
@@ -2576,7 +2580,7 @@ async function handleAllSettled(values, isThrow = true) {
|
|
|
2576
2580
|
}
|
|
2577
2581
|
|
|
2578
2582
|
// src/command/app/open-app-view/open-app-view.ts
|
|
2579
|
-
import { ModelError as ModelError14, RuntimeError as
|
|
2583
|
+
import { ModelError as ModelError14, RuntimeError as RuntimeError19 } from "@ibiz-template/core";
|
|
2580
2584
|
import { clone as clone13 } from "ramda";
|
|
2581
2585
|
|
|
2582
2586
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
@@ -3386,8 +3390,28 @@ async function getViewProvider(model) {
|
|
|
3386
3390
|
return provider;
|
|
3387
3391
|
}
|
|
3388
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
|
+
|
|
3389
3413
|
// src/service/utils/app-counter/app-counter.ts
|
|
3390
|
-
import { IBizContext, RuntimeError as
|
|
3414
|
+
import { IBizContext, RuntimeError as RuntimeError9 } from "@ibiz-template/core";
|
|
3391
3415
|
import { notNilEmpty as notNilEmpty5, QXEvent } from "qx-util";
|
|
3392
3416
|
import { clone as clone2 } from "ramda";
|
|
3393
3417
|
var AppCounter = class {
|
|
@@ -3492,7 +3516,7 @@ var AppCounter = class {
|
|
|
3492
3516
|
* @return {*} {Promise<IData>}
|
|
3493
3517
|
*/
|
|
3494
3518
|
async load() {
|
|
3495
|
-
throw new
|
|
3519
|
+
throw new RuntimeError9("\u672A\u5B9E\u73B0\u8BA1\u6570\u5668\u52A0\u8F7D\u65B9\u6CD5");
|
|
3496
3520
|
}
|
|
3497
3521
|
/**
|
|
3498
3522
|
* 计数器刷新
|
|
@@ -3925,7 +3949,7 @@ import { where, equals, clone as clone3, isNil as isNil5, isEmpty as isEmpty5 }
|
|
|
3925
3949
|
import { createUUID } from "qx-util";
|
|
3926
3950
|
|
|
3927
3951
|
// src/service/utils/service-exist-util/service-exist-util.ts
|
|
3928
|
-
import { RuntimeError as
|
|
3952
|
+
import { RuntimeError as RuntimeError10 } from "@ibiz-template/core";
|
|
3929
3953
|
import { isEmpty as isEmpty4, isNil as isNil4 } from "ramda";
|
|
3930
3954
|
function isExistSrfKey(funcName, entity) {
|
|
3931
3955
|
if (entity != null) {
|
|
@@ -3934,14 +3958,14 @@ function isExistSrfKey(funcName, entity) {
|
|
|
3934
3958
|
return true;
|
|
3935
3959
|
}
|
|
3936
3960
|
}
|
|
3937
|
-
throw new
|
|
3961
|
+
throw new RuntimeError10("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfkey\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
3938
3962
|
}
|
|
3939
3963
|
function isExistSessionId(funcName, context) {
|
|
3940
3964
|
const { srfsessionid } = context;
|
|
3941
3965
|
if (!isNil4(srfsessionid) && !isEmpty4(srfsessionid)) {
|
|
3942
3966
|
return true;
|
|
3943
3967
|
}
|
|
3944
|
-
throw new
|
|
3968
|
+
throw new RuntimeError10("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
3945
3969
|
}
|
|
3946
3970
|
|
|
3947
3971
|
// src/service/utils/de-cache/de-cache.ts
|
|
@@ -4432,7 +4456,7 @@ var SearchFilter = class {
|
|
|
4432
4456
|
};
|
|
4433
4457
|
|
|
4434
4458
|
// src/service/service/code-list/code-list.service.ts
|
|
4435
|
-
import { RuntimeError as
|
|
4459
|
+
import { RuntimeError as RuntimeError11 } from "@ibiz-template/core";
|
|
4436
4460
|
var CodeListService = class {
|
|
4437
4461
|
constructor(appModel) {
|
|
4438
4462
|
this.appModel = appModel;
|
|
@@ -4579,7 +4603,7 @@ var CodeListService = class {
|
|
|
4579
4603
|
async get(tag, context, params) {
|
|
4580
4604
|
const codeList = this.allCodeLists.get(tag);
|
|
4581
4605
|
if (!codeList) {
|
|
4582
|
-
throw new
|
|
4606
|
+
throw new RuntimeError11("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
|
|
4583
4607
|
}
|
|
4584
4608
|
if (codeList.codeListType === "STATIC") {
|
|
4585
4609
|
return this.getStatic(codeList);
|
|
@@ -4701,11 +4725,11 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
|
4701
4725
|
// src/service/service/entity/de.service.ts
|
|
4702
4726
|
import {
|
|
4703
4727
|
ModelError as ModelError13,
|
|
4704
|
-
RuntimeError as
|
|
4728
|
+
RuntimeError as RuntimeError15
|
|
4705
4729
|
} from "@ibiz-template/core";
|
|
4706
4730
|
|
|
4707
4731
|
// src/service/service/work-flow/work-flow.service.ts
|
|
4708
|
-
import { RuntimeError as
|
|
4732
|
+
import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
|
|
4709
4733
|
var WorkFlowService = class {
|
|
4710
4734
|
/**
|
|
4711
4735
|
* Creates an instance of WorkFlowService.
|
|
@@ -5025,7 +5049,7 @@ var WorkFlowService = class {
|
|
|
5025
5049
|
case "sendcopy":
|
|
5026
5050
|
return this.wfSendCopy(context, params, data);
|
|
5027
5051
|
default: {
|
|
5028
|
-
throw new
|
|
5052
|
+
throw new RuntimeError12("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
|
|
5029
5053
|
}
|
|
5030
5054
|
}
|
|
5031
5055
|
}
|
|
@@ -5067,7 +5091,7 @@ var FileService = class {
|
|
|
5067
5091
|
// src/service/service/entity/method/de-action.ts
|
|
5068
5092
|
import {
|
|
5069
5093
|
HttpResponse as HttpResponse3,
|
|
5070
|
-
RuntimeError as
|
|
5094
|
+
RuntimeError as RuntimeError14,
|
|
5071
5095
|
RuntimeModelError as RuntimeModelError18
|
|
5072
5096
|
} from "@ibiz-template/core";
|
|
5073
5097
|
import { isArray as isArray6, isNil as isNil8 } from "lodash-es";
|
|
@@ -5097,11 +5121,11 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
5097
5121
|
* Creates an instance of AppDataEntity.
|
|
5098
5122
|
*
|
|
5099
5123
|
* @author chitanda
|
|
5100
|
-
* @date
|
|
5124
|
+
* @date 2023-11-16 15:11:08
|
|
5101
5125
|
* @param {IAppDataEntity} entity
|
|
5102
|
-
* @param {(IData | AppDataEntity)} data
|
|
5126
|
+
* @param {(IData | AppDataEntity)} [data={}]
|
|
5103
5127
|
*/
|
|
5104
|
-
constructor(entity, data) {
|
|
5128
|
+
constructor(entity, data = {}) {
|
|
5105
5129
|
Object.defineProperty(this, "_entity", {
|
|
5106
5130
|
enumerable: false,
|
|
5107
5131
|
configurable: true,
|
|
@@ -5283,6 +5307,33 @@ var MethodDto = class _MethodDto {
|
|
|
5283
5307
|
this.fields = [];
|
|
5284
5308
|
}
|
|
5285
5309
|
}
|
|
5310
|
+
/**
|
|
5311
|
+
* 转换数组成ListMap
|
|
5312
|
+
*
|
|
5313
|
+
* @param {IData[]} arr
|
|
5314
|
+
* @return {*} listMap
|
|
5315
|
+
*/
|
|
5316
|
+
convertArrayToListMap(arr) {
|
|
5317
|
+
const result = {};
|
|
5318
|
+
arr.forEach((obj, index) => {
|
|
5319
|
+
result[index + 1] = obj;
|
|
5320
|
+
});
|
|
5321
|
+
return result;
|
|
5322
|
+
}
|
|
5323
|
+
/**
|
|
5324
|
+
* 转换ListMap成数组
|
|
5325
|
+
*
|
|
5326
|
+
* @param {listMap} obj
|
|
5327
|
+
* @return {*} IData[]
|
|
5328
|
+
*/
|
|
5329
|
+
convertListMapToArray(obj) {
|
|
5330
|
+
const result = [];
|
|
5331
|
+
Object.keys(obj).forEach((key) => {
|
|
5332
|
+
const index = parseInt(key, 10);
|
|
5333
|
+
result[index - 1] = obj[index];
|
|
5334
|
+
});
|
|
5335
|
+
return result;
|
|
5336
|
+
}
|
|
5286
5337
|
/**
|
|
5287
5338
|
* 请求参数组合 DTO
|
|
5288
5339
|
*
|
|
@@ -5302,23 +5353,27 @@ var MethodDto = class _MethodDto {
|
|
|
5302
5353
|
break;
|
|
5303
5354
|
}
|
|
5304
5355
|
case "DTOS": {
|
|
5305
|
-
if (
|
|
5306
|
-
|
|
5307
|
-
}
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5356
|
+
if (field.listMap) {
|
|
5357
|
+
params[key] = data[key] && data[key].length > 0 ? this.convertArrayToListMap(data[key]) : null;
|
|
5358
|
+
} else {
|
|
5359
|
+
if (data[key] !== void 0) {
|
|
5360
|
+
break;
|
|
5361
|
+
}
|
|
5362
|
+
if (!field.refAppDataEntityId) {
|
|
5363
|
+
break;
|
|
5364
|
+
}
|
|
5365
|
+
const dto = await this.getFieldDto(field);
|
|
5366
|
+
const service = await this.app.deService.getService(
|
|
5367
|
+
field.refAppDataEntityId
|
|
5368
|
+
);
|
|
5369
|
+
const items = service.local.getList(context);
|
|
5370
|
+
if (items) {
|
|
5371
|
+
const arr = [];
|
|
5372
|
+
for (let j = 0; j < items.length; j++) {
|
|
5373
|
+
arr.push(await dto.get(context, items[j]));
|
|
5374
|
+
}
|
|
5375
|
+
params[key] = arr;
|
|
5320
5376
|
}
|
|
5321
|
-
params[key] = arr;
|
|
5322
5377
|
}
|
|
5323
5378
|
break;
|
|
5324
5379
|
}
|
|
@@ -5348,16 +5403,20 @@ var MethodDto = class _MethodDto {
|
|
|
5348
5403
|
return Promise.all(
|
|
5349
5404
|
data.map(async (datum) => {
|
|
5350
5405
|
const all = this.fields.filter((field) => field.type === "DTOS").map(async (field) => {
|
|
5351
|
-
if (!field.refAppDataEntityId) {
|
|
5352
|
-
return;
|
|
5353
|
-
}
|
|
5354
5406
|
const key = field.codeName.toLowerCase();
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
if (items) {
|
|
5358
|
-
await dto.sets(context, items);
|
|
5407
|
+
if (field.listMap && typeof datum[key] === "object") {
|
|
5408
|
+
datum[key] = this.convertListMapToArray(datum[key]);
|
|
5359
5409
|
} else {
|
|
5360
|
-
|
|
5410
|
+
if (!field.refAppDataEntityId) {
|
|
5411
|
+
return;
|
|
5412
|
+
}
|
|
5413
|
+
const dto = await this.getFieldDto(field);
|
|
5414
|
+
const items = datum[key];
|
|
5415
|
+
if (items) {
|
|
5416
|
+
await dto.sets(context, items);
|
|
5417
|
+
} else {
|
|
5418
|
+
await dto.sets(context, []);
|
|
5419
|
+
}
|
|
5361
5420
|
}
|
|
5362
5421
|
});
|
|
5363
5422
|
for (let i = 0; i < all.length; i++) {
|
|
@@ -5624,7 +5683,7 @@ var Method = class {
|
|
|
5624
5683
|
};
|
|
5625
5684
|
|
|
5626
5685
|
// src/de-logic/index.ts
|
|
5627
|
-
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as
|
|
5686
|
+
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as RuntimeError13 } from "@ibiz-template/core";
|
|
5628
5687
|
import { isArray as isArray5 } from "lodash-es";
|
|
5629
5688
|
import { clone as clone9 } from "ramda";
|
|
5630
5689
|
|
|
@@ -6677,7 +6736,7 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
6677
6736
|
context.srfappid
|
|
6678
6737
|
);
|
|
6679
6738
|
if (!deLogic) {
|
|
6680
|
-
throw new
|
|
6739
|
+
throw new RuntimeError13("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
|
|
6681
6740
|
}
|
|
6682
6741
|
return execDELogic(deLogic, context, data, params);
|
|
6683
6742
|
}
|
|
@@ -6836,7 +6895,7 @@ var DEActionMethod = class extends Method {
|
|
|
6836
6895
|
*/
|
|
6837
6896
|
async create(context, data, params) {
|
|
6838
6897
|
if (!data) {
|
|
6839
|
-
throw new
|
|
6898
|
+
throw new RuntimeError14("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
6840
6899
|
}
|
|
6841
6900
|
if (this.isLocalMode) {
|
|
6842
6901
|
return this.createTemp(context, this.createEntity(data));
|
|
@@ -6878,7 +6937,7 @@ var DEActionMethod = class extends Method {
|
|
|
6878
6937
|
*/
|
|
6879
6938
|
async update(context, data, params) {
|
|
6880
6939
|
if (!data) {
|
|
6881
|
-
throw new
|
|
6940
|
+
throw new RuntimeError14("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
6882
6941
|
}
|
|
6883
6942
|
if (this.isLocalMode) {
|
|
6884
6943
|
return this.updateTemp(context, this.createEntity(data));
|
|
@@ -7350,7 +7409,7 @@ var DEService = class {
|
|
|
7350
7409
|
if (method) {
|
|
7351
7410
|
return method.exec(context, params, params2);
|
|
7352
7411
|
}
|
|
7353
|
-
throw new
|
|
7412
|
+
throw new RuntimeError15("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
7354
7413
|
}
|
|
7355
7414
|
/**
|
|
7356
7415
|
* 执行服务方法 ac 模式
|
|
@@ -7368,7 +7427,7 @@ var DEService = class {
|
|
|
7368
7427
|
if (method) {
|
|
7369
7428
|
return method.exec(context, params, params2);
|
|
7370
7429
|
}
|
|
7371
|
-
throw new
|
|
7430
|
+
throw new RuntimeError15("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
7372
7431
|
}
|
|
7373
7432
|
/**
|
|
7374
7433
|
* 实体级别 AI 聊天会话
|
|
@@ -7728,7 +7787,7 @@ var ControlService = class {
|
|
|
7728
7787
|
};
|
|
7729
7788
|
|
|
7730
7789
|
// src/service/service/control/md-control.service.ts
|
|
7731
|
-
import { RuntimeError as
|
|
7790
|
+
import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
|
|
7732
7791
|
import { isArray as isArray8 } from "qx-util";
|
|
7733
7792
|
var MDControlService = class extends ControlService {
|
|
7734
7793
|
/**
|
|
@@ -7837,7 +7896,7 @@ var MDControlService = class extends ControlService {
|
|
|
7837
7896
|
* @returns {*} {Promise<IHttpResponse>}
|
|
7838
7897
|
*/
|
|
7839
7898
|
async exportData(_dataExport, _context, _params = {}) {
|
|
7840
|
-
throw new
|
|
7899
|
+
throw new RuntimeError16("\u672A\u5B9E\u73B0");
|
|
7841
7900
|
}
|
|
7842
7901
|
/**
|
|
7843
7902
|
* 处理响应
|
|
@@ -7872,7 +7931,7 @@ var MDControlService = class extends ControlService {
|
|
|
7872
7931
|
};
|
|
7873
7932
|
|
|
7874
7933
|
// src/service/service/authority/authority.service.ts
|
|
7875
|
-
import { RuntimeError as
|
|
7934
|
+
import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
|
|
7876
7935
|
|
|
7877
7936
|
// src/service/service/authority/de-authority.service.ts
|
|
7878
7937
|
var DeAuthorityService = class {
|
|
@@ -8008,7 +8067,7 @@ var AuthorityService = class {
|
|
|
8008
8067
|
this.appModel.appId
|
|
8009
8068
|
);
|
|
8010
8069
|
if (!entityModel) {
|
|
8011
|
-
throw new
|
|
8070
|
+
throw new RuntimeError17("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
8012
8071
|
}
|
|
8013
8072
|
const constructor = this.constructorCache.get(id);
|
|
8014
8073
|
let service;
|
|
@@ -8113,6 +8172,32 @@ var V7AuthService = class {
|
|
|
8113
8172
|
}
|
|
8114
8173
|
};
|
|
8115
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
|
+
|
|
8116
8201
|
// src/service/vo/tree-node-data/tree-node-data.ts
|
|
8117
8202
|
var TreeNodeData = class {
|
|
8118
8203
|
constructor(model, parentNodeData, opts) {
|
|
@@ -8649,7 +8734,7 @@ var MqttService = class {
|
|
|
8649
8734
|
};
|
|
8650
8735
|
|
|
8651
8736
|
// src/service/de-service-util.ts
|
|
8652
|
-
import { RuntimeError as
|
|
8737
|
+
import { RuntimeError as RuntimeError18 } from "@ibiz-template/core";
|
|
8653
8738
|
var DEServiceUtil = class {
|
|
8654
8739
|
/**
|
|
8655
8740
|
* Creates an instance of DEServiceUtil.
|
|
@@ -8704,7 +8789,7 @@ var DEServiceUtil = class {
|
|
|
8704
8789
|
this.appModel.appId
|
|
8705
8790
|
);
|
|
8706
8791
|
if (!entityModel) {
|
|
8707
|
-
throw new
|
|
8792
|
+
throw new RuntimeError18("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
8708
8793
|
}
|
|
8709
8794
|
const constructor = this.constructorCache.get(id);
|
|
8710
8795
|
let service;
|
|
@@ -8767,7 +8852,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
8767
8852
|
const context = clone13(_context);
|
|
8768
8853
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
8769
8854
|
if (!appView) {
|
|
8770
|
-
throw new
|
|
8855
|
+
throw new RuntimeError19("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
|
|
8771
8856
|
}
|
|
8772
8857
|
if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
|
|
8773
8858
|
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
@@ -8856,7 +8941,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
8856
8941
|
*/
|
|
8857
8942
|
async openPopover(appView, event, context, params = {}) {
|
|
8858
8943
|
if (!event) {
|
|
8859
|
-
throw new
|
|
8944
|
+
throw new RuntimeError19("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
|
|
8860
8945
|
}
|
|
8861
8946
|
return ibiz.openView.popover(appView.id, event, context, params);
|
|
8862
8947
|
}
|
|
@@ -8911,7 +8996,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
8911
8996
|
async exec(appFuncId, context, params = {}, opts = {}) {
|
|
8912
8997
|
const appFunc = ibiz.hub.getApp(context.srfappid).getAppFunc(appFuncId);
|
|
8913
8998
|
if (!appFunc) {
|
|
8914
|
-
throw new
|
|
8999
|
+
throw new RuntimeError20("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
|
|
8915
9000
|
}
|
|
8916
9001
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
8917
9002
|
const _context = context.clone();
|
|
@@ -8945,7 +9030,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
8945
9030
|
*/
|
|
8946
9031
|
async openAppView(appFunc, context, params, opts) {
|
|
8947
9032
|
if (!appFunc.appViewId) {
|
|
8948
|
-
throw new
|
|
9033
|
+
throw new RuntimeError20("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
|
|
8949
9034
|
}
|
|
8950
9035
|
return ibiz.commands.execute(
|
|
8951
9036
|
OpenAppViewCommand.TAG,
|
|
@@ -8979,7 +9064,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
8979
9064
|
*/
|
|
8980
9065
|
openPdAppFunc(appFunc, context, params) {
|
|
8981
9066
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
8982
|
-
throw new
|
|
9067
|
+
throw new RuntimeError20("\u672A\u5B9E\u73B0");
|
|
8983
9068
|
}
|
|
8984
9069
|
/**
|
|
8985
9070
|
* 执行 JavaScript 脚本
|
|
@@ -8993,7 +9078,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
8993
9078
|
*/
|
|
8994
9079
|
executeJavaScript(appFunc, context, params) {
|
|
8995
9080
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
8996
|
-
throw new
|
|
9081
|
+
throw new RuntimeError20("\u672A\u5B9E\u73B0");
|
|
8997
9082
|
}
|
|
8998
9083
|
/**
|
|
8999
9084
|
* 自定义应用功能
|
|
@@ -9007,7 +9092,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
9007
9092
|
*/
|
|
9008
9093
|
custom(appFunc, context, params) {
|
|
9009
9094
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
9010
|
-
throw new
|
|
9095
|
+
throw new RuntimeError20("\u672A\u5B9E\u73B0");
|
|
9011
9096
|
}
|
|
9012
9097
|
};
|
|
9013
9098
|
/**
|
|
@@ -9028,7 +9113,7 @@ function installCommand() {
|
|
|
9028
9113
|
}
|
|
9029
9114
|
|
|
9030
9115
|
// src/app-hub.ts
|
|
9031
|
-
import { RuntimeError as
|
|
9116
|
+
import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
|
|
9032
9117
|
|
|
9033
9118
|
// src/application.ts
|
|
9034
9119
|
import { Net, getToken } from "@ibiz-template/core";
|
|
@@ -9220,7 +9305,7 @@ var Convert = class {
|
|
|
9220
9305
|
};
|
|
9221
9306
|
|
|
9222
9307
|
// src/hub/config/app-view-config-service.ts
|
|
9223
|
-
import { RuntimeError as
|
|
9308
|
+
import { RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
9224
9309
|
var AppViewConfigService = class {
|
|
9225
9310
|
constructor() {
|
|
9226
9311
|
/**
|
|
@@ -9240,7 +9325,7 @@ var AppViewConfigService = class {
|
|
|
9240
9325
|
if (!this.viewConfigs.has(key)) {
|
|
9241
9326
|
const model = await ibiz.hub.getAppView(key);
|
|
9242
9327
|
if (!model) {
|
|
9243
|
-
throw new
|
|
9328
|
+
throw new RuntimeError21("\u89C6\u56FE[".concat(key, "]\u4E0D\u5B58\u5728"));
|
|
9244
9329
|
}
|
|
9245
9330
|
this.set(model.id, {
|
|
9246
9331
|
id: model.id,
|
|
@@ -9296,14 +9381,14 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
|
|
|
9296
9381
|
|
|
9297
9382
|
// src/controller/common/view/view.controller.ts
|
|
9298
9383
|
import { createUUID as createUUID6, notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
9299
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
9384
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError28 } from "@ibiz-template/core";
|
|
9300
9385
|
import { isEmpty as isEmpty8, isNil as isNil17, isNotNil as isNotNil2 } from "ramda";
|
|
9301
9386
|
|
|
9302
9387
|
// src/controller/utils/loading/loading.state.ts
|
|
9303
9388
|
import { NOOP } from "@ibiz-template/core";
|
|
9304
9389
|
|
|
9305
9390
|
// src/controller/utils/counter/counter.ts
|
|
9306
|
-
import { RuntimeError as
|
|
9391
|
+
import { RuntimeError as RuntimeError22 } from "@ibiz-template/core";
|
|
9307
9392
|
var Counter = class {
|
|
9308
9393
|
/**
|
|
9309
9394
|
* Creates an instance of Counter.
|
|
@@ -9365,7 +9450,7 @@ var Counter = class {
|
|
|
9365
9450
|
return;
|
|
9366
9451
|
}
|
|
9367
9452
|
if (this.count === 0) {
|
|
9368
|
-
throw new
|
|
9453
|
+
throw new RuntimeError22("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
9369
9454
|
}
|
|
9370
9455
|
this.count -= 1;
|
|
9371
9456
|
if (this.count === 0) {
|
|
@@ -9925,7 +10010,7 @@ function getOriginData(data) {
|
|
|
9925
10010
|
}
|
|
9926
10011
|
|
|
9927
10012
|
// src/controller/utils/value-rule/value-rule.ts
|
|
9928
|
-
import { RuntimeError as
|
|
10013
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
9929
10014
|
import { isNilOrEmpty as isNilOrEmpty7, isNumber } from "qx-util";
|
|
9930
10015
|
import { isNil as isNil13 } from "ramda";
|
|
9931
10016
|
function generateRules(itemVRs, name, valueItemName) {
|
|
@@ -9975,7 +10060,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
9975
10060
|
deRule.groupCond
|
|
9976
10061
|
);
|
|
9977
10062
|
if (!isPast) {
|
|
9978
|
-
callback(new
|
|
10063
|
+
callback(new RuntimeError23(infoMessage || deRule.ruleInfo));
|
|
9979
10064
|
}
|
|
9980
10065
|
return true;
|
|
9981
10066
|
},
|
|
@@ -10045,7 +10130,7 @@ function generateEditorRules(editor) {
|
|
|
10045
10130
|
}
|
|
10046
10131
|
|
|
10047
10132
|
// src/controller/utils/value-ex/value-ex.ts
|
|
10048
|
-
import { RuntimeError as
|
|
10133
|
+
import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
10049
10134
|
import { isNil as isNil14, mergeLeft } from "ramda";
|
|
10050
10135
|
var ValueExUtil = class {
|
|
10051
10136
|
/**
|
|
@@ -10077,7 +10162,7 @@ var ValueExUtil = class {
|
|
|
10077
10162
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
10078
10163
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
10079
10164
|
if (!objectNameField) {
|
|
10080
|
-
throw new
|
|
10165
|
+
throw new RuntimeError24("\u7F3A\u5C11objectNameField");
|
|
10081
10166
|
}
|
|
10082
10167
|
const textKey = objectNameField.toLowerCase();
|
|
10083
10168
|
if (valueType === "OBJECTS") {
|
|
@@ -10093,7 +10178,7 @@ var ValueExUtil = class {
|
|
|
10093
10178
|
};
|
|
10094
10179
|
|
|
10095
10180
|
// src/controller/utils/value-default/value-default.ts
|
|
10096
|
-
import { RuntimeError as
|
|
10181
|
+
import { RuntimeError as RuntimeError25, ModelError as ModelError16 } from "@ibiz-template/core";
|
|
10097
10182
|
import dayjs from "dayjs";
|
|
10098
10183
|
import { createUUID as createUUID5 } from "qx-util";
|
|
10099
10184
|
import { isNil as isNil15, isNotNil } from "ramda";
|
|
@@ -10134,7 +10219,7 @@ function getDefaultValue(opts, origins) {
|
|
|
10134
10219
|
case "SESSION":
|
|
10135
10220
|
case "APPLICATION":
|
|
10136
10221
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
10137
|
-
throw new
|
|
10222
|
+
throw new RuntimeError25("appdata.context\u4E0D\u5B58\u5728");
|
|
10138
10223
|
}
|
|
10139
10224
|
return ibiz.appData.context[defaultValue];
|
|
10140
10225
|
case "CONTEXT":
|
|
@@ -10148,31 +10233,20 @@ function getDefaultValue(opts, origins) {
|
|
|
10148
10233
|
|
|
10149
10234
|
// src/controller/utils/data-file-util/data-file-util.ts
|
|
10150
10235
|
import {
|
|
10151
|
-
RuntimeError as
|
|
10236
|
+
RuntimeError as RuntimeError26
|
|
10152
10237
|
} from "@ibiz-template/core";
|
|
10153
|
-
var asyncImportUrl = "
|
|
10154
|
-
var importUrl = "
|
|
10238
|
+
var asyncImportUrl = "asyncimportdata2";
|
|
10239
|
+
var importUrl = "importdata2";
|
|
10155
10240
|
function listenAsyncAction(id) {
|
|
10156
10241
|
return new Promise((resolve) => {
|
|
10157
10242
|
const callBack = (msg) => {
|
|
10158
10243
|
const messageid = msg.messageid || msg.data.asyncacitonid;
|
|
10159
|
-
if (id
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
} catch (error) {
|
|
10166
|
-
throw new RuntimeError25("\u89E3\u6790\u6570\u636E\u53D1\u751F\u9519\u8BEF");
|
|
10167
|
-
} finally {
|
|
10168
|
-
ibiz.mc.command.asyncAction.off(callBack);
|
|
10169
|
-
}
|
|
10170
|
-
} else if (msg.data.actionstate === 40) {
|
|
10171
|
-
resolve({
|
|
10172
|
-
total: 0,
|
|
10173
|
-
success: 0,
|
|
10174
|
-
message: msg.data.actionresult
|
|
10175
|
-
});
|
|
10244
|
+
if (id !== messageid) {
|
|
10245
|
+
return;
|
|
10246
|
+
}
|
|
10247
|
+
const state = msg.data.actionstate;
|
|
10248
|
+
if (state === 30 || state === 40) {
|
|
10249
|
+
resolve();
|
|
10176
10250
|
ibiz.mc.command.asyncAction.off(callBack);
|
|
10177
10251
|
}
|
|
10178
10252
|
};
|
|
@@ -10188,7 +10262,11 @@ async function asyncImportData(file, appDataEntity) {
|
|
|
10188
10262
|
data,
|
|
10189
10263
|
headers: { "Content-Type": "multipart/form-data" }
|
|
10190
10264
|
});
|
|
10191
|
-
|
|
10265
|
+
await listenAsyncAction(res.data.asyncacitonid);
|
|
10266
|
+
ibiz.mc.command.send(
|
|
10267
|
+
{ srfdecodename: appDataEntity.codeName },
|
|
10268
|
+
"OBJECTCREATED"
|
|
10269
|
+
);
|
|
10192
10270
|
}
|
|
10193
10271
|
async function importData(file, appDataEntity) {
|
|
10194
10272
|
const data = new FormData();
|
|
@@ -10203,11 +10281,11 @@ async function importData(file, appDataEntity) {
|
|
|
10203
10281
|
}
|
|
10204
10282
|
async function exportData(header, data, fileName) {
|
|
10205
10283
|
if (!ibiz.util.getExcelUtil) {
|
|
10206
|
-
throw new
|
|
10284
|
+
throw new RuntimeError26("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
10207
10285
|
}
|
|
10208
10286
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
10209
10287
|
if (!exportExcel) {
|
|
10210
|
-
throw new
|
|
10288
|
+
throw new RuntimeError26("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
10211
10289
|
}
|
|
10212
10290
|
try {
|
|
10213
10291
|
exportExcel.exportJsonToExcel({
|
|
@@ -10433,7 +10511,7 @@ var BaseController = class {
|
|
|
10433
10511
|
};
|
|
10434
10512
|
|
|
10435
10513
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
10436
|
-
import { RuntimeError as
|
|
10514
|
+
import { RuntimeError as RuntimeError27, RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
|
|
10437
10515
|
import { isNil as isNil16, mergeRight as mergeRight2 } from "ramda";
|
|
10438
10516
|
var ViewMsgController = class _ViewMsgController {
|
|
10439
10517
|
constructor(msgGroupId) {
|
|
@@ -10459,7 +10537,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
10459
10537
|
(item) => item.id === this.msgGroupId
|
|
10460
10538
|
);
|
|
10461
10539
|
if (!msgGroup) {
|
|
10462
|
-
throw new
|
|
10540
|
+
throw new RuntimeError27("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
|
|
10463
10541
|
}
|
|
10464
10542
|
this.msgGroup = msgGroup;
|
|
10465
10543
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -10473,7 +10551,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
10473
10551
|
}
|
|
10474
10552
|
});
|
|
10475
10553
|
if (msgDetailsViewMsgIds.length) {
|
|
10476
|
-
throw new
|
|
10554
|
+
throw new RuntimeError27(
|
|
10477
10555
|
"\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
|
|
10478
10556
|
);
|
|
10479
10557
|
}
|
|
@@ -10885,7 +10963,7 @@ var ViewController = class extends BaseController {
|
|
|
10885
10963
|
async callUIAction(key, args) {
|
|
10886
10964
|
const result = this.call(key, args);
|
|
10887
10965
|
if (result === void 0) {
|
|
10888
|
-
throw new
|
|
10966
|
+
throw new RuntimeError28("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
10889
10967
|
}
|
|
10890
10968
|
return result;
|
|
10891
10969
|
}
|
|
@@ -11476,7 +11554,7 @@ var ControlController = class extends BaseController {
|
|
|
11476
11554
|
};
|
|
11477
11555
|
|
|
11478
11556
|
// src/controller/common/control/md-control.controller.ts
|
|
11479
|
-
import { isElementSame, RuntimeError as
|
|
11557
|
+
import { isElementSame, RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
11480
11558
|
import { debounce } from "lodash-es";
|
|
11481
11559
|
var MDControlController = class extends ControlController {
|
|
11482
11560
|
constructor() {
|
|
@@ -11668,7 +11746,7 @@ var MDControlController = class extends ControlController {
|
|
|
11668
11746
|
async remove(args) {
|
|
11669
11747
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
11670
11748
|
if (!(data == null ? void 0 : data.length)) {
|
|
11671
|
-
throw new
|
|
11749
|
+
throw new RuntimeError29("\u672A\u9009\u4E2D\u6570\u636E");
|
|
11672
11750
|
}
|
|
11673
11751
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
11674
11752
|
const del = await ibiz.confirm.error({
|
|
@@ -11804,7 +11882,7 @@ var MDControlController = class extends ControlController {
|
|
|
11804
11882
|
(importItem) => importItem.id === dedataImportId
|
|
11805
11883
|
);
|
|
11806
11884
|
if (!dataImport) {
|
|
11807
|
-
throw new
|
|
11885
|
+
throw new RuntimeError29("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
11808
11886
|
}
|
|
11809
11887
|
const modal = ibiz.overlay.createModal(
|
|
11810
11888
|
"DataImport",
|
|
@@ -11834,7 +11912,7 @@ var MDControlController = class extends ControlController {
|
|
|
11834
11912
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
11835
11913
|
import {
|
|
11836
11914
|
findRecursiveChild,
|
|
11837
|
-
RuntimeError as
|
|
11915
|
+
RuntimeError as RuntimeError30,
|
|
11838
11916
|
RuntimeModelError as RuntimeModelError22
|
|
11839
11917
|
} from "@ibiz-template/core";
|
|
11840
11918
|
var AppMenuController = class extends ControlController {
|
|
@@ -11874,7 +11952,7 @@ var AppMenuController = class extends ControlController {
|
|
|
11874
11952
|
childrenFields: ["appMenuItems"]
|
|
11875
11953
|
});
|
|
11876
11954
|
if (!menuItem) {
|
|
11877
|
-
throw new
|
|
11955
|
+
throw new RuntimeError30("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
11878
11956
|
}
|
|
11879
11957
|
this.evt.emit("onClick", {
|
|
11880
11958
|
eventArg: id,
|
|
@@ -11964,7 +12042,7 @@ var AppMenuController = class extends ControlController {
|
|
|
11964
12042
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
11965
12043
|
import {
|
|
11966
12044
|
findRecursiveChild as findRecursiveChild2,
|
|
11967
|
-
RuntimeError as
|
|
12045
|
+
RuntimeError as RuntimeError31,
|
|
11968
12046
|
RuntimeModelError as RuntimeModelError23
|
|
11969
12047
|
} from "@ibiz-template/core";
|
|
11970
12048
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -11974,7 +12052,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
11974
12052
|
childrenFields: ["appMenuItems"]
|
|
11975
12053
|
});
|
|
11976
12054
|
if (!menuItem) {
|
|
11977
|
-
throw new
|
|
12055
|
+
throw new RuntimeError31("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
11978
12056
|
}
|
|
11979
12057
|
this.evt.emit("onClick", {
|
|
11980
12058
|
eventArg: id,
|
|
@@ -12002,7 +12080,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
12002
12080
|
import dayjs2 from "dayjs";
|
|
12003
12081
|
|
|
12004
12082
|
// src/controller/control/calendar/calendar.service.ts
|
|
12005
|
-
import { RuntimeError as
|
|
12083
|
+
import { RuntimeError as RuntimeError32 } from "@ibiz-template/core";
|
|
12006
12084
|
var CalendarService = class extends MDControlService {
|
|
12007
12085
|
/**
|
|
12008
12086
|
* 执行查询多条数据的方法
|
|
@@ -12052,11 +12130,11 @@ var CalendarService = class extends MDControlService {
|
|
|
12052
12130
|
setCalendarConfigData(items, index) {
|
|
12053
12131
|
const { sysCalendarItems } = this.model;
|
|
12054
12132
|
if (!sysCalendarItems) {
|
|
12055
|
-
throw new
|
|
12133
|
+
throw new RuntimeError32("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
12056
12134
|
}
|
|
12057
12135
|
const calendarItem = sysCalendarItems[index];
|
|
12058
12136
|
if (!calendarItem) {
|
|
12059
|
-
throw new
|
|
12137
|
+
throw new RuntimeError32("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
12060
12138
|
}
|
|
12061
12139
|
return items.map((item) => {
|
|
12062
12140
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -12246,11 +12324,11 @@ var CalendarController = class extends MDControlController {
|
|
|
12246
12324
|
};
|
|
12247
12325
|
|
|
12248
12326
|
// src/controller/control/chart/chart.controller.ts
|
|
12249
|
-
import { RuntimeError as
|
|
12327
|
+
import { RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
12250
12328
|
|
|
12251
12329
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
12252
12330
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
12253
|
-
import { RuntimeError as
|
|
12331
|
+
import { RuntimeError as RuntimeError33 } from "@ibiz-template/core";
|
|
12254
12332
|
|
|
12255
12333
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
12256
12334
|
import { RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
|
|
@@ -13196,7 +13274,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
13196
13274
|
getSrfkeyByParams(params) {
|
|
13197
13275
|
const generator = this.seriesGenerators[params.seriesIndex];
|
|
13198
13276
|
if (!generator) {
|
|
13199
|
-
throw new
|
|
13277
|
+
throw new RuntimeError33("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
|
|
13200
13278
|
}
|
|
13201
13279
|
return generator.getSrfkeyByParams(params);
|
|
13202
13280
|
}
|
|
@@ -13308,10 +13386,10 @@ var ChartController = class extends MDControlController {
|
|
|
13308
13386
|
*/
|
|
13309
13387
|
updateChart() {
|
|
13310
13388
|
if (!this.chart) {
|
|
13311
|
-
throw new
|
|
13389
|
+
throw new RuntimeError34("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
|
|
13312
13390
|
}
|
|
13313
13391
|
if (!this.options) {
|
|
13314
|
-
throw new
|
|
13392
|
+
throw new RuntimeError34("options\u8FD8\u6CA1\u8BA1\u7B97");
|
|
13315
13393
|
}
|
|
13316
13394
|
this.chart.setOption(this.options);
|
|
13317
13395
|
this.resizeChart();
|
|
@@ -13356,7 +13434,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
13356
13434
|
};
|
|
13357
13435
|
|
|
13358
13436
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
13359
|
-
import { recursiveIterate, RuntimeError as
|
|
13437
|
+
import { recursiveIterate, RuntimeError as RuntimeError42 } from "@ibiz-template/core";
|
|
13360
13438
|
|
|
13361
13439
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
13362
13440
|
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
@@ -13366,7 +13444,7 @@ import { isArray as isArray9 } from "qx-util";
|
|
|
13366
13444
|
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
13367
13445
|
|
|
13368
13446
|
// src/ui-logic/index.ts
|
|
13369
|
-
import { RuntimeError as
|
|
13447
|
+
import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
|
|
13370
13448
|
|
|
13371
13449
|
// src/ui-logic/ui-logic.ts
|
|
13372
13450
|
import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
@@ -13902,7 +13980,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
13902
13980
|
};
|
|
13903
13981
|
|
|
13904
13982
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
13905
|
-
import { ModelError as ModelError21, RuntimeError as
|
|
13983
|
+
import { ModelError as ModelError21, RuntimeError as RuntimeError35 } from "@ibiz-template/core";
|
|
13906
13984
|
import { clone as clone16 } from "ramda";
|
|
13907
13985
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
13908
13986
|
async exec(ctx) {
|
|
@@ -13952,7 +14030,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
13952
14030
|
setParamValue(nodeParam, ctx) {
|
|
13953
14031
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
13954
14032
|
if (!dstDEUILogicParamId) {
|
|
13955
|
-
throw new
|
|
14033
|
+
throw new RuntimeError35("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
|
|
13956
14034
|
}
|
|
13957
14035
|
let dstField = dstFieldName;
|
|
13958
14036
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -14069,7 +14147,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
14069
14147
|
};
|
|
14070
14148
|
|
|
14071
14149
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
14072
|
-
import { RuntimeError as
|
|
14150
|
+
import { RuntimeError as RuntimeError36, RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
14073
14151
|
import { isFunction } from "lodash-es";
|
|
14074
14152
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
14075
14153
|
async exec(ctx) {
|
|
@@ -14086,14 +14164,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
14086
14164
|
}
|
|
14087
14165
|
const invokeParam = ctx.params[invokeParamId];
|
|
14088
14166
|
if (!invokeParam) {
|
|
14089
|
-
throw new
|
|
14167
|
+
throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
14090
14168
|
}
|
|
14091
14169
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
14092
14170
|
if (!invokeCtrl) {
|
|
14093
|
-
throw new
|
|
14171
|
+
throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
14094
14172
|
}
|
|
14095
14173
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
14096
|
-
throw new
|
|
14174
|
+
throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
14097
14175
|
}
|
|
14098
14176
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
14099
14177
|
}
|
|
@@ -14319,16 +14397,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
14319
14397
|
};
|
|
14320
14398
|
|
|
14321
14399
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
14322
|
-
import { RuntimeError as
|
|
14400
|
+
import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
14323
14401
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
14324
14402
|
async exec(_ctx) {
|
|
14325
14403
|
const { errorInfo } = this.model;
|
|
14326
|
-
throw new
|
|
14404
|
+
throw new RuntimeError37(errorInfo);
|
|
14327
14405
|
}
|
|
14328
14406
|
};
|
|
14329
14407
|
|
|
14330
14408
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
14331
|
-
import { RuntimeError as
|
|
14409
|
+
import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
14332
14410
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
14333
14411
|
async exec(ctx) {
|
|
14334
14412
|
ctx.isEndNode = true;
|
|
@@ -14344,18 +14422,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
14344
14422
|
}
|
|
14345
14423
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
14346
14424
|
if (!invokeCtrl) {
|
|
14347
|
-
throw new
|
|
14425
|
+
throw new RuntimeError38("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
|
|
14348
14426
|
}
|
|
14349
14427
|
const eventParam = ctx.params[eventParamId];
|
|
14350
14428
|
if (!eventParam) {
|
|
14351
|
-
throw new
|
|
14429
|
+
throw new RuntimeError38("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
|
|
14352
14430
|
}
|
|
14353
14431
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
14354
14432
|
}
|
|
14355
14433
|
};
|
|
14356
14434
|
|
|
14357
14435
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
14358
|
-
import { RuntimeError as
|
|
14436
|
+
import { RuntimeError as RuntimeError39, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
14359
14437
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
14360
14438
|
async exec(ctx) {
|
|
14361
14439
|
const {
|
|
@@ -14375,7 +14453,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
14375
14453
|
}
|
|
14376
14454
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
14377
14455
|
if (!dstParam) {
|
|
14378
|
-
throw new
|
|
14456
|
+
throw new RuntimeError39("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
|
|
14379
14457
|
}
|
|
14380
14458
|
const result = await execDELogicById(
|
|
14381
14459
|
dstAppDELogicId,
|
|
@@ -14679,7 +14757,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
14679
14757
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
14680
14758
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
14681
14759
|
if (!deUILogic) {
|
|
14682
|
-
throw new
|
|
14760
|
+
throw new RuntimeError40(
|
|
14683
14761
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
14684
14762
|
);
|
|
14685
14763
|
}
|
|
@@ -14692,7 +14770,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
14692
14770
|
}
|
|
14693
14771
|
|
|
14694
14772
|
// src/ui-action/uiaction-util.ts
|
|
14695
|
-
import { RuntimeError as
|
|
14773
|
+
import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
|
|
14696
14774
|
var UIActionUtil = class {
|
|
14697
14775
|
/**
|
|
14698
14776
|
* 执行界面行为
|
|
@@ -14707,7 +14785,7 @@ var UIActionUtil = class {
|
|
|
14707
14785
|
static async exec(actionId, params) {
|
|
14708
14786
|
const action = await getUIActionById(actionId);
|
|
14709
14787
|
if (!action) {
|
|
14710
|
-
throw new
|
|
14788
|
+
throw new RuntimeError41("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
14711
14789
|
}
|
|
14712
14790
|
if (action.actionTarget === "SINGLEDATA") {
|
|
14713
14791
|
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
@@ -15248,7 +15326,7 @@ var ToolbarController = class extends ControlController {
|
|
|
15248
15326
|
const actionId = item.uiactionId;
|
|
15249
15327
|
const uiAction = await getUIActionById(actionId);
|
|
15250
15328
|
if (!uiAction) {
|
|
15251
|
-
throw new
|
|
15329
|
+
throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
|
|
15252
15330
|
}
|
|
15253
15331
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
15254
15332
|
if (enableLoading) {
|
|
@@ -16270,7 +16348,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
16270
16348
|
import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
16271
16349
|
|
|
16272
16350
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
16273
|
-
import { RuntimeError as
|
|
16351
|
+
import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
16274
16352
|
var ExpBarControlController = class extends ControlController {
|
|
16275
16353
|
constructor() {
|
|
16276
16354
|
super(...arguments);
|
|
@@ -16596,7 +16674,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
16596
16674
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
16597
16675
|
return this.XDataModel.navAppViewId;
|
|
16598
16676
|
}
|
|
16599
|
-
throw new
|
|
16677
|
+
throw new RuntimeError43("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
|
|
16600
16678
|
}
|
|
16601
16679
|
/**
|
|
16602
16680
|
* 获取导航视图
|
|
@@ -16739,7 +16817,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
16739
16817
|
};
|
|
16740
16818
|
|
|
16741
16819
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
16742
|
-
import { RuntimeError as
|
|
16820
|
+
import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
16743
16821
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
16744
16822
|
constructor() {
|
|
16745
16823
|
super(...arguments);
|
|
@@ -16814,7 +16892,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
16814
16892
|
const deData = node.deData || node;
|
|
16815
16893
|
const nodeModel = this.getNodeModel(node.nodeId);
|
|
16816
16894
|
if (!nodeModel) {
|
|
16817
|
-
throw new
|
|
16895
|
+
throw new RuntimeError44("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
|
|
16818
16896
|
}
|
|
16819
16897
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
16820
16898
|
result.context.currentSrfNav = nodeId;
|
|
@@ -17004,6 +17082,14 @@ var FormController = class extends ControlController {
|
|
|
17004
17082
|
},
|
|
17005
17083
|
200
|
|
17006
17084
|
);
|
|
17085
|
+
this._evt.on("onFormDetailEvent", (event) => {
|
|
17086
|
+
var _a;
|
|
17087
|
+
(_a = this.scheduler) == null ? void 0 : _a.triggerControlEvent(
|
|
17088
|
+
event.formDetailName,
|
|
17089
|
+
event.formDetailEventName,
|
|
17090
|
+
event
|
|
17091
|
+
);
|
|
17092
|
+
});
|
|
17007
17093
|
}
|
|
17008
17094
|
/**
|
|
17009
17095
|
* 获取加载草稿额外参数,新建默认值
|
|
@@ -17387,6 +17473,28 @@ var FormDetailState = class {
|
|
|
17387
17473
|
|
|
17388
17474
|
// src/controller/control/form/form-detail/form-detail/form-detail.controller.ts
|
|
17389
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
|
|
17390
17498
|
var FormDetailController = class {
|
|
17391
17499
|
/**
|
|
17392
17500
|
* Creates an instance of FormDetailController.
|
|
@@ -17635,6 +17743,18 @@ var FormDetailController = class {
|
|
|
17635
17743
|
this.state.required = required;
|
|
17636
17744
|
}
|
|
17637
17745
|
}
|
|
17746
|
+
/**
|
|
17747
|
+
* 点击事件
|
|
17748
|
+
* @author lxm
|
|
17749
|
+
* @date 2023-10-11 05:03:26
|
|
17750
|
+
*/
|
|
17751
|
+
async onClick(event) {
|
|
17752
|
+
this.form.evt.emit("onFormDetailEvent", {
|
|
17753
|
+
formDetailName: this.model.id,
|
|
17754
|
+
formDetailEventName: "onClick" /* CLICK */,
|
|
17755
|
+
event
|
|
17756
|
+
});
|
|
17757
|
+
}
|
|
17638
17758
|
};
|
|
17639
17759
|
|
|
17640
17760
|
// src/controller/control/form/form-detail/form-button/form-button.state.ts
|
|
@@ -17684,6 +17804,7 @@ var FormButtonController = class extends FormDetailController {
|
|
|
17684
17804
|
} finally {
|
|
17685
17805
|
this.state.loading = false;
|
|
17686
17806
|
}
|
|
17807
|
+
super.onClick(event);
|
|
17687
17808
|
}
|
|
17688
17809
|
/**
|
|
17689
17810
|
* 执行界面行为
|
|
@@ -18260,6 +18381,10 @@ var FormItemController = class extends FormDetailController {
|
|
|
18260
18381
|
async setDataValue(value, name) {
|
|
18261
18382
|
name = name || this.name;
|
|
18262
18383
|
await this.form.setDataValue(name, value);
|
|
18384
|
+
this.form.evt.emit("onFormDetailEvent", {
|
|
18385
|
+
formDetailName: this.model.id,
|
|
18386
|
+
formDetailEventName: "onChange" /* CHANGE */
|
|
18387
|
+
});
|
|
18263
18388
|
}
|
|
18264
18389
|
/**
|
|
18265
18390
|
* 设置默认值
|
|
@@ -18285,6 +18410,42 @@ var FormItemController = class extends FormDetailController {
|
|
|
18285
18410
|
data[this.name] = defaultVal;
|
|
18286
18411
|
}
|
|
18287
18412
|
}
|
|
18413
|
+
/**
|
|
18414
|
+
* 聚焦事件
|
|
18415
|
+
* @author lxm
|
|
18416
|
+
* @date 2023-10-11 05:03:26
|
|
18417
|
+
*/
|
|
18418
|
+
onFocus(event) {
|
|
18419
|
+
this.form.evt.emit("onFormDetailEvent", {
|
|
18420
|
+
formDetailName: this.model.id,
|
|
18421
|
+
formDetailEventName: "onFocus" /* FOCUS */,
|
|
18422
|
+
event
|
|
18423
|
+
});
|
|
18424
|
+
}
|
|
18425
|
+
/**
|
|
18426
|
+
* 失焦事件
|
|
18427
|
+
* @author lxm
|
|
18428
|
+
* @date 2023-10-11 05:03:26
|
|
18429
|
+
*/
|
|
18430
|
+
onBlur(event) {
|
|
18431
|
+
this.form.evt.emit("onFormDetailEvent", {
|
|
18432
|
+
formDetailName: this.model.id,
|
|
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 */,
|
|
18446
|
+
event
|
|
18447
|
+
});
|
|
18448
|
+
}
|
|
18288
18449
|
};
|
|
18289
18450
|
|
|
18290
18451
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.ts
|
|
@@ -18415,7 +18576,7 @@ var FormMDCtrlContentTypeController = class {
|
|
|
18415
18576
|
import { clone as clone19 } from "ramda";
|
|
18416
18577
|
|
|
18417
18578
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-control/form-mdctrl-control.controller.ts
|
|
18418
|
-
import { RuntimeError as
|
|
18579
|
+
import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
|
|
18419
18580
|
var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController {
|
|
18420
18581
|
/**
|
|
18421
18582
|
* 初始化
|
|
@@ -18430,7 +18591,7 @@ var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController
|
|
|
18430
18591
|
const { model } = this.parent;
|
|
18431
18592
|
const { contentControl } = model;
|
|
18432
18593
|
if (!contentControl) {
|
|
18433
|
-
throw new
|
|
18594
|
+
throw new RuntimeError45("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
18434
18595
|
}
|
|
18435
18596
|
this.controlModel = contentControl;
|
|
18436
18597
|
const controlProvider = await getControlProvider(this.controlModel);
|
|
@@ -18548,7 +18709,7 @@ import { isArray as isArray10 } from "lodash-es";
|
|
|
18548
18709
|
import {
|
|
18549
18710
|
awaitTimeout,
|
|
18550
18711
|
mergeInLeft,
|
|
18551
|
-
RuntimeError as
|
|
18712
|
+
RuntimeError as RuntimeError46,
|
|
18552
18713
|
mergeDefaultInLeft as mergeDefaultInLeft2
|
|
18553
18714
|
} from "@ibiz-template/core";
|
|
18554
18715
|
import { debounce as debounce2 } from "lodash-es";
|
|
@@ -18994,7 +19155,7 @@ var EditFormController = class extends FormController {
|
|
|
18994
19155
|
}
|
|
18995
19156
|
const isValid = await this.validate();
|
|
18996
19157
|
if (!isValid) {
|
|
18997
|
-
throw new
|
|
19158
|
+
throw new RuntimeError46("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
18998
19159
|
}
|
|
18999
19160
|
if (!silent) {
|
|
19000
19161
|
await this.startLoading();
|
|
@@ -19120,7 +19281,7 @@ var EditFormController = class extends FormController {
|
|
|
19120
19281
|
(item) => item.id === formItemUpdateId
|
|
19121
19282
|
);
|
|
19122
19283
|
if (!formItemUpdate) {
|
|
19123
|
-
throw new
|
|
19284
|
+
throw new RuntimeError46("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
|
|
19124
19285
|
}
|
|
19125
19286
|
const { appDEMethodId, defiupdateDetails, customCode, scriptCode } = formItemUpdate;
|
|
19126
19287
|
const updateItems = defiupdateDetails == null ? void 0 : defiupdateDetails.map((item) => item.id);
|
|
@@ -19164,7 +19325,7 @@ var EditFormController = class extends FormController {
|
|
|
19164
19325
|
async wfStart(args) {
|
|
19165
19326
|
const isValid = await this.validate();
|
|
19166
19327
|
if (!isValid) {
|
|
19167
|
-
throw new
|
|
19328
|
+
throw new RuntimeError46("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
19168
19329
|
}
|
|
19169
19330
|
await this.startLoading();
|
|
19170
19331
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -19195,7 +19356,7 @@ var EditFormController = class extends FormController {
|
|
|
19195
19356
|
async wfSubmit(args) {
|
|
19196
19357
|
const isValid = await this.validate();
|
|
19197
19358
|
if (!isValid) {
|
|
19198
|
-
throw new
|
|
19359
|
+
throw new RuntimeError46("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
19199
19360
|
}
|
|
19200
19361
|
await this.startLoading();
|
|
19201
19362
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -19427,7 +19588,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlControlController {
|
|
|
19427
19588
|
};
|
|
19428
19589
|
|
|
19429
19590
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts
|
|
19430
|
-
import { RuntimeError as
|
|
19591
|
+
import { RuntimeError as RuntimeError47, mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
|
|
19431
19592
|
var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
19432
19593
|
constructor() {
|
|
19433
19594
|
super(...arguments);
|
|
@@ -19539,7 +19700,7 @@ var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
|
19539
19700
|
const { model } = this.parent;
|
|
19540
19701
|
const { contentControl } = model;
|
|
19541
19702
|
if (!contentControl) {
|
|
19542
|
-
throw new
|
|
19703
|
+
throw new RuntimeError47("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
19543
19704
|
}
|
|
19544
19705
|
mergeInLeft3(contentControl, { enableRowEdit: true, enableRowNew: true });
|
|
19545
19706
|
this.controlModel = contentControl;
|
|
@@ -20333,7 +20494,7 @@ import {
|
|
|
20333
20494
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
20334
20495
|
mergeDefaultInLeft as mergeDefaultInLeft3,
|
|
20335
20496
|
recursiveIterate as recursiveIterate5,
|
|
20336
|
-
RuntimeError as
|
|
20497
|
+
RuntimeError as RuntimeError48,
|
|
20337
20498
|
RuntimeModelError as RuntimeModelError53
|
|
20338
20499
|
} from "@ibiz-template/core";
|
|
20339
20500
|
import { clone as clone21 } from "ramda";
|
|
@@ -20707,7 +20868,7 @@ var GridController = class extends MDControlController {
|
|
|
20707
20868
|
if (editShowMode === "row") {
|
|
20708
20869
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
20709
20870
|
if (editingRow) {
|
|
20710
|
-
throw new
|
|
20871
|
+
throw new RuntimeError48("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
|
|
20711
20872
|
}
|
|
20712
20873
|
}
|
|
20713
20874
|
const queryParams = { ...this.params };
|
|
@@ -20748,7 +20909,7 @@ var GridController = class extends MDControlController {
|
|
|
20748
20909
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
20749
20910
|
const rowState = this.findRowState(data);
|
|
20750
20911
|
if (!rowState) {
|
|
20751
|
-
throw new
|
|
20912
|
+
throw new RuntimeError48("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
20752
20913
|
}
|
|
20753
20914
|
if (!rowState.modified) {
|
|
20754
20915
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -20760,7 +20921,7 @@ var GridController = class extends MDControlController {
|
|
|
20760
20921
|
}
|
|
20761
20922
|
const isValid = await this.validate(rowState);
|
|
20762
20923
|
if (!isValid) {
|
|
20763
|
-
throw new
|
|
20924
|
+
throw new RuntimeError48("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
|
|
20764
20925
|
}
|
|
20765
20926
|
let res;
|
|
20766
20927
|
const deName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
@@ -20957,7 +21118,7 @@ var GridController = class extends MDControlController {
|
|
|
20957
21118
|
}
|
|
20958
21119
|
async toggleRowEdit() {
|
|
20959
21120
|
if (!this.model.enableRowNew) {
|
|
20960
|
-
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");
|
|
20961
21122
|
}
|
|
20962
21123
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
20963
21124
|
}
|
|
@@ -20990,7 +21151,7 @@ var GridController = class extends MDControlController {
|
|
|
20990
21151
|
} else {
|
|
20991
21152
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
20992
21153
|
if (editingRow) {
|
|
20993
|
-
throw new
|
|
21154
|
+
throw new RuntimeError48("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
20994
21155
|
}
|
|
20995
21156
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
20996
21157
|
row.cacheData = clone21(row.data);
|
|
@@ -21040,7 +21201,7 @@ var GridController = class extends MDControlController {
|
|
|
21040
21201
|
(item) => item.id === updateId
|
|
21041
21202
|
);
|
|
21042
21203
|
if (!findUpdate) {
|
|
21043
|
-
throw new
|
|
21204
|
+
throw new RuntimeError48("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
|
|
21044
21205
|
}
|
|
21045
21206
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
21046
21207
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -21132,7 +21293,7 @@ var GridController = class extends MDControlController {
|
|
|
21132
21293
|
data2 = this.getData();
|
|
21133
21294
|
}
|
|
21134
21295
|
if (data2.length === 0) {
|
|
21135
|
-
throw new
|
|
21296
|
+
throw new RuntimeError48("\u65E0\u5BFC\u51FA\u6570\u636E");
|
|
21136
21297
|
}
|
|
21137
21298
|
return formatExcelData(data2);
|
|
21138
21299
|
};
|
|
@@ -21513,7 +21674,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
21513
21674
|
};
|
|
21514
21675
|
|
|
21515
21676
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
21516
|
-
import { RuntimeError as
|
|
21677
|
+
import { RuntimeError as RuntimeError49 } from "@ibiz-template/core";
|
|
21517
21678
|
import Schema2 from "async-validator";
|
|
21518
21679
|
import { isNilOrEmpty as isNilOrEmpty9 } from "qx-util";
|
|
21519
21680
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -21650,7 +21811,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
21650
21811
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
21651
21812
|
const result = await this.validate(row);
|
|
21652
21813
|
if (!result) {
|
|
21653
|
-
throw new
|
|
21814
|
+
throw new RuntimeError49(
|
|
21654
21815
|
"".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
|
|
21655
21816
|
);
|
|
21656
21817
|
}
|
|
@@ -22008,7 +22169,7 @@ var ListController = class extends MDControlController {
|
|
|
22008
22169
|
};
|
|
22009
22170
|
|
|
22010
22171
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
22011
|
-
import { recursiveIterate as recursiveIterate6, RuntimeError as
|
|
22172
|
+
import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError50 } from "@ibiz-template/core";
|
|
22012
22173
|
var PanelController = class extends ControlController {
|
|
22013
22174
|
constructor() {
|
|
22014
22175
|
super(...arguments);
|
|
@@ -22131,7 +22292,7 @@ var PanelController = class extends ControlController {
|
|
|
22131
22292
|
var _a, _b;
|
|
22132
22293
|
const data = await this.prepareData();
|
|
22133
22294
|
if (!data) {
|
|
22134
|
-
throw new
|
|
22295
|
+
throw new RuntimeError50("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
|
|
22135
22296
|
}
|
|
22136
22297
|
const panelData = this.convertData(data);
|
|
22137
22298
|
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
@@ -22629,7 +22790,7 @@ var PanelItemController = class {
|
|
|
22629
22790
|
onClick() {
|
|
22630
22791
|
this.panel.evt.emit("onPanelItemEvent", {
|
|
22631
22792
|
panelItemName: this.model.id,
|
|
22632
|
-
panelItemEventName: "onClick"
|
|
22793
|
+
panelItemEventName: "onClick" /* CLICK */
|
|
22633
22794
|
});
|
|
22634
22795
|
}
|
|
22635
22796
|
};
|
|
@@ -23788,7 +23949,7 @@ var TreeController = class extends MDControlController {
|
|
|
23788
23949
|
};
|
|
23789
23950
|
|
|
23790
23951
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
23791
|
-
import { RuntimeError as
|
|
23952
|
+
import { RuntimeError as RuntimeError51 } from "@ibiz-template/core";
|
|
23792
23953
|
|
|
23793
23954
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
23794
23955
|
var WizardPanelService = class extends ControlService {
|
|
@@ -23947,7 +24108,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
23947
24108
|
const { activeFormTag } = this.state;
|
|
23948
24109
|
const controller = this.formControllers.get(activeFormTag);
|
|
23949
24110
|
if (!controller) {
|
|
23950
|
-
throw new
|
|
24111
|
+
throw new RuntimeError51("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
23951
24112
|
}
|
|
23952
24113
|
return controller;
|
|
23953
24114
|
}
|
|
@@ -23987,7 +24148,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
23987
24148
|
getWizardFormByTag(tag) {
|
|
23988
24149
|
var _a;
|
|
23989
24150
|
if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
|
|
23990
|
-
throw new
|
|
24151
|
+
throw new RuntimeError51("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
|
|
23991
24152
|
return;
|
|
23992
24153
|
}
|
|
23993
24154
|
const wizardForm = this.model.dewizard.dewizardForms.find(
|
|
@@ -23996,7 +24157,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
23996
24157
|
}
|
|
23997
24158
|
);
|
|
23998
24159
|
if (!wizardForm) {
|
|
23999
|
-
throw new
|
|
24160
|
+
throw new RuntimeError51("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
|
|
24000
24161
|
}
|
|
24001
24162
|
return wizardForm;
|
|
24002
24163
|
}
|
|
@@ -24063,7 +24224,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24063
24224
|
this.tagHistory.pop();
|
|
24064
24225
|
}
|
|
24065
24226
|
if (!prevTag) {
|
|
24066
|
-
throw new
|
|
24227
|
+
throw new RuntimeError51("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
|
|
24067
24228
|
}
|
|
24068
24229
|
this.state.activeFormTag = prevTag;
|
|
24069
24230
|
}
|
|
@@ -24099,7 +24260,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24099
24260
|
});
|
|
24100
24261
|
const nextWizardStep = wizardSteps[index + 1];
|
|
24101
24262
|
if (!nextWizardStep) {
|
|
24102
|
-
throw new
|
|
24263
|
+
throw new RuntimeError51("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
|
|
24103
24264
|
}
|
|
24104
24265
|
const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
|
|
24105
24266
|
if (nextWizardForm && nextWizardForm.formTag) {
|
|
@@ -24108,7 +24269,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24108
24269
|
}
|
|
24109
24270
|
}
|
|
24110
24271
|
if (!nextTag) {
|
|
24111
|
-
throw new
|
|
24272
|
+
throw new RuntimeError51("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
|
|
24112
24273
|
}
|
|
24113
24274
|
this.state.activeFormTag = nextTag;
|
|
24114
24275
|
this.tagHistory.push(nextTag);
|
|
@@ -24447,7 +24608,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
24447
24608
|
};
|
|
24448
24609
|
|
|
24449
24610
|
// src/controller/control/kanban/kanban.controller.ts
|
|
24450
|
-
import { RuntimeError as
|
|
24611
|
+
import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
|
|
24451
24612
|
import { isNil as isNil24 } from "ramda";
|
|
24452
24613
|
|
|
24453
24614
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -24535,7 +24696,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
24535
24696
|
} else {
|
|
24536
24697
|
const toNum = Number(sortValue);
|
|
24537
24698
|
if (Number.isNaN(toNum)) {
|
|
24538
|
-
throw new
|
|
24699
|
+
throw new RuntimeError52(
|
|
24539
24700
|
"".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
|
|
24540
24701
|
);
|
|
24541
24702
|
}
|
|
@@ -24551,7 +24712,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
24551
24712
|
}
|
|
24552
24713
|
handleDataGroup() {
|
|
24553
24714
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
24554
|
-
throw new
|
|
24715
|
+
throw new RuntimeError52("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
|
|
24555
24716
|
}
|
|
24556
24717
|
return super.handleDataGroup();
|
|
24557
24718
|
}
|
|
@@ -25045,7 +25206,7 @@ var TreeGridService = class extends GridService {
|
|
|
25045
25206
|
};
|
|
25046
25207
|
|
|
25047
25208
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
25048
|
-
import { RuntimeError as
|
|
25209
|
+
import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
|
|
25049
25210
|
import { createUUID as createUUID9 } from "qx-util";
|
|
25050
25211
|
|
|
25051
25212
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -25260,7 +25421,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
25260
25421
|
(item) => item.id === id
|
|
25261
25422
|
);
|
|
25262
25423
|
if (panelUiItemIndex < 0) {
|
|
25263
|
-
throw new
|
|
25424
|
+
throw new RuntimeError53("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
|
|
25264
25425
|
}
|
|
25265
25426
|
const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
|
|
25266
25427
|
if (tempUiItem.id.startsWith("mockId:")) {
|
|
@@ -25675,7 +25836,7 @@ var AppHub = class {
|
|
|
25675
25836
|
this.registerAppView(appView);
|
|
25676
25837
|
return appView;
|
|
25677
25838
|
}
|
|
25678
|
-
throw new
|
|
25839
|
+
throw new RuntimeError54("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
25679
25840
|
}
|
|
25680
25841
|
/**
|
|
25681
25842
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -25706,7 +25867,7 @@ var AppHub = class {
|
|
|
25706
25867
|
this.registerAppDataEntity(entity, appId);
|
|
25707
25868
|
return entity;
|
|
25708
25869
|
}
|
|
25709
|
-
throw new
|
|
25870
|
+
throw new RuntimeError54("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
25710
25871
|
}
|
|
25711
25872
|
/**
|
|
25712
25873
|
* 新建 hub 应用
|
|
@@ -25727,7 +25888,7 @@ var AppHub = class {
|
|
|
25727
25888
|
appModel = await this.modelLoaderProvider.getApp(id);
|
|
25728
25889
|
this.registerApp(appModel);
|
|
25729
25890
|
} else {
|
|
25730
|
-
throw new
|
|
25891
|
+
throw new RuntimeError54("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
|
|
25731
25892
|
}
|
|
25732
25893
|
const app = new Application(appModel);
|
|
25733
25894
|
this.appMap.set(id, app);
|
|
@@ -25825,7 +25986,7 @@ var EngineFactory = class {
|
|
|
25825
25986
|
};
|
|
25826
25987
|
|
|
25827
25988
|
// src/engine/view-base.engine.ts
|
|
25828
|
-
import { RuntimeError as
|
|
25989
|
+
import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
|
|
25829
25990
|
var ViewEngineBase = class {
|
|
25830
25991
|
/**
|
|
25831
25992
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -26013,7 +26174,7 @@ var ViewEngineBase = class {
|
|
|
26013
26174
|
const { appDataEntityId } = this.view.model;
|
|
26014
26175
|
const { evt, context, params } = this.view;
|
|
26015
26176
|
if (!appDataEntityId) {
|
|
26016
|
-
throw new
|
|
26177
|
+
throw new RuntimeError55("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
26017
26178
|
}
|
|
26018
26179
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
26019
26180
|
const res = await app.deService.exec(
|
|
@@ -26370,7 +26531,7 @@ import {
|
|
|
26370
26531
|
ModelError as ModelError28,
|
|
26371
26532
|
HttpError as HttpError4,
|
|
26372
26533
|
NoticeError as NoticeError2,
|
|
26373
|
-
RuntimeError as
|
|
26534
|
+
RuntimeError as RuntimeError56
|
|
26374
26535
|
} from "@ibiz-template/core";
|
|
26375
26536
|
var DefaultErrorHandler = class {
|
|
26376
26537
|
handle(error) {
|
|
@@ -26388,7 +26549,7 @@ var DefaultErrorHandler = class {
|
|
|
26388
26549
|
}
|
|
26389
26550
|
} else if (error instanceof NoticeError2) {
|
|
26390
26551
|
ibiz.message.error(error.message, error.duration, error.duration === 0);
|
|
26391
|
-
} else if (error instanceof
|
|
26552
|
+
} else if (error instanceof RuntimeError56) {
|
|
26392
26553
|
ibiz.message.error(error.message, 10, true);
|
|
26393
26554
|
}
|
|
26394
26555
|
ibiz.log.error(error);
|
|
@@ -26516,7 +26677,7 @@ var GlobalUtil = class {
|
|
|
26516
26677
|
};
|
|
26517
26678
|
|
|
26518
26679
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
26519
|
-
import { RuntimeError as
|
|
26680
|
+
import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
|
|
26520
26681
|
var LogicExecutor = class {
|
|
26521
26682
|
/**
|
|
26522
26683
|
* @author lxm
|
|
@@ -26537,7 +26698,7 @@ var LogicExecutor = class {
|
|
|
26537
26698
|
*/
|
|
26538
26699
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26539
26700
|
execute(_executeParams) {
|
|
26540
|
-
throw new
|
|
26701
|
+
throw new RuntimeError57("Method not implemented.");
|
|
26541
26702
|
}
|
|
26542
26703
|
/**
|
|
26543
26704
|
* 销毁方法
|
|
@@ -26974,7 +27135,7 @@ var LogicSchedulerCenter = class {
|
|
|
26974
27135
|
};
|
|
26975
27136
|
|
|
26976
27137
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
26977
|
-
import { RuntimeError as
|
|
27138
|
+
import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
|
|
26978
27139
|
var LogicTrigger = class {
|
|
26979
27140
|
/**
|
|
26980
27141
|
* @author lxm
|
|
@@ -27034,7 +27195,7 @@ var LogicTrigger = class {
|
|
|
27034
27195
|
if (this.executor) {
|
|
27035
27196
|
return this.executor.execute(executeParams);
|
|
27036
27197
|
}
|
|
27037
|
-
throw new
|
|
27198
|
+
throw new RuntimeError58("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
27038
27199
|
}
|
|
27039
27200
|
/**
|
|
27040
27201
|
* 销毁方法
|
|
@@ -27051,12 +27212,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
27051
27212
|
};
|
|
27052
27213
|
|
|
27053
27214
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
27054
|
-
import { RuntimeError as
|
|
27215
|
+
import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
|
|
27055
27216
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
27056
27217
|
bindExecutor(executor) {
|
|
27057
27218
|
super.bindExecutor(executor);
|
|
27058
27219
|
if (this.executor.type !== "SCRIPT") {
|
|
27059
|
-
throw new
|
|
27220
|
+
throw new RuntimeError59(
|
|
27060
27221
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
27061
27222
|
);
|
|
27062
27223
|
}
|
|
@@ -27092,7 +27253,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
27092
27253
|
};
|
|
27093
27254
|
|
|
27094
27255
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
27095
|
-
import { RuntimeError as
|
|
27256
|
+
import { RuntimeError as RuntimeError60, RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
|
|
27096
27257
|
var TimerTrigger = class extends LogicTrigger {
|
|
27097
27258
|
constructor() {
|
|
27098
27259
|
super(...arguments);
|
|
@@ -27104,7 +27265,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
27104
27265
|
}
|
|
27105
27266
|
this.timer = setInterval(() => {
|
|
27106
27267
|
if (!this.scheduler.defaultParamsCb) {
|
|
27107
|
-
throw new
|
|
27268
|
+
throw new RuntimeError60("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
27108
27269
|
}
|
|
27109
27270
|
const params = this.scheduler.defaultParamsCb();
|
|
27110
27271
|
this.executor.execute(params);
|
|
@@ -27121,7 +27282,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
27121
27282
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
27122
27283
|
import {
|
|
27123
27284
|
ModelError as ModelError31,
|
|
27124
|
-
RuntimeError as
|
|
27285
|
+
RuntimeError as RuntimeError61,
|
|
27125
27286
|
RuntimeModelError as RuntimeModelError62
|
|
27126
27287
|
} from "@ibiz-template/core";
|
|
27127
27288
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -27154,7 +27315,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
27154
27315
|
const { context, params, ...rest } = parameters;
|
|
27155
27316
|
const { data } = parameters;
|
|
27156
27317
|
if (!(data == null ? void 0 : data[0])) {
|
|
27157
|
-
throw new
|
|
27318
|
+
throw new RuntimeError61("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
27158
27319
|
}
|
|
27159
27320
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
27160
27321
|
let openViewRef;
|
|
@@ -27213,7 +27374,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
27213
27374
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
27214
27375
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
27215
27376
|
if (!findView) {
|
|
27216
|
-
throw new
|
|
27377
|
+
throw new RuntimeError61(
|
|
27217
27378
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
27218
27379
|
);
|
|
27219
27380
|
}
|
|
@@ -27331,12 +27492,12 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
27331
27492
|
}
|
|
27332
27493
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
27333
27494
|
if (!selectData) {
|
|
27334
|
-
throw new
|
|
27495
|
+
throw new RuntimeError61("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
27335
27496
|
}
|
|
27336
27497
|
const indexType = selectData.srfkey;
|
|
27337
27498
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
|
|
27338
27499
|
if (!findView) {
|
|
27339
|
-
throw new
|
|
27500
|
+
throw new RuntimeError61(
|
|
27340
27501
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
27341
27502
|
);
|
|
27342
27503
|
}
|
|
@@ -27537,6 +27698,7 @@ function install() {
|
|
|
27537
27698
|
ibiz2.register = new RegisterCenter();
|
|
27538
27699
|
ibiz2.config = new GlobalConfig();
|
|
27539
27700
|
ibiz2.auth = new V7AuthService();
|
|
27701
|
+
ibiz2.asyncAction = new AsyncActionService();
|
|
27540
27702
|
ibiz2.engine = new EngineFactory();
|
|
27541
27703
|
installCommand();
|
|
27542
27704
|
presetUIActionProvider();
|
|
@@ -27631,6 +27793,7 @@ var RemotePluginItem = class {
|
|
|
27631
27793
|
};
|
|
27632
27794
|
export {
|
|
27633
27795
|
APP_COUNTER_PROVIDER_PREFIX,
|
|
27796
|
+
ASYNC_ACTION_PROVIDER_PREFIX,
|
|
27634
27797
|
ActionBarPortletController,
|
|
27635
27798
|
ActivityCounter,
|
|
27636
27799
|
AppCounter,
|
|
@@ -27641,6 +27804,7 @@ export {
|
|
|
27641
27804
|
AppMenuController,
|
|
27642
27805
|
AppMenuIconViewController,
|
|
27643
27806
|
Application,
|
|
27807
|
+
AsyncActionService,
|
|
27644
27808
|
AuthorityService,
|
|
27645
27809
|
BackendUIActionProvider,
|
|
27646
27810
|
BaseController,
|
|
@@ -27691,6 +27855,7 @@ export {
|
|
|
27691
27855
|
FormController,
|
|
27692
27856
|
FormDRUIPartController,
|
|
27693
27857
|
FormDetailController,
|
|
27858
|
+
FormDetailEventName,
|
|
27694
27859
|
FormDetailState,
|
|
27695
27860
|
FormDruipartState,
|
|
27696
27861
|
FormGroupPanelController,
|
|
@@ -27762,6 +27927,7 @@ export {
|
|
|
27762
27927
|
PanelController,
|
|
27763
27928
|
PanelData,
|
|
27764
27929
|
PanelItemController,
|
|
27930
|
+
PanelItemEventName,
|
|
27765
27931
|
PanelItemState,
|
|
27766
27932
|
PanelNotifyState,
|
|
27767
27933
|
PickupViewPanelController,
|
|
@@ -27854,6 +28020,7 @@ export {
|
|
|
27854
28020
|
getAllPanelField,
|
|
27855
28021
|
getAppCounterProvider,
|
|
27856
28022
|
getAppViewRef,
|
|
28023
|
+
getAsyncActionProvider,
|
|
27857
28024
|
getChildNodeRSs,
|
|
27858
28025
|
getControl,
|
|
27859
28026
|
getControlProvider,
|
|
@@ -27892,6 +28059,7 @@ export {
|
|
|
27892
28059
|
presetAppCounterProvider,
|
|
27893
28060
|
presetUIActionProvider,
|
|
27894
28061
|
registerAppCounterProvider,
|
|
28062
|
+
registerAsyncActionProvider,
|
|
27895
28063
|
registerControlProvider,
|
|
27896
28064
|
registerEditorProvider,
|
|
27897
28065
|
registerFormDetailProvider,
|