@oceanbase/ui 1.0.0-alpha.6 → 1.0.0-alpha.8
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.js +1 -1
- package/es/BasicLayout/locale/ja-JP.js +6 -6
- package/es/Boundary/locale/en-US.js +1 -1
- package/es/Boundary/locale/ja-JP.js +4 -4
- package/es/Boundary/locale/zh-CN.js +1 -1
- package/es/Boundary/locale/zh-TW.js +1 -1
- package/es/DateRanger/locale/ja-JP.js +3 -3
- package/es/Dialog/locale/ja-JP.js +2 -2
- package/es/Dialog/locale/zh-CN.js +1 -1
- package/es/Dialog/locale/zh-TW.js +1 -1
- package/es/Login/locale/ja-JP.js +11 -11
- package/es/Login/locale/zh-CN.js +2 -2
- package/es/PageContainer/index.d.ts +2 -0
- package/es/PageContainer/index.js +74 -23
- 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 +1 -0
- package/es/PageContainer/locale/ja-JP.js +2 -1
- 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 +16 -2
- package/es/Password/index.js +1 -1
- package/es/Password/locale/ja-JP.js +6 -6
- package/es/ProTable/style/index.js +8 -4
- package/es/_util/genComponentStyleHook.d.ts +2 -2
- package/es/_util/genComponentStyleHook.js +1 -1
- package/es/index.d.ts +0 -4
- package/es/index.js +0 -2
- package/es/locale/en-US.js +0 -4
- package/es/locale/ja-JP.js +0 -4
- package/es/locale/zh-CN.js +0 -4
- package/es/locale/zh-TW.js +0 -4
- package/lib/BasicLayout/locale/ja-JP.js +6 -6
- package/lib/Boundary/locale/en-US.js +1 -1
- package/lib/Boundary/locale/ja-JP.js +4 -4
- package/lib/Boundary/locale/zh-CN.js +1 -1
- package/lib/Boundary/locale/zh-TW.js +1 -1
- package/lib/DateRanger/locale/ja-JP.js +3 -3
- package/lib/Dialog/locale/ja-JP.js +2 -2
- package/lib/Dialog/locale/zh-CN.js +1 -1
- package/lib/Dialog/locale/zh-TW.js +1 -1
- package/lib/Login/locale/ja-JP.js +11 -11
- package/lib/Login/locale/zh-CN.js +2 -2
- package/lib/PageContainer/index.d.ts +2 -0
- package/lib/PageContainer/index.js +49 -2
- 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 +1 -0
- package/lib/PageContainer/locale/ja-JP.js +2 -1
- 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 +17 -1
- package/lib/Password/index.js +1 -1
- package/lib/Password/locale/ja-JP.js +6 -6
- package/lib/ProTable/style/index.js +11 -1
- package/lib/_util/genComponentStyleHook.d.ts +2 -2
- package/lib/_util/genComponentStyleHook.js +1 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -6
- package/lib/locale/en-US.js +16 -20
- package/lib/locale/ja-JP.js +16 -20
- package/lib/locale/zh-CN.js +17 -21
- package/lib/locale/zh-TW.js +15 -19
- package/package.json +4 -4
- package/dist/static/Inter.f6bcdfb6.woff2 +0 -0
- package/es/GraphToolbar/index.d.ts +0 -25
- package/es/GraphToolbar/index.js +0 -149
- package/es/GraphToolbar/locale/en-US.d.ts +0 -9
- package/es/GraphToolbar/locale/en-US.js +0 -8
- package/es/GraphToolbar/locale/ja-JP.d.ts +0 -9
- package/es/GraphToolbar/locale/ja-JP.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/GraphToolbar/style/index.d.ts +0 -10
- package/es/GraphToolbar/style/index.js +0 -60
- package/es/TaskGraph/Graph/style/index.d.ts +0 -10
- package/es/TaskGraph/Graph/style/index.js +0 -28
- package/es/TaskGraph/Graph.d.ts +0 -23
- package/es/TaskGraph/Graph.js +0 -287
- package/es/TaskGraph/index.d.ts +0 -15
- package/es/TaskGraph/index.js +0 -181
- package/es/TaskGraph/locale/en-US.d.ts +0 -13
- package/es/TaskGraph/locale/en-US.js +0 -12
- package/es/TaskGraph/locale/ja-JP.d.ts +0 -13
- package/es/TaskGraph/locale/ja-JP.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/TaskGraph/style/index.d.ts +0 -10
- package/es/TaskGraph/style/index.js +0 -102
- package/lib/GraphToolbar/index.d.ts +0 -25
- package/lib/GraphToolbar/index.js +0 -169
- package/lib/GraphToolbar/locale/en-US.d.ts +0 -9
- package/lib/GraphToolbar/locale/en-US.js +0 -32
- package/lib/GraphToolbar/locale/ja-JP.d.ts +0 -9
- package/lib/GraphToolbar/locale/ja-JP.js +0 -32
- package/lib/GraphToolbar/locale/zh-CN.d.ts +0 -9
- package/lib/GraphToolbar/locale/zh-CN.js +0 -32
- package/lib/GraphToolbar/locale/zh-TW.d.ts +0 -9
- package/lib/GraphToolbar/locale/zh-TW.js +0 -32
- package/lib/GraphToolbar/style/index.d.ts +0 -10
- package/lib/GraphToolbar/style/index.js +0 -91
- package/lib/TaskGraph/Graph/style/index.d.ts +0 -10
- package/lib/TaskGraph/Graph/style/index.js +0 -56
- package/lib/TaskGraph/Graph.d.ts +0 -23
- package/lib/TaskGraph/Graph.js +0 -275
- package/lib/TaskGraph/index.d.ts +0 -15
- package/lib/TaskGraph/index.js +0 -171
- package/lib/TaskGraph/locale/en-US.d.ts +0 -13
- package/lib/TaskGraph/locale/en-US.js +0 -36
- package/lib/TaskGraph/locale/ja-JP.d.ts +0 -13
- package/lib/TaskGraph/locale/ja-JP.js +0 -36
- 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/TaskGraph/style/index.d.ts +0 -10
- package/lib/TaskGraph/style/index.js +0 -143
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
help: 'ヘルプ',
|
|
3
3
|
welcome: 'ウェルカムページ',
|
|
4
|
-
versionNotice: '
|
|
5
|
-
viewDocs: '
|
|
6
|
-
downloadDocs: '
|
|
7
|
-
about: '
|
|
4
|
+
versionNotice: '更新情報',
|
|
5
|
+
viewDocs: 'マニュアルを見る',
|
|
6
|
+
downloadDocs: 'マニュアルをダウンロード',
|
|
7
|
+
about: '製品について',
|
|
8
8
|
version: 'バージョン',
|
|
9
9
|
releaseTime: 'リリース日',
|
|
10
|
-
company: '
|
|
11
|
-
right: '
|
|
10
|
+
company: 'Beijing OceanBase Technology Co., Ltd.',
|
|
11
|
+
right: 'All Rights Reserved'
|
|
12
12
|
};
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
noPage: 'This page was not found',
|
|
5
5
|
normal: 'normal operation',
|
|
6
6
|
test: 'Click to test crash effect',
|
|
7
|
-
collapse: 'The page crashed
|
|
7
|
+
collapse: 'The page crashed',
|
|
8
8
|
incompatible: 'Incompatible browser version',
|
|
9
9
|
proposal: 'The browser version is too low. In order to avoid possible security risks, it is recommended to use Chrome browser version 80 or above'
|
|
10
10
|
};
|
|
@@ -3,8 +3,8 @@ export default {
|
|
|
3
3
|
noPermission: 'このページへのアクセス権限がありません',
|
|
4
4
|
noPage: 'このページが見つかりません',
|
|
5
5
|
normal: '正常動作',
|
|
6
|
-
test: '
|
|
7
|
-
collapse: '
|
|
8
|
-
incompatible: '
|
|
9
|
-
proposal: '
|
|
6
|
+
test: 'クリックしてクラッシュをテスト',
|
|
7
|
+
collapse: 'ページがクラッシュしました',
|
|
8
|
+
incompatible: 'ブラウザがサポートされていません',
|
|
9
|
+
proposal: 'ブラウザのバージョンが古すぎます。セキュリティリスクを避けるため、Chrome 80以上のご利用をおすすめします'
|
|
10
10
|
};
|
|
@@ -13,8 +13,8 @@ export default _objectSpread({
|
|
|
13
13
|
endDate: '終了日',
|
|
14
14
|
endTime: '終了時刻',
|
|
15
15
|
cancel: 'キャンセル',
|
|
16
|
-
confirm: '
|
|
16
|
+
confirm: 'OK',
|
|
17
17
|
current: '現在',
|
|
18
|
-
jumpBack: '
|
|
19
|
-
jumpForward: '
|
|
18
|
+
jumpBack: '前の期間へ',
|
|
19
|
+
jumpForward: '次の期間へ'
|
|
20
20
|
}, ja_JP);
|
package/es/Login/locale/ja-JP.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
usernamePlaceholder: '
|
|
3
|
-
usernameMessage: '
|
|
2
|
+
usernamePlaceholder: 'ユーザー名を入力してください',
|
|
3
|
+
usernameMessage: 'ユーザー名を入力してください',
|
|
4
4
|
passwordPlaceholder: 'パスワードを入力してください',
|
|
5
5
|
passwordMessage: 'パスワードを入力してください',
|
|
6
6
|
loginText: 'ログイン',
|
|
7
|
-
otherLoginText: '
|
|
8
|
-
isLoadingWarn: '
|
|
7
|
+
otherLoginText: '外部アカウントでログイン',
|
|
8
|
+
isLoadingWarn: '処理中',
|
|
9
9
|
usernameLabel: 'ユーザー名',
|
|
10
|
-
switchLoginLabel: '
|
|
11
|
-
switchRegisterLabel: '
|
|
10
|
+
switchLoginLabel: '既存アカウントにログイン',
|
|
11
|
+
switchRegisterLabel: 'アカウントを作成',
|
|
12
12
|
userExistMessage: 'ユーザー名は既に存在します',
|
|
13
13
|
usernameFormatMessage: 'ユーザー名の形式が要件を満たしていません',
|
|
14
14
|
samePasswordMessage: '確認パスワードが一致しません',
|
|
15
|
-
usernameHelp: '
|
|
15
|
+
usernameHelp: '半角英数字、アンダースコア、特殊文字 (._+@#$%) が使用可能です(4〜48文字)',
|
|
16
16
|
usernameLengthMessage: 'ユーザー名の長さは 4~48 文字',
|
|
17
17
|
passwordLabel: 'パスワード',
|
|
18
|
-
passwordHelp: '
|
|
18
|
+
passwordHelp: '数字、大文字、小文字、特殊文字 (._+@#$%) をそれぞれ2文字以上含み、8〜32文字で入力してください',
|
|
19
19
|
confirmPwdLabel: 'パスワード確認',
|
|
20
20
|
confirmPwdMessage: 'パスワードを再度入力してください',
|
|
21
21
|
registerBtn: '今すぐ登録',
|
|
22
22
|
registerTitle: 'アカウント登録',
|
|
23
23
|
activeTitle: 'パスワードを設定してアカウントを有効化',
|
|
24
|
-
activeTitleDescrition: '
|
|
25
|
-
activeSubmitBtn: '
|
|
26
|
-
activeBackBtn: '
|
|
24
|
+
activeTitleDescrition: 'セキュリティ保護のため、パスワードを設定してアカウントを有効化してください',
|
|
25
|
+
activeSubmitBtn: '有効化する',
|
|
26
|
+
activeBackBtn: '戻る'
|
|
27
27
|
};
|
package/es/Login/locale/zh-CN.js
CHANGED
|
@@ -4,9 +4,11 @@ import React from 'react';
|
|
|
4
4
|
export type ReloadType = boolean | IconComponentProps | React.ReactNode;
|
|
5
5
|
export interface PageContainerLocale {
|
|
6
6
|
reload?: string;
|
|
7
|
+
viewDocument?: string;
|
|
7
8
|
}
|
|
8
9
|
export type PageHeaderProps = AntPageHeaderProps & {
|
|
9
10
|
reload?: ReloadType;
|
|
11
|
+
document?: string | React.MouseEventHandler<HTMLAnchorElement> | React.ReactNode;
|
|
10
12
|
};
|
|
11
13
|
export interface PageContainerProps extends AntPageContainerProps {
|
|
12
14
|
header?: PageHeaderProps;
|
|
@@ -7,12 +7,13 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
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; }
|
|
9
9
|
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; }
|
|
10
|
+
import { useUniqueInlineId } from '@inline-svg-unique-id/react';
|
|
10
11
|
import { ArrowLeftOutlined, SyncOutlined } from '@oceanbase/icons';
|
|
11
12
|
import { PageContainer as AntPageContainer } from '@ant-design/pro-components';
|
|
12
13
|
import classNames from 'classnames';
|
|
13
14
|
import { isObject } from 'lodash';
|
|
14
15
|
import React, { useContext } from 'react';
|
|
15
|
-
import { Button, ConfigProvider, Space, Tooltip, theme } from '@oceanbase/design';
|
|
16
|
+
import { Button, ConfigProvider, Divider, Space, Tooltip, theme } from '@oceanbase/design';
|
|
16
17
|
import LocaleWrapper from "../locale/LocaleWrapper";
|
|
17
18
|
import ItemRender from "./ItemRender";
|
|
18
19
|
import PageLoading from "../PageLoading";
|
|
@@ -20,19 +21,49 @@ import zhCN from "./locale/zh-CN";
|
|
|
20
21
|
import useStyle from "./style";
|
|
21
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
23
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
var DocumentIcon = function DocumentIcon(_ref) {
|
|
25
|
+
var className = _ref.className;
|
|
26
|
+
var _id = useUniqueInlineId();
|
|
27
|
+
return /*#__PURE__*/_jsxs("svg", {
|
|
28
|
+
width: "16",
|
|
29
|
+
height: "16",
|
|
30
|
+
viewBox: "0 0 16 16",
|
|
31
|
+
fill: "none",
|
|
32
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
+
className: className,
|
|
34
|
+
children: [/*#__PURE__*/_jsx("g", {
|
|
35
|
+
clipPath: "url(#".concat(_id, ")"),
|
|
36
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
37
|
+
d: "M7.99992 4.66667C7.99992 3.95942 7.71897 3.28115 7.21887 2.78105C6.71877 2.28095 6.0405 2 5.33325 2H1.33325V12H5.99992C6.53035 12 7.03906 12.2107 7.41413 12.5858C7.78921 12.9609 7.99992 13.4696 7.99992 14M7.99992 4.66667V14M7.99992 4.66667C7.99992 3.95942 8.28087 3.28115 8.78097 2.78105C9.28106 2.28095 9.95934 2 10.6666 2H14.6666V12H9.99992C9.46949 12 8.96078 12.2107 8.5857 12.5858C8.21063 12.9609 7.99992 13.4696 7.99992 14",
|
|
38
|
+
stroke: "currentColor",
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round"
|
|
41
|
+
})
|
|
42
|
+
}), /*#__PURE__*/_jsx("defs", {
|
|
43
|
+
children: /*#__PURE__*/_jsx("clipPath", {
|
|
44
|
+
id: _id,
|
|
45
|
+
children: /*#__PURE__*/_jsx("rect", {
|
|
46
|
+
width: "16",
|
|
47
|
+
height: "16",
|
|
48
|
+
fill: "white"
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
var PageContainer = function PageContainer(_ref2) {
|
|
55
|
+
var customizePrefixCls = _ref2.prefixCls,
|
|
56
|
+
className = _ref2.className,
|
|
57
|
+
title = _ref2.title,
|
|
58
|
+
header = _ref2.header,
|
|
59
|
+
content = _ref2.content,
|
|
60
|
+
extraContent = _ref2.extraContent,
|
|
61
|
+
tabList = _ref2.tabList,
|
|
62
|
+
tabBarExtraContent = _ref2.tabBarExtraContent,
|
|
63
|
+
footerToolBarProps = _ref2.footerToolBarProps,
|
|
64
|
+
locale = _ref2.locale,
|
|
65
|
+
loading = _ref2.loading,
|
|
66
|
+
restProps = _objectWithoutProperties(_ref2, _excluded);
|
|
36
67
|
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
37
68
|
getPrefixCls = _useContext.getPrefixCls;
|
|
38
69
|
var rootPrefixCls = getPrefixCls();
|
|
@@ -41,26 +72,46 @@ var PageContainer = function PageContainer(_ref) {
|
|
|
41
72
|
wrapSSR = _useStyle.wrapSSR;
|
|
42
73
|
var _theme$useToken = theme.useToken(),
|
|
43
74
|
token = _theme$useToken.token;
|
|
44
|
-
var
|
|
45
|
-
reload =
|
|
46
|
-
subTitle =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
backIcon =
|
|
75
|
+
var _ref3 = header || {},
|
|
76
|
+
reload = _ref3.reload,
|
|
77
|
+
subTitle = _ref3.subTitle,
|
|
78
|
+
document = _ref3.document,
|
|
79
|
+
breadcrumb = _ref3.breadcrumb,
|
|
80
|
+
_ref3$backIcon = _ref3.backIcon,
|
|
81
|
+
backIcon = _ref3$backIcon === void 0 ? /*#__PURE__*/_jsx(Button, {
|
|
50
82
|
style: {
|
|
51
83
|
fontSize: token.fontSizeLG
|
|
52
84
|
},
|
|
53
85
|
icon: /*#__PURE__*/_jsx(ArrowLeftOutlined, {})
|
|
54
|
-
}) :
|
|
86
|
+
}) : _ref3$backIcon;
|
|
55
87
|
var reloadProps = isObject(reload) && ! /*#__PURE__*/React.isValidElement(reload) ? reload : {};
|
|
56
88
|
var reloadCls = classNames("".concat(rootPrefixCls, "-page-header-heading-reload"), reloadProps.className);
|
|
57
|
-
var
|
|
89
|
+
var documentLink = typeof document === 'string' ? document : undefined;
|
|
90
|
+
var documentClick = typeof document === 'function' ? document : undefined;
|
|
91
|
+
var newSubTitle = (reload || subTitle || document) && /*#__PURE__*/_jsxs(Space, {
|
|
58
92
|
children: [reload && /*#__PURE__*/_jsx(Tooltip, {
|
|
59
93
|
title: locale.reload,
|
|
60
94
|
children: isObject(reload) && /*#__PURE__*/React.isValidElement(reload) ? reload : /*#__PURE__*/_jsx(SyncOutlined, _objectSpread(_objectSpread({}, reloadProps), {}, {
|
|
61
95
|
className: reloadCls
|
|
62
96
|
}))
|
|
63
|
-
}), subTitle
|
|
97
|
+
}), subTitle, document && /*#__PURE__*/_jsxs(Space, {
|
|
98
|
+
children: [/*#__PURE__*/_jsx(Divider, {
|
|
99
|
+
type: "vertical",
|
|
100
|
+
className: "".concat(rootPrefixCls, "-page-header-heading-document-divider")
|
|
101
|
+
}), documentLink || documentClick ? /*#__PURE__*/_jsx(Tooltip, {
|
|
102
|
+
title: locale.viewDocument,
|
|
103
|
+
children: /*#__PURE__*/_jsx("a", {
|
|
104
|
+
href: documentLink,
|
|
105
|
+
target: "_blank",
|
|
106
|
+
rel: "noopener noreferrer",
|
|
107
|
+
onClick: documentClick,
|
|
108
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
109
|
+
className: "".concat(rootPrefixCls, "-page-header-heading-document-icon"),
|
|
110
|
+
children: /*#__PURE__*/_jsx(DocumentIcon, {})
|
|
111
|
+
})
|
|
112
|
+
})
|
|
113
|
+
}) : document]
|
|
114
|
+
})]
|
|
64
115
|
});
|
|
65
116
|
var newHeader = header && _objectSpread(_objectSpread({}, header), {}, {
|
|
66
117
|
subTitle: newSubTitle,
|
|
@@ -12,7 +12,6 @@ export var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
12
12
|
componentCls = token.componentCls,
|
|
13
13
|
colorBgLayout = token.colorBgLayout,
|
|
14
14
|
fontSizeHeading2 = token.fontSizeHeading2,
|
|
15
|
-
controlHeightLG = token.controlHeightLG,
|
|
16
15
|
padding = token.padding,
|
|
17
16
|
paddingLG = token.paddingLG;
|
|
18
17
|
return _objectSpread(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty({
|
|
@@ -20,7 +19,7 @@ export var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
20
19
|
backgroundColor: colorBgLayout
|
|
21
20
|
}, "".concat(proComponentsCls, "-grid-content"), {
|
|
22
21
|
minHeight: 'auto'
|
|
23
|
-
}), "".concat(componentCls, "-warp-page-header,").concat(componentCls, "-wrap-page-header"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
22
|
+
}), "".concat(componentCls, "-warp-page-header,").concat(componentCls, "-wrap-page-header"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
24
23
|
// 减小内容区左右两侧间距
|
|
25
24
|
paddingInlineStart: "".concat(token.paddingXL, "px !important"),
|
|
26
25
|
paddingInlineEnd: "".concat(token.paddingXL, "px !important"),
|
|
@@ -33,11 +32,26 @@ export var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
33
32
|
paddingBlockStart: 0
|
|
34
33
|
}), "".concat(antCls, "-page-header-heading-title"), {
|
|
35
34
|
fontSize: fontSizeHeading2,
|
|
35
|
+
fontWeight: token.fontWeightStrong,
|
|
36
36
|
marginInlineEnd: token.marginXS
|
|
37
37
|
}), "".concat(antCls, "-page-header-heading-reload"), {
|
|
38
38
|
cursor: 'pointer',
|
|
39
39
|
fontSize: token.fontSizeLG,
|
|
40
40
|
marginTop: token.marginXXS
|
|
41
|
+
}), "".concat(antCls, "-page-header-heading-document-divider"), {
|
|
42
|
+
marginInline: 0,
|
|
43
|
+
height: token.size
|
|
44
|
+
}), "".concat(antCls, "-page-header-heading-document-icon"), {
|
|
45
|
+
display: 'inline-block',
|
|
46
|
+
color: token.colorIcon,
|
|
47
|
+
marginTop: (token.controlHeight - token.fontSizeLG) / 2,
|
|
48
|
+
cursor: 'pointer',
|
|
49
|
+
'&:hover': {
|
|
50
|
+
color: token.colorLinkHover
|
|
51
|
+
},
|
|
52
|
+
'&:active': {
|
|
53
|
+
color: token.colorLinkActive
|
|
54
|
+
}
|
|
41
55
|
}), "".concat(antCls, "-page-header-heading-left"), {
|
|
42
56
|
marginBlock: 0
|
|
43
57
|
}), "".concat(antCls, "-page-header-heading-extra"), {
|
package/es/Password/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
lengthRuleMessage: '長さは 8~32 文字',
|
|
3
|
-
charRuleMessage: '
|
|
4
|
-
strengthRuleMessage: '
|
|
3
|
+
charRuleMessage: '英字、数字、および特殊文字(~!@#%^&*_-+= (){}[]:;,.?/`$"<>\)のみ使用可能',
|
|
4
|
+
strengthRuleMessage: '大文字・小文字・数字・特殊文字をそれぞれ2文字以上含める必要があります',
|
|
5
5
|
placeholder: 'パスワードを入力してください',
|
|
6
|
-
generatePlaceholder: '
|
|
6
|
+
generatePlaceholder: '入力またはランダム生成',
|
|
7
7
|
randomlyGenerate: 'ランダム生成',
|
|
8
|
-
pleaseRememberYourPassword: '
|
|
8
|
+
pleaseRememberYourPassword: 'パスワードを必ず保存してください',
|
|
9
9
|
copySuccessfully: 'コピー成功',
|
|
10
|
-
copyPassword: '
|
|
11
|
-
andKeepItProperly: '
|
|
10
|
+
copyPassword: 'パスワードをコピーし',
|
|
11
|
+
andKeepItProperly: '適切に保管してください'
|
|
12
12
|
};
|
|
@@ -12,15 +12,19 @@ export var genProTableStyle = function genProTableStyle(token) {
|
|
|
12
12
|
componentCls = token.componentCls,
|
|
13
13
|
proComponentsCls = token.proComponentsCls;
|
|
14
14
|
var proCardComponentCls = "".concat(proComponentsCls, "-card");
|
|
15
|
-
return _objectSpread(_defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty({}, "".concat(proComponentsCls, "-query-filter-actions"), _defineProperty({}, "".concat(antCls, "-space").concat(antCls, "-space-horizontal").concat(antCls, "-space-align-center"), {
|
|
15
|
+
return _objectSpread(_defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(proComponentsCls, "-query-filter-actions"), _defineProperty({}, "".concat(antCls, "-space").concat(antCls, "-space-horizontal").concat(antCls, "-space-align-center"), {
|
|
16
16
|
flexDirection: 'row-reverse'
|
|
17
17
|
})), "& > ".concat(proCardComponentCls, ", ").concat(proCardComponentCls).concat(componentCls, "-search-light-filter"), {
|
|
18
18
|
boxShadow: 'none !important'
|
|
19
|
-
}), "".concat(proCardComponentCls).concat(proCardComponentCls, "-no-
|
|
19
|
+
}), "".concat(proCardComponentCls, ":not(").concat(proCardComponentCls, "-no-divider)"), _defineProperty({}, "".concat(proCardComponentCls, "-body"), _defineProperty({}, "".concat(componentCls, "-list-toolbar-container"), {
|
|
20
|
+
borderBottom: "".concat(token.lineWidth, "px solid ").concat(token.colorBorderSecondary)
|
|
21
|
+
}))), "".concat(proCardComponentCls).concat(proCardComponentCls, "-no-padding"), _objectSpread(_defineProperty({}, "".concat(proCardComponentCls, "-body"), _defineProperty({
|
|
20
22
|
paddingInline: 0
|
|
21
|
-
}, "".concat(componentCls, "-list-toolbar-container"), {
|
|
23
|
+
}, "".concat(componentCls, "-list-toolbar-container"), _defineProperty({
|
|
22
24
|
paddingInline: token.paddingLG
|
|
23
|
-
}
|
|
25
|
+
}, "".concat(componentCls, "-list-toolbar-title"), {
|
|
26
|
+
fontWeight: token.fontWeightStrong
|
|
27
|
+
}))), Card.genTableStyle(token.paddingLG, _objectSpread(_objectSpread({}, token), {}, {
|
|
24
28
|
componentCls: proCardComponentCls
|
|
25
29
|
}))))), genProCardStyle(token, proCardComponentCls));
|
|
26
30
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ProAliasToken } from '@ant-design/pro-components';
|
|
2
|
-
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
3
1
|
import React from 'react';
|
|
2
|
+
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
3
|
+
import type { ProAliasToken } from '@ant-design/pro-components';
|
|
4
4
|
export interface OBToken extends ProAliasToken {
|
|
5
5
|
/** Wrap component class with `.` prefix */
|
|
6
6
|
componentCls: string;
|
|
@@ -4,9 +4,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
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
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { useStyle } from '@ant-design/pro-components';
|
|
8
7
|
import React from 'react';
|
|
9
8
|
import { ConfigProvider } from '@oceanbase/design';
|
|
9
|
+
import { useStyle } from '@ant-design/pro-components';
|
|
10
10
|
export function genComponentStyleHook(componentName, styleFn) {
|
|
11
11
|
return function (prefixCls) {
|
|
12
12
|
var _React$useContext = React.useContext(ConfigProvider.ConfigContext),
|
package/es/index.d.ts
CHANGED
|
@@ -19,8 +19,6 @@ export { default as DocDialog } from './DocDialog';
|
|
|
19
19
|
export type { DocDialogProps } from './DocDialog';
|
|
20
20
|
export { default as FullscreenBox } from './FullscreenBox';
|
|
21
21
|
export type { FullscreenBoxProps } from './FullscreenBox';
|
|
22
|
-
export { default as GraphToolbar } from './GraphToolbar';
|
|
23
|
-
export type { GraphToolbarProps } from './GraphToolbar';
|
|
24
22
|
export { default as Highlight } from './Highlight';
|
|
25
23
|
export type { HighlightProps } from './Highlight';
|
|
26
24
|
export { default as IconFont } from './IconFont';
|
|
@@ -51,8 +49,6 @@ export { default as DateRanger } from './DateRanger';
|
|
|
51
49
|
export type { DateRangerProps } from './DateRanger';
|
|
52
50
|
export { default as SideTip } from './SideTip';
|
|
53
51
|
export type { SideTipProps } from './SideTip';
|
|
54
|
-
export { default as TaskGraph } from './TaskGraph';
|
|
55
|
-
export type { TaskGraphProps } from './TaskGraph';
|
|
56
52
|
export { default as TreeSearch } from './TreeSearch';
|
|
57
53
|
export type { TreeSearchProps, TreeSearchRef } from './TreeSearch';
|
|
58
54
|
export { default as Welcome } from './Welcome';
|
package/es/index.js
CHANGED
|
@@ -11,7 +11,6 @@ export { default as ContentWithIcon } from "./ContentWithIcon";
|
|
|
11
11
|
export { default as Dialog } from "./Dialog";
|
|
12
12
|
export { default as DocDialog } from "./DocDialog";
|
|
13
13
|
export { default as FullscreenBox } from "./FullscreenBox";
|
|
14
|
-
export { default as GraphToolbar } from "./GraphToolbar";
|
|
15
14
|
export { default as Highlight } from "./Highlight";
|
|
16
15
|
export { default as IconFont } from "./IconFont";
|
|
17
16
|
export { default as Login } from "./Login";
|
|
@@ -27,7 +26,6 @@ export { default as Password } from "./Password";
|
|
|
27
26
|
export { default as Ranger } from "./Ranger";
|
|
28
27
|
export { default as DateRanger } from "./DateRanger";
|
|
29
28
|
export { default as SideTip } from "./SideTip";
|
|
30
|
-
export { default as TaskGraph } from "./TaskGraph";
|
|
31
29
|
export { default as TreeSearch } from "./TreeSearch";
|
|
32
30
|
export { default as Welcome } from "./Welcome";
|
|
33
31
|
export { default as TagSelect } from "./TagSelect";
|
package/es/locale/en-US.js
CHANGED
|
@@ -11,7 +11,6 @@ import Boundary from "../Boundary/locale/en-US";
|
|
|
11
11
|
import Dialog from "../Dialog/locale/en-US";
|
|
12
12
|
import DocDialog from "../DocDialog/locale/en-US";
|
|
13
13
|
import FullscreenBox from "../FullscreenBox/locale/en-US";
|
|
14
|
-
import GraphToolbar from "../GraphToolbar/locale/en-US";
|
|
15
14
|
import Highlight from "../Highlight/locale/en-US";
|
|
16
15
|
import Login from "../Login/locale/en-US";
|
|
17
16
|
import PageContainer from "../PageContainer/locale/en-US";
|
|
@@ -19,7 +18,6 @@ import Password from "../Password/locale/en-US";
|
|
|
19
18
|
import Ranger from "../Ranger/locale/en-US";
|
|
20
19
|
import DateRanger from "../DateRanger/locale/en-US";
|
|
21
20
|
import SideTip from "../SideTip/locale/en-US";
|
|
22
|
-
import TaskGraph from "../TaskGraph/locale/en-US";
|
|
23
21
|
import Welcome from "../Welcome/locale/en-US";
|
|
24
22
|
export default _objectSpread(_objectSpread({}, enUS), {}, {
|
|
25
23
|
// 业务组件
|
|
@@ -27,8 +25,6 @@ export default _objectSpread(_objectSpread({}, enUS), {}, {
|
|
|
27
25
|
PageContainer: PageContainer,
|
|
28
26
|
Login: Login,
|
|
29
27
|
Welcome: Welcome,
|
|
30
|
-
GraphToolbar: GraphToolbar,
|
|
31
|
-
TaskGraph: TaskGraph,
|
|
32
28
|
Ranger: Ranger,
|
|
33
29
|
Password: Password,
|
|
34
30
|
Boundary: Boundary,
|
package/es/locale/ja-JP.js
CHANGED
|
@@ -11,7 +11,6 @@ import Boundary from "../Boundary/locale/ja-JP";
|
|
|
11
11
|
import Dialog from "../Dialog/locale/ja-JP";
|
|
12
12
|
import DocDialog from "../DocDialog/locale/ja-JP";
|
|
13
13
|
import FullscreenBox from "../FullscreenBox/locale/ja-JP";
|
|
14
|
-
import GraphToolbar from "../GraphToolbar/locale/ja-JP";
|
|
15
14
|
import Highlight from "../Highlight/locale/ja-JP";
|
|
16
15
|
import Login from "../Login/locale/ja-JP";
|
|
17
16
|
import PageContainer from "../PageContainer/locale/ja-JP";
|
|
@@ -19,7 +18,6 @@ import Password from "../Password/locale/ja-JP";
|
|
|
19
18
|
import Ranger from "../Ranger/locale/ja-JP";
|
|
20
19
|
import DateRanger from "../DateRanger/locale/ja-JP";
|
|
21
20
|
import SideTip from "../SideTip/locale/ja-JP";
|
|
22
|
-
import TaskGraph from "../TaskGraph/locale/ja-JP";
|
|
23
21
|
import Welcome from "../Welcome/locale/ja-JP";
|
|
24
22
|
export default _objectSpread(_objectSpread({}, jaJP), {}, {
|
|
25
23
|
// 业务组件
|
|
@@ -27,8 +25,6 @@ export default _objectSpread(_objectSpread({}, jaJP), {}, {
|
|
|
27
25
|
PageContainer: PageContainer,
|
|
28
26
|
Login: Login,
|
|
29
27
|
Welcome: Welcome,
|
|
30
|
-
GraphToolbar: GraphToolbar,
|
|
31
|
-
TaskGraph: TaskGraph,
|
|
32
28
|
Ranger: Ranger,
|
|
33
29
|
Password: Password,
|
|
34
30
|
Boundary: Boundary,
|
package/es/locale/zh-CN.js
CHANGED
|
@@ -10,7 +10,6 @@ import BatchOperationBar from "../BatchOperationBar/locale/zh-CN";
|
|
|
10
10
|
import Dialog from "../Dialog/locale/zh-CN";
|
|
11
11
|
import DocDialog from "../DocDialog/locale/zh-CN";
|
|
12
12
|
import FullscreenBox from "../FullscreenBox/locale/zh-CN";
|
|
13
|
-
import GraphToolbar from "../GraphToolbar/locale/zh-CN";
|
|
14
13
|
import Highlight from "../Highlight/locale/zh-CN";
|
|
15
14
|
import Login from "../Login/locale/zh-CN";
|
|
16
15
|
import PageContainer from "../PageContainer/locale/zh-CN";
|
|
@@ -18,7 +17,6 @@ import { default as Boundary, default as Password } from "../Password/locale/zh-
|
|
|
18
17
|
import Ranger from "../Ranger/locale/zh-CN";
|
|
19
18
|
import DateRanger from "../DateRanger/locale/zh-CN";
|
|
20
19
|
import SideTip from "../SideTip/locale/zh-CN";
|
|
21
|
-
import TaskGraph from "../TaskGraph/locale/zh-CN";
|
|
22
20
|
import Welcome from "../Welcome/locale/zh-CN";
|
|
23
21
|
export default _objectSpread(_objectSpread({}, zhCN), {}, {
|
|
24
22
|
// 业务组件
|
|
@@ -26,8 +24,6 @@ export default _objectSpread(_objectSpread({}, zhCN), {}, {
|
|
|
26
24
|
PageContainer: PageContainer,
|
|
27
25
|
Login: Login,
|
|
28
26
|
Welcome: Welcome,
|
|
29
|
-
GraphToolbar: GraphToolbar,
|
|
30
|
-
TaskGraph: TaskGraph,
|
|
31
27
|
Ranger: Ranger,
|
|
32
28
|
Password: Password,
|
|
33
29
|
Boundary: Boundary,
|
package/es/locale/zh-TW.js
CHANGED
|
@@ -9,14 +9,12 @@ import BasicLayout from "../BasicLayout/locale/zh-TW";
|
|
|
9
9
|
import BatchOperationBar from "../BatchOperationBar/locale/zh-TW";
|
|
10
10
|
import Dialog from "../Dialog/locale/zh-TW";
|
|
11
11
|
import DocDialog from "../DocDialog/locale/zh-TW";
|
|
12
|
-
import GraphToolbar from "../GraphToolbar/locale/zh-TW";
|
|
13
12
|
import Highlight from "../Highlight/locale/zh-TW";
|
|
14
13
|
import Login from "../Login/locale/zh-TW";
|
|
15
14
|
import PageContainer from "../PageContainer/locale/zh-TW";
|
|
16
15
|
import { default as Boundary, default as Password } from "../Password/locale/zh-TW";
|
|
17
16
|
import Ranger from "../Ranger/locale/zh-TW";
|
|
18
17
|
import DateRanger from "../DateRanger/locale/zh-TW";
|
|
19
|
-
import TaskGraph from "../TaskGraph/locale/zh-TW";
|
|
20
18
|
import Welcome from "../Welcome/locale/zh-TW";
|
|
21
19
|
export default _objectSpread(_objectSpread({}, zhTW), {}, {
|
|
22
20
|
// 业务组件
|
|
@@ -24,8 +22,6 @@ export default _objectSpread(_objectSpread({}, zhTW), {}, {
|
|
|
24
22
|
PageContainer: PageContainer,
|
|
25
23
|
Login: Login,
|
|
26
24
|
Welcome: Welcome,
|
|
27
|
-
GraphToolbar: GraphToolbar,
|
|
28
|
-
TaskGraph: TaskGraph,
|
|
29
25
|
Ranger: Ranger,
|
|
30
26
|
Password: Password,
|
|
31
27
|
Boundary: Boundary,
|