@ibiz-template/vue3-components 0.7.41-alpha.155 → 0.7.41-alpha.157
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-CR7U-PBa.js → index-DdtHzmUN.js} +26 -26
- package/dist/{index.es-Bi7iirdS.js → index.es-cLtMr15w.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-JVvrMHPf.js → wang-editor-DFNtwyjK.js} +1 -1
- package/dist/{xlsx-util-DVsxoQbL.js → xlsx-util-Ciny_N7Q.js} +1 -1
- package/es/util/ai-chat-util/ai-chat-util.mjs +25 -4
- package/es/util/notification-util/upload-manager/upload-manager.css +1 -1
- package/es/util/notification-util/upload-manager/upload-manager.mjs +2 -0
- package/lib/util/ai-chat-util/ai-chat-util.cjs +25 -4
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +2 -0
- package/lib/util/notification-util/upload-manager/upload-manager.css +1 -1
- package/package.json +6 -6
- package/src/util/ai-chat-util/ai-chat-util.ts +33 -2
- package/src/util/notification-util/upload-manager/upload-manager.scss +29 -13
- package/src/util/notification-util/upload-manager/upload-manager.tsx +5 -1
|
@@ -100,6 +100,14 @@ class AIChatUtil {
|
|
|
100
100
|
if (editorParams.topicstoragemode) {
|
|
101
101
|
topicOptions.storageMode = editorParams.topicstoragemode;
|
|
102
102
|
}
|
|
103
|
+
topicOptions.enableBasicGroup = ibiz.config.common.aiEnableBasicGroup;
|
|
104
|
+
if (editorParams.enablebasicgroup) {
|
|
105
|
+
topicOptions.enableBasicGroup = editorParams.enablebasicgroup === "true";
|
|
106
|
+
}
|
|
107
|
+
topicOptions.newTopicParamMode = ibiz.config.common.aiNewTopicParamMode;
|
|
108
|
+
if (editorParams.newtopicparammode) {
|
|
109
|
+
topicOptions.newTopicParamMode = editorParams.newtopicparammode;
|
|
110
|
+
}
|
|
103
111
|
topicOptions.beforeDelete = async (title, description) => {
|
|
104
112
|
const result = await ibiz.confirm.warning({
|
|
105
113
|
title,
|
|
@@ -118,7 +126,8 @@ class AIChatUtil {
|
|
|
118
126
|
};
|
|
119
127
|
const chatOptions = {
|
|
120
128
|
locale: ibiz.i18n.getLang(),
|
|
121
|
-
enableAIProject: editorParams.srfenableaiprojectselect ? editorParams.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect
|
|
129
|
+
enableAIProject: editorParams.srfenableaiprojectselect ? editorParams.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect,
|
|
130
|
+
projectSelectPlaceholder: editorParams.srfprojectselectplaceholder || ibiz.config.common.aiProjectSelectPlaceholder
|
|
122
131
|
};
|
|
123
132
|
if (editorParams.srfaiappendcurdata) {
|
|
124
133
|
chatOptions.appendCurData = editorParams.srfaiappendcurdata === "true" ? data : void 0;
|
|
@@ -893,6 +902,16 @@ class AIChatUtil {
|
|
|
893
902
|
} else {
|
|
894
903
|
topicOptions.storageMode = ibiz.config.common.aiTopicStorageMode;
|
|
895
904
|
}
|
|
905
|
+
topicOptions.enableBasicGroup = ibiz.config.common.aiEnableBasicGroup;
|
|
906
|
+
if (params.hasOwnProperty("enablebasicgroup")) {
|
|
907
|
+
topicOptions.enableBasicGroup = params.enablebasicgroup === "true";
|
|
908
|
+
delete params.enablebasicgroup;
|
|
909
|
+
}
|
|
910
|
+
topicOptions.newTopicParamMode = ibiz.config.common.aiNewTopicParamMode;
|
|
911
|
+
if (params.hasOwnProperty("newtopicparammode")) {
|
|
912
|
+
topicOptions.newTopicParamMode = params.newtopicparammode;
|
|
913
|
+
delete params.newtopicparammode;
|
|
914
|
+
}
|
|
896
915
|
topicOptions.beforeDelete = async (title, description) => {
|
|
897
916
|
const result = await ibiz.confirm.warning({
|
|
898
917
|
title,
|
|
@@ -911,11 +930,13 @@ class AIChatUtil {
|
|
|
911
930
|
};
|
|
912
931
|
const chatOptions = {
|
|
913
932
|
locale: ibiz.i18n.getLang(),
|
|
914
|
-
enableAIProject: params.srfenableaiprojectselect ? params.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect
|
|
933
|
+
enableAIProject: params.srfenableaiprojectselect ? params.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect,
|
|
934
|
+
projectSelectPlaceholder: params.srfprojectselectplaceholder || ibiz.config.common.aiProjectSelectPlaceholder
|
|
915
935
|
};
|
|
916
|
-
if (params.hasOwnProperty("srfenableaiprojectselect"))
|
|
936
|
+
if (params.hasOwnProperty("srfenableaiprojectselect"))
|
|
917
937
|
delete params.srfenableaiprojectselect;
|
|
918
|
-
|
|
938
|
+
if (params.hasOwnProperty("srfprojectselectplaceholder"))
|
|
939
|
+
delete params.srfprojectselectplaceholder;
|
|
919
940
|
if (context.srfaiappendcurdata === "true") {
|
|
920
941
|
chatOptions.appendCurData = data;
|
|
921
942
|
} else if (params.hasOwnProperty("srfaiappendcurdata")) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-upload-manager-notic{--el-notification-width:400px;--el-notification-padding:0;--el-notification-group-margin-left:0;--el-notification-group-margin-right:0}.ibiz-upload-manager-notic .el-notification__group{width:100%}.ibiz-upload-manager .icon{font-size:20px}.ibiz-upload-manager .icon.success{color:var(--ibiz-color-success-hover)}.ibiz-upload-manager .icon.danger{color:var(--ibiz-color-danger)}.ibiz-upload-manager__header{display:flex;
|
|
1
|
+
.ibiz-upload-manager-notic{--el-notification-width:400px;--el-notification-padding:0;--el-notification-group-margin-left:0;--el-notification-group-margin-right:0}.ibiz-upload-manager-notic .el-notification__group{width:100%}.ibiz-upload-manager .icon{font-size:20px}.ibiz-upload-manager .icon.success{color:var(--ibiz-color-success-hover)}.ibiz-upload-manager .icon.danger{color:var(--ibiz-color-danger)}.ibiz-upload-manager__header{display:flex;align-items:center;padding:var(--ibiz-spacing-base);padding-left:var(--ibiz-spacing-loose);line-height:30px}.ibiz-upload-manager__header--loading{display:flex;align-items:center}.ibiz-upload-manager__header--loading .el-progress-circle{--el-fill-color-light:var(--ibiz-color-disabled-bg);width:30px!important;height:30px!important}.ibiz-upload-manager__header--loading .icon{font-size:30px}.ibiz-upload-manager__header--title{display:flex;flex-grow:1;align-items:center;margin-left:12px}.ibiz-upload-manager__header--title .caption{font-size:var(--ibiz-font-size-header-6)}.ibiz-upload-manager__header--title .progress{margin-left:var(--ibiz-spacing-tight);color:var(--ibiz-color-disabled-text)}.ibiz-upload-manager__header--actions{display:flex;align-items:center;color:var(--ibiz-color-disabled-text)}.ibiz-upload-manager__header--actions .icon{margin-left:var(--ibiz-spacing-extra-tight);font-size:24px;cursor:pointer}.ibiz-upload-manager__header--actions .icon.down-up{font-size:20px}.ibiz-upload-manager__header--actions .icon:hover{color:var(--ibiz-color-primary-hover)}.ibiz-upload-manager__content{max-height:240px;padding:0 var(--ibiz-spacing-base) var(--ibiz-spacing-base) var(--ibiz-spacing-loose);overflow-y:auto}.ibiz-upload-manager__file-item{position:relative;display:flex;align-items:center;height:48px;padding:var(--ibiz-spacing-base-tight) 0}.ibiz-upload-manager__file-item--icon{display:flex;align-items:center}.ibiz-upload-manager__file-item--icon svg{width:20px;height:20px}.ibiz-upload-manager__file-item--name{flex-grow:1;margin:0 var(--ibiz-spacing-base-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-upload-manager__file-item--status{display:flex;align-items:center}.ibiz-upload-manager__file-item--status .el-progress{margin-left:var(--ibiz-spacing-loose)}.ibiz-upload-manager__file-item--status .el-progress-circle{--el-fill-color-light:var(--ibiz-color-disabled-bg);width:20px!important;height:20px!important}.ibiz-upload-manager__file-item--status .el-progress__text{left:-45px!important;font-size:var(--ibiz-font-size-small)!important}.ibiz-upload-manager__file-item--status-text{position:absolute;bottom:-6px;left:32px;font-size:var(--ibiz-font-size-small);color:var(--ibiz-color-danger)}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createVNode, resolveComponent, ref, computed, watch, onMounted } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { showTitle } from '@ibiz-template/core';
|
|
3
4
|
import { getFileSvgByType } from './file-type.mjs';
|
|
4
5
|
import './upload-manager.css';
|
|
5
6
|
|
|
@@ -132,6 +133,7 @@ const IBizUploadManager = /* @__PURE__ */ defineComponent({
|
|
|
132
133
|
}, [createVNode("div", {
|
|
133
134
|
"class": this.ns.em("file-item", "icon")
|
|
134
135
|
}, [getFileSvgByType(item.file.type)]), createVNode("div", {
|
|
136
|
+
"title": showTitle(item.file.name),
|
|
135
137
|
"class": this.ns.em("file-item", "name")
|
|
136
138
|
}, [item.file.name]), createVNode("div", {
|
|
137
139
|
"class": this.ns.em("file-item", "status")
|
|
@@ -102,6 +102,14 @@ class AIChatUtil {
|
|
|
102
102
|
if (editorParams.topicstoragemode) {
|
|
103
103
|
topicOptions.storageMode = editorParams.topicstoragemode;
|
|
104
104
|
}
|
|
105
|
+
topicOptions.enableBasicGroup = ibiz.config.common.aiEnableBasicGroup;
|
|
106
|
+
if (editorParams.enablebasicgroup) {
|
|
107
|
+
topicOptions.enableBasicGroup = editorParams.enablebasicgroup === "true";
|
|
108
|
+
}
|
|
109
|
+
topicOptions.newTopicParamMode = ibiz.config.common.aiNewTopicParamMode;
|
|
110
|
+
if (editorParams.newtopicparammode) {
|
|
111
|
+
topicOptions.newTopicParamMode = editorParams.newtopicparammode;
|
|
112
|
+
}
|
|
105
113
|
topicOptions.beforeDelete = async (title, description) => {
|
|
106
114
|
const result = await ibiz.confirm.warning({
|
|
107
115
|
title,
|
|
@@ -120,7 +128,8 @@ class AIChatUtil {
|
|
|
120
128
|
};
|
|
121
129
|
const chatOptions = {
|
|
122
130
|
locale: ibiz.i18n.getLang(),
|
|
123
|
-
enableAIProject: editorParams.srfenableaiprojectselect ? editorParams.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect
|
|
131
|
+
enableAIProject: editorParams.srfenableaiprojectselect ? editorParams.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect,
|
|
132
|
+
projectSelectPlaceholder: editorParams.srfprojectselectplaceholder || ibiz.config.common.aiProjectSelectPlaceholder
|
|
124
133
|
};
|
|
125
134
|
if (editorParams.srfaiappendcurdata) {
|
|
126
135
|
chatOptions.appendCurData = editorParams.srfaiappendcurdata === "true" ? data : void 0;
|
|
@@ -895,6 +904,16 @@ class AIChatUtil {
|
|
|
895
904
|
} else {
|
|
896
905
|
topicOptions.storageMode = ibiz.config.common.aiTopicStorageMode;
|
|
897
906
|
}
|
|
907
|
+
topicOptions.enableBasicGroup = ibiz.config.common.aiEnableBasicGroup;
|
|
908
|
+
if (params.hasOwnProperty("enablebasicgroup")) {
|
|
909
|
+
topicOptions.enableBasicGroup = params.enablebasicgroup === "true";
|
|
910
|
+
delete params.enablebasicgroup;
|
|
911
|
+
}
|
|
912
|
+
topicOptions.newTopicParamMode = ibiz.config.common.aiNewTopicParamMode;
|
|
913
|
+
if (params.hasOwnProperty("newtopicparammode")) {
|
|
914
|
+
topicOptions.newTopicParamMode = params.newtopicparammode;
|
|
915
|
+
delete params.newtopicparammode;
|
|
916
|
+
}
|
|
898
917
|
topicOptions.beforeDelete = async (title, description) => {
|
|
899
918
|
const result = await ibiz.confirm.warning({
|
|
900
919
|
title,
|
|
@@ -913,11 +932,13 @@ class AIChatUtil {
|
|
|
913
932
|
};
|
|
914
933
|
const chatOptions = {
|
|
915
934
|
locale: ibiz.i18n.getLang(),
|
|
916
|
-
enableAIProject: params.srfenableaiprojectselect ? params.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect
|
|
935
|
+
enableAIProject: params.srfenableaiprojectselect ? params.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect,
|
|
936
|
+
projectSelectPlaceholder: params.srfprojectselectplaceholder || ibiz.config.common.aiProjectSelectPlaceholder
|
|
917
937
|
};
|
|
918
|
-
if (params.hasOwnProperty("srfenableaiprojectselect"))
|
|
938
|
+
if (params.hasOwnProperty("srfenableaiprojectselect"))
|
|
919
939
|
delete params.srfenableaiprojectselect;
|
|
920
|
-
|
|
940
|
+
if (params.hasOwnProperty("srfprojectselectplaceholder"))
|
|
941
|
+
delete params.srfprojectselectplaceholder;
|
|
921
942
|
if (context.srfaiappendcurdata === "true") {
|
|
922
943
|
chatOptions.appendCurData = data;
|
|
923
944
|
} else if (params.hasOwnProperty("srfaiappendcurdata")) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var core = require('@ibiz-template/core');
|
|
5
6
|
var fileType = require('./file-type.cjs');
|
|
6
7
|
require('./upload-manager.css');
|
|
7
8
|
|
|
@@ -134,6 +135,7 @@ const IBizUploadManager = /* @__PURE__ */ vue.defineComponent({
|
|
|
134
135
|
}, [vue.createVNode("div", {
|
|
135
136
|
"class": this.ns.em("file-item", "icon")
|
|
136
137
|
}, [fileType.getFileSvgByType(item.file.type)]), vue.createVNode("div", {
|
|
138
|
+
"title": core.showTitle(item.file.name),
|
|
137
139
|
"class": this.ns.em("file-item", "name")
|
|
138
140
|
}, [item.file.name]), vue.createVNode("div", {
|
|
139
141
|
"class": this.ns.em("file-item", "status")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-upload-manager-notic{--el-notification-width:400px;--el-notification-padding:0;--el-notification-group-margin-left:0;--el-notification-group-margin-right:0}.ibiz-upload-manager-notic .el-notification__group{width:100%}.ibiz-upload-manager .icon{font-size:20px}.ibiz-upload-manager .icon.success{color:var(--ibiz-color-success-hover)}.ibiz-upload-manager .icon.danger{color:var(--ibiz-color-danger)}.ibiz-upload-manager__header{display:flex;
|
|
1
|
+
.ibiz-upload-manager-notic{--el-notification-width:400px;--el-notification-padding:0;--el-notification-group-margin-left:0;--el-notification-group-margin-right:0}.ibiz-upload-manager-notic .el-notification__group{width:100%}.ibiz-upload-manager .icon{font-size:20px}.ibiz-upload-manager .icon.success{color:var(--ibiz-color-success-hover)}.ibiz-upload-manager .icon.danger{color:var(--ibiz-color-danger)}.ibiz-upload-manager__header{display:flex;align-items:center;padding:var(--ibiz-spacing-base);padding-left:var(--ibiz-spacing-loose);line-height:30px}.ibiz-upload-manager__header--loading{display:flex;align-items:center}.ibiz-upload-manager__header--loading .el-progress-circle{--el-fill-color-light:var(--ibiz-color-disabled-bg);width:30px!important;height:30px!important}.ibiz-upload-manager__header--loading .icon{font-size:30px}.ibiz-upload-manager__header--title{display:flex;flex-grow:1;align-items:center;margin-left:12px}.ibiz-upload-manager__header--title .caption{font-size:var(--ibiz-font-size-header-6)}.ibiz-upload-manager__header--title .progress{margin-left:var(--ibiz-spacing-tight);color:var(--ibiz-color-disabled-text)}.ibiz-upload-manager__header--actions{display:flex;align-items:center;color:var(--ibiz-color-disabled-text)}.ibiz-upload-manager__header--actions .icon{margin-left:var(--ibiz-spacing-extra-tight);font-size:24px;cursor:pointer}.ibiz-upload-manager__header--actions .icon.down-up{font-size:20px}.ibiz-upload-manager__header--actions .icon:hover{color:var(--ibiz-color-primary-hover)}.ibiz-upload-manager__content{max-height:240px;padding:0 var(--ibiz-spacing-base) var(--ibiz-spacing-base) var(--ibiz-spacing-loose);overflow-y:auto}.ibiz-upload-manager__file-item{position:relative;display:flex;align-items:center;height:48px;padding:var(--ibiz-spacing-base-tight) 0}.ibiz-upload-manager__file-item--icon{display:flex;align-items:center}.ibiz-upload-manager__file-item--icon svg{width:20px;height:20px}.ibiz-upload-manager__file-item--name{flex-grow:1;margin:0 var(--ibiz-spacing-base-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-upload-manager__file-item--status{display:flex;align-items:center}.ibiz-upload-manager__file-item--status .el-progress{margin-left:var(--ibiz-spacing-loose)}.ibiz-upload-manager__file-item--status .el-progress-circle{--el-fill-color-light:var(--ibiz-color-disabled-bg);width:20px!important;height:20px!important}.ibiz-upload-manager__file-item--status .el-progress__text{left:-45px!important;font-size:var(--ibiz-font-size-small)!important}.ibiz-upload-manager__file-item--status-text{position:absolute;bottom:-6px;left:32px;font-size:var(--ibiz-font-size-small);color:var(--ibiz-color-danger)}
|
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.157",
|
|
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.122",
|
|
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.152",
|
|
39
|
-
"@ibiz-template/devtool": "0.0.
|
|
40
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
41
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
39
|
+
"@ibiz-template/devtool": "0.0.18",
|
|
40
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.155",
|
|
41
|
+
"@ibiz-template/runtime": "0.7.41-alpha.155",
|
|
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.155",
|
|
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",
|
|
@@ -169,6 +169,17 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
169
169
|
if (editorParams.topicstoragemode) {
|
|
170
170
|
topicOptions.storageMode = editorParams.topicstoragemode;
|
|
171
171
|
}
|
|
172
|
+
// 编辑器参数enablebasicgroup,AI聊天框工作模式为默认模式时,是否启用基础分组,默认值为true,显示分组会话树,反之,显示会话列表
|
|
173
|
+
topicOptions.enableBasicGroup = ibiz.config.common.aiEnableBasicGroup;
|
|
174
|
+
if (editorParams.enablebasicgroup) {
|
|
175
|
+
topicOptions.enableBasicGroup = editorParams.enablebasicgroup === 'true';
|
|
176
|
+
}
|
|
177
|
+
// 编辑器参数newtopicparammode,AI聊天框新建话题附加参数(智能体、知识库、工作目录等参数)模式,可选值:DEFAULT、ACTIVATED,DEFAULT表示新建会话附加打开AI聊天框时传入的参数、ACTIVATED表示新建会话附加AI聊天框当前激活会话的参数
|
|
178
|
+
topicOptions.newTopicParamMode = ibiz.config.common.aiNewTopicParamMode;
|
|
179
|
+
if (editorParams.newtopicparammode) {
|
|
180
|
+
topicOptions.newTopicParamMode = editorParams.newtopicparammode;
|
|
181
|
+
}
|
|
182
|
+
|
|
172
183
|
topicOptions.beforeDelete = async (title: string, description: string) => {
|
|
173
184
|
const result = await ibiz.confirm.warning({
|
|
174
185
|
title,
|
|
@@ -202,6 +213,9 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
202
213
|
enableAIProject: editorParams.srfenableaiprojectselect
|
|
203
214
|
? editorParams.srfenableaiprojectselect === 'true'
|
|
204
215
|
: ibiz.config.common.enableAIProjectSelect,
|
|
216
|
+
projectSelectPlaceholder:
|
|
217
|
+
editorParams.srfprojectselectplaceholder ||
|
|
218
|
+
ibiz.config.common.aiProjectSelectPlaceholder,
|
|
205
219
|
};
|
|
206
220
|
// 编辑器参数srfaiappendcurdata,是否传入对象参数,用于历史查询传参
|
|
207
221
|
if (editorParams.srfaiappendcurdata) {
|
|
@@ -1178,6 +1192,19 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1178
1192
|
} else {
|
|
1179
1193
|
topicOptions.storageMode = ibiz.config.common.aiTopicStorageMode;
|
|
1180
1194
|
}
|
|
1195
|
+
// 视图参数enablebasicgroup,AI聊天框工作模式为默认模式时,是否启用基础分组,默认值为true,显示分组会话树,反之,显示会话列表
|
|
1196
|
+
topicOptions.enableBasicGroup = ibiz.config.common.aiEnableBasicGroup;
|
|
1197
|
+
if (params.hasOwnProperty('enablebasicgroup')) {
|
|
1198
|
+
topicOptions.enableBasicGroup = params.enablebasicgroup === 'true';
|
|
1199
|
+
delete params.enablebasicgroup;
|
|
1200
|
+
}
|
|
1201
|
+
// 视图参数newtopicparammode,AI聊天框新建话题附加参数(智能体、知识库、工作目录等参数)模式,可选值:DEFAULT、ACTIVATED,DEFAULT表示新建会话附加打开AI聊天框时传入的参数、ACTIVATED表示新建会话附加AI聊天框当前激活会话的参数
|
|
1202
|
+
topicOptions.newTopicParamMode = ibiz.config.common.aiNewTopicParamMode;
|
|
1203
|
+
if (params.hasOwnProperty('newtopicparammode')) {
|
|
1204
|
+
topicOptions.newTopicParamMode = params.newtopicparammode;
|
|
1205
|
+
delete params.newtopicparammode;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1181
1208
|
topicOptions.beforeDelete = async (title: string, description: string) => {
|
|
1182
1209
|
const result = await ibiz.confirm.warning({
|
|
1183
1210
|
title,
|
|
@@ -1211,10 +1238,14 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1211
1238
|
enableAIProject: params.srfenableaiprojectselect
|
|
1212
1239
|
? params.srfenableaiprojectselect === 'true'
|
|
1213
1240
|
: ibiz.config.common.enableAIProjectSelect,
|
|
1241
|
+
projectSelectPlaceholder:
|
|
1242
|
+
params.srfprojectselectplaceholder ||
|
|
1243
|
+
ibiz.config.common.aiProjectSelectPlaceholder,
|
|
1214
1244
|
};
|
|
1215
|
-
if (params.hasOwnProperty('srfenableaiprojectselect'))
|
|
1245
|
+
if (params.hasOwnProperty('srfenableaiprojectselect'))
|
|
1216
1246
|
delete params.srfenableaiprojectselect;
|
|
1217
|
-
|
|
1247
|
+
if (params.hasOwnProperty('srfprojectselectplaceholder'))
|
|
1248
|
+
delete params.srfprojectselectplaceholder;
|
|
1218
1249
|
// 是否传入对象参数,用于历史查询传参
|
|
1219
1250
|
// 上下文参数和视图参数srfaiappendcurdata均识别
|
|
1220
1251
|
if (context.srfaiappendcurdata === 'true') {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--el-notification-padding: 0;
|
|
4
4
|
--el-notification-group-margin-left: 0;
|
|
5
5
|
--el-notification-group-margin-right: 0;
|
|
6
|
+
|
|
6
7
|
.el-notification__group {
|
|
7
8
|
width: 100%;
|
|
8
9
|
}
|
|
@@ -11,9 +12,11 @@
|
|
|
11
12
|
@include b(upload-manager) {
|
|
12
13
|
.icon {
|
|
13
14
|
font-size: 20px;
|
|
15
|
+
|
|
14
16
|
&.success {
|
|
15
17
|
color: getCssVar(color, success-hover);
|
|
16
18
|
}
|
|
19
|
+
|
|
17
20
|
&.danger {
|
|
18
21
|
color: getCssVar(color, danger);
|
|
19
22
|
}
|
|
@@ -21,19 +24,22 @@
|
|
|
21
24
|
|
|
22
25
|
@include e(header) {
|
|
23
26
|
display: flex;
|
|
24
|
-
line-height: 30px;
|
|
25
27
|
align-items: center;
|
|
26
28
|
padding: getCssVar(spacing, base);
|
|
27
29
|
padding-left: getCssVar(spacing, loose);
|
|
30
|
+
line-height: 30px;
|
|
28
31
|
|
|
29
32
|
@include m(loading) {
|
|
30
33
|
display: flex;
|
|
31
34
|
align-items: center;
|
|
35
|
+
|
|
32
36
|
.el-progress-circle {
|
|
33
37
|
--el-fill-color-light: #{getCssVar(color, disabled-bg)};
|
|
38
|
+
|
|
34
39
|
width: 30px !important;
|
|
35
40
|
height: 30px !important;
|
|
36
41
|
}
|
|
42
|
+
|
|
37
43
|
.icon {
|
|
38
44
|
font-size: 30px;
|
|
39
45
|
}
|
|
@@ -44,12 +50,14 @@
|
|
|
44
50
|
flex-grow: 1;
|
|
45
51
|
align-items: center;
|
|
46
52
|
margin-left: 12px;
|
|
53
|
+
|
|
47
54
|
.caption {
|
|
48
55
|
font-size: getCssVar(font-size, header-6);
|
|
49
56
|
}
|
|
57
|
+
|
|
50
58
|
.progress {
|
|
51
|
-
color: getCssVar(color, disabled-text);
|
|
52
59
|
margin-left: getCssVar(spacing, tight);
|
|
60
|
+
color: getCssVar(color, disabled-text);
|
|
53
61
|
}
|
|
54
62
|
}
|
|
55
63
|
|
|
@@ -57,13 +65,16 @@
|
|
|
57
65
|
display: flex;
|
|
58
66
|
align-items: center;
|
|
59
67
|
color: getCssVar(color, disabled-text);
|
|
68
|
+
|
|
60
69
|
.icon {
|
|
70
|
+
margin-left: getCssVar(spacing, extra-tight);
|
|
61
71
|
font-size: 24px;
|
|
62
72
|
cursor: pointer;
|
|
63
|
-
|
|
73
|
+
|
|
64
74
|
&.down-up {
|
|
65
75
|
font-size: 20px;
|
|
66
76
|
}
|
|
77
|
+
|
|
67
78
|
&:hover {
|
|
68
79
|
color: getCssVar(color, primary-hover);
|
|
69
80
|
}
|
|
@@ -73,20 +84,21 @@
|
|
|
73
84
|
|
|
74
85
|
@include e(content) {
|
|
75
86
|
max-height: 240px;
|
|
76
|
-
overflow-y: auto;
|
|
77
87
|
padding: 0 getCssVar(spacing, base) getCssVar(spacing, base) getCssVar(spacing, loose);
|
|
88
|
+
overflow-y: auto;
|
|
78
89
|
}
|
|
79
90
|
|
|
80
91
|
@include e(file-item) {
|
|
81
|
-
height: 48px;
|
|
82
|
-
display: flex;
|
|
83
92
|
position: relative;
|
|
93
|
+
display: flex;
|
|
84
94
|
align-items: center;
|
|
95
|
+
height: 48px;
|
|
85
96
|
padding: getCssVar(spacing, base-tight) 0;
|
|
86
97
|
|
|
87
98
|
@include m(icon) {
|
|
88
99
|
display: flex;
|
|
89
100
|
align-items: center;
|
|
101
|
+
|
|
90
102
|
svg {
|
|
91
103
|
width: 20px;
|
|
92
104
|
height: 20px;
|
|
@@ -95,34 +107,38 @@
|
|
|
95
107
|
|
|
96
108
|
@include m(name) {
|
|
97
109
|
flex-grow: 1;
|
|
98
|
-
|
|
110
|
+
margin: 0 getCssVar(spacing, base-tight);
|
|
99
111
|
overflow: hidden;
|
|
100
112
|
text-overflow: ellipsis;
|
|
101
|
-
|
|
113
|
+
white-space: nowrap;
|
|
102
114
|
}
|
|
103
115
|
|
|
104
116
|
@include m(status) {
|
|
105
117
|
display: flex;
|
|
106
118
|
align-items: center;
|
|
119
|
+
|
|
107
120
|
.el-progress {
|
|
108
|
-
|
|
121
|
+
margin-left: getCssVar(spacing, loose);
|
|
109
122
|
}
|
|
123
|
+
|
|
110
124
|
.el-progress-circle {
|
|
111
125
|
--el-fill-color-light: #{getCssVar(color, disabled-bg)};
|
|
126
|
+
|
|
112
127
|
width: 20px !important;
|
|
113
128
|
height: 20px !important;
|
|
114
129
|
}
|
|
130
|
+
|
|
115
131
|
.el-progress__text {
|
|
116
|
-
font-size: getCssVar(font-size, small) !important;
|
|
117
132
|
left: -45px !important;
|
|
133
|
+
font-size: getCssVar(font-size, small) !important;
|
|
118
134
|
}
|
|
119
135
|
}
|
|
120
136
|
@include m(status-text) {
|
|
121
|
-
left: 32px;
|
|
122
|
-
bottom: -6px;
|
|
123
137
|
position: absolute;
|
|
124
|
-
|
|
138
|
+
bottom: -6px;
|
|
139
|
+
left: 32px;
|
|
125
140
|
font-size: getCssVar(font-size, small);
|
|
141
|
+
color: getCssVar(color, danger);
|
|
126
142
|
}
|
|
127
143
|
}
|
|
128
144
|
}
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from 'vue';
|
|
12
12
|
import { IUploadManagerParams } from '@ibiz-template/runtime';
|
|
13
13
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
14
|
+
import { showTitle } from '@ibiz-template/core';
|
|
14
15
|
import { getFileSvgByType } from './file-type';
|
|
15
16
|
import './upload-manager.scss';
|
|
16
17
|
|
|
@@ -238,7 +239,10 @@ export const IBizUploadManager = defineComponent({
|
|
|
238
239
|
<div class={this.ns.em('file-item', 'icon')}>
|
|
239
240
|
{getFileSvgByType(item.file.type)}
|
|
240
241
|
</div>
|
|
241
|
-
<div
|
|
242
|
+
<div
|
|
243
|
+
title={showTitle(item.file.name)}
|
|
244
|
+
class={this.ns.em('file-item', 'name')}
|
|
245
|
+
>
|
|
242
246
|
{item.file.name}
|
|
243
247
|
</div>
|
|
244
248
|
<div class={this.ns.em('file-item', 'status')}>
|