doui-react 2.0.10 → 2.0.11
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/es/api/component/common.d.ts +1 -1
- package/es/api/component/common.js +55 -46
- package/es/form/component/utils.d.ts +14 -14
- package/es/grid/component/pagination.d.ts +10 -10
- package/es/icon/hook/index.d.ts +200 -200
- package/es/modal-prompt/component/utils.d.ts +1 -1
- package/es/open-modal/hook/use-modal.js +1 -1
- package/es/radio/component/abstract-box.d.ts +70 -70
- package/es/tabs/component/utils.d.ts +6 -6
- package/es/tooltip/component/index.d.ts +11 -10
- package/lib/api/component/common.d.ts +1 -1
- package/lib/api/component/common.js +55 -46
- package/lib/form/component/utils.d.ts +14 -14
- package/lib/grid/component/pagination.d.ts +10 -10
- package/lib/icon/hook/index.d.ts +200 -200
- package/lib/modal-prompt/component/utils.d.ts +1 -1
- package/lib/open-modal/hook/use-modal.js +2 -2
- package/lib/radio/component/abstract-box.d.ts +70 -70
- package/lib/tabs/component/utils.d.ts +6 -6
- package/lib/tooltip/component/index.d.ts +11 -10
- package/package.json +4 -2
|
@@ -8,8 +8,8 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
8
8
|
color?: string | undefined;
|
|
9
9
|
title?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
10
10
|
overlay?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
11
|
-
styles?: Partial<Record<"
|
|
12
|
-
classNames?: Partial<Record<"
|
|
11
|
+
styles?: Partial<Record<"body" | "root", import("react").CSSProperties>> | undefined;
|
|
12
|
+
classNames?: Partial<Record<"body" | "root", string>> | undefined;
|
|
13
13
|
style?: import("react").CSSProperties | undefined;
|
|
14
14
|
className?: string | undefined;
|
|
15
15
|
rootClassName?: string | undefined;
|
|
@@ -36,24 +36,24 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
36
36
|
defaultVisible?: boolean | undefined;
|
|
37
37
|
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
38
38
|
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
39
|
-
id?: string | undefined;
|
|
40
|
-
prefixCls?: string | undefined;
|
|
41
39
|
zIndex?: number | undefined;
|
|
42
40
|
animation?: string | undefined;
|
|
43
41
|
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
44
|
-
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
45
42
|
transitionName?: string | undefined;
|
|
46
|
-
|
|
47
|
-
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
48
|
-
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
49
|
-
fresh?: boolean | undefined;
|
|
50
|
-
mouseLeaveDelay?: number | undefined;
|
|
51
|
-
mouseEnterDelay?: number | undefined;
|
|
43
|
+
prefixCls?: string | undefined;
|
|
52
44
|
forceRender?: boolean | undefined;
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
id?: string | undefined;
|
|
46
|
+
mouseEnterDelay?: number | undefined;
|
|
47
|
+
mouseLeaveDelay?: number | undefined;
|
|
48
|
+
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
55
49
|
overlayClassName?: string | undefined;
|
|
50
|
+
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
51
|
+
overlayStyle?: import("react").CSSProperties | undefined;
|
|
52
|
+
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
53
|
+
popupVisible?: boolean | undefined;
|
|
54
|
+
fresh?: boolean | undefined;
|
|
56
55
|
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
56
|
+
showArrow?: boolean | import("@rc-component/trigger").ArrowType | undefined;
|
|
57
57
|
arrowContent?: import("react").ReactNode;
|
|
58
58
|
overlayInnerStyle?: import("react").CSSProperties | undefined;
|
|
59
59
|
};
|
|
@@ -65,75 +65,40 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
65
65
|
value?: any;
|
|
66
66
|
boxTooltip?: import("react").ReactNode | import("antd").TooltipProps;
|
|
67
67
|
inGroup?: boolean | undefined;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
autoFocus?: boolean | undefined;
|
|
68
|
+
style?: import("react").CSSProperties | undefined;
|
|
69
|
+
title?: string | undefined;
|
|
71
70
|
className?: string | undefined;
|
|
71
|
+
prefixCls?: string | undefined;
|
|
72
|
+
rootClassName?: string | undefined;
|
|
72
73
|
id?: string | undefined;
|
|
73
|
-
|
|
74
|
+
name?: string | undefined;
|
|
75
|
+
type?: string | undefined;
|
|
74
76
|
tabIndex?: number | undefined;
|
|
75
|
-
title?: string | undefined;
|
|
76
77
|
onKeyDown?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
77
78
|
onKeyPress?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
78
79
|
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
79
80
|
onMouseEnter?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
80
81
|
onMouseLeave?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
81
|
-
prefixCls?: string | undefined;
|
|
82
82
|
disabled?: boolean | undefined;
|
|
83
|
-
rootClassName?: string | undefined;
|
|
84
|
-
required?: boolean | undefined;
|
|
85
|
-
type?: string | undefined;
|
|
86
83
|
checked?: boolean | undefined;
|
|
84
|
+
required?: boolean | undefined;
|
|
85
|
+
defaultChecked?: boolean | undefined;
|
|
86
|
+
autoFocus?: boolean | undefined;
|
|
87
87
|
indeterminate?: boolean | undefined;
|
|
88
88
|
skipGroup?: boolean | undefined;
|
|
89
|
-
|
|
90
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
91
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
92
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
89
|
+
slot?: string | undefined;
|
|
93
90
|
accessKey?: string | undefined;
|
|
94
|
-
autoCapitalize?: (string & {}) | "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
95
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
96
|
-
contextMenu?: string | undefined;
|
|
97
91
|
dir?: string | undefined;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
color?: string | undefined;
|
|
93
|
+
content?: string | undefined;
|
|
94
|
+
direction?: import("antd/es/config-provider").DirectionType;
|
|
95
|
+
translate?: "no" | "yes" | undefined;
|
|
96
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
101
97
|
lang?: string | undefined;
|
|
102
|
-
nonce?: string | undefined;
|
|
103
|
-
slot?: string | undefined;
|
|
104
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
105
|
-
translate?: "yes" | "no" | undefined;
|
|
106
|
-
radioGroup?: string | undefined;
|
|
107
98
|
role?: import("react").AriaRole | undefined;
|
|
108
|
-
about?: string | undefined;
|
|
109
|
-
content?: string | undefined;
|
|
110
|
-
datatype?: string | undefined;
|
|
111
|
-
inlist?: any;
|
|
112
|
-
prefix?: string | undefined;
|
|
113
|
-
property?: string | undefined;
|
|
114
|
-
rel?: string | undefined;
|
|
115
|
-
resource?: string | undefined;
|
|
116
|
-
rev?: string | undefined;
|
|
117
|
-
typeof?: string | undefined;
|
|
118
|
-
vocab?: string | undefined;
|
|
119
|
-
autoCorrect?: string | undefined;
|
|
120
|
-
autoSave?: string | undefined;
|
|
121
|
-
color?: string | undefined;
|
|
122
|
-
itemProp?: string | undefined;
|
|
123
|
-
itemScope?: boolean | undefined;
|
|
124
|
-
itemType?: string | undefined;
|
|
125
|
-
itemID?: string | undefined;
|
|
126
|
-
itemRef?: string | undefined;
|
|
127
|
-
results?: number | undefined;
|
|
128
|
-
security?: string | undefined;
|
|
129
|
-
unselectable?: "off" | "on" | undefined;
|
|
130
|
-
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
131
|
-
is?: string | undefined;
|
|
132
|
-
exportparts?: string | undefined;
|
|
133
|
-
part?: string | undefined;
|
|
134
99
|
"aria-activedescendant"?: string | undefined;
|
|
135
100
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
136
|
-
"aria-autocomplete"?: "
|
|
101
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
137
102
|
"aria-braillelabel"?: string | undefined;
|
|
138
103
|
"aria-brailleroledescription"?: string | undefined;
|
|
139
104
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -143,17 +108,17 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
143
108
|
"aria-colindextext"?: string | undefined;
|
|
144
109
|
"aria-colspan"?: number | undefined;
|
|
145
110
|
"aria-controls"?: string | undefined;
|
|
146
|
-
"aria-current"?: boolean | "page" | "true" | "false" | "step" | "location" | "date" |
|
|
111
|
+
"aria-current"?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
147
112
|
"aria-describedby"?: string | undefined;
|
|
148
113
|
"aria-description"?: string | undefined;
|
|
149
114
|
"aria-details"?: string | undefined;
|
|
150
115
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
151
|
-
"aria-dropeffect"?: "
|
|
116
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
152
117
|
"aria-errormessage"?: string | undefined;
|
|
153
118
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
154
119
|
"aria-flowto"?: string | undefined;
|
|
155
120
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
156
|
-
"aria-haspopup"?: boolean | "
|
|
121
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
157
122
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
158
123
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
159
124
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -164,13 +129,13 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
164
129
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
165
130
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
166
131
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
167
|
-
"aria-orientation"?: "
|
|
132
|
+
"aria-orientation"?: "vertical" | "horizontal" | undefined;
|
|
168
133
|
"aria-owns"?: string | undefined;
|
|
169
134
|
"aria-placeholder"?: string | undefined;
|
|
170
135
|
"aria-posinset"?: number | undefined;
|
|
171
136
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
172
137
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
173
|
-
"aria-relevant"?: "
|
|
138
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
174
139
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
175
140
|
"aria-roledescription"?: string | undefined;
|
|
176
141
|
"aria-rowcount"?: number | undefined;
|
|
@@ -208,6 +173,7 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
208
173
|
onInputCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
209
174
|
onReset?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
210
175
|
onResetCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
176
|
+
onSubmit?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
211
177
|
onSubmitCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
212
178
|
onInvalid?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
213
179
|
onInvalidCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
@@ -336,8 +302,42 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
336
302
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
337
303
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
338
304
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
339
|
-
direction?: import("antd/es/config-provider").DirectionType;
|
|
340
305
|
tooltip?: import("react").ReactNode | import("antd").TooltipProps;
|
|
306
|
+
hidden?: boolean | undefined;
|
|
307
|
+
contextMenu?: string | undefined;
|
|
308
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
309
|
+
prefix?: string | undefined;
|
|
310
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
311
|
+
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
312
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
313
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
314
|
+
enterKeyHint?: "search" | "done" | "enter" | "next" | "go" | "previous" | "send" | undefined;
|
|
315
|
+
nonce?: string | undefined;
|
|
316
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
317
|
+
radioGroup?: string | undefined;
|
|
318
|
+
about?: string | undefined;
|
|
319
|
+
datatype?: string | undefined;
|
|
320
|
+
inlist?: any;
|
|
321
|
+
property?: string | undefined;
|
|
322
|
+
rel?: string | undefined;
|
|
323
|
+
resource?: string | undefined;
|
|
324
|
+
rev?: string | undefined;
|
|
325
|
+
typeof?: string | undefined;
|
|
326
|
+
vocab?: string | undefined;
|
|
327
|
+
autoCorrect?: string | undefined;
|
|
328
|
+
autoSave?: string | undefined;
|
|
329
|
+
itemProp?: string | undefined;
|
|
330
|
+
itemScope?: boolean | undefined;
|
|
331
|
+
itemType?: string | undefined;
|
|
332
|
+
itemID?: string | undefined;
|
|
333
|
+
itemRef?: string | undefined;
|
|
334
|
+
results?: number | undefined;
|
|
335
|
+
security?: string | undefined;
|
|
336
|
+
unselectable?: "off" | "on" | undefined;
|
|
337
|
+
inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
|
338
|
+
is?: string | undefined;
|
|
339
|
+
exportparts?: string | undefined;
|
|
340
|
+
part?: string | undefined;
|
|
341
341
|
rows?: number | false | undefined;
|
|
342
342
|
autoShowTooltip?: boolean | undefined;
|
|
343
343
|
refs?: import("../../api").Refs | undefined;
|
|
@@ -6,17 +6,17 @@ export declare function getRenderTabBar({ type, items, size, tabBarGutter, tabBa
|
|
|
6
6
|
export declare function generateTabItems({ items }: TabsProps): {
|
|
7
7
|
label: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
8
|
key: string;
|
|
9
|
-
children?: import("react").ReactNode;
|
|
10
|
-
className?: string | undefined;
|
|
11
|
-
id?: string | undefined;
|
|
12
9
|
style?: import("react").CSSProperties | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
children?: import("react").ReactNode;
|
|
12
|
+
closable?: boolean | undefined;
|
|
13
13
|
prefixCls?: string | undefined;
|
|
14
|
-
|
|
14
|
+
closeIcon?: import("react").ReactNode;
|
|
15
15
|
forceRender?: boolean | undefined;
|
|
16
|
+
id?: string | undefined;
|
|
16
17
|
icon?: import("react").ReactNode;
|
|
17
|
-
closable?: boolean | undefined;
|
|
18
|
-
closeIcon?: import("react").ReactNode;
|
|
19
18
|
active?: boolean | undefined;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
20
|
destroyInactiveTabPane?: boolean | undefined;
|
|
21
21
|
animated?: boolean | undefined;
|
|
22
22
|
tabKey?: string | undefined;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { getPopupContainer } from "../../api";
|
|
2
3
|
import { TooltipProps } from "..";
|
|
3
4
|
export declare const tooltipOverlayClassName: string;
|
|
4
5
|
export declare function getTooltipProps(props: TooltipProps): {
|
|
5
6
|
color?: string | undefined;
|
|
6
7
|
title?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
7
8
|
overlay?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
8
|
-
styles?: Partial<Record<"
|
|
9
|
-
classNames: Partial<Record<"
|
|
9
|
+
styles?: Partial<Record<"body" | "root", import("react").CSSProperties>> | undefined;
|
|
10
|
+
classNames: Partial<Record<"body" | "root", string>>;
|
|
10
11
|
style?: import("react").CSSProperties | undefined;
|
|
11
12
|
className?: string | undefined;
|
|
12
13
|
rootClassName?: string | undefined;
|
|
@@ -19,7 +20,7 @@ export declare function getTooltipProps(props: TooltipProps): {
|
|
|
19
20
|
pointAtCenter?: boolean | undefined;
|
|
20
21
|
};
|
|
21
22
|
autoAdjustOverflow?: boolean | import("antd/es/tooltip").AdjustOverflow | undefined;
|
|
22
|
-
getPopupContainer:
|
|
23
|
+
getPopupContainer: typeof getPopupContainer;
|
|
23
24
|
children?: import("react").ReactNode;
|
|
24
25
|
destroyTooltipOnHide?: boolean | {
|
|
25
26
|
keepParent?: boolean | undefined;
|
|
@@ -40,15 +41,15 @@ export declare function getTooltipProps(props: TooltipProps): {
|
|
|
40
41
|
prefixCls?: string | undefined;
|
|
41
42
|
forceRender?: boolean | undefined;
|
|
42
43
|
id?: string | undefined;
|
|
43
|
-
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
44
|
-
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
45
|
-
fresh?: boolean | undefined;
|
|
46
|
-
mouseLeaveDelay?: number | undefined;
|
|
47
44
|
mouseEnterDelay?: number | undefined;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
overlayStyle?: import("react").CSSProperties | undefined;
|
|
45
|
+
mouseLeaveDelay?: number | undefined;
|
|
46
|
+
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
51
47
|
overlayClassName?: string | undefined;
|
|
48
|
+
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
49
|
+
overlayStyle?: import("react").CSSProperties | undefined;
|
|
50
|
+
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
51
|
+
popupVisible?: boolean | undefined;
|
|
52
|
+
fresh?: boolean | undefined;
|
|
52
53
|
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
53
54
|
showArrow?: boolean | import("@rc-component/trigger").ArrowType | undefined;
|
|
54
55
|
arrowContent?: import("react").ReactNode;
|
|
@@ -18,5 +18,5 @@ export declare function includesNonStrictMode(options?: Array<OptionType>, value
|
|
|
18
18
|
export declare function mergeProps<T, U>(originProps: T, patchProps: U): {} & T & U;
|
|
19
19
|
export declare function mergeFunction(...fns: Array<FunctionType | undefined>): (...args: any[]) => void;
|
|
20
20
|
export declare function transformNullToUndefined<T>(value: T): T;
|
|
21
|
-
export declare function wait(fn: Function, timeout?: number): Promise<
|
|
21
|
+
export declare function wait(fn: Function, timeout?: number): Promise<boolean>;
|
|
22
22
|
export {};
|
|
@@ -21,8 +21,8 @@ var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helper
|
|
|
21
21
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
22
22
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
23
23
|
require("dayjs/locale/zh-cn");
|
|
24
|
-
var _delay = _interopRequireDefault(require("delay"));
|
|
25
24
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
25
|
+
var _pWaitFor = _interopRequireDefault(require("p-wait-for"));
|
|
26
26
|
var _react = require("react");
|
|
27
27
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
28
28
|
_dayjs.default.locale('zh-cn');
|
|
@@ -118,49 +118,58 @@ function transformNullToUndefined(value) {
|
|
|
118
118
|
}
|
|
119
119
|
return value;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
121
|
+
function checkCondition(_x) {
|
|
122
|
+
return _checkCondition.apply(this, arguments);
|
|
123
|
+
}
|
|
124
|
+
function _checkCondition() {
|
|
125
|
+
_checkCondition = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(fn) {
|
|
126
|
+
var result;
|
|
127
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
128
|
+
while (1) switch (_context.prev = _context.next) {
|
|
129
|
+
case 0:
|
|
130
|
+
_context.next = 2;
|
|
131
|
+
return fn();
|
|
132
|
+
case 2:
|
|
133
|
+
result = _context.sent;
|
|
134
|
+
return _context.abrupt("return", !!result);
|
|
135
|
+
case 4:
|
|
136
|
+
case "end":
|
|
137
|
+
return _context.stop();
|
|
138
|
+
}
|
|
139
|
+
}, _callee);
|
|
140
|
+
}));
|
|
141
|
+
return _checkCondition.apply(this, arguments);
|
|
142
|
+
}
|
|
143
|
+
function wait(_x2) {
|
|
144
|
+
return _wait.apply(this, arguments);
|
|
145
|
+
}
|
|
146
|
+
function _wait() {
|
|
147
|
+
_wait = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(fn) {
|
|
148
|
+
var timeout,
|
|
149
|
+
_args2 = arguments;
|
|
150
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
151
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
152
|
+
case 0:
|
|
153
|
+
timeout = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : 30 * 1000;
|
|
154
|
+
_context2.prev = 1;
|
|
155
|
+
_context2.next = 4;
|
|
156
|
+
return (0, _pWaitFor.default)(function () {
|
|
157
|
+
return checkCondition(fn);
|
|
158
|
+
}, {
|
|
159
|
+
interval: 300,
|
|
160
|
+
timeout: timeout
|
|
161
|
+
});
|
|
162
|
+
case 4:
|
|
163
|
+
return _context2.abrupt("return", true);
|
|
164
|
+
case 7:
|
|
165
|
+
_context2.prev = 7;
|
|
166
|
+
_context2.t0 = _context2["catch"](1);
|
|
167
|
+
return _context2.abrupt("return", false);
|
|
168
|
+
case 10:
|
|
169
|
+
case "end":
|
|
170
|
+
return _context2.stop();
|
|
171
|
+
}
|
|
172
|
+
}, _callee2, null, [[1, 7]]);
|
|
173
|
+
}));
|
|
174
|
+
return _wait.apply(this, arguments);
|
|
166
175
|
}
|
|
@@ -12,8 +12,8 @@ export declare function getFormItemProps(props: any): {
|
|
|
12
12
|
color?: string | undefined;
|
|
13
13
|
title?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
14
14
|
overlay?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
15
|
-
styles?: Partial<Record<"
|
|
16
|
-
classNames: Partial<Record<"
|
|
15
|
+
styles?: Partial<Record<"body" | "root", import("react").CSSProperties>> | undefined;
|
|
16
|
+
classNames: Partial<Record<"body" | "root", string>>;
|
|
17
17
|
rootClassName?: string | undefined;
|
|
18
18
|
placement?: import("antd/es/tooltip").TooltipPlacement | undefined;
|
|
19
19
|
builtinPlacements?: import("@rc-component/trigger").BuildInPlacements | undefined;
|
|
@@ -38,24 +38,24 @@ export declare function getFormItemProps(props: any): {
|
|
|
38
38
|
defaultVisible?: boolean | undefined;
|
|
39
39
|
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
40
40
|
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
41
|
-
id?: string | undefined;
|
|
42
|
-
prefixCls?: string | undefined;
|
|
43
41
|
zIndex?: number | undefined;
|
|
44
42
|
animation?: string | undefined;
|
|
45
43
|
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
46
|
-
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
47
44
|
transitionName?: string | undefined;
|
|
48
|
-
|
|
49
|
-
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
50
|
-
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
51
|
-
fresh?: boolean | undefined;
|
|
52
|
-
mouseLeaveDelay?: number | undefined;
|
|
53
|
-
mouseEnterDelay?: number | undefined;
|
|
45
|
+
prefixCls?: string | undefined;
|
|
54
46
|
forceRender?: boolean | undefined;
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
mouseEnterDelay?: number | undefined;
|
|
49
|
+
mouseLeaveDelay?: number | undefined;
|
|
50
|
+
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
57
51
|
overlayClassName?: string | undefined;
|
|
52
|
+
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
53
|
+
overlayStyle?: import("react").CSSProperties | undefined;
|
|
54
|
+
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
55
|
+
popupVisible?: boolean | undefined;
|
|
56
|
+
fresh?: boolean | undefined;
|
|
58
57
|
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
58
|
+
showArrow?: boolean | import("@rc-component/trigger").ArrowType | undefined;
|
|
59
59
|
arrowContent?: import("react").ReactNode;
|
|
60
60
|
overlayInnerStyle?: import("react").CSSProperties | undefined;
|
|
61
61
|
icon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -85,7 +85,7 @@ export declare function transformPathToName(path?: NamePath): string | undefined
|
|
|
85
85
|
export declare function transformKeyToPath(params?: Record<string, any>): Record<string, any>;
|
|
86
86
|
export declare function parseFormFailedError(error: ValidateErrorEntity): Record<string, string>;
|
|
87
87
|
export declare function noStyle(item: FormItemProps): boolean;
|
|
88
|
-
export declare function transformOptions(item: FormItemProps, values: FormValues, params: CommonParams): ((values: FormValues, params: import("..").OptionsParams) => import("../../api").FunctionReturn<SelectOptions>) | ((search?: string) => import("../../api").FunctionReturn<SelectOptions>) |
|
|
88
|
+
export declare function transformOptions(item: FormItemProps, values: FormValues, params: CommonParams): import("../../api").FunctionReturn<SelectOptions> | ((values: FormValues, params: import("..").OptionsParams) => import("../../api").FunctionReturn<SelectOptions>) | ((search?: string) => import("../../api").FunctionReturn<SelectOptions>) | undefined;
|
|
89
89
|
interface FocusFirstInputParams extends CommonParams {
|
|
90
90
|
focusFirstOnMount: FormProps['focusFirstOnMount'];
|
|
91
91
|
}
|
|
@@ -11,7 +11,7 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
11
11
|
current: number;
|
|
12
12
|
total: number;
|
|
13
13
|
onChange: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
14
|
-
position?: ("none" | "
|
|
14
|
+
position?: ("none" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter")[] | undefined;
|
|
15
15
|
showQuickJumper?: boolean | {
|
|
16
16
|
goButton?: import("react").ReactNode;
|
|
17
17
|
} | undefined;
|
|
@@ -23,12 +23,12 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
23
23
|
showSizeChanger?: boolean | import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> | undefined;
|
|
24
24
|
selectComponentClass?: any;
|
|
25
25
|
pageSizeOptions?: (string | number)[] | undefined;
|
|
26
|
-
className?: string | undefined;
|
|
27
26
|
style?: import("react").CSSProperties | undefined;
|
|
27
|
+
className?: string | undefined;
|
|
28
28
|
prefixCls?: string | undefined;
|
|
29
29
|
"aria-activedescendant"?: string | undefined;
|
|
30
30
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
31
|
-
"aria-autocomplete"?: "
|
|
31
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
32
32
|
"aria-braillelabel"?: string | undefined;
|
|
33
33
|
"aria-brailleroledescription"?: string | undefined;
|
|
34
34
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -38,17 +38,17 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
38
38
|
"aria-colindextext"?: string | undefined;
|
|
39
39
|
"aria-colspan"?: number | undefined;
|
|
40
40
|
"aria-controls"?: string | undefined;
|
|
41
|
-
"aria-current"?: boolean | "page" | "true" | "false" | "step" | "location" | "date" |
|
|
41
|
+
"aria-current"?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
42
42
|
"aria-describedby"?: string | undefined;
|
|
43
43
|
"aria-description"?: string | undefined;
|
|
44
44
|
"aria-details"?: string | undefined;
|
|
45
45
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
46
|
-
"aria-dropeffect"?: "
|
|
46
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
47
47
|
"aria-errormessage"?: string | undefined;
|
|
48
48
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
49
49
|
"aria-flowto"?: string | undefined;
|
|
50
50
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
51
|
-
"aria-haspopup"?: boolean | "
|
|
51
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
52
52
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
53
53
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
54
54
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -65,7 +65,7 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
65
65
|
"aria-posinset"?: number | undefined;
|
|
66
66
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
67
67
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
68
|
-
"aria-relevant"?: "
|
|
68
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
69
69
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
70
70
|
"aria-roledescription"?: string | undefined;
|
|
71
71
|
"aria-rowcount"?: number | undefined;
|
|
@@ -80,10 +80,10 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
80
80
|
"aria-valuenow"?: number | undefined;
|
|
81
81
|
"aria-valuetext"?: string | undefined;
|
|
82
82
|
disabled?: boolean | undefined;
|
|
83
|
-
align?: "start" | "end" | "center" | undefined;
|
|
84
83
|
locale?: import("rc-pagination").PaginationLocale | undefined;
|
|
85
84
|
prevIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
86
85
|
nextIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
86
|
+
align?: "center" | "end" | "start" | undefined;
|
|
87
87
|
selectPrefixCls?: string | undefined;
|
|
88
88
|
defaultCurrent?: number | undefined;
|
|
89
89
|
defaultPageSize?: number | undefined;
|
|
@@ -98,9 +98,9 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
98
98
|
jumpPrevIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
99
99
|
jumpNextIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
100
100
|
onShowSizeChange?: ((current: number, size: number) => void) | undefined;
|
|
101
|
-
itemRender?: ((page: number, type: "page" | "
|
|
101
|
+
itemRender?: ((page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
102
102
|
showTotal?: ((total: number, range: [number, number]) => import("react").ReactNode) | undefined;
|
|
103
|
-
justify?: "
|
|
103
|
+
justify?: "center" | "left" | "right" | "between" | undefined;
|
|
104
104
|
};
|
|
105
105
|
export type PaginationProps = TablePaginationConfig & Pick<HStackProps, 'justify'>;
|
|
106
106
|
export declare function Pagination({ justify, className, style, ...props }: PaginationProps): import("@emotion/react/jsx-runtime").JSX.Element;
|