@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,68 @@
|
|
|
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/Form/utils/util.ts
|
|
30
|
+
var util_exports = {};
|
|
31
|
+
__export(util_exports, {
|
|
32
|
+
getErrorMsg: () => getErrorMsg,
|
|
33
|
+
getName: () => getName
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(util_exports);
|
|
36
|
+
var import_get = __toESM(require("lodash/get"));
|
|
37
|
+
var import_Util = require("../../Util");
|
|
38
|
+
function getName(path) {
|
|
39
|
+
if ((0, import_Util.isEmpty)(path)) {
|
|
40
|
+
return "";
|
|
41
|
+
} else if (path instanceof Array) {
|
|
42
|
+
return path.join(".");
|
|
43
|
+
} else if (typeof path === "number") {
|
|
44
|
+
return path + "";
|
|
45
|
+
}
|
|
46
|
+
return path;
|
|
47
|
+
}
|
|
48
|
+
function getErrorMsg(options, type, rule) {
|
|
49
|
+
let message = (0, import_get.default)(options, `validateMessages.${type}`);
|
|
50
|
+
if ((0, import_Util.isNotEmpty)(message)) {
|
|
51
|
+
if (typeof message === "function") {
|
|
52
|
+
return message(rule);
|
|
53
|
+
} else {
|
|
54
|
+
if (/(?<=\$\{)(\w*)(?=\})/g.test(message)) {
|
|
55
|
+
message.match(/(?<=\$\{)(\w*)(?=\})/g).forEach((item) => {
|
|
56
|
+
message = message.replace(`\${${item}}`, rule[item] || "");
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return message;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
}
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
getErrorMsg,
|
|
67
|
+
getName
|
|
68
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { InternalNamePath, RuleError, RuleObject, StoreValue, ValidateOptions } from '../typings';
|
|
2
|
+
export declare function validateRules(namePath: InternalNamePath, value: StoreValue, rules: RuleObject[], options: ValidateOptions, validateFirst: boolean | 'parallel', messageVariables?: Record<string, string>): Promise<RuleError[]>;
|
|
@@ -0,0 +1,195 @@
|
|
|
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/Form/utils/validateUtil.ts
|
|
30
|
+
var validateUtil_exports = {};
|
|
31
|
+
__export(validateUtil_exports, {
|
|
32
|
+
validateRules: () => validateRules
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(validateUtil_exports);
|
|
35
|
+
var import_async_validator = __toESM(require("async-validator"));
|
|
36
|
+
var import_react = require("react");
|
|
37
|
+
var import_Util = require("../../Util");
|
|
38
|
+
var import_messages = require("./messages");
|
|
39
|
+
var import_valueUtil = require("./valueUtil");
|
|
40
|
+
var AsyncValidator = import_async_validator.default;
|
|
41
|
+
function replaceMessage(template, kv) {
|
|
42
|
+
return template.replace(/\$\{\w+\}/g, (str) => {
|
|
43
|
+
const key = str.slice(2, -1);
|
|
44
|
+
return kv[key];
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
var CODE_LOGIC_ERROR = "CODE_LOGIC_ERROR";
|
|
48
|
+
async function validateRule(name, value, rule, options, messageVariables) {
|
|
49
|
+
const cloneRule = { ...rule };
|
|
50
|
+
delete cloneRule.ruleIndex;
|
|
51
|
+
if (cloneRule.validator) {
|
|
52
|
+
const originValidator = cloneRule.validator;
|
|
53
|
+
cloneRule.validator = (...args) => {
|
|
54
|
+
try {
|
|
55
|
+
return originValidator(...args);
|
|
56
|
+
} catch (error) {
|
|
57
|
+
console.error(error);
|
|
58
|
+
return Promise.reject(CODE_LOGIC_ERROR);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
let subRuleField = null;
|
|
63
|
+
if (cloneRule && cloneRule.type === "array" && cloneRule.defaultField) {
|
|
64
|
+
subRuleField = cloneRule.defaultField;
|
|
65
|
+
delete cloneRule.defaultField;
|
|
66
|
+
}
|
|
67
|
+
const validator = new AsyncValidator({
|
|
68
|
+
[name]: [cloneRule]
|
|
69
|
+
});
|
|
70
|
+
const messages = (0, import_valueUtil.setValues)({}, import_messages.defaultValidateMessages, options.validateMessages);
|
|
71
|
+
validator.messages(messages);
|
|
72
|
+
let result = [];
|
|
73
|
+
try {
|
|
74
|
+
await Promise.resolve(validator.validate({ [name]: value }, { ...options }));
|
|
75
|
+
} catch (errObj) {
|
|
76
|
+
if (errObj.errors) {
|
|
77
|
+
result = errObj.errors.map(({ message }, index) => {
|
|
78
|
+
const mergedMessage = message === CODE_LOGIC_ERROR ? messages.default : message;
|
|
79
|
+
return (0, import_react.isValidElement)(mergedMessage) ? (0, import_react.cloneElement)(mergedMessage, { key: `error_${index}` }) : mergedMessage;
|
|
80
|
+
});
|
|
81
|
+
} else {
|
|
82
|
+
console.error(errObj);
|
|
83
|
+
result = [messages.default];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (!result.length && subRuleField) {
|
|
87
|
+
const subResults = await Promise.all(
|
|
88
|
+
value.map((subValue, i) => validateRule(`${name}.${i}`, subValue, subRuleField, options, messageVariables))
|
|
89
|
+
);
|
|
90
|
+
return subResults.reduce((prev, errors) => [...prev, ...errors], []);
|
|
91
|
+
}
|
|
92
|
+
const kv = {
|
|
93
|
+
...rule,
|
|
94
|
+
name,
|
|
95
|
+
label: typeof (options == null ? void 0 : options.label) === "string" ? options.label : "",
|
|
96
|
+
enum: (rule.enum || []).join(", "),
|
|
97
|
+
...messageVariables
|
|
98
|
+
};
|
|
99
|
+
const fillVariableResult = result.map((error) => {
|
|
100
|
+
if (typeof error === "string") {
|
|
101
|
+
return replaceMessage(error, kv);
|
|
102
|
+
}
|
|
103
|
+
return error;
|
|
104
|
+
});
|
|
105
|
+
return fillVariableResult;
|
|
106
|
+
}
|
|
107
|
+
function validateRules(namePath, value, rules, options, validateFirst, messageVariables) {
|
|
108
|
+
const name = namePath.join(".");
|
|
109
|
+
const filledRules = rules.map((currentRule, ruleIndex) => {
|
|
110
|
+
const originValidatorFunc = currentRule.validator;
|
|
111
|
+
const cloneRule = {
|
|
112
|
+
...currentRule,
|
|
113
|
+
ruleIndex
|
|
114
|
+
};
|
|
115
|
+
if (originValidatorFunc) {
|
|
116
|
+
cloneRule.validator = (rule, val, callback) => {
|
|
117
|
+
let hasPromise = false;
|
|
118
|
+
const wrappedCallback = (...args) => {
|
|
119
|
+
Promise.resolve().then(() => {
|
|
120
|
+
(0, import_Util.warning)(!hasPromise, "Your validator function has already return a promise. `callback` will be ignored.");
|
|
121
|
+
if (!hasPromise) {
|
|
122
|
+
callback(...args);
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
const promise = originValidatorFunc(rule, val, wrappedCallback);
|
|
127
|
+
hasPromise = promise && typeof promise.then === "function" && typeof promise.catch === "function";
|
|
128
|
+
(0, import_Util.warning)(hasPromise, "`callback` is deprecated. Please return a promise instead.");
|
|
129
|
+
if (hasPromise) {
|
|
130
|
+
promise.then(() => {
|
|
131
|
+
callback();
|
|
132
|
+
}).catch((err) => {
|
|
133
|
+
callback(err || " ");
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
return cloneRule;
|
|
139
|
+
}).sort(({ warningOnly: w1, ruleIndex: i1 }, { warningOnly: w2, ruleIndex: i2 }) => {
|
|
140
|
+
if (!!w1 === !!w2) {
|
|
141
|
+
return i1 - i2;
|
|
142
|
+
}
|
|
143
|
+
if (w1) {
|
|
144
|
+
return 1;
|
|
145
|
+
}
|
|
146
|
+
return -1;
|
|
147
|
+
});
|
|
148
|
+
let summaryPromise;
|
|
149
|
+
if (validateFirst === true) {
|
|
150
|
+
summaryPromise = new Promise(async (resolve, reject) => {
|
|
151
|
+
for (let i = 0; i < filledRules.length; i += 1) {
|
|
152
|
+
const rule = filledRules[i];
|
|
153
|
+
const errors = await validateRule(name, value, rule, options, messageVariables);
|
|
154
|
+
if (errors.length) {
|
|
155
|
+
reject([{ errors, rule }]);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
resolve([]);
|
|
160
|
+
});
|
|
161
|
+
} else {
|
|
162
|
+
const rulePromises = filledRules.map((rule) => validateRule(name, value, rule, options, messageVariables).then((errors) => ({ errors, rule })));
|
|
163
|
+
summaryPromise = (validateFirst ? finishOnFirstFailed(rulePromises) : finishOnAllFailed(rulePromises)).then((errors) => {
|
|
164
|
+
return Promise.reject(errors);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
summaryPromise.catch((e) => e);
|
|
168
|
+
return summaryPromise;
|
|
169
|
+
}
|
|
170
|
+
async function finishOnAllFailed(rulePromises) {
|
|
171
|
+
return Promise.all(rulePromises).then((errorsList) => {
|
|
172
|
+
const errors = [].concat(...errorsList);
|
|
173
|
+
return errors;
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
async function finishOnFirstFailed(rulePromises) {
|
|
177
|
+
let count = 0;
|
|
178
|
+
return new Promise((resolve) => {
|
|
179
|
+
rulePromises.forEach((promise) => {
|
|
180
|
+
promise.then((ruleError) => {
|
|
181
|
+
if (ruleError.errors.length) {
|
|
182
|
+
resolve([ruleError]);
|
|
183
|
+
}
|
|
184
|
+
count += 1;
|
|
185
|
+
if (count === rulePromises.length) {
|
|
186
|
+
resolve([]);
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
193
|
+
0 && (module.exports = {
|
|
194
|
+
validateRules
|
|
195
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { EventArgs, InternalNamePath, NamePath, Store, StoreValue } from '../typings';
|
|
2
|
+
export declare function getNamePath(path: NamePath | null): InternalNamePath;
|
|
3
|
+
export declare function getValue(store: Store, namePath: InternalNamePath): any;
|
|
4
|
+
export declare function setValue(store: Store, namePath: InternalNamePath, value: StoreValue, removeIfUndefined?: boolean): Store;
|
|
5
|
+
export declare function cloneByNamePathList(store: Store, namePathList: InternalNamePath[]): Store;
|
|
6
|
+
export declare function containsNamePath(namePathList: InternalNamePath[], namePath: InternalNamePath): boolean;
|
|
7
|
+
export declare function setValues<T>(store: T, ...restValues: T[]): T;
|
|
8
|
+
export declare function matchNamePath(namePath: InternalNamePath, changedNamePath: InternalNamePath | null): boolean;
|
|
9
|
+
type SimilarObject = string | number | {};
|
|
10
|
+
export declare function isSimilar(source: SimilarObject, target: SimilarObject): boolean;
|
|
11
|
+
export declare function defaultGetValueFromEvent(valuePropName: string, ...args: EventArgs): any;
|
|
12
|
+
export declare function move<T>(array: T[], moveIndex: number, toIndex: number): T[];
|
|
13
|
+
export declare function toNamePathStr(name: NamePath): string;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,160 @@
|
|
|
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/Form/utils/valueUtil.ts
|
|
30
|
+
var valueUtil_exports = {};
|
|
31
|
+
__export(valueUtil_exports, {
|
|
32
|
+
cloneByNamePathList: () => cloneByNamePathList,
|
|
33
|
+
containsNamePath: () => containsNamePath,
|
|
34
|
+
defaultGetValueFromEvent: () => defaultGetValueFromEvent,
|
|
35
|
+
getNamePath: () => getNamePath,
|
|
36
|
+
getValue: () => getValue,
|
|
37
|
+
isSimilar: () => isSimilar,
|
|
38
|
+
matchNamePath: () => matchNamePath,
|
|
39
|
+
move: () => move,
|
|
40
|
+
setValue: () => setValue,
|
|
41
|
+
setValues: () => setValues,
|
|
42
|
+
toNamePathStr: () => toNamePathStr
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(valueUtil_exports);
|
|
45
|
+
var import_cloneDeep = __toESM(require("./cloneDeep"));
|
|
46
|
+
var import_get = __toESM(require("./get"));
|
|
47
|
+
var import_set = __toESM(require("./set"));
|
|
48
|
+
var import_typeUtil = require("./typeUtil");
|
|
49
|
+
function getNamePath(path) {
|
|
50
|
+
return (0, import_typeUtil.toArray)(path);
|
|
51
|
+
}
|
|
52
|
+
function getValue(store, namePath) {
|
|
53
|
+
const value = (0, import_get.default)(store, namePath);
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function setValue(store, namePath, value, removeIfUndefined = false) {
|
|
57
|
+
if ((namePath == null ? void 0 : namePath.length) > 0) {
|
|
58
|
+
const newStore = (0, import_set.default)(store, namePath, value, removeIfUndefined);
|
|
59
|
+
return newStore;
|
|
60
|
+
}
|
|
61
|
+
return store;
|
|
62
|
+
}
|
|
63
|
+
function cloneByNamePathList(store, namePathList) {
|
|
64
|
+
let newStore = {};
|
|
65
|
+
namePathList.forEach((namePath) => {
|
|
66
|
+
const value = getValue(store, namePath);
|
|
67
|
+
newStore = setValue(newStore, namePath, value);
|
|
68
|
+
});
|
|
69
|
+
return newStore;
|
|
70
|
+
}
|
|
71
|
+
function containsNamePath(namePathList, namePath) {
|
|
72
|
+
return namePathList && namePathList.some((path) => matchNamePath(path, namePath));
|
|
73
|
+
}
|
|
74
|
+
function isObject(obj) {
|
|
75
|
+
return typeof obj === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
76
|
+
}
|
|
77
|
+
function internalSetValues(store, values) {
|
|
78
|
+
const newStore = Array.isArray(store) ? [...store] : { ...store };
|
|
79
|
+
if (!values) {
|
|
80
|
+
return newStore;
|
|
81
|
+
}
|
|
82
|
+
Object.keys(values).forEach((key) => {
|
|
83
|
+
const prevValue = newStore[key];
|
|
84
|
+
const value = values[key];
|
|
85
|
+
const recursive = isObject(prevValue) && isObject(value);
|
|
86
|
+
newStore[key] = recursive ? internalSetValues(prevValue, value || {}) : (0, import_cloneDeep.default)(value);
|
|
87
|
+
});
|
|
88
|
+
return newStore;
|
|
89
|
+
}
|
|
90
|
+
function setValues(store, ...restValues) {
|
|
91
|
+
return restValues.reduce((current, newStore) => internalSetValues(current, newStore), store);
|
|
92
|
+
}
|
|
93
|
+
function matchNamePath(namePath, changedNamePath) {
|
|
94
|
+
if (!namePath || !changedNamePath || namePath.length !== changedNamePath.length) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
return namePath.every((nameUnit, i) => changedNamePath[i] === nameUnit);
|
|
98
|
+
}
|
|
99
|
+
function isSimilar(source, target) {
|
|
100
|
+
if (source === target) {
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
if (!source && target || source && !target) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
if (!source || !target || typeof source !== "object" || typeof target !== "object") {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
const sourceKeys = Object.keys(source);
|
|
110
|
+
const targetKeys = Object.keys(target);
|
|
111
|
+
const keys = /* @__PURE__ */ new Set([...sourceKeys, ...targetKeys]);
|
|
112
|
+
return [...keys].every((key) => {
|
|
113
|
+
const sourceValue = source[key];
|
|
114
|
+
const targetValue = target[key];
|
|
115
|
+
if (typeof sourceValue === "function" && typeof targetValue === "function") {
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
return sourceValue === targetValue;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function defaultGetValueFromEvent(valuePropName, ...args) {
|
|
122
|
+
const event = args[0];
|
|
123
|
+
if (event && event.target && typeof event.target === "object" && valuePropName in event.target) {
|
|
124
|
+
return event.target[valuePropName];
|
|
125
|
+
}
|
|
126
|
+
return event;
|
|
127
|
+
}
|
|
128
|
+
function move(array, moveIndex, toIndex) {
|
|
129
|
+
const { length } = array;
|
|
130
|
+
if (moveIndex < 0 || moveIndex >= length || toIndex < 0 || toIndex >= length) {
|
|
131
|
+
return array;
|
|
132
|
+
}
|
|
133
|
+
const item = array[moveIndex];
|
|
134
|
+
const diff = moveIndex - toIndex;
|
|
135
|
+
if (diff > 0) {
|
|
136
|
+
return [...array.slice(0, toIndex), item, ...array.slice(toIndex, moveIndex), ...array.slice(moveIndex + 1, length)];
|
|
137
|
+
}
|
|
138
|
+
if (diff < 0) {
|
|
139
|
+
return [...array.slice(0, moveIndex), ...array.slice(moveIndex + 1, toIndex + 1), item, ...array.slice(toIndex + 1, length)];
|
|
140
|
+
}
|
|
141
|
+
return array;
|
|
142
|
+
}
|
|
143
|
+
function toNamePathStr(name) {
|
|
144
|
+
const namePath = (0, import_typeUtil.toArray)(name);
|
|
145
|
+
return namePath.join("_");
|
|
146
|
+
}
|
|
147
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
148
|
+
0 && (module.exports = {
|
|
149
|
+
cloneByNamePathList,
|
|
150
|
+
containsNamePath,
|
|
151
|
+
defaultGetValueFromEvent,
|
|
152
|
+
getNamePath,
|
|
153
|
+
getValue,
|
|
154
|
+
isSimilar,
|
|
155
|
+
matchNamePath,
|
|
156
|
+
move,
|
|
157
|
+
setValue,
|
|
158
|
+
setValues,
|
|
159
|
+
toNamePathStr
|
|
160
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
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/Icon/Icon.tsx
|
|
30
|
+
var Icon_exports = {};
|
|
31
|
+
__export(Icon_exports, {
|
|
32
|
+
default: () => Icon_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Icon_exports);
|
|
35
|
+
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_startsWith = __toESM(require("lodash/startsWith"));
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_hooks = require("../hooks");
|
|
39
|
+
var Icon = (0, import_react.memo)(
|
|
40
|
+
(0, import_react.forwardRef)((props, ref) => {
|
|
41
|
+
const { prefix, name, size, rotate, flip, spin, pulse, className, style, onClick, classPrefix = "icon", ...other } = props;
|
|
42
|
+
const { b } = (0, import_hooks.useClassNames)(classPrefix, "el");
|
|
43
|
+
const hasFa = (0, import_startsWith.default)(name, "fa-");
|
|
44
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
45
|
+
"i",
|
|
46
|
+
{
|
|
47
|
+
className: (0, import_classnames.default)(b(), prefix, hasFa ? name : `fa-${name}`, className, {
|
|
48
|
+
[`fa-${size}`]: size,
|
|
49
|
+
[`fa-rotate-${rotate}`]: rotate,
|
|
50
|
+
[`fa-flip-${flip}`]: flip,
|
|
51
|
+
"fa-spin": spin,
|
|
52
|
+
"fa-pulse": pulse
|
|
53
|
+
}),
|
|
54
|
+
style,
|
|
55
|
+
onClick,
|
|
56
|
+
ref,
|
|
57
|
+
...other
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
})
|
|
61
|
+
);
|
|
62
|
+
Icon.defaultProps = {
|
|
63
|
+
prefix: "far"
|
|
64
|
+
};
|
|
65
|
+
Icon.displayName = "ElIcon";
|
|
66
|
+
var Icon_default = Icon;
|
|
@@ -0,0 +1,66 @@
|
|
|
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/Icon/IconList/Check.tsx
|
|
30
|
+
var Check_exports = {};
|
|
31
|
+
__export(Check_exports, {
|
|
32
|
+
Check: () => Check
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Check_exports);
|
|
35
|
+
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_hooks = require("../../hooks");
|
|
38
|
+
var Check = (props) => {
|
|
39
|
+
const { className, style } = props;
|
|
40
|
+
const { b } = (0, import_hooks.useClassNames)("icon");
|
|
41
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(b(), className), style }, /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
+
"svg",
|
|
43
|
+
{
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
focusable: "false",
|
|
46
|
+
"data-prefix": "fa-light",
|
|
47
|
+
"data-icon": "check",
|
|
48
|
+
className: "svg-inline--fa fa-check fa-w-16",
|
|
49
|
+
role: "img",
|
|
50
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
51
|
+
viewBox: "0 0 512 512"
|
|
52
|
+
},
|
|
53
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
54
|
+
"path",
|
|
55
|
+
{
|
|
56
|
+
d: "M475 123L203 395C200 398 196 400 192 400S184 398 181 395L37 251C30 245 30 235 37 229S53 222 59 229L192 361L453 101C459 94 469 94 475 101S482 117 475 123Z",
|
|
57
|
+
fill: "currentColor"
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
));
|
|
61
|
+
};
|
|
62
|
+
Check.displayName = "Icon.Check";
|
|
63
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
64
|
+
0 && (module.exports = {
|
|
65
|
+
Check
|
|
66
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
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/Icon/IconList/Close.tsx
|
|
30
|
+
var Close_exports = {};
|
|
31
|
+
__export(Close_exports, {
|
|
32
|
+
Close: () => Close
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Close_exports);
|
|
35
|
+
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_hooks = require("../../hooks");
|
|
38
|
+
var Close = (props) => {
|
|
39
|
+
const { className, style } = props;
|
|
40
|
+
const { b } = (0, import_hooks.useClassNames)("icon");
|
|
41
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(b(), className), style }, /* @__PURE__ */ import_react.default.createElement("svg", { "aria-hidden": "true", focusable: "false", className: "svg-inline--fa fa-xmark fa-w-12", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 512" }, /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
+
"path",
|
|
43
|
+
{
|
|
44
|
+
d: "M347 411C341 418 331 418 325 411L192 279L59 411C53 418 43 418 37 411C30 405 30 395 37 389L169 256L37 123C30 117 30 107 37 101C43 94 53 94 59 101L192 233L325 101C331 94 341 94 347 101C354 107 354 117 347 123L215 256L347 389C354 395 354 405 347 411Z",
|
|
45
|
+
fill: "currentColor"
|
|
46
|
+
}
|
|
47
|
+
)));
|
|
48
|
+
};
|
|
49
|
+
Close.displayName = "Icon.Close";
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
Close
|
|
53
|
+
});
|