@oceanbase/ui 0.2.0 → 0.2.2
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/ui.min.js +1 -1
- package/es/Action/index.d.ts +0 -1
- package/es/BackgroundTaskManager/constants.d.ts +6 -0
- package/es/BasicLayout/locale/en-US.d.ts +12 -0
- package/es/BasicLayout/locale/zh-CN.d.ts +12 -0
- package/es/BasicLayout/locale/zh-TW.d.ts +12 -0
- package/es/BatchOperationBar/locale/en-US.d.ts +7 -0
- package/es/BatchOperationBar/locale/zh-CN.d.ts +7 -0
- package/es/BatchOperationBar/locale/zh-TW.d.ts +7 -0
- package/es/Boundary/IBoundary.d.ts +10 -0
- package/es/Boundary/constant.d.ts +26 -0
- package/es/Boundary/locale/en-US.d.ts +11 -0
- package/es/Boundary/locale/zh-CN.d.ts +11 -0
- package/es/Boundary/locale/zh-TW.d.ts +11 -0
- package/es/Boundary/utils.d.ts +1 -0
- package/es/Dialog/Anchor.d.ts +19 -0
- package/es/Dialog/Dock.d.ts +6 -0
- package/es/Dialog/EventProxy.d.ts +2 -0
- package/es/Dialog/locale/en-US.d.ts +5 -0
- package/es/Dialog/locale/zh-CN.d.ts +5 -0
- package/es/Dialog/locale/zh-TW.d.ts +5 -0
- package/es/DocDialog/locale/en-US.d.ts +2 -0
- package/es/DocDialog/locale/zh-CN.d.ts +2 -0
- package/es/DocDialog/locale/zh-TW.d.ts +2 -0
- package/es/FullscreenBox/locale/en-US.d.ts +2 -0
- package/es/FullscreenBox/locale/zh-CN.d.ts +2 -0
- package/es/FullscreenBox/locale/zh-TW.d.ts +2 -0
- package/es/GraphToolbar/locale/en-US.d.ts +9 -0
- package/es/GraphToolbar/locale/zh-CN.d.ts +9 -0
- package/es/GraphToolbar/locale/zh-TW.d.ts +9 -0
- package/es/Highlight/DiffView/DiffCells.d.ts +17 -0
- package/es/Highlight/HighlightCell.d.ts +18 -0
- package/es/Highlight/JsonView.d.ts +0 -1
- package/es/Highlight/index.d.ts +0 -1
- package/es/Highlight/locale/en-US.d.ts +2 -0
- package/es/Highlight/locale/zh-CN.d.ts +2 -0
- package/es/Highlight/locale/zh-TW.d.ts +2 -0
- package/es/Highlight/useKeyDownCopyEvent.d.ts +6 -0
- package/es/Login/locale/en-US.d.ts +27 -0
- package/es/Login/locale/zh-CN.d.ts +28 -0
- package/es/Login/locale/zh-TW.d.ts +27 -0
- package/es/Lottie/index.d.ts +10 -0
- package/es/PageContainer/ItemRender.d.ts +7 -0
- package/es/PageContainer/locale/en-US.d.ts +4 -0
- package/es/PageContainer/locale/zh-CN.d.ts +4 -0
- package/es/PageContainer/locale/zh-TW.d.ts +4 -0
- package/es/Password/locale/en-US.d.ts +13 -0
- package/es/Password/locale/zh-CN.d.ts +13 -0
- package/es/Password/locale/zh-TW.d.ts +13 -0
- package/es/Ranger/QuickPicker.d.ts +0 -1
- package/es/Ranger/constant/index.d.ts +27 -0
- package/es/Ranger/locale/en-US.d.ts +28 -0
- package/es/Ranger/locale/zh-CN.d.ts +4 -0
- package/es/Ranger/locale/zh-TW.d.ts +4 -0
- package/es/Ranger/typing.d.ts +12 -0
- package/es/SideTip/IconLoading.d.ts +0 -1
- package/es/SideTip/locale/en-US.d.ts +2 -0
- package/es/SideTip/locale/zh-CN.d.ts +2 -0
- package/es/SideTip/locale/zh-TW.d.ts +2 -0
- package/es/SideTip/utils.d.ts +8 -0
- package/es/TaskGraph/locale/en-US.d.ts +13 -0
- package/es/TaskGraph/locale/zh-CN.d.ts +13 -0
- package/es/TaskGraph/locale/zh-TW.d.ts +13 -0
- package/es/TreeSearch/util.d.ts +0 -1
- package/es/Welcome/locale/en-US.d.ts +5 -0
- package/es/Welcome/locale/zh-CN.d.ts +5 -0
- package/es/Welcome/locale/zh-TW.d.ts +5 -0
- package/es/_util/index.d.ts +18 -0
- package/es/_util/useHistory.d.ts +4 -0
- package/es/constant/index.d.ts +7 -0
- package/es/interface.d.ts +1 -0
- package/es/locale/en-US.d.ts +3 -0
- package/es/locale/index.d.ts +4 -0
- package/es/locale/zh-CN.d.ts +3 -0
- package/es/locale/zh-TW.d.ts +3 -0
- package/lib/Action/index.d.ts +0 -1
- package/lib/BackgroundTaskManager/constants.d.ts +6 -0
- package/lib/BasicLayout/locale/en-US.d.ts +12 -0
- package/lib/BasicLayout/locale/zh-CN.d.ts +12 -0
- package/lib/BasicLayout/locale/zh-TW.d.ts +12 -0
- package/lib/BatchOperationBar/locale/en-US.d.ts +7 -0
- package/lib/BatchOperationBar/locale/zh-CN.d.ts +7 -0
- package/lib/BatchOperationBar/locale/zh-TW.d.ts +7 -0
- package/lib/Boundary/IBoundary.d.ts +10 -0
- package/lib/Boundary/constant.d.ts +26 -0
- package/lib/Boundary/locale/en-US.d.ts +11 -0
- package/lib/Boundary/locale/zh-CN.d.ts +11 -0
- package/lib/Boundary/locale/zh-TW.d.ts +11 -0
- package/lib/Boundary/utils.d.ts +1 -0
- package/lib/Dialog/Anchor.d.ts +19 -0
- package/lib/Dialog/Dock.d.ts +6 -0
- package/lib/Dialog/EventProxy.d.ts +2 -0
- package/lib/Dialog/locale/en-US.d.ts +5 -0
- package/lib/Dialog/locale/zh-CN.d.ts +5 -0
- package/lib/Dialog/locale/zh-TW.d.ts +5 -0
- package/lib/DocDialog/locale/en-US.d.ts +2 -0
- package/lib/DocDialog/locale/zh-CN.d.ts +2 -0
- package/lib/DocDialog/locale/zh-TW.d.ts +2 -0
- package/lib/FullscreenBox/locale/en-US.d.ts +2 -0
- package/lib/FullscreenBox/locale/zh-CN.d.ts +2 -0
- package/lib/FullscreenBox/locale/zh-TW.d.ts +2 -0
- package/lib/GraphToolbar/locale/en-US.d.ts +9 -0
- package/lib/GraphToolbar/locale/zh-CN.d.ts +9 -0
- package/lib/GraphToolbar/locale/zh-TW.d.ts +9 -0
- package/lib/Highlight/DiffView/DiffCells.d.ts +17 -0
- package/lib/Highlight/HighlightCell.d.ts +18 -0
- package/lib/Highlight/JsonView.d.ts +0 -1
- package/lib/Highlight/index.d.ts +0 -1
- package/lib/Highlight/locale/en-US.d.ts +2 -0
- package/lib/Highlight/locale/zh-CN.d.ts +2 -0
- package/lib/Highlight/locale/zh-TW.d.ts +2 -0
- package/lib/Highlight/useKeyDownCopyEvent.d.ts +6 -0
- package/lib/Login/locale/en-US.d.ts +27 -0
- package/lib/Login/locale/zh-CN.d.ts +28 -0
- package/lib/Login/locale/zh-TW.d.ts +27 -0
- package/lib/Lottie/index.d.ts +10 -0
- package/lib/PageContainer/ItemRender.d.ts +7 -0
- package/lib/PageContainer/locale/en-US.d.ts +4 -0
- package/lib/PageContainer/locale/zh-CN.d.ts +4 -0
- package/lib/PageContainer/locale/zh-TW.d.ts +4 -0
- package/lib/Password/locale/en-US.d.ts +13 -0
- package/lib/Password/locale/zh-CN.d.ts +13 -0
- package/lib/Password/locale/zh-TW.d.ts +13 -0
- package/lib/Ranger/QuickPicker.d.ts +0 -1
- package/lib/Ranger/constant/index.d.ts +27 -0
- package/lib/Ranger/locale/en-US.d.ts +28 -0
- package/lib/Ranger/locale/zh-CN.d.ts +4 -0
- package/lib/Ranger/locale/zh-TW.d.ts +4 -0
- package/lib/Ranger/typing.d.ts +12 -0
- package/lib/SideTip/IconLoading.d.ts +0 -1
- package/lib/SideTip/locale/en-US.d.ts +2 -0
- package/lib/SideTip/locale/zh-CN.d.ts +2 -0
- package/lib/SideTip/locale/zh-TW.d.ts +2 -0
- package/lib/SideTip/utils.d.ts +8 -0
- package/lib/TaskGraph/locale/en-US.d.ts +13 -0
- package/lib/TaskGraph/locale/zh-CN.d.ts +13 -0
- package/lib/TaskGraph/locale/zh-TW.d.ts +13 -0
- package/lib/TreeSearch/util.d.ts +0 -1
- package/lib/Welcome/locale/en-US.d.ts +5 -0
- package/lib/Welcome/locale/zh-CN.d.ts +5 -0
- package/lib/Welcome/locale/zh-TW.d.ts +5 -0
- package/lib/_util/index.d.ts +18 -0
- package/lib/_util/useHistory.d.ts +4 -0
- package/lib/constant/index.d.ts +7 -0
- package/lib/interface.d.ts +1 -0
- package/lib/locale/en-US.d.ts +3 -0
- package/lib/locale/index.d.ts +4 -0
- package/lib/locale/zh-CN.d.ts +3 -0
- package/lib/locale/zh-TW.d.ts +3 -0
- package/package.json +7 -6
package/es/TreeSearch/util.d.ts
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取基于 Umi 框架应用的语言
|
|
3
|
+
* @returns string
|
|
4
|
+
*/
|
|
5
|
+
export declare function getLocale(): string;
|
|
6
|
+
/**
|
|
7
|
+
* 设置基于 Umi 框架应用的语言
|
|
8
|
+
* @param locale 语言的 key
|
|
9
|
+
*/
|
|
10
|
+
export declare function setLocale(locale: string): void;
|
|
11
|
+
export declare function directTo(url: string, blank?: boolean): void;
|
|
12
|
+
/**
|
|
13
|
+
* 将 path 拆分成多个匹配路径
|
|
14
|
+
* 例如: /userinfo/2144/id => ['/userinfo','/useinfo/2144,'/userindo/2144/id']
|
|
15
|
+
* */
|
|
16
|
+
export declare function urlToList(url?: string): string[];
|
|
17
|
+
export declare function isEnglish(): boolean;
|
|
18
|
+
export declare const getPrefix: (cls: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type Locale = 'zh-TW' | 'zh-CN' | 'en-US';
|
package/lib/Action/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ActionButton, ActionLink } from './Item';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
Group: ({ size, children, dropDownPlacement, shouldVisible, shouldDisabled, enableLoading, moreText, }: import("./Group").GroupProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ConfigType {
|
|
2
|
+
title: string;
|
|
3
|
+
imageUrl: string;
|
|
4
|
+
buttonText?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare type FunctionConfigType = Record<string, ConfigType>;
|
|
8
|
+
export declare type FunctionStateType = keyof FunctionConfigType;
|
|
9
|
+
export declare type CodeType = 404 | 403;
|
|
10
|
+
export declare type CodePresetType = Record<CodeType, ConfigType>;
|
|
11
|
+
export declare const CODE_PRESET: (locale: any) => CodePresetType;
|
|
12
|
+
export declare const EXCEPTION_PRESET: (locale: any) => {
|
|
13
|
+
ERROR_BOUNDARY: {
|
|
14
|
+
title: any;
|
|
15
|
+
imageUrl: string;
|
|
16
|
+
buttonText: any;
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
};
|
|
19
|
+
INCOMPATIBLE_VERSION: {
|
|
20
|
+
title: any;
|
|
21
|
+
imageUrl: string;
|
|
22
|
+
buttonText: any;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
subscription: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getBrowserNameVersion: () => string[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HTMLAttributes, PointerEvent } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { IDockProps } from './Dock';
|
|
4
|
+
export interface IAnchorProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
onStart?: (event: PointerEvent) => void;
|
|
6
|
+
onMove?: (event: PointerEvent) => void;
|
|
7
|
+
onEnd?: (event: PointerEvent) => void;
|
|
8
|
+
dock?: IDockProps;
|
|
9
|
+
}
|
|
10
|
+
export declare class Anchor extends React.Component<IAnchorProps> {
|
|
11
|
+
isPointDown: boolean;
|
|
12
|
+
originBodyStyle: string | null;
|
|
13
|
+
clientX: number;
|
|
14
|
+
clientY: number;
|
|
15
|
+
onDragStart: (event: PointerEvent) => void;
|
|
16
|
+
onDragMove: (event: PointerEvent) => void;
|
|
17
|
+
onDragEnd: (event: PointerEvent) => void;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface DiffCellsProps {
|
|
3
|
+
diffPrefixCls: string;
|
|
4
|
+
data: {
|
|
5
|
+
index: number;
|
|
6
|
+
type: 'add' | 'remove' | 'keep';
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
emptyText?: string;
|
|
10
|
+
width: string;
|
|
11
|
+
/** User can not selection code when lock is enabled */
|
|
12
|
+
lock?: boolean;
|
|
13
|
+
rowOffset?: number;
|
|
14
|
+
onMouseDown?: React.MouseEventHandler;
|
|
15
|
+
hashId: string;
|
|
16
|
+
}
|
|
17
|
+
export default function DiffCells({ diffPrefixCls, data, emptyText, width, lock, rowOffset, onMouseDown, hashId, }: DiffCellsProps): React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface HighlightCellProps {
|
|
3
|
+
prefixCls: string;
|
|
4
|
+
theme: string;
|
|
5
|
+
data: {
|
|
6
|
+
index: number;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
emptyText?: string;
|
|
10
|
+
width: string;
|
|
11
|
+
/** User can not selection code when lock is enabled */
|
|
12
|
+
lock?: boolean;
|
|
13
|
+
rowOffset?: number;
|
|
14
|
+
onMouseDown?: React.MouseEventHandler;
|
|
15
|
+
lineNumber?: boolean;
|
|
16
|
+
hashId?: string;
|
|
17
|
+
}
|
|
18
|
+
export default function HighlightCell({ prefixCls, theme, data, emptyText, width, lock, lineNumber, onMouseDown, hashId, }: HighlightCellProps): React.JSX.Element;
|
package/lib/Highlight/index.d.ts
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
usernamePlaceholder: string;
|
|
3
|
+
usernameMessage: string;
|
|
4
|
+
passwordPlaceholder: string;
|
|
5
|
+
passwordMessage: string;
|
|
6
|
+
loginText: string;
|
|
7
|
+
isLoadingWarn: string;
|
|
8
|
+
usernameLabel: string;
|
|
9
|
+
switchLoginLabel: string;
|
|
10
|
+
switchRegisterLabel: string;
|
|
11
|
+
userExistMessage: string;
|
|
12
|
+
usernameFormatMessage: string;
|
|
13
|
+
samePasswordMessage: string;
|
|
14
|
+
usernameHelp: string;
|
|
15
|
+
usernameLengthMessage: string;
|
|
16
|
+
passwordLabel: string;
|
|
17
|
+
passwordHelp: string;
|
|
18
|
+
confirmPwdLabel: string;
|
|
19
|
+
confirmPwdMessage: string;
|
|
20
|
+
registerBtn: string;
|
|
21
|
+
registerTitle: string;
|
|
22
|
+
activeTitle: string;
|
|
23
|
+
activeTitleDescrition: string;
|
|
24
|
+
activeSubmitBtn: string;
|
|
25
|
+
activeBackBtn: string;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
usernamePlaceholder: string;
|
|
3
|
+
usernameMessage: string;
|
|
4
|
+
passwordPlaceholder: string;
|
|
5
|
+
passwordMessage: string;
|
|
6
|
+
loginText: string;
|
|
7
|
+
otherLoginText: string;
|
|
8
|
+
isLoadingWarn: string;
|
|
9
|
+
usernameLabel: string;
|
|
10
|
+
switchLoginLabel: string;
|
|
11
|
+
switchRegisterLabel: string;
|
|
12
|
+
userExistMessage: string;
|
|
13
|
+
usernameFormatMessage: string;
|
|
14
|
+
samePasswordMessage: string;
|
|
15
|
+
usernameHelp: string;
|
|
16
|
+
usernameLengthMessage: string;
|
|
17
|
+
passwordLabel: string;
|
|
18
|
+
passwordHelp: string;
|
|
19
|
+
confirmPwdLabel: string;
|
|
20
|
+
confirmPwdMessage: string;
|
|
21
|
+
registerBtn: string;
|
|
22
|
+
registerTitle: string;
|
|
23
|
+
activeTitle: string;
|
|
24
|
+
activeTitleDescrition: string;
|
|
25
|
+
activeSubmitBtn: string;
|
|
26
|
+
activeBackBtn: string;
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
usernamePlaceholder: string;
|
|
3
|
+
usernameMessage: string;
|
|
4
|
+
passwordPlaceholder: string;
|
|
5
|
+
passwordMessage: string;
|
|
6
|
+
loginText: string;
|
|
7
|
+
isLoadingWarn: string;
|
|
8
|
+
usernameLabel: string;
|
|
9
|
+
switchLoginLabel: string;
|
|
10
|
+
switchRegisterLabel: string;
|
|
11
|
+
userExistMessage: string;
|
|
12
|
+
usernameFormatMessage: string;
|
|
13
|
+
samePasswordMessage: string;
|
|
14
|
+
usernameHelp: string;
|
|
15
|
+
usernameLengthMessage: string;
|
|
16
|
+
passwordLabel: string;
|
|
17
|
+
passwordHelp: string;
|
|
18
|
+
confirmPwdLabel: string;
|
|
19
|
+
confirmPwdMessage: string;
|
|
20
|
+
registerBtn: string;
|
|
21
|
+
registerTitle: string;
|
|
22
|
+
activeTitle: string;
|
|
23
|
+
activeTitleDescrition: string;
|
|
24
|
+
activeSubmitBtn: string;
|
|
25
|
+
activeBackBtn: string;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AnimationConfig } from 'lottie-web';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface LottieProps extends Omit<AnimationConfig, 'container'> {
|
|
4
|
+
path: string;
|
|
5
|
+
speed?: number;
|
|
6
|
+
mode?: 'normal' | 'icon';
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const Lottie: React.FC<LottieProps>;
|
|
10
|
+
export default Lottie;
|
|
@@ -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
|
+
pleaseKeepYourPasswordIn: string;
|
|
9
|
+
copySuccessfully: string;
|
|
10
|
+
copyPassword: string;
|
|
11
|
+
andKeepItProperly: string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -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
|
+
pleaseKeepYourPasswordIn: string;
|
|
9
|
+
copySuccessfully: string;
|
|
10
|
+
copyPassword: string;
|
|
11
|
+
andKeepItProperly: string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -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
|
+
pleaseKeepYourPasswordIn: string;
|
|
9
|
+
copySuccessfully: string;
|
|
10
|
+
copyPassword: string;
|
|
11
|
+
andKeepItProperly: string;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|