@para-ui/core 2.2.40 → 2.2.42
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/AutoBox/index.d.ts +34 -34
- package/AutoTips/index.d.ts +27 -27
- package/AutoTips/index.js +1 -1
- package/Breadcrumbs/index.d.ts +39 -39
- package/Breadcrumbs/index.js +1 -1
- package/Button/SplitButton.d.ts +61 -61
- package/Button/index.d.ts +56 -56
- package/Button/lang/en_US.d.ts +4 -4
- package/Button/lang/index.d.ts +9 -9
- package/Button/lang/zh_CN.d.ts +4 -4
- package/ButtonGroup/index.d.ts +33 -33
- package/ButtonGroup/index.js +2 -2
- package/Carousel/index.d.ts +30 -30
- package/Cascader/index.d.ts +54 -54
- package/Cascader/lang/en_US.d.ts +4 -4
- package/Cascader/lang/index.d.ts +9 -9
- package/Cascader/lang/zh_CN.d.ts +4 -4
- package/Checkbox/index.d.ts +40 -40
- package/CheckboxGroup/index.d.ts +46 -46
- package/CheckboxGroup/index.js +2 -2
- package/Collapse/collapsePanel.d.ts +30 -30
- package/Collapse/index.d.ts +57 -57
- package/Collapse/motion.d.ts +5 -5
- package/Collapse/util.d.ts +11 -11
- package/CollapseBox/index.d.ts +27 -27
- package/CollapseBox/util.d.ts +5 -5
- package/CollapseLayout/index.d.ts +51 -51
- package/ColorPicker/index.d.ts +4 -4
- package/ComboSelect/WithTabsCombo/index.d.ts +11 -11
- package/ComboSelect/WithTabsCombo/interface.d.ts +141 -141
- package/ComboSelect/index.d.ts +11 -11
- package/ComboSelect/index.js +1 -1
- package/ComboSelect/interface.d.ts +149 -149
- package/ComboSelect/lang/en_US.d.ts +9 -9
- package/ComboSelect/lang/index.d.ts +19 -19
- package/ComboSelect/lang/zh_CN.d.ts +9 -9
- package/ComboSelect/utils.d.ts +12 -12
- package/Container/index.d.ts +77 -77
- package/DatePicker/PickerButton.d.ts +3 -3
- package/DatePicker/PickerTag.d.ts +3 -3
- package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -4
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -11
- package/DatePicker/generatePicker/index.d.ts +77 -77
- package/DatePicker/index.d.ts +18 -18
- package/DatePicker/lang/en_US.d.ts +3 -3
- package/DatePicker/lang/index.d.ts +7 -7
- package/DatePicker/lang/zh_CN.d.ts +3 -3
- package/DatePicker/util.d.ts +20 -20
- package/Desktop/index.d.ts +55 -55
- package/Drawer/index.d.ts +11 -11
- package/Drawer/interface.d.ts +83 -83
- package/Drawer/lang/en_US.d.ts +5 -5
- package/Drawer/lang/index.d.ts +11 -11
- package/Drawer/lang/zh_CN.d.ts +5 -5
- package/Dropdown/index.d.ts +39 -39
- package/DynamicMultiBox/formItem.d.ts +13 -13
- package/DynamicMultiBox/index.d.ts +4 -4
- package/DynamicMultiBox/index.js +2 -2
- package/DynamicMultiBox/interface.d.ts +161 -161
- package/DynamicMultiBox/rowForm.d.ts +24 -24
- package/Empty/images/index.d.ts +2 -2
- package/Empty/index.d.ts +30 -30
- package/Empty/lang/en_US.d.ts +6 -6
- package/Empty/lang/index.d.ts +13 -13
- package/Empty/lang/zh_CN.d.ts +6 -6
- package/Form/index.d.ts +181 -181
- package/Form/index.js +2 -2
- package/FormItem/compoments/defaultCompoments/index.d.ts +19 -19
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -8
- package/FormItem/compoments/formFile/index.d.ts +38 -38
- package/FormItem/compoments/formRadioGroup/index.d.ts +8 -8
- package/FormItem/compoments/formSelect/index.d.ts +18 -18
- package/FormItem/errorTips.d.ts +12 -12
- package/FormItem/index.d.ts +152 -152
- package/FormItem/index.js +2 -2
- package/FormItem/itemType.d.ts +42 -42
- package/FormItem/validateFunction.d.ts +15 -15
- package/FunctionModal/dialog.d.ts +58 -58
- package/FunctionModal/index.d.ts +8 -8
- package/FunctionModal/modalContext.d.ts +14 -14
- package/GlobalContext/componentsProps.d.ts +21 -21
- package/GlobalContext/confirmLocale.d.ts +7 -7
- package/GlobalContext/constant.d.ts +7 -7
- package/GlobalContext/index.d.ts +28 -28
- package/GlobalContext/intl.d.ts +34 -34
- package/GlobalContext/useFormatMessage.d.ts +3 -3
- package/Help/index.d.ts +20 -20
- package/HelperText/index.d.ts +19 -19
- package/Hooks/useGlobalProps.d.ts +1 -1
- package/InputLang/index.d.ts +49 -49
- package/InputLang/index.js +1 -1
- package/InputNumber/index.d.ts +74 -74
- package/Label/index.d.ts +35 -35
- package/Loading/index.d.ts +17 -17
- package/Menu/footerExpansion.d.ts +9 -9
- package/Menu/index.d.ts +10 -10
- package/Menu/interface.d.ts +139 -139
- package/Menu/logo.d.ts +9 -9
- package/Menu/verticalMenuList.d.ts +14 -14
- package/Message/index.d.ts +73 -73
- package/Modal/Confirm/index.d.ts +66 -66
- package/Modal/index.d.ts +61 -61
- package/Modal/lang/en_US.d.ts +5 -5
- package/Modal/lang/index.d.ts +11 -11
- package/Modal/lang/zh_CN.d.ts +5 -5
- package/MultiBox/index.d.ts +54 -54
- package/MultiBox/index.js +3 -3
- package/Notification/index.d.ts +52 -52
- package/OperateBtn/index.d.ts +59 -59
- package/OperateBtn/index.js +1 -1
- package/OperateBtn/lang/en_US.d.ts +4 -4
- package/OperateBtn/lang/index.d.ts +9 -9
- package/OperateBtn/lang/zh_CN.d.ts +4 -4
- package/PageHeader/horizontalMeun.d.ts +9 -9
- package/PageHeader/horizontalMeunRight.d.ts +9 -9
- package/PageHeader/index.d.ts +10 -10
- package/PageHeader/interface.d.ts +167 -167
- package/Pagination/index.d.ts +33 -33
- package/Pagination/index.js +1 -1
- package/Pagination/lang/en_US.d.ts +8 -8
- package/Pagination/lang/index.d.ts +17 -17
- package/Pagination/lang/zh_CN.d.ts +8 -8
- package/ParauiProvider/index.d.ts +12 -12
- package/PasswordRules/index.d.ts +46 -46
- package/PopConfirm/index.d.ts +56 -56
- package/PopConfirm/lang/en_US.d.ts +5 -5
- package/PopConfirm/lang/index.d.ts +11 -11
- package/PopConfirm/lang/zh_CN.d.ts +5 -5
- package/Popover/index.d.ts +14 -14
- package/PopoverNew/TooltipNew/index.d.ts +11 -11
- package/PopoverNew/TooltipNew/interface.d.ts +31 -31
- package/PopoverNew/TooltipNew/utils.d.ts +18 -18
- package/PopoverNew/index.d.ts +16 -16
- package/Popper/index.d.ts +13 -13
- package/Progress/Line.d.ts +47 -47
- package/Progress/Steps.d.ts +17 -17
- package/Progress/index.d.ts +81 -81
- package/Progress/utils.d.ts +6 -6
- package/Querying/images/index.d.ts +2 -2
- package/Querying/index.d.ts +26 -26
- package/Querying/lang/en_US.d.ts +4 -4
- package/Querying/lang/index.d.ts +9 -9
- package/Querying/lang/zh_CN.d.ts +4 -4
- package/README.md +750 -739
- package/Radio/index.d.ts +38 -38
- package/RadioGroup/index.d.ts +47 -47
- package/RadioGroup/index.js +2 -2
- package/Search/index.d.ts +56 -56
- package/Search/index.js +1 -1
- package/Select/index.d.ts +96 -96
- package/Select/index.js +1 -1
- package/Select/lang/en_US.d.ts +5 -5
- package/Select/lang/index.d.ts +11 -11
- package/Select/lang/zh_CN.d.ts +5 -5
- package/SelectInput/index.d.ts +11 -11
- package/SelectInput/index.js +1 -1
- package/Selector/index.d.ts +11 -11
- package/Selector/index.js +2 -2
- package/Selector/interface.d.ts +428 -428
- package/Selector/lang/en_US.d.ts +11 -11
- package/Selector/lang/index.d.ts +23 -23
- package/Selector/lang/zh_CN.d.ts +11 -11
- package/Selector/selectorData/index.d.ts +10 -10
- package/Selector/selectorMain/index.d.ts +10 -10
- package/Selector/selectorNode/index.d.ts +10 -10
- package/Selector/util.d.ts +15 -15
- package/SelectorPicker/index.d.ts +53 -53
- package/SelectorPicker/index.js +2 -2
- package/SingleBox/index.d.ts +42 -42
- package/SingleBox/index.js +1 -1
- package/Slider/index.d.ts +14 -14
- package/Slider/interface.d.ts +102 -102
- package/Split/index.d.ts +7 -7
- package/Stepper/icons.d.ts +5 -5
- package/Stepper/index.d.ts +39 -39
- package/Switch/index.d.ts +78 -78
- package/Table/index.d.ts +10 -10
- package/Table/index.js +1 -1
- package/Table/interface.d.ts +271 -271
- package/Table/lang/en_US.d.ts +8 -8
- package/Table/lang/index.d.ts +17 -17
- package/Table/lang/zh_CN.d.ts +8 -8
- package/Table/tableBody.d.ts +9 -9
- package/Table/tableBodyElement/index.d.ts +15 -15
- package/Table/tableBodyInterface.d.ts +67 -67
- package/Table/tableContainer/index.d.ts +16 -16
- package/Table/tableElement/index.d.ts +15 -15
- package/Table/tableHead.d.ts +9 -9
- package/Table/tableHeadElement/index.d.ts +15 -15
- package/Table/tableHeadInterface.d.ts +30 -30
- package/Table/tablePagination.d.ts +9 -9
- package/Table/tablePaginationInterFace.d.ts +24 -24
- package/Table/tdElement/index.d.ts +15 -15
- package/Table/thElement/index.d.ts +15 -15
- package/Table/trElement/index.d.ts +15 -15
- package/Table/util.d.ts +28 -28
- package/Tabs/index.d.ts +48 -48
- package/Tag/TagGroup.d.ts +66 -66
- package/Tag/index.d.ts +34 -34
- package/TextField/index.d.ts +95 -95
- package/TextField/index.js +1 -1
- package/TimePicker/index.d.ts +22 -22
- package/TimePicker/locale/en_US.d.ts +3 -3
- package/TimePicker/locale/zh_CN.d.ts +3 -3
- package/TimePicker/style/index.d.ts +1 -1
- package/Timeline/index.d.ts +22 -22
- package/Title/index.d.ts +30 -30
- package/ToggleButton/ToggleButtonGroup.d.ts +49 -49
- package/ToggleButton/index.d.ts +49 -49
- package/Tooltip/index.d.ts +14 -14
- package/Transfer/index.d.ts +37 -37
- package/Transfer/index.js +1 -1
- package/Transfer/lang/en_US.d.ts +8 -8
- package/Transfer/lang/index.d.ts +17 -17
- package/Transfer/lang/zh_CN.d.ts +8 -8
- package/Tree/OperateBar/index.d.ts +13 -13
- package/Tree/Tree.d.ts +4 -4
- package/Tree/index.d.ts +5 -5
- package/Tree/index.js +1 -1
- package/Tree/interface.d.ts +207 -207
- package/Tree/lang/en_US.d.ts +8 -8
- package/Tree/lang/index.d.ts +17 -17
- package/Tree/lang/zh_CN.d.ts +8 -8
- package/Tree/utils/tools.d.ts +26 -26
- package/Tree/utils/treeUtil.d.ts +15 -15
- package/Upload/Dragger/index.d.ts +10 -10
- package/Upload/ErroTip/index.d.ts +13 -13
- package/Upload/ImageUpload/index.d.ts +14 -14
- package/Upload/ImgCrop/EasyCrop.d.ts +17 -17
- package/Upload/ImgCrop/constants.d.ts +7 -7
- package/Upload/ImgCrop/index.d.ts +6 -6
- package/Upload/ImgCrop/interface.d.ts +48 -48
- package/Upload/UploadList/index.d.ts +5 -5
- package/Upload/index.d.ts +15 -15
- package/Upload/interface.d.ts +134 -134
- package/Upload/lang/en_US.d.ts +12 -12
- package/Upload/lang/index.d.ts +25 -25
- package/Upload/lang/zh_CN.d.ts +12 -12
- package/cdn/AutoTips/index.js +1 -1
- package/cdn/Breadcrumbs/index.js +1 -1
- package/cdn/ButtonGroup/index.js +2 -2
- package/cdn/Cascader/index.js +6 -6
- package/cdn/CheckboxGroup/index.js +2 -2
- package/cdn/ColorPicker/index.js +1 -1
- package/cdn/ComboSelect/index.js +2 -2
- package/cdn/DatePicker/index.js +8 -8
- package/cdn/Dropdown/index.js +3 -3
- package/cdn/DynamicMultiBox/index.js +7 -7
- package/cdn/Form/index.js +3 -3
- package/cdn/FormItem/index.js +3 -3
- package/cdn/InputLang/index.js +1 -1
- package/cdn/MultiBox/index.js +1 -1
- package/cdn/OperateBtn/index.js +1 -1
- package/cdn/Pagination/index.js +2 -2
- package/cdn/PopoverNew/index.js +3 -3
- package/cdn/RadioGroup/index.js +2 -2
- package/cdn/Search/index.js +5 -5
- package/cdn/Select/index.js +2 -2
- package/cdn/SelectInput/index.js +2 -2
- package/cdn/Selector/index.js +10 -10
- package/cdn/SelectorPicker/index.js +10 -10
- package/cdn/SingleBox/index.js +1 -1
- package/cdn/Slider/index.js +3 -3
- package/cdn/Table/index.js +2 -2
- package/cdn/Tabs/index.js +1 -1
- package/cdn/TextField/index.js +1 -1
- package/cdn/TimePicker/index.js +10 -10
- package/cdn/Transfer/index.js +1 -1
- package/cdn/Tree/index.js +1 -1
- package/cdn/Upload/index.js +10 -10
- package/index.d.ts +142 -142
- package/index.js +2 -2
- package/package.json +131 -131
- package/style.css +1 -1
package/Title/index.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2022/8/11 2:54 PM
|
|
4
|
-
* @description 标题
|
|
5
|
-
*/
|
|
6
|
-
import React, { FC, ReactNode } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
interface TitleProps {
|
|
9
|
-
/** 标题 **/
|
|
10
|
-
title: ReactNode;
|
|
11
|
-
/** 副标题 **/
|
|
12
|
-
subTitle?: ReactNode;
|
|
13
|
-
/** 图标 **/
|
|
14
|
-
icon?: ReactNode;
|
|
15
|
-
/** 链接 **/
|
|
16
|
-
link?: {
|
|
17
|
-
href: string;
|
|
18
|
-
text: ReactNode;
|
|
19
|
-
target?: string;
|
|
20
|
-
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
21
|
-
};
|
|
22
|
-
/** 尺寸,仅在 icon 存在时有效 **/
|
|
23
|
-
size?: 'small' | 'medium' | 'large';
|
|
24
|
-
/** cls */
|
|
25
|
-
className?: string;
|
|
26
|
-
/** style */
|
|
27
|
-
style?: React.CSSProperties;
|
|
28
|
-
}
|
|
29
|
-
export declare const Title: FC<TitleProps>;
|
|
30
|
-
export default Title;
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2022/8/11 2:54 PM
|
|
4
|
+
* @description 标题
|
|
5
|
+
*/
|
|
6
|
+
import React, { FC, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
interface TitleProps {
|
|
9
|
+
/** 标题 **/
|
|
10
|
+
title: ReactNode;
|
|
11
|
+
/** 副标题 **/
|
|
12
|
+
subTitle?: ReactNode;
|
|
13
|
+
/** 图标 **/
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/** 链接 **/
|
|
16
|
+
link?: {
|
|
17
|
+
href: string;
|
|
18
|
+
text: ReactNode;
|
|
19
|
+
target?: string;
|
|
20
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
21
|
+
};
|
|
22
|
+
/** 尺寸,仅在 icon 存在时有效 **/
|
|
23
|
+
size?: 'small' | 'medium' | 'large';
|
|
24
|
+
/** cls */
|
|
25
|
+
className?: string;
|
|
26
|
+
/** style */
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
}
|
|
29
|
+
export declare const Title: FC<TitleProps>;
|
|
30
|
+
export default Title;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/11/23 上午11:17
|
|
4
|
-
* @description toggle button group
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from "react";
|
|
7
|
-
import './index.scss';
|
|
8
|
-
type Item = {
|
|
9
|
-
label: string;
|
|
10
|
-
value: any;
|
|
11
|
-
selected?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
className?: string;
|
|
14
|
-
};
|
|
15
|
-
export interface ToggleButtonGroupProps {
|
|
16
|
-
type?: 'text' | 'outlined';
|
|
17
|
-
/**
|
|
18
|
-
* 类名
|
|
19
|
-
*/
|
|
20
|
-
className?: string;
|
|
21
|
-
/**
|
|
22
|
-
* 样式
|
|
23
|
-
*/
|
|
24
|
-
style?: React.CSSProperties;
|
|
25
|
-
/**
|
|
26
|
-
* 是否互斥
|
|
27
|
-
*/
|
|
28
|
-
exclusive?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* 是否可切换选中项
|
|
31
|
-
*/
|
|
32
|
-
toggleable?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* 按钮组value
|
|
35
|
-
*/
|
|
36
|
-
value?: any;
|
|
37
|
-
/**
|
|
38
|
-
* 按钮组数据源
|
|
39
|
-
*/
|
|
40
|
-
data?: Item[];
|
|
41
|
-
/**
|
|
42
|
-
* value变化时回调
|
|
43
|
-
* @param event
|
|
44
|
-
* @param value
|
|
45
|
-
*/
|
|
46
|
-
onChange?: (event: React.MouseEvent, value: any) => void;
|
|
47
|
-
}
|
|
48
|
-
declare const ToggleButtonGroup: FunctionComponent<ToggleButtonGroupProps>;
|
|
49
|
-
export default ToggleButtonGroup;
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/11/23 上午11:17
|
|
4
|
+
* @description toggle button group
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from "react";
|
|
7
|
+
import './index.scss';
|
|
8
|
+
type Item = {
|
|
9
|
+
label: string;
|
|
10
|
+
value: any;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export interface ToggleButtonGroupProps {
|
|
16
|
+
type?: 'text' | 'outlined';
|
|
17
|
+
/**
|
|
18
|
+
* 类名
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 样式
|
|
23
|
+
*/
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
/**
|
|
26
|
+
* 是否互斥
|
|
27
|
+
*/
|
|
28
|
+
exclusive?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 是否可切换选中项
|
|
31
|
+
*/
|
|
32
|
+
toggleable?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 按钮组value
|
|
35
|
+
*/
|
|
36
|
+
value?: any;
|
|
37
|
+
/**
|
|
38
|
+
* 按钮组数据源
|
|
39
|
+
*/
|
|
40
|
+
data?: Item[];
|
|
41
|
+
/**
|
|
42
|
+
* value变化时回调
|
|
43
|
+
* @param event
|
|
44
|
+
* @param value
|
|
45
|
+
*/
|
|
46
|
+
onChange?: (event: React.MouseEvent, value: any) => void;
|
|
47
|
+
}
|
|
48
|
+
declare const ToggleButtonGroup: FunctionComponent<ToggleButtonGroupProps>;
|
|
49
|
+
export default ToggleButtonGroup;
|
package/ToggleButton/index.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/11/23 上午9:44
|
|
4
|
-
* @description toggleButton
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from "react";
|
|
7
|
-
import ToggleButtonGroup, { ToggleButtonGroupProps } from './ToggleButtonGroup';
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export interface ToggleButtonProps {
|
|
10
|
-
/**
|
|
11
|
-
* 类名
|
|
12
|
-
*/
|
|
13
|
-
className?: string;
|
|
14
|
-
/**
|
|
15
|
-
* 样式
|
|
16
|
-
*/
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
/**
|
|
19
|
-
* 子节点
|
|
20
|
-
*/
|
|
21
|
-
children?: string;
|
|
22
|
-
/**
|
|
23
|
-
* 禁用
|
|
24
|
-
*/
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 是否选中
|
|
28
|
-
*/
|
|
29
|
-
selected?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* value
|
|
32
|
-
*/
|
|
33
|
-
value?: any;
|
|
34
|
-
/**
|
|
35
|
-
* width
|
|
36
|
-
*/
|
|
37
|
-
width?: number | string;
|
|
38
|
-
/**
|
|
39
|
-
* 点击回调
|
|
40
|
-
* @param event
|
|
41
|
-
* @param value
|
|
42
|
-
*/
|
|
43
|
-
onClick?: (event: React.MouseEvent, value: any) => void;
|
|
44
|
-
[name: string]: any;
|
|
45
|
-
}
|
|
46
|
-
export declare const ToggleButton: FunctionComponent<ToggleButtonProps>;
|
|
47
|
-
export type { ToggleButtonGroupProps };
|
|
48
|
-
export { ToggleButtonGroup };
|
|
49
|
-
export default ToggleButton;
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/11/23 上午9:44
|
|
4
|
+
* @description toggleButton
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from "react";
|
|
7
|
+
import ToggleButtonGroup, { ToggleButtonGroupProps } from './ToggleButtonGroup';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export interface ToggleButtonProps {
|
|
10
|
+
/**
|
|
11
|
+
* 类名
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 样式
|
|
16
|
+
*/
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
/**
|
|
19
|
+
* 子节点
|
|
20
|
+
*/
|
|
21
|
+
children?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 禁用
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 是否选中
|
|
28
|
+
*/
|
|
29
|
+
selected?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* value
|
|
32
|
+
*/
|
|
33
|
+
value?: any;
|
|
34
|
+
/**
|
|
35
|
+
* width
|
|
36
|
+
*/
|
|
37
|
+
width?: number | string;
|
|
38
|
+
/**
|
|
39
|
+
* 点击回调
|
|
40
|
+
* @param event
|
|
41
|
+
* @param value
|
|
42
|
+
*/
|
|
43
|
+
onClick?: (event: React.MouseEvent, value: any) => void;
|
|
44
|
+
[name: string]: any;
|
|
45
|
+
}
|
|
46
|
+
export declare const ToggleButton: FunctionComponent<ToggleButtonProps>;
|
|
47
|
+
export type { ToggleButtonGroupProps };
|
|
48
|
+
export { ToggleButtonGroup };
|
|
49
|
+
export default ToggleButton;
|
package/Tooltip/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/9 下午3:47
|
|
4
|
-
* @description tooltip
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from 'react';
|
|
7
|
-
import { TooltipProps as MuiTooltipProps } from '@material-ui/core';
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export type TooltipProps = MuiTooltipProps & {
|
|
10
|
-
className?: string;
|
|
11
|
-
boundariesElement?: 'scrollParent' | typeof window | 'viewport';
|
|
12
|
-
};
|
|
13
|
-
export declare const Tooltip: FunctionComponent<TooltipProps>;
|
|
14
|
-
export default Tooltip;
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/9 下午3:47
|
|
4
|
+
* @description tooltip
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
import { TooltipProps as MuiTooltipProps } from '@material-ui/core';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export type TooltipProps = MuiTooltipProps & {
|
|
10
|
+
className?: string;
|
|
11
|
+
boundariesElement?: 'scrollParent' | typeof window | 'viewport';
|
|
12
|
+
};
|
|
13
|
+
export declare const Tooltip: FunctionComponent<TooltipProps>;
|
|
14
|
+
export default Tooltip;
|
package/Transfer/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './style/index.scss';
|
|
3
|
-
interface ItemDataProps {
|
|
4
|
-
/** 唯一值,用来过滤 */
|
|
5
|
-
key?: string;
|
|
6
|
-
/** 显示名 */
|
|
7
|
-
name?: string;
|
|
8
|
-
/** 描述 */
|
|
9
|
-
description?: string;
|
|
10
|
-
/** 是否选中 */
|
|
11
|
-
checked?: boolean;
|
|
12
|
-
/** 是否禁用 */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/** 是否隐藏 */
|
|
15
|
-
hide?: boolean;
|
|
16
|
-
[name: string]: any;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @description: 穿梭框
|
|
20
|
-
* @param className{string} 类名
|
|
21
|
-
* @param style{string} 样式
|
|
22
|
-
* @param data{Array} 数据源
|
|
23
|
-
* @param value{Array} 当前选中的值
|
|
24
|
-
* @param onChange{Function} 值改变时的回调
|
|
25
|
-
* @param title{String} 标题
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
interface TransferProps {
|
|
29
|
-
className?: string;
|
|
30
|
-
style?: React.CSSProperties;
|
|
31
|
-
data?: Array<ItemDataProps>;
|
|
32
|
-
value?: Array<ItemDataProps>;
|
|
33
|
-
onChange?: (data: Array<ItemDataProps>) => void;
|
|
34
|
-
titles?: Array<string>;
|
|
35
|
-
}
|
|
36
|
-
export declare const Transfer: (props: TransferProps) => JSX.Element;
|
|
37
|
-
export default Transfer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style/index.scss';
|
|
3
|
+
interface ItemDataProps {
|
|
4
|
+
/** 唯一值,用来过滤 */
|
|
5
|
+
key?: string;
|
|
6
|
+
/** 显示名 */
|
|
7
|
+
name?: string;
|
|
8
|
+
/** 描述 */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** 是否选中 */
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
/** 是否禁用 */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** 是否隐藏 */
|
|
15
|
+
hide?: boolean;
|
|
16
|
+
[name: string]: any;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @description: 穿梭框
|
|
20
|
+
* @param className{string} 类名
|
|
21
|
+
* @param style{string} 样式
|
|
22
|
+
* @param data{Array} 数据源
|
|
23
|
+
* @param value{Array} 当前选中的值
|
|
24
|
+
* @param onChange{Function} 值改变时的回调
|
|
25
|
+
* @param title{String} 标题
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
interface TransferProps {
|
|
29
|
+
className?: string;
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
data?: Array<ItemDataProps>;
|
|
32
|
+
value?: Array<ItemDataProps>;
|
|
33
|
+
onChange?: (data: Array<ItemDataProps>) => void;
|
|
34
|
+
titles?: Array<string>;
|
|
35
|
+
}
|
|
36
|
+
export declare const Transfer: (props: TransferProps) => JSX.Element;
|
|
37
|
+
export default Transfer;
|
package/Transfer/index.js
CHANGED
|
@@ -11,4 +11,4 @@ object-assign
|
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/i(7418);var n=i(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var r=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,i){var n,a={},u=null,s=null;for(n in void 0!==i&&(u=""+i),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(s=t.ref),t)l.call(t,n)&&!c.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:s,props:a,_owner:r.current}}t.jsx=u,t.jsxs=u},5893:function(e,t,i){"use strict";e.exports=i(5251)},9271:function(e,t,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},5822:function(e,t,i){var n=i(3379),o=i(8313);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},9036:function(e,t,i){var n=i(3379),o=i(1204);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},2113:function(e,t,i){var n=i(3379),o=i(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},3936:function(e,t,i){var n=i(3379),o=i(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},9663:function(e,t,i){var n=i(3379),o=i(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},3492:function(e,t,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},9750:function(e,t,i){var n=i(3379),o=i(4447);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},6202:function(e,t,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},2310:function(e,t,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},9039:function(e,t,i){var n=i(3379),o=i(7282);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},3379:function(e,t,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),r=[];function l(e){for(var t=-1,i=0;i<r.length;i++)if(r[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var a=e[o],c=t.base?a[0]+t.base:a[0],u=i[c]||0,s="".concat(c," ").concat(u);i[c]=u+1;var d=l(s),p={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(r[d].references++,r[d].updater(p)):r.push({identifier:s,updater:h(p,t),references:1}),n.push(s)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var r=a(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var s,d=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function p(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var a=document.createTextNode(o),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(a,r[t]):e.appendChild(a)}}function f(e,t,i){var n=i.css,o=i.media,a=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var x=null,b=0;function h(e,t){var i,n,o;if(t.singleton){var a=b++;i=x||(x=u(t)),n=p.bind(null,i,a,!1),o=p.bind(null,i,a,!0)}else i=u(t),n=f.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=l(i[n]);r[o].references--}for(var a=c(e,t),u=0;u<i.length;u++){var s=l(i[u]);0===r[s].references&&(r[s].updater(),r.splice(s,1))}i=a}}}},7839:function(e,t,i){"use strict";var n=i(5893),o=i(8156),a=i(7371),r=(i(9271),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)});t.default=function(e){var t=e.children,i=e.arrow,l=void 0!==i&&i,c=e.placement,u=void 0===c?"bottom-start":c,s=e.tips,d=void 0===s?"":s,p=e.className,f=void 0===p?"":p,x=e.beyondText,b=void 0===x||x,h=e.interactive,g=void 0===h||h,v=e.style,m=(0,o.useRef)(),k=(0,o.useRef)(),y=(0,o.useState)(""),w=y[0],j=y[1];(0,o.useEffect)((function(){j(d)}),[d]);var C;return(0,n.jsx)("div",r({ref:m,className:(C="paraui-auto-tips",f&&(C+=" "+f),C),onMouseOver:function(){var e="",i=m.current.getBoundingClientRect(),n=k.current.getBoundingClientRect();m.current&&n.width>i.width&&(e=d||(b?m.current.innerText:t)),j(e)},style:v},{children:(0,n.jsx)(a.default,r({arrow:l,title:w,placement:u,interactive:g,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",r({className:"auto-tips-content",ref:k},{children:t}))}))}))}},7896:function(e,t,i){"use strict";i.d(t,{default:function(){return y}});var n=i(5893),o=i(8156),a=i(670),r=i(5744),l=i.n(r),c=i(2788),u=i.n(c),s=i(3835),d=i.n(s),p=i(7371),f=i(2396),x=i.n(f),b=i(3054),h={zh:{moreActions:"更多操作"},en:{moreActions:"More actions"}},g=function(){return g=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)};i(5822);var v=function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)},m=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i},k=function(e){var t=e.variant,i=void 0===t?"contained":t,r=e.size,c=void 0===r?"large":r,s=e.className,f=e.disabled,x=void 0!==f&&f,b=e.children,h=e.startIcon,g=e.endIcon,k=e.loading,y=void 0!==k&&k,w=e.toolTipTitle,j=void 0===w?"":w,C=e.TooltipProps,S=e.danger,O=void 0!==S&&S,N=m(e,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","TooltipProps","danger"]),P=(0,o.useState)(!1),z=P[0],T=P[1],E=function(e){if(!z)return"start"===e&&h?(0,n.jsx)("span",v({className:l()("btn-icon","start-icon")},{children:h})):"end"===e&&g?(0,n.jsx)("span",v({className:l()("btn-icon","end-icon")},{children:g})):null;if("object"==typeof y){var t=y.delay||0;setTimeout((function(){return T(!1)}),t)}return"start"===e?(0,n.jsx)("span",v({className:"btn-icon loading-icon"},{children:(0,n.jsx)(u(),{})})):null},M=(0,n.jsx)(a.Button,v({},N,{color:"default",variant:"contained",disabled:x,disableRipple:!0,disableElevation:!0,className:l()("paraui-button",s,"paraui-button-".concat(i),"paraui-button-".concat(c),z&&"paraui-button-loading",O&&!x&&"paraui-button-dangerous"),classes:{label:"paraui-button-label"},startIcon:E("start"),endIcon:E("end")},{children:b}));return(0,o.useEffect)((function(){T(!!y)}),[y]),x&&j?(0,n.jsx)(p.default,v({},C,{title:function(){if(x&&j){return(0,n.jsxs)("span",{children:[(0,n.jsx)(d(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),j]})}return j}()},{children:(0,n.jsx)("span",v({className:"paraui-button--disabled"},{children:M}))})):M};k.IconButton=function(e){var t=e.variant,i=void 0===t?"contained":t,r=e.size,c=void 0===r?"large":r,s=e.toolTipTitle,f=void 0===s?"":s,x=e.children,b=e.className,h=e.disabled,g=void 0!==h&&h,k=e.loading,y=void 0!==k&&k,w=e.TooltipProps,j=e.danger,C=void 0!==j&&j,S=m(e,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),O=(0,o.useState)(!1),N=O[0],P=O[1],z=(0,n.jsx)(a.IconButton,v({},S,{disabled:g,disableRipple:!0,className:l()("paraui-icon-button",b,"paraui-icon-button-".concat(i),"paraui-icon-button-".concat(c),N&&"paraui-icon-button-loading",C&&!g&&"paraui-icon-button-dangerous")},{children:function(){if(!N)return x;if("object"==typeof y){var e=y.delay||0;setTimeout((function(){return P(!1)}),e)}return(0,n.jsx)("span",v({className:"loading-icon"},{children:(0,n.jsx)(u(),{})}))}()}));return(0,o.useEffect)((function(){P(!!y)}),[y]),f?(0,n.jsx)(p.default,v({},w,{title:function(){if(g&&f){return(0,n.jsxs)("span",{children:[(0,n.jsx)(d(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),f]})}return f}()},{children:g?(0,n.jsx)("span",v({className:"paraui-button--disabled"},{children:z})):z}),+N):z},k.SplitButton=function(e){var t=e.buttonText,i=e.options,r=void 0===i?[]:i,c=e.className,u=e.popperClassName,s=e.style,d=e.popperStyle,p=e.disabled,f=void 0!==p&&p,v=e.onClick,m=e.optionRender,k=e.placement,w=void 0===k?"bottom-end":k,j=e.buttonProps,C=e.iconButton,S=void 0!==C&&C,O=(0,b.Z)("Button",h),N=(0,o.useState)(!1),P=N[0],z=N[1],T=(0,o.useRef)(null),E=(0,o.useRef)(),M=(0,o.useRef)(),I=(0,o.useState)(),q=I[0],B=I[1],_=function(e,t,i){var n;e.disabled?i.stopPropagation():(B(t),z(!1),null===(n=E.current)||void 0===n||n.classList.remove("paraui-button-split--active"),null==v||v(e,i))},F=function(e){e.stopPropagation(),L();var t=e.currentTarget;M.current=window.setTimeout((function(){E.current=t,t.classList.add("paraui-button-split--active"),z(!0)}),150)},L=function(){M.current&&(clearTimeout(M.current),M.current=null)},R=function(e){var t,i;(null===(t=T.current)||void 0===t?void 0:t.contains(e.target))||(z(!1),null===(i=E.current)||void 0===i||i.classList.remove("paraui-button-split--active"))},H=function(){return(0,n.jsx)("div",g({className:"paraui-button-split-list"},{children:(0,n.jsx)("ul",{children:r.map((function(e,t){return Array.isArray(e)?function(e,t){return(0,n.jsx)("li",g({className:"split-li-group"},{children:e.map((function(e,i){var o="".concat(t,"-").concat(i);return(0,n.jsx)("div",g({className:l()("split-li",o===q&&"split-li--active",e.disabled&&"split-li--disabled"),onClick:function(t){return _(e,o,t)}},{children:(null==m?void 0:m(e))||e.label}),o)}))}),t)}(e,t):(0,n.jsx)("li",g({className:l()("split-li",t===q&&"split-li--active",e.disabled&&"split-li--disabled"),onClick:function(i){return _(e,t,i)}},{children:(null==m?void 0:m(e))||e.label}),t)}))})}))};return(0,n.jsxs)("div",g({className:l()("paraui-button-split",c),ref:T,style:s,onMouseLeave:function(e){var t;e.stopPropagation(),L(),null===(t=e.currentTarget.firstElementChild)||void 0===t||t.classList.remove("paraui-button-split--active"),z(!1)}},{children:[S?(0,n.jsx)(y.IconButton,g({variant:"text",size:"small",disabled:f},j,{onMouseEnter:F},{children:null!=t?t:O({id:"moreActions"})})):(0,n.jsx)(y,g({variant:"outlined",size:"large",startIcon:(0,n.jsx)(x(),{}),disabled:f},j,{onMouseEnter:F},{children:null!=t?t:O({id:"moreActions"})})),(0,n.jsx)(a.Popper,g({open:P,anchorEl:T.current,transition:!0,placement:w,style:g({zIndex:1500},d),className:l()("paraui-button-split-popper",u)},{children:function(e){var t=e.TransitionProps;e.placement;return(0,n.jsx)(a.Grow,g({},t,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.ClickAwayListener,g({onClickAway:R},{children:H()}))})}))}}))]}))};var y=k},9690:function(e,t,i){"use strict";i.d(t,{Checkbox:function(){return l}});var n=i(5893),o=i(8156),a=i(8767),r=(i(9036),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)}),l=function(e){var t=e.className,i=void 0===t?"":t,l=e.label,c=void 0===l?"":l,u=e.labelTooltip,s=e.size,d=void 0===s?"large":s,p=e.disabled,f=void 0!==p&&p,x=e.indeterminate,b=void 0!==x&&x,h=e.onChange,g=e.style,v=(0,o.useState)(!1),m=v[0],k=v[1];(0,o.useEffect)((function(){void 0!==e.defaultChecked&&k(e.defaultChecked)}),[]),(0,o.useEffect)((function(){void 0!==e.checked&&k(e.checked)}),[e.checked]);var y;return(0,n.jsxs)("label",r({className:(y="paraui-check-box",i&&(y+=" "+i),d&&(y+=" check-box-"+d),f&&(y+=" check-box-disabled"),b?y+=" check-box-indeterminate":m&&(y+=" check-box-checked"),y),onClick:function(t){if(t.preventDefault(),!f){if(b)return void 0===e.checked&&k(!0),void(h&&h(t,!0));void 0===e.checked&&k(!m),t.target.checked=!m,t.target.value=!m,h&&h(t,!m)}},style:g},{children:[(0,n.jsxs)("span",r({className:"paraui-checkbox-box"},{children:[(0,n.jsx)("input",r({type:"checkbox",value:m},e.inputProps)),(0,n.jsx)("span",{className:"paraui-checkbox-box-inner"})]})),void 0!==c&&""!==c&&null!==c?(0,n.jsx)(a.default,r({label:c},u,{className:function(){var e="paraui-check-box-label";return u&&u.className&&(e+=" "+u.className),e}()})):null]}))}},3054:function(e,t,i){"use strict";var n=i(8156),o=i.n(n),a=i(5395),r=i.n(a);t.Z=function(e,t){var i=o().useContext(r()).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,i&&i(e,t)}},3566:function(e,t,i){"use strict";var n=i(5893),o=i(7371),a=i(8076),r=i.n(a),l=i(5744),c=i.n(l),u=(i(2113),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),s=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t=e.title,i=void 0===t?"":t,a=e.children,l=e.arrow,d=void 0===l||l,p=e.interactive,f=void 0===p||p,x=e.className,b=e.placement,h=void 0===b?"top-start":b,g=s(e,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,u({title:i,arrow:d,interactive:f,placement:h},g,{children:(0,n.jsx)("span",u({className:c()("paraui-help",x)},{children:a||(0,n.jsx)(r(),{})}))}))}},4254:function(e,t,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)});t.default=function(e){var t,i=e.className,a=e.style,r=e.error,l=void 0!==r&&r,c=e.helperText;return(0,n.jsx)("p",o({className:(t="paraui-helper-text",i&&(t+=" "+i),l&&(t+=" paraui-helper-text-error"),t),style:a},{children:c}))}},6010:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(8156),o=i.n(n),a=i(5395),r=i.n(a),l=function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function c(e,t){var i=o().useContext(r()).componentsProps,n=i&&i[t];return l(l({},n),e)}},8767:function(e,t,i){"use strict";var n=i(5893),o=i(3566),a=(i(9663),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,r=e.label,l=e.labelSign,c=e.required,u=void 0!==c&&c,s=e.tooltip,d=e.tooltipType,p=void 0===d?"icon":d,f=e.placement,x=e.arrow,b=e.tooltipIcon,h=function(){var e="paraui-label";return p&&(e+=" paraui-label-"+p),s&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return(0,n.jsxs)(n.Fragment,{children:["icon"===p&&(0,n.jsxs)("label",a({className:h(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:r}),u&&(0,n.jsx)("span",a({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l}),s&&(0,n.jsx)(o.default,a({title:s,placement:f,arrow:x},{children:b}))]})),"line"===p&&(0,n.jsx)(o.default,a({title:s||"",placement:f,arrow:x},{children:(0,n.jsxs)("label",a({className:h(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:r}),u&&(0,n.jsx)("span",a({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l})]}))}))]})}},7502:function(e,t,i){"use strict";var n=i(5893),o=i(8156),a=i(2788),r=i.n(a),l=(i(3492),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,a=e.opacity,c=void 0===a?.7:a,u=(0,o.useRef)(null);(0,o.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var s;return(0,n.jsxs)("div",l({className:(s="paraui-loading",t&&(s+=" "+t),s),style:i,ref:u},{children:[(0,n.jsx)("div",l({className:"paraui-loading-box"},{children:(0,n.jsx)(r(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},6562:function(e,t,i){"use strict";i.d(t,{Search:function(){return s}});var n=i(5893),o=i(8156),a=i(7320),r=i(7896),l=i(6839),c=i.n(l),u=(i(9750),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),s=function(e){var t=e.className,i=void 0===t?"":t,l=e.style,s=e.size,d=void 0===s?"large":s,p=e.btnType,f=void 0===p?"outside":p,x=e.showBtn,b=void 0===x||x,h=e.btnIcon,g=e.btnText,v=void 0===g?"":g,m=e.placeholder,k=void 0===m?"":m,y=(e.defaultValue,e.value),w=e.rightIcon,j=e.showRightIcon,C=void 0===j||j,S=e.allowClear,O=void 0===S||S,N=e.rightIconExist,P=void 0!==N&&N,z=e.onChange,T=e.onBlur,E=e.onFocus,M=e.onKeydown,I=e.onKeyUp,q=e.onClickBtn,B=e.onClickRightIcon,_=e.onEnter,F=e.onClear,L=(0,o.useState)(""),R=L[0],H=L[1];(0,o.useEffect)((function(){void 0!==e.defaultValue&&H(e.defaultValue)}),[]),(0,o.useEffect)((function(){void 0!==y&&H(y)}),[y]);var A,U=function(){return h||(0,n.jsx)(c(),{})},D=function(){q&&q(R)};return(0,n.jsxs)("div",u({className:(A="paraui-search",i&&(A+=" "+i),d&&(A+=" search-"+d),f&&(A+=" search-"+f),b&&(A+=" search-showbtn"),v&&(A+=" search-btntext"),R&&(A+=" paraui-search-value"),P&&(A+=" paraui-search-right-icon-exist"),A),style:l},{children:[(0,n.jsx)(a.default,{size:d,placeholder:k,value:void 0===e.value?R:y,rightIcon:C?w||void 0:"",onClickIcon:function(){var t=R;C&&!w&&void 0===e.value&&(t="",H("")),B&&B(t)},onChange:function(t){var i=t.target.value;void 0===e.value&&H(i),z&&z(i,t)},onBlur:T,onFocus:E,onKeydown:M,onKeyUp:I,onEnter:_,addonAfter:function(){if(b&&"inside"===f)return(0,n.jsx)(r.default,u({size:d,startIcon:U(),variant:"outlined",onClick:D},{children:v}))}(),allowClear:O,onClear:F}),b&&"outside"===f&&(0,n.jsx)(r.default,u({size:d,startIcon:U(),variant:"contained",onClick:D},{children:v}))]}))}},7320:function(e,t,i){"use strict";var n=i(5893),o=i(8156),a=i(8767),r=i(8543),l=i(5428),c=i.n(l),u=i(9979),s=i.n(u),d=i(6788),p=i.n(d),f=i(7839),x=i(7502),b=i(7371),h=i(4254),g=i(6010),v=(i(6202),function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)}),m=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i},k=function(e){return"number"==typeof e&&!isNaN(e)};t.default=function(e){var t=(0,g.Z)(e,"TextField"),i=t.className,l=t.style,u=t.size,d=void 0===u?"large":u,y=t.labelMode,w=void 0===y?"outside":y,j=t.placeholder,C=void 0===j?"":j,S=t.label,O=void 0===S?"":S,N=t.labelTooltip,P=t.disabled,z=void 0!==P&&P,T=t.multiline,E=void 0!==T&&T,M=t.required,I=void 0!==M&&M,q=t.labelSign,B=t.rows,_=void 0===B?2:B,F=t.error,L=void 0!==F&&F,R=t.helperText,H=void 0===R?"":R,A=t.addonBefore,U=void 0===A?"":A,D=t.addonAfter,K=void 0===D?"":D,Y=(t.defaultValue,t.value),J=t.autoFocus,W=void 0!==J&&J,V=t.type,Q=void 0===V?"text":V,G=t.onClickIcon,Z=t.rightIcon,$=t.showRightIcon,X=void 0===$||$,ee=t.allowClear,te=void 0!==ee&&ee,ie=t.limitLength,ne=t.fetchSuggestions,oe=t.selectPopoverClass,ae=t.renderSelectItem,re=t.showSelectName,le=void 0===re?"value":re,ce=t.resize,ue=void 0===ce||ce,se=t.searchEmpty,de=t.onBlur,pe=t.onFocus,fe=t.onChange,xe=t.onKeydown,be=t.onKeyUp,he=t.onEnter,ge=t.onClickAddonBefore,ve=t.onClickAddonAfter,me=t.onSelect,ke=t.onClear,ye=m(t,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","searchEmpty","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),we=(0,o.useState)("text-field-select-content-"+(0,r.UUID)())[0],je=(0,o.useState)(!0),Ce=je[0],Se=je[1],Oe=(0,o.useState)(""),Ne=Oe[0],Pe=Oe[1],ze=(0,o.useState)(!1),Te=ze[0],Ee=ze[1],Me=(0,o.useState)("text"),Ie=Me[0],qe=Me[1],Be=(0,o.useState)(!1),_e=Be[0],Fe=Be[1],Le=(0,o.useState)(!1),Re=Le[0],He=Le[1],Ae=(0,o.useState)([]),Ue=Ae[0],De=Ae[1],Ke=(0,o.useRef)(null),Ye=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&Pe(e.defaultValue)}),[]),(0,o.useEffect)((function(){Q!==Ie&&qe(Q)}),[Q]),(0,o.useEffect)((function(){void 0!==Y&&Pe(Y)}),[Y]),(0,o.useEffect)((function(){Se(""===Ne||void 0===Ne)}),[Ne]),(0,o.useEffect)((function(){ne&&Fe(Te)}),[Te,ne]),(0,o.useEffect)((function(){return _e?window.addEventListener("keydown",Ze):window.removeEventListener("keydown",Ze),function(){window.removeEventListener("keydown",Ze)}}),[_e]),(0,o.useEffect)((function(){if(!Te&&Ne){var t=We(Ne);if(t!==Ne){var i={};i.target=Ke.current,i.target.value=t,void 0===e.value&&Pe(t),e.onChange&&e.onChange(i)}}}),[Ne,Te]);var Je,We=function(t){var i=t;return k(e.limitLength)&&t.toString().length>Number(e.limitLength)&&(i=i.toString().substr(0,e.limitLength)),i},Ve=function(){z||(Se(!1),(Ke&&Ke.current).focus())},Qe=function(e){var t=e.selectDom,i=e.keyCode,n=e.currentDom,o="nextSibling",a=".text-field-select-content-item";38===i&&(o="previousSibling",a=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=t.querySelector(a)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Ge(n,t))},Ge=function(e,t){var i=t.clientHeight,n=e.offsetTop+e.clientHeight-i;t.scrollTop=n>0?n:0},Ze=function(e){var t=document.querySelector("."+we),i=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;lt(JSON.parse(o))(e),(Ke&&Ke.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i}),38===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i})},$e=function(e){Ee(!1),""===e.target.value&&Se(!0),de&&de(e)},Xe=function(e){ne&&(He(!0),ne(e,(function(e){De(e||[]),He(!1)})))},et=function(e){Ee(!0),pe&&pe(e),Xe(e.target.value)},tt=function(t){var i=t.target.value;i&&Se(!1),void 0===e.value&&Pe(i),fe&&fe(t),Xe(t.target.value)},it=function(e){13===e.keyCode&&he&&he(e),xe&&xe(e)},nt=function(e){be&&be(e)},ot=function(e){"password"===Q&&("text"===Ie&&qe("password"),"password"===Ie&&qe("text")),G&&G(e)},at=function(){return void 0===e.value?Ne:Y},rt=function(){Fe(!1)},lt=function(e){return function(t){me&&me(e)}},ct=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:k(ie)&&(0,n.jsx)("span",v({className:"length-limit"},{children:(Ne?Ne.toString().length:0)+"/"+ie}))})}),[ie,Ne]),ut=(0,o.useMemo)((function(){var e=Z||("password"===Q?"password"===Ie?(0,n.jsx)(c(),{}):(0,n.jsx)(s(),{}):null);return(0,n.jsx)(n.Fragment,{children:X&&e&&(0,n.jsx)("span",v({className:"password"===Q?"right-icon right-icon-password":"right-icon",onClick:ot},{children:e}))})}),[X,Z,Q,Ie,G]),st=function(){var t=Ke.current;t.value="",void 0===e.value&&Pe(""),fe&&fe({target:t}),Xe(""),ke&&ke()},dt=function(){if(at()&&!z&&te)return(0,n.jsx)("span",v({className:"clean-up-icon",onClick:st},{children:(0,n.jsx)(p(),{})}))},pt=(0,o.useMemo)((function(){return(0,n.jsxs)("div",v({className:"text-field-content-within",ref:Ye},{children:[(0,n.jsxs)("div",v({className:"text-field-content-within-input"},{children:[E?(0,n.jsx)("textarea",v({ref:Ke,rows:_,value:at(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:z},ye)):(0,n.jsx)("input",v({ref:Ke,type:Ie,value:at(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:z},ye)),Ce&&!Te&&(0,n.jsx)("span",v({className:"text-field-label-placeholder",onClick:Ve},{children:"outside"===w?C:(0,n.jsxs)(n.Fragment,{children:[O||C,I&&(0,n.jsx)("span",v({className:"text-field-required"},{children:"*"})),q&&(0,n.jsx)("span",{children:q})]})}))]})),dt(),ct,ut]}))}),[Ce,Te,W,Ie,Ne,ct,ut,w,C,O,z,E,_,ye,fe,ne,G,te,ke]),ft=(0,o.useMemo)((function(){var e,t=function(e){return"object"==typeof e&&null!==e?e[le]:e};return(0,n.jsxs)("div",v({className:(e="text-field-select-content",Re&&(e+=" text-field-select-content-loading"),we&&(e+=" "+we),e),style:{width:(Ye&&Ye.current?Ye.current.offsetWidth:0)+"px"}},{children:[Ue&&Ue.map((function(e,i){return(0,n.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:lt(e),"data-val":JSON.stringify(e)},{children:ae?ae(e):(0,n.jsx)(f.default,{children:t(e)})}),i)})),0===Ue.length&&se,Re&&(0,n.jsx)(x.default,{})]}))}),[Ye,_e,Ue,ae,le,me,Re,we,se]),xt=(0,o.useMemo)((function(){return(0,n.jsx)(b.default,v({open:_e,title:ft,onClose:rt,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(e="paraui-text-field-select paraui-scrollbar-small",d&&(e+=" paraui-text-field-select-"+d),oe&&(e+=" "+oe),Ue.length>0&&(e+=" paraui-text-field-select-data"),e)}},{children:pt}));var e}),[Ce,Te,W,Ie,Ne,ct,ut,w,C,O,z,E,_,ye,fe,ne,me,Ye,_e,oe,d,G,Ue,te,ke,se]),bt=(0,o.useMemo)((function(){var e,t=Boolean(I||q||O);if("outside"===w&&t){return(0,n.jsx)(a.default,v({label:O,required:I,labelSign:q},N,{className:(e="text-field-label",N&&N.className&&(e+=" "+N.className),e)}))}return null}),[w,O,q,I,N]);return(0,n.jsxs)("div",v({className:(Je="paraui-text-field",Je+=" text-field",d&&!E&&(Je+=" text-field-"+d),i&&(Je+=" "+i),L&&(Je+=" text-field-error"),Te&&(Je+=" text-field-focus"),z&&(Je+=" text-field-disabled"),E&&(Je+=" text-field-multiline"),k(e.limitLength)&&(Je+=" text-field-limit-length"),k(e.limitLength)&&Ne&&Ne.toString().length>Number(e.limitLength)&&(Je+=" text-field-limit"),ue&&(Je+=" text-field-resize"),at()&&(Je+=" text-field-value"),te&&(Je+=" text-field-allow-clear"),Je),style:l},{children:[bt,(0,n.jsxs)("div",v({className:"text-field-content"},{children:[U&&(0,n.jsx)("div",v({className:"text-field-content-before",onClick:function(e){ge&&ge(e)}},{children:U})),ne?xt:pt,K&&(0,n.jsx)("div",v({className:"text-field-content-after",onClick:function(e){ve&&ve(e)}},{children:K}))]})),(0,n.jsx)(h.default,{className:"text-field-error-text",error:L,helperText:H})]}))}},7371:function(e,t,i){"use strict";var n=i(5893),o=i(670),a=i(5744),r=i.n(a),l=(i(2310),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)}),c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t,i=e.placement,a=void 0===i?"top-start":i,u=e.className,s=e.arrow,d=void 0===s||s,p=e.PopperProps,f=e.boundariesElement,x=void 0===f?"scrollParent":f,b=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),h=l(l({},e.classes),{popper:r()("paraui-tooltip",u,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==a?void 0:a.includes("left"))||(null==a?void 0:a.includes("right")),"paraui-tooltip-top-bottom":(null==a?void 0:a.includes("top"))||(null==a?void 0:a.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,l({},b,{enterTouchDelay:0,arrow:d,placement:a,classes:h,PopperProps:l(l({},p),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(e){"use strict";e.exports=i},5395:function(e){"use strict";e.exports=u},6788:function(e){"use strict";e.exports=l},2396:function(e){"use strict";e.exports=d},3835:function(e){"use strict";e.exports=s},8076:function(e){"use strict";e.exports=n},1437:function(e){"use strict";e.exports=f},2788:function(e){"use strict";e.exports=c},5428:function(e){"use strict";e.exports=a},9979:function(e){"use strict";e.exports=r},7375:function(e){"use strict";e.exports=x},6839:function(e){"use strict";e.exports=p},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=t},8156:function(t){"use strict";t.exports=e}},h={};function g(e){var t=h[e];if(void 0!==t)return t.exports;var i=h[e]={id:e,exports:{}};return b[e](i,i.exports,g),i.exports}g.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return g.d(t,{a:t}),t},g.d=function(e,t){for(var i in t)g.o(t,i)&&!g.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},g.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},g.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nc=void 0;var v={};return function(){"use strict";g.r(v),g.d(v,{Transfer:function(){return y},default:function(){return w}});var e=g(5893),t=g(8156),i=g(5744),n=g.n(i),o=g(9690),a=g(6562),r=g(7839),l=g(7896),c=g(6839),u=g.n(c),s=g(1437),d=g.n(s),p=g(7375),f=g.n(p),x=g(3054),b={zh:{left:"左侧",right:"右侧",searchPlaceholder:"请输入搜索内容",leftBtnTips:"请先勾选右侧内容",rightBtnTips:"请先勾选左侧内容"},en:{left:"Left",right:"Right",searchPlaceholder:"Please enter the search content",leftBtnTips:"Please check the content on the right first",rightBtnTips:"Please check the content on the left first"}},h=g(8543),m=(g(9039),function(){return m=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)}),k=function(e,t,i){if(i||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},y=function(i){var c=i.data,s=void 0===c?[]:c,p=i.value,g=i.onChange,v=i.titles,y=i.className,w=i.style,j=(0,x.Z)("Transfer",b),C=(0,t.useState)(s),S=C[0],O=C[1],N=(0,t.useState)([]),P=N[0],z=N[1],T=(0,t.useState)(""),E=T[0],M=T[1],I=(0,t.useState)(""),q=I[0],B=I[1],_=(0,t.useState)(0),F=_[0],L=_[1],R=(0,t.useState)(0),H=R[0],A=R[1],U=(0,t.useState)(""),D=U[0],K=U[1],Y=(0,t.useState)(""),J=Y[0],W=Y[1];(0,t.useEffect)((function(){p&&(z(k([],p,!0)),V(k([],p,!0)))}),[p]);var V=function(e){for(var t=(0,h.ArrayToObject)("key",e),n=(0,h.ArrayToObject)("name",e),o=[],a=i.data||[],r=0,l=a.length;r<l;r++){var c=a[r],u=c.key||c.name||"";u&&(t[u]||n[u])||o.push(c)}O(o)},Q=(0,t.useCallback)((function(e,t,i,n){"left"===n?(S[i].checked=t,O(k([],S,!0))):(P[i].checked=t,z(k([],P,!0)))}),[S,P]),G=(0,t.useCallback)((function(e,t){"left"===t?(S.forEach((function(t){t.disabled||t.hide||(t.checked=e.target.checked)})),O(k([],S,!0))):(P.forEach((function(t){t.disabled||t.hide||(t.checked=e.target.checked)})),z(k([],P,!0))),M(e.target.checked)}),[S,P]),Z=function(e){"left"===e?k([],P,!0).forEach((function(e){e.checked&&!e.hide&&(e.checked=!1,S.push(e),P.splice(P.indexOf(e),1))})):k([],S,!0).forEach((function(e){e.checked&&!e.hide&&(e.checked=!1,P.push(e),S.splice(S.indexOf(e),1))})),O(k([],S,!0)),z(k([],P,!0)),g&&g(P)},$=function(e,t){var i=e.toUpperCase();"left"===t?(S.forEach((function(e){e.hide=!1;var t=(e.name||"").toUpperCase(),n=(e.description||"").toUpperCase();-1===t.indexOf(i)&&-1===n.indexOf(i)&&(e.hide=!0)})),O(k([],S,!0))):(P.filter((function(e){e.hide=!1;var t=(e.name||"").toUpperCase(),n=(e.description||"").toUpperCase();-1===t.indexOf(i)&&-1===n.indexOf(i)&&(e.hide=!0)})),z(k([],P,!0)))},X=function(e){if(0===e.length)return"";for(var t=!1,i=!1,n=0,o=e.length;n<o&&(!t||!i);n++){var a=e[n];a.disabled||a.hide||(a.checked?t=!0:i=!0)}return t&&!i?"checked":t&&i?"indeterminate":""};return(0,t.useEffect)((function(){var e=S.filter((function(e){return e.checked&&!e.hide}));L(e.length);var t=X(S);M(t),W("indeterminate"===t||"checked"===t?"on":"");var i=P.filter((function(e){return e.checked&&!e.hide}));A(i.length);var n=X(P);B(n),K("indeterminate"===n||"checked"===n?"on":"")}),[S,P]),(0,e.jsxs)("div",m({className:n()("transfer",y),style:w},{children:[(0,e.jsxs)("div",m({className:"box"},{children:[(0,e.jsxs)("div",m({className:"box-header"},{children:[(0,e.jsx)(o.Checkbox,{label:void 0!==v?v[0]:j({id:"left"}),size:"medium",checked:"checked"===E,indeterminate:"indeterminate"===E,onChange:function(e){G(e,"left")}}),(0,e.jsxs)("div",m({className:"count"},{children:[F,"/",S.length]}))]})),(0,e.jsx)(a.Search,{btnType:"inside",placeholder:j({id:"searchPlaceholder"}),showBtn:!1,rightIcon:(0,e.jsx)(u(),{}),onChange:function(e){$(e,"left")},allowClear:!1}),(0,e.jsx)("div",m({className:"context"},{children:S.map((function(t,i){return t.hide?null:(0,e.jsxs)("div",m({className:n()("item",t.disabled&&"item-disabled"),onClick:function(e){t.disabled||Q(e,!t.checked,i,"left")}},{children:[(0,e.jsx)(o.Checkbox,{size:"medium",checked:t.checked,disabled:t.disabled}),(0,e.jsx)("div",m({className:"item-label"},{children:(0,e.jsx)(r.default,{children:t.name||t.key})}))]}),t.key||t.name)}))}))]})),(0,e.jsxs)("div",m({className:"moveBtn"},{children:[(0,e.jsx)(l.default.IconButton,m({className:"btn btn-right",variant:"outlined",disabled:"on"!==J,toolTipTitle:"on"!==J?j({id:"rightBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottom-end"},onClick:function(){Z("right")}},{children:(0,e.jsx)(f(),{})})),(0,e.jsx)(l.default.IconButton,m({className:"btn btn-left",variant:"outlined",disabled:"on"!==D,toolTipTitle:"on"!==D?j({id:"leftBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottom-end"},onClick:function(){Z("left")}},{children:(0,e.jsx)(d(),{})}))]})),(0,e.jsxs)("div",m({className:"box"},{children:[(0,e.jsxs)("div",m({className:"box-header"},{children:[(0,e.jsx)(o.Checkbox,{label:void 0!==v?v[1]:j({id:"right"}),size:"medium",checked:"checked"===q,indeterminate:"indeterminate"===q,onChange:function(e){G(e,"right")}}),(0,e.jsxs)("div",m({className:"count"},{children:[H,"/",P.length]}))]})),(0,e.jsx)(a.Search,{btnType:"inside",placeholder:j({id:"searchPlaceholder"}),showBtn:!1,rightIcon:(0,e.jsx)(u(),{}),onChange:function(e){$(e,"right")},allowClear:!1}),(0,e.jsx)("div",m({className:"context"},{children:P.map((function(t,i){return t.hide?null:(0,e.jsxs)("div",m({className:n()("item",t.disabled&&"item-disabled"),onClick:function(e){t.disabled||Q(e,!t.checked,i,"right")}},{children:[(0,e.jsx)(o.Checkbox,{size:"medium",checked:t.checked,disabled:t.disabled}),(0,e.jsx)("div",m({className:"item-label"},{children:(0,e.jsx)(r.default,{children:t.name||t.key})}))]}),t.key||t.name)}))}))]}))]}))},w=y}(),v}()}));
|
|
14
|
+
*/i(7418);var n=i(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var r=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,i){var n,a={},u=null,s=null;for(n in void 0!==i&&(u=""+i),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(s=t.ref),t)l.call(t,n)&&!c.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:s,props:a,_owner:r.current}}t.jsx=u,t.jsxs=u},5893:function(e,t,i){"use strict";e.exports=i(5251)},9271:function(e,t,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},5822:function(e,t,i){var n=i(3379),o=i(8313);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},9036:function(e,t,i){var n=i(3379),o=i(1204);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},2113:function(e,t,i){var n=i(3379),o=i(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},3936:function(e,t,i){var n=i(3379),o=i(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},9663:function(e,t,i){var n=i(3379),o=i(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},3492:function(e,t,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},9750:function(e,t,i){var n=i(3379),o=i(4447);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},6202:function(e,t,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},2310:function(e,t,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},9039:function(e,t,i){var n=i(3379),o=i(7282);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var a={insert:("body","body"),singleton:!1};n(o,a);e.exports=o.locals||{}},3379:function(e,t,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),r=[];function l(e){for(var t=-1,i=0;i<r.length;i++)if(r[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var a=e[o],c=t.base?a[0]+t.base:a[0],u=i[c]||0,s="".concat(c," ").concat(u);i[c]=u+1;var d=l(s),p={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(r[d].references++,r[d].updater(p)):r.push({identifier:s,updater:h(p,t),references:1}),n.push(s)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var r=a(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var s,d=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function p(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var a=document.createTextNode(o),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(a,r[t]):e.appendChild(a)}}function f(e,t,i){var n=i.css,o=i.media,a=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var x=null,b=0;function h(e,t){var i,n,o;if(t.singleton){var a=b++;i=x||(x=u(t)),n=p.bind(null,i,a,!1),o=p.bind(null,i,a,!0)}else i=u(t),n=f.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=l(i[n]);r[o].references--}for(var a=c(e,t),u=0;u<i.length;u++){var s=l(i[u]);0===r[s].references&&(r[s].updater(),r.splice(s,1))}i=a}}}},7839:function(e,t,i){"use strict";var n=i(5893),o=i(8156),a=i(7371),r=(i(9271),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)});t.default=function(e){var t=e.children,i=e.arrow,l=void 0!==i&&i,c=e.placement,u=void 0===c?"bottom-start":c,s=e.tips,d=void 0===s?"":s,p=e.className,f=void 0===p?"":p,x=e.beyondText,b=void 0===x||x,h=e.interactive,g=void 0===h||h,v=e.style,m=(0,o.useRef)(),k=(0,o.useRef)(),y=(0,o.useState)(""),w=y[0],j=y[1];(0,o.useEffect)((function(){j(d)}),[d]);var C;return(0,n.jsx)("div",r({ref:m,className:(C="paraui-auto-tips",f&&(C+=" "+f),C),onMouseOver:function(){var e="",i=m.current,n=i.getBoundingClientRect();m.current&&i.scrollWidth>n.width&&(e=d||(b?i.innerText:t)),j(e)},style:v},{children:(0,n.jsx)(a.default,r({arrow:l,title:w,placement:u,interactive:g,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",r({className:"auto-tips-content",ref:k},{children:t}))}))}))}},7896:function(e,t,i){"use strict";i.d(t,{default:function(){return y}});var n=i(5893),o=i(8156),a=i(670),r=i(5744),l=i.n(r),c=i(2788),u=i.n(c),s=i(3835),d=i.n(s),p=i(7371),f=i(2396),x=i.n(f),b=i(3054),h={zh:{moreActions:"更多操作"},en:{moreActions:"More actions"}},g=function(){return g=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)};i(5822);var v=function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)},m=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i},k=function(e){var t=e.variant,i=void 0===t?"contained":t,r=e.size,c=void 0===r?"large":r,s=e.className,f=e.disabled,x=void 0!==f&&f,b=e.children,h=e.startIcon,g=e.endIcon,k=e.loading,y=void 0!==k&&k,w=e.toolTipTitle,j=void 0===w?"":w,C=e.TooltipProps,S=e.danger,O=void 0!==S&&S,N=m(e,["variant","size","className","disabled","children","startIcon","endIcon","loading","toolTipTitle","TooltipProps","danger"]),P=(0,o.useState)(!1),z=P[0],T=P[1],E=function(e){if(!z)return"start"===e&&h?(0,n.jsx)("span",v({className:l()("btn-icon","start-icon")},{children:h})):"end"===e&&g?(0,n.jsx)("span",v({className:l()("btn-icon","end-icon")},{children:g})):null;if("object"==typeof y){var t=y.delay||0;setTimeout((function(){return T(!1)}),t)}return"start"===e?(0,n.jsx)("span",v({className:"btn-icon loading-icon"},{children:(0,n.jsx)(u(),{})})):null},M=(0,n.jsx)(a.Button,v({},N,{color:"default",variant:"contained",disabled:x,disableRipple:!0,disableElevation:!0,className:l()("paraui-button",s,"paraui-button-".concat(i),"paraui-button-".concat(c),z&&"paraui-button-loading",O&&!x&&"paraui-button-dangerous"),classes:{label:"paraui-button-label"},startIcon:E("start"),endIcon:E("end")},{children:b}));return(0,o.useEffect)((function(){T(!!y)}),[y]),x&&j?(0,n.jsx)(p.default,v({},C,{title:function(){if(x&&j){return(0,n.jsxs)("span",{children:[(0,n.jsx)(d(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),j]})}return j}()},{children:(0,n.jsx)("span",v({className:"paraui-button--disabled"},{children:M}))})):M};k.IconButton=function(e){var t=e.variant,i=void 0===t?"contained":t,r=e.size,c=void 0===r?"large":r,s=e.toolTipTitle,f=void 0===s?"":s,x=e.children,b=e.className,h=e.disabled,g=void 0!==h&&h,k=e.loading,y=void 0!==k&&k,w=e.TooltipProps,j=e.danger,C=void 0!==j&&j,S=m(e,["variant","size","toolTipTitle","children","className","disabled","loading","TooltipProps","danger"]),O=(0,o.useState)(!1),N=O[0],P=O[1],z=(0,n.jsx)(a.IconButton,v({},S,{disabled:g,disableRipple:!0,className:l()("paraui-icon-button",b,"paraui-icon-button-".concat(i),"paraui-icon-button-".concat(c),N&&"paraui-icon-button-loading",C&&!g&&"paraui-icon-button-dangerous")},{children:function(){if(!N)return x;if("object"==typeof y){var e=y.delay||0;setTimeout((function(){return P(!1)}),e)}return(0,n.jsx)("span",v({className:"loading-icon"},{children:(0,n.jsx)(u(),{})}))}()}));return(0,o.useEffect)((function(){P(!!y)}),[y]),f?(0,n.jsx)(p.default,v({},w,{title:function(){if(g&&f){return(0,n.jsxs)("span",{children:[(0,n.jsx)(d(),{style:{marginRight:"4px",fontSize:"11px",color:"inherit"}}),f]})}return f}()},{children:g?(0,n.jsx)("span",v({className:"paraui-button--disabled"},{children:z})):z}),+N):z},k.SplitButton=function(e){var t=e.buttonText,i=e.options,r=void 0===i?[]:i,c=e.className,u=e.popperClassName,s=e.style,d=e.popperStyle,p=e.disabled,f=void 0!==p&&p,v=e.onClick,m=e.optionRender,k=e.placement,w=void 0===k?"bottom-end":k,j=e.buttonProps,C=e.iconButton,S=void 0!==C&&C,O=(0,b.Z)("Button",h),N=(0,o.useState)(!1),P=N[0],z=N[1],T=(0,o.useRef)(null),E=(0,o.useRef)(),M=(0,o.useRef)(),I=(0,o.useState)(),q=I[0],_=I[1],B=function(e,t,i){var n;e.disabled?i.stopPropagation():(_(t),z(!1),null===(n=E.current)||void 0===n||n.classList.remove("paraui-button-split--active"),null==v||v(e,i))},F=function(e){e.stopPropagation(),L();var t=e.currentTarget;M.current=window.setTimeout((function(){E.current=t,t.classList.add("paraui-button-split--active"),z(!0)}),150)},L=function(){M.current&&(clearTimeout(M.current),M.current=null)},R=function(e){var t,i;(null===(t=T.current)||void 0===t?void 0:t.contains(e.target))||(z(!1),null===(i=E.current)||void 0===i||i.classList.remove("paraui-button-split--active"))},H=function(){return(0,n.jsx)("div",g({className:"paraui-button-split-list"},{children:(0,n.jsx)("ul",{children:r.map((function(e,t){return Array.isArray(e)?function(e,t){return(0,n.jsx)("li",g({className:"split-li-group"},{children:e.map((function(e,i){var o="".concat(t,"-").concat(i);return(0,n.jsx)("div",g({className:l()("split-li",o===q&&"split-li--active",e.disabled&&"split-li--disabled"),onClick:function(t){return B(e,o,t)}},{children:(null==m?void 0:m(e))||e.label}),o)}))}),t)}(e,t):(0,n.jsx)("li",g({className:l()("split-li",t===q&&"split-li--active",e.disabled&&"split-li--disabled"),onClick:function(i){return B(e,t,i)}},{children:(null==m?void 0:m(e))||e.label}),t)}))})}))};return(0,n.jsxs)("div",g({className:l()("paraui-button-split",c),ref:T,style:s,onMouseLeave:function(e){var t;e.stopPropagation(),L(),null===(t=e.currentTarget.firstElementChild)||void 0===t||t.classList.remove("paraui-button-split--active"),z(!1)}},{children:[S?(0,n.jsx)(y.IconButton,g({variant:"text",size:"small",disabled:f},j,{onMouseEnter:F},{children:null!=t?t:O({id:"moreActions"})})):(0,n.jsx)(y,g({variant:"outlined",size:"large",startIcon:(0,n.jsx)(x(),{}),disabled:f},j,{onMouseEnter:F},{children:null!=t?t:O({id:"moreActions"})})),(0,n.jsx)(a.Popper,g({open:P,anchorEl:T.current,transition:!0,placement:w,style:g({zIndex:1500},d),className:l()("paraui-button-split-popper",u)},{children:function(e){var t=e.TransitionProps;e.placement;return(0,n.jsx)(a.Grow,g({},t,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.ClickAwayListener,g({onClickAway:R},{children:H()}))})}))}}))]}))};var y=k},9690:function(e,t,i){"use strict";i.d(t,{Checkbox:function(){return l}});var n=i(5893),o=i(8156),a=i(8767),r=(i(9036),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)}),l=function(e){var t=e.className,i=void 0===t?"":t,l=e.label,c=void 0===l?"":l,u=e.labelTooltip,s=e.size,d=void 0===s?"large":s,p=e.disabled,f=void 0!==p&&p,x=e.indeterminate,b=void 0!==x&&x,h=e.onChange,g=e.style,v=(0,o.useState)(!1),m=v[0],k=v[1];(0,o.useEffect)((function(){void 0!==e.defaultChecked&&k(e.defaultChecked)}),[]),(0,o.useEffect)((function(){void 0!==e.checked&&k(e.checked)}),[e.checked]);var y;return(0,n.jsxs)("label",r({className:(y="paraui-check-box",i&&(y+=" "+i),d&&(y+=" check-box-"+d),f&&(y+=" check-box-disabled"),b?y+=" check-box-indeterminate":m&&(y+=" check-box-checked"),y),onClick:function(t){if(t.preventDefault(),!f){if(b)return void 0===e.checked&&k(!0),void(h&&h(t,!0));void 0===e.checked&&k(!m),t.target.checked=!m,t.target.value=!m,h&&h(t,!m)}},style:g},{children:[(0,n.jsxs)("span",r({className:"paraui-checkbox-box"},{children:[(0,n.jsx)("input",r({type:"checkbox",value:m},e.inputProps)),(0,n.jsx)("span",{className:"paraui-checkbox-box-inner"})]})),void 0!==c&&""!==c&&null!==c?(0,n.jsx)(a.default,r({label:c},u,{className:function(){var e="paraui-check-box-label";return u&&u.className&&(e+=" "+u.className),e}()})):null]}))}},3054:function(e,t,i){"use strict";var n=i(8156),o=i.n(n),a=i(5395),r=i.n(a);t.Z=function(e,t){var i=o().useContext(r()).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,i&&i(e,t)}},3566:function(e,t,i){"use strict";var n=i(5893),o=i(7371),a=i(8076),r=i.n(a),l=i(5744),c=i.n(l),u=(i(2113),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),s=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t=e.title,i=void 0===t?"":t,a=e.children,l=e.arrow,d=void 0===l||l,p=e.interactive,f=void 0===p||p,x=e.className,b=e.placement,h=void 0===b?"top-start":b,g=s(e,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,u({title:i,arrow:d,interactive:f,placement:h},g,{children:(0,n.jsx)("span",u({className:c()("paraui-help",x)},{children:a||(0,n.jsx)(r(),{})}))}))}},4254:function(e,t,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)});t.default=function(e){var t,i=e.className,a=e.style,r=e.error,l=void 0!==r&&r,c=e.helperText;return(0,n.jsx)("p",o({className:(t="paraui-helper-text",i&&(t+=" "+i),l&&(t+=" paraui-helper-text-error"),t),style:a},{children:c}))}},6010:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(8156),o=i.n(n),a=i(5395),r=i.n(a),l=function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function c(e,t){var i=o().useContext(r()).componentsProps,n=i&&i[t];return l(l({},n),e)}},8767:function(e,t,i){"use strict";var n=i(5893),o=i(3566),a=(i(9663),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,r=e.label,l=e.labelSign,c=e.required,u=void 0!==c&&c,s=e.tooltip,d=e.tooltipType,p=void 0===d?"icon":d,f=e.placement,x=e.arrow,b=e.tooltipIcon,h=function(){var e="paraui-label";return p&&(e+=" paraui-label-"+p),s&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return(0,n.jsxs)(n.Fragment,{children:["icon"===p&&(0,n.jsxs)("label",a({className:h(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:r}),u&&(0,n.jsx)("span",a({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l}),s&&(0,n.jsx)(o.default,a({title:s,placement:f,arrow:x},{children:b}))]})),"line"===p&&(0,n.jsx)(o.default,a({title:s||"",placement:f,arrow:x},{children:(0,n.jsxs)("label",a({className:h(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:r}),u&&(0,n.jsx)("span",a({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l})]}))}))]})}},7502:function(e,t,i){"use strict";var n=i(5893),o=i(8156),a=i(2788),r=i.n(a),l=(i(3492),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,a=e.opacity,c=void 0===a?.7:a,u=(0,o.useRef)(null);(0,o.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var s;return(0,n.jsxs)("div",l({className:(s="paraui-loading",t&&(s+=" "+t),s),style:i,ref:u},{children:[(0,n.jsx)("div",l({className:"paraui-loading-box"},{children:(0,n.jsx)(r(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},6562:function(e,t,i){"use strict";i.d(t,{Search:function(){return s}});var n=i(5893),o=i(8156),a=i(7320),r=i(7896),l=i(6839),c=i.n(l),u=(i(9750),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),s=function(e){var t=e.className,i=void 0===t?"":t,l=e.style,s=e.size,d=void 0===s?"large":s,p=e.btnType,f=void 0===p?"outside":p,x=e.showBtn,b=void 0===x||x,h=e.btnIcon,g=e.btnText,v=void 0===g?"":g,m=e.placeholder,k=void 0===m?"":m,y=(e.defaultValue,e.value),w=e.rightIcon,j=e.showRightIcon,C=void 0===j||j,S=e.allowClear,O=void 0===S||S,N=e.rightIconExist,P=void 0!==N&&N,z=e.onChange,T=e.onBlur,E=e.onFocus,M=e.onKeydown,I=e.onKeyUp,q=e.onClickBtn,_=e.onClickRightIcon,B=e.onEnter,F=e.onClear,L=(0,o.useState)(""),R=L[0],H=L[1];(0,o.useEffect)((function(){void 0!==e.defaultValue&&H(e.defaultValue)}),[]),(0,o.useEffect)((function(){void 0!==y&&H(y)}),[y]);var A,U=function(){return h||(0,n.jsx)(c(),{})},D=function(){q&&q(R)};return(0,n.jsxs)("div",u({className:(A="paraui-search",i&&(A+=" "+i),d&&(A+=" search-"+d),f&&(A+=" search-"+f),b&&(A+=" search-showbtn"),v&&(A+=" search-btntext"),R&&(A+=" paraui-search-value"),P&&(A+=" paraui-search-right-icon-exist"),A),style:l},{children:[(0,n.jsx)(a.default,{size:d,placeholder:k,value:void 0===e.value?R:y,rightIcon:C?w||void 0:"",onClickIcon:function(){var t=R;C&&!w&&void 0===e.value&&(t="",H("")),_&&_(t)},onChange:function(t){var i=t.target.value;void 0===e.value&&H(i),z&&z(i,t)},onBlur:T,onFocus:E,onKeydown:M,onKeyUp:I,onEnter:B,addonAfter:function(){if(b&&"inside"===f)return(0,n.jsx)(r.default,u({size:d,startIcon:U(),variant:"outlined",onClick:D},{children:v}))}(),allowClear:O,onClear:F}),b&&"outside"===f&&(0,n.jsx)(r.default,u({size:d,startIcon:U(),variant:"contained",onClick:D},{children:v}))]}))}},7320:function(e,t,i){"use strict";var n=i(5893),o=i(8156),a=i(8767),r=i(8543),l=i(5428),c=i.n(l),u=i(9979),s=i.n(u),d=i(6788),p=i.n(d),f=i(7839),x=i(7502),b=i(7371),h=i(4254),g=i(6010),v=(i(6202),function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)}),m=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i},k=function(e){return"number"==typeof e&&!isNaN(e)};t.default=function(e){var t=(0,g.Z)(e,"TextField"),i=t.className,l=t.style,u=t.size,d=void 0===u?"large":u,y=t.labelMode,w=void 0===y?"outside":y,j=t.placeholder,C=void 0===j?"":j,S=t.label,O=void 0===S?"":S,N=t.labelTooltip,P=t.disabled,z=void 0!==P&&P,T=t.multiline,E=void 0!==T&&T,M=t.required,I=void 0!==M&&M,q=t.labelSign,_=t.rows,B=void 0===_?2:_,F=t.error,L=void 0!==F&&F,R=t.helperText,H=void 0===R?"":R,A=t.addonBefore,U=void 0===A?"":A,D=t.addonAfter,K=void 0===D?"":D,Y=(t.defaultValue,t.value),J=t.autoFocus,W=void 0!==J&&J,V=t.type,Q=void 0===V?"text":V,G=t.onClickIcon,Z=t.rightIcon,$=t.showRightIcon,X=void 0===$||$,ee=t.allowClear,te=void 0!==ee&&ee,ie=t.limitLength,ne=t.fetchSuggestions,oe=t.selectPopoverClass,ae=t.renderSelectItem,re=t.showSelectName,le=void 0===re?"value":re,ce=t.resize,ue=void 0===ce||ce,se=t.searchEmpty,de=t.onBlur,pe=t.onFocus,fe=t.onChange,xe=t.onKeydown,be=t.onKeyUp,he=t.onEnter,ge=t.onClickAddonBefore,ve=t.onClickAddonAfter,me=t.onSelect,ke=t.onClear,ye=m(t,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","searchEmpty","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),we=(0,o.useState)("text-field-select-content-"+(0,r.UUID)())[0],je=(0,o.useState)(!0),Ce=je[0],Se=je[1],Oe=(0,o.useState)(""),Ne=Oe[0],Pe=Oe[1],ze=(0,o.useState)(!1),Te=ze[0],Ee=ze[1],Me=(0,o.useState)("text"),Ie=Me[0],qe=Me[1],_e=(0,o.useState)(!1),Be=_e[0],Fe=_e[1],Le=(0,o.useState)(!1),Re=Le[0],He=Le[1],Ae=(0,o.useState)([]),Ue=Ae[0],De=Ae[1],Ke=(0,o.useRef)(null),Ye=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&Pe(e.defaultValue)}),[]),(0,o.useEffect)((function(){Q!==Ie&&qe(Q)}),[Q]),(0,o.useEffect)((function(){void 0!==Y&&Pe(Y)}),[Y]),(0,o.useEffect)((function(){Se(""===Ne||void 0===Ne)}),[Ne]),(0,o.useEffect)((function(){ne&&Fe(Te)}),[Te,ne]),(0,o.useEffect)((function(){return Be?window.addEventListener("keydown",Ze):window.removeEventListener("keydown",Ze),function(){window.removeEventListener("keydown",Ze)}}),[Be]),(0,o.useEffect)((function(){if(!Te&&Ne){var t=We(Ne);if(t!==Ne){var i={};i.target=Ke.current,i.target.value=t,void 0===e.value&&Pe(t),e.onChange&&e.onChange(i)}}}),[Ne,Te]);var Je,We=function(t){var i=t;return k(e.limitLength)&&t.toString().length>Number(e.limitLength)&&(i=i.toString().substr(0,e.limitLength)),i},Ve=function(){z||(Se(!1),(Ke&&Ke.current).focus())},Qe=function(e){var t=e.selectDom,i=e.keyCode,n=e.currentDom,o="nextSibling",a=".text-field-select-content-item";38===i&&(o="previousSibling",a=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=t.querySelector(a)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Ge(n,t))},Ge=function(e,t){var i=t.clientHeight,n=e.offsetTop+e.clientHeight-i;t.scrollTop=n>0?n:0},Ze=function(e){var t=document.querySelector("."+we),i=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;lt(JSON.parse(o))(e),(Ke&&Ke.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i}),38===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i})},$e=function(e){Ee(!1),""===e.target.value&&Se(!0),de&&de(e)},Xe=function(e){ne&&(He(!0),ne(e,(function(e){De(e||[]),He(!1)})))},et=function(e){Ee(!0),pe&&pe(e),Xe(e.target.value)},tt=function(t){var i=t.target.value;i&&Se(!1),void 0===e.value&&Pe(i),fe&&fe(t),Xe(t.target.value)},it=function(e){13===e.keyCode&&he&&he(e),xe&&xe(e)},nt=function(e){be&&be(e)},ot=function(e){"password"===Q&&("text"===Ie&&qe("password"),"password"===Ie&&qe("text")),G&&G(e)},at=function(){return void 0===e.value?Ne:Y},rt=function(){Fe(!1)},lt=function(e){return function(t){me&&me(e)}},ct=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:k(ie)&&(0,n.jsx)("span",v({className:"length-limit"},{children:(Ne?Ne.toString().length:0)+"/"+ie}))})}),[ie,Ne]),ut=(0,o.useMemo)((function(){var e=Z||("password"===Q?"password"===Ie?(0,n.jsx)(c(),{}):(0,n.jsx)(s(),{}):null);return(0,n.jsx)(n.Fragment,{children:X&&e&&(0,n.jsx)("span",v({className:"password"===Q?"right-icon right-icon-password":"right-icon",onClick:ot},{children:e}))})}),[X,Z,Q,Ie,G]),st=function(){var t=Ke.current;t.value="",void 0===e.value&&Pe(""),fe&&fe({target:t}),Xe(""),ke&&ke()},dt=function(){if(at()&&!z&&te)return(0,n.jsx)("span",v({className:"clean-up-icon",onClick:st},{children:(0,n.jsx)(p(),{})}))},pt=(0,o.useMemo)((function(){return(0,n.jsxs)("div",v({className:"text-field-content-within",ref:Ye},{children:[(0,n.jsxs)("div",v({className:"text-field-content-within-input"},{children:[E?(0,n.jsx)("textarea",v({ref:Ke,rows:B,value:at(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:z},ye)):(0,n.jsx)("input",v({ref:Ke,type:Ie,value:at(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:z},ye)),Ce&&!Te&&(0,n.jsx)("span",v({className:"text-field-label-placeholder",onClick:Ve},{children:"outside"===w?C:(0,n.jsxs)(n.Fragment,{children:[O||C,I&&(0,n.jsx)("span",v({className:"text-field-required"},{children:"*"})),q&&(0,n.jsx)("span",{children:q})]})}))]})),dt(),ct,ut]}))}),[Ce,Te,W,Ie,Ne,ct,ut,w,C,O,z,E,B,ye,fe,ne,G,te,ke]),ft=(0,o.useMemo)((function(){var e,t=function(e){return"object"==typeof e&&null!==e?e[le]:e};return(0,n.jsxs)("div",v({className:(e="text-field-select-content",Re&&(e+=" text-field-select-content-loading"),we&&(e+=" "+we),e),style:{width:(Ye&&Ye.current?Ye.current.offsetWidth:0)+"px"}},{children:[Ue&&Ue.map((function(e,i){return(0,n.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:lt(e),"data-val":JSON.stringify(e)},{children:ae?ae(e):(0,n.jsx)(f.default,{children:t(e)})}),i)})),0===Ue.length&&se,Re&&(0,n.jsx)(x.default,{})]}))}),[Ye,Be,Ue,ae,le,me,Re,we,se]),xt=(0,o.useMemo)((function(){return(0,n.jsx)(b.default,v({open:Be,title:ft,onClose:rt,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(e="paraui-text-field-select paraui-scrollbar-small",d&&(e+=" paraui-text-field-select-"+d),oe&&(e+=" "+oe),Ue.length>0&&(e+=" paraui-text-field-select-data"),e)}},{children:pt}));var e}),[Ce,Te,W,Ie,Ne,ct,ut,w,C,O,z,E,B,ye,fe,ne,me,Ye,Be,oe,d,G,Ue,te,ke,se]),bt=(0,o.useMemo)((function(){var e,t=Boolean(I||q||O);if("outside"===w&&t){return(0,n.jsx)(a.default,v({label:O,required:I,labelSign:q},N,{className:(e="text-field-label",N&&N.className&&(e+=" "+N.className),e)}))}return null}),[w,O,q,I,N]);return(0,n.jsxs)("div",v({className:(Je="paraui-text-field",Je+=" text-field",d&&!E&&(Je+=" text-field-"+d),i&&(Je+=" "+i),L&&(Je+=" text-field-error"),Te&&(Je+=" text-field-focus"),z&&(Je+=" text-field-disabled"),E&&(Je+=" text-field-multiline"),k(e.limitLength)&&(Je+=" text-field-limit-length"),k(e.limitLength)&&Ne&&Ne.toString().length>Number(e.limitLength)&&(Je+=" text-field-limit"),ue&&(Je+=" text-field-resize"),at()&&(Je+=" text-field-value"),te&&(Je+=" text-field-allow-clear"),Je),style:l},{children:[bt,(0,n.jsxs)("div",v({className:"text-field-content"},{children:[U&&(0,n.jsx)("div",v({className:"text-field-content-before",onClick:function(e){ge&&ge(e)}},{children:U})),ne?xt:pt,K&&(0,n.jsx)("div",v({className:"text-field-content-after",onClick:function(e){ve&&ve(e)}},{children:K}))]})),(0,n.jsx)(h.default,{className:"text-field-error-text",error:L,helperText:H})]}))}},7371:function(e,t,i){"use strict";var n=i(5893),o=i(670),a=i(5744),r=i.n(a),l=(i(2310),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)}),c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t,i=e.placement,a=void 0===i?"top-start":i,u=e.className,s=e.arrow,d=void 0===s||s,p=e.PopperProps,f=e.boundariesElement,x=void 0===f?"scrollParent":f,b=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),h=l(l({},e.classes),{popper:r()("paraui-tooltip",u,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==a?void 0:a.includes("left"))||(null==a?void 0:a.includes("right")),"paraui-tooltip-top-bottom":(null==a?void 0:a.includes("top"))||(null==a?void 0:a.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,l({},b,{enterTouchDelay:0,arrow:d,placement:a,classes:h,PopperProps:l(l({},p),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(e){"use strict";e.exports=i},5395:function(e){"use strict";e.exports=u},6788:function(e){"use strict";e.exports=l},2396:function(e){"use strict";e.exports=d},3835:function(e){"use strict";e.exports=s},8076:function(e){"use strict";e.exports=n},1437:function(e){"use strict";e.exports=f},2788:function(e){"use strict";e.exports=c},5428:function(e){"use strict";e.exports=a},9979:function(e){"use strict";e.exports=r},7375:function(e){"use strict";e.exports=x},6839:function(e){"use strict";e.exports=p},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=t},8156:function(t){"use strict";t.exports=e}},h={};function g(e){var t=h[e];if(void 0!==t)return t.exports;var i=h[e]={id:e,exports:{}};return b[e](i,i.exports,g),i.exports}g.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return g.d(t,{a:t}),t},g.d=function(e,t){for(var i in t)g.o(t,i)&&!g.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},g.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},g.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nc=void 0;var v={};return function(){"use strict";g.r(v),g.d(v,{Transfer:function(){return y},default:function(){return w}});var e=g(5893),t=g(8156),i=g(5744),n=g.n(i),o=g(9690),a=g(6562),r=g(7839),l=g(7896),c=g(6839),u=g.n(c),s=g(1437),d=g.n(s),p=g(7375),f=g.n(p),x=g(3054),b={zh:{left:"左侧",right:"右侧",searchPlaceholder:"请输入搜索内容",leftBtnTips:"请先勾选右侧内容",rightBtnTips:"请先勾选左侧内容"},en:{left:"Left",right:"Right",searchPlaceholder:"Please enter the search content",leftBtnTips:"Please check the content on the right first",rightBtnTips:"Please check the content on the left first"}},h=g(8543),m=(g(9039),function(){return m=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)}),k=function(e,t,i){if(i||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},y=function(i){var c=i.data,s=void 0===c?[]:c,p=i.value,g=i.onChange,v=i.titles,y=i.className,w=i.style,j=(0,x.Z)("Transfer",b),C=(0,t.useState)(s),S=C[0],O=C[1],N=(0,t.useState)([]),P=N[0],z=N[1],T=(0,t.useState)(""),E=T[0],M=T[1],I=(0,t.useState)(""),q=I[0],_=I[1],B=(0,t.useState)(0),F=B[0],L=B[1],R=(0,t.useState)(0),H=R[0],A=R[1],U=(0,t.useState)(""),D=U[0],K=U[1],Y=(0,t.useState)(""),J=Y[0],W=Y[1];(0,t.useEffect)((function(){p&&(z(k([],p,!0)),V(k([],p,!0)))}),[p]);var V=function(e){for(var t=(0,h.ArrayToObject)("key",e),n=(0,h.ArrayToObject)("name",e),o=[],a=i.data||[],r=0,l=a.length;r<l;r++){var c=a[r],u=c.key||c.name||"";u&&(t[u]||n[u])||o.push(c)}O(o)},Q=(0,t.useCallback)((function(e,t,i,n){"left"===n?(S[i].checked=t,O(k([],S,!0))):(P[i].checked=t,z(k([],P,!0)))}),[S,P]),G=(0,t.useCallback)((function(e,t){"left"===t?(S.forEach((function(t){t.disabled||t.hide||(t.checked=e.target.checked)})),O(k([],S,!0))):(P.forEach((function(t){t.disabled||t.hide||(t.checked=e.target.checked)})),z(k([],P,!0))),M(e.target.checked)}),[S,P]),Z=function(e){"left"===e?k([],P,!0).forEach((function(e){e.checked&&!e.hide&&(e.checked=!1,S.push(e),P.splice(P.indexOf(e),1))})):k([],S,!0).forEach((function(e){e.checked&&!e.hide&&(e.checked=!1,P.push(e),S.splice(S.indexOf(e),1))})),O(k([],S,!0)),z(k([],P,!0)),g&&g(P)},$=function(e,t){var i=e.toUpperCase();"left"===t?(S.forEach((function(e){e.hide=!1;var t=(e.name||"").toUpperCase(),n=(e.description||"").toUpperCase();-1===t.indexOf(i)&&-1===n.indexOf(i)&&(e.hide=!0)})),O(k([],S,!0))):(P.filter((function(e){e.hide=!1;var t=(e.name||"").toUpperCase(),n=(e.description||"").toUpperCase();-1===t.indexOf(i)&&-1===n.indexOf(i)&&(e.hide=!0)})),z(k([],P,!0)))},X=function(e){if(0===e.length)return"";for(var t=!1,i=!1,n=0,o=e.length;n<o&&(!t||!i);n++){var a=e[n];a.disabled||a.hide||(a.checked?t=!0:i=!0)}return t&&!i?"checked":t&&i?"indeterminate":""};return(0,t.useEffect)((function(){var e=S.filter((function(e){return e.checked&&!e.hide}));L(e.length);var t=X(S);M(t),W("indeterminate"===t||"checked"===t?"on":"");var i=P.filter((function(e){return e.checked&&!e.hide}));A(i.length);var n=X(P);_(n),K("indeterminate"===n||"checked"===n?"on":"")}),[S,P]),(0,e.jsxs)("div",m({className:n()("transfer",y),style:w},{children:[(0,e.jsxs)("div",m({className:"box"},{children:[(0,e.jsxs)("div",m({className:"box-header"},{children:[(0,e.jsx)(o.Checkbox,{label:void 0!==v?v[0]:j({id:"left"}),size:"medium",checked:"checked"===E,indeterminate:"indeterminate"===E,onChange:function(e){G(e,"left")}}),(0,e.jsxs)("div",m({className:"count"},{children:[F,"/",S.length]}))]})),(0,e.jsx)(a.Search,{btnType:"inside",placeholder:j({id:"searchPlaceholder"}),showBtn:!1,rightIcon:(0,e.jsx)(u(),{}),onChange:function(e){$(e,"left")},allowClear:!1}),(0,e.jsx)("div",m({className:"context"},{children:S.map((function(t,i){return t.hide?null:(0,e.jsxs)("div",m({className:n()("item",t.disabled&&"item-disabled"),onClick:function(e){t.disabled||Q(e,!t.checked,i,"left")}},{children:[(0,e.jsx)(o.Checkbox,{size:"medium",checked:t.checked,disabled:t.disabled}),(0,e.jsx)("div",m({className:"item-label"},{children:(0,e.jsx)(r.default,{children:t.name||t.key})}))]}),t.key||t.name)}))}))]})),(0,e.jsxs)("div",m({className:"moveBtn"},{children:[(0,e.jsx)(l.default.IconButton,m({className:"btn btn-right",variant:"outlined",disabled:"on"!==J,toolTipTitle:"on"!==J?j({id:"rightBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottom-end"},onClick:function(){Z("right")}},{children:(0,e.jsx)(f(),{})})),(0,e.jsx)(l.default.IconButton,m({className:"btn btn-left",variant:"outlined",disabled:"on"!==D,toolTipTitle:"on"!==D?j({id:"leftBtnTips"}):"",TooltipProps:{arrow:!1,placement:"bottom-end"},onClick:function(){Z("left")}},{children:(0,e.jsx)(d(),{})}))]})),(0,e.jsxs)("div",m({className:"box"},{children:[(0,e.jsxs)("div",m({className:"box-header"},{children:[(0,e.jsx)(o.Checkbox,{label:void 0!==v?v[1]:j({id:"right"}),size:"medium",checked:"checked"===q,indeterminate:"indeterminate"===q,onChange:function(e){G(e,"right")}}),(0,e.jsxs)("div",m({className:"count"},{children:[H,"/",P.length]}))]})),(0,e.jsx)(a.Search,{btnType:"inside",placeholder:j({id:"searchPlaceholder"}),showBtn:!1,rightIcon:(0,e.jsx)(u(),{}),onChange:function(e){$(e,"right")},allowClear:!1}),(0,e.jsx)("div",m({className:"context"},{children:P.map((function(t,i){return t.hide?null:(0,e.jsxs)("div",m({className:n()("item",t.disabled&&"item-disabled"),onClick:function(e){t.disabled||Q(e,!t.checked,i,"right")}},{children:[(0,e.jsx)(o.Checkbox,{size:"medium",checked:t.checked,disabled:t.disabled}),(0,e.jsx)("div",m({className:"item-label"},{children:(0,e.jsx)(r.default,{children:t.name||t.key})}))]}),t.key||t.name)}))}))]}))]}))},w=y}(),v}()}));
|
package/Transfer/lang/en_US.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
left: string;
|
|
3
|
-
right: string;
|
|
4
|
-
searchPlaceholder: string;
|
|
5
|
-
leftBtnTips: string;
|
|
6
|
-
rightBtnTips: string;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
left: string;
|
|
3
|
+
right: string;
|
|
4
|
+
searchPlaceholder: string;
|
|
5
|
+
leftBtnTips: string;
|
|
6
|
+
rightBtnTips: string;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
package/Transfer/lang/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
zh: {
|
|
3
|
-
left: string;
|
|
4
|
-
right: string;
|
|
5
|
-
searchPlaceholder: string;
|
|
6
|
-
leftBtnTips: string;
|
|
7
|
-
rightBtnTips: string;
|
|
8
|
-
};
|
|
9
|
-
en: {
|
|
10
|
-
left: string;
|
|
11
|
-
right: string;
|
|
12
|
-
searchPlaceholder: string;
|
|
13
|
-
leftBtnTips: string;
|
|
14
|
-
rightBtnTips: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
zh: {
|
|
3
|
+
left: string;
|
|
4
|
+
right: string;
|
|
5
|
+
searchPlaceholder: string;
|
|
6
|
+
leftBtnTips: string;
|
|
7
|
+
rightBtnTips: string;
|
|
8
|
+
};
|
|
9
|
+
en: {
|
|
10
|
+
left: string;
|
|
11
|
+
right: string;
|
|
12
|
+
searchPlaceholder: string;
|
|
13
|
+
leftBtnTips: string;
|
|
14
|
+
rightBtnTips: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
package/Transfer/lang/zh_CN.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
left: string;
|
|
3
|
-
right: string;
|
|
4
|
-
searchPlaceholder: string;
|
|
5
|
-
leftBtnTips: string;
|
|
6
|
-
rightBtnTips: string;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
left: string;
|
|
3
|
+
right: string;
|
|
4
|
+
searchPlaceholder: string;
|
|
5
|
+
leftBtnTips: string;
|
|
6
|
+
rightBtnTips: string;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|