@unicom-cloud/ui 0.8.135 → 0.8.136
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/Affix.js +1 -1
- package/Alert.js +1 -1
- package/Anchor.js +1 -1
- package/App.js +1 -1
- package/AutoComplete.js +1 -1
- package/Avatar.js +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +1 -1
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Constant.js +1 -1
- package/Copy.js +1 -1
- package/Countdown.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +1 -1
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +1 -1
- package/Form.js +1 -1
- package/Grid.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +1 -1
- package/InputTag.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +1 -1
- package/List.js +1 -1
- package/Loading.js +1 -1
- package/Marquee.js +1 -1
- package/Masonry.js +1 -1
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Portal.js +1 -1
- package/Progress.js +1 -1
- package/Progress2.js +1 -1
- package/QrCode.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +1 -1
- package/RowCol.js +1 -1
- package/Segmented.js +1 -1
- package/Select.js +1 -1
- package/SelectView.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +1 -1
- package/Splitter.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/SuspenseFallbackTest.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/TimePicker.js +1 -1
- package/Timeline.js +1 -1
- package/Timer.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/affix/Affix.js +1 -1
- package/affix/index.js +1 -1
- package/alert/Alert.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/anchor/context.js +1 -1
- package/anchor/index.js +1 -1
- package/anchor/utils.js +1 -1
- package/app/App.js +1 -1
- package/app/context.js +1 -1
- package/app/index.js +1 -1
- package/app/useApp.js +1 -1
- package/auto-complete/AutoComplete.js +1 -1
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/avatar/context.js +1 -1
- package/avatar/index.js +1 -1
- package/back-top/BackTop.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/Badge.js +1 -1
- package/badge/Count.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Item.js +1 -1
- package/breadcrumb/index.js +1 -1
- package/button/Button.js +1 -1
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/Lunar.js +1 -1
- package/calendar/Month.js +1 -1
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +1 -1
- package/calendar/header/Panel.js +1 -1
- package/calendar/header/index.js +1 -1
- package/calendar/hook/useCellClassName.js +1 -1
- package/calendar/index.js +1 -1
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +1 -1
- package/cascader/base/node.js +1 -1
- package/cascader/base/store.js +1 -1
- package/cascader/hook/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +1 -1
- package/cascader/panel/Search.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/index.js +1 -1
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +1 -1
- package/collapse/Item.js +1 -1
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Mode.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +1 -1
- package/color-picker/colors.js +1 -1
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.js +1 -1
- package/color-picker/interface.js +1 -1
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +1 -1
- package/config-provider/useConfigProvider.js +1 -1
- package/constant/index.js +1 -1
- package/copy/index.js +1 -1
- package/countdown/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +1 -1
- package/date-picker/context.js +1 -1
- package/date-picker/hook/useCellClassName.js +1 -1
- package/date-picker/index.js +1 -1
- package/date-picker/panel/Body.js +1 -1
- package/date-picker/panel/Footer.js +1 -1
- package/date-picker/panel/Header.js +1 -1
- package/date-picker/panel/Shortcut.js +1 -1
- package/date-picker/panel/WeekList.js +1 -1
- package/date-picker/panel/date/index.js +1 -1
- package/date-picker/panel/month/index.js +1 -1
- package/date-picker/panel/quarter/index.js +1 -1
- package/date-picker/panel/range/index.js +1 -1
- package/date-picker/panel/week/index.js +1 -1
- package/date-picker/panel/year/index.js +1 -1
- package/date-picker/utils.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +1 -1
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/Item.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/drawer/index.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +1 -1
- package/form/Control.js +1 -1
- package/form/Form.js +1 -1
- package/form/FormItem.js +1 -1
- package/form/FormLabel.js +1 -1
- package/form/FormList.js +1 -1
- package/form/FormProvider.js +1 -1
- package/form/context.js +1 -1
- package/form/hook/useContext.js +1 -1
- package/form/hook/useForm.js +1 -1
- package/form/hook/useState.js +1 -1
- package/form/hook/useWatch.js +1 -1
- package/form/index.js +1 -1
- package/form/interface.js +1 -1
- package/form/promisify.js +1 -1
- package/form/store.js +1 -1
- package/form/utils.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/grid/context.js +1 -1
- package/grid/index.js +1 -1
- package/grid/utils.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-breakpoint/index.js +1 -1
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-view/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +1 -1
- package/hooks/use-responsive-state/index.js +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-verification-code/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-watermark/index.js +1 -1
- package/hooks/use-watermark/utils.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/useBreakpoint.js +1 -1
- package/hooks/useComputedState.js +1 -1
- package/hooks/useCreate.js +1 -1
- package/hooks/useCreation.js +1 -1
- package/hooks/useEvent.js +1 -1
- package/hooks/useForceUpdate.js +1 -1
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useIntersectionObservers.js +1 -1
- package/hooks/useInterval.js +1 -1
- package/hooks/useIsFirstRender.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useLatest.js +1 -1
- package/hooks/useListenWindowResize.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/useMergeProps.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useMove.js +1 -1
- package/hooks/useMutationObservers.js +1 -1
- package/hooks/useOnlineStatus.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/usePrevious.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useResizeObserver.js +1 -1
- package/hooks/useResizeObservers.js +1 -1
- package/hooks/useResponsiveState.js +1 -1
- package/hooks/useStateCallback.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useUpdateLayoutEffect.js +1 -1
- package/hooks/useVerificationCode.js +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/Icon.js +1 -1
- package/icon/addIconFromCdn.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file.js +1 -1
- package/icons.js +1 -1
- package/image/Image.js +1 -1
- package/image/ImageFooter.js +1 -1
- package/image/ImagePreview.js +1 -1
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +1 -1
- package/image/index.js +1 -1
- package/image/previewGroupContext.js +1 -1
- package/image/utils/getFixTranslate.js +1 -1
- package/image/utils/getScale.js +1 -1
- package/image/utils/hook/useImageStatus.js +1 -1
- package/image/utils/hook/useShowFooter.js +1 -1
- package/index.js +1 -1
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +1 -1
- package/input/Number.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Tag.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +1 -1
- package/input/index.js +1 -1
- package/input/useComposition.js +1 -1
- package/input-number/decimal.js +1 -1
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.js +1 -1
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/input-tag/index.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +1 -1
- package/locale/ar-EG.js +1 -1
- package/locale/de-DE.js +1 -1
- package/locale/default.js +1 -1
- package/locale/en-US.js +1 -1
- package/locale/es-ES.js +1 -1
- package/locale/fr-FR.js +1 -1
- package/locale/id-ID.js +1 -1
- package/locale/it-IT.js +1 -1
- package/locale/ja-JP.js +1 -1
- package/locale/ko-KR.js +1 -1
- package/locale/ms-MY.js +1 -1
- package/locale/pt-BR.js +1 -1
- package/locale/pt-PT.js +1 -1
- package/locale/ru-RU.js +1 -1
- package/locale/th-TH.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/locale/vi-VN.js +1 -1
- package/locale/zh-CN.js +1 -1
- package/locale/zh-HK.js +1 -1
- package/locale/zh-TW.js +1 -1
- package/marquee/index.js +1 -1
- package/masonry/Masonry.js +1 -1
- package/masonry/MasonryItem.js +1 -1
- package/masonry/hooks/useDelay.js +1 -1
- package/masonry/hooks/useGutter.js +1 -1
- package/masonry/hooks/usePositions.js +1 -1
- package/masonry/hooks/useRefs.js +1 -1
- package/masonry/index.js +1 -1
- package/mentions/index.js +1 -1
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.js +1 -1
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +1 -1
- package/menu/OverflowWrap.js +1 -1
- package/menu/context.js +1 -1
- package/menu/index.js +1 -1
- package/menu/sub-menu/Inline.js +1 -1
- package/menu/sub-menu/Pop.js +1 -1
- package/menu/sub-menu/index.js +1 -1
- package/menu/utils.js +1 -1
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +1 -1
- package/modal/Modal.js +1 -1
- package/modal/config.js +1 -1
- package/modal/index.js +1 -1
- package/modal/use-modal/Hook.js +1 -1
- package/modal/use-modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/notification/withNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/pagination/interface.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/index.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/Popover.js +1 -1
- package/popover/index.js +1 -1
- package/portal/Portal.js +1 -1
- package/portal/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +1 -1
- package/progress/index.js +1 -1
- package/progress2/index.js +1 -1
- package/qr-code/index.js +1 -1
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.js +1 -1
- package/radio/Group.js +1 -1
- package/radio/GroupBlock.js +1 -1
- package/radio/Radio.js +1 -1
- package/radio/index.js +1 -1
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/Toolbar.js +173 -167
- package/rich-text/constant.js +1 -1
- package/rich-text/index.js +84 -84
- package/rich-text/lib/blots/block.js +1 -1
- package/rich-text/lib/blots/break.js +1 -1
- package/rich-text/lib/blots/container.js +1 -1
- package/rich-text/lib/blots/cursor.js +1 -1
- package/rich-text/lib/blots/embed.js +1 -1
- package/rich-text/lib/blots/inline.js +1 -1
- package/rich-text/lib/blots/scroll.js +1 -1
- package/rich-text/lib/blots/text.js +1 -1
- package/rich-text/lib/core/composition.js +1 -1
- package/rich-text/lib/core/editor.js +1 -1
- package/rich-text/lib/core/emitter.js +1 -1
- package/rich-text/lib/core/logger.js +1 -1
- package/rich-text/lib/core/module.js +1 -1
- package/rich-text/lib/core/rich.js +1 -1
- package/rich-text/lib/core/selection.js +1 -1
- package/rich-text/lib/core/theme.js +1 -1
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +1 -1
- package/rich-text/lib/core/utils/scrollRectIntoView.js +1 -1
- package/rich-text/lib/core.js +1 -1
- package/rich-text/lib/delta/AttributeMap.js +1 -1
- package/rich-text/lib/delta/Op.js +1 -1
- package/rich-text/lib/delta/OpIterator.js +1 -1
- package/rich-text/lib/delta/index.js +1 -1
- package/rich-text/lib/diff/index.js +1 -1
- package/rich-text/lib/formats/align.js +1 -1
- package/rich-text/lib/formats/background.js +1 -1
- package/rich-text/lib/formats/blockquote.js +1 -1
- package/rich-text/lib/formats/bold.js +1 -1
- package/rich-text/lib/formats/code.js +1 -1
- package/rich-text/lib/formats/color.js +1 -1
- package/rich-text/lib/formats/direction.js +1 -1
- package/rich-text/lib/formats/emoji.js +1 -1
- package/rich-text/lib/formats/font.js +1 -1
- package/rich-text/lib/formats/formula.js +1 -1
- package/rich-text/lib/formats/header.js +1 -1
- package/rich-text/lib/formats/hr.js +1 -1
- package/rich-text/lib/formats/image.js +1 -1
- package/rich-text/lib/formats/indent.js +1 -1
- package/rich-text/lib/formats/italic.js +1 -1
- package/rich-text/lib/formats/lineHeight.js +1 -1
- package/rich-text/lib/formats/link.js +1 -1
- package/rich-text/lib/formats/list.js +1 -1
- package/rich-text/lib/formats/script.js +1 -1
- package/rich-text/lib/formats/size.js +1 -1
- package/rich-text/lib/formats/strike.js +1 -1
- package/rich-text/lib/formats/table.js +1 -1
- package/rich-text/lib/formats/underline.js +1 -1
- package/rich-text/lib/formats/video.js +1 -1
- package/rich-text/lib/index.js +1 -1
- package/rich-text/lib/modules/clipboard.js +1 -1
- package/rich-text/lib/modules/history.js +5 -4
- package/rich-text/lib/modules/image-resize/index.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/Base.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/Resize.js +1 -1
- package/rich-text/lib/modules/image-resize/options.js +1 -1
- package/rich-text/lib/modules/input.js +1 -1
- package/rich-text/lib/modules/keyboard.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/index.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +1 -1
- package/rich-text/lib/modules/table.js +1 -1
- package/rich-text/lib/modules/toolbar.js +1 -1
- package/rich-text/lib/modules/uiNode.js +1 -1
- package/rich-text/lib/modules/uploader.js +1 -1
- package/rich-text/lib/parchment/attributor/attributor.js +1 -1
- package/rich-text/lib/parchment/attributor/class.js +1 -1
- package/rich-text/lib/parchment/attributor/store.js +1 -1
- package/rich-text/lib/parchment/attributor/style.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/container.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/leaf.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/parent.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/shadow.js +1 -1
- package/rich-text/lib/parchment/blot/block.js +1 -1
- package/rich-text/lib/parchment/blot/embed.js +1 -1
- package/rich-text/lib/parchment/blot/inline.js +1 -1
- package/rich-text/lib/parchment/blot/scroll.js +1 -1
- package/rich-text/lib/parchment/blot/text.js +1 -1
- package/rich-text/lib/parchment/collection/linked-list.js +1 -1
- package/rich-text/lib/parchment/error.js +1 -1
- package/rich-text/lib/parchment/index.js +1 -1
- package/rich-text/lib/parchment/registry.js +1 -1
- package/rich-text/lib/parchment/scope.js +1 -1
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/row-col/context.js +1 -1
- package/row-col/index.js +1 -1
- package/segmented/index.js +1 -1
- package/select/OptGroup.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +381 -368
- package/select/index.js +1 -1
- package/select/utils.js +91 -102
- package/select-view/Core.js +1 -1
- package/select-view/index.js +1 -1
- package/skeleton/Image.js +1 -1
- package/skeleton/Text.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Tick.js +1 -1
- package/slider/hook/useInterval.js +1 -1
- package/slider/hook/useLegalValue.js +1 -1
- package/slider/index.js +1 -1
- package/slider/utils.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +1 -1
- package/splitter/Splitter.js +1 -1
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/hooks/useResizable.js +1 -1
- package/splitter/hooks/useResize.js +1 -1
- package/splitter/hooks/useSizes.js +1 -1
- package/splitter/index.js +1 -1
- package/statistic/index.js +1 -1
- package/statistic/interface.js +1 -1
- package/steps/Step.js +1 -1
- package/steps/index.js +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/switch/index.js +1 -1
- package/table/ColGroup.js +1 -1
- package/table/Table.js +1 -1
- package/table/constant.js +1 -1
- package/table/context.js +1 -1
- package/table/hook/useColumns.js +1 -1
- package/table/hook/useComponent.js +1 -1
- package/table/hook/useExpand.js +1 -1
- package/table/hook/useRowSelection.js +1 -1
- package/table/hook/useSorter.js +1 -1
- package/table/hook/useStickyClassNames.js +1 -1
- package/table/hook/useStickyOffsets.js +1 -1
- package/table/hook/useThResizable.js +1 -1
- package/table/index.js +1 -1
- package/table/summary/Cell.js +1 -1
- package/table/summary/Row.js +1 -1
- package/table/summary/context.js +1 -1
- package/table/summary/index.js +1 -1
- package/table/tbody/Td.js +1 -1
- package/table/tbody/Tr.js +1 -1
- package/table/tbody/index.js +1 -1
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +1 -1
- package/table/thead/Column.js +1 -1
- package/table/thead/index.js +1 -1
- package/table/utils.js +1 -1
- package/tabs/Tab.js +1 -1
- package/tabs/TabContent.js +1 -1
- package/tabs/TabPane.js +1 -1
- package/tabs/hook/useDomSize.js +1 -1
- package/tabs/hook/useHeaderScroll.js +1 -1
- package/tabs/index.js +1 -1
- package/tabs/tab-header/DropdownIcon.js +1 -1
- package/tabs/tab-header/TabInk.js +1 -1
- package/tabs/tab-header/TabNavIcon.js +1 -1
- package/tabs/tab-header/TabTitle.js +1 -1
- package/tabs/tab-header/index.js +1 -1
- package/tabs/utils.js +1 -1
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/RangePicker.js +1 -1
- package/time-picker/TimeColumn.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/time-picker/context.js +1 -1
- package/time-picker/index.js +1 -1
- package/time-picker/utils.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/timeline/index.js +1 -1
- package/timer/index.js +1 -1
- package/tooltip/Tooltip.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Context.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +1 -1
- package/tree/index.js +1 -1
- package/tree/utils.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +1 -1
- package/tree-select/hook/useKeyCache.js +1 -1
- package/tree-select/hook/useStateValue.js +1 -1
- package/tree-select/hook/useTreeData.js +1 -1
- package/tree-select/index.js +1 -1
- package/tree-select/interface.js +1 -1
- package/tree-select/utils.js +1 -1
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.js +1 -1
- package/types/rich-text/lib/core/rich.d.ts +1 -4
- package/types/select/interface.d.ts +4 -2
- package/types/select/utils.d.ts +4 -4
- package/typography/Base.js +1 -1
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +1 -1
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +1 -1
- package/typography/Text.js +1 -1
- package/typography/Title.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +1 -1
- package/typography/useCssEllipsis.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +1 -1
- package/upload/constant.js +1 -1
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +1 -1
- package/upload/list/TextItem.js +1 -1
- package/upload/list/UploadProgress.js +1 -1
- package/upload/list/index.js +1 -1
- package/upload/list/utils.js +1 -1
- package/upload/request.js +1 -1
- package/upload/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +1 -1
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/throttleByRaf.js +1 -1
- package/utils/throttleByRaf2.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/verification-code/index.js +1 -1
- package/version/index.js +2 -2
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/virtual-list/constant.js +1 -1
- package/virtual-list/hook/useCacheChildrenNodes.js +1 -1
- package/virtual-list/hook/useComputeVirtualItemHeight.js +1 -1
- package/virtual-list/index.js +1 -1
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/watermark/index.js +1 -1
package/select/Select.js
CHANGED
|
@@ -1,541 +1,554 @@
|
|
|
1
|
-
/* 2026-01-
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
/* 2026-01-09 18:07:46 */
|
|
2
|
+
import { jsx as y, jsxs as At, Fragment as Lt } from "react/jsx-runtime";
|
|
3
|
+
import Mt, { useContext as ae, useState as J, useMemo as Re, useRef as w, useCallback as ue, useEffect as k, useImperativeHandle as Nt } from "react";
|
|
4
|
+
import Tt from "../checkbox/Checkbox.js";
|
|
5
5
|
import "../checkbox/Group.js";
|
|
6
6
|
import "../config-provider/ConfigProvider.js";
|
|
7
|
-
import { FormContext as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { isArray as
|
|
17
|
-
import { Esc as
|
|
18
|
-
import { castArray as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { getValidValue as
|
|
24
|
-
import
|
|
25
|
-
const
|
|
26
|
-
function
|
|
27
|
-
const
|
|
7
|
+
import { FormContext as Ut, FormItemContext as Dt } from "../form/context.js";
|
|
8
|
+
import Rt from "@unicom-cloud/ui-common/hooks/use-id";
|
|
9
|
+
import $t from "@unicom-cloud/ui-common/hooks/use-merge-props";
|
|
10
|
+
import $e from "@unicom-cloud/ui-common/hooks/use-merge-value";
|
|
11
|
+
import Ht from "@unicom-cloud/ui-common/hooks/use-resize-observers";
|
|
12
|
+
import Gt from "../select-view/index.js";
|
|
13
|
+
import Kt from "../trigger/index.js";
|
|
14
|
+
import ce from "@unicom-cloud/ui-common/utils/className";
|
|
15
|
+
import jt from "@unicom-cloud/ui-common/utils/getHotkeyHandler";
|
|
16
|
+
import { isArray as v, isPlainObject as b, isFunction as $, isNil as Wt } from "@unicom-cloud/ui-common/utils/is";
|
|
17
|
+
import { Esc as Bt, Enter as He, Tab as Ge, ArrowUp as qt, ArrowDown as zt } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
18
|
+
import { castArray as Jt, uniq as Qt } from "@unicom-cloud/ui-common/utils/lodash";
|
|
19
|
+
import Xt from "@unicom-cloud/ui-common/utils/omit";
|
|
20
|
+
import Yt from "../virtual-list/VirtualList.js";
|
|
21
|
+
import Zt from "./OptGroup.js";
|
|
22
|
+
import en from "./Option.js";
|
|
23
|
+
import { getValidValue as Ke, flatChildren as tn, isEmpty as pe, preventDefaultEvent as nn, isSelectOptGroup as on, isSelectOption as rn } from "./utils.js";
|
|
24
|
+
import ln from "../config-provider/context.js";
|
|
25
|
+
const je = "userCreatingOption";
|
|
26
|
+
function sn(We, Be) {
|
|
27
|
+
const qe = {
|
|
28
28
|
trigger: "click",
|
|
29
29
|
bordered: !0,
|
|
30
30
|
filterOption: !0,
|
|
31
31
|
unmountOnExit: !0,
|
|
32
32
|
defaultActiveFirstOption: !1
|
|
33
33
|
};
|
|
34
|
-
let
|
|
34
|
+
let de = 4;
|
|
35
35
|
const {
|
|
36
|
-
prefixCls:
|
|
37
|
-
getPrefixCls:
|
|
38
|
-
renderEmpty:
|
|
39
|
-
componentConfig:
|
|
40
|
-
rtl:
|
|
41
|
-
} =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
prefixCls: ze,
|
|
37
|
+
getPrefixCls: Je,
|
|
38
|
+
renderEmpty: Qe,
|
|
39
|
+
componentConfig: Xe,
|
|
40
|
+
rtl: me
|
|
41
|
+
} = ae(ln), Ye = ae(Ut), Ze = ae(Dt), f = Je?.("select"), a = $t(
|
|
42
|
+
We,
|
|
43
|
+
qe,
|
|
44
|
+
Xe?.Select
|
|
45
45
|
), {
|
|
46
|
-
children:
|
|
47
|
-
renderFormat:
|
|
48
|
-
defaultActiveFirstOption:
|
|
49
|
-
disabled:
|
|
50
|
-
unmountOnExit:
|
|
51
|
-
notFoundContent:
|
|
52
|
-
showSearch:
|
|
53
|
-
tokenSeparators:
|
|
54
|
-
options:
|
|
55
|
-
filterOption:
|
|
56
|
-
labelInValue:
|
|
57
|
-
getPopupContainer:
|
|
58
|
-
trigger:
|
|
59
|
-
triggerElement:
|
|
60
|
-
triggerProps:
|
|
61
|
-
dropdownRender:
|
|
62
|
-
dropdownMenuStyle:
|
|
63
|
-
dropdownMenuClassName:
|
|
64
|
-
virtualListProps:
|
|
65
|
-
immediateTriggerChangeOnMount:
|
|
66
|
-
readOnly:
|
|
46
|
+
children: ge,
|
|
47
|
+
renderFormat: he,
|
|
48
|
+
defaultActiveFirstOption: Ce,
|
|
49
|
+
disabled: et,
|
|
50
|
+
unmountOnExit: tt,
|
|
51
|
+
notFoundContent: nt,
|
|
52
|
+
showSearch: Oe,
|
|
53
|
+
tokenSeparators: Q,
|
|
54
|
+
options: ve,
|
|
55
|
+
filterOption: be,
|
|
56
|
+
labelInValue: H,
|
|
57
|
+
getPopupContainer: ot,
|
|
58
|
+
trigger: rt,
|
|
59
|
+
triggerElement: X,
|
|
60
|
+
triggerProps: V,
|
|
61
|
+
dropdownRender: Ve,
|
|
62
|
+
dropdownMenuStyle: ye,
|
|
63
|
+
dropdownMenuClassName: we,
|
|
64
|
+
virtualListProps: ke,
|
|
65
|
+
immediateTriggerChangeOnMount: it,
|
|
66
|
+
readOnly: Ie = Ze.readOnly ?? Ye.readOnly,
|
|
67
|
+
mode: lt,
|
|
68
|
+
allowCheckAll: st,
|
|
69
|
+
allowCreate: g,
|
|
67
70
|
// events
|
|
68
|
-
onChange:
|
|
69
|
-
onSelect:
|
|
70
|
-
onDeselect:
|
|
71
|
-
onClear:
|
|
72
|
-
onSearch:
|
|
73
|
-
onFocus:
|
|
74
|
-
onBlur:
|
|
75
|
-
onPopupScroll:
|
|
76
|
-
onVisibleChange:
|
|
77
|
-
onInputValueChange:
|
|
78
|
-
onPaste:
|
|
79
|
-
onKeyDown:
|
|
80
|
-
} = a,
|
|
81
|
-
let
|
|
82
|
-
const
|
|
83
|
-
u ?
|
|
84
|
-
const [
|
|
85
|
-
|
|
86
|
-
),
|
|
87
|
-
value:
|
|
88
|
-
}), [
|
|
71
|
+
onChange: xe,
|
|
72
|
+
onSelect: at,
|
|
73
|
+
onDeselect: ut,
|
|
74
|
+
onClear: ct,
|
|
75
|
+
onSearch: pt,
|
|
76
|
+
onFocus: ft,
|
|
77
|
+
onBlur: dt,
|
|
78
|
+
onPopupScroll: mt,
|
|
79
|
+
onVisibleChange: gt,
|
|
80
|
+
onInputValueChange: ht,
|
|
81
|
+
onPaste: Ct,
|
|
82
|
+
onKeyDown: Ot
|
|
83
|
+
} = a, Y = "value" in a, Pe = "defaultValue" in a, vt = "inputValue" in a, bt = "popupVisible" in a, Vt = "notFoundContent" in a;
|
|
84
|
+
let N = st;
|
|
85
|
+
const u = lt === "multiple";
|
|
86
|
+
u ? N ??= !0 : N = !1;
|
|
87
|
+
const [Se, Z] = J(
|
|
88
|
+
Ke(a.defaultValue, u, H)
|
|
89
|
+
), r = Y ? Ke(a.value, u, H) : Se, [d, yt, wt] = $e("", {
|
|
90
|
+
value: vt ? a.inputValue || "" : void 0
|
|
91
|
+
}), [h, kt] = $e(!1, {
|
|
89
92
|
defaultValue: a.defaultPopupVisible,
|
|
90
|
-
value:
|
|
91
|
-
}), [
|
|
92
|
-
|
|
93
|
-
optionInfoMap: p,
|
|
94
|
-
optionValueList: y,
|
|
95
|
-
optionIndexListForArrowKey: x,
|
|
96
|
-
hasOptGroup: yt,
|
|
97
|
-
hasComplexLabelInOptions: wt
|
|
98
|
-
} = Me(() => qt(
|
|
99
|
-
{ children: pe, options: me, filterOption: ge },
|
|
93
|
+
value: bt ? a.popupVisible : V && "popupVisible" in V ? V.popupVisible : void 0
|
|
94
|
+
}), [T, It] = J(null), [U, xt] = J([]), [C, L] = J(() => v(r) ? r[0] : r), Pt = Re(() => tn(
|
|
95
|
+
{ children: ge, options: ve, filterOption: be },
|
|
100
96
|
{
|
|
101
|
-
prefixCls:
|
|
97
|
+
prefixCls: f,
|
|
102
98
|
inputValue: d,
|
|
103
|
-
userCreatedOptions:
|
|
104
|
-
userCreatingOption:
|
|
99
|
+
userCreatedOptions: U,
|
|
100
|
+
userCreatingOption: T
|
|
105
101
|
}
|
|
106
102
|
), [
|
|
107
|
-
pe,
|
|
108
|
-
me,
|
|
109
103
|
ge,
|
|
110
|
-
|
|
104
|
+
ve,
|
|
105
|
+
be,
|
|
106
|
+
f,
|
|
111
107
|
d,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
]),
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
108
|
+
U,
|
|
109
|
+
T
|
|
110
|
+
]), {
|
|
111
|
+
childrenList: ee,
|
|
112
|
+
optionInfoMap: c,
|
|
113
|
+
optionValueList: D,
|
|
114
|
+
optionIndexListForArrowKey: x,
|
|
115
|
+
hasOptGroup: St,
|
|
116
|
+
hasComplexLabelInOptions: Et
|
|
117
|
+
} = Pt, te = w(null), Ee = w(null), P = w(null), S = w([]), I = w(null), _e = w(d), ne = w(null), G = w(0), oe = w(!1), Fe = Rt(`${f}-popup`), K = pe(r, u), Ae = Re(() => {
|
|
118
|
+
if (Ce) {
|
|
119
|
+
const e = v(r) ? r[0] : r, t = !K && c.get(e)?._valid, n = c?.get(D[0])?._origin === je;
|
|
120
|
+
return t && !n ? e : D[x[0]];
|
|
118
121
|
}
|
|
119
122
|
}, [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
r,
|
|
124
|
+
c,
|
|
125
|
+
D,
|
|
123
126
|
x,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
]),
|
|
127
|
+
Ce,
|
|
128
|
+
K
|
|
129
|
+
]), j = ue(
|
|
127
130
|
(e, t) => {
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
key:
|
|
131
|
+
const n = c.get(e);
|
|
132
|
+
te.current && n?.child?.props && te.current.scrollTo({
|
|
133
|
+
key: n.child.props._key,
|
|
131
134
|
options: t
|
|
132
135
|
});
|
|
133
136
|
},
|
|
134
|
-
[
|
|
135
|
-
),
|
|
136
|
-
(e, t = !1) =>
|
|
137
|
-
[
|
|
138
|
-
),
|
|
139
|
-
(e !==
|
|
140
|
-
},
|
|
141
|
-
|
|
137
|
+
[c]
|
|
138
|
+
), W = ue(
|
|
139
|
+
(e, t = !1) => b(g) && $(g?.formatter) ? g.formatter(e, t) : e,
|
|
140
|
+
[g]
|
|
141
|
+
), E = (e, t) => {
|
|
142
|
+
(e !== _e.current || t !== ne.current) && (yt(e), _e.current = e, ne.current = t, ht?.(e, t));
|
|
143
|
+
}, M = (e) => {
|
|
144
|
+
h !== e && (kt(e), gt?.(e), V?.onVisibleChange?.(e));
|
|
142
145
|
};
|
|
143
|
-
|
|
144
|
-
u ?
|
|
145
|
-
}, [u,
|
|
146
|
-
if (
|
|
147
|
-
const e =
|
|
148
|
-
|
|
146
|
+
k(() => {
|
|
147
|
+
u ? v(r) || Z(r === void 0 ? [] : [r]) : v(r) && Z(r.length ? r[0] : void 0);
|
|
148
|
+
}, [u, r]), k(() => {
|
|
149
|
+
if (h && (L(Ae), !K)) {
|
|
150
|
+
const e = v(r) ? r[0] : r;
|
|
151
|
+
c.has(e) && setTimeout(() => j(e));
|
|
149
152
|
}
|
|
150
|
-
}, [
|
|
151
|
-
(
|
|
152
|
-
}, [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}, [
|
|
157
|
-
|
|
153
|
+
}, [h]), k(() => {
|
|
154
|
+
(I.current === "up" || I.current === "down") && (j(C), I.current = "none");
|
|
155
|
+
}, [C]);
|
|
156
|
+
const re = ee.map((e) => e?.props?.value);
|
|
157
|
+
k(() => {
|
|
158
|
+
L(Ae);
|
|
159
|
+
}, [re.join("-")]), k(() => {
|
|
160
|
+
S.current = S.current.filter((e) => u ? v(r) && r.includes(e.value) : e.value === r);
|
|
161
|
+
}, [r, u]), k(() => {
|
|
162
|
+
if (g) {
|
|
158
163
|
let e;
|
|
159
|
-
if (
|
|
164
|
+
if (pe(r, u))
|
|
160
165
|
e = [];
|
|
161
166
|
else {
|
|
162
|
-
const
|
|
163
|
-
const
|
|
164
|
-
return !
|
|
165
|
-
}).map((i) =>
|
|
166
|
-
e =
|
|
167
|
-
const
|
|
168
|
-
return
|
|
167
|
+
const n = Jt(r), o = n.filter((i, p, m) => {
|
|
168
|
+
const l = c.get(i) || S.current.find((O) => O.value === i)?.option;
|
|
169
|
+
return !l || l._origin === je;
|
|
170
|
+
}).map((i) => W(i));
|
|
171
|
+
e = U.filter((i) => {
|
|
172
|
+
const p = b(i) ? i.value : i;
|
|
173
|
+
return n.includes(p);
|
|
169
174
|
}).concat(
|
|
170
|
-
|
|
175
|
+
o
|
|
171
176
|
);
|
|
172
177
|
}
|
|
173
|
-
const t = (
|
|
174
|
-
t(e) !== t(
|
|
178
|
+
const t = (n) => n.map((o) => b(o) ? o.value : o).toString();
|
|
179
|
+
t(e) !== t(U) && xt(e);
|
|
175
180
|
}
|
|
176
|
-
}, [
|
|
177
|
-
|
|
178
|
-
d && !
|
|
181
|
+
}, [r, g, u, W]), k(() => {
|
|
182
|
+
g && It(
|
|
183
|
+
d && !c.has(d) ? W(d, !0) : null
|
|
179
184
|
);
|
|
180
|
-
}, [d,
|
|
181
|
-
const { current: e } =
|
|
182
|
-
|
|
185
|
+
}, [d, W]), k(() => {
|
|
186
|
+
const { current: e } = ne;
|
|
187
|
+
wt === d && (e === "manual" || e === "optionListHide") && pt?.(d, e);
|
|
183
188
|
}, [d]);
|
|
184
|
-
const
|
|
189
|
+
const R = ue(
|
|
185
190
|
(e) => {
|
|
186
|
-
const t =
|
|
191
|
+
const t = c.get(e);
|
|
187
192
|
if (t) {
|
|
188
|
-
const
|
|
193
|
+
const o = S.current.findIndex(
|
|
189
194
|
(s) => s.value === e
|
|
190
195
|
);
|
|
191
|
-
return
|
|
196
|
+
return o > -1 ? S.current.splice(o, 1, { value: e, option: t }) : S.current.push({ value: e, option: t }), t;
|
|
192
197
|
}
|
|
193
|
-
const
|
|
194
|
-
return
|
|
198
|
+
const n = S.current.find((o) => o.value === e);
|
|
199
|
+
return n && n.option;
|
|
195
200
|
},
|
|
196
|
-
[
|
|
197
|
-
),
|
|
198
|
-
if (!x.length)
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
return C.label;
|
|
201
|
+
[c]
|
|
202
|
+
), Le = (e) => {
|
|
203
|
+
if (!x.length) return;
|
|
204
|
+
if (C === void 0 || !c.has(C))
|
|
205
|
+
return D[x[0]];
|
|
206
|
+
const n = c.get(C)._index, o = x.indexOf(n), s = x.length;
|
|
207
|
+
return D[x[((e === "up" ? o - 1 : o + 1) + s) % s]];
|
|
208
|
+
}, B = (e, t = pe(e, u)) => {
|
|
209
|
+
let n = e;
|
|
210
|
+
const o = e === void 0 ? void 0 : v(e) ? e.map(R) : R(e);
|
|
211
|
+
if (H && !t) {
|
|
212
|
+
const s = (i, p) => {
|
|
213
|
+
if (p)
|
|
214
|
+
return p.children;
|
|
215
|
+
const m = Y ? a.value : Pe ? a.defaultValue : null;
|
|
216
|
+
if (v(m)) {
|
|
217
|
+
for (const l of m)
|
|
218
|
+
if (b(l) && l.value === i)
|
|
219
|
+
return l.label;
|
|
220
|
+
} else if (b(m) && m.value === i)
|
|
221
|
+
return m.label;
|
|
218
222
|
};
|
|
219
|
-
|
|
223
|
+
v(e) ? n = e.map((i, p) => ({
|
|
220
224
|
value: i,
|
|
221
|
-
label: s(i,
|
|
222
|
-
})) :
|
|
225
|
+
label: s(i, o[p])
|
|
226
|
+
})) : n = {
|
|
223
227
|
value: e,
|
|
224
|
-
label: s(e,
|
|
228
|
+
label: s(e, o)
|
|
225
229
|
};
|
|
226
230
|
}
|
|
227
|
-
return { option:
|
|
231
|
+
return { option: o, value: n };
|
|
228
232
|
};
|
|
229
|
-
function
|
|
230
|
-
if (
|
|
231
|
-
const t =
|
|
232
|
-
|
|
233
|
+
function Me(e) {
|
|
234
|
+
if (xe) {
|
|
235
|
+
const t = B(e);
|
|
236
|
+
xe(t.value, t.option);
|
|
233
237
|
}
|
|
234
238
|
}
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
},
|
|
238
|
-
if (t === "remove" || t === "add" &&
|
|
239
|
-
const
|
|
240
|
-
if (
|
|
241
|
-
const s =
|
|
239
|
+
const _ = (e) => {
|
|
240
|
+
Z(e), Me(e);
|
|
241
|
+
}, Ne = (e, t) => {
|
|
242
|
+
if (t === "remove" || t === "add" && c.get(e)) {
|
|
243
|
+
const n = t === "add" ? r.concat(e) : r.filter((s, i, p) => s !== e), o = t === "add" ? at : ut;
|
|
244
|
+
if (_(n), $(o)) {
|
|
245
|
+
const s = B(
|
|
242
246
|
e,
|
|
243
247
|
!1
|
|
244
248
|
);
|
|
245
|
-
|
|
249
|
+
o(
|
|
246
250
|
s.value,
|
|
247
251
|
s.option
|
|
248
252
|
);
|
|
249
253
|
}
|
|
250
254
|
}
|
|
251
|
-
},
|
|
252
|
-
t || (u ? (
|
|
255
|
+
}, Te = (e, t) => {
|
|
256
|
+
t || (u ? (Ne(
|
|
253
257
|
e,
|
|
254
|
-
|
|
255
|
-
), (!
|
|
256
|
-
|
|
258
|
+
r.includes(e) ? "remove" : "add"
|
|
259
|
+
), (!b(Oe) || !Oe.retainInputValueWhileSelect) && E(d, "optionChecked")) : (e !== r && _(e), setTimeout(() => {
|
|
260
|
+
M(!1);
|
|
257
261
|
})));
|
|
258
|
-
},
|
|
262
|
+
}, q = jt(
|
|
259
263
|
/* @__PURE__ */ new Map([
|
|
260
|
-
[
|
|
264
|
+
[Bt.key, () => M(!1)],
|
|
261
265
|
[
|
|
262
|
-
|
|
266
|
+
He.key,
|
|
263
267
|
() => {
|
|
264
|
-
if (
|
|
265
|
-
const e =
|
|
266
|
-
e &&
|
|
268
|
+
if (h) {
|
|
269
|
+
const e = c.get(C);
|
|
270
|
+
e && Te(C, e.disabled);
|
|
267
271
|
} else
|
|
268
|
-
|
|
272
|
+
M(!0);
|
|
269
273
|
}
|
|
270
274
|
],
|
|
271
275
|
[
|
|
272
|
-
|
|
276
|
+
Ge.key,
|
|
273
277
|
// 按tab键切换,关闭开启的弹出框
|
|
274
|
-
() =>
|
|
278
|
+
() => M(!1)
|
|
275
279
|
],
|
|
276
280
|
[
|
|
277
|
-
|
|
281
|
+
qt.key,
|
|
278
282
|
() => {
|
|
279
|
-
if (
|
|
280
|
-
return
|
|
283
|
+
if (h)
|
|
284
|
+
return I.current = "up", L(Le("up")), !1;
|
|
281
285
|
}
|
|
282
286
|
],
|
|
283
287
|
[
|
|
284
|
-
|
|
288
|
+
zt.key,
|
|
285
289
|
() => {
|
|
286
|
-
if (
|
|
287
|
-
return
|
|
290
|
+
if (h)
|
|
291
|
+
return I.current = "down", L(Le("down")), !1;
|
|
288
292
|
}
|
|
289
293
|
]
|
|
290
294
|
])
|
|
291
|
-
),
|
|
292
|
-
const e =
|
|
293
|
-
|
|
295
|
+
), _t = () => {
|
|
296
|
+
const e = V?.autoAlignPopupWidth === !1 && (!V?.style?.width || V?.style?.width === "auto"), t = e && Et, n = Vt ? nt : Qe("Select"), o = ee.length ? /* @__PURE__ */ y(
|
|
297
|
+
Yt,
|
|
294
298
|
{
|
|
295
|
-
id:
|
|
299
|
+
id: Fe,
|
|
296
300
|
role: "listbox",
|
|
297
|
-
style:
|
|
298
|
-
className:
|
|
299
|
-
ref:
|
|
300
|
-
data:
|
|
301
|
+
style: ye,
|
|
302
|
+
className: ce(`${f}-popup-inner`, we),
|
|
303
|
+
ref: te,
|
|
304
|
+
data: ee,
|
|
301
305
|
height: null,
|
|
302
|
-
isStaticItemHeight: !
|
|
306
|
+
isStaticItemHeight: !St,
|
|
303
307
|
measureLongestItem: e,
|
|
304
308
|
itemKey: (l) => l.props._key,
|
|
305
|
-
onMouseDown:
|
|
309
|
+
onMouseDown: nn,
|
|
306
310
|
onMouseMove: () => {
|
|
307
|
-
|
|
311
|
+
I.current = null;
|
|
308
312
|
},
|
|
309
|
-
onScroll: (l) =>
|
|
310
|
-
...
|
|
311
|
-
threshold: t ? null :
|
|
313
|
+
onScroll: (l) => mt?.(l.target),
|
|
314
|
+
...ke,
|
|
315
|
+
threshold: t ? null : ke?.threshold,
|
|
312
316
|
children: (l) => {
|
|
313
|
-
if (
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
),
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
317
|
+
if (on(l)) {
|
|
318
|
+
const O = l.type;
|
|
319
|
+
return /* @__PURE__ */ y(O, { ...l.props, prefixCls: f });
|
|
320
|
+
}
|
|
321
|
+
if (rn(l)) {
|
|
322
|
+
const O = l.props?.value, z = b(T) ? T.value : T, le = U.map(
|
|
323
|
+
(A) => b(A) ? A.value : A
|
|
324
|
+
), F = {
|
|
325
|
+
prefixCls: f,
|
|
326
|
+
rtl: me,
|
|
327
|
+
_valueActive: C,
|
|
328
|
+
_valueSelect: r,
|
|
323
329
|
_isMultipleMode: u,
|
|
324
|
-
_isUserCreatingOption:
|
|
325
|
-
_isUserCreatedOption:
|
|
326
|
-
_onClick:
|
|
327
|
-
_onMouseEnter: (
|
|
328
|
-
|
|
330
|
+
_isUserCreatingOption: g && z === O,
|
|
331
|
+
_isUserCreatedOption: g && le.includes(O),
|
|
332
|
+
_onClick: Te,
|
|
333
|
+
_onMouseEnter: (A) => {
|
|
334
|
+
I.current === null && L(A);
|
|
329
335
|
},
|
|
330
336
|
_onMouseLeave: () => {
|
|
331
|
-
|
|
337
|
+
I.current === null && L(C);
|
|
332
338
|
}
|
|
333
|
-
};
|
|
334
|
-
return
|
|
339
|
+
}, se = l.type;
|
|
340
|
+
return /* @__PURE__ */ y(se, { ...l.props, ...F });
|
|
335
341
|
}
|
|
336
342
|
return l;
|
|
337
343
|
}
|
|
338
344
|
}
|
|
339
|
-
) : null, i =
|
|
345
|
+
) : null, i = n && !(g && d) ? /* @__PURE__ */ y(
|
|
340
346
|
"div",
|
|
341
347
|
{
|
|
342
|
-
style:
|
|
343
|
-
className:
|
|
344
|
-
children:
|
|
348
|
+
style: ye,
|
|
349
|
+
className: ce(`${f}-popup-inner`, we),
|
|
350
|
+
children: n
|
|
345
351
|
}
|
|
346
|
-
) : null;
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
{
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
),
|
|
355
|
-
tabIndex: -1,
|
|
356
|
-
onKeyDown: (l) => j(l),
|
|
357
|
-
children: [
|
|
358
|
-
!!u && !!n && !!J && // 潘启宝添加
|
|
359
|
-
/* @__PURE__ */ _(
|
|
360
|
-
_t,
|
|
352
|
+
) : null, p = o || i;
|
|
353
|
+
let m = $(Ve) ? Ve(p) : p;
|
|
354
|
+
if (u && N && !(b(N) && N.search === !1 && d)) {
|
|
355
|
+
if (o && re.length > 1) {
|
|
356
|
+
const l = [].concat(re), O = [].concat(Se), z = l.every((F) => O.includes(F)), le = l.some((F) => O.includes(F));
|
|
357
|
+
m = /* @__PURE__ */ At(Lt, { children: [
|
|
358
|
+
/* @__PURE__ */ y(
|
|
359
|
+
Tt,
|
|
361
360
|
{
|
|
362
361
|
"aria-hidden": "true",
|
|
363
|
-
className: `${
|
|
364
|
-
checked:
|
|
365
|
-
indeterminate:
|
|
366
|
-
onChange: (
|
|
367
|
-
|
|
362
|
+
className: `${f}-checkbox ${f}-checkbox-all`,
|
|
363
|
+
checked: z,
|
|
364
|
+
indeterminate: le && !z,
|
|
365
|
+
onChange: (F) => {
|
|
366
|
+
const se = F ? Qt(O.concat(l)) : [].concat(O).filter((A) => !l.includes(A));
|
|
367
|
+
_(se);
|
|
368
368
|
},
|
|
369
|
-
children: "全选"
|
|
369
|
+
children: /* @__PURE__ */ y("span", { children: "全选" })
|
|
370
370
|
}
|
|
371
371
|
),
|
|
372
|
-
|
|
373
|
-
]
|
|
372
|
+
m
|
|
373
|
+
] });
|
|
374
374
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
375
|
+
}
|
|
376
|
+
return m = /* @__PURE__ */ y(
|
|
377
|
+
"div",
|
|
378
|
+
{
|
|
379
|
+
className: ce(
|
|
380
|
+
`${f}-popup`,
|
|
381
|
+
p ? `${f}-popup-show` : `${f}-popup-hidden`,
|
|
382
|
+
u ? `${f}-popup-multiple` : `${f}-popup-single`
|
|
383
|
+
),
|
|
384
|
+
tabIndex: -1,
|
|
385
|
+
onKeyDown: (l) => q(l),
|
|
386
|
+
children: m
|
|
387
|
+
}
|
|
388
|
+
), m;
|
|
389
|
+
}, ie = (e) => {
|
|
390
|
+
if (G.current = null, u && v(Q) && Q.length) {
|
|
391
|
+
const t = e.split(new RegExp(`[${Q.join("")}]`));
|
|
379
392
|
if (t.length > 1) {
|
|
380
|
-
|
|
381
|
-
const
|
|
382
|
-
(i,
|
|
383
|
-
),
|
|
393
|
+
G.current = Date.now();
|
|
394
|
+
const n = t.filter(
|
|
395
|
+
(i, p) => i && t.indexOf(i) === p
|
|
396
|
+
), o = r.slice(0);
|
|
384
397
|
let s = !1;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}), s &&
|
|
398
|
+
n.forEach((i, p, m) => {
|
|
399
|
+
o.includes(i) || (g || c.get(i)) && (o.push(i), s = !0);
|
|
400
|
+
}), s && _(o);
|
|
388
401
|
}
|
|
389
402
|
}
|
|
390
|
-
return !!
|
|
391
|
-
},
|
|
392
|
-
onFocus:
|
|
403
|
+
return !!G.current;
|
|
404
|
+
}, Ft = {
|
|
405
|
+
onFocus: ft,
|
|
393
406
|
onBlur: (e) => {
|
|
394
|
-
|
|
407
|
+
dt?.(e), !h && !oe.current && E("", "optionListHide");
|
|
395
408
|
},
|
|
396
409
|
onKeyDown: (e) => {
|
|
397
410
|
if (e.target.tagName === "INPUT" && e.target.value) {
|
|
398
|
-
const t = e.key ===
|
|
399
|
-
if (
|
|
400
|
-
const
|
|
411
|
+
const t = e.key === Ge.key, n = e.key === He.key;
|
|
412
|
+
if (n || t) {
|
|
413
|
+
const o = n ? `
|
|
401
414
|
` : t ? " " : "";
|
|
402
|
-
|
|
415
|
+
ie(e.target.value + o) && E("", "tokenSeparator");
|
|
403
416
|
}
|
|
404
417
|
}
|
|
405
|
-
|
|
418
|
+
q(e), Ot?.(e);
|
|
406
419
|
},
|
|
407
420
|
onChangeInputValue: (e, { nativeEvent: { inputType: t } }) => {
|
|
408
|
-
t !== "insertFromPaste" &&
|
|
421
|
+
t !== "insertFromPaste" && ie(e), G.current ? E("", "tokenSeparator") : E(e, "manual"), h || e && M(!0);
|
|
409
422
|
},
|
|
410
423
|
onPaste: (e) => {
|
|
411
|
-
|
|
424
|
+
ie(e.clipboardData.getData("text")), Ct?.(e);
|
|
412
425
|
},
|
|
413
426
|
// Option Items
|
|
414
|
-
onRemoveCheckedItem: (e, t,
|
|
415
|
-
|
|
427
|
+
onRemoveCheckedItem: (e, t, n) => {
|
|
428
|
+
n.stopPropagation(), Ne(r[t], "remove");
|
|
416
429
|
},
|
|
417
430
|
onClear: (e) => {
|
|
418
431
|
if (e.stopPropagation(), u) {
|
|
419
|
-
const t =
|
|
420
|
-
const i =
|
|
432
|
+
const t = r.filter((n, o, s) => {
|
|
433
|
+
const i = c.get(n);
|
|
421
434
|
return i && i.disabled;
|
|
422
435
|
});
|
|
423
|
-
|
|
436
|
+
_(t);
|
|
424
437
|
} else
|
|
425
|
-
|
|
426
|
-
|
|
438
|
+
_(void 0);
|
|
439
|
+
E("", "manual"), ct?.(h);
|
|
427
440
|
}
|
|
428
441
|
};
|
|
429
|
-
|
|
442
|
+
Nt(Be, () => ({
|
|
430
443
|
focus() {
|
|
431
444
|
P.current && P.current.focus();
|
|
432
445
|
},
|
|
433
446
|
blur() {
|
|
434
447
|
P.current && P.current.blur();
|
|
435
448
|
},
|
|
436
|
-
hotkeyHandler:
|
|
437
|
-
activeOptionValue:
|
|
438
|
-
getOptionInfoByValue:
|
|
439
|
-
getOptionInfoList: () => [...
|
|
440
|
-
scrollIntoView:
|
|
449
|
+
hotkeyHandler: q,
|
|
450
|
+
activeOptionValue: C,
|
|
451
|
+
getOptionInfoByValue: R,
|
|
452
|
+
getOptionInfoList: () => [...c.values()].filter((e) => e._valid),
|
|
453
|
+
scrollIntoView: j,
|
|
441
454
|
getRootElement() {
|
|
442
455
|
return P.current?.getRootElement?.();
|
|
443
456
|
}
|
|
444
457
|
}), [
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
]),
|
|
451
|
-
const
|
|
452
|
-
|
|
458
|
+
q,
|
|
459
|
+
c,
|
|
460
|
+
C,
|
|
461
|
+
R,
|
|
462
|
+
j
|
|
463
|
+
]), V?.showArrow && (de += 4);
|
|
464
|
+
const Ue = (e) => Ie ? e : /* @__PURE__ */ y(
|
|
465
|
+
Kt,
|
|
453
466
|
{
|
|
454
|
-
ref:
|
|
455
|
-
popup:
|
|
456
|
-
trigger:
|
|
457
|
-
disabled:
|
|
458
|
-
getPopupContainer:
|
|
459
|
-
classNames: `${
|
|
467
|
+
ref: Ee,
|
|
468
|
+
popup: _t,
|
|
469
|
+
trigger: rt,
|
|
470
|
+
disabled: et,
|
|
471
|
+
getPopupContainer: ot,
|
|
472
|
+
classNames: `${ze}-slide-dynamic-origin`,
|
|
460
473
|
autoAlignPopupWidth: !0,
|
|
461
|
-
popupAlign:
|
|
462
|
-
popupVisible:
|
|
463
|
-
unmountOnExit:
|
|
464
|
-
onVisibleChange:
|
|
465
|
-
childrenPrefix: `${
|
|
474
|
+
popupAlign: de,
|
|
475
|
+
popupVisible: h,
|
|
476
|
+
unmountOnExit: tt,
|
|
477
|
+
onVisibleChange: M,
|
|
478
|
+
childrenPrefix: `${f}-trigger`,
|
|
466
479
|
__onExit: () => {
|
|
467
|
-
|
|
480
|
+
oe.current = !0;
|
|
468
481
|
},
|
|
469
482
|
__onExited: () => {
|
|
470
|
-
|
|
483
|
+
oe.current = !1, E("", "optionListHide");
|
|
471
484
|
},
|
|
472
|
-
...
|
|
485
|
+
...Xt(V, ["popupVisible", "onVisibleChange"]),
|
|
473
486
|
children: e
|
|
474
487
|
}
|
|
475
|
-
),
|
|
476
|
-
return
|
|
488
|
+
), De = $(X) ? X(B(r)) : X;
|
|
489
|
+
return Ht(
|
|
477
490
|
(e) => {
|
|
478
|
-
|
|
491
|
+
Ee.current?.updatePopupPosition?.();
|
|
479
492
|
},
|
|
480
493
|
[P.current?.getRootElement?.()],
|
|
481
494
|
{ immediate: !0 }
|
|
482
|
-
),
|
|
495
|
+
), k(() => (it && (Y || Pe) && Me(
|
|
483
496
|
a.value ?? a.defaultValue
|
|
484
497
|
), () => {
|
|
485
|
-
}), []),
|
|
486
|
-
|
|
498
|
+
}), []), Wt(De) ? /* @__PURE__ */ y(
|
|
499
|
+
Gt,
|
|
487
500
|
{
|
|
488
501
|
...a,
|
|
489
|
-
...
|
|
502
|
+
...Ft,
|
|
490
503
|
ref: P,
|
|
491
|
-
value:
|
|
504
|
+
value: r,
|
|
492
505
|
inputValue: d,
|
|
493
|
-
popupVisible:
|
|
494
|
-
rtl:
|
|
495
|
-
prefixCls:
|
|
496
|
-
allowCreate: !!
|
|
497
|
-
ariaControls:
|
|
498
|
-
isEmptyValue:
|
|
506
|
+
popupVisible: h,
|
|
507
|
+
rtl: me,
|
|
508
|
+
prefixCls: f,
|
|
509
|
+
allowCreate: !!g,
|
|
510
|
+
ariaControls: Fe,
|
|
511
|
+
isEmptyValue: K,
|
|
499
512
|
isMultiple: u,
|
|
500
|
-
onSort:
|
|
513
|
+
onSort: _,
|
|
501
514
|
renderText: (e) => {
|
|
502
|
-
const t =
|
|
503
|
-
let
|
|
504
|
-
if (
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
515
|
+
const t = R(e);
|
|
516
|
+
let n = e;
|
|
517
|
+
if ($(he)) {
|
|
518
|
+
const o = B(e, !1);
|
|
519
|
+
n = he(
|
|
520
|
+
o.option || null,
|
|
521
|
+
o.value
|
|
509
522
|
);
|
|
510
523
|
} else {
|
|
511
|
-
let
|
|
512
|
-
if (
|
|
524
|
+
let o = !1;
|
|
525
|
+
if (H) {
|
|
513
526
|
const s = a.value || a.defaultValue;
|
|
514
|
-
if (
|
|
527
|
+
if (v(s)) {
|
|
515
528
|
const i = s.find(
|
|
516
|
-
(
|
|
529
|
+
(p) => b(p) && p.value === e
|
|
517
530
|
);
|
|
518
|
-
i && (
|
|
519
|
-
} else
|
|
531
|
+
i && (n = i.label, o = !0);
|
|
532
|
+
} else b(s) && (n = s.label, o = !0);
|
|
520
533
|
}
|
|
521
|
-
|
|
534
|
+
o || t && "children" in t && (n = t.children);
|
|
522
535
|
}
|
|
523
536
|
return {
|
|
524
|
-
text:
|
|
537
|
+
text: n,
|
|
525
538
|
disabled: t && t.disabled
|
|
526
539
|
};
|
|
527
540
|
},
|
|
528
|
-
readOnly:
|
|
529
|
-
renderView:
|
|
541
|
+
readOnly: Ie,
|
|
542
|
+
renderView: Ue
|
|
530
543
|
}
|
|
531
|
-
) :
|
|
544
|
+
) : Ue(De);
|
|
532
545
|
}
|
|
533
|
-
const
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
546
|
+
const an = Mt.forwardRef(sn), fe = an;
|
|
547
|
+
fe.displayName = "Select";
|
|
548
|
+
fe.Option = en;
|
|
549
|
+
fe.OptGroup = Zt;
|
|
537
550
|
export {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
551
|
+
en as SelectOption,
|
|
552
|
+
Zt as SelectOptionGroup,
|
|
553
|
+
fe as default
|
|
541
554
|
};
|