@ibiz-template/vue3-components 0.7.41-alpha.140 → 0.7.41-alpha.141
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-FaVj1BJA.js → index-BGZZczL5.js} +4 -4
- package/dist/{index.es-CvL4i5Jr.js → index.es-BVWsBTYh.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-CwP3vIhD.js → wang-editor-DB9S0ti1.js} +1 -1
- package/dist/{xlsx-util-BTk7f0UX.js → xlsx-util-NNLRvbBg.js} +1 -1
- package/es/util/ai-chat-util/ai-chat-util.mjs +13 -0
- package/lib/util/ai-chat-util/ai-chat-util.cjs +13 -0
- package/package.json +5 -5
- package/src/util/ai-chat-util/ai-chat-util.ts +19 -0
|
@@ -192,6 +192,13 @@ class AIChatUtil {
|
|
|
192
192
|
} else {
|
|
193
193
|
chatOptions.placeholder = ibiz.config.common.aiInputPlaceholder;
|
|
194
194
|
}
|
|
195
|
+
if (editorParams.srfaichatmessagepagesize) {
|
|
196
|
+
chatOptions.chatMessagePageSize = Number(
|
|
197
|
+
editorParams.srfaichatmessagepagesize
|
|
198
|
+
);
|
|
199
|
+
} else {
|
|
200
|
+
chatOptions.chatMessagePageSize = ibiz.config.common.aiChatMessagePageSize;
|
|
201
|
+
}
|
|
195
202
|
chatOptions.fetchAgentList = (args2 = {}) => {
|
|
196
203
|
const { query, agentid } = args2;
|
|
197
204
|
return this.getAIAgentList(
|
|
@@ -833,6 +840,12 @@ class AIChatUtil {
|
|
|
833
840
|
} else {
|
|
834
841
|
chatOptions.placeholder = ibiz.config.common.aiInputPlaceholder;
|
|
835
842
|
}
|
|
843
|
+
if (params.hasOwnProperty("srfaichatmessagepagesize")) {
|
|
844
|
+
chatOptions.chatMessagePageSize = Number(params.srfaichatmessagepagesize);
|
|
845
|
+
delete params.srfaichatmessagepagesize;
|
|
846
|
+
} else {
|
|
847
|
+
chatOptions.chatMessagePageSize = ibiz.config.common.aiChatMessagePageSize;
|
|
848
|
+
}
|
|
836
849
|
chatOptions.fetchAgentList = (args2 = {}) => {
|
|
837
850
|
const { query, agentid } = args2;
|
|
838
851
|
return this.getAIAgentList(context, {
|
|
@@ -194,6 +194,13 @@ class AIChatUtil {
|
|
|
194
194
|
} else {
|
|
195
195
|
chatOptions.placeholder = ibiz.config.common.aiInputPlaceholder;
|
|
196
196
|
}
|
|
197
|
+
if (editorParams.srfaichatmessagepagesize) {
|
|
198
|
+
chatOptions.chatMessagePageSize = Number(
|
|
199
|
+
editorParams.srfaichatmessagepagesize
|
|
200
|
+
);
|
|
201
|
+
} else {
|
|
202
|
+
chatOptions.chatMessagePageSize = ibiz.config.common.aiChatMessagePageSize;
|
|
203
|
+
}
|
|
197
204
|
chatOptions.fetchAgentList = (args2 = {}) => {
|
|
198
205
|
const { query, agentid } = args2;
|
|
199
206
|
return this.getAIAgentList(
|
|
@@ -835,6 +842,12 @@ class AIChatUtil {
|
|
|
835
842
|
} else {
|
|
836
843
|
chatOptions.placeholder = ibiz.config.common.aiInputPlaceholder;
|
|
837
844
|
}
|
|
845
|
+
if (params.hasOwnProperty("srfaichatmessagepagesize")) {
|
|
846
|
+
chatOptions.chatMessagePageSize = Number(params.srfaichatmessagepagesize);
|
|
847
|
+
delete params.srfaichatmessagepagesize;
|
|
848
|
+
} else {
|
|
849
|
+
chatOptions.chatMessagePageSize = ibiz.config.common.aiChatMessagePageSize;
|
|
850
|
+
}
|
|
838
851
|
chatOptions.fetchAgentList = (args2 = {}) => {
|
|
839
852
|
const { query, agentid } = args2;
|
|
840
853
|
return this.getAIAgentList(context, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.141",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
33
33
|
"@floating-ui/dom": "^1.5.3",
|
|
34
|
-
"@ibiz-template-plugin/ai-chat": "^0.0.
|
|
34
|
+
"@ibiz-template-plugin/ai-chat": "^0.0.108",
|
|
35
35
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.468",
|
|
36
36
|
"@ibiz-template-plugin/bi-report": "0.0.32",
|
|
37
37
|
"@ibiz-template-plugin/data-view": "0.0.8",
|
|
38
38
|
"@ibiz-template/core": "0.7.41-alpha.140",
|
|
39
39
|
"@ibiz-template/devtool": "0.0.17",
|
|
40
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
41
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
40
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.145",
|
|
41
|
+
"@ibiz-template/runtime": "0.7.41-alpha.145",
|
|
42
42
|
"@ibiz-template/theme": "0.7.39",
|
|
43
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
43
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.145",
|
|
44
44
|
"@ibiz-template/web-theme": "3.16.0",
|
|
45
45
|
"@ibiz/model-core": "^0.1.89",
|
|
46
46
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
@@ -301,6 +301,16 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
301
301
|
chatOptions.placeholder = ibiz.config.common.aiInputPlaceholder;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
+
// AI会话消息分页数量
|
|
305
|
+
if (editorParams.srfaichatmessagepagesize) {
|
|
306
|
+
chatOptions.chatMessagePageSize = Number(
|
|
307
|
+
editorParams.srfaichatmessagepagesize,
|
|
308
|
+
);
|
|
309
|
+
} else {
|
|
310
|
+
chatOptions.chatMessagePageSize =
|
|
311
|
+
ibiz.config.common.aiChatMessagePageSize;
|
|
312
|
+
}
|
|
313
|
+
|
|
304
314
|
// 智能体选项(由内部获取,优化打开速度)
|
|
305
315
|
chatOptions.fetchAgentList = (args: IParams = {}) => {
|
|
306
316
|
const { query, agentid } = args;
|
|
@@ -1104,6 +1114,15 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1104
1114
|
chatOptions.placeholder = ibiz.config.common.aiInputPlaceholder;
|
|
1105
1115
|
}
|
|
1106
1116
|
|
|
1117
|
+
// AI会话消息分页数量
|
|
1118
|
+
if (params.hasOwnProperty('srfaichatmessagepagesize')) {
|
|
1119
|
+
chatOptions.chatMessagePageSize = Number(params.srfaichatmessagepagesize);
|
|
1120
|
+
delete params.srfaichatmessagepagesize;
|
|
1121
|
+
} else {
|
|
1122
|
+
chatOptions.chatMessagePageSize =
|
|
1123
|
+
ibiz.config.common.aiChatMessagePageSize;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1107
1126
|
// 智能体选项(由内部获取,优化打开速度)
|
|
1108
1127
|
chatOptions.fetchAgentList = (args: IParams = {}) => {
|
|
1109
1128
|
const { query, agentid } = args;
|