@para-ui/core 3.0.53 → 3.0.55
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/README.md +24 -0
- package/package.json +1 -1
- package/AutoBox/index.d.ts +0 -34
- package/AutoBox/index.js +0 -277
- package/AutoBox/protal.d.ts +0 -17
- package/AutoTips/autoTipsMultiline/index.d.ts +0 -18
- package/AutoTips/index.d.ts +0 -35
- package/AutoTips/index.js +0 -271
- package/Breadcrumbs/index.d.ts +0 -53
- package/Breadcrumbs/index.js +0 -266
- package/Breadcrumbs/lang/en_US.d.ts +0 -4
- package/Breadcrumbs/lang/index.d.ts +0 -9
- package/Breadcrumbs/lang/zh_CN.d.ts +0 -4
- package/Button/SplitButton.d.ts +0 -64
- package/Button/index.d.ts +0 -79
- package/Button/index.js +0 -376
- package/Button/lang/en_US.d.ts +0 -4
- package/Button/lang/index.d.ts +0 -9
- package/Button/lang/zh_CN.d.ts +0 -4
- package/ButtonGroup/index.d.ts +0 -33
- package/ButtonGroup/index.js +0 -124
- package/Carousel/index.d.ts +0 -38
- package/Carousel/index.js +0 -78
- package/Cascader/index.d.ts +0 -54
- package/Cascader/index.js +0 -159
- package/Cascader/lang/en_US.d.ts +0 -4
- package/Cascader/lang/index.d.ts +0 -9
- package/Cascader/lang/zh_CN.d.ts +0 -4
- package/Checkbox/index.d.ts +0 -40
- package/Checkbox/index.js +0 -109
- package/CheckboxGroup/index.d.ts +0 -45
- package/CheckboxGroup/index.js +0 -142
- package/Collapse/collapsePanel.d.ts +0 -30
- package/Collapse/index.d.ts +0 -57
- package/Collapse/index.js +0 -152
- package/Collapse/motion.d.ts +0 -5
- package/Collapse/util.d.ts +0 -11
- package/CollapseBox/index.d.ts +0 -27
- package/CollapseBox/index.js +0 -148
- package/CollapseBox/util.d.ts +0 -5
- package/CollapseLayout/index.d.ts +0 -53
- package/CollapseLayout/index.js +0 -176
- package/ColorPicker/index.d.ts +0 -4
- package/ColorPicker/index.js +0 -4
- package/ComboSelect/index.d.ts +0 -6
- package/ComboSelect/index.js +0 -1049
- package/ComboSelect/interface.d.ts +0 -146
- package/ComboSelect/lang/en_US.d.ts +0 -9
- package/ComboSelect/lang/index.d.ts +0 -19
- package/ComboSelect/lang/zh_CN.d.ts +0 -9
- package/ComboSelect/utils.d.ts +0 -9
- package/Container/index.d.ts +0 -77
- package/Container/index.js +0 -232
- package/DatePicker/PickerButton.d.ts +0 -3
- package/DatePicker/PickerTag.d.ts +0 -3
- package/DatePicker/generatePicker/generateRangePicker.d.ts +0 -4
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +0 -11
- package/DatePicker/generatePicker/index.d.ts +0 -95
- package/DatePicker/index.d.ts +0 -18
- package/DatePicker/index.js +0 -633
- package/DatePicker/lang/en_US.d.ts +0 -3
- package/DatePicker/lang/index.d.ts +0 -7
- package/DatePicker/lang/zh_CN.d.ts +0 -3
- package/DatePicker/util.d.ts +0 -22
- package/Desktop/index.d.ts +0 -57
- package/Desktop/index.js +0 -746
- package/DragVerify/index.d.ts +0 -36
- package/DragVerify/index.js +0 -385
- package/DragVerify/lang/en_US.d.ts +0 -5
- package/DragVerify/lang/index.d.ts +0 -11
- package/DragVerify/lang/zh_CN.d.ts +0 -5
- package/Drawer/index.d.ts +0 -11
- package/Drawer/index.js +0 -235
- package/Drawer/interface.d.ts +0 -92
- package/Drawer/lang/en_US.d.ts +0 -5
- package/Drawer/lang/index.d.ts +0 -11
- package/Drawer/lang/zh_CN.d.ts +0 -5
- package/Dropdown/index.d.ts +0 -40
- package/Dropdown/index.js +0 -10
- package/DynamicMultiBox/formItem.d.ts +0 -14
- package/DynamicMultiBox/index.d.ts +0 -5
- package/DynamicMultiBox/index.js +0 -1313
- package/DynamicMultiBox/interface.d.ts +0 -161
- package/DynamicMultiBox/rowForm.d.ts +0 -24
- package/Empty/images/index.d.ts +0 -3
- package/Empty/index.d.ts +0 -30
- package/Empty/index.js +0 -642
- package/Empty/lang/en_US.d.ts +0 -6
- package/Empty/lang/index.d.ts +0 -13
- package/Empty/lang/zh_CN.d.ts +0 -6
- package/Form/index.d.ts +0 -187
- package/Form/index.js +0 -355
- package/FormItem/compoments/defaultCompoments/index.d.ts +0 -19
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +0 -8
- package/FormItem/compoments/formFile/index.d.ts +0 -38
- package/FormItem/compoments/formRadioGroup/index.d.ts +0 -8
- package/FormItem/compoments/formSelect/index.d.ts +0 -18
- package/FormItem/errorTips.d.ts +0 -12
- package/FormItem/index.d.ts +0 -152
- package/FormItem/index.js +0 -78
- package/FormItem/itemType.d.ts +0 -42
- package/FormItem/validateFunction.d.ts +0 -15
- package/FunctionModal/dialog.d.ts +0 -58
- package/FunctionModal/index.d.ts +0 -8
- package/FunctionModal/index.js +0 -43
- package/FunctionModal/modalContext.d.ts +0 -15
- package/GlobalContext/componentsProps.d.ts +0 -21
- package/GlobalContext/confirmLocale.d.ts +0 -7
- package/GlobalContext/constant.d.ts +0 -8
- package/GlobalContext/index.d.ts +0 -28
- package/GlobalContext/index.js +0 -41
- package/GlobalContext/intl.d.ts +0 -34
- package/GlobalContext/useFormatMessage.d.ts +0 -3
- package/GlobalContext/usePopupContainer.d.ts +0 -4
- package/Help/index.d.ts +0 -24
- package/Help/index.js +0 -41
- package/HelperText/index.d.ts +0 -27
- package/HelperText/index.js +0 -34
- package/Hooks/useGlobalProps.d.ts +0 -1
- package/InputLang/index.d.ts +0 -46
- package/InputLang/index.js +0 -247
- package/InputNumber/index.d.ts +0 -71
- package/InputNumber/index.js +0 -277
- package/Label/index.d.ts +0 -37
- package/Label/index.js +0 -85
- package/Loading/index.d.ts +0 -17
- package/Loading/index.js +0 -47
- package/Menu/footerExpansion.d.ts +0 -9
- package/Menu/index.d.ts +0 -10
- package/Menu/index.js +0 -1105
- package/Menu/interface.d.ts +0 -141
- package/Menu/logo.d.ts +0 -9
- package/Menu/verticalMenuList.d.ts +0 -14
- package/Message/index.d.ts +0 -99
- package/Message/index.js +0 -246
- package/Modal/Confirm/index.d.ts +0 -65
- package/Modal/index.d.ts +0 -99
- package/Modal/index.js +0 -421
- package/Modal/lang/en_US.d.ts +0 -5
- package/Modal/lang/index.d.ts +0 -11
- package/Modal/lang/zh_CN.d.ts +0 -5
- package/MultiBox/index.d.ts +0 -58
- package/MultiBox/index.js +0 -272
- package/MultiBox/lang/en_US.d.ts +0 -4
- package/MultiBox/lang/index.d.ts +0 -9
- package/MultiBox/lang/zh_CN.d.ts +0 -4
- package/Notification/index.d.ts +0 -74
- package/Notification/index.js +0 -252
- package/OperateBtn/index.d.ts +0 -59
- package/OperateBtn/index.js +0 -237
- package/OperateBtn/lang/en_US.d.ts +0 -4
- package/OperateBtn/lang/index.d.ts +0 -9
- package/OperateBtn/lang/zh_CN.d.ts +0 -4
- package/PageHeader/horizontalMeun.d.ts +0 -9
- package/PageHeader/horizontalMeunRight.d.ts +0 -9
- package/PageHeader/index.d.ts +0 -10
- package/PageHeader/index.js +0 -1050
- package/PageHeader/interface.d.ts +0 -169
- package/Pagination/index.d.ts +0 -46
- package/Pagination/index.js +0 -461
- package/Pagination/lang/en_US.d.ts +0 -8
- package/Pagination/lang/index.d.ts +0 -17
- package/Pagination/lang/zh_CN.d.ts +0 -8
- package/ParauiProvider/index.d.ts +0 -8
- package/ParauiProvider/index.js +0 -52
- package/PasswordRules/index.d.ts +0 -46
- package/PasswordRules/index.js +0 -113
- package/PopConfirm/index.d.ts +0 -61
- package/PopConfirm/index.js +0 -194
- package/PopConfirm/lang/en_US.d.ts +0 -5
- package/PopConfirm/lang/index.d.ts +0 -11
- package/PopConfirm/lang/zh_CN.d.ts +0 -5
- package/Popover/index.d.ts +0 -16
- package/Popover/index.js +0 -59
- package/Progress/Line.d.ts +0 -47
- package/Progress/Steps.d.ts +0 -17
- package/Progress/index.d.ts +0 -83
- package/Progress/index.js +0 -323
- package/Progress/utils.d.ts +0 -6
- package/Querying/images/index.d.ts +0 -3
- package/Querying/index.d.ts +0 -26
- package/Querying/index.js +0 -760
- package/Querying/lang/en_US.d.ts +0 -4
- package/Querying/lang/index.d.ts +0 -9
- package/Querying/lang/zh_CN.d.ts +0 -4
- package/Radio/index.d.ts +0 -38
- package/Radio/index.js +0 -97
- package/RadioGroup/index.d.ts +0 -46
- package/RadioGroup/index.js +0 -134
- package/Search/index.d.ts +0 -57
- package/Search/index.js +0 -208
- package/Select/index.d.ts +0 -93
- package/Select/index.js +0 -1146
- package/Select/lang/en_US.d.ts +0 -5
- package/Select/lang/index.d.ts +0 -11
- package/Select/lang/zh_CN.d.ts +0 -5
- package/SelectInput/index.d.ts +0 -12
- package/SelectInput/index.js +0 -55
- package/Selector/index.d.ts +0 -11
- package/Selector/index.js +0 -2175
- package/Selector/interface.d.ts +0 -432
- package/Selector/lang/en_US.d.ts +0 -11
- package/Selector/lang/index.d.ts +0 -23
- package/Selector/lang/zh_CN.d.ts +0 -11
- package/Selector/selectorData/index.d.ts +0 -10
- package/Selector/selectorMain/index.d.ts +0 -10
- package/Selector/selectorNode/index.d.ts +0 -10
- package/Selector/util.d.ts +0 -15
- package/SelectorPicker/index.d.ts +0 -53
- package/SelectorPicker/index.js +0 -444
- package/SelectorPicker/lang/en_US.d.ts +0 -5
- package/SelectorPicker/lang/index.d.ts +0 -11
- package/SelectorPicker/lang/zh_CN.d.ts +0 -5
- package/SingleBox/index.d.ts +0 -44
- package/SingleBox/index.js +0 -224
- package/SingleBox/lang/en_US.d.ts +0 -4
- package/SingleBox/lang/index.d.ts +0 -9
- package/SingleBox/lang/zh_CN.d.ts +0 -4
- package/Slider/index.d.ts +0 -14
- package/Slider/index.js +0 -119
- package/Slider/interface.d.ts +0 -102
- package/Split/index.d.ts +0 -7
- package/Split/index.js +0 -123
- package/Status/index.d.ts +0 -21
- package/Status/index.js +0 -37
- package/Stepper/icons.d.ts +0 -5
- package/Stepper/index.d.ts +0 -59
- package/Stepper/index.js +0 -97
- package/Switch/index.d.ts +0 -78
- package/Switch/index.js +0 -71
- package/Table/index.d.ts +0 -10
- package/Table/index.js +0 -2999
- package/Table/interface.d.ts +0 -346
- package/Table/lang/en_US.d.ts +0 -8
- package/Table/lang/index.d.ts +0 -17
- package/Table/lang/zh_CN.d.ts +0 -8
- package/Table/tableBody.d.ts +0 -9
- package/Table/tableBodyElement/index.d.ts +0 -15
- package/Table/tableBodyInterface.d.ts +0 -73
- package/Table/tableContainer/index.d.ts +0 -16
- package/Table/tableElement/index.d.ts +0 -17
- package/Table/tableHead.d.ts +0 -9
- package/Table/tableHeadElement/index.d.ts +0 -15
- package/Table/tableHeadInterface.d.ts +0 -37
- package/Table/tablePagination.d.ts +0 -9
- package/Table/tablePaginationInterface.d.ts +0 -27
- package/Table/tdElement/index.d.ts +0 -15
- package/Table/thElement/index.d.ts +0 -28
- package/Table/trElement/index.d.ts +0 -15
- package/Table/util.d.ts +0 -34
- package/Tabs/index.d.ts +0 -69
- package/Tabs/index.js +0 -205
- package/Tabs/lang/en_US.d.ts +0 -4
- package/Tabs/lang/index.d.ts +0 -9
- package/Tabs/lang/zh_CN.d.ts +0 -4
- package/Tag/TagGroup.d.ts +0 -66
- package/Tag/index.d.ts +0 -34
- package/Tag/index.js +0 -259
- package/TextEditor/common.d.ts +0 -11
- package/TextEditor/index.d.ts +0 -127
- package/TextEditor/index.js +0 -286
- package/TextField/index.d.ts +0 -90
- package/TextField/index.js +0 -611
- package/TimePicker/index.d.ts +0 -22
- package/TimePicker/index.js +0 -80
- package/TimePicker/locale/en_US.d.ts +0 -3
- package/TimePicker/locale/zh_CN.d.ts +0 -3
- package/TimePicker/style/index.d.ts +0 -1
- package/Timeline/TimelineItem.d.ts +0 -30
- package/Timeline/index.d.ts +0 -32
- package/Timeline/index.js +0 -148
- package/Title/index.d.ts +0 -30
- package/Title/index.js +0 -50
- package/ToggleButton/ToggleButtonGroup.d.ts +0 -49
- package/ToggleButton/index.d.ts +0 -49
- package/ToggleButton/index.js +0 -193
- package/Tooltip/index.d.ts +0 -11
- package/Tooltip/index.js +0 -368
- package/Tooltip/interface.d.ts +0 -35
- package/Tooltip/utils.d.ts +0 -18
- package/Transfer/box.d.ts +0 -38
- package/Transfer/index.d.ts +0 -32
- package/Transfer/index.js +0 -611
- package/Transfer/lang/en_US.d.ts +0 -10
- package/Transfer/lang/index.d.ts +0 -21
- package/Transfer/lang/zh_CN.d.ts +0 -10
- package/Transfer/useClick.d.ts +0 -3
- package/Tree/OperateBar/index.d.ts +0 -13
- package/Tree/Tree.d.ts +0 -4
- package/Tree/index.d.ts +0 -5
- package/Tree/index.js +0 -38
- package/Tree/interface.d.ts +0 -210
- package/Tree/lang/en_US.d.ts +0 -8
- package/Tree/lang/index.d.ts +0 -17
- package/Tree/lang/zh_CN.d.ts +0 -8
- package/Tree/utils/closestPolyfill.d.ts +0 -0
- package/Tree/utils/tools.d.ts +0 -25
- package/Tree/utils/treeUtil.d.ts +0 -15
- package/Upload/Dragger/index.d.ts +0 -10
- package/Upload/ErroTip/index.d.ts +0 -13
- package/Upload/ImageUpload/index.d.ts +0 -16
- package/Upload/ImgCrop/EasyCrop.d.ts +0 -17
- package/Upload/ImgCrop/constants.d.ts +0 -7
- package/Upload/ImgCrop/index.d.ts +0 -6
- package/Upload/ImgCrop/interface.d.ts +0 -48
- package/Upload/UploadList/index.d.ts +0 -5
- package/Upload/index.d.ts +0 -15
- package/Upload/index.js +0 -1446
- package/Upload/interface.d.ts +0 -136
- package/Upload/lang/en_US.d.ts +0 -12
- package/Upload/lang/index.d.ts +0 -25
- package/Upload/lang/zh_CN.d.ts +0 -12
- package/_verture/constant-66aa48a1.js +0 -10
- package/_verture/defineProperty-62acccfc.js +0 -34
- package/_verture/index-74f820ba.js +0 -1355
- package/_verture/index-77f9e0fb.js +0 -236
- package/_verture/index-9fd86055.js +0 -711
- package/_verture/index-a369ca3f.js +0 -4
- package/_verture/index-beef914f.js +0 -340
- package/_verture/index-e2881a53.js +0 -16
- package/_verture/intl-5cbb940c.js +0 -57
- package/_verture/modalContext-92bb0e16.js +0 -201
- package/_verture/slicedToArray-76060636.js +0 -43
- package/_verture/sortable.esm-49896035.js +0 -3791
- package/_verture/style-inject.es-300983ab.js +0 -28
- package/_verture/toConsumableArray-81040c9e.js +0 -19
- package/_verture/tslib.es6-55ed4bd2.js +0 -38
- package/_verture/typeof-498dd2b1.js +0 -11
- package/_verture/unsupportedIterableToArray-cb478f24.js +0 -16
- package/_verture/useFormatMessage-703f8b20.js +0 -20
- package/_verture/useGlobalProps-1b846a65.js +0 -11
- package/_verture/usePopupContainer-87febeb9.js +0 -68
- package/_verture/util-7e1fb1e2.js +0 -18
- package/index.d.ts +0 -144
- package/index.js +0 -180
- package/umd/AutoBox.js +0 -43
- package/umd/AutoTips.js +0 -15
- package/umd/Breadcrumbs.js +0 -42
- package/umd/Button.js +0 -43
- package/umd/ButtonGroup.js +0 -43
- package/umd/Carousel.js +0 -6
- package/umd/Cascader.js +0 -43
- package/umd/Checkbox.js +0 -42
- package/umd/CheckboxGroup.js +0 -42
- package/umd/Collapse.js +0 -43
- package/umd/CollapseBox.js +0 -1
- package/umd/CollapseLayout.js +0 -29
- package/umd/ColorPicker.js +0 -1
- package/umd/ComboSelect.js +0 -42
- package/umd/Container.js +0 -1
- package/umd/DatePicker.js +0 -42
- package/umd/Desktop.js +0 -42
- package/umd/DragVerify.js +0 -28
- package/umd/Drawer.js +0 -43
- package/umd/Dropdown.js +0 -15
- package/umd/DynamicMultiBox.js +0 -54
- package/umd/Empty.js +0 -15
- package/umd/Form.js +0 -42
- package/umd/FormItem.js +0 -42
- package/umd/FunctionModal.js +0 -42
- package/umd/GlobalContext.js +0 -1
- package/umd/Help.js +0 -42
- package/umd/HelperText.js +0 -1
- package/umd/InputLang.js +0 -42
- package/umd/InputNumber.js +0 -42
- package/umd/Label.js +0 -42
- package/umd/Loading.js +0 -29
- package/umd/Menu.js +0 -29
- package/umd/Message.js +0 -30
- package/umd/Modal.js +0 -42
- package/umd/MultiBox.js +0 -42
- package/umd/Notification.js +0 -43
- package/umd/OperateBtn.js +0 -42
- package/umd/PageHeader.js +0 -42
- package/umd/Pagination.js +0 -42
- package/umd/ParauiProvider.js +0 -15
- package/umd/PasswordRules.js +0 -29
- package/umd/PopConfirm.js +0 -42
- package/umd/Popover.js +0 -15
- package/umd/Progress.js +0 -35
- package/umd/Querying.js +0 -15
- package/umd/Radio.js +0 -42
- package/umd/RadioGroup.js +0 -42
- package/umd/Search.js +0 -42
- package/umd/Select.js +0 -42
- package/umd/SelectInput.js +0 -42
- package/umd/Selector.js +0 -42
- package/umd/SelectorPicker.js +0 -42
- package/umd/SingleBox.js +0 -42
- package/umd/Slider.js +0 -15
- package/umd/Split.js +0 -1
- package/umd/Status.js +0 -1
- package/umd/Stepper.js +0 -42
- package/umd/Switch.js +0 -42
- package/umd/Table.js +0 -42
- package/umd/Tabs.js +0 -42
- package/umd/Tag.js +0 -43
- package/umd/TextEditor.js +0 -205
- package/umd/TextField.js +0 -42
- package/umd/TimePicker.js +0 -42
- package/umd/Timeline.js +0 -1
- package/umd/Title.js +0 -1
- package/umd/ToggleButton.js +0 -43
- package/umd/Tooltip.js +0 -15
- package/umd/Transfer.js +0 -49
- package/umd/Tree.js +0 -42
- package/umd/Upload.js +0 -56
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from "react";
|
|
2
|
-
import { DataNode } from 'rc-tree/lib/interface';
|
|
3
|
-
import { IActions, ActionType } from "../interface";
|
|
4
|
-
import './index.scss';
|
|
5
|
-
interface OperateBarProps {
|
|
6
|
-
opRef: any;
|
|
7
|
-
mouseInRef: any;
|
|
8
|
-
actionsCallback?: (nodeData: DataNode, type: ActionType, evt?: React.MouseEvent) => void;
|
|
9
|
-
showActions?: IActions;
|
|
10
|
-
onRemove?: (anchorEl: HTMLElement) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const OperateBar: FunctionComponent<OperateBarProps>;
|
|
13
|
-
export default OperateBar;
|
package/Tree/Tree.d.ts
DELETED
package/Tree/index.d.ts
DELETED
package/Tree/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-74f820ba.js';
|
|
2
|
-
export { T as default } from '../_verture/index-74f820ba.js';
|
|
3
|
-
import '../_verture/toConsumableArray-81040c9e.js';
|
|
4
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
5
|
-
import '../_verture/defineProperty-62acccfc.js';
|
|
6
|
-
import '../_verture/typeof-498dd2b1.js';
|
|
7
|
-
import '../_verture/slicedToArray-76060636.js';
|
|
8
|
-
import '../_verture/index-beef914f.js';
|
|
9
|
-
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
10
|
-
import 'react/jsx-runtime';
|
|
11
|
-
import 'react';
|
|
12
|
-
import 'rc-tree';
|
|
13
|
-
import 'clsx';
|
|
14
|
-
import '@para-ui/icons/LoadingF';
|
|
15
|
-
import '@para-ui/icons/Document';
|
|
16
|
-
import '@para-ui/icons/DownTriangleF';
|
|
17
|
-
import '../Radio/index.js';
|
|
18
|
-
import '../Label/index.js';
|
|
19
|
-
import '../Help/index.js';
|
|
20
|
-
import '../Tooltip/index.js';
|
|
21
|
-
import 'rc-tooltip';
|
|
22
|
-
import 'rc-tooltip/lib/placements';
|
|
23
|
-
import '../_verture/constant-66aa48a1.js';
|
|
24
|
-
import '../_verture/style-inject.es-300983ab.js';
|
|
25
|
-
import '@para-ui/icons/Help';
|
|
26
|
-
import 'react-dom';
|
|
27
|
-
import '@para-ui/icons/EditFile';
|
|
28
|
-
import '@para-ui/icons/PlusCircle';
|
|
29
|
-
import '@para-ui/icons/Delete';
|
|
30
|
-
import '@para-ui/icons/Forbid';
|
|
31
|
-
import '@paraview/lib';
|
|
32
|
-
import '../_verture/useFormatMessage-703f8b20.js';
|
|
33
|
-
import '@para-ui/core/GlobalContext';
|
|
34
|
-
import '@para-ui/icons/MoreCircle';
|
|
35
|
-
import '../Empty/index.js';
|
|
36
|
-
import '../_verture/useGlobalProps-1b846a65.js';
|
|
37
|
-
import '../Loading/index.js';
|
|
38
|
-
import '../AutoTips/index.js';
|
package/Tree/interface.d.ts
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/10/18 下午4:20
|
|
4
|
-
* @description tree interface
|
|
5
|
-
*/
|
|
6
|
-
import { ReactNode } from "react";
|
|
7
|
-
import { TreeProps as RcTreeProps } from 'rc-tree';
|
|
8
|
-
import { DataNode, EventDataNode, Key } from "rc-tree/lib/interface";
|
|
9
|
-
import { EmptyProps } from "../Empty";
|
|
10
|
-
import { ParaRequestConfig as RequestConfig } from "@paraview/lib/http/interface";
|
|
11
|
-
type HasAction = (nodeData: DataNode) => boolean;
|
|
12
|
-
type ActionItem = boolean | {
|
|
13
|
-
text: string;
|
|
14
|
-
icon?: ReactNode;
|
|
15
|
-
show?: HasAction;
|
|
16
|
-
} | HasAction;
|
|
17
|
-
export type CustomActionItem = {
|
|
18
|
-
action: string;
|
|
19
|
-
text: string;
|
|
20
|
-
icon: ReactNode;
|
|
21
|
-
show?: HasAction;
|
|
22
|
-
};
|
|
23
|
-
export type ActionType = 'add' | 'edit' | 'enable' | 'del' | string;
|
|
24
|
-
export type { DataNode };
|
|
25
|
-
export type IActions = boolean | {
|
|
26
|
-
/** 新增 */
|
|
27
|
-
add?: ActionItem;
|
|
28
|
-
/** 编辑 */
|
|
29
|
-
edit?: ActionItem;
|
|
30
|
-
/** 启用 */
|
|
31
|
-
enable?: ActionItem;
|
|
32
|
-
/** 删除 */
|
|
33
|
-
del?: ActionItem;
|
|
34
|
-
/** 自定义actions */
|
|
35
|
-
customizeActions?: CustomActionItem[];
|
|
36
|
-
};
|
|
37
|
-
export type ICheckedKeys = Key[] | {
|
|
38
|
-
checked: Key[];
|
|
39
|
-
halfChecked: Key[];
|
|
40
|
-
};
|
|
41
|
-
export interface TreeProps extends Omit<RcTreeProps, 'prefixCls' | 'showLine' | 'direction' | 'onCheck' | 'loadData' | 'onExpand'> {
|
|
42
|
-
/** 是否展示连接线 */
|
|
43
|
-
showLine?: boolean | {
|
|
44
|
-
showLeafIcon: boolean;
|
|
45
|
-
};
|
|
46
|
-
/** className */
|
|
47
|
-
className?: string;
|
|
48
|
-
/** 是否支持多选 */
|
|
49
|
-
multiple?: boolean;
|
|
50
|
-
/** 是否自动展开父节点 */
|
|
51
|
-
autoExpandParent?: boolean;
|
|
52
|
-
/** Checkable状态下节点选择完全受控(父子节点选中状态不再关联)*/
|
|
53
|
-
checkStrictly?: boolean;
|
|
54
|
-
/** 节点前添加 Checkbox 复选框 */
|
|
55
|
-
checkable?: boolean;
|
|
56
|
-
/** 将树禁用 */
|
|
57
|
-
disabled?: boolean;
|
|
58
|
-
/** 默认展开所有树节点 */
|
|
59
|
-
defaultExpandAll?: boolean;
|
|
60
|
-
/** 默认展开父节点 */
|
|
61
|
-
defaultExpandParent?: boolean;
|
|
62
|
-
/** 默认展开指定的树节点 */
|
|
63
|
-
defaultExpandedKeys?: Key[];
|
|
64
|
-
/**(受控)展开指定的树节点 */
|
|
65
|
-
expandedKeys?: Key[];
|
|
66
|
-
/**(受控)选中复选框的树节点 */
|
|
67
|
-
checkedKeys?: ICheckedKeys;
|
|
68
|
-
/** 默认选中复选框的树节点 */
|
|
69
|
-
defaultCheckedKeys?: Key[];
|
|
70
|
-
/**(受控)设置选中的树节点 */
|
|
71
|
-
selectedKeys?: Key[];
|
|
72
|
-
/** 默认选中的树节点 */
|
|
73
|
-
defaultSelectedKeys?: Key[];
|
|
74
|
-
/** 是否可选中 */
|
|
75
|
-
selectable?: boolean;
|
|
76
|
-
/** 按需筛选树节点(高亮),返回 true */
|
|
77
|
-
filterTreeNode?: (node: TreeNodeProps) => boolean;
|
|
78
|
-
/**(受控)已经加载的节点,需要配合 loadData 使用*/
|
|
79
|
-
loadedKeys?: Key[];
|
|
80
|
-
/** 加载节点 loadedKey 回调 */
|
|
81
|
-
onLoadedKey?: (key: Key, node?: DataNode) => void;
|
|
82
|
-
/** 设置节点可拖拽(IE>8) */
|
|
83
|
-
draggable?: ((node: DataNode) => boolean) | boolean;
|
|
84
|
-
/** 自定义样式*/
|
|
85
|
-
style?: React.CSSProperties;
|
|
86
|
-
/** 是否展示 TreeNode title 前的图标,没有默认样式,如设置为 true,需要自行定义图标相关样式 */
|
|
87
|
-
showIcon?: boolean;
|
|
88
|
-
/** 自定义树节点图标 */
|
|
89
|
-
icon?: ((nodeProps: TreeNodeProps) => ReactNode) | ReactNode;
|
|
90
|
-
/** 自定义树节点的展开/折叠图标 */
|
|
91
|
-
switcherIcon?: React.ReactElement<any>;
|
|
92
|
-
/** 子元素 */
|
|
93
|
-
children?: ReactNode;
|
|
94
|
-
/** 是否节点占据一行 */
|
|
95
|
-
blockNode?: boolean;
|
|
96
|
-
/** 是否显示节点内置的操作按钮 */
|
|
97
|
-
showActions?: IActions;
|
|
98
|
-
/** 节点内置操作按钮的回调,showActions 开启时有效 */
|
|
99
|
-
actionsCallback?: (nodeData: DataNode, type: ActionType, evt?: React.MouseEvent) => void;
|
|
100
|
-
/** 请求url */
|
|
101
|
-
url?: string;
|
|
102
|
-
/** 请求上下文 */
|
|
103
|
-
ctx?: string;
|
|
104
|
-
/** 请求头 */
|
|
105
|
-
headers?: RequestConfig['headers'];
|
|
106
|
-
/** 请求参数 */
|
|
107
|
-
params?: Object | null;
|
|
108
|
-
/** 请求方法*/
|
|
109
|
-
method?: 'GET' | 'POST' | 'Get' | 'Post' | 'get' | 'post';
|
|
110
|
-
/** 请求成功后的回调 */
|
|
111
|
-
requestCallback?: (treeData: any) => any;
|
|
112
|
-
/** 刷新组件 */
|
|
113
|
-
refresh?: number;
|
|
114
|
-
/** 自定义节点 title、key、children、parentId、loadKey 的字段 */
|
|
115
|
-
replaceFields?: {
|
|
116
|
-
/** 标题 */
|
|
117
|
-
title?: string;
|
|
118
|
-
/**子节点 */
|
|
119
|
-
children?: string;
|
|
120
|
-
/** 节点key */
|
|
121
|
-
key?: string;
|
|
122
|
-
/** 父节点id */
|
|
123
|
-
parentId?: string;
|
|
124
|
-
/** 懒加载时key */
|
|
125
|
-
loadKey?: string;
|
|
126
|
-
};
|
|
127
|
-
/** 节点前添加 Radio 单选框 */
|
|
128
|
-
radioable?: boolean;
|
|
129
|
-
/** 是否显示 radio 单选框,radioable 为 true 时有效 */
|
|
130
|
-
showRadio?: boolean;
|
|
131
|
-
/** 点击复选框触发 */
|
|
132
|
-
onCheck?: (checkedKeys: Key[], info: any, halfCheckedKeys?: Key[]) => void;
|
|
133
|
-
/** 展开/收起节点时触发 */
|
|
134
|
-
onExpand?: (expandedKeys: Key[], info: {
|
|
135
|
-
node: EventDataNode;
|
|
136
|
-
expanded: boolean;
|
|
137
|
-
nativeEvent: MouseEvent;
|
|
138
|
-
}) => void;
|
|
139
|
-
/** 是否异步加载数据,开启后不要传递 loadData 属性,需把数据请求放在组件内部执行 */
|
|
140
|
-
asyncLoad?: boolean;
|
|
141
|
-
/** 是否开启数据分页,asyncLoad 为 true 时,pagination 属性控制是否分页,分页数据格式 {list,page,size,total} */
|
|
142
|
-
pagination?: boolean;
|
|
143
|
-
/** 异步加载数据 */
|
|
144
|
-
loadData?: (node: DataNode) => Promise<any>;
|
|
145
|
-
/** 分页参数, pagination 为 true 时有效 */
|
|
146
|
-
pageSize?: {
|
|
147
|
-
page?: number;
|
|
148
|
-
size?: number;
|
|
149
|
-
};
|
|
150
|
-
/** 是否开启本地数据过滤 */
|
|
151
|
-
localFilter?: boolean;
|
|
152
|
-
/** 本地数据过滤参数,localFilter 为 true 时有效 */
|
|
153
|
-
localParams?: {
|
|
154
|
-
/** 过滤字段名 */
|
|
155
|
-
searchKey: string;
|
|
156
|
-
/** 过滤字段值 */
|
|
157
|
-
searchValue: string;
|
|
158
|
-
};
|
|
159
|
-
/** 本地数据过滤回调,localFilter 为 true 时有效 */
|
|
160
|
-
onFilter?: (data: DataNode[]) => DataNode[];
|
|
161
|
-
/** 自定义加载更多节点,asyncLoad 为 true 且 pagination 为 true 时有效 */
|
|
162
|
-
loadMoreNode?: ReactNode;
|
|
163
|
-
/** 请求之前参数的回调 */
|
|
164
|
-
paramsCallback?: (params: {
|
|
165
|
-
[name: string]: any;
|
|
166
|
-
}) => any;
|
|
167
|
-
/** 空状态属性 */
|
|
168
|
-
emptyProps?: EmptyProps;
|
|
169
|
-
/** 自定义空数据节点 */
|
|
170
|
-
notFoundContent?: ReactNode;
|
|
171
|
-
/** wrapperClassName */
|
|
172
|
-
wrapperClassName?: string;
|
|
173
|
-
/** wrapperStyle */
|
|
174
|
-
wrapperStyle?: React.CSSProperties;
|
|
175
|
-
/** 接口请求时显示loading */
|
|
176
|
-
showLoading?: boolean;
|
|
177
|
-
[key: string]: any;
|
|
178
|
-
}
|
|
179
|
-
export interface TreeNodeProps {
|
|
180
|
-
className?: string;
|
|
181
|
-
checkable?: boolean;
|
|
182
|
-
disabled?: boolean;
|
|
183
|
-
disableCheckbox?: boolean;
|
|
184
|
-
title?: ReactNode;
|
|
185
|
-
key?: Key;
|
|
186
|
-
eventKey?: string;
|
|
187
|
-
isLeaf?: boolean;
|
|
188
|
-
checked?: boolean;
|
|
189
|
-
expanded?: boolean;
|
|
190
|
-
loading?: boolean;
|
|
191
|
-
selected?: boolean;
|
|
192
|
-
selectable?: boolean;
|
|
193
|
-
icon?: ((treeNode: TreeNodeProps) => ReactNode) | ReactNode;
|
|
194
|
-
children?: ReactNode;
|
|
195
|
-
[key: string]: any;
|
|
196
|
-
}
|
|
197
|
-
export interface PageInfo {
|
|
198
|
-
/***
|
|
199
|
-
* 当前页数
|
|
200
|
-
*/
|
|
201
|
-
page: number;
|
|
202
|
-
/***
|
|
203
|
-
* 每页条数
|
|
204
|
-
*/
|
|
205
|
-
size: number;
|
|
206
|
-
/***
|
|
207
|
-
* 总条数
|
|
208
|
-
*/
|
|
209
|
-
total: number;
|
|
210
|
-
}
|
package/Tree/lang/en_US.d.ts
DELETED
package/Tree/lang/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
zh: {
|
|
3
|
-
loadMore: string;
|
|
4
|
-
add: string;
|
|
5
|
-
edit: string;
|
|
6
|
-
disabled: string;
|
|
7
|
-
delete: string;
|
|
8
|
-
};
|
|
9
|
-
en: {
|
|
10
|
-
loadMore: string;
|
|
11
|
-
add: string;
|
|
12
|
-
edit: string;
|
|
13
|
-
disabled: string;
|
|
14
|
-
delete: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
package/Tree/lang/zh_CN.d.ts
DELETED
|
File without changes
|
package/Tree/utils/tools.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DataNode, Key } from "rc-tree/lib/interface";
|
|
2
|
-
interface RFiled {
|
|
3
|
-
key: string;
|
|
4
|
-
parentId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const debounce: (func: Function, wait?: number, options?: any) => {
|
|
7
|
-
(...args: any): any;
|
|
8
|
-
cancel: () => void;
|
|
9
|
-
flush: () => any;
|
|
10
|
-
pending: () => boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const deepCopy: (target: any) => any;
|
|
13
|
-
export declare const flatten: (data: any[]) => any[];
|
|
14
|
-
export declare const convert: (list: any, rFiled?: RFiled) => any;
|
|
15
|
-
export declare const convertByFilter: (sourceList: any[], filterList: any[], rFiled?: RFiled) => any[];
|
|
16
|
-
export declare const getUnMatchDataOfKeys: (keys: Key[], oriData: DataNode[]) => Key[];
|
|
17
|
-
export declare const getCheckedKeys: (cKeys: Key[] | {
|
|
18
|
-
checked: Key[];
|
|
19
|
-
halfChecked: Key[];
|
|
20
|
-
}) => Key[];
|
|
21
|
-
export declare const getHalfCheckedKeys: (cKeys: Key[] | {
|
|
22
|
-
checked: Key[];
|
|
23
|
-
halfChecked: Key[];
|
|
24
|
-
}) => Key[];
|
|
25
|
-
export {};
|
package/Tree/utils/treeUtil.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CSSMotionProps } from 'rc-motion';
|
|
3
|
-
import { TreeNodeProps } from '../interface';
|
|
4
|
-
export declare const collapseMotion: CSSMotionProps;
|
|
5
|
-
export default function renderSwitcherIcon(prefixCls: string, switcherIcon: React.ReactNode | null | undefined, showLine: boolean | {
|
|
6
|
-
showLeafIcon: boolean;
|
|
7
|
-
} | undefined, { isLeaf, expanded, loading, eventKey }: TreeNodeProps): {} | null;
|
|
8
|
-
export declare function dropIndicatorRender(props: {
|
|
9
|
-
dropPosition: -1 | 0 | 1;
|
|
10
|
-
dropLevelOffset: number;
|
|
11
|
-
indent: number;
|
|
12
|
-
prefixCls: string;
|
|
13
|
-
direction: 'ltr' | 'rtl' | undefined;
|
|
14
|
-
}): JSX.Element;
|
|
15
|
-
export declare function renderTreeNodeIcon(nodeProps: TreeNodeProps, radioable: boolean, checkedKey: any, replaceFields: any): JSX.Element | null;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/11/15 下午2:12
|
|
4
|
-
* @description
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from "react";
|
|
7
|
-
import { UploadProps } from "../index";
|
|
8
|
-
export type DraggerProps = Omit<UploadProps, 'type'>;
|
|
9
|
-
declare const Dragger: FunctionComponent<DraggerProps>;
|
|
10
|
-
export default Dragger;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/11/15 下午7:07
|
|
4
|
-
* @description
|
|
5
|
-
*/
|
|
6
|
-
import { FunctionComponent } from "react";
|
|
7
|
-
import './index.scss';
|
|
8
|
-
interface ErrorTipProps {
|
|
9
|
-
message: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const ErrorTip: FunctionComponent<ErrorTipProps>;
|
|
13
|
-
export default ErrorTip;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { UploadProps } from '../interface';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
export type ImageUploadProps = Omit<UploadProps, 'type'> & {
|
|
5
|
-
/** 默认图片 showUploadList为false时有效 */
|
|
6
|
-
defaultImage?: {
|
|
7
|
-
/** 图片地址 */
|
|
8
|
-
imageUrl: string;
|
|
9
|
-
/** 图片名称 */
|
|
10
|
-
imageName?: string;
|
|
11
|
-
};
|
|
12
|
-
/** 用于控制这个组件只回显图片 不能上传和删除 */
|
|
13
|
-
readonly?: boolean;
|
|
14
|
-
};
|
|
15
|
-
declare const ImageUpload: FunctionComponent<ImageUploadProps>;
|
|
16
|
-
export default ImageUpload;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React, { MutableRefObject } from 'react';
|
|
2
|
-
import Cropper from 'react-easy-crop';
|
|
3
|
-
import type { Dispatch, SetStateAction, ForwardedRef } from 'react';
|
|
4
|
-
import type { Area } from 'react-easy-crop/types';
|
|
5
|
-
import type { ImgCropProps } from './interface';
|
|
6
|
-
export type EasyCropHandle = {
|
|
7
|
-
rotateVal: number;
|
|
8
|
-
setZoomVal: Dispatch<SetStateAction<number>>;
|
|
9
|
-
setRotateVal: Dispatch<SetStateAction<number>>;
|
|
10
|
-
cropPixelsRef: MutableRefObject<Area>;
|
|
11
|
-
};
|
|
12
|
-
interface EasyCropProps extends Required<Pick<ImgCropProps, 'aspect' | 'shape' | 'grid' | 'zoom' | 'rotate' | 'minZoom' | 'maxZoom' | 'cropperProps' | 'fixedCropSize'>> {
|
|
13
|
-
cropperRef: ForwardedRef<Cropper>;
|
|
14
|
-
image: string;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<EasyCropProps & React.RefAttributes<EasyCropHandle>>>;
|
|
17
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const PREFIX: string;
|
|
2
|
-
export declare const INIT_ZOOM = 1;
|
|
3
|
-
export declare const ZOOM_STEP = 0.1;
|
|
4
|
-
export declare const INIT_ROTATE = 0;
|
|
5
|
-
export declare const ROTATE_STEP = 1;
|
|
6
|
-
export declare const MIN_ROTATE = -180;
|
|
7
|
-
export declare const MAX_ROTATE = 180;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CropperProps } from 'react-easy-crop';
|
|
3
|
-
export type { RcFile } from 'rc-upload/lib/interface';
|
|
4
|
-
export interface ImgCropProps {
|
|
5
|
-
/** 纵横比 默认 1 */
|
|
6
|
-
aspect?: number;
|
|
7
|
-
/** 形状:矩形、圆形 默认 rect*/
|
|
8
|
-
shape?: 'rect' | 'round';
|
|
9
|
-
/** 是否显示网格 */
|
|
10
|
-
grid?: boolean;
|
|
11
|
-
/** 图片质量 默认 0.4*/
|
|
12
|
-
quality?: number;
|
|
13
|
-
/** 填充颜色 */
|
|
14
|
-
fillColor?: string;
|
|
15
|
-
/** 是否支持缩放 */
|
|
16
|
-
zoom?: boolean;
|
|
17
|
-
/** 是否支持旋转 */
|
|
18
|
-
rotate?: boolean;
|
|
19
|
-
/** 固定裁剪大小 */
|
|
20
|
-
fixedCropSize?: {
|
|
21
|
-
width: number;
|
|
22
|
-
height: number;
|
|
23
|
-
};
|
|
24
|
-
/** 最小缩放值 */
|
|
25
|
-
minZoom?: number;
|
|
26
|
-
/** 最大缩放值 */
|
|
27
|
-
maxZoom?: number;
|
|
28
|
-
/** modal title */
|
|
29
|
-
modalTitle?: React.ReactNode;
|
|
30
|
-
/** modal 宽度 */
|
|
31
|
-
modalWidth?: number | string;
|
|
32
|
-
/** modal ok text*/
|
|
33
|
-
modalOk?: string;
|
|
34
|
-
/** modal cancel text*/
|
|
35
|
-
modalCancel?: string;
|
|
36
|
-
/** ok callback */
|
|
37
|
-
onModalOk?: (file: void | boolean | string | Blob | File) => void;
|
|
38
|
-
/** cancel callback */
|
|
39
|
-
onModalCancel?: () => void;
|
|
40
|
-
/** modal 打开之前的回调,若返回false,则不打开弹框 */
|
|
41
|
-
beforeCrop?: (file: File, fileList: File[]) => boolean | Promise<boolean>;
|
|
42
|
-
/** upload fail callback */
|
|
43
|
-
onUploadFail?: (err: Error) => void;
|
|
44
|
-
/** Props of react-easy-crop (* existing props cannot be overridden) */
|
|
45
|
-
cropperProps?: Partial<CropperProps>;
|
|
46
|
-
/** 子节点 */
|
|
47
|
-
children: JSX.Element;
|
|
48
|
-
}
|
package/Upload/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { UploadProps } from './interface';
|
|
3
|
-
import ImageUpload, { ImageUploadProps } from './ImageUpload';
|
|
4
|
-
import Dragger, { DraggerProps } from "./Dragger";
|
|
5
|
-
import ImgCrop, { ImgCropProps } from "./ImgCrop";
|
|
6
|
-
import './index.scss';
|
|
7
|
-
declare const InternalUpload: FunctionComponent<UploadProps>;
|
|
8
|
-
type MergedUploadType = typeof InternalUpload & {
|
|
9
|
-
ImageUpload: typeof ImageUpload;
|
|
10
|
-
Dragger: typeof Dragger;
|
|
11
|
-
ImgCrop: typeof ImgCrop;
|
|
12
|
-
};
|
|
13
|
-
declare const Upload: MergedUploadType;
|
|
14
|
-
export type { UploadProps, ImageUploadProps, DraggerProps, ImgCropProps };
|
|
15
|
-
export default Upload;
|