shineout 1.12.2 → 1.12.3
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/css/DatePicker/Month.js +0 -6
- package/css/DatePicker/Quarter.js +1 -7
- package/css/DatePicker/Year.js +0 -6
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +367 -925
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/DatePicker/Month.js +0 -6
- package/es/DatePicker/Quarter.js +1 -7
- package/es/DatePicker/Year.js +0 -6
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/esm/@types/common.d.ts +47 -0
- package/esm/@types/common.js +1 -0
- package/esm/Alert/Props.d.ts +85 -0
- package/esm/Alert/Props.js +1 -0
- package/esm/Alert/index.d.ts +26 -0
- package/esm/Alert/index.js +165 -0
- package/esm/Alert/interface.d.ts +1 -0
- package/esm/Alert/interface.js +1 -0
- package/esm/Alert/styles/alert.less +143 -0
- package/esm/Alert/styles/index.d.ts +2 -0
- package/esm/Alert/styles/index.js +4 -0
- package/esm/AnimationList/AbsoluteList.d.ts +3 -0
- package/esm/AnimationList/AbsoluteList.js +373 -0
- package/esm/AnimationList/LazyList.d.ts +26 -0
- package/esm/AnimationList/LazyList.js +163 -0
- package/esm/AnimationList/List.d.ts +10 -0
- package/esm/AnimationList/List.js +46 -0
- package/esm/AnimationList/Props.d.ts +61 -0
- package/esm/AnimationList/Props.js +1 -0
- package/esm/AnimationList/index.d.ts +4 -0
- package/esm/AnimationList/index.js +27 -0
- package/esm/AnimationList/styles/index.d.ts +2 -0
- package/esm/AnimationList/styles/index.js +4 -0
- package/esm/Breadcrumb/Props.d.ts +81 -0
- package/esm/Breadcrumb/Props.js +1 -0
- package/esm/Breadcrumb/index.d.ts +17 -0
- package/esm/Breadcrumb/index.js +91 -0
- package/esm/Breadcrumb/interface.d.ts +1 -0
- package/esm/Breadcrumb/interface.js +1 -0
- package/esm/Breadcrumb/styles/breadcrumb.less +52 -0
- package/esm/Breadcrumb/styles/index.d.ts +2 -0
- package/esm/Breadcrumb/styles/index.js +4 -0
- package/esm/Button/Button.d.ts +13 -0
- package/esm/Button/Button.js +113 -0
- package/esm/Button/Group.d.ts +10 -0
- package/esm/Button/Group.js +48 -0
- package/esm/Button/Once.d.ts +10 -0
- package/esm/Button/Once.js +43 -0
- package/esm/Button/Props.d.ts +153 -0
- package/esm/Button/Props.js +1 -0
- package/esm/Button/index.d.ts +1 -0
- package/esm/Button/index.js +1 -0
- package/esm/Button/interface.d.ts +1 -0
- package/esm/Button/interface.js +1 -0
- package/esm/Button/styles/button.less +389 -0
- package/esm/Button/styles/index.d.ts +2 -0
- package/esm/Button/styles/index.js +4 -0
- package/esm/Card/Accordion.d.ts +20 -0
- package/esm/Card/Accordion.js +67 -0
- package/esm/Card/Body.d.ts +6 -0
- package/esm/Card/Body.js +48 -0
- package/esm/Card/Card.d.ts +4 -0
- package/esm/Card/Card.js +106 -0
- package/esm/Card/Footer.d.ts +5 -0
- package/esm/Card/Footer.js +35 -0
- package/esm/Card/Header.d.ts +7 -0
- package/esm/Card/Header.js +48 -0
- package/esm/Card/Props.d.ts +196 -0
- package/esm/Card/Props.js +79 -0
- package/esm/Card/Submit.d.ts +8 -0
- package/esm/Card/Submit.js +52 -0
- package/esm/Card/context.d.ts +4 -0
- package/esm/Card/context.js +27 -0
- package/esm/Card/index.d.ts +2 -0
- package/esm/Card/index.js +17 -0
- package/esm/Card/interface.d.ts +1 -0
- package/esm/Card/interface.js +1 -0
- package/esm/Card/styles/card.less +156 -0
- package/esm/Card/styles/index.d.ts +2 -0
- package/esm/Card/styles/index.js +4 -0
- package/esm/CardGroup/CardGroup.d.ts +18 -0
- package/esm/CardGroup/CardGroup.js +104 -0
- package/esm/CardGroup/Item.d.ts +8 -0
- package/esm/CardGroup/Item.js +62 -0
- package/esm/CardGroup/Props.d.ts +122 -0
- package/esm/CardGroup/Props.js +1 -0
- package/esm/CardGroup/context.d.ts +4 -0
- package/esm/CardGroup/context.js +13 -0
- package/esm/CardGroup/index.d.ts +2 -0
- package/esm/CardGroup/index.js +8 -0
- package/esm/CardGroup/interface.d.ts +1 -0
- package/esm/CardGroup/interface.js +1 -0
- package/esm/CardGroup/styles/cardGroup.less +40 -0
- package/esm/CardGroup/styles/index.d.ts +2 -0
- package/esm/CardGroup/styles/index.js +4 -0
- package/esm/Carousel/Item.d.ts +11 -0
- package/esm/Carousel/Item.js +31 -0
- package/esm/Carousel/Props.d.ts +58 -0
- package/esm/Carousel/Props.js +1 -0
- package/esm/Carousel/index.d.ts +4 -0
- package/esm/Carousel/index.js +201 -0
- package/esm/Carousel/interface.d.ts +1 -0
- package/esm/Carousel/interface.js +1 -0
- package/esm/Carousel/styles/carousel.less +288 -0
- package/esm/Carousel/styles/index.d.ts +2 -0
- package/esm/Carousel/styles/index.js +4 -0
- package/esm/Cascader/Cascader.d.ts +61 -0
- package/esm/Cascader/Cascader.js +609 -0
- package/esm/Cascader/FilterList.d.ts +2 -0
- package/esm/Cascader/FilterList.js +195 -0
- package/esm/Cascader/Input.d.ts +26 -0
- package/esm/Cascader/Input.js +117 -0
- package/esm/Cascader/List.d.ts +15 -0
- package/esm/Cascader/List.js +85 -0
- package/esm/Cascader/Node.d.ts +19 -0
- package/esm/Cascader/Node.js +182 -0
- package/esm/Cascader/Props.d.ts +311 -0
- package/esm/Cascader/Props.js +1 -0
- package/esm/Cascader/Result.d.ts +41 -0
- package/esm/Cascader/Result.js +399 -0
- package/esm/Cascader/filter.d.ts +4 -0
- package/esm/Cascader/filter.js +103 -0
- package/esm/Cascader/index.d.ts +2 -0
- package/esm/Cascader/index.js +12 -0
- package/esm/Cascader/interface.d.ts +1 -0
- package/esm/Cascader/interface.js +1 -0
- package/esm/Cascader/styles/cascader.less +452 -0
- package/esm/Cascader/styles/index.d.ts +2 -0
- package/esm/Cascader/styles/index.js +4 -0
- package/esm/Checkbox/CheckItem.d.ts +9 -0
- package/esm/Checkbox/CheckItem.js +199 -0
- package/esm/Checkbox/Checkbox.d.ts +3 -0
- package/esm/Checkbox/Checkbox.js +3 -0
- package/esm/Checkbox/Group.d.ts +17 -0
- package/esm/Checkbox/Group.js +130 -0
- package/esm/Checkbox/Props.d.ts +122 -0
- package/esm/Checkbox/Props.js +13 -0
- package/esm/Checkbox/context.d.ts +4 -0
- package/esm/Checkbox/context.js +13 -0
- package/esm/Checkbox/index.d.ts +2 -0
- package/esm/Checkbox/index.js +14 -0
- package/esm/Checkbox/interface.d.ts +1 -0
- package/esm/Checkbox/interface.js +1 -0
- package/esm/Checkbox/styles/checkinput.less +602 -0
- package/esm/Checkbox/styles/index.d.ts +2 -0
- package/esm/Checkbox/styles/index.js +4 -0
- package/esm/DataList/BaseItem.d.ts +13 -0
- package/esm/DataList/BaseItem.js +40 -0
- package/esm/DataList/Extra.d.ts +8 -0
- package/esm/DataList/Extra.js +34 -0
- package/esm/DataList/List.d.ts +26 -0
- package/esm/DataList/List.js +209 -0
- package/esm/DataList/Meta.d.ts +16 -0
- package/esm/DataList/Meta.js +120 -0
- package/esm/DataList/Pagination.d.ts +5 -0
- package/esm/DataList/Pagination.js +9 -0
- package/esm/DataList/Props.d.ts +138 -0
- package/esm/DataList/Props.js +1 -0
- package/esm/DataList/index.d.ts +2 -0
- package/esm/DataList/index.js +14 -0
- package/esm/DataList/styles/index.d.ts +1 -0
- package/esm/DataList/styles/index.js +4 -0
- package/esm/DataList/styles/list.less +213 -0
- package/esm/DatePicker/Container.d.ts +82 -0
- package/esm/DatePicker/Container.js +650 -0
- package/esm/DatePicker/Day.d.ts +37 -0
- package/esm/DatePicker/Day.js +339 -0
- package/esm/DatePicker/Icon.d.ts +12 -0
- package/esm/DatePicker/Icon.js +40 -0
- package/esm/DatePicker/Month.d.ts +18 -0
- package/esm/DatePicker/Month.js +144 -0
- package/esm/DatePicker/Picker.d.ts +21 -0
- package/esm/DatePicker/Picker.js +158 -0
- package/esm/DatePicker/Props.d.ts +397 -0
- package/esm/DatePicker/Props.js +1 -0
- package/esm/DatePicker/Quarter.d.ts +18 -0
- package/esm/DatePicker/Quarter.js +164 -0
- package/esm/DatePicker/Quick.d.ts +15 -0
- package/esm/DatePicker/Quick.js +64 -0
- package/esm/DatePicker/Range.d.ts +35 -0
- package/esm/DatePicker/Range.js +299 -0
- package/esm/DatePicker/Text.d.ts +20 -0
- package/esm/DatePicker/Text.js +141 -0
- package/esm/DatePicker/Time.d.ts +21 -0
- package/esm/DatePicker/Time.js +215 -0
- package/esm/DatePicker/TimeScroll.d.ts +26 -0
- package/esm/DatePicker/TimeScroll.js +185 -0
- package/esm/DatePicker/Year.d.ts +17 -0
- package/esm/DatePicker/Year.js +146 -0
- package/esm/DatePicker/index.d.ts +2 -0
- package/esm/DatePicker/index.js +18 -0
- package/esm/DatePicker/interface.d.ts +1 -0
- package/esm/DatePicker/interface.js +1 -0
- package/esm/DatePicker/paramUtils.d.ts +19 -0
- package/esm/DatePicker/paramUtils.js +106 -0
- package/esm/DatePicker/styles/datepicker.less +727 -0
- package/esm/DatePicker/styles/index.d.ts +2 -0
- package/esm/DatePicker/styles/index.js +4 -0
- package/esm/DatePicker/utils.d.ts +68 -0
- package/esm/DatePicker/utils.js +419 -0
- package/esm/DatePicker/value.d.ts +44 -0
- package/esm/DatePicker/value.js +179 -0
- package/esm/Datum/Form.d.ts +55 -0
- package/esm/Datum/Form.js +433 -0
- package/esm/Datum/List.d.ts +47 -0
- package/esm/Datum/List.js +441 -0
- package/esm/Datum/Props.d.ts +89 -0
- package/esm/Datum/Props.js +1 -0
- package/esm/Datum/Tree.d.ts +78 -0
- package/esm/Datum/Tree.js +424 -0
- package/esm/Datum/hoc.d.ts +2 -0
- package/esm/Datum/hoc.js +133 -0
- package/esm/Datum/index.d.ts +8 -0
- package/esm/Datum/index.js +8 -0
- package/esm/Datum/types.d.ts +16 -0
- package/esm/Datum/types.js +22 -0
- package/esm/Divider/Props.d.ts +30 -0
- package/esm/Divider/Props.js +1 -0
- package/esm/Divider/index.d.ts +10 -0
- package/esm/Divider/index.js +50 -0
- package/esm/Divider/interface.d.ts +1 -0
- package/esm/Divider/interface.js +1 -0
- package/esm/Divider/styles/divider.less +83 -0
- package/esm/Divider/styles/index.d.ts +2 -0
- package/esm/Divider/styles/index.js +4 -0
- package/esm/Drawer/index.d.ts +12 -0
- package/esm/Drawer/index.js +17 -0
- package/esm/Drawer/interface.d.ts +1 -0
- package/esm/Drawer/interface.js +1 -0
- package/esm/Dropdown/Item.d.ts +16 -0
- package/esm/Dropdown/Item.js +73 -0
- package/esm/Dropdown/Props.d.ts +164 -0
- package/esm/Dropdown/Props.js +1 -0
- package/esm/Dropdown/index.d.ts +2 -0
- package/esm/Dropdown/index.js +347 -0
- package/esm/Dropdown/interface.d.ts +1 -0
- package/esm/Dropdown/interface.js +1 -0
- package/esm/Dropdown/styles/dropdown.less +349 -0
- package/esm/Dropdown/styles/index.d.ts +1 -0
- package/esm/Dropdown/styles/index.js +4 -0
- package/esm/EditableArea/EditableArea.d.ts +36 -0
- package/esm/EditableArea/EditableArea.js +275 -0
- package/esm/EditableArea/Props.d.ts +105 -0
- package/esm/EditableArea/Props.js +1 -0
- package/esm/EditableArea/index.d.ts +2 -0
- package/esm/EditableArea/index.js +7 -0
- package/esm/EditableArea/interface.d.ts +1 -0
- package/esm/EditableArea/interface.js +1 -0
- package/esm/EditableArea/styles/editableArea.less +63 -0
- package/esm/EditableArea/styles/index.d.ts +1 -0
- package/esm/EditableArea/styles/index.js +4 -0
- package/esm/Form/Field.d.ts +12 -0
- package/esm/Form/Field.js +76 -0
- package/esm/Form/FieldError.d.ts +6 -0
- package/esm/Form/FieldError.js +29 -0
- package/esm/Form/FieldSet.d.ts +8 -0
- package/esm/Form/FieldSet.js +240 -0
- package/esm/Form/Flow.d.ts +10 -0
- package/esm/Form/Flow.js +66 -0
- package/esm/Form/Form.d.ts +29 -0
- package/esm/Form/Form.js +229 -0
- package/esm/Form/Item.d.ts +29 -0
- package/esm/Form/Item.js +210 -0
- package/esm/Form/Props.d.ts +436 -0
- package/esm/Form/Props.js +1 -0
- package/esm/Form/formButton.d.ts +3 -0
- package/esm/Form/formButton.js +69 -0
- package/esm/Form/formContext.d.ts +9 -0
- package/esm/Form/formContext.js +103 -0
- package/esm/Form/index.d.ts +2 -0
- package/esm/Form/index.js +35 -0
- package/esm/Form/inputable.d.ts +4 -0
- package/esm/Form/inputable.js +411 -0
- package/esm/Form/interface.d.ts +1 -0
- package/esm/Form/interface.js +1 -0
- package/esm/Form/mode.d.ts +2 -0
- package/esm/Form/mode.js +16 -0
- package/esm/Form/styles/form.less +779 -0
- package/esm/Form/styles/index.d.ts +2 -0
- package/esm/Form/styles/index.js +5 -0
- package/esm/Gap/Props.d.ts +37 -0
- package/esm/Gap/Props.js +1 -0
- package/esm/Gap/index.d.ts +4 -0
- package/esm/Gap/index.js +74 -0
- package/esm/Gap/interface.d.ts +1 -0
- package/esm/Gap/interface.js +1 -0
- package/esm/Gap/styles/gap.less +10 -0
- package/esm/Gap/styles/index.d.ts +1 -0
- package/esm/Gap/styles/index.js +4 -0
- package/esm/Gap/support.d.ts +1 -0
- package/esm/Gap/support.js +12 -0
- package/esm/Grid/Props.d.ts +53 -0
- package/esm/Grid/Props.js +1 -0
- package/esm/Grid/index.d.ts +7 -0
- package/esm/Grid/index.js +89 -0
- package/esm/Grid/interface.d.ts +1 -0
- package/esm/Grid/interface.js +1 -0
- package/esm/Grid/utils.d.ts +13 -0
- package/esm/Grid/utils.js +97 -0
- package/esm/Icon/Icon.d.ts +23 -0
- package/esm/Icon/Icon.js +67 -0
- package/esm/Icon/Props.d.ts +80 -0
- package/esm/Icon/Props.js +1 -0
- package/esm/Icon/index.d.ts +3 -0
- package/esm/Icon/index.js +48 -0
- package/esm/Icon/interface.d.ts +1 -0
- package/esm/Icon/interface.js +1 -0
- package/esm/Icon/styles/icon.less +54 -0
- package/esm/Icon/styles/index.d.ts +2 -0
- package/esm/Icon/styles/index.js +4 -0
- package/esm/Image/Gallery.d.ts +9 -0
- package/esm/Image/Gallery.js +147 -0
- package/esm/Image/Group.d.ts +8 -0
- package/esm/Image/Group.js +65 -0
- package/esm/Image/Image.d.ts +39 -0
- package/esm/Image/Image.js +297 -0
- package/esm/Image/Magnify.d.ts +25 -0
- package/esm/Image/Magnify.js +147 -0
- package/esm/Image/Props.d.ts +184 -0
- package/esm/Image/Props.js +1 -0
- package/esm/Image/events.d.ts +6 -0
- package/esm/Image/events.js +40 -0
- package/esm/Image/index.d.ts +2 -0
- package/esm/Image/index.js +6 -0
- package/esm/Image/interface.d.ts +1 -0
- package/esm/Image/interface.js +1 -0
- package/esm/Image/styles/image.less +311 -0
- package/esm/Image/styles/index.d.ts +2 -0
- package/esm/Image/styles/index.js +4 -0
- package/esm/Input/Group.d.ts +10 -0
- package/esm/Input/Group.js +25 -0
- package/esm/Input/Input.d.ts +24 -0
- package/esm/Input/Input.js +307 -0
- package/esm/Input/Number.d.ts +24 -0
- package/esm/Input/Number.js +275 -0
- package/esm/Input/Password.d.ts +12 -0
- package/esm/Input/Password.js +73 -0
- package/esm/Input/Props.d.ts +311 -0
- package/esm/Input/Props.js +1 -0
- package/esm/Input/clear.d.ts +8 -0
- package/esm/Input/clear.js +46 -0
- package/esm/Input/index.d.ts +2 -0
- package/esm/Input/index.js +22 -0
- package/esm/Input/interface.d.ts +1 -0
- package/esm/Input/interface.js +1 -0
- package/esm/Input/styles/index.d.ts +1 -0
- package/esm/Input/styles/index.js +4 -0
- package/esm/InputTitle/Props.d.ts +25 -0
- package/esm/InputTitle/Props.js +1 -0
- package/esm/InputTitle/index.d.ts +2 -0
- package/esm/InputTitle/index.js +2 -0
- package/esm/InputTitle/inputTitle.d.ts +14 -0
- package/esm/InputTitle/inputTitle.js +75 -0
- package/esm/InputTitle/styles/index.d.ts +1 -0
- package/esm/InputTitle/styles/index.js +3 -0
- package/esm/InputTitle/styles/inputTitle.less +139 -0
- package/esm/Lazyload/Props.d.ts +7 -0
- package/esm/Lazyload/Props.js +1 -0
- package/esm/Lazyload/index.d.ts +19 -0
- package/esm/Lazyload/index.js +78 -0
- package/esm/Lazyload/styles/index.d.ts +1 -0
- package/esm/Lazyload/styles/index.js +4 -0
- package/esm/Lazyload/styles/lazyload.less +8 -0
- package/esm/List/index.d.ts +2 -0
- package/esm/List/index.js +2 -0
- package/esm/List/interface.d.ts +1 -0
- package/esm/List/interface.js +1 -0
- package/esm/Menu/Item.d.ts +4 -0
- package/esm/Menu/Item.js +339 -0
- package/esm/Menu/List.d.ts +6 -0
- package/esm/Menu/List.js +76 -0
- package/esm/Menu/Props.d.ts +204 -0
- package/esm/Menu/Props.js +1 -0
- package/esm/Menu/Root.d.ts +94 -0
- package/esm/Menu/Root.js +452 -0
- package/esm/Menu/context.d.ts +4 -0
- package/esm/Menu/context.js +19 -0
- package/esm/Menu/index.d.ts +2 -0
- package/esm/Menu/index.js +3 -0
- package/esm/Menu/interface.d.ts +1 -0
- package/esm/Menu/interface.js +1 -0
- package/esm/Menu/styles/index.d.ts +1 -0
- package/esm/Menu/styles/index.js +4 -0
- package/esm/Menu/styles/menu.less +780 -0
- package/esm/Message/Container.d.ts +33 -0
- package/esm/Message/Container.js +186 -0
- package/esm/Message/Props.d.ts +55 -0
- package/esm/Message/Props.js +1 -0
- package/esm/Message/index.d.ts +14 -0
- package/esm/Message/index.js +54 -0
- package/esm/Message/interface.d.ts +1 -0
- package/esm/Message/interface.js +1 -0
- package/esm/Message/messager.d.ts +5 -0
- package/esm/Message/messager.js +44 -0
- package/esm/Message/styles/index.d.ts +1 -0
- package/esm/Message/styles/index.js +6 -0
- package/esm/Message/styles/message.less +148 -0
- package/esm/Modal/Modal.d.ts +34 -0
- package/esm/Modal/Modal.js +122 -0
- package/esm/Modal/Panel.d.ts +43 -0
- package/esm/Modal/Panel.js +293 -0
- package/esm/Modal/Props.d.ts +300 -0
- package/esm/Modal/Props.js +1 -0
- package/esm/Modal/context.d.ts +7 -0
- package/esm/Modal/context.js +19 -0
- package/esm/Modal/events.d.ts +8 -0
- package/esm/Modal/events.js +277 -0
- package/esm/Modal/index.d.ts +2 -0
- package/esm/Modal/index.js +12 -0
- package/esm/Modal/interface.d.ts +1 -0
- package/esm/Modal/interface.js +1 -0
- package/esm/Modal/styles/index.d.ts +1 -0
- package/esm/Modal/styles/index.js +4 -0
- package/esm/Modal/styles/modal.less +377 -0
- package/esm/Pagination/Item.d.ts +12 -0
- package/esm/Pagination/Item.js +54 -0
- package/esm/Pagination/Jumper.d.ts +11 -0
- package/esm/Pagination/Jumper.js +101 -0
- package/esm/Pagination/Links.d.ts +14 -0
- package/esm/Pagination/Links.js +144 -0
- package/esm/Pagination/Next.d.ts +8 -0
- package/esm/Pagination/Next.js +56 -0
- package/esm/Pagination/PageSizeList.d.ts +11 -0
- package/esm/Pagination/PageSizeList.js +67 -0
- package/esm/Pagination/Pagination.d.ts +15 -0
- package/esm/Pagination/Pagination.js +88 -0
- package/esm/Pagination/Prev.d.ts +8 -0
- package/esm/Pagination/Prev.js +53 -0
- package/esm/Pagination/Props.d.ts +175 -0
- package/esm/Pagination/Props.js +1 -0
- package/esm/Pagination/Simple.d.ts +5 -0
- package/esm/Pagination/Simple.js +37 -0
- package/esm/Pagination/index.d.ts +20 -0
- package/esm/Pagination/index.js +76 -0
- package/esm/Pagination/interface.d.ts +1 -0
- package/esm/Pagination/interface.js +1 -0
- package/esm/Pagination/styles/index.d.ts +1 -0
- package/esm/Pagination/styles/index.js +4 -0
- package/esm/Pagination/styles/pagination.less +180 -0
- package/esm/Popover/Confirm.d.ts +16 -0
- package/esm/Popover/Confirm.js +124 -0
- package/esm/Popover/Content.d.ts +4 -0
- package/esm/Popover/Content.js +11 -0
- package/esm/Popover/Panel.d.ts +4 -0
- package/esm/Popover/Panel.js +373 -0
- package/esm/Popover/Props.d.ts +237 -0
- package/esm/Popover/Props.js +1 -0
- package/esm/Popover/context.d.ts +4 -0
- package/esm/Popover/context.js +16 -0
- package/esm/Popover/index.d.ts +3 -0
- package/esm/Popover/index.js +10 -0
- package/esm/Popover/interface.d.ts +1 -0
- package/esm/Popover/interface.js +1 -0
- package/esm/Popover/styles/index.d.ts +1 -0
- package/esm/Popover/styles/index.js +4 -0
- package/esm/Popover/styles/popover.less +309 -0
- package/esm/Progress/Circle.d.ts +12 -0
- package/esm/Progress/Circle.js +79 -0
- package/esm/Progress/Line.d.ts +9 -0
- package/esm/Progress/Line.js +61 -0
- package/esm/Progress/Popup.d.ts +9 -0
- package/esm/Progress/Popup.js +43 -0
- package/esm/Progress/Props.d.ts +103 -0
- package/esm/Progress/Props.js +1 -0
- package/esm/Progress/analyzeColor.d.ts +3 -0
- package/esm/Progress/analyzeColor.js +21 -0
- package/esm/Progress/index.d.ts +10 -0
- package/esm/Progress/index.js +19 -0
- package/esm/Progress/interface.d.ts +1 -0
- package/esm/Progress/interface.js +1 -0
- package/esm/Progress/styles/index.d.ts +1 -0
- package/esm/Progress/styles/index.js +4 -0
- package/esm/Progress/styles/progress.less +119 -0
- package/esm/Radio/Group.d.ts +18 -0
- package/esm/Radio/Group.js +119 -0
- package/esm/Radio/Props.d.ts +39 -0
- package/esm/Radio/Props.js +1 -0
- package/esm/Radio/Radio.d.ts +3 -0
- package/esm/Radio/Radio.js +2 -0
- package/esm/Radio/index.d.ts +2 -0
- package/esm/Radio/index.js +15 -0
- package/esm/Radio/interface.d.ts +1 -0
- package/esm/Radio/interface.js +1 -0
- package/esm/Radio/styles/index.d.ts +1 -0
- package/esm/Radio/styles/index.js +1 -0
- package/esm/Rate/Props.d.ts +96 -0
- package/esm/Rate/Props.js +1 -0
- package/esm/Rate/Rate.d.ts +36 -0
- package/esm/Rate/Rate.js +252 -0
- package/esm/Rate/index.d.ts +5 -0
- package/esm/Rate/index.js +18 -0
- package/esm/Rate/interface.d.ts +1 -0
- package/esm/Rate/interface.js +1 -0
- package/esm/Rate/styles/index.d.ts +2 -0
- package/esm/Rate/styles/index.js +4 -0
- package/esm/Rate/styles/rate.less +105 -0
- package/esm/Rule/Props.d.ts +172 -0
- package/esm/Rule/Props.js +1 -0
- package/esm/Rule/index.d.ts +15 -0
- package/esm/Rule/index.js +81 -0
- package/esm/Rule/interface.d.ts +1 -0
- package/esm/Rule/interface.js +1 -0
- package/esm/Rule/length.d.ts +10 -0
- package/esm/Rule/length.js +54 -0
- package/esm/Rule/regExp.d.ts +5 -0
- package/esm/Rule/regExp.js +25 -0
- package/esm/Rule/required.d.ts +8 -0
- package/esm/Rule/required.js +27 -0
- package/esm/Rule/styles/index.d.ts +1 -0
- package/esm/Rule/styles/index.js +1 -0
- package/esm/Rule/type.d.ts +8 -0
- package/esm/Rule/type.js +27 -0
- package/esm/Scroll/Bar.d.ts +3 -0
- package/esm/Scroll/Bar.js +183 -0
- package/esm/Scroll/Props.d.ts +44 -0
- package/esm/Scroll/Props.js +1 -0
- package/esm/Scroll/Scroll.d.ts +54 -0
- package/esm/Scroll/Scroll.js +436 -0
- package/esm/Scroll/context.d.ts +4 -0
- package/esm/Scroll/context.js +22 -0
- package/esm/Scroll/fixedLength.d.ts +3 -0
- package/esm/Scroll/fixedLength.js +32 -0
- package/esm/Scroll/index.d.ts +23 -0
- package/esm/Scroll/index.js +95 -0
- package/esm/Scroll/styles/index.d.ts +2 -0
- package/esm/Scroll/styles/index.js +4 -0
- package/esm/Scroll/styles/scroll.less +175 -0
- package/esm/Select/BoxList.d.ts +19 -0
- package/esm/Select/BoxList.js +218 -0
- package/esm/Select/BoxOption.d.ts +9 -0
- package/esm/Select/BoxOption.js +73 -0
- package/esm/Select/Input.d.ts +39 -0
- package/esm/Select/Input.js +286 -0
- package/esm/Select/More.d.ts +15 -0
- package/esm/Select/More.js +151 -0
- package/esm/Select/Option.d.ts +12 -0
- package/esm/Select/Option.js +90 -0
- package/esm/Select/OptionList.d.ts +21 -0
- package/esm/Select/OptionList.js +282 -0
- package/esm/Select/OptionTree.d.ts +13 -0
- package/esm/Select/OptionTree.js +124 -0
- package/esm/Select/Props.d.ts +626 -0
- package/esm/Select/Props.js +1 -0
- package/esm/Select/Result.d.ts +33 -0
- package/esm/Select/Result.js +435 -0
- package/esm/Select/Select.d.ts +91 -0
- package/esm/Select/Select.js +791 -0
- package/esm/Select/filter.d.ts +58 -0
- package/esm/Select/filter.js +272 -0
- package/esm/Select/group.d.ts +39 -0
- package/esm/Select/group.js +86 -0
- package/esm/Select/index.d.ts +2 -0
- package/esm/Select/index.js +34 -0
- package/esm/Select/interface.d.ts +1 -0
- package/esm/Select/interface.js +1 -0
- package/esm/Select/styles/index.d.ts +1 -0
- package/esm/Select/styles/index.js +4 -0
- package/esm/Select/styles/select.less +724 -0
- package/esm/Select/utils.d.ts +4 -0
- package/esm/Select/utils.js +7 -0
- package/esm/Slider/Container.d.ts +22 -0
- package/esm/Slider/Container.js +180 -0
- package/esm/Slider/Indicator.d.ts +2 -0
- package/esm/Slider/Indicator.js +28 -0
- package/esm/Slider/Props.d.ts +128 -0
- package/esm/Slider/Props.js +1 -0
- package/esm/Slider/Slider.d.ts +22 -0
- package/esm/Slider/Slider.js +148 -0
- package/esm/Slider/index.d.ts +2 -0
- package/esm/Slider/index.js +5 -0
- package/esm/Slider/interface.d.ts +1 -0
- package/esm/Slider/interface.js +1 -0
- package/esm/Slider/styles/index.d.ts +1 -0
- package/esm/Slider/styles/index.js +4 -0
- package/esm/Slider/styles/slider.less +346 -0
- package/esm/Slider/utils.d.ts +2 -0
- package/esm/Slider/utils.js +28 -0
- package/esm/Spin/Multiple.d.ts +12 -0
- package/esm/Spin/Multiple.js +179 -0
- package/esm/Spin/Props.d.ts +28 -0
- package/esm/Spin/Props.js +1 -0
- package/esm/Spin/Simple.d.ts +5 -0
- package/esm/Spin/Simple.js +40 -0
- package/esm/Spin/Spin.d.ts +3 -0
- package/esm/Spin/Spin.js +31 -0
- package/esm/Spin/index.d.ts +32 -0
- package/esm/Spin/index.js +96 -0
- package/esm/Spin/interface.d.ts +1 -0
- package/esm/Spin/interface.js +1 -0
- package/esm/Spin/styles/chasing-dots.less +47 -0
- package/esm/Spin/styles/chasing-ring.less +112 -0
- package/esm/Spin/styles/cube-grid.less +65 -0
- package/esm/Spin/styles/default.less +77 -0
- package/esm/Spin/styles/double-bounce.less +36 -0
- package/esm/Spin/styles/four-dots.less +73 -0
- package/esm/Spin/styles/index.d.ts +14 -0
- package/esm/Spin/styles/index.js +28 -0
- package/esm/Spin/styles/plane.less +24 -0
- package/esm/Spin/styles/pulse.less +22 -0
- package/esm/Spin/styles/ring.less +23 -0
- package/esm/Spin/styles/scale-circle.less +74 -0
- package/esm/Spin/styles/spin.less +57 -0
- package/esm/Spin/styles/three-bounce.less +41 -0
- package/esm/Spin/styles/wave.less +48 -0
- package/esm/Spin/util.d.ts +4 -0
- package/esm/Spin/util.js +7 -0
- package/esm/Sticky/Props.d.ts +65 -0
- package/esm/Sticky/Props.js +1 -0
- package/esm/Sticky/context.d.ts +4 -0
- package/esm/Sticky/context.js +13 -0
- package/esm/Sticky/index.d.ts +2 -0
- package/esm/Sticky/index.js +361 -0
- package/esm/Sticky/interface.d.ts +1 -0
- package/esm/Sticky/interface.js +1 -0
- package/esm/Sticky/styles/index.d.ts +1 -0
- package/esm/Sticky/styles/index.js +1 -0
- package/esm/Switch/Props.d.ts +8 -0
- package/esm/Switch/Props.js +1 -0
- package/esm/Switch/Switch.d.ts +3 -0
- package/esm/Switch/Switch.js +2 -0
- package/esm/Switch/index.d.ts +2 -0
- package/esm/Switch/index.js +8 -0
- package/esm/Switch/interface.d.ts +1 -0
- package/esm/Switch/interface.js +1 -0
- package/esm/Table/Checkbox.d.ts +11 -0
- package/esm/Table/Checkbox.js +72 -0
- package/esm/Table/CheckboxAll.d.ts +16 -0
- package/esm/Table/CheckboxAll.js +155 -0
- package/esm/Table/Colgroup.d.ts +11 -0
- package/esm/Table/Colgroup.js +77 -0
- package/esm/Table/Expand.d.ts +13 -0
- package/esm/Table/Expand.js +79 -0
- package/esm/Table/Props.d.ts +547 -0
- package/esm/Table/Props.js +1 -0
- package/esm/Table/SeperateTable.d.ts +70 -0
- package/esm/Table/SeperateTable.js +857 -0
- package/esm/Table/SimpleTable.d.ts +36 -0
- package/esm/Table/SimpleTable.js +315 -0
- package/esm/Table/Sorter.d.ts +13 -0
- package/esm/Table/Sorter.js +100 -0
- package/esm/Table/Table.d.ts +2 -0
- package/esm/Table/Table.js +173 -0
- package/esm/Table/Tbody.d.ts +29 -0
- package/esm/Table/Tbody.js +301 -0
- package/esm/Table/Td.d.ts +18 -0
- package/esm/Table/Td.js +200 -0
- package/esm/Table/Tfoot.d.ts +8 -0
- package/esm/Table/Tfoot.js +89 -0
- package/esm/Table/Thead.d.ts +28 -0
- package/esm/Table/Thead.js +292 -0
- package/esm/Table/Tr.d.ts +30 -0
- package/esm/Table/Tr.js +327 -0
- package/esm/Table/TreeExpand.d.ts +45 -0
- package/esm/Table/TreeExpand.js +168 -0
- package/esm/Table/context.d.ts +7 -0
- package/esm/Table/context.js +18 -0
- package/esm/Table/fixedAuto.d.ts +57 -0
- package/esm/Table/fixedAuto.js +95 -0
- package/esm/Table/index.d.ts +23 -0
- package/esm/Table/index.js +360 -0
- package/esm/Table/interface.d.ts +1 -0
- package/esm/Table/interface.js +1 -0
- package/esm/Table/resizable.d.ts +43 -0
- package/esm/Table/resizable.js +108 -0
- package/esm/Table/select.d.ts +54 -0
- package/esm/Table/select.js +309 -0
- package/esm/Table/styles/index.d.ts +2 -0
- package/esm/Table/styles/index.js +4 -0
- package/esm/Table/styles/table.less +813 -0
- package/esm/Tabs/Header.d.ts +38 -0
- package/esm/Tabs/Header.js +265 -0
- package/esm/Tabs/Link.d.ts +7 -0
- package/esm/Tabs/Link.js +58 -0
- package/esm/Tabs/Panel.d.ts +9 -0
- package/esm/Tabs/Panel.js +60 -0
- package/esm/Tabs/Props.d.ts +242 -0
- package/esm/Tabs/Props.js +1 -0
- package/esm/Tabs/Tab.d.ts +12 -0
- package/esm/Tabs/Tab.js +113 -0
- package/esm/Tabs/Tabs.d.ts +45 -0
- package/esm/Tabs/Tabs.js +270 -0
- package/esm/Tabs/Wrapper.d.ts +6 -0
- package/esm/Tabs/Wrapper.js +37 -0
- package/esm/Tabs/index.d.ts +2 -0
- package/esm/Tabs/index.js +7 -0
- package/esm/Tabs/interface.d.ts +1 -0
- package/esm/Tabs/interface.js +1 -0
- package/esm/Tabs/styles/index.d.ts +1 -0
- package/esm/Tabs/styles/index.js +4 -0
- package/esm/Tabs/styles/tabs.less +422 -0
- package/esm/Tag/Input.d.ts +2 -0
- package/esm/Tag/Input.js +84 -0
- package/esm/Tag/Props.d.ts +86 -0
- package/esm/Tag/Props.js +1 -0
- package/esm/Tag/Tag.d.ts +31 -0
- package/esm/Tag/Tag.js +230 -0
- package/esm/Tag/index.d.ts +6 -0
- package/esm/Tag/index.js +6 -0
- package/esm/Tag/interface.d.ts +1 -0
- package/esm/Tag/interface.js +1 -0
- package/esm/Tag/styles/index.d.ts +2 -0
- package/esm/Tag/styles/index.js +4 -0
- package/esm/Tag/styles/tag.less +107 -0
- package/esm/Textarea/Textarea.d.ts +27 -0
- package/esm/Textarea/Textarea.js +199 -0
- package/esm/Textarea/index.d.ts +297 -0
- package/esm/Textarea/index.js +22 -0
- package/esm/Textarea/interface.d.ts +1 -0
- package/esm/Textarea/interface.js +1 -0
- package/esm/Textarea/props.d.ts +76 -0
- package/esm/Textarea/props.js +1 -0
- package/esm/Tooltip/Container.d.ts +3 -0
- package/esm/Tooltip/Container.js +179 -0
- package/esm/Tooltip/Props.d.ts +83 -0
- package/esm/Tooltip/Props.js +1 -0
- package/esm/Tooltip/events.d.ts +5 -0
- package/esm/Tooltip/events.js +96 -0
- package/esm/Tooltip/index.d.ts +3 -0
- package/esm/Tooltip/index.js +5 -0
- package/esm/Tooltip/interface.d.ts +1 -0
- package/esm/Tooltip/interface.js +1 -0
- package/esm/Tooltip/styles/index.d.ts +2 -0
- package/esm/Tooltip/styles/index.js +4 -0
- package/esm/Tooltip/styles/tooltip.less +169 -0
- package/esm/Transfer/Card.d.ts +2 -0
- package/esm/Transfer/Card.js +247 -0
- package/esm/Transfer/Props.d.ts +175 -0
- package/esm/Transfer/Props.js +1 -0
- package/esm/Transfer/Transfer.d.ts +16 -0
- package/esm/Transfer/Transfer.js +192 -0
- package/esm/Transfer/btns.d.ts +13 -0
- package/esm/Transfer/btns.js +113 -0
- package/esm/Transfer/context.d.ts +4 -0
- package/esm/Transfer/context.js +2 -0
- package/esm/Transfer/filter.d.ts +7 -0
- package/esm/Transfer/filter.js +70 -0
- package/esm/Transfer/index.d.ts +2 -0
- package/esm/Transfer/index.js +10 -0
- package/esm/Transfer/interface.d.ts +1 -0
- package/esm/Transfer/interface.js +1 -0
- package/esm/Transfer/item.d.ts +4 -0
- package/esm/Transfer/item.js +71 -0
- package/esm/Transfer/select.d.ts +3 -0
- package/esm/Transfer/select.js +20 -0
- package/esm/Transfer/styles/index.d.ts +2 -0
- package/esm/Transfer/styles/index.js +4 -0
- package/esm/Transfer/styles/transfer.less +123 -0
- package/esm/Tree/Checkbox.d.ts +12 -0
- package/esm/Tree/Checkbox.js +76 -0
- package/esm/Tree/Content.d.ts +16 -0
- package/esm/Tree/Content.js +158 -0
- package/esm/Tree/List.d.ts +21 -0
- package/esm/Tree/List.js +107 -0
- package/esm/Tree/Node.d.ts +24 -0
- package/esm/Tree/Node.js +268 -0
- package/esm/Tree/Props.d.ts +291 -0
- package/esm/Tree/Props.js +1 -0
- package/esm/Tree/Root.d.ts +10 -0
- package/esm/Tree/Root.js +23 -0
- package/esm/Tree/Tree.d.ts +33 -0
- package/esm/Tree/Tree.js +344 -0
- package/esm/Tree/index.d.ts +7 -0
- package/esm/Tree/index.js +9 -0
- package/esm/Tree/interface.d.ts +1 -0
- package/esm/Tree/interface.js +1 -0
- package/esm/Tree/styles/index.d.ts +2 -0
- package/esm/Tree/styles/index.js +4 -0
- package/esm/Tree/styles/tree.less +263 -0
- package/esm/TreeSelect/Input.d.ts +22 -0
- package/esm/TreeSelect/Input.js +110 -0
- package/esm/TreeSelect/Props.d.ts +230 -0
- package/esm/TreeSelect/Props.js +1 -0
- package/esm/TreeSelect/Result.d.ts +31 -0
- package/esm/TreeSelect/Result.js +351 -0
- package/esm/TreeSelect/TreeSelect.d.ts +59 -0
- package/esm/TreeSelect/TreeSelect.js +464 -0
- package/esm/TreeSelect/datum.d.ts +37 -0
- package/esm/TreeSelect/datum.js +75 -0
- package/esm/TreeSelect/filter.d.ts +49 -0
- package/esm/TreeSelect/filter.js +157 -0
- package/esm/TreeSelect/index.d.ts +2 -0
- package/esm/TreeSelect/index.js +15 -0
- package/esm/TreeSelect/interface.d.ts +1 -0
- package/esm/TreeSelect/interface.js +1 -0
- package/esm/TreeSelect/styles/index.d.ts +2 -0
- package/esm/TreeSelect/styles/index.js +4 -0
- package/esm/TreeSelect/styles/treeSelect.less +618 -0
- package/esm/TreeSelect/tiled.d.ts +5 -0
- package/esm/TreeSelect/tiled.js +151 -0
- package/esm/Upload/Dragger.d.ts +10 -0
- package/esm/Upload/Dragger.js +66 -0
- package/esm/Upload/Drop.d.ts +26 -0
- package/esm/Upload/Drop.js +86 -0
- package/esm/Upload/File.d.ts +8 -0
- package/esm/Upload/File.js +64 -0
- package/esm/Upload/FileInput.d.ts +11 -0
- package/esm/Upload/FileInput.js +69 -0
- package/esm/Upload/Image.d.ts +22 -0
- package/esm/Upload/Image.js +184 -0
- package/esm/Upload/ImageFile.d.ts +8 -0
- package/esm/Upload/ImageFile.js +64 -0
- package/esm/Upload/ImageResult.d.ts +24 -0
- package/esm/Upload/ImageResult.js +162 -0
- package/esm/Upload/Progress.d.ts +22 -0
- package/esm/Upload/Progress.js +152 -0
- package/esm/Upload/Props.d.ts +548 -0
- package/esm/Upload/Props.js +1 -0
- package/esm/Upload/RemoveConfirm.d.ts +13 -0
- package/esm/Upload/RemoveConfirm.js +60 -0
- package/esm/Upload/Result.d.ts +17 -0
- package/esm/Upload/Result.js +86 -0
- package/esm/Upload/Upload.d.ts +59 -0
- package/esm/Upload/Upload.js +726 -0
- package/esm/Upload/accept.d.ts +61 -0
- package/esm/Upload/accept.js +35 -0
- package/esm/Upload/context.d.ts +3 -0
- package/esm/Upload/context.js +13 -0
- package/esm/Upload/index.d.ts +2 -0
- package/esm/Upload/index.js +16 -0
- package/esm/Upload/interface.d.ts +1 -0
- package/esm/Upload/interface.js +1 -0
- package/esm/Upload/request.d.ts +5 -0
- package/esm/Upload/request.js +71 -0
- package/esm/Upload/styles/index.d.ts +2 -0
- package/esm/Upload/styles/index.js +4 -0
- package/esm/Upload/styles/upload.less +539 -0
- package/esm/component.d.ts +116 -0
- package/esm/component.js +63 -0
- package/esm/config.d.ts +21 -0
- package/esm/config.js +42 -0
- package/esm/context/index.d.ts +3 -0
- package/esm/context/index.js +4 -0
- package/esm/hoc/Props.d.ts +96 -0
- package/esm/hoc/Props.js +1 -0
- package/esm/hoc/coin.d.ts +5 -0
- package/esm/hoc/coin.js +122 -0
- package/esm/hoc/config.d.ts +31 -0
- package/esm/hoc/config.js +38 -0
- package/esm/hoc/delay.d.ts +2 -0
- package/esm/hoc/delay.js +118 -0
- package/esm/hoc/draggable.d.ts +2 -0
- package/esm/hoc/draggable.js +105 -0
- package/esm/hoc/hidable.d.ts +20 -0
- package/esm/hoc/hidable.js +156 -0
- package/esm/hoc/inputBorder.d.ts +2 -0
- package/esm/hoc/inputBorder.js +139 -0
- package/esm/hoc/moveable.d.ts +2 -0
- package/esm/hoc/moveable.js +143 -0
- package/esm/hoc/pagable.d.ts +46 -0
- package/esm/hoc/pagable.js +81 -0
- package/esm/hoc/resizable.d.ts +57 -0
- package/esm/hoc/resizable.js +151 -0
- package/esm/hoc/styles/hidable.less +60 -0
- package/esm/hoc/styles/index.d.ts +4 -0
- package/esm/hoc/styles/index.js +8 -0
- package/esm/hoc/styles/moveable.less +10 -0
- package/esm/hoc/styles/resizable.less +43 -0
- package/esm/icons/Caret.d.ts +31 -0
- package/esm/icons/Caret.js +15 -0
- package/esm/icons/Props.d.ts +1 -0
- package/esm/icons/Props.js +1 -0
- package/esm/icons/index.d.ts +26 -0
- package/esm/icons/index.js +58 -0
- package/esm/index.d.ts +58 -0
- package/esm/index.js +58 -0
- package/esm/locale/Props.d.ts +2 -0
- package/esm/locale/Props.js +1 -0
- package/esm/locale/en_US.d.ts +45 -0
- package/esm/locale/en_US.js +44 -0
- package/esm/locale/index.d.ts +4 -0
- package/esm/locale/index.js +19 -0
- package/esm/locale/zh-CN.d.ts +45 -0
- package/esm/locale/zh-CN.js +44 -0
- package/esm/styles/expose.d.ts +1 -0
- package/esm/styles/expose.js +3 -0
- package/esm/styles/expose.less +491 -0
- package/esm/styles/index.d.ts +1 -0
- package/esm/styles/index.js +1 -0
- package/esm/styles/mixins/alerts.less +44 -0
- package/esm/styles/mixins/animation.less +2 -0
- package/esm/styles/mixins/background-variant.less +10 -0
- package/esm/styles/mixins/border-radius.less +18 -0
- package/esm/styles/mixins/breadcrumbs.less +12 -0
- package/esm/styles/mixins/buttons.less +434 -0
- package/esm/styles/mixins/caret.less +120 -0
- package/esm/styles/mixins/center-block.less +7 -0
- package/esm/styles/mixins/clearfix.less +23 -0
- package/esm/styles/mixins/close.less +35 -0
- package/esm/styles/mixins/forms.less +88 -0
- package/esm/styles/mixins/gradients.less +138 -0
- package/esm/styles/mixins/grid-framework.less +97 -0
- package/esm/styles/mixins/grid.less +122 -0
- package/esm/styles/mixins/hide-text.less +21 -0
- package/esm/styles/mixins/image.less +25 -0
- package/esm/styles/mixins/input-title.less +66 -0
- package/esm/styles/mixins/labels.less +12 -0
- package/esm/styles/mixins/list-group.less +31 -0
- package/esm/styles/mixins/menu-selected.less +36 -0
- package/esm/styles/mixins/nav-divider.less +10 -0
- package/esm/styles/mixins/nav-vertical-align.less +9 -0
- package/esm/styles/mixins/opacity.less +9 -0
- package/esm/styles/mixins/pagination.less +26 -0
- package/esm/styles/mixins/panels.less +26 -0
- package/esm/styles/mixins/progress-bar.less +10 -0
- package/esm/styles/mixins/reset-filter.less +8 -0
- package/esm/styles/mixins/reset-text.less +18 -0
- package/esm/styles/mixins/resize.less +6 -0
- package/esm/styles/mixins/responsive-visibility.less +24 -0
- package/esm/styles/mixins/size.less +10 -0
- package/esm/styles/mixins/tab-focus.less +10 -0
- package/esm/styles/mixins/table-row.less +28 -0
- package/esm/styles/mixins/tag.less +7 -0
- package/esm/styles/mixins/text-emphasis.less +10 -0
- package/esm/styles/mixins/text-overflow.less +8 -0
- package/esm/styles/mixins/vendor-prefixes.less +229 -0
- package/esm/styles/normalize.less +580 -0
- package/esm/styles/themes/antd.less +296 -0
- package/esm/styles/themes/antd2.less +25 -0
- package/esm/styles/themes/base.less +899 -0
- package/esm/styles/themes/bootstrap.less +290 -0
- package/esm/styles/themes/cssvar.less +735 -0
- package/esm/styles/themes/default.less +183 -0
- package/esm/styles/themes/shineout.less +806 -0
- package/esm/styles/themes/vars-inject.less +6 -0
- package/esm/styles/variables.less +54 -0
- package/esm/utils/accept.d.ts +3 -0
- package/esm/utils/accept.js +24 -0
- package/esm/utils/classname.d.ts +12 -0
- package/esm/utils/classname.js +34 -0
- package/esm/utils/cleanProps.d.ts +10 -0
- package/esm/utils/cleanProps.js +15 -0
- package/esm/utils/clone.d.ts +3 -0
- package/esm/utils/clone.js +38 -0
- package/esm/utils/color.d.ts +21 -0
- package/esm/utils/color.js +458 -0
- package/esm/utils/compose.d.ts +1 -0
- package/esm/utils/compose.js +96 -0
- package/esm/utils/css-accessors.d.ts +10 -0
- package/esm/utils/css-accessors.js +119 -0
- package/esm/utils/curry.d.ts +24 -0
- package/esm/utils/curry.js +23 -0
- package/esm/utils/dom/detect.d.ts +12 -0
- package/esm/utils/dom/detect.js +50 -0
- package/esm/utils/dom/document.d.ts +11 -0
- package/esm/utils/dom/document.js +43 -0
- package/esm/utils/dom/element.d.ts +37 -0
- package/esm/utils/dom/element.js +262 -0
- package/esm/utils/dom/getDataset.d.ts +4 -0
- package/esm/utils/dom/getDataset.js +10 -0
- package/esm/utils/dom/isDOMElement.d.ts +6 -0
- package/esm/utils/dom/isDOMElement.js +3 -0
- package/esm/utils/dom/normalizeWheel.d.ts +14 -0
- package/esm/utils/dom/normalizeWheel.js +67 -0
- package/esm/utils/dom/popContainer.d.ts +2 -0
- package/esm/utils/dom/popContainer.js +17 -0
- package/esm/utils/dom/popover.d.ts +9 -0
- package/esm/utils/dom/popover.js +96 -0
- package/esm/utils/dom/ready.d.ts +1 -0
- package/esm/utils/dom/ready.js +6 -0
- package/esm/utils/dom/scrollBehavior.d.ts +1 -0
- package/esm/utils/dom/scrollBehavior.js +27 -0
- package/esm/utils/dom/translate.d.ts +2 -0
- package/esm/utils/dom/translate.js +30 -0
- package/esm/utils/errors.d.ts +9 -0
- package/esm/utils/errors.js +62 -0
- package/esm/utils/expose.d.ts +18 -0
- package/esm/utils/expose.js +125 -0
- package/esm/utils/flat.d.ts +25 -0
- package/esm/utils/flat.js +166 -0
- package/esm/utils/func.d.ts +25 -0
- package/esm/utils/func.js +72 -0
- package/esm/utils/hash.d.ts +1 -0
- package/esm/utils/hash.js +36 -0
- package/esm/utils/index.d.ts +24 -0
- package/esm/utils/index.js +24 -0
- package/esm/utils/is.d.ts +28 -0
- package/esm/utils/is.js +111 -0
- package/esm/utils/lazyload.d.ts +13 -0
- package/esm/utils/lazyload.js +136 -0
- package/esm/utils/notification.d.ts +15 -0
- package/esm/utils/notification.js +43 -0
- package/esm/utils/numbers.d.ts +7 -0
- package/esm/utils/numbers.js +97 -0
- package/esm/utils/objects.d.ts +19 -0
- package/esm/utils/objects.js +296 -0
- package/esm/utils/proptypes.d.ts +14 -0
- package/esm/utils/proptypes.js +30 -0
- package/esm/utils/shallowEqual.d.ts +7 -0
- package/esm/utils/shallowEqual.js +79 -0
- package/esm/utils/strings.d.ts +7 -0
- package/esm/utils/strings.js +86 -0
- package/esm/utils/transform.d.ts +2 -0
- package/esm/utils/transform.js +30 -0
- package/esm/utils/tree.d.ts +14 -0
- package/esm/utils/tree.js +93 -0
- package/esm/utils/uid.d.ts +5 -0
- package/esm/utils/uid.js +23 -0
- package/esm/utils/validate/index.d.ts +4 -0
- package/esm/utils/validate/index.js +109 -0
- package/esm/utils/validate/isJson.d.ts +1 -0
- package/esm/utils/validate/isJson.js +30 -0
- package/esm/utils/validate/nullable.d.ts +2 -0
- package/esm/utils/validate/nullable.js +10 -0
- package/esm/utils/validate/range.d.ts +6 -0
- package/esm/utils/validate/range.js +29 -0
- package/esm/utils/validate/rangeLength.d.ts +6 -0
- package/esm/utils/validate/rangeLength.js +22 -0
- package/esm/utils/validate/regExp.d.ts +4 -0
- package/esm/utils/validate/regExp.js +21 -0
- package/esm/utils/validate/required.d.ts +5 -0
- package/esm/utils/validate/required.js +18 -0
- package/esm/utils/validate/type.d.ts +14 -0
- package/esm/utils/validate/type.js +93 -0
- package/esm/utils/vars-inject.d.ts +1070 -0
- package/esm/utils/vars-inject.js +4272 -0
- package/esm/utils/zoom.d.ts +2 -0
- package/esm/utils/zoom.js +33 -0
- package/lib/DatePicker/Month.js +0 -6
- package/lib/DatePicker/Quarter.js +1 -7
- package/lib/DatePicker/Year.js +0 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,650 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
2
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import classnames from 'classnames';
|
|
8
|
+
import immer from 'immer';
|
|
9
|
+
import { PureComponent } from '../component';
|
|
10
|
+
import { datepickerClass } from './styles';
|
|
11
|
+
import { inputClass } from '../Input/styles';
|
|
12
|
+
import Icon from './Icon';
|
|
13
|
+
import utils from './utils';
|
|
14
|
+
import Picker from './Picker';
|
|
15
|
+
import Range from './Range';
|
|
16
|
+
import Text from './Text';
|
|
17
|
+
import { getUidStr } from '../utils/uid';
|
|
18
|
+
import { isArray } from '../utils/is';
|
|
19
|
+
import { getParent } from '../utils/dom/element';
|
|
20
|
+
import absoluteList from '../AnimationList/AbsoluteList';
|
|
21
|
+
import { docSize } from '../utils/dom/document';
|
|
22
|
+
import { getRTLPosition } from '../utils/strings';
|
|
23
|
+
import List from '../AnimationList';
|
|
24
|
+
import { getLocale } from '../locale';
|
|
25
|
+
import DateFns from './utils';
|
|
26
|
+
import { isRTL } from '../config';
|
|
27
|
+
import InputTitle from '../InputTitle';
|
|
28
|
+
import { inputTitleClass } from '../InputTitle/styles';
|
|
29
|
+
import { getDirectionClass } from '../utils/classname';
|
|
30
|
+
var FadeList = List(['fade'], 'fast');
|
|
31
|
+
var OptionList = absoluteList(function (_ref) {
|
|
32
|
+
var focus = _ref.focus,
|
|
33
|
+
other = _objectWithoutPropertiesLoose(_ref, ["focus"]);
|
|
34
|
+
|
|
35
|
+
return React.createElement(FadeList, _extends({
|
|
36
|
+
show: focus
|
|
37
|
+
}, other));
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
var getCurrentPosition = function getCurrentPosition(position) {
|
|
41
|
+
if (isRTL()) {
|
|
42
|
+
return getRTLPosition(position);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return position;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var DefaultValue = {
|
|
49
|
+
type: 'date',
|
|
50
|
+
clearable: true,
|
|
51
|
+
allowSingle: false,
|
|
52
|
+
placeholder: React.createElement("span", null, "\xA0")
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var Container =
|
|
56
|
+
/*#__PURE__*/
|
|
57
|
+
function (_PureComponent) {
|
|
58
|
+
_inheritsLoose(Container, _PureComponent);
|
|
59
|
+
|
|
60
|
+
function Container(props) {
|
|
61
|
+
var _this;
|
|
62
|
+
|
|
63
|
+
_this = _PureComponent.call(this, props) || this;
|
|
64
|
+
|
|
65
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleClick", void 0);
|
|
66
|
+
|
|
67
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleBlur", void 0);
|
|
68
|
+
|
|
69
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "disabledMap", void 0);
|
|
70
|
+
|
|
71
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "pickerId", void 0);
|
|
72
|
+
|
|
73
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "firstRender", void 0);
|
|
74
|
+
|
|
75
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "element", void 0);
|
|
76
|
+
|
|
77
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "picker", void 0);
|
|
78
|
+
|
|
79
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "pickerContainer", void 0);
|
|
80
|
+
|
|
81
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "textSpan", void 0);
|
|
82
|
+
|
|
83
|
+
_this.state = {
|
|
84
|
+
focus: false,
|
|
85
|
+
current: _this.getCurrent(),
|
|
86
|
+
position: props.position,
|
|
87
|
+
picker0: false,
|
|
88
|
+
picker1: false
|
|
89
|
+
};
|
|
90
|
+
_this.disabledMap = {};
|
|
91
|
+
_this.pickerId = "picker_" + getUidStr();
|
|
92
|
+
_this.bindElement = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
93
|
+
_this.bindPicker = _this.bindPicker.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
94
|
+
_this.bindWrappedPicker = _this.bindWrappedPicker.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
95
|
+
_this.bindTextSpan = _this.bindTextSpan.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
96
|
+
_this.handleClick = _this.handleToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)), true);
|
|
97
|
+
_this.handleBlur = _this.handleToggle.bind(_assertThisInitialized(_assertThisInitialized(_this)), false);
|
|
98
|
+
_this.handleFocus = _this.handleFocus.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
99
|
+
_this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
100
|
+
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
101
|
+
_this.handleClear = _this.handleClear.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
102
|
+
_this.handleHover = _this.handleHover.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
103
|
+
_this.handleTextChange = _this.handleTextChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
104
|
+
_this.parseDate = _this.parseDate.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
105
|
+
_this.dateToCurrent = _this.dateToCurrent.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
106
|
+
_this.shouldFocus = _this.shouldFocus.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
107
|
+
_this.handleDisabled = _this.handleDisabled.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
108
|
+
_this.disabledRegister = _this.disabledRegister.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
109
|
+
_this.bindClickAway = _this.bindClickAway.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
110
|
+
_this.clearClickAway = _this.clearClickAway.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
111
|
+
_this.handleClickAway = _this.handleClickAway.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
112
|
+
_this.getDefaultTime = _this.getDefaultTime.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
113
|
+
_this.getQuick = _this.getQuick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
114
|
+
_this.firstRender = false;
|
|
115
|
+
return _this;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
var _proto = Container.prototype;
|
|
119
|
+
|
|
120
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
121
|
+
_PureComponent.prototype.componentWillUnmount.call(this);
|
|
122
|
+
|
|
123
|
+
this.clearClickAway();
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
_proto.getOptions = function getOptions() {
|
|
127
|
+
var timeZone = this.props.timeZone;
|
|
128
|
+
return {
|
|
129
|
+
timeZone: timeZone,
|
|
130
|
+
weekStartsOn: getLocale('startOfWeek')
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
_proto.getCurrent = function getCurrent() {
|
|
135
|
+
var _this2 = this;
|
|
136
|
+
|
|
137
|
+
var current;
|
|
138
|
+
var _this$props = this.props,
|
|
139
|
+
defaultRangeMonth = _this$props.defaultRangeMonth,
|
|
140
|
+
defaultPickerValue = _this$props.defaultPickerValue,
|
|
141
|
+
value = _this$props.value;
|
|
142
|
+
|
|
143
|
+
if (this.props.range) {
|
|
144
|
+
var defaultPickerRange = defaultRangeMonth || defaultPickerValue || [];
|
|
145
|
+
current = (this.props.value || []).map(function (v, i) {
|
|
146
|
+
v = _this2.parseDate(v);
|
|
147
|
+
if (utils.isInvalid(v)) v = utils.newDate(defaultPickerRange[i], _this2.getOptions());
|
|
148
|
+
return v;
|
|
149
|
+
});
|
|
150
|
+
if (current.length === 0) current = [utils.newDate(defaultPickerRange[0], this.getOptions()), utils.newDate(defaultPickerRange[1], this.getOptions())];
|
|
151
|
+
} else {
|
|
152
|
+
current = this.parseDate(value || defaultPickerValue);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return current;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
_proto.getFormat = function getFormat() {
|
|
159
|
+
var _this$props2 = this.props,
|
|
160
|
+
format = _this$props2.format,
|
|
161
|
+
type = _this$props2.type;
|
|
162
|
+
|
|
163
|
+
if (format) {
|
|
164
|
+
if (type === 'week' && format.indexOf('I') > -1) return format.replace(/y/g, 'Y');
|
|
165
|
+
return format;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
switch (type) {
|
|
169
|
+
case 'date':
|
|
170
|
+
return 'yyyy-MM-dd';
|
|
171
|
+
|
|
172
|
+
case 'month':
|
|
173
|
+
return 'yyyy-MM';
|
|
174
|
+
|
|
175
|
+
case 'time':
|
|
176
|
+
return 'HH:mm:ss';
|
|
177
|
+
|
|
178
|
+
case 'year':
|
|
179
|
+
return 'yyyy';
|
|
180
|
+
|
|
181
|
+
case 'week':
|
|
182
|
+
return 'RRRR II';
|
|
183
|
+
|
|
184
|
+
case 'quarter':
|
|
185
|
+
return 'yyyy-[Q]Q';
|
|
186
|
+
|
|
187
|
+
default:
|
|
188
|
+
return 'yyyy-MM-dd HH:mm:ss';
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
_proto.getQuick = function getQuick(format) {
|
|
193
|
+
var _this3 = this;
|
|
194
|
+
|
|
195
|
+
var quickSelect = this.props.quickSelect;
|
|
196
|
+
if (!Array.isArray(quickSelect)) return undefined;
|
|
197
|
+
return quickSelect.map(function (q) {
|
|
198
|
+
var invalid = false;
|
|
199
|
+
if (!q.value) return {
|
|
200
|
+
name: q.name,
|
|
201
|
+
invalid: true
|
|
202
|
+
};
|
|
203
|
+
var date = (Array.isArray(q.value) ? q.value : [q.value]).map(function (v) {
|
|
204
|
+
return DateFns.toDateWithFormat(v, format, undefined, _this3.getOptions());
|
|
205
|
+
});
|
|
206
|
+
if (DateFns.isInvalid(date[0])) invalid = true;
|
|
207
|
+
if (date[1] && DateFns.isInvalid(date[1])) invalid = true;
|
|
208
|
+
if (invalid) return {
|
|
209
|
+
name: q.name,
|
|
210
|
+
invalid: true
|
|
211
|
+
};
|
|
212
|
+
return {
|
|
213
|
+
name: q.name,
|
|
214
|
+
value: date
|
|
215
|
+
};
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
_proto.getDefaultTime = function getDefaultTime() {
|
|
220
|
+
var defaultTime = this.props.defaultTime;
|
|
221
|
+
if (typeof defaultTime === 'string') return [defaultTime];
|
|
222
|
+
if (isArray(defaultTime)) return defaultTime;
|
|
223
|
+
return [];
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
_proto.bindElement = function bindElement(el) {
|
|
227
|
+
this.element = el;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
_proto.bindPicker = function bindPicker(picker) {
|
|
231
|
+
this.picker = picker;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
_proto.bindWrappedPicker = function bindWrappedPicker(el) {
|
|
235
|
+
this.pickerContainer = el;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
_proto.bindTextSpan = function bindTextSpan(el) {
|
|
239
|
+
this.textSpan = el;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
_proto.parseDate = function parseDate(value) {
|
|
243
|
+
return utils.toDateWithFormat(value, this.getFormat(), undefined, this.getOptions());
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
_proto.bindClickAway = function bindClickAway() {
|
|
247
|
+
document.addEventListener('mousedown', this.handleClickAway);
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
_proto.clearClickAway = function clearClickAway() {
|
|
251
|
+
document.removeEventListener('mousedown', this.handleClickAway);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
_proto.shouldFocus = function shouldFocus(el) {
|
|
255
|
+
if (el.getAttribute('data-id') === this.pickerId) return true;
|
|
256
|
+
if (getParent(el, "." + datepickerClass('result'))) return true;
|
|
257
|
+
return false;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
_proto.handleClickAway = function handleClickAway(e) {
|
|
261
|
+
var onPicker = e.target === this.element || this.element.contains(e.target);
|
|
262
|
+
var onAbsolutePicker = getParent(e.target, "." + datepickerClass('location'));
|
|
263
|
+
|
|
264
|
+
if (!onPicker && !onAbsolutePicker) {
|
|
265
|
+
if (this.props.inputable && this.textSpan) this.textSpan.blur();
|
|
266
|
+
this.clearClickAway();
|
|
267
|
+
this.handleToggle(false);
|
|
268
|
+
if (this.props.onBlur) this.props.onBlur(e);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
_proto.handleFocus = function handleFocus(e) {
|
|
273
|
+
if (!this.shouldFocus(e.target)) return;
|
|
274
|
+
if (this.props.onFocus) this.props.onFocus(e);
|
|
275
|
+
this.bindClickAway();
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
_proto.handleKeyDown = function handleKeyDown(e) {
|
|
279
|
+
if (e.keyCode === 13) {
|
|
280
|
+
e.preventDefault();
|
|
281
|
+
this.handleToggle(!this.state.focus);
|
|
282
|
+
} // fot close the list
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
if (e.keyCode === 9) {
|
|
286
|
+
this.props.onBlur(e); // e.preventDefault()
|
|
287
|
+
|
|
288
|
+
if (this.state.focus) this.handleToggle(false);else this.clearClickAway();
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
_proto.handleToggle = function handleToggle(focus, e) {
|
|
293
|
+
var _this4 = this;
|
|
294
|
+
|
|
295
|
+
var quickSelect = this.props.quickSelect;
|
|
296
|
+
var hasQuickColumn = Array.isArray(quickSelect) && quickSelect.length > 0;
|
|
297
|
+
if (this.props.disabled === true) return;
|
|
298
|
+
if (focus === this.state.focus) return;
|
|
299
|
+
if (e && focus && getParent(e.target, this.pickerContainer)) return; // click close icon
|
|
300
|
+
|
|
301
|
+
if (focus && e && e.target.classList.contains(datepickerClass('close'))) return;
|
|
302
|
+
this.setState(immer(function (state) {
|
|
303
|
+
state.focus = focus;
|
|
304
|
+
|
|
305
|
+
if (focus === true) {
|
|
306
|
+
var rect = _this4.element.getBoundingClientRect();
|
|
307
|
+
|
|
308
|
+
var windowHeight = docSize.height;
|
|
309
|
+
var windowWidth = docSize.width;
|
|
310
|
+
var pickerWidth = (_this4.props.range ? 540 : 270) + (hasQuickColumn ? 120 : 0);
|
|
311
|
+
|
|
312
|
+
if (!_this4.props.position) {
|
|
313
|
+
if (rect.bottom + 300 > windowHeight) {
|
|
314
|
+
if (rect.left + pickerWidth > windowWidth) state.position = 'right-top';else state.position = 'left-top';
|
|
315
|
+
} else if (rect.left + pickerWidth > windowWidth) state.position = 'right-bottom';else state.position = 'left-bottom';
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
state.current = _this4.getCurrent();
|
|
319
|
+
}
|
|
320
|
+
}));
|
|
321
|
+
|
|
322
|
+
if (focus && this.picker && 'resetRange' in this.picker && this.picker.resetRange) {
|
|
323
|
+
this.picker.resetRange((this.props.value || []).map(this.parseDate));
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
if (focus === true) {
|
|
327
|
+
this.firstRender = true; // this.props.onFocus()
|
|
328
|
+
|
|
329
|
+
this.bindClickAway();
|
|
330
|
+
} else {
|
|
331
|
+
this.props.onValueBlur();
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
_proto.triggerValueBlur = function triggerValueBlur(cb) {
|
|
336
|
+
var inputable = this.props.inputable;
|
|
337
|
+
var focus = this.state.focus;
|
|
338
|
+
if (cb && typeof cb === 'function') cb(); // OnChange is not triggered when handling copy and paste
|
|
339
|
+
|
|
340
|
+
if (inputable && focus === false) {
|
|
341
|
+
this.props.onValueBlur();
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
_proto.disabledRegister = function disabledRegister(disabled, mode, index) {
|
|
346
|
+
if (index === undefined) {
|
|
347
|
+
this.disabledMap[mode] = disabled;
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
if (!this.disabledMap[mode]) this.disabledMap[mode] = [];
|
|
352
|
+
this.disabledMap[mode][index] = disabled;
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
_proto.handleDisabled = function handleDisabled(date, index) {
|
|
356
|
+
var mode = this.props.type;
|
|
357
|
+
var disabledMap = this.disabledMap;
|
|
358
|
+
var isRange = index !== undefined;
|
|
359
|
+
|
|
360
|
+
switch (mode) {
|
|
361
|
+
case 'time':
|
|
362
|
+
return isRange ? disabledMap.time[index](date, undefined, undefined, true) : disabledMap.time(date, undefined, undefined, true);
|
|
363
|
+
|
|
364
|
+
case 'date':
|
|
365
|
+
return isRange ? disabledMap.day[index](date) : disabledMap.day(date);
|
|
366
|
+
|
|
367
|
+
case 'week':
|
|
368
|
+
return isRange ? disabledMap.day[index](date) : disabledMap.day(date);
|
|
369
|
+
|
|
370
|
+
case 'month':
|
|
371
|
+
return isRange ? disabledMap.month[index](date) : disabledMap.month(date);
|
|
372
|
+
|
|
373
|
+
case 'year':
|
|
374
|
+
return isRange ? disabledMap.year[index](date) : disabledMap.year(date);
|
|
375
|
+
|
|
376
|
+
case 'quarter':
|
|
377
|
+
return isRange ? disabledMap.quarter[index](date) : disabledMap.quarter(date);
|
|
378
|
+
|
|
379
|
+
case 'datetime':
|
|
380
|
+
return isRange ? disabledMap.time[index](date, undefined, undefined, true) || disabledMap.day[index](date) : disabledMap.time(date, undefined, undefined, true) || disabledMap.day(date);
|
|
381
|
+
|
|
382
|
+
default:
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
_proto.handleTextChange = function handleTextChange(date, index, e) {
|
|
388
|
+
var _this5 = this;
|
|
389
|
+
|
|
390
|
+
var _this$props3 = this.props,
|
|
391
|
+
disabledTime = _this$props3.disabledTime,
|
|
392
|
+
disabled = _this$props3.disabled,
|
|
393
|
+
max = _this$props3.max,
|
|
394
|
+
min = _this$props3.min,
|
|
395
|
+
range = _this$props3.range;
|
|
396
|
+
var format = this.getFormat();
|
|
397
|
+
var val = date ? utils.format(date, format, this.getOptions()) : '';
|
|
398
|
+
var isDisabled;
|
|
399
|
+
|
|
400
|
+
if (disabled || disabledTime || max || min || range) {
|
|
401
|
+
isDisabled = this.handleDisabled(date, index);
|
|
402
|
+
if (isDisabled) return;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if (!this.props.range && this.props.onChange) {
|
|
406
|
+
var close = !(e && e.target && this.element.contains(e.target));
|
|
407
|
+
this.props.onChange(val, close ? this.triggerValueBlur.bind(this, this.handleBlur) : undefined);
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
var value = [].concat(immer(this.props.value === undefined && range ? [] : this.props.value, function (draft) {
|
|
412
|
+
draft[index] = val;
|
|
413
|
+
}));
|
|
414
|
+
if (utils.compareAsc(value[0], value[1]) > 0) value.push(value.shift());
|
|
415
|
+
|
|
416
|
+
if (this.props.onChange) {
|
|
417
|
+
this.props.onChange(value, this.triggerValueBlur.bind(this, function () {
|
|
418
|
+
_this5.setState({
|
|
419
|
+
current: _this5.getCurrent()
|
|
420
|
+
});
|
|
421
|
+
}));
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
_proto.dateToCurrent = function dateToCurrent(date) {
|
|
426
|
+
var range = this.props.range;
|
|
427
|
+
if (!range || !Array.isArray(date)) return date;
|
|
428
|
+
var current = this.state.current;
|
|
429
|
+
return [date[0] || current[0], date[1] || current[1]];
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
_proto.handleChange = function handleChange(date, change, blur, _isEnd, isQuickSelect, areaType) {
|
|
433
|
+
var _this6 = this;
|
|
434
|
+
|
|
435
|
+
var onPickerChange = this.props.onPickerChange; // is range only select one
|
|
436
|
+
|
|
437
|
+
var rangeOne = this.props.range && Array.isArray(date) && !(date[0] && date[1]);
|
|
438
|
+
var format = this.getFormat();
|
|
439
|
+
var value;
|
|
440
|
+
if (this.props.range && Array.isArray(date)) value = date.map(function (v) {
|
|
441
|
+
return v ? utils.format(v, format, _this6.getOptions()) : v;
|
|
442
|
+
});else value = utils.format(date, format, this.getOptions());
|
|
443
|
+
var callback;
|
|
444
|
+
if (!this.props.range) callback = blur ? this.handleBlur : undefined;else {
|
|
445
|
+
callback = blur && !rangeOne ? this.handleBlur : undefined;
|
|
446
|
+
}
|
|
447
|
+
var newCurrent = this.dateToCurrent(date);
|
|
448
|
+
if (onPickerChange) onPickerChange(value, isQuickSelect, areaType);
|
|
449
|
+
|
|
450
|
+
if (change) {
|
|
451
|
+
this.setState({
|
|
452
|
+
current: newCurrent
|
|
453
|
+
});
|
|
454
|
+
this.props.onChange(value, callback, isQuickSelect);
|
|
455
|
+
} else {
|
|
456
|
+
this.setState({
|
|
457
|
+
current: newCurrent
|
|
458
|
+
}, callback);
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
_proto.handleClear = function handleClear(e) {
|
|
463
|
+
var _this7 = this;
|
|
464
|
+
|
|
465
|
+
var clearWithUndefined = this.props.clearWithUndefined;
|
|
466
|
+
e.stopPropagation();
|
|
467
|
+
var empty = clearWithUndefined ? undefined : '';
|
|
468
|
+
var value = this.props.range ? [empty, empty] : empty;
|
|
469
|
+
this.props.onChange(value, function () {
|
|
470
|
+
_this7.props.onValueBlur();
|
|
471
|
+
|
|
472
|
+
_this7.handleToggle(false);
|
|
473
|
+
|
|
474
|
+
_this7.element.focus();
|
|
475
|
+
});
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
_proto.handleHover = function handleHover(index, isEnter) {
|
|
479
|
+
var _this$setState;
|
|
480
|
+
|
|
481
|
+
this.setState((_this$setState = {}, _this$setState["picker" + index] = isEnter, _this$setState));
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
_proto.renderText = function renderText(value, placeholder, key) {
|
|
485
|
+
var _this$props4 = this.props,
|
|
486
|
+
inputable = _this$props4.inputable,
|
|
487
|
+
formatResult = _this$props4.formatResult,
|
|
488
|
+
disabled = _this$props4.disabled;
|
|
489
|
+
var date = this.parseDate(value);
|
|
490
|
+
var className = classnames(datepickerClass('txt', key !== undefined && this.state["picker" + key] && 'text-focus'), utils.isInvalid(date) && inputClass('placeholder'));
|
|
491
|
+
var resultFormat = formatResult || this.getFormat();
|
|
492
|
+
return React.createElement(Text, {
|
|
493
|
+
key: key || 'single',
|
|
494
|
+
onTextSpanRef: this.bindTextSpan,
|
|
495
|
+
focusElement: this.textSpan,
|
|
496
|
+
className: className,
|
|
497
|
+
focus: this.state.focus,
|
|
498
|
+
format: resultFormat,
|
|
499
|
+
index: key,
|
|
500
|
+
inputable: inputable,
|
|
501
|
+
placeholder: placeholder,
|
|
502
|
+
onChange: this.handleTextChange,
|
|
503
|
+
value: utils.isInvalid(date) ? undefined : utils.format(date, resultFormat, this.getOptions()),
|
|
504
|
+
disabled: disabled === true
|
|
505
|
+
});
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
_proto.renderResult = function renderResult() {
|
|
509
|
+
var _this8 = this;
|
|
510
|
+
|
|
511
|
+
var _this$props5 = this.props,
|
|
512
|
+
disabled = _this$props5.disabled,
|
|
513
|
+
range = _this$props5.range,
|
|
514
|
+
placeholder = _this$props5.placeholder,
|
|
515
|
+
type = _this$props5.type,
|
|
516
|
+
innerTitle = _this$props5.innerTitle,
|
|
517
|
+
inputable = _this$props5.inputable;
|
|
518
|
+
var value = this.props.value;
|
|
519
|
+
if (!value && range) value = []; // const isEmpty = !value || value.length === 0
|
|
520
|
+
|
|
521
|
+
var clearable = this.props.clearable;
|
|
522
|
+
if (disabled === true) clearable = false;
|
|
523
|
+
var isEmpty = (range ? value : [value]).reduce(function (result, str) {
|
|
524
|
+
var date = _this8.parseDate(str);
|
|
525
|
+
|
|
526
|
+
return result && utils.isInvalid(date);
|
|
527
|
+
}, true);
|
|
528
|
+
return React.createElement("div", {
|
|
529
|
+
className: datepickerClass('result')
|
|
530
|
+
}, React.createElement(InputTitle, {
|
|
531
|
+
className: datepickerClass('title-box'),
|
|
532
|
+
contentClass: inputTitleClass('hidable'),
|
|
533
|
+
innerTitle: innerTitle,
|
|
534
|
+
open: !isEmpty || inputable && this.state.focus
|
|
535
|
+
}, range && Array.isArray(value) ? [this.renderText(value[0], placeholder[0], 0), React.createElement("span", {
|
|
536
|
+
key: "-",
|
|
537
|
+
className: datepickerClass('separate')
|
|
538
|
+
}, "~"), this.renderText(value[1], placeholder[1], 1)] : this.renderText(value, placeholder)), React.createElement(Icon, {
|
|
539
|
+
className: isEmpty || !clearable ? '' : 'indecator',
|
|
540
|
+
name: type === 'time' ? 'Clock' : 'Calendar'
|
|
541
|
+
}), !isEmpty && clearable && React.createElement(Icon, {
|
|
542
|
+
name: "CloseCircle",
|
|
543
|
+
className: "close",
|
|
544
|
+
tag: "a",
|
|
545
|
+
onClick: this.handleClear
|
|
546
|
+
}));
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
_proto.renderWrappedPicker = function renderWrappedPicker() {
|
|
550
|
+
var _this$state = this.state,
|
|
551
|
+
focus = _this$state.focus,
|
|
552
|
+
position = _this$state.position;
|
|
553
|
+
var _this$props6 = this.props,
|
|
554
|
+
absolute = _this$props6.absolute,
|
|
555
|
+
zIndex = _this$props6.zIndex,
|
|
556
|
+
quickSelect = _this$props6.quickSelect;
|
|
557
|
+
var props = {
|
|
558
|
+
absolute: absolute,
|
|
559
|
+
focus: focus,
|
|
560
|
+
className: datepickerClass('picker', 'location', "absolute-" + getCurrentPosition(position), quickSelect && getDirectionClass('quick')),
|
|
561
|
+
zIndex: zIndex,
|
|
562
|
+
getRef: this.bindWrappedPicker
|
|
563
|
+
}; // computed absolute position needed
|
|
564
|
+
|
|
565
|
+
if (absolute) {
|
|
566
|
+
props.rootClass = datepickerClass('absolute', isRTL() && 'rtl');
|
|
567
|
+
props.parentElement = this.element;
|
|
568
|
+
props.position = position;
|
|
569
|
+
} else {
|
|
570
|
+
props.position = getCurrentPosition(position);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
return React.createElement(OptionList, props, this.renderPicker());
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
_proto.renderPicker = function renderPicker() {
|
|
577
|
+
var _this9 = this;
|
|
578
|
+
|
|
579
|
+
if (!this.firstRender) return undefined;
|
|
580
|
+
var _this$props7 = this.props,
|
|
581
|
+
range = _this$props7.range,
|
|
582
|
+
type = _this$props7.type,
|
|
583
|
+
value = _this$props7.value,
|
|
584
|
+
min = _this$props7.min,
|
|
585
|
+
max = _this$props7.max,
|
|
586
|
+
disabled = _this$props7.disabled,
|
|
587
|
+
allowSingle = _this$props7.allowSingle,
|
|
588
|
+
hourStep = _this$props7.hourStep,
|
|
589
|
+
minuteStep = _this$props7.minuteStep,
|
|
590
|
+
secondStep = _this$props7.secondStep,
|
|
591
|
+
disabledTime = _this$props7.disabledTime,
|
|
592
|
+
timeZone = _this$props7.timeZone;
|
|
593
|
+
var format = this.getFormat();
|
|
594
|
+
var quicks = this.getQuick(format);
|
|
595
|
+
var Component = range ? Range : Picker;
|
|
596
|
+
return React.createElement(Component, {
|
|
597
|
+
ref: this.bindPicker,
|
|
598
|
+
defaultTime: this.getDefaultTime(),
|
|
599
|
+
current: this.state.current,
|
|
600
|
+
format: format,
|
|
601
|
+
disabled: typeof disabled === 'function' ? disabled : undefined,
|
|
602
|
+
onChange: this.handleChange,
|
|
603
|
+
type: type,
|
|
604
|
+
range: range,
|
|
605
|
+
quicks: quicks,
|
|
606
|
+
value: range ? (value || []).map(function (v) {
|
|
607
|
+
return _this9.parseDate(v);
|
|
608
|
+
}) : this.parseDate(value),
|
|
609
|
+
showTimePicker: !!value,
|
|
610
|
+
allowSingle: allowSingle,
|
|
611
|
+
handleHover: this.handleHover,
|
|
612
|
+
min: DateFns.toDateWithFormat(min, format, undefined, this.getOptions()),
|
|
613
|
+
max: DateFns.toDateWithFormat(max, format, undefined, this.getOptions()),
|
|
614
|
+
hourStep: hourStep,
|
|
615
|
+
minuteStep: minuteStep,
|
|
616
|
+
secondStep: secondStep,
|
|
617
|
+
disabledTime: disabledTime,
|
|
618
|
+
disabledRegister: this.disabledRegister,
|
|
619
|
+
timeZone: timeZone
|
|
620
|
+
}, this.props.children);
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
_proto.render = function render() {
|
|
624
|
+
var _this$props8 = this.props,
|
|
625
|
+
range = _this$props8.range,
|
|
626
|
+
size = _this$props8.size,
|
|
627
|
+
disabled = _this$props8.disabled,
|
|
628
|
+
align = _this$props8.align,
|
|
629
|
+
innerTitle = _this$props8.innerTitle;
|
|
630
|
+
var focus = this.state.focus;
|
|
631
|
+
var rtl = isRTL();
|
|
632
|
+
var className = datepickerClass('inner', range && 'range', size && "size-" + size, focus && 'focus', disabled === true && 'disabled', align && "align-" + align, getCurrentPosition(this.state.position), rtl && 'rtl', innerTitle && 'inner-title');
|
|
633
|
+
return React.createElement("div", {
|
|
634
|
+
// eslint-disable-next-line
|
|
635
|
+
tabIndex: disabled === true ? -1 : 0,
|
|
636
|
+
className: className,
|
|
637
|
+
onFocus: this.handleFocus,
|
|
638
|
+
"data-id": this.pickerId,
|
|
639
|
+
ref: this.bindElement,
|
|
640
|
+
onClick: this.handleClick,
|
|
641
|
+
onKeyDown: this.handleKeyDown
|
|
642
|
+
}, this.renderResult(), this.renderWrappedPicker());
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
return Container;
|
|
646
|
+
}(PureComponent);
|
|
647
|
+
|
|
648
|
+
_defineProperty(Container, "defaultProps", DefaultValue);
|
|
649
|
+
|
|
650
|
+
export default Container;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PureComponent } from '../component';
|
|
3
|
+
import { UnionPannelProps } from './Props';
|
|
4
|
+
interface DayState {
|
|
5
|
+
hover: Date | null;
|
|
6
|
+
}
|
|
7
|
+
declare class Day extends PureComponent<UnionPannelProps, DayState> {
|
|
8
|
+
handleNextMonth: () => void;
|
|
9
|
+
handlePrevMonth: () => void;
|
|
10
|
+
handleNextYear: () => void;
|
|
11
|
+
handlePrevYear: () => void;
|
|
12
|
+
handleMonthMode: () => void;
|
|
13
|
+
handleYearMode: () => void;
|
|
14
|
+
handleWeekLeave: () => void;
|
|
15
|
+
cachedDays: Date[];
|
|
16
|
+
cachedDate: Date;
|
|
17
|
+
today: Date;
|
|
18
|
+
constructor(props: UnionPannelProps);
|
|
19
|
+
getOptions(): {
|
|
20
|
+
timeZone: string | undefined;
|
|
21
|
+
weekStartsOn: any;
|
|
22
|
+
};
|
|
23
|
+
getDays(): Date[];
|
|
24
|
+
formatWithDefaultTime(i?: number): Date;
|
|
25
|
+
handleDayDoubleClick(date: Date): void;
|
|
26
|
+
handleDayClick(date: Date, sync?: number): void;
|
|
27
|
+
handleTimeChange(time: Date): void;
|
|
28
|
+
handleWeek(hover: boolean): void;
|
|
29
|
+
handleMonth(month: number): void;
|
|
30
|
+
handleModeChange(mode: 'month' | 'year'): void;
|
|
31
|
+
handleDayHover(date: Date): void;
|
|
32
|
+
handleDisabled(date: Date, minDate?: Date, maxDate?: Date): boolean;
|
|
33
|
+
renderDay(date: Date, minD?: Date, maxD?: Date): JSX.Element;
|
|
34
|
+
renderTimepicker(): JSX.Element | undefined;
|
|
35
|
+
render(): JSX.Element;
|
|
36
|
+
}
|
|
37
|
+
export default Day;
|