@oceanbase/ui 0.2.30 → 0.2.32
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/Group.js +1 -0
- package/es/Action/index.d.ts +1 -0
- package/es/BasicLayout/Header.js +1 -1
- package/es/BasicLayout/style/index.js +4 -3
- package/es/BatchOperationBar/index.d.ts +1 -1
- package/es/ContentWithQuestion/index.js +0 -2
- package/es/Dialog/index.d.ts +5 -5
- package/es/DocDialog/index.d.ts +4 -4
- package/es/FooterToolbar/index.d.ts +5 -0
- package/es/FooterToolbar/index.js +30 -0
- package/es/FooterToolbar/style/index.d.ts +9 -0
- package/es/FooterToolbar/style/index.js +35 -0
- package/es/Highlight/index.d.ts +1 -1
- package/es/IconFont/index.d.ts +1 -1
- package/es/Login/index.js +1 -1
- package/es/Lottie/index.d.ts +2 -15
- package/es/Lottie/index.js +1 -65
- package/es/NavMenu/index.d.ts +5 -5
- package/es/PageContainer/index.js +3 -3
- package/es/PageContainer/style/index.js +10 -17
- package/es/Ranger/Ranger.d.ts +14 -0
- package/es/TreeSearch/index.d.ts +2 -2
- package/es/Welcome/step.js +2 -2
- package/es/index.d.ts +26 -4
- package/es/index.js +5 -4
- package/lib/Action/Group.js +1 -0
- package/lib/Action/index.d.ts +1 -0
- package/lib/BasicLayout/Header.js +1 -1
- package/lib/BasicLayout/style/index.js +4 -3
- package/lib/BatchOperationBar/index.d.ts +1 -1
- package/lib/ContentWithQuestion/index.js +0 -1
- package/lib/Dialog/index.d.ts +5 -5
- package/lib/DocDialog/index.d.ts +4 -4
- package/lib/FooterToolbar/index.d.ts +5 -0
- package/lib/FooterToolbar/index.js +52 -0
- package/lib/FooterToolbar/style/index.d.ts +9 -0
- package/lib/FooterToolbar/style/index.js +59 -0
- package/lib/Highlight/index.d.ts +1 -1
- package/lib/IconFont/index.d.ts +1 -1
- package/lib/Login/index.js +1 -1
- package/lib/Lottie/index.d.ts +2 -15
- package/lib/Lottie/index.js +3 -56
- package/lib/NavMenu/index.d.ts +5 -5
- package/lib/PageContainer/index.js +3 -3
- package/lib/PageContainer/style/index.js +5 -16
- package/lib/Ranger/Ranger.d.ts +14 -0
- package/lib/TreeSearch/index.d.ts +2 -2
- package/lib/Welcome/step.js +2 -2
- package/lib/index.d.ts +26 -4
- package/lib/index.js +6 -3
- package/package.json +5 -6
|
@@ -27,6 +27,7 @@ var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
|
27
27
|
var genBasicLayoutStyle = (token) => {
|
|
28
28
|
const {
|
|
29
29
|
antCls,
|
|
30
|
+
iconCls,
|
|
30
31
|
componentCls,
|
|
31
32
|
proComponentsCls,
|
|
32
33
|
colorBgLayout,
|
|
@@ -122,7 +123,7 @@ var genBasicLayoutStyle = (token) => {
|
|
|
122
123
|
cursor: "pointer",
|
|
123
124
|
opacity: 0,
|
|
124
125
|
// 设置展开/收起按钮中的图标大小
|
|
125
|
-
[
|
|
126
|
+
[iconCls]: {
|
|
126
127
|
fontSize: "px",
|
|
127
128
|
display: "block",
|
|
128
129
|
lineHeight: "42px"
|
|
@@ -143,7 +144,7 @@ var genBasicLayoutStyle = (token) => {
|
|
|
143
144
|
marginLeft: "auto",
|
|
144
145
|
color: colorText,
|
|
145
146
|
backgroundColor: "transparent",
|
|
146
|
-
[
|
|
147
|
+
[iconCls]: {
|
|
147
148
|
// 图标尺寸设为 18px,因为设计侧给到的图标内侧有间距,需要适当加大尺寸
|
|
148
149
|
width: "18px",
|
|
149
150
|
height: "18px",
|
|
@@ -157,7 +158,7 @@ var genBasicLayoutStyle = (token) => {
|
|
|
157
158
|
marginLeft: "auto",
|
|
158
159
|
color: colorText,
|
|
159
160
|
backgroundColor: "transparent",
|
|
160
|
-
[
|
|
161
|
+
[iconCls]: {
|
|
161
162
|
// 图标尺寸设为 18px,因为设计侧给到的图标内侧有间距,需要适当加大尺寸
|
|
162
163
|
width: "18px",
|
|
163
164
|
height: "18px",
|
|
@@ -10,7 +10,7 @@ export interface AlertRenderParams {
|
|
|
10
10
|
export type RenderFun = ((props: AlertRenderParams) => ReactNode) | false;
|
|
11
11
|
export type Vertical = 'top' | 'bottom';
|
|
12
12
|
export type Horizontal = 'left' | 'right';
|
|
13
|
-
export interface
|
|
13
|
+
export interface BatchOperationBarProps extends LocaleWrapperProps {
|
|
14
14
|
width?: number | string;
|
|
15
15
|
title?: ReactNode;
|
|
16
16
|
selectedRows?: any[];
|
package/lib/Dialog/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { LocaleWrapperProps } from '../locale/LocaleWrapper';
|
|
3
3
|
import './index.less';
|
|
4
|
-
export interface
|
|
4
|
+
export interface DialogLocale {
|
|
5
5
|
helpDocument: string;
|
|
6
6
|
openHelpCenter: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface DialogExtLink {
|
|
9
9
|
text?: string;
|
|
10
10
|
link: string;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface DialogProps extends LocaleWrapperProps {
|
|
13
13
|
className?: string;
|
|
14
14
|
visible?: boolean;
|
|
15
15
|
children?: React.ReactNode;
|
|
@@ -26,8 +26,8 @@ export interface IDialogProps extends LocaleWrapperProps {
|
|
|
26
26
|
resizable?: boolean;
|
|
27
27
|
draggable?: boolean;
|
|
28
28
|
enableMaximization?: boolean;
|
|
29
|
-
locale?:
|
|
30
|
-
extLink?:
|
|
29
|
+
locale?: DialogLocale;
|
|
30
|
+
extLink?: DialogExtLink;
|
|
31
31
|
setRootWidth?: (newWidth: string) => void;
|
|
32
32
|
isEmbed?: boolean;
|
|
33
33
|
}
|
package/lib/DocDialog/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LocaleWrapperProps } from '../locale/LocaleWrapper';
|
|
2
|
-
interface
|
|
2
|
+
interface DialogConfig {
|
|
3
3
|
height?: number;
|
|
4
4
|
width?: number;
|
|
5
5
|
top?: number;
|
|
@@ -7,13 +7,13 @@ interface IDialogConfig {
|
|
|
7
7
|
min?: [number, number];
|
|
8
8
|
max?: [number, number];
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface DocDialogProps extends LocaleWrapperProps {
|
|
11
11
|
className?: string;
|
|
12
12
|
title?: string;
|
|
13
13
|
fallbackUrl: string;
|
|
14
14
|
docUrls?: Record<string, string>;
|
|
15
|
-
embedConfig?:
|
|
16
|
-
normalConfig?:
|
|
15
|
+
embedConfig?: DialogConfig;
|
|
16
|
+
normalConfig?: DialogConfig;
|
|
17
17
|
normalModeWidth?: number;
|
|
18
18
|
defautTop?: number;
|
|
19
19
|
visible: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FooterToolbarProps as AntFooterToolbarProps } from '@ant-design/pro-layout/es/components/FooterToolbar';
|
|
3
|
+
export type FooterToolbarProps = AntFooterToolbarProps;
|
|
4
|
+
declare const FooterToolbar: React.FC<FooterToolbarProps>;
|
|
5
|
+
export default FooterToolbar;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/FooterToolbar/index.tsx
|
|
30
|
+
var FooterToolbar_exports = {};
|
|
31
|
+
__export(FooterToolbar_exports, {
|
|
32
|
+
default: () => FooterToolbar_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(FooterToolbar_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_pro_components = require("@ant-design/pro-components");
|
|
37
|
+
var import_design = require("@oceanbase/design");
|
|
38
|
+
var import_style = __toESM(require("./style"));
|
|
39
|
+
var FooterToolbar = ({
|
|
40
|
+
// render footer under parent instead of body by default
|
|
41
|
+
portalDom = false,
|
|
42
|
+
prefixCls: customizePrefixCls,
|
|
43
|
+
...restProps
|
|
44
|
+
}) => {
|
|
45
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
46
|
+
const prefixCls = getPrefixCls("pro-footer-bar", customizePrefixCls);
|
|
47
|
+
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
48
|
+
return wrapSSR(
|
|
49
|
+
/* @__PURE__ */ import_react.default.createElement(import_pro_components.FooterToolbar, { portalDom, prefixCls: customizePrefixCls, ...restProps })
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
var FooterToolbar_default = FooterToolbar;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FooterToolBarToken } from '@ant-design/pro-layout/es/components/FooterToolbar/style';
|
|
3
|
+
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
4
|
+
export declare const genFooterToolbarStyle: GenerateStyle<FooterToolBarToken>;
|
|
5
|
+
declare const _default: (prefixCls: string) => {
|
|
6
|
+
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
7
|
+
hashId: string;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/FooterToolbar/style/index.ts
|
|
20
|
+
var style_exports = {};
|
|
21
|
+
__export(style_exports, {
|
|
22
|
+
default: () => style_default,
|
|
23
|
+
genFooterToolbarStyle: () => genFooterToolbarStyle
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(style_exports);
|
|
26
|
+
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
|
+
var genFooterToolbarStyle = (token) => {
|
|
28
|
+
const { antCls, componentCls, colorBgBase, borderRadius, boxShadowSecondary, controlHeightLG } = token;
|
|
29
|
+
const height = controlHeightLG;
|
|
30
|
+
const lineHeight = `${controlHeightLG}px`;
|
|
31
|
+
return {
|
|
32
|
+
[`${componentCls}`]: {
|
|
33
|
+
width: "100%",
|
|
34
|
+
backgroundColor: colorBgBase,
|
|
35
|
+
borderRadius,
|
|
36
|
+
boxShadow: boxShadowSecondary,
|
|
37
|
+
borderBlockStart: "none",
|
|
38
|
+
// 设置底部操作栏的组件高度
|
|
39
|
+
[`${antCls}-btn:not(${antCls}-input-search-button)`]: {
|
|
40
|
+
minWidth: 68,
|
|
41
|
+
height
|
|
42
|
+
},
|
|
43
|
+
[`${antCls}-radio-button-wrapper`]: {
|
|
44
|
+
height,
|
|
45
|
+
lineHeight
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
var style_default = (prefixCls) => {
|
|
51
|
+
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("FooterToolbar", (token) => {
|
|
52
|
+
return [genFooterToolbarStyle(token)];
|
|
53
|
+
});
|
|
54
|
+
return useStyle(prefixCls);
|
|
55
|
+
};
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
genFooterToolbarStyle
|
|
59
|
+
});
|
package/lib/Highlight/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const THEME_DARK = "dark";
|
|
|
29
29
|
export declare const THEME_LIGHT = "light";
|
|
30
30
|
declare const ThemeTypes: ["dark", "light"];
|
|
31
31
|
export type ThemeType = (typeof ThemeTypes)[number];
|
|
32
|
-
declare const supportedLanguages: ("ruby" | "css" | "
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "bash" | "json" | "java" | "go" | "javascript" | "typescript" | "groovy" | "python" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "yaml" | "solidity" | "tsx" | "jsx")[];
|
|
33
33
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
34
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
35
|
/**
|
package/lib/IconFont/index.d.ts
CHANGED
package/lib/Login/index.js
CHANGED
|
@@ -158,7 +158,7 @@ var Login = (props) => {
|
|
|
158
158
|
/* @__PURE__ */ import_react.default.createElement(
|
|
159
159
|
"img",
|
|
160
160
|
{
|
|
161
|
-
src: theme.isDark ? import_oceanbase_logo_dark.default : import_oceanbase_logo.default,
|
|
161
|
+
src: (theme == null ? void 0 : theme.isDark) ? import_oceanbase_logo_dark.default : import_oceanbase_logo.default,
|
|
162
162
|
alt: "",
|
|
163
163
|
className: `${prefix}-watermark`
|
|
164
164
|
}
|
package/lib/Lottie/index.d.ts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface LottieProps extends Omit<AnimationConfig, 'container'> {
|
|
4
|
-
path?: string;
|
|
5
|
-
animationData?: any;
|
|
6
|
-
mode?: 'default' | 'icon';
|
|
7
|
-
loop?: boolean;
|
|
8
|
-
speed?: number;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}
|
|
12
|
-
export interface LottieRef {
|
|
13
|
-
animation: AnimationItem;
|
|
14
|
-
}
|
|
15
|
-
declare const Lottie: React.ForwardRefExoticComponent<LottieProps & React.RefAttributes<LottieRef>>;
|
|
1
|
+
import { Lottie } from '@oceanbase/design';
|
|
2
|
+
export type { LottieProps, LottieRef } from '@oceanbase/design';
|
|
16
3
|
export default Lottie;
|
package/lib/Lottie/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all)
|
|
@@ -16,64 +14,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
14
|
}
|
|
17
15
|
return to;
|
|
18
16
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
18
|
|
|
29
|
-
// src/Lottie/index.
|
|
19
|
+
// src/Lottie/index.ts
|
|
30
20
|
var Lottie_exports = {};
|
|
31
21
|
__export(Lottie_exports, {
|
|
32
22
|
default: () => Lottie_default
|
|
33
23
|
});
|
|
34
24
|
module.exports = __toCommonJS(Lottie_exports);
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var import_ahooks = require("ahooks");
|
|
38
|
-
var import_classnames = __toESM(require("classnames"));
|
|
39
|
-
var Lottie = import_react.default.forwardRef(
|
|
40
|
-
({ mode = "default", loop = true, speed = 1, className, style, ...restProps }, ref) => {
|
|
41
|
-
const [animation, setAnimation] = (0, import_react.useState)();
|
|
42
|
-
const containerRef = (0, import_react.useRef)();
|
|
43
|
-
(0, import_react.useEffect)(() => {
|
|
44
|
-
if (!animation) {
|
|
45
|
-
const newAnimation = import_lottie_web.default.loadAnimation({
|
|
46
|
-
container: containerRef.current,
|
|
47
|
-
renderer: "svg",
|
|
48
|
-
loop,
|
|
49
|
-
...restProps
|
|
50
|
-
});
|
|
51
|
-
setAnimation(newAnimation);
|
|
52
|
-
}
|
|
53
|
-
}, []);
|
|
54
|
-
(0, import_ahooks.useUpdateEffect)(() => {
|
|
55
|
-
if (animation) {
|
|
56
|
-
animation.setLoop(loop);
|
|
57
|
-
animation.setSpeed(speed);
|
|
58
|
-
}
|
|
59
|
-
}, [loop, speed]);
|
|
60
|
-
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
61
|
-
animation
|
|
62
|
-
}));
|
|
63
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
ref: containerRef,
|
|
67
|
-
className: (0, import_classnames.default)(className, {
|
|
68
|
-
// 图标展示模式,则追加 anticon 类名
|
|
69
|
-
["anticon"]: mode === "icon"
|
|
70
|
-
}),
|
|
71
|
-
style: {
|
|
72
|
-
display: "inline-block",
|
|
73
|
-
...style
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
var Lottie_default = Lottie;
|
|
25
|
+
var import_design = require("@oceanbase/design");
|
|
26
|
+
var Lottie_default = import_design.Lottie;
|
package/lib/NavMenu/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
export interface
|
|
3
|
+
export interface NavMenuItem {
|
|
4
4
|
key: string;
|
|
5
5
|
title: string;
|
|
6
6
|
link: string | string[];
|
|
@@ -8,12 +8,12 @@ export interface IMenu {
|
|
|
8
8
|
openNewTab?: boolean;
|
|
9
9
|
href?: boolean;
|
|
10
10
|
id?: string;
|
|
11
|
-
children?:
|
|
11
|
+
children?: NavMenuItem[];
|
|
12
12
|
}
|
|
13
|
-
interface
|
|
14
|
-
menuList:
|
|
13
|
+
export interface NavMenuProps {
|
|
14
|
+
menuList: NavMenuItem[];
|
|
15
15
|
className?: string;
|
|
16
16
|
style?: React.CSSProperties;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: (props:
|
|
18
|
+
declare const _default: (props: NavMenuProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
19
19
|
export default _default;
|
|
@@ -94,9 +94,9 @@ var PageContainer = ({
|
|
|
94
94
|
tabList,
|
|
95
95
|
tabBarExtraContent,
|
|
96
96
|
footerToolBarProps: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
// render footer under parent instead of body by default
|
|
98
|
+
portalDom: false,
|
|
99
|
+
...footerToolBarProps
|
|
100
100
|
},
|
|
101
101
|
...restProps
|
|
102
102
|
}
|
|
@@ -24,6 +24,7 @@ __export(style_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(style_exports);
|
|
26
26
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
|
+
var import_style = require("../../FooterToolbar/style");
|
|
27
28
|
var genPageContainerStyle = (token) => {
|
|
28
29
|
const {
|
|
29
30
|
antCls,
|
|
@@ -104,22 +105,10 @@ var genPageContainerStyle = (token) => {
|
|
|
104
105
|
[`${componentCls}-with-footer `]: {
|
|
105
106
|
paddingBottom: 64
|
|
106
107
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
boxShadow: boxShadowSecondary,
|
|
112
|
-
borderBlockStart: "none",
|
|
113
|
-
// 设置底部操作栏的组件高度
|
|
114
|
-
[`${antCls}-btn:not(${antCls}-input-search-button)`]: {
|
|
115
|
-
minWidth: 68,
|
|
116
|
-
height
|
|
117
|
-
},
|
|
118
|
-
[`${antCls}-radio-button-wrapper`]: {
|
|
119
|
-
height,
|
|
120
|
-
lineHeight
|
|
121
|
-
}
|
|
122
|
-
}
|
|
108
|
+
...(0, import_style.genFooterToolbarStyle)({
|
|
109
|
+
...token,
|
|
110
|
+
componentCls: `${proComponentsCls}-footer-bar`
|
|
111
|
+
})
|
|
123
112
|
};
|
|
124
113
|
};
|
|
125
114
|
var style_default = (prefixCls) => {
|
package/lib/Ranger/Ranger.d.ts
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
import type { RangePickerProps } from '@oceanbase/design/es/date-picker';
|
|
1
2
|
import type { Dayjs } from 'dayjs';
|
|
2
3
|
import type { Moment } from 'moment';
|
|
3
4
|
import './index.less';
|
|
5
|
+
import type { RangeOption } from './typing';
|
|
4
6
|
export type RangeName = 'customize' | string;
|
|
5
7
|
export type RangeValue = [Moment, Moment] | [Dayjs, Dayjs];
|
|
6
8
|
export type RangeDateValue = {
|
|
7
9
|
name: RangeName;
|
|
8
10
|
range: RangeValue;
|
|
9
11
|
};
|
|
12
|
+
export interface RangerProps extends Omit<RangePickerProps, 'mode' | 'picker' | 'value' | 'defaultValue'> {
|
|
13
|
+
selects?: RangeOption[];
|
|
14
|
+
defaultQuickValue?: string;
|
|
15
|
+
mode?: 'default' | 'mini';
|
|
16
|
+
quickType?: 'select' | 'dropdown';
|
|
17
|
+
/** 是否只允许选择过去时间 */
|
|
18
|
+
pastOnly?: boolean;
|
|
19
|
+
stickRangeName?: boolean;
|
|
20
|
+
value?: RangeValue;
|
|
21
|
+
defaultValue?: RangeValue;
|
|
22
|
+
size?: 'small' | 'large' | 'middle';
|
|
23
|
+
}
|
|
10
24
|
declare const _default: any;
|
|
11
25
|
export default _default;
|
|
@@ -17,7 +17,7 @@ export interface TreeSearchRef {
|
|
|
17
17
|
checkAll: () => void;
|
|
18
18
|
invertSelect: () => void;
|
|
19
19
|
}
|
|
20
|
-
interface TreeSearchProps {
|
|
20
|
+
export interface TreeSearchProps {
|
|
21
21
|
treeData: Node[];
|
|
22
22
|
titleRender?: (nodeData: DataNode) => React.ReactNode;
|
|
23
23
|
checkable?: boolean;
|
|
@@ -32,7 +32,7 @@ interface TreeSearchProps {
|
|
|
32
32
|
followLeaf?: boolean;
|
|
33
33
|
/** 异步请求节点数据的回调函数 */
|
|
34
34
|
loadData?: (data: unknown) => Promise<void>;
|
|
35
|
-
searchStyle?:
|
|
35
|
+
searchStyle?: React.CSSProperties;
|
|
36
36
|
}
|
|
37
37
|
declare const _default: React.ForwardRefExoticComponent<TreeSearchProps & React.RefAttributes<TreeSearchRef>>;
|
|
38
38
|
export default _default;
|
package/lib/Welcome/step.js
CHANGED
|
@@ -41,8 +41,8 @@ var import_zh_CN = __toESM(require("./locale/zh-CN"));
|
|
|
41
41
|
var prefix = (0, import_util.getPrefix)("welcome-step");
|
|
42
42
|
var WelcomeStep = (props) => {
|
|
43
43
|
const { title, description, operations, imgUrl, locale } = props;
|
|
44
|
-
return /* @__PURE__ */ import_react.default.createElement(import_design.Col, { span: 11, key: title, className: prefix }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-left` }, /* @__PURE__ */ import_react.default.createElement("img", { src: imgUrl, alt: "", width: "60" })), /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-right` }, /* @__PURE__ */ import_react.default.createElement("h3", { className: `${prefix}-title` }, title), /* @__PURE__ */ import_react.default.createElement("p", { className: `${prefix}-description` }, description), operations && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-operations` }, operations
|
|
45
|
-
return /* @__PURE__ */ import_react.default.createElement("span", { onClick: operation.onClick, className: `${prefix}-operation` }, operation.text || locale.defaultOperation);
|
|
44
|
+
return /* @__PURE__ */ import_react.default.createElement(import_design.Col, { span: 11, key: title, className: prefix }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-left` }, /* @__PURE__ */ import_react.default.createElement("img", { src: imgUrl, alt: "", width: "60" })), /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-right` }, /* @__PURE__ */ import_react.default.createElement("h3", { className: `${prefix}-title` }, title), /* @__PURE__ */ import_react.default.createElement("p", { className: `${prefix}-description` }, description), operations && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-operations` }, operations == null ? void 0 : operations.map((operation, index) => {
|
|
45
|
+
return /* @__PURE__ */ import_react.default.createElement("span", { key: index, onClick: operation.onClick, className: `${prefix}-operation` }, operation.text || locale.defaultOperation);
|
|
46
46
|
}))));
|
|
47
47
|
};
|
|
48
48
|
var step_default = (0, import_LocaleWrapper.default)({
|
package/lib/index.d.ts
CHANGED
|
@@ -1,31 +1,53 @@
|
|
|
1
1
|
import './index.less';
|
|
2
2
|
export * from '@ant-design/pro-components';
|
|
3
3
|
export { version } from '../package.json';
|
|
4
|
+
export * from './constant';
|
|
5
|
+
export * from './interface';
|
|
4
6
|
export { default as Action } from './Action';
|
|
5
|
-
export {
|
|
6
|
-
export type { BackgroundTaskManagerRef, ITaskMgrPreset, ITaskMgrQueue, TaskMgrID, } from './BackgroundTaskManager';
|
|
7
|
+
export type { ActionGroupProps } from './Action';
|
|
7
8
|
export { default as BasicLayout } from './BasicLayout';
|
|
9
|
+
export type { BasicLayoutProps } from './BasicLayout';
|
|
8
10
|
export { default as BatchOperationBar } from './BatchOperationBar';
|
|
11
|
+
export type { BatchOperationBarProps } from './BatchOperationBar';
|
|
9
12
|
export { default as Boundary } from './Boundary';
|
|
10
|
-
export * from './constant';
|
|
11
13
|
export { default as ContentWithQuestion } from './ContentWithQuestion';
|
|
14
|
+
export type { ContentWithQuestionProps } from './ContentWithQuestion';
|
|
12
15
|
export { default as ContentWithIcon } from './ContentWithIcon';
|
|
16
|
+
export type { ContentWithIconProps } from './ContentWithIcon';
|
|
13
17
|
export { default as Dialog } from './Dialog';
|
|
18
|
+
export type { DialogProps } from './Dialog';
|
|
14
19
|
export { default as DocDialog } from './DocDialog';
|
|
20
|
+
export type { DocDialogProps } from './DocDialog';
|
|
15
21
|
export { default as FullscreenBox } from './FullscreenBox';
|
|
22
|
+
export type { FullscreenBoxProps } from './FullscreenBox';
|
|
16
23
|
export { default as GraphToolbar } from './GraphToolbar';
|
|
24
|
+
export type { GraphToolbarProps } from './GraphToolbar';
|
|
17
25
|
export { default as Highlight } from './Highlight';
|
|
26
|
+
export type { HighlightProps } from './Highlight';
|
|
18
27
|
export { default as IconFont } from './IconFont';
|
|
19
|
-
export
|
|
28
|
+
export type { IconFontProps } from './IconFont';
|
|
20
29
|
export { default as Login } from './Login';
|
|
30
|
+
export type { LoginProps } from './Login';
|
|
21
31
|
export { default as Lottie } from './Lottie';
|
|
32
|
+
export type { LottieProps } from './Lottie';
|
|
22
33
|
export { default as NavMenu } from './NavMenu';
|
|
34
|
+
export type { NavMenuProps, NavMenuItem } from './NavMenu';
|
|
23
35
|
export { default as PageContainer } from './PageContainer';
|
|
24
36
|
export type { PageContainerProps } from './PageContainer';
|
|
37
|
+
export { default as FooterToolbar } from './FooterToolbar';
|
|
38
|
+
export type { FooterToolbarProps } from './FooterToolbar';
|
|
25
39
|
export { default as Password } from './Password';
|
|
40
|
+
export type { PasswordProps } from './Password';
|
|
26
41
|
export { default as Ranger } from './Ranger';
|
|
42
|
+
export type { RangerProps } from './Ranger';
|
|
27
43
|
export { default as SideTip } from './SideTip';
|
|
44
|
+
export type { SideTipProps } from './SideTip';
|
|
28
45
|
export { default as TaskGraph } from './TaskGraph';
|
|
46
|
+
export type { TaskGraphProps } from './TaskGraph';
|
|
29
47
|
export { default as TreeSearch } from './TreeSearch';
|
|
48
|
+
export type { TreeSearchProps, TreeSearchRef } from './TreeSearch';
|
|
30
49
|
export { default as Welcome } from './Welcome';
|
|
50
|
+
export type { WelcomeProps } from './Welcome';
|
|
31
51
|
export { default as TagSelect } from './TagSelect';
|
|
52
|
+
export { BackgroundTaskManagerConstants, default as BackgroundTaskManager, } from './BackgroundTaskManager';
|
|
53
|
+
export type { BackgroundTaskManagerRef, ITaskMgrPreset, ITaskMgrQueue, TaskMgrID, } from './BackgroundTaskManager';
|
package/lib/index.js
CHANGED
|
@@ -40,6 +40,7 @@ __export(src_exports, {
|
|
|
40
40
|
ContentWithQuestion: () => import_ContentWithQuestion.default,
|
|
41
41
|
Dialog: () => import_Dialog.default,
|
|
42
42
|
DocDialog: () => import_DocDialog.default,
|
|
43
|
+
FooterToolbar: () => import_FooterToolbar.default,
|
|
43
44
|
FullscreenBox: () => import_FullscreenBox.default,
|
|
44
45
|
GraphToolbar: () => import_GraphToolbar.default,
|
|
45
46
|
Highlight: () => import_Highlight.default,
|
|
@@ -61,12 +62,12 @@ module.exports = __toCommonJS(src_exports);
|
|
|
61
62
|
var import_index = require("./index.less");
|
|
62
63
|
__reExport(src_exports, require("@ant-design/pro-components"), module.exports);
|
|
63
64
|
var import_package = require("../package.json");
|
|
65
|
+
__reExport(src_exports, require("./constant"), module.exports);
|
|
66
|
+
__reExport(src_exports, require("./interface"), module.exports);
|
|
64
67
|
var import_Action = __toESM(require("./Action"));
|
|
65
|
-
var import_BackgroundTaskManager = __toESM(require("./BackgroundTaskManager"));
|
|
66
68
|
var import_BasicLayout = __toESM(require("./BasicLayout"));
|
|
67
69
|
var import_BatchOperationBar = __toESM(require("./BatchOperationBar"));
|
|
68
70
|
var import_Boundary = __toESM(require("./Boundary"));
|
|
69
|
-
__reExport(src_exports, require("./constant"), module.exports);
|
|
70
71
|
var import_ContentWithQuestion = __toESM(require("./ContentWithQuestion"));
|
|
71
72
|
var import_ContentWithIcon = __toESM(require("./ContentWithIcon"));
|
|
72
73
|
var import_Dialog = __toESM(require("./Dialog"));
|
|
@@ -75,11 +76,11 @@ var import_FullscreenBox = __toESM(require("./FullscreenBox"));
|
|
|
75
76
|
var import_GraphToolbar = __toESM(require("./GraphToolbar"));
|
|
76
77
|
var import_Highlight = __toESM(require("./Highlight"));
|
|
77
78
|
var import_IconFont = __toESM(require("./IconFont"));
|
|
78
|
-
__reExport(src_exports, require("./interface"), module.exports);
|
|
79
79
|
var import_Login = __toESM(require("./Login"));
|
|
80
80
|
var import_Lottie = __toESM(require("./Lottie"));
|
|
81
81
|
var import_NavMenu = __toESM(require("./NavMenu"));
|
|
82
82
|
var import_PageContainer = __toESM(require("./PageContainer"));
|
|
83
|
+
var import_FooterToolbar = __toESM(require("./FooterToolbar"));
|
|
83
84
|
var import_Password = __toESM(require("./Password"));
|
|
84
85
|
var import_Ranger = __toESM(require("./Ranger"));
|
|
85
86
|
var import_SideTip = __toESM(require("./SideTip"));
|
|
@@ -87,6 +88,7 @@ var import_TaskGraph = __toESM(require("./TaskGraph"));
|
|
|
87
88
|
var import_TreeSearch = __toESM(require("./TreeSearch"));
|
|
88
89
|
var import_Welcome = __toESM(require("./Welcome"));
|
|
89
90
|
var import_TagSelect = __toESM(require("./TagSelect"));
|
|
91
|
+
var import_BackgroundTaskManager = __toESM(require("./BackgroundTaskManager"));
|
|
90
92
|
// Annotate the CommonJS export names for ESM import in node:
|
|
91
93
|
0 && (module.exports = {
|
|
92
94
|
Action,
|
|
@@ -99,6 +101,7 @@ var import_TagSelect = __toESM(require("./TagSelect"));
|
|
|
99
101
|
ContentWithQuestion,
|
|
100
102
|
Dialog,
|
|
101
103
|
DocDialog,
|
|
104
|
+
FooterToolbar,
|
|
102
105
|
FullscreenBox,
|
|
103
106
|
GraphToolbar,
|
|
104
107
|
Highlight,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.32",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@ant-design/cssinjs": "^1.17.2",
|
|
38
38
|
"@ant-design/pro-components": "^2.6.34",
|
|
39
|
-
"@ant-design/pro-layout": "^7.17.
|
|
40
|
-
"@oceanbase/design": "^0.2.
|
|
39
|
+
"@ant-design/pro-layout": "^7.17.15",
|
|
40
|
+
"@oceanbase/design": "^0.2.31",
|
|
41
41
|
"@oceanbase/icons": "^0.2.9",
|
|
42
|
-
"@oceanbase/util": "^0.2.
|
|
42
|
+
"@oceanbase/util": "^0.2.12",
|
|
43
43
|
"ahooks": "^2.10.14",
|
|
44
44
|
"classnames": "^2.3.2",
|
|
45
45
|
"dayjs": "^1.11.10",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"highlightjs-solidity": "^2.0.6",
|
|
49
49
|
"hoist-non-react-statics": "^3.3.2",
|
|
50
50
|
"lodash": "^4.17.21",
|
|
51
|
-
"lottie-web": "^5.12.2",
|
|
52
51
|
"moment": "^2.29.4",
|
|
53
52
|
"path-to-regexp": "^6.2.1",
|
|
54
53
|
"randexp": "^0.5.3",
|
|
@@ -66,5 +65,5 @@
|
|
|
66
65
|
"react": ">=16.9.0",
|
|
67
66
|
"react-dom": ">=16.9.0"
|
|
68
67
|
},
|
|
69
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "532d9294abcd03743224d6a9d59d4f1c9ab71375"
|
|
70
69
|
}
|