@aloudata/aloudata-design 0.4.0-beta.10 → 0.4.0-beta.12
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/component/Avatar/index.d.ts +1 -1
- package/es/Avatar/component/Avatar/index.js +12 -16
- package/es/Breadcrumb/index.js +14 -18
- package/es/Button/index.d.ts +2 -2
- package/es/Button/index.js +16 -39
- package/es/Button/style/index.less +1 -1
- package/es/Checkbox/component/CheckboxGroup/index.d.ts +0 -1
- package/es/Checkbox/component/CheckboxGroup/index.js +11 -11
- package/es/Checkbox/index.js +8 -8
- package/es/Checkbox/type.d.ts +1 -1
- package/es/Checkbox/type.js +0 -1
- package/es/ConfigProvider/defaultRenderEmpty.d.ts +2 -2
- package/es/ConfigProvider/defaultRenderEmpty.js +0 -6
- package/es/ConfigProvider/sizeContext.d.ts +2 -2
- package/es/ConfigProvider/sizeContext.js +1 -1
- package/es/Divider/index.js +7 -3
- package/es/Dropdown/Button.d.ts +1 -1
- package/es/Dropdown/Button.js +16 -14
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Dropdown/index.js +10 -10
- package/es/Empty/image/Authority.d.ts +0 -1
- package/es/Empty/image/Authority.js +0 -2
- package/es/Empty/image/Dataspace.d.ts +0 -1
- package/es/Empty/image/Dataspace.js +0 -2
- package/es/Empty/image/Search.d.ts +0 -1
- package/es/Empty/image/Search.js +0 -2
- package/es/Empty/image/Simple.d.ts +0 -1
- package/es/Empty/image/Simple.js +0 -2
- package/es/Empty/image/Worksheet.d.ts +0 -1
- package/es/Empty/image/Worksheet.js +0 -2
- package/es/Empty/image/empty.d.ts +0 -1
- package/es/Empty/image/empty.js +0 -2
- package/es/Empty/index.d.ts +1 -1
- package/es/Empty/index.js +16 -24
- package/es/Icon/components/Icon.js +14 -12
- package/es/Icon/components/createFromScripts.js +2 -8
- package/es/Icon/icons/AddLine.js +17 -23
- package/es/Icon/icons/AlertFill.js +17 -23
- package/es/Icon/icons/ArrowsDownLine.js +17 -23
- package/es/Icon/icons/CancelFill.js +17 -23
- package/es/Icon/icons/CheckFill.js +17 -23
- package/es/Icon/icons/CheckLine.js +17 -23
- package/es/Icon/icons/CloseLine.js +17 -23
- package/es/Icon/icons/DatabaseLine.js +17 -23
- package/es/Icon/icons/Deleteline.js +17 -23
- package/es/Icon/icons/DownloadLine.js +17 -23
- package/es/Icon/icons/ErrorFill.js +17 -23
- package/es/Icon/icons/EyeOffLine.js +17 -23
- package/es/Icon/icons/EyeOnLine.js +17 -23
- package/es/Icon/icons/FileLine.js +17 -23
- package/es/Icon/icons/HomeFill.js +17 -23
- package/es/Icon/icons/LightningLine.js +17 -23
- package/es/Icon/icons/Loading.js +17 -23
- package/es/Icon/icons/More.js +17 -23
- package/es/Icon/icons/NewWindowsLine.js +17 -23
- package/es/Icon/icons/SearchLine.js +17 -23
- package/es/Icon/icons/SortAscendingLine.js +17 -23
- package/es/Icon/icons/SortDescendingLine.js +17 -23
- package/es/Icon/icons/TextLine.js +17 -23
- package/es/Icon/icons/UserLine.js +17 -23
- package/es/Icon/icons.js +1658 -1588
- package/es/Input/components/Group/index.js +11 -9
- package/es/Input/components/Input/index.d.ts +2 -2
- package/es/Input/components/Input/index.js +10 -9
- package/es/Input/components/Password/index.js +14 -12
- package/es/Input/components/TextArea/index.js +13 -11
- package/es/InputNumber/index.js +10 -12
- package/es/Menu/Divider.js +7 -1
- package/es/Menu/MenuItem.js +7 -1
- package/es/Menu/SubMenu.js +8 -6
- package/es/Menu/index.d.ts +1 -1
- package/es/Menu/index.js +8 -6
- package/es/Modal/index.d.ts +1 -1
- package/es/Modal/index.js +18 -28
- package/es/Modal/locale.js +4 -6
- package/es/Modal/style/index.less +6 -1
- package/es/Navigator/components/Header/index.js +0 -2
- package/es/Navigator/components/Menu/index.js +14 -18
- package/es/Navigator/components/MenuItem/index.js +6 -9
- package/es/Navigator/index.js +5 -7
- package/es/Popconfirm/index.d.ts +89 -2
- package/es/Popconfirm/index.js +105 -1
- package/es/Popconfirm/style/index.less +58 -0
- package/es/Popover/index.js +9 -9
- package/es/Radio/components/Group/index.d.ts +1 -1
- package/es/Radio/components/Group/index.js +23 -32
- package/es/Radio/components/Radio/index.js +10 -19
- package/es/Radio/interface/radioGroup.d.ts +3 -3
- package/es/Select/index.d.ts +4 -4
- package/es/Select/index.js +53 -70
- package/es/Select/rc-select/BaseSelect.d.ts +7 -7
- package/es/Select/rc-select/BaseSelect.js +155 -245
- package/es/Select/rc-select/OptGroup.js +0 -1
- package/es/Select/rc-select/Option.js +0 -1
- package/es/Select/rc-select/OptionList.d.ts +2 -2
- package/es/Select/rc-select/OptionList.js +76 -128
- package/es/Select/rc-select/Select.d.ts +8 -8
- package/es/Select/rc-select/Select.js +137 -205
- package/es/Select/rc-select/SelectTrigger.js +30 -42
- package/es/Select/rc-select/Selector/Input.d.ts +1 -1
- package/es/Select/rc-select/Selector/Input.js +29 -37
- package/es/Select/rc-select/Selector/MultipleSelector.js +72 -97
- package/es/Select/rc-select/Selector/SingleSelector.js +28 -43
- package/es/Select/rc-select/Selector/index.js +33 -58
- package/es/Select/rc-select/TransBtn.js +5 -10
- package/es/Select/rc-select/hooks/useBaseProps.js +0 -1
- package/es/Select/rc-select/hooks/useCache.d.ts +1 -1
- package/es/Select/rc-select/hooks/useCache.js +9 -12
- package/es/Select/rc-select/hooks/useDelayReset.js +4 -18
- package/es/Select/rc-select/hooks/useFilterOptions.d.ts +1 -1
- package/es/Select/rc-select/hooks/useFilterOptions.js +8 -17
- package/es/Select/rc-select/hooks/useId.js +6 -17
- package/es/Select/rc-select/hooks/useLayoutEffect.js +0 -1
- package/es/Select/rc-select/hooks/useLock.js +2 -6
- package/es/Select/rc-select/hooks/useOptions.d.ts +2 -2
- package/es/Select/rc-select/hooks/useOptions.js +2 -10
- package/es/Select/rc-select/hooks/useRefFunc.js +0 -1
- package/es/Select/rc-select/hooks/useSelectTriggerControl.js +0 -5
- package/es/Select/rc-select/utils/commonUtil.js +0 -2
- package/es/Select/rc-select/utils/keyUtil.js +4 -3
- package/es/Select/rc-select/utils/legacyUtil.js +13 -22
- package/es/Select/rc-select/utils/valueUtil.js +18 -50
- package/es/Select/rc-select/utils/warningPropsUtil.js +30 -47
- package/es/Select/style/index.js +2 -1
- package/es/Select/style/status.less +3 -1
- package/es/Select/utils/iconUtil.d.ts +3 -3
- package/es/Select/utils/iconUtil.js +16 -26
- package/es/Space/index.js +1 -1
- package/es/Spin/index.d.ts +2 -2
- package/es/Steps/components/Step/index.d.ts +1 -1
- package/es/Steps/components/Step/index.js +9 -8
- package/es/Steps/index.d.ts +8 -2
- package/es/Steps/index.js +64 -10
- package/es/Steps/style/index.less +11 -12
- package/es/Switch/index.js +17 -30
- package/es/Table/Table.js +115 -191
- package/es/Table/components/Empty/index.js +0 -2
- package/es/Table/components/Loading/index.js +0 -2
- package/es/Table/components/TableBodyRowList/index.js +20 -39
- package/es/Table/components/TableHead/index.js +57 -94
- package/es/Table/interface.d.ts +1 -1
- package/es/Table/style/index.less +8 -4
- package/es/Table/utils.js +8 -29
- package/es/Tabs/index.d.ts +22 -7
- package/es/Tabs/index.js +12 -19
- package/es/Tooltip/index.d.ts +1 -1
- package/es/Tooltip/index.js +12 -12
- package/es/_utils/hooks/useControlledState.d.ts +1 -1
- package/es/_utils/hooks/useControlledState.js +8 -21
- package/es/_utils/hooks/useId.js +2 -6
- package/es/_utils/hooks/usePrefixCls.d.ts +1 -1
- package/es/_utils/hooks/usePrefixCls.js +2 -5
- package/es/index.d.ts +1 -1
- package/es/locale-provider/context.d.ts +1 -1
- package/es/locale-provider/index.js +10 -32
- package/lib/Alert/index.js +0 -4
- package/lib/Alert/style/index.js +0 -1
- package/lib/Avatar/component/Avatar/index.d.ts +1 -1
- package/lib/Avatar/component/Avatar/index.js +11 -24
- package/lib/Avatar/index.js +0 -4
- package/lib/Avatar/style/index.js +0 -1
- package/lib/Breadcrumb/index.js +14 -23
- package/lib/Breadcrumb/style/index.js +0 -1
- package/lib/Button/index.d.ts +2 -2
- package/lib/Button/index.js +16 -47
- package/lib/Button/style/index.js +0 -1
- package/lib/Button/style/index.less +1 -1
- package/lib/Card/index.js +0 -4
- package/lib/Card/style/index.js +0 -1
- package/lib/Checkbox/component/CheckboxGroup/index.d.ts +0 -1
- package/lib/Checkbox/component/CheckboxGroup/index.js +9 -16
- package/lib/Checkbox/index.js +8 -14
- package/lib/Checkbox/style/index.js +0 -1
- package/lib/Checkbox/type.d.ts +1 -1
- package/lib/Checkbox/type.js +0 -1
- package/lib/Col/index.js +0 -4
- package/lib/Col/style/index.js +0 -1
- package/lib/ConfigProvider/defaultRenderEmpty.d.ts +2 -2
- package/lib/ConfigProvider/defaultRenderEmpty.js +0 -13
- package/lib/ConfigProvider/index.js +0 -5
- package/lib/ConfigProvider/sizeContext.d.ts +2 -2
- package/lib/ConfigProvider/sizeContext.js +1 -8
- package/lib/ConfigProvider/style/index.js +0 -1
- package/lib/DatePicker/index.js +0 -4
- package/lib/DatePicker/style/index.js +0 -1
- package/lib/Divider/index.js +7 -8
- package/lib/Divider/style/index.js +0 -1
- package/lib/Drawer/index.js +0 -4
- package/lib/Drawer/style/index.js +0 -1
- package/lib/Dropdown/Button.d.ts +1 -1
- package/lib/Dropdown/Button.js +14 -20
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Dropdown/index.js +10 -17
- package/lib/Dropdown/style/index.js +0 -2
- package/lib/Empty/image/Authority.d.ts +0 -1
- package/lib/Empty/image/Authority.js +0 -6
- package/lib/Empty/image/Dataspace.d.ts +0 -1
- package/lib/Empty/image/Dataspace.js +0 -6
- package/lib/Empty/image/Search.d.ts +0 -1
- package/lib/Empty/image/Search.js +0 -6
- package/lib/Empty/image/Simple.d.ts +0 -1
- package/lib/Empty/image/Simple.js +0 -6
- package/lib/Empty/image/Worksheet.d.ts +0 -1
- package/lib/Empty/image/Worksheet.js +0 -6
- package/lib/Empty/image/empty.d.ts +0 -1
- package/lib/Empty/image/empty.js +0 -6
- package/lib/Empty/index.d.ts +1 -1
- package/lib/Empty/index.js +15 -37
- package/lib/Form/index.js +0 -4
- package/lib/Form/style/index.js +0 -1
- package/lib/Icon/antdIconfont.js +0 -1
- package/lib/Icon/components/Icon.js +14 -16
- package/lib/Icon/components/createFromScripts.js +2 -8
- package/lib/Icon/icons/AddLine.js +16 -30
- package/lib/Icon/icons/AlertFill.js +16 -30
- package/lib/Icon/icons/ArrowsDownLine.js +16 -30
- package/lib/Icon/icons/CancelFill.js +16 -30
- package/lib/Icon/icons/CheckFill.js +16 -30
- package/lib/Icon/icons/CheckLine.js +16 -30
- package/lib/Icon/icons/CloseLine.js +16 -30
- package/lib/Icon/icons/DatabaseLine.js +16 -30
- package/lib/Icon/icons/Deleteline.js +16 -30
- package/lib/Icon/icons/DownloadLine.js +16 -30
- package/lib/Icon/icons/ErrorFill.js +16 -30
- package/lib/Icon/icons/EyeOffLine.js +16 -30
- package/lib/Icon/icons/EyeOnLine.js +16 -30
- package/lib/Icon/icons/FileLine.js +16 -30
- package/lib/Icon/icons/HomeFill.js +16 -30
- package/lib/Icon/icons/LightningLine.js +16 -30
- package/lib/Icon/icons/Loading.js +16 -30
- package/lib/Icon/icons/More.js +16 -30
- package/lib/Icon/icons/NewWindowsLine.js +16 -30
- package/lib/Icon/icons/SearchLine.js +16 -30
- package/lib/Icon/icons/SortAscendingLine.js +16 -30
- package/lib/Icon/icons/SortDescendingLine.js +16 -30
- package/lib/Icon/icons/TextLine.js +16 -30
- package/lib/Icon/icons/UserLine.js +16 -30
- package/lib/Icon/icons.js +1658 -1588
- package/lib/Icon/index.js +0 -3
- package/lib/Input/components/Group/index.js +11 -16
- package/lib/Input/components/Input/index.d.ts +2 -2
- package/lib/Input/components/Input/index.js +10 -16
- package/lib/Input/components/Password/index.js +12 -21
- package/lib/Input/components/TextArea/index.js +13 -18
- package/lib/Input/index.js +0 -6
- package/lib/Input/style/index.js +0 -2
- package/lib/InputNumber/index.js +10 -18
- package/lib/InputNumber/style/index.js +0 -1
- package/lib/Layout/index.js +0 -4
- package/lib/Layout/style/index.js +0 -1
- package/lib/Menu/Divider.js +7 -7
- package/lib/Menu/MenuItem.js +7 -7
- package/lib/Menu/SubMenu.js +8 -13
- package/lib/Menu/index.d.ts +1 -1
- package/lib/Menu/index.js +8 -16
- package/lib/Menu/style/index.js +0 -2
- package/lib/Modal/index.d.ts +1 -1
- package/lib/Modal/index.js +17 -45
- package/lib/Modal/locale.js +4 -9
- package/lib/Modal/style/index.js +0 -1
- package/lib/Modal/style/index.less +6 -1
- package/lib/Navigator/components/Header/index.js +0 -4
- package/lib/Navigator/components/Menu/index.js +13 -24
- package/lib/Navigator/components/MenuItem/index.js +6 -15
- package/lib/Navigator/index.js +5 -15
- package/lib/Navigator/style/index.js +0 -1
- package/lib/PageHeader/index.js +0 -4
- package/lib/PageHeader/style/index.js +0 -1
- package/lib/Popconfirm/index.d.ts +89 -2
- package/lib/Popconfirm/index.js +106 -5
- package/lib/Popconfirm/style/index.js +0 -1
- package/lib/Popconfirm/style/index.less +58 -0
- package/lib/Popover/index.js +9 -14
- package/lib/Popover/style/index.js +0 -1
- package/lib/Progress/index.js +0 -3
- package/lib/Progress/style/index.js +0 -1
- package/lib/Radio/components/Group/index.d.ts +1 -1
- package/lib/Radio/components/Group/index.js +22 -41
- package/lib/Radio/components/Radio/index.js +10 -30
- package/lib/Radio/index.js +0 -4
- package/lib/Radio/interface/radioGroup.d.ts +3 -3
- package/lib/Radio/style/index.js +0 -1
- package/lib/Row/index.js +0 -4
- package/lib/Row/style/index.js +0 -1
- package/lib/Select/index.d.ts +4 -4
- package/lib/Select/index.js +52 -87
- package/lib/Select/rc-select/BaseSelect.d.ts +7 -7
- package/lib/Select/rc-select/BaseSelect.js +155 -266
- package/lib/Select/rc-select/OptGroup.js +0 -2
- package/lib/Select/rc-select/Option.js +0 -2
- package/lib/Select/rc-select/OptionList.d.ts +2 -2
- package/lib/Select/rc-select/OptionList.js +75 -146
- package/lib/Select/rc-select/Select.d.ts +8 -8
- package/lib/Select/rc-select/Select.js +137 -224
- package/lib/Select/rc-select/SelectContext.js +1 -5
- package/lib/Select/rc-select/SelectTrigger.js +29 -49
- package/lib/Select/rc-select/Selector/Input.d.ts +1 -1
- package/lib/Select/rc-select/Selector/Input.js +29 -46
- package/lib/Select/rc-select/Selector/MultipleSelector.js +71 -109
- package/lib/Select/rc-select/Selector/SingleSelector.js +28 -50
- package/lib/Select/rc-select/Selector/index.js +32 -67
- package/lib/Select/rc-select/TransBtn.js +5 -16
- package/lib/Select/rc-select/hooks/useBaseProps.js +1 -7
- package/lib/Select/rc-select/hooks/useCache.d.ts +1 -1
- package/lib/Select/rc-select/hooks/useCache.js +9 -18
- package/lib/Select/rc-select/hooks/useDelayReset.js +4 -22
- package/lib/Select/rc-select/hooks/useFilterOptions.d.ts +1 -1
- package/lib/Select/rc-select/hooks/useFilterOptions.js +8 -25
- package/lib/Select/rc-select/hooks/useId.js +6 -26
- package/lib/Select/rc-select/hooks/useLayoutEffect.js +0 -6
- package/lib/Select/rc-select/hooks/useLock.js +2 -10
- package/lib/Select/rc-select/hooks/useOptions.d.ts +2 -2
- package/lib/Select/rc-select/hooks/useOptions.js +2 -15
- package/lib/Select/rc-select/hooks/useRefFunc.js +0 -5
- package/lib/Select/rc-select/hooks/useSelectTriggerControl.js +1 -10
- package/lib/Select/rc-select/index.js +0 -7
- package/lib/Select/rc-select/utils/commonUtil.js +0 -4
- package/lib/Select/rc-select/utils/keyUtil.js +4 -5
- package/lib/Select/rc-select/utils/legacyUtil.js +12 -28
- package/lib/Select/rc-select/utils/platformUtil.js +0 -1
- package/lib/Select/rc-select/utils/valueUtil.js +18 -55
- package/lib/Select/rc-select/utils/warningPropsUtil.js +30 -56
- package/lib/Select/style/index.js +0 -2
- package/lib/Select/style/status.less +3 -1
- package/lib/Select/utils/iconUtil.d.ts +3 -3
- package/lib/Select/utils/iconUtil.js +16 -39
- package/lib/Skeleton/index.js +0 -3
- package/lib/Skeleton/style/index.js +0 -1
- package/lib/Space/index.js +2 -9
- package/lib/Space/style/index.js +0 -1
- package/lib/Spin/index.d.ts +2 -2
- package/lib/Spin/index.js +0 -3
- package/lib/Spin/style/index.js +0 -1
- package/lib/Steps/components/ProcessIcon/index.js +0 -4
- package/lib/Steps/components/Step/index.d.ts +1 -1
- package/lib/Steps/components/Step/index.js +9 -18
- package/lib/Steps/index.d.ts +8 -2
- package/lib/Steps/index.js +63 -17
- package/lib/Steps/style/index.js +0 -1
- package/lib/Steps/style/index.less +11 -12
- package/lib/Switch/index.js +17 -37
- package/lib/Switch/style/index.js +0 -1
- package/lib/Table/Table.js +117 -216
- package/lib/Table/components/Empty/index.js +0 -6
- package/lib/Table/components/Loading/index.js +0 -7
- package/lib/Table/components/TableBodyRowList/index.js +19 -47
- package/lib/Table/components/TableHead/index.js +56 -108
- package/lib/Table/index.js +0 -3
- package/lib/Table/interface.d.ts +1 -1
- package/lib/Table/style/index.js +0 -1
- package/lib/Table/style/index.less +8 -4
- package/lib/Table/utils.js +8 -33
- package/lib/Tabs/index.d.ts +22 -7
- package/lib/Tabs/index.js +10 -28
- package/lib/Tabs/style/index.js +0 -2
- package/lib/Tooltip/index.d.ts +1 -1
- package/lib/Tooltip/index.js +12 -17
- package/lib/Tooltip/style/index.js +0 -1
- package/lib/Tree/index.js +0 -3
- package/lib/Tree/style/index.js +0 -1
- package/lib/Typography/index.js +0 -4
- package/lib/Typography/style/index.js +0 -1
- package/lib/Upload/index.js +0 -4
- package/lib/Upload/style/index.js +0 -1
- package/lib/_utils/hooks/useControlledState.d.ts +1 -1
- package/lib/_utils/hooks/useControlledState.js +8 -23
- package/lib/_utils/hooks/useId.js +3 -10
- package/lib/_utils/hooks/usePrefixCls.d.ts +1 -1
- package/lib/_utils/hooks/usePrefixCls.js +2 -10
- package/lib/index.d.ts +1 -1
- package/lib/index.js +0 -42
- package/lib/locale/default.js +0 -3
- package/lib/locale/en_US.js +1 -6
- package/lib/locale/zh_CN.js +1 -6
- package/lib/locale-provider/LocaleReceiver.js +0 -5
- package/lib/locale-provider/context.d.ts +1 -1
- package/lib/locale-provider/context.js +0 -2
- package/lib/locale-provider/default.js +0 -3
- package/lib/locale-provider/en_US.js +0 -3
- package/lib/locale-provider/index.js +8 -37
- package/lib/locale-provider/zh_CN.js +0 -3
- package/lib/message/index.js +0 -4
- package/lib/message/style/index.js +0 -1
- package/lib/notification/index.js +0 -4
- package/lib/notification/style/index.js +0 -1
- package/package.json +4 -3
- package/es/Table/hooks/useFrame.d.ts +0 -7
- package/es/Table/hooks/useFrame.js +0 -90
- package/es/Tabs/TabPane.d.ts +0 -21
- package/es/Tabs/TabPane.js +0 -6
- package/lib/Table/hooks/useFrame.d.ts +0 -7
- package/lib/Table/hooks/useFrame.js +0 -98
- package/lib/Tabs/TabPane.d.ts +0 -21
- package/lib/Tabs/TabPane.js +0 -18
|
@@ -7,60 +7,42 @@ exports.fillFieldNames = fillFieldNames;
|
|
|
7
7
|
exports.flattenOptions = flattenOptions;
|
|
8
8
|
exports.getSeparatedContent = getSeparatedContent;
|
|
9
9
|
exports.injectPropsWithOption = injectPropsWithOption;
|
|
10
|
-
|
|
11
10
|
var _warning = _interopRequireDefault(require("rc-util/lib/warning"));
|
|
12
|
-
|
|
13
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
12
|
+
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); }
|
|
15
13
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
16
|
-
|
|
17
14
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
-
|
|
19
15
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
20
|
-
|
|
21
16
|
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }
|
|
22
|
-
|
|
23
17
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24
|
-
|
|
25
18
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
26
|
-
|
|
27
19
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
28
|
-
|
|
29
20
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
30
|
-
|
|
31
21
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
32
|
-
|
|
33
22
|
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; }
|
|
34
|
-
|
|
35
23
|
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; }
|
|
36
|
-
|
|
37
|
-
function
|
|
38
|
-
|
|
24
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
26
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
39
27
|
function getKey(data, index) {
|
|
40
28
|
var key = data.key;
|
|
41
29
|
var value;
|
|
42
|
-
|
|
43
30
|
if ('value' in data) {
|
|
44
31
|
value = data.value;
|
|
45
32
|
}
|
|
46
|
-
|
|
47
33
|
if (key !== null && key !== undefined) {
|
|
48
34
|
return key;
|
|
49
35
|
}
|
|
50
|
-
|
|
51
36
|
if (value !== undefined) {
|
|
52
37
|
return value;
|
|
53
38
|
}
|
|
54
|
-
|
|
55
39
|
return "rc-index-key-".concat(index);
|
|
56
40
|
}
|
|
57
|
-
|
|
58
41
|
function fillFieldNames(fieldNames, childrenAsData) {
|
|
59
42
|
var _ref = fieldNames || {},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
43
|
+
label = _ref.label,
|
|
44
|
+
value = _ref.value,
|
|
45
|
+
options = _ref.options;
|
|
64
46
|
return {
|
|
65
47
|
label: label || (childrenAsData ? 'children' : 'label'),
|
|
66
48
|
value: value || 'value',
|
|
@@ -72,27 +54,21 @@ function fillFieldNames(fieldNames, childrenAsData) {
|
|
|
72
54
|
* We use `optionOnly` here is aim to avoid user use nested option group.
|
|
73
55
|
* Here is simply set `key` to the index if not provided.
|
|
74
56
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
57
|
function flattenOptions(options) {
|
|
78
58
|
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
59
|
+
fieldNames = _ref2.fieldNames,
|
|
60
|
+
childrenAsData = _ref2.childrenAsData;
|
|
82
61
|
var flattenList = [];
|
|
83
|
-
|
|
84
62
|
var _fillFieldNames = fillFieldNames(fieldNames, false),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
63
|
+
fieldLabel = _fillFieldNames.label,
|
|
64
|
+
fieldValue = _fillFieldNames.value,
|
|
65
|
+
fieldOptions = _fillFieldNames.options;
|
|
89
66
|
function dig(list, isGroupOption) {
|
|
90
67
|
list.forEach(function (data) {
|
|
91
68
|
var label = data[fieldLabel];
|
|
92
|
-
|
|
93
69
|
if (isGroupOption || !(fieldOptions in data)) {
|
|
94
|
-
var value = data[fieldValue];
|
|
95
|
-
|
|
70
|
+
var value = data[fieldValue];
|
|
71
|
+
// Option
|
|
96
72
|
flattenList.push({
|
|
97
73
|
key: getKey(data, flattenList.length),
|
|
98
74
|
groupOption: isGroupOption,
|
|
@@ -102,12 +78,10 @@ function flattenOptions(options) {
|
|
|
102
78
|
});
|
|
103
79
|
} else {
|
|
104
80
|
var grpLabel = label;
|
|
105
|
-
|
|
106
81
|
if (grpLabel === undefined && childrenAsData) {
|
|
107
82
|
grpLabel = data.label;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
83
|
+
}
|
|
84
|
+
// Option Group
|
|
111
85
|
flattenList.push({
|
|
112
86
|
key: getKey(data, flattenList.length),
|
|
113
87
|
group: true,
|
|
@@ -118,18 +92,14 @@ function flattenOptions(options) {
|
|
|
118
92
|
}
|
|
119
93
|
});
|
|
120
94
|
}
|
|
121
|
-
|
|
122
95
|
dig(options, false);
|
|
123
96
|
return flattenList;
|
|
124
97
|
}
|
|
125
98
|
/**
|
|
126
99
|
* Inject `props` into `option` for legacy usage
|
|
127
100
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
101
|
function injectPropsWithOption(option) {
|
|
131
102
|
var newOption = _objectSpread({}, option);
|
|
132
|
-
|
|
133
103
|
if (!('props' in newOption)) {
|
|
134
104
|
Object.defineProperty(newOption, 'props', {
|
|
135
105
|
get: function get() {
|
|
@@ -138,26 +108,20 @@ function injectPropsWithOption(option) {
|
|
|
138
108
|
}
|
|
139
109
|
});
|
|
140
110
|
}
|
|
141
|
-
|
|
142
111
|
return newOption;
|
|
143
112
|
}
|
|
144
|
-
|
|
145
113
|
function getSeparatedContent(text, tokens) {
|
|
146
114
|
if (!tokens || !tokens.length) {
|
|
147
115
|
return null;
|
|
148
116
|
}
|
|
149
|
-
|
|
150
117
|
var match = false;
|
|
151
|
-
|
|
152
118
|
function separate(str, _ref3) {
|
|
153
119
|
var _ref4 = _toArray(_ref3),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
120
|
+
token = _ref4[0],
|
|
121
|
+
restTokens = _ref4.slice(1);
|
|
157
122
|
if (!token) {
|
|
158
123
|
return [str];
|
|
159
124
|
}
|
|
160
|
-
|
|
161
125
|
var list = str.split(token);
|
|
162
126
|
match = match || list.length > 1;
|
|
163
127
|
return list.reduce(function (prevList, unitStr) {
|
|
@@ -166,7 +130,6 @@ function getSeparatedContent(text, tokens) {
|
|
|
166
130
|
return unit;
|
|
167
131
|
});
|
|
168
132
|
}
|
|
169
|
-
|
|
170
133
|
var list = separate(text, tokens);
|
|
171
134
|
return match ? list : null;
|
|
172
135
|
}
|
|
@@ -4,51 +4,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _warning = _interopRequireWildcard(require("rc-util/lib/warning"));
|
|
11
|
-
|
|
12
9
|
var _toArray = _interopRequireDefault(require("rc-util/lib/Children/toArray"));
|
|
13
|
-
|
|
14
10
|
var _legacyUtil = require("./legacyUtil");
|
|
15
|
-
|
|
16
11
|
var _commonUtil = require("./commonUtil");
|
|
17
|
-
|
|
18
12
|
var _BaseSelect = require("../BaseSelect");
|
|
19
|
-
|
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
14
|
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); }
|
|
23
|
-
|
|
24
15
|
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
|
-
|
|
26
16
|
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); }
|
|
27
|
-
|
|
28
17
|
function warningProps(props) {
|
|
29
18
|
var mode = props.mode,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
19
|
+
options = props.options,
|
|
20
|
+
children = props.children,
|
|
21
|
+
backfill = props.backfill,
|
|
22
|
+
allowClear = props.allowClear,
|
|
23
|
+
placeholder = props.placeholder,
|
|
24
|
+
getInputElement = props.getInputElement,
|
|
25
|
+
showSearch = props.showSearch,
|
|
26
|
+
onSearch = props.onSearch,
|
|
27
|
+
defaultOpen = props.defaultOpen,
|
|
28
|
+
autoFocus = props.autoFocus,
|
|
29
|
+
labelInValue = props.labelInValue,
|
|
30
|
+
value = props.value,
|
|
31
|
+
inputValue = props.inputValue,
|
|
32
|
+
optionLabelProp = props.optionLabelProp;
|
|
44
33
|
var multiple = (0, _BaseSelect.isMultiple)(mode);
|
|
45
34
|
var mergedShowSearch = showSearch !== undefined ? showSearch : multiple || mode === 'combobox';
|
|
46
|
-
var mergedOptions = options || (0, _legacyUtil.convertChildrenToData)(children);
|
|
47
|
-
|
|
35
|
+
var mergedOptions = options || (0, _legacyUtil.convertChildrenToData)(children);
|
|
36
|
+
// `tags` should not set option as disabled
|
|
48
37
|
(0, _warning.default)(mode !== 'tags' || mergedOptions.every(function (opt) {
|
|
49
38
|
return !opt.disabled;
|
|
50
|
-
}), 'Please avoid setting option to disabled in tags mode since user can always type text as tag.');
|
|
51
|
-
|
|
39
|
+
}), 'Please avoid setting option to disabled in tags mode since user can always type text as tag.');
|
|
40
|
+
// `combobox` & `tags` should option be `string` type
|
|
52
41
|
if (mode === 'tags' || mode === 'combobox') {
|
|
53
42
|
var hasNumberValue = mergedOptions.some(function (item) {
|
|
54
43
|
if (item.options) {
|
|
@@ -56,77 +45,62 @@ function warningProps(props) {
|
|
|
56
45
|
return typeof ('value' in opt ? opt.value : opt.key) === 'number';
|
|
57
46
|
});
|
|
58
47
|
}
|
|
59
|
-
|
|
60
48
|
return typeof ('value' in item ? item.value : item.key) === 'number';
|
|
61
49
|
});
|
|
62
50
|
(0, _warning.default)(!hasNumberValue, '`value` of Option should not use number type when `mode` is `tags` or `combobox`.');
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
51
|
+
}
|
|
52
|
+
// `combobox` should not use `optionLabelProp`
|
|
53
|
+
(0, _warning.default)(mode !== 'combobox' || !optionLabelProp, '`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly.');
|
|
54
|
+
// Only `combobox` support `backfill`
|
|
55
|
+
(0, _warning.default)(mode === 'combobox' || !backfill, '`backfill` only works with `combobox` mode.');
|
|
56
|
+
// Only `combobox` support `getInputElement`
|
|
57
|
+
(0, _warning.default)(mode === 'combobox' || !getInputElement, '`getInputElement` only work with `combobox` mode.');
|
|
58
|
+
// Customize `getInputElement` should not use `allowClear` & `placeholder`
|
|
59
|
+
(0, _warning.noteOnce)(mode !== 'combobox' || !getInputElement || !allowClear || !placeholder, 'Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`.');
|
|
60
|
+
// `onSearch` should use in `combobox` or `showSearch`
|
|
74
61
|
if (onSearch && !mergedShowSearch && mode !== 'combobox' && mode !== 'tags') {
|
|
75
62
|
(0, _warning.default)(false, '`onSearch` should work with `showSearch` instead of use alone.');
|
|
76
63
|
}
|
|
77
|
-
|
|
78
64
|
(0, _warning.noteOnce)(!defaultOpen || autoFocus, '`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed.');
|
|
79
|
-
|
|
80
65
|
if (value !== undefined && value !== null) {
|
|
81
66
|
var values = (0, _commonUtil.toArray)(value);
|
|
82
67
|
(0, _warning.default)(!labelInValue || values.every(function (val) {
|
|
83
68
|
return _typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
84
69
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
85
70
|
(0, _warning.default)(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
71
|
+
}
|
|
72
|
+
// Syntactic sugar should use correct children type
|
|
89
73
|
if (children) {
|
|
90
74
|
var invalidateChildType = null;
|
|
91
75
|
(0, _toArray.default)(children).some(function (node) {
|
|
92
76
|
if (! /*#__PURE__*/React.isValidElement(node) || !node.type) {
|
|
93
77
|
return false;
|
|
94
78
|
}
|
|
95
|
-
|
|
96
79
|
var type = node.type;
|
|
97
|
-
|
|
98
80
|
if (type.isSelectOption) {
|
|
99
81
|
return false;
|
|
100
82
|
}
|
|
101
|
-
|
|
102
83
|
if (type.isSelectOptGroup) {
|
|
103
84
|
var allChildrenValid = (0, _toArray.default)(node.props.children).every(function (subNode) {
|
|
104
85
|
if (! /*#__PURE__*/React.isValidElement(subNode) || !node.type || subNode.type.isSelectOption) {
|
|
105
86
|
return true;
|
|
106
87
|
}
|
|
107
|
-
|
|
108
88
|
invalidateChildType = subNode.type;
|
|
109
89
|
return false;
|
|
110
90
|
});
|
|
111
|
-
|
|
112
91
|
if (allChildrenValid) {
|
|
113
92
|
return false;
|
|
114
93
|
}
|
|
115
|
-
|
|
116
94
|
return true;
|
|
117
95
|
}
|
|
118
|
-
|
|
119
96
|
invalidateChildType = type;
|
|
120
97
|
return true;
|
|
121
98
|
});
|
|
122
|
-
|
|
123
99
|
if (invalidateChildType) {
|
|
124
100
|
(0, _warning.default)(false, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(invalidateChildType.displayName || invalidateChildType.name || invalidateChildType, "`."));
|
|
125
101
|
}
|
|
126
|
-
|
|
127
102
|
(0, _warning.default)(inputValue === undefined, '`inputValue` is deprecated, please use `searchValue` instead.');
|
|
128
103
|
}
|
|
129
104
|
}
|
|
130
|
-
|
|
131
105
|
var _default = warningProps;
|
|
132
106
|
exports.default = _default;
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
@hoverBorderColor;
|
|
10
10
|
@outlineColor;
|
|
11
11
|
) {
|
|
12
|
-
&.@{select-prefix-cls}:not(.@{select-prefix-cls}-disabled):not(
|
|
12
|
+
&.@{select-prefix-cls}:not(.@{select-prefix-cls}-disabled):not(
|
|
13
|
+
.@{select-prefix-cls}-customize-input
|
|
14
|
+
) {
|
|
13
15
|
.@{select-prefix-cls}-selector {
|
|
14
16
|
background-color: @background-color;
|
|
15
17
|
border-color: @border-color !important;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
|
|
3
|
+
type RenderNode = React.ReactNode | ((props: any) => React.ReactNode);
|
|
4
4
|
export default function getIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, multiple, hasFeedback, prefixCls, showArrow, feedbackIcon, }: {
|
|
5
5
|
suffixIcon?: React.ReactNode;
|
|
6
6
|
clearIcon?: RenderNode;
|
|
@@ -18,7 +18,7 @@ export default function getIcons({ suffixIcon, clearIcon, menuItemSelectedIcon,
|
|
|
18
18
|
open: boolean;
|
|
19
19
|
showSearch: boolean;
|
|
20
20
|
}) => JSX.Element);
|
|
21
|
-
itemIcon: number | boolean | React.ReactFragment | JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
22
|
-
removeIcon: number | boolean | React.ReactFragment | JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
21
|
+
itemIcon: string | number | boolean | React.ReactFragment | JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
22
|
+
removeIcon: string | number | boolean | React.ReactFragment | JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
23
23
|
};
|
|
24
24
|
export {};
|
|
@@ -1,60 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = getIcons;
|
|
9
|
-
|
|
10
8
|
require("@aloudata/icons-react/styles/index.less");
|
|
11
|
-
|
|
12
9
|
var _CancelFill2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/CancelFill"));
|
|
13
|
-
|
|
14
10
|
var _ArrowsDownLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/ArrowsDownLine"));
|
|
15
|
-
|
|
16
11
|
var React = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
12
|
var _LoadingOutlined = _interopRequireDefault(require("@ant-design/icons/LoadingOutlined"));
|
|
19
|
-
|
|
20
13
|
var _CheckOutlined = _interopRequireDefault(require("@ant-design/icons/CheckOutlined"));
|
|
21
|
-
|
|
22
14
|
var _CloseCircleFilled = _interopRequireDefault(require("@ant-design/icons/CloseCircleFilled"));
|
|
23
|
-
|
|
24
15
|
var _themeColorModule = _interopRequireDefault(require("../../style/themes/default/themeColor.module.less"));
|
|
25
|
-
|
|
26
16
|
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); }
|
|
27
|
-
|
|
28
17
|
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; }
|
|
29
|
-
|
|
30
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
|
|
32
19
|
function getIcons(_ref) {
|
|
33
20
|
var suffixIcon = _ref.suffixIcon,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
21
|
+
clearIcon = _ref.clearIcon,
|
|
22
|
+
menuItemSelectedIcon = _ref.menuItemSelectedIcon,
|
|
23
|
+
removeIcon = _ref.removeIcon,
|
|
24
|
+
loading = _ref.loading,
|
|
25
|
+
multiple = _ref.multiple,
|
|
26
|
+
hasFeedback = _ref.hasFeedback,
|
|
27
|
+
prefixCls = _ref.prefixCls,
|
|
28
|
+
showArrow = _ref.showArrow,
|
|
29
|
+
feedbackIcon = _ref.feedbackIcon;
|
|
43
30
|
// Clear Icon
|
|
44
31
|
var mergedClearIcon = clearIcon;
|
|
45
|
-
|
|
46
32
|
if (!clearIcon) {
|
|
47
33
|
mergedClearIcon = /*#__PURE__*/React.createElement(_CloseCircleFilled.default, null);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
}
|
|
35
|
+
// Validation Feedback Icon
|
|
51
36
|
var getSuffixIconNode = function getSuffixIconNode(arrowIcon) {
|
|
52
37
|
return /*#__PURE__*/React.createElement(React.Fragment, null, showArrow !== false && arrowIcon, hasFeedback && feedbackIcon);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
|
|
38
|
+
};
|
|
39
|
+
// Arrow item icon
|
|
56
40
|
var mergedSuffixIcon = null;
|
|
57
|
-
|
|
58
41
|
if (suffixIcon !== undefined) {
|
|
59
42
|
mergedSuffixIcon = getSuffixIconNode(suffixIcon);
|
|
60
43
|
} else if (loading) {
|
|
@@ -63,10 +46,9 @@ function getIcons(_ref) {
|
|
|
63
46
|
}));
|
|
64
47
|
} else {
|
|
65
48
|
var iconCls = "".concat(prefixCls, "-suffix");
|
|
66
|
-
|
|
67
49
|
mergedSuffixIcon = function mergedSuffixIcon(_ref2) {
|
|
68
50
|
var open = _ref2.open,
|
|
69
|
-
|
|
51
|
+
showSearch = _ref2.showSearch;
|
|
70
52
|
// if (open && showSearch) {
|
|
71
53
|
// return getSuffixIconNode(<SearchOutlined className={iconCls} />);
|
|
72
54
|
// }
|
|
@@ -75,11 +57,9 @@ function getIcons(_ref) {
|
|
|
75
57
|
className: iconCls
|
|
76
58
|
}));
|
|
77
59
|
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
60
|
+
}
|
|
61
|
+
// Checked item icon
|
|
81
62
|
var mergedItemIcon = null;
|
|
82
|
-
|
|
83
63
|
if (menuItemSelectedIcon !== undefined) {
|
|
84
64
|
mergedItemIcon = menuItemSelectedIcon;
|
|
85
65
|
} else if (multiple) {
|
|
@@ -87,9 +67,7 @@ function getIcons(_ref) {
|
|
|
87
67
|
} else {
|
|
88
68
|
mergedItemIcon = null;
|
|
89
69
|
}
|
|
90
|
-
|
|
91
70
|
var mergedRemoveIcon = null;
|
|
92
|
-
|
|
93
71
|
if (removeIcon !== undefined) {
|
|
94
72
|
mergedRemoveIcon = removeIcon;
|
|
95
73
|
} else {
|
|
@@ -98,7 +76,6 @@ function getIcons(_ref) {
|
|
|
98
76
|
size: '1em'
|
|
99
77
|
});
|
|
100
78
|
}
|
|
101
|
-
|
|
102
79
|
return {
|
|
103
80
|
clearIcon: mergedClearIcon,
|
|
104
81
|
suffixIcon: mergedSuffixIcon,
|
package/lib/Skeleton/index.js
CHANGED
|
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _Skeleton = _interopRequireDefault(require("antd/es/skeleton/Skeleton"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var _default = _Skeleton.default;
|
|
13
10
|
exports.default = _default;
|
package/lib/Space/index.js
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
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
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
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); }
|
|
13
|
-
|
|
14
|
-
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; }
|
|
15
|
-
|
|
7
|
+
var _space = _interopRequireDefault(require("antd/es/space"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
9
|
var _default = _space.default;
|
|
17
10
|
exports.default = _default;
|
package/lib/Space/style/index.js
CHANGED
package/lib/Spin/index.d.ts
CHANGED
package/lib/Spin/index.js
CHANGED
|
@@ -4,10 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _spin = _interopRequireDefault(require("antd/es/spin"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var _default = _spin.default;
|
|
13
10
|
exports.default = _default;
|
package/lib/Spin/style/index.js
CHANGED
|
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ProcessIcon = ProcessIcon;
|
|
7
|
-
|
|
8
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
function ProcessIcon(_ref) {
|
|
15
11
|
var type = _ref.type;
|
|
16
12
|
return /*#__PURE__*/_react.default.createElement("span", {
|