@ibiz-template/runtime 0.7.41-alpha.41 → 0.7.41-alpha.42
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 +925 -187
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +2 -0
- package/out/controller/control/toolbar/toolbar.controller.d.ts +1 -2
- package/out/controller/control/toolbar/toolbar.controller.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controller.js +0 -1
- package/out/global/global-util/global-util.d.ts +6 -1
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +6 -1
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +16 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
- package/out/interface/api/util/i-api-ai-chat-util.d.ts +29 -5
- package/out/interface/api/util/i-api-ai-chat-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-global-util.d.ts +7 -0
- package/out/interface/api/util/i-api-global-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-json-util.d.ts +82 -0
- package/out/interface/api/util/i-api-json-util.d.ts.map +1 -0
- package/out/interface/api/util/i-api-json-util.js +1 -0
- package/out/interface/api/util/index.d.ts +1 -0
- package/out/interface/api/util/index.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-toolbar.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-toolbar.controller.d.ts.map +1 -1
- package/out/interface/util/i-json-util/i-json-util.d.ts +7 -0
- package/out/interface/util/i-json-util/i-json-util.d.ts.map +1 -0
- package/out/interface/util/i-json-util/i-json-util.js +1 -0
- package/out/interface/util/index.d.ts +1 -0
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +4 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +4 -0
- package/out/locale/zh-CN/index.d.ts +4 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +4 -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/service/service/util/ai-util.service.d.ts +143 -0
- package/out/service/service/util/ai-util.service.d.ts.map +1 -0
- package/out/service/service/util/ai-util.service.js +341 -0
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/json-util/JsonContext.d.ts +16 -0
- package/out/utils/json-util/JsonContext.d.ts.map +1 -0
- package/out/utils/json-util/JsonContext.js +34 -0
- package/out/utils/json-util/JsonParser.d.ts +20 -0
- package/out/utils/json-util/JsonParser.d.ts.map +1 -0
- package/out/utils/json-util/JsonParser.js +228 -0
- package/out/utils/json-util/json-repair.d.ts +21 -0
- package/out/utils/json-util/json-repair.d.ts.map +1 -0
- package/out/utils/json-util/json-repair.js +62 -0
- package/out/utils/json-util/json-util.d.ts +28 -0
- package/out/utils/json-util/json-util.d.ts.map +1 -0
- package/out/utils/json-util/json-util.js +48 -0
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -19431,7 +19431,9 @@ var GlobalConfig = class {
|
|
|
19431
19431
|
enableDownloadTicket: false,
|
|
19432
19432
|
batchToolbarMode: "default",
|
|
19433
19433
|
mergeAppMenu: "default",
|
|
19434
|
-
enableAIMinimize: true
|
|
19434
|
+
enableAIMinimize: true,
|
|
19435
|
+
aiChatTopicCaptionMode: "default",
|
|
19436
|
+
aiResourceMode: void 0
|
|
19435
19437
|
};
|
|
19436
19438
|
// 全局分页流布局配置
|
|
19437
19439
|
this.drtab = {
|
|
@@ -19544,7 +19546,7 @@ var RegisterCenter = class {
|
|
|
19544
19546
|
};
|
|
19545
19547
|
|
|
19546
19548
|
// src/command/app/app-func/app-func.ts
|
|
19547
|
-
import { ModelError as ModelError31, RuntimeError as
|
|
19549
|
+
import { ModelError as ModelError31, RuntimeError as RuntimeError71 } from "@ibiz-template/core";
|
|
19548
19550
|
|
|
19549
19551
|
// src/utils/error-handler/default-error-handler.ts
|
|
19550
19552
|
import {
|
|
@@ -22824,7 +22826,7 @@ import { clone as clone55 } from "ramda";
|
|
|
22824
22826
|
// src/utils/theme-util/custom-theme-util.ts
|
|
22825
22827
|
import { notNilEmpty as notNilEmpty7 } from "qx-util";
|
|
22826
22828
|
import { clone as clone19 } from "ramda";
|
|
22827
|
-
import { RuntimeError as
|
|
22829
|
+
import { RuntimeError as RuntimeError25 } from "@ibiz-template/core";
|
|
22828
22830
|
|
|
22829
22831
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
22830
22832
|
import { isEmpty as isEmpty4, isNil as isNil5 } from "ramda";
|
|
@@ -33709,6 +33711,402 @@ var ThirdAuthService = class {
|
|
|
33709
33711
|
}
|
|
33710
33712
|
};
|
|
33711
33713
|
|
|
33714
|
+
// src/service/service/util/ai-util.service.ts
|
|
33715
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
33716
|
+
var AIUtilService = class {
|
|
33717
|
+
/**
|
|
33718
|
+
* 构造函数
|
|
33719
|
+
* @param appUtil
|
|
33720
|
+
*/
|
|
33721
|
+
constructor(appUtil) {
|
|
33722
|
+
this.appUtil = appUtil;
|
|
33723
|
+
this.sessionAppEntityName = appUtil.utilDEName;
|
|
33724
|
+
this.messageAppEntityName = appUtil.utilDE2Name;
|
|
33725
|
+
this.utilParams = this.parseUserUtilParams();
|
|
33726
|
+
}
|
|
33727
|
+
/**
|
|
33728
|
+
* 解析用户自定义功能参数
|
|
33729
|
+
* @returns
|
|
33730
|
+
*/
|
|
33731
|
+
parseUserUtilParams() {
|
|
33732
|
+
const { utilParams } = this.appUtil;
|
|
33733
|
+
const result = {};
|
|
33734
|
+
if (utilParams && Object.keys(utilParams).length > 0) {
|
|
33735
|
+
Object.keys(utilParams).forEach((key) => {
|
|
33736
|
+
if (key !== "appId") {
|
|
33737
|
+
if (key === "sessionmodelMapping" || key === "messagemodelMapping") {
|
|
33738
|
+
const tempParams = {};
|
|
33739
|
+
if (utilParams[key]) {
|
|
33740
|
+
const pairs = utilParams[key].split("|");
|
|
33741
|
+
pairs.forEach((pair) => {
|
|
33742
|
+
const [tempKey, tempVal] = pair.split(":");
|
|
33743
|
+
if (tempKey && tempVal) {
|
|
33744
|
+
tempParams[tempKey] = tempVal;
|
|
33745
|
+
}
|
|
33746
|
+
});
|
|
33747
|
+
}
|
|
33748
|
+
Object.assign(result, { [key]: tempParams });
|
|
33749
|
+
} else {
|
|
33750
|
+
Object.assign(result, { [key]: utilParams[key] });
|
|
33751
|
+
}
|
|
33752
|
+
}
|
|
33753
|
+
});
|
|
33754
|
+
}
|
|
33755
|
+
return result;
|
|
33756
|
+
}
|
|
33757
|
+
/**
|
|
33758
|
+
* 获取会话服务
|
|
33759
|
+
* @param context
|
|
33760
|
+
* @returns
|
|
33761
|
+
*/
|
|
33762
|
+
async getSessionService(context) {
|
|
33763
|
+
if (this.sessionService) {
|
|
33764
|
+
return this.sessionService;
|
|
33765
|
+
}
|
|
33766
|
+
if (!this.sessionAppEntityName) {
|
|
33767
|
+
return;
|
|
33768
|
+
}
|
|
33769
|
+
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
33770
|
+
this.sessionService = await app.deService.getService(
|
|
33771
|
+
context,
|
|
33772
|
+
this.sessionAppEntityName
|
|
33773
|
+
);
|
|
33774
|
+
return this.sessionService;
|
|
33775
|
+
}
|
|
33776
|
+
/**
|
|
33777
|
+
* 获取消息服务
|
|
33778
|
+
* @param context
|
|
33779
|
+
* @returns
|
|
33780
|
+
*/
|
|
33781
|
+
async getMessageService(context) {
|
|
33782
|
+
if (this.messageService) {
|
|
33783
|
+
return this.messageService;
|
|
33784
|
+
}
|
|
33785
|
+
if (!this.messageAppEntityName) {
|
|
33786
|
+
return;
|
|
33787
|
+
}
|
|
33788
|
+
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
33789
|
+
this.messageService = await app.deService.getService(
|
|
33790
|
+
context,
|
|
33791
|
+
this.messageAppEntityName
|
|
33792
|
+
);
|
|
33793
|
+
return this.messageService;
|
|
33794
|
+
}
|
|
33795
|
+
/**
|
|
33796
|
+
* 处理请求数据
|
|
33797
|
+
* @param data
|
|
33798
|
+
* @returns
|
|
33799
|
+
*/
|
|
33800
|
+
handleUserRequestData(data, mappingField) {
|
|
33801
|
+
const modelMapping = this.utilParams[mappingField];
|
|
33802
|
+
if (!modelMapping)
|
|
33803
|
+
return data;
|
|
33804
|
+
let result;
|
|
33805
|
+
const convertData = (sourceObj) => {
|
|
33806
|
+
const targetObj = {};
|
|
33807
|
+
if (Object.keys(modelMapping).length === 0) {
|
|
33808
|
+
return sourceObj;
|
|
33809
|
+
}
|
|
33810
|
+
Object.keys(modelMapping).forEach((key) => {
|
|
33811
|
+
targetObj[modelMapping[key]] = sourceObj[key];
|
|
33812
|
+
});
|
|
33813
|
+
return targetObj;
|
|
33814
|
+
};
|
|
33815
|
+
if (!data) {
|
|
33816
|
+
throw new Error(ibiz.i18n.t("runtime.service.dataException"));
|
|
33817
|
+
}
|
|
33818
|
+
if (Array.isArray(data) && data.length > 0) {
|
|
33819
|
+
result = data.map((item) => {
|
|
33820
|
+
return convertData(item);
|
|
33821
|
+
});
|
|
33822
|
+
return result;
|
|
33823
|
+
}
|
|
33824
|
+
result = convertData(data);
|
|
33825
|
+
return result;
|
|
33826
|
+
}
|
|
33827
|
+
/**
|
|
33828
|
+
* 处理响应数据
|
|
33829
|
+
* @param response
|
|
33830
|
+
* @param key
|
|
33831
|
+
* @returns
|
|
33832
|
+
*/
|
|
33833
|
+
handleUserResponse(response, mappingField) {
|
|
33834
|
+
const { data } = response;
|
|
33835
|
+
const modelMapping = this.utilParams[mappingField];
|
|
33836
|
+
if (!modelMapping) {
|
|
33837
|
+
return data;
|
|
33838
|
+
}
|
|
33839
|
+
let result;
|
|
33840
|
+
const convertData = (sourceObj) => {
|
|
33841
|
+
const targetObj = {};
|
|
33842
|
+
if (Object.keys(modelMapping).length === 0) {
|
|
33843
|
+
return sourceObj;
|
|
33844
|
+
}
|
|
33845
|
+
Object.keys(modelMapping).forEach((key) => {
|
|
33846
|
+
targetObj[key] = sourceObj[modelMapping[key]];
|
|
33847
|
+
});
|
|
33848
|
+
return targetObj;
|
|
33849
|
+
};
|
|
33850
|
+
if (!data) {
|
|
33851
|
+
throw new Error(ibiz.i18n.t("runtime.service.dataException"));
|
|
33852
|
+
}
|
|
33853
|
+
if (Array.isArray(data) && data.length > 0) {
|
|
33854
|
+
result = data.map((item) => {
|
|
33855
|
+
return convertData(item);
|
|
33856
|
+
});
|
|
33857
|
+
return result;
|
|
33858
|
+
}
|
|
33859
|
+
result = convertData(data);
|
|
33860
|
+
return result;
|
|
33861
|
+
}
|
|
33862
|
+
/**
|
|
33863
|
+
* 获取会话列表
|
|
33864
|
+
* @param context
|
|
33865
|
+
* @param params
|
|
33866
|
+
* @returns
|
|
33867
|
+
*/
|
|
33868
|
+
async getSessionList(context, params) {
|
|
33869
|
+
var _a3;
|
|
33870
|
+
const getSessionAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.getSessionAppDEActionId;
|
|
33871
|
+
if (!getSessionAppDEActionId)
|
|
33872
|
+
throw new RuntimeError23("getSessionAppDEActionId is null");
|
|
33873
|
+
const sessionService = await this.getSessionService(context);
|
|
33874
|
+
if (!sessionService)
|
|
33875
|
+
throw new RuntimeError23("sessionService is null");
|
|
33876
|
+
const response = await sessionService.exec(
|
|
33877
|
+
getSessionAppDEActionId,
|
|
33878
|
+
context,
|
|
33879
|
+
{
|
|
33880
|
+
...params
|
|
33881
|
+
}
|
|
33882
|
+
);
|
|
33883
|
+
const result = this.handleUserResponse(
|
|
33884
|
+
response,
|
|
33885
|
+
"sessionmodelMapping"
|
|
33886
|
+
);
|
|
33887
|
+
return result;
|
|
33888
|
+
}
|
|
33889
|
+
/**
|
|
33890
|
+
* 更新会话
|
|
33891
|
+
* @param context
|
|
33892
|
+
* @param params
|
|
33893
|
+
* @param data
|
|
33894
|
+
* @returns
|
|
33895
|
+
*/
|
|
33896
|
+
async updateSession(context, params, sessionID, data) {
|
|
33897
|
+
var _a3;
|
|
33898
|
+
const updateSessionAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.updateSessionAppDEActionId;
|
|
33899
|
+
if (!updateSessionAppDEActionId)
|
|
33900
|
+
throw new RuntimeError23("updateSessionAppDEActionId is null");
|
|
33901
|
+
if (!data || Object.keys(data).length === 0)
|
|
33902
|
+
throw new RuntimeError23("data is null");
|
|
33903
|
+
const sessionService = await this.getSessionService(context);
|
|
33904
|
+
if (!sessionService)
|
|
33905
|
+
throw new RuntimeError23("sessionService is null");
|
|
33906
|
+
const tempContext = context.clone();
|
|
33907
|
+
tempContext[this.sessionAppEntityName.toLowerCase()] = sessionID;
|
|
33908
|
+
const tempData = this.handleUserRequestData(data, "sessionmodelMapping");
|
|
33909
|
+
const response = await sessionService.exec(
|
|
33910
|
+
updateSessionAppDEActionId,
|
|
33911
|
+
tempContext,
|
|
33912
|
+
{ ...tempData },
|
|
33913
|
+
{
|
|
33914
|
+
...params
|
|
33915
|
+
}
|
|
33916
|
+
);
|
|
33917
|
+
const result = this.handleUserResponse(
|
|
33918
|
+
response,
|
|
33919
|
+
"sessionmodelMapping"
|
|
33920
|
+
);
|
|
33921
|
+
return result;
|
|
33922
|
+
}
|
|
33923
|
+
/**
|
|
33924
|
+
* 删除会话(多个以逗号分割)
|
|
33925
|
+
* @param context
|
|
33926
|
+
* @param params
|
|
33927
|
+
* @returns
|
|
33928
|
+
*/
|
|
33929
|
+
async deleteSession(context, params, sessionID) {
|
|
33930
|
+
var _a3;
|
|
33931
|
+
if (!sessionID)
|
|
33932
|
+
return false;
|
|
33933
|
+
const sessionIDs = sessionID.split(",").filter((session) => {
|
|
33934
|
+
return !!session;
|
|
33935
|
+
});
|
|
33936
|
+
const deleteSessionAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.deleteSessionAppDEActionId;
|
|
33937
|
+
if (!deleteSessionAppDEActionId)
|
|
33938
|
+
throw new RuntimeError23("deleteSessionAppDEActionId is null");
|
|
33939
|
+
const sessionService = await this.getSessionService(context);
|
|
33940
|
+
if (!sessionService)
|
|
33941
|
+
throw new RuntimeError23("sessionService is null");
|
|
33942
|
+
await handleAllSettled(
|
|
33943
|
+
sessionIDs.map(async (sessionid) => {
|
|
33944
|
+
const tempContext = context.clone();
|
|
33945
|
+
tempContext[this.sessionAppEntityName.toLowerCase()] = sessionid;
|
|
33946
|
+
await sessionService.exec(
|
|
33947
|
+
deleteSessionAppDEActionId,
|
|
33948
|
+
tempContext,
|
|
33949
|
+
{
|
|
33950
|
+
id: sessionid
|
|
33951
|
+
},
|
|
33952
|
+
{ ...params }
|
|
33953
|
+
);
|
|
33954
|
+
})
|
|
33955
|
+
);
|
|
33956
|
+
return true;
|
|
33957
|
+
}
|
|
33958
|
+
/**
|
|
33959
|
+
* 获取消息列表
|
|
33960
|
+
* @param context
|
|
33961
|
+
* @param params
|
|
33962
|
+
* @param sessionID
|
|
33963
|
+
* @returns
|
|
33964
|
+
*/
|
|
33965
|
+
async getMessageList(context, params, sessionID) {
|
|
33966
|
+
var _a3;
|
|
33967
|
+
const getMessageAppDEActionId = (_a3 = this.utilParams) == null ? void 0 : _a3.getMessageAppDEActionId;
|
|
33968
|
+
if (!getMessageAppDEActionId)
|
|
33969
|
+
throw new RuntimeError23("getMessageAppDEActionId is null");
|
|
33970
|
+
const messageService = await this.getMessageService(context);
|
|
33971
|
+
if (!messageService)
|
|
33972
|
+
throw new RuntimeError23("messageService is null");
|
|
33973
|
+
const response = await messageService.exec(
|
|
33974
|
+
getMessageAppDEActionId,
|
|
33975
|
+
context,
|
|
33976
|
+
{
|
|
33977
|
+
...params,
|
|
33978
|
+
n_conversation_id_eq: sessionID
|
|
33979
|
+
}
|
|
33980
|
+
);
|
|
33981
|
+
const result = this.handleUserResponse(
|
|
33982
|
+
response,
|
|
33983
|
+
"messagemodelMapping"
|
|
33984
|
+
);
|
|
33985
|
+
return result;
|
|
33986
|
+
}
|
|
33987
|
+
/**
|
|
33988
|
+
* 删除消息(多个以逗号分割)
|
|
33989
|
+
* @param context
|
|
33990
|
+
* @param params
|
|
33991
|
+
* @param sessionID
|
|
33992
|
+
* @param messageID
|
|
33993
|
+
*/
|
|
33994
|
+
async deleteMessage(context, params, sessionID, messageID) {
|
|
33995
|
+
if (!sessionID || !messageID)
|
|
33996
|
+
return false;
|
|
33997
|
+
const { deleteMessageAppDEActionId } = this.utilParams;
|
|
33998
|
+
if (!deleteMessageAppDEActionId)
|
|
33999
|
+
throw new RuntimeError23("deleteMessageAppDEActionId is null");
|
|
34000
|
+
const messageService = await this.getMessageService(context);
|
|
34001
|
+
if (!messageService)
|
|
34002
|
+
throw new RuntimeError23("messageService is null");
|
|
34003
|
+
const messageIDs = messageID.split(",").filter((message) => {
|
|
34004
|
+
return !!message;
|
|
34005
|
+
});
|
|
34006
|
+
const tempContext = context.clone();
|
|
34007
|
+
tempContext[this.sessionAppEntityName.toLowerCase()] = sessionID;
|
|
34008
|
+
await handleAllSettled(
|
|
34009
|
+
messageIDs.map(async (messageid) => {
|
|
34010
|
+
tempContext[this.messageAppEntityName.toLowerCase()] = messageid;
|
|
34011
|
+
await messageService.exec(deleteMessageAppDEActionId, tempContext, {
|
|
34012
|
+
...params
|
|
34013
|
+
});
|
|
34014
|
+
})
|
|
34015
|
+
);
|
|
34016
|
+
return true;
|
|
34017
|
+
}
|
|
34018
|
+
/**
|
|
34019
|
+
* 点赞
|
|
34020
|
+
* @param context
|
|
34021
|
+
* @param params
|
|
34022
|
+
* @param sessionID
|
|
34023
|
+
* @param messageID
|
|
34024
|
+
* @returns
|
|
34025
|
+
*/
|
|
34026
|
+
async likeMessage(context, params, sessionID, messageID) {
|
|
34027
|
+
if (!sessionID || !messageID)
|
|
34028
|
+
return false;
|
|
34029
|
+
const { likeMessageAppDEActionId } = this.utilParams;
|
|
34030
|
+
if (!likeMessageAppDEActionId)
|
|
34031
|
+
throw new RuntimeError23("likeMessageAppDEActionId is null");
|
|
34032
|
+
const messageService = await this.getMessageService(context);
|
|
34033
|
+
if (!messageService)
|
|
34034
|
+
throw new RuntimeError23("messageService is null");
|
|
34035
|
+
const tempContext = context.clone();
|
|
34036
|
+
tempContext[this.sessionAppEntityName.toLowerCase()] = sessionID;
|
|
34037
|
+
tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
|
|
34038
|
+
await messageService.exec(
|
|
34039
|
+
likeMessageAppDEActionId,
|
|
34040
|
+
tempContext,
|
|
34041
|
+
{ id: messageID },
|
|
34042
|
+
{
|
|
34043
|
+
...params
|
|
34044
|
+
}
|
|
34045
|
+
);
|
|
34046
|
+
return true;
|
|
34047
|
+
}
|
|
34048
|
+
/**
|
|
34049
|
+
* 点踩
|
|
34050
|
+
* @param context
|
|
34051
|
+
* @param params
|
|
34052
|
+
* @param sessionID
|
|
34053
|
+
* @param messageID
|
|
34054
|
+
* @returns
|
|
34055
|
+
*/
|
|
34056
|
+
async dislikeMessage(context, params, sessionID, messageID, feedbackContent) {
|
|
34057
|
+
if (!sessionID || !messageID)
|
|
34058
|
+
return false;
|
|
34059
|
+
const { dislikeMessageAppDEActionId } = this.utilParams;
|
|
34060
|
+
if (!dislikeMessageAppDEActionId)
|
|
34061
|
+
throw new RuntimeError23("dislikeMessageAppDEActionId is null");
|
|
34062
|
+
const messageService = await this.getMessageService(context);
|
|
34063
|
+
if (!messageService)
|
|
34064
|
+
throw new RuntimeError23("messageService is null");
|
|
34065
|
+
const tempContext = context.clone();
|
|
34066
|
+
tempContext[this.sessionAppEntityName.toLowerCase()] = sessionID;
|
|
34067
|
+
tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
|
|
34068
|
+
await messageService.exec(
|
|
34069
|
+
dislikeMessageAppDEActionId,
|
|
34070
|
+
tempContext,
|
|
34071
|
+
{ id: messageID, feedback_content: feedbackContent },
|
|
34072
|
+
{
|
|
34073
|
+
...params
|
|
34074
|
+
}
|
|
34075
|
+
);
|
|
34076
|
+
return true;
|
|
34077
|
+
}
|
|
34078
|
+
/**
|
|
34079
|
+
* 取消点赞或者点踩
|
|
34080
|
+
* @param context
|
|
34081
|
+
* @param params
|
|
34082
|
+
* @param sessionID
|
|
34083
|
+
* @param messageID
|
|
34084
|
+
* @returns
|
|
34085
|
+
*/
|
|
34086
|
+
async cancelFeedback(context, params, sessionID, messageID) {
|
|
34087
|
+
if (!sessionID || !messageID)
|
|
34088
|
+
return false;
|
|
34089
|
+
const { cancelFeedbackMessageAppDEActionId } = this.utilParams;
|
|
34090
|
+
if (!cancelFeedbackMessageAppDEActionId)
|
|
34091
|
+
throw new RuntimeError23("cancelFeedbackAppDEActionId is null");
|
|
34092
|
+
const messageService = await this.getMessageService(context);
|
|
34093
|
+
if (!messageService)
|
|
34094
|
+
throw new RuntimeError23("messageService is null");
|
|
34095
|
+
const tempContext = context.clone();
|
|
34096
|
+
tempContext[this.sessionAppEntityName.toLowerCase()] = sessionID;
|
|
34097
|
+
tempContext[this.messageAppEntityName.toLowerCase()] = messageID;
|
|
34098
|
+
await messageService.exec(
|
|
34099
|
+
cancelFeedbackMessageAppDEActionId,
|
|
34100
|
+
tempContext,
|
|
34101
|
+
{ id: messageID },
|
|
34102
|
+
{
|
|
34103
|
+
...params
|
|
34104
|
+
}
|
|
34105
|
+
);
|
|
34106
|
+
return true;
|
|
34107
|
+
}
|
|
34108
|
+
};
|
|
34109
|
+
|
|
33712
34110
|
// src/service/mqtt/mqtt.service.ts
|
|
33713
34111
|
import { clone as clone18 } from "lodash-es";
|
|
33714
34112
|
import { QXEvent as QXEvent5, createUUID as createUUID9 } from "qx-util";
|
|
@@ -33970,7 +34368,7 @@ var CollaborateService = class {
|
|
|
33970
34368
|
};
|
|
33971
34369
|
|
|
33972
34370
|
// src/service/de-service-util.ts
|
|
33973
|
-
import { RuntimeError as
|
|
34371
|
+
import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
33974
34372
|
var _DEServiceUtil = class _DEServiceUtil {
|
|
33975
34373
|
/**
|
|
33976
34374
|
* Creates an instance of DEServiceUtil.
|
|
@@ -34104,7 +34502,7 @@ var _DEServiceUtil = class _DEServiceUtil {
|
|
|
34104
34502
|
appid || this.appModel.appId
|
|
34105
34503
|
);
|
|
34106
34504
|
if (!entityModel) {
|
|
34107
|
-
throw new
|
|
34505
|
+
throw new RuntimeError24(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
34108
34506
|
}
|
|
34109
34507
|
const constructor = _DEServiceUtil.constructorCache.get(id.toUpperCase());
|
|
34110
34508
|
let service;
|
|
@@ -34457,7 +34855,7 @@ var CustomThemeUtil = class {
|
|
|
34457
34855
|
ibiz.i18n.t("runtime.controller.utils.customThemeUtil.saveSuccess")
|
|
34458
34856
|
);
|
|
34459
34857
|
} else {
|
|
34460
|
-
throw new
|
|
34858
|
+
throw new RuntimeError25(
|
|
34461
34859
|
ibiz.i18n.t("runtime.controller.utils.customThemeUtil.saveError")
|
|
34462
34860
|
);
|
|
34463
34861
|
}
|
|
@@ -34486,7 +34884,7 @@ var CustomThemeUtil = class {
|
|
|
34486
34884
|
ibiz.i18n.t("runtime.controller.utils.customThemeUtil.resetSuccess")
|
|
34487
34885
|
);
|
|
34488
34886
|
} else {
|
|
34489
|
-
throw new
|
|
34887
|
+
throw new RuntimeError25(
|
|
34490
34888
|
ibiz.i18n.t("runtime.controller.utils.customThemeUtil.resetError")
|
|
34491
34889
|
);
|
|
34492
34890
|
}
|
|
@@ -34593,7 +34991,7 @@ import {
|
|
|
34593
34991
|
HttpError as HttpError7,
|
|
34594
34992
|
IBizContext as IBizContext4,
|
|
34595
34993
|
Namespace,
|
|
34596
|
-
RuntimeError as
|
|
34994
|
+
RuntimeError as RuntimeError31
|
|
34597
34995
|
} from "@ibiz-template/core";
|
|
34598
34996
|
import { isEmpty as isEmpty9, isNil as isNil24, isNotNil as isNotNil2 } from "ramda";
|
|
34599
34997
|
|
|
@@ -35430,7 +35828,7 @@ function formatSeparator(type, items, state, opts) {
|
|
|
35430
35828
|
}
|
|
35431
35829
|
|
|
35432
35830
|
// src/controller/utils/value-rule/value-rule.ts
|
|
35433
|
-
import { RuntimeError as
|
|
35831
|
+
import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
|
|
35434
35832
|
import { isNilOrEmpty as isNilOrEmpty6, isNumber as isNumber3 } from "qx-util";
|
|
35435
35833
|
import { isNil as isNil20 } from "ramda";
|
|
35436
35834
|
function generateRules(itemVRs, name2, valueItemName) {
|
|
@@ -35480,7 +35878,7 @@ function generateRules(itemVRs, name2, valueItemName) {
|
|
|
35480
35878
|
deRule.groupCond
|
|
35481
35879
|
);
|
|
35482
35880
|
if (!isPast) {
|
|
35483
|
-
callback(new
|
|
35881
|
+
callback(new RuntimeError26(infoMessage || deRule.ruleInfo));
|
|
35484
35882
|
}
|
|
35485
35883
|
return true;
|
|
35486
35884
|
},
|
|
@@ -35568,7 +35966,7 @@ function generateEditorRules(editor) {
|
|
|
35568
35966
|
}
|
|
35569
35967
|
|
|
35570
35968
|
// src/controller/utils/value-ex/value-ex.ts
|
|
35571
|
-
import { RuntimeError as
|
|
35969
|
+
import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
35572
35970
|
import { isNil as isNil21, mergeLeft } from "ramda";
|
|
35573
35971
|
var ValueExUtil = class {
|
|
35574
35972
|
/**
|
|
@@ -35600,7 +35998,7 @@ var ValueExUtil = class {
|
|
|
35600
35998
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
35601
35999
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
35602
36000
|
if (!objectNameField) {
|
|
35603
|
-
throw new
|
|
36001
|
+
throw new RuntimeError27(
|
|
35604
36002
|
ibiz.i18n.t("runtime.controller.utils.valueEx.objectNameField")
|
|
35605
36003
|
);
|
|
35606
36004
|
}
|
|
@@ -35618,7 +36016,7 @@ var ValueExUtil = class {
|
|
|
35618
36016
|
};
|
|
35619
36017
|
|
|
35620
36018
|
// src/controller/utils/value-default/value-default.ts
|
|
35621
|
-
import { RuntimeError as
|
|
36019
|
+
import { RuntimeError as RuntimeError28, ModelError as ModelError15 } from "@ibiz-template/core";
|
|
35622
36020
|
import dayjs from "dayjs";
|
|
35623
36021
|
import { createUUID as createUUID11 } from "qx-util";
|
|
35624
36022
|
import { isNil as isNil22, isNotNil } from "ramda";
|
|
@@ -35659,7 +36057,7 @@ function getDefaultValue(opts, origins) {
|
|
|
35659
36057
|
case "SESSION":
|
|
35660
36058
|
case "APPLICATION":
|
|
35661
36059
|
if (!((_a3 = ibiz.appData) == null ? void 0 : _a3.context)) {
|
|
35662
|
-
throw new
|
|
36060
|
+
throw new RuntimeError28(
|
|
35663
36061
|
ibiz.i18n.t("runtime.controller.utils.valueDefault.noExist")
|
|
35664
36062
|
);
|
|
35665
36063
|
}
|
|
@@ -35680,7 +36078,7 @@ function getDefaultValue(opts, origins) {
|
|
|
35680
36078
|
|
|
35681
36079
|
// src/controller/utils/data-file-util/data-file-util.ts
|
|
35682
36080
|
import {
|
|
35683
|
-
RuntimeError as
|
|
36081
|
+
RuntimeError as RuntimeError29,
|
|
35684
36082
|
selectFile
|
|
35685
36083
|
} from "@ibiz-template/core";
|
|
35686
36084
|
import { mergeRight as mergeRight2 } from "ramda";
|
|
@@ -35803,13 +36201,13 @@ async function importData2(opts) {
|
|
|
35803
36201
|
}
|
|
35804
36202
|
async function exportData(header, data, fileName) {
|
|
35805
36203
|
if (!ibiz.util.getExcelUtil) {
|
|
35806
|
-
throw new
|
|
36204
|
+
throw new RuntimeError29(
|
|
35807
36205
|
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.noExist")
|
|
35808
36206
|
);
|
|
35809
36207
|
}
|
|
35810
36208
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
35811
36209
|
if (!exportExcel) {
|
|
35812
|
-
throw new
|
|
36210
|
+
throw new RuntimeError29(
|
|
35813
36211
|
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.loadError")
|
|
35814
36212
|
);
|
|
35815
36213
|
}
|
|
@@ -35839,7 +36237,7 @@ async function getDataImportModels(opts) {
|
|
|
35839
36237
|
(item) => item.id === opts.deDataImportId
|
|
35840
36238
|
);
|
|
35841
36239
|
if (!deDataImport) {
|
|
35842
|
-
throw new
|
|
36240
|
+
throw new RuntimeError29(
|
|
35843
36241
|
ibiz.i18n.t("runtime.controller.utils.dataFileUtil.importData")
|
|
35844
36242
|
);
|
|
35845
36243
|
}
|
|
@@ -36056,7 +36454,7 @@ async function getEntitySchema(entityId, context, params = {}) {
|
|
|
36056
36454
|
}
|
|
36057
36455
|
|
|
36058
36456
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
36059
|
-
import { RuntimeError as
|
|
36457
|
+
import { RuntimeError as RuntimeError30, RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
|
|
36060
36458
|
import { isNil as isNil23, mergeRight as mergeRight3 } from "ramda";
|
|
36061
36459
|
var VIEW_MSG_PREFIX = "VIEW_MSG";
|
|
36062
36460
|
var ViewMsgController = class _ViewMsgController {
|
|
@@ -36091,7 +36489,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
36091
36489
|
(item) => item.id === this.msgGroupId
|
|
36092
36490
|
);
|
|
36093
36491
|
if (!msgGroup) {
|
|
36094
|
-
throw new
|
|
36492
|
+
throw new RuntimeError30(
|
|
36095
36493
|
ibiz.i18n.t("runtime.controller.utils.viewMsg.message", {
|
|
36096
36494
|
msgGroupId: this.msgGroupId
|
|
36097
36495
|
})
|
|
@@ -36111,7 +36509,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
36111
36509
|
}
|
|
36112
36510
|
});
|
|
36113
36511
|
if (msgDetailsViewMsgIds.length) {
|
|
36114
|
-
throw new
|
|
36512
|
+
throw new RuntimeError30(
|
|
36115
36513
|
ibiz.i18n.t("runtime.controller.utils.viewMsg.noFound", {
|
|
36116
36514
|
message: msgDetailsViewMsgIds.join(",")
|
|
36117
36515
|
})
|
|
@@ -37113,7 +37511,7 @@ var ViewController = class extends BaseController {
|
|
|
37113
37511
|
async callUIAction(key, args) {
|
|
37114
37512
|
const result = this.call(key, args);
|
|
37115
37513
|
if (result === void 0) {
|
|
37116
|
-
throw new
|
|
37514
|
+
throw new RuntimeError31(
|
|
37117
37515
|
ibiz.i18n.t("runtime.controller.common.view.noSupportBehavior", {
|
|
37118
37516
|
key
|
|
37119
37517
|
})
|
|
@@ -37878,7 +38276,7 @@ import {
|
|
|
37878
38276
|
IBizParams,
|
|
37879
38277
|
IBizContext as IBizContext5,
|
|
37880
38278
|
NoticeError as NoticeError2,
|
|
37881
|
-
RuntimeError as
|
|
38279
|
+
RuntimeError as RuntimeError32
|
|
37882
38280
|
} from "@ibiz-template/core";
|
|
37883
38281
|
import { clone as clone20, isNil as isNil25 } from "ramda";
|
|
37884
38282
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -38346,7 +38744,7 @@ var ControlController = class extends BaseController {
|
|
|
38346
38744
|
ibiz.mc.command.remove.send(msg, meta);
|
|
38347
38745
|
break;
|
|
38348
38746
|
default:
|
|
38349
|
-
throw new
|
|
38747
|
+
throw new RuntimeError32(
|
|
38350
38748
|
ibiz.i18n.t("runtime.controller.common.control.unsupportedType", {
|
|
38351
38749
|
type
|
|
38352
38750
|
})
|
|
@@ -38419,7 +38817,7 @@ var ControlController = class extends BaseController {
|
|
|
38419
38817
|
|
|
38420
38818
|
// src/controller/common/control/md-control.controller.ts
|
|
38421
38819
|
import {
|
|
38422
|
-
RuntimeError as
|
|
38820
|
+
RuntimeError as RuntimeError33,
|
|
38423
38821
|
isElementSame,
|
|
38424
38822
|
RuntimeModelError as RuntimeModelError25
|
|
38425
38823
|
} from "@ibiz-template/core";
|
|
@@ -38884,7 +39282,7 @@ var MDControlController = class extends ControlController {
|
|
|
38884
39282
|
async remove(args) {
|
|
38885
39283
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
38886
39284
|
if (!(data == null ? void 0 : data.length)) {
|
|
38887
|
-
throw new
|
|
39285
|
+
throw new RuntimeError33(
|
|
38888
39286
|
ibiz.i18n.t("runtime.controller.common.control.uncheckedData")
|
|
38889
39287
|
);
|
|
38890
39288
|
}
|
|
@@ -39291,14 +39689,14 @@ var MDControlController = class extends ControlController {
|
|
|
39291
39689
|
* @memberof MDControlController
|
|
39292
39690
|
*/
|
|
39293
39691
|
async newRow(args = {}) {
|
|
39294
|
-
throw new
|
|
39692
|
+
throw new RuntimeError33(ibiz.i18n.t("runtime.common.unrealized"));
|
|
39295
39693
|
}
|
|
39296
39694
|
};
|
|
39297
39695
|
|
|
39298
39696
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
39299
39697
|
import {
|
|
39300
39698
|
findRecursiveChild,
|
|
39301
|
-
RuntimeError as
|
|
39699
|
+
RuntimeError as RuntimeError34,
|
|
39302
39700
|
RuntimeModelError as RuntimeModelError26
|
|
39303
39701
|
} from "@ibiz-template/core";
|
|
39304
39702
|
|
|
@@ -39741,7 +40139,7 @@ var AppMenuController = class extends ControlController {
|
|
|
39741
40139
|
childrenFields: ["appMenuItems"]
|
|
39742
40140
|
});
|
|
39743
40141
|
if (!menuItem) {
|
|
39744
|
-
throw new
|
|
40142
|
+
throw new RuntimeError34(
|
|
39745
40143
|
ibiz.i18n.t("runtime.controller.control.menu.noFindMenu", { id })
|
|
39746
40144
|
);
|
|
39747
40145
|
}
|
|
@@ -39915,7 +40313,7 @@ var AppMenuController = class extends ControlController {
|
|
|
39915
40313
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
39916
40314
|
import {
|
|
39917
40315
|
findRecursiveChild as findRecursiveChild2,
|
|
39918
|
-
RuntimeError as
|
|
40316
|
+
RuntimeError as RuntimeError35,
|
|
39919
40317
|
RuntimeModelError as RuntimeModelError27
|
|
39920
40318
|
} from "@ibiz-template/core";
|
|
39921
40319
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -39925,7 +40323,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
39925
40323
|
childrenFields: ["appMenuItems"]
|
|
39926
40324
|
});
|
|
39927
40325
|
if (!menuItem) {
|
|
39928
|
-
throw new
|
|
40326
|
+
throw new RuntimeError35(
|
|
39929
40327
|
ibiz.i18n.t("runtime.controller.control.menu.noFindMenu", { id })
|
|
39930
40328
|
);
|
|
39931
40329
|
}
|
|
@@ -39956,10 +40354,10 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
39956
40354
|
|
|
39957
40355
|
// src/controller/control/calendar/calendar.controller.ts
|
|
39958
40356
|
import dayjs3 from "dayjs";
|
|
39959
|
-
import { RuntimeError as
|
|
40357
|
+
import { RuntimeError as RuntimeError46, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
39960
40358
|
|
|
39961
40359
|
// src/controller/control/calendar/calendar.service.ts
|
|
39962
|
-
import { RuntimeError as
|
|
40360
|
+
import { RuntimeError as RuntimeError36 } from "@ibiz-template/core";
|
|
39963
40361
|
import { clone as clone21 } from "ramda";
|
|
39964
40362
|
var CalendarService = class extends MDControlService {
|
|
39965
40363
|
constructor() {
|
|
@@ -40052,13 +40450,13 @@ var CalendarService = class extends MDControlService {
|
|
|
40052
40450
|
var _a3, _b2;
|
|
40053
40451
|
const { sysCalendarItems } = this.model;
|
|
40054
40452
|
if (!sysCalendarItems) {
|
|
40055
|
-
throw new
|
|
40453
|
+
throw new RuntimeError36(
|
|
40056
40454
|
ibiz.i18n.t("runtime.controller.control.calendar.noFoundModel")
|
|
40057
40455
|
);
|
|
40058
40456
|
}
|
|
40059
40457
|
const calendarItem = sysCalendarItems[index];
|
|
40060
40458
|
if (!calendarItem) {
|
|
40061
|
-
throw new
|
|
40459
|
+
throw new RuntimeError36(
|
|
40062
40460
|
ibiz.i18n.t("runtime.controller.control.calendar.noFoundModel")
|
|
40063
40461
|
);
|
|
40064
40462
|
}
|
|
@@ -40217,7 +40615,7 @@ var CalendarService = class extends MDControlService {
|
|
|
40217
40615
|
};
|
|
40218
40616
|
|
|
40219
40617
|
// src/controller/control/toolbar/toolbar.controller.ts
|
|
40220
|
-
import { recursiveIterate as recursiveIterate2, RuntimeError as
|
|
40618
|
+
import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError45 } from "@ibiz-template/core";
|
|
40221
40619
|
|
|
40222
40620
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
40223
40621
|
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
@@ -40227,7 +40625,7 @@ import { isArray as isArray9 } from "qx-util";
|
|
|
40227
40625
|
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
40228
40626
|
|
|
40229
40627
|
// src/ui-logic/index.ts
|
|
40230
|
-
import { RuntimeError as
|
|
40628
|
+
import { RuntimeError as RuntimeError42 } from "@ibiz-template/core";
|
|
40231
40629
|
|
|
40232
40630
|
// src/ui-logic/ui-logic.ts
|
|
40233
40631
|
import {
|
|
@@ -40932,7 +41330,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
40932
41330
|
};
|
|
40933
41331
|
|
|
40934
41332
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
40935
|
-
import { ModelError as ModelError20, RuntimeError as
|
|
41333
|
+
import { ModelError as ModelError20, RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
40936
41334
|
import { clone as clone23 } from "ramda";
|
|
40937
41335
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
40938
41336
|
async exec(ctx) {
|
|
@@ -40998,7 +41396,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
40998
41396
|
setParamValue(nodeParam, ctx) {
|
|
40999
41397
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
41000
41398
|
if (!dstDEUILogicParamId) {
|
|
41001
|
-
throw new
|
|
41399
|
+
throw new RuntimeError37(ibiz.i18n.t("runtime.uiLogic.noTargetParameter"));
|
|
41002
41400
|
}
|
|
41003
41401
|
let dstField = dstFieldName;
|
|
41004
41402
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -41115,7 +41513,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
41115
41513
|
};
|
|
41116
41514
|
|
|
41117
41515
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
41118
|
-
import { RuntimeError as
|
|
41516
|
+
import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
41119
41517
|
import { isFunction } from "lodash-es";
|
|
41120
41518
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
41121
41519
|
async exec(ctx) {
|
|
@@ -41141,7 +41539,7 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
41141
41539
|
}
|
|
41142
41540
|
const invokeParam = ctx.params[invokeParamId];
|
|
41143
41541
|
if (!invokeParam) {
|
|
41144
|
-
throw new
|
|
41542
|
+
throw new RuntimeError38(
|
|
41145
41543
|
ibiz.i18n.t("runtime.uiLogic.noFoundOperationParameter", {
|
|
41146
41544
|
invokeParamId
|
|
41147
41545
|
})
|
|
@@ -41149,14 +41547,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
41149
41547
|
}
|
|
41150
41548
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
41151
41549
|
if (!invokeCtrl) {
|
|
41152
|
-
throw new
|
|
41550
|
+
throw new RuntimeError38(
|
|
41153
41551
|
ibiz.i18n.t("runtime.uiLogic.noFoundInterfaceObject", {
|
|
41154
41552
|
invokeCtrlId
|
|
41155
41553
|
})
|
|
41156
41554
|
);
|
|
41157
41555
|
}
|
|
41158
41556
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
41159
|
-
throw new
|
|
41557
|
+
throw new RuntimeError38(
|
|
41160
41558
|
ibiz.i18n.t("runtime.uiLogic.noFoundInvokeMethod", {
|
|
41161
41559
|
invokeMethod
|
|
41162
41560
|
})
|
|
@@ -41516,7 +41914,7 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
41516
41914
|
};
|
|
41517
41915
|
|
|
41518
41916
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
41519
|
-
import { RuntimeError as
|
|
41917
|
+
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
41520
41918
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
41521
41919
|
async exec(_ctx) {
|
|
41522
41920
|
const { errorInfo } = this.model;
|
|
@@ -41526,12 +41924,12 @@ var ThrowExceptionNode2 = class extends UILogicNode {
|
|
|
41526
41924
|
errorInfo
|
|
41527
41925
|
})
|
|
41528
41926
|
);
|
|
41529
|
-
throw new
|
|
41927
|
+
throw new RuntimeError39(errorInfo);
|
|
41530
41928
|
}
|
|
41531
41929
|
};
|
|
41532
41930
|
|
|
41533
41931
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
41534
|
-
import { RuntimeError as
|
|
41932
|
+
import { RuntimeError as RuntimeError40, RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
41535
41933
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
41536
41934
|
async exec(ctx) {
|
|
41537
41935
|
ctx.isEndNode = true;
|
|
@@ -41556,13 +41954,13 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
41556
41954
|
}
|
|
41557
41955
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
41558
41956
|
if (!invokeCtrl) {
|
|
41559
|
-
throw new
|
|
41957
|
+
throw new RuntimeError40(
|
|
41560
41958
|
ibiz.i18n.t("runtime.uiLogic.noFoundTriggerObject", { fireCtrlId })
|
|
41561
41959
|
);
|
|
41562
41960
|
}
|
|
41563
41961
|
const eventParam = ctx.params[eventParamId];
|
|
41564
41962
|
if (!eventParam) {
|
|
41565
|
-
throw new
|
|
41963
|
+
throw new RuntimeError40(
|
|
41566
41964
|
ibiz.i18n.t("runtime.uiLogic.noFoundEventParameterObject", {
|
|
41567
41965
|
eventParamId
|
|
41568
41966
|
})
|
|
@@ -41584,7 +41982,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
41584
41982
|
};
|
|
41585
41983
|
|
|
41586
41984
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
41587
|
-
import { RuntimeError as
|
|
41985
|
+
import { RuntimeError as RuntimeError41, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
41588
41986
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
41589
41987
|
async exec(ctx) {
|
|
41590
41988
|
const {
|
|
@@ -41613,7 +42011,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
41613
42011
|
}
|
|
41614
42012
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
41615
42013
|
if (!dstParam) {
|
|
41616
|
-
throw new
|
|
42014
|
+
throw new RuntimeError41(
|
|
41617
42015
|
ibiz.i18n.t("runtime.uiLogic.passedParameter", { dstDEUILogicParamId })
|
|
41618
42016
|
);
|
|
41619
42017
|
}
|
|
@@ -42014,7 +42412,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
42014
42412
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
42015
42413
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
42016
42414
|
if (!deUILogic) {
|
|
42017
|
-
throw new
|
|
42415
|
+
throw new RuntimeError42(
|
|
42018
42416
|
ibiz.i18n.t("runtime.uiLogic.interfaceLogic", {
|
|
42019
42417
|
appDataEntityId,
|
|
42020
42418
|
deUILogicId
|
|
@@ -42042,7 +42440,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
42042
42440
|
}
|
|
42043
42441
|
|
|
42044
42442
|
// src/ui-action/uiaction-util.ts
|
|
42045
|
-
import { RuntimeError as
|
|
42443
|
+
import { RuntimeError as RuntimeError43 } from "@ibiz-template/core";
|
|
42046
42444
|
var UIActionUtil = class {
|
|
42047
42445
|
/**
|
|
42048
42446
|
* @description 执行界面行为
|
|
@@ -42056,7 +42454,7 @@ var UIActionUtil = class {
|
|
|
42056
42454
|
static async exec(actionId, params, appId2) {
|
|
42057
42455
|
const action = await getUIActionById(actionId, appId2);
|
|
42058
42456
|
if (!action) {
|
|
42059
|
-
throw new
|
|
42457
|
+
throw new RuntimeError43(
|
|
42060
42458
|
ibiz.i18n.t("runtime.uiAction.noFoundBehaviorModel", { actionId })
|
|
42061
42459
|
);
|
|
42062
42460
|
}
|
|
@@ -42605,7 +43003,7 @@ import {
|
|
|
42605
43003
|
StringUtil as StringUtil4,
|
|
42606
43004
|
RuntimeModelError as RuntimeModelError47,
|
|
42607
43005
|
ModelError as ModelError24,
|
|
42608
|
-
RuntimeError as
|
|
43006
|
+
RuntimeError as RuntimeError44
|
|
42609
43007
|
} from "@ibiz-template/core";
|
|
42610
43008
|
import { clone as clone26, mergeRight as mergeRight4 } from "ramda";
|
|
42611
43009
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
@@ -42766,7 +43164,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42766
43164
|
resultContext[appDataEntity.codeName.toLowerCase()]
|
|
42767
43165
|
));
|
|
42768
43166
|
} else {
|
|
42769
|
-
throw new
|
|
43167
|
+
throw new RuntimeError44(ibiz.i18n.t("runtime.uiAction.dataPrimaryKey"));
|
|
42770
43168
|
}
|
|
42771
43169
|
const app = await ibiz.hub.getAppAsync(action.appId);
|
|
42772
43170
|
const res = await app.net.request(requestUrl, {
|
|
@@ -42793,10 +43191,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42793
43191
|
window.open(link, "_blank");
|
|
42794
43192
|
}
|
|
42795
43193
|
} else {
|
|
42796
|
-
throw new
|
|
43194
|
+
throw new RuntimeError44(ibiz.i18n.t("runtime.uiAction.printFailure"));
|
|
42797
43195
|
}
|
|
42798
43196
|
} else {
|
|
42799
|
-
throw new
|
|
43197
|
+
throw new RuntimeError44(ibiz.i18n.t("runtime.uiAction.physicalPrint"));
|
|
42800
43198
|
}
|
|
42801
43199
|
}
|
|
42802
43200
|
/**
|
|
@@ -42860,7 +43258,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42860
43258
|
}
|
|
42861
43259
|
}
|
|
42862
43260
|
if (!exportDatasetCodeName) {
|
|
42863
|
-
throw new
|
|
43261
|
+
throw new RuntimeError44(
|
|
42864
43262
|
ibiz.i18n.t("runtime.uiAction.exportWithNoDataSet")
|
|
42865
43263
|
);
|
|
42866
43264
|
}
|
|
@@ -42900,12 +43298,12 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42900
43298
|
URL.revokeObjectURL(elink.href);
|
|
42901
43299
|
document.body.removeChild(elink);
|
|
42902
43300
|
} else {
|
|
42903
|
-
throw new
|
|
43301
|
+
throw new RuntimeError44(
|
|
42904
43302
|
ibiz.i18n.t("runtime.uiAction.exportRequestFailed")
|
|
42905
43303
|
);
|
|
42906
43304
|
}
|
|
42907
43305
|
} else {
|
|
42908
|
-
throw new
|
|
43306
|
+
throw new RuntimeError44(
|
|
42909
43307
|
ibiz.i18n.t("runtime.uiAction.noEntityExportsFound")
|
|
42910
43308
|
);
|
|
42911
43309
|
}
|
|
@@ -42923,7 +43321,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42923
43321
|
const actionResult = {};
|
|
42924
43322
|
const { context, params, data, event } = args;
|
|
42925
43323
|
if (!event) {
|
|
42926
|
-
throw new
|
|
43324
|
+
throw new RuntimeError44(ibiz.i18n.t("runtime.uiAction.lackNativeEvent"));
|
|
42927
43325
|
}
|
|
42928
43326
|
let tempModel = null;
|
|
42929
43327
|
if (params.customeditormodel) {
|
|
@@ -42984,7 +43382,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
42984
43382
|
};
|
|
42985
43383
|
const { context, params, data, event } = args;
|
|
42986
43384
|
if (!event) {
|
|
42987
|
-
throw new
|
|
43385
|
+
throw new RuntimeError44(ibiz.i18n.t("runtime.uiAction.lackNativeEvent"));
|
|
42988
43386
|
}
|
|
42989
43387
|
let tempModel = null;
|
|
42990
43388
|
if (params.customeditormodel) {
|
|
@@ -43054,7 +43452,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
43054
43452
|
async openAiChat(action, args) {
|
|
43055
43453
|
var _a3;
|
|
43056
43454
|
if (!ibiz.env.enableAI)
|
|
43057
|
-
throw new
|
|
43455
|
+
throw new RuntimeError44(ibiz.i18n.t("runtime.uiAction.noEnableAI"));
|
|
43058
43456
|
const { appDEACModeId, appDataEntityId, appId: appId2 } = action;
|
|
43059
43457
|
const { resultContext, resultParams } = await this.handleParams(
|
|
43060
43458
|
action,
|
|
@@ -43064,7 +43462,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
43064
43462
|
);
|
|
43065
43463
|
const context = Object.assign(resultContext, { srfappid: appId2 });
|
|
43066
43464
|
if (!appDataEntityId || !appDEACModeId) {
|
|
43067
|
-
throw new
|
|
43465
|
+
throw new RuntimeError44(ibiz.i18n.t("runtime.uiAction.noEntityOrAcMode"));
|
|
43068
43466
|
}
|
|
43069
43467
|
const data = await ibiz.appUtil.openAiChat({
|
|
43070
43468
|
appDEACModeId,
|
|
@@ -43202,7 +43600,6 @@ var ToolbarController = class extends ControlController {
|
|
|
43202
43600
|
/**
|
|
43203
43601
|
* @description 数据部件控制器
|
|
43204
43602
|
* @readonly
|
|
43205
|
-
* @protected
|
|
43206
43603
|
* @type {(ControlController | undefined)}
|
|
43207
43604
|
* @memberof ToolbarController
|
|
43208
43605
|
*/
|
|
@@ -43238,7 +43635,7 @@ var ToolbarController = class extends ControlController {
|
|
|
43238
43635
|
const actionId = item.uiactionId;
|
|
43239
43636
|
const uiAction = await getUIActionById(actionId, item.appId);
|
|
43240
43637
|
if (!uiAction) {
|
|
43241
|
-
throw new
|
|
43638
|
+
throw new RuntimeError45(
|
|
43242
43639
|
ibiz.i18n.t("runtime.controller.control.toolbar.noFound", {
|
|
43243
43640
|
actionId
|
|
43244
43641
|
})
|
|
@@ -43701,7 +44098,7 @@ var CalendarController = class extends MDControlController {
|
|
|
43701
44098
|
initCalendarLegends() {
|
|
43702
44099
|
const { sysCalendarItems } = this.model;
|
|
43703
44100
|
if (!sysCalendarItems) {
|
|
43704
|
-
throw new
|
|
44101
|
+
throw new RuntimeError46(
|
|
43705
44102
|
ibiz.i18n.t("runtime.controller.control.calendar.noFoundModel")
|
|
43706
44103
|
);
|
|
43707
44104
|
}
|
|
@@ -43774,7 +44171,7 @@ var CalendarController = class extends MDControlController {
|
|
|
43774
44171
|
var _a3;
|
|
43775
44172
|
const calendarItem = this.getItemModelByKey(item.srfkey);
|
|
43776
44173
|
if (!calendarItem)
|
|
43777
|
-
throw new
|
|
44174
|
+
throw new RuntimeError46(
|
|
43778
44175
|
ibiz.i18n.t("runtime.controller.control.calendar.noFoundModel")
|
|
43779
44176
|
);
|
|
43780
44177
|
const context = this.context.clone();
|
|
@@ -43813,7 +44210,7 @@ var CalendarController = class extends MDControlController {
|
|
|
43813
44210
|
var _a3;
|
|
43814
44211
|
const calendarItem = this.getItemModelByKey(item.srfkey);
|
|
43815
44212
|
if (!calendarItem)
|
|
43816
|
-
throw new
|
|
44213
|
+
throw new RuntimeError46(
|
|
43817
44214
|
ibiz.i18n.t("runtime.controller.control.calendar.noFoundModel")
|
|
43818
44215
|
);
|
|
43819
44216
|
const context = this.context.clone();
|
|
@@ -44166,7 +44563,7 @@ var CalendarController = class extends MDControlController {
|
|
|
44166
44563
|
let needRefresh = false;
|
|
44167
44564
|
const calendarItem = this.getItemModelByKey(item.srfkey);
|
|
44168
44565
|
if (!calendarItem)
|
|
44169
|
-
throw new
|
|
44566
|
+
throw new RuntimeError46(
|
|
44170
44567
|
ibiz.i18n.t("runtime.controller.control.calendar.noFoundModel")
|
|
44171
44568
|
);
|
|
44172
44569
|
if (calendarItem.appDataEntityId && item.srfuf !== 0 /* CREATE */) {
|
|
@@ -44218,12 +44615,12 @@ var CalendarController = class extends MDControlController {
|
|
|
44218
44615
|
};
|
|
44219
44616
|
|
|
44220
44617
|
// src/controller/control/chart/chart.controller.ts
|
|
44221
|
-
import { RuntimeError as
|
|
44618
|
+
import { RuntimeError as RuntimeError48 } from "@ibiz-template/core";
|
|
44222
44619
|
|
|
44223
44620
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
44224
44621
|
import { clone as clone29, mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
44225
44622
|
import { isObject as isObject2, isString as isString2 } from "qx-util";
|
|
44226
|
-
import { RuntimeError as
|
|
44623
|
+
import { RuntimeError as RuntimeError47 } from "@ibiz-template/core";
|
|
44227
44624
|
|
|
44228
44625
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
44229
44626
|
import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
@@ -46481,7 +46878,7 @@ var ChartOptionsGenerator3 = class {
|
|
|
46481
46878
|
getChartDataByParams(params) {
|
|
46482
46879
|
const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
|
|
46483
46880
|
if (!generator) {
|
|
46484
|
-
throw new
|
|
46881
|
+
throw new RuntimeError47(
|
|
46485
46882
|
ibiz.i18n.t("runtime.controller.control.chart.noFindSequence", {
|
|
46486
46883
|
seriesIndex: params.seriesIndex
|
|
46487
46884
|
})
|
|
@@ -46965,12 +47362,12 @@ var ChartController = class extends MDControlController {
|
|
|
46965
47362
|
*/
|
|
46966
47363
|
async updateChart() {
|
|
46967
47364
|
if (!this.chart) {
|
|
46968
|
-
throw new
|
|
47365
|
+
throw new RuntimeError48(
|
|
46969
47366
|
ibiz.i18n.t("runtime.controller.control.chart.noInitialised")
|
|
46970
47367
|
);
|
|
46971
47368
|
}
|
|
46972
47369
|
if (!this.options) {
|
|
46973
|
-
throw new
|
|
47370
|
+
throw new RuntimeError48(
|
|
46974
47371
|
ibiz.i18n.t("runtime.controller.control.chart.noCalculated")
|
|
46975
47372
|
);
|
|
46976
47373
|
}
|
|
@@ -49115,7 +49512,7 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
|
|
|
49115
49512
|
}
|
|
49116
49513
|
|
|
49117
49514
|
// src/controller/control/search-bar/search-bar-filter-items.controller.ts
|
|
49118
|
-
import { RuntimeError as
|
|
49515
|
+
import { RuntimeError as RuntimeError49 } from "@ibiz-template/core";
|
|
49119
49516
|
import { clone as clone33 } from "ramda";
|
|
49120
49517
|
var SubFieldRegex2 = /^N_(.\w+)_(.\w+)$/;
|
|
49121
49518
|
var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
@@ -49174,7 +49571,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
|
49174
49571
|
return false;
|
|
49175
49572
|
});
|
|
49176
49573
|
if (!minorDEId) {
|
|
49177
|
-
throw new
|
|
49574
|
+
throw new RuntimeError49(
|
|
49178
49575
|
ibiz.i18n.t("runtime.controller.control.searchBar.noFoundEntity", {
|
|
49179
49576
|
targetField
|
|
49180
49577
|
})
|
|
@@ -51704,7 +52101,7 @@ import { RuntimeModelError as RuntimeModelError59 } from "@ibiz-template/core";
|
|
|
51704
52101
|
import {
|
|
51705
52102
|
IBizParams as IBizParams3,
|
|
51706
52103
|
IBizContext as IBizContext8,
|
|
51707
|
-
RuntimeError as
|
|
52104
|
+
RuntimeError as RuntimeError50,
|
|
51708
52105
|
RuntimeModelError as RuntimeModelError58
|
|
51709
52106
|
} from "@ibiz-template/core";
|
|
51710
52107
|
var ExpBarControlController = class extends ControlController {
|
|
@@ -52105,7 +52502,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
52105
52502
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a3 = this.XDataModel) == null ? void 0 : _a3.controlType) || "")) {
|
|
52106
52503
|
return this.XDataModel.navAppViewId;
|
|
52107
52504
|
}
|
|
52108
|
-
throw new
|
|
52505
|
+
throw new RuntimeError50(
|
|
52109
52506
|
ibiz.i18n.t("runtime.controller.control.expBar.multiNode")
|
|
52110
52507
|
);
|
|
52111
52508
|
}
|
|
@@ -52277,7 +52674,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
52277
52674
|
};
|
|
52278
52675
|
|
|
52279
52676
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
52280
|
-
import { RuntimeError as
|
|
52677
|
+
import { RuntimeError as RuntimeError51, RuntimeModelError as RuntimeModelError60 } from "@ibiz-template/core";
|
|
52281
52678
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
52282
52679
|
constructor() {
|
|
52283
52680
|
super(...arguments);
|
|
@@ -52365,7 +52762,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
52365
52762
|
const deData = node._deData || node;
|
|
52366
52763
|
const nodeModel = this.getNodeModel(node._nodeId);
|
|
52367
52764
|
if (!nodeModel) {
|
|
52368
|
-
throw new
|
|
52765
|
+
throw new RuntimeError51(
|
|
52369
52766
|
ibiz.i18n.t("runtime.controller.control.expBar.noFindNodeModel", {
|
|
52370
52767
|
nodeId: node._nodeId
|
|
52371
52768
|
})
|
|
@@ -52626,7 +53023,7 @@ var ChartExpBarController = class extends ExpBarControlController {
|
|
|
52626
53023
|
};
|
|
52627
53024
|
|
|
52628
53025
|
// src/controller/control/form/search-form/search-form.controller.ts
|
|
52629
|
-
import { RuntimeError as
|
|
53026
|
+
import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
|
|
52630
53027
|
|
|
52631
53028
|
// src/controller/control/form/form/form.controller.ts
|
|
52632
53029
|
import {
|
|
@@ -52634,7 +53031,7 @@ import {
|
|
|
52634
53031
|
debounceAndAsyncMerge,
|
|
52635
53032
|
recursiveIterate as recursiveIterate6,
|
|
52636
53033
|
EntityError,
|
|
52637
|
-
RuntimeError as
|
|
53034
|
+
RuntimeError as RuntimeError52
|
|
52638
53035
|
} from "@ibiz-template/core";
|
|
52639
53036
|
import { isBoolean as isBoolean2 } from "qx-util";
|
|
52640
53037
|
import { clone as clone37 } from "ramda";
|
|
@@ -53069,7 +53466,7 @@ var FormController = class extends ControlController {
|
|
|
53069
53466
|
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
53070
53467
|
);
|
|
53071
53468
|
}
|
|
53072
|
-
throw new
|
|
53469
|
+
throw new RuntimeError52(
|
|
53073
53470
|
ibiz.i18n.t("runtime.controller.control.form.formCompletion")
|
|
53074
53471
|
);
|
|
53075
53472
|
}
|
|
@@ -53209,7 +53606,7 @@ var FormController = class extends ControlController {
|
|
|
53209
53606
|
if (tag) {
|
|
53210
53607
|
const group = this.details[tag];
|
|
53211
53608
|
if (!group) {
|
|
53212
|
-
throw new
|
|
53609
|
+
throw new RuntimeError52(
|
|
53213
53610
|
ibiz.i18n.t("runtime.controller.control.form.noFoundFormGroup")
|
|
53214
53611
|
);
|
|
53215
53612
|
}
|
|
@@ -53756,7 +54153,7 @@ var SearchFormController = class extends FormController {
|
|
|
53756
54153
|
applyStoredFilter(index) {
|
|
53757
54154
|
const filter = this.state.storedFilters[index];
|
|
53758
54155
|
if (!filter) {
|
|
53759
|
-
throw new
|
|
54156
|
+
throw new RuntimeError53(
|
|
53760
54157
|
ibiz.i18n.t("runtime.controller.control.form.searchTerms")
|
|
53761
54158
|
);
|
|
53762
54159
|
}
|
|
@@ -53774,7 +54171,7 @@ var SearchFormController = class extends FormController {
|
|
|
53774
54171
|
async removeStoredFilter(index) {
|
|
53775
54172
|
const filter = this.state.storedFilters[index];
|
|
53776
54173
|
if (!filter) {
|
|
53777
|
-
throw new
|
|
54174
|
+
throw new RuntimeError53(
|
|
53778
54175
|
ibiz.i18n.t("runtime.controller.control.form.saveSearch")
|
|
53779
54176
|
);
|
|
53780
54177
|
}
|
|
@@ -55807,7 +56204,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
55807
56204
|
};
|
|
55808
56205
|
|
|
55809
56206
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
55810
|
-
import { RuntimeError as
|
|
56207
|
+
import { RuntimeError as RuntimeError54, RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
|
|
55811
56208
|
import { createUUID as createUUID15 } from "qx-util";
|
|
55812
56209
|
|
|
55813
56210
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -55987,7 +56384,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
55987
56384
|
async remove(id) {
|
|
55988
56385
|
const controller = this.formMap.get(id);
|
|
55989
56386
|
if (!controller) {
|
|
55990
|
-
throw new
|
|
56387
|
+
throw new RuntimeError54(
|
|
55991
56388
|
ibiz.i18n.t("runtime.controller.control.form.noFoundFormController", {
|
|
55992
56389
|
id
|
|
55993
56390
|
})
|
|
@@ -56803,7 +57200,7 @@ import {
|
|
|
56803
57200
|
IBizContext as IBizContext9,
|
|
56804
57201
|
isElementSame as isElementSame3,
|
|
56805
57202
|
mergeInLeft as mergeInLeft3,
|
|
56806
|
-
RuntimeError as
|
|
57203
|
+
RuntimeError as RuntimeError55
|
|
56807
57204
|
} from "@ibiz-template/core";
|
|
56808
57205
|
import { debounce } from "lodash-es";
|
|
56809
57206
|
import { createUUID as createUUID16 } from "qx-util";
|
|
@@ -57506,7 +57903,7 @@ var EditFormController = class extends FormController {
|
|
|
57506
57903
|
(item) => item.id === formItemUpdateId
|
|
57507
57904
|
);
|
|
57508
57905
|
if (!formItemUpdate) {
|
|
57509
|
-
throw new
|
|
57906
|
+
throw new RuntimeError55(
|
|
57510
57907
|
ibiz.i18n.t("runtime.controller.control.form.itemUpdate", {
|
|
57511
57908
|
formItemUpdateId
|
|
57512
57909
|
})
|
|
@@ -58180,7 +58577,7 @@ import {
|
|
|
58180
58577
|
DataTypes as DataTypes5,
|
|
58181
58578
|
EntityError as EntityError2,
|
|
58182
58579
|
awaitTimeout as awaitTimeout2,
|
|
58183
|
-
RuntimeError as
|
|
58580
|
+
RuntimeError as RuntimeError56,
|
|
58184
58581
|
recursiveIterate as recursiveIterate11,
|
|
58185
58582
|
RuntimeModelError as RuntimeModelError66,
|
|
58186
58583
|
mergeDefaultInLeft as mergeDefaultInLeft2,
|
|
@@ -59383,7 +59780,7 @@ var GridController = class extends MDControlController {
|
|
|
59383
59780
|
if (this.editShowMode === "row") {
|
|
59384
59781
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
59385
59782
|
if (editingRow) {
|
|
59386
|
-
throw new
|
|
59783
|
+
throw new RuntimeError56(
|
|
59387
59784
|
ibiz.i18n.t("runtime.controller.common.md.firstComplete")
|
|
59388
59785
|
);
|
|
59389
59786
|
}
|
|
@@ -59426,7 +59823,7 @@ var GridController = class extends MDControlController {
|
|
|
59426
59823
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
59427
59824
|
const rowState = this.findRowState(data);
|
|
59428
59825
|
if (!rowState) {
|
|
59429
|
-
throw new
|
|
59826
|
+
throw new RuntimeError56(
|
|
59430
59827
|
ibiz.i18n.t("runtime.controller.common.md.rowData")
|
|
59431
59828
|
);
|
|
59432
59829
|
}
|
|
@@ -59440,7 +59837,7 @@ var GridController = class extends MDControlController {
|
|
|
59440
59837
|
}
|
|
59441
59838
|
const isValid2 = await this.validate(rowState);
|
|
59442
59839
|
if (!isValid2) {
|
|
59443
|
-
throw new
|
|
59840
|
+
throw new RuntimeError56(
|
|
59444
59841
|
ibiz.i18n.t("runtime.controller.control.grid.saveCancel")
|
|
59445
59842
|
);
|
|
59446
59843
|
}
|
|
@@ -59737,7 +60134,7 @@ var GridController = class extends MDControlController {
|
|
|
59737
60134
|
}
|
|
59738
60135
|
async toggleRowEdit() {
|
|
59739
60136
|
if (!this.model.enableRowNew) {
|
|
59740
|
-
throw new
|
|
60137
|
+
throw new RuntimeError56(
|
|
59741
60138
|
ibiz.i18n.t("runtime.controller.control.grid.noSupportRowEditing")
|
|
59742
60139
|
);
|
|
59743
60140
|
}
|
|
@@ -59774,7 +60171,7 @@ var GridController = class extends MDControlController {
|
|
|
59774
60171
|
} else {
|
|
59775
60172
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
59776
60173
|
if (editingRow == null ? void 0 : editingRow.modified) {
|
|
59777
|
-
throw new
|
|
60174
|
+
throw new RuntimeError56(
|
|
59778
60175
|
ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
|
|
59779
60176
|
);
|
|
59780
60177
|
} else if (editingRow) {
|
|
@@ -59833,7 +60230,7 @@ var GridController = class extends MDControlController {
|
|
|
59833
60230
|
(item) => item.id === updateId
|
|
59834
60231
|
);
|
|
59835
60232
|
if (!findUpdate) {
|
|
59836
|
-
throw new
|
|
60233
|
+
throw new RuntimeError56(
|
|
59837
60234
|
ibiz.i18n.t("runtime.controller.control.grid.updateColumns", {
|
|
59838
60235
|
updateId
|
|
59839
60236
|
})
|
|
@@ -60012,7 +60409,7 @@ var GridController = class extends MDControlController {
|
|
|
60012
60409
|
data = this.getData();
|
|
60013
60410
|
}
|
|
60014
60411
|
if (data.length === 0) {
|
|
60015
|
-
throw new
|
|
60412
|
+
throw new RuntimeError56(
|
|
60016
60413
|
ibiz.i18n.t("runtime.controller.control.grid.exported")
|
|
60017
60414
|
);
|
|
60018
60415
|
}
|
|
@@ -60036,7 +60433,7 @@ var GridController = class extends MDControlController {
|
|
|
60036
60433
|
} else if (type === "selectedRows") {
|
|
60037
60434
|
const selectedData = this.getData();
|
|
60038
60435
|
if (selectedData.length === 0) {
|
|
60039
|
-
throw new
|
|
60436
|
+
throw new RuntimeError56(
|
|
60040
60437
|
ibiz.i18n.t("runtime.controller.control.grid.exported")
|
|
60041
60438
|
);
|
|
60042
60439
|
}
|
|
@@ -60073,7 +60470,7 @@ var GridController = class extends MDControlController {
|
|
|
60073
60470
|
URL.revokeObjectURL(elink.href);
|
|
60074
60471
|
document.body.removeChild(elink);
|
|
60075
60472
|
} else {
|
|
60076
|
-
throw new
|
|
60473
|
+
throw new RuntimeError56(
|
|
60077
60474
|
ibiz.i18n.t("runtime.controller.common.md.exportRequestFailed")
|
|
60078
60475
|
);
|
|
60079
60476
|
}
|
|
@@ -60092,7 +60489,7 @@ var GridController = class extends MDControlController {
|
|
|
60092
60489
|
}
|
|
60093
60490
|
const { header, fields } = this.getDataExcelModel();
|
|
60094
60491
|
if (!header) {
|
|
60095
|
-
throw new
|
|
60492
|
+
throw new RuntimeError56(
|
|
60096
60493
|
ibiz.i18n.t("runtime.controller.control.grid.tabularColumns")
|
|
60097
60494
|
);
|
|
60098
60495
|
}
|
|
@@ -60940,7 +61337,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
60940
61337
|
};
|
|
60941
61338
|
|
|
60942
61339
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
60943
|
-
import { RuntimeError as
|
|
61340
|
+
import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
|
|
60944
61341
|
import Schema2 from "async-validator";
|
|
60945
61342
|
import { isNilOrEmpty as isNilOrEmpty9 } from "qx-util";
|
|
60946
61343
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -61081,7 +61478,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
61081
61478
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
61082
61479
|
const result = await this.validate(row);
|
|
61083
61480
|
if (!result) {
|
|
61084
|
-
throw new
|
|
61481
|
+
throw new RuntimeError57(
|
|
61085
61482
|
ibiz.i18n.t("runtime.controller.control.grid.checksumErrors", {
|
|
61086
61483
|
codeName: this.editItem.codeName,
|
|
61087
61484
|
fieldName: row.errors[this.fieldName]
|
|
@@ -62020,7 +62417,7 @@ var ListController = class extends MDControlController {
|
|
|
62020
62417
|
|
|
62021
62418
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
62022
62419
|
import {
|
|
62023
|
-
RuntimeError as
|
|
62420
|
+
RuntimeError as RuntimeError58,
|
|
62024
62421
|
recursiveExecute,
|
|
62025
62422
|
recursiveIterate as recursiveIterate12
|
|
62026
62423
|
} from "@ibiz-template/core";
|
|
@@ -62217,7 +62614,7 @@ var PanelController = class extends ControlController {
|
|
|
62217
62614
|
var _a3, _b2;
|
|
62218
62615
|
const data = await this.prepareData();
|
|
62219
62616
|
if (!data) {
|
|
62220
|
-
throw new
|
|
62617
|
+
throw new RuntimeError58(
|
|
62221
62618
|
ibiz.i18n.t("runtime.controller.control.panel.panelData")
|
|
62222
62619
|
);
|
|
62223
62620
|
}
|
|
@@ -63288,7 +63685,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
63288
63685
|
|
|
63289
63686
|
// src/controller/control/tree/tree.controller.ts
|
|
63290
63687
|
import {
|
|
63291
|
-
RuntimeError as
|
|
63688
|
+
RuntimeError as RuntimeError59,
|
|
63292
63689
|
recursiveIterate as recursiveIterate13,
|
|
63293
63690
|
RuntimeModelError as RuntimeModelError69
|
|
63294
63691
|
} from "@ibiz-template/core";
|
|
@@ -64940,7 +65337,7 @@ var TreeController = class extends MDControlController {
|
|
|
64940
65337
|
);
|
|
64941
65338
|
}
|
|
64942
65339
|
if (nodeData._nodeType !== "DE") {
|
|
64943
|
-
throw new
|
|
65340
|
+
throw new RuntimeError59(
|
|
64944
65341
|
ibiz.i18n.t("runtime.controller.control.tree.nodeData")
|
|
64945
65342
|
);
|
|
64946
65343
|
}
|
|
@@ -64959,7 +65356,7 @@ var TreeController = class extends MDControlController {
|
|
|
64959
65356
|
let needRefresh = false;
|
|
64960
65357
|
const treeNode = this.getNodeModel(item._nodeId);
|
|
64961
65358
|
if (!treeNode) {
|
|
64962
|
-
throw new
|
|
65359
|
+
throw new RuntimeError59(
|
|
64963
65360
|
ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
|
|
64964
65361
|
);
|
|
64965
65362
|
}
|
|
@@ -65158,7 +65555,7 @@ var TreeController = class extends MDControlController {
|
|
|
65158
65555
|
var _a3;
|
|
65159
65556
|
const nodeModel = this.getNodeModel(item._nodeId);
|
|
65160
65557
|
if (!nodeModel) {
|
|
65161
|
-
throw new
|
|
65558
|
+
throw new RuntimeError59(
|
|
65162
65559
|
ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
|
|
65163
65560
|
);
|
|
65164
65561
|
}
|
|
@@ -65200,7 +65597,7 @@ var TreeController = class extends MDControlController {
|
|
|
65200
65597
|
var _a3;
|
|
65201
65598
|
const nodeModel = this.getNodeModel(item._nodeId);
|
|
65202
65599
|
if (!nodeModel) {
|
|
65203
|
-
throw new
|
|
65600
|
+
throw new RuntimeError59(
|
|
65204
65601
|
ibiz.i18n.t("runtime.controller.control.tree.noFoundTreeNode")
|
|
65205
65602
|
);
|
|
65206
65603
|
}
|
|
@@ -65270,7 +65667,7 @@ var TreeController = class extends MDControlController {
|
|
|
65270
65667
|
};
|
|
65271
65668
|
|
|
65272
65669
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
65273
|
-
import { RuntimeError as
|
|
65670
|
+
import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
|
|
65274
65671
|
|
|
65275
65672
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
65276
65673
|
var WizardPanelService = class extends ControlService {
|
|
@@ -65458,7 +65855,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
65458
65855
|
const { activeFormTag } = this.state;
|
|
65459
65856
|
const controller = this.formControllers.get(activeFormTag);
|
|
65460
65857
|
if (!controller) {
|
|
65461
|
-
throw new
|
|
65858
|
+
throw new RuntimeError60(
|
|
65462
65859
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.formController", {
|
|
65463
65860
|
activeFormTag
|
|
65464
65861
|
})
|
|
@@ -65508,7 +65905,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
65508
65905
|
getWizardFormByTag(tag) {
|
|
65509
65906
|
var _a3;
|
|
65510
65907
|
if (!((_a3 = this.model.dewizard) == null ? void 0 : _a3.dewizardForms)) {
|
|
65511
|
-
throw new
|
|
65908
|
+
throw new RuntimeError60(
|
|
65512
65909
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.noConfiguration")
|
|
65513
65910
|
);
|
|
65514
65911
|
}
|
|
@@ -65518,7 +65915,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
65518
65915
|
}
|
|
65519
65916
|
);
|
|
65520
65917
|
if (!wizardForm) {
|
|
65521
|
-
throw new
|
|
65918
|
+
throw new RuntimeError60(
|
|
65522
65919
|
ibiz.i18n.t(
|
|
65523
65920
|
"runtime.controller.control.wizardPanel.wizardFormIdentifier",
|
|
65524
65921
|
{ tag }
|
|
@@ -65614,7 +66011,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
65614
66011
|
prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
65615
66012
|
}
|
|
65616
66013
|
if (!prevTag) {
|
|
65617
|
-
throw new
|
|
66014
|
+
throw new RuntimeError60(
|
|
65618
66015
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.noPreviousForm")
|
|
65619
66016
|
);
|
|
65620
66017
|
}
|
|
@@ -65658,7 +66055,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
65658
66055
|
});
|
|
65659
66056
|
const nextWizardStep = wizardSteps[index + 1];
|
|
65660
66057
|
if (!nextWizardStep) {
|
|
65661
|
-
throw new
|
|
66058
|
+
throw new RuntimeError60(
|
|
65662
66059
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.nextStep")
|
|
65663
66060
|
);
|
|
65664
66061
|
}
|
|
@@ -65671,7 +66068,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
65671
66068
|
}
|
|
65672
66069
|
}
|
|
65673
66070
|
if (!nextTag) {
|
|
65674
|
-
throw new
|
|
66071
|
+
throw new RuntimeError60(
|
|
65675
66072
|
ibiz.i18n.t("runtime.controller.control.wizardPanel.nextForm")
|
|
65676
66073
|
);
|
|
65677
66074
|
}
|
|
@@ -66222,7 +66619,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
66222
66619
|
// src/controller/control/kanban/kanban.controller.ts
|
|
66223
66620
|
import {
|
|
66224
66621
|
clone as clone47,
|
|
66225
|
-
RuntimeError as
|
|
66622
|
+
RuntimeError as RuntimeError61,
|
|
66226
66623
|
isElementSame as isElementSame5,
|
|
66227
66624
|
RuntimeModelError as RuntimeModelError71
|
|
66228
66625
|
} from "@ibiz-template/core";
|
|
@@ -66422,7 +66819,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
66422
66819
|
}
|
|
66423
66820
|
handleDataGroup() {
|
|
66424
66821
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
66425
|
-
throw new
|
|
66822
|
+
throw new RuntimeError61(
|
|
66426
66823
|
ibiz.i18n.t("runtime.controller.control.kanban.groupedOn")
|
|
66427
66824
|
);
|
|
66428
66825
|
}
|
|
@@ -66777,7 +67174,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
66777
67174
|
|
|
66778
67175
|
// src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
|
|
66779
67176
|
import {
|
|
66780
|
-
RuntimeError as
|
|
67177
|
+
RuntimeError as RuntimeError62,
|
|
66781
67178
|
awaitTimeout as awaitTimeout3,
|
|
66782
67179
|
recursiveIterate as recursiveIterate14,
|
|
66783
67180
|
RuntimeModelError as RuntimeModelError72
|
|
@@ -67138,13 +67535,13 @@ var TreeGridExController = class extends TreeController {
|
|
|
67138
67535
|
return;
|
|
67139
67536
|
}
|
|
67140
67537
|
if (nodeData._nodeType !== "DE") {
|
|
67141
|
-
throw new
|
|
67538
|
+
throw new RuntimeError62(
|
|
67142
67539
|
ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
|
|
67143
67540
|
);
|
|
67144
67541
|
}
|
|
67145
67542
|
const rowState = this.state.rows[nodeData._uuid];
|
|
67146
67543
|
if (!rowState) {
|
|
67147
|
-
throw new
|
|
67544
|
+
throw new RuntimeError62(
|
|
67148
67545
|
ibiz.i18n.t("runtime.controller.common.md.rowData")
|
|
67149
67546
|
);
|
|
67150
67547
|
}
|
|
@@ -67160,7 +67557,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
67160
67557
|
const { appDataEntityId, updateAppDEActionId } = nodeModel;
|
|
67161
67558
|
const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
|
|
67162
67559
|
if (isCreate) {
|
|
67163
|
-
throw new
|
|
67560
|
+
throw new RuntimeError62(
|
|
67164
67561
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.noSupportCreation")
|
|
67165
67562
|
);
|
|
67166
67563
|
}
|
|
@@ -67329,7 +67726,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
67329
67726
|
(item) => item.showRowEdit
|
|
67330
67727
|
);
|
|
67331
67728
|
if (editingRow) {
|
|
67332
|
-
throw new
|
|
67729
|
+
throw new RuntimeError62(
|
|
67333
67730
|
ibiz.i18n.t("runtime.controller.control.grid.lineEditing")
|
|
67334
67731
|
);
|
|
67335
67732
|
}
|
|
@@ -67490,7 +67887,7 @@ var TreeGridExColumnController = class {
|
|
|
67490
67887
|
// src/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.ts
|
|
67491
67888
|
import {
|
|
67492
67889
|
DataTypes as DataTypes8,
|
|
67493
|
-
RuntimeError as
|
|
67890
|
+
RuntimeError as RuntimeError63,
|
|
67494
67891
|
RuntimeModelError as RuntimeModelError73
|
|
67495
67892
|
} from "@ibiz-template/core";
|
|
67496
67893
|
import { clone as clone49 } from "ramda";
|
|
@@ -67688,7 +68085,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
67688
68085
|
const valueItem = this.nodeColumn.linkValueItem || "srfkey";
|
|
67689
68086
|
const value = row.data[valueItem];
|
|
67690
68087
|
if (value == null) {
|
|
67691
|
-
throw new
|
|
68088
|
+
throw new RuntimeError63(
|
|
67692
68089
|
ibiz.i18n.t("runtime.controller.control.treeGridEx.noPickedUp", {
|
|
67693
68090
|
valueItem
|
|
67694
68091
|
})
|
|
@@ -68196,7 +68593,7 @@ var TreeGridService = class extends GridService {
|
|
|
68196
68593
|
};
|
|
68197
68594
|
|
|
68198
68595
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
68199
|
-
import { RuntimeError as
|
|
68596
|
+
import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
|
|
68200
68597
|
import { createUUID as createUUID21 } from "qx-util";
|
|
68201
68598
|
|
|
68202
68599
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -68417,7 +68814,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
68417
68814
|
(item) => item.id === id
|
|
68418
68815
|
);
|
|
68419
68816
|
if (panelUiItemIndex < 0) {
|
|
68420
|
-
throw new
|
|
68817
|
+
throw new RuntimeError64(
|
|
68421
68818
|
ibiz.i18n.t("runtime.controller.control.meditViewPanel.dataExist")
|
|
68422
68819
|
);
|
|
68423
68820
|
}
|
|
@@ -71891,7 +72288,7 @@ var ReportPanelController = class extends ControlController {
|
|
|
71891
72288
|
// src/controller/control/gantt/gantt.controller.ts
|
|
71892
72289
|
import {
|
|
71893
72290
|
awaitTimeout as awaitTimeout4,
|
|
71894
|
-
RuntimeError as
|
|
72291
|
+
RuntimeError as RuntimeError65,
|
|
71895
72292
|
recursiveIterate as recursiveIterate15
|
|
71896
72293
|
} from "@ibiz-template/core";
|
|
71897
72294
|
|
|
@@ -72506,13 +72903,13 @@ var GanttController = class extends TreeGridExController {
|
|
|
72506
72903
|
*/
|
|
72507
72904
|
async modifyNodeTime(nodeData, { begin, end }) {
|
|
72508
72905
|
if (nodeData._nodeType !== "DE") {
|
|
72509
|
-
throw new
|
|
72906
|
+
throw new RuntimeError65(
|
|
72510
72907
|
ibiz.i18n.t("runtime.controller.control.gantt.noNode")
|
|
72511
72908
|
);
|
|
72512
72909
|
}
|
|
72513
72910
|
const rowState = this.getRowState(nodeData._id);
|
|
72514
72911
|
if (!rowState) {
|
|
72515
|
-
throw new
|
|
72912
|
+
throw new RuntimeError65(
|
|
72516
72913
|
ibiz.i18n.t("runtime.controller.common.md.rowData")
|
|
72517
72914
|
);
|
|
72518
72915
|
}
|
|
@@ -72534,13 +72931,13 @@ var GanttController = class extends TreeGridExController {
|
|
|
72534
72931
|
return;
|
|
72535
72932
|
}
|
|
72536
72933
|
if (nodeData._nodeType !== "DE") {
|
|
72537
|
-
throw new
|
|
72934
|
+
throw new RuntimeError65(
|
|
72538
72935
|
ibiz.i18n.t("runtime.controller.control.gantt.nonentity")
|
|
72539
72936
|
);
|
|
72540
72937
|
}
|
|
72541
72938
|
const rowState = this.state.rows[nodeData._uuid];
|
|
72542
72939
|
if (!rowState) {
|
|
72543
|
-
throw new
|
|
72940
|
+
throw new RuntimeError65(
|
|
72544
72941
|
ibiz.i18n.t("runtime.controller.common.md.rowData")
|
|
72545
72942
|
);
|
|
72546
72943
|
}
|
|
@@ -72592,7 +72989,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
72592
72989
|
async remove(args) {
|
|
72593
72990
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
72594
72991
|
if (!(data == null ? void 0 : data.length)) {
|
|
72595
|
-
throw new
|
|
72992
|
+
throw new RuntimeError65(
|
|
72596
72993
|
ibiz.i18n.t("runtime.controller.common.control.uncheckedData")
|
|
72597
72994
|
);
|
|
72598
72995
|
}
|
|
@@ -72715,7 +73112,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
72715
73112
|
(item) => item.showRowEdit
|
|
72716
73113
|
);
|
|
72717
73114
|
if (editingRow) {
|
|
72718
|
-
throw new
|
|
73115
|
+
throw new RuntimeError65(
|
|
72719
73116
|
ibiz.i18n.t("runtime.controller.common.md.firstComplete")
|
|
72720
73117
|
);
|
|
72721
73118
|
}
|
|
@@ -75376,7 +75773,7 @@ var AnimeUtil = class {
|
|
|
75376
75773
|
// src/utils/file-util/file-util.ts
|
|
75377
75774
|
import {
|
|
75378
75775
|
CoreConst as CoreConst3,
|
|
75379
|
-
RuntimeError as
|
|
75776
|
+
RuntimeError as RuntimeError66,
|
|
75380
75777
|
downloadFileFromBlob as downloadFileFromBlob2,
|
|
75381
75778
|
getAppCookie as getAppCookie2
|
|
75382
75779
|
} from "@ibiz-template/core";
|
|
@@ -75731,7 +76128,7 @@ var FileUtil = class {
|
|
|
75731
76128
|
downloadTicketParams
|
|
75732
76129
|
);
|
|
75733
76130
|
if (!downloadTicket) {
|
|
75734
|
-
throw new
|
|
76131
|
+
throw new RuntimeError66(
|
|
75735
76132
|
"runtime.utils.fileUtil.getDownloadTicketFailed"
|
|
75736
76133
|
);
|
|
75737
76134
|
}
|
|
@@ -75744,10 +76141,10 @@ var FileUtil = class {
|
|
|
75744
76141
|
// 已经有baseURL了,这里无需再写
|
|
75745
76142
|
});
|
|
75746
76143
|
if (response.status !== 200) {
|
|
75747
|
-
throw new
|
|
76144
|
+
throw new RuntimeError66(ibiz.i18n.t("runtime.platform.failedDownload"));
|
|
75748
76145
|
}
|
|
75749
76146
|
if (!response.data) {
|
|
75750
|
-
throw new
|
|
76147
|
+
throw new RuntimeError66(ibiz.i18n.t("runtime.platform.fileStreamData"));
|
|
75751
76148
|
} else {
|
|
75752
76149
|
let fileName = ibiz.util.file.getFileName(response);
|
|
75753
76150
|
if (name2)
|
|
@@ -75773,7 +76170,7 @@ var FileUtil = class {
|
|
|
75773
76170
|
data: formData
|
|
75774
76171
|
});
|
|
75775
76172
|
if (res.status !== 200) {
|
|
75776
|
-
throw new
|
|
76173
|
+
throw new RuntimeError66(
|
|
75777
76174
|
ibiz.i18n.t("runtime.utils.fileUtil.fileUploadFailed")
|
|
75778
76175
|
);
|
|
75779
76176
|
}
|
|
@@ -75914,7 +76311,7 @@ var FileUtil = class {
|
|
|
75914
76311
|
downloadTicketParams
|
|
75915
76312
|
);
|
|
75916
76313
|
if (!downloadTicket) {
|
|
75917
|
-
throw new
|
|
76314
|
+
throw new RuntimeError66(
|
|
75918
76315
|
"runtime.utils.fileUtil.getDownloadTicketFailed"
|
|
75919
76316
|
);
|
|
75920
76317
|
}
|
|
@@ -75927,10 +76324,10 @@ var FileUtil = class {
|
|
|
75927
76324
|
// 已经有 baseURL,不需要再写
|
|
75928
76325
|
});
|
|
75929
76326
|
if (response.status !== 200) {
|
|
75930
|
-
throw new
|
|
76327
|
+
throw new RuntimeError66(ibiz.i18n.t("runtime.platform.failedDownload"));
|
|
75931
76328
|
}
|
|
75932
76329
|
if (!response.data) {
|
|
75933
|
-
throw new
|
|
76330
|
+
throw new RuntimeError66(ibiz.i18n.t("runtime.platform.fileStreamData"));
|
|
75934
76331
|
}
|
|
75935
76332
|
return response.data;
|
|
75936
76333
|
}
|
|
@@ -76111,7 +76508,7 @@ var ShortCutUtil = class {
|
|
|
76111
76508
|
|
|
76112
76509
|
// src/utils/bi-report-util/bi-report-util.ts
|
|
76113
76510
|
import { clone as clone56 } from "ramda";
|
|
76114
|
-
import { RuntimeError as
|
|
76511
|
+
import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
|
|
76115
76512
|
var BIReportUtil = class {
|
|
76116
76513
|
/**
|
|
76117
76514
|
* 打开设计界面
|
|
@@ -76148,7 +76545,7 @@ var BIReportUtil = class {
|
|
|
76148
76545
|
}
|
|
76149
76546
|
}
|
|
76150
76547
|
} catch (error) {
|
|
76151
|
-
throw new
|
|
76548
|
+
throw new RuntimeError67(error.message);
|
|
76152
76549
|
}
|
|
76153
76550
|
} else if (data.mode === "UI") {
|
|
76154
76551
|
config = this.translateReportPanelToConfig(data.reportPanel.model);
|
|
@@ -76544,7 +76941,7 @@ var BIReportUtil = class {
|
|
|
76544
76941
|
};
|
|
76545
76942
|
|
|
76546
76943
|
// src/utils/record-nav-util/record-nav-util.ts
|
|
76547
|
-
import { RuntimeError as
|
|
76944
|
+
import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
|
|
76548
76945
|
import { createUUID as createUUID23 } from "qx-util";
|
|
76549
76946
|
var RecordNavUtil = class {
|
|
76550
76947
|
constructor() {
|
|
@@ -76651,7 +77048,7 @@ var RecordNavUtil = class {
|
|
|
76651
77048
|
async getFirstRecord(ctrlId, dataId) {
|
|
76652
77049
|
const targrtCtrl = this.getCtrl(ctrlId);
|
|
76653
77050
|
if (!targrtCtrl) {
|
|
76654
|
-
throw new
|
|
77051
|
+
throw new RuntimeError68(
|
|
76655
77052
|
ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
|
|
76656
77053
|
ctrlId
|
|
76657
77054
|
})
|
|
@@ -76682,7 +77079,7 @@ var RecordNavUtil = class {
|
|
|
76682
77079
|
async getPreviousRecord(ctrlId, dataId) {
|
|
76683
77080
|
const targrtCtrl = this.getCtrl(ctrlId);
|
|
76684
77081
|
if (!targrtCtrl) {
|
|
76685
|
-
throw new
|
|
77082
|
+
throw new RuntimeError68(
|
|
76686
77083
|
ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
|
|
76687
77084
|
ctrlId
|
|
76688
77085
|
})
|
|
@@ -76721,7 +77118,7 @@ var RecordNavUtil = class {
|
|
|
76721
77118
|
async getNextRecord(ctrlId, dataId) {
|
|
76722
77119
|
const targrtCtrl = this.getCtrl(ctrlId);
|
|
76723
77120
|
if (!targrtCtrl) {
|
|
76724
|
-
throw new
|
|
77121
|
+
throw new RuntimeError68(
|
|
76725
77122
|
ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
|
|
76726
77123
|
ctrlId
|
|
76727
77124
|
})
|
|
@@ -76773,7 +77170,7 @@ var RecordNavUtil = class {
|
|
|
76773
77170
|
async getLastRecord(ctrlId, dataId) {
|
|
76774
77171
|
const targrtCtrl = this.getCtrl(ctrlId);
|
|
76775
77172
|
if (!targrtCtrl) {
|
|
76776
|
-
throw new
|
|
77173
|
+
throw new RuntimeError68(
|
|
76777
77174
|
ibiz.i18n.t("runtime.utils.recordNav.noFoundCtrl", {
|
|
76778
77175
|
ctrlId
|
|
76779
77176
|
})
|
|
@@ -77262,7 +77659,7 @@ var Html2Canvas = class {
|
|
|
77262
77659
|
};
|
|
77263
77660
|
|
|
77264
77661
|
// src/utils/voice-util/voice-util.ts
|
|
77265
|
-
import { RuntimeError as
|
|
77662
|
+
import { RuntimeError as RuntimeError69 } from "@ibiz-template/core";
|
|
77266
77663
|
var VoiceUtil = class {
|
|
77267
77664
|
/**
|
|
77268
77665
|
* 文字转语音
|
|
@@ -77298,7 +77695,7 @@ var VoiceUtil = class {
|
|
|
77298
77695
|
* @date 2024-12-20 15:07:31
|
|
77299
77696
|
*/
|
|
77300
77697
|
speechToText() {
|
|
77301
|
-
throw new
|
|
77698
|
+
throw new RuntimeError69(ibiz.i18n.t("runtime.common.unrealized"));
|
|
77302
77699
|
}
|
|
77303
77700
|
};
|
|
77304
77701
|
|
|
@@ -82133,8 +82530,334 @@ var WeChatUtil = class {
|
|
|
82133
82530
|
}
|
|
82134
82531
|
};
|
|
82135
82532
|
|
|
82533
|
+
// src/utils/json-util/JsonContext.ts
|
|
82534
|
+
var JsonContext = class {
|
|
82535
|
+
constructor() {
|
|
82536
|
+
this.contextStack = [];
|
|
82537
|
+
}
|
|
82538
|
+
get current() {
|
|
82539
|
+
return this.contextStack[this.contextStack.length - 1];
|
|
82540
|
+
}
|
|
82541
|
+
get context() {
|
|
82542
|
+
return [...this.contextStack];
|
|
82543
|
+
}
|
|
82544
|
+
get empty() {
|
|
82545
|
+
return this.contextStack.length === 0;
|
|
82546
|
+
}
|
|
82547
|
+
set(value) {
|
|
82548
|
+
this.contextStack.push(value);
|
|
82549
|
+
}
|
|
82550
|
+
reset() {
|
|
82551
|
+
this.contextStack = [];
|
|
82552
|
+
}
|
|
82553
|
+
remove(value) {
|
|
82554
|
+
const index = this.contextStack.lastIndexOf(value);
|
|
82555
|
+
if (index !== -1) {
|
|
82556
|
+
this.contextStack.splice(index, 1);
|
|
82557
|
+
}
|
|
82558
|
+
}
|
|
82559
|
+
};
|
|
82560
|
+
var ContextValues = {
|
|
82561
|
+
OBJECT_KEY: "OBJECT_KEY",
|
|
82562
|
+
OBJECT_VALUE: "OBJECT_VALUE",
|
|
82563
|
+
ARRAY: "ARRAY"
|
|
82564
|
+
};
|
|
82565
|
+
|
|
82566
|
+
// src/utils/json-util/JsonParser.ts
|
|
82567
|
+
var STRING_DELIMITERS = ['"', "'"];
|
|
82568
|
+
var WHITESPACE = /* @__PURE__ */ new Set([32, 9, 10, 13]);
|
|
82569
|
+
var JsonParser = class {
|
|
82570
|
+
constructor(jsonStr = "", logging = false) {
|
|
82571
|
+
this.jsonStr = jsonStr;
|
|
82572
|
+
this.index = 0;
|
|
82573
|
+
this.context = new JsonContext();
|
|
82574
|
+
this.logging = logging;
|
|
82575
|
+
this.logger = [];
|
|
82576
|
+
}
|
|
82577
|
+
log(text) {
|
|
82578
|
+
if (!this.logging)
|
|
82579
|
+
return;
|
|
82580
|
+
const window2 = 10;
|
|
82581
|
+
const start = Math.max(this.index - window2, 0);
|
|
82582
|
+
const end = Math.min(this.index + window2, this.jsonStr.length);
|
|
82583
|
+
const context = this.jsonStr.slice(start, end);
|
|
82584
|
+
this.logger.push({ text, context });
|
|
82585
|
+
}
|
|
82586
|
+
parse() {
|
|
82587
|
+
let inBackticks = false;
|
|
82588
|
+
let foundJson = false;
|
|
82589
|
+
while (this.index < this.jsonStr.length) {
|
|
82590
|
+
const char = this.peek();
|
|
82591
|
+
if (char === "`") {
|
|
82592
|
+
if (this.jsonStr.slice(this.index, this.index + 3) === "```") {
|
|
82593
|
+
inBackticks = !inBackticks;
|
|
82594
|
+
this.index += 3;
|
|
82595
|
+
continue;
|
|
82596
|
+
}
|
|
82597
|
+
}
|
|
82598
|
+
if (char === "{" || char === "[") {
|
|
82599
|
+
foundJson = true;
|
|
82600
|
+
break;
|
|
82601
|
+
}
|
|
82602
|
+
this.index++;
|
|
82603
|
+
}
|
|
82604
|
+
if (!foundJson) {
|
|
82605
|
+
return "";
|
|
82606
|
+
}
|
|
82607
|
+
const result = this.parseValue();
|
|
82608
|
+
return this.logging ? [result, this.logger] : result;
|
|
82609
|
+
}
|
|
82610
|
+
parseValue() {
|
|
82611
|
+
this.skipWhitespace();
|
|
82612
|
+
const char = this.peek();
|
|
82613
|
+
if (!char)
|
|
82614
|
+
return "";
|
|
82615
|
+
if (char === "{")
|
|
82616
|
+
return this.parseObject();
|
|
82617
|
+
if (char === "[")
|
|
82618
|
+
return this.parseArray();
|
|
82619
|
+
if (STRING_DELIMITERS.includes(char))
|
|
82620
|
+
return this.parseString();
|
|
82621
|
+
if (/[-0-9]/.test(char))
|
|
82622
|
+
return this.parseNumber();
|
|
82623
|
+
if (/[a-zA-Z]/.test(char))
|
|
82624
|
+
return this.parseUnquotedString();
|
|
82625
|
+
this.index++;
|
|
82626
|
+
return "";
|
|
82627
|
+
}
|
|
82628
|
+
parseObject() {
|
|
82629
|
+
const obj = {};
|
|
82630
|
+
this.index++;
|
|
82631
|
+
while (this.index < this.jsonStr.length) {
|
|
82632
|
+
this.skipWhitespace();
|
|
82633
|
+
if (this.peek() === "}") {
|
|
82634
|
+
this.index++;
|
|
82635
|
+
break;
|
|
82636
|
+
}
|
|
82637
|
+
this.context.set(ContextValues.OBJECT_KEY);
|
|
82638
|
+
const key = this.parseString() || this.parseUnquotedString();
|
|
82639
|
+
if (!key)
|
|
82640
|
+
break;
|
|
82641
|
+
this.skipWhitespace();
|
|
82642
|
+
if (this.peek() !== ":") {
|
|
82643
|
+
this.log("Missing colon after key, adding it");
|
|
82644
|
+
} else {
|
|
82645
|
+
this.index++;
|
|
82646
|
+
}
|
|
82647
|
+
this.skipWhitespace();
|
|
82648
|
+
this.context.reset();
|
|
82649
|
+
this.context.set(ContextValues.OBJECT_VALUE);
|
|
82650
|
+
const value = this.parseValue();
|
|
82651
|
+
this.context.reset();
|
|
82652
|
+
if (key) {
|
|
82653
|
+
obj[key] = value;
|
|
82654
|
+
}
|
|
82655
|
+
this.skipWhitespace();
|
|
82656
|
+
if (this.peek() === ",") {
|
|
82657
|
+
this.index++;
|
|
82658
|
+
}
|
|
82659
|
+
}
|
|
82660
|
+
return obj;
|
|
82661
|
+
}
|
|
82662
|
+
parseArray() {
|
|
82663
|
+
const arr = [];
|
|
82664
|
+
this.index++;
|
|
82665
|
+
this.context.set(ContextValues.ARRAY);
|
|
82666
|
+
while (this.index < this.jsonStr.length) {
|
|
82667
|
+
this.skipWhitespace();
|
|
82668
|
+
if (this.peek() === "]") {
|
|
82669
|
+
this.index++;
|
|
82670
|
+
break;
|
|
82671
|
+
}
|
|
82672
|
+
const value = this.parseValue();
|
|
82673
|
+
if (value !== void 0) {
|
|
82674
|
+
arr.push(value);
|
|
82675
|
+
}
|
|
82676
|
+
this.skipWhitespace();
|
|
82677
|
+
if (this.peek() === ",") {
|
|
82678
|
+
this.index++;
|
|
82679
|
+
}
|
|
82680
|
+
}
|
|
82681
|
+
this.context.reset();
|
|
82682
|
+
return arr;
|
|
82683
|
+
}
|
|
82684
|
+
parseString() {
|
|
82685
|
+
let char = this.peek();
|
|
82686
|
+
const isQuoted = STRING_DELIMITERS.includes(char);
|
|
82687
|
+
let stringAcc = "";
|
|
82688
|
+
while (char && /\s/.test(char)) {
|
|
82689
|
+
this.index++;
|
|
82690
|
+
char = this.peek();
|
|
82691
|
+
}
|
|
82692
|
+
if (isQuoted) {
|
|
82693
|
+
const quote = char;
|
|
82694
|
+
this.index++;
|
|
82695
|
+
while (this.index < this.jsonStr.length) {
|
|
82696
|
+
char = this.peek();
|
|
82697
|
+
if (char === quote && this.jsonStr[this.index - 1] !== "\\") {
|
|
82698
|
+
this.index++;
|
|
82699
|
+
break;
|
|
82700
|
+
}
|
|
82701
|
+
stringAcc += char;
|
|
82702
|
+
this.index++;
|
|
82703
|
+
}
|
|
82704
|
+
} else {
|
|
82705
|
+
while (this.index < this.jsonStr.length) {
|
|
82706
|
+
char = this.peek();
|
|
82707
|
+
if ([",", "}", "]", ":"].includes(char)) {
|
|
82708
|
+
break;
|
|
82709
|
+
} else if (/\s/.test(char)) {
|
|
82710
|
+
if (stringAcc && this.index < this.jsonStr.length - 1) {
|
|
82711
|
+
const nextChar = this.jsonStr[this.index + 1];
|
|
82712
|
+
if (!/[,}\]:]/.test(nextChar)) {
|
|
82713
|
+
stringAcc += " ";
|
|
82714
|
+
}
|
|
82715
|
+
}
|
|
82716
|
+
} else {
|
|
82717
|
+
stringAcc += char;
|
|
82718
|
+
}
|
|
82719
|
+
this.index++;
|
|
82720
|
+
}
|
|
82721
|
+
}
|
|
82722
|
+
if (!isQuoted && this.context.current === ContextValues.OBJECT_VALUE) {
|
|
82723
|
+
const trimmed = stringAcc.trim();
|
|
82724
|
+
const num = Number(trimmed);
|
|
82725
|
+
if (!isNaN(num))
|
|
82726
|
+
return num;
|
|
82727
|
+
if (trimmed.toLowerCase() === "true")
|
|
82728
|
+
return true;
|
|
82729
|
+
if (trimmed.toLowerCase() === "false")
|
|
82730
|
+
return false;
|
|
82731
|
+
if (trimmed.toLowerCase() === "null")
|
|
82732
|
+
return null;
|
|
82733
|
+
}
|
|
82734
|
+
return stringAcc.trim();
|
|
82735
|
+
}
|
|
82736
|
+
parseNumber() {
|
|
82737
|
+
let numStr = "";
|
|
82738
|
+
while (this.index < this.jsonStr.length) {
|
|
82739
|
+
const char = this.peek();
|
|
82740
|
+
if (!/[-0-9.eE]/.test(char))
|
|
82741
|
+
break;
|
|
82742
|
+
numStr += char;
|
|
82743
|
+
this.index++;
|
|
82744
|
+
}
|
|
82745
|
+
const num = Number(numStr);
|
|
82746
|
+
return isNaN(num) ? numStr : num;
|
|
82747
|
+
}
|
|
82748
|
+
parseUnquotedString() {
|
|
82749
|
+
let str = "";
|
|
82750
|
+
while (this.index < this.jsonStr.length) {
|
|
82751
|
+
const char = this.peek();
|
|
82752
|
+
if ([",", "}", "]", ":"].includes(char) || /\s/.test(char))
|
|
82753
|
+
break;
|
|
82754
|
+
str += char;
|
|
82755
|
+
this.index++;
|
|
82756
|
+
}
|
|
82757
|
+
return str;
|
|
82758
|
+
}
|
|
82759
|
+
skipWhitespace() {
|
|
82760
|
+
while (this.index < this.jsonStr.length) {
|
|
82761
|
+
const code = this.jsonStr.charCodeAt(this.index);
|
|
82762
|
+
if (!WHITESPACE.has(code))
|
|
82763
|
+
break;
|
|
82764
|
+
this.index++;
|
|
82765
|
+
}
|
|
82766
|
+
}
|
|
82767
|
+
peek() {
|
|
82768
|
+
return this.jsonStr[this.index];
|
|
82769
|
+
}
|
|
82770
|
+
};
|
|
82771
|
+
|
|
82772
|
+
// src/utils/json-util/json-repair.ts
|
|
82773
|
+
function repairJson(jsonStr = "", options = {}) {
|
|
82774
|
+
const {
|
|
82775
|
+
returnObjects = false,
|
|
82776
|
+
skipJsonParse = false,
|
|
82777
|
+
logging = false,
|
|
82778
|
+
ensureAscii = true
|
|
82779
|
+
} = options;
|
|
82780
|
+
if (!skipJsonParse) {
|
|
82781
|
+
try {
|
|
82782
|
+
const parsed = JSON.parse(jsonStr);
|
|
82783
|
+
return returnObjects ? parsed : JSON.stringify(parsed, null, 2);
|
|
82784
|
+
} catch (e) {
|
|
82785
|
+
}
|
|
82786
|
+
}
|
|
82787
|
+
const parser = new JsonParser(jsonStr, logging);
|
|
82788
|
+
const result = parser.parse();
|
|
82789
|
+
if (logging) {
|
|
82790
|
+
return result;
|
|
82791
|
+
}
|
|
82792
|
+
if (returnObjects) {
|
|
82793
|
+
return result;
|
|
82794
|
+
}
|
|
82795
|
+
const indent = 2;
|
|
82796
|
+
const replacer = ensureAscii ? (key, value) => {
|
|
82797
|
+
if (typeof value === "string") {
|
|
82798
|
+
return value.replace(/[^\x00-\x7F]/g, (char) => {
|
|
82799
|
+
return "\\u".concat("0000".concat(char.charCodeAt(0).toString(16)).slice(-4));
|
|
82800
|
+
});
|
|
82801
|
+
}
|
|
82802
|
+
return value;
|
|
82803
|
+
} : void 0;
|
|
82804
|
+
return JSON.stringify(result, replacer, indent);
|
|
82805
|
+
}
|
|
82806
|
+
function loads(jsonStr, options = {}) {
|
|
82807
|
+
return repairJson(jsonStr, { ...options, returnObjects: true });
|
|
82808
|
+
}
|
|
82809
|
+
|
|
82810
|
+
// src/utils/json-util/json-util.ts
|
|
82811
|
+
var JsonUtil = class {
|
|
82812
|
+
/**
|
|
82813
|
+
* @description json修复,用于提取大语言模型中的json数据
|
|
82814
|
+
* @param {string} value
|
|
82815
|
+
* @param {IApiJsonRepairOption} [options={}]
|
|
82816
|
+
* @returns {*} {(IData | IData[] | string)}
|
|
82817
|
+
* @memberof JsonUtil
|
|
82818
|
+
*/
|
|
82819
|
+
repairJson(value, options = {}) {
|
|
82820
|
+
return repairJson(value, options);
|
|
82821
|
+
}
|
|
82822
|
+
/**
|
|
82823
|
+
* @description 加载字符串中的JSON数据,直接返回json数据对象
|
|
82824
|
+
* @param {string} value
|
|
82825
|
+
* @param {IApiJsonRepairOption} [options={}]
|
|
82826
|
+
* @returns {*} {(IData | IData[])}
|
|
82827
|
+
* @memberof JsonUtil
|
|
82828
|
+
*/
|
|
82829
|
+
loads(value, options = {}) {
|
|
82830
|
+
return loads(value, options);
|
|
82831
|
+
}
|
|
82832
|
+
/**
|
|
82833
|
+
* @description json修复,用于提取大语言模型中的json数据
|
|
82834
|
+
* @param {string} value
|
|
82835
|
+
* @param {IApiJsonRepairOption} [options={}]
|
|
82836
|
+
* @returns {*} {IApiJsonRepairResult}
|
|
82837
|
+
* @memberof JsonUtil
|
|
82838
|
+
*/
|
|
82839
|
+
parseJson(value, options = {}) {
|
|
82840
|
+
const data = loads(value, options);
|
|
82841
|
+
if (data) {
|
|
82842
|
+
const type = Array.isArray(data) ? "jsonarray" : "jsonobject";
|
|
82843
|
+
return {
|
|
82844
|
+
success: true,
|
|
82845
|
+
data,
|
|
82846
|
+
data_type: type,
|
|
82847
|
+
message: ibiz.i18n.t("runtime.utils.jsonUtil.parseSuccess")
|
|
82848
|
+
};
|
|
82849
|
+
}
|
|
82850
|
+
return {
|
|
82851
|
+
success: false,
|
|
82852
|
+
data: {},
|
|
82853
|
+
data_type: "unknown",
|
|
82854
|
+
message: ibiz.i18n.t("runtime.utils.jsonUtil.parseError")
|
|
82855
|
+
};
|
|
82856
|
+
}
|
|
82857
|
+
};
|
|
82858
|
+
|
|
82136
82859
|
// src/command/app/open-app-view/open-app-view.ts
|
|
82137
|
-
import { ModelError as ModelError30, RuntimeError as
|
|
82860
|
+
import { ModelError as ModelError30, RuntimeError as RuntimeError70 } from "@ibiz-template/core";
|
|
82138
82861
|
import { clone as clone58 } from "ramda";
|
|
82139
82862
|
var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
82140
82863
|
constructor() {
|
|
@@ -82158,7 +82881,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
82158
82881
|
}
|
|
82159
82882
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
82160
82883
|
if (!appView) {
|
|
82161
|
-
throw new
|
|
82884
|
+
throw new RuntimeError70(
|
|
82162
82885
|
ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
|
|
82163
82886
|
appViewId
|
|
82164
82887
|
})
|
|
@@ -82285,7 +83008,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
82285
83008
|
async openPopover(appView, context, params = {}, opts = {}) {
|
|
82286
83009
|
const { event, modalOption } = opts;
|
|
82287
83010
|
if (!event) {
|
|
82288
|
-
throw new
|
|
83011
|
+
throw new RuntimeError70(ibiz.i18n.t("runtime.command.app.missingEvent"));
|
|
82289
83012
|
}
|
|
82290
83013
|
return ibiz.openView.popover(appView.id, event, context, params, {
|
|
82291
83014
|
...modalOption,
|
|
@@ -82363,7 +83086,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
82363
83086
|
const app = await ibiz.hub.getAppAsync(context.srfappid);
|
|
82364
83087
|
const appFunc = app.getAppFunc(appFuncId);
|
|
82365
83088
|
if (!appFunc) {
|
|
82366
|
-
throw new
|
|
83089
|
+
throw new RuntimeError71(
|
|
82367
83090
|
ibiz.i18n.t("runtime.command.app.noFindApplicationFunction", {
|
|
82368
83091
|
appFuncId
|
|
82369
83092
|
})
|
|
@@ -82409,7 +83132,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
82409
83132
|
*/
|
|
82410
83133
|
async openAppView(appFunc, context, params, opts) {
|
|
82411
83134
|
if (!appFunc.appViewId) {
|
|
82412
|
-
throw new
|
|
83135
|
+
throw new RuntimeError71(
|
|
82413
83136
|
ibiz.i18n.t("runtime.command.app.noFindApplicationView", {
|
|
82414
83137
|
appViewId: appFunc.appViewId
|
|
82415
83138
|
})
|
|
@@ -82447,7 +83170,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
82447
83170
|
*/
|
|
82448
83171
|
openPdAppFunc(appFunc, context, params) {
|
|
82449
83172
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
82450
|
-
throw new
|
|
83173
|
+
throw new RuntimeError71(ibiz.i18n.t("runtime.common.unrealized"));
|
|
82451
83174
|
}
|
|
82452
83175
|
/**
|
|
82453
83176
|
* 执行 JavaScript 脚本
|
|
@@ -82499,7 +83222,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
82499
83222
|
*/
|
|
82500
83223
|
custom(appFunc, context, params) {
|
|
82501
83224
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
82502
|
-
throw new
|
|
83225
|
+
throw new RuntimeError71(ibiz.i18n.t("runtime.common.unrealized"));
|
|
82503
83226
|
}
|
|
82504
83227
|
};
|
|
82505
83228
|
/**
|
|
@@ -82520,7 +83243,7 @@ function installCommand() {
|
|
|
82520
83243
|
}
|
|
82521
83244
|
|
|
82522
83245
|
// src/app-hub.ts
|
|
82523
|
-
import { getToken as getToken2, RuntimeError as
|
|
83246
|
+
import { getToken as getToken2, RuntimeError as RuntimeError73 } from "@ibiz-template/core";
|
|
82524
83247
|
|
|
82525
83248
|
// src/application.ts
|
|
82526
83249
|
import { Net } from "@ibiz-template/core";
|
|
@@ -82820,7 +83543,7 @@ var Convert = class {
|
|
|
82820
83543
|
};
|
|
82821
83544
|
|
|
82822
83545
|
// src/hub/config/app-view-config-service.ts
|
|
82823
|
-
import { RuntimeError as
|
|
83546
|
+
import { RuntimeError as RuntimeError72 } from "@ibiz-template/core";
|
|
82824
83547
|
var AppViewConfigService = class {
|
|
82825
83548
|
constructor() {
|
|
82826
83549
|
/**
|
|
@@ -82915,7 +83638,7 @@ var AppViewConfigService = class {
|
|
|
82915
83638
|
if (!this.viewConfigs.has(id)) {
|
|
82916
83639
|
const model = await ibiz.hub.getAppView(id);
|
|
82917
83640
|
if (!model) {
|
|
82918
|
-
throw new
|
|
83641
|
+
throw new RuntimeError72(ibiz.i18n.t("runtime.hub.noExist", { id }));
|
|
82919
83642
|
}
|
|
82920
83643
|
this.set(model.id, {
|
|
82921
83644
|
id: model.id,
|
|
@@ -83910,7 +84633,7 @@ var AppHub = class {
|
|
|
83910
84633
|
this.registerAppView(appView);
|
|
83911
84634
|
return appView;
|
|
83912
84635
|
}
|
|
83913
|
-
throw new
|
|
84636
|
+
throw new RuntimeError73(ibiz.i18n.t("runtime.hub.noExist", { id }));
|
|
83914
84637
|
}
|
|
83915
84638
|
/**
|
|
83916
84639
|
* 根据DrControl的名称和子应用标识获取模型
|
|
@@ -84004,7 +84727,7 @@ var AppHub = class {
|
|
|
84004
84727
|
);
|
|
84005
84728
|
return model;
|
|
84006
84729
|
}
|
|
84007
|
-
throw new
|
|
84730
|
+
throw new RuntimeError73(
|
|
84008
84731
|
ibiz.i18n.t("runtime.hub.noExist", { id: modelPath })
|
|
84009
84732
|
);
|
|
84010
84733
|
}
|
|
@@ -84047,7 +84770,7 @@ var AppHub = class {
|
|
|
84047
84770
|
this.registerAppDataEntity(entity, appId2);
|
|
84048
84771
|
return entity;
|
|
84049
84772
|
}
|
|
84050
|
-
throw new
|
|
84773
|
+
throw new RuntimeError73(ibiz.i18n.t("runtime.service.noFound", { id }));
|
|
84051
84774
|
}
|
|
84052
84775
|
/**
|
|
84053
84776
|
* 根据代码表标识获取子应用代码表
|
|
@@ -84074,7 +84797,7 @@ var AppHub = class {
|
|
|
84074
84797
|
return this.appMap.get(id);
|
|
84075
84798
|
}
|
|
84076
84799
|
if (!this.modelLoaderProvider) {
|
|
84077
|
-
throw new
|
|
84800
|
+
throw new RuntimeError73(ibiz.i18n.t("runtime.utils.firstregister"));
|
|
84078
84801
|
}
|
|
84079
84802
|
const appModel = await this.modelLoaderProvider.getApp(id);
|
|
84080
84803
|
const subAppRef = await this.modelLoaderProvider.getSubAppRef(id);
|
|
@@ -84214,7 +84937,7 @@ var AppHub = class {
|
|
|
84214
84937
|
*/
|
|
84215
84938
|
mergeSubAppCodeList(codeList) {
|
|
84216
84939
|
if (!this.modelLoaderProvider) {
|
|
84217
|
-
throw new
|
|
84940
|
+
throw new RuntimeError73(ibiz.i18n.t("runtime.utils.firstregister"));
|
|
84218
84941
|
}
|
|
84219
84942
|
this.modelLoaderProvider.mergeSubAppCodeList(codeList);
|
|
84220
84943
|
}
|
|
@@ -84316,7 +85039,7 @@ var EngineFactory = class {
|
|
|
84316
85039
|
|
|
84317
85040
|
// src/engine/view-base.engine.ts
|
|
84318
85041
|
import {
|
|
84319
|
-
RuntimeError as
|
|
85042
|
+
RuntimeError as RuntimeError74,
|
|
84320
85043
|
findRecursiveChild as findRecursiveChild3,
|
|
84321
85044
|
IBizContext as IBizContext10
|
|
84322
85045
|
} from "@ibiz-template/core";
|
|
@@ -84788,7 +85511,7 @@ var ViewEngineBase = class {
|
|
|
84788
85511
|
const { appDataEntityId } = this.view.model;
|
|
84789
85512
|
const { evt, context, params } = this.view;
|
|
84790
85513
|
if (!appDataEntityId) {
|
|
84791
|
-
throw new
|
|
85514
|
+
throw new RuntimeError74(ibiz.i18n.t("runtime.engine.loadEntityData"));
|
|
84792
85515
|
}
|
|
84793
85516
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
84794
85517
|
const res = await app.deService.exec(
|
|
@@ -85901,7 +86624,7 @@ var gBase64 = {
|
|
|
85901
86624
|
};
|
|
85902
86625
|
|
|
85903
86626
|
// src/global/global-util/global-util.ts
|
|
85904
|
-
import { RuntimeError as
|
|
86627
|
+
import { RuntimeError as RuntimeError75 } from "@ibiz-template/core";
|
|
85905
86628
|
var GlobalUtil = class {
|
|
85906
86629
|
constructor() {
|
|
85907
86630
|
/**
|
|
@@ -86004,6 +86727,11 @@ var GlobalUtil = class {
|
|
|
86004
86727
|
* @memberof GlobalUtil
|
|
86005
86728
|
*/
|
|
86006
86729
|
this.weChat = new WeChatUtil();
|
|
86730
|
+
/**
|
|
86731
|
+
* @description json工具类
|
|
86732
|
+
* @memberof GlobalUtil
|
|
86733
|
+
*/
|
|
86734
|
+
this.jsonUtil = new JsonUtil();
|
|
86007
86735
|
this.error.register(new DefaultErrorHandler());
|
|
86008
86736
|
}
|
|
86009
86737
|
/**
|
|
@@ -86042,7 +86770,7 @@ var GlobalUtil = class {
|
|
|
86042
86770
|
* @memberof GlobalUtil
|
|
86043
86771
|
*/
|
|
86044
86772
|
getGlobalParam() {
|
|
86045
|
-
throw new
|
|
86773
|
+
throw new RuntimeError75(ibiz.i18n.t("runtime.global.noImplemented"));
|
|
86046
86774
|
}
|
|
86047
86775
|
/**
|
|
86048
86776
|
* @description 获取视图路由参数变量,数组类型,基于路由解析出来的,每一个对象里面都有context和params
|
|
@@ -86050,7 +86778,7 @@ var GlobalUtil = class {
|
|
|
86050
86778
|
* @memberof GlobalUtil
|
|
86051
86779
|
*/
|
|
86052
86780
|
getRouterParams() {
|
|
86053
|
-
throw new
|
|
86781
|
+
throw new RuntimeError75(ibiz.i18n.t("runtime.global.noImplementedRouting"));
|
|
86054
86782
|
}
|
|
86055
86783
|
/**
|
|
86056
86784
|
* @description 注册全局功能类扩展,用于替换预置能力
|
|
@@ -86065,7 +86793,7 @@ var GlobalUtil = class {
|
|
|
86065
86793
|
};
|
|
86066
86794
|
|
|
86067
86795
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
86068
|
-
import { RuntimeError as
|
|
86796
|
+
import { RuntimeError as RuntimeError76 } from "@ibiz-template/core";
|
|
86069
86797
|
var LogicExecutor = class {
|
|
86070
86798
|
/**
|
|
86071
86799
|
* @author lxm
|
|
@@ -86086,7 +86814,7 @@ var LogicExecutor = class {
|
|
|
86086
86814
|
*/
|
|
86087
86815
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
86088
86816
|
execute(_executeParams) {
|
|
86089
|
-
throw new
|
|
86817
|
+
throw new RuntimeError76(
|
|
86090
86818
|
ibiz.i18n.t("runtime.logicScheduler.executor.noImplementedMethod")
|
|
86091
86819
|
);
|
|
86092
86820
|
}
|
|
@@ -86556,7 +87284,7 @@ var LogicSchedulerCenter = class {
|
|
|
86556
87284
|
};
|
|
86557
87285
|
|
|
86558
87286
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
86559
|
-
import { RuntimeError as
|
|
87287
|
+
import { RuntimeError as RuntimeError77 } from "@ibiz-template/core";
|
|
86560
87288
|
var LogicTrigger = class {
|
|
86561
87289
|
/**
|
|
86562
87290
|
* @author lxm
|
|
@@ -86617,7 +87345,7 @@ var LogicTrigger = class {
|
|
|
86617
87345
|
if (this.executor) {
|
|
86618
87346
|
return this.executor.execute(executeParams);
|
|
86619
87347
|
}
|
|
86620
|
-
throw new
|
|
87348
|
+
throw new RuntimeError77(
|
|
86621
87349
|
ibiz.i18n.t("runtime.logicScheduler.trigger.noExecutorBound", {
|
|
86622
87350
|
id: this.logic.id
|
|
86623
87351
|
})
|
|
@@ -86638,12 +87366,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
86638
87366
|
};
|
|
86639
87367
|
|
|
86640
87368
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
86641
|
-
import { RuntimeError as
|
|
87369
|
+
import { RuntimeError as RuntimeError78 } from "@ibiz-template/core";
|
|
86642
87370
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
86643
87371
|
bindExecutor(executor) {
|
|
86644
87372
|
super.bindExecutor(executor);
|
|
86645
87373
|
if (this.executor.type !== "SCRIPT") {
|
|
86646
|
-
throw new
|
|
87374
|
+
throw new RuntimeError78(
|
|
86647
87375
|
ibiz.i18n.t("runtime.logicScheduler.trigger.triggerType")
|
|
86648
87376
|
);
|
|
86649
87377
|
}
|
|
@@ -86681,7 +87409,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
86681
87409
|
};
|
|
86682
87410
|
|
|
86683
87411
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
86684
|
-
import { RuntimeError as
|
|
87412
|
+
import { RuntimeError as RuntimeError79, RuntimeModelError as RuntimeModelError77 } from "@ibiz-template/core";
|
|
86685
87413
|
var TimerTrigger = class extends LogicTrigger {
|
|
86686
87414
|
constructor() {
|
|
86687
87415
|
super(...arguments);
|
|
@@ -86696,7 +87424,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
86696
87424
|
}
|
|
86697
87425
|
this.timer = setInterval(() => {
|
|
86698
87426
|
if (!this.scheduler.defaultParamsCb) {
|
|
86699
|
-
throw new
|
|
87427
|
+
throw new RuntimeError79(
|
|
86700
87428
|
ibiz.i18n.t("runtime.logicScheduler.trigger.parameterCallback")
|
|
86701
87429
|
);
|
|
86702
87430
|
}
|
|
@@ -86728,7 +87456,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
86728
87456
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
86729
87457
|
import {
|
|
86730
87458
|
ModelError as ModelError34,
|
|
86731
|
-
RuntimeError as
|
|
87459
|
+
RuntimeError as RuntimeError80,
|
|
86732
87460
|
RuntimeModelError as RuntimeModelError78
|
|
86733
87461
|
} from "@ibiz-template/core";
|
|
86734
87462
|
import { notNilEmpty as notNilEmpty11 } from "qx-util";
|
|
@@ -86766,7 +87494,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
86766
87494
|
const { context, params, ...rest } = parameters;
|
|
86767
87495
|
const { data, view } = parameters;
|
|
86768
87496
|
if (!(data == null ? void 0 : data[0])) {
|
|
86769
|
-
throw new
|
|
87497
|
+
throw new RuntimeError80(
|
|
86770
87498
|
ibiz.i18n.t("runtime.logicScheduler.executor.noActionableData")
|
|
86771
87499
|
);
|
|
86772
87500
|
}
|
|
@@ -86843,7 +87571,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
86843
87571
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
86844
87572
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
86845
87573
|
if (!findView) {
|
|
86846
|
-
throw new
|
|
87574
|
+
throw new RuntimeError80(
|
|
86847
87575
|
ibiz.i18n.t("runtime.logicScheduler.executor.editViews", {
|
|
86848
87576
|
formTypeValue
|
|
86849
87577
|
})
|
|
@@ -86985,7 +87713,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
86985
87713
|
}
|
|
86986
87714
|
const selectData = (_a3 = result.data) == null ? void 0 : _a3[0];
|
|
86987
87715
|
if (!selectData) {
|
|
86988
|
-
throw new
|
|
87716
|
+
throw new RuntimeError80(
|
|
86989
87717
|
ibiz.i18n.t("runtime.logicScheduler.executor.checkOne")
|
|
86990
87718
|
);
|
|
86991
87719
|
}
|
|
@@ -86997,7 +87725,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
86997
87725
|
}
|
|
86998
87726
|
);
|
|
86999
87727
|
if (!findView) {
|
|
87000
|
-
throw new
|
|
87728
|
+
throw new RuntimeError80(
|
|
87001
87729
|
ibiz.i18n.t("runtime.logicScheduler.executor.entitiesAssociated", {
|
|
87002
87730
|
indexType
|
|
87003
87731
|
})
|
|
@@ -87039,7 +87767,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
87039
87767
|
}
|
|
87040
87768
|
});
|
|
87041
87769
|
if (pickParentFieldName === void 0) {
|
|
87042
|
-
throw new
|
|
87770
|
+
throw new RuntimeError80(
|
|
87043
87771
|
ibiz.i18n.t("runtime.logicScheduler.executor.foreignKey", {
|
|
87044
87772
|
pickParentDeName
|
|
87045
87773
|
})
|
|
@@ -87977,6 +88705,10 @@ var en = {
|
|
|
87977
88705
|
noFoundCtrl: "The specified identifier [{ctrlId}] component was not found",
|
|
87978
88706
|
firstRecord: "The current data is already the first record of data",
|
|
87979
88707
|
lastRecord: "The current data is already the last record of data"
|
|
88708
|
+
},
|
|
88709
|
+
jsonUtil: {
|
|
88710
|
+
parseSuccess: "The JSON data was successfully extracted",
|
|
88711
|
+
parseError: "No valid JSON or JSONArray content was found"
|
|
87980
88712
|
}
|
|
87981
88713
|
},
|
|
87982
88714
|
deAction: {
|
|
@@ -88634,6 +89366,10 @@ var zhCn = {
|
|
|
88634
89366
|
noFoundCtrl: "\u672A\u627E\u5230\u6307\u5B9A\u6807\u8BC6[{ctrlId}]\u90E8\u4EF6",
|
|
88635
89367
|
firstRecord: "\u5F53\u524D\u6570\u636E\u5DF2\u7ECF\u662F\u7B2C\u4E00\u6761\u6570\u636E\u4E86",
|
|
88636
89368
|
lastRecord: "\u5F53\u524D\u6570\u636E\u5DF2\u7ECF\u662F\u6700\u540E\u4E00\u6761\u6570\u636E\u4E86"
|
|
89369
|
+
},
|
|
89370
|
+
jsonUtil: {
|
|
89371
|
+
parseSuccess: "\u6210\u529F\u63D0\u53D6JSON\u6570\u636E",
|
|
89372
|
+
parseError: "\u672A\u627E\u5230\u6709\u6548\u7684JSON\u6216JSONArray\u5185\u5BB9"
|
|
88637
89373
|
}
|
|
88638
89374
|
},
|
|
88639
89375
|
deAction: {
|
|
@@ -88643,6 +89379,7 @@ var zhCn = {
|
|
|
88643
89379
|
};
|
|
88644
89380
|
export {
|
|
88645
89381
|
AC_ITEM_PROVIDER_PREFIX,
|
|
89382
|
+
AIUtilService,
|
|
88646
89383
|
APPMENUITEM_PROVIDER_PREFIX,
|
|
88647
89384
|
APP_COUNTER_PROVIDER_PREFIX,
|
|
88648
89385
|
ASYNC_ACTION_PROVIDER_PREFIX,
|
|
@@ -88798,6 +89535,7 @@ export {
|
|
|
88798
89535
|
InternalMessageService,
|
|
88799
89536
|
ItemsValueOPs,
|
|
88800
89537
|
JsonSchemaUtil,
|
|
89538
|
+
JsonUtil,
|
|
88801
89539
|
KanbanController,
|
|
88802
89540
|
KanbanService,
|
|
88803
89541
|
LayoutPanelUtil,
|