@unicom-cloud/ui 0.8.112 → 0.8.114
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 +2 -2
- package/Alert.js +2 -2
- package/AutoComplete.js +1 -1
- package/BackTop.js +3 -3
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- 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/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +3 -47
- package/Countdown.js +17 -51
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +15 -51
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +1 -1
- package/Flex.js +16 -52
- 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 +17 -52
- package/List.js +1 -1
- package/Loading.js +15 -51
- package/Marquee.js +24 -46
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +14 -50
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +16 -53
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/RichText.js +12 -13
- package/Segmented.js +16 -51
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +16 -52
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +2 -2
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +18 -54
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +3 -3
- 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 +3 -3
- package/badge/Count.js +1 -1
- package/badge/index.js +2 -2
- 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 +1 -1
- 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/{BiZSULcr.js → BGb_jT2S.js} +640 -672
- package/chunk/{C6A94b7f.js → BcWPf1id.js} +1 -1
- package/chunk/BcdTSJks.js +48 -0
- package/chunk/{CrOzsnI0.js → Bl3hZtxi.js} +1 -1
- package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
- package/chunk/{Cx92e1S8.js → CKojyqln.js} +5 -5
- package/chunk/{C3kH2ES3.js → CRgtPpMG.js} +1 -1
- package/chunk/CVMFAeSw.js +39 -0
- package/chunk/{0BhDjhcd.js → CVjWKHBo.js} +1 -1
- package/chunk/{DfbO4QTS.js → CYPFoLks.js} +4 -4
- package/chunk/{BfVlSL8A.js → Ch4iApRQ.js} +4 -4
- package/chunk/ClNkxEcR.js +154 -0
- package/chunk/{CYssV-zz.js → Cs9GrNJa.js} +66 -100
- package/chunk/{DfUcAhyT.js → CwLSam2p.js} +2 -2
- package/chunk/CxbF1opI.js +231 -0
- package/chunk/Cy26_CKq.js +33 -0
- package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
- package/chunk/{CylbdYce.js → D6I1_o6O.js} +1 -1
- package/chunk/{CtCFA4ht.js → DPDyV8yt.js} +4 -4
- package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
- package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
- package/chunk/{C1vY8016.js → DstheLSK.js} +79 -110
- package/chunk/{KPBMJlOB.js → HFPyZ48d.js} +37 -35
- package/chunk/{DhAvt6tJ.js → efH9HX0H.js} +3 -3
- package/chunk/exc7v_Hl.js +53 -0
- package/chunk/gJsdBcpG.js +10 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- 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 +42 -76
- 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 +47 -83
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +89 -93
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +1 -1
- package/flex/index.js +38 -72
- package/form/Control.js +115 -103
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/index.js +1 -1
- package/form/promisify.js +10 -19
- package/form/store.js +3 -3
- package/form/util.js +62 -52
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +9 -9
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useResizeObserver.js +7 -50
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/addFromIconFontCn.js +1 -1
- package/icon/index.js +2 -2
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +18 -53
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +703 -690
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +29 -20
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +2 -2
- 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 +57 -92
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +27 -63
- package/locale/en-US.js +5 -3
- package/locale/tr-TR.js +5 -3
- package/marquee/index.js +71 -93
- package/marquee-/index.js +74 -96
- package/mentions/index.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +2 -2
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +5 -5
- package/modal/index.js +2 -2
- package/notice/index.js +14 -50
- package/notification/index.js +2 -2
- package/notification/useNotification.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/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 +1243 -92
- 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 +1 -1
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/rich-text/index.js +6332 -77
- package/rich-text/lib/diff/index.d.ts +21 -0
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/segmented/index.js +126 -161
- package/select/Option.js +44 -41
- package/select/Select.js +10 -12
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +2 -2
- package/space/index.js +24 -60
- 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 +2 -2
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +2 -2
- package/table/Table.js +14 -53
- 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 +81 -117
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +3 -3
- 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/getPopupStyle.js +1 -1
- package/trigger/index.js +145 -145
- package/types/common/hooks/src/use-theme/index.d.ts +2 -2
- package/types/common/hooks/useStateWithPromise.d.ts +1 -1
- package/types/common/hooks/useWindowSize.d.ts +4 -4
- package/types/common/utils/dom.d.ts +13 -1
- package/types/common/utils/lodash.d.ts +2 -1
- package/types/common/utils/reactDOM.d.ts +10 -1
- package/types/common/utils/validate.d.ts +2 -1
- 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/form/interface.d.ts +6 -1
- package/types/pc/form/promisify.d.ts +5 -0
- package/types/pc/form/store.d.ts +1 -1
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/index.d.ts +1 -1
- package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
- package/types/pc/list/interface.d.ts +2 -2
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/qr-code/examples/demo.d.ts +1 -0
- package/types/pc/qr-code/examples/download.d.ts +2 -0
- package/types/pc/qr-code/examples/full.d.ts +2 -0
- package/types/pc/qr-code/examples/image.d.ts +2 -0
- package/types/pc/qr-code/index.d.ts +2 -0
- package/types/pc/qr-code/src/index.d.ts +116 -0
- package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
- package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
- 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/{core → lib/core}/editor.d.ts +1 -1
- package/types/pc/rich-text/{core → lib/core}/rich.d.ts +3 -7
- package/types/pc/rich-text/{core → lib/core}/selection.d.ts +1 -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/{ui → lib/ui}/icons.d.ts +5 -1
- package/types/pc/rich-text/{ui → lib/ui}/picker.d.ts +1 -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/index.d.ts +2 -2
- package/types/pc/utils/validate.d.ts +1 -1
- package/typography/Base.js +1 -1
- 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/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +1 -1
- package/upload/request_.js +1972 -41
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/date.js +1 -0
- package/utils/dom.js +1 -1
- package/utils/index.js +248 -236
- package/utils/lodash.js +33 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/validate.js +15 -5
- 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/BCmfDFV4.js +0 -4237
- package/chunk/BG6j6Ct7.js +0 -30
- package/chunk/C5CbL5ku.js +0 -56
- package/chunk/CXrVhA6-.js +0 -54
- package/chunk/DMv8Hn4u.js +0 -231
- package/chunk/DsuIQH0F.js +0 -200
- package/chunk/d1c9z8T1.js +0 -49
- package/chunk/vP3qfmKM.js +0 -84
- package/rich-text/core.js +0 -11
- package/rich-text/rich.js +0 -1347
- 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/reactTransitionGroup.d.ts +0 -1
- package/types/common/utils/uuid.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/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}/scroll.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}/emitter.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}/theme.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/parent.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/{themes → lib/themes}/base.d.ts +0 -0
- /package/types/pc/rich-text/{themes → lib/themes}/pqb.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
- /package/types/pc/rich-text/{ui → lib/ui}/tooltip.d.ts +0 -0
|
@@ -20,7 +20,7 @@ import { setConfigProviderProps as ct } from "../modal/config.js";
|
|
|
20
20
|
import re from "lodash/isNumber";
|
|
21
21
|
import Ie from "lodash/isUndefined";
|
|
22
22
|
import { createPortal as lt } from "react-dom";
|
|
23
|
-
import { P as Ee } from "./
|
|
23
|
+
import { P as Ee } from "./DQ8_XXrH.js";
|
|
24
24
|
import b from "@unicom-cloud/utils/class-name";
|
|
25
25
|
import at from "@unicom-cloud/icons/IconUiEmpty";
|
|
26
26
|
import ft from "lodash/isArray";
|
|
@@ -28,55 +28,24 @@ import { t as mt } from "./CTMmW21t.js";
|
|
|
28
28
|
import dt from "../locale/zh-CN.js";
|
|
29
29
|
import _e from "../notification/withNotification.js";
|
|
30
30
|
import "./DsaQZE4X.js";
|
|
31
|
-
import "@unicom-cloud/utils/date";
|
|
32
|
-
import "@unicom-cloud/utils/case-name";
|
|
33
|
-
import "@unicom-cloud/utils/clipboard-copy";
|
|
34
|
-
import "./DS_deHpN.js";
|
|
35
|
-
import "./d1c9z8T1.js";
|
|
36
|
-
import "@unicom-cloud/utils/emitter";
|
|
37
|
-
import "@unicom-cloud/utils/file/fileToURL";
|
|
38
|
-
import "lodash/escapeRegExp";
|
|
39
|
-
import "lodash/isString";
|
|
40
|
-
import "lodash/isFunction";
|
|
41
|
-
import "lodash/throttle";
|
|
42
|
-
import "lodash/camelCase";
|
|
43
|
-
import "lodash/capitalize";
|
|
44
|
-
import "lodash/cloneDeep";
|
|
45
|
-
import "lodash/debounce";
|
|
46
|
-
import "lodash/get";
|
|
47
|
-
import "lodash/has";
|
|
48
|
-
import "lodash/kebabCase";
|
|
49
|
-
import "lodash/mergeWith";
|
|
50
|
-
import "lodash/set";
|
|
51
|
-
import "lodash/setWith";
|
|
52
|
-
import "lodash/snakeCase";
|
|
53
|
-
import "lodash/startCase";
|
|
54
|
-
import "lodash/uniq";
|
|
55
|
-
import "lodash/upperFirst";
|
|
56
|
-
import "@unicom-cloud/utils/math";
|
|
57
|
-
import "@unicom-cloud/utils/pinyin";
|
|
58
|
-
import "./CXrVhA6-.js";
|
|
59
|
-
import "@unicom-cloud/utils/file/saveAs";
|
|
60
|
-
import "@unicom-cloud/utils/screenfull";
|
|
61
|
-
import "@unicom-cloud/utils/tinycolor";
|
|
62
|
-
import "@unicom-cloud/utils/ui-color";
|
|
63
|
-
import "react-is";
|
|
64
|
-
import "@unicom-cloud/utils/tree";
|
|
65
|
-
import { isString as we, isNumber as L, isUndefined as te } from "@unicom-cloud/utils/is";
|
|
66
|
-
import "uuid";
|
|
67
|
-
import "./hc_ufgVf.js";
|
|
68
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
69
31
|
import "@unicom-cloud/utils/constant/platform";
|
|
70
32
|
import "./CdXR6dj7.js";
|
|
71
33
|
import "@unicom-cloud/utils/js-cookie";
|
|
72
34
|
import "dayjs";
|
|
73
|
-
import "
|
|
35
|
+
import "lodash/debounce";
|
|
36
|
+
import "@unicom-cloud/utils/screenfull";
|
|
37
|
+
import "./ClNkxEcR.js";
|
|
38
|
+
import "lodash/throttle";
|
|
74
39
|
import "@unicom-cloud/utils/query-string";
|
|
75
40
|
import "react-router";
|
|
76
41
|
import "lodash/isEqualWith";
|
|
77
|
-
import "
|
|
42
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
43
|
+
import "./BcdTSJks.js";
|
|
44
|
+
import "./CEAeR6xB.js";
|
|
45
|
+
import "./exc7v_Hl.js";
|
|
78
46
|
import "@unicom-cloud/utils/constant";
|
|
79
|
-
|
|
47
|
+
import { isString as we, isNumber as L, isUndefined as te } from "@unicom-cloud/utils/is";
|
|
48
|
+
function ut(e) {
|
|
80
49
|
if (!Ye(e)) return;
|
|
81
50
|
const { prefix: t = We, dir: r = "ltr" } = e, l = et;
|
|
82
51
|
l.setAttribute("dir", r), l.classList.remove("ltr"), l.classList.remove("rtl"), l.classList.add(r);
|
|
@@ -86,17 +55,17 @@ const $e = {
|
|
|
86
55
|
small: 8,
|
|
87
56
|
medium: 16,
|
|
88
57
|
large: 24
|
|
89
|
-
},
|
|
58
|
+
}, pt = {
|
|
90
59
|
size: "small",
|
|
91
60
|
direction: "horizontal"
|
|
92
61
|
}, ae = j(
|
|
93
62
|
(e, t) => {
|
|
94
|
-
const r = Z(e,
|
|
63
|
+
const r = Z(e, pt, {}), {
|
|
95
64
|
className: l,
|
|
96
65
|
style: a,
|
|
97
66
|
children: n,
|
|
98
67
|
gap: i,
|
|
99
|
-
size:
|
|
68
|
+
size: p,
|
|
100
69
|
direction: c = "horizontal",
|
|
101
70
|
align: s,
|
|
102
71
|
alignItems: m,
|
|
@@ -104,8 +73,8 @@ const $e = {
|
|
|
104
73
|
wrap: C,
|
|
105
74
|
split: $,
|
|
106
75
|
rtl: g,
|
|
107
|
-
...
|
|
108
|
-
} = r, f = `${ye}-space`, x = i ??
|
|
76
|
+
...u
|
|
77
|
+
} = r, f = `${ye}-space`, x = i ?? p, N = m ?? s ?? (c === "horizontal" ? "center" : ""), h = b(
|
|
109
78
|
f,
|
|
110
79
|
{
|
|
111
80
|
[`${f}-${c}`]: c,
|
|
@@ -132,7 +101,7 @@ const $e = {
|
|
|
132
101
|
})(),
|
|
133
102
|
...a
|
|
134
103
|
}, J = mt(n);
|
|
135
|
-
return /* @__PURE__ */ o("div", { ref: t, className: h, style: V, ...
|
|
104
|
+
return /* @__PURE__ */ o("div", { ref: t, className: h, style: V, ...u, children: J.map((v, T) => {
|
|
136
105
|
const K = v?.key ?? T, G = $ != null && T > 0;
|
|
137
106
|
return /* @__PURE__ */ A(Be, { children: [
|
|
138
107
|
G && /* @__PURE__ */ o("div", { className: `${f}-item-split`, children: $ }),
|
|
@@ -156,9 +125,9 @@ const Ct = Object.assign(ae, {
|
|
|
156
125
|
// 默认描述文本
|
|
157
126
|
icon: n,
|
|
158
127
|
imgSrc: i,
|
|
159
|
-
prefixCls:
|
|
128
|
+
prefixCls: p,
|
|
160
129
|
...c
|
|
161
|
-
} = e, s = `${ye}-empty`, m =
|
|
130
|
+
} = e, s = `${ye}-empty`, m = p ?? s, d = typeof a == "string" ? a : "empty", C = () => i ? /* @__PURE__ */ o(
|
|
162
131
|
"img",
|
|
163
132
|
{
|
|
164
133
|
className: b(`${s}-img`, `${m}-img`),
|
|
@@ -196,8 +165,8 @@ function xt(e, t) {
|
|
|
196
165
|
e,
|
|
197
166
|
{},
|
|
198
167
|
a?.Empty
|
|
199
|
-
), { ...i } = n,
|
|
200
|
-
return /* @__PURE__ */ o(Te, { ref: t, prefixCls:
|
|
168
|
+
), { ...i } = n, p = r?.("empty"), c = l?.Empty?.noData;
|
|
169
|
+
return /* @__PURE__ */ o(Te, { ref: t, prefixCls: p, description: c, ...i });
|
|
201
170
|
}
|
|
202
171
|
const ke = ve(j(xt));
|
|
203
172
|
ke.displayName = "Empty";
|
|
@@ -225,7 +194,7 @@ function $t(e, t) {
|
|
|
225
194
|
disabled: a,
|
|
226
195
|
prefix: n,
|
|
227
196
|
size: i = "default",
|
|
228
|
-
...
|
|
197
|
+
...p
|
|
229
198
|
} = e, { getPrefixCls: c } = D(R), s = c?.("icon-hover"), m = S();
|
|
230
199
|
return le(t, () => ({
|
|
231
200
|
getRootDOMNode: () => m.current
|
|
@@ -243,7 +212,7 @@ function $t(e, t) {
|
|
|
243
212
|
l
|
|
244
213
|
),
|
|
245
214
|
onClick: e.onClick,
|
|
246
|
-
...
|
|
215
|
+
...p,
|
|
247
216
|
children: r
|
|
248
217
|
}
|
|
249
218
|
);
|
|
@@ -263,14 +232,14 @@ function yt(e, t) {
|
|
|
263
232
|
e,
|
|
264
233
|
Nt,
|
|
265
234
|
l?.Notice
|
|
266
|
-
), i = D(R),
|
|
235
|
+
), i = D(R), p = r?.("notice");
|
|
267
236
|
S();
|
|
268
237
|
const c = S(), s = S(), m = S(), {
|
|
269
238
|
title: d,
|
|
270
239
|
content: C,
|
|
271
240
|
showIcon: $,
|
|
272
241
|
className: g,
|
|
273
|
-
style:
|
|
242
|
+
style: u,
|
|
274
243
|
type: f,
|
|
275
244
|
btn: x,
|
|
276
245
|
icon: N,
|
|
@@ -292,8 +261,8 @@ function yt(e, t) {
|
|
|
292
261
|
);
|
|
293
262
|
let G = "closable" in n ? y : !0, W = $;
|
|
294
263
|
f === "normal" && !N && (W = !1);
|
|
295
|
-
const
|
|
296
|
-
T && (
|
|
264
|
+
const ue = { ...i };
|
|
265
|
+
T && (ue.prefixCls = T);
|
|
297
266
|
function Xe() {
|
|
298
267
|
return s.current;
|
|
299
268
|
}
|
|
@@ -309,7 +278,7 @@ function yt(e, t) {
|
|
|
309
278
|
function X() {
|
|
310
279
|
n.onClose?.(n.id);
|
|
311
280
|
}
|
|
312
|
-
function
|
|
281
|
+
function pe() {
|
|
313
282
|
const { showIcon: k, icon: q, type: ee, iconPrefix: Ce } = n;
|
|
314
283
|
let I;
|
|
315
284
|
if (q)
|
|
@@ -359,7 +328,7 @@ function yt(e, t) {
|
|
|
359
328
|
}), []);
|
|
360
329
|
let F;
|
|
361
330
|
return O === "message" && (G = y, F = /* @__PURE__ */ A(ge, { children: [
|
|
362
|
-
W &&
|
|
331
|
+
W && pe(),
|
|
363
332
|
/* @__PURE__ */ o("span", { className: `${h}-content`, children: C }),
|
|
364
333
|
G && (v !== void 0 ? /* @__PURE__ */ o("span", { onClick: X, className: `${h}-close-btn`, children: v }) : /* @__PURE__ */ o(
|
|
365
334
|
Ne,
|
|
@@ -371,7 +340,7 @@ function yt(e, t) {
|
|
|
371
340
|
}
|
|
372
341
|
))
|
|
373
342
|
] })), O === "notification" && (F = /* @__PURE__ */ A(ge, { children: [
|
|
374
|
-
W && /* @__PURE__ */ o("div", { className: `${h}-left`, children:
|
|
343
|
+
W && /* @__PURE__ */ o("div", { className: `${h}-left`, children: pe() }),
|
|
375
344
|
/* @__PURE__ */ A("div", { className: `${h}-right`, children: [
|
|
376
345
|
d && /* @__PURE__ */ o("div", { className: `${h}-title`, children: d }),
|
|
377
346
|
/* @__PURE__ */ o("div", { className: `${h}-content`, children: C }),
|
|
@@ -392,14 +361,14 @@ function yt(e, t) {
|
|
|
392
361
|
)
|
|
393
362
|
}
|
|
394
363
|
))
|
|
395
|
-
] })), F && (F = /* @__PURE__ */ o(de, { ...
|
|
364
|
+
] })), F && (F = /* @__PURE__ */ o(de, { ...ue, childrenName: "notice", children: /* @__PURE__ */ o(
|
|
396
365
|
"div",
|
|
397
366
|
{
|
|
398
367
|
ref: s,
|
|
399
|
-
className: `${
|
|
368
|
+
className: `${p}-${O}`,
|
|
400
369
|
onMouseEnter: qe,
|
|
401
370
|
onMouseLeave: Qe,
|
|
402
|
-
children: /* @__PURE__ */ o("div", { className: K, style:
|
|
371
|
+
children: /* @__PURE__ */ o("div", { className: K, style: u, role: "alert", children: F })
|
|
403
372
|
}
|
|
404
373
|
) })), F;
|
|
405
374
|
}
|
|
@@ -414,13 +383,13 @@ function Ue(e, t) {
|
|
|
414
383
|
(s) => s.filter((m) => c !== m)
|
|
415
384
|
);
|
|
416
385
|
}
|
|
417
|
-
function
|
|
386
|
+
function p() {
|
|
418
387
|
return r;
|
|
419
388
|
}
|
|
420
389
|
return le(t, () => ({
|
|
421
390
|
addInstance: n,
|
|
422
391
|
removeInstance: i,
|
|
423
|
-
getContextConfig:
|
|
392
|
+
getContextConfig: p
|
|
424
393
|
})), ie.Children.map(
|
|
425
394
|
l,
|
|
426
395
|
(c, s) => ie.cloneElement(c, { key: s })
|
|
@@ -434,7 +403,7 @@ function vt(e = {}) {
|
|
|
434
403
|
duration: r = 3e3,
|
|
435
404
|
prefixCls: l,
|
|
436
405
|
getContainer: a
|
|
437
|
-
} = e, n = S(void 0), i = /* @__PURE__ */ o(Fe, { ref: n }),
|
|
406
|
+
} = e, n = S(void 0), i = /* @__PURE__ */ o(Fe, { ref: n }), p = {};
|
|
438
407
|
let c;
|
|
439
408
|
function s(d) {
|
|
440
409
|
let C, $;
|
|
@@ -442,10 +411,10 @@ function vt(e = {}) {
|
|
|
442
411
|
const N = n.current.getContextConfig();
|
|
443
412
|
$ = N.rtl, C = N.prefixCls;
|
|
444
413
|
}
|
|
445
|
-
const g = l || C,
|
|
414
|
+
const g = l || C, u = me(d.position, $), f = {
|
|
446
415
|
duration: r,
|
|
447
416
|
...d
|
|
448
|
-
}, x = u
|
|
417
|
+
}, x = p[u];
|
|
449
418
|
if (x) {
|
|
450
419
|
if (x.notices.length >= t) {
|
|
451
420
|
const N = x.notices[0];
|
|
@@ -461,11 +430,11 @@ function vt(e = {}) {
|
|
|
461
430
|
rtl: $,
|
|
462
431
|
getContainer: a,
|
|
463
432
|
ref: (N) => {
|
|
464
|
-
u
|
|
433
|
+
p[u] = N;
|
|
465
434
|
}
|
|
466
435
|
}
|
|
467
436
|
), n.current.addInstance(c);
|
|
468
|
-
return u
|
|
437
|
+
return p[u];
|
|
469
438
|
}
|
|
470
439
|
const m = {};
|
|
471
440
|
return fe.forEach((d) => {
|
|
@@ -488,7 +457,7 @@ function me(e, t) {
|
|
|
488
457
|
return Ie(e) && (e = t || H ? "topLeft" : "topRight"), e;
|
|
489
458
|
}
|
|
490
459
|
function bt(e) {
|
|
491
|
-
const { prefixCls: t, rtl: r, getContainer: l, notices: a } = e, n = Ie(r) ? H : r, i = me(e.position, n),
|
|
460
|
+
const { prefixCls: t, rtl: r, getContainer: l, notices: a } = e, n = Ie(r) ? H : r, i = me(e.position, n), p = t || je, c = p ? `${p}-notification` : "pqb-notification";
|
|
492
461
|
let s;
|
|
493
462
|
i === "topLeft" || i === "bottomLeft" ? s = "slideNoticeLeft" : s = "slideNoticeRight";
|
|
494
463
|
const m = b(
|
|
@@ -497,10 +466,10 @@ function bt(e) {
|
|
|
497
466
|
{ [`${c}-wrapper-rtl`]: H }
|
|
498
467
|
), d = l?.();
|
|
499
468
|
function C(g) {
|
|
500
|
-
const
|
|
501
|
-
|
|
502
|
-
...
|
|
503
|
-
style: { ...
|
|
469
|
+
const u = a.find((f) => f.id === g);
|
|
470
|
+
u && e.update({
|
|
471
|
+
...u,
|
|
472
|
+
style: { ...u.style, opacity: 0 }
|
|
504
473
|
}), setTimeout(() => {
|
|
505
474
|
e.remove(g);
|
|
506
475
|
}, 200);
|
|
@@ -516,14 +485,14 @@ function bt(e) {
|
|
|
516
485
|
exit: 300
|
|
517
486
|
},
|
|
518
487
|
classNames: s,
|
|
519
|
-
onExit: (
|
|
520
|
-
|
|
488
|
+
onExit: (u) => {
|
|
489
|
+
u && (u.style.height = `${u.scrollHeight}px`);
|
|
521
490
|
},
|
|
522
|
-
onExiting: (
|
|
523
|
-
|
|
491
|
+
onExiting: (u) => {
|
|
492
|
+
u && (u.style.height = 0);
|
|
524
493
|
},
|
|
525
|
-
onExited: (
|
|
526
|
-
|
|
494
|
+
onExited: (u) => {
|
|
495
|
+
u && (u.style.height = 0, g.onClose?.());
|
|
527
496
|
},
|
|
528
497
|
children: /* @__PURE__ */ o(
|
|
529
498
|
Se,
|
|
@@ -531,8 +500,8 @@ function bt(e) {
|
|
|
531
500
|
...g,
|
|
532
501
|
onClose: C,
|
|
533
502
|
prefixCls: c,
|
|
534
|
-
iconPrefix:
|
|
535
|
-
classPrefixCls:
|
|
503
|
+
iconPrefix: p,
|
|
504
|
+
classPrefixCls: p,
|
|
536
505
|
noticeType: "notification",
|
|
537
506
|
rtl: n
|
|
538
507
|
}
|
|
@@ -582,8 +551,8 @@ P.addInstance = (e) => {
|
|
|
582
551
|
...l,
|
|
583
552
|
ref: (i) => {
|
|
584
553
|
if (i) {
|
|
585
|
-
for (let
|
|
586
|
-
i.add(Q[
|
|
554
|
+
for (let p = 0; p < Q.length; p++)
|
|
555
|
+
i.add(Q[p]);
|
|
587
556
|
Q = [], w[t] = i;
|
|
588
557
|
}
|
|
589
558
|
}
|
|
@@ -604,7 +573,7 @@ function Pt(e = {}) {
|
|
|
604
573
|
() => /* @__PURE__ */ o(Fe, { ref: a }),
|
|
605
574
|
[]
|
|
606
575
|
), i = {};
|
|
607
|
-
let
|
|
576
|
+
let p;
|
|
608
577
|
function c(m) {
|
|
609
578
|
let d, C;
|
|
610
579
|
if (a.current) {
|
|
@@ -615,14 +584,14 @@ function Pt(e = {}) {
|
|
|
615
584
|
position: "top",
|
|
616
585
|
duration: r,
|
|
617
586
|
...m
|
|
618
|
-
}, { position:
|
|
587
|
+
}, { position: u, transitionClassNames: f } = g;
|
|
619
588
|
let x;
|
|
620
|
-
const N = i[
|
|
589
|
+
const N = i[u];
|
|
621
590
|
if (N) {
|
|
622
591
|
const y = N.notices;
|
|
623
592
|
y.length >= t ? (x = y[0].id, N.shift(), N.add({ ...g, id: x })) : x = N.add(g);
|
|
624
593
|
} else
|
|
625
|
-
|
|
594
|
+
p = /* @__PURE__ */ o(
|
|
626
595
|
E,
|
|
627
596
|
{
|
|
628
597
|
...g,
|
|
@@ -630,12 +599,12 @@ function Pt(e = {}) {
|
|
|
630
599
|
prefixCls: $,
|
|
631
600
|
rtl: C,
|
|
632
601
|
ref: (y) => {
|
|
633
|
-
i[
|
|
602
|
+
i[u] = y;
|
|
634
603
|
}
|
|
635
604
|
}
|
|
636
|
-
), a.current.addInstance(
|
|
605
|
+
), a.current.addInstance(p);
|
|
637
606
|
return () => {
|
|
638
|
-
i[
|
|
607
|
+
i[u]?.remove?.(x);
|
|
639
608
|
};
|
|
640
609
|
}
|
|
641
610
|
const s = {};
|
|
@@ -659,15 +628,15 @@ function It(e) {
|
|
|
659
628
|
rtl: a,
|
|
660
629
|
closable: n,
|
|
661
630
|
notices: i,
|
|
662
|
-
position:
|
|
631
|
+
position: p
|
|
663
632
|
} = e;
|
|
664
|
-
function c(
|
|
665
|
-
const f = e.notices.find((x) => x.id ===
|
|
633
|
+
function c(u) {
|
|
634
|
+
const f = e.notices.find((x) => x.id === u);
|
|
666
635
|
f && e.update({
|
|
667
636
|
...f,
|
|
668
637
|
style: { ...f.style, opacity: 0 }
|
|
669
638
|
}), setTimeout(() => {
|
|
670
|
-
e.remove(
|
|
639
|
+
e.remove(u);
|
|
671
640
|
}, 100);
|
|
672
641
|
}
|
|
673
642
|
_(() => (e.add(e), () => {
|
|
@@ -678,9 +647,9 @@ function It(e) {
|
|
|
678
647
|
exit: L(r?.exit) ? r?.exit : 300
|
|
679
648
|
}, g = b(
|
|
680
649
|
`${C}-wrapper`,
|
|
681
|
-
`${C}-wrapper-${
|
|
650
|
+
`${C}-wrapper-${p}`
|
|
682
651
|
);
|
|
683
|
-
return /* @__PURE__ */ o("div", { className: g, children: /* @__PURE__ */ o(be, { component: null, children: i.map((
|
|
652
|
+
return /* @__PURE__ */ o("div", { className: g, children: /* @__PURE__ */ o(be, { component: null, children: i.map((u) => /* @__PURE__ */ o(
|
|
684
653
|
Ee,
|
|
685
654
|
{
|
|
686
655
|
timeout: $,
|
|
@@ -692,12 +661,12 @@ function It(e) {
|
|
|
692
661
|
f && (f.style.height = 0);
|
|
693
662
|
},
|
|
694
663
|
onExited: (f) => {
|
|
695
|
-
f && (f.style.height = 0,
|
|
664
|
+
f && (f.style.height = 0, u.onClose?.());
|
|
696
665
|
},
|
|
697
666
|
children: /* @__PURE__ */ o(
|
|
698
667
|
Se,
|
|
699
668
|
{
|
|
700
|
-
...
|
|
669
|
+
...u,
|
|
701
670
|
prefixCls: C,
|
|
702
671
|
classPrefixCls: s,
|
|
703
672
|
iconPrefix: s,
|
|
@@ -708,7 +677,7 @@ function It(e) {
|
|
|
708
677
|
}
|
|
709
678
|
)
|
|
710
679
|
},
|
|
711
|
-
|
|
680
|
+
u.id
|
|
712
681
|
)) }) });
|
|
713
682
|
}
|
|
714
683
|
const E = _e(It);
|
|
@@ -788,7 +757,7 @@ function de(e) {
|
|
|
788
757
|
locale: a,
|
|
789
758
|
rtl: n,
|
|
790
759
|
effectGlobalNotice: i = !0,
|
|
791
|
-
effectGlobalModal:
|
|
760
|
+
effectGlobalModal: p = !0
|
|
792
761
|
} = t, {
|
|
793
762
|
children: c,
|
|
794
763
|
isRootConfig: s,
|
|
@@ -800,24 +769,24 @@ function de(e) {
|
|
|
800
769
|
const C = xe({}, ne, d, {
|
|
801
770
|
getPrefixCls: $
|
|
802
771
|
});
|
|
803
|
-
function $(
|
|
804
|
-
return `${f || l || M}-${
|
|
772
|
+
function $(u, f) {
|
|
773
|
+
return `${f || l || M}-${u}`;
|
|
805
774
|
}
|
|
806
|
-
_(() => (s &&
|
|
775
|
+
_(() => (s && ut({ prefix: M, dir: n ? "rtl" : "ltr" }), () => {
|
|
807
776
|
}), [s, n]), _(() => (tt({ prefix: M, ...r }), () => {
|
|
808
777
|
}), [r]), _(() => {
|
|
809
778
|
i && (E.config({ prefixCls: l, rtl: n }), P.config({ prefixCls: l, rtl: n }));
|
|
810
779
|
}, [l, n, i]), _(() => {
|
|
811
|
-
|
|
812
|
-
}, [a, l, n,
|
|
780
|
+
p && ct({ locale: a, prefixCls: l, rtl: n });
|
|
781
|
+
}, [a, l, n, p]);
|
|
813
782
|
let g = c;
|
|
814
783
|
return l && l !== M && (g = /* @__PURE__ */ o(oe.Provider, { value: { prefixCls: l }, children: c })), /* @__PURE__ */ o(R.Provider, { value: C, children: g });
|
|
815
784
|
}
|
|
816
785
|
de.ConfigContext = R;
|
|
817
786
|
de.displayName = "ConfigProvider";
|
|
818
|
-
const
|
|
787
|
+
const vn = R.Consumer;
|
|
819
788
|
export {
|
|
820
|
-
|
|
789
|
+
vn as C,
|
|
821
790
|
ke as E,
|
|
822
791
|
$e as G,
|
|
823
792
|
Ne as I,
|
|
@@ -2,17 +2,17 @@ import { jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { b as W } from "./-PX9OR3r.js";
|
|
3
3
|
import j from "lodash/isPlainObject";
|
|
4
4
|
import k from "lodash/merge";
|
|
5
|
-
import { useRef as
|
|
6
|
-
import { a as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { o as
|
|
11
|
-
import { FormProviderContext as
|
|
12
|
-
import
|
|
13
|
-
import { ID_INPUT_SUFFIX as
|
|
14
|
-
function
|
|
15
|
-
const e = new
|
|
5
|
+
import { useRef as S, useEffect as b, forwardRef as G, useContext as h, useImperativeHandle as _ } from "react";
|
|
6
|
+
import { a as A, b as U } from "./DstheLSK.js";
|
|
7
|
+
import { u as H } from "./BO_5qdS_.js";
|
|
8
|
+
import { u as X } from "./FgWHhRFz.js";
|
|
9
|
+
import B from "@unicom-cloud/utils/class-name";
|
|
10
|
+
import { o as J } from "./BKKEev13.js";
|
|
11
|
+
import { FormProviderContext as K, FormContext as L } from "../form/context.js";
|
|
12
|
+
import Q from "../form/store.js";
|
|
13
|
+
import { ID_INPUT_SUFFIX as Y } from "../form/util.js";
|
|
14
|
+
function Z() {
|
|
15
|
+
const e = new Q();
|
|
16
16
|
return {
|
|
17
17
|
getFieldsValue: e.getFieldsValue,
|
|
18
18
|
getFieldValue: e.getFieldValue,
|
|
@@ -54,11 +54,11 @@ function Y() {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
const s =
|
|
57
|
+
function ee(e) {
|
|
58
|
+
const s = S(e);
|
|
59
59
|
s.current || (e ? s.current = e : o());
|
|
60
60
|
function o() {
|
|
61
|
-
s.current =
|
|
61
|
+
s.current = Z();
|
|
62
62
|
}
|
|
63
63
|
return b(() => () => {
|
|
64
64
|
}, []), [s.current, o];
|
|
@@ -67,7 +67,7 @@ function F(e, s) {
|
|
|
67
67
|
const o = s.replace(/[[.]/g, "_").replace(/\]/g, "");
|
|
68
68
|
return e ? `${e}-${o}` : `${o}`;
|
|
69
69
|
}
|
|
70
|
-
const
|
|
70
|
+
const te = {
|
|
71
71
|
layout: "horizontal",
|
|
72
72
|
labelCol: { span: 5, offset: 0 },
|
|
73
73
|
labelAlign: "right",
|
|
@@ -75,12 +75,12 @@ const ee = {
|
|
|
75
75
|
requiredSymbol: !0,
|
|
76
76
|
wrapper: "form",
|
|
77
77
|
validateTrigger: "onChange"
|
|
78
|
-
},
|
|
79
|
-
const o =
|
|
78
|
+
}, re = (e, s) => {
|
|
79
|
+
const o = h(A), l = h(K), m = S(null), [n] = ee(
|
|
80
80
|
e.form
|
|
81
|
-
), r =
|
|
81
|
+
), r = X(
|
|
82
82
|
e,
|
|
83
|
-
|
|
83
|
+
te,
|
|
84
84
|
o.componentConfig?.Form
|
|
85
85
|
), {
|
|
86
86
|
layout: g,
|
|
@@ -96,9 +96,10 @@ const ee = {
|
|
|
96
96
|
validateTrigger: E,
|
|
97
97
|
prefixCls: M,
|
|
98
98
|
validateMessages: N,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
schemaOptions: R,
|
|
100
|
+
...z
|
|
101
|
+
} = r, a = M || o.getPrefixCls?.("form"), q = o.rtl, f = "size" in r ? r.size : o.size, C = n.getInnerMethods(!0);
|
|
102
|
+
H(() => {
|
|
102
103
|
C.innerSetInitialValues(r.initialValues);
|
|
103
104
|
}, []), b(() => {
|
|
104
105
|
let t;
|
|
@@ -110,7 +111,7 @@ const ee = {
|
|
|
110
111
|
`#${F(V, t)}`
|
|
111
112
|
);
|
|
112
113
|
d || (d = u.querySelector(
|
|
113
|
-
`#${F(V, t)}${
|
|
114
|
+
`#${F(V, t)}${Y}`
|
|
114
115
|
)), d && W(d, {
|
|
115
116
|
behavior: "smooth",
|
|
116
117
|
block: "nearest",
|
|
@@ -142,7 +143,7 @@ const ee = {
|
|
|
142
143
|
return l?.onFormReset?.(r.id, t), i;
|
|
143
144
|
}
|
|
144
145
|
});
|
|
145
|
-
const
|
|
146
|
+
const D = {
|
|
146
147
|
requiredSymbol: x,
|
|
147
148
|
labelAlign: $,
|
|
148
149
|
disabled: T,
|
|
@@ -158,18 +159,19 @@ const ee = {
|
|
|
158
159
|
o.locale?.Form?.validateMessages,
|
|
159
160
|
N
|
|
160
161
|
),
|
|
162
|
+
schemaOptions: R,
|
|
161
163
|
getFormElementId: (t) => F(p, t)
|
|
162
|
-
},
|
|
163
|
-
return
|
|
164
|
+
}, O = L;
|
|
165
|
+
return _(s, () => ({
|
|
164
166
|
...n,
|
|
165
167
|
getRootDOMNode() {
|
|
166
168
|
return m.current;
|
|
167
169
|
}
|
|
168
|
-
})), /* @__PURE__ */ c(
|
|
170
|
+
})), /* @__PURE__ */ c(U, { ...o, childrenName: "Form", size: f, children: /* @__PURE__ */ c(O.Provider, { value: D, children: /* @__PURE__ */ c(
|
|
169
171
|
v,
|
|
170
172
|
{
|
|
171
173
|
ref: m,
|
|
172
|
-
...
|
|
174
|
+
...J(z, [
|
|
173
175
|
"form",
|
|
174
176
|
"size",
|
|
175
177
|
"initialValues",
|
|
@@ -182,11 +184,11 @@ const ee = {
|
|
|
182
184
|
"onReset"
|
|
183
185
|
]),
|
|
184
186
|
...r.wrapperProps,
|
|
185
|
-
className:
|
|
187
|
+
className: B(
|
|
186
188
|
a,
|
|
187
189
|
`${a}-${g}`,
|
|
188
190
|
`${a}-size-${f}`,
|
|
189
|
-
{ [`${a}-rtl`]:
|
|
191
|
+
{ [`${a}-rtl`]: q },
|
|
190
192
|
y
|
|
191
193
|
),
|
|
192
194
|
style: r.style,
|
|
@@ -200,10 +202,10 @@ const ee = {
|
|
|
200
202
|
children: r.children
|
|
201
203
|
}
|
|
202
204
|
) }) });
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
+
}, oe = G(re);
|
|
206
|
+
oe.displayName = "Form";
|
|
205
207
|
export {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
208
|
+
oe as F,
|
|
209
|
+
Z as g,
|
|
210
|
+
ee as u
|
|
209
211
|
};
|
|
@@ -5,12 +5,12 @@ import Z from "@unicom-cloud/icons/IconUiFile";
|
|
|
5
5
|
import ee from "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import P from "lodash/isFunction";
|
|
7
7
|
import te, { useContext as I, useRef as U, useMemo as F, useEffect as M, forwardRef as ne, useState as ie, useCallback as K } from "react";
|
|
8
|
-
import { C as ae } from "./
|
|
9
|
-
import { a as Y, I as re } from "./
|
|
8
|
+
import { C as ae } from "./CRgtPpMG.js";
|
|
9
|
+
import { a as Y, I as re } from "./DstheLSK.js";
|
|
10
10
|
import E from "@unicom-cloud/utils/class-name";
|
|
11
11
|
import oe from "../utils/throttleByRaf.js";
|
|
12
12
|
import se from "lodash/isNumber";
|
|
13
|
-
import { P as le } from "./
|
|
13
|
+
import { P as le } from "./DQ8_XXrH.js";
|
|
14
14
|
import ce from "../virtual-list/VirtualList.js";
|
|
15
15
|
import { TreeContext as j } from "../tree/Context.js";
|
|
16
16
|
function de(e) {
|