@unicom-cloud/ui 0.8.111 → 0.8.113
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 +3 -3
- package/Alert.js +1 -1
- package/AutoComplete.js +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +3 -47
- package/Countdown.js +9 -43
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +7 -43
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +8 -44
- package/Form.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +9 -44
- package/List.js +1 -1
- package/Loading.js +7 -43
- package/Marquee.js +10 -33
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +6 -42
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +7 -44
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +12 -13
- package/Segmented.js +8 -43
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +8 -44
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +10 -46
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +2 -2
- package/affix/index.js +3 -3
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +2 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- 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 +2 -2
- package/cascader/Cascader.js +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{Y_GQsZUt.js → 3t4FwEoB.js} +1 -1
- package/chunk/{Lyh0cz3R.js → BHAu6wbC.js} +1 -1
- package/chunk/{CgN4U7Ou.js → Bcl7dWlJ.js} +2 -2
- package/chunk/Bl3hZtxi.js +51 -0
- package/chunk/{n1tirBXA.js → Bzx5BueA.js} +4 -4
- package/chunk/CAA93JLq.js +6 -0
- package/chunk/{B8W1N4er.js → CHQ8c547.js} +11 -10
- package/chunk/CVMFAeSw.js +39 -0
- package/chunk/{BcEZk8pT.js → CYDaUML7.js} +73 -104
- package/chunk/{Dbw0YUY1.js → CbXCgtzv.js} +48 -82
- package/chunk/{BDgzrqDN.js → ClNkxEcR.js} +5 -5
- package/chunk/{BlflTd2i.js → CwLSam2p.js} +433 -470
- package/chunk/Cy26_CKq.js +33 -0
- package/chunk/D0dVE1v1.js +1839 -0
- package/chunk/{CFyN9Eio.js → DA5AMZwY.js} +4 -4
- package/chunk/{DSqW_efI.js → DB0hUIM1.js} +152 -156
- package/chunk/{BUNoUPLs.js → De8RLlOK.js} +1 -1
- package/chunk/{qsVvkBLU.js → DrYaod6k.js} +1 -1
- package/chunk/{BeHcDey_.js → DzlfiVe2.js} +1 -1
- package/chunk/gJsdBcpG.js +10 -0
- package/chunk/{BnUWOu3_.js → yWKJUe_w.js} +3 -3
- package/collapse/Collapse.js +1 -1
- package/collapse/Item.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/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.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 +2 -2
- package/copy/index.js +22 -66
- package/countdown/index.js +34 -68
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +39 -75
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.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 +30 -64
- package/form/Form.js +2 -2
- package/form/FormItem.js +1 -1
- package/form/index.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +81 -81
- package/hooks/useId.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useResizeObserver.js +15 -2
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +10 -45
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +215 -215
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +2 -2
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +2 -2
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.js +1 -1
- package/input-tag/InputTag.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/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +49 -84
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +19 -55
- package/marquee/index.js +58 -81
- package/marquee-/index.js +60 -83
- package/mentions/index.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +2 -2
- package/notice/index.js +6 -42
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +2 -2
- package/overflow-ellipsis/index.js +2 -2
- package/package.json +1 -1
- package/page-header/index.js +2 -2
- 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/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/index.js +1 -1
- package/qr-code/index.js +19 -56
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +2 -2
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/index.js +6333 -78
- package/rich-text/lib/diff/index.d.ts +21 -0
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +71 -74
- package/row-col/Row.js +1 -1
- package/segmented/index.js +111 -146
- package/select/Option.js +44 -41
- package/select/Select.js +11 -13
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +16 -52
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +3 -3
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +18 -7
- package/table/index.js +77 -120
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +71 -107
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +3 -3
- package/tree-select/index.js +1 -1
- package/trigger/index.js +2 -2
- package/types/common/hooks/src/use-size/index.d.ts +1 -1
- package/types/common/hooks/src/utils/isBrowser.d.ts +1 -1
- package/types/common/hooks/useResizeObserver.d.ts +1 -5
- package/types/common/hooks/useStateWithPromise.d.ts +1 -1
- package/types/common/hooks/useWindowSize.d.ts +1 -1
- package/types/common/utils/dom.d.ts +12 -0
- package/types/common/utils/emitter.d.ts +1 -0
- package/types/pc/carousel/interface.d.ts +2 -2
- package/types/pc/color-picker/Panel.d.ts +1 -1
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/index.d.ts +2 -2
- package/types/pc/list/interface.d.ts +2 -2
- package/types/pc/rich-text/index.d.ts +7 -4
- package/types/pc/rich-text/interface.d.ts +3 -2
- package/types/pc/rich-text/{blots → lib/blots}/scroll.d.ts +2 -8
- package/types/pc/rich-text/{core → lib/core}/editor.d.ts +1 -1
- package/types/pc/rich-text/{core → lib/core}/emitter.d.ts +2 -3
- package/types/pc/rich-text/{core → lib/core}/rich.d.ts +14 -51
- package/types/pc/rich-text/{core → lib/core}/selection.d.ts +2 -8
- package/types/pc/rich-text/{core → lib/core}/theme.d.ts +3 -0
- package/types/pc/rich-text/{core.d.ts → lib/core.d.ts} +1 -1
- package/types/pc/rich-text/lib/delta/AttributeMap.d.ts +15 -0
- package/types/pc/rich-text/lib/delta/Op.d.ts +13 -0
- package/types/pc/rich-text/lib/delta/OpIterator.d.ts +14 -0
- package/types/pc/rich-text/lib/delta/index.d.ts +53 -0
- package/types/pc/rich-text/lib/diff/index.d.ts +40 -0
- package/types/pc/rich-text/{formats → lib/formats}/bold.d.ts +1 -1
- package/types/pc/rich-text/{formats → lib/formats}/font.d.ts +1 -1
- package/types/pc/rich-text/lib/formats/hr.d.ts +5 -0
- package/types/pc/rich-text/lib/formats/image-resize/index.d.ts +27 -0
- package/types/pc/rich-text/lib/formats/image-resize/modules/BaseModule.d.ts +10 -0
- package/types/pc/rich-text/lib/formats/image-resize/modules/DisplaySize.d.ts +5 -0
- package/types/pc/rich-text/lib/formats/image-resize/modules/Resize.d.ts +13 -0
- package/types/pc/rich-text/lib/formats/image-resize/options.d.ts +7 -0
- package/types/pc/rich-text/lib/formats/liOl.d.ts +10 -0
- package/types/pc/rich-text/lib/formats/liUl.d.ts +10 -0
- package/types/pc/rich-text/lib/formats/lineHeight.d.ts +3 -0
- package/types/pc/rich-text/{formats → lib/formats}/list.d.ts +1 -0
- package/types/pc/rich-text/{formats → lib/formats}/table.d.ts +3 -3
- package/types/pc/rich-text/{modules → lib/modules}/clipboard.d.ts +2 -2
- package/types/pc/rich-text/{modules → lib/modules}/history.d.ts +1 -1
- package/types/pc/rich-text/{modules → lib/modules}/keyboard.d.ts +1 -1
- package/types/pc/rich-text/{modules → lib/modules}/syntax.d.ts +2 -2
- package/types/pc/rich-text/{modules → lib/modules}/tableEmbed.d.ts +3 -3
- package/types/pc/rich-text/{modules → lib/modules}/toolbar.d.ts +1 -1
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/attributor.d.ts +3 -3
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/style.d.ts +2 -2
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/parent.d.ts +2 -4
- package/types/pc/rich-text/{themes → lib/themes}/base.d.ts +3 -0
- package/types/pc/rich-text/{themes/snow.d.ts → lib/themes/pqb.d.ts} +2 -2
- package/types/pc/rich-text/{ui → lib/ui}/icons.d.ts +5 -1
- package/types/pc/rich-text/{ui → lib/ui}/picker.d.ts +1 -0
- package/types/pc/rich-text/{ui → lib/ui}/tooltip.d.ts +2 -0
- package/types/pc/tabs/hook/useDomSize.d.ts +2 -2
- package/types/pc/tabs/hook/useHeaderScroll.d.ts +2 -2
- package/types/pc/tree-select/hook/useStateValue.d.ts +2 -2
- package/types/pc/utils/date.d.ts +1 -0
- package/types/pc/utils/emitter.d.ts +1 -0
- package/types/pc/utils/index.d.ts +2 -2
- package/typography/Base.js +2 -2
- package/typography/Ellipsis.js +70 -114
- package/typography/Operations.js +29 -74
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/date.js +1 -0
- package/utils/emitter.js +5 -0
- package/utils/index.js +70 -70
- package/utils/resizeObserver.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +218 -217
- package/watermark/Watermark.js +1 -1
- package/chunk/BDMqvmVH.js +0 -4239
- package/chunk/BG6j6Ct7.js +0 -30
- package/chunk/BGJspFG9.js +0 -56
- package/chunk/B_c0gPsX.js +0 -83
- package/chunk/COsRZOz1.js +0 -1813
- package/chunk/CylJZkp8.js +0 -6
- package/chunk/Di5KBCVQ.js +0 -4
- package/chunk/cW_5U6dL.js +0 -28
- package/rich-text/core.js +0 -11
- package/rich-text/rich.js +0 -1877
- package/types/common/utils/index.d.ts +0 -47
- package/types/common/utils/keyboardCode.d.ts +0 -4
- package/types/common/utils/math.d.ts +0 -1
- package/types/common/utils/mitt.d.ts +0 -1
- package/types/common/utils/reactTransitionGroup.d.ts +0 -1
- package/types/common/utils/uuid.d.ts +0 -1
- package/types/common/utils/validate.d.ts +0 -1
- package/types/pc/rich-text/delta/AttributeMap.d.ts +0 -10
- package/types/pc/rich-text/delta/Op.d.ts +0 -11
- package/types/pc/rich-text/delta/OpIterator.d.ts +0 -13
- package/types/pc/rich-text/delta/index.d.ts +0 -45
- package/types/pc/rich-text/themes/bubble.d.ts +0 -18
- package/types/pc/utils/mitt.d.ts +0 -1
- package/utils/mitt.js +0 -5
- package/types/common/hooks/src/utils/{index.d.ts → is.d.ts} +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/block.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/break.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/container.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/cursor.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/embed.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/inline.d.ts +0 -0
- package/types/pc/rich-text/{blots → lib/blots}/text.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/composition.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/instances.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/logger.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/module.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/utils/createRegistryWithFormats.d.ts +0 -0
- package/types/pc/rich-text/{core → lib/core}/utils/scrollRectIntoView.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/align.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/background.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/blockquote.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/code.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/color.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/direction.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/formula.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/header.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/image.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/indent.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/italic.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/link.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/script.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/size.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/strike.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/underline.d.ts +0 -0
- package/types/pc/rich-text/{formats → lib/formats}/video.d.ts +0 -0
- package/types/pc/rich-text/{rich.d.ts → lib/index.d.ts} +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/input.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/index.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/table.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/uiNode.d.ts +0 -0
- package/types/pc/rich-text/{modules → lib/modules}/uploader.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/class.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/attributor/store.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/blot.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/container.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/leaf.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/shadow.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/block.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/embed.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/inline.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/scroll.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/blot/text.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-list.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-node.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/error.d.ts +0 -0
- package/types/pc/rich-text/{parchment → lib/parchment}/index.d.ts +1 -1
- /package/types/pc/rich-text/{parchment → lib/parchment}/registry.d.ts +0 -0
- /package/types/pc/rich-text/{parchment → lib/parchment}/scope.d.ts +0 -0
- /package/types/pc/rich-text/{ui → lib/ui}/color-picker.d.ts +0 -0
- /package/types/pc/rich-text/{ui → lib/ui}/icon-picker.d.ts +0 -0
|
@@ -2,8 +2,8 @@ import { jsx as f, jsxs as K } from "react/jsx-runtime";
|
|
|
2
2
|
import se from "lodash/isFunction";
|
|
3
3
|
import ye from "lodash/isPlainObject";
|
|
4
4
|
import q, { useContext as te, useRef as U, useState as ve, useEffect as B, useMemo as ne, useCallback as at, useImperativeHandle as st } from "react";
|
|
5
|
-
import { a as Te, I as de } from "./
|
|
6
|
-
import { u as ct } from "./
|
|
5
|
+
import { a as Te, I as de } from "./CYDaUML7.js";
|
|
6
|
+
import { u as ct } from "./gJsdBcpG.js";
|
|
7
7
|
import { u as lt } from "./FgWHhRFz.js";
|
|
8
8
|
import { u as dt } from "./2vdCeheu.js";
|
|
9
9
|
import L from "@unicom-cloud/utils/class-name";
|
|
@@ -14,12 +14,12 @@ import ge from "lodash/isNumber";
|
|
|
14
14
|
import ht from "lodash/throttle";
|
|
15
15
|
import { b as ie, o as Ae } from "./d1c9z8T1.js";
|
|
16
16
|
import { getRectDiff as xe, getKeyDownEvent as Xe, updateScrollOffset as pt } from "../tabs/util.js";
|
|
17
|
-
import { r as ae } from "./
|
|
17
|
+
import { r as ae } from "./CHQ8c547.js";
|
|
18
18
|
import { setTransformStyle as mt } from "../utils/style.js";
|
|
19
19
|
import Ye from "@unicom-cloud/icons/IconUiDown";
|
|
20
20
|
import je from "lodash/isNull";
|
|
21
21
|
import bt from "../dropdown/index.js";
|
|
22
|
-
import { M as We } from "./
|
|
22
|
+
import { M as We } from "./Bzx5BueA.js";
|
|
23
23
|
import gt from "lodash/isEqualWith";
|
|
24
24
|
import vt from "../utils/throttleByRaf.js";
|
|
25
25
|
import Ee from "@unicom-cloud/icons/IconUiLeft";
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsx as r, jsxs as L, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { b as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import { P as
|
|
1
|
+
import { jsx as r, jsxs as L, Fragment as rn } from "react/jsx-runtime";
|
|
2
|
+
import ln from "@unicom-cloud/icons/IconUiClose";
|
|
3
|
+
import sn from "lodash/isFunction";
|
|
4
|
+
import { forwardRef as Me, useState as w, useImperativeHandle as an, useRef as h, useContext as cn, useCallback as un, useEffect as ee } from "react";
|
|
5
|
+
import ve from "../button/index.js";
|
|
6
|
+
import { b as we, e as dn, a as fn, I as mn } from "./CYDaUML7.js";
|
|
7
|
+
import { u as pn } from "./oopARUrq.js";
|
|
8
|
+
import { u as Cn } from "./FgWHhRFz.js";
|
|
9
|
+
import { u as gn } from "./2vdCeheu.js";
|
|
10
|
+
import { u as hn } from "./BqWBaRtM.js";
|
|
11
|
+
import bn from "../portal/index.js";
|
|
12
|
+
import { P as xe } from "./B--6x-RL.js";
|
|
13
13
|
import ne from "@unicom-cloud/utils/class-name";
|
|
14
|
-
import { c as
|
|
15
|
-
import { Esc as
|
|
16
|
-
import { o as
|
|
17
|
-
import { f as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { createRoot as
|
|
23
|
-
import { destroyList as M, getConfigProviderProps as
|
|
24
|
-
function
|
|
25
|
-
const { simple: s } =
|
|
14
|
+
import { c as vn, a as xn } from "./d1c9z8T1.js";
|
|
15
|
+
import { Esc as kn } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
16
|
+
import { o as Mn } from "./BKKEev13.js";
|
|
17
|
+
import { f as wn } from "./CXrVhA6-.js";
|
|
18
|
+
import En from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
19
|
+
import Tn from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
20
|
+
import ke from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
21
|
+
import Nn from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
22
|
+
import { createRoot as Pn } from "react-dom/client";
|
|
23
|
+
import { destroyList as M, getConfigProviderProps as yn, getModalConfig as $n, setModalConfig as In } from "../modal/config.js";
|
|
24
|
+
function Dn(n) {
|
|
25
|
+
const { simple: s } = $n();
|
|
26
26
|
return /* @__PURE__ */ r(x, { simple: s, ...n, children: n.content });
|
|
27
27
|
}
|
|
28
28
|
const S = (n) => {
|
|
29
29
|
let s = n.icon;
|
|
30
30
|
if (!s) {
|
|
31
31
|
if (s !== null) {
|
|
32
|
-
if (s = /* @__PURE__ */ r(
|
|
32
|
+
if (s = /* @__PURE__ */ r(ke, {}), n.isNotice)
|
|
33
33
|
switch (n.noticeType) {
|
|
34
34
|
case "info":
|
|
35
|
-
s = /* @__PURE__ */ r(
|
|
35
|
+
s = /* @__PURE__ */ r(Nn, {});
|
|
36
36
|
break;
|
|
37
37
|
case "success":
|
|
38
|
-
s = /* @__PURE__ */ r(
|
|
38
|
+
s = /* @__PURE__ */ r(En, {});
|
|
39
39
|
break;
|
|
40
40
|
case "warning":
|
|
41
|
-
s = /* @__PURE__ */ r(
|
|
41
|
+
s = /* @__PURE__ */ r(ke, {});
|
|
42
42
|
break;
|
|
43
43
|
case "error":
|
|
44
|
-
s = /* @__PURE__ */ r(
|
|
44
|
+
s = /* @__PURE__ */ r(Tn, {});
|
|
45
45
|
break;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -55,17 +55,17 @@ function oe(n, s) {
|
|
|
55
55
|
let u;
|
|
56
56
|
const a = document.createElement("div");
|
|
57
57
|
a.className = "pqb-modal-root", document.body.appendChild(a);
|
|
58
|
-
const m =
|
|
58
|
+
const m = yn();
|
|
59
59
|
function g(i) {
|
|
60
|
-
const C = /* @__PURE__ */ r(
|
|
61
|
-
|
|
60
|
+
const C = /* @__PURE__ */ r(we, { ...m, childrenName: "ModalConfirm", children: /* @__PURE__ */ r(
|
|
61
|
+
Dn,
|
|
62
62
|
{
|
|
63
63
|
getPopupContainer: () => a,
|
|
64
64
|
...i,
|
|
65
65
|
onCancel: p
|
|
66
66
|
}
|
|
67
67
|
) });
|
|
68
|
-
u ||=
|
|
68
|
+
u ||= Pn(a), u.render(C);
|
|
69
69
|
}
|
|
70
70
|
const t = s || g;
|
|
71
71
|
let o = {
|
|
@@ -118,9 +118,9 @@ function oe(n, s) {
|
|
|
118
118
|
destroy: f
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Rn(n, s) {
|
|
122
122
|
const [u, a] = w(!0), [m, g] = w(n);
|
|
123
|
-
|
|
123
|
+
an(s, () => ({
|
|
124
124
|
update: (d) => {
|
|
125
125
|
g(d);
|
|
126
126
|
},
|
|
@@ -161,9 +161,9 @@ function On(n, s) {
|
|
|
161
161
|
}
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
const n = h(void 0), s = /* @__PURE__ */ r(
|
|
164
|
+
const On = Me(Rn);
|
|
165
|
+
function Ln() {
|
|
166
|
+
const n = h(void 0), s = /* @__PURE__ */ r(dn, { ref: n });
|
|
167
167
|
let u = 0;
|
|
168
168
|
function a(t) {
|
|
169
169
|
u += 1;
|
|
@@ -172,7 +172,7 @@ function Bn() {
|
|
|
172
172
|
t.afterClose?.(), E();
|
|
173
173
|
}
|
|
174
174
|
const p = /* @__PURE__ */ r(
|
|
175
|
-
|
|
175
|
+
On,
|
|
176
176
|
{
|
|
177
177
|
ref: (C) => {
|
|
178
178
|
o = C;
|
|
@@ -218,8 +218,8 @@ function Bn() {
|
|
|
218
218
|
});
|
|
219
219
|
}), [g, s];
|
|
220
220
|
}
|
|
221
|
-
let te = null,
|
|
222
|
-
|
|
221
|
+
let te = null, Bn = 0;
|
|
222
|
+
xn || document.documentElement.addEventListener(
|
|
223
223
|
"click",
|
|
224
224
|
(n) => {
|
|
225
225
|
te = {
|
|
@@ -231,7 +231,7 @@ kn || document.documentElement.addEventListener(
|
|
|
231
231
|
},
|
|
232
232
|
!0
|
|
233
233
|
);
|
|
234
|
-
const
|
|
234
|
+
const Xn = {
|
|
235
235
|
mask: !0,
|
|
236
236
|
maskClosable: !0,
|
|
237
237
|
mountOnEnter: !0,
|
|
@@ -239,10 +239,10 @@ const Yn = {
|
|
|
239
239
|
getPopupContainer: () => document.body,
|
|
240
240
|
alignCenter: !0
|
|
241
241
|
};
|
|
242
|
-
function
|
|
243
|
-
const u =
|
|
242
|
+
function Yn(n, s) {
|
|
243
|
+
const u = cn(fn), a = Cn(
|
|
244
244
|
n,
|
|
245
|
-
|
|
245
|
+
Xn,
|
|
246
246
|
u.componentConfig?.Modal
|
|
247
247
|
), {
|
|
248
248
|
className: m,
|
|
@@ -258,52 +258,52 @@ function Fn(n, s) {
|
|
|
258
258
|
cancelButtonProps: C,
|
|
259
259
|
getPopupContainer: T = () => document.body,
|
|
260
260
|
footer: N,
|
|
261
|
-
afterClose:
|
|
262
|
-
confirmLoading:
|
|
261
|
+
afterClose: Ee,
|
|
262
|
+
confirmLoading: Te,
|
|
263
263
|
mountOnEnter: U,
|
|
264
264
|
unmountOnExit: re,
|
|
265
|
-
afterOpen:
|
|
266
|
-
hideCancel:
|
|
267
|
-
maskClosable:
|
|
268
|
-
mask:
|
|
269
|
-
alignCenter:
|
|
265
|
+
afterOpen: Ne,
|
|
266
|
+
hideCancel: Pe,
|
|
267
|
+
maskClosable: ye,
|
|
268
|
+
mask: $e,
|
|
269
|
+
alignCenter: Ie,
|
|
270
270
|
getChildrenPopupContainer: le,
|
|
271
|
-
wrapClassName:
|
|
271
|
+
wrapClassName: De,
|
|
272
272
|
escToExit: V,
|
|
273
|
-
modalRender:
|
|
274
|
-
maskStyle:
|
|
275
|
-
wrapStyle:
|
|
276
|
-
closeIcon:
|
|
273
|
+
modalRender: Re,
|
|
274
|
+
maskStyle: Oe,
|
|
275
|
+
wrapStyle: Le,
|
|
276
|
+
closeIcon: se,
|
|
277
277
|
fullscreenable: P,
|
|
278
278
|
cancelButton: y,
|
|
279
279
|
okButton: $,
|
|
280
|
-
draggable:
|
|
281
|
-
closable:
|
|
282
|
-
...
|
|
283
|
-
} = a, B = P ? !1 :
|
|
284
|
-
|
|
280
|
+
draggable: Be,
|
|
281
|
+
closable: Xe,
|
|
282
|
+
...Ye
|
|
283
|
+
} = a, B = P ? !1 : $e, z = P ? !1 : Be, I = h(null), ie = h(null), k = h(null), [ae, ce] = w(), [ue, Fe] = w(), X = h(null), D = h(!1), [He, de] = w(""), [Se, fe] = w("");
|
|
284
|
+
pn();
|
|
285
285
|
const q = h(!0);
|
|
286
286
|
t && q.current && (q.current = !1);
|
|
287
287
|
const Y = h(void 0);
|
|
288
|
-
Y.current || (Y.current =
|
|
289
|
-
const [
|
|
288
|
+
Y.current || (Y.current = Bn++);
|
|
289
|
+
const [Ue, W] = gn(!1, {
|
|
290
290
|
defaultValue: !1,
|
|
291
|
-
value:
|
|
292
|
-
}), c = u.getPrefixCls?.("modal"),
|
|
293
|
-
|
|
291
|
+
value: Te
|
|
292
|
+
}), c = u.getPrefixCls?.("modal"), Ve = u.getPrefixCls?.("modal-var"), { locale: Z, rtl: me } = u, ze = !o, qe = P ? !0 : "closable" in a ? Xe : ze, We = un(() => wn(T()), [T]);
|
|
293
|
+
hn(We, { hidden: t && B });
|
|
294
294
|
function j(e) {
|
|
295
295
|
e.stopPropagation(), A();
|
|
296
296
|
}
|
|
297
297
|
function A() {
|
|
298
298
|
a.onCancel?.();
|
|
299
299
|
}
|
|
300
|
-
const
|
|
301
|
-
V && t && e.key ===
|
|
302
|
-
}, K = h(!1),
|
|
303
|
-
D.current && (D.current = !1, !K.current &&
|
|
300
|
+
const Ze = (e) => {
|
|
301
|
+
V && t && e.key === kn.key && (e.stopPropagation(), A());
|
|
302
|
+
}, K = h(!1), je = (e) => {
|
|
303
|
+
D.current && (D.current = !1, !K.current && ye && B && e.target === e.currentTarget && setTimeout(() => {
|
|
304
304
|
A();
|
|
305
305
|
}, 100));
|
|
306
|
-
},
|
|
306
|
+
}, Ae = (e) => {
|
|
307
307
|
const l = (a.onOk ?? a.onConfirm)?.(e);
|
|
308
308
|
l?.then && (W(!0), l.then(
|
|
309
309
|
() => {
|
|
@@ -317,21 +317,21 @@ function Fn(n, s) {
|
|
|
317
317
|
ee(() => {
|
|
318
318
|
let e = null;
|
|
319
319
|
return V && (e = setTimeout(() => {
|
|
320
|
-
|
|
320
|
+
vn(document.body, I.current) && I.current?.focus();
|
|
321
321
|
})), () => {
|
|
322
322
|
e && clearTimeout(e);
|
|
323
323
|
};
|
|
324
324
|
}, [t, V]);
|
|
325
|
-
const
|
|
326
|
-
if (t &&
|
|
325
|
+
const Ke = () => {
|
|
326
|
+
if (t && ue === void 0 && I.current) {
|
|
327
327
|
const e = +window.getComputedStyle(I.current, null)?.zIndex;
|
|
328
|
-
isNaN(e) ||
|
|
328
|
+
isNaN(e) || Fe(e + 1);
|
|
329
329
|
}
|
|
330
|
-
},
|
|
330
|
+
}, Ge = () => {
|
|
331
331
|
if (N === !1 || N === null)
|
|
332
332
|
return;
|
|
333
333
|
const e = y?.visible !== !1 && /* @__PURE__ */ r(
|
|
334
|
-
|
|
334
|
+
ve,
|
|
335
335
|
{
|
|
336
336
|
onClick: j,
|
|
337
337
|
...C,
|
|
@@ -339,60 +339,60 @@ function Fn(n, s) {
|
|
|
339
339
|
children: y?.props?.children || y?.label || y?.text || E || Z?.Modal.cancelText
|
|
340
340
|
}
|
|
341
341
|
), l = $?.visible !== !1 && /* @__PURE__ */ r(
|
|
342
|
-
|
|
342
|
+
ve,
|
|
343
343
|
{
|
|
344
|
-
loading:
|
|
345
|
-
onClick:
|
|
344
|
+
loading: Ue,
|
|
345
|
+
onClick: Ae,
|
|
346
346
|
type: "primary",
|
|
347
347
|
...i,
|
|
348
348
|
...$?.props,
|
|
349
349
|
children: $?.props?.children || $?.label || $?.text || b || Z?.Modal.okText
|
|
350
350
|
}
|
|
351
|
-
), v =
|
|
352
|
-
|
|
351
|
+
), v = sn(N) ? N(e, l) : N || /* @__PURE__ */ L(rn, { children: [
|
|
352
|
+
!Pe && e,
|
|
353
353
|
l
|
|
354
354
|
] });
|
|
355
355
|
if (v)
|
|
356
356
|
return /* @__PURE__ */ r("div", { className: `${c}-footer`, children: v });
|
|
357
357
|
}, G = h(
|
|
358
|
-
|
|
358
|
+
ge()
|
|
359
359
|
);
|
|
360
|
-
function
|
|
360
|
+
function Je(e) {
|
|
361
361
|
if (!k.current) return;
|
|
362
362
|
e.preventDefault();
|
|
363
363
|
const l = G.current;
|
|
364
|
-
l.screenX = e.screenX, l.screenY = e.screenY, l.prewTranslateX = l.translateX, l.prewTranslateY = l.translateY, l.boundingClientRect = k.current?.getBoundingClientRect?.() ?? {}, l.offsetParentBoundingClientRect = k.current?.offsetParent?.getBoundingClientRect?.() ?? {},
|
|
364
|
+
l.screenX = e.screenX, l.screenY = e.screenY, l.prewTranslateX = l.translateX, l.prewTranslateY = l.translateY, l.boundingClientRect = k.current?.getBoundingClientRect?.() ?? {}, l.offsetParentBoundingClientRect = k.current?.offsetParent?.getBoundingClientRect?.() ?? {}, Qe();
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function pe(e) {
|
|
367
367
|
e.preventDefault();
|
|
368
|
-
const l = G.current, { left: v, right: Q, top: _, bottom:
|
|
368
|
+
const l = G.current, { left: v, right: Q, top: _, bottom: nn } = l.boundingClientRect ?? {}, { width: tn, height: on } = l.offsetParentBoundingClientRect ?? {};
|
|
369
369
|
let R = Math.max(e.screenX - l.screenX, -v);
|
|
370
|
-
R = Math.min(R,
|
|
370
|
+
R = Math.min(R, tn - Q);
|
|
371
371
|
let O = Math.max(e.screenY - l.screenY, -_);
|
|
372
|
-
O = Math.min(O,
|
|
372
|
+
O = Math.min(O, on - nn), R += l.prewTranslateX, O += l.prewTranslateY, l.translateX = R, l.translateY = O, de(`translate(${R}px, ${O}px)`);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ce(e) {
|
|
375
375
|
e.preventDefault(), F();
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Qe() {
|
|
378
378
|
F(), document.documentElement.addEventListener(
|
|
379
379
|
"mousemove",
|
|
380
|
-
|
|
380
|
+
pe
|
|
381
381
|
), document.documentElement.addEventListener(
|
|
382
382
|
"mouseup",
|
|
383
|
-
|
|
383
|
+
Ce
|
|
384
384
|
);
|
|
385
385
|
}
|
|
386
386
|
function F() {
|
|
387
387
|
document.documentElement.removeEventListener(
|
|
388
388
|
"mousemove",
|
|
389
|
-
|
|
389
|
+
pe
|
|
390
390
|
), document.documentElement.removeEventListener(
|
|
391
391
|
"mouseup",
|
|
392
|
-
|
|
392
|
+
Ce
|
|
393
393
|
);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function ge() {
|
|
396
396
|
return {
|
|
397
397
|
screenX: 0,
|
|
398
398
|
screenY: 0,
|
|
@@ -405,7 +405,7 @@ function Fn(n, s) {
|
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
407
|
function J(e) {
|
|
408
|
-
G.current =
|
|
408
|
+
G.current = ge(), de(""), fe("");
|
|
409
409
|
}
|
|
410
410
|
ee(() => () => {
|
|
411
411
|
J(), F();
|
|
@@ -414,15 +414,15 @@ function Fn(n, s) {
|
|
|
414
414
|
return k.current || (J(), F()), () => {
|
|
415
415
|
};
|
|
416
416
|
}, [k.current, z]);
|
|
417
|
-
const
|
|
418
|
-
|
|
417
|
+
const _e = /* @__PURE__ */ L(
|
|
418
|
+
we,
|
|
419
419
|
{
|
|
420
420
|
...u,
|
|
421
421
|
childrenName: "Modal",
|
|
422
422
|
prefixCls: u.prefixCls,
|
|
423
423
|
locale: Z,
|
|
424
|
-
zIndex:
|
|
425
|
-
getPopupContainer: (e) => typeof le == "function" ? le(e) :
|
|
424
|
+
zIndex: ue || 1050,
|
|
425
|
+
getPopupContainer: (e) => typeof le == "function" ? le(e) : ie.current,
|
|
426
426
|
children: [
|
|
427
427
|
(!!d || !!f) && /* @__PURE__ */ L("div", { className: `${c}-header`, children: [
|
|
428
428
|
!!d && /* @__PURE__ */ r(
|
|
@@ -435,59 +435,65 @@ function Fn(n, s) {
|
|
|
435
435
|
),
|
|
436
436
|
!!f && /* @__PURE__ */ r("div", { className: `${c}-subtitle`, children: f })
|
|
437
437
|
] }),
|
|
438
|
-
/* @__PURE__ */ r("div", { ref:
|
|
439
|
-
|
|
438
|
+
/* @__PURE__ */ r("div", { ref: ie, className: `${c}-content`, children: p }),
|
|
439
|
+
Ge(),
|
|
440
440
|
z !== !1 && /* @__PURE__ */ r(
|
|
441
441
|
"div",
|
|
442
442
|
{
|
|
443
443
|
className: `${c}-drag-icon`,
|
|
444
|
-
onMouseDown:
|
|
444
|
+
onMouseDown: Je,
|
|
445
445
|
onDoubleClick: J
|
|
446
446
|
}
|
|
447
447
|
),
|
|
448
|
-
|
|
448
|
+
qe && (se !== void 0 ? /* @__PURE__ */ r(
|
|
449
449
|
"span",
|
|
450
450
|
{
|
|
451
451
|
className: `${c}-close-icon`,
|
|
452
452
|
onClick: j,
|
|
453
|
-
children:
|
|
453
|
+
children: se
|
|
454
454
|
}
|
|
455
455
|
) : /* @__PURE__ */ r(
|
|
456
|
-
|
|
456
|
+
mn,
|
|
457
457
|
{
|
|
458
458
|
tabIndex: -1,
|
|
459
459
|
className: `${c}-close-icon`,
|
|
460
460
|
onClick: j,
|
|
461
461
|
role: "button",
|
|
462
462
|
"aria-label": "Close",
|
|
463
|
-
children: /* @__PURE__ */ r(
|
|
463
|
+
children: /* @__PURE__ */ r(ln, {})
|
|
464
464
|
}
|
|
465
465
|
))
|
|
466
466
|
]
|
|
467
467
|
}
|
|
468
|
-
),
|
|
468
|
+
), en = d ? { "aria-labelledby": `pqb-dialog-${Y.current}` } : {}, he = /* @__PURE__ */ r(
|
|
469
469
|
"div",
|
|
470
470
|
{
|
|
471
471
|
role: "dialog",
|
|
472
472
|
"aria-modal": "true",
|
|
473
|
-
...
|
|
473
|
+
...en,
|
|
474
|
+
style: {
|
|
475
|
+
[`--${Ve}-transform`]: He,
|
|
476
|
+
...g,
|
|
477
|
+
...P ? { width: "100%", height: "100%" } : {},
|
|
478
|
+
transformOrigin: Se
|
|
479
|
+
},
|
|
474
480
|
className: ne(
|
|
475
481
|
c,
|
|
476
482
|
{
|
|
477
483
|
[`${c}-simple`]: o,
|
|
478
|
-
[`${c}-rtl`]:
|
|
484
|
+
[`${c}-rtl`]: me,
|
|
479
485
|
[`${c}-fullscreenable`]: P
|
|
480
486
|
},
|
|
481
487
|
m
|
|
482
488
|
),
|
|
483
|
-
style: {
|
|
484
|
-
[`--${ze}-transform`]: Se,
|
|
485
|
-
...g,
|
|
486
|
-
...P ? { width: "100%", height: "100%" } : {},
|
|
487
|
-
transformOrigin: Ue
|
|
488
|
-
},
|
|
489
489
|
ref: k,
|
|
490
|
-
|
|
490
|
+
onMouseDown: () => {
|
|
491
|
+
D.current = !1;
|
|
492
|
+
},
|
|
493
|
+
onMouseUp: () => {
|
|
494
|
+
D.current = !1;
|
|
495
|
+
},
|
|
496
|
+
children: _e
|
|
491
497
|
}
|
|
492
498
|
), H = (e) => {
|
|
493
499
|
let l = "";
|
|
@@ -495,13 +501,13 @@ function Fn(n, s) {
|
|
|
495
501
|
const v = e.getBoundingClientRect(), { left: Q, top: _ } = X.current;
|
|
496
502
|
l = `${Q - v.left}px ${_ - v.top}px`;
|
|
497
503
|
}
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
return t ||
|
|
501
|
-
|
|
504
|
+
fe(l);
|
|
505
|
+
}, be = q.current ? !U : !!k.current;
|
|
506
|
+
return t || be ? /* @__PURE__ */ r(
|
|
507
|
+
bn,
|
|
502
508
|
{
|
|
503
509
|
visible: t,
|
|
504
|
-
forceRender:
|
|
510
|
+
forceRender: be,
|
|
505
511
|
getContainer: T,
|
|
506
512
|
children: /* @__PURE__ */ L(
|
|
507
513
|
"div",
|
|
@@ -510,7 +516,7 @@ function Fn(n, s) {
|
|
|
510
516
|
className: ne(`${c}-container`),
|
|
511
517
|
children: [
|
|
512
518
|
B ? /* @__PURE__ */ r(
|
|
513
|
-
|
|
519
|
+
xe,
|
|
514
520
|
{
|
|
515
521
|
in: t,
|
|
516
522
|
timeout: 400,
|
|
@@ -529,7 +535,7 @@ function Fn(n, s) {
|
|
|
529
535
|
{
|
|
530
536
|
"aria-hidden": !0,
|
|
531
537
|
className: `${c}-mask`,
|
|
532
|
-
style:
|
|
538
|
+
style: Oe
|
|
533
539
|
}
|
|
534
540
|
)
|
|
535
541
|
}
|
|
@@ -537,7 +543,7 @@ function Fn(n, s) {
|
|
|
537
543
|
/* @__PURE__ */ r(
|
|
538
544
|
"div",
|
|
539
545
|
{
|
|
540
|
-
...
|
|
546
|
+
...Mn(Ye, [
|
|
541
547
|
"content",
|
|
542
548
|
"icon",
|
|
543
549
|
"showIcon",
|
|
@@ -551,30 +557,30 @@ function Fn(n, s) {
|
|
|
551
557
|
]),
|
|
552
558
|
tabIndex: -1,
|
|
553
559
|
ref: (e) => {
|
|
554
|
-
I.current = e,
|
|
560
|
+
I.current = e, Ke();
|
|
555
561
|
},
|
|
556
562
|
className: ne(
|
|
557
563
|
`${c}-wrapper`,
|
|
558
564
|
B ? `${c}-wrapper-mask` : `${c}-wrapper-no-mask`,
|
|
559
565
|
{
|
|
560
|
-
[`${c}-wrapper-align-center`]:
|
|
561
|
-
[`${c}-wrapper-rtl`]:
|
|
566
|
+
[`${c}-wrapper-align-center`]: Ie,
|
|
567
|
+
[`${c}-wrapper-rtl`]: me
|
|
562
568
|
},
|
|
563
|
-
|
|
569
|
+
De
|
|
564
570
|
),
|
|
565
571
|
style: {
|
|
566
|
-
...
|
|
572
|
+
...Le || {},
|
|
567
573
|
// 必须 visible=false,立即设置display:none,否则modal加载react-monaco-editor的时候,编辑器显示异常
|
|
568
|
-
display: t ||
|
|
569
|
-
overflow: !t &&
|
|
574
|
+
display: t || ae ? "block" : "none",
|
|
575
|
+
overflow: !t && ae ? "hidden" : ""
|
|
570
576
|
},
|
|
571
|
-
onKeyDown:
|
|
577
|
+
onKeyDown: Ze,
|
|
572
578
|
onMouseDown: (e) => {
|
|
573
579
|
D.current = e.target === e.currentTarget;
|
|
574
580
|
},
|
|
575
|
-
onClick:
|
|
581
|
+
onClick: je,
|
|
576
582
|
children: /* @__PURE__ */ r(
|
|
577
|
-
|
|
583
|
+
xe,
|
|
578
584
|
{
|
|
579
585
|
in: t,
|
|
580
586
|
timeout: 400,
|
|
@@ -583,28 +589,18 @@ function Fn(n, s) {
|
|
|
583
589
|
unmountOnExit: re,
|
|
584
590
|
mountOnEnter: U,
|
|
585
591
|
onEnter: (e) => {
|
|
586
|
-
e && (
|
|
592
|
+
e && (ce(!0), X.current = te, H(e));
|
|
587
593
|
},
|
|
588
594
|
onEntered: (e) => {
|
|
589
|
-
e && (H(e), X.current = null,
|
|
595
|
+
e && (H(e), X.current = null, Ne?.());
|
|
590
596
|
},
|
|
591
597
|
onExit: (e) => {
|
|
592
598
|
e && (H(e), K.current = !0);
|
|
593
599
|
},
|
|
594
600
|
onExited: (e) => {
|
|
595
|
-
e && (
|
|
601
|
+
e && (ce(!1), H(e), Ee?.(), K.current = !1);
|
|
596
602
|
},
|
|
597
|
-
children:
|
|
598
|
-
xe(se) ? se(be) : be,
|
|
599
|
-
{
|
|
600
|
-
onMouseDown: () => {
|
|
601
|
-
D.current = !1;
|
|
602
|
-
},
|
|
603
|
-
onMouseUp: () => {
|
|
604
|
-
D.current = !1;
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
)
|
|
603
|
+
children: Re?.(he) ?? he
|
|
608
604
|
}
|
|
609
605
|
)
|
|
610
606
|
}
|
|
@@ -615,14 +611,14 @@ function Fn(n, s) {
|
|
|
615
611
|
}
|
|
616
612
|
) : null;
|
|
617
613
|
}
|
|
618
|
-
const x =
|
|
619
|
-
|
|
614
|
+
const x = Me(
|
|
615
|
+
Yn
|
|
620
616
|
);
|
|
621
617
|
x.displayName = "Modal";
|
|
622
|
-
x.config =
|
|
618
|
+
x.config = In;
|
|
623
619
|
x.show = (n) => oe({ ...n, noticeType: "show" });
|
|
624
620
|
x.confirm = (n) => oe(n);
|
|
625
|
-
x.useModal =
|
|
621
|
+
x.useModal = Ln;
|
|
626
622
|
["info", "success", "warning", "error"].forEach((n) => {
|
|
627
623
|
x[n] = (s) => oe({
|
|
628
624
|
...s,
|
|
@@ -640,5 +636,5 @@ export {
|
|
|
640
636
|
x as E,
|
|
641
637
|
oe as c,
|
|
642
638
|
S as n,
|
|
643
|
-
|
|
639
|
+
Ln as u
|
|
644
640
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as x, Fragment as H } from "react/jsx-runtime";
|
|
|
2
2
|
import T from "lodash/isFunction";
|
|
3
3
|
import L from "lodash/isNil";
|
|
4
4
|
import Q, { createContext as S, useContext as y, useRef as q } from "react";
|
|
5
|
-
import { a as B, I as J } from "./
|
|
5
|
+
import { a as B, I as J } from "./CYDaUML7.js";
|
|
6
6
|
import { u as E } from "./FgWHhRFz.js";
|
|
7
7
|
import { u as j } from "./2vdCeheu.js";
|
|
8
8
|
import R from "@unicom-cloud/utils/class-name";
|
|
@@ -4,7 +4,7 @@ import W from "@unicom-cloud/icons/IconUiMinus";
|
|
|
4
4
|
import B from "lodash/isFunction";
|
|
5
5
|
import q from "lodash/isNil";
|
|
6
6
|
import V, { createContext as J, useState as K, useContext as P, useCallback as M, useRef as Q, useEffect as X } from "react";
|
|
7
|
-
import { a as I, I as Y } from "./
|
|
7
|
+
import { a as I, I as Y } from "./CYDaUML7.js";
|
|
8
8
|
import { u as Z } from "./FgWHhRFz.js";
|
|
9
9
|
import { u as S } from "./2vdCeheu.js";
|
|
10
10
|
import w from "@unicom-cloud/utils/class-name";
|
|
@@ -4,7 +4,7 @@ import K from "@unicom-cloud/icons/IconUiLeft";
|
|
|
4
4
|
import Q from "@unicom-cloud/icons/IconUiRight";
|
|
5
5
|
import W from "@unicom-cloud/icons/IconUiUp";
|
|
6
6
|
import Y, { useContext as Z, useState as I, useEffect as _ } from "react";
|
|
7
|
-
import { a as ee } from "./
|
|
7
|
+
import { a as ee } from "./CYDaUML7.js";
|
|
8
8
|
import d from "@unicom-cloud/utils/class-name";
|
|
9
9
|
function z(a) {
|
|
10
10
|
const u = Y.useRef();
|