@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { RangeOption } from '../typing';
|
|
2
|
+
export declare const CUSTOMIZE = "customize";
|
|
3
|
+
export declare const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
4
|
+
export declare const NEAR_1_MINUTES: RangeOption;
|
|
5
|
+
export declare const NEAR_5_MINUTES: RangeOption;
|
|
6
|
+
export declare const NEAR_10_MINUTES: RangeOption;
|
|
7
|
+
export declare const NEAR_20_MINUTES: RangeOption;
|
|
8
|
+
export declare const NEAR_30_MINUTES: RangeOption;
|
|
9
|
+
export declare const NEAR_1_HOURS: RangeOption;
|
|
10
|
+
export declare const NEAR_2_HOURS: RangeOption;
|
|
11
|
+
export declare const NEAR_3_HOURS: RangeOption;
|
|
12
|
+
export declare const NEAR_6_HOURS: RangeOption;
|
|
13
|
+
export declare const TODAY: RangeOption;
|
|
14
|
+
export declare const YESTERDAY: RangeOption;
|
|
15
|
+
export declare const TOMORROW: RangeOption;
|
|
16
|
+
export declare const THIS_WEEK: RangeOption;
|
|
17
|
+
export declare const LAST_WEEK: RangeOption;
|
|
18
|
+
export declare const NEXT_WEEK: RangeOption;
|
|
19
|
+
export declare const THIS_MONTH: RangeOption;
|
|
20
|
+
export declare const LAST_MONTH: RangeOption;
|
|
21
|
+
export declare const NEXT_MONTH: RangeOption;
|
|
22
|
+
export declare const THIS_QUARTER: RangeOption;
|
|
23
|
+
export declare const LAST_QUARTER: RangeOption;
|
|
24
|
+
export declare const NEXT_QUARTER: RangeOption;
|
|
25
|
+
export declare const THIS_YEAR: RangeOption;
|
|
26
|
+
export declare const LAST_YEAR: RangeOption;
|
|
27
|
+
export declare const NEXT_YEAR: RangeOption;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
customize: string;
|
|
3
|
+
'\u8FD1 1 \u5206\u949F': string;
|
|
4
|
+
'\u8FD1 5 \u5206\u949F': string;
|
|
5
|
+
'\u8FD1 10 \u5206\u949F': string;
|
|
6
|
+
'\u8FD1 20 \u5206\u949F': string;
|
|
7
|
+
'\u8FD1 30 \u5206\u949F': string;
|
|
8
|
+
'\u8FD1 1 \u5C0F\u65F6': string;
|
|
9
|
+
'\u8FD1 2 \u5C0F\u65F6': string;
|
|
10
|
+
'\u8FD1 3 \u5C0F\u65F6': string;
|
|
11
|
+
'\u8FD1 6 \u5C0F\u65F6': string;
|
|
12
|
+
今天: string;
|
|
13
|
+
昨天: string;
|
|
14
|
+
明天: string;
|
|
15
|
+
本周: string;
|
|
16
|
+
上周: string;
|
|
17
|
+
下周: string;
|
|
18
|
+
本月: string;
|
|
19
|
+
上月: string;
|
|
20
|
+
下月: string;
|
|
21
|
+
本季度: string;
|
|
22
|
+
上季度: string;
|
|
23
|
+
下季度: string;
|
|
24
|
+
今年: string;
|
|
25
|
+
去年: string;
|
|
26
|
+
明年: string;
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import type { Moment } from 'moment';
|
|
3
|
+
export interface RangeOption {
|
|
4
|
+
/**
|
|
5
|
+
* @description 选项名称
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* @description 时间范围
|
|
10
|
+
*/
|
|
11
|
+
range?: (current: Moment | Dayjs) => [Moment | Dayjs, Moment | Dayjs];
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const getScrollOffsets: (dom?: HTMLElement) => {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const getClientHeight: (dom?: HTMLElement) => number;
|
|
6
|
+
export declare const getClientWidth: (dom?: HTMLElement) => number;
|
|
7
|
+
export declare const getScrollBarSize: (fresh?: boolean, dom?: HTMLElement) => any;
|
|
8
|
+
export declare const isFixedElem: (element: any) => boolean;
|
package/lib/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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"OceanBase",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"react",
|
|
11
11
|
"component"
|
|
12
12
|
],
|
|
13
|
-
"homepage": "https://github.com/oceanbase/design",
|
|
13
|
+
"homepage": "https://github.com/oceanbase/design/packages/ui",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "git@github.com:oceanbase/design.git"
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"lib",
|
|
29
29
|
"dist",
|
|
30
30
|
"package.json",
|
|
31
|
-
"README.md"
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE"
|
|
32
33
|
],
|
|
33
34
|
"scripts": {
|
|
34
35
|
"build": "father build"
|
|
@@ -37,8 +38,8 @@
|
|
|
37
38
|
"@ant-design/cssinjs": "^1.9.1",
|
|
38
39
|
"@ant-design/icons": "^4.2.1",
|
|
39
40
|
"@ant-design/pro-components": "^2.4.12",
|
|
40
|
-
"@oceanbase/design": "^0.2.
|
|
41
|
-
"@oceanbase/util": "^0.1
|
|
41
|
+
"@oceanbase/design": "^0.2.2",
|
|
42
|
+
"@oceanbase/util": "^0.2.1",
|
|
42
43
|
"ahooks": "^2.10.0",
|
|
43
44
|
"classnames": "^2.2.6",
|
|
44
45
|
"dayjs": "^1.11.6",
|
|
@@ -66,5 +67,5 @@
|
|
|
66
67
|
"react-dom": "^16.9.0",
|
|
67
68
|
"react-router-dom": ">=5.2.0"
|
|
68
69
|
},
|
|
69
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "2bc94e6eb09382e6749a9c1b71e85aa3d4ece7b1"
|
|
70
71
|
}
|