@oceanbase/ui 0.2.0 → 0.2.1

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 (140) hide show
  1. package/dist/ui.min.js +1 -1
  2. package/es/BackgroundTaskManager/constants.d.ts +6 -0
  3. package/es/BasicLayout/locale/en-US.d.ts +12 -0
  4. package/es/BasicLayout/locale/zh-CN.d.ts +12 -0
  5. package/es/BasicLayout/locale/zh-TW.d.ts +12 -0
  6. package/es/BatchOperationBar/locale/en-US.d.ts +7 -0
  7. package/es/BatchOperationBar/locale/zh-CN.d.ts +7 -0
  8. package/es/BatchOperationBar/locale/zh-TW.d.ts +7 -0
  9. package/es/Boundary/IBoundary.d.ts +10 -0
  10. package/es/Boundary/constant.d.ts +26 -0
  11. package/es/Boundary/locale/en-US.d.ts +11 -0
  12. package/es/Boundary/locale/zh-CN.d.ts +11 -0
  13. package/es/Boundary/locale/zh-TW.d.ts +11 -0
  14. package/es/Boundary/utils.d.ts +1 -0
  15. package/es/Dialog/Anchor.d.ts +19 -0
  16. package/es/Dialog/Dock.d.ts +6 -0
  17. package/es/Dialog/EventProxy.d.ts +2 -0
  18. package/es/Dialog/locale/en-US.d.ts +5 -0
  19. package/es/Dialog/locale/zh-CN.d.ts +5 -0
  20. package/es/Dialog/locale/zh-TW.d.ts +5 -0
  21. package/es/DocDialog/locale/en-US.d.ts +2 -0
  22. package/es/DocDialog/locale/zh-CN.d.ts +2 -0
  23. package/es/DocDialog/locale/zh-TW.d.ts +2 -0
  24. package/es/FullscreenBox/locale/en-US.d.ts +2 -0
  25. package/es/FullscreenBox/locale/zh-CN.d.ts +2 -0
  26. package/es/FullscreenBox/locale/zh-TW.d.ts +2 -0
  27. package/es/GraphToolbar/locale/en-US.d.ts +9 -0
  28. package/es/GraphToolbar/locale/zh-CN.d.ts +9 -0
  29. package/es/GraphToolbar/locale/zh-TW.d.ts +9 -0
  30. package/es/Highlight/DiffView/DiffCells.d.ts +17 -0
  31. package/es/Highlight/HighlightCell.d.ts +18 -0
  32. package/es/Highlight/locale/en-US.d.ts +2 -0
  33. package/es/Highlight/locale/zh-CN.d.ts +2 -0
  34. package/es/Highlight/locale/zh-TW.d.ts +2 -0
  35. package/es/Highlight/useKeyDownCopyEvent.d.ts +6 -0
  36. package/es/Login/locale/en-US.d.ts +27 -0
  37. package/es/Login/locale/zh-CN.d.ts +28 -0
  38. package/es/Login/locale/zh-TW.d.ts +27 -0
  39. package/es/Lottie/index.d.ts +10 -0
  40. package/es/PageContainer/ItemRender.d.ts +7 -0
  41. package/es/PageContainer/locale/en-US.d.ts +4 -0
  42. package/es/PageContainer/locale/zh-CN.d.ts +4 -0
  43. package/es/PageContainer/locale/zh-TW.d.ts +4 -0
  44. package/es/Password/locale/en-US.d.ts +13 -0
  45. package/es/Password/locale/zh-CN.d.ts +13 -0
  46. package/es/Password/locale/zh-TW.d.ts +13 -0
  47. package/es/Ranger/constant/index.d.ts +27 -0
  48. package/es/Ranger/locale/en-US.d.ts +28 -0
  49. package/es/Ranger/locale/zh-CN.d.ts +4 -0
  50. package/es/Ranger/locale/zh-TW.d.ts +4 -0
  51. package/es/Ranger/typing.d.ts +12 -0
  52. package/es/SideTip/IconLoading.d.ts +0 -1
  53. package/es/SideTip/locale/en-US.d.ts +2 -0
  54. package/es/SideTip/locale/zh-CN.d.ts +2 -0
  55. package/es/SideTip/locale/zh-TW.d.ts +2 -0
  56. package/es/SideTip/utils.d.ts +8 -0
  57. package/es/TaskGraph/locale/en-US.d.ts +13 -0
  58. package/es/TaskGraph/locale/zh-CN.d.ts +13 -0
  59. package/es/TaskGraph/locale/zh-TW.d.ts +13 -0
  60. package/es/Welcome/locale/en-US.d.ts +5 -0
  61. package/es/Welcome/locale/zh-CN.d.ts +5 -0
  62. package/es/Welcome/locale/zh-TW.d.ts +5 -0
  63. package/es/_util/index.d.ts +18 -0
  64. package/es/_util/useHistory.d.ts +4 -0
  65. package/es/constant/index.d.ts +7 -0
  66. package/es/interface.d.ts +1 -0
  67. package/es/locale/en-US.d.ts +3 -0
  68. package/es/locale/index.d.ts +4 -0
  69. package/es/locale/zh-CN.d.ts +3 -0
  70. package/es/locale/zh-TW.d.ts +3 -0
  71. package/lib/BackgroundTaskManager/constants.d.ts +6 -0
  72. package/lib/BasicLayout/locale/en-US.d.ts +12 -0
  73. package/lib/BasicLayout/locale/zh-CN.d.ts +12 -0
  74. package/lib/BasicLayout/locale/zh-TW.d.ts +12 -0
  75. package/lib/BatchOperationBar/locale/en-US.d.ts +7 -0
  76. package/lib/BatchOperationBar/locale/zh-CN.d.ts +7 -0
  77. package/lib/BatchOperationBar/locale/zh-TW.d.ts +7 -0
  78. package/lib/Boundary/IBoundary.d.ts +10 -0
  79. package/lib/Boundary/constant.d.ts +26 -0
  80. package/lib/Boundary/locale/en-US.d.ts +11 -0
  81. package/lib/Boundary/locale/zh-CN.d.ts +11 -0
  82. package/lib/Boundary/locale/zh-TW.d.ts +11 -0
  83. package/lib/Boundary/utils.d.ts +1 -0
  84. package/lib/Dialog/Anchor.d.ts +19 -0
  85. package/lib/Dialog/Dock.d.ts +6 -0
  86. package/lib/Dialog/EventProxy.d.ts +2 -0
  87. package/lib/Dialog/locale/en-US.d.ts +5 -0
  88. package/lib/Dialog/locale/zh-CN.d.ts +5 -0
  89. package/lib/Dialog/locale/zh-TW.d.ts +5 -0
  90. package/lib/DocDialog/locale/en-US.d.ts +2 -0
  91. package/lib/DocDialog/locale/zh-CN.d.ts +2 -0
  92. package/lib/DocDialog/locale/zh-TW.d.ts +2 -0
  93. package/lib/FullscreenBox/locale/en-US.d.ts +2 -0
  94. package/lib/FullscreenBox/locale/zh-CN.d.ts +2 -0
  95. package/lib/FullscreenBox/locale/zh-TW.d.ts +2 -0
  96. package/lib/GraphToolbar/locale/en-US.d.ts +9 -0
  97. package/lib/GraphToolbar/locale/zh-CN.d.ts +9 -0
  98. package/lib/GraphToolbar/locale/zh-TW.d.ts +9 -0
  99. package/lib/Highlight/DiffView/DiffCells.d.ts +17 -0
  100. package/lib/Highlight/HighlightCell.d.ts +18 -0
  101. package/lib/Highlight/locale/en-US.d.ts +2 -0
  102. package/lib/Highlight/locale/zh-CN.d.ts +2 -0
  103. package/lib/Highlight/locale/zh-TW.d.ts +2 -0
  104. package/lib/Highlight/useKeyDownCopyEvent.d.ts +6 -0
  105. package/lib/Login/locale/en-US.d.ts +27 -0
  106. package/lib/Login/locale/zh-CN.d.ts +28 -0
  107. package/lib/Login/locale/zh-TW.d.ts +27 -0
  108. package/lib/Lottie/index.d.ts +10 -0
  109. package/lib/PageContainer/ItemRender.d.ts +7 -0
  110. package/lib/PageContainer/locale/en-US.d.ts +4 -0
  111. package/lib/PageContainer/locale/zh-CN.d.ts +4 -0
  112. package/lib/PageContainer/locale/zh-TW.d.ts +4 -0
  113. package/lib/Password/locale/en-US.d.ts +13 -0
  114. package/lib/Password/locale/zh-CN.d.ts +13 -0
  115. package/lib/Password/locale/zh-TW.d.ts +13 -0
  116. package/lib/Ranger/constant/index.d.ts +27 -0
  117. package/lib/Ranger/locale/en-US.d.ts +28 -0
  118. package/lib/Ranger/locale/zh-CN.d.ts +4 -0
  119. package/lib/Ranger/locale/zh-TW.d.ts +4 -0
  120. package/lib/Ranger/typing.d.ts +12 -0
  121. package/lib/SideTip/IconLoading.d.ts +0 -1
  122. package/lib/SideTip/locale/en-US.d.ts +2 -0
  123. package/lib/SideTip/locale/zh-CN.d.ts +2 -0
  124. package/lib/SideTip/locale/zh-TW.d.ts +2 -0
  125. package/lib/SideTip/utils.d.ts +8 -0
  126. package/lib/TaskGraph/locale/en-US.d.ts +13 -0
  127. package/lib/TaskGraph/locale/zh-CN.d.ts +13 -0
  128. package/lib/TaskGraph/locale/zh-TW.d.ts +13 -0
  129. package/lib/Welcome/locale/en-US.d.ts +5 -0
  130. package/lib/Welcome/locale/zh-CN.d.ts +5 -0
  131. package/lib/Welcome/locale/zh-TW.d.ts +5 -0
  132. package/lib/_util/index.d.ts +18 -0
  133. package/lib/_util/useHistory.d.ts +4 -0
  134. package/lib/constant/index.d.ts +7 -0
  135. package/lib/interface.d.ts +1 -0
  136. package/lib/locale/en-US.d.ts +3 -0
  137. package/lib/locale/index.d.ts +4 -0
  138. package/lib/locale/zh-CN.d.ts +3 -0
  139. package/lib/locale/zh-TW.d.ts +3 -0
  140. package/package.json +5 -5
@@ -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;
@@ -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.1",
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"
@@ -37,8 +37,8 @@
37
37
  "@ant-design/cssinjs": "^1.9.1",
38
38
  "@ant-design/icons": "^4.2.1",
39
39
  "@ant-design/pro-components": "^2.4.12",
40
- "@oceanbase/design": "^0.2.0",
41
- "@oceanbase/util": "^0.1.0",
40
+ "@oceanbase/design": "^0.2.1",
41
+ "@oceanbase/util": "^0.2.0",
42
42
  "ahooks": "^2.10.0",
43
43
  "classnames": "^2.2.6",
44
44
  "dayjs": "^1.11.6",
@@ -66,5 +66,5 @@
66
66
  "react-dom": "^16.9.0",
67
67
  "react-router-dom": ">=5.2.0"
68
68
  },
69
- "gitHead": "d91d4332cc08b532bd5cb70a5066c0118b71cd19"
69
+ "gitHead": "d7c5c1d62f48b75337d34c2d7ba03f4bb1b2a068"
70
70
  }