@oceanbase/ui 0.2.0
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/static/iconfont.22caa259.woff +0 -0
- package/dist/static/iconfont.bf41d69a.woff2 +0 -0
- package/dist/static/iconfont.d8ca098f.ttf +0 -0
- package/dist/ui.min.css +1 -0
- package/dist/ui.min.js +1 -0
- package/es/Action/Group.d.ts +14 -0
- package/es/Action/Group.js +112 -0
- package/es/Action/Item.d.ts +31 -0
- package/es/Action/Item.js +136 -0
- package/es/Action/index.d.ts +8 -0
- package/es/Action/index.js +7 -0
- package/es/BackgroundTaskManager/RefreshMan.d.ts +11 -0
- package/es/BackgroundTaskManager/RefreshMan.js +66 -0
- package/es/BackgroundTaskManager/constants.js +10 -0
- package/es/BackgroundTaskManager/index.d.ts +49 -0
- package/es/BackgroundTaskManager/index.js +155 -0
- package/es/BasicLayout/Header.d.ts +45 -0
- package/es/BasicLayout/Header.js +228 -0
- package/es/BasicLayout/Header.less +134 -0
- package/es/BasicLayout/index.d.ts +45 -0
- package/es/BasicLayout/index.js +312 -0
- package/es/BasicLayout/index.less +400 -0
- package/es/BasicLayout/locale/en-US.js +11 -0
- package/es/BasicLayout/locale/zh-CN.js +11 -0
- package/es/BasicLayout/locale/zh-TW.js +11 -0
- package/es/BatchOperationBar/index.d.ts +33 -0
- package/es/BatchOperationBar/index.js +126 -0
- package/es/BatchOperationBar/index.less +46 -0
- package/es/BatchOperationBar/index.less.d.ts +15 -0
- package/es/BatchOperationBar/locale/en-US.js +6 -0
- package/es/BatchOperationBar/locale/zh-CN.js +6 -0
- package/es/BatchOperationBar/locale/zh-TW.js +6 -0
- package/es/Boundary/Components/Code.d.ts +14 -0
- package/es/Boundary/Components/Code.js +32 -0
- package/es/Boundary/Components/Exception.d.ts +17 -0
- package/es/Boundary/Components/Exception.js +129 -0
- package/es/Boundary/Components/Function.d.ts +9 -0
- package/es/Boundary/Components/Function.js +21 -0
- package/es/Boundary/Components/index.d.ts +3 -0
- package/es/Boundary/Components/index.js +3 -0
- package/es/Boundary/IBoundary.js +1 -0
- package/es/Boundary/constant.js +41 -0
- package/es/Boundary/index.d.ts +8 -0
- package/es/Boundary/index.js +7 -0
- package/es/Boundary/index.less +44 -0
- package/es/Boundary/locale/en-US.js +10 -0
- package/es/Boundary/locale/zh-CN.js +10 -0
- package/es/Boundary/locale/zh-TW.js +10 -0
- package/es/Boundary/utils.js +18 -0
- package/es/ContentWithQuestion/index.d.ts +13 -0
- package/es/ContentWithQuestion/index.js +46 -0
- package/es/ContentWithQuestion/index.less +18 -0
- package/es/Dialog/Anchor.js +104 -0
- package/es/Dialog/Dock.js +84 -0
- package/es/Dialog/EventProxy.js +50 -0
- package/es/Dialog/index.d.ts +35 -0
- package/es/Dialog/index.js +614 -0
- package/es/Dialog/index.less +114 -0
- package/es/Dialog/locale/en-US.js +4 -0
- package/es/Dialog/locale/zh-CN.js +4 -0
- package/es/Dialog/locale/zh-TW.js +4 -0
- package/es/DocDialog/index.d.ts +24 -0
- package/es/DocDialog/index.js +115 -0
- package/es/DocDialog/locale/en-US.js +1 -0
- package/es/DocDialog/locale/zh-CN.js +1 -0
- package/es/DocDialog/locale/zh-TW.js +1 -0
- package/es/FullscreenBox/index.d.ts +42 -0
- package/es/FullscreenBox/index.js +145 -0
- package/es/FullscreenBox/index.less +49 -0
- package/es/FullscreenBox/locale/en-US.js +1 -0
- package/es/FullscreenBox/locale/zh-CN.js +1 -0
- package/es/FullscreenBox/locale/zh-TW.js +1 -0
- package/es/GraphToolbar/index.d.ts +26 -0
- package/es/GraphToolbar/index.js +132 -0
- package/es/GraphToolbar/index.less +65 -0
- package/es/GraphToolbar/locale/en-US.js +8 -0
- package/es/GraphToolbar/locale/zh-CN.js +8 -0
- package/es/GraphToolbar/locale/zh-TW.js +8 -0
- package/es/Highlight/DiffView/DiffCells.js +43 -0
- package/es/Highlight/DiffView/index.d.ts +44 -0
- package/es/Highlight/DiffView/index.js +317 -0
- package/es/Highlight/HighlightCell.js +29 -0
- package/es/Highlight/JsonView.d.ts +8 -0
- package/es/Highlight/JsonView.js +44 -0
- package/es/Highlight/index.d.ts +97 -0
- package/es/Highlight/index.js +257 -0
- package/es/Highlight/index.less +381 -0
- package/es/Highlight/languages/bash.js +2 -0
- package/es/Highlight/languages/cpp.js +2 -0
- package/es/Highlight/languages/css.js +2 -0
- package/es/Highlight/languages/dockerfile.js +2 -0
- package/es/Highlight/languages/go.js +2 -0
- package/es/Highlight/languages/groovy.js +2 -0
- package/es/Highlight/languages/http.js +2 -0
- package/es/Highlight/languages/java.js +2 -0
- package/es/Highlight/languages/javascript.js +2 -0
- package/es/Highlight/languages/json.js +2 -0
- package/es/Highlight/languages/markdown.js +2 -0
- package/es/Highlight/languages/nginx.js +2 -0
- package/es/Highlight/languages/python.js +2 -0
- package/es/Highlight/languages/ruby.js +2 -0
- package/es/Highlight/languages/solidity.js +2 -0
- package/es/Highlight/languages/sql.js +2 -0
- package/es/Highlight/languages/typescript.js +2 -0
- package/es/Highlight/languages/xml.js +2 -0
- package/es/Highlight/languages/yaml.js +2 -0
- package/es/Highlight/locale/en-US.js +1 -0
- package/es/Highlight/locale/zh-CN.js +1 -0
- package/es/Highlight/locale/zh-TW.js +1 -0
- package/es/Highlight/useKeyDownCopyEvent.js +54 -0
- package/es/IconFont/font/iconfont.css +503 -0
- package/es/IconFont/font/iconfont.ttf +0 -0
- package/es/IconFont/font/iconfont.woff +0 -0
- package/es/IconFont/font/iconfont.woff2 +0 -0
- package/es/IconFont/index.d.ts +9 -0
- package/es/IconFont/index.js +26 -0
- package/es/LocaleDropdown/index.d.ts +9 -0
- package/es/LocaleDropdown/index.js +47 -0
- package/es/Login/ActivateForm.d.ts +19 -0
- package/es/Login/ActivateForm.js +98 -0
- package/es/Login/LoginForm.d.ts +20 -0
- package/es/Login/LoginForm.js +142 -0
- package/es/Login/RegisterForm.d.ts +23 -0
- package/es/Login/RegisterForm.js +155 -0
- package/es/Login/index.d.ts +66 -0
- package/es/Login/index.js +177 -0
- package/es/Login/index.less +325 -0
- package/es/Login/locale/en-US.js +26 -0
- package/es/Login/locale/zh-CN.js +27 -0
- package/es/Login/locale/zh-TW.js +26 -0
- package/es/Lottie/index.js +37 -0
- package/es/NavMenu/index.d.ts +19 -0
- package/es/NavMenu/index.js +99 -0
- package/es/NavMenu/index.less +50 -0
- package/es/PageContainer/ItemRender.js +21 -0
- package/es/PageContainer/index.d.ts +16 -0
- package/es/PageContainer/index.js +71 -0
- package/es/PageContainer/locale/en-US.js +3 -0
- package/es/PageContainer/locale/zh-CN.js +3 -0
- package/es/PageContainer/locale/zh-TW.js +3 -0
- package/es/PageContainer/style/index.d.ts +5 -0
- package/es/PageContainer/style/index.js +72 -0
- package/es/Password/Content.d.ts +14 -0
- package/es/Password/Content.js +92 -0
- package/es/Password/index.d.ts +25 -0
- package/es/Password/index.js +137 -0
- package/es/Password/locale/en-US.js +12 -0
- package/es/Password/locale/zh-CN.js +12 -0
- package/es/Password/locale/zh-TW.js +12 -0
- package/es/Ranger/QuickPicker.d.ts +4 -0
- package/es/Ranger/QuickPicker.js +123 -0
- package/es/Ranger/Ranger.d.ts +11 -0
- package/es/Ranger/Ranger.js +140 -0
- package/es/Ranger/constant/index.js +187 -0
- package/es/Ranger/index.d.ts +33 -0
- package/es/Ranger/index.js +32 -0
- package/es/Ranger/index.less +55 -0
- package/es/Ranger/locale/en-US.js +29 -0
- package/es/Ranger/locale/zh-CN.js +3 -0
- package/es/Ranger/locale/zh-TW.js +3 -0
- package/es/Ranger/typing.js +1 -0
- package/es/SideTip/Dragger.d.ts +45 -0
- package/es/SideTip/Dragger.js +293 -0
- package/es/SideTip/IconLoading.d.ts +3 -0
- package/es/SideTip/IconLoading.js +37 -0
- package/es/SideTip/index.d.ts +156 -0
- package/es/SideTip/index.js +177 -0
- package/es/SideTip/index.less +177 -0
- package/es/SideTip/locale/en-US.js +1 -0
- package/es/SideTip/locale/zh-CN.js +1 -0
- package/es/SideTip/locale/zh-TW.js +1 -0
- package/es/SideTip/utils.js +80 -0
- package/es/TaskGraph/Graph.d.ts +24 -0
- package/es/TaskGraph/Graph.js +260 -0
- package/es/TaskGraph/graph.less +23 -0
- package/es/TaskGraph/index.d.ts +16 -0
- package/es/TaskGraph/index.js +165 -0
- package/es/TaskGraph/index.less +117 -0
- package/es/TaskGraph/locale/en-US.js +12 -0
- package/es/TaskGraph/locale/zh-CN.js +12 -0
- package/es/TaskGraph/locale/zh-TW.js +12 -0
- package/es/TaskGraph/register.d.ts +7 -0
- package/es/TaskGraph/register.js +200 -0
- package/es/TreeSearch/index.d.ts +38 -0
- package/es/TreeSearch/index.js +168 -0
- package/es/TreeSearch/util.d.ts +21 -0
- package/es/TreeSearch/util.js +111 -0
- package/es/Welcome/index.d.ts +38 -0
- package/es/Welcome/index.js +140 -0
- package/es/Welcome/index.less +186 -0
- package/es/Welcome/locale/en-US.js +4 -0
- package/es/Welcome/locale/zh-CN.js +4 -0
- package/es/Welcome/locale/zh-TW.js +4 -0
- package/es/Welcome/step.d.ts +18 -0
- package/es/Welcome/step.js +42 -0
- package/es/_util/genComponentStyleHook.d.ts +14 -0
- package/es/_util/genComponentStyleHook.js +27 -0
- package/es/_util/index.js +54 -0
- package/es/_util/useHistory.js +9 -0
- package/es/assets/background_img.svg +30 -0
- package/es/assets/graph_fit_view_icon.svg +14 -0
- package/es/assets/graph_reset_icon.svg +14 -0
- package/es/assets/logo/oceanbase_logo.svg +29 -0
- package/es/assets/logo/oceanbase_watermark.svg +31 -0
- package/es/assets/monitor.svg +21 -0
- package/es/assets/user.svg +16 -0
- package/es/constant/index.js +18 -0
- package/es/index.d.ts +28 -0
- package/es/index.js +27 -0
- package/es/index.less +14 -0
- package/es/interface.js +1 -0
- package/es/locale/LocaleWrapper.d.ts +10 -0
- package/es/locale/LocaleWrapper.js +69 -0
- package/es/locale/en-US.js +38 -0
- package/es/locale/index.js +1 -0
- package/es/locale/zh-CN.js +39 -0
- package/es/locale/zh-TW.js +33 -0
- package/es/variable.less +54 -0
- package/lib/Action/Group.d.ts +14 -0
- package/lib/Action/Group.js +124 -0
- package/lib/Action/Item.d.ts +31 -0
- package/lib/Action/Item.js +126 -0
- package/lib/Action/index.d.ts +8 -0
- package/lib/Action/index.js +37 -0
- package/lib/BackgroundTaskManager/RefreshMan.d.ts +11 -0
- package/lib/BackgroundTaskManager/RefreshMan.js +86 -0
- package/lib/BackgroundTaskManager/constants.js +38 -0
- package/lib/BackgroundTaskManager/index.d.ts +49 -0
- package/lib/BackgroundTaskManager/index.js +161 -0
- package/lib/BasicLayout/Header.d.ts +45 -0
- package/lib/BasicLayout/Header.js +177 -0
- package/lib/BasicLayout/Header.less +134 -0
- package/lib/BasicLayout/index.d.ts +45 -0
- package/lib/BasicLayout/index.js +346 -0
- package/lib/BasicLayout/index.less +400 -0
- package/lib/BasicLayout/locale/en-US.js +35 -0
- package/lib/BasicLayout/locale/zh-CN.js +35 -0
- package/lib/BasicLayout/locale/zh-TW.js +35 -0
- package/lib/BatchOperationBar/index.d.ts +33 -0
- package/lib/BatchOperationBar/index.js +165 -0
- package/lib/BatchOperationBar/index.less +46 -0
- package/lib/BatchOperationBar/index.less.d.ts +15 -0
- package/lib/BatchOperationBar/locale/en-US.js +30 -0
- package/lib/BatchOperationBar/locale/zh-CN.js +30 -0
- package/lib/BatchOperationBar/locale/zh-TW.js +30 -0
- package/lib/Boundary/Components/Code.d.ts +14 -0
- package/lib/Boundary/Components/Code.js +55 -0
- package/lib/Boundary/Components/Exception.d.ts +17 -0
- package/lib/Boundary/Components/Exception.js +114 -0
- package/lib/Boundary/Components/Function.d.ts +9 -0
- package/lib/Boundary/Components/Function.js +47 -0
- package/lib/Boundary/Components/index.d.ts +3 -0
- package/lib/Boundary/Components/index.js +27 -0
- package/lib/Boundary/IBoundary.js +17 -0
- package/lib/Boundary/constant.js +71 -0
- package/lib/Boundary/index.d.ts +8 -0
- package/lib/Boundary/index.js +27 -0
- package/lib/Boundary/index.less +44 -0
- package/lib/Boundary/locale/en-US.js +34 -0
- package/lib/Boundary/locale/zh-CN.js +34 -0
- package/lib/Boundary/locale/zh-TW.js +34 -0
- package/lib/Boundary/utils.js +46 -0
- package/lib/ContentWithQuestion/index.d.ts +13 -0
- package/lib/ContentWithQuestion/index.js +76 -0
- package/lib/ContentWithQuestion/index.less +18 -0
- package/lib/Dialog/Anchor.js +107 -0
- package/lib/Dialog/Dock.js +112 -0
- package/lib/Dialog/EventProxy.js +59 -0
- package/lib/Dialog/index.d.ts +35 -0
- package/lib/Dialog/index.js +558 -0
- package/lib/Dialog/index.less +114 -0
- package/lib/Dialog/locale/en-US.js +28 -0
- package/lib/Dialog/locale/zh-CN.js +28 -0
- package/lib/Dialog/locale/zh-TW.js +28 -0
- package/lib/DocDialog/index.d.ts +24 -0
- package/lib/DocDialog/index.js +135 -0
- package/lib/DocDialog/locale/en-US.js +25 -0
- package/lib/DocDialog/locale/zh-CN.js +25 -0
- package/lib/DocDialog/locale/zh-TW.js +25 -0
- package/lib/FullscreenBox/index.d.ts +42 -0
- package/lib/FullscreenBox/index.js +126 -0
- package/lib/FullscreenBox/index.less +49 -0
- package/lib/FullscreenBox/locale/en-US.js +25 -0
- package/lib/FullscreenBox/locale/zh-CN.js +25 -0
- package/lib/FullscreenBox/locale/zh-TW.js +25 -0
- package/lib/GraphToolbar/index.d.ts +26 -0
- package/lib/GraphToolbar/index.js +154 -0
- package/lib/GraphToolbar/index.less +65 -0
- package/lib/GraphToolbar/locale/en-US.js +32 -0
- package/lib/GraphToolbar/locale/zh-CN.js +32 -0
- package/lib/GraphToolbar/locale/zh-TW.js +32 -0
- package/lib/Highlight/DiffView/DiffCells.js +70 -0
- package/lib/Highlight/DiffView/index.d.ts +44 -0
- package/lib/Highlight/DiffView/index.js +297 -0
- package/lib/Highlight/HighlightCell.js +58 -0
- package/lib/Highlight/JsonView.d.ts +8 -0
- package/lib/Highlight/JsonView.js +83 -0
- package/lib/Highlight/index.d.ts +97 -0
- package/lib/Highlight/index.js +263 -0
- package/lib/Highlight/index.less +381 -0
- package/lib/Highlight/languages/bash.js +36 -0
- package/lib/Highlight/languages/cpp.js +36 -0
- package/lib/Highlight/languages/css.js +36 -0
- package/lib/Highlight/languages/dockerfile.js +36 -0
- package/lib/Highlight/languages/go.js +36 -0
- package/lib/Highlight/languages/groovy.js +36 -0
- package/lib/Highlight/languages/http.js +36 -0
- package/lib/Highlight/languages/java.js +36 -0
- package/lib/Highlight/languages/javascript.js +36 -0
- package/lib/Highlight/languages/json.js +36 -0
- package/lib/Highlight/languages/markdown.js +36 -0
- package/lib/Highlight/languages/nginx.js +36 -0
- package/lib/Highlight/languages/python.js +36 -0
- package/lib/Highlight/languages/ruby.js +36 -0
- package/lib/Highlight/languages/solidity.js +36 -0
- package/lib/Highlight/languages/sql.js +36 -0
- package/lib/Highlight/languages/typescript.js +36 -0
- package/lib/Highlight/languages/xml.js +36 -0
- package/lib/Highlight/languages/yaml.js +36 -0
- package/lib/Highlight/locale/en-US.js +25 -0
- package/lib/Highlight/locale/zh-CN.js +25 -0
- package/lib/Highlight/locale/zh-TW.js +25 -0
- package/lib/Highlight/useKeyDownCopyEvent.js +86 -0
- package/lib/IconFont/font/iconfont.css +503 -0
- package/lib/IconFont/font/iconfont.ttf +0 -0
- package/lib/IconFont/font/iconfont.woff +0 -0
- package/lib/IconFont/font/iconfont.woff2 +0 -0
- package/lib/IconFont/index.d.ts +9 -0
- package/lib/IconFont/index.js +82 -0
- package/lib/LocaleDropdown/index.d.ts +9 -0
- package/lib/LocaleDropdown/index.js +70 -0
- package/lib/Login/ActivateForm.d.ts +19 -0
- package/lib/Login/ActivateForm.js +132 -0
- package/lib/Login/LoginForm.d.ts +20 -0
- package/lib/Login/LoginForm.js +175 -0
- package/lib/Login/RegisterForm.d.ts +23 -0
- package/lib/Login/RegisterForm.js +177 -0
- package/lib/Login/index.d.ts +66 -0
- package/lib/Login/index.js +171 -0
- package/lib/Login/index.less +325 -0
- package/lib/Login/locale/en-US.js +50 -0
- package/lib/Login/locale/zh-CN.js +51 -0
- package/lib/Login/locale/zh-TW.js +50 -0
- package/lib/Lottie/index.js +62 -0
- package/lib/NavMenu/index.d.ts +19 -0
- package/lib/NavMenu/index.js +104 -0
- package/lib/NavMenu/index.less +50 -0
- package/lib/PageContainer/ItemRender.js +51 -0
- package/lib/PageContainer/index.d.ts +16 -0
- package/lib/PageContainer/index.js +88 -0
- package/lib/PageContainer/locale/en-US.js +27 -0
- package/lib/PageContainer/locale/zh-CN.js +27 -0
- package/lib/PageContainer/locale/zh-TW.js +27 -0
- package/lib/PageContainer/style/index.d.ts +5 -0
- package/lib/PageContainer/style/index.js +120 -0
- package/lib/Password/Content.d.ts +14 -0
- package/lib/Password/Content.js +106 -0
- package/lib/Password/index.d.ts +25 -0
- package/lib/Password/index.js +162 -0
- package/lib/Password/locale/en-US.js +36 -0
- package/lib/Password/locale/zh-CN.js +36 -0
- package/lib/Password/locale/zh-TW.js +36 -0
- package/lib/Ranger/QuickPicker.d.ts +4 -0
- package/lib/Ranger/QuickPicker.js +106 -0
- package/lib/Ranger/Ranger.d.ts +11 -0
- package/lib/Ranger/Ranger.js +153 -0
- package/lib/Ranger/constant/index.js +268 -0
- package/lib/Ranger/index.d.ts +33 -0
- package/lib/Ranger/index.js +64 -0
- package/lib/Ranger/index.less +55 -0
- package/lib/Ranger/locale/en-US.js +53 -0
- package/lib/Ranger/locale/zh-CN.js +27 -0
- package/lib/Ranger/locale/zh-TW.js +27 -0
- package/lib/Ranger/typing.js +17 -0
- package/lib/SideTip/Dragger.d.ts +45 -0
- package/lib/SideTip/Dragger.js +259 -0
- package/lib/SideTip/IconLoading.d.ts +3 -0
- package/lib/SideTip/IconLoading.js +75 -0
- package/lib/SideTip/index.d.ts +156 -0
- package/lib/SideTip/index.js +182 -0
- package/lib/SideTip/index.less +177 -0
- package/lib/SideTip/locale/en-US.js +25 -0
- package/lib/SideTip/locale/zh-CN.js +25 -0
- package/lib/SideTip/locale/zh-TW.js +25 -0
- package/lib/SideTip/utils.js +112 -0
- package/lib/TaskGraph/Graph.d.ts +24 -0
- package/lib/TaskGraph/Graph.js +259 -0
- package/lib/TaskGraph/graph.less +23 -0
- package/lib/TaskGraph/index.d.ts +16 -0
- package/lib/TaskGraph/index.js +163 -0
- package/lib/TaskGraph/index.less +117 -0
- package/lib/TaskGraph/locale/en-US.js +36 -0
- package/lib/TaskGraph/locale/zh-CN.js +36 -0
- package/lib/TaskGraph/locale/zh-TW.js +36 -0
- package/lib/TaskGraph/register.d.ts +7 -0
- package/lib/TaskGraph/register.js +205 -0
- package/lib/TreeSearch/index.d.ts +38 -0
- package/lib/TreeSearch/index.js +135 -0
- package/lib/TreeSearch/util.d.ts +21 -0
- package/lib/TreeSearch/util.js +110 -0
- package/lib/Welcome/index.d.ts +38 -0
- package/lib/Welcome/index.js +102 -0
- package/lib/Welcome/index.less +186 -0
- package/lib/Welcome/locale/en-US.js +28 -0
- package/lib/Welcome/locale/zh-CN.js +28 -0
- package/lib/Welcome/locale/zh-TW.js +28 -0
- package/lib/Welcome/step.d.ts +18 -0
- package/lib/Welcome/step.js +51 -0
- package/lib/_util/genComponentStyleHook.d.ts +14 -0
- package/lib/_util/genComponentStyleHook.js +58 -0
- package/lib/_util/index.js +67 -0
- package/lib/_util/useHistory.js +30 -0
- package/lib/assets/background_img.svg +30 -0
- package/lib/assets/graph_fit_view_icon.svg +14 -0
- package/lib/assets/graph_reset_icon.svg +14 -0
- package/lib/assets/logo/oceanbase_logo.svg +29 -0
- package/lib/assets/logo/oceanbase_watermark.svg +31 -0
- package/lib/assets/monitor.svg +21 -0
- package/lib/assets/user.svg +16 -0
- package/lib/constant/index.js +51 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.js +115 -0
- package/lib/index.less +14 -0
- package/lib/interface.js +17 -0
- package/lib/locale/LocaleWrapper.d.ts +10 -0
- package/lib/locale/LocaleWrapper.js +69 -0
- package/lib/locale/en-US.js +67 -0
- package/lib/locale/index.js +17 -0
- package/lib/locale/zh-CN.js +68 -0
- package/lib/locale/zh-TW.js +62 -0
- package/lib/variable.less +54 -0
- package/package.json +70 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="_图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 236.65 33.91">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #fff;
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
</defs>
|
|
10
|
+
<g>
|
|
11
|
+
<path class="cls-1" d="M127.14,6.7l-11.48,21.29h5.71l1.86-3.7h7.65l.6,3.7h5.71l-4.21-21.29h-5.85Zm-1.77,13.38l3.62-7.09,1.2,7.09h-4.81Z"/>
|
|
12
|
+
<path class="cls-1" d="M79.45,9.35c-.84-1.02-1.91-1.81-3.22-2.39-1.31-.57-2.79-.86-4.45-.86s-3.26,.29-4.75,.86c-1.49,.58-2.83,1.37-4,2.39-1.18,1.02-2.16,2.21-2.96,3.57-.8,1.36-1.33,2.84-1.6,4.42-.27,1.58-.24,3.05,.09,4.42,.33,1.36,.91,2.55,1.74,3.57,.83,1.02,1.89,1.81,3.19,2.39,1.3,.57,2.78,.86,4.46,.86s3.24-.29,4.74-.86c1.5-.57,2.85-1.37,4.03-2.39,1.19-1.02,2.18-2.21,2.97-3.57,.8-1.37,1.33-2.84,1.6-4.42,.27-1.58,.24-3.05-.09-4.42-.33-1.36-.92-2.55-1.76-3.57m-4.62,10.33c-.43,.72-.96,1.34-1.59,1.86-.63,.53-1.32,.94-2.07,1.23-.75,.29-1.52,.44-2.3,.44s-1.5-.15-2.15-.44c-.65-.29-1.2-.7-1.63-1.23-.44-.53-.75-1.15-.94-1.86-.19-.71-.21-1.5-.06-2.34,.14-.85,.43-1.63,.87-2.34,.43-.71,.96-1.34,1.58-1.86,.62-.53,1.3-.94,2.05-1.23,.75-.29,1.52-.44,2.3-.44s1.5,.15,2.15,.44c.65,.29,1.2,.7,1.65,1.23,.45,.53,.77,1.15,.95,1.86,.19,.72,.21,1.5,.06,2.34-.14,.85-.43,1.63-.86,2.34"/>
|
|
13
|
+
<polygon class="cls-1" points="115.59 23.3 104.74 23.3 105.37 19.63 115.86 19.63 116.66 14.94 106.17 14.94 106.78 11.38 117.62 11.38 118.42 6.7 102.22 6.7 98.58 27.98 114.8 27.98 115.59 23.3"/>
|
|
14
|
+
<polygon class="cls-1" points="152.92 19.47 146.66 6.7 141.3 6.7 137.66 27.98 143.02 27.98 145.24 15.21 151.5 27.98 156.84 27.98 160.47 6.7 155.14 6.7 152.92 19.47"/>
|
|
15
|
+
<path class="cls-1" d="M176.84,21.8c.11-.64,.14-1.24,.09-1.81-.05-.56-.2-1.07-.46-1.52-.26-.45-.63-.83-1.12-1.14-.48-.31-1.1-.54-1.84-.69,.85-.49,1.52-1.09,2.02-1.79,.49-.71,.83-1.6,1.02-2.67,.3-1.77,.04-3.12-.78-4.07-.82-.94-2.18-1.41-4.08-1.41h-8.69l-3.63,21.29h9.32c1.09,0,2.1-.13,3.02-.4,.92-.26,1.73-.66,2.43-1.18,.7-.53,1.28-1.18,1.75-1.95,.47-.77,.79-1.66,.96-2.65m-9.21-10.87h1.69c1.68,0,2.4,.69,2.16,2.06-.23,1.37-1.19,2.06-2.87,2.06h-1.69l.7-4.12Zm2.69,12.22c-.65,.36-1.64,.54-2.99,.54h-1.88l.77-4.52h1.88c1.35,0,2.28,.18,2.81,.54,.52,.36,.72,.93,.58,1.72-.13,.79-.52,1.37-1.17,1.72"/>
|
|
16
|
+
<path class="cls-1" d="M208.78,15c-.41-.15-.83-.29-1.25-.42-.42-.13-.8-.29-1.12-.47-.33-.18-.58-.39-.75-.64-.18-.24-.23-.55-.17-.93,.09-.55,.39-.99,.88-1.33,.49-.34,1.09-.51,1.78-.51,.55,0,1.09,.12,1.63,.35,.54,.24,1.06,.6,1.56,1.09l2.87-4.32c-.92-.56-1.92-.99-2.98-1.28-1.06-.29-2.1-.44-3.12-.44-1.09,0-2.11,.17-3.05,.51-.94,.34-1.77,.81-2.49,1.43-.72,.61-1.31,1.35-1.8,2.2-.48,.86-.82,1.81-.99,2.87-.18,1.05-.17,1.92,.03,2.61,.2,.69,.52,1.26,.97,1.71,.44,.45,.97,.81,1.59,1.09,.62,.27,1.25,.52,1.91,.75,.55,.21,1.01,.4,1.39,.56,.38,.17,.68,.35,.9,.55,.22,.2,.37,.41,.44,.65,.07,.24,.08,.51,.02,.83-.09,.53-.38,1-.88,1.41-.5,.41-1.19,.62-2.06,.62-.77,0-1.51-.18-2.23-.54-.72-.36-1.42-.9-2.1-1.64l-3.06,4.46c1.95,1.6,4.23,2.4,6.83,2.4,1.26,0,2.41-.17,3.47-.52,1.05-.35,1.98-.84,2.77-1.47,.79-.63,1.44-1.39,1.95-2.27,.51-.89,.85-1.87,1.04-2.96,.28-1.62,.09-2.93-.54-3.94-.64-1.01-1.78-1.81-3.43-2.41"/>
|
|
17
|
+
<path class="cls-1" d="M94.95,6.1c-1.44,0-2.86,.28-4.27,.83-1.41,.56-2.69,1.33-3.85,2.32-1.16,.99-2.16,2.16-2.98,3.53-.83,1.37-1.38,2.87-1.66,4.5-.28,1.64-.24,3.15,.13,4.53,.37,1.38,.96,2.58,1.78,3.59,.82,1.01,1.84,1.79,3.05,2.34,1.21,.56,2.52,.83,3.95,.83,.69,0,1.41-.07,2.14-.21,.74-.14,1.54-.36,2.41-.66l.58-.2,1.12-6.55c-1.62,1.51-3.29,2.26-5.01,2.26-.78,0-1.49-.15-2.11-.45-.62-.3-1.14-.71-1.55-1.24-.41-.53-.7-1.15-.86-1.86-.16-.71-.17-1.5-.02-2.34,.14-.83,.41-1.6,.82-2.32,.4-.71,.9-1.33,1.48-1.85,.58-.52,1.24-.93,1.97-1.23,.74-.3,1.5-.45,2.31-.45,1.82,0,3.22,.78,4.19,2.34l1.13-6.61c-.81-.38-1.6-.65-2.36-.83-.76-.18-1.55-.27-2.37-.27"/>
|
|
18
|
+
<path class="cls-1" d="M195.6,23.51c-.87-.17-2.57-.27-5.46,.42l.66,4.13h5.71l-.91-4.55Z"/>
|
|
19
|
+
<path class="cls-1" d="M195.36,22.27l-.93-4.69c-1.38,.02-3.11,.23-5.26,.78-.24,.06-.47,.12-.72,.19-1.19,.33-2.29,.55-3.29,.7l3.14-6.17,.67,4.13c2.15-.54,3.88-.75,5.26-.78l-1.93-9.65h-5.85l-11.48,21.29h5.71l2.06-4.05c1.72-.12,3.8-.42,6.17-1.07,.34-.09,.67-.18,.99-.25,2.9-.69,4.59-.59,5.46-.42"/>
|
|
20
|
+
<g>
|
|
21
|
+
<path class="cls-1" d="M224.04,15.11c-4.25,1.11-7.49,1.01-8.9,.87l-.76,4.58c.4,.03,.87,.06,1.41,.07,2.1,.04,5.17-.15,8.88-1.12,3.52-.92,5.59-.86,6.65-.69l.76-4.59c-1.79-.19-4.38-.07-8.05,.89"/>
|
|
22
|
+
<path class="cls-1" d="M225.14,6.88c-4.06,1.06-7.2,1.02-8.7,.89l-1.13,7.02c.99,.09,2.88,.17,5.39-.17l.4-2.45c1.4-.17,2.97-.45,4.68-.9,3.75-.98,5.86-.85,6.85-.65l.76-4.61c-1.79-.22-4.44-.13-8.25,.86"/>
|
|
23
|
+
<path class="cls-1" d="M223.02,23.05c-1.34,.35-2.58,.58-3.7,.73l.37-2.25c-1.56,.18-2.91,.22-4,.2-.52,0-.99-.03-1.38-.06l-1.14,6.82c.44,.04,.98,.07,1.61,.08,2.1,.04,5.17-.15,8.88-1.12,3.32-.87,5.35-.87,6.46-.72l.76-4.58c-1.78-.16-4.32-.02-7.85,.9"/>
|
|
24
|
+
</g>
|
|
25
|
+
</g>
|
|
26
|
+
<g>
|
|
27
|
+
<path class="cls-1" d="M29.13,32.35c.9-.38,1.81-.73,2.75-1.05,.44-.15,.87-.29,1.31-.42,.35-.11,.7-.21,1.05-.31,5.32-1.48,10.71-1.87,15.92-1.3v-5.43c-5.77-.57-11.72-.08-17.59,1.59-.35,.1-.7,.2-1.05,.31-.46,.14-.93,.29-1.39,.45-.91,.31-1.8,.65-2.67,1l1.68,5.16Z"/>
|
|
28
|
+
<path class="cls-1" d="M50.15,6.21V22.49c-5.98-.57-12.15-.04-18.23,1.72-.75,.22-1.49,.45-2.23,.71-.89,.31-1.79,.59-2.69,.86-7.67,2.27-15.45,3.05-23.02,2.51V12c5.91,.57,12,.06,18.01-1.66,.82-.23,1.64-.49,2.45-.77,.82-.28,1.64-.55,2.47-.79,7.74-2.32,15.6-3.12,23.24-2.57Z"/>
|
|
29
|
+
<path class="cls-1" d="M25,2.14c-.9,.38-1.81,.73-2.75,1.05-.44,.15-.87,.29-1.31,.42-.35,.11-.7,.21-1.05,.31-5.32,1.48-10.71,1.87-15.92,1.3v5.43c5.77,.57,11.72,.08,17.59-1.59,.35-.1,.7-.2,1.05-.31,.46-.14,.93-.29,1.39-.45,.91-.31,1.8-.65,2.67-1l-1.68-5.16Z"/>
|
|
30
|
+
</g>
|
|
31
|
+
</svg>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>monitor_un</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<path d="M11,0 C11.5522847,-1.01453063e-16 12,0.44771525 12,1 L12,1.585 L7.8934288,5.69235763 C7.78993699,5.79584944 7.64751925,5.84776792 7.50431755,5.83754833 L7.4186076,5.82387549 L4.01165602,4.9721376 C3.8655872,4.93562039 3.71083963,4.96687027 3.5903882,5.05720885 L3.5903882,5.05720885 L0,7.749 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L11,0 Z" id="path-1"></path>
|
|
6
|
+
</defs>
|
|
7
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.9">
|
|
8
|
+
<g id="图标下载" transform="translate(-91.000000, -408.000000)">
|
|
9
|
+
<g id="monitor_un" transform="translate(91.000000, 408.000000)">
|
|
10
|
+
<rect id="矩形" x="0" y="0" width="18" height="18"></rect>
|
|
11
|
+
<g id="编组" transform="translate(3.000000, 3.000000)">
|
|
12
|
+
<path d="M4.23087961,6.0577199 L7.72535733,6.93133933 C7.89574484,6.97393621 8.07598836,6.92401164 8.20017853,6.79982147 L12,3 L12,3 L12,11 C12,11.5522847 11.5522847,12 11,12 L1,12 C0.44771525,12 0,11.5522847 0,11 L0,9 L3.8096118,6.14279115 C3.93006323,6.05245258 4.08481079,6.0212027 4.23087961,6.0577199 Z" id="矩形" fill="#5C6B8A"></path>
|
|
13
|
+
<mask id="mask-2" fill="white">
|
|
14
|
+
<use xlink:href="#path-1"></use>
|
|
15
|
+
</mask>
|
|
16
|
+
<use id="形状结合" fill="#8592AD" xlink:href="#path-1"></use>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="11px" height="12px" viewBox="0 0 11 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>编组 2</title>
|
|
4
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="图标下载" transform="translate(-567.000000, -133.000000)" fill="#5C6B8A" fill-rule="nonzero">
|
|
6
|
+
<g id="personal" transform="translate(556.000000, 125.000000)">
|
|
7
|
+
<g transform="translate(8.000000, 6.000000)" id="编组-2">
|
|
8
|
+
<g transform="translate(3.518173, 2.709677)">
|
|
9
|
+
<ellipse id="Oval" cx="4.89942881" cy="2.70967742" rx="2.63863004" ry="2.70967742"></ellipse>
|
|
10
|
+
<path d="M4.83968841,6.06451613 C2.30508817,6.06451613 0.22216196,7.77385613 0.00400560552,10.1636787 C-0.0084843333,10.3005014 -0.0148618952,10.5806452 0.358565052,10.5806452 C2.37044749,10.5806452 5.35786313,10.5806452 9.32081178,10.5806452 C9.69423872,10.5806452 9.68564174,10.2557691 9.66886282,10.097753 C9.41876873,7.74248236 7.3509205,6.06451613 4.83968841,6.06451613 Z" id="Path"></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// OB 官网链接
|
|
2
|
+
export var OB_SITE_LINK = 'https://www.oceanbase.com';
|
|
3
|
+
export var LOCALE_LIST = [{
|
|
4
|
+
value: 'en-US',
|
|
5
|
+
label: 'English',
|
|
6
|
+
shortLabel: 'English',
|
|
7
|
+
minLabel: 'EN'
|
|
8
|
+
}, {
|
|
9
|
+
value: 'zh-CN',
|
|
10
|
+
label: '简体中文',
|
|
11
|
+
shortLabel: '中文',
|
|
12
|
+
minLabel: '中'
|
|
13
|
+
}, {
|
|
14
|
+
value: 'zh-TW',
|
|
15
|
+
label: '繁体中文',
|
|
16
|
+
shortLabel: '繁体',
|
|
17
|
+
minLabel: '繁'
|
|
18
|
+
}];
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
export * from '@ant-design/pro-components';
|
|
3
|
+
export { version } from '../package.json';
|
|
4
|
+
export { default as Action } from './Action';
|
|
5
|
+
export { BackgroundTaskManagerConstants, default as BackgroundTaskManager, } from './BackgroundTaskManager';
|
|
6
|
+
export type { BackgroundTaskManagerRef, ITaskMgrPreset, ITaskMgrQueue, TaskMgrID, } from './BackgroundTaskManager';
|
|
7
|
+
export { default as BasicLayout } from './BasicLayout';
|
|
8
|
+
export { default as BatchOperationBar } from './BatchOperationBar';
|
|
9
|
+
export { default as Boundary } from './Boundary';
|
|
10
|
+
export * from './constant';
|
|
11
|
+
export { default as ContentWithQuestion } from './ContentWithQuestion';
|
|
12
|
+
export { default as Dialog } from './Dialog';
|
|
13
|
+
export { default as DocDialog } from './DocDialog';
|
|
14
|
+
export { default as FullscreenBox } from './FullscreenBox';
|
|
15
|
+
export { default as GraphToolbar } from './GraphToolbar';
|
|
16
|
+
export { default as Highlight } from './Highlight';
|
|
17
|
+
export { default as IconFont } from './IconFont';
|
|
18
|
+
export * from './interface';
|
|
19
|
+
export { default as Login } from './Login';
|
|
20
|
+
export { default as Lottie } from './Lottie';
|
|
21
|
+
export { default as NavMenu } from './NavMenu';
|
|
22
|
+
export { default as PageContainer } from './PageContainer';
|
|
23
|
+
export { default as Password } from './Password';
|
|
24
|
+
export { default as Ranger } from './Ranger';
|
|
25
|
+
export { default as SideTip } from './SideTip';
|
|
26
|
+
export { default as TaskGraph } from './TaskGraph';
|
|
27
|
+
export { default as TreeSearch } from './TreeSearch';
|
|
28
|
+
export { default as Welcome } from './Welcome';
|
package/es/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
export * from '@ant-design/pro-components';
|
|
3
|
+
export { version } from "../package.json";
|
|
4
|
+
export { default as Action } from "./Action";
|
|
5
|
+
export { BackgroundTaskManagerConstants, default as BackgroundTaskManager } from "./BackgroundTaskManager";
|
|
6
|
+
export { default as BasicLayout } from "./BasicLayout";
|
|
7
|
+
export { default as BatchOperationBar } from "./BatchOperationBar";
|
|
8
|
+
export { default as Boundary } from "./Boundary";
|
|
9
|
+
export * from "./constant";
|
|
10
|
+
export { default as ContentWithQuestion } from "./ContentWithQuestion";
|
|
11
|
+
export { default as Dialog } from "./Dialog";
|
|
12
|
+
export { default as DocDialog } from "./DocDialog";
|
|
13
|
+
export { default as FullscreenBox } from "./FullscreenBox";
|
|
14
|
+
export { default as GraphToolbar } from "./GraphToolbar";
|
|
15
|
+
export { default as Highlight } from "./Highlight";
|
|
16
|
+
export { default as IconFont } from "./IconFont";
|
|
17
|
+
export * from "./interface";
|
|
18
|
+
export { default as Login } from "./Login";
|
|
19
|
+
export { default as Lottie } from "./Lottie";
|
|
20
|
+
export { default as NavMenu } from "./NavMenu";
|
|
21
|
+
export { default as PageContainer } from "./PageContainer";
|
|
22
|
+
export { default as Password } from "./Password";
|
|
23
|
+
export { default as Ranger } from "./Ranger";
|
|
24
|
+
export { default as SideTip } from "./SideTip";
|
|
25
|
+
export { default as TaskGraph } from "./TaskGraph";
|
|
26
|
+
export { default as TreeSearch } from "./TreeSearch";
|
|
27
|
+
export { default as Welcome } from "./Welcome";
|
package/es/index.less
ADDED
package/es/interface.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LocaleWrapperProps {
|
|
3
|
+
locale?: any;
|
|
4
|
+
}
|
|
5
|
+
export interface LocaleWrapperInput {
|
|
6
|
+
componentName: string;
|
|
7
|
+
defaultLocale: any;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: ({ componentName, defaultLocale }: LocaleWrapperInput) => <BaseProps extends LocaleWrapperProps>(BaseComponent: React.ComponentType<BaseProps>) => any;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var _excluded = ["locale", "forwardedRef"];
|
|
2
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
7
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
10
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
11
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
13
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
15
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
16
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
17
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
18
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
|
+
import { ConfigProvider } from '@oceanbase/design';
|
|
22
|
+
import hoistNonReactStatic from 'hoist-non-react-statics';
|
|
23
|
+
import React from 'react';
|
|
24
|
+
export default (function (_ref) {
|
|
25
|
+
var componentName = _ref.componentName,
|
|
26
|
+
defaultLocale = _ref.defaultLocale;
|
|
27
|
+
return function (BaseComponent) {
|
|
28
|
+
var Hoc = /*#__PURE__*/function (_React$Component) {
|
|
29
|
+
_inherits(Hoc, _React$Component);
|
|
30
|
+
var _super = _createSuper(Hoc);
|
|
31
|
+
function Hoc() {
|
|
32
|
+
_classCallCheck(this, Hoc);
|
|
33
|
+
return _super.apply(this, arguments);
|
|
34
|
+
}
|
|
35
|
+
_createClass(Hoc, [{
|
|
36
|
+
key: "render",
|
|
37
|
+
value: function render() {
|
|
38
|
+
var _process$env$NODE_ENV;
|
|
39
|
+
var _this$props = this.props,
|
|
40
|
+
customLocale = _this$props.locale,
|
|
41
|
+
forwardedRef = _this$props.forwardedRef,
|
|
42
|
+
newProps = _objectWithoutProperties(_this$props, _excluded);
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
var antLocale = this.context.locale;
|
|
45
|
+
var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
|
|
46
|
+
var localeData = _objectSpread(_objectSpread({}, defaultLocale), localeFromContext || {});
|
|
47
|
+
return /*#__PURE__*/React.createElement(BaseComponent, _extends({
|
|
48
|
+
ref: forwardedRef,
|
|
49
|
+
theme: {
|
|
50
|
+
hashed: ((_process$env$NODE_ENV = process.env.NODE_ENV) === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test'
|
|
51
|
+
},
|
|
52
|
+
locale: _objectSpread(_objectSpread({}, localeData), customLocale)
|
|
53
|
+
}, newProps));
|
|
54
|
+
}
|
|
55
|
+
}]);
|
|
56
|
+
return Hoc;
|
|
57
|
+
}(React.Component); // 高阶组件需要转发ref
|
|
58
|
+
// 参考: https://zh-hans.reactjs.org/docs/forwarding-refs.html#forwarding-refs-in-higher-order-components
|
|
59
|
+
_defineProperty(Hoc, "displayName", "LocaleWrapper(".concat(BaseComponent.name, ")"));
|
|
60
|
+
_defineProperty(Hoc, "WrappedComponent", BaseComponent);
|
|
61
|
+
_defineProperty(Hoc, "contextType", ConfigProvider.ConfigContext);
|
|
62
|
+
var ForwardComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
63
|
+
return /*#__PURE__*/React.createElement(Hoc, _extends({}, props, {
|
|
64
|
+
forwardedRef: ref
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
return hoistNonReactStatic(ForwardComponent, BaseComponent);
|
|
68
|
+
};
|
|
69
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
import antdEnUS from 'antd/es/locale/en_US';
|
|
8
|
+
import BasicLayout from "../BasicLayout/locale/en-US";
|
|
9
|
+
import BatchOperationBar from "../BatchOperationBar/locale/en-US";
|
|
10
|
+
import Boundary from "../Boundary/locale/en-US";
|
|
11
|
+
import Dialog from "../Dialog/locale/en-US";
|
|
12
|
+
import DocDialog from "../DocDialog/locale/en-US";
|
|
13
|
+
import FullscreenBox from "../FullscreenBox/locale/en-US";
|
|
14
|
+
import GraphToolbar from "../GraphToolbar/locale/en-US";
|
|
15
|
+
import Login from "../Login/locale/en-US";
|
|
16
|
+
import PageContainer from "../PageContainer/locale/en-US";
|
|
17
|
+
import Password from "../Password/locale/en-US";
|
|
18
|
+
import Ranger from "../Ranger/locale/en-US";
|
|
19
|
+
import SideTip from "../SideTip/locale/en-US";
|
|
20
|
+
import TaskGraph from "../TaskGraph/locale/en-US";
|
|
21
|
+
import Welcome from "../Welcome/locale/en-US";
|
|
22
|
+
export default _objectSpread(_objectSpread({}, antdEnUS), {}, {
|
|
23
|
+
// 业务组件
|
|
24
|
+
BasicLayout: BasicLayout,
|
|
25
|
+
PageContainer: PageContainer,
|
|
26
|
+
Login: Login,
|
|
27
|
+
Welcome: Welcome,
|
|
28
|
+
GraphToolbar: GraphToolbar,
|
|
29
|
+
TaskGraph: TaskGraph,
|
|
30
|
+
Ranger: Ranger,
|
|
31
|
+
Password: Password,
|
|
32
|
+
Boundary: Boundary,
|
|
33
|
+
Dialog: Dialog,
|
|
34
|
+
SideTip: SideTip,
|
|
35
|
+
DocDialog: DocDialog,
|
|
36
|
+
FullscreenBox: FullscreenBox,
|
|
37
|
+
BatchOperationBar: BatchOperationBar
|
|
38
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
import antdZhCN from 'antd/es/locale/zh_CN';
|
|
8
|
+
import BasicLayout from "../BasicLayout/locale/zh-CN";
|
|
9
|
+
import BatchOperationBar from "../BatchOperationBar/locale/zh-CN";
|
|
10
|
+
import Dialog from "../Dialog/locale/zh-CN";
|
|
11
|
+
import DocDialog from "../DocDialog/locale/zh-CN";
|
|
12
|
+
import FullscreenBox from "../FullscreenBox/locale/zh-CN";
|
|
13
|
+
import GraphToolbar from "../GraphToolbar/locale/zh-CN";
|
|
14
|
+
import Highlight from "../Highlight/locale/zh-CN";
|
|
15
|
+
import Login from "../Login/locale/zh-CN";
|
|
16
|
+
import PageContainer from "../PageContainer/locale/zh-CN";
|
|
17
|
+
import { default as Boundary, default as Password } from "../Password/locale/zh-CN";
|
|
18
|
+
import Ranger from "../Ranger/locale/zh-CN";
|
|
19
|
+
import SideTip from "../SideTip/locale/zh-CN";
|
|
20
|
+
import TaskGraph from "../TaskGraph/locale/zh-CN";
|
|
21
|
+
import Welcome from "../Welcome/locale/zh-CN";
|
|
22
|
+
export default _objectSpread(_objectSpread({}, antdZhCN), {}, {
|
|
23
|
+
// 业务组件
|
|
24
|
+
BasicLayout: BasicLayout,
|
|
25
|
+
PageContainer: PageContainer,
|
|
26
|
+
Login: Login,
|
|
27
|
+
Welcome: Welcome,
|
|
28
|
+
GraphToolbar: GraphToolbar,
|
|
29
|
+
TaskGraph: TaskGraph,
|
|
30
|
+
Ranger: Ranger,
|
|
31
|
+
Password: Password,
|
|
32
|
+
Boundary: Boundary,
|
|
33
|
+
Dialog: Dialog,
|
|
34
|
+
SideTip: SideTip,
|
|
35
|
+
DocDialog: DocDialog,
|
|
36
|
+
Highlight: Highlight,
|
|
37
|
+
FullscreenBox: FullscreenBox,
|
|
38
|
+
BatchOperationBar: BatchOperationBar
|
|
39
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
import antdZhTW from 'antd/es/locale/zh_TW';
|
|
8
|
+
import BasicLayout from "../BasicLayout/locale/zh-TW";
|
|
9
|
+
import BatchOperationBar from "../BatchOperationBar/locale/zh-TW";
|
|
10
|
+
import Dialog from "../Dialog/locale/zh-TW";
|
|
11
|
+
import DocDialog from "../DocDialog/locale/zh-TW";
|
|
12
|
+
import GraphToolbar from "../GraphToolbar/locale/zh-TW";
|
|
13
|
+
import Login from "../Login/locale/zh-TW";
|
|
14
|
+
import PageContainer from "../PageContainer/locale/zh-TW";
|
|
15
|
+
import { default as Boundary, default as Password } from "../Password/locale/zh-TW";
|
|
16
|
+
import Ranger from "../Ranger/locale/zh-TW";
|
|
17
|
+
import TaskGraph from "../TaskGraph/locale/zh-TW";
|
|
18
|
+
import Welcome from "../Welcome/locale/zh-TW";
|
|
19
|
+
export default _objectSpread(_objectSpread({}, antdZhTW), {}, {
|
|
20
|
+
// 业务组件
|
|
21
|
+
BasicLayout: BasicLayout,
|
|
22
|
+
PageContainer: PageContainer,
|
|
23
|
+
Login: Login,
|
|
24
|
+
Welcome: Welcome,
|
|
25
|
+
GraphToolbar: GraphToolbar,
|
|
26
|
+
TaskGraph: TaskGraph,
|
|
27
|
+
Ranger: Ranger,
|
|
28
|
+
Password: Password,
|
|
29
|
+
Boundary: Boundary,
|
|
30
|
+
Dialog: Dialog,
|
|
31
|
+
DocDialog: DocDialog,
|
|
32
|
+
BatchOperationBar: BatchOperationBar
|
|
33
|
+
});
|
package/es/variable.less
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@import '~@oceanbase/design/es/theme/index.less';
|
|
2
|
+
|
|
3
|
+
// 限制最大宽度,避免页面被无限拉伸
|
|
4
|
+
// 暂时去除最大宽度限制
|
|
5
|
+
@maxWidth: 8192px;
|
|
6
|
+
@prefixCls: ant;
|
|
7
|
+
@iconPrefixCls: anticon;
|
|
8
|
+
|
|
9
|
+
// 边框渐变
|
|
10
|
+
.border-gradient
|
|
11
|
+
(
|
|
12
|
+
// 背景色,默认为透明色
|
|
13
|
+
@background-color: transparent,
|
|
14
|
+
// 边框色
|
|
15
|
+
@border-color,
|
|
16
|
+
// 边框宽度
|
|
17
|
+
@border-width: 1px,
|
|
18
|
+
// 边框样式
|
|
19
|
+
@border-style: solid,
|
|
20
|
+
// 边框圆角
|
|
21
|
+
@border-radius: 0px
|
|
22
|
+
) {
|
|
23
|
+
background-image: @background-color, @border-color;
|
|
24
|
+
background-clip: padding-box, border-box;
|
|
25
|
+
background-origin: padding-box, border-box;
|
|
26
|
+
border: @border-width @border-style transparent;
|
|
27
|
+
border-radius: @border-radius;
|
|
28
|
+
transition: border-width 0.3s;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes activeGradientAnimation {
|
|
32
|
+
0% {
|
|
33
|
+
background-repeat: no-repeat;
|
|
34
|
+
background-size: 0% 100%;
|
|
35
|
+
}
|
|
36
|
+
100% {
|
|
37
|
+
background-repeat: no-repeat;
|
|
38
|
+
background-size: 100% 100%;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@keyframes selectedGradientAnimation {
|
|
43
|
+
0% {
|
|
44
|
+
background-repeat: no-repeat;
|
|
45
|
+
background-size: 0% 100%;
|
|
46
|
+
// 选中态有圆角渐变动画
|
|
47
|
+
border-radius: 0;
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
background-repeat: no-repeat;
|
|
51
|
+
background-size: 100% 100%;
|
|
52
|
+
border-radius: 8px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BaseProps } from './Item';
|
|
3
|
+
export interface GroupProps {
|
|
4
|
+
size?: number;
|
|
5
|
+
dropDownPlacement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
6
|
+
children: React.ReactElement<BaseProps> | React.ReactElement<BaseProps>[];
|
|
7
|
+
shouldVisible?: (key: string) => boolean;
|
|
8
|
+
shouldDisabled?: (key: string) => boolean;
|
|
9
|
+
enableLoading?: boolean;
|
|
10
|
+
/** 更多操作的自定义展示 */
|
|
11
|
+
moreText?: string | React.ReactElement;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: ({ size, children, dropDownPlacement, shouldVisible, shouldDisabled, enableLoading, moreText, }: GroupProps) => React.JSX.Element;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/Action/Group.tsx
|
|
30
|
+
var Group_exports = {};
|
|
31
|
+
__export(Group_exports, {
|
|
32
|
+
default: () => Group_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Group_exports);
|
|
35
|
+
var import_icons = require("@ant-design/icons");
|
|
36
|
+
var import_design = require("@oceanbase/design");
|
|
37
|
+
var import_lodash = require("lodash");
|
|
38
|
+
var import_react = __toESM(require("react"));
|
|
39
|
+
var getOrder = ({ type, fixed }) => {
|
|
40
|
+
const ORDER_SET = { primary: 3, fixed: 2, default: 0 };
|
|
41
|
+
let order = ORDER_SET.default;
|
|
42
|
+
if (type === "primary") {
|
|
43
|
+
order += ORDER_SET.primary;
|
|
44
|
+
}
|
|
45
|
+
if (fixed) {
|
|
46
|
+
order += ORDER_SET.fixed;
|
|
47
|
+
}
|
|
48
|
+
return order;
|
|
49
|
+
};
|
|
50
|
+
var Group_default = ({
|
|
51
|
+
size = 3,
|
|
52
|
+
children,
|
|
53
|
+
dropDownPlacement,
|
|
54
|
+
shouldVisible,
|
|
55
|
+
shouldDisabled,
|
|
56
|
+
enableLoading,
|
|
57
|
+
moreText
|
|
58
|
+
}) => {
|
|
59
|
+
const visibleActions = Array.isArray(children) ? children.filter((c) => {
|
|
60
|
+
if ((0, import_lodash.isBoolean)(c.props.visible) && shouldVisible)
|
|
61
|
+
return c.props.visible && shouldVisible(c.key);
|
|
62
|
+
if ((0, import_lodash.isBoolean)(c.props.visible))
|
|
63
|
+
return c.props.visible;
|
|
64
|
+
else if (shouldVisible)
|
|
65
|
+
return shouldVisible(c.key);
|
|
66
|
+
return true;
|
|
67
|
+
}) : [children];
|
|
68
|
+
const visibleActionsSort = visibleActions.slice(0);
|
|
69
|
+
visibleActionsSort.sort((a, b) => {
|
|
70
|
+
const orderA = getOrder(a.props);
|
|
71
|
+
const orderB = getOrder(b.props);
|
|
72
|
+
return orderB - orderA;
|
|
73
|
+
});
|
|
74
|
+
const fixedSize = visibleActionsSort.filter(
|
|
75
|
+
(action) => action.props.type === "primary" || action.props.fixed
|
|
76
|
+
).length;
|
|
77
|
+
const realSize = (0, import_lodash.max)([fixedSize, size]);
|
|
78
|
+
const mainActions = visibleActionsSort.slice(0, realSize);
|
|
79
|
+
const ellipsisActions = visibleActionsSort.slice(realSize);
|
|
80
|
+
let ellipsisType = "link";
|
|
81
|
+
if (visibleActionsSort.every((action) => action.type.__DISPLAY_NAME === "button")) {
|
|
82
|
+
ellipsisType = "default";
|
|
83
|
+
}
|
|
84
|
+
const getDefaultDisabled = (key) => (shouldDisabled == null ? void 0 : shouldDisabled(key)) ?? false;
|
|
85
|
+
let moreDom;
|
|
86
|
+
if (ellipsisType === "default") {
|
|
87
|
+
moreDom = /* @__PURE__ */ import_react.default.createElement(import_design.Button, { type: ellipsisType }, moreText ?? /* @__PURE__ */ import_react.default.createElement(import_icons.EllipsisOutlined, { style: { cursor: "pointer" } }));
|
|
88
|
+
} else {
|
|
89
|
+
moreDom = /* @__PURE__ */ import_react.default.createElement(import_design.Typography.Link, null, moreText ?? /* @__PURE__ */ import_react.default.createElement(import_icons.EllipsisOutlined, { style: { cursor: "pointer" } }));
|
|
90
|
+
}
|
|
91
|
+
return /* @__PURE__ */ import_react.default.createElement(import_design.Space, { size: 8 }, mainActions.map((action) => {
|
|
92
|
+
return import_react.default.cloneElement(action, {
|
|
93
|
+
...action.props,
|
|
94
|
+
enableLoading,
|
|
95
|
+
disabled: (0, import_lodash.isBoolean)(action.props.disabled) ? action.props.disabled : getDefaultDisabled(action.key)
|
|
96
|
+
});
|
|
97
|
+
}), ellipsisActions.length > 0 && /* @__PURE__ */ import_react.default.createElement(
|
|
98
|
+
import_design.Dropdown,
|
|
99
|
+
{
|
|
100
|
+
placement: dropDownPlacement,
|
|
101
|
+
overlay: /* @__PURE__ */ import_react.default.createElement(import_design.Menu, null, ellipsisActions.map((action, index) => {
|
|
102
|
+
const actionKey = action.key;
|
|
103
|
+
let disabled = false;
|
|
104
|
+
if ((0, import_lodash.isBoolean)(action.props.disabled))
|
|
105
|
+
disabled = action.props.disabled;
|
|
106
|
+
else if (shouldDisabled)
|
|
107
|
+
disabled = shouldDisabled(action.key);
|
|
108
|
+
const actionDisabled = action.props.loading || ((0, import_lodash.isBoolean)(action.props.disabled) ? action.props.disabled : getDefaultDisabled(action.key));
|
|
109
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
110
|
+
import_design.Menu.Item,
|
|
111
|
+
{
|
|
112
|
+
key: actionKey ?? index.toString(),
|
|
113
|
+
onClick: action.props.onClick,
|
|
114
|
+
style: { minWidth: 120 },
|
|
115
|
+
...(0, import_lodash.omit)(action.props, "disabled"),
|
|
116
|
+
disabled: actionDisabled
|
|
117
|
+
},
|
|
118
|
+
/* @__PURE__ */ import_react.default.createElement(import_design.Tooltip, { title: action.props.tooltip }, action.props.loading && /* @__PURE__ */ import_react.default.createElement(import_icons.LoadingOutlined, null), " ", action.props.children)
|
|
119
|
+
);
|
|
120
|
+
}))
|
|
121
|
+
},
|
|
122
|
+
moreDom
|
|
123
|
+
));
|
|
124
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BaseProps {
|
|
3
|
+
/** 是否显示 */
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onClick?: () => Promise<void> | void;
|
|
7
|
+
children?: React.ReactElement | string;
|
|
8
|
+
type?: 'default' | 'primary';
|
|
9
|
+
className?: string;
|
|
10
|
+
enableLoading?: boolean;
|
|
11
|
+
tooltip?: string;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
danger?: boolean;
|
|
14
|
+
/** 不会被隐藏 */
|
|
15
|
+
fixed?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class ActionButton extends React.PureComponent<BaseProps> {
|
|
18
|
+
static __DISPLAY_NAME: string;
|
|
19
|
+
state: {
|
|
20
|
+
loading: boolean;
|
|
21
|
+
};
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
|
+
}
|
|
24
|
+
export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
25
|
+
static __DISPLAY_NAME: string;
|
|
26
|
+
state: {
|
|
27
|
+
loading: boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
};
|
|
30
|
+
render(): React.JSX.Element;
|
|
31
|
+
}
|