agilebuilder-ui 1.1.65-tmp7 → 1.1.65-tmp9
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/directives/prevent-reclick.js +1 -1
- package/lib/index.js +131 -131
- package/lib/json-view/json-view.vue2.js +8 -8
- package/lib/plugins/export-data-new.js +1 -1
- package/lib/rich-editor/index.vue.js +3 -3
- package/lib/style.css +602 -602
- package/package.json +1 -1
- package/vite.config.js +54 -3
- package/lib/IntervalSelection/src/sectionDate.vue.js +0 -49
- package/lib/IntervalSelection/src/sectionDate.vue2.js +0 -4
- package/lib/breadcrumb/src/breadcrumb.vue.js +0 -28
- package/lib/breadcrumb/src/breadcrumb.vue2.js +0 -4
- package/lib/chat-embed/src/chat-addition-data.vue.js +0 -7
- package/lib/chat-embed/src/chat-addition-data.vue2.js +0 -14
- package/lib/chat-embed/src/chat-addition-data.vue3.js +0 -4
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.js +0 -7
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.js +0 -29
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.js +0 -4
- package/lib/chat-embed/src/chat-bubble-footer.vue.js +0 -7
- package/lib/chat-embed/src/chat-bubble-footer.vue2.js +0 -33
- package/lib/chat-embed/src/chat-bubble-footer.vue3.js +0 -4
- package/lib/chat-embed/src/chat-embed-message.js +0 -22
- package/lib/chat-embed/src/chat-sender.vue.js +0 -7
- package/lib/chat-embed/src/chat-sender.vue2.js +0 -157
- package/lib/chat-embed/src/chat-sender.vue3.js +0 -4
- package/lib/chat-embed/src/components/answer-auto-chart.vue.js +0 -7
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.js +0 -59
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.js +0 -4
- package/lib/chat-embed/src/components/answer-home-chart.vue.js +0 -7
- package/lib/chat-embed/src/components/answer-home-chart.vue2.js +0 -6
- package/lib/chat-embed/src/components/answer-home-chart.vue3.js +0 -4
- package/lib/chat-embed/src/components/answer-interaction-data.vue.js +0 -7
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.js +0 -118
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.js +0 -4
- package/lib/chat-embed/src/components/history-detail.vue.js +0 -7
- package/lib/chat-embed/src/components/history-detail.vue2.js +0 -55
- package/lib/chat-embed/src/components/history-detail.vue3.js +0 -4
- package/lib/chat-embed/src/header.vue.js +0 -7
- package/lib/chat-embed/src/header.vue2.js +0 -46
- package/lib/chat-embed/src/header.vue3.js +0 -4
- package/lib/chat-embed/src/index.vue.js +0 -7
- package/lib/chat-embed/src/index.vue2.js +0 -303
- package/lib/chat-embed/src/index.vue3.js +0 -4
- package/lib/chat-embed/src/recommendation-message.vue.js +0 -7
- package/lib/chat-embed/src/recommendation-message.vue2.js +0 -8
- package/lib/chat-embed/src/recommendation-message.vue3.js +0 -4
- package/lib/chat-embed/src/sidebar-item.vue.js +0 -7
- package/lib/chat-embed/src/sidebar-item.vue2.js +0 -118
- package/lib/chat-embed/src/sidebar-item.vue3.js +0 -4
- package/lib/chat-embed/src/type.js +0 -5
- package/lib/chat-embed/src/util/chat-embed-util.js +0 -57
- package/lib/chat-embed/src/util/history-message-util.js +0 -96
- package/lib/chat-embed/src/util/mcp-utils.js +0 -53
- package/lib/chat-embed/src/util/text-file-util.js +0 -12
- package/lib/chat-embed/src/voice/index.js +0 -7
- package/lib/chat-embed/src/voice/js/crypto-js.js +0 -1013
- package/lib/chat-embed/src/voice/js/processor/index.umd.js +0 -178
- package/lib/chat-embed/src/voice/js/timer.js +0 -11
- package/lib/chat-embed/src/voice/voice.vue.js +0 -103
- package/lib/department-tree/src/department-tree.vue.js +0 -23
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.js +0 -91
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.js +0 -4
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.js +0 -64
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.js +0 -4
- package/lib/department-tree-inline/src/department-tree-inline.vue.js +0 -17
- package/lib/department-tree-inline/src/department-tree-service.js +0 -108
- package/lib/department-tree-inline/src/search-result.vue.js +0 -39
- package/lib/department-tree-inline/src/search-result.vue2.js +0 -4
- package/lib/department-tree-mobile/src/department-tree-app.vue.js +0 -15
- package/lib/department-tree-mobile/src/department-tree-app.vue2.js +0 -4
- package/lib/department-tree-mobile/src/department-tree-app.vue3.js +0 -5
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.js +0 -121
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.js +0 -4
- package/lib/department-tree-mobile/src/department-tree-service.js +0 -55
- package/lib/department-tree-mobile/src/dept-path.vue.js +0 -14
- package/lib/department-tree-mobile/src/dept-path.vue2.js +0 -4
- package/lib/department-tree-mobile/src/dept-result.vue.js +0 -16
- package/lib/department-tree-mobile/src/dept-result.vue2.js +0 -4
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.js +0 -20
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.js +0 -4
- package/lib/department-user-tree/src/department-user-single-tree.vue.js +0 -19
- package/lib/department-user-tree/src/department-user-tree.vue.js +0 -27
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +0 -165
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +0 -4
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +0 -69
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +0 -4
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.js +0 -16
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -81
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.js +0 -54
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.js +0 -39
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.js +0 -27
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.js +0 -16
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.js +0 -78
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.js +0 -34
- package/lib/department-user-tree-inline/src/group-user-tree-service.js +0 -34
- package/lib/department-user-tree-inline/src/search-result.vue.js +0 -41
- package/lib/department-user-tree-inline/src/search-result.vue2.js +0 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.js +0 -15
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.js +0 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.js +0 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +0 -135
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +0 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-service.js +0 -38
- package/lib/department-user-tree-mobile/src/dept-path.vue.js +0 -14
- package/lib/department-user-tree-mobile/src/dept-path.vue2.js +0 -4
- package/lib/department-user-tree-mobile/src/dept-result.vue.js +0 -17
- package/lib/department-user-tree-mobile/src/dept-result.vue2.js +0 -4
- package/lib/dynamic-source-select/src/dynamic-source-select-service.js +0 -32
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.js +0 -275
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.js +0 -4
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.js +0 -4
- package/lib/dynamic-source-select/src/events.js +0 -29
- package/lib/fs-preview/src/fs-preview.vue.js +0 -120
- package/lib/fs-preview/src/fs-preview.vue2.js +0 -4
- package/lib/fs-upload/src/fs-upload-multi.vue.js +0 -71
- package/lib/fs-upload/src/fs-upload-single.vue.js +0 -73
- package/lib/fs-upload/src/fs-upload.vue.js +0 -24
- package/lib/fs-upload/src/see-big-picture.vue.js +0 -12
- package/lib/fs-upload-list/src/fs-upload-list.vue.js +0 -97
- package/lib/fs-upload-list/src/fs-upload-list.vue2.js +0 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +0 -61
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +0 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +0 -178
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +0 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +0 -7
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +0 -38
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +0 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +0 -45
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +0 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +0 -35
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +0 -4
- package/lib/fs-upload-new/src/fs-button-upload.vue.js +0 -7
- package/lib/fs-upload-new/src/fs-button-upload.vue2.js +0 -62
- package/lib/fs-upload-new/src/fs-button-upload.vue3.js +0 -4
- package/lib/fs-upload-new/src/fs-drag-upload.vue.js +0 -7
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.js +0 -63
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.js +0 -4
- package/lib/fs-upload-new/src/fs-preview-new.vue.js +0 -8
- package/lib/fs-upload-new/src/fs-preview-new.vue2.js +0 -93
- package/lib/fs-upload-new/src/fs-preview-new.vue3.js +0 -4
- package/lib/fs-upload-new/src/fs-preview-new.vue4.js +0 -4
- package/lib/fs-upload-new/src/fs-upload-new.vue.js +0 -65
- package/lib/fs-upload-new/src/fs-upload-new.vue2.js +0 -4
- package/lib/hamburger/src/hamburger.vue.js +0 -15
- package/lib/hamburger/src/hamburger.vue2.js +0 -4
- package/lib/multipart-upload/src/index.vue.js +0 -13
- package/lib/multipart-upload/src/multipart-upload-form.vue.js +0 -82
- package/lib/multipart-upload/src/multipart-upload-list.vue.js +0 -101
- package/lib/organization-input/src/organization-input.vue.js +0 -224
- package/lib/organization-input/src/organization-input.vue2.js +0 -4
- package/lib/remove-department/src/remove-department.vue.js +0 -33
- package/lib/remove-department/src/remove-dept-service.js +0 -13
- package/lib/remove-user/src/remove-user-service.js +0 -13
- package/lib/remove-user/src/remove-user.vue.js +0 -35
- package/lib/remove-workgroup/src/remove-workgroup-service.js +0 -13
- package/lib/remove-workgroup/src/remove-workgroup.vue.js +0 -31
- package/lib/scan-code-input/src/events.js +0 -15
- package/lib/scan-code-input/src/scan-code-input.vue.js +0 -32
- package/lib/scan-code-input-browser/src/scan-code-input.vue.js +0 -39
- package/lib/src/api/sso-service.js +0 -57
- package/lib/src/api/tab.js +0 -15
- package/lib/src/assets/401/401.gif.js +0 -4
- package/lib/src/assets/404/404-cloud.png.js +0 -4
- package/lib/src/assets/404/404.png.js +0 -4
- package/lib/src/assets/chat-embed/robot.gif.js +0 -4
- package/lib/src/assets/chat-embed/robot.svg.js +0 -4
- package/lib/src/assets/nonemessage.png.js +0 -4
- package/lib/src/components/Affix/index.vue.js +0 -7
- package/lib/src/components/Affix/index.vue2.js +0 -81
- package/lib/src/components/Affix/index.vue3.js +0 -4
- package/lib/src/components/Card/index.js +0 -48
- package/lib/src/components/Scrollbar/index.vue.js +0 -51
- package/lib/src/components/Scrollbar/index.vue2.js +0 -4
- package/lib/src/directives/permission/index.js +0 -7
- package/lib/src/directives/permission/permission.js +0 -11
- package/lib/src/i18n/i18n.js +0 -7
- package/lib/src/i18n/langs/cn.js +0 -4
- package/lib/src/i18n/langs/en.js +0 -4
- package/lib/src/mixins/resizeMixin.js +0 -21
- package/lib/src/permission.js +0 -78
- package/lib/src/router/index.js +0 -9
- package/lib/src/store/getters.js +0 -4
- package/lib/src/store/index.js +0 -13
- package/lib/src/store/modules/app.js +0 -41
- package/lib/src/store/modules/chat-ai-store.js +0 -36
- package/lib/src/store/modules/permission.js +0 -31
- package/lib/src/store/modules/system.js +0 -12
- package/lib/src/store/modules/tab-content.js +0 -20
- package/lib/src/store/modules/table.js +0 -18
- package/lib/src/store/modules/user.js +0 -139
- package/lib/src/utils/auth-api.js +0 -134
- package/lib/src/utils/auth.js +0 -156
- package/lib/src/utils/calculator/calculator-factory-wf.js +0 -167
- package/lib/src/utils/calculator/calculator-factory.js +0 -93
- package/lib/src/utils/calculator/calculator-util.js +0 -54
- package/lib/src/utils/chat-ai-util.js +0 -30
- package/lib/src/utils/common-util.js +0 -438
- package/lib/src/utils/eventBus.js +0 -6
- package/lib/src/utils/file-util.js +0 -23
- package/lib/src/utils/global-prop.js +0 -38
- package/lib/src/utils/guid.js +0 -10
- package/lib/src/utils/i18n-util.js +0 -70
- package/lib/src/utils/iconUtils.js +0 -26
- package/lib/src/utils/index.js +0 -46
- package/lib/src/utils/insert_css.js +0 -16
- package/lib/src/utils/json-util.js +0 -47
- package/lib/src/utils/jump-page-utils.js +0 -264
- package/lib/src/utils/local-storage.js +0 -19
- package/lib/src/utils/menu.js +0 -14
- package/lib/src/utils/permission.js +0 -45
- package/lib/src/utils/permissionAuth.js +0 -153
- package/lib/src/utils/range-selector.js +0 -105
- package/lib/src/utils/request.js +0 -140
- package/lib/src/utils/resize.js +0 -11
- package/lib/src/utils/restful-interface-utils.js +0 -18
- package/lib/src/utils/util.js +0 -361
- package/lib/src/utils/validate.js +0 -22
- package/lib/src/utils/voice-setting-cache.js +0 -211
- package/lib/src/utils/watermark-cache.js +0 -15
- package/lib/src/utils/watermark.js +0 -40
- package/lib/src/utils/workflow-util.js +0 -42
- package/lib/src/views/dsc-component/Sidebar/Item.vue.js +0 -7
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.js +0 -12
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.js +0 -4
- package/lib/src/views/dsc-component/Sidebar/Link.vue.js +0 -14
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.js +0 -53
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +0 -4
- package/lib/src/views/dsc-component/Sidebar/index.vue.js +0 -111
- package/lib/src/views/dsc-component/tabs/tab-content.vue.js +0 -63
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.js +0 -4
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.js +0 -4
- package/lib/src/views/error-page/401.vue.js +0 -15
- package/lib/src/views/error-page/401.vue2.js +0 -4
- package/lib/src/views/error-page/404.vue.js +0 -12
- package/lib/src/views/error-page/404.vue2.js +0 -4
- package/lib/src/views/layout/EmptyLayout.vue.js +0 -9
- package/lib/src/views/layout/Layout.vue.js +0 -28
- package/lib/src/views/layout/Layout.vue2.js +0 -4
- package/lib/src/views/layout/NewLayout.vue.js +0 -11
- package/lib/src/views/layout/components/AppMain.vue.js +0 -13
- package/lib/src/views/layout/components/AppMain.vue2.js +0 -4
- package/lib/src/views/layout/components/Breadcrumb/index.vue.js +0 -48
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.js +0 -4
- package/lib/src/views/layout/components/Menubar/Item.vue.js +0 -7
- package/lib/src/views/layout/components/Menubar/Item.vue2.js +0 -15
- package/lib/src/views/layout/components/Menubar/Item.vue3.js +0 -4
- package/lib/src/views/layout/components/Menubar/Link.vue.js +0 -14
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.js +0 -56
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.js +0 -4
- package/lib/src/views/layout/components/Menubar/index.vue.js +0 -90
- package/lib/src/views/layout/components/Sidebar/Item.vue.js +0 -9
- package/lib/src/views/layout/components/Sidebar/Item.vue2.js +0 -4
- package/lib/src/views/layout/components/Sidebar/Link.vue.js +0 -12
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.js +0 -22
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.js +0 -4
- package/lib/src/views/layout/components/Sidebar/index.vue.js +0 -58
- package/lib/src/views/layout/components/iframe-page.vue.js +0 -14
- package/lib/src/views/layout/components/iframe-page.vue2.js +0 -4
- package/lib/src/views/layout/components/tabs/tab-content.vue.js +0 -62
- package/lib/src/views/layout/components/tabs/tab-content.vue2.js +0 -4
- package/lib/src/views/layout/components/tabs/tab-content.vue3.js +0 -4
- package/lib/src/views/layout/mixin/ResizeHandler.js +0 -16
- package/lib/src/views/layout/tab-content-iframe-index.vue.js +0 -14
- package/lib/src/views/layout/tab-content-iframe-index.vue2.js +0 -4
- package/lib/src/views/layout/tab-content-index.vue.js +0 -28
- package/lib/src/views/layout/tab-content-index.vue2.js +0 -4
- package/lib/src/views/login/authredirect.vue.js +0 -7
- package/lib/src/views/redirect/index.vue.js +0 -8
- package/lib/src/views/svg-icon/src/svg-icon.vue.js +0 -4
- package/lib/src/views/wf-history/tache-subprocess-history.vue.js +0 -14
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.js +0 -4
- package/lib/super-grid/src/apis.js +0 -458
- package/lib/super-grid/src/columns-config.vue.js +0 -81
- package/lib/super-grid/src/components/grid-icon.vue.js +0 -47
- package/lib/super-grid/src/components/grid-radio-input.vue.js +0 -25
- package/lib/super-grid/src/components/grid-radio-input.vue2.js +0 -4
- package/lib/super-grid/src/components/mobile-table-card.js +0 -109
- package/lib/super-grid/src/components/select-input.vue.js +0 -148
- package/lib/super-grid/src/components/select-input.vue2.js +0 -4
- package/lib/super-grid/src/custom-formatter.js +0 -167
- package/lib/super-grid/src/dynamic-input.vue.js +0 -481
- package/lib/super-grid/src/eventBus.js +0 -6
- package/lib/super-grid/src/events.js +0 -37
- package/lib/super-grid/src/formValidatorUtil.js +0 -109
- package/lib/super-grid/src/formatter.js +0 -74
- package/lib/super-grid/src/group-column.vue.js +0 -24
- package/lib/super-grid/src/header-context-menu.vue.js +0 -14
- package/lib/super-grid/src/header-context-menu.vue2.js +0 -4
- package/lib/super-grid/src/index-column.vue.js +0 -22
- package/lib/super-grid/src/normal-column-content.vue.js +0 -318
- package/lib/super-grid/src/normal-column-content.vue2.js +0 -4
- package/lib/super-grid/src/normal-column.vue.js +0 -106
- package/lib/super-grid/src/normal-column.vue2.js +0 -4
- package/lib/super-grid/src/public-methods.js +0 -22
- package/lib/super-grid/src/row-detail.vue.js +0 -14
- package/lib/super-grid/src/row-operation.vue.js +0 -89
- package/lib/super-grid/src/row-operation.vue2.js +0 -4
- package/lib/super-grid/src/scan-util.js +0 -100
- package/lib/super-grid/src/search-button.vue.js +0 -23
- package/lib/super-grid/src/search-condition-input.vue.js +0 -17
- package/lib/super-grid/src/search-condition-list.vue.js +0 -20
- package/lib/super-grid/src/search-form-advancedQuery.vue.js +0 -116
- package/lib/super-grid/src/search-form-advancedQuery.vue2.js +0 -4
- package/lib/super-grid/src/search-form-dialog.vue.js +0 -16
- package/lib/super-grid/src/search-form-item.vue.js +0 -128
- package/lib/super-grid/src/search-form-item.vue2.js +0 -4
- package/lib/super-grid/src/search-form-mobile.vue.js +0 -41
- package/lib/super-grid/src/search-form-mobile.vue2.js +0 -4
- package/lib/super-grid/src/search-form-number.vue.js +0 -26
- package/lib/super-grid/src/search-form-open.vue.js +0 -50
- package/lib/super-grid/src/search-form-ordinarySearch.vue.js +0 -39
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.js +0 -4
- package/lib/super-grid/src/search-form.vue.js +0 -201
- package/lib/super-grid/src/search-form.vue2.js +0 -4
- package/lib/super-grid/src/search-methods.js +0 -164
- package/lib/super-grid/src/selection-column.vue.js +0 -11
- package/lib/super-grid/src/store.js +0 -4
- package/lib/super-grid/src/super-grid-service.js +0 -259
- package/lib/super-grid/src/super-grid.vue.js +0 -1052
- package/lib/super-grid/src/super-grid.vue2.js +0 -4
- package/lib/super-grid/src/utils.js +0 -355
- package/lib/super-grid/src/view-image-dialog.vue.js +0 -67
- package/lib/super-icon/src/index.vue.js +0 -7
- package/lib/super-icon/src/index.vue2.js +0 -13
- package/lib/super-icon/src/index.vue3.js +0 -4
- package/lib/super-nine-grid/src/apis.js +0 -36
- package/lib/super-nine-grid/src/custom-formatter.js +0 -35
- package/lib/super-nine-grid/src/formatter.js +0 -37
- package/lib/super-nine-grid/src/search-form-number.vue.js +0 -13
- package/lib/super-nine-grid/src/search-form.vue.js +0 -91
- package/lib/super-nine-grid/src/search-form.vue2.js +0 -4
- package/lib/super-nine-grid/src/search-methods.js +0 -48
- package/lib/super-nine-grid/src/store.js +0 -4
- package/lib/super-nine-grid/src/super-grid-service.js +0 -39
- package/lib/super-nine-grid/src/super-nine-grid.vue.js +0 -225
- package/lib/super-nine-grid/src/super-nine-grid.vue2.js +0 -4
- package/lib/super-nine-grid/src/utils.js +0 -32
- package/lib/svg-icon/src/svg-icon.vue.js +0 -14
- package/lib/svg-icon/src/svg-icon.vue2.js +0 -4
- package/lib/valid-code/src/valid-code.vue.js +0 -23
- package/lib/valid-code/src/valid-code.vue2.js +0 -4
- package/lib/workflow-button/src/workflow-button.vue.js +0 -85
- package/lib/workflow-history-list/src/api.js +0 -6
- package/lib/workflow-history-list/src/workflow-history-list.vue.js +0 -89
- package/lib/workflow-history-list/src/workflow-history-list.vue2.js +0 -4
- package/lib/workgroup-tree/src/workgroup-tree.vue.js +0 -23
- package/lib/workgroup-tree-inline/src/search-result.vue.js +0 -39
- package/lib/workgroup-tree-inline/src/search-result.vue2.js +0 -4
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +0 -128
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +0 -4
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.js +0 -35
- package/lib/workgroup-tree-mobile/src/dept-result.vue.js +0 -16
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.js +0 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +0 -15
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +0 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +0 -5
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +0 -109
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +0 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.js +0 -33
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.js +0 -23
- package/lib/workgroup-user-tree-inline/src/search-result.vue.js +0 -39
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.js +0 -4
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +0 -73
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +0 -172
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +0 -4
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.js +0 -14
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.js +0 -4
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.js +0 -17
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.js +0 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +0 -15
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +0 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +0 -5
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +0 -135
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +0 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +0 -29
- package/lib/year-range-picker/src/year-range-picker.vue.js +0 -14
- package/packages/IntervalSelection/index.js +0 -6
- package/packages/IntervalSelection/src/quarterScope.vue +0 -405
- package/packages/IntervalSelection/src/sectionDate.vue +0 -475
- package/packages/breadcrumb/index.js +0 -6
- package/packages/breadcrumb/src/breadcrumb.vue +0 -81
- package/packages/chat-embed/index.ts +0 -6
- package/packages/chat-embed/src/chat-addition-data.vue +0 -64
- package/packages/chat-embed/src/chat-ai-answer-tip.vue +0 -81
- package/packages/chat-embed/src/chat-bubble-footer.vue +0 -81
- package/packages/chat-embed/src/chat-embed-message.ts +0 -76
- package/packages/chat-embed/src/chat-embed.css +0 -207
- package/packages/chat-embed/src/chat-sender.vue +0 -620
- package/packages/chat-embed/src/components/answer-auto-chart.vue +0 -365
- package/packages/chat-embed/src/components/answer-home-chart.vue +0 -42
- package/packages/chat-embed/src/components/answer-interaction-data.vue +0 -569
- package/packages/chat-embed/src/components/history-detail.vue +0 -150
- package/packages/chat-embed/src/header.vue +0 -147
- package/packages/chat-embed/src/index.vue +0 -926
- package/packages/chat-embed/src/recommendation-message.vue +0 -37
- package/packages/chat-embed/src/sender-attachments.vue +0 -1
- package/packages/chat-embed/src/sidebar-item.vue +0 -521
- package/packages/chat-embed/src/type.ts +0 -74
- package/packages/chat-embed/src/util/chat-embed-util.ts +0 -67
- package/packages/chat-embed/src/util/history-message-util.ts +0 -161
- package/packages/chat-embed/src/util/mcp-utils.ts +0 -131
- package/packages/chat-embed/src/util/text-file-util.ts +0 -33
- package/packages/chat-embed/src/voice/index.ts +0 -6
- package/packages/chat-embed/src/voice/js/ai.js +0 -4
- package/packages/chat-embed/src/voice/js/crypto-js.js +0 -5736
- package/packages/chat-embed/src/voice/js/processor/index.umd.js +0 -1
- package/packages/chat-embed/src/voice/js/timer.js +0 -18
- package/packages/chat-embed/src/voice/voice.vue +0 -320
- package/packages/date-picker-range/index.ts +0 -6
- package/packages/date-picker-range/index.vue +0 -240
- package/packages/department-tree/index.js +0 -6
- package/packages/department-tree/src/department-tree.vue +0 -140
- package/packages/department-tree-inline/index.js +0 -6
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +0 -472
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +0 -374
- package/packages/department-tree-inline/src/department-tree-inline.vue +0 -93
- package/packages/department-tree-inline/src/department-tree-service.js +0 -333
- package/packages/department-tree-inline/src/search-result.vue +0 -206
- package/packages/department-tree-mobile/index.js +0 -6
- package/packages/department-tree-mobile/src/department-tree-app.vue +0 -148
- package/packages/department-tree-mobile/src/department-tree-inline-app.vue +0 -418
- package/packages/department-tree-mobile/src/department-tree-service.ts +0 -124
- package/packages/department-tree-mobile/src/dept-path.vue +0 -36
- package/packages/department-tree-mobile/src/dept-result.vue +0 -51
- package/packages/department-user-tree/index.js +0 -6
- package/packages/department-user-tree/src/department-user-multiple-tree.vue +0 -131
- package/packages/department-user-tree/src/department-user-single-tree.vue +0 -93
- package/packages/department-user-tree/src/department-user-tree.vue +0 -138
- package/packages/department-user-tree-inline/index.js +0 -9
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +0 -779
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -394
- package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +0 -94
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -293
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +0 -158
- package/packages/department-user-tree-inline/src/group-user/group-input.vue +0 -162
- package/packages/department-user-tree-inline/src/group-user/group-list.vue +0 -106
- package/packages/department-user-tree-inline/src/group-user/group-user.vue +0 -38
- package/packages/department-user-tree-inline/src/group-user-multiple-tree.vue +0 -304
- package/packages/department-user-tree-inline/src/group-user-single-tree.vue +0 -155
- package/packages/department-user-tree-inline/src/group-user-tree-service.js +0 -80
- package/packages/department-user-tree-inline/src/search-result.vue +0 -274
- package/packages/department-user-tree-mobile/index.js +0 -6
- package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +0 -147
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +0 -466
- package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +0 -71
- package/packages/department-user-tree-mobile/src/dept-path.vue +0 -36
- package/packages/department-user-tree-mobile/src/dept-result.vue +0 -58
- package/packages/directives/prevent-reclick.js +0 -22
- package/packages/dynamic-source-select/index.js +0 -6
- package/packages/dynamic-source-select/src/dynamic-source-select-service.js +0 -134
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +0 -946
- package/packages/dynamic-source-select/src/events.js +0 -72
- package/packages/empty-state/index.vue +0 -28
- package/packages/fs-preview/index.js +0 -6
- package/packages/fs-preview/src/fs-preview.vue +0 -535
- package/packages/fs-upload/index.js +0 -6
- package/packages/fs-upload/src/fs-upload-multi.vue +0 -464
- package/packages/fs-upload/src/fs-upload-single.vue +0 -369
- package/packages/fs-upload/src/fs-upload.vue +0 -193
- package/packages/fs-upload/src/see-big-picture.vue +0 -70
- package/packages/fs-upload-list/index.js +0 -6
- package/packages/fs-upload-list/src/fs-upload-list.vue +0 -436
- package/packages/fs-upload-new/index.ts +0 -6
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-app.vue +0 -276
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +0 -573
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-component.vue +0 -152
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-input.vue +0 -265
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload.vue +0 -262
- package/packages/fs-upload-new/src/fs-button-upload.vue +0 -312
- package/packages/fs-upload-new/src/fs-drag-upload.vue +0 -307
- package/packages/fs-upload-new/src/fs-preview-new.vue +0 -380
- package/packages/fs-upload-new/src/fs-upload-new.vue +0 -413
- package/packages/hamburger/index.js +0 -6
- package/packages/hamburger/src/hamburger.vue +0 -52
- package/packages/index.js +0 -274
- 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/packages/multipart-upload/index.js +0 -6
- package/packages/multipart-upload/src/index.vue +0 -66
- package/packages/multipart-upload/src/multipart-upload-form.vue +0 -404
- package/packages/multipart-upload/src/multipart-upload-list.vue +0 -543
- package/packages/organization-input/index.js +0 -6
- package/packages/organization-input/src/organization-input.vue +0 -619
- package/packages/plugins/export-data-new.js +0 -667
- package/packages/plugins/export-data.js +0 -431
- package/packages/plugins/index.js +0 -15
- package/packages/plugins/public-method.js +0 -47
- package/packages/remove-department/index.js +0 -6
- package/packages/remove-department/src/remove-department.vue +0 -201
- package/packages/remove-department/src/remove-dept-service.js +0 -31
- package/packages/remove-user/index.js +0 -6
- package/packages/remove-user/src/remove-user-service.js +0 -31
- package/packages/remove-user/src/remove-user.vue +0 -227
- package/packages/remove-workgroup/index.js +0 -6
- package/packages/remove-workgroup/src/remove-workgroup-service.js +0 -31
- package/packages/remove-workgroup/src/remove-workgroup.vue +0 -184
- package/packages/rich-editor/index.js +0 -7
- package/packages/rich-editor/index.vue +0 -331
- package/packages/rich-editor/tinymce/icons/default/icons.min.js +0 -1
- package/packages/rich-editor/tinymce/langs/README.md +0 -3
- package/packages/rich-editor/tinymce/langs/zh-Hans.js +0 -1
- package/packages/rich-editor/tinymce/license.txt +0 -21
- package/packages/rich-editor/tinymce/models/dom/model.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/accordion/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/advlist/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/anchor/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/autolink/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/autoresize/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/autosave/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/charmap/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/code/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/codesample/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/directionality/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/emoticons/js/emojiimages.js +0 -1
- package/packages/rich-editor/tinymce/plugins/emoticons/js/emojiimages.min.js +0 -3
- package/packages/rich-editor/tinymce/plugins/emoticons/js/emojis.js +0 -1
- package/packages/rich-editor/tinymce/plugins/emoticons/js/emojis.min.js +0 -2
- package/packages/rich-editor/tinymce/plugins/emoticons/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/fullscreen/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ar.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ca.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/cs.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/da.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/de.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/el.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/en.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/es.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/eu.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fa.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fi.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hi.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hr.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/id.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/it.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ja.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/kk.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ms.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/nl.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pl.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ro.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ru.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sk.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/tr.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/uk.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/vi.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +0 -84
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +0 -90
- package/packages/rich-editor/tinymce/plugins/help/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/image/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/importcss/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/insertdatetime/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/link/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/lists/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/media/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/nonbreaking/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/pagebreak/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/preview/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/quickbars/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/save/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/searchreplace/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/table/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/template/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/visualblocks/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/visualchars/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/plugins/wordcount/plugin.min.js +0 -4
- package/packages/rich-editor/tinymce/skins/content/dark/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/content/dark/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/content/default/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/content/default/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/content/document/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/content/document/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/content/tinymce-5/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/content/tinymce-5/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/content/tinymce-5-dark/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/content/writer/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/content/writer/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/oxide/content.inline.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/oxide/content.inline.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/oxide/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/oxide/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/oxide/skin.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/oxide/skin.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.inline.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.inline.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -1
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +0 -2
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
- package/packages/rich-editor/tinymce/themes/silver/theme.min.js +0 -4
- package/packages/rich-editor/tinymce/tinymce.d.ts +0 -3238
- package/packages/rich-editor/tinymce/tinymce.min.js +0 -4
- package/packages/rich-editor/tinymce/zh_CN.js +0 -418
- package/packages/rich-editor/viewer.vue +0 -105
- package/packages/row-form/index.js +0 -7
- package/packages/row-form/index.vue +0 -284
- package/packages/row-form/operation.vue +0 -151
- package/packages/scan-code-input/index.js +0 -6
- package/packages/scan-code-input/src/events.js +0 -34
- package/packages/scan-code-input/src/scan-code-input.vue +0 -164
- package/packages/scan-code-input-browser/index.js +0 -6
- package/packages/scan-code-input-browser/src/scan-code-input.vue +0 -113
- package/packages/secret-info/index.js +0 -7
- package/packages/secret-info/index.vue +0 -100
- package/packages/super-grid/index.js +0 -7
- package/packages/super-grid/src/apis.js +0 -1713
- package/packages/super-grid/src/columns-config.vue +0 -329
- package/packages/super-grid/src/components/grid-icon.vue +0 -157
- package/packages/super-grid/src/components/grid-radio-input.vue +0 -84
- package/packages/super-grid/src/components/hyperlinks.vue +0 -130
- package/packages/super-grid/src/components/mobile-table-card.jsx +0 -589
- package/packages/super-grid/src/components/select-input.vue +0 -520
- package/packages/super-grid/src/custom-formatter.js +0 -419
- package/packages/super-grid/src/dynamic-input.vue +0 -2158
- package/packages/super-grid/src/eventBus.js +0 -10
- package/packages/super-grid/src/events.js +0 -56
- package/packages/super-grid/src/formValidatorUtil.js +0 -362
- package/packages/super-grid/src/formatter.js +0 -200
- package/packages/super-grid/src/group-column.vue +0 -119
- package/packages/super-grid/src/header-context-menu.vue +0 -82
- package/packages/super-grid/src/index-column.vue +0 -78
- package/packages/super-grid/src/normal-column-content.vue +0 -1310
- package/packages/super-grid/src/normal-column.vue +0 -423
- package/packages/super-grid/src/public-methods.js +0 -30
- package/packages/super-grid/src/row-detail.vue +0 -50
- package/packages/super-grid/src/row-operation.vue +0 -315
- package/packages/super-grid/src/scan-util.ts +0 -243
- package/packages/super-grid/src/search-button.vue +0 -88
- package/packages/super-grid/src/search-condition-input.vue +0 -74
- package/packages/super-grid/src/search-condition-list.vue +0 -70
- package/packages/super-grid/src/search-form-advancedQuery.vue +0 -836
- package/packages/super-grid/src/search-form-dialog.vue +0 -77
- package/packages/super-grid/src/search-form-item.vue +0 -616
- package/packages/super-grid/src/search-form-mobile.vue +0 -255
- package/packages/super-grid/src/search-form-number.vue +0 -122
- package/packages/super-grid/src/search-form-open.vue +0 -175
- package/packages/super-grid/src/search-form-ordinarySearch.vue +0 -243
- package/packages/super-grid/src/search-form.vue +0 -795
- package/packages/super-grid/src/search-methods.js +0 -539
- package/packages/super-grid/src/selection-column.vue +0 -36
- package/packages/super-grid/src/store.js +0 -3
- package/packages/super-grid/src/super-grid-service.js +0 -800
- package/packages/super-grid/src/super-grid.vue +0 -3814
- package/packages/super-grid/src/utils.js +0 -946
- package/packages/super-grid/src/view-image-dialog.vue +0 -194
- package/packages/super-icon/index.js +0 -6
- package/packages/super-icon/src/index.vue +0 -52
- package/packages/super-nine-grid/index.js +0 -7
- package/packages/super-nine-grid/src/apis.js +0 -108
- package/packages/super-nine-grid/src/custom-formatter.js +0 -73
- package/packages/super-nine-grid/src/formatter.js +0 -134
- package/packages/super-nine-grid/src/search-form-number.vue +0 -35
- package/packages/super-nine-grid/src/search-form.vue +0 -514
- package/packages/super-nine-grid/src/search-methods.js +0 -151
- package/packages/super-nine-grid/src/store.js +0 -3
- package/packages/super-nine-grid/src/super-grid-service.js +0 -110
- package/packages/super-nine-grid/src/super-nine-grid.vue +0 -1112
- package/packages/super-nine-grid/src/utils.js +0 -264
- package/packages/svg-icon/index.js +0 -6
- package/packages/svg-icon/src/svg-icon.vue +0 -43
- package/packages/utils/date-util.js +0 -292
- package/packages/utils/dom.js +0 -227
- package/packages/utils/gogocodeTransfer.js +0 -59
- package/packages/utils/memory-cache-utils.js +0 -117
- package/packages/utils/organization.ts +0 -173
- package/packages/utils/utils.js +0 -198
- package/packages/utils/value-set.js +0 -282
- package/packages/valid-code/index.js +0 -7
- package/packages/valid-code/src/valid-code.vue +0 -104
- package/packages/workflow-button/index.js +0 -6
- package/packages/workflow-button/src/workflow-button.vue +0 -574
- package/packages/workflow-history-list/index.js +0 -6
- package/packages/workflow-history-list/src/api.js +0 -7
- package/packages/workflow-history-list/src/workflow-history-list.vue +0 -394
- package/packages/workgroup-tree/index.js +0 -6
- package/packages/workgroup-tree/src/workgroup-tree.vue +0 -127
- package/packages/workgroup-tree-inline/index.js +0 -6
- package/packages/workgroup-tree-inline/src/search-result.vue +0 -227
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +0 -557
- package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +0 -119
- package/packages/workgroup-tree-mobile/index.js +0 -6
- package/packages/workgroup-tree-mobile/src/dept-result.vue +0 -52
- package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +0 -148
- package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +0 -407
- package/packages/workgroup-tree-mobile/src/workgroup-tree-service.ts +0 -62
- package/packages/workgroup-user-tree/index.js +0 -6
- package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +0 -121
- package/packages/workgroup-user-tree-inline/index.js +0 -9
- package/packages/workgroup-user-tree-inline/src/search-result.vue +0 -271
- package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +0 -252
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +0 -665
- package/packages/workgroup-user-tree-mobile/index.js +0 -6
- package/packages/workgroup-user-tree-mobile/src/dept-path.vue +0 -36
- package/packages/workgroup-user-tree-mobile/src/dept-result.vue +0 -58
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue +0 -119
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue +0 -453
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-service.ts +0 -41
- package/packages/year-range-picker/index.js +0 -6
- package/packages/year-range-picker/src/year-range-picker.vue +0 -53
- 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 -217
- package/src/components/Scrollbar/index.vue +0 -213
- 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 -336
- package/src/i18n/langs/en.js +0 -336
- 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 -369
- 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 -1006
- 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/svg-icon/index.js +0 -6
- package/src/views/svg-icon/src/svg-icon.vue +0 -46
- package/src/views/wf-history/tache-subprocess-history.vue +0 -45
- /package/{src/styles → styles}/_layout-custom-properties.scss +0 -0
- /package/{src/styles → styles}/display-layout.scss +0 -0
- /package/{src/styles → styles}/element-ui.scss +0 -0
- /package/{src/styles → styles}/index.scss +0 -0
- /package/{src/styles → styles}/mixin.scss +0 -0
- /package/{src/styles → styles}/page-list.scss +0 -0
- /package/{src/styles → styles}/table.scss +0 -0
- /package/{src/styles → styles}/theme/black/font-style.scss +0 -0
- /package/{src/styles → styles}/theme/black/index.scss +0 -0
- /package/{src/styles → styles}/theme/black/sidebar.scss +0 -0
- /package/{src/styles → styles}/theme/blue/font-style.scss +0 -0
- /package/{src/styles → styles}/theme/blue/index.scss +0 -0
- /package/{src/styles → styles}/theme/blue/sidebar.scss +0 -0
- /package/{src/styles → styles}/theme/blue2/font-style.scss +0 -0
- /package/{src/styles → styles}/theme/blue2/index.scss +0 -0
- /package/{src/styles → styles}/theme/blue2/sidebar.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/button.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/card.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/checkbox.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/dark-blue-var.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/dialog.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/element-variables.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/font.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/form.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/index.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/input.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/message.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/pagination.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/radio.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/scrollbar-style.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/select.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/sidebar.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/tab.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/table.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/tree.scss +0 -0
- /package/{src/styles → styles}/theme/dark-blue/var.scss +0 -0
- /package/{src/styles → styles}/theme/default.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/button.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/card.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/checkbox.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/date-picker.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/dialog.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/element-variables.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/font.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/forest-green.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/form.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/index.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/input.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/message.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/pagination.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/radio.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/scrollbar-style.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/select.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/sidebar.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/tab.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/table.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/tree.scss +0 -0
- /package/{src/styles → styles}/theme/forest-green/var.scss +0 -0
- /package/{src/styles → styles}/theme/gray/card-style.scss +0 -0
- /package/{src/styles → styles}/theme/gray/font-style.scss +0 -0
- /package/{src/styles → styles}/theme/gray/index.scss +0 -0
- /package/{src/styles → styles}/theme/gray/input-style.scss +0 -0
- /package/{src/styles → styles}/theme/gray/scrollbar-style.scss +0 -0
- /package/{src/styles → styles}/theme/gray/sidebar.scss +0 -0
- /package/{src/styles → styles}/theme/gray/tab-style.scss +0 -0
- /package/{src/styles → styles}/theme/green/button.scss +0 -0
- /package/{src/styles → styles}/theme/green/card.scss +0 -0
- /package/{src/styles → styles}/theme/green/checkbox.scss +0 -0
- /package/{src/styles → styles}/theme/green/dialog.scss +0 -0
- /package/{src/styles → styles}/theme/green/element-variables.scss +0 -0
- /package/{src/styles → styles}/theme/green/font.scss +0 -0
- /package/{src/styles → styles}/theme/green/form.scss +0 -0
- /package/{src/styles → styles}/theme/green/green.scss +0 -0
- /package/{src/styles → styles}/theme/green/index.scss +0 -0
- /package/{src/styles → styles}/theme/green/input.scss +0 -0
- /package/{src/styles → styles}/theme/green/message.scss +0 -0
- /package/{src/styles → styles}/theme/green/pagination.scss +0 -0
- /package/{src/styles → styles}/theme/green/radio.scss +0 -0
- /package/{src/styles → styles}/theme/green/scrollbar-style.scss +0 -0
- /package/{src/styles → styles}/theme/green/select.scss +0 -0
- /package/{src/styles → styles}/theme/green/sidebar.scss +0 -0
- /package/{src/styles → styles}/theme/green/tab.scss +0 -0
- /package/{src/styles → styles}/theme/green/table.scss +0 -0
- /package/{src/styles → styles}/theme/green/tree.scss +0 -0
- /package/{src/styles → styles}/theme/green/var.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/button.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/card.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/checkbox.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/dialog.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/element-variables.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/font.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/form.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/index.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/input.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/message.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/ocean-blue.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/pagination.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/radio.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/scrollbar-style.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/select.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/sidebar.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/tab.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/table.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/tree.scss +0 -0
- /package/{src/styles → styles}/theme/ocean-blue/var.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/button.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/card.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/checkbox.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/dialog.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/drawer.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/element-variables.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/font.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/form.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/general.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/home.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/index.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/input.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/message.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/mobile.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/pagination.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/radio.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/scrollbar-style.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/select.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/sidebar.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/tab.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/table.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/tree.scss +0 -0
- /package/{src/styles → styles}/theme/tiffany-blue-mobile/var.scss +0 -0
- /package/{src/styles → styles}/transition.scss +0 -0
package/package.json
CHANGED
package/vite.config.js
CHANGED
|
@@ -44,6 +44,17 @@ export default defineConfig(({ mode }) => ({
|
|
|
44
44
|
format: 'es',
|
|
45
45
|
//不用打包成.es.js,这里我们想把它打包成.js
|
|
46
46
|
entryFileNames: '[name].js',
|
|
47
|
+
// // 关键配置:分离CSS文件
|
|
48
|
+
// assetFileNames: (assetInfo) => {
|
|
49
|
+
// // 如果是CSS文件,输出到对应的css目录,保持目录结构
|
|
50
|
+
// if (assetInfo.name.endsWith('.css')) {
|
|
51
|
+
// console.log('assetInfo.name--',assetInfo.name)
|
|
52
|
+
// const relativePath = assetInfo.name.replace('packages/', '')
|
|
53
|
+
// return `css/${relativePath}`
|
|
54
|
+
// }
|
|
55
|
+
// // 其他资源
|
|
56
|
+
// return 'assets/[name]-[hash][extname]'
|
|
57
|
+
// },
|
|
47
58
|
//让打包目录和源码目录对应,如果为false就会只生成一个js文件包含所有内容
|
|
48
59
|
preserveModules: true,
|
|
49
60
|
//配置打包根目录
|
|
@@ -51,6 +62,24 @@ export default defineConfig(({ mode }) => ({
|
|
|
51
62
|
preserveModulesRoot: 'packages'
|
|
52
63
|
},
|
|
53
64
|
// {
|
|
65
|
+
// // 单独输出CSS文件
|
|
66
|
+
// format: 'es',
|
|
67
|
+
// entryFileNames: 'styles/[name].scss',
|
|
68
|
+
// assetFileNames: 'styles/[name][extname]',
|
|
69
|
+
// dir: 'lib',
|
|
70
|
+
// // 只输出CSS资源
|
|
71
|
+
// exports: 'named'
|
|
72
|
+
// }
|
|
73
|
+
// // 定义生成css的名称
|
|
74
|
+
// {
|
|
75
|
+
// // path: path.resolve(__dirname, 'lib/style'),
|
|
76
|
+
// filename: 'index.scss',
|
|
77
|
+
// entryFileNames: 'index.css',
|
|
78
|
+
// //配置打包根目录
|
|
79
|
+
// dir: 'lib/style',
|
|
80
|
+
// preserveModulesRoot: 'packages/styles'
|
|
81
|
+
// },
|
|
82
|
+
// {
|
|
54
83
|
// format: 'cjs',
|
|
55
84
|
// entryFileNames: '[name].js',
|
|
56
85
|
// //让打包目录和源码目录对应
|
|
@@ -80,14 +109,36 @@ export default defineConfig(({ mode }) => ({
|
|
|
80
109
|
// }),
|
|
81
110
|
terser({
|
|
82
111
|
compress: {
|
|
83
|
-
|
|
84
|
-
|
|
112
|
+
drop_debugger: ['production'].includes(mode),
|
|
113
|
+
pure_funcs: ['production'].includes(mode) ? ['console.log', 'console.info', 'console.warn', 'console.debug'] : [],
|
|
85
114
|
},
|
|
86
115
|
output: {
|
|
87
116
|
// 对于console.error,不做任何处理
|
|
88
117
|
comments: (node, comment) => comment.type === 'error'
|
|
89
118
|
}
|
|
90
|
-
})
|
|
119
|
+
}),
|
|
120
|
+
// {
|
|
121
|
+
// name: 'copy-css-files',
|
|
122
|
+
// generateBundle(options, bundle) {
|
|
123
|
+
// // 处理CSS文件
|
|
124
|
+
// for (const fileName in bundle) {
|
|
125
|
+
// console.log('css--fileName--',fileName)
|
|
126
|
+
// const chunk = bundle[fileName]
|
|
127
|
+
// if (fileName.endsWith('.css') || fileName.endsWith('.scss')) {
|
|
128
|
+
// // 确保目录存在
|
|
129
|
+
// const cssDir = path.join('lib', 'css')
|
|
130
|
+
// console.log('css--cssDir--',cssDir)
|
|
131
|
+
// if (!fs.existsSync(cssDir)) {
|
|
132
|
+
// fs.mkdirSync(cssDir, { recursive: true })
|
|
133
|
+
// }
|
|
134
|
+
|
|
135
|
+
// // 写入CSS文件
|
|
136
|
+
// const cssPath = path.join(cssDir, fileName)
|
|
137
|
+
// fs.writeFileSync(cssPath, chunk.source)
|
|
138
|
+
// }
|
|
139
|
+
// }
|
|
140
|
+
// }
|
|
141
|
+
// }
|
|
91
142
|
],
|
|
92
143
|
resolve: {
|
|
93
144
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { $emit as e } from "../../utils/gogocodeTransfer.js";
|
|
2
|
-
import { formatTimefn as t, getFirstDayOfSeason as a, getWeekOfSeason as i, getDateRangeSelectorDefaultValue as l } from "../../src/utils/range-selector.js";
|
|
3
|
-
import { resolveComponent as o, openBlock as n, createElementBlock as s, createVNode as r, pushScopeId as d, popScopeId as c, createElementVNode as h } from "vue";
|
|
4
|
-
import "./sectionDate.vue2.js";
|
|
5
|
-
import p from "../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const m = { name: "SectionDate", components: {}, props: { colFieldSetting: { type: Object, default: null } }, data: () => ({ modelValue: {}, startDate: "", endDate: "", weekStareDate: "", weekDate: "", monthStareDate: "", monthDate: "", datStareDate: [], yearStartDate: "", yearDate: "", ScopeStartDate: "", ScopeEndDate: "", pickerOptions: { disabledDate: (e2) => e2.getFullYear() < 2e3 }, fordateParams: "" }), watch: { datStareDate: { handler(e2) {
|
|
7
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, e2[0]), this.endDate = this.formatTimefn(this.colFieldSetting.options.format, e2[1]);
|
|
8
|
-
}, immediate: false, deep: true } }, created() {
|
|
9
|
-
this.setTimeScope();
|
|
10
|
-
}, methods: { formatTimefn: (e2, a2) => t(e2, a2), getFirstDayOfSeason: (e2) => a(e2), getWeekOfSeason: (e2) => i(e2), setTimeScope() {
|
|
11
|
-
const e2 = this.colFieldSetting.options;
|
|
12
|
-
let t2 = e2.defaultValueSetting ? e2.defaultValueSetting.paramValue : null;
|
|
13
|
-
null != t2 && "" !== t2 || (t2 = e2.defaultValue);
|
|
14
|
-
const a2 = l(e2.stareScopeTimeType, e2.format, t2);
|
|
15
|
-
if (a2) {
|
|
16
|
-
const t3 = a2.startTimeTemp, i2 = a2.endTimeTemp, l2 = a2.startDate, o2 = a2.endDate;
|
|
17
|
-
"year" === e2.showType && t3 && i2 ? (this.yearStartDate = t3, this.yearDate = i2) : "quarterScope" === e2.showType && t3 && i2 ? (this.ScopeStartDate = t3, this.ScopeEndDate = i2) : "week" === e2.showType && t3 && i2 ? (this.weekStareDate = t3, this.weekDate = i2) : "monthrange" === e2.showType && t3 && i2 ? (this.monthStareDate = t3, this.monthDate = i2) : "daterange" === e2.showType && t3 && i2 && (this.datStareDate = [t3, i2]), this.startDate = l2, this.endDate = o2;
|
|
18
|
-
}
|
|
19
|
-
this.changeForm();
|
|
20
|
-
}, getTimeTamp: (e2) => new Date(e2).getTime(), onChangeStatYear() {
|
|
21
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(this.yearStartDate).getTime()), this.changeForm();
|
|
22
|
-
}, onChangeEndYear() {
|
|
23
|
-
const e2 = new Date(this.yearDate).getFullYear();
|
|
24
|
-
this.forTimeParams = e2 % 4 == 0 && e2 % 100 != 0 || e2 % 400 == 0 ? new Date(this.yearDate).getTime() + 31536e6 : new Date(this.yearDate).getTime() + 314496e5, this.endDate = this.formatTimefn(this.colFieldSetting.options.format, this.forTimeParams), this.startDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(this.yearStartDate).getTime()), this.changeForm();
|
|
25
|
-
}, weekChange() {
|
|
26
|
-
this.forTimeParams = new Date(this.weekDate).getTime() + 432e6, this.endDate = this.formatTimefn(this.colFieldSetting.options.format, this.forTimeParams), this.changeForm();
|
|
27
|
-
}, weekStatChange() {
|
|
28
|
-
const e2 = new Date(this.weekStareDate) - 864e5;
|
|
29
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(e2).getTime()), this.changeForm();
|
|
30
|
-
}, changeForm() {
|
|
31
|
-
const t2 = [this.startDate, this.endDate];
|
|
32
|
-
e(this, "SectionDateTransfer", t2);
|
|
33
|
-
}, quarterStatrt(e2) {
|
|
34
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(e2).getTime()), this.changeForm();
|
|
35
|
-
}, quarterEnd(e2) {
|
|
36
|
-
this.endDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(e2).getTime()), this.changeForm();
|
|
37
|
-
}, monthChange() {
|
|
38
|
-
const e2 = new Date(this.monthDate).getFullYear(), t2 = new Date(this.monthDate).getMonth() + 1, a2 = [1, 3, 5, 7, 8, 10, 12];
|
|
39
|
-
"" !== this.monthStareDate && null !== this.monthStareDate && void 0 !== this.monthStareDate && (this.startDate = this.formatTimefn(this.colFieldSetting.options.format, this.monthStareDate)), e2 % 4 == 0 && e2 % 100 != 0 || e2 % 400 == 0 ? 2 === t2 ? this.forTimeParams = new Date(this.monthDate).getTime() + 24192e5 : -1 !== a2.indexOf(t2) ? this.forTimeParams = new Date(this.monthDate).getTime() + 2592e6 : this.forTimeParams = new Date(this.monthDate).getTime() + 25056e5 : 2 === t2 ? this.forTimeParams = new Date(this.monthDate).getTime() + 23328e5 : -1 !== a2.indexOf(t2) ? this.forTimeParams = new Date(this.monthDate).getTime() + 2592e6 : this.forTimeParams = new Date(this.monthDate).getTime() + 25056e5, this.endDate = this.formatTimefn(this.colFieldSetting.options.format, this.forTimeParams), this.changeForm();
|
|
40
|
-
}, monthStatChange() {
|
|
41
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, this.monthStareDate), this.changeForm();
|
|
42
|
-
} }, emits: ["SectionDateTransfer"] }, g = (e2) => (d("data-v-52983a24"), e2 = e2(), c(), e2), S = { key: 0, class: "select" }, D = g(() => h("div", { class: "intervalCenter" }, "-", -1)), f = { key: 1, class: "select" }, F = g(() => h("div", { class: "intervalCenter" }, "-", -1)), y = { key: 2, class: "select" }, u = g(() => h("div", { class: "intervalCenter" }, "-", -1)), b = { key: 3, style: { width: "100%", height: "100%" } };
|
|
43
|
-
const T = p(m, [["render", function(e2, t2, a2, i2, l2, d2) {
|
|
44
|
-
const c2 = o("el-date-picker");
|
|
45
|
-
return n(), s("div", null, ["year" === a2.colFieldSetting.options.showType ? (n(), s("div", S, [r(c2, { shortcuts: l2.pickerOptions && l2.pickerOptions.shortcuts, "disabled-date": l2.pickerOptions && l2.pickerOptions.disabledDate, "cell-class-name": l2.pickerOptions && l2.pickerOptions.cellClassName, modelValue: l2.yearStartDate, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => l2.yearStartDate = e3), type: "year", placeholder: a2.colFieldSetting.options.startPlaceholder, disabled: a2.colFieldSetting.options.disabled, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", onChange: d2.onChangeStatYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"]), D, r(c2, { shortcuts: l2.pickerOptions && l2.pickerOptions.shortcuts, "disabled-date": l2.pickerOptions && l2.pickerOptions.disabledDate, "cell-class-name": l2.pickerOptions && l2.pickerOptions.cellClassName, modelValue: l2.yearDate, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => l2.yearDate = e3), type: "year", placeholder: a2.colFieldSetting.options.endPlaceholder, disabled: a2.colFieldSetting.options.disabled, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", onChange: d2.onChangeEndYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"])])) : "week" === a2.colFieldSetting.options.showType ? (n(), s("div", f, [r(c2, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: l2.weekStareDate, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => l2.weekStareDate = e3), type: a2.colFieldSetting.options.showType, "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", clearable: a2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: d2.weekStatChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"]), F, r(c2, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: l2.weekDate, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => l2.weekDate = e3), type: a2.colFieldSetting.options.showType, "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", clearable: a2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: d2.weekChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"])])) : "monthrange" === a2.colFieldSetting.options.showType ? (n(), s("div", y, [r(c2, { modelValue: l2.monthStareDate, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => l2.monthStareDate = e3), type: "month", "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", "value-format": "x", onChange: d2.monthStatChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"]), u, r(c2, { modelValue: l2.monthDate, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => l2.monthDate = e3), type: "month", "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, editable: a2.colFieldSetting.options.editable, clearable: a2.colFieldSetting.options.clearable, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", onChange: d2.monthChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"])])) : (n(), s("div", b, [r(c2, { modelValue: l2.datStareDate, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => l2.datStareDate = e3), type: a2.colFieldSetting.options.showType, "is-range": a2.colFieldSetting.options.range, placeholder: a2.colFieldSetting.options.placeholder, "start-placeholder": a2.colFieldSetting.options.startPlaceholder, "end-placeholder": a2.colFieldSetting.options.endPlaceholder, readonly: a2.colFieldSetting.options.readonly, disabled: a2.colFieldSetting.options.disabled, size: a2.colFieldSetting.options.size ? a2.colFieldSetting.options.size : "small", editable: a2.colFieldSetting.options.editable, clearable: a2.colFieldSetting.options.clearable, "value-format": "x", style: { width: "100%" }, onChange: d2.changeForm }, null, 8, ["modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "size", "editable", "clearable", "onChange"])]))]);
|
|
46
|
-
}], ["__scopeId", "data-v-52983a24"]]);
|
|
47
|
-
export {
|
|
48
|
-
T as default
|
|
49
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as e from "path-to-regexp";
|
|
2
|
-
import { resolveComponent as t, openBlock as r, createBlock as a, withCtx as l, createVNode as i, TransitionGroup as o, createElementBlock as s, Fragment as d, renderList as m, toDisplayString as u, createTextVNode as c } from "vue";
|
|
3
|
-
import "./breadcrumb.vue2.js";
|
|
4
|
-
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const p = { key: 0, class: "no-redirect" };
|
|
6
|
-
const h = n({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
|
|
7
|
-
return this.levelList.filter((e2) => void 0 !== e2.meta.title && null !== e2.meta.title);
|
|
8
|
-
} }, watch: { $route() {
|
|
9
|
-
this.getBreadcrumb();
|
|
10
|
-
} }, created() {
|
|
11
|
-
this.getBreadcrumb();
|
|
12
|
-
}, methods: { getBreadcrumb() {
|
|
13
|
-
const { params: t2 } = this.$route;
|
|
14
|
-
let r2 = this.$route.matched.filter((r3) => {
|
|
15
|
-
if (r3.name) {
|
|
16
|
-
var a3 = e.compile(r3.path);
|
|
17
|
-
return r3.path = a3(t2), true;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const a2 = r2[0];
|
|
21
|
-
a2 && "Dashboard" !== a2.name && (r2 = [{ path: "/dashboard", meta: { title: "Dashboard" } }].concat(r2)), this.levelList = r2;
|
|
22
|
-
} } }, [["render", function(e2, n2, h2, b, f, v) {
|
|
23
|
-
const _ = t("router-link"), g = t("el-breadcrumb-item"), L = t("el-breadcrumb");
|
|
24
|
-
return r(), a(L, { class: "app-breadcrumb", separator: "/" }, { default: l(() => [i(o, { tag: "span", name: "breadcrumb" }, { default: l(() => [(r(true), s(d, null, m(v.levelListWithTitle, (e3, t2) => (r(), a(g, { key: e3.path }, { default: l(() => ["noredirect" === e3.redirect || t2 == f.levelList.length - 1 ? (r(), s("span", p, u(e3.meta.title), 1)) : (r(), a(_, { key: 1, to: e3.redirect || e3.path }, { default: l(() => [c(u(e3.meta.title), 1)]), _: 2 }, 1032, ["to"]))]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 });
|
|
25
|
-
}], ["__scopeId", "data-v-ff9ae7e4"]]);
|
|
26
|
-
export {
|
|
27
|
-
h as default
|
|
28
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, resolveComponent as t, openBlock as e, createElementBlock as i, Fragment as l, createVNode as d, withCtx as n, createElementVNode as o, createTextVNode as r, toDisplayString as s, pushScopeId as u, popScopeId as p } from "vue";
|
|
2
|
-
const m = { class: "additional-data-tag" }, c = { class: "additional-data-button" }, v = ((a2) => (u("data-v-7aaab83c"), a2 = a2(), p(), a2))(() => o("span", null, "预览数据", -1)), y = a({ __name: "chat-addition-data", props: { item: { type: Object, required: true } }, emits: ["view-json", "download-json"], setup: (a2, { emit: u2 }) => (p2, y2) => {
|
|
3
|
-
const f = t("el-divider"), w = t("Paperclip"), _ = t("el-icon"), j = t("el-tag"), b = t("View"), g = t("el-button"), A = t("Download");
|
|
4
|
-
return e(), i(l, null, [d(f, { "border-style": "dashed" }), d(j, { type: "primary", style: { width: "100%" } }, { default: n(() => [o("div", m, [d(_, null, { default: n(() => [d(w)]), _: 1 }), r(" " + s(a2.item.additionalDataLabel), 1)])]), _: 1 }), o("div", c, [d(g, { plain: "", size: "small", onClick: y2[0] || (y2[0] = (t2) => {
|
|
5
|
-
var e2;
|
|
6
|
-
(e2 = a2.item.additionalData) && ("string" == typeof e2 ? u2("view-json", JSON.parse(e2)) : Array.isArray(e2) && u2("view-json", e2));
|
|
7
|
-
}) }, { default: n(() => [d(_, null, { default: n(() => [d(b)]), _: 1 }), r(), v]), _: 1 }), d(g, { plain: "", size: "small", onClick: y2[1] || (y2[1] = (t2) => {
|
|
8
|
-
return e2 = a2.item.additionalData, i2 = a2.item.menuName, void (e2 && ("string" == typeof e2 ? u2("download-json", JSON.parse(e2), i2) : Array.isArray(e2) && u2("download-json", e2, i2)));
|
|
9
|
-
var e2, i2;
|
|
10
|
-
}) }, { default: n(() => [d(_, null, { default: n(() => [d(A)]), _: 1 }), r(" 下载数据 ")]), _: 1 })])], 64);
|
|
11
|
-
} });
|
|
12
|
-
export {
|
|
13
|
-
y as default
|
|
14
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n, resolveComponent as t, openBlock as r, createBlock as c, withCtx as i, createVNode as o, createElementBlock as u, unref as s, createCommentVNode as l, Fragment as a, renderList as m, toDisplayString as p } from "vue";
|
|
2
|
-
import { XMarkdown as f } from "vue-element-plus-x";
|
|
3
|
-
const d = { key: 0, style: { "max-height": "80vh", overflow: "auto" } }, h = ["onClick"], k = e({ __name: "chat-ai-answer-tip", props: { item: { type: Object, required: true }, itemProps: { type: Object, required: true } }, emits: ["click-doc-agg"], setup(e2, { emit: k2 }) {
|
|
4
|
-
const g = n(false);
|
|
5
|
-
function C() {
|
|
6
|
-
g.value = true;
|
|
7
|
-
}
|
|
8
|
-
function v(e3, n2) {
|
|
9
|
-
if (!e3.referenceChunks || 0 === e3.referenceChunks.length)
|
|
10
|
-
return "无相关提示信息";
|
|
11
|
-
const t2 = parseInt(n2);
|
|
12
|
-
return isNaN(t2) || t2 < 0 || t2 >= e3.referenceChunks.length ? "提示信息索引无效" : e3.referenceChunks[t2].content || "无相关提示信息";
|
|
13
|
-
}
|
|
14
|
-
function _(e3, n2) {
|
|
15
|
-
if (!e3.referenceChunks || 0 === e3.referenceChunks.length)
|
|
16
|
-
return "无相关提示信息";
|
|
17
|
-
const t2 = parseInt(n2);
|
|
18
|
-
return isNaN(t2) || t2 < 0 || t2 >= e3.referenceChunks.length ? "提示信息索引无效" : e3.referenceChunks[t2] ? [{ doc_name: e3.referenceChunks[t2].document_name, doc_id: e3.referenceChunks[t2].document_id }] : [];
|
|
19
|
-
}
|
|
20
|
-
return (n2, y) => {
|
|
21
|
-
const x = t("Opportunity"), w = t("el-icon"), N = t("el-popover");
|
|
22
|
-
return r(), c(N, { placement: "right", trigger: "click", width: "100vh" }, { reference: i(() => [o(w, { onClick: C }, { default: i(() => [o(x)]), _: 1 })]), default: i(() => [g.value ? (r(), u("div", d, [o(s(f), { allowHtml: true, markdown: v(e2.item, e2.itemProps["tip-index"]) }, null, 8, ["markdown"])])) : l("", true), g.value ? (r(true), u(a, { key: 1 }, m(_(e2.item, e2.itemProps["tip-index"]), (e3, n3) => (r(), u("div", { style: { margin: "5px 10px" }, key: n3, onClick: (n4) => function(e4) {
|
|
23
|
-
k2("click-doc-agg", e4);
|
|
24
|
-
}(e3), class: "doc-agg-item" }, p(e3.doc_name), 9, h))), 128)) : l("", true)]), _: 1 });
|
|
25
|
-
};
|
|
26
|
-
} });
|
|
27
|
-
export {
|
|
28
|
-
k as default
|
|
29
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as t, openBlock as o, createElementBlock as c, createElementVNode as n, createVNode as i, withCtx as r, unref as a, createCommentVNode as s } from "vue";
|
|
2
|
-
import { Refresh as m, DocumentCopy as l } from "@element-plus/icons-vue";
|
|
3
|
-
import { ElMessage as p } from "element-plus";
|
|
4
|
-
import { useI18n as u } from "vue-i18n";
|
|
5
|
-
const d = { key: 0, class: "footer-wrapper" }, f = { class: "footer-container" }, b = e({ __name: "chat-bubble-footer", props: { item: { type: Object, required: true } }, emits: ["regenerate"], setup(e2, { emit: b2 }) {
|
|
6
|
-
const { t: y } = u();
|
|
7
|
-
return (u2, v) => {
|
|
8
|
-
const g = t("el-button"), h = t("el-tooltip");
|
|
9
|
-
return "ai" !== e2.item.role || e2.item.isRecommend || "thinking" === e2.item.thinkingStatus ? s("", true) : (o(), c("div", d, [n("div", f, [i(h, { class: "box-item", effect: "dark", content: u2.$t("chatEmbed.regenerate") }, { default: r(() => [i(g, { type: "info", icon: a(m), size: "small", circle: "", onClick: v[0] || (v[0] = (t2) => {
|
|
10
|
-
return o2 = e2.item, void b2("regenerate", o2);
|
|
11
|
-
var o2;
|
|
12
|
-
}) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"]), i(h, { class: "box-item", effect: "dark", content: u2.$t("chatEmbed.copy") }, { default: r(() => [i(g, { type: "info", color: "#626aef", icon: a(l), size: "small", circle: "", onClick: v[1] || (v[1] = (t2) => function(e3) {
|
|
13
|
-
if (e3.content)
|
|
14
|
-
if (navigator.clipboard && "function" == typeof navigator.clipboard.writeText)
|
|
15
|
-
navigator.clipboard.writeText(e3.content).then(() => {
|
|
16
|
-
p({ message: y("chatEmbed.copySuccess"), type: "success" });
|
|
17
|
-
});
|
|
18
|
-
else {
|
|
19
|
-
const t3 = document.createElement("textarea");
|
|
20
|
-
t3.value = e3.content, document.body.appendChild(t3), t3.select();
|
|
21
|
-
try {
|
|
22
|
-
document.execCommand("copy"), p({ message: y("chatEmbed.copySuccess"), type: "success" });
|
|
23
|
-
} catch (e4) {
|
|
24
|
-
p({ message: "复制失败", type: "error" });
|
|
25
|
-
}
|
|
26
|
-
document.body.removeChild(t3);
|
|
27
|
-
}
|
|
28
|
-
}(e2.item)) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"])])]));
|
|
29
|
-
};
|
|
30
|
-
} });
|
|
31
|
-
export {
|
|
32
|
-
b as default
|
|
33
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import n from "dayjs";
|
|
2
|
-
import { MESSAGE_STATUS as a } from "./type.js";
|
|
3
|
-
function t(t2, e2, i2, o2) {
|
|
4
|
-
const s = "ai" === t2 ? "ai" : "user", d = "ai" === s ? "start" : "end", m = { isRecommend: i2, key: (/* @__PURE__ */ new Date()).getTime(), role: s, placement: d, content: e2, showThinkingContent: false, loading: false, shape: "corner", variant: "ai" === s ? "filled" : "outlined", isMarkdown: false, typing: "ai" === s, avatar: "ai" === s ? "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" : "../../src/assets/chat-embed/avatar.png", noStyle: "ai" === s, statusValue: "end", recommendations: [], avatarSize: "24px", sendTime: n(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss") };
|
|
5
|
-
return "ai" === s && (m.maxWidth = "calc(100% - 60px)", o2 ? (m.thinkingContent = "", m.thinkingStatus = a.THINKING, m.showThinkingContent = true) : (m.thinkingContent = null, m.thinkingStatus = a.NONE, m.showThinkingContent = false)), m;
|
|
6
|
-
}
|
|
7
|
-
const e = t("ai", "😊 您好,我是平台小助手,您可以向我提出关于平台使用问题", true, false);
|
|
8
|
-
function i(n2) {
|
|
9
|
-
var _a;
|
|
10
|
-
const a2 = t("user", n2.question, true, false);
|
|
11
|
-
return ((_a = n2.additionalData) == null ? void 0 : _a.length) && Object.assign(a2, { additionalData: n2.additionalData, additionalDataLabel: n2.additionalDataLabel, menuName: n2.menuName, menuCode: n2.menuCode }), a2;
|
|
12
|
-
}
|
|
13
|
-
function o(n2, a2) {
|
|
14
|
-
const e2 = t("ai", "", false, a2);
|
|
15
|
-
return Object.assign(e2, { question: n2.question, menuName: n2.menuName, menuCode: n2.menuCode, askAdditionalData: n2.additionalData });
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
o as createAiMessage,
|
|
19
|
-
i as createUserMessage,
|
|
20
|
-
e as defaultMessage,
|
|
21
|
-
t as getMessageTemplate
|
|
22
|
-
};
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, watch as t, resolveComponent as n, resolveDirective as o, openBlock as i, createElementBlock as u, Fragment as s, createBlock as c, withCtx as r, createElementVNode as d, createVNode as m, createTextVNode as p, toDisplayString as f, createCommentVNode as v, unref as g, renderList as h, withDirectives as w, pushScopeId as b, popScopeId as y } from "vue";
|
|
2
|
-
import x from "../../src/store/modules/chat-ai-store.js";
|
|
3
|
-
import { Sender as E, Attachments as A, FilesCard as _ } from "vue-element-plus-x";
|
|
4
|
-
import { generateFileName as R, downloadJsonFile as I } from "./util/text-file-util.js";
|
|
5
|
-
import { getActivePinia as k, createPinia as j, setActivePinia as P } from "pinia";
|
|
6
|
-
import { useI18n as T } from "vue-i18n";
|
|
7
|
-
import { ElMessage as S } from "element-plus";
|
|
8
|
-
import C from "./voice/voice.vue.js";
|
|
9
|
-
import { AI_MODELS as D } from "./type.js";
|
|
10
|
-
import { getVoiceSetting as N, parseVoiceMsg as V } from "../../src/utils/voice-setting-cache.js";
|
|
11
|
-
import { getRelativeBaseUrl as O, isValidDate as M } from "../../src/utils/common-util.js";
|
|
12
|
-
import { getToken as $ } from "../../src/utils/auth.js";
|
|
13
|
-
const q = { class: "sender-additional-data-tag" }, G = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, K = { style: { display: "flex", "align-items": "center", gap: "16px" } }, L = ((e2) => (b("data-v-0b0c189e"), e2 = e2(), y(), e2))(() => d("div", { class: "ai-generate-tip" }, "内容由AI生成,仅供参考", -1)), F = e({ __name: "chat-sender", props: { loading: { type: Boolean, default: false } }, emits: ["submit-question", "handle-cancel", "view-json", "change-ai-model", "voice-answer", "command-answer"], setup(e2, { expose: b2, emit: y2 }) {
|
|
14
|
-
T();
|
|
15
|
-
const F2 = [{ label: "流程体系类", value: D.RAGFLOW }, { label: "QMS数据库类", value: D.DATABASE }, { label: "DeepSeek问答", value: D.DEEPSEEK }, { label: "系统交互", value: D.INTERACTION }, { label: "生成PPT", value: D.PPT_GENERATION }];
|
|
16
|
-
let H = null;
|
|
17
|
-
const W = a(false), z = a(""), B = a([]), U = a(""), Q = a("ragflow"), X = a(), J = a(), Y = a(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/upload-file/bailian"), Z = a([]), ee = a(false), ae = a(false);
|
|
18
|
-
function le() {
|
|
19
|
-
try {
|
|
20
|
-
window.parent && window.parent !== window && (window.parent.ChatAiStore = H), window.top && window.top !== window && (window.top.ChatAiStore = H), window.ChatAiStore = H;
|
|
21
|
-
} catch (e3) {
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
let te, ne;
|
|
25
|
-
l(() => {
|
|
26
|
-
!function() {
|
|
27
|
-
try {
|
|
28
|
-
let e3 = k();
|
|
29
|
-
e3 || (e3 = j(), P(e3), window.$vueApp && window.$vueApp.use(e3)), H = x();
|
|
30
|
-
} catch (e3) {
|
|
31
|
-
}
|
|
32
|
-
}(), le();
|
|
33
|
-
}), t(() => Z.value.length, (e3) => {
|
|
34
|
-
e3 > 0 ? X.value.openHeader() : X.value.closeHeader();
|
|
35
|
-
}), l(() => {
|
|
36
|
-
le();
|
|
37
|
-
});
|
|
38
|
-
let oe = {}, ie = {};
|
|
39
|
-
function ue(e3) {
|
|
40
|
-
let a2 = e3;
|
|
41
|
-
a2 = null == e3 ? U.value.trim() : e3.trim(), te = a2;
|
|
42
|
-
let l2 = { aiModel: Q.value, question: a2 };
|
|
43
|
-
if (Q.value === D.DEEPSEEK || Q.value === D.PPT_GENERATION) {
|
|
44
|
-
const e4 = H.getActiveMenu();
|
|
45
|
-
let t2 = "";
|
|
46
|
-
Z.value.length > 0 && (t2 = Z.value.map((e5) => e5.id).join(","));
|
|
47
|
-
let n2 = [];
|
|
48
|
-
Z.value.length > 0 && (n2 = Z.value.map((e5) => ({ fileId: e5.id, name: e5.name }))), Z.value = [], l2 = { aiModel: Q.value, question: a2, fileId: t2, fileInfos: n2, additionalData: B.value, additionalDataLabel: z.value, menuName: (e4 == null ? void 0 : e4.menuName) || "" };
|
|
49
|
-
}
|
|
50
|
-
y2("submit-question", l2), U.value = "", re();
|
|
51
|
-
}
|
|
52
|
-
function se() {
|
|
53
|
-
y2("handle-cancel");
|
|
54
|
-
}
|
|
55
|
-
function ce() {
|
|
56
|
-
var _a;
|
|
57
|
-
const e3 = H.getActiveMenu(), a2 = H.getActiveMenuPageInfo();
|
|
58
|
-
if ("list" === a2.pageType) {
|
|
59
|
-
const l2 = a2.listRefs[0].ref.getAiChatListData();
|
|
60
|
-
l2 && l2.length > 0 && (B.value = l2), ((_a = B.value) == null ? void 0 : _a.length) > 0 && (z.value = `已附加【${e3.menuName}】表格数据 (${B.value.length} 条记录)`, W.value = true);
|
|
61
|
-
} else if ("form" === a2.pageType) {
|
|
62
|
-
const l2 = a2.exposeProxy.getFormFormatData();
|
|
63
|
-
a2.subTableRefs && Object.keys(a2.subTableRefs).length > 0 && Object.keys(a2.subTableRefs).forEach((e4) => {
|
|
64
|
-
const t2 = a2.subTableRefs[e4].ref, n2 = t2.getAiChatListData();
|
|
65
|
-
let o2 = e4;
|
|
66
|
-
t2.options.title && (o2 = t2.options.title), l2[o2] = n2;
|
|
67
|
-
}), l2 && (B.value = [l2], z.value = `已附加【${e3.menuName}】表单数据`, W.value = true);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function re() {
|
|
71
|
-
B.value = [], z.value = "", W.value = false;
|
|
72
|
-
}
|
|
73
|
-
function de() {
|
|
74
|
-
y2("view-json", B.value);
|
|
75
|
-
}
|
|
76
|
-
function me() {
|
|
77
|
-
try {
|
|
78
|
-
const e3 = H.getActiveMenu(), a2 = R((e3 == null ? void 0 : e3.menuName) || "data");
|
|
79
|
-
I(B.value, a2);
|
|
80
|
-
} catch (e3) {
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function pe(e3) {
|
|
84
|
-
if (e3 === D.DATABASE)
|
|
85
|
-
return S({ message: "QMS数据库类模型正在开发中,敬请期待!", type: "warning" }), void (Q.value = D.RAGFLOW);
|
|
86
|
-
e3 === D.DEEPSEEK && Z.value.length > 0 ? X.value.openHeader() : X.value.closeHeader(), e3 === D.DEEPSEEK || e3 === D.PPT_GENERATION ? (ee.value = true, ae.value = true) : (ee.value = false, ae.value = false, re()), y2("change-ai-model", e3);
|
|
87
|
-
}
|
|
88
|
-
function fe(e3) {
|
|
89
|
-
Z.value.push({ id: e3.uid, uid: e3.uid, name: e3.name, percent: 0, status: "uploading", showDelIcon: true, maxWidth: "150px" });
|
|
90
|
-
}
|
|
91
|
-
function ve(e3, a2, l2) {
|
|
92
|
-
const t2 = Z.value.findIndex((e4) => e4.id === a2.uid);
|
|
93
|
-
-1 !== t2 && (Z.value[t2].percent = e3.percent);
|
|
94
|
-
}
|
|
95
|
-
function ge(e3, a2, l2) {
|
|
96
|
-
if (e3) {
|
|
97
|
-
const l3 = Z.value.findIndex((e4) => e4.id === a2.uid);
|
|
98
|
-
-1 !== l3 && (Z.value[l3].status = "done", e3.forEach((e4) => {
|
|
99
|
-
e4.name === Z.value[l3].name && (Z.value[l3].id = e4.fileId, Z.value[l3].uid = e4.fileId);
|
|
100
|
-
}));
|
|
101
|
-
} else
|
|
102
|
-
S({ message: (e3 == null ? void 0 : e3.message) || "文件上传失败", type: "error" });
|
|
103
|
-
}
|
|
104
|
-
function he(e3) {
|
|
105
|
-
const a2 = Z.value.findIndex((a3) => a3.id === e3.uid);
|
|
106
|
-
-1 !== a2 && Z.value.splice(a2, 1);
|
|
107
|
-
}
|
|
108
|
-
function we(e3, a2, l2) {
|
|
109
|
-
let t2 = false;
|
|
110
|
-
if (a2 && a2.indexOf("~") >= 0) {
|
|
111
|
-
const e4 = a2.split("~");
|
|
112
|
-
let n2;
|
|
113
|
-
if (t2 = M(e4[0]), t2 && (t2 = M(e4[1])), 3 === e4.length && (n2 = e4[2]), t2 && n2 && n2.indexOf(",") > 0) {
|
|
114
|
-
const a3 = n2.split(","), t3 = a3[0], o2 = a3[1];
|
|
115
|
-
l2 = be(t3, e4[0], l2), l2 = be(o2, e4[1], l2);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return t2 || (l2 = be(e3, a2, l2)), l2;
|
|
119
|
-
}
|
|
120
|
-
function be(e3, a2, l2) {
|
|
121
|
-
if (null == e3 || e3 + "" == "")
|
|
122
|
-
return l2;
|
|
123
|
-
if (null == a2 || a2 + "" == "")
|
|
124
|
-
return l2;
|
|
125
|
-
const t2 = "ai__" + e3;
|
|
126
|
-
return l2 = l2.indexOf("?") > 0 ? l2 + "&" + t2 + "=" + a2 : l2 + "?" + t2 + "=" + a2;
|
|
127
|
-
}
|
|
128
|
-
return b2({ parseCommand: function() {
|
|
129
|
-
N().then((e3) => {
|
|
130
|
-
V(te, e3, ne, oe, ie).then((e4) => {
|
|
131
|
-
if ("ok" === e4.status) {
|
|
132
|
-
ne || (ne = e4.settingItem), oe = e4.paramInfo;
|
|
133
|
-
let a2 = e4.url;
|
|
134
|
-
if (a2) {
|
|
135
|
-
if (ie)
|
|
136
|
-
for (let e5 in ie) {
|
|
137
|
-
const l3 = ie[e5];
|
|
138
|
-
"_jump_param" !== l3 && (a2 = we(e5, l3, a2));
|
|
139
|
-
}
|
|
140
|
-
const l2 = ne ? ne.command : "";
|
|
141
|
-
ne = void 0, ie = {}, oe = {}, y2("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult, url: a2, paramsValue: ie, command: l2 }), window.open(O(a2));
|
|
142
|
-
} else
|
|
143
|
-
y2("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult });
|
|
144
|
-
} else
|
|
145
|
-
y2("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult });
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
}, newChatSession: function() {
|
|
149
|
-
Q.value === D.DEEPSEEK && (Z.value = []), U.value = "";
|
|
150
|
-
} }), (a2, l2) => {
|
|
151
|
-
const t2 = n("Paperclip"), b3 = n("el-icon"), y3 = n("super-icon"), x2 = n("el-tooltip"), R2 = n("el-tag"), I2 = n("el-option"), k2 = n("el-select"), j2 = n("SuperIcon"), P2 = n("el-upload"), T2 = n("el-divider"), S2 = n("el-button"), D2 = o("loading");
|
|
152
|
-
return i(), u(s, null, [W.value ? (i(), c(R2, { key: 0, type: "primary" }, { default: r(() => [d("div", q, [m(b3, null, { default: r(() => [m(t2)]), _: 1 }), p(" " + f(z.value) + " ", 1), m(x2, { content: "预览" }, { default: r(() => [m(y3, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: de })]), _: 1 }), m(x2, { content: "下载" }, { default: r(() => [m(y3, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: me })]), _: 1 }), m(x2, { content: "移除" }, { default: r(() => [m(y3, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: re })]), _: 1 })])]), _: 1 })) : v("", true), m(g(E), { modelValue: U.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => U.value = e3), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: X, submitType: "enter", loading: e2.loading, "allow-speech": "", onSubmit: l2[3] || (l2[3] = (e3) => ue()), placeholder: "请您描述问题" }, { header: r(() => [m(g(A), { items: Z.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": r((e3) => [(i(true), u(s, null, h(e3.items, (e4) => (i(), c(g(_), { key: e4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: e4.name, percent: e4.percent, uid: e4.id, status: e4.status, "show-del-icon": "", "img-variant": "square", onDelete: he }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: r(() => [d("div", G, [m(k2, { style: { width: "146px", height: "32px" }, plain: "", modelValue: Q.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => Q.value = e3), onChange: pe }, { default: r(() => [(i(), u(s, null, h(F2, (e3) => m(I2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])])]), "action-list": r(() => [d("div", K, [ee.value ? (i(), c(x2, { key: 0, content: "上传附件" }, { default: r(() => [m(P2, { ref_key: "uploadRef", ref: J, action: Y.value, multiple: true, headers: { Authorization: g($)() }, accept: ".txt,.docx,.pdf,.xlsx,.epub,.mobi,.md,.csv,.json,.bmp,.png,.jpg,.jpeg,.gif,.pdf", "show-file-list": false, "on-progress": ve, "on-success": ge, "before-upload": fe }, { default: r(() => [m(j2, { iconValue: "amb-icon-fujianshangchuan" })]), _: 1 }, 8, ["action", "headers"])]), _: 1 })) : v("", true), ae.value ? (i(), c(x2, { key: 1, content: "附加页面数据" }, { default: r(() => [m(j2, { onClick: ce, iconValue: "amb-icon-fujiabiaogeshu", class: "send-icon" })]), _: 1 })) : v("", true), m(x2, { content: "语音" }, { default: r(() => [m(C, { onUserMessage: ue, class: "send-icon" })]), _: 1 }), m(T2, { direction: "vertical" }), e2.loading ? (i(), c(x2, { key: 2, content: "取消" }, { default: r(() => [w((i(), c(S2, { type: "primary", style: { "border-radius": "10px" }, plain: "", round: "", onClick: se }, { default: r(() => [p(" 取消 ")]), _: 1 })), [[D2, e2.loading]])]), _: 1 })) : (i(), c(S2, { key: 3, style: { "border-radius": "10px" }, disabled: !U.value || !U.value.trim(), plain: "", circle: "", round: "", onClick: l2[1] || (l2[1] = (e3) => ue()) }, { default: r(() => [m(j2, { iconValue: "amb-icon-fasong2" })]), _: 1 }, 8, ["disabled"]))])]), _: 1 }, 8, ["modelValue", "loading"]), L], 64);
|
|
153
|
-
};
|
|
154
|
-
} });
|
|
155
|
-
export {
|
|
156
|
-
F as default
|
|
157
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, openBlock as r, createElementBlock as a, toDisplayString as o, createBlock as s, unref as i } from "vue";
|
|
2
|
-
import { ElMessage as n } from "element-plus";
|
|
3
|
-
import { use as l } from "echarts/core";
|
|
4
|
-
import p from "vue-echarts";
|
|
5
|
-
import { CanvasRenderer as c } from "echarts/renderers";
|
|
6
|
-
import { LineChart as u, BarChart as m, PieChart as h, RadarChart as x } from "echarts/charts";
|
|
7
|
-
import { GridComponent as y, LegendComponent as f, TitleComponent as d, TooltipComponent as v, ToolboxComponent as A, DataZoomComponent as g } from "echarts/components";
|
|
8
|
-
const O = { style: { "max-height": "700px" } }, w = { key: 0, style: { "text-align": "center", color: "#999", "margin-top": "20px" } }, b = e({ __name: "answer-auto-chart", props: { chartProps: { type: Object, default: {} } }, setup(e2) {
|
|
9
|
-
const b2 = e2;
|
|
10
|
-
l([c, u, m, h, x, y, f, d, v, A, g]);
|
|
11
|
-
const I = t(null), L = t({}), N = t(false), P = t("");
|
|
12
|
-
let S = {};
|
|
13
|
-
b2.chartProps.params && (S = JSON.parse(b2.chartProps.params));
|
|
14
|
-
let k = [], _ = {};
|
|
15
|
-
var F;
|
|
16
|
-
return b2.chartProps.answer && (_ = JSON.parse(b2.chartProps.answer), _.dataList && (k = _.dataList)), (k == null ? void 0 : k.length) > 0 && S ? (L.value = function(e3, t2) {
|
|
17
|
-
const r2 = e3.chartType || "bar";
|
|
18
|
-
return -1 !== r2.indexOf("bar") || -1 !== r2.indexOf("line") ? function(e4, t3) {
|
|
19
|
-
var _a, _b;
|
|
20
|
-
const r3 = e4.xAxis;
|
|
21
|
-
let a2 = e4.series || [], o2 = e4.yAxis || [];
|
|
22
|
-
e4.chartOption && (e4.chartOption.yAxis && (o2 = e4.chartOption.yAxis), e4.chartOption.series && (a2 = e4.chartOption.series));
|
|
23
|
-
const s2 = t3.map((e5) => {
|
|
24
|
-
const t4 = e5[r3];
|
|
25
|
-
return null != t4 ? t4 : "未知";
|
|
26
|
-
});
|
|
27
|
-
let i2 = "bar";
|
|
28
|
-
-1 !== ((_a = e4.chartType) == null ? void 0 : _a.indexOf("line")) && (i2 = "line");
|
|
29
|
-
const n2 = a2.map((r4) => {
|
|
30
|
-
var _a2;
|
|
31
|
-
const a3 = r4.name, o3 = r4.type || i2, s3 = t3.map((e5) => e5[a3] || 0), n3 = { name: a3, type: o3, data: s3 };
|
|
32
|
-
return r4.format ? n3.tooltip = { valueFormatter: function(e5) {
|
|
33
|
-
return r4.format.replace("{value}", e5);
|
|
34
|
-
} } : ((_a2 = r4.tooltip) == null ? void 0 : _a2.formatter) && (n3.tooltip = { valueFormatter: function(e5) {
|
|
35
|
-
return r4.tooltip.formatter.replace("{value}", e5);
|
|
36
|
-
} }), "yAxisIndex" in r4 && (e4.yAxis && Array.isArray(e4.yAxis) && r4.yAxisIndex > e4.yAxis.length - 1 ? r4.yAxisIndex = 0 : n3.yAxisIndex = r4.yAxisIndex), n3;
|
|
37
|
-
}), l2 = [];
|
|
38
|
-
o2 && Array.isArray(o2) ? o2.forEach((e5) => {
|
|
39
|
-
const t4 = { type: e5.type || "value" };
|
|
40
|
-
e5.axisLabel && (t4.axisLabel = e5.axisLabel), e5.name && (t4.name = e5.name), l2.push(t4);
|
|
41
|
-
}) : l2.push({ type: "value" });
|
|
42
|
-
let p2 = e4.chartName || "图表";
|
|
43
|
-
e4.chartOption && (p2 = ((_b = e4.chartOption.title) == null ? void 0 : _b.text) || p2);
|
|
44
|
-
const c2 = { title: { text: p2, left: "center" }, toolbox: { show: true, feature: { saveAsImage: { title: "保存为图片" } } }, tooltip: { trigger: "axis" }, legend: { data: a2.map((e5) => e5.name), left: "right", textStyle: { width: 180, overflow: "truncate" }, type: "scroll", orient: "vertical", top: "center", tooltip: { show: true } }, xAxis: { type: "category", data: s2 }, yAxis: l2, series: n2 };
|
|
45
|
-
s2.length > 10 && (c2.dataZoom = [{ type: "slider", start: 0, end: 100 }, { type: "inside", start: 0, end: 100 }]);
|
|
46
|
-
return c2;
|
|
47
|
-
}(e3, t2) : "pie" === r2 ? function(e4, t3) {
|
|
48
|
-
var _a;
|
|
49
|
-
const r3 = e4.xAxis, a2 = ((_a = e4.series[0]) == null ? void 0 : _a.name) || "";
|
|
50
|
-
if (!a2)
|
|
51
|
-
return n.error("饼图必须指定数值轴"), P.value = "饼图必须指定数值轴", null;
|
|
52
|
-
const o2 = t3.map((e5) => ({ name: e5[r3] || "未知", value: e5[a2] || 0 })), s2 = { title: { text: e4.chartName || "饼图", left: "center" }, toolbox: { trigger: "item", show: true, feature: { saveAsImage: { title: "保存为图片" } } }, legend: { left: "right", textStyle: { width: 180, overflow: "truncate" }, type: "scroll", orient: "vertical", top: "10%", tooltip: { show: true } }, series: [{ name: e4.chartName || "饼图", type: "pie", radius: "70%", data: o2, emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)" } } }] };
|
|
53
|
-
return s2;
|
|
54
|
-
}(e3, t2) : (n.error("不支持的图表类型"), P.value = "不支持的图表类型", null);
|
|
55
|
-
}(S, k), L.value ? (F = L.value, I.value && I.value.setOption(F, true)) : N.value = true) : k && 0 !== k.length || (n.error("未能获取到可用数据展示图表"), P.value = "未能获取到可用数据展示图表", N.value = true), (e3, t2) => (r(), a("div", O, [N.value ? (r(), a("div", w, o(P.value), 1)) : (r(), s(i(p), { key: 1, ref_key: "chartRef", ref: I, style: { height: "400px" }, option: L.value, autoresize: "" }, null, 8, ["option"]))]));
|
|
56
|
-
} });
|
|
57
|
-
export {
|
|
58
|
-
b as default
|
|
59
|
-
};
|