@qsxy/element-plus-react 1.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Badge/Badge.d.ts +4 -0
- package/dist/Badge/Badge.js +65 -0
- package/dist/Badge/index.d.ts +2 -0
- package/dist/Badge/index.js +39 -0
- package/dist/Badge/typings.d.ts +14 -0
- package/dist/Badge/typings.js +17 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/dist/Breadcrumb/Breadcrumb.js +54 -0
- package/dist/Breadcrumb/BreadcrumbItem.d.ts +4 -0
- package/dist/Breadcrumb/BreadcrumbItem.js +55 -0
- package/dist/Breadcrumb/index.d.ts +3 -0
- package/dist/Breadcrumb/index.js +42 -0
- package/dist/Breadcrumb/typings.d.ts +13 -0
- package/dist/Breadcrumb/typings.js +17 -0
- package/dist/Button/Button.d.ts +14 -0
- package/dist/Button/Button.js +99 -0
- package/dist/Button/ButtonGroup.d.ts +4 -0
- package/dist/Button/ButtonGroup.js +48 -0
- package/dist/Button/ButtonGroupContext.d.ts +5 -0
- package/dist/Button/ButtonGroupContext.js +30 -0
- package/dist/Button/index.d.ts +3 -0
- package/dist/Button/index.js +42 -0
- package/dist/Button/typings.d.ts +37 -0
- package/dist/Button/typings.js +17 -0
- package/dist/Calendar/Calendar.d.ts +4 -0
- package/dist/Calendar/Calendar.js +278 -0
- package/dist/Calendar/CalendarContext.d.ts +27 -0
- package/dist/Calendar/CalendarContext.js +36 -0
- package/dist/Calendar/DatePanel.d.ts +4 -0
- package/dist/Calendar/DatePanel.js +210 -0
- package/dist/Calendar/DateRangePanel.d.ts +4 -0
- package/dist/Calendar/DateRangePanel.js +145 -0
- package/dist/Calendar/Footer.d.ts +3 -0
- package/dist/Calendar/Footer.js +57 -0
- package/dist/Calendar/Header.d.ts +4 -0
- package/dist/Calendar/Header.js +71 -0
- package/dist/Calendar/MonthPanel.d.ts +4 -0
- package/dist/Calendar/MonthPanel.js +156 -0
- package/dist/Calendar/MonthRangePanel.d.ts +4 -0
- package/dist/Calendar/MonthRangePanel.js +144 -0
- package/dist/Calendar/ShortCuts.d.ts +12 -0
- package/dist/Calendar/ShortCuts.js +41 -0
- package/dist/Calendar/WeekPanel.d.ts +4 -0
- package/dist/Calendar/WeekPanel.js +179 -0
- package/dist/Calendar/YearPanel.d.ts +4 -0
- package/dist/Calendar/YearPanel.js +158 -0
- package/dist/Calendar/YearRangePanel.d.ts +4 -0
- package/dist/Calendar/YearRangePanel.js +152 -0
- package/dist/Calendar/index.d.ts +5 -0
- package/dist/Calendar/index.js +47 -0
- package/dist/Calendar/typings.d.ts +92 -0
- package/dist/Calendar/typings.js +17 -0
- package/dist/Calendar/util.d.ts +9 -0
- package/dist/Calendar/util.js +81 -0
- package/dist/Card/Card.d.ts +4 -0
- package/dist/Card/Card.js +46 -0
- package/dist/Card/index.d.ts +2 -0
- package/dist/Card/index.js +39 -0
- package/dist/Card/typings.d.ts +8 -0
- package/dist/Card/typings.js +17 -0
- package/dist/Cascader/Cascader.d.ts +4 -0
- package/dist/Cascader/Cascader.js +630 -0
- package/dist/Cascader/CascaderContext.d.ts +18 -0
- package/dist/Cascader/CascaderContext.js +52 -0
- package/dist/Cascader/CascaderDropdown.d.ts +10 -0
- package/dist/Cascader/CascaderDropdown.js +81 -0
- package/dist/Cascader/CascaderMenu.d.ts +12 -0
- package/dist/Cascader/CascaderMenu.js +191 -0
- package/dist/Cascader/Utils.d.ts +3 -0
- package/dist/Cascader/Utils.js +83 -0
- package/dist/Cascader/index.d.ts +2 -0
- package/dist/Cascader/index.js +39 -0
- package/dist/Cascader/typings.d.ts +79 -0
- package/dist/Cascader/typings.js +17 -0
- package/dist/Cascader/useCascader.d.ts +30 -0
- package/dist/Cascader/useCascader.js +614 -0
- package/dist/Checkbox/Checkbox.d.ts +4 -0
- package/dist/Checkbox/Checkbox.js +168 -0
- package/dist/Checkbox/CheckboxButton.d.ts +4 -0
- package/dist/Checkbox/CheckboxButton.js +166 -0
- package/dist/Checkbox/index.d.ts +3 -0
- package/dist/Checkbox/index.js +42 -0
- package/dist/Checkbox/typings.d.ts +21 -0
- package/dist/Checkbox/typings.js +17 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +12 -0
- package/dist/CheckboxGroup/CheckboxGroup.js +117 -0
- package/dist/CheckboxGroup/CheckboxGroupContext.d.ts +15 -0
- package/dist/CheckboxGroup/CheckboxGroupContext.js +30 -0
- package/dist/CheckboxGroup/index.d.ts +4 -0
- package/dist/CheckboxGroup/index.js +42 -0
- package/dist/Col/Col.d.ts +4 -0
- package/dist/Col/Col.js +89 -0
- package/dist/Col/index.d.ts +2 -0
- package/dist/Col/index.js +39 -0
- package/dist/Col/typings.d.ts +16 -0
- package/dist/Col/typings.js +17 -0
- package/dist/Collapse/Collapse.d.ts +4 -0
- package/dist/Collapse/Collapse.js +46 -0
- package/dist/Collapse/CollapseContext.d.ts +10 -0
- package/dist/Collapse/CollapseContext.js +35 -0
- package/dist/Collapse/CollapseItem.d.ts +4 -0
- package/dist/Collapse/CollapseItem.js +94 -0
- package/dist/Collapse/CollapseTransition.d.ts +6 -0
- package/dist/Collapse/CollapseTransition.js +78 -0
- package/dist/Collapse/index.d.ts +3 -0
- package/dist/Collapse/index.js +42 -0
- package/dist/Collapse/typings.d.ts +13 -0
- package/dist/Collapse/typings.js +17 -0
- package/dist/ColorPicker/AlphaSlider.d.ts +12 -0
- package/dist/ColorPicker/AlphaSlider.js +133 -0
- package/dist/ColorPicker/ColorPicker.d.ts +4 -0
- package/dist/ColorPicker/ColorPicker.js +215 -0
- package/dist/ColorPicker/HueSlider.d.ts +12 -0
- package/dist/ColorPicker/HueSlider.js +125 -0
- package/dist/ColorPicker/Predefine.d.ts +12 -0
- package/dist/ColorPicker/Predefine.js +72 -0
- package/dist/ColorPicker/SvPanel.d.ts +11 -0
- package/dist/ColorPicker/SvPanel.js +95 -0
- package/dist/ColorPicker/color.d.ts +28 -0
- package/dist/ColorPicker/color.js +293 -0
- package/dist/ColorPicker/draggable.d.ts +6 -0
- package/dist/ColorPicker/draggable.js +60 -0
- package/dist/ColorPicker/index.d.ts +2 -0
- package/dist/ColorPicker/index.js +39 -0
- package/dist/ColorPicker/typings.d.ts +13 -0
- package/dist/ColorPicker/typings.js +17 -0
- package/dist/ColorPicker/util.d.ts +6 -0
- package/dist/ColorPicker/util.js +78 -0
- package/dist/ConfigProvider/ConfigProvider.d.ts +16 -0
- package/dist/ConfigProvider/ConfigProvider.js +34 -0
- package/dist/ConfigProvider/index.d.ts +2 -0
- package/dist/ConfigProvider/index.js +39 -0
- package/dist/DatePicker/DatePicker.d.ts +4 -0
- package/dist/DatePicker/DatePicker.js +224 -0
- package/dist/DatePicker/DateRangePicker.d.ts +4 -0
- package/dist/DatePicker/DateRangePicker.js +287 -0
- package/dist/DatePicker/index.d.ts +2 -0
- package/dist/DatePicker/index.js +39 -0
- package/dist/DatePicker/main.d.ts +4 -0
- package/dist/DatePicker/main.js +46 -0
- package/dist/DatePicker/typings.d.ts +95 -0
- package/dist/DatePicker/typings.js +17 -0
- package/dist/DateTimePicker/DateTimePicker.d.ts +10 -0
- package/dist/DateTimePicker/DateTimePicker.js +227 -0
- package/dist/DateTimePicker/index.d.ts +2 -0
- package/dist/DateTimePicker/index.js +39 -0
- package/dist/DateTimePicker/typings.d.ts +18 -0
- package/dist/DateTimePicker/typings.js +17 -0
- package/dist/DateTimePicker/util.d.ts +2 -0
- package/dist/DateTimePicker/util.js +36 -0
- package/dist/Descriptions/Descriptions.d.ts +4 -0
- package/dist/Descriptions/Descriptions.js +96 -0
- package/dist/Descriptions/DescriptionsCell.d.ts +19 -0
- package/dist/Descriptions/DescriptionsCell.js +84 -0
- package/dist/Descriptions/DescriptionsContext.d.ts +7 -0
- package/dist/Descriptions/DescriptionsContext.js +33 -0
- package/dist/Descriptions/DescriptionsItem.d.ts +6 -0
- package/dist/Descriptions/DescriptionsItem.js +29 -0
- package/dist/Descriptions/DescriptionsRow.d.ts +10 -0
- package/dist/Descriptions/DescriptionsRow.js +45 -0
- package/dist/Descriptions/index.d.ts +3 -0
- package/dist/Descriptions/index.js +42 -0
- package/dist/Descriptions/typings.d.ts +19 -0
- package/dist/Descriptions/typings.js +17 -0
- package/dist/Dialog/Dialog.d.ts +16 -0
- package/dist/Dialog/Dialog.js +212 -0
- package/dist/Dialog/DialogBody.d.ts +4 -0
- package/dist/Dialog/DialogBody.js +63 -0
- package/dist/Dialog/DialogContext.d.ts +14 -0
- package/dist/Dialog/DialogContext.js +51 -0
- package/dist/Dialog/DialogFooter.d.ts +4 -0
- package/dist/Dialog/DialogFooter.js +46 -0
- package/dist/Dialog/DialogHeader.d.ts +4 -0
- package/dist/Dialog/DialogHeader.js +53 -0
- package/dist/Dialog/index.d.ts +2 -0
- package/dist/Dialog/index.js +39 -0
- package/dist/Dialog/typings.d.ts +48 -0
- package/dist/Dialog/typings.js +17 -0
- package/dist/Dialog/useDraggable.d.ts +2 -0
- package/dist/Dialog/useDraggable.js +97 -0
- package/dist/Divider/Divider.d.ts +10 -0
- package/dist/Divider/Divider.js +52 -0
- package/dist/Divider/index.d.ts +2 -0
- package/dist/Divider/index.js +39 -0
- package/dist/Drawer/Drawer.d.ts +18 -0
- package/dist/Drawer/Drawer.js +136 -0
- package/dist/Drawer/DrawerBody.d.ts +4 -0
- package/dist/Drawer/DrawerBody.js +63 -0
- package/dist/Drawer/DrawerContext.d.ts +9 -0
- package/dist/Drawer/DrawerContext.js +46 -0
- package/dist/Drawer/DrawerFooter.d.ts +4 -0
- package/dist/Drawer/DrawerFooter.js +44 -0
- package/dist/Drawer/DrawerHeader.d.ts +4 -0
- package/dist/Drawer/DrawerHeader.js +58 -0
- package/dist/Drawer/index.d.ts +2 -0
- package/dist/Drawer/index.js +39 -0
- package/dist/Drawer/typings.d.ts +26 -0
- package/dist/Drawer/typings.js +17 -0
- package/dist/Dropdown/Dropdown.d.ts +4 -0
- package/dist/Dropdown/Dropdown.js +105 -0
- package/dist/Dropdown/DropdownContext.d.ts +7 -0
- package/dist/Dropdown/DropdownContext.js +46 -0
- package/dist/Dropdown/DropdownItem.d.ts +4 -0
- package/dist/Dropdown/DropdownItem.js +62 -0
- package/dist/Dropdown/DropdownMenu.d.ts +4 -0
- package/dist/Dropdown/DropdownMenu.js +57 -0
- package/dist/Dropdown/index.d.ts +4 -0
- package/dist/Dropdown/index.js +45 -0
- package/dist/Dropdown/typings.d.ts +27 -0
- package/dist/Dropdown/typings.js +17 -0
- package/dist/Empty/Empty.d.ts +9 -0
- package/dist/Empty/Empty.js +61 -0
- package/dist/Empty/ImgEmpty.d.ts +3 -0
- package/dist/Empty/ImgEmpty.js +118 -0
- package/dist/Empty/index.d.ts +2 -0
- package/dist/Empty/index.js +39 -0
- package/dist/Form/FieldContext.d.ts +5 -0
- package/dist/Form/FieldContext.js +75 -0
- package/dist/Form/Form.d.ts +16 -0
- package/dist/Form/Form.js +189 -0
- package/dist/Form/FormContext.d.ts +27 -0
- package/dist/Form/FormContext.js +101 -0
- package/dist/Form/FormItem.d.ts +47 -0
- package/dist/Form/FormItem.js +461 -0
- package/dist/Form/FormItemContext.d.ts +7 -0
- package/dist/Form/FormItemContext.js +32 -0
- package/dist/Form/List.d.ts +21 -0
- package/dist/Form/List.js +142 -0
- package/dist/Form/ListContext.d.ts +7 -0
- package/dist/Form/ListContext.js +27 -0
- package/dist/Form/index.d.ts +5 -0
- package/dist/Form/index.js +45 -0
- package/dist/Form/typings.d.ts +302 -0
- package/dist/Form/typings.js +17 -0
- package/dist/Form/useForm.d.ts +73 -0
- package/dist/Form/useForm.js +751 -0
- package/dist/Form/useWatch.d.ts +12 -0
- package/dist/Form/useWatch.js +91 -0
- package/dist/Form/utils/NameMap.d.ts +15 -0
- package/dist/Form/utils/NameMap.js +75 -0
- package/dist/Form/utils/asyncUtil.d.ts +2 -0
- package/dist/Form/utils/asyncUtil.js +54 -0
- package/dist/Form/utils/classUtil.d.ts +4 -0
- package/dist/Form/utils/classUtil.js +51 -0
- package/dist/Form/utils/cloneDeep.d.ts +2 -0
- package/dist/Form/utils/cloneDeep.js +46 -0
- package/dist/Form/utils/get.d.ts +1 -0
- package/dist/Form/utils/get.js +34 -0
- package/dist/Form/utils/messages.d.ts +51 -0
- package/dist/Form/utils/messages.js +80 -0
- package/dist/Form/utils/set.d.ts +1 -0
- package/dist/Form/utils/set.js +61 -0
- package/dist/Form/utils/typeUtil.d.ts +1 -0
- package/dist/Form/utils/typeUtil.js +34 -0
- package/dist/Form/utils/util.d.ts +3 -0
- package/dist/Form/utils/util.js +68 -0
- package/dist/Form/utils/validateUtil.d.ts +2 -0
- package/dist/Form/utils/validateUtil.js +195 -0
- package/dist/Form/utils/valueUtil.d.ts +14 -0
- package/dist/Form/utils/valueUtil.js +160 -0
- package/dist/Icon/Icon.d.ts +4 -0
- package/dist/Icon/Icon.js +66 -0
- package/dist/Icon/IconList/Check.d.ts +3 -0
- package/dist/Icon/IconList/Check.js +66 -0
- package/dist/Icon/IconList/Close.d.ts +3 -0
- package/dist/Icon/IconList/Close.js +53 -0
- package/dist/Icon/IconList/Delete.d.ts +3 -0
- package/dist/Icon/IconList/Delete.js +66 -0
- package/dist/Icon/IconList/Down.d.ts +3 -0
- package/dist/Icon/IconList/Down.js +66 -0
- package/dist/Icon/IconList/Eye.d.ts +3 -0
- package/dist/Icon/IconList/Eye.js +66 -0
- package/dist/Icon/IconList/EyeClose.d.ts +3 -0
- package/dist/Icon/IconList/EyeClose.js +66 -0
- package/dist/Icon/IconList/Left.d.ts +3 -0
- package/dist/Icon/IconList/Left.js +66 -0
- package/dist/Icon/IconList/Link.d.ts +3 -0
- package/dist/Icon/IconList/Link.js +56 -0
- package/dist/Icon/IconList/More.d.ts +3 -0
- package/dist/Icon/IconList/More.js +66 -0
- package/dist/Icon/IconList/Question.d.ts +3 -0
- package/dist/Icon/IconList/Question.js +66 -0
- package/dist/Icon/IconList/Right.d.ts +3 -0
- package/dist/Icon/IconList/Right.js +66 -0
- package/dist/Icon/IconList/Search.d.ts +3 -0
- package/dist/Icon/IconList/Search.js +66 -0
- package/dist/Icon/IconList/Up.d.ts +3 -0
- package/dist/Icon/IconList/Up.js +66 -0
- package/dist/Icon/IconList/Upload.d.ts +3 -0
- package/dist/Icon/IconList/Upload.js +66 -0
- package/dist/Icon/IconList/index.d.ts +14 -0
- package/dist/Icon/IconList/index.js +68 -0
- package/dist/Icon/index.d.ts +3 -0
- package/dist/Icon/index.js +42 -0
- package/dist/Icon/typings.d.ts +17 -0
- package/dist/Icon/typings.js +17 -0
- package/dist/Input/Input.d.ts +16 -0
- package/dist/Input/Input.js +391 -0
- package/dist/Input/InputGroup.d.ts +4 -0
- package/dist/Input/InputGroup.js +44 -0
- package/dist/Input/InputRange.d.ts +4 -0
- package/dist/Input/InputRange.js +353 -0
- package/dist/Input/TextArea.d.ts +4 -0
- package/dist/Input/TextArea.js +118 -0
- package/dist/Input/index.d.ts +4 -0
- package/dist/Input/index.js +45 -0
- package/dist/Input/typings.d.ts +87 -0
- package/dist/Input/typings.js +17 -0
- package/dist/InputNumber/InputNumber.d.ts +4 -0
- package/dist/InputNumber/InputNumber.js +231 -0
- package/dist/InputNumber/index.d.ts +2 -0
- package/dist/InputNumber/index.js +39 -0
- package/dist/InputNumber/typings.d.ts +31 -0
- package/dist/InputNumber/typings.js +17 -0
- package/dist/Link/Link.d.ts +4 -0
- package/dist/Link/Link.js +64 -0
- package/dist/Link/index.d.ts +2 -0
- package/dist/Link/index.js +39 -0
- package/dist/Link/typings.d.ts +11 -0
- package/dist/Link/typings.js +17 -0
- package/dist/Loading/Loading.d.ts +9 -0
- package/dist/Loading/Loading.js +70 -0
- package/dist/Loading/index.d.ts +2 -0
- package/dist/Loading/index.js +39 -0
- package/dist/Loading/typings.d.ts +15 -0
- package/dist/Loading/typings.js +17 -0
- package/dist/Message/Main.d.ts +8 -0
- package/dist/Message/Main.js +68 -0
- package/dist/Message/Message.d.ts +4 -0
- package/dist/Message/Message.js +155 -0
- package/dist/Message/index.d.ts +7 -0
- package/dist/Message/index.js +146 -0
- package/dist/Message/typings.d.ts +42 -0
- package/dist/Message/typings.js +17 -0
- package/dist/MessageBox/Main.d.ts +8 -0
- package/dist/MessageBox/Main.js +68 -0
- package/dist/MessageBox/MessageBox.d.ts +4 -0
- package/dist/MessageBox/MessageBox.js +217 -0
- package/dist/MessageBox/index.d.ts +9 -0
- package/dist/MessageBox/index.js +99 -0
- package/dist/MessageBox/typings.d.ts +63 -0
- package/dist/MessageBox/typings.js +17 -0
- package/dist/Notification/Main.d.ts +8 -0
- package/dist/Notification/Main.js +68 -0
- package/dist/Notification/Notification.d.ts +4 -0
- package/dist/Notification/Notification.js +150 -0
- package/dist/Notification/index.d.ts +5 -0
- package/dist/Notification/index.js +127 -0
- package/dist/Notification/typings.d.ts +42 -0
- package/dist/Notification/typings.js +17 -0
- package/dist/Pagination/Options.d.ts +16 -0
- package/dist/Pagination/Options.js +117 -0
- package/dist/Pagination/Pager.d.ts +4 -0
- package/dist/Pagination/Pager.js +63 -0
- package/dist/Pagination/Pagination.d.ts +4 -0
- package/dist/Pagination/Pagination.js +462 -0
- package/dist/Pagination/index.d.ts +2 -0
- package/dist/Pagination/index.js +39 -0
- package/dist/Pagination/typings.d.ts +41 -0
- package/dist/Pagination/typings.js +17 -0
- package/dist/Pagination/util.d.ts +6 -0
- package/dist/Pagination/util.js +50 -0
- package/dist/Popconfirm/Popconfirm.d.ts +4 -0
- package/dist/Popconfirm/Popconfirm.js +114 -0
- package/dist/Popconfirm/index.d.ts +2 -0
- package/dist/Popconfirm/index.js +39 -0
- package/dist/Popconfirm/typings.d.ts +16 -0
- package/dist/Popconfirm/typings.js +17 -0
- package/dist/Popover/Popover.d.ts +4 -0
- package/dist/Popover/Popover.js +88 -0
- package/dist/Popover/index.d.ts +2 -0
- package/dist/Popover/index.js +39 -0
- package/dist/Popover/typings.d.ts +19 -0
- package/dist/Popover/typings.js +17 -0
- package/dist/Popper/Popper.d.ts +4 -0
- package/dist/Popper/Popper.js +161 -0
- package/dist/Popper/index.d.ts +2 -0
- package/dist/Popper/index.js +39 -0
- package/dist/Popper/popperOptions.d.ts +23 -0
- package/dist/Popper/popperOptions.js +106 -0
- package/dist/Popper/typings.d.ts +47 -0
- package/dist/Popper/typings.js +17 -0
- package/dist/Progress/Progress.d.ts +4 -0
- package/dist/Progress/Progress.js +194 -0
- package/dist/Progress/index.d.ts +2 -0
- package/dist/Progress/index.js +39 -0
- package/dist/Progress/typings.d.ts +18 -0
- package/dist/Progress/typings.js +17 -0
- package/dist/Radio/Radio.d.ts +14 -0
- package/dist/Radio/Radio.js +122 -0
- package/dist/Radio/RadioButton.d.ts +4 -0
- package/dist/Radio/RadioButton.js +122 -0
- package/dist/Radio/index.d.ts +2 -0
- package/dist/Radio/index.js +39 -0
- package/dist/Radio/typings.d.ts +17 -0
- package/dist/Radio/typings.js +17 -0
- package/dist/RadioGroup/RadioGroup.d.ts +5 -0
- package/dist/RadioGroup/RadioGroup.js +81 -0
- package/dist/RadioGroup/index.d.ts +2 -0
- package/dist/RadioGroup/index.js +39 -0
- package/dist/RadioGroup/typings.d.ts +17 -0
- package/dist/RadioGroup/typings.js +17 -0
- package/dist/Row/Row.d.ts +4 -0
- package/dist/Row/Row.js +60 -0
- package/dist/Row/RowContext.d.ts +5 -0
- package/dist/Row/RowContext.js +32 -0
- package/dist/Row/index.d.ts +3 -0
- package/dist/Row/index.js +42 -0
- package/dist/Row/typings.d.ts +7 -0
- package/dist/Row/typings.js +17 -0
- package/dist/Scrollbar/Scrollbar.d.ts +4 -0
- package/dist/Scrollbar/Scrollbar.js +162 -0
- package/dist/Scrollbar/Thumb.d.ts +4 -0
- package/dist/Scrollbar/Thumb.js +155 -0
- package/dist/Scrollbar/index.d.ts +2 -0
- package/dist/Scrollbar/index.js +39 -0
- package/dist/Scrollbar/typings.d.ts +40 -0
- package/dist/Scrollbar/typings.js +17 -0
- package/dist/Scrollbar/util.d.ts +27 -0
- package/dist/Scrollbar/util.js +61 -0
- package/dist/Select/Option.d.ts +4 -0
- package/dist/Select/Option.js +83 -0
- package/dist/Select/OptionGroup.d.ts +4 -0
- package/dist/Select/OptionGroup.js +49 -0
- package/dist/Select/Select.d.ts +16 -0
- package/dist/Select/Select.js +54 -0
- package/dist/Select/SelectContext.d.ts +11 -0
- package/dist/Select/SelectContext.js +47 -0
- package/dist/Select/SelectCore.d.ts +4 -0
- package/dist/Select/SelectCore.js +430 -0
- package/dist/Select/SelectDropdown.d.ts +4 -0
- package/dist/Select/SelectDropdown.js +194 -0
- package/dist/Select/index.d.ts +3 -0
- package/dist/Select/index.js +42 -0
- package/dist/Select/typings.d.ts +73 -0
- package/dist/Select/typings.js +17 -0
- package/dist/Skeleton/PlaceholderGraph.d.ts +11 -0
- package/dist/Skeleton/PlaceholderGraph.js +46 -0
- package/dist/Skeleton/PlaceholderGrid.d.ts +13 -0
- package/dist/Skeleton/PlaceholderGrid.js +77 -0
- package/dist/Skeleton/PlaceholderParagraph.d.ts +13 -0
- package/dist/Skeleton/PlaceholderParagraph.js +63 -0
- package/dist/Skeleton/Skeleton.d.ts +11 -0
- package/dist/Skeleton/Skeleton.js +42 -0
- package/dist/Skeleton/index.d.ts +4 -0
- package/dist/Skeleton/index.js +39 -0
- package/dist/Switch/Switch.d.ts +4 -0
- package/dist/Switch/Switch.js +167 -0
- package/dist/Switch/index.d.ts +2 -0
- package/dist/Switch/index.js +39 -0
- package/dist/Switch/typings.d.ts +25 -0
- package/dist/Switch/typings.js +17 -0
- package/dist/Table/Colgroup.d.ts +8 -0
- package/dist/Table/Colgroup.js +56 -0
- package/dist/Table/Table.d.ts +12 -0
- package/dist/Table/Table.js +189 -0
- package/dist/Table/TableBody.d.ts +6 -0
- package/dist/Table/TableBody.js +241 -0
- package/dist/Table/TableCell.d.ts +18 -0
- package/dist/Table/TableCell.js +402 -0
- package/dist/Table/TableColumn.d.ts +7 -0
- package/dist/Table/TableColumn.js +51 -0
- package/dist/Table/TableContext.d.ts +37 -0
- package/dist/Table/TableContext.js +72 -0
- package/dist/Table/TableHeader.d.ts +6 -0
- package/dist/Table/TableHeader.js +107 -0
- package/dist/Table/TableHeaderCell.d.ts +12 -0
- package/dist/Table/TableHeaderCell.js +178 -0
- package/dist/Table/hooks/useResize.d.ts +7 -0
- package/dist/Table/hooks/useResize.js +131 -0
- package/dist/Table/hooks/useScroll.d.ts +7 -0
- package/dist/Table/hooks/useScroll.js +126 -0
- package/dist/Table/hooks/useSelection.d.ts +32 -0
- package/dist/Table/hooks/useSelection.js +132 -0
- package/dist/Table/hooks/useTable.d.ts +26 -0
- package/dist/Table/hooks/useTable.js +409 -0
- package/dist/Table/index.d.ts +3 -0
- package/dist/Table/index.js +42 -0
- package/dist/Table/treeUtil.d.ts +25 -0
- package/dist/Table/treeUtil.js +117 -0
- package/dist/Table/typings.d.ts +230 -0
- package/dist/Table/typings.js +17 -0
- package/dist/Table/util.d.ts +18 -0
- package/dist/Table/util.js +177 -0
- package/dist/Tabs/TabPane.d.ts +4 -0
- package/dist/Tabs/TabPane.js +72 -0
- package/dist/Tabs/Tabs.d.ts +4 -0
- package/dist/Tabs/Tabs.js +279 -0
- package/dist/Tabs/TabsContext.d.ts +5 -0
- package/dist/Tabs/TabsContext.js +32 -0
- package/dist/Tabs/index.d.ts +3 -0
- package/dist/Tabs/index.js +42 -0
- package/dist/Tabs/typings.d.ts +54 -0
- package/dist/Tabs/typings.js +17 -0
- package/dist/Tag/Tag.d.ts +4 -0
- package/dist/Tag/Tag.js +76 -0
- package/dist/Tag/index.d.ts +2 -0
- package/dist/Tag/index.js +39 -0
- package/dist/Tag/typings.d.ts +14 -0
- package/dist/Tag/typings.js +17 -0
- package/dist/TimeLine/TimeLine.d.ts +4 -0
- package/dist/TimeLine/TimeLine.js +43 -0
- package/dist/TimeLine/TimeLineItem.d.ts +4 -0
- package/dist/TimeLine/TimeLineItem.js +55 -0
- package/dist/TimeLine/index.d.ts +3 -0
- package/dist/TimeLine/index.js +42 -0
- package/dist/TimeLine/typings.d.ts +15 -0
- package/dist/TimeLine/typings.js +17 -0
- package/dist/TimePicker/TimePicker.d.ts +11 -0
- package/dist/TimePicker/TimePicker.js +227 -0
- package/dist/TimePicker/TimePickerPanel.d.ts +4 -0
- package/dist/TimePicker/TimePickerPanel.js +75 -0
- package/dist/TimePicker/TimePickerRange.d.ts +8 -0
- package/dist/TimePicker/TimePickerRange.js +362 -0
- package/dist/TimePicker/TimeRangePanel.d.ts +4 -0
- package/dist/TimePicker/TimeRangePanel.js +173 -0
- package/dist/TimePicker/TimeSpinnerPanel.d.ts +4 -0
- package/dist/TimePicker/TimeSpinnerPanel.js +277 -0
- package/dist/TimePicker/index.d.ts +3 -0
- package/dist/TimePicker/index.js +42 -0
- package/dist/TimePicker/typings.d.ts +81 -0
- package/dist/TimePicker/typings.js +17 -0
- package/dist/TimePicker/useTimePicker.d.ts +11 -0
- package/dist/TimePicker/useTimePicker.js +86 -0
- package/dist/TimePicker/util.d.ts +3 -0
- package/dist/TimePicker/util.js +45 -0
- package/dist/Tooltip/Tooltip.d.ts +4 -0
- package/dist/Tooltip/Tooltip.js +214 -0
- package/dist/Tooltip/TooltipContext.d.ts +8 -0
- package/dist/Tooltip/TooltipContext.js +46 -0
- package/dist/Tooltip/index.d.ts +4 -0
- package/dist/Tooltip/index.js +42 -0
- package/dist/Tooltip/typings.d.ts +31 -0
- package/dist/Tooltip/typings.js +17 -0
- package/dist/Transfer/List.d.ts +6 -0
- package/dist/Transfer/List.js +260 -0
- package/dist/Transfer/ListBody.d.ts +6 -0
- package/dist/Transfer/ListBody.js +130 -0
- package/dist/Transfer/ListItem.d.ts +15 -0
- package/dist/Transfer/ListItem.js +54 -0
- package/dist/Transfer/Transfer.d.ts +5 -0
- package/dist/Transfer/Transfer.js +303 -0
- package/dist/Transfer/index.d.ts +2 -0
- package/dist/Transfer/index.js +39 -0
- package/dist/Transfer/interface.d.ts +6 -0
- package/dist/Transfer/interface.js +17 -0
- package/dist/Transfer/operation.d.ts +15 -0
- package/dist/Transfer/operation.js +49 -0
- package/dist/Transfer/search.d.ts +10 -0
- package/dist/Transfer/search.js +63 -0
- package/dist/Transfer/typings/index.d.ts +70 -0
- package/dist/Transfer/typings/index.js +17 -0
- package/dist/Transfer/typings/list.d.ts +39 -0
- package/dist/Transfer/typings/list.js +17 -0
- package/dist/Transfer/typings/listBody.d.ts +17 -0
- package/dist/Transfer/typings/listBody.js +30 -0
- package/dist/Transition/Transition.d.ts +57 -0
- package/dist/Transition/Transition.js +266 -0
- package/dist/Transition/TransitionGroup.d.ts +38 -0
- package/dist/Transition/TransitionGroup.js +99 -0
- package/dist/Transition/TransitionGroupContext.d.ts +3 -0
- package/dist/Transition/TransitionGroupContext.js +26 -0
- package/dist/Transition/childMapping.d.ts +5 -0
- package/dist/Transition/childMapping.js +128 -0
- package/dist/Transition/index.d.ts +4 -0
- package/dist/Transition/index.js +42 -0
- package/dist/Transition/util.d.ts +2 -0
- package/dist/Transition/util.js +48 -0
- package/dist/Tree/DirectoryTree.d.ts +22 -0
- package/dist/Tree/DirectoryTree.js +204 -0
- package/dist/Tree/DropIndicator.d.ts +6 -0
- package/dist/Tree/DropIndicator.js +59 -0
- package/dist/Tree/Indent.d.ts +9 -0
- package/dist/Tree/Indent.js +56 -0
- package/dist/Tree/MotionTreeNode.d.ts +15 -0
- package/dist/Tree/MotionTreeNode.js +109 -0
- package/dist/Tree/NodeList.d.ts +43 -0
- package/dist/Tree/NodeList.js +285 -0
- package/dist/Tree/RCTree.d.ts +231 -0
- package/dist/Tree/RCTree.js +938 -0
- package/dist/Tree/Tree.d.ts +126 -0
- package/dist/Tree/Tree.js +105 -0
- package/dist/Tree/TreeNode.d.ts +83 -0
- package/dist/Tree/TreeNode.js +477 -0
- package/dist/Tree/contextTypes.d.ts +59 -0
- package/dist/Tree/contextTypes.js +30 -0
- package/dist/Tree/index.d.ts +9 -0
- package/dist/Tree/index.js +48 -0
- package/dist/Tree/typings.d.ts +78 -0
- package/dist/Tree/typings.js +29 -0
- package/dist/Tree/util.d.ts +38 -0
- package/dist/Tree/util.js +312 -0
- package/dist/Tree/utils/KeyCode.d.ts +110 -0
- package/dist/Tree/utils/KeyCode.js +550 -0
- package/dist/Tree/utils/conductUtil.d.ts +11 -0
- package/dist/Tree/utils/conductUtil.js +189 -0
- package/dist/Tree/utils/dictUtil.d.ts +8 -0
- package/dist/Tree/utils/dictUtil.js +86 -0
- package/dist/Tree/utils/diffUtil.d.ts +6 -0
- package/dist/Tree/utils/diffUtil.js +65 -0
- package/dist/Tree/utils/dropIndicator.d.ts +11 -0
- package/dist/Tree/utils/dropIndicator.js +64 -0
- package/dist/Tree/utils/iconUtil.d.ts +5 -0
- package/dist/Tree/utils/iconUtil.js +69 -0
- package/dist/Tree/utils/motion.d.ts +10 -0
- package/dist/Tree/utils/motion.js +91 -0
- package/dist/Tree/utils/pickAttrs.d.ts +6 -0
- package/dist/Tree/utils/pickAttrs.js +79 -0
- package/dist/Tree/utils/treeUtil.d.ts +64 -0
- package/dist/Tree/utils/treeUtil.js +283 -0
- package/dist/TreeSelect/TreeSelect.d.ts +12 -0
- package/dist/TreeSelect/TreeSelect.js +521 -0
- package/dist/TreeSelect/Utils.d.ts +2 -0
- package/dist/TreeSelect/Utils.js +41 -0
- package/dist/TreeSelect/index.d.ts +2 -0
- package/dist/TreeSelect/index.js +39 -0
- package/dist/TreeSelect/typings.d.ts +46 -0
- package/dist/TreeSelect/typings.js +17 -0
- package/dist/Upload/Upload.d.ts +4 -0
- package/dist/Upload/Upload.js +109 -0
- package/dist/Upload/UploadContent.d.ts +4 -0
- package/dist/Upload/UploadContent.js +211 -0
- package/dist/Upload/UploadContext.d.ts +6 -0
- package/dist/Upload/UploadContext.js +33 -0
- package/dist/Upload/UploadDrag.d.ts +8 -0
- package/dist/Upload/UploadDrag.js +100 -0
- package/dist/Upload/UploadList.d.ts +4 -0
- package/dist/Upload/UploadList.js +76 -0
- package/dist/Upload/ajax.d.ts +4 -0
- package/dist/Upload/ajax.js +115 -0
- package/dist/Upload/index.d.ts +2 -0
- package/dist/Upload/index.js +39 -0
- package/dist/Upload/typings.d.ts +110 -0
- package/dist/Upload/typings.js +37 -0
- package/dist/Upload/use-handlers.d.ts +16 -0
- package/dist/Upload/use-handlers.js +191 -0
- package/dist/Util/Math.d.ts +5 -0
- package/dist/Util/Math.js +155 -0
- package/dist/Util/PopupManager.d.ts +5 -0
- package/dist/Util/PopupManager.js +29 -0
- package/dist/Util/base.d.ts +19 -0
- package/dist/Util/base.js +221 -0
- package/dist/Util/genFileId.d.ts +1 -0
- package/dist/Util/genFileId.js +30 -0
- package/dist/Util/index.d.ts +6 -0
- package/dist/Util/index.js +51 -0
- package/dist/Util/resize-event.d.ts +9 -0
- package/dist/Util/resize-event.js +72 -0
- package/dist/Util/shallowEqual.d.ts +2 -0
- package/dist/Util/shallowEqual.js +51 -0
- package/dist/Util/treeUtils.d.ts +7 -0
- package/dist/Util/treeUtils.js +71 -0
- package/dist/VirtualList/Filler.d.ts +11 -0
- package/dist/VirtualList/Filler.js +78 -0
- package/dist/VirtualList/Item.d.ts +7 -0
- package/dist/VirtualList/Item.js +37 -0
- package/dist/VirtualList/ScrollBar.d.ts +43 -0
- package/dist/VirtualList/ScrollBar.js +216 -0
- package/dist/VirtualList/VirtualList.d.ts +33 -0
- package/dist/VirtualList/VirtualList.js +280 -0
- package/dist/VirtualList/hooks/useChildren.d.ts +3 -0
- package/dist/VirtualList/hooks/useChildren.js +46 -0
- package/dist/VirtualList/hooks/useDiffItem.d.ts +2 -0
- package/dist/VirtualList/hooks/useDiffItem.js +39 -0
- package/dist/VirtualList/hooks/useFrameWheel.d.ts +6 -0
- package/dist/VirtualList/hooks/useFrameWheel.js +72 -0
- package/dist/VirtualList/hooks/useHeights.d.ts +3 -0
- package/dist/VirtualList/hooks/useHeights.js +83 -0
- package/dist/VirtualList/hooks/useLayoutEffect.d.ts +3 -0
- package/dist/VirtualList/hooks/useLayoutEffect.js +30 -0
- package/dist/VirtualList/hooks/useMobileTouchMove.d.ts +2 -0
- package/dist/VirtualList/hooks/useMobileTouchMove.js +92 -0
- package/dist/VirtualList/hooks/useOriginScroll.d.ts +2 -0
- package/dist/VirtualList/hooks/useOriginScroll.js +56 -0
- package/dist/VirtualList/hooks/useScrollTo.d.ts +5 -0
- package/dist/VirtualList/hooks/useScrollTo.js +111 -0
- package/dist/VirtualList/index.d.ts +2 -0
- package/dist/VirtualList/index.js +39 -0
- package/dist/VirtualList/interface.d.ts +8 -0
- package/dist/VirtualList/interface.js +17 -0
- package/dist/VirtualList/mock.d.ts +6 -0
- package/dist/VirtualList/mock.js +29 -0
- package/dist/VirtualList/utils/CacheMap.d.ts +7 -0
- package/dist/VirtualList/utils/CacheMap.js +36 -0
- package/dist/VirtualList/utils/algorithmUtil.d.ts +6 -0
- package/dist/VirtualList/utils/algorithmUtil.js +81 -0
- package/dist/VirtualList/utils/findDOMNode.d.ts +2 -0
- package/dist/VirtualList/utils/findDOMNode.js +30 -0
- package/dist/VirtualList/utils/isFirefox.d.ts +2 -0
- package/dist/VirtualList/utils/isFirefox.js +26 -0
- package/dist/VirtualList/utils/raf.d.ts +5 -0
- package/dist/VirtualList/utils/raf.js +57 -0
- package/dist/config/Constants.d.ts +18 -0
- package/dist/config/Constants.js +52 -0
- package/dist/hooks/animationPropsUtils.d.ts +3 -0
- package/dist/hooks/animationPropsUtils.js +53 -0
- package/dist/hooks/htmlPropsUtils.d.ts +5 -0
- package/dist/hooks/htmlPropsUtils.js +125 -0
- package/dist/hooks/index.d.ts +13 -0
- package/dist/hooks/index.js +74 -0
- package/dist/hooks/popperPropsUtils.d.ts +3 -0
- package/dist/hooks/popperPropsUtils.js +71 -0
- package/dist/hooks/prefix.d.ts +8 -0
- package/dist/hooks/prefix.js +62 -0
- package/dist/hooks/treePropsUtils.d.ts +3 -0
- package/dist/hooks/treePropsUtils.js +107 -0
- package/dist/hooks/useChildrenInstance.d.ts +4 -0
- package/dist/hooks/useChildrenInstance.js +66 -0
- package/dist/hooks/useClassNames.d.ts +29 -0
- package/dist/hooks/useClassNames.js +210 -0
- package/dist/hooks/useClickOutside.d.ts +9 -0
- package/dist/hooks/useClickOutside.js +112 -0
- package/dist/hooks/useCommonProps.d.ts +3 -0
- package/dist/hooks/useCommonProps.js +54 -0
- package/dist/hooks/useComponentWillMount.d.ts +2 -0
- package/dist/hooks/useComponentWillMount.js +33 -0
- package/dist/hooks/useControlled.d.ts +2 -0
- package/dist/hooks/useControlled.js +41 -0
- package/dist/hooks/useForceUpdate.d.ts +3 -0
- package/dist/hooks/useForceUpdate.js +39 -0
- package/dist/hooks/useUpdateEffect.d.ts +3 -0
- package/dist/hooks/useUpdateEffect.js +36 -0
- package/dist/index.css +58071 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.js +235 -0
- package/dist/theme-chalk/badge/index.scss +63 -0
- package/dist/theme-chalk/bak/common/popup.scss +47 -0
- package/dist/theme-chalk/bak/common/transition.scss +118 -0
- package/dist/theme-chalk/bak/common/var.scss +1476 -0
- package/dist/theme-chalk/bak/mixins/_button.scss +224 -0
- package/dist/theme-chalk/bak/mixins/_col.scss +38 -0
- package/dist/theme-chalk/bak/mixins/_var.scss +55 -0
- package/dist/theme-chalk/bak/mixins/config.scss +5 -0
- package/dist/theme-chalk/bak/mixins/function.scss +85 -0
- package/dist/theme-chalk/bak/mixins/mixins.scss +215 -0
- package/dist/theme-chalk/bak/mixins/utils.scss +39 -0
- package/dist/theme-chalk/breadcrumb/index.scss +65 -0
- package/dist/theme-chalk/button/_mixins.scss +317 -0
- package/dist/theme-chalk/button/button-group.scss +83 -0
- package/dist/theme-chalk/button/button.scss +382 -0
- package/dist/theme-chalk/button/index.scss +2 -0
- package/dist/theme-chalk/calendar/date-picker.scss +112 -0
- package/dist/theme-chalk/calendar/date-range-picker.scss +139 -0
- package/dist/theme-chalk/calendar/date-table.scss +156 -0
- package/dist/theme-chalk/calendar/index.scss +6 -0
- package/dist/theme-chalk/calendar/month-table.scss +92 -0
- package/dist/theme-chalk/calendar/picker-panel.scss +136 -0
- package/dist/theme-chalk/calendar/year-table.scss +107 -0
- package/dist/theme-chalk/card/index.scss +44 -0
- package/dist/theme-chalk/cascader/cascader-panel.scss +184 -0
- package/dist/theme-chalk/cascader/cascader.scss +239 -0
- package/dist/theme-chalk/cascader/index.scss +2 -0
- package/dist/theme-chalk/checkbox/index.scss +255 -0
- package/dist/theme-chalk/checkbox-button/index.scss +117 -0
- package/dist/theme-chalk/checkbox-group/index.scss +33 -0
- package/dist/theme-chalk/col/_mixins.scss +62 -0
- package/dist/theme-chalk/col/index.scss +50 -0
- package/dist/theme-chalk/collapse/index.scss +84 -0
- package/dist/theme-chalk/color-picker/index.scss +340 -0
- package/dist/theme-chalk/common/_var.scss +5 -0
- package/dist/theme-chalk/common/index.d.ts +1 -0
- package/dist/theme-chalk/common/index.js +2 -0
- package/dist/theme-chalk/common/index.scss +222 -0
- package/dist/theme-chalk/date-picker/index.scss +253 -0
- package/dist/theme-chalk/date-time-picker/index.scss +3 -0
- package/dist/theme-chalk/date-time-picker/time-picker.scss +83 -0
- package/dist/theme-chalk/date-time-picker/time-range-picker.scss +32 -0
- package/dist/theme-chalk/descriptions/descriptions-item.scss +66 -0
- package/dist/theme-chalk/descriptions/descriptions.scss +160 -0
- package/dist/theme-chalk/descriptions/index.scss +2 -0
- package/dist/theme-chalk/dialog/index.scss +190 -0
- package/dist/theme-chalk/divider/index.scss +51 -0
- package/dist/theme-chalk/drawer/index.scss +250 -0
- package/dist/theme-chalk/dropdown/index.scss +147 -0
- package/dist/theme-chalk/empty/index.scss +69 -0
- package/dist/theme-chalk/form/index.scss +359 -0
- package/dist/theme-chalk/icon/index.scss +53 -0
- package/dist/theme-chalk/icon/scss/_animated.scss +205 -0
- package/dist/theme-chalk/icon/scss/_bordered-pulled.scss +20 -0
- package/dist/theme-chalk/icon/scss/_core.scss +33 -0
- package/dist/theme-chalk/icon/scss/_duotone-icons.scss +12 -0
- package/dist/theme-chalk/icon/scss/_fixed-width.scss +7 -0
- package/dist/theme-chalk/icon/scss/_functions.scss +57 -0
- package/dist/theme-chalk/icon/scss/_icons.scss +11 -0
- package/dist/theme-chalk/icon/scss/_list.scss +20 -0
- package/dist/theme-chalk/icon/scss/_mixins.scss +102 -0
- package/dist/theme-chalk/icon/scss/_rotated-flipped.scss +31 -0
- package/dist/theme-chalk/icon/scss/_screen-reader.scss +14 -0
- package/dist/theme-chalk/icon/scss/_shims.scss +2606 -0
- package/dist/theme-chalk/icon/scss/_sizing.scss +16 -0
- package/dist/theme-chalk/icon/scss/_stacked.scss +32 -0
- package/dist/theme-chalk/icon/scss/_variables.scss +9191 -0
- package/dist/theme-chalk/icon/scss/brands.scss +32 -0
- package/dist/theme-chalk/icon/scss/duotone.scss +77 -0
- package/dist/theme-chalk/icon/scss/fontawesome.scss +21 -0
- package/dist/theme-chalk/icon/scss/index.scss +15 -0
- package/dist/theme-chalk/icon/scss/light.scss +26 -0
- package/dist/theme-chalk/icon/scss/regular.scss +26 -0
- package/dist/theme-chalk/icon/scss/solid.scss +26 -0
- package/dist/theme-chalk/icon/scss/thin.scss +26 -0
- package/dist/theme-chalk/icon/scss/v4-shims.scss +11 -0
- package/dist/theme-chalk/index.scss +64 -0
- package/dist/theme-chalk/input/_mixins.scss +16 -0
- package/dist/theme-chalk/input/index.scss +3 -0
- package/dist/theme-chalk/input/input-range.scss +208 -0
- package/dist/theme-chalk/input/input.scss +575 -0
- package/dist/theme-chalk/input-number/index.scss +172 -0
- package/dist/theme-chalk/link/index.scss +184 -0
- package/dist/theme-chalk/loading/index.scss +96 -0
- package/dist/theme-chalk/message/index.scss +169 -0
- package/dist/theme-chalk/message-box/index.scss +184 -0
- package/dist/theme-chalk/notification/index.scss +155 -0
- package/dist/theme-chalk/pagination/index.scss +515 -0
- package/dist/theme-chalk/placeholder/index.scss +135 -0
- package/dist/theme-chalk/popconfirm/index.scss +35 -0
- package/dist/theme-chalk/popover/index.scss +54 -0
- package/dist/theme-chalk/popper/index.scss +86 -0
- package/dist/theme-chalk/progress/index.scss +155 -0
- package/dist/theme-chalk/radio/index.scss +2 -0
- package/dist/theme-chalk/radio/radio-button.scss +128 -0
- package/dist/theme-chalk/radio/radio.scss +171 -0
- package/dist/theme-chalk/radio-group/index.scss +31 -0
- package/dist/theme-chalk/row/index.scss +30 -0
- package/dist/theme-chalk/scrollbar/index.scss +103 -0
- package/dist/theme-chalk/select/index.scss +244 -0
- package/dist/theme-chalk/select/option-group.scss +54 -0
- package/dist/theme-chalk/select/option.scss +63 -0
- package/dist/theme-chalk/select/select-dropdown.scss +57 -0
- package/dist/theme-chalk/switch/index.scss +273 -0
- package/dist/theme-chalk/table/index.scss +714 -0
- package/dist/theme-chalk/tabs/index.scss +620 -0
- package/dist/theme-chalk/tag/index.scss +360 -0
- package/dist/theme-chalk/time-line/_timeline-item.scss +90 -0
- package/dist/theme-chalk/time-line/_timeline.scss +50 -0
- package/dist/theme-chalk/time-line/index.scss +2 -0
- package/dist/theme-chalk/time-picker/index.scss +109 -0
- package/dist/theme-chalk/tooltip/index.scss +13 -0
- package/dist/theme-chalk/transfer/index.scss +247 -0
- package/dist/theme-chalk/transition/index.scss +756 -0
- package/dist/theme-chalk/tree/_directory.scss +73 -0
- package/dist/theme-chalk/tree/_tree.scss +401 -0
- package/dist/theme-chalk/tree/index.scss +2 -0
- package/dist/theme-chalk/tree-select/index.scss +25 -0
- package/dist/theme-chalk/upload/index.scss +631 -0
- package/dist/types/common.d.ts +51 -0
- package/dist/types/common.js +17 -0
- package/dist/types/type.d.ts +4 -0
- package/dist/types/type.js +32 -0
- package/package.json +58 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/Tree/utils/conductUtil.ts
|
|
20
|
+
var conductUtil_exports = {};
|
|
21
|
+
__export(conductUtil_exports, {
|
|
22
|
+
conductCheck: () => conductCheck,
|
|
23
|
+
isCheckDisabled: () => isCheckDisabled
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(conductUtil_exports);
|
|
26
|
+
var import_Util = require("../../Util");
|
|
27
|
+
function removeFromCheckedKeys(halfCheckedKeys, checkedKeys) {
|
|
28
|
+
const filteredKeys = /* @__PURE__ */ new Set();
|
|
29
|
+
halfCheckedKeys.forEach((key) => {
|
|
30
|
+
if (!checkedKeys.has(key)) {
|
|
31
|
+
filteredKeys.add(key);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
return filteredKeys;
|
|
35
|
+
}
|
|
36
|
+
function isCheckDisabled(node) {
|
|
37
|
+
const { disabled, disableCheckbox, checkable } = node || {};
|
|
38
|
+
return !!(disabled || disableCheckbox) || checkable === false;
|
|
39
|
+
}
|
|
40
|
+
function fillConductCheck(keys, levelEntities, maxLevel, syntheticGetCheckDisabled) {
|
|
41
|
+
const checkedKeys = new Set(keys);
|
|
42
|
+
const halfCheckedKeys = /* @__PURE__ */ new Set();
|
|
43
|
+
for (let level = 0; level <= maxLevel; level += 1) {
|
|
44
|
+
const entities = levelEntities.get(level) || /* @__PURE__ */ new Set();
|
|
45
|
+
entities.forEach((entity) => {
|
|
46
|
+
const { key, node, children = [] } = entity;
|
|
47
|
+
if (checkedKeys.has(key) && !syntheticGetCheckDisabled(node)) {
|
|
48
|
+
children.filter((childEntity) => !syntheticGetCheckDisabled(childEntity.node)).forEach((childEntity) => {
|
|
49
|
+
checkedKeys.add(childEntity.key);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const visitedKeys = /* @__PURE__ */ new Set();
|
|
55
|
+
for (let level = maxLevel; level >= 0; level -= 1) {
|
|
56
|
+
const entities = levelEntities.get(level) || /* @__PURE__ */ new Set();
|
|
57
|
+
entities.forEach((entity) => {
|
|
58
|
+
const { parent, node } = entity;
|
|
59
|
+
if (syntheticGetCheckDisabled(node) || !entity.parent || visitedKeys.has(entity.parent.key)) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (syntheticGetCheckDisabled(entity.parent.node)) {
|
|
63
|
+
visitedKeys.add(parent.key);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
let allChecked = true;
|
|
67
|
+
let partialChecked = false;
|
|
68
|
+
(parent.children || []).filter((childEntity) => !syntheticGetCheckDisabled(childEntity.node)).forEach(({ key }) => {
|
|
69
|
+
const checked = checkedKeys.has(key);
|
|
70
|
+
if (allChecked && !checked) {
|
|
71
|
+
allChecked = false;
|
|
72
|
+
}
|
|
73
|
+
if (!partialChecked && (checked || halfCheckedKeys.has(key))) {
|
|
74
|
+
partialChecked = true;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
if (allChecked) {
|
|
78
|
+
checkedKeys.add(parent.key);
|
|
79
|
+
}
|
|
80
|
+
if (partialChecked) {
|
|
81
|
+
halfCheckedKeys.add(parent.key);
|
|
82
|
+
}
|
|
83
|
+
visitedKeys.add(parent.key);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
checkedKeys: Array.from(checkedKeys),
|
|
88
|
+
halfCheckedKeys: Array.from(removeFromCheckedKeys(halfCheckedKeys, checkedKeys))
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function cleanConductCheck(keys, halfKeys, levelEntities, maxLevel, syntheticGetCheckDisabled) {
|
|
92
|
+
const checkedKeys = new Set(keys);
|
|
93
|
+
let halfCheckedKeys = new Set(halfKeys);
|
|
94
|
+
for (let level = 0; level <= maxLevel; level += 1) {
|
|
95
|
+
const entities = levelEntities.get(level) || /* @__PURE__ */ new Set();
|
|
96
|
+
entities.forEach((entity) => {
|
|
97
|
+
const { key, node, children = [] } = entity;
|
|
98
|
+
if (!checkedKeys.has(key) && !halfCheckedKeys.has(key) && !syntheticGetCheckDisabled(node)) {
|
|
99
|
+
children.filter((childEntity) => !syntheticGetCheckDisabled(childEntity.node)).forEach((childEntity) => {
|
|
100
|
+
checkedKeys.delete(childEntity.key);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
halfCheckedKeys = /* @__PURE__ */ new Set();
|
|
106
|
+
const visitedKeys = /* @__PURE__ */ new Set();
|
|
107
|
+
for (let level = maxLevel; level >= 0; level -= 1) {
|
|
108
|
+
const entities = levelEntities.get(level) || /* @__PURE__ */ new Set();
|
|
109
|
+
entities.forEach((entity) => {
|
|
110
|
+
const { parent, node } = entity;
|
|
111
|
+
if (syntheticGetCheckDisabled(node) || !entity.parent || visitedKeys.has(entity.parent.key)) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (syntheticGetCheckDisabled(entity.parent.node)) {
|
|
115
|
+
visitedKeys.add(parent.key);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
let allChecked = true;
|
|
119
|
+
let partialChecked = false;
|
|
120
|
+
(parent.children || []).filter((childEntity) => !syntheticGetCheckDisabled(childEntity.node)).forEach(({ key }) => {
|
|
121
|
+
const checked = checkedKeys.has(key);
|
|
122
|
+
if (allChecked && !checked) {
|
|
123
|
+
allChecked = false;
|
|
124
|
+
}
|
|
125
|
+
if (!partialChecked && (checked || halfCheckedKeys.has(key))) {
|
|
126
|
+
partialChecked = true;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
if (!allChecked) {
|
|
130
|
+
checkedKeys.delete(parent.key);
|
|
131
|
+
}
|
|
132
|
+
if (partialChecked) {
|
|
133
|
+
halfCheckedKeys.add(parent.key);
|
|
134
|
+
}
|
|
135
|
+
visitedKeys.add(parent.key);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
checkedKeys: Array.from(checkedKeys),
|
|
140
|
+
halfCheckedKeys: Array.from(removeFromCheckedKeys(halfCheckedKeys, checkedKeys))
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function conductCheck(keyList, checked, keyEntities, getCheckDisabled) {
|
|
144
|
+
const warningMissKeys = [];
|
|
145
|
+
let syntheticGetCheckDisabled;
|
|
146
|
+
if (getCheckDisabled) {
|
|
147
|
+
syntheticGetCheckDisabled = getCheckDisabled;
|
|
148
|
+
} else {
|
|
149
|
+
syntheticGetCheckDisabled = isCheckDisabled;
|
|
150
|
+
}
|
|
151
|
+
const keys = new Set(
|
|
152
|
+
keyList.filter((key) => {
|
|
153
|
+
const hasEntity = !!keyEntities[key];
|
|
154
|
+
if (!hasEntity) {
|
|
155
|
+
warningMissKeys.push(key);
|
|
156
|
+
}
|
|
157
|
+
return hasEntity;
|
|
158
|
+
})
|
|
159
|
+
);
|
|
160
|
+
const levelEntities = /* @__PURE__ */ new Map();
|
|
161
|
+
let maxLevel = 0;
|
|
162
|
+
Object.keys(keyEntities).forEach((key) => {
|
|
163
|
+
const entity = keyEntities[key];
|
|
164
|
+
const { level } = entity;
|
|
165
|
+
let levelSet = levelEntities.get(level);
|
|
166
|
+
if (!levelSet) {
|
|
167
|
+
levelSet = /* @__PURE__ */ new Set();
|
|
168
|
+
levelEntities.set(level, levelSet);
|
|
169
|
+
}
|
|
170
|
+
levelSet.add(entity);
|
|
171
|
+
maxLevel = Math.max(maxLevel, level);
|
|
172
|
+
});
|
|
173
|
+
(0, import_Util.warning)(
|
|
174
|
+
!warningMissKeys.length,
|
|
175
|
+
`Tree missing follow keys: ${warningMissKeys.slice(0, 100).map((key) => `'${key}'`).join(", ")}`
|
|
176
|
+
);
|
|
177
|
+
let result;
|
|
178
|
+
if (checked === true) {
|
|
179
|
+
result = fillConductCheck(keys, levelEntities, maxLevel, syntheticGetCheckDisabled);
|
|
180
|
+
} else {
|
|
181
|
+
result = cleanConductCheck(keys, checked.halfCheckedKeys, levelEntities, maxLevel, syntheticGetCheckDisabled);
|
|
182
|
+
}
|
|
183
|
+
return result;
|
|
184
|
+
}
|
|
185
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
186
|
+
0 && (module.exports = {
|
|
187
|
+
conductCheck,
|
|
188
|
+
isCheckDisabled
|
|
189
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataNode, Key } from '../typings';
|
|
2
|
+
export declare function calcRangeKeys<T = DataNode>({ treeData, expandedKeys, startKey, endKey }: {
|
|
3
|
+
treeData: T[];
|
|
4
|
+
expandedKeys: Key[];
|
|
5
|
+
startKey?: Key;
|
|
6
|
+
endKey?: Key;
|
|
7
|
+
}): Key[];
|
|
8
|
+
export declare function convertDirectoryKeysToNodes<T = DataNode>(treeData: T[], keys: Key[]): T[];
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/Tree/utils/dictUtil.ts
|
|
20
|
+
var dictUtil_exports = {};
|
|
21
|
+
__export(dictUtil_exports, {
|
|
22
|
+
calcRangeKeys: () => calcRangeKeys,
|
|
23
|
+
convertDirectoryKeysToNodes: () => convertDirectoryKeysToNodes
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(dictUtil_exports);
|
|
26
|
+
function traverseNodesKey(treeData, callback) {
|
|
27
|
+
function processNode(dataNode) {
|
|
28
|
+
const { key, children } = dataNode;
|
|
29
|
+
if (callback(key, dataNode) !== false) {
|
|
30
|
+
traverseNodesKey(children || [], callback);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
treeData.forEach(processNode);
|
|
34
|
+
}
|
|
35
|
+
function calcRangeKeys({ treeData, expandedKeys, startKey, endKey }) {
|
|
36
|
+
const keys = [];
|
|
37
|
+
let record = 0 /* None */;
|
|
38
|
+
if (startKey && startKey === endKey) {
|
|
39
|
+
return [startKey];
|
|
40
|
+
}
|
|
41
|
+
if (!startKey || !endKey) {
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
function matchKey(key) {
|
|
45
|
+
return key === startKey || key === endKey;
|
|
46
|
+
}
|
|
47
|
+
traverseNodesKey(treeData, (key) => {
|
|
48
|
+
if (record === 2 /* End */) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
if (matchKey(key)) {
|
|
52
|
+
keys.push(key);
|
|
53
|
+
if (record === 0 /* None */) {
|
|
54
|
+
record = 1 /* Start */;
|
|
55
|
+
} else if (record === 1 /* Start */) {
|
|
56
|
+
record = 2 /* End */;
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
} else if (record === 1 /* Start */) {
|
|
60
|
+
keys.push(key);
|
|
61
|
+
}
|
|
62
|
+
if (expandedKeys.indexOf(key) === -1) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
return true;
|
|
66
|
+
});
|
|
67
|
+
return keys;
|
|
68
|
+
}
|
|
69
|
+
function convertDirectoryKeysToNodes(treeData, keys) {
|
|
70
|
+
const restKeys = [...keys];
|
|
71
|
+
const nodes = [];
|
|
72
|
+
traverseNodesKey(treeData, (key, node) => {
|
|
73
|
+
const index = restKeys.indexOf(key);
|
|
74
|
+
if (index !== -1) {
|
|
75
|
+
nodes.push(node);
|
|
76
|
+
restKeys.splice(index, 1);
|
|
77
|
+
}
|
|
78
|
+
return !!restKeys.length;
|
|
79
|
+
});
|
|
80
|
+
return nodes;
|
|
81
|
+
}
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
calcRangeKeys,
|
|
85
|
+
convertDirectoryKeysToNodes
|
|
86
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/Tree/utils/diffUtil.ts
|
|
20
|
+
var diffUtil_exports = {};
|
|
21
|
+
__export(diffUtil_exports, {
|
|
22
|
+
findExpandedKeys: () => findExpandedKeys,
|
|
23
|
+
getExpandRange: () => getExpandRange
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(diffUtil_exports);
|
|
26
|
+
function findExpandedKeys(prev = [], next = []) {
|
|
27
|
+
const prevLen = prev.length;
|
|
28
|
+
const nextLen = next.length;
|
|
29
|
+
if (Math.abs(prevLen - nextLen) !== 1) {
|
|
30
|
+
return { add: false, key: null };
|
|
31
|
+
}
|
|
32
|
+
function find(shorter, longer) {
|
|
33
|
+
const cache = /* @__PURE__ */ new Map();
|
|
34
|
+
shorter.forEach((key) => {
|
|
35
|
+
cache.set(key, true);
|
|
36
|
+
});
|
|
37
|
+
const keys = longer.filter((key) => !cache.has(key));
|
|
38
|
+
return keys.length === 1 ? keys[0] : null;
|
|
39
|
+
}
|
|
40
|
+
if (prevLen < nextLen) {
|
|
41
|
+
return {
|
|
42
|
+
add: true,
|
|
43
|
+
key: find(prev, next)
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
add: false,
|
|
48
|
+
key: find(next, prev)
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function getExpandRange(shorter, longer, key) {
|
|
52
|
+
const shorterStartIndex = shorter.findIndex((data) => data.key === key);
|
|
53
|
+
const shorterEndNode = shorter[shorterStartIndex + 1];
|
|
54
|
+
const longerStartIndex = longer.findIndex((data) => data.key === key);
|
|
55
|
+
if (shorterEndNode) {
|
|
56
|
+
const longerEndIndex = longer.findIndex((data) => data.key === shorterEndNode.key);
|
|
57
|
+
return longer.slice(longerStartIndex + 1, longerEndIndex);
|
|
58
|
+
}
|
|
59
|
+
return longer.slice(longerStartIndex + 1);
|
|
60
|
+
}
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
findExpandedKeys,
|
|
64
|
+
getExpandRange
|
|
65
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const offset = 4;
|
|
3
|
+
interface Props {
|
|
4
|
+
dropPosition: -1 | 0 | 1;
|
|
5
|
+
dropLevelOffset: number;
|
|
6
|
+
indent: number;
|
|
7
|
+
prefixCls: string;
|
|
8
|
+
direction: 'ltr' | 'rtl';
|
|
9
|
+
}
|
|
10
|
+
declare const DropIndicatorRender: (props: Props) => React.JSX.Element;
|
|
11
|
+
export default DropIndicatorRender;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/Tree/utils/dropIndicator.tsx
|
|
30
|
+
var dropIndicator_exports = {};
|
|
31
|
+
__export(dropIndicator_exports, {
|
|
32
|
+
default: () => dropIndicator_default,
|
|
33
|
+
offset: () => offset
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(dropIndicator_exports);
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var offset = 4;
|
|
38
|
+
var DropIndicatorRender = (props) => {
|
|
39
|
+
const { dropPosition, dropLevelOffset, prefixCls, indent, direction = "ltr" } = props;
|
|
40
|
+
const startPosition = direction === "ltr" ? "left" : "right";
|
|
41
|
+
const endPosition = direction === "ltr" ? "right" : "left";
|
|
42
|
+
const style = {
|
|
43
|
+
[startPosition]: -dropLevelOffset * indent + offset,
|
|
44
|
+
[endPosition]: 0
|
|
45
|
+
};
|
|
46
|
+
switch (dropPosition) {
|
|
47
|
+
case -1:
|
|
48
|
+
style.top = -3;
|
|
49
|
+
break;
|
|
50
|
+
case 1:
|
|
51
|
+
style.bottom = -3;
|
|
52
|
+
break;
|
|
53
|
+
default:
|
|
54
|
+
style.bottom = -3;
|
|
55
|
+
style[startPosition] = indent + offset;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style, className: `${prefixCls}-drop-indicator` });
|
|
59
|
+
};
|
|
60
|
+
var dropIndicator_default = DropIndicatorRender;
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
offset
|
|
64
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AntTreeNodeProps } from '../Tree';
|
|
3
|
+
export default function renderSwitcherIcon(prefixCls: string, switcherIcon: React.ReactElement | null | undefined, showLine: boolean | {
|
|
4
|
+
showLeafIcon: boolean;
|
|
5
|
+
} | undefined, { isLeaf, expanded, loading }: AntTreeNodeProps): React.JSX.Element;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/Tree/utils/iconUtil.tsx
|
|
30
|
+
var iconUtil_exports = {};
|
|
31
|
+
__export(iconUtil_exports, {
|
|
32
|
+
default: () => renderSwitcherIcon
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(iconUtil_exports);
|
|
35
|
+
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_Icon = require("../../Icon");
|
|
38
|
+
function renderSwitcherIcon(prefixCls, switcherIcon, showLine, { isLeaf, expanded, loading }) {
|
|
39
|
+
if (loading) {
|
|
40
|
+
return /* @__PURE__ */ import_react.default.createElement(import_Icon.Icon, { prefix: "fal", name: "loader", spin: true, className: `${prefixCls}-switcher-loading-icon` });
|
|
41
|
+
}
|
|
42
|
+
let showLeafIcon;
|
|
43
|
+
if (showLine && typeof showLine === "object") {
|
|
44
|
+
showLeafIcon = showLine.showLeafIcon;
|
|
45
|
+
}
|
|
46
|
+
if (isLeaf) {
|
|
47
|
+
if (showLine) {
|
|
48
|
+
if (typeof showLine === "object" && !showLeafIcon) {
|
|
49
|
+
return /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-switcher-leaf-line` });
|
|
50
|
+
}
|
|
51
|
+
return /* @__PURE__ */ import_react.default.createElement(import_Icon.Icon, { name: "file", prefix: "fal", className: `${prefixCls}-switcher-line-icon` });
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
const switcherCls = `${prefixCls}-switcher-icon`;
|
|
56
|
+
if ((0, import_react.isValidElement)(switcherIcon)) {
|
|
57
|
+
return (0, import_react.cloneElement)(switcherIcon, {
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
className: (0, import_classnames.default)(switcherIcon.props.className || "", switcherCls)
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
if (switcherIcon) {
|
|
63
|
+
return switcherIcon;
|
|
64
|
+
}
|
|
65
|
+
if (showLine) {
|
|
66
|
+
return expanded ? /* @__PURE__ */ import_react.default.createElement(import_Icon.Icon, { name: "square-minus", prefix: "far", className: `${prefixCls}-switcher-line-icon` }) : /* @__PURE__ */ import_react.default.createElement(import_Icon.Icon, { name: "square-plus", prefix: "far", className: `${prefixCls}-switcher-line-icon` });
|
|
67
|
+
}
|
|
68
|
+
return /* @__PURE__ */ import_react.default.createElement(import_Icon.Icon, { name: "angle-right", prefix: "far", className: switcherCls });
|
|
69
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TransitionProps } from '../../Transition';
|
|
2
|
+
export declare const beforeEnter: (el: any) => void;
|
|
3
|
+
export declare const onEnter: (el: HTMLElement) => void;
|
|
4
|
+
export declare const afterEnter: (el: HTMLElement) => void;
|
|
5
|
+
export declare const beforeLeave: (el: any) => void;
|
|
6
|
+
export declare const afterLeave: (el: any) => void;
|
|
7
|
+
declare const collapseMotion: TransitionProps;
|
|
8
|
+
declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string) => string;
|
|
9
|
+
export { getTransitionName };
|
|
10
|
+
export default collapseMotion;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/Tree/utils/motion.tsx
|
|
20
|
+
var motion_exports = {};
|
|
21
|
+
__export(motion_exports, {
|
|
22
|
+
afterEnter: () => afterEnter,
|
|
23
|
+
afterLeave: () => afterLeave,
|
|
24
|
+
beforeEnter: () => beforeEnter,
|
|
25
|
+
beforeLeave: () => beforeLeave,
|
|
26
|
+
default: () => motion_default,
|
|
27
|
+
getTransitionName: () => getTransitionName,
|
|
28
|
+
onEnter: () => onEnter
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(motion_exports);
|
|
31
|
+
var import_dom_lib = require("dom-lib");
|
|
32
|
+
var beforeEnter = (el) => {
|
|
33
|
+
el.style.height = "0";
|
|
34
|
+
el.style.opacity = "0";
|
|
35
|
+
};
|
|
36
|
+
var onEnter = (el) => {
|
|
37
|
+
(0, import_dom_lib.addClass)(el, "r-motion-collapse");
|
|
38
|
+
el.dataset.oldOverflow = el.style.overflow;
|
|
39
|
+
if (el.scrollHeight !== 0) {
|
|
40
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
41
|
+
el.style.opacity = "1";
|
|
42
|
+
} else {
|
|
43
|
+
el.style.height = "";
|
|
44
|
+
}
|
|
45
|
+
el.style.overflow = "hidden";
|
|
46
|
+
};
|
|
47
|
+
var afterEnter = (el) => {
|
|
48
|
+
(0, import_dom_lib.removeClass)(el, "r-motion-collapse");
|
|
49
|
+
el.style.height = "";
|
|
50
|
+
el.style.overflow = el.dataset.oldOverflow;
|
|
51
|
+
};
|
|
52
|
+
var beforeLeave = (el) => {
|
|
53
|
+
(0, import_dom_lib.addClass)(el, "r-motion-collapse");
|
|
54
|
+
if (!el.dataset) {
|
|
55
|
+
el.dataset = {};
|
|
56
|
+
}
|
|
57
|
+
el.dataset.oldOverflow = el.style.overflow;
|
|
58
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
59
|
+
el.style.overflow = "hidden";
|
|
60
|
+
};
|
|
61
|
+
var afterLeave = (el) => {
|
|
62
|
+
(0, import_dom_lib.removeClass)(el, "r-motion-collapse");
|
|
63
|
+
el.style.height = "";
|
|
64
|
+
el.style.overflow = el.dataset.oldOverflow;
|
|
65
|
+
el.style.display = "";
|
|
66
|
+
};
|
|
67
|
+
var collapseMotion = {
|
|
68
|
+
name: "r-treenode-collapse",
|
|
69
|
+
beforeEnter,
|
|
70
|
+
onEnter,
|
|
71
|
+
afterEnter,
|
|
72
|
+
beforeLeave,
|
|
73
|
+
afterLeave,
|
|
74
|
+
duration: 300
|
|
75
|
+
};
|
|
76
|
+
var getTransitionName = (rootPrefixCls, motion, transitionName) => {
|
|
77
|
+
if (transitionName !== void 0) {
|
|
78
|
+
return transitionName;
|
|
79
|
+
}
|
|
80
|
+
return `${rootPrefixCls}-${motion}`;
|
|
81
|
+
};
|
|
82
|
+
var motion_default = collapseMotion;
|
|
83
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
+
0 && (module.exports = {
|
|
85
|
+
afterEnter,
|
|
86
|
+
afterLeave,
|
|
87
|
+
beforeEnter,
|
|
88
|
+
beforeLeave,
|
|
89
|
+
getTransitionName,
|
|
90
|
+
onEnter
|
|
91
|
+
});
|