@unicom-cloud/ui 0.8.112 → 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 +1 -1
- 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 +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 +16 -50
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +14 -50
- 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 +15 -51
- 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 +16 -51
- package/List.js +1 -1
- package/Loading.js +14 -50
- package/Marquee.js +23 -46
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +13 -49
- package/Notification.js +1 -1
- 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 +14 -51
- 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 +15 -50
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +15 -51
- 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 +17 -53
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/affix/index.js +1 -1
- 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 +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/{0BhDjhcd.js → 3t4FwEoB.js} +1 -1
- package/chunk/{KPBMJlOB.js → BHAu6wbC.js} +1 -1
- package/chunk/{DhAvt6tJ.js → Bcl7dWlJ.js} +2 -2
- package/chunk/{CrOzsnI0.js → Bl3hZtxi.js} +1 -1
- package/chunk/{BfVlSL8A.js → Bzx5BueA.js} +3 -3
- package/chunk/CVMFAeSw.js +39 -0
- package/chunk/{C1vY8016.js → CYDaUML7.js} +77 -108
- package/chunk/{CYssV-zz.js → CbXCgtzv.js} +65 -99
- package/chunk/ClNkxEcR.js +154 -0
- package/chunk/{DfUcAhyT.js → CwLSam2p.js} +2 -2
- package/chunk/Cy26_CKq.js +33 -0
- package/chunk/{BiZSULcr.js → D0dVE1v1.js} +317 -350
- package/chunk/{CtCFA4ht.js → DA5AMZwY.js} +3 -3
- package/chunk/{DfbO4QTS.js → DB0hUIM1.js} +1 -1
- package/chunk/{DMv8Hn4u.js → De8RLlOK.js} +1 -1
- package/chunk/{C3kH2ES3.js → DrYaod6k.js} +1 -1
- package/chunk/{CylbdYce.js → DzlfiVe2.js} +1 -1
- package/chunk/gJsdBcpG.js +10 -0
- package/chunk/{Cx92e1S8.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 +41 -75
- 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 +46 -82
- 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 +37 -71
- 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 +6 -6
- package/hooks/useId.js +1 -1
- package/hooks/useResizeObserver.js +7 -50
- 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 +17 -52
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +379 -378
- 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/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input-number/index.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 +56 -91
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +26 -62
- package/marquee/index.js +70 -93
- package/marquee-/index.js +73 -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 +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 +13 -49
- package/notification/index.js +1 -1
- 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 +26 -63
- 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 +1 -1
- 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 +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 +118 -153
- 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 +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +23 -59
- 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 +1 -1
- 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 +80 -116
- 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 +1 -1
- package/types/common/hooks/src/use-theme/index.d.ts +2 -2
- package/types/common/hooks/useStateWithPromise.d.ts +1 -1
- package/types/common/utils/dom.d.ts +12 -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 +1 -1
- package/types/pc/list/interface.d.ts +2 -2
- package/types/pc/menu/context.d.ts +1 -1
- 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/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 +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/date.js +1 -0
- package/utils/index.js +70 -70
- 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/DsuIQH0F.js +0 -200
- 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/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/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
package/tour/index.js
CHANGED
|
@@ -1,71 +1,35 @@
|
|
|
1
|
-
import { jsxs as d, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { createPortal as
|
|
1
|
+
import { jsxs as d, Fragment as lt, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import ct from "@unicom-cloud/icons/IconUiClose";
|
|
3
|
+
import { useContext as at, useState as C, useRef as F, useEffect as h } from "react";
|
|
4
|
+
import { createPortal as pt } from "react-dom";
|
|
5
5
|
import D from "../button/index.js";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as mt, I as ft } from "../chunk/CYDaUML7.js";
|
|
7
7
|
import "../chunk/DsaQZE4X.js";
|
|
8
|
-
import "@unicom-cloud/utils/date";
|
|
9
|
-
import "@unicom-cloud/utils/case-name";
|
|
10
|
-
import u from "@unicom-cloud/utils/class-name";
|
|
11
|
-
import "@unicom-cloud/utils/constant/ui";
|
|
12
|
-
import "@unicom-cloud/utils/clipboard-copy";
|
|
13
|
-
import "../chunk/DS_deHpN.js";
|
|
14
|
-
import { b as dt, o as ht } from "../chunk/d1c9z8T1.js";
|
|
15
|
-
import "@unicom-cloud/utils/emitter";
|
|
16
|
-
import "@unicom-cloud/utils/file/fileToURL";
|
|
17
|
-
import "lodash/escapeRegExp";
|
|
18
|
-
import "lodash/isArray";
|
|
19
|
-
import "lodash/isNumber";
|
|
20
|
-
import "lodash/isString";
|
|
21
|
-
import { i as ut } from "../chunk/DEpQcf8m.js";
|
|
22
|
-
import "lodash/camelCase";
|
|
23
|
-
import "lodash/capitalize";
|
|
24
|
-
import "lodash/cloneDeep";
|
|
25
|
-
import "lodash/debounce";
|
|
26
|
-
import "lodash/get";
|
|
27
|
-
import "lodash/has";
|
|
28
|
-
import "lodash/kebabCase";
|
|
29
|
-
import "lodash/merge";
|
|
30
|
-
import "lodash/mergeWith";
|
|
31
|
-
import "lodash/set";
|
|
32
|
-
import "lodash/setWith";
|
|
33
|
-
import "lodash/snakeCase";
|
|
34
|
-
import "lodash/startCase";
|
|
35
|
-
import "lodash/throttle";
|
|
36
|
-
import "lodash/uniq";
|
|
37
|
-
import "lodash/upperFirst";
|
|
38
|
-
import "@unicom-cloud/utils/math";
|
|
39
|
-
import "lodash/isPlainObject";
|
|
40
|
-
import { m as gt } from "../chunk/C0pqKVwu.js";
|
|
41
|
-
import "@unicom-cloud/utils/pinyin";
|
|
42
|
-
import "../chunk/BJ9_azwQ.js";
|
|
43
|
-
import "../chunk/CXrVhA6-.js";
|
|
44
|
-
import { r as wt } from "../chunk/CHQ8c547.js";
|
|
45
|
-
import "@unicom-cloud/utils/file/saveAs";
|
|
46
|
-
import "@unicom-cloud/utils/screenfull";
|
|
47
|
-
import "@unicom-cloud/utils/constant/ui.js";
|
|
48
|
-
import "@unicom-cloud/utils/tinycolor";
|
|
49
|
-
import "@unicom-cloud/utils/ui-color";
|
|
50
|
-
import "react-is";
|
|
51
|
-
import "@unicom-cloud/utils/tree";
|
|
52
|
-
import "@unicom-cloud/utils/is";
|
|
53
|
-
import "uuid";
|
|
54
|
-
import "../chunk/hc_ufgVf.js";
|
|
55
|
-
import { Escape as bt, ArrowRight as vt, ArrowLeft as yt } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
56
8
|
import "@unicom-cloud/utils/constant/platform";
|
|
57
9
|
import "../chunk/CdXR6dj7.js";
|
|
58
10
|
import "@unicom-cloud/utils/js-cookie";
|
|
59
11
|
import "dayjs";
|
|
60
|
-
import "
|
|
12
|
+
import "lodash/debounce";
|
|
13
|
+
import "@unicom-cloud/utils/screenfull";
|
|
14
|
+
import "../chunk/ClNkxEcR.js";
|
|
15
|
+
import "lodash/throttle";
|
|
16
|
+
import "lodash/isPlainObject";
|
|
61
17
|
import "@unicom-cloud/utils/query-string";
|
|
62
18
|
import "react-router";
|
|
63
19
|
import "lodash/isEqualWith";
|
|
20
|
+
import { Escape as dt, ArrowRight as ht, ArrowLeft as ut } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
21
|
+
import "lodash/isNumber";
|
|
22
|
+
import "lodash/merge";
|
|
23
|
+
import { b as gt, o as wt } from "../chunk/d1c9z8T1.js";
|
|
64
24
|
import "../chunk/RjJoagzL.js";
|
|
65
|
-
import { u as
|
|
25
|
+
import { u as bt } from "../chunk/FgWHhRFz.js";
|
|
26
|
+
import "../chunk/CXrVhA6-.js";
|
|
66
27
|
import "@unicom-cloud/utils/constant";
|
|
67
28
|
import R from "../space/index.js";
|
|
68
|
-
import "
|
|
29
|
+
import u from "@unicom-cloud/utils/class-name";
|
|
30
|
+
import { i as vt } from "../chunk/DEpQcf8m.js";
|
|
31
|
+
import { m as yt } from "../chunk/C0pqKVwu.js";
|
|
32
|
+
import { r as $t } from "../chunk/CHQ8c547.js";
|
|
69
33
|
const xt = {
|
|
70
34
|
steps: [],
|
|
71
35
|
open: !1,
|
|
@@ -78,15 +42,15 @@ const xt = {
|
|
|
78
42
|
zIndex: 1e3,
|
|
79
43
|
current: 0
|
|
80
44
|
};
|
|
81
|
-
function
|
|
82
|
-
const { getPrefixCls: X, componentConfig: Y, rtl: kt } =
|
|
45
|
+
function re(L) {
|
|
46
|
+
const { getPrefixCls: X, componentConfig: Y, rtl: kt } = at(mt), K = bt(
|
|
83
47
|
L,
|
|
84
48
|
xt,
|
|
85
49
|
Y?.Tour
|
|
86
50
|
), {
|
|
87
51
|
style: U,
|
|
88
52
|
className: _,
|
|
89
|
-
steps:
|
|
53
|
+
steps: s,
|
|
90
54
|
open: N,
|
|
91
55
|
onClose: G,
|
|
92
56
|
mask: J,
|
|
@@ -100,25 +64,25 @@ function Ae(L) {
|
|
|
100
64
|
onFinish: tt,
|
|
101
65
|
onStepChange: O,
|
|
102
66
|
...Ct
|
|
103
|
-
} = K, o = X?.("tour"), [r, H] = C(S), [e, j] = C(null), [I, et] = C(w), [f, W] = C(N), M = F(null),
|
|
67
|
+
} = K, o = X?.("tour"), [r, H] = C(S), [e, j] = C(null), [I, et] = C(w), [f, W] = C(N), M = F(null), a = F(null), E = `0 0 0 ${Math.max(window.innerWidth, window.innerHeight)}px var(--pqb-mask-bg-color),0 0 15px 0 var(--pqb-mask-bg-color)`, l = typeof s[r]?.target == "string" ? document.querySelector(s[r].target) : s[r]?.target, b = () => {
|
|
104
68
|
let t;
|
|
105
|
-
if (
|
|
106
|
-
window.innerWidth / 2 - (
|
|
107
|
-
window.innerHeight / 2 - (
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
), j(t),
|
|
111
|
-
const
|
|
112
|
-
if (!
|
|
113
|
-
const
|
|
114
|
-
let
|
|
115
|
-
return
|
|
69
|
+
if (l ? t = l.getBoundingClientRect() : t = new DOMRect(
|
|
70
|
+
window.innerWidth / 2 - (a.current?.offsetWidth ?? 0) / 2,
|
|
71
|
+
window.innerHeight / 2 - (a.current?.offsetHeight ?? 0) / 2,
|
|
72
|
+
a.current?.offsetWidth,
|
|
73
|
+
a.current?.offsetHeight
|
|
74
|
+
), j(t), l) {
|
|
75
|
+
const n = a.current;
|
|
76
|
+
if (!n) return w;
|
|
77
|
+
const p = n.offsetWidth, m = n.offsetHeight, v = 10, y = t.top - m - v > 0, $ = t.bottom + m + v < window.innerHeight, x = t.left - p - v > 0, k = t.right + p + v < window.innerWidth;
|
|
78
|
+
let c = s[r]?.placement || w;
|
|
79
|
+
return c === "top" && !y ? c = $ ? "bottom" : x ? "left" : k ? "right" : "bottom" : c === "bottom" && !$ ? c = y ? "top" : x ? "left" : k ? "right" : "top" : c === "left" && !x ? c = k ? "right" : y ? "top" : $ ? "bottom" : "right" : c === "right" && !k && (c = x ? "left" : y ? "top" : $ ? "bottom" : "left"), et(c), c;
|
|
116
80
|
}
|
|
117
81
|
return w;
|
|
118
82
|
}, z = () => {
|
|
119
83
|
W(!1), G?.();
|
|
120
84
|
}, T = () => {
|
|
121
|
-
if (r <
|
|
85
|
+
if (r < s.length - 1) {
|
|
122
86
|
const t = r + 1;
|
|
123
87
|
H(t), O?.(t);
|
|
124
88
|
} else
|
|
@@ -132,39 +96,39 @@ function Ae(L) {
|
|
|
132
96
|
W(!1), tt?.();
|
|
133
97
|
}, rt = (t) => {
|
|
134
98
|
Q && t.target === M.current && z();
|
|
135
|
-
},
|
|
136
|
-
if (!e || !
|
|
99
|
+
}, nt = () => {
|
|
100
|
+
if (!e || !a.current)
|
|
137
101
|
return { top: 0, left: 0 };
|
|
138
|
-
if (!
|
|
102
|
+
if (!l) return {
|
|
139
103
|
top: e.top,
|
|
140
104
|
left: e.left
|
|
141
105
|
};
|
|
142
|
-
const t =
|
|
106
|
+
const t = a.current, n = t.offsetWidth, p = t.offsetHeight, m = 10;
|
|
143
107
|
switch (I) {
|
|
144
108
|
case "top":
|
|
145
109
|
return {
|
|
146
|
-
top: e.top -
|
|
147
|
-
left: e.left + e.width / 2 -
|
|
110
|
+
top: e.top - p - m,
|
|
111
|
+
left: e.left + e.width / 2 - n / 2
|
|
148
112
|
};
|
|
149
113
|
case "bottom":
|
|
150
114
|
return {
|
|
151
|
-
top: e.bottom +
|
|
152
|
-
left: e.left + e.width / 2 -
|
|
115
|
+
top: e.bottom + m,
|
|
116
|
+
left: e.left + e.width / 2 - n / 2
|
|
153
117
|
};
|
|
154
118
|
case "left":
|
|
155
119
|
return {
|
|
156
|
-
top: e.top + e.height / 2 -
|
|
157
|
-
left: e.left -
|
|
120
|
+
top: e.top + e.height / 2 - p / 2,
|
|
121
|
+
left: e.left - n - m
|
|
158
122
|
};
|
|
159
123
|
case "right":
|
|
160
124
|
return {
|
|
161
|
-
top: e.top + e.height / 2 -
|
|
162
|
-
left: e.right +
|
|
125
|
+
top: e.top + e.height / 2 - p / 2,
|
|
126
|
+
left: e.right + m
|
|
163
127
|
};
|
|
164
128
|
default:
|
|
165
129
|
return {
|
|
166
|
-
top: e.bottom +
|
|
167
|
-
left: e.left + e.width / 2 -
|
|
130
|
+
top: e.bottom + m,
|
|
131
|
+
left: e.left + e.width / 2 - n / 2
|
|
168
132
|
};
|
|
169
133
|
}
|
|
170
134
|
};
|
|
@@ -173,35 +137,35 @@ function Ae(L) {
|
|
|
173
137
|
}, [N]), h(() => {
|
|
174
138
|
H(S);
|
|
175
139
|
}, [S]), h(() => {
|
|
176
|
-
if (!f || r >=
|
|
140
|
+
if (!f || r >= s.length || !s[r]) {
|
|
177
141
|
j(null);
|
|
178
142
|
return;
|
|
179
143
|
}
|
|
180
144
|
b();
|
|
181
|
-
}, [f, r,
|
|
182
|
-
function t(
|
|
183
|
-
f && (
|
|
145
|
+
}, [f, r, s.length, l]), h(() => {
|
|
146
|
+
function t(n) {
|
|
147
|
+
f && (n.key === dt.key ? z() : n.key === ht.key ? T() : n.key === ut.key && q());
|
|
184
148
|
}
|
|
185
|
-
return
|
|
186
|
-
|
|
149
|
+
return gt(window, "keydown", t), () => {
|
|
150
|
+
wt(window, "keydown", t);
|
|
187
151
|
};
|
|
188
|
-
}, [f, r,
|
|
189
|
-
const t =
|
|
152
|
+
}, [f, r, s.length]), h(() => {
|
|
153
|
+
const t = $t([document.body, l], () => {
|
|
190
154
|
b();
|
|
191
|
-
}),
|
|
155
|
+
}), n = vt([l], () => {
|
|
192
156
|
b();
|
|
193
|
-
}),
|
|
157
|
+
}), p = yt([l], () => {
|
|
194
158
|
b();
|
|
195
159
|
});
|
|
196
160
|
return () => {
|
|
197
|
-
t(),
|
|
161
|
+
t(), n(), p();
|
|
198
162
|
};
|
|
199
|
-
}, [
|
|
163
|
+
}, [l]), !f || !s.length || r >= s.length)
|
|
200
164
|
return null;
|
|
201
|
-
const A =
|
|
202
|
-
return
|
|
203
|
-
/* @__PURE__ */ d(
|
|
204
|
-
/* @__PURE__ */
|
|
165
|
+
const A = s[r], st = r > 0, it = r < s.length - 1, B = nt();
|
|
166
|
+
return pt(
|
|
167
|
+
/* @__PURE__ */ d(lt, { children: [
|
|
168
|
+
/* @__PURE__ */ i(
|
|
205
169
|
"div",
|
|
206
170
|
{
|
|
207
171
|
ref: M,
|
|
@@ -210,7 +174,7 @@ function Ae(L) {
|
|
|
210
174
|
onClick: rt
|
|
211
175
|
}
|
|
212
176
|
),
|
|
213
|
-
e && /* @__PURE__ */
|
|
177
|
+
e && /* @__PURE__ */ i(
|
|
214
178
|
"div",
|
|
215
179
|
{
|
|
216
180
|
className: `${o}-highlight`,
|
|
@@ -229,7 +193,7 @@ function Ae(L) {
|
|
|
229
193
|
/* @__PURE__ */ d(
|
|
230
194
|
"div",
|
|
231
195
|
{
|
|
232
|
-
ref:
|
|
196
|
+
ref: a,
|
|
233
197
|
className: u(
|
|
234
198
|
`${o}-popover`,
|
|
235
199
|
`${o}-popover-${g}`,
|
|
@@ -240,10 +204,10 @@ function Ae(L) {
|
|
|
240
204
|
top: `${B.top + window.scrollY}px`,
|
|
241
205
|
left: `${B.left + window.scrollX}px`,
|
|
242
206
|
zIndex: P + 2,
|
|
243
|
-
boxShadow:
|
|
207
|
+
boxShadow: l ? void 0 : E
|
|
244
208
|
},
|
|
245
209
|
children: [
|
|
246
|
-
V &&
|
|
210
|
+
V && l && /* @__PURE__ */ i(
|
|
247
211
|
"div",
|
|
248
212
|
{
|
|
249
213
|
className: u(
|
|
@@ -253,9 +217,9 @@ function Ae(L) {
|
|
|
253
217
|
}
|
|
254
218
|
),
|
|
255
219
|
/* @__PURE__ */ d("div", { className: `${o}-content`, children: [
|
|
256
|
-
Z && /* @__PURE__ */
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
-
/* @__PURE__ */
|
|
220
|
+
Z && /* @__PURE__ */ i(ft, { className: `${o}-close`, onClick: z, children: /* @__PURE__ */ i(ct, {}) }),
|
|
221
|
+
/* @__PURE__ */ i("div", { className: `${o}-header`, children: /* @__PURE__ */ i("div", { className: `${o}-title`, children: A.title }) }),
|
|
222
|
+
/* @__PURE__ */ i("div", { className: `${o}-body`, children: /* @__PURE__ */ i("div", { className: `${o}-description`, children: A.description }) }),
|
|
259
223
|
/* @__PURE__ */ d(
|
|
260
224
|
R,
|
|
261
225
|
{
|
|
@@ -263,18 +227,18 @@ function Ae(L) {
|
|
|
263
227
|
justifyContent: "space-between",
|
|
264
228
|
alignItems: "center",
|
|
265
229
|
children: [
|
|
266
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ i(R, { className: `${o}-indicator`, children: s.map((t, n) => /* @__PURE__ */ i(
|
|
267
231
|
"div",
|
|
268
232
|
{
|
|
269
233
|
className: u(
|
|
270
234
|
`${o}-dot`,
|
|
271
|
-
|
|
235
|
+
n === r && `${o}-dot-active`
|
|
272
236
|
)
|
|
273
237
|
},
|
|
274
|
-
|
|
238
|
+
n
|
|
275
239
|
)) }),
|
|
276
240
|
/* @__PURE__ */ d(R, { children: [
|
|
277
|
-
|
|
241
|
+
st && /* @__PURE__ */ i(
|
|
278
242
|
D,
|
|
279
243
|
{
|
|
280
244
|
className: `${o}-prev-btn`,
|
|
@@ -284,7 +248,7 @@ function Ae(L) {
|
|
|
284
248
|
children: "上一步"
|
|
285
249
|
}
|
|
286
250
|
),
|
|
287
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ i(
|
|
288
252
|
D,
|
|
289
253
|
{
|
|
290
254
|
className: u(
|
|
@@ -294,7 +258,7 @@ function Ae(L) {
|
|
|
294
258
|
size: "mini",
|
|
295
259
|
type: g === "primary" ? "primary" : "secondary",
|
|
296
260
|
onClick: T,
|
|
297
|
-
children:
|
|
261
|
+
children: it ? "下一步" : "完成"
|
|
298
262
|
}
|
|
299
263
|
)
|
|
300
264
|
] })
|
|
@@ -310,5 +274,5 @@ function Ae(L) {
|
|
|
310
274
|
);
|
|
311
275
|
}
|
|
312
276
|
export {
|
|
313
|
-
|
|
277
|
+
re as default
|
|
314
278
|
};
|
package/transfer/Item.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsxs as C, jsx as a, Fragment as B } from "react/jsx-runtime";
|
|
|
2
2
|
import F from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import H from "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
4
4
|
import { useRef as y, useState as m, useEffect as I } from "react";
|
|
5
|
-
import { C as V } from "../chunk/
|
|
5
|
+
import { C as V } from "../chunk/DrYaod6k.js";
|
|
6
6
|
import { u as q } from "../chunk/Bvxzb1wd.js";
|
|
7
|
-
import { I as z } from "../chunk/
|
|
7
|
+
import { I as z } from "../chunk/CYDaUML7.js";
|
|
8
8
|
import A from "@unicom-cloud/utils/class-name";
|
|
9
9
|
function te(N) {
|
|
10
10
|
const {
|
package/transfer/List.js
CHANGED
|
@@ -4,8 +4,8 @@ import le from "@unicom-cloud/icons/IconUiSearch";
|
|
|
4
4
|
import E from "lodash/isPlainObject";
|
|
5
5
|
import ie, { useContext as de, useState as S, useEffect as me } from "react";
|
|
6
6
|
import he from "../button/index.js";
|
|
7
|
-
import { C as K } from "../chunk/
|
|
8
|
-
import { a as fe, I as pe } from "../chunk/
|
|
7
|
+
import { C as K } from "../chunk/DrYaod6k.js";
|
|
8
|
+
import { a as fe, I as pe } from "../chunk/CYDaUML7.js";
|
|
9
9
|
import { u as ue } from "../chunk/Bvxzb1wd.js";
|
|
10
10
|
import ge from "../input/Input.js";
|
|
11
11
|
import Ce from "../list/index.js";
|
package/transfer/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import Z from "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import ee from "lodash/isPlainObject";
|
|
5
5
|
import te, { useContext as se, useMemo as V } from "react";
|
|
6
6
|
import re from "../button/index.js";
|
|
7
|
-
import { a as ae } from "../chunk/
|
|
7
|
+
import { a as ae } from "../chunk/CYDaUML7.js";
|
|
8
8
|
import { u as oe } from "../chunk/FgWHhRFz.js";
|
|
9
9
|
import { u as w } from "../chunk/2vdCeheu.js";
|
|
10
10
|
import A from "@unicom-cloud/utils/class-name";
|
package/tree/Animation.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "lodash/isNumber";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/CYDaUML7.js";
|
|
5
5
|
import "../chunk/B--6x-RL.js";
|
|
6
6
|
import "../virtual-list/VirtualList.js";
|
|
7
7
|
import "./Context.js";
|
|
8
|
-
import { a as d } from "../chunk/
|
|
8
|
+
import { a as d } from "../chunk/Bcl7dWlJ.js";
|
|
9
9
|
export {
|
|
10
10
|
d as default
|
|
11
11
|
};
|
package/tree/Node.js
CHANGED
|
@@ -5,11 +5,11 @@ import "@unicom-cloud/icons/IconUiFile";
|
|
|
5
5
|
import "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import "lodash/isFunction";
|
|
7
7
|
import "react";
|
|
8
|
-
import "../chunk/
|
|
9
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/DrYaod6k.js";
|
|
9
|
+
import "../chunk/CYDaUML7.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../utils/throttleByRaf.js";
|
|
12
|
-
import { T } from "../chunk/
|
|
12
|
+
import { T } from "../chunk/Bcl7dWlJ.js";
|
|
13
13
|
import "./Context.js";
|
|
14
14
|
export {
|
|
15
15
|
T as default
|
package/tree/NodeList.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as L } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as g, useRef as y, useMemo as p, useImperativeHandle as M, createElement as N } from "react";
|
|
3
3
|
import { s as R } from "../chunk/DE-83rKc.js";
|
|
4
4
|
import V from "../virtual-list/VirtualList.js";
|
|
5
|
-
import { T as D } from "../chunk/
|
|
5
|
+
import { T as D } from "../chunk/Bcl7dWlJ.js";
|
|
6
6
|
function b(r) {
|
|
7
7
|
return r.key || r._key;
|
|
8
8
|
}
|
package/tree/Tree.js
CHANGED
|
@@ -5,12 +5,12 @@ import j from "lodash/has";
|
|
|
5
5
|
import Te from "lodash/isArray";
|
|
6
6
|
import Pe from "lodash/isEqualWith";
|
|
7
7
|
import Ae from "lodash/isFunction";
|
|
8
|
-
import { a as Dt } from "../chunk/
|
|
8
|
+
import { a as Dt } from "../chunk/CYDaUML7.js";
|
|
9
9
|
import { u as Et } from "../chunk/FgWHhRFz.js";
|
|
10
10
|
import Ie from "@unicom-cloud/utils/class-name";
|
|
11
11
|
import { a as Lt } from "../chunk/ClqoGc3r.js";
|
|
12
12
|
import { TreeContext as vt } from "./Context.js";
|
|
13
|
-
import { T as Me } from "../chunk/
|
|
13
|
+
import { T as Me } from "../chunk/Bcl7dWlJ.js";
|
|
14
14
|
import wt from "./NodeList.js";
|
|
15
15
|
import { getTreeDataFromTreeChildren as Ot, getCheckedKeysByInitKeys as Tt, getAllCheckedKeysByCheck as Pt } from "./util.js";
|
|
16
16
|
const $e = {
|
package/tree/index.js
CHANGED
package/tree-select/Select.js
CHANGED
|
@@ -5,8 +5,8 @@ import B from "lodash/isArray";
|
|
|
5
5
|
import D from "lodash/isFunction";
|
|
6
6
|
import Ve from "lodash/isNil";
|
|
7
7
|
import { useContext as se, useRef as S, useState as z, useCallback as O, forwardRef as ve, useEffect as ne, useMemo as Pe, useImperativeHandle as Ie } from "react";
|
|
8
|
-
import { a as ce } from "../chunk/
|
|
9
|
-
import { u as Ke } from "../chunk/
|
|
8
|
+
import { a as ce } from "../chunk/CYDaUML7.js";
|
|
9
|
+
import { u as Ke } from "../chunk/gJsdBcpG.js";
|
|
10
10
|
import { u as Oe } from "../chunk/oopARUrq.js";
|
|
11
11
|
import { u as _e } from "../chunk/FgWHhRFz.js";
|
|
12
12
|
import { u as le } from "../chunk/2vdCeheu.js";
|
|
@@ -26,7 +26,7 @@ import xe from "lodash/isPlainObject";
|
|
|
26
26
|
import Ae from "lodash/isUndefined";
|
|
27
27
|
import { normalizeValueToArray as N } from "./util.js";
|
|
28
28
|
import { u as Ne } from "../chunk/8w-ItYb1.js";
|
|
29
|
-
import { T as vt } from "../chunk/
|
|
29
|
+
import { T as vt } from "../chunk/Bcl7dWlJ.js";
|
|
30
30
|
const ie = (r, c, l) => {
|
|
31
31
|
const u = {};
|
|
32
32
|
let f = 0;
|
package/tree-select/index.js
CHANGED
package/trigger/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import xe from "lodash/isArray";
|
|
|
4
4
|
import D from "lodash/isFunction";
|
|
5
5
|
import { forwardRef as io, useContext as so, useRef as L, useState as uo, Children as Me, useCallback as Se, cloneElement as Oe, useImperativeHandle as co, useLayoutEffect as lo, useEffect as g, Fragment as ao } from "react";
|
|
6
6
|
import { createPortal as po } from "react-dom";
|
|
7
|
-
import { a as fo } from "../chunk/
|
|
7
|
+
import { a as fo } from "../chunk/CYDaUML7.js";
|
|
8
8
|
import R from "@unicom-cloud/utils/class-name";
|
|
9
9
|
import { b as G, o as J, g as mo, i as go, c as ve } from "../chunk/d1c9z8T1.js";
|
|
10
10
|
import { s as yo } from "../chunk/DsaQZE4X.js";
|
|
@@ -10,7 +10,7 @@ type Options = {
|
|
|
10
10
|
};
|
|
11
11
|
export default function useTheme(options?: Options): {
|
|
12
12
|
theme: ThemeType;
|
|
13
|
-
themeMode: "
|
|
14
|
-
setThemeMode: (this: unknown, mode: "
|
|
13
|
+
themeMode: "light" | "dark" | "system";
|
|
14
|
+
setThemeMode: (this: unknown, mode: "light" | "dark" | "system") => void;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function useStateWithPromise<T>(defaultVal: T): [T, (updater: any) => Promise<T>];
|
|
1
|
+
declare function useStateWithPromise<T>(defaultVal: T, wait?: number): [T, (updater: any) => Promise<T>];
|
|
2
2
|
export default useStateWithPromise;
|
|
@@ -10,3 +10,15 @@ export declare function isScrollElement(element: any): boolean;
|
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export declare const getScrollElements: (container: HTMLElement, top?: HTMLElement) => HTMLElement[];
|
|
13
|
+
/**
|
|
14
|
+
* 判断父节点是否包含子节点
|
|
15
|
+
* @desc {en} confirm parentNode contains children nodes
|
|
16
|
+
* @param {HTMLElement | null} parentEl 父节点
|
|
17
|
+
* @param {HTMLElement | null} parentEl {en} The parent element
|
|
18
|
+
* @param {HTMLElement | null} childrenEl 子节点
|
|
19
|
+
* @param {HTMLElement | null} childrenEl {en} The child element
|
|
20
|
+
* @returns {boolean} 是否包含子节点
|
|
21
|
+
* @returns {boolean} {en} Whether the parent contains the child
|
|
22
|
+
* @example
|
|
23
|
+
*/
|
|
24
|
+
export declare function parentContainsChildren(parentEl: HTMLElement | null, childrenEl: HTMLElement | null): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties,
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
export type CarouselHandle = {
|
|
3
3
|
dom: HTMLElement;
|
|
4
4
|
goto: (options: {
|
|
@@ -122,7 +122,7 @@ export interface CarouselProps {
|
|
|
122
122
|
* @zh 用于获得带有 API 方法的 Carousel 引用。
|
|
123
123
|
* @en Carousel reference for imperative API calls.
|
|
124
124
|
*/
|
|
125
|
-
carousel?:
|
|
125
|
+
carousel?: React.RefObject<CarouselHandle>;
|
|
126
126
|
}
|
|
127
127
|
export interface CarouselArrowProps extends Pick<CarouselProps, 'direction' | 'showArrow' | 'icons'> {
|
|
128
128
|
className?: string | string[];
|
|
@@ -6,7 +6,7 @@ interface PanelProps {
|
|
|
6
6
|
activeMode: ColorPickerMode;
|
|
7
7
|
gradientColors: InternalGradientColor[];
|
|
8
8
|
activeColorId: string;
|
|
9
|
-
activeColorIdRef: React.
|
|
9
|
+
activeColorIdRef: React.RefObject<string>;
|
|
10
10
|
color: Color;
|
|
11
11
|
alpha: number;
|
|
12
12
|
disabledAlpha: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RangePickerHandle } from './interface';
|
|
2
|
-
declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("components/common/utils").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & import("react").RefAttributes<RangePickerHandle>>;
|
|
2
|
+
declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("components/common/utils/type").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & import("react").RefAttributes<RangePickerHandle>>;
|
|
3
3
|
export default PickerComponent;
|
package/types/pc/index.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export { default as ResizeBox, ResizeBoxSplit, ResizeBoxSplitGroup, } from './re
|
|
|
124
124
|
export type { ResizeBoxProps } from './resize-box/interface';
|
|
125
125
|
export { default as Result } from './result';
|
|
126
126
|
export type { ResultProps } from './result/interface';
|
|
127
|
-
export { default as RichText } from './rich-text';
|
|
127
|
+
export { Rich, default as RichText } from './rich-text';
|
|
128
128
|
export type { RichTextProps } from './rich-text/interface';
|
|
129
129
|
export { Col, default as Row, RowItem } from './row-col';
|
|
130
130
|
export type { ColProps, RowProps } from './row-col/interface';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, HTMLAttributes,
|
|
1
|
+
import React, { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { GridResponsiveBreakpoint } from '../grid/interface';
|
|
3
3
|
import { PaginationProps } from '../pagination/Pagination';
|
|
4
4
|
import type { ColProps, RowProps } from '../row-col/interface';
|
|
@@ -117,7 +117,7 @@ export interface ListProps<T = any> {
|
|
|
117
117
|
* @zh 当前列表的引用
|
|
118
118
|
* @en Reference to the current list
|
|
119
119
|
*/
|
|
120
|
-
listRef?:
|
|
120
|
+
listRef?: React.RefObject<ListHandle>;
|
|
121
121
|
/**
|
|
122
122
|
* @zh 列表滚动回调函数,参数为列表滚动元素,当onReachBottom无法满足需求,可自定义滚动监听函数。
|
|
123
123
|
* @en Callback when list is scrolling. When onReachBottom cannot meet your usage, can customize scroll monitor function
|
|
@@ -5,7 +5,7 @@ export type HotkeyInfo = {
|
|
|
5
5
|
type: 'sibling' | 'generation' | 'enter';
|
|
6
6
|
};
|
|
7
7
|
export type ResetHotkeyInfo = (activeKey?: string) => void;
|
|
8
|
-
declare const MenuContext: import("react").Context<Pick<MenuProps, "
|
|
8
|
+
declare const MenuContext: import("react").Context<Pick<MenuProps, "theme" | "collapse" | "mode" | "icons" | "triggerProps" | "inDropdown" | "tooltipProps" | "levelIndent" | "selectedKeys" | "openKeys" | "autoScrollIntoView" | "scrollConfig"> & {
|
|
9
9
|
id?: string;
|
|
10
10
|
prefixCls?: string;
|
|
11
11
|
onClickMenuItem?: (key: string, e: any) => void;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import Rich from './
|
|
2
|
-
export * from './
|
|
3
|
-
export type { Bounds, DebugLevel, EmitterSource, ExpandedRichOptions, RichOptions, } from './
|
|
1
|
+
import Rich, { Delta } from './lib';
|
|
2
|
+
export * from './lib';
|
|
3
|
+
export type { Bounds, DebugLevel, EmitterSource, ExpandedRichOptions, RichOptions, } from './lib';
|
|
4
4
|
export { Rich };
|
|
5
|
-
declare const RichText: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<
|
|
5
|
+
declare const RichText: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<{
|
|
6
|
+
rich: Rich;
|
|
7
|
+
contents: Delta;
|
|
8
|
+
}>>;
|
|
6
9
|
export default RichText;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import type { EmitterSource } from './core
|
|
3
|
-
import Delta from './delta';
|
|
2
|
+
import type { EmitterSource } from './lib/core';
|
|
3
|
+
import type Delta from './lib/delta';
|
|
4
4
|
/**
|
|
5
5
|
* @title RichText
|
|
6
6
|
*/
|
|
@@ -10,6 +10,7 @@ export interface RichTextProps {
|
|
|
10
10
|
readOnly?: boolean;
|
|
11
11
|
defaultValue?: object | string;
|
|
12
12
|
value?: object | string;
|
|
13
|
+
options?: object;
|
|
13
14
|
onChange?: (value: Delta, delta: Delta, preValue: Delta, source: EmitterSource) => void;
|
|
14
15
|
onTextChange?: (delta: Delta, preValue: Delta, source: EmitterSource) => void;
|
|
15
16
|
onSelectionChange?: (...args: any[]) => void;
|