@antscorp/antsomi-ui 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/react-is.development.js +1 -1
- package/dist/_virtual/react-is.production.min.js +1 -1
- package/dist/node_modules/@ant-design/colors/es/generate.js +1 -1
- package/dist/node_modules/@ant-design/colors/es/generate.js.map +1 -1
- package/dist/node_modules/@ant-design/colors/es/index.js +1 -1
- package/dist/node_modules/@ant-design/colors/es/index.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useHMR.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useHMR.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/createTheme.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/createTheme.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/util.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/util.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.esm.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.esm.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/Context.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/Context.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/BarsOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/BarsOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EyeInvisibleOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EyeInvisibleOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/utils.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/utils.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/BarsOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/BarsOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EllipsisOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EllipsisOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js.map +1 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js +1 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +1 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +1 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -1
- package/dist/node_modules/@emotion/react/dist/emotion-element-3838ba9e.esm.js +1 -1
- package/dist/node_modules/@emotion/react/dist/emotion-element-3838ba9e.esm.js.map +1 -1
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js +1 -1
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +1 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -1
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +1 -1
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +1 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -1
- package/dist/node_modules/@emotion/unitless/dist/unitless.esm.js +1 -1
- package/dist/node_modules/@emotion/unitless/dist/unitless.esm.js.map +1 -1
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +1 -1
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js.map +1 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js +1 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js.map +1 -1
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +1 -1
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/Context.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/Context.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/Portal.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/Portal.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/index.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/mock.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/mock.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/useDom.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/useDom.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/useScrollLocker.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/useScrollLocker.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/util.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/util.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/Arrow.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/Arrow.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/Mask.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/Mask.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/TriggerWrapper.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/TriggerWrapper.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/context.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/context.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAction.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAction.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWatch.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWatch.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/index.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/util.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/util.js.map +1 -1
- package/dist/node_modules/antd/es/_util/ActionButton.js +1 -1
- package/dist/node_modules/antd/es/_util/ActionButton.js.map +1 -1
- package/dist/node_modules/antd/es/_util/PurePanel.js +1 -1
- package/dist/node_modules/antd/es/_util/PurePanel.js.map +1 -1
- package/dist/node_modules/antd/es/_util/colors.js +1 -1
- package/dist/node_modules/antd/es/_util/colors.js.map +1 -1
- package/dist/node_modules/antd/es/_util/getDataOrAriaProps.js +1 -1
- package/dist/node_modules/antd/es/_util/getDataOrAriaProps.js.map +1 -1
- package/dist/node_modules/antd/es/_util/hooks/useFlexGapSupport.js +1 -1
- package/dist/node_modules/antd/es/_util/hooks/useFlexGapSupport.js.map +1 -1
- package/dist/node_modules/antd/es/_util/hooks/usePatchElement.js +1 -1
- package/dist/node_modules/antd/es/_util/hooks/usePatchElement.js.map +1 -1
- package/dist/node_modules/antd/es/_util/isNumeric.js +1 -1
- package/dist/node_modules/antd/es/_util/isNumeric.js.map +1 -1
- package/dist/node_modules/antd/es/_util/motion.js +1 -1
- package/dist/node_modules/antd/es/_util/motion.js.map +1 -1
- package/dist/node_modules/antd/es/_util/placements.js +1 -1
- package/dist/node_modules/antd/es/_util/placements.js.map +1 -1
- package/dist/node_modules/antd/es/_util/reactNode.js +1 -1
- package/dist/node_modules/antd/es/_util/reactNode.js.map +1 -1
- package/dist/node_modules/antd/es/_util/statusUtils.js +1 -1
- package/dist/node_modules/antd/es/_util/statusUtils.js.map +1 -1
- package/dist/node_modules/antd/es/_util/styleChecker.js +1 -1
- package/dist/node_modules/antd/es/_util/styleChecker.js.map +1 -1
- package/dist/node_modules/antd/es/_util/warning.js +1 -1
- package/dist/node_modules/antd/es/_util/warning.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/index.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/index.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/useWave.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/useWave.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.js.map +1 -1
- package/dist/node_modules/antd/es/alert/ErrorBoundary.js +1 -1
- package/dist/node_modules/antd/es/alert/ErrorBoundary.js.map +1 -1
- package/dist/node_modules/antd/es/alert/index.js +1 -1
- package/dist/node_modules/antd/es/alert/index.js.map +1 -1
- package/dist/node_modules/antd/es/alert/style/index.js +1 -1
- package/dist/node_modules/antd/es/alert/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/button/LoadingIcon.js +1 -1
- package/dist/node_modules/antd/es/button/LoadingIcon.js.map +1 -1
- package/dist/node_modules/antd/es/button/button-group.js +1 -1
- package/dist/node_modules/antd/es/button/button-group.js.map +1 -1
- package/dist/node_modules/antd/es/button/button.js +1 -1
- package/dist/node_modules/antd/es/button/button.js.map +1 -1
- package/dist/node_modules/antd/es/button/buttonHelpers.js +1 -1
- package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
- package/dist/node_modules/antd/es/button/index.js +1 -1
- package/dist/node_modules/antd/es/button/style/group.js +1 -1
- package/dist/node_modules/antd/es/button/style/group.js.map +1 -1
- package/dist/node_modules/antd/es/button/style/index.js +1 -1
- package/dist/node_modules/antd/es/button/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/calendar/locale/en_US.js +1 -1
- package/dist/node_modules/antd/es/cascader/index.js +1 -1
- package/dist/node_modules/antd/es/cascader/index.js.map +1 -1
- package/dist/node_modules/antd/es/cascader/style/index.js +1 -1
- package/dist/node_modules/antd/es/cascader/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/checkbox/style/index.js +1 -1
- package/dist/node_modules/antd/es/checkbox/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/DisabledContext.js +1 -1
- package/dist/node_modules/antd/es/config-provider/DisabledContext.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/SizeContext.js +1 -1
- package/dist/node_modules/antd/es/config-provider/SizeContext.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/context.js +1 -1
- package/dist/node_modules/antd/es/config-provider/context.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/cssVariables.js +1 -1
- package/dist/node_modules/antd/es/config-provider/cssVariables.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/defaultRenderEmpty.js +1 -1
- package/dist/node_modules/antd/es/config-provider/defaultRenderEmpty.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useConfig.js +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useConfig.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useTheme.js +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useTheme.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/index.js +1 -1
- package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/style/index.js +1 -1
- package/dist/node_modules/antd/es/config-provider/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/locale/en_US.js +1 -1
- package/dist/node_modules/antd/es/date-picker/locale/en_US.js.map +1 -1
- package/dist/node_modules/antd/es/divider/index.js +1 -1
- package/dist/node_modules/antd/es/divider/index.js.map +1 -1
- package/dist/node_modules/antd/es/divider/style/index.js +1 -1
- package/dist/node_modules/antd/es/divider/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/dropdown-button.js +1 -1
- package/dist/node_modules/antd/es/dropdown/dropdown-button.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/dropdown.js +1 -1
- package/dist/node_modules/antd/es/dropdown/dropdown.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/index.js +1 -1
- package/dist/node_modules/antd/es/dropdown/style/button.js +1 -1
- package/dist/node_modules/antd/es/dropdown/style/button.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/style/index.js +1 -1
- package/dist/node_modules/antd/es/dropdown/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/style/status.js +1 -1
- package/dist/node_modules/antd/es/dropdown/style/status.js.map +1 -1
- package/dist/node_modules/antd/es/empty/empty.js +1 -1
- package/dist/node_modules/antd/es/empty/empty.js.map +1 -1
- package/dist/node_modules/antd/es/empty/index.js +1 -1
- package/dist/node_modules/antd/es/empty/index.js.map +1 -1
- package/dist/node_modules/antd/es/empty/simple.js +1 -1
- package/dist/node_modules/antd/es/empty/simple.js.map +1 -1
- package/dist/node_modules/antd/es/empty/style/index.js +1 -1
- package/dist/node_modules/antd/es/empty/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/form/context.js +1 -1
- package/dist/node_modules/antd/es/form/context.js.map +1 -1
- package/dist/node_modules/antd/es/input/Group.js +1 -1
- package/dist/node_modules/antd/es/input/Group.js.map +1 -1
- package/dist/node_modules/antd/es/input/Input.js +1 -1
- package/dist/node_modules/antd/es/input/Input.js.map +1 -1
- package/dist/node_modules/antd/es/input/Password.js +1 -1
- package/dist/node_modules/antd/es/input/Password.js.map +1 -1
- package/dist/node_modules/antd/es/input/Search.js +1 -1
- package/dist/node_modules/antd/es/input/Search.js.map +1 -1
- package/dist/node_modules/antd/es/input/TextArea.js +1 -1
- package/dist/node_modules/antd/es/input/TextArea.js.map +1 -1
- package/dist/node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js +1 -1
- package/dist/node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js.map +1 -1
- package/dist/node_modules/antd/es/input/index.js +1 -1
- package/dist/node_modules/antd/es/input/index.js.map +1 -1
- package/dist/node_modules/antd/es/input/style/index.js +1 -1
- package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/input/utils.js +1 -1
- package/dist/node_modules/antd/es/input/utils.js.map +1 -1
- package/dist/node_modules/antd/es/layout/Sider.js +1 -1
- package/dist/node_modules/antd/es/layout/Sider.js.map +1 -1
- package/dist/node_modules/antd/es/layout/layout.js +1 -1
- package/dist/node_modules/antd/es/layout/layout.js.map +1 -1
- package/dist/node_modules/antd/es/layout/style/index.js +1 -1
- package/dist/node_modules/antd/es/layout/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/layout/style/light.js +1 -1
- package/dist/node_modules/antd/es/layout/style/light.js.map +1 -1
- package/dist/node_modules/antd/es/locale/context.js +1 -1
- package/dist/node_modules/antd/es/locale/context.js.map +1 -1
- package/dist/node_modules/antd/es/locale/en_US.js +1 -1
- package/dist/node_modules/antd/es/locale/en_US.js.map +1 -1
- package/dist/node_modules/antd/es/locale/index.js +1 -1
- package/dist/node_modules/antd/es/locale/index.js.map +1 -1
- package/dist/node_modules/antd/es/locale/useLocale.js +1 -1
- package/dist/node_modules/antd/es/locale/useLocale.js.map +1 -1
- package/dist/node_modules/antd/es/menu/MenuContext.js +1 -1
- package/dist/node_modules/antd/es/menu/MenuContext.js.map +1 -1
- package/dist/node_modules/antd/es/menu/MenuDivider.js +1 -1
- package/dist/node_modules/antd/es/menu/MenuDivider.js.map +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
- package/dist/node_modules/antd/es/menu/OverrideContext.js +1 -1
- package/dist/node_modules/antd/es/menu/OverrideContext.js.map +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
- package/dist/node_modules/antd/es/menu/hooks/useItems.js +1 -1
- package/dist/node_modules/antd/es/menu/hooks/useItems.js.map +1 -1
- package/dist/node_modules/antd/es/menu/index.js +1 -1
- package/dist/node_modules/antd/es/menu/index.js.map +1 -1
- package/dist/node_modules/antd/es/menu/menu.js +1 -1
- package/dist/node_modules/antd/es/menu/menu.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
- package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/index.js +1 -1
- package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/rtl.js +1 -1
- package/dist/node_modules/antd/es/menu/style/rtl.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/theme.js +1 -1
- package/dist/node_modules/antd/es/menu/style/theme.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
- package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
- package/dist/node_modules/antd/es/modal/ConfirmDialog.js +1 -1
- package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
- package/dist/node_modules/antd/es/modal/Modal.js +1 -1
- package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
- package/dist/node_modules/antd/es/modal/PurePanel.js +1 -1
- package/dist/node_modules/antd/es/modal/PurePanel.js.map +1 -1
- package/dist/node_modules/antd/es/modal/confirm.js +1 -1
- package/dist/node_modules/antd/es/modal/confirm.js.map +1 -1
- package/dist/node_modules/antd/es/modal/destroyFns.js +1 -1
- package/dist/node_modules/antd/es/modal/destroyFns.js.map +1 -1
- package/dist/node_modules/antd/es/modal/index.js +1 -1
- package/dist/node_modules/antd/es/modal/index.js.map +1 -1
- package/dist/node_modules/antd/es/modal/locale.js +1 -1
- package/dist/node_modules/antd/es/modal/locale.js.map +1 -1
- package/dist/node_modules/antd/es/modal/style/index.js +1 -1
- package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/modal/useModal/HookModal.js +1 -1
- package/dist/node_modules/antd/es/modal/useModal/HookModal.js.map +1 -1
- package/dist/node_modules/antd/es/modal/useModal/index.js +1 -1
- package/dist/node_modules/antd/es/modal/useModal/index.js.map +1 -1
- package/dist/node_modules/antd/es/radio/context.js +1 -1
- package/dist/node_modules/antd/es/radio/context.js.map +1 -1
- package/dist/node_modules/antd/es/radio/group.js +1 -1
- package/dist/node_modules/antd/es/radio/group.js.map +1 -1
- package/dist/node_modules/antd/es/radio/index.js +1 -1
- package/dist/node_modules/antd/es/radio/index.js.map +1 -1
- package/dist/node_modules/antd/es/radio/radio.js +1 -1
- package/dist/node_modules/antd/es/radio/radio.js.map +1 -1
- package/dist/node_modules/antd/es/radio/radioButton.js +1 -1
- package/dist/node_modules/antd/es/radio/radioButton.js.map +1 -1
- package/dist/node_modules/antd/es/radio/style/index.js +1 -1
- package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/select/index.js +1 -1
- package/dist/node_modules/antd/es/select/index.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
- package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/index.js +1 -1
- package/dist/node_modules/antd/es/select/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/multiple.js +1 -1
- package/dist/node_modules/antd/es/select/style/multiple.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/single.js +1 -1
- package/dist/node_modules/antd/es/select/style/single.js.map +1 -1
- package/dist/node_modules/antd/es/select/useShowArrow.js +1 -1
- package/dist/node_modules/antd/es/select/useShowArrow.js.map +1 -1
- package/dist/node_modules/antd/es/select/utils/iconUtil.js +1 -1
- package/dist/node_modules/antd/es/select/utils/iconUtil.js.map +1 -1
- package/dist/node_modules/antd/es/space/Compact.js +1 -1
- package/dist/node_modules/antd/es/space/Compact.js.map +1 -1
- package/dist/node_modules/antd/es/space/Item.js +1 -1
- package/dist/node_modules/antd/es/space/Item.js.map +1 -1
- package/dist/node_modules/antd/es/space/index.js +1 -1
- package/dist/node_modules/antd/es/space/index.js.map +1 -1
- package/dist/node_modules/antd/es/space/style/compact.js +1 -1
- package/dist/node_modules/antd/es/space/style/compact.js.map +1 -1
- package/dist/node_modules/antd/es/space/style/index.js +1 -1
- package/dist/node_modules/antd/es/space/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/style/compact-item-vertical.js +1 -1
- package/dist/node_modules/antd/es/style/compact-item-vertical.js.map +1 -1
- package/dist/node_modules/antd/es/style/compact-item.js +1 -1
- package/dist/node_modules/antd/es/style/compact-item.js.map +1 -1
- package/dist/node_modules/antd/es/style/index.js +1 -1
- package/dist/node_modules/antd/es/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/collapse.js +1 -1
- package/dist/node_modules/antd/es/style/motion/collapse.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/fade.js +1 -1
- package/dist/node_modules/antd/es/style/motion/fade.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/motion.js +1 -1
- package/dist/node_modules/antd/es/style/motion/motion.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/move.js +1 -1
- package/dist/node_modules/antd/es/style/motion/move.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/slide.js +1 -1
- package/dist/node_modules/antd/es/style/motion/slide.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/zoom.js +1 -1
- package/dist/node_modules/antd/es/style/motion/zoom.js.map +1 -1
- package/dist/node_modules/antd/es/style/placementArrow.js +1 -1
- package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
- package/dist/node_modules/antd/es/style/presetColor.js +1 -1
- package/dist/node_modules/antd/es/style/presetColor.js.map +1 -1
- package/dist/node_modules/antd/es/style/roundedArrow.js +1 -1
- package/dist/node_modules/antd/es/style/roundedArrow.js.map +1 -1
- package/dist/node_modules/antd/es/theme/index.js +1 -1
- package/dist/node_modules/antd/es/theme/index.js.map +1 -1
- package/dist/node_modules/antd/es/theme/interface/presetColors.js +1 -1
- package/dist/node_modules/antd/es/theme/interface/presetColors.js.map +1 -1
- package/dist/node_modules/antd/es/theme/internal.js +1 -1
- package/dist/node_modules/antd/es/theme/internal.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/compact/genCompactSizeMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/compact/genCompactSizeMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/compact/index.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/compact/index.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/colorAlgorithm.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/colorAlgorithm.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/colors.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/colors.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/index.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/index.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/colorAlgorithm.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/colorAlgorithm.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/colors.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/colors.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/index.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/index.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/seed.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/seed.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genCommonMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genCommonMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genControlHeight.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genControlHeight.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genFontMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genFontMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genFontSizes.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genFontSizes.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genRadius.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genRadius.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genSizeMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genSizeMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/alias.js +1 -1
- package/dist/node_modules/antd/es/theme/util/alias.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/genComponentStyleHook.js +1 -1
- package/dist/node_modules/antd/es/theme/util/genComponentStyleHook.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/getAlphaColor.js +1 -1
- package/dist/node_modules/antd/es/theme/util/getAlphaColor.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/statistic.js +1 -1
- package/dist/node_modules/antd/es/theme/util/statistic.js.map +1 -1
- package/dist/node_modules/antd/es/time-picker/locale/en_US.js +1 -1
- package/dist/node_modules/antd/es/time-picker/locale/en_US.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/PurePanel.js +1 -1
- package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/index.js +1 -1
- package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/style/index.js +1 -1
- package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/util.js +1 -1
- package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
- package/dist/node_modules/antd/es/version/index.js +1 -1
- package/dist/node_modules/antd/es/version/version.js +1 -1
- package/dist/node_modules/antd/es/version/version.js.map +1 -1
- package/dist/node_modules/async-validator/dist-web/index.js +1 -1
- package/dist/node_modules/async-validator/dist-web/index.js.map +1 -1
- package/dist/node_modules/classnames/index.js +2 -2
- package/dist/node_modules/classnames/index.js.map +1 -1
- package/dist/node_modules/dom-align/dist-web/index.js +1 -1
- package/dist/node_modules/dom-align/dist-web/index.js.map +1 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -1
- package/dist/node_modules/rc-align/es/Align.js +1 -1
- package/dist/node_modules/rc-align/es/Align.js.map +1 -1
- package/dist/node_modules/rc-align/es/hooks/useBuffer.js +1 -1
- package/dist/node_modules/rc-align/es/hooks/useBuffer.js.map +1 -1
- package/dist/node_modules/rc-align/es/index.js +1 -1
- package/dist/node_modules/rc-align/es/util.js +1 -1
- package/dist/node_modules/rc-align/es/util.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/Cascader.js +1 -1
- package/dist/node_modules/rc-cascader/es/Cascader.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/Checkbox.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/Checkbox.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/Column.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/Column.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/index.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/index.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/useActive.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/useActive.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/useKeyboard.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/useKeyboard.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/context.js +1 -1
- package/dist/node_modules/rc-cascader/es/context.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useDisplayValues.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useDisplayValues.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useEntities.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useEntities.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useMissingValues.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useMissingValues.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useRefFunc.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useRefFunc.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useSearchConfig.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useSearchConfig.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useSearchOptions.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useSearchOptions.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/index.js +1 -1
- package/dist/node_modules/rc-cascader/es/utils/commonUtil.js +1 -1
- package/dist/node_modules/rc-cascader/es/utils/commonUtil.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/utils/treeUtil.js +1 -1
- package/dist/node_modules/rc-cascader/es/utils/treeUtil.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/utils/warningPropsUtil.js +1 -1
- package/dist/node_modules/rc-cascader/es/utils/warningPropsUtil.js.map +1 -1
- package/dist/node_modules/rc-checkbox/es/index.js +1 -1
- package/dist/node_modules/rc-checkbox/es/index.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/Panel.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/Panel.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/index.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/index.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Mask.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Mask.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/index.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/index.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/DialogWrap.js +1 -1
- package/dist/node_modules/rc-dialog/es/DialogWrap.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/index.js +1 -1
- package/dist/node_modules/rc-dialog/es/util.js +1 -1
- package/dist/node_modules/rc-dialog/es/util.js.map +1 -1
- package/dist/node_modules/rc-dropdown/es/Dropdown.js +1 -1
- package/dist/node_modules/rc-dropdown/es/Dropdown.js.map +1 -1
- package/dist/node_modules/rc-dropdown/es/hooks/useAccessibility.js +1 -1
- package/dist/node_modules/rc-dropdown/es/hooks/useAccessibility.js.map +1 -1
- package/dist/node_modules/rc-dropdown/es/index.js +1 -1
- package/dist/node_modules/rc-dropdown/es/placements.js +1 -1
- package/dist/node_modules/rc-dropdown/es/placements.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/Field.js +1 -1
- package/dist/node_modules/rc-field-form/es/Field.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/FieldContext.js +1 -1
- package/dist/node_modules/rc-field-form/es/FieldContext.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/Form.js +1 -1
- package/dist/node_modules/rc-field-form/es/Form.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/FormContext.js +1 -1
- package/dist/node_modules/rc-field-form/es/FormContext.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/List.js +1 -1
- package/dist/node_modules/rc-field-form/es/List.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/ListContext.js +1 -1
- package/dist/node_modules/rc-field-form/es/ListContext.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/index.js +1 -1
- package/dist/node_modules/rc-field-form/es/index.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/useForm.js +1 -1
- package/dist/node_modules/rc-field-form/es/useForm.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/useWatch.js +1 -1
- package/dist/node_modules/rc-field-form/es/useWatch.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/NameMap.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/NameMap.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/asyncUtil.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/asyncUtil.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/cloneDeep.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/cloneDeep.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/messages.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/messages.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/typeUtil.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/typeUtil.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/valueUtil.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/valueUtil.js.map +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.js +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.js.map +1 -1
- package/dist/node_modules/rc-input/es/Input.js +1 -1
- package/dist/node_modules/rc-input/es/Input.js.map +1 -1
- package/dist/node_modules/rc-input/es/index.js +1 -1
- package/dist/node_modules/rc-input/es/utils/commonUtils.js +1 -1
- package/dist/node_modules/rc-input/es/utils/commonUtils.js.map +1 -1
- package/dist/node_modules/rc-menu/es/Divider.js +1 -1
- package/dist/node_modules/rc-menu/es/Divider.js.map +1 -1
- package/dist/node_modules/rc-menu/es/Icon.js +1 -1
- package/dist/node_modules/rc-menu/es/Icon.js.map +1 -1
- package/dist/node_modules/rc-menu/es/Menu.js +1 -1
- package/dist/node_modules/rc-menu/es/Menu.js.map +1 -1
- package/dist/node_modules/rc-menu/es/MenuItem.js +1 -1
- package/dist/node_modules/rc-menu/es/MenuItem.js.map +1 -1
- package/dist/node_modules/rc-menu/es/MenuItemGroup.js +1 -1
- package/dist/node_modules/rc-menu/es/MenuItemGroup.js.map +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/InlineSubMenuList.js +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/InlineSubMenuList.js.map +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/PopupTrigger.js +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/PopupTrigger.js.map +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/SubMenuList.js +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/SubMenuList.js.map +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/index.js +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/index.js.map +1 -1
- package/dist/node_modules/rc-menu/es/context/IdContext.js +1 -1
- package/dist/node_modules/rc-menu/es/context/IdContext.js.map +1 -1
- package/dist/node_modules/rc-menu/es/context/MenuContext.js +1 -1
- package/dist/node_modules/rc-menu/es/context/MenuContext.js.map +1 -1
- package/dist/node_modules/rc-menu/es/context/PathContext.js +1 -1
- package/dist/node_modules/rc-menu/es/context/PathContext.js.map +1 -1
- package/dist/node_modules/rc-menu/es/context/PrivateContext.js +1 -1
- package/dist/node_modules/rc-menu/es/context/PrivateContext.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useAccessibility.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useAccessibility.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useActive.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useActive.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useDirectionStyle.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useDirectionStyle.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useKeyRecords.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useKeyRecords.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useMemoCallback.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useMemoCallback.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useUUID.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useUUID.js.map +1 -1
- package/dist/node_modules/rc-menu/es/index.js +1 -1
- package/dist/node_modules/rc-menu/es/index.js.map +1 -1
- package/dist/node_modules/rc-menu/es/placements.js +1 -1
- package/dist/node_modules/rc-menu/es/placements.js.map +1 -1
- package/dist/node_modules/rc-menu/es/utils/motionUtil.js +1 -1
- package/dist/node_modules/rc-menu/es/utils/motionUtil.js.map +1 -1
- package/dist/node_modules/rc-menu/es/utils/nodeUtil.js +1 -1
- package/dist/node_modules/rc-menu/es/utils/nodeUtil.js.map +1 -1
- package/dist/node_modules/rc-menu/es/utils/timeUtil.js +1 -1
- package/dist/node_modules/rc-menu/es/utils/timeUtil.js.map +1 -1
- package/dist/node_modules/rc-menu/es/utils/warnUtil.js +1 -1
- package/dist/node_modules/rc-menu/es/utils/warnUtil.js.map +1 -1
- package/dist/node_modules/rc-motion/es/CSSMotion.js +1 -1
- package/dist/node_modules/rc-motion/es/CSSMotion.js.map +1 -1
- package/dist/node_modules/rc-motion/es/CSSMotionList.js +1 -1
- package/dist/node_modules/rc-motion/es/CSSMotionList.js.map +1 -1
- package/dist/node_modules/rc-motion/es/DomWrapper.js +1 -1
- package/dist/node_modules/rc-motion/es/DomWrapper.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useStatus.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useStatus.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.js.map +1 -1
- package/dist/node_modules/rc-motion/es/index.js +1 -1
- package/dist/node_modules/rc-motion/es/interface.js +1 -1
- package/dist/node_modules/rc-motion/es/interface.js.map +1 -1
- package/dist/node_modules/rc-motion/es/util/diff.js +1 -1
- package/dist/node_modules/rc-motion/es/util/diff.js.map +1 -1
- package/dist/node_modules/rc-motion/es/util/motion.js +1 -1
- package/dist/node_modules/rc-motion/es/util/motion.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/Item.js +1 -1
- package/dist/node_modules/rc-overflow/es/Item.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/dist/node_modules/rc-overflow/es/Overflow.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/dist/node_modules/rc-overflow/es/RawItem.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/dist/node_modules/rc-overflow/es/hooks/channelUpdate.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/dist/node_modules/rc-overflow/es/hooks/useEffectState.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/index.js +1 -1
- package/dist/node_modules/rc-pagination/es/locale/en_US.js +1 -1
- package/dist/node_modules/rc-pagination/es/locale/en_US.js.map +1 -1
- package/dist/node_modules/rc-picker/es/locale/en_US.js +1 -1
- package/dist/node_modules/rc-picker/es/locale/en_US.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/Collection.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/index.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/index.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/index.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/utils/observerUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/BaseSelect.js +1 -1
- package/dist/node_modules/rc-select/es/BaseSelect.js.map +1 -1
- package/dist/node_modules/rc-select/es/OptGroup.js +1 -1
- package/dist/node_modules/rc-select/es/OptGroup.js.map +1 -1
- package/dist/node_modules/rc-select/es/Option.js +1 -1
- package/dist/node_modules/rc-select/es/Option.js.map +1 -1
- package/dist/node_modules/rc-select/es/OptionList.js +1 -1
- package/dist/node_modules/rc-select/es/OptionList.js.map +1 -1
- package/dist/node_modules/rc-select/es/Select.js +1 -1
- package/dist/node_modules/rc-select/es/Select.js.map +1 -1
- package/dist/node_modules/rc-select/es/SelectContext.js +1 -1
- package/dist/node_modules/rc-select/es/SelectContext.js.map +1 -1
- package/dist/node_modules/rc-select/es/SelectTrigger.js +1 -1
- package/dist/node_modules/rc-select/es/SelectTrigger.js.map +1 -1
- package/dist/node_modules/rc-select/es/Selector/Input.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/Input.js.map +1 -1
- package/dist/node_modules/rc-select/es/Selector/MultipleSelector.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/MultipleSelector.js.map +1 -1
- package/dist/node_modules/rc-select/es/Selector/SingleSelector.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/SingleSelector.js.map +1 -1
- package/dist/node_modules/rc-select/es/Selector/index.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/index.js.map +1 -1
- package/dist/node_modules/rc-select/es/TransBtn.js +1 -1
- package/dist/node_modules/rc-select/es/TransBtn.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useBaseProps.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useBaseProps.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useCache.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useCache.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useDelayReset.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useDelayReset.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useId.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useId.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useLayoutEffect.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useLayoutEffect.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useLock.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useLock.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useOptions.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useOptions.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useRefFunc.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useRefFunc.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useSelectTriggerControl.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useSelectTriggerControl.js.map +1 -1
- package/dist/node_modules/rc-select/es/index.js +1 -1
- package/dist/node_modules/rc-select/es/utils/commonUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/commonUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/keyUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/keyUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/legacyUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/legacyUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/platformUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/platformUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/valueUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/valueUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/warningPropsUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/warningPropsUtil.js.map +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.js.map +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.js +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.js.map +1 -1
- package/dist/node_modules/rc-textarea/es/calculateNodeHeight.js +1 -1
- package/dist/node_modules/rc-textarea/es/calculateNodeHeight.js.map +1 -1
- package/dist/node_modules/rc-textarea/es/index.js +1 -1
- package/dist/node_modules/rc-tooltip/es/Popup.js +1 -1
- package/dist/node_modules/rc-tooltip/es/Popup.js.map +1 -1
- package/dist/node_modules/rc-tooltip/es/Tooltip.js +1 -1
- package/dist/node_modules/rc-tooltip/es/Tooltip.js.map +1 -1
- package/dist/node_modules/rc-tooltip/es/index.js +1 -1
- package/dist/node_modules/rc-tooltip/es/placements.js +1 -1
- package/dist/node_modules/rc-tooltip/es/placements.js.map +1 -1
- package/dist/node_modules/rc-tree/es/util.js +1 -1
- package/dist/node_modules/rc-tree/es/util.js.map +1 -1
- package/dist/node_modules/rc-tree/es/utils/conductUtil.js +1 -1
- package/dist/node_modules/rc-tree/es/utils/conductUtil.js.map +1 -1
- package/dist/node_modules/rc-tree/es/utils/treeUtil.js +1 -1
- package/dist/node_modules/rc-tree/es/utils/treeUtil.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/Mask.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/Mask.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/MobilePopupInner.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/MobilePopupInner.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/PopupInner.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/PopupInner.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/index.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/index.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/useStretchStyle.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/useStretchStyle.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/useVisibleStatus.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/useVisibleStatus.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/context.js +1 -1
- package/dist/node_modules/rc-trigger/es/context.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/index.js +1 -1
- package/dist/node_modules/rc-trigger/es/index.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/utils/alignUtil.js +1 -1
- package/dist/node_modules/rc-trigger/es/utils/alignUtil.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/utils/legacyUtil.js +1 -1
- package/dist/node_modules/rc-trigger/es/utils/legacyUtil.js.map +1 -1
- package/dist/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/dist/node_modules/rc-util/es/Children/toArray.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/addEventListener.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/addEventListener.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/canUseDom.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/contains.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/contains.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/findDOMNode.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/focus.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/focus.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/isVisible.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/isVisible.js.map +1 -1
- package/dist/node_modules/rc-util/es/KeyCode.js +1 -1
- package/dist/node_modules/rc-util/es/KeyCode.js.map +1 -1
- package/dist/node_modules/rc-util/es/Portal.js +1 -1
- package/dist/node_modules/rc-util/es/Portal.js.map +1 -1
- package/dist/node_modules/rc-util/es/React/render.js +1 -1
- package/dist/node_modules/rc-util/es/React/render.js.map +1 -1
- package/dist/node_modules/rc-util/es/getScrollBarSize.js +1 -1
- package/dist/node_modules/rc-util/es/getScrollBarSize.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useEvent.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useId.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useId.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useLayoutEffect.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useMemo.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useMemo.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useMergedState.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useMergedState.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useState.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useState.js.map +1 -1
- package/dist/node_modules/rc-util/es/isEqual.js +1 -1
- package/dist/node_modules/rc-util/es/isEqual.js.map +1 -1
- package/dist/node_modules/rc-util/es/isMobile.js +1 -1
- package/dist/node_modules/rc-util/es/isMobile.js.map +1 -1
- package/dist/node_modules/rc-util/es/omit.js +1 -1
- package/dist/node_modules/rc-util/es/omit.js.map +1 -1
- package/dist/node_modules/rc-util/es/pickAttrs.js +1 -1
- package/dist/node_modules/rc-util/es/pickAttrs.js.map +1 -1
- package/dist/node_modules/rc-util/es/raf.js +1 -1
- package/dist/node_modules/rc-util/es/raf.js.map +1 -1
- package/dist/node_modules/rc-util/es/ref.js +1 -1
- package/dist/node_modules/rc-util/es/ref.js.map +1 -1
- package/dist/node_modules/rc-util/es/utils/get.js +1 -1
- package/dist/node_modules/rc-util/es/utils/get.js.map +1 -1
- package/dist/node_modules/rc-util/es/utils/set.js +1 -1
- package/dist/node_modules/rc-util/es/utils/set.js.map +1 -1
- package/dist/node_modules/rc-util/es/warning.js +1 -1
- package/dist/node_modules/rc-util/es/warning.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/Filler.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/Filler.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/Item.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/Item.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/List.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/List.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useChildren.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useChildren.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useDiffItem.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useDiffItem.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useFrameWheel.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useFrameWheel.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useHeights.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useHeights.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollTo.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollTo.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/index.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/algorithmUtil.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/algorithmUtil.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/isFirefox.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/isFirefox.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +2 -2
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +2 -2
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js.map +1 -1
- package/dist/node_modules/stylis/src/Enum.js +1 -1
- package/dist/node_modules/stylis/src/Enum.js.map +1 -1
- package/dist/node_modules/stylis/src/Middleware.js +1 -1
- package/dist/node_modules/stylis/src/Middleware.js.map +1 -1
- package/dist/node_modules/stylis/src/Parser.js +1 -1
- package/dist/node_modules/stylis/src/Parser.js.map +1 -1
- package/dist/node_modules/stylis/src/Serializer.js +1 -1
- package/dist/node_modules/stylis/src/Serializer.js.map +1 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +1 -1
- package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -1
- package/dist/node_modules/stylis/src/Utility.js +1 -1
- package/dist/node_modules/stylis/src/Utility.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/src/components/ConfigProvider/ConfigProvider.js +1 -1
- package/dist/src/components/ConfigProvider/ConfigProvider.js.map +1 -1
- package/dist/src/components/ConfigProvider/GlobalStyle.js +28 -28
- package/dist/src/components/ConfigProvider/GlobalStyle.js.map +1 -1
- package/dist/src/constants.js +1 -1
- package/dist/src/constants.js.map +1 -1
- package/dist/src/index.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../../../node_modules/rc-select/es/Select.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nvar _excluded = [\"id\", \"mode\", \"prefixCls\", \"backfill\", \"fieldNames\", \"inputValue\", \"searchValue\", \"onSearch\", \"autoClearSearchValue\", \"onSelect\", \"onDeselect\", \"dropdownMatchSelectWidth\", \"filterOption\", \"filterSort\", \"optionFilterProp\", \"optionLabelProp\", \"options\", \"children\", \"defaultActiveFirstOption\", \"menuItemSelectedIcon\", \"virtual\", \"listHeight\", \"listItemHeight\", \"value\", \"defaultValue\", \"labelInValue\", \"onChange\"];\n\n/**\n * To match accessibility requirement, we always provide an input in the component.\n * Other element will not set `tabIndex` to avoid `onBlur` sequence problem.\n * For focused select, we set `aria-live=\"polite\"` to update the accessibility content.\n *\n * ref:\n * - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions\n *\n * New api:\n * - listHeight\n * - listItemHeight\n * - component\n *\n * Remove deprecated api:\n * - multiple\n * - tags\n * - combobox\n * - firstActiveValue\n * - dropdownMenuStyle\n * - openClassName (Not list in api)\n *\n * Update:\n * - `backfill` only support `combobox` mode\n * - `combobox` mode not support `labelInValue` since it's meaningless\n * - `getInputElement` only support `combobox` mode\n * - `onChange` return OptionData instead of ReactNode\n * - `filterOption` `onChange` `onSelect` accept OptionData instead of ReactNode\n * - `combobox` mode trigger `onChange` will get `undefined` if no `value` match in Option\n * - `combobox` mode not support `optionLabelProp`\n */\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport warning from \"rc-util/es/warning\";\nimport * as React from 'react';\nimport BaseSelect, { isMultiple } from \"./BaseSelect\";\nimport useCache from \"./hooks/useCache\";\nimport useFilterOptions from \"./hooks/useFilterOptions\";\nimport useId from \"./hooks/useId\";\nimport useOptions from \"./hooks/useOptions\";\nimport useRefFunc from \"./hooks/useRefFunc\";\nimport OptGroup from \"./OptGroup\";\nimport Option from \"./Option\";\nimport OptionList from \"./OptionList\";\nimport SelectContext from \"./SelectContext\";\nimport { hasValue, toArray } from \"./utils/commonUtil\";\nimport { fillFieldNames, flattenOptions, injectPropsWithOption } from \"./utils/valueUtil\";\nimport warningProps, { warningNullOptions } from \"./utils/warningPropsUtil\";\nvar OMIT_DOM_PROPS = ['inputValue'];\n\nfunction isRawValue(value) {\n return !value || _typeof(value) !== 'object';\n}\n\nvar Select = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var id = props.id,\n mode = props.mode,\n _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-select' : _props$prefixCls,\n backfill = props.backfill,\n fieldNames = props.fieldNames,\n inputValue = props.inputValue,\n searchValue = props.searchValue,\n onSearch = props.onSearch,\n _props$autoClearSearc = props.autoClearSearchValue,\n autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc,\n onSelect = props.onSelect,\n onDeselect = props.onDeselect,\n _props$dropdownMatchS = props.dropdownMatchSelectWidth,\n dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS,\n filterOption = props.filterOption,\n filterSort = props.filterSort,\n optionFilterProp = props.optionFilterProp,\n optionLabelProp = props.optionLabelProp,\n options = props.options,\n children = props.children,\n defaultActiveFirstOption = props.defaultActiveFirstOption,\n menuItemSelectedIcon = props.menuItemSelectedIcon,\n virtual = props.virtual,\n _props$listHeight = props.listHeight,\n listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight,\n _props$listItemHeight = props.listItemHeight,\n listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight,\n value = props.value,\n defaultValue = props.defaultValue,\n labelInValue = props.labelInValue,\n onChange = props.onChange,\n restProps = _objectWithoutProperties(props, _excluded);\n\n var mergedId = useId(id);\n var multiple = isMultiple(mode);\n var childrenAsData = !!(!options && children);\n var mergedFilterOption = React.useMemo(function () {\n if (filterOption === undefined && mode === 'combobox') {\n return false;\n }\n\n return filterOption;\n }, [filterOption, mode]); // ========================= FieldNames =========================\n\n var mergedFieldNames = React.useMemo(function () {\n return fillFieldNames(fieldNames, childrenAsData);\n },\n /* eslint-disable react-hooks/exhaustive-deps */\n [// We stringify fieldNames to avoid unnecessary re-renders.\n JSON.stringify(fieldNames), childrenAsData]\n /* eslint-enable react-hooks/exhaustive-deps */\n ); // =========================== Search ===========================\n\n var _useMergedState = useMergedState('', {\n value: searchValue !== undefined ? searchValue : inputValue,\n postState: function postState(search) {\n return search || '';\n }\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n mergedSearchValue = _useMergedState2[0],\n setSearchValue = _useMergedState2[1]; // =========================== Option ===========================\n\n\n var parsedOptions = useOptions(options, children, mergedFieldNames, optionFilterProp, optionLabelProp);\n var valueOptions = parsedOptions.valueOptions,\n labelOptions = parsedOptions.labelOptions,\n mergedOptions = parsedOptions.options; // ========================= Wrap Value =========================\n\n var convert2LabelValues = React.useCallback(function (draftValues) {\n // Convert to array\n var valueList = toArray(draftValues); // Convert to labelInValue type\n\n return valueList.map(function (val) {\n var rawValue;\n var rawLabel;\n var rawKey;\n var rawDisabled;\n var rawTitle; // Fill label & value\n\n if (isRawValue(val)) {\n rawValue = val;\n } else {\n var _val$value;\n\n rawKey = val.key;\n rawLabel = val.label;\n rawValue = (_val$value = val.value) !== null && _val$value !== void 0 ? _val$value : rawKey;\n }\n\n var option = valueOptions.get(rawValue);\n\n if (option) {\n var _option$key;\n\n // Fill missing props\n if (rawLabel === undefined) rawLabel = option === null || option === void 0 ? void 0 : option[optionLabelProp || mergedFieldNames.label];\n if (rawKey === undefined) rawKey = (_option$key = option === null || option === void 0 ? void 0 : option.key) !== null && _option$key !== void 0 ? _option$key : rawValue;\n rawDisabled = option === null || option === void 0 ? void 0 : option.disabled;\n rawTitle = option === null || option === void 0 ? void 0 : option.title; // Warning if label not same as provided\n\n if (process.env.NODE_ENV !== 'production' && !optionLabelProp) {\n var optionLabel = option === null || option === void 0 ? void 0 : option[mergedFieldNames.label];\n\n if (optionLabel !== undefined && optionLabel !== rawLabel) {\n warning(false, '`label` of `value` is not same as `label` in Select options.');\n }\n }\n }\n\n return {\n label: rawLabel,\n value: rawValue,\n key: rawKey,\n disabled: rawDisabled,\n title: rawTitle\n };\n });\n }, [mergedFieldNames, optionLabelProp, valueOptions]); // =========================== Values ===========================\n\n var _useMergedState3 = useMergedState(defaultValue, {\n value: value\n }),\n _useMergedState4 = _slicedToArray(_useMergedState3, 2),\n internalValue = _useMergedState4[0],\n setInternalValue = _useMergedState4[1]; // Merged value with LabelValueType\n\n\n var rawLabeledValues = React.useMemo(function () {\n var _values$;\n\n var values = convert2LabelValues(internalValue); // combobox no need save value when it's no value\n\n if (mode === 'combobox' && !((_values$ = values[0]) !== null && _values$ !== void 0 && _values$.value)) {\n return [];\n }\n\n return values;\n }, [internalValue, convert2LabelValues, mode]); // Fill label with cache to avoid option remove\n\n var _useCache = useCache(rawLabeledValues, valueOptions),\n _useCache2 = _slicedToArray(_useCache, 2),\n mergedValues = _useCache2[0],\n getMixedOption = _useCache2[1];\n\n var displayValues = React.useMemo(function () {\n // `null` need show as placeholder instead\n // https://github.com/ant-design/ant-design/issues/25057\n if (!mode && mergedValues.length === 1) {\n var firstValue = mergedValues[0];\n\n if (firstValue.value === null && (firstValue.label === null || firstValue.label === undefined)) {\n return [];\n }\n }\n\n return mergedValues.map(function (item) {\n var _item$label;\n\n return _objectSpread(_objectSpread({}, item), {}, {\n label: (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : item.value\n });\n });\n }, [mode, mergedValues]);\n /** Convert `displayValues` to raw value type set */\n\n var rawValues = React.useMemo(function () {\n return new Set(mergedValues.map(function (val) {\n return val.value;\n }));\n }, [mergedValues]);\n React.useEffect(function () {\n if (mode === 'combobox') {\n var _mergedValues$;\n\n var strValue = (_mergedValues$ = mergedValues[0]) === null || _mergedValues$ === void 0 ? void 0 : _mergedValues$.value;\n setSearchValue(hasValue(strValue) ? String(strValue) : '');\n }\n }, [mergedValues]); // ======================= Display Option =======================\n // Create a placeholder item if not exist in `options`\n\n var createTagOption = useRefFunc(function (val, label) {\n var _ref;\n\n var mergedLabel = label !== null && label !== void 0 ? label : val;\n return _ref = {}, _defineProperty(_ref, mergedFieldNames.value, val), _defineProperty(_ref, mergedFieldNames.label, mergedLabel), _ref;\n }); // Fill tag as option if mode is `tags`\n\n var filledTagOptions = React.useMemo(function () {\n if (mode !== 'tags') {\n return mergedOptions;\n } // >>> Tag mode\n\n\n var cloneOptions = _toConsumableArray(mergedOptions); // Check if value exist in options (include new patch item)\n\n\n var existOptions = function existOptions(val) {\n return valueOptions.has(val);\n }; // Fill current value as option\n\n\n _toConsumableArray(mergedValues).sort(function (a, b) {\n return a.value < b.value ? -1 : 1;\n }).forEach(function (item) {\n var val = item.value;\n\n if (!existOptions(val)) {\n cloneOptions.push(createTagOption(val, item.label));\n }\n });\n\n return cloneOptions;\n }, [createTagOption, mergedOptions, valueOptions, mergedValues, mode]);\n var filteredOptions = useFilterOptions(filledTagOptions, mergedFieldNames, mergedSearchValue, mergedFilterOption, optionFilterProp); // Fill options with search value if needed\n\n var filledSearchOptions = React.useMemo(function () {\n if (mode !== 'tags' || !mergedSearchValue || filteredOptions.some(function (item) {\n return item[optionFilterProp || 'value'] === mergedSearchValue;\n })) {\n return filteredOptions;\n } // Fill search value as option\n\n\n return [createTagOption(mergedSearchValue)].concat(_toConsumableArray(filteredOptions));\n }, [createTagOption, optionFilterProp, mode, filteredOptions, mergedSearchValue]);\n var orderedFilteredOptions = React.useMemo(function () {\n if (!filterSort) {\n return filledSearchOptions;\n }\n\n return _toConsumableArray(filledSearchOptions).sort(function (a, b) {\n return filterSort(a, b);\n });\n }, [filledSearchOptions, filterSort]);\n var displayOptions = React.useMemo(function () {\n return flattenOptions(orderedFilteredOptions, {\n fieldNames: mergedFieldNames,\n childrenAsData: childrenAsData\n });\n }, [orderedFilteredOptions, mergedFieldNames, childrenAsData]); // =========================== Change ===========================\n\n var triggerChange = function triggerChange(values) {\n var labeledValues = convert2LabelValues(values);\n setInternalValue(labeledValues);\n\n if (onChange && ( // Trigger event only when value changed\n labeledValues.length !== mergedValues.length || labeledValues.some(function (newVal, index) {\n var _mergedValues$index;\n\n return ((_mergedValues$index = mergedValues[index]) === null || _mergedValues$index === void 0 ? void 0 : _mergedValues$index.value) !== (newVal === null || newVal === void 0 ? void 0 : newVal.value);\n }))) {\n var returnValues = labelInValue ? labeledValues : labeledValues.map(function (v) {\n return v.value;\n });\n var returnOptions = labeledValues.map(function (v) {\n return injectPropsWithOption(getMixedOption(v.value));\n });\n onChange( // Value\n multiple ? returnValues : returnValues[0], // Option\n multiple ? returnOptions : returnOptions[0]);\n }\n }; // ======================= Accessibility ========================\n\n\n var _React$useState = React.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n activeValue = _React$useState2[0],\n setActiveValue = _React$useState2[1];\n\n var _React$useState3 = React.useState(0),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n accessibilityIndex = _React$useState4[0],\n setAccessibilityIndex = _React$useState4[1];\n\n var mergedDefaultActiveFirstOption = defaultActiveFirstOption !== undefined ? defaultActiveFirstOption : mode !== 'combobox';\n var onActiveValue = React.useCallback(function (active, index) {\n var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n _ref2$source = _ref2.source,\n source = _ref2$source === void 0 ? 'keyboard' : _ref2$source;\n\n setAccessibilityIndex(index);\n\n if (backfill && mode === 'combobox' && active !== null && source === 'keyboard') {\n setActiveValue(String(active));\n }\n }, [backfill, mode]); // ========================= OptionList =========================\n\n var triggerSelect = function triggerSelect(val, selected, type) {\n var getSelectEnt = function getSelectEnt() {\n var _option$key2;\n\n var option = getMixedOption(val);\n return [labelInValue ? {\n label: option === null || option === void 0 ? void 0 : option[mergedFieldNames.label],\n value: val,\n key: (_option$key2 = option === null || option === void 0 ? void 0 : option.key) !== null && _option$key2 !== void 0 ? _option$key2 : val\n } : val, injectPropsWithOption(option)];\n };\n\n if (selected && onSelect) {\n var _getSelectEnt = getSelectEnt(),\n _getSelectEnt2 = _slicedToArray(_getSelectEnt, 2),\n wrappedValue = _getSelectEnt2[0],\n _option = _getSelectEnt2[1];\n\n onSelect(wrappedValue, _option);\n } else if (!selected && onDeselect && type !== 'clear') {\n var _getSelectEnt3 = getSelectEnt(),\n _getSelectEnt4 = _slicedToArray(_getSelectEnt3, 2),\n _wrappedValue = _getSelectEnt4[0],\n _option2 = _getSelectEnt4[1];\n\n onDeselect(_wrappedValue, _option2);\n }\n }; // Used for OptionList selection\n\n\n var onInternalSelect = useRefFunc(function (val, info) {\n var cloneValues; // Single mode always trigger select only with option list\n\n var mergedSelect = multiple ? info.selected : true;\n\n if (mergedSelect) {\n cloneValues = multiple ? [].concat(_toConsumableArray(mergedValues), [val]) : [val];\n } else {\n cloneValues = mergedValues.filter(function (v) {\n return v.value !== val;\n });\n }\n\n triggerChange(cloneValues);\n triggerSelect(val, mergedSelect); // Clean search value if single or configured\n\n if (mode === 'combobox') {\n // setSearchValue(String(val));\n setActiveValue('');\n } else if (!isMultiple || autoClearSearchValue) {\n setSearchValue('');\n setActiveValue('');\n }\n }); // ======================= Display Change =======================\n // BaseSelect display values change\n\n var onDisplayValuesChange = function onDisplayValuesChange(nextValues, info) {\n triggerChange(nextValues);\n var type = info.type,\n values = info.values;\n\n if (type === 'remove' || type === 'clear') {\n values.forEach(function (item) {\n triggerSelect(item.value, false, type);\n });\n }\n }; // =========================== Search ===========================\n\n\n var onInternalSearch = function onInternalSearch(searchText, info) {\n setSearchValue(searchText);\n setActiveValue(null); // [Submit] Tag mode should flush input\n\n if (info.source === 'submit') {\n var formatted = (searchText || '').trim(); // prevent empty tags from appearing when you click the Enter button\n\n if (formatted) {\n var newRawValues = Array.from(new Set([].concat(_toConsumableArray(rawValues), [formatted])));\n triggerChange(newRawValues);\n triggerSelect(formatted, true);\n setSearchValue('');\n }\n\n return;\n }\n\n if (info.source !== 'blur') {\n if (mode === 'combobox') {\n triggerChange(searchText);\n }\n\n onSearch === null || onSearch === void 0 ? void 0 : onSearch(searchText);\n }\n };\n\n var onInternalSearchSplit = function onInternalSearchSplit(words) {\n var patchValues = words;\n\n if (mode !== 'tags') {\n patchValues = words.map(function (word) {\n var opt = labelOptions.get(word);\n return opt === null || opt === void 0 ? void 0 : opt.value;\n }).filter(function (val) {\n return val !== undefined;\n });\n }\n\n var newRawValues = Array.from(new Set([].concat(_toConsumableArray(rawValues), _toConsumableArray(patchValues))));\n triggerChange(newRawValues);\n newRawValues.forEach(function (newRawValue) {\n triggerSelect(newRawValue, true);\n });\n }; // ========================== Context ===========================\n\n\n var selectContext = React.useMemo(function () {\n var realVirtual = virtual !== false && dropdownMatchSelectWidth !== false;\n return _objectSpread(_objectSpread({}, parsedOptions), {}, {\n flattenOptions: displayOptions,\n onActiveValue: onActiveValue,\n defaultActiveFirstOption: mergedDefaultActiveFirstOption,\n onSelect: onInternalSelect,\n menuItemSelectedIcon: menuItemSelectedIcon,\n rawValues: rawValues,\n fieldNames: mergedFieldNames,\n virtual: realVirtual,\n listHeight: listHeight,\n listItemHeight: listItemHeight,\n childrenAsData: childrenAsData\n });\n }, [parsedOptions, displayOptions, onActiveValue, mergedDefaultActiveFirstOption, onInternalSelect, menuItemSelectedIcon, rawValues, mergedFieldNames, virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, childrenAsData]); // ========================== Warning ===========================\n\n if (process.env.NODE_ENV !== 'production') {\n warningProps(props);\n warningNullOptions(mergedOptions, mergedFieldNames);\n } // ==============================================================\n // == Render ==\n // ==============================================================\n\n\n return /*#__PURE__*/React.createElement(SelectContext.Provider, {\n value: selectContext\n }, /*#__PURE__*/React.createElement(BaseSelect, _extends({}, restProps, {\n // >>> MISC\n id: mergedId,\n prefixCls: prefixCls,\n ref: ref,\n omitDomProps: OMIT_DOM_PROPS,\n mode: mode // >>> Values\n ,\n displayValues: displayValues,\n onDisplayValuesChange: onDisplayValuesChange // >>> Search\n ,\n searchValue: mergedSearchValue,\n onSearch: onInternalSearch,\n autoClearSearchValue: autoClearSearchValue,\n onSearchSplit: onInternalSearchSplit,\n dropdownMatchSelectWidth: dropdownMatchSelectWidth // >>> OptionList\n ,\n OptionList: OptionList,\n emptyOptions: !displayOptions.length // >>> Accessibility\n ,\n activeValue: activeValue,\n activeDescendantId: \"\".concat(mergedId, \"_list_\").concat(accessibilityIndex)\n })));\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Select.displayName = 'Select';\n}\n\nvar TypedSelect = Select;\nTypedSelect.Option = Option;\nTypedSelect.OptGroup = OptGroup;\nexport default TypedSelect;"],"names":["_excluded","OMIT_DOM_PROPS","Select","React","forwardRef","props","ref","id","mode","_props$prefixCls","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","_props$autoClearSearc","autoClearSearchValue","onSelect","onDeselect","_props$dropdownMatchS","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","_props$listHeight","listHeight","_props$listItemHeight","listItemHeight","value","defaultValue","labelInValue","onChange","restProps","_objectWithoutProperties","mergedId","useId","multiple","isMultiple","childrenAsData","mergedFilterOption","useMemo","undefined","mergedFieldNames","fillFieldNames","JSON","stringify","_useMergedState","useMergedState","postState","search","_useMergedState2","_slicedToArray","mergedSearchValue","setSearchValue","parsedOptions","useOptions","valueOptions","labelOptions","mergedOptions","convert2LabelValues","useCallback","draftValues","toArray","map","val","rawValue","rawLabel","rawKey","rawDisabled","rawTitle","_val$value","_typeof","isRawValue","key","label","_option$key","option","get","disabled","title","process","env","NODE_ENV","optionLabel","warning","_useMergedState3","_useMergedState4","internalValue","setInternalValue","rawLabeledValues","_values$","values","_useCache","useCache","_useCache2","mergedValues","getMixedOption","displayValues","length","firstValue","item","_item$label","_objectSpread","rawValues","Set","useEffect","_mergedValues$","strValue","hasValue","String","createTagOption","useRefFunc","_ref","mergedLabel","_defineProperty","filledTagOptions","cloneOptions","_toConsumableArray","sort","a","b","forEach","has","existOptions","push","filteredOptions","useFilterOptions","filledSearchOptions","some","concat","orderedFilteredOptions","displayOptions","flattenOptions","triggerChange","labeledValues","newVal","index","_mergedValues$index","returnValues","v","returnOptions","injectPropsWithOption","_React$useState","useState","_React$useState2","activeValue","setActiveValue","_React$useState3","_React$useState4","accessibilityIndex","setAccessibilityIndex","mergedDefaultActiveFirstOption","onActiveValue","active","_ref2$source","arguments","source","triggerSelect","selected","type","getSelectEnt","_option$key2","_getSelectEnt","_getSelectEnt2","wrappedValue","_option","_getSelectEnt3","_getSelectEnt4","_wrappedValue","_option2","onInternalSelect","info","cloneValues","mergedSelect","filter","selectContext","realVirtual","warningProps","default","warningNullOptions","createElement","SelectContext","Provider","BaseSelect","_extends","omitDomProps","onDisplayValuesChange","nextValues","searchText","formatted","trim","newRawValues","Array","from","onSearchSplit","words","patchValues","word","opt","newRawValue","OptionList","emptyOptions","activeDescendantId","displayName","TypedSelect","Option","OptGroup"],"mappings":"svCAOIA,EAAY,CAAC,KAAM,OAAQ,YAAa,WAAY,aAAc,aAAc,cAAe,WAAY,uBAAwB,WAAY,aAAc,2BAA4B,eAAgB,aAAc,mBAAoB,kBAAmB,UAAW,WAAY,2BAA4B,uBAAwB,UAAW,aAAc,iBAAkB,QAAS,eAAgB,eAAgB,YAgD7ZC,EAAiB,CAAC,cAMtB,IAAIC,EAAsBC,EAAMC,YAAW,SAAUC,EAAOC,GAC1D,IAAIC,EAAKF,EAAME,GACXC,EAAOH,EAAMG,KACbC,EAAmBJ,EAAMK,UACzBA,OAAiC,IAArBD,EAA8B,YAAcA,EACxDE,EAAWN,EAAMM,SACjBC,EAAaP,EAAMO,WACnBC,EAAaR,EAAMQ,WACnBC,EAAcT,EAAMS,YACpBC,EAAWV,EAAMU,SACjBC,EAAwBX,EAAMY,qBAC9BA,OAAiD,IAA1BD,GAA0CA,EACjEE,EAAWb,EAAMa,SACjBC,EAAad,EAAMc,WACnBC,EAAwBf,EAAMgB,yBAC9BA,OAAqD,IAA1BD,GAA0CA,EACrEE,EAAejB,EAAMiB,aACrBC,EAAalB,EAAMkB,WACnBC,EAAmBnB,EAAMmB,iBACzBC,EAAkBpB,EAAMoB,gBACxBC,EAAUrB,EAAMqB,QAChBC,EAAWtB,EAAMsB,SACjBC,EAA2BvB,EAA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AUrB,GACvByD,GAAczD,EAAKxE,OAAO,EAAOmI,EACzC,GAEA,EAuFIxJ,YAAa6C,GACb5C,SArFqB,SAA0BoL,EAAYjB,GAI3D,GAHAtH,GAAeuI,GACf1C,GAAe,MAEK,WAAhByB,EAAKf,OAaW,SAAhBe,EAAKf,SACM,aAAT3J,GACFoI,GAAcuD,GAGhBpL,SAAoDA,EAASoL,QAlB/D,CACE,IAAIC,GAAaD,GAAc,IAAIE,OAEnC,GAAID,EAAW,CACb,IAAIE,EAAeC,MAAMC,KAAK,IAAIzF,IAAI,GAAGyB,OAAOZ,EAAmBd,IAAY,CAACsF,MAChFxD,GAAc0D,GACdlC,GAAcgC,GAAW,GACzBxI,GAAe,GAChB,CAGF,CASL,EA8DI3C,qBAAsBA,EACtBwL,cA7D0B,SAA+BC,GACzD,IAAIC,EAAcD,EAEL,SAATlM,IACFmM,EAAcD,EAAMpI,KAAI,SAAUsI,GAChC,IAAIC,EAAM7I,GAAaoB,IAAIwH,GAC3B,OAAOC,aAAiC,EAASA,EAAI1K,KAC7D,IAASkJ,QAAO,SAAU9G,GAClB,YAAevB,IAARuB,CACf,KAGI,IAAI+H,EAAeC,MAAMC,KAAK,IAAIzF,IAAI,GAAGyB,OAAOZ,EAAmBd,IAAYc,EAAmB+E,MAClG/D,GAAc0D,GACdA,EAAatE,SAAQ,SAAU8E,GAC7B1C,GAAc0C,GAAa,EACjC,GACA,EA6CIzL,yBAA0BA,EAE1B0L,WAAYA,EACZC,cAAetE,GAAejC,OAE9B+C,YAAaA,GACbyD,mBAAoB,GAAGzE,OAAO/F,GAAU,UAAU+F,OAAOoB,OAE7D,IAE6B,eAAzBrE,QAAQC,IAAIC,WACdvF,EAAOgN,YAAc,UAGpB,IAACC,EAAcjN,EAClBiN,EAAYC,OAASA,EACrBD,EAAYE,SAAWA","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../../../node_modules/rc-select/es/Select.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nvar _excluded = [\"id\", \"mode\", \"prefixCls\", \"backfill\", \"fieldNames\", \"inputValue\", \"searchValue\", \"onSearch\", \"autoClearSearchValue\", \"onSelect\", \"onDeselect\", \"dropdownMatchSelectWidth\", \"filterOption\", \"filterSort\", \"optionFilterProp\", \"optionLabelProp\", \"options\", \"children\", \"defaultActiveFirstOption\", \"menuItemSelectedIcon\", \"virtual\", \"listHeight\", \"listItemHeight\", \"value\", \"defaultValue\", \"labelInValue\", \"onChange\"];\n\n/**\n * To match accessibility requirement, we always provide an input in the component.\n * Other element will not set `tabIndex` to avoid `onBlur` sequence problem.\n * For focused select, we set `aria-live=\"polite\"` to update the accessibility content.\n *\n * ref:\n * - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions\n *\n * New api:\n * - listHeight\n * - listItemHeight\n * - component\n *\n * Remove deprecated api:\n * - multiple\n * - tags\n * - combobox\n * - firstActiveValue\n * - dropdownMenuStyle\n * - openClassName (Not list in api)\n *\n * Update:\n * - `backfill` only support `combobox` mode\n * - `combobox` mode not support `labelInValue` since it's meaningless\n * - `getInputElement` only support `combobox` mode\n * - `onChange` return OptionData instead of ReactNode\n * - `filterOption` `onChange` `onSelect` accept OptionData instead of ReactNode\n * - `combobox` mode trigger `onChange` will get `undefined` if no `value` match in Option\n * - `combobox` mode not support `optionLabelProp`\n */\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport warning from \"rc-util/es/warning\";\nimport * as React from 'react';\nimport BaseSelect, { isMultiple } from \"./BaseSelect\";\nimport useCache from \"./hooks/useCache\";\nimport useFilterOptions from \"./hooks/useFilterOptions\";\nimport useId from \"./hooks/useId\";\nimport useOptions from \"./hooks/useOptions\";\nimport useRefFunc from \"./hooks/useRefFunc\";\nimport OptGroup from \"./OptGroup\";\nimport Option from \"./Option\";\nimport OptionList from \"./OptionList\";\nimport SelectContext from \"./SelectContext\";\nimport { hasValue, toArray } from \"./utils/commonUtil\";\nimport { fillFieldNames, flattenOptions, injectPropsWithOption } from \"./utils/valueUtil\";\nimport warningProps, { warningNullOptions } from \"./utils/warningPropsUtil\";\nvar OMIT_DOM_PROPS = ['inputValue'];\n\nfunction isRawValue(value) {\n return !value || _typeof(value) !== 'object';\n}\n\nvar Select = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var id = props.id,\n mode = props.mode,\n _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-select' : _props$prefixCls,\n backfill = props.backfill,\n fieldNames = props.fieldNames,\n inputValue = props.inputValue,\n searchValue = props.searchValue,\n onSearch = props.onSearch,\n _props$autoClearSearc = props.autoClearSearchValue,\n autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc,\n onSelect = props.onSelect,\n onDeselect = props.onDeselect,\n _props$dropdownMatchS = props.dropdownMatchSelectWidth,\n dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS,\n filterOption = props.filterOption,\n filterSort = props.filterSort,\n optionFilterProp = props.optionFilterProp,\n optionLabelProp = props.optionLabelProp,\n options = props.options,\n children = props.children,\n defaultActiveFirstOption = props.defaultActiveFirstOption,\n menuItemSelectedIcon = props.menuItemSelectedIcon,\n virtual = props.virtual,\n _props$listHeight = props.listHeight,\n listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight,\n _props$listItemHeight = props.listItemHeight,\n listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight,\n value = props.value,\n defaultValue = props.defaultValue,\n labelInValue = props.labelInValue,\n onChange = props.onChange,\n restProps = _objectWithoutProperties(props, _excluded);\n\n var mergedId = useId(id);\n var multiple = isMultiple(mode);\n var childrenAsData = !!(!options && children);\n var mergedFilterOption = React.useMemo(function () {\n if (filterOption === undefined && mode === 'combobox') {\n return false;\n }\n\n return filterOption;\n }, [filterOption, mode]); // ========================= FieldNames =========================\n\n var mergedFieldNames = React.useMemo(function () {\n return fillFieldNames(fieldNames, childrenAsData);\n },\n /* eslint-disable react-hooks/exhaustive-deps */\n [// We stringify fieldNames to avoid unnecessary re-renders.\n JSON.stringify(fieldNames), childrenAsData]\n /* eslint-enable react-hooks/exhaustive-deps */\n ); // =========================== Search ===========================\n\n var _useMergedState = useMergedState('', {\n value: searchValue !== undefined ? searchValue : inputValue,\n postState: function postState(search) {\n return search || '';\n }\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n mergedSearchValue = _useMergedState2[0],\n setSearchValue = _useMergedState2[1]; // =========================== Option ===========================\n\n\n var parsedOptions = useOptions(options, children, mergedFieldNames, optionFilterProp, optionLabelProp);\n var valueOptions = parsedOptions.valueOptions,\n labelOptions = parsedOptions.labelOptions,\n mergedOptions = parsedOptions.options; // ========================= Wrap Value =========================\n\n var convert2LabelValues = React.useCallback(function (draftValues) {\n // Convert to array\n var valueList = toArray(draftValues); // Convert to labelInValue type\n\n return valueList.map(function (val) {\n var rawValue;\n var rawLabel;\n var rawKey;\n var rawDisabled;\n var rawTitle; // Fill label & value\n\n if (isRawValue(val)) {\n rawValue = val;\n } else {\n var _val$value;\n\n rawKey = val.key;\n rawLabel = val.label;\n rawValue = (_val$value = val.value) !== null && _val$value !== void 0 ? _val$value : rawKey;\n }\n\n var option = valueOptions.get(rawValue);\n\n if (option) {\n var _option$key;\n\n // Fill missing props\n if (rawLabel === undefined) rawLabel = option === null || option === void 0 ? void 0 : option[optionLabelProp || mergedFieldNames.label];\n if (rawKey === undefined) rawKey = (_option$key = option === null || option === void 0 ? void 0 : option.key) !== null && _option$key !== void 0 ? _option$key : rawValue;\n rawDisabled = option === null || option === void 0 ? void 0 : option.disabled;\n rawTitle = option === null || option === void 0 ? void 0 : option.title; // Warning if label not same as provided\n\n if (process.env.NODE_ENV !== 'production' && !optionLabelProp) {\n var optionLabel = option === null || option === void 0 ? void 0 : option[mergedFieldNames.label];\n\n if (optionLabel !== undefined && optionLabel !== rawLabel) {\n warning(false, '`label` of `value` is not same as `label` in Select options.');\n }\n }\n }\n\n return {\n label: rawLabel,\n value: rawValue,\n key: rawKey,\n disabled: rawDisabled,\n title: rawTitle\n };\n });\n }, [mergedFieldNames, optionLabelProp, valueOptions]); // =========================== Values ===========================\n\n var _useMergedState3 = useMergedState(defaultValue, {\n value: value\n }),\n _useMergedState4 = _slicedToArray(_useMergedState3, 2),\n internalValue = _useMergedState4[0],\n setInternalValue = _useMergedState4[1]; // Merged value with LabelValueType\n\n\n var rawLabeledValues = React.useMemo(function () {\n var _values$;\n\n var values = convert2LabelValues(internalValue); // combobox no need save value when it's no value\n\n if (mode === 'combobox' && !((_values$ = values[0]) !== null && _values$ !== void 0 && _values$.value)) {\n return [];\n }\n\n return values;\n }, [internalValue, convert2LabelValues, mode]); // Fill label with cache to avoid option remove\n\n var _useCache = useCache(rawLabeledValues, valueOptions),\n _useCache2 = _slicedToArray(_useCache, 2),\n mergedValues = _useCache2[0],\n getMixedOption = _useCache2[1];\n\n var displayValues = React.useMemo(function () {\n // `null` need show as placeholder instead\n // https://github.com/ant-design/ant-design/issues/25057\n if (!mode && mergedValues.length === 1) {\n var firstValue = mergedValues[0];\n\n if (firstValue.value === null && (firstValue.label === null || firstValue.label === undefined)) {\n return [];\n }\n }\n\n return mergedValues.map(function (item) {\n var _item$label;\n\n return _objectSpread(_objectSpread({}, item), {}, {\n label: (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : item.value\n });\n });\n }, [mode, mergedValues]);\n /** Convert `displayValues` to raw value type set */\n\n var rawValues = React.useMemo(function () {\n return new Set(mergedValues.map(function (val) {\n return val.value;\n }));\n }, [mergedValues]);\n React.useEffect(function () {\n if (mode === 'combobox') {\n var _mergedValues$;\n\n var strValue = (_mergedValues$ = mergedValues[0]) === null || _mergedValues$ === void 0 ? void 0 : _mergedValues$.value;\n setSearchValue(hasValue(strValue) ? String(strValue) : '');\n }\n }, [mergedValues]); // ======================= Display Option =======================\n // Create a placeholder item if not exist in `options`\n\n var createTagOption = useRefFunc(function (val, label) {\n var _ref;\n\n var mergedLabel = label !== null && label !== void 0 ? label : val;\n return _ref = {}, _defineProperty(_ref, mergedFieldNames.value, val), _defineProperty(_ref, mergedFieldNames.label, mergedLabel), _ref;\n }); // Fill tag as option if mode is `tags`\n\n var filledTagOptions = React.useMemo(function () {\n if (mode !== 'tags') {\n return mergedOptions;\n } // >>> Tag mode\n\n\n var cloneOptions = _toConsumableArray(mergedOptions); // Check if value exist in options (include new patch item)\n\n\n var existOptions = function existOptions(val) {\n return valueOptions.has(val);\n }; // Fill current value as option\n\n\n _toConsumableArray(mergedValues).sort(function (a, b) {\n return a.value < b.value ? -1 : 1;\n }).forEach(function (item) {\n var val = item.value;\n\n if (!existOptions(val)) {\n cloneOptions.push(createTagOption(val, item.label));\n }\n });\n\n return cloneOptions;\n }, [createTagOption, mergedOptions, valueOptions, mergedValues, mode]);\n var filteredOptions = useFilterOptions(filledTagOptions, mergedFieldNames, mergedSearchValue, mergedFilterOption, optionFilterProp); // Fill options with search value if needed\n\n var filledSearchOptions = React.useMemo(function () {\n if (mode !== 'tags' || !mergedSearchValue || filteredOptions.some(function (item) {\n return item[optionFilterProp || 'value'] === mergedSearchValue;\n })) {\n return filteredOptions;\n } // Fill search value as option\n\n\n return [createTagOption(mergedSearchValue)].concat(_toConsumableArray(filteredOptions));\n }, [createTagOption, optionFilterProp, mode, filteredOptions, mergedSearchValue]);\n var orderedFilteredOptions = React.useMemo(function () {\n if (!filterSort) {\n return filledSearchOptions;\n }\n\n return _toConsumableArray(filledSearchOptions).sort(function (a, b) {\n return filterSort(a, b);\n });\n }, [filledSearchOptions, filterSort]);\n var displayOptions = React.useMemo(function () {\n return flattenOptions(orderedFilteredOptions, {\n fieldNames: mergedFieldNames,\n childrenAsData: childrenAsData\n });\n }, [orderedFilteredOptions, mergedFieldNames, childrenAsData]); // =========================== Change ===========================\n\n var triggerChange = function triggerChange(values) {\n var labeledValues = convert2LabelValues(values);\n setInternalValue(labeledValues);\n\n if (onChange && ( // Trigger event only when value changed\n labeledValues.length !== mergedValues.length || labeledValues.some(function (newVal, index) {\n var _mergedValues$index;\n\n return ((_mergedValues$index = mergedValues[index]) === null || _mergedValues$index === void 0 ? void 0 : _mergedValues$index.value) !== (newVal === null || newVal === void 0 ? void 0 : newVal.value);\n }))) {\n var returnValues = labelInValue ? labeledValues : labeledValues.map(function (v) {\n return v.value;\n });\n var returnOptions = labeledValues.map(function (v) {\n return injectPropsWithOption(getMixedOption(v.value));\n });\n onChange( // Value\n multiple ? returnValues : returnValues[0], // Option\n multiple ? returnOptions : returnOptions[0]);\n }\n }; // ======================= Accessibility ========================\n\n\n var _React$useState = React.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n activeValue = _React$useState2[0],\n setActiveValue = _React$useState2[1];\n\n var _React$useState3 = React.useState(0),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n accessibilityIndex = _React$useState4[0],\n setAccessibilityIndex = _React$useState4[1];\n\n var mergedDefaultActiveFirstOption = defaultActiveFirstOption !== undefined ? defaultActiveFirstOption : mode !== 'combobox';\n var onActiveValue = React.useCallback(function (active, index) {\n var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n _ref2$source = _ref2.source,\n source = _ref2$source === void 0 ? 'keyboard' : _ref2$source;\n\n setAccessibilityIndex(index);\n\n if (backfill && mode === 'combobox' && active !== null && source === 'keyboard') {\n setActiveValue(String(active));\n }\n }, [backfill, mode]); // ========================= OptionList =========================\n\n var triggerSelect = function triggerSelect(val, selected, type) {\n var getSelectEnt = function getSelectEnt() {\n var _option$key2;\n\n var option = getMixedOption(val);\n return [labelInValue ? {\n label: option === null || option === void 0 ? void 0 : option[mergedFieldNames.label],\n value: val,\n key: (_option$key2 = option === null || option === void 0 ? void 0 : option.key) !== null && _option$key2 !== void 0 ? _option$key2 : val\n } : val, injectPropsWithOption(option)];\n };\n\n if (selected && onSelect) {\n var _getSelectEnt = getSelectEnt(),\n _getSelectEnt2 = _slicedToArray(_getSelectEnt, 2),\n wrappedValue = _getSelectEnt2[0],\n _option = _getSelectEnt2[1];\n\n onSelect(wrappedValue, _option);\n } else if (!selected && onDeselect && type !== 'clear') {\n var _getSelectEnt3 = getSelectEnt(),\n _getSelectEnt4 = _slicedToArray(_getSelectEnt3, 2),\n _wrappedValue = _getSelectEnt4[0],\n _option2 = _getSelectEnt4[1];\n\n onDeselect(_wrappedValue, _option2);\n }\n }; // Used for OptionList selection\n\n\n var onInternalSelect = useRefFunc(function (val, info) {\n var cloneValues; // Single mode always trigger select only with option list\n\n var mergedSelect = multiple ? info.selected : true;\n\n if (mergedSelect) {\n cloneValues = multiple ? [].concat(_toConsumableArray(mergedValues), [val]) : [val];\n } else {\n cloneValues = mergedValues.filter(function (v) {\n return v.value !== val;\n });\n }\n\n triggerChange(cloneValues);\n triggerSelect(val, mergedSelect); // Clean search value if single or configured\n\n if (mode === 'combobox') {\n // setSearchValue(String(val));\n setActiveValue('');\n } else if (!isMultiple || autoClearSearchValue) {\n setSearchValue('');\n setActiveValue('');\n }\n }); // ======================= Display Change =======================\n // BaseSelect display values change\n\n var onDisplayValuesChange = function onDisplayValuesChange(nextValues, info) {\n triggerChange(nextValues);\n var type = info.type,\n values = info.values;\n\n if (type === 'remove' || type === 'clear') {\n values.forEach(function (item) {\n triggerSelect(item.value, false, type);\n });\n }\n }; // =========================== Search ===========================\n\n\n var onInternalSearch = function onInternalSearch(searchText, info) {\n setSearchValue(searchText);\n setActiveValue(null); // [Submit] Tag mode should flush input\n\n if (info.source === 'submit') {\n var formatted = (searchText || '').trim(); // prevent empty tags from appearing when you click the Enter button\n\n if (formatted) {\n var newRawValues = Array.from(new Set([].concat(_toConsumableArray(rawValues), [formatted])));\n triggerChange(newRawValues);\n triggerSelect(formatted, true);\n setSearchValue('');\n }\n\n return;\n }\n\n if (info.source !== 'blur') {\n if (mode === 'combobox') {\n triggerChange(searchText);\n }\n\n onSearch === null || onSearch === void 0 ? void 0 : onSearch(searchText);\n }\n };\n\n var onInternalSearchSplit = function onInternalSearchSplit(words) {\n var patchValues = words;\n\n if (mode !== 'tags') {\n patchValues = words.map(function (word) {\n var opt = labelOptions.get(word);\n return opt === null || opt === void 0 ? void 0 : opt.value;\n }).filter(function (val) {\n return val !== undefined;\n });\n }\n\n var newRawValues = Array.from(new Set([].concat(_toConsumableArray(rawValues), _toConsumableArray(patchValues))));\n triggerChange(newRawValues);\n newRawValues.forEach(function (newRawValue) {\n triggerSelect(newRawValue, true);\n });\n }; // ========================== Context ===========================\n\n\n var selectContext = React.useMemo(function () {\n var realVirtual = virtual !== false && dropdownMatchSelectWidth !== false;\n return _objectSpread(_objectSpread({}, parsedOptions), {}, {\n flattenOptions: displayOptions,\n onActiveValue: onActiveValue,\n defaultActiveFirstOption: mergedDefaultActiveFirstOption,\n onSelect: onInternalSelect,\n menuItemSelectedIcon: menuItemSelectedIcon,\n rawValues: rawValues,\n fieldNames: mergedFieldNames,\n virtual: realVirtual,\n listHeight: listHeight,\n listItemHeight: listItemHeight,\n childrenAsData: childrenAsData\n });\n }, [parsedOptions, displayOptions, onActiveValue, mergedDefaultActiveFirstOption, onInternalSelect, menuItemSelectedIcon, rawValues, mergedFieldNames, virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, childrenAsData]); // ========================== Warning ===========================\n\n if (process.env.NODE_ENV !== 'production') {\n warningProps(props);\n warningNullOptions(mergedOptions, mergedFieldNames);\n } // ==============================================================\n // == Render ==\n // ==============================================================\n\n\n return /*#__PURE__*/React.createElement(SelectContext.Provider, {\n value: selectContext\n }, /*#__PURE__*/React.createElement(BaseSelect, _extends({}, restProps, {\n // >>> MISC\n id: mergedId,\n prefixCls: prefixCls,\n ref: ref,\n omitDomProps: OMIT_DOM_PROPS,\n mode: mode // >>> Values\n ,\n displayValues: displayValues,\n onDisplayValuesChange: onDisplayValuesChange // >>> Search\n ,\n searchValue: mergedSearchValue,\n onSearch: onInternalSearch,\n autoClearSearchValue: autoClearSearchValue,\n onSearchSplit: onInternalSearchSplit,\n dropdownMatchSelectWidth: dropdownMatchSelectWidth // >>> OptionList\n ,\n OptionList: OptionList,\n emptyOptions: !displayOptions.length // >>> Accessibility\n ,\n activeValue: activeValue,\n activeDescendantId: \"\".concat(mergedId, \"_list_\").concat(accessibilityIndex)\n })));\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Select.displayName = 'Select';\n}\n\nvar TypedSelect = Select;\nTypedSelect.Option = Option;\nTypedSelect.OptGroup = OptGroup;\nexport default TypedSelect;"],"names":["_excluded","OMIT_DOM_PROPS","Select","React","forwardRef","props","ref","id","mode","_props$prefixCls","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","_props$autoClearSearc","autoClearSearchValue","onSelect","onDeselect","_props$dropdownMatchS","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","_props$listHeight","listHeight","_props$listItemHeight","listItemHeight","value","defaultValue","labelInValue","onChange","restProps","_objectWithoutProperties","mergedId","useId","multiple","isMultiple","childrenAsData","mergedFilterOption","useMemo","undefined","mergedFieldNames","fillFieldNames","JSON","stringify","_useMergedState","useMergedState","postState","search","_useMergedState2","_slicedToArray","mergedSearchValue","setSearchValue","parsedOptions","useOptions","valueOptions","labelOptions","mergedOptions","convert2LabelValues","useCallback","draftValues","toArray","map","val","rawValue","rawLabel","rawKey","rawDisabled","rawTitle","_val$value","_typeof","isRawValue","key","label","_option$key","option","get","disabled","title","process","env","NODE_ENV","optionLabel","warning","_useMergedState3","_useMergedState4","internalValue","setInternalValue","rawLabeledValues","_values$","values","_useCache","useCache","_useCache2","mergedValues","getMixedOption","displayValues","length","firstValue","item","_item$label","_objectSpread","rawValues","Set","useEffect","_mergedValues$","strValue","hasValue","String","createTagOption","useRefFunc","_ref","mergedLabel","_defineProperty","filledTagOptions","cloneOptions","_toConsumableArray","sort","a","b","forEach","has","existOptions","push","filteredOptions","useFilterOptions","filledSearchOptions","some","concat","orderedFilteredOptions","displayOptions","flattenOptions","triggerChange","labeledValues","newVal","index","_mergedValues$index","returnValues","v","returnOptions","injectPropsWithOption","_React$useState","useState","_React$useState2","activeValue","setActiveValue","_React$useState3","_React$useState4","accessibilityIndex","setAccessibilityIndex","mergedDefaultActiveFirstOption","onActiveValue","active","_ref2$source","arguments","source","triggerSelect","selected","type","getSelectEnt","_option$key2","_getSelectEnt","_getSelectEnt2","wrappedValue","_option","_getSelectEnt3","_getSelectEnt4","_wrappedValue","_option2","onInternalSelect","info","cloneValues","mergedSelect","filter","selectContext","realVirtual","warningProps","warningNullOptions","createElement","SelectContext","Provider","BaseSelect","_extends","omitDomProps","onDisplayValuesChange","nextValues","searchText","formatted","trim","newRawValues","Array","from","onSearchSplit","words","patchValues","word","opt","newRawValue","OptionList","emptyOptions","activeDescendantId","displayName","TypedSelect","Option","OptGroup"],"mappings":"2pCAOA,IAAIA,EAAY,CAAC,KAAM,OAAQ,YAAa,WAAY,aAAc,aAAc,cAAe,WAAY,uBAAwB,WAAY,aAAc,2BAA4B,eAAgB,aAAc,mBAAoB,kBAAmB,UAAW,WAAY,2BAA4B,uBAAwB,UAAW,aAAc,iBAAkB,QAAS,eAAgB,eAAgB,YAgD7ZC,EAAiB,CAAC,cAMtB,IAAIC,EAAsBC,EAAMC,YAAW,SAAUC,EAAOC,GAC1D,IAAIC,EAAKF,EAAME,GACXC,EAAOH,EAAMG,KACbC,EAAmBJ,EAAMK,UACzBA,OAAiC,IAArBD,EAA8B,YAAcA,EACxDE,EAAWN,EAAMM,SACjBC,EAAaP,EAAMO,WACnBC,EAAaR,EAAMQ,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C,OAE9B+C,YAAaA,GACbwD,mBAAoB,GAAGxE,OAAO/F,GAAU,UAAU+F,OAAOoB,OAE7D,IAE6B,eAAzBrE,QAAQC,IAAIC,WACdvF,EAAO+M,YAAc,UAGpB,IAACC,EAAchN,EAClBgN,EAAYC,OAASA,EACrBD,EAAYE,SAAWA","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import*as t from"react";var a=t.createContext(null);export{a as default};
|
|
2
2
|
//# sourceMappingURL=SelectContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectContext.js","sources":["../../../../node_modules/rc-select/es/SelectContext.js"],"sourcesContent":["import * as React from 'react';\nvar SelectContext = /*#__PURE__*/React.createContext(null);\nexport default SelectContext;"],"names":["SelectContext","createContext"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectContext.js","sources":["../../../../node_modules/rc-select/es/SelectContext.js"],"sourcesContent":["import * as React from 'react';\nvar SelectContext = /*#__PURE__*/React.createContext(null);\nexport default SelectContext;"],"names":["SelectContext","React","createContext"],"mappings":"wBACG,IAACA,EAA6BC,EAAMC,cAAc","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import e from"../../@babel/runtime/helpers/esm/extends.js";import t from"../../@babel/runtime/helpers/esm/defineProperty.js";import o from"../../@babel/runtime/helpers/esm/objectSpread2.js";import r from"../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import n from"../../@rc-component/trigger/es/index.js";import i from"../../classnames/index.js";import*as p from"react";var l=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],s=function(s,a){var d=s.prefixCls;s.disabled;var m=s.visible,u=s.children,c=s.popupElement,f=s.containerWidth,g=s.animation,b=s.transitionName,h=s.dropdownStyle,w=s.dropdownClassName,j=s.direction,v=void 0===j?"ltr":j,P=s.placement,C=s.dropdownMatchSelectWidth,R=s.dropdownRender,N=s.dropdownAlign,y=s.getPopupContainer,M=s.empty,E=s.getTriggerDOMNode,x=s.onPopupVisibleChange,S=s.onPopupMouseEnter,W=r(s,l),A="".concat(d,"-dropdown"),T=c;R&&(T=R(c));var V=p.useMemo((function(){return function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(C)}),[C]),X=g?"".concat(A,"-").concat(g):b,Y=p.useRef(null);p.useImperativeHandle(a,(function(){return{getPopupElement:function(){return Y.current}}}));var D=o({minWidth:f},h);return"number"==typeof C?D.width=C:C&&(D.width=f),p.createElement(n,e({},W,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:P||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:V,prefixCls:A,popupTransitionName:X,popup:p.createElement("div",{ref:Y,onMouseEnter:S},T),popupAlign:N,popupVisible:m,getPopupContainer:y,popupClassName:i(w,t({},"".concat(A,"-empty"),M)),popupStyle:D,getTriggerDOMNode:E,onPopupVisibleChange:x}),u)},a=p.forwardRef(s);a.displayName="SelectTrigger";export{a as default};
|
|
2
2
|
//# sourceMappingURL=SelectTrigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectTrigger.js","sources":["../../../../node_modules/rc-select/es/SelectTrigger.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"disabled\", \"visible\", \"children\", \"popupElement\", \"containerWidth\", \"animation\", \"transitionName\", \"dropdownStyle\", \"dropdownClassName\", \"direction\", \"placement\", \"dropdownMatchSelectWidth\", \"dropdownRender\", \"dropdownAlign\", \"getPopupContainer\", \"empty\", \"getTriggerDOMNode\", \"onPopupVisibleChange\", \"onPopupMouseEnter\"];\nimport Trigger from '@rc-component/trigger';\nimport classNames from 'classnames';\nimport * as React from 'react';\n\nvar getBuiltInPlacements = function getBuiltInPlacements(dropdownMatchSelectWidth) {\n // Enable horizontal overflow auto-adjustment when a custom dropdown width is provided\n var adjustX = dropdownMatchSelectWidth === true ? 0 : 1;\n return {\n bottomLeft: {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: {\n adjustX: adjustX,\n adjustY: 1\n },\n htmlRegion: 'scroll'\n },\n bottomRight: {\n points: ['tr', 'br'],\n offset: [0, 4],\n overflow: {\n adjustX: adjustX,\n adjustY: 1\n },\n htmlRegion: 'scroll'\n },\n topLeft: {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: {\n adjustX: adjustX,\n adjustY: 1\n },\n htmlRegion: 'scroll'\n },\n topRight: {\n points: ['br', 'tr'],\n offset: [0, -4],\n overflow: {\n adjustX: adjustX,\n adjustY: 1\n },\n htmlRegion: 'scroll'\n }\n };\n};\n\nvar SelectTrigger = function SelectTrigger(props, ref) {\n var prefixCls = props.prefixCls,\n disabled = props.disabled,\n visible = props.visible,\n children = props.children,\n popupElement = props.popupElement,\n containerWidth = props.containerWidth,\n animation = props.animation,\n transitionName = props.transitionName,\n dropdownStyle = props.dropdownStyle,\n dropdownClassName = props.dropdownClassName,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'ltr' : _props$direction,\n placement = props.placement,\n dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,\n dropdownRender = props.dropdownRender,\n dropdownAlign = props.dropdownAlign,\n getPopupContainer = props.getPopupContainer,\n empty = props.empty,\n getTriggerDOMNode = props.getTriggerDOMNode,\n onPopupVisibleChange = props.onPopupVisibleChange,\n onPopupMouseEnter = props.onPopupMouseEnter,\n restProps = _objectWithoutProperties(props, _excluded);\n\n var dropdownPrefixCls = \"\".concat(prefixCls, \"-dropdown\");\n var popupNode = popupElement;\n\n if (dropdownRender) {\n popupNode = dropdownRender(popupElement);\n }\n\n var builtInPlacements = React.useMemo(function () {\n return getBuiltInPlacements(dropdownMatchSelectWidth);\n }, [dropdownMatchSelectWidth]); // ===================== Motion ======================\n\n var mergedTransitionName = animation ? \"\".concat(dropdownPrefixCls, \"-\").concat(animation) : transitionName; // ======================= Ref =======================\n\n var popupRef = React.useRef(null);\n React.useImperativeHandle(ref, function () {\n return {\n getPopupElement: function getPopupElement() {\n return popupRef.current;\n }\n };\n });\n\n var popupStyle = _objectSpread({\n minWidth: containerWidth\n }, dropdownStyle);\n\n if (typeof dropdownMatchSelectWidth === 'number') {\n popupStyle.width = dropdownMatchSelectWidth;\n } else if (dropdownMatchSelectWidth) {\n popupStyle.width = containerWidth;\n }\n\n return /*#__PURE__*/React.createElement(Trigger, _extends({}, restProps, {\n showAction: onPopupVisibleChange ? ['click'] : [],\n hideAction: onPopupVisibleChange ? ['click'] : [],\n popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),\n builtinPlacements: builtInPlacements,\n prefixCls: dropdownPrefixCls,\n popupTransitionName: mergedTransitionName,\n popup: /*#__PURE__*/React.createElement(\"div\", {\n ref: popupRef,\n onMouseEnter: onPopupMouseEnter\n }, popupNode),\n popupAlign: dropdownAlign,\n popupVisible: visible,\n getPopupContainer: getPopupContainer,\n popupClassName: classNames(dropdownClassName, _defineProperty({}, \"\".concat(dropdownPrefixCls, \"-empty\"), empty)),\n popupStyle: popupStyle,\n getTriggerDOMNode: getTriggerDOMNode,\n onPopupVisibleChange: onPopupVisibleChange\n }), children);\n};\n\nvar RefSelectTrigger = /*#__PURE__*/React.forwardRef(SelectTrigger);\nRefSelectTrigger.displayName = 'SelectTrigger';\nexport default RefSelectTrigger;"],"names":["_excluded","SelectTrigger","props","ref","prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","_props$direction","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter","restProps","_objectWithoutProperties","dropdownPrefixCls","concat","popupNode","builtInPlacements","React","useMemo","adjustX","bottomLeft","points","offset","overflow","adjustY","htmlRegion","bottomRight","topLeft","topRight","getBuiltInPlacements","mergedTransitionName","popupRef","useRef","useImperativeHandle","getPopupElement","current","popupStyle","_objectSpread","minWidth","width","createElement","Trigger","_extends","showAction","hideAction","popupPlacement","builtinPlacements","popupTransitionName","popup","onMouseEnter","popupAlign","popupVisible","popupClassName","classNames","_defineProperty","RefSelectTrigger","forwardRef","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectTrigger.js","sources":["../../../../node_modules/rc-select/es/SelectTrigger.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"disabled\", \"visible\", \"children\", \"popupElement\", \"containerWidth\", \"animation\", \"transitionName\", \"dropdownStyle\", \"dropdownClassName\", \"direction\", \"placement\", \"dropdownMatchSelectWidth\", \"dropdownRender\", \"dropdownAlign\", \"getPopupContainer\", \"empty\", \"getTriggerDOMNode\", \"onPopupVisibleChange\", \"onPopupMouseEnter\"];\nimport Trigger from '@rc-component/trigger';\nimport classNames from 'classnames';\nimport * as React from 'react';\n\nvar getBuiltInPlacements = function getBuiltInPlacements(dropdownMatchSelectWidth) {\n // Enable horizontal overflow auto-adjustment when a custom dropdown width is provided\n var adjustX = dropdownMatchSelectWidth === true ? 0 : 1;\n return {\n bottomLeft: {\n points: ['tl', 'bl'],\n offset: [0, 4],\n overflow: {\n adjustX: adjustX,\n adjustY: 1\n },\n htmlRegion: 'scroll'\n },\n bottomRight: {\n points: ['tr', 'br'],\n offset: [0, 4],\n overflow: {\n adjustX: adjustX,\n adjustY: 1\n },\n htmlRegion: 'scroll'\n },\n topLeft: {\n points: ['bl', 'tl'],\n offset: [0, -4],\n overflow: {\n adjustX: adjustX,\n adjustY: 1\n },\n htmlRegion: 'scroll'\n },\n topRight: {\n points: ['br', 'tr'],\n offset: [0, -4],\n overflow: {\n adjustX: adjustX,\n adjustY: 1\n },\n htmlRegion: 'scroll'\n }\n };\n};\n\nvar SelectTrigger = function SelectTrigger(props, ref) {\n var prefixCls = props.prefixCls,\n disabled = props.disabled,\n visible = props.visible,\n children = props.children,\n popupElement = props.popupElement,\n containerWidth = props.containerWidth,\n animation = props.animation,\n transitionName = props.transitionName,\n dropdownStyle = props.dropdownStyle,\n dropdownClassName = props.dropdownClassName,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? 'ltr' : _props$direction,\n placement = props.placement,\n dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,\n dropdownRender = props.dropdownRender,\n dropdownAlign = props.dropdownAlign,\n getPopupContainer = props.getPopupContainer,\n empty = props.empty,\n getTriggerDOMNode = props.getTriggerDOMNode,\n onPopupVisibleChange = props.onPopupVisibleChange,\n onPopupMouseEnter = props.onPopupMouseEnter,\n restProps = _objectWithoutProperties(props, _excluded);\n\n var dropdownPrefixCls = \"\".concat(prefixCls, \"-dropdown\");\n var popupNode = popupElement;\n\n if (dropdownRender) {\n popupNode = dropdownRender(popupElement);\n }\n\n var builtInPlacements = React.useMemo(function () {\n return getBuiltInPlacements(dropdownMatchSelectWidth);\n }, [dropdownMatchSelectWidth]); // ===================== Motion ======================\n\n var mergedTransitionName = animation ? \"\".concat(dropdownPrefixCls, \"-\").concat(animation) : transitionName; // ======================= Ref =======================\n\n var popupRef = React.useRef(null);\n React.useImperativeHandle(ref, function () {\n return {\n getPopupElement: function getPopupElement() {\n return popupRef.current;\n }\n };\n });\n\n var popupStyle = _objectSpread({\n minWidth: containerWidth\n }, dropdownStyle);\n\n if (typeof dropdownMatchSelectWidth === 'number') {\n popupStyle.width = dropdownMatchSelectWidth;\n } else if (dropdownMatchSelectWidth) {\n popupStyle.width = containerWidth;\n }\n\n return /*#__PURE__*/React.createElement(Trigger, _extends({}, restProps, {\n showAction: onPopupVisibleChange ? ['click'] : [],\n hideAction: onPopupVisibleChange ? ['click'] : [],\n popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),\n builtinPlacements: builtInPlacements,\n prefixCls: dropdownPrefixCls,\n popupTransitionName: mergedTransitionName,\n popup: /*#__PURE__*/React.createElement(\"div\", {\n ref: popupRef,\n onMouseEnter: onPopupMouseEnter\n }, popupNode),\n popupAlign: dropdownAlign,\n popupVisible: visible,\n getPopupContainer: getPopupContainer,\n popupClassName: classNames(dropdownClassName, _defineProperty({}, \"\".concat(dropdownPrefixCls, \"-empty\"), empty)),\n popupStyle: popupStyle,\n getTriggerDOMNode: getTriggerDOMNode,\n onPopupVisibleChange: onPopupVisibleChange\n }), children);\n};\n\nvar RefSelectTrigger = /*#__PURE__*/React.forwardRef(SelectTrigger);\nRefSelectTrigger.displayName = 'SelectTrigger';\nexport default RefSelectTrigger;"],"names":["_excluded","SelectTrigger","props","ref","prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","_props$direction","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter","restProps","_objectWithoutProperties","dropdownPrefixCls","concat","popupNode","builtInPlacements","React","useMemo","adjustX","bottomLeft","points","offset","overflow","adjustY","htmlRegion","bottomRight","topLeft","topRight","getBuiltInPlacements","mergedTransitionName","popupRef","useRef","useImperativeHandle","getPopupElement","current","popupStyle","_objectSpread","minWidth","width","createElement","Trigger","_extends","showAction","hideAction","popupPlacement","builtinPlacements","popupTransitionName","popup","onMouseEnter","popupAlign","popupVisible","popupClassName","classNames","_defineProperty","RefSelectTrigger","forwardRef","displayName"],"mappings":"iYAIA,IAAIA,EAAY,CAAC,YAAa,WAAY,UAAW,WAAY,eAAgB,iBAAkB,YAAa,iBAAkB,gBAAiB,oBAAqB,YAAa,YAAa,2BAA4B,iBAAkB,gBAAiB,oBAAqB,QAAS,oBAAqB,uBAAwB,qBAgDxUC,EAAgB,SAAuBC,EAAOC,GAC7C,IAACC,EAAYF,EAAME,UACPF,EAAMG,SACvB,IAAMC,EAAUJ,EAAMI,QAChBC,EAAWL,EAAMK,SACjBC,EAAeN,EAAMM,aACrBC,EAAiBP,EAAMO,eACvBC,EAAYR,EAAMQ,UAClBC,EAAiBT,EAAMS,eACvBC,EAAgBV,EAAMU,cACtBC,EAAoBX,EAAMW,kBAC1BC,EAAmBZ,EAAMa,UACzBA,OAAiC,IAArBD,EAA8B,MAAQA,EAClDE,EAAYd,EAAMc,UAClBC,EAA2Bf,EAAMe,yBACjCC,EAAiBhB,EAAMgB,eACvBC,EAAgBjB,EAAMiB,cACtBC,EAAoBlB,EAAMkB,kBAC1BC,EAAQnB,EAAMmB,MACdC,EAAoBpB,EAAMoB,kBAC1BC,EAAuBrB,EAAMqB,qBAC7BC,EAAoBtB,EAAMsB,kBAC1BC,EAAYC,EAAyBxB,EAAOF,GAE5C2B,EAAoB,GAAGC,OAAOxB,EAAW,aACzCyB,EAAYrB,EAEZU,IACFW,EAAYX,EAAeV,IAG7B,IAAIsB,EAAoBC,EAAMC,SAAQ,WACpC,OA3EuB,SAA8Bf,GAEvD,IAAIgB,GAAuC,IAA7BhB,EAAoC,EAAI,EACtD,MAAO,CACLiB,WAAY,CACVC,OAAQ,CAAC,KAAM,MACfC,OA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ACZ5B,kBAAmBA,EACnBC,qBAAsBA,IACpBhB,EACN,EAEI8D,EAAgCtC,EAAMuC,WAAWrE,GACrDoE,EAAiBE,YAAc","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import o from"../../../@babel/runtime/helpers/esm/objectSpread2.js";import*as n from"react";import e from"../../../classnames/index.js";import{composeRef as t}from"../../../rc-util/es/ref.js";import{warning as a}from"../../../rc-util/es/warning.js";var i=function(i,s){var r,l,c=i.prefixCls,p=i.id,u=i.inputElement,m=i.disabled,d=i.tabIndex,f=i.autoFocus,b=i.autoComplete,x=i.editable,C=i.activeDescendantId,h=i.value,y=i.maxLength,w=i.onKeyDown,g=i.onMouseDown,v=i.onChange,D=i.onPaste,E=i.onCompositionStart,j=i.onCompositionEnd,S=i.open,I=i.attrs,L=u||n.createElement("input",null),K=L,M=K.ref,N=K.props,P=N.onKeyDown,F=N.onChange,_=N.onMouseDown,k=N.onCompositionStart,B=N.onCompositionEnd,O=N.style;return a(!("maxLength"in L.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),L=n.cloneElement(L,o(o(o({type:"search"},N),{},{id:p,ref:t(s,M),disabled:m,tabIndex:d,autoComplete:b||"off",autoFocus:f,className:e("".concat(c,"-selection-search-input"),null===(r=L)||void 0===r||null===(l=r.props)||void 0===l?void 0:l.className),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":"".concat(p,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(p,"_list"),"aria-activedescendant":C},I),{},{value:x?h:"",maxLength:y,readOnly:!x,unselectable:x?null:"on",style:o(o({},O),{},{opacity:x?null:0}),onKeyDown:function(o){w(o),P&&P(o)},onMouseDown:function(o){g(o),_&&_(o)},onChange:function(o){v(o),F&&F(o)},onCompositionStart:function(o){E(o),k&&k(o)},onCompositionEnd:function(o){j(o),B&&B(o)},onPaste:D}))},s=n.forwardRef(i);s.displayName="Input";export{s as default};
|
|
2
2
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../../../../node_modules/rc-select/es/Selector/Input.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { composeRef } from \"rc-util/es/ref\";\nimport { warning } from \"rc-util/es/warning\";\n\nvar Input = function Input(_ref, ref) {\n var _inputNode2, _inputNode2$props;\n\n var prefixCls = _ref.prefixCls,\n id = _ref.id,\n inputElement = _ref.inputElement,\n disabled = _ref.disabled,\n tabIndex = _ref.tabIndex,\n autoFocus = _ref.autoFocus,\n autoComplete = _ref.autoComplete,\n editable = _ref.editable,\n activeDescendantId = _ref.activeDescendantId,\n value = _ref.value,\n maxLength = _ref.maxLength,\n _onKeyDown = _ref.onKeyDown,\n _onMouseDown = _ref.onMouseDown,\n _onChange = _ref.onChange,\n onPaste = _ref.onPaste,\n _onCompositionStart = _ref.onCompositionStart,\n _onCompositionEnd = _ref.onCompositionEnd,\n open = _ref.open,\n attrs = _ref.attrs;\n var inputNode = inputElement || /*#__PURE__*/React.createElement(\"input\", null);\n var _inputNode = inputNode,\n originRef = _inputNode.ref,\n originProps = _inputNode.props;\n var onOriginKeyDown = originProps.onKeyDown,\n onOriginChange = originProps.onChange,\n onOriginMouseDown = originProps.onMouseDown,\n onOriginCompositionStart = originProps.onCompositionStart,\n onOriginCompositionEnd = originProps.onCompositionEnd,\n style = originProps.style;\n warning(!('maxLength' in inputNode.props), \"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled.\");\n inputNode = /*#__PURE__*/React.cloneElement(inputNode, _objectSpread(_objectSpread(_objectSpread({\n type: 'search'\n }, originProps), {}, {\n // Override over origin props\n id: id,\n ref: composeRef(ref, originRef),\n disabled: disabled,\n tabIndex: tabIndex,\n autoComplete: autoComplete || 'off',\n autoFocus: autoFocus,\n className: classNames(\"\".concat(prefixCls, \"-selection-search-input\"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),\n role: 'combobox',\n 'aria-expanded': open,\n 'aria-haspopup': 'listbox',\n 'aria-owns': \"\".concat(id, \"_list\"),\n 'aria-autocomplete': 'list',\n 'aria-controls': \"\".concat(id, \"_list\"),\n 'aria-activedescendant': activeDescendantId\n }, attrs), {}, {\n value: editable ? value : '',\n maxLength: maxLength,\n readOnly: !editable,\n unselectable: !editable ? 'on' : null,\n style: _objectSpread(_objectSpread({}, style), {}, {\n opacity: editable ? null : 0\n }),\n onKeyDown: function onKeyDown(event) {\n _onKeyDown(event);\n\n if (onOriginKeyDown) {\n onOriginKeyDown(event);\n }\n },\n onMouseDown: function onMouseDown(event) {\n _onMouseDown(event);\n\n if (onOriginMouseDown) {\n onOriginMouseDown(event);\n }\n },\n onChange: function onChange(event) {\n _onChange(event);\n\n if (onOriginChange) {\n onOriginChange(event);\n }\n },\n onCompositionStart: function onCompositionStart(event) {\n _onCompositionStart(event);\n\n if (onOriginCompositionStart) {\n onOriginCompositionStart(event);\n }\n },\n onCompositionEnd: function onCompositionEnd(event) {\n _onCompositionEnd(event);\n\n if (onOriginCompositionEnd) {\n onOriginCompositionEnd(event);\n }\n },\n onPaste: onPaste\n }));\n return inputNode;\n};\n\nvar RefInput = /*#__PURE__*/React.forwardRef(Input);\nRefInput.displayName = 'Input';\nexport default RefInput;"],"names":["Input","_ref","ref","_inputNode2","_inputNode2$props","prefixCls","id","inputElement","disabled","tabIndex","autoFocus","autoComplete","editable","activeDescendantId","value","maxLength","_onKeyDown","onKeyDown","_onMouseDown","onMouseDown","_onChange","onChange","onPaste","_onCompositionStart","onCompositionStart","_onCompositionEnd","onCompositionEnd","open","attrs","inputNode","React","createElement","_inputNode","originRef","originProps","props","onOriginKeyDown","onOriginChange","onOriginMouseDown","onOriginCompositionStart","onOriginCompositionEnd","style","warning","cloneElement","_objectSpread","type","composeRef","className","classNames","concat","role","readOnly","unselectable","opacity","event","RefInput","forwardRef","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../../../node_modules/rc-select/es/Selector/Input.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { composeRef } from \"rc-util/es/ref\";\nimport { warning } from \"rc-util/es/warning\";\n\nvar Input = function Input(_ref, ref) {\n var _inputNode2, _inputNode2$props;\n\n var prefixCls = _ref.prefixCls,\n id = _ref.id,\n inputElement = _ref.inputElement,\n disabled = _ref.disabled,\n tabIndex = _ref.tabIndex,\n autoFocus = _ref.autoFocus,\n autoComplete = _ref.autoComplete,\n editable = _ref.editable,\n activeDescendantId = _ref.activeDescendantId,\n value = _ref.value,\n maxLength = _ref.maxLength,\n _onKeyDown = _ref.onKeyDown,\n _onMouseDown = _ref.onMouseDown,\n _onChange = _ref.onChange,\n onPaste = _ref.onPaste,\n _onCompositionStart = _ref.onCompositionStart,\n _onCompositionEnd = _ref.onCompositionEnd,\n open = _ref.open,\n attrs = _ref.attrs;\n var inputNode = inputElement || /*#__PURE__*/React.createElement(\"input\", null);\n var _inputNode = inputNode,\n originRef = _inputNode.ref,\n originProps = _inputNode.props;\n var onOriginKeyDown = originProps.onKeyDown,\n onOriginChange = originProps.onChange,\n onOriginMouseDown = originProps.onMouseDown,\n onOriginCompositionStart = originProps.onCompositionStart,\n onOriginCompositionEnd = originProps.onCompositionEnd,\n style = originProps.style;\n warning(!('maxLength' in inputNode.props), \"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled.\");\n inputNode = /*#__PURE__*/React.cloneElement(inputNode, _objectSpread(_objectSpread(_objectSpread({\n type: 'search'\n }, originProps), {}, {\n // Override over origin props\n id: id,\n ref: composeRef(ref, originRef),\n disabled: disabled,\n tabIndex: tabIndex,\n autoComplete: autoComplete || 'off',\n autoFocus: autoFocus,\n className: classNames(\"\".concat(prefixCls, \"-selection-search-input\"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),\n role: 'combobox',\n 'aria-expanded': open,\n 'aria-haspopup': 'listbox',\n 'aria-owns': \"\".concat(id, \"_list\"),\n 'aria-autocomplete': 'list',\n 'aria-controls': \"\".concat(id, \"_list\"),\n 'aria-activedescendant': activeDescendantId\n }, attrs), {}, {\n value: editable ? value : '',\n maxLength: maxLength,\n readOnly: !editable,\n unselectable: !editable ? 'on' : null,\n style: _objectSpread(_objectSpread({}, style), {}, {\n opacity: editable ? null : 0\n }),\n onKeyDown: function onKeyDown(event) {\n _onKeyDown(event);\n\n if (onOriginKeyDown) {\n onOriginKeyDown(event);\n }\n },\n onMouseDown: function onMouseDown(event) {\n _onMouseDown(event);\n\n if (onOriginMouseDown) {\n onOriginMouseDown(event);\n }\n },\n onChange: function onChange(event) {\n _onChange(event);\n\n if (onOriginChange) {\n onOriginChange(event);\n }\n },\n onCompositionStart: function onCompositionStart(event) {\n _onCompositionStart(event);\n\n if (onOriginCompositionStart) {\n onOriginCompositionStart(event);\n }\n },\n onCompositionEnd: function onCompositionEnd(event) {\n _onCompositionEnd(event);\n\n if (onOriginCompositionEnd) {\n onOriginCompositionEnd(event);\n }\n },\n onPaste: onPaste\n }));\n return inputNode;\n};\n\nvar RefInput = /*#__PURE__*/React.forwardRef(Input);\nRefInput.displayName = 'Input';\nexport default RefInput;"],"names":["Input","_ref","ref","_inputNode2","_inputNode2$props","prefixCls","id","inputElement","disabled","tabIndex","autoFocus","autoComplete","editable","activeDescendantId","value","maxLength","_onKeyDown","onKeyDown","_onMouseDown","onMouseDown","_onChange","onChange","onPaste","_onCompositionStart","onCompositionStart","_onCompositionEnd","onCompositionEnd","open","attrs","inputNode","React","createElement","_inputNode","originRef","originProps","props","onOriginKeyDown","onOriginChange","onOriginMouseDown","onOriginCompositionStart","onOriginCompositionEnd","style","warning","cloneElement","_objectSpread","type","composeRef","className","classNames","concat","role","readOnly","unselectable","opacity","event","RefInput","forwardRef","displayName"],"mappings":"yPAMA,IAAIA,EAAQ,SAAeC,EAAMC,GAC/B,IAAIC,EAAaC,EAEbC,EAAYJ,EAAKI,UACjBC,EAAKL,EAAKK,GACVC,EAAeN,EAAKM,aACpBC,EAAWP,EAAKO,SAChBC,EAAWR,EAAKQ,SAChBC,EAAYT,EAAKS,UACjBC,EAAeV,EAAKU,aACpBC,EAAWX,EAAKW,SAChBC,EAAqBZ,EAAKY,mBAC1BC,EAAQb,EAAKa,MACbC,EAAYd,EAAKc,UACjBC,EAAaf,EAAKgB,UAClBC,EAAejB,EAAKkB,YACpBC,EAAYnB,EAAKoB,SACjBC,EAAUrB,EAAKqB,QACfC,EAAsBtB,EAAKuB,mBAC3BC,EAAoBxB,EAAKyB,iBACzBC,EAAO1B,EAAK0B,KACZC,EAAQ3B,EAAK2B,MACbC,EAAYtB,GAA6BuB,EAAMC,cAAc,QAAS,MACtEC,EAAaH,EACbI,EAAYD,EAAW9B,IACvBgC,EAAcF,EAAWG,MACzBC,EAAkBF,EAAYjB,UAC9BoB,EAAiBH,EAAYb,SAC7BiB,EAAoBJ,EAAYf,YAChCoB,EAA2BL,EAAYV,mBACvCgB,EAAyBN,EAAYR,iBACrCe,EAAQP,EAAYO,MAiExB,OAhEAC,IAAU,cAAeb,EAAUM,OAAQ,yGAC3CN,EAAyBC,EAAMa,aAAad,EAAWe,EAAcA,EAAcA,EAAc,CAC/FC,KAAM,UACLX,GAAc,GAAI,CAEnB5B,GAAIA,EACJJ,IAAK4C,EAAW5C,EAAK+B,GACrBzB,SAAUA,EACVC,SAAUA,EACVE,aAAcA,GAAgB,MAC9BD,UAAWA,EACXqC,UAAWC,EAAW,GAAGC,OAAO5C,EAAW,2BAA0D,QAA7BF,EAAc0B,SAAuC,IAAhB1B,GAA8E,QAA3CC,EAAoBD,EAAYgC,aAAyC,IAAtB/B,OAA7D,EAAqGA,EAAkB2C,WAC7PG,KAAM,WACN,gBAAiBvB,EACjB,gBAAiB,UACjB,YAAa,GAAGsB,OAAO3C,EAAI,SAC3B,oBAAqB,OACrB,gBAAiB,GAAG2C,OAAO3C,EAAI,SAC/B,wBAAyBO,GACxBe,GAAQ,GAAI,CACbd,MAAOF,EAAWE,EAAQ,GAC1BC,UAAWA,EACXoC,UAAWvC,EACXwC,aAAexC,EAAkB,KAAP,KAC1B6B,MAAOG,EAAcA,EAAc,CAAE,EAAEH,GAAQ,CAAA,EAAI,CACjDY,QAASzC,EAAW,KAAO,IAE7BK,UAAW,SAAmBqC,GAC5BtC,EAAWsC,GAEPlB,GACFA,EAAgBkB,EAEnB,EACDnC,YAAa,SAAqBmC,GAChCpC,EAAaoC,GAEThB,GACFA,EAAkBgB,EAErB,EACDjC,SAAU,SAAkBiC,GAC1BlC,EAAUkC,GAENjB,GACFA,EAAeiB,EAElB,EACD9B,mBAAoB,SAA4B8B,GAC9C/B,EAAoB+B,GAEhBf,GACFA,EAAyBe,EAE5B,EACD5B,iBAAkB,SAA0B4B,GAC1C7B,EAAkB6B,GAEdd,GACFA,EAAuBc,EAE1B,EACDhC,QAASA,IAGb,EAEIiC,EAAwBzB,EAAM0B,WAAWxD,GAC7CuD,EAASE,YAAc","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/defineProperty.js";import t from"../../../@babel/runtime/helpers/esm/slicedToArray.js";import*as n from"react";import{useState as o}from"react";import a from"../../../classnames/index.js";import r from"../../../rc-util/es/pickAttrs.js";import l from"../../../rc-overflow/es/Overflow.js";import c from"../TransBtn.js";import s from"./Input.js";import i from"../hooks/useLayoutEffect.js";import{getTitle as m}from"../utils/commonUtil.js";function u(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var p=function(e){e.preventDefault(),e.stopPropagation()},f=function(f){var d=f.id,v=f.prefixCls,h=f.values,g=f.open,b=f.searchValue,C=f.autoClearSearchValue,E=f.inputRef,I=f.placeholder,x=f.disabled,y=f.mode,w=f.showSearch,j=f.autoFocus,D=f.autoComplete,T=f.activeDescendantId,N=f.tabIndex,P=f.removeIcon,R=f.maxTagCount,S=f.maxTagTextLength,k=f.maxTagPlaceholder,F=void 0===k?function(e){return"+ ".concat(e.length," ...")}:k,M=f.tagRender,K=f.onToggleOpen,A=f.onRemove,B=f.onInputChange,L=f.onInputPaste,O=f.onInputKeyDown,V=f.onInputMouseDown,z=f.onInputCompositionStart,U=f.onInputCompositionEnd,W=n.useRef(null),q=o(0),G=t(q,2),H=G[0],J=G[1],Q=o(!1),X=t(Q,2),Y=X[0],Z=X[1],$="".concat(v,"-selection"),_=g||"multiple"===y&&!1===C||"tags"===y?b:"",ee="tags"===y||"multiple"===y&&!1===C||w&&(g||Y);function te(t,o,r,l,s){return n.createElement("span",{className:a("".concat($,"-item"),e({},"".concat($,"-item-disabled"),r)),title:m(t)},n.createElement("span",{className:"".concat($,"-item-content")},o),l&&n.createElement(c,{className:"".concat($,"-item-remove"),onMouseDown:p,onClick:s,customizeIcon:P},"×"))}i((function(){J(W.current.scrollWidth)}),[_]);var ne=n.createElement("div",{className:"".concat($,"-search"),style:{width:H},onFocus:function(){Z(!0)},onBlur:function(){Z(!1)}},n.createElement(s,{ref:E,open:g,prefixCls:v,id:d,inputElement:null,disabled:x,autoFocus:j,autoComplete:D,editable:ee,activeDescendantId:T,value:_,onKeyDown:O,onMouseDown:V,onChange:B,onPaste:L,onCompositionStart:z,onCompositionEnd:U,tabIndex:N,attrs:r(f,!0)}),n.createElement("span",{ref:W,className:"".concat($,"-search-mirror"),"aria-hidden":!0},_," ")),oe=n.createElement(l,{prefixCls:"".concat($,"-overflow"),data:h,renderItem:function(e){var t=e.disabled,o=e.label,a=e.value,r=!x&&!t,l=o;if("number"==typeof S&&("string"==typeof o||"number"==typeof o)){var c=String(l);c.length>S&&(l="".concat(c.slice(0,S),"..."))}var s=function(t){t&&t.stopPropagation(),A(e)};return"function"==typeof M?function(e,t,o,a,r){return n.createElement("span",{onMouseDown:function(e){p(e),K(!g)}},M({label:t,value:e,disabled:o,closable:a,onClose:r}))}(a,l,t,r,s):te(e,l,t,r,s)},renderRest:function(e){var t="function"==typeof F?F(e):F;return te({title:t},t,!1)},suffix:ne,itemKey:u,maxCount:R});return n.createElement(n.Fragment,null,oe,!h.length&&!_&&n.createElement("span",{className:"".concat($,"-placeholder")},I))};export{f as default};
|
|
2
2
|
//# sourceMappingURL=MultipleSelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleSelector.js","sources":["../../../../../node_modules/rc-select/es/Selector/MultipleSelector.js"],"sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport { useState } from 'react';\nimport classNames from 'classnames';\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nimport Overflow from 'rc-overflow';\nimport TransBtn from \"../TransBtn\";\nimport Input from \"./Input\";\nimport useLayoutEffect from \"../hooks/useLayoutEffect\";\nimport { getTitle } from \"../utils/commonUtil\";\n\nfunction itemKey(value) {\n var _value$key;\n\n return (_value$key = value.key) !== null && _value$key !== void 0 ? _value$key : value.value;\n}\n\nvar onPreventMouseDown = function onPreventMouseDown(event) {\n event.preventDefault();\n event.stopPropagation();\n};\n\nvar SelectSelector = function SelectSelector(props) {\n var id = props.id,\n prefixCls = props.prefixCls,\n values = props.values,\n open = props.open,\n searchValue = props.searchValue,\n autoClearSearchValue = props.autoClearSearchValue,\n inputRef = props.inputRef,\n placeholder = props.placeholder,\n disabled = props.disabled,\n mode = props.mode,\n showSearch = props.showSearch,\n autoFocus = props.autoFocus,\n autoComplete = props.autoComplete,\n activeDescendantId = props.activeDescendantId,\n tabIndex = props.tabIndex,\n removeIcon = props.removeIcon,\n maxTagCount = props.maxTagCount,\n maxTagTextLength = props.maxTagTextLength,\n _props$maxTagPlacehol = props.maxTagPlaceholder,\n maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function (omittedValues) {\n return \"+ \".concat(omittedValues.length, \" ...\");\n } : _props$maxTagPlacehol,\n tagRender = props.tagRender,\n onToggleOpen = props.onToggleOpen,\n onRemove = props.onRemove,\n onInputChange = props.onInputChange,\n onInputPaste = props.onInputPaste,\n onInputKeyDown = props.onInputKeyDown,\n onInputMouseDown = props.onInputMouseDown,\n onInputCompositionStart = props.onInputCompositionStart,\n onInputCompositionEnd = props.onInputCompositionEnd;\n var measureRef = React.useRef(null);\n\n var _useState = useState(0),\n _useState2 = _slicedToArray(_useState, 2),\n inputWidth = _useState2[0],\n setInputWidth = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n focused = _useState4[0],\n setFocused = _useState4[1];\n\n var selectionPrefixCls = \"\".concat(prefixCls, \"-selection\"); // ===================== Search ======================\n\n var inputValue = open || mode === \"multiple\" && autoClearSearchValue === false || mode === 'tags' ? searchValue : '';\n var inputEditable = mode === 'tags' || mode === \"multiple\" && autoClearSearchValue === false || showSearch && (open || focused); // We measure width and set to the input immediately\n\n useLayoutEffect(function () {\n setInputWidth(measureRef.current.scrollWidth);\n }, [inputValue]); // ===================== Render ======================\n // >>> Render Selector Node. Includes Item & Rest\n\n function defaultRenderSelector(item, content, itemDisabled, closable, onClose) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(\"\".concat(selectionPrefixCls, \"-item\"), _defineProperty({}, \"\".concat(selectionPrefixCls, \"-item-disabled\"), itemDisabled)),\n title: getTitle(item)\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(selectionPrefixCls, \"-item-content\")\n }, content), closable && /*#__PURE__*/React.createElement(TransBtn, {\n className: \"\".concat(selectionPrefixCls, \"-item-remove\"),\n onMouseDown: onPreventMouseDown,\n onClick: onClose,\n customizeIcon: removeIcon\n }, \"\\xD7\"));\n }\n\n function customizeRenderSelector(value, content, itemDisabled, closable, onClose) {\n var onMouseDown = function onMouseDown(e) {\n onPreventMouseDown(e);\n onToggleOpen(!open);\n };\n\n return /*#__PURE__*/React.createElement(\"span\", {\n onMouseDown: onMouseDown\n }, tagRender({\n label: content,\n value: value,\n disabled: itemDisabled,\n closable: closable,\n onClose: onClose\n }));\n }\n\n function renderItem(valueItem) {\n var itemDisabled = valueItem.disabled,\n label = valueItem.label,\n value = valueItem.value;\n var closable = !disabled && !itemDisabled;\n var displayLabel = label;\n\n if (typeof maxTagTextLength === 'number') {\n if (typeof label === 'string' || typeof label === 'number') {\n var strLabel = String(displayLabel);\n\n if (strLabel.length > maxTagTextLength) {\n displayLabel = \"\".concat(strLabel.slice(0, maxTagTextLength), \"...\");\n }\n }\n }\n\n var onClose = function onClose(event) {\n if (event) event.stopPropagation();\n onRemove(valueItem);\n };\n\n return typeof tagRender === 'function' ? customizeRenderSelector(value, displayLabel, itemDisabled, closable, onClose) : defaultRenderSelector(valueItem, displayLabel, itemDisabled, closable, onClose);\n }\n\n function renderRest(omittedValues) {\n var content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;\n return defaultRenderSelector({\n title: content\n }, content, false);\n } // >>> Input Node\n\n\n var inputNode = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(selectionPrefixCls, \"-search\"),\n style: {\n width: inputWidth\n },\n onFocus: function onFocus() {\n setFocused(true);\n },\n onBlur: function onBlur() {\n setFocused(false);\n }\n }, /*#__PURE__*/React.createElement(Input, {\n ref: inputRef,\n open: open,\n prefixCls: prefixCls,\n id: id,\n inputElement: null,\n disabled: disabled,\n autoFocus: autoFocus,\n autoComplete: autoComplete,\n editable: inputEditable,\n activeDescendantId: activeDescendantId,\n value: inputValue,\n onKeyDown: onInputKeyDown,\n onMouseDown: onInputMouseDown,\n onChange: onInputChange,\n onPaste: onInputPaste,\n onCompositionStart: onInputCompositionStart,\n onCompositionEnd: onInputCompositionEnd,\n tabIndex: tabIndex,\n attrs: pickAttrs(props, true)\n }), /*#__PURE__*/React.createElement(\"span\", {\n ref: measureRef,\n className: \"\".concat(selectionPrefixCls, \"-search-mirror\"),\n \"aria-hidden\": true\n }, inputValue, \"\\xA0\")); // >>> Selections\n\n var selectionNode = /*#__PURE__*/React.createElement(Overflow, {\n prefixCls: \"\".concat(selectionPrefixCls, \"-overflow\"),\n data: values,\n renderItem: renderItem,\n renderRest: renderRest,\n suffix: inputNode,\n itemKey: itemKey,\n maxCount: maxTagCount\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, selectionNode, !values.length && !inputValue && /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(selectionPrefixCls, \"-placeholder\")\n }, placeholder));\n};\n\nexport default SelectSelector;"],"names":["itemKey","value","_value$key","key","onPreventMouseDown","event","preventDefault","stopPropagation","props","id","prefixCls","values","open","searchValue","autoClearSearchValue","inputRef","placeholder","disabled","mode","showSearch","autoFocus","autoComplete","activeDescendantId","tabIndex","removeIcon","maxTagCount","maxTagTextLength","_props$maxTagPlacehol","maxTagPlaceholder","omittedValues","concat","length","tagRender","onToggleOpen","onRemove","onInputChange","onInputPaste","onInputKeyDown","onInputMouseDown","onInputCompositionStart","onInputCompositionEnd","measureRef","React","useRef","_useState","useState","_useState2","_slicedToArray","inputWidth","setInputWidth","_useState3","_useState4","focused","setFocused","selectionPrefixCls","inputValue","inputEditable","defaultRenderSelector","item","content","itemDisabled","closable","onClose","createElement","className","classNames","_defineProperty","title","getTitle","TransBtn","onMouseDown","onClick","customizeIcon","useLayoutEffect","current","scrollWidth","inputNode","style","width","onFocus","onBlur","Input","ref","inputElement","editable","onKeyDown","onChange","onPaste","onCompositionStart","onCompositionEnd","attrs","pickAttrs","selectionNode","Overflow","data","renderItem","valueItem","label","displayLabel","strLabel","String","slice","e","customizeRenderSelector","renderRest","suffix","maxCount","Fragment"],"mappings":"isBAYA,SAASA,EAAQC,GACf,IAAIC,EAEJ,OAAoC,QAA5BA,EAAaD,EAAME,WAAgC,I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wB,EAAoB,aACzCwC,KAAMnF,EACNoF,WAzEF,SAAoBC,GAClB,IAAIpC,EAAeoC,EAAU/E,SACzBgF,EAAQD,EAAUC,MAClBhG,EAAQ+F,EAAU/F,MAClB4D,GAAY5C,IAAa2C,EACzBsC,EAAeD,EAEnB,GAAgC,iBAArBvE,IACY,iBAAVuE,GAAuC,iBAAVA,GAAoB,CAC1D,IAAIE,EAAWC,OAAOF,GAElBC,EAASpE,OAASL,IACpBwE,EAAe,GAAGpE,OAAOqE,EAASE,MAAM,EAAG3E,GAAmB,OAEjE,CAGH,IAAIoC,EAAU,SAAiBzD,GACzBA,GAAOA,EAAME,kBACjB2B,EAAS8D,EACf,EAEI,MAA4B,mBAAdhE,EAvChB,SAAiC/B,EAAO0D,EAASC,EAAcC,EAAUC,GAMvE,OAAoBpB,EAAMqB,cAAc,OAAQ,CAC9CO,YANgB,SAAqBgC,GACrClG,EAAmBkG,GACnBrE,GAAcrB,EACpB,GAIOoB,EAAU,CACXiE,MAAOtC,EACP1D,MAAOA,EACPgB,SAAU2C,EACVC,SAAUA,EACVC,QAASA,IAEZ,CAwB0CyC,CAAwBtG,EAAOiG,EAActC,EAAcC,EAAUC,GAAWL,GAAsBuC,EAAWE,EAActC,EAAcC,EAAUC,EACjM,EAmDC0C,WAjDF,SAAoB3E,GAClB,IAAI8B,EAAuC,mBAAtB/B,EAAmCA,EAAkBC,GAAiBD,EAC3F,OAAO6B,GAAsB,CAC3BU,MAAOR,GACNA,GAAS,EACb,EA6CC8C,OAAQ7B,GACR5E,QAASA,EACT0G,SAAUjF,IAEZ,OAAoBiB,EAAMqB,cAAcrB,EAAMiE,SAAU,KAAMf,IAAgBjF,EAAOoB,SAAWwB,GAA2Bb,EAAMqB,cAAc,OAAQ,CACrJC,UAAW,GAAGlC,OAAOwB,EAAoB,iBACxCtC,GACL","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"MultipleSelector.js","sources":["../../../../../node_modules/rc-select/es/Selector/MultipleSelector.js"],"sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport { useState } from 'react';\nimport classNames from 'classnames';\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nimport Overflow from 'rc-overflow';\nimport TransBtn from \"../TransBtn\";\nimport Input from \"./Input\";\nimport useLayoutEffect from \"../hooks/useLayoutEffect\";\nimport { getTitle } from \"../utils/commonUtil\";\n\nfunction itemKey(value) {\n var _value$key;\n\n return (_value$key = value.key) !== null && _value$key !== void 0 ? _value$key : value.value;\n}\n\nvar onPreventMouseDown = function onPreventMouseDown(event) {\n event.preventDefault();\n event.stopPropagation();\n};\n\nvar SelectSelector = function SelectSelector(props) {\n var id = props.id,\n prefixCls = props.prefixCls,\n values = props.values,\n open = props.open,\n searchValue = props.searchValue,\n autoClearSearchValue = props.autoClearSearchValue,\n inputRef = props.inputRef,\n placeholder = props.placeholder,\n disabled = props.disabled,\n mode = props.mode,\n showSearch = props.showSearch,\n autoFocus = props.autoFocus,\n autoComplete = props.autoComplete,\n activeDescendantId = props.activeDescendantId,\n tabIndex = props.tabIndex,\n removeIcon = props.removeIcon,\n maxTagCount = props.maxTagCount,\n maxTagTextLength = props.maxTagTextLength,\n _props$maxTagPlacehol = props.maxTagPlaceholder,\n maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function (omittedValues) {\n return \"+ \".concat(omittedValues.length, \" ...\");\n } : _props$maxTagPlacehol,\n tagRender = props.tagRender,\n onToggleOpen = props.onToggleOpen,\n onRemove = props.onRemove,\n onInputChange = props.onInputChange,\n onInputPaste = props.onInputPaste,\n onInputKeyDown = props.onInputKeyDown,\n onInputMouseDown = props.onInputMouseDown,\n onInputCompositionStart = props.onInputCompositionStart,\n onInputCompositionEnd = props.onInputCompositionEnd;\n var measureRef = React.useRef(null);\n\n var _useState = useState(0),\n _useState2 = _slicedToArray(_useState, 2),\n inputWidth = _useState2[0],\n setInputWidth = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n focused = _useState4[0],\n setFocused = _useState4[1];\n\n var selectionPrefixCls = \"\".concat(prefixCls, \"-selection\"); // ===================== Search ======================\n\n var inputValue = open || mode === \"multiple\" && autoClearSearchValue === false || mode === 'tags' ? searchValue : '';\n var inputEditable = mode === 'tags' || mode === \"multiple\" && autoClearSearchValue === false || showSearch && (open || focused); // We measure width and set to the input immediately\n\n useLayoutEffect(function () {\n setInputWidth(measureRef.current.scrollWidth);\n }, [inputValue]); // ===================== Render ======================\n // >>> Render Selector Node. Includes Item & Rest\n\n function defaultRenderSelector(item, content, itemDisabled, closable, onClose) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(\"\".concat(selectionPrefixCls, \"-item\"), _defineProperty({}, \"\".concat(selectionPrefixCls, \"-item-disabled\"), itemDisabled)),\n title: getTitle(item)\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(selectionPrefixCls, \"-item-content\")\n }, content), closable && /*#__PURE__*/React.createElement(TransBtn, {\n className: \"\".concat(selectionPrefixCls, \"-item-remove\"),\n onMouseDown: onPreventMouseDown,\n onClick: onClose,\n customizeIcon: removeIcon\n }, \"\\xD7\"));\n }\n\n function customizeRenderSelector(value, content, itemDisabled, closable, onClose) {\n var onMouseDown = function onMouseDown(e) {\n onPreventMouseDown(e);\n onToggleOpen(!open);\n };\n\n return /*#__PURE__*/React.createElement(\"span\", {\n onMouseDown: onMouseDown\n }, tagRender({\n label: content,\n value: value,\n disabled: itemDisabled,\n closable: closable,\n onClose: onClose\n }));\n }\n\n function renderItem(valueItem) {\n var itemDisabled = valueItem.disabled,\n label = valueItem.label,\n value = valueItem.value;\n var closable = !disabled && !itemDisabled;\n var displayLabel = label;\n\n if (typeof maxTagTextLength === 'number') {\n if (typeof label === 'string' || typeof label === 'number') {\n var strLabel = String(displayLabel);\n\n if (strLabel.length > maxTagTextLength) {\n displayLabel = \"\".concat(strLabel.slice(0, maxTagTextLength), \"...\");\n }\n }\n }\n\n var onClose = function onClose(event) {\n if (event) event.stopPropagation();\n onRemove(valueItem);\n };\n\n return typeof tagRender === 'function' ? customizeRenderSelector(value, displayLabel, itemDisabled, closable, onClose) : defaultRenderSelector(valueItem, displayLabel, itemDisabled, closable, onClose);\n }\n\n function renderRest(omittedValues) {\n var content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;\n return defaultRenderSelector({\n title: content\n }, content, false);\n } // >>> Input Node\n\n\n var inputNode = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(selectionPrefixCls, \"-search\"),\n style: {\n width: inputWidth\n },\n onFocus: function onFocus() {\n setFocused(true);\n },\n onBlur: function onBlur() {\n setFocused(false);\n }\n }, /*#__PURE__*/React.createElement(Input, {\n ref: inputRef,\n open: open,\n prefixCls: prefixCls,\n id: id,\n inputElement: null,\n disabled: disabled,\n autoFocus: autoFocus,\n autoComplete: autoComplete,\n editable: inputEditable,\n activeDescendantId: activeDescendantId,\n value: inputValue,\n onKeyDown: onInputKeyDown,\n onMouseDown: onInputMouseDown,\n onChange: onInputChange,\n onPaste: onInputPaste,\n onCompositionStart: onInputCompositionStart,\n onCompositionEnd: onInputCompositionEnd,\n tabIndex: tabIndex,\n attrs: pickAttrs(props, true)\n }), /*#__PURE__*/React.createElement(\"span\", {\n ref: measureRef,\n className: \"\".concat(selectionPrefixCls, \"-search-mirror\"),\n \"aria-hidden\": true\n }, inputValue, \"\\xA0\")); // >>> Selections\n\n var selectionNode = /*#__PURE__*/React.createElement(Overflow, {\n prefixCls: \"\".concat(selectionPrefixCls, \"-overflow\"),\n data: values,\n renderItem: renderItem,\n renderRest: renderRest,\n suffix: inputNode,\n itemKey: itemKey,\n maxCount: maxTagCount\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, selectionNode, !values.length && !inputValue && /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(selectionPrefixCls, \"-placeholder\")\n }, placeholder));\n};\n\nexport default SelectSelector;"],"names":["itemKey","value","_value$key","key","onPreventMouseDown","event","preventDefault","stopPropagation","SelectSelector","props","id","prefixCls","values","open","searchValue","autoClearSearchValue","inputRef","placeholder","disabled","mode","showSearch","autoFocus","autoComplete","activeDescendantId","tabIndex","removeIcon","maxTagCount","maxTagTextLength","_props$maxTagPlacehol","maxTagPlaceholder","omittedValues","concat","length","tagRender","onToggleOpen","onRemove","onInputChange","onInputPaste","onInputKeyDown","onInputMouseDown","onInputCompositionStart","onInputCompositionEnd","measureRef","React","useRef","_useState","useState","_useState2","_slicedToArray","inputWidth","setInputWidth","_useState3","_useState4","focused","setFocused","selectionPrefixCls","inputValue","inputEditable","defaultRenderSelector","item","content","itemDisabled","closable","onClose","createElement","className","classNames","_defineProperty","title","getTitle","TransBtn","onMouseDown","onClick","customizeIcon","useLayoutEffect","current","scrollWidth","inputNode","style","width","onFocus","onBlur","Input","ref","inputElement","editable","onKeyDown","onChange","onPaste","onCompositionStart","onCompositionEnd","attrs","pickAttrs","selectionNode","Overflow","data","renderItem","valueItem","label","displayLabel","strLabel","String","slice","e","customizeRenderSelector","renderRest","suffix","maxCount","Fragment"],"mappings":"seAYA,SAASA,EAAQC,GACf,IAAIC,EAEJ,OAAoC,QAA5BA,EAAaD,EAAME,WAAgC,IAAfD,EAAwBA,EAAaD,EAAMA,KACzF,CAEA,IAAIG,EAAqB,SAA4BC,GACnDA,EAAMC,iBACND,EAAME,iBACR,EAEIC,EAAiB,SAAwBC,GAC3C,IAAIC,EAAKD,EAAMC,GACXC,EAAYF,EAAME,UAClBC,EAASH,EAAMG,OACfC,EAAOJ,EAAMI,KACbC,EAAcL,EAAMK,YACpBC,EAAuBN,EAAMM,qBAC7BC,EAAWP,EAAMO,SACjBC,EAAcR,EAAMQ,YACpBC,EAAWT,EAAMS,SACjBC,EAAOV,EAAMU,KACbC,EAAaX,EAAMW,WACnBC,EAAYZ,EAAMY,UAClBC,EAAeb,EAAMa,aACr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AA4B,mBAAdhE,EAvChB,SAAiChC,EAAO2D,EAASC,EAAcC,EAAUC,GAMvE,OAAoBpB,EAAMqB,cAAc,OAAQ,CAC9CO,YANgB,SAAqBgC,GACrCnG,EAAmBmG,GACnBrE,GAAcrB,EACpB,GAIOoB,EAAU,CACXiE,MAAOtC,EACP3D,MAAOA,EACPiB,SAAU2C,EACVC,SAAUA,EACVC,QAASA,IAEZ,CAwB0CyC,CAAwBvG,EAAOkG,EAActC,EAAcC,EAAUC,GAAWL,GAAsBuC,EAAWE,EAActC,EAAcC,EAAUC,EACjM,EAmDC0C,WAjDF,SAAoB3E,GAClB,IAAI8B,EAAuC,mBAAtB/B,EAAmCA,EAAkBC,GAAiBD,EAC3F,OAAO6B,GAAsB,CAC3BU,MAAOR,GACNA,GAAS,EACb,EA6CC8C,OAAQ7B,GACR7E,QAASA,EACT2G,SAAUjF,IAEZ,OAAoBiB,EAAMqB,cAAcrB,EAAMiE,SAAU,KAAMf,IAAgBjF,EAAOoB,SAAWwB,GAA2Bb,EAAMqB,cAAc,OAAQ,CACrJC,UAAW,GAAGlC,OAAOwB,EAAoB,iBACxCtC,GACL","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/slicedToArray.js";import*as t from"react";import n from"../../../rc-util/es/pickAttrs.js";import o from"./Input.js";import{getTitle as a}from"../utils/commonUtil.js";var i=function(i){var s=i.inputElement,r=i.prefixCls,l=i.id,c=i.inputRef,m=i.disabled,u=i.autoFocus,p=i.autoComplete,d=i.activeDescendantId,f=i.mode,b=i.open,h=i.values,v=i.placeholder,I=i.tabIndex,C=i.showSearch,E=i.searchValue,x=i.activeValue,D=i.maxLength,g=i.onInputKeyDown,w=i.onInputMouseDown,y=i.onInputChange,j=i.onInputPaste,S=i.onInputCompositionStart,F=i.onInputCompositionEnd,N=t.useState(!1),A=e(N,2),K=A[0],L=A[1],M="combobox"===f,P=M||C,V=h[0],k=E||"";M&&x&&!K&&(k=x),t.useEffect((function(){M&&L(!1)}),[M,x]);var R=!("combobox"!==f&&!b&&!C)&&!!k,T=a(V);return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(r,"-selection-search")},t.createElement(o,{ref:c,prefixCls:r,id:l,open:b,inputElement:s,disabled:m,autoFocus:u,autoComplete:p,editable:P,activeDescendantId:d,value:k,onKeyDown:g,onMouseDown:w,onChange:function(e){L(!0),y(e)},onPaste:j,onCompositionStart:S,onCompositionEnd:F,tabIndex:I,attrs:n(i,!0),maxLength:M?D:void 0})),!M&&V&&!R&&t.createElement("span",{className:"".concat(r,"-selection-item"),title:T},V.label),function(){if(V)return null;var e=R?{visibility:"hidden"}:void 0;return t.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:e},v)}())};export{i as default};
|
|
2
2
|
//# sourceMappingURL=SingleSelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleSelector.js","sources":["../../../../../node_modules/rc-select/es/Selector/SingleSelector.js"],"sourcesContent":["import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nimport Input from \"./Input\";\nimport { getTitle } from \"../utils/commonUtil\";\n\nvar SingleSelector = function SingleSelector(props) {\n var inputElement = props.inputElement,\n prefixCls = props.prefixCls,\n id = props.id,\n inputRef = props.inputRef,\n disabled = props.disabled,\n autoFocus = props.autoFocus,\n autoComplete = props.autoComplete,\n activeDescendantId = props.activeDescendantId,\n mode = props.mode,\n open = props.open,\n values = props.values,\n placeholder = props.placeholder,\n tabIndex = props.tabIndex,\n showSearch = props.showSearch,\n searchValue = props.searchValue,\n activeValue = props.activeValue,\n maxLength = props.maxLength,\n onInputKeyDown = props.onInputKeyDown,\n onInputMouseDown = props.onInputMouseDown,\n onInputChange = props.onInputChange,\n onInputPaste = props.onInputPaste,\n onInputCompositionStart = props.onInputCompositionStart,\n onInputCompositionEnd = props.onInputCompositionEnd;\n\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n inputChanged = _React$useState2[0],\n setInputChanged = _React$useState2[1];\n\n var combobox = mode === 'combobox';\n var inputEditable = combobox || showSearch;\n var item = values[0];\n var inputValue = searchValue || '';\n\n if (combobox && activeValue && !inputChanged) {\n inputValue = activeValue;\n }\n\n React.useEffect(function () {\n if (combobox) {\n setInputChanged(false);\n }\n }, [combobox, activeValue]); // Not show text when closed expect combobox mode\n\n var hasTextInput = mode !== 'combobox' && !open && !showSearch ? false : !!inputValue; // Get title\n\n var title = getTitle(item);\n\n var renderPlaceholder = function renderPlaceholder() {\n if (item) {\n return null;\n }\n\n var hiddenStyle = hasTextInput ? {\n visibility: 'hidden'\n } : undefined;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection-placeholder\"),\n style: hiddenStyle\n }, placeholder);\n };\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection-search\")\n }, /*#__PURE__*/React.createElement(Input, {\n ref: inputRef,\n prefixCls: prefixCls,\n id: id,\n open: open,\n inputElement: inputElement,\n disabled: disabled,\n autoFocus: autoFocus,\n autoComplete: autoComplete,\n editable: inputEditable,\n activeDescendantId: activeDescendantId,\n value: inputValue,\n onKeyDown: onInputKeyDown,\n onMouseDown: onInputMouseDown,\n onChange: function onChange(e) {\n setInputChanged(true);\n onInputChange(e);\n },\n onPaste: onInputPaste,\n onCompositionStart: onInputCompositionStart,\n onCompositionEnd: onInputCompositionEnd,\n tabIndex: tabIndex,\n attrs: pickAttrs(props, true),\n maxLength: combobox ? maxLength : undefined\n })), !combobox && item && !hasTextInput && /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection-item\"),\n title: title\n }, item.label), renderPlaceholder());\n};\n\nexport default SingleSelector;"],"names":["props","inputElement","prefixCls","id","inputRef","disabled","autoFocus","autoComplete","activeDescendantId","mode","open","values","placeholder","tabIndex","showSearch","searchValue","activeValue","maxLength","onInputKeyDown","onInputMouseDown","onInputChange","onInputPaste","onInputCompositionStart","onInputCompositionEnd","_React$useState","React","useState","_React$useState2","_slicedToArray","inputChanged","setInputChanged","combobox","inputEditable","item","inputValue","useEffect","hasTextInput","title","getTitle","createElement","Fragment","className","concat","Input","ref","editable","value","onKeyDown","onMouseDown","onChange","e","onPaste","onCompositionStart","onCompositionEnd","attrs","pickAttrs","undefined","label","hiddenStyle","visibility","style","renderPlaceholder"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SingleSelector.js","sources":["../../../../../node_modules/rc-select/es/Selector/SingleSelector.js"],"sourcesContent":["import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nimport Input from \"./Input\";\nimport { getTitle } from \"../utils/commonUtil\";\n\nvar SingleSelector = function SingleSelector(props) {\n var inputElement = props.inputElement,\n prefixCls = props.prefixCls,\n id = props.id,\n inputRef = props.inputRef,\n disabled = props.disabled,\n autoFocus = props.autoFocus,\n autoComplete = props.autoComplete,\n activeDescendantId = props.activeDescendantId,\n mode = props.mode,\n open = props.open,\n values = props.values,\n placeholder = props.placeholder,\n tabIndex = props.tabIndex,\n showSearch = props.showSearch,\n searchValue = props.searchValue,\n activeValue = props.activeValue,\n maxLength = props.maxLength,\n onInputKeyDown = props.onInputKeyDown,\n onInputMouseDown = props.onInputMouseDown,\n onInputChange = props.onInputChange,\n onInputPaste = props.onInputPaste,\n onInputCompositionStart = props.onInputCompositionStart,\n onInputCompositionEnd = props.onInputCompositionEnd;\n\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n inputChanged = _React$useState2[0],\n setInputChanged = _React$useState2[1];\n\n var combobox = mode === 'combobox';\n var inputEditable = combobox || showSearch;\n var item = values[0];\n var inputValue = searchValue || '';\n\n if (combobox && activeValue && !inputChanged) {\n inputValue = activeValue;\n }\n\n React.useEffect(function () {\n if (combobox) {\n setInputChanged(false);\n }\n }, [combobox, activeValue]); // Not show text when closed expect combobox mode\n\n var hasTextInput = mode !== 'combobox' && !open && !showSearch ? false : !!inputValue; // Get title\n\n var title = getTitle(item);\n\n var renderPlaceholder = function renderPlaceholder() {\n if (item) {\n return null;\n }\n\n var hiddenStyle = hasTextInput ? {\n visibility: 'hidden'\n } : undefined;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection-placeholder\"),\n style: hiddenStyle\n }, placeholder);\n };\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection-search\")\n }, /*#__PURE__*/React.createElement(Input, {\n ref: inputRef,\n prefixCls: prefixCls,\n id: id,\n open: open,\n inputElement: inputElement,\n disabled: disabled,\n autoFocus: autoFocus,\n autoComplete: autoComplete,\n editable: inputEditable,\n activeDescendantId: activeDescendantId,\n value: inputValue,\n onKeyDown: onInputKeyDown,\n onMouseDown: onInputMouseDown,\n onChange: function onChange(e) {\n setInputChanged(true);\n onInputChange(e);\n },\n onPaste: onInputPaste,\n onCompositionStart: onInputCompositionStart,\n onCompositionEnd: onInputCompositionEnd,\n tabIndex: tabIndex,\n attrs: pickAttrs(props, true),\n maxLength: combobox ? maxLength : undefined\n })), !combobox && item && !hasTextInput && /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-selection-item\"),\n title: title\n }, item.label), renderPlaceholder());\n};\n\nexport default SingleSelector;"],"names":["SingleSelector","props","inputElement","prefixCls","id","inputRef","disabled","autoFocus","autoComplete","activeDescendantId","mode","open","values","placeholder","tabIndex","showSearch","searchValue","activeValue","maxLength","onInputKeyDown","onInputMouseDown","onInputChange","onInputPaste","onInputCompositionStart","onInputCompositionEnd","_React$useState","React","useState","_React$useState2","_slicedToArray","inputChanged","setInputChanged","combobox","inputEditable","item","inputValue","useEffect","hasTextInput","title","getTitle","createElement","Fragment","className","concat","Input","ref","editable","value","onKeyDown","onMouseDown","onChange","e","onPaste","onCompositionStart","onCompositionEnd","attrs","pickAttrs","undefined","label","hiddenStyle","visibility","style","renderPlaceholder"],"mappings":"wNAMG,IAACA,EAAiB,SAAwBC,GAC3C,IAAIC,EAAeD,EAAMC,aACrBC,EAAYF,EAAME,UAClBC,EAAKH,EAAMG,GACXC,EAAWJ,EAAMI,SACjBC,EAAWL,EAAMK,SACjBC,EAAYN,EAAMM,UAClBC,EAAeP,EAAMO,aACrBC,EAAqBR,EAAMQ,mBAC3BC,EAAOT,EAAMS,KACbC,EAAOV,EAAMU,KACbC,EAASX,EAAMW,OACfC,EAAcZ,EAAMY,YACpBC,EAAWb,EAAMa,SACjBC,EAAad,EAAMc,WACnBC,EAAcf,EAAMe,YACpBC,EAAchB,EAAMgB,YACpBC,EAAYjB,EAAMiB,UAClBC,EAAiBlB,EAAMkB,eACvBC,EAAmBnB,EAAMmB,iBACzBC,EAAgBpB,EAAMoB,cACtBC,EAAerB,EAAMqB,aACrBC,EAA0BtB,EAAMsB,wBAChCC,EAAwBvB,EAAMuB,sBAE9BC,EAAkBC,EAAMC,UAAS,GACjCC,EAAmBC,EAAeJ,EAAiB,GACnDK,EAAeF,EAAiB,GAChCG,EAAkBH,EAAiB,GAEnCI,EAAoB,aAATtB,EACXuB,EAAgBD,GAAYjB,EAC5BmB,EAAOtB,EAAO,GACduB,EAAanB,GAAe,GAE5BgB,GAAYf,IAAgBa,IAC9BK,EAAalB,GAGfS,EAAMU,WAAU,WACVJ,GACFD,GAAgB,EAEtB,GAAK,CAACC,EAAUf,IAEd,IAAIoB,IAAwB,aAAT3B,IAAwBC,IAASI,MAAuBoB,EAEvEG,EAAQC,EAASL,GAgBrB,OAAoBR,EAAMc,cAAcd,EAAMe,SAAU,KAAmBf,EAAMc,cAAc,OAAQ,CACrGE,UAAW,GAAGC,OAAOxC,EAAW,sBAClBuB,EAAMc,cAAcI,EAAO,CACzCC,IAAKxC,EACLF,UAAWA,EACXC,GAAIA,EACJO,KAAMA,EACNT,aAAcA,EACdI,SAAUA,EACVC,UAAWA,EACXC,aAAcA,EACdsC,SAAUb,EACVxB,mBAAoBA,EACpBsC,MAAOZ,EACPa,UAAW7B,EACX8B,YAAa7B,EACb8B,SAAU,SAAkBC,GAC1BpB,GAAgB,GAChBV,EAAc8B,EACf,EACDC,QAAS9B,EACT+B,mBAAoB9B,EACpB+B,iBAAkB9B,EAClBV,SAAUA,EACVyC,MAAOC,EAAUvD,GAAO,GACxBiB,UAAWc,EAAWd,OAAYuC,MAC9BzB,GAAYE,IAASG,GAA6BX,EAAMc,cAAc,OAAQ,CAClFE,UAAW,GAAGC,OAAOxC,EAAW,mBAChCmC,MAAOA,GACNJ,EAAKwB,OA3CgB,WACtB,GAAIxB,EACF,OAAO,KAGT,IAAIyB,EAActB,EAAe,CAC/BuB,WAAY,eACVH,EACJ,OAAoB/B,EAAMc,cAAc,OAAQ,CAC9CE,UAAW,GAAGC,OAAOxC,EAAW,0BAChC0D,MAAOF,GACN9C,EACP,CA+BkBiD,GAClB","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.js";import t from"../../../@babel/runtime/helpers/esm/slicedToArray.js";import*as r from"react";import{useRef as n}from"react";import o from"../../../rc-util/es/KeyCode.js";import u from"./MultipleSelector.js";import c from"./SingleSelector.js";import a from"../hooks/useLock.js";import{isValidateOpenKey as i}from"../utils/keyUtil.js";var l=function(l,s){var m=n(null),f=n(!1),p=l.prefixCls,v=l.open,b=l.mode,d=l.showSearch,g=l.tokenWithEnter,h=l.autoClearSearchValue,S=l.onSearch,D=l.onSearchSubmit,y=l.onToggleOpen,I=l.onInputKeyDown,j=l.domRef;r.useImperativeHandle(s,(function(){return{focus:function(){m.current.focus()},blur:function(){m.current.blur()}}}));var w=a(0),x=t(w,2),C=x[0],E=x[1],k=n(null),T=function(e){!1!==S(e,!0,f.current)&&y(!0)},N={inputRef:m,onInputKeyDown:function(e){var t=e.which;t!==o.UP&&t!==o.DOWN||e.preventDefault(),I&&I(e),t!==o.ENTER||"tags"!==b||f.current||v||null==D||D(e.target.value),i(t)&&y(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var t=e.target.value;if(g&&k.current&&/[\r\n]/.test(k.current)){var r=k.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(r,k.current)}k.current=null,T(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");k.current=t},onInputCompositionStart:function(){f.current=!0},onInputCompositionEnd:function(e){f.current=!1,"combobox"!==b&&T(e.target.value)}},R="multiple"===b||"tags"===b?r.createElement(u,e({},l,N)):r.createElement(c,e({},l,N));return r.createElement("div",{ref:j,className:"".concat(p,"-selector"),onClick:function(e){e.target!==m.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){m.current.focus()})):m.current.focus())},onMouseDown:function(e){var t=C();e.target===m.current||t||"combobox"===b||e.preventDefault(),("combobox"===b||d&&t)&&v||(v&&!1!==h&&S("",!0,!1),y())}},R)},s=r.forwardRef(l);s.displayName="Selector";export{s as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/rc-select/es/Selector/index.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\n\n/**\n * Cursor rule:\n * 1. Only `showSearch` enabled\n * 2. Only `open` is `true`\n * 3. When typing, set `open` to `true` which hit rule of 2\n *\n * Accessibility:\n * - https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html\n */\nimport * as React from 'react';\nimport { useRef } from 'react';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport MultipleSelector from \"./MultipleSelector\";\nimport SingleSelector from \"./SingleSelector\";\nimport useLock from \"../hooks/useLock\";\nimport { isValidateOpenKey } from \"../utils/keyUtil\";\n\nvar Selector = function Selector(props, ref) {\n var inputRef = useRef(null);\n var compositionStatusRef = useRef(false);\n var prefixCls = props.prefixCls,\n open = props.open,\n mode = props.mode,\n showSearch = props.showSearch,\n tokenWithEnter = props.tokenWithEnter,\n autoClearSearchValue = props.autoClearSearchValue,\n onSearch = props.onSearch,\n onSearchSubmit = props.onSearchSubmit,\n onToggleOpen = props.onToggleOpen,\n onInputKeyDown = props.onInputKeyDown,\n domRef = props.domRef; // ======================= Ref =======================\n\n React.useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n inputRef.current.focus();\n },\n blur: function blur() {\n inputRef.current.blur();\n }\n };\n }); // ====================== Input ======================\n\n var _useLock = useLock(0),\n _useLock2 = _slicedToArray(_useLock, 2),\n getInputMouseDown = _useLock2[0],\n setInputMouseDown = _useLock2[1];\n\n var onInternalInputKeyDown = function onInternalInputKeyDown(event) {\n var which = event.which;\n\n if (which === KeyCode.UP || which === KeyCode.DOWN) {\n event.preventDefault();\n }\n\n if (onInputKeyDown) {\n onInputKeyDown(event);\n }\n\n if (which === KeyCode.ENTER && mode === 'tags' && !compositionStatusRef.current && !open) {\n // When menu isn't open, OptionList won't trigger a value change\n // So when enter is pressed, the tag's input value should be emitted here to let selector know\n onSearchSubmit === null || onSearchSubmit === void 0 ? void 0 : onSearchSubmit(event.target.value);\n }\n\n if (isValidateOpenKey(which)) {\n onToggleOpen(true);\n }\n };\n /**\n * We can not use `findDOMNode` sine it will get warning,\n * have to use timer to check if is input element.\n */\n\n\n var onInternalInputMouseDown = function onInternalInputMouseDown() {\n setInputMouseDown(true);\n }; // When paste come, ignore next onChange\n\n\n var pastedTextRef = useRef(null);\n\n var triggerOnSearch = function triggerOnSearch(value) {\n if (onSearch(value, true, compositionStatusRef.current) !== false) {\n onToggleOpen(true);\n }\n };\n\n var onInputCompositionStart = function onInputCompositionStart() {\n compositionStatusRef.current = true;\n };\n\n var onInputCompositionEnd = function onInputCompositionEnd(e) {\n compositionStatusRef.current = false; // Trigger search again to support `tokenSeparators` with typewriting\n\n if (mode !== 'combobox') {\n triggerOnSearch(e.target.value);\n }\n };\n\n var onInputChange = function onInputChange(event) {\n var value = event.target.value; // Pasted text should replace back to origin content\n\n if (tokenWithEnter && pastedTextRef.current && /[\\r\\n]/.test(pastedTextRef.current)) {\n // CRLF will be treated as a single space for input element\n var replacedText = pastedTextRef.current.replace(/[\\r\\n]+$/, '').replace(/\\r\\n/g, ' ').replace(/[\\r\\n]/g, ' ');\n value = value.replace(replacedText, pastedTextRef.current);\n }\n\n pastedTextRef.current = null;\n triggerOnSearch(value);\n };\n\n var onInputPaste = function onInputPaste(e) {\n var clipboardData = e.clipboardData;\n var value = clipboardData.getData('text');\n pastedTextRef.current = value;\n };\n\n var onClick = function onClick(_ref) {\n var target = _ref.target;\n\n if (target !== inputRef.current) {\n // Should focus input if click the selector\n var isIE = document.body.style.msTouchAction !== undefined;\n\n if (isIE) {\n setTimeout(function () {\n inputRef.current.focus();\n });\n } else {\n inputRef.current.focus();\n }\n }\n };\n\n var onMouseDown = function onMouseDown(event) {\n var inputMouseDown = getInputMouseDown(); // when mode is combobox, don't prevent default behavior\n // https://github.com/ant-design/ant-design/issues/37320\n\n if (event.target !== inputRef.current && !inputMouseDown && mode !== 'combobox') {\n event.preventDefault();\n }\n\n if (mode !== 'combobox' && (!showSearch || !inputMouseDown) || !open) {\n if (open && autoClearSearchValue !== false) {\n onSearch('', true, false);\n }\n\n onToggleOpen();\n }\n }; // ================= Inner Selector ==================\n\n\n var sharedProps = {\n inputRef: inputRef,\n onInputKeyDown: onInternalInputKeyDown,\n onInputMouseDown: onInternalInputMouseDown,\n onInputChange: onInputChange,\n onInputPaste: onInputPaste,\n onInputCompositionStart: onInputCompositionStart,\n onInputCompositionEnd: onInputCompositionEnd\n };\n var selectNode = mode === 'multiple' || mode === 'tags' ? /*#__PURE__*/React.createElement(MultipleSelector, _extends({}, props, sharedProps)) : /*#__PURE__*/React.createElement(SingleSelector, _extends({}, props, sharedProps));\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: domRef,\n className: \"\".concat(prefixCls, \"-selector\"),\n onClick: onClick,\n onMouseDown: onMouseDown\n }, selectNode);\n};\n\nvar ForwardSelector = /*#__PURE__*/React.forwardRef(Selector);\nForwardSelector.displayName = 'Selector';\nexport default ForwardSelector;"],"names":["Selector","props","ref","inputRef","useRef","compositionStatusRef","prefixCls","open","mode","showSearch","tokenWithEnter","autoClearSearchValue","onSearch","onSearchSubmit","onToggleOpen","onInputKeyDown","domRef","React","useImperativeHandle","focus","current","blur","_useLock","useLock","_useLock2","_slicedToArray","getInputMouseDown","setInputMouseDown","pastedTextRef","triggerOnSearch","value","sharedProps","event","which","KeyCode","UP","DOWN","preventDefault","ENTER","target","isValidateOpenKey","onInputMouseDown","onInputChange","test","replacedText","replace","onInputPaste","e","clipboardData","getData","onInputCompositionStart","onInputCompositionEnd","selectNode","createElement","MultipleSelector","_extends","SingleSelector","className","concat","onClick","_ref","undefined","document","body","style","msTouchAction","setTimeout","onMouseDown","inputMouseDown","ForwardSelector","forwardRef","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/rc-select/es/Selector/index.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\n\n/**\n * Cursor rule:\n * 1. Only `showSearch` enabled\n * 2. Only `open` is `true`\n * 3. When typing, set `open` to `true` which hit rule of 2\n *\n * Accessibility:\n * - https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html\n */\nimport * as React from 'react';\nimport { useRef } from 'react';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport MultipleSelector from \"./MultipleSelector\";\nimport SingleSelector from \"./SingleSelector\";\nimport useLock from \"../hooks/useLock\";\nimport { isValidateOpenKey } from \"../utils/keyUtil\";\n\nvar Selector = function Selector(props, ref) {\n var inputRef = useRef(null);\n var compositionStatusRef = useRef(false);\n var prefixCls = props.prefixCls,\n open = props.open,\n mode = props.mode,\n showSearch = props.showSearch,\n tokenWithEnter = props.tokenWithEnter,\n autoClearSearchValue = props.autoClearSearchValue,\n onSearch = props.onSearch,\n onSearchSubmit = props.onSearchSubmit,\n onToggleOpen = props.onToggleOpen,\n onInputKeyDown = props.onInputKeyDown,\n domRef = props.domRef; // ======================= Ref =======================\n\n React.useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n inputRef.current.focus();\n },\n blur: function blur() {\n inputRef.current.blur();\n }\n };\n }); // ====================== Input ======================\n\n var _useLock = useLock(0),\n _useLock2 = _slicedToArray(_useLock, 2),\n getInputMouseDown = _useLock2[0],\n setInputMouseDown = _useLock2[1];\n\n var onInternalInputKeyDown = function onInternalInputKeyDown(event) {\n var which = event.which;\n\n if (which === KeyCode.UP || which === KeyCode.DOWN) {\n event.preventDefault();\n }\n\n if (onInputKeyDown) {\n onInputKeyDown(event);\n }\n\n if (which === KeyCode.ENTER && mode === 'tags' && !compositionStatusRef.current && !open) {\n // When menu isn't open, OptionList won't trigger a value change\n // So when enter is pressed, the tag's input value should be emitted here to let selector know\n onSearchSubmit === null || onSearchSubmit === void 0 ? void 0 : onSearchSubmit(event.target.value);\n }\n\n if (isValidateOpenKey(which)) {\n onToggleOpen(true);\n }\n };\n /**\n * We can not use `findDOMNode` sine it will get warning,\n * have to use timer to check if is input element.\n */\n\n\n var onInternalInputMouseDown = function onInternalInputMouseDown() {\n setInputMouseDown(true);\n }; // When paste come, ignore next onChange\n\n\n var pastedTextRef = useRef(null);\n\n var triggerOnSearch = function triggerOnSearch(value) {\n if (onSearch(value, true, compositionStatusRef.current) !== false) {\n onToggleOpen(true);\n }\n };\n\n var onInputCompositionStart = function onInputCompositionStart() {\n compositionStatusRef.current = true;\n };\n\n var onInputCompositionEnd = function onInputCompositionEnd(e) {\n compositionStatusRef.current = false; // Trigger search again to support `tokenSeparators` with typewriting\n\n if (mode !== 'combobox') {\n triggerOnSearch(e.target.value);\n }\n };\n\n var onInputChange = function onInputChange(event) {\n var value = event.target.value; // Pasted text should replace back to origin content\n\n if (tokenWithEnter && pastedTextRef.current && /[\\r\\n]/.test(pastedTextRef.current)) {\n // CRLF will be treated as a single space for input element\n var replacedText = pastedTextRef.current.replace(/[\\r\\n]+$/, '').replace(/\\r\\n/g, ' ').replace(/[\\r\\n]/g, ' ');\n value = value.replace(replacedText, pastedTextRef.current);\n }\n\n pastedTextRef.current = null;\n triggerOnSearch(value);\n };\n\n var onInputPaste = function onInputPaste(e) {\n var clipboardData = e.clipboardData;\n var value = clipboardData.getData('text');\n pastedTextRef.current = value;\n };\n\n var onClick = function onClick(_ref) {\n var target = _ref.target;\n\n if (target !== inputRef.current) {\n // Should focus input if click the selector\n var isIE = document.body.style.msTouchAction !== undefined;\n\n if (isIE) {\n setTimeout(function () {\n inputRef.current.focus();\n });\n } else {\n inputRef.current.focus();\n }\n }\n };\n\n var onMouseDown = function onMouseDown(event) {\n var inputMouseDown = getInputMouseDown(); // when mode is combobox, don't prevent default behavior\n // https://github.com/ant-design/ant-design/issues/37320\n\n if (event.target !== inputRef.current && !inputMouseDown && mode !== 'combobox') {\n event.preventDefault();\n }\n\n if (mode !== 'combobox' && (!showSearch || !inputMouseDown) || !open) {\n if (open && autoClearSearchValue !== false) {\n onSearch('', true, false);\n }\n\n onToggleOpen();\n }\n }; // ================= Inner Selector ==================\n\n\n var sharedProps = {\n inputRef: inputRef,\n onInputKeyDown: onInternalInputKeyDown,\n onInputMouseDown: onInternalInputMouseDown,\n onInputChange: onInputChange,\n onInputPaste: onInputPaste,\n onInputCompositionStart: onInputCompositionStart,\n onInputCompositionEnd: onInputCompositionEnd\n };\n var selectNode = mode === 'multiple' || mode === 'tags' ? /*#__PURE__*/React.createElement(MultipleSelector, _extends({}, props, sharedProps)) : /*#__PURE__*/React.createElement(SingleSelector, _extends({}, props, sharedProps));\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: domRef,\n className: \"\".concat(prefixCls, \"-selector\"),\n onClick: onClick,\n onMouseDown: onMouseDown\n }, selectNode);\n};\n\nvar ForwardSelector = /*#__PURE__*/React.forwardRef(Selector);\nForwardSelector.displayName = 'Selector';\nexport default ForwardSelector;"],"names":["Selector","props","ref","inputRef","useRef","compositionStatusRef","prefixCls","open","mode","showSearch","tokenWithEnter","autoClearSearchValue","onSearch","onSearchSubmit","onToggleOpen","onInputKeyDown","domRef","React","useImperativeHandle","focus","current","blur","_useLock","useLock","_useLock2","_slicedToArray","getInputMouseDown","setInputMouseDown","pastedTextRef","triggerOnSearch","value","sharedProps","event","which","KeyCode","UP","DOWN","preventDefault","ENTER","target","isValidateOpenKey","onInputMouseDown","onInputChange","test","replacedText","replace","onInputPaste","e","clipboardData","getData","onInputCompositionStart","onInputCompositionEnd","selectNode","createElement","MultipleSelector","_extends","SingleSelector","className","concat","onClick","_ref","undefined","document","body","style","msTouchAction","setTimeout","onMouseDown","inputMouseDown","ForwardSelector","forwardRef","displayName"],"mappings":"0YAoBA,IAAIA,EAAW,SAAkBC,EAAOC,GACtC,IAAIC,EAAWC,EAAO,MAClBC,EAAuBD,GAAO,GAC9BE,EAAYL,EAAMK,UAClBC,EAAON,EAAMM,KACbC,EAAOP,EAAMO,KACbC,EAAaR,EAAMQ,WACnBC,EAAiBT,EAAMS,eACvBC,EAAuBV,EAAMU,qBAC7BC,EAAWX,EAAMW,SACjBC,EAAiBZ,EAAMY,eACvBC,EAAeb,EAAMa,aACrBC,EAAiBd,EAAMc,eACvBC,EAASf,EAAMe,OAEnBC,EAAMC,oBAAoBhB,GAAK,WAC7B,MAAO,CACLiB,MAAO,WACLhB,EAASiB,QAAQD,OAClB,EACDE,KAAM,WACJlB,EAASiB,QAAQC,MAClB,EAEP,IAEE,IAAIC,EAAWC,EAAQ,GACnBC,EAAYC,EAAeH,EAAU,GACrCI,EAAoBF,EAAU,GAC9BG,EAAoBH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D,IAAKc,EACLyC,UAAW,GAAGC,OAAOpD,EAAW,aAChCqD,QAhDY,SAAiBC,GAChBA,EAAKrB,SAEHpC,EAASiB,eAE2ByC,IAAtCC,SAASC,KAAKC,MAAMC,cAG7BC,YAAW,WACT/D,EAASiB,QAAQD,OAC3B,IAEQhB,EAASiB,QAAQD,QAGzB,EAkCIgD,YAhCgB,SAAqBnC,GACrC,IAAIoC,EAAiB1C,IAGjBM,EAAMO,SAAWpC,EAASiB,SAAYgD,GAA2B,aAAT5D,GAC1DwB,EAAMK,kBAGK,aAAT7B,GAAyBC,GAAe2D,IAAoB7D,IAC1DA,IAAiC,IAAzBI,GACVC,EAAS,IAAI,GAAM,GAGrBE,IAEN,GAkBKsC,EACL,EAEIiB,EAA+BpD,EAAMqD,WAAWtE,GACpDqE,EAAgBE,YAAc","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import*as e from"react";import n from"../../classnames/index.js";var o=function(o){var t,s=o.className,a=o.customizeIcon,c=o.customizeIconProps,r=o.onMouseDown,i=o.onClick,l=o.children;return t="function"==typeof a?a(c):a,e.createElement("span",{className:s,onMouseDown:function(e){e.preventDefault(),r&&r(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:e.createElement("span",{className:n(s.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},l))};export{o as default};
|
|
2
2
|
//# sourceMappingURL=TransBtn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransBtn.js","sources":["../../../../node_modules/rc-select/es/TransBtn.js"],"sourcesContent":["import * as React from 'react';\nimport classNames from 'classnames';\n\nvar TransBtn = function TransBtn(_ref) {\n var className = _ref.className,\n customizeIcon = _ref.customizeIcon,\n customizeIconProps = _ref.customizeIconProps,\n _onMouseDown = _ref.onMouseDown,\n onClick = _ref.onClick,\n children = _ref.children;\n var icon;\n\n if (typeof customizeIcon === 'function') {\n icon = customizeIcon(customizeIconProps);\n } else {\n icon = customizeIcon;\n }\n\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className,\n onMouseDown: function onMouseDown(event) {\n event.preventDefault();\n\n if (_onMouseDown) {\n _onMouseDown(event);\n }\n },\n style: {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n },\n unselectable: \"on\",\n onClick: onClick,\n \"aria-hidden\": true\n }, icon !== undefined ? icon : /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(className.split(/\\s+/).map(function (cls) {\n return \"\".concat(cls, \"-icon\");\n }))\n }, children));\n};\n\nexport default TransBtn;"],"names":["_ref","icon","className","customizeIcon","customizeIconProps","_onMouseDown","onMouseDown","onClick","children","React","createElement","event","preventDefault","style","userSelect","WebkitUserSelect","unselectable","undefined","classNames","split","map","cls","concat"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransBtn.js","sources":["../../../../node_modules/rc-select/es/TransBtn.js"],"sourcesContent":["import * as React from 'react';\nimport classNames from 'classnames';\n\nvar TransBtn = function TransBtn(_ref) {\n var className = _ref.className,\n customizeIcon = _ref.customizeIcon,\n customizeIconProps = _ref.customizeIconProps,\n _onMouseDown = _ref.onMouseDown,\n onClick = _ref.onClick,\n children = _ref.children;\n var icon;\n\n if (typeof customizeIcon === 'function') {\n icon = customizeIcon(customizeIconProps);\n } else {\n icon = customizeIcon;\n }\n\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className,\n onMouseDown: function onMouseDown(event) {\n event.preventDefault();\n\n if (_onMouseDown) {\n _onMouseDown(event);\n }\n },\n style: {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n },\n unselectable: \"on\",\n onClick: onClick,\n \"aria-hidden\": true\n }, icon !== undefined ? icon : /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(className.split(/\\s+/).map(function (cls) {\n return \"\".concat(cls, \"-icon\");\n }))\n }, children));\n};\n\nexport default TransBtn;"],"names":["TransBtn","_ref","icon","className","customizeIcon","customizeIconProps","_onMouseDown","onMouseDown","onClick","children","React","createElement","event","preventDefault","style","userSelect","WebkitUserSelect","unselectable","undefined","classNames","split","map","cls","concat"],"mappings":"iEAGG,IAACA,EAAW,SAAkBC,GAC/B,IAMIC,EANAC,EAAYF,EAAKE,UACjBC,EAAgBH,EAAKG,cACrBC,EAAqBJ,EAAKI,mBAC1BC,EAAeL,EAAKM,YACpBC,EAAUP,EAAKO,QACfC,EAAWR,EAAKQ,SASpB,OALEP,EAD2B,mBAAlBE,EACFA,EAAcC,GAEdD,EAGWM,EAAMC,cAAc,OAAQ,CAC9CR,UAAWA,EACXI,YAAa,SAAqBK,GAChCA,EAAMC,iBAEFP,GACFA,EAAaM,EAEhB,EACDE,MAAO,CACLC,WAAY,OACZC,iBAAkB,QAEpBC,aAAc,KACdT,QAASA,EACT,eAAe,QACLU,IAAThB,EAAqBA,EAAoBQ,EAAMC,cAAc,OAAQ,CACtER,UAAWgB,EAAWhB,EAAUiB,MAAM,OAAOC,KAAI,SAAUC,GACzD,MAAO,GAAGC,OAAOD,EAAK,QAC5B,MACKb,GACL","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import*as t from"react";var e=t.createContext(null);function r(){return t.useContext(e)}export{e as BaseSelectContext,r as default};
|
|
2
2
|
//# sourceMappingURL=useBaseProps.js.map
|