@unicom-cloud/ui 0.8.154 → 0.8.155
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/.virtual/_rolldown/runtime.js +1 -1
- package/.vite/manifest.json +1 -0
- 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/badge/utils.js +1 -1
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Item.js +1 -1
- package/breadcrumb/context.js +1 -1
- package/breadcrumb/index.js +1 -1
- package/button/Button.js +1 -1
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/Calendar.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/Card.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/Carousel.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +1 -1
- package/cascader/base/node.js +1 -1
- package/cascader/base/store.js +1 -1
- package/cascader/hook/useRefCurrent.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +1 -1
- package/cascader/panel/Search.js +1 -1
- package/cascader/utils.js +1 -1
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/context.js +1 -1
- package/checkbox/index.js +1 -1
- package/checkbox/useCheckbox.js +1 -1
- package/collapse/Collapse.js +1 -1
- package/collapse/Item.js +1 -1
- package/collapse/context.js +1 -1
- package/collapse/index.js +1 -1
- package/color-picker/ColorPicker.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/Comment.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/Copy.js +1 -1
- package/copy/index.js +1 -1
- package/countdown/Countdown.js +1 -1
- package/countdown/index.js +1 -1
- package/countdown/utils.js +1 -1
- package/date-picker/DatePicker.js +1 -1
- package/date-picker/DatePickerRange.js +224 -218
- package/date-picker/Picker.js +216 -209
- 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/interface.d.ts +5 -2
- package/date-picker/panel/Body.js +1 -1
- package/date-picker/panel/Footer.js +9 -5
- package/date-picker/panel/Header.js +1 -1
- package/date-picker/panel/Shortcut.js +37 -30
- 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/Descriptions.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/Details.js +1 -1
- package/details/index.js +1 -1
- package/development/Development.js +1 -1
- package/development/index.js +1 -1
- package/divider/Divider.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/Draggable.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/Dropdown.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/Empty.js +1 -1
- package/empty/index.js +1 -1
- package/flex/Flex.js +1 -1
- package/flex/index.js +1 -1
- package/form/Control.js +1 -1
- package/form/Form.js +1 -1
- package/form/FormControl.js +1 -1
- package/form/FormItem.js +1 -1
- package/form/FormItemTip.js +1 -1
- package/form/FormLabel.js +1 -1
- package/form/FormLabelSymbol.js +1 -1
- package/form/FormList.js +1 -1
- package/form/FormProvider.js +1 -1
- package/form/constant.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/GlobalProvider.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/useUnmountOnExit.js +1 -1
- package/icon/Icon.js +1 -1
- package/icon/addIconFromCdn.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/IconHover.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file/File.js +1 -1
- package/icons/file/index.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 +1 -1
- 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/InputNumber.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/constant.js +1 -1
- package/input-tag/hook/useComputeAutoWidthDelay.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/Layout.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/context.js +1 -1
- package/layout/index.js +1 -1
- package/link/Link.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/LiquidFill.js +1 -1
- package/liquid-fill/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/List.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/Loading.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/Marquee.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/Mentions.js +1 -1
- package/mentions/index.js +1 -1
- package/mentions/utils.js +1 -1
- package/menu/Indent.js +1 -1
- package/menu/Item.js +1 -1
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +1 -1
- package/menu/OverflowWrap.js +1 -1
- package/menu/context.js +1 -1
- package/menu/index.js +1 -1
- package/menu/sub-menu/Inline.js +1 -1
- package/menu/sub-menu/Pop.js +1 -1
- package/menu/sub-menu/index.js +1 -1
- package/menu/utils.js +1 -1
- package/message/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/OverflowEllipsis.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/PageHeader.js +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/Popconfirm.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/Progress.js +1 -1
- package/progress/StepProgress.js +1 -1
- package/progress/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/context.js +1 -1
- package/radio/index.js +1 -1
- package/rate/Rate.js +1 -1
- package/rate/index.js +1 -1
- package/resize-box/ResizeBox.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +10 -7
- 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/Result.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/Segmented.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 +234 -227
- package/select/index.js +1 -1
- package/select/utils.js +1 -1
- package/select-view/Core.js +1 -1
- package/select-view/SelectView.js +1 -1
- package/select-view/index.js +1 -1
- package/skeleton/Image.js +1 -1
- package/skeleton/Skeleton.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/Slider.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/Space.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/SpeechSynthesis.js +1 -1
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +1 -1
- package/spin/Spin.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/Statistic.js +1 -1
- package/statistic/index.js +1 -1
- package/statistic/interface.js +1 -1
- package/steps/Step.js +1 -1
- package/steps/Steps.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/switch/Switch.js +1 -1
- package/switch/index.js +1 -1
- package/table/ColGroup.js +1 -1
- package/table/Table.js +2 -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/DataRecordRenderer.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 +1 -1
- package/tabs/context.js +1 -1
- package/tabs/hook/useDomSize.js +1 -1
- package/tabs/hook/useHeaderScroll.js +1 -1
- package/tabs/index.js +1 -1
- package/tabs/tab-header/DropdownIcon.js +1 -1
- package/tabs/tab-header/TabInk.js +1 -1
- package/tabs/tab-header/TabNavIcon.js +1 -1
- package/tabs/tab-header/TabTitle.js +1 -1
- package/tabs/tab-header/index.js +66 -64
- package/tabs/utils.js +6 -6
- package/tag/Tag.js +1 -1
- package/tag/index.js +1 -1
- package/tag/utils.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/Timer.js +1 -1
- package/timer/index.js +1 -1
- package/tooltip/Tooltip.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/Tour.js +1 -1
- package/tour/index.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/Transfer.js +1 -1
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Context2.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/TreeSelect.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/Trigger.js +1 -1
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.js +1 -1
- package/trigger/utils.js +1 -1
- package/typography/Base.js +1 -1
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +1 -1
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +1 -1
- package/typography/Text.js +1 -1
- package/typography/Title.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +1 -1
- package/typography/useCssEllipsis.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +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/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.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 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/responsiveObserve.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +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 +6 -6
- 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/date-picker/Picker.js
CHANGED
|
@@ -1,307 +1,314 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-03
|
|
2
|
-
import { isArray as e, isDayjs as t, isFunction as n, isPlainObject as r, isString as ee, isUndefined as
|
|
3
|
-
import
|
|
4
|
-
import { pickDataAttributes as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { FormContext as
|
|
1
|
+
/* 潘启宝 2026-04-03 16:46:01 星期五 */
|
|
2
|
+
import { isArray as e, isDayjs as t, isFunction as n, isPlainObject as r, isString as ee, isUndefined as i } from "../utils/is.js";
|
|
3
|
+
import te from "../utils/className.js";
|
|
4
|
+
import { pickDataAttributes as ne } from "../utils/pick.js";
|
|
5
|
+
import re from "../hooks/use-merge-props/index.js";
|
|
6
|
+
import a from "../config-provider/context.js";
|
|
7
|
+
import { FormContext as o, FormItemContext as ie } from "../form/context.js";
|
|
8
8
|
import "../config-provider/index.js";
|
|
9
|
-
import { dayjs as
|
|
10
|
-
import
|
|
11
|
-
import { HYPHEN as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { DatePickerContext as
|
|
16
|
-
import _e from "./
|
|
17
|
-
import
|
|
18
|
-
import
|
|
9
|
+
import { dayjs as ae, dayjs_getDayjsValue as s, dayjs_getNow as c, dayjs_getValueWithTime as l, dayjs_isDayjsChange as oe, dayjs_methods as se, dayjs_toLocal as u, dayjs_toTimezone as ce } from "../utils/dayjs.js";
|
|
10
|
+
import le from "../utils/omit.js";
|
|
11
|
+
import { HYPHEN as ue } from "../utils/string.js";
|
|
12
|
+
import de from "../hooks/use-update-effect/index.js";
|
|
13
|
+
import fe from "../trigger/index.js";
|
|
14
|
+
import pe from "../hooks/use-previous/index.js";
|
|
15
|
+
import { DatePickerContext as me, PickerContext as he } from "./context.js";
|
|
16
|
+
import { getDefaultWeekStart as ge, getFormatForDatePicker as _e, getLocaleDayjsValue as d, isDisabledDate as ve } from "./utils.js";
|
|
17
|
+
import ye from "./panel/Shortcut.js";
|
|
18
|
+
import be from "./panel/Footer.js";
|
|
19
19
|
import xe from "../picker/Input.js";
|
|
20
|
-
import Se, { forwardRef as Ce, useContext as
|
|
21
|
-
import { Fragment as
|
|
20
|
+
import Se, { forwardRef as Ce, useContext as we, useEffect as Te, useImperativeHandle as Ee, useRef as De, useState as f } from "react";
|
|
21
|
+
import { Fragment as Oe, jsx as p, jsxs as ke } from "react/jsx-runtime";
|
|
22
22
|
import "dayjs";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
23
|
+
import Ae from "@unicom-cloud/icons/IconUiCalendar";
|
|
24
|
+
import je from "@unicom-cloud/icons/IconUiCalendarClock";
|
|
25
25
|
//#region components/pc/date-picker/Picker.tsx
|
|
26
|
-
var
|
|
26
|
+
var Me = {
|
|
27
27
|
allowClear: !0,
|
|
28
28
|
unmountOnExit: !0,
|
|
29
29
|
position: "bl",
|
|
30
30
|
editable: !0,
|
|
31
31
|
showNowBtn: !0
|
|
32
|
-
},
|
|
33
|
-
let { prefixCls:
|
|
34
|
-
|
|
35
|
-
let
|
|
36
|
-
|
|
32
|
+
}, Ne = { bottom: 4 }, Pe = Ce((Ce, Pe) => {
|
|
33
|
+
let { prefixCls: Fe, getPrefixCls: Ie, locale: m, size: Le, componentConfig: Re, rtl: ze } = we(a), Be = we(o), Ve = we(ie);
|
|
34
|
+
ze && (Me.position = "br");
|
|
35
|
+
let h = re(Ce, Me, Re?.DatePicker), { allowClear: He, className: Ue, style: We, placeholder: Ge, getPopupContainer: Ke, disabled: qe, position: Je, error: Ye, status: Xe, unmountOnExit: Ze, editable: Qe, triggerProps: $e, picker: et, shortcuts: g, onSelect: _, onVisibleChange: tt, value: nt, onChange: rt, icons: v, disabledDate: y, showTime: b, showNowBtn: it, onSelectShortcut: at, extra: ot, shortcutsPlacementLeft: x, onOk: st, defaultPickerValue: ct, pickerValue: lt, onPickerValueChange: ut, triggerElement: dt, utcOffset: S, timezone: C, panelRender: ft, inputProps: pt, readOnly: w = Ve?.readOnly ?? Be?.readOnly } = h, T = Ie?.("picker"), E = m?.DatePicker, mt = w ? ue : Ge, ht = i(h.dayStartOfWeek) ? ge(m?.dayjsLocale) : h.dayStartOfWeek, D = h.mode || et?.props?.pickerType, O = De(null), k = De(null), gt = De(null);
|
|
36
|
+
Ee(Pe, () => ({
|
|
37
37
|
focus() {
|
|
38
|
-
|
|
38
|
+
J();
|
|
39
39
|
},
|
|
40
40
|
blur() {
|
|
41
|
-
|
|
41
|
+
kt();
|
|
42
42
|
},
|
|
43
43
|
getRootElement() {
|
|
44
44
|
return O.current;
|
|
45
45
|
}
|
|
46
46
|
}));
|
|
47
|
-
let
|
|
48
|
-
n(
|
|
47
|
+
let A = E?.Calendar?.[D]?.format || _e(h), j = A;
|
|
48
|
+
n(j) && (j = b ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
|
|
49
49
|
function _t() {
|
|
50
50
|
let e;
|
|
51
|
-
return e =
|
|
51
|
+
return e = h.value ? s(h.value, j, S, C) : s(h.defaultValue, j, S, C), e;
|
|
52
52
|
}
|
|
53
|
-
let [
|
|
54
|
-
function
|
|
53
|
+
let [M, N] = f(_t()), [vt, yt] = f(h.popupVisible), [P, bt] = f(!1), [xt, F] = f(), I = "popupVisible" in h ? h.popupVisible : vt, L = "value" in h ? s(nt, j, S, C) : M, St = L || s(ct, j) || c(), [Ct, R] = f(), [z, B] = f(), [wt, V] = f(), [Tt, H] = f(St), U = s(lt, j) || Tt, W = wt || z || L, [G, Et] = f(D), Dt = r(b) && s(b.defaultValue, b.format || "HH:mm:ss") || c(S, C), K = W || Dt, Ot = c(S, C), q = ve(Ot, y, "date");
|
|
54
|
+
function J() {
|
|
55
55
|
O.current?.focus?.();
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function kt() {
|
|
58
58
|
O.current?.blur?.();
|
|
59
59
|
}
|
|
60
|
-
let
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
let At = pe(S), jt = pe(C);
|
|
61
|
+
de(() => {
|
|
62
|
+
M && (At !== S || C !== jt) && N(ce(u(M, At, jt), S, C));
|
|
63
63
|
}, [
|
|
64
64
|
S,
|
|
65
|
-
|
|
65
|
+
At,
|
|
66
66
|
C,
|
|
67
|
-
|
|
68
|
-
]),
|
|
69
|
-
|
|
70
|
-
bt(!1), Et(D),
|
|
67
|
+
jt
|
|
68
|
+
]), Te(() => {
|
|
69
|
+
R(void 0), F(void 0), I ? (H(St), x && gt.current && k.current && (gt.current.style.maxHeight = `${k.current.clientHeight}px`)) : (B(void 0), V(void 0), setTimeout(() => {
|
|
70
|
+
bt(!1), Et(D), kt();
|
|
71
71
|
}, 100));
|
|
72
|
-
}, [
|
|
73
|
-
function
|
|
74
|
-
e ?
|
|
75
|
-
|
|
76
|
-
}) :
|
|
72
|
+
}, [I]);
|
|
73
|
+
function Mt(e) {
|
|
74
|
+
e ? X(e, () => {
|
|
75
|
+
J();
|
|
76
|
+
}) : X(!1);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
78
|
+
function Y(e) {
|
|
79
|
+
ut?.(e.format(j), e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
yt(e),
|
|
81
|
+
function X(e, t) {
|
|
82
|
+
yt(e), tt?.(e), t?.();
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
e.stopPropagation(),
|
|
84
|
+
function Nt(e) {
|
|
85
|
+
e.stopPropagation(), N(void 0), B(void 0), Z(void 0), h.onClear?.();
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
let e =
|
|
89
|
-
|
|
87
|
+
function Pt() {
|
|
88
|
+
let e = d(W, m?.dayjsLocale);
|
|
89
|
+
Ft(), st?.(e && e.format(j), e);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
|
|
91
|
+
function Ft() {
|
|
92
|
+
N(W), Z(W), X(!1);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
let t =
|
|
96
|
-
|
|
94
|
+
function It(e) {
|
|
95
|
+
let t = l(W || c(S, C), e);
|
|
96
|
+
N(t), Z(t), X(!1);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
if (
|
|
100
|
-
let e = n ? t :
|
|
101
|
-
|
|
102
|
-
let r = u(
|
|
103
|
-
|
|
98
|
+
function Lt(e, t, n) {
|
|
99
|
+
if (R(void 0), F(void 0), b) {
|
|
100
|
+
let e = n ? t : l(t, K);
|
|
101
|
+
B(e), H(e);
|
|
102
|
+
let r = d(u(e, S, C), m?.dayjsLocale);
|
|
103
|
+
_?.(r.format(j), r);
|
|
104
104
|
} else {
|
|
105
|
-
let e = u(
|
|
106
|
-
|
|
105
|
+
let e = d(u(t, S, C).locale(m?.dayjsLocale), m?.dayjsLocale);
|
|
106
|
+
_?.(e ? e.format(j) : void 0, e), N(t), Z(t), X(!1);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
if (
|
|
111
|
-
let t = u(
|
|
112
|
-
|
|
109
|
+
function Z(e) {
|
|
110
|
+
if (oe(e, L)) {
|
|
111
|
+
let t = d(u(e, S, C), m?.dayjsLocale);
|
|
112
|
+
rt?.(t ? t.format(j) : void 0, t);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
let n =
|
|
117
|
-
|
|
118
|
-
let r = u(
|
|
119
|
-
|
|
115
|
+
function Rt(e, t) {
|
|
116
|
+
let n = l(W || c(S, C), t);
|
|
117
|
+
B(n);
|
|
118
|
+
let r = d(u(n, S, C), m?.dayjsLocale);
|
|
119
|
+
_?.(r.format(j), r);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
return ee(e) &&
|
|
121
|
+
function zt(e) {
|
|
122
|
+
return ee(e) && ae(e, j).format(j) === e && (n(y) ? !y(ae(e, j)) : !0);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Bt(e) {
|
|
125
125
|
let t = e.target.value;
|
|
126
|
-
if (
|
|
127
|
-
let e =
|
|
128
|
-
|
|
126
|
+
if (R(t), I || X(!0), zt(t)) {
|
|
127
|
+
let e = s(t, j);
|
|
128
|
+
B(e), H(e), R(void 0);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
131
|
+
function Vt() {
|
|
132
|
+
W ? (Ft(), kt()) : I && X(!1);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Q(e, t, n = 1) {
|
|
135
135
|
let r;
|
|
136
|
-
e === "prev" && (r =
|
|
136
|
+
e === "prev" && (r = se.subtract(U, n, t)), e === "next" && (r = se.add(U, n, t)), Y(r), H(r);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Ht(e = D) {
|
|
139
139
|
if (e === "date" || e === "week") return {
|
|
140
|
-
onPrev: () =>
|
|
141
|
-
onNext: () =>
|
|
142
|
-
onSuperPrev: () =>
|
|
143
|
-
onSuperNext: () =>
|
|
140
|
+
onPrev: () => Q("prev", "month"),
|
|
141
|
+
onNext: () => Q("next", "month"),
|
|
142
|
+
onSuperPrev: () => Q("prev", "year"),
|
|
143
|
+
onSuperNext: () => Q("next", "year")
|
|
144
144
|
};
|
|
145
145
|
if (e === "month" || e === "quarter") return {
|
|
146
|
-
onSuperPrev: () =>
|
|
147
|
-
onSuperNext: () =>
|
|
146
|
+
onSuperPrev: () => Q("prev", "year"),
|
|
147
|
+
onSuperNext: () => Q("next", "year")
|
|
148
148
|
};
|
|
149
149
|
if (e === "year") return {
|
|
150
|
-
onSuperPrev: () =>
|
|
151
|
-
onSuperNext: () =>
|
|
150
|
+
onSuperPrev: () => Q("prev", "year", 10),
|
|
151
|
+
onSuperNext: () => Q("next", "year", 10)
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
function Ut() {
|
|
155
|
+
if (q) return;
|
|
156
|
+
let e = d(Ot, m?.dayjsLocale);
|
|
157
|
+
Y(e), Lt(e.format(j), e, !0);
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
+
function Wt(e, t) {
|
|
159
160
|
if (!t) {
|
|
160
|
-
let t = b ?
|
|
161
|
-
|
|
161
|
+
let t = b ? l(e, K) : e;
|
|
162
|
+
F(n(A) ? A(e) : t.locale(m?.dayjsLocale).format(j));
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
165
|
+
function Gt() {
|
|
166
|
+
F(void 0);
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
+
function Kt(e) {
|
|
168
169
|
if (n(e.value) && t(e.value())) {
|
|
169
|
-
let t =
|
|
170
|
-
|
|
170
|
+
let t = s(e.value(), j, S, C);
|
|
171
|
+
H(t), Y(t), V(t);
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
-
let e =
|
|
175
|
-
|
|
174
|
+
function qt() {
|
|
175
|
+
let e = z || L || c(S, C);
|
|
176
|
+
V(void 0), H(e), Y(e);
|
|
176
177
|
}
|
|
177
|
-
function
|
|
178
|
-
if (
|
|
179
|
-
let t =
|
|
180
|
-
|
|
178
|
+
function Jt(e) {
|
|
179
|
+
if (at?.(e), n(e.value) && t(e.value())) {
|
|
180
|
+
let t = s(e.value(), j, S, C);
|
|
181
|
+
if (ve(t, y, D)) return;
|
|
182
|
+
N(t), Z(t), X(!1);
|
|
181
183
|
}
|
|
182
184
|
}
|
|
183
|
-
function
|
|
184
|
-
bt(!
|
|
185
|
+
function Yt() {
|
|
186
|
+
bt(!P);
|
|
185
187
|
}
|
|
186
|
-
function
|
|
187
|
-
let ee =
|
|
188
|
+
function Xt(t) {
|
|
189
|
+
let ee = te(`${T}-container`, {
|
|
188
190
|
[`${T}-panel-only`]: t,
|
|
189
|
-
[`${T}-container-shortcuts-placement-left`]: e(
|
|
190
|
-
[`${T}-container-rtl`]:
|
|
191
|
-
}, t ?
|
|
191
|
+
[`${T}-container-shortcuts-placement-left`]: e(g) && x,
|
|
192
|
+
[`${T}-container-rtl`]: ze
|
|
193
|
+
}, t ? Ue : ""), i = {
|
|
192
194
|
prefixCls: T,
|
|
193
195
|
showTime: b,
|
|
194
|
-
shortcuts:
|
|
195
|
-
onSelectNow:
|
|
196
|
-
showNowBtn:
|
|
197
|
-
onMouseEnterShortcut:
|
|
198
|
-
onMouseLeaveShortcut:
|
|
199
|
-
onSelectShortcut:
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
196
|
+
shortcuts: g,
|
|
197
|
+
onSelectNow: Ut,
|
|
198
|
+
showNowBtn: it,
|
|
199
|
+
onMouseEnterShortcut: Kt,
|
|
200
|
+
onMouseLeaveShortcut: qt,
|
|
201
|
+
onSelectShortcut: Jt,
|
|
202
|
+
nowDisabled: q,
|
|
203
|
+
disabledDate: y,
|
|
204
|
+
mode: D
|
|
205
|
+
}, ne = b && G === "date" || ot || e(g) && g.length && !x || !b && G === "date" && it, re = !!(h.timepickerProps && h.timepickerProps.disableConfirm || r(b) && b.disableConfirm), a = /* @__PURE__ */ ke(Oe, { children: [Se.cloneElement(et, {
|
|
206
|
+
...le(h, ["style"]),
|
|
207
|
+
...Ht(),
|
|
208
|
+
getHeaderOperations: Ht,
|
|
209
|
+
onSelect: Lt,
|
|
210
|
+
onTimePickerSelect: Rt,
|
|
211
|
+
onConfirmValue: It,
|
|
212
|
+
onSelectNow: Ut,
|
|
213
|
+
popupVisible: I,
|
|
214
|
+
format: j,
|
|
215
|
+
value: W,
|
|
216
|
+
pageShowDate: U,
|
|
217
|
+
localeName: m?.dayjsLocale,
|
|
213
218
|
setPageShowDate(e) {
|
|
214
|
-
|
|
219
|
+
H(e), Y(e);
|
|
215
220
|
},
|
|
216
|
-
timeValue:
|
|
217
|
-
isTimePanel:
|
|
218
|
-
panelMode:
|
|
221
|
+
timeValue: K,
|
|
222
|
+
isTimePanel: P,
|
|
223
|
+
panelMode: G,
|
|
219
224
|
setPanelMode: Et,
|
|
220
|
-
onMouseEnterCell:
|
|
221
|
-
onMouseLeaveCell:
|
|
222
|
-
}), !!
|
|
223
|
-
...
|
|
225
|
+
onMouseEnterCell: Wt,
|
|
226
|
+
onMouseLeaveCell: Gt
|
|
227
|
+
}), !!ne && /* @__PURE__ */ p(be, {
|
|
228
|
+
...i,
|
|
224
229
|
DATEPICKER_LOCALE: E,
|
|
225
|
-
disabled: !
|
|
226
|
-
onClickConfirmBtn:
|
|
227
|
-
extra:
|
|
228
|
-
mode:
|
|
230
|
+
disabled: !W,
|
|
231
|
+
onClickConfirmBtn: Pt,
|
|
232
|
+
extra: ot,
|
|
233
|
+
mode: G,
|
|
234
|
+
nowDisabled: q,
|
|
235
|
+
disabledDate: y,
|
|
229
236
|
shortcutsPlacementLeft: x,
|
|
230
|
-
onClickSelectTimeBtn:
|
|
231
|
-
isTimePanel:
|
|
232
|
-
disableConfirm:
|
|
233
|
-
})] }),
|
|
237
|
+
onClickSelectTimeBtn: Yt,
|
|
238
|
+
isTimePanel: P,
|
|
239
|
+
disableConfirm: re
|
|
240
|
+
})] }), o = x ? /* @__PURE__ */ ke(Oe, { children: [/* @__PURE__ */ p(ye, {
|
|
234
241
|
ref: gt,
|
|
235
|
-
...
|
|
236
|
-
}), /* @__PURE__ */
|
|
237
|
-
ref:
|
|
242
|
+
...i
|
|
243
|
+
}), /* @__PURE__ */ p("div", {
|
|
244
|
+
ref: k,
|
|
238
245
|
className: `${T}-panel-wrapper`,
|
|
239
|
-
children:
|
|
240
|
-
})] }) :
|
|
241
|
-
return /* @__PURE__ */
|
|
246
|
+
children: a
|
|
247
|
+
})] }) : a, ie = n(ft) ? ft(o) : o;
|
|
248
|
+
return /* @__PURE__ */ p("div", {
|
|
242
249
|
className: ee,
|
|
243
250
|
onClick: (e) => {
|
|
244
|
-
|
|
251
|
+
J();
|
|
245
252
|
},
|
|
246
|
-
style: t ?
|
|
247
|
-
children:
|
|
253
|
+
style: t ? We : {},
|
|
254
|
+
children: ie
|
|
248
255
|
});
|
|
249
256
|
}
|
|
250
|
-
let
|
|
251
|
-
style:
|
|
252
|
-
className:
|
|
253
|
-
popupVisible:
|
|
254
|
-
format:
|
|
255
|
-
disabled:
|
|
256
|
-
error:
|
|
257
|
-
status:
|
|
258
|
-
size:
|
|
259
|
-
onPressEnter:
|
|
260
|
-
onClear:
|
|
261
|
-
prefix:
|
|
262
|
-
suffix:
|
|
263
|
-
editable:
|
|
264
|
-
allowClear:
|
|
257
|
+
let Zt = h.size || Le, Qt = v && v.inputSuffix === null ? null : v && v.inputSuffix || p(b ? je : Ae, {}), $t = {
|
|
258
|
+
style: We,
|
|
259
|
+
className: Ue,
|
|
260
|
+
popupVisible: I,
|
|
261
|
+
format: A,
|
|
262
|
+
disabled: qe,
|
|
263
|
+
error: Ye,
|
|
264
|
+
status: Xe,
|
|
265
|
+
size: Zt,
|
|
266
|
+
onPressEnter: Vt,
|
|
267
|
+
onClear: Nt,
|
|
268
|
+
prefix: h.prefix,
|
|
269
|
+
suffix: Qt,
|
|
270
|
+
editable: Qe && !n(A),
|
|
271
|
+
allowClear: He,
|
|
265
272
|
readOnly: w
|
|
266
|
-
},
|
|
267
|
-
...
|
|
268
|
-
|
|
273
|
+
}, $ = /* @__PURE__ */ p(xe, {
|
|
274
|
+
...ne(h),
|
|
275
|
+
...$t,
|
|
269
276
|
ref: O,
|
|
270
|
-
placeholder:
|
|
271
|
-
popupVisible:
|
|
272
|
-
value:
|
|
277
|
+
placeholder: mt || E?.placeholder?.[D],
|
|
278
|
+
popupVisible: I,
|
|
279
|
+
value: z || L,
|
|
273
280
|
inputValue: xt || Ct,
|
|
274
281
|
prefixCls: T,
|
|
275
|
-
onChange:
|
|
282
|
+
onChange: Bt,
|
|
276
283
|
isPlaceholder: !!xt,
|
|
277
|
-
inputProps:
|
|
278
|
-
}),
|
|
279
|
-
return
|
|
280
|
-
popup:
|
|
284
|
+
inputProps: pt
|
|
285
|
+
}), en = $;
|
|
286
|
+
return en = w ? $ : dt === null ? Xt(!0) : /* @__PURE__ */ p(fe, {
|
|
287
|
+
popup: Xt,
|
|
281
288
|
trigger: "click",
|
|
282
289
|
clickToClose: !1,
|
|
283
|
-
position:
|
|
284
|
-
disabled:
|
|
285
|
-
popupAlign:
|
|
286
|
-
getPopupContainer:
|
|
287
|
-
onVisibleChange:
|
|
288
|
-
popupVisible:
|
|
289
|
-
classNames: `${
|
|
290
|
-
unmountOnExit:
|
|
291
|
-
|
|
292
|
-
children:
|
|
293
|
-
}), /* @__PURE__ */
|
|
294
|
-
value: { ...
|
|
295
|
-
children: /* @__PURE__ */
|
|
290
|
+
position: Je,
|
|
291
|
+
disabled: qe,
|
|
292
|
+
popupAlign: Ne,
|
|
293
|
+
getPopupContainer: Ke,
|
|
294
|
+
onVisibleChange: Mt,
|
|
295
|
+
popupVisible: I,
|
|
296
|
+
classNames: `${Fe}-slide-dynamic-origin`,
|
|
297
|
+
unmountOnExit: Ze,
|
|
298
|
+
...$e,
|
|
299
|
+
children: dt || $
|
|
300
|
+
}), /* @__PURE__ */ p(me.Provider, {
|
|
301
|
+
value: { ...h },
|
|
302
|
+
children: /* @__PURE__ */ p(he.Provider, {
|
|
296
303
|
value: {
|
|
297
304
|
utcOffset: S,
|
|
298
305
|
timezone: C,
|
|
299
|
-
weekStart:
|
|
306
|
+
weekStart: ht
|
|
300
307
|
},
|
|
301
|
-
children:
|
|
308
|
+
children: en
|
|
302
309
|
})
|
|
303
310
|
});
|
|
304
311
|
});
|
|
305
312
|
//#endregion
|
|
306
|
-
export {
|
|
313
|
+
export { Pe as default };
|
|
307
314
|
/* 独立思考,明辨是非 */
|
package/date-picker/context.js
CHANGED
package/date-picker/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-03
|
|
1
|
+
/* 潘启宝 2026-04-03 16:46:01 星期五 */
|
|
2
2
|
import { DatePickerContext as e, DatePickerRangeContext as t } from "./context.js";
|
|
3
3
|
import n from "./DatePickerRange.js";
|
|
4
4
|
import { DatePicker as r, DatePickerMonth as i, DatePickerQuarter as a, DatePickerWeek as o, DatePickerYear as s } from "./DatePicker.js";
|
|
@@ -221,7 +221,7 @@ export interface PickerProps extends ReadOnly, Size, GetPopupContainer {
|
|
|
221
221
|
timezone?: string;
|
|
222
222
|
/**
|
|
223
223
|
* @zh 原生输入框属性
|
|
224
|
-
* @en Native input
|
|
224
|
+
* @en Native input attributes
|
|
225
225
|
*/
|
|
226
226
|
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
227
227
|
}
|
|
@@ -479,6 +479,9 @@ export interface ShortcutsProps {
|
|
|
479
479
|
onSelectNow?: () => void;
|
|
480
480
|
nowText?: ReactNode;
|
|
481
481
|
showTime?: boolean | TimePickerProps;
|
|
482
|
+
nowDisabled?: boolean;
|
|
483
|
+
disabledDate?: (current: Dayjs) => boolean;
|
|
484
|
+
mode?: ModeType;
|
|
482
485
|
}
|
|
483
486
|
export type DatePickerHandle = {} & FocusAndBlur & ImperativeHandle;
|
|
484
487
|
export type PickerRangeHandle = {} & FocusAndBlur & ImperativeHandle;
|
|
@@ -517,7 +520,7 @@ export interface InnerPickerProps extends PickerProps {
|
|
|
517
520
|
defaultValue?: CalendarValue | CalendarValue[];
|
|
518
521
|
value?: CalendarValue | CalendarValue[];
|
|
519
522
|
showTime?: boolean | TimePickerProps;
|
|
520
|
-
|
|
523
|
+
timePickerProps?: TimePickerProps;
|
|
521
524
|
onSelect?: (dateString: string, date: Dayjs) => void;
|
|
522
525
|
onChange?: (dateString: string, date: Dayjs) => void;
|
|
523
526
|
showNowBtn?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-03
|
|
1
|
+
/* 潘启宝 2026-04-03 16:46:01 星期五 */
|
|
2
2
|
import { isFunction as e } from "../../utils/is.js";
|
|
3
3
|
import t from "../../utils/className.js";
|
|
4
4
|
import { DatePickerContext as n, DatePickerRangeContext as r, PickerContext as i } from "../context.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-03
|
|
1
|
+
/* 潘启宝 2026-04-03 16:46:01 星期五 */
|
|
2
2
|
import { isArray as e } from "../../utils/is.js";
|
|
3
3
|
import t from "../../button/index.js";
|
|
4
4
|
import n from "../../flex/index.js";
|
|
@@ -10,7 +10,7 @@ import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
|
10
10
|
//#region components/pc/date-picker/panel/Footer.tsx
|
|
11
11
|
function d(d) {
|
|
12
12
|
c(r), c(i);
|
|
13
|
-
let { utcOffset: f, timezone: p, weekStart: m } = c(a), { showTime: h, prefixCls: g, DATEPICKER_LOCALE: _, disabled: v, onClickConfirmBtn: y, onClickSelectTimeBtn: b, isTimePanel: x, onSelectNow: S, showNowBtn: C, shortcuts: w, onMouseEnterShortcut: T, onMouseLeaveShortcut: E, onSelectShortcut: D, extra: O, mode: k, shortcutsPlacementLeft: A, isPickerRange: j, disableConfirm: M } = d,
|
|
13
|
+
let { utcOffset: f, timezone: p, weekStart: m } = c(a), { showTime: h, prefixCls: g, DATEPICKER_LOCALE: _, disabled: v, onClickConfirmBtn: y, onClickSelectTimeBtn: b, isTimePanel: x, onSelectNow: S, showNowBtn: C, shortcuts: w, onMouseEnterShortcut: T, onMouseLeaveShortcut: E, onSelectShortcut: D, extra: O, mode: k, shortcutsPlacementLeft: A, isPickerRange: j, disableConfirm: M, nowDisabled: N, disabledDate: P } = d, F = e(w) && w.length > 0, I = C && h && !F || F && !A, L = h?.mode === "standard";
|
|
14
14
|
return /* @__PURE__ */ u("div", {
|
|
15
15
|
className: `${g}-footer`,
|
|
16
16
|
children: [
|
|
@@ -21,11 +21,12 @@ function d(d) {
|
|
|
21
21
|
!h && C && k === "date" && /* @__PURE__ */ l("div", {
|
|
22
22
|
className: `${g}-footer-now-wrapper`,
|
|
23
23
|
children: /* @__PURE__ */ l(o, {
|
|
24
|
+
disabled: N,
|
|
24
25
|
onClick: S,
|
|
25
26
|
children: _.today
|
|
26
27
|
})
|
|
27
28
|
}),
|
|
28
|
-
|
|
29
|
+
I || h ? /* @__PURE__ */ u("div", {
|
|
29
30
|
className: `${g}-footer-btn-wrapper`,
|
|
30
31
|
children: [A ? /* @__PURE__ */ l("div", { style: { flex: 1 } }) : /* @__PURE__ */ l(s, {
|
|
31
32
|
shortcuts: w,
|
|
@@ -36,10 +37,13 @@ function d(d) {
|
|
|
36
37
|
onMouseEnterShortcut: T,
|
|
37
38
|
onMouseLeaveShortcut: E,
|
|
38
39
|
onSelectShortcut: D,
|
|
39
|
-
showTime: h
|
|
40
|
+
showTime: h,
|
|
41
|
+
nowDisabled: N,
|
|
42
|
+
disabledDate: P,
|
|
43
|
+
mode: k
|
|
40
44
|
}), h && /* @__PURE__ */ u(n, {
|
|
41
45
|
alignItems: "center",
|
|
42
|
-
children: [
|
|
46
|
+
children: [L ? null : /* @__PURE__ */ l(t, {
|
|
43
47
|
type: "text",
|
|
44
48
|
size: "mini",
|
|
45
49
|
onClick: b,
|