@unicom-cloud/ui 0.8.133 → 0.8.135
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 +16 -15
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Constant.js +1 -1
- package/Copy.js +2 -2
- package/Countdown.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +4 -3
- 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 +4 -3
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +7 -3
- 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 +4 -3
- 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 +2 -2
- package/Popover.js +3 -11
- package/Portal.js +3 -7
- package/Progress.js +1 -1
- package/Progress2.js +1 -1
- package/QrCode.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +5 -4
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +36 -24
- package/RowCol.js +1 -1
- package/Segmented.js +1 -1
- package/Select.js +1 -1
- package/SelectView.js +4 -3
- package/Skeleton.js +1 -1
- package/Slider.js +4 -3
- 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 +4 -3
- 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 +3 -13
- package/Tour.js +1 -1
- package/Transfer.js +4 -3
- 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 +17 -16
- 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 +117 -112
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +2 -2
- 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 +33 -32
- 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 +130 -127
- 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 +37 -36
- package/cascader/panel/Option.js +1 -1
- package/cascader/panel/Search.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +91 -86
- package/checkbox/Group.js +83 -67
- package/checkbox/GroupBlock.js +93 -59
- 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 +2 -2
- package/color-picker/colors.js +1 -1
- package/color-picker/hooks/useColorPicker.js +99 -104
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.js +145 -131
- 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 +42 -60
- package/config-provider/context.js +14 -13
- package/config-provider/index.js +1 -1
- package/config-provider/useConfigProvider.js +38 -0
- package/constant/index.js +1 -1
- package/copy/index.js +2 -2
- package/countdown/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/Picker.js +260 -254
- package/date-picker/RangePicker.js +315 -309
- 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 +2 -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 +44 -38
- 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 +93 -94
- package/form/FormItem.js +140 -133
- package/form/FormLabel.js +38 -37
- 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 +29 -26
- 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 +198 -198
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/ImagePreviewToolbar.js +2 -2
- 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 +551 -549
- package/input/Button.js +69 -57
- package/input/Group.js +1 -1
- package/input/Input.js +144 -133
- package/input/InputElement.js +123 -118
- package/input/Number.js +1 -1
- package/input/Password.js +60 -41
- package/input/Search.js +62 -43
- package/input/Tag.js +1 -1
- package/input/Textarea.js +106 -100
- 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 +132 -128
- package/input-number/useSelectionRange.js +1 -1
- package/input-number/utils.js +1 -1
- package/input-tag/InputTag.js +221 -209
- 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 +30 -29
- 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 +36 -48
- package/masonry/Masonry.js +2 -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 +90 -85
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.js +2 -2
- 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 +4 -3
- package/modal/Confirm.js +1 -1
- package/modal/Modal.js +2 -2
- 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 +4 -3
- 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 +4 -3
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/pagination/interface.js +1 -1
- package/picker/Input.js +99 -94
- package/picker/InputRange.js +130 -125
- package/picker/index.js +1 -1
- package/popconfirm/index.js +2 -2
- package/popover/Popover.js +75 -0
- package/popover/index.js +3 -73
- package/portal/Portal.js +28 -0
- package/portal/index.js +3 -21
- package/progress/CircleProgress.js +2 -2
- 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 +48 -47
- package/qr-code/src/qrcodegen.js +1 -1
- package/radio/Group.js +91 -68
- package/radio/GroupBlock.js +86 -62
- package/radio/Radio.js +80 -67
- package/radio/index.js +1 -1
- package/rate/index.js +83 -82
- 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 +509 -420
- package/rich-text/constant.js +1 -1
- package/rich-text/index.js +375 -338
- 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 +3 -1
- package/rich-text/lib/core/emitter.js +15 -33
- 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 +180 -174
- package/rich-text/lib/core/selection.js +114 -99
- package/rich-text/lib/core/theme.js +5 -4
- 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 +21 -21
- 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 +16 -15
- package/rich-text/lib/formats/background.js +11 -10
- package/rich-text/lib/formats/blockquote.js +1 -1
- package/rich-text/lib/formats/bold.js +2 -2
- package/rich-text/lib/formats/code.js +1 -1
- package/rich-text/lib/formats/color.js +15 -13
- package/rich-text/lib/formats/direction.js +12 -11
- package/rich-text/lib/formats/emoji.js +19 -0
- package/rich-text/lib/formats/font.js +51 -16
- package/rich-text/lib/formats/formula.js +1 -1
- package/rich-text/lib/formats/header.js +15 -7
- package/rich-text/lib/formats/hr.js +18 -12
- package/rich-text/lib/formats/image.js +1 -1
- package/rich-text/lib/formats/indent.js +11 -10
- package/rich-text/lib/formats/italic.js +2 -2
- package/rich-text/lib/formats/lineHeight.js +2 -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 +5 -3
- package/rich-text/lib/formats/size.js +17 -15
- package/rich-text/lib/formats/strike.js +1 -1
- package/rich-text/lib/formats/table.js +2 -2
- package/rich-text/lib/formats/underline.js +1 -1
- package/rich-text/lib/formats/video.js +1 -1
- package/rich-text/lib/index.js +48 -43
- package/rich-text/lib/modules/clipboard.js +1 -1
- package/rich-text/lib/modules/history.js +13 -16
- package/rich-text/lib/{formats → modules}/image-resize/index.js +9 -8
- package/rich-text/lib/{formats/image-resize/modules/BaseModule.js → modules/image-resize/modules/Base.js} +4 -4
- package/rich-text/lib/{formats → modules}/image-resize/modules/DisplaySize.js +2 -2
- package/rich-text/lib/{formats → modules}/image-resize/modules/Resize.js +2 -2
- package/rich-text/lib/{formats → modules}/image-resize/options.js +1 -1
- package/rich-text/lib/modules/input.js +36 -30
- 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 +58 -55
- 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 +11 -11
- package/select/Select.js +280 -281
- package/select/index.js +1 -1
- package/select/utils.js +1 -1
- package/select-view/Core.js +234 -218
- package/select-view/index.js +42 -39
- 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 +48 -43
- 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 +176 -168
- 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/normalize.less +6 -6
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/switch/index.js +80 -76
- 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 +2 -2
- 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 +2 -2
- 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 +174 -168
- package/time-picker/RangePicker.js +41 -38
- 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 +139 -0
- package/tooltip/index.js +3 -141
- package/tour/index.js +1 -1
- package/transfer/Item.js +61 -56
- package/transfer/List.js +147 -121
- package/transfer/index.js +113 -109
- package/tree/Animation.js +1 -1
- package/tree/Context.js +1 -1
- package/tree/Node.js +22 -21
- 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 +105 -99
- 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/anchor/utils.d.ts +1 -1
- package/types/auto-complete/AutoComplete.d.ts +1 -1
- package/types/auto-complete/interface.d.ts +2 -1
- package/types/cascader/interface.d.ts +3 -2
- package/types/checkbox/Group.d.ts +2 -1
- package/types/checkbox/GroupBlock.d.ts +2 -1
- package/types/checkbox/interface.d.ts +3 -2
- package/types/color-picker/interface.d.ts +2 -1
- package/types/config-provider/interface.d.ts +11 -10
- package/types/config-provider/useConfigProvider.d.ts +5 -0
- package/types/date-picker/interface.d.ts +2 -2
- package/types/form/FormLabel.d.ts +1 -1
- package/types/form/context.d.ts +0 -1
- package/types/form/interface.d.ts +5 -4
- package/types/icon-hover/interface.d.ts +2 -1
- package/types/input/interface.d.ts +4 -9
- package/types/input-number/interface.d.ts +2 -6
- package/types/input-tag/interface.d.ts +2 -6
- package/types/interface.d.ts +7 -0
- package/types/picker/Input.d.ts +2 -30
- package/types/picker/InputRange.d.ts +2 -34
- package/types/picker/interface.d.ts +59 -0
- package/types/popover/Popover.d.ts +6 -0
- package/types/popover/index.d.ts +3 -6
- package/types/portal/Portal.d.ts +4 -0
- package/types/portal/index.d.ts +4 -4
- package/types/portal/interface.d.ts +0 -1
- package/types/radio/interface.d.ts +4 -2
- package/types/rate/interface.d.ts +2 -6
- package/types/rich-text/interface.d.ts +8 -0
- package/types/rich-text/lib/core/editor.d.ts +1 -0
- package/types/rich-text/lib/core/emitter.d.ts +8 -8
- package/types/rich-text/lib/core/rich.d.ts +5 -2
- package/types/rich-text/lib/core/selection.d.ts +5 -0
- package/types/rich-text/lib/core/theme.d.ts +1 -1
- package/types/rich-text/lib/delta/index.d.ts +1 -0
- package/types/rich-text/lib/formats/align.d.ts +2 -1
- package/types/rich-text/lib/formats/background.d.ts +2 -1
- package/types/rich-text/lib/formats/color.d.ts +2 -1
- package/types/rich-text/lib/formats/direction.d.ts +2 -1
- package/types/rich-text/lib/formats/emoji.d.ts +7 -0
- package/types/rich-text/lib/formats/font.d.ts +6 -1
- package/types/rich-text/lib/formats/header.d.ts +5 -0
- package/types/rich-text/lib/formats/hr.d.ts +3 -0
- package/types/rich-text/lib/formats/indent.d.ts +2 -0
- package/types/rich-text/lib/formats/liOl.d.ts +2 -2
- package/types/rich-text/lib/formats/liUl.d.ts +2 -2
- package/types/rich-text/lib/formats/lineHeight.d.ts +2 -0
- package/types/rich-text/lib/formats/list.d.ts +2 -2
- package/types/rich-text/lib/formats/size.d.ts +3 -1
- package/types/rich-text/lib/formats/table.d.ts +3 -3
- package/types/rich-text/lib/modules/history.d.ts +1 -0
- package/types/rich-text/lib/{formats → modules}/image-resize/index.d.ts +2 -3
- package/types/rich-text/lib/{formats/image-resize/modules/BaseModule.d.ts → modules/image-resize/modules/Base.d.ts} +2 -1
- package/types/rich-text/lib/{formats → modules}/image-resize/modules/DisplaySize.d.ts +1 -1
- package/types/rich-text/lib/{formats → modules}/image-resize/modules/Resize.d.ts +1 -1
- package/types/rich-text/lib/modules/input.d.ts +1 -0
- package/types/rich-text/lib/modules/table.d.ts +4 -2
- package/types/select/interface.d.ts +7 -7
- package/types/select-view/interface.d.ts +4 -4
- package/types/slider/Input.d.ts +2 -1
- package/types/slider/interface.d.ts +2 -1
- package/types/switch/interface.d.ts +2 -1
- package/types/time-picker/interface.d.ts +2 -1
- package/types/tooltip/Tooltip.d.ts +6 -0
- package/types/tooltip/index.d.ts +3 -10
- package/types/tooltip/interface.d.ts +4 -0
- package/types/transfer/interface.d.ts +4 -3
- package/types/typography/interface.d.ts +1 -1
- package/types/upload/Upload.d.ts +0 -5
- package/types/upload/interface.d.ts +8 -2
- package/types/utils/string.d.ts +2 -0
- package/types/verification-code/interface.d.ts +2 -6
- package/typography/Base.js +3 -3
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +2 -2
- package/typography/Operations.js +2 -2
- 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 +115 -106
- package/upload/Uploader.js +1 -1
- package/upload/constant.js +1 -1
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +47 -39
- package/upload/list/TextItem.js +73 -58
- package/upload/list/UploadProgress.js +2 -2
- package/upload/list/index.js +65 -58
- 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 +176 -174
- 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 +5 -5
- 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 +5 -3
- 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 +80 -61
- 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/checkbox/IconCheck.js +0 -20
- package/rich-text/lib/diff/index.d.ts +0 -21
- package/types/checkbox/IconCheck.d.ts +0 -4
- /package/types/rich-text/lib/{formats → modules}/image-resize/options.d.ts +0 -0
package/select/index.js
CHANGED
package/select/utils.js
CHANGED
package/select-view/Core.js
CHANGED
|
@@ -1,243 +1,253 @@
|
|
|
1
|
-
/*
|
|
2
|
-
import { jsx as s, jsxs as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
/* 2026-01-08 16:35:57 */
|
|
2
|
+
import { jsx as s, jsxs as D } from "react/jsx-runtime";
|
|
3
|
+
import Qe, { useContext as W, useRef as ce, useState as ie, useEffect as Ze, useImperativeHandle as eo, useMemo as oo, createElement as no } from "react";
|
|
4
|
+
import ro from "@unicom-cloud/icons/IconUiClose";
|
|
5
|
+
import to from "@unicom-cloud/icons/IconUiDown";
|
|
6
|
+
import so from "@unicom-cloud/icons/IconUiLoading";
|
|
7
|
+
import ao 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
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
|
|
9
|
+
import { STRING_RESPONSIVE as lo } from "../constant/index.js";
|
|
10
|
+
import { FormContext as co, FormItemContext as io } from "../form/context.js";
|
|
11
|
+
import uo from "@unicom-cloud/ui-common/hooks/use-force-update";
|
|
12
|
+
import mo from "@unicom-cloud/ui-common/hooks/use-persist-callback";
|
|
13
|
+
import fo from "../icon-hover/index.js";
|
|
14
|
+
import po from "../input-tag/InputTag.js";
|
|
15
|
+
import ho from "../input/InputElement.js";
|
|
16
|
+
import go from "../popover/Popover.js";
|
|
17
|
+
import ue from "../tag/index.js";
|
|
18
|
+
import { callOrReturn as Co } from "@unicom-cloud/utils/function";
|
|
19
|
+
import y from "@unicom-cloud/ui-common/utils/className";
|
|
20
|
+
import xo from "@unicom-cloud/ui-common/utils/fillNBSP";
|
|
21
|
+
import bo from "@unicom-cloud/ui-common/utils/include";
|
|
22
|
+
import { isPlainObject as v, isUndefined as de, isNumber as me, isString as vo, isObjectLike as fe, isFunction as Io } from "@unicom-cloud/ui-common/utils/is";
|
|
23
|
+
import { Enter as wo, Backspace as No } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
24
|
+
import { HYPHEN as To } from "@unicom-cloud/utils/constant/string";
|
|
25
|
+
import "@unicom-cloud/ui-common/utils/string";
|
|
26
|
+
import $o from "../config-provider/context.js";
|
|
27
|
+
const q = "__pqb_value_tag_placeholder", N = {
|
|
24
28
|
BEFORE: 0,
|
|
25
29
|
EDITING: 1,
|
|
26
30
|
NONE: 2
|
|
27
31
|
};
|
|
28
|
-
function
|
|
29
|
-
const {
|
|
30
|
-
id:
|
|
31
|
-
style:
|
|
32
|
-
className:
|
|
33
|
-
size:
|
|
34
|
-
bordered:
|
|
35
|
-
allowClear:
|
|
36
|
-
allowCreate:
|
|
37
|
-
status:
|
|
38
|
-
loading:
|
|
39
|
-
disabled:
|
|
32
|
+
function So(I, pe) {
|
|
33
|
+
const he = W(co), ge = W(io), {
|
|
34
|
+
id: Ce,
|
|
35
|
+
style: xe,
|
|
36
|
+
className: be,
|
|
37
|
+
size: ve,
|
|
38
|
+
bordered: Ie,
|
|
39
|
+
allowClear: we,
|
|
40
|
+
allowCreate: Ne,
|
|
41
|
+
status: Te,
|
|
42
|
+
loading: $e,
|
|
43
|
+
disabled: C,
|
|
40
44
|
prefixCls: o,
|
|
41
|
-
|
|
42
|
-
arrowIcon:
|
|
43
|
-
removeIcon:
|
|
44
|
-
clearIcon:
|
|
45
|
-
placeholder:
|
|
45
|
+
suffix: X,
|
|
46
|
+
arrowIcon: Y,
|
|
47
|
+
removeIcon: Se,
|
|
48
|
+
clearIcon: F,
|
|
49
|
+
placeholder: ye,
|
|
46
50
|
renderText: J,
|
|
47
|
-
value:
|
|
48
|
-
inputValue:
|
|
49
|
-
popupVisible:
|
|
51
|
+
value: x,
|
|
52
|
+
inputValue: O,
|
|
53
|
+
popupVisible: p,
|
|
50
54
|
maxTagCount: c,
|
|
51
|
-
isMultiple:
|
|
52
|
-
isEmptyValue:
|
|
53
|
-
prefix:
|
|
54
|
-
ariaControls:
|
|
55
|
-
renderTag:
|
|
55
|
+
isMultiple: w,
|
|
56
|
+
isEmptyValue: R,
|
|
57
|
+
prefix: V,
|
|
58
|
+
ariaControls: Pe,
|
|
59
|
+
renderTag: M,
|
|
56
60
|
dragToSort: Q,
|
|
57
|
-
rtl:
|
|
58
|
-
htmlDataAttributes:
|
|
59
|
-
onKeyDown:
|
|
60
|
-
onChangeInputValue:
|
|
61
|
-
onPaste:
|
|
62
|
-
onClear:
|
|
63
|
-
onFocus:
|
|
64
|
-
onBlur:
|
|
65
|
-
onRemoveCheckedItem:
|
|
66
|
-
onSort:
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
rtl: Ee,
|
|
62
|
+
htmlDataAttributes: ke,
|
|
63
|
+
onKeyDown: De,
|
|
64
|
+
onChangeInputValue: Fe,
|
|
65
|
+
onPaste: Oe,
|
|
66
|
+
onClear: Re,
|
|
67
|
+
onFocus: Ve,
|
|
68
|
+
onBlur: Me,
|
|
69
|
+
onRemoveCheckedItem: _e,
|
|
70
|
+
onSort: _,
|
|
71
|
+
readOnly: i = ge.readOnly ?? he.readOnly,
|
|
72
|
+
...Ae
|
|
73
|
+
} = I, Z = i ? To : ye, T = ce(null), b = ce(null), { size: Be, getPrefixCls: ee } = W($o), [Ue, oe] = ie(N.NONE), [A, ne] = ie(!1), ze = uo(), $ = "showSearch" in I ? I.showSearch : w, f = !i && ($ || Ne), P = ve || Be, B = !i && (A || p), He = v($) && $.retainInputValue, h = !w && x !== void 0 ? J(x).text : "", U = (e) => {
|
|
69
74
|
e?.preventDefault?.();
|
|
70
|
-
},
|
|
71
|
-
const n = f ?
|
|
75
|
+
}, z = (e) => {
|
|
76
|
+
const n = f ? T.current : b.current;
|
|
72
77
|
n && (e === "focus" ? n.focus() : n.blur());
|
|
73
|
-
},
|
|
74
|
-
f && n.target === b.current || (e === "focus" ? (
|
|
75
|
-
},
|
|
78
|
+
}, E = (e, n) => {
|
|
79
|
+
i || f && n.target === b.current || (e === "focus" ? (ne(!0), Ve?.(n)) : (ne(!1), Me?.(n)));
|
|
80
|
+
}, re = (e) => {
|
|
76
81
|
if (f && e.currentTarget === b.current)
|
|
77
82
|
return;
|
|
78
|
-
e.key ===
|
|
83
|
+
e.key === wo.key && e.preventDefault(), De?.(e);
|
|
79
84
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}, [
|
|
85
|
+
Ze(() => {
|
|
86
|
+
z(p ? "focus" : "blur"), f && oe(p ? N.BEFORE : N.NONE);
|
|
87
|
+
}, [p]), eo(pe, () => ({
|
|
83
88
|
getRootElement() {
|
|
84
89
|
return b.current;
|
|
85
90
|
},
|
|
86
|
-
focus:
|
|
87
|
-
blur:
|
|
91
|
+
focus: z.bind(null, "focus"),
|
|
92
|
+
blur: z.bind(null, "blur"),
|
|
88
93
|
getWidth: () => b.current && b.current.clientWidth
|
|
89
94
|
}));
|
|
90
|
-
const
|
|
91
|
-
paste:
|
|
92
|
-
keyDown:
|
|
95
|
+
const Le = "arrowIcon" in I ? Y === null ? null : /* @__PURE__ */ s("div", { className: `${o}-arrow-icon`, children: Y }) : /* @__PURE__ */ s("div", { className: `${o}-arrow-icon`, children: /* @__PURE__ */ s(to, {}) }), Ge = $e ? /* @__PURE__ */ s("span", { className: `${o}-loading-icon`, children: /* @__PURE__ */ s(so, {}) }) : X ? /* @__PURE__ */ s("span", { className: `${o}-suffix-icon`, children: X }) : I.showSearch && p ? /* @__PURE__ */ s("div", { className: `${o}-search-icon`, children: /* @__PURE__ */ s(ao, {}) }) : Le, u = {
|
|
96
|
+
paste: Oe,
|
|
97
|
+
keyDown: re,
|
|
93
98
|
focus: (e) => {
|
|
94
|
-
e.stopPropagation(),
|
|
99
|
+
e.stopPropagation(), E("focus", e);
|
|
95
100
|
},
|
|
96
101
|
blur: (e) => {
|
|
97
|
-
e.stopPropagation(),
|
|
102
|
+
e.stopPropagation(), E("blur", e);
|
|
98
103
|
},
|
|
99
104
|
change: (e, n) => {
|
|
100
|
-
|
|
105
|
+
oe(N.EDITING), Fe?.(e, n);
|
|
101
106
|
}
|
|
102
|
-
},
|
|
107
|
+
}, Ke = () => {
|
|
103
108
|
let e;
|
|
104
|
-
switch (
|
|
105
|
-
case
|
|
106
|
-
e =
|
|
109
|
+
switch (Ue) {
|
|
110
|
+
case N.BEFORE:
|
|
111
|
+
e = O || (He ? h : "");
|
|
107
112
|
break;
|
|
108
|
-
case
|
|
109
|
-
e =
|
|
113
|
+
case N.EDITING:
|
|
114
|
+
e = O || "";
|
|
110
115
|
break;
|
|
111
116
|
default:
|
|
112
|
-
e =
|
|
117
|
+
e = h;
|
|
113
118
|
break;
|
|
114
119
|
}
|
|
115
|
-
const n = !!(
|
|
120
|
+
const n = !!(B && f || R), t = {
|
|
116
121
|
style: { width: "100%" },
|
|
117
122
|
// _inputValue after renderText(value) may be rich text, but the value of <input> cannot be object
|
|
118
|
-
value: n &&
|
|
123
|
+
value: n && fe(e) ? "" : e,
|
|
119
124
|
// Allow placeholder to display the selected value first when searching
|
|
120
125
|
placeholder: f && // 0 can also be used as a placeholder, because when options is number[], the selected value may be 0
|
|
121
|
-
(
|
|
126
|
+
(h || h === 0) && !fe(h) ? h : Z,
|
|
127
|
+
readOnly: i
|
|
122
128
|
};
|
|
123
|
-
return f ? (
|
|
129
|
+
return f ? (t.onPaste = u.paste, t.onKeyDown = u.keyDown, t.onFocus = u.focus, t.onBlur = u.blur, t.onChange = u.change) : (t.tabIndex = -1, t.style.pointerEvents = "none"), R ? e = t.placeholder : t.value || (e = t.placeholder), /* @__PURE__ */ D("span", { className: `${o}-view-selector`, children: [
|
|
124
130
|
/* @__PURE__ */ s(
|
|
125
|
-
|
|
131
|
+
ho,
|
|
126
132
|
{
|
|
127
133
|
"aria-hidden": !n || void 0,
|
|
128
|
-
ref:
|
|
129
|
-
disabled:
|
|
130
|
-
className:
|
|
134
|
+
ref: T,
|
|
135
|
+
disabled: C,
|
|
136
|
+
className: y(`${o}-view-input`, {
|
|
131
137
|
[`${o}-hidden`]: !n
|
|
132
138
|
}),
|
|
133
139
|
autoComplete: "off",
|
|
134
|
-
...
|
|
140
|
+
...t
|
|
135
141
|
}
|
|
136
142
|
),
|
|
137
143
|
/* @__PURE__ */ s(
|
|
138
144
|
"span",
|
|
139
145
|
{
|
|
140
|
-
className:
|
|
146
|
+
className: y(
|
|
141
147
|
n ? `${o}-view-value-mirror` : `${o}-view-value`
|
|
142
148
|
),
|
|
143
|
-
children:
|
|
149
|
+
children: xo(e)
|
|
144
150
|
}
|
|
145
151
|
)
|
|
146
152
|
] });
|
|
147
|
-
},
|
|
148
|
-
const n =
|
|
149
|
-
return {
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
}, H = mo(J), te = v(c) ? c.count : c, se = (e) => {
|
|
154
|
+
const n = H(e);
|
|
155
|
+
return {
|
|
156
|
+
value: e,
|
|
157
|
+
label: n.text,
|
|
158
|
+
closable: !i && !n.disabled
|
|
159
|
+
};
|
|
160
|
+
}, L = oo(() => {
|
|
161
|
+
if (!w)
|
|
152
162
|
return [];
|
|
153
|
-
const e =
|
|
154
|
-
return (
|
|
155
|
-
}, [
|
|
156
|
-
const e = v(c) ? c.count : c, n = e ===
|
|
157
|
-
let a = `+${
|
|
158
|
-
return v(c) &&
|
|
159
|
-
|
|
163
|
+
const e = de(x) ? [] : [].concat(x);
|
|
164
|
+
return (me(te) ? e.slice(0, te) : e).map((k, G, g) => se(k));
|
|
165
|
+
}, [x, w, c, H]), je = () => {
|
|
166
|
+
const e = v(c) ? c.count : c, n = e === lo, t = v(c) && c.showPopover, k = ee?.("input-tag"), G = (r) => {
|
|
167
|
+
let a = `+${r}...`;
|
|
168
|
+
return v(c) && Io(c.render) ? a = c.render(r) : n && (a = /* @__PURE__ */ D(
|
|
169
|
+
ue,
|
|
160
170
|
{
|
|
161
171
|
className: `${k}-tag`,
|
|
162
172
|
children: [
|
|
163
173
|
"+",
|
|
164
|
-
|
|
174
|
+
r,
|
|
165
175
|
"..."
|
|
166
176
|
]
|
|
167
177
|
},
|
|
168
|
-
|
|
178
|
+
q
|
|
169
179
|
)), a;
|
|
170
|
-
},
|
|
171
|
-
for (let
|
|
172
|
-
const a =
|
|
173
|
-
if (!
|
|
174
|
-
return
|
|
180
|
+
}, g = de(x) ? [] : [].concat(x), Xe = () => {
|
|
181
|
+
for (let r = g.length - 1; r >= 0; r--) {
|
|
182
|
+
const a = g[r];
|
|
183
|
+
if (!H(a).disabled)
|
|
184
|
+
return r;
|
|
175
185
|
}
|
|
176
186
|
return -1;
|
|
177
|
-
},
|
|
178
|
-
onPaste:
|
|
179
|
-
onKeyDown:
|
|
180
|
-
onFocus:
|
|
181
|
-
onBlur:
|
|
182
|
-
onInputChange:
|
|
183
|
-
onRemove: (
|
|
184
|
-
const
|
|
187
|
+
}, K = {
|
|
188
|
+
onPaste: u.paste,
|
|
189
|
+
onKeyDown: u.keyDown,
|
|
190
|
+
onFocus: u.focus,
|
|
191
|
+
onBlur: u.blur,
|
|
192
|
+
onInputChange: u.change,
|
|
193
|
+
onRemove: (r, a, d) => {
|
|
194
|
+
const S = d.key;
|
|
185
195
|
let l = -1;
|
|
186
|
-
|
|
196
|
+
S === No.key && (l = Xe()) !== -1 && (r = g[l], a = l), c && ze(), _e?.(r, a, d);
|
|
187
197
|
}
|
|
188
|
-
},
|
|
198
|
+
}, Ye = {
|
|
189
199
|
suffix: null,
|
|
190
200
|
prefix: null,
|
|
191
201
|
addBefore: null,
|
|
192
202
|
addAfter: null,
|
|
193
203
|
allowClear: !1,
|
|
194
204
|
labelInValue: !1
|
|
195
|
-
},
|
|
196
|
-
if (
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
205
|
+
}, le = Co(() => {
|
|
206
|
+
if (me(e)) {
|
|
207
|
+
const r = g.length - e;
|
|
208
|
+
if (r > 0) {
|
|
199
209
|
const a = {
|
|
200
|
-
label: G(
|
|
210
|
+
label: G(r),
|
|
201
211
|
closable: !1,
|
|
202
212
|
// InputTag needs to extract value as key
|
|
203
|
-
value:
|
|
213
|
+
value: q
|
|
204
214
|
};
|
|
205
|
-
if (
|
|
206
|
-
const
|
|
207
|
-
const
|
|
208
|
-
return
|
|
215
|
+
if (t) {
|
|
216
|
+
const d = g.map((l, m) => ({ val: l, index: m })).slice(e).map((l) => {
|
|
217
|
+
const m = se(l.val);
|
|
218
|
+
return M ? M(
|
|
209
219
|
{
|
|
210
|
-
...
|
|
211
|
-
onClose: (
|
|
212
|
-
|
|
220
|
+
...m,
|
|
221
|
+
onClose: (j) => K.onRemove(
|
|
222
|
+
m.value,
|
|
213
223
|
l.index,
|
|
214
|
-
|
|
224
|
+
j
|
|
215
225
|
)
|
|
216
226
|
},
|
|
217
227
|
l.index,
|
|
218
228
|
L.concat(a)
|
|
219
|
-
) : /* @__PURE__ */
|
|
220
|
-
|
|
229
|
+
) : /* @__PURE__ */ no(
|
|
230
|
+
ue,
|
|
221
231
|
{
|
|
222
|
-
...
|
|
223
|
-
key:
|
|
232
|
+
...m,
|
|
233
|
+
key: m.value,
|
|
224
234
|
className: `${k}-tag`,
|
|
225
|
-
onClose: (
|
|
235
|
+
onClose: (j) => K.onRemove(m.value, l.index, j)
|
|
226
236
|
},
|
|
227
|
-
|
|
237
|
+
m.label
|
|
228
238
|
);
|
|
229
|
-
}),
|
|
239
|
+
}), S = v(t) ? t : {};
|
|
230
240
|
a.label = /* @__PURE__ */ s(
|
|
231
|
-
|
|
241
|
+
go,
|
|
232
242
|
{
|
|
233
|
-
|
|
234
|
-
content: !!
|
|
243
|
+
...S,
|
|
244
|
+
content: !!d.length && /* @__PURE__ */ s(
|
|
235
245
|
"div",
|
|
236
246
|
{
|
|
237
247
|
onClick: (l) => {
|
|
238
248
|
l.stopPropagation();
|
|
239
249
|
},
|
|
240
|
-
children:
|
|
250
|
+
children: d
|
|
241
251
|
}
|
|
242
252
|
),
|
|
243
253
|
children: a.label
|
|
@@ -247,69 +257,71 @@ function bo(x, fe) {
|
|
|
247
257
|
return a;
|
|
248
258
|
}
|
|
249
259
|
}
|
|
250
|
-
})
|
|
260
|
+
}), Je = le ? L.concat(le) : L;
|
|
251
261
|
return /* @__PURE__ */ s(
|
|
252
|
-
|
|
262
|
+
po,
|
|
253
263
|
{
|
|
254
|
-
...
|
|
255
|
-
className:
|
|
256
|
-
ref:
|
|
257
|
-
disabled:
|
|
264
|
+
...Ye,
|
|
265
|
+
className: B ? `${ee?.("input-tag")}-focus` : "",
|
|
266
|
+
ref: T,
|
|
267
|
+
disabled: C,
|
|
258
268
|
dragToSort: Q,
|
|
259
|
-
disableInput:
|
|
260
|
-
placeholder:
|
|
261
|
-
value:
|
|
262
|
-
inputValue:
|
|
263
|
-
size:
|
|
269
|
+
disableInput: !$,
|
|
270
|
+
placeholder: Z,
|
|
271
|
+
value: Je,
|
|
272
|
+
inputValue: O,
|
|
273
|
+
size: P,
|
|
264
274
|
tagClassName: `${o}-tag`,
|
|
265
|
-
renderTag:
|
|
266
|
-
icon: { removeIcon:
|
|
275
|
+
renderTag: M,
|
|
276
|
+
icon: { removeIcon: Se },
|
|
277
|
+
readOnly: i,
|
|
267
278
|
maxTagCount: n ? {
|
|
268
279
|
count: e,
|
|
269
280
|
render: G,
|
|
270
|
-
popoverProps: v(
|
|
281
|
+
popoverProps: v(t) ? t : t ? {} : { disabled: !0 }
|
|
271
282
|
} : void 0,
|
|
272
|
-
onChange: (
|
|
273
|
-
if (
|
|
274
|
-
const
|
|
275
|
-
|
|
283
|
+
onChange: (r, a) => {
|
|
284
|
+
if (_ && a === "sort") {
|
|
285
|
+
const d = r.indexOf(
|
|
286
|
+
q
|
|
276
287
|
);
|
|
277
|
-
if (
|
|
278
|
-
const
|
|
279
|
-
|
|
288
|
+
if (d > -1) {
|
|
289
|
+
const S = r.slice(0, d), l = r.slice(d + 1), m = g.slice(
|
|
290
|
+
r.length - 1 - g.length
|
|
280
291
|
);
|
|
281
|
-
|
|
292
|
+
_(S.concat(m, l));
|
|
282
293
|
} else
|
|
283
|
-
|
|
294
|
+
_(r);
|
|
284
295
|
}
|
|
285
296
|
},
|
|
286
|
-
...
|
|
297
|
+
...K
|
|
287
298
|
}
|
|
288
299
|
);
|
|
289
|
-
},
|
|
290
|
-
|
|
300
|
+
}, ae = Te || (I.error ? "error" : void 0), We = !C && !R && we ? /* @__PURE__ */ s(
|
|
301
|
+
fo,
|
|
291
302
|
{
|
|
292
|
-
size:
|
|
303
|
+
size: P,
|
|
293
304
|
className: `${o}-clear-icon`,
|
|
294
|
-
onClick:
|
|
295
|
-
onMouseDown:
|
|
296
|
-
children:
|
|
305
|
+
onClick: Re,
|
|
306
|
+
onMouseDown: U,
|
|
307
|
+
children: F ?? /* @__PURE__ */ s(ro, {})
|
|
297
308
|
},
|
|
298
309
|
"clearIcon"
|
|
299
|
-
) : null,
|
|
310
|
+
) : null, qe = y(
|
|
300
311
|
o,
|
|
301
|
-
`${o}-${
|
|
312
|
+
`${o}-${w ? "multiple" : "single"}`,
|
|
302
313
|
{
|
|
303
|
-
[`${o}-show-search`]:
|
|
304
|
-
[`${o}-open`]:
|
|
305
|
-
[`${o}-size-${
|
|
306
|
-
[`${o}-focused`]:
|
|
307
|
-
[`${o}-${
|
|
308
|
-
[`${o}-disabled`]:
|
|
309
|
-
[`${o}-
|
|
310
|
-
[`${o}-
|
|
314
|
+
[`${o}-show-search`]: $,
|
|
315
|
+
[`${o}-open`]: p,
|
|
316
|
+
[`${o}-size-${P}`]: P,
|
|
317
|
+
[`${o}-focused`]: B,
|
|
318
|
+
[`${o}-${ae}`]: ae,
|
|
319
|
+
[`${o}-disabled`]: C,
|
|
320
|
+
[`${o}-readonly`]: i,
|
|
321
|
+
[`${o}-no-border`]: !Ie,
|
|
322
|
+
[`${o}-rtl`]: Ee
|
|
311
323
|
},
|
|
312
|
-
|
|
324
|
+
be
|
|
313
325
|
);
|
|
314
326
|
return /* @__PURE__ */ s(
|
|
315
327
|
"div",
|
|
@@ -317,49 +329,53 @@ function bo(x, fe) {
|
|
|
317
329
|
role: "combobox",
|
|
318
330
|
"aria-haspopup": "listbox",
|
|
319
331
|
"aria-autocomplete": "list",
|
|
320
|
-
"aria-expanded":
|
|
321
|
-
"aria-disabled":
|
|
322
|
-
"aria-controls":
|
|
323
|
-
...
|
|
324
|
-
|
|
332
|
+
"aria-expanded": p,
|
|
333
|
+
"aria-disabled": C,
|
|
334
|
+
"aria-controls": Pe,
|
|
335
|
+
...bo(Ae, ["onClick", "onMouseEnter", "onMouseLeave"]),
|
|
336
|
+
...ke,
|
|
325
337
|
ref: b,
|
|
326
|
-
tabIndex:
|
|
327
|
-
id:
|
|
328
|
-
style:
|
|
329
|
-
className:
|
|
330
|
-
onKeyDown:
|
|
338
|
+
tabIndex: C ? -1 : 0,
|
|
339
|
+
id: Ce,
|
|
340
|
+
style: xe,
|
|
341
|
+
className: qe,
|
|
342
|
+
onKeyDown: re,
|
|
331
343
|
onFocus: (e) => {
|
|
332
|
-
!
|
|
344
|
+
!i && !C && !Q && (f ? T.current && T.current.focus() : E("focus", e));
|
|
333
345
|
},
|
|
334
|
-
onBlur: (e) =>
|
|
335
|
-
children: /* @__PURE__ */
|
|
346
|
+
onBlur: (e) => E("blur", e),
|
|
347
|
+
children: /* @__PURE__ */ D(
|
|
336
348
|
"div",
|
|
337
349
|
{
|
|
338
|
-
title:
|
|
339
|
-
className:
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
350
|
+
title: vo(h) ? h : void 0,
|
|
351
|
+
className: y(
|
|
352
|
+
`${o}-view`,
|
|
353
|
+
i && `${o}-view-readonly`,
|
|
354
|
+
{
|
|
355
|
+
[`${o}-view-with-prefix`]: V
|
|
356
|
+
}
|
|
357
|
+
),
|
|
358
|
+
onClick: (e) => p && f && e.stopPropagation(),
|
|
343
359
|
children: [
|
|
344
|
-
|
|
360
|
+
V && !i && /* @__PURE__ */ s(
|
|
345
361
|
"div",
|
|
346
362
|
{
|
|
347
363
|
"aria-hidden": "true",
|
|
348
|
-
className:
|
|
349
|
-
onMouseDown: (e) =>
|
|
350
|
-
children:
|
|
364
|
+
className: y(`${o}-prefix`),
|
|
365
|
+
onMouseDown: (e) => A && U(e),
|
|
366
|
+
children: V
|
|
351
367
|
}
|
|
352
368
|
),
|
|
353
|
-
|
|
354
|
-
/* @__PURE__ */
|
|
369
|
+
w ? je() : Ke(),
|
|
370
|
+
!i && /* @__PURE__ */ D(
|
|
355
371
|
"div",
|
|
356
372
|
{
|
|
357
373
|
"aria-hidden": "true",
|
|
358
374
|
className: `${o}-suffix`,
|
|
359
|
-
onMouseDown: (e) =>
|
|
375
|
+
onMouseDown: (e) => A && U(e),
|
|
360
376
|
children: [
|
|
361
|
-
|
|
362
|
-
|
|
377
|
+
We,
|
|
378
|
+
Ge
|
|
363
379
|
]
|
|
364
380
|
}
|
|
365
381
|
)
|
|
@@ -369,7 +385,7 @@ function bo(x, fe) {
|
|
|
369
385
|
}
|
|
370
386
|
);
|
|
371
387
|
}
|
|
372
|
-
const
|
|
388
|
+
const Qo = Qe.forwardRef(So);
|
|
373
389
|
export {
|
|
374
|
-
|
|
390
|
+
Qo as default
|
|
375
391
|
};
|