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