agilebuilder-ui 1.1.65-tmp14 → 1.1.65-tmp16
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 +7 -5
- package/lib/IntervalSelection/src/sectionDate.vue.js +21 -17
- package/lib/IntervalSelection/src/sectionDate.vue2.js +4 -2
- package/lib/_virtual/__vite-browser-external.js +4 -2
- package/lib/_virtual/_plugin-vue_export-helper.js +8 -6
- package/lib/breadcrumb/index.js +5 -3
- package/lib/breadcrumb/src/breadcrumb.vue.js +19 -28
- package/lib/breadcrumb/src/breadcrumb.vue2.js +4 -2
- package/lib/chat-embed/index.js +5 -3
- package/lib/chat-embed/src/chat-addition-data.vue.js +7 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.js +13 -11
- package/lib/chat-embed/src/chat-addition-data.vue3.js +4 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.js +7 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.js +20 -17
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.js +4 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.js +7 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.js +22 -17
- package/lib/chat-embed/src/chat-bubble-footer.vue3.js +4 -2
- package/lib/chat-embed/src/chat-embed-message.js +20 -14
- package/lib/chat-embed/src/chat-sender.vue.js +7 -5
- package/lib/chat-embed/src/chat-sender.vue2.js +123 -110
- package/lib/chat-embed/src/chat-sender.vue3.js +4 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.js +7 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.js +50 -42
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.js +4 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.js +7 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.js +6 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.js +4 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.js +7 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.js +84 -74
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.js +4 -2
- package/lib/chat-embed/src/components/history-detail.vue.js +7 -5
- package/lib/chat-embed/src/components/history-detail.vue2.js +32 -27
- package/lib/chat-embed/src/components/history-detail.vue3.js +4 -2
- package/lib/chat-embed/src/header.vue.js +7 -5
- package/lib/chat-embed/src/header.vue2.js +32 -25
- package/lib/chat-embed/src/header.vue3.js +4 -2
- package/lib/chat-embed/src/index.vue.js +7 -5
- package/lib/chat-embed/src/index.vue2.js +211 -185
- package/lib/chat-embed/src/index.vue3.js +4 -2
- package/lib/chat-embed/src/recommendation-message.vue.js +7 -5
- package/lib/chat-embed/src/recommendation-message.vue2.js +8 -5
- package/lib/chat-embed/src/recommendation-message.vue3.js +4 -2
- package/lib/chat-embed/src/sidebar-item.vue.js +7 -5
- package/lib/chat-embed/src/sidebar-item.vue2.js +93 -84
- package/lib/chat-embed/src/sidebar-item.vue3.js +4 -2
- package/lib/chat-embed/src/type.js +5 -3
- package/lib/chat-embed/src/util/chat-embed-util.js +41 -35
- package/lib/chat-embed/src/util/history-message-util.js +85 -63
- package/lib/chat-embed/src/util/mcp-utils.js +8 -5
- package/lib/chat-embed/src/util/text-file-util.js +11 -7
- package/lib/chat-embed/src/voice/index.js +7 -5
- package/lib/chat-embed/src/voice/js/crypto-js.js +995 -987
- package/lib/chat-embed/src/voice/js/processor/index.umd.js +169 -161
- package/lib/chat-embed/src/voice/js/timer.js +10 -7
- package/lib/chat-embed/src/voice/voice.vue.js +70 -61
- package/lib/date-picker-range/index.js +7 -5
- package/lib/date-picker-range/index.vue.js +7 -5
- package/lib/date-picker-range/index.vue2.js +63 -59
- package/lib/date-picker-range/index.vue3.js +4 -2
- package/lib/department-tree/index.js +5 -3
- package/lib/department-tree/src/department-tree.vue.js +17 -11
- package/lib/department-tree-inline/index.js +5 -3
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.js +27 -17
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.js +4 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.js +27 -17
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.js +4 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.js +13 -8
- package/lib/department-tree-inline/src/department-tree-service.js +10 -8
- package/lib/department-tree-inline/src/search-result.vue.js +23 -19
- package/lib/department-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/department-tree-mobile/index.js +7 -4
- package/lib/department-tree-mobile/src/department-tree-app.vue.js +12 -9
- package/lib/department-tree-mobile/src/department-tree-app.vue2.js +4 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.js +5 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.js +91 -80
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.js +4 -3
- package/lib/department-tree-mobile/src/department-tree-service.js +42 -32
- package/lib/department-tree-mobile/src/dept-path.vue.js +11 -10
- package/lib/department-tree-mobile/src/dept-path.vue2.js +4 -3
- package/lib/department-tree-mobile/src/dept-result.vue.js +14 -11
- package/lib/department-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/department-user-tree/index.js +5 -3
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.js +14 -10
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.js +4 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.js +14 -9
- package/lib/department-user-tree/src/department-user-tree.vue.js +20 -14
- package/lib/department-user-tree-inline/index.js +5 -3
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +28 -17
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +4 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +33 -21
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +4 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.js +13 -8
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.js +9 -6
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.js +11 -8
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.js +12 -7
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.js +12 -7
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.js +14 -8
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.js +20 -14
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.js +23 -17
- package/lib/department-user-tree-inline/src/group-user-tree-service.js +3 -2
- package/lib/department-user-tree-inline/src/search-result.vue.js +15 -12
- package/lib/department-user-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/department-user-tree-mobile/index.js +7 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.js +12 -9
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.js +4 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.js +5 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +104 -93
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +4 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.js +30 -20
- package/lib/department-user-tree-mobile/src/dept-path.vue.js +11 -10
- package/lib/department-user-tree-mobile/src/dept-path.vue2.js +4 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.js +15 -11
- package/lib/department-user-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/directives/prevent-reclick.js +3 -2
- package/lib/dynamic-source-select/index.js +7 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.js +15 -13
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.js +183 -173
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.js +4 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.js +4 -2
- package/lib/dynamic-source-select/src/events.js +3 -2
- package/lib/empty-state/index.vue.js +8 -5
- package/lib/empty-state/index.vue2.js +4 -3
- package/lib/fs-preview/index.js +7 -5
- package/lib/fs-preview/src/fs-preview.vue.js +72 -63
- package/lib/fs-preview/src/fs-preview.vue2.js +4 -2
- package/lib/fs-upload/index.js +7 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.js +32 -24
- package/lib/fs-upload/src/fs-upload-single.vue.js +39 -30
- package/lib/fs-upload/src/fs-upload.vue.js +16 -10
- package/lib/fs-upload/src/see-big-picture.vue.js +11 -8
- package/lib/fs-upload-list/index.js +7 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.js +40 -33
- package/lib/fs-upload-list/src/fs-upload-list.vue2.js +4 -2
- package/lib/fs-upload-new/index.js +7 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +38 -34
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +4 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +109 -101
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +4 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +7 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +33 -26
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +4 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +31 -27
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +4 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +24 -18
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +4 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.js +7 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.js +43 -36
- package/lib/fs-upload-new/src/fs-button-upload.vue3.js +4 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.js +7 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.js +45 -37
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.js +4 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.js +8 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.js +70 -61
- package/lib/fs-upload-new/src/fs-preview-new.vue3.js +4 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.js +4 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.js +47 -37
- package/lib/fs-upload-new/src/fs-upload-new.vue2.js +4 -3
- package/lib/hamburger/index.js +5 -3
- package/lib/hamburger/src/hamburger.vue.js +14 -10
- package/lib/hamburger/src/hamburger.vue2.js +4 -2
- package/lib/index.js +383 -40
- package/lib/json-view/json-view-dialog.vue.js +15 -12
- package/lib/json-view/json-view-dialog.vue2.js +4 -3
- package/lib/json-view/json-view.vue.js +4 -3
- package/lib/json-view/json-view.vue2.js +31 -27
- package/lib/multipart-upload/index.js +7 -5
- package/lib/multipart-upload/src/index.vue.js +11 -7
- package/lib/multipart-upload/src/multipart-upload-form.vue.js +49 -40
- package/lib/multipart-upload/src/multipart-upload-list.vue.js +67 -59
- package/lib/organization-input/index.js +7 -5
- package/lib/organization-input/src/organization-input.vue.js +37 -31
- package/lib/organization-input/src/organization-input.vue2.js +4 -2
- package/lib/plugins/export-data-new.js +104 -96
- package/lib/plugins/export-data.js +51 -45
- package/lib/plugins/index.js +8 -4
- package/lib/plugins/public-method.js +3 -2
- package/lib/remove-department/index.js +5 -3
- package/lib/remove-department/src/remove-department.vue.js +19 -13
- package/lib/remove-department/src/remove-dept-service.js +10 -9
- package/lib/remove-user/index.js +7 -5
- package/lib/remove-user/src/remove-user-service.js +4 -3
- package/lib/remove-user/src/remove-user.vue.js +22 -16
- package/lib/remove-workgroup/index.js +7 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.js +4 -3
- package/lib/remove-workgroup/src/remove-workgroup.vue.js +18 -12
- package/lib/rich-editor/index.js +7 -5
- package/lib/rich-editor/index.vue.js +76 -28
- package/lib/rich-editor/tinymce/zh_CN.js +2 -2
- package/lib/rich-editor/viewer.vue.js +10 -7
- package/lib/row-form/index.js +7 -5
- package/lib/row-form/index.vue.js +7 -5
- package/lib/row-form/index.vue2.js +47 -41
- package/lib/row-form/index.vue3.js +4 -2
- package/lib/row-form/operation.vue.js +26 -22
- package/lib/row-form/operation.vue2.js +4 -3
- package/lib/scan-code-input/index.js +7 -5
- package/lib/scan-code-input/src/events.js +13 -11
- package/lib/scan-code-input/src/scan-code-input.vue.js +15 -9
- package/lib/scan-code-input-browser/index.js +7 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.js +21 -16
- package/lib/secret-info/index.js +7 -5
- package/lib/secret-info/index.vue.js +9 -6
- package/lib/src/api/sso-service.js +36 -34
- package/lib/src/api/tab.js +9 -8
- package/lib/src/assets/401/401.gif.js +4 -2
- package/lib/src/assets/404/404-cloud.png.js +4 -2
- package/lib/src/assets/404/404.png.js +4 -2
- package/lib/src/assets/chat-embed/robot.gif.js +4 -2
- package/lib/src/assets/chat-embed/robot.svg.js +4 -2
- package/lib/src/assets/nonemessage.png.js +4 -2
- package/lib/src/components/Affix/index.vue.js +7 -5
- package/lib/src/components/Affix/index.vue2.js +58 -56
- package/lib/src/components/Affix/index.vue3.js +4 -2
- package/lib/src/components/Card/index.js +38 -33
- package/lib/src/components/Scrollbar/index.vue.js +37 -33
- package/lib/src/components/Scrollbar/index.vue2.js +4 -2
- package/lib/src/directives/permission/index.js +5 -3
- package/lib/src/directives/permission/permission.js +9 -7
- package/lib/src/i18n/i18n.js +7 -3
- package/lib/src/i18n/langs/cn.js +4 -2
- package/lib/src/i18n/langs/en.js +4 -2
- package/lib/src/mixins/resizeMixin.js +3 -2
- package/lib/src/permission.js +46 -43
- package/lib/src/router/index.js +10 -16
- package/lib/src/store/getters.js +4 -2
- package/lib/src/store/index.js +13 -16
- package/lib/src/store/modules/app.js +4 -3
- package/lib/src/store/modules/chat-ai-store.js +22 -19
- package/lib/src/store/modules/permission.js +11 -10
- package/lib/src/store/modules/system.js +9 -7
- package/lib/src/store/modules/tab-content.js +15 -13
- package/lib/src/store/modules/table.js +3 -2
- package/lib/src/store/modules/user.js +95 -89
- package/lib/src/utils/auth-api.js +5 -3
- package/lib/src/utils/auth.js +139 -69
- package/lib/src/utils/calculator/calculator-factory-wf.js +49 -48
- package/lib/src/utils/calculator/calculator-factory.js +58 -57
- package/lib/src/utils/calculator/calculator-util.js +32 -29
- package/lib/src/utils/chat-ai-util.js +25 -17
- package/lib/src/utils/common-util.js +356 -271
- package/lib/src/utils/eventBus.js +6 -3
- package/lib/src/utils/file-util.js +16 -15
- package/lib/src/utils/global-prop.js +37 -21
- package/lib/src/utils/guid.js +8 -5
- package/lib/src/utils/i18n-util.js +24 -16
- package/lib/src/utils/iconUtils.js +23 -16
- package/lib/src/utils/index.js +40 -26
- package/lib/src/utils/insert_css.js +7 -8
- package/lib/src/utils/json-util.js +27 -25
- package/lib/src/utils/jump-page-utils.js +180 -172
- package/lib/src/utils/local-storage.js +3 -2
- package/lib/src/utils/menu.js +11 -10
- package/lib/src/utils/permission.js +26 -22
- package/lib/src/utils/permissionAuth.js +136 -102
- package/lib/src/utils/range-selector.js +45 -41
- package/lib/src/utils/request.js +86 -77
- package/lib/src/utils/resize.js +5 -5
- package/lib/src/utils/restful-interface-utils.js +15 -12
- package/lib/src/utils/util.js +26 -6
- package/lib/src/utils/validate.js +20 -10
- package/lib/src/utils/voice-setting-cache.js +153 -140
- package/lib/src/utils/watermark-cache.js +14 -9
- package/lib/src/utils/watermark.js +30 -23
- package/lib/src/utils/workflow-util.js +26 -25
- package/lib/src/views/dsc-component/Sidebar/Item.vue.js +7 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.js +11 -8
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.js +4 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.js +12 -9
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.js +26 -19
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +4 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.js +20 -12
- package/lib/src/views/dsc-component/tabs/tab-content.vue.js +26 -21
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.js +4 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.js +4 -2
- package/lib/src/views/error-page/401.vue.js +13 -9
- package/lib/src/views/error-page/401.vue2.js +4 -2
- package/lib/src/views/error-page/404.vue.js +11 -7
- package/lib/src/views/error-page/404.vue2.js +4 -2
- package/lib/src/views/layout/EmptyLayout.vue.js +8 -6
- package/lib/src/views/layout/Layout.vue.js +19 -12
- package/lib/src/views/layout/Layout.vue2.js +4 -2
- package/lib/src/views/layout/NewLayout.vue.js +10 -6
- package/lib/src/views/layout/components/AppMain.vue.js +11 -9
- package/lib/src/views/layout/components/AppMain.vue2.js +4 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.js +37 -44
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.js +4 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.js +7 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.js +14 -12
- package/lib/src/views/layout/components/Menubar/Item.vue3.js +4 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.js +12 -9
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.js +24 -15
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.js +4 -2
- package/lib/src/views/layout/components/Menubar/index.vue.js +30 -19
- package/lib/src/views/layout/components/Sidebar/Item.vue.js +8 -6
- package/lib/src/views/layout/components/Sidebar/Item.vue2.js +4 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.js +11 -8
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.js +17 -11
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.js +4 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.js +25 -18
- package/lib/src/views/layout/components/iframe-page.vue.js +10 -8
- package/lib/src/views/layout/components/iframe-page.vue2.js +4 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.js +14 -10
- package/lib/src/views/layout/components/tabs/tab-content.vue2.js +4 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.js +4 -2
- package/lib/src/views/layout/mixin/ResizeHandler.js +5 -3
- package/lib/src/views/layout/tab-content-iframe-index.vue.js +10 -8
- package/lib/src/views/layout/tab-content-iframe-index.vue2.js +4 -2
- package/lib/src/views/layout/tab-content-index.vue.js +18 -12
- package/lib/src/views/layout/tab-content-index.vue2.js +4 -2
- package/lib/src/views/login/authredirect.vue.js +3 -2
- package/lib/src/views/redirect/index.vue.js +8 -17
- package/lib/src/views/svg-icon/src/svg-icon.vue.js +4 -2
- package/lib/src/views/wf-history/tache-subprocess-history.vue.js +13 -11
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.js +4 -2
- package/lib/style.css +547 -547
- package/lib/super-grid/index.js +7 -5
- package/lib/super-grid/src/apis.js +231 -221
- package/lib/super-grid/src/columns-config.vue.js +22 -16
- package/lib/super-grid/src/components/grid-icon.vue.js +34 -26
- package/lib/super-grid/src/components/grid-radio-input.vue.js +18 -15
- package/lib/super-grid/src/components/grid-radio-input.vue2.js +4 -3
- package/lib/super-grid/src/components/mobile-table-card.js +83 -73
- package/lib/super-grid/src/components/select-input.vue.js +106 -98
- package/lib/super-grid/src/components/select-input.vue2.js +4 -3
- package/lib/super-grid/src/custom-formatter.js +74 -69
- package/lib/super-grid/src/dynamic-input.vue.js +159 -142
- package/lib/super-grid/src/eventBus.js +6 -3
- package/lib/super-grid/src/events.js +36 -34
- package/lib/super-grid/src/formValidatorUtil.js +65 -62
- package/lib/super-grid/src/formatter.js +41 -36
- package/lib/super-grid/src/group-column.vue.js +13 -8
- package/lib/super-grid/src/header-context-menu.vue.js +13 -10
- package/lib/super-grid/src/header-context-menu.vue2.js +4 -2
- package/lib/super-grid/src/index-column.vue.js +10 -7
- package/lib/super-grid/src/normal-column-content.vue.js +205 -186
- package/lib/super-grid/src/normal-column-content.vue2.js +4 -2
- package/lib/super-grid/src/normal-column.vue.js +55 -40
- package/lib/super-grid/src/normal-column.vue2.js +4 -2
- package/lib/super-grid/src/public-methods.js +14 -12
- package/lib/super-grid/src/row-detail.vue.js +10 -7
- package/lib/super-grid/src/row-operation.vue.js +26 -19
- package/lib/super-grid/src/row-operation.vue2.js +4 -2
- package/lib/super-grid/src/scan-util.js +26 -24
- package/lib/super-grid/src/search-button.vue.js +17 -12
- package/lib/super-grid/src/search-condition-input.vue.js +12 -8
- package/lib/super-grid/src/search-condition-list.vue.js +13 -10
- package/lib/super-grid/src/search-form-advancedQuery.vue.js +23 -13
- package/lib/super-grid/src/search-form-advancedQuery.vue2.js +4 -2
- package/lib/super-grid/src/search-form-dialog.vue.js +13 -9
- package/lib/super-grid/src/search-form-item.vue.js +24 -16
- package/lib/super-grid/src/search-form-item.vue2.js +4 -2
- package/lib/super-grid/src/search-form-mobile.vue.js +22 -13
- package/lib/super-grid/src/search-form-mobile.vue2.js +4 -2
- package/lib/super-grid/src/search-form-number.vue.js +14 -9
- package/lib/super-grid/src/search-form-open.vue.js +13 -7
- package/lib/super-grid/src/search-form-ordinarySearch.vue.js +19 -11
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.js +4 -2
- package/lib/super-grid/src/search-form.vue.js +77 -65
- package/lib/super-grid/src/search-form.vue2.js +4 -2
- package/lib/super-grid/src/search-methods.js +3 -2
- package/lib/super-grid/src/selection-column.vue.js +9 -7
- package/lib/super-grid/src/store.js +4 -3
- package/lib/super-grid/src/super-grid-service.js +128 -121
- package/lib/super-grid/src/super-grid.vue.js +217 -186
- package/lib/super-grid/src/super-grid.vue2.js +4 -2
- package/lib/super-grid/src/utils.js +322 -265
- package/lib/super-grid/src/view-image-dialog.vue.js +33 -26
- package/lib/super-icon/index.js +7 -5
- package/lib/super-icon/src/index.vue.js +7 -5
- package/lib/super-icon/src/index.vue2.js +11 -8
- package/lib/super-icon/src/index.vue3.js +4 -2
- package/lib/super-nine-grid/index.js +7 -5
- package/lib/super-nine-grid/src/apis.js +8 -5
- package/lib/super-nine-grid/src/custom-formatter.js +7 -5
- package/lib/super-nine-grid/src/formatter.js +29 -28
- package/lib/super-nine-grid/src/search-form-number.vue.js +12 -8
- package/lib/super-nine-grid/src/search-form.vue.js +40 -33
- package/lib/super-nine-grid/src/search-form.vue2.js +4 -2
- package/lib/super-nine-grid/src/search-methods.js +3 -2
- package/lib/super-nine-grid/src/store.js +4 -3
- package/lib/super-nine-grid/src/super-grid-service.js +9 -5
- package/lib/super-nine-grid/src/super-nine-grid.vue.js +105 -95
- package/lib/super-nine-grid/src/super-nine-grid.vue2.js +4 -2
- package/lib/super-nine-grid/src/utils.js +27 -31
- package/lib/svg-icon/index.js +7 -5
- package/lib/svg-icon/src/svg-icon.vue.js +10 -8
- package/lib/svg-icon/src/svg-icon.vue2.js +4 -2
- package/lib/utils/gogocodeTransfer.js +28 -23
- package/lib/utils/memory-cache-utils.js +5 -3
- package/lib/utils/organization.js +53 -40
- package/lib/utils/utils.js +29 -27
- package/lib/utils/value-set.js +70 -68
- package/lib/valid-code/index.js +7 -5
- package/lib/valid-code/src/valid-code.vue.js +13 -10
- package/lib/valid-code/src/valid-code.vue2.js +4 -2
- package/lib/workflow-button/index.js +5 -3
- package/lib/workflow-button/src/workflow-button.vue.js +39 -34
- package/lib/workflow-history-list/index.js +7 -5
- package/lib/workflow-history-list/src/api.js +3 -2
- package/lib/workflow-history-list/src/workflow-history-list.vue.js +65 -59
- package/lib/workflow-history-list/src/workflow-history-list.vue2.js +4 -2
- package/lib/workgroup-tree/index.js +7 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.js +17 -11
- package/lib/workgroup-tree-inline/index.js +5 -3
- package/lib/workgroup-tree-inline/src/search-result.vue.js +25 -21
- package/lib/workgroup-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +52 -43
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +4 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.js +7 -5
- package/lib/workgroup-tree-mobile/index.js +8 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.js +14 -11
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +12 -9
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +4 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +5 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +86 -76
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.js +28 -20
- package/lib/workgroup-user-tree/index.js +7 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.js +17 -11
- package/lib/workgroup-user-tree-inline/index.js +5 -3
- package/lib/workgroup-user-tree-inline/src/search-result.vue.js +25 -21
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +11 -9
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +43 -34
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +4 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.js +11 -10
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.js +4 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.js +15 -11
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +12 -9
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +4 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +5 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +104 -93
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +25 -16
- package/lib/year-range-picker/index.js +5 -3
- package/lib/year-range-picker/src/year-range-picker.vue.js +12 -9
- package/package.json +2 -5
- package/vite.config.js +21 -21
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16440
- package/dist/style.css +0 -3078
- package/es/IntervalSelection/index.js +0 -7
- package/es/IntervalSelection/src/sectionDate.vue.js +0 -49
- package/es/IntervalSelection/src/sectionDate.vue2.js +0 -4
- package/es/_virtual/__vite-browser-external.js +0 -4
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/es/breadcrumb/index.js +0 -7
- package/es/breadcrumb/src/breadcrumb.vue.js +0 -28
- package/es/breadcrumb/src/breadcrumb.vue2.js +0 -4
- package/es/chat-embed/index.js +0 -7
- package/es/chat-embed/src/chat-addition-data.vue.js +0 -7
- package/es/chat-embed/src/chat-addition-data.vue2.js +0 -14
- package/es/chat-embed/src/chat-addition-data.vue3.js +0 -4
- package/es/chat-embed/src/chat-ai-answer-tip.vue.js +0 -7
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.js +0 -29
- package/es/chat-embed/src/chat-ai-answer-tip.vue3.js +0 -4
- package/es/chat-embed/src/chat-bubble-footer.vue.js +0 -7
- package/es/chat-embed/src/chat-bubble-footer.vue2.js +0 -33
- package/es/chat-embed/src/chat-bubble-footer.vue3.js +0 -4
- package/es/chat-embed/src/chat-embed-message.js +0 -22
- package/es/chat-embed/src/chat-sender.vue.js +0 -7
- package/es/chat-embed/src/chat-sender.vue2.js +0 -160
- package/es/chat-embed/src/chat-sender.vue3.js +0 -4
- package/es/chat-embed/src/components/answer-auto-chart.vue.js +0 -7
- package/es/chat-embed/src/components/answer-auto-chart.vue2.js +0 -59
- package/es/chat-embed/src/components/answer-auto-chart.vue3.js +0 -4
- package/es/chat-embed/src/components/answer-home-chart.vue.js +0 -7
- package/es/chat-embed/src/components/answer-home-chart.vue2.js +0 -6
- package/es/chat-embed/src/components/answer-home-chart.vue3.js +0 -4
- package/es/chat-embed/src/components/answer-interaction-data.vue.js +0 -7
- package/es/chat-embed/src/components/answer-interaction-data.vue2.js +0 -118
- package/es/chat-embed/src/components/answer-interaction-data.vue3.js +0 -4
- package/es/chat-embed/src/components/history-detail.vue.js +0 -7
- package/es/chat-embed/src/components/history-detail.vue2.js +0 -55
- package/es/chat-embed/src/components/history-detail.vue3.js +0 -4
- package/es/chat-embed/src/header.vue.js +0 -7
- package/es/chat-embed/src/header.vue2.js +0 -46
- package/es/chat-embed/src/header.vue3.js +0 -4
- package/es/chat-embed/src/index.vue.js +0 -7
- package/es/chat-embed/src/index.vue2.js +0 -307
- package/es/chat-embed/src/index.vue3.js +0 -4
- package/es/chat-embed/src/recommendation-message.vue.js +0 -7
- package/es/chat-embed/src/recommendation-message.vue2.js +0 -8
- package/es/chat-embed/src/recommendation-message.vue3.js +0 -4
- package/es/chat-embed/src/sidebar-item.vue.js +0 -7
- package/es/chat-embed/src/sidebar-item.vue2.js +0 -118
- package/es/chat-embed/src/sidebar-item.vue3.js +0 -4
- package/es/chat-embed/src/type.js +0 -5
- package/es/chat-embed/src/util/chat-embed-util.js +0 -57
- package/es/chat-embed/src/util/history-message-util.js +0 -96
- package/es/chat-embed/src/util/mcp-utils.js +0 -53
- package/es/chat-embed/src/util/text-file-util.js +0 -12
- package/es/chat-embed/src/voice/index.js +0 -7
- package/es/chat-embed/src/voice/js/crypto-js.js +0 -1013
- package/es/chat-embed/src/voice/js/processor/index.umd.js +0 -178
- package/es/chat-embed/src/voice/js/timer.js +0 -11
- package/es/chat-embed/src/voice/voice.vue.js +0 -104
- package/es/date-picker-range/index.js +0 -7
- package/es/date-picker-range/index.vue.js +0 -7
- package/es/date-picker-range/index.vue2.js +0 -93
- package/es/date-picker-range/index.vue3.js +0 -4
- package/es/department-tree/index.js +0 -7
- package/es/department-tree/src/department-tree.vue.js +0 -23
- package/es/department-tree-inline/index.js +0 -7
- package/es/department-tree-inline/src/department-multi-tree-inline.vue.js +0 -91
- package/es/department-tree-inline/src/department-multi-tree-inline.vue2.js +0 -4
- package/es/department-tree-inline/src/department-single-tree-inline.vue.js +0 -64
- package/es/department-tree-inline/src/department-single-tree-inline.vue2.js +0 -4
- package/es/department-tree-inline/src/department-tree-inline.vue.js +0 -17
- package/es/department-tree-inline/src/department-tree-service.js +0 -108
- package/es/department-tree-inline/src/search-result.vue.js +0 -40
- package/es/department-tree-inline/src/search-result.vue2.js +0 -4
- package/es/department-tree-mobile/index.js +0 -8
- package/es/department-tree-mobile/src/department-tree-app.vue.js +0 -15
- package/es/department-tree-mobile/src/department-tree-app.vue2.js +0 -4
- package/es/department-tree-mobile/src/department-tree-app.vue3.js +0 -5
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.js +0 -121
- package/es/department-tree-mobile/src/department-tree-inline-app.vue2.js +0 -4
- package/es/department-tree-mobile/src/department-tree-service.js +0 -55
- package/es/department-tree-mobile/src/dept-path.vue.js +0 -14
- package/es/department-tree-mobile/src/dept-path.vue2.js +0 -4
- package/es/department-tree-mobile/src/dept-result.vue.js +0 -16
- package/es/department-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/department-user-tree/index.js +0 -7
- package/es/department-user-tree/src/department-user-multiple-tree.vue.js +0 -20
- package/es/department-user-tree/src/department-user-multiple-tree.vue2.js +0 -4
- package/es/department-user-tree/src/department-user-single-tree.vue.js +0 -19
- package/es/department-user-tree/src/department-user-tree.vue.js +0 -27
- package/es/department-user-tree-inline/index.js +0 -7
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +0 -165
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +0 -4
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +0 -69
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +0 -4
- package/es/department-user-tree-inline/src/department-user-tree-inline.vue.js +0 -16
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -81
- package/es/department-user-tree-inline/src/department-user-tree-single-service.js +0 -54
- package/es/department-user-tree-inline/src/group-user/group-input.vue.js +0 -39
- package/es/department-user-tree-inline/src/group-user/group-list.vue.js +0 -27
- package/es/department-user-tree-inline/src/group-user/group-user.vue.js +0 -16
- package/es/department-user-tree-inline/src/group-user-multiple-tree.vue.js +0 -78
- package/es/department-user-tree-inline/src/group-user-single-tree.vue.js +0 -34
- package/es/department-user-tree-inline/src/group-user-tree-service.js +0 -34
- package/es/department-user-tree-inline/src/search-result.vue.js +0 -41
- package/es/department-user-tree-inline/src/search-result.vue2.js +0 -4
- package/es/department-user-tree-mobile/index.js +0 -8
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.js +0 -15
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue2.js +0 -4
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue3.js +0 -5
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +0 -135
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +0 -4
- package/es/department-user-tree-mobile/src/department-user-tree-service.js +0 -38
- package/es/department-user-tree-mobile/src/dept-path.vue.js +0 -14
- package/es/department-user-tree-mobile/src/dept-path.vue2.js +0 -4
- package/es/department-user-tree-mobile/src/dept-result.vue.js +0 -17
- package/es/department-user-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/directives/prevent-reclick.js +0 -15
- package/es/dynamic-source-select/index.js +0 -7
- package/es/dynamic-source-select/src/dynamic-source-select-service.js +0 -32
- package/es/dynamic-source-select/src/dynamic-source-select.vue.js +0 -276
- package/es/dynamic-source-select/src/dynamic-source-select.vue2.js +0 -4
- package/es/dynamic-source-select/src/dynamic-source-select.vue3.js +0 -4
- package/es/dynamic-source-select/src/events.js +0 -29
- package/es/empty-state/index.vue.js +0 -9
- package/es/empty-state/index.vue2.js +0 -4
- package/es/favicon.svg +0 -29
- package/es/fs-preview/index.js +0 -7
- package/es/fs-preview/src/fs-preview.vue.js +0 -120
- package/es/fs-preview/src/fs-preview.vue2.js +0 -4
- package/es/fs-upload/index.js +0 -7
- package/es/fs-upload/src/fs-upload-multi.vue.js +0 -71
- package/es/fs-upload/src/fs-upload-single.vue.js +0 -73
- package/es/fs-upload/src/fs-upload.vue.js +0 -24
- package/es/fs-upload/src/see-big-picture.vue.js +0 -12
- package/es/fs-upload-list/index.js +0 -7
- package/es/fs-upload-list/src/fs-upload-list.vue.js +0 -98
- package/es/fs-upload-list/src/fs-upload-list.vue2.js +0 -4
- package/es/fs-upload-new/index.js +0 -7
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +0 -61
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +0 -178
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +0 -7
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +0 -39
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +0 -45
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +0 -35
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +0 -4
- package/es/fs-upload-new/src/fs-button-upload.vue.js +0 -7
- package/es/fs-upload-new/src/fs-button-upload.vue2.js +0 -62
- package/es/fs-upload-new/src/fs-button-upload.vue3.js +0 -4
- package/es/fs-upload-new/src/fs-drag-upload.vue.js +0 -7
- package/es/fs-upload-new/src/fs-drag-upload.vue2.js +0 -63
- package/es/fs-upload-new/src/fs-drag-upload.vue3.js +0 -4
- package/es/fs-upload-new/src/fs-preview-new.vue.js +0 -8
- package/es/fs-upload-new/src/fs-preview-new.vue2.js +0 -93
- package/es/fs-upload-new/src/fs-preview-new.vue3.js +0 -4
- package/es/fs-upload-new/src/fs-preview-new.vue4.js +0 -4
- package/es/fs-upload-new/src/fs-upload-new.vue.js +0 -64
- package/es/fs-upload-new/src/fs-upload-new.vue2.js +0 -4
- package/es/hamburger/index.js +0 -7
- package/es/hamburger/src/hamburger.vue.js +0 -15
- package/es/hamburger/src/hamburger.vue2.js +0 -4
- package/es/index.js +0 -383
- package/es/json-view/json-view-dialog.vue.js +0 -19
- package/es/json-view/json-view-dialog.vue2.js +0 -4
- package/es/json-view/json-view.vue.js +0 -4
- package/es/json-view/json-view.vue2.js +0 -36
- package/es/multipart-upload/index.js +0 -7
- package/es/multipart-upload/src/index.vue.js +0 -14
- package/es/multipart-upload/src/multipart-upload-form.vue.js +0 -82
- package/es/multipart-upload/src/multipart-upload-list.vue.js +0 -104
- package/es/organization-input/index.js +0 -7
- package/es/organization-input/src/organization-input.vue.js +0 -224
- package/es/organization-input/src/organization-input.vue2.js +0 -4
- package/es/plugins/export-data-new.js +0 -237
- package/es/plugins/export-data.js +0 -179
- package/es/plugins/index.js +0 -9
- package/es/plugins/public-method.js +0 -14
- package/es/remove-department/index.js +0 -7
- package/es/remove-department/src/remove-department.vue.js +0 -33
- package/es/remove-department/src/remove-dept-service.js +0 -13
- package/es/remove-user/index.js +0 -7
- package/es/remove-user/src/remove-user-service.js +0 -13
- package/es/remove-user/src/remove-user.vue.js +0 -35
- package/es/remove-workgroup/index.js +0 -7
- package/es/remove-workgroup/src/remove-workgroup-service.js +0 -13
- package/es/remove-workgroup/src/remove-workgroup.vue.js +0 -31
- package/es/rich-editor/index.js +0 -7
- package/es/rich-editor/index.vue.js +0 -115
- package/es/rich-editor/tinymce/zh_CN.js +0 -2
- package/es/rich-editor/viewer.vue.js +0 -27
- package/es/row-form/index.js +0 -7
- package/es/row-form/index.vue.js +0 -7
- package/es/row-form/index.vue2.js +0 -62
- package/es/row-form/index.vue3.js +0 -4
- package/es/row-form/operation.vue.js +0 -32
- package/es/row-form/operation.vue2.js +0 -4
- package/es/scan-code-input/index.js +0 -7
- package/es/scan-code-input/src/events.js +0 -15
- package/es/scan-code-input/src/scan-code-input.vue.js +0 -32
- package/es/scan-code-input-browser/index.js +0 -7
- package/es/scan-code-input-browser/src/scan-code-input.vue.js +0 -39
- package/es/secret-info/index.js +0 -7
- package/es/secret-info/index.vue.js +0 -16
- package/es/src/api/sso-service.js +0 -57
- package/es/src/api/tab.js +0 -15
- package/es/src/assets/401/401.gif.js +0 -4
- package/es/src/assets/404/404-cloud.png.js +0 -4
- package/es/src/assets/404/404.png.js +0 -4
- package/es/src/assets/chat-embed/robot.gif.js +0 -4
- package/es/src/assets/chat-embed/robot.svg.js +0 -4
- package/es/src/assets/nonemessage.png.js +0 -4
- package/es/src/components/Affix/index.vue.js +0 -7
- package/es/src/components/Affix/index.vue2.js +0 -83
- package/es/src/components/Affix/index.vue3.js +0 -4
- package/es/src/components/Card/index.js +0 -48
- package/es/src/components/Scrollbar/index.vue.js +0 -52
- package/es/src/components/Scrollbar/index.vue2.js +0 -4
- package/es/src/directives/permission/index.js +0 -7
- package/es/src/directives/permission/permission.js +0 -11
- package/es/src/i18n/i18n.js +0 -7
- package/es/src/i18n/langs/cn.js +0 -4
- package/es/src/i18n/langs/en.js +0 -4
- package/es/src/mixins/resizeMixin.js +0 -21
- package/es/src/permission.js +0 -79
- package/es/src/router/index.js +0 -9
- package/es/src/store/getters.js +0 -4
- package/es/src/store/index.js +0 -13
- package/es/src/store/modules/app.js +0 -41
- package/es/src/store/modules/chat-ai-store.js +0 -36
- package/es/src/store/modules/permission.js +0 -31
- package/es/src/store/modules/system.js +0 -12
- package/es/src/store/modules/tab-content.js +0 -20
- package/es/src/store/modules/table.js +0 -18
- package/es/src/store/modules/user.js +0 -139
- package/es/src/utils/auth-api.js +0 -134
- package/es/src/utils/auth.js +0 -156
- package/es/src/utils/calculator/calculator-factory-wf.js +0 -167
- package/es/src/utils/calculator/calculator-factory.js +0 -93
- package/es/src/utils/calculator/calculator-util.js +0 -56
- package/es/src/utils/chat-ai-util.js +0 -34
- package/es/src/utils/common-util.js +0 -440
- package/es/src/utils/eventBus.js +0 -6
- package/es/src/utils/file-util.js +0 -23
- package/es/src/utils/global-prop.js +0 -38
- package/es/src/utils/guid.js +0 -10
- package/es/src/utils/i18n-util.js +0 -70
- package/es/src/utils/iconUtils.js +0 -26
- package/es/src/utils/index.js +0 -46
- package/es/src/utils/insert_css.js +0 -17
- package/es/src/utils/json-util.js +0 -47
- package/es/src/utils/jump-page-utils.js +0 -264
- package/es/src/utils/local-storage.js +0 -19
- package/es/src/utils/menu.js +0 -14
- package/es/src/utils/permission.js +0 -45
- package/es/src/utils/permissionAuth.js +0 -154
- package/es/src/utils/range-selector.js +0 -105
- package/es/src/utils/request.js +0 -140
- package/es/src/utils/resize.js +0 -11
- package/es/src/utils/restful-interface-utils.js +0 -18
- package/es/src/utils/util.js +0 -361
- package/es/src/utils/validate.js +0 -22
- package/es/src/utils/voice-setting-cache.js +0 -212
- package/es/src/utils/watermark-cache.js +0 -15
- package/es/src/utils/watermark.js +0 -40
- package/es/src/utils/workflow-util.js +0 -42
- package/es/src/views/dsc-component/Sidebar/Item.vue.js +0 -7
- package/es/src/views/dsc-component/Sidebar/Item.vue2.js +0 -12
- package/es/src/views/dsc-component/Sidebar/Item.vue3.js +0 -4
- package/es/src/views/dsc-component/Sidebar/Link.vue.js +0 -14
- package/es/src/views/dsc-component/Sidebar/SidebarItem.vue.js +0 -53
- package/es/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +0 -4
- package/es/src/views/dsc-component/Sidebar/index.vue.js +0 -111
- package/es/src/views/dsc-component/tabs/tab-content.vue.js +0 -66
- package/es/src/views/dsc-component/tabs/tab-content.vue2.js +0 -4
- package/es/src/views/dsc-component/tabs/tab-content.vue3.js +0 -4
- package/es/src/views/error-page/401.vue.js +0 -15
- package/es/src/views/error-page/401.vue2.js +0 -4
- package/es/src/views/error-page/404.vue.js +0 -12
- package/es/src/views/error-page/404.vue2.js +0 -4
- package/es/src/views/layout/EmptyLayout.vue.js +0 -9
- package/es/src/views/layout/Layout.vue.js +0 -28
- package/es/src/views/layout/Layout.vue2.js +0 -4
- package/es/src/views/layout/NewLayout.vue.js +0 -11
- package/es/src/views/layout/components/AppMain.vue.js +0 -13
- package/es/src/views/layout/components/AppMain.vue2.js +0 -4
- package/es/src/views/layout/components/Breadcrumb/index.vue.js +0 -49
- package/es/src/views/layout/components/Breadcrumb/index.vue2.js +0 -4
- package/es/src/views/layout/components/Menubar/Item.vue.js +0 -7
- package/es/src/views/layout/components/Menubar/Item.vue2.js +0 -15
- package/es/src/views/layout/components/Menubar/Item.vue3.js +0 -4
- package/es/src/views/layout/components/Menubar/Link.vue.js +0 -14
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.js +0 -56
- package/es/src/views/layout/components/Menubar/SidebarItem.vue2.js +0 -4
- package/es/src/views/layout/components/Menubar/index.vue.js +0 -90
- package/es/src/views/layout/components/Sidebar/Item.vue.js +0 -9
- package/es/src/views/layout/components/Sidebar/Item.vue2.js +0 -4
- package/es/src/views/layout/components/Sidebar/Link.vue.js +0 -12
- package/es/src/views/layout/components/Sidebar/SidebarItem.vue.js +0 -22
- package/es/src/views/layout/components/Sidebar/SidebarItem.vue2.js +0 -4
- package/es/src/views/layout/components/Sidebar/index.vue.js +0 -58
- package/es/src/views/layout/components/iframe-page.vue.js +0 -14
- package/es/src/views/layout/components/iframe-page.vue2.js +0 -4
- package/es/src/views/layout/components/tabs/tab-content.vue.js +0 -64
- package/es/src/views/layout/components/tabs/tab-content.vue2.js +0 -4
- package/es/src/views/layout/components/tabs/tab-content.vue3.js +0 -4
- package/es/src/views/layout/mixin/ResizeHandler.js +0 -16
- package/es/src/views/layout/tab-content-iframe-index.vue.js +0 -14
- package/es/src/views/layout/tab-content-iframe-index.vue2.js +0 -4
- package/es/src/views/layout/tab-content-index.vue.js +0 -28
- package/es/src/views/layout/tab-content-index.vue2.js +0 -4
- package/es/src/views/login/authredirect.vue.js +0 -7
- package/es/src/views/redirect/index.vue.js +0 -8
- package/es/src/views/svg-icon/src/svg-icon.vue.js +0 -4
- package/es/src/views/wf-history/tache-subprocess-history.vue.js +0 -14
- package/es/src/views/wf-history/tache-subprocess-history.vue2.js +0 -4
- package/es/style.css +0 -3077
- package/es/super-grid/index.js +0 -7
- package/es/super-grid/src/apis.js +0 -458
- package/es/super-grid/src/columns-config.vue.js +0 -82
- package/es/super-grid/src/components/grid-icon.vue.js +0 -47
- package/es/super-grid/src/components/grid-radio-input.vue.js +0 -25
- package/es/super-grid/src/components/grid-radio-input.vue2.js +0 -4
- package/es/super-grid/src/components/mobile-table-card.js +0 -109
- package/es/super-grid/src/components/select-input.vue.js +0 -149
- package/es/super-grid/src/components/select-input.vue2.js +0 -4
- package/es/super-grid/src/custom-formatter.js +0 -168
- package/es/super-grid/src/dynamic-input.vue.js +0 -482
- package/es/super-grid/src/eventBus.js +0 -6
- package/es/super-grid/src/events.js +0 -37
- package/es/super-grid/src/formValidatorUtil.js +0 -109
- package/es/super-grid/src/formatter.js +0 -74
- package/es/super-grid/src/group-column.vue.js +0 -24
- package/es/super-grid/src/header-context-menu.vue.js +0 -15
- package/es/super-grid/src/header-context-menu.vue2.js +0 -4
- package/es/super-grid/src/index-column.vue.js +0 -22
- package/es/super-grid/src/normal-column-content.vue.js +0 -319
- package/es/super-grid/src/normal-column-content.vue2.js +0 -4
- package/es/super-grid/src/normal-column.vue.js +0 -106
- package/es/super-grid/src/normal-column.vue2.js +0 -4
- package/es/super-grid/src/public-methods.js +0 -22
- package/es/super-grid/src/row-detail.vue.js +0 -14
- package/es/super-grid/src/row-operation.vue.js +0 -89
- package/es/super-grid/src/row-operation.vue2.js +0 -4
- package/es/super-grid/src/scan-util.js +0 -100
- package/es/super-grid/src/search-button.vue.js +0 -23
- package/es/super-grid/src/search-condition-input.vue.js +0 -17
- package/es/super-grid/src/search-condition-list.vue.js +0 -20
- package/es/super-grid/src/search-form-advancedQuery.vue.js +0 -116
- package/es/super-grid/src/search-form-advancedQuery.vue2.js +0 -4
- package/es/super-grid/src/search-form-dialog.vue.js +0 -16
- package/es/super-grid/src/search-form-item.vue.js +0 -128
- package/es/super-grid/src/search-form-item.vue2.js +0 -4
- package/es/super-grid/src/search-form-mobile.vue.js +0 -41
- package/es/super-grid/src/search-form-mobile.vue2.js +0 -4
- package/es/super-grid/src/search-form-number.vue.js +0 -26
- package/es/super-grid/src/search-form-open.vue.js +0 -50
- package/es/super-grid/src/search-form-ordinarySearch.vue.js +0 -39
- package/es/super-grid/src/search-form-ordinarySearch.vue2.js +0 -4
- package/es/super-grid/src/search-form.vue.js +0 -201
- package/es/super-grid/src/search-form.vue2.js +0 -4
- package/es/super-grid/src/search-methods.js +0 -164
- package/es/super-grid/src/selection-column.vue.js +0 -11
- package/es/super-grid/src/store.js +0 -4
- package/es/super-grid/src/super-grid-service.js +0 -260
- package/es/super-grid/src/super-grid.vue.js +0 -1052
- package/es/super-grid/src/super-grid.vue2.js +0 -4
- package/es/super-grid/src/utils.js +0 -355
- package/es/super-grid/src/view-image-dialog.vue.js +0 -67
- package/es/super-icon/index.js +0 -7
- package/es/super-icon/src/index.vue.js +0 -7
- package/es/super-icon/src/index.vue2.js +0 -13
- package/es/super-icon/src/index.vue3.js +0 -4
- package/es/super-nine-grid/index.js +0 -7
- package/es/super-nine-grid/src/apis.js +0 -36
- package/es/super-nine-grid/src/custom-formatter.js +0 -35
- package/es/super-nine-grid/src/formatter.js +0 -37
- package/es/super-nine-grid/src/search-form-number.vue.js +0 -13
- package/es/super-nine-grid/src/search-form.vue.js +0 -91
- package/es/super-nine-grid/src/search-form.vue2.js +0 -4
- package/es/super-nine-grid/src/search-methods.js +0 -48
- package/es/super-nine-grid/src/store.js +0 -4
- package/es/super-nine-grid/src/super-grid-service.js +0 -39
- package/es/super-nine-grid/src/super-nine-grid.vue.js +0 -225
- package/es/super-nine-grid/src/super-nine-grid.vue2.js +0 -4
- package/es/super-nine-grid/src/utils.js +0 -32
- package/es/svg-icon/index.js +0 -7
- package/es/svg-icon/src/svg-icon.vue.js +0 -14
- package/es/svg-icon/src/svg-icon.vue2.js +0 -4
- package/es/utils/gogocodeTransfer.js +0 -33
- package/es/utils/memory-cache-utils.js +0 -30
- package/es/utils/organization.js +0 -57
- package/es/utils/utils.js +0 -87
- package/es/utils/value-set.js +0 -94
- package/es/valid-code/index.js +0 -7
- package/es/valid-code/src/valid-code.vue.js +0 -23
- package/es/valid-code/src/valid-code.vue2.js +0 -4
- package/es/workflow-button/index.js +0 -7
- package/es/workflow-button/src/workflow-button.vue.js +0 -85
- package/es/workflow-history-list/index.js +0 -7
- package/es/workflow-history-list/src/api.js +0 -6
- package/es/workflow-history-list/src/workflow-history-list.vue.js +0 -89
- package/es/workflow-history-list/src/workflow-history-list.vue2.js +0 -4
- package/es/workgroup-tree/index.js +0 -7
- package/es/workgroup-tree/src/workgroup-tree.vue.js +0 -23
- package/es/workgroup-tree-inline/index.js +0 -7
- package/es/workgroup-tree-inline/src/search-result.vue.js +0 -39
- package/es/workgroup-tree-inline/src/search-result.vue2.js +0 -4
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +0 -128
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +0 -4
- package/es/workgroup-tree-inline/src/workgroup-tree-service.js +0 -35
- package/es/workgroup-tree-mobile/index.js +0 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.js +0 -16
- package/es/workgroup-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +0 -15
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +0 -4
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +0 -5
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +0 -109
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +0 -4
- package/es/workgroup-tree-mobile/src/workgroup-tree-service.js +0 -33
- package/es/workgroup-user-tree/index.js +0 -7
- package/es/workgroup-user-tree/src/workgroup-user-tree.vue.js +0 -23
- package/es/workgroup-user-tree-inline/index.js +0 -7
- package/es/workgroup-user-tree-inline/src/search-result.vue.js +0 -39
- package/es/workgroup-user-tree-inline/src/search-result.vue2.js +0 -4
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +0 -73
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +0 -172
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.js +0 -14
- package/es/workgroup-user-tree-mobile/src/dept-path.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.js +0 -17
- package/es/workgroup-user-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +0 -15
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +0 -5
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +0 -135
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +0 -29
- package/es/year-range-picker/index.js +0 -7
- package/es/year-range-picker/src/year-range-picker.vue.js +0 -14
package/es/src/utils/request.js
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import e from "axios";
|
|
2
|
-
import { ElMessage as r } from "element-plus";
|
|
3
|
-
import { getToken as s, getRunCurrentRole as o, getTenantUsername as t, setSessionCache as n } from "./auth.js";
|
|
4
|
-
import a from "../store/index.js";
|
|
5
|
-
import { getI18n as i } from "./util.js";
|
|
6
|
-
import { getTimeZone as l, setCustomSystemBackendUrl as d, getRelativeBaseUrl as m, getLoginTimeoutUrlInfo as c } from "./common-util.js";
|
|
7
|
-
const p = e.create({ timeout: 3e5, withCredentials: true });
|
|
8
|
-
p.interceptors.request.use((e2) => {
|
|
9
|
-
a.commit("togglePreventReclick", true);
|
|
10
|
-
const r2 = l();
|
|
11
|
-
e2.headers.timeZone = r2;
|
|
12
|
-
const t2 = s();
|
|
13
|
-
t2 && (e2.headers.Authorization = t2);
|
|
14
|
-
const n2 = o();
|
|
15
|
-
if (n2) {
|
|
16
|
-
let r3 = "_RUN_CURRENT_ROLE";
|
|
17
|
-
e2.headers[r3] = n2;
|
|
18
|
-
}
|
|
19
|
-
const i2 = window.$vueApp.config.globalProperties.customSystem;
|
|
20
|
-
return i2 && !e2.headers.customSystem && (e2.headers.customSystem = i2, d(i2)), window.$vueApp.config.globalProperties.baseURL && (e2.baseURL = m(window.$vueApp.config.globalProperties.baseURL)), e2;
|
|
21
|
-
}, (e2) => {
|
|
22
|
-
a.commit("togglePreventReclick", false), Promise.reject(e2);
|
|
23
|
-
}), p.interceptors.response.use((e2) => (a.commit("togglePreventReclick", false), e2.data), (e2) => {
|
|
24
|
-
var _a;
|
|
25
|
-
if (a.commit("togglePreventReclick", false), !e2.response) {
|
|
26
|
-
const s2 = i().t("imatrixUIMessage.internalServerError");
|
|
27
|
-
return r({ showClose: true, message: s2, type: "error", duration: 5e3 }), Promise.reject(e2);
|
|
28
|
-
}
|
|
29
|
-
if (401 !== e2.response.status) {
|
|
30
|
-
if (403 === e2.response.status) {
|
|
31
|
-
let s2 = "";
|
|
32
|
-
((_a = e2.response.data) == null ? void 0 : _a.message) ? (s2 = e2.response.data.message, console.error("ForbiddenException(403):", e2.response.data)) : s2 = i().t("imatrixUIMessage.forbiddenException");
|
|
33
|
-
const o2 = window.$vueApp.config.globalProperties;
|
|
34
|
-
let t2;
|
|
35
|
-
if (o2.forbiddenUser || o2.forbiddenLinkUrl) {
|
|
36
|
-
t2 = "<p><span>" + s2 + "</span>";
|
|
37
|
-
const e3 = i().t("imatrixUIMessage.forbiddenExceptionLinkUrl");
|
|
38
|
-
if (o2.forbiddenLinkUrl && (t2 += `,<a href="javascript:void(0);" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open('` + o2.forbiddenLinkUrl + `')">` + e3 + "</a>"), o2.forbiddenUser) {
|
|
39
|
-
t2 += "<span>";
|
|
40
|
-
const e4 = "," + i().t("imatrixUIMessage.forbiddenExceptionLinkUser") + '<span style="color: #1800ff;"> ' + o2.forbiddenUser + "</span>";
|
|
41
|
-
let r2;
|
|
42
|
-
r2 = window._clickForbiddenUser ? `<a href="javascript:void(0);" onclick="window._clickForbiddenUser('` + o2.forbiddenUser + `');return false">` + e4 + "</a>" : e4, t2 += "</span>", t2 += r2;
|
|
43
|
-
}
|
|
44
|
-
t2 += "</p>";
|
|
45
|
-
}
|
|
46
|
-
return r(t2 ? { showClose: true, dangerouslyUseHTMLString: true, message: t2, type: "error", duration: 1e4 } : { showClose: true, message: s2, type: "error", duration: 5e3 }), Promise.reject(e2);
|
|
47
|
-
}
|
|
48
|
-
if (400 === e2.response.status || 406 === e2.response.status || 404 === e2.response.status) {
|
|
49
|
-
let r2 = e2.message;
|
|
50
|
-
return r2 && (r2 = i().t("imatrixUIMessage.internalServerError")), e2.response.data && e2.response.data.message && (r2 = e2.response.data.message), e2.response.data instanceof Blob ? (function(e3) {
|
|
51
|
-
return new Promise((r3, s2) => {
|
|
52
|
-
const o2 = new FileReader();
|
|
53
|
-
o2.onload = () => {
|
|
54
|
-
try {
|
|
55
|
-
const e4 = o2.result, s3 = JSON.parse(e4);
|
|
56
|
-
r3(s3);
|
|
57
|
-
} catch (e4) {
|
|
58
|
-
s2(e4);
|
|
59
|
-
}
|
|
60
|
-
}, o2.onerror = () => {
|
|
61
|
-
s2(new Error("读取 blob 失败"));
|
|
62
|
-
}, o2.readAsText(e3.response.data);
|
|
63
|
-
});
|
|
64
|
-
}(e2).then((e3) => {
|
|
65
|
-
f(e3.message);
|
|
66
|
-
}).catch(() => {
|
|
67
|
-
}), Promise.reject(e2)) : (f(r2), Promise.reject(e2));
|
|
68
|
-
}
|
|
69
|
-
{
|
|
70
|
-
let s2 = e2.message;
|
|
71
|
-
e2.response.data && e2.response.data.message && (s2 = e2.response.data.message);
|
|
72
|
-
let o2 = i().t("imatrixUIMessage.internalServerError");
|
|
73
|
-
return s2 && "Internal Server Error" !== s2 && (o2 = s2), !s2 || "gateway.timeout" !== s2 && "gateway.callFailed" !== s2 || (o2 = i().t(s2)), r({ showClose: true, message: o2, type: "error", duration: 5e3 }), Promise.reject(e2);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
{
|
|
77
|
-
const e3 = t();
|
|
78
|
-
a.dispatch("clearToken").then(() => {
|
|
79
|
-
let r2 = c();
|
|
80
|
-
r2.tenantLoginName = e3;
|
|
81
|
-
if (true === window.$vueApp.config.globalProperties.$isInIframe()) {
|
|
82
|
-
r2.isIframe = true;
|
|
83
|
-
const e4 = JSON.stringify(r2);
|
|
84
|
-
n("loginTimeoutInIframeSrc", e4), window.parent.postMessage(e4, "*");
|
|
85
|
-
} else {
|
|
86
|
-
r2.isIframe = false;
|
|
87
|
-
const e4 = JSON.stringify(r2);
|
|
88
|
-
n("loginTimeoutInIframeSrc", e4);
|
|
89
|
-
let s2 = window.location.href, o2 = s2;
|
|
90
|
-
s2 && s2.indexOf("#") > 0 && (o2 = s2.substring(0, s2.indexOf("#")) + "#/login"), window.location.href = o2;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
const u = {};
|
|
96
|
-
function g(e2, s2) {
|
|
97
|
-
let o2;
|
|
98
|
-
const t2 = {};
|
|
99
|
-
if (s2 && (s2.data && (t2.data = s2.data), s2.responseType && (t2.responseType = s2.responseType), s2.params && (t2.params = s2.params), s2.header && (t2.header = s2.header), s2.onUploadProgress && (t2.onUploadProgress = s2.onUploadProgress), s2.method && (t2.method = s2.method), s2.url && (t2.url = s2.url), s2.requestParam && (o2 = s2.requestParam)), e2) {
|
|
100
|
-
const s3 = u[e2];
|
|
101
|
-
if (s3) {
|
|
102
|
-
const e3 = function(e4, s4) {
|
|
103
|
-
const o3 = /\{(.+?)\}/g, t3 = e4.match(o3);
|
|
104
|
-
if (!t3)
|
|
105
|
-
return e4;
|
|
106
|
-
if (t3.length > 0 && !s4)
|
|
107
|
-
return r({ message: "请求的url中包含路径参数时,param不能为空。", type: "error", showClose: true }), "";
|
|
108
|
-
for (const o4 of t3) {
|
|
109
|
-
const t4 = o4.substring(1, o4.length - 1);
|
|
110
|
-
if (void 0 === s4[t4])
|
|
111
|
-
return r({ message: "中应该包括属性:" + t4, type: "error", showClose: true }), "";
|
|
112
|
-
e4 = e4.replace(o4, s4[t4]), delete s4[t4];
|
|
113
|
-
}
|
|
114
|
-
return e4;
|
|
115
|
-
}(s3.url, t2.params);
|
|
116
|
-
if ("" === e3)
|
|
117
|
-
return;
|
|
118
|
-
t2.url = e3, t2.method = s3.method;
|
|
119
|
-
} else
|
|
120
|
-
r({ message: "您要访问的接口没有定义:" + e2, type: "error", showClose: true });
|
|
121
|
-
}
|
|
122
|
-
if (t2.url || r({ message: "接口地址必须配置", type: "error", showClose: true }), o2)
|
|
123
|
-
for (let e3 in o2)
|
|
124
|
-
t2.url.indexOf("?") > 0 ? t2.url = t2.url + "&" + e3 + "=" + o2[e3] : t2.url = t2.url + "?" + e3 + "=" + o2[e3];
|
|
125
|
-
return t2.method && "get" === t2.method.toLowerCase() && (t2.url.indexOf("?") > 0 ? t2.url = t2.url + "&_t=" + (/* @__PURE__ */ new Date()).getTime() : t2.url = t2.url + "?_t=" + (/* @__PURE__ */ new Date()).getTime()), p(t2);
|
|
126
|
-
}
|
|
127
|
-
function f(e2) {
|
|
128
|
-
let s2, o2 = "false";
|
|
129
|
-
try {
|
|
130
|
-
const r2 = JSON.parse(e2);
|
|
131
|
-
o2 = r2.htmlFlag, s2 = r2.message;
|
|
132
|
-
} catch (e3) {
|
|
133
|
-
}
|
|
134
|
-
void 0 !== o2 && "true" === o2 ? r({ dangerouslyUseHTMLString: true, showClose: true, message: s2, type: "error", duration: 5e3 }) : (s2 && (e2 = s2), r({ showClose: true, message: e2, type: "error", duration: 5e3 }));
|
|
135
|
-
}
|
|
136
|
-
export {
|
|
137
|
-
u as apiUrlMappings,
|
|
138
|
-
p as default,
|
|
139
|
-
g as request
|
|
140
|
-
};
|
package/es/src/utils/resize.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const e = { mounted(e2, r) {
|
|
2
|
-
const s = r.value, n = r.arg || {}, o = new ResizeObserver((e3) => {
|
|
3
|
-
s(e3[0]);
|
|
4
|
-
});
|
|
5
|
-
o.observe(e2, n), e2._resizeObserver = o;
|
|
6
|
-
}, beforeUnmount(e2) {
|
|
7
|
-
e2._resizeObserver && e2._resizeObserver.disconnect();
|
|
8
|
-
} };
|
|
9
|
-
export {
|
|
10
|
-
e as resizeDirective
|
|
11
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "vue";
|
|
2
|
-
function e(e2, o, t) {
|
|
3
|
-
return new Promise((p, s) => {
|
|
4
|
-
let i = window.$vueApp.config.globalProperties.customSystem;
|
|
5
|
-
i || (i = window.$vueApp.config.globalProperties.systemCode);
|
|
6
|
-
let n = e2;
|
|
7
|
-
e2 && "string" == typeof e2 ? n = JSON.parse(e2) : e2 && "object" == typeof e2 && (n = e2);
|
|
8
|
-
const r = {};
|
|
9
|
-
i && (r.systemCode = i), t && (r.additionalParamMap = t), n && (r.restConfig = n), o && (r.entity = o), window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-pages/rest-data", r).then((e3) => {
|
|
10
|
-
e3 ? p(JSON.parse(e3)) : p();
|
|
11
|
-
}).catch((e3) => {
|
|
12
|
-
s(e3);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
e as restfulInterfaceTo
|
|
18
|
-
};
|
package/es/src/utils/util.js
DELETED
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
import i18n from "../i18n/i18n.js";
|
|
2
|
-
import { executeExpression } from "./calculator/calculator-util.js";
|
|
3
|
-
import { getLangByShort } from "./common-util.js";
|
|
4
|
-
function getI18n() {
|
|
5
|
-
let e = window.$i18n;
|
|
6
|
-
return e || (e = i18n), window.$locale ? i18n.locale = window.$locale : i18n.locale = "cn", e.global;
|
|
7
|
-
}
|
|
8
|
-
function getLanguageWithLocale() {
|
|
9
|
-
let e = window.$locale;
|
|
10
|
-
return e && "zh" !== e || (e = "cn"), getLangByShort(e);
|
|
11
|
-
}
|
|
12
|
-
function findOptionsByDynamicDataSource(e, t, n, a, l) {
|
|
13
|
-
return new Promise((i, o) => {
|
|
14
|
-
findDynamicDataSourceByCode(e, t, n, a, l).then((e2) => {
|
|
15
|
-
let t2 = [];
|
|
16
|
-
if (e2 && e2.options) {
|
|
17
|
-
const n2 = e2.options;
|
|
18
|
-
let a2;
|
|
19
|
-
e2.valueAttribute && (a2 = e2.valueAttribute), a2 && "[label]" !== a2 || (a2 = "_label_"), n2.forEach((e3) => {
|
|
20
|
-
const n3 = e3[a2], l2 = e3._label_;
|
|
21
|
-
t2.push({ label: l2, value: n3 });
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
t2 || (t2 = []), i(t2);
|
|
25
|
-
}).catch((e2) => {
|
|
26
|
-
o(e2);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function findDynamicDataSourceByCode(e, t, n, a, l) {
|
|
31
|
-
let i, o, r, u, s;
|
|
32
|
-
l && (i = l.watchAttrValue, null == i && (i = ""), o = l.parent, r = l._listCode, u = l._formCode, s = l._tableName);
|
|
33
|
-
const c = { searchText: t, watchAttrValue: i, parent: o };
|
|
34
|
-
a && "object" == typeof a ? c.additionalParamMap = a : a && "string" == typeof a && (c.additionalParamMap = JSON.parse(a)), void 0 === c.additionalParamMap && (c.additionalParamMap = {}), r && (c.additionalParamMap._listCode = r), u && (c.additionalParamMap._formCode = u), s && (c.additionalParamMap._tableName = s), n && null !== n && (c.entity = n);
|
|
35
|
-
const g = window.$vueApp.config.globalProperties.baseURL;
|
|
36
|
-
return new Promise((t2, n2) => {
|
|
37
|
-
void 0 !== window.$vueApp.config.globalProperties.systemCode && "agilebuilder" === window.$vueApp.config.globalProperties.systemCode ? t2() : window.$vueApp.config.globalProperties.$http.post(g + "/common/dynamic-data-source/" + e, c).then((a2) => {
|
|
38
|
-
a2.backendUrl ? window.$vueApp.config.globalProperties.$http.post(a2.backendUrl + "/common/dynamic-data-source/" + e, c).then((e2) => {
|
|
39
|
-
t2(e2);
|
|
40
|
-
}).catch((e2) => {
|
|
41
|
-
n2(e2);
|
|
42
|
-
}) : t2(a2);
|
|
43
|
-
}).catch((e2) => {
|
|
44
|
-
n2(e2);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function analysisCondition(e, t, n, a, l, i, o, r) {
|
|
49
|
-
if (void 0 === e || "" === e || null === e)
|
|
50
|
-
return true;
|
|
51
|
-
null == l && (l = false);
|
|
52
|
-
let u = {};
|
|
53
|
-
n && "string" == typeof n && "" !== n ? u = JSON.parse(n) : n && "object" == typeof n && (u = n);
|
|
54
|
-
let s = {};
|
|
55
|
-
a && "string" == typeof a && "" !== a ? s = JSON.parse(a) : a && "object" == typeof a && (s = a);
|
|
56
|
-
let c = [];
|
|
57
|
-
return e && "string" == typeof e && "" !== e ? c = JSON.parse(e) : e && Array.isArray(e) && (c = e), parseCondition(t, c, l, i, u, s, o, r);
|
|
58
|
-
}
|
|
59
|
-
function parseCondition(entity, conditionList, isSql, tableName, additionalParamMap, contextParameterMap, parentFormData, pageContext) {
|
|
60
|
-
if (null == conditionList || 0 === conditionList.length)
|
|
61
|
-
return true;
|
|
62
|
-
let conditions = "";
|
|
63
|
-
for (let e = 0; e < conditionList.length; e++) {
|
|
64
|
-
const t = conditionList[e];
|
|
65
|
-
let n = t.propName, a = t.propDbName, l;
|
|
66
|
-
if (!(n && "" !== n || a && "" !== a))
|
|
67
|
-
continue;
|
|
68
|
-
if (isSql && a) {
|
|
69
|
-
if (-1 !== a.indexOf("parent_+_")) {
|
|
70
|
-
a = a.replace("parent_+_", "");
|
|
71
|
-
const e2 = a.split("_+_");
|
|
72
|
-
a = e2[1], l = pageContext && a && a.indexOf("${") >= 0 ? getPropValueNew(a, pageContext, entity) : getValue(parentFormData, a, isSql);
|
|
73
|
-
} else
|
|
74
|
-
l = pageContext && a && a.indexOf("${") >= 0 ? getPropValueNew(a, pageContext, entity) : getValue(entity, a, isSql);
|
|
75
|
-
if (null == l && tableName && a.toLowerCase().startsWith(tableName.toLowerCase() + ".")) {
|
|
76
|
-
const e2 = a.substring(a.indexOf("."));
|
|
77
|
-
l = pageContext && e2 && e2.indexOf("${") >= 0 ? getPropValueNew(e2, pageContext, entity) : getValue(entity, e2, isSql);
|
|
78
|
-
}
|
|
79
|
-
} else {
|
|
80
|
-
if (-1 !== n.indexOf("parent_+_")) {
|
|
81
|
-
n = n.replace("parent_+_", "");
|
|
82
|
-
const e2 = n.split("_+_");
|
|
83
|
-
n = e2[1], l = pageContext && n && n.indexOf("${") >= 0 ? getPropValueNew(n, pageContext, entity) : getValue(parentFormData, n, isSql);
|
|
84
|
-
} else
|
|
85
|
-
l = pageContext && n && n.indexOf("${") >= 0 ? getPropValueNew(n, pageContext, entity) : getValue(entity, n, isSql);
|
|
86
|
-
a && null == l && (l = pageContext && a && a.indexOf("${") >= 0 ? getPropValueNew(a, pageContext, entity) : getValue(entity, a, isSql));
|
|
87
|
-
}
|
|
88
|
-
const i = t.operator, o = t.propValue, r = t.dataType, u = t.variableIsNull;
|
|
89
|
-
let s;
|
|
90
|
-
s = pageContext ? getPropValueNew(o, pageContext, entity) : getPropValue(o, entity, additionalParamMap, contextParameterMap), u && "null" === u && (void 0 !== s && "" !== s || (s = null));
|
|
91
|
-
let c = executeExpression(l, i, s, r);
|
|
92
|
-
const g = t.leftBracket, p = t.rightBracket;
|
|
93
|
-
let d = t.joinSign;
|
|
94
|
-
if (g && null !== g && "" !== g && (conditions += g, conditions += " "), u && "null" !== u && (null != s && s + "" != "" || (c = "1=1" === u)), conditions += c + " ", p && null !== p && "" !== p && (conditions += p, conditions += " "), e < conditionList.length - 1 && d && null !== d && "" !== d) {
|
|
95
|
-
const e2 = d.toLowerCase();
|
|
96
|
-
"and" === e2 ? d = e2.replace("and", "&&") : "or" === e2 && (d = e2.replace("or", "||")), conditions += d + " ";
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return !conditions || eval("(" + conditions + ")");
|
|
100
|
-
}
|
|
101
|
-
const REPLACE_DOT = "__";
|
|
102
|
-
function getValue(e, t, n) {
|
|
103
|
-
let a = null;
|
|
104
|
-
return e && null !== e && t && null !== t && (a = getValueByField(e, t), null == a && n && (void 0 !== a && null != a || t.indexOf(".") > 0 && (a = getValueByField(e, t = t.replace(".", REPLACE_DOT))))), a;
|
|
105
|
-
}
|
|
106
|
-
function getValueByField(e, t) {
|
|
107
|
-
if (e && null !== e) {
|
|
108
|
-
let n;
|
|
109
|
-
return t.indexOf(".") > 0 ? n = getSubEntityValue(e, t) : (n = e[t.toUpperCase()], void 0 === n && (n = e[t.toLowerCase()])), n;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
function getSubEntityValue(e, t) {
|
|
113
|
-
let n = null, a = e;
|
|
114
|
-
const l = t.split("\\.");
|
|
115
|
-
for (let e2 = 0; e2 < l.length; e2++) {
|
|
116
|
-
const t2 = l[e2];
|
|
117
|
-
e2 === l.length ? n = getSubEntityFieldValue(a, t2) : a = getSubEntityFieldValue(a, t2);
|
|
118
|
-
}
|
|
119
|
-
return n;
|
|
120
|
-
}
|
|
121
|
-
function getSubEntityFieldValue(e, t) {
|
|
122
|
-
return null == e ? null : e[t];
|
|
123
|
-
}
|
|
124
|
-
function getContextValue(e, t) {
|
|
125
|
-
let n = getLastNDate(t);
|
|
126
|
-
return e && (n = e[t]), n;
|
|
127
|
-
}
|
|
128
|
-
function getLastNDate(e) {
|
|
129
|
-
let t;
|
|
130
|
-
if (e && "currentTime" === e && (t = /* @__PURE__ */ new Date()), e && "currentWeek" === e && (t = getCurrentWeek()), e && "currentMonth" === e && (t = getCurrentMonth()), e && "currentQuarter" === e && (t = getCurrentQuarter()), e && "currentYear" === e && (t = getCurrentYear()), e && e.indexOf("lastNDay") >= 0) {
|
|
131
|
-
const n = e.substring(e.indexOf(":") + 1);
|
|
132
|
-
t = getLastNDay(parseInt(n));
|
|
133
|
-
}
|
|
134
|
-
return t;
|
|
135
|
-
}
|
|
136
|
-
function getCurrentWeek() {
|
|
137
|
-
const e = /* @__PURE__ */ new Date(), t = e.getTime(), n = e.getDay(), a = new Date(t + 864e5 * (0 - (n + 6) % 7)), l = new Date(t + 864e5 * (6 - (n + 6) % 7));
|
|
138
|
-
a.toLocaleDateString(), a.toLocaleTimeString(), l.toLocaleDateString(), l.toLocaleTimeString();
|
|
139
|
-
return [a, l];
|
|
140
|
-
}
|
|
141
|
-
function getCurrentMonth() {
|
|
142
|
-
const e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth() + 1;
|
|
143
|
-
e.setDate(1);
|
|
144
|
-
const a = `${t}/${n < 10 ? "0" : ""}${n}/01`;
|
|
145
|
-
e.setMonth(e.getMonth() + 2), e.setDate(0);
|
|
146
|
-
const l = `${e.getFullYear()}/${e.getMonth() < 9 ? "0" : ""}${e.getMonth() + 1}/01`, i = new Date(Date.parse(a)), o = new Date(new Date(Date.parse(l)).getTime() - 1e3);
|
|
147
|
-
i.toLocaleDateString(), i.toLocaleTimeString(), o.toLocaleDateString(), o.toLocaleTimeString();
|
|
148
|
-
return [i, o];
|
|
149
|
-
}
|
|
150
|
-
function getCurrentQuarter() {
|
|
151
|
-
const e = /* @__PURE__ */ new Date(), t = (e.getMonth() + 3) % 12;
|
|
152
|
-
let n, a;
|
|
153
|
-
n = e.getMonth() < t + 2 ? new Date(e.getFullYear(), t, 1) : new Date(e.getFullYear() + 1, t, 1), a = 11 === n.getMonth() ? new Date(n.getFullYear() + 1, 0, 0) : new Date(n.getFullYear(), n.getMonth() + 3, 0), a = new Date(a.getTime() + 864e5 - 1e3);
|
|
154
|
-
n.toLocaleDateString(), n.toLocaleTimeString(), a.toLocaleDateString(), a.toLocaleTimeString();
|
|
155
|
-
return [n, a];
|
|
156
|
-
}
|
|
157
|
-
function getCurrentYear() {
|
|
158
|
-
const e = (/* @__PURE__ */ new Date()).getFullYear();
|
|
159
|
-
let t = new Date(e, 0);
|
|
160
|
-
t.setMonth(0, 1);
|
|
161
|
-
let n = new Date(e + 1, 0);
|
|
162
|
-
n = n.getTime() - 1e3, n = new Date(n);
|
|
163
|
-
t.toLocaleDateString(), t.toLocaleTimeString(), n.toLocaleDateString(), n.toLocaleTimeString();
|
|
164
|
-
return [t, n];
|
|
165
|
-
}
|
|
166
|
-
function getLastNDay(e) {
|
|
167
|
-
let t = /* @__PURE__ */ new Date(), n = t.getFullYear(), a = t.getMonth() + 1, l = `${n}/${a < 10 ? "0" : ""}${a}/${t.getDate()}`;
|
|
168
|
-
t = new Date(Date.parse(l)), t.setDate(t.getDate() + 1), t = new Date(t.getTime() - 1e3);
|
|
169
|
-
let i = /* @__PURE__ */ new Date();
|
|
170
|
-
i.setDate(i.getDate() - (e - 1));
|
|
171
|
-
const o = i.getFullYear(), r = i.getMonth() + 1, u = `${o}/${r < 10 ? "0" : ""}${r}/${i.getDate()}`;
|
|
172
|
-
i = new Date(Date.parse(u));
|
|
173
|
-
i.toLocaleDateString(), i.toLocaleTimeString(), t.toLocaleDateString(), t.toLocaleTimeString();
|
|
174
|
-
retur[t];
|
|
175
|
-
}
|
|
176
|
-
function getPropValue(e, t, n, a, l, i, o) {
|
|
177
|
-
return getPropValueNew(e, { entity: { data: t, context: a, request: n, parent: l, row: i, task: o } });
|
|
178
|
-
}
|
|
179
|
-
function getAdditionalParamMap(e) {
|
|
180
|
-
if (e && e.entity) {
|
|
181
|
-
let t = { ...e.entity.page };
|
|
182
|
-
t || (t = {});
|
|
183
|
-
const n = e.entity.request;
|
|
184
|
-
return n && Object.assign(t, n), t;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
function formatCustomParams(e, t, n) {
|
|
188
|
-
const a = {};
|
|
189
|
-
return e && e.length > 0 && e.forEach((e2) => {
|
|
190
|
-
if (e2.paramValue && 0 === e2.paramValue.indexOf("${")) {
|
|
191
|
-
const l = getPropValueNew(e2.paramValue, t, n);
|
|
192
|
-
a[e2.paramName] = null != l ? l : null;
|
|
193
|
-
} else
|
|
194
|
-
a[e2.paramName] = e2.paramValue;
|
|
195
|
-
}), a;
|
|
196
|
-
}
|
|
197
|
-
function getPropValueNew(e, t, n) {
|
|
198
|
-
let a = null;
|
|
199
|
-
if (e && null !== e && "" !== e) {
|
|
200
|
-
const l = t && t.entity ? t.entity.data : null, i = t && t.entity ? t.entity.page : null, o = getAdditionalParamMap(t), r = t && t.entity ? t.entity.context : null, u = t && t.entity ? t.entity.parent ? t.entity.parent : t.entity.data : null, s = t && t.entity ? t.entity.row : null, c = t && t.entity ? t.entity.task : null, g = t && t.entity ? t.entity.system : null;
|
|
201
|
-
if ("null" === e)
|
|
202
|
-
a = null;
|
|
203
|
-
else if (e.startsWith("${row.")) {
|
|
204
|
-
if (n) {
|
|
205
|
-
a = getEntityFieldValue(n, e.replace("${row.", "").replace("}", ""));
|
|
206
|
-
}
|
|
207
|
-
} else if (0 === e.indexOf("${page.")) {
|
|
208
|
-
const t2 = e.replace("${page.", "").replace("}", "");
|
|
209
|
-
a = i ? i[t2] : null;
|
|
210
|
-
} else if (e.includes("${context.") || e.includes("${request.") || e.includes("${obj.") || e.includes("${data.")) {
|
|
211
|
-
if (e.includes("${context."))
|
|
212
|
-
a = getContextValue(r, e = e.replace("${context.", "").replace("}", ""));
|
|
213
|
-
else if (e.includes("${request.") && "${request.term}" !== e)
|
|
214
|
-
e = e.replace("${request.", "").replace("}", ""), a = o && null != o && Object.keys(o).indexOf(e) >= 0 && o[e] && null !== o[e] ? o[e] : null;
|
|
215
|
-
else if (e.includes("${obj."))
|
|
216
|
-
if (void 0 === l || null == l)
|
|
217
|
-
a = null;
|
|
218
|
-
else {
|
|
219
|
-
a = getEntityFieldValue(l, e.replace("${obj.", "").replace("}", ""));
|
|
220
|
-
}
|
|
221
|
-
else if (e.includes("${data."))
|
|
222
|
-
if (void 0 === l || null == l)
|
|
223
|
-
a = null;
|
|
224
|
-
else {
|
|
225
|
-
a = getEntityFieldValue(l, e.replace("${data.", "").replace("}", ""));
|
|
226
|
-
}
|
|
227
|
-
} else if (e.includes("${parent."))
|
|
228
|
-
if (void 0 === u || null == u)
|
|
229
|
-
a = null;
|
|
230
|
-
else {
|
|
231
|
-
a = getEntityFieldValue(u, e.replace("${parent.", "").replace("}", ""));
|
|
232
|
-
}
|
|
233
|
-
else if (e.includes("${system."))
|
|
234
|
-
if (void 0 === g || null == g)
|
|
235
|
-
a = null;
|
|
236
|
-
else {
|
|
237
|
-
a = getEntityFieldValue(g, e.replace("${system.", "").replace("}", ""));
|
|
238
|
-
}
|
|
239
|
-
else if (e.includes("${task."))
|
|
240
|
-
if (void 0 === c || null == c)
|
|
241
|
-
a = null;
|
|
242
|
-
else {
|
|
243
|
-
a = getEntityFieldValue(c, e.replace("${task.", "").replace("}", ""));
|
|
244
|
-
}
|
|
245
|
-
else if (e.includes("${subObj."))
|
|
246
|
-
if (void 0 === s || null == s)
|
|
247
|
-
a = null;
|
|
248
|
-
else {
|
|
249
|
-
a = getEntityFieldValue(s, e.replace("${subObj.", "").replace("}", ""));
|
|
250
|
-
}
|
|
251
|
-
else
|
|
252
|
-
a = e.includes("${input.") ? e.replace("${input.", "").replace("}", "") : e.includes("${fixed.") ? e.replace("${fixed.", "").replace("}", "") : e;
|
|
253
|
-
}
|
|
254
|
-
return a;
|
|
255
|
-
}
|
|
256
|
-
function analysisValue(e, t, n, a, l) {
|
|
257
|
-
if (!e)
|
|
258
|
-
return;
|
|
259
|
-
let i = "";
|
|
260
|
-
const o = e.split("-#-#");
|
|
261
|
-
return null != o && o.length > 0 && o.forEach((e2) => {
|
|
262
|
-
let o2;
|
|
263
|
-
o2 = l ? getPropValueNew(e2, l, t) : getPropValue(e2, t, n, a), o2 && null !== o2 || (o2 = ""), i += o2;
|
|
264
|
-
}), i;
|
|
265
|
-
}
|
|
266
|
-
function setEntityFieldValue(e, t, n) {
|
|
267
|
-
if (t && e)
|
|
268
|
-
if (t && t.indexOf(".") > 0) {
|
|
269
|
-
const a = getParentObjectUtil(t, e);
|
|
270
|
-
if (a) {
|
|
271
|
-
const e2 = t.substring(t.lastIndexOf(".") + 1);
|
|
272
|
-
void 0 === a[e2] ? a[t.substring(t.lastIndexOf(".") + 1)] = n : a[e2] = n;
|
|
273
|
-
}
|
|
274
|
-
} else
|
|
275
|
-
void 0 === e[t] || e[t], e[t] = n;
|
|
276
|
-
}
|
|
277
|
-
function getEntityFieldValueWithOutCase(e, t) {
|
|
278
|
-
if (t && t.indexOf(".") > 0) {
|
|
279
|
-
return getParentObjectUtil(t, e)[t.substring(t.lastIndexOf(".") + 1)];
|
|
280
|
-
}
|
|
281
|
-
return e[t];
|
|
282
|
-
}
|
|
283
|
-
function getEntityFieldValue(e, t, n) {
|
|
284
|
-
if (!t)
|
|
285
|
-
return null;
|
|
286
|
-
let a = getEntityFieldValueWithCase(e, t);
|
|
287
|
-
return null == a && (a = getEntityFieldValueWithCase(e, t.toLowerCase())), (void 0 === a || null === a && void 0 === n) && (a = getEntityFieldValueWithCase(e, t.toUpperCase())), a;
|
|
288
|
-
}
|
|
289
|
-
function getEntityFieldValueWithCase(e, t) {
|
|
290
|
-
if (t && t.indexOf(".") > 0) {
|
|
291
|
-
return getParentObjectUtil(t, e)[t.substring(t.lastIndexOf(".") + 1)];
|
|
292
|
-
}
|
|
293
|
-
return e[t];
|
|
294
|
-
}
|
|
295
|
-
function getParentObjectUtil(e, t) {
|
|
296
|
-
const n = e.split(".");
|
|
297
|
-
if (1 === n.length)
|
|
298
|
-
return t;
|
|
299
|
-
{
|
|
300
|
-
let e2;
|
|
301
|
-
for (let a = 0; a < n.length - 1; a++)
|
|
302
|
-
e2 = getParentModelProp(n[a], 0 === a ? t : e2);
|
|
303
|
-
return e2;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
function getParentModelProp(e, t) {
|
|
307
|
-
let n = getParentModelPropWithCase(e, t);
|
|
308
|
-
return void 0 === n && (n = getParentModelPropWithCase(e.toLowerCase(), t)), void 0 === n && (n = getParentModelPropWithCase(e.toUpperCase(), t)), n;
|
|
309
|
-
}
|
|
310
|
-
function getParentModelPropWithCase(e, t) {
|
|
311
|
-
return t || (t = {}), t[e] || t[e.toUpperCase()] || (t[e] = {}), t[e];
|
|
312
|
-
}
|
|
313
|
-
function findSystemInfoByCode(e) {
|
|
314
|
-
return new Promise((t, n) => {
|
|
315
|
-
e || (e = window.$vueApp.config.globalProperties.systemCode), window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/business-systems/" + e).then((n2) => {
|
|
316
|
-
t(n2 ? { zh_CN: n2.name, en_US: n2.enName, frontendUrl: n2.frontendUrl } : "系统:" + e + "不存在");
|
|
317
|
-
}).catch((e2) => {
|
|
318
|
-
n(e2);
|
|
319
|
-
});
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
function getPropNameWhenJoinTable(e, t, n) {
|
|
323
|
-
if (e && void 0 !== t && true === t) {
|
|
324
|
-
const t2 = "__";
|
|
325
|
-
e.indexOf(".") > 0 ? e = e.replace(".", t2) : n && null !== n && "" !== n && e.indexOf(n + t2) < 0 && (e = n + t2 + e);
|
|
326
|
-
}
|
|
327
|
-
return e;
|
|
328
|
-
}
|
|
329
|
-
function isImage(e) {
|
|
330
|
-
return !(!e || !/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e));
|
|
331
|
-
}
|
|
332
|
-
function watchPageContextDynamicVariable(e, t, n, a) {
|
|
333
|
-
const l = n.match(/\${(.*?)}/);
|
|
334
|
-
if (!l)
|
|
335
|
-
return;
|
|
336
|
-
const i = l ? l[1].split(".") : [];
|
|
337
|
-
i && i.length > 0 && e.$watch(() => i.reduce((e2, t2) => e2[t2], t.entity), (e2, t2) => {
|
|
338
|
-
a(e2, t2);
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
export {
|
|
342
|
-
analysisCondition,
|
|
343
|
-
analysisValue,
|
|
344
|
-
findDynamicDataSourceByCode,
|
|
345
|
-
findOptionsByDynamicDataSource,
|
|
346
|
-
findSystemInfoByCode,
|
|
347
|
-
formatCustomParams,
|
|
348
|
-
getEntityFieldValue,
|
|
349
|
-
getEntityFieldValueWithOutCase,
|
|
350
|
-
getI18n,
|
|
351
|
-
getLanguageWithLocale,
|
|
352
|
-
getLastNDate,
|
|
353
|
-
getParentObjectUtil,
|
|
354
|
-
getPropNameWhenJoinTable,
|
|
355
|
-
getPropValue,
|
|
356
|
-
getPropValueNew,
|
|
357
|
-
getValueByField,
|
|
358
|
-
isImage,
|
|
359
|
-
setEntityFieldValue,
|
|
360
|
-
watchPageContextDynamicVariable
|
|
361
|
-
};
|
package/es/src/utils/validate.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
function t(t2) {
|
|
2
|
-
return true;
|
|
3
|
-
}
|
|
4
|
-
function n(t2) {
|
|
5
|
-
return /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t2);
|
|
6
|
-
}
|
|
7
|
-
function e(t2) {
|
|
8
|
-
return /^[a-z]+$/.test(t2);
|
|
9
|
-
}
|
|
10
|
-
function r(t2) {
|
|
11
|
-
return /^[A-Z]+$/.test(t2);
|
|
12
|
-
}
|
|
13
|
-
function o(t2) {
|
|
14
|
-
return /^[A-Za-z]+$/.test(t2);
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
t as validUsername,
|
|
18
|
-
o as validateAlphabets,
|
|
19
|
-
e as validateLowerCase,
|
|
20
|
-
n as validateURL,
|
|
21
|
-
r as validateUpperCase
|
|
22
|
-
};
|