@para-ui/core 2.2.39 → 2.2.40
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/Breadcrumbs/index.d.ts +39 -39
- 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/index.js +1 -1
- 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/index.js +1 -1
- 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/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/index.js +1 -1
- 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/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/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/index.js +1 -1
- 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 +739 -732
- 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/Select/index.d.ts +96 -96
- 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/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/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/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/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/index.js +1 -1
- 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/AutoBox/index.js +1 -1
- package/cdn/AutoTips/index.js +1 -1
- package/cdn/Breadcrumbs/index.js +1 -1
- package/cdn/Button/index.js +5 -5
- package/cdn/ButtonGroup/index.js +5 -5
- package/cdn/Cascader/index.js +3 -3
- package/cdn/Checkbox/index.js +5 -5
- package/cdn/CheckboxGroup/index.js +5 -5
- package/cdn/Collapse/index.js +2 -2
- package/cdn/ColorPicker/index.js +1 -1
- package/cdn/ComboSelect/index.js +3 -3
- package/cdn/DatePicker/index.js +5 -5
- package/cdn/Desktop/index.js +2 -2
- package/cdn/Drawer/index.js +5 -5
- package/cdn/Dropdown/index.js +3 -3
- package/cdn/DynamicMultiBox/index.js +6 -6
- package/cdn/Form/index.js +4 -4
- package/cdn/FormItem/index.js +5 -5
- package/cdn/FunctionModal/index.js +5 -5
- package/cdn/Help/index.js +1 -1
- package/cdn/InputLang/index.js +1 -1
- package/cdn/InputNumber/index.js +5 -5
- package/cdn/Label/index.js +1 -1
- package/cdn/Menu/index.js +2 -2
- package/cdn/Modal/index.js +1 -1
- package/cdn/MultiBox/index.js +5 -5
- package/cdn/Notification/index.js +2 -2
- package/cdn/OperateBtn/index.js +1 -1
- package/cdn/PageHeader/index.js +5 -5
- package/cdn/Pagination/index.js +2 -2
- package/cdn/ParauiProvider/index.js +2 -2
- package/cdn/PasswordRules/index.js +2 -2
- package/cdn/PopConfirm/index.js +5 -5
- package/cdn/Popover/index.js +1 -1
- package/cdn/PopoverNew/index.js +3 -3
- package/cdn/Progress/index.js +1 -1
- package/cdn/Radio/index.js +5 -5
- package/cdn/RadioGroup/index.js +6 -6
- 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 +5 -5
- package/cdn/SelectorPicker/index.js +5 -5
- package/cdn/SingleBox/index.js +5 -5
- package/cdn/Slider/index.js +3 -3
- package/cdn/Stepper/index.js +3 -3
- package/cdn/Switch/index.js +5 -5
- package/cdn/Table/index.js +7 -7
- package/cdn/Tabs/index.js +6 -6
- package/cdn/TextField/index.js +1 -1
- package/cdn/TimePicker/index.js +10 -10
- package/cdn/Timeline/index.js +2 -2
- package/cdn/ToggleButton/index.js +1 -1
- package/cdn/Tooltip/index.js +1 -1
- package/cdn/Transfer/index.js +5 -5
- package/cdn/Tree/index.js +2 -2
- package/cdn/Upload/index.js +2 -2
- package/index.d.ts +142 -142
- package/index.js +2 -2
- package/package.json +131 -131
package/HelperText/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/3/22 3:23 PM
|
|
4
|
-
* @description 表单报错提示
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface HelperTextProps {
|
|
9
|
-
/** 样式class */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** style */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 是否显示错误 */
|
|
14
|
-
error?: boolean;
|
|
15
|
-
/** 错误提示 */
|
|
16
|
-
helperText?: ReactNode;
|
|
17
|
-
}
|
|
18
|
-
declare const HelperText: FunctionComponent<HelperTextProps>;
|
|
19
|
-
export default HelperText;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/3/22 3:23 PM
|
|
4
|
+
* @description 表单报错提示
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface HelperTextProps {
|
|
9
|
+
/** 样式class */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** style */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 是否显示错误 */
|
|
14
|
+
error?: boolean;
|
|
15
|
+
/** 错误提示 */
|
|
16
|
+
helperText?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
declare const HelperText: FunctionComponent<HelperTextProps>;
|
|
19
|
+
export default HelperText;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useGlobalProps<T>(comProps: T, comName: string): T;
|
|
1
|
+
export default function useGlobalProps<T>(comProps: T, comName: string): T;
|
package/InputLang/index.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/30 16:00
|
|
4
|
-
* @description 国际化输入框
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import { LabelTooltipProps } from "../Label";
|
|
8
|
-
import './index.scss';
|
|
9
|
-
interface valueProps {
|
|
10
|
-
[name: string]: string;
|
|
11
|
-
}
|
|
12
|
-
export interface InputLangProps {
|
|
13
|
-
/** 样式class */
|
|
14
|
-
className?: string;
|
|
15
|
-
/** style */
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
/** 大小 */
|
|
18
|
-
size?: 'small' | 'medium' | 'large';
|
|
19
|
-
/** 标题 */
|
|
20
|
-
label?: ReactNode;
|
|
21
|
-
/** 帮组提示信息 */
|
|
22
|
-
labelTooltip?: LabelTooltipProps;
|
|
23
|
-
/** 提示语 */
|
|
24
|
-
placeholder?: string;
|
|
25
|
-
/** 提示语key */
|
|
26
|
-
placeholderKey?: string;
|
|
27
|
-
/** 提示语value */
|
|
28
|
-
placeholderValue?: string;
|
|
29
|
-
/** 是否禁用 */
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
/** 是否错误模式 */
|
|
32
|
-
error?: boolean;
|
|
33
|
-
/** 错误文本 */
|
|
34
|
-
helperText?: ReactNode;
|
|
35
|
-
/** 是否必填 */
|
|
36
|
-
required?: boolean;
|
|
37
|
-
/** 弹出框样式class */
|
|
38
|
-
popoverClassName?: string;
|
|
39
|
-
/** 默认值 不受控 */
|
|
40
|
-
defaultValue?: valueProps;
|
|
41
|
-
/** 值 */
|
|
42
|
-
value?: valueProps;
|
|
43
|
-
/** 改变值 */
|
|
44
|
-
onChange?: (val: valueProps) => void;
|
|
45
|
-
/** 搜索提示语 */
|
|
46
|
-
langList?: string[];
|
|
47
|
-
}
|
|
48
|
-
export declare const InputLang: FunctionComponent<InputLangProps>;
|
|
49
|
-
export default InputLang;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/30 16:00
|
|
4
|
+
* @description 国际化输入框
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { LabelTooltipProps } from "../Label";
|
|
8
|
+
import './index.scss';
|
|
9
|
+
interface valueProps {
|
|
10
|
+
[name: string]: string;
|
|
11
|
+
}
|
|
12
|
+
export interface InputLangProps {
|
|
13
|
+
/** 样式class */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** style */
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
/** 大小 */
|
|
18
|
+
size?: 'small' | 'medium' | 'large';
|
|
19
|
+
/** 标题 */
|
|
20
|
+
label?: ReactNode;
|
|
21
|
+
/** 帮组提示信息 */
|
|
22
|
+
labelTooltip?: LabelTooltipProps;
|
|
23
|
+
/** 提示语 */
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
/** 提示语key */
|
|
26
|
+
placeholderKey?: string;
|
|
27
|
+
/** 提示语value */
|
|
28
|
+
placeholderValue?: string;
|
|
29
|
+
/** 是否禁用 */
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/** 是否错误模式 */
|
|
32
|
+
error?: boolean;
|
|
33
|
+
/** 错误文本 */
|
|
34
|
+
helperText?: ReactNode;
|
|
35
|
+
/** 是否必填 */
|
|
36
|
+
required?: boolean;
|
|
37
|
+
/** 弹出框样式class */
|
|
38
|
+
popoverClassName?: string;
|
|
39
|
+
/** 默认值 不受控 */
|
|
40
|
+
defaultValue?: valueProps;
|
|
41
|
+
/** 值 */
|
|
42
|
+
value?: valueProps;
|
|
43
|
+
/** 改变值 */
|
|
44
|
+
onChange?: (val: valueProps) => void;
|
|
45
|
+
/** 搜索提示语 */
|
|
46
|
+
langList?: string[];
|
|
47
|
+
}
|
|
48
|
+
export declare const InputLang: FunctionComponent<InputLangProps>;
|
|
49
|
+
export default InputLang;
|
package/InputNumber/index.d.ts
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/11 13:53
|
|
4
|
-
* @description 数字输入框
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import { LabelTooltipProps } from "../Label";
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export interface InputNumberProps {
|
|
10
|
-
/** 样式class */
|
|
11
|
-
className?: string;
|
|
12
|
-
/** style */
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
/** 大小 */
|
|
15
|
-
size?: 'small' | 'medium' | 'large';
|
|
16
|
-
/** 间隔 */
|
|
17
|
-
step?: number;
|
|
18
|
-
/** 最大值 */
|
|
19
|
-
max?: number;
|
|
20
|
-
/** 最小值 */
|
|
21
|
-
min?: number;
|
|
22
|
-
/** 标题 */
|
|
23
|
-
label?: ReactNode;
|
|
24
|
-
/** 标题在外,还是在内 */
|
|
25
|
-
labelMode?: 'outside' | 'inside';
|
|
26
|
-
/** 标题提示 */
|
|
27
|
-
labelSign?: ReactNode;
|
|
28
|
-
/** 帮组提示信息 */
|
|
29
|
-
labelTooltip?: LabelTooltipProps;
|
|
30
|
-
/** 提示语 */
|
|
31
|
-
placeholder?: ReactNode;
|
|
32
|
-
/** 按钮模式 左右/上下/无 */
|
|
33
|
-
btnMode?: 'lr' | 'tb' | 'none';
|
|
34
|
-
/** 是否禁用 */
|
|
35
|
-
disabled?: boolean;
|
|
36
|
-
/** 禁用加 */
|
|
37
|
-
disabledAdd?: boolean;
|
|
38
|
-
/** 禁用减 */
|
|
39
|
-
disabledReduce?: boolean;
|
|
40
|
-
/** 是否必填 */
|
|
41
|
-
required?: boolean;
|
|
42
|
-
/** 是否显示错误 */
|
|
43
|
-
error?: boolean;
|
|
44
|
-
/** 错误提示 */
|
|
45
|
-
helperText?: ReactNode;
|
|
46
|
-
/** 是否启用键盘快捷行为 */
|
|
47
|
-
keyboard?: boolean;
|
|
48
|
-
/** 是否自动获取焦点 */
|
|
49
|
-
autoFocus?: boolean;
|
|
50
|
-
/** 只读 */
|
|
51
|
-
readOnly?: boolean;
|
|
52
|
-
/** 指定输入框展示值的格式 */
|
|
53
|
-
formatter?: (value: number | string, info: {
|
|
54
|
-
userTyping: boolean;
|
|
55
|
-
input: string;
|
|
56
|
-
}) => string;
|
|
57
|
-
/** 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用 */
|
|
58
|
-
parser?: (displayValue: string) => number;
|
|
59
|
-
/** 默认值 不受控 */
|
|
60
|
-
defaultValue?: number | null;
|
|
61
|
-
/** 默认值 受控 */
|
|
62
|
-
value?: number | null;
|
|
63
|
-
/** 改变事件 number / null */
|
|
64
|
-
onChange?: (value: any) => void;
|
|
65
|
-
/** 回车事件 */
|
|
66
|
-
onEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
67
|
-
/** 失去焦点 */
|
|
68
|
-
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
69
|
-
/** 得到焦点 */
|
|
70
|
-
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
71
|
-
[name: string]: any;
|
|
72
|
-
}
|
|
73
|
-
export declare const InputNumber: FunctionComponent<InputNumberProps>;
|
|
74
|
-
export default InputNumber;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/11 13:53
|
|
4
|
+
* @description 数字输入框
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { LabelTooltipProps } from "../Label";
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export interface InputNumberProps {
|
|
10
|
+
/** 样式class */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** style */
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
/** 大小 */
|
|
15
|
+
size?: 'small' | 'medium' | 'large';
|
|
16
|
+
/** 间隔 */
|
|
17
|
+
step?: number;
|
|
18
|
+
/** 最大值 */
|
|
19
|
+
max?: number;
|
|
20
|
+
/** 最小值 */
|
|
21
|
+
min?: number;
|
|
22
|
+
/** 标题 */
|
|
23
|
+
label?: ReactNode;
|
|
24
|
+
/** 标题在外,还是在内 */
|
|
25
|
+
labelMode?: 'outside' | 'inside';
|
|
26
|
+
/** 标题提示 */
|
|
27
|
+
labelSign?: ReactNode;
|
|
28
|
+
/** 帮组提示信息 */
|
|
29
|
+
labelTooltip?: LabelTooltipProps;
|
|
30
|
+
/** 提示语 */
|
|
31
|
+
placeholder?: ReactNode;
|
|
32
|
+
/** 按钮模式 左右/上下/无 */
|
|
33
|
+
btnMode?: 'lr' | 'tb' | 'none';
|
|
34
|
+
/** 是否禁用 */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** 禁用加 */
|
|
37
|
+
disabledAdd?: boolean;
|
|
38
|
+
/** 禁用减 */
|
|
39
|
+
disabledReduce?: boolean;
|
|
40
|
+
/** 是否必填 */
|
|
41
|
+
required?: boolean;
|
|
42
|
+
/** 是否显示错误 */
|
|
43
|
+
error?: boolean;
|
|
44
|
+
/** 错误提示 */
|
|
45
|
+
helperText?: ReactNode;
|
|
46
|
+
/** 是否启用键盘快捷行为 */
|
|
47
|
+
keyboard?: boolean;
|
|
48
|
+
/** 是否自动获取焦点 */
|
|
49
|
+
autoFocus?: boolean;
|
|
50
|
+
/** 只读 */
|
|
51
|
+
readOnly?: boolean;
|
|
52
|
+
/** 指定输入框展示值的格式 */
|
|
53
|
+
formatter?: (value: number | string, info: {
|
|
54
|
+
userTyping: boolean;
|
|
55
|
+
input: string;
|
|
56
|
+
}) => string;
|
|
57
|
+
/** 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用 */
|
|
58
|
+
parser?: (displayValue: string) => number;
|
|
59
|
+
/** 默认值 不受控 */
|
|
60
|
+
defaultValue?: number | null;
|
|
61
|
+
/** 默认值 受控 */
|
|
62
|
+
value?: number | null;
|
|
63
|
+
/** 改变事件 number / null */
|
|
64
|
+
onChange?: (value: any) => void;
|
|
65
|
+
/** 回车事件 */
|
|
66
|
+
onEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
67
|
+
/** 失去焦点 */
|
|
68
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
69
|
+
/** 得到焦点 */
|
|
70
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
71
|
+
[name: string]: any;
|
|
72
|
+
}
|
|
73
|
+
export declare const InputNumber: FunctionComponent<InputNumberProps>;
|
|
74
|
+
export default InputNumber;
|
package/Label/index.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2022/3/22 3:23 PM
|
|
4
|
-
* @description 表单label
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface LabelTooltipProps {
|
|
9
|
-
/** 样式class */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** 样式 */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 配置提示信息 */
|
|
14
|
-
tooltip?: ReactNode;
|
|
15
|
-
/** 提示类型 图标 / 线 */
|
|
16
|
-
tooltipType?: 'line' | 'icon';
|
|
17
|
-
/** 提示信息icon */
|
|
18
|
-
tooltipIcon?: ReactNode;
|
|
19
|
-
/** 帮组提示方向 */
|
|
20
|
-
placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
21
|
-
/** 提示箭头 */
|
|
22
|
-
arrow?: boolean;
|
|
23
|
-
[name: string]: any;
|
|
24
|
-
}
|
|
25
|
-
export interface LabelProps extends LabelTooltipProps {
|
|
26
|
-
/** 是否必填 */
|
|
27
|
-
required?: boolean;
|
|
28
|
-
/** 标题 */
|
|
29
|
-
label?: ReactNode;
|
|
30
|
-
/** 标题提示,可用来自定义 */
|
|
31
|
-
labelSign?: ReactNode;
|
|
32
|
-
[name: string]: any;
|
|
33
|
-
}
|
|
34
|
-
declare const Label: FunctionComponent<LabelProps>;
|
|
35
|
-
export default Label;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/3/22 3:23 PM
|
|
4
|
+
* @description 表单label
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface LabelTooltipProps {
|
|
9
|
+
/** 样式class */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** 样式 */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 配置提示信息 */
|
|
14
|
+
tooltip?: ReactNode;
|
|
15
|
+
/** 提示类型 图标 / 线 */
|
|
16
|
+
tooltipType?: 'line' | 'icon';
|
|
17
|
+
/** 提示信息icon */
|
|
18
|
+
tooltipIcon?: ReactNode;
|
|
19
|
+
/** 帮组提示方向 */
|
|
20
|
+
placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
21
|
+
/** 提示箭头 */
|
|
22
|
+
arrow?: boolean;
|
|
23
|
+
[name: string]: any;
|
|
24
|
+
}
|
|
25
|
+
export interface LabelProps extends LabelTooltipProps {
|
|
26
|
+
/** 是否必填 */
|
|
27
|
+
required?: boolean;
|
|
28
|
+
/** 标题 */
|
|
29
|
+
label?: ReactNode;
|
|
30
|
+
/** 标题提示,可用来自定义 */
|
|
31
|
+
labelSign?: ReactNode;
|
|
32
|
+
[name: string]: any;
|
|
33
|
+
}
|
|
34
|
+
declare const Label: FunctionComponent<LabelProps>;
|
|
35
|
+
export default Label;
|
package/Loading/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/12/7 13:27
|
|
4
|
-
* @description loading
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface LoadingProps {
|
|
9
|
-
/** 样式class */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** style */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 背景透明度 */
|
|
14
|
-
opacity?: number;
|
|
15
|
-
}
|
|
16
|
-
export declare const Loading: FunctionComponent<LoadingProps>;
|
|
17
|
-
export default Loading;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/12/7 13:27
|
|
4
|
+
* @description loading
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface LoadingProps {
|
|
9
|
+
/** 样式class */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** style */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 背景透明度 */
|
|
14
|
+
opacity?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const Loading: FunctionComponent<LoadingProps>;
|
|
17
|
+
export default Loading;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/10 15:26
|
|
4
|
-
* @description 尾部展开
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from 'react';
|
|
7
|
-
import { FooterExpansionProps } from './interface';
|
|
8
|
-
export declare const FooterExpansion: FunctionComponent<FooterExpansionProps>;
|
|
9
|
-
export default FooterExpansion;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/10 15:26
|
|
4
|
+
* @description 尾部展开
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
import { FooterExpansionProps } from './interface';
|
|
8
|
+
export declare const FooterExpansion: FunctionComponent<FooterExpansionProps>;
|
|
9
|
+
export default FooterExpansion;
|
package/Menu/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/10 16:58
|
|
4
|
-
* @description 竖向菜单list
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from 'react';
|
|
7
|
-
import { MenuProps } from './interface';
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export declare const Menu: FunctionComponent<MenuProps>;
|
|
10
|
-
export default Menu;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/10 16:58
|
|
4
|
+
* @description 竖向菜单list
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
import { MenuProps } from './interface';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export declare const Menu: FunctionComponent<MenuProps>;
|
|
10
|
+
export default Menu;
|
package/Menu/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),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;r=o("react.element"),t.Fragment=o("react.fragment")}var p=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,m={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,i){var n,o={},l=null,u=null;for(n in void 0!==i&&(l=""+i),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!m.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:r,type:e,key:l,ref:u,props:o,_owner:p.current}}t.jsx=l,t.jsxs=l},5893:function(e,t,i){"use strict";e.exports=i(5251)},7262:function(e,t,i){var n=i(3379),r=i(7283);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:("body","body"),singleton:!1};n(r,o);e.exports=r.locals||{}},6881:function(e,t,i){var n=i(3379),r=i(6949);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:("body","body"),singleton:!1};n(r,o);e.exports=r.locals||{}},3379:function(e,t,i){"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=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]}}(),p=[];function a(e){for(var t=-1,i=0;i<p.length;i++)if(p[i].identifier===e){t=i;break}return t}function m(e,t){for(var i={},n=[],r=0;r<e.length;r++){var o=e[r],m=t.base?o[0]+t.base:o[0],l=i[m]||0,u="".concat(m," ").concat(l);i[m]=l+1;var c=a(u),s={css:o[1],media:o[2],sourceMap:o[3]};-1!==c?(p[c].references++,p[c].updater(s)):p.push({identifier:u,updater:h(s,t),references:1}),n.push(u)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var r=i.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var p=o(e.insert||"head");if(!p)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");p.appendChild(t)}return t}var u,c=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function s(e,t,i,n){var r=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=c(t,r);else{var o=document.createTextNode(r),p=e.childNodes;p[t]&&e.removeChild(p[t]),p.length?e.insertBefore(o,p[t]):e.appendChild(o)}}function v(e,t,i){var n=i.css,r=i.media,o=i.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f=null,d=0;function h(e,t){var i,n,r;if(t.singleton){var o=d++;i=f||(f=l(t)),n=s.bind(null,i,o,!1),r=s.bind(null,i,o,!0)}else i=l(t),n=v.bind(null,i,t),r=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 r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var i=m(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 r=a(i[n]);p[r].references--}for(var o=m(e,t),l=0;l<i.length;l++){var u=a(i[l]);0===p[u].references&&(p[u].updater(),p.splice(u,1))}i=o}}}},6887:function(e,t,i){"use strict";var n=i(5893),r=i(8156),o=i(5002),p=i(2458),a=(i(7262),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,m=e.in,l=e.collapsedHeight,u=void 0===l?"0px":l,c=e.timeout,s=void 0===c?"auto":c,v=e.unmountOnExit,f=e.children,d=(0,r.useRef)(null),h=(0,r.useRef)(null),g=(0,r.useRef)(null),x=(0,r.useRef)(null),b="number"==typeof u?"".concat(u,"px"):u,y=(0,r.useState)(!1),w=y[0],k=y[1];(0,r.useEffect)((function(){return function(){clearTimeout(d.current)}}),[]),(0,r.useEffect)((function(){k(m)}),[m]);var j=function(e){return function(t){e&&e(t)}},M=j((function(e){e.style.height=b})),O=j((function(e){var t=g.current?g.current.clientHeight:0,n=(0,p.C)({style:i,timeout:s},{mode:"enter"}).duration;if("auto"===s){var r=(0,p.O)(t);e.style.transitionDuration="".concat(r,"ms"),x.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height="".concat(t,"px")})),N=j((function(e){e.style.height="auto"})),S=j((function(e){var t=g.current?g.current.clientHeight:0;e.style.height="".concat(t,"px")})),E=j((function(e){var t=g.current?g.current.clientHeight:0,n=(0,p.C)({style:i,timeout:s},{mode:"exit"}).duration;if("auto"===s){var r=(0,p.O)(t);e.style.transitionDuration="".concat(r,"ms"),x.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=b})),_=function(e){var i="paraui-collapse-box";return t&&(i+=" "+t),"entered"===e&&(i+=" paraui-collapse-box-entered"),"exited"!==e||w||"0px"!==b||(i+=" paraui-collapse-box-hidden"),i};return(0,n.jsx)(o.Transition,a({in:w,unmountOnExit:v,onEnter:M,onEntered:N,onEntering:O,onExit:S,onExiting:E,timeout:"auto"===s?void 0:s,addEndListener:function(e,t){d.current=setTimeout(t,x.current||0)}},{children:function(e,t){return(0,n.jsx)("div",a({className:_(e),style:a({minHeight:b},i),ref:h},t,{children:(0,n.jsx)("div",a({className:"paraui-collapse-box-wrapper",ref:g},{children:(0,n.jsx)("div",a({className:"paraui-collapse-box-wrapper-inner"},{children:f}))}))}))}}))}},2458:function(e,t,i){"use strict";function n(e,t){var i=e.timeout,n=e.style,r=void 0===n?{}:n;return{duration:r.transitionDuration||"number"==typeof i?i:i[t.mode]||0,delay:r.transitionDelay}}function r(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}i.d(t,{C:function(){return n},O:function(){return r}})},1197:function(e){"use strict";e.exports=r},2396:function(e){"use strict";e.exports=n},5602:function(e){"use strict";e.exports=a},1919:function(e){"use strict";e.exports=p},8543:function(e){"use strict";e.exports=o},8156:function(t){"use strict";t.exports=e},7111:function(e){"use strict";e.exports=t},5002:function(e){"use strict";e.exports=i}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var i=l[e]={id:e,exports:{}};return m[e](i,i.exports,u),i.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var i in t)u.o(t,i)&&!u.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nc=void 0;var c={};return function(){"use strict";u.r(c),u.d(c,{Menu:function(){return N},default:function(){return S}});var e=u(5893),t=u(8156),i=u.n(t),n=function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},r=function(t){var i,r=t.expansion,o=void 0===r||r,p=t.render,a=t.className;return(0,e.jsx)("div",n({className:(i="logo paraui-logo",a&&(i+=" "+a),o||(i+=" logo-shrink"),i)},{children:function(){if(p)return p}()}))},o=u(7111),p=u(6887),a=u(2396),m=u.n(a),l=u(1197),s=u(8543),v=function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},v.apply(this,arguments)},f=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},d=function(i){var n=i.label,r=(i.type,i.path),o=i.icon,a=i.children,u=i.className,c=i.level,s=void 0===c?1:c,f=i.selectMenu,h=void 0===f?"":f,g=i.idMenuLast,x=i.onClickMenu,b=i.shrinkOthers,y=void 0===b||b,w=(0,t.useState)(!1),k=w[0],j=w[1];(0,t.useEffect)((function(){var e=g[h];e&&-1!==e.indexOf(r)&&e.length>1?j(!0):y&&j(!1)}),[g,h,r]);var M=function(){if(a&&a.length>0)return x&&x(!1),j(!k);x&&x(i)},O=function(){if(o){var t=l[o];return t?(0,e.jsx)("span",v({className:"menu-item-icon"},{children:t()})):(0,e.jsx)("span",v({className:"menu-item-icon"},{children:o}))}},N=(0,t.useMemo)((function(){return(0,e.jsxs)("div",v({onClick:M,className:"vertical-menu-list-item-content",style:(t={paddingRight:"12px"},t.paddingLeft=s>=0?32*(s-1)+16+"px":"16px",t)},{children:[O(),(0,e.jsx)("span",v({className:"menu-item-label"},{children:n})),(0,e.jsx)("span",v({className:"menu-item-arrow"},{children:a&&a.length>0?(0,e.jsx)(m(),{}):(0,e.jsx)(m(),{className:"opacity-pos-svg"})}))]}));var t}),[a,x,k,s,o,n]),S=(0,t.useMemo)((function(){return(0,e.jsx)(p.default,v({in:k,className:"li-collapse",timeout:"auto",unmountOnExit:!0},{children:a&&a.length>0&&a.map((function(t,i){return(0,e.jsx)(d,v({},t,{level:s+1,idMenuLast:g,selectMenu:h,onClickMenu:x,shrinkOthers:y}),i)}))}))}),[k,a,s,g,h,x,y]);return(0,e.jsxs)("div",v({className:function(){var e="vertical-menu-list-item";k&&(e+=" vertical-menu-list-item-open"),u&&(e+=" "+u);var t=g[h];if(t){var i=t.indexOf(r);-1!==i&&(e+=" vertical-menu-list-item-select",i===t.length-1&&(e+=" vertical-menu-list-item-select-last"),k||(e+=" vertical-menu-list-item-select-retract"))}return e}()},{children:[N,S]}))},h=function(i){var n=i.open,r=void 0!==n&&n,p=i.anchorEl,a=i.idMenuLast,u=i.selectMenu,c=void 0===u?"":u,s=i.onClickMenu,f=i.list,d=i.onMouseEnter,g=i.onMouseLeave,x=i.onMouseEnterBus,b=i.onMouseLeaveBus,y=i.level,w=void 0===y?1:y,k=i.color,j=i.className,M=(0,t.useState)(!1),O=M[0],N=M[1],S=(0,t.useState)(""),E=S[0],_=S[1],C=(0,t.useState)([]),T=C[0],L=C[1],P=(0,t.useState)({}),R=P[0],F=P[1],q=(0,t.useState)({})[0],I=(0,t.useRef)(null);(0,t.useEffect)((function(){return function(){clearTimeout(q.leaveBox),clearTimeout(q.closeTimer)}}),[]),(0,t.useEffect)((function(){z()}),[r,p]);var z=function(){if(p&&r&&I.current){var e=document.querySelector("[data-menu-id=".concat(p,"]")).getBoundingClientRect(),t=e.top;1!==w&&(t-=8),B()&&(t+=4);var i=document.body.clientHeight,n=I.current.clientHeight;n+t>i&&(t=t-(n+t-i)-20),t<0&&(t=0),F({position:"absolute",left:"0",top:"0",transform:"translate3d(".concat(e.right,"px, ").concat(t,"px, 0px)")})}},B=function(){var e=f||[];return!(1!==w||1!==e.length||!e[0]._paraui_menu_first||e[0].children&&0!==e[0].children.length)},H=function(e){var t="menu-item-popper-content-item",i=a&&a[c];return i&&-1!==i.indexOf(e.path)&&(t+=" menu-item-popper-content-item-select"),t},D=function(t){if(t){var i=l[t];return i?(0,e.jsx)("span",v({className:"menu-item-icon"},{children:i()})):(0,e.jsx)("span",v({className:"menu-item-icon"},{children:t}))}},U=function(e){return function(t){e.children&&e.children.length>0||s&&s(e)}},A=function(){B()||(1==w?d&&d():x&&x())},Y=function(){B()||(clearTimeout(q.leaveBox),q.leaveBox=setTimeout((function(){1===w?g&&g():b&&b()}),50))},J=function(e){return function(t){W(t.target),N(!1),clearTimeout(q.closeTimer),q.closeTimer=setTimeout((function(){(e.children||[]).length>0?(N(!0),_(t.target.getAttribute("data-menu-id")),L(e.children||[])):(N(!1),_(""),L([]))}))}},W=function(e){if(I){var t=I.current.querySelector(".menu-item-popper-content-item-hover");t&&t.classList.remove("menu-item-popper-content-item-hover")}e&&e.classList.add("menu-item-popper-content-item-hover")},K=(0,t.useMemo)((function(){return(0,e.jsx)("div",v({className:"menu-item-popper-content",onMouseEnter:A,onMouseLeave:Y,ref:I},{children:(f||[]).map((function(t,i){return(0,e.jsx)("div",v({className:H(t),onMouseEnter:J(t),onMouseLeave:function(e){}},{children:(0,e.jsxs)("div",v({className:"menu-item-popper-content-item-content","data-menu-id":t._paraui_menu_id,onClick:U(t)},{children:[D(t.icon),(0,e.jsx)("span",v({className:"menu-item-label"},{children:t.label})),(0,e.jsx)("span",v({className:"menu-item-arrow"},{children:(n=t.children,n&&n.length>0?(0,e.jsx)(m(),{}):(0,e.jsx)(m(),{className:"opacity-pos-svg"}))}))]}))}),i);var n}))}))}),[f,s,a,c,s,d,g,w]),Q=function(){return(0,e.jsx)("div",v({className:(t="vertical-menu-item-popper paraui-vertical-menu-item-popper",k&&(t+=" paraui-vertical-menu-item-popper-"+k),t+="deep"===k?" paraui-scrollbar-small-deep":" paraui-scrollbar-small",B()&&(t+=" paraui-vertical-menu-item-popper-tooltip"),j&&(t+=" "+j),t),style:R},{children:K}));var t},$=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:(0,o.createPortal)((0,e.jsx)(Q,{}),document.getElementsByTagName("body")[0])})}),[R,f,s,a,c,s,d,g,w,j,k]);return(0,e.jsxs)(e.Fragment,{children:[$,O&&(0,e.jsx)(h,{open:O,anchorEl:E,list:T,idMenuLast:a,selectMenu:c,onClickMenu:s,onMouseEnter:d,onMouseLeave:g,onMouseEnterBus:function(){clearTimeout(q.leaveBox)},onMouseLeaveBus:function(){N(!1),_(""),L([]),g&&g()},color:k,level:w+1})]})},g=function(e){if(!e)return 0;try{var t=e.match(/translate3d\((.*)px, (.*)px, (.*)px\)/);return Number(t&&t[2])}catch(e){}return 0},x=function(n){var r=n.list,o=void 0===r?[]:r,p=n.expansion,a=void 0===p||p,u=n.selectMenu,c=void 0===u?"":u,x=n.onClickMenu,b=n.className,y=n.shrinkOthers,w=void 0===y||y,k=n.color,j=(0,t.useState)([]),M=j[0],O=j[1],N=(0,t.useState)(!1),S=N[0],E=N[1],_=(0,t.useState)(null),C=_[0],T=_[1],L=(0,t.useState)(""),P=L[0],R=L[1],F=(0,t.useState)([]),q=F[0],I=F[1],z=(0,t.useState)(""),B=z[0],H=z[1],D=(0,t.useState)({}),U=D[0],A=D[1],Y=(0,t.useState)({prev:!1,next:!1}),J=Y[0],W=Y[1],K=(0,t.useState)({})[0],Q=i().useRef();(0,t.useEffect)((function(){return function(){clearTimeout(K.arrowTimer),clearTimeout(K.leaveTimer),clearTimeout(K.enterTimer)}}),[]),(0,t.useEffect)((function(){for(var e=[],t=0,i=o.length;t<i;t++){var n=o[t];e.push(v({},n))}ee(e)}),[o]),(0,t.useEffect)((function(){G()}),[M]),(0,t.useEffect)((function(){c!==B&&H(c),G()}),[c]);var $,G=function(){clearTimeout(K.arrowTimer),K.arrowTimer=setTimeout((function(){var e=Z(),t=e.min,i=e.max,n=g(Q.current.style.transform);W({prev:n!==t,next:n>i})}),300)},V=function(e){return function(){var t=g(Q.current.style.transform);switch(e){case"next":t-=100;break;case"prev":t+=100}X(t)}},X=function(e){var t=Z(),i=t.min,n=t.max;e>i&&(e=i),e<n&&(e=n),W({prev:e!==i,next:e>n}),Q.current.style.transform="translate3d(0, ".concat(e,"px, 0)")},Z=function(){var e=Q.current.parentNode.getBoundingClientRect().height,t=-(Q.current.getBoundingClientRect().height-e);return e>Q.current.getBoundingClientRect().height&&(t=0),{min:0,max:t}},ee=function(e){var t={},i={},n={},r=function(e,o){for(var p=0,a=e.length;p<a;p++){var m=e[p],l=m.path;if(m._paraui_menu_id="_paraui_menu_id_"+(0,s.UUID)(),t[l]=m,o){var u=(0,s.DeepClone)(i[o.path]||[]);u.push(l),i[l]=f([],u,!0)}else i[l]=[l],m._paraui_menu_first=!0;m.children&&m.children.length>0?r(m.children,m):n[l]=i[l]}};r(e),A(n),O(e)},te=function(e,t){return function(i){E(!1),clearTimeout(K.enterTimer),K.enterTimer=setTimeout((function(){clearTimeout(K.leaveTimer);var n=[e];e.children&&e.children.length>0&&(n=e.children),T(t),R(i.target.getAttribute("data-menu-id")),I(n),E(!0)}))}},ie=function(){clearTimeout(K.leaveTimer),K.leaveTimer=setTimeout((function(){oe()}),50)},ne=function(){clearTimeout(K.leaveTimer)},re=function(){ie()},oe=function(){E(!1),R(""),I([]),T(null)},pe=function(e){var t=e.icon,i=e.label;if(t){var n=l[t];return n?n():t}return"string"==typeof i?i[0]:i},ae=function(e){return function(){if(!e.children||0===e.children.length){var t=v({},e);delete t._paraui_menu_id,x&&x(t)}}},me=function(e){if(!1===e)return G();oe();var t=v({},e);delete t._paraui_menu_id,x&&x(t)},le=function(e,t){var i="vertical-menu-list-item-shrink",n=U[B];return n&&-1!==n.indexOf(e.path)&&(i+=" vertical-menu-list-item-shrink-select"),C===t&&(i+=" vertical-menu-list-item-shrink-hover"),i},ue=(0,t.useMemo)((function(){if(a)return M.map((function(e,i){return(0,t.createElement)(d,v({},e,{key:i,level:1,idMenuLast:U,selectMenu:B,onClickMenu:me,shrinkOthers:w}))}))}),[a,M,U,B,x,w]),ce=(0,t.useMemo)((function(){return a?null:M.map((function(t,i){return(0,e.jsx)("div",v({className:le(t,i),onMouseEnter:te(t,i),onMouseLeave:function(e){ie()},"data-menu-id":t._paraui_menu_id,onClick:ae(t)},{children:(0,e.jsx)("span",{children:pe(t)})}),i)}))}),[a,M,U,B,C]),se=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:J.prev&&(0,e.jsx)("span",v({className:"scroll-top"},{children:(0,e.jsx)(m(),{onClick:V("prev")})}))})}),[J]),ve=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:J.next&&(0,e.jsx)("span",v({className:"scroll-bottom"},{children:(0,e.jsx)(m(),{onClick:V("next")})}))})}),[J]),fe=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:S&&(0,e.jsx)(h,{open:S,anchorEl:P,list:q,idMenuLast:U,selectMenu:B,onClickMenu:me,onMouseEnter:ne,onMouseLeave:re,color:k,level:1})})}),[S,P,q,U,B,x,K,k]);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",v({className:($="paraui-vertical-menu-list vertical-menu-list",b&&($+=" "+b),$),onWheel:function(e){return function(e){var t=e.deltaY,i=g(Q.current.style.transform);X(i-=t)}(e)}},{children:[se,(0,e.jsx)("div",v({className:"vertical-menu-list-box"},{children:(0,e.jsxs)("div",v({className:"vertical-menu-list-box-srcoll",ref:Q},{children:[ue,ce]}))})),ve]})),fe]})},b=u(1919),y=u.n(b),w=u(5602),k=u.n(w),j=function(){return j=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},j.apply(this,arguments)},M=function(t){var i,n=t.expansion,r=void 0===n||n,o=t.expandIcon,p=t.shrinkIcon,a=t.customizeContent,m=t.clickExpansion,l=t.version,u=t.render,c=t.className,s=function(){m&&m(!r)};return(0,e.jsx)("div",j({className:(i="footer-expansion paraui-footer-expansion",c&&(i+=" "+c),r||(i+=" footer-expansion-shrink"),i)},{children:function(){if(u)return u;if(a)return a;return(0,e.jsxs)(e.Fragment,{children:[r?o||(0,e.jsx)(y(),{onClick:s}):p||(0,e.jsx)(k(),{onClick:s}),r&&l&&(0,e.jsx)("span",j({className:"version"},{children:l}))]})}()}))},O=(u(6881),function(){return O=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},O.apply(this,arguments)}),N=function(i){var n=i.color,o=void 0===n?"deep":n,p=i.logoProps,a=i.menuListProps,m=i.expansion,l=void 0===m||m,u=i.onClickExpansion,c=i.selectMenu,s=i.onClickMenu,v=i.className,f=i.style,d=i.shrinkOthers,h=void 0===d||d,g=i.footerExpansionProps,b=i.showExpansion,y=void 0===b||b,w=(0,t.useState)(!0),k=w[0],j=w[1];(0,t.useEffect)((function(){l!==k&&j(l)}),[l]);var N,S=function(){u&&u(!k)},E=(0,t.useMemo)((function(){return i.logoProps&&(0,e.jsx)(r,O({},p,{expansion:k}))}),[p,k]),_=(0,t.useMemo)((function(){return i.menuListProps&&(0,e.jsx)(x,O({},a,{color:o,expansion:k,selectMenu:c,onClickMenu:s,shrinkOthers:h}))}),[a,k,c,s,o]),C=(0,t.useMemo)((function(){return y?(0,e.jsx)(M,O({clickExpansion:S},g,{expansion:k})):null}),[k,u,g,u,y]);return(0,e.jsxs)("div",O({className:(N="vertical-menu paraui-vertical-menu",v&&(N+=" "+v),o&&(N+=" paraui-vertical-menu-"+o),l||(N+=" vertical-menu-shrink"),N),style:f},{children:[E,_,C]}))},S=N}(),c}()}));
|
|
14
|
+
*/i(7418);var n=i(8156),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;r=o("react.element"),t.Fragment=o("react.fragment")}var p=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,m={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,i){var n,o={},l=null,u=null;for(n in void 0!==i&&(l=""+i),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!m.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:r,type:e,key:l,ref:u,props:o,_owner:p.current}}t.jsx=l,t.jsxs=l},5893:function(e,t,i){"use strict";e.exports=i(5251)},7262:function(e,t,i){var n=i(3379),r=i(7283);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:("body","body"),singleton:!1};n(r,o);e.exports=r.locals||{}},6881:function(e,t,i){var n=i(3379),r=i(6949);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var o={insert:("body","body"),singleton:!1};n(r,o);e.exports=r.locals||{}},3379:function(e,t,i){"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=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]}}(),p=[];function a(e){for(var t=-1,i=0;i<p.length;i++)if(p[i].identifier===e){t=i;break}return t}function m(e,t){for(var i={},n=[],r=0;r<e.length;r++){var o=e[r],m=t.base?o[0]+t.base:o[0],l=i[m]||0,u="".concat(m," ").concat(l);i[m]=l+1;var c=a(u),s={css:o[1],media:o[2],sourceMap:o[3]};-1!==c?(p[c].references++,p[c].updater(s)):p.push({identifier:u,updater:h(s,t),references:1}),n.push(u)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var r=i.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var p=o(e.insert||"head");if(!p)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");p.appendChild(t)}return t}var u,c=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function s(e,t,i,n){var r=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=c(t,r);else{var o=document.createTextNode(r),p=e.childNodes;p[t]&&e.removeChild(p[t]),p.length?e.insertBefore(o,p[t]):e.appendChild(o)}}function v(e,t,i){var n=i.css,r=i.media,o=i.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f=null,d=0;function h(e,t){var i,n,r;if(t.singleton){var o=d++;i=f||(f=l(t)),n=s.bind(null,i,o,!1),r=s.bind(null,i,o,!0)}else i=l(t),n=v.bind(null,i,t),r=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 r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var i=m(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 r=a(i[n]);p[r].references--}for(var o=m(e,t),l=0;l<i.length;l++){var u=a(i[l]);0===p[u].references&&(p[u].updater(),p.splice(u,1))}i=o}}}},6887:function(e,t,i){"use strict";var n=i(5893),r=i(8156),o=i(5002),p=i(2458),a=(i(7262),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,m=e.in,l=e.collapsedHeight,u=void 0===l?"0px":l,c=e.timeout,s=void 0===c?"auto":c,v=e.unmountOnExit,f=e.children,d=(0,r.useRef)(null),h=(0,r.useRef)(null),g=(0,r.useRef)(null),x=(0,r.useRef)(null),b="number"==typeof u?"".concat(u,"px"):u,y=(0,r.useState)(!1),w=y[0],k=y[1];(0,r.useEffect)((function(){return function(){clearTimeout(d.current)}}),[]),(0,r.useEffect)((function(){k(m)}),[m]);var j=function(e){return function(t){e&&e(t)}},M=j((function(e){e.style.height=b})),O=j((function(e){var t=g.current?g.current.clientHeight:0,n=(0,p.C)({style:i,timeout:s},{mode:"enter"}).duration;if("auto"===s){var r=(0,p.O)(t);e.style.transitionDuration="".concat(r,"ms"),x.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height="".concat(t,"px")})),N=j((function(e){e.style.height="auto"})),S=j((function(e){var t=g.current?g.current.clientHeight:0;e.style.height="".concat(t,"px")})),T=j((function(e){var t=g.current?g.current.clientHeight:0,n=(0,p.C)({style:i,timeout:s},{mode:"exit"}).duration;if("auto"===s){var r=(0,p.O)(t);e.style.transitionDuration="".concat(r,"ms"),x.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=b})),E=function(e){var i="paraui-collapse-box";return t&&(i+=" "+t),"entered"===e&&(i+=" paraui-collapse-box-entered"),"exited"!==e||w||"0px"!==b||(i+=" paraui-collapse-box-hidden"),i};return(0,n.jsx)(o.Transition,a({in:w,unmountOnExit:v,onEnter:M,onEntered:N,onEntering:O,onExit:S,onExiting:T,timeout:"auto"===s?void 0:s,addEndListener:function(e,t){d.current=setTimeout(t,x.current||0)}},{children:function(e,t){return(0,n.jsx)("div",a({className:E(e),style:a({minHeight:b},i),ref:h},t,{children:(0,n.jsx)("div",a({className:"paraui-collapse-box-wrapper",ref:g},{children:(0,n.jsx)("div",a({className:"paraui-collapse-box-wrapper-inner"},{children:f}))}))}))}}))}},2458:function(e,t,i){"use strict";function n(e,t){var i=e.timeout,n=e.style,r=void 0===n?{}:n;return{duration:r.transitionDuration||"number"==typeof i?i:i[t.mode]||0,delay:r.transitionDelay}}function r(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}i.d(t,{C:function(){return n},O:function(){return r}})},1197:function(e){"use strict";e.exports=r},2396:function(e){"use strict";e.exports=n},5602:function(e){"use strict";e.exports=a},1919:function(e){"use strict";e.exports=p},8543:function(e){"use strict";e.exports=o},8156:function(t){"use strict";t.exports=e},7111:function(e){"use strict";e.exports=t},5002:function(e){"use strict";e.exports=i}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var i=l[e]={id:e,exports:{}};return m[e](i,i.exports,u),i.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var i in t)u.o(t,i)&&!u.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.nc=void 0;var c={};return function(){"use strict";u.r(c),u.d(c,{Menu:function(){return N},default:function(){return S}});var e=u(5893),t=u(8156),i=u.n(t),n=function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},r=function(t){var i,r=t.expansion,o=void 0===r||r,p=t.render,a=t.className;return(0,e.jsx)("div",n({className:(i="logo paraui-logo",a&&(i+=" "+a),o||(i+=" logo-shrink"),i)},{children:function(){if(p)return p}()}))},o=u(7111),p=u(6887),a=u(2396),m=u.n(a),l=u(1197),s=u(8543),v=function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},v.apply(this,arguments)},f=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},d=function(i){var n=i.label,r=(i.type,i.path),o=i.icon,a=i.children,u=i.className,c=i.level,s=void 0===c?1:c,f=i.selectMenu,h=void 0===f?"":f,g=i.idMenuLast,x=i.onClickMenu,b=i.shrinkOthers,y=void 0===b||b,w=(0,t.useState)(!1),k=w[0],j=w[1];(0,t.useEffect)((function(){var e=g[h];e&&-1!==e.indexOf(r)&&e.length>1?j(!0):y&&j(!1)}),[g,h,r]);var M=function(){if(a&&a.length>0)return x&&x(!1),j(!k);x&&x(i)},O=function(){if(o){var t=l[o];return t?(0,e.jsx)("span",v({className:"menu-item-icon"},{children:t()})):(0,e.jsx)("span",v({className:"menu-item-icon"},{children:o}))}},N=(0,t.useMemo)((function(){return(0,e.jsxs)("div",v({onClick:M,className:"vertical-menu-list-item-content",style:(t={paddingRight:"12px"},t.paddingLeft=s>=0?32*(s-1)+16+"px":"16px",t)},{children:[O(),(0,e.jsx)("span",v({className:"menu-item-label"},{children:n})),(0,e.jsx)("span",v({className:"menu-item-arrow"},{children:a&&a.length>0?(0,e.jsx)(m(),{}):(0,e.jsx)(m(),{className:"opacity-pos-svg"})}))]}));var t}),[a,x,k,s,o,n]),S=(0,t.useMemo)((function(){return(0,e.jsx)(p.default,v({in:k,className:"li-collapse",timeout:"auto",unmountOnExit:!0},{children:a&&a.length>0&&a.map((function(t,i){return(0,e.jsx)(d,v({},t,{level:s+1,idMenuLast:g,selectMenu:h,onClickMenu:x,shrinkOthers:y}),i)}))}))}),[k,a,s,g,h,x,y]);return(0,e.jsxs)("div",v({className:function(){var e="vertical-menu-list-item";k&&(e+=" vertical-menu-list-item-open"),u&&(e+=" "+u);var t=g[h];if(t){var i=t.indexOf(r);-1!==i&&(e+=" vertical-menu-list-item-select",i===t.length-1&&(e+=" vertical-menu-list-item-select-last"),k||(e+=" vertical-menu-list-item-select-retract"))}return e}()},{children:[N,S]}))},h=function(i){var n=i.open,r=void 0!==n&&n,p=i.anchorEl,a=i.idMenuLast,u=i.selectMenu,c=void 0===u?"":u,s=i.onClickMenu,f=i.list,d=i.onMouseEnter,g=i.onMouseLeave,x=i.onMouseEnterBus,b=i.onMouseLeaveBus,y=i.level,w=void 0===y?1:y,k=i.color,j=i.className,M=(0,t.useState)(!1),O=M[0],N=M[1],S=(0,t.useState)(""),T=S[0],E=S[1],_=(0,t.useState)([]),C=_[0],L=_[1],P=(0,t.useState)({}),R=P[0],F=P[1],q=(0,t.useState)({})[0],I=(0,t.useRef)(null);(0,t.useEffect)((function(){return function(){clearTimeout(q.leaveBox),clearTimeout(q.closeTimer),clearTimeout(q.styleTimer)}}),[]),(0,t.useEffect)((function(){z()}),[r,p]);var z=function(){clearTimeout(q.styleTimer),q.styleTimer=setTimeout((function(){if(p&&r&&I.current){var e=document.querySelector("[data-menu-id=".concat(p,"]")).getBoundingClientRect(),t=e.top;1!==w&&(t-=8),B()&&(t+=4);var i=document.body.clientHeight,n=I.current.clientHeight;n+t>i&&(t=t-(n+t-i)-20),t<0&&(t=0),F({position:"absolute",left:"0",top:"0",transform:"translate3d(".concat(e.right,"px, ").concat(t,"px, 0px)")})}}))},B=function(){var e=f||[];return!(1!==w||1!==e.length||!e[0]._paraui_menu_first||e[0].children&&0!==e[0].children.length)},H=function(e){var t="menu-item-popper-content-item",i=a&&a[c];return i&&-1!==i.indexOf(e.path)&&(t+=" menu-item-popper-content-item-select"),t},D=function(t){if(t){var i=l[t];return i?(0,e.jsx)("span",v({className:"menu-item-icon"},{children:i()})):(0,e.jsx)("span",v({className:"menu-item-icon"},{children:t}))}},U=function(e){return function(t){e.children&&e.children.length>0||s&&s(e)}},A=function(){B()||(1==w?d&&d():x&&x())},Y=function(){B()||(clearTimeout(q.leaveBox),q.leaveBox=setTimeout((function(){1===w?g&&g():b&&b()}),50))},J=function(e){return function(t){W(t.target),N(!1),clearTimeout(q.closeTimer),q.closeTimer=setTimeout((function(){(e.children||[]).length>0?(N(!0),E(t.target.getAttribute("data-menu-id")),L(e.children||[])):(N(!1),E(""),L([]))}))}},W=function(e){if(I){var t=I.current.querySelector(".menu-item-popper-content-item-hover");t&&t.classList.remove("menu-item-popper-content-item-hover")}e&&e.classList.add("menu-item-popper-content-item-hover")},K=(0,t.useMemo)((function(){return(0,e.jsx)("div",v({className:"menu-item-popper-content",onMouseEnter:A,onMouseLeave:Y,ref:I},{children:(f||[]).map((function(t,i){return(0,e.jsx)("div",v({className:H(t),onMouseEnter:J(t),onMouseLeave:function(e){}},{children:(0,e.jsxs)("div",v({className:"menu-item-popper-content-item-content","data-menu-id":t._paraui_menu_id,onClick:U(t)},{children:[D(t.icon),(0,e.jsx)("span",v({className:"menu-item-label"},{children:t.label})),(0,e.jsx)("span",v({className:"menu-item-arrow"},{children:(n=t.children,n&&n.length>0?(0,e.jsx)(m(),{}):(0,e.jsx)(m(),{className:"opacity-pos-svg"}))}))]}))}),i);var n}))}))}),[f,s,a,c,s,d,g,w]),Q=function(){return(0,e.jsx)("div",v({className:(t="vertical-menu-item-popper paraui-vertical-menu-item-popper",k&&(t+=" paraui-vertical-menu-item-popper-"+k),t+="deep"===k?" paraui-scrollbar-small-deep":" paraui-scrollbar-small",B()&&(t+=" paraui-vertical-menu-item-popper-tooltip"),j&&(t+=" "+j),t),style:R},{children:K}));var t},$=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:(0,o.createPortal)((0,e.jsx)(Q,{}),document.getElementsByTagName("body")[0])})}),[R,f,s,a,c,s,d,g,w,j,k]);return(0,e.jsxs)(e.Fragment,{children:[$,O&&(0,e.jsx)(h,{open:O,anchorEl:T,list:C,idMenuLast:a,selectMenu:c,onClickMenu:s,onMouseEnter:d,onMouseLeave:g,onMouseEnterBus:function(){clearTimeout(q.leaveBox)},onMouseLeaveBus:function(){N(!1),E(""),L([]),g&&g()},color:k,level:w+1})]})},g=function(e){if(!e)return 0;try{var t=e.match(/translate3d\((.*)px, (.*)px, (.*)px\)/);return Number(t&&t[2])}catch(e){}return 0},x=function(n){var r=n.list,o=void 0===r?[]:r,p=n.expansion,a=void 0===p||p,u=n.selectMenu,c=void 0===u?"":u,x=n.onClickMenu,b=n.className,y=n.shrinkOthers,w=void 0===y||y,k=n.color,j=(0,t.useState)([]),M=j[0],O=j[1],N=(0,t.useState)(!1),S=N[0],T=N[1],E=(0,t.useState)(null),_=E[0],C=E[1],L=(0,t.useState)(""),P=L[0],R=L[1],F=(0,t.useState)([]),q=F[0],I=F[1],z=(0,t.useState)(""),B=z[0],H=z[1],D=(0,t.useState)({}),U=D[0],A=D[1],Y=(0,t.useState)({prev:!1,next:!1}),J=Y[0],W=Y[1],K=(0,t.useState)({})[0],Q=i().useRef();(0,t.useEffect)((function(){return function(){clearTimeout(K.arrowTimer),clearTimeout(K.leaveTimer),clearTimeout(K.enterTimer)}}),[]),(0,t.useEffect)((function(){for(var e=[],t=0,i=o.length;t<i;t++){var n=o[t];e.push(v({},n))}ee(e)}),[o]),(0,t.useEffect)((function(){G()}),[M]),(0,t.useEffect)((function(){c!==B&&H(c),G()}),[c]);var $,G=function(){clearTimeout(K.arrowTimer),K.arrowTimer=setTimeout((function(){var e=Z(),t=e.min,i=e.max,n=g(Q.current.style.transform);W({prev:n!==t,next:n>i})}),300)},V=function(e){return function(){var t=g(Q.current.style.transform);switch(e){case"next":t-=100;break;case"prev":t+=100}X(t)}},X=function(e){var t=Z(),i=t.min,n=t.max;e>i&&(e=i),e<n&&(e=n),W({prev:e!==i,next:e>n}),Q.current.style.transform="translate3d(0, ".concat(e,"px, 0)")},Z=function(){var e=Q.current.parentNode.getBoundingClientRect().height,t=-(Q.current.getBoundingClientRect().height-e);return e>Q.current.getBoundingClientRect().height&&(t=0),{min:0,max:t}},ee=function(e){var t={},i={},n={},r=function(e,o){for(var p=0,a=e.length;p<a;p++){var m=e[p],l=m.path;if(m._paraui_menu_id="_paraui_menu_id_"+(0,s.UUID)(),t[l]=m,o){var u=(0,s.DeepClone)(i[o.path]||[]);u.push(l),i[l]=f([],u,!0)}else i[l]=[l],m._paraui_menu_first=!0;m.children&&m.children.length>0?r(m.children,m):n[l]=i[l]}};r(e),A(n),O(e)},te=function(e,t){return function(i){T(!1),clearTimeout(K.enterTimer),K.enterTimer=setTimeout((function(){clearTimeout(K.leaveTimer);var n=[e];e.children&&e.children.length>0&&(n=e.children),C(t),R(i.target.getAttribute("data-menu-id")),I(n),T(!0)}))}},ie=function(){clearTimeout(K.leaveTimer),K.leaveTimer=setTimeout((function(){oe()}),50)},ne=function(){clearTimeout(K.leaveTimer)},re=function(){ie()},oe=function(){T(!1),R(""),I([]),C(null)},pe=function(e){var t=e.icon,i=e.label;if(t){var n=l[t];return n?n():t}return"string"==typeof i?i[0]:i},ae=function(e){return function(){if(!e.children||0===e.children.length){var t=v({},e);delete t._paraui_menu_id,x&&x(t)}}},me=function(e){if(!1===e)return G();oe();var t=v({},e);delete t._paraui_menu_id,x&&x(t)},le=function(e,t){var i="vertical-menu-list-item-shrink",n=U[B];return n&&-1!==n.indexOf(e.path)&&(i+=" vertical-menu-list-item-shrink-select"),_===t&&(i+=" vertical-menu-list-item-shrink-hover"),i},ue=(0,t.useMemo)((function(){if(a)return M.map((function(e,i){return(0,t.createElement)(d,v({},e,{key:i,level:1,idMenuLast:U,selectMenu:B,onClickMenu:me,shrinkOthers:w}))}))}),[a,M,U,B,x,w]),ce=(0,t.useMemo)((function(){return a?null:M.map((function(t,i){return(0,e.jsx)("div",v({className:le(t,i),onMouseEnter:te(t,i),onMouseLeave:function(e){ie()},"data-menu-id":t._paraui_menu_id,onClick:ae(t)},{children:(0,e.jsx)("span",{children:pe(t)})}),i)}))}),[a,M,U,B,_]),se=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:J.prev&&(0,e.jsx)("span",v({className:"scroll-top"},{children:(0,e.jsx)(m(),{onClick:V("prev")})}))})}),[J]),ve=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:J.next&&(0,e.jsx)("span",v({className:"scroll-bottom"},{children:(0,e.jsx)(m(),{onClick:V("next")})}))})}),[J]),fe=(0,t.useMemo)((function(){return(0,e.jsx)(e.Fragment,{children:S&&(0,e.jsx)(h,{open:S,anchorEl:P,list:q,idMenuLast:U,selectMenu:B,onClickMenu:me,onMouseEnter:ne,onMouseLeave:re,color:k,level:1})})}),[S,P,q,U,B,x,K,k]);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",v({className:($="paraui-vertical-menu-list vertical-menu-list",b&&($+=" "+b),$),onWheel:function(e){return function(e){var t=e.deltaY,i=g(Q.current.style.transform);X(i-=t)}(e)}},{children:[se,(0,e.jsx)("div",v({className:"vertical-menu-list-box"},{children:(0,e.jsxs)("div",v({className:"vertical-menu-list-box-srcoll",ref:Q},{children:[ue,ce]}))})),ve]})),fe]})},b=u(1919),y=u.n(b),w=u(5602),k=u.n(w),j=function(){return j=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},j.apply(this,arguments)},M=function(t){var i,n=t.expansion,r=void 0===n||n,o=t.expandIcon,p=t.shrinkIcon,a=t.customizeContent,m=t.clickExpansion,l=t.version,u=t.render,c=t.className,s=function(){m&&m(!r)};return(0,e.jsx)("div",j({className:(i="footer-expansion paraui-footer-expansion",c&&(i+=" "+c),r||(i+=" footer-expansion-shrink"),i)},{children:function(){if(u)return u;if(a)return a;return(0,e.jsxs)(e.Fragment,{children:[r?o||(0,e.jsx)(y(),{onClick:s}):p||(0,e.jsx)(k(),{onClick:s}),r&&l&&(0,e.jsx)("span",j({className:"version"},{children:l}))]})}()}))},O=(u(6881),function(){return O=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},O.apply(this,arguments)}),N=function(i){var n=i.color,o=void 0===n?"deep":n,p=i.logoProps,a=i.menuListProps,m=i.expansion,l=void 0===m||m,u=i.onClickExpansion,c=i.selectMenu,s=i.onClickMenu,v=i.className,f=i.style,d=i.shrinkOthers,h=void 0===d||d,g=i.footerExpansionProps,b=i.showExpansion,y=void 0===b||b,w=(0,t.useState)(!0),k=w[0],j=w[1];(0,t.useEffect)((function(){l!==k&&j(l)}),[l]);var N,S=function(){u&&u(!k)},T=(0,t.useMemo)((function(){return i.logoProps&&(0,e.jsx)(r,O({},p,{expansion:k}))}),[p,k]),E=(0,t.useMemo)((function(){return i.menuListProps&&(0,e.jsx)(x,O({},a,{color:o,expansion:k,selectMenu:c,onClickMenu:s,shrinkOthers:h}))}),[a,k,c,s,o]),_=(0,t.useMemo)((function(){return y?(0,e.jsx)(M,O({clickExpansion:S},g,{expansion:k})):null}),[k,u,g,u,y]);return(0,e.jsxs)("div",O({className:(N="vertical-menu paraui-vertical-menu",v&&(N+=" "+v),o&&(N+=" paraui-vertical-menu-"+o),l||(N+=" vertical-menu-shrink"),N),style:f},{children:[T,E,_]}))},S=N}(),c}()}));
|