agilebuilder-ui 1.1.65-tmp13 → 1.1.65-tmp15
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/dist/index.full.min.js +16440 -0
- package/{es → dist}/style.css +2121 -2120
- 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 +382 -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 +9 -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 +769 -769
- 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 +4 -5
- package/vite.config.js +10 -10
- 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/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/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 → dist}/favicon.svg +0 -0
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { $emit as e } from "../../utils/gogocodeTransfer.js";
|
|
2
|
+
import t from "./store.js";
|
|
3
|
+
import { isEditOptionFunction as i, isLastEditRowSave as a, parseSubTableActionCondition as o, scrollYToBottom as s, isHasEditOption as n, getAdditionalParamMap as l, setCurrentRow as r, isDynamicDataSourceSource as d } from "./utils.js";
|
|
4
|
+
import g from "./formValidatorUtil.js";
|
|
5
|
+
import "vue";
|
|
6
|
+
import { setEntityFieldValue as p, getI18n as u, getEntityFieldValue as c, getPropValueNew as h, getPropValue as w } from "../../src/utils/util.js";
|
|
7
|
+
import f from "./eventBus.js";
|
|
8
|
+
import { isPromise as b } from "../../src/utils/common-util.js";
|
|
9
|
+
import { updateWithPageValue as m } from "../../src/utils/jump-page-utils.js";
|
|
10
|
+
import { getGuId as S } from "../../src/utils/guid.js";
|
|
11
|
+
import { ElMessageBox as D } from "element-plus";
|
|
12
|
+
const v = { toolbarRefresh(e2, t2, i2, a2) {
|
|
6
13
|
return this.toolbarFieldParam = i2, this.refresh(e2, t2, i2, a2);
|
|
7
14
|
}, refresh(e2, i2, a2, o2) {
|
|
8
|
-
return new Promise((i3,
|
|
15
|
+
return new Promise((i3, s2) => {
|
|
9
16
|
if (o2) {
|
|
10
17
|
t.get(this.code).options.subTableData = null;
|
|
11
18
|
}
|
|
@@ -13,156 +20,156 @@ const o = require("../../src/utils/util.js"), n = require("./eventBus.js"), s =
|
|
|
13
20
|
if (null != e2 && e2 instanceof Array && e2.length > 0)
|
|
14
21
|
if (this.$refs.sf) {
|
|
15
22
|
let t2 = this.$refs.sf.packageSearchParam();
|
|
16
|
-
t2 && t2.length > 0 ? a2 && a2.length > 0 && (1 === t2.length && (t2[0].leftBracket = "(", t2[0].rightBracket = ")"), "or" === t2[t2.length - 1].joinSign && (t2[t2.length - 1].joinSign = "and"), Array.prototype.push.apply(t2, a2)) : a2 && (t2 = [], t2 = a2), this.search(t2, false, e2).then(() => i3()).catch((e3) =>
|
|
23
|
+
t2 && t2.length > 0 ? a2 && a2.length > 0 && (1 === t2.length && (t2[0].leftBracket = "(", t2[0].rightBracket = ")"), "or" === t2[t2.length - 1].joinSign && (t2[t2.length - 1].joinSign = "and"), Array.prototype.push.apply(t2, a2)) : a2 && (t2 = [], t2 = a2), this.search(t2, false, e2).then(() => i3()).catch((e3) => s2(e3));
|
|
17
24
|
} else
|
|
18
|
-
this.search(a2, false, e2).then(() => i3()).catch((e3) =>
|
|
25
|
+
this.search(a2, false, e2).then(() => i3()).catch((e3) => s2(e3));
|
|
19
26
|
else if (this.$refs.sf) {
|
|
20
27
|
let e3 = this.$refs.sf.packageSearchParam();
|
|
21
|
-
e3 && e3.length > 0 ? a2 && a2.length > 0 && (1 === e3.length && (e3[0].leftBracket = "(", e3[0].rightBracket = ")"), "or" === e3[e3.length - 1].joinSign && (e3[e3.length - 1].joinSign = "and"), Array.prototype.push.apply(e3, a2)) : a2 && (e3 = [], e3 = a2), this.search(e3, false).then(() => i3()).catch((e4) =>
|
|
28
|
+
e3 && e3.length > 0 ? a2 && a2.length > 0 && (1 === e3.length && (e3[0].leftBracket = "(", e3[0].rightBracket = ")"), "or" === e3[e3.length - 1].joinSign && (e3[e3.length - 1].joinSign = "and"), Array.prototype.push.apply(e3, a2)) : a2 && (e3 = [], e3 = a2), this.search(e3, false).then(() => i3()).catch((e4) => s2(e4));
|
|
22
29
|
} else
|
|
23
|
-
this.search(a2, false).then(() => i3()).catch((e3) =>
|
|
30
|
+
this.search(a2, false).then(() => i3()).catch((e3) => s2(e3));
|
|
24
31
|
else
|
|
25
32
|
i3();
|
|
26
33
|
});
|
|
27
34
|
}, showSearchForm() {
|
|
28
|
-
this.showSearch = true, e
|
|
35
|
+
this.showSearch = true, e(this, "showSearch");
|
|
29
36
|
}, cancelSearch() {
|
|
30
|
-
this.showSearch = false, e
|
|
37
|
+
this.showSearch = false, e(this, "cancelSearch");
|
|
31
38
|
}, getSearchForm() {
|
|
32
39
|
const e2 = t.get(this.code);
|
|
33
40
|
return e2.searchForm ? e2.searchForm : [];
|
|
34
|
-
}, createRow(
|
|
35
|
-
let
|
|
36
|
-
return
|
|
41
|
+
}, createRow(n2, l2, r2, d2) {
|
|
42
|
+
let g2 = -1;
|
|
43
|
+
return d2 && d2.rowIndex > -1 && (g2 = d2.rowIndex + 1), new Promise((d3, c2) => {
|
|
37
44
|
var _a, _b, _c;
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
if ((_b = (_a =
|
|
45
|
+
n2 || (n2 = t.get("_list_code"));
|
|
46
|
+
const h2 = t.get(n2), w2 = h2.gridData;
|
|
47
|
+
if ((_b = (_a = h2.superGrid) == null ? void 0 : _a.clearSort) == null ? void 0 : _b.call(_a), h2.lineEdit && h2.lineEdit.editable && void 0 !== h2.loaded && true === h2.loaded) {
|
|
41
48
|
let t2 = true;
|
|
42
|
-
if (i
|
|
43
|
-
const e2 =
|
|
44
|
-
t2 =
|
|
49
|
+
if (i("beforeInsertRow", n2)) {
|
|
50
|
+
const e2 = h2.isSubTableShowPage, i2 = h2.pagination && h2.pagination.pageSize, a2 = this.isMobile;
|
|
51
|
+
t2 = h2.pageContext ? h2.options.lineEditOptions.beforeInsertRow.call(this, { gridData: e2 ? h2.subTableData : h2.gridData, rowIndex: h2.$rowIndex, isMobile: a2, baseURL: this.baseURL, totalData: e2 ? h2.gridData : null, pageSize: i2, additionalParamMap: h2.additionalParamMap, row: l2, pageContext: h2.pageContext, configureObj: h2.configureObj }) : h2.options.lineEditOptions.beforeInsertRow.call(this, e2 ? h2.subTableData : h2.gridData, h2.$rowIndex, a2, this.baseURL, e2 ? h2.gridData : null, i2, h2.additionalParamMap, l2);
|
|
45
52
|
}
|
|
46
53
|
if (void 0 === t2 || true === t2) {
|
|
47
|
-
if (
|
|
48
|
-
let t4 =
|
|
49
|
-
void 0 !==
|
|
54
|
+
if (h2.options && h2.options.isFormSubTable) {
|
|
55
|
+
let t4 = h2.gridData;
|
|
56
|
+
void 0 !== h2.isSubTableShowPage && true === h2.isSubTableShowPage && (t4 = h2.subTableData);
|
|
50
57
|
const i2 = t4.filter((e2) => void 0 !== e2.$editing && true === e2.$editing);
|
|
51
58
|
i2 && i2.length > 0 && i2.forEach((t5) => {
|
|
52
|
-
|
|
53
|
-
}),
|
|
59
|
+
p(t5, "$editing", false), e(f, "un-edit", { row: t5 });
|
|
60
|
+
}), h2.isEditRow = false;
|
|
54
61
|
} else {
|
|
55
|
-
if (!
|
|
56
|
-
return window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
57
|
-
if (void 0 !==
|
|
58
|
-
const e2 =
|
|
59
|
-
|
|
62
|
+
if (!a(n2) || void 0 !== h2.isCreateRow && true === h2.isCreateRow)
|
|
63
|
+
return window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: h2.$rowIndex + 1 }), type: "warning" }), void c2(new Error("please save line"));
|
|
64
|
+
if (void 0 !== h2.$rowIndex && null !== h2.$rowIndex && h2.$rowIndex < h2.gridData.length) {
|
|
65
|
+
const e2 = h2.gridData[h2.$rowIndex];
|
|
66
|
+
p(e2, "$editing", false), h2.isEditRow = false;
|
|
60
67
|
}
|
|
61
68
|
}
|
|
62
|
-
if (false ===
|
|
63
|
-
return window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
64
|
-
if (
|
|
65
|
-
if (void 0 !==
|
|
66
|
-
if (
|
|
67
|
-
const e2 = (this.currentPage - 1) * this.pageSize +
|
|
68
|
-
|
|
69
|
+
if (false === o(h2, this.parentFormData, {}, (_c = h2.options.actionPermission) == null ? void 0 : _c.addCondition))
|
|
70
|
+
return window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.canntAddTip"), type: "warning" }), void c2(new Error("can not create"));
|
|
71
|
+
if (l2 = this.getNewRow(h2.defaultValueColumns, h2.additionalParamMap, h2.contextParameter, l2, n2, r2 ? r2.getDefaultValueFunc : null), p(l2, "$editing", true), h2.isEditRow = true, h2.options && h2.options.isFormSubTable) {
|
|
72
|
+
if (void 0 !== h2.isSubTableShowPage && true === h2.isSubTableShowPage)
|
|
73
|
+
if (h2.isChangePage = true, g2 >= 0) {
|
|
74
|
+
const e2 = (this.currentPage - 1) * this.pageSize + g2;
|
|
75
|
+
h2.addRowIndex = e2 + 1, h2.subTableData.splice(e2, 0, l2);
|
|
69
76
|
} else {
|
|
70
|
-
let e2 =
|
|
71
|
-
e2 <= 0 && (e2 = -1),
|
|
77
|
+
let e2 = h2.subTableData.length;
|
|
78
|
+
e2 <= 0 && (e2 = -1), h2.subTableData.splice(e2, 0, l2), h2.addRowIndex = h2.subTableData.length;
|
|
72
79
|
}
|
|
73
80
|
else
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
81
|
+
g2 >= 0 ? w2.splice(g2, 0, l2) : w2.splice(w2.length, 0, l2), h2.lineEdit.editingCell && (h2.lineEdit.editingCell.row = w2.length);
|
|
82
|
+
h2.$rowIndex = w2.length, this.$nextTick(() => {
|
|
83
|
+
s(n2);
|
|
77
84
|
});
|
|
78
85
|
} else
|
|
79
|
-
|
|
80
|
-
const t3 = Object.assign({},
|
|
81
|
-
if (
|
|
82
|
-
const e2 =
|
|
83
|
-
|
|
86
|
+
w2.splice(0, 0, l2), h2.lineEdit.editingCell && (h2.lineEdit.editingCell.row = 0), h2.$rowIndex = 0;
|
|
87
|
+
const t3 = Object.assign({}, l2);
|
|
88
|
+
if (g2 >= 0 ? h2.orgGridData.splice(g2, 0, t3) : h2.orgGridData.splice(0, 0, t3), h2.lineEdit.editingCell || (h2.lineEdit.editingCell = {}, h2.lineEdit.validateErrorField = ""), i("afterInsertRow", n2)) {
|
|
89
|
+
const e2 = h2.isSubTableShowPage, t4 = h2.pagination && h2.pagination.pageSize, i2 = this.isMobile;
|
|
90
|
+
h2.pageContext ? h2.options.lineEditOptions.afterInsertRow.call(this, { gridData: e2 ? h2.subTableData : h2.gridData, rowIndex: h2.$rowIndex, isMobile: i2, baseURL: this.baseURL, totalData: e2 ? h2.gridData : null, pageSize: t4, additionalParamMap: h2.additionalParamMap, pageContext: h2.pageContext, configureObj: h2.configureObj }) : h2.options.lineEditOptions.afterInsertRow.call(this, e2 ? h2.subTableData : h2.gridData, h2.$rowIndex, i2, this.baseURL, e2 ? h2.gridData : null, t4, h2.additionalParamMap);
|
|
84
91
|
}
|
|
85
|
-
|
|
92
|
+
h2.isCreateRow = true, d3(l2);
|
|
86
93
|
} else
|
|
87
|
-
|
|
94
|
+
c2(new Error("can not create"));
|
|
88
95
|
} else
|
|
89
|
-
|
|
96
|
+
c2(new Error("list not editable or data not loaded completely"));
|
|
90
97
|
});
|
|
91
|
-
}, getNewRow(e2, i2, a2,
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
for (var
|
|
96
|
-
const t2 = e2[
|
|
98
|
+
}, getNewRow(e2, i2, a2, o2, s2, n2) {
|
|
99
|
+
o2 || (o2 = {}), s2 || (s2 = t.get("_list_code"));
|
|
100
|
+
const l2 = t.get(s2);
|
|
101
|
+
if (l2 && l2.allColumns && this.setColumnsDefaultValue(l2.allColumns, o2, l2, n2), e2 && e2.length > 0)
|
|
102
|
+
for (var r2 = 0; r2 < e2.length; r2++) {
|
|
103
|
+
const t2 = e2[r2];
|
|
97
104
|
if (t2 && t2.prop) {
|
|
98
|
-
const e3 =
|
|
105
|
+
const e3 = c(o2, t2.prop);
|
|
99
106
|
if ("$selection" !== t2.prop && "$index" !== t2.prop && t2.defaultValue && "" !== t2.defaultValue && (void 0 === e3 || "" === e3 || null === e3)) {
|
|
100
107
|
let e4;
|
|
101
|
-
e4 =
|
|
108
|
+
e4 = l2.pageContext ? h(t2.defaultValue, l2.pageContext) : w(t2.defaultValue, o2, i2, a2), p(o2, t2.prop, e4);
|
|
102
109
|
}
|
|
103
110
|
}
|
|
104
111
|
}
|
|
105
|
-
return { $rowDataGuId:
|
|
112
|
+
return { $rowDataGuId: S(), ...o2 };
|
|
106
113
|
}, setColumnsDefaultValue(e2, t2, i2, a2) {
|
|
107
|
-
for (let
|
|
108
|
-
const s2 = e2[
|
|
109
|
-
if ("$index" !==
|
|
114
|
+
for (let o2 = 0; o2 < e2.length; o2++) {
|
|
115
|
+
const s2 = e2[o2], n2 = s2.prop;
|
|
116
|
+
if ("$index" !== n2 && "$selection" !== n2 && "operation" !== n2) {
|
|
110
117
|
if (s2.hasOwnProperty("children"))
|
|
111
118
|
this.setChildrenColumnsDefaultValue(s2.children, t2);
|
|
112
|
-
else if (void 0 === t2[
|
|
119
|
+
else if (void 0 === t2[n2]) {
|
|
113
120
|
const e3 = s2.defaultValue;
|
|
114
|
-
let
|
|
115
|
-
a2 && (
|
|
121
|
+
let o3 = null;
|
|
122
|
+
a2 && (o3 = a2(i2.pageContext, e3, null, null), void 0 === o3 && (o3 = null)), p(t2, n2, o3);
|
|
116
123
|
}
|
|
117
124
|
}
|
|
118
125
|
}
|
|
119
|
-
|
|
126
|
+
p(t2, "$editing", false);
|
|
120
127
|
}, setChildrenColumnsDefaultValue(e2, t2) {
|
|
121
128
|
for (let i2 = 0; i2 < e2.length; i2++) {
|
|
122
|
-
const a2 = e2[i2],
|
|
123
|
-
a2.hasOwnProperty("children") ? this.setChildrenColumnsDefaultValue(a2.children, t2) : void 0 === t2[
|
|
129
|
+
const a2 = e2[i2], o2 = a2.prop;
|
|
130
|
+
a2.hasOwnProperty("children") ? this.setChildrenColumnsDefaultValue(a2.children, t2) : void 0 === t2[o2] && "operation" !== o2 && p(t2, o2, null);
|
|
124
131
|
}
|
|
125
132
|
}, isLastEditRowSaveMessage(e2) {
|
|
126
133
|
e2 || (e2 = t.get("_list_code"));
|
|
127
|
-
const
|
|
128
|
-
return !!
|
|
129
|
-
}, confirmBeforeSwitchingRow(e2,
|
|
134
|
+
const i2 = t.get(e2);
|
|
135
|
+
return !!a(e2) || (window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: i2.$rowIndex + 1 }), type: "warning" }), false);
|
|
136
|
+
}, confirmBeforeSwitchingRow(e2, i2) {
|
|
130
137
|
e2 || (e2 = t.get("_list_code"));
|
|
131
|
-
const { t:
|
|
132
|
-
|
|
138
|
+
const { t: o2 } = u(), s2 = t.get(e2).$rowIndex;
|
|
139
|
+
a(e2) || D.confirm(o2("superGrid.rowEditMessageBox.content"), o2("superGrid.rowEditMessageBox.title"), { distinguishCancelAndClose: true, confirmButtonText: o2("superGrid.rowEditMessageBox.confirmButton"), cancelButtonText: o2("superGrid.rowEditMessageBox.cancelButton"), showClose: true, beforeClose: (t2, a2, o3) => {
|
|
133
140
|
"confirm" === t2 ? this.saveRow(s2, e2).then((e3) => {
|
|
134
|
-
|
|
135
|
-
}) : "cancel" === t2 ? (this.restoreCurrentRow(s2, e2),
|
|
141
|
+
i2 == null ? void 0 : i2("confirm"), o3();
|
|
142
|
+
}) : "cancel" === t2 ? (this.restoreCurrentRow(s2, e2), i2 == null ? void 0 : i2("cancel"), o3()) : "close" === t2 && o3();
|
|
136
143
|
} });
|
|
137
|
-
}, editRow(e2,
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
if (void 0 !==
|
|
142
|
-
if (void 0 ===
|
|
143
|
-
if (!
|
|
144
|
-
return void this.saveRow(
|
|
145
|
-
this.editRow(e2,
|
|
144
|
+
}, editRow(e2, o2, s2, r2) {
|
|
145
|
+
o2 || (o2 = t.get("_list_code"));
|
|
146
|
+
const d2 = t.get(o2);
|
|
147
|
+
if (d2 && d2.lineEdit && d2.lineEdit.editable) {
|
|
148
|
+
if (void 0 !== d2.$rowIndex && null !== d2.$rowIndex && d2.$rowIndex !== e2) {
|
|
149
|
+
if (void 0 === d2.options.lineEditOptions.autoSave || n("autoSave", o2) && true === d2.options.lineEditOptions.autoSave) {
|
|
150
|
+
if (!s2)
|
|
151
|
+
return void this.saveRow(d2.$rowIndex, o2).then((t3) => {
|
|
152
|
+
this.editRow(e2, o2, true);
|
|
146
153
|
});
|
|
147
|
-
} else if (!
|
|
148
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
154
|
+
} else if (!a(o2))
|
|
155
|
+
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: d2.$rowIndex + 1 }), type: "warning" });
|
|
149
156
|
}
|
|
150
157
|
let t2 = true;
|
|
151
|
-
if (!
|
|
152
|
-
const
|
|
153
|
-
t2 =
|
|
158
|
+
if (!r2 && i("beforeEdit", o2)) {
|
|
159
|
+
const i2 = d2.isSubTableShowPage, a2 = d2.pagination && d2.pagination.pageSize;
|
|
160
|
+
t2 = d2.options.lineEditOptions.beforeEdit.call(this, { gridData: i2 ? d2.subTableData : d2.gridData, listCode: o2, entity: d2.gridData[e2], row: d2.gridData[e2], rowIndex: e2, columns: d2.columns, isMobile: false, pageGridData: i2 ? d2.gridData : null, pageSize: a2, additionalParamMap: l(d2), pageContext: d2.pageContext, configureObj: d2.configureObj });
|
|
154
161
|
}
|
|
155
|
-
|
|
156
|
-
void 0 !== t3 && true !== t3 || this.doEditRow(
|
|
157
|
-
}) : void 0 !== t2 && true !== t2 || this.doEditRow(
|
|
162
|
+
b(t2) ? t2.then((t3) => {
|
|
163
|
+
void 0 !== t3 && true !== t3 || this.doEditRow(d2, e2);
|
|
164
|
+
}) : void 0 !== t2 && true !== t2 || this.doEditRow(d2, e2);
|
|
158
165
|
}
|
|
159
166
|
}, doEditRow(e2, t2) {
|
|
160
167
|
if (void 0 !== e2.$rowIndex && null !== e2.$rowIndex && e2.$rowIndex < e2.gridData.length) {
|
|
161
168
|
const t3 = e2.gridData[e2.$rowIndex];
|
|
162
|
-
|
|
169
|
+
p(t3, "$editing", false), e2.isEditRow = false;
|
|
163
170
|
}
|
|
164
171
|
const i2 = e2.gridData[t2];
|
|
165
|
-
|
|
172
|
+
p(i2, "$editing", true), e2.$lastSaveRowIndex = null, e2.$rowIndex = t2, e2.isEditRow = true, e2.lineEdit.editingCell && (e2.lineEdit.editingCell.row = t2);
|
|
166
173
|
}, saveRow(e2, t2) {
|
|
167
174
|
return new Promise((i2, a2) => {
|
|
168
175
|
const o2 = this;
|
|
@@ -172,56 +179,56 @@ const o = require("../../src/utils/util.js"), n = require("./eventBus.js"), s =
|
|
|
172
179
|
});
|
|
173
180
|
}, 100);
|
|
174
181
|
});
|
|
175
|
-
}, saveCurrentRow(
|
|
182
|
+
}, saveCurrentRow(o2, s2) {
|
|
176
183
|
return new Promise((r2, d2) => {
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
180
|
-
if (void 0 ===
|
|
181
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
182
|
-
if (
|
|
183
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
184
|
-
if (
|
|
185
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
186
|
-
if (!
|
|
184
|
+
s2 || (s2 = t.get("_list_code"));
|
|
185
|
+
const p2 = t.get(s2);
|
|
186
|
+
if (p2.lineEdit && p2.lineEdit.editable) {
|
|
187
|
+
if (void 0 === p2.gridData[o2].$editing || false === p2.gridData[o2].$editing)
|
|
188
|
+
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.noNeedToSaveRow", { row: o2 + 1 }), type: "warning" });
|
|
189
|
+
if (p2.$rowIndex !== o2 && !a(s2))
|
|
190
|
+
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: p2.$rowIndex + 1 }), type: "warning" });
|
|
191
|
+
if (p2.$lastSaveRowIndex = null, void 0 !== p2.isHasDynamic && false === p2.isHasDynamic && !p2.lineEdit.urlToSaveRow && !n("urlToSaveRow", s2) && !i("saveRow", s2))
|
|
192
|
+
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSetURLToSaveRowInformation"), type: "warning" });
|
|
193
|
+
if (!p2.canSaveRow)
|
|
187
194
|
return;
|
|
188
|
-
|
|
189
|
-
const t2 =
|
|
190
|
-
let
|
|
191
|
-
|
|
192
|
-
let
|
|
193
|
-
if (true ===
|
|
195
|
+
p2.canSaveRow = false;
|
|
196
|
+
const t2 = p2.gridData[o2];
|
|
197
|
+
let c2 = true;
|
|
198
|
+
n("isEnableValidate", s2) && (c2 = p2.options.lineEditOptions.isEnableValidate);
|
|
199
|
+
let h2 = true;
|
|
200
|
+
if (true === c2 && (h2 = g.validator(t2, s2, o2)), true === h2) {
|
|
194
201
|
let a2 = true;
|
|
195
|
-
if (i
|
|
196
|
-
e
|
|
197
|
-
const a3 =
|
|
198
|
-
let
|
|
199
|
-
if (i
|
|
200
|
-
let e2 =
|
|
201
|
-
|
|
202
|
+
if (i("beforeSave", s2) && (a2 = p2.pageContext ? p2.options.lineEditOptions.beforeSave.call(this, { row: t2, columns: p2.columns, additionalParamMap: p2.additionalParamMap, pageContext: p2.pageContext, configureObj: p2.configureObj }) : p2.options.lineEditOptions.beforeSave.call(this, t2, p2.columns, p2.additionalParamMap)), void 0 === a2 || true === a2) {
|
|
203
|
+
e(f, "un-edit", { row: t2 });
|
|
204
|
+
const a3 = l(p2);
|
|
205
|
+
let g2;
|
|
206
|
+
if (i("saveRow", s2) && (g2 = p2.pageContext ? p2.options.lineEditOptions.saveRow.call(this, { row: t2, columns: p2.columns, dataTypeMap: p2.$dataTypeMap, dynamicColumnInfo: p2.dynamicColumnInfo, additionalParamMap: a3, mainDefaultValueColumns: p2.mainDefaultValueColumns, pageContext: p2.pageContext, configureObj: p2.configureObj }) : p2.options.lineEditOptions.saveRow.call(this, t2, p2.columns, p2.$dataTypeMap, p2.dynamicColumnInfo, a3, p2.mainDefaultValueColumns)), !g2 && p2.lineEdit && p2.lineEdit.urlToSaveRow) {
|
|
207
|
+
let e2 = p2.lineEdit.urlToSaveRow;
|
|
208
|
+
n("urlToSaveRow", s2) && (e2 = p2.options.lineEditOptions.urlToSaveRow), g2 = window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL + e2, t2);
|
|
202
209
|
}
|
|
203
|
-
if (void 0 !==
|
|
204
|
-
const e2 = "/common/dynamic-values", i2 = { mainTableName:
|
|
205
|
-
|
|
210
|
+
if (void 0 !== p2.isHasDynamic && true === p2.isHasDynamic && !g2) {
|
|
211
|
+
const e2 = "/common/dynamic-values", i2 = { mainTableName: p2.basicInfo && p2.basicInfo.tableName ? p2.basicInfo.tableName : "", row: t2, dynamicColumnInfo: p2.dynamicColumnInfo, additionalParamMap: a3, dataTypeMap: p2.$dataTypeMap, dynamicServiceName: p2.dynamicServiceName, mainDefaultValueColumns: p2.mainDefaultValueColumns };
|
|
212
|
+
g2 = window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL + e2, i2);
|
|
206
213
|
}
|
|
207
|
-
|
|
208
|
-
this.afterSave(
|
|
214
|
+
g2 ? g2.then((e2) => {
|
|
215
|
+
this.afterSave(p2, o2, s2, e2, t2).then((e3) => {
|
|
209
216
|
r2(e3);
|
|
210
217
|
}).catch((e3) => {
|
|
211
218
|
d2(e3);
|
|
212
219
|
});
|
|
213
220
|
}).catch((e2) => {
|
|
214
|
-
|
|
215
|
-
}) : (
|
|
221
|
+
p2.canSaveRow = true, i("saveError", s2) && p2.options.lineEditOptions.saveError.call(this, t2, p2.columns, o2, e2), d2(e2);
|
|
222
|
+
}) : (p2.canSaveRow = true, d2(u().t("saveRowRequest is undefined")));
|
|
216
223
|
} else
|
|
217
|
-
|
|
224
|
+
p2.canSaveRow = true, d2(u().t("superGrid.theReturnValueOfTheBeforesaveCallbackMethodIsFalse"));
|
|
218
225
|
} else
|
|
219
|
-
|
|
226
|
+
p2.canSaveRow = true, d2(u().t("imatrixUIMessage.validationFailed"));
|
|
220
227
|
}
|
|
221
228
|
});
|
|
222
|
-
}, afterSave(e2, t2, a2,
|
|
229
|
+
}, afterSave(e2, t2, a2, o2, s2) {
|
|
223
230
|
return new Promise((l2, r2) => {
|
|
224
|
-
e2.isCreateRow = false, e2.canSaveRow = true, e2.$rowIndex = null, e2.isEditRow = false, e2.$lastSaveRowIndex = t2, window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
231
|
+
e2.isCreateRow = false, e2.canSaveRow = true, e2.$rowIndex = null, e2.isEditRow = false, e2.$lastSaveRowIndex = t2, window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.lineSavedSuccessfully", { row: t2 + 1 }), type: "success" }), (void 0 === e2.options.lineEditOptions.aftersaveIsCancelEditState || n("aftersaveIsCancelEditState", a2) && true === e2.options.lineEditOptions.aftersaveIsCancelEditState) && (p(s2, "$editing", false), e2.isEditRow = false), i("saveSuccess", a2) && (e2.pageContext ? e2.options.lineEditOptions.saveSuccess.call(this, { data: o2, columns: e2.columns, rowIndex: t2, row: s2, additionalParamMap: e2.additionalParamMap, pageContext: e2.pageContext, configureObj: e2.configureObj }) : e2.options.lineEditOptions.saveSuccess.call(this, o2, e2.columns, t2, s2, e2.additionalParamMap), e2.options.lineEditOptions.saveSuccess.call(this, o2, e2.columns, t2, s2, e2.additionalParamMap)), Object.assign(e2.orgGridData[t2], o2), Object.assign(e2.gridData[t2], o2), this.refresh(false, true).then(() => {
|
|
225
232
|
(void 0 === e2.options.lineEditOptions.aftersaveIsCreateRow || e2.options.lineEditOptions.aftersaveIsCreateRow) && this.createRow(a2), l2({ rowIndex: t2, listCode: a2 });
|
|
226
233
|
}).catch((e3) => r2(e3));
|
|
227
234
|
});
|
|
@@ -229,64 +236,64 @@ const o = require("../../src/utils/util.js"), n = require("./eventBus.js"), s =
|
|
|
229
236
|
return new Promise((i2, a2) => {
|
|
230
237
|
this.restoreCurrentRow(e2, t2), i2();
|
|
231
238
|
});
|
|
232
|
-
}, restoreCurrentRow(e2,
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
236
|
-
if (null !==
|
|
237
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
238
|
-
const t2 = null !==
|
|
239
|
-
let
|
|
240
|
-
if (i
|
|
241
|
-
const i2 =
|
|
242
|
-
|
|
239
|
+
}, restoreCurrentRow(e2, o2) {
|
|
240
|
+
o2 || (o2 = t.get("_list_code"));
|
|
241
|
+
const s2 = t.get(o2);
|
|
242
|
+
if (s2.lineEdit && s2.lineEdit.editable) {
|
|
243
|
+
if (null !== s2.$rowIndex && s2.$rowIndex !== e2 && !a(o2))
|
|
244
|
+
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: s2.$rowIndex + 1 }), type: "warning" });
|
|
245
|
+
const t2 = null !== s2.$lastSaveRowIndex && s2.$lastSaveRowIndex === e2 && void 0 !== s2.gridData[e2].id;
|
|
246
|
+
let l2 = true;
|
|
247
|
+
if (i("beforeRestoreValidate", o2)) {
|
|
248
|
+
const i2 = s2.isSubTableShowPage, a2 = s2.pagination && s2.pagination.pageSize, o3 = this.isMobile;
|
|
249
|
+
l2 = s2.options.lineEditOptions.beforeRestoreValidate.call(this, { rowIndex: e2, gridData: i2 ? s2.subTableData : s2.gridData, entity: s2.gridData[e2], isMobile: o3, baseURL: this.baseURL, isEditing: !t2, pageGridData: i2 ? s2.gridData : null, pageSize: a2, additionalParamMap: s2.additionalParamMap, pageContext: s2.pageContext, configureObj: s2.configureObj });
|
|
243
250
|
}
|
|
244
|
-
if (void 0 !==
|
|
251
|
+
if (void 0 !== l2 && true !== l2)
|
|
245
252
|
return;
|
|
246
253
|
if (true === t2)
|
|
247
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
248
|
-
let
|
|
249
|
-
if (i
|
|
250
|
-
const i2 =
|
|
251
|
-
|
|
254
|
+
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.lineNoNeedToUndoEdit", { row: e2 + 1 }), type: "warning" });
|
|
255
|
+
let r2 = true;
|
|
256
|
+
if (i("beforeRestore", o2)) {
|
|
257
|
+
const i2 = s2.isSubTableShowPage, a2 = s2.pagination && s2.pagination.pageSize, o3 = this.isMobile;
|
|
258
|
+
r2 = s2.options.lineEditOptions.beforeRestore.call(this, { rowIndex: e2, gridData: i2 ? s2.subTableData : s2.gridData, entity: s2.gridData[e2], isMobile: o3, baseURL: window.$vueApp.config.globalProperties.baseURL, isEditing: !t2, pageGridData: i2 ? s2.gridData : null, pageSize: a2, additionalParamMap: s2.additionalParamMap, pageContext: s2.pageContext, configureObj: s2.configureObj });
|
|
252
259
|
}
|
|
253
|
-
if (void 0 ===
|
|
254
|
-
if (
|
|
255
|
-
const t3 = JSON.parse(JSON.stringify(
|
|
256
|
-
if (void 0 !==
|
|
260
|
+
if (void 0 === r2 || true === r2) {
|
|
261
|
+
if (s2.orgGridData[e2].id || s2.orgGridData[e2].ID) {
|
|
262
|
+
const t3 = JSON.parse(JSON.stringify(s2.orgGridData[e2]));
|
|
263
|
+
if (void 0 !== s2.isSubTableShowPage && true === s2.isSubTableShowPage) {
|
|
257
264
|
const t4 = (this.currentPage - 1) * this.pageSize + e2;
|
|
258
|
-
|
|
265
|
+
s2.subTableData[t4] = s2.gridData[e2];
|
|
259
266
|
}
|
|
260
|
-
window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
261
|
-
|
|
267
|
+
window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.lineCancelledSuccessfully", { row: e2 + 1 }), type: "success" }), (void 0 === s2.options.lineEditOptions.afterRestoreIsCancelEditState || n("afterRestoreIsCancelEditState", o2) && true === s2.options.lineEditOptions.afterRestoreIsCancelEditState) && (t3.$editing = false, s2.isEditRow = false), this.restoreCurrentRowTimer = setTimeout(() => {
|
|
268
|
+
s2.gridData[e2] = t3;
|
|
262
269
|
}, 100);
|
|
263
270
|
} else
|
|
264
|
-
this.deleteRow(e2,
|
|
265
|
-
|
|
271
|
+
this.deleteRow(e2, o2, true);
|
|
272
|
+
s2.$rowIndex = null, s2.isCreateRow = false, i("afterRestore", o2) && (s2.pageContext ? s2.options.lineEditOptions.afterRestore.call(this, { rowIndex: e2, row: s2.orgGridData[e2], additionalParamMap: s2.additionalParamMap, pageContext: s2.pageContext, configureObj: s2.configureObj }) : s2.options.lineEditOptions.afterRestore.call(this, e2, s2.orgGridData[e2], s2.additionalParamMap));
|
|
266
273
|
}
|
|
267
274
|
}
|
|
268
|
-
}, deleteRow(e2, a2,
|
|
269
|
-
return new Promise((s2,
|
|
275
|
+
}, deleteRow(e2, a2, o2) {
|
|
276
|
+
return new Promise((s2, n2) => {
|
|
270
277
|
var _a, _b;
|
|
271
278
|
a2 || (a2 = t.get("_list_code"));
|
|
272
|
-
const
|
|
273
|
-
let
|
|
274
|
-
if (i
|
|
275
|
-
const t2 =
|
|
276
|
-
|
|
279
|
+
const l2 = t.get(a2);
|
|
280
|
+
let r2 = true;
|
|
281
|
+
if (i("beforeDelete", a2)) {
|
|
282
|
+
const t2 = l2.isSubTableShowPage, i2 = l2.pagination && l2.pagination.pageSize, a3 = t2 ? l2.subTableData : l2.gridData, o3 = this.isMobile;
|
|
283
|
+
r2 = l2.pageContext ? l2.options.lineEditOptions.beforeDelete.call(this, { rowIndex: e2, row: l2.gridData[e2], gridData: a3, isMobile: o3, baseURL: this.baseURL, totalData: t2 ? l2.gridData : null, pageSize: i2, additionalParamMap: l2.additionalParamMap, pageContext: l2.pageContext, configureObj: l2.configureObj }) : l2.options.lineEditOptions.beforeDelete.call(this, e2, l2.gridData[e2], a3, o3, this.baseURL, t2 ? l2.gridData : null, i2, l2.additionalParamMap);
|
|
277
284
|
}
|
|
278
|
-
if (void 0 ===
|
|
279
|
-
if (!this.wfSubTableDeleteRowConditionParse(
|
|
285
|
+
if (void 0 === r2 || true === r2) {
|
|
286
|
+
if (!this.wfSubTableDeleteRowConditionParse(l2, this.parentFormData, l2.gridData[e2]))
|
|
280
287
|
return;
|
|
281
|
-
if (void 0 !==
|
|
282
|
-
|
|
288
|
+
if (void 0 !== l2.isSubTableShowPage && true === l2.isSubTableShowPage) {
|
|
289
|
+
l2.isDelete = true;
|
|
283
290
|
const t2 = (this.currentPage - 1) * this.pageSize + e2;
|
|
284
|
-
|
|
291
|
+
l2.subTableData.splice(t2, 1);
|
|
285
292
|
} else
|
|
286
|
-
|
|
287
|
-
if (
|
|
288
|
-
const t2 =
|
|
289
|
-
|
|
293
|
+
l2.gridData.splice(e2, 1), l2.orgGridData.splice(e2, 1);
|
|
294
|
+
if (l2.$lastSaveRowIndex = null, l2.$rowIndex = null, l2.isEditRow = false, window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.deleteSuccessful"), type: "success" }), 0 === l2.gridData.length && l2.options && null !== l2.options.isDefaultShowEdit && void 0 !== l2.options.isDefaultShowEdit && true === l2.options.isDefaultShowEdit && this.createRow(a2), l2.isMulitiSelect && ((_b = (_a = l2.superGrid) == null ? void 0 : _a.clearSelection) == null ? void 0 : _b.call(_a)), l2.isCreateRow = false, (void 0 === o2 || !o2) && i("afterDelete", a2)) {
|
|
295
|
+
const t2 = l2.isSubTableShowPage, i2 = l2.pagination && l2.pagination.pageSize, a3 = this.isMobile;
|
|
296
|
+
l2.pageContext ? l2.options.lineEditOptions.afterDelete.call(this, { rowIndex: e2, row: l2.orgGridData[e2], gridData: t2 ? l2.subTableData : l2.gridData, isMobile: a3, baseURL: this.baseURL, totalData: t2 ? l2.gridData : null, pageSize: i2, additionalParamMap: l2.additionalParamMap, pageContext: l2.pageContext, configureObj: l2.configureObj }) : l2.options.lineEditOptions.afterDelete.call(this, e2, l2.orgGridData[e2], t2 ? l2.subTableData : l2.gridData, a3, this.baseURL, t2 ? l2.gridData : null, i2, l2.additionalParamMap);
|
|
290
297
|
}
|
|
291
298
|
}
|
|
292
299
|
s2();
|
|
@@ -295,51 +302,51 @@ const o = require("../../src/utils/util.js"), n = require("./eventBus.js"), s =
|
|
|
295
302
|
const a2 = [];
|
|
296
303
|
return e2.forEach((e3, o2) => {
|
|
297
304
|
if (a2.length !== t2.length) {
|
|
298
|
-
for (const
|
|
299
|
-
if (e3[i2] ===
|
|
305
|
+
for (const s2 of t2)
|
|
306
|
+
if (e3[i2] === s2[i2]) {
|
|
300
307
|
a2.push(o2);
|
|
301
308
|
break;
|
|
302
309
|
}
|
|
303
310
|
}
|
|
304
311
|
}), a2.sort((e3, t3) => t3 - e3);
|
|
305
|
-
}, batchDeleteSubTableRowApi(e2, a2,
|
|
306
|
-
return new Promise((s2,
|
|
312
|
+
}, batchDeleteSubTableRowApi(e2, a2, o2) {
|
|
313
|
+
return new Promise((s2, n2) => {
|
|
307
314
|
var _a, _b;
|
|
308
315
|
if (!(a2 = a2 || []).length)
|
|
309
|
-
return window.$vueApp.config.globalProperties.$message({ showClose: true, message:
|
|
316
|
+
return window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("imatrixUIMessage.pleaseSelectDeleteData"), type: "warning" }), void s2();
|
|
310
317
|
e2 = e2 || t.get("_list_code");
|
|
311
|
-
const
|
|
312
|
-
let
|
|
313
|
-
if (i
|
|
314
|
-
const e3 =
|
|
315
|
-
|
|
318
|
+
const l2 = t.get(e2);
|
|
319
|
+
let r2 = true;
|
|
320
|
+
if (i("beforeDelete", e2)) {
|
|
321
|
+
const e3 = l2.isSubTableShowPage, t2 = l2.pagination && l2.pagination.pageSize, i2 = e3 ? l2.subTableData : l2.gridData, o3 = this.isMobile;
|
|
322
|
+
r2 = l2.pageContext ? l2.options.lineEditOptions.beforeDelete.call(this, { deleteRows: a2, gridData: i2, isMobile: o3, baseURL: this.baseURL, totalData: e3 ? l2.gridData : null, pageSize: t2, additionalParamMap: l2.additionalParamMap, pageContext: l2.pageContext, configureObj: l2.configureObj }) : l2.options.lineEditOptions.beforeDelete.call(this, a2, i2, o3, this.baseURL, e3 ? l2.gridData : null, t2, l2.additionalParamMap);
|
|
316
323
|
}
|
|
317
|
-
if (void 0 ===
|
|
324
|
+
if (void 0 === r2 || true === r2) {
|
|
318
325
|
let t2 = [];
|
|
319
|
-
if (void 0 !==
|
|
320
|
-
|
|
326
|
+
if (void 0 !== l2.isSubTableShowPage && true === l2.isSubTableShowPage) {
|
|
327
|
+
l2.isDelete = true, t2 = this.getDeleteIndexes(l2.subTableData, a2, o2);
|
|
321
328
|
for (const e3 of t2) {
|
|
322
|
-
if (!this.wfSubTableDeleteRowConditionParse(
|
|
329
|
+
if (!this.wfSubTableDeleteRowConditionParse(l2, this.parentFormData, l2.subTableData[e3]))
|
|
323
330
|
return;
|
|
324
|
-
|
|
331
|
+
l2.subTableData.splice(e3, 1);
|
|
325
332
|
}
|
|
326
333
|
} else {
|
|
327
|
-
t2 = this.getDeleteIndexes(
|
|
334
|
+
t2 = this.getDeleteIndexes(l2.gridData, a2, o2);
|
|
328
335
|
for (const e3 of t2) {
|
|
329
|
-
if (!this.wfSubTableDeleteRowConditionParse(
|
|
336
|
+
if (!this.wfSubTableDeleteRowConditionParse(l2, this.parentFormData, l2.gridData[e3]))
|
|
330
337
|
return;
|
|
331
|
-
|
|
338
|
+
l2.gridData.splice(e3, 1), l2.orgGridData.splice(e3, 1);
|
|
332
339
|
}
|
|
333
340
|
}
|
|
334
|
-
if (
|
|
335
|
-
const e3 =
|
|
336
|
-
|
|
341
|
+
if (l2.$lastSaveRowIndex = null, l2.$rowIndex = null, l2.isEditRow = false, window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.deleteSuccessful"), type: "success" }), 0 === l2.gridData.length && l2.options && null !== l2.options.isDefaultShowEdit && void 0 !== l2.options.isDefaultShowEdit && true === l2.options.isDefaultShowEdit && this.createRow(e2), l2.isMulitiSelect && ((_b = (_a = l2.superGrid) == null ? void 0 : _a.clearSelection) == null ? void 0 : _b.call(_a)), l2.isCreateRow = false, (void 0 === isRestore || !isRestore) && i("afterDelete", e2)) {
|
|
342
|
+
const e3 = l2.isSubTableShowPage, t3 = l2.pagination && l2.pagination.pageSize, i2 = this.isMobile;
|
|
343
|
+
l2.pageContext ? l2.options.lineEditOptions.afterDelete.call(this, { deleteRows: a2, gridData: e3 ? l2.subTableData : l2.gridData, isMobile: i2, baseURL: this.baseURL, totalData: e3 ? l2.gridData : null, pageSize: t3, additionalParamMap: l2.additionalParamMap, pageContext: l2.pageContext, configureObj: l2.configureObj }) : l2.options.lineEditOptions.afterDelete.call(this, a2, e3 ? l2.subTableData : l2.gridData, i2, this.baseURL, e3 ? l2.gridData : null, t3, l2.additionalParamMap);
|
|
337
344
|
}
|
|
338
345
|
}
|
|
339
346
|
s2();
|
|
340
347
|
});
|
|
341
348
|
}, focus(e2, t2) {
|
|
342
|
-
|
|
349
|
+
r(e2, t2);
|
|
343
350
|
}, getGridData(e2) {
|
|
344
351
|
e2 || (e2 = t.get("_list_code"));
|
|
345
352
|
const i2 = t.get(e2);
|
|
@@ -351,19 +358,19 @@ const o = require("../../src/utils/util.js"), n = require("./eventBus.js"), s =
|
|
|
351
358
|
e2 || (e2 = t.get("_list_code"));
|
|
352
359
|
return t.get(e2).pagination;
|
|
353
360
|
}, getOptionsValueSet(e2) {
|
|
354
|
-
const
|
|
361
|
+
const i2 = {};
|
|
355
362
|
e2 || (e2 = t.get("_list_code"));
|
|
356
363
|
return t.get(e2).columns.forEach((e3) => {
|
|
357
364
|
const t2 = e3.prop;
|
|
358
|
-
!
|
|
359
|
-
}),
|
|
365
|
+
!d(e3) && e3.valueSet && e3.valueSet.length > 0 && (i2[t2] = e3.valueSet);
|
|
366
|
+
}), i2;
|
|
360
367
|
}, getTableSelectOptions(e2) {
|
|
361
|
-
const
|
|
368
|
+
const i2 = {};
|
|
362
369
|
e2 || (e2 = t.get("_list_code"));
|
|
363
370
|
return t.get(e2).columns.forEach((e3) => {
|
|
364
371
|
const t2 = e3.prop;
|
|
365
|
-
!
|
|
366
|
-
}),
|
|
372
|
+
!d(e3) && e3.valueSet && e3.valueSet.length > 0 && (i2[t2] = { options: e3.valueSet, column: e3 });
|
|
373
|
+
}), i2;
|
|
367
374
|
}, restoreGridEdit(i2) {
|
|
368
375
|
i2 || (i2 = t.get("_list_code"));
|
|
369
376
|
const a2 = t.get(i2);
|
|
@@ -373,7 +380,7 @@ const o = require("../../src/utils/util.js"), n = require("./eventBus.js"), s =
|
|
|
373
380
|
for (let i3 = 0; i3 < t2.length; i3++) {
|
|
374
381
|
const a3 = t2[i3];
|
|
375
382
|
if (void 0 !== a3.$editing && true === a3.$editing) {
|
|
376
|
-
|
|
383
|
+
p(a3, "$editing", false), e(f, "un-edit", { row: a3 });
|
|
377
384
|
break;
|
|
378
385
|
}
|
|
379
386
|
}
|
|
@@ -381,26 +388,26 @@ const o = require("../../src/utils/util.js"), n = require("./eventBus.js"), s =
|
|
|
381
388
|
}, closePageDialog(e2) {
|
|
382
389
|
if (this.jumpPageSetting, this.jumpPageSetting) {
|
|
383
390
|
const i2 = t.get(this.code), a2 = this.jumpPageSetting.closeEvent, o2 = this.jumpPageSetting.row;
|
|
384
|
-
let
|
|
385
|
-
if (i2.options.eventCallBack && a2 && null !== a2 && i2.options.eventCallBack[a2] && (
|
|
391
|
+
let s2;
|
|
392
|
+
if (i2.options.eventCallBack && a2 && null !== a2 && i2.options.eventCallBack[a2] && (s2 = i2.options.eventCallBack[a2]), s2) {
|
|
386
393
|
const t2 = { params: i2.additionalParamMap, additionalParamMap: i2.additionalParamMap, entity: o2 };
|
|
387
|
-
e2 && (t2.eventParams = { popEntity: e2.entity, popPageCode: e2.pageCode, pageCode: this.pageCode }),
|
|
394
|
+
e2 && (t2.eventParams = { popEntity: e2.entity, popPageCode: e2.pageCode, pageCode: this.pageCode }), s2.call(this, t2), e2.jumpInfo && "closeWindowAndRefresh" === e2.jumpInfo.successOperation && this.refresh();
|
|
388
395
|
}
|
|
389
|
-
const
|
|
390
|
-
if (void 0 !==
|
|
396
|
+
const n2 = this.jumpPageSetting.isRefreshWhenClosePopup;
|
|
397
|
+
if (void 0 !== n2 && true === n2) {
|
|
391
398
|
const e3 = t.get(this.code);
|
|
392
399
|
this.search(e3.searchForm);
|
|
393
400
|
}
|
|
394
401
|
}
|
|
395
402
|
this.isShowPageDialog = false, this.jumpPageSetting = null;
|
|
396
403
|
}, updateValues(e2, i2, a2) {
|
|
397
|
-
const o2 = t.get(this.code),
|
|
398
|
-
if (null !=
|
|
404
|
+
const o2 = t.get(this.code), s2 = a2;
|
|
405
|
+
if (null != s2 && s2 < this.gridData.length) {
|
|
399
406
|
const t2 = false === this.isSql || o2.options && (void 0 !== o2.options.isAdministerListView && true === o2.options.isAdministerListView || void 0 !== o2.options.isFormSubTable && true === o2.options.isFormSubTable), a3 = this.tableName;
|
|
400
|
-
|
|
401
|
-
const
|
|
402
|
-
let
|
|
403
|
-
o2.options.eventCallBack &&
|
|
407
|
+
m(e2, i2, this.jumpPageSetting, this.gridData[s2], a3, !t2);
|
|
408
|
+
const n2 = this.jumpPageSetting && this.jumpPageSetting.updateValueEvent ? this.jumpPageSetting.updateValueEvent : null;
|
|
409
|
+
let l2;
|
|
410
|
+
o2.options.eventCallBack && n2 && null !== n2 && o2.options.eventCallBack[n2] && (l2 = o2.options.eventCallBack[n2]), l2 && l2.call(this, { sourceModel: e2, sourceTableName: i2, jumpPageSetting: this.jumpPageSetting, entity: this.gridData[s2], targetTableName: a3, isNeedReplaceFieldName: !t2, additionalParamMap: o2.additionalParamMap });
|
|
404
411
|
}
|
|
405
412
|
}, refreshChildData(e2, i2, a2) {
|
|
406
413
|
const o2 = t.get(e2);
|
|
@@ -416,11 +423,11 @@ const o = require("../../src/utils/util.js"), n = require("./eventBus.js"), s =
|
|
|
416
423
|
const o2 = t.get(a2);
|
|
417
424
|
if (!i2)
|
|
418
425
|
return;
|
|
419
|
-
let
|
|
420
|
-
o2.options.customRules && (
|
|
426
|
+
let s2 = {};
|
|
427
|
+
o2.options.customRules && (s2 = JSON.parse(JSON.stringify(o2.options.customRules))), i2.forEach((e3) => {
|
|
421
428
|
const t2 = JSON.parse(JSON.stringify(e3)), i3 = e3.name;
|
|
422
429
|
let a3;
|
|
423
|
-
|
|
430
|
+
s2[i3] || (s2[i3] = {}), a3 = s2[i3].rules, t2.rules && (a3 || (a3 = []), a3 = a3.concat(t2.rules)), t2.rules = a3, o2.options.customRules || (o2.options.customRules = {}), t2.beforeValidate = e3.beforeValidate, o2.options.customRules[i3] = t2;
|
|
424
431
|
});
|
|
425
432
|
}, doLayout(e2, i2) {
|
|
426
433
|
i2 || (i2 = this.code);
|
|
@@ -436,13 +443,16 @@ const o = require("../../src/utils/util.js"), n = require("./eventBus.js"), s =
|
|
|
436
443
|
}, getCustomFunc(e2) {
|
|
437
444
|
window.$PageUtil.getCustomFunc(this.pageContext, e2);
|
|
438
445
|
}, addRequiredClass(e2, i2, a2, o2) {
|
|
439
|
-
const
|
|
440
|
-
this.isFormSubTable && this.isSubTableShowPage && (a2 -= 1, o2 !== this.currentPage && (this.currentPage = o2, this.changePage(o2))),
|
|
446
|
+
const s2 = t.get(i2);
|
|
447
|
+
this.isFormSubTable && this.isSubTableShowPage && (a2 -= 1, o2 !== this.currentPage && (this.currentPage = o2, this.changePage(o2))), s2.gridData[a2].validateErrorField = e2;
|
|
441
448
|
}, handleSearch(e2, t2) {
|
|
442
449
|
const i2 = this.packageSearchParamNormalType(e2, t2);
|
|
443
450
|
this.doSearch(i2);
|
|
444
|
-
}, wfSubTableDeleteRowConditionParse: (e2, t2,
|
|
451
|
+
}, wfSubTableDeleteRowConditionParse: (e2, t2, i2) => {
|
|
445
452
|
var _a;
|
|
446
|
-
return false !==
|
|
447
|
-
} },
|
|
448
|
-
|
|
453
|
+
return false !== o(e2, t2, i2, (_a = e2.options.actionPermission) == null ? void 0 : _a.deleteCondition) || (window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.rowCanntDeleteTip"), type: "warning" }), false);
|
|
454
|
+
} }, C = { data: () => ({ toolbarFieldParam: null, showSearch: false, isMobile: false, baseURL: "", currentPage: 1, pageSize: 10, code: "", pageCode: "", jumpPageSetting: null, isShowPageDialog: false, gridData: [], subTableData: [], searchForm: [], options: {}, lineEdit: null, loaded: false, configureObj: {}, additionalParamMap: {}, basicInfo: {}, dynamicColumnInfo: {}, $dataTypeMap: {}, mainDefaultValueColumns: [], dynamicServiceName: "", isHasDynamic: false, isMulitiSelect: false, sql: false, restoreCurrentRowTimer: null }), methods: { ...v } };
|
|
455
|
+
export {
|
|
456
|
+
C as apisMixin,
|
|
457
|
+
v as default
|
|
458
|
+
};
|