@unicom-cloud/ui 0.8.129 → 0.8.131
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 +7 -4
- 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 +6 -0
- 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/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/index.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/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/index.js +1 -1
- package/badge/Count.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/Item.js +1 -1
- package/breadcrumb/index.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 +146 -146
- package/cascader/base/node.js +26 -26
- package/cascader/base/store.js +16 -21
- package/cascader/hook/useRefCurrent.js +6 -6
- 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 +2 -2
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/IconCheck.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/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 +283 -285
- 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 +6 -6
- package/date-picker/panel/Footer.js +7 -7
- 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 +19 -19
- package/date-picker/panel/month/index.js +15 -15
- package/date-picker/panel/quarter/index.js +14 -14
- package/date-picker/panel/range/index.js +24 -24
- package/date-picker/panel/week/index.js +9 -9
- package/date-picker/panel/year/index.js +11 -11
- package/date-picker/utils.js +1 -1
- package/descriptions/index.js +29 -26
- 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 +717 -708
- 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 +17 -14
- 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 +7 -4
- 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 +13 -10
- 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 +110 -111
- package/picker/index.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.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 +6 -0
- 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/constant.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/lib/assets/icons/align-center.svg.js +1 -1
- package/rich-text/lib/assets/icons/align-justify.svg.js +1 -1
- package/rich-text/lib/assets/icons/align-left.svg.js +1 -1
- package/rich-text/lib/assets/icons/align-right.svg.js +1 -1
- package/rich-text/lib/assets/icons/background.svg.js +1 -1
- package/rich-text/lib/assets/icons/blockquote.svg.js +1 -1
- package/rich-text/lib/assets/icons/bold.svg.js +1 -1
- package/rich-text/lib/assets/icons/clean.svg.js +1 -1
- package/rich-text/lib/assets/icons/code.svg.js +1 -1
- package/rich-text/lib/assets/icons/color.svg.js +1 -1
- package/rich-text/lib/assets/icons/direction-ltr.svg.js +1 -1
- package/rich-text/lib/assets/icons/direction-rtl.svg.js +1 -1
- package/rich-text/lib/assets/icons/divider.svg.js +1 -1
- package/rich-text/lib/assets/icons/dropdown.svg.js +1 -1
- package/rich-text/lib/assets/icons/formula.svg.js +1 -1
- package/rich-text/lib/assets/icons/fullscreen-exit.svg.js +1 -1
- package/rich-text/lib/assets/icons/fullscreen.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-2.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-3.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-4.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-5.svg.js +1 -1
- package/rich-text/lib/assets/icons/header-6.svg.js +1 -1
- package/rich-text/lib/assets/icons/header.svg.js +1 -1
- package/rich-text/lib/assets/icons/image.svg.js +1 -1
- package/rich-text/lib/assets/icons/indent.svg.js +1 -1
- package/rich-text/lib/assets/icons/italic.svg.js +1 -1
- package/rich-text/lib/assets/icons/link.svg.js +1 -1
- package/rich-text/lib/assets/icons/list-bullet.svg.js +1 -1
- package/rich-text/lib/assets/icons/list-ordered.svg.js +1 -1
- package/rich-text/lib/assets/icons/outdent.svg.js +1 -1
- package/rich-text/lib/assets/icons/redo.svg.js +1 -1
- package/rich-text/lib/assets/icons/strike.svg.js +1 -1
- package/rich-text/lib/assets/icons/subscript.svg.js +1 -1
- package/rich-text/lib/assets/icons/superscript.svg.js +1 -1
- package/rich-text/lib/assets/icons/table.svg.js +1 -1
- package/rich-text/lib/assets/icons/underline.svg.js +1 -1
- package/rich-text/lib/assets/icons/undo.svg.js +1 -1
- package/rich-text/lib/assets/icons/video.svg.js +1 -1
- 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/instances.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/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-resize/index.js +1 -1
- package/rich-text/lib/formats/image-resize/modules/BaseModule.js +1 -1
- package/rich-text/lib/formats/image-resize/modules/DisplaySize.js +1 -1
- package/rich-text/lib/formats/image-resize/modules/Resize.js +1 -1
- package/rich-text/lib/formats/image-resize/options.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 +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/syntax.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 +21 -25
- 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/rich-text/lib/themes/base.js +1 -1
- package/rich-text/lib/themes/pqb.js +1 -1
- package/rich-text/lib/ui/color-picker.js +1 -1
- package/rich-text/lib/ui/icon-picker.js +1 -1
- package/rich-text/lib/ui/icons.js +1 -1
- package/rich-text/lib/ui/picker.js +1 -1
- package/rich-text/lib/ui/tooltip.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 +30 -28
- package/select/index.js +1 -1
- package/select/utils.js +1 -1
- package/select-view/Core.js +113 -113
- 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/style/variables.css +5 -2
- package/style.css +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 +342 -350
- 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 +27 -19
- package/time-picker/TimePicker.js +53 -51
- 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/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 +7 -7
- 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/cascader/base/store.d.ts +1 -0
- package/types/config-provider/interface.d.ts +0 -5
- package/types/date-picker/panel/Body.d.ts +1 -1
- package/types/date-picker/panel/Header.d.ts +1 -1
- package/types/date-picker/panel/Shortcut.d.ts +1 -1
- package/types/date-picker/panel/date/index.d.ts +1 -1
- package/types/date-picker/panel/month/index.d.ts +1 -1
- package/types/date-picker/panel/quarter/index.d.ts +1 -1
- package/types/date-picker/panel/range/index.d.ts +1 -1
- package/types/date-picker/panel/week/index.d.ts +1 -1
- package/types/date-picker/panel/year/index.d.ts +1 -1
- package/types/index.d.ts +3 -1
- package/types/progress2/index.d.ts +1 -0
- package/types/progress2/interface.d.ts +1 -0
- package/types/time-picker/TimeColumn.d.ts +1 -0
- package/types/time-picker/TimePicker.d.ts +1 -0
- package/types/utils/callOrReturn.d.ts +1 -0
- package/types/utils/fileRead.d.ts +1 -0
- package/types/utils/fileToDataURL.d.ts +1 -0
- package/types/utils/index.d.ts +3 -2
- package/types/utils/is.d.ts +1 -1
- package/types/utils/names.d.ts +1 -757
- 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 +29 -29
- package/upload/list/TextItem.js +24 -24
- package/upload/list/UploadProgress.js +4 -4
- package/upload/list/index.js +1 -1
- package/upload/list/utils.js +1 -1
- package/upload/request.js +13 -13
- package/upload/utils.js +1 -1
- package/utils/callOrReturn.js +6 -0
- 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 +6 -0
- package/utils/fileToDataURL.js +6 -0
- 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 +327 -321
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +87 -85
- 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 +119 -16
- 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/types/utils/fileToURL.d.ts +0 -3
- package/types/utils/resolveFunction.d.ts +0 -2
- package/utils/fileToURL.js +0 -7
- package/utils/resolveFunction.js +0 -9
package/segmented/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2025-12-
|
|
1
|
+
/* 2025-12-22 10:22:04 */
|
|
2
2
|
import { jsx as h, jsxs as H, Fragment as $e } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as he, useContext as ye, useMemo as ze, useState as xe, useRef as L, useEffect as K, useImperativeHandle as ve } from "react";
|
|
4
4
|
import "../config-provider/ConfigProvider.js";
|
package/select/OptGroup.js
CHANGED
package/select/Option.js
CHANGED
package/select/Select.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2025-12-
|
|
1
|
+
/* 2025-12-22 10:22:04 */
|
|
2
2
|
import { jsx as _, jsxs as wt } from "react/jsx-runtime";
|
|
3
3
|
import kt, { useContext as yt, useState as W, useMemo as Fe, useRef as v, useCallback as re, useEffect as V, useImperativeHandle as Pt } from "react";
|
|
4
4
|
import St from "../checkbox/Checkbox.js";
|
|
@@ -12,7 +12,7 @@ import _t from "../select-view/index.js";
|
|
|
12
12
|
import At from "../trigger/index.js";
|
|
13
13
|
import oe from "@unicom-cloud/ui-common/utils/className";
|
|
14
14
|
import Ft from "@unicom-cloud/ui-common/utils/getHotkeyHandler";
|
|
15
|
-
import { isArray as m, isPlainObject as
|
|
15
|
+
import { isArray as m, isPlainObject as O, isFunction as U, isNil as Mt } from "@unicom-cloud/ui-common/utils/is";
|
|
16
16
|
import { Esc as Lt, Enter as Le, Tab as Ne, ArrowUp as Nt, ArrowDown as Tt } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
17
17
|
import Ut from "@unicom-cloud/ui-common/utils/omit";
|
|
18
18
|
import Rt from "@unicom-cloud/ui-common/utils/warning";
|
|
@@ -30,7 +30,9 @@ function zt(Re, De) {
|
|
|
30
30
|
unmountOnExit: !0,
|
|
31
31
|
defaultActiveFirstOption: !0,
|
|
32
32
|
allowCheckAll: !0
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
|
+
let se = 4;
|
|
35
|
+
const {
|
|
34
36
|
prefixCls: He,
|
|
35
37
|
getPrefixCls: Ge,
|
|
36
38
|
renderEmpty: Ke,
|
|
@@ -55,14 +57,14 @@ function zt(Re, De) {
|
|
|
55
57
|
getPopupContainer: Je,
|
|
56
58
|
trigger: qe,
|
|
57
59
|
triggerElement: z,
|
|
58
|
-
triggerProps:
|
|
60
|
+
triggerProps: b,
|
|
59
61
|
dropdownRender: ge,
|
|
60
62
|
dropdownMenuStyle: he,
|
|
61
63
|
dropdownMenuClassName: Ce,
|
|
62
|
-
virtualListProps:
|
|
64
|
+
virtualListProps: Oe,
|
|
63
65
|
immediateTriggerChangeOnMount: Qe,
|
|
64
66
|
// events
|
|
65
|
-
onChange:
|
|
67
|
+
onChange: be,
|
|
66
68
|
onSelect: Xe,
|
|
67
69
|
onDeselect: Ye,
|
|
68
70
|
onClear: Ze,
|
|
@@ -88,14 +90,14 @@ function zt(Re, De) {
|
|
|
88
90
|
value: at ? a.inputValue || "" : void 0
|
|
89
91
|
}), [g, mt] = Me(!1, {
|
|
90
92
|
defaultValue: a.defaultPopupVisible,
|
|
91
|
-
value: ut ? a.popupVisible :
|
|
93
|
+
value: ut ? a.popupVisible : b && "popupVisible" in b ? b.popupVisible : void 0
|
|
92
94
|
}), [M, gt] = W(null), [L, ht] = W([]), [h, A] = W(() => m(n) ? n[0] : n), {
|
|
93
95
|
childrenList: X,
|
|
94
96
|
optionInfoMap: p,
|
|
95
97
|
optionValueList: w,
|
|
96
98
|
optionIndexListForArrowKey: P,
|
|
97
99
|
hasOptGroup: Ct,
|
|
98
|
-
hasComplexLabelInOptions:
|
|
100
|
+
hasComplexLabelInOptions: Ot
|
|
99
101
|
} = Fe(() => Gt(
|
|
100
102
|
{ children: ue, options: de, filterOption: me },
|
|
101
103
|
{
|
|
@@ -134,12 +136,12 @@ function zt(Re, De) {
|
|
|
134
136
|
},
|
|
135
137
|
[p]
|
|
136
138
|
), G = re(
|
|
137
|
-
(e, t = !1) =>
|
|
139
|
+
(e, t = !1) => O(f) && U(f?.formatter) ? f.formatter(e, t) : e,
|
|
138
140
|
[f]
|
|
139
141
|
), I = (e, t) => {
|
|
140
142
|
(e !== ke.current || t !== Z.current) && (ft(e), ke.current = e, Z.current = t, it?.(e, t));
|
|
141
143
|
}, F = (e) => {
|
|
142
|
-
g !== e && (mt(e), ot?.(e),
|
|
144
|
+
g !== e && (mt(e), ot?.(e), b?.onVisibleChange?.(e));
|
|
143
145
|
};
|
|
144
146
|
V(() => {
|
|
145
147
|
u ? m(n) || Q(n === void 0 ? [] : [n]) : m(n) && Q(n.length === 0 ? void 0 : n[0]);
|
|
@@ -165,13 +167,13 @@ function zt(Re, De) {
|
|
|
165
167
|
return !y || y._origin === Ue;
|
|
166
168
|
}).map((i) => G(i));
|
|
167
169
|
e = L.filter((i) => {
|
|
168
|
-
const l =
|
|
170
|
+
const l = O(i) ? i.value : i;
|
|
169
171
|
return o.includes(l);
|
|
170
172
|
}).concat(
|
|
171
173
|
r
|
|
172
174
|
);
|
|
173
175
|
}
|
|
174
|
-
const t = (o) => o.map((r) =>
|
|
176
|
+
const t = (o) => o.map((r) => O(r) ? r.value : r).toString();
|
|
175
177
|
t(e) !== t(L) && ht(e);
|
|
176
178
|
}
|
|
177
179
|
}, [n, f, u, G]), V(() => {
|
|
@@ -212,9 +214,9 @@ function zt(Re, De) {
|
|
|
212
214
|
const C = J ? a.value : ve ? a.defaultValue : null;
|
|
213
215
|
if (m(C)) {
|
|
214
216
|
for (const y of C)
|
|
215
|
-
if (
|
|
217
|
+
if (O(y) && y.value === i)
|
|
216
218
|
return y.label;
|
|
217
|
-
} else if (
|
|
219
|
+
} else if (O(C) && C.value === i)
|
|
218
220
|
return C.label;
|
|
219
221
|
};
|
|
220
222
|
m(e) ? o = e.map((i, l) => ({
|
|
@@ -228,9 +230,9 @@ function zt(Re, De) {
|
|
|
228
230
|
return { option: r, value: o };
|
|
229
231
|
};
|
|
230
232
|
function xe(e) {
|
|
231
|
-
if (
|
|
233
|
+
if (be) {
|
|
232
234
|
const t = K(e);
|
|
233
|
-
|
|
235
|
+
be(t.value, t.option);
|
|
234
236
|
}
|
|
235
237
|
}
|
|
236
238
|
const E = (e) => {
|
|
@@ -253,7 +255,7 @@ function zt(Re, De) {
|
|
|
253
255
|
t || (u ? (Ie(
|
|
254
256
|
e,
|
|
255
257
|
n.includes(e) ? "remove" : "add"
|
|
256
|
-
), (!
|
|
258
|
+
), (!O(fe) || !fe.retainInputValueWhileSelect) && I("", "optionChecked")) : (e !== n && E(e), setTimeout(() => {
|
|
257
259
|
F(!1);
|
|
258
260
|
})));
|
|
259
261
|
}, j = Ft(
|
|
@@ -289,8 +291,8 @@ function zt(Re, De) {
|
|
|
289
291
|
}
|
|
290
292
|
]
|
|
291
293
|
])
|
|
292
|
-
),
|
|
293
|
-
const e =
|
|
294
|
+
), bt = () => {
|
|
295
|
+
const e = b?.autoAlignPopupWidth === !1 && (!b?.style?.width || b?.style?.width === "auto"), t = e && Ot, o = pt ? ze : Ke("Select"), r = X.length ? /* @__PURE__ */ _(
|
|
294
296
|
Dt,
|
|
295
297
|
{
|
|
296
298
|
id: ye,
|
|
@@ -308,14 +310,14 @@ function zt(Re, De) {
|
|
|
308
310
|
k.current = null;
|
|
309
311
|
},
|
|
310
312
|
onScroll: (l) => rt?.(l.target),
|
|
311
|
-
...
|
|
312
|
-
threshold: t ? null :
|
|
313
|
+
...Oe,
|
|
314
|
+
threshold: t ? null : Oe?.threshold,
|
|
313
315
|
children: (l) => {
|
|
314
316
|
if (jt(l))
|
|
315
317
|
return /* @__PURE__ */ _(l.type, { ...l.props, prefixCls: c });
|
|
316
318
|
if (Wt(l)) {
|
|
317
|
-
const C = l.props?.value, y =
|
|
318
|
-
(T) =>
|
|
319
|
+
const C = l.props?.value, y = O(M) ? M.value : M, ne = L.map(
|
|
320
|
+
(T) => O(T) ? T.value : T
|
|
319
321
|
), Vt = {
|
|
320
322
|
prefixCls: c,
|
|
321
323
|
rtl: ae,
|
|
@@ -447,12 +449,12 @@ function zt(Re, De) {
|
|
|
447
449
|
h,
|
|
448
450
|
N,
|
|
449
451
|
H
|
|
450
|
-
]),
|
|
452
|
+
]), b?.showArrow && (se += 4);
|
|
451
453
|
const _e = (e) => /* @__PURE__ */ _(
|
|
452
454
|
At,
|
|
453
455
|
{
|
|
454
456
|
ref: we,
|
|
455
|
-
popup:
|
|
457
|
+
popup: bt,
|
|
456
458
|
trigger: qe,
|
|
457
459
|
disabled: We,
|
|
458
460
|
getPopupContainer: Je,
|
|
@@ -469,7 +471,7 @@ function zt(Re, De) {
|
|
|
469
471
|
__onExited: () => {
|
|
470
472
|
ee.current = !1, I("", "optionListHide");
|
|
471
473
|
},
|
|
472
|
-
...Ut(
|
|
474
|
+
...Ut(b, ["popupVisible", "onVisibleChange"]),
|
|
473
475
|
children: e
|
|
474
476
|
}
|
|
475
477
|
), Ae = U(z) ? z(K(n)) : z;
|
|
@@ -513,10 +515,10 @@ function zt(Re, De) {
|
|
|
513
515
|
const s = a.value || a.defaultValue;
|
|
514
516
|
if (m(s)) {
|
|
515
517
|
const i = s.find(
|
|
516
|
-
(l) =>
|
|
518
|
+
(l) => O(l) && l.value === e
|
|
517
519
|
);
|
|
518
520
|
i && (o = i.label, r = !0);
|
|
519
|
-
} else
|
|
521
|
+
} else O(s) && (o = s.label, r = !0);
|
|
520
522
|
}
|
|
521
523
|
!r && t && "children" in t && (o = t.children);
|
|
522
524
|
}
|
package/select/index.js
CHANGED
package/select/utils.js
CHANGED
package/select-view/Core.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/* 2025-12-
|
|
2
|
-
import { jsx as s, jsxs as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
/* 2025-12-22 10:22:04 */
|
|
2
|
+
import { jsx as s, jsxs as y } from "react/jsx-runtime";
|
|
3
|
+
import qe, { useRef as ae, useContext as Xe, useState as le, useEffect as Je, useImperativeHandle as Qe, useMemo as Ye, createElement as Ze } from "react";
|
|
4
|
+
import eo from "@unicom-cloud/icons/IconUiClose";
|
|
5
|
+
import oo from "@unicom-cloud/icons/IconUiDown";
|
|
6
|
+
import no from "@unicom-cloud/icons/IconUiLoading";
|
|
7
|
+
import to from "@unicom-cloud/icons/IconUiSearch";
|
|
8
8
|
import "../config-provider/ConfigProvider.js";
|
|
9
|
-
import { STRING_RESPONSIVE as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
9
|
+
import { STRING_RESPONSIVE as ro } from "../constant/index.js";
|
|
10
|
+
import so from "@unicom-cloud/ui-common/hooks/use-force-update";
|
|
11
|
+
import ao from "@unicom-cloud/ui-common/hooks/use-persist-callback";
|
|
12
|
+
import lo from "../icon-hover/index.js";
|
|
13
|
+
import co from "../input-tag/InputTag.js";
|
|
14
|
+
import io from "../input/InputElement.js";
|
|
15
|
+
import uo from "../popover/index.js";
|
|
16
16
|
import ce from "../tag/index.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { isPlainObject as v, isUndefined as
|
|
17
|
+
import S from "@unicom-cloud/ui-common/utils/className";
|
|
18
|
+
import mo from "@unicom-cloud/ui-common/utils/fillNBSP";
|
|
19
|
+
import fo from "@unicom-cloud/ui-common/utils/include";
|
|
20
|
+
import { isPlainObject as v, isUndefined as ie, isNumber as ue, isString as po, isObjectLike as de, isFunction as ho } from "@unicom-cloud/ui-common/utils/is";
|
|
21
21
|
import { Enter as go, Backspace as Co } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
22
22
|
import bo from "../config-provider/context.js";
|
|
23
23
|
const j = "__pqb_value_tag_placeholder", w = {
|
|
@@ -25,62 +25,62 @@ const j = "__pqb_value_tag_placeholder", w = {
|
|
|
25
25
|
EDITING: 1,
|
|
26
26
|
NONE: 2
|
|
27
27
|
};
|
|
28
|
-
function vo(x,
|
|
28
|
+
function vo(x, me) {
|
|
29
29
|
const {
|
|
30
30
|
id: fe,
|
|
31
|
-
style:
|
|
32
|
-
className:
|
|
33
|
-
size:
|
|
34
|
-
bordered:
|
|
35
|
-
allowClear:
|
|
36
|
-
allowCreate:
|
|
37
|
-
status:
|
|
38
|
-
loading:
|
|
31
|
+
style: pe,
|
|
32
|
+
className: he,
|
|
33
|
+
size: ge,
|
|
34
|
+
bordered: Ce,
|
|
35
|
+
allowClear: be,
|
|
36
|
+
allowCreate: ve,
|
|
37
|
+
status: xe,
|
|
38
|
+
loading: Ie,
|
|
39
39
|
disabled: g,
|
|
40
|
-
animation:
|
|
40
|
+
animation: we,
|
|
41
41
|
prefixCls: o,
|
|
42
42
|
suffixIcon: W,
|
|
43
43
|
arrowIcon: q,
|
|
44
|
-
removeIcon:
|
|
44
|
+
removeIcon: Ne,
|
|
45
45
|
clearIcon: D,
|
|
46
46
|
placeholder: X,
|
|
47
47
|
renderText: J,
|
|
48
48
|
value: C,
|
|
49
49
|
inputValue: R,
|
|
50
|
-
popupVisible:
|
|
50
|
+
popupVisible: f,
|
|
51
51
|
maxTagCount: c,
|
|
52
52
|
isMultiple: I,
|
|
53
53
|
isEmptyValue: F,
|
|
54
54
|
prefix: O,
|
|
55
|
-
ariaControls:
|
|
55
|
+
ariaControls: Te,
|
|
56
56
|
renderTag: V,
|
|
57
57
|
dragToSort: Q,
|
|
58
|
-
rtl:
|
|
59
|
-
htmlDataAttributes:
|
|
60
|
-
onKeyDown:
|
|
58
|
+
rtl: $e,
|
|
59
|
+
htmlDataAttributes: Se,
|
|
60
|
+
onKeyDown: Ee,
|
|
61
61
|
onChangeInputValue: Pe,
|
|
62
62
|
onPaste: ke,
|
|
63
|
-
onClear:
|
|
64
|
-
onFocus:
|
|
65
|
-
onBlur:
|
|
66
|
-
onRemoveCheckedItem:
|
|
63
|
+
onClear: ye,
|
|
64
|
+
onFocus: De,
|
|
65
|
+
onBlur: Re,
|
|
66
|
+
onRemoveCheckedItem: Fe,
|
|
67
67
|
onSort: M,
|
|
68
|
-
...
|
|
69
|
-
} = x, N = ae(null), b = ae(null), { size:
|
|
68
|
+
...Oe
|
|
69
|
+
} = x, N = ae(null), b = ae(null), { size: Ve, getPrefixCls: Y } = Xe(bo), [Me, Z] = le(w.NONE), [_, ee] = le(!1), _e = so(), T = "showSearch" in x ? x.showSearch : I, m = T || ve, E = ge || Ve, A = _ || f, Ae = v(T) && T.retainInputValue, p = !I && C !== void 0 ? J(C).text : "", B = (e) => {
|
|
70
70
|
e?.preventDefault?.();
|
|
71
71
|
}, U = (e) => {
|
|
72
72
|
const n = m ? N.current : b.current;
|
|
73
73
|
n && (e === "focus" ? n.focus() : n.blur());
|
|
74
|
-
},
|
|
75
|
-
m && n.target === b.current || (e === "focus" ? (ee(!0),
|
|
74
|
+
}, P = (e, n) => {
|
|
75
|
+
m && n.target === b.current || (e === "focus" ? (ee(!0), De?.(n)) : (ee(!1), Re?.(n)));
|
|
76
76
|
}, oe = (e) => {
|
|
77
77
|
if (m && e.currentTarget === b.current)
|
|
78
78
|
return;
|
|
79
|
-
e.key === go.key && e.preventDefault(),
|
|
79
|
+
e.key === go.key && e.preventDefault(), Ee?.(e);
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
U(
|
|
83
|
-
}, [
|
|
81
|
+
Je(() => {
|
|
82
|
+
U(f ? "focus" : "blur"), m && Z(f ? w.BEFORE : w.NONE);
|
|
83
|
+
}, [f]), Qe(me, () => ({
|
|
84
84
|
getRootElement() {
|
|
85
85
|
return b.current;
|
|
86
86
|
},
|
|
@@ -88,78 +88,78 @@ function vo(x, pe) {
|
|
|
88
88
|
blur: U.bind(null, "blur"),
|
|
89
89
|
getWidth: () => b.current && b.current.clientWidth
|
|
90
90
|
}));
|
|
91
|
-
const
|
|
91
|
+
const Be = "arrowIcon" in x ? q === null ? null : /* @__PURE__ */ s("div", { className: `${o}-arrow-icon`, children: q }) : /* @__PURE__ */ s("div", { className: `${o}-arrow-icon`, children: /* @__PURE__ */ s(oo, {}) }), Ue = Ie ? /* @__PURE__ */ s("span", { className: `${o}-loading-icon`, children: /* @__PURE__ */ s(no, {}) }) : W ? /* @__PURE__ */ s("span", { className: `${o}-suffix-icon`, children: W }) : x.showSearch && f ? /* @__PURE__ */ s("div", { className: `${o}-search-icon`, children: /* @__PURE__ */ s(to, {}) }) : Be, i = {
|
|
92
92
|
paste: ke,
|
|
93
93
|
keyDown: oe,
|
|
94
94
|
focus: (e) => {
|
|
95
|
-
e.stopPropagation(),
|
|
95
|
+
e.stopPropagation(), P("focus", e);
|
|
96
96
|
},
|
|
97
97
|
blur: (e) => {
|
|
98
|
-
e.stopPropagation(),
|
|
98
|
+
e.stopPropagation(), P("blur", e);
|
|
99
99
|
},
|
|
100
100
|
change: (e, n) => {
|
|
101
101
|
Z(w.EDITING), Pe?.(e, n);
|
|
102
102
|
}
|
|
103
|
-
},
|
|
103
|
+
}, ze = () => {
|
|
104
104
|
let e;
|
|
105
|
-
switch (
|
|
105
|
+
switch (Me) {
|
|
106
106
|
case w.BEFORE:
|
|
107
|
-
e = R || (
|
|
107
|
+
e = R || (Ae ? p : "");
|
|
108
108
|
break;
|
|
109
109
|
case w.EDITING:
|
|
110
110
|
e = R || "";
|
|
111
111
|
break;
|
|
112
112
|
default:
|
|
113
|
-
e =
|
|
113
|
+
e = p;
|
|
114
114
|
break;
|
|
115
115
|
}
|
|
116
116
|
const n = !!(A && m || F), r = {
|
|
117
117
|
style: { width: "100%" },
|
|
118
118
|
// _inputValue after renderText(value) may be rich text, but the value of <input> cannot be object
|
|
119
|
-
value: n &&
|
|
119
|
+
value: n && de(e) ? "" : e,
|
|
120
120
|
// Allow placeholder to display the selected value first when searching
|
|
121
121
|
placeholder: m && // 0 can also be used as a placeholder, because when options is number[], the selected value may be 0
|
|
122
|
-
(
|
|
122
|
+
(p || p === 0) && !de(p) ? p : X
|
|
123
123
|
};
|
|
124
|
-
return m ? (r.onPaste = i.paste, r.onKeyDown = i.keyDown, r.onFocus = i.focus, r.onBlur = i.blur, r.onChange = i.change) : (r.tabIndex = -1, r.style.pointerEvents = "none"), /* @__PURE__ */
|
|
124
|
+
return m ? (r.onPaste = i.paste, r.onKeyDown = i.keyDown, r.onFocus = i.focus, r.onBlur = i.blur, r.onChange = i.change) : (r.tabIndex = -1, r.style.pointerEvents = "none"), F ? e = r.placeholder : r.value || (e = r.placeholder), /* @__PURE__ */ y("span", { className: `${o}-view-selector`, children: [
|
|
125
125
|
/* @__PURE__ */ s(
|
|
126
|
-
|
|
126
|
+
io,
|
|
127
127
|
{
|
|
128
128
|
"aria-hidden": !n || void 0,
|
|
129
129
|
ref: N,
|
|
130
130
|
disabled: g,
|
|
131
|
-
className:
|
|
131
|
+
className: S(`${o}-view-input`, {
|
|
132
132
|
[`${o}-hidden`]: !n
|
|
133
133
|
}),
|
|
134
134
|
autoComplete: "off",
|
|
135
135
|
...r
|
|
136
136
|
}
|
|
137
137
|
),
|
|
138
|
-
n ? /* @__PURE__ */ s("span", { className: `${o}-view-value-mirror`, children: ie(r.value ? e : r.placeholder) }) : null,
|
|
139
138
|
/* @__PURE__ */ s(
|
|
140
139
|
"span",
|
|
141
140
|
{
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
className: S(
|
|
142
|
+
n ? `${o}-view-value-mirror` : `${o}-view-value`
|
|
143
|
+
),
|
|
144
|
+
children: mo(e)
|
|
145
145
|
}
|
|
146
146
|
)
|
|
147
147
|
] });
|
|
148
|
-
}, z =
|
|
148
|
+
}, z = ao(J), ne = v(c) ? c.count : c, te = (e) => {
|
|
149
149
|
const n = z(e);
|
|
150
150
|
return { value: e, label: n.text, closable: !n.disabled };
|
|
151
|
-
}, L =
|
|
151
|
+
}, L = Ye(() => {
|
|
152
152
|
if (!I)
|
|
153
153
|
return [];
|
|
154
|
-
const e =
|
|
155
|
-
return (
|
|
156
|
-
}, [C, I, c, z]),
|
|
157
|
-
const e = v(c) ? c.count : c, n = e ===
|
|
154
|
+
const e = ie(C) ? [] : [].concat(C);
|
|
155
|
+
return (ue(ne) ? e.slice(0, ne) : e).map((k, G, h) => te(k));
|
|
156
|
+
}, [C, I, c, z]), Le = () => {
|
|
157
|
+
const e = v(c) ? c.count : c, n = e === ro, r = v(c) && c.showPopover, k = Y?.("input-tag"), G = (t) => {
|
|
158
158
|
let a = `+${t}...`;
|
|
159
|
-
return v(c) && ho(c.render) ? a = c.render(t) : n && (a = /* @__PURE__ */
|
|
159
|
+
return v(c) && ho(c.render) ? a = c.render(t) : n && (a = /* @__PURE__ */ y(
|
|
160
160
|
ce,
|
|
161
161
|
{
|
|
162
|
-
className: `${
|
|
162
|
+
className: `${k}-tag`,
|
|
163
163
|
children: [
|
|
164
164
|
"+",
|
|
165
165
|
t,
|
|
@@ -168,7 +168,7 @@ function vo(x, pe) {
|
|
|
168
168
|
},
|
|
169
169
|
j
|
|
170
170
|
)), a;
|
|
171
|
-
}, h =
|
|
171
|
+
}, h = ie(C) ? [] : [].concat(C), Ke = () => {
|
|
172
172
|
for (let t = h.length - 1; t >= 0; t--) {
|
|
173
173
|
const a = h[t];
|
|
174
174
|
if (!z(a).disabled)
|
|
@@ -184,9 +184,9 @@ function vo(x, pe) {
|
|
|
184
184
|
onRemove: (t, a, u) => {
|
|
185
185
|
const $ = u.key;
|
|
186
186
|
let l = -1;
|
|
187
|
-
$ === Co.key && (l =
|
|
187
|
+
$ === Co.key && (l = Ke()) !== -1 && (t = h[l], a = l), c && _e(), Fe?.(t, a, u);
|
|
188
188
|
}
|
|
189
|
-
},
|
|
189
|
+
}, je = {
|
|
190
190
|
suffix: null,
|
|
191
191
|
prefix: null,
|
|
192
192
|
addBefore: null,
|
|
@@ -194,7 +194,7 @@ function vo(x, pe) {
|
|
|
194
194
|
allowClear: !1,
|
|
195
195
|
labelInValue: !1
|
|
196
196
|
}, se = (() => {
|
|
197
|
-
if (
|
|
197
|
+
if (ue(e)) {
|
|
198
198
|
const t = h.length - e;
|
|
199
199
|
if (t > 0) {
|
|
200
200
|
const a = {
|
|
@@ -217,19 +217,19 @@ function vo(x, pe) {
|
|
|
217
217
|
},
|
|
218
218
|
l.index,
|
|
219
219
|
L.concat(a)
|
|
220
|
-
) : /* @__PURE__ */
|
|
220
|
+
) : /* @__PURE__ */ Ze(
|
|
221
221
|
ce,
|
|
222
222
|
{
|
|
223
223
|
...d,
|
|
224
224
|
key: d.value,
|
|
225
|
-
className: `${
|
|
225
|
+
className: `${k}-tag`,
|
|
226
226
|
onClose: (K) => H.onRemove(d.value, l.index, K)
|
|
227
227
|
},
|
|
228
228
|
d.label
|
|
229
229
|
);
|
|
230
230
|
}), $ = v(r) ? r : {};
|
|
231
231
|
a.label = /* @__PURE__ */ s(
|
|
232
|
-
|
|
232
|
+
uo,
|
|
233
233
|
{
|
|
234
234
|
...$,
|
|
235
235
|
content: !!u.length && /* @__PURE__ */ s(
|
|
@@ -248,24 +248,24 @@ function vo(x, pe) {
|
|
|
248
248
|
return a;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
})(),
|
|
251
|
+
})(), We = se ? L.concat(se) : L;
|
|
252
252
|
return /* @__PURE__ */ s(
|
|
253
|
-
|
|
253
|
+
co,
|
|
254
254
|
{
|
|
255
|
-
...
|
|
255
|
+
...je,
|
|
256
256
|
className: A ? `${Y?.("input-tag")}-focus` : "",
|
|
257
257
|
ref: N,
|
|
258
258
|
disabled: g,
|
|
259
259
|
dragToSort: Q,
|
|
260
260
|
disableInput: !T,
|
|
261
|
-
animation:
|
|
261
|
+
animation: we,
|
|
262
262
|
placeholder: X,
|
|
263
|
-
value:
|
|
263
|
+
value: We,
|
|
264
264
|
inputValue: R,
|
|
265
|
-
size:
|
|
265
|
+
size: E,
|
|
266
266
|
tagClassName: `${o}-tag`,
|
|
267
267
|
renderTag: V,
|
|
268
|
-
icon: { removeIcon:
|
|
268
|
+
icon: { removeIcon: Ne },
|
|
269
269
|
maxTagCount: n ? {
|
|
270
270
|
count: e,
|
|
271
271
|
render: G,
|
|
@@ -288,30 +288,30 @@ function vo(x, pe) {
|
|
|
288
288
|
...H
|
|
289
289
|
}
|
|
290
290
|
);
|
|
291
|
-
}, re =
|
|
292
|
-
|
|
291
|
+
}, re = xe || (x.error ? "error" : void 0), Ge = !g && !F && be ? /* @__PURE__ */ s(
|
|
292
|
+
lo,
|
|
293
293
|
{
|
|
294
|
-
size:
|
|
294
|
+
size: E,
|
|
295
295
|
className: `${o}-clear-icon`,
|
|
296
|
-
onClick:
|
|
296
|
+
onClick: ye,
|
|
297
297
|
onMouseDown: B,
|
|
298
|
-
children: D ?? /* @__PURE__ */ s(
|
|
298
|
+
children: D ?? /* @__PURE__ */ s(eo, {})
|
|
299
299
|
},
|
|
300
300
|
"clearIcon"
|
|
301
|
-
) : null,
|
|
301
|
+
) : null, He = S(
|
|
302
302
|
o,
|
|
303
303
|
`${o}-${I ? "multiple" : "single"}`,
|
|
304
304
|
{
|
|
305
305
|
[`${o}-show-search`]: T,
|
|
306
|
-
[`${o}-open`]:
|
|
307
|
-
[`${o}-size-${
|
|
306
|
+
[`${o}-open`]: f,
|
|
307
|
+
[`${o}-size-${E}`]: E,
|
|
308
308
|
[`${o}-focused`]: A,
|
|
309
309
|
[`${o}-${re}`]: re,
|
|
310
310
|
[`${o}-disabled`]: g,
|
|
311
|
-
[`${o}-no-border`]: !
|
|
312
|
-
[`${o}-rtl`]:
|
|
311
|
+
[`${o}-no-border`]: !Ce,
|
|
312
|
+
[`${o}-rtl`]: $e
|
|
313
313
|
},
|
|
314
|
-
|
|
314
|
+
he
|
|
315
315
|
);
|
|
316
316
|
return /* @__PURE__ */ s(
|
|
317
317
|
"div",
|
|
@@ -319,49 +319,49 @@ function vo(x, pe) {
|
|
|
319
319
|
role: "combobox",
|
|
320
320
|
"aria-haspopup": "listbox",
|
|
321
321
|
"aria-autocomplete": "list",
|
|
322
|
-
"aria-expanded":
|
|
322
|
+
"aria-expanded": f,
|
|
323
323
|
"aria-disabled": g,
|
|
324
|
-
"aria-controls":
|
|
325
|
-
...
|
|
326
|
-
...
|
|
324
|
+
"aria-controls": Te,
|
|
325
|
+
...fo(Oe, ["onClick", "onMouseEnter", "onMouseLeave"]),
|
|
326
|
+
...Se,
|
|
327
327
|
ref: b,
|
|
328
328
|
tabIndex: g ? -1 : 0,
|
|
329
329
|
id: fe,
|
|
330
|
-
style:
|
|
331
|
-
className:
|
|
330
|
+
style: pe,
|
|
331
|
+
className: He,
|
|
332
332
|
onKeyDown: oe,
|
|
333
333
|
onFocus: (e) => {
|
|
334
|
-
!g && !Q && (m ? N.current && N.current.focus() :
|
|
334
|
+
!g && !Q && (m ? N.current && N.current.focus() : P("focus", e));
|
|
335
335
|
},
|
|
336
|
-
onBlur: (e) =>
|
|
337
|
-
children: /* @__PURE__ */
|
|
336
|
+
onBlur: (e) => P("blur", e),
|
|
337
|
+
children: /* @__PURE__ */ y(
|
|
338
338
|
"div",
|
|
339
339
|
{
|
|
340
|
-
title:
|
|
341
|
-
className:
|
|
340
|
+
title: po(p) ? p : void 0,
|
|
341
|
+
className: S(`${o}-view`, {
|
|
342
342
|
[`${o}-view-with-prefix`]: O
|
|
343
343
|
}),
|
|
344
|
-
onClick: (e) =>
|
|
344
|
+
onClick: (e) => f && m && e.stopPropagation(),
|
|
345
345
|
children: [
|
|
346
346
|
O && /* @__PURE__ */ s(
|
|
347
347
|
"div",
|
|
348
348
|
{
|
|
349
349
|
"aria-hidden": "true",
|
|
350
|
-
className:
|
|
350
|
+
className: S(`${o}-prefix`),
|
|
351
351
|
onMouseDown: (e) => _ && B(e),
|
|
352
352
|
children: O
|
|
353
353
|
}
|
|
354
354
|
),
|
|
355
|
-
I ?
|
|
356
|
-
/* @__PURE__ */
|
|
355
|
+
I ? Le() : ze(),
|
|
356
|
+
/* @__PURE__ */ y(
|
|
357
357
|
"div",
|
|
358
358
|
{
|
|
359
359
|
"aria-hidden": "true",
|
|
360
360
|
className: `${o}-suffix`,
|
|
361
361
|
onMouseDown: (e) => _ && B(e),
|
|
362
362
|
children: [
|
|
363
|
-
|
|
364
|
-
|
|
363
|
+
Ge,
|
|
364
|
+
Ue
|
|
365
365
|
]
|
|
366
366
|
}
|
|
367
367
|
)
|
|
@@ -371,7 +371,7 @@ function vo(x, pe) {
|
|
|
371
371
|
}
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
|
-
const zo =
|
|
374
|
+
const zo = qe.forwardRef(vo);
|
|
375
375
|
export {
|
|
376
376
|
zo as default
|
|
377
377
|
};
|
package/select-view/index.js
CHANGED