@oceanbase/ui 1.0.0-alpha.2 → 1.0.0-alpha.3
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/style/index.d.ts +2 -2
- package/es/FooterToolbar/style/index.d.ts +0 -2
- package/es/FooterToolbar/style/index.js +0 -12
- package/es/Highlight/index.d.ts +1 -1
- package/es/ProCard/style/index.d.ts +2 -2
- package/es/ProCard/style/index.js +3 -2
- package/es/ProTable/style/index.d.ts +2 -2
- package/es/ProTable/style/index.js +6 -5
- package/lib/Action/Group.js +57 -46
- package/lib/Action/Item.js +14 -9
- package/lib/Action/style/index.d.ts +2 -2
- package/lib/BackgroundTaskManager/RefreshMan.js +3 -12
- package/lib/BackgroundTaskManager/index.js +3 -12
- package/lib/BasicLayout/Header.js +120 -62
- package/lib/BasicLayout/index.js +166 -143
- package/lib/BatchOperationBar/index.js +59 -44
- package/lib/Boundary/Components/Code.js +11 -5
- package/lib/Boundary/Components/Exception.js +33 -23
- package/lib/Boundary/Components/Function.js +11 -5
- package/lib/ContentWithIcon/index.js +30 -22
- package/lib/ContentWithQuestion/index.js +8 -3
- package/lib/DateRanger/PickerPanel.js +235 -217
- package/lib/DateRanger/Ranger.js +349 -313
- package/lib/Dialog/Anchor.js +8 -5
- package/lib/Dialog/EventProxy.js +3 -12
- package/lib/Dialog/index.js +132 -108
- package/lib/DocDialog/index.js +3 -2
- package/lib/FooterToolbar/index.js +3 -2
- package/lib/FooterToolbar/style/index.d.ts +0 -2
- package/lib/FooterToolbar/style/index.js +0 -17
- package/lib/FullscreenBox/index.js +16 -7
- package/lib/GraphToolbar/index.js +70 -58
- package/lib/Highlight/DiffView/DiffCells.js +17 -10
- package/lib/Highlight/DiffView/index.js +35 -31
- package/lib/Highlight/HighlightCell.js +13 -10
- package/lib/Highlight/JsonView.js +15 -14
- package/lib/Highlight/index.d.ts +1 -1
- package/lib/Highlight/index.js +50 -45
- package/lib/IconFont/index.js +2 -12
- package/lib/LightFilter/index.js +3 -2
- package/lib/LocaleDropdown/index.js +13 -20
- package/lib/Login/ActivateForm.js +53 -60
- package/lib/Login/LoginForm.js +118 -109
- package/lib/Login/RegisterForm.js +79 -86
- package/lib/Login/index.js +92 -64
- package/lib/NavMenu/index.js +9 -8
- package/lib/PageContainer/ItemRender.js +5 -5
- package/lib/PageContainer/index.js +9 -5
- package/lib/PageLoading/index.js +6 -16
- package/lib/Password/Content.js +38 -42
- package/lib/Password/index.js +83 -68
- package/lib/ProCard/index.js +5 -4
- package/lib/ProCard/style/index.d.ts +2 -2
- package/lib/ProCard/style/index.js +3 -2
- package/lib/ProTable/index.js +5 -4
- package/lib/ProTable/style/index.d.ts +2 -2
- package/lib/ProTable/style/index.js +6 -7
- package/lib/Ranger/QuickPicker.js +24 -15
- package/lib/Ranger/Ranger.js +37 -34
- package/lib/SideTip/Dragger.js +5 -4
- package/lib/SideTip/IconLoading.js +25 -25
- package/lib/SideTip/index.js +19 -10
- package/lib/TagSelect/Group.js +9 -5
- package/lib/TagSelect/Item.js +22 -18
- package/lib/TaskGraph/Graph.js +29 -24
- package/lib/TaskGraph/index.js +56 -50
- package/lib/TreeSearch/index.js +30 -35
- package/lib/Welcome/index.js +64 -37
- package/lib/Welcome/step.js +11 -4
- package/lib/locale/LocaleWrapper.js +15 -14
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
3
|
import type { OBToken } from '../../_util/genComponentStyleHook';
|
|
4
|
-
export declare const genActionStyle:
|
|
4
|
+
export declare const genActionStyle: (token: OBToken) => CSSObject;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
6
6
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
7
7
|
hashId: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
2
|
import type { FooterToolBarToken } from '@ant-design/pro-layout/es/components/FooterToolbar/style';
|
|
4
3
|
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
5
|
-
export declare const genCompactStyle: (componentCls: string, subComponentCls?: string) => CSSObject;
|
|
6
4
|
export declare const genFooterToolbarStyle: GenerateStyle<FooterToolBarToken>;
|
|
7
5
|
declare const _default: (prefixCls: string) => {
|
|
8
6
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
@@ -3,18 +3,6 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
4
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
5
|
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
6
|
-
export var genCompactStyle = function genCompactStyle(componentCls) {
|
|
7
|
-
var subComponentCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
8
|
-
return _defineProperty(_defineProperty(_defineProperty({}, "&".concat(componentCls, "-compact-item:not(").concat(componentCls, "-compact-last-item)").concat(componentCls, "-compact-first-item ").concat(subComponentCls), {
|
|
9
|
-
borderStartEndRadius: 0,
|
|
10
|
-
borderEndEndRadius: 0
|
|
11
|
-
}), "&".concat(componentCls, "-compact-item:not(").concat(componentCls, "-compact-first-item):not(").concat(componentCls, "-compact-last-item) ").concat(subComponentCls), {
|
|
12
|
-
borderRadius: 0
|
|
13
|
-
}), "&".concat(componentCls, "-compact-item:not(").concat(componentCls, "-compact-first-item)").concat(componentCls, "-compact-last-item ").concat(subComponentCls), {
|
|
14
|
-
borderStartStartRadius: 0,
|
|
15
|
-
borderEndStartRadius: 0
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
6
|
export var genFooterToolbarStyle = function genFooterToolbarStyle(token) {
|
|
19
7
|
var componentCls = token.componentCls,
|
|
20
8
|
colorBgBase = token.colorBgBase,
|
package/es/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: ("
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "json" | "jsx" | "tsx" | "javascript" | "typescript" | "groovy" | "java" | "python" | "bash" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "go" | "yaml" | "solidity")[];
|
|
33
33
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
34
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
35
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
3
|
import type { OBToken } from '../../_util/genComponentStyleHook';
|
|
4
|
-
export declare const genProCardStyle:
|
|
4
|
+
export declare const genProCardStyle: (token: OBToken, outerComponentCls?: string) => CSSObject;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
6
6
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
7
7
|
hashId: string;
|
|
@@ -6,10 +6,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { Card, Tabs } from '@oceanbase/design';
|
|
8
8
|
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
9
|
-
export var genProCardStyle = function genProCardStyle(token) {
|
|
10
|
-
var
|
|
9
|
+
export var genProCardStyle = function genProCardStyle(token, outerComponentCls) {
|
|
10
|
+
var innerComponentCls = token.componentCls,
|
|
11
11
|
antCls = token.antCls,
|
|
12
12
|
prefixCls = token.prefixCls;
|
|
13
|
+
var componentCls = outerComponentCls || innerComponentCls;
|
|
13
14
|
var tableComponentCls = "".concat(antCls, "-table");
|
|
14
15
|
var tabsComponentCls = "".concat(antCls, "-tabs");
|
|
15
16
|
var tabsPrefixCls = "".concat(prefixCls, "-tabs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
3
|
import type { OBToken } from '../../_util/genComponentStyleHook';
|
|
4
|
-
export declare const genProTableStyle:
|
|
4
|
+
export declare const genProTableStyle: (token: OBToken) => CSSObject;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
6
6
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
7
7
|
hashId: string;
|
|
@@ -6,22 +6,23 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { Card } from '@oceanbase/design';
|
|
8
8
|
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
9
|
+
import { genProCardStyle } from "../../ProCard/style";
|
|
9
10
|
export var genProTableStyle = function genProTableStyle(token) {
|
|
10
11
|
var antCls = token.antCls,
|
|
11
12
|
componentCls = token.componentCls,
|
|
12
13
|
proComponentsCls = token.proComponentsCls;
|
|
13
14
|
var proCardComponentCls = "".concat(proComponentsCls, "-card");
|
|
14
|
-
return _defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty({}, "".concat(proComponentsCls, "-query-filter-actions"), _defineProperty({}, "".concat(antCls, "-space").concat(antCls, "-space-horizontal").concat(antCls, "-space-align-center"), {
|
|
15
|
+
return _objectSpread(_defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty({}, "".concat(proComponentsCls, "-query-filter-actions"), _defineProperty({}, "".concat(antCls, "-space").concat(antCls, "-space-horizontal").concat(antCls, "-space-align-center"), {
|
|
15
16
|
flexDirection: 'row-reverse'
|
|
16
|
-
})), "".concat(proCardComponentCls, "
|
|
17
|
-
|
|
18
|
-
})
|
|
17
|
+
})), "& > ".concat(proCardComponentCls, ", ").concat(proCardComponentCls).concat(componentCls, "-search-light-filter"), {
|
|
18
|
+
boxShadow: 'none !important'
|
|
19
|
+
}), "".concat(proCardComponentCls).concat(proCardComponentCls, "-no-padding"), _objectSpread(_defineProperty({}, "".concat(proCardComponentCls, "-body"), _defineProperty({
|
|
19
20
|
paddingInline: 0
|
|
20
21
|
}, "".concat(componentCls, "-list-toolbar-container"), {
|
|
21
22
|
paddingInline: token.paddingLG
|
|
22
23
|
})), Card.genTableStyle(token.paddingLG, _objectSpread(_objectSpread({}, token), {}, {
|
|
23
24
|
componentCls: proCardComponentCls
|
|
24
|
-
})))));
|
|
25
|
+
}))))), genProCardStyle(token, proCardComponentCls));
|
|
25
26
|
};
|
|
26
27
|
export default (function (prefixCls) {
|
|
27
28
|
var useStyle = genComponentStyleHook('ProTable', function (token) {
|
package/lib/Action/Group.js
CHANGED
|
@@ -37,6 +37,7 @@ var import_design = require("@oceanbase/design");
|
|
|
37
37
|
var import_icons = require("@oceanbase/icons");
|
|
38
38
|
var import_lodash = require("lodash");
|
|
39
39
|
var import_style = __toESM(require("./style"));
|
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
41
|
var getOrder = ({ type, fixed }) => {
|
|
41
42
|
const ORDER_SET = { primary: 3, fixed: 2, default: 0 };
|
|
42
43
|
let order = ORDER_SET.default;
|
|
@@ -95,58 +96,68 @@ var Group_default = ({
|
|
|
95
96
|
const getDefaultDisabled = (key) => (shouldDisabled == null ? void 0 : shouldDisabled(key)) ?? false;
|
|
96
97
|
let moreDom;
|
|
97
98
|
if (ellipsisType === "button") {
|
|
98
|
-
moreDom = /* @__PURE__ */
|
|
99
|
+
moreDom = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
99
100
|
import_design.Button,
|
|
100
101
|
{
|
|
101
102
|
size: buttonSize,
|
|
102
|
-
icon: moreText ? void 0 : /* @__PURE__ */
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
icon: moreText ? void 0 : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.EllipsisOutlined, { style: { cursor: "pointer" } }),
|
|
104
|
+
children: moreText
|
|
105
|
+
}
|
|
105
106
|
);
|
|
106
107
|
} else {
|
|
107
|
-
moreDom = /* @__PURE__ */
|
|
108
|
+
moreDom = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Typography.Link, { children: moreText ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.EllipsisOutlined, { style: { cursor: "pointer" } }) });
|
|
108
109
|
}
|
|
109
110
|
return wrapSSR(
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
disabled =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
{
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
111
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Space, { size: ellipsisType === "button" ? 8 : 16, children: [
|
|
112
|
+
mainActions.map((action) => {
|
|
113
|
+
return import_react.default.cloneElement(action, {
|
|
114
|
+
// size should be covered by action props
|
|
115
|
+
size: buttonSize,
|
|
116
|
+
...action.props,
|
|
117
|
+
key: action.key,
|
|
118
|
+
enableLoading,
|
|
119
|
+
disabled: (0, import_lodash.isBoolean)(action.props.disabled) ? action.props.disabled : getDefaultDisabled(action.key)
|
|
120
|
+
});
|
|
121
|
+
}),
|
|
122
|
+
ellipsisActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
|
+
import_design.Dropdown,
|
|
124
|
+
{
|
|
125
|
+
placement: dropDownPlacement,
|
|
126
|
+
overlay: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Menu, { className: `${prefixCls}-more-menu`, children: ellipsisActions.map((action, index) => {
|
|
127
|
+
const actionKey = action.key;
|
|
128
|
+
let disabled = false;
|
|
129
|
+
if ((0, import_lodash.isBoolean)(action.props.disabled))
|
|
130
|
+
disabled = action.props.disabled;
|
|
131
|
+
else if (shouldDisabled)
|
|
132
|
+
disabled = shouldDisabled(action.key);
|
|
133
|
+
const actionDisabled = action.props.loading || ((0, import_lodash.isBoolean)(action.props.disabled) ? action.props.disabled : getDefaultDisabled(action.key));
|
|
134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
136
|
+
import_design.Menu.Item,
|
|
137
|
+
{
|
|
138
|
+
onClick: ({ domEvent }) => {
|
|
139
|
+
var _a, _b;
|
|
140
|
+
(_b = (_a = action.props).onClick) == null ? void 0 : _b.call(
|
|
141
|
+
_a,
|
|
142
|
+
domEvent
|
|
143
|
+
);
|
|
144
|
+
},
|
|
145
|
+
...(0, import_lodash.omit)(action.props, ["disabled"]),
|
|
146
|
+
disabled: actionDisabled,
|
|
147
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Tooltip, { title: action.props.tooltip, children: [
|
|
148
|
+
action.props.loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.LoadingOutlined, {}),
|
|
149
|
+
" ",
|
|
150
|
+
action.props.children || action
|
|
151
|
+
] })
|
|
152
|
+
},
|
|
153
|
+
actionKey ?? index.toString()
|
|
154
|
+
),
|
|
155
|
+
action.props.divider && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Menu.Divider, {})
|
|
156
|
+
] });
|
|
157
|
+
}) }),
|
|
158
|
+
children: moreDom
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
] })
|
|
151
162
|
);
|
|
152
163
|
};
|
package/lib/Action/Item.js
CHANGED
|
@@ -36,6 +36,7 @@ module.exports = __toCommonJS(Item_exports);
|
|
|
36
36
|
var import_icons = require("@oceanbase/icons");
|
|
37
37
|
var import_design = require("@oceanbase/design");
|
|
38
38
|
var import_react = __toESM(require("react"));
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
40
|
var ActionButton = class extends import_react.default.PureComponent {
|
|
40
41
|
constructor() {
|
|
41
42
|
super(...arguments);
|
|
@@ -45,7 +46,7 @@ var ActionButton = class extends import_react.default.PureComponent {
|
|
|
45
46
|
}
|
|
46
47
|
render() {
|
|
47
48
|
const { children, onClick, enableLoading = true, tooltip, loading, ...restProps } = this.props;
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Tooltip, { placement: "top", title: tooltip, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
49
50
|
import_design.Button,
|
|
50
51
|
{
|
|
51
52
|
loading: enableLoading && (loading || this.state.loading),
|
|
@@ -58,10 +59,10 @@ var ActionButton = class extends import_react.default.PureComponent {
|
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
|
-
...restProps
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
));
|
|
62
|
+
...restProps,
|
|
63
|
+
children
|
|
64
|
+
}
|
|
65
|
+
) });
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
68
|
ActionButton.__DISPLAY_NAME = "button";
|
|
@@ -85,7 +86,7 @@ var ActionLink = class extends import_react.default.PureComponent {
|
|
|
85
86
|
style,
|
|
86
87
|
...restProps
|
|
87
88
|
} = this.props;
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
90
|
import_design.Typography.Link,
|
|
90
91
|
{
|
|
91
92
|
style: { padding: 0, ...style },
|
|
@@ -99,9 +100,13 @@ var ActionLink = class extends import_react.default.PureComponent {
|
|
|
99
100
|
});
|
|
100
101
|
}
|
|
101
102
|
},
|
|
102
|
-
...restProps
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
...restProps,
|
|
104
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Tooltip, { placement: "top", title: tooltip, children: [
|
|
105
|
+
loading || this.state.disabled ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.LoadingOutlined, {}) : "",
|
|
106
|
+
" ",
|
|
107
|
+
children
|
|
108
|
+
] })
|
|
109
|
+
}
|
|
105
110
|
);
|
|
106
111
|
}
|
|
107
112
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
3
|
import type { OBToken } from '../../_util/genComponentStyleHook';
|
|
4
|
-
export declare const genActionStyle:
|
|
4
|
+
export declare const genActionStyle: (token: OBToken) => CSSObject;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
6
6
|
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
7
7
|
hashId: string;
|
|
@@ -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,14 +14,6 @@ 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
19
|
// src/BackgroundTaskManager/RefreshMan.tsx
|
|
@@ -34,8 +24,9 @@ __export(RefreshMan_exports, {
|
|
|
34
24
|
module.exports = __toCommonJS(RefreshMan_exports);
|
|
35
25
|
var import_ahooks = require("ahooks");
|
|
36
26
|
var import_design = require("@oceanbase/design");
|
|
37
|
-
var import_react =
|
|
27
|
+
var import_react = require("react");
|
|
38
28
|
var import_constants = require("./constants");
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
30
|
var RefreshMan = (0, import_react.forwardRef)((props, ref) => {
|
|
40
31
|
const {
|
|
41
32
|
run,
|
|
@@ -78,7 +69,7 @@ var RefreshMan = (0, import_react.forwardRef)((props, ref) => {
|
|
|
78
69
|
stopLoop();
|
|
79
70
|
};
|
|
80
71
|
}, [startLoop, stopLoop, timeout]);
|
|
81
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Spin, { spinning: spinning && refreshManLoading, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children }) });
|
|
82
73
|
});
|
|
83
74
|
// Annotate the CommonJS export names for ESM import in node:
|
|
84
75
|
0 && (module.exports = {
|
|
@@ -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,14 +14,6 @@ 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
19
|
// src/BackgroundTaskManager/index.tsx
|
|
@@ -34,10 +24,11 @@ __export(BackgroundTaskManager_exports, {
|
|
|
34
24
|
default: () => BackgroundTaskManager_default
|
|
35
25
|
});
|
|
36
26
|
module.exports = __toCommonJS(BackgroundTaskManager_exports);
|
|
37
|
-
var import_react =
|
|
27
|
+
var import_react = require("react");
|
|
38
28
|
var import_design = require("@oceanbase/design");
|
|
39
29
|
var import_constants = require("./constants");
|
|
40
30
|
var import_RefreshMan = require("./RefreshMan");
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
32
|
var NotificationApi = /* @__PURE__ */ ((NotificationApi2) => {
|
|
42
33
|
NotificationApi2["success"] = "success";
|
|
43
34
|
NotificationApi2["error"] = "error";
|
|
@@ -166,7 +157,7 @@ var BackgroundTaskManager_default = (0, import_react.forwardRef)((props, ref) =>
|
|
|
166
157
|
window.removeEventListener("beforeunload", onUnload);
|
|
167
158
|
};
|
|
168
159
|
}, [queue, preset]);
|
|
169
|
-
return /* @__PURE__ */
|
|
160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: !!taskQueue.length && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_RefreshMan.RefreshMan, { run, rollingFrequency }) });
|
|
170
161
|
});
|
|
171
162
|
// Annotate the CommonJS export names for ESM import in node:
|
|
172
163
|
0 && (module.exports = {
|