@unicom-cloud/ui 0.8.144 → 0.8.145
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 +7 -9
- 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 +3 -1
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Constant.js +1 -1
- package/Copy.js +1 -1
- package/Countdown.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +1 -1
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +1 -1
- package/Form.js +1 -1
- package/Grid.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +1 -1
- package/InputTag.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +1 -1
- package/List.js +5 -6
- 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 +5 -17
- package/Modal.js +1 -1
- package/Notice.js +3 -17
- package/Notification.js +5 -18
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +4 -3
- 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 +11 -10
- package/Tag.js +1 -1
- package/TimePicker.js +1 -1
- package/Timeline.js +1 -1
- package/Timer.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/affix/Affix.js +1 -1
- package/affix/index.js +1 -1
- package/alert/Alert.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +128 -138
- package/anchor/Link.js +17 -17
- package/anchor/context.js +1 -1
- package/anchor/index.js +6 -8
- package/anchor/utils.js +27 -27
- package/app/App.js +8 -8
- 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 +63 -58
- package/breadcrumb/Item.js +43 -42
- package/breadcrumb/context.js +6 -0
- package/breadcrumb/index.js +5 -3
- package/button/Button.js +1 -1
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/Lunar.js +1 -1
- package/calendar/Month.js +1 -1
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +1 -1
- package/calendar/header/Panel.js +1 -1
- package/calendar/header/index.js +1 -1
- package/calendar/hook/useCellClassName.js +1 -1
- package/calendar/index.js +1 -1
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +1 -1
- package/cascader/base/node.js +1 -1
- package/cascader/base/store.js +1 -1
- package/cascader/hook/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +1 -1
- package/cascader/panel/Search.js +62 -64
- 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 +83 -82
- package/collapse/Item.js +92 -83
- 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 +1 -1
- package/color-picker/colors.js +1 -1
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/hooks/useControlBlock.js +1 -1
- package/color-picker/index.js +1 -1
- package/color-picker/interface.js +1 -1
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +1 -1
- package/config-provider/useConfigProvider.js +79 -23
- 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 +60 -59
- 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 +35 -32
- package/drawer/index.js +1 -1
- package/dropdown/Button.js +8 -8
- 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 +49 -50
- 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 +1 -1
- 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/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-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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/Icon.js +1 -1
- package/icon/addIconFromCdn.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file.js +1 -1
- package/icons.js +1 -1
- package/image/Image.js +1 -1
- package/image/ImageFooter.js +1 -1
- package/image/ImagePreview.js +1 -1
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +1 -1
- package/image/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 +653 -666
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +2 -1
- package/input/Number.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Tag.js +1 -1
- package/input/Textarea.js +175 -148
- 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 +61 -60
- package/input-tag/index.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/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 +73 -72
- 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 +1 -1
- package/mask/index.js +1 -1
- package/masonry/Masonry.js +1 -1
- package/masonry/MasonryItem.js +1 -1
- package/masonry/hooks/useDelay.js +1 -1
- package/masonry/hooks/useGutter.js +1 -1
- package/masonry/hooks/usePositions.js +1 -1
- package/masonry/hooks/useRefs.js +1 -1
- package/masonry/index.js +1 -1
- package/mentions/index.js +1 -1
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.js +48 -51
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +33 -32
- 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 +169 -0
- package/message/index.js +5 -155
- package/message/useMessage.js +29 -29
- package/modal/Confirm.js +1 -1
- package/modal/Modal.js +242 -229
- 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 +42 -41
- package/notice/Notice.js +175 -0
- package/notice/index.js +3 -172
- package/notification/Notification.js +164 -0
- package/notification/index.js +5 -148
- package/notification/useNotification.js +21 -20
- 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 +4 -3
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/pagination/interface.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/index.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/Popover.js +1 -1
- package/popover/index.js +1 -1
- package/portal/Portal.js +1 -1
- package/portal/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +1 -1
- package/progress/index.js +1 -1
- package/progress2/index.js +1 -1
- package/qr-code/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 +1 -1
- package/radio/GroupBlock.js +1 -1
- package/radio/Radio.js +1 -1
- package/radio/index.js +1 -1
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/403.js +1 -1
- package/result/404.js +1 -1
- package/result/500.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/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 +1 -1
- package/rich-text/lib/core/logger.js +1 -1
- package/rich-text/lib/core/module.js +1 -1
- package/rich-text/lib/core/rich.js +1 -1
- package/rich-text/lib/core/selection.js +1 -1
- package/rich-text/lib/core/theme.js +1 -1
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +1 -1
- package/rich-text/lib/core/utils/scrollRectIntoView.js +1 -1
- package/rich-text/lib/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 +1 -1
- 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 +167 -175
- package/select/index.js +1 -1
- package/select/utils.js +1 -1
- package/select-view/Core.js +263 -252
- package/select-view/index.js +1 -1
- package/skeleton/Image.js +1 -1
- package/skeleton/Text.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/Dot.js +1 -1
- package/slider/Input.js +1 -1
- package/slider/Mark.js +1 -1
- package/slider/Tick.js +1 -1
- package/slider/hook/useInterval.js +1 -1
- package/slider/hook/useLegalValue.js +1 -1
- package/slider/index.js +1 -1
- package/slider/utils.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +1 -1
- package/splitter/Splitter.js +1 -1
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/hooks/useResizable.js +1 -1
- package/splitter/hooks/useResize.js +1 -1
- package/splitter/hooks/useSizes.js +1 -1
- package/splitter/index.js +1 -1
- package/statistic/index.js +1 -1
- package/statistic/interface.js +1 -1
- package/steps/Step.js +1 -1
- package/steps/index.js +1 -1
- package/style/mixin/index.less +1 -1
- package/style/variables.css +1 -1
- 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 +173 -167
- 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 +30 -26
- 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 +163 -136
- package/table/tbody/Tr.js +115 -99
- package/table/tbody/index.js +60 -53
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +1 -1
- package/table/thead/Column.js +40 -39
- package/table/thead/index.js +54 -54
- package/table/utils.js +1 -1
- package/tabs/TabContent.js +26 -27
- package/tabs/TabPane.js +25 -17
- package/tabs/Tabs.js +9 -7
- package/tabs/context.js +3 -2
- package/tabs/hook/useDomSize.js +1 -1
- package/tabs/hook/useHeaderScroll.js +1 -1
- package/tabs/index.js +9 -8
- 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 +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +17 -8
- package/transfer/Item.js +31 -30
- package/transfer/List.js +28 -27
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +34 -33
- 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 +1 -1
- package/trigger/index.js +1 -1
- package/types/anchor/index.d.ts +1 -2
- package/types/anchor/interface.d.ts +3 -6
- package/types/anchor/utils.d.ts +1 -1
- package/types/breadcrumb/context.d.ts +4 -0
- package/types/breadcrumb/index.d.ts +2 -1
- package/types/breadcrumb/interface.d.ts +8 -4
- package/types/collapse/Collapse.d.ts +3 -3
- package/types/collapse/Item.d.ts +1 -0
- package/types/config-provider/interface.d.ts +6 -0
- package/types/descriptions/interface.d.ts +8 -2
- package/types/form/interface.d.ts +0 -1
- package/types/index.d.ts +3 -3
- package/types/list/interface.d.ts +1 -1
- package/types/menu/interface.d.ts +2 -5
- package/types/message/Message.d.ts +20 -0
- package/types/message/index.d.ts +2 -22
- package/types/message/interface.d.ts +3 -1
- package/types/notice/Notice.d.ts +4 -0
- package/types/notice/index.d.ts +1 -24
- package/types/notice/interface.d.ts +23 -0
- package/types/notification/Notification.d.ts +22 -0
- package/types/notification/index.d.ts +2 -18
- package/types/select/Select.d.ts +1 -1
- package/types/select/interface.d.ts +0 -1
- package/types/select/utils.d.ts +1 -1
- package/types/table/interface.d.ts +1 -0
- package/types/tabs/TabContent.d.ts +1 -7
- package/types/tabs/TabPane.d.ts +1 -4
- package/types/tabs/Tabs.d.ts +3 -3
- package/types/tabs/context.d.ts +3 -2
- package/types/tabs/interface.d.ts +8 -1
- package/types/utils/scrollIntoViewIfNeeded.d.ts +2 -3
- package/types/version/index.d.ts +1 -1
- package/types/virtual-list/interface.d.ts +0 -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 +1 -1
- package/upload/Uploader.js +1 -1
- package/upload/constant.js +1 -1
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +1 -1
- package/upload/list/TextItem.js +8 -7
- 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 +5 -5
- 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 +235 -249
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +4 -18
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/throttleByRaf.js +1 -1
- package/utils/throttleByRaf2.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/verification-code/index.js +1 -1
- package/version/index.js +2 -2
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/virtual-list/constant.js +1 -1
- package/virtual-list/hook/useCacheChildrenNodes.js +1 -1
- package/virtual-list/hook/useComputeVirtualItemHeight.js +1 -1
- package/virtual-list/index.js +1 -1
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/watermark/index.js +1 -1
package/table/thead/Column.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2026-01-
|
|
1
|
+
/* 2026-01-27 10:44:03 */
|
|
2
2
|
import { jsxs as u, Fragment as ye, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as W, useState as X, useEffect as Y, createElement as Te } from "react";
|
|
4
4
|
import Ie from "@unicom-cloud/icons/IconUiCaretDown";
|
|
@@ -15,7 +15,7 @@ import Me from "../hook/useComponent.js";
|
|
|
15
15
|
import Re from "../../tooltip/Tooltip.js";
|
|
16
16
|
import Ue from "../../trigger/index.js";
|
|
17
17
|
import h from "@unicom-cloud/ui-common/utils/className";
|
|
18
|
-
import { isArray as _, isPlainObject as
|
|
18
|
+
import { isArray as _, isPlainObject as A, isFunction as E, isString as ee } from "@unicom-cloud/ui-common/utils/is";
|
|
19
19
|
import { TableContext as je } from "../context.js";
|
|
20
20
|
import He from "../../config-provider/context.js";
|
|
21
21
|
function ze(g, m) {
|
|
@@ -25,12 +25,12 @@ const Oe = { bottom: 0 };
|
|
|
25
25
|
function ct(g) {
|
|
26
26
|
const {
|
|
27
27
|
onSort: m,
|
|
28
|
-
onFilter:
|
|
29
|
-
onHandleFilter:
|
|
28
|
+
onFilter: M,
|
|
29
|
+
onHandleFilter: R,
|
|
30
30
|
onHandleFilterReset: te,
|
|
31
31
|
currentFilters: v = {},
|
|
32
32
|
currentSorter: o,
|
|
33
|
-
_key:
|
|
33
|
+
_key: U,
|
|
34
34
|
dataIndex: re,
|
|
35
35
|
title: C,
|
|
36
36
|
sorter: ne,
|
|
@@ -39,7 +39,7 @@ function ct(g) {
|
|
|
39
39
|
columnFixedStyle: ie,
|
|
40
40
|
className: oe,
|
|
41
41
|
headerClassName: le,
|
|
42
|
-
cellStyle:
|
|
42
|
+
cellStyle: j,
|
|
43
43
|
headerCellStyle: x,
|
|
44
44
|
rowSpan: S,
|
|
45
45
|
colSpan: $,
|
|
@@ -49,26 +49,26 @@ function ct(g) {
|
|
|
49
49
|
component: ce,
|
|
50
50
|
filterIcon: ae,
|
|
51
51
|
filterDropdown: T,
|
|
52
|
-
filterMultiple:
|
|
53
|
-
ellipsis:
|
|
52
|
+
filterMultiple: H = !0,
|
|
53
|
+
ellipsis: z,
|
|
54
54
|
filterDropdownProps: de,
|
|
55
55
|
onFilterDropdownVisibleChange: me,
|
|
56
56
|
column: fe,
|
|
57
57
|
showSorterTooltip: I,
|
|
58
|
-
index:
|
|
58
|
+
index: P
|
|
59
59
|
} = g, {
|
|
60
60
|
prefixCls: pe,
|
|
61
61
|
getPrefixCls: Be,
|
|
62
|
-
locale:
|
|
62
|
+
locale: k,
|
|
63
63
|
rtl: ue
|
|
64
|
-
} = W(He), O = W(je), i =
|
|
64
|
+
} = W(He), O = W(je), i = U || re || P, [d, p, a] = we([], {
|
|
65
65
|
value: v[i] || []
|
|
66
|
-
}), [
|
|
66
|
+
}), [D, B] = X(!1), [K, L] = X(!1), N = ne && _(l) && l.length, b = N ? he() : void 0;
|
|
67
67
|
Y(() => {
|
|
68
68
|
p(v[i] || []);
|
|
69
69
|
}, [v, i]), Y(() => {
|
|
70
70
|
d && d !== a && p(d);
|
|
71
|
-
}, [
|
|
71
|
+
}, [D]);
|
|
72
72
|
function he() {
|
|
73
73
|
const e = o && o.direction;
|
|
74
74
|
if (!e || o && o.field !== i)
|
|
@@ -78,20 +78,20 @@ function ct(g) {
|
|
|
78
78
|
return l[s + 1];
|
|
79
79
|
}
|
|
80
80
|
function ge() {
|
|
81
|
-
d && (
|
|
82
|
-
{ onFilter:
|
|
81
|
+
d && (R?.(
|
|
82
|
+
{ onFilter: M, filters: f, dataIndex: i },
|
|
83
83
|
a
|
|
84
|
-
),
|
|
84
|
+
), w(!1));
|
|
85
85
|
}
|
|
86
86
|
function Ce() {
|
|
87
|
-
te({ dataIndex: i }),
|
|
87
|
+
te({ dataIndex: i }), w(!1);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function w(e) {
|
|
90
90
|
B(e), me?.(e);
|
|
91
91
|
}
|
|
92
92
|
function V(e, s) {
|
|
93
93
|
let n = [...a];
|
|
94
|
-
if (
|
|
94
|
+
if (H)
|
|
95
95
|
s ? n = n.concat(e) : n.splice(
|
|
96
96
|
n.findIndex((Se) => Se === e),
|
|
97
97
|
1
|
|
@@ -106,13 +106,13 @@ function ct(g) {
|
|
|
106
106
|
p(n);
|
|
107
107
|
}
|
|
108
108
|
function xe(e) {
|
|
109
|
-
p(e || a), B(!1),
|
|
110
|
-
{ filters: f, onFilter:
|
|
109
|
+
p(e || a), B(!1), R?.(
|
|
110
|
+
{ filters: f, onFilter: M, dataIndex: i },
|
|
111
111
|
e || a
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
function $e() {
|
|
115
|
-
return
|
|
115
|
+
return E(T) ? T({
|
|
116
116
|
filterKeys: a,
|
|
117
117
|
setFilterKeys: (e, s) => {
|
|
118
118
|
p(e), s?.();
|
|
@@ -121,7 +121,7 @@ function ct(g) {
|
|
|
121
121
|
}) : /* @__PURE__ */ u("div", { className: `${t}-filters-popup`, children: [
|
|
122
122
|
/* @__PURE__ */ r("div", { className: `${t}-filters-list`, children: f.map((e) => {
|
|
123
123
|
const s = a.findIndex((n) => n === e.value) !== -1;
|
|
124
|
-
return /* @__PURE__ */ r("div", { className: `${t}-filters-item`, children:
|
|
124
|
+
return /* @__PURE__ */ r("div", { className: `${t}-filters-item`, children: H ? /* @__PURE__ */ r(
|
|
125
125
|
De,
|
|
126
126
|
{
|
|
127
127
|
checked: s,
|
|
@@ -142,43 +142,43 @@ function ct(g) {
|
|
|
142
142
|
) }, e.value);
|
|
143
143
|
}) }),
|
|
144
144
|
/* @__PURE__ */ u(Ee, { className: `${t}-filters-btn`, children: [
|
|
145
|
-
/* @__PURE__ */ r(Z, { onClick: Ce, size: "mini", children:
|
|
146
|
-
/* @__PURE__ */ r(Z, { onClick: ge, type: "primary", size: "mini", children:
|
|
145
|
+
/* @__PURE__ */ r(Z, { onClick: Ce, size: "mini", children: k?.Table?.resetText }),
|
|
146
|
+
/* @__PURE__ */ r(Z, { onClick: ge, type: "primary", size: "mini", children: k?.Table?.okText })
|
|
147
147
|
] })
|
|
148
148
|
] });
|
|
149
149
|
}
|
|
150
150
|
const q = (e) => h(`${t}-sorter-icon`, {
|
|
151
151
|
[`${t}-sorter-icon-active`]: o && o.direction === e && o.field === i
|
|
152
152
|
}), Ne = h(`${t}-filters`, {
|
|
153
|
-
[`${t}-filters-open`]:
|
|
153
|
+
[`${t}-filters-open`]: D,
|
|
154
154
|
[`${t}-filters-active`]: d && d.length
|
|
155
155
|
});
|
|
156
156
|
let c = {
|
|
157
157
|
...ie
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
A(j) && (c = {
|
|
160
160
|
...c,
|
|
161
|
-
...
|
|
162
|
-
}),
|
|
161
|
+
...j
|
|
162
|
+
}), A(x) && (c = {
|
|
163
163
|
...c,
|
|
164
164
|
...x
|
|
165
|
-
}),
|
|
165
|
+
}), E(x) && (c = {
|
|
166
166
|
...c,
|
|
167
167
|
...x()
|
|
168
168
|
}), y && y !== "left" && (c.textAlign = y);
|
|
169
169
|
const F = {
|
|
170
170
|
style: c,
|
|
171
|
-
key:
|
|
171
|
+
key: U || i
|
|
172
172
|
};
|
|
173
173
|
$ && $ > 1 && (F.colSpan = $), S && S > 1 && (F.rowSpan = S);
|
|
174
|
-
const { ComponentTh: be, ComponentHeaderCell: G } = Me(ce), J = _(f) && f.length > 0 ||
|
|
174
|
+
const { ComponentTh: be, ComponentHeaderCell: G } = Me(ce), J = _(f) && f.length > 0 || E(T), Q = z && ee(C) ? { title: C } : {}, Fe = /* @__PURE__ */ u(ye, { children: [
|
|
175
175
|
N ? /* @__PURE__ */ r(
|
|
176
176
|
Re,
|
|
177
177
|
{
|
|
178
|
-
content: ze(b,
|
|
178
|
+
content: ze(b, k),
|
|
179
179
|
disabled: !I,
|
|
180
180
|
triggerProps: O.triggerProps,
|
|
181
|
-
...
|
|
181
|
+
...A(I) ? I : {},
|
|
182
182
|
children: /* @__PURE__ */ u(
|
|
183
183
|
"div",
|
|
184
184
|
{
|
|
@@ -217,15 +217,15 @@ function ct(g) {
|
|
|
217
217
|
classNames: `${pe}-slide-dynamic-origin`,
|
|
218
218
|
position: ue ? "bl" : "br",
|
|
219
219
|
popupAlign: Oe,
|
|
220
|
-
popupVisible:
|
|
221
|
-
onVisibleChange:
|
|
220
|
+
popupVisible: D,
|
|
221
|
+
onVisibleChange: w,
|
|
222
222
|
...O.triggerProps,
|
|
223
223
|
...de?.triggerProps,
|
|
224
224
|
children: /* @__PURE__ */ r("div", { className: Ne, children: ae || /* @__PURE__ */ r(ke, {}) })
|
|
225
225
|
}
|
|
226
226
|
)
|
|
227
227
|
] }), ve = h(`${t}-th-item`, {
|
|
228
|
-
[`${t}-cell-text-ellipsis`]:
|
|
228
|
+
[`${t}-cell-text-ellipsis`]: z,
|
|
229
229
|
[`${t}-cell-mouseenter`]: K,
|
|
230
230
|
[`${t}-cell-next-${b}`]: K && b,
|
|
231
231
|
[`${t}-col-has-sorter`]: N,
|
|
@@ -237,12 +237,13 @@ function ct(g) {
|
|
|
237
237
|
className: h(
|
|
238
238
|
`${t}-th`,
|
|
239
239
|
{
|
|
240
|
-
[`${t}-col-sorted`]: o?.direction && o.field === i
|
|
240
|
+
[`${t}-col-sorted`]: o?.direction && o.field === i,
|
|
241
|
+
[`${t}-col-first`]: P === 0
|
|
241
242
|
},
|
|
242
243
|
oe,
|
|
243
244
|
le
|
|
244
245
|
),
|
|
245
|
-
index:
|
|
246
|
+
index: P,
|
|
246
247
|
...F,
|
|
247
248
|
key: F.key,
|
|
248
249
|
...se
|
package/table/thead/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/* 2026-01-
|
|
2
|
-
import { jsx as
|
|
1
|
+
/* 2026-01-27 10:44:03 */
|
|
2
|
+
import { jsx as a, jsxs as Z } from "react/jsx-runtime";
|
|
3
3
|
import ee, { useContext as te, useMemo as oe, createElement as O } from "react";
|
|
4
|
-
import
|
|
4
|
+
import ne from "../../checkbox/Checkbox.js";
|
|
5
5
|
import "../../checkbox/Group.js";
|
|
6
6
|
import "../../config-provider/ConfigProvider.js";
|
|
7
|
-
import { INTERNAL_SELECTION_KEY as
|
|
7
|
+
import { INTERNAL_SELECTION_KEY as se, INTERNAL_EXPAND_KEY as re } from "../constant.js";
|
|
8
8
|
import ie from "../hook/useComponent.js";
|
|
9
|
-
import
|
|
9
|
+
import h from "@unicom-cloud/ui-common/utils/className";
|
|
10
10
|
import { isArray as ae, isNumber as le } from "@unicom-cloud/ui-common/utils/is";
|
|
11
11
|
import { TableTheadContext as de } from "../context.js";
|
|
12
12
|
import ce from "./Column.js";
|
|
13
|
-
import
|
|
14
|
-
function $e(
|
|
13
|
+
import he from "../../config-provider/context.js";
|
|
14
|
+
function $e(g) {
|
|
15
15
|
const {
|
|
16
16
|
activeSorters: _,
|
|
17
17
|
expandedRowRender: P,
|
|
@@ -22,40 +22,40 @@ function $e(f) {
|
|
|
22
22
|
onHeaderRow: L,
|
|
23
23
|
prefixCls: o,
|
|
24
24
|
currentFilters: j,
|
|
25
|
-
component:
|
|
26
|
-
data:
|
|
27
|
-
selectedRowKeys:
|
|
25
|
+
component: T,
|
|
26
|
+
data: p,
|
|
27
|
+
selectedRowKeys: s,
|
|
28
28
|
rowSelection: t,
|
|
29
|
-
allSelectedRowKeys:
|
|
29
|
+
allSelectedRowKeys: n = [],
|
|
30
30
|
groupColumns: N,
|
|
31
31
|
stickyOffsets: C,
|
|
32
32
|
groupStickyClassNames: Y,
|
|
33
33
|
showSorterTooltip: D
|
|
34
|
-
} =
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
}, [
|
|
38
|
-
const u = L?.(
|
|
34
|
+
} = g, { rtl: y } = te(he), { ComponentThead: M, ComponentHeaderRow: W, getHeaderComponentOperations: X } = ie(T), q = t && (t.type === "checkbox" || !("type" in t)), z = t && "checkAll" in t ? t.checkAll : !0, k = t && t.type === "radio", { columnTitle: E } = v, x = oe(() => {
|
|
35
|
+
const m = new Set(n);
|
|
36
|
+
return s.filter((r, u, A) => m.has(r));
|
|
37
|
+
}, [s, n]), B = N.length > 1 ? { rowSpan: N.length } : {}, w = h(`${o}-th`, `${o}-operation`), G = /* @__PURE__ */ a(M, { children: N.map((m, r) => {
|
|
38
|
+
const u = L?.(m, r), A = (q || k) && r === 0 && /* @__PURE__ */ a(
|
|
39
39
|
"th",
|
|
40
40
|
{
|
|
41
|
-
className:
|
|
42
|
-
|
|
41
|
+
className: h(
|
|
42
|
+
w,
|
|
43
43
|
`${o}-${k ? "radio" : "checkbox"}`
|
|
44
44
|
),
|
|
45
45
|
children: /* @__PURE__ */ Z("div", { className: `${o}-th-item`, children: [
|
|
46
|
-
z && !k ? /* @__PURE__ */
|
|
47
|
-
|
|
46
|
+
z && !k ? /* @__PURE__ */ a(
|
|
47
|
+
ne,
|
|
48
48
|
{
|
|
49
|
-
indeterminate:
|
|
50
|
-
checked:
|
|
51
|
-
disabled: !
|
|
52
|
-
onChange:
|
|
49
|
+
indeterminate: p && s.length > 0 && (n.length === 0 ? s.length < p.length : x.length > 0 && x.length !== n.length),
|
|
50
|
+
checked: p && s.length > 0 && (n.length === 0 ? s.length === p.length : x.length === n.length),
|
|
51
|
+
disabled: !n.length,
|
|
52
|
+
onChange: g.onCheckAll
|
|
53
53
|
}
|
|
54
54
|
) : null,
|
|
55
55
|
t && t.columnTitle
|
|
56
56
|
] })
|
|
57
57
|
}
|
|
58
|
-
), J = P && /* @__PURE__ */
|
|
58
|
+
), J = P && /* @__PURE__ */ a("th", { className: h(w, `${o}-expand`), children: E && /* @__PURE__ */ a("div", { className: `${o}-th-item`, children: E }) }), Q = Y[r], b = X({
|
|
59
59
|
selectionNode: A,
|
|
60
60
|
expandNode: J
|
|
61
61
|
});
|
|
@@ -63,69 +63,69 @@ function $e(f) {
|
|
|
63
63
|
W,
|
|
64
64
|
{
|
|
65
65
|
...u,
|
|
66
|
-
key:
|
|
66
|
+
key: r,
|
|
67
67
|
className: `${o}-tr`
|
|
68
68
|
},
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
let
|
|
72
|
-
ae(
|
|
73
|
-
const H = Q[
|
|
69
|
+
m.map((e, l) => {
|
|
70
|
+
const i = e.$$columnIndex;
|
|
71
|
+
let d = 0;
|
|
72
|
+
ae(i) && i.length === 2 ? d = e.fixed === "right" ? C[i[1]] : C[i[0]] : le(i) && (d = C[i] || 0);
|
|
73
|
+
const H = Q[l];
|
|
74
74
|
if (e.$$isOperation) {
|
|
75
|
-
let
|
|
76
|
-
e.title ===
|
|
77
|
-
(
|
|
78
|
-
)?.node,
|
|
79
|
-
(
|
|
80
|
-
)?.node,
|
|
81
|
-
const
|
|
82
|
-
return ee.cloneElement(
|
|
83
|
-
key: e.key ||
|
|
84
|
-
...
|
|
75
|
+
let c = e.node, S = !0;
|
|
76
|
+
e.title === se && (c = b.find(
|
|
77
|
+
($) => $.name === "selectionNode"
|
|
78
|
+
)?.node, S = !1), e.title === re && (c = b.find(
|
|
79
|
+
($) => $.name === "expandNode"
|
|
80
|
+
)?.node, S = !1);
|
|
81
|
+
const f = c;
|
|
82
|
+
return ee.cloneElement(f, {
|
|
83
|
+
key: e.key || l,
|
|
84
|
+
...f.props,
|
|
85
85
|
...B,
|
|
86
|
-
className:
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
className: h(
|
|
87
|
+
S ? w : "",
|
|
88
|
+
f?.props?.className,
|
|
89
89
|
H
|
|
90
90
|
),
|
|
91
91
|
style: {
|
|
92
|
-
...
|
|
92
|
+
...f?.props?.style,
|
|
93
93
|
...e.fixed === "left" ? {
|
|
94
|
-
[y ? "right" : "left"]:
|
|
94
|
+
[y ? "right" : "left"]: d
|
|
95
95
|
} : {},
|
|
96
96
|
width: e.width,
|
|
97
97
|
minWidth: e.width
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
const U = e?.onHeaderCell?.(e,
|
|
102
|
-
return e.fixed === "left" && (
|
|
101
|
+
const U = e?.onHeaderCell?.(e, l), V = h(H, e.className), R = {};
|
|
102
|
+
return e.fixed === "left" && (R[y ? "right" : "left"] = d), e.fixed === "right" && (R[y ? "left" : "right"] = d), /* @__PURE__ */ O(
|
|
103
103
|
ce,
|
|
104
104
|
{
|
|
105
|
-
index:
|
|
105
|
+
index: l,
|
|
106
106
|
onSort: K,
|
|
107
107
|
onHandleFilter: F,
|
|
108
108
|
onHandleFilterReset: I,
|
|
109
109
|
currentSorter: _.find(
|
|
110
|
-
(
|
|
110
|
+
(c) => c.field === (e.dataIndex || e.key)
|
|
111
111
|
),
|
|
112
112
|
currentFilters: j,
|
|
113
|
-
_key: e.key || e.dataIndex ||
|
|
113
|
+
_key: e.key || e.dataIndex || l,
|
|
114
114
|
...e,
|
|
115
115
|
key: e.key,
|
|
116
116
|
column: e,
|
|
117
117
|
headerCellProps: U,
|
|
118
118
|
prefixCls: o,
|
|
119
|
-
component:
|
|
119
|
+
component: T,
|
|
120
120
|
className: V,
|
|
121
|
-
columnFixedStyle:
|
|
121
|
+
columnFixedStyle: R,
|
|
122
122
|
showSorterTooltip: D
|
|
123
123
|
}
|
|
124
124
|
);
|
|
125
125
|
})
|
|
126
126
|
);
|
|
127
127
|
}) });
|
|
128
|
-
return /* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ a(de.Provider, { value: { ...g }, children: G });
|
|
129
129
|
}
|
|
130
130
|
export {
|
|
131
131
|
$e as default
|
package/table/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2026-01-
|
|
1
|
+
/* 2026-01-27 10:44:03 */
|
|
2
2
|
import { isPlainObject as N, isArray as E, isObjectLike as T, isNumber as o, isFunction as p, isString as c, isUndefined as S, isNull as R } from "@unicom-cloud/ui-common/utils/is";
|
|
3
3
|
function D(t) {
|
|
4
4
|
return o(t) ? t : c(t) ? parseFloat(t) : t;
|
package/tabs/TabContent.js
CHANGED
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
/* 2026-01-
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
1
|
+
/* 2026-01-27 10:44:03 */
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import g, { useContext as l } from "react";
|
|
4
4
|
import "../config-provider/ConfigProvider.js";
|
|
5
|
-
import
|
|
6
|
-
import { TabsContext as
|
|
7
|
-
import
|
|
8
|
-
function
|
|
5
|
+
import d from "@unicom-cloud/ui-common/utils/className";
|
|
6
|
+
import { TabsContext as h, TabContentContext as I } from "./context.js";
|
|
7
|
+
import N from "../config-provider/context.js";
|
|
8
|
+
function z(a) {
|
|
9
9
|
const {
|
|
10
10
|
animation: m,
|
|
11
|
-
activeTab:
|
|
11
|
+
activeTab: s,
|
|
12
12
|
prefixCls: n,
|
|
13
|
-
paneChildren:
|
|
13
|
+
paneChildren: r,
|
|
14
14
|
direction: p,
|
|
15
|
-
lazyload:
|
|
16
|
-
destroyOnHide:
|
|
17
|
-
} =
|
|
18
|
-
if (
|
|
15
|
+
lazyload: H,
|
|
16
|
+
destroyOnHide: f
|
|
17
|
+
} = a, i = r.findIndex((e) => e.key === s), { rtl: u } = l(N), v = l(h), { getIdPrefix: y } = v;
|
|
18
|
+
if (r.every((e) => e?.props && (!("children" in e.props) || e.props.children === null)))
|
|
19
19
|
return null;
|
|
20
|
-
const
|
|
20
|
+
const b = d(`${n}-content-inner`, {
|
|
21
21
|
[`${n}-animation`]: m
|
|
22
22
|
});
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ o(I.Provider, { value: { ...a }, children: /* @__PURE__ */ o("div", { className: `${n}-content ${n}-content-${p}`, children: /* @__PURE__ */ o(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
|
-
className:
|
|
27
|
-
style:
|
|
28
|
-
children:
|
|
29
|
-
const { tabpane:
|
|
30
|
-
return /* @__PURE__ */
|
|
26
|
+
className: b,
|
|
27
|
+
style: u ? { marginRight: `-${i * 100}%` } : { marginLeft: `-${i * 100}%` },
|
|
28
|
+
children: r.map((e, c) => {
|
|
29
|
+
const { tabpane: C, tab: x } = y(c), $ = "destroyOnHide" in e.props ? e.props.destroyOnHide : f, t = e.key === s;
|
|
30
|
+
return /* @__PURE__ */ o(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
|
-
className:
|
|
33
|
+
className: d(`${n}-content-item`, {
|
|
34
34
|
[`${n}-content-item-active`]: t
|
|
35
35
|
}),
|
|
36
36
|
role: "tabpanel",
|
|
37
|
-
id:
|
|
37
|
+
id: C,
|
|
38
38
|
"aria-hidden": t ? void 0 : !0,
|
|
39
39
|
tabIndex: t ? 0 : -1,
|
|
40
|
-
"aria-labelledby":
|
|
41
|
-
children:
|
|
42
|
-
lazyload: f,
|
|
40
|
+
"aria-labelledby": x,
|
|
41
|
+
children: i !== c && $ ? null : g.cloneElement(e, {
|
|
43
42
|
isActive: t
|
|
44
43
|
})
|
|
45
44
|
},
|
|
@@ -47,8 +46,8 @@ function j(d) {
|
|
|
47
46
|
);
|
|
48
47
|
})
|
|
49
48
|
}
|
|
50
|
-
) });
|
|
49
|
+
) }) });
|
|
51
50
|
}
|
|
52
51
|
export {
|
|
53
|
-
|
|
52
|
+
z as default
|
|
54
53
|
};
|
package/tabs/TabPane.js
CHANGED
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
/* 2026-01-
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
1
|
+
/* 2026-01-27 10:44:03 */
|
|
2
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
3
|
+
import b, { useRef as x, useContext as e } from "react";
|
|
4
4
|
import "../config-provider/ConfigProvider.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import N from "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import y from "@unicom-cloud/ui-common/utils/className";
|
|
6
|
+
import T from "@unicom-cloud/ui-common/utils/omit";
|
|
7
|
+
import { TabsContext as N, TabContentContext as P } from "./context.js";
|
|
8
|
+
import R from "../config-provider/context.js";
|
|
9
|
+
function z(a, s) {
|
|
10
|
+
const t = x(!1), { getPrefixCls: n } = e(R), r = e(N), l = e(P), i = n?.("tabs"), {
|
|
11
|
+
children: c,
|
|
12
|
+
className: m,
|
|
13
|
+
style: f,
|
|
14
|
+
lazyload: d = r.lazyload ?? l.lazyload,
|
|
15
|
+
isActive: p,
|
|
16
|
+
...u
|
|
17
|
+
} = a;
|
|
18
|
+
return t.current = d ? t.current || p : !0, t.current && /* @__PURE__ */ C(
|
|
11
19
|
"div",
|
|
12
20
|
{
|
|
13
21
|
ref: s,
|
|
14
|
-
...
|
|
15
|
-
className:
|
|
16
|
-
style:
|
|
17
|
-
children:
|
|
22
|
+
...T(u, ["destroyOnHide", "title", "closable"]),
|
|
23
|
+
className: y(`${i}-pane`, m),
|
|
24
|
+
style: f,
|
|
25
|
+
children: c
|
|
18
26
|
}
|
|
19
27
|
);
|
|
20
28
|
}
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
const o = b.forwardRef(z);
|
|
30
|
+
o.displayName = "TabPane";
|
|
31
|
+
o.isTabPane = !0;
|
|
24
32
|
export {
|
|
25
|
-
|
|
33
|
+
o as default
|
|
26
34
|
};
|
package/tabs/Tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 2026-01-
|
|
1
|
+
/* 2026-01-27 10:44:03 */
|
|
2
2
|
import { jsx as p, jsxs as O } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import z, { useContext as V, useRef as L, useImperativeHandle as _, createElement as q } from "react";
|
|
4
4
|
import "../config-provider/ConfigProvider.js";
|
|
5
5
|
import G from "@unicom-cloud/ui-common/hooks/use-id";
|
|
6
6
|
import J from "@unicom-cloud/ui-common/hooks/use-merge-props";
|
|
@@ -11,7 +11,8 @@ import h from "@unicom-cloud/ui-common/utils/omit";
|
|
|
11
11
|
import W from "./TabContent.js";
|
|
12
12
|
import N from "./TabPane.js";
|
|
13
13
|
import { TabsContext as X } from "./context.js";
|
|
14
|
-
import
|
|
14
|
+
import { TabContentContext as $e } from "./context.js";
|
|
15
|
+
import x from "./tab-header/index.js";
|
|
15
16
|
import Y from "../config-provider/context.js";
|
|
16
17
|
const Z = ["mini", "small", "default", "large"], ee = (l) => {
|
|
17
18
|
const { items: i, children: s } = l;
|
|
@@ -19,7 +20,7 @@ const Z = ["mini", "small", "default", "large"], ee = (l) => {
|
|
|
19
20
|
return U(i) && i.length ? t = i.map((o, P, e) => {
|
|
20
21
|
const { key: c, title: m, children: d } = o ?? {};
|
|
21
22
|
return /* @__PURE__ */ q(N, { ...o, key: c }, d);
|
|
22
|
-
}) :
|
|
23
|
+
}) : z.Children.forEach(s, (o) => {
|
|
23
24
|
o?.type?.isTabPane && t.push(o);
|
|
24
25
|
}), t;
|
|
25
26
|
}, te = (l) => {
|
|
@@ -157,9 +158,9 @@ function ie(l, i) {
|
|
|
157
158
|
size: b,
|
|
158
159
|
...$
|
|
159
160
|
},
|
|
160
|
-
|
|
161
|
+
x
|
|
161
162
|
) : /* @__PURE__ */ p(
|
|
162
|
-
|
|
163
|
+
x,
|
|
163
164
|
{
|
|
164
165
|
...h(e, ["children", "style", "className"]),
|
|
165
166
|
size: b
|
|
@@ -172,12 +173,13 @@ function ie(l, i) {
|
|
|
172
173
|
}
|
|
173
174
|
);
|
|
174
175
|
}
|
|
175
|
-
const oe =
|
|
176
|
+
const oe = z.forwardRef(
|
|
176
177
|
ie
|
|
177
178
|
), w = oe;
|
|
178
179
|
w.displayName = "Tabs";
|
|
179
180
|
w.TabPane = N;
|
|
180
181
|
export {
|
|
182
|
+
$e as TabContentContext,
|
|
181
183
|
N as TabPane,
|
|
182
184
|
X as TabsContext,
|
|
183
185
|
N as TabsTabPane,
|
package/tabs/context.js
CHANGED
package/tabs/hook/useDomSize.js
CHANGED
package/tabs/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
/* 2026-01-
|
|
1
|
+
/* 2026-01-27 10:44:03 */
|
|
2
2
|
import { default as r } from "./hook/useDomSize.js";
|
|
3
3
|
import { default as s } from "./hook/useHeaderScroll.js";
|
|
4
|
-
import
|
|
5
|
-
import { default as
|
|
6
|
-
import { TabsContext as
|
|
4
|
+
import a from "./Tabs.js";
|
|
5
|
+
import { default as n, default as l } from "./TabPane.js";
|
|
6
|
+
import { TabContentContext as x, TabsContext as b } from "./context.js";
|
|
7
7
|
export {
|
|
8
8
|
r as DomSize,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
x as TabContentContext,
|
|
10
|
+
n as TabPane,
|
|
11
|
+
b as TabsContext,
|
|
12
|
+
l as TabsTabPane,
|
|
13
|
+
a as default,
|
|
13
14
|
s as useHeaderScroll
|
|
14
15
|
};
|