@unicom-cloud/ui 0.8.148 → 0.8.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Affix.js +1 -1
- package/Alert.js +1 -1
- package/Anchor.js +1 -1
- package/App.js +1 -1
- package/AutoComplete.js +1 -1
- package/Avatar.js +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +1 -1
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Constant.js +1 -1
- package/Copy.js +1 -1
- package/Countdown.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +1 -1
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Draw.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/GlobalProvider.js +1 -1
- package/Grid.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +1 -1
- package/InputTag.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +1 -1
- package/List.js +1 -1
- package/Loading.js +1 -1
- package/Marquee.js +1 -1
- package/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 +11 -6
- package/QrCode.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +1 -1
- package/RowCol.js +1 -1
- package/Segmented.js +1 -1
- package/Select.js +1 -1
- package/SelectView.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +1 -1
- package/Splitter.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/SuspenseFallbackTest.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/TimePicker.js +1 -1
- package/Timeline.js +1 -1
- package/Timer.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/affix/Affix.js +1 -1
- package/affix/index.js +1 -1
- package/alert/Alert.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/anchor/context.js +1 -1
- package/anchor/index.js +1 -1
- package/anchor/utils.js +1 -1
- package/app/App.js +1 -1
- package/app/context.js +1 -1
- package/app/index.js +1 -1
- package/app/useApp.js +1 -1
- package/auto-complete/AutoComplete.js +1 -1
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/avatar/context.js +1 -1
- package/avatar/index.js +1 -1
- package/back-top/BackTop.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/Badge.js +1 -1
- package/badge/Count.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/Breadcrumb.js +35 -35
- package/breadcrumb/Item.js +1 -1
- package/breadcrumb/context.js +1 -1
- package/breadcrumb/index.js +1 -1
- package/button/Button.js +1 -1
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/Lunar.js +1 -1
- package/calendar/Month.js +1 -1
- package/calendar/WeekList.js +1 -1
- package/calendar/Year.js +1 -1
- package/calendar/header/Panel.js +1 -1
- package/calendar/header/index.js +1 -1
- package/calendar/hook/useCellClassName.js +1 -1
- package/calendar/index.js +1 -1
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +1 -1
- package/cascader/base/node.js +1 -1
- package/cascader/base/store.js +1 -1
- package/cascader/hook/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +1 -1
- package/cascader/panel/Search.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/context.js +1 -1
- package/checkbox/index.js +1 -1
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +40 -38
- package/collapse/Item.js +1 -1
- 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/initUI.js +1 -1
- package/config-provider/useConfigProvider.js +1 -1
- package/constant/index.js +1 -1
- package/copy/index.js +1 -1
- package/countdown/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/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 +1 -1
- package/details/index.js +1 -1
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/Item.js +1 -1
- package/draggable/index.js +1 -1
- package/draw/Draw.js +1 -1
- package/draw/constant.js +1 -1
- package/draw/index.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/drawer/index.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +1 -1
- package/form/Control.js +1 -1
- package/form/Form.js +1 -1
- package/form/FormItem.js +68 -60
- package/form/FormItemTip.js +13 -19
- package/form/FormLabel.js +1 -1
- package/form/FormList.js +39 -33
- 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/global-provider/context.js +1 -1
- package/global-provider/index.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 +453 -447
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +1 -1
- package/input/Number.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Tag.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextareaHeight.js +1 -1
- package/input/index.js +1 -1
- package/input/useComposition.js +1 -1
- package/input/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 +1 -1
- package/input-tag/index.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/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 +27 -26
- 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 +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 +1 -1
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +1 -1
- package/menu/OverflowWrap.js +1 -1
- package/menu/context.js +1 -1
- package/menu/index.js +1 -1
- package/menu/sub-menu/Inline.js +1 -1
- package/menu/sub-menu/Pop.js +1 -1
- package/menu/sub-menu/index.js +1 -1
- package/menu/utils.js +26 -24
- package/message/Message.js +1 -1
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +1 -1
- package/modal/Modal.js +1 -1
- package/modal/config.js +1 -1
- package/modal/index.js +1 -1
- package/modal/use-modal/Hook.js +1 -1
- package/modal/use-modal/index.js +1 -1
- package/notice/Notice.js +1 -1
- package/notice/index.js +1 -1
- package/notification/Notification.js +1 -1
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/notification/withNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/pagination/interface.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/picker/index.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/Popover.js +1 -1
- package/popover/index.js +1 -1
- package/portal/Portal.js +1 -1
- package/portal/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +1 -1
- package/progress/index.js +58 -47
- 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 +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 +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.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 +3 -2
- package/table/constant.js +1 -1
- package/table/context.js +1 -1
- package/table/hook/useColumns.js +1 -1
- package/table/hook/useComponent.js +1 -1
- package/table/hook/useExpand.js +1 -1
- package/table/hook/useRowSelection.js +1 -1
- package/table/hook/useSorter.js +1 -1
- package/table/hook/useStickyClassNames.js +1 -1
- package/table/hook/useStickyOffsets.js +1 -1
- package/table/hook/useThResizable.js +1 -1
- package/table/index.js +1 -1
- package/table/summary/Cell.js +1 -1
- package/table/summary/Row.js +1 -1
- package/table/summary/context.js +1 -1
- package/table/summary/index.js +1 -1
- package/table/tbody/Td.js +1 -1
- package/table/tbody/Tr.js +1 -1
- package/table/tbody/index.js +1 -1
- package/table/tfoot/index.js +1 -1
- package/table/th-resizable/index.js +1 -1
- package/table/thead/Column.js +1 -1
- package/table/thead/index.js +1 -1
- package/table/utils.js +1 -1
- package/tabs/TabContent.js +1 -1
- package/tabs/TabPane.js +1 -1
- package/tabs/Tabs.js +56 -56
- 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 +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/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 +1 -1
- package/trigger/index.js +1 -1
- package/types/form/context.d.ts +1 -0
- package/types/form/interface.d.ts +5 -0
- package/types/index.d.ts +1 -3
- package/types/progress/index.d.ts +38 -1
- package/types/progress/interface.d.ts +1 -0
- package/types/utils/names.d.ts +0 -6
- package/typography/Base.js +1 -1
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +1 -1
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +1 -1
- package/typography/Text.js +1 -1
- package/typography/Title.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +1 -1
- package/typography/useCssEllipsis.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +1 -1
- package/upload/constant.js +1 -1
- package/upload/index.js +1 -1
- package/upload/list/PictureItem.js +1 -1
- package/upload/list/TextItem.js +1 -1
- package/upload/list/UploadProgress.js +1 -1
- package/upload/list/index.js +1 -1
- package/upload/list/utils.js +1 -1
- package/upload/request.js +1 -1
- package/upload/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +1 -1
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.js +1 -7
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/throttleByRaf.js +1 -1
- package/utils/throttleByRaf2.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/verification-code/index.js +1 -1
- package/version/index.js +2 -2
- package/virtual-list/Filler.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/virtual-list/constant.js +1 -1
- package/virtual-list/hook/useCacheChildrenNodes.js +1 -1
- package/virtual-list/hook/useComputeVirtualItemHeight.js +1 -1
- package/virtual-list/index.js +1 -1
- package/virtual-list/utils/algorithm.js +1 -1
- package/virtual-list/utils/item.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/watermark/index.js +1 -1
- package/Progress2.js +0 -6
- package/progress2/index.js +0 -6
- package/types/progress2/index.d.ts +0 -1
- package/types/progress2/interface.d.ts +0 -1
package/divider/index.js
CHANGED
package/draggable/Item.js
CHANGED
package/draggable/index.js
CHANGED
package/draw/Draw.js
CHANGED
package/draw/constant.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/* 2026-
|
|
1
|
+
/* 2026-03-04 15:09:50 */
|
package/draw/index.js
CHANGED
package/drawer/Drawer.js
CHANGED
package/drawer/index.js
CHANGED
package/dropdown/Button.js
CHANGED
package/dropdown/index.js
CHANGED
package/empty/index.js
CHANGED
package/flex/index.js
CHANGED
package/form/Control.js
CHANGED
package/form/Form.js
CHANGED
package/form/FormItem.js
CHANGED
|
@@ -1,49 +1,57 @@
|
|
|
1
|
-
/* 2026-
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
1
|
+
/* 2026-03-04 15:09:50 */
|
|
2
|
+
import { jsxs as z, jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import U, { forwardRef as ue, useContext as g, useState as W, useRef as be, useEffect as he, useMemo as _, createElement as H, cloneElement as K } from "react";
|
|
4
4
|
import "../config-provider/ConfigProvider.js";
|
|
5
|
-
import
|
|
5
|
+
import Ce from "@unicom-cloud/ui-common/hooks/use-merge-props";
|
|
6
6
|
import ge from "../row-col/index.js";
|
|
7
7
|
import x from "@unicom-cloud/ui-common/utils/className";
|
|
8
8
|
import { isPlainObject as S, isUndefined as k, isFunction as xe, isArray as ye } from "@unicom-cloud/ui-common/utils/is";
|
|
9
|
-
import
|
|
9
|
+
import B from "@unicom-cloud/ui-common/utils/omit";
|
|
10
10
|
import y from "./Control.js";
|
|
11
11
|
import we from "./FormItemTip.js";
|
|
12
12
|
import $e from "./FormLabel.js";
|
|
13
|
-
import { FormContext as
|
|
13
|
+
import { FormContext as G, FormListContext as Fe, FormItemContext as J } from "./context.js";
|
|
14
14
|
import { VALIDATE_STATUS as A } from "./interface.js";
|
|
15
15
|
import { formatValidateMsg as Ie } from "./utils.js";
|
|
16
16
|
import ve from "../config-provider/context.js";
|
|
17
|
-
import
|
|
17
|
+
import Q from "../row-col/Col.js";
|
|
18
18
|
const Pe = {
|
|
19
19
|
trigger: "onChange",
|
|
20
20
|
triggerPropName: "value"
|
|
21
21
|
};
|
|
22
|
-
function Ne(
|
|
23
|
-
const { prefixCls: ke, getPrefixCls:
|
|
24
|
-
|
|
22
|
+
function Ne(X, Y) {
|
|
23
|
+
const { prefixCls: ke, getPrefixCls: Z } = g(ve), o = g(G), D = g(Fe), i = g(J), e = Ce(
|
|
24
|
+
X,
|
|
25
25
|
Pe
|
|
26
26
|
), {
|
|
27
27
|
noStyle: f,
|
|
28
|
-
readOnly:
|
|
29
|
-
} = e, {
|
|
28
|
+
readOnly: E = i?.readOnly ?? o?.readOnly
|
|
29
|
+
} = e, {
|
|
30
|
+
label: w,
|
|
31
|
+
extra: L,
|
|
32
|
+
className: ee,
|
|
33
|
+
style: re,
|
|
34
|
+
validateStatus: u,
|
|
35
|
+
hidden: le = D.hidden,
|
|
36
|
+
...oe
|
|
37
|
+
} = e, q = "label" in e && !!w;
|
|
30
38
|
function m() {
|
|
31
|
-
return "disabled" in e ? e.disabled :
|
|
39
|
+
return "disabled" in e ? e.disabled : i?.disabled ?? o?.disabled;
|
|
32
40
|
}
|
|
33
|
-
const [$,
|
|
41
|
+
const [$, O] = W(null), [b, T] = W(null), F = be(!1), h = o?.prefixCls || Z?.("form"), r = i?.prefixCls || `${h}-item`, I = e.layout || i?.layout || o?.layout, te = e.labelAlign || i?.labelAlign || o?.labelAlign, v = e.rowProps || i?.rowProps || o?.rowProps, j = e.labelCol || o?.labelCol, P = e.wrapperCol || o?.wrapperCol, se = !j, ne = !P, ie = I === "horizontal", ae = te === "left", de = (s, l = {}) => {
|
|
34
42
|
if (F.current)
|
|
35
43
|
return;
|
|
36
44
|
const { errors: n, warnings: t } = l || {};
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
return n ?
|
|
40
|
-
}),
|
|
41
|
-
const
|
|
42
|
-
return t && t.length ?
|
|
45
|
+
O((c) => {
|
|
46
|
+
const a = { ...c || {} };
|
|
47
|
+
return n ? a[s] = n : delete a[s], a;
|
|
48
|
+
}), T((c) => {
|
|
49
|
+
const a = { ...c || {} };
|
|
50
|
+
return t && t.length ? a[s] = t : delete a[s], a;
|
|
43
51
|
});
|
|
44
|
-
}, me = S(f) && f.showErrorTip &&
|
|
45
|
-
|
|
46
|
-
F.current = !0,
|
|
52
|
+
}, me = S(f) && f.showErrorTip && i?.updateFormItem ? i.updateFormItem : de;
|
|
53
|
+
he(() => (F.current = !1, () => {
|
|
54
|
+
F.current = !0, O(null), T(null);
|
|
47
55
|
}), []);
|
|
48
56
|
const ce = {
|
|
49
57
|
...o,
|
|
@@ -53,20 +61,20 @@ function Ne(Q, X) {
|
|
|
53
61
|
prefixCls: r,
|
|
54
62
|
updateFormItem: me,
|
|
55
63
|
disabled: m(),
|
|
56
|
-
readOnly:
|
|
57
|
-
},
|
|
64
|
+
readOnly: E
|
|
65
|
+
}, M = $ ? Object.values($) : [], N = b ? Object.values(b).reduce((s, l) => s.concat(l), []) : [], C = _(() => {
|
|
58
66
|
if (u)
|
|
59
67
|
return u;
|
|
60
|
-
if (
|
|
68
|
+
if (M.length)
|
|
61
69
|
return A.error;
|
|
62
70
|
if (N.length)
|
|
63
71
|
return A.warning;
|
|
64
|
-
}, [$, b, u]),
|
|
72
|
+
}, [$, b, u]), V = _(() => !k(e.help) || N.length > 0, [e.help, b]);
|
|
65
73
|
function pe() {
|
|
66
74
|
const { field: s, children: l } = e;
|
|
67
75
|
if (xe(l)) {
|
|
68
76
|
const { key: n, ...t } = e ?? {};
|
|
69
|
-
return /* @__PURE__ */
|
|
77
|
+
return /* @__PURE__ */ H(
|
|
70
78
|
y,
|
|
71
79
|
{
|
|
72
80
|
disabled: m(),
|
|
@@ -80,19 +88,19 @@ function Ne(Q, X) {
|
|
|
80
88
|
);
|
|
81
89
|
}
|
|
82
90
|
if (ye(l)) {
|
|
83
|
-
const n =
|
|
91
|
+
const n = U.Children.map(l, (t, c) => {
|
|
84
92
|
if (S(t)) {
|
|
85
|
-
const
|
|
86
|
-
return k(m()) || fe || (
|
|
93
|
+
const a = t.key || c, fe = "disabled" in t.props, R = { key: a };
|
|
94
|
+
return k(m()) || fe || (R.disabled = m()), K(t, R);
|
|
87
95
|
}
|
|
88
96
|
return t;
|
|
89
97
|
});
|
|
90
98
|
return /* @__PURE__ */ d(y, { ...e, field: void 0, children: n });
|
|
91
99
|
}
|
|
92
|
-
if (
|
|
100
|
+
if (U.Children.count(l) == 1) {
|
|
93
101
|
if (s) {
|
|
94
|
-
const n =
|
|
95
|
-
return /* @__PURE__ */
|
|
102
|
+
const n = D?.getItemKey?.(s) || s;
|
|
103
|
+
return /* @__PURE__ */ H(
|
|
96
104
|
y,
|
|
97
105
|
{
|
|
98
106
|
disabled: m(),
|
|
@@ -107,18 +115,18 @@ function Ne(Q, X) {
|
|
|
107
115
|
if (l.type?.isFormControl)
|
|
108
116
|
return l;
|
|
109
117
|
const t = !("disabled" in l.props) && k(m()) ? null : { disabled: m() };
|
|
110
|
-
return /* @__PURE__ */ d(y, { ...e, field: void 0, children: t ?
|
|
118
|
+
return /* @__PURE__ */ d(y, { ...e, field: void 0, children: t ? K(l, t) : l });
|
|
111
119
|
}
|
|
112
120
|
}
|
|
113
121
|
return l;
|
|
114
122
|
}
|
|
115
123
|
let p = pe();
|
|
116
|
-
return f || (p = /* @__PURE__ */
|
|
124
|
+
return f || (p = /* @__PURE__ */ z(
|
|
117
125
|
ge,
|
|
118
126
|
{
|
|
119
|
-
ref:
|
|
127
|
+
ref: Y,
|
|
120
128
|
...v,
|
|
121
|
-
...
|
|
129
|
+
...B(oe, [
|
|
122
130
|
"tooltip",
|
|
123
131
|
"children",
|
|
124
132
|
"prefixCls",
|
|
@@ -152,11 +160,11 @@ function Ne(Q, X) {
|
|
|
152
160
|
className: x(
|
|
153
161
|
r,
|
|
154
162
|
{
|
|
155
|
-
[`${r}-error`]:
|
|
156
|
-
[`${r}-status-${
|
|
157
|
-
[`${r}-has-help`]:
|
|
163
|
+
[`${r}-error`]: V || !u && C === A.error,
|
|
164
|
+
[`${r}-status-${C}`]: C,
|
|
165
|
+
[`${r}-has-help`]: V,
|
|
158
166
|
[`${r}-hidden`]: le,
|
|
159
|
-
[`${r}-has-feedback`]:
|
|
167
|
+
[`${r}-has-feedback`]: C && e.hasFeedback
|
|
160
168
|
},
|
|
161
169
|
`${r}-${I}`,
|
|
162
170
|
`${r}-layout-${I}`,
|
|
@@ -164,20 +172,20 @@ function Ne(Q, X) {
|
|
|
164
172
|
v?.className,
|
|
165
173
|
ee
|
|
166
174
|
),
|
|
167
|
-
div: !
|
|
175
|
+
div: !ie,
|
|
168
176
|
children: [
|
|
169
|
-
|
|
170
|
-
|
|
177
|
+
q && /* @__PURE__ */ d(
|
|
178
|
+
Q,
|
|
171
179
|
{
|
|
172
180
|
className: x(
|
|
173
|
-
`${
|
|
181
|
+
`${h}-label-item`,
|
|
174
182
|
`${r}-label`,
|
|
175
183
|
e.labelCol?.className,
|
|
176
184
|
o?.labelCol?.className,
|
|
177
|
-
|
|
185
|
+
ae && `${r}-label-left`,
|
|
178
186
|
se && `${r}-label-flex`
|
|
179
187
|
),
|
|
180
|
-
...
|
|
188
|
+
...j ?? { flex: 0 },
|
|
181
189
|
children: /* @__PURE__ */ d(
|
|
182
190
|
$e,
|
|
183
191
|
{
|
|
@@ -188,24 +196,24 @@ function Ne(Q, X) {
|
|
|
188
196
|
),
|
|
189
197
|
label: w,
|
|
190
198
|
prefix: r,
|
|
191
|
-
requiredSymbol: "requiredSymbol" in e ? e.requiredSymbol :
|
|
199
|
+
requiredSymbol: "requiredSymbol" in e ? e.requiredSymbol : i?.requiredSymbol ?? o?.requiredSymbol,
|
|
192
200
|
required: e.required,
|
|
193
201
|
rules: e.rules,
|
|
194
|
-
showColon: "colon" in e ? e.colon :
|
|
195
|
-
readOnly:
|
|
202
|
+
showColon: "colon" in e ? e.colon : i?.colon || o?.colon,
|
|
203
|
+
readOnly: E
|
|
196
204
|
}
|
|
197
205
|
)
|
|
198
206
|
}
|
|
199
207
|
),
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
|
|
208
|
+
/* @__PURE__ */ z(
|
|
209
|
+
Q,
|
|
202
210
|
{
|
|
203
211
|
className: x(
|
|
204
212
|
`${r}-wrapper`,
|
|
205
213
|
{
|
|
206
214
|
[`${r}-wrapper-flex`]: ne
|
|
207
215
|
},
|
|
208
|
-
|
|
216
|
+
q ? `${r}-wrapper-has-label` : `${r}-wrapper-no-label`
|
|
209
217
|
),
|
|
210
218
|
...P || { flex: 1 },
|
|
211
219
|
children: [
|
|
@@ -213,27 +221,27 @@ function Ne(Q, X) {
|
|
|
213
221
|
/* @__PURE__ */ d(
|
|
214
222
|
we,
|
|
215
223
|
{
|
|
216
|
-
prefixCls:
|
|
224
|
+
prefixCls: h,
|
|
217
225
|
help: e.help,
|
|
218
|
-
errors:
|
|
226
|
+
errors: M,
|
|
219
227
|
warnings: N
|
|
220
228
|
}
|
|
221
229
|
),
|
|
222
|
-
|
|
230
|
+
L && /* @__PURE__ */ d("div", { className: `${h}-extra`, children: L })
|
|
223
231
|
]
|
|
224
232
|
}
|
|
225
233
|
)
|
|
226
234
|
]
|
|
227
235
|
}
|
|
228
236
|
)), p = /* @__PURE__ */ d(
|
|
229
|
-
|
|
237
|
+
G.Provider,
|
|
230
238
|
{
|
|
231
|
-
value: f ? o :
|
|
239
|
+
value: f ? o : B(o, [
|
|
232
240
|
// 多层嵌套时,不传递 labelCol 和 wrapperCol,无样式除外
|
|
233
241
|
"labelCol",
|
|
234
242
|
"wrapperCol"
|
|
235
243
|
]),
|
|
236
|
-
children: /* @__PURE__ */ d(
|
|
244
|
+
children: /* @__PURE__ */ d(J.Provider, { value: ce, children: p })
|
|
237
245
|
}
|
|
238
246
|
), p;
|
|
239
247
|
}
|
package/form/FormItemTip.js
CHANGED
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
/* 2026-
|
|
2
|
-
import { jsx as
|
|
1
|
+
/* 2026-03-04 15:09:50 */
|
|
2
|
+
import { jsx as r, jsxs as g, Fragment as h } from "react/jsx-runtime";
|
|
3
3
|
import E from "@unicom-cloud/ui-common/transition-group/CSSTransition";
|
|
4
4
|
import { UI_COMMON_PREFIX as N } from "@unicom-cloud/utils/constant/ui";
|
|
5
5
|
import { forwardRef as T, useRef as v, useImperativeHandle as x } from "react";
|
|
6
6
|
import I from "@unicom-cloud/ui-common/utils/className";
|
|
7
7
|
import { isUndefined as p } from "@unicom-cloud/ui-common/utils/is";
|
|
8
8
|
function R(c, f) {
|
|
9
|
-
const { prefixCls:
|
|
10
|
-
if (
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}), e =
|
|
13
|
-
d.map((r, m) => {
|
|
14
|
-
e.push(
|
|
15
|
-
/* @__PURE__ */ n("div", { role: "alert", className: `${t}-message-help-warning`, children: r }, m)
|
|
16
|
-
);
|
|
17
|
-
});
|
|
18
|
-
const a = !p(s) || !!e.length, l = !!(a || o.length), i = v(null);
|
|
9
|
+
const { prefixCls: n, help: t, errors: u, warnings: d } = c, o = u.map((e, m) => {
|
|
10
|
+
if (e)
|
|
11
|
+
return /* @__PURE__ */ r("div", { role: "alert", children: e.message }, m);
|
|
12
|
+
}), s = d.map((e, m, C) => /* @__PURE__ */ r("div", { role: "alert", className: `${n}-message-help-warning`, children: e }, m)), a = !p(t) || !!s.length, l = !!(a || o.length), i = v(null);
|
|
19
13
|
return x(f, () => ({
|
|
20
14
|
getRootElement() {
|
|
21
15
|
return i.current;
|
|
22
16
|
}
|
|
23
|
-
})), l && /* @__PURE__ */
|
|
17
|
+
})), l && /* @__PURE__ */ r(
|
|
24
18
|
E,
|
|
25
19
|
{
|
|
26
20
|
in: l,
|
|
@@ -29,17 +23,17 @@ function R(c, f) {
|
|
|
29
23
|
timeout: 300,
|
|
30
24
|
unmountOnExit: !0,
|
|
31
25
|
refElement: i,
|
|
32
|
-
children: /* @__PURE__ */
|
|
26
|
+
children: /* @__PURE__ */ r(
|
|
33
27
|
"div",
|
|
34
28
|
{
|
|
35
29
|
ref: i,
|
|
36
|
-
className: I(`${
|
|
37
|
-
[`${
|
|
30
|
+
className: I(`${n}-message`, {
|
|
31
|
+
[`${n}-message-help`]: a
|
|
38
32
|
}),
|
|
39
|
-
children: p(
|
|
33
|
+
children: p(t) ? /* @__PURE__ */ g(h, { children: [
|
|
40
34
|
o.length > 0 && o,
|
|
41
|
-
|
|
42
|
-
] }) :
|
|
35
|
+
s.length > 0 && s
|
|
36
|
+
] }) : t
|
|
43
37
|
}
|
|
44
38
|
)
|
|
45
39
|
}
|
package/form/FormLabel.js
CHANGED
package/form/FormList.js
CHANGED
|
@@ -1,39 +1,43 @@
|
|
|
1
|
-
/* 2026-
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
1
|
+
/* 2026-03-04 15:09:50 */
|
|
2
|
+
import { jsx as F } from "react/jsx-runtime";
|
|
3
|
+
import y from "lodash/get";
|
|
4
4
|
import { useRef as $ } from "react";
|
|
5
5
|
import { isFunction as M, isUndefined as S } from "@unicom-cloud/ui-common/utils/is";
|
|
6
6
|
import j from "@unicom-cloud/ui-common/utils/warning";
|
|
7
7
|
import G from "./FormItem.js";
|
|
8
8
|
import { FormListContext as K } from "./context.js";
|
|
9
9
|
import { isFieldMatch as b, isSyntheticEvent as I } from "./utils.js";
|
|
10
|
-
const
|
|
11
|
-
function O(
|
|
12
|
-
const { field:
|
|
10
|
+
const p = (i, n) => !S(i) && i >= 0 && i < n.length;
|
|
11
|
+
function O(i) {
|
|
12
|
+
const { field: n, children: h, initialValue: g } = i, m = $({
|
|
13
13
|
id: 0,
|
|
14
14
|
keys: []
|
|
15
|
-
}), L = "initialValue" in
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
}), L = "initialValue" in i ? { initialValue: g } : {}, o = m.current.keys;
|
|
16
|
+
return /* @__PURE__ */ F(
|
|
17
17
|
K.Provider,
|
|
18
18
|
{
|
|
19
19
|
value: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
...i,
|
|
21
|
+
hidden: i.hidden,
|
|
22
|
+
getItemKey(f) {
|
|
23
|
+
const l = f?.replace?.(/\[|\]/g, ".")?.split?.("."), c = l?.indexOf?.(n), d = l[c + 1];
|
|
24
|
+
return `${n}_${o.indexOf(d)}_${l.slice(c + 2).join("_")}`;
|
|
23
25
|
}
|
|
24
26
|
},
|
|
25
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ F(
|
|
26
28
|
G,
|
|
27
29
|
{
|
|
28
|
-
field:
|
|
30
|
+
field: n,
|
|
29
31
|
...L,
|
|
30
32
|
isFormList: !0,
|
|
31
|
-
rules:
|
|
33
|
+
rules: i.rules,
|
|
34
|
+
hidden: i.hidden,
|
|
32
35
|
wrapperCol: { span: 24 },
|
|
33
|
-
noStyle: "noStyle" in
|
|
34
|
-
shouldUpdate: (
|
|
35
|
-
children: (
|
|
36
|
-
const V = c || []
|
|
36
|
+
noStyle: "noStyle" in i ? i.noStyle : !i.rules,
|
|
37
|
+
shouldUpdate: (f, l, c) => !!(c && !c.isInner && b(c.field, [n]) && y(f, n)?.length !== y(l, n)?.length),
|
|
38
|
+
children: (f, l, { value: c, onChange: d }) => {
|
|
39
|
+
const V = c || [];
|
|
40
|
+
function k(e, r) {
|
|
37
41
|
if (I(e)) {
|
|
38
42
|
j(
|
|
39
43
|
!0,
|
|
@@ -41,7 +45,7 @@ function O(n) {
|
|
|
41
45
|
);
|
|
42
46
|
return;
|
|
43
47
|
}
|
|
44
|
-
const s = l.getInnerMethods(!0)?.innerGetFieldValue(
|
|
48
|
+
const s = l.getInnerMethods(!0)?.innerGetFieldValue(n) || [], u = m.current.id;
|
|
45
49
|
m.current.id += 1;
|
|
46
50
|
const t = s || [];
|
|
47
51
|
let a = t;
|
|
@@ -49,40 +53,42 @@ function O(n) {
|
|
|
49
53
|
...t.slice(0, r),
|
|
50
54
|
e,
|
|
51
55
|
...t.slice(r)
|
|
52
|
-
]) : (o.push(u), a = [...t, e]),
|
|
56
|
+
]) : (o.push(u), a = [...t, e]), d(a, {
|
|
53
57
|
isFormList: !0,
|
|
54
58
|
ignore: e === void 0
|
|
55
59
|
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
}
|
|
61
|
+
function w(e) {
|
|
62
|
+
const s = (l.getInnerMethods(!0)?.innerGetFieldValue(n) || []).filter((u, t) => t !== e);
|
|
63
|
+
o.splice(e, 1), d([...s], { isFormList: !0 });
|
|
64
|
+
}
|
|
65
|
+
function _(e, r) {
|
|
66
|
+
const s = l.getInnerMethods(!0)?.innerGetFieldValue(n) || [];
|
|
67
|
+
if (e === r || !p(e, s) || !p(r, s))
|
|
62
68
|
return;
|
|
63
69
|
const u = o[e];
|
|
64
70
|
o.splice(e, 1), o.splice(r, 0, u);
|
|
65
71
|
const t = s[e], a = [...s];
|
|
66
|
-
a.splice(e, 1), a.splice(r, 0, t),
|
|
67
|
-
}
|
|
68
|
-
let
|
|
69
|
-
if (M(
|
|
72
|
+
a.splice(e, 1), a.splice(r, 0, t), d(a, { isFormList: !0 });
|
|
73
|
+
}
|
|
74
|
+
let v;
|
|
75
|
+
if (M(h)) {
|
|
70
76
|
const e = V.map((s, u) => {
|
|
71
77
|
let t = o[u];
|
|
72
78
|
return t === void 0 && (t = m.current.id, o.push(t), m.current.id += 1), {
|
|
73
79
|
...s,
|
|
74
80
|
// 潘启宝添加 2024年 9月 5日 星期四 17时09分53秒 CST
|
|
75
|
-
field: `${
|
|
81
|
+
field: `${n}[${u}]`,
|
|
76
82
|
key: t
|
|
77
83
|
};
|
|
78
84
|
});
|
|
79
|
-
|
|
85
|
+
v = h(e, {
|
|
80
86
|
add: k,
|
|
81
87
|
remove: w,
|
|
82
88
|
move: _
|
|
83
89
|
});
|
|
84
90
|
}
|
|
85
|
-
return
|
|
91
|
+
return v;
|
|
86
92
|
}
|
|
87
93
|
}
|
|
88
94
|
)
|
package/form/FormProvider.js
CHANGED
package/form/context.js
CHANGED
package/form/hook/useForm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2026-
|
|
1
|
+
/* 2026-03-04 15:09:50 */
|
|
2
2
|
import { useContext as m, useRef as c, useCallback as a, useEffect as f } from "react";
|
|
3
3
|
import b from "@unicom-cloud/ui-common/hooks/use-force-update";
|
|
4
4
|
import { isFunction as d } from "@unicom-cloud/ui-common/utils/is";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2026-
|
|
1
|
+
/* 2026-03-04 15:09:50 */
|
|
2
2
|
import { useContext as S, useCallback as F, useState as d, useRef as p, useEffect as g } from "react";
|
|
3
3
|
import h from "@unicom-cloud/ui-common/hooks/use-latest";
|
|
4
4
|
import { isFunction as x, isEqualWith as C } from "@unicom-cloud/ui-common/utils/is";
|
package/form/hook/useWatch.js
CHANGED
package/form/index.js
CHANGED
package/form/interface.js
CHANGED
package/form/promisify.js
CHANGED
package/form/store.js
CHANGED
package/form/utils.js
CHANGED