agilebuilder-ui 1.1.65-tmp16 → 1.1.65-tmp17
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/IntervalSelection/index.js +5 -7
- package/lib/IntervalSelection/src/sectionDate.vue.js +17 -21
- package/lib/IntervalSelection/src/sectionDate.vue2.js +2 -4
- package/lib/_virtual/__vite-browser-external.js +2 -4
- package/lib/_virtual/_plugin-vue_export-helper.js +6 -8
- package/lib/breadcrumb/index.js +3 -5
- package/lib/breadcrumb/src/breadcrumb.vue.js +28 -19
- package/lib/breadcrumb/src/breadcrumb.vue2.js +2 -4
- package/lib/chat-embed/index.js +3 -5
- package/lib/chat-embed/src/chat-addition-data.vue.js +5 -7
- package/lib/chat-embed/src/chat-addition-data.vue2.js +11 -13
- package/lib/chat-embed/src/chat-addition-data.vue3.js +2 -4
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.js +5 -7
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.js +17 -20
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.js +2 -4
- package/lib/chat-embed/src/chat-bubble-footer.vue.js +5 -7
- package/lib/chat-embed/src/chat-bubble-footer.vue2.js +17 -22
- package/lib/chat-embed/src/chat-bubble-footer.vue3.js +2 -4
- package/lib/chat-embed/src/chat-embed-message.js +14 -20
- package/lib/chat-embed/src/chat-sender.vue.js +5 -7
- package/lib/chat-embed/src/chat-sender.vue2.js +110 -123
- package/lib/chat-embed/src/chat-sender.vue3.js +2 -4
- package/lib/chat-embed/src/components/answer-auto-chart.vue.js +5 -7
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.js +42 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.js +2 -4
- package/lib/chat-embed/src/components/answer-home-chart.vue.js +5 -7
- package/lib/chat-embed/src/components/answer-home-chart.vue2.js +3 -6
- package/lib/chat-embed/src/components/answer-home-chart.vue3.js +2 -4
- package/lib/chat-embed/src/components/answer-interaction-data.vue.js +5 -7
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.js +74 -84
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.js +2 -4
- package/lib/chat-embed/src/components/history-detail.vue.js +5 -7
- package/lib/chat-embed/src/components/history-detail.vue2.js +27 -32
- package/lib/chat-embed/src/components/history-detail.vue3.js +2 -4
- package/lib/chat-embed/src/header.vue.js +5 -7
- package/lib/chat-embed/src/header.vue2.js +25 -32
- package/lib/chat-embed/src/header.vue3.js +2 -4
- package/lib/chat-embed/src/index.vue.js +5 -7
- package/lib/chat-embed/src/index.vue2.js +185 -211
- package/lib/chat-embed/src/index.vue3.js +2 -4
- package/lib/chat-embed/src/recommendation-message.vue.js +5 -7
- package/lib/chat-embed/src/recommendation-message.vue2.js +5 -8
- package/lib/chat-embed/src/recommendation-message.vue3.js +2 -4
- package/lib/chat-embed/src/sidebar-item.vue.js +5 -7
- package/lib/chat-embed/src/sidebar-item.vue2.js +84 -93
- package/lib/chat-embed/src/sidebar-item.vue3.js +2 -4
- package/lib/chat-embed/src/type.js +3 -5
- package/lib/chat-embed/src/util/chat-embed-util.js +35 -41
- package/lib/chat-embed/src/util/history-message-util.js +63 -85
- package/lib/chat-embed/src/util/mcp-utils.js +5 -8
- package/lib/chat-embed/src/util/text-file-util.js +7 -11
- package/lib/chat-embed/src/voice/index.js +5 -7
- package/lib/chat-embed/src/voice/js/crypto-js.js +987 -995
- package/lib/chat-embed/src/voice/js/processor/index.umd.js +161 -169
- package/lib/chat-embed/src/voice/js/timer.js +7 -10
- package/lib/chat-embed/src/voice/voice.vue.js +61 -70
- package/lib/date-picker-range/index.js +5 -7
- package/lib/date-picker-range/index.vue.js +5 -7
- package/lib/date-picker-range/index.vue2.js +59 -63
- package/lib/date-picker-range/index.vue3.js +2 -4
- package/lib/department-tree/index.js +3 -5
- package/lib/department-tree/src/department-tree.vue.js +11 -17
- package/lib/department-tree-inline/index.js +3 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.js +17 -27
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.js +2 -4
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.js +17 -27
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.js +2 -4
- package/lib/department-tree-inline/src/department-tree-inline.vue.js +8 -13
- package/lib/department-tree-inline/src/department-tree-service.js +8 -10
- package/lib/department-tree-inline/src/search-result.vue.js +19 -23
- package/lib/department-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/department-tree-mobile/index.js +4 -7
- package/lib/department-tree-mobile/src/department-tree-app.vue.js +9 -12
- package/lib/department-tree-mobile/src/department-tree-app.vue2.js +2 -4
- package/lib/department-tree-mobile/src/department-tree-app.vue3.js +3 -5
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.js +80 -91
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.js +3 -4
- package/lib/department-tree-mobile/src/department-tree-service.js +32 -42
- package/lib/department-tree-mobile/src/dept-path.vue.js +10 -11
- package/lib/department-tree-mobile/src/dept-path.vue2.js +3 -4
- package/lib/department-tree-mobile/src/dept-result.vue.js +11 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/department-user-tree/index.js +3 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.js +10 -14
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.js +2 -4
- package/lib/department-user-tree/src/department-user-single-tree.vue.js +9 -14
- package/lib/department-user-tree/src/department-user-tree.vue.js +14 -20
- package/lib/department-user-tree-inline/index.js +3 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +17 -28
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +2 -4
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +21 -33
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +2 -4
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.js +8 -13
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.js +6 -9
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.js +8 -11
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.js +7 -12
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.js +7 -12
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.js +8 -14
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.js +14 -20
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.js +17 -23
- package/lib/department-user-tree-inline/src/group-user-tree-service.js +2 -3
- package/lib/department-user-tree-inline/src/search-result.vue.js +12 -15
- package/lib/department-user-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/department-user-tree-mobile/index.js +4 -7
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.js +9 -12
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.js +2 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.js +3 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +93 -104
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +3 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-service.js +20 -30
- package/lib/department-user-tree-mobile/src/dept-path.vue.js +10 -11
- package/lib/department-user-tree-mobile/src/dept-path.vue2.js +3 -4
- package/lib/department-user-tree-mobile/src/dept-result.vue.js +11 -15
- package/lib/department-user-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/directives/prevent-reclick.js +2 -3
- package/lib/dynamic-source-select/index.js +5 -7
- package/lib/dynamic-source-select/src/dynamic-source-select-service.js +13 -15
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.js +173 -183
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.js +2 -4
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.js +2 -4
- package/lib/dynamic-source-select/src/events.js +2 -3
- package/lib/empty-state/index.vue.js +5 -8
- package/lib/empty-state/index.vue2.js +3 -4
- package/lib/fs-preview/index.js +5 -7
- package/lib/fs-preview/src/fs-preview.vue.js +63 -72
- package/lib/fs-preview/src/fs-preview.vue2.js +2 -4
- package/lib/fs-upload/index.js +5 -7
- package/lib/fs-upload/src/fs-upload-multi.vue.js +24 -32
- package/lib/fs-upload/src/fs-upload-single.vue.js +30 -39
- package/lib/fs-upload/src/fs-upload.vue.js +10 -16
- package/lib/fs-upload/src/see-big-picture.vue.js +8 -11
- package/lib/fs-upload-list/index.js +5 -7
- package/lib/fs-upload-list/src/fs-upload-list.vue.js +33 -40
- package/lib/fs-upload-list/src/fs-upload-list.vue2.js +2 -4
- package/lib/fs-upload-new/index.js +5 -7
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +34 -38
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +3 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +101 -109
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +3 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +5 -7
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +26 -33
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +2 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +27 -31
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +3 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +18 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +3 -4
- package/lib/fs-upload-new/src/fs-button-upload.vue.js +5 -7
- package/lib/fs-upload-new/src/fs-button-upload.vue2.js +36 -43
- package/lib/fs-upload-new/src/fs-button-upload.vue3.js +2 -4
- package/lib/fs-upload-new/src/fs-drag-upload.vue.js +5 -7
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.js +37 -45
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.js +2 -4
- package/lib/fs-upload-new/src/fs-preview-new.vue.js +5 -8
- package/lib/fs-upload-new/src/fs-preview-new.vue2.js +61 -70
- package/lib/fs-upload-new/src/fs-preview-new.vue3.js +2 -4
- package/lib/fs-upload-new/src/fs-preview-new.vue4.js +2 -4
- package/lib/fs-upload-new/src/fs-upload-new.vue.js +37 -47
- package/lib/fs-upload-new/src/fs-upload-new.vue2.js +3 -4
- package/lib/hamburger/index.js +3 -5
- package/lib/hamburger/src/hamburger.vue.js +10 -14
- package/lib/hamburger/src/hamburger.vue2.js +2 -4
- package/lib/index.js +40 -383
- package/lib/json-view/json-view-dialog.vue.js +12 -15
- package/lib/json-view/json-view-dialog.vue2.js +3 -4
- package/lib/json-view/json-view.vue.js +3 -4
- package/lib/json-view/json-view.vue2.js +27 -31
- package/lib/multipart-upload/index.js +5 -7
- package/lib/multipart-upload/src/index.vue.js +7 -11
- package/lib/multipart-upload/src/multipart-upload-form.vue.js +40 -49
- package/lib/multipart-upload/src/multipart-upload-list.vue.js +59 -67
- package/lib/organization-input/index.js +5 -7
- package/lib/organization-input/src/organization-input.vue.js +31 -37
- package/lib/organization-input/src/organization-input.vue2.js +2 -4
- package/lib/plugins/export-data-new.js +96 -104
- package/lib/plugins/export-data.js +45 -51
- package/lib/plugins/index.js +4 -8
- package/lib/plugins/public-method.js +2 -3
- package/lib/remove-department/index.js +3 -5
- package/lib/remove-department/src/remove-department.vue.js +13 -19
- package/lib/remove-department/src/remove-dept-service.js +9 -10
- package/lib/remove-user/index.js +5 -7
- package/lib/remove-user/src/remove-user-service.js +3 -4
- package/lib/remove-user/src/remove-user.vue.js +16 -22
- package/lib/remove-workgroup/index.js +5 -7
- package/lib/remove-workgroup/src/remove-workgroup-service.js +3 -4
- package/lib/remove-workgroup/src/remove-workgroup.vue.js +12 -18
- package/lib/rich-editor/index.js +5 -7
- package/lib/rich-editor/index.vue.js +28 -76
- package/lib/rich-editor/tinymce/zh_CN.js +2 -2
- package/lib/rich-editor/viewer.vue.js +7 -10
- package/lib/row-form/index.js +5 -7
- package/lib/row-form/index.vue.js +5 -7
- package/lib/row-form/index.vue2.js +41 -47
- package/lib/row-form/index.vue3.js +2 -4
- package/lib/row-form/operation.vue.js +22 -26
- package/lib/row-form/operation.vue2.js +3 -4
- package/lib/scan-code-input/index.js +5 -7
- package/lib/scan-code-input/src/events.js +11 -13
- package/lib/scan-code-input/src/scan-code-input.vue.js +9 -15
- package/lib/scan-code-input-browser/index.js +5 -7
- package/lib/scan-code-input-browser/src/scan-code-input.vue.js +16 -21
- package/lib/secret-info/index.js +5 -7
- package/lib/secret-info/index.vue.js +6 -9
- package/lib/src/api/sso-service.js +34 -36
- package/lib/src/api/tab.js +8 -9
- package/lib/src/assets/401/401.gif.js +2 -4
- package/lib/src/assets/404/404-cloud.png.js +2 -4
- package/lib/src/assets/404/404.png.js +2 -4
- package/lib/src/assets/chat-embed/robot.gif.js +2 -4
- package/lib/src/assets/chat-embed/robot.svg.js +2 -4
- package/lib/src/assets/nonemessage.png.js +2 -4
- package/lib/src/components/Affix/index.vue.js +5 -7
- package/lib/src/components/Affix/index.vue2.js +56 -58
- package/lib/src/components/Affix/index.vue3.js +2 -4
- package/lib/src/components/Card/index.js +33 -38
- package/lib/src/components/Scrollbar/index.vue.js +33 -37
- package/lib/src/components/Scrollbar/index.vue2.js +2 -4
- package/lib/src/directives/permission/index.js +3 -5
- package/lib/src/directives/permission/permission.js +7 -9
- package/lib/src/i18n/i18n.js +3 -7
- package/lib/src/i18n/langs/cn.js +2 -4
- package/lib/src/i18n/langs/en.js +2 -4
- package/lib/src/mixins/resizeMixin.js +2 -3
- package/lib/src/permission.js +43 -46
- package/lib/src/router/index.js +16 -10
- package/lib/src/store/getters.js +2 -4
- package/lib/src/store/index.js +16 -13
- package/lib/src/store/modules/app.js +3 -4
- package/lib/src/store/modules/chat-ai-store.js +19 -22
- package/lib/src/store/modules/permission.js +10 -11
- package/lib/src/store/modules/system.js +7 -9
- package/lib/src/store/modules/tab-content.js +13 -15
- package/lib/src/store/modules/table.js +2 -3
- package/lib/src/store/modules/user.js +89 -95
- package/lib/src/utils/auth-api.js +3 -5
- package/lib/src/utils/auth.js +69 -139
- package/lib/src/utils/calculator/calculator-factory-wf.js +48 -49
- package/lib/src/utils/calculator/calculator-factory.js +57 -58
- package/lib/src/utils/calculator/calculator-util.js +29 -32
- package/lib/src/utils/chat-ai-util.js +17 -25
- package/lib/src/utils/common-util.js +271 -356
- package/lib/src/utils/eventBus.js +3 -6
- package/lib/src/utils/file-util.js +15 -16
- package/lib/src/utils/global-prop.js +21 -37
- package/lib/src/utils/guid.js +5 -8
- package/lib/src/utils/i18n-util.js +16 -24
- package/lib/src/utils/iconUtils.js +16 -23
- package/lib/src/utils/index.js +26 -40
- package/lib/src/utils/insert_css.js +8 -7
- package/lib/src/utils/json-util.js +25 -27
- package/lib/src/utils/jump-page-utils.js +172 -180
- package/lib/src/utils/local-storage.js +2 -3
- package/lib/src/utils/menu.js +10 -11
- package/lib/src/utils/permission.js +22 -26
- package/lib/src/utils/permissionAuth.js +102 -136
- package/lib/src/utils/range-selector.js +41 -45
- package/lib/src/utils/request.js +77 -86
- package/lib/src/utils/resize.js +5 -5
- package/lib/src/utils/restful-interface-utils.js +12 -15
- package/lib/src/utils/util.js +6 -26
- package/lib/src/utils/validate.js +10 -20
- package/lib/src/utils/voice-setting-cache.js +140 -153
- package/lib/src/utils/watermark-cache.js +9 -14
- package/lib/src/utils/watermark.js +23 -30
- package/lib/src/utils/workflow-util.js +25 -26
- package/lib/src/views/dsc-component/Sidebar/Item.vue.js +5 -7
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.js +8 -11
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.js +2 -4
- package/lib/src/views/dsc-component/Sidebar/Link.vue.js +9 -12
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.js +19 -26
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +2 -4
- package/lib/src/views/dsc-component/Sidebar/index.vue.js +12 -20
- package/lib/src/views/dsc-component/tabs/tab-content.vue.js +21 -26
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.js +2 -4
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.js +2 -4
- package/lib/src/views/error-page/401.vue.js +9 -13
- package/lib/src/views/error-page/401.vue2.js +2 -4
- package/lib/src/views/error-page/404.vue.js +7 -11
- package/lib/src/views/error-page/404.vue2.js +2 -4
- package/lib/src/views/layout/EmptyLayout.vue.js +6 -8
- package/lib/src/views/layout/Layout.vue.js +12 -19
- package/lib/src/views/layout/Layout.vue2.js +2 -4
- package/lib/src/views/layout/NewLayout.vue.js +6 -10
- package/lib/src/views/layout/components/AppMain.vue.js +9 -11
- package/lib/src/views/layout/components/AppMain.vue2.js +2 -4
- package/lib/src/views/layout/components/Breadcrumb/index.vue.js +44 -37
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.js +2 -4
- package/lib/src/views/layout/components/Menubar/Item.vue.js +5 -7
- package/lib/src/views/layout/components/Menubar/Item.vue2.js +12 -14
- package/lib/src/views/layout/components/Menubar/Item.vue3.js +2 -4
- package/lib/src/views/layout/components/Menubar/Link.vue.js +9 -12
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.js +15 -24
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.js +2 -4
- package/lib/src/views/layout/components/Menubar/index.vue.js +19 -30
- package/lib/src/views/layout/components/Sidebar/Item.vue.js +6 -8
- package/lib/src/views/layout/components/Sidebar/Item.vue2.js +3 -4
- package/lib/src/views/layout/components/Sidebar/Link.vue.js +8 -11
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.js +11 -17
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.js +2 -4
- package/lib/src/views/layout/components/Sidebar/index.vue.js +18 -25
- package/lib/src/views/layout/components/iframe-page.vue.js +8 -10
- package/lib/src/views/layout/components/iframe-page.vue2.js +2 -4
- package/lib/src/views/layout/components/tabs/tab-content.vue.js +10 -14
- package/lib/src/views/layout/components/tabs/tab-content.vue2.js +2 -4
- package/lib/src/views/layout/components/tabs/tab-content.vue3.js +2 -4
- package/lib/src/views/layout/mixin/ResizeHandler.js +3 -5
- package/lib/src/views/layout/tab-content-iframe-index.vue.js +8 -10
- package/lib/src/views/layout/tab-content-iframe-index.vue2.js +2 -4
- package/lib/src/views/layout/tab-content-index.vue.js +12 -18
- package/lib/src/views/layout/tab-content-index.vue2.js +2 -4
- package/lib/src/views/login/authredirect.vue.js +2 -3
- package/lib/src/views/redirect/index.vue.js +17 -8
- package/lib/src/views/svg-icon/src/svg-icon.vue.js +2 -4
- package/lib/src/views/wf-history/tache-subprocess-history.vue.js +11 -13
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.js +2 -4
- package/lib/style.css +685 -685
- package/lib/super-grid/index.js +5 -7
- package/lib/super-grid/src/apis.js +221 -231
- package/lib/super-grid/src/columns-config.vue.js +16 -22
- package/lib/super-grid/src/components/grid-icon.vue.js +26 -34
- package/lib/super-grid/src/components/grid-radio-input.vue.js +15 -18
- package/lib/super-grid/src/components/grid-radio-input.vue2.js +3 -4
- package/lib/super-grid/src/components/mobile-table-card.js +73 -83
- package/lib/super-grid/src/components/select-input.vue.js +98 -106
- package/lib/super-grid/src/components/select-input.vue2.js +3 -4
- package/lib/super-grid/src/custom-formatter.js +69 -74
- package/lib/super-grid/src/dynamic-input.vue.js +142 -159
- package/lib/super-grid/src/eventBus.js +3 -6
- package/lib/super-grid/src/events.js +34 -36
- package/lib/super-grid/src/formValidatorUtil.js +62 -65
- package/lib/super-grid/src/formatter.js +36 -41
- package/lib/super-grid/src/group-column.vue.js +8 -13
- package/lib/super-grid/src/header-context-menu.vue.js +10 -13
- package/lib/super-grid/src/header-context-menu.vue2.js +2 -4
- package/lib/super-grid/src/index-column.vue.js +7 -10
- package/lib/super-grid/src/normal-column-content.vue.js +186 -205
- package/lib/super-grid/src/normal-column-content.vue2.js +2 -4
- package/lib/super-grid/src/normal-column.vue.js +40 -55
- package/lib/super-grid/src/normal-column.vue2.js +2 -4
- package/lib/super-grid/src/public-methods.js +12 -14
- package/lib/super-grid/src/row-detail.vue.js +7 -10
- package/lib/super-grid/src/row-operation.vue.js +19 -26
- package/lib/super-grid/src/row-operation.vue2.js +2 -4
- package/lib/super-grid/src/scan-util.js +24 -26
- package/lib/super-grid/src/search-button.vue.js +12 -17
- package/lib/super-grid/src/search-condition-input.vue.js +8 -12
- package/lib/super-grid/src/search-condition-list.vue.js +10 -13
- package/lib/super-grid/src/search-form-advancedQuery.vue.js +13 -23
- package/lib/super-grid/src/search-form-advancedQuery.vue2.js +2 -4
- package/lib/super-grid/src/search-form-dialog.vue.js +9 -13
- package/lib/super-grid/src/search-form-item.vue.js +16 -24
- package/lib/super-grid/src/search-form-item.vue2.js +2 -4
- package/lib/super-grid/src/search-form-mobile.vue.js +13 -22
- package/lib/super-grid/src/search-form-mobile.vue2.js +2 -4
- package/lib/super-grid/src/search-form-number.vue.js +9 -14
- package/lib/super-grid/src/search-form-open.vue.js +7 -13
- package/lib/super-grid/src/search-form-ordinarySearch.vue.js +11 -19
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.js +2 -4
- package/lib/super-grid/src/search-form.vue.js +65 -77
- package/lib/super-grid/src/search-form.vue2.js +2 -4
- package/lib/super-grid/src/search-methods.js +2 -3
- package/lib/super-grid/src/selection-column.vue.js +7 -9
- package/lib/super-grid/src/store.js +3 -4
- package/lib/super-grid/src/super-grid-service.js +121 -128
- package/lib/super-grid/src/super-grid.vue.js +186 -217
- package/lib/super-grid/src/super-grid.vue2.js +2 -4
- package/lib/super-grid/src/utils.js +265 -322
- package/lib/super-grid/src/view-image-dialog.vue.js +26 -33
- package/lib/super-icon/index.js +5 -7
- package/lib/super-icon/src/index.vue.js +5 -7
- package/lib/super-icon/src/index.vue2.js +8 -11
- package/lib/super-icon/src/index.vue3.js +2 -4
- package/lib/super-nine-grid/index.js +5 -7
- package/lib/super-nine-grid/src/apis.js +5 -8
- package/lib/super-nine-grid/src/custom-formatter.js +5 -7
- package/lib/super-nine-grid/src/formatter.js +28 -29
- package/lib/super-nine-grid/src/search-form-number.vue.js +8 -12
- package/lib/super-nine-grid/src/search-form.vue.js +33 -40
- package/lib/super-nine-grid/src/search-form.vue2.js +2 -4
- package/lib/super-nine-grid/src/search-methods.js +2 -3
- package/lib/super-nine-grid/src/store.js +3 -4
- package/lib/super-nine-grid/src/super-grid-service.js +5 -9
- package/lib/super-nine-grid/src/super-nine-grid.vue.js +95 -105
- package/lib/super-nine-grid/src/super-nine-grid.vue2.js +2 -4
- package/lib/super-nine-grid/src/utils.js +31 -27
- package/lib/svg-icon/index.js +5 -7
- package/lib/svg-icon/src/svg-icon.vue.js +8 -10
- package/lib/svg-icon/src/svg-icon.vue2.js +2 -4
- package/lib/utils/gogocodeTransfer.js +23 -28
- package/lib/utils/memory-cache-utils.js +3 -5
- package/lib/utils/organization.js +40 -53
- package/lib/utils/utils.js +27 -29
- package/lib/utils/value-set.js +68 -70
- package/lib/valid-code/index.js +5 -7
- package/lib/valid-code/src/valid-code.vue.js +10 -13
- package/lib/valid-code/src/valid-code.vue2.js +2 -4
- package/lib/workflow-button/index.js +3 -5
- package/lib/workflow-button/src/workflow-button.vue.js +34 -39
- package/lib/workflow-history-list/index.js +5 -7
- package/lib/workflow-history-list/src/api.js +2 -3
- package/lib/workflow-history-list/src/workflow-history-list.vue.js +59 -65
- package/lib/workflow-history-list/src/workflow-history-list.vue2.js +2 -4
- package/lib/workgroup-tree/index.js +5 -7
- package/lib/workgroup-tree/src/workgroup-tree.vue.js +11 -17
- package/lib/workgroup-tree-inline/index.js +3 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.js +21 -25
- package/lib/workgroup-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +43 -52
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +2 -4
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.js +5 -7
- package/lib/workgroup-tree-mobile/index.js +5 -8
- package/lib/workgroup-tree-mobile/src/dept-result.vue.js +11 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +9 -12
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +2 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +3 -5
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +76 -86
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +3 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.js +20 -28
- package/lib/workgroup-user-tree/index.js +5 -7
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.js +11 -17
- package/lib/workgroup-user-tree-inline/index.js +3 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.js +21 -25
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +9 -11
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +34 -43
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +2 -4
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.js +10 -11
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.js +3 -4
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.js +11 -15
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +9 -12
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +2 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +3 -5
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +93 -104
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +3 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +16 -25
- package/lib/year-range-picker/index.js +3 -5
- package/lib/year-range-picker/src/year-range-picker.vue.js +9 -12
- package/package.json +1 -1
- package/vite.config.js +11 -11
|
@@ -1,178 +1,170 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function i(e4) {
|
|
12
|
-
try {
|
|
13
|
-
u(o2.next(e4));
|
|
14
|
-
} catch (e5) {
|
|
15
|
-
a(e5);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
function s(e4) {
|
|
19
|
-
try {
|
|
20
|
-
u(o2.throw(e4));
|
|
21
|
-
} catch (e5) {
|
|
22
|
-
a(e5);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function u(e4) {
|
|
26
|
-
var t4;
|
|
27
|
-
e4.done ? n2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
|
|
28
|
-
e5(t4);
|
|
29
|
-
})).then(i, s);
|
|
30
|
-
}
|
|
31
|
-
u((o2 = o2.apply(e3, t3 || [])).next());
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function t2(e3, t3) {
|
|
35
|
-
var r2, o2, n2, a, i = { label: 0, sent: function() {
|
|
36
|
-
if (1 & n2[0])
|
|
37
|
-
throw n2[1];
|
|
38
|
-
return n2[1];
|
|
39
|
-
}, trys: [], ops: [] };
|
|
40
|
-
return a = { next: s(0), throw: s(1), return: s(2) }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
|
|
41
|
-
return this;
|
|
42
|
-
}), a;
|
|
43
|
-
function s(s2) {
|
|
44
|
-
return function(u) {
|
|
45
|
-
return function(s3) {
|
|
46
|
-
if (r2)
|
|
47
|
-
throw new TypeError("Generator is already executing.");
|
|
48
|
-
for (; a && (a = 0, s3[0] && (i = 0)), i; )
|
|
49
|
-
try {
|
|
50
|
-
if (r2 = 1, o2 && (n2 = 2 & s3[0] ? o2.return : s3[0] ? o2.throw || ((n2 = o2.return) && n2.call(o2), 0) : o2.next) && !(n2 = n2.call(o2, s3[1])).done)
|
|
51
|
-
return n2;
|
|
52
|
-
switch (o2 = 0, n2 && (s3 = [2 & s3[0], n2.value]), s3[0]) {
|
|
53
|
-
case 0:
|
|
54
|
-
case 1:
|
|
55
|
-
n2 = s3;
|
|
56
|
-
break;
|
|
57
|
-
case 4:
|
|
58
|
-
return i.label++, { value: s3[1], done: false };
|
|
59
|
-
case 5:
|
|
60
|
-
i.label++, o2 = s3[1], s3 = [0];
|
|
61
|
-
continue;
|
|
62
|
-
case 7:
|
|
63
|
-
s3 = i.ops.pop(), i.trys.pop();
|
|
64
|
-
continue;
|
|
65
|
-
default:
|
|
66
|
-
if (!((n2 = (n2 = i.trys).length > 0 && n2[n2.length - 1]) || 6 !== s3[0] && 2 !== s3[0])) {
|
|
67
|
-
i = 0;
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
if (3 === s3[0] && (!n2 || s3[1] > n2[0] && s3[1] < n2[3])) {
|
|
71
|
-
i.label = s3[1];
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
if (6 === s3[0] && i.label < n2[1]) {
|
|
75
|
-
i.label = n2[1], n2 = s3;
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
if (n2 && i.label < n2[2]) {
|
|
79
|
-
i.label = n2[2], i.ops.push(s3);
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
n2[2] && i.ops.pop(), i.trys.pop();
|
|
83
|
-
continue;
|
|
84
|
-
}
|
|
85
|
-
s3 = t3.call(e3, i);
|
|
86
|
-
} catch (e4) {
|
|
87
|
-
s3 = [6, e4], o2 = 0;
|
|
88
|
-
} finally {
|
|
89
|
-
r2 = n2 = 0;
|
|
90
|
-
}
|
|
91
|
-
if (5 & s3[0])
|
|
92
|
-
throw s3[1];
|
|
93
|
-
return { value: s3[0] ? s3[1] : void 0, done: true };
|
|
94
|
-
}([s2, u]);
|
|
95
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
var e, t;
|
|
3
|
+
e = globalThis, t = function() {
|
|
4
|
+
function e2(e3, t3, r2, o2) {
|
|
5
|
+
return new (r2 || (r2 = Promise))(function(n2, a) {
|
|
6
|
+
function i(e4) {
|
|
7
|
+
try {
|
|
8
|
+
u(o2.next(e4));
|
|
9
|
+
} catch (e5) {
|
|
10
|
+
a(e5);
|
|
96
11
|
}
|
|
97
12
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
t4(e5);
|
|
105
|
-
});
|
|
106
|
-
}) : Promise.reject(new Error("不支持录音"));
|
|
13
|
+
function s(e4) {
|
|
14
|
+
try {
|
|
15
|
+
u(o2.throw(e4));
|
|
16
|
+
} catch (e5) {
|
|
17
|
+
a(e5);
|
|
18
|
+
}
|
|
107
19
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
switch (t3.label) {
|
|
114
|
-
case 0:
|
|
115
|
-
return [3, 2];
|
|
116
|
-
case 1:
|
|
117
|
-
return t3.sent(), [2, new AudioWorkletNode(r2, "processor-worklet")];
|
|
118
|
-
case 2:
|
|
119
|
-
return (e3 = o) ? [3, 4] : [4, new Worker("".concat(n2, "/processor.worker.js"))];
|
|
120
|
-
case 3:
|
|
121
|
-
e3 = t3.sent(), t3.label = 4;
|
|
122
|
-
case 4:
|
|
123
|
-
return [2, { port: o = e3 }];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
20
|
+
function u(e4) {
|
|
21
|
+
var t4;
|
|
22
|
+
e4.done ? n2(e4.value) : (t4 = e4.value, t4 instanceof r2 ? t4 : new r2(function(e5) {
|
|
23
|
+
e5(t4);
|
|
24
|
+
})).then(i, s);
|
|
127
25
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
26
|
+
u((o2 = o2.apply(e3, t3 || [])).next());
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function t2(e3, t3) {
|
|
30
|
+
var r2, o2, n2, a, i = { label: 0, sent: function() {
|
|
31
|
+
if (1 & n2[0])
|
|
32
|
+
throw n2[1];
|
|
33
|
+
return n2[1];
|
|
34
|
+
}, trys: [], ops: [] };
|
|
35
|
+
return a = { next: s(0), throw: s(1), return: s(2) }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
|
|
36
|
+
return this;
|
|
37
|
+
}), a;
|
|
38
|
+
function s(s2) {
|
|
39
|
+
return function(u) {
|
|
40
|
+
return function(s3) {
|
|
41
|
+
if (r2)
|
|
42
|
+
throw new TypeError("Generator is already executing.");
|
|
43
|
+
for (; a && (a = 0, s3[0] && (i = 0)), i; )
|
|
44
|
+
try {
|
|
45
|
+
if (r2 = 1, o2 && (n2 = 2 & s3[0] ? o2.return : s3[0] ? o2.throw || ((n2 = o2.return) && n2.call(o2), 0) : o2.next) && !(n2 = n2.call(o2, s3[1])).done)
|
|
46
|
+
return n2;
|
|
47
|
+
switch (o2 = 0, n2 && (s3 = [2 & s3[0], n2.value]), s3[0]) {
|
|
138
48
|
case 0:
|
|
139
|
-
return t3.trys.push([0, 3, , 4]), (e3 = this).audioBuffers = [], [4, r()];
|
|
140
49
|
case 1:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
try {
|
|
144
|
-
(r2 = new (window.AudioContext || window.webkitAudioContext)({ sampleRate: t4 })).createMediaStreamSource(e4);
|
|
145
|
-
} catch (t5) {
|
|
146
|
-
null == r2 || r2.close(), (r2 = new (window.AudioContext || window.webkitAudioContext)()).createMediaStreamSource(e4);
|
|
147
|
-
}
|
|
148
|
-
return r2;
|
|
149
|
-
}(o4, i), this.audioContext = c, l = c.createMediaStreamSource(o4), [4, n(c, this.processorPath)];
|
|
150
|
-
case 2:
|
|
151
|
-
return f = t3.sent(), this.audioWorklet = f, f.port.postMessage({ type: "init", data: { frameSize: s, toSampleRate: i || c.sampleRate, fromSampleRate: c.sampleRate, arrayBufferType: u || "short16" } }), f.port.onmessage = function(t4) {
|
|
152
|
-
var r2 = t4.data, o5 = r2.frameBuffer, n2 = r2.isLastFrame;
|
|
153
|
-
if (s && e3.onFrameRecorded)
|
|
154
|
-
if (null == o5 ? void 0 : o5.byteLength)
|
|
155
|
-
for (var a2 = 0; a2 < o5.byteLength; )
|
|
156
|
-
e3.onFrameRecorded({ isLastFrame: n2 && a2 + s >= o5.byteLength, frameBuffer: t4.data.frameBuffer.slice(a2, a2 + s) }), a2 += s;
|
|
157
|
-
else
|
|
158
|
-
e3.onFrameRecorded(t4.data);
|
|
159
|
-
e3.onStop && (o5 && e3.audioBuffers.push(o5), n2 && e3.onStop(e3.audioBuffers));
|
|
160
|
-
}, (d = c.createScriptProcessor(0, 1, 1)).onaudioprocess = function(e4) {
|
|
161
|
-
f.port.postMessage({ type: "message", data: e4.inputBuffer.getChannelData(0) });
|
|
162
|
-
}, l.connect(d), d.connect(c.destination), c.resume(), null === (a = this.onStart) || void 0 === a || a.call(this), [3, 4];
|
|
163
|
-
case 3:
|
|
164
|
-
return p = t3.sent(), console.error(p), [3, 4];
|
|
50
|
+
n2 = s3;
|
|
51
|
+
break;
|
|
165
52
|
case 4:
|
|
166
|
-
return [
|
|
53
|
+
return i.label++, { value: s3[1], done: false };
|
|
54
|
+
case 5:
|
|
55
|
+
i.label++, o2 = s3[1], s3 = [0];
|
|
56
|
+
continue;
|
|
57
|
+
case 7:
|
|
58
|
+
s3 = i.ops.pop(), i.trys.pop();
|
|
59
|
+
continue;
|
|
60
|
+
default:
|
|
61
|
+
if (!((n2 = (n2 = i.trys).length > 0 && n2[n2.length - 1]) || 6 !== s3[0] && 2 !== s3[0])) {
|
|
62
|
+
i = 0;
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
if (3 === s3[0] && (!n2 || s3[1] > n2[0] && s3[1] < n2[3])) {
|
|
66
|
+
i.label = s3[1];
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
if (6 === s3[0] && i.label < n2[1]) {
|
|
70
|
+
i.label = n2[1], n2 = s3;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
if (n2 && i.label < n2[2]) {
|
|
74
|
+
i.label = n2[2], i.ops.push(s3);
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
n2[2] && i.ops.pop(), i.trys.pop();
|
|
78
|
+
continue;
|
|
167
79
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
80
|
+
s3 = t3.call(e3, i);
|
|
81
|
+
} catch (e4) {
|
|
82
|
+
s3 = [6, e4], o2 = 0;
|
|
83
|
+
} finally {
|
|
84
|
+
r2 = n2 = 0;
|
|
85
|
+
}
|
|
86
|
+
if (5 & s3[0])
|
|
87
|
+
throw s3[1];
|
|
88
|
+
return { value: s3[0] ? s3[1] : void 0, done: true };
|
|
89
|
+
}([s2, u]);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
176
92
|
}
|
|
177
|
-
|
|
178
|
-
|
|
93
|
+
function r() {
|
|
94
|
+
var e3, t3 = navigator, r2 = t3.getUserMedia || t3.webkitGetUserMedia || t3.mozGetUserMedia;
|
|
95
|
+
return (null === (e3 = t3.mediaDevices) || void 0 === e3 ? void 0 : e3.getUserMedia) ? t3.mediaDevices.getUserMedia({ audio: true, video: false }) : r2 ? new Promise(function(e4, t4) {
|
|
96
|
+
r2.call(navigator, { audio: true, video: false }, function(t5) {
|
|
97
|
+
e4(t5);
|
|
98
|
+
}, function(e5) {
|
|
99
|
+
t4(e5);
|
|
100
|
+
});
|
|
101
|
+
}) : Promise.reject(new Error("不支持录音"));
|
|
102
|
+
}
|
|
103
|
+
var o;
|
|
104
|
+
function n(r2, n2) {
|
|
105
|
+
return e2(this, void 0, void 0, function() {
|
|
106
|
+
var e3;
|
|
107
|
+
return t2(this, function(t3) {
|
|
108
|
+
switch (t3.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
return [3, 2];
|
|
111
|
+
case 1:
|
|
112
|
+
return t3.sent(), [2, new AudioWorkletNode(r2, "processor-worklet")];
|
|
113
|
+
case 2:
|
|
114
|
+
return (e3 = o) ? [3, 4] : [4, new Worker("".concat(n2, "/processor.worker.js"))];
|
|
115
|
+
case 3:
|
|
116
|
+
e3 = t3.sent(), t3.label = 4;
|
|
117
|
+
case 4:
|
|
118
|
+
return [2, { port: o = e3 }];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
return function() {
|
|
124
|
+
function o2(e3) {
|
|
125
|
+
this.processorPath = e3, this.audioBuffers = [];
|
|
126
|
+
}
|
|
127
|
+
return o2.prototype.start = function(o3) {
|
|
128
|
+
var a, i = o3.sampleRate, s = o3.frameSize, u = o3.arrayBufferType;
|
|
129
|
+
return e2(this, void 0, void 0, function() {
|
|
130
|
+
var e3, o4, c, l, f, d, p;
|
|
131
|
+
return t2(this, function(t3) {
|
|
132
|
+
switch (t3.label) {
|
|
133
|
+
case 0:
|
|
134
|
+
return t3.trys.push([0, 3, , 4]), (e3 = this).audioBuffers = [], [4, r()];
|
|
135
|
+
case 1:
|
|
136
|
+
return o4 = t3.sent(), this.audioTracks = o4.getAudioTracks(), c = function(e4, t4) {
|
|
137
|
+
var r2;
|
|
138
|
+
try {
|
|
139
|
+
(r2 = new (window.AudioContext || window.webkitAudioContext)({ sampleRate: t4 })).createMediaStreamSource(e4);
|
|
140
|
+
} catch (t5) {
|
|
141
|
+
null == r2 || r2.close(), (r2 = new (window.AudioContext || window.webkitAudioContext)()).createMediaStreamSource(e4);
|
|
142
|
+
}
|
|
143
|
+
return r2;
|
|
144
|
+
}(o4, i), this.audioContext = c, l = c.createMediaStreamSource(o4), [4, n(c, this.processorPath)];
|
|
145
|
+
case 2:
|
|
146
|
+
return f = t3.sent(), this.audioWorklet = f, f.port.postMessage({ type: "init", data: { frameSize: s, toSampleRate: i || c.sampleRate, fromSampleRate: c.sampleRate, arrayBufferType: u || "short16" } }), f.port.onmessage = function(t4) {
|
|
147
|
+
var r2 = t4.data, o5 = r2.frameBuffer, n2 = r2.isLastFrame;
|
|
148
|
+
if (s && e3.onFrameRecorded)
|
|
149
|
+
if (null == o5 ? void 0 : o5.byteLength)
|
|
150
|
+
for (var a2 = 0; a2 < o5.byteLength; )
|
|
151
|
+
e3.onFrameRecorded({ isLastFrame: n2 && a2 + s >= o5.byteLength, frameBuffer: t4.data.frameBuffer.slice(a2, a2 + s) }), a2 += s;
|
|
152
|
+
else
|
|
153
|
+
e3.onFrameRecorded(t4.data);
|
|
154
|
+
e3.onStop && (o5 && e3.audioBuffers.push(o5), n2 && e3.onStop(e3.audioBuffers));
|
|
155
|
+
}, (d = c.createScriptProcessor(0, 1, 1)).onaudioprocess = function(e4) {
|
|
156
|
+
f.port.postMessage({ type: "message", data: e4.inputBuffer.getChannelData(0) });
|
|
157
|
+
}, l.connect(d), d.connect(c.destination), c.resume(), null === (a = this.onStart) || void 0 === a || a.call(this), [3, 4];
|
|
158
|
+
case 3:
|
|
159
|
+
return p = t3.sent(), console.error(p), [3, 4];
|
|
160
|
+
case 4:
|
|
161
|
+
return [2];
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
}, o2.prototype.stop = function() {
|
|
166
|
+
var e3, t3, r2, o3;
|
|
167
|
+
null === (e3 = this.audioWorklet) || void 0 === e3 || e3.port.postMessage({ type: "stop" }), null === (t3 = this.audioTracks) || void 0 === t3 || t3[0].stop(), "running" === (null === (r2 = this.audioContext) || void 0 === r2 ? void 0 : r2.state) && (null === (o3 = this.audioContext) || void 0 === o3 || o3.close());
|
|
168
|
+
}, o2;
|
|
169
|
+
}();
|
|
170
|
+
}, "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).RecorderManager = t();
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
n as startTimer,
|
|
10
|
-
e as stopTimer
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
let e = null;
|
|
4
|
+
exports.startTimer = function(t, r = 0, l = 1e3) {
|
|
5
|
+
e = setInterval(t, l);
|
|
6
|
+
}, exports.stopTimer = function() {
|
|
7
|
+
e && (clearInterval(e), e = null);
|
|
11
8
|
};
|
|
@@ -1,104 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { Microphone as w, Mute as g } from "@element-plus/icons-vue";
|
|
8
|
-
import "uuid";
|
|
9
|
-
import "axios";
|
|
10
|
-
import "js-base64";
|
|
11
|
-
import "../../../src/utils/request.js";
|
|
12
|
-
import { ElMessage as N } from "element-plus";
|
|
13
|
-
const S = { key: 0 }, O = { __name: "voice", props: { paramMsg: { type: String, default: false } }, emits: ["userMessage"], setup(O2, { emit: E }) {
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue");
|
|
3
|
+
require("./js/crypto-js.js"), require("./js/processor/index.umd.js");
|
|
4
|
+
const r = require("./js/timer.js"), o = require("../../../src/utils/voice-setting-cache.js"), t = require("../../../src/utils/auth.js"), n = require("@element-plus/icons-vue");
|
|
5
|
+
require("uuid"), require("axios"), require("js-base64"), require("../../../src/utils/request.js");
|
|
6
|
+
const a = require("element-plus"), s = { key: 0 }, i = { __name: "voice", props: { paramMsg: { type: String, default: false } }, emits: ["userMessage"], setup(i2, { emit: c }) {
|
|
14
7
|
window.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/bs/ai-voice-command/permission-json").then((e2) => {
|
|
15
|
-
|
|
8
|
+
e2 ? o.cacheVoiceSetting(JSON.stringify(e2)) : o.cacheVoiceSetting("EMPTY_VALUE");
|
|
16
9
|
}).catch((e2) => {
|
|
17
10
|
console.error("获取语音命令失败", e2);
|
|
18
11
|
}), window.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/bs/ai-voice-command/command/leaf-menu").then((e2) => {
|
|
19
|
-
|
|
12
|
+
o.cacheVoiceLeafMenu(JSON.stringify(e2));
|
|
20
13
|
}).catch((e2) => {
|
|
21
|
-
|
|
14
|
+
o.cacheVoiceLeafMenu(JSON.stringify([])), console.error("获取语音命令所需叶子菜单失败", e2);
|
|
22
15
|
});
|
|
23
|
-
let
|
|
24
|
-
e(false);
|
|
25
|
-
const
|
|
26
|
-
let
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
16
|
+
let u = e.ref("UNDEFINED"), l = e.ref("开始录音"), d = e.ref(""), p = e.ref("");
|
|
17
|
+
e.ref(false);
|
|
18
|
+
const f = "https:" === window.location.protocol || window.location.href.indexOf("//localhost") > 0 || window.location.href.indexOf("//127.0.0.1") > 0;
|
|
19
|
+
let m;
|
|
20
|
+
const g = e.ref("");
|
|
21
|
+
e.onMounted(() => {
|
|
22
|
+
m = new RecorderManager(), m.constructor(window.$vueApp.config.globalProperties.portalUrl + "/js/processor"), m.onStart = () => {
|
|
23
|
+
g.value ? g.value = "" : O("OPEN");
|
|
24
|
+
}, m.onFrameRecorded = ({ isLastFrame: e2, frameBuffer: r2 }) => {
|
|
25
|
+
v.readyState === v.OPEN && (v.send(JSON.stringify({ data: { status: e2 ? 2 : 1, format: "audio/L16;rate=16000", encoding: "raw", audio: S(r2) } })), e2 && O("CLOSING"));
|
|
26
|
+
}, m.onStop = () => {
|
|
27
|
+
r.stopTimer();
|
|
35
28
|
};
|
|
36
29
|
});
|
|
37
|
-
let
|
|
38
|
-
function
|
|
39
|
-
for (var
|
|
40
|
-
|
|
41
|
-
return window.btoa(
|
|
30
|
+
let v = e.ref(), w = e.ref(), N = e.ref();
|
|
31
|
+
function S(e2) {
|
|
32
|
+
for (var r2 = "", o2 = new Uint8Array(e2), t2 = o2.byteLength, n2 = 0; n2 < t2; n2++)
|
|
33
|
+
r2 += String.fromCharCode(o2[n2]);
|
|
34
|
+
return window.btoa(r2);
|
|
42
35
|
}
|
|
43
|
-
let
|
|
44
|
-
function
|
|
45
|
-
|
|
36
|
+
let h = 60;
|
|
37
|
+
function E() {
|
|
38
|
+
h -= 1, h <= 0 ? (r.stopTimer(), m.stop()) : l.value = `录音中(${h}s)`;
|
|
46
39
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
40
|
+
function O(e2) {
|
|
41
|
+
u.value = e2, "CONNECTING" === e2 ? (l.value = "建立连接中", w = "", N = "") : "OPEN" === e2 ? (h = 60, l.value = `录音中(${h}s)`, r.startTimer(E)) : "CLOSING" === e2 ? l.value = "关闭连接中" : "CLOSED" === e2 && (l.value = "开始录音", k());
|
|
49
42
|
}
|
|
50
|
-
function
|
|
51
|
-
let e2 =
|
|
43
|
+
function C() {
|
|
44
|
+
let e2 = t.getUsername();
|
|
52
45
|
e2 || (e2 = 1);
|
|
53
|
-
const
|
|
46
|
+
const r2 = t.getToken(), o2 = window.$vueApp.config.globalProperties.voiceSockerUrl + e2 + "?jwt=" + r2;
|
|
54
47
|
if ("WebSocket" in window)
|
|
55
|
-
|
|
48
|
+
v = new WebSocket(o2);
|
|
56
49
|
else {
|
|
57
50
|
if (!("MozWebSocket" in window))
|
|
58
51
|
return void alert("浏览器不支持WebSocket");
|
|
59
|
-
|
|
52
|
+
v = new MozWebSocket(o2);
|
|
60
53
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
},
|
|
54
|
+
O("CONNECTING"), v.onopen = (e3) => {
|
|
55
|
+
m.start({ sampleRate: 16e3, frameSize: 1280 });
|
|
56
|
+
v.send(JSON.stringify({ common: { app_id: "c4b3002b" }, business: { language: "zh_cn", domain: "iat", accent: "mandarin", vad_eos: 5e3, dwa: "wpgs" }, data: { status: 0, format: "audio/L16;rate=16000", encoding: "raw" } }));
|
|
57
|
+
}, v.onmessage = (e3) => {
|
|
65
58
|
!function(e4) {
|
|
66
|
-
let
|
|
67
|
-
if (
|
|
68
|
-
|
|
69
|
-
else if (
|
|
70
|
-
let e5 =
|
|
59
|
+
let r3 = e4;
|
|
60
|
+
if (r3 = JSON.parse(e4), r3 && r3.error)
|
|
61
|
+
v.close(), g.value = r3.error, a.ElMessage.error(r3.error);
|
|
62
|
+
else if (r3.data && r3.data.result) {
|
|
63
|
+
let e5 = r3.data.result, o3 = "", t2 = e5.ws;
|
|
71
64
|
for (let e6 = 0; e6 < t2.length; e6++)
|
|
72
|
-
|
|
73
|
-
e5.pgs ? ("apd" === e5.pgs && (
|
|
65
|
+
o3 += t2[e6].cw[0].w;
|
|
66
|
+
e5.pgs ? ("apd" === e5.pgs && (w = N), N = w + o3) : w += o3, d.value = N || w || "";
|
|
74
67
|
}
|
|
75
|
-
0 ===
|
|
68
|
+
0 === r3.code && 2 === r3.data.status && v.close(), 0 !== r3.code && (v.close(), console.error(r3));
|
|
76
69
|
}(e3.data);
|
|
77
|
-
},
|
|
78
|
-
console.error(e3),
|
|
79
|
-
},
|
|
80
|
-
|
|
70
|
+
}, v.onerror = (e3) => {
|
|
71
|
+
console.error(e3), m.stop(), O("CLOSED");
|
|
72
|
+
}, v.onclose = (e3) => {
|
|
73
|
+
m.stop(), O("CLOSED");
|
|
81
74
|
};
|
|
82
75
|
}
|
|
83
|
-
const
|
|
76
|
+
const b = () => {
|
|
84
77
|
!async function() {
|
|
85
78
|
if (!navigator.permissions || !navigator.permissions.query)
|
|
86
79
|
return "unsupported";
|
|
87
80
|
try {
|
|
88
81
|
const e2 = await navigator.permissions.query({ name: "microphone" });
|
|
89
|
-
return "denied" === e2.state &&
|
|
82
|
+
return "denied" === e2.state && a.ElMessage.error("浏览器麦克风权限被禁止,请取消禁止"), e2.state;
|
|
90
83
|
} catch (e2) {
|
|
91
84
|
return console.error("查询权限时发生错误:", e2), "error";
|
|
92
85
|
}
|
|
93
|
-
}(), "UNDEFINED" ===
|
|
94
|
-
},
|
|
95
|
-
|
|
86
|
+
}(), "UNDEFINED" === u.value || "CLOSED" === u.value ? C() : "CONNECTING" !== u.value && "OPEN" !== u.value || m.stop();
|
|
87
|
+
}, k = () => {
|
|
88
|
+
p.value = p.value + d.value, d.value = "", "" != p.value ? (c("userMessage", p.value), p.value = "") : (p.value = "", d.value = "");
|
|
96
89
|
};
|
|
97
|
-
return (
|
|
98
|
-
const
|
|
99
|
-
return
|
|
90
|
+
return (r2, o2) => {
|
|
91
|
+
const t2 = e.resolveComponent("el-icon");
|
|
92
|
+
return e.unref(f) ? (e.openBlock(), e.createElementBlock("span", s, ["UNDEFINED" === e.unref(u) || "CLOSED" === e.unref(u) ? (e.openBlock(), e.createBlock(t2, { key: 0, color: "#409EFF", onClick: b }, { default: e.withCtx(() => [e.createVNode(e.unref(n.Microphone))]), _: 1 })) : (e.openBlock(), e.createBlock(t2, { key: 1, class: "send-icon", color: "red" }, { default: e.withCtx(() => [e.createVNode(e.unref(n.Mute))]), _: 1 }))])) : e.createCommentVNode("", true);
|
|
100
93
|
};
|
|
101
94
|
} };
|
|
102
|
-
|
|
103
|
-
O as default
|
|
104
|
-
};
|
|
95
|
+
module.exports = i;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
n as default
|
|
7
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("./index.vue.js");
|
|
3
|
+
e.install = function(n) {
|
|
4
|
+
window.$vueApp.component(e.name, e);
|
|
5
|
+
}, module.exports = e;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const r =
|
|
5
|
-
|
|
6
|
-
r as default
|
|
7
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("./index.vue2.js");
|
|
3
|
+
require("./index.vue3.js");
|
|
4
|
+
const r = require("../_virtual/_plugin-vue_export-helper.js")(e, [["__scopeId", "data-v-2aeaa81d"]]);
|
|
5
|
+
module.exports = r;
|