agilebuilder-ui 1.1.45-ai2 → 1.1.46
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/lib/{401-beb8c7d3.js → 401-1bde8dc9.js} +1 -1
- package/lib/{404-453588b3.js → 404-48d76996.js} +1 -1
- package/lib/{iframe-page-11560b58.js → iframe-page-77e184a0.js} +1 -1
- package/lib/index-465b0d69.js +73558 -0
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +32 -33
- package/lib/super-ui.umd.cjs +136 -168
- package/lib/{tab-content-iframe-index-2cadaa46.js → tab-content-iframe-index-39745d49.js} +1 -1
- package/lib/{tab-content-index-3455e8d6.js → tab-content-index-65696e56.js} +1 -1
- package/lib/{tache-subprocess-history-cfb4e2eb.js → tache-subprocess-history-ef943f95.js} +1 -1
- package/package.json +2 -7
- package/packages/index.js +13 -16
- package/packages/super-grid/src/super-grid.vue +1 -14
- package/src/i18n/langs/cn.js +2 -14
- package/src/i18n/langs/en.js +1 -13
- package/src/store/modules/tab-content.js +3 -9
- package/src/styles/element-ui.scss +8 -7
- package/lib/index-bc79f11f.js +0 -93084
- package/packages/chat-embed/index.ts +0 -6
- package/packages/chat-embed/src/chat-embed-message.ts +0 -79
- package/packages/chat-embed/src/chat-embed.css +0 -117
- package/packages/chat-embed/src/chat-sender.vue +0 -240
- package/packages/chat-embed/src/header.vue +0 -50
- package/packages/chat-embed/src/index.vue +0 -420
- package/packages/chat-embed/src/recommendation-message.vue +0 -37
- package/packages/chat-embed/src/util.ts +0 -33
- package/packages/json-view/index.ts +0 -3
- package/packages/json-view/json-view-dialog.vue +0 -53
- package/packages/json-view/json-view.vue +0 -126
- package/src/assets/chat-embed/avatar.png +0 -0
- package/src/store/modules/chat-ai-store.ts +0 -78
- package/src/utils/chat-ai-util.ts +0 -31
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ref, computed, reactive } from 'vue'
|
|
2
|
-
import { defineStore } from 'pinia'
|
|
3
|
-
|
|
4
|
-
type Menu = {
|
|
5
|
-
menuCode: string
|
|
6
|
-
menuName: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export default defineStore('ChatAiStore', () => {
|
|
10
|
-
const currentTabName = ref('chat')
|
|
11
|
-
const activeMenu = ref<Menu>({
|
|
12
|
-
menuCode: '',
|
|
13
|
-
menuName: ''
|
|
14
|
-
})
|
|
15
|
-
const pageInfo = ref<any>({})
|
|
16
|
-
|
|
17
|
-
// 最后操作的表格实例
|
|
18
|
-
const pageRef = ref<any>(null)
|
|
19
|
-
const pageData = ref<any[]>([])
|
|
20
|
-
|
|
21
|
-
function setCurrentTabName(name: string) {
|
|
22
|
-
currentTabName.value = name
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function getCurrentTabName() {
|
|
26
|
-
return currentTabName.value
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function setPageInfoToChatStore(menuCode: string, info: any) {
|
|
30
|
-
pageInfo.value[menuCode] = info
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function getPageInfo(menuCode: string) {
|
|
34
|
-
return pageInfo.value[menuCode] || null
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function getActiveMenuPageInfo() {
|
|
38
|
-
return pageInfo.value[activeMenu.value.menuCode] || null
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function setPageData(newSelection: any[]) {
|
|
42
|
-
pageData.value = JSON.parse(JSON.stringify(newSelection))
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function getPageData() {
|
|
46
|
-
return pageData.value
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function clearPageData() {
|
|
50
|
-
pageData.value = []
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function setActiveMenu(menu: any) {
|
|
54
|
-
activeMenu.value = menu
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function getActiveMenu() {
|
|
58
|
-
return activeMenu.value
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function getPageType() {}
|
|
62
|
-
|
|
63
|
-
return {
|
|
64
|
-
setCurrentTabName,
|
|
65
|
-
getCurrentTabName,
|
|
66
|
-
setPageData,
|
|
67
|
-
getPageData,
|
|
68
|
-
clearPageData,
|
|
69
|
-
getActiveMenu,
|
|
70
|
-
setActiveMenu,
|
|
71
|
-
getPageType,
|
|
72
|
-
setPageInfoToChatStore,
|
|
73
|
-
getPageInfo,
|
|
74
|
-
getActiveMenuPageInfo,
|
|
75
|
-
pageData,
|
|
76
|
-
activeMenu
|
|
77
|
-
}
|
|
78
|
-
})
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
function setPageDataToChatAiStore(ref, newSelection, type = 'list') {
|
|
2
|
-
try {
|
|
3
|
-
if (window.top.ChatAiStore) {
|
|
4
|
-
window.top.ChatAiStore.setPageData(ref, newSelection, type)
|
|
5
|
-
}
|
|
6
|
-
} catch (error) {
|
|
7
|
-
console.error('ChatAiStore not found', error)
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function setActiveMenuToChatAiStore(activeMenu) {
|
|
12
|
-
try {
|
|
13
|
-
if (window.top.ChatAiStore) {
|
|
14
|
-
window.top.ChatAiStore.setActiveMenu(activeMenu)
|
|
15
|
-
}
|
|
16
|
-
} catch (error) {
|
|
17
|
-
console.error('ChatAiStore not found', error)
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function setPageInfoToChatStore(menuCode, info) {
|
|
22
|
-
try {
|
|
23
|
-
if (window.top.ChatAiStore) {
|
|
24
|
-
window.top.ChatAiStore.setPageInfoToChatStore(menuCode, info)
|
|
25
|
-
}
|
|
26
|
-
} catch (error) {
|
|
27
|
-
console.error('ChatAiStore not found', error)
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { setPageDataToChatAiStore, setActiveMenuToChatAiStore, setPageInfoToChatStore }
|