@oceanbase/ui 1.0.0-alpha.0 → 1.0.0-alpha.10
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/Inter-Medium.ea234620.woff2 +0 -0
- package/dist/static/Inter-Regular.34ba43c9.woff2 +0 -0
- package/dist/static/Inter-SemiBold.95439fb4.woff2 +0 -0
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1 -1
- package/es/Action/Group.js +121 -15
- package/es/Action/Item.d.ts +6 -15
- package/es/Action/Item.js +85 -128
- package/es/Action/index.d.ts +6 -3
- package/es/Action/style/index.d.ts +2 -2
- package/es/Action/style/index.js +8 -4
- package/es/BasicLayout/locale/ja-JP.d.ts +13 -0
- package/es/BasicLayout/locale/ja-JP.js +12 -0
- package/es/BasicLayout/style/index.js +35 -23
- package/es/BatchOperationBar/index.d.ts +0 -1
- package/es/BatchOperationBar/index.js +17 -13
- package/es/BatchOperationBar/locale/ja-JP.d.ts +7 -0
- package/es/BatchOperationBar/locale/ja-JP.js +6 -0
- package/es/BatchOperationBar/style/index.d.ts +10 -0
- package/es/BatchOperationBar/style/index.js +51 -0
- package/es/Boundary/Components/Code.js +11 -5
- package/es/Boundary/Components/Exception.js +85 -74
- package/es/Boundary/Components/Function.js +11 -5
- package/es/Boundary/index.d.ts +0 -1
- package/es/Boundary/index.js +0 -1
- package/es/Boundary/locale/en-US.js +1 -1
- package/es/Boundary/locale/ja-JP.d.ts +11 -0
- package/es/Boundary/locale/ja-JP.js +10 -0
- package/es/Boundary/locale/zh-CN.js +1 -1
- package/es/Boundary/locale/zh-TW.js +1 -1
- package/es/Boundary/style/index.d.ts +10 -0
- package/es/Boundary/style/index.js +46 -0
- package/es/ContentWithIcon/index.d.ts +0 -1
- package/es/ContentWithIcon/index.js +29 -29
- package/es/ContentWithIcon/style/index.d.ts +10 -0
- package/es/ContentWithIcon/style/index.js +26 -0
- package/es/DateRanger/PickerPanel.js +5 -4
- package/es/DateRanger/Ranger.d.ts +4 -1
- package/es/DateRanger/Ranger.js +168 -19
- package/es/DateRanger/constant/index.js +1 -1
- package/es/DateRanger/locale/ja-JP.d.ts +56 -0
- package/es/DateRanger/locale/ja-JP.js +20 -0
- package/es/DateRanger/style/index.d.ts +10 -0
- package/es/DateRanger/style/index.js +126 -0
- package/es/Dialog/Anchor.d.ts +2 -10
- package/es/Dialog/Anchor.js +67 -96
- package/es/Dialog/index.d.ts +0 -1
- package/es/Dialog/index.js +537 -578
- package/es/Dialog/locale/ja-JP.d.ts +5 -0
- package/es/Dialog/locale/ja-JP.js +4 -0
- package/es/Dialog/locale/zh-CN.js +1 -1
- package/es/Dialog/locale/zh-TW.js +1 -1
- package/es/Dialog/style/index.d.ts +10 -0
- package/es/Dialog/style/index.js +97 -0
- package/es/DocDialog/locale/ja-JP.d.ts +2 -0
- package/es/DocDialog/locale/ja-JP.js +1 -0
- package/es/FooterToolbar/style/index.d.ts +0 -2
- package/es/FooterToolbar/style/index.js +7 -13
- package/es/FullscreenBox/index.d.ts +0 -1
- package/es/FullscreenBox/index.js +46 -37
- package/es/FullscreenBox/locale/ja-JP.d.ts +2 -0
- package/es/FullscreenBox/locale/ja-JP.js +1 -0
- package/es/FullscreenBox/style/index.d.ts +10 -0
- package/es/FullscreenBox/style/index.js +53 -0
- package/es/Highlight/DiffView/index.d.ts +0 -1
- package/es/Highlight/DiffView/index.js +5 -5
- package/es/Highlight/JsonView.d.ts +0 -1
- package/es/Highlight/JsonView.js +5 -5
- package/es/Highlight/index.d.ts +0 -1
- package/es/Highlight/index.js +23 -23
- package/es/Highlight/locale/ja-JP.d.ts +4 -0
- package/es/Highlight/locale/ja-JP.js +3 -0
- package/es/Highlight/style/index.d.ts +10 -0
- package/es/Highlight/style/index.js +213 -0
- package/es/LocaleDropdown/index.js +4 -2
- package/es/Login/ActivateForm.d.ts +0 -1
- package/es/Login/ActivateForm.js +12 -9
- package/es/Login/LoginForm.d.ts +0 -1
- package/es/Login/LoginForm.js +20 -15
- package/es/Login/RegisterForm.d.ts +0 -1
- package/es/Login/RegisterForm.js +14 -11
- package/es/Login/index.d.ts +0 -1
- package/es/Login/index.js +24 -22
- package/es/Login/locale/ja-JP.d.ts +28 -0
- package/es/Login/locale/ja-JP.js +27 -0
- package/es/Login/locale/zh-CN.js +2 -2
- package/es/Login/style/index.d.ts +10 -0
- package/es/Login/style/index.js +182 -0
- package/es/NavMenu/index.d.ts +1 -2
- package/es/NavMenu/index.js +11 -8
- package/es/NavMenu/style/index.d.ts +10 -0
- package/es/NavMenu/style/index.js +47 -0
- package/es/PageContainer/index.d.ts +2 -0
- package/es/PageContainer/index.js +102 -25
- package/es/PageContainer/locale/en-US.d.ts +1 -0
- package/es/PageContainer/locale/en-US.js +2 -1
- package/es/PageContainer/locale/ja-JP.d.ts +5 -0
- package/es/PageContainer/locale/ja-JP.js +4 -0
- package/es/PageContainer/locale/zh-CN.d.ts +1 -0
- package/es/PageContainer/locale/zh-CN.js +2 -1
- package/es/PageContainer/locale/zh-TW.d.ts +1 -0
- package/es/PageContainer/locale/zh-TW.js +2 -1
- package/es/PageContainer/style/index.js +41 -16
- package/es/Password/index.js +1 -1
- package/es/Password/locale/ja-JP.d.ts +13 -0
- package/es/Password/locale/ja-JP.js +12 -0
- package/es/ProCard/index.d.ts +2 -1
- package/es/ProCard/index.js +20 -8
- package/es/ProCard/style/index.d.ts +2 -2
- package/es/ProCard/style/index.js +13 -5
- package/es/ProTable/index.d.ts +1 -1
- package/es/ProTable/index.js +23 -8
- package/es/ProTable/style/index.d.ts +2 -2
- package/es/ProTable/style/index.js +12 -5
- package/es/Ranger/QuickPicker.js +8 -4
- package/es/Ranger/Ranger.d.ts +0 -1
- package/es/Ranger/Ranger.js +12 -9
- package/es/Ranger/locale/ja-JP.d.ts +28 -0
- package/es/Ranger/locale/ja-JP.js +29 -0
- package/es/Ranger/style/index.d.ts +10 -0
- package/es/Ranger/style/index.js +44 -0
- package/es/SideTip/index.d.ts +0 -1
- package/es/SideTip/index.js +24 -22
- package/es/SideTip/locale/ja-JP.d.ts +2 -0
- package/es/SideTip/locale/ja-JP.js +1 -0
- package/es/SideTip/style/index.d.ts +10 -0
- package/es/SideTip/style/index.js +162 -0
- package/es/TagSelect/Group.d.ts +6 -6
- package/es/TagSelect/Group.js +5 -3
- package/es/TagSelect/Item.js +5 -3
- package/es/Welcome/index.d.ts +0 -1
- package/es/Welcome/index.js +30 -26
- package/es/Welcome/locale/ja-JP.d.ts +5 -0
- package/es/Welcome/locale/ja-JP.js +4 -0
- package/es/Welcome/step/style/index.d.ts +10 -0
- package/es/Welcome/step/style/index.js +44 -0
- package/es/Welcome/step.d.ts +0 -1
- package/es/Welcome/step.js +17 -14
- package/es/Welcome/style/index.d.ts +10 -0
- package/es/Welcome/style/index.js +141 -0
- package/es/_util/genComponentStyleHook.d.ts +4 -3
- package/es/_util/genComponentStyleHook.js +1 -1
- package/es/index.d.ts +0 -5
- package/es/index.js +0 -3
- package/es/locale/en-US.js +0 -4
- package/es/locale/ja-JP.d.ts +3 -0
- package/es/locale/ja-JP.js +38 -0
- package/es/locale/zh-CN.js +0 -4
- package/es/locale/zh-TW.js +0 -4
- package/lib/Action/Group.js +122 -46
- package/lib/Action/Item.d.ts +6 -15
- package/lib/Action/Item.js +66 -76
- package/lib/Action/index.d.ts +6 -3
- package/lib/Action/style/index.d.ts +2 -2
- package/lib/Action/style/index.js +16 -1
- package/lib/BackgroundTaskManager/RefreshMan.js +3 -12
- package/lib/BackgroundTaskManager/index.js +3 -12
- package/lib/BasicLayout/Header.js +120 -62
- package/lib/BasicLayout/index.js +166 -143
- package/lib/BasicLayout/locale/ja-JP.d.ts +13 -0
- package/lib/BasicLayout/locale/ja-JP.js +36 -0
- package/lib/BasicLayout/style/index.js +32 -23
- package/lib/BatchOperationBar/index.d.ts +0 -1
- package/lib/BatchOperationBar/index.js +70 -51
- package/lib/BatchOperationBar/locale/ja-JP.d.ts +7 -0
- package/lib/{TaskGraph/locale/en-US.js → BatchOperationBar/locale/ja-JP.js} +10 -16
- package/lib/BatchOperationBar/style/index.d.ts +10 -0
- package/lib/BatchOperationBar/style/index.js +82 -0
- package/lib/Boundary/Components/Code.js +25 -13
- package/lib/Boundary/Components/Exception.js +70 -49
- package/lib/Boundary/Components/Function.js +20 -8
- package/lib/Boundary/index.d.ts +0 -1
- package/lib/Boundary/index.js +0 -1
- package/lib/Boundary/locale/en-US.js +1 -1
- package/lib/Boundary/locale/ja-JP.d.ts +11 -0
- package/lib/Boundary/locale/ja-JP.js +34 -0
- package/lib/Boundary/locale/zh-CN.js +1 -1
- package/lib/Boundary/locale/zh-TW.js +1 -1
- package/lib/Boundary/style/index.d.ts +10 -0
- package/lib/Boundary/style/index.js +74 -0
- package/lib/ContentWithIcon/index.d.ts +0 -1
- package/lib/ContentWithIcon/index.js +44 -33
- package/lib/ContentWithIcon/style/index.d.ts +10 -0
- package/lib/ContentWithIcon/style/index.js +57 -0
- package/lib/ContentWithQuestion/index.js +8 -3
- package/lib/DateRanger/PickerPanel.js +237 -219
- package/lib/DateRanger/Ranger.d.ts +4 -1
- package/lib/DateRanger/Ranger.js +413 -239
- package/lib/DateRanger/constant/index.js +1 -1
- package/lib/DateRanger/locale/ja-JP.d.ts +56 -0
- package/lib/DateRanger/locale/ja-JP.js +49 -0
- package/lib/DateRanger/style/index.d.ts +10 -0
- package/lib/DateRanger/style/index.js +195 -0
- package/lib/Dialog/Anchor.d.ts +2 -10
- package/lib/Dialog/Anchor.js +59 -58
- package/lib/Dialog/EventProxy.js +3 -12
- package/lib/Dialog/index.d.ts +0 -1
- package/lib/Dialog/index.js +514 -466
- package/lib/Dialog/locale/ja-JP.d.ts +5 -0
- package/lib/{GraphToolbar/locale/en-US.js → Dialog/locale/ja-JP.js} +8 -12
- package/lib/Dialog/locale/zh-CN.js +1 -1
- package/lib/Dialog/locale/zh-TW.js +1 -1
- package/lib/Dialog/style/index.d.ts +10 -0
- package/lib/Dialog/style/index.js +135 -0
- package/lib/DocDialog/index.js +3 -2
- package/lib/DocDialog/locale/ja-JP.d.ts +2 -0
- package/lib/DocDialog/locale/ja-JP.js +25 -0
- package/lib/FooterToolbar/index.js +3 -2
- package/lib/FooterToolbar/style/index.d.ts +0 -2
- package/lib/FooterToolbar/style/index.js +7 -18
- package/lib/FullscreenBox/index.d.ts +0 -1
- package/lib/FullscreenBox/index.js +51 -33
- package/lib/FullscreenBox/locale/ja-JP.d.ts +2 -0
- package/lib/FullscreenBox/locale/ja-JP.js +25 -0
- package/lib/FullscreenBox/style/index.d.ts +10 -0
- package/lib/FullscreenBox/style/index.js +86 -0
- package/lib/Highlight/DiffView/DiffCells.js +17 -10
- package/lib/Highlight/DiffView/index.d.ts +0 -1
- package/lib/Highlight/DiffView/index.js +38 -34
- package/lib/Highlight/HighlightCell.js +13 -10
- package/lib/Highlight/JsonView.d.ts +0 -1
- package/lib/Highlight/JsonView.js +18 -17
- package/lib/Highlight/index.d.ts +0 -1
- package/lib/Highlight/index.js +60 -52
- package/lib/Highlight/locale/ja-JP.d.ts +4 -0
- package/lib/{GraphToolbar/locale/zh-CN.js → Highlight/locale/ja-JP.js} +7 -12
- package/lib/Highlight/style/index.d.ts +10 -0
- package/lib/Highlight/style/index.js +293 -0
- package/lib/IconFont/index.js +2 -12
- package/lib/LightFilter/index.js +3 -2
- package/lib/LocaleDropdown/index.js +15 -21
- package/lib/Login/ActivateForm.d.ts +0 -1
- package/lib/Login/ActivateForm.js +65 -64
- package/lib/Login/LoginForm.d.ts +0 -1
- package/lib/Login/LoginForm.js +134 -113
- package/lib/Login/RegisterForm.d.ts +0 -1
- package/lib/Login/RegisterForm.js +90 -89
- package/lib/Login/index.d.ts +0 -1
- package/lib/Login/index.js +102 -72
- package/lib/Login/locale/ja-JP.d.ts +28 -0
- package/lib/Login/locale/ja-JP.js +51 -0
- package/lib/Login/locale/zh-CN.js +2 -2
- package/lib/Login/style/index.d.ts +10 -0
- package/lib/Login/style/index.js +267 -0
- package/lib/NavMenu/index.d.ts +1 -2
- package/lib/NavMenu/index.js +22 -18
- package/lib/NavMenu/style/index.d.ts +10 -0
- package/lib/NavMenu/style/index.js +78 -0
- package/lib/PageContainer/ItemRender.js +5 -5
- package/lib/PageContainer/index.d.ts +2 -0
- package/lib/PageContainer/index.js +86 -10
- package/lib/PageContainer/locale/en-US.d.ts +1 -0
- package/lib/PageContainer/locale/en-US.js +2 -1
- package/lib/PageContainer/locale/ja-JP.d.ts +5 -0
- package/lib/{GraphToolbar/locale/zh-TW.js → PageContainer/locale/ja-JP.js} +8 -12
- package/lib/PageContainer/locale/zh-CN.d.ts +1 -0
- package/lib/PageContainer/locale/zh-CN.js +2 -1
- package/lib/PageContainer/locale/zh-TW.d.ts +1 -0
- package/lib/PageContainer/locale/zh-TW.js +2 -1
- package/lib/PageContainer/style/index.js +44 -13
- package/lib/PageLoading/index.js +6 -16
- package/lib/Password/Content.js +38 -42
- package/lib/Password/index.js +83 -68
- package/lib/Password/locale/ja-JP.d.ts +13 -0
- package/lib/Password/locale/ja-JP.js +36 -0
- package/lib/ProCard/index.d.ts +2 -1
- package/lib/ProCard/index.js +22 -8
- package/lib/ProCard/style/index.d.ts +2 -2
- package/lib/ProCard/style/index.js +18 -3
- package/lib/ProTable/index.d.ts +1 -1
- package/lib/ProTable/index.js +22 -10
- package/lib/ProTable/style/index.d.ts +2 -2
- package/lib/ProTable/style/index.js +18 -2
- package/lib/Ranger/QuickPicker.js +28 -17
- package/lib/Ranger/Ranger.d.ts +0 -1
- package/lib/Ranger/Ranger.js +49 -43
- package/lib/Ranger/locale/ja-JP.d.ts +28 -0
- package/lib/Ranger/locale/ja-JP.js +53 -0
- package/lib/Ranger/style/index.d.ts +10 -0
- package/lib/Ranger/style/index.js +82 -0
- package/lib/SideTip/Dragger.js +5 -4
- package/lib/SideTip/IconLoading.js +25 -25
- package/lib/SideTip/index.d.ts +0 -1
- package/lib/SideTip/index.js +55 -38
- package/lib/SideTip/locale/ja-JP.d.ts +2 -0
- package/lib/SideTip/locale/ja-JP.js +25 -0
- package/lib/SideTip/style/index.d.ts +10 -0
- package/lib/SideTip/style/index.js +211 -0
- package/lib/TagSelect/Group.d.ts +6 -6
- package/lib/TagSelect/Group.js +12 -7
- package/lib/TagSelect/Item.js +25 -20
- package/lib/TreeSearch/index.js +30 -35
- package/lib/Welcome/index.d.ts +0 -1
- package/lib/Welcome/index.js +72 -40
- package/lib/Welcome/locale/ja-JP.d.ts +5 -0
- package/lib/Welcome/locale/ja-JP.js +28 -0
- package/lib/Welcome/step/style/index.d.ts +10 -0
- package/lib/Welcome/step/style/index.js +74 -0
- package/lib/Welcome/step.d.ts +0 -1
- package/lib/Welcome/step.js +18 -7
- package/lib/Welcome/style/index.d.ts +10 -0
- package/lib/Welcome/style/index.js +188 -0
- package/lib/_util/genComponentStyleHook.d.ts +4 -3
- package/lib/_util/genComponentStyleHook.js +1 -1
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -7
- package/lib/locale/LocaleWrapper.js +15 -14
- package/lib/locale/en-US.js +16 -20
- package/lib/locale/ja-JP.d.ts +3 -0
- package/lib/locale/ja-JP.js +67 -0
- package/lib/locale/zh-CN.js +17 -21
- package/lib/locale/zh-TW.js +15 -19
- package/package.json +8 -11
- package/dist/static/Inter.f6bcdfb6.woff2 +0 -0
- package/es/BatchOperationBar/index.less +0 -46
- package/es/BatchOperationBar/index.less.d.ts +0 -15
- package/es/Boundary/index.less +0 -36
- package/es/ContentWithIcon/index.less +0 -21
- package/es/DateRanger/index.less +0 -157
- package/es/Dialog/index.less +0 -116
- package/es/FullscreenBox/index.less +0 -49
- package/es/GraphToolbar/index.d.ts +0 -26
- package/es/GraphToolbar/index.js +0 -146
- package/es/GraphToolbar/index.less +0 -65
- package/es/GraphToolbar/locale/en-US.d.ts +0 -9
- package/es/GraphToolbar/locale/en-US.js +0 -8
- package/es/GraphToolbar/locale/zh-CN.d.ts +0 -9
- package/es/GraphToolbar/locale/zh-CN.js +0 -8
- package/es/GraphToolbar/locale/zh-TW.d.ts +0 -9
- package/es/GraphToolbar/locale/zh-TW.js +0 -8
- package/es/Highlight/index.less +0 -381
- package/es/Login/index.less +0 -268
- package/es/NavMenu/index.less +0 -50
- package/es/Ranger/index.less +0 -57
- package/es/SideTip/index.less +0 -180
- package/es/TaskGraph/Graph.d.ts +0 -24
- package/es/TaskGraph/Graph.js +0 -271
- package/es/TaskGraph/graph.less +0 -23
- package/es/TaskGraph/index.d.ts +0 -16
- package/es/TaskGraph/index.js +0 -178
- package/es/TaskGraph/index.less +0 -117
- package/es/TaskGraph/locale/en-US.d.ts +0 -13
- package/es/TaskGraph/locale/en-US.js +0 -12
- package/es/TaskGraph/locale/zh-CN.d.ts +0 -13
- package/es/TaskGraph/locale/zh-CN.js +0 -12
- package/es/TaskGraph/locale/zh-TW.d.ts +0 -13
- package/es/TaskGraph/locale/zh-TW.js +0 -12
- package/es/TaskGraph/register.d.ts +0 -7
- package/es/TaskGraph/register.js +0 -200
- package/es/Welcome/index.less +0 -185
- package/es/index.less +0 -1
- package/es/variable.less +0 -54
- package/lib/BatchOperationBar/index.less +0 -46
- package/lib/BatchOperationBar/index.less.d.ts +0 -15
- package/lib/Boundary/index.less +0 -36
- package/lib/ContentWithIcon/index.less +0 -21
- package/lib/DateRanger/index.less +0 -157
- package/lib/Dialog/index.less +0 -116
- package/lib/FullscreenBox/index.less +0 -49
- package/lib/GraphToolbar/index.d.ts +0 -26
- package/lib/GraphToolbar/index.js +0 -154
- package/lib/GraphToolbar/index.less +0 -65
- package/lib/GraphToolbar/locale/en-US.d.ts +0 -9
- package/lib/GraphToolbar/locale/zh-CN.d.ts +0 -9
- package/lib/GraphToolbar/locale/zh-TW.d.ts +0 -9
- package/lib/Highlight/index.less +0 -381
- package/lib/Login/index.less +0 -268
- package/lib/NavMenu/index.less +0 -50
- package/lib/Ranger/index.less +0 -57
- package/lib/SideTip/index.less +0 -180
- package/lib/TaskGraph/Graph.d.ts +0 -24
- package/lib/TaskGraph/Graph.js +0 -261
- package/lib/TaskGraph/graph.less +0 -23
- package/lib/TaskGraph/index.d.ts +0 -16
- package/lib/TaskGraph/index.js +0 -164
- package/lib/TaskGraph/index.less +0 -117
- package/lib/TaskGraph/locale/en-US.d.ts +0 -13
- package/lib/TaskGraph/locale/zh-CN.d.ts +0 -13
- package/lib/TaskGraph/locale/zh-CN.js +0 -36
- package/lib/TaskGraph/locale/zh-TW.d.ts +0 -13
- package/lib/TaskGraph/locale/zh-TW.js +0 -36
- package/lib/TaskGraph/register.d.ts +0 -7
- package/lib/TaskGraph/register.js +0 -205
- package/lib/Welcome/index.less +0 -185
- package/lib/index.less +0 -1
- package/lib/variable.less +0 -54
package/lib/Password/index.js
CHANGED
|
@@ -34,12 +34,13 @@ __export(Password_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(Password_exports);
|
|
35
35
|
var import_design = require("@oceanbase/design");
|
|
36
36
|
var import_randexp = __toESM(require("randexp"));
|
|
37
|
-
var import_react =
|
|
37
|
+
var import_react = require("react");
|
|
38
38
|
var import_design2 = require("@oceanbase/design");
|
|
39
39
|
var import_icons = require("@oceanbase/icons");
|
|
40
40
|
var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
|
|
41
41
|
var import_Content = __toESM(require("./Content"));
|
|
42
42
|
var import_zh_CN = __toESM(require("./locale/zh-CN"));
|
|
43
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
44
|
var Password = ({
|
|
44
45
|
value,
|
|
45
46
|
locale,
|
|
@@ -95,81 +96,95 @@ var Password = ({
|
|
|
95
96
|
}
|
|
96
97
|
return getRandomPassword();
|
|
97
98
|
};
|
|
98
|
-
return /* @__PURE__ */
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
placement: "right",
|
|
103
|
-
popupAlign: {
|
|
104
|
-
offset: [48, 0]
|
|
105
|
-
},
|
|
106
|
-
content: /* @__PURE__ */ import_react.default.createElement(
|
|
107
|
-
import_Content.default,
|
|
99
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
100
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { display: "flex" }, children: [
|
|
101
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
102
|
+
import_design.Popover,
|
|
108
103
|
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
104
|
+
trigger: "click",
|
|
105
|
+
placement: "right",
|
|
106
|
+
popupAlign: {
|
|
107
|
+
offset: [16, 0]
|
|
108
|
+
},
|
|
109
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
|
+
import_Content.default,
|
|
111
|
+
{
|
|
112
|
+
isTouched,
|
|
113
|
+
value,
|
|
114
|
+
isValidating,
|
|
115
|
+
rules: newRules,
|
|
116
|
+
fieldError
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
overlayStyle: { maxWidth: 400 },
|
|
120
|
+
overlayInnerStyle: {
|
|
121
|
+
padding: `${token.padding / 2}px ${token.padding}px ${token.padding}px ${token.padding}px`
|
|
122
|
+
},
|
|
123
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
124
|
+
import_design.Input.Password,
|
|
125
|
+
{
|
|
126
|
+
value,
|
|
127
|
+
autoComplete: "new-password",
|
|
128
|
+
onChange: (e) => {
|
|
129
|
+
var _a;
|
|
130
|
+
handleChange((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value);
|
|
131
|
+
},
|
|
132
|
+
placeholder: generatePasswordRegex ? locale.generatePlaceholder : locale.placeholder,
|
|
133
|
+
...restProps
|
|
134
|
+
}
|
|
135
|
+
)
|
|
114
136
|
}
|
|
115
137
|
),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
handleChange((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value);
|
|
129
|
-
},
|
|
130
|
-
placeholder: generatePasswordRegex ? locale.generatePlaceholder : locale.placeholder,
|
|
131
|
-
...restProps
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
), generatePasswordRegex && /* @__PURE__ */ import_react.default.createElement(
|
|
135
|
-
import_design.Button,
|
|
136
|
-
{
|
|
137
|
-
onClick: () => {
|
|
138
|
-
if (generatePassword instanceof Function) {
|
|
139
|
-
handleChange(generatePassword());
|
|
140
|
-
} else {
|
|
141
|
-
handleChange(getRandomPassword());
|
|
138
|
+
generatePasswordRegex && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
139
|
+
import_design.Button,
|
|
140
|
+
{
|
|
141
|
+
onClick: () => {
|
|
142
|
+
if (generatePassword instanceof Function) {
|
|
143
|
+
handleChange(generatePassword());
|
|
144
|
+
} else {
|
|
145
|
+
handleChange(getRandomPassword());
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
style: { marginLeft: 8 },
|
|
149
|
+
children: locale.randomlyGenerate
|
|
142
150
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
)), value && (fieldError == null ? void 0 : fieldError.length) === 0 && /* @__PURE__ */ import_react.default.createElement(
|
|
148
|
-
"div",
|
|
149
|
-
{
|
|
150
|
-
style: {
|
|
151
|
-
fontSize: 14,
|
|
152
|
-
color: token.colorTextTertiary,
|
|
153
|
-
lineHeight: "22px",
|
|
154
|
-
marginTop: token.marginXXS
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
locale.pleaseRememberYourPassword,
|
|
158
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
159
|
-
import_design.Typography.Text,
|
|
151
|
+
)
|
|
152
|
+
] }),
|
|
153
|
+
value && (fieldError == null ? void 0 : fieldError.length) === 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
154
|
+
"div",
|
|
160
155
|
{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
],
|
|
167
|
-
tooltips: ["", locale.copySuccessfully]
|
|
156
|
+
style: {
|
|
157
|
+
fontSize: 14,
|
|
158
|
+
color: token.colorTextTertiary,
|
|
159
|
+
lineHeight: "22px",
|
|
160
|
+
marginTop: token.marginXXS
|
|
168
161
|
},
|
|
169
|
-
|
|
162
|
+
children: [
|
|
163
|
+
locale.pleaseRememberYourPassword,
|
|
164
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
165
|
+
import_design.Typography.Text,
|
|
166
|
+
{
|
|
167
|
+
copyable: {
|
|
168
|
+
text: value,
|
|
169
|
+
icon: [
|
|
170
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Space, { size: token.marginXXS, children: [
|
|
171
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CopyOutlined, {}),
|
|
172
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { children: locale.copyPassword })
|
|
173
|
+
] }, "copy"),
|
|
174
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Space, { size: token.marginXXS, children: [
|
|
175
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CheckOutlined, {}),
|
|
176
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { children: locale.copyPassword })
|
|
177
|
+
] }, "copy-success")
|
|
178
|
+
],
|
|
179
|
+
tooltips: ["", locale.copySuccessfully]
|
|
180
|
+
},
|
|
181
|
+
style: { marginLeft: token.marginXS }
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
]
|
|
170
185
|
}
|
|
171
186
|
)
|
|
172
|
-
)
|
|
187
|
+
] });
|
|
173
188
|
};
|
|
174
189
|
var Password_default = (0, import_LocaleWrapper.default)({
|
|
175
190
|
componentName: "Password",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
lengthRuleMessage: string;
|
|
3
|
+
charRuleMessage: string;
|
|
4
|
+
strengthRuleMessage: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
generatePlaceholder: string;
|
|
7
|
+
randomlyGenerate: string;
|
|
8
|
+
pleaseRememberYourPassword: string;
|
|
9
|
+
copySuccessfully: string;
|
|
10
|
+
copyPassword: string;
|
|
11
|
+
andKeepItProperly: string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/Password/locale/ja-JP.ts
|
|
20
|
+
var ja_JP_exports = {};
|
|
21
|
+
__export(ja_JP_exports, {
|
|
22
|
+
default: () => ja_JP_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(ja_JP_exports);
|
|
25
|
+
var ja_JP_default = {
|
|
26
|
+
lengthRuleMessage: "長さは 8~32 文字",
|
|
27
|
+
charRuleMessage: '英字、数字、および特殊文字(~!@#%^&*_-+= (){}[]:;,.?/`$"<>)のみ使用可能',
|
|
28
|
+
strengthRuleMessage: "大文字・小文字・数字・特殊文字をそれぞれ2文字以上含める必要があります",
|
|
29
|
+
placeholder: "パスワードを入力してください",
|
|
30
|
+
generatePlaceholder: "入力またはランダム生成",
|
|
31
|
+
randomlyGenerate: "ランダム生成",
|
|
32
|
+
pleaseRememberYourPassword: "パスワードを必ず保存してください",
|
|
33
|
+
copySuccessfully: "コピー成功",
|
|
34
|
+
copyPassword: "パスワードをコピーし",
|
|
35
|
+
andKeepItProperly: "適切に保管してください"
|
|
36
|
+
};
|
package/lib/ProCard/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ProCard as AntProCard } from '@ant-design/pro-components';
|
|
2
2
|
import type { ProCardProps } from '@ant-design/pro-components';
|
|
3
3
|
export { ProCardProps };
|
|
4
|
-
|
|
4
|
+
export type ProCardType = typeof AntProCard;
|
|
5
|
+
declare const ProCard: ProCardType;
|
|
5
6
|
export default ProCard;
|
package/lib/ProCard/index.js
CHANGED
|
@@ -32,15 +32,17 @@ __export(ProCard_exports, {
|
|
|
32
32
|
default: () => ProCard_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(ProCard_exports);
|
|
35
|
-
var import_react =
|
|
35
|
+
var import_react = require("react");
|
|
36
36
|
var import_pro_components = require("@ant-design/pro-components");
|
|
37
37
|
var import_design = require("@oceanbase/design");
|
|
38
38
|
var import_util = require("@oceanbase/design/es/_util");
|
|
39
|
-
var
|
|
39
|
+
var import_icons = require("@oceanbase/icons");
|
|
40
40
|
var import_classnames = __toESM(require("classnames"));
|
|
41
41
|
var import_style = __toESM(require("./style"));
|
|
42
|
-
var
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
43
|
var ProCard = ({
|
|
44
|
+
loading,
|
|
45
|
+
bordered,
|
|
44
46
|
ghost,
|
|
45
47
|
title,
|
|
46
48
|
tabs,
|
|
@@ -48,12 +50,17 @@ var ProCard = ({
|
|
|
48
50
|
bodyStyle,
|
|
49
51
|
prefixCls: customizePrefixCls,
|
|
50
52
|
className,
|
|
53
|
+
style,
|
|
51
54
|
...restProps
|
|
52
55
|
}) => {
|
|
53
|
-
const {
|
|
56
|
+
const {
|
|
57
|
+
getPrefixCls,
|
|
58
|
+
iconPrefixCls,
|
|
59
|
+
card: contextCard
|
|
60
|
+
} = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
54
61
|
const prefixCls = getPrefixCls("pro-card", customizePrefixCls);
|
|
55
62
|
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
56
|
-
const { token } =
|
|
63
|
+
const { token } = import_design.theme.useToken();
|
|
57
64
|
const noBodyHorizontalPadding = (0, import_util.isHorizontalPaddingZero)(bodyStyle == null ? void 0 : bodyStyle.padding) || ghost;
|
|
58
65
|
const proCardCls = (0, import_classnames.default)(
|
|
59
66
|
{
|
|
@@ -62,24 +69,31 @@ var ProCard = ({
|
|
|
62
69
|
[`${prefixCls}-no-divider`]: !headerBordered,
|
|
63
70
|
[`${prefixCls}-contain-tabs`]: !!tabs
|
|
64
71
|
},
|
|
72
|
+
contextCard == null ? void 0 : contextCard.className,
|
|
65
73
|
className
|
|
66
74
|
);
|
|
67
75
|
return wrapSSR(
|
|
68
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
69
77
|
import_pro_components.ProCard,
|
|
70
78
|
{
|
|
79
|
+
loading: loading === true ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Skeleton, { active: true, title: false, paragraph: { rows: 4 } }) : loading,
|
|
71
80
|
prefixCls: customizePrefixCls,
|
|
81
|
+
bordered: bordered ?? ((contextCard == null ? void 0 : contextCard.variant) ? (contextCard == null ? void 0 : contextCard.variant) === "outlined" : void 0),
|
|
72
82
|
ghost,
|
|
73
83
|
title,
|
|
74
84
|
tabs: typeof tabs === "object" ? {
|
|
75
85
|
size: "large",
|
|
76
86
|
...tabs
|
|
77
87
|
} : tabs,
|
|
78
|
-
headerBordered,
|
|
88
|
+
headerBordered: headerBordered ?? (contextCard == null ? void 0 : contextCard.divided),
|
|
79
89
|
bodyStyle,
|
|
80
90
|
className: proCardCls,
|
|
91
|
+
style: {
|
|
92
|
+
...contextCard == null ? void 0 : contextCard.style,
|
|
93
|
+
...style
|
|
94
|
+
},
|
|
81
95
|
collapsibleIconRender: ({ collapsed }) => {
|
|
82
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
83
97
|
import_icons.CaretRightFilled,
|
|
84
98
|
{
|
|
85
99
|
className: `${iconPrefixCls} ${iconPrefixCls}-right ${prefixCls}-collapsible-icon`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
3
|
import type { OBToken } from '../../_util/genComponentStyleHook';
|
|
4
|
-
export declare const genProCardStyle:
|
|
4
|
+
export declare const genProCardStyle: (token: OBToken, outerComponentCls?: string) => CSSObject;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
6
6
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
7
7
|
hashId: string;
|
|
@@ -25,8 +25,10 @@ __export(style_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(style_exports);
|
|
26
26
|
var import_design = require("@oceanbase/design");
|
|
27
27
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
28
|
-
var genProCardStyle = (token) => {
|
|
29
|
-
|
|
28
|
+
var genProCardStyle = (token, outerComponentCls) => {
|
|
29
|
+
var _a;
|
|
30
|
+
const { componentCls: innerComponentCls, antCls, prefixCls } = token;
|
|
31
|
+
const componentCls = outerComponentCls || innerComponentCls;
|
|
30
32
|
const tableComponentCls = `${antCls}-table`;
|
|
31
33
|
const tabsComponentCls = `${antCls}-tabs`;
|
|
32
34
|
const tabsPrefixCls = `${prefixCls}-tabs`;
|
|
@@ -36,6 +38,19 @@ var genProCardStyle = (token) => {
|
|
|
36
38
|
[`div${componentCls}`]: {
|
|
37
39
|
borderRadius: token.borderRadiusLG
|
|
38
40
|
},
|
|
41
|
+
[`${componentCls}${componentCls}-no-divider`]: {
|
|
42
|
+
[`${componentCls}-header`]: {
|
|
43
|
+
paddingBlockStart: token.paddingLG
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
[`${componentCls}${componentCls}-size-small${componentCls}-no-divider`]: {
|
|
47
|
+
[`${componentCls}-header`]: {
|
|
48
|
+
paddingBlockStart: token.paddingSM
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
[`${componentCls}${componentCls}-border`]: {
|
|
52
|
+
border: `${token.lineWidth}px solid ${token.colorBorderSecondary}`
|
|
53
|
+
},
|
|
39
54
|
[`${componentCls}:not(${componentCls}-border):not(${componentCls}-ghost)`]: {
|
|
40
55
|
boxShadow: "0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)"
|
|
41
56
|
},
|
|
@@ -63,7 +78,7 @@ var genProCardStyle = (token) => {
|
|
|
63
78
|
[`&${componentCls}-has-title${componentCls}-no-divider:not(${componentCls}-contain-tabs)`]: {
|
|
64
79
|
[`${componentCls}-body`]: {
|
|
65
80
|
[`& > ${tableComponentCls}-wrapper ${tableComponentCls}:not(${tableComponentCls}-bordered):first-child`]: {
|
|
66
|
-
marginTop: -token.
|
|
81
|
+
marginTop: -((_a = token.Table) == null ? void 0 : _a.cellPaddingBlock)
|
|
67
82
|
}
|
|
68
83
|
}
|
|
69
84
|
},
|
package/lib/ProTable/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ProTableProps as AntProTableProps } from '@ant-design/pro-componen
|
|
|
3
3
|
export interface ProTableProps<T, U, ValueType> extends AntProTableProps<T, U, ValueType> {
|
|
4
4
|
innerBordered?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare function ProTable<T, U, ValueType>({ form, headerTitle, options, optionsRender, toolbar, toolBarRender, size, bordered, innerBordered, expandable, rowSelection, pagination: customPagination, footer, locale, cardProps: outerCardProps, prefixCls: customizePrefixCls, tableClassName, className, ...restProps }: ProTableProps<T, U, ValueType>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
6
|
+
declare function ProTable<T, U, ValueType>({ form, headerTitle, options, optionsRender, toolbar, toolBarRender, size, bordered, innerBordered, cardBordered, expandable, rowSelection, pagination: customPagination, footer, locale, cardProps: outerCardProps, prefixCls: customizePrefixCls, tableClassName, className, ...restProps }: ProTableProps<T, U, ValueType>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7
7
|
declare namespace ProTable {
|
|
8
8
|
var Summary;
|
|
9
9
|
}
|
package/lib/ProTable/index.js
CHANGED
|
@@ -32,13 +32,14 @@ __export(ProTable_exports, {
|
|
|
32
32
|
default: () => ProTable_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(ProTable_exports);
|
|
35
|
-
var import_react =
|
|
35
|
+
var import_react = require("react");
|
|
36
36
|
var import_pro_components = require("@ant-design/pro-components");
|
|
37
37
|
var import_design = require("@oceanbase/design");
|
|
38
38
|
var import_classnames = __toESM(require("classnames"));
|
|
39
39
|
var import_lodash = require("lodash");
|
|
40
40
|
var import_style = __toESM(require("../LightFilter/style"));
|
|
41
41
|
var import_style2 = __toESM(require("./style"));
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
43
|
function ProTable({
|
|
43
44
|
form,
|
|
44
45
|
headerTitle,
|
|
@@ -49,6 +50,7 @@ function ProTable({
|
|
|
49
50
|
size,
|
|
50
51
|
bordered,
|
|
51
52
|
innerBordered,
|
|
53
|
+
cardBordered,
|
|
52
54
|
expandable,
|
|
53
55
|
rowSelection,
|
|
54
56
|
pagination: customPagination,
|
|
@@ -60,9 +62,10 @@ function ProTable({
|
|
|
60
62
|
className,
|
|
61
63
|
...restProps
|
|
62
64
|
}) {
|
|
63
|
-
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
65
|
+
const { getPrefixCls, card: contextCard } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
66
|
+
const { token } = import_design.theme.useToken();
|
|
64
67
|
const tablePrefixCls = getPrefixCls("table", customizePrefixCls);
|
|
65
|
-
const
|
|
68
|
+
const [tableWrapCSSVar] = import_design.Table.useStyle(tablePrefixCls);
|
|
66
69
|
const pagination = import_design.Table.useDefaultPagination(customPagination);
|
|
67
70
|
const tableCls = (0, import_classnames.default)(
|
|
68
71
|
{
|
|
@@ -78,18 +81,23 @@ function ProTable({
|
|
|
78
81
|
const prefixCls = getPrefixCls("pro-table", customizePrefixCls);
|
|
79
82
|
const { wrapSSR } = (0, import_style2.default)(prefixCls);
|
|
80
83
|
const proTableCls = (0, import_classnames.default)(className);
|
|
81
|
-
const { emptyText = /* @__PURE__ */
|
|
82
|
-
const cardProps =
|
|
84
|
+
const { emptyText = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Empty, { image: import_design.Empty.PRESENTED_IMAGE_SIMPLE }), ...restLocale } = locale || {};
|
|
85
|
+
const cardProps = (0, import_lodash.merge)(
|
|
86
|
+
{},
|
|
87
|
+
contextCard,
|
|
88
|
+
typeof outerCardProps === "boolean" ? {} : outerCardProps
|
|
89
|
+
);
|
|
83
90
|
const proCardCls = getPrefixCls("pro-card", customizePrefixCls);
|
|
84
|
-
return
|
|
91
|
+
return tableWrapCSSVar(
|
|
85
92
|
lightFilterWrapSSR(
|
|
86
93
|
wrapSSR(
|
|
87
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
88
95
|
import_pro_components.ProTable,
|
|
89
96
|
{
|
|
90
97
|
defaultSize: "large",
|
|
91
98
|
size,
|
|
92
99
|
bordered: bordered || innerBordered,
|
|
100
|
+
cardBordered: cardBordered ?? ((contextCard == null ? void 0 : contextCard.variant) ? (contextCard == null ? void 0 : contextCard.variant) === "outlined" : void 0),
|
|
93
101
|
form: {
|
|
94
102
|
// query form should remove required mark
|
|
95
103
|
requiredMark: false,
|
|
@@ -105,12 +113,16 @@ function ProTable({
|
|
|
105
113
|
className: (0, import_classnames.default)(
|
|
106
114
|
{
|
|
107
115
|
[`${proCardCls}-has-title`]: !!headerTitle || options || options === void 0 || optionsRender || toolbar || toolBarRender,
|
|
108
|
-
[`${proCardCls}-no-divider`]: !(cardProps == null ? void 0 : cardProps.headerBordered),
|
|
116
|
+
[`${proCardCls}-no-divider`]: !(cardProps == null ? void 0 : cardProps.headerBordered) && !(cardProps == null ? void 0 : cardProps.divided),
|
|
109
117
|
[`${proCardCls}-no-padding`]: true,
|
|
110
118
|
[`${proCardCls}-contain-tabs`]: !!(cardProps == null ? void 0 : cardProps.tabs)
|
|
111
119
|
},
|
|
112
120
|
cardProps == null ? void 0 : cardProps.className
|
|
113
|
-
)
|
|
121
|
+
),
|
|
122
|
+
bodyStyle: {
|
|
123
|
+
paddingBlock: 0,
|
|
124
|
+
...cardProps == null ? void 0 : cardProps.bodyStyle
|
|
125
|
+
}
|
|
114
126
|
},
|
|
115
127
|
expandable: expandable ? {
|
|
116
128
|
columnWidth: !size || size === "large" ? 40 : 32,
|
|
@@ -121,7 +133,7 @@ function ProTable({
|
|
|
121
133
|
footer,
|
|
122
134
|
locale: {
|
|
123
135
|
...restLocale,
|
|
124
|
-
emptyText: /* @__PURE__ */
|
|
136
|
+
emptyText: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${tablePrefixCls}-empty-wrapper`, children: typeof emptyText === "function" ? emptyText() : emptyText })
|
|
125
137
|
},
|
|
126
138
|
prefixCls: customizePrefixCls,
|
|
127
139
|
tableClassName: tableCls,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
3
|
import type { OBToken } from '../../_util/genComponentStyleHook';
|
|
4
|
-
export declare const genProTableStyle:
|
|
4
|
+
export declare const genProTableStyle: (token: OBToken) => CSSObject;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
6
6
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
7
7
|
hashId: string;
|
|
@@ -25,6 +25,7 @@ __export(style_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(style_exports);
|
|
26
26
|
var import_design = require("@oceanbase/design");
|
|
27
27
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
28
|
+
var import_style = require("../../ProCard/style");
|
|
28
29
|
var genProTableStyle = (token) => {
|
|
29
30
|
const { antCls, componentCls, proComponentsCls } = token;
|
|
30
31
|
const proCardComponentCls = `${proComponentsCls}-card`;
|
|
@@ -36,11 +37,25 @@ var genProTableStyle = (token) => {
|
|
|
36
37
|
flexDirection: "row-reverse"
|
|
37
38
|
}
|
|
38
39
|
},
|
|
40
|
+
// Remove nested ProCard box-shadow
|
|
41
|
+
[`& > ${proCardComponentCls}, ${proCardComponentCls}${componentCls}-search-light-filter`]: {
|
|
42
|
+
boxShadow: "none !important"
|
|
43
|
+
},
|
|
44
|
+
[`${proCardComponentCls}:not(${proCardComponentCls}-no-divider)`]: {
|
|
45
|
+
[`${proCardComponentCls}-body`]: {
|
|
46
|
+
[`${componentCls}-list-toolbar-container`]: {
|
|
47
|
+
borderBottom: `${token.lineWidth}px solid ${token.colorBorderSecondary}`
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
39
51
|
[`${proCardComponentCls}${proCardComponentCls}-no-padding`]: {
|
|
40
52
|
[`${proCardComponentCls}-body`]: {
|
|
41
53
|
paddingInline: 0,
|
|
42
54
|
[`${componentCls}-list-toolbar-container`]: {
|
|
43
|
-
paddingInline: token.paddingLG
|
|
55
|
+
paddingInline: token.paddingLG,
|
|
56
|
+
[`${componentCls}-list-toolbar-title`]: {
|
|
57
|
+
fontWeight: token.fontWeightStrong
|
|
58
|
+
}
|
|
44
59
|
}
|
|
45
60
|
},
|
|
46
61
|
...import_design.Card.genTableStyle(token.paddingLG, {
|
|
@@ -48,7 +63,8 @@ var genProTableStyle = (token) => {
|
|
|
48
63
|
componentCls: proCardComponentCls
|
|
49
64
|
})
|
|
50
65
|
}
|
|
51
|
-
}
|
|
66
|
+
},
|
|
67
|
+
...(0, import_style.genProCardStyle)(token, proCardComponentCls)
|
|
52
68
|
};
|
|
53
69
|
};
|
|
54
70
|
var style_default = (prefixCls) => {
|
|
@@ -38,10 +38,9 @@ var import_classnames = __toESM(require("classnames"));
|
|
|
38
38
|
var import_dayjs = __toESM(require("dayjs"));
|
|
39
39
|
var import_lodash = require("lodash");
|
|
40
40
|
var import_moment = __toESM(require("moment"));
|
|
41
|
-
var import_react =
|
|
42
|
-
var import_util = require("../_util");
|
|
41
|
+
var import_react = require("react");
|
|
43
42
|
var import_constant = require("./constant");
|
|
44
|
-
var
|
|
43
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
44
|
var RangeDropdown = ({
|
|
46
45
|
selects,
|
|
47
46
|
onChange,
|
|
@@ -50,19 +49,27 @@ var RangeDropdown = ({
|
|
|
50
49
|
locale = {},
|
|
51
50
|
...rest
|
|
52
51
|
}) => {
|
|
53
|
-
const
|
|
52
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
53
|
+
const prefix = getPrefixCls("ranger-quick-picker");
|
|
54
|
+
const menu = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
54
55
|
import_design.Menu,
|
|
55
56
|
{
|
|
56
57
|
onClick: (e) => {
|
|
57
58
|
onChange(e.key);
|
|
58
59
|
},
|
|
59
|
-
style: { minWidth: 120 }
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
style: { minWidth: 120 },
|
|
61
|
+
children: [
|
|
62
|
+
selects.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Menu.Item, { children: locale[item.name] || item.name }, item.name)),
|
|
63
|
+
customable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Menu.Item, { children: locale.customize }, import_constant.CUSTOMIZE)
|
|
64
|
+
]
|
|
65
|
+
}
|
|
63
66
|
);
|
|
64
67
|
const match = selects.find((item) => item.name === value);
|
|
65
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Dropdown, { overlay: menu, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Space, { style: { cursor: "pointer" }, className: (0, import_classnames.default)(prefix, `${prefix}-dropdown`), children: [
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ClockCircleOutlined, {}),
|
|
70
|
+
locale[match == null ? void 0 : match.name] || (match == null ? void 0 : match.name),
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.DownOutlined, {})
|
|
72
|
+
] }) });
|
|
66
73
|
};
|
|
67
74
|
var RangeSelect = ({
|
|
68
75
|
selects,
|
|
@@ -73,10 +80,12 @@ var RangeSelect = ({
|
|
|
73
80
|
size,
|
|
74
81
|
...rest
|
|
75
82
|
}) => {
|
|
83
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
84
|
+
const prefix = getPrefixCls("ranger-quick-picker");
|
|
76
85
|
const handleChange = (nextValue) => {
|
|
77
86
|
onChange(nextValue);
|
|
78
87
|
};
|
|
79
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
80
89
|
import_design.Select,
|
|
81
90
|
{
|
|
82
91
|
className: (0, import_classnames.default)(prefix, `${prefix}-select`),
|
|
@@ -84,12 +93,14 @@ var RangeSelect = ({
|
|
|
84
93
|
onSelect: handleChange,
|
|
85
94
|
value,
|
|
86
95
|
size,
|
|
87
|
-
...rest
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
96
|
+
...rest,
|
|
97
|
+
children: [
|
|
98
|
+
selects.map((item) => {
|
|
99
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Select.Option, { value: item.name, children: locale[item.name] || item.name }, item.name);
|
|
100
|
+
}),
|
|
101
|
+
customable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Select.Option, { value: import_constant.CUSTOMIZE, children: locale.customize }, import_constant.CUSTOMIZE)
|
|
102
|
+
]
|
|
103
|
+
}
|
|
93
104
|
);
|
|
94
105
|
};
|
|
95
106
|
var QuickPicker_default = (props) => {
|
|
@@ -118,5 +129,5 @@ var QuickPicker_default = (props) => {
|
|
|
118
129
|
}
|
|
119
130
|
onNameChange(value);
|
|
120
131
|
};
|
|
121
|
-
return type === "select" ? /* @__PURE__ */
|
|
132
|
+
return type === "select" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RangeSelect, { value: innerName, selects, onChange: handleChange, ...rest }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RangeDropdown, { value: innerName, selects, onChange: handleChange, ...rest });
|
|
122
133
|
};
|
package/lib/Ranger/Ranger.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { RangePickerProps } from '@oceanbase/design/es/date-picker';
|
|
2
2
|
import type { Dayjs } from 'dayjs';
|
|
3
3
|
import type { Moment } from 'moment';
|
|
4
|
-
import './index.less';
|
|
5
4
|
import type { QuickPickerProps } from './QuickPicker';
|
|
6
5
|
import type { RangeOption } from './typing';
|
|
7
6
|
export type RangeName = 'customize' | string;
|