@ibiz-template/runtime 0.7.41-alpha.143 → 0.7.41-alpha.145
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 +41 -17
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +1 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +9 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +0 -1
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +0 -1
- package/out/locale/zh-CN/index.d.ts +0 -1
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +0 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.js +24 -6
- package/out/service/service/util/ai-util.service.d.ts.map +1 -1
- package/out/service/service/util/ai-util.service.js +8 -2
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +9 -1
- package/package.json +2 -2
- package/src/config/global-config.ts +1 -0
- package/src/interface/api/common/global-config/i-api-global-common-config.ts +10 -0
- package/src/locale/en/index.ts +0 -1
- package/src/locale/zh-CN/index.ts +0 -1
- package/src/logic-scheduler/executor/app-ui-logic-executor.ts +27 -12
- package/src/service/service/util/ai-util.service.ts +8 -2
- package/src/ui-action/provider/ui-action-provider-base.ts +9 -1
package/dist/index.esm.js
CHANGED
|
@@ -20017,7 +20017,8 @@ var GlobalConfig = class {
|
|
|
20017
20017
|
aiTopicStorageMode: "DEFAULT",
|
|
20018
20018
|
aiInputPlaceholder: "",
|
|
20019
20019
|
aiMinimizeContainerId: void 0,
|
|
20020
|
-
showScrollTo: "none"
|
|
20020
|
+
showScrollTo: "none",
|
|
20021
|
+
aiChatMessagePageSize: 100
|
|
20021
20022
|
};
|
|
20022
20023
|
// 全局分页流布局配置
|
|
20023
20024
|
this.drtab = {
|
|
@@ -34969,7 +34970,15 @@ var UIActionProviderBase = class {
|
|
|
34969
34970
|
Object.assign(result, _result);
|
|
34970
34971
|
if (action.afterCode) {
|
|
34971
34972
|
await ScriptFactory.asyncExecScriptFn(
|
|
34972
|
-
{
|
|
34973
|
+
{
|
|
34974
|
+
context,
|
|
34975
|
+
params,
|
|
34976
|
+
data: result,
|
|
34977
|
+
retdata: result.data || {},
|
|
34978
|
+
view,
|
|
34979
|
+
ctrl,
|
|
34980
|
+
args
|
|
34981
|
+
},
|
|
34973
34982
|
action.afterCode
|
|
34974
34983
|
);
|
|
34975
34984
|
}
|
|
@@ -76050,17 +76059,22 @@ var AIUtilService = class {
|
|
|
76050
76059
|
...params
|
|
76051
76060
|
}
|
|
76052
76061
|
);
|
|
76053
|
-
|
|
76062
|
+
let result = this.handleUserResponse(
|
|
76054
76063
|
response,
|
|
76055
76064
|
"messagemodelMapping"
|
|
76056
76065
|
);
|
|
76066
|
+
if (result && result.length > 0) {
|
|
76067
|
+
result = result.sort((a, b) => {
|
|
76068
|
+
return a.sequence - b.sequence;
|
|
76069
|
+
});
|
|
76070
|
+
}
|
|
76057
76071
|
let total = response.headers["x-total"];
|
|
76058
76072
|
if (total) {
|
|
76059
76073
|
total = Number(total);
|
|
76060
76074
|
} else {
|
|
76061
76075
|
total = result.length;
|
|
76062
76076
|
}
|
|
76063
|
-
return { total, data: result
|
|
76077
|
+
return { total, data: result };
|
|
76064
76078
|
}
|
|
76065
76079
|
/**
|
|
76066
76080
|
* 删除消息(多个以逗号分割)
|
|
@@ -91645,11 +91659,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
91645
91659
|
};
|
|
91646
91660
|
|
|
91647
91661
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
91648
|
-
import {
|
|
91649
|
-
ModelError as ModelError32,
|
|
91650
|
-
RuntimeError as RuntimeError85,
|
|
91651
|
-
RuntimeModelError as RuntimeModelError73
|
|
91652
|
-
} from "@ibiz-template/core";
|
|
91662
|
+
import { RuntimeError as RuntimeError85, RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
|
|
91653
91663
|
import { notNilEmpty as notNilEmpty11 } from "qx-util";
|
|
91654
91664
|
var AppUILogicExecutor = class extends LogicExecutor {
|
|
91655
91665
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -91787,12 +91797,32 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
91787
91797
|
const { data, view } = parameters;
|
|
91788
91798
|
const { enableWizardAdd, enableBatchAdd, batchAddOnly, newDataAppView } = appUILogic;
|
|
91789
91799
|
let newViewRef;
|
|
91800
|
+
let isBatchAdd = false;
|
|
91790
91801
|
if (enableWizardAdd) {
|
|
91791
91802
|
newViewRef = await this.getWizardNewViewRef(appUILogic, parameters);
|
|
91792
91803
|
if (!newViewRef) {
|
|
91793
91804
|
return { ok: false };
|
|
91794
91805
|
}
|
|
91795
91806
|
} else if (enableBatchAdd) {
|
|
91807
|
+
const parentDeName = calcDeCodeNameById(
|
|
91808
|
+
view.parentView.model.appDataEntityId
|
|
91809
|
+
);
|
|
91810
|
+
const batchViews = appUILogic.batchAddAppViews;
|
|
91811
|
+
newViewRef = batchViews == null ? void 0 : batchViews.find((viewRef) => {
|
|
91812
|
+
return viewRef.refMode.toLowerCase() !== parentDeName;
|
|
91813
|
+
});
|
|
91814
|
+
if (newViewRef) {
|
|
91815
|
+
isBatchAdd = true;
|
|
91816
|
+
} else {
|
|
91817
|
+
newViewRef = newDataAppView;
|
|
91818
|
+
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
91819
|
+
throw new RuntimeModelError73(
|
|
91820
|
+
appUILogic,
|
|
91821
|
+
ibiz.i18n.t("runtime.logicScheduler.executor.newdataViewLogic")
|
|
91822
|
+
);
|
|
91823
|
+
}
|
|
91824
|
+
}
|
|
91825
|
+
} else if (batchAddOnly) {
|
|
91796
91826
|
const parentDeName = calcDeCodeNameById(
|
|
91797
91827
|
view.parentView.model.appDataEntityId
|
|
91798
91828
|
);
|
|
@@ -91806,11 +91836,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
91806
91836
|
ibiz.i18n.t("runtime.logicScheduler.executor.selectionView")
|
|
91807
91837
|
);
|
|
91808
91838
|
}
|
|
91809
|
-
|
|
91810
|
-
throw new ModelError32(
|
|
91811
|
-
appUILogic,
|
|
91812
|
-
ibiz.i18n.t("runtime.logicScheduler.executor.noSupportedBatchAddOnly")
|
|
91813
|
-
);
|
|
91839
|
+
isBatchAdd = true;
|
|
91814
91840
|
} else {
|
|
91815
91841
|
newViewRef = newDataAppView;
|
|
91816
91842
|
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
@@ -91859,7 +91885,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
91859
91885
|
tempParams,
|
|
91860
91886
|
{ ctx: view.getCtx(), ...rest, openMode: newViewRef.openMode }
|
|
91861
91887
|
);
|
|
91862
|
-
if (
|
|
91888
|
+
if (isBatchAdd && result.data) {
|
|
91863
91889
|
await this.doBatchAdd(
|
|
91864
91890
|
appUILogic,
|
|
91865
91891
|
result.data,
|
|
@@ -92770,7 +92796,6 @@ var en = {
|
|
|
92770
92796
|
entityAttributeValues: "Data Source No Form Type Applied Entity Attribute Values",
|
|
92771
92797
|
editViews: "No edit views were found for the entity associated with the form type {formTypeValue}.",
|
|
92772
92798
|
selectionView: "Selection view that needs to be opened for batch add was not found",
|
|
92773
|
-
noSupportedBatchAddOnly: "batchAddOnly is not supported yet.",
|
|
92774
92799
|
newdataViewLogic: "The newdata view logic is not configured to default to a new data view",
|
|
92775
92800
|
indexEntity: "Missing Default Index Entity Selection View",
|
|
92776
92801
|
checkOne: "Please check one piece of data",
|
|
@@ -93484,7 +93509,6 @@ var zhCn = {
|
|
|
93484
93509
|
entityAttributeValues: "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C",
|
|
93485
93510
|
editViews: "\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B{formTypeValue}\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE",
|
|
93486
93511
|
selectionView: "\u6CA1\u6709\u627E\u5230\u6279\u6DFB\u52A0\u9700\u8981\u6253\u5F00\u7684\u9009\u62E9\u89C6\u56FE",
|
|
93487
|
-
noSupportedBatchAddOnly: "batchAddOnly\u6682\u672A\u652F\u6301",
|
|
93488
93512
|
newdataViewLogic: "newdata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u65B0\u5EFA\u6570\u636E\u89C6\u56FE",
|
|
93489
93513
|
indexEntity: "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE",
|
|
93490
93514
|
checkOne: "\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E",
|