agilebuilder-ui 1.1.65-tmp30 → 1.1.65-tmp31
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/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +104 -100
- package/es/chat-embed/src/voice/js/crypto-js.mjs +46 -50
- package/es/chat-embed/src/voice/voice.vue.mjs +8 -11
- package/es/date-picker-range/index.vue.mjs +1 -1
- package/es/date-picker-range/index.vue2.mjs +41 -33
- package/es/department-tree-inline/src/department-tree-service.mjs +0 -1
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +14 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.mjs +19 -20
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +0 -1
- package/es/department-user-tree-inline/src/search-result.vue.mjs +4 -4
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +2 -2
- package/es/dynamic-source-select/src/dynamic-source-select.vue.mjs +86 -85
- package/es/fs-preview/src/fs-preview.vue.mjs +73 -59
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +3 -3
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +5 -6
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +15 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +19 -19
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +2 -2
- package/es/fs-upload-new/src/fs-preview-new.vue.mjs +1 -1
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +50 -50
- package/es/i18n-setting/index.mjs +7 -0
- package/es/i18n-setting/src/i18n-setting-dialog.vue.mjs +23 -0
- package/es/i18n-setting/src/i18n-setting.mjs +14 -0
- package/es/i18n-setting/src/index.vue.mjs +47 -0
- package/es/index.mjs +46 -41
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +6 -6
- package/es/organization-input/src/organization-input.vue.mjs +58 -58
- package/es/remove-department/src/remove-dept-service.mjs +4 -5
- package/es/remove-user/src/remove-user-service.mjs +0 -1
- package/es/remove-workgroup/src/remove-workgroup-service.mjs +0 -1
- package/es/rich-editor/index.vue.mjs +43 -84
- package/es/scan-code-input/src/scan-code-input.vue.mjs +1 -1
- package/es/scan-code-input-browser/src/scan-code-input.vue.mjs +20 -9
- package/es/src/api/sso-service.mjs +0 -1
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/permission.mjs +7 -10
- package/es/src/router/index.mjs +0 -1
- package/es/src/store/index.mjs +0 -1
- package/es/src/store/modules/app.mjs +0 -1
- package/es/src/utils/common-util.mjs +143 -143
- package/es/src/utils/i18n-util.mjs +32 -30
- package/es/src/utils/iconUtils.mjs +0 -1
- package/es/src/utils/jump-page-utils.mjs +1 -1
- package/es/src/utils/permission.mjs +25 -26
- package/es/src/utils/permissionAuth.mjs +0 -1
- package/es/src/utils/restful-interface-utils.mjs +5 -6
- package/es/src/utils/watermark.mjs +2 -7
- package/es/src/utils/workflow-util.mjs +6 -6
- package/es/src/views/dsc-component/Sidebar/Item.vue.mjs +1 -1
- package/es/src/views/dsc-component/Sidebar/Item.vue2.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +8 -8
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.mjs +11 -11
- package/es/style.css +1 -3103
- package/es/super-grid/src/apis.mjs +155 -151
- package/es/super-grid/src/components/mobile-table-card.mjs +14 -10
- package/es/super-grid/src/components/select-input.vue.mjs +66 -66
- package/es/super-grid/src/custom-formatter.mjs +5 -6
- package/es/super-grid/src/dynamic-input.vue.mjs +31 -39
- package/es/super-grid/src/formValidatorUtil.mjs +0 -1
- package/es/super-grid/src/normal-column-content.vue.mjs +1 -2
- package/es/super-grid/src/normal-column.vue.mjs +12 -10
- package/es/super-grid/src/row-operation.vue.mjs +3 -3
- package/es/super-grid/src/search-form-item.vue.mjs +18 -14
- package/es/super-grid/src/search-form-number.vue.mjs +7 -6
- package/es/super-grid/src/search-form-open.vue.mjs +3 -2
- package/es/super-grid/src/search-form-open.vue2.mjs +4 -0
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +1 -1
- package/es/super-grid/src/super-grid.vue.mjs +254 -242
- package/es/super-grid/src/utils.mjs +6 -6
- package/es/super-grid/src/view-image-dialog.vue.mjs +5 -5
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +89 -83
- package/es/utils/utils.mjs +0 -1
- package/es/utils/value-set.mjs +0 -1
- package/es/workflow-history-list/src/workflow-history-list.vue.mjs +11 -10
- package/es/workgroup-tree-inline/src/workgroup-tree-service.mjs +0 -1
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.mjs +0 -1
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +2 -2
- package/package.json +5 -2
- package/src/styles/index.scss +4 -0
- package/src/styles/theme/dark-blue/select.scss +27 -1
- package/src/styles/theme/forest-green/select.scss +27 -1
- package/src/styles/theme/green/select.scss +27 -1
- package/src/styles/theme/ocean-blue/select.scss +27 -1
- package/src/styles/theme/tiffany-blue-mobile/select.scss +29 -2
- package/.eslintrc.cjs +0 -28
- package/.prettierrc.json +0 -12
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16659
- package/dist/style.css +0 -3104
- package/index.html +0 -19
- package/lib/IntervalSelection/index.cjs +0 -5
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +0 -45
- package/lib/IntervalSelection/src/sectionDate.vue2.cjs +0 -2
- package/lib/_virtual/__vite-browser-external.cjs +0 -2
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/breadcrumb/index.cjs +0 -5
- package/lib/breadcrumb/src/breadcrumb.vue.cjs +0 -37
- package/lib/breadcrumb/src/breadcrumb.vue2.cjs +0 -2
- package/lib/chat-embed/index.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +0 -15
- package/lib/chat-embed/src/chat-addition-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +0 -26
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +0 -28
- package/lib/chat-embed/src/chat-bubble-footer.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-embed-message.cjs +0 -16
- package/lib/chat-embed/src/chat-sender.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +0 -145
- package/lib/chat-embed/src/chat-sender.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.cjs +0 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +0 -107
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/history-detail.vue.cjs +0 -5
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/history-detail.vue3.cjs +0 -2
- package/lib/chat-embed/src/header.vue.cjs +0 -5
- package/lib/chat-embed/src/header.vue2.cjs +0 -39
- package/lib/chat-embed/src/header.vue3.cjs +0 -2
- package/lib/chat-embed/src/index.vue.cjs +0 -5
- package/lib/chat-embed/src/index.vue2.cjs +0 -281
- package/lib/chat-embed/src/index.vue3.cjs +0 -2
- package/lib/chat-embed/src/recommendation-message.vue.cjs +0 -5
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +0 -8
- package/lib/chat-embed/src/recommendation-message.vue3.cjs +0 -2
- package/lib/chat-embed/src/sidebar-item.vue.cjs +0 -5
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +0 -109
- package/lib/chat-embed/src/sidebar-item.vue3.cjs +0 -2
- package/lib/chat-embed/src/type.cjs +0 -3
- package/lib/chat-embed/src/util/chat-embed-util.cjs +0 -51
- package/lib/chat-embed/src/util/history-message-util.cjs +0 -74
- package/lib/chat-embed/src/util/mcp-utils.cjs +0 -50
- package/lib/chat-embed/src/util/text-file-util.cjs +0 -8
- package/lib/chat-embed/src/voice/index.cjs +0 -5
- package/lib/chat-embed/src/voice/js/crypto-js.cjs +0 -1005
- package/lib/chat-embed/src/voice/js/processor/index.umd.cjs +0 -170
- package/lib/chat-embed/src/voice/js/timer.cjs +0 -8
- package/lib/chat-embed/src/voice/voice.vue.cjs +0 -96
- package/lib/date-picker-range/index.cjs +0 -5
- package/lib/date-picker-range/index.vue.cjs +0 -5
- package/lib/date-picker-range/index.vue2.cjs +0 -89
- package/lib/date-picker-range/index.vue3.cjs +0 -2
- package/lib/department-tree/index.cjs +0 -5
- package/lib/department-tree/src/department-tree.vue.cjs +0 -17
- package/lib/department-tree-inline/index.cjs +0 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.cjs +0 -81
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.cjs +0 -54
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.cjs +0 -12
- package/lib/department-tree-inline/src/department-tree-service.cjs +0 -106
- package/lib/department-tree-inline/src/search-result.vue.cjs +0 -36
- package/lib/department-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-tree-mobile/index.cjs +0 -5
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/department-tree-app.vue2.cjs +0 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +0 -110
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-service.cjs +0 -47
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/department-user-tree/index.cjs +0 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.cjs +0 -16
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.cjs +0 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.cjs +0 -14
- package/lib/department-user-tree/src/department-user-tree.vue.cjs +0 -21
- package/lib/department-user-tree-inline/index.cjs +0 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +0 -154
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +0 -57
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +0 -11
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.cjs +0 -78
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +0 -51
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.cjs +0 -34
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.cjs +0 -22
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.cjs +0 -10
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.cjs +0 -72
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.cjs +0 -28
- package/lib/department-user-tree-inline/src/group-user-tree-service.cjs +0 -33
- package/lib/department-user-tree-inline/src/search-result.vue.cjs +0 -38
- package/lib/department-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/index.cjs +0 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +0 -124
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.cjs +0 -28
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/directives/prevent-reclick.cjs +0 -14
- package/lib/dynamic-source-select/index.cjs +0 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.cjs +0 -30
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.cjs +0 -266
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.cjs +0 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.cjs +0 -2
- package/lib/dynamic-source-select/src/events.cjs +0 -28
- package/lib/empty-state/index.vue.cjs +0 -6
- package/lib/empty-state/index.vue2.cjs +0 -3
- package/lib/favicon.svg +0 -29
- package/lib/fs-preview/index.cjs +0 -5
- package/lib/fs-preview/src/fs-preview.vue.cjs +0 -119
- package/lib/fs-preview/src/fs-preview.vue2.cjs +0 -2
- package/lib/fs-upload/index.cjs +0 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +0 -63
- package/lib/fs-upload/src/fs-upload-single.vue.cjs +0 -64
- package/lib/fs-upload/src/fs-upload.vue.cjs +0 -18
- package/lib/fs-upload/src/see-big-picture.vue.cjs +0 -9
- package/lib/fs-upload-list/index.cjs +0 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +0 -91
- package/lib/fs-upload-list/src/fs-upload-list.vue2.cjs +0 -2
- package/lib/fs-upload-new/index.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +0 -57
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +0 -170
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +0 -32
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +0 -41
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +0 -29
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-button-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +0 -84
- package/lib/fs-upload-new/src/fs-preview-new.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.cjs +0 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +0 -54
- package/lib/fs-upload-new/src/fs-upload-new.vue2.cjs +0 -3
- package/lib/hamburger/index.cjs +0 -5
- package/lib/hamburger/src/hamburger.vue.cjs +0 -11
- package/lib/hamburger/src/hamburger.vue2.cjs +0 -2
- package/lib/index.cjs +0 -41
- package/lib/json-view/json-view-dialog.vue.cjs +0 -16
- package/lib/json-view/json-view-dialog.vue2.cjs +0 -3
- package/lib/json-view/json-view.vue.cjs +0 -3
- package/lib/json-view/json-view.vue2.cjs +0 -32
- package/lib/multipart-upload/index.cjs +0 -5
- package/lib/multipart-upload/src/index.vue.cjs +0 -10
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +0 -73
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +0 -96
- package/lib/organization-input/index.cjs +0 -5
- package/lib/organization-input/src/organization-input.vue.cjs +0 -218
- package/lib/organization-input/src/organization-input.vue2.cjs +0 -2
- package/lib/plugins/export-data-new.cjs +0 -229
- package/lib/plugins/export-data.cjs +0 -173
- package/lib/plugins/index.cjs +0 -5
- package/lib/plugins/public-method.cjs +0 -13
- package/lib/remove-department/index.cjs +0 -5
- package/lib/remove-department/src/remove-department.vue.cjs +0 -27
- package/lib/remove-department/src/remove-dept-service.cjs +0 -12
- package/lib/remove-user/index.cjs +0 -5
- package/lib/remove-user/src/remove-user-service.cjs +0 -12
- package/lib/remove-user/src/remove-user.vue.cjs +0 -29
- package/lib/remove-workgroup/index.cjs +0 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.cjs +0 -12
- package/lib/remove-workgroup/src/remove-workgroup.vue.cjs +0 -25
- package/lib/rich-editor/index.cjs +0 -5
- package/lib/rich-editor/index.vue.cjs +0 -67
- package/lib/rich-editor/tinymce/zh_CN.cjs +0 -2
- package/lib/rich-editor/viewer.vue.cjs +0 -24
- package/lib/row-form/index.cjs +0 -5
- package/lib/row-form/index.vue.cjs +0 -5
- package/lib/row-form/index.vue2.cjs +0 -56
- package/lib/row-form/index.vue3.cjs +0 -2
- package/lib/row-form/operation.vue.cjs +0 -28
- package/lib/row-form/operation.vue2.cjs +0 -3
- package/lib/scan-code-input/index.cjs +0 -5
- package/lib/scan-code-input/src/events.cjs +0 -13
- package/lib/scan-code-input/src/scan-code-input.vue.cjs +0 -26
- package/lib/scan-code-input-browser/index.cjs +0 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.cjs +0 -34
- package/lib/secret-info/index.cjs +0 -5
- package/lib/secret-info/index.vue.cjs +0 -13
- package/lib/src/api/sso-service.cjs +0 -55
- package/lib/src/api/tab.cjs +0 -14
- package/lib/src/assets/401/401.gif.cjs +0 -2
- package/lib/src/assets/404/404-cloud.png.cjs +0 -2
- package/lib/src/assets/404/404.png.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.gif.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.svg.cjs +0 -2
- package/lib/src/assets/nonemessage.png.cjs +0 -2
- package/lib/src/components/Affix/index.vue.cjs +0 -5
- package/lib/src/components/Affix/index.vue2.cjs +0 -81
- package/lib/src/components/Affix/index.vue3.cjs +0 -2
- package/lib/src/components/Card/index.cjs +0 -46
- package/lib/src/components/Scrollbar/index.vue.cjs +0 -48
- package/lib/src/components/Scrollbar/index.vue2.cjs +0 -2
- package/lib/src/directives/permission/index.cjs +0 -5
- package/lib/src/directives/permission/permission.cjs +0 -9
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/src/mixins/resizeMixin.cjs +0 -20
- package/lib/src/permission.cjs +0 -76
- package/lib/src/router/index.cjs +0 -16
- package/lib/src/store/getters.cjs +0 -2
- package/lib/src/store/index.cjs +0 -16
- package/lib/src/store/modules/app.cjs +0 -40
- package/lib/src/store/modules/chat-ai-store.cjs +0 -33
- package/lib/src/store/modules/permission.cjs +0 -30
- package/lib/src/store/modules/system.cjs +0 -10
- package/lib/src/store/modules/tab-content.cjs +0 -18
- package/lib/src/store/modules/table.cjs +0 -17
- package/lib/src/store/modules/user.cjs +0 -133
- package/lib/src/utils/auth-api.cjs +0 -132
- package/lib/src/utils/auth.cjs +0 -86
- package/lib/src/utils/calculator/calculator-factory-wf.cjs +0 -166
- package/lib/src/utils/calculator/calculator-factory.cjs +0 -92
- package/lib/src/utils/calculator/calculator-util.cjs +0 -53
- package/lib/src/utils/chat-ai-util.cjs +0 -26
- package/lib/src/utils/common-util.cjs +0 -362
- package/lib/src/utils/eventBus.cjs +0 -3
- package/lib/src/utils/file-util.cjs +0 -22
- package/lib/src/utils/global-prop.cjs +0 -22
- package/lib/src/utils/guid.cjs +0 -7
- package/lib/src/utils/i18n-util.cjs +0 -62
- package/lib/src/utils/iconUtils.cjs +0 -19
- package/lib/src/utils/index.cjs +0 -32
- package/lib/src/utils/insert_css.cjs +0 -18
- package/lib/src/utils/json-util.cjs +0 -45
- package/lib/src/utils/jump-page-utils.cjs +0 -256
- package/lib/src/utils/local-storage.cjs +0 -18
- package/lib/src/utils/menu.cjs +0 -13
- package/lib/src/utils/permission.cjs +0 -41
- package/lib/src/utils/permissionAuth.cjs +0 -120
- package/lib/src/utils/range-selector.cjs +0 -101
- package/lib/src/utils/request.cjs +0 -131
- package/lib/src/utils/resize.cjs +0 -11
- package/lib/src/utils/restful-interface-utils.cjs +0 -15
- package/lib/src/utils/util.cjs +0 -341
- package/lib/src/utils/validate.cjs +0 -12
- package/lib/src/utils/voice-setting-cache.cjs +0 -199
- package/lib/src/utils/watermark-cache.cjs +0 -10
- package/lib/src/utils/watermark.cjs +0 -33
- package/lib/src/utils/workflow-util.cjs +0 -41
- package/lib/src/views/dsc-component/Sidebar/Item.vue.cjs +0 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.cjs +0 -9
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.cjs +0 -11
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.cjs +0 -46
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.cjs +0 -103
- package/lib/src/views/dsc-component/tabs/tab-content.vue.cjs +0 -61
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/error-page/401.vue.cjs +0 -11
- package/lib/src/views/error-page/401.vue2.cjs +0 -2
- package/lib/src/views/error-page/404.vue.cjs +0 -8
- package/lib/src/views/error-page/404.vue2.cjs +0 -2
- package/lib/src/views/layout/EmptyLayout.vue.cjs +0 -7
- package/lib/src/views/layout/Layout.vue.cjs +0 -21
- package/lib/src/views/layout/Layout.vue2.cjs +0 -2
- package/lib/src/views/layout/NewLayout.vue.cjs +0 -7
- package/lib/src/views/layout/components/AppMain.vue.cjs +0 -11
- package/lib/src/views/layout/components/AppMain.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.cjs +0 -56
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +0 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +0 -13
- package/lib/src/views/layout/components/Menubar/Item.vue3.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.cjs +0 -11
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.cjs +0 -47
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/index.vue.cjs +0 -79
- package/lib/src/views/layout/components/Sidebar/Item.vue.cjs +0 -7
- package/lib/src/views/layout/components/Sidebar/Item.vue2.cjs +0 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.cjs +0 -9
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.cjs +0 -16
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.cjs +0 -51
- package/lib/src/views/layout/components/iframe-page.vue.cjs +0 -12
- package/lib/src/views/layout/components/iframe-page.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.cjs +0 -60
- package/lib/src/views/layout/components/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/layout/mixin/ResizeHandler.cjs +0 -14
- package/lib/src/views/layout/tab-content-iframe-index.vue.cjs +0 -12
- package/lib/src/views/layout/tab-content-iframe-index.vue2.cjs +0 -2
- package/lib/src/views/layout/tab-content-index.vue.cjs +0 -22
- package/lib/src/views/layout/tab-content-index.vue2.cjs +0 -2
- package/lib/src/views/login/authredirect.vue.cjs +0 -6
- package/lib/src/views/redirect/index.vue.cjs +0 -17
- package/lib/src/views/super-icon/index.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue2.cjs +0 -10
- package/lib/src/views/super-icon/src/index.vue3.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.cjs +0 -2
- package/lib/style.css +0 -3103
- package/lib/super-grid/index.cjs +0 -5
- package/lib/super-grid/src/apis.cjs +0 -477
- package/lib/super-grid/src/columns-config.vue.cjs +0 -76
- package/lib/super-grid/src/components/grid-icon.vue.cjs +0 -39
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +0 -22
- package/lib/super-grid/src/components/grid-radio-input.vue2.cjs +0 -3
- package/lib/super-grid/src/components/mobile-table-card.cjs +0 -99
- package/lib/super-grid/src/components/select-input.vue.cjs +0 -141
- package/lib/super-grid/src/components/select-input.vue2.cjs +0 -3
- package/lib/super-grid/src/custom-formatter.cjs +0 -163
- package/lib/super-grid/src/dynamic-input.vue.cjs +0 -465
- package/lib/super-grid/src/eventBus.cjs +0 -3
- package/lib/super-grid/src/events.cjs +0 -35
- package/lib/super-grid/src/formValidatorUtil.cjs +0 -106
- package/lib/super-grid/src/formatter.cjs +0 -69
- package/lib/super-grid/src/group-column.vue.cjs +0 -19
- package/lib/super-grid/src/header-context-menu.vue.cjs +0 -12
- package/lib/super-grid/src/header-context-menu.vue2.cjs +0 -2
- package/lib/super-grid/src/index-column.vue.cjs +0 -19
- package/lib/super-grid/src/normal-column-content.vue.cjs +0 -303
- package/lib/super-grid/src/normal-column-content.vue2.cjs +0 -2
- package/lib/super-grid/src/normal-column.vue.cjs +0 -90
- package/lib/super-grid/src/normal-column.vue2.cjs +0 -2
- package/lib/super-grid/src/public-methods.cjs +0 -20
- package/lib/super-grid/src/row-detail.vue.cjs +0 -11
- package/lib/super-grid/src/row-operation.vue.cjs +0 -82
- package/lib/super-grid/src/row-operation.vue2.cjs +0 -2
- package/lib/super-grid/src/scan-util.cjs +0 -98
- package/lib/super-grid/src/search-button.vue.cjs +0 -20
- package/lib/super-grid/src/search-condition-input.vue.cjs +0 -13
- package/lib/super-grid/src/search-condition-list.vue.cjs +0 -17
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +0 -106
- package/lib/super-grid/src/search-form-advancedQuery.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-dialog.vue.cjs +0 -23
- package/lib/super-grid/src/search-form-item.vue.cjs +0 -120
- package/lib/super-grid/src/search-form-item.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +0 -32
- package/lib/super-grid/src/search-form-mobile.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-number.vue.cjs +0 -21
- package/lib/super-grid/src/search-form-open.vue.cjs +0 -46
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +0 -33
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form.vue.cjs +0 -194
- package/lib/super-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-grid/src/search-methods.cjs +0 -163
- package/lib/super-grid/src/selection-column.vue.cjs +0 -9
- package/lib/super-grid/src/store.cjs +0 -3
- package/lib/super-grid/src/super-grid-service.cjs +0 -253
- package/lib/super-grid/src/super-grid.vue.cjs +0 -1083
- package/lib/super-grid/src/super-grid.vue2.cjs +0 -2
- package/lib/super-grid/src/utils.cjs +0 -373
- package/lib/super-grid/src/view-image-dialog.vue.cjs +0 -60
- package/lib/super-icon/index.cjs +0 -5
- package/lib/super-icon/src/index.vue.cjs +0 -5
- package/lib/super-icon/src/index.vue2.cjs +0 -10
- package/lib/super-icon/src/index.vue3.cjs +0 -2
- package/lib/super-nine-grid/index.cjs +0 -5
- package/lib/super-nine-grid/src/apis.cjs +0 -33
- package/lib/super-nine-grid/src/custom-formatter.cjs +0 -33
- package/lib/super-nine-grid/src/formatter.cjs +0 -36
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +0 -9
- package/lib/super-nine-grid/src/search-form.vue.cjs +0 -84
- package/lib/super-nine-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/search-methods.cjs +0 -47
- package/lib/super-nine-grid/src/store.cjs +0 -3
- package/lib/super-nine-grid/src/super-grid-service.cjs +0 -35
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +0 -215
- package/lib/super-nine-grid/src/super-nine-grid.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/utils.cjs +0 -36
- package/lib/svg-icon/index.cjs +0 -5
- package/lib/svg-icon/src/svg-icon.vue.cjs +0 -12
- package/lib/svg-icon/src/svg-icon.vue2.cjs +0 -2
- package/lib/utils/gogocodeTransfer.cjs +0 -28
- package/lib/utils/memory-cache-utils.cjs +0 -28
- package/lib/utils/organization.cjs +0 -55
- package/lib/utils/utils.cjs +0 -85
- package/lib/utils/value-set.cjs +0 -92
- package/lib/valid-code/index.cjs +0 -5
- package/lib/valid-code/src/valid-code.vue.cjs +0 -20
- package/lib/valid-code/src/valid-code.vue2.cjs +0 -2
- package/lib/workflow-button/index.cjs +0 -5
- package/lib/workflow-button/src/workflow-button.vue.cjs +0 -80
- package/lib/workflow-history-list/index.cjs +0 -5
- package/lib/workflow-history-list/src/api.cjs +0 -5
- package/lib/workflow-history-list/src/workflow-history-list.vue.cjs +0 -83
- package/lib/workflow-history-list/src/workflow-history-list.vue2.cjs +0 -2
- package/lib/workgroup-tree/index.cjs +0 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.cjs +0 -17
- package/lib/workgroup-tree-inline/index.cjs +0 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +0 -119
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.cjs +0 -33
- package/lib/workgroup-tree-mobile/index.cjs +0 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +0 -13
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +0 -99
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.cjs +0 -25
- package/lib/workgroup-user-tree/index.cjs +0 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.cjs +0 -17
- package/lib/workgroup-user-tree-inline/index.cjs +0 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.cjs +0 -71
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +0 -163
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +0 -124
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.cjs +0 -20
- package/lib/year-range-picker/index.cjs +0 -5
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +0 -11
- package/src/api/sso-service.js +0 -222
- package/src/api/tab.js +0 -36
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/chat-embed/background.png +0 -0
- package/src/assets/chat-embed/robot.gif +0 -0
- package/src/assets/chat-embed/robot.svg +0 -32
- package/src/assets/cloud.png +0 -0
- package/src/assets/nonemessage.png +0 -0
- package/src/assets/tab-selectWhite.png +0 -0
- package/src/components/Affix/index.vue +0 -272
- package/src/components/Card/index.jsx +0 -227
- package/src/components/Scrollbar/index.vue +0 -224
- package/src/directives/permission/index.js +0 -14
- package/src/directives/permission/permission.js +0 -27
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -344
- package/src/i18n/langs/en.js +0 -344
- package/src/index.js +0 -22
- package/src/mixins/resizeMixin.js +0 -49
- package/src/permission.js +0 -252
- package/src/plugins.js +0 -18
- package/src/router/index.js +0 -92
- package/src/store/getters.js +0 -26
- package/src/store/index.js +0 -23
- package/src/store/modules/app.js +0 -96
- package/src/store/modules/chat-ai-store.ts +0 -85
- package/src/store/modules/permission.js +0 -143
- package/src/store/modules/system.js +0 -35
- package/src/store/modules/tab-content.js +0 -42
- package/src/store/modules/table.js +0 -76
- package/src/store/modules/user.js +0 -448
- package/src/utils/auth-api.js +0 -370
- package/src/utils/auth.js +0 -194
- package/src/utils/calculator/calculator-factory-wf.js +0 -465
- package/src/utils/calculator/calculator-factory.js +0 -133
- package/src/utils/calculator/calculator-util.js +0 -184
- package/src/utils/chat-ai-util.ts +0 -41
- package/src/utils/common-util.js +0 -1019
- package/src/utils/dingtalk-util.ts +0 -43
- package/src/utils/eventBus.js +0 -10
- package/src/utils/file-util.ts +0 -42
- package/src/utils/global-prop.ts +0 -44
- package/src/utils/guid.js +0 -13
- package/src/utils/i18n-util.js +0 -145
- package/src/utils/iconUtils.js +0 -37
- package/src/utils/iframe-communicator.js +0 -234
- package/src/utils/index.js +0 -102
- package/src/utils/insert_css.js +0 -47
- package/src/utils/json-util.ts +0 -85
- package/src/utils/jump-page-utils.js +0 -829
- package/src/utils/local-storage.js +0 -33
- package/src/utils/menu.js +0 -19
- package/src/utils/permission.js +0 -126
- package/src/utils/permissionAuth.js +0 -311
- package/src/utils/range-selector.js +0 -204
- package/src/utils/request.js +0 -407
- package/src/utils/resize.js +0 -19
- package/src/utils/restful-interface-utils.js +0 -57
- package/src/utils/util.js +0 -1000
- package/src/utils/validate.js +0 -34
- package/src/utils/voice-setting-cache.js +0 -497
- package/src/utils/watermark-cache.js +0 -13
- package/src/utils/watermark.js +0 -119
- package/src/utils/workflow-util.js +0 -107
- package/src/views/404.vue +0 -248
- package/src/views/dsc-component/Sidebar/Item.vue +0 -95
- package/src/views/dsc-component/Sidebar/Link.vue +0 -38
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +0 -245
- package/src/views/dsc-component/Sidebar/index.vue +0 -258
- package/src/views/dsc-component/tabs/tab-content.vue +0 -230
- package/src/views/error-page/401.vue +0 -106
- package/src/views/error-page/404.vue +0 -248
- package/src/views/layout/EmptyLayout.vue +0 -3
- package/src/views/layout/Layout.vue +0 -85
- package/src/views/layout/NewLayout.vue +0 -18
- package/src/views/layout/components/AppMain.vue +0 -46
- package/src/views/layout/components/Breadcrumb/index.vue +0 -158
- package/src/views/layout/components/Menubar/Item.vue +0 -125
- package/src/views/layout/components/Menubar/Link.vue +0 -38
- package/src/views/layout/components/Menubar/SidebarItem.vue +0 -333
- package/src/views/layout/components/Menubar/index.vue +0 -250
- package/src/views/layout/components/Sidebar/Item.vue +0 -33
- package/src/views/layout/components/Sidebar/Link.vue +0 -38
- package/src/views/layout/components/Sidebar/SidebarItem.vue +0 -179
- package/src/views/layout/components/Sidebar/index.vue +0 -141
- package/src/views/layout/components/iframe-page.vue +0 -38
- package/src/views/layout/components/index.js +0 -4
- package/src/views/layout/components/tabs/tab-content.vue +0 -273
- package/src/views/layout/mixin/ResizeHandler.js +0 -41
- package/src/views/layout/tab-content-iframe-index.vue +0 -38
- package/src/views/layout/tab-content-index.vue +0 -92
- package/src/views/login/authredirect.vue +0 -10
- package/src/views/login/index.vue +0 -296
- package/src/views/login/update-password.vue +0 -246
- package/src/views/redirect/index.vue +0 -14
- package/src/views/super-icon/index.js +0 -6
- package/src/views/super-icon/src/index.vue +0 -52
- package/src/views/svg-icon/index.js +0 -6
- package/src/views/svg-icon/src/svg-icon.vue +0 -43
- package/src/views/wf-history/tache-subprocess-history.vue +0 -45
- package/vite.config.js +0 -103
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as a,
|
|
1
|
+
import { defineComponent as e, ref as t, watch as a, nextTick as n, onMounted as o, onBeforeUnmount as l, onUnmounted as i, computed as u, openBlock as r, createElementBlock as s, createElementVNode as c, normalizeStyle as v, unref as d, createVNode as m, Transition as f, withCtx as h, withDirectives as p, normalizeClass as g, Fragment as y, createBlock as w, createCommentVNode as b, toDisplayString as k, createTextVNode as S, renderList as C, vShow as A } from "vue";
|
|
2
2
|
import { useI18n as x } from "vue-i18n";
|
|
3
|
-
import { useXStream as P, BubbleList as _, Thinking as E, XMarkdown as
|
|
4
|
-
import { useDraggable as
|
|
3
|
+
import { useXStream as P, BubbleList as _, Thinking as E, XMarkdown as D, Typewriter as T } from "vue-element-plus-x";
|
|
4
|
+
import { useDraggable as j } from "@vueuse/core";
|
|
5
5
|
import { getToken as N } from "../../src/utils/auth.mjs";
|
|
6
6
|
import { defaultMessage as I, createUserMessage as M, createAiMessage as O, getMessageTemplate as q } from "./chat-embed-message.mjs";
|
|
7
7
|
import { AI_MODELS as $, MESSAGE_STATUS as R } from "./type.mjs";
|
|
@@ -11,9 +11,6 @@ import z from "./chat-bubble-footer.vue.mjs";
|
|
|
11
11
|
import J from "./chat-ai-answer-tip.vue.mjs";
|
|
12
12
|
import V from "./header.vue.mjs";
|
|
13
13
|
import F from "./chat-sender.vue.mjs";
|
|
14
|
-
import "codemirror";
|
|
15
|
-
import "@codemirror/lang-json";
|
|
16
|
-
import "@codemirror/state";
|
|
17
14
|
import U from "../../json-view/json-view-dialog.vue.mjs";
|
|
18
15
|
import W from "./components/answer-home-chart.vue.mjs";
|
|
19
16
|
import B from "./components/answer-interaction-data.vue.mjs";
|
|
@@ -25,7 +22,7 @@ import { downloadJsonFile as Y, generateFileName as Z } from "./util/text-file-u
|
|
|
25
22
|
import { replaceAiTipTags as ee, parseAnswerContent as te, extractFilenameFromUrl as ae } from "./util/chat-embed-util.mjs";
|
|
26
23
|
import ne from "./util/mcp-utils.mjs";
|
|
27
24
|
import { useRoute as oe } from "vue-router";
|
|
28
|
-
const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { style: { display: "flex", "flex-direction": "row" } }, se = { class: "chat-embed__main_content" }, ce = ["href", "title"], ve = ["href", "target"], de = { style: { "font-size": "10px", color: "#999", "text-align": "right" } }, me = { key: 1, style: { "margin-top": "5px", width: "100%" } },
|
|
25
|
+
const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { style: { display: "flex", "flex-direction": "row" } }, se = { class: "chat-embed__main_content" }, ce = ["href", "title"], ve = ["href", "target"], de = { style: { "font-size": "10px", color: "#999", "text-align": "right" } }, me = { key: 1, style: { "margin-top": "5px", width: "100%" } }, fe = ["onClick"], he = { style: { display: "none" } }, pe = e({ __name: "index", setup(e2) {
|
|
29
26
|
var _a, _b, _c;
|
|
30
27
|
const pe2 = function() {
|
|
31
28
|
try {
|
|
@@ -35,9 +32,9 @@ const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { styl
|
|
|
35
32
|
return console.error("获取customSystem参数失败"), null;
|
|
36
33
|
}
|
|
37
34
|
}();
|
|
38
|
-
const ge = t(((_c = (_b = (_a = window.$vueApp) == null ? void 0 : _a.config) == null ? void 0 : _b.globalProperties) == null ? void 0 : _c.enableAiChat) || false), { startStream: ye, cancel: we, data: be, error: ke, isLoading: Se } = P(), { t: Ce } = x(), Ae = t(), xe = t(true), Pe = t([]), _e = t({}), Ee = t(false),
|
|
39
|
-
let
|
|
40
|
-
const
|
|
35
|
+
const ge = t(((_c = (_b = (_a = window.$vueApp) == null ? void 0 : _a.config) == null ? void 0 : _b.globalProperties) == null ? void 0 : _c.enableAiChat) || false), { startStream: ye, cancel: we, data: be, error: ke, isLoading: Se } = P(), { t: Ce } = x(), Ae = t(), xe = t(true), Pe = t([]), _e = t({}), Ee = t(false), De = t($.RAGFLOW), Te = t({}), je = {}, Ne = t(true), Ie = t(null), Me = t(false), Oe = t(false), qe = t(0), $e = t(false), Re = t(0), He = t(""), Le = t("500px"), ze = t(250), Je = t("https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"), Ve = t(false), Fe = t({}), Ue = t(), We = t(), Be = t(), Ge = t(), Ke = t(), Qe = t(false);
|
|
36
|
+
let Xe = null;
|
|
37
|
+
const Ye = t(null), Ze = document.documentElement.clientWidth - 100, et = document.documentElement.clientHeight - 100, { x: tt, y: at, style: nt } = j(Ae, { initialValue: { x: Ze, y: et }, preventDefault: true, onStart() {
|
|
41
38
|
xe.value = true;
|
|
42
39
|
}, onMove(e3) {
|
|
43
40
|
xe.value = false, function(e4) {
|
|
@@ -46,54 +43,61 @@ const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { styl
|
|
|
46
43
|
e4.x = Math.max(0, Math.min(e4.x, t2)), e4.y = Math.max(0, Math.min(e4.y, a2));
|
|
47
44
|
}(e3);
|
|
48
45
|
}, onEnd() {
|
|
49
|
-
|
|
46
|
+
ot(), setTimeout(() => xe.value = true, 50);
|
|
50
47
|
} });
|
|
51
|
-
function
|
|
48
|
+
function ot() {
|
|
52
49
|
if (!Ae.value)
|
|
53
50
|
return;
|
|
54
51
|
const e3 = window.innerWidth - Ae.value.offsetWidth, t2 = window.innerHeight - Ae.value.offsetHeight;
|
|
55
|
-
|
|
52
|
+
tt.value > e3 && (tt.value = e3), at.value > t2 && (at.value = t2);
|
|
56
53
|
}
|
|
57
|
-
function
|
|
54
|
+
function lt(e3) {
|
|
58
55
|
var _a2;
|
|
59
|
-
Ne.value = true,
|
|
56
|
+
Ne.value = true, De.value = e3, Pe.value = [], je[e3] && 0 !== je[e3].length ? (Pe.value = je[e3], (_a2 = Ue.value) == null ? void 0 : _a2.scrollToBottom()) : Pe.value.push(I);
|
|
60
57
|
}
|
|
61
|
-
function
|
|
58
|
+
function it(e3 = Ce("chatEmbed.requestFailed")) {
|
|
62
59
|
Pe.value.push(q("ai", e3, false, false)), Ee.value = false;
|
|
63
60
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
61
|
+
function ut() {
|
|
62
|
+
if (!xe.value)
|
|
63
|
+
return;
|
|
64
|
+
const e3 = Date.now();
|
|
65
|
+
e3 - qe.value < 300 || (qe.value = e3, Me.value = !Me.value);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function rt(e3) {
|
|
68
68
|
return Te.value[e3] || (Te.value[e3] = X().replace(/-/g, "")), Te.value[e3];
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
lt(De.value), a(Le, (e3) => {
|
|
71
71
|
document.documentElement.style.setProperty("--el-bubble-list-max-height", e3);
|
|
72
|
-
}),
|
|
73
|
-
|
|
72
|
+
}), a(Me, (e3) => {
|
|
73
|
+
e3 && (Oe.value || (Oe.value = true), n(() => {
|
|
74
|
+
mt();
|
|
75
|
+
}));
|
|
76
|
+
}), o(() => {
|
|
77
|
+
if (window.addEventListener("resize", ot), We.value) {
|
|
74
78
|
const e3 = new ResizeObserver(() => {
|
|
75
|
-
|
|
79
|
+
mt();
|
|
76
80
|
});
|
|
77
|
-
e3.observe(
|
|
81
|
+
e3.observe(We.value.$el || We.value), We.value._resizeObserver = e3;
|
|
78
82
|
}
|
|
79
|
-
}), o(() => {
|
|
80
|
-
var _a2;
|
|
81
|
-
((_a2 = Fe.value) == null ? void 0 : _a2._resizeObserver) && Fe.value._resizeObserver.disconnect();
|
|
82
83
|
}), l(() => {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
var _a2;
|
|
85
|
+
((_a2 = We.value) == null ? void 0 : _a2._resizeObserver) && We.value._resizeObserver.disconnect();
|
|
86
|
+
}), i(() => {
|
|
87
|
+
window.removeEventListener("resize", ot), function() {
|
|
88
|
+
Xe && (Xe.abort(), Xe = null);
|
|
89
|
+
we(), Qe.value = false, Ee.value = false;
|
|
86
90
|
}();
|
|
87
91
|
});
|
|
88
|
-
const
|
|
92
|
+
const st = u(() => {
|
|
89
93
|
var _a2, _b2, _c2;
|
|
90
|
-
if (!
|
|
94
|
+
if (!Qe.value || !be.value.length)
|
|
91
95
|
return "";
|
|
92
96
|
const e3 = be.value[be.value.length - 1];
|
|
93
97
|
try {
|
|
94
98
|
const t2 = JSON.parse(e3.data);
|
|
95
99
|
if (t2.isChunk)
|
|
96
|
-
true === t2.data && _e.value.content ? (_e.value.thinkingStatus = R.END, _e.value.showThinkingContent = true, _e.value = {}, Ee.value = false) :
|
|
100
|
+
true === t2.data && _e.value.content ? (_e.value.thinkingStatus = R.END, _e.value.showThinkingContent = true, _e.value = {}, Ee.value = false) : ct(t2);
|
|
97
101
|
else {
|
|
98
102
|
if (!((_a2 = t2.data) == null ? void 0 : _a2.id) && true !== t2.data)
|
|
99
103
|
return Ee.value = false, _e.value && (_e.value.thinkingStatus = R.END), "";
|
|
@@ -101,53 +105,53 @@ const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { styl
|
|
|
101
105
|
return function() {
|
|
102
106
|
if (Ee.value = false, !_e.value)
|
|
103
107
|
return;
|
|
104
|
-
_e.value.content = ee(_e.value.content),
|
|
108
|
+
_e.value.content = ee(_e.value.content), xt();
|
|
105
109
|
}(t2.data.answer), "";
|
|
106
|
-
|
|
110
|
+
ct(t2);
|
|
107
111
|
}
|
|
108
112
|
} catch (e4) {
|
|
109
113
|
console.error("解析数据时出错:", e4), Ee.value = false;
|
|
110
114
|
}
|
|
111
115
|
return "";
|
|
112
116
|
});
|
|
113
|
-
function
|
|
117
|
+
function ct(e3) {
|
|
114
118
|
const t2 = e3.data.answer;
|
|
115
119
|
if (!t2 || !_e.value)
|
|
116
120
|
return;
|
|
117
121
|
const { thinkingContent: a2, mainContent: n2 } = te(t2);
|
|
118
122
|
a2 && (_e.value.thinkingContent = a2), n2 && (e3.isChunk ? _e.value.content += n2 : _e.value.content = n2);
|
|
119
123
|
}
|
|
120
|
-
function
|
|
121
|
-
if (Ee.value = false,
|
|
124
|
+
function vt() {
|
|
125
|
+
if (Ee.value = false, Xe && (Xe.abort(), Xe = null), Qe.value && (we(), Qe.value = false, Pe.value.length > 0)) {
|
|
122
126
|
const e3 = Pe.value[Pe.value.length - 1];
|
|
123
127
|
e3 && "ai" === e3.role && (e3.thinkingStatus = R.END, e3.content || (e3.content = "回答已取消"));
|
|
124
128
|
}
|
|
125
129
|
_e.value && Object.keys(_e.value).length > 0 && (_e.value.thinkingStatus = R.END, _e.value = {});
|
|
126
130
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
131
|
+
function dt() {
|
|
132
|
+
$e.value = !$e.value, mt();
|
|
129
133
|
}
|
|
130
|
-
function
|
|
134
|
+
function mt() {
|
|
131
135
|
let e3 = 100;
|
|
132
|
-
|
|
136
|
+
$e.value && (e3 = 100), n(() => {
|
|
133
137
|
var _a2;
|
|
134
|
-
|
|
135
|
-
const t2 = ((_a2 =
|
|
136
|
-
|
|
138
|
+
$e.value ? (Be.value.style.height = `calc(${e3}vh)`, Be.value.style.width = "calc(100vw)", He.value = "calc(100vw - var(--chat-padding) * 2) * 0.8") : (Be.value.style.height = `calc(${e3}vh - var(--chat-padding) * 2)`, Be.value.style.width = 460 + ze.value + "px", He.value = 0.8 * (460 + ze.value) + "px");
|
|
139
|
+
const t2 = ((_a2 = We.value) == null ? void 0 : _a2.offsetHeight) || 80, a2 = window.innerHeight * e3 / 100 - 56 - t2 - 72;
|
|
140
|
+
Le.value = a2 + "px";
|
|
137
141
|
});
|
|
138
142
|
}
|
|
139
|
-
function
|
|
140
|
-
switch (Ee.value &&
|
|
143
|
+
function ft(e3) {
|
|
144
|
+
switch (Ee.value && vt(), e3.systemCode = pe2, Qe.value = false, e3.aiModel) {
|
|
141
145
|
case $.RAGFLOW:
|
|
142
146
|
!function(e4) {
|
|
143
147
|
if (!e4)
|
|
144
148
|
return;
|
|
145
|
-
be.value = [], Pe.value.push(q("user", e4, true, false)), Ee.value = true, Te.value[
|
|
149
|
+
be.value = [], Pe.value.push(q("user", e4, true, false)), Ee.value = true, Te.value[De.value] ? St(e4) : async function(e5) {
|
|
146
150
|
try {
|
|
147
151
|
const t2 = await window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat", { question: e5 });
|
|
148
|
-
Te.value[
|
|
152
|
+
Te.value[De.value] = t2.session_id, St(e5);
|
|
149
153
|
} catch (e6) {
|
|
150
|
-
console.error("Failed to create session:", e6),
|
|
154
|
+
console.error("Failed to create session:", e6), it();
|
|
151
155
|
}
|
|
152
156
|
}(e4);
|
|
153
157
|
}(e3.question);
|
|
@@ -159,18 +163,18 @@ const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { styl
|
|
|
159
163
|
const t2 = M(e4);
|
|
160
164
|
Pe.value.push(t2), _e.value = O(e4, true), Pe.value.push(_e.value);
|
|
161
165
|
try {
|
|
162
|
-
ne.sendMessageToMcp(e4,
|
|
163
|
-
Ee.value = false, t3 ?
|
|
166
|
+
ne.sendMessageToMcp(e4, rt(De.value)).then(({ answerMessage: e5, errorMessage: t3 }) => {
|
|
167
|
+
Ee.value = false, t3 ? Pt(t3, true) : e5 && Pt(e5);
|
|
164
168
|
}).catch((e5) => {
|
|
165
|
-
Ee.value = false, console.error("MCP error:", e5),
|
|
169
|
+
Ee.value = false, console.error("MCP error:", e5), Pt("未能返回有效信息", true);
|
|
166
170
|
});
|
|
167
171
|
} catch (e5) {
|
|
168
|
-
Ee.value = false, console.error("MCP error:", e5),
|
|
172
|
+
Ee.value = false, console.error("MCP error:", e5), Pt("未能返回有效信息", true);
|
|
169
173
|
}
|
|
170
174
|
}(e3);
|
|
171
175
|
break;
|
|
172
176
|
case $.DEEPSEEK:
|
|
173
|
-
|
|
177
|
+
kt(e3);
|
|
174
178
|
break;
|
|
175
179
|
case $.INTERACTION:
|
|
176
180
|
!function(e4) {
|
|
@@ -178,9 +182,9 @@ const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { styl
|
|
|
178
182
|
return;
|
|
179
183
|
try {
|
|
180
184
|
const t2 = M(e4);
|
|
181
|
-
Pe.value.push(t2),
|
|
185
|
+
Pe.value.push(t2), Ye.value.parseCommand();
|
|
182
186
|
} catch (e5) {
|
|
183
|
-
console.error("systemInteraction error:", e5),
|
|
187
|
+
console.error("systemInteraction error:", e5), it();
|
|
184
188
|
}
|
|
185
189
|
}(e3);
|
|
186
190
|
break;
|
|
@@ -189,15 +193,15 @@ const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { styl
|
|
|
189
193
|
if (!e4.question)
|
|
190
194
|
return;
|
|
191
195
|
const t2 = M(e4);
|
|
192
|
-
Pe.value.push(t2),
|
|
193
|
-
const a2 =
|
|
196
|
+
Pe.value.push(t2), Qe.value = true, Ee.value = true, _e.value = O(e4, true), Pe.value.push(_e.value);
|
|
197
|
+
const a2 = rt(De.value);
|
|
194
198
|
window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/aippt/createPpt", { menuName: e4.menuName, menuCode: e4.menuCode, question: e4.question, additionalDataLabel: e4.additionalDataLabel, additionalData: JSON.stringify(e4.additionalData), fileId: e4.fileId, fileInfos: e4.fileInfos, systemCode: pe2, messageId: a2 }).then((e5) => {
|
|
195
199
|
if (e5.fileUrl) {
|
|
196
200
|
const t3 = ae(e5.fileUrl) || "点击下载";
|
|
197
201
|
_e.value.content = `PPT已生成:[${t3}](${e5.fileUrl})`;
|
|
198
202
|
} else
|
|
199
203
|
_e.value.content = "PPT生成失败,请稍后重试";
|
|
200
|
-
|
|
204
|
+
xt(), Ee.value = false, window.open(e5.fileUrl, "_blank");
|
|
201
205
|
}).finally(() => {
|
|
202
206
|
Ee.value = false;
|
|
203
207
|
});
|
|
@@ -207,57 +211,57 @@ const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { styl
|
|
|
207
211
|
e3.aiModel;
|
|
208
212
|
}
|
|
209
213
|
}
|
|
210
|
-
function mt(e3) {
|
|
211
|
-
wt({ question: e3.question, additionalData: e3.additionalData, additionalDataLabel: e3.additionalDataLabel, menuName: e3.menuName, menuCode: e3.menuCode, aiModel: je.value });
|
|
212
|
-
}
|
|
213
214
|
function ht(e3) {
|
|
215
|
+
kt({ question: e3.question, additionalData: e3.additionalData, additionalDataLabel: e3.additionalDataLabel, menuName: e3.menuName, menuCode: e3.menuCode, aiModel: De.value });
|
|
216
|
+
}
|
|
217
|
+
function pt(e3) {
|
|
214
218
|
if (e3.content) {
|
|
215
|
-
|
|
219
|
+
kt({ question: e3.content, aiModel: De.value });
|
|
216
220
|
}
|
|
217
221
|
}
|
|
218
|
-
function
|
|
222
|
+
function gt() {
|
|
219
223
|
var _a2;
|
|
220
|
-
(_a2 =
|
|
221
|
-
if (Te.value[
|
|
224
|
+
(_a2 = Ye.value) == null ? void 0 : _a2.newChatSession(), Pe.value = [], De.value === $.DEEPSEEK && async function() {
|
|
225
|
+
if (Te.value[De.value])
|
|
222
226
|
try {
|
|
223
|
-
await window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck/clear/" + Te.value[
|
|
227
|
+
await window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck/clear/" + Te.value[De.value]);
|
|
224
228
|
} catch (e3) {
|
|
225
|
-
console.error("Failed to clear session:", e3),
|
|
229
|
+
console.error("Failed to clear session:", e3), it();
|
|
226
230
|
}
|
|
227
|
-
}(), Ie.value = null, Te.value[
|
|
231
|
+
}(), Ie.value = null, Te.value[De.value] = null, Ee.value = false, je[De.value] = [], lt(De.value);
|
|
228
232
|
}
|
|
229
|
-
function
|
|
230
|
-
De
|
|
233
|
+
function yt(e3) {
|
|
234
|
+
je[De.value] = JSON.parse(JSON.stringify(Pe.value)), lt(e3);
|
|
231
235
|
}
|
|
232
|
-
function
|
|
233
|
-
|
|
236
|
+
function wt(e3) {
|
|
237
|
+
Fe.value = e3, Ve.value = true;
|
|
234
238
|
}
|
|
235
|
-
function
|
|
239
|
+
function bt(e3, t2) {
|
|
236
240
|
try {
|
|
237
241
|
Y(e3, Z(t2 || "data"));
|
|
238
242
|
} catch (e4) {
|
|
239
243
|
console.error("下载失败:", e4);
|
|
240
244
|
}
|
|
241
245
|
}
|
|
242
|
-
async function
|
|
246
|
+
async function kt(e3) {
|
|
243
247
|
if (e3.question)
|
|
244
248
|
try {
|
|
245
249
|
const t2 = M(e3);
|
|
246
|
-
Pe.value.push(t2),
|
|
247
|
-
const a2 =
|
|
248
|
-
_e.value = O(e3, true), Pe.value.push(_e.value),
|
|
249
|
-
const n2 = N(), o2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck", { method: "POST", headers: { "Content-Type": "application/json", authorization: n2 || "" }, body: JSON.stringify({ question: e3.question, messageId: a2, data: JSON.stringify(e3.additionalData), fileId: e3.fileId, systemCode: pe2 }), signal:
|
|
250
|
+
Pe.value.push(t2), Qe.value = true, Ee.value = true;
|
|
251
|
+
const a2 = rt(De.value);
|
|
252
|
+
_e.value = O(e3, true), Pe.value.push(_e.value), Xe = new AbortController();
|
|
253
|
+
const n2 = N(), o2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck", { method: "POST", headers: { "Content-Type": "application/json", authorization: n2 || "" }, body: JSON.stringify({ question: e3.question, messageId: a2, data: JSON.stringify(e3.additionalData), fileId: e3.fileId, systemCode: pe2 }), signal: Xe.signal });
|
|
250
254
|
if (!o2.body)
|
|
251
255
|
throw new Error("No response body");
|
|
252
256
|
await ye({ readableStream: o2.body });
|
|
253
257
|
} catch (e4) {
|
|
254
|
-
console.error("DeepSeek error:", e4),
|
|
258
|
+
console.error("DeepSeek error:", e4), it();
|
|
255
259
|
}
|
|
256
260
|
}
|
|
257
|
-
async function
|
|
261
|
+
async function St(e3) {
|
|
258
262
|
try {
|
|
259
|
-
|
|
260
|
-
const t2 = N(), a2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat-stream", { method: "POST", headers: { "Content-Type": "text/event-stream", authorization: t2 }, body: JSON.stringify({ question: e3, stream: true, systemCode: pe2, session_id: Te.value[
|
|
263
|
+
Qe.value = true, _e.value = O({ question: e3 }, true), _e.value.messageType = "realtime", Pe.value.push(_e.value), Xe = new AbortController();
|
|
264
|
+
const t2 = N(), a2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat-stream", { method: "POST", headers: { "Content-Type": "text/event-stream", authorization: t2 }, body: JSON.stringify({ question: e3, stream: true, systemCode: pe2, session_id: Te.value[De.value] }), signal: Xe.signal });
|
|
261
265
|
if (!a2.body)
|
|
262
266
|
throw new Error("No response body");
|
|
263
267
|
await ye({ readableStream: a2.body });
|
|
@@ -267,13 +271,13 @@ const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { styl
|
|
|
267
271
|
console.error("SSE error:", e4), Ee.value = false;
|
|
268
272
|
}
|
|
269
273
|
}
|
|
270
|
-
function
|
|
274
|
+
function Ct(e3) {
|
|
271
275
|
const t2 = e3.doc_name.split(".").pop();
|
|
272
276
|
window.open(`http://101.43.172.105/document/${e3.doc_id}?ext=${t2}&prefix=document`);
|
|
273
277
|
}
|
|
274
|
-
function
|
|
275
|
-
Ee.value = true,
|
|
276
|
-
const t2 = { question: e3.content, aiModel:
|
|
278
|
+
function At(e3) {
|
|
279
|
+
Ee.value = true, rt(De.value);
|
|
280
|
+
const t2 = { question: e3.content, aiModel: De.value };
|
|
277
281
|
if (_e.value = O(t2, false), Pe.value.push(_e.value), _e.value.thinkingStatus = R.NONE, e3.url) {
|
|
278
282
|
const t3 = e3.command ? e3.command : e3.content;
|
|
279
283
|
_e.value.link = e3.url, _e.value.linkTitle = t3, _e.value.content = e3.content;
|
|
@@ -281,26 +285,26 @@ const le = { key: 0 }, ie = ["src"], ue = { class: "chat-content" }, re = { styl
|
|
|
281
285
|
_e.value.content = e3.content;
|
|
282
286
|
_e.value = {}, Ee.value = false;
|
|
283
287
|
}
|
|
284
|
-
function
|
|
285
|
-
_e.value.thinkingStatus = R.END, _e.value.showThinkingContent = true, _e.value.messageType = "history", _e.value = {}, Ne.value &&
|
|
288
|
+
function xt(e3 = false) {
|
|
289
|
+
_e.value.thinkingStatus = R.END, _e.value.showThinkingContent = true, _e.value.messageType = "history", _e.value = {}, Ne.value && Ke.value.addCurrentToSessionHistory(Te.value[De.value], Pe.value), e3 || (Ne.value = false);
|
|
286
290
|
}
|
|
287
|
-
function
|
|
288
|
-
_e.value.content = e3, t2 && (_e.value.thinkingStatus = R.ERROR),
|
|
291
|
+
function Pt(e3, t2 = false) {
|
|
292
|
+
_e.value.content = e3, t2 && (_e.value.thinkingStatus = R.ERROR), xt(t2);
|
|
289
293
|
}
|
|
290
|
-
function
|
|
291
|
-
Ne.value = false, Ie.value = e3, Te.value[
|
|
292
|
-
Pe.value = t2,
|
|
294
|
+
function _t(e3, t2) {
|
|
295
|
+
Ne.value = false, Ie.value = e3, Te.value[De.value] = e3.sessionId, t2.length > 0 && (Pe.value = []), n(() => {
|
|
296
|
+
Pe.value = t2, n(() => {
|
|
293
297
|
var _a2;
|
|
294
|
-
(_a2 =
|
|
298
|
+
(_a2 = Ue.value) == null ? void 0 : _a2.scrollToBottom();
|
|
295
299
|
});
|
|
296
300
|
});
|
|
297
301
|
}
|
|
298
|
-
return (e3, t2) => ge.value ? (r(), s("div", le, [c("div", { ref_key: "chatIcon", ref: Ae, style: v([d(
|
|
302
|
+
return (e3, t2) => ge.value ? (r(), s("div", le, [c("div", { ref_key: "chatIcon", ref: Ae, style: v([d(nt), { position: "fixed", cursor: "pointer", "z-index": "100" }]) }, [c("img", { src: d(K), alt: "AI Avatar", onClick: ut, style: { width: "50px", height: "50px" } }, null, 8, ie)], 4), m(f, { name: "slide-up" }, { default: h(() => [Oe.value ? p((r(), s("div", { key: 0, ref_key: "chatContainerRef", ref: Be, class: g(["chat-container", $e.value ? "full-screen" : "small-window"]), style: { display: "flex", flexDirection: "row" } }, [m(Q, { ref_key: "sidebarItemRef", ref: Ke, style: v({ width: ze.value + "px" }), onSelectHistoryItem: _t, onNewChatSession: gt, onUpdateAiHistory: t2[0] || (t2[0] = (e4) => {
|
|
299
303
|
Ie.value.value = e4;
|
|
300
|
-
}), dialogFullScreen:
|
|
304
|
+
}), dialogFullScreen: $e.value, aiModel: De.value }, null, 8, ["style", "dialogFullScreen", "aiModel"]), c("div", ue, [m(V, { aiAvatar: Je.value, aiModel: De.value, chatSessionId: Te.value, dialogFullScreen: $e.value, aiHistory: Ie.value, onExpandDialog: dt, onShowChatDialog: ut, onNewChatSession: gt }, null, 8, ["aiAvatar", "aiModel", "chatSessionId", "dialogFullScreen", "aiHistory"]), c("div", re, [(r(), s("div", { ref_key: "talkMainRef", ref: Ge, class: "chat-embed__main", key: Re.value }, [c("div", se, [m(d(_), { ref_key: "bubbleListRef", ref: Ue, list: Pe.value, "max-height": Le.value, "is-fog": true }, { avatar: h(({ item: e4 }) => [...t2[2] || (t2[2] = [])]), content: h(({ item: e4 }) => {
|
|
301
305
|
var _a2;
|
|
302
|
-
return [e4.isRecommend || null === e4.thinkingContent ? b("", true) : (r(), s(y, { key: 0 }, ["failed" !== e4.messageStatus ? (r(), w(d(E), { key: 0, "button-width": "180px", style: { "margin-bottom": "5px" }, modelValue: e4.showThinkingContent, "onUpdate:modelValue": (t3) => e4.showThinkingContent = t3, status: e4.thinkingStatus, "auto-collapse": "", content: e4.thinkingContent, typing: { interval: 20 }, duration: ".3s" }, null, 8, ["modelValue", "onUpdate:modelValue", "status", "content"])) : b("", true)], 64)), e4.link ? (r(), s("a", { key: 1, href: e4.link, title: e4.linkTitle, target: "blank" }, k(e4.content), 9, ce)) : e4.content ? (r(), s(y, { key: 2 }, [c("div", { class: g(["ai" === e4.role ? "content-container" : "content-borderless-container", "chat-content-font"]) }, ["ai" !== e4.role || e4.isRecommend ? "user" === e4.role ? (r(), s(y, { key: 1 }, [S(k(e4.content) + " ", 1), ((_a2 = e4.additionalData) == null ? void 0 : _a2.length) > 0 && e4.additionalDataLabel ? (r(), w(L, { key: 0, item: e4, onViewJson:
|
|
303
|
-
}), footer:
|
|
306
|
+
return [e4.isRecommend || null === e4.thinkingContent ? b("", true) : (r(), s(y, { key: 0 }, ["failed" !== e4.messageStatus ? (r(), w(d(E), { key: 0, "button-width": "180px", style: { "margin-bottom": "5px" }, modelValue: e4.showThinkingContent, "onUpdate:modelValue": (t3) => e4.showThinkingContent = t3, status: e4.thinkingStatus, "auto-collapse": "", content: e4.thinkingContent, typing: { interval: 20 }, duration: ".3s" }, null, 8, ["modelValue", "onUpdate:modelValue", "status", "content"])) : b("", true)], 64)), e4.link ? (r(), s("a", { key: 1, href: e4.link, title: e4.linkTitle, target: "blank" }, k(e4.content), 9, ce)) : e4.content ? (r(), s(y, { key: 2 }, [c("div", { class: g(["ai" === e4.role ? "content-container" : "content-borderless-container", "chat-content-font"]) }, ["ai" !== e4.role || e4.isRecommend ? "user" === e4.role ? (r(), s(y, { key: 1 }, [S(k(e4.content) + " ", 1), ((_a2 = e4.additionalData) == null ? void 0 : _a2.length) > 0 && e4.additionalDataLabel ? (r(), w(L, { key: 0, item: e4, onViewJson: wt, onDownloadJson: bt }, null, 8, ["item"])) : b("", true)], 64)) : (r(), s(y, { key: 2 }, [S(k(e4.content), 1)], 64)) : (r(), s(y, { key: 0 }, [e4.messageType && "history" !== e4.messageType ? (r(), w(d(T), { key: 1, allowHtml: "", content: e4.content, typing: true, "is-markdown": true, "is-fog": "" }, null, 8, ["content"])) : (r(), w(d(D), { key: 0, markdown: e4.content, allowHtml: true, content: e4.content, typing: { interval: 10 }, "is-markdown": true }, { "amb-ai-tip": h(({ ...t3 }) => [m(J, { item: e4, itemProps: t3, onClickDocAgg: Ct }, null, 8, ["item", "itemProps"])]), "amb-alink": h(({ ...e5 }) => [c("a", { href: e5.href, target: e5.target }, k(e5.text), 9, ve)]), "amb-home-chart": h(({ ...e5 }) => [m(W, { chartProps: e5, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-interaction-data": h(({ ...e5 }) => [m(B, { chartProps: e5, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-auto-chart": h(({ ...e5 }) => [m(G, { chartProps: e5, class: "chat-chart-container" }, null, 8, ["chartProps"])]), _: 2 }, 1032, ["markdown", "content"]))], 64)), c("div", de, [c("span", null, k(e4.sendTime), 1)])], 2), e4.recommendations && e4.recommendations.length > 0 ? (r(), w(H, { key: 0, item: e4, onClickRecommendation: pt }, null, 8, ["item"])) : b("", true), e4.docAggs && e4.docAggs.length > 0 ? (r(), s("div", me, [t2[3] || (t2[3] = c("div", { class: "content-container-header" }, "引用文件", -1)), (r(true), s(y, null, C(e4.docAggs, (e5, t3) => (r(), s("div", { onClick: (t4) => Ct(e5), class: "doc-agg-item" }, k(e5.doc_name), 9, fe))), 256))])) : b("", true)], 64)) : b("", true)];
|
|
307
|
+
}), footer: h(({ item: e4 }) => [m(z, { item: e4, onRegenerate: ht }, null, 8, ["item"])]), _: 1 }, 8, ["list", "max-height"]), c("div", he, k(st.value), 1)]), c("div", { ref_key: "talkInputRef", ref: We, class: "chat-embed__input_container" }, [m(F, { loading: Ee.value, ref_key: "chatSenderRef", ref: Ye, onSubmitQuestion: ft, onCommandAnswer: At, onHandleCancel: vt, onViewJson: wt, onChangeAiModel: yt }, null, 8, ["loading"])], 512)]))])])], 2)), [[A, Me.value]]) : b("", true)]), _: 1 }), m(d(U), { modelValue: Ve.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => Ve.value = e4), "json-object": Fe.value, "append-to-body": true, title: "预览数据" }, null, 8, ["modelValue", "json-object"])])) : b("", true);
|
|
304
308
|
} });
|
|
305
309
|
export {
|
|
306
310
|
pe as default
|