@aloudata/aloudata-design 0.2.7 → 0.3.0-beta.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/es/Avatar/index.d.ts +15 -0
- package/es/Avatar/index.js +33 -0
- package/es/Avatar/style/index.d.ts +2 -0
- package/es/Avatar/style/index.js +2 -0
- package/es/Avatar/style/index.less +34 -0
- package/es/Breadcrumb/index.d.ts +8 -0
- package/es/Breadcrumb/index.js +36 -0
- package/es/Breadcrumb/style/index.d.ts +2 -0
- package/es/Breadcrumb/style/index.js +2 -0
- package/es/Breadcrumb/style/index.less +28 -0
- package/es/Button/index.d.ts +4 -4
- package/es/Button/index.js +28 -23
- package/es/Button/style/index.less +163 -130
- package/es/Button/style/variables.less +60 -0
- package/es/Checkbox/style/index.less +16 -1
- package/es/ConfigProvider/index.d.ts +1 -0
- package/es/ConfigProvider/index.js +1 -0
- package/es/Dropdown/Button.js +1 -1
- package/es/Dropdown/style/index.less +41 -8
- package/es/Empty/image/Authority.d.ts +3 -0
- package/es/Empty/image/Authority.js +360 -0
- package/es/Empty/image/Dataspace.d.ts +3 -0
- package/es/Empty/image/Dataspace.js +271 -0
- package/es/Empty/image/Search.d.ts +3 -0
- package/es/Empty/image/Search.js +156 -0
- package/es/Empty/image/Simple.d.ts +3 -0
- package/es/Empty/image/Simple.js +20 -0
- package/es/Empty/image/Worksheet.d.ts +3 -0
- package/es/Empty/image/Worksheet.js +270 -0
- package/es/Empty/image/empty.d.ts +3 -0
- package/es/Empty/image/empty.js +139 -0
- package/es/Empty/index.d.ts +21 -5
- package/es/Empty/index.js +84 -54
- package/es/Empty/style/index.less +56 -11
- package/es/Icon/index.d.ts +2 -2
- package/es/Icon/index.js +10 -2
- package/es/Input/components/Group/index.d.ts +4 -2
- package/es/Input/components/Group/index.js +23 -1
- package/es/Input/components/Input/index.d.ts +1 -1
- package/es/Input/components/Input/index.js +12 -0
- package/es/Input/components/Password/index.d.ts +7 -1
- package/es/Input/components/Password/index.js +25 -3
- package/es/Input/style/index.less +278 -43
- package/es/InputNumber/index.d.ts +4 -0
- package/es/InputNumber/index.js +32 -0
- package/es/InputNumber/style/index.d.ts +2 -0
- package/es/InputNumber/style/index.js +2 -0
- package/es/InputNumber/style/index.less +152 -0
- package/es/Menu/Divider.d.ts +2 -1
- package/es/Menu/MenuItem.d.ts +2 -1
- package/es/Menu/SubMenu.d.ts +2 -1
- package/es/Menu/SubMenu.js +1 -1
- package/es/Menu/index.d.ts +2 -1
- package/es/Menu/style/index.less +1 -2
- package/es/Modal/index.d.ts +21 -0
- package/es/Modal/index.js +93 -0
- package/es/Modal/style/index.d.ts +2 -0
- package/es/Modal/style/index.js +2 -0
- package/es/Modal/style/index.less +206 -0
- package/es/Navigator/components/Header/index.d.ts +9 -0
- package/es/Navigator/components/Header/index.js +18 -0
- package/es/Navigator/components/Menu/index.d.ts +7 -13
- package/es/Navigator/components/Menu/index.js +26 -119
- package/es/Navigator/components/MenuItem/index.d.ts +21 -0
- package/es/Navigator/components/MenuItem/index.js +39 -0
- package/es/Navigator/index.d.ts +19 -8
- package/es/Navigator/index.js +6 -15
- package/es/Navigator/style/bg.png +0 -0
- package/es/Navigator/style/index.less +58 -166
- package/es/Popover/index.d.ts +5 -0
- package/es/Popover/index.js +22 -0
- package/es/Popover/style/index.d.ts +2 -0
- package/es/Popover/style/index.js +2 -0
- package/es/Popover/style/index.less +37 -0
- package/es/Radio/index.d.ts +2 -3
- package/es/Select/index.d.ts +36 -9
- package/es/Select/index.js +154 -7
- package/es/Select/rc-select/BaseSelect.d.ts +116 -0
- package/es/Select/rc-select/BaseSelect.js +641 -0
- package/es/Select/rc-select/OptGroup.d.ts +12 -0
- package/es/Select/{OptionsList → rc-select}/OptGroup.js +1 -0
- package/es/Select/rc-select/Option.d.ts +14 -0
- package/es/Select/{OptionsList/Options.js → rc-select/Option.js} +1 -0
- package/es/Select/rc-select/OptionList.d.ts +10 -0
- package/es/Select/rc-select/OptionList.js +401 -0
- package/es/Select/rc-select/Select.d.ts +109 -0
- package/es/Select/rc-select/Select.js +547 -0
- package/es/Select/rc-select/SelectContext.d.ts +20 -0
- package/es/Select/rc-select/SelectContext.js +4 -0
- package/es/Select/rc-select/SelectTrigger.d.ts +30 -0
- package/es/Select/rc-select/SelectTrigger.js +136 -0
- package/es/Select/rc-select/Selector/Input.d.ts +26 -0
- package/es/Select/rc-select/Selector/Input.js +114 -0
- package/es/Select/rc-select/Selector/MultipleSelector.d.ts +16 -0
- package/es/Select/rc-select/Selector/MultipleSelector.js +236 -0
- package/es/Select/rc-select/Selector/SingleSelector.d.ts +8 -0
- package/es/Select/rc-select/Selector/SingleSelector.js +112 -0
- package/es/Select/rc-select/Selector/index.d.ts +80 -0
- package/es/Select/rc-select/Selector/index.js +194 -0
- package/es/Select/rc-select/TransBtn.d.ts +12 -0
- package/es/Select/rc-select/TransBtn.js +42 -0
- package/es/Select/rc-select/hooks/useBaseProps.d.ts +13 -0
- package/es/Select/rc-select/hooks/useBaseProps.js +11 -0
- package/es/Select/rc-select/hooks/useCache.d.ts +7 -0
- package/es/Select/rc-select/hooks/useCache.js +49 -0
- package/es/Select/rc-select/hooks/useDelayReset.d.ts +5 -0
- package/es/Select/rc-select/hooks/useDelayReset.js +50 -0
- package/es/Select/rc-select/hooks/useFilterOptions.d.ts +3 -0
- package/es/Select/rc-select/hooks/useFilterOptions.js +75 -0
- package/es/Select/rc-select/hooks/useId.d.ts +5 -0
- package/es/Select/rc-select/hooks/useId.js +47 -0
- package/es/Select/rc-select/hooks/useLayoutEffect.d.ts +5 -0
- package/es/Select/rc-select/hooks/useLayoutEffect.js +17 -0
- package/es/Select/rc-select/hooks/useLock.d.ts +7 -0
- package/es/Select/rc-select/hooks/useLock.js +35 -0
- package/es/Select/rc-select/hooks/useOptions.d.ts +11 -0
- package/es/Select/rc-select/hooks/useOptions.js +53 -0
- package/es/Select/rc-select/hooks/useRefFunc.d.ts +5 -0
- package/es/Select/rc-select/hooks/useRefFunc.js +15 -0
- package/es/Select/rc-select/hooks/useSelectTriggerControl.d.ts +1 -0
- package/es/Select/rc-select/hooks/useSelectTriggerControl.js +40 -0
- package/es/Select/rc-select/index.d.ts +10 -0
- package/es/Select/rc-select/index.js +7 -0
- package/es/Select/rc-select/interface.d.ts +10 -0
- package/es/Select/{interface.js → rc-select/interface.js} +0 -0
- package/es/Select/rc-select/utils/commonUtil.d.ts +4 -0
- package/es/Select/rc-select/utils/commonUtil.js +12 -0
- package/es/Select/rc-select/utils/keyUtil.d.ts +2 -0
- package/es/Select/rc-select/utils/keyUtil.js +8 -0
- package/es/Select/rc-select/utils/legacyUtil.d.ts +3 -0
- package/es/Select/rc-select/utils/legacyUtil.js +58 -0
- package/es/Select/rc-select/utils/platformUtil.d.ts +1 -0
- package/es/Select/rc-select/utils/platformUtil.js +4 -0
- package/es/Select/rc-select/utils/valueUtil.d.ts +22 -0
- package/es/Select/rc-select/utils/valueUtil.js +157 -0
- package/es/Select/rc-select/utils/warningPropsUtil.d.ts +3 -0
- package/es/Select/rc-select/utils/warningPropsUtil.js +114 -0
- package/es/Select/style/index.d.ts +2 -0
- package/es/Select/style/index.js +4 -1
- package/es/Select/style/index.less +173 -494
- package/es/Select/style/multiple.less +222 -0
- package/es/Select/style/rtl.less +168 -0
- package/es/Select/style/select.less +337 -0
- package/es/Select/style/single.less +179 -0
- package/es/Select/style/status.less +48 -0
- package/es/Select/style/variables.less +56 -0
- package/es/Select/style/variables.less.d.ts +97 -0
- package/es/Select/utils/iconUtil.d.ts +24 -0
- package/es/Select/utils/iconUtil.js +87 -0
- package/es/Space/index.d.ts +1 -1
- package/es/Space/index.js +0 -1
- package/es/Table/Table.d.ts +6 -0
- package/es/Table/Table.js +464 -0
- package/es/Table/components/Empty/empty-img.png +0 -0
- package/es/Table/components/Empty/index.d.ts +4 -0
- package/es/Table/components/Empty/index.js +16 -0
- package/es/Table/components/Empty/index.less +24 -0
- package/es/Table/index.d.ts +2 -4
- package/es/Table/index.js +2 -463
- package/es/Table/interface.d.ts +11 -15
- package/es/Table/style/index.less +44 -21
- package/es/Tabs/style/index.less +39 -7
- package/es/Tooltip/style/index.less +2 -1
- package/es/index.d.ts +14 -2
- package/es/index.js +7 -1
- package/es/style/index.less +2 -1
- package/es/style/mixins/index.less +8 -0
- package/es/style/themes/default/index.less +10 -10
- package/es/style/themes/default/themeColor.module.less +58 -94
- package/es/style/themes/default/themeColor.module.less.d.ts +1 -17
- package/lib/Avatar/index.d.ts +15 -0
- package/lib/Avatar/index.js +57 -0
- package/lib/Avatar/style/index.d.ts +2 -0
- package/lib/Avatar/style/index.js +5 -0
- package/lib/Avatar/style/index.less +34 -0
- package/lib/Breadcrumb/index.d.ts +8 -0
- package/lib/Breadcrumb/index.js +50 -0
- package/lib/Breadcrumb/style/index.d.ts +2 -0
- package/lib/Breadcrumb/style/index.js +5 -0
- package/lib/Breadcrumb/style/index.less +28 -0
- package/lib/Button/index.d.ts +4 -4
- package/lib/Button/index.js +28 -24
- package/lib/Button/style/index.less +163 -130
- package/lib/Button/style/variables.less +60 -0
- package/lib/Checkbox/style/index.less +16 -1
- package/lib/ConfigProvider/index.d.ts +1 -0
- package/lib/ConfigProvider/index.js +26 -0
- package/lib/Dropdown/Button.js +1 -1
- package/lib/Dropdown/style/index.less +41 -8
- package/lib/Empty/image/Authority.d.ts +3 -0
- package/lib/Empty/image/Authority.js +374 -0
- package/lib/Empty/image/Dataspace.d.ts +3 -0
- package/lib/Empty/image/Dataspace.js +285 -0
- package/lib/Empty/image/Search.d.ts +3 -0
- package/lib/Empty/image/Search.js +170 -0
- package/lib/Empty/image/Simple.d.ts +3 -0
- package/lib/Empty/image/Simple.js +34 -0
- package/lib/Empty/image/Worksheet.d.ts +3 -0
- package/lib/Empty/image/Worksheet.js +284 -0
- package/lib/Empty/image/empty.d.ts +3 -0
- package/lib/Empty/image/empty.js +153 -0
- package/lib/Empty/index.d.ts +21 -5
- package/lib/Empty/index.js +94 -53
- package/lib/Empty/style/index.less +56 -11
- package/lib/Icon/index.d.ts +2 -2
- package/lib/Icon/index.js +10 -2
- package/lib/Input/components/Group/index.d.ts +4 -2
- package/lib/Input/components/Group/index.js +24 -1
- package/lib/Input/components/Input/index.d.ts +1 -1
- package/lib/Input/components/Input/index.js +13 -0
- package/lib/Input/components/Password/index.d.ts +7 -1
- package/lib/Input/components/Password/index.js +25 -2
- package/lib/Input/style/index.less +278 -43
- package/lib/InputNumber/index.d.ts +4 -0
- package/lib/InputNumber/index.js +45 -0
- package/lib/InputNumber/style/index.d.ts +2 -0
- package/lib/InputNumber/style/index.js +5 -0
- package/lib/InputNumber/style/index.less +152 -0
- package/lib/Menu/Divider.d.ts +2 -1
- package/lib/Menu/MenuItem.d.ts +2 -1
- package/lib/Menu/SubMenu.d.ts +2 -1
- package/lib/Menu/SubMenu.js +1 -1
- package/lib/Menu/index.d.ts +2 -1
- package/lib/Menu/style/index.less +1 -2
- package/lib/Modal/index.d.ts +21 -0
- package/lib/Modal/index.js +119 -0
- package/lib/Modal/style/index.d.ts +2 -0
- package/lib/Modal/style/index.js +5 -0
- package/lib/Modal/style/index.less +206 -0
- package/lib/Navigator/components/Header/index.d.ts +9 -0
- package/lib/Navigator/components/Header/index.js +28 -0
- package/lib/Navigator/components/Menu/index.d.ts +7 -13
- package/lib/Navigator/components/Menu/index.js +25 -118
- package/lib/Navigator/components/MenuItem/index.d.ts +21 -0
- package/lib/Navigator/components/MenuItem/index.js +56 -0
- package/lib/Navigator/index.d.ts +19 -8
- package/lib/Navigator/index.js +7 -15
- package/lib/Navigator/style/bg.png +0 -0
- package/lib/Navigator/style/index.less +58 -166
- package/lib/Popover/index.d.ts +5 -0
- package/lib/Popover/index.js +35 -0
- package/lib/Popover/style/index.d.ts +2 -0
- package/lib/Popover/style/index.js +5 -0
- package/lib/Popover/style/index.less +37 -0
- package/lib/Radio/index.d.ts +2 -3
- package/lib/Select/index.d.ts +36 -9
- package/lib/Select/index.js +166 -18
- package/lib/Select/rc-select/BaseSelect.d.ts +116 -0
- package/lib/Select/rc-select/BaseSelect.js +672 -0
- package/lib/Select/rc-select/OptGroup.d.ts +12 -0
- package/lib/Select/{OptionsList → rc-select}/OptGroup.js +1 -0
- package/lib/Select/rc-select/Option.d.ts +14 -0
- package/lib/Select/{OptionsList/Options.js → rc-select/Option.js} +1 -0
- package/lib/Select/rc-select/OptionList.d.ts +10 -0
- package/lib/Select/rc-select/OptionList.js +427 -0
- package/lib/Select/rc-select/Select.d.ts +109 -0
- package/lib/Select/rc-select/Select.js +545 -0
- package/lib/Select/rc-select/SelectContext.d.ts +20 -0
- package/lib/Select/rc-select/SelectContext.js +19 -0
- package/lib/Select/rc-select/SelectTrigger.d.ts +30 -0
- package/lib/Select/rc-select/SelectTrigger.js +153 -0
- package/lib/Select/rc-select/Selector/Input.d.ts +26 -0
- package/lib/Select/rc-select/Selector/Input.js +132 -0
- package/lib/Select/rc-select/Selector/MultipleSelector.d.ts +16 -0
- package/lib/Select/rc-select/Selector/MultipleSelector.js +257 -0
- package/lib/Select/rc-select/Selector/SingleSelector.d.ts +8 -0
- package/lib/Select/rc-select/Selector/SingleSelector.js +129 -0
- package/lib/Select/rc-select/Selector/index.d.ts +80 -0
- package/lib/Select/rc-select/Selector/index.js +203 -0
- package/lib/Select/rc-select/TransBtn.d.ts +12 -0
- package/lib/Select/rc-select/TransBtn.js +59 -0
- package/lib/Select/rc-select/hooks/useBaseProps.d.ts +13 -0
- package/lib/Select/rc-select/hooks/useBaseProps.js +28 -0
- package/lib/Select/rc-select/hooks/useCache.d.ts +7 -0
- package/lib/Select/rc-select/hooks/useCache.js +63 -0
- package/lib/Select/rc-select/hooks/useDelayReset.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useDelayReset.js +62 -0
- package/lib/Select/rc-select/hooks/useFilterOptions.d.ts +3 -0
- package/lib/Select/rc-select/hooks/useFilterOptions.js +91 -0
- package/lib/Select/rc-select/hooks/useId.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useId.js +68 -0
- package/lib/Select/rc-select/hooks/useLayoutEffect.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useLayoutEffect.js +32 -0
- package/lib/Select/rc-select/hooks/useLock.d.ts +7 -0
- package/lib/Select/rc-select/hooks/useLock.js +49 -0
- package/lib/Select/rc-select/hooks/useOptions.d.ts +11 -0
- package/lib/Select/rc-select/hooks/useOptions.js +68 -0
- package/lib/Select/rc-select/hooks/useRefFunc.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useRefFunc.js +29 -0
- package/lib/Select/rc-select/hooks/useSelectTriggerControl.d.ts +1 -0
- package/lib/Select/rc-select/hooks/useSelectTriggerControl.js +54 -0
- package/lib/Select/rc-select/index.d.ts +10 -0
- package/lib/Select/rc-select/index.js +45 -0
- package/lib/Select/rc-select/interface.d.ts +10 -0
- package/lib/Select/{interface.js → rc-select/interface.js} +0 -0
- package/lib/Select/rc-select/utils/commonUtil.d.ts +4 -0
- package/lib/Select/rc-select/utils/commonUtil.js +23 -0
- package/lib/Select/rc-select/utils/keyUtil.d.ts +2 -0
- package/lib/Select/rc-select/utils/keyUtil.js +17 -0
- package/lib/Select/rc-select/utils/legacyUtil.d.ts +3 -0
- package/lib/Select/rc-select/utils/legacyUtil.js +73 -0
- package/lib/Select/rc-select/utils/platformUtil.d.ts +1 -0
- package/lib/Select/rc-select/utils/platformUtil.js +11 -0
- package/lib/Select/rc-select/utils/valueUtil.d.ts +22 -0
- package/lib/Select/rc-select/utils/valueUtil.js +172 -0
- package/lib/Select/rc-select/utils/warningPropsUtil.d.ts +3 -0
- package/lib/Select/rc-select/utils/warningPropsUtil.js +132 -0
- package/lib/Select/style/index.d.ts +2 -0
- package/lib/Select/style/index.js +4 -0
- package/lib/Select/style/index.less +173 -494
- package/lib/Select/style/multiple.less +222 -0
- package/lib/Select/style/rtl.less +168 -0
- package/lib/Select/style/select.less +337 -0
- package/lib/Select/style/single.less +179 -0
- package/lib/Select/style/status.less +48 -0
- package/lib/Select/style/variables.less +56 -0
- package/lib/Select/style/variables.less.d.ts +97 -0
- package/lib/Select/utils/iconUtil.d.ts +24 -0
- package/lib/Select/utils/iconUtil.js +109 -0
- package/lib/Space/index.d.ts +1 -1
- package/lib/Space/index.js +0 -6
- package/lib/Table/Table.d.ts +6 -0
- package/lib/Table/Table.js +491 -0
- package/lib/Table/components/Empty/empty-img.png +0 -0
- package/lib/Table/components/Empty/index.d.ts +4 -0
- package/lib/Table/components/Empty/index.js +30 -0
- package/lib/Table/components/Empty/index.less +24 -0
- package/lib/Table/index.d.ts +2 -4
- package/lib/Table/index.js +2 -478
- package/lib/Table/interface.d.ts +11 -15
- package/lib/Table/style/index.less +44 -21
- package/lib/Tabs/style/index.less +39 -7
- package/lib/Tooltip/style/index.less +2 -1
- package/lib/index.d.ts +14 -2
- package/lib/index.js +48 -0
- package/lib/style/index.less +2 -1
- package/lib/style/mixins/index.less +8 -0
- package/lib/style/themes/default/index.less +10 -10
- package/lib/style/themes/default/themeColor.module.less +58 -94
- package/lib/style/themes/default/themeColor.module.less.d.ts +1 -17
- package/package.json +3 -2
- package/es/Select/BaseSelect.d.ts +0 -5
- package/es/Select/BaseSelect.js +0 -413
- package/es/Select/OptionsList/OptGroup.d.ts +0 -7
- package/es/Select/OptionsList/OptionItem/RenderGroup.d.ts +0 -9
- package/es/Select/OptionsList/OptionItem/RenderGroup.js +0 -16
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +0 -10
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +0 -45
- package/es/Select/OptionsList/OptionItem/RenderOption.d.ts +0 -16
- package/es/Select/OptionsList/OptionItem/RenderOption.js +0 -79
- package/es/Select/OptionsList/OptionItem/RenderTooltip.d.ts +0 -8
- package/es/Select/OptionsList/OptionItem/RenderTooltip.js +0 -25
- package/es/Select/OptionsList/OptionItem.d.ts +0 -4
- package/es/Select/OptionsList/OptionItem.js +0 -4
- package/es/Select/OptionsList/Options.d.ts +0 -7
- package/es/Select/OptionsList/index.d.ts +0 -4
- package/es/Select/OptionsList/index.js +0 -176
- package/es/Select/Selector/index.d.ts +0 -4
- package/es/Select/Selector/index.js +0 -252
- package/es/Select/VirtualList.d.ts +0 -5
- package/es/Select/VirtualList.js +0 -29
- package/es/Select/hooks/useCacheOption.d.ts +0 -9
- package/es/Select/hooks/useCacheOption.js +0 -107
- package/es/Select/interface.d.ts +0 -235
- package/es/Select/utils.d.ts +0 -21
- package/es/Select/utils.js +0 -193
- package/lib/Select/BaseSelect.d.ts +0 -5
- package/lib/Select/BaseSelect.js +0 -446
- package/lib/Select/OptionsList/OptGroup.d.ts +0 -7
- package/lib/Select/OptionsList/OptionItem/RenderGroup.d.ts +0 -9
- package/lib/Select/OptionsList/OptionItem/RenderGroup.js +0 -27
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +0 -10
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +0 -60
- package/lib/Select/OptionsList/OptionItem/RenderOption.d.ts +0 -16
- package/lib/Select/OptionsList/OptionItem/RenderOption.js +0 -94
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.d.ts +0 -8
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.js +0 -37
- package/lib/Select/OptionsList/OptionItem.d.ts +0 -4
- package/lib/Select/OptionsList/OptionItem.js +0 -39
- package/lib/Select/OptionsList/Options.d.ts +0 -7
- package/lib/Select/OptionsList/index.d.ts +0 -4
- package/lib/Select/OptionsList/index.js +0 -195
- package/lib/Select/Selector/index.d.ts +0 -4
- package/lib/Select/Selector/index.js +0 -276
- package/lib/Select/VirtualList.d.ts +0 -5
- package/lib/Select/VirtualList.js +0 -42
- package/lib/Select/hooks/useCacheOption.d.ts +0 -9
- package/lib/Select/hooks/useCacheOption.js +0 -113
- package/lib/Select/interface.d.ts +0 -235
- package/lib/Select/utils.d.ts +0 -21
- package/lib/Select/utils.js +0 -233
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
require("antd/es/popover/style");
|
|
9
|
+
|
|
10
|
+
var _popover = _interopRequireDefault(require("antd/es/popover"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
16
|
+
var _excluded = ["overlayClassName", "children"];
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
+
|
|
22
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
|
+
|
|
24
|
+
function Popover(props) {
|
|
25
|
+
var overlayClassName = props.overlayClassName,
|
|
26
|
+
children = props.children,
|
|
27
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
28
|
+
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_popover.default, Object.assign({
|
|
30
|
+
overlayClassName: (0, _classnames.default)('ald-popover', overlayClassName)
|
|
31
|
+
}, restProps), children);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var _default = Popover;
|
|
35
|
+
exports.default = _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
2
|
+
|
|
3
|
+
.ald-popover {
|
|
4
|
+
.ant-popover-arrow {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ant-popover-title {
|
|
9
|
+
min-width: 312px;
|
|
10
|
+
height: 24px;
|
|
11
|
+
min-height: 24px;
|
|
12
|
+
padding: 0;
|
|
13
|
+
color: @NL0;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
font-family: 'PingFang SC', sans-serif;
|
|
17
|
+
font-style: normal;
|
|
18
|
+
line-height: 24px;
|
|
19
|
+
border-bottom-width: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ant-popover-inner-content {
|
|
23
|
+
min-height: 112px;
|
|
24
|
+
padding: 24px 0 0;
|
|
25
|
+
color: @NL0;
|
|
26
|
+
font-weight: 400;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
font-family: 'PingFang SC', sans-serif;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
line-height: 20px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ant-popover-inner {
|
|
34
|
+
padding: 16px 24px;
|
|
35
|
+
border-radius: 8px;
|
|
36
|
+
}
|
|
37
|
+
}
|
package/lib/Radio/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Radio
|
|
2
|
-
export { RadioGroupButtonStyle, RadioGroupOptionType, RadioGroupContextProps, RadioChangeEventTarget, } from 'antd/lib/radio';
|
|
3
|
-
export { RadioProps, RadioChangeEvent, RadioGroupProps };
|
|
1
|
+
import { Radio } from 'antd';
|
|
2
|
+
export { RadioGroupButtonStyle, RadioGroupOptionType, RadioGroupProps, RadioGroupContextProps, RadioProps, RadioChangeEventTarget, RadioChangeEvent, } from 'antd/lib/radio';
|
|
4
3
|
export default Radio;
|
package/lib/Select/index.d.ts
CHANGED
|
@@ -1,11 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { SelectProps as RcSelectProps } from './rc-select';
|
|
2
|
+
import { BaseSelectRef, OptGroup, Option } from './rc-select';
|
|
3
|
+
import { OptionProps } from './rc-select/Option';
|
|
4
|
+
import type { BaseOptionType, DefaultOptionType } from './rc-select/Select';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import type { SizeType } from 'antd/lib/config-provider/SizeContext';
|
|
7
|
+
import { SelectCommonPlacement } from 'antd/lib/_util/motion';
|
|
8
|
+
import type { InputStatus } from 'antd/lib/_util/statusUtils';
|
|
9
|
+
declare type RawValue = string | number;
|
|
10
|
+
export type { OptionProps, BaseSelectRef as RefSelectProps, BaseOptionType, DefaultOptionType };
|
|
11
|
+
export interface LabeledValue {
|
|
12
|
+
key?: string;
|
|
13
|
+
value: RawValue;
|
|
14
|
+
label: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined;
|
|
17
|
+
export interface InternalSelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<RcSelectProps<ValueType, OptionType>, 'mode'> {
|
|
18
|
+
suffixIcon?: React.ReactNode;
|
|
19
|
+
size?: SizeType;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
22
|
+
bordered?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface SelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'inputIcon' | 'mode' | 'getInputElement' | 'getRawInputElement' | 'backfill' | 'placement'> {
|
|
25
|
+
placement?: SelectCommonPlacement;
|
|
26
|
+
mode?: 'multiple' | 'tags';
|
|
27
|
+
status?: InputStatus;
|
|
28
|
+
}
|
|
29
|
+
declare const Select: (<ValueType = any, OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
} & {
|
|
32
|
+
ref?: ((instance: BaseSelectRef | null) => void) | React.RefObject<BaseSelectRef> | null | undefined;
|
|
33
|
+
}) => React.ReactElement) & {
|
|
34
|
+
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
35
|
+
Option: typeof Option;
|
|
36
|
+
OptGroup: typeof OptGroup;
|
|
8
37
|
};
|
|
9
|
-
declare const Select: TSelect;
|
|
10
|
-
export { Options as Option, OptGroup as Group, SelectProps, OptionProps, Option as SelectOptions, OptGroupProps as GroupProps, };
|
|
11
38
|
export default Select;
|
package/lib/Select/index.js
CHANGED
|
@@ -1,32 +1,180 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
|
-
Object.defineProperty(exports, "Group", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _OptGroup.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "Option", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _Options.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
8
|
exports.default = void 0;
|
|
19
9
|
|
|
20
|
-
var
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _rcSelect = _interopRequireWildcard(require("./rc-select"));
|
|
13
|
+
|
|
14
|
+
var _omit = _interopRequireDefault(require("rc-util/lib/omit"));
|
|
15
|
+
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _configProvider = require("antd/lib/config-provider");
|
|
19
|
+
|
|
20
|
+
var _SizeContext = _interopRequireDefault(require("antd/lib/config-provider/SizeContext"));
|
|
21
|
+
|
|
22
|
+
var _DisabledContext = _interopRequireDefault(require("antd/lib/config-provider/DisabledContext"));
|
|
23
|
+
|
|
24
|
+
var _context = require("antd/lib/form/context");
|
|
21
25
|
|
|
22
|
-
var
|
|
26
|
+
var _motion = require("antd/lib/_util/motion");
|
|
23
27
|
|
|
24
|
-
var
|
|
28
|
+
var _statusUtils = require("antd/lib/_util/statusUtils");
|
|
29
|
+
|
|
30
|
+
var _defaultRenderEmpty = _interopRequireDefault(require("antd/lib/config-provider/defaultRenderEmpty"));
|
|
31
|
+
|
|
32
|
+
var _iconUtil = _interopRequireDefault(require("./utils/iconUtil"));
|
|
33
|
+
|
|
34
|
+
var _excluded = ["prefixCls", "bordered", "className", "getPopupContainer", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "showArrow"];
|
|
35
|
+
|
|
36
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
37
|
+
|
|
38
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
39
|
|
|
26
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
41
|
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
42
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
43
|
+
|
|
44
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
45
|
+
|
|
46
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
47
|
+
|
|
48
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
49
|
+
|
|
50
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
51
|
+
|
|
52
|
+
var SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
53
|
+
|
|
54
|
+
var InternalSelect = function InternalSelect(_ref, ref) {
|
|
55
|
+
var _classNames2;
|
|
56
|
+
|
|
57
|
+
var customizePrefixCls = _ref.prefixCls,
|
|
58
|
+
_ref$bordered = _ref.bordered,
|
|
59
|
+
bordered = _ref$bordered === void 0 ? true : _ref$bordered,
|
|
60
|
+
className = _ref.className,
|
|
61
|
+
getPopupContainer = _ref.getPopupContainer,
|
|
62
|
+
dropdownClassName = _ref.dropdownClassName,
|
|
63
|
+
_ref$listHeight = _ref.listHeight,
|
|
64
|
+
listHeight = _ref$listHeight === void 0 ? 256 : _ref$listHeight,
|
|
65
|
+
placement = _ref.placement,
|
|
66
|
+
_ref$listItemHeight = _ref.listItemHeight,
|
|
67
|
+
listItemHeight = _ref$listItemHeight === void 0 ? 24 : _ref$listItemHeight,
|
|
68
|
+
customizeSize = _ref.size,
|
|
69
|
+
customDisabled = _ref.disabled,
|
|
70
|
+
notFoundContent = _ref.notFoundContent,
|
|
71
|
+
customStatus = _ref.status,
|
|
72
|
+
showArrow = _ref.showArrow,
|
|
73
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
74
|
+
|
|
75
|
+
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
76
|
+
getContextPopupContainer = _React$useContext.getPopupContainer,
|
|
77
|
+
getPrefixCls = _React$useContext.getPrefixCls,
|
|
78
|
+
renderEmpty = _React$useContext.renderEmpty,
|
|
79
|
+
direction = _React$useContext.direction,
|
|
80
|
+
virtual = _React$useContext.virtual,
|
|
81
|
+
dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth;
|
|
82
|
+
|
|
83
|
+
var size = React.useContext(_SizeContext.default);
|
|
84
|
+
var prefixCls = getPrefixCls('select', customizePrefixCls);
|
|
85
|
+
var rootPrefixCls = getPrefixCls();
|
|
86
|
+
var mode = React.useMemo(function () {
|
|
87
|
+
var m = props.mode;
|
|
88
|
+
|
|
89
|
+
if (m === 'combobox') {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
|
|
94
|
+
return 'combobox';
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return m;
|
|
98
|
+
}, [props.mode]);
|
|
99
|
+
var isMultiple = mode === 'multiple' || mode === 'tags';
|
|
100
|
+
var mergedShowArrow = showArrow !== undefined ? showArrow : props.loading || !(isMultiple || mode === 'combobox'); // ===================== Form Status =====================
|
|
101
|
+
|
|
102
|
+
var _useContext = (0, React.useContext)(_context.FormItemInputContext),
|
|
103
|
+
contextStatus = _useContext.status,
|
|
104
|
+
hasFeedback = _useContext.hasFeedback,
|
|
105
|
+
isFormItemInput = _useContext.isFormItemInput,
|
|
106
|
+
feedbackIcon = _useContext.feedbackIcon;
|
|
107
|
+
|
|
108
|
+
var mergedStatus = (0, _statusUtils.getMergedStatus)(contextStatus, customStatus); // ===================== Empty =====================
|
|
109
|
+
|
|
110
|
+
var mergedNotFound;
|
|
111
|
+
|
|
112
|
+
if (notFoundContent !== undefined) {
|
|
113
|
+
mergedNotFound = notFoundContent;
|
|
114
|
+
} else if (mode === 'combobox') {
|
|
115
|
+
mergedNotFound = null;
|
|
116
|
+
} else {
|
|
117
|
+
mergedNotFound = (renderEmpty || _defaultRenderEmpty.default)('Select');
|
|
118
|
+
} // ===================== Icons =====================
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
var _getIcons = (0, _iconUtil.default)(_objectSpread(_objectSpread({}, props), {}, {
|
|
122
|
+
multiple: isMultiple,
|
|
123
|
+
hasFeedback: hasFeedback,
|
|
124
|
+
feedbackIcon: feedbackIcon,
|
|
125
|
+
showArrow: mergedShowArrow,
|
|
126
|
+
prefixCls: prefixCls
|
|
127
|
+
})),
|
|
128
|
+
suffixIcon = _getIcons.suffixIcon,
|
|
129
|
+
itemIcon = _getIcons.itemIcon,
|
|
130
|
+
removeIcon = _getIcons.removeIcon,
|
|
131
|
+
clearIcon = _getIcons.clearIcon;
|
|
132
|
+
|
|
133
|
+
var selectProps = (0, _omit.default)(props, ['suffixIcon', 'itemIcon']);
|
|
134
|
+
var rcSelectRtlDropdownClassName = (0, _classnames.default)(dropdownClassName, _defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
135
|
+
var mergedSize = customizeSize || size; // ===================== Disabled =====================
|
|
136
|
+
|
|
137
|
+
var disabled = React.useContext(_DisabledContext.default);
|
|
138
|
+
var mergedDisabled = customDisabled || disabled;
|
|
139
|
+
var mergedClassName = (0, _classnames.default)('ald-select', (_classNames2 = {}, _defineProperty(_classNames2, "ald-select-large", mergedSize === 'large'), _defineProperty(_classNames2, "ald-select-small", mergedSize === 'small'), _defineProperty(_classNames2, 'ald-select-mini', mergedSize === 'mini'), _defineProperty(_classNames2, 'ald-select-middle', !['large', 'small', 'mini'].includes(mergedSize)), _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), _defineProperty(_classNames2, "".concat(prefixCls, "-in-form-item"), isFormItemInput), _classNames2), (0, _statusUtils.getStatusClassNames)(prefixCls, mergedStatus, hasFeedback), className); // ===================== Placement =====================
|
|
140
|
+
|
|
141
|
+
var getPlacement = function getPlacement() {
|
|
142
|
+
if (placement !== undefined) {
|
|
143
|
+
return placement;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
return /*#__PURE__*/React.createElement(_rcSelect.default, Object.assign({
|
|
150
|
+
ref: ref,
|
|
151
|
+
virtual: virtual,
|
|
152
|
+
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
153
|
+
}, selectProps, {
|
|
154
|
+
transitionName: (0, _motion.getTransitionName)(rootPrefixCls, (0, _motion.getTransitionDirection)(placement), props.transitionName),
|
|
155
|
+
listHeight: listHeight,
|
|
156
|
+
listItemHeight: listItemHeight,
|
|
157
|
+
mode: mode,
|
|
158
|
+
prefixCls: prefixCls,
|
|
159
|
+
size: mergedSize,
|
|
160
|
+
placement: getPlacement(),
|
|
161
|
+
direction: direction,
|
|
162
|
+
inputIcon: suffixIcon,
|
|
163
|
+
menuItemSelectedIcon: itemIcon,
|
|
164
|
+
removeIcon: removeIcon,
|
|
165
|
+
clearIcon: clearIcon,
|
|
166
|
+
notFoundContent: mergedNotFound,
|
|
167
|
+
className: mergedClassName,
|
|
168
|
+
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
|
169
|
+
dropdownClassName: rcSelectRtlDropdownClassName,
|
|
170
|
+
showArrow: hasFeedback || showArrow,
|
|
171
|
+
disabled: mergedDisabled
|
|
172
|
+
}));
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
var Select = /*#__PURE__*/React.forwardRef(InternalSelect);
|
|
176
|
+
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
|
177
|
+
Select.Option = _rcSelect.Option;
|
|
178
|
+
Select.OptGroup = _rcSelect.OptGroup;
|
|
31
179
|
var _default = Select;
|
|
32
180
|
exports.default = _default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AlignType } from 'rc-trigger/lib/interface';
|
|
3
|
+
import type { ScrollTo, ScrollConfig } from 'rc-virtual-list/lib/List';
|
|
4
|
+
export declare type RenderNode = React.ReactNode | ((props: any) => React.ReactNode);
|
|
5
|
+
export declare type RenderDOMFunc = (props: any) => HTMLElement;
|
|
6
|
+
export declare type Mode = 'multiple' | 'tags' | 'combobox';
|
|
7
|
+
export declare type Placement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
|
|
8
|
+
export declare type RawValueType = string | number;
|
|
9
|
+
export interface RefOptionListProps {
|
|
10
|
+
onKeyDown: React.KeyboardEventHandler;
|
|
11
|
+
onKeyUp: React.KeyboardEventHandler;
|
|
12
|
+
scrollTo?: (args: number | ScrollConfig) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare type CustomTagProps = {
|
|
15
|
+
label: React.ReactNode;
|
|
16
|
+
value: any;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
onClose: (event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
19
|
+
closable: boolean;
|
|
20
|
+
};
|
|
21
|
+
export interface DisplayValueType {
|
|
22
|
+
key?: React.Key;
|
|
23
|
+
value?: RawValueType;
|
|
24
|
+
label?: React.ReactNode;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface BaseSelectRef {
|
|
28
|
+
focus: () => void;
|
|
29
|
+
blur: () => void;
|
|
30
|
+
scrollTo: ScrollTo;
|
|
31
|
+
}
|
|
32
|
+
export interface BaseSelectPrivateProps {
|
|
33
|
+
id: string;
|
|
34
|
+
prefixCls: string;
|
|
35
|
+
omitDomProps?: string[];
|
|
36
|
+
displayValues: DisplayValueType[];
|
|
37
|
+
onDisplayValuesChange: (values: DisplayValueType[], info: {
|
|
38
|
+
type: 'add' | 'remove' | 'clear';
|
|
39
|
+
values: DisplayValueType[];
|
|
40
|
+
}) => void;
|
|
41
|
+
/** Current dropdown list active item string value */
|
|
42
|
+
activeValue?: string;
|
|
43
|
+
/** Link search input with target element */
|
|
44
|
+
activeDescendantId?: string;
|
|
45
|
+
onActiveValueChange?: (value: string | null) => void;
|
|
46
|
+
searchValue: string;
|
|
47
|
+
/** Trigger onSearch, return false to prevent trigger open event */
|
|
48
|
+
onSearch: (searchValue: string, info: {
|
|
49
|
+
source: 'typing' | 'effect' | 'submit' | 'blur';
|
|
50
|
+
}) => void;
|
|
51
|
+
/** Trigger when search text match the `tokenSeparators`. Will provide split content */
|
|
52
|
+
onSearchSplit?: (words: string[]) => void;
|
|
53
|
+
OptionList: React.ForwardRefExoticComponent<React.PropsWithoutRef<any> & React.RefAttributes<RefOptionListProps>>;
|
|
54
|
+
/** Tell if provided `options` is empty */
|
|
55
|
+
emptyOptions: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare type BaseSelectPropsWithoutPrivate = Omit<BaseSelectProps, keyof BaseSelectPrivateProps>;
|
|
58
|
+
export interface BaseSelectProps extends BaseSelectPrivateProps, React.AriaAttributes {
|
|
59
|
+
className?: string;
|
|
60
|
+
style?: React.CSSProperties;
|
|
61
|
+
showSearch?: boolean;
|
|
62
|
+
tagRender?: (props: CustomTagProps) => React.ReactElement;
|
|
63
|
+
direction?: 'ltr' | 'rtl';
|
|
64
|
+
maxLength?: number;
|
|
65
|
+
prefix?: RenderNode;
|
|
66
|
+
tabIndex?: number;
|
|
67
|
+
autoFocus?: boolean;
|
|
68
|
+
notFoundContent?: React.ReactNode;
|
|
69
|
+
placeholder?: React.ReactNode;
|
|
70
|
+
onClear?: () => void;
|
|
71
|
+
choiceTransitionName?: string;
|
|
72
|
+
mode?: Mode;
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
loading?: boolean;
|
|
75
|
+
open?: boolean;
|
|
76
|
+
defaultOpen?: boolean;
|
|
77
|
+
onDropdownVisibleChange?: (open: boolean) => void;
|
|
78
|
+
/** @private Internal usage. Do not use in your production. */
|
|
79
|
+
getInputElement?: () => JSX.Element;
|
|
80
|
+
/** @private Internal usage. Do not use in your production. */
|
|
81
|
+
getRawInputElement?: () => JSX.Element;
|
|
82
|
+
maxTagTextLength?: number;
|
|
83
|
+
maxTagCount?: number | 'responsive';
|
|
84
|
+
maxTagPlaceholder?: React.ReactNode | ((omittedValues: DisplayValueType[]) => React.ReactNode);
|
|
85
|
+
tokenSeparators?: string[];
|
|
86
|
+
allowClear?: boolean;
|
|
87
|
+
showArrow?: boolean;
|
|
88
|
+
inputIcon?: RenderNode;
|
|
89
|
+
/** Clear all icon */
|
|
90
|
+
clearIcon?: RenderNode;
|
|
91
|
+
/** Selector remove icon */
|
|
92
|
+
removeIcon?: RenderNode;
|
|
93
|
+
animation?: string;
|
|
94
|
+
transitionName?: string;
|
|
95
|
+
dropdownStyle?: React.CSSProperties;
|
|
96
|
+
dropdownClassName?: string;
|
|
97
|
+
dropdownMatchSelectWidth?: boolean | number;
|
|
98
|
+
dropdownRender?: (menu: React.ReactElement) => React.ReactElement;
|
|
99
|
+
dropdownAlign?: AlignType;
|
|
100
|
+
placement?: Placement;
|
|
101
|
+
getPopupContainer?: RenderDOMFunc;
|
|
102
|
+
showAction?: ('focus' | 'click')[];
|
|
103
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
104
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
105
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
106
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
107
|
+
onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
|
108
|
+
onPopupScroll?: React.UIEventHandler<HTMLDivElement>;
|
|
109
|
+
onInputKeyDown?: React.KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
110
|
+
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
|
111
|
+
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
112
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
113
|
+
}
|
|
114
|
+
export declare function isMultiple(mode: Mode): boolean;
|
|
115
|
+
declare const BaseSelect: React.ForwardRefExoticComponent<BaseSelectProps & React.RefAttributes<BaseSelectRef>>;
|
|
116
|
+
export default BaseSelect;
|