@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.
Files changed (150) hide show
  1. package/dist/ui.min.js +1 -1
  2. package/es/Action/index.d.ts +0 -1
  3. package/es/BackgroundTaskManager/constants.d.ts +6 -0
  4. package/es/BasicLayout/locale/en-US.d.ts +12 -0
  5. package/es/BasicLayout/locale/zh-CN.d.ts +12 -0
  6. package/es/BasicLayout/locale/zh-TW.d.ts +12 -0
  7. package/es/BatchOperationBar/locale/en-US.d.ts +7 -0
  8. package/es/BatchOperationBar/locale/zh-CN.d.ts +7 -0
  9. package/es/BatchOperationBar/locale/zh-TW.d.ts +7 -0
  10. package/es/Boundary/IBoundary.d.ts +10 -0
  11. package/es/Boundary/constant.d.ts +26 -0
  12. package/es/Boundary/locale/en-US.d.ts +11 -0
  13. package/es/Boundary/locale/zh-CN.d.ts +11 -0
  14. package/es/Boundary/locale/zh-TW.d.ts +11 -0
  15. package/es/Boundary/utils.d.ts +1 -0
  16. package/es/Dialog/Anchor.d.ts +19 -0
  17. package/es/Dialog/Dock.d.ts +6 -0
  18. package/es/Dialog/EventProxy.d.ts +2 -0
  19. package/es/Dialog/locale/en-US.d.ts +5 -0
  20. package/es/Dialog/locale/zh-CN.d.ts +5 -0
  21. package/es/Dialog/locale/zh-TW.d.ts +5 -0
  22. package/es/DocDialog/locale/en-US.d.ts +2 -0
  23. package/es/DocDialog/locale/zh-CN.d.ts +2 -0
  24. package/es/DocDialog/locale/zh-TW.d.ts +2 -0
  25. package/es/FullscreenBox/locale/en-US.d.ts +2 -0
  26. package/es/FullscreenBox/locale/zh-CN.d.ts +2 -0
  27. package/es/FullscreenBox/locale/zh-TW.d.ts +2 -0
  28. package/es/GraphToolbar/locale/en-US.d.ts +9 -0
  29. package/es/GraphToolbar/locale/zh-CN.d.ts +9 -0
  30. package/es/GraphToolbar/locale/zh-TW.d.ts +9 -0
  31. package/es/Highlight/DiffView/DiffCells.d.ts +17 -0
  32. package/es/Highlight/HighlightCell.d.ts +18 -0
  33. package/es/Highlight/JsonView.d.ts +0 -1
  34. package/es/Highlight/index.d.ts +0 -1
  35. package/es/Highlight/locale/en-US.d.ts +2 -0
  36. package/es/Highlight/locale/zh-CN.d.ts +2 -0
  37. package/es/Highlight/locale/zh-TW.d.ts +2 -0
  38. package/es/Highlight/useKeyDownCopyEvent.d.ts +6 -0
  39. package/es/Login/locale/en-US.d.ts +27 -0
  40. package/es/Login/locale/zh-CN.d.ts +28 -0
  41. package/es/Login/locale/zh-TW.d.ts +27 -0
  42. package/es/Lottie/index.d.ts +10 -0
  43. package/es/PageContainer/ItemRender.d.ts +7 -0
  44. package/es/PageContainer/locale/en-US.d.ts +4 -0
  45. package/es/PageContainer/locale/zh-CN.d.ts +4 -0
  46. package/es/PageContainer/locale/zh-TW.d.ts +4 -0
  47. package/es/Password/locale/en-US.d.ts +13 -0
  48. package/es/Password/locale/zh-CN.d.ts +13 -0
  49. package/es/Password/locale/zh-TW.d.ts +13 -0
  50. package/es/Ranger/QuickPicker.d.ts +0 -1
  51. package/es/Ranger/constant/index.d.ts +27 -0
  52. package/es/Ranger/locale/en-US.d.ts +28 -0
  53. package/es/Ranger/locale/zh-CN.d.ts +4 -0
  54. package/es/Ranger/locale/zh-TW.d.ts +4 -0
  55. package/es/Ranger/typing.d.ts +12 -0
  56. package/es/SideTip/IconLoading.d.ts +0 -1
  57. package/es/SideTip/locale/en-US.d.ts +2 -0
  58. package/es/SideTip/locale/zh-CN.d.ts +2 -0
  59. package/es/SideTip/locale/zh-TW.d.ts +2 -0
  60. package/es/SideTip/utils.d.ts +8 -0
  61. package/es/TaskGraph/locale/en-US.d.ts +13 -0
  62. package/es/TaskGraph/locale/zh-CN.d.ts +13 -0
  63. package/es/TaskGraph/locale/zh-TW.d.ts +13 -0
  64. package/es/TreeSearch/util.d.ts +0 -1
  65. package/es/Welcome/locale/en-US.d.ts +5 -0
  66. package/es/Welcome/locale/zh-CN.d.ts +5 -0
  67. package/es/Welcome/locale/zh-TW.d.ts +5 -0
  68. package/es/_util/index.d.ts +18 -0
  69. package/es/_util/useHistory.d.ts +4 -0
  70. package/es/constant/index.d.ts +7 -0
  71. package/es/interface.d.ts +1 -0
  72. package/es/locale/en-US.d.ts +3 -0
  73. package/es/locale/index.d.ts +4 -0
  74. package/es/locale/zh-CN.d.ts +3 -0
  75. package/es/locale/zh-TW.d.ts +3 -0
  76. package/lib/Action/index.d.ts +0 -1
  77. package/lib/BackgroundTaskManager/constants.d.ts +6 -0
  78. package/lib/BasicLayout/locale/en-US.d.ts +12 -0
  79. package/lib/BasicLayout/locale/zh-CN.d.ts +12 -0
  80. package/lib/BasicLayout/locale/zh-TW.d.ts +12 -0
  81. package/lib/BatchOperationBar/locale/en-US.d.ts +7 -0
  82. package/lib/BatchOperationBar/locale/zh-CN.d.ts +7 -0
  83. package/lib/BatchOperationBar/locale/zh-TW.d.ts +7 -0
  84. package/lib/Boundary/IBoundary.d.ts +10 -0
  85. package/lib/Boundary/constant.d.ts +26 -0
  86. package/lib/Boundary/locale/en-US.d.ts +11 -0
  87. package/lib/Boundary/locale/zh-CN.d.ts +11 -0
  88. package/lib/Boundary/locale/zh-TW.d.ts +11 -0
  89. package/lib/Boundary/utils.d.ts +1 -0
  90. package/lib/Dialog/Anchor.d.ts +19 -0
  91. package/lib/Dialog/Dock.d.ts +6 -0
  92. package/lib/Dialog/EventProxy.d.ts +2 -0
  93. package/lib/Dialog/locale/en-US.d.ts +5 -0
  94. package/lib/Dialog/locale/zh-CN.d.ts +5 -0
  95. package/lib/Dialog/locale/zh-TW.d.ts +5 -0
  96. package/lib/DocDialog/locale/en-US.d.ts +2 -0
  97. package/lib/DocDialog/locale/zh-CN.d.ts +2 -0
  98. package/lib/DocDialog/locale/zh-TW.d.ts +2 -0
  99. package/lib/FullscreenBox/locale/en-US.d.ts +2 -0
  100. package/lib/FullscreenBox/locale/zh-CN.d.ts +2 -0
  101. package/lib/FullscreenBox/locale/zh-TW.d.ts +2 -0
  102. package/lib/GraphToolbar/locale/en-US.d.ts +9 -0
  103. package/lib/GraphToolbar/locale/zh-CN.d.ts +9 -0
  104. package/lib/GraphToolbar/locale/zh-TW.d.ts +9 -0
  105. package/lib/Highlight/DiffView/DiffCells.d.ts +17 -0
  106. package/lib/Highlight/HighlightCell.d.ts +18 -0
  107. package/lib/Highlight/JsonView.d.ts +0 -1
  108. package/lib/Highlight/index.d.ts +0 -1
  109. package/lib/Highlight/locale/en-US.d.ts +2 -0
  110. package/lib/Highlight/locale/zh-CN.d.ts +2 -0
  111. package/lib/Highlight/locale/zh-TW.d.ts +2 -0
  112. package/lib/Highlight/useKeyDownCopyEvent.d.ts +6 -0
  113. package/lib/Login/locale/en-US.d.ts +27 -0
  114. package/lib/Login/locale/zh-CN.d.ts +28 -0
  115. package/lib/Login/locale/zh-TW.d.ts +27 -0
  116. package/lib/Lottie/index.d.ts +10 -0
  117. package/lib/PageContainer/ItemRender.d.ts +7 -0
  118. package/lib/PageContainer/locale/en-US.d.ts +4 -0
  119. package/lib/PageContainer/locale/zh-CN.d.ts +4 -0
  120. package/lib/PageContainer/locale/zh-TW.d.ts +4 -0
  121. package/lib/Password/locale/en-US.d.ts +13 -0
  122. package/lib/Password/locale/zh-CN.d.ts +13 -0
  123. package/lib/Password/locale/zh-TW.d.ts +13 -0
  124. package/lib/Ranger/QuickPicker.d.ts +0 -1
  125. package/lib/Ranger/constant/index.d.ts +27 -0
  126. package/lib/Ranger/locale/en-US.d.ts +28 -0
  127. package/lib/Ranger/locale/zh-CN.d.ts +4 -0
  128. package/lib/Ranger/locale/zh-TW.d.ts +4 -0
  129. package/lib/Ranger/typing.d.ts +12 -0
  130. package/lib/SideTip/IconLoading.d.ts +0 -1
  131. package/lib/SideTip/locale/en-US.d.ts +2 -0
  132. package/lib/SideTip/locale/zh-CN.d.ts +2 -0
  133. package/lib/SideTip/locale/zh-TW.d.ts +2 -0
  134. package/lib/SideTip/utils.d.ts +8 -0
  135. package/lib/TaskGraph/locale/en-US.d.ts +13 -0
  136. package/lib/TaskGraph/locale/zh-CN.d.ts +13 -0
  137. package/lib/TaskGraph/locale/zh-TW.d.ts +13 -0
  138. package/lib/TreeSearch/util.d.ts +0 -1
  139. package/lib/Welcome/locale/en-US.d.ts +5 -0
  140. package/lib/Welcome/locale/zh-CN.d.ts +5 -0
  141. package/lib/Welcome/locale/zh-TW.d.ts +5 -0
  142. package/lib/_util/index.d.ts +18 -0
  143. package/lib/_util/useHistory.d.ts +4 -0
  144. package/lib/constant/index.d.ts +7 -0
  145. package/lib/interface.d.ts +1 -0
  146. package/lib/locale/en-US.d.ts +3 -0
  147. package/lib/locale/index.d.ts +4 -0
  148. package/lib/locale/zh-CN.d.ts +3 -0
  149. package/lib/locale/zh-TW.d.ts +3 -0
  150. 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,4 @@
1
+ declare const _default: {
2
+ customize: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ customize: string;
3
+ };
4
+ 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
+ }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const iconLoading: (props: any) => import("react").JSX.Element;
3
2
  export default iconLoading;
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -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;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ successful: string;
3
+ running: string;
4
+ failed: string;
5
+ pending: string;
6
+ taskId: string;
7
+ log: string;
8
+ parameter: string;
9
+ stop: string;
10
+ retry: string;
11
+ skip: string;
12
+ };
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ successful: string;
3
+ running: string;
4
+ failed: string;
5
+ pending: string;
6
+ taskId: string;
7
+ log: string;
8
+ parameter: string;
9
+ stop: string;
10
+ retry: string;
11
+ skip: string;
12
+ };
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ successful: string;
3
+ running: string;
4
+ failed: string;
5
+ pending: string;
6
+ taskId: string;
7
+ log: string;
8
+ parameter: string;
9
+ stop: string;
10
+ retry: string;
11
+ skip: string;
12
+ };
13
+ export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Node, TreeNode } from '.';
3
2
  /** 根据 key 判断节点是否为叶子节点 */
4
3
  export declare const isLeaf: (node: TreeNode) => boolean;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ helpTitle: string;
3
+ defaultOperation: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ helpTitle: string;
3
+ defaultOperation: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ helpTitle: string;
3
+ defaultOperation: string;
4
+ };
5
+ export default _default;
@@ -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,4 @@
1
+ declare const _default: () => {
2
+ push: any;
3
+ };
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export declare const OB_SITE_LINK = "https://www.oceanbase.com";
2
+ export declare const LOCALE_LIST: {
3
+ value: string;
4
+ label: string;
5
+ shortLabel: string;
6
+ minLabel: string;
7
+ }[];
@@ -0,0 +1 @@
1
+ export declare type Locale = 'zh-TW' | 'zh-CN' | 'en-US';
@@ -0,0 +1,3 @@
1
+ import type { Locale } from './index';
2
+ declare const _default: Locale;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { Locale as AntLocale } from 'antd/es/locale';
2
+ export interface Locale extends AntLocale {
3
+ [key: string]: any;
4
+ }
@@ -0,0 +1,3 @@
1
+ import type { Locale } from './index';
2
+ declare const _default: Locale;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { Locale } from './index';
2
+ declare const _default: Locale;
3
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oceanbase/ui",
3
- "version": "0.2.0",
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.0",
41
- "@oceanbase/util": "^0.1.0",
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": "d91d4332cc08b532bd5cb70a5066c0118b71cd19"
70
+ "gitHead": "2bc94e6eb09382e6749a9c1b71e85aa3d4ece7b1"
70
71
  }