1 line
31 KiB
JSON
1 line
31 KiB
JSON
{"ast":null,"code":"\"use client\";\n\nimport React, { useMemo, useRef, useState } from 'react';\nimport DownOutlined from \"@ant-design/icons/es/icons/DownOutlined\";\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport { groupKeysMap } from '../_util/transKeys';\nimport Checkbox from '../checkbox';\nimport Dropdown from '../dropdown';\nimport DefaultListBody, { OmitProps } from './ListBody';\nimport Search from './search';\nconst defaultRender = () => null;\nfunction isRenderResultPlainObject(result) {\n return !!(result && ! /*#__PURE__*/React.isValidElement(result) && Object.prototype.toString.call(result) === '[object Object]');\n}\nfunction getEnabledItemKeys(items) {\n return items.filter(data => !data.disabled).map(data => data.key);\n}\nconst isValidIcon = icon => icon !== undefined;\nconst TransferList = props => {\n const {\n prefixCls,\n dataSource = [],\n titleText = '',\n checkedKeys,\n disabled,\n showSearch = false,\n style,\n searchPlaceholder,\n notFoundContent,\n selectAll,\n deselectAll,\n selectCurrent,\n selectInvert,\n removeAll,\n removeCurrent,\n showSelectAll = true,\n showRemove,\n pagination,\n direction,\n itemsUnit,\n itemUnit,\n selectAllLabel,\n selectionsIcon,\n footer,\n renderList,\n onItemSelectAll,\n onItemRemove,\n handleFilter,\n handleClear,\n filterOption,\n render = defaultRender\n } = props;\n const [filterValue, setFilterValue] = useState('');\n const listBodyRef = useRef({});\n const internalHandleFilter = e => {\n setFilterValue(e.target.value);\n handleFilter(e);\n };\n const internalHandleClear = () => {\n setFilterValue('');\n handleClear();\n };\n const matchFilter = (text, item) => {\n if (filterOption) {\n return filterOption(filterValue, item, direction);\n }\n return text.includes(filterValue);\n };\n const renderListBody = listProps => {\n let bodyContent = renderList ? renderList(Object.assign(Object.assign({}, listProps), {\n onItemSelect: (key, check) => listProps.onItemSelect(key, check)\n })) : null;\n const customize = !!bodyContent;\n if (!customize) {\n // @ts-ignore\n bodyContent = /*#__PURE__*/React.createElement(DefaultListBody, Object.assign({\n ref: listBodyRef\n }, listProps));\n }\n return {\n customize,\n bodyContent\n };\n };\n const renderItem = item => {\n const renderResult = render(item);\n const isRenderResultPlain = isRenderResultPlainObject(renderResult);\n return {\n item,\n renderedEl: isRenderResultPlain ? renderResult.label : renderResult,\n renderedText: isRenderResultPlain ? renderResult.value : renderResult\n };\n };\n const notFoundContentEle = useMemo(() => Array.isArray(notFoundContent) ? notFoundContent[direction === 'left' ? 0 : 1] : notFoundContent, [notFoundContent, direction]);\n const [filteredItems, filteredRenderItems] = useMemo(() => {\n const filterItems = [];\n const filterRenderItems = [];\n dataSource.forEach(item => {\n const renderedItem = renderItem(item);\n if (filterValue && !matchFilter(renderedItem.renderedText, item)) {\n return;\n }\n filterItems.push(item);\n filterRenderItems.push(renderedItem);\n });\n return [filterItems, filterRenderItems];\n }, [dataSource, filterValue]);\n const checkStatus = useMemo(() => {\n if (checkedKeys.length === 0) {\n return 'none';\n }\n const checkedKeysMap = groupKeysMap(checkedKeys);\n if (filteredItems.every(item => checkedKeysMap.has(item.key) || !!item.disabled)) {\n return 'all';\n }\n return 'part';\n }, [checkedKeys, filteredItems]);\n const listBody = useMemo(() => {\n const search = showSearch ? ( /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-body-search-wrapper`\n }, /*#__PURE__*/React.createElement(Search, {\n prefixCls: `${prefixCls}-search`,\n onChange: internalHandleFilter,\n handleClear: internalHandleClear,\n placeholder: searchPlaceholder,\n value: filterValue,\n disabled: disabled\n }))) : null;\n const {\n customize,\n bodyContent\n } = renderListBody(Object.assign(Object.assign({}, omit(props, OmitProps)), {\n filteredItems,\n filteredRenderItems,\n selectedKeys: checkedKeys\n }));\n let bodyNode;\n // We should wrap customize list body in a classNamed div to use flex layout.\n if (customize) {\n bodyNode = /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-body-customize-wrapper`\n }, bodyContent);\n } else {\n bodyNode = filteredItems.length ? bodyContent : ( /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-body-not-found`\n }, notFoundContentEle));\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(showSearch ? `${prefixCls}-body ${prefixCls}-body-with-search` : `${prefixCls}-body`)\n }, search, bodyNode);\n }, [showSearch, prefixCls, searchPlaceholder, filterValue, disabled, checkedKeys, filteredItems, filteredRenderItems, notFoundContentEle]);\n const checkBox = /*#__PURE__*/React.createElement(Checkbox, {\n disabled: dataSource.length === 0 || disabled,\n checked: checkStatus === 'all',\n indeterminate: checkStatus === 'part',\n className: `${prefixCls}-checkbox`,\n onChange: () => {\n // Only select enabled items\n onItemSelectAll === null || onItemSelectAll === void 0 ? void 0 : onItemSelectAll(filteredItems.filter(item => !item.disabled).map(_ref => {\n let {\n key\n } = _ref;\n return key;\n }), checkStatus !== 'all');\n }\n });\n const getSelectAllLabel = (selectedCount, totalCount) => {\n if (selectAllLabel) {\n return typeof selectAllLabel === 'function' ? selectAllLabel({\n selectedCount,\n totalCount\n }) : selectAllLabel;\n }\n const unit = totalCount > 1 ? itemsUnit : itemUnit;\n return /*#__PURE__*/React.createElement(React.Fragment, null, (selectedCount > 0 ? `${selectedCount}/` : '') + totalCount, \" \", unit);\n };\n // Custom Layout\n const footerDom = footer && (footer.length < 2 ? footer(props) : footer(props, {\n direction\n }));\n const listCls = classNames(prefixCls, {\n [`${prefixCls}-with-pagination`]: !!pagination,\n [`${prefixCls}-with-footer`]: !!footerDom\n });\n // ====================== Get filtered, checked item list ======================\n const listFooter = footerDom ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-footer`\n }, footerDom) : null;\n const checkAllCheckbox = !showRemove && !pagination && checkBox;\n let items;\n if (showRemove) {\n items = [/* Remove Current Page */\n pagination ? {\n key: 'removeCurrent',\n label: removeCurrent,\n onClick() {\n var _a;\n const pageKeys = getEnabledItemKeys((((_a = listBodyRef.current) === null || _a === void 0 ? void 0 : _a.items) || []).map(entity => entity.item));\n onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(pageKeys);\n }\n } : null, /* Remove All */\n {\n key: 'removeAll',\n label: removeAll,\n onClick() {\n onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(getEnabledItemKeys(filteredItems));\n }\n }].filter(Boolean);\n } else {\n items = [{\n key: 'selectAll',\n label: checkStatus === 'all' ? deselectAll : selectAll,\n onClick() {\n const keys = getEnabledItemKeys(filteredItems);\n onItemSelectAll === null || onItemSelectAll === void 0 ? void 0 : onItemSelectAll(keys, keys.length !== checkedKeys.length);\n }\n }, pagination ? {\n key: 'selectCurrent',\n label: selectCurrent,\n onClick() {\n var _a;\n const pageItems = ((_a = listBodyRef.current) === null || _a === void 0 ? void 0 : _a.items) || [];\n onItemSelectAll === null || onItemSelectAll === void 0 ? void 0 : onItemSelectAll(getEnabledItemKeys(pageItems.map(entity => entity.item)), true);\n }\n } : null, {\n key: 'selectInvert',\n label: selectInvert,\n onClick() {\n var _a;\n const availablePageItemKeys = getEnabledItemKeys((((_a = listBodyRef.current) === null || _a === void 0 ? void 0 : _a.items) || []).map(entity => entity.item));\n const checkedKeySet = new Set(checkedKeys);\n const newCheckedKeysSet = new Set(checkedKeySet);\n availablePageItemKeys.forEach(key => {\n if (checkedKeySet.has(key)) {\n newCheckedKeysSet.delete(key);\n } else {\n newCheckedKeysSet.add(key);\n }\n });\n onItemSelectAll === null || onItemSelectAll === void 0 ? void 0 : onItemSelectAll(Array.from(newCheckedKeysSet), 'replace');\n }\n }];\n }\n const dropdown = /*#__PURE__*/React.createElement(Dropdown, {\n className: `${prefixCls}-header-dropdown`,\n menu: {\n items\n },\n disabled: disabled\n }, isValidIcon(selectionsIcon) ? selectionsIcon : /*#__PURE__*/React.createElement(DownOutlined, null));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: listCls,\n style: style\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-header`\n }, showSelectAll ? ( /*#__PURE__*/React.createElement(React.Fragment, null, checkAllCheckbox, dropdown)) : null, /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-header-selected`\n }, getSelectAllLabel(checkedKeys.length, filteredItems.length)), /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-header-title`\n }, titleText)), listBody, listFooter);\n};\nif (process.env.NODE_ENV !== 'production') {\n TransferList.displayName = 'TransferList';\n}\nexport default TransferList;","map":{"version":3,"names":["React","useMemo","useRef","useState","DownOutlined","classNames","omit","groupKeysMap","Checkbox","Dropdown","DefaultListBody","OmitProps","Search","defaultRender","isRenderResultPlainObject","result","isValidElement","Object","prototype","toString","call","getEnabledItemKeys","items","filter","data","disabled","map","key","isValidIcon","icon","undefined","TransferList","props","prefixCls","dataSource","titleText","checkedKeys","showSearch","style","searchPlaceholder","notFoundContent","selectAll","deselectAll","selectCurrent","selectInvert","removeAll","removeCurrent","showSelectAll","showRemove","pagination","direction","itemsUnit","itemUnit","selectAllLabel","selectionsIcon","footer","renderList","onItemSelectAll","onItemRemove","handleFilter","handleClear","filterOption","render","filterValue","setFilterValue","listBodyRef","internalHandleFilter","e","target","value","internalHandleClear","matchFilter","text","item","includes","renderListBody","listProps","bodyContent","assign","onItemSelect","check","customize","createElement","ref","renderItem","renderResult","isRenderResultPlain","renderedEl","label","renderedText","notFoundContentEle","Array","isArray","filteredItems","filteredRenderItems","filterItems","filterRenderItems","forEach","renderedItem","push","checkStatus","length","checkedKeysMap","every","has","listBody","search","className","onChange","placeholder","selectedKeys","bodyNode","checkBox","checked","indeterminate","_ref","getSelectAllLabel","selectedCount","totalCount","unit","Fragment","footerDom","listCls","listFooter","checkAllCheckbox","onClick","_a","pageKeys","current","entity","Boolean","keys","pageItems","availablePageItemKeys","checkedKeySet","Set","newCheckedKeysSet","delete","add","from","dropdown","menu","process","env","NODE_ENV","displayName"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/transfer/list.js"],"sourcesContent":["\"use client\";\n\nimport React, { useMemo, useRef, useState } from 'react';\nimport DownOutlined from \"@ant-design/icons/es/icons/DownOutlined\";\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport { groupKeysMap } from '../_util/transKeys';\nimport Checkbox from '../checkbox';\nimport Dropdown from '../dropdown';\nimport DefaultListBody, { OmitProps } from './ListBody';\nimport Search from './search';\nconst defaultRender = () => null;\nfunction isRenderResultPlainObject(result) {\n return !!(result && ! /*#__PURE__*/React.isValidElement(result) && Object.prototype.toString.call(result) === '[object Object]');\n}\nfunction getEnabledItemKeys(items) {\n return items.filter(data => !data.disabled).map(data => data.key);\n}\nconst isValidIcon = icon => icon !== undefined;\nconst TransferList = props => {\n const {\n prefixCls,\n dataSource = [],\n titleText = '',\n checkedKeys,\n disabled,\n showSearch = false,\n style,\n searchPlaceholder,\n notFoundContent,\n selectAll,\n deselectAll,\n selectCurrent,\n selectInvert,\n removeAll,\n removeCurrent,\n showSelectAll = true,\n showRemove,\n pagination,\n direction,\n itemsUnit,\n itemUnit,\n selectAllLabel,\n selectionsIcon,\n footer,\n renderList,\n onItemSelectAll,\n onItemRemove,\n handleFilter,\n handleClear,\n filterOption,\n render = defaultRender\n } = props;\n const [filterValue, setFilterValue] = useState('');\n const listBodyRef = useRef({});\n const internalHandleFilter = e => {\n setFilterValue(e.target.value);\n handleFilter(e);\n };\n const internalHandleClear = () => {\n setFilterValue('');\n handleClear();\n };\n const matchFilter = (text, item) => {\n if (filterOption) {\n return filterOption(filterValue, item, direction);\n }\n return text.includes(filterValue);\n };\n const renderListBody = listProps => {\n let bodyContent = renderList ? renderList(Object.assign(Object.assign({}, listProps), {\n onItemSelect: (key, check) => listProps.onItemSelect(key, check)\n })) : null;\n const customize = !!bodyContent;\n if (!customize) {\n // @ts-ignore\n bodyContent = /*#__PURE__*/React.createElement(DefaultListBody, Object.assign({\n ref: listBodyRef\n }, listProps));\n }\n return {\n customize,\n bodyContent\n };\n };\n const renderItem = item => {\n const renderResult = render(item);\n const isRenderResultPlain = isRenderResultPlainObject(renderResult);\n return {\n item,\n renderedEl: isRenderResultPlain ? renderResult.label : renderResult,\n renderedText: isRenderResultPlain ? renderResult.value : renderResult\n };\n };\n const notFoundContentEle = useMemo(() => Array.isArray(notFoundContent) ? notFoundContent[direction === 'left' ? 0 : 1] : notFoundContent, [notFoundContent, direction]);\n const [filteredItems, filteredRenderItems] = useMemo(() => {\n const filterItems = [];\n const filterRenderItems = [];\n dataSource.forEach(item => {\n const renderedItem = renderItem(item);\n if (filterValue && !matchFilter(renderedItem.renderedText, item)) {\n return;\n }\n filterItems.push(item);\n filterRenderItems.push(renderedItem);\n });\n return [filterItems, filterRenderItems];\n }, [dataSource, filterValue]);\n const checkStatus = useMemo(() => {\n if (checkedKeys.length === 0) {\n return 'none';\n }\n const checkedKeysMap = groupKeysMap(checkedKeys);\n if (filteredItems.every(item => checkedKeysMap.has(item.key) || !!item.disabled)) {\n return 'all';\n }\n return 'part';\n }, [checkedKeys, filteredItems]);\n const listBody = useMemo(() => {\n const search = showSearch ? ( /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-body-search-wrapper`\n }, /*#__PURE__*/React.createElement(Search, {\n prefixCls: `${prefixCls}-search`,\n onChange: internalHandleFilter,\n handleClear: internalHandleClear,\n placeholder: searchPlaceholder,\n value: filterValue,\n disabled: disabled\n }))) : null;\n const {\n customize,\n bodyContent\n } = renderListBody(Object.assign(Object.assign({}, omit(props, OmitProps)), {\n filteredItems,\n filteredRenderItems,\n selectedKeys: checkedKeys\n }));\n let bodyNode;\n // We should wrap customize list body in a classNamed div to use flex layout.\n if (customize) {\n bodyNode = /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-body-customize-wrapper`\n }, bodyContent);\n } else {\n bodyNode = filteredItems.length ? bodyContent : ( /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-body-not-found`\n }, notFoundContentEle));\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(showSearch ? `${prefixCls}-body ${prefixCls}-body-with-search` : `${prefixCls}-body`)\n }, search, bodyNode);\n }, [showSearch, prefixCls, searchPlaceholder, filterValue, disabled, checkedKeys, filteredItems, filteredRenderItems, notFoundContentEle]);\n const checkBox = /*#__PURE__*/React.createElement(Checkbox, {\n disabled: dataSource.length === 0 || disabled,\n checked: checkStatus === 'all',\n indeterminate: checkStatus === 'part',\n className: `${prefixCls}-checkbox`,\n onChange: () => {\n // Only select enabled items\n onItemSelectAll === null || onItemSelectAll === void 0 ? void 0 : onItemSelectAll(filteredItems.filter(item => !item.disabled).map(_ref => {\n let {\n key\n } = _ref;\n return key;\n }), checkStatus !== 'all');\n }\n });\n const getSelectAllLabel = (selectedCount, totalCount) => {\n if (selectAllLabel) {\n return typeof selectAllLabel === 'function' ? selectAllLabel({\n selectedCount,\n totalCount\n }) : selectAllLabel;\n }\n const unit = totalCount > 1 ? itemsUnit : itemUnit;\n return /*#__PURE__*/React.createElement(React.Fragment, null, (selectedCount > 0 ? `${selectedCount}/` : '') + totalCount, \" \", unit);\n };\n // Custom Layout\n const footerDom = footer && (footer.length < 2 ? footer(props) : footer(props, {\n direction\n }));\n const listCls = classNames(prefixCls, {\n [`${prefixCls}-with-pagination`]: !!pagination,\n [`${prefixCls}-with-footer`]: !!footerDom\n });\n // ====================== Get filtered, checked item list ======================\n const listFooter = footerDom ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-footer`\n }, footerDom) : null;\n const checkAllCheckbox = !showRemove && !pagination && checkBox;\n let items;\n if (showRemove) {\n items = [/* Remove Current Page */\n pagination ? {\n key: 'removeCurrent',\n label: removeCurrent,\n onClick() {\n var _a;\n const pageKeys = getEnabledItemKeys((((_a = listBodyRef.current) === null || _a === void 0 ? void 0 : _a.items) || []).map(entity => entity.item));\n onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(pageKeys);\n }\n } : null, /* Remove All */\n {\n key: 'removeAll',\n label: removeAll,\n onClick() {\n onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(getEnabledItemKeys(filteredItems));\n }\n }].filter(Boolean);\n } else {\n items = [{\n key: 'selectAll',\n label: checkStatus === 'all' ? deselectAll : selectAll,\n onClick() {\n const keys = getEnabledItemKeys(filteredItems);\n onItemSelectAll === null || onItemSelectAll === void 0 ? void 0 : onItemSelectAll(keys, keys.length !== checkedKeys.length);\n }\n }, pagination ? {\n key: 'selectCurrent',\n label: selectCurrent,\n onClick() {\n var _a;\n const pageItems = ((_a = listBodyRef.current) === null || _a === void 0 ? void 0 : _a.items) || [];\n onItemSelectAll === null || onItemSelectAll === void 0 ? void 0 : onItemSelectAll(getEnabledItemKeys(pageItems.map(entity => entity.item)), true);\n }\n } : null, {\n key: 'selectInvert',\n label: selectInvert,\n onClick() {\n var _a;\n const availablePageItemKeys = getEnabledItemKeys((((_a = listBodyRef.current) === null || _a === void 0 ? void 0 : _a.items) || []).map(entity => entity.item));\n const checkedKeySet = new Set(checkedKeys);\n const newCheckedKeysSet = new Set(checkedKeySet);\n availablePageItemKeys.forEach(key => {\n if (checkedKeySet.has(key)) {\n newCheckedKeysSet.delete(key);\n } else {\n newCheckedKeysSet.add(key);\n }\n });\n onItemSelectAll === null || onItemSelectAll === void 0 ? void 0 : onItemSelectAll(Array.from(newCheckedKeysSet), 'replace');\n }\n }];\n }\n const dropdown = /*#__PURE__*/React.createElement(Dropdown, {\n className: `${prefixCls}-header-dropdown`,\n menu: {\n items\n },\n disabled: disabled\n }, isValidIcon(selectionsIcon) ? selectionsIcon : /*#__PURE__*/React.createElement(DownOutlined, null));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: listCls,\n style: style\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-header`\n }, showSelectAll ? ( /*#__PURE__*/React.createElement(React.Fragment, null, checkAllCheckbox, dropdown)) : null, /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-header-selected`\n }, getSelectAllLabel(checkedKeys.length, filteredItems.length)), /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-header-title`\n }, titleText)), listBody, listFooter);\n};\nif (process.env.NODE_ENV !== 'production') {\n TransferList.displayName =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