@unicom-cloud/ui 0.8.147 → 0.8.148
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 +2 -2
- package/Details.js +1 -1
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Draw.js +6 -0
- 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/GlobalProvider.js +11 -0
- 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/Mask.js +1 -1
- package/Masonry.js +1 -1
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Portal.js +1 -1
- package/Progress.js +1 -1
- package/Progress2.js +1 -1
- package/QrCode.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +1 -1
- package/RowCol.js +1 -1
- package/Segmented.js +1 -1
- package/Select.js +1 -1
- package/SelectView.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +1 -1
- package/Splitter.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/SuspenseFallbackTest.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/TimePicker.js +1 -1
- package/Timeline.js +1 -1
- package/Timer.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/Upload.js +1 -1
- package/VerificationCode.js +3 -3
- package/VirtualList.js +1 -1
- package/Watermark.js +5 -5
- package/affix/Affix.js +1 -1
- package/affix/index.js +1 -1
- package/alert/Alert.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/anchor/context.js +1 -1
- package/anchor/index.js +1 -1
- package/anchor/utils.js +1 -1
- package/app/App.js +1 -1
- package/app/context.js +1 -1
- package/app/index.js +1 -1
- package/app/useApp.js +1 -1
- package/auto-complete/AutoComplete.js +1 -1
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/avatar/context.js +1 -1
- package/avatar/index.js +1 -1
- package/back-top/BackTop.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/Badge.js +1 -1
- package/badge/Count.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Item.js +1 -1
- package/breadcrumb/context.js +1 -1
- package/breadcrumb/index.js +1 -1
- package/button/Button.js +8 -8
- 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 +2 -2
- package/calendar/hook/useCellClassName.js +1 -1
- package/calendar/index.js +1 -1
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +1 -1
- package/cascader/base/node.js +1 -1
- package/cascader/base/store.js +1 -1
- package/cascader/hook/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +1 -1
- package/cascader/panel/Search.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/context.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 +2 -2
- package/collapse/context.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 +57 -55
- package/color-picker/colors.js +1 -1
- package/color-picker/hooks/useColorPicker.js +48 -48
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.js +124 -120
- package/color-picker/interface.js +1 -1
- package/color-picker/utils.js +33 -33
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +15 -13
- package/config-provider/context.js +9 -8
- package/config-provider/index.js +1 -1
- package/config-provider/initUI.js +18 -0
- package/config-provider/useConfigProvider.js +33 -28
- 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/DatePickerRange.js +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/context.js +1 -1
- package/date-picker/hook/useCellClassName.js +1 -1
- package/date-picker/index.js +1 -1
- package/date-picker/panel/Body.js +1 -1
- package/date-picker/panel/Footer.js +1 -1
- package/date-picker/panel/Header.js +1 -1
- package/date-picker/panel/Shortcut.js +1 -1
- package/date-picker/panel/WeekList.js +1 -1
- package/date-picker/panel/date/index.js +1 -1
- package/date-picker/panel/month/index.js +1 -1
- package/date-picker/panel/quarter/index.js +1 -1
- package/date-picker/panel/range/index.js +1 -1
- package/date-picker/panel/week/index.js +1 -1
- package/date-picker/panel/year/index.js +1 -1
- package/date-picker/utils.js +1 -1
- package/descriptions/index.js +3 -3
- 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/draw/Draw.js +47 -0
- package/draw/constant.js +1 -0
- package/draw/index.js +6 -0
- package/drawer/Drawer.js +204 -198
- 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/FormItemTip.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 +9 -8
- package/form/hook/useForm.js +1 -1
- package/form/hook/useFormContext.js +1 -1
- package/form/hook/useFormState.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/global-provider/context.js +6 -0
- package/global-provider/index.js +20 -0
- package/grid/Grid.js +2 -2
- package/grid/Item.js +2 -2
- package/grid/context.js +1 -1
- package/grid/index.js +1 -1
- package/grid/utils.js +1 -1
- package/hooks/index.js +21 -21
- package/hooks/use-breakpoint/index.js +2 -2
- 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-event-listener/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/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 +2 -2
- package/hooks/use-set-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/useEventListener.js +1 -1
- package/hooks/useForceUpdate.js +1 -1
- package/hooks/useFullscreen.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 +2 -2
- package/hooks/useSetState.js +1 -1
- package/hooks/useStateCallback.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useUnmountOnExit.js +1 -1
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useUpdateLayoutEffect.js +1 -1
- package/hooks/useVerificationCode.js +2 -2
- package/hooks/useWatch.js +1 -1
- package/hooks/useWatermark.js +3 -3
- 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/context.js +1 -1
- package/image/index.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 +723 -715
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +65 -61
- 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 +113 -111
- package/input/autoSizeTextareaHeight.js +1 -1
- package/input/index.js +1 -1
- package/input/useComposition.js +1 -1
- package/input/utils.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 +39 -37
- 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 +54 -54
- package/layout/context.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/mask/Mask.js +65 -50
- package/mask/index.js +1 -1
- package/masonry/Masonry.js +2 -2
- 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 +34 -34
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +66 -61
- 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/Message.js +36 -36
- package/message/index.js +1 -1
- package/message/useMessage.js +2 -2
- package/modal/Confirm.js +66 -61
- package/modal/Modal.js +227 -221
- package/modal/config.js +1 -1
- package/modal/index.js +1 -1
- package/modal/use-modal/Hook.js +33 -31
- package/modal/use-modal/index.js +52 -47
- package/notice/Notice.js +53 -52
- package/notice/index.js +1 -1
- package/notification/Notification.js +1 -1
- package/notification/index.js +1 -1
- package/notification/useNotification.js +2 -2
- 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 +2 -2
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/pagination/interface.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/index.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/Popover.js +1 -1
- package/popover/index.js +1 -1
- package/portal/Portal.js +1 -1
- package/portal/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +1 -1
- package/progress/index.js +1 -1
- package/progress2/index.js +1 -1
- package/qr-code/QRCode.js +1 -1
- package/qr-code/index.js +1 -1
- package/qr-code/src/index.js +1 -1
- package/qr-code/src/qrcodegen.js +1 -1
- package/radio/Group.js +99 -96
- 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/RichText.js +1 -1
- package/rich-text/Toolbar.js +1 -1
- package/rich-text/constant.js +1 -1
- package/rich-text/index.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 +13 -12
- 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/delta/AttributeMap.js +1 -1
- package/rich-text/lib/delta/Op.js +1 -1
- package/rich-text/lib/delta/OpIterator.js +1 -1
- package/rich-text/lib/delta/index.js +1 -1
- package/rich-text/lib/diff/index.js +1 -1
- package/rich-text/lib/formats/align.js +1 -1
- package/rich-text/lib/formats/background.js +1 -1
- package/rich-text/lib/formats/blockquote.js +1 -1
- package/rich-text/lib/formats/bold.js +1 -1
- package/rich-text/lib/formats/code.js +1 -1
- package/rich-text/lib/formats/color.js +1 -1
- package/rich-text/lib/formats/direction.js +1 -1
- package/rich-text/lib/formats/emoji.js +1 -1
- package/rich-text/lib/formats/font.js +1 -1
- package/rich-text/lib/formats/formula.js +1 -1
- package/rich-text/lib/formats/header.js +1 -1
- package/rich-text/lib/formats/hr.js +1 -1
- package/rich-text/lib/formats/image.js +1 -1
- package/rich-text/lib/formats/indent.js +1 -1
- package/rich-text/lib/formats/italic.js +1 -1
- package/rich-text/lib/formats/lineHeight.js +1 -1
- package/rich-text/lib/formats/link.js +1 -1
- package/rich-text/lib/formats/list.js +1 -1
- package/rich-text/lib/formats/script.js +1 -1
- package/rich-text/lib/formats/size.js +1 -1
- package/rich-text/lib/formats/strike.js +1 -1
- package/rich-text/lib/formats/table.js +1 -1
- package/rich-text/lib/formats/underline.js +1 -1
- package/rich-text/lib/formats/video.js +1 -1
- package/rich-text/lib/index.js +1 -1
- package/rich-text/lib/modules/clipboard.js +1 -1
- package/rich-text/lib/modules/history.js +1 -1
- package/rich-text/lib/modules/image-resize/index.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/Base.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +1 -1
- package/rich-text/lib/modules/image-resize/modules/Resize.js +1 -1
- package/rich-text/lib/modules/image-resize/options.js +1 -1
- package/rich-text/lib/modules/input.js +1 -1
- package/rich-text/lib/modules/keyboard.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/index.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +1 -1
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +1 -1
- package/rich-text/lib/modules/table.js +1 -1
- package/rich-text/lib/modules/toolbar.js +1 -1
- package/rich-text/lib/modules/uiNode.js +1 -1
- package/rich-text/lib/modules/uploader.js +1 -1
- package/rich-text/lib/parchment/attributor/attributor.js +1 -1
- package/rich-text/lib/parchment/attributor/class.js +1 -1
- package/rich-text/lib/parchment/attributor/store.js +1 -1
- package/rich-text/lib/parchment/attributor/style.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/container.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/leaf.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/parent.js +1 -1
- package/rich-text/lib/parchment/blot/abstract/shadow.js +1 -1
- package/rich-text/lib/parchment/blot/block.js +1 -1
- package/rich-text/lib/parchment/blot/embed.js +1 -1
- package/rich-text/lib/parchment/blot/inline.js +1 -1
- package/rich-text/lib/parchment/blot/scroll.js +1 -1
- package/rich-text/lib/parchment/blot/text.js +1 -1
- package/rich-text/lib/parchment/collection/linked-list.js +1 -1
- package/rich-text/lib/parchment/error.js +1 -1
- package/rich-text/lib/parchment/index.js +1 -1
- package/rich-text/lib/parchment/registry.js +1 -1
- package/rich-text/lib/parchment/scope.js +1 -1
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +2 -2
- package/row-col/context.js +1 -1
- package/row-col/index.js +1 -1
- package/segmented/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/OptionGroup.js +1 -1
- package/select/Select.js +1 -1
- package/select/index.js +1 -1
- package/select/utils.js +1 -1
- package/select-view/Core.js +1 -1
- package/select-view/index.js +1 -1
- package/skeleton/Image.js +1 -1
- package/skeleton/Text.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Tick.js +1 -1
- package/slider/hook/useInterval.js +1 -1
- package/slider/hook/useLegalValue.js +1 -1
- package/slider/index.js +2 -2
- 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 +2 -2
- package/steps/index.js +1 -1
- package/style/variables.css +3 -3
- 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 +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 +119 -121
- 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/TabContent.js +1 -1
- package/tabs/TabPane.js +1 -1
- package/tabs/Tabs.js +1 -1
- package/tabs/context.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/TimeColumn.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/time-picker/TimePickerRange.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 +74 -78
- package/tooltip/index.js +1 -1
- package/tour/index.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +4 -4
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +1 -1
- package/tree/context.js +1 -1
- package/tree/index.js +1 -1
- package/tree/utils.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +1 -1
- package/tree-select/hook/useKeyCache.js +1 -1
- package/tree-select/hook/useStateValue.js +1 -1
- package/tree-select/hook/useTreeData.js +1 -1
- package/tree-select/index.js +1 -1
- package/tree-select/interface.js +1 -1
- package/tree-select/utils.js +1 -1
- package/trigger/getPopupStyle.js +84 -83
- package/trigger/index.js +287 -286
- package/types/button/interface.d.ts +1 -1
- package/types/color-picker/Panel.d.ts +2 -0
- package/types/config-provider/context.d.ts +1 -0
- package/types/config-provider/initUI.d.ts +3 -0
- package/types/config-provider/interface.d.ts +6 -0
- package/types/draw/Draw.d.ts +6 -0
- package/types/draw/constant.d.ts +0 -0
- package/types/draw/index.d.ts +4 -0
- package/types/draw/interface.d.ts +8 -0
- package/types/drawer/interface.d.ts +5 -4
- package/types/global-provider/context.d.ts +3 -0
- package/types/global-provider/index.d.ts +11 -0
- package/types/global-provider/interface.d.ts +4 -0
- package/types/index.d.ts +2 -0
- package/types/interface.d.ts +1 -1
- package/types/mask/interface.d.ts +1 -0
- package/types/menu/context.d.ts +1 -1
- package/types/menu/interface.d.ts +1 -1
- package/types/modal/Confirm.d.ts +1 -1
- package/types/modal/interface.d.ts +11 -13
- package/types/modal/use-modal/Hook.d.ts +1 -1
- package/types/radio/interface.d.ts +2 -2
- package/types/rich-text/lib/core/emitter.d.ts +1 -1
- package/types/table/interface.d.ts +3 -4
- package/types/trigger/interface.d.ts +7 -0
- package/types/utils/emitter.d.ts +7 -1
- package/types/utils/names.d.ts +6 -0
- package/types/utils/setDarkTheme.d.ts +2 -2
- package/types/utils/setTheme.d.ts +1 -1
- 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 +126 -116
- package/upload/Uploader.js +1 -1
- package/upload/constant.js +1 -1
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +1 -1
- package/upload/list/TextItem.js +1 -1
- package/upload/list/UploadProgress.js +1 -1
- package/upload/list/index.js +1 -1
- package/upload/list/utils.js +1 -1
- package/upload/request.js +1 -1
- package/upload/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +11 -4
- 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 +264 -261
- 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 +7 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +6 -6
- 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 +2 -2
- package/verification-code/index.js +4 -4
- package/version/index.js +2 -2
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +5 -5
- 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 +2 -2
- package/watermark/index.js +2 -2
- package/types/masonry/demo/basic.d.ts +0 -3
- package/types/masonry/demo/dynamic.d.ts +0 -3
- package/types/masonry/demo/image.d.ts +0 -2
- package/types/masonry/demo/responsive.d.ts +0 -3
package/trigger/getPopupStyle.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
/* 2026-
|
|
2
|
-
import { isServerRendering as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const { position: o } = i, { width: g, height: u, left: a, right: c, top: x, bottom: S } = n.getBoundingClientRect(),
|
|
6
|
-
let l, f,
|
|
7
|
-
return ["bottom", "bl", "br"].includes(o) ? (
|
|
1
|
+
/* 2026-02-26 14:47:16 */
|
|
2
|
+
import { isServerRendering as X, isNumber as Y, isArray as $ } from "@unicom-cloud/ui-common/utils/is";
|
|
3
|
+
const z = 0;
|
|
4
|
+
function V(n, i) {
|
|
5
|
+
const { position: o } = i, { width: g, height: u, left: a, right: c, top: x, bottom: S } = n.getBoundingClientRect(), N = i.boundaryDistance || {}, t = "left" in N && N.left || z, k = "top" in N && N.top || z;
|
|
6
|
+
let h, l, f, r;
|
|
7
|
+
return ["bottom", "bl", "br"].includes(o) ? (f = x, r = S) : (f = x - k, r = S - k), ["right", "rt", "rb"].includes(o) ? (h = a, l = c) : (h = a - t, l = c - t), {
|
|
8
8
|
width: g,
|
|
9
9
|
height: u,
|
|
10
|
-
left:
|
|
11
|
-
right:
|
|
12
|
-
top:
|
|
13
|
-
bottom:
|
|
10
|
+
left: h,
|
|
11
|
+
right: l,
|
|
12
|
+
top: f,
|
|
13
|
+
bottom: r
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
if (!o || !n ||
|
|
16
|
+
function F(n, i, o, g) {
|
|
17
|
+
if (!o || !n || X)
|
|
18
18
|
return { left: 0, width: 0, height: 0, top: 0 };
|
|
19
19
|
const u = document.body;
|
|
20
|
-
function a(
|
|
21
|
-
return document.documentElement[
|
|
20
|
+
function a(s) {
|
|
21
|
+
return document.documentElement[s] || u[s];
|
|
22
22
|
}
|
|
23
|
-
const c = o === u ? a("scrollTop") : o.scrollTop, x = o === u ? a("scrollLeft") : o.scrollLeft, { left: S, top:
|
|
23
|
+
const c = o === u ? a("scrollTop") : o.scrollTop, x = o === u ? a("scrollLeft") : o.scrollLeft, { left: S, top: N, width: t, height: k } = i, h = o === u ? 0 : V(o, g).left, l = o === u ? 0 : V(o, g).top, f = N + c - l;
|
|
24
24
|
return {
|
|
25
|
-
left: S + x -
|
|
26
|
-
top:
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
25
|
+
left: S + x - h,
|
|
26
|
+
top: f,
|
|
27
|
+
width: t,
|
|
28
|
+
height: k
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
function M(n, i, o) {
|
|
32
32
|
return o < n ? n : o > i ? i : o;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function I(n, i) {
|
|
35
35
|
let o = n;
|
|
36
|
-
if (
|
|
36
|
+
if (Y(o)) {
|
|
37
37
|
const c = o;
|
|
38
38
|
o = {
|
|
39
39
|
left: c,
|
|
@@ -51,7 +51,7 @@ function F(n, i) {
|
|
|
51
51
|
...o
|
|
52
52
|
} : a = { ...o };
|
|
53
53
|
for (const c in a)
|
|
54
|
-
if (
|
|
54
|
+
if ($(a[c])) {
|
|
55
55
|
let x = 0;
|
|
56
56
|
["top", "bottom"].includes(c) ? (x = 1, g = a[c][0]) : u = a[c][1], a[c] = a[c][x];
|
|
57
57
|
}
|
|
@@ -61,7 +61,7 @@ function F(n, i) {
|
|
|
61
61
|
verticalOffset: u
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function j(n, i, { boundaryDistance: o, position: g }) {
|
|
65
65
|
return i ? {
|
|
66
66
|
left: i.clientX,
|
|
67
67
|
top: i.clientY,
|
|
@@ -69,142 +69,143 @@ function I(n, i, { boundaryDistance: o, position: g }) {
|
|
|
69
69
|
height: 0,
|
|
70
70
|
right: i.clientX,
|
|
71
71
|
bottom: i.clientY
|
|
72
|
-
} :
|
|
72
|
+
} : V(n, { boundaryDistance: o, position: g });
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function q(n) {
|
|
75
75
|
const i = n.offsetWidth, o = n.offsetHeight;
|
|
76
76
|
return {
|
|
77
77
|
width: i,
|
|
78
78
|
height: o
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const i = n || {}, o = "left" in i ? i.left : "right" in i ? i.right :
|
|
81
|
+
function G(n) {
|
|
82
|
+
const i = n || {}, o = "left" in i ? i.left : "right" in i ? i.right : z, g = "top" in i ? i.top : "bottom" in i ? i.bottom : z, u = (document.documentElement?.clientHeight || window.innerHeight) - (g || z), a = (document.documentElement?.clientWidth || window.innerWidth) - (o || z);
|
|
83
83
|
return {
|
|
84
84
|
windowHeight: u,
|
|
85
85
|
windowWidth: a
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function K(n, i, o, g, u) {
|
|
89
89
|
const {
|
|
90
90
|
autoAlignPopupWidth: a,
|
|
91
91
|
autoAlignPopupMinWidth: c,
|
|
92
92
|
alignPoint: x,
|
|
93
|
-
style: S
|
|
93
|
+
style: S,
|
|
94
|
+
arrow: N
|
|
94
95
|
} = n;
|
|
95
96
|
if (!o || !i || !g)
|
|
96
97
|
return {};
|
|
97
|
-
const t = {}, k = !n.alignPoint && n.boundaryDistance || {},
|
|
98
|
+
const t = {}, k = !n.alignPoint && n.boundaryDistance || {}, h = j(o, x && u, {
|
|
98
99
|
boundaryDistance: k,
|
|
99
100
|
position: n.position
|
|
100
|
-
}), { left: l, top: f, width:
|
|
101
|
+
}), { left: l, top: f, width: r, height: s } = F(
|
|
101
102
|
o,
|
|
102
|
-
|
|
103
|
+
h,
|
|
103
104
|
g,
|
|
104
105
|
{
|
|
105
106
|
boundaryDistance: k,
|
|
106
107
|
position: n.position
|
|
107
108
|
}
|
|
108
|
-
),
|
|
109
|
+
), T = I(n.popupAlign, !!N), O = T.left || 0, R = T.right || 0, _ = T.top || 0, B = T.bottom || 0;
|
|
109
110
|
a && S?.width === void 0 && (i.style.width = `${o.offsetWidth}px`), c && (i.style.minWidth = `${o.offsetWidth}px`);
|
|
110
|
-
const e =
|
|
111
|
+
const e = q(i);
|
|
111
112
|
let b = n.position;
|
|
112
113
|
const d = {};
|
|
113
114
|
function m(P) {
|
|
114
115
|
if (!n.autoFitPosition) return;
|
|
115
|
-
const { windowHeight: W, windowWidth: D } =
|
|
116
|
-
let
|
|
117
|
-
const
|
|
118
|
-
left: l -
|
|
119
|
-
top: f -
|
|
120
|
-
}, { top:
|
|
121
|
-
if ((P === "top" || P === "bottom") && (
|
|
116
|
+
const { windowHeight: W, windowWidth: D } = G(k);
|
|
117
|
+
let H = !1;
|
|
118
|
+
const p = {
|
|
119
|
+
left: l - h.left,
|
|
120
|
+
top: f - h.top
|
|
121
|
+
}, { top: E = 0, left: v = 0 } = t;
|
|
122
|
+
if ((P === "top" || P === "bottom") && (p.left > v && h.right > 12 ? (t.left = Math.max(p.left, l - e.width), t.left = Math.max(
|
|
122
123
|
t.left,
|
|
123
124
|
l - e.width + 24
|
|
124
|
-
)) :
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
)) : v - p.left + e.width > D && D - h.left > 12 && (t.left = Math.max(
|
|
126
|
+
p.left,
|
|
127
|
+
p.left + D - e.width
|
|
127
128
|
), t.left = Math.max(
|
|
128
129
|
t.left,
|
|
129
130
|
l - e.width + 24
|
|
130
|
-
))), (P === "left" || P === "right") && (
|
|
131
|
+
))), (P === "left" || P === "right") && (p.top > E && h.bottom > 12 ? (t.top = p.top, t.top = Math.max(
|
|
131
132
|
t.top,
|
|
132
|
-
f - e.height +
|
|
133
|
-
)) :
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
f - e.height + h.height / 2
|
|
134
|
+
)) : E - p.top + e.height > W && W - h.top > 12 && (t.top = Math.max(
|
|
135
|
+
p.top,
|
|
136
|
+
p.top + W - e.height
|
|
136
137
|
), t.top = Math.max(
|
|
137
138
|
t.top,
|
|
138
|
-
f - e.height +
|
|
139
|
-
))), P === "top" &&
|
|
140
|
-
f +
|
|
141
|
-
|
|
142
|
-
),
|
|
143
|
-
f - e.height - (
|
|
144
|
-
|
|
145
|
-
),
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
),
|
|
149
|
-
l - e.width -
|
|
150
|
-
|
|
151
|
-
),
|
|
139
|
+
f - e.height + h.height / 2
|
|
140
|
+
))), P === "top" && p.top > E && (h.top < W - h.bottom ? (t.top = Math.min(
|
|
141
|
+
f + s + (_ || 0),
|
|
142
|
+
p.top + W - e.height
|
|
143
|
+
), H = !0) : t.top = p.top), P === "bottom" && E - p.top + e.height > W && (W - h.bottom < h.top ? (t.top = Math.max(
|
|
144
|
+
f - e.height - (B || 0),
|
|
145
|
+
p.top
|
|
146
|
+
), H = !0) : t.top = p.top + W - e.height), P === "left" && p.left > v && (h.left < D - h.right ? (t.left = Math.min(
|
|
147
|
+
r + l + R,
|
|
148
|
+
p.left + D - e.width
|
|
149
|
+
), H = !0) : t.left = p.left), P === "right" && v - p.left + e.width > D && (D - h.right < h.left ? (t.left = Math.max(
|
|
150
|
+
l - e.width - O,
|
|
151
|
+
p.left
|
|
152
|
+
), H = !0) : t.left = p.left + D - e.width), t.left < 0)
|
|
152
153
|
t.left = 0;
|
|
153
154
|
else {
|
|
154
|
-
const
|
|
155
|
-
t.left = Math.min(
|
|
155
|
+
const C = g.scrollWidth - e.width;
|
|
156
|
+
t.left = Math.min(C, t.left);
|
|
156
157
|
}
|
|
157
|
-
return
|
|
158
|
+
return H;
|
|
158
159
|
}
|
|
159
|
-
const
|
|
160
|
-
let w = l - Number(t.left) +
|
|
160
|
+
const A = T.horizontalOffset || 0, L = T.verticalOffset || 0;
|
|
161
|
+
let w = l - Number(t.left) + r / 2, y = f - Number(t.top) + s / 2;
|
|
161
162
|
switch (n.position) {
|
|
162
163
|
case "top": {
|
|
163
|
-
t.top = f - e.height -
|
|
164
|
+
t.top = f - e.height - _, t.left = l + r / 2 - e.width / 2, m("top") && (b = "bottom"), t.left += A, w = l - Number(t.left) + r / 2, d.left = M(12, e.width - 12, w);
|
|
164
165
|
break;
|
|
165
166
|
}
|
|
166
167
|
case "tl": {
|
|
167
|
-
t.top = f - e.height -
|
|
168
|
+
t.top = f - e.height - _, t.left = l, m("top") && (b = "bl"), t.left += A, w = l - Number(t.left) + Math.min(r / 2, 50), d.left = M(12, e.width - 12, w);
|
|
168
169
|
break;
|
|
169
170
|
}
|
|
170
171
|
case "tr": {
|
|
171
|
-
t.top = -i.clientHeight + f -
|
|
172
|
+
t.top = -i.clientHeight + f - _, t.left = l + r - e.width, m("top") && (b = "br"), t.left += A, w = l - Number(t.left) + Math.max(r / 2, r - 50), d.left = M(12, e.width - 12, w);
|
|
172
173
|
break;
|
|
173
174
|
}
|
|
174
175
|
case "bottom": {
|
|
175
|
-
t.top =
|
|
176
|
+
t.top = s + f + B, t.left = l + r / 2 - e.width / 2, m("bottom") && (b = "top"), t.left += A, w = l - Number(t.left) + r / 2, d.left = M(12, e.width - 12, w);
|
|
176
177
|
break;
|
|
177
178
|
}
|
|
178
179
|
case "bl": {
|
|
179
|
-
t.top =
|
|
180
|
+
t.top = s + f + B, t.left = l, m("bottom") && (b = "tl"), t.left += A, w = l - Number(t.left) + Math.min(r / 2, 50), d.left = M(12, e.width - 12, w);
|
|
180
181
|
break;
|
|
181
182
|
}
|
|
182
183
|
case "br": {
|
|
183
|
-
t.top =
|
|
184
|
+
t.top = s + f + B, t.left = l + r - e.width, m("bottom") && (b = "tr"), t.left += A, w = l - Number(t.left) + Math.max(r / 2, r - 50), d.left = M(12, e.width - 12, w);
|
|
184
185
|
break;
|
|
185
186
|
}
|
|
186
187
|
case "left": {
|
|
187
|
-
t.top = f +
|
|
188
|
+
t.top = f + s / 2 - e.height / 2, t.left = l - e.width - O, m("left") && (b = "right"), t.top += L, y = f - Number(t.top) + s / 2, d.top = M(12, e.height - 12, y);
|
|
188
189
|
break;
|
|
189
190
|
}
|
|
190
191
|
case "lt": {
|
|
191
|
-
t.top = f, t.left = l - e.width -
|
|
192
|
+
t.top = f, t.left = l - e.width - O, m("left") && (b = "rt"), t.top += L, y = f - Number(t.top) + Math.min(s / 2, 50), d.top = M(12, e.height - 12, y);
|
|
192
193
|
break;
|
|
193
194
|
}
|
|
194
195
|
case "lb": {
|
|
195
|
-
t.top = f +
|
|
196
|
+
t.top = f + s - e.height, t.left = l - e.width - O, m("left") && (b = "rb"), t.top += L, y = f - Number(t.top) + Math.max(s / 2, s - 50), d.top = M(12, e.height - 12, y);
|
|
196
197
|
break;
|
|
197
198
|
}
|
|
198
199
|
case "right": {
|
|
199
|
-
t.top = f +
|
|
200
|
+
t.top = f + s / 2 - e.height / 2, t.left = r + l + R, m("right") && (b = "left"), t.top += L, y = f - Number(t.top) + s / 2, d.top = M(12, e.height - 12, y);
|
|
200
201
|
break;
|
|
201
202
|
}
|
|
202
203
|
case "rt": {
|
|
203
|
-
t.top = f, t.left =
|
|
204
|
+
t.top = f, t.left = r + l + R, m("right") && (b = "lt"), t.top += L, y = f - Number(t.top) + Math.min(s / 2, 50), d.top = M(12, e.height - 12, y);
|
|
204
205
|
break;
|
|
205
206
|
}
|
|
206
207
|
case "rb": {
|
|
207
|
-
t.top = f +
|
|
208
|
+
t.top = f + s - e.height, t.left = r + l + R, m("right") && (b = "lb"), t.top += L, y = f - Number(t.top) + Math.max(s / 2, s - 50), d.top = M(12, e.height - 12, y);
|
|
208
209
|
break;
|
|
209
210
|
}
|
|
210
211
|
}
|
|
@@ -215,6 +216,6 @@ function J(n, i, o, g, u) {
|
|
|
215
216
|
};
|
|
216
217
|
}
|
|
217
218
|
export {
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
K as default,
|
|
220
|
+
V as getBoundingClientRect
|
|
220
221
|
};
|