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.
Files changed (32) hide show
  1. package/lib/{401-beb8c7d3.js → 401-1bde8dc9.js} +1 -1
  2. package/lib/{404-453588b3.js → 404-48d76996.js} +1 -1
  3. package/lib/{iframe-page-11560b58.js → iframe-page-77e184a0.js} +1 -1
  4. package/lib/index-465b0d69.js +73558 -0
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +32 -33
  7. package/lib/super-ui.umd.cjs +136 -168
  8. package/lib/{tab-content-iframe-index-2cadaa46.js → tab-content-iframe-index-39745d49.js} +1 -1
  9. package/lib/{tab-content-index-3455e8d6.js → tab-content-index-65696e56.js} +1 -1
  10. package/lib/{tache-subprocess-history-cfb4e2eb.js → tache-subprocess-history-ef943f95.js} +1 -1
  11. package/package.json +2 -7
  12. package/packages/index.js +13 -16
  13. package/packages/super-grid/src/super-grid.vue +1 -14
  14. package/src/i18n/langs/cn.js +2 -14
  15. package/src/i18n/langs/en.js +1 -13
  16. package/src/store/modules/tab-content.js +3 -9
  17. package/src/styles/element-ui.scss +8 -7
  18. package/lib/index-bc79f11f.js +0 -93084
  19. package/packages/chat-embed/index.ts +0 -6
  20. package/packages/chat-embed/src/chat-embed-message.ts +0 -79
  21. package/packages/chat-embed/src/chat-embed.css +0 -117
  22. package/packages/chat-embed/src/chat-sender.vue +0 -240
  23. package/packages/chat-embed/src/header.vue +0 -50
  24. package/packages/chat-embed/src/index.vue +0 -420
  25. package/packages/chat-embed/src/recommendation-message.vue +0 -37
  26. package/packages/chat-embed/src/util.ts +0 -33
  27. package/packages/json-view/index.ts +0 -3
  28. package/packages/json-view/json-view-dialog.vue +0 -53
  29. package/packages/json-view/json-view.vue +0 -126
  30. package/src/assets/chat-embed/avatar.png +0 -0
  31. package/src/store/modules/chat-ai-store.ts +0 -78
  32. 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 }