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,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { _ as s } from "./index-bc79f11f.js";
2
+ import { _ as s } from "./index-465b0d69.js";
3
3
  const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
4
4
  this.src = this.$route.query.src;
5
5
  } }, mounted() {
@@ -1,4 +1,4 @@
1
- import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-bc79f11f.js";
1
+ import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-465b0d69.js";
2
2
  import { resolveComponent as u, openBlock as l, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as C, renderList as T, createElementVNode as m, toDisplayString as w, normalizeClass as S, createCommentVNode as y } from "vue";
3
3
  const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
4
4
  return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
2
- import { _ as I } from "./index-bc79f11f.js";
2
+ import { _ as I } from "./index-465b0d69.js";
3
3
  const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
4
4
  const o = this.$route.query.workflowId;
5
5
  o && (this.workflowId = parseInt(o));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.45-ai2",
3
+ "version": "1.1.46",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -24,19 +24,14 @@
24
24
  "path-to-regexp": "6.2.1",
25
25
  "sortablejs": "^1.15.0",
26
26
  "tinymce": "5.8.2",
27
- "uuid": "^9.0.1",
28
- "vue-element-plus-x": "1.3.7"
27
+ "uuid": "^9.0.1"
29
28
  },
30
29
  "devDependencies": {
31
- "@codemirror/lang-json": "^6.0.1",
32
- "@codemirror/state": "^6.4.1",
33
30
  "@element-plus/icons-vue": "^2.1.0",
34
31
  "@vitejs/plugin-vue": "^4.2.3",
35
32
  "axios": "^1.5.1",
36
- "codemirror": "^6.0.1",
37
33
  "element-plus": "^2.4.1",
38
34
  "nprogress": "^0.2.0",
39
- "pinia": "^2.1.7",
40
35
  "rollup-plugin-terser": "^7.0.2",
41
36
  "sass": "1.69.4",
42
37
  "vite": "^4.4.5",
package/packages/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import '../src/utils/insert_css' // 公共样式库
2
2
  // 依次导入组件库的各个组件
3
3
  import { resizeDirective } from '../src/utils/resize'
4
- import '../src/utils/iframe-communicator'
5
- import store from '../src/store'
4
+ import '../src/utils/iframe-communicator';
5
+ import store from '../src/store';
6
6
  import Breadcrumb from './breadcrumb'
7
7
  import DepartmentTree from './department-tree'
8
8
  import Hamburger from './hamburger'
@@ -44,9 +44,8 @@ import FsUploadNew from './fs-upload-new'
44
44
  import ScanCodeInputBrowser from './scan-code-input-browser'
45
45
  import WorkgroupTreeMobile from './workgroup-tree-mobile'
46
46
  import RowForm from './row-form'
47
- import * as ElementPlusIconsVue from '@element-plus/icons-vue'
48
- import YxAffix from '../src/components/Affix'
49
- import ChatEmbed from './chat-embed'
47
+ import * as ElementPlusIconsVue from "@element-plus/icons-vue"
48
+ import YxAffix from '../src/components/Affix';
50
49
  // 将所有组件都存储起来,方便后续统一注册
51
50
  const components = [
52
51
  YxAffix,
@@ -82,12 +81,11 @@ const components = [
82
81
  IntervalSelection,
83
82
  DepartmentTreeMobile,
84
83
  DepartmentUserTreeMobile,
85
- SuperIcon,
86
- FsUploadNew,
84
+ SuperIcon,
85
+ FsUploadNew,
87
86
  ScanCodeInputBrowser,
88
87
  WorkgroupTreeMobile,
89
- RowForm,
90
- ChatEmbed
88
+ RowForm
91
89
  ]
92
90
 
93
91
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
@@ -108,8 +106,8 @@ const install = function (Vue) {
108
106
  Vue.component(key, component)
109
107
  }
110
108
  // store挂载到Vue原型
111
- Vue.provide('$agilebuilderUIStore', store)
112
- if (Vue.config.globalProperties) Vue.config.globalProperties.$agilebuilderUIStore = store
109
+ Vue.provide('$agilebuilderUIStore', store);
110
+ if(Vue.config.globalProperties) Vue.config.globalProperties.$agilebuilderUIStore = store;
113
111
  }
114
112
 
115
113
  // 判断是否是直接引入vue的js文件,即全局引用可自动安装所有组件
@@ -148,17 +146,16 @@ export {
148
146
  SecretInfo,
149
147
  DepartmentTreeMobile,
150
148
  DepartmentUserTreeMobile,
151
- SuperIcon,
152
- FsUploadNew,
149
+ SuperIcon,
150
+ FsUploadNew,
153
151
  ScanCodeInputBrowser,
154
152
  WorkgroupTreeMobile,
155
- RowForm,
156
- ChatEmbed
153
+ RowForm
157
154
  }
158
155
 
159
156
  export default {
160
157
  // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
161
158
  install,
162
159
  store,
163
- ...components
160
+ ...components,
164
161
  }
@@ -226,7 +226,7 @@ import { checkPermission } from '../../../src/utils/permission'
226
226
  import { getGuId } from '../../../src/utils/guid.js'
227
227
  // import resizeMixin from '../../../src/mixins/resizeMixin.js';
228
228
  import storeVuex from '../../../src/store'
229
- import { setPageDataToChatAiStore, setPageInfoToChatStore } from '../../../src/utils/chat-ai-util.ts'
229
+
230
230
  export default {
231
231
  components: {
232
232
  IndexColumn,
@@ -924,16 +924,6 @@ export default {
924
924
  deep: true
925
925
  }
926
926
  )
927
- if (!this.isFormSubTable) {
928
- setPageInfoToChatStore(this.pageContext.menuCode, {
929
- listRefs: [
930
- {
931
- ref: this
932
- }
933
- ],
934
- pageType: 'list'
935
- })
936
- }
937
927
  })
938
928
  },
939
929
  beforeDestroy() {
@@ -3232,9 +3222,6 @@ export default {
3232
3222
  // this.$refs.superGrid?.toggleRowSelection(newSelection[newSelection.length - 1], false)
3233
3223
  // }
3234
3224
  }
3235
- if (!this.isFormSubTable) {
3236
- setPageDataToChatAiStore(newSelection)
3237
- }
3238
3225
  this.selectionChange(newSelection)
3239
3226
  },
3240
3227
  // 显示移动端查询区域
@@ -84,7 +84,7 @@ const cn = {
84
84
  uploadFileTip: '上传的文件不超过{fileSize}M',
85
85
  asyncExportJumpMsg: '或点击我跳转到下载页面',
86
86
  mustFill: '{label} 必须填写',
87
- filePathNotFound: '文件UUID未找到,请检查配置'
87
+ filePathNotFound: '文件UUID未找到,请检查配置',
88
88
  },
89
89
  // 列表组件
90
90
  superGrid: {
@@ -136,7 +136,7 @@ const cn = {
136
136
  prevRow: '上一行',
137
137
  nextRow: '下一行',
138
138
  detail: '详情',
139
- searchEmpty: '查询空值'
139
+ searchEmpty:'查询空值'
140
140
  },
141
141
  // 部门树组件
142
142
  departmentTree: {},
@@ -299,18 +299,6 @@ const cn = {
299
299
  },
300
300
  imatrixUIPromptMessage: {
301
301
  NoContent: '暂无内容'
302
- },
303
- chatEmbed: {
304
- name: '小助手',
305
- history: '历史记录',
306
- minimize: '缩小',
307
- fullscreen: '全屏',
308
- close: '关闭',
309
- regenerate: '重新生成',
310
- copy: '复制',
311
- newChat: '新建会话',
312
- copySuccess: '复制成功',
313
- requestFailed: '请求会话失败!'
314
302
  }
315
303
  }
316
304
  export default cn
@@ -136,7 +136,7 @@ const en = {
136
136
  prevRow: 'Prev Row',
137
137
  nextRow: 'Next Row',
138
138
  detail: 'Detail',
139
- searchEmpty: 'Search Empty'
139
+ searchEmpty:'Search Empty'
140
140
  },
141
141
  departmentTree: {},
142
142
  departmentTreeInline: {
@@ -298,18 +298,6 @@ const en = {
298
298
  },
299
299
  imatrixUIPromptMessage: {
300
300
  NoContent: 'No content'
301
- },
302
- chatEmbed: {
303
- name: 'Assistant',
304
- history: 'History',
305
- minimize: 'Minimize',
306
- fullscreen: 'Full Screen',
307
- close: 'Close',
308
- regenerate: 'Regenerate',
309
- copy: 'Copy',
310
- newChat: 'New Chat',
311
- copySuccess: 'Copy successful',
312
- requestFailed: 'Request failed!'
313
301
  }
314
302
  }
315
303
  export default en
@@ -1,8 +1,7 @@
1
- import { setActiveMenuToChatAiStore } from '../../utils/chat-ai-util.ts'
2
1
  const tabContent = {
3
2
  state: {
4
3
  openTab: [], // 所有打开的路由
5
- activeIndex: null // 激活状态
4
+ activeIndex: null, // 激活状态
6
5
  },
7
6
  mutations: {
8
7
  // 添加tabs
@@ -22,11 +21,6 @@ const tabContent = {
22
21
  },
23
22
  // 设置当前激活的tab
24
23
  set_active_index(state, index) {
25
- const activeTab = state.openTab.find((item) => item.code === index)
26
- setActiveMenuToChatAiStore({
27
- menuCode: index,
28
- menuName: activeTab?.name || ''
29
- })
30
24
  state.activeIndex = index
31
25
  },
32
26
  // 清空tabs
@@ -34,9 +28,9 @@ const tabContent = {
34
28
  if (state.openTab.length > 0) {
35
29
  state.openTab.splice(0, state.openTab.length)
36
30
  }
37
- }
31
+ },
38
32
  },
39
- actions: {}
33
+ actions: {},
40
34
  }
41
35
 
42
36
  export default tabContent
@@ -9,13 +9,14 @@
9
9
  display: none;
10
10
  }
11
11
 
12
- //暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
13
- .el-dialog {
14
- transform: none;
15
- left: 0;
16
- position: relative;
17
- margin: 0 auto;
18
- }
12
+ //暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461 Dialog内select tree等组件在点击箭头时有虚晃
13
+ // 去掉这个配置是因为margin: 0 auto;影响弹框位置,紧贴浏览器顶部,没有间距。例如:权限系统/授权管理/分支字段权限管理/新建按钮弹框
14
+ // .el-dialog {
15
+ // transform: none;
16
+ // left: 0;
17
+ // position: relative;
18
+ // margin: 0 auto;
19
+ // }
19
20
 
20
21
  //element ui upload
21
22
  .upload-container {