@oceanbase/ui 0.4.11 → 0.4.13
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.css +1 -1
- package/dist/ui.min.js +1 -1
- package/es/Action/Group.js +6 -7
- package/es/Action/Item.d.ts +3 -2
- package/es/BasicLayout/Header.d.ts +2 -0
- package/es/BasicLayout/Header.js +7 -2
- package/es/BasicLayout/locale/en-US.d.ts +1 -0
- package/es/BasicLayout/locale/en-US.js +1 -0
- package/es/BasicLayout/locale/zh-CN.d.ts +1 -0
- package/es/BasicLayout/locale/zh-CN.js +1 -0
- package/es/BasicLayout/locale/zh-TW.d.ts +1 -0
- package/es/BasicLayout/locale/zh-TW.js +1 -0
- package/es/Boundary/index.less +10 -18
- package/es/ContentWithIcon/index.js +1 -1
- package/es/DateRanger/PickerPanel.d.ts +1 -1
- package/es/DateRanger/PickerPanel.js +88 -140
- package/es/DateRanger/Ranger.js +2 -2
- package/es/Dialog/Anchor.d.ts +1 -1
- package/es/Dialog/EventProxy.d.ts +1 -1
- package/es/Highlight/DiffView/DiffCells.d.ts +1 -1
- package/es/Highlight/HighlightCell.d.ts +1 -1
- package/es/Highlight/JsonView.d.ts +1 -1
- package/es/Highlight/index.d.ts +1 -1
- package/es/IconFont/index.d.ts +1 -1
- package/es/Login/LoginForm.d.ts +8 -1
- package/es/Login/LoginForm.js +11 -8
- package/es/Login/index.less +1 -1
- package/es/NavMenu/index.d.ts +1 -1
- package/es/PageContainer/ItemRender.d.ts +1 -1
- package/es/ProCard/index.js +5 -4
- package/es/ProCard/style/index.js +6 -3
- package/es/ProTable/index.d.ts +9 -4
- package/es/ProTable/index.js +9 -4
- package/es/Ranger/QuickPicker.d.ts +1 -1
- package/es/SideTip/Dragger.d.ts +1 -1
- package/es/SideTip/IconLoading.d.ts +1 -1
- package/lib/Action/Group.js +15 -15
- package/lib/Action/Item.d.ts +3 -2
- package/lib/BasicLayout/Header.d.ts +2 -0
- package/lib/BasicLayout/Header.js +4 -0
- package/lib/BasicLayout/locale/en-US.d.ts +1 -0
- package/lib/BasicLayout/locale/en-US.js +1 -0
- package/lib/BasicLayout/locale/zh-CN.d.ts +1 -0
- package/lib/BasicLayout/locale/zh-CN.js +1 -0
- package/lib/BasicLayout/locale/zh-TW.d.ts +1 -0
- package/lib/BasicLayout/locale/zh-TW.js +1 -0
- package/lib/Boundary/index.less +10 -18
- package/lib/ContentWithIcon/index.js +1 -1
- package/lib/DateRanger/PickerPanel.d.ts +1 -1
- package/lib/DateRanger/PickerPanel.js +57 -122
- package/lib/DateRanger/Ranger.js +2 -2
- package/lib/Dialog/Anchor.d.ts +1 -1
- package/lib/Dialog/EventProxy.d.ts +1 -1
- package/lib/Highlight/DiffView/DiffCells.d.ts +1 -1
- package/lib/Highlight/HighlightCell.d.ts +1 -1
- package/lib/Highlight/JsonView.d.ts +1 -1
- package/lib/Highlight/index.d.ts +1 -1
- package/lib/IconFont/index.d.ts +1 -1
- package/lib/Login/LoginForm.d.ts +8 -1
- package/lib/Login/LoginForm.js +9 -4
- package/lib/Login/index.less +1 -1
- package/lib/NavMenu/index.d.ts +1 -1
- package/lib/PageContainer/ItemRender.d.ts +1 -1
- package/lib/ProCard/index.js +3 -3
- package/lib/ProCard/style/index.js +13 -4
- package/lib/ProTable/index.d.ts +9 -4
- package/lib/ProTable/index.js +8 -4
- package/lib/Ranger/QuickPicker.d.ts +1 -1
- package/lib/SideTip/Dragger.d.ts +1 -1
- package/lib/SideTip/IconLoading.d.ts +1 -1
- package/package.json +9 -9
package/es/Login/LoginForm.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { FormProps } from '@oceanbase/design
|
|
1
|
+
import type { FormProps, InputProps } from '@oceanbase/design';
|
|
2
|
+
import type { PasswordProps } from '@oceanbase/design/es/input';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import type { LoginLocale } from '.';
|
|
4
5
|
import './index.less';
|
|
@@ -15,6 +16,12 @@ export interface ILoginFormProps extends FormProps {
|
|
|
15
16
|
authCodeImg?: string;
|
|
16
17
|
otherLoginProps?: any;
|
|
17
18
|
onAuthCodeImgChange?: () => void;
|
|
19
|
+
passwordOptional?: boolean;
|
|
20
|
+
componentProps?: {
|
|
21
|
+
username: InputProps;
|
|
22
|
+
password: PasswordProps;
|
|
23
|
+
authCode: InputProps;
|
|
24
|
+
};
|
|
18
25
|
}
|
|
19
26
|
declare const Login: React.FC<ILoginFormProps>;
|
|
20
27
|
export default Login;
|
package/es/Login/LoginForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["loading", "locale", "errorMessage", "showAuthCode", "showOtherLoginButton", "authCodeImg", "otherLoginProps", "onAuthCodeImgChange"];
|
|
2
|
+
var _excluded = ["loading", "locale", "errorMessage", "showAuthCode", "showOtherLoginButton", "authCodeImg", "otherLoginProps", "onAuthCodeImgChange", "componentProps", "passwordOptional"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -32,6 +32,9 @@ var Login = function Login(_ref) {
|
|
|
32
32
|
authCodeImg = _ref.authCodeImg,
|
|
33
33
|
otherLoginProps = _ref.otherLoginProps,
|
|
34
34
|
onAuthCodeImgChange = _ref.onAuthCodeImgChange,
|
|
35
|
+
componentProps = _ref.componentProps,
|
|
36
|
+
_ref$passwordOptional = _ref.passwordOptional,
|
|
37
|
+
passwordOptional = _ref$passwordOptional === void 0 ? false : _ref$passwordOptional,
|
|
35
38
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
36
39
|
var _theme$useToken = theme.useToken(),
|
|
37
40
|
token = _theme$useToken.token;
|
|
@@ -59,7 +62,7 @@ var Login = function Login(_ref) {
|
|
|
59
62
|
required: true,
|
|
60
63
|
message: locale.usernameMessage
|
|
61
64
|
}],
|
|
62
|
-
children: /*#__PURE__*/_jsx(Input, {
|
|
65
|
+
children: /*#__PURE__*/_jsx(Input, _objectSpread({
|
|
63
66
|
prefix: /*#__PURE__*/_jsx(UserOutlined, {
|
|
64
67
|
style: {
|
|
65
68
|
color: token.colorIcon
|
|
@@ -73,14 +76,14 @@ var Login = function Login(_ref) {
|
|
|
73
76
|
setFocusInput('');
|
|
74
77
|
},
|
|
75
78
|
className: classNames(_defineProperty({}, "".concat(prefix, "-focus-input"), focusInput === 'username'))
|
|
76
|
-
})
|
|
79
|
+
}, (componentProps === null || componentProps === void 0 ? void 0 : componentProps.username) || {}))
|
|
77
80
|
}), /*#__PURE__*/_jsx(Form.Item, {
|
|
78
81
|
name: "password",
|
|
79
|
-
rules: [{
|
|
82
|
+
rules: passwordOptional ? [] : [{
|
|
80
83
|
required: true,
|
|
81
84
|
message: locale.passwordMessage
|
|
82
85
|
}],
|
|
83
|
-
children: /*#__PURE__*/_jsx(Input.Password, {
|
|
86
|
+
children: /*#__PURE__*/_jsx(Input.Password, _objectSpread({
|
|
84
87
|
visibilityToggle: true,
|
|
85
88
|
autoComplete: "current-password",
|
|
86
89
|
prefix: /*#__PURE__*/_jsx(LockOutlined, {
|
|
@@ -96,7 +99,7 @@ var Login = function Login(_ref) {
|
|
|
96
99
|
setFocusInput('');
|
|
97
100
|
},
|
|
98
101
|
className: focusInput === 'password' ? "".concat(prefix, "-focus-input") : ''
|
|
99
|
-
})
|
|
102
|
+
}, (componentProps === null || componentProps === void 0 ? void 0 : componentProps.password) || {}))
|
|
100
103
|
}), showAuthCode && /*#__PURE__*/_jsxs(Space, {
|
|
101
104
|
className: "".concat(prefix, "-auth-code"),
|
|
102
105
|
children: [/*#__PURE__*/_jsx(Form.Item, {
|
|
@@ -105,7 +108,7 @@ var Login = function Login(_ref) {
|
|
|
105
108
|
required: true,
|
|
106
109
|
message: '验证码不能为空'
|
|
107
110
|
}],
|
|
108
|
-
children: /*#__PURE__*/_jsx(Input, {
|
|
111
|
+
children: /*#__PURE__*/_jsx(Input, _objectSpread({
|
|
109
112
|
prefix: /*#__PURE__*/_jsx(SafetyCertificateOutlined, {
|
|
110
113
|
style: {
|
|
111
114
|
color: token.colorIcon
|
|
@@ -119,7 +122,7 @@ var Login = function Login(_ref) {
|
|
|
119
122
|
setFocusInput('');
|
|
120
123
|
},
|
|
121
124
|
className: classNames(_defineProperty({}, "".concat(prefix, "-focus-input"), focusInput === 'authCode'))
|
|
122
|
-
})
|
|
125
|
+
}, (componentProps === null || componentProps === void 0 ? void 0 : componentProps.authCode) || {}))
|
|
123
126
|
}), /*#__PURE__*/_jsxs("div", {
|
|
124
127
|
className: classNames("".concat(prefix, "-code-btn")),
|
|
125
128
|
children: [/*#__PURE__*/_jsx("img", {
|
package/es/Login/index.less
CHANGED
package/es/NavMenu/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export interface NavMenuProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
style?: React.CSSProperties;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: (props: NavMenuProps) => import("@emotion/react/
|
|
18
|
+
declare const _default: (props: NavMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default _default;
|
package/es/ProCard/index.js
CHANGED
|
@@ -10,6 +10,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
10
10
|
import React, { useContext } from 'react';
|
|
11
11
|
import { ProCard as AntProCard } from '@ant-design/pro-components';
|
|
12
12
|
import { ConfigProvider } from '@oceanbase/design';
|
|
13
|
+
import { isHorizontalPaddingZero } from '@oceanbase/design/es/_util';
|
|
13
14
|
import classNames from 'classnames';
|
|
14
15
|
import useStyle from "./style";
|
|
15
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -28,10 +29,10 @@ var ProCard = function ProCard(_ref) {
|
|
|
28
29
|
var prefixCls = getPrefixCls('pro-card', customizePrefixCls);
|
|
29
30
|
var _useStyle = useStyle(prefixCls),
|
|
30
31
|
wrapSSR = _useStyle.wrapSSR;
|
|
31
|
-
|
|
32
|
-
// ProCard body
|
|
33
|
-
var
|
|
34
|
-
var proCardCls = classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-has-title"), !!title), "".concat(prefixCls, "-no-body-padding"),
|
|
32
|
+
|
|
33
|
+
// ProCard body no horizontal padding
|
|
34
|
+
var noBodyHorizontalPadding = isHorizontalPaddingZero(bodyStyle === null || bodyStyle === void 0 ? void 0 : bodyStyle.padding) || ghost;
|
|
35
|
+
var proCardCls = classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-has-title"), !!title), "".concat(prefixCls, "-no-body-horizontal-padding"), noBodyHorizontalPadding), "".concat(prefixCls, "-no-divider"), !headerBordered), "".concat(prefixCls, "-contain-tabs"), !!tabs), className);
|
|
35
36
|
return wrapSSR( /*#__PURE__*/_jsx(AntProCard, _objectSpread({
|
|
36
37
|
prefixCls: customizePrefixCls,
|
|
37
38
|
ghost: ghost,
|
|
@@ -10,9 +10,10 @@ export var genProCardStyle = function genProCardStyle(token) {
|
|
|
10
10
|
var componentCls = token.componentCls,
|
|
11
11
|
antCls = token.antCls,
|
|
12
12
|
prefixCls = token.prefixCls;
|
|
13
|
+
var tableComponentCls = "".concat(antCls, "-table");
|
|
13
14
|
var tabsComponentCls = "".concat(antCls, "-tabs");
|
|
14
15
|
var tabsPrefixCls = "".concat(prefixCls, "-tabs");
|
|
15
|
-
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "div".concat(componentCls), {
|
|
16
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "div".concat(componentCls), {
|
|
16
17
|
borderRadius: token.borderRadiusLG
|
|
17
18
|
}), "".concat(componentCls, ":not(").concat(componentCls, "-border):not(").concat(componentCls, "-ghost)"), {
|
|
18
19
|
boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)'
|
|
@@ -25,9 +26,11 @@ export var genProCardStyle = function genProCardStyle(token) {
|
|
|
25
26
|
}), "".concat(componentCls, "-body"), {
|
|
26
27
|
paddingBlock: 0,
|
|
27
28
|
paddingInline: 0
|
|
28
|
-
})), "".concat(componentCls).concat(componentCls, "-no-
|
|
29
|
+
})), "&".concat(componentCls, "-has-title").concat(componentCls, "-no-divider:not(").concat(componentCls, "-contain-tabs)"), _defineProperty({}, "".concat(componentCls, "-body"), _defineProperty({}, "& > ".concat(tableComponentCls, "-wrapper ").concat(tableComponentCls, ":not(").concat(tableComponentCls, "-bordered):first-child"), {
|
|
30
|
+
marginTop: -token.marginSM
|
|
31
|
+
}))), "".concat(componentCls).concat(componentCls, "-no-body-horizontal-padding:not(").concat(componentCls, "-contain-tabs)"), _objectSpread(_defineProperty({}, "".concat(componentCls, "-header"), {
|
|
29
32
|
paddingBlockEnd: token.padding
|
|
30
|
-
}), Card.genTableStyle(token.paddingLG, token))), "".concat(componentCls).concat(componentCls, "-no-body-padding").concat(componentCls, "-size-small:not(").concat(componentCls, "-contain-tabs)"), _objectSpread(_defineProperty({}, "".concat(componentCls, "-header"), {
|
|
33
|
+
}), Card.genTableStyle(token.paddingLG, token))), "".concat(componentCls).concat(componentCls, "-no-body-horizontal-padding").concat(componentCls, "-size-small:not(").concat(componentCls, "-contain-tabs)"), _objectSpread(_defineProperty({}, "".concat(componentCls, "-header"), {
|
|
31
34
|
paddingBlockEnd: token.paddingXS
|
|
32
35
|
}), Card.genTableStyle(token.paddingSM, token))), "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tabs"), _objectSpread(_defineProperty({}, "".concat(tabsComponentCls, "-top, ").concat(tabsComponentCls, "-bottom"), _defineProperty({}, ">".concat(tabsComponentCls, "-nav ").concat(tabsComponentCls, "-nav-list"), {
|
|
33
36
|
marginBlockStart: 0,
|
package/es/ProTable/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ProTableProps } from '@ant-design/pro-components';
|
|
3
|
-
export
|
|
4
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ProTableProps as AntProTableProps } from '@ant-design/pro-components';
|
|
3
|
+
export interface ProTableProps<T, U, ValueType> extends AntProTableProps<T, U, ValueType> {
|
|
4
|
+
innerBordered?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function ProTable<T, U, ValueType>({ form, headerTitle, options, optionsRender, toolbar, toolBarRender, size, bordered, innerBordered, expandable, rowSelection, pagination: customPagination, footer, locale, cardProps: outerCardProps, prefixCls: customizePrefixCls, tableClassName, className, ...restProps }: ProTableProps<T, U, ValueType>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7
|
+
declare namespace ProTable {
|
|
8
|
+
var Summary;
|
|
9
|
+
}
|
|
5
10
|
export default ProTable;
|
package/es/ProTable/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["form", "headerTitle", "options", "optionsRender", "toolbar", "toolBarRender", "size", "expandable", "rowSelection", "pagination", "footer", "locale", "cardProps", "prefixCls", "tableClassName", "className"],
|
|
2
|
+
var _excluded = ["form", "headerTitle", "options", "optionsRender", "toolbar", "toolBarRender", "size", "bordered", "innerBordered", "expandable", "rowSelection", "pagination", "footer", "locale", "cardProps", "prefixCls", "tableClassName", "className"],
|
|
3
3
|
_excluded2 = ["emptyText"];
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -16,7 +16,9 @@ import { isEmpty } from 'lodash';
|
|
|
16
16
|
import useLightFilterStyle from "../LightFilter/style";
|
|
17
17
|
import useStyle from "./style";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
|
|
19
|
+
// type CompoundedComponent = React.FC<ProTableProps<T, U, ValueType>> & typeof AntProTable;
|
|
20
|
+
|
|
21
|
+
function ProTable(_ref) {
|
|
20
22
|
var form = _ref.form,
|
|
21
23
|
headerTitle = _ref.headerTitle,
|
|
22
24
|
options = _ref.options,
|
|
@@ -24,6 +26,8 @@ var ProTable = function ProTable(_ref) {
|
|
|
24
26
|
toolbar = _ref.toolbar,
|
|
25
27
|
toolBarRender = _ref.toolBarRender,
|
|
26
28
|
size = _ref.size,
|
|
29
|
+
bordered = _ref.bordered,
|
|
30
|
+
innerBordered = _ref.innerBordered,
|
|
27
31
|
expandable = _ref.expandable,
|
|
28
32
|
rowSelection = _ref.rowSelection,
|
|
29
33
|
customPagination = _ref.pagination,
|
|
@@ -42,7 +46,7 @@ var ProTable = function ProTable(_ref) {
|
|
|
42
46
|
var _Table$useStyle = Table.useStyle(tablePrefixCls),
|
|
43
47
|
tableWrapSSR = _Table$useStyle.wrapSSR;
|
|
44
48
|
var pagination = Table.useDefaultPagination(customPagination);
|
|
45
|
-
var tableCls = classNames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(tablePrefixCls, "-expandable"), !isEmpty(expandable)), "".concat(tablePrefixCls, "-selectable"), !!rowSelection), "".concat(tablePrefixCls, "-has-footer"), !!footer), tableClassName);
|
|
49
|
+
var tableCls = classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(tablePrefixCls, "-expandable"), !isEmpty(expandable)), "".concat(tablePrefixCls, "-selectable"), !!rowSelection), "".concat(tablePrefixCls, "-has-footer"), !!footer), "".concat(tablePrefixCls, "-inner-bordered"), innerBordered), tableClassName);
|
|
46
50
|
|
|
47
51
|
// customize LightFilter style
|
|
48
52
|
var lightFilterPrefixCls = getPrefixCls('pro-form-light-filter', customizePrefixCls);
|
|
@@ -65,6 +69,7 @@ var ProTable = function ProTable(_ref) {
|
|
|
65
69
|
, _objectSpread({
|
|
66
70
|
defaultSize: "large",
|
|
67
71
|
size: size,
|
|
72
|
+
bordered: bordered || innerBordered,
|
|
68
73
|
form: _objectSpread({
|
|
69
74
|
// query form should remove required mark
|
|
70
75
|
requiredMark: false
|
|
@@ -93,6 +98,6 @@ var ProTable = function ProTable(_ref) {
|
|
|
93
98
|
tableClassName: tableCls,
|
|
94
99
|
className: proTableCls
|
|
95
100
|
}, restProps)))));
|
|
96
|
-
}
|
|
101
|
+
}
|
|
97
102
|
ProTable.Summary = AntProTable.Summary;
|
|
98
103
|
export default ProTable;
|
|
@@ -13,5 +13,5 @@ export interface QuickPickerProps extends LocaleWrapperProps {
|
|
|
13
13
|
isMoment?: boolean;
|
|
14
14
|
size?: 'small' | 'large' | 'middle';
|
|
15
15
|
}
|
|
16
|
-
declare const _default: (props: QuickPickerProps) => import("@emotion/react/
|
|
16
|
+
declare const _default: (props: QuickPickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default _default;
|
package/es/SideTip/Dragger.d.ts
CHANGED
|
@@ -41,6 +41,6 @@ declare class Draggable extends React.Component<DraggableProps, DraggableState>
|
|
|
41
41
|
handleMouseDown: (e: any) => void;
|
|
42
42
|
handleMouseMove: (e: any) => void;
|
|
43
43
|
handleMouseUp: (e: any) => void;
|
|
44
|
-
render(): import("@emotion/react/
|
|
44
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
45
45
|
}
|
|
46
46
|
export default Draggable;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const iconLoading: (props: any) => import("@emotion/react/
|
|
1
|
+
declare const iconLoading: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default iconLoading;
|
package/lib/Action/Group.js
CHANGED
|
@@ -128,22 +128,22 @@ var Group_default = ({
|
|
|
128
128
|
else if (shouldDisabled)
|
|
129
129
|
disabled = shouldDisabled(action.key);
|
|
130
130
|
const actionDisabled = action.props.loading || ((0, import_lodash.isBoolean)(action.props.disabled) ? action.props.disabled : getDefaultDisabled(action.key));
|
|
131
|
-
return (
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
...(0, import_lodash.omit)(action.props, "disabled"),
|
|
142
|
-
disabled: actionDisabled
|
|
131
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
132
|
+
import_design.Menu.Item,
|
|
133
|
+
{
|
|
134
|
+
key: actionKey ?? index.toString(),
|
|
135
|
+
onClick: ({ domEvent }) => {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
(_b = (_a = action.props).onClick) == null ? void 0 : _b.call(
|
|
138
|
+
_a,
|
|
139
|
+
domEvent
|
|
140
|
+
);
|
|
143
141
|
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
...(0, import_lodash.omit)(action.props, ["disabled"]),
|
|
143
|
+
disabled: actionDisabled
|
|
144
|
+
},
|
|
145
|
+
/* @__PURE__ */ import_react.default.createElement(import_design.Tooltip, { title: action.props.tooltip }, action.props.loading && /* @__PURE__ */ import_react.default.createElement(import_icons.LoadingOutlined, null), " ", action.props.children || action)
|
|
146
|
+
), action.props.divider && /* @__PURE__ */ import_react.default.createElement(import_design.Menu.Divider, null));
|
|
147
147
|
}))
|
|
148
148
|
},
|
|
149
149
|
moreDom
|
package/lib/Action/Item.d.ts
CHANGED
|
@@ -10,13 +10,14 @@ export interface BaseProps extends ButtonProps {
|
|
|
10
10
|
enableLoading?: boolean;
|
|
11
11
|
tooltip?: string;
|
|
12
12
|
loading?: boolean;
|
|
13
|
+
divider?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare class ActionButton extends React.PureComponent<BaseProps> {
|
|
15
16
|
static __DISPLAY_NAME: string;
|
|
16
17
|
state: {
|
|
17
18
|
loading: boolean;
|
|
18
19
|
};
|
|
19
|
-
render(): import("@emotion/react/
|
|
20
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
21
|
}
|
|
21
22
|
export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
22
23
|
static __DISPLAY_NAME: string;
|
|
@@ -24,5 +25,5 @@ export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
|
24
25
|
loading: boolean;
|
|
25
26
|
disabled: boolean;
|
|
26
27
|
};
|
|
27
|
-
render(): import("@emotion/react/
|
|
28
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
29
|
}
|
|
@@ -5,6 +5,7 @@ export type OverlayFunc = () => React.ReactElement;
|
|
|
5
5
|
export interface HeaderLocale {
|
|
6
6
|
help: string;
|
|
7
7
|
welcome: string;
|
|
8
|
+
versionNotice?: string;
|
|
8
9
|
viewDocs: string;
|
|
9
10
|
downloadDocs?: string;
|
|
10
11
|
about: string;
|
|
@@ -27,6 +28,7 @@ export interface HeaderProps extends LocaleWrapperProps {
|
|
|
27
28
|
extra?: React.ReactNode;
|
|
28
29
|
pathname?: string;
|
|
29
30
|
welcomePath?: string;
|
|
31
|
+
versionNoticePath?: string;
|
|
30
32
|
docsPath?: string;
|
|
31
33
|
pdfPath?: string;
|
|
32
34
|
iconUrl?: string;
|
|
@@ -53,6 +53,7 @@ var Header = ({
|
|
|
53
53
|
extra,
|
|
54
54
|
pathname,
|
|
55
55
|
welcomePath,
|
|
56
|
+
versionNoticePath,
|
|
56
57
|
docsPath,
|
|
57
58
|
pdfPath,
|
|
58
59
|
iconUrl,
|
|
@@ -82,6 +83,8 @@ var Header = ({
|
|
|
82
83
|
var _a;
|
|
83
84
|
if (key === "welcome") {
|
|
84
85
|
navigate == null ? void 0 : navigate(welcomePath);
|
|
86
|
+
} else if (key === "versionNotice") {
|
|
87
|
+
(0, import_util.directTo)(versionNoticePath);
|
|
85
88
|
} else if (key === "viewDocs") {
|
|
86
89
|
(0, import_util.directTo)(docsPath);
|
|
87
90
|
} else if (key === "downloadDocs") {
|
|
@@ -96,6 +99,7 @@ var Header = ({
|
|
|
96
99
|
}
|
|
97
100
|
},
|
|
98
101
|
welcomePath && /* @__PURE__ */ import_react.default.createElement(import_design.Menu.Item, { key: "welcome" }, locale.welcome),
|
|
102
|
+
versionNoticePath && /* @__PURE__ */ import_react.default.createElement(import_design.Menu.Item, { key: "versionNotice" }, locale.versionNotice),
|
|
99
103
|
docsPath && /* @__PURE__ */ import_react.default.createElement(import_design.Menu.Item, { key: "viewDocs" }, locale.viewDocs),
|
|
100
104
|
pdfPath && /* @__PURE__ */ import_react.default.createElement(import_design.Menu.Item, { key: "downloadDocs" }, locale.downloadDocs),
|
|
101
105
|
/* @__PURE__ */ import_react.default.createElement(import_design.Menu.Item, { key: "about" }, `${locale.about}${appData.shortName ? ` ${appData.shortName}` : ""}`)
|
package/lib/Boundary/index.less
CHANGED
|
@@ -5,37 +5,29 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
7
|
height: 100%;
|
|
8
|
-
|
|
9
|
-
color: @colorTextTertiary;
|
|
10
|
-
font-size: 14px;
|
|
11
|
-
text-align: center;
|
|
12
|
-
}
|
|
13
|
-
.@{prefixCls}-btn-primary {
|
|
14
|
-
span {
|
|
15
|
-
color: #fff;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
8
|
+
|
|
18
9
|
.empty {
|
|
19
10
|
display: flex;
|
|
20
11
|
flex-direction: column;
|
|
21
12
|
align-items: center;
|
|
22
13
|
justify-content: center;
|
|
23
14
|
padding-bottom: 60px;
|
|
24
|
-
img {
|
|
15
|
+
> img {
|
|
25
16
|
height: 102px;
|
|
26
17
|
margin-bottom: 24px;
|
|
27
18
|
}
|
|
28
|
-
h4 {
|
|
19
|
+
> h4 {
|
|
29
20
|
margin: 0;
|
|
30
|
-
margin-bottom: 8px;
|
|
31
21
|
font-size: 18px;
|
|
32
22
|
}
|
|
33
|
-
|
|
23
|
+
> span {
|
|
24
|
+
margin-top: 8px;
|
|
25
|
+
color: @colorTextTertiary;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
text-align: center;
|
|
28
|
+
}
|
|
29
|
+
> button {
|
|
34
30
|
margin-top: 24px;
|
|
35
|
-
span {
|
|
36
|
-
padding: 0 6px;
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
}
|
|
39
31
|
}
|
|
40
32
|
}
|
|
41
33
|
}
|
|
@@ -34,7 +34,7 @@ __export(ContentWithIcon_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(ContentWithIcon_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_antd = require("antd");
|
|
37
|
-
var import_icons = require("@
|
|
37
|
+
var import_icons = require("@oceanbase/icons");
|
|
38
38
|
var import_classnames = __toESM(require("classnames"));
|
|
39
39
|
var import_util = require("../_util");
|
|
40
40
|
var import_index = require("./index.less");
|
|
@@ -19,5 +19,5 @@ export interface PickerPanelProps {
|
|
|
19
19
|
disabledDate: any;
|
|
20
20
|
locale: any;
|
|
21
21
|
}
|
|
22
|
-
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/
|
|
22
|
+
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default InternalPickerPanel;
|